@sp-api-sdk/orders-api-v0 5.1.0 → 5.1.2

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 (97) hide show
  1. package/dist/cjs/api-model/api/orders-api.js +0 -16
  2. package/dist/cjs/api-model/base.js +0 -19
  3. package/dist/cjs/api-model/common.js +0 -37
  4. package/dist/cjs/api-model/configuration.js +0 -17
  5. package/dist/cjs/api-model/models/association-type.js +0 -2
  6. package/dist/cjs/api-model/models/constraint-type.js +0 -2
  7. package/dist/cjs/api-model/models/easy-ship-shipment-status.js +0 -2
  8. package/dist/cjs/api-model/models/electronic-invoice-status.js +0 -2
  9. package/dist/cjs/api-model/models/other-delivery-attributes.js +0 -2
  10. package/dist/cjs/api-model/models/shipment-status.js +0 -2
  11. package/dist/cjs/api-model/models/verification-status.js +0 -2
  12. package/dist/es/api-model/api/orders-api.js +0 -16
  13. package/dist/es/api-model/base.js +0 -19
  14. package/dist/es/api-model/common.js +0 -37
  15. package/dist/es/api-model/configuration.js +0 -17
  16. package/dist/es/api-model/models/association-type.js +0 -2
  17. package/dist/es/api-model/models/constraint-type.js +0 -2
  18. package/dist/es/api-model/models/easy-ship-shipment-status.js +0 -2
  19. package/dist/es/api-model/models/electronic-invoice-status.js +0 -2
  20. package/dist/es/api-model/models/other-delivery-attributes.js +0 -2
  21. package/dist/es/api-model/models/shipment-status.js +0 -2
  22. package/dist/es/api-model/models/verification-status.js +0 -2
  23. package/dist/types/api-model/api/orders-api.d.ts +0 -108
  24. package/dist/types/api-model/base.d.ts +0 -24
  25. package/dist/types/api-model/common.d.ts +0 -37
  26. package/dist/types/api-model/configuration.d.ts +0 -17
  27. package/dist/types/api-model/models/address-extended-fields.d.ts +0 -10
  28. package/dist/types/api-model/models/address.d.ts +0 -35
  29. package/dist/types/api-model/models/amazon-programs.d.ts +0 -4
  30. package/dist/types/api-model/models/associated-item.d.ts +0 -11
  31. package/dist/types/api-model/models/association-type.d.ts +0 -2
  32. package/dist/types/api-model/models/automated-shipping-settings.d.ts +0 -8
  33. package/dist/types/api-model/models/business-hours.d.ts +0 -6
  34. package/dist/types/api-model/models/buyer-customized-info-detail.d.ts +0 -4
  35. package/dist/types/api-model/models/buyer-info.d.ts +0 -15
  36. package/dist/types/api-model/models/buyer-requested-cancel.d.ts +0 -6
  37. package/dist/types/api-model/models/buyer-tax-info.d.ts +0 -8
  38. package/dist/types/api-model/models/buyer-tax-information.d.ts +0 -10
  39. package/dist/types/api-model/models/confirm-shipment-error-response.d.ts +0 -4
  40. package/dist/types/api-model/models/confirm-shipment-order-item.d.ts +0 -8
  41. package/dist/types/api-model/models/confirm-shipment-request.d.ts +0 -11
  42. package/dist/types/api-model/models/constraint-type.d.ts +0 -2
  43. package/dist/types/api-model/models/delivery-preferences.d.ts +0 -13
  44. package/dist/types/api-model/models/easy-ship-shipment-status.d.ts +0 -2
  45. package/dist/types/api-model/models/electronic-invoice-status.d.ts +0 -2
  46. package/dist/types/api-model/models/exception-dates.d.ts +0 -8
  47. package/dist/types/api-model/models/fulfillment-instruction.d.ts +0 -4
  48. package/dist/types/api-model/models/get-order-address-response.d.ts +0 -9
  49. package/dist/types/api-model/models/get-order-buyer-info-response.d.ts +0 -9
  50. package/dist/types/api-model/models/get-order-items-buyer-info-response.d.ts +0 -9
  51. package/dist/types/api-model/models/get-order-items-response.d.ts +0 -9
  52. package/dist/types/api-model/models/get-order-regulated-info-response.d.ts +0 -9
  53. package/dist/types/api-model/models/get-order-response.d.ts +0 -9
  54. package/dist/types/api-model/models/get-orders-response.d.ts +0 -9
  55. package/dist/types/api-model/models/item-buyer-info.d.ts +0 -21
  56. package/dist/types/api-model/models/marketplace-tax-info.d.ts +0 -4
  57. package/dist/types/api-model/models/measurement.d.ts +0 -6
  58. package/dist/types/api-model/models/model-error.d.ts +0 -8
  59. package/dist/types/api-model/models/money.d.ts +0 -6
  60. package/dist/types/api-model/models/open-interval.d.ts +0 -12
  61. package/dist/types/api-model/models/open-time-interval.d.ts +0 -6
  62. package/dist/types/api-model/models/order-address.d.ts +0 -16
  63. package/dist/types/api-model/models/order-buyer-info.d.ts +0 -17
  64. package/dist/types/api-model/models/order-item-buyer-info.d.ts +0 -23
  65. package/dist/types/api-model/models/order-item.d.ts +0 -139
  66. package/dist/types/api-model/models/order-items-buyer-info-list.d.ts +0 -8
  67. package/dist/types/api-model/models/order-items-inner.d.ts +0 -9
  68. package/dist/types/api-model/models/order-items-list.d.ts +0 -8
  69. package/dist/types/api-model/models/order-regulated-info.d.ts +0 -16
  70. package/dist/types/api-model/models/order.d.ts +0 -126
  71. package/dist/types/api-model/models/orders-list.d.ts +0 -10
  72. package/dist/types/api-model/models/other-delivery-attributes.d.ts +0 -2
  73. package/dist/types/api-model/models/package-detail.d.ts +0 -18
  74. package/dist/types/api-model/models/payment-execution-detail-item.d.ts +0 -9
  75. package/dist/types/api-model/models/points-granted-detail.d.ts +0 -9
  76. package/dist/types/api-model/models/preferred-delivery-time.d.ts +0 -6
  77. package/dist/types/api-model/models/prescription-detail.d.ts +0 -16
  78. package/dist/types/api-model/models/product-info-detail.d.ts +0 -4
  79. package/dist/types/api-model/models/regulated-information-field.d.ts +0 -10
  80. package/dist/types/api-model/models/regulated-information.d.ts +0 -4
  81. package/dist/types/api-model/models/regulated-order-verification-status.d.ts +0 -22
  82. package/dist/types/api-model/models/rejection-reason.d.ts +0 -6
  83. package/dist/types/api-model/models/shipment-status.d.ts +0 -2
  84. package/dist/types/api-model/models/shipping-constraints.d.ts +0 -22
  85. package/dist/types/api-model/models/substitution-option.d.ts +0 -15
  86. package/dist/types/api-model/models/substitution-preferences.d.ts +0 -6
  87. package/dist/types/api-model/models/tax-classification.d.ts +0 -6
  88. package/dist/types/api-model/models/tax-collection.d.ts +0 -6
  89. package/dist/types/api-model/models/update-shipment-status-error-response.d.ts +0 -4
  90. package/dist/types/api-model/models/update-shipment-status-request.d.ts +0 -11
  91. package/dist/types/api-model/models/update-verification-status-error-response.d.ts +0 -4
  92. package/dist/types/api-model/models/update-verification-status-request-body.d.ts +0 -16
  93. package/dist/types/api-model/models/update-verification-status-request.d.ts +0 -7
  94. package/dist/types/api-model/models/valid-verification-detail.d.ts +0 -6
  95. package/dist/types/api-model/models/verification-details.d.ts +0 -7
  96. package/dist/types/api-model/models/verification-status.d.ts +0 -2
  97. package/package.json +25 -4
