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