{"_id":"@adobe/aio-lib-magento","_rev":"20-0d950c35e841317f58a4ccb3635a1a01","name":"@adobe/aio-lib-magento","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@adobe/aio-lib-magento","version":"0.0.1","license":"Apache-2.0","_id":"@adobe/aio-lib-magento@0.0.1","maintainers":[{"name":"adobehalls","email":"halls@adobe.com"},{"name":"fullcolorcoder","email":"bradjohn@adobe.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"patrickfulton","email":"patrickfulton@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"rofe","email":"npm@rofe.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"}],"homepage":"https://github.com/@adobe/aio-lib-magento","bugs":{"url":"https://github.com/@adobe/aio-lib-magento/issues"},"dist":{"shasum":"a2714dba3d10b484014e2e3c4f057a663dd78955","tarball":"https://registry.npmjs.org/@adobe/aio-lib-magento/-/aio-lib-magento-0.0.1.tgz","fileCount":38,"integrity":"sha512-c9HIvtJiNRth32sJKTjSu+0qWOKlvfOiybDOIkuFWP4JbslIjapaYo8n/BK7dieJJadXnlC4KS8XvzEGHkip0w==","signatures":[{"sig":"MEQCID/ZhgQ6IOuToU4KEAQRONd0TNWcWi+PZ6Szlro0ojD3AiB039fudQ0YexJnfnheePt1sAkCODv9ZmuD11gAK28W+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64136},"main":"src/index.js","engines":{"node":"^14.18 || ^16.13 || >=18"},"gitHead":"b6865665f7fcfa43fbacfaabd0e3dd48dc30f41d","scripts":{"e2e":"jest --config e2e/jest.config.js","lint":"eslint src test e2e","test":"npm run unit-tests","jsdoc":"jsdoc2md -t ./docs/readme_template.md src/**/*.js > README.md","pretest":"npm run validate && npm run lint","typings":"jsdoc -t node_modules/tsd-jsdoc/dist -r src/*.js -d .","validate":"node bin/validate_spec.js spec/api.json","unit-tests":"jest --config test/jest.config.js --maxWorkers=2","generate-docs":"npm run typings && npm run jsdoc"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"deprecated":false,"repository":{"url":"git+https://github.com/@adobe/aio-lib-magento.git","type":"git"},"_npmVersion":"8.19.4","description":"Adobe I/O Lib","directories":{},"_nodeVersion":"16.20.1","dependencies":{"cross-fetch":"^3.0.4","swagger-client":"3.9.6","@adobe/aio-lib-core-errors":"^3.0.0","@adobe/aio-lib-core-logging":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"eol":"^0.9.1","jest":"^25.1.0","jsdoc":"^3.6.3","dotenv":"^8.1.0","eslint":"^8.47.0","tsd-jsdoc":"^2.4.0","jest-junit":"^10.0.0","typescript":"^4.9.5","babel-runtime":"^6.26.0","stdout-stderr":"^0.1.9","jest-plugin-fs":"^2.9.0","eslint-plugin-n":"^16.0.1","jest-fetch-mock":"^3.0.1","@types/node-fetch":"^2.5.4","jsdoc-to-markdown":"^5.0.0","eslint-plugin-jest":"^27.2.3","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^42.0.0","eslint-plugin-import":"^2.28.0","eslint-plugin-promise":"^6.1.1","eslint-config-standard":"^17.1.0","eslint-plugin-standard":"^4.0.0","openapi-schema-validator":"^3.0.3","@adobe/eslint-config-aio-lib-config":"^2.0.1"},"bundleDependencies":[],"_npmOperationalInternal":{"tmp":"tmp/aio-lib-magento_0.0.1_1692076745966_0.1251534353477759","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-08-15T05:19:05.815Z","modified":"2026-10-01T01:32:21.257Z","0.0.1":"2023-08-15T05:19:06.219Z"},"bugs":{"url":"https://github.com/@adobe/aio-lib-magento/issues"},"license":"Apache-2.0","homepage":"https://github.com/@adobe/aio-lib-magento","repository":{"url":"git+https://github.com/@adobe/aio-lib-magento.git","type":"git"},"description":"Adobe I/O Lib","maintainers":[{"email":"mabecker@adobe.com","name":"marbec"},{"email":"tripod@bocanegra.ch","name":"tripod"},{"email":"garthdb@gmail.com","name":"garthdb"},{"email":"lazdnet@gmail.com","name":"lazd"},{"email":"grp-opensourceoffice@adobe.com","name":"adobe-admin"},{"email":"patrickfulton@gmail.com","name":"patrickfulton"},{"email":"lars@trieloff.net","name":"trieloff"},{"email":"krisnye@gmail.com","name":"krisnye"},{"email":"dcpfsdk@adobe.com","name":"dcpfsdk"},{"email":"natebaldwindesign@gmail.com","name":"natebaldwin"},{"email":"devongovett@gmail.com","name":"devongovett"},{"email":"danniintheus@gmail.com","name":"aspro83"},{"email":"symanovi@adobe.com","name":"symanovi"},{"email":"dominique.pfister@gmail.com","name":"dpfister"},{"email":"sg@adobe.com","name":"stefan-guggisberg"},{"email":"npm@rofe.com","name":"rofe"},{"email":"kptdobe@gmail.com","name":"kptdobe"},{"email":"halls@adobe.com","name":"adobehalls"},{"email":"bradjohn@adobe.com","name":"fullcolorcoder"},{"email":"djaeggi@adobe.com","name":"djaeggi"},{"email":"dylandepass@gmail.com","name":"dylandepass"},{"email":"mhaack@adobe.com","name":"mhaack"},{"email":"amol@adobe.com","name":"amol-anand"},{"email":"stopp@adobe.com","name":"stopp-adobe"},{"email":"namarora@adobe.com","name":"namarora"},{"email":"doten@adobe.com","name":"doten"},{"email":"schmidt@adobe.com","name":"duh_schmidt"},{"email":"astha.bhargava23@gmail.com","name":"asthabh23"},{"email":"aljoseph@adobe.com","name":"aljoseph"},{"email":"zouhir.dahbi@outlook.com","name":"zdahbi"},{"email":"tuicu@adobe.com","name":"tuicu"},{"email":"fmeschbe@adobe.com","name":"fmeschbe"}],"readme":"<!--\nCopyright 2019 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n-->\n\n[![Version](https://img.shields.io/npm/v/@adobe/aio-lib-magento.svg)](https://npmjs.org/package/@adobe/aio-lib-magento)\n[![Downloads/week](https://img.shields.io/npm/dw/@adobe/aio-lib-magento.svg)](https://npmjs.org/package/@adobe/aio-lib-magento)\n[![Build Status](https://travis-ci.com/adobe/aio-lib-magento.svg?branch=master)](https://travis-ci.com/adobe/aio-lib-magento)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) \n[![Codecov Coverage](https://img.shields.io/codecov/c/github/adobe/aio-lib-magento/master.svg?style=flat-square)](https://codecov.io/gh/adobe/aio-lib-magento/)\n\n# Adobe Magento Lib\n\n### Installing\n\n```bash\n$ npm install @adobe/aio-lib-magento\n```\n\n### Usage\n1) Initialize the SDK\n\n```javascript\nconst sdk = require('@adobe/aio-lib-magento')\n\nasync function sdkTest() {\n  //initialize sdk\n  const client = await sdk.init('<tenant>', 'x-api-key', '<valid auth token>')\n}\n```\n\n2) Call methods using the initialized SDK\n\n```javascript\nconst sdk = require('@adobe/aio-lib-magento')\n\nasync function sdkTest() {\n  // initialize sdk\n  const client = await sdk.init('<tenant>', 'x-api-key', '<valid auth token>')\n\n  // call methods\n  try {\n    // get profiles by custom filters\n    const result = await client.getSomething({})\n    console.log(result)\n\n  } catch (e) {\n    console.error(e)\n  }\n}\n```\n\n## Classes\n\n<dl>\n<dt><a href=\"#MagentoCoreAPI\">MagentoCoreAPI</a></dt>\n<dd><p>This class provides methods to call your MagentoCoreAPI APIs.\nBefore calling any method initialize the instance by calling the <code>init</code> method on it\nwith valid values for tenantId, apiKey and accessToken</p>\n</dd>\n</dl>\n\n## Functions\n\n<dl>\n<dt><a href=\"#init\">init(tenantId, apiKey, accessToken)</a> ⇒ <code><a href=\"#MagentoCoreAPI\">Promise.&lt;MagentoCoreAPI&gt;</a></code></dt>\n<dd><p>Returns a Promise that resolves with a new MagentoCoreAPI object.</p>\n</dd>\n</dl>\n\n## Typedefs\n\n<dl>\n<dt><a href=\"#MyParameters\">MyParameters</a> : <code>object</code></dt>\n<dd><p>An example of a typed object.</p>\n</dd>\n<dt><a href=\"#AnotherThing\">AnotherThing</a> : <code>object</code></dt>\n<dd><p>Another typed object.</p>\n</dd>\n</dl>\n\n<a name=\"MagentoCoreAPI\"></a>\n\n## MagentoCoreAPI\nThis class provides methods to call your MagentoCoreAPI APIs.\nBefore calling any method initialize the instance by calling the `init` method on it\nwith valid values for tenantId, apiKey and accessToken\n\n**Kind**: global class  \n\n* [MagentoCoreAPI](#MagentoCoreAPI)\n    * [.tenantId](#MagentoCoreAPI+tenantId) : <code>string</code>\n    * [.apiKey](#MagentoCoreAPI+apiKey) : <code>string</code>\n    * [.accessToken](#MagentoCoreAPI+accessToken) : <code>string</code>\n    * [.init(tenantId, apiKey, accessToken)](#MagentoCoreAPI+init) ⇒ [<code>Promise.&lt;MagentoCoreAPI&gt;</code>](#MagentoCoreAPI)\n    * [.getSomething([parameters])](#MagentoCoreAPI+getSomething) ⇒ <code>Promise.&lt;Response&gt;</code>\n\n<a name=\"MagentoCoreAPI+tenantId\"></a>\n\n### magentoCoreAPI.tenantId : <code>string</code>\nThe tenant id\n\n**Kind**: instance property of [<code>MagentoCoreAPI</code>](#MagentoCoreAPI)  \n<a name=\"MagentoCoreAPI+apiKey\"></a>\n\n### magentoCoreAPI.apiKey : <code>string</code>\nThe api key from your integration\n\n**Kind**: instance property of [<code>MagentoCoreAPI</code>](#MagentoCoreAPI)  \n<a name=\"MagentoCoreAPI+accessToken\"></a>\n\n### magentoCoreAPI.accessToken : <code>string</code>\nThe access token from your integration\n\n**Kind**: instance property of [<code>MagentoCoreAPI</code>](#MagentoCoreAPI)  \n<a name=\"MagentoCoreAPI+init\"></a>\n\n### magentoCoreAPI.init(tenantId, apiKey, accessToken) ⇒ [<code>Promise.&lt;MagentoCoreAPI&gt;</code>](#MagentoCoreAPI)\nInitializes a MagentoCoreAPI object and returns it.\n\n**Kind**: instance method of [<code>MagentoCoreAPI</code>](#MagentoCoreAPI)  \n**Returns**: [<code>Promise.&lt;MagentoCoreAPI&gt;</code>](#MagentoCoreAPI) - a MagentoCoreAPI object  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| tenantId | <code>string</code> | the tenant id |\n| apiKey | <code>string</code> | the API key for your integration |\n| accessToken | <code>string</code> | the access token for your integration |\n\n<a name=\"MagentoCoreAPI+getSomething\"></a>\n\n### magentoCoreAPI.getSomething([parameters]) ⇒ <code>Promise.&lt;Response&gt;</code>\nGet something.\n\n**Kind**: instance method of [<code>MagentoCoreAPI</code>](#MagentoCoreAPI)  \n**Returns**: <code>Promise.&lt;Response&gt;</code> - the response  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| [parameters] | [<code>MyParameters</code>](#MyParameters) | <code>{}</code> | parameters to pass |\n\n<a name=\"init\"></a>\n\n## init(tenantId, apiKey, accessToken) ⇒ [<code>Promise.&lt;MagentoCoreAPI&gt;</code>](#MagentoCoreAPI)\nReturns a Promise that resolves with a new MagentoCoreAPI object.\n\n**Kind**: global function  \n**Returns**: [<code>Promise.&lt;MagentoCoreAPI&gt;</code>](#MagentoCoreAPI) - a Promise with a MagentoCoreAPI object  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| tenantId | <code>string</code> | the tenant id |\n| apiKey | <code>string</code> | the API key for your integration |\n| accessToken | <code>string</code> | the access token for your integration |\n\n<a name=\"MyParameters\"></a>\n\n## MyParameters : <code>object</code>\nAn example of a typed object.\n\n**Kind**: global typedef  \n**Properties**\n\n| Name | Type | Description |\n| --- | --- | --- |\n| optionA | <code>string</code> | some option |\n| optionB | <code>string</code> | another option |\n\n<a name=\"AnotherThing\"></a>\n\n## AnotherThing : <code>object</code>\nAnother typed object.\n\n**Kind**: global typedef  \n**Properties**\n\n| Name | Type | Description |\n| --- | --- | --- |\n| mayBeSomething | <code>boolean</code> | an option |\n\n### Debug Logs\n\n```bash\nLOG_LEVEL=debug <your_call_here>\n```\n\nPrepend the `LOG_LEVEL` environment variable and `debug` value to the call that invokes your function, on the command line. This should output a lot of debug data for your SDK calls.\n\n### Contributing\n\nContributions are welcome! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\n\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","readmeFilename":"README.md"}