@sp-api-sdk/invoices-api-2024-06-19 2.0.5 → 2.0.7

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 (35) hide show
  1. package/dist/cjs/api-model/api/invoices-api.js +0 -22
  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/export-status.js +0 -2
  6. package/dist/cjs/api-model/models/file-format.js +0 -2
  7. package/dist/es/api-model/api/invoices-api.js +0 -22
  8. package/dist/es/api-model/base.js +0 -19
  9. package/dist/es/api-model/common.js +0 -37
  10. package/dist/es/api-model/configuration.js +0 -17
  11. package/dist/es/api-model/models/export-status.js +0 -2
  12. package/dist/es/api-model/models/file-format.js +0 -2
  13. package/dist/types/api-model/api/invoices-api.d.ts +0 -88
  14. package/dist/types/api-model/base.d.ts +0 -24
  15. package/dist/types/api-model/common.d.ts +0 -37
  16. package/dist/types/api-model/configuration.d.ts +0 -17
  17. package/dist/types/api-model/models/attribute-option.d.ts +0 -6
  18. package/dist/types/api-model/models/error-list.d.ts +0 -4
  19. package/dist/types/api-model/models/export-invoices-request.d.ts +0 -28
  20. package/dist/types/api-model/models/export-invoices-response.d.ts +0 -4
  21. package/dist/types/api-model/models/export-status.d.ts +0 -2
  22. package/dist/types/api-model/models/export.d.ts +0 -17
  23. package/dist/types/api-model/models/file-format.d.ts +0 -2
  24. package/dist/types/api-model/models/get-invoice-response.d.ts +0 -7
  25. package/dist/types/api-model/models/get-invoices-attributes-response.d.ts +0 -7
  26. package/dist/types/api-model/models/get-invoices-document-response.d.ts +0 -7
  27. package/dist/types/api-model/models/get-invoices-export-response.d.ts +0 -7
  28. package/dist/types/api-model/models/get-invoices-exports-response.d.ts +0 -6
  29. package/dist/types/api-model/models/get-invoices-response.d.ts +0 -6
  30. package/dist/types/api-model/models/invoice.d.ts +0 -22
  31. package/dist/types/api-model/models/invoices-attributes.d.ts +0 -10
  32. package/dist/types/api-model/models/invoices-document.d.ts +0 -6
  33. package/dist/types/api-model/models/model-error.d.ts +0 -8
  34. package/dist/types/api-model/models/transaction-identifier.d.ts +0 -6
  35. package/package.json +25 -4
@@ -12,14 +12,7 @@
12
12
  import type { InvoicesAttributes } from './invoices-attributes';
13
13
  /**
14
14
  * Success.
15
- * @export
16
- * @interface GetInvoicesAttributesResponse
17
15
  */
18
16
  export interface GetInvoicesAttributesResponse {
19
- /**
20
- *
21
- * @type {InvoicesAttributes}
22
- * @memberof GetInvoicesAttributesResponse
23
- */
24
17
  'invoicesAttributes'?: InvoicesAttributes;
25
18
  }
@@ -12,14 +12,7 @@
12
12
  import type { InvoicesDocument } from './invoices-document';
13
13
  /**
14
14
  * Success.
15
- * @export
16
- * @interface GetInvoicesDocumentResponse
17
15
  */
18
16
  export interface GetInvoicesDocumentResponse {
19
- /**
20
- *
21
- * @type {InvoicesDocument}
22
- * @memberof GetInvoicesDocumentResponse
23
- */
24
17
  'invoicesDocument'?: InvoicesDocument;
25
18
  }
@@ -12,14 +12,7 @@
12
12
  import type { Export } from './export';
13
13
  /**
14
14
  * Success.
15
- * @export
16
- * @interface GetInvoicesExportResponse
17
15
  */
18
16
  export interface GetInvoicesExportResponse {
19
- /**
20
- *
21
- * @type {Export}
22
- * @memberof GetInvoicesExportResponse
23
- */
24
17
  'export'?: Export;
25
18
  }
@@ -12,20 +12,14 @@
12
12
  import type { Export } from './export';
13
13
  /**
14
14
  * Success.
15
- * @export
16
- * @interface GetInvoicesExportsResponse
17
15
  */
18
16
  export interface GetInvoicesExportsResponse {
19
17
  /**
20
18
  * A list of exports.
21
- * @type {Array<Export>}
22
- * @memberof GetInvoicesExportsResponse
23
19
  */
24
20
  'exports'?: Array<Export>;
25
21
  /**
26
22
  * This token is returned when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the `getInvoices` operation and include this token with the previous call parameters.
27
- * @type {string}
28
- * @memberof GetInvoicesExportsResponse
29
23
  */
30
24
  'nextToken'?: string;
31
25
  }
@@ -12,20 +12,14 @@
12
12
  import type { Invoice } from './invoice';
13
13
  /**
14
14
  * Success.
15
- * @export
16
- * @interface GetInvoicesResponse
17
15
  */
18
16
  export interface GetInvoicesResponse {
19
17
  /**
20
18
  * A list of invoices.
21
- * @type {Array<Invoice>}
22
- * @memberof GetInvoicesResponse
23
19
  */
24
20
  'invoices'?: Array<Invoice>;
25
21
  /**
26
22
  * This token is returned when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the `getInvoices` operation and include this token with the previous call parameters.
27
- * @type {string}
28
- * @memberof GetInvoicesResponse
29
23
  */
30
24
  'nextToken'?: string;
31
25
  }
@@ -12,68 +12,46 @@
12
12
  import type { TransactionIdentifier } from './transaction-identifier';
13
13
  /**
14
14
  * Provides detailed information about an invoice.
15
- * @export
16
- * @interface Invoice
17
15
  */
18
16
  export interface Invoice {
19
17
  /**
20
18
  * The date and time the invoice is issued. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
21
- * @type {string}
22
- * @memberof Invoice
23
19
  */
24
20
  'date'?: string;
25
21
  /**
26
22
  * If the invoice is in an error state, this attribute displays the error code.
27
- * @type {string}
28
- * @memberof Invoice
29
23
  */
30
24
  'errorCode'?: string;
31
25
  /**
32
26
  * The invoice identifier that is used by an external party. This is typically the government agency that authorized the invoice.
33
- * @type {string}
34
- * @memberof Invoice
35
27
  */
36
28
  'externalInvoiceId'?: string;
37
29
  /**
38
30
  * The response message from the government authority when there is an error during invoice issuance.
39
- * @type {string}
40
- * @memberof Invoice
41
31
  */
42
32
  'govResponse'?: string;
43
33
  /**
44
34
  * The invoice identifier.
45
- * @type {string}
46
- * @memberof Invoice
47
35
  */
48
36
  'id'?: string;
49
37
  /**
50
38
  * The classification of the invoice type. This varies across marketplaces. Use the `getInvoicesAttributes` operation to check `invoiceType` options.
51
- * @type {string}
52
- * @memberof Invoice
53
39
  */
54
40
  'invoiceType'?: string;
55
41
  /**
56
42
  * Use this identifier in conjunction with `externalInvoiceId` to identify invoices from the same seller.
57
- * @type {string}
58
- * @memberof Invoice
59
43
  */
60
44
  'series'?: string;
61
45
  /**
62
46
  * The invoice status classification. Use the `getInvoicesAttributes` operation to check invoice status options.
63
- * @type {string}
64
- * @memberof Invoice
65
47
  */
66
48
  'status'?: string;
67
49
  /**
68
50
  * List with identifiers for the transactions associated to the invoice.
69
- * @type {Array<TransactionIdentifier>}
70
- * @memberof Invoice
71
51
  */
72
52
  'transactionIds'?: Array<TransactionIdentifier>;
73
53
  /**
74
54
  * Classification of the transaction that originated this invoice. Use the `getInvoicesAttributes` operation to check `transactionType` options.
75
- * @type {string}
76
- * @memberof Invoice
77
55
  */
78
56
  'transactionType'?: string;
79
57
  }
@@ -12,32 +12,22 @@
12
12
  import type { AttributeOption } from './attribute-option';
13
13
  /**
14
14
  * An object that contains the invoice attributes definition.
15
- * @export
16
- * @interface InvoicesAttributes
17
15
  */
18
16
  export interface InvoicesAttributes {
19
17
  /**
20
18
  * A list of all the options that are available for the invoice status attribute.
21
- * @type {Array<AttributeOption>}
22
- * @memberof InvoicesAttributes
23
19
  */
24
20
  'invoiceStatusOptions'?: Array<AttributeOption>;
25
21
  /**
26
22
  * A list of all the options that are available for the invoice type attribute.
27
- * @type {Array<AttributeOption>}
28
- * @memberof InvoicesAttributes
29
23
  */
30
24
  'invoiceTypeOptions'?: Array<AttributeOption>;
31
25
  /**
32
26
  * A list of all the options that are available for the transaction identifier name attribute.
33
- * @type {Array<AttributeOption>}
34
- * @memberof InvoicesAttributes
35
27
  */
36
28
  'transactionIdentifierNameOptions'?: Array<AttributeOption>;
37
29
  /**
38
30
  * A list of all the options that are available for the transaction type attribute.
39
- * @type {Array<AttributeOption>}
40
- * @memberof InvoicesAttributes
41
31
  */
42
32
  'transactionTypeOptions'?: Array<AttributeOption>;
43
33
  }
@@ -11,20 +11,14 @@
11
11
  */
12
12
  /**
13
13
  * An object that contains the `documentId` and an S3 pre-signed URL that you can use to download the specified file.
14
- * @export
15
- * @interface InvoicesDocument
16
14
  */
17
15
  export interface InvoicesDocument {
18
16
  /**
19
17
  * The identifier of the export document.
20
- * @type {string}
21
- * @memberof InvoicesDocument
22
18
  */
23
19
  'invoicesDocumentId'?: string;
24
20
  /**
25
21
  * A pre-signed URL that you can use to download the invoices document in zip format. This URL expires after 30 seconds.
26
- * @type {string}
27
- * @memberof InvoicesDocument
28
22
  */
29
23
  'invoicesDocumentUrl'?: string;
30
24
  }
@@ -11,26 +11,18 @@
11
11
  */
12
12
  /**
13
13
  * The error response that is returned when the request is unsuccessful.
14
- * @export
15
- * @interface ModelError
16
14
  */
17
15
  export interface ModelError {
18
16
  /**
19
17
  * An error code that identifies the type of error that occurred.
20
- * @type {string}
21
- * @memberof ModelError
22
18
  */
23
19
  'code': string;
24
20
  /**
25
21
  * Additional details that can help the caller understand or fix the issue.
26
- * @type {string}
27
- * @memberof ModelError
28
22
  */
29
23
  'details'?: string;
30
24
  /**
31
25
  * A message that describes the error condition.
32
- * @type {string}
33
- * @memberof ModelError
34
26
  */
35
27
  'message': string;
36
28
  }
@@ -11,20 +11,14 @@
11
11
  */
12
12
  /**
13
13
  * The identifier for a transaction.
14
- * @export
15
- * @interface TransactionIdentifier
16
14
  */
17
15
  export interface TransactionIdentifier {
18
16
  /**
19
17
  * The transaction identifier name. Use the `getInvoicesAttributes` operation to check `transactionIdentifierName` options.
20
- * @type {string}
21
- * @memberof TransactionIdentifier
22
18
  */
23
19
  'name'?: string;
24
20
  /**
25
21
  * The transaction identifier.
26
- * @type {string}
27
- * @memberof TransactionIdentifier
28
22
  */
29
23
  'id'?: string;
30
24
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/invoices-api-2024-06-19",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.",
5
- "version": "2.0.5",
5
+ "version": "2.0.7",
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.14",
22
- "axios": "^1.9.0"
21
+ "@sp-api-sdk/common": "2.1.16",
22
+ "axios": "^1.11.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,26 @@
40
40
  "sp sdk",
41
41
  "invoices api"
42
42
  ],
43
- "gitHead": "773f45c3f4aab28e0bd9f6033045988800d7f258"
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": "fc1b46f3bc172469e2fbbc2e0155f6fa7ce3edde"
44
65
  }