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