@@ -12,32 +12,10 @@
12
12
  import type { ConstraintType } from './constraint-type';
13
13
  /**
14
14
  * Delivery constraints applicable to this order.
15
- * @export
16
- * @interface ShippingConstraints
17
15
  */
18
16
  export interface ShippingConstraints {
19
- /**
20
- *
21
- * @type {ConstraintType}
22
- * @memberof ShippingConstraints
23
- */
24
17
  'PalletDelivery'?: ConstraintType;
25
- /**
26
- *
27
- * @type {ConstraintType}
28
- * @memberof ShippingConstraints
29
- */
30
18
  'SignatureConfirmation'?: ConstraintType;
31
- /**
32
- *
33
- * @type {ConstraintType}
34
- * @memberof ShippingConstraints
35
- */
36
19
  'RecipientIdentityVerification'?: ConstraintType;
37
- /**
38
- *
39
- * @type {ConstraintType}
40
- * @memberof ShippingConstraints
41
- */
42
20
  'RecipientAgeVerification'?: ConstraintType;
43
21
  }
@@ -12,38 +12,23 @@
12
12
  import type { Measurement } from './measurement';
13
13
  /**
14
14
  * Substitution options for an order item.
15
- * @export
16
- * @interface SubstitutionOption
17
15
  */
18
16
  export interface SubstitutionOption {
19
17
  /**
20
18
  * The item\'s Amazon Standard Identification Number (ASIN).
21
- * @type {string}
22
- * @memberof SubstitutionOption
23
19
  */
24
20
  'ASIN'?: string;
25
21
  /**
26
22
  * The number of items to be picked for this substitution option.
27
- * @type {number}
28
- * @memberof SubstitutionOption
29
23
  */
30
24
  'QuantityOrdered'?: number;
31
25
  /**
32
26
  * The item\'s seller stock keeping unit (SKU).
33
- * @type {string}
34
- * @memberof SubstitutionOption
35
27
  */
36
28
  'SellerSKU'?: string;
37
29
  /**
38
30
  * The item\'s title.
39
- * @type {string}
40
- * @memberof SubstitutionOption
41
31
  */
42
32
  'Title'?: string;
43
- /**
44
- *
45
- * @type {Measurement}
46
- * @memberof SubstitutionOption
47
- */
48
33
  'Measurement'?: Measurement;
49
34
  }
@@ -12,20 +12,14 @@
12
12
  import type { SubstitutionOption } from './substitution-option';
13
13
  /**
14
14
  * Substitution preferences for an order item.
15
- * @export
16
- * @interface SubstitutionPreferences
17
15
  */
18
16
  export interface SubstitutionPreferences {
19
17
  /**
20
18
  * The type of substitution that these preferences represent.
21
- * @type {string}
22
- * @memberof SubstitutionPreferences
23
19
  */
24
20
  'SubstitutionType': SubstitutionPreferencesSubstitutionTypeEnum;
25
21
  /**
26
22
  * A collection of substitution options.
27
- * @type {Array<SubstitutionOption>}
28
- * @memberof SubstitutionPreferences
29
23
  */
30
24
  'SubstitutionOptions'?: Array<SubstitutionOption>;
31
25
  }
@@ -11,20 +11,14 @@
11
11
  */
12
12
  /**
13
13
  * The tax classification of the order.
14
- * @export
15
- * @interface TaxClassification
16
14
  */
17
15
  export interface TaxClassification {
18
16
  /**
19
17
  * The type of tax.
20
- * @type {string}
21
- * @memberof TaxClassification
22
18
  */
23
19
  'Name'?: string;
24
20
  /**
25
21
  * The buyer\'s tax identifier.
26
- * @type {string}
27
- * @memberof TaxClassification
28
22
  */
29
23
  'Value'?: string;
30
24
  }
@@ -11,20 +11,14 @@
11
11
  */
12
12
  /**
13
13
  * Information about withheld taxes.
14
- * @export
15
- * @interface TaxCollection
16
14
  */
17
15
  export interface TaxCollection {
18
16
  /**
19
17
  * The tax collection model applied to the item.
20
- * @type {string}
21
- * @memberof TaxCollection
22
18
  */
23
19
  'Model'?: TaxCollectionModelEnum;
24
20
  /**
25
21
  * The party responsible for withholding the taxes and remitting them to the taxing authority.
26
- * @type {string}
27
- * @memberof TaxCollection
28
22
  */
29
23
  'ResponsibleParty'?: TaxCollectionResponsiblePartyEnum;
30
24
  }
@@ -11,14 +11,10 @@
11
11
  */
12
12
  /**
13
13
  * The error response schema for the `UpdateShipmentStatus` operation.
14
- * @export
15
- * @interface UpdateShipmentStatusErrorResponse
16
14
  */
17
15
  export interface UpdateShipmentStatusErrorResponse {
18
16
  /**
19
17
  * A list of error responses returned when a request is unsuccessful.
20
- * @type {Array<Error>}
21
- * @memberof UpdateShipmentStatusErrorResponse
22
18
  */
23
19
  'errors'?: Array<Error>;
24
20
  }
@@ -13,26 +13,15 @@ import type { OrderItemsInner } from './order-items-inner';
13
13
  import type { ShipmentStatus } from './shipment-status';
14
14
  /**
15
15
  * The request body for the `updateShipmentStatus` operation.
16
- * @export
17
- * @interface UpdateShipmentStatusRequest
18
16
  */
19
17
  export interface UpdateShipmentStatusRequest {
20
18
  /**
21
19
  * The unobfuscated marketplace identifier.
22
- * @type {string}
23
- * @memberof UpdateShipmentStatusRequest
24
20
  */
25
21
  'marketplaceId': string;
26
- /**
27
- *
28
- * @type {ShipmentStatus}
29
- * @memberof UpdateShipmentStatusRequest
30
- */
31
22
  'shipmentStatus': ShipmentStatus;
32
23
  /**
33
24
  * For partial shipment status updates, the list of order items and quantities to be updated.
34
- * @type {Array<OrderItemsInner>}
35
- * @memberof UpdateShipmentStatusRequest
36
25
  */
37
26
  'orderItems'?: Array<OrderItemsInner>;
38
27
  }
@@ -11,14 +11,10 @@
11
11
  */
12
12
  /**
13
13
  * The error response schema for the `UpdateVerificationStatus` operation.
14
- * @export
15
- * @interface UpdateVerificationStatusErrorResponse
16
14
  */
17
15
  export interface UpdateVerificationStatusErrorResponse {
18
16
  /**
19
17
  * A list of error responses returned when a request is unsuccessful.
20
- * @type {Array<Error>}
21
- * @memberof UpdateVerificationStatusErrorResponse
22
18
  */
23
19
  'errors'?: Array<Error>;
24
20
  }
@@ -13,32 +13,16 @@ import type { VerificationDetails } from './verification-details';
13
13
  import type { VerificationStatus } from './verification-status';
14
14
  /**
15
15
  * The updated values of the `VerificationStatus` field.
16
- * @export
17
- * @interface UpdateVerificationStatusRequestBody
18
16
  */
19
17
  export interface UpdateVerificationStatusRequestBody {
20
- /**
21
- *
22
- * @type {VerificationStatus}
23
- * @memberof UpdateVerificationStatusRequestBody
24
- */
25
18
  'status'?: VerificationStatus;
26
19
  /**
27
20
  * The identifier of the order\'s regulated information reviewer.
28
- * @type {string}
29
- * @memberof UpdateVerificationStatusRequestBody
30
21
  */
31
22
  'externalReviewerId': string;
32
23
  /**
33
24
  * The unique identifier of the rejection reason used for rejecting the order\'s regulated information. Only required if the new status is rejected.
34
- * @type {string}
35
- * @memberof UpdateVerificationStatusRequestBody
36
25
  */
37
26
  'rejectionReasonId'?: string;
38
- /**
39
- *
40
- * @type {VerificationDetails}
41
- * @memberof UpdateVerificationStatusRequestBody
42
- */
43
27
  'verificationDetails'?: VerificationDetails;
44
28
  }
@@ -12,14 +12,7 @@
12
12
  import type { UpdateVerificationStatusRequestBody } from './update-verification-status-request-body';
13
13
  /**
14
14
  * The request body for the `updateVerificationStatus` operation.
15
- * @export
16
- * @interface UpdateVerificationStatusRequest
17
15
  */
18
16
  export interface UpdateVerificationStatusRequest {
19
- /**
20
- *
21
- * @type {UpdateVerificationStatusRequestBody}
22
- * @memberof UpdateVerificationStatusRequest
23
- */
24
17
  'regulatedOrderVerificationStatus': UpdateVerificationStatusRequestBody;
25
18
  }
@@ -12,20 +12,14 @@
12
12
  import type { VerificationStatus } from './verification-status';
13
13
  /**
14
14
  * The types of verification details that may be provided for the order and the criteria required for when the type of verification detail can be provided. The types of verification details allowed depend on the type of regulated product and will not change order to order.
15
- * @export
16
- * @interface ValidVerificationDetail
17
15
  */
18
16
  export interface ValidVerificationDetail {
19
17
  /**
20
18
  * A supported type of verification detail. The type indicates which verification detail could be shared while updating the regulated order. Valid value: `prescriptionDetail`.
21
- * @type {string}
22
- * @memberof ValidVerificationDetail
23
19
  */
24
20
  'VerificationDetailType': string;
25
21
  /**
26
22
  * A list of valid verification statuses where the associated verification detail type may be provided. For example, if the value of this field is [\"Approved\"], calls to provide the associated verification detail will fail for orders with a `VerificationStatus` of `Pending`, `Rejected`, `Expired`, or `Cancelled`.
27
- * @type {Array<VerificationStatus>}
28
- * @memberof ValidVerificationDetail
29
23
  */
30
24
  'ValidVerificationStatuses': Array<VerificationStatus>;
31
25
  }
@@ -12,14 +12,7 @@
12
12
  import type { PrescriptionDetail } from './prescription-detail';
13
13
  /**
14
14
  * Additional information related to the verification of a regulated order.
15
- * @export
16
- * @interface VerificationDetails
17
15
  */
18
16
  export interface VerificationDetails {
19
- /**
20
- *
21
- * @type {PrescriptionDetail}
22
- * @memberof VerificationDetails
23
- */
24
17
  'prescriptionDetail'?: PrescriptionDetail;
25
18
  }
@@ -11,8 +11,6 @@
11
11
  */
12
12
  /**
13
13
  * The verification status of the order.
14
- * @export
15
- * @enum {string}
16
14
  */
17
15
  export declare const VerificationStatus: {
18
16
  readonly Pending: "Pending";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/orders-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. Note: For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).",
5
- "version": "5.1.0",
5
+ "version": "5.1.2",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.15",
22
- "axios": "^1.10.0"
21
+ "@sp-api-sdk/common": "2.1.17",
22
+ "axios": "^1.11.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,26 @@
40
40
  "sp sdk",
41
41
  "orders api"
42
42
  ],
43
- "gitHead": "b36600f33d62a2b6c3a9035968a93bc83e9838a9"
43
+ "xo": {
44
+ "extends": [
45
+ "xo-bizon"
46
+ ],
47
+ "settings": {
48
+ "import/internal-regex": "^@sp-api-sdk/"
49
+ },
50
+ "semicolon": false,
51
+ "space": 2,
52
+ "prettier": true,
53
+ "ignores": [
54
+ "src/api-model/**"
55
+ ],
56
+ "rules": {
57
+ "unicorn/prevent-abbreviations": "off"
58
+ }
59
+ },
60
+ "prettier": {
61
+ "printWidth": 100,
62
+ "jsxSingleQuote": true
63
+ },
64
+ "gitHead": "961457650a65779f38e5d35547ca8cb2fb749943"
44
65
  }