{"_id":"@7nohe/app-store-connect-api-client","_rev":"2-009b9faced589e95f79cd6ab3fb85921","name":"@7nohe/app-store-connect-api-client","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@7nohe/app-store-connect-api-client","version":"0.1.0","description":"> App Store Connect API client for Node.js","type":"module","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"keywords":["apple","app","store","connect","api","client","ios","nodejs"],"author":{"name":"Daiki Urata","url":"@7nohe"},"repository":{"type":"git","url":"git+https://github.com/7nohe/app-store-connect-api-client.git"},"homepage":"https://github.com/7nohe/app-store-connect-api-client","bugs":{"url":"https://github.com/7nohe/app-store-connect-api-client/issues"},"license":"MIT","dependencies":{"csv-parser":"^3.0.0","dayjs":"^1.11.4","got":"^12.3.1","jsonwebtoken":"^8.5.1"},"devDependencies":{"@antfu/eslint-config":"^0.26.1","@types/jsonwebtoken":"^8.5.8","@types/node":"^18.6.5","dotenv":"^16.0.1","eslint":"^8.21.0","tsup":"^6.2.1","typescript":"^4.7.4","vite-node":"^0.21.1"},"scripts":{"build":"tsup","debug":"pnpm run build && vite-node ./example/index.ts","lint":"eslint src/**/*.ts","release":"npx git-ensure -a && npx bumpp --commit --tag --push"},"_id":"@7nohe/app-store-connect-api-client@0.1.0","_integrity":"sha512-ITMN9Aw0ucL5NXSs4PjTSV6E9dxBLUz0KRm16MnTn4QbM+/3u4BcrVK34CR0rTY7hZ26zv+YxCvZPW44swf3Hw==","_resolved":"/private/var/folders/w5/gdgp75rs48742wn5mt359rjw0000gn/T/e7d373134eff9de3ffe659b9ad458a16/7nohe-app-store-connect-api-client-0.1.0.tgz","_from":"file:7nohe-app-store-connect-api-client-0.1.0.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ITMN9Aw0ucL5NXSs4PjTSV6E9dxBLUz0KRm16MnTn4QbM+/3u4BcrVK34CR0rTY7hZ26zv+YxCvZPW44swf3Hw==","shasum":"31851f5e8ea7b56157bf19841478da563b759f54","tarball":"https://registry.npmjs.org/@7nohe/app-store-connect-api-client/-/app-store-connect-api-client-0.1.0.tgz","fileCount":14,"unpackedSize":122892,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEsXVZArFO3P0JxDCSLrPrn3SaaFMlBCbPG09bH4fbsjAiAqgwZHt7pf7bnZc4+t4DGQRawd/TioKZnNrP6rexkZ2A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9d2IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqf3Q//Qu6SyAU+iw50eB1jjvYvSfs/vL9mWtj4L4ZGkgM/Yzu8Sviy\r\nwICZqIEH5yaxdCM0zzgsdX4XCQCQ3vUhxoauAfpR6yPMn774nEC2EagNKikU\r\nCr0GUZbhhAmX3saQzhHQQWp/r1WYYQYbltX+8xVAST3RTIbSBJ7KbEqrK66/\r\nWWw30uwZk4Zo9QYUtY7rIHzwpTRKfaBbGl1c9yaULNyJzrjjlqRv4WbLSOEe\r\neBbz2j7xoDCaKBA51RbJXYFs+v/WKUBBiSNW/CI1hEIXofWH8gr1dRCLV+VN\r\ncr0G6oHgGEInd6NinZ9fZv103Tii3mZ+Hn397qP/BBIcAsRpHQQYgbzCq9Oz\r\nFpgP3RZPO4cB3JqLHS5pLLTZISxyFev8GYI/HO3j3MUve94jQxhysyCbiIXw\r\nOpb+PiNpHjYo+7k+tN6KQkOxRr0MKy9OvwWGExk8NAunYVrwtBZIGoI31rEH\r\nR1rldLEK2je51k/KNvsA6pt+nAW9N5kBiXzarzEl3ljtKM6YXn5NABtiLQV3\r\nRznktfjJDAmDeC67b4J70rykk50q/NYVxAIyMmlfjU0EJ5Yqb/Qc07S+eiAl\r\npr9RkB4/4/fcGw4IMVGpznp5tWOsihMtRQATEaUwLDVyTC10KLTVf8nci0OV\r\n985tKrJK3pqiHxsIxif1T/3j4El9I527TI4=\r\n=2Loq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-store-connect-api-client_0.1.0_1660280200691_0.29064637169101193"},"_hasShrinkwrap":false},"0.1.1":{"name":"@7nohe/app-store-connect-api-client","version":"0.1.1","description":"> App Store Connect API client for Node.js","type":"module","main":"dist/index.js","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"keywords":["apple","app","store","connect","api","client","ios","nodejs"],"author":{"name":"Daiki Urata","url":"@7nohe"},"repository":{"type":"git","url":"git+https://github.com/7nohe/app-store-connect-api-client.git"},"homepage":"https://github.com/7nohe/app-store-connect-api-client","bugs":{"url":"https://github.com/7nohe/app-store-connect-api-client/issues"},"license":"MIT","dependencies":{"csv-parser":"^3.0.0","dayjs":"^1.11.4","got":"^12.3.1","jsonwebtoken":"^8.5.1"},"devDependencies":{"@antfu/eslint-config":"^0.26.1","@types/jsonwebtoken":"^8.5.8","@types/node":"^18.6.5","dotenv":"^16.0.1","eslint":"^8.21.0","tsup":"^6.2.1","typescript":"^4.7.4","vite-node":"^0.21.1"},"scripts":{"build":"tsup","debug":"pnpm run build && vite-node ./example/index.ts","lint":"eslint src/**/*.ts","release":"npx git-ensure -a && npx bumpp --commit --tag --push"},"types":"./dist/index.d.ts","_id":"@7nohe/app-store-connect-api-client@0.1.1","_integrity":"sha512-z2Etfv4J/rYw9MuWDsSFZH4H3MiTmW6Jr5PmtiYWaOB+IURZ6AOBQBqxb+1OqR13PNq5HYyCJSqu19jgspAkDA==","_resolved":"/private/var/folders/w5/gdgp75rs48742wn5mt359rjw0000gn/T/6efd817520de6ead7c9c5a8fc6eb915e/7nohe-app-store-connect-api-client-0.1.1.tgz","_from":"file:7nohe-app-store-connect-api-client-0.1.1.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-z2Etfv4J/rYw9MuWDsSFZH4H3MiTmW6Jr5PmtiYWaOB+IURZ6AOBQBqxb+1OqR13PNq5HYyCJSqu19jgspAkDA==","shasum":"997380298588e23bfdecd2a09b13aa77a7a19e96","tarball":"https://registry.npmjs.org/@7nohe/app-store-connect-api-client/-/app-store-connect-api-client-0.1.1.tgz","fileCount":6,"unpackedSize":11951,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCNDil9joaLjGDYQ/wxzLXgOZ7Qh/lcKgjoyuZxM6oMAiEAlZT//4eoJPt5eVR7oLWs+6CW6PDH93rBblDYEYGTLDg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9e6tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIew/+LpNKqd4YoJgK9PHb++jwA9iRr4DTUka5RIlb70hUNm4P55jq\r\nLoqST7YNxhRum/U/6Sfx9WBNyy4r8gDjZX2R4lZ/ChjkcfkDW0idJdjJkv4+\r\ngSMnJ6C/5TrKjsrG7kmQW47vMlI4H88cHmUufyoQ7sn+Wyto9czXSToGqatM\r\ntYGOAQdOsglHwbqFLia1CeLgs3Db8miJENEkolkBbhDHWURIQ0KfRPbYRGj/\r\n3j/2ETSxsNgORQC7XWQL072AzRl/DQgppXroNkOpqgy1b7jIEn8UBJZuxfqC\r\nOrku0ZcDiv5G+AH+Y8Kvm7tRuGdfwhq9/TKpuNbt7a642Zl+fy0COgqNKSRs\r\nZcsIifX24E5kx/aVy+3ekk0YA1w+Yz1xgD10ZLa2fG45trr/mlzFGNzK0kqk\r\nkudKmQ6wyTTXIDjWnqw5j734mtRu1Qxp+aBWesiPqLp0vdDiEI0Z6xey2CJL\r\nrbhwLsB0JczVCykGVRxmT7XzV/QPllGnkv+8EEpq0zeFzCmZXgGYuEykGIhj\r\nDM6GXcfxWR+M35OvJzl3P9bOaaGO14jDH/V9nu7D4HXOkUeOczXg9V5BR/go\r\nqr3iF2F+o3jYmAYK9oqZENol0ZammYRzOJiiPOz1nmctgusholAtz0Ypi4FU\r\nXsUBTsvT9vPYLR96pUj5uXxBEdWXT9jvyKc=\r\n=0S5K\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-store-connect-api-client_0.1.1_1660284588872_0.25171451670272926"},"_hasShrinkwrap":false},"0.1.2":{"name":"@7nohe/app-store-connect-api-client","version":"0.1.2","description":"> App Store Connect API client for Node.js","type":"module","main":"dist/index.js","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"keywords":["apple","app","store","connect","api","client","ios","nodejs"],"author":{"name":"Daiki Urata","url":"@7nohe"},"repository":{"type":"git","url":"git+https://github.com/7nohe/app-store-connect-api-client.git"},"homepage":"https://github.com/7nohe/app-store-connect-api-client","bugs":{"url":"https://github.com/7nohe/app-store-connect-api-client/issues"},"license":"MIT","dependencies":{"csv-parser":"^3.0.0","dayjs":"^1.11.4","got":"^12.3.1","jsonwebtoken":"^8.5.1"},"devDependencies":{"@antfu/eslint-config":"^0.26.1","@types/jsonwebtoken":"^8.5.8","@types/node":"^18.6.5","dotenv":"^16.0.1","eslint":"^8.21.0","tsup":"^6.2.1","typescript":"^4.7.4","vite-node":"^0.21.1"},"scripts":{"build":"tsup","debug":"pnpm run build && vite-node ./example/index.ts","lint":"eslint src/**/*.ts","release":"npx git-ensure -a && npx bumpp --commit --tag --push"},"types":"./dist/index.d.ts","_id":"@7nohe/app-store-connect-api-client@0.1.2","_integrity":"sha512-HciewbOmov+LfHGK31Q02W19jfNeE1eUAog0gE1Ko7PAmtKfYiebiZWU9nyYNL6U2bE9jt4Oo7O0RTf/mYNl+Q==","_resolved":"/private/var/folders/w5/gdgp75rs48742wn5mt359rjw0000gn/T/f5dc737b9bfcb09d0db174c8211cc87f/7nohe-app-store-connect-api-client-0.1.2.tgz","_from":"file:7nohe-app-store-connect-api-client-0.1.2.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-HciewbOmov+LfHGK31Q02W19jfNeE1eUAog0gE1Ko7PAmtKfYiebiZWU9nyYNL6U2bE9jt4Oo7O0RTf/mYNl+Q==","shasum":"974778634c7031be7990209f8c3f1030cfe9e0e6","tarball":"https://registry.npmjs.org/@7nohe/app-store-connect-api-client/-/app-store-connect-api-client-0.1.2.tgz","fileCount":6,"unpackedSize":11951,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8lNNQQxxtCGkXZu9F+C0KOIkql0H9kQTmCbPnAFgNlAiEA/K+xvMHoX5ji5wqF62aVRfogkqIxXXPHKU28mPNS3DM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9e+IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMHg/+LmH3aOWgGTQojY4aX+E3yayiEYbjZWw2cewST0LydKXP1tO6\r\nJce0LqTV+lIB0CTFKZ6l5pJx/vZjYyeY6rFJN101DPcULc/QvUn7lBNjJGVa\r\nqZ3OP1vdoEqjehkVGYRr5yTCz3GECRyQNjktEypKtUx1FWvFyHQBd94cyEGx\r\neYskhzMufKy7fQDqykPYDYZZI0dMDMHTZUMMwPjor3cLueFaPSs0zV+bg3xc\r\nEiOtW++4CBx4T/YpEZ7QCvQr1FhETUtL97Kzzl4sFoGGoDpmE0hhl9ZFh1xs\r\nwpdrWOU2FvA62CSyYDWFHxUYE9BvLTCZ7nkxkmVlfeAW+XceIOkAc5HGp+wA\r\nCO1ENaB9iaBmLVbH/umQR2jyMEQp8TlVREKn7pQ68oBeRdRdqdro+9Noio2I\r\nj9wd6GnJnvdo5fdLQKBmpaBd2E/JDrmPraormxrt3Y1b1KQGUO7LFhov7J5c\r\ndRF428bd7RFJb3nei/i4yyDWIQnSH8yJPQdRopT3AKAoqhvp6yF4iKY823o9\r\n9XPs4nHXCF+0K5qhCkhv/xB4MqOmNJYjLN7XPaeBcwIORQfJhNJ8sJPm/d4p\r\ntCwbCBxdBnWIZRe5fitx5o0HEevgLy808Gsb3zMey3NPRTYrTdAhjlPLgSAP\r\nx3aalQxeWsYOOHyfcj2CHmXmmvlJo1MxWhY=\r\n=P8HE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-store-connect-api-client_0.1.2_1660284808756_0.685338700989536"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-12T04:56:40.632Z","0.1.0":"2022-08-12T04:56:40.844Z","modified":"2022-08-12T06:13:28.973Z","0.1.1":"2022-08-12T06:09:49.049Z","0.1.2":"2022-08-12T06:13:28.903Z"},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"description":"> App Store Connect API client for Node.js","homepage":"https://github.com/7nohe/app-store-connect-api-client","keywords":["apple","app","store","connect","api","client","ios","nodejs"],"repository":{"type":"git","url":"git+https://github.com/7nohe/app-store-connect-api-client.git"},"author":{"name":"Daiki Urata","url":"@7nohe"},"bugs":{"url":"https://github.com/7nohe/app-store-connect-api-client/issues"},"license":"MIT","readme":"# @7nohe/app-store-connect-api-client\n\n> App Store Connect API client for Node.js\n\n## Install\n\n```bash\n$ npm install -D @7nohe/app-store-connect-api-client\n```\n\n## Usage\n\n```ts\nimport { createClient, SalesReportFrequency } from '@7nohe/app-store-connect-api-client'\nimport path from 'path';\n\nconst privateKeyPath = path.resolve(__dirname, '/path/to/your/p8/file');\n\nconst client = createClient({\n  apiKey: '<YOUR-API-KEY>',\n  issuerId: '<YOUR-ISSUER-ID>',\n  privateKey: {\n    path: privateKeyPath\n  }\n})\n\nconst run = async () => {\n  const result = await client.getSalesReports({\n    vendorNumber: process.env.VENDOR_ID!,\n    date: '2022-08-07',\n    frequency: SalesReportFrequency.Weekly\n  })\n  console.log(result);\n}\n\nrun();\n\n```\n\nFor CI, a base64-encoded private key file can be set as an environment variable and passed as an option.\n\n```ts\nimport { createClient } from '@7nohe/app-store-connect-api-client'\nimport * as dotenv from 'dotenv';\ndotenv.config();\n\nconst client = createClient({\n  apiKey: process.env.API_KEY!,\n  issuerId: process.env.ISSUER_ID!,\n  privateKey: Buffer.from(process.env.PRIVATE_KEY!, 'base64'),\n})\n```\n\n\n","readmeFilename":"README.md"}