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