@sp-api-sdk/easy-ship-api-2022-03-23 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +107 -0
  3. package/dist/cjs/api-model/api/easy-ship-api.js +367 -0
  4. package/dist/cjs/api-model/api.js +30 -0
  5. package/dist/cjs/api-model/base.js +71 -0
  6. package/dist/cjs/api-model/common.js +145 -0
  7. package/dist/cjs/api-model/configuration.js +99 -0
  8. package/dist/cjs/api-model/index.js +32 -0
  9. package/dist/cjs/api-model/models/code.js +34 -0
  10. package/dist/cjs/api-model/models/create-scheduled-package-request.js +15 -0
  11. package/dist/cjs/api-model/models/create-scheduled-packages-request.js +15 -0
  12. package/dist/cjs/api-model/models/create-scheduled-packages-response.js +15 -0
  13. package/dist/cjs/api-model/models/dimensions.js +15 -0
  14. package/dist/cjs/api-model/models/error-list.js +15 -0
  15. package/dist/cjs/api-model/models/handover-method.js +25 -0
  16. package/dist/cjs/api-model/models/index.js +43 -0
  17. package/dist/cjs/api-model/models/invoice-data.js +15 -0
  18. package/dist/cjs/api-model/models/item.js +15 -0
  19. package/dist/cjs/api-model/models/label-format.js +25 -0
  20. package/dist/cjs/api-model/models/list-handover-slots-request.js +15 -0
  21. package/dist/cjs/api-model/models/list-handover-slots-response.js +15 -0
  22. package/dist/cjs/api-model/models/model-error.js +15 -0
  23. package/dist/cjs/api-model/models/order-schedule-details.js +15 -0
  24. package/dist/cjs/api-model/models/package-details.js +15 -0
  25. package/dist/cjs/api-model/models/package-status.js +35 -0
  26. package/dist/cjs/api-model/models/package.js +15 -0
  27. package/dist/cjs/api-model/models/packages.js +15 -0
  28. package/dist/cjs/api-model/models/rejected-order.js +15 -0
  29. package/dist/cjs/api-model/models/scheduled-package-id.js +15 -0
  30. package/dist/cjs/api-model/models/time-slot.js +15 -0
  31. package/dist/cjs/api-model/models/tracking-details.js +15 -0
  32. package/dist/cjs/api-model/models/unit-of-length.js +24 -0
  33. package/dist/cjs/api-model/models/unit-of-weight.js +25 -0
  34. package/dist/cjs/api-model/models/update-package-details.js +15 -0
  35. package/dist/cjs/api-model/models/update-scheduled-packages-request.js +15 -0
  36. package/dist/cjs/api-model/models/weight.js +15 -0
  37. package/dist/cjs/client.js +49 -0
  38. package/dist/cjs/index.js +19 -0
  39. package/dist/es/api-model/api/easy-ship-api.js +357 -0
  40. package/dist/es/api-model/api.js +14 -0
  41. package/dist/es/api-model/base.js +63 -0
  42. package/dist/es/api-model/common.js +133 -0
  43. package/dist/es/api-model/configuration.js +95 -0
  44. package/dist/es/api-model/index.js +16 -0
  45. package/dist/es/api-model/models/code.js +31 -0
  46. package/dist/es/api-model/models/create-scheduled-package-request.js +14 -0
  47. package/dist/es/api-model/models/create-scheduled-packages-request.js +14 -0
  48. package/dist/es/api-model/models/create-scheduled-packages-response.js +14 -0
  49. package/dist/es/api-model/models/dimensions.js +14 -0
  50. package/dist/es/api-model/models/error-list.js +14 -0
  51. package/dist/es/api-model/models/handover-method.js +22 -0
  52. package/dist/es/api-model/models/index.js +27 -0
  53. package/dist/es/api-model/models/invoice-data.js +14 -0
  54. package/dist/es/api-model/models/item.js +14 -0
  55. package/dist/es/api-model/models/label-format.js +22 -0
  56. package/dist/es/api-model/models/list-handover-slots-request.js +14 -0
  57. package/dist/es/api-model/models/list-handover-slots-response.js +14 -0
  58. package/dist/es/api-model/models/model-error.js +14 -0
  59. package/dist/es/api-model/models/order-schedule-details.js +14 -0
  60. package/dist/es/api-model/models/package-details.js +14 -0
  61. package/dist/es/api-model/models/package-status.js +32 -0
  62. package/dist/es/api-model/models/package.js +14 -0
  63. package/dist/es/api-model/models/packages.js +14 -0
  64. package/dist/es/api-model/models/rejected-order.js +14 -0
  65. package/dist/es/api-model/models/scheduled-package-id.js +14 -0
  66. package/dist/es/api-model/models/time-slot.js +14 -0
  67. package/dist/es/api-model/models/tracking-details.js +14 -0
  68. package/dist/es/api-model/models/unit-of-length.js +21 -0
  69. package/dist/es/api-model/models/unit-of-weight.js +22 -0
  70. package/dist/es/api-model/models/update-package-details.js +14 -0
  71. package/dist/es/api-model/models/update-scheduled-packages-request.js +14 -0
  72. package/dist/es/api-model/models/weight.js +14 -0
  73. package/dist/es/client.js +45 -0
  74. package/dist/es/index.js +3 -0
  75. package/dist/types/api-model/api/easy-ship-api.d.ts +267 -0
  76. package/dist/types/api-model/api.d.ts +12 -0
  77. package/dist/types/api-model/base.d.ts +66 -0
  78. package/dist/types/api-model/common.d.ts +65 -0
  79. package/dist/types/api-model/configuration.d.ts +91 -0
  80. package/dist/types/api-model/index.d.ts +14 -0
  81. package/dist/types/api-model/models/code.d.ts +30 -0
  82. package/dist/types/api-model/models/create-scheduled-package-request.d.ts +37 -0
  83. package/dist/types/api-model/models/create-scheduled-packages-request.d.ts +38 -0
  84. package/dist/types/api-model/models/create-scheduled-packages-response.d.ts +38 -0
  85. package/dist/types/api-model/models/dimensions.d.ts +49 -0
  86. package/dist/types/api-model/models/error-list.d.ts +24 -0
  87. package/dist/types/api-model/models/handover-method.d.ts +21 -0
  88. package/dist/types/api-model/models/index.d.ts +27 -0
  89. package/dist/types/api-model/models/invoice-data.d.ts +30 -0
  90. package/dist/types/api-model/models/item.d.ts +30 -0
  91. package/dist/types/api-model/models/label-format.d.ts +21 -0
  92. package/dist/types/api-model/models/list-handover-slots-request.d.ts +44 -0
  93. package/dist/types/api-model/models/list-handover-slots-response.d.ts +31 -0
  94. package/dist/types/api-model/models/model-error.d.ts +36 -0
  95. package/dist/types/api-model/models/order-schedule-details.d.ts +31 -0
  96. package/dist/types/api-model/models/package-details.d.ts +38 -0
  97. package/dist/types/api-model/models/package-status.d.ts +31 -0
  98. package/dist/types/api-model/models/package.d.ts +80 -0
  99. package/dist/types/api-model/models/packages.d.ts +25 -0
  100. package/dist/types/api-model/models/rejected-order.d.ts +30 -0
  101. package/dist/types/api-model/models/scheduled-package-id.d.ts +30 -0
  102. package/dist/types/api-model/models/time-slot.d.ts +43 -0
  103. package/dist/types/api-model/models/tracking-details.d.ts +24 -0
  104. package/dist/types/api-model/models/unit-of-length.d.ts +20 -0
  105. package/dist/types/api-model/models/unit-of-weight.d.ts +21 -0
  106. package/dist/types/api-model/models/update-package-details.d.ts +32 -0
  107. package/dist/types/api-model/models/update-scheduled-packages-request.d.ts +31 -0
  108. package/dist/types/api-model/models/weight.d.ts +31 -0
  109. package/dist/types/client.d.ts +6 -0
  110. package/dist/types/index.d.ts +3 -0
  111. package/package.json +44 -0
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UnitOfLength = void 0;
17
+ /**
18
+ * The unit of measurement used to measure the length.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.UnitOfLength = {
23
+ Cm: 'Cm'
24
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UnitOfWeight = void 0;
17
+ /**
18
+ * The unit of measurement used to measure the weight.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.UnitOfWeight = {
23
+ Grams: 'Grams',
24
+ G: 'G'
25
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Easy Ship
6
+ * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
7
+ *
8
+ * The version of the OpenAPI document: 2022-03-23
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EasyShipApiClient = exports.clientRateLimits = void 0;
4
+ const common_1 = require("@sp-api-sdk/common");
5
+ const api_model_1 = require("./api-model");
6
+ exports.clientRateLimits = [
7
+ {
8
+ method: 'post',
9
+ // eslint-disable-next-line prefer-regex-literals
10
+ urlRegex: new RegExp('^/easyShip/2022-03-23/timeSlot$'),
11
+ rate: 1,
12
+ burst: 5,
13
+ },
14
+ {
15
+ method: 'get',
16
+ // eslint-disable-next-line prefer-regex-literals
17
+ urlRegex: new RegExp('^/easyShip/2022-03-23/package$'),
18
+ rate: 1,
19
+ burst: 5,
20
+ },
21
+ {
22
+ method: 'post',
23
+ // eslint-disable-next-line prefer-regex-literals
24
+ urlRegex: new RegExp('^/easyShip/2022-03-23/package$'),
25
+ rate: 1,
26
+ burst: 5,
27
+ },
28
+ {
29
+ method: 'patch',
30
+ // eslint-disable-next-line prefer-regex-literals
31
+ urlRegex: new RegExp('^/easyShip/2022-03-23/package$'),
32
+ rate: 1,
33
+ burst: 5,
34
+ },
35
+ {
36
+ method: 'post',
37
+ // eslint-disable-next-line prefer-regex-literals
38
+ urlRegex: new RegExp('^/easyShip/2022-03-23/packages/bulk$'),
39
+ rate: 1,
40
+ burst: 5,
41
+ },
42
+ ];
43
+ class EasyShipApiClient extends api_model_1.EasyShipApi {
44
+ constructor(configuration) {
45
+ const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
46
+ super(new api_model_1.Configuration(), endpoint, axios);
47
+ }
48
+ }
49
+ exports.EasyShipApiClient = EasyShipApiClient;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
18
+ __exportStar(require("./api-model/api"), exports);
19
+ __exportStar(require("./api-model/models"), exports);