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