@digital8/lighting-illusions-ts-sdk 0.0.1392 → 0.0.1394

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.
@@ -233,6 +233,7 @@ docs/ProductTypeResource.md
233
233
  docs/ProductTypeResourceArrayResponse.md
234
234
  docs/SEOResource.md
235
235
  docs/SEOResourceArrayResponse.md
236
+ docs/ShowAssetsProductChildRequest.md
236
237
  docs/ShowAttributesProductChildRequest.md
237
238
  docs/SiteApi.md
238
239
  docs/SiteConfigResource.md
@@ -552,6 +553,7 @@ src/models/ProductTypeResource.ts
552
553
  src/models/ProductTypeResourceArrayResponse.ts
553
554
  src/models/SEOResource.ts
554
555
  src/models/SEOResourceArrayResponse.ts
556
+ src/models/ShowAssetsProductChildRequest.ts
555
557
  src/models/ShowAttributesProductChildRequest.ts
556
558
  src/models/SiteConfigResource.ts
557
559
  src/models/SiteConfigResourceArrayResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1392
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1394
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#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
121
+ *ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchildoperation) | **POST** /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,6 +396,7 @@ 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)
399
400
  - [ShowAttributesProductChildRequest](docs/ShowAttributesProductChildRequest.md)
400
401
  - [SiteConfigResource](docs/SiteConfigResource.md)
401
402
  - [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
@@ -488,7 +489,7 @@ and is automatically generated by the
488
489
  [OpenAPI Generator](https://openapi-generator.tech) project:
489
490
 
490
491
  - API version: `1.0.0`
491
- - Package version: `0.0.1392`
492
+ - Package version: `0.0.1394`
492
493
  - Generator version: `7.20.0`
493
494
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
494
495
 
@@ -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, ShowAttributesProductChildRequest, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
13
+ import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildAttributeGroupedResource, ProductChildListResourceArrayResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, ShowAssetsProductChildRequest, 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 ShowAssetsProductChildRequest {
64
+ export interface ShowAssetsProductChildOperationRequest {
65
65
  productChild: number;
66
- overlayTemplateId?: number;
66
+ showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
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: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts>;
267
+ showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildOperationRequest): Promise<runtime.RequestOpts>;
268
268
  /**
269
269
  * Auto-generated: showAssetsProductChild
270
270
  */
271
- showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>>;
271
+ showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>>;
272
272
  /**
273
273
  * Auto-generated: showAssetsProductChild
274
274
  */
275
- showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse>;
275
+ showAssetsProductChild(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse>;
276
276
  /**
277
277
  * Creates request options for showAttributesProductChild without sending the request
278
278
  */
@@ -928,17 +928,16 @@ 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
- }
934
931
  headerParameters = {};
932
+ headerParameters['Content-Type'] = 'application/json';
935
933
  urlPath = "/admin-api/product/children/{productChild}/assets";
936
934
  urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
937
935
  return [2 /*return*/, {
938
936
  path: urlPath,
939
- method: 'GET',
937
+ method: 'POST',
940
938
  headers: headerParameters,
941
939
  query: queryParameters,
940
+ body: (0, index_1.ShowAssetsProductChildRequestToJSON)(requestParameters['showAssetsProductChildRequest']),
942
941
  }];
943
942
  });
944
943
  });
@@ -34,21 +34,7 @@ export interface GetAllProductCategoryOperationRequest {
34
34
  }
35
35
  export interface GetChildrenProductCategoryRequest {
36
36
  productCategory: number;
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;
37
+ indexProductCategoryRequest?: IndexProductCategoryRequest;
52
38
  }
53
39
  export interface GetHierarchyProductCategoryOperationRequest {
54
40
  getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
@@ -445,52 +445,8 @@ 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
- }
493
448
  headerParameters = {};
449
+ headerParameters['Content-Type'] = 'application/json';
494
450
  urlPath = "/admin-api/product-category/{productCategory}/children";
495
451
  urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
496
452
  return [2 /*return*/, {
@@ -498,6 +454,7 @@ var ProductCategoryApi = /** @class */ (function (_super) {
498
454
  method: 'GET',
499
455
  headers: headerParameters,
500
456
  query: queryParameters,
457
+ body: (0, index_1.IndexProductCategoryRequestToJSON)(requestParameters['indexProductCategoryRequest']),
501
458
  }];
502
459
  });
503
460
  });
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ 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;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,49 @@
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
+ }
@@ -218,6 +218,7 @@ export * from './ProductTypeResource';
218
218
  export * from './ProductTypeResourceArrayResponse';
219
219
  export * from './SEOResource';
220
220
  export * from './SEOResourceArrayResponse';
221
+ export * from './ShowAssetsProductChildRequest';
221
222
  export * from './ShowAttributesProductChildRequest';
222
223
  export * from './SiteConfigResource';
223
224
  export * from './SiteConfigResourceArrayResponse';
@@ -236,6 +236,7 @@ __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);
239
240
  __exportStar(require("./ShowAttributesProductChildRequest"), exports);
240
241
  __exportStar(require("./SiteConfigResource"), exports);
241
242
  __exportStar(require("./SiteConfigResourceArrayResponse"), exports);
@@ -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#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild |
21
+ | [**showAssetsProductChild**](ProductApi.md#showassetsproductchildoperation) | **POST** /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, overlayTemplateId)
968
+ > AssetWithOverlayLinkResourceArrayResponse showAssetsProductChild(productChild, showAssetsProductChildRequest)
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 { ShowAssetsProductChildRequest } from '@digital8/lighting-illusions-ts-sdk';
979
+ import type { ShowAssetsProductChildOperationRequest } 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
- // number (optional)
989
- overlayTemplateId: 56,
990
- } satisfies ShowAssetsProductChildRequest;
988
+ // ShowAssetsProductChildRequest (optional)
989
+ showAssetsProductChildRequest: ...,
990
+ } satisfies ShowAssetsProductChildOperationRequest;
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
- | **overlayTemplateId** | `number` | | [Optional] [Defaults to `undefined`] |
1010
+ | **showAssetsProductChildRequest** | [ShowAssetsProductChildRequest](ShowAssetsProductChildRequest.md) | | [Optional] |
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**: Not defined
1022
+ - **Content-Type**: `application/json`
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, search, sortBy, sortDirection, perPage, page, siteId, parentId, isDisabled, isAutomated, hideFromFrontend, relatedId, relatedType, includesRelations, isParent, isEmpty)
424
+ > PaginatedProductCategoryListResourceResponse getChildrenProductCategory(productCategory, indexProductCategoryRequest)
425
425
 
426
426
  Auto-generated: getChildrenProductCategory
427
427
 
@@ -441,36 +441,8 @@ async function example() {
441
441
  const body = {
442
442
  // number | The id of the productCategory
443
443
  productCategory: 56,
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,
444
+ // IndexProductCategoryRequest (optional)
445
+ indexProductCategoryRequest: ...,
474
446
  } satisfies GetChildrenProductCategoryRequest;
475
447
 
476
448
  try {
@@ -491,21 +463,7 @@ example().catch(console.error);
491
463
  | Name | Type | Description | Notes |
492
464
  |------------- | ------------- | ------------- | -------------|
493
465
  | **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
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`] |
466
+ | **indexProductCategoryRequest** | [IndexProductCategoryRequest](IndexProductCategoryRequest.md) | | [Optional] |
509
467
 
510
468
  ### Return type
511
469
 
@@ -517,7 +475,7 @@ No authorization required
517
475
 
518
476
  ### HTTP request headers
519
477
 
520
- - **Content-Type**: Not defined
478
+ - **Content-Type**: `application/json`
521
479
  - **Accept**: `application/json`
522
480
 
523
481
 
@@ -0,0 +1,34 @@
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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1392",
3
+ "version": "0.0.1394",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -32,6 +32,7 @@ import type {
32
32
  ProductChildResource,
33
33
  ProductLiteResourceArrayResponse,
34
34
  ProductResource,
35
+ ShowAssetsProductChildRequest,
35
36
  ShowAttributesProductChildRequest,
36
37
  StoreProductChildRequest,
37
38
  StoreProductRequest,
@@ -73,6 +74,8 @@ import {
73
74
  ProductLiteResourceArrayResponseToJSON,
74
75
  ProductResourceFromJSON,
75
76
  ProductResourceToJSON,
77
+ ShowAssetsProductChildRequestFromJSON,
78
+ ShowAssetsProductChildRequestToJSON,
76
79
  ShowAttributesProductChildRequestFromJSON,
77
80
  ShowAttributesProductChildRequestToJSON,
78
81
  StoreProductChildRequestFromJSON,
@@ -149,9 +152,9 @@ export interface IndexProductChildOperationRequest {
149
152
  indexProductChildRequest?: IndexProductChildRequest;
150
153
  }
151
154
 
152
- export interface ShowAssetsProductChildRequest {
155
+ export interface ShowAssetsProductChildOperationRequest {
153
156
  productChild: number;
154
- overlayTemplateId?: number;
157
+ showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
155
158
  }
156
159
 
157
160
  export interface ShowAttributesProductChildOperationRequest {
@@ -837,7 +840,7 @@ export class ProductApi extends runtime.BaseAPI {
837
840
  /**
838
841
  * Creates request options for showAssetsProductChild without sending the request
839
842
  */
840
- async showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts> {
843
+ async showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildOperationRequest): Promise<runtime.RequestOpts> {
841
844
  if (requestParameters['productChild'] == null) {
842
845
  throw new runtime.RequiredError(
843
846
  'productChild',
@@ -847,28 +850,27 @@ export class ProductApi extends runtime.BaseAPI {
847
850
 
848
851
  const queryParameters: any = {};
849
852
 
850
- if (requestParameters['overlayTemplateId'] != null) {
851
- queryParameters['overlay_template_id'] = requestParameters['overlayTemplateId'];
852
- }
853
-
854
853
  const headerParameters: runtime.HTTPHeaders = {};
855
854
 
855
+ headerParameters['Content-Type'] = 'application/json';
856
+
856
857
 
857
858
  let urlPath = `/admin-api/product/children/{productChild}/assets`;
858
859
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
859
860
 
860
861
  return {
861
862
  path: urlPath,
862
- method: 'GET',
863
+ method: 'POST',
863
864
  headers: headerParameters,
864
865
  query: queryParameters,
866
+ body: ShowAssetsProductChildRequestToJSON(requestParameters['showAssetsProductChildRequest']),
865
867
  };
866
868
  }
867
869
 
868
870
  /**
869
871
  * Auto-generated: showAssetsProductChild
870
872
  */
871
- async showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>> {
873
+ async showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>> {
872
874
  const requestOptions = await this.showAssetsProductChildRequestOpts(requestParameters);
873
875
  const response = await this.request(requestOptions, initOverrides);
874
876
 
@@ -878,7 +880,7 @@ export class ProductApi extends runtime.BaseAPI {
878
880
  /**
879
881
  * Auto-generated: showAssetsProductChild
880
882
  */
881
- async showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse> {
883
+ async showAssetsProductChild(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse> {
882
884
  const response = await this.showAssetsProductChildRaw(requestParameters, initOverrides);
883
885
  return await response.value();
884
886
  }
@@ -93,21 +93,7 @@ export interface GetAllProductCategoryOperationRequest {
93
93
 
94
94
  export interface GetChildrenProductCategoryRequest {
95
95
  productCategory: number;
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;
96
+ indexProductCategoryRequest?: IndexProductCategoryRequest;
111
97
  }
112
98
 
113
99
  export interface GetHierarchyProductCategoryOperationRequest {
@@ -427,68 +413,10 @@ export class ProductCategoryApi extends runtime.BaseAPI {
427
413
 
428
414
  const queryParameters: any = {};
429
415
 
430
- if (requestParameters['search'] != null) {
431
- queryParameters['search'] = requestParameters['search'];
432
- }
433
-
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
416
  const headerParameters: runtime.HTTPHeaders = {};
491
417
 
418
+ headerParameters['Content-Type'] = 'application/json';
419
+
492
420
 
493
421
  let urlPath = `/admin-api/product-category/{productCategory}/children`;
494
422
  urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
@@ -498,6 +426,7 @@ export class ProductCategoryApi extends runtime.BaseAPI {
498
426
  method: 'GET',
499
427
  headers: headerParameters,
500
428
  query: queryParameters,
429
+ body: IndexProductCategoryRequestToJSON(requestParameters['indexProductCategoryRequest']),
501
430
  };
502
431
  }
503
432
 
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ 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;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -0,0 +1,65 @@
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
+
@@ -220,6 +220,7 @@ export * from './ProductTypeResource';
220
220
  export * from './ProductTypeResourceArrayResponse';
221
221
  export * from './SEOResource';
222
222
  export * from './SEOResourceArrayResponse';
223
+ export * from './ShowAssetsProductChildRequest';
223
224
  export * from './ShowAttributesProductChildRequest';
224
225
  export * from './SiteConfigResource';
225
226
  export * from './SiteConfigResourceArrayResponse';