@sp-api-sdk/vendor-orders-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-orders-api.js +438 -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/acknowledgement-status-details.js +15 -0
  11. package/dist/cjs/src/api-model/models/address.js +15 -0
  12. package/dist/cjs/src/api-model/models/get-purchase-order-response.js +15 -0
  13. package/dist/cjs/src/api-model/models/get-purchase-orders-response.js +15 -0
  14. package/dist/cjs/src/api-model/models/get-purchase-orders-status-response.js +15 -0
  15. package/dist/cjs/src/api-model/models/import-details.js +47 -0
  16. package/dist/cjs/src/api-model/models/index.js +31 -0
  17. package/dist/cjs/src/api-model/models/item-quantity.js +25 -0
  18. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  19. package/dist/cjs/src/api-model/models/money.js +15 -0
  20. package/dist/cjs/src/api-model/models/order-acknowledgement-item.js +15 -0
  21. package/dist/cjs/src/api-model/models/order-acknowledgement.js +15 -0
  22. package/dist/cjs/src/api-model/models/order-details.js +38 -0
  23. package/dist/cjs/src/api-model/models/order-item-acknowledgement.js +36 -0
  24. package/dist/cjs/src/api-model/models/order-item-status-acknowledgement-status.js +27 -0
  25. package/dist/cjs/src/api-model/models/order-item-status-ordered-quantity.js +15 -0
  26. package/dist/cjs/src/api-model/models/order-item-status.js +15 -0
  27. package/dist/cjs/src/api-model/models/order-item.js +15 -0
  28. package/dist/cjs/src/api-model/models/order-list-status.js +15 -0
  29. package/dist/cjs/src/api-model/models/order-list.js +15 -0
  30. package/dist/cjs/src/api-model/models/order-status.js +25 -0
  31. package/dist/cjs/src/api-model/models/order.js +26 -0
  32. package/dist/cjs/src/api-model/models/ordered-quantity-details.js +15 -0
  33. package/dist/cjs/src/api-model/models/pagination.js +15 -0
  34. package/dist/cjs/src/api-model/models/party-identification.js +15 -0
  35. package/dist/cjs/src/api-model/models/submit-acknowledgement-request.js +15 -0
  36. package/dist/cjs/src/api-model/models/submit-acknowledgement-response.js +15 -0
  37. package/dist/cjs/src/api-model/models/tax-registration-details.js +25 -0
  38. package/dist/cjs/src/api-model/models/transaction-id.js +15 -0
  39. package/dist/cjs/src/client.js +53 -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-orders-api.js +430 -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/acknowledgement-status-details.js +14 -0
  49. package/dist/es/src/api-model/models/address.js +14 -0
  50. package/dist/es/src/api-model/models/get-purchase-order-response.js +14 -0
  51. package/dist/es/src/api-model/models/get-purchase-orders-response.js +14 -0
  52. package/dist/es/src/api-model/models/get-purchase-orders-status-response.js +14 -0
  53. package/dist/es/src/api-model/models/import-details.js +44 -0
  54. package/dist/es/src/api-model/models/index.js +28 -0
  55. package/dist/es/src/api-model/models/item-quantity.js +22 -0
  56. package/dist/es/src/api-model/models/model-error.js +14 -0
  57. package/dist/es/src/api-model/models/money.js +14 -0
  58. package/dist/es/src/api-model/models/order-acknowledgement-item.js +14 -0
  59. package/dist/es/src/api-model/models/order-acknowledgement.js +14 -0
  60. package/dist/es/src/api-model/models/order-details.js +35 -0
  61. package/dist/es/src/api-model/models/order-item-acknowledgement.js +33 -0
  62. package/dist/es/src/api-model/models/order-item-status-acknowledgement-status.js +24 -0
  63. package/dist/es/src/api-model/models/order-item-status-ordered-quantity.js +14 -0
  64. package/dist/es/src/api-model/models/order-item-status.js +14 -0
  65. package/dist/es/src/api-model/models/order-item.js +14 -0
  66. package/dist/es/src/api-model/models/order-list-status.js +14 -0
  67. package/dist/es/src/api-model/models/order-list.js +14 -0
  68. package/dist/es/src/api-model/models/order-status.js +22 -0
  69. package/dist/es/src/api-model/models/order.js +23 -0
  70. package/dist/es/src/api-model/models/ordered-quantity-details.js +14 -0
  71. package/dist/es/src/api-model/models/pagination.js +14 -0
  72. package/dist/es/src/api-model/models/party-identification.js +14 -0
  73. package/dist/es/src/api-model/models/submit-acknowledgement-request.js +14 -0
  74. package/dist/es/src/api-model/models/submit-acknowledgement-response.js +14 -0
  75. package/dist/es/src/api-model/models/tax-registration-details.js +22 -0
  76. package/dist/es/src/api-model/models/transaction-id.js +14 -0
  77. package/dist/es/src/client.js +49 -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-orders-api.d.ts +411 -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/acknowledgement-status-details.d.ts +37 -0
  87. package/dist/types/src/api-model/models/address.d.ts +84 -0
  88. package/dist/types/src/api-model/models/get-purchase-order-response.d.ts +31 -0
  89. package/dist/types/src/api-model/models/get-purchase-orders-response.d.ts +31 -0
  90. package/dist/types/src/api-model/models/get-purchase-orders-status-response.d.ts +31 -0
  91. package/dist/types/src/api-model/models/import-details.d.ts +77 -0
  92. package/dist/types/src/api-model/models/index.d.ts +28 -0
  93. package/dist/types/src/api-model/models/item-quantity.d.ts +44 -0
  94. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  95. package/dist/types/src/api-model/models/money.d.ts +30 -0
  96. package/dist/types/src/api-model/models/order-acknowledgement-item.d.ts +69 -0
  97. package/dist/types/src/api-model/models/order-acknowledgement.d.ts +44 -0
  98. package/dist/types/src/api-model/models/order-details.d.ts +125 -0
  99. package/dist/types/src/api-model/models/order-item-acknowledgement.d.ts +67 -0
  100. package/dist/types/src/api-model/models/order-item-status-acknowledgement-status.d.ts +54 -0
  101. package/dist/types/src/api-model/models/order-item-status-ordered-quantity.d.ts +32 -0
  102. package/dist/types/src/api-model/models/order-item-status.d.ts +63 -0
  103. package/dist/types/src/api-model/models/order-item.d.ts +62 -0
  104. package/dist/types/src/api-model/models/order-list-status.d.ts +32 -0
  105. package/dist/types/src/api-model/models/order-list.d.ts +32 -0
  106. package/dist/types/src/api-model/models/order-status.d.ts +70 -0
  107. package/dist/types/src/api-model/models/order.d.ts +46 -0
  108. package/dist/types/src/api-model/models/ordered-quantity-details.d.ts +37 -0
  109. package/dist/types/src/api-model/models/pagination.d.ts +24 -0
  110. package/dist/types/src/api-model/models/party-identification.d.ts +38 -0
  111. package/dist/types/src/api-model/models/submit-acknowledgement-request.d.ts +25 -0
  112. package/dist/types/src/api-model/models/submit-acknowledgement-response.d.ts +31 -0
  113. package/dist/types/src/api-model/models/tax-registration-details.d.ts +38 -0
  114. package/dist/types/src/api-model/models/transaction-id.d.ts +24 -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,38 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Orders
3
+ * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
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 { Address } from './address';
13
+ import { TaxRegistrationDetails } from './tax-registration-details';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PartyIdentification
18
+ */
19
+ export interface PartyIdentification {
20
+ /**
21
+ * Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details.
22
+ * @type {string}
23
+ * @memberof PartyIdentification
24
+ */
25
+ partyId: string;
26
+ /**
27
+ *
28
+ * @type {Address}
29
+ * @memberof PartyIdentification
30
+ */
31
+ address?: Address;
32
+ /**
33
+ *
34
+ * @type {TaxRegistrationDetails}
35
+ * @memberof PartyIdentification
36
+ */
37
+ taxInfo?: TaxRegistrationDetails;
38
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Orders
3
+ * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
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 { OrderAcknowledgement } from './order-acknowledgement';
13
+ /**
14
+ * The request schema for the submitAcknowledgment operation.
15
+ * @export
16
+ * @interface SubmitAcknowledgementRequest
17
+ */
18
+ export interface SubmitAcknowledgementRequest {
19
+ /**
20
+ *
21
+ * @type {Array<OrderAcknowledgement>}
22
+ * @memberof SubmitAcknowledgementRequest
23
+ */
24
+ acknowledgements?: Array<OrderAcknowledgement>;
25
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Orders
3
+ * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
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 { TransactionId } from './transaction-id';
13
+ /**
14
+ * The response schema for the submitAcknowledgement operation
15
+ * @export
16
+ * @interface SubmitAcknowledgementResponse
17
+ */
18
+ export interface SubmitAcknowledgementResponse {
19
+ /**
20
+ *
21
+ * @type {TransactionId}
22
+ * @memberof SubmitAcknowledgementResponse
23
+ */
24
+ payload?: TransactionId;
25
+ /**
26
+ * A list of error responses returned when a request is unsuccessful.
27
+ * @type {Array<Error>}
28
+ * @memberof SubmitAcknowledgementResponse
29
+ */
30
+ errors?: Array<Error>;
31
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Orders
3
+ * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
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 Orders
3
+ * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
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 TransactionId
16
+ */
17
+ export interface TransactionId {
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 TransactionId
22
+ */
23
+ transactionId?: string;
24
+ }
@@ -0,0 +1,13 @@
1
+ import { onRetry } from '@sp-api-sdk/common';
2
+ import type { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
3
+ import { VendorOrdersApi } 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 VendorOrdersApiClient extends VendorOrdersApi {
12
+ constructor(parameters: ClientParameters);
13
+ }
@@ -0,0 +1,3 @@
1
+ export declare class VendorOrdersApiError extends Error {
2
+ constructor(message: string);
3
+ }
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@sp-api-sdk/vendor-orders-api-v1",
3
+ "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
+ "description": "The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.",
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-orders-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-orders-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 orders api"
51
+ ],
52
+ "gitHead": "dc4286920dc77e99d6ad71f71bcb78ae22b9ab06"
53
+ }