@sp-api-sdk/orders-api-v0 1.18.8 → 2.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 (59) hide show
  1. package/dist/cjs/src/api-model/api/orders-v0-api.js +176 -52
  2. package/dist/cjs/src/api-model/base.js +1 -3
  3. package/dist/cjs/src/api-model/common.js +2 -0
  4. package/dist/cjs/src/api-model/models/approval-support-data-element.js +15 -0
  5. package/dist/cjs/src/api-model/models/get-order-approvals-response.js +15 -0
  6. package/dist/cjs/src/api-model/models/index.js +14 -0
  7. package/dist/cjs/src/api-model/models/item-approval-action-changes.js +15 -0
  8. package/dist/cjs/src/api-model/models/item-approval-action.js +21 -0
  9. package/dist/cjs/src/api-model/models/item-approval-context.js +15 -0
  10. package/dist/cjs/src/api-model/models/item-approval-status.js +29 -0
  11. package/dist/cjs/src/api-model/models/item-approval-type.js +24 -0
  12. package/dist/cjs/src/api-model/models/item-approval.js +25 -0
  13. package/dist/cjs/src/api-model/models/item-identifier.js +21 -0
  14. package/dist/cjs/src/api-model/models/order-approvals-response.js +15 -0
  15. package/dist/cjs/src/api-model/models/order-item-approval-request.js +15 -0
  16. package/dist/cjs/src/api-model/models/order-item-approvals.js +15 -0
  17. package/dist/cjs/src/api-model/models/update-items-approvals-error-response.js +15 -0
  18. package/dist/cjs/src/api-model/models/update-order-approvals-request.js +15 -0
  19. package/dist/cjs/src/client.js +14 -0
  20. package/dist/es/src/api-model/api/orders-v0-api.js +176 -52
  21. package/dist/es/src/api-model/base.js +1 -3
  22. package/dist/es/src/api-model/common.js +2 -0
  23. package/dist/es/src/api-model/models/approval-support-data-element.js +14 -0
  24. package/dist/es/src/api-model/models/get-order-approvals-response.js +14 -0
  25. package/dist/es/src/api-model/models/index.js +14 -0
  26. package/dist/es/src/api-model/models/item-approval-action-changes.js +14 -0
  27. package/dist/es/src/api-model/models/item-approval-action.js +18 -0
  28. package/dist/es/src/api-model/models/item-approval-context.js +14 -0
  29. package/dist/es/src/api-model/models/item-approval-status.js +26 -0
  30. package/dist/es/src/api-model/models/item-approval-type.js +21 -0
  31. package/dist/es/src/api-model/models/item-approval.js +22 -0
  32. package/dist/es/src/api-model/models/item-identifier.js +18 -0
  33. package/dist/es/src/api-model/models/order-approvals-response.js +14 -0
  34. package/dist/es/src/api-model/models/order-item-approval-request.js +14 -0
  35. package/dist/es/src/api-model/models/order-item-approvals.js +14 -0
  36. package/dist/es/src/api-model/models/update-items-approvals-error-response.js +14 -0
  37. package/dist/es/src/api-model/models/update-order-approvals-request.js +14 -0
  38. package/dist/es/src/client.js +14 -0
  39. package/dist/types/src/api-model/api/orders-v0-api.d.ts +158 -43
  40. package/dist/types/src/api-model/base.d.ts +2 -3
  41. package/dist/types/src/api-model/common.d.ts +3 -3
  42. package/dist/types/src/api-model/models/approval-support-data-element.d.ts +30 -0
  43. package/dist/types/src/api-model/models/get-order-approvals-response.d.ts +31 -0
  44. package/dist/types/src/api-model/models/index.d.ts +14 -0
  45. package/dist/types/src/api-model/models/item-approval-action-changes.d.ts +38 -0
  46. package/dist/types/src/api-model/models/item-approval-action.d.ts +43 -0
  47. package/dist/types/src/api-model/models/item-approval-context.d.ts +39 -0
  48. package/dist/types/src/api-model/models/item-approval-status.d.ts +25 -0
  49. package/dist/types/src/api-model/models/item-approval-type.d.ts +20 -0
  50. package/dist/types/src/api-model/models/item-approval.d.ts +72 -0
  51. package/dist/types/src/api-model/models/item-identifier.d.ts +36 -0
  52. package/dist/types/src/api-model/models/order-approvals-response.d.ts +31 -0
  53. package/dist/types/src/api-model/models/order-item-approval-request.d.ts +31 -0
  54. package/dist/types/src/api-model/models/order-item-approvals.d.ts +45 -0
  55. package/dist/types/src/api-model/models/order-item.d.ts +13 -0
  56. package/dist/types/src/api-model/models/order.d.ts +14 -0
  57. package/dist/types/src/api-model/models/update-items-approvals-error-response.d.ts +24 -0
  58. package/dist/types/src/api-model/models/update-order-approvals-request.d.ts +31 -0
  59. package/package.json +3 -3
@@ -1,4 +1,5 @@
1
1
  export * from './address';
2
+ export * from './approval-support-data-element';
2
3
  export * from './automated-shipping-settings';
3
4
  export * from './buyer-customized-info-detail';
4
5
  export * from './buyer-info';
@@ -9,20 +10,31 @@ export * from './easy-ship-shipment-status';
9
10
  export * from './electronic-invoice-status';
10
11
  export * from './fulfillment-instruction';
11
12
  export * from './get-order-address-response';
13
+ export * from './get-order-approvals-response';
12
14
  export * from './get-order-buyer-info-response';
13
15
  export * from './get-order-items-buyer-info-response';
14
16
  export * from './get-order-items-response';
15
17
  export * from './get-order-regulated-info-response';
16
18
  export * from './get-order-response';
17
19
  export * from './get-orders-response';
20
+ export * from './item-approval';
21
+ export * from './item-approval-action';
22
+ export * from './item-approval-action-changes';
23
+ export * from './item-approval-context';
24
+ export * from './item-approval-status';
25
+ export * from './item-approval-type';
18
26
  export * from './item-buyer-info';
27
+ export * from './item-identifier';
19
28
  export * from './marketplace-tax-info';
20
29
  export * from './model-error';
21
30
  export * from './money';
22
31
  export * from './order';
23
32
  export * from './order-address';
33
+ export * from './order-approvals-response';
24
34
  export * from './order-buyer-info';
25
35
  export * from './order-item';
36
+ export * from './order-item-approval-request';
37
+ export * from './order-item-approvals';
26
38
  export * from './order-item-buyer-info';
27
39
  export * from './order-items-buyer-info-list';
28
40
  export * from './order-items-inner';
@@ -39,6 +51,8 @@ export * from './rejection-reason';
39
51
  export * from './shipment-status';
40
52
  export * from './tax-classification';
41
53
  export * from './tax-collection';
54
+ export * from './update-items-approvals-error-response';
55
+ export * from './update-order-approvals-request';
42
56
  export * from './update-shipment-status-error-response';
43
57
  export * from './update-shipment-status-request';
44
58
  export * from './update-verification-status-error-response';
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const ItemApprovalActionActionTypeEnum = {
15
+ Approve: 'APPROVE',
16
+ Decline: 'DECLINE',
17
+ ApproveWithChanges: 'APPROVE_WITH_CHANGES'
18
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,26 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Defines the possible status of an order item approval.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const ItemApprovalStatus = {
20
+ PendingSellingPartnerApproval: 'PENDING_SELLING_PARTNER_APPROVAL',
21
+ ProcessingSellingPartnerApproval: 'PROCESSING_SELLING_PARTNER_APPROVAL',
22
+ PendingAmazonApproval: 'PENDING_AMAZON_APPROVAL',
23
+ Approved: 'APPROVED',
24
+ ApprovedWithChanges: 'APPROVED_WITH_CHANGES',
25
+ Declined: 'DECLINED'
26
+ };
@@ -0,0 +1,21 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Defines the approval process types available for order items.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const ItemApprovalType = {
20
+ LeonardiApproval: 'LEONARDI_APPROVAL'
21
+ };
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const ItemApprovalActorEnum = {
15
+ SellingPartner: 'SELLING_PARTNER',
16
+ Amazon: 'AMAZON'
17
+ };
18
+ export const ItemApprovalApprovalActionProcessStatusEnum = {
19
+ Processing: 'PROCESSING',
20
+ Success: 'SUCCESS',
21
+ Error: 'ERROR'
22
+ };
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const ItemIdentifierIdentifierTypeEnum = {
15
+ Asin: 'ASIN',
16
+ SellerSku: 'SELLER_SKU',
17
+ ExternalId: 'EXTERNAL_ID'
18
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Orders
5
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -64,6 +64,20 @@ export const clientRateLimits = [
64
64
  rate: 0.5,
65
65
  burst: 30,
66
66
  },
67
+ {
68
+ method: 'get',
69
+ // eslint-disable-next-line prefer-regex-literals
70
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/approvals$'),
71
+ rate: 0.5,
72
+ burst: 30,
73
+ },
74
+ {
75
+ method: 'post',
76
+ // eslint-disable-next-line prefer-regex-literals
77
+ urlRegex: new RegExp('^/orders/v0/orders/[^/]*/approvals$'),
78
+ rate: 5,
79
+ burst: 15,
80
+ },
67
81
  ];
68
82
  export class OrdersApiClient extends OrdersV0Api {
69
83
  constructor(configuration) {