@digital8/lighting-illusions-ts-sdk 0.0.1675 → 0.0.1677
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/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/IndexProductChildRequest.d.ts +192 -0
- package/dist/models/{GetProductChildrenOverlayTemplateRequest.js → IndexProductChildRequest.js} +17 -17
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +2 -6
- 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/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +3 -2
- package/src/models/{GetProductChildrenOverlayTemplateRequest.ts → IndexProductChildRequest.ts} +42 -42
- package/src/models/StoreFrontendResource.ts +4 -6
- 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
package/.openapi-generator/FILES
CHANGED
|
@@ -127,7 +127,6 @@ docs/GetAllProductRequest.md
|
|
|
127
127
|
docs/GetAllProductTypeRequest.md
|
|
128
128
|
docs/GetAllStoreRequest.md
|
|
129
129
|
docs/GetAllSupplierRequest.md
|
|
130
|
-
docs/GetProductChildrenOverlayTemplateRequest.md
|
|
131
130
|
docs/GetUniqueEndpointsExternalApiLogRequest.md
|
|
132
131
|
docs/GlobalSearchCategoryResource.md
|
|
133
132
|
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
@@ -151,6 +150,7 @@ docs/IndexModelAttributeRequest.md
|
|
|
151
150
|
docs/IndexOverlayTemplateRequest.md
|
|
152
151
|
docs/IndexPageRequest.md
|
|
153
152
|
docs/IndexProductCategoryRequest.md
|
|
153
|
+
docs/IndexProductChildRequest.md
|
|
154
154
|
docs/IndexProductRangeRequest.md
|
|
155
155
|
docs/IndexProductRequest.md
|
|
156
156
|
docs/IndexProductTypeRequest.md
|
|
@@ -607,7 +607,6 @@ src/models/GetAllProductRequest.ts
|
|
|
607
607
|
src/models/GetAllProductTypeRequest.ts
|
|
608
608
|
src/models/GetAllStoreRequest.ts
|
|
609
609
|
src/models/GetAllSupplierRequest.ts
|
|
610
|
-
src/models/GetProductChildrenOverlayTemplateRequest.ts
|
|
611
610
|
src/models/GetUniqueEndpointsExternalApiLogRequest.ts
|
|
612
611
|
src/models/GlobalSearchCategoryResource.ts
|
|
613
612
|
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
@@ -630,6 +629,7 @@ src/models/IndexModelAttributeRequest.ts
|
|
|
630
629
|
src/models/IndexOverlayTemplateRequest.ts
|
|
631
630
|
src/models/IndexPageRequest.ts
|
|
632
631
|
src/models/IndexProductCategoryRequest.ts
|
|
632
|
+
src/models/IndexProductChildRequest.ts
|
|
633
633
|
src/models/IndexProductRangeRequest.ts
|
|
634
634
|
src/models/IndexProductRequest.ts
|
|
635
635
|
src/models/IndexProductTypeRequest.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.1677
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -111,7 +111,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
111
111
|
*OverlayTemplateApi* | [**detachAssetOverlayTemplate**](docs/OverlayTemplateApi.md#detachassetoverlaytemplate) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-asset/{asset} | Auto-generated: detachAssetOverlayTemplate
|
|
112
112
|
*OverlayTemplateApi* | [**detachAssetableOverlayTemplate**](docs/OverlayTemplateApi.md#detachassetableoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-assetable | Auto-generated: detachAssetableOverlayTemplate
|
|
113
113
|
*OverlayTemplateApi* | [**getAllOverlayTemplate**](docs/OverlayTemplateApi.md#getalloverlaytemplateoperation) | **POST** /admin-api/overlay-template/all | Auto-generated: getAllOverlayTemplate
|
|
114
|
-
*OverlayTemplateApi* | [**getProductChildrenOverlayTemplate**](docs/OverlayTemplateApi.md#
|
|
114
|
+
*OverlayTemplateApi* | [**getProductChildrenOverlayTemplate**](docs/OverlayTemplateApi.md#getproductchildrenoverlaytemplate) | **POST** /admin-api/overlay-template/{overlayTemplate}/product-children | Auto-generated: getProductChildrenOverlayTemplate
|
|
115
115
|
*OverlayTemplateApi* | [**indexOverlayTemplate**](docs/OverlayTemplateApi.md#indexoverlaytemplateoperation) | **POST** /admin-api/overlay-template/list | Auto-generated: indexOverlayTemplate
|
|
116
116
|
*OverlayTemplateApi* | [**showOverlayTemplate**](docs/OverlayTemplateApi.md#showoverlaytemplate) | **GET** /admin-api/overlay-template/{overlayTemplate} | Auto-generated: showOverlayTemplate
|
|
117
117
|
*OverlayTemplateApi* | [**storeOverlayTemplate**](docs/OverlayTemplateApi.md#storeoverlaytemplateoperation) | **POST** /admin-api/overlay-template/create | Auto-generated: storeOverlayTemplate
|
|
@@ -142,7 +142,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
142
142
|
*ProductApi* | [**getAllProductChild**](docs/ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild
|
|
143
143
|
*ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
|
|
144
144
|
*ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
|
|
145
|
-
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#
|
|
145
|
+
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
|
|
146
146
|
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
|
|
147
147
|
*ProductApi* | [**showAttributesProductChild**](docs/ProductApi.md#showattributesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild
|
|
148
148
|
*ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
|
|
@@ -348,7 +348,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
348
348
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
349
349
|
- [GetAllStoreRequest](docs/GetAllStoreRequest.md)
|
|
350
350
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
351
|
-
- [GetProductChildrenOverlayTemplateRequest](docs/GetProductChildrenOverlayTemplateRequest.md)
|
|
352
351
|
- [GetUniqueEndpointsExternalApiLogRequest](docs/GetUniqueEndpointsExternalApiLogRequest.md)
|
|
353
352
|
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
354
353
|
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
@@ -371,6 +370,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
371
370
|
- [IndexOverlayTemplateRequest](docs/IndexOverlayTemplateRequest.md)
|
|
372
371
|
- [IndexPageRequest](docs/IndexPageRequest.md)
|
|
373
372
|
- [IndexProductCategoryRequest](docs/IndexProductCategoryRequest.md)
|
|
373
|
+
- [IndexProductChildRequest](docs/IndexProductChildRequest.md)
|
|
374
374
|
- [IndexProductRangeRequest](docs/IndexProductRangeRequest.md)
|
|
375
375
|
- [IndexProductRequest](docs/IndexProductRequest.md)
|
|
376
376
|
- [IndexProductTypeRequest](docs/IndexProductTypeRequest.md)
|
|
@@ -685,7 +685,7 @@ and is automatically generated by the
|
|
|
685
685
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
686
686
|
|
|
687
687
|
- API version: `1.0.0`
|
|
688
|
-
- Package version: `0.0.
|
|
688
|
+
- Package version: `0.0.1677`
|
|
689
689
|
- Generator version: `7.21.0`
|
|
690
690
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
691
691
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachAssetsOverlayTemplateRequest, DetachAssetableOverlayTemplateRequest, GenericResponse, GetAllOverlayTemplateRequest,
|
|
13
|
+
import type { AttachAssetsOverlayTemplateRequest, DetachAssetableOverlayTemplateRequest, GenericResponse, GetAllOverlayTemplateRequest, IndexOverlayTemplateRequest, IndexProductChildRequest, OverlayTemplateLiteResourceArrayResponse, OverlayTemplateResource, PaginatedOverlayTemplateListResourceResponse, PaginatedProductChildOverlayRelationResourceResponse, StoreOverlayTemplateAssetRequest, StoreOverlayTemplateRequest, UpdateOverlayTemplateAssetRequest, UpdateOverlayTemplateRequest } from '../models/index';
|
|
14
14
|
export interface AttachAssetsOverlayTemplateOperationRequest {
|
|
15
15
|
overlayTemplate: number;
|
|
16
16
|
attachAssetsOverlayTemplateRequest?: AttachAssetsOverlayTemplateRequest;
|
|
@@ -32,9 +32,9 @@ export interface DetachAssetableOverlayTemplateOperationRequest {
|
|
|
32
32
|
export interface GetAllOverlayTemplateOperationRequest {
|
|
33
33
|
getAllOverlayTemplateRequest?: GetAllOverlayTemplateRequest;
|
|
34
34
|
}
|
|
35
|
-
export interface
|
|
35
|
+
export interface GetProductChildrenOverlayTemplateRequest {
|
|
36
36
|
overlayTemplate: number;
|
|
37
|
-
|
|
37
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
38
38
|
}
|
|
39
39
|
export interface IndexOverlayTemplateOperationRequest {
|
|
40
40
|
indexOverlayTemplateRequest?: IndexOverlayTemplateRequest;
|
|
@@ -135,15 +135,15 @@ export declare class OverlayTemplateApi extends runtime.BaseAPI {
|
|
|
135
135
|
/**
|
|
136
136
|
* Creates request options for getProductChildrenOverlayTemplate without sending the request
|
|
137
137
|
*/
|
|
138
|
-
getProductChildrenOverlayTemplateRequestOpts(requestParameters:
|
|
138
|
+
getProductChildrenOverlayTemplateRequestOpts(requestParameters: GetProductChildrenOverlayTemplateRequest): Promise<runtime.RequestOpts>;
|
|
139
139
|
/**
|
|
140
140
|
* Auto-generated: getProductChildrenOverlayTemplate
|
|
141
141
|
*/
|
|
142
|
-
getProductChildrenOverlayTemplateRaw(requestParameters:
|
|
142
|
+
getProductChildrenOverlayTemplateRaw(requestParameters: GetProductChildrenOverlayTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildOverlayRelationResourceResponse>>;
|
|
143
143
|
/**
|
|
144
144
|
* Auto-generated: getProductChildrenOverlayTemplate
|
|
145
145
|
*/
|
|
146
|
-
getProductChildrenOverlayTemplate(requestParameters:
|
|
146
|
+
getProductChildrenOverlayTemplate(requestParameters: GetProductChildrenOverlayTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildOverlayRelationResourceResponse>;
|
|
147
147
|
/**
|
|
148
148
|
* Creates request options for indexOverlayTemplate without sending the request
|
|
149
149
|
*/
|
|
@@ -456,7 +456,7 @@ var OverlayTemplateApi = /** @class */ (function (_super) {
|
|
|
456
456
|
method: 'POST',
|
|
457
457
|
headers: headerParameters,
|
|
458
458
|
query: queryParameters,
|
|
459
|
-
body: (0, index_1.
|
|
459
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
460
460
|
}];
|
|
461
461
|
});
|
|
462
462
|
});
|
|
@@ -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,
|
|
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;
|
|
@@ -53,13 +53,13 @@ export interface GetAllProductChildOperationRequest {
|
|
|
53
53
|
}
|
|
54
54
|
export interface GetCompatibleProductsProductChildRequest {
|
|
55
55
|
productChild: number;
|
|
56
|
-
|
|
56
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
57
57
|
}
|
|
58
58
|
export interface IndexProductOperationRequest {
|
|
59
59
|
indexProductRequest?: IndexProductRequest;
|
|
60
60
|
}
|
|
61
|
-
export interface
|
|
62
|
-
|
|
61
|
+
export interface IndexProductChildOperationRequest {
|
|
62
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
63
63
|
}
|
|
64
64
|
export interface ShowAssetsProductChildOperationRequest {
|
|
65
65
|
productChild: number;
|
|
@@ -252,15 +252,15 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
252
252
|
/**
|
|
253
253
|
* Creates request options for indexProductChild without sending the request
|
|
254
254
|
*/
|
|
255
|
-
indexProductChildRequestOpts(requestParameters:
|
|
255
|
+
indexProductChildRequestOpts(requestParameters: IndexProductChildOperationRequest): Promise<runtime.RequestOpts>;
|
|
256
256
|
/**
|
|
257
257
|
* Auto-generated: indexProductChild
|
|
258
258
|
*/
|
|
259
|
-
indexProductChildRaw(requestParameters:
|
|
259
|
+
indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
260
260
|
/**
|
|
261
261
|
* Auto-generated: indexProductChild
|
|
262
262
|
*/
|
|
263
|
-
indexProductChild(requestParameters?:
|
|
263
|
+
indexProductChild(requestParameters?: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
264
264
|
/**
|
|
265
265
|
* Creates request options for showAssetsProductChild without sending the request
|
|
266
266
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -760,7 +760,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
760
760
|
method: 'POST',
|
|
761
761
|
headers: headerParameters,
|
|
762
762
|
query: queryParameters,
|
|
763
|
-
body: (0, index_1.
|
|
763
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
764
764
|
}];
|
|
765
765
|
});
|
|
766
766
|
});
|
|
@@ -875,7 +875,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
875
875
|
method: 'POST',
|
|
876
876
|
headers: headerParameters,
|
|
877
877
|
query: queryParameters,
|
|
878
|
-
body: (0, index_1.
|
|
878
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
879
879
|
}];
|
|
880
880
|
});
|
|
881
881
|
});
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachAccessoriesProductRangeRequest, AttachAttributesProductRangeRequest, AttachDocumentsProductRangeRequest, DetachAccessoriesProductRangeRequest, DetachAttributesProductRangeRequest, DetachDocumentsProductRangeRequest, GenericResponse, GetAllProductRangeRequest,
|
|
13
|
+
import type { AttachAccessoriesProductRangeRequest, AttachAttributesProductRangeRequest, AttachDocumentsProductRangeRequest, DetachAccessoriesProductRangeRequest, DetachAttributesProductRangeRequest, DetachDocumentsProductRangeRequest, GenericResponse, GetAllProductRangeRequest, IndexProductChildRequest, IndexProductRangeRequest, PaginatedProductChildListResourceResponse, PaginatedProductRangeListResourceResponse, ProductRangeLiteResourceArrayResponse, ProductRangeResource, StoreProductRangeRequest, UpdateProductRangeRequest } from '../models/index';
|
|
14
14
|
export interface AttachAccessoriesProductRangeOperationRequest {
|
|
15
15
|
productRange: number;
|
|
16
16
|
attachAccessoriesProductRangeRequest?: AttachAccessoriesProductRangeRequest;
|
|
@@ -54,11 +54,11 @@ export interface IndexProductRangeOperationRequest {
|
|
|
54
54
|
}
|
|
55
55
|
export interface ListAccessoriesProductRangeRequest {
|
|
56
56
|
productRange: number;
|
|
57
|
-
|
|
57
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
58
58
|
}
|
|
59
59
|
export interface ListProductsProductRangeRequest {
|
|
60
60
|
productRange: number;
|
|
61
|
-
|
|
61
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
62
62
|
}
|
|
63
63
|
export interface ShowProductRangeRequest {
|
|
64
64
|
productRange: number;
|
|
@@ -758,7 +758,7 @@ var ProductRangeApi = /** @class */ (function (_super) {
|
|
|
758
758
|
method: 'POST',
|
|
759
759
|
headers: headerParameters,
|
|
760
760
|
query: queryParameters,
|
|
761
|
-
body: (0, index_1.
|
|
761
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
762
762
|
}];
|
|
763
763
|
});
|
|
764
764
|
});
|
|
@@ -819,7 +819,7 @@ var ProductRangeApi = /** @class */ (function (_super) {
|
|
|
819
819
|
method: 'POST',
|
|
820
820
|
headers: headerParameters,
|
|
821
821
|
query: queryParameters,
|
|
822
|
-
body: (0, index_1.
|
|
822
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
823
823
|
}];
|
|
824
824
|
});
|
|
825
825
|
});
|
|
@@ -26,6 +26,8 @@ function instanceOfAddressFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'company': json['company'],
|
|
50
52
|
'line1': json['line1'],
|
|
51
|
-
'line2': json['line2']
|
|
53
|
+
'line2': json['line2'],
|
|
52
54
|
'postcode': json['postcode'],
|
|
53
55
|
'suburb': json['suburb'],
|
|
54
56
|
'country': json['country'],
|
|
@@ -26,6 +26,8 @@ function instanceOfAddressResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -49,7 +51,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'company': json['company'],
|
|
51
53
|
'line1': json['line_1'],
|
|
52
|
-
'line2': json['line_2']
|
|
54
|
+
'line2': json['line_2'],
|
|
53
55
|
'postcode': json['postcode'],
|
|
54
56
|
'suburb': json['suburb'],
|
|
55
57
|
'country': json['country'],
|
|
@@ -0,0 +1,192 @@
|
|
|
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 IndexProductChildRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexProductChildRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexProductChildRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexProductChildRequestSortByEnum}
|
|
27
|
+
* @memberof IndexProductChildRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexProductChildRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexProductChildRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexProductChildRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexProductChildRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexProductChildRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexProductChildRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexProductChildRequest
|
|
52
|
+
*/
|
|
53
|
+
siteDetailsSiteId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IndexProductChildRequest
|
|
58
|
+
*/
|
|
59
|
+
isDisabled?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof IndexProductChildRequest
|
|
64
|
+
*/
|
|
65
|
+
netsuiteSyncHasNetsuiteId?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof IndexProductChildRequest
|
|
70
|
+
*/
|
|
71
|
+
categoryId?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof IndexProductChildRequest
|
|
76
|
+
*/
|
|
77
|
+
supplierId?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof IndexProductChildRequest
|
|
82
|
+
*/
|
|
83
|
+
tagsId?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof IndexProductChildRequest
|
|
88
|
+
*/
|
|
89
|
+
productTypeId?: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Array<string>}
|
|
93
|
+
* @memberof IndexProductChildRequest
|
|
94
|
+
*/
|
|
95
|
+
parentIsAccessory?: Array<string>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Array<string>}
|
|
99
|
+
* @memberof IndexProductChildRequest
|
|
100
|
+
*/
|
|
101
|
+
availableSitesId?: Array<string>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Array<string>}
|
|
105
|
+
* @memberof IndexProductChildRequest
|
|
106
|
+
*/
|
|
107
|
+
enabledSitesId?: Array<string>;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Array<string>}
|
|
111
|
+
* @memberof IndexProductChildRequest
|
|
112
|
+
*/
|
|
113
|
+
siteDetailsSeoHasSeoTitle?: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {Array<string>}
|
|
117
|
+
* @memberof IndexProductChildRequest
|
|
118
|
+
*/
|
|
119
|
+
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof IndexProductChildRequest
|
|
124
|
+
*/
|
|
125
|
+
relatedId?: number;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {IndexProductChildRequestRelatedTypeEnum}
|
|
129
|
+
* @memberof IndexProductChildRequest
|
|
130
|
+
*/
|
|
131
|
+
relatedType?: IndexProductChildRequestRelatedTypeEnum;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {boolean}
|
|
135
|
+
* @memberof IndexProductChildRequest
|
|
136
|
+
*/
|
|
137
|
+
includesRelations?: boolean;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @export
|
|
141
|
+
*/
|
|
142
|
+
export declare const IndexProductChildRequestSortByEnum: {
|
|
143
|
+
readonly Id: "id";
|
|
144
|
+
readonly Name: "name";
|
|
145
|
+
readonly ParentName: "parent-name";
|
|
146
|
+
readonly SiteDetailsName: "siteDetails-name";
|
|
147
|
+
readonly SiteDetailsSlug: "siteDetails-slug";
|
|
148
|
+
readonly Sku: "sku";
|
|
149
|
+
readonly Model: "model";
|
|
150
|
+
readonly NetsuiteSyncNetsuiteId: "netsuiteSync-netsuite_id";
|
|
151
|
+
readonly NewArrivalStartDate: "new_arrival_start_date";
|
|
152
|
+
readonly NewArrivalEndDate: "new_arrival_end_date";
|
|
153
|
+
readonly CreatedAt: "created_at";
|
|
154
|
+
readonly UpdatedAt: "updated_at";
|
|
155
|
+
};
|
|
156
|
+
export type IndexProductChildRequestSortByEnum = typeof IndexProductChildRequestSortByEnum[keyof typeof IndexProductChildRequestSortByEnum];
|
|
157
|
+
/**
|
|
158
|
+
* @export
|
|
159
|
+
*/
|
|
160
|
+
export declare const IndexProductChildRequestSortDirectionEnum: {
|
|
161
|
+
readonly Asc: "asc";
|
|
162
|
+
readonly Desc: "desc";
|
|
163
|
+
};
|
|
164
|
+
export type IndexProductChildRequestSortDirectionEnum = typeof IndexProductChildRequestSortDirectionEnum[keyof typeof IndexProductChildRequestSortDirectionEnum];
|
|
165
|
+
/**
|
|
166
|
+
* @export
|
|
167
|
+
*/
|
|
168
|
+
export declare const IndexProductChildRequestRelatedTypeEnum: {
|
|
169
|
+
readonly Accessory: "accessory";
|
|
170
|
+
readonly Attribute: "attribute";
|
|
171
|
+
readonly AttributeValue: "attributeValue";
|
|
172
|
+
readonly CompatibleProduct: "compatibleProduct";
|
|
173
|
+
readonly Category: "category";
|
|
174
|
+
readonly AutomatedCategory: "automatedCategory";
|
|
175
|
+
readonly Document: "document";
|
|
176
|
+
readonly OverlayTemplate: "overlayTemplate";
|
|
177
|
+
readonly ProductType: "productType";
|
|
178
|
+
readonly ProductRange: "productRange";
|
|
179
|
+
readonly Supplier: "supplier";
|
|
180
|
+
readonly Tag: "tag";
|
|
181
|
+
readonly Label: "label";
|
|
182
|
+
readonly Site: "site";
|
|
183
|
+
};
|
|
184
|
+
export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
|
|
185
|
+
/**
|
|
186
|
+
* Check if a given object implements the IndexProductChildRequest interface.
|
|
187
|
+
*/
|
|
188
|
+
export declare function instanceOfIndexProductChildRequest(value: object): value is IndexProductChildRequest;
|
|
189
|
+
export declare function IndexProductChildRequestFromJSON(json: any): IndexProductChildRequest;
|
|
190
|
+
export declare function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductChildRequest;
|
|
191
|
+
export declare function IndexProductChildRequestToJSON(json: any): IndexProductChildRequest;
|
|
192
|
+
export declare function IndexProductChildRequestToJSONTyped(value?: IndexProductChildRequest | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/{GetProductChildrenOverlayTemplateRequest.js → IndexProductChildRequest.js}
RENAMED
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.IndexProductChildRequestRelatedTypeEnum = exports.IndexProductChildRequestSortDirectionEnum = exports.IndexProductChildRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexProductChildRequest = instanceOfIndexProductChildRequest;
|
|
18
|
+
exports.IndexProductChildRequestFromJSON = IndexProductChildRequestFromJSON;
|
|
19
|
+
exports.IndexProductChildRequestFromJSONTyped = IndexProductChildRequestFromJSONTyped;
|
|
20
|
+
exports.IndexProductChildRequestToJSON = IndexProductChildRequestToJSON;
|
|
21
|
+
exports.IndexProductChildRequestToJSONTyped = IndexProductChildRequestToJSONTyped;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.IndexProductChildRequestSortByEnum = {
|
|
26
26
|
Id: 'id',
|
|
27
27
|
Name: 'name',
|
|
28
28
|
ParentName: 'parent-name',
|
|
@@ -39,14 +39,14 @@ exports.GetProductChildrenOverlayTemplateRequestSortByEnum = {
|
|
|
39
39
|
/**
|
|
40
40
|
* @export
|
|
41
41
|
*/
|
|
42
|
-
exports.
|
|
42
|
+
exports.IndexProductChildRequestSortDirectionEnum = {
|
|
43
43
|
Asc: 'asc',
|
|
44
44
|
Desc: 'desc'
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* @export
|
|
48
48
|
*/
|
|
49
|
-
exports.
|
|
49
|
+
exports.IndexProductChildRequestRelatedTypeEnum = {
|
|
50
50
|
Accessory: 'accessory',
|
|
51
51
|
Attribute: 'attribute',
|
|
52
52
|
AttributeValue: 'attributeValue',
|
|
@@ -63,15 +63,15 @@ exports.GetProductChildrenOverlayTemplateRequestRelatedTypeEnum = {
|
|
|
63
63
|
Site: 'site'
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
|
-
* Check if a given object implements the
|
|
66
|
+
* Check if a given object implements the IndexProductChildRequest interface.
|
|
67
67
|
*/
|
|
68
|
-
function
|
|
68
|
+
function instanceOfIndexProductChildRequest(value) {
|
|
69
69
|
return true;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function IndexProductChildRequestFromJSON(json) {
|
|
72
|
+
return IndexProductChildRequestFromJSONTyped(json, false);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
75
75
|
if (json == null) {
|
|
76
76
|
return json;
|
|
77
77
|
}
|
|
@@ -98,10 +98,10 @@ function GetProductChildrenOverlayTemplateRequestFromJSONTyped(json, ignoreDiscr
|
|
|
98
98
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
101
|
+
function IndexProductChildRequestToJSON(json) {
|
|
102
|
+
return IndexProductChildRequestToJSONTyped(json, false);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
105
105
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
106
106
|
if (value == null) {
|
|
107
107
|
return value;
|
|
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof StoreFrontendResource
|
|
46
46
|
*/
|
|
47
|
-
website
|
|
47
|
+
website?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof StoreFrontendResource
|
|
76
76
|
*/
|
|
77
|
-
tagLine
|
|
77
|
+
tagLine?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -28,16 +28,12 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
36
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
37
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
42
38
|
return false;
|
|
43
39
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -56,12 +52,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
52
|
'siteId': json['siteId'],
|
|
57
53
|
'name': json['name'],
|
|
58
54
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
55
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
56
|
'phone': json['phone'],
|
|
61
57
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
58
|
'latitude': json['latitude'],
|
|
63
59
|
'longitude': json['longitude'],
|
|
64
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
65
61
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
66
62
|
'specialDates': json['specialDates'],
|
|
67
63
|
'suppliers': json['suppliers'],
|
|
@@ -40,6 +40,8 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -64,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'latitude': json['latitude'],
|
|
65
67
|
'tagLine': json['tag_line'],
|
|
66
68
|
'email': json['email'],
|
|
67
|
-
'website': json['website']
|
|
69
|
+
'website': json['website'],
|
|
68
70
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
69
71
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
70
72
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|