@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
|
@@ -92,9 +92,9 @@ export interface UpdateProductTypeOperationRequest {
|
|
|
92
92
|
export class ProductTypeApi extends runtime.BaseAPI {
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* Creates request options for attachAttributeProductType without sending the request
|
|
96
96
|
*/
|
|
97
|
-
async
|
|
97
|
+
async attachAttributeProductTypeRequestOpts(requestParameters: AttachAttributeProductTypeOperationRequest): Promise<runtime.RequestOpts> {
|
|
98
98
|
if (requestParameters['productType'] == null) {
|
|
99
99
|
throw new runtime.RequiredError(
|
|
100
100
|
'productType',
|
|
@@ -112,13 +112,21 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
112
112
|
let urlPath = `/admin-api/product-type/{productType}/attach-attribute`;
|
|
113
113
|
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
return {
|
|
116
116
|
path: urlPath,
|
|
117
117
|
method: 'POST',
|
|
118
118
|
headers: headerParameters,
|
|
119
119
|
query: queryParameters,
|
|
120
120
|
body: AttachAttributeProductTypeRequestToJSON(requestParameters['attachAttributeProductTypeRequest']),
|
|
121
|
-
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Auto-generated: attachAttributeProductType
|
|
126
|
+
*/
|
|
127
|
+
async attachAttributeProductTypeRaw(requestParameters: AttachAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
128
|
+
const requestOptions = await this.attachAttributeProductTypeRequestOpts(requestParameters);
|
|
129
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
122
130
|
|
|
123
131
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
124
132
|
}
|
|
@@ -132,9 +140,9 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
132
140
|
}
|
|
133
141
|
|
|
134
142
|
/**
|
|
135
|
-
*
|
|
143
|
+
* Creates request options for destroyProductType without sending the request
|
|
136
144
|
*/
|
|
137
|
-
async
|
|
145
|
+
async destroyProductTypeRequestOpts(requestParameters: DestroyProductTypeRequest): Promise<runtime.RequestOpts> {
|
|
138
146
|
if (requestParameters['productType'] == null) {
|
|
139
147
|
throw new runtime.RequiredError(
|
|
140
148
|
'productType',
|
|
@@ -150,12 +158,20 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
150
158
|
let urlPath = `/admin-api/product-type/{productType}/delete`;
|
|
151
159
|
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
152
160
|
|
|
153
|
-
|
|
161
|
+
return {
|
|
154
162
|
path: urlPath,
|
|
155
163
|
method: 'DELETE',
|
|
156
164
|
headers: headerParameters,
|
|
157
165
|
query: queryParameters,
|
|
158
|
-
}
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Auto-generated: destroyProductType
|
|
171
|
+
*/
|
|
172
|
+
async destroyProductTypeRaw(requestParameters: DestroyProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
173
|
+
const requestOptions = await this.destroyProductTypeRequestOpts(requestParameters);
|
|
174
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
159
175
|
|
|
160
176
|
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
161
177
|
}
|
|
@@ -169,9 +185,9 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
169
185
|
}
|
|
170
186
|
|
|
171
187
|
/**
|
|
172
|
-
*
|
|
188
|
+
* Creates request options for detachAttributeProductType without sending the request
|
|
173
189
|
*/
|
|
174
|
-
async
|
|
190
|
+
async detachAttributeProductTypeRequestOpts(requestParameters: DetachAttributeProductTypeRequest): Promise<runtime.RequestOpts> {
|
|
175
191
|
if (requestParameters['productType'] == null) {
|
|
176
192
|
throw new runtime.RequiredError(
|
|
177
193
|
'productType',
|
|
@@ -195,12 +211,20 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
195
211
|
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
196
212
|
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
197
213
|
|
|
198
|
-
|
|
214
|
+
return {
|
|
199
215
|
path: urlPath,
|
|
200
216
|
method: 'POST',
|
|
201
217
|
headers: headerParameters,
|
|
202
218
|
query: queryParameters,
|
|
203
|
-
}
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Auto-generated: detachAttributeProductType
|
|
224
|
+
*/
|
|
225
|
+
async detachAttributeProductTypeRaw(requestParameters: DetachAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
226
|
+
const requestOptions = await this.detachAttributeProductTypeRequestOpts(requestParameters);
|
|
227
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
204
228
|
|
|
205
229
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
206
230
|
}
|
|
@@ -214,9 +238,9 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
214
238
|
}
|
|
215
239
|
|
|
216
240
|
/**
|
|
217
|
-
*
|
|
241
|
+
* Creates request options for getAllProductType without sending the request
|
|
218
242
|
*/
|
|
219
|
-
async
|
|
243
|
+
async getAllProductTypeRequestOpts(requestParameters: GetAllProductTypeOperationRequest): Promise<runtime.RequestOpts> {
|
|
220
244
|
const queryParameters: any = {};
|
|
221
245
|
|
|
222
246
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -226,13 +250,21 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
226
250
|
|
|
227
251
|
let urlPath = `/admin-api/product-type/all`;
|
|
228
252
|
|
|
229
|
-
|
|
253
|
+
return {
|
|
230
254
|
path: urlPath,
|
|
231
255
|
method: 'POST',
|
|
232
256
|
headers: headerParameters,
|
|
233
257
|
query: queryParameters,
|
|
234
258
|
body: GetAllProductTypeRequestToJSON(requestParameters['getAllProductTypeRequest']),
|
|
235
|
-
}
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Auto-generated: getAllProductType
|
|
264
|
+
*/
|
|
265
|
+
async getAllProductTypeRaw(requestParameters: GetAllProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeLiteResourceResponse>> {
|
|
266
|
+
const requestOptions = await this.getAllProductTypeRequestOpts(requestParameters);
|
|
267
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
236
268
|
|
|
237
269
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeLiteResourceResponseFromJSON(jsonValue));
|
|
238
270
|
}
|
|
@@ -246,9 +278,9 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
246
278
|
}
|
|
247
279
|
|
|
248
280
|
/**
|
|
249
|
-
*
|
|
281
|
+
* Creates request options for indexProductType without sending the request
|
|
250
282
|
*/
|
|
251
|
-
async
|
|
283
|
+
async indexProductTypeRequestOpts(requestParameters: IndexProductTypeOperationRequest): Promise<runtime.RequestOpts> {
|
|
252
284
|
const queryParameters: any = {};
|
|
253
285
|
|
|
254
286
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -258,13 +290,21 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
258
290
|
|
|
259
291
|
let urlPath = `/admin-api/product-type/list`;
|
|
260
292
|
|
|
261
|
-
|
|
293
|
+
return {
|
|
262
294
|
path: urlPath,
|
|
263
295
|
method: 'POST',
|
|
264
296
|
headers: headerParameters,
|
|
265
297
|
query: queryParameters,
|
|
266
298
|
body: IndexProductTypeRequestToJSON(requestParameters['indexProductTypeRequest']),
|
|
267
|
-
}
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Auto-generated: indexProductType
|
|
304
|
+
*/
|
|
305
|
+
async indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeListResourceResponse>> {
|
|
306
|
+
const requestOptions = await this.indexProductTypeRequestOpts(requestParameters);
|
|
307
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
268
308
|
|
|
269
309
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeListResourceResponseFromJSON(jsonValue));
|
|
270
310
|
}
|
|
@@ -278,9 +318,9 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
278
318
|
}
|
|
279
319
|
|
|
280
320
|
/**
|
|
281
|
-
*
|
|
321
|
+
* Creates request options for showProductType without sending the request
|
|
282
322
|
*/
|
|
283
|
-
async
|
|
323
|
+
async showProductTypeRequestOpts(requestParameters: ShowProductTypeRequest): Promise<runtime.RequestOpts> {
|
|
284
324
|
if (requestParameters['productType'] == null) {
|
|
285
325
|
throw new runtime.RequiredError(
|
|
286
326
|
'productType',
|
|
@@ -296,12 +336,20 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
296
336
|
let urlPath = `/admin-api/product-type/{productType}`;
|
|
297
337
|
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
298
338
|
|
|
299
|
-
|
|
339
|
+
return {
|
|
300
340
|
path: urlPath,
|
|
301
341
|
method: 'GET',
|
|
302
342
|
headers: headerParameters,
|
|
303
343
|
query: queryParameters,
|
|
304
|
-
}
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Auto-generated: showProductType
|
|
349
|
+
*/
|
|
350
|
+
async showProductTypeRaw(requestParameters: ShowProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
351
|
+
const requestOptions = await this.showProductTypeRequestOpts(requestParameters);
|
|
352
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
305
353
|
|
|
306
354
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
307
355
|
}
|
|
@@ -315,9 +363,9 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
315
363
|
}
|
|
316
364
|
|
|
317
365
|
/**
|
|
318
|
-
*
|
|
366
|
+
* Creates request options for storeProductType without sending the request
|
|
319
367
|
*/
|
|
320
|
-
async
|
|
368
|
+
async storeProductTypeRequestOpts(requestParameters: StoreProductTypeOperationRequest): Promise<runtime.RequestOpts> {
|
|
321
369
|
const queryParameters: any = {};
|
|
322
370
|
|
|
323
371
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -327,13 +375,21 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
327
375
|
|
|
328
376
|
let urlPath = `/admin-api/product-type/create`;
|
|
329
377
|
|
|
330
|
-
|
|
378
|
+
return {
|
|
331
379
|
path: urlPath,
|
|
332
380
|
method: 'POST',
|
|
333
381
|
headers: headerParameters,
|
|
334
382
|
query: queryParameters,
|
|
335
383
|
body: StoreProductTypeRequestToJSON(requestParameters['storeProductTypeRequest']),
|
|
336
|
-
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Auto-generated: storeProductType
|
|
389
|
+
*/
|
|
390
|
+
async storeProductTypeRaw(requestParameters: StoreProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
391
|
+
const requestOptions = await this.storeProductTypeRequestOpts(requestParameters);
|
|
392
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
337
393
|
|
|
338
394
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
339
395
|
}
|
|
@@ -347,9 +403,9 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
347
403
|
}
|
|
348
404
|
|
|
349
405
|
/**
|
|
350
|
-
*
|
|
406
|
+
* Creates request options for updateAttachedAttributeProductType without sending the request
|
|
351
407
|
*/
|
|
352
|
-
async
|
|
408
|
+
async updateAttachedAttributeProductTypeRequestOpts(requestParameters: UpdateAttachedAttributeProductTypeRequest): Promise<runtime.RequestOpts> {
|
|
353
409
|
if (requestParameters['productType'] == null) {
|
|
354
410
|
throw new runtime.RequiredError(
|
|
355
411
|
'productType',
|
|
@@ -367,13 +423,21 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
367
423
|
let urlPath = `/admin-api/product-type/{productType}/update-attribute`;
|
|
368
424
|
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
369
425
|
|
|
370
|
-
|
|
426
|
+
return {
|
|
371
427
|
path: urlPath,
|
|
372
428
|
method: 'PUT',
|
|
373
429
|
headers: headerParameters,
|
|
374
430
|
query: queryParameters,
|
|
375
431
|
body: AttachAttributeProductTypeRequestToJSON(requestParameters['attachAttributeProductTypeRequest']),
|
|
376
|
-
}
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Auto-generated: updateAttachedAttributeProductType
|
|
437
|
+
*/
|
|
438
|
+
async updateAttachedAttributeProductTypeRaw(requestParameters: UpdateAttachedAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
439
|
+
const requestOptions = await this.updateAttachedAttributeProductTypeRequestOpts(requestParameters);
|
|
440
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
377
441
|
|
|
378
442
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
379
443
|
}
|
|
@@ -387,9 +451,9 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
387
451
|
}
|
|
388
452
|
|
|
389
453
|
/**
|
|
390
|
-
*
|
|
454
|
+
* Creates request options for updateProductType without sending the request
|
|
391
455
|
*/
|
|
392
|
-
async
|
|
456
|
+
async updateProductTypeRequestOpts(requestParameters: UpdateProductTypeOperationRequest): Promise<runtime.RequestOpts> {
|
|
393
457
|
if (requestParameters['productType'] == null) {
|
|
394
458
|
throw new runtime.RequiredError(
|
|
395
459
|
'productType',
|
|
@@ -407,13 +471,21 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
407
471
|
let urlPath = `/admin-api/product-type/{productType}/update`;
|
|
408
472
|
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
409
473
|
|
|
410
|
-
|
|
474
|
+
return {
|
|
411
475
|
path: urlPath,
|
|
412
476
|
method: 'PUT',
|
|
413
477
|
headers: headerParameters,
|
|
414
478
|
query: queryParameters,
|
|
415
479
|
body: UpdateProductTypeRequestToJSON(requestParameters['updateProductTypeRequest']),
|
|
416
|
-
}
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Auto-generated: updateProductType
|
|
485
|
+
*/
|
|
486
|
+
async updateProductTypeRaw(requestParameters: UpdateProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
487
|
+
const requestOptions = await this.updateProductTypeRequestOpts(requestParameters);
|
|
488
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
417
489
|
|
|
418
490
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
419
491
|
}
|
package/src/apis/SiteApi.ts
CHANGED
|
@@ -92,9 +92,9 @@ export interface UpdateSiteNotificationOperationRequest {
|
|
|
92
92
|
export class SiteApi extends runtime.BaseAPI {
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* Creates request options for destroySiteNotification without sending the request
|
|
96
96
|
*/
|
|
97
|
-
async
|
|
97
|
+
async destroySiteNotificationRequestOpts(requestParameters: DestroySiteNotificationRequest): Promise<runtime.RequestOpts> {
|
|
98
98
|
if (requestParameters['siteNotification'] == null) {
|
|
99
99
|
throw new runtime.RequiredError(
|
|
100
100
|
'siteNotification',
|
|
@@ -110,12 +110,20 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
110
110
|
let urlPath = `/admin-api/site/notification/{siteNotification}/delete`;
|
|
111
111
|
urlPath = urlPath.replace(`{${"siteNotification"}}`, encodeURIComponent(String(requestParameters['siteNotification'])));
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
return {
|
|
114
114
|
path: urlPath,
|
|
115
115
|
method: 'DELETE',
|
|
116
116
|
headers: headerParameters,
|
|
117
117
|
query: queryParameters,
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Auto-generated: destroySiteNotification
|
|
123
|
+
*/
|
|
124
|
+
async destroySiteNotificationRaw(requestParameters: DestroySiteNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
125
|
+
const requestOptions = await this.destroySiteNotificationRequestOpts(requestParameters);
|
|
126
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
119
127
|
|
|
120
128
|
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
121
129
|
}
|
|
@@ -129,9 +137,9 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
129
137
|
}
|
|
130
138
|
|
|
131
139
|
/**
|
|
132
|
-
*
|
|
140
|
+
* Creates request options for getAllSite without sending the request
|
|
133
141
|
*/
|
|
134
|
-
async
|
|
142
|
+
async getAllSiteRequestOpts(requestParameters: GetAllSiteRequest): Promise<runtime.RequestOpts> {
|
|
135
143
|
const queryParameters: any = {};
|
|
136
144
|
|
|
137
145
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -141,13 +149,21 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
141
149
|
|
|
142
150
|
let urlPath = `/admin-api/site/all`;
|
|
143
151
|
|
|
144
|
-
|
|
152
|
+
return {
|
|
145
153
|
path: urlPath,
|
|
146
154
|
method: 'POST',
|
|
147
155
|
headers: headerParameters,
|
|
148
156
|
query: queryParameters,
|
|
149
157
|
body: IndexSiteRequestToJSON(requestParameters['indexSiteRequest']),
|
|
150
|
-
}
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Auto-generated: getAllSite
|
|
163
|
+
*/
|
|
164
|
+
async getAllSiteRaw(requestParameters: GetAllSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SiteLiteResourceArrayResponse>> {
|
|
165
|
+
const requestOptions = await this.getAllSiteRequestOpts(requestParameters);
|
|
166
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
151
167
|
|
|
152
168
|
return new runtime.JSONApiResponse(response, (jsonValue) => SiteLiteResourceArrayResponseFromJSON(jsonValue));
|
|
153
169
|
}
|
|
@@ -161,9 +177,9 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
161
177
|
}
|
|
162
178
|
|
|
163
179
|
/**
|
|
164
|
-
*
|
|
180
|
+
* Creates request options for indexSite without sending the request
|
|
165
181
|
*/
|
|
166
|
-
async
|
|
182
|
+
async indexSiteRequestOpts(requestParameters: IndexSiteOperationRequest): Promise<runtime.RequestOpts> {
|
|
167
183
|
const queryParameters: any = {};
|
|
168
184
|
|
|
169
185
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -173,13 +189,21 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
173
189
|
|
|
174
190
|
let urlPath = `/admin-api/site/list`;
|
|
175
191
|
|
|
176
|
-
|
|
192
|
+
return {
|
|
177
193
|
path: urlPath,
|
|
178
194
|
method: 'POST',
|
|
179
195
|
headers: headerParameters,
|
|
180
196
|
query: queryParameters,
|
|
181
197
|
body: IndexSiteRequestToJSON(requestParameters['indexSiteRequest']),
|
|
182
|
-
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Auto-generated: indexSite
|
|
203
|
+
*/
|
|
204
|
+
async indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteListResourceResponse>> {
|
|
205
|
+
const requestOptions = await this.indexSiteRequestOpts(requestParameters);
|
|
206
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
183
207
|
|
|
184
208
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteListResourceResponseFromJSON(jsonValue));
|
|
185
209
|
}
|
|
@@ -193,9 +217,9 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
193
217
|
}
|
|
194
218
|
|
|
195
219
|
/**
|
|
196
|
-
*
|
|
220
|
+
* Creates request options for indexSiteNotification without sending the request
|
|
197
221
|
*/
|
|
198
|
-
async
|
|
222
|
+
async indexSiteNotificationRequestOpts(requestParameters: IndexSiteNotificationOperationRequest): Promise<runtime.RequestOpts> {
|
|
199
223
|
const queryParameters: any = {};
|
|
200
224
|
|
|
201
225
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -205,13 +229,21 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
205
229
|
|
|
206
230
|
let urlPath = `/admin-api/site/notification/list`;
|
|
207
231
|
|
|
208
|
-
|
|
232
|
+
return {
|
|
209
233
|
path: urlPath,
|
|
210
234
|
method: 'POST',
|
|
211
235
|
headers: headerParameters,
|
|
212
236
|
query: queryParameters,
|
|
213
237
|
body: IndexSiteNotificationRequestToJSON(requestParameters['indexSiteNotificationRequest']),
|
|
214
|
-
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Auto-generated: indexSiteNotification
|
|
243
|
+
*/
|
|
244
|
+
async indexSiteNotificationRaw(requestParameters: IndexSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteNotificationListResourceResponse>> {
|
|
245
|
+
const requestOptions = await this.indexSiteNotificationRequestOpts(requestParameters);
|
|
246
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
215
247
|
|
|
216
248
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteNotificationListResourceResponseFromJSON(jsonValue));
|
|
217
249
|
}
|
|
@@ -225,9 +257,9 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
225
257
|
}
|
|
226
258
|
|
|
227
259
|
/**
|
|
228
|
-
*
|
|
260
|
+
* Creates request options for showSite without sending the request
|
|
229
261
|
*/
|
|
230
|
-
async
|
|
262
|
+
async showSiteRequestOpts(requestParameters: ShowSiteRequest): Promise<runtime.RequestOpts> {
|
|
231
263
|
if (requestParameters['site'] == null) {
|
|
232
264
|
throw new runtime.RequiredError(
|
|
233
265
|
'site',
|
|
@@ -243,12 +275,20 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
243
275
|
let urlPath = `/admin-api/site/{site}`;
|
|
244
276
|
urlPath = urlPath.replace(`{${"site"}}`, encodeURIComponent(String(requestParameters['site'])));
|
|
245
277
|
|
|
246
|
-
|
|
278
|
+
return {
|
|
247
279
|
path: urlPath,
|
|
248
280
|
method: 'GET',
|
|
249
281
|
headers: headerParameters,
|
|
250
282
|
query: queryParameters,
|
|
251
|
-
}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Auto-generated: showSite
|
|
288
|
+
*/
|
|
289
|
+
async showSiteRaw(requestParameters: ShowSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SiteResource>> {
|
|
290
|
+
const requestOptions = await this.showSiteRequestOpts(requestParameters);
|
|
291
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
252
292
|
|
|
253
293
|
return new runtime.JSONApiResponse(response, (jsonValue) => SiteResourceFromJSON(jsonValue));
|
|
254
294
|
}
|
|
@@ -262,9 +302,9 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
262
302
|
}
|
|
263
303
|
|
|
264
304
|
/**
|
|
265
|
-
*
|
|
305
|
+
* Creates request options for storeSiteNotification without sending the request
|
|
266
306
|
*/
|
|
267
|
-
async
|
|
307
|
+
async storeSiteNotificationRequestOpts(requestParameters: StoreSiteNotificationOperationRequest): Promise<runtime.RequestOpts> {
|
|
268
308
|
const queryParameters: any = {};
|
|
269
309
|
|
|
270
310
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -274,13 +314,21 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
274
314
|
|
|
275
315
|
let urlPath = `/admin-api/site/notification/create`;
|
|
276
316
|
|
|
277
|
-
|
|
317
|
+
return {
|
|
278
318
|
path: urlPath,
|
|
279
319
|
method: 'POST',
|
|
280
320
|
headers: headerParameters,
|
|
281
321
|
query: queryParameters,
|
|
282
322
|
body: StoreSiteNotificationRequestToJSON(requestParameters['storeSiteNotificationRequest']),
|
|
283
|
-
}
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Auto-generated: storeSiteNotification
|
|
328
|
+
*/
|
|
329
|
+
async storeSiteNotificationRaw(requestParameters: StoreSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SiteNotificationResource>> {
|
|
330
|
+
const requestOptions = await this.storeSiteNotificationRequestOpts(requestParameters);
|
|
331
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
284
332
|
|
|
285
333
|
return new runtime.JSONApiResponse(response, (jsonValue) => SiteNotificationResourceFromJSON(jsonValue));
|
|
286
334
|
}
|
|
@@ -294,9 +342,9 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
294
342
|
}
|
|
295
343
|
|
|
296
344
|
/**
|
|
297
|
-
*
|
|
345
|
+
* Creates request options for updateSite without sending the request
|
|
298
346
|
*/
|
|
299
|
-
async
|
|
347
|
+
async updateSiteRequestOpts(requestParameters: UpdateSiteOperationRequest): Promise<runtime.RequestOpts> {
|
|
300
348
|
if (requestParameters['site'] == null) {
|
|
301
349
|
throw new runtime.RequiredError(
|
|
302
350
|
'site',
|
|
@@ -314,13 +362,21 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
314
362
|
let urlPath = `/admin-api/site/{site}/update`;
|
|
315
363
|
urlPath = urlPath.replace(`{${"site"}}`, encodeURIComponent(String(requestParameters['site'])));
|
|
316
364
|
|
|
317
|
-
|
|
365
|
+
return {
|
|
318
366
|
path: urlPath,
|
|
319
367
|
method: 'PUT',
|
|
320
368
|
headers: headerParameters,
|
|
321
369
|
query: queryParameters,
|
|
322
370
|
body: UpdateSiteRequestToJSON(requestParameters['updateSiteRequest']),
|
|
323
|
-
}
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Auto-generated: updateSite
|
|
376
|
+
*/
|
|
377
|
+
async updateSiteRaw(requestParameters: UpdateSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SiteResource>> {
|
|
378
|
+
const requestOptions = await this.updateSiteRequestOpts(requestParameters);
|
|
379
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
324
380
|
|
|
325
381
|
return new runtime.JSONApiResponse(response, (jsonValue) => SiteResourceFromJSON(jsonValue));
|
|
326
382
|
}
|
|
@@ -334,9 +390,9 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
334
390
|
}
|
|
335
391
|
|
|
336
392
|
/**
|
|
337
|
-
*
|
|
393
|
+
* Creates request options for updateSiteNotification without sending the request
|
|
338
394
|
*/
|
|
339
|
-
async
|
|
395
|
+
async updateSiteNotificationRequestOpts(requestParameters: UpdateSiteNotificationOperationRequest): Promise<runtime.RequestOpts> {
|
|
340
396
|
if (requestParameters['siteNotification'] == null) {
|
|
341
397
|
throw new runtime.RequiredError(
|
|
342
398
|
'siteNotification',
|
|
@@ -354,13 +410,21 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
354
410
|
let urlPath = `/admin-api/site/notification/{siteNotification}/update`;
|
|
355
411
|
urlPath = urlPath.replace(`{${"siteNotification"}}`, encodeURIComponent(String(requestParameters['siteNotification'])));
|
|
356
412
|
|
|
357
|
-
|
|
413
|
+
return {
|
|
358
414
|
path: urlPath,
|
|
359
415
|
method: 'PUT',
|
|
360
416
|
headers: headerParameters,
|
|
361
417
|
query: queryParameters,
|
|
362
418
|
body: UpdateSiteNotificationRequestToJSON(requestParameters['updateSiteNotificationRequest']),
|
|
363
|
-
}
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Auto-generated: updateSiteNotification
|
|
424
|
+
*/
|
|
425
|
+
async updateSiteNotificationRaw(requestParameters: UpdateSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SiteNotificationResource>> {
|
|
426
|
+
const requestOptions = await this.updateSiteNotificationRequestOpts(requestParameters);
|
|
427
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
364
428
|
|
|
365
429
|
return new runtime.JSONApiResponse(response, (jsonValue) => SiteNotificationResourceFromJSON(jsonValue));
|
|
366
430
|
}
|