@commercetools/importapi-sdk 1.18.0 → 2.0.0

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