@digital8/lighting-illusions-ts-sdk 0.0.979 → 0.0.981
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/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/AssetApi.d.ts +16 -0
- package/dist/apis/AssetApi.js +110 -58
- package/dist/apis/AttributeApi.d.ts +60 -0
- package/dist/apis/AttributeApi.js +424 -229
- package/dist/apis/DefinitionApi.d.ts +24 -0
- package/dist/apis/DefinitionApi.js +164 -86
- package/dist/apis/DocumentApi.d.ts +36 -0
- package/dist/apis/DocumentApi.js +250 -133
- package/dist/apis/ExternalApiLogApi.d.ts +4 -0
- package/dist/apis/ExternalApiLogApi.js +26 -13
- package/dist/apis/GoogleCategoryApi.d.ts +4 -0
- package/dist/apis/GoogleCategoryApi.js +26 -13
- package/dist/apis/OverlayTemplateApi.d.ts +48 -0
- package/dist/apis/OverlayTemplateApi.js +340 -184
- package/dist/apis/ProductApi.d.ts +84 -0
- package/dist/apis/ProductApi.js +600 -327
- package/dist/apis/ProductCategoryApi.d.ts +52 -0
- package/dist/apis/ProductCategoryApi.js +364 -195
- package/dist/apis/ProductTypeApi.d.ts +36 -0
- package/dist/apis/ProductTypeApi.js +256 -139
- package/dist/apis/SiteApi.d.ts +32 -0
- package/dist/apis/SiteApi.js +220 -116
- package/dist/apis/SupplierApi.d.ts +32 -0
- package/dist/apis/SupplierApi.js +234 -130
- package/dist/apis/TagApi.d.ts +32 -0
- package/dist/apis/TagApi.js +226 -122
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +1 -1
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +1 -1
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +1 -1
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
- package/dist/models/GetAllAttributeRequest.d.ts +3 -3
- package/dist/models/GetAllDefinitionRequest.d.ts +2 -2
- package/dist/models/GetAllDocumentRequest.d.ts +3 -3
- package/dist/models/GetAllGoogleCategoryRequest.d.ts +2 -2
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +3 -3
- package/dist/models/GetAllProductCategoryRequest.d.ts +3 -3
- package/dist/models/GetAllProductChildRequest.d.ts +3 -3
- package/dist/models/GetAllProductRequest.d.ts +3 -3
- package/dist/models/GetAllProductTypeRequest.d.ts +3 -3
- package/dist/models/GetAllSupplierRequest.d.ts +3 -3
- package/dist/models/IndexAttributeRequest.d.ts +3 -3
- package/dist/models/IndexAttributeValueRequest.d.ts +3 -3
- package/dist/models/IndexDefinitionRequest.d.ts +2 -2
- package/dist/models/IndexDocumentRequest.d.ts +3 -3
- package/dist/models/IndexExternalApiLogRequest.d.ts +2 -2
- package/dist/models/IndexOverlayTemplateRequest.d.ts +3 -3
- package/dist/models/IndexProductCategoryRequest.d.ts +3 -3
- package/dist/models/IndexProductChildRequest.d.ts +3 -3
- package/dist/models/IndexProductRequest.d.ts +3 -3
- package/dist/models/IndexProductTypeRequest.d.ts +3 -3
- package/dist/models/IndexSiteNotificationRequest.d.ts +2 -2
- package/dist/models/IndexSiteRequest.d.ts +2 -2
- package/dist/models/IndexSupplierRequest.d.ts +3 -3
- package/dist/models/IndexTagRequest.d.ts +3 -3
- package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +1 -1
- package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
- package/dist/models/StoreAttributeRequest.d.ts +1 -1
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
- package/dist/models/StoreTagRequest.d.ts +1 -1
- package/dist/models/UpdateAttributeRequest.d.ts +1 -1
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/UpdateProductCategoryRequest.d.ts +1 -1
- package/dist/models/UpdateSiteRequest.d.ts +1 -1
- package/dist/models/UpdateTagRequest.d.ts +1 -1
- package/package.json +1 -1
- package/src/apis/AssetApi.ts +48 -16
- package/src/apis/AttributeApi.ts +180 -60
- package/src/apis/DefinitionApi.ts +72 -24
- package/src/apis/DocumentApi.ts +108 -36
- package/src/apis/ExternalApiLogApi.ts +12 -4
- package/src/apis/GoogleCategoryApi.ts +12 -4
- package/src/apis/OverlayTemplateApi.ts +144 -48
- package/src/apis/ProductApi.ts +252 -84
- package/src/apis/ProductCategoryApi.ts +156 -52
- package/src/apis/ProductTypeApi.ts +108 -36
- package/src/apis/SiteApi.ts +96 -32
- package/src/apis/SupplierApi.ts +96 -32
- package/src/apis/TagApi.ts +96 -32
- package/src/models/AttachAttributeProductTypeRequest.ts +1 -1
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
- package/src/models/AttachProductTypeAttributeRequest.ts +1 -1
- package/src/models/DetachAssetableOverlayTemplateRequest.ts +1 -1
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
- package/src/models/GetAllAttributeRequest.ts +3 -3
- package/src/models/GetAllDefinitionRequest.ts +2 -2
- package/src/models/GetAllDocumentRequest.ts +3 -3
- package/src/models/GetAllGoogleCategoryRequest.ts +2 -2
- package/src/models/GetAllOverlayTemplateRequest.ts +3 -3
- package/src/models/GetAllProductCategoryRequest.ts +3 -3
- package/src/models/GetAllProductChildRequest.ts +3 -3
- package/src/models/GetAllProductRequest.ts +3 -3
- package/src/models/GetAllProductTypeRequest.ts +3 -3
- package/src/models/GetAllSupplierRequest.ts +3 -3
- package/src/models/IndexAttributeRequest.ts +3 -3
- package/src/models/IndexAttributeValueRequest.ts +3 -3
- package/src/models/IndexDefinitionRequest.ts +2 -2
- package/src/models/IndexDocumentRequest.ts +3 -3
- package/src/models/IndexExternalApiLogRequest.ts +2 -2
- package/src/models/IndexOverlayTemplateRequest.ts +3 -3
- package/src/models/IndexProductCategoryRequest.ts +3 -3
- package/src/models/IndexProductChildRequest.ts +3 -3
- package/src/models/IndexProductRequest.ts +3 -3
- package/src/models/IndexProductTypeRequest.ts +3 -3
- package/src/models/IndexSiteNotificationRequest.ts +2 -2
- package/src/models/IndexSiteRequest.ts +2 -2
- package/src/models/IndexSupplierRequest.ts +3 -3
- package/src/models/IndexTagRequest.ts +3 -3
- package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +1 -1
- package/src/models/StoreAssetForAssetableRequest.ts +1 -1
- package/src/models/StoreAttributeRequest.ts +1 -1
- package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
- package/src/models/StoreTagRequest.ts +1 -1
- package/src/models/UpdateAttributeRequest.ts +1 -1
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/UpdateProductCategoryRequest.ts +1 -1
- package/src/models/UpdateSiteRequest.ts +1 -1
- package/src/models/UpdateTagRequest.ts +1 -1
package/dist/apis/SupplierApi.js
CHANGED
|
@@ -75,29 +75,42 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function SupplierApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for destroySupplier without sending the request
|
|
80
|
+
*/
|
|
81
|
+
SupplierApi.prototype.destroySupplierRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
if (requestParameters['supplier'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('supplier', 'Required parameter "supplier" was null or undefined when calling destroySupplier().');
|
|
87
|
+
}
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
urlPath = "/admin-api/supplier/{supplier}/delete";
|
|
91
|
+
urlPath = urlPath.replace("{".concat("supplier", "}"), encodeURIComponent(String(requestParameters['supplier'])));
|
|
92
|
+
return [2 /*return*/, {
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'DELETE',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
}];
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
};
|
|
78
101
|
/**
|
|
79
102
|
* Auto-generated: destroySupplier
|
|
80
103
|
*/
|
|
81
104
|
SupplierApi.prototype.destroySupplierRaw = function (requestParameters, initOverrides) {
|
|
82
105
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var
|
|
106
|
+
var requestOptions, response;
|
|
84
107
|
return __generator(this, function (_a) {
|
|
85
108
|
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters['supplier'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('supplier', 'Required parameter "supplier" was null or undefined when calling destroySupplier().');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
urlPath = "/admin-api/supplier/{supplier}/delete";
|
|
93
|
-
urlPath = urlPath.replace("{".concat("supplier", "}"), encodeURIComponent(String(requestParameters['supplier'])));
|
|
94
|
-
return [4 /*yield*/, this.request({
|
|
95
|
-
path: urlPath,
|
|
96
|
-
method: 'DELETE',
|
|
97
|
-
headers: headerParameters,
|
|
98
|
-
query: queryParameters,
|
|
99
|
-
}, initOverrides)];
|
|
109
|
+
case 0: return [4 /*yield*/, this.destroySupplierRequestOpts(requestParameters)];
|
|
100
110
|
case 1:
|
|
111
|
+
requestOptions = _a.sent();
|
|
112
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
113
|
+
case 2:
|
|
101
114
|
response = _a.sent();
|
|
102
115
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
103
116
|
}
|
|
@@ -121,27 +134,40 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
121
134
|
});
|
|
122
135
|
});
|
|
123
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for exportSupplier without sending the request
|
|
139
|
+
*/
|
|
140
|
+
SupplierApi.prototype.exportSupplierRequestOpts = function (requestParameters) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
142
|
+
var queryParameters, headerParameters, urlPath;
|
|
143
|
+
return __generator(this, function (_a) {
|
|
144
|
+
queryParameters = {};
|
|
145
|
+
headerParameters = {};
|
|
146
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
147
|
+
urlPath = "/admin-api/supplier/export";
|
|
148
|
+
return [2 /*return*/, {
|
|
149
|
+
path: urlPath,
|
|
150
|
+
method: 'POST',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
body: (0, index_1.IndexSupplierRequestToJSON)(requestParameters['indexSupplierRequest']),
|
|
154
|
+
}];
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
};
|
|
124
158
|
/**
|
|
125
159
|
* Auto-generated: exportSupplier
|
|
126
160
|
*/
|
|
127
161
|
SupplierApi.prototype.exportSupplierRaw = function (requestParameters, initOverrides) {
|
|
128
162
|
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
-
var
|
|
163
|
+
var requestOptions, response;
|
|
130
164
|
return __generator(this, function (_a) {
|
|
131
165
|
switch (_a.label) {
|
|
132
|
-
case 0:
|
|
133
|
-
queryParameters = {};
|
|
134
|
-
headerParameters = {};
|
|
135
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
136
|
-
urlPath = "/admin-api/supplier/export";
|
|
137
|
-
return [4 /*yield*/, this.request({
|
|
138
|
-
path: urlPath,
|
|
139
|
-
method: 'POST',
|
|
140
|
-
headers: headerParameters,
|
|
141
|
-
query: queryParameters,
|
|
142
|
-
body: (0, index_1.IndexSupplierRequestToJSON)(requestParameters['indexSupplierRequest']),
|
|
143
|
-
}, initOverrides)];
|
|
166
|
+
case 0: return [4 /*yield*/, this.exportSupplierRequestOpts(requestParameters)];
|
|
144
167
|
case 1:
|
|
168
|
+
requestOptions = _a.sent();
|
|
169
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
170
|
+
case 2:
|
|
145
171
|
response = _a.sent();
|
|
146
172
|
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
147
173
|
}
|
|
@@ -166,27 +192,40 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
166
192
|
});
|
|
167
193
|
});
|
|
168
194
|
};
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for getAllSupplier without sending the request
|
|
197
|
+
*/
|
|
198
|
+
SupplierApi.prototype.getAllSupplierRequestOpts = function (requestParameters) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
+
var queryParameters, headerParameters, urlPath;
|
|
201
|
+
return __generator(this, function (_a) {
|
|
202
|
+
queryParameters = {};
|
|
203
|
+
headerParameters = {};
|
|
204
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
205
|
+
urlPath = "/admin-api/supplier/all";
|
|
206
|
+
return [2 /*return*/, {
|
|
207
|
+
path: urlPath,
|
|
208
|
+
method: 'POST',
|
|
209
|
+
headers: headerParameters,
|
|
210
|
+
query: queryParameters,
|
|
211
|
+
body: (0, index_1.GetAllSupplierRequestToJSON)(requestParameters['getAllSupplierRequest']),
|
|
212
|
+
}];
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
};
|
|
169
216
|
/**
|
|
170
217
|
* Auto-generated: getAllSupplier
|
|
171
218
|
*/
|
|
172
219
|
SupplierApi.prototype.getAllSupplierRaw = function (requestParameters, initOverrides) {
|
|
173
220
|
return __awaiter(this, void 0, void 0, function () {
|
|
174
|
-
var
|
|
221
|
+
var requestOptions, response;
|
|
175
222
|
return __generator(this, function (_a) {
|
|
176
223
|
switch (_a.label) {
|
|
177
|
-
case 0:
|
|
178
|
-
queryParameters = {};
|
|
179
|
-
headerParameters = {};
|
|
180
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
181
|
-
urlPath = "/admin-api/supplier/all";
|
|
182
|
-
return [4 /*yield*/, this.request({
|
|
183
|
-
path: urlPath,
|
|
184
|
-
method: 'POST',
|
|
185
|
-
headers: headerParameters,
|
|
186
|
-
query: queryParameters,
|
|
187
|
-
body: (0, index_1.GetAllSupplierRequestToJSON)(requestParameters['getAllSupplierRequest']),
|
|
188
|
-
}, initOverrides)];
|
|
224
|
+
case 0: return [4 /*yield*/, this.getAllSupplierRequestOpts(requestParameters)];
|
|
189
225
|
case 1:
|
|
226
|
+
requestOptions = _a.sent();
|
|
227
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
228
|
+
case 2:
|
|
190
229
|
response = _a.sent();
|
|
191
230
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SupplierLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
192
231
|
}
|
|
@@ -211,45 +250,58 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
211
250
|
});
|
|
212
251
|
});
|
|
213
252
|
};
|
|
253
|
+
/**
|
|
254
|
+
* Creates request options for importSupplier without sending the request
|
|
255
|
+
*/
|
|
256
|
+
SupplierApi.prototype.importSupplierRequestOpts = function (requestParameters) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
258
|
+
var queryParameters, headerParameters, consumes, canConsumeForm, formParams, useForm, urlPath;
|
|
259
|
+
return __generator(this, function (_a) {
|
|
260
|
+
if (requestParameters['file'] == null) {
|
|
261
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling importSupplier().');
|
|
262
|
+
}
|
|
263
|
+
queryParameters = {};
|
|
264
|
+
headerParameters = {};
|
|
265
|
+
consumes = [
|
|
266
|
+
{ contentType: 'application/x-www-form-urlencoded' },
|
|
267
|
+
];
|
|
268
|
+
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
269
|
+
useForm = false;
|
|
270
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
271
|
+
useForm = canConsumeForm;
|
|
272
|
+
if (useForm) {
|
|
273
|
+
formParams = new FormData();
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
formParams = new URLSearchParams();
|
|
277
|
+
}
|
|
278
|
+
if (requestParameters['file'] != null) {
|
|
279
|
+
formParams.append('file', requestParameters['file']);
|
|
280
|
+
}
|
|
281
|
+
urlPath = "/admin-api/supplier/import";
|
|
282
|
+
return [2 /*return*/, {
|
|
283
|
+
path: urlPath,
|
|
284
|
+
method: 'POST',
|
|
285
|
+
headers: headerParameters,
|
|
286
|
+
query: queryParameters,
|
|
287
|
+
body: formParams,
|
|
288
|
+
}];
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
};
|
|
214
292
|
/**
|
|
215
293
|
* Auto-generated: importSupplier
|
|
216
294
|
*/
|
|
217
295
|
SupplierApi.prototype.importSupplierRaw = function (requestParameters, initOverrides) {
|
|
218
296
|
return __awaiter(this, void 0, void 0, function () {
|
|
219
|
-
var
|
|
297
|
+
var requestOptions, response;
|
|
220
298
|
return __generator(this, function (_a) {
|
|
221
299
|
switch (_a.label) {
|
|
222
|
-
case 0:
|
|
223
|
-
if (requestParameters['file'] == null) {
|
|
224
|
-
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling importSupplier().');
|
|
225
|
-
}
|
|
226
|
-
queryParameters = {};
|
|
227
|
-
headerParameters = {};
|
|
228
|
-
consumes = [
|
|
229
|
-
{ contentType: 'application/x-www-form-urlencoded' },
|
|
230
|
-
];
|
|
231
|
-
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
232
|
-
useForm = false;
|
|
233
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
234
|
-
useForm = canConsumeForm;
|
|
235
|
-
if (useForm) {
|
|
236
|
-
formParams = new FormData();
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
formParams = new URLSearchParams();
|
|
240
|
-
}
|
|
241
|
-
if (requestParameters['file'] != null) {
|
|
242
|
-
formParams.append('file', requestParameters['file']);
|
|
243
|
-
}
|
|
244
|
-
urlPath = "/admin-api/supplier/import";
|
|
245
|
-
return [4 /*yield*/, this.request({
|
|
246
|
-
path: urlPath,
|
|
247
|
-
method: 'POST',
|
|
248
|
-
headers: headerParameters,
|
|
249
|
-
query: queryParameters,
|
|
250
|
-
body: formParams,
|
|
251
|
-
}, initOverrides)];
|
|
300
|
+
case 0: return [4 /*yield*/, this.importSupplierRequestOpts(requestParameters)];
|
|
252
301
|
case 1:
|
|
302
|
+
requestOptions = _a.sent();
|
|
303
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
304
|
+
case 2:
|
|
253
305
|
response = _a.sent();
|
|
254
306
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
255
307
|
}
|
|
@@ -273,27 +325,40 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
273
325
|
});
|
|
274
326
|
});
|
|
275
327
|
};
|
|
328
|
+
/**
|
|
329
|
+
* Creates request options for indexSupplier without sending the request
|
|
330
|
+
*/
|
|
331
|
+
SupplierApi.prototype.indexSupplierRequestOpts = function (requestParameters) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
333
|
+
var queryParameters, headerParameters, urlPath;
|
|
334
|
+
return __generator(this, function (_a) {
|
|
335
|
+
queryParameters = {};
|
|
336
|
+
headerParameters = {};
|
|
337
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
338
|
+
urlPath = "/admin-api/supplier/list";
|
|
339
|
+
return [2 /*return*/, {
|
|
340
|
+
path: urlPath,
|
|
341
|
+
method: 'POST',
|
|
342
|
+
headers: headerParameters,
|
|
343
|
+
query: queryParameters,
|
|
344
|
+
body: (0, index_1.IndexSupplierRequestToJSON)(requestParameters['indexSupplierRequest']),
|
|
345
|
+
}];
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
};
|
|
276
349
|
/**
|
|
277
350
|
* Auto-generated: indexSupplier
|
|
278
351
|
*/
|
|
279
352
|
SupplierApi.prototype.indexSupplierRaw = function (requestParameters, initOverrides) {
|
|
280
353
|
return __awaiter(this, void 0, void 0, function () {
|
|
281
|
-
var
|
|
354
|
+
var requestOptions, response;
|
|
282
355
|
return __generator(this, function (_a) {
|
|
283
356
|
switch (_a.label) {
|
|
284
|
-
case 0:
|
|
285
|
-
queryParameters = {};
|
|
286
|
-
headerParameters = {};
|
|
287
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
288
|
-
urlPath = "/admin-api/supplier/list";
|
|
289
|
-
return [4 /*yield*/, this.request({
|
|
290
|
-
path: urlPath,
|
|
291
|
-
method: 'POST',
|
|
292
|
-
headers: headerParameters,
|
|
293
|
-
query: queryParameters,
|
|
294
|
-
body: (0, index_1.IndexSupplierRequestToJSON)(requestParameters['indexSupplierRequest']),
|
|
295
|
-
}, initOverrides)];
|
|
357
|
+
case 0: return [4 /*yield*/, this.indexSupplierRequestOpts(requestParameters)];
|
|
296
358
|
case 1:
|
|
359
|
+
requestOptions = _a.sent();
|
|
360
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
361
|
+
case 2:
|
|
297
362
|
response = _a.sent();
|
|
298
363
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSupplierListResourceResponseFromJSON)(jsonValue); })];
|
|
299
364
|
}
|
|
@@ -318,29 +383,42 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
318
383
|
});
|
|
319
384
|
});
|
|
320
385
|
};
|
|
386
|
+
/**
|
|
387
|
+
* Creates request options for showSupplier without sending the request
|
|
388
|
+
*/
|
|
389
|
+
SupplierApi.prototype.showSupplierRequestOpts = function (requestParameters) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
391
|
+
var queryParameters, headerParameters, urlPath;
|
|
392
|
+
return __generator(this, function (_a) {
|
|
393
|
+
if (requestParameters['supplier'] == null) {
|
|
394
|
+
throw new runtime.RequiredError('supplier', 'Required parameter "supplier" was null or undefined when calling showSupplier().');
|
|
395
|
+
}
|
|
396
|
+
queryParameters = {};
|
|
397
|
+
headerParameters = {};
|
|
398
|
+
urlPath = "/admin-api/supplier/{supplier}";
|
|
399
|
+
urlPath = urlPath.replace("{".concat("supplier", "}"), encodeURIComponent(String(requestParameters['supplier'])));
|
|
400
|
+
return [2 /*return*/, {
|
|
401
|
+
path: urlPath,
|
|
402
|
+
method: 'GET',
|
|
403
|
+
headers: headerParameters,
|
|
404
|
+
query: queryParameters,
|
|
405
|
+
}];
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
};
|
|
321
409
|
/**
|
|
322
410
|
* Auto-generated: showSupplier
|
|
323
411
|
*/
|
|
324
412
|
SupplierApi.prototype.showSupplierRaw = function (requestParameters, initOverrides) {
|
|
325
413
|
return __awaiter(this, void 0, void 0, function () {
|
|
326
|
-
var
|
|
414
|
+
var requestOptions, response;
|
|
327
415
|
return __generator(this, function (_a) {
|
|
328
416
|
switch (_a.label) {
|
|
329
|
-
case 0:
|
|
330
|
-
if (requestParameters['supplier'] == null) {
|
|
331
|
-
throw new runtime.RequiredError('supplier', 'Required parameter "supplier" was null or undefined when calling showSupplier().');
|
|
332
|
-
}
|
|
333
|
-
queryParameters = {};
|
|
334
|
-
headerParameters = {};
|
|
335
|
-
urlPath = "/admin-api/supplier/{supplier}";
|
|
336
|
-
urlPath = urlPath.replace("{".concat("supplier", "}"), encodeURIComponent(String(requestParameters['supplier'])));
|
|
337
|
-
return [4 /*yield*/, this.request({
|
|
338
|
-
path: urlPath,
|
|
339
|
-
method: 'GET',
|
|
340
|
-
headers: headerParameters,
|
|
341
|
-
query: queryParameters,
|
|
342
|
-
}, initOverrides)];
|
|
417
|
+
case 0: return [4 /*yield*/, this.showSupplierRequestOpts(requestParameters)];
|
|
343
418
|
case 1:
|
|
419
|
+
requestOptions = _a.sent();
|
|
420
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
421
|
+
case 2:
|
|
344
422
|
response = _a.sent();
|
|
345
423
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SupplierResourceFromJSON)(jsonValue); })];
|
|
346
424
|
}
|
|
@@ -364,27 +442,40 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
364
442
|
});
|
|
365
443
|
});
|
|
366
444
|
};
|
|
445
|
+
/**
|
|
446
|
+
* Creates request options for storeSupplier without sending the request
|
|
447
|
+
*/
|
|
448
|
+
SupplierApi.prototype.storeSupplierRequestOpts = function (requestParameters) {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
450
|
+
var queryParameters, headerParameters, urlPath;
|
|
451
|
+
return __generator(this, function (_a) {
|
|
452
|
+
queryParameters = {};
|
|
453
|
+
headerParameters = {};
|
|
454
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
455
|
+
urlPath = "/admin-api/supplier/create";
|
|
456
|
+
return [2 /*return*/, {
|
|
457
|
+
path: urlPath,
|
|
458
|
+
method: 'POST',
|
|
459
|
+
headers: headerParameters,
|
|
460
|
+
query: queryParameters,
|
|
461
|
+
body: (0, index_1.StoreSupplierRequestToJSON)(requestParameters['storeSupplierRequest']),
|
|
462
|
+
}];
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
};
|
|
367
466
|
/**
|
|
368
467
|
* Auto-generated: storeSupplier
|
|
369
468
|
*/
|
|
370
469
|
SupplierApi.prototype.storeSupplierRaw = function (requestParameters, initOverrides) {
|
|
371
470
|
return __awaiter(this, void 0, void 0, function () {
|
|
372
|
-
var
|
|
471
|
+
var requestOptions, response;
|
|
373
472
|
return __generator(this, function (_a) {
|
|
374
473
|
switch (_a.label) {
|
|
375
|
-
case 0:
|
|
376
|
-
queryParameters = {};
|
|
377
|
-
headerParameters = {};
|
|
378
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
379
|
-
urlPath = "/admin-api/supplier/create";
|
|
380
|
-
return [4 /*yield*/, this.request({
|
|
381
|
-
path: urlPath,
|
|
382
|
-
method: 'POST',
|
|
383
|
-
headers: headerParameters,
|
|
384
|
-
query: queryParameters,
|
|
385
|
-
body: (0, index_1.StoreSupplierRequestToJSON)(requestParameters['storeSupplierRequest']),
|
|
386
|
-
}, initOverrides)];
|
|
474
|
+
case 0: return [4 /*yield*/, this.storeSupplierRequestOpts(requestParameters)];
|
|
387
475
|
case 1:
|
|
476
|
+
requestOptions = _a.sent();
|
|
477
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
478
|
+
case 2:
|
|
388
479
|
response = _a.sent();
|
|
389
480
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SupplierResourceFromJSON)(jsonValue); })];
|
|
390
481
|
}
|
|
@@ -409,31 +500,44 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
409
500
|
});
|
|
410
501
|
});
|
|
411
502
|
};
|
|
503
|
+
/**
|
|
504
|
+
* Creates request options for updateSupplier without sending the request
|
|
505
|
+
*/
|
|
506
|
+
SupplierApi.prototype.updateSupplierRequestOpts = function (requestParameters) {
|
|
507
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
508
|
+
var queryParameters, headerParameters, urlPath;
|
|
509
|
+
return __generator(this, function (_a) {
|
|
510
|
+
if (requestParameters['supplier'] == null) {
|
|
511
|
+
throw new runtime.RequiredError('supplier', 'Required parameter "supplier" was null or undefined when calling updateSupplier().');
|
|
512
|
+
}
|
|
513
|
+
queryParameters = {};
|
|
514
|
+
headerParameters = {};
|
|
515
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
516
|
+
urlPath = "/admin-api/supplier/{supplier}/update";
|
|
517
|
+
urlPath = urlPath.replace("{".concat("supplier", "}"), encodeURIComponent(String(requestParameters['supplier'])));
|
|
518
|
+
return [2 /*return*/, {
|
|
519
|
+
path: urlPath,
|
|
520
|
+
method: 'PUT',
|
|
521
|
+
headers: headerParameters,
|
|
522
|
+
query: queryParameters,
|
|
523
|
+
body: (0, index_1.UpdateSupplierRequestToJSON)(requestParameters['updateSupplierRequest']),
|
|
524
|
+
}];
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
};
|
|
412
528
|
/**
|
|
413
529
|
* Auto-generated: updateSupplier
|
|
414
530
|
*/
|
|
415
531
|
SupplierApi.prototype.updateSupplierRaw = function (requestParameters, initOverrides) {
|
|
416
532
|
return __awaiter(this, void 0, void 0, function () {
|
|
417
|
-
var
|
|
533
|
+
var requestOptions, response;
|
|
418
534
|
return __generator(this, function (_a) {
|
|
419
535
|
switch (_a.label) {
|
|
420
|
-
case 0:
|
|
421
|
-
if (requestParameters['supplier'] == null) {
|
|
422
|
-
throw new runtime.RequiredError('supplier', 'Required parameter "supplier" was null or undefined when calling updateSupplier().');
|
|
423
|
-
}
|
|
424
|
-
queryParameters = {};
|
|
425
|
-
headerParameters = {};
|
|
426
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
427
|
-
urlPath = "/admin-api/supplier/{supplier}/update";
|
|
428
|
-
urlPath = urlPath.replace("{".concat("supplier", "}"), encodeURIComponent(String(requestParameters['supplier'])));
|
|
429
|
-
return [4 /*yield*/, this.request({
|
|
430
|
-
path: urlPath,
|
|
431
|
-
method: 'PUT',
|
|
432
|
-
headers: headerParameters,
|
|
433
|
-
query: queryParameters,
|
|
434
|
-
body: (0, index_1.UpdateSupplierRequestToJSON)(requestParameters['updateSupplierRequest']),
|
|
435
|
-
}, initOverrides)];
|
|
536
|
+
case 0: return [4 /*yield*/, this.updateSupplierRequestOpts(requestParameters)];
|
|
436
537
|
case 1:
|
|
538
|
+
requestOptions = _a.sent();
|
|
539
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
540
|
+
case 2:
|
|
437
541
|
response = _a.sent();
|
|
438
542
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SupplierResourceFromJSON)(jsonValue); })];
|
|
439
543
|
}
|
package/dist/apis/TagApi.d.ts
CHANGED
|
@@ -42,6 +42,10 @@ export interface UpdateTagOperationRequest {
|
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
44
|
export declare class TagApi extends runtime.BaseAPI {
|
|
45
|
+
/**
|
|
46
|
+
* Creates request options for attachProductChildrenTag without sending the request
|
|
47
|
+
*/
|
|
48
|
+
attachProductChildrenTagRequestOpts(requestParameters: AttachProductChildrenTagRequest): Promise<runtime.RequestOpts>;
|
|
45
49
|
/**
|
|
46
50
|
* Auto-generated: attachProductChildrenTag
|
|
47
51
|
*/
|
|
@@ -50,6 +54,10 @@ export declare class TagApi extends runtime.BaseAPI {
|
|
|
50
54
|
* Auto-generated: attachProductChildrenTag
|
|
51
55
|
*/
|
|
52
56
|
attachProductChildrenTag(requestParameters: AttachProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for destroyTag without sending the request
|
|
59
|
+
*/
|
|
60
|
+
destroyTagRequestOpts(requestParameters: DestroyTagRequest): Promise<runtime.RequestOpts>;
|
|
53
61
|
/**
|
|
54
62
|
* Auto-generated: destroyTag
|
|
55
63
|
*/
|
|
@@ -58,6 +66,10 @@ export declare class TagApi extends runtime.BaseAPI {
|
|
|
58
66
|
* Auto-generated: destroyTag
|
|
59
67
|
*/
|
|
60
68
|
destroyTag(requestParameters: DestroyTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Creates request options for detachProductChildTag without sending the request
|
|
71
|
+
*/
|
|
72
|
+
detachProductChildTagRequestOpts(requestParameters: DetachProductChildTagRequest): Promise<runtime.RequestOpts>;
|
|
61
73
|
/**
|
|
62
74
|
* Auto-generated: detachProductChildTag
|
|
63
75
|
*/
|
|
@@ -66,6 +78,10 @@ export declare class TagApi extends runtime.BaseAPI {
|
|
|
66
78
|
* Auto-generated: detachProductChildTag
|
|
67
79
|
*/
|
|
68
80
|
detachProductChildTag(requestParameters: DetachProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* Creates request options for getAllTag without sending the request
|
|
83
|
+
*/
|
|
84
|
+
getAllTagRequestOpts(requestParameters: GetAllTagRequest): Promise<runtime.RequestOpts>;
|
|
69
85
|
/**
|
|
70
86
|
* Auto-generated: getAllTag
|
|
71
87
|
*/
|
|
@@ -74,6 +90,10 @@ export declare class TagApi extends runtime.BaseAPI {
|
|
|
74
90
|
* Auto-generated: getAllTag
|
|
75
91
|
*/
|
|
76
92
|
getAllTag(requestParameters?: GetAllTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagLiteResourceArrayResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Creates request options for indexTag without sending the request
|
|
95
|
+
*/
|
|
96
|
+
indexTagRequestOpts(requestParameters: IndexTagOperationRequest): Promise<runtime.RequestOpts>;
|
|
77
97
|
/**
|
|
78
98
|
* Auto-generated: indexTag
|
|
79
99
|
*/
|
|
@@ -82,6 +102,10 @@ export declare class TagApi extends runtime.BaseAPI {
|
|
|
82
102
|
* Auto-generated: indexTag
|
|
83
103
|
*/
|
|
84
104
|
indexTag(requestParameters?: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagListResourceResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* Creates request options for showTag without sending the request
|
|
107
|
+
*/
|
|
108
|
+
showTagRequestOpts(requestParameters: ShowTagRequest): Promise<runtime.RequestOpts>;
|
|
85
109
|
/**
|
|
86
110
|
* Auto-generated: showTag
|
|
87
111
|
*/
|
|
@@ -90,6 +114,10 @@ export declare class TagApi extends runtime.BaseAPI {
|
|
|
90
114
|
* Auto-generated: showTag
|
|
91
115
|
*/
|
|
92
116
|
showTag(requestParameters: ShowTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResource>;
|
|
117
|
+
/**
|
|
118
|
+
* Creates request options for storeTag without sending the request
|
|
119
|
+
*/
|
|
120
|
+
storeTagRequestOpts(requestParameters: StoreTagOperationRequest): Promise<runtime.RequestOpts>;
|
|
93
121
|
/**
|
|
94
122
|
* Auto-generated: storeTag
|
|
95
123
|
*/
|
|
@@ -98,6 +126,10 @@ export declare class TagApi extends runtime.BaseAPI {
|
|
|
98
126
|
* Auto-generated: storeTag
|
|
99
127
|
*/
|
|
100
128
|
storeTag(requestParameters?: StoreTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResource>;
|
|
129
|
+
/**
|
|
130
|
+
* Creates request options for updateTag without sending the request
|
|
131
|
+
*/
|
|
132
|
+
updateTagRequestOpts(requestParameters: UpdateTagOperationRequest): Promise<runtime.RequestOpts>;
|
|
101
133
|
/**
|
|
102
134
|
* Auto-generated: updateTag
|
|
103
135
|
*/
|