@digital8/lighting-illusions-ts-sdk 0.0.1675 → 0.0.1676
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 +5 -5
- package/dist/apis/OverlayTemplateApi.d.ts +6 -6
- package/dist/apis/OverlayTemplateApi.js +1 -1
- package/dist/apis/ProductApi.d.ts +7 -7
- package/dist/apis/ProductApi.js +2 -2
- package/dist/apis/ProductRangeApi.d.ts +3 -3
- package/dist/apis/ProductRangeApi.js +2 -2
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/IndexProductChildRequest.d.ts +192 -0
- package/dist/models/{GetProductChildrenOverlayTemplateRequest.js → IndexProductChildRequest.js} +17 -17
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/{GetProductChildrenOverlayTemplateRequest.md → IndexProductChildRequest.md} +4 -4
- package/docs/OverlayTemplateApi.md +7 -7
- package/docs/ProductApi.md +11 -11
- package/docs/ProductRangeApi.md +8 -8
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/OverlayTemplateApi.ts +9 -9
- package/src/apis/ProductApi.ts +11 -11
- package/src/apis/ProductRangeApi.ts +7 -7
- package/src/models/AddressResource.ts +5 -5
- package/src/models/{GetProductChildrenOverlayTemplateRequest.ts → IndexProductChildRequest.ts} +42 -42
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +1 -1
- package/dist/models/GetProductChildrenOverlayTemplateRequest.d.ts +0 -192
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['display_start_date'],
|
|
51
53
|
'displayEndDate': json['display_end_date'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -115,7 +115,6 @@ export * from './GetAllProductRequest';
|
|
|
115
115
|
export * from './GetAllProductTypeRequest';
|
|
116
116
|
export * from './GetAllStoreRequest';
|
|
117
117
|
export * from './GetAllSupplierRequest';
|
|
118
|
-
export * from './GetProductChildrenOverlayTemplateRequest';
|
|
119
118
|
export * from './GetUniqueEndpointsExternalApiLogRequest';
|
|
120
119
|
export * from './GlobalSearchCategoryResource';
|
|
121
120
|
export * from './GlobalSearchCategoryResourceArrayResponse';
|
|
@@ -138,6 +137,7 @@ export * from './IndexModelAttributeRequest';
|
|
|
138
137
|
export * from './IndexOverlayTemplateRequest';
|
|
139
138
|
export * from './IndexPageRequest';
|
|
140
139
|
export * from './IndexProductCategoryRequest';
|
|
140
|
+
export * from './IndexProductChildRequest';
|
|
141
141
|
export * from './IndexProductRangeRequest';
|
|
142
142
|
export * from './IndexProductRequest';
|
|
143
143
|
export * from './IndexProductTypeRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -133,7 +133,6 @@ __exportStar(require("./GetAllProductRequest"), exports);
|
|
|
133
133
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
134
134
|
__exportStar(require("./GetAllStoreRequest"), exports);
|
|
135
135
|
__exportStar(require("./GetAllSupplierRequest"), exports);
|
|
136
|
-
__exportStar(require("./GetProductChildrenOverlayTemplateRequest"), exports);
|
|
137
136
|
__exportStar(require("./GetUniqueEndpointsExternalApiLogRequest"), exports);
|
|
138
137
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
139
138
|
__exportStar(require("./GlobalSearchCategoryResourceArrayResponse"), exports);
|
|
@@ -156,6 +155,7 @@ __exportStar(require("./IndexModelAttributeRequest"), exports);
|
|
|
156
155
|
__exportStar(require("./IndexOverlayTemplateRequest"), exports);
|
|
157
156
|
__exportStar(require("./IndexPageRequest"), exports);
|
|
158
157
|
__exportStar(require("./IndexProductCategoryRequest"), exports);
|
|
158
|
+
__exportStar(require("./IndexProductChildRequest"), exports);
|
|
159
159
|
__exportStar(require("./IndexProductRangeRequest"), exports);
|
|
160
160
|
__exportStar(require("./IndexProductRequest"), exports);
|
|
161
161
|
__exportStar(require("./IndexProductTypeRequest"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# IndexProductChildRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -30,7 +30,7 @@ Name | Type
|
|
|
30
30
|
## Example
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
|
-
import type {
|
|
33
|
+
import type { IndexProductChildRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
34
34
|
|
|
35
35
|
// TODO: Update the object below with actual values
|
|
36
36
|
const example = {
|
|
@@ -54,7 +54,7 @@ const example = {
|
|
|
54
54
|
"relatedId": null,
|
|
55
55
|
"relatedType": null,
|
|
56
56
|
"includesRelations": null,
|
|
57
|
-
} satisfies
|
|
57
|
+
} satisfies IndexProductChildRequest
|
|
58
58
|
|
|
59
59
|
console.log(example)
|
|
60
60
|
|
|
@@ -63,7 +63,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
63
63
|
console.log(exampleJSON)
|
|
64
64
|
|
|
65
65
|
// Parse the JSON string back to an object
|
|
66
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
66
|
+
const exampleParsed = JSON.parse(exampleJSON) as IndexProductChildRequest
|
|
67
67
|
console.log(exampleParsed)
|
|
68
68
|
```
|
|
69
69
|
|
|
@@ -10,7 +10,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
10
10
|
| [**detachAssetOverlayTemplate**](OverlayTemplateApi.md#detachassetoverlaytemplate) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-asset/{asset} | Auto-generated: detachAssetOverlayTemplate |
|
|
11
11
|
| [**detachAssetableOverlayTemplate**](OverlayTemplateApi.md#detachassetableoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-assetable | Auto-generated: detachAssetableOverlayTemplate |
|
|
12
12
|
| [**getAllOverlayTemplate**](OverlayTemplateApi.md#getalloverlaytemplateoperation) | **POST** /admin-api/overlay-template/all | Auto-generated: getAllOverlayTemplate |
|
|
13
|
-
| [**getProductChildrenOverlayTemplate**](OverlayTemplateApi.md#
|
|
13
|
+
| [**getProductChildrenOverlayTemplate**](OverlayTemplateApi.md#getproductchildrenoverlaytemplate) | **POST** /admin-api/overlay-template/{overlayTemplate}/product-children | Auto-generated: getProductChildrenOverlayTemplate |
|
|
14
14
|
| [**indexOverlayTemplate**](OverlayTemplateApi.md#indexoverlaytemplateoperation) | **POST** /admin-api/overlay-template/list | Auto-generated: indexOverlayTemplate |
|
|
15
15
|
| [**showOverlayTemplate**](OverlayTemplateApi.md#showoverlaytemplate) | **GET** /admin-api/overlay-template/{overlayTemplate} | Auto-generated: showOverlayTemplate |
|
|
16
16
|
| [**storeOverlayTemplate**](OverlayTemplateApi.md#storeoverlaytemplateoperation) | **POST** /admin-api/overlay-template/create | Auto-generated: storeOverlayTemplate |
|
|
@@ -421,7 +421,7 @@ No authorization required
|
|
|
421
421
|
|
|
422
422
|
## getProductChildrenOverlayTemplate
|
|
423
423
|
|
|
424
|
-
> PaginatedProductChildOverlayRelationResourceResponse getProductChildrenOverlayTemplate(overlayTemplate,
|
|
424
|
+
> PaginatedProductChildOverlayRelationResourceResponse getProductChildrenOverlayTemplate(overlayTemplate, indexProductChildRequest)
|
|
425
425
|
|
|
426
426
|
Auto-generated: getProductChildrenOverlayTemplate
|
|
427
427
|
|
|
@@ -432,7 +432,7 @@ import {
|
|
|
432
432
|
Configuration,
|
|
433
433
|
OverlayTemplateApi,
|
|
434
434
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
435
|
-
import type {
|
|
435
|
+
import type { GetProductChildrenOverlayTemplateRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
436
436
|
|
|
437
437
|
async function example() {
|
|
438
438
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
@@ -441,9 +441,9 @@ async function example() {
|
|
|
441
441
|
const body = {
|
|
442
442
|
// number | The id of the overlayTemplate
|
|
443
443
|
overlayTemplate: 56,
|
|
444
|
-
//
|
|
445
|
-
|
|
446
|
-
} satisfies
|
|
444
|
+
// IndexProductChildRequest (optional)
|
|
445
|
+
indexProductChildRequest: ...,
|
|
446
|
+
} satisfies GetProductChildrenOverlayTemplateRequest;
|
|
447
447
|
|
|
448
448
|
try {
|
|
449
449
|
const data = await api.getProductChildrenOverlayTemplate(body);
|
|
@@ -463,7 +463,7 @@ example().catch(console.error);
|
|
|
463
463
|
| Name | Type | Description | Notes |
|
|
464
464
|
|------------- | ------------- | ------------- | -------------|
|
|
465
465
|
| **overlayTemplate** | `number` | The id of the overlayTemplate | [Defaults to `undefined`] |
|
|
466
|
-
| **
|
|
466
|
+
| **indexProductChildRequest** | [IndexProductChildRequest](IndexProductChildRequest.md) | | [Optional] |
|
|
467
467
|
|
|
468
468
|
### Return type
|
|
469
469
|
|
package/docs/ProductApi.md
CHANGED
|
@@ -17,7 +17,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
17
17
|
| [**getAllProductChild**](ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild |
|
|
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
|
-
| [**indexProductChild**](ProductApi.md#
|
|
20
|
+
| [**indexProductChild**](ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild |
|
|
21
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 |
|
|
@@ -767,7 +767,7 @@ No authorization required
|
|
|
767
767
|
|
|
768
768
|
## getCompatibleProductsProductChild
|
|
769
769
|
|
|
770
|
-
> PaginatedProductChildListResourceResponse getCompatibleProductsProductChild(productChild,
|
|
770
|
+
> PaginatedProductChildListResourceResponse getCompatibleProductsProductChild(productChild, indexProductChildRequest)
|
|
771
771
|
|
|
772
772
|
Auto-generated: getCompatibleProductsProductChild
|
|
773
773
|
|
|
@@ -787,8 +787,8 @@ async function example() {
|
|
|
787
787
|
const body = {
|
|
788
788
|
// number | The id of the productChild
|
|
789
789
|
productChild: 56,
|
|
790
|
-
//
|
|
791
|
-
|
|
790
|
+
// IndexProductChildRequest (optional)
|
|
791
|
+
indexProductChildRequest: ...,
|
|
792
792
|
} satisfies GetCompatibleProductsProductChildRequest;
|
|
793
793
|
|
|
794
794
|
try {
|
|
@@ -809,7 +809,7 @@ example().catch(console.error);
|
|
|
809
809
|
| Name | Type | Description | Notes |
|
|
810
810
|
|------------- | ------------- | ------------- | -------------|
|
|
811
811
|
| **productChild** | `number` | The id of the productChild | [Defaults to `undefined`] |
|
|
812
|
-
| **
|
|
812
|
+
| **indexProductChildRequest** | [IndexProductChildRequest](IndexProductChildRequest.md) | | [Optional] |
|
|
813
813
|
|
|
814
814
|
### Return type
|
|
815
815
|
|
|
@@ -900,7 +900,7 @@ No authorization required
|
|
|
900
900
|
|
|
901
901
|
## indexProductChild
|
|
902
902
|
|
|
903
|
-
> PaginatedProductChildListResourceResponse indexProductChild(
|
|
903
|
+
> PaginatedProductChildListResourceResponse indexProductChild(indexProductChildRequest)
|
|
904
904
|
|
|
905
905
|
Auto-generated: indexProductChild
|
|
906
906
|
|
|
@@ -911,16 +911,16 @@ import {
|
|
|
911
911
|
Configuration,
|
|
912
912
|
ProductApi,
|
|
913
913
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
914
|
-
import type {
|
|
914
|
+
import type { IndexProductChildOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
915
915
|
|
|
916
916
|
async function example() {
|
|
917
917
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
918
918
|
const api = new ProductApi();
|
|
919
919
|
|
|
920
920
|
const body = {
|
|
921
|
-
//
|
|
922
|
-
|
|
923
|
-
} satisfies
|
|
921
|
+
// IndexProductChildRequest (optional)
|
|
922
|
+
indexProductChildRequest: ...,
|
|
923
|
+
} satisfies IndexProductChildOperationRequest;
|
|
924
924
|
|
|
925
925
|
try {
|
|
926
926
|
const data = await api.indexProductChild(body);
|
|
@@ -939,7 +939,7 @@ example().catch(console.error);
|
|
|
939
939
|
|
|
940
940
|
| Name | Type | Description | Notes |
|
|
941
941
|
|------------- | ------------- | ------------- | -------------|
|
|
942
|
-
| **
|
|
942
|
+
| **indexProductChildRequest** | [IndexProductChildRequest](IndexProductChildRequest.md) | | [Optional] |
|
|
943
943
|
|
|
944
944
|
### Return type
|
|
945
945
|
|
package/docs/ProductRangeApi.md
CHANGED
|
@@ -764,7 +764,7 @@ No authorization required
|
|
|
764
764
|
|
|
765
765
|
## listAccessoriesProductRange
|
|
766
766
|
|
|
767
|
-
> PaginatedProductChildListResourceResponse listAccessoriesProductRange(productRange,
|
|
767
|
+
> PaginatedProductChildListResourceResponse listAccessoriesProductRange(productRange, indexProductChildRequest)
|
|
768
768
|
|
|
769
769
|
Auto-generated: listAccessoriesProductRange
|
|
770
770
|
|
|
@@ -784,8 +784,8 @@ async function example() {
|
|
|
784
784
|
const body = {
|
|
785
785
|
// number | The id of the productRange
|
|
786
786
|
productRange: 56,
|
|
787
|
-
//
|
|
788
|
-
|
|
787
|
+
// IndexProductChildRequest (optional)
|
|
788
|
+
indexProductChildRequest: ...,
|
|
789
789
|
} satisfies ListAccessoriesProductRangeRequest;
|
|
790
790
|
|
|
791
791
|
try {
|
|
@@ -806,7 +806,7 @@ example().catch(console.error);
|
|
|
806
806
|
| Name | Type | Description | Notes |
|
|
807
807
|
|------------- | ------------- | ------------- | -------------|
|
|
808
808
|
| **productRange** | `number` | The id of the productRange | [Defaults to `undefined`] |
|
|
809
|
-
| **
|
|
809
|
+
| **indexProductChildRequest** | [IndexProductChildRequest](IndexProductChildRequest.md) | | [Optional] |
|
|
810
810
|
|
|
811
811
|
### Return type
|
|
812
812
|
|
|
@@ -832,7 +832,7 @@ No authorization required
|
|
|
832
832
|
|
|
833
833
|
## listProductsProductRange
|
|
834
834
|
|
|
835
|
-
> PaginatedProductChildListResourceResponse listProductsProductRange(productRange,
|
|
835
|
+
> PaginatedProductChildListResourceResponse listProductsProductRange(productRange, indexProductChildRequest)
|
|
836
836
|
|
|
837
837
|
Auto-generated: listProductsProductRange
|
|
838
838
|
|
|
@@ -852,8 +852,8 @@ async function example() {
|
|
|
852
852
|
const body = {
|
|
853
853
|
// number | The id of the productRange
|
|
854
854
|
productRange: 56,
|
|
855
|
-
//
|
|
856
|
-
|
|
855
|
+
// IndexProductChildRequest (optional)
|
|
856
|
+
indexProductChildRequest: ...,
|
|
857
857
|
} satisfies ListProductsProductRangeRequest;
|
|
858
858
|
|
|
859
859
|
try {
|
|
@@ -874,7 +874,7 @@ example().catch(console.error);
|
|
|
874
874
|
| Name | Type | Description | Notes |
|
|
875
875
|
|------------- | ------------- | ------------- | -------------|
|
|
876
876
|
| **productRange** | `number` | The id of the productRange | [Defaults to `undefined`] |
|
|
877
|
-
| **
|
|
877
|
+
| **indexProductChildRequest** | [IndexProductChildRequest](IndexProductChildRequest.md) | | [Optional] |
|
|
878
878
|
|
|
879
879
|
### Return type
|
|
880
880
|
|
package/package.json
CHANGED
|
@@ -19,8 +19,8 @@ import type {
|
|
|
19
19
|
DetachAssetableOverlayTemplateRequest,
|
|
20
20
|
GenericResponse,
|
|
21
21
|
GetAllOverlayTemplateRequest,
|
|
22
|
-
GetProductChildrenOverlayTemplateRequest,
|
|
23
22
|
IndexOverlayTemplateRequest,
|
|
23
|
+
IndexProductChildRequest,
|
|
24
24
|
OverlayTemplateLiteResourceArrayResponse,
|
|
25
25
|
OverlayTemplateResource,
|
|
26
26
|
PaginatedOverlayTemplateListResourceResponse,
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
GenericResponseToJSON,
|
|
40
40
|
GetAllOverlayTemplateRequestFromJSON,
|
|
41
41
|
GetAllOverlayTemplateRequestToJSON,
|
|
42
|
-
GetProductChildrenOverlayTemplateRequestFromJSON,
|
|
43
|
-
GetProductChildrenOverlayTemplateRequestToJSON,
|
|
44
42
|
IndexOverlayTemplateRequestFromJSON,
|
|
45
43
|
IndexOverlayTemplateRequestToJSON,
|
|
44
|
+
IndexProductChildRequestFromJSON,
|
|
45
|
+
IndexProductChildRequestToJSON,
|
|
46
46
|
OverlayTemplateLiteResourceArrayResponseFromJSON,
|
|
47
47
|
OverlayTemplateLiteResourceArrayResponseToJSON,
|
|
48
48
|
OverlayTemplateResourceFromJSON,
|
|
@@ -88,9 +88,9 @@ export interface GetAllOverlayTemplateOperationRequest {
|
|
|
88
88
|
getAllOverlayTemplateRequest?: GetAllOverlayTemplateRequest;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export interface
|
|
91
|
+
export interface GetProductChildrenOverlayTemplateRequest {
|
|
92
92
|
overlayTemplate: number;
|
|
93
|
-
|
|
93
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
export interface IndexOverlayTemplateOperationRequest {
|
|
@@ -406,7 +406,7 @@ export class OverlayTemplateApi extends runtime.BaseAPI {
|
|
|
406
406
|
/**
|
|
407
407
|
* Creates request options for getProductChildrenOverlayTemplate without sending the request
|
|
408
408
|
*/
|
|
409
|
-
async getProductChildrenOverlayTemplateRequestOpts(requestParameters:
|
|
409
|
+
async getProductChildrenOverlayTemplateRequestOpts(requestParameters: GetProductChildrenOverlayTemplateRequest): Promise<runtime.RequestOpts> {
|
|
410
410
|
if (requestParameters['overlayTemplate'] == null) {
|
|
411
411
|
throw new runtime.RequiredError(
|
|
412
412
|
'overlayTemplate',
|
|
@@ -429,14 +429,14 @@ export class OverlayTemplateApi extends runtime.BaseAPI {
|
|
|
429
429
|
method: 'POST',
|
|
430
430
|
headers: headerParameters,
|
|
431
431
|
query: queryParameters,
|
|
432
|
-
body:
|
|
432
|
+
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
/**
|
|
437
437
|
* Auto-generated: getProductChildrenOverlayTemplate
|
|
438
438
|
*/
|
|
439
|
-
async getProductChildrenOverlayTemplateRaw(requestParameters:
|
|
439
|
+
async getProductChildrenOverlayTemplateRaw(requestParameters: GetProductChildrenOverlayTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildOverlayRelationResourceResponse>> {
|
|
440
440
|
const requestOptions = await this.getProductChildrenOverlayTemplateRequestOpts(requestParameters);
|
|
441
441
|
const response = await this.request(requestOptions, initOverrides);
|
|
442
442
|
|
|
@@ -446,7 +446,7 @@ export class OverlayTemplateApi extends runtime.BaseAPI {
|
|
|
446
446
|
/**
|
|
447
447
|
* Auto-generated: getProductChildrenOverlayTemplate
|
|
448
448
|
*/
|
|
449
|
-
async getProductChildrenOverlayTemplate(requestParameters:
|
|
449
|
+
async getProductChildrenOverlayTemplate(requestParameters: GetProductChildrenOverlayTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildOverlayRelationResourceResponse> {
|
|
450
450
|
const response = await this.getProductChildrenOverlayTemplateRaw(requestParameters, initOverrides);
|
|
451
451
|
return await response.value();
|
|
452
452
|
}
|
package/src/apis/ProductApi.ts
CHANGED
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
GenericResponse,
|
|
23
23
|
GetAllProductChildRequest,
|
|
24
24
|
GetAllProductRequest,
|
|
25
|
-
|
|
25
|
+
IndexProductChildRequest,
|
|
26
26
|
IndexProductRequest,
|
|
27
27
|
PaginatedProductChildListResourceResponse,
|
|
28
28
|
PaginatedProductListResourceResponse,
|
|
@@ -54,8 +54,8 @@ import {
|
|
|
54
54
|
GetAllProductChildRequestToJSON,
|
|
55
55
|
GetAllProductRequestFromJSON,
|
|
56
56
|
GetAllProductRequestToJSON,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
IndexProductChildRequestFromJSON,
|
|
58
|
+
IndexProductChildRequestToJSON,
|
|
59
59
|
IndexProductRequestFromJSON,
|
|
60
60
|
IndexProductRequestToJSON,
|
|
61
61
|
PaginatedProductChildListResourceResponseFromJSON,
|
|
@@ -141,15 +141,15 @@ export interface GetAllProductChildOperationRequest {
|
|
|
141
141
|
|
|
142
142
|
export interface GetCompatibleProductsProductChildRequest {
|
|
143
143
|
productChild: number;
|
|
144
|
-
|
|
144
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export interface IndexProductOperationRequest {
|
|
148
148
|
indexProductRequest?: IndexProductRequest;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
export interface
|
|
152
|
-
|
|
151
|
+
export interface IndexProductChildOperationRequest {
|
|
152
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
export interface ShowAssetsProductChildOperationRequest {
|
|
@@ -735,7 +735,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
735
735
|
method: 'POST',
|
|
736
736
|
headers: headerParameters,
|
|
737
737
|
query: queryParameters,
|
|
738
|
-
body:
|
|
738
|
+
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
741
|
|
|
@@ -800,7 +800,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
800
800
|
/**
|
|
801
801
|
* Creates request options for indexProductChild without sending the request
|
|
802
802
|
*/
|
|
803
|
-
async indexProductChildRequestOpts(requestParameters:
|
|
803
|
+
async indexProductChildRequestOpts(requestParameters: IndexProductChildOperationRequest): Promise<runtime.RequestOpts> {
|
|
804
804
|
const queryParameters: any = {};
|
|
805
805
|
|
|
806
806
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -815,14 +815,14 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
815
815
|
method: 'POST',
|
|
816
816
|
headers: headerParameters,
|
|
817
817
|
query: queryParameters,
|
|
818
|
-
body:
|
|
818
|
+
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
819
819
|
};
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
/**
|
|
823
823
|
* Auto-generated: indexProductChild
|
|
824
824
|
*/
|
|
825
|
-
async indexProductChildRaw(requestParameters:
|
|
825
|
+
async indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
|
|
826
826
|
const requestOptions = await this.indexProductChildRequestOpts(requestParameters);
|
|
827
827
|
const response = await this.request(requestOptions, initOverrides);
|
|
828
828
|
|
|
@@ -832,7 +832,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
832
832
|
/**
|
|
833
833
|
* Auto-generated: indexProductChild
|
|
834
834
|
*/
|
|
835
|
-
async indexProductChild(requestParameters:
|
|
835
|
+
async indexProductChild(requestParameters: IndexProductChildOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
836
836
|
const response = await this.indexProductChildRaw(requestParameters, initOverrides);
|
|
837
837
|
return await response.value();
|
|
838
838
|
}
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
DetachDocumentsProductRangeRequest,
|
|
24
24
|
GenericResponse,
|
|
25
25
|
GetAllProductRangeRequest,
|
|
26
|
-
|
|
26
|
+
IndexProductChildRequest,
|
|
27
27
|
IndexProductRangeRequest,
|
|
28
28
|
PaginatedProductChildListResourceResponse,
|
|
29
29
|
PaginatedProductRangeListResourceResponse,
|
|
@@ -49,8 +49,8 @@ import {
|
|
|
49
49
|
GenericResponseToJSON,
|
|
50
50
|
GetAllProductRangeRequestFromJSON,
|
|
51
51
|
GetAllProductRangeRequestToJSON,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
IndexProductChildRequestFromJSON,
|
|
53
|
+
IndexProductChildRequestToJSON,
|
|
54
54
|
IndexProductRangeRequestFromJSON,
|
|
55
55
|
IndexProductRangeRequestToJSON,
|
|
56
56
|
PaginatedProductChildListResourceResponseFromJSON,
|
|
@@ -121,12 +121,12 @@ export interface IndexProductRangeOperationRequest {
|
|
|
121
121
|
|
|
122
122
|
export interface ListAccessoriesProductRangeRequest {
|
|
123
123
|
productRange: number;
|
|
124
|
-
|
|
124
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
export interface ListProductsProductRangeRequest {
|
|
128
128
|
productRange: number;
|
|
129
|
-
|
|
129
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
export interface ShowProductRangeRequest {
|
|
@@ -682,7 +682,7 @@ export class ProductRangeApi extends runtime.BaseAPI {
|
|
|
682
682
|
method: 'POST',
|
|
683
683
|
headers: headerParameters,
|
|
684
684
|
query: queryParameters,
|
|
685
|
-
body:
|
|
685
|
+
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
|
|
@@ -730,7 +730,7 @@ export class ProductRangeApi extends runtime.BaseAPI {
|
|
|
730
730
|
method: 'POST',
|
|
731
731
|
headers: headerParameters,
|
|
732
732
|
query: queryParameters,
|
|
733
|
-
body:
|
|
733
|
+
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
line2
|
|
45
|
+
line2: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -79,8 +79,8 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
82
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
83
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
84
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
86
86
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -100,9 +100,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
100
|
return {
|
|
101
101
|
|
|
102
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company'],
|
|
103
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
104
104
|
'line1': json['line_1'],
|
|
105
|
-
'line2': json['line_2']
|
|
105
|
+
'line2': json['line_2'],
|
|
106
106
|
'postcode': json['postcode'],
|
|
107
107
|
'suburb': json['suburb'],
|
|
108
108
|
'country': json['country'],
|