@sp-api-sdk/vendor-shipments-api-v1 1.6.15

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 (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cjs/index.js +6 -0
  4. package/dist/cjs/src/api-model/api/vendor-shipping-api.js +119 -0
  5. package/dist/cjs/src/api-model/api.js +17 -0
  6. package/dist/cjs/src/api-model/base.js +62 -0
  7. package/dist/cjs/src/api-model/common.js +137 -0
  8. package/dist/cjs/src/api-model/configuration.js +42 -0
  9. package/dist/cjs/src/api-model/index.js +19 -0
  10. package/dist/cjs/src/api-model/models/address.js +15 -0
  11. package/dist/cjs/src/api-model/models/carton-reference-details.js +15 -0
  12. package/dist/cjs/src/api-model/models/carton.js +15 -0
  13. package/dist/cjs/src/api-model/models/container-identification.js +28 -0
  14. package/dist/cjs/src/api-model/models/container-item.js +15 -0
  15. package/dist/cjs/src/api-model/models/dimensions.js +27 -0
  16. package/dist/cjs/src/api-model/models/duration.js +25 -0
  17. package/dist/cjs/src/api-model/models/expiry.js +15 -0
  18. package/dist/cjs/src/api-model/models/import-details.js +29 -0
  19. package/dist/cjs/src/api-model/models/index.js +31 -0
  20. package/dist/cjs/src/api-model/models/item-details.js +27 -0
  21. package/dist/cjs/src/api-model/models/item-quantity.js +25 -0
  22. package/dist/cjs/src/api-model/models/item.js +15 -0
  23. package/dist/cjs/src/api-model/models/location.js +15 -0
  24. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  25. package/dist/cjs/src/api-model/models/money.js +15 -0
  26. package/dist/cjs/src/api-model/models/pallet.js +15 -0
  27. package/dist/cjs/src/api-model/models/party-identification.js +15 -0
  28. package/dist/cjs/src/api-model/models/route.js +15 -0
  29. package/dist/cjs/src/api-model/models/shipment-confirmation.js +49 -0
  30. package/dist/cjs/src/api-model/models/shipment-measurements.js +15 -0
  31. package/dist/cjs/src/api-model/models/stop.js +26 -0
  32. package/dist/cjs/src/api-model/models/submit-shipment-confirmations-request.js +15 -0
  33. package/dist/cjs/src/api-model/models/submit-shipment-confirmations-response.js +15 -0
  34. package/dist/cjs/src/api-model/models/tax-registration-details.js +25 -0
  35. package/dist/cjs/src/api-model/models/transaction-reference.js +15 -0
  36. package/dist/cjs/src/api-model/models/transportation-details.js +26 -0
  37. package/dist/cjs/src/api-model/models/volume.js +27 -0
  38. package/dist/cjs/src/api-model/models/weight.js +27 -0
  39. package/dist/cjs/src/client.js +35 -0
  40. package/dist/cjs/src/error.js +10 -0
  41. package/dist/es/index.js +3 -0
  42. package/dist/es/src/api-model/api/vendor-shipping-api.js +111 -0
  43. package/dist/es/src/api-model/api.js +14 -0
  44. package/dist/es/src/api-model/base.js +56 -0
  45. package/dist/es/src/api-model/common.js +125 -0
  46. package/dist/es/src/api-model/configuration.js +38 -0
  47. package/dist/es/src/api-model/index.js +16 -0
  48. package/dist/es/src/api-model/models/address.js +14 -0
  49. package/dist/es/src/api-model/models/carton-reference-details.js +14 -0
  50. package/dist/es/src/api-model/models/carton.js +14 -0
  51. package/dist/es/src/api-model/models/container-identification.js +25 -0
  52. package/dist/es/src/api-model/models/container-item.js +14 -0
  53. package/dist/es/src/api-model/models/dimensions.js +24 -0
  54. package/dist/es/src/api-model/models/duration.js +22 -0
  55. package/dist/es/src/api-model/models/expiry.js +14 -0
  56. package/dist/es/src/api-model/models/import-details.js +26 -0
  57. package/dist/es/src/api-model/models/index.js +28 -0
  58. package/dist/es/src/api-model/models/item-details.js +24 -0
  59. package/dist/es/src/api-model/models/item-quantity.js +22 -0
  60. package/dist/es/src/api-model/models/item.js +14 -0
  61. package/dist/es/src/api-model/models/location.js +14 -0
  62. package/dist/es/src/api-model/models/model-error.js +14 -0
  63. package/dist/es/src/api-model/models/money.js +14 -0
  64. package/dist/es/src/api-model/models/pallet.js +14 -0
  65. package/dist/es/src/api-model/models/party-identification.js +14 -0
  66. package/dist/es/src/api-model/models/route.js +14 -0
  67. package/dist/es/src/api-model/models/shipment-confirmation.js +46 -0
  68. package/dist/es/src/api-model/models/shipment-measurements.js +14 -0
  69. package/dist/es/src/api-model/models/stop.js +23 -0
  70. package/dist/es/src/api-model/models/submit-shipment-confirmations-request.js +14 -0
  71. package/dist/es/src/api-model/models/submit-shipment-confirmations-response.js +14 -0
  72. package/dist/es/src/api-model/models/tax-registration-details.js +22 -0
  73. package/dist/es/src/api-model/models/transaction-reference.js +14 -0
  74. package/dist/es/src/api-model/models/transportation-details.js +23 -0
  75. package/dist/es/src/api-model/models/volume.js +24 -0
  76. package/dist/es/src/api-model/models/weight.js +24 -0
  77. package/dist/es/src/client.js +31 -0
  78. package/dist/es/src/error.js +6 -0
  79. package/dist/types/index.d.ts +3 -0
  80. package/dist/types/src/api-model/api/vendor-shipping-api.d.ts +84 -0
  81. package/dist/types/src/api-model/api.d.ts +12 -0
  82. package/dist/types/src/api-model/base.d.ts +55 -0
  83. package/dist/types/src/api-model/common.d.ts +65 -0
  84. package/dist/types/src/api-model/configuration.d.ts +83 -0
  85. package/dist/types/src/api-model/index.d.ts +14 -0
  86. package/dist/types/src/api-model/models/address.d.ts +84 -0
  87. package/dist/types/src/api-model/models/carton-reference-details.d.ts +30 -0
  88. package/dist/types/src/api-model/models/carton.d.ts +58 -0
  89. package/dist/types/src/api-model/models/container-identification.d.ts +41 -0
  90. package/dist/types/src/api-model/models/container-item.d.ts +38 -0
  91. package/dist/types/src/api-model/models/dimensions.d.ts +52 -0
  92. package/dist/types/src/api-model/models/duration.d.ts +38 -0
  93. package/dist/types/src/api-model/models/expiry.d.ts +37 -0
  94. package/dist/types/src/api-model/models/import-details.d.ts +68 -0
  95. package/dist/types/src/api-model/models/index.d.ts +28 -0
  96. package/dist/types/src/api-model/models/item-details.d.ts +60 -0
  97. package/dist/types/src/api-model/models/item-quantity.d.ts +44 -0
  98. package/dist/types/src/api-model/models/item.d.ts +50 -0
  99. package/dist/types/src/api-model/models/location.d.ts +36 -0
  100. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  101. package/dist/types/src/api-model/models/money.d.ts +30 -0
  102. package/dist/types/src/api-model/models/pallet.d.ts +65 -0
  103. package/dist/types/src/api-model/models/party-identification.d.ts +38 -0
  104. package/dist/types/src/api-model/models/route.d.ts +25 -0
  105. package/dist/types/src/api-model/models/shipment-confirmation.d.ts +157 -0
  106. package/dist/types/src/api-model/models/shipment-measurements.d.ts +44 -0
  107. package/dist/types/src/api-model/models/stop.d.ts +52 -0
  108. package/dist/types/src/api-model/models/submit-shipment-confirmations-request.d.ts +25 -0
  109. package/dist/types/src/api-model/models/submit-shipment-confirmations-response.d.ts +31 -0
  110. package/dist/types/src/api-model/models/tax-registration-details.d.ts +38 -0
  111. package/dist/types/src/api-model/models/transaction-reference.d.ts +24 -0
  112. package/dist/types/src/api-model/models/transportation-details.d.ts +51 -0
  113. package/dist/types/src/api-model/models/volume.d.ts +40 -0
  114. package/dist/types/src/api-model/models/weight.d.ts +40 -0
  115. package/dist/types/src/client.d.ts +13 -0
  116. package/dist/types/src/error.d.ts +3 -0
  117. package/package.json +53 -0
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ShipmentConfirmation } from './shipment-confirmation';
13
+ /**
14
+ * The request schema for the SubmitShipmentConfirmations operation.
15
+ * @export
16
+ * @interface SubmitShipmentConfirmationsRequest
17
+ */
18
+ export interface SubmitShipmentConfirmationsRequest {
19
+ /**
20
+ *
21
+ * @type {Array<ShipmentConfirmation>}
22
+ * @memberof SubmitShipmentConfirmationsRequest
23
+ */
24
+ shipmentConfirmations?: Array<ShipmentConfirmation>;
25
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { TransactionReference } from './transaction-reference';
13
+ /**
14
+ * The response schema for the SubmitShipmentConfirmations operation.
15
+ * @export
16
+ * @interface SubmitShipmentConfirmationsResponse
17
+ */
18
+ export interface SubmitShipmentConfirmationsResponse {
19
+ /**
20
+ *
21
+ * @type {TransactionReference}
22
+ * @memberof SubmitShipmentConfirmationsResponse
23
+ */
24
+ payload?: TransactionReference;
25
+ /**
26
+ * A list of error responses returned when a request is unsuccessful.
27
+ * @type {Array<Error>}
28
+ * @memberof SubmitShipmentConfirmationsResponse
29
+ */
30
+ errors?: Array<Error>;
31
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Tax registration details of the entity.
14
+ * @export
15
+ * @interface TaxRegistrationDetails
16
+ */
17
+ export interface TaxRegistrationDetails {
18
+ /**
19
+ * Tax registration type for the entity.
20
+ * @type {string}
21
+ * @memberof TaxRegistrationDetails
22
+ */
23
+ taxRegistrationType: TaxRegistrationDetailsTaxRegistrationTypeEnum;
24
+ /**
25
+ * Tax registration number for the entity. For example, VAT ID.
26
+ * @type {string}
27
+ * @memberof TaxRegistrationDetails
28
+ */
29
+ taxRegistrationNumber: string;
30
+ }
31
+ /**
32
+ * @export
33
+ * @enum {string}
34
+ */
35
+ export declare enum TaxRegistrationDetailsTaxRegistrationTypeEnum {
36
+ Vat = "VAT",
37
+ Gst = "GST"
38
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TransactionReference
16
+ */
17
+ export interface TransactionReference {
18
+ /**
19
+ * GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction.
20
+ * @type {string}
21
+ * @memberof TransactionReference
22
+ */
23
+ transactionId?: string;
24
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TransportationDetails
16
+ */
17
+ export interface TransportationDetails {
18
+ /**
19
+ * Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). This field is mandatory for US, CA, MX shipment confirmations.
20
+ * @type {string}
21
+ * @memberof TransportationDetails
22
+ */
23
+ carrierScac?: string;
24
+ /**
25
+ * The field also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for UA, CA, MX shipment confirmations.
26
+ * @type {string}
27
+ * @memberof TransportationDetails
28
+ */
29
+ carrierShipmentReferenceNumber?: string;
30
+ /**
31
+ * The mode of transportation for this shipment.
32
+ * @type {string}
33
+ * @memberof TransportationDetails
34
+ */
35
+ transportationMode?: TransportationDetailsTransportationModeEnum;
36
+ /**
37
+ * Bill Of Lading (BOL) number is the unique number assigned by the vendor. The BOL present in the Shipment Confirmation message ideally matches the paper BOL provided with the shipment, but that is no must. Instead of BOL, an alternative reference number (like Delivery Note Number) for the shipment can also be sent in this field.
38
+ * @type {string}
39
+ * @memberof TransportationDetails
40
+ */
41
+ billOfLadingNumber?: string;
42
+ }
43
+ /**
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+ export declare enum TransportationDetailsTransportationModeEnum {
48
+ Road = "Road",
49
+ Air = "Air",
50
+ Ocean = "Ocean"
51
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The volume of the container.
14
+ * @export
15
+ * @interface Volume
16
+ */
17
+ export interface Volume {
18
+ /**
19
+ * The unit of measurement.
20
+ * @type {string}
21
+ * @memberof Volume
22
+ */
23
+ unitOfMeasure: VolumeUnitOfMeasureEnum;
24
+ /**
25
+ * A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`.
26
+ * @type {string}
27
+ * @memberof Volume
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * @export
33
+ * @enum {string}
34
+ */
35
+ export declare enum VolumeUnitOfMeasureEnum {
36
+ CuFt = "CuFt",
37
+ CuIn = "CuIn",
38
+ CuM = "CuM",
39
+ CuY = "CuY"
40
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The weight.
14
+ * @export
15
+ * @interface Weight
16
+ */
17
+ export interface Weight {
18
+ /**
19
+ * The unit of measurement.
20
+ * @type {string}
21
+ * @memberof Weight
22
+ */
23
+ unitOfMeasure: WeightUnitOfMeasureEnum;
24
+ /**
25
+ * A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`.
26
+ * @type {string}
27
+ * @memberof Weight
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * @export
33
+ * @enum {string}
34
+ */
35
+ export declare enum WeightUnitOfMeasureEnum {
36
+ G = "G",
37
+ Kg = "Kg",
38
+ Oz = "Oz",
39
+ Lb = "Lb"
40
+ }
@@ -0,0 +1,13 @@
1
+ import { onRetry } from '@sp-api-sdk/common';
2
+ import type { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
3
+ import { VendorShippingApi } from './api-model';
4
+ export declare const RATE_LIMITS: RateLimit[];
5
+ export interface ClientParameters extends Omit<ClientConfiguration, 'rateLimits' | 'onRetry'> {
6
+ rateLimiting?: {
7
+ retry: boolean;
8
+ onRetry?: onRetry;
9
+ };
10
+ }
11
+ export declare class VendorShipmentsApiClient extends VendorShippingApi {
12
+ constructor(parameters: ClientParameters);
13
+ }
@@ -0,0 +1,3 @@
1
+ export declare class VendorShipmentsApiError extends Error {
2
+ constructor(message: string);
3
+ }
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@sp-api-sdk/vendor-shipments-api-v1",
3
+ "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
+ "description": "The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.",
5
+ "version": "1.6.15",
6
+ "main": "dist/cjs/index.js",
7
+ "module": "dist/es/index.js",
8
+ "types": "dist/types/index.d.ts",
9
+ "license": "MIT",
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "directories": {
14
+ "lib": "dist"
15
+ },
16
+ "files": [
17
+ "dist/**/*.js",
18
+ "dist/**/*.d.ts"
19
+ ],
20
+ "scripts": {
21
+ "build:cjs": "tsc -p tsconfig.json",
22
+ "build:es": "tsc -p tsconfig.es.json",
23
+ "build": "yarn build:cjs && yarn build:es",
24
+ "clean": "rimraf dist",
25
+ "lint": "xo --cwd=../../ $PWD",
26
+ "test": "NODE_ENV='test' yarn jest"
27
+ },
28
+ "dependencies": {
29
+ "@sp-api-sdk/auth": "^1.9.1",
30
+ "@sp-api-sdk/common": "^1.7.2",
31
+ "axios": "^0.21.1"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/bizon/selling-partner-api-sdk.git",
36
+ "directory": "clients/vendor-shipments-api-v1"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/bizon/selling-partner-api-sdk/issues"
40
+ },
41
+ "homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/vendor-shipments-api-v1",
42
+ "keywords": [
43
+ "amazon",
44
+ "bizon",
45
+ "marketplace web services",
46
+ "mws",
47
+ "selling partner api",
48
+ "sp api",
49
+ "sp sdk",
50
+ "vendor shipments api"
51
+ ],
52
+ "gitHead": "dc4286920dc77e99d6ad71f71bcb78ae22b9ab06"
53
+ }