@commercetools/importapi-sdk 1.17.1 → 1.21.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 (124) hide show
  1. package/CHANGELOG.md +40 -1
  2. package/dist/commercetools-importapi-sdk.browser.cjs.js +2781 -0
  3. package/dist/commercetools-importapi-sdk.browser.esm.js +2775 -0
  4. package/dist/commercetools-importapi-sdk.cjs.d.ts +1 -0
  5. package/dist/commercetools-importapi-sdk.cjs.dev.js +2781 -0
  6. package/dist/commercetools-importapi-sdk.cjs.js +7 -0
  7. package/dist/commercetools-importapi-sdk.cjs.prod.js +2781 -0
  8. package/dist/commercetools-importapi-sdk.esm.js +2775 -0
  9. package/dist/{ctp → declarations/src/ctp}/ctp-client.d.ts +2 -2
  10. package/dist/{generated → declarations/src/generated}/client/api-root.d.ts +18 -25
  11. package/dist/{generated → declarations/src/generated}/client/by-project-key-request-builder.d.ts +52 -55
  12. package/dist/{generated → declarations/src/generated}/client/categories/by-project-key-categories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  13. package/dist/{generated → declarations/src/generated}/client/categories/by-project-key-categories-request-builder.d.ts +28 -33
  14. package/dist/{generated → declarations/src/generated}/client/customers/by-project-key-customers-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  15. package/dist/{generated → declarations/src/generated}/client/customers/by-project-key-customers-request-builder.d.ts +28 -33
  16. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  17. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-request-builder.d.ts +26 -0
  18. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  19. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-request-builder.d.ts +26 -0
  20. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +55 -0
  21. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +51 -0
  22. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  23. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +26 -0
  24. package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  25. package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-request-builder.d.ts +26 -0
  26. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  27. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-request-builder.d.ts +26 -0
  28. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  29. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-request-builder.d.ts +26 -0
  30. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.d.ts +36 -0
  31. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-request-builder.d.ts +26 -0
  32. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  33. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-request-builder.d.ts +26 -0
  34. 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 -0
  35. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.d.ts +26 -0
  36. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  37. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-request-builder.d.ts +26 -0
  38. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +35 -0
  39. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-request-builder.d.ts +26 -0
  40. package/dist/{generated → 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 -44
  41. package/dist/{generated → declarations/src/generated}/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +49 -56
  42. package/dist/{generated → 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 -44
  43. package/dist/{generated → declarations/src/generated}/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -56
  44. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.d.ts +45 -0
  45. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +35 -0
  46. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-request-builder.d.ts +26 -0
  47. package/dist/{generated → 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 +37 -44
  48. package/dist/{generated → declarations/src/generated}/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -56
  49. package/dist/{generated → 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 -44
  50. package/dist/{generated → 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 -56
  51. package/dist/{generated → 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 -44
  52. package/dist/{generated → declarations/src/generated}/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -56
  53. package/dist/{generated → 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 -44
  54. package/dist/{generated → declarations/src/generated}/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -56
  55. package/dist/{generated → 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 -44
  56. package/dist/{generated → 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 -56
  57. package/dist/{generated → 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 -44
  58. package/dist/{generated → 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 -56
  59. package/dist/{generated → 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 -44
  60. package/dist/{generated → 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 -55
  61. package/dist/{generated → 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 -44
  62. package/dist/{generated → 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 -55
  63. package/dist/{generated → 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 -44
  64. package/dist/{generated → declarations/src/generated}/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -56
  65. package/dist/{generated → declarations/src/generated}/client/import-sinks/by-project-key-import-sinks-by-import-sink-key-request-builder.d.ts +51 -58
  66. package/dist/{generated → declarations/src/generated}/client/import-sinks/by-project-key-import-sinks-request-builder.d.ts +51 -58
  67. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.d.ts +35 -0
  68. package/dist/{generated → declarations/src/generated}/client/import-summaries/by-project-key-import-summaries-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  69. package/dist/{generated → declarations/src/generated}/client/import-summaries/by-project-key-import-summaries-request-builder.d.ts +26 -33
  70. package/dist/{generated → declarations/src/generated}/client/inventories/by-project-key-inventories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  71. package/dist/{generated → declarations/src/generated}/client/inventories/by-project-key-inventories-request-builder.d.ts +28 -33
  72. package/dist/{generated → declarations/src/generated}/client/order-patches/by-project-key-order-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  73. package/dist/{generated → declarations/src/generated}/client/order-patches/by-project-key-order-patches-request-builder.d.ts +28 -33
  74. package/dist/{generated → declarations/src/generated}/client/orders/by-project-key-orders-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  75. package/dist/{generated → declarations/src/generated}/client/orders/by-project-key-orders-request-builder.d.ts +28 -33
  76. package/dist/{generated → declarations/src/generated}/client/prices/by-project-key-prices-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  77. package/dist/{generated → declarations/src/generated}/client/prices/by-project-key-prices-request-builder.d.ts +28 -33
  78. package/dist/{generated → declarations/src/generated}/client/product-drafts/by-project-key-product-drafts-import-sink-key-by-import-sink-key-request-builder.d.ts +38 -45
  79. package/dist/{generated → declarations/src/generated}/client/product-drafts/by-project-key-product-drafts-request-builder.d.ts +28 -33
  80. package/dist/{generated → declarations/src/generated}/client/product-types/by-project-key-product-types-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  81. package/dist/{generated → declarations/src/generated}/client/product-types/by-project-key-product-types-request-builder.d.ts +28 -33
  82. package/dist/{generated → 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 -44
  83. package/dist/{generated → declarations/src/generated}/client/product-variant-patches/by-project-key-product-variant-patches-request-builder.d.ts +28 -33
  84. package/dist/{generated → declarations/src/generated}/client/product-variants/by-project-key-product-variants-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  85. package/dist/{generated → declarations/src/generated}/client/product-variants/by-project-key-product-variants-request-builder.d.ts +28 -33
  86. package/dist/{generated → declarations/src/generated}/client/products/by-project-key-products-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
  87. package/dist/{generated → declarations/src/generated}/client/products/by-project-key-products-request-builder.d.ts +28 -33
  88. package/dist/{generated → declarations/src/generated}/index.d.ts +26 -32
  89. package/dist/{generated → declarations/src/generated}/models/categories.d.ts +79 -86
  90. package/dist/{generated → declarations/src/generated}/models/common.d.ts +570 -551
  91. package/dist/{generated → declarations/src/generated}/models/customers.d.ts +252 -259
  92. package/dist/{generated → declarations/src/generated}/models/customfields.d.ts +260 -267
  93. package/dist/{generated → declarations/src/generated}/models/errors.d.ts +356 -359
  94. package/dist/declarations/src/generated/models/importcontainers.d.ts +114 -0
  95. package/dist/{generated → declarations/src/generated}/models/importoperations.d.ts +128 -136
  96. package/dist/{generated → declarations/src/generated}/models/importrequests.d.ts +175 -182
  97. package/dist/{generated → declarations/src/generated}/models/importsinks.d.ts +113 -120
  98. package/dist/declarations/src/generated/models/importsummaries.d.ts +55 -0
  99. package/dist/{generated → declarations/src/generated}/models/inventories.d.ts +44 -51
  100. package/dist/{generated → declarations/src/generated}/models/order-patches.d.ts +227 -234
  101. package/dist/{generated → declarations/src/generated}/models/orders.d.ts +778 -785
  102. package/dist/{generated → declarations/src/generated}/models/prices.d.ts +130 -137
  103. package/dist/{generated → declarations/src/generated}/models/productdrafts.d.ts +226 -231
  104. package/dist/{generated → declarations/src/generated}/models/products.d.ts +181 -186
  105. package/dist/{generated → declarations/src/generated}/models/producttypes.d.ts +173 -180
  106. package/dist/{generated → declarations/src/generated}/models/productvariants.d.ts +529 -534
  107. package/dist/{generated → declarations/src/generated}/shared/utils/common-types.d.ts +26 -33
  108. package/dist/declarations/src/generated/shared/utils/middleware.d.ts +8 -0
  109. package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +13 -0
  110. package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +7 -0
  111. package/dist/{index.d.ts → declarations/src/index.d.ts} +2 -2
  112. package/package.json +16 -26
  113. package/dist/generated/models/importsummaries.d.ts +0 -57
  114. package/dist/generated/shared/utils/middleware.d.ts +0 -15
  115. package/dist/generated/shared/utils/requests-utils.d.ts +0 -20
  116. package/dist/generated/shared/utils/uri-utils.d.ts +0 -14
  117. package/dist/importapi-sdk.es.js +0 -2
  118. package/dist/importapi-sdk.es.js.map +0 -1
  119. package/dist/importapi-sdk.js +0 -2
  120. package/dist/importapi-sdk.js.map +0 -1
  121. package/dist/importapi-sdk.modern.js +0 -2
  122. package/dist/importapi-sdk.modern.js.map +0 -1
  123. package/dist/importapi-sdk.umd.js +0 -2
  124. package/dist/importapi-sdk.umd.js.map +0 -1
@@ -0,0 +1,2775 @@
1
+ import { stringify } from 'querystring';
2
+
3
+ function _defineProperty(obj, key, value) {
4
+ if (key in obj) {
5
+ Object.defineProperty(obj, key, {
6
+ value: value,
7
+ enumerable: true,
8
+ configurable: true,
9
+ writable: true
10
+ });
11
+ } else {
12
+ obj[key] = value;
13
+ }
14
+
15
+ return obj;
16
+ }
17
+
18
+ /**
19
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
20
+ * Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
21
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
22
+ */
23
+
24
+ function isDefined(value) {
25
+ return typeof value !== 'undefined' && value !== null;
26
+ }
27
+
28
+ function cleanObject(obj) {
29
+ return Object.keys(obj).reduce((result, key) => {
30
+ const value = obj[key];
31
+
32
+ if (Array.isArray(value)) {
33
+ const values = value.filter(isDefined);
34
+
35
+ if (!values.length) {
36
+ return result;
37
+ }
38
+
39
+ return { ...result,
40
+ [key]: values
41
+ };
42
+ }
43
+
44
+ if (isDefined(value)) {
45
+ return { ...result,
46
+ [key]: value
47
+ };
48
+ }
49
+
50
+ return result;
51
+ }, {});
52
+ }
53
+
54
+ function formatQueryString(variableMap) {
55
+ const map = cleanObject(variableMap);
56
+ const result = stringify(map);
57
+
58
+ if (result === '') {
59
+ return '';
60
+ }
61
+
62
+ return `?${result}`;
63
+ }
64
+
65
+ function buildRelativeUri(commonRequest) {
66
+ const pathMap = commonRequest.pathVariables;
67
+ var uri = commonRequest.uriTemplate;
68
+
69
+ for (const param in pathMap) {
70
+ uri = uri.replace(`{${param}}`, `${pathMap[param]}`);
71
+ }
72
+
73
+ const resQuery = formatQueryString(commonRequest.queryParams || {});
74
+ return `${uri}${resQuery}`;
75
+ }
76
+
77
+ class ApiRequest {
78
+ constructor(request, requestExecutor) {
79
+ this.requestExecutor = requestExecutor;
80
+
81
+ _defineProperty(this, "request", void 0);
82
+
83
+ this.request = { ...request,
84
+ uri: buildRelativeUri(request)
85
+ };
86
+ }
87
+
88
+ clientRequest() {
89
+ return this.request;
90
+ }
91
+
92
+ execute() {
93
+ return this.requestExecutor(this.request);
94
+ }
95
+
96
+ }
97
+
98
+ /**
99
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
100
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
101
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
102
+ */
103
+ class ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder {
104
+ constructor(args) {
105
+ this.args = args;
106
+ }
107
+ /**
108
+ * Creates a request for creating new Categories or updating existing ones.
109
+ */
110
+
111
+
112
+ post(methodArgs) {
113
+ return new ApiRequest({
114
+ baseUri: this.args.baseUri,
115
+ method: 'POST',
116
+ uriTemplate: '/{projectKey}/categories/import-containers/{importContainerKey}',
117
+ pathVariables: this.args.pathArgs,
118
+ headers: {
119
+ 'Content-Type': 'application/json',
120
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
121
+ },
122
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
123
+ }, this.args.executeRequest);
124
+ }
125
+
126
+ }
127
+
128
+ /**
129
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
130
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
131
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
132
+ */
133
+ class ByProjectKeyCategoriesImportContainersRequestBuilder {
134
+ constructor(args) {
135
+ this.args = args;
136
+ }
137
+
138
+ withImportContainerKeyValue(childPathArgs) {
139
+ return new ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder({
140
+ pathArgs: { ...this.args.pathArgs,
141
+ ...childPathArgs
142
+ },
143
+ executeRequest: this.args.executeRequest,
144
+ baseUri: this.args.baseUri
145
+ });
146
+ }
147
+
148
+ }
149
+
150
+ /**
151
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
152
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
153
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
154
+ */
155
+ class ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
156
+ constructor(args) {
157
+ this.args = args;
158
+ }
159
+ /**
160
+ * Retrieves the ImportOperation of a given ID.
161
+ *
162
+ */
163
+
164
+
165
+ get(methodArgs) {
166
+ return new ApiRequest({
167
+ baseUri: this.args.baseUri,
168
+ method: 'GET',
169
+ uriTemplate: '/{projectKey}/categories/importSinkKey={importSinkKey}/import-operations/{id}',
170
+ pathVariables: this.args.pathArgs,
171
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
172
+ }
173
+ }, this.args.executeRequest);
174
+ }
175
+
176
+ }
177
+
178
+ /**
179
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
180
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
181
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
182
+ */
183
+ class ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
184
+ constructor(args) {
185
+ this.args = args;
186
+ }
187
+
188
+ withIdValue(childPathArgs) {
189
+ return new ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
190
+ pathArgs: { ...this.args.pathArgs,
191
+ ...childPathArgs
192
+ },
193
+ executeRequest: this.args.executeRequest,
194
+ baseUri: this.args.baseUri
195
+ });
196
+ }
197
+ /**
198
+ * Retrieves all category import operations of an import sink key.
199
+ *
200
+ */
201
+
202
+
203
+ get(methodArgs) {
204
+ return new ApiRequest({
205
+ baseUri: this.args.baseUri,
206
+ method: 'GET',
207
+ uriTemplate: '/{projectKey}/categories/importSinkKey={importSinkKey}/import-operations',
208
+ pathVariables: this.args.pathArgs,
209
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
210
+ },
211
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
212
+ }, this.args.executeRequest);
213
+ }
214
+
215
+ }
216
+
217
+ /**
218
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
219
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
220
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
221
+ */
222
+ class ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestBuilder {
223
+ constructor(args) {
224
+ this.args = args;
225
+ }
226
+
227
+ importOperations() {
228
+ return new ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
229
+ pathArgs: { ...this.args.pathArgs
230
+ },
231
+ executeRequest: this.args.executeRequest,
232
+ baseUri: this.args.baseUri
233
+ });
234
+ }
235
+ /**
236
+ * Creates import request for creating new categories or updating existing ones.
237
+ */
238
+
239
+
240
+ post(methodArgs) {
241
+ return new ApiRequest({
242
+ baseUri: this.args.baseUri,
243
+ method: 'POST',
244
+ uriTemplate: '/{projectKey}/categories/importSinkKey={importSinkKey}',
245
+ pathVariables: this.args.pathArgs,
246
+ headers: {
247
+ 'Content-Type': 'application/json',
248
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
249
+ },
250
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
251
+ }, this.args.executeRequest);
252
+ }
253
+
254
+ }
255
+
256
+ /**
257
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
258
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
259
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
260
+ */
261
+ class ByProjectKeyCategoriesRequestBuilder {
262
+ constructor(args) {
263
+ this.args = args;
264
+ }
265
+
266
+ importContainers() {
267
+ return new ByProjectKeyCategoriesImportContainersRequestBuilder({
268
+ pathArgs: { ...this.args.pathArgs
269
+ },
270
+ executeRequest: this.args.executeRequest,
271
+ baseUri: this.args.baseUri
272
+ });
273
+ }
274
+
275
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
276
+ return new ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestBuilder({
277
+ pathArgs: { ...this.args.pathArgs,
278
+ ...childPathArgs
279
+ },
280
+ executeRequest: this.args.executeRequest,
281
+ baseUri: this.args.baseUri
282
+ });
283
+ }
284
+
285
+ }
286
+
287
+ /**
288
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
289
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
290
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
291
+ */
292
+ class ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder {
293
+ constructor(args) {
294
+ this.args = args;
295
+ }
296
+ /**
297
+ * Creates a request for creating new Customers or updating existing ones.
298
+ */
299
+
300
+
301
+ post(methodArgs) {
302
+ return new ApiRequest({
303
+ baseUri: this.args.baseUri,
304
+ method: 'POST',
305
+ uriTemplate: '/{projectKey}/customers/import-containers/{importContainerKey}',
306
+ pathVariables: this.args.pathArgs,
307
+ headers: {
308
+ 'Content-Type': 'application/json',
309
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
310
+ },
311
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
312
+ }, this.args.executeRequest);
313
+ }
314
+
315
+ }
316
+
317
+ /**
318
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
319
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
320
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
321
+ */
322
+ class ByProjectKeyCustomersImportContainersRequestBuilder {
323
+ constructor(args) {
324
+ this.args = args;
325
+ }
326
+
327
+ withImportContainerKeyValue(childPathArgs) {
328
+ return new ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder({
329
+ pathArgs: { ...this.args.pathArgs,
330
+ ...childPathArgs
331
+ },
332
+ executeRequest: this.args.executeRequest,
333
+ baseUri: this.args.baseUri
334
+ });
335
+ }
336
+
337
+ }
338
+
339
+ /**
340
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
341
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
342
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
343
+ */
344
+ class ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
345
+ constructor(args) {
346
+ this.args = args;
347
+ }
348
+ /**
349
+ * Retrieves the import operation with the given id.
350
+ *
351
+ */
352
+
353
+
354
+ get(methodArgs) {
355
+ return new ApiRequest({
356
+ baseUri: this.args.baseUri,
357
+ method: 'GET',
358
+ uriTemplate: '/{projectKey}/customers/importSinkKey={importSinkKey}/import-operations/{id}',
359
+ pathVariables: this.args.pathArgs,
360
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
361
+ }
362
+ }, this.args.executeRequest);
363
+ }
364
+
365
+ }
366
+
367
+ /**
368
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
369
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
370
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
371
+ */
372
+ class ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
373
+ constructor(args) {
374
+ this.args = args;
375
+ }
376
+
377
+ withIdValue(childPathArgs) {
378
+ return new ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
379
+ pathArgs: { ...this.args.pathArgs,
380
+ ...childPathArgs
381
+ },
382
+ executeRequest: this.args.executeRequest,
383
+ baseUri: this.args.baseUri
384
+ });
385
+ }
386
+ /**
387
+ * Retrieves all customer import operations of an import sink key.
388
+ */
389
+
390
+
391
+ get(methodArgs) {
392
+ return new ApiRequest({
393
+ baseUri: this.args.baseUri,
394
+ method: 'GET',
395
+ uriTemplate: '/{projectKey}/customers/importSinkKey={importSinkKey}/import-operations',
396
+ pathVariables: this.args.pathArgs,
397
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
398
+ },
399
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
400
+ }, this.args.executeRequest);
401
+ }
402
+
403
+ }
404
+
405
+ /**
406
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
407
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
408
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
409
+ */
410
+ class ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestBuilder {
411
+ constructor(args) {
412
+ this.args = args;
413
+ }
414
+
415
+ importOperations() {
416
+ return new ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
417
+ pathArgs: { ...this.args.pathArgs
418
+ },
419
+ executeRequest: this.args.executeRequest,
420
+ baseUri: this.args.baseUri
421
+ });
422
+ }
423
+ /**
424
+ * Creates import request for creating new customers or updating existing ones.
425
+ */
426
+
427
+
428
+ post(methodArgs) {
429
+ return new ApiRequest({
430
+ baseUri: this.args.baseUri,
431
+ method: 'POST',
432
+ uriTemplate: '/{projectKey}/customers/importSinkKey={importSinkKey}',
433
+ pathVariables: this.args.pathArgs,
434
+ headers: {
435
+ 'Content-Type': 'application/json',
436
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
437
+ },
438
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
439
+ }, this.args.executeRequest);
440
+ }
441
+
442
+ }
443
+
444
+ /**
445
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
446
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
447
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
448
+ */
449
+ class ByProjectKeyCustomersRequestBuilder {
450
+ constructor(args) {
451
+ this.args = args;
452
+ }
453
+
454
+ importContainers() {
455
+ return new ByProjectKeyCustomersImportContainersRequestBuilder({
456
+ pathArgs: { ...this.args.pathArgs
457
+ },
458
+ executeRequest: this.args.executeRequest,
459
+ baseUri: this.args.baseUri
460
+ });
461
+ }
462
+
463
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
464
+ return new ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestBuilder({
465
+ pathArgs: { ...this.args.pathArgs,
466
+ ...childPathArgs
467
+ },
468
+ executeRequest: this.args.executeRequest,
469
+ baseUri: this.args.baseUri
470
+ });
471
+ }
472
+
473
+ }
474
+
475
+ /**
476
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
477
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
478
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
479
+ */
480
+ class ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder {
481
+ constructor(args) {
482
+ this.args = args;
483
+ }
484
+ /**
485
+ * Retrieves all [ImportOperations](ctp:import:type:ImportOperation) of a given ImportContainer key.
486
+ *
487
+ */
488
+
489
+
490
+ get(methodArgs) {
491
+ return new ApiRequest({
492
+ baseUri: this.args.baseUri,
493
+ method: 'GET',
494
+ uriTemplate: '/{projectKey}/import-containers/{importContainerKey}/import-operations',
495
+ pathVariables: this.args.pathArgs,
496
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
497
+ },
498
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
499
+ }, this.args.executeRequest);
500
+ }
501
+
502
+ }
503
+
504
+ /**
505
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
506
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
507
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
508
+ */
509
+ class ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder {
510
+ constructor(args) {
511
+ this.args = args;
512
+ }
513
+ /**
514
+ * Retrieves an [ImportSummary](ctp:import:type:ImportSummary) for the given import container. An [ImportSummary](ctp:import:type:ImportSummary) is calculated on demand.
515
+ *
516
+ */
517
+
518
+
519
+ get(methodArgs) {
520
+ return new ApiRequest({
521
+ baseUri: this.args.baseUri,
522
+ method: 'GET',
523
+ uriTemplate: '/{projectKey}/import-containers/{importContainerKey}/import-summaries',
524
+ pathVariables: this.args.pathArgs,
525
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
526
+ }
527
+ }, this.args.executeRequest);
528
+ }
529
+
530
+ }
531
+
532
+ /**
533
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
534
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
535
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
536
+ */
537
+ class ByProjectKeyImportContainersByImportContainerKeyRequestBuilder {
538
+ constructor(args) {
539
+ this.args = args;
540
+ }
541
+
542
+ importSummaries() {
543
+ return new ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder({
544
+ pathArgs: { ...this.args.pathArgs
545
+ },
546
+ executeRequest: this.args.executeRequest,
547
+ baseUri: this.args.baseUri
548
+ });
549
+ }
550
+
551
+ importOperations() {
552
+ return new ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder({
553
+ pathArgs: { ...this.args.pathArgs
554
+ },
555
+ executeRequest: this.args.executeRequest,
556
+ baseUri: this.args.baseUri
557
+ });
558
+ }
559
+ /**
560
+ * Updates the import container given by the key.
561
+ */
562
+
563
+
564
+ put(methodArgs) {
565
+ return new ApiRequest({
566
+ baseUri: this.args.baseUri,
567
+ method: 'PUT',
568
+ uriTemplate: '/{projectKey}/import-containers/{importContainerKey}',
569
+ pathVariables: this.args.pathArgs,
570
+ headers: {
571
+ 'Content-Type': 'application/json',
572
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
573
+ },
574
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
575
+ }, this.args.executeRequest);
576
+ }
577
+ /**
578
+ * Retrieves the import container given by the key.
579
+ */
580
+
581
+
582
+ get(methodArgs) {
583
+ return new ApiRequest({
584
+ baseUri: this.args.baseUri,
585
+ method: 'GET',
586
+ uriTemplate: '/{projectKey}/import-containers/{importContainerKey}',
587
+ pathVariables: this.args.pathArgs,
588
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
589
+ }
590
+ }, this.args.executeRequest);
591
+ }
592
+ /**
593
+ * Deletes the import container given by the key.
594
+ */
595
+
596
+
597
+ delete(methodArgs) {
598
+ return new ApiRequest({
599
+ baseUri: this.args.baseUri,
600
+ method: 'DELETE',
601
+ uriTemplate: '/{projectKey}/import-containers/{importContainerKey}',
602
+ pathVariables: this.args.pathArgs,
603
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
604
+ }
605
+ }, this.args.executeRequest);
606
+ }
607
+
608
+ }
609
+
610
+ /**
611
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
612
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
613
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
614
+ */
615
+ class ByProjectKeyImportContainersRequestBuilder {
616
+ constructor(args) {
617
+ this.args = args;
618
+ }
619
+
620
+ withImportContainerKeyValue(childPathArgs) {
621
+ return new ByProjectKeyImportContainersByImportContainerKeyRequestBuilder({
622
+ pathArgs: { ...this.args.pathArgs,
623
+ ...childPathArgs
624
+ },
625
+ executeRequest: this.args.executeRequest,
626
+ baseUri: this.args.baseUri
627
+ });
628
+ }
629
+ /**
630
+ * Creates a new import container.
631
+ */
632
+
633
+
634
+ post(methodArgs) {
635
+ return new ApiRequest({
636
+ baseUri: this.args.baseUri,
637
+ method: 'POST',
638
+ uriTemplate: '/{projectKey}/import-containers',
639
+ pathVariables: this.args.pathArgs,
640
+ headers: {
641
+ 'Content-Type': 'application/json',
642
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
643
+ },
644
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
645
+ }, this.args.executeRequest);
646
+ }
647
+ /**
648
+ * Retrieves all import containers of a given project key.
649
+ */
650
+
651
+
652
+ get(methodArgs) {
653
+ return new ApiRequest({
654
+ baseUri: this.args.baseUri,
655
+ method: 'GET',
656
+ uriTemplate: '/{projectKey}/import-containers',
657
+ pathVariables: this.args.pathArgs,
658
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
659
+ },
660
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
661
+ }, this.args.executeRequest);
662
+ }
663
+
664
+ }
665
+
666
+ /**
667
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
668
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
669
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
670
+ */
671
+ class ByProjectKeyImportOperationsByIdRequestBuilder {
672
+ constructor(args) {
673
+ this.args = args;
674
+ }
675
+ /**
676
+ * Retrieves the [ImportOperation](ctp:import:type:ImportOperation) of a given ID.
677
+ *
678
+ */
679
+
680
+
681
+ get(methodArgs) {
682
+ return new ApiRequest({
683
+ baseUri: this.args.baseUri,
684
+ method: 'GET',
685
+ uriTemplate: '/{projectKey}/import-operations/{id}',
686
+ pathVariables: this.args.pathArgs,
687
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
688
+ }
689
+ }, this.args.executeRequest);
690
+ }
691
+
692
+ }
693
+
694
+ /**
695
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
696
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
697
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
698
+ */
699
+ class ByProjectKeyImportOperationsRequestBuilder {
700
+ constructor(args) {
701
+ this.args = args;
702
+ }
703
+
704
+ withIdValue(childPathArgs) {
705
+ return new ByProjectKeyImportOperationsByIdRequestBuilder({
706
+ pathArgs: { ...this.args.pathArgs,
707
+ ...childPathArgs
708
+ },
709
+ executeRequest: this.args.executeRequest,
710
+ baseUri: this.args.baseUri
711
+ });
712
+ }
713
+
714
+ }
715
+
716
+ /**
717
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
718
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
719
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
720
+ */
721
+ class ByProjectKeyImportSinksByImportSinkKeyRequestBuilder {
722
+ constructor(args) {
723
+ this.args = args;
724
+ }
725
+ /**
726
+ * Updates the import sink given by the key.
727
+ */
728
+
729
+
730
+ put(methodArgs) {
731
+ return new ApiRequest({
732
+ baseUri: this.args.baseUri,
733
+ method: 'PUT',
734
+ uriTemplate: '/{projectKey}/import-sinks/{importSinkKey}',
735
+ pathVariables: this.args.pathArgs,
736
+ headers: {
737
+ 'Content-Type': 'application/json',
738
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
739
+ },
740
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
741
+ }, this.args.executeRequest);
742
+ }
743
+ /**
744
+ * Retrieves the import sink given by the key.
745
+ */
746
+
747
+
748
+ get(methodArgs) {
749
+ return new ApiRequest({
750
+ baseUri: this.args.baseUri,
751
+ method: 'GET',
752
+ uriTemplate: '/{projectKey}/import-sinks/{importSinkKey}',
753
+ pathVariables: this.args.pathArgs,
754
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
755
+ }
756
+ }, this.args.executeRequest);
757
+ }
758
+ /**
759
+ * Deletes the import sink given by the key.
760
+ */
761
+
762
+
763
+ delete(methodArgs) {
764
+ return new ApiRequest({
765
+ baseUri: this.args.baseUri,
766
+ method: 'DELETE',
767
+ uriTemplate: '/{projectKey}/import-sinks/{importSinkKey}',
768
+ pathVariables: this.args.pathArgs,
769
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
770
+ }
771
+ }, this.args.executeRequest);
772
+ }
773
+
774
+ }
775
+
776
+ /**
777
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
778
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
779
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
780
+ */
781
+ class ByProjectKeyImportSinksRequestBuilder {
782
+ constructor(args) {
783
+ this.args = args;
784
+ }
785
+
786
+ withImportSinkKeyValue(childPathArgs) {
787
+ return new ByProjectKeyImportSinksByImportSinkKeyRequestBuilder({
788
+ pathArgs: { ...this.args.pathArgs,
789
+ ...childPathArgs
790
+ },
791
+ executeRequest: this.args.executeRequest,
792
+ baseUri: this.args.baseUri
793
+ });
794
+ }
795
+ /**
796
+ * Creates a new import sink.
797
+ */
798
+
799
+
800
+ post(methodArgs) {
801
+ return new ApiRequest({
802
+ baseUri: this.args.baseUri,
803
+ method: 'POST',
804
+ uriTemplate: '/{projectKey}/import-sinks',
805
+ pathVariables: this.args.pathArgs,
806
+ headers: {
807
+ 'Content-Type': 'application/json',
808
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
809
+ },
810
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
811
+ }, this.args.executeRequest);
812
+ }
813
+ /**
814
+ * Retrieves all import sinks of a project key.
815
+ */
816
+
817
+
818
+ get(methodArgs) {
819
+ return new ApiRequest({
820
+ baseUri: this.args.baseUri,
821
+ method: 'GET',
822
+ uriTemplate: '/{projectKey}/import-sinks',
823
+ pathVariables: this.args.pathArgs,
824
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
825
+ },
826
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
827
+ }, this.args.executeRequest);
828
+ }
829
+
830
+ }
831
+
832
+ /**
833
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
834
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
835
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
836
+ */
837
+ class ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestBuilder {
838
+ constructor(args) {
839
+ this.args = args;
840
+ }
841
+ /**
842
+ * Retrieves an import summary for the given import sink.
843
+ *
844
+ * The import summary is calculated on demand.
845
+ *
846
+ */
847
+
848
+
849
+ get(methodArgs) {
850
+ return new ApiRequest({
851
+ baseUri: this.args.baseUri,
852
+ method: 'GET',
853
+ uriTemplate: '/{projectKey}/import-summaries/importSinkKey={importSinkKey}',
854
+ pathVariables: this.args.pathArgs,
855
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
856
+ }
857
+ }, this.args.executeRequest);
858
+ }
859
+
860
+ }
861
+
862
+ /**
863
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
864
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
865
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
866
+ */
867
+ class ByProjectKeyImportSummariesRequestBuilder {
868
+ constructor(args) {
869
+ this.args = args;
870
+ }
871
+
872
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
873
+ return new ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestBuilder({
874
+ pathArgs: { ...this.args.pathArgs,
875
+ ...childPathArgs
876
+ },
877
+ executeRequest: this.args.executeRequest,
878
+ baseUri: this.args.baseUri
879
+ });
880
+ }
881
+
882
+ }
883
+
884
+ /**
885
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
886
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
887
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
888
+ */
889
+ class ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder {
890
+ constructor(args) {
891
+ this.args = args;
892
+ }
893
+ /**
894
+ * Creates a request for creating new Inventories or updating existing ones.
895
+ */
896
+
897
+
898
+ post(methodArgs) {
899
+ return new ApiRequest({
900
+ baseUri: this.args.baseUri,
901
+ method: 'POST',
902
+ uriTemplate: '/{projectKey}/inventories/import-containers/{importContainerKey}',
903
+ pathVariables: this.args.pathArgs,
904
+ headers: {
905
+ 'Content-Type': 'application/json',
906
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
907
+ },
908
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
909
+ }, this.args.executeRequest);
910
+ }
911
+
912
+ }
913
+
914
+ /**
915
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
916
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
917
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
918
+ */
919
+ class ByProjectKeyInventoriesImportContainersRequestBuilder {
920
+ constructor(args) {
921
+ this.args = args;
922
+ }
923
+
924
+ withImportContainerKeyValue(childPathArgs) {
925
+ return new ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder({
926
+ pathArgs: { ...this.args.pathArgs,
927
+ ...childPathArgs
928
+ },
929
+ executeRequest: this.args.executeRequest,
930
+ baseUri: this.args.baseUri
931
+ });
932
+ }
933
+
934
+ }
935
+
936
+ /**
937
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
938
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
939
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
940
+ */
941
+ class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
942
+ constructor(args) {
943
+ this.args = args;
944
+ }
945
+ /**
946
+ * Retrieves the import operation with the given id.
947
+ *
948
+ */
949
+
950
+
951
+ get(methodArgs) {
952
+ return new ApiRequest({
953
+ baseUri: this.args.baseUri,
954
+ method: 'GET',
955
+ uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}/import-operations/{id}',
956
+ pathVariables: this.args.pathArgs,
957
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
958
+ }
959
+ }, this.args.executeRequest);
960
+ }
961
+
962
+ }
963
+
964
+ /**
965
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
966
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
967
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
968
+ */
969
+ class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
970
+ constructor(args) {
971
+ this.args = args;
972
+ }
973
+
974
+ withIdValue(childPathArgs) {
975
+ return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
976
+ pathArgs: { ...this.args.pathArgs,
977
+ ...childPathArgs
978
+ },
979
+ executeRequest: this.args.executeRequest,
980
+ baseUri: this.args.baseUri
981
+ });
982
+ }
983
+ /**
984
+ * Retrieves all inventory import operations of an import sink key.
985
+ */
986
+
987
+
988
+ get(methodArgs) {
989
+ return new ApiRequest({
990
+ baseUri: this.args.baseUri,
991
+ method: 'GET',
992
+ uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}/import-operations',
993
+ pathVariables: this.args.pathArgs,
994
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
995
+ },
996
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
997
+ }, this.args.executeRequest);
998
+ }
999
+
1000
+ }
1001
+
1002
+ /**
1003
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1004
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1005
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1006
+ */
1007
+ class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder {
1008
+ constructor(args) {
1009
+ this.args = args;
1010
+ }
1011
+
1012
+ importOperations() {
1013
+ return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
1014
+ pathArgs: { ...this.args.pathArgs
1015
+ },
1016
+ executeRequest: this.args.executeRequest,
1017
+ baseUri: this.args.baseUri
1018
+ });
1019
+ }
1020
+ /**
1021
+ * Creates import request for creating new inventories or updating existing ones.
1022
+ */
1023
+
1024
+
1025
+ post(methodArgs) {
1026
+ return new ApiRequest({
1027
+ baseUri: this.args.baseUri,
1028
+ method: 'POST',
1029
+ uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}',
1030
+ pathVariables: this.args.pathArgs,
1031
+ headers: {
1032
+ 'Content-Type': 'application/json',
1033
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1034
+ },
1035
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1036
+ }, this.args.executeRequest);
1037
+ }
1038
+
1039
+ }
1040
+
1041
+ /**
1042
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1043
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1044
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1045
+ */
1046
+ class ByProjectKeyInventoriesRequestBuilder {
1047
+ constructor(args) {
1048
+ this.args = args;
1049
+ }
1050
+
1051
+ importContainers() {
1052
+ return new ByProjectKeyInventoriesImportContainersRequestBuilder({
1053
+ pathArgs: { ...this.args.pathArgs
1054
+ },
1055
+ executeRequest: this.args.executeRequest,
1056
+ baseUri: this.args.baseUri
1057
+ });
1058
+ }
1059
+
1060
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
1061
+ return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder({
1062
+ pathArgs: { ...this.args.pathArgs,
1063
+ ...childPathArgs
1064
+ },
1065
+ executeRequest: this.args.executeRequest,
1066
+ baseUri: this.args.baseUri
1067
+ });
1068
+ }
1069
+
1070
+ }
1071
+
1072
+ /**
1073
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1074
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1075
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1076
+ */
1077
+ class ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder {
1078
+ constructor(args) {
1079
+ this.args = args;
1080
+ }
1081
+ /**
1082
+ * Creates a new import request for order patches
1083
+ */
1084
+
1085
+
1086
+ post(methodArgs) {
1087
+ return new ApiRequest({
1088
+ baseUri: this.args.baseUri,
1089
+ method: 'POST',
1090
+ uriTemplate: '/{projectKey}/order-patches/import-containers/{importContainerKey}',
1091
+ pathVariables: this.args.pathArgs,
1092
+ headers: {
1093
+ 'Content-Type': 'application/json',
1094
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1095
+ },
1096
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1097
+ }, this.args.executeRequest);
1098
+ }
1099
+
1100
+ }
1101
+
1102
+ /**
1103
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1104
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1105
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1106
+ */
1107
+ class ByProjectKeyOrderPatchesImportContainersRequestBuilder {
1108
+ constructor(args) {
1109
+ this.args = args;
1110
+ }
1111
+
1112
+ withImportContainerKeyValue(childPathArgs) {
1113
+ return new ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder({
1114
+ pathArgs: { ...this.args.pathArgs,
1115
+ ...childPathArgs
1116
+ },
1117
+ executeRequest: this.args.executeRequest,
1118
+ baseUri: this.args.baseUri
1119
+ });
1120
+ }
1121
+
1122
+ }
1123
+
1124
+ /**
1125
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1126
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1127
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1128
+ */
1129
+ class ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
1130
+ constructor(args) {
1131
+ this.args = args;
1132
+ }
1133
+ /**
1134
+ * Retrieves the import operation with the given id.
1135
+ *
1136
+ */
1137
+
1138
+
1139
+ get(methodArgs) {
1140
+ return new ApiRequest({
1141
+ baseUri: this.args.baseUri,
1142
+ method: 'GET',
1143
+ uriTemplate: '/{projectKey}/order-patches/importSinkKey={importSinkKey}/import-operations/{id}',
1144
+ pathVariables: this.args.pathArgs,
1145
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1146
+ }
1147
+ }, this.args.executeRequest);
1148
+ }
1149
+
1150
+ }
1151
+
1152
+ /**
1153
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1154
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1155
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1156
+ */
1157
+ class ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
1158
+ constructor(args) {
1159
+ this.args = args;
1160
+ }
1161
+
1162
+ withIdValue(childPathArgs) {
1163
+ return new ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
1164
+ pathArgs: { ...this.args.pathArgs,
1165
+ ...childPathArgs
1166
+ },
1167
+ executeRequest: this.args.executeRequest,
1168
+ baseUri: this.args.baseUri
1169
+ });
1170
+ }
1171
+ /**
1172
+ * Retrieves all order-patches import operations of an import sink key.
1173
+ */
1174
+
1175
+
1176
+ get(methodArgs) {
1177
+ return new ApiRequest({
1178
+ baseUri: this.args.baseUri,
1179
+ method: 'GET',
1180
+ uriTemplate: '/{projectKey}/order-patches/importSinkKey={importSinkKey}/import-operations',
1181
+ pathVariables: this.args.pathArgs,
1182
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1183
+ },
1184
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
1185
+ }, this.args.executeRequest);
1186
+ }
1187
+
1188
+ }
1189
+
1190
+ /**
1191
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1192
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1193
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1194
+ */
1195
+ class ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestBuilder {
1196
+ constructor(args) {
1197
+ this.args = args;
1198
+ }
1199
+
1200
+ importOperations() {
1201
+ return new ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
1202
+ pathArgs: { ...this.args.pathArgs
1203
+ },
1204
+ executeRequest: this.args.executeRequest,
1205
+ baseUri: this.args.baseUri
1206
+ });
1207
+ }
1208
+ /**
1209
+ * Creates a new import request for order patches
1210
+ */
1211
+
1212
+
1213
+ post(methodArgs) {
1214
+ return new ApiRequest({
1215
+ baseUri: this.args.baseUri,
1216
+ method: 'POST',
1217
+ uriTemplate: '/{projectKey}/order-patches/importSinkKey={importSinkKey}',
1218
+ pathVariables: this.args.pathArgs,
1219
+ headers: {
1220
+ 'Content-Type': 'application/json',
1221
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1222
+ },
1223
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1224
+ }, this.args.executeRequest);
1225
+ }
1226
+
1227
+ }
1228
+
1229
+ /**
1230
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1231
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1232
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1233
+ */
1234
+ class ByProjectKeyOrderPatchesRequestBuilder {
1235
+ constructor(args) {
1236
+ this.args = args;
1237
+ }
1238
+
1239
+ importContainers() {
1240
+ return new ByProjectKeyOrderPatchesImportContainersRequestBuilder({
1241
+ pathArgs: { ...this.args.pathArgs
1242
+ },
1243
+ executeRequest: this.args.executeRequest,
1244
+ baseUri: this.args.baseUri
1245
+ });
1246
+ }
1247
+
1248
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
1249
+ return new ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestBuilder({
1250
+ pathArgs: { ...this.args.pathArgs,
1251
+ ...childPathArgs
1252
+ },
1253
+ executeRequest: this.args.executeRequest,
1254
+ baseUri: this.args.baseUri
1255
+ });
1256
+ }
1257
+
1258
+ }
1259
+
1260
+ /**
1261
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1262
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1263
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1264
+ */
1265
+ class ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder {
1266
+ constructor(args) {
1267
+ this.args = args;
1268
+ }
1269
+ /**
1270
+ * Creates a request for creating new Orders or updating existing ones.
1271
+ */
1272
+
1273
+
1274
+ post(methodArgs) {
1275
+ return new ApiRequest({
1276
+ baseUri: this.args.baseUri,
1277
+ method: 'POST',
1278
+ uriTemplate: '/{projectKey}/orders/import-containers/{importContainerKey}',
1279
+ pathVariables: this.args.pathArgs,
1280
+ headers: {
1281
+ 'Content-Type': 'application/json',
1282
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1283
+ },
1284
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1285
+ }, this.args.executeRequest);
1286
+ }
1287
+
1288
+ }
1289
+
1290
+ /**
1291
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1292
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1293
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1294
+ */
1295
+ class ByProjectKeyOrdersImportContainersRequestBuilder {
1296
+ constructor(args) {
1297
+ this.args = args;
1298
+ }
1299
+
1300
+ withImportContainerKeyValue(childPathArgs) {
1301
+ return new ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder({
1302
+ pathArgs: { ...this.args.pathArgs,
1303
+ ...childPathArgs
1304
+ },
1305
+ executeRequest: this.args.executeRequest,
1306
+ baseUri: this.args.baseUri
1307
+ });
1308
+ }
1309
+
1310
+ }
1311
+
1312
+ /**
1313
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1314
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1315
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1316
+ */
1317
+ class ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
1318
+ constructor(args) {
1319
+ this.args = args;
1320
+ }
1321
+ /**
1322
+ * Retrieves the import operation with the given id.
1323
+ *
1324
+ */
1325
+
1326
+
1327
+ get(methodArgs) {
1328
+ return new ApiRequest({
1329
+ baseUri: this.args.baseUri,
1330
+ method: 'GET',
1331
+ uriTemplate: '/{projectKey}/orders/importSinkKey={importSinkKey}/import-operations/{id}',
1332
+ pathVariables: this.args.pathArgs,
1333
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1334
+ }
1335
+ }, this.args.executeRequest);
1336
+ }
1337
+
1338
+ }
1339
+
1340
+ /**
1341
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1342
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1343
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1344
+ */
1345
+ class ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
1346
+ constructor(args) {
1347
+ this.args = args;
1348
+ }
1349
+
1350
+ withIdValue(childPathArgs) {
1351
+ return new ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
1352
+ pathArgs: { ...this.args.pathArgs,
1353
+ ...childPathArgs
1354
+ },
1355
+ executeRequest: this.args.executeRequest,
1356
+ baseUri: this.args.baseUri
1357
+ });
1358
+ }
1359
+ /**
1360
+ * Retrieves all order import operations of an import sink key.
1361
+ */
1362
+
1363
+
1364
+ get(methodArgs) {
1365
+ return new ApiRequest({
1366
+ baseUri: this.args.baseUri,
1367
+ method: 'GET',
1368
+ uriTemplate: '/{projectKey}/orders/importSinkKey={importSinkKey}/import-operations',
1369
+ pathVariables: this.args.pathArgs,
1370
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1371
+ },
1372
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
1373
+ }, this.args.executeRequest);
1374
+ }
1375
+
1376
+ }
1377
+
1378
+ /**
1379
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1380
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1381
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1382
+ */
1383
+ class ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestBuilder {
1384
+ constructor(args) {
1385
+ this.args = args;
1386
+ }
1387
+
1388
+ importOperations() {
1389
+ return new ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
1390
+ pathArgs: { ...this.args.pathArgs
1391
+ },
1392
+ executeRequest: this.args.executeRequest,
1393
+ baseUri: this.args.baseUri
1394
+ });
1395
+ }
1396
+ /**
1397
+ * Creates import request for creating new orders or updating existing ones.
1398
+ */
1399
+
1400
+
1401
+ post(methodArgs) {
1402
+ return new ApiRequest({
1403
+ baseUri: this.args.baseUri,
1404
+ method: 'POST',
1405
+ uriTemplate: '/{projectKey}/orders/importSinkKey={importSinkKey}',
1406
+ pathVariables: this.args.pathArgs,
1407
+ headers: {
1408
+ 'Content-Type': 'application/json',
1409
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1410
+ },
1411
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1412
+ }, this.args.executeRequest);
1413
+ }
1414
+
1415
+ }
1416
+
1417
+ /**
1418
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1419
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1420
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1421
+ */
1422
+ class ByProjectKeyOrdersRequestBuilder {
1423
+ constructor(args) {
1424
+ this.args = args;
1425
+ }
1426
+
1427
+ importContainers() {
1428
+ return new ByProjectKeyOrdersImportContainersRequestBuilder({
1429
+ pathArgs: { ...this.args.pathArgs
1430
+ },
1431
+ executeRequest: this.args.executeRequest,
1432
+ baseUri: this.args.baseUri
1433
+ });
1434
+ }
1435
+
1436
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
1437
+ return new ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestBuilder({
1438
+ pathArgs: { ...this.args.pathArgs,
1439
+ ...childPathArgs
1440
+ },
1441
+ executeRequest: this.args.executeRequest,
1442
+ baseUri: this.args.baseUri
1443
+ });
1444
+ }
1445
+
1446
+ }
1447
+
1448
+ /**
1449
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1450
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1451
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1452
+ */
1453
+ class ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder {
1454
+ constructor(args) {
1455
+ this.args = args;
1456
+ }
1457
+ /**
1458
+ * Creates a request for creating new Prices or updating existing ones.
1459
+ */
1460
+
1461
+
1462
+ post(methodArgs) {
1463
+ return new ApiRequest({
1464
+ baseUri: this.args.baseUri,
1465
+ method: 'POST',
1466
+ uriTemplate: '/{projectKey}/prices/import-containers/{importContainerKey}',
1467
+ pathVariables: this.args.pathArgs,
1468
+ headers: {
1469
+ 'Content-Type': 'application/json',
1470
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1471
+ },
1472
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1473
+ }, this.args.executeRequest);
1474
+ }
1475
+
1476
+ }
1477
+
1478
+ /**
1479
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1480
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1481
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1482
+ */
1483
+ class ByProjectKeyPricesImportContainersRequestBuilder {
1484
+ constructor(args) {
1485
+ this.args = args;
1486
+ }
1487
+
1488
+ withImportContainerKeyValue(childPathArgs) {
1489
+ return new ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder({
1490
+ pathArgs: { ...this.args.pathArgs,
1491
+ ...childPathArgs
1492
+ },
1493
+ executeRequest: this.args.executeRequest,
1494
+ baseUri: this.args.baseUri
1495
+ });
1496
+ }
1497
+
1498
+ }
1499
+
1500
+ /**
1501
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1502
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1503
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1504
+ */
1505
+ class ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
1506
+ constructor(args) {
1507
+ this.args = args;
1508
+ }
1509
+ /**
1510
+ * Retrieves the import operation with the given id.
1511
+ *
1512
+ */
1513
+
1514
+
1515
+ get(methodArgs) {
1516
+ return new ApiRequest({
1517
+ baseUri: this.args.baseUri,
1518
+ method: 'GET',
1519
+ uriTemplate: '/{projectKey}/prices/importSinkKey={importSinkKey}/import-operations/{id}',
1520
+ pathVariables: this.args.pathArgs,
1521
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1522
+ }
1523
+ }, this.args.executeRequest);
1524
+ }
1525
+
1526
+ }
1527
+
1528
+ /**
1529
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1530
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1531
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1532
+ */
1533
+ class ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
1534
+ constructor(args) {
1535
+ this.args = args;
1536
+ }
1537
+
1538
+ withIdValue(childPathArgs) {
1539
+ return new ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
1540
+ pathArgs: { ...this.args.pathArgs,
1541
+ ...childPathArgs
1542
+ },
1543
+ executeRequest: this.args.executeRequest,
1544
+ baseUri: this.args.baseUri
1545
+ });
1546
+ }
1547
+ /**
1548
+ * Retrieves all price import operations of an import sink key.
1549
+ */
1550
+
1551
+
1552
+ get(methodArgs) {
1553
+ return new ApiRequest({
1554
+ baseUri: this.args.baseUri,
1555
+ method: 'GET',
1556
+ uriTemplate: '/{projectKey}/prices/importSinkKey={importSinkKey}/import-operations',
1557
+ pathVariables: this.args.pathArgs,
1558
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1559
+ },
1560
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
1561
+ }, this.args.executeRequest);
1562
+ }
1563
+
1564
+ }
1565
+
1566
+ /**
1567
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1568
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1569
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1570
+ */
1571
+ class ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestBuilder {
1572
+ constructor(args) {
1573
+ this.args = args;
1574
+ }
1575
+
1576
+ importOperations() {
1577
+ return new ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
1578
+ pathArgs: { ...this.args.pathArgs
1579
+ },
1580
+ executeRequest: this.args.executeRequest,
1581
+ baseUri: this.args.baseUri
1582
+ });
1583
+ }
1584
+ /**
1585
+ * Creates import request for creating new prices or updating existing ones.
1586
+ */
1587
+
1588
+
1589
+ post(methodArgs) {
1590
+ return new ApiRequest({
1591
+ baseUri: this.args.baseUri,
1592
+ method: 'POST',
1593
+ uriTemplate: '/{projectKey}/prices/importSinkKey={importSinkKey}',
1594
+ pathVariables: this.args.pathArgs,
1595
+ headers: {
1596
+ 'Content-Type': 'application/json',
1597
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1598
+ },
1599
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1600
+ }, this.args.executeRequest);
1601
+ }
1602
+
1603
+ }
1604
+
1605
+ /**
1606
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1607
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1608
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1609
+ */
1610
+ class ByProjectKeyPricesRequestBuilder {
1611
+ constructor(args) {
1612
+ this.args = args;
1613
+ }
1614
+
1615
+ importContainers() {
1616
+ return new ByProjectKeyPricesImportContainersRequestBuilder({
1617
+ pathArgs: { ...this.args.pathArgs
1618
+ },
1619
+ executeRequest: this.args.executeRequest,
1620
+ baseUri: this.args.baseUri
1621
+ });
1622
+ }
1623
+
1624
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
1625
+ return new ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestBuilder({
1626
+ pathArgs: { ...this.args.pathArgs,
1627
+ ...childPathArgs
1628
+ },
1629
+ executeRequest: this.args.executeRequest,
1630
+ baseUri: this.args.baseUri
1631
+ });
1632
+ }
1633
+
1634
+ }
1635
+
1636
+ /**
1637
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1638
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1639
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1640
+ */
1641
+ class ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder {
1642
+ constructor(args) {
1643
+ this.args = args;
1644
+ }
1645
+ /**
1646
+ * Creates a request for creating new ProductDrafts or updating existing ones.
1647
+ *
1648
+ */
1649
+
1650
+
1651
+ post(methodArgs) {
1652
+ return new ApiRequest({
1653
+ baseUri: this.args.baseUri,
1654
+ method: 'POST',
1655
+ uriTemplate: '/{projectKey}/product-drafts/import-containers/{importContainerKey}',
1656
+ pathVariables: this.args.pathArgs,
1657
+ headers: {
1658
+ 'Content-Type': 'application/json',
1659
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1660
+ },
1661
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1662
+ }, this.args.executeRequest);
1663
+ }
1664
+
1665
+ }
1666
+
1667
+ /**
1668
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1669
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1670
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1671
+ */
1672
+ class ByProjectKeyProductDraftsImportContainersRequestBuilder {
1673
+ constructor(args) {
1674
+ this.args = args;
1675
+ }
1676
+
1677
+ withImportContainerKeyValue(childPathArgs) {
1678
+ return new ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder({
1679
+ pathArgs: { ...this.args.pathArgs,
1680
+ ...childPathArgs
1681
+ },
1682
+ executeRequest: this.args.executeRequest,
1683
+ baseUri: this.args.baseUri
1684
+ });
1685
+ }
1686
+
1687
+ }
1688
+
1689
+ /**
1690
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1691
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1692
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1693
+ */
1694
+ class ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
1695
+ constructor(args) {
1696
+ this.args = args;
1697
+ }
1698
+ /**
1699
+ * Retrieves the import operation with the given id.
1700
+ *
1701
+ */
1702
+
1703
+
1704
+ get(methodArgs) {
1705
+ return new ApiRequest({
1706
+ baseUri: this.args.baseUri,
1707
+ method: 'GET',
1708
+ uriTemplate: '/{projectKey}/product-drafts/importSinkKey={importSinkKey}/import-operations/{id}',
1709
+ pathVariables: this.args.pathArgs,
1710
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1711
+ }
1712
+ }, this.args.executeRequest);
1713
+ }
1714
+
1715
+ }
1716
+
1717
+ /**
1718
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1719
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1720
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1721
+ */
1722
+ class ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
1723
+ constructor(args) {
1724
+ this.args = args;
1725
+ }
1726
+
1727
+ withIdValue(childPathArgs) {
1728
+ return new ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
1729
+ pathArgs: { ...this.args.pathArgs,
1730
+ ...childPathArgs
1731
+ },
1732
+ executeRequest: this.args.executeRequest,
1733
+ baseUri: this.args.baseUri
1734
+ });
1735
+ }
1736
+ /**
1737
+ * Retrieves all import operations of an import sink key.
1738
+ */
1739
+
1740
+
1741
+ get(methodArgs) {
1742
+ return new ApiRequest({
1743
+ baseUri: this.args.baseUri,
1744
+ method: 'GET',
1745
+ uriTemplate: '/{projectKey}/product-drafts/importSinkKey={importSinkKey}/import-operations',
1746
+ pathVariables: this.args.pathArgs,
1747
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1748
+ },
1749
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
1750
+ }, this.args.executeRequest);
1751
+ }
1752
+
1753
+ }
1754
+
1755
+ /**
1756
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1757
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1758
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1759
+ */
1760
+ class ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestBuilder {
1761
+ constructor(args) {
1762
+ this.args = args;
1763
+ }
1764
+
1765
+ importOperations() {
1766
+ return new ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
1767
+ pathArgs: { ...this.args.pathArgs
1768
+ },
1769
+ executeRequest: this.args.executeRequest,
1770
+ baseUri: this.args.baseUri
1771
+ });
1772
+ }
1773
+ /**
1774
+ * Creates import request for creating new product drafts or updating existing ones.
1775
+ *
1776
+ */
1777
+
1778
+
1779
+ post(methodArgs) {
1780
+ return new ApiRequest({
1781
+ baseUri: this.args.baseUri,
1782
+ method: 'POST',
1783
+ uriTemplate: '/{projectKey}/product-drafts/importSinkKey={importSinkKey}',
1784
+ pathVariables: this.args.pathArgs,
1785
+ headers: {
1786
+ 'Content-Type': 'application/json',
1787
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1788
+ },
1789
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1790
+ }, this.args.executeRequest);
1791
+ }
1792
+
1793
+ }
1794
+
1795
+ /**
1796
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1797
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1798
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1799
+ */
1800
+ class ByProjectKeyProductDraftsRequestBuilder {
1801
+ constructor(args) {
1802
+ this.args = args;
1803
+ }
1804
+
1805
+ importContainers() {
1806
+ return new ByProjectKeyProductDraftsImportContainersRequestBuilder({
1807
+ pathArgs: { ...this.args.pathArgs
1808
+ },
1809
+ executeRequest: this.args.executeRequest,
1810
+ baseUri: this.args.baseUri
1811
+ });
1812
+ }
1813
+
1814
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
1815
+ return new ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestBuilder({
1816
+ pathArgs: { ...this.args.pathArgs,
1817
+ ...childPathArgs
1818
+ },
1819
+ executeRequest: this.args.executeRequest,
1820
+ baseUri: this.args.baseUri
1821
+ });
1822
+ }
1823
+
1824
+ }
1825
+
1826
+ /**
1827
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1828
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1829
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1830
+ */
1831
+ class ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder {
1832
+ constructor(args) {
1833
+ this.args = args;
1834
+ }
1835
+ /**
1836
+ * Creates a request for creating new ProductTypes or updating existing ones.
1837
+ */
1838
+
1839
+
1840
+ post(methodArgs) {
1841
+ return new ApiRequest({
1842
+ baseUri: this.args.baseUri,
1843
+ method: 'POST',
1844
+ uriTemplate: '/{projectKey}/product-types/import-containers/{importContainerKey}',
1845
+ pathVariables: this.args.pathArgs,
1846
+ headers: {
1847
+ 'Content-Type': 'application/json',
1848
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1849
+ },
1850
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1851
+ }, this.args.executeRequest);
1852
+ }
1853
+
1854
+ }
1855
+
1856
+ /**
1857
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1858
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1859
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1860
+ */
1861
+ class ByProjectKeyProductTypesImportContainersRequestBuilder {
1862
+ constructor(args) {
1863
+ this.args = args;
1864
+ }
1865
+
1866
+ withImportContainerKeyValue(childPathArgs) {
1867
+ return new ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder({
1868
+ pathArgs: { ...this.args.pathArgs,
1869
+ ...childPathArgs
1870
+ },
1871
+ executeRequest: this.args.executeRequest,
1872
+ baseUri: this.args.baseUri
1873
+ });
1874
+ }
1875
+
1876
+ }
1877
+
1878
+ /**
1879
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1880
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1881
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1882
+ */
1883
+ class ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
1884
+ constructor(args) {
1885
+ this.args = args;
1886
+ }
1887
+ /**
1888
+ * Retrieves the import operation with the given id.
1889
+ *
1890
+ */
1891
+
1892
+
1893
+ get(methodArgs) {
1894
+ return new ApiRequest({
1895
+ baseUri: this.args.baseUri,
1896
+ method: 'GET',
1897
+ uriTemplate: '/{projectKey}/product-types/importSinkKey={importSinkKey}/import-operations/{id}',
1898
+ pathVariables: this.args.pathArgs,
1899
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1900
+ }
1901
+ }, this.args.executeRequest);
1902
+ }
1903
+
1904
+ }
1905
+
1906
+ /**
1907
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1908
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1909
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1910
+ */
1911
+ class ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
1912
+ constructor(args) {
1913
+ this.args = args;
1914
+ }
1915
+
1916
+ withIdValue(childPathArgs) {
1917
+ return new ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
1918
+ pathArgs: { ...this.args.pathArgs,
1919
+ ...childPathArgs
1920
+ },
1921
+ executeRequest: this.args.executeRequest,
1922
+ baseUri: this.args.baseUri
1923
+ });
1924
+ }
1925
+ /**
1926
+ * Retrieves all import operations of an import sink key.
1927
+ */
1928
+
1929
+
1930
+ get(methodArgs) {
1931
+ return new ApiRequest({
1932
+ baseUri: this.args.baseUri,
1933
+ method: 'GET',
1934
+ uriTemplate: '/{projectKey}/product-types/importSinkKey={importSinkKey}/import-operations',
1935
+ pathVariables: this.args.pathArgs,
1936
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1937
+ },
1938
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
1939
+ }, this.args.executeRequest);
1940
+ }
1941
+
1942
+ }
1943
+
1944
+ /**
1945
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1946
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1947
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1948
+ */
1949
+ class ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestBuilder {
1950
+ constructor(args) {
1951
+ this.args = args;
1952
+ }
1953
+
1954
+ importOperations() {
1955
+ return new ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
1956
+ pathArgs: { ...this.args.pathArgs
1957
+ },
1958
+ executeRequest: this.args.executeRequest,
1959
+ baseUri: this.args.baseUri
1960
+ });
1961
+ }
1962
+ /**
1963
+ * Creates import request for creating new product types or updating existing ones.
1964
+ */
1965
+
1966
+
1967
+ post(methodArgs) {
1968
+ return new ApiRequest({
1969
+ baseUri: this.args.baseUri,
1970
+ method: 'POST',
1971
+ uriTemplate: '/{projectKey}/product-types/importSinkKey={importSinkKey}',
1972
+ pathVariables: this.args.pathArgs,
1973
+ headers: {
1974
+ 'Content-Type': 'application/json',
1975
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1976
+ },
1977
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1978
+ }, this.args.executeRequest);
1979
+ }
1980
+
1981
+ }
1982
+
1983
+ /**
1984
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1985
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1986
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1987
+ */
1988
+ class ByProjectKeyProductTypesRequestBuilder {
1989
+ constructor(args) {
1990
+ this.args = args;
1991
+ }
1992
+
1993
+ importContainers() {
1994
+ return new ByProjectKeyProductTypesImportContainersRequestBuilder({
1995
+ pathArgs: { ...this.args.pathArgs
1996
+ },
1997
+ executeRequest: this.args.executeRequest,
1998
+ baseUri: this.args.baseUri
1999
+ });
2000
+ }
2001
+
2002
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
2003
+ return new ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestBuilder({
2004
+ pathArgs: { ...this.args.pathArgs,
2005
+ ...childPathArgs
2006
+ },
2007
+ executeRequest: this.args.executeRequest,
2008
+ baseUri: this.args.baseUri
2009
+ });
2010
+ }
2011
+
2012
+ }
2013
+
2014
+ /**
2015
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2016
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2017
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2018
+ */
2019
+ class ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder {
2020
+ constructor(args) {
2021
+ this.args = args;
2022
+ }
2023
+ /**
2024
+ * Creates a new import request for product variant patches
2025
+ */
2026
+
2027
+
2028
+ post(methodArgs) {
2029
+ return new ApiRequest({
2030
+ baseUri: this.args.baseUri,
2031
+ method: 'POST',
2032
+ uriTemplate: '/{projectKey}/product-variant-patches/import-containers/{importContainerKey}',
2033
+ pathVariables: this.args.pathArgs,
2034
+ headers: {
2035
+ 'Content-Type': 'application/json',
2036
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2037
+ },
2038
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
2039
+ }, this.args.executeRequest);
2040
+ }
2041
+
2042
+ }
2043
+
2044
+ /**
2045
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2046
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2047
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2048
+ */
2049
+ class ByProjectKeyProductVariantPatchesImportContainersRequestBuilder {
2050
+ constructor(args) {
2051
+ this.args = args;
2052
+ }
2053
+
2054
+ withImportContainerKeyValue(childPathArgs) {
2055
+ return new ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder({
2056
+ pathArgs: { ...this.args.pathArgs,
2057
+ ...childPathArgs
2058
+ },
2059
+ executeRequest: this.args.executeRequest,
2060
+ baseUri: this.args.baseUri
2061
+ });
2062
+ }
2063
+
2064
+ }
2065
+
2066
+ /**
2067
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2068
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2069
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2070
+ */
2071
+ class ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
2072
+ constructor(args) {
2073
+ this.args = args;
2074
+ }
2075
+ /**
2076
+ * Retrieves the import operation with the given id.
2077
+ *
2078
+ */
2079
+
2080
+
2081
+ get(methodArgs) {
2082
+ return new ApiRequest({
2083
+ baseUri: this.args.baseUri,
2084
+ method: 'GET',
2085
+ uriTemplate: '/{projectKey}/product-variant-patches/importSinkKey={importSinkKey}/import-operations/{id}',
2086
+ pathVariables: this.args.pathArgs,
2087
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2088
+ }
2089
+ }, this.args.executeRequest);
2090
+ }
2091
+
2092
+ }
2093
+
2094
+ /**
2095
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2096
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2097
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2098
+ */
2099
+ class ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
2100
+ constructor(args) {
2101
+ this.args = args;
2102
+ }
2103
+
2104
+ withIdValue(childPathArgs) {
2105
+ return new ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
2106
+ pathArgs: { ...this.args.pathArgs,
2107
+ ...childPathArgs
2108
+ },
2109
+ executeRequest: this.args.executeRequest,
2110
+ baseUri: this.args.baseUri
2111
+ });
2112
+ }
2113
+ /**
2114
+ * Retrieves all product-variant-patches import operations of an import sink key.
2115
+ */
2116
+
2117
+
2118
+ get(methodArgs) {
2119
+ return new ApiRequest({
2120
+ baseUri: this.args.baseUri,
2121
+ method: 'GET',
2122
+ uriTemplate: '/{projectKey}/product-variant-patches/importSinkKey={importSinkKey}/import-operations',
2123
+ pathVariables: this.args.pathArgs,
2124
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2125
+ },
2126
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
2127
+ }, this.args.executeRequest);
2128
+ }
2129
+
2130
+ }
2131
+
2132
+ /**
2133
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2134
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2135
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2136
+ */
2137
+ class ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestBuilder {
2138
+ constructor(args) {
2139
+ this.args = args;
2140
+ }
2141
+
2142
+ importOperations() {
2143
+ return new ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
2144
+ pathArgs: { ...this.args.pathArgs
2145
+ },
2146
+ executeRequest: this.args.executeRequest,
2147
+ baseUri: this.args.baseUri
2148
+ });
2149
+ }
2150
+ /**
2151
+ * Creates a new import request for product variant patches
2152
+ */
2153
+
2154
+
2155
+ post(methodArgs) {
2156
+ return new ApiRequest({
2157
+ baseUri: this.args.baseUri,
2158
+ method: 'POST',
2159
+ uriTemplate: '/{projectKey}/product-variant-patches/importSinkKey={importSinkKey}',
2160
+ pathVariables: this.args.pathArgs,
2161
+ headers: {
2162
+ 'Content-Type': 'application/json',
2163
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2164
+ },
2165
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
2166
+ }, this.args.executeRequest);
2167
+ }
2168
+
2169
+ }
2170
+
2171
+ /**
2172
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2173
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2174
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2175
+ */
2176
+ class ByProjectKeyProductVariantPatchesRequestBuilder {
2177
+ constructor(args) {
2178
+ this.args = args;
2179
+ }
2180
+
2181
+ importContainers() {
2182
+ return new ByProjectKeyProductVariantPatchesImportContainersRequestBuilder({
2183
+ pathArgs: { ...this.args.pathArgs
2184
+ },
2185
+ executeRequest: this.args.executeRequest,
2186
+ baseUri: this.args.baseUri
2187
+ });
2188
+ }
2189
+
2190
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
2191
+ return new ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestBuilder({
2192
+ pathArgs: { ...this.args.pathArgs,
2193
+ ...childPathArgs
2194
+ },
2195
+ executeRequest: this.args.executeRequest,
2196
+ baseUri: this.args.baseUri
2197
+ });
2198
+ }
2199
+
2200
+ }
2201
+
2202
+ /**
2203
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2204
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2205
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2206
+ */
2207
+ class ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder {
2208
+ constructor(args) {
2209
+ this.args = args;
2210
+ }
2211
+ /**
2212
+ * Creates a request for creating new ProductVariants or updating existing ones.
2213
+ */
2214
+
2215
+
2216
+ post(methodArgs) {
2217
+ return new ApiRequest({
2218
+ baseUri: this.args.baseUri,
2219
+ method: 'POST',
2220
+ uriTemplate: '/{projectKey}/product-variants/import-containers/{importContainerKey}',
2221
+ pathVariables: this.args.pathArgs,
2222
+ headers: {
2223
+ 'Content-Type': 'application/json',
2224
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2225
+ },
2226
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
2227
+ }, this.args.executeRequest);
2228
+ }
2229
+
2230
+ }
2231
+
2232
+ /**
2233
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2234
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2235
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2236
+ */
2237
+ class ByProjectKeyProductVariantsImportContainersRequestBuilder {
2238
+ constructor(args) {
2239
+ this.args = args;
2240
+ }
2241
+
2242
+ withImportContainerKeyValue(childPathArgs) {
2243
+ return new ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder({
2244
+ pathArgs: { ...this.args.pathArgs,
2245
+ ...childPathArgs
2246
+ },
2247
+ executeRequest: this.args.executeRequest,
2248
+ baseUri: this.args.baseUri
2249
+ });
2250
+ }
2251
+
2252
+ }
2253
+
2254
+ /**
2255
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2256
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2257
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2258
+ */
2259
+ class ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
2260
+ constructor(args) {
2261
+ this.args = args;
2262
+ }
2263
+ /**
2264
+ * Retrieves the import operation with the given id.
2265
+ *
2266
+ */
2267
+
2268
+
2269
+ get(methodArgs) {
2270
+ return new ApiRequest({
2271
+ baseUri: this.args.baseUri,
2272
+ method: 'GET',
2273
+ uriTemplate: '/{projectKey}/product-variants/importSinkKey={importSinkKey}/import-operations/{id}',
2274
+ pathVariables: this.args.pathArgs,
2275
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2276
+ }
2277
+ }, this.args.executeRequest);
2278
+ }
2279
+
2280
+ }
2281
+
2282
+ /**
2283
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2284
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2285
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2286
+ */
2287
+ class ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
2288
+ constructor(args) {
2289
+ this.args = args;
2290
+ }
2291
+
2292
+ withIdValue(childPathArgs) {
2293
+ return new ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
2294
+ pathArgs: { ...this.args.pathArgs,
2295
+ ...childPathArgs
2296
+ },
2297
+ executeRequest: this.args.executeRequest,
2298
+ baseUri: this.args.baseUri
2299
+ });
2300
+ }
2301
+ /**
2302
+ * Retrieves all product-variant import operations of an import sink key.
2303
+ */
2304
+
2305
+
2306
+ get(methodArgs) {
2307
+ return new ApiRequest({
2308
+ baseUri: this.args.baseUri,
2309
+ method: 'GET',
2310
+ uriTemplate: '/{projectKey}/product-variants/importSinkKey={importSinkKey}/import-operations',
2311
+ pathVariables: this.args.pathArgs,
2312
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2313
+ },
2314
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
2315
+ }, this.args.executeRequest);
2316
+ }
2317
+
2318
+ }
2319
+
2320
+ /**
2321
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2322
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2323
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2324
+ */
2325
+ class ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestBuilder {
2326
+ constructor(args) {
2327
+ this.args = args;
2328
+ }
2329
+
2330
+ importOperations() {
2331
+ return new ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
2332
+ pathArgs: { ...this.args.pathArgs
2333
+ },
2334
+ executeRequest: this.args.executeRequest,
2335
+ baseUri: this.args.baseUri
2336
+ });
2337
+ }
2338
+ /**
2339
+ * Creates import request for creating new product variants or updating existing ones.
2340
+ */
2341
+
2342
+
2343
+ post(methodArgs) {
2344
+ return new ApiRequest({
2345
+ baseUri: this.args.baseUri,
2346
+ method: 'POST',
2347
+ uriTemplate: '/{projectKey}/product-variants/importSinkKey={importSinkKey}',
2348
+ pathVariables: this.args.pathArgs,
2349
+ headers: {
2350
+ 'Content-Type': 'application/json',
2351
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2352
+ },
2353
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
2354
+ }, this.args.executeRequest);
2355
+ }
2356
+
2357
+ }
2358
+
2359
+ /**
2360
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2361
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2362
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2363
+ */
2364
+ class ByProjectKeyProductVariantsRequestBuilder {
2365
+ constructor(args) {
2366
+ this.args = args;
2367
+ }
2368
+
2369
+ importContainers() {
2370
+ return new ByProjectKeyProductVariantsImportContainersRequestBuilder({
2371
+ pathArgs: { ...this.args.pathArgs
2372
+ },
2373
+ executeRequest: this.args.executeRequest,
2374
+ baseUri: this.args.baseUri
2375
+ });
2376
+ }
2377
+
2378
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
2379
+ return new ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestBuilder({
2380
+ pathArgs: { ...this.args.pathArgs,
2381
+ ...childPathArgs
2382
+ },
2383
+ executeRequest: this.args.executeRequest,
2384
+ baseUri: this.args.baseUri
2385
+ });
2386
+ }
2387
+
2388
+ }
2389
+
2390
+ /**
2391
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2392
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2393
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2394
+ */
2395
+ class ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder {
2396
+ constructor(args) {
2397
+ this.args = args;
2398
+ }
2399
+ /**
2400
+ * Creates a request for creating new Products or updating existing ones.
2401
+ */
2402
+
2403
+
2404
+ post(methodArgs) {
2405
+ return new ApiRequest({
2406
+ baseUri: this.args.baseUri,
2407
+ method: 'POST',
2408
+ uriTemplate: '/{projectKey}/products/import-containers/{importContainerKey}',
2409
+ pathVariables: this.args.pathArgs,
2410
+ headers: {
2411
+ 'Content-Type': 'application/json',
2412
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2413
+ },
2414
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
2415
+ }, this.args.executeRequest);
2416
+ }
2417
+
2418
+ }
2419
+
2420
+ /**
2421
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2422
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2423
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2424
+ */
2425
+ class ByProjectKeyProductsImportContainersRequestBuilder {
2426
+ constructor(args) {
2427
+ this.args = args;
2428
+ }
2429
+
2430
+ withImportContainerKeyValue(childPathArgs) {
2431
+ return new ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder({
2432
+ pathArgs: { ...this.args.pathArgs,
2433
+ ...childPathArgs
2434
+ },
2435
+ executeRequest: this.args.executeRequest,
2436
+ baseUri: this.args.baseUri
2437
+ });
2438
+ }
2439
+
2440
+ }
2441
+
2442
+ /**
2443
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2444
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2445
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2446
+ */
2447
+ class ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
2448
+ constructor(args) {
2449
+ this.args = args;
2450
+ }
2451
+ /**
2452
+ * Retrieves the import operation with the given id.
2453
+ *
2454
+ */
2455
+
2456
+
2457
+ get(methodArgs) {
2458
+ return new ApiRequest({
2459
+ baseUri: this.args.baseUri,
2460
+ method: 'GET',
2461
+ uriTemplate: '/{projectKey}/products/importSinkKey={importSinkKey}/import-operations/{id}',
2462
+ pathVariables: this.args.pathArgs,
2463
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2464
+ }
2465
+ }, this.args.executeRequest);
2466
+ }
2467
+
2468
+ }
2469
+
2470
+ /**
2471
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2472
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2473
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2474
+ */
2475
+ class ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
2476
+ constructor(args) {
2477
+ this.args = args;
2478
+ }
2479
+
2480
+ withIdValue(childPathArgs) {
2481
+ return new ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
2482
+ pathArgs: { ...this.args.pathArgs,
2483
+ ...childPathArgs
2484
+ },
2485
+ executeRequest: this.args.executeRequest,
2486
+ baseUri: this.args.baseUri
2487
+ });
2488
+ }
2489
+ /**
2490
+ * Retrieves all product import operations of an import sink key.
2491
+ */
2492
+
2493
+
2494
+ get(methodArgs) {
2495
+ return new ApiRequest({
2496
+ baseUri: this.args.baseUri,
2497
+ method: 'GET',
2498
+ uriTemplate: '/{projectKey}/products/importSinkKey={importSinkKey}/import-operations',
2499
+ pathVariables: this.args.pathArgs,
2500
+ headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2501
+ },
2502
+ queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
2503
+ }, this.args.executeRequest);
2504
+ }
2505
+
2506
+ }
2507
+
2508
+ /**
2509
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2510
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2511
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2512
+ */
2513
+ class ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestBuilder {
2514
+ constructor(args) {
2515
+ this.args = args;
2516
+ }
2517
+
2518
+ importOperations() {
2519
+ return new ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
2520
+ pathArgs: { ...this.args.pathArgs
2521
+ },
2522
+ executeRequest: this.args.executeRequest,
2523
+ baseUri: this.args.baseUri
2524
+ });
2525
+ }
2526
+ /**
2527
+ * Creates import request for creating new products or updating existing ones.
2528
+ */
2529
+
2530
+
2531
+ post(methodArgs) {
2532
+ return new ApiRequest({
2533
+ baseUri: this.args.baseUri,
2534
+ method: 'POST',
2535
+ uriTemplate: '/{projectKey}/products/importSinkKey={importSinkKey}',
2536
+ pathVariables: this.args.pathArgs,
2537
+ headers: {
2538
+ 'Content-Type': 'application/json',
2539
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
2540
+ },
2541
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
2542
+ }, this.args.executeRequest);
2543
+ }
2544
+
2545
+ }
2546
+
2547
+ /**
2548
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2549
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2550
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2551
+ */
2552
+ class ByProjectKeyProductsRequestBuilder {
2553
+ constructor(args) {
2554
+ this.args = args;
2555
+ }
2556
+
2557
+ importContainers() {
2558
+ return new ByProjectKeyProductsImportContainersRequestBuilder({
2559
+ pathArgs: { ...this.args.pathArgs
2560
+ },
2561
+ executeRequest: this.args.executeRequest,
2562
+ baseUri: this.args.baseUri
2563
+ });
2564
+ }
2565
+
2566
+ importSinkKeyWithImportSinkKeyValue(childPathArgs) {
2567
+ return new ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestBuilder({
2568
+ pathArgs: { ...this.args.pathArgs,
2569
+ ...childPathArgs
2570
+ },
2571
+ executeRequest: this.args.executeRequest,
2572
+ baseUri: this.args.baseUri
2573
+ });
2574
+ }
2575
+
2576
+ }
2577
+
2578
+ /**
2579
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2580
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2581
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2582
+ */
2583
+ class ByProjectKeyRequestBuilder {
2584
+ constructor(args) {
2585
+ this.args = args;
2586
+ }
2587
+
2588
+ importSinks() {
2589
+ return new ByProjectKeyImportSinksRequestBuilder({
2590
+ pathArgs: { ...this.args.pathArgs
2591
+ },
2592
+ executeRequest: this.args.executeRequest,
2593
+ baseUri: this.args.baseUri
2594
+ });
2595
+ }
2596
+
2597
+ importSummaries() {
2598
+ return new ByProjectKeyImportSummariesRequestBuilder({
2599
+ pathArgs: { ...this.args.pathArgs
2600
+ },
2601
+ executeRequest: this.args.executeRequest,
2602
+ baseUri: this.args.baseUri
2603
+ });
2604
+ }
2605
+
2606
+ importContainers() {
2607
+ return new ByProjectKeyImportContainersRequestBuilder({
2608
+ pathArgs: { ...this.args.pathArgs
2609
+ },
2610
+ executeRequest: this.args.executeRequest,
2611
+ baseUri: this.args.baseUri
2612
+ });
2613
+ }
2614
+
2615
+ importOperations() {
2616
+ return new ByProjectKeyImportOperationsRequestBuilder({
2617
+ pathArgs: { ...this.args.pathArgs
2618
+ },
2619
+ executeRequest: this.args.executeRequest,
2620
+ baseUri: this.args.baseUri
2621
+ });
2622
+ }
2623
+
2624
+ categories() {
2625
+ return new ByProjectKeyCategoriesRequestBuilder({
2626
+ pathArgs: { ...this.args.pathArgs
2627
+ },
2628
+ executeRequest: this.args.executeRequest,
2629
+ baseUri: this.args.baseUri
2630
+ });
2631
+ }
2632
+
2633
+ prices() {
2634
+ return new ByProjectKeyPricesRequestBuilder({
2635
+ pathArgs: { ...this.args.pathArgs
2636
+ },
2637
+ executeRequest: this.args.executeRequest,
2638
+ baseUri: this.args.baseUri
2639
+ });
2640
+ }
2641
+
2642
+ products() {
2643
+ return new ByProjectKeyProductsRequestBuilder({
2644
+ pathArgs: { ...this.args.pathArgs
2645
+ },
2646
+ executeRequest: this.args.executeRequest,
2647
+ baseUri: this.args.baseUri
2648
+ });
2649
+ }
2650
+
2651
+ productDrafts() {
2652
+ return new ByProjectKeyProductDraftsRequestBuilder({
2653
+ pathArgs: { ...this.args.pathArgs
2654
+ },
2655
+ executeRequest: this.args.executeRequest,
2656
+ baseUri: this.args.baseUri
2657
+ });
2658
+ }
2659
+
2660
+ productTypes() {
2661
+ return new ByProjectKeyProductTypesRequestBuilder({
2662
+ pathArgs: { ...this.args.pathArgs
2663
+ },
2664
+ executeRequest: this.args.executeRequest,
2665
+ baseUri: this.args.baseUri
2666
+ });
2667
+ }
2668
+
2669
+ productVariants() {
2670
+ return new ByProjectKeyProductVariantsRequestBuilder({
2671
+ pathArgs: { ...this.args.pathArgs
2672
+ },
2673
+ executeRequest: this.args.executeRequest,
2674
+ baseUri: this.args.baseUri
2675
+ });
2676
+ }
2677
+
2678
+ productVariantPatches() {
2679
+ return new ByProjectKeyProductVariantPatchesRequestBuilder({
2680
+ pathArgs: { ...this.args.pathArgs
2681
+ },
2682
+ executeRequest: this.args.executeRequest,
2683
+ baseUri: this.args.baseUri
2684
+ });
2685
+ }
2686
+
2687
+ orders() {
2688
+ return new ByProjectKeyOrdersRequestBuilder({
2689
+ pathArgs: { ...this.args.pathArgs
2690
+ },
2691
+ executeRequest: this.args.executeRequest,
2692
+ baseUri: this.args.baseUri
2693
+ });
2694
+ }
2695
+
2696
+ orderPatches() {
2697
+ return new ByProjectKeyOrderPatchesRequestBuilder({
2698
+ pathArgs: { ...this.args.pathArgs
2699
+ },
2700
+ executeRequest: this.args.executeRequest,
2701
+ baseUri: this.args.baseUri
2702
+ });
2703
+ }
2704
+
2705
+ customers() {
2706
+ return new ByProjectKeyCustomersRequestBuilder({
2707
+ pathArgs: { ...this.args.pathArgs
2708
+ },
2709
+ executeRequest: this.args.executeRequest,
2710
+ baseUri: this.args.baseUri
2711
+ });
2712
+ }
2713
+
2714
+ inventories() {
2715
+ return new ByProjectKeyInventoriesRequestBuilder({
2716
+ pathArgs: { ...this.args.pathArgs
2717
+ },
2718
+ executeRequest: this.args.executeRequest,
2719
+ baseUri: this.args.baseUri
2720
+ });
2721
+ }
2722
+
2723
+ }
2724
+
2725
+ class ApiRoot {
2726
+ constructor(args) {
2727
+ _defineProperty(this, "executeRequest", void 0);
2728
+
2729
+ _defineProperty(this, "baseUri", void 0);
2730
+
2731
+ this.executeRequest = args.executeRequest;
2732
+ this.baseUri = args.baseUri ?? 'https://import.europe-west1.gcp.commercetools.com';
2733
+ }
2734
+
2735
+ withProjectKeyValue(childPathArgs) {
2736
+ return new ByProjectKeyRequestBuilder({
2737
+ pathArgs: { ...childPathArgs
2738
+ },
2739
+ executeRequest: this.executeRequest,
2740
+ baseUri: this.baseUri
2741
+ });
2742
+ }
2743
+
2744
+ }
2745
+
2746
+ /**
2747
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2748
+ * Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
2749
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2750
+ */
2751
+ const createExecutorFromMiddlewares = (executor, midds) => {
2752
+ if (!midds || midds.length == 0) {
2753
+ return executor;
2754
+ }
2755
+
2756
+ const reduced = midds.reduce(reduceMiddleware);
2757
+ return middlewareToExecutor(reduced, executor);
2758
+ };
2759
+
2760
+ function reduceMiddleware(middleware1, middleware2) {
2761
+ return (request, executor) => middleware1(request, middlewareToExecutor(middleware2, executor));
2762
+ }
2763
+
2764
+ function middlewareToExecutor(middleware, executor) {
2765
+ return request => middleware(request, executor);
2766
+ }
2767
+
2768
+ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
2769
+ return new ApiRoot({
2770
+ executeRequest: ctpClient.execute,
2771
+ baseUri: baseUri
2772
+ });
2773
+ }
2774
+
2775
+ export { ApiRoot, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };