@commercetools/importapi-sdk 1.20.0 → 2.1.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 (111) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +100 -18
  3. package/dist/commercetools-importapi-sdk.browser.cjs.js +1964 -2190
  4. package/dist/commercetools-importapi-sdk.browser.esm.js +1964 -2190
  5. package/dist/commercetools-importapi-sdk.cjs.dev.js +1964 -2190
  6. package/dist/commercetools-importapi-sdk.cjs.prod.js +1964 -2190
  7. package/dist/commercetools-importapi-sdk.esm.js +1964 -2190
  8. package/dist/declarations/src/ctp/ctp-client.d.ts +2 -2
  9. package/dist/declarations/src/generated/client/api-root.d.ts +18 -18
  10. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +50 -52
  11. package/dist/declarations/src/generated/client/categories/by-project-key-categories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  12. package/dist/declarations/src/generated/client/categories/by-project-key-categories-request-builder.d.ts +28 -28
  13. package/dist/declarations/src/generated/client/customers/by-project-key-customers-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  14. package/dist/declarations/src/generated/client/customers/by-project-key-customers-request-builder.d.ts +28 -28
  15. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  16. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-request-builder.d.ts +26 -26
  17. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  18. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-request-builder.d.ts +26 -26
  19. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +55 -55
  20. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +51 -51
  21. package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  22. package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-request-builder.d.ts +26 -26
  23. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  24. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-request-builder.d.ts +26 -26
  25. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  26. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-request-builder.d.ts +26 -26
  27. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.d.ts +36 -36
  28. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-request-builder.d.ts +26 -26
  29. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  30. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-request-builder.d.ts +26 -26
  31. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  32. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.d.ts +26 -26
  33. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  34. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-request-builder.d.ts +26 -26
  35. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  36. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-request-builder.d.ts +26 -26
  37. package/dist/declarations/src/generated/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  38. package/dist/declarations/src/generated/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +49 -49
  39. package/dist/declarations/src/generated/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  40. package/dist/declarations/src/generated/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  41. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.d.ts +45 -45
  42. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +35 -35
  43. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-request-builder.d.ts +26 -26
  44. package/dist/declarations/src/generated/client/import-operations/by-project-key-order-patches-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  45. package/dist/declarations/src/generated/client/import-operations/by-project-key-order-patches-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  46. package/dist/declarations/src/generated/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  47. package/dist/declarations/src/generated/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  48. package/dist/declarations/src/generated/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  49. package/dist/declarations/src/generated/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  50. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-drafts-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  51. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-drafts-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  52. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-types-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  53. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-types-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  54. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  55. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  56. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variants-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  57. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variants-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  58. package/dist/declarations/src/generated/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  59. package/dist/declarations/src/generated/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  60. package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-by-import-sink-key-request-builder.d.ts +51 -51
  61. package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-request-builder.d.ts +51 -51
  62. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.d.ts +35 -35
  63. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  64. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-request-builder.d.ts +26 -26
  65. package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  66. package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-request-builder.d.ts +28 -28
  67. package/dist/declarations/src/generated/client/orders/by-project-key-orders-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  68. package/dist/declarations/src/generated/client/orders/by-project-key-orders-request-builder.d.ts +28 -28
  69. package/dist/declarations/src/generated/client/prices/by-project-key-prices-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  70. package/dist/declarations/src/generated/client/prices/by-project-key-prices-request-builder.d.ts +28 -28
  71. package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-import-sink-key-by-import-sink-key-request-builder.d.ts +38 -38
  72. package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-request-builder.d.ts +28 -28
  73. package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  74. package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-request-builder.d.ts +28 -28
  75. package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  76. package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-request-builder.d.ts +28 -28
  77. package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  78. package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-request-builder.d.ts +28 -28
  79. package/dist/declarations/src/generated/client/products/by-project-key-products-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  80. package/dist/declarations/src/generated/client/products/by-project-key-products-request-builder.d.ts +28 -28
  81. package/dist/declarations/src/generated/index.d.ts +25 -26
  82. package/dist/declarations/src/generated/models/categories.d.ts +79 -79
  83. package/dist/declarations/src/generated/models/common.d.ts +570 -570
  84. package/dist/declarations/src/generated/models/customers.d.ts +252 -252
  85. package/dist/declarations/src/generated/models/customfields.d.ts +260 -260
  86. package/dist/declarations/src/generated/models/errors.d.ts +356 -352
  87. package/dist/declarations/src/generated/models/importcontainers.d.ts +114 -114
  88. package/dist/declarations/src/generated/models/importoperations.d.ts +128 -128
  89. package/dist/declarations/src/generated/models/importrequests.d.ts +161 -175
  90. package/dist/declarations/src/generated/models/importsinks.d.ts +113 -113
  91. package/dist/declarations/src/generated/models/importsummaries.d.ts +55 -55
  92. package/dist/declarations/src/generated/models/order-patches.d.ts +227 -227
  93. package/dist/declarations/src/generated/models/orders.d.ts +778 -778
  94. package/dist/declarations/src/generated/models/prices.d.ts +130 -130
  95. package/dist/declarations/src/generated/models/productdrafts.d.ts +226 -224
  96. package/dist/declarations/src/generated/models/products.d.ts +181 -179
  97. package/dist/declarations/src/generated/models/producttypes.d.ts +173 -173
  98. package/dist/declarations/src/generated/models/productvariants.d.ts +529 -527
  99. package/dist/declarations/src/generated/shared/utils/common-types.d.ts +26 -26
  100. package/dist/declarations/src/generated/shared/utils/middleware.d.ts +8 -8
  101. package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +13 -13
  102. package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +7 -7
  103. package/dist/declarations/src/index.d.ts +2 -2
  104. package/package.json +5 -6
  105. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +0 -35
  106. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +0 -26
  107. package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +0 -37
  108. package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +0 -48
  109. package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-import-sink-key-by-import-sink-key-request-builder.d.ts +0 -37
  110. package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-request-builder.d.ts +0 -28
  111. package/dist/declarations/src/generated/models/inventories.d.ts +0 -44
@@ -1,114 +1,114 @@
1
- /**
2
- * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
- * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
- * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
- */
6
- import { ImportResourceType } from './common';
7
- /**
8
- * Serves as the entry point of resources.
9
- * An Import Container is not resource type-specific.
10
- *
11
- */
12
- export interface ImportContainer {
13
- /**
14
- * User-defined unique identifier for the ImportContainer.
15
- * Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
16
- *
17
- *
18
- */
19
- readonly key: string;
20
- /**
21
- * The [resource type](#importresourcetype) the ImportContainer is able to handle.
22
- * If not present, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
23
- *
24
- *
25
- */
26
- readonly resourceType?: ImportResourceType;
27
- /**
28
- * The version of the ImportContainer.
29
- *
30
- */
31
- readonly version: number;
32
- /**
33
- * The time when the ImportContainer was created.
34
- *
35
- */
36
- readonly createdAt: string;
37
- /**
38
- * The last time when the ImportContainer was modified.
39
- *
40
- */
41
- readonly lastModifiedAt: string;
42
- }
43
- /**
44
- * The representation sent to the server when creating an [ImportContainer](#importcontainer).
45
- *
46
- */
47
- export interface ImportContainerDraft {
48
- /**
49
- * User-defined unique identifier of the ImportContainer.
50
- * Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
51
- *
52
- *
53
- */
54
- readonly key: string;
55
- /**
56
- * The [resource type](#importresourcetype) to be imported.
57
- * If not given, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
58
- *
59
- *
60
- */
61
- readonly resourceType?: ImportResourceType;
62
- }
63
- /**
64
- * The representation sent to the server when updating an import container.
65
- *
66
- */
67
- export interface ImportContainerUpdateDraft {
68
- /**
69
- * Current version of the ImportContainer.
70
- *
71
- */
72
- readonly version: number;
73
- /**
74
- * The [resource type](#importresourcetype) to be imported.
75
- * If not given, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
76
- *
77
- *
78
- */
79
- readonly resourceType?: ImportResourceType;
80
- }
81
- /**
82
- * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) for [ImportContainers](#importcontainer).
83
- * Used as a response to a query request for [ImportContainers](#importcontainer).
84
- *
85
- */
86
- export interface ImportContainerPagedResponse {
87
- /**
88
- * The number of results requested in the query request.
89
- *
90
- */
91
- readonly limit: number;
92
- /**
93
- * The number of elements skipped, not a page number.
94
- * Supplied by the client or the server default.
95
- *
96
- *
97
- */
98
- readonly offset: number;
99
- /**
100
- * The actual number of results returned.
101
- *
102
- */
103
- readonly count: number;
104
- /**
105
- * The total number of results matching the query.
106
- *
107
- */
108
- readonly total: number;
109
- /**
110
- * The array of Import Containers matching the query.
111
- *
112
- */
113
- readonly results: ImportContainer[];
114
- }
1
+ /**
2
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
+ */
6
+ import { ImportResourceType } from './common';
7
+ /**
8
+ * Serves as the entry point of resources.
9
+ * An Import Container is not resource type-specific.
10
+ *
11
+ */
12
+ export interface ImportContainer {
13
+ /**
14
+ * User-defined unique identifier for the ImportContainer.
15
+ * Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
16
+ *
17
+ *
18
+ */
19
+ readonly key: string;
20
+ /**
21
+ * The [resource type](#importresourcetype) the ImportContainer is able to handle.
22
+ * If not present, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
23
+ *
24
+ *
25
+ */
26
+ readonly resourceType?: ImportResourceType;
27
+ /**
28
+ * The version of the ImportContainer.
29
+ *
30
+ */
31
+ readonly version: number;
32
+ /**
33
+ * The time when the ImportContainer was created.
34
+ *
35
+ */
36
+ readonly createdAt: string;
37
+ /**
38
+ * The last time when the ImportContainer was modified.
39
+ *
40
+ */
41
+ readonly lastModifiedAt: string;
42
+ }
43
+ /**
44
+ * The representation sent to the server when creating an [ImportContainer](#importcontainer).
45
+ *
46
+ */
47
+ export interface ImportContainerDraft {
48
+ /**
49
+ * User-defined unique identifier of the ImportContainer.
50
+ * Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
51
+ *
52
+ *
53
+ */
54
+ readonly key: string;
55
+ /**
56
+ * The [resource type](#importresourcetype) to be imported.
57
+ * If not given, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
58
+ *
59
+ *
60
+ */
61
+ readonly resourceType?: ImportResourceType;
62
+ }
63
+ /**
64
+ * The representation sent to the server when updating an import container.
65
+ *
66
+ */
67
+ export interface ImportContainerUpdateDraft {
68
+ /**
69
+ * Current version of the ImportContainer.
70
+ *
71
+ */
72
+ readonly version: number;
73
+ /**
74
+ * The [resource type](#importresourcetype) to be imported.
75
+ * If not given, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
76
+ *
77
+ *
78
+ */
79
+ readonly resourceType?: ImportResourceType;
80
+ }
81
+ /**
82
+ * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) for [ImportContainers](#importcontainer).
83
+ * Used as a response to a query request for [ImportContainers](#importcontainer).
84
+ *
85
+ */
86
+ export interface ImportContainerPagedResponse {
87
+ /**
88
+ * The number of results requested in the query request.
89
+ *
90
+ */
91
+ readonly limit: number;
92
+ /**
93
+ * The number of elements skipped, not a page number.
94
+ * Supplied by the client or the server default.
95
+ *
96
+ *
97
+ */
98
+ readonly offset: number;
99
+ /**
100
+ * The actual number of results returned.
101
+ *
102
+ */
103
+ readonly count: number;
104
+ /**
105
+ * The total number of results matching the query.
106
+ *
107
+ */
108
+ readonly total: number;
109
+ /**
110
+ * The array of Import Containers matching the query.
111
+ *
112
+ */
113
+ readonly results: ImportContainer[];
114
+ }
@@ -1,128 +1,128 @@
1
- /**
2
- * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
- * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
- * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
- */
6
- import { ProcessingState, UnresolvedReferences } from './common';
7
- import { ErrorObject } from './errors';
8
- /**
9
- * Shows the import status of a specific resource.
10
- *
11
- */
12
- export interface ImportOperation {
13
- /**
14
- * The version of the ImportOperation.
15
- *
16
- */
17
- readonly version: number;
18
- /**
19
- * The key of the [importContainer](/import-container#importcontainer).
20
- *
21
- */
22
- readonly importContainerKey: string;
23
- /**
24
- * The key of the resource.
25
- *
26
- */
27
- readonly resourceKey: string;
28
- /**
29
- * The ID of the ImportOperation.
30
- *
31
- */
32
- readonly id: string;
33
- /**
34
- * The import status of the resource. Set to `rejected` or `validationFailed` if the import of the resource was not successful.
35
- *
36
- *
37
- */
38
- readonly state: ProcessingState;
39
- /**
40
- * The version of the impmorted resource when the import was successful.
41
- *
42
- */
43
- readonly resourceVersion?: number;
44
- /**
45
- * Contains an error if the import of the resource was not successful. See [Errors](/error).
46
- *
47
- *
48
- */
49
- readonly errors?: ErrorObject[];
50
- /**
51
- * In case of unresolved status this array will show the unresolved references
52
- *
53
- *
54
- */
55
- readonly unresolvedReferences?: UnresolvedReferences[];
56
- /**
57
- * The time when the ImportOperation was created.
58
- *
59
- */
60
- readonly createdAt: string;
61
- /**
62
- * The last time When the ImportOperation was modified.
63
- *
64
- */
65
- readonly lastModifiedAt: string;
66
- /**
67
- * The expiration time of the ImportOperation.
68
- *
69
- */
70
- readonly expiresAt: string;
71
- }
72
- /**
73
- * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) for Import Operations.
74
- *
75
- */
76
- export interface ImportOperationPagedResponse {
77
- /**
78
- * The number of results requested in the query request.
79
- *
80
- */
81
- readonly limit: number;
82
- /**
83
- * The number of elements skipped, not a page number.
84
- * Supplied by the client or the server default.
85
- *
86
- *
87
- */
88
- readonly offset: number;
89
- /**
90
- * The actual number of results returned.
91
- *
92
- */
93
- readonly count: number;
94
- /**
95
- * The total number of import operations matching the query.
96
- *
97
- */
98
- readonly total: number;
99
- /**
100
- * The array of Import Operations matching the query.
101
- *
102
- */
103
- readonly results: ImportOperation[];
104
- }
105
- /**
106
- * Describes the validation state of a newly created [ImportOperation](#importoperation).
107
- *
108
- */
109
- export declare type ImportOperationState = 'processing' | 'validationFailed';
110
- export interface ImportOperationStatus {
111
- /**
112
- * The ID of the [ImportOperation](#importoperation).
113
- *
114
- */
115
- readonly operationId?: string;
116
- /**
117
- * The validation state of the [ImportOperation](#importoperation).
118
- *
119
- */
120
- readonly state: ImportOperationState;
121
- /**
122
- * The validation errors for the [ImportOperation](#importoperation).
123
- * See [Errors](/error).
124
- *
125
- *
126
- */
127
- readonly errors?: ErrorObject[];
128
- }
1
+ /**
2
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
+ */
6
+ import { ProcessingState, UnresolvedReferences } from './common';
7
+ import { ErrorObject } from './errors';
8
+ /**
9
+ * Import Operation describes the import status of a specific resource.
10
+ *
11
+ */
12
+ export interface ImportOperation {
13
+ /**
14
+ * The version of the ImportOperation.
15
+ *
16
+ */
17
+ readonly version: number;
18
+ /**
19
+ * The key of the [importContainer](/import-container#importcontainer).
20
+ *
21
+ */
22
+ readonly importContainerKey: string;
23
+ /**
24
+ * The key of the resource.
25
+ *
26
+ */
27
+ readonly resourceKey: string;
28
+ /**
29
+ * The ID of the ImportOperation.
30
+ *
31
+ */
32
+ readonly id: string;
33
+ /**
34
+ * The import status of the resource. Set to `rejected` or `validationFailed` if the import of the resource was not successful.
35
+ *
36
+ *
37
+ */
38
+ readonly state: ProcessingState;
39
+ /**
40
+ * The version of the impmorted resource when the import was successful.
41
+ *
42
+ */
43
+ readonly resourceVersion?: number;
44
+ /**
45
+ * Contains an error if the import of the resource was not successful. See [Errors](/error).
46
+ *
47
+ *
48
+ */
49
+ readonly errors?: ErrorObject[];
50
+ /**
51
+ * In case of unresolved status this array will show the unresolved references
52
+ *
53
+ *
54
+ */
55
+ readonly unresolvedReferences?: UnresolvedReferences[];
56
+ /**
57
+ * The time when the ImportOperation was created.
58
+ *
59
+ */
60
+ readonly createdAt: string;
61
+ /**
62
+ * The last time When the ImportOperation was modified.
63
+ *
64
+ */
65
+ readonly lastModifiedAt: string;
66
+ /**
67
+ * The expiration time of the ImportOperation.
68
+ *
69
+ */
70
+ readonly expiresAt: string;
71
+ }
72
+ /**
73
+ * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) for Import Operations.
74
+ *
75
+ */
76
+ export interface ImportOperationPagedResponse {
77
+ /**
78
+ * The number of results requested in the query request.
79
+ *
80
+ */
81
+ readonly limit: number;
82
+ /**
83
+ * The number of elements skipped, not a page number.
84
+ * Supplied by the client or the server default.
85
+ *
86
+ *
87
+ */
88
+ readonly offset: number;
89
+ /**
90
+ * The actual number of results returned.
91
+ *
92
+ */
93
+ readonly count: number;
94
+ /**
95
+ * The total number of import operations matching the query.
96
+ *
97
+ */
98
+ readonly total: number;
99
+ /**
100
+ * The array of Import Operations matching the query.
101
+ *
102
+ */
103
+ readonly results: ImportOperation[];
104
+ }
105
+ /**
106
+ * Describes the validation state of a newly created [ImportOperation](#importoperation).
107
+ *
108
+ */
109
+ export declare type ImportOperationState = 'processing' | 'validationFailed';
110
+ export interface ImportOperationStatus {
111
+ /**
112
+ * The ID of the [ImportOperation](#importoperation).
113
+ *
114
+ */
115
+ readonly operationId?: string;
116
+ /**
117
+ * The validation state of the [ImportOperation](#importoperation).
118
+ *
119
+ */
120
+ readonly state: ImportOperationState;
121
+ /**
122
+ * The validation errors for the [ImportOperation](#importoperation).
123
+ * See [Errors](/error).
124
+ *
125
+ *
126
+ */
127
+ readonly errors?: ErrorObject[];
128
+ }