@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/src/apis/SupplierApi.ts
CHANGED
|
@@ -82,9 +82,9 @@ export interface UpdateSupplierOperationRequest {
|
|
|
82
82
|
export class SupplierApi extends runtime.BaseAPI {
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Creates request options for destroySupplier without sending the request
|
|
86
86
|
*/
|
|
87
|
-
async
|
|
87
|
+
async destroySupplierRequestOpts(requestParameters: DestroySupplierRequest): Promise<runtime.RequestOpts> {
|
|
88
88
|
if (requestParameters['supplier'] == null) {
|
|
89
89
|
throw new runtime.RequiredError(
|
|
90
90
|
'supplier',
|
|
@@ -100,12 +100,20 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
100
100
|
let urlPath = `/admin-api/supplier/{supplier}/delete`;
|
|
101
101
|
urlPath = urlPath.replace(`{${"supplier"}}`, encodeURIComponent(String(requestParameters['supplier'])));
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
return {
|
|
104
104
|
path: urlPath,
|
|
105
105
|
method: 'DELETE',
|
|
106
106
|
headers: headerParameters,
|
|
107
107
|
query: queryParameters,
|
|
108
|
-
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Auto-generated: destroySupplier
|
|
113
|
+
*/
|
|
114
|
+
async destroySupplierRaw(requestParameters: DestroySupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
115
|
+
const requestOptions = await this.destroySupplierRequestOpts(requestParameters);
|
|
116
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
109
117
|
|
|
110
118
|
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
111
119
|
}
|
|
@@ -119,9 +127,9 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
119
127
|
}
|
|
120
128
|
|
|
121
129
|
/**
|
|
122
|
-
*
|
|
130
|
+
* Creates request options for exportSupplier without sending the request
|
|
123
131
|
*/
|
|
124
|
-
async
|
|
132
|
+
async exportSupplierRequestOpts(requestParameters: ExportSupplierRequest): Promise<runtime.RequestOpts> {
|
|
125
133
|
const queryParameters: any = {};
|
|
126
134
|
|
|
127
135
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -131,13 +139,21 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
131
139
|
|
|
132
140
|
let urlPath = `/admin-api/supplier/export`;
|
|
133
141
|
|
|
134
|
-
|
|
142
|
+
return {
|
|
135
143
|
path: urlPath,
|
|
136
144
|
method: 'POST',
|
|
137
145
|
headers: headerParameters,
|
|
138
146
|
query: queryParameters,
|
|
139
147
|
body: IndexSupplierRequestToJSON(requestParameters['indexSupplierRequest']),
|
|
140
|
-
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Auto-generated: exportSupplier
|
|
153
|
+
*/
|
|
154
|
+
async exportSupplierRaw(requestParameters: ExportSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
155
|
+
const requestOptions = await this.exportSupplierRequestOpts(requestParameters);
|
|
156
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
141
157
|
|
|
142
158
|
return new runtime.BlobApiResponse(response);
|
|
143
159
|
}
|
|
@@ -151,9 +167,9 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
151
167
|
}
|
|
152
168
|
|
|
153
169
|
/**
|
|
154
|
-
*
|
|
170
|
+
* Creates request options for getAllSupplier without sending the request
|
|
155
171
|
*/
|
|
156
|
-
async
|
|
172
|
+
async getAllSupplierRequestOpts(requestParameters: GetAllSupplierOperationRequest): Promise<runtime.RequestOpts> {
|
|
157
173
|
const queryParameters: any = {};
|
|
158
174
|
|
|
159
175
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -163,13 +179,21 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
163
179
|
|
|
164
180
|
let urlPath = `/admin-api/supplier/all`;
|
|
165
181
|
|
|
166
|
-
|
|
182
|
+
return {
|
|
167
183
|
path: urlPath,
|
|
168
184
|
method: 'POST',
|
|
169
185
|
headers: headerParameters,
|
|
170
186
|
query: queryParameters,
|
|
171
187
|
body: GetAllSupplierRequestToJSON(requestParameters['getAllSupplierRequest']),
|
|
172
|
-
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Auto-generated: getAllSupplier
|
|
193
|
+
*/
|
|
194
|
+
async getAllSupplierRaw(requestParameters: GetAllSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupplierLiteResourceArrayResponse>> {
|
|
195
|
+
const requestOptions = await this.getAllSupplierRequestOpts(requestParameters);
|
|
196
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
173
197
|
|
|
174
198
|
return new runtime.JSONApiResponse(response, (jsonValue) => SupplierLiteResourceArrayResponseFromJSON(jsonValue));
|
|
175
199
|
}
|
|
@@ -183,9 +207,9 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
183
207
|
}
|
|
184
208
|
|
|
185
209
|
/**
|
|
186
|
-
*
|
|
210
|
+
* Creates request options for importSupplier without sending the request
|
|
187
211
|
*/
|
|
188
|
-
async
|
|
212
|
+
async importSupplierRequestOpts(requestParameters: ImportSupplierRequest): Promise<runtime.RequestOpts> {
|
|
189
213
|
if (requestParameters['file'] == null) {
|
|
190
214
|
throw new runtime.RequiredError(
|
|
191
215
|
'file',
|
|
@@ -220,13 +244,21 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
220
244
|
|
|
221
245
|
let urlPath = `/admin-api/supplier/import`;
|
|
222
246
|
|
|
223
|
-
|
|
247
|
+
return {
|
|
224
248
|
path: urlPath,
|
|
225
249
|
method: 'POST',
|
|
226
250
|
headers: headerParameters,
|
|
227
251
|
query: queryParameters,
|
|
228
252
|
body: formParams,
|
|
229
|
-
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Auto-generated: importSupplier
|
|
258
|
+
*/
|
|
259
|
+
async importSupplierRaw(requestParameters: ImportSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
260
|
+
const requestOptions = await this.importSupplierRequestOpts(requestParameters);
|
|
261
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
230
262
|
|
|
231
263
|
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
232
264
|
}
|
|
@@ -240,9 +272,9 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
240
272
|
}
|
|
241
273
|
|
|
242
274
|
/**
|
|
243
|
-
*
|
|
275
|
+
* Creates request options for indexSupplier without sending the request
|
|
244
276
|
*/
|
|
245
|
-
async
|
|
277
|
+
async indexSupplierRequestOpts(requestParameters: IndexSupplierOperationRequest): Promise<runtime.RequestOpts> {
|
|
246
278
|
const queryParameters: any = {};
|
|
247
279
|
|
|
248
280
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -252,13 +284,21 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
252
284
|
|
|
253
285
|
let urlPath = `/admin-api/supplier/list`;
|
|
254
286
|
|
|
255
|
-
|
|
287
|
+
return {
|
|
256
288
|
path: urlPath,
|
|
257
289
|
method: 'POST',
|
|
258
290
|
headers: headerParameters,
|
|
259
291
|
query: queryParameters,
|
|
260
292
|
body: IndexSupplierRequestToJSON(requestParameters['indexSupplierRequest']),
|
|
261
|
-
}
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Auto-generated: indexSupplier
|
|
298
|
+
*/
|
|
299
|
+
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierListResourceResponse>> {
|
|
300
|
+
const requestOptions = await this.indexSupplierRequestOpts(requestParameters);
|
|
301
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
262
302
|
|
|
263
303
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupplierListResourceResponseFromJSON(jsonValue));
|
|
264
304
|
}
|
|
@@ -272,9 +312,9 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
272
312
|
}
|
|
273
313
|
|
|
274
314
|
/**
|
|
275
|
-
*
|
|
315
|
+
* Creates request options for showSupplier without sending the request
|
|
276
316
|
*/
|
|
277
|
-
async
|
|
317
|
+
async showSupplierRequestOpts(requestParameters: ShowSupplierRequest): Promise<runtime.RequestOpts> {
|
|
278
318
|
if (requestParameters['supplier'] == null) {
|
|
279
319
|
throw new runtime.RequiredError(
|
|
280
320
|
'supplier',
|
|
@@ -290,12 +330,20 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
290
330
|
let urlPath = `/admin-api/supplier/{supplier}`;
|
|
291
331
|
urlPath = urlPath.replace(`{${"supplier"}}`, encodeURIComponent(String(requestParameters['supplier'])));
|
|
292
332
|
|
|
293
|
-
|
|
333
|
+
return {
|
|
294
334
|
path: urlPath,
|
|
295
335
|
method: 'GET',
|
|
296
336
|
headers: headerParameters,
|
|
297
337
|
query: queryParameters,
|
|
298
|
-
}
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Auto-generated: showSupplier
|
|
343
|
+
*/
|
|
344
|
+
async showSupplierRaw(requestParameters: ShowSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupplierResource>> {
|
|
345
|
+
const requestOptions = await this.showSupplierRequestOpts(requestParameters);
|
|
346
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
299
347
|
|
|
300
348
|
return new runtime.JSONApiResponse(response, (jsonValue) => SupplierResourceFromJSON(jsonValue));
|
|
301
349
|
}
|
|
@@ -309,9 +357,9 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
309
357
|
}
|
|
310
358
|
|
|
311
359
|
/**
|
|
312
|
-
*
|
|
360
|
+
* Creates request options for storeSupplier without sending the request
|
|
313
361
|
*/
|
|
314
|
-
async
|
|
362
|
+
async storeSupplierRequestOpts(requestParameters: StoreSupplierOperationRequest): Promise<runtime.RequestOpts> {
|
|
315
363
|
const queryParameters: any = {};
|
|
316
364
|
|
|
317
365
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -321,13 +369,21 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
321
369
|
|
|
322
370
|
let urlPath = `/admin-api/supplier/create`;
|
|
323
371
|
|
|
324
|
-
|
|
372
|
+
return {
|
|
325
373
|
path: urlPath,
|
|
326
374
|
method: 'POST',
|
|
327
375
|
headers: headerParameters,
|
|
328
376
|
query: queryParameters,
|
|
329
377
|
body: StoreSupplierRequestToJSON(requestParameters['storeSupplierRequest']),
|
|
330
|
-
}
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Auto-generated: storeSupplier
|
|
383
|
+
*/
|
|
384
|
+
async storeSupplierRaw(requestParameters: StoreSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupplierResource>> {
|
|
385
|
+
const requestOptions = await this.storeSupplierRequestOpts(requestParameters);
|
|
386
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
331
387
|
|
|
332
388
|
return new runtime.JSONApiResponse(response, (jsonValue) => SupplierResourceFromJSON(jsonValue));
|
|
333
389
|
}
|
|
@@ -341,9 +397,9 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
341
397
|
}
|
|
342
398
|
|
|
343
399
|
/**
|
|
344
|
-
*
|
|
400
|
+
* Creates request options for updateSupplier without sending the request
|
|
345
401
|
*/
|
|
346
|
-
async
|
|
402
|
+
async updateSupplierRequestOpts(requestParameters: UpdateSupplierOperationRequest): Promise<runtime.RequestOpts> {
|
|
347
403
|
if (requestParameters['supplier'] == null) {
|
|
348
404
|
throw new runtime.RequiredError(
|
|
349
405
|
'supplier',
|
|
@@ -361,13 +417,21 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
361
417
|
let urlPath = `/admin-api/supplier/{supplier}/update`;
|
|
362
418
|
urlPath = urlPath.replace(`{${"supplier"}}`, encodeURIComponent(String(requestParameters['supplier'])));
|
|
363
419
|
|
|
364
|
-
|
|
420
|
+
return {
|
|
365
421
|
path: urlPath,
|
|
366
422
|
method: 'PUT',
|
|
367
423
|
headers: headerParameters,
|
|
368
424
|
query: queryParameters,
|
|
369
425
|
body: UpdateSupplierRequestToJSON(requestParameters['updateSupplierRequest']),
|
|
370
|
-
}
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Auto-generated: updateSupplier
|
|
431
|
+
*/
|
|
432
|
+
async updateSupplierRaw(requestParameters: UpdateSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupplierResource>> {
|
|
433
|
+
const requestOptions = await this.updateSupplierRequestOpts(requestParameters);
|
|
434
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
371
435
|
|
|
372
436
|
return new runtime.JSONApiResponse(response, (jsonValue) => SupplierResourceFromJSON(jsonValue));
|
|
373
437
|
}
|
package/src/apis/TagApi.ts
CHANGED
|
@@ -87,9 +87,9 @@ export interface UpdateTagOperationRequest {
|
|
|
87
87
|
export class TagApi extends runtime.BaseAPI {
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Creates request options for attachProductChildrenTag without sending the request
|
|
91
91
|
*/
|
|
92
|
-
async
|
|
92
|
+
async attachProductChildrenTagRequestOpts(requestParameters: AttachProductChildrenTagRequest): Promise<runtime.RequestOpts> {
|
|
93
93
|
if (requestParameters['tag'] == null) {
|
|
94
94
|
throw new runtime.RequiredError(
|
|
95
95
|
'tag',
|
|
@@ -107,13 +107,21 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
107
107
|
let urlPath = `/admin-api/tag/{tag}/attach-product-children`;
|
|
108
108
|
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
return {
|
|
111
111
|
path: urlPath,
|
|
112
112
|
method: 'POST',
|
|
113
113
|
headers: headerParameters,
|
|
114
114
|
query: queryParameters,
|
|
115
115
|
body: AttachAccessoriesProductChildRequestToJSON(requestParameters['attachAccessoriesProductChildRequest']),
|
|
116
|
-
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Auto-generated: attachProductChildrenTag
|
|
121
|
+
*/
|
|
122
|
+
async attachProductChildrenTagRaw(requestParameters: AttachProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
123
|
+
const requestOptions = await this.attachProductChildrenTagRequestOpts(requestParameters);
|
|
124
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
117
125
|
|
|
118
126
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
119
127
|
}
|
|
@@ -127,9 +135,9 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
127
135
|
}
|
|
128
136
|
|
|
129
137
|
/**
|
|
130
|
-
*
|
|
138
|
+
* Creates request options for destroyTag without sending the request
|
|
131
139
|
*/
|
|
132
|
-
async
|
|
140
|
+
async destroyTagRequestOpts(requestParameters: DestroyTagRequest): Promise<runtime.RequestOpts> {
|
|
133
141
|
if (requestParameters['tag'] == null) {
|
|
134
142
|
throw new runtime.RequiredError(
|
|
135
143
|
'tag',
|
|
@@ -145,12 +153,20 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
145
153
|
let urlPath = `/admin-api/tag/{tag}/delete`;
|
|
146
154
|
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
147
155
|
|
|
148
|
-
|
|
156
|
+
return {
|
|
149
157
|
path: urlPath,
|
|
150
158
|
method: 'DELETE',
|
|
151
159
|
headers: headerParameters,
|
|
152
160
|
query: queryParameters,
|
|
153
|
-
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Auto-generated: destroyTag
|
|
166
|
+
*/
|
|
167
|
+
async destroyTagRaw(requestParameters: DestroyTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
168
|
+
const requestOptions = await this.destroyTagRequestOpts(requestParameters);
|
|
169
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
154
170
|
|
|
155
171
|
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
156
172
|
}
|
|
@@ -164,9 +180,9 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
164
180
|
}
|
|
165
181
|
|
|
166
182
|
/**
|
|
167
|
-
*
|
|
183
|
+
* Creates request options for detachProductChildTag without sending the request
|
|
168
184
|
*/
|
|
169
|
-
async
|
|
185
|
+
async detachProductChildTagRequestOpts(requestParameters: DetachProductChildTagRequest): Promise<runtime.RequestOpts> {
|
|
170
186
|
if (requestParameters['tag'] == null) {
|
|
171
187
|
throw new runtime.RequiredError(
|
|
172
188
|
'tag',
|
|
@@ -190,12 +206,20 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
190
206
|
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
191
207
|
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
192
208
|
|
|
193
|
-
|
|
209
|
+
return {
|
|
194
210
|
path: urlPath,
|
|
195
211
|
method: 'POST',
|
|
196
212
|
headers: headerParameters,
|
|
197
213
|
query: queryParameters,
|
|
198
|
-
}
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Auto-generated: detachProductChildTag
|
|
219
|
+
*/
|
|
220
|
+
async detachProductChildTagRaw(requestParameters: DetachProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
221
|
+
const requestOptions = await this.detachProductChildTagRequestOpts(requestParameters);
|
|
222
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
199
223
|
|
|
200
224
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
201
225
|
}
|
|
@@ -209,9 +233,9 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
209
233
|
}
|
|
210
234
|
|
|
211
235
|
/**
|
|
212
|
-
*
|
|
236
|
+
* Creates request options for getAllTag without sending the request
|
|
213
237
|
*/
|
|
214
|
-
async
|
|
238
|
+
async getAllTagRequestOpts(requestParameters: GetAllTagRequest): Promise<runtime.RequestOpts> {
|
|
215
239
|
const queryParameters: any = {};
|
|
216
240
|
|
|
217
241
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -221,13 +245,21 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
221
245
|
|
|
222
246
|
let urlPath = `/admin-api/tag/all`;
|
|
223
247
|
|
|
224
|
-
|
|
248
|
+
return {
|
|
225
249
|
path: urlPath,
|
|
226
250
|
method: 'POST',
|
|
227
251
|
headers: headerParameters,
|
|
228
252
|
query: queryParameters,
|
|
229
253
|
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
230
|
-
}
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Auto-generated: getAllTag
|
|
259
|
+
*/
|
|
260
|
+
async getAllTagRaw(requestParameters: GetAllTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagLiteResourceArrayResponse>> {
|
|
261
|
+
const requestOptions = await this.getAllTagRequestOpts(requestParameters);
|
|
262
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
231
263
|
|
|
232
264
|
return new runtime.JSONApiResponse(response, (jsonValue) => TagLiteResourceArrayResponseFromJSON(jsonValue));
|
|
233
265
|
}
|
|
@@ -241,9 +273,9 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
241
273
|
}
|
|
242
274
|
|
|
243
275
|
/**
|
|
244
|
-
*
|
|
276
|
+
* Creates request options for indexTag without sending the request
|
|
245
277
|
*/
|
|
246
|
-
async
|
|
278
|
+
async indexTagRequestOpts(requestParameters: IndexTagOperationRequest): Promise<runtime.RequestOpts> {
|
|
247
279
|
const queryParameters: any = {};
|
|
248
280
|
|
|
249
281
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -253,13 +285,21 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
253
285
|
|
|
254
286
|
let urlPath = `/admin-api/tag/list`;
|
|
255
287
|
|
|
256
|
-
|
|
288
|
+
return {
|
|
257
289
|
path: urlPath,
|
|
258
290
|
method: 'POST',
|
|
259
291
|
headers: headerParameters,
|
|
260
292
|
query: queryParameters,
|
|
261
293
|
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
262
|
-
}
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Auto-generated: indexTag
|
|
299
|
+
*/
|
|
300
|
+
async indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagListResourceResponse>> {
|
|
301
|
+
const requestOptions = await this.indexTagRequestOpts(requestParameters);
|
|
302
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
263
303
|
|
|
264
304
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTagListResourceResponseFromJSON(jsonValue));
|
|
265
305
|
}
|
|
@@ -273,9 +313,9 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
273
313
|
}
|
|
274
314
|
|
|
275
315
|
/**
|
|
276
|
-
*
|
|
316
|
+
* Creates request options for showTag without sending the request
|
|
277
317
|
*/
|
|
278
|
-
async
|
|
318
|
+
async showTagRequestOpts(requestParameters: ShowTagRequest): Promise<runtime.RequestOpts> {
|
|
279
319
|
if (requestParameters['tag'] == null) {
|
|
280
320
|
throw new runtime.RequiredError(
|
|
281
321
|
'tag',
|
|
@@ -291,12 +331,20 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
291
331
|
let urlPath = `/admin-api/tag/{tag}`;
|
|
292
332
|
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
293
333
|
|
|
294
|
-
|
|
334
|
+
return {
|
|
295
335
|
path: urlPath,
|
|
296
336
|
method: 'GET',
|
|
297
337
|
headers: headerParameters,
|
|
298
338
|
query: queryParameters,
|
|
299
|
-
}
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Auto-generated: showTag
|
|
344
|
+
*/
|
|
345
|
+
async showTagRaw(requestParameters: ShowTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResource>> {
|
|
346
|
+
const requestOptions = await this.showTagRequestOpts(requestParameters);
|
|
347
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
300
348
|
|
|
301
349
|
return new runtime.JSONApiResponse(response, (jsonValue) => TagResourceFromJSON(jsonValue));
|
|
302
350
|
}
|
|
@@ -310,9 +358,9 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
310
358
|
}
|
|
311
359
|
|
|
312
360
|
/**
|
|
313
|
-
*
|
|
361
|
+
* Creates request options for storeTag without sending the request
|
|
314
362
|
*/
|
|
315
|
-
async
|
|
363
|
+
async storeTagRequestOpts(requestParameters: StoreTagOperationRequest): Promise<runtime.RequestOpts> {
|
|
316
364
|
const queryParameters: any = {};
|
|
317
365
|
|
|
318
366
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -322,13 +370,21 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
322
370
|
|
|
323
371
|
let urlPath = `/admin-api/tag/create`;
|
|
324
372
|
|
|
325
|
-
|
|
373
|
+
return {
|
|
326
374
|
path: urlPath,
|
|
327
375
|
method: 'POST',
|
|
328
376
|
headers: headerParameters,
|
|
329
377
|
query: queryParameters,
|
|
330
378
|
body: StoreTagRequestToJSON(requestParameters['storeTagRequest']),
|
|
331
|
-
}
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Auto-generated: storeTag
|
|
384
|
+
*/
|
|
385
|
+
async storeTagRaw(requestParameters: StoreTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResource>> {
|
|
386
|
+
const requestOptions = await this.storeTagRequestOpts(requestParameters);
|
|
387
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
332
388
|
|
|
333
389
|
return new runtime.JSONApiResponse(response, (jsonValue) => TagResourceFromJSON(jsonValue));
|
|
334
390
|
}
|
|
@@ -342,9 +398,9 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
342
398
|
}
|
|
343
399
|
|
|
344
400
|
/**
|
|
345
|
-
*
|
|
401
|
+
* Creates request options for updateTag without sending the request
|
|
346
402
|
*/
|
|
347
|
-
async
|
|
403
|
+
async updateTagRequestOpts(requestParameters: UpdateTagOperationRequest): Promise<runtime.RequestOpts> {
|
|
348
404
|
if (requestParameters['tag'] == null) {
|
|
349
405
|
throw new runtime.RequiredError(
|
|
350
406
|
'tag',
|
|
@@ -362,13 +418,21 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
362
418
|
let urlPath = `/admin-api/tag/{tag}/update`;
|
|
363
419
|
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
364
420
|
|
|
365
|
-
|
|
421
|
+
return {
|
|
366
422
|
path: urlPath,
|
|
367
423
|
method: 'PUT',
|
|
368
424
|
headers: headerParameters,
|
|
369
425
|
query: queryParameters,
|
|
370
426
|
body: UpdateTagRequestToJSON(requestParameters['updateTagRequest']),
|
|
371
|
-
}
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Auto-generated: updateTag
|
|
432
|
+
*/
|
|
433
|
+
async updateTagRaw(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResource>> {
|
|
434
|
+
const requestOptions = await this.updateTagRequestOpts(requestParameters);
|
|
435
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
372
436
|
|
|
373
437
|
return new runtime.JSONApiResponse(response, (jsonValue) => TagResourceFromJSON(jsonValue));
|
|
374
438
|
}
|
|
@@ -27,7 +27,7 @@ export interface AttachAttributeProductTypeRequest {
|
|
|
27
27
|
attributeId: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {AttachAttributeProductTypeRequestFieldTypeEnum}
|
|
31
31
|
* @memberof AttachAttributeProductTypeRequest
|
|
32
32
|
*/
|
|
33
33
|
fieldType: AttachAttributeProductTypeRequestFieldTypeEnum;
|
|
@@ -21,7 +21,7 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface AttachDocumentablesDocumentRequestDocumentablesInner {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {
|
|
24
|
+
* @type {AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum}
|
|
25
25
|
* @memberof AttachDocumentablesDocumentRequestDocumentablesInner
|
|
26
26
|
*/
|
|
27
27
|
documentableType: AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum;
|
|
@@ -27,7 +27,7 @@ export interface AttachProductTypeAttributeRequest {
|
|
|
27
27
|
productTypeId: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {AttachProductTypeAttributeRequestFieldTypeEnum}
|
|
31
31
|
* @memberof AttachProductTypeAttributeRequest
|
|
32
32
|
*/
|
|
33
33
|
fieldType: AttachProductTypeAttributeRequestFieldTypeEnum;
|
|
@@ -27,7 +27,7 @@ export interface DetachAssetableOverlayTemplateRequest {
|
|
|
27
27
|
relatedId: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {DetachAssetableOverlayTemplateRequestRelatedTypeEnum}
|
|
31
31
|
* @memberof DetachAssetableOverlayTemplateRequest
|
|
32
32
|
*/
|
|
33
33
|
relatedType: DetachAssetableOverlayTemplateRequestRelatedTypeEnum;
|
|
@@ -21,7 +21,7 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface DetachDocumentablesDocumentRequestDocumentablesInner {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {
|
|
24
|
+
* @type {DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum}
|
|
25
25
|
* @memberof DetachDocumentablesDocumentRequestDocumentablesInner
|
|
26
26
|
*/
|
|
27
27
|
documentableType: DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum;
|
|
@@ -27,13 +27,13 @@ export interface GetAllAttributeRequest {
|
|
|
27
27
|
search?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {GetAllAttributeRequestSortByEnum}
|
|
31
31
|
* @memberof GetAllAttributeRequest
|
|
32
32
|
*/
|
|
33
33
|
sortBy?: GetAllAttributeRequestSortByEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {GetAllAttributeRequestSortDirectionEnum}
|
|
37
37
|
* @memberof GetAllAttributeRequest
|
|
38
38
|
*/
|
|
39
39
|
sortDirection?: GetAllAttributeRequestSortDirectionEnum;
|
|
@@ -45,7 +45,7 @@ export interface GetAllAttributeRequest {
|
|
|
45
45
|
relatedId?: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
|
-
* @type {
|
|
48
|
+
* @type {GetAllAttributeRequestRelatedTypeEnum}
|
|
49
49
|
* @memberof GetAllAttributeRequest
|
|
50
50
|
*/
|
|
51
51
|
relatedType?: GetAllAttributeRequestRelatedTypeEnum;
|
|
@@ -27,13 +27,13 @@ export interface GetAllDefinitionRequest {
|
|
|
27
27
|
search?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {GetAllDefinitionRequestSortByEnum}
|
|
31
31
|
* @memberof GetAllDefinitionRequest
|
|
32
32
|
*/
|
|
33
33
|
sortBy?: GetAllDefinitionRequestSortByEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {GetAllDefinitionRequestSortDirectionEnum}
|
|
37
37
|
* @memberof GetAllDefinitionRequest
|
|
38
38
|
*/
|
|
39
39
|
sortDirection?: GetAllDefinitionRequestSortDirectionEnum;
|