{"_id":"@andy-cline/northwind-metrics-sdk","_rev":"3-499253b6e325a1673e07f0545a4ac3f4","name":"@andy-cline/northwind-metrics-sdk","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@andy-cline/northwind-metrics-sdk","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"@andy-cline/northwind-metrics-sdk@1.0.0","maintainers":[{"name":"andy-cline","email":"andy@newleafit.com"}],"dist":{"shasum":"065ffe38c6eb762b0ed1d881b871c0a59d92843b","tarball":"https://registry.npmjs.org/@andy-cline/northwind-metrics-sdk/-/northwind-metrics-sdk-1.0.0.tgz","fileCount":12,"integrity":"sha512-bJy682oj/rFz0EFGwaFu2sjOk+XXhxSZDukyWY1tXWCuK8464K2bM5AVRBhhbD4ecykWZvkjxwFu7opYpok4bA==","signatures":[{"sig":"MEYCIQC5ucwEDQoHIYniZbDAy0L58Jul1FABbZhVasIW3E71MAIhAKk+MkJGGh/Yo9BgCw63z4y2CBiNEkCbmYIatl97dMTy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15600},"main":"dist/index.js","types":"dist/index.d.ts","unpkg":"dist/index.umd.js","module":"dist/index.m.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"andy-cline","email":"andy@newleafit.com"},"_npmVersion":"10.8.2","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/northwind-metrics-sdk_1.0.0_1731454632113_0.41832113763415046","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@andy-cline/northwind-metrics-sdk","version":"1.0.1","keywords":[],"author":"","license":"ISC","_id":"@andy-cline/northwind-metrics-sdk@1.0.1","maintainers":[{"name":"andy-cline","email":"andy@newleafit.com"}],"dist":{"shasum":"f32e2dee4cea443e1bedead802ac85a20aaab536","tarball":"https://registry.npmjs.org/@andy-cline/northwind-metrics-sdk/-/northwind-metrics-sdk-1.0.1.tgz","fileCount":13,"integrity":"sha512-q2Rn5OiMYxlyHMToU8KuGXGb08bJzr7jT1uMrHvKNAHjFTb54SNWe/X8lBUGI/WrcyT52o4GOkK07MaQe8sXFg==","signatures":[{"sig":"MEQCIFOkgvYc3n9vsK9f84DtnuuE3lxycR5nDTcftbj4M7HvAiBYArWDM410rqa0D7T77tSj4gAHHYAbfX5DTVFjhMan+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17144},"main":"dist/index.js","types":"dist/index.d.ts","unpkg":"dist/index.umd.js","module":"dist/index.m.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"andy-cline","email":"andy@newleafit.com"},"_npmVersion":"10.8.2","description":"A javascript library for accessing useless metrics from OData.org's Northwind test database.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/northwind-metrics-sdk_1.0.1_1731456811800_0.2741756218772635","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@andy-cline/northwind-metrics-sdk","version":"1.0.3","keywords":[],"author":"","license":"ISC","_id":"@andy-cline/northwind-metrics-sdk@1.0.3","maintainers":[{"name":"andy-cline","email":"andy@newleafit.com"}],"dist":{"shasum":"a382cf51ec82717f49161bd91b2a696e89650a3c","tarball":"https://registry.npmjs.org/@andy-cline/northwind-metrics-sdk/-/northwind-metrics-sdk-1.0.3.tgz","fileCount":13,"integrity":"sha512-5EDgqwjph2p3GQWvTGnE5j2eQHoO6rxTmnDnbCU8+xN1sPEgl870wkVw+D+5XZnx1WpUwasXMSt9Dp2oCaEwNQ==","signatures":[{"sig":"MEUCIQDoG24ti2uDLd5OQRuaz9FYYefjcTEibGbtxfFCDhQtnwIgdk7rN/zMJ9n/7oibawQEIQqfxo8Qn0COg6SZLHy0M3s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41610},"main":"dist/index.js","types":"dist/index.d.ts","unpkg":"dist/index.umd.js","module":"dist/index.m.js","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"andy-cline","email":"andy@newleafit.com"},"_npmVersion":"10.8.2","description":"An asynchronous typescript library for accessing fun, useless metrics from OData.org's Northwind test database.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"ts-node":"^10.9.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.14"},"_npmOperationalInternal":{"tmp":"tmp/northwind-metrics-sdk_1.0.3_1731524492859_0.9951759370608428","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@andy-cline/northwind-metrics-sdk","version":"1.0.5","main":"dist/index.js","module":"dist/index.m.js","unpkg":"dist/index.umd.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"jest"},"keywords":[],"author":"","license":"ISC","description":"An asynchronous typescript library for accessing fun, useless metrics from OData.org's Northwind test database.","devDependencies":{"@types/jest":"^29.5.14","jest":"^29.7.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.6.3"},"_id":"@andy-cline/northwind-metrics-sdk@1.0.5","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-KPuNTjQD7RCNi4VPn7f9NDYPeqDtJboh58JSQr+U0y0A3Sq+aYjtDx3dPArAtJzsDLFTID+6Ro60JGyA0g2+gQ==","shasum":"cfefb78b58bc11d9787cc33a7efd0c7c21489ec8","tarball":"https://registry.npmjs.org/@andy-cline/northwind-metrics-sdk/-/northwind-metrics-sdk-1.0.5.tgz","fileCount":13,"unpackedSize":41586,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdoSSuxD3VGQ6fjMaoHfc3OOe7NkC4Mjcvdt4Gps9VUQIhAIbvRBvtV2AGHfj0WMDHlIiZJjlniaiiAyxeliGtIZQx"}]},"_npmUser":{"name":"andy-cline","email":"andy@newleafit.com"},"directories":{},"maintainers":[{"name":"andy-cline","email":"andy@newleafit.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/northwind-metrics-sdk_1.0.5_1731524986929_0.3195844233472851"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-12T23:37:12.044Z","modified":"2024-11-13T19:09:47.329Z","1.0.0":"2024-11-12T23:37:12.285Z","1.0.1":"2024-11-13T00:13:31.987Z","1.0.3":"2024-11-13T19:01:33.176Z","1.0.5":"2024-11-13T19:09:47.148Z"},"license":"ISC","keywords":[],"description":"An asynchronous typescript library for accessing fun, useless metrics from OData.org's Northwind test database.","maintainers":[{"name":"andy-cline","email":"andy@newleafit.com"}],"readme":"# Northwind Metrics SDK\n\nAn asynchronous typescript library for accessing fun, useless metrics from OData.org's Northwind test database.\n\n## Getting Started\n\nFrom your project's home directory, run:\n\n`npm install @andy-cline/northwind-metrics-sdk`\n\nTypescript Version 5.6.3\nNode Version 20.18.0\n\n\n## Usage\n\n```\n// get the largest numerical postal code from the latest 100 orders\nimport NorthwindMetrics from \"@andy-cline/northwind-metrics-sdk\";\nconst client = new NorthwindMetrics('https://services.odata.org/northwind/northwind.svc');\nclient.getHighestPostalCode(100).then(value => {\n    console.log(value);\n});\n```\n\n## Methods\n\n#### Get Order Metrics\n\nSignature: <ins>getOrderMetrics(orderCount: number): Promise\\<OrderMetrics></ins>\n\nReturns: An average order amount of all the most recent number of orders as indicated by orderCount.\nIt also returns the name of the customer who had the largest order in the range and the name\nof the customer with the smallest order in the range.\n\n#### Get Highest Postal Code\n\nSignature: <ins>getHighestPostalCode(orderCount: number): Promise\\<string></ins>\n\nReturns: The highest numerical postal code from the customers of the most recent orders using a range size\nspecified by orderCount. Non-numeric postal codes are ignored.\n\n#### Get Customers By Country\n\nSignature: <ins>getCustomersByCountry(countryCount: number):\nPromise<CustomersByCountry[]></ins>\n\nReturns: An array of CustomersByCountry entities sorted in alphabetical order with a limit\ndefined by countryCount. Each CustomersByCountry entity has the number of customers that are in\nthat country and the name of the country.","readmeFilename":"README.md"}