@digital8/lighting-illusions-ts-sdk 0.0.1674 → 0.0.1675
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 +8 -8
- package/README.md +14 -14
- package/dist/apis/AdminApi.d.ts +8 -8
- package/dist/apis/AdminApi.js +3 -3
- 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/ProductCategoryApi.d.ts +6 -6
- package/dist/apis/ProductCategoryApi.js +1 -1
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GenerateGoogleFeedAdminRequest.d.ts +32 -0
- package/dist/models/GenerateGoogleFeedAdminRequest.js +51 -0
- package/dist/models/GetProductChildrenOverlayTemplateRequest.d.ts +192 -0
- package/dist/models/{IndexProductChildRequest.js → GetProductChildrenOverlayTemplateRequest.js} +17 -17
- package/dist/models/StoreBlogCategoryRequest.d.ts +3 -3
- package/dist/models/StoreBlogCategoryRequest.js +3 -3
- package/dist/models/StoreBlogCategoryRequestDescriptionsInner.d.ts +44 -0
- package/dist/models/StoreBlogCategoryRequestDescriptionsInner.js +55 -0
- package/dist/models/StorePageRequest.d.ts +3 -3
- package/dist/models/StorePageRequest.js +3 -3
- package/dist/models/StorePageRequestSeoInner.d.ts +44 -0
- package/dist/models/StorePageRequestSeoInner.js +55 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +6 -6
- package/dist/models/StoreProductCategoryRequest.js +6 -6
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/StoreSupplierRequest.d.ts +6 -6
- package/dist/models/StoreSupplierRequest.js +6 -6
- package/dist/models/UpdateBlogCategoryRequest.d.ts +3 -3
- package/dist/models/UpdateBlogCategoryRequest.js +3 -3
- package/dist/models/UpdatePageRequest.d.ts +3 -3
- package/dist/models/UpdatePageRequest.js +3 -3
- package/dist/models/UpdateProductCategoryRequest.d.ts +6 -6
- package/dist/models/UpdateProductCategoryRequest.js +6 -6
- package/dist/models/UpdateSupplierRequest.d.ts +6 -6
- package/dist/models/UpdateSupplierRequest.js +6 -6
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +4 -4
- package/docs/AdminApi.md +15 -15
- package/docs/{GetHierarchyProductCategoryRequest.md → GenerateGoogleFeedAdminRequest.md} +4 -4
- package/docs/{IndexProductChildRequest.md → GetProductChildrenOverlayTemplateRequest.md} +4 -4
- package/docs/OverlayTemplateApi.md +7 -7
- package/docs/ProductApi.md +11 -11
- package/docs/ProductCategoryApi.md +7 -7
- package/docs/ProductRangeApi.md +8 -8
- package/docs/StoreBlogCategoryRequest.md +1 -1
- package/docs/{StoreProductCategoryRequestDescriptionsInner.md → StoreBlogCategoryRequestDescriptionsInner.md} +4 -4
- package/docs/StorePageRequest.md +1 -1
- package/docs/{StoreProductCategoryRequestSeoInner.md → StorePageRequestSeoInner.md} +4 -4
- package/docs/StoreProductCategoryRequest.md +2 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/StoreSupplierRequest.md +2 -2
- package/docs/UpdateBlogCategoryRequest.md +1 -1
- package/docs/UpdatePageRequest.md +1 -1
- package/docs/UpdateProductCategoryRequest.md +2 -2
- package/docs/UpdateSupplierRequest.md +2 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +13 -13
- package/src/apis/OverlayTemplateApi.ts +9 -9
- package/src/apis/ProductApi.ts +11 -11
- package/src/apis/ProductCategoryApi.ts +9 -9
- package/src/apis/ProductRangeApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GenerateGoogleFeedAdminRequest.ts +66 -0
- package/src/models/{IndexProductChildRequest.ts → GetProductChildrenOverlayTemplateRequest.ts} +42 -42
- package/src/models/StoreBlogCategoryRequest.ts +10 -10
- package/src/models/StoreBlogCategoryRequestDescriptionsInner.ts +82 -0
- package/src/models/StorePageRequest.ts +10 -10
- package/src/models/{StoreProductCategoryRequestSeoInner.ts → StorePageRequestSeoInner.ts} +13 -13
- package/src/models/StoreProductCategoryRequest.ts +20 -20
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/StoreSupplierRequest.ts +20 -20
- package/src/models/UpdateBlogCategoryRequest.ts +10 -10
- package/src/models/UpdatePageRequest.ts +10 -10
- package/src/models/UpdateProductCategoryRequest.ts +20 -20
- package/src/models/UpdateSupplierRequest.ts +20 -20
- package/src/models/index.ts +4 -4
- package/dist/models/GetHierarchyProductCategoryRequest.d.ts +0 -32
- package/dist/models/GetHierarchyProductCategoryRequest.js +0 -51
- package/dist/models/IndexProductChildRequest.d.ts +0 -192
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.d.ts +0 -44
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.js +0 -55
- package/dist/models/StoreProductCategoryRequestSeoInner.d.ts +0 -44
- package/dist/models/StoreProductCategoryRequestSeoInner.js +0 -55
- package/src/models/GetHierarchyProductCategoryRequest.ts +0 -66
- package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +0 -82
package/src/apis/ProductApi.ts
CHANGED
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
GenericResponse,
|
|
23
23
|
GetAllProductChildRequest,
|
|
24
24
|
GetAllProductRequest,
|
|
25
|
-
|
|
25
|
+
GetProductChildrenOverlayTemplateRequest,
|
|
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
|
+
GetProductChildrenOverlayTemplateRequestFromJSON,
|
|
58
|
+
GetProductChildrenOverlayTemplateRequestToJSON,
|
|
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
|
+
getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export interface IndexProductOperationRequest {
|
|
148
148
|
indexProductRequest?: IndexProductRequest;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
export interface
|
|
152
|
-
|
|
151
|
+
export interface IndexProductChildRequest {
|
|
152
|
+
getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
|
|
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: GetProductChildrenOverlayTemplateRequestToJSON(requestParameters['getProductChildrenOverlayTemplateRequest']),
|
|
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: IndexProductChildRequest): 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: GetProductChildrenOverlayTemplateRequestToJSON(requestParameters['getProductChildrenOverlayTemplateRequest']),
|
|
819
819
|
};
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
/**
|
|
823
823
|
* Auto-generated: indexProductChild
|
|
824
824
|
*/
|
|
825
|
-
async indexProductChildRaw(requestParameters:
|
|
825
|
+
async indexProductChildRaw(requestParameters: IndexProductChildRequest, 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: IndexProductChildRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
836
836
|
const response = await this.indexProductChildRaw(requestParameters, initOverrides);
|
|
837
837
|
return await response.value();
|
|
838
838
|
}
|
|
@@ -17,9 +17,9 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
AttachProductsProductCategoryRequest,
|
|
19
19
|
DetachProductsProductCategoryRequest,
|
|
20
|
+
GenerateGoogleFeedAdminRequest,
|
|
20
21
|
GenericResponse,
|
|
21
22
|
GetAllProductCategoryRequest,
|
|
22
|
-
GetHierarchyProductCategoryRequest,
|
|
23
23
|
IndexProductCategoryRequest,
|
|
24
24
|
PaginatedProductCategoryListResourceResponse,
|
|
25
25
|
PreviewAutomationRulesProductCategoryRequest,
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
AttachProductsProductCategoryRequestToJSON,
|
|
37
37
|
DetachProductsProductCategoryRequestFromJSON,
|
|
38
38
|
DetachProductsProductCategoryRequestToJSON,
|
|
39
|
+
GenerateGoogleFeedAdminRequestFromJSON,
|
|
40
|
+
GenerateGoogleFeedAdminRequestToJSON,
|
|
39
41
|
GenericResponseFromJSON,
|
|
40
42
|
GenericResponseToJSON,
|
|
41
43
|
GetAllProductCategoryRequestFromJSON,
|
|
42
44
|
GetAllProductCategoryRequestToJSON,
|
|
43
|
-
GetHierarchyProductCategoryRequestFromJSON,
|
|
44
|
-
GetHierarchyProductCategoryRequestToJSON,
|
|
45
45
|
IndexProductCategoryRequestFromJSON,
|
|
46
46
|
IndexProductCategoryRequestToJSON,
|
|
47
47
|
PaginatedProductCategoryListResourceResponseFromJSON,
|
|
@@ -96,8 +96,8 @@ export interface GetChildrenProductCategoryRequest {
|
|
|
96
96
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export interface
|
|
100
|
-
|
|
99
|
+
export interface GetHierarchyProductCategoryRequest {
|
|
100
|
+
generateGoogleFeedAdminRequest?: GenerateGoogleFeedAdminRequest;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
export interface IndexProductCategoryOperationRequest {
|
|
@@ -451,7 +451,7 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
451
451
|
/**
|
|
452
452
|
* Creates request options for getHierarchyProductCategory without sending the request
|
|
453
453
|
*/
|
|
454
|
-
async getHierarchyProductCategoryRequestOpts(requestParameters:
|
|
454
|
+
async getHierarchyProductCategoryRequestOpts(requestParameters: GetHierarchyProductCategoryRequest): Promise<runtime.RequestOpts> {
|
|
455
455
|
const queryParameters: any = {};
|
|
456
456
|
|
|
457
457
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -466,14 +466,14 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
466
466
|
method: 'POST',
|
|
467
467
|
headers: headerParameters,
|
|
468
468
|
query: queryParameters,
|
|
469
|
-
body:
|
|
469
|
+
body: GenerateGoogleFeedAdminRequestToJSON(requestParameters['generateGoogleFeedAdminRequest']),
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
/**
|
|
474
474
|
* Auto-generated: getHierarchyProductCategory
|
|
475
475
|
*/
|
|
476
|
-
async getHierarchyProductCategoryRaw(requestParameters:
|
|
476
|
+
async getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
|
|
477
477
|
const requestOptions = await this.getHierarchyProductCategoryRequestOpts(requestParameters);
|
|
478
478
|
const response = await this.request(requestOptions, initOverrides);
|
|
479
479
|
|
|
@@ -483,7 +483,7 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
483
483
|
/**
|
|
484
484
|
* Auto-generated: getHierarchyProductCategory
|
|
485
485
|
*/
|
|
486
|
-
async getHierarchyProductCategory(requestParameters:
|
|
486
|
+
async getHierarchyProductCategory(requestParameters: GetHierarchyProductCategoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse> {
|
|
487
487
|
const response = await this.getHierarchyProductCategoryRaw(requestParameters, initOverrides);
|
|
488
488
|
return await response.value();
|
|
489
489
|
}
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
DetachDocumentsProductRangeRequest,
|
|
24
24
|
GenericResponse,
|
|
25
25
|
GetAllProductRangeRequest,
|
|
26
|
-
|
|
26
|
+
GetProductChildrenOverlayTemplateRequest,
|
|
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
|
+
GetProductChildrenOverlayTemplateRequestFromJSON,
|
|
53
|
+
GetProductChildrenOverlayTemplateRequestToJSON,
|
|
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
|
+
getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
export interface ListProductsProductRangeRequest {
|
|
128
128
|
productRange: number;
|
|
129
|
-
|
|
129
|
+
getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
|
|
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: GetProductChildrenOverlayTemplateRequestToJSON(requestParameters['getProductChildrenOverlayTemplateRequest']),
|
|
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: GetProductChildrenOverlayTemplateRequestToJSON(requestParameters['getProductChildrenOverlayTemplateRequest']),
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
|
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -92,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
92
93
|
}
|
|
93
94
|
return {
|
|
94
95
|
|
|
95
|
-
'company': json['company']
|
|
96
|
+
'company': json['company'],
|
|
96
97
|
'line1': json['line1'],
|
|
97
98
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
98
99
|
'postcode': json['postcode'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GenerateGoogleFeedAdminRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GenerateGoogleFeedAdminRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GenerateGoogleFeedAdminRequest
|
|
26
|
+
*/
|
|
27
|
+
siteId: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GenerateGoogleFeedAdminRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGenerateGoogleFeedAdminRequest(value: object): value is GenerateGoogleFeedAdminRequest {
|
|
34
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function GenerateGoogleFeedAdminRequestFromJSON(json: any): GenerateGoogleFeedAdminRequest {
|
|
39
|
+
return GenerateGoogleFeedAdminRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function GenerateGoogleFeedAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateGoogleFeedAdminRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'siteId': json['site_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GenerateGoogleFeedAdminRequestToJSON(json: any): GenerateGoogleFeedAdminRequest {
|
|
53
|
+
return GenerateGoogleFeedAdminRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GenerateGoogleFeedAdminRequestToJSONTyped(value?: GenerateGoogleFeedAdminRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'site_id': value['siteId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/{IndexProductChildRequest.ts → GetProductChildrenOverlayTemplateRequest.ts}
RENAMED
|
@@ -16,127 +16,127 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface GetProductChildrenOverlayTemplateRequest
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface GetProductChildrenOverlayTemplateRequest {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
26
26
|
*/
|
|
27
27
|
search?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
31
|
-
* @memberof
|
|
30
|
+
* @type {GetProductChildrenOverlayTemplateRequestSortByEnum}
|
|
31
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
32
32
|
*/
|
|
33
|
-
sortBy?:
|
|
33
|
+
sortBy?: GetProductChildrenOverlayTemplateRequestSortByEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
37
|
-
* @memberof
|
|
36
|
+
* @type {GetProductChildrenOverlayTemplateRequestSortDirectionEnum}
|
|
37
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
38
38
|
*/
|
|
39
|
-
sortDirection?:
|
|
39
|
+
sortDirection?: GetProductChildrenOverlayTemplateRequestSortDirectionEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
44
44
|
*/
|
|
45
45
|
perPage?: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
50
50
|
*/
|
|
51
51
|
page?: number;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {Array<string>}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
56
56
|
*/
|
|
57
57
|
siteDetailsSiteId?: Array<string>;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {Array<string>}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
62
62
|
*/
|
|
63
63
|
isDisabled?: Array<string>;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {Array<string>}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
68
68
|
*/
|
|
69
69
|
netsuiteSyncHasNetsuiteId?: Array<string>;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {Array<string>}
|
|
73
|
-
* @memberof
|
|
73
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
74
74
|
*/
|
|
75
75
|
categoryId?: Array<string>;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {Array<string>}
|
|
79
|
-
* @memberof
|
|
79
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
80
80
|
*/
|
|
81
81
|
supplierId?: Array<string>;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {Array<string>}
|
|
85
|
-
* @memberof
|
|
85
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
86
86
|
*/
|
|
87
87
|
tagsId?: Array<string>;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
90
|
* @type {Array<string>}
|
|
91
|
-
* @memberof
|
|
91
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
92
92
|
*/
|
|
93
93
|
productTypeId?: Array<string>;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
96
|
* @type {Array<string>}
|
|
97
|
-
* @memberof
|
|
97
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
98
98
|
*/
|
|
99
99
|
parentIsAccessory?: Array<string>;
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
102
|
* @type {Array<string>}
|
|
103
|
-
* @memberof
|
|
103
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
104
104
|
*/
|
|
105
105
|
availableSitesId?: Array<string>;
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
108
|
* @type {Array<string>}
|
|
109
|
-
* @memberof
|
|
109
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
110
110
|
*/
|
|
111
111
|
enabledSitesId?: Array<string>;
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
114
|
* @type {Array<string>}
|
|
115
|
-
* @memberof
|
|
115
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
116
116
|
*/
|
|
117
117
|
siteDetailsSeoHasSeoTitle?: Array<string>;
|
|
118
118
|
/**
|
|
119
119
|
*
|
|
120
120
|
* @type {Array<string>}
|
|
121
|
-
* @memberof
|
|
121
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
122
122
|
*/
|
|
123
123
|
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
126
|
* @type {number}
|
|
127
|
-
* @memberof
|
|
127
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
128
128
|
*/
|
|
129
129
|
relatedId?: number;
|
|
130
130
|
/**
|
|
131
131
|
*
|
|
132
|
-
* @type {
|
|
133
|
-
* @memberof
|
|
132
|
+
* @type {GetProductChildrenOverlayTemplateRequestRelatedTypeEnum}
|
|
133
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
134
134
|
*/
|
|
135
|
-
relatedType?:
|
|
135
|
+
relatedType?: GetProductChildrenOverlayTemplateRequestRelatedTypeEnum;
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
138
138
|
* @type {boolean}
|
|
139
|
-
* @memberof
|
|
139
|
+
* @memberof GetProductChildrenOverlayTemplateRequest
|
|
140
140
|
*/
|
|
141
141
|
includesRelations?: boolean;
|
|
142
142
|
}
|
|
@@ -145,7 +145,7 @@ export interface IndexProductChildRequest {
|
|
|
145
145
|
/**
|
|
146
146
|
* @export
|
|
147
147
|
*/
|
|
148
|
-
export const
|
|
148
|
+
export const GetProductChildrenOverlayTemplateRequestSortByEnum = {
|
|
149
149
|
Id: 'id',
|
|
150
150
|
Name: 'name',
|
|
151
151
|
ParentName: 'parent-name',
|
|
@@ -159,21 +159,21 @@ export const IndexProductChildRequestSortByEnum = {
|
|
|
159
159
|
CreatedAt: 'created_at',
|
|
160
160
|
UpdatedAt: 'updated_at'
|
|
161
161
|
} as const;
|
|
162
|
-
export type
|
|
162
|
+
export type GetProductChildrenOverlayTemplateRequestSortByEnum = typeof GetProductChildrenOverlayTemplateRequestSortByEnum[keyof typeof GetProductChildrenOverlayTemplateRequestSortByEnum];
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* @export
|
|
166
166
|
*/
|
|
167
|
-
export const
|
|
167
|
+
export const GetProductChildrenOverlayTemplateRequestSortDirectionEnum = {
|
|
168
168
|
Asc: 'asc',
|
|
169
169
|
Desc: 'desc'
|
|
170
170
|
} as const;
|
|
171
|
-
export type
|
|
171
|
+
export type GetProductChildrenOverlayTemplateRequestSortDirectionEnum = typeof GetProductChildrenOverlayTemplateRequestSortDirectionEnum[keyof typeof GetProductChildrenOverlayTemplateRequestSortDirectionEnum];
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* @export
|
|
175
175
|
*/
|
|
176
|
-
export const
|
|
176
|
+
export const GetProductChildrenOverlayTemplateRequestRelatedTypeEnum = {
|
|
177
177
|
Accessory: 'accessory',
|
|
178
178
|
Attribute: 'attribute',
|
|
179
179
|
AttributeValue: 'attributeValue',
|
|
@@ -189,21 +189,21 @@ export const IndexProductChildRequestRelatedTypeEnum = {
|
|
|
189
189
|
Label: 'label',
|
|
190
190
|
Site: 'site'
|
|
191
191
|
} as const;
|
|
192
|
-
export type
|
|
192
|
+
export type GetProductChildrenOverlayTemplateRequestRelatedTypeEnum = typeof GetProductChildrenOverlayTemplateRequestRelatedTypeEnum[keyof typeof GetProductChildrenOverlayTemplateRequestRelatedTypeEnum];
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* Check if a given object implements the
|
|
196
|
+
* Check if a given object implements the GetProductChildrenOverlayTemplateRequest interface.
|
|
197
197
|
*/
|
|
198
|
-
export function
|
|
198
|
+
export function instanceOfGetProductChildrenOverlayTemplateRequest(value: object): value is GetProductChildrenOverlayTemplateRequest {
|
|
199
199
|
return true;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
export function
|
|
203
|
-
return
|
|
202
|
+
export function GetProductChildrenOverlayTemplateRequestFromJSON(json: any): GetProductChildrenOverlayTemplateRequest {
|
|
203
|
+
return GetProductChildrenOverlayTemplateRequestFromJSONTyped(json, false);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
export function
|
|
206
|
+
export function GetProductChildrenOverlayTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductChildrenOverlayTemplateRequest {
|
|
207
207
|
if (json == null) {
|
|
208
208
|
return json;
|
|
209
209
|
}
|
|
@@ -232,11 +232,11 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
export function
|
|
236
|
-
return
|
|
235
|
+
export function GetProductChildrenOverlayTemplateRequestToJSON(json: any): GetProductChildrenOverlayTemplateRequest {
|
|
236
|
+
return GetProductChildrenOverlayTemplateRequestToJSONTyped(json, false);
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
export function
|
|
239
|
+
export function GetProductChildrenOverlayTemplateRequestToJSONTyped(value?: GetProductChildrenOverlayTemplateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
240
240
|
if (value == null) {
|
|
241
241
|
return value;
|
|
242
242
|
}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { StoreBlogCategoryRequestDescriptionsInner } from './StoreBlogCategoryRequestDescriptionsInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
StoreBlogCategoryRequestDescriptionsInnerFromJSON,
|
|
19
|
+
StoreBlogCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
20
|
+
StoreBlogCategoryRequestDescriptionsInnerToJSON,
|
|
21
|
+
StoreBlogCategoryRequestDescriptionsInnerToJSONTyped,
|
|
22
|
+
} from './StoreBlogCategoryRequestDescriptionsInner';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -41,10 +41,10 @@ export interface StoreBlogCategoryRequest {
|
|
|
41
41
|
slug: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {Array<
|
|
44
|
+
* @type {Array<StoreBlogCategoryRequestDescriptionsInner>}
|
|
45
45
|
* @memberof StoreBlogCategoryRequest
|
|
46
46
|
*/
|
|
47
|
-
descriptions: Array<
|
|
47
|
+
descriptions: Array<StoreBlogCategoryRequestDescriptionsInner>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -69,7 +69,7 @@ export function StoreBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
69
69
|
|
|
70
70
|
'name': json['name'],
|
|
71
71
|
'slug': json['slug'],
|
|
72
|
-
'descriptions': ((json['descriptions'] as Array<any>).map(
|
|
72
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreBlogCategoryRequestDescriptionsInnerFromJSON)),
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -86,7 +86,7 @@ export function StoreBlogCategoryRequestToJSONTyped(value?: StoreBlogCategoryReq
|
|
|
86
86
|
|
|
87
87
|
'name': value['name'],
|
|
88
88
|
'slug': value['slug'],
|
|
89
|
-
'descriptions': ((value['descriptions'] as Array<any>).map(
|
|
89
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreBlogCategoryRequestDescriptionsInnerToJSON)),
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
|