{"_id":"@cencosudx/metrics-client","_rev":"9-b9ac2a9dfb984510458f89733004c00d","name":"@cencosudx/metrics-client","dist-tags":{"next":"1.0.0-next.20230412-208bde9-419e8dd753db61c1c991aa0a96e009cc","latest":"1.0.0"},"versions":{"0.0.1-next.20230410-ff9bcb4-87666af802234714d397e89db5513894":{"name":"@cencosudx/metrics-client","version":"0.0.1-next.20230410-ff9bcb4-87666af802234714d397e89db5513894","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@0.0.1-next.20230410-ff9bcb4-87666af802234714d397e89db5513894","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-HX+J9u4NWRAVYah+AhHD2fBXHtKSI9vCa9CVn4MyZAysbIt7PM1eHFNRsgXoILeULx3pTHMeySCHlS8iolHBlg==","shasum":"24dc02d467e6fa0c2a3f209ca77ae07a38007519","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-0.0.1-next.20230410-ff9bcb4-87666af802234714d397e89db5513894.tgz","fileCount":11,"unpackedSize":4942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE+Z2kujUp42K64lw7NCu5v3yr06cZdV51BIiPlzGscOAiEA+qZymop7CA15ImAv0FK48R0fiMm8yNmzxOtYl+eFcKE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNIjXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyYw//dfEysRCxe7VaqgoSiK47LwDP+88WB/USn5rsK9y4mwWngNcc\r\nGcKklx7OxlV4gXbXLx2HNNmIMFMGSe0S0nQXi1oWyzHBSkEraAWnL4iPuV6g\r\ncyv+svNiBLGSrQ2wvbAmYscAIHccm7xj5EAAbVSAcKgy+gTWgAAh6NVmN+z1\r\nzkrsK3BnU3+OU3MjyQx0SW2fqCYjMeILTL62rz47OPPid18uaHFbC60BY4qn\r\nXz8Tt59WGUlcFJ5o4+n8pozz660rRB9PcClmxkN738iyERBHLCyZ62tm4Yhx\r\n4WL7JNC2I2g6DxFB5HM/7R4eX+Mnr8khaAJHapYk05/RO7uIpa8m9aZVKyMz\r\nJySLxasFWM6E7NhjLw1xkbpGThBspbQY9GWOcfvhoWKvCnsANks3kcqTMzVT\r\nX4ctfUhSN+2oX+HhOObz2gSr5PSM3VVnUNjzh33Evyq+2EzoMlTuwMt39/AT\r\npIOWIaQ33dMMH4fmuQ5B8KA2lHf/f1kYspq1oz0jHm2pRu44LHs8E/TYvjfj\r\nse/Bm5Jmm4NcYQqk3jgYqQJ3TmJcuu8ZxHD8DIPC77kh4ByyDRq6Wvl8eBHr\r\nwWMB4nyfTVCPjMPLXsxSxWZgy9X1s13j/9qf5U7J31BZBF3MQgrtBSNccSOO\r\n40LmL2VyEI9zKBPDvTzI5xSIRth2CgVYtOk=\r\n=dx1x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_0.0.1-next.20230410-ff9bcb4-87666af802234714d397e89db5513894_1681164503376_0.9363751551858022"},"_hasShrinkwrap":false},"0.0.1":{"name":"@cencosudx/metrics-client","version":"0.0.1","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@0.0.1","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-tJrFTqvZU2d9zkDeygiYFE+6HMP7elxIS3DGtpLAj2z5Rie0WI+Qb/oo3KSxeymUI9QHfTZhs1lsBAsR0utFrw==","shasum":"924590d289b5b5cc59349585e37ac900fc94de1a","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-0.0.1.tgz","fileCount":11,"unpackedSize":4887,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0/aWqNKvkkqV9S4cokNoun6oVUVBLLrWlWh1H8XG6fQIhAJvrGg1W/5BTpyGY6G9+745Bn1Mfol2Tz0YkUMqgvZO0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNIr4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphVw//ecUzrV+7m1jjgOjdZVx8yWP/IVPBHu6hQQemyc5JA9PXf62s\r\nhhVzskMM2+/5UB6ulwJYXr8O5x7rlTMHRTG5bi5/ql5P1zAI6VxHk/jDZOCs\r\n/ELVnbzxP+vYJBcjyhU8I7Dc55LTOCqTtmII3aI4caTxLmNNmFWqHCg1H5wQ\r\nbIJyIwGYtGyj22EKYh7dZrNpwkxwUGMGbo7qQTXSzQK8CdQ+73xNNrPIrIRF\r\nF97GnYsVwi3W1dfuLsRMMEqG+ajuUNxws2L1f/ghaO7ve4uuemHtrcy2l828\r\nCGN73ZMo3ZBEKBAuW6pIYQUObBdPvMzNHPe6H1ZfVvuD4Tn7gZnarx4iRkjc\r\niiYmOxKFW4xyn4NRNNFmWYyl9nxYuAQSbo20fqAyfNyVzgTr+tJ0bgO+FS3K\r\nLvvoxtpFdusqnqKu88RyMqHR6TztIYxWNd4bqhODQ9KPow3dXsr7VOGXLVD7\r\nsI+BQ18AdNmPLBIQjY8PMpqmLVbIjg1wZe/NwvTyhKo0Td03/PgV16nrJuc8\r\nqzYAXD6sFIJZ2wKzY9J6BaS1DxR4QvSO6YyCLoXC6IonJgVMYfVOMe+YqMRO\r\ntHZkNFniSuJjuY9Knr6bN8U97P6GhdBsZ6n6VVpWyAPaD8r+01zmrnEVfZnh\r\ndJeCE6yUSHB4mhgk5zDGN2Xt7ytVGIs99Js=\r\n=yLI0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_0.0.1_1681165047890_0.275596075597476"},"_hasShrinkwrap":false},"0.0.2-next.20230411-9f5c9fe-594ad9e4f4adb60d3205b539a9739c14":{"name":"@cencosudx/metrics-client","version":"0.0.2-next.20230411-9f5c9fe-594ad9e4f4adb60d3205b539a9739c14","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"readme":"# metrics-client\n\nThis library was generated with [Nx](https://nx.dev).\n\n## Building\n\nRun `nx build metrics-client` to build the library.\n\n## Running unit tests\n\nRun `nx test metrics-client` to execute the unit tests via [Jest](https://jestjs.io).\n","readmeFilename":"README.md","description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@0.0.2-next.20230411-9f5c9fe-594ad9e4f4adb60d3205b539a9739c14","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-RHk+0izHKQorMYHa/fQ//v7b9Hcn0IP6QkaAEXvDLehP+6PZkyplrZ4m8uoXoDxq80P4jb6VuF10FWxHSbFfsQ==","shasum":"14acbf2ab9631a5344602d5a1df088b40ae18920","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-0.0.2-next.20230411-9f5c9fe-594ad9e4f4adb60d3205b539a9739c14.tgz","fileCount":11,"unpackedSize":4831,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFwhZb9XEqWfhyY7dUJ65ti9ZiXJQw3o9jRJQ5/bpZcPAiEAvXC3a/oBsNXO7xicaVW2Ke3s0maJEP0FYR/jPnA1jQg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNLYWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqj8w//cif2Ba+4AA7Wvz/qlPHPhsx50nE9UfslTNouHrC9sQo831Wr\r\nGB3eMHLouIwYiNrAi8bULb2H912HiiBH/wdKXpxx5yIOycZv81YuKsag0SJv\r\nMprP1gkA7839IosSLrW94DvwwTi7/eAATQmzr1LZqvisW+502HKni2OBw8HK\r\nKKspCsV2srGzEhAqgBAbRrmYL+In0h4MNUgQMjvea5mqqdH4+IoJgVkAMbyy\r\nWVfd6ix+xicg7MxO2lzcHOxsPq6gXySdlv+1fRpZTvR2Z8+En1Xu2DM3NeEQ\r\nrlenX8MSeG/T6EokA+F3kvdb7dliXiWmmk/q5didpV30tw+COLchrdCC2AMs\r\nt9zJDM7jbR3C9JfQ8gcbX8de+izKOpfHfxEmnFaqRlKAy84whr2vUVEaqsQO\r\nw3GHzrLC7IM0G0Ghn3B6qqt4rXAxSyqMkV1zY7xFOhqIxW7Xrb9j6UCki1Rj\r\n/CKP0cp/YNu9urVDdTBKsTw/bFXzv9/HosgNWUQ9MeHT0V6o8blfQl7rb69U\r\nBdGBWFgrZ2IcTGxNu+OEBh2WxA7zCetukr840DE2aOcW+2tTDxQ8jl+QCjfV\r\nNPezvwXS+Ms37XOJLvpEvLlrZ7EUO2RYa5YTVLL2MmGzh+SBcKHkmrH7Vns/\r\n+vFVPkgGZTWpjVy6thTPX3m4SVohrn57M4Y=\r\n=GCU5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_0.0.2-next.20230411-9f5c9fe-594ad9e4f4adb60d3205b539a9739c14_1681176086007_0.4731703969244425"},"_hasShrinkwrap":false},"0.0.3-next.20230411-678e6fb-b5848b618c85febecae93444ee14982c":{"name":"@cencosudx/metrics-client","version":"0.0.3-next.20230411-678e6fb-b5848b618c85febecae93444ee14982c","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"readme":"# metrics-client\n\nThis library was generated with [Nx](https://nx.dev).\n\n## Building\n\nRun `nx build metrics-client` to build the library.\n\n## Running unit tests\n\nRun `nx test metrics-client` to execute the unit tests via [Jest](https://jestjs.io).\n","readmeFilename":"README.md","description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@0.0.3-next.20230411-678e6fb-b5848b618c85febecae93444ee14982c","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-T4rMtCoaMa0dz6VU58Vz/xKd+Xk1Yi9Bz3tqtl8EXnYMV2hAvQEY76oCMahgU50Z6EnanLsIK6pH65+A47bxbQ==","shasum":"ecb1085fe99ee23bc31ef4c23930dc419a314fa0","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-0.0.3-next.20230411-678e6fb-b5848b618c85febecae93444ee14982c.tgz","fileCount":11,"unpackedSize":6275,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH8cD/3nodsJv58B+WuxWkvC/0sRwySVsQcDimfQJfwIAiEAy6JyvozvawUatwKRuwOfgWdMC3oDGe6z5grgK/HiiEY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNZ0fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUqQ//fquhFFIa+2zoCmSALq8TyZc61DFXsaE+VpYEG+ODqypwLEHm\r\nAj9XpGn6gYddheAUb88EL4JirOEKob1iEF8FVLu1x6RaUL4n7nmkzCBKtw+2\r\n2vGpTEG3UtXYTPdxkqH6YVYEBFxK/a2yFka9hZayFEFeWJvjTSkWFxDVl+je\r\nQM9gK9ij5g6p9IagRDdXD1MJ6FI/5HIoU/jOsmPPRVIVh5UbybZDLC06x+3C\r\nrt0wjjC5wnIs4sR0tJuHjw2mp6o2tKvHLzw4KLK1QRRKl0zyQ7wQHvblgfeV\r\nLhqqDGvAq1cxP1nSXXI6VTicWBrmL2qIdfSDqMfmWtiaqnhQtukNM/fv9aig\r\n7yxihtC9Gn9CtKfu6qx9sM6IzcR8CBrmmPwklqJf7rAJHn++osMGEtftxVN/\r\nkFtOVrqBaEZ1QrSpRtih6L/fGoN2j80jb81waedci5uuAPofjosIdZiEfsld\r\nkVQ4i16nyye6vbhc/Vc+rbjRbPzQxlPESQY2aAwBXVM9swbJYLJFTR1o/Rm0\r\nH4l77JE88LH3cNYAuR+v0JDyRIY4M4tNNgMoyxTjyhXTyy/IKrNeHFwoaofG\r\neYFd67NPL8NcnFwX5NCiO/aKxTvH4w8N/X+ADTSGxsnkGMSbq6WEJ2vrZoW5\r\nKJIGKQe9mc0nxGQ7KwLiaI5rhoGr3b5FUwY=\r\n=snnh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_0.0.3-next.20230411-678e6fb-b5848b618c85febecae93444ee14982c_1681235231222_0.8309423913078424"},"_hasShrinkwrap":false},"0.0.3-next.20230411-d521c88-332b28e33be000f82a708bf24777e2b8":{"name":"@cencosudx/metrics-client","version":"0.0.3-next.20230411-d521c88-332b28e33be000f82a708bf24777e2b8","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"readme":"# metrics-client\n\nThis library was generated with [Nx](https://nx.dev).\n\n## Building\n\nRun `nx build metrics-client` to build the library.\n\n## Running unit tests\n\nRun `nx test metrics-client` to execute the unit tests via [Jest](https://jestjs.io).\n\n## Installation\n\nBefore being able to use the library to expose metrics, you need to install the library. Then:\n\n```sh\n$ npm install @cencosudx/metrics-client\n```\n\n## Importing\n\nTo use this library, you need to import the following 3 components:\n\n```javascript\n// Using ES6 imports\nimport { ITask, Module, publishMessage } from '@cencosudx/metrics-client';\n```\n\n* ITask : Required model/structure for sending data to metrics module\n* Module : Available modules to integrate with the metrics module\n* publishMessage : Function by which the message/data will be published to the metrics module\n\n## How to use ?\n\nTo make the information of the module in use available to the metrics module, once the required components are imported, it is only necessary to define an ITask and publish the information through the publishMessage() function.\n\n```javascript\n  // Defining the ITask\n  const id = `globalizacion-${Module.FOUNDRATE}`;\n  const task: ITask = {\n    id, // generated id by region\n    country: 'AR', // Country where the module is used\n    module: Module.FOUNDRATE, // Module to be used for metrics\n    business_unit: 'SM', // Business unit\n    state: 'CREATED', // Status: 'CREATED' | 'COMPLETED' | 'EXPIRED' | 'IN_PROGRESS' | 'DELETED'\n    created_at: new Date().getTime(), // Timestamp of metric creation\n    updated_at: new Date().getTime(), // Timestamp of metric update\n    store_id: '12345', // Store ID\n    // metadata: The metadata to be sent depends on the module being implemented for metrics, as certain modules require at least some necessary fields, such as foundrate requiring at least the \"origin\" field and the ...content field is all the metadata or data required to be tracked in the metrics module\n    metadata: {\n      origin: 'ecommerce',\n      ...content,\n    },\n  };\n  // Publishing the message to the metrics module\n  publishMessage(task);\n```\n\n### Accessing to ITask props\n\nThere are some properties such as country, module, business_unit that are predefined values, in order to standardize the data that can be received in the metrics module and have a control point on which data to filter and thus avoid discrepancies between the data that each region manages\n\nSo if you need to add any other value to the mentioned fields, you should contact the globalization team to add and make the new data available\n","readmeFilename":"README.md","description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@0.0.3-next.20230411-d521c88-332b28e33be000f82a708bf24777e2b8","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-taMM6uotLVEKvIn1Dln7usCqVnx6otUvCcNknN6Ysd7SSRBxVNmZwtLpMdA8HI9MO9jhexo8wWY/WmZgQhihLw==","shasum":"1c2fb3b806d723168a3ac0a55acf162b621588f2","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-0.0.3-next.20230411-d521c88-332b28e33be000f82a708bf24777e2b8.tgz","fileCount":11,"unpackedSize":8471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0uT2OouMK0GoywLuGrcFrwEl8MuSgNSP13I3h3OZ1EAIhAI3j5UQqNa06utI/zuRAs2pN+ot70V6C9rHc2SQuwT8v"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNeO5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1ng/9HgkSdtmT2lwh0m2osGSReuS7V6HNVUScCKCn5dZWUkowkFat\r\nvRaWVViHzoXX/byDaXcvY5VnkIcxnHuGcahJQN1Y4Cx4c6vdpAa7PjdGgdfl\r\nk3ulH99jPjEbNeN07jFL4Mzqbi93yy3hNepj3XnIQU/EpOTnUC8hVEN5rKcj\r\nZLWIDAEAQxrMdvcXtwvGXXUSrdv22RZ1iLRQiV3gyFHs6zc5VM7QVYH4zubj\r\n7rETbI5jpDkmDJPF9u6ic1is5VD8zdiOjKIpk9Mrs79Q8QeJZHVXwnIva1J1\r\nHwUimJtCFTVA58FF80h46lg3vSGJqwt4o7A4ZE0VRFJmS7NbDvqqpbKZyFfu\r\n2ZyxNi5ZsmkwoaSaRVhB2TH1MJJuy4MoqQ9pNUSKvOhYtT6xokj52b0Jnuyu\r\nKJcbKE3YWhB/g5BEbkNu5xPO2EHhCeUaWPVeGb6CwHjxl2vRRM75LeFRJ7x1\r\naouQFyfD3t2zTDbeVMKrhHtlrRZCYm/qy6Flisx0obyPbOScKD3EboiUjwNJ\r\n6p6RXVF/OkNKX8KiEFUes253bmyCIL7MDKXFSKnAFpzuouWe1fv9y77+mD4Z\r\nKymoX1k9Y/hG33hDP6PWJP20T6HMeyyZBuUo+HHIxJa1sp800s/jKol4TQf0\r\nfVHsSjUl0snKmOP28qPXz2ZtZBtnhwpb5zI=\r\n=WfNU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_0.0.3-next.20230411-d521c88-332b28e33be000f82a708bf24777e2b8_1681253305065_0.462588746360725"},"_hasShrinkwrap":false},"0.0.4-next.20230411-b78cf23-e80e4f460de3fe9e188d21a220046c70":{"name":"@cencosudx/metrics-client","version":"0.0.4-next.20230411-b78cf23-e80e4f460de3fe9e188d21a220046c70","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"readme":"# metrics-client\n\nThis library was generated with [Nx](https://nx.dev).\n\n## Building\n\nRun `nx build metrics-client` to build the library.\n\n## Running unit tests\n\nRun `nx test metrics-client` to execute the unit tests via [Jest](https://jestjs.io).\n\n## Installation\n\nBefore being able to use the library to expose metrics, you need to install the library. Then:\n\n```sh\n$ npm install @cencosudx/metrics-client\n```\n\n## Importing\n\nTo use this library, you need to import the following 3 components:\n\n```javascript\n// Using ES6 imports\nimport { ITask, Module, publishMessage } from '@cencosudx/metrics-client';\n```\n\n* ITask : Required model/structure for sending data to metrics module\n* Module : Available modules to integrate with the metrics module\n* publishMessage : Function by which the message/data will be published to the metrics module\n\n## How to use ?\n\nTo make the information of the module in use available to the metrics module, once the required components are imported, it is only necessary to define an ITask and publish the information through the publishMessage() function.\n\n```javascript\n  // Defining the ITask\n  const id = `globalizacion-${Module.FOUNDRATE}`;\n  const task: ITask = {\n    id, // generated id by region\n    country: 'AR', // Country where the module is used\n    module: Module.FOUNDRATE, // Module to be used for metrics\n    business_unit: 'SM', // Business unit\n    state: 'CREATED', // Status: 'CREATED' | 'COMPLETED' | 'EXPIRED' | 'IN_PROGRESS' | 'DELETED'\n    created_at: new Date().getTime(), // Timestamp of metric creation\n    updated_at: new Date().getTime(), // Timestamp of metric update\n    store_id: '12345', // Store ID\n    // metadata: The metadata to be sent depends on the module being implemented for metrics, as certain modules require at least some necessary fields, such as foundrate requiring at least the \"origin\" field and the ...content field is all the metadata or data required to be tracked in the metrics module\n    metadata: {\n      origin: 'ecommerce',\n      ...content,\n    },\n  };\n  // Publishing the message to the metrics module\n  publishMessage(task);\n```\n\n### Accessing to ITask props\n\nThere are some properties such as country, module, business_unit that are predefined values, in order to standardize the data that can be received in the metrics module and have a control point on which data to filter and thus avoid discrepancies between the data that each region manages\n\nSo if you need to add any other value to the mentioned fields, you should contact the globalization team to add and make the new data available\n","readmeFilename":"README.md","description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@0.0.4-next.20230411-b78cf23-e80e4f460de3fe9e188d21a220046c70","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-3+/0g3b+HJO0mQYfxDQhVxYjVu1j4Zu4G8OCLNhK8fC+C61MtBTCl8jtwNXy/CszrVKB51sYHDhsoDayAtk6Jg==","shasum":"a49c1c5cf80863f652fc77085790bd40b8dddbbc","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-0.0.4-next.20230411-b78cf23-e80e4f460de3fe9e188d21a220046c70.tgz","fileCount":11,"unpackedSize":8471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID84vrPsIZB9VyPiL/aj/aOcK1XDMthZb0A1BdDXzaxVAiEA34MYUq8IUbhuR0u15mXs4iWHeZ7PDFE6nGIjccZ5FC0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNekDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrf7w/5AWnIx3WdbU8MqyE84qTrornNONbC3R15c+Y/oNCOMWdxTEDy\r\nbM2YAr7RvSkeclzBC5m8DGv22KblVD657k3GQLN3nUbWg2hYJiECtLDqnTQl\r\nphLc03b55NTd7fP6DXf71W94c6KQA9u8N4yAJfxeWBaCnYtB3XzdoYOOtB0c\r\nLoVaCh8c56BbZeV2OJ4unoBil+gqUUnVSSa6/MWNsQxMjuUGAvNm1O2TdNwI\r\newKAVPqaKifwPTCAOe2f6bn+Jgqy79wUqLlbKPPmcxC8k0XsUiVvFh8+ARH6\r\n1OrV4Ji8uL1ocDlo74VDNrUddMUiPisaByn1OoUrq9V4t+3US9VD2r9cowe8\r\nlLpdsCWY9V79hmMOeAwcbaWuAR0DNwb7HsaRCom2+XJ+I6xTG840/ZlU088B\r\nxCwCHH1TO8StqOiM4dGnSBpDbG7F4rqXJgmOzwqilpJbTWA/Lwq6m4qFBRue\r\nScWMzPrOhdKGBW2l9pAzajcMyQgfE1Mh0weUtkFE1tTdR5F3C3maBJYPE/VT\r\ngh8jvlYeHG1DrOTYmv1EiF3J3U+Ob9JXrGVlOdCnGR3UShXWpsv2a5VvneY8\r\nijOYFECEKS5qyb+MR36ZiDv8MVNvH7FwPp7zHDaHMKaQJnxSTIcr8ku8Drkv\r\nxiy31srTLbY5ObrRVtU4azSHNomFQ/KhnPQ=\r\n=kXqa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_0.0.4-next.20230411-b78cf23-e80e4f460de3fe9e188d21a220046c70_1681254659119_0.3309554300435349"},"_hasShrinkwrap":false},"0.0.4":{"name":"@cencosudx/metrics-client","version":"0.0.4","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@0.0.4","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-++S1WSHRzVdiGxuKvwTULT6qGkIiX7nvVNm0YOyIQRcpXjOGgD0I96qMv+/RHfATk7XeRmgh+J+bLBq7Mk0QGg==","shasum":"9bf33d18ab812004ab644c90cf235812e16891c8","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-0.0.4.tgz","fileCount":11,"unpackedSize":8416,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCizDDN1joBRH8bOoZoINZg+n0x8/T2lAVjibTLtbFQfgIgZ0G3wmQVoqYrJQCI3RB+rPZ4uZWYWK2hck7dMTDrnn0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNen9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoN+hAApLIwSSyqINE5oYaiJmD2FaCaFPJHw1XiXq9jkBrnZglEiamY\r\nZ29UceCsyAoTHOCNbqYlw8Encr/UeLzRXiMI+zxbY1Lwyu7e6HItpSpQ5+hl\r\nQP5EtE03dldgNNtm0hvKtk+Lc4EJGNbGUakXTrWLKVGVKgZ9S4MpuldLI5n9\r\nH9AM6rTyLxq8K9hNdJ7qpkYIrT8uKWD5y/0RJPhlvTxzFv6tirK6lHvcS+PU\r\nBikioa1h8PTz4g5PaNLuKHTzWr3Kego2ob3PKt1kc2fIJXbZlnOUWVyv5exw\r\nQYZ+hEA+RNTknJ0ljqhce1I4p3SkofTPHh58Wn4joe6QHfjGpRwzXBWt1omu\r\n7ZcTPyLx/ht5Vnjuug19r2N3sP79MJvnB5nBaqMTO9awB1FhaBKO146gl/OX\r\ntVSAH+/aTKuSmJeDDrNMYEBs3NmbwDs5MA1DxhrDiarYLQnjJzoujwVPCtNl\r\nkWphbgrLK/1LaYMlxaZ/t3J4PYlEEH9+oGcBITPuU0kSI71H9kGS/Jjnp5AT\r\nfsSUIV/Ocr+LNV6czFPBQki4a+0wqdr5iYL3GYE1dIrPD/pomy0SfR9ns1Ts\r\nCsMbnJVYTdFwBT/Fj7pZQeu70tylBticB1zAkM/45UPWbwHV9zd9Nsc3yEIt\r\nDBzDVOmBH4nJmprNwwpklarqEKizS8m+dgc=\r\n=aHF1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_0.0.4_1681254909472_0.1707976298212226"},"_hasShrinkwrap":false},"0.0.3":{"name":"@cencosudx/metrics-client","version":"0.0.3","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@0.0.3","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-tRm+O4/V9dbNrdOYSMGn9hdpqRWHkOyP1cZy5wyn4qSY9v8SHslY/es3uy/rFjcK8jA80cZCzlW23wEmmD8EdA==","shasum":"d4fa4f0988234f1de15b39e836114fcd194aefb1","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-0.0.3.tgz","fileCount":11,"unpackedSize":6220,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFCQfial/lMMDjrPKiMaOURtZJTeF+NaBvG5/wfIK/m/AiA29uvRWmaDjnbvow64RdHdpO5UDkl5m29/DhSBguh5/Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNqCVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHVw/+OnErtzbI8C9eiUK/UcgiMrUZsOg3sTG7aVqFJir0Vf2OXgIo\r\nqjoDZa9Cqin9Cz87VRn9DyrMoEREjVg7uYcqdHEaZaC8ZhAtnTzmNbiQM81E\r\nSCovHEaK+IZ1pnB5d37+c8jSYmpe4AtQGQTJ02+zUygJlmuBWRXnW3dXZejf\r\ncAqcr6TykwZY2hhVv2nAKv2R9bD+SsRIJehiuoR4I7qpGy800bFZ7bBSIhZL\r\naynWPaAtfvz/Yq4rQnn/NEDuEk+2ySWCDxscO2PmE1abjcKACtjdCnVbFmLN\r\nGoRvprmuoevtz81xCvVypAU9Ee1BgtaTQiQc6sj9JVSII+Ioye/VFnl1sdKU\r\nOxVJUlOi4aCnNox3eRJ5LJDWtbJpD9qLbI2AWPxADu3Dnwv8hM76+VdczGoe\r\ncJdAsDSddnN55ppLRSGWChD0Tc1VLKzglN8KCJGR8VVc/DGON9IdbRbap6/I\r\nmASUrNB2rBVepoBD2lqj+K2EI6kcuVV9I32M/CtW5zUsNTPeN1wy4pKaAfq0\r\nMYU1y8G2chZxvJDpRulOkZVzw/hj4NDgolkEoSM3tyuugFkuVSWCrl0hsvBK\r\nrT7NYwmpRDt3T1X1v0CSG2NL4Z/ThEXkgKu7QGpk+7VX8za54XJ05a64ka/T\r\n7vXV0JshCf0pHdkCKhprBDKW6fo0b77YQCg=\r\n=+X5p\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_0.0.3_1681301653003_0.6703981275519433"},"_hasShrinkwrap":false},"1.0.0-next.20230412-208bde9-419e8dd753db61c1c991aa0a96e009cc":{"name":"@cencosudx/metrics-client","version":"1.0.0-next.20230412-208bde9-419e8dd753db61c1c991aa0a96e009cc","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"readme":"# metrics-client\n\nThis library was generated with [Nx](https://nx.dev).\n\n## Building\n\nRun `nx build metrics-client` to build the library.\n\n## Running unit tests\n\nRun `nx test metrics-client` to execute the unit tests via [Jest](https://jestjs.io).\n\n## Installation\n\nBefore being able to use the library to expose metrics, you need to install the library. Then:\n\n```sh\n$ npm install @cencosudx/metrics-client\n```\n\n## Importing\n\nTo use this library, you need to import the following 3 components:\n\n```javascript\n// Using ES6 imports\nimport { ITask, Module, publishMessage } from '@cencosudx/metrics-client';\n```\n\n* ITask : Required model/structure for sending data to metrics module\n* Module : Available modules to integrate with the metrics module\n* publishMessage : Function by which the message/data will be published to the metrics module\n\n## How to use ?\n\nTo make the information of the module in use available to the metrics module, once the required components are imported, it is only necessary to define an ITask and publish the information through the publishMessage() function.\n\n```javascript\n  // Defining the ITask\n  const id = `globalizacion-${Module.FOUNDRATE}`;\n  const task: ITask = {\n    id, // generated id by region\n    country: 'AR', // Country where the module is used\n    module: Module.FOUNDRATE, // Module to be used for metrics\n    business_unit: 'SM', // Business unit\n    state: 'CREATED', // Status: 'CREATED' | 'COMPLETED' | 'EXPIRED' | 'IN_PROGRESS' | 'DELETED'\n    created_at: new Date().getTime(), // Timestamp of metric creation\n    updated_at: new Date().getTime(), // Timestamp of metric update\n    store_id: '12345', // Store ID\n    // metadata: The metadata to be sent depends on the module being implemented for metrics, as certain modules require at least some necessary fields, such as foundrate requiring at least the \"origin\" field and the ...content field is all the metadata or data required to be tracked in the metrics module\n    metadata: {\n      origin: 'ecommerce',\n      ...content,\n    },\n  };\n  // Publishing the message to the metrics module\n  publishMessage(task);\n```\n\n### Accessing to ITask props\n\nThere are some properties such as country, module, business_unit that are predefined values, in order to standardize the data that can be received in the metrics module and have a control point on which data to filter and thus avoid discrepancies between the data that each region manages\n\nSo if you need to add any other value to the mentioned fields, you should contact the globalization team to add and make the new data available\n","readmeFilename":"README.md","description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@1.0.0-next.20230412-208bde9-419e8dd753db61c1c991aa0a96e009cc","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-z9hyTLo6wPvTGonAiDO/HPB7/edEHk3WdGQYnyE5oAyX8n96HIBVrRRYQ0l8srFqVuB+UISldO33NQ9ARJTRmA==","shasum":"c77ebaa8c16382382f54456e412d40b6eccdfb7c","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-1.0.0-next.20230412-208bde9-419e8dd753db61c1c991aa0a96e009cc.tgz","fileCount":11,"unpackedSize":8558,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkn0gXm44Vz0JwlyIpRhBQHvNwPBSjZtoTLbt6KHgqhwIgBXib4/e0+t7ifI7Rz9E945PS8ylkc5s9lJ1TXwjsWRI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNyHTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtlRAAkD3MCp/OJ/PYnaPIeTstQS61u7g0ZuR8bbvW/6whpuxsvDhR\r\n0dgFvVtSwgUqiWpfE419zKYTBFJ3zisfyF9I2SBIPvHCo9wM4/xYRSuVu7eb\r\neEkDFlqhuYVP3Lu/CvqKSZ5iFNti4nMqScmKZlwCyPWW1ncOeZrPLo4bLqZ7\r\na89l2QWaj3y2izuiToPU/WNH70q1jdN1tdEVje19b8PiNeVZe12N0sCYqe8C\r\ntmEEeVVSiuwnnM1SQiGOrW3lj1ml3wCi+DH7Gh27o0ItGpau0zKwpWaT8T3p\r\nTyuxsIa+ycza76vei/VSC4Gn8l1RysC4cQTfYuqWa0FyoGOpQVUQ7E4YSr1L\r\n7V4C6qhDaNz9qLkfgIK6SzE2vNIbT6OvRC8x+wkklX/Jyq246ipuJRtuny8g\r\n+RYlbZl+EUhBtMuMRolx3x2a+Bw9Mu6DO9Dx5TsL02TEWC9/vzNKr2JT7x81\r\ngPRJekD/8Kg6BqB0opsEE8L6Kxh96etf90DttlX6ZWFmIRSBeqtNV/i6ZTEz\r\n1SDyyZVm5o8piMqCu6UnkV0KmA/uDcm36THA7/qi4VN28AMrBoBSg/xsqkhC\r\n5WbY0iQDdS5EQoMqwfGexIIvkG4jghhKbRa0udXKJb8m9KoSCNPh8DMVSn2f\r\n62JMfWn9kgvl5LHcfBEJynScZHHieSxwrLQ=\r\n=64cN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_1.0.0-next.20230412-208bde9-419e8dd753db61c1c991aa0a96e009cc_1681334739469_0.2604303505606269"},"_hasShrinkwrap":false},"1.0.0":{"name":"@cencosudx/metrics-client","version":"1.0.0","type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","dependencies":{},"peerDependencies":{"@nestjs/common":"^8.0.0","@team_seki/kafka-streamer-plugin":"^1.0.9","tslib":"^2.3.0"},"description":"This library was generated with [Nx](https://nx.dev).","_id":"@cencosudx/metrics-client@1.0.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Iz6Tm1KPzQotY6asD/oPquiRb2a4b8Xd/Um0skgBOKQ06a0GmaIMugGPVfZ+EqkuUSO9C/vApILFphNH9203mg==","shasum":"289a0a8e7e9b1b8509e0247abad3ae8aabd03ee1","tarball":"https://registry.npmjs.org/@cencosudx/metrics-client/-/metrics-client-1.0.0.tgz","fileCount":11,"unpackedSize":8503,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4bTuAT3iTRKwCSlR1asaZF+J6GhPMp+Qsy73dCzMNPQIgOf+4ijeA7M0/OX7UxL0WN49gWGEUpPlxmURa2CSHo6g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNyPtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqulw//emT8z4bKV6KDsmlYrSHeRC6US36QXvV7S7iwAtFnqlpXmYgD\r\nVhogM3lHFlz6ZQ632G5sbshipGVmPbAsUtVTYxzvsc8EAUYa9KqYKWKG23a3\r\nnM6ZLIftPgrgtr2WRg/q/MHYpmZSAwdl9cOOMPtXrSdb1w/IGk2xwjt4gRee\r\n1NjjdY9pqM6x+Dw+2wCHPSEd+zCU9YmUDzjHa0PAnqUXKNBkCTuQ1eFc99Fs\r\njx7PuH6ctdD3vMRXTcJvTa3BOHATGFE5qOK2CH/14Sptk5/lBPNzhGdPM/ej\r\nS5X7khDVZAa/mLltPJhncs0YWEXrAEVKUQw+2LUEPeJ2jky0gzNoniHpdKAE\r\nEvnJcsyaxVuPX7ryz0zfZYYoQY11dB4MdNMXkBBkM77RnIsrk+GbKkSNuXv9\r\njSRdCedvA1G0/nhELi++f4CsDEnT2zBn20iOtblb5kx14YcO0fAwbn1nUJrR\r\naGZXouAghC98cp/6YQSS7X76DRKjJfv9cuzVF4gSa93KJApVk8gD+9PaUWKT\r\nhXRKoaENjVXCBBpLC/9Oy2pfXAykH6enVsWB2ZI/RSbJLOj+mpmso6Z0Faj+\r\nnIwS4S7J87sKaDBUedF8Bu21c1mj2bddDkuWdsSsWV9XHqOxbQ2Kod4qfR1L\r\nCq/dPYpenrjV1ZNDQ5xMtax24veIQCzvXeU=\r\n=Uh/8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"maykelg2005","email":"maykelg2005@gmail.com"},"directories":{},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metrics-client_1.0.0_1681335277092_0.16041460126850438"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-10T22:08:23.306Z","0.0.1-next.20230410-ff9bcb4-87666af802234714d397e89db5513894":"2023-04-10T22:08:23.542Z","modified":"2023-04-12T21:34:37.414Z","0.0.1":"2023-04-10T22:17:28.062Z","0.0.2-next.20230411-9f5c9fe-594ad9e4f4adb60d3205b539a9739c14":"2023-04-11T01:21:26.195Z","0.0.3-next.20230411-678e6fb-b5848b618c85febecae93444ee14982c":"2023-04-11T17:47:11.370Z","0.0.3-next.20230411-d521c88-332b28e33be000f82a708bf24777e2b8":"2023-04-11T22:48:25.248Z","0.0.4-next.20230411-b78cf23-e80e4f460de3fe9e188d21a220046c70":"2023-04-11T23:10:59.297Z","0.0.4":"2023-04-11T23:15:09.664Z","0.0.3":"2023-04-12T12:14:13.241Z","1.0.0-next.20230412-208bde9-419e8dd753db61c1c991aa0a96e009cc":"2023-04-12T21:25:39.635Z","1.0.0":"2023-04-12T21:34:37.237Z"},"maintainers":[{"name":"luis1701","email":"papu79346449@gmail.com"},{"name":"oscarlea02","email":"oscarlea2202@gmail.com"},{"name":"chinetepro","email":"chinetepro@gmail.com"},{"name":"hardwork91","email":"carlosadiaz91@gmail.com"},{"name":"maykelg2005","email":"maykelg2005@gmail.com"},{"name":"fmalave","email":"frankmalave.work@gmail.com"},{"name":"amaru_ugaz","email":"andoapata@gmail.com"}],"description":"This library was generated with [Nx](https://nx.dev).","readme":"# metrics-client\n\nThis library was generated with [Nx](https://nx.dev).\n\n## Building\n\nRun `nx build metrics-client` to build the library.\n\n## Running unit tests\n\nRun `nx test metrics-client` to execute the unit tests via [Jest](https://jestjs.io).\n\n## Installation\n\nBefore being able to use the library to expose metrics, you need to install the library. Then:\n\n```sh\n$ npm install @cencosudx/metrics-client\n```\n\n## Importing\n\nTo use this library, you need to import the following 3 components:\n\n```javascript\n// Using ES6 imports\nimport { ITask, Module, publishMessage } from '@cencosudx/metrics-client';\n```\n\n* ITask : Required model/structure for sending data to metrics module\n* Module : Available modules to integrate with the metrics module\n* publishMessage : Function by which the message/data will be published to the metrics module\n\n## How to use ?\n\nTo make the information of the module in use available to the metrics module, once the required components are imported, it is only necessary to define an ITask and publish the information through the publishMessage() function.\n\n```javascript\n  // Defining the ITask\n  const id = `globalizacion-${Module.FOUNDRATE}`;\n  const task: ITask = {\n    id, // generated id by region\n    country: 'AR', // Country where the module is used\n    module: Module.FOUNDRATE, // Module to be used for metrics\n    business_unit: 'SM', // Business unit\n    state: 'CREATED', // Status: 'CREATED' | 'COMPLETED' | 'EXPIRED' | 'IN_PROGRESS' | 'DELETED'\n    created_at: new Date().getTime(), // Timestamp of metric creation\n    updated_at: new Date().getTime(), // Timestamp of metric update\n    store_id: '12345', // Store ID\n    // metadata: The metadata to be sent depends on the module being implemented for metrics, as certain modules require at least some necessary fields, such as foundrate requiring at least the \"origin\" field and the ...content field is all the metadata or data required to be tracked in the metrics module\n    metadata: {\n      origin: 'ecommerce',\n      ...content,\n    },\n  };\n  // Publishing the message to the metrics module\n  publishMessage(task);\n```\n\n### Accessing to ITask props\n\nThere are some properties such as country, module, business_unit that are predefined values, in order to standardize the data that can be received in the metrics module and have a control point on which data to filter and thus avoid discrepancies between the data that each region manages\n\nSo if you need to add any other value to the mentioned fields, you should contact the globalization team to add and make the new data available\n","readmeFilename":"README.md"}