{"_id":"@flowio/lib-apidoc-merge-services","_rev":"30-5dbdcc357321d44e63850d36e1edca95","name":"@flowio/lib-apidoc-merge-services","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@flowio/lib-apidoc-merge-services","version":"0.0.1","keywords":["apidoc","merge","schema"],"author":{"name":"Flow Commerce"},"license":"MIT","_id":"@flowio/lib-apidoc-merge-services@0.0.1","maintainers":[{"name":"ctumolosus","email":"ctumolosus@gmail.com"}],"dist":{"shasum":"fc33a45ea43a38cea28e29fcad2cedaa5d172b78","tarball":"https://registry.npmjs.org/@flowio/lib-apidoc-merge-services/-/lib-apidoc-merge-services-0.0.1.tgz","integrity":"sha512-I21qBHxAFeb3T5xvGXA0bchIF6PjiNNITi8APM4yn5smJXMEMiNiOJf10KYmH4Y6NeV2HTjHM9FBx9b03acMdw==","signatures":[{"sig":"MEQCIAIxM9luX2HJ0K3oVjkduwZuxNp8eRCHgU7FIUTJfM0PAiBcFMtHR7m40tpAIfSoQJPGMfyWC5pHr/N+3yMHZu3Ofg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"fc33a45ea43a38cea28e29fcad2cedaa5d172b78","engines":{"node":">= 6.9.0"},"gitHead":"9b447d57418b9ef10fa25d8fac164ed24957b083","scripts":{"lint":"eslint .","test":"mocha ./test/specs/**/*.js","watch:test":"chokidar './lib/**/*.js' './test/**/*.js' --initial --command 'npm test'"},"_npmUser":{"name":"ctumolosus","email":"ctumolosus@gmail.com"},"_npmVersion":"3.9.3","description":"A node utility for merging apidoc service objects","directories":{},"_nodeVersion":"6.2.1","dependencies":{"lodash":"^4.0.0","invariant":"^2.0.0"},"devDependencies":{"chai":"3.5.0","mocha":"3.2.0","chance":"1.0.4","eslint":"3.12.2","chokidar-cli":"1.2.0","eslint-plugin-import":"2.2.0","eslint-config-airbnb-base":"11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-apidoc-merge-services-0.0.1.tgz_1483734087598_0.10571714374236763","host":"packages-12-west.internal.npmjs.com"}},"0.0.2":{"name":"@flowio/lib-apidoc-merge-services","version":"0.0.2","keywords":["apidoc","merge","schema"],"author":{"name":"Flow Commerce"},"license":"MIT","_id":"@flowio/lib-apidoc-merge-services@0.0.2","maintainers":[{"name":"flowtech","email":"tech@flow.io"},{"name":"lance-at-flow","email":"lance@flow.io"},{"name":"nathanstilwell","email":"nathanstilwell@gmail.com"},{"name":"ctumolosus","email":"ctumolosus@gmail.com"},{"name":"chicksflow","email":"chicks@flow.io"}],"dist":{"shasum":"231c720790bf07e38f8dfa384e3bd747baa86946","tarball":"https://registry.npmjs.org/@flowio/lib-apidoc-merge-services/-/lib-apidoc-merge-services-0.0.2.tgz","integrity":"sha512-sS+CpdgrOMFoJUIgJII4Qz8vbwx/ZbtMe2xNhn+QNjz64ICWwCxYtqgFQIadyFXlc73Xcvs+bb+eoPPOPTv1sQ==","signatures":[{"sig":"MEQCICV7+KzR6W1zFxrxz/QLviTEHEgXMoKTmVO3WzX6+6WoAiAywdjgyrxeI1j7cGwI0I1NPlk9xFQbbDrS/6HWsHlAcg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"231c720790bf07e38f8dfa384e3bd747baa86946","engines":{"node":">= 6.9.0"},"gitHead":"8a5b13e3d7113a6c2262abaf0c44700cf9aecf1d","scripts":{"lint":"eslint .","test":"mocha ./test/specs/**/*.js","watch:test":"chokidar './lib/**/*.js' './test/**/*.js' --initial --command 'npm test'"},"_npmUser":{"name":"chicksflow","email":"chicks@flow.io"},"_npmVersion":"3.10.10","description":"A node utility for merging apidoc service objects","directories":{},"_nodeVersion":"6.9.4","dependencies":{"lodash":"^4.0.0","invariant":"^2.0.0"},"devDependencies":{"chai":"4.1.2","mocha":"^4.0.1","chance":"1.0.11","eslint":"^4.8.0","chokidar-cli":"1.2.0","eslint-plugin-import":"2.7.0","eslint-config-airbnb-base":"^12.0.2"},"_npmOperationalInternal":{"tmp":"tmp/lib-apidoc-merge-services-0.0.2.tgz_1507993109501_0.17666948004625738","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@flowio/lib-apidoc-merge-services","version":"0.0.3","keywords":["apidoc","merge","schema"],"author":{"name":"Flow Commerce"},"license":"MIT","_id":"@flowio/lib-apidoc-merge-services@0.0.3","maintainers":[{"name":"chicksflow","email":"chicks@flow.io"},{"name":"ctumolosus","email":"ctumolosus@gmail.com"},{"name":"flowtech","email":"tech@flow.io"},{"name":"mpalma","email":"mpalma@flow.io"},{"name":"nathanstilwell","email":"nathanstilwell@gmail.com"},{"name":"roryh","email":"rhaddon@gmail.com"}],"dist":{"shasum":"7d285cd74f8db5f6ce45809ab68159a183e9e232","tarball":"https://registry.npmjs.org/@flowio/lib-apidoc-merge-services/-/lib-apidoc-merge-services-0.0.3.tgz","fileCount":23,"integrity":"sha512-1sq3H2JuDO6VK0znCLTbSh3TPiOivuOW3LdtClVdoy3/JUiHYGYTNjRxoBCahOM/cusmDYIB7rAXBBi9D8/dwg==","signatures":[{"sig":"MEQCIAl9jIPrO/7sgA1dEgy4SNzajlLe/pZqdQ/f875ucxRZAiBT4y/j1YZjbQ6inTZJbV3jgZdek9nCzjdKkGB7M7/60A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2Hb4CRA9TVsSAnZWagAAFOsP/2WD9+Y9/ri5uZrv3OsV\nQ0WI0o5VGbkxf2PY0jvtpeDSdvu8rPzAO/ftCJgVV2nsRZFs6rtqQMXRjl7y\nCJPAQDPIAWRP7axoh2eBL92TvumwVmQ2KYJ89IBc7JkhHsW+B7fiyz7h2QDo\nwY54UChCwl6MWc0fWYpi8+XtSBbuC1kJY+1hpahLpDa5URn+HcZq1U35DqX9\nC+TehNqGttjlOF5+Zs8zpYvzPPCBYCM+21gUXfEIXzuM3PgbTDphRf1E+zH+\ndw+hAKPjaJA9v9nKkGXJANa6OHNSdIrKad95hsngUfwWCPFibfRyXRU3gi6t\nIbrSdYDOWw/AOhNT+tO2C4hEn+GxQeqHuaH8Z7g8Wk1i6xWgtsCelk9XWxXT\n0FG7NsgXuFZvrCJ0+B/Cu4jmoJtnJWE1Y7MKWW5BK16SKG6P25tl01ddCHbL\n59kpxRITM33u3z6wWI+dVielg+p8guZAgMm3MSEJ5u+J/294dKMi+K9WwHg7\nNf56nCdNZZ5QSPb9lciH6ABXwx2ZSEVLjwEMIuaT9HdrPjt1yYb/v8RtXzHT\nJ4eqRwm54dbO9Y8CeWhAcAEb0wtFP8rUnXqqsg1ocTUPjImAc/eEo44+e+nv\nTVUyCc9D64Qn0f5BJFBOd4oNbYhfnGFI5AS/bZp07/Ji4cDVVbKyk7Qe9I/z\n35U7\r\n=iMWV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">= 6.9.0"},"gitHead":"00a71164573294172245713c366aa6bb0c7fecb0","scripts":{"lint":"eslint .","test":"mocha ./test/specs/**/*.js","watch:test":"chokidar './lib/**/*.js' './test/**/*.js' --initial --command 'npm test'"},"_npmUser":{"name":"ctumolosus","email":"ctumolosus@gmail.com"},"_npmVersion":"6.6.0","description":"A node utility for merging apidoc service objects","directories":{},"_nodeVersion":"8.9.3","dependencies":{"lodash":"^4.17.11","invariant":"^2.2.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.0.2","chance":"^1.0.18","eslint":"^5.15.1","chokidar-cli":"^1.2.2","eslint-plugin-import":"^2.16.0","eslint-config-airbnb-base":"^13.1.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-apidoc-merge-services_0.0.3_1552432604997_0.7258190672513076","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-01-06T20:21:29.713Z","modified":"2026-05-20T12:06:44.037Z","0.0.1":"2017-01-06T20:21:29.713Z","0.0.2":"2017-10-14T14:58:30.522Z","0.0.3":"2019-03-12T23:16:45.120Z"},"author":{"name":"Flow Commerce"},"license":"MIT","keywords":["apidoc","merge","schema"],"description":"A node utility for merging apidoc service objects","maintainers":[{"email":"team-foundation@flow.io","name":"flowtech"},{"email":"cbos@flow.io","name":"cbosatflow"},{"email":"sid.jain@global-e.com","name":"sid.jain"},{"email":"georgedixon24@gmail.com","name":"gdxn96"},{"email":"marta.pralat@global-e.com","name":"martapralat"},{"email":"mike.chimirev@gmail.com","name":"mchimirev"}],"readme":"# lib-apidoc-merge-services\n\nA node utility for merging [apidoc service](http://apidoc.me/bryzek/apidoc-spec/latest) objects.\n\n## Installation\n\n```bash\nnpm install --save @flowio/lib-apidoc-merge-services\n```\n\n## Usage\n\n```javascript\nconst apiJson = require('./api.json');\nconst apiInternalJson = require('./api-internal.json');\nconst mergeServices = require('@flowio/lib-apidoc-merge-services');\n\nconst result = mergeServices(apiJson, apiInternalJson);\n```\n\n## Api Reference\n\n### `mergeServices(...services): Object`\n\nReturns a new object with `enums`, `models`, `resources`, and `unions` from all specified service objects merged.\n\nThe first service is considered the *base service*. Other attributes, not documented above, will be picked from the base service. For example, the final service name will be the base service name.\n\nAn error is thrown whenever merged attributes conflict with each other. For example, if two services described the same model, then an error is thrown with the name of the conflicting models.\n\n```bash\nInvariant Error: CONFLICT found in API version 0.0.3\nThe following models are duplicated: user, account.\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}