@digital8/lighting-illusions-ts-sdk 0.0.374 → 0.0.376
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 +10 -6
- package/README.md +7 -5
- package/dist/apis/ProductApi.d.ts +3 -3
- package/dist/apis/ProductApi.js +1 -1
- package/dist/models/AssetResource.d.ts +12 -0
- package/dist/models/AssetResource.js +8 -0
- package/dist/models/GetAllProductChildRequest.d.ts +19 -11
- package/dist/models/GetAllProductChildRequest.js +11 -11
- package/dist/models/PaginatedProductChildSiteDetailsListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductChildSiteDetailsListResourceResponse.js +57 -0
- package/dist/models/ProductChildResource.d.ts +3 -2
- package/dist/models/ProductChildResource.js +3 -2
- package/dist/models/ProductChildSiteDetailResource.d.ts +88 -0
- package/dist/models/ProductChildSiteDetailResource.js +89 -0
- package/dist/models/ProductChildSiteDetailResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildSiteDetailResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailsListResource.d.ts +100 -0
- package/dist/models/ProductChildSiteDetailsListResource.js +97 -0
- package/dist/models/ProductChildSiteDetailsListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildSiteDetailsListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +5 -3
- package/dist/models/index.js +5 -3
- package/docs/AssetResource.md +4 -0
- package/docs/GetAllProductChildRequest.md +4 -0
- package/docs/{PaginatedProductChildLiteResourceResponse.md → PaginatedProductChildSiteDetailsListResourceResponse.md} +5 -5
- package/docs/ProductApi.md +2 -2
- package/docs/ProductChildResource.md +1 -1
- package/docs/ProductChildSiteDetailResource.md +52 -0
- package/docs/{ProductChildLiteResourceArrayResponse.md → ProductChildSiteDetailResourceArrayResponse.md} +5 -5
- package/docs/{ProductChildLiteResource.md → ProductChildSiteDetailsListResource.md} +16 -4
- package/docs/ProductChildSiteDetailsListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +6 -6
- package/src/models/AssetResource.ts +18 -0
- package/src/models/GetAllProductChildRequest.ts +23 -11
- package/src/models/PaginatedProductChildSiteDetailsListResourceResponse.ts +90 -0
- package/src/models/ProductChildResource.ts +11 -4
- package/src/models/ProductChildSiteDetailResource.ts +162 -0
- package/src/models/ProductChildSiteDetailResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailsListResource.ts +180 -0
- package/src/models/ProductChildSiteDetailsListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +5 -3
- package/dist/models/PaginatedProductChildLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductChildLiteResourceResponse.js +0 -57
- package/dist/models/ProductChildLiteResource.d.ts +0 -63
- package/dist/models/ProductChildLiteResource.js +0 -72
- package/dist/models/ProductChildLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildLiteResourceArrayResponse.js +0 -50
- package/src/models/PaginatedProductChildLiteResourceResponse.ts +0 -90
- package/src/models/ProductChildLiteResource.ts +0 -119
- package/src/models/ProductChildLiteResourceArrayResponse.ts +0 -73
package/package.json
CHANGED
package/src/apis/ProductApi.ts
CHANGED
|
@@ -21,8 +21,8 @@ import type {
|
|
|
21
21
|
GetAllProductRequest,
|
|
22
22
|
IndexProductChildRequest,
|
|
23
23
|
PaginatedProductChildResourceResponse,
|
|
24
|
-
ProductChildLiteResourceArrayResponse,
|
|
25
24
|
ProductChildResource,
|
|
25
|
+
ProductChildSiteDetailsListResourceArrayResponse,
|
|
26
26
|
ProductLiteResourceArrayResponse,
|
|
27
27
|
ProductResource,
|
|
28
28
|
StoreProductChildRequest,
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
IndexProductChildRequestToJSON,
|
|
44
44
|
PaginatedProductChildResourceResponseFromJSON,
|
|
45
45
|
PaginatedProductChildResourceResponseToJSON,
|
|
46
|
-
ProductChildLiteResourceArrayResponseFromJSON,
|
|
47
|
-
ProductChildLiteResourceArrayResponseToJSON,
|
|
48
46
|
ProductChildResourceFromJSON,
|
|
49
47
|
ProductChildResourceToJSON,
|
|
48
|
+
ProductChildSiteDetailsListResourceArrayResponseFromJSON,
|
|
49
|
+
ProductChildSiteDetailsListResourceArrayResponseToJSON,
|
|
50
50
|
ProductLiteResourceArrayResponseFromJSON,
|
|
51
51
|
ProductLiteResourceArrayResponseToJSON,
|
|
52
52
|
ProductResourceFromJSON,
|
|
@@ -225,7 +225,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
225
225
|
/**
|
|
226
226
|
* Auto-generated: getAllProductChild
|
|
227
227
|
*/
|
|
228
|
-
async getAllProductChildRaw(requestParameters: GetAllProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
228
|
+
async getAllProductChildRaw(requestParameters: GetAllProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildSiteDetailsListResourceArrayResponse>> {
|
|
229
229
|
const queryParameters: any = {};
|
|
230
230
|
|
|
231
231
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -243,13 +243,13 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
243
243
|
body: GetAllProductChildRequestToJSON(requestParameters['getAllProductChildRequest']),
|
|
244
244
|
}, initOverrides);
|
|
245
245
|
|
|
246
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
246
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildSiteDetailsListResourceArrayResponseFromJSON(jsonValue));
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
250
|
* Auto-generated: getAllProductChild
|
|
251
251
|
*/
|
|
252
|
-
async getAllProductChild(requestParameters: GetAllProductChildOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
252
|
+
async getAllProductChild(requestParameters: GetAllProductChildOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildSiteDetailsListResourceArrayResponse> {
|
|
253
253
|
const response = await this.getAllProductChildRaw(requestParameters, initOverrides);
|
|
254
254
|
return await response.value();
|
|
255
255
|
}
|
|
@@ -69,6 +69,18 @@ export interface AssetResource {
|
|
|
69
69
|
* @memberof AssetResource
|
|
70
70
|
*/
|
|
71
71
|
assetFileId: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof AssetResource
|
|
76
|
+
*/
|
|
77
|
+
isThumbnail: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof AssetResource
|
|
82
|
+
*/
|
|
83
|
+
isLifestyle: boolean;
|
|
72
84
|
/**
|
|
73
85
|
*
|
|
74
86
|
* @type {Array<OverlayTemplateLiteResource>}
|
|
@@ -88,6 +100,8 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
88
100
|
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
89
101
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
90
102
|
if (!('assetFileId' in value) || value['assetFileId'] === undefined) return false;
|
|
103
|
+
if (!('isThumbnail' in value) || value['isThumbnail'] === undefined) return false;
|
|
104
|
+
if (!('isLifestyle' in value) || value['isLifestyle'] === undefined) return false;
|
|
91
105
|
if (!('overlayTemplates' in value) || value['overlayTemplates'] === undefined) return false;
|
|
92
106
|
return true;
|
|
93
107
|
}
|
|
@@ -109,6 +123,8 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
109
123
|
'altText': json['altText'],
|
|
110
124
|
'index': json['index'],
|
|
111
125
|
'assetFileId': json['assetFileId'],
|
|
126
|
+
'isThumbnail': json['isThumbnail'],
|
|
127
|
+
'isLifestyle': json['isLifestyle'],
|
|
112
128
|
'overlayTemplates': (json['overlayTemplates'] == null ? null : (json['overlayTemplates'] as Array<any>).map(OverlayTemplateLiteResourceFromJSON)),
|
|
113
129
|
};
|
|
114
130
|
}
|
|
@@ -131,6 +147,8 @@ export function AssetResourceToJSONTyped(value?: AssetResource | null, ignoreDis
|
|
|
131
147
|
'altText': value['altText'],
|
|
132
148
|
'index': value['index'],
|
|
133
149
|
'assetFileId': value['assetFileId'],
|
|
150
|
+
'isThumbnail': value['isThumbnail'],
|
|
151
|
+
'isLifestyle': value['isLifestyle'],
|
|
134
152
|
'overlayTemplates': (value['overlayTemplates'] == null ? null : (value['overlayTemplates'] as Array<any>).map(OverlayTemplateLiteResourceToJSON)),
|
|
135
153
|
};
|
|
136
154
|
}
|
|
@@ -49,6 +49,18 @@ export interface GetAllProductChildRequest {
|
|
|
49
49
|
* @memberof GetAllProductChildRequest
|
|
50
50
|
*/
|
|
51
51
|
relatedType?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof GetAllProductChildRequest
|
|
56
|
+
*/
|
|
57
|
+
siteId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof GetAllProductChildRequest
|
|
62
|
+
*/
|
|
63
|
+
isDisabled?: Array<string>;
|
|
52
64
|
}
|
|
53
65
|
|
|
54
66
|
|
|
@@ -57,18 +69,14 @@ export interface GetAllProductChildRequest {
|
|
|
57
69
|
*/
|
|
58
70
|
export const GetAllProductChildRequestSortByEnum = {
|
|
59
71
|
Id: 'id',
|
|
60
|
-
|
|
72
|
+
ProductChildName: 'productChild.name',
|
|
61
73
|
ParentName: 'parent.name',
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
NewArrivalStartDate: 'new_arrival_start_date',
|
|
69
|
-
NewArrivalEndDate: 'new_arrival_end_date',
|
|
70
|
-
CreatedAt: 'created_at',
|
|
71
|
-
UpdatedAt: 'updated_at'
|
|
74
|
+
Name: 'name',
|
|
75
|
+
Slug: 'slug',
|
|
76
|
+
ProductChildSku: 'productChild.sku',
|
|
77
|
+
ProductChildModel: 'productChild.model',
|
|
78
|
+
ProductChildNetsuiteId: 'productChild.netsuite_id',
|
|
79
|
+
ProductChildOmnisendId: 'productChild.omnisend_id'
|
|
72
80
|
} as const;
|
|
73
81
|
export type GetAllProductChildRequestSortByEnum = typeof GetAllProductChildRequestSortByEnum[keyof typeof GetAllProductChildRequestSortByEnum];
|
|
74
82
|
|
|
@@ -104,6 +112,8 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
104
112
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
105
113
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
106
114
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
115
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
116
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
107
117
|
};
|
|
108
118
|
}
|
|
109
119
|
|
|
@@ -123,6 +133,8 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
123
133
|
'sortDirection': value['sortDirection'],
|
|
124
134
|
'related_id': value['relatedId'],
|
|
125
135
|
'related_type': value['relatedType'],
|
|
136
|
+
'site_id': value['siteId'],
|
|
137
|
+
'is_disabled': value['isDisabled'],
|
|
126
138
|
};
|
|
127
139
|
}
|
|
128
140
|
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductChildSiteDetailsListResource } from './ProductChildSiteDetailsListResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductChildSiteDetailsListResourceFromJSON,
|
|
26
|
+
ProductChildSiteDetailsListResourceFromJSONTyped,
|
|
27
|
+
ProductChildSiteDetailsListResourceToJSON,
|
|
28
|
+
ProductChildSiteDetailsListResourceToJSONTyped,
|
|
29
|
+
} from './ProductChildSiteDetailsListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductChildSiteDetailsListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductChildSiteDetailsListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductChildSiteDetailsListResource>}
|
|
40
|
+
* @memberof PaginatedProductChildSiteDetailsListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductChildSiteDetailsListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductChildSiteDetailsListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductChildSiteDetailsListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductChildSiteDetailsListResourceResponse(value: object): value is PaginatedProductChildSiteDetailsListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductChildSiteDetailsListResourceResponseFromJSON(json: any): PaginatedProductChildSiteDetailsListResourceResponse {
|
|
61
|
+
return PaginatedProductChildSiteDetailsListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductChildSiteDetailsListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductChildSiteDetailsListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductChildSiteDetailsListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductChildSiteDetailsListResourceResponseToJSON(json: any): PaginatedProductChildSiteDetailsListResourceResponse {
|
|
76
|
+
return PaginatedProductChildSiteDetailsListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductChildSiteDetailsListResourceResponseToJSONTyped(value?: PaginatedProductChildSiteDetailsListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductChildSiteDetailsListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductChildSiteDetailResource } from './ProductChildSiteDetailResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductChildSiteDetailResourceFromJSON,
|
|
19
|
+
ProductChildSiteDetailResourceFromJSONTyped,
|
|
20
|
+
ProductChildSiteDetailResourceToJSON,
|
|
21
|
+
ProductChildSiteDetailResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildSiteDetailResource';
|
|
16
23
|
import type { ModelAttributeResource } from './ModelAttributeResource';
|
|
17
24
|
import {
|
|
18
25
|
ModelAttributeResourceFromJSON,
|
|
@@ -169,10 +176,10 @@ export interface ProductChildResource {
|
|
|
169
176
|
tags: object;
|
|
170
177
|
/**
|
|
171
178
|
*
|
|
172
|
-
* @type {
|
|
179
|
+
* @type {Array<ProductChildSiteDetailResource>}
|
|
173
180
|
* @memberof ProductChildResource
|
|
174
181
|
*/
|
|
175
|
-
siteDetails:
|
|
182
|
+
siteDetails: Array<ProductChildSiteDetailResource> | null;
|
|
176
183
|
/**
|
|
177
184
|
*
|
|
178
185
|
* @type {Array<ProductChildRelationResource>}
|
|
@@ -266,7 +273,7 @@ export function ProductChildResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
266
273
|
'omnisendId': json['omnisendId'],
|
|
267
274
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
268
275
|
'tags': json['tags'],
|
|
269
|
-
'siteDetails': json['siteDetails'],
|
|
276
|
+
'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailResourceFromJSON)),
|
|
270
277
|
'accessories': (json['accessories'] == null ? null : (json['accessories'] as Array<any>).map(ProductChildRelationResourceFromJSON)),
|
|
271
278
|
'compatibleProducts': (json['compatibleProducts'] == null ? null : (json['compatibleProducts'] as Array<any>).map(ProductChildRelationResourceFromJSON)),
|
|
272
279
|
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(AssetResourceFromJSON)),
|
|
@@ -307,7 +314,7 @@ export function ProductChildResourceToJSONTyped(value?: ProductChildResource | n
|
|
|
307
314
|
'omnisendId': value['omnisendId'],
|
|
308
315
|
'isDisabled': value['isDisabled'],
|
|
309
316
|
'tags': value['tags'],
|
|
310
|
-
'siteDetails': value['siteDetails'],
|
|
317
|
+
'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailResourceToJSON)),
|
|
311
318
|
'accessories': (value['accessories'] == null ? null : (value['accessories'] as Array<any>).map(ProductChildRelationResourceToJSON)),
|
|
312
319
|
'compatibleProducts': (value['compatibleProducts'] == null ? null : (value['compatibleProducts'] as Array<any>).map(ProductChildRelationResourceToJSON)),
|
|
313
320
|
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetResourceToJSON)),
|
|
@@ -0,0 +1,162 @@
|
|
|
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
|
+
import type { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
SiteLiteResourceFromJSON,
|
|
19
|
+
SiteLiteResourceFromJSONTyped,
|
|
20
|
+
SiteLiteResourceToJSON,
|
|
21
|
+
SiteLiteResourceToJSONTyped,
|
|
22
|
+
} from './SiteLiteResource';
|
|
23
|
+
import type { SEOResource } from './SEOResource';
|
|
24
|
+
import {
|
|
25
|
+
SEOResourceFromJSON,
|
|
26
|
+
SEOResourceFromJSONTyped,
|
|
27
|
+
SEOResourceToJSON,
|
|
28
|
+
SEOResourceToJSONTyped,
|
|
29
|
+
} from './SEOResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ProductChildSiteDetailResource
|
|
35
|
+
*/
|
|
36
|
+
export interface ProductChildSiteDetailResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ProductChildSiteDetailResource
|
|
41
|
+
*/
|
|
42
|
+
id: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {SiteLiteResource}
|
|
46
|
+
* @memberof ProductChildSiteDetailResource
|
|
47
|
+
*/
|
|
48
|
+
site: SiteLiteResource | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ProductChildSiteDetailResource
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ProductChildSiteDetailResource
|
|
59
|
+
*/
|
|
60
|
+
slug: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ProductChildSiteDetailResource
|
|
65
|
+
*/
|
|
66
|
+
description: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ProductChildSiteDetailResource
|
|
71
|
+
*/
|
|
72
|
+
displayName: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof ProductChildSiteDetailResource
|
|
77
|
+
*/
|
|
78
|
+
rrpPrice: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof ProductChildSiteDetailResource
|
|
83
|
+
*/
|
|
84
|
+
salePrice: number;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof ProductChildSiteDetailResource
|
|
89
|
+
*/
|
|
90
|
+
isDisabled: boolean;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {SEOResource}
|
|
94
|
+
* @memberof ProductChildSiteDetailResource
|
|
95
|
+
*/
|
|
96
|
+
seo: SEOResource | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the ProductChildSiteDetailResource interface.
|
|
101
|
+
*/
|
|
102
|
+
export function instanceOfProductChildSiteDetailResource(value: object): value is ProductChildSiteDetailResource {
|
|
103
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
104
|
+
if (!('site' in value) || value['site'] === undefined) return false;
|
|
105
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
106
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
107
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
108
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
109
|
+
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
|
|
110
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
111
|
+
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
112
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ProductChildSiteDetailResourceFromJSON(json: any): ProductChildSiteDetailResource {
|
|
117
|
+
return ProductChildSiteDetailResourceFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ProductChildSiteDetailResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailResource {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': json['id'],
|
|
127
|
+
'site': SiteLiteResourceFromJSON(json['site']),
|
|
128
|
+
'name': json['name'],
|
|
129
|
+
'slug': json['slug'],
|
|
130
|
+
'description': json['description'],
|
|
131
|
+
'displayName': json['displayName'],
|
|
132
|
+
'rrpPrice': json['rrpPrice'],
|
|
133
|
+
'salePrice': json['salePrice'],
|
|
134
|
+
'isDisabled': json['isDisabled'],
|
|
135
|
+
'seo': SEOResourceFromJSON(json['seo']),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function ProductChildSiteDetailResourceToJSON(json: any): ProductChildSiteDetailResource {
|
|
140
|
+
return ProductChildSiteDetailResourceToJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function ProductChildSiteDetailResourceToJSONTyped(value?: ProductChildSiteDetailResource | null, ignoreDiscriminator: boolean = false): any {
|
|
144
|
+
if (value == null) {
|
|
145
|
+
return value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
|
|
150
|
+
'id': value['id'],
|
|
151
|
+
'site': SiteLiteResourceToJSON(value['site']),
|
|
152
|
+
'name': value['name'],
|
|
153
|
+
'slug': value['slug'],
|
|
154
|
+
'description': value['description'],
|
|
155
|
+
'displayName': value['displayName'],
|
|
156
|
+
'rrpPrice': value['rrpPrice'],
|
|
157
|
+
'salePrice': value['salePrice'],
|
|
158
|
+
'isDisabled': value['isDisabled'],
|
|
159
|
+
'seo': SEOResourceToJSON(value['seo']),
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import type { ProductChildSiteDetailResource } from './ProductChildSiteDetailResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductChildSiteDetailResourceFromJSON,
|
|
19
|
+
ProductChildSiteDetailResourceFromJSONTyped,
|
|
20
|
+
ProductChildSiteDetailResourceToJSON,
|
|
21
|
+
ProductChildSiteDetailResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildSiteDetailResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductChildSiteDetailResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductChildSiteDetailResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductChildSiteDetailResource>}
|
|
33
|
+
* @memberof ProductChildSiteDetailResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductChildSiteDetailResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductChildSiteDetailResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductChildSiteDetailResourceArrayResponse(value: object): value is ProductChildSiteDetailResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductChildSiteDetailResourceArrayResponseFromJSON(json: any): ProductChildSiteDetailResourceArrayResponse {
|
|
46
|
+
return ProductChildSiteDetailResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductChildSiteDetailResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildSiteDetailResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductChildSiteDetailResourceArrayResponseToJSON(json: any): ProductChildSiteDetailResourceArrayResponse {
|
|
60
|
+
return ProductChildSiteDetailResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductChildSiteDetailResourceArrayResponseToJSONTyped(value?: ProductChildSiteDetailResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductChildSiteDetailResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|