@digital8/lighting-illusions-ts-sdk 0.0.1349 → 0.0.1351
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 +0 -2
- package/README.md +3 -4
- package/dist/apis/ProductApi.d.ts +6 -6
- package/dist/apis/ProductApi.js +3 -2
- package/dist/apis/ProductCategoryApi.d.ts +15 -1
- package/dist/apis/ProductCategoryApi.js +45 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/ProductApi.md +8 -8
- package/docs/ProductCategoryApi.md +47 -5
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +9 -11
- package/src/apis/ProductCategoryApi.ts +75 -4
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/index.ts +0 -1
- package/dist/models/ShowAssetsProductChildRequest.d.ts +0 -32
- package/dist/models/ShowAssetsProductChildRequest.js +0 -49
- package/docs/ShowAssetsProductChildRequest.md +0 -34
- package/src/models/ShowAssetsProductChildRequest.ts +0 -65
package/.openapi-generator/FILES
CHANGED
|
@@ -233,7 +233,6 @@ docs/ProductTypeResource.md
|
|
|
233
233
|
docs/ProductTypeResourceArrayResponse.md
|
|
234
234
|
docs/SEOResource.md
|
|
235
235
|
docs/SEOResourceArrayResponse.md
|
|
236
|
-
docs/ShowAssetsProductChildRequest.md
|
|
237
236
|
docs/ShowAttributesProductChildRequest.md
|
|
238
237
|
docs/SiteApi.md
|
|
239
238
|
docs/SiteConfigResource.md
|
|
@@ -553,7 +552,6 @@ src/models/ProductTypeResource.ts
|
|
|
553
552
|
src/models/ProductTypeResourceArrayResponse.ts
|
|
554
553
|
src/models/SEOResource.ts
|
|
555
554
|
src/models/SEOResourceArrayResponse.ts
|
|
556
|
-
src/models/ShowAssetsProductChildRequest.ts
|
|
557
555
|
src/models/ShowAttributesProductChildRequest.ts
|
|
558
556
|
src/models/SiteConfigResource.ts
|
|
559
557
|
src/models/SiteConfigResourceArrayResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1351
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -118,7 +118,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
118
118
|
*ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
|
|
119
119
|
*ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
|
|
120
120
|
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
|
|
121
|
-
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#
|
|
121
|
+
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
|
|
122
122
|
*ProductApi* | [**showAttributesProductChild**](docs/ProductApi.md#showattributesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild
|
|
123
123
|
*ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
|
|
124
124
|
*ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
|
|
@@ -396,7 +396,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
396
396
|
- [ProductTypeResourceArrayResponse](docs/ProductTypeResourceArrayResponse.md)
|
|
397
397
|
- [SEOResource](docs/SEOResource.md)
|
|
398
398
|
- [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
|
|
399
|
-
- [ShowAssetsProductChildRequest](docs/ShowAssetsProductChildRequest.md)
|
|
400
399
|
- [ShowAttributesProductChildRequest](docs/ShowAttributesProductChildRequest.md)
|
|
401
400
|
- [SiteConfigResource](docs/SiteConfigResource.md)
|
|
402
401
|
- [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
|
|
@@ -489,7 +488,7 @@ and is automatically generated by the
|
|
|
489
488
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
490
489
|
|
|
491
490
|
- API version: `1.0.0`
|
|
492
|
-
- Package version: `0.0.
|
|
491
|
+
- Package version: `0.0.1351`
|
|
493
492
|
- Generator version: `7.20.0`
|
|
494
493
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
495
494
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildAttributeGroupedResource, ProductChildListResourceArrayResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource,
|
|
13
|
+
import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildAttributeGroupedResource, ProductChildListResourceArrayResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, ShowAttributesProductChildRequest, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
|
|
14
14
|
export interface AttachAccessoriesProductChildOperationRequest {
|
|
15
15
|
productChild: number;
|
|
16
16
|
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
@@ -61,9 +61,9 @@ export interface IndexProductOperationRequest {
|
|
|
61
61
|
export interface IndexProductChildOperationRequest {
|
|
62
62
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
63
63
|
}
|
|
64
|
-
export interface
|
|
64
|
+
export interface ShowAssetsProductChildRequest {
|
|
65
65
|
productChild: number;
|
|
66
|
-
|
|
66
|
+
overlayTemplateId?: number;
|
|
67
67
|
}
|
|
68
68
|
export interface ShowAttributesProductChildOperationRequest {
|
|
69
69
|
productChild: number;
|
|
@@ -264,15 +264,15 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
264
264
|
/**
|
|
265
265
|
* Creates request options for showAssetsProductChild without sending the request
|
|
266
266
|
*/
|
|
267
|
-
showAssetsProductChildRequestOpts(requestParameters:
|
|
267
|
+
showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts>;
|
|
268
268
|
/**
|
|
269
269
|
* Auto-generated: showAssetsProductChild
|
|
270
270
|
*/
|
|
271
|
-
showAssetsProductChildRaw(requestParameters:
|
|
271
|
+
showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>>;
|
|
272
272
|
/**
|
|
273
273
|
* Auto-generated: showAssetsProductChild
|
|
274
274
|
*/
|
|
275
|
-
showAssetsProductChild(requestParameters:
|
|
275
|
+
showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse>;
|
|
276
276
|
/**
|
|
277
277
|
* Creates request options for showAttributesProductChild without sending the request
|
|
278
278
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -928,8 +928,10 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
928
928
|
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling showAssetsProductChild().');
|
|
929
929
|
}
|
|
930
930
|
queryParameters = {};
|
|
931
|
+
if (requestParameters['overlayTemplateId'] != null) {
|
|
932
|
+
queryParameters['overlay_template_id'] = requestParameters['overlayTemplateId'];
|
|
933
|
+
}
|
|
931
934
|
headerParameters = {};
|
|
932
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
933
935
|
urlPath = "/admin-api/product/children/{productChild}/assets";
|
|
934
936
|
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
935
937
|
return [2 /*return*/, {
|
|
@@ -937,7 +939,6 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
937
939
|
method: 'GET',
|
|
938
940
|
headers: headerParameters,
|
|
939
941
|
query: queryParameters,
|
|
940
|
-
body: (0, index_1.ShowAssetsProductChildRequestToJSON)(requestParameters['showAssetsProductChildRequest']),
|
|
941
942
|
}];
|
|
942
943
|
});
|
|
943
944
|
});
|
|
@@ -34,7 +34,21 @@ export interface GetAllProductCategoryOperationRequest {
|
|
|
34
34
|
}
|
|
35
35
|
export interface GetChildrenProductCategoryRequest {
|
|
36
36
|
productCategory: number;
|
|
37
|
-
|
|
37
|
+
search?: string;
|
|
38
|
+
sortBy?: string;
|
|
39
|
+
sortDirection?: string;
|
|
40
|
+
perPage?: number;
|
|
41
|
+
page?: number;
|
|
42
|
+
siteId?: string;
|
|
43
|
+
parentId?: string;
|
|
44
|
+
isDisabled?: string;
|
|
45
|
+
isAutomated?: string;
|
|
46
|
+
hideFromFrontend?: string;
|
|
47
|
+
relatedId?: number;
|
|
48
|
+
relatedType?: string;
|
|
49
|
+
includesRelations?: boolean;
|
|
50
|
+
isParent?: boolean;
|
|
51
|
+
isEmpty?: boolean;
|
|
38
52
|
}
|
|
39
53
|
export interface GetHierarchyProductCategoryOperationRequest {
|
|
40
54
|
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
@@ -445,8 +445,52 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
445
445
|
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling getChildrenProductCategory().');
|
|
446
446
|
}
|
|
447
447
|
queryParameters = {};
|
|
448
|
+
if (requestParameters['search'] != null) {
|
|
449
|
+
queryParameters['search'] = requestParameters['search'];
|
|
450
|
+
}
|
|
451
|
+
if (requestParameters['sortBy'] != null) {
|
|
452
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
453
|
+
}
|
|
454
|
+
if (requestParameters['sortDirection'] != null) {
|
|
455
|
+
queryParameters['sortDirection'] = requestParameters['sortDirection'];
|
|
456
|
+
}
|
|
457
|
+
if (requestParameters['perPage'] != null) {
|
|
458
|
+
queryParameters['per_page'] = requestParameters['perPage'];
|
|
459
|
+
}
|
|
460
|
+
if (requestParameters['page'] != null) {
|
|
461
|
+
queryParameters['page'] = requestParameters['page'];
|
|
462
|
+
}
|
|
463
|
+
if (requestParameters['siteId'] != null) {
|
|
464
|
+
queryParameters['site_id'] = requestParameters['siteId'];
|
|
465
|
+
}
|
|
466
|
+
if (requestParameters['parentId'] != null) {
|
|
467
|
+
queryParameters['parent_id'] = requestParameters['parentId'];
|
|
468
|
+
}
|
|
469
|
+
if (requestParameters['isDisabled'] != null) {
|
|
470
|
+
queryParameters['is_disabled'] = requestParameters['isDisabled'];
|
|
471
|
+
}
|
|
472
|
+
if (requestParameters['isAutomated'] != null) {
|
|
473
|
+
queryParameters['is_automated'] = requestParameters['isAutomated'];
|
|
474
|
+
}
|
|
475
|
+
if (requestParameters['hideFromFrontend'] != null) {
|
|
476
|
+
queryParameters['hide_from_frontend'] = requestParameters['hideFromFrontend'];
|
|
477
|
+
}
|
|
478
|
+
if (requestParameters['relatedId'] != null) {
|
|
479
|
+
queryParameters['related_id'] = requestParameters['relatedId'];
|
|
480
|
+
}
|
|
481
|
+
if (requestParameters['relatedType'] != null) {
|
|
482
|
+
queryParameters['related_type'] = requestParameters['relatedType'];
|
|
483
|
+
}
|
|
484
|
+
if (requestParameters['includesRelations'] != null) {
|
|
485
|
+
queryParameters['includes_relations'] = requestParameters['includesRelations'];
|
|
486
|
+
}
|
|
487
|
+
if (requestParameters['isParent'] != null) {
|
|
488
|
+
queryParameters['is_parent'] = requestParameters['isParent'];
|
|
489
|
+
}
|
|
490
|
+
if (requestParameters['isEmpty'] != null) {
|
|
491
|
+
queryParameters['is_empty'] = requestParameters['isEmpty'];
|
|
492
|
+
}
|
|
448
493
|
headerParameters = {};
|
|
449
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
450
494
|
urlPath = "/admin-api/product-category/{productCategory}/children";
|
|
451
495
|
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
452
496
|
return [2 /*return*/, {
|
|
@@ -454,7 +498,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
454
498
|
method: 'GET',
|
|
455
499
|
headers: headerParameters,
|
|
456
500
|
query: queryParameters,
|
|
457
|
-
body: (0, index_1.IndexProductCategoryRequestToJSON)(requestParameters['indexProductCategoryRequest']),
|
|
458
501
|
}];
|
|
459
502
|
});
|
|
460
503
|
});
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -218,7 +218,6 @@ export * from './ProductTypeResource';
|
|
|
218
218
|
export * from './ProductTypeResourceArrayResponse';
|
|
219
219
|
export * from './SEOResource';
|
|
220
220
|
export * from './SEOResourceArrayResponse';
|
|
221
|
-
export * from './ShowAssetsProductChildRequest';
|
|
222
221
|
export * from './ShowAttributesProductChildRequest';
|
|
223
222
|
export * from './SiteConfigResource';
|
|
224
223
|
export * from './SiteConfigResourceArrayResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -236,7 +236,6 @@ __exportStar(require("./ProductTypeResource"), exports);
|
|
|
236
236
|
__exportStar(require("./ProductTypeResourceArrayResponse"), exports);
|
|
237
237
|
__exportStar(require("./SEOResource"), exports);
|
|
238
238
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
239
|
-
__exportStar(require("./ShowAssetsProductChildRequest"), exports);
|
|
240
239
|
__exportStar(require("./ShowAttributesProductChildRequest"), exports);
|
|
241
240
|
__exportStar(require("./SiteConfigResource"), exports);
|
|
242
241
|
__exportStar(require("./SiteConfigResourceArrayResponse"), exports);
|
package/docs/ProductApi.md
CHANGED
|
@@ -18,7 +18,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
18
18
|
| [**getCompatibleProductsProductChild**](ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild |
|
|
19
19
|
| [**indexProduct**](ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct |
|
|
20
20
|
| [**indexProductChild**](ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild |
|
|
21
|
-
| [**showAssetsProductChild**](ProductApi.md#
|
|
21
|
+
| [**showAssetsProductChild**](ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild |
|
|
22
22
|
| [**showAttributesProductChild**](ProductApi.md#showattributesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild |
|
|
23
23
|
| [**showProduct**](ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct |
|
|
24
24
|
| [**showProductChild**](ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild |
|
|
@@ -965,7 +965,7 @@ No authorization required
|
|
|
965
965
|
|
|
966
966
|
## showAssetsProductChild
|
|
967
967
|
|
|
968
|
-
> AssetWithOverlayLinkResourceArrayResponse showAssetsProductChild(productChild,
|
|
968
|
+
> AssetWithOverlayLinkResourceArrayResponse showAssetsProductChild(productChild, overlayTemplateId)
|
|
969
969
|
|
|
970
970
|
Auto-generated: showAssetsProductChild
|
|
971
971
|
|
|
@@ -976,7 +976,7 @@ import {
|
|
|
976
976
|
Configuration,
|
|
977
977
|
ProductApi,
|
|
978
978
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
979
|
-
import type {
|
|
979
|
+
import type { ShowAssetsProductChildRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
980
980
|
|
|
981
981
|
async function example() {
|
|
982
982
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
@@ -985,9 +985,9 @@ async function example() {
|
|
|
985
985
|
const body = {
|
|
986
986
|
// number | The id of the productChild
|
|
987
987
|
productChild: 56,
|
|
988
|
-
//
|
|
989
|
-
|
|
990
|
-
} satisfies
|
|
988
|
+
// number (optional)
|
|
989
|
+
overlayTemplateId: 56,
|
|
990
|
+
} satisfies ShowAssetsProductChildRequest;
|
|
991
991
|
|
|
992
992
|
try {
|
|
993
993
|
const data = await api.showAssetsProductChild(body);
|
|
@@ -1007,7 +1007,7 @@ example().catch(console.error);
|
|
|
1007
1007
|
| Name | Type | Description | Notes |
|
|
1008
1008
|
|------------- | ------------- | ------------- | -------------|
|
|
1009
1009
|
| **productChild** | `number` | The id of the productChild | [Defaults to `undefined`] |
|
|
1010
|
-
| **
|
|
1010
|
+
| **overlayTemplateId** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1011
1011
|
|
|
1012
1012
|
### Return type
|
|
1013
1013
|
|
|
@@ -1019,7 +1019,7 @@ No authorization required
|
|
|
1019
1019
|
|
|
1020
1020
|
### HTTP request headers
|
|
1021
1021
|
|
|
1022
|
-
- **Content-Type**:
|
|
1022
|
+
- **Content-Type**: Not defined
|
|
1023
1023
|
- **Accept**: `application/json`
|
|
1024
1024
|
|
|
1025
1025
|
|
|
@@ -421,7 +421,7 @@ No authorization required
|
|
|
421
421
|
|
|
422
422
|
## getChildrenProductCategory
|
|
423
423
|
|
|
424
|
-
> PaginatedProductCategoryListResourceResponse getChildrenProductCategory(productCategory,
|
|
424
|
+
> PaginatedProductCategoryListResourceResponse getChildrenProductCategory(productCategory, search, sortBy, sortDirection, perPage, page, siteId, parentId, isDisabled, isAutomated, hideFromFrontend, relatedId, relatedType, includesRelations, isParent, isEmpty)
|
|
425
425
|
|
|
426
426
|
Auto-generated: getChildrenProductCategory
|
|
427
427
|
|
|
@@ -441,8 +441,36 @@ async function example() {
|
|
|
441
441
|
const body = {
|
|
442
442
|
// number | The id of the productCategory
|
|
443
443
|
productCategory: 56,
|
|
444
|
-
//
|
|
445
|
-
|
|
444
|
+
// string (optional)
|
|
445
|
+
search: search_example,
|
|
446
|
+
// string (optional)
|
|
447
|
+
sortBy: sortBy_example,
|
|
448
|
+
// string (optional)
|
|
449
|
+
sortDirection: sortDirection_example,
|
|
450
|
+
// number (optional)
|
|
451
|
+
perPage: 56,
|
|
452
|
+
// number (optional)
|
|
453
|
+
page: 56,
|
|
454
|
+
// string (optional)
|
|
455
|
+
siteId: siteId_example,
|
|
456
|
+
// string (optional)
|
|
457
|
+
parentId: parentId_example,
|
|
458
|
+
// string (optional)
|
|
459
|
+
isDisabled: isDisabled_example,
|
|
460
|
+
// string (optional)
|
|
461
|
+
isAutomated: isAutomated_example,
|
|
462
|
+
// string (optional)
|
|
463
|
+
hideFromFrontend: hideFromFrontend_example,
|
|
464
|
+
// number (optional)
|
|
465
|
+
relatedId: 56,
|
|
466
|
+
// string (optional)
|
|
467
|
+
relatedType: relatedType_example,
|
|
468
|
+
// boolean (optional)
|
|
469
|
+
includesRelations: true,
|
|
470
|
+
// boolean (optional)
|
|
471
|
+
isParent: true,
|
|
472
|
+
// boolean (optional)
|
|
473
|
+
isEmpty: true,
|
|
446
474
|
} satisfies GetChildrenProductCategoryRequest;
|
|
447
475
|
|
|
448
476
|
try {
|
|
@@ -463,7 +491,21 @@ example().catch(console.error);
|
|
|
463
491
|
| Name | Type | Description | Notes |
|
|
464
492
|
|------------- | ------------- | ------------- | -------------|
|
|
465
493
|
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
466
|
-
| **
|
|
494
|
+
| **search** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
495
|
+
| **sortBy** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
496
|
+
| **sortDirection** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
497
|
+
| **perPage** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
498
|
+
| **page** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
499
|
+
| **siteId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
500
|
+
| **parentId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
501
|
+
| **isDisabled** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
502
|
+
| **isAutomated** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
503
|
+
| **hideFromFrontend** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
504
|
+
| **relatedId** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
505
|
+
| **relatedType** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
506
|
+
| **includesRelations** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
507
|
+
| **isParent** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
508
|
+
| **isEmpty** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
467
509
|
|
|
468
510
|
### Return type
|
|
469
511
|
|
|
@@ -475,7 +517,7 @@ No authorization required
|
|
|
475
517
|
|
|
476
518
|
### HTTP request headers
|
|
477
519
|
|
|
478
|
-
- **Content-Type**:
|
|
520
|
+
- **Content-Type**: Not defined
|
|
479
521
|
- **Accept**: `application/json`
|
|
480
522
|
|
|
481
523
|
|
package/package.json
CHANGED
package/src/apis/ProductApi.ts
CHANGED
|
@@ -32,7 +32,6 @@ import type {
|
|
|
32
32
|
ProductChildResource,
|
|
33
33
|
ProductLiteResourceArrayResponse,
|
|
34
34
|
ProductResource,
|
|
35
|
-
ShowAssetsProductChildRequest,
|
|
36
35
|
ShowAttributesProductChildRequest,
|
|
37
36
|
StoreProductChildRequest,
|
|
38
37
|
StoreProductRequest,
|
|
@@ -74,8 +73,6 @@ import {
|
|
|
74
73
|
ProductLiteResourceArrayResponseToJSON,
|
|
75
74
|
ProductResourceFromJSON,
|
|
76
75
|
ProductResourceToJSON,
|
|
77
|
-
ShowAssetsProductChildRequestFromJSON,
|
|
78
|
-
ShowAssetsProductChildRequestToJSON,
|
|
79
76
|
ShowAttributesProductChildRequestFromJSON,
|
|
80
77
|
ShowAttributesProductChildRequestToJSON,
|
|
81
78
|
StoreProductChildRequestFromJSON,
|
|
@@ -152,9 +149,9 @@ export interface IndexProductChildOperationRequest {
|
|
|
152
149
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
153
150
|
}
|
|
154
151
|
|
|
155
|
-
export interface
|
|
152
|
+
export interface ShowAssetsProductChildRequest {
|
|
156
153
|
productChild: number;
|
|
157
|
-
|
|
154
|
+
overlayTemplateId?: number;
|
|
158
155
|
}
|
|
159
156
|
|
|
160
157
|
export interface ShowAttributesProductChildOperationRequest {
|
|
@@ -840,7 +837,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
840
837
|
/**
|
|
841
838
|
* Creates request options for showAssetsProductChild without sending the request
|
|
842
839
|
*/
|
|
843
|
-
async showAssetsProductChildRequestOpts(requestParameters:
|
|
840
|
+
async showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts> {
|
|
844
841
|
if (requestParameters['productChild'] == null) {
|
|
845
842
|
throw new runtime.RequiredError(
|
|
846
843
|
'productChild',
|
|
@@ -850,9 +847,11 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
850
847
|
|
|
851
848
|
const queryParameters: any = {};
|
|
852
849
|
|
|
853
|
-
|
|
850
|
+
if (requestParameters['overlayTemplateId'] != null) {
|
|
851
|
+
queryParameters['overlay_template_id'] = requestParameters['overlayTemplateId'];
|
|
852
|
+
}
|
|
854
853
|
|
|
855
|
-
headerParameters
|
|
854
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
856
855
|
|
|
857
856
|
|
|
858
857
|
let urlPath = `/admin-api/product/children/{productChild}/assets`;
|
|
@@ -863,14 +862,13 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
863
862
|
method: 'GET',
|
|
864
863
|
headers: headerParameters,
|
|
865
864
|
query: queryParameters,
|
|
866
|
-
body: ShowAssetsProductChildRequestToJSON(requestParameters['showAssetsProductChildRequest']),
|
|
867
865
|
};
|
|
868
866
|
}
|
|
869
867
|
|
|
870
868
|
/**
|
|
871
869
|
* Auto-generated: showAssetsProductChild
|
|
872
870
|
*/
|
|
873
|
-
async showAssetsProductChildRaw(requestParameters:
|
|
871
|
+
async showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>> {
|
|
874
872
|
const requestOptions = await this.showAssetsProductChildRequestOpts(requestParameters);
|
|
875
873
|
const response = await this.request(requestOptions, initOverrides);
|
|
876
874
|
|
|
@@ -880,7 +878,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
880
878
|
/**
|
|
881
879
|
* Auto-generated: showAssetsProductChild
|
|
882
880
|
*/
|
|
883
|
-
async showAssetsProductChild(requestParameters:
|
|
881
|
+
async showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse> {
|
|
884
882
|
const response = await this.showAssetsProductChildRaw(requestParameters, initOverrides);
|
|
885
883
|
return await response.value();
|
|
886
884
|
}
|
|
@@ -93,7 +93,21 @@ export interface GetAllProductCategoryOperationRequest {
|
|
|
93
93
|
|
|
94
94
|
export interface GetChildrenProductCategoryRequest {
|
|
95
95
|
productCategory: number;
|
|
96
|
-
|
|
96
|
+
search?: string;
|
|
97
|
+
sortBy?: string;
|
|
98
|
+
sortDirection?: string;
|
|
99
|
+
perPage?: number;
|
|
100
|
+
page?: number;
|
|
101
|
+
siteId?: string;
|
|
102
|
+
parentId?: string;
|
|
103
|
+
isDisabled?: string;
|
|
104
|
+
isAutomated?: string;
|
|
105
|
+
hideFromFrontend?: string;
|
|
106
|
+
relatedId?: number;
|
|
107
|
+
relatedType?: string;
|
|
108
|
+
includesRelations?: boolean;
|
|
109
|
+
isParent?: boolean;
|
|
110
|
+
isEmpty?: boolean;
|
|
97
111
|
}
|
|
98
112
|
|
|
99
113
|
export interface GetHierarchyProductCategoryOperationRequest {
|
|
@@ -413,9 +427,67 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
413
427
|
|
|
414
428
|
const queryParameters: any = {};
|
|
415
429
|
|
|
416
|
-
|
|
430
|
+
if (requestParameters['search'] != null) {
|
|
431
|
+
queryParameters['search'] = requestParameters['search'];
|
|
432
|
+
}
|
|
417
433
|
|
|
418
|
-
|
|
434
|
+
if (requestParameters['sortBy'] != null) {
|
|
435
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
if (requestParameters['sortDirection'] != null) {
|
|
439
|
+
queryParameters['sortDirection'] = requestParameters['sortDirection'];
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
if (requestParameters['perPage'] != null) {
|
|
443
|
+
queryParameters['per_page'] = requestParameters['perPage'];
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
if (requestParameters['page'] != null) {
|
|
447
|
+
queryParameters['page'] = requestParameters['page'];
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
if (requestParameters['siteId'] != null) {
|
|
451
|
+
queryParameters['site_id'] = requestParameters['siteId'];
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
if (requestParameters['parentId'] != null) {
|
|
455
|
+
queryParameters['parent_id'] = requestParameters['parentId'];
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
if (requestParameters['isDisabled'] != null) {
|
|
459
|
+
queryParameters['is_disabled'] = requestParameters['isDisabled'];
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
if (requestParameters['isAutomated'] != null) {
|
|
463
|
+
queryParameters['is_automated'] = requestParameters['isAutomated'];
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
if (requestParameters['hideFromFrontend'] != null) {
|
|
467
|
+
queryParameters['hide_from_frontend'] = requestParameters['hideFromFrontend'];
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
if (requestParameters['relatedId'] != null) {
|
|
471
|
+
queryParameters['related_id'] = requestParameters['relatedId'];
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
if (requestParameters['relatedType'] != null) {
|
|
475
|
+
queryParameters['related_type'] = requestParameters['relatedType'];
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
if (requestParameters['includesRelations'] != null) {
|
|
479
|
+
queryParameters['includes_relations'] = requestParameters['includesRelations'];
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (requestParameters['isParent'] != null) {
|
|
483
|
+
queryParameters['is_parent'] = requestParameters['isParent'];
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if (requestParameters['isEmpty'] != null) {
|
|
487
|
+
queryParameters['is_empty'] = requestParameters['isEmpty'];
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
419
491
|
|
|
420
492
|
|
|
421
493
|
let urlPath = `/admin-api/product-category/{productCategory}/children`;
|
|
@@ -426,7 +498,6 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
426
498
|
method: 'GET',
|
|
427
499
|
headers: headerParameters,
|
|
428
500
|
query: queryParameters,
|
|
429
|
-
body: IndexProductCategoryRequestToJSON(requestParameters['indexProductCategoryRequest']),
|
|
430
501
|
};
|
|
431
502
|
}
|
|
432
503
|
|
|
@@ -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']),
|
package/src/models/index.ts
CHANGED
|
@@ -220,7 +220,6 @@ export * from './ProductTypeResource';
|
|
|
220
220
|
export * from './ProductTypeResourceArrayResponse';
|
|
221
221
|
export * from './SEOResource';
|
|
222
222
|
export * from './SEOResourceArrayResponse';
|
|
223
|
-
export * from './ShowAssetsProductChildRequest';
|
|
224
223
|
export * from './ShowAttributesProductChildRequest';
|
|
225
224
|
export * from './SiteConfigResource';
|
|
226
225
|
export * from './SiteConfigResourceArrayResponse';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ShowAssetsProductChildRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ShowAssetsProductChildRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof ShowAssetsProductChildRequest
|
|
22
|
-
*/
|
|
23
|
-
overlayTemplateId?: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ShowAssetsProductChildRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfShowAssetsProductChildRequest(value: object): value is ShowAssetsProductChildRequest;
|
|
29
|
-
export declare function ShowAssetsProductChildRequestFromJSON(json: any): ShowAssetsProductChildRequest;
|
|
30
|
-
export declare function ShowAssetsProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShowAssetsProductChildRequest;
|
|
31
|
-
export declare function ShowAssetsProductChildRequestToJSON(json: any): ShowAssetsProductChildRequest;
|
|
32
|
-
export declare function ShowAssetsProductChildRequestToJSONTyped(value?: ShowAssetsProductChildRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfShowAssetsProductChildRequest = instanceOfShowAssetsProductChildRequest;
|
|
17
|
-
exports.ShowAssetsProductChildRequestFromJSON = ShowAssetsProductChildRequestFromJSON;
|
|
18
|
-
exports.ShowAssetsProductChildRequestFromJSONTyped = ShowAssetsProductChildRequestFromJSONTyped;
|
|
19
|
-
exports.ShowAssetsProductChildRequestToJSON = ShowAssetsProductChildRequestToJSON;
|
|
20
|
-
exports.ShowAssetsProductChildRequestToJSONTyped = ShowAssetsProductChildRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ShowAssetsProductChildRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfShowAssetsProductChildRequest(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function ShowAssetsProductChildRequestFromJSON(json) {
|
|
28
|
-
return ShowAssetsProductChildRequestFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function ShowAssetsProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'overlayTemplateId': json['overlay_template_id'] == null ? undefined : json['overlay_template_id'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function ShowAssetsProductChildRequestToJSON(json) {
|
|
39
|
-
return ShowAssetsProductChildRequestToJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
function ShowAssetsProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'overlay_template_id': value['overlayTemplateId'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ShowAssetsProductChildRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`overlayTemplateId` | number
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ShowAssetsProductChildRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"overlayTemplateId": null,
|
|
19
|
-
} satisfies ShowAssetsProductChildRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as ShowAssetsProductChildRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
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 ShowAssetsProductChildRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ShowAssetsProductChildRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof ShowAssetsProductChildRequest
|
|
26
|
-
*/
|
|
27
|
-
overlayTemplateId?: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the ShowAssetsProductChildRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfShowAssetsProductChildRequest(value: object): value is ShowAssetsProductChildRequest {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function ShowAssetsProductChildRequestFromJSON(json: any): ShowAssetsProductChildRequest {
|
|
38
|
-
return ShowAssetsProductChildRequestFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function ShowAssetsProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShowAssetsProductChildRequest {
|
|
42
|
-
if (json == null) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
|
|
47
|
-
'overlayTemplateId': json['overlay_template_id'] == null ? undefined : json['overlay_template_id'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function ShowAssetsProductChildRequestToJSON(json: any): ShowAssetsProductChildRequest {
|
|
52
|
-
return ShowAssetsProductChildRequestToJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function ShowAssetsProductChildRequestToJSONTyped(value?: ShowAssetsProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'overlay_template_id': value['overlayTemplateId'],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|