@digital8/lighting-illusions-ts-sdk 0.0.464 → 0.0.465
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/FILES +2 -2
- package/README.md +10 -4
- package/dist/apis/ProductApi.d.ts +73 -1
- package/dist/apis/ProductApi.js +292 -0
- package/dist/apis/TagApi.d.ts +5 -5
- package/dist/apis/TagApi.js +1 -1
- package/dist/models/AssetLiteResource.d.ts +6 -0
- package/dist/models/AssetLiteResource.js +4 -0
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductChildRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/OverlayTemplateListResource.d.ts +7 -0
- package/dist/models/OverlayTemplateListResource.js +5 -0
- package/dist/models/ProductChildListResource.d.ts +12 -0
- package/dist/models/ProductChildListResource.js +8 -0
- package/dist/models/SiteNotificationListResource.d.ts +7 -0
- package/dist/models/SiteNotificationListResource.js +5 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/AssetLiteResource.md +2 -0
- package/docs/{LinkProductChildrenTagRequest.md → AttachAccessoriesProductChildRequest.md} +4 -4
- package/docs/OverlayTemplateListResource.md +2 -0
- package/docs/ProductApi.md +414 -0
- package/docs/ProductChildListResource.md +4 -0
- package/docs/SiteNotificationListResource.md +2 -0
- package/docs/TagApi.md +7 -7
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +283 -0
- package/src/apis/TagApi.ts +8 -8
- package/src/models/AssetLiteResource.ts +9 -0
- package/src/models/AttachAccessoriesProductChildRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/OverlayTemplateListResource.ts +17 -0
- package/src/models/ProductChildListResource.ts +18 -0
- package/src/models/SiteNotificationListResource.ts +17 -0
- package/src/models/index.ts +1 -1
- package/dist/models/LinkProductChildrenTagRequest.d.ts +0 -32
- package/dist/models/LinkProductChildrenTagRequest.js +0 -51
- package/src/models/LinkProductChildrenTagRequest.ts +0 -66
package/src/apis/ProductApi.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AssetResourceArrayResponse,
|
|
19
|
+
AttachAccessoriesProductChildRequest,
|
|
19
20
|
GenericResponse,
|
|
20
21
|
GetAllProductChildRequest,
|
|
21
22
|
GetAllProductRequest,
|
|
@@ -35,6 +36,8 @@ import type {
|
|
|
35
36
|
import {
|
|
36
37
|
AssetResourceArrayResponseFromJSON,
|
|
37
38
|
AssetResourceArrayResponseToJSON,
|
|
39
|
+
AttachAccessoriesProductChildRequestFromJSON,
|
|
40
|
+
AttachAccessoriesProductChildRequestToJSON,
|
|
38
41
|
GenericResponseFromJSON,
|
|
39
42
|
GenericResponseToJSON,
|
|
40
43
|
GetAllProductChildRequestFromJSON,
|
|
@@ -67,6 +70,16 @@ import {
|
|
|
67
70
|
UpdateProductRequestToJSON,
|
|
68
71
|
} from '../models/index';
|
|
69
72
|
|
|
73
|
+
export interface AttachAccessoriesProductChildOperationRequest {
|
|
74
|
+
productChild: number;
|
|
75
|
+
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface AttachCompatibleProductsProductChildRequest {
|
|
79
|
+
productChild: number;
|
|
80
|
+
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
81
|
+
}
|
|
82
|
+
|
|
70
83
|
export interface DestroyProductRequest {
|
|
71
84
|
product: number;
|
|
72
85
|
}
|
|
@@ -75,6 +88,21 @@ export interface DestroyProductChildRequest {
|
|
|
75
88
|
productChild: number;
|
|
76
89
|
}
|
|
77
90
|
|
|
91
|
+
export interface DetachAccessoryProductChildRequest {
|
|
92
|
+
productChild: number;
|
|
93
|
+
accessory: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface DetachCompatibleProductProductChildRequest {
|
|
97
|
+
productChild: number;
|
|
98
|
+
compatibleProduct: number;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface GetAccessoriesProductChildRequest {
|
|
102
|
+
productChild: number;
|
|
103
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
104
|
+
}
|
|
105
|
+
|
|
78
106
|
export interface GetAllProductOperationRequest {
|
|
79
107
|
getAllProductRequest?: GetAllProductRequest;
|
|
80
108
|
}
|
|
@@ -83,6 +111,11 @@ export interface GetAllProductChildOperationRequest {
|
|
|
83
111
|
getAllProductChildRequest?: GetAllProductChildRequest;
|
|
84
112
|
}
|
|
85
113
|
|
|
114
|
+
export interface GetCompatibleProductsProductChildRequest {
|
|
115
|
+
productChild: number;
|
|
116
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
117
|
+
}
|
|
118
|
+
|
|
86
119
|
export interface IndexProductOperationRequest {
|
|
87
120
|
indexProductRequest?: IndexProductRequest;
|
|
88
121
|
}
|
|
@@ -126,6 +159,86 @@ export interface UpdateProductChildOperationRequest {
|
|
|
126
159
|
*/
|
|
127
160
|
export class ProductApi extends runtime.BaseAPI {
|
|
128
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Auto-generated: attachAccessoriesProductChild
|
|
164
|
+
*/
|
|
165
|
+
async attachAccessoriesProductChildRaw(requestParameters: AttachAccessoriesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
|
|
166
|
+
if (requestParameters['productChild'] == null) {
|
|
167
|
+
throw new runtime.RequiredError(
|
|
168
|
+
'productChild',
|
|
169
|
+
'Required parameter "productChild" was null or undefined when calling attachAccessoriesProductChild().'
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const queryParameters: any = {};
|
|
174
|
+
|
|
175
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
176
|
+
|
|
177
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
let urlPath = `/admin-api/product/children/{productChild}/accessory/attach`;
|
|
181
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
182
|
+
|
|
183
|
+
const response = await this.request({
|
|
184
|
+
path: urlPath,
|
|
185
|
+
method: 'POST',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
body: AttachAccessoriesProductChildRequestToJSON(requestParameters['attachAccessoriesProductChildRequest']),
|
|
189
|
+
}, initOverrides);
|
|
190
|
+
|
|
191
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Auto-generated: attachAccessoriesProductChild
|
|
196
|
+
*/
|
|
197
|
+
async attachAccessoriesProductChild(requestParameters: AttachAccessoriesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
198
|
+
const response = await this.attachAccessoriesProductChildRaw(requestParameters, initOverrides);
|
|
199
|
+
return await response.value();
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Auto-generated: attachCompatibleProductsProductChild
|
|
204
|
+
*/
|
|
205
|
+
async attachCompatibleProductsProductChildRaw(requestParameters: AttachCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
|
|
206
|
+
if (requestParameters['productChild'] == null) {
|
|
207
|
+
throw new runtime.RequiredError(
|
|
208
|
+
'productChild',
|
|
209
|
+
'Required parameter "productChild" was null or undefined when calling attachCompatibleProductsProductChild().'
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const queryParameters: any = {};
|
|
214
|
+
|
|
215
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
216
|
+
|
|
217
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
let urlPath = `/admin-api/product/children/{productChild}/compatible-product/attach`;
|
|
221
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
222
|
+
|
|
223
|
+
const response = await this.request({
|
|
224
|
+
path: urlPath,
|
|
225
|
+
method: 'POST',
|
|
226
|
+
headers: headerParameters,
|
|
227
|
+
query: queryParameters,
|
|
228
|
+
body: AttachAccessoriesProductChildRequestToJSON(requestParameters['attachAccessoriesProductChildRequest']),
|
|
229
|
+
}, initOverrides);
|
|
230
|
+
|
|
231
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Auto-generated: attachCompatibleProductsProductChild
|
|
236
|
+
*/
|
|
237
|
+
async attachCompatibleProductsProductChild(requestParameters: AttachCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
238
|
+
const response = await this.attachCompatibleProductsProductChildRaw(requestParameters, initOverrides);
|
|
239
|
+
return await response.value();
|
|
240
|
+
}
|
|
241
|
+
|
|
129
242
|
/**
|
|
130
243
|
* Auto-generated: destroyProduct
|
|
131
244
|
*/
|
|
@@ -200,6 +313,136 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
200
313
|
return await response.value();
|
|
201
314
|
}
|
|
202
315
|
|
|
316
|
+
/**
|
|
317
|
+
* Auto-generated: detachAccessoryProductChild
|
|
318
|
+
*/
|
|
319
|
+
async detachAccessoryProductChildRaw(requestParameters: DetachAccessoryProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
|
|
320
|
+
if (requestParameters['productChild'] == null) {
|
|
321
|
+
throw new runtime.RequiredError(
|
|
322
|
+
'productChild',
|
|
323
|
+
'Required parameter "productChild" was null or undefined when calling detachAccessoryProductChild().'
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
if (requestParameters['accessory'] == null) {
|
|
328
|
+
throw new runtime.RequiredError(
|
|
329
|
+
'accessory',
|
|
330
|
+
'Required parameter "accessory" was null or undefined when calling detachAccessoryProductChild().'
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
const queryParameters: any = {};
|
|
335
|
+
|
|
336
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
let urlPath = `/admin-api/product/children/{productChild}/accessory/detach/{accessory}`;
|
|
340
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
341
|
+
urlPath = urlPath.replace(`{${"accessory"}}`, encodeURIComponent(String(requestParameters['accessory'])));
|
|
342
|
+
|
|
343
|
+
const response = await this.request({
|
|
344
|
+
path: urlPath,
|
|
345
|
+
method: 'DELETE',
|
|
346
|
+
headers: headerParameters,
|
|
347
|
+
query: queryParameters,
|
|
348
|
+
}, initOverrides);
|
|
349
|
+
|
|
350
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Auto-generated: detachAccessoryProductChild
|
|
355
|
+
*/
|
|
356
|
+
async detachAccessoryProductChild(requestParameters: DetachAccessoryProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
357
|
+
const response = await this.detachAccessoryProductChildRaw(requestParameters, initOverrides);
|
|
358
|
+
return await response.value();
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Auto-generated: detachCompatibleProductProductChild
|
|
363
|
+
*/
|
|
364
|
+
async detachCompatibleProductProductChildRaw(requestParameters: DetachCompatibleProductProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
|
|
365
|
+
if (requestParameters['productChild'] == null) {
|
|
366
|
+
throw new runtime.RequiredError(
|
|
367
|
+
'productChild',
|
|
368
|
+
'Required parameter "productChild" was null or undefined when calling detachCompatibleProductProductChild().'
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (requestParameters['compatibleProduct'] == null) {
|
|
373
|
+
throw new runtime.RequiredError(
|
|
374
|
+
'compatibleProduct',
|
|
375
|
+
'Required parameter "compatibleProduct" was null or undefined when calling detachCompatibleProductProductChild().'
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
const queryParameters: any = {};
|
|
380
|
+
|
|
381
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
let urlPath = `/admin-api/product/children/{productChild}/compatible-product/detach/{compatibleProduct}`;
|
|
385
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
386
|
+
urlPath = urlPath.replace(`{${"compatibleProduct"}}`, encodeURIComponent(String(requestParameters['compatibleProduct'])));
|
|
387
|
+
|
|
388
|
+
const response = await this.request({
|
|
389
|
+
path: urlPath,
|
|
390
|
+
method: 'DELETE',
|
|
391
|
+
headers: headerParameters,
|
|
392
|
+
query: queryParameters,
|
|
393
|
+
}, initOverrides);
|
|
394
|
+
|
|
395
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Auto-generated: detachCompatibleProductProductChild
|
|
400
|
+
*/
|
|
401
|
+
async detachCompatibleProductProductChild(requestParameters: DetachCompatibleProductProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
402
|
+
const response = await this.detachCompatibleProductProductChildRaw(requestParameters, initOverrides);
|
|
403
|
+
return await response.value();
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Auto-generated: getAccessoriesProductChild
|
|
408
|
+
*/
|
|
409
|
+
async getAccessoriesProductChildRaw(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
|
|
410
|
+
if (requestParameters['productChild'] == null) {
|
|
411
|
+
throw new runtime.RequiredError(
|
|
412
|
+
'productChild',
|
|
413
|
+
'Required parameter "productChild" was null or undefined when calling getAccessoriesProductChild().'
|
|
414
|
+
);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
const queryParameters: any = {};
|
|
418
|
+
|
|
419
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
420
|
+
|
|
421
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
let urlPath = `/admin-api/product/children/{productChild}/accessory/list`;
|
|
425
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
426
|
+
|
|
427
|
+
const response = await this.request({
|
|
428
|
+
path: urlPath,
|
|
429
|
+
method: 'POST',
|
|
430
|
+
headers: headerParameters,
|
|
431
|
+
query: queryParameters,
|
|
432
|
+
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
433
|
+
}, initOverrides);
|
|
434
|
+
|
|
435
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Auto-generated: getAccessoriesProductChild
|
|
440
|
+
*/
|
|
441
|
+
async getAccessoriesProductChild(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
442
|
+
const response = await this.getAccessoriesProductChildRaw(requestParameters, initOverrides);
|
|
443
|
+
return await response.value();
|
|
444
|
+
}
|
|
445
|
+
|
|
203
446
|
/**
|
|
204
447
|
* Auto-generated: getAllProduct
|
|
205
448
|
*/
|
|
@@ -264,6 +507,46 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
264
507
|
return await response.value();
|
|
265
508
|
}
|
|
266
509
|
|
|
510
|
+
/**
|
|
511
|
+
* Auto-generated: getCompatibleProductsProductChild
|
|
512
|
+
*/
|
|
513
|
+
async getCompatibleProductsProductChildRaw(requestParameters: GetCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
|
|
514
|
+
if (requestParameters['productChild'] == null) {
|
|
515
|
+
throw new runtime.RequiredError(
|
|
516
|
+
'productChild',
|
|
517
|
+
'Required parameter "productChild" was null or undefined when calling getCompatibleProductsProductChild().'
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
const queryParameters: any = {};
|
|
522
|
+
|
|
523
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
524
|
+
|
|
525
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
let urlPath = `/admin-api/product/children/{productChild}/compatible-product/list`;
|
|
529
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
530
|
+
|
|
531
|
+
const response = await this.request({
|
|
532
|
+
path: urlPath,
|
|
533
|
+
method: 'POST',
|
|
534
|
+
headers: headerParameters,
|
|
535
|
+
query: queryParameters,
|
|
536
|
+
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
537
|
+
}, initOverrides);
|
|
538
|
+
|
|
539
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Auto-generated: getCompatibleProductsProductChild
|
|
544
|
+
*/
|
|
545
|
+
async getCompatibleProductsProductChild(requestParameters: GetCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
546
|
+
const response = await this.getCompatibleProductsProductChildRaw(requestParameters, initOverrides);
|
|
547
|
+
return await response.value();
|
|
548
|
+
}
|
|
549
|
+
|
|
267
550
|
/**
|
|
268
551
|
* Auto-generated: indexProduct
|
|
269
552
|
*/
|
package/src/apis/TagApi.ts
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AttachAccessoriesProductChildRequest,
|
|
18
19
|
GenericResponse,
|
|
19
20
|
IndexTagRequest,
|
|
20
|
-
LinkProductChildrenTagRequest,
|
|
21
21
|
PaginatedTagListResourceResponse,
|
|
22
22
|
ProductChildRelationResourceArrayResponse,
|
|
23
23
|
StoreTagRequest,
|
|
@@ -26,12 +26,12 @@ import type {
|
|
|
26
26
|
UpdateTagRequest,
|
|
27
27
|
} from '../models/index';
|
|
28
28
|
import {
|
|
29
|
+
AttachAccessoriesProductChildRequestFromJSON,
|
|
30
|
+
AttachAccessoriesProductChildRequestToJSON,
|
|
29
31
|
GenericResponseFromJSON,
|
|
30
32
|
GenericResponseToJSON,
|
|
31
33
|
IndexTagRequestFromJSON,
|
|
32
34
|
IndexTagRequestToJSON,
|
|
33
|
-
LinkProductChildrenTagRequestFromJSON,
|
|
34
|
-
LinkProductChildrenTagRequestToJSON,
|
|
35
35
|
PaginatedTagListResourceResponseFromJSON,
|
|
36
36
|
PaginatedTagListResourceResponseToJSON,
|
|
37
37
|
ProductChildRelationResourceArrayResponseFromJSON,
|
|
@@ -58,9 +58,9 @@ export interface IndexTagOperationRequest {
|
|
|
58
58
|
indexTagRequest?: IndexTagRequest;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export interface
|
|
61
|
+
export interface LinkProductChildrenTagRequest {
|
|
62
62
|
tag: number;
|
|
63
|
-
|
|
63
|
+
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export interface ShowTagRequest {
|
|
@@ -190,7 +190,7 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
190
190
|
/**
|
|
191
191
|
* Auto-generated: linkProductChildrenTag
|
|
192
192
|
*/
|
|
193
|
-
async linkProductChildrenTagRaw(requestParameters:
|
|
193
|
+
async linkProductChildrenTagRaw(requestParameters: LinkProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
194
194
|
if (requestParameters['tag'] == null) {
|
|
195
195
|
throw new runtime.RequiredError(
|
|
196
196
|
'tag',
|
|
@@ -213,7 +213,7 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
213
213
|
method: 'POST',
|
|
214
214
|
headers: headerParameters,
|
|
215
215
|
query: queryParameters,
|
|
216
|
-
body:
|
|
216
|
+
body: AttachAccessoriesProductChildRequestToJSON(requestParameters['attachAccessoriesProductChildRequest']),
|
|
217
217
|
}, initOverrides);
|
|
218
218
|
|
|
219
219
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
@@ -222,7 +222,7 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
222
222
|
/**
|
|
223
223
|
* Auto-generated: linkProductChildrenTag
|
|
224
224
|
*/
|
|
225
|
-
async linkProductChildrenTag(requestParameters:
|
|
225
|
+
async linkProductChildrenTag(requestParameters: LinkProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
|
|
226
226
|
const response = await this.linkProductChildrenTagRaw(requestParameters, initOverrides);
|
|
227
227
|
return await response.value();
|
|
228
228
|
}
|
|
@@ -37,6 +37,12 @@ export interface AssetLiteResource {
|
|
|
37
37
|
* @memberof AssetLiteResource
|
|
38
38
|
*/
|
|
39
39
|
fileName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AssetLiteResource
|
|
44
|
+
*/
|
|
45
|
+
altText: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -46,6 +52,7 @@ export function instanceOfAssetLiteResource(value: object): value is AssetLiteRe
|
|
|
46
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
53
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
48
54
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
55
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
49
56
|
return true;
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -62,6 +69,7 @@ export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
62
69
|
'id': json['id'],
|
|
63
70
|
'filePath': json['filePath'],
|
|
64
71
|
'fileName': json['fileName'],
|
|
72
|
+
'altText': json['altText'],
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -79,6 +87,7 @@ export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, i
|
|
|
79
87
|
'id': value['id'],
|
|
80
88
|
'filePath': value['filePath'],
|
|
81
89
|
'fileName': value['fileName'],
|
|
90
|
+
'altText': value['altText'],
|
|
82
91
|
};
|
|
83
92
|
}
|
|
84
93
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttachAccessoriesProductChildRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachAccessoriesProductChildRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof AttachAccessoriesProductChildRequest
|
|
26
|
+
*/
|
|
27
|
+
productChildIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AttachAccessoriesProductChildRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAttachAccessoriesProductChildRequest(value: object): value is AttachAccessoriesProductChildRequest {
|
|
34
|
+
if (!('productChildIds' in value) || value['productChildIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AttachAccessoriesProductChildRequestFromJSON(json: any): AttachAccessoriesProductChildRequest {
|
|
39
|
+
return AttachAccessoriesProductChildRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AttachAccessoriesProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAccessoriesProductChildRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'productChildIds': json['product_child_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AttachAccessoriesProductChildRequestToJSON(json: any): AttachAccessoriesProductChildRequest {
|
|
53
|
+
return AttachAccessoriesProductChildRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AttachAccessoriesProductChildRequestToJSONTyped(value?: AttachAccessoriesProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'product_child_ids': value['productChildIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
SiteLiteResourceFromJSON,
|
|
19
|
+
SiteLiteResourceFromJSONTyped,
|
|
20
|
+
SiteLiteResourceToJSON,
|
|
21
|
+
SiteLiteResourceToJSONTyped,
|
|
22
|
+
} from './SiteLiteResource';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -31,6 +39,12 @@ export interface OverlayTemplateListResource {
|
|
|
31
39
|
* @memberof OverlayTemplateListResource
|
|
32
40
|
*/
|
|
33
41
|
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<SiteLiteResource>}
|
|
45
|
+
* @memberof OverlayTemplateListResource
|
|
46
|
+
*/
|
|
47
|
+
sites: Array<SiteLiteResource> | null;
|
|
34
48
|
}
|
|
35
49
|
|
|
36
50
|
/**
|
|
@@ -39,6 +53,7 @@ export interface OverlayTemplateListResource {
|
|
|
39
53
|
export function instanceOfOverlayTemplateListResource(value: object): value is OverlayTemplateListResource {
|
|
40
54
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
55
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
56
|
+
if (!('sites' in value) || value['sites'] === undefined) return false;
|
|
42
57
|
return true;
|
|
43
58
|
}
|
|
44
59
|
|
|
@@ -54,6 +69,7 @@ export function OverlayTemplateListResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
54
69
|
|
|
55
70
|
'id': json['id'],
|
|
56
71
|
'name': json['name'],
|
|
72
|
+
'sites': (json['sites'] == null ? null : (json['sites'] as Array<any>).map(SiteLiteResourceFromJSON)),
|
|
57
73
|
};
|
|
58
74
|
}
|
|
59
75
|
|
|
@@ -70,6 +86,7 @@ export function OverlayTemplateListResourceToJSONTyped(value?: OverlayTemplateLi
|
|
|
70
86
|
|
|
71
87
|
'id': value['id'],
|
|
72
88
|
'name': value['name'],
|
|
89
|
+
'sites': (value['sites'] == null ? null : (value['sites'] as Array<any>).map(SiteLiteResourceToJSON)),
|
|
73
90
|
};
|
|
74
91
|
}
|
|
75
92
|
|
|
@@ -45,6 +45,18 @@ export interface ProductChildListResource {
|
|
|
45
45
|
* @memberof ProductChildListResource
|
|
46
46
|
*/
|
|
47
47
|
name: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ProductChildListResource
|
|
52
|
+
*/
|
|
53
|
+
model: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ProductChildListResource
|
|
58
|
+
*/
|
|
59
|
+
stock: number;
|
|
48
60
|
/**
|
|
49
61
|
*
|
|
50
62
|
* @type {AssetLiteResource}
|
|
@@ -60,6 +72,8 @@ export function instanceOfProductChildListResource(value: object): value is Prod
|
|
|
60
72
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
61
73
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
62
74
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
75
|
+
if (!('model' in value) || value['model'] === undefined) return false;
|
|
76
|
+
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
63
77
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
64
78
|
return true;
|
|
65
79
|
}
|
|
@@ -77,6 +91,8 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
77
91
|
'id': json['id'],
|
|
78
92
|
'sku': json['sku'],
|
|
79
93
|
'name': json['name'],
|
|
94
|
+
'model': json['model'],
|
|
95
|
+
'stock': json['stock'],
|
|
80
96
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
81
97
|
};
|
|
82
98
|
}
|
|
@@ -95,6 +111,8 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
|
|
|
95
111
|
'id': value['id'],
|
|
96
112
|
'sku': value['sku'],
|
|
97
113
|
'name': value['name'],
|
|
114
|
+
'model': value['model'],
|
|
115
|
+
'stock': value['stock'],
|
|
98
116
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
99
117
|
};
|
|
100
118
|
}
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
SiteLiteResourceFromJSON,
|
|
19
|
+
SiteLiteResourceFromJSONTyped,
|
|
20
|
+
SiteLiteResourceToJSON,
|
|
21
|
+
SiteLiteResourceToJSONTyped,
|
|
22
|
+
} from './SiteLiteResource';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -43,6 +51,12 @@ export interface SiteNotificationListResource {
|
|
|
43
51
|
* @memberof SiteNotificationListResource
|
|
44
52
|
*/
|
|
45
53
|
isActive: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {SiteLiteResource}
|
|
57
|
+
* @memberof SiteNotificationListResource
|
|
58
|
+
*/
|
|
59
|
+
sites: SiteLiteResource | null;
|
|
46
60
|
}
|
|
47
61
|
|
|
48
62
|
/**
|
|
@@ -51,6 +65,7 @@ export interface SiteNotificationListResource {
|
|
|
51
65
|
export function instanceOfSiteNotificationListResource(value: object): value is SiteNotificationListResource {
|
|
52
66
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
67
|
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
68
|
+
if (!('sites' in value) || value['sites'] === undefined) return false;
|
|
54
69
|
return true;
|
|
55
70
|
}
|
|
56
71
|
|
|
@@ -68,6 +83,7 @@ export function SiteNotificationListResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
68
83
|
'heading': json['heading'] == null ? undefined : json['heading'],
|
|
69
84
|
'type': json['type'] == null ? undefined : json['type'],
|
|
70
85
|
'isActive': json['isActive'],
|
|
86
|
+
'sites': SiteLiteResourceFromJSON(json['sites']),
|
|
71
87
|
};
|
|
72
88
|
}
|
|
73
89
|
|
|
@@ -86,6 +102,7 @@ export function SiteNotificationListResourceToJSONTyped(value?: SiteNotification
|
|
|
86
102
|
'heading': value['heading'],
|
|
87
103
|
'type': value['type'],
|
|
88
104
|
'isActive': value['isActive'],
|
|
105
|
+
'sites': SiteLiteResourceToJSON(value['sites']),
|
|
89
106
|
};
|
|
90
107
|
}
|
|
91
108
|
|