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