{"_id":"@babbiorsetto/ups-typescript-fetch-client","_rev":"2-4863fb181b2ffc9c0488564af26bb063","name":"@babbiorsetto/ups-typescript-fetch-client","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@babbiorsetto/ups-typescript-fetch-client","version":"0.0.1","description":"Client for the UPS API auto-generated from the OpenAPI definition","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","test":"jest"},"author":{"name":"Alessandro Rubino"},"license":"ISC","homepage":"https://github.com/Babbiorsetto/ups-typescript-fetch-client","repository":{"type":"git","url":"git+https://github.com/Babbiorsetto/ups-typescript-fetch-client.git"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"./","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node"},"devDependencies":{"@types/jest":"^29.5.0","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^4.9.5"},"dependencies":{"@types/node-fetch":"^2.6.2","node-fetch":"^2.6.9"},"gitHead":"d69a8e643e5b270f120d5acc0bd7d04adc138df0","bugs":{"url":"https://github.com/Babbiorsetto/ups-typescript-fetch-client/issues"},"_id":"@babbiorsetto/ups-typescript-fetch-client@0.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ljJRnkugdl/QzJV1nMujhNeRDqWaPLofv/YdpDnOrQuPPZkfVROORCR/NcyM6I9u8BNdiSy+aguBaClrqS2ABg==","shasum":"e759f57f2d00b65703e492a55f10a38b84a1fceb","tarball":"https://registry.npmjs.org/@babbiorsetto/ups-typescript-fetch-client/-/ups-typescript-fetch-client-0.0.1.tgz","fileCount":18,"unpackedSize":704908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbFO/RhjFDF2BCC+jr8HQYuI0bxyY0CbLLt8F5TiURsQIgXp8HJIbRPLWHjtaPHWuo+d+JXcqKG/uuHieI5oqnaPk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJTZyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpT3Q//WZmN++ANHAZwHFR07cYwHAHqXoJQO1VwIAlk/mp+U4ez7F6/\r\n3qIBkS8UPMnnMFKCo6h8AcJvbRnyUoU+3cytxnYgs64x1zvsELTv/tFral1q\r\nh9g4IQ/ncF8UkYTUJSw4QII1So1gmJxOEzaKNxrjv9xRmVF0pKzVogyU0zGg\r\nXY0wcvA+Tg6OC06UUpujWuv3QlIXuPZEH0Z5tP01yDVEpSFwWrAY1drioBIM\r\nObyMAc9+9IvJwWOhu20ZajDTgYYvDv8nvEUAMUAm490k2N1+5lNyVWK00jiT\r\nUHVqdUDdlrxuS02gIbUSpwUK83+dzXxLLus4ihuZ3rlE1KLP8BPLIFO28OoB\r\nkkZ7ZLZPe7OLU4fX5n6RaGjBWzTY/Re9jDStlUgZV1rr5KAMwyMf0fPY5O0V\r\ncWobb1QsyMzsd8DD9jhYoHynNVL9nmlT90W7hg57gPAaBlmApp3pbxAr3rcy\r\nRjNk2giTW2skK6grhA6fnI5SKtjDQmerzLvzKUsAA9dadLVM5o6wHRVJ6imf\r\nptjkIHvNs/LlkIboiLI2o8djaYRxmwsjbBLOnmlBS51C8t7hTMMl2LGHgcw8\r\nB/ivvmzLF9KlXoLPBcF3iugnhpVtXb1bu4PCnmoi2Mb79jKbCxK8tQ+zu5mm\r\nhqER6dWTHiDm4XV+Lc1nnt5Z/sQ9uRreyrI=\r\n=Ys99\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"babbiorsetto","email":"aleruby97@hotmail.it"},"directories":{},"maintainers":[{"name":"babbiorsetto","email":"aleruby97@hotmail.it"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ups-typescript-fetch-client_0.0.1_1680160369803_0.861894367805371"},"_hasShrinkwrap":false},"0.0.2":{"name":"@babbiorsetto/ups-typescript-fetch-client","version":"0.0.2","description":"Client for the UPS API auto-generated from the OpenAPI definition","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","test":"jest"},"author":{"name":"Alessandro Rubino"},"license":"ISC","homepage":"https://github.com/Babbiorsetto/ups-typescript-fetch-client","repository":{"type":"git","url":"git+https://github.com/Babbiorsetto/ups-typescript-fetch-client.git"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"./","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node"},"devDependencies":{"@types/jest":"^29.5.0","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^4.9.5"},"dependencies":{"@types/node-fetch":"^2.6.2","node-fetch":"^2.6.9"},"gitHead":"b2a182098b39b12ddf862abf2a0eb2c4f88b00ff","bugs":{"url":"https://github.com/Babbiorsetto/ups-typescript-fetch-client/issues"},"_id":"@babbiorsetto/ups-typescript-fetch-client@0.0.2","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-By6LyJP62tp7Vz6k6ClCvzjIkP8CltYGiQ0ZxGwTAqTJBW24O+qmUwDXHxhSpcLLuveLnzwf6xGWSwhvBZWRNQ==","shasum":"3a9c6e9d46d47cfdfd72866946a69f40237d71dd","tarball":"https://registry.npmjs.org/@babbiorsetto/ups-typescript-fetch-client/-/ups-typescript-fetch-client-0.0.2.tgz","fileCount":20,"unpackedSize":747186,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHA3t6UfEg3mh1UFFrkuWuaz0gq7EqfFCj9AvvAWgeBHAiB89gcykW2Ny+9bg6DnlBQOtfvQpQQnbzgZRHzK+vzxyw=="}]},"_npmUser":{"name":"babbiorsetto","email":"aleruby97@hotmail.it"},"directories":{},"maintainers":[{"name":"babbiorsetto","email":"aleruby97@hotmail.it"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ups-typescript-fetch-client_0.0.2_1685432871376_0.2997056194827752"},"_hasShrinkwrap":false},"0.0.3":{"name":"@babbiorsetto/ups-typescript-fetch-client","version":"0.0.3","description":"Client for the UPS API auto-generated from the OpenAPI definition","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","test":"jest"},"author":{"name":"Alessandro Rubino"},"license":"ISC","homepage":"https://github.com/Babbiorsetto/ups-typescript-fetch-client","repository":{"type":"git","url":"git+https://github.com/Babbiorsetto/ups-typescript-fetch-client.git"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"./","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node"},"devDependencies":{"@types/jest":"^29.5.0","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^4.9.5"},"dependencies":{"@types/node-fetch":"^2.6.2","node-fetch":"^2.6.9"},"gitHead":"56be25a2735c6f6fe4376c1fd0a11250c956939d","bugs":{"url":"https://github.com/Babbiorsetto/ups-typescript-fetch-client/issues"},"_id":"@babbiorsetto/ups-typescript-fetch-client@0.0.3","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Skxa4EkXP81CrwSlqav/UHW/jTslZ8+pFvKrynPkXtxIc3u4vl8xPKLpd5QphVykzWZCHmsWfHUzAd4RomE+jw==","shasum":"907c44f3ddb763af9c4230e8ba0f03da62e09b94","tarball":"https://registry.npmjs.org/@babbiorsetto/ups-typescript-fetch-client/-/ups-typescript-fetch-client-0.0.3.tgz","fileCount":22,"unpackedSize":810842,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzI0f1B4jC4FeL00vxpy4PVsZPbjaV3lp+LX3aHQloGwIgDNXPGex6YaBdX5XbGSB7k5kuHPsQtn0TUFTarOLmzHI="}]},"_npmUser":{"name":"babbiorsetto","email":"aleruby97@hotmail.it"},"directories":{},"maintainers":[{"name":"babbiorsetto","email":"aleruby97@hotmail.it"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ups-typescript-fetch-client_0.0.3_1686125410129_0.009283127810129077"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-30T07:12:49.731Z","0.0.1":"2023-03-30T07:12:50.004Z","modified":"2023-06-07T08:10:10.515Z","0.0.2":"2023-05-30T07:47:51.584Z","0.0.3":"2023-06-07T08:10:10.403Z"},"maintainers":[{"name":"babbiorsetto","email":"aleruby97@hotmail.it"}],"description":"Client for the UPS API auto-generated from the OpenAPI definition","homepage":"https://github.com/Babbiorsetto/ups-typescript-fetch-client","repository":{"type":"git","url":"git+https://github.com/Babbiorsetto/ups-typescript-fetch-client.git"},"author":{"name":"Alessandro Rubino"},"bugs":{"url":"https://github.com/Babbiorsetto/ups-typescript-fetch-client/issues"},"license":"ISC","readme":"# Usage\r\n\r\n```typescript\r\nimport {\r\n    UPSApi,\r\n    ClientCredentialsConfigurationParams,\r\n} from \"@babbiorsetto/ups-typescript-fetch-client\";\r\n\r\nconst config: ClientCredentialsConfigurationParams = {\r\n    client_id: \"abc\",\r\n    client_secret: \"secret\",\r\n};\r\nconst api = new UPSApi(config, \"https://wwwcie.ups.com/api\");\r\n\r\nconst rating = api.rating();\r\n\r\ntry {\r\n    const resp = await rating.rate(/*All required info*/);\r\n    console.log(JSON.stringify(resp.RateResponse.RatedShipment));\r\n} catch (err) {\r\n    console.log(err);\r\n    // The body of the error message\r\n    const errBody = await err.json();\r\n    console.log(errBody.response.errors);\r\n}\r\n```\r\n\r\nFull description of the API in the [official documentation](https://developer.ups.com/en-us)\r\n\r\n\r\n## Changelog\r\n\r\n### v0.0.3\r\n* Add Paperless document api\r\n\r\n### v0.0.2\r\n* Add Time in transit api\r\n","readmeFilename":"README.md"}