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