@digital8/lighting-illusions-ts-sdk 0.0.1816 → 0.0.1818
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 +0 -14
- package/README.md +2 -9
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/BlogCategoryLiteResource.d.ts +0 -6
- package/dist/models/BlogCategoryLiteResource.js +0 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/PageComponentRelationResource.d.ts +0 -7
- package/dist/models/PageComponentRelationResource.js +0 -5
- package/dist/models/PageComponentResource.d.ts +0 -6
- package/dist/models/PageComponentResource.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +6 -2
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- 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/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/docs/BlogCategoryLiteResource.md +0 -2
- package/docs/PageComponentRelationResource.md +0 -2
- package/docs/PageComponentResource.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/BlogCategoryLiteResource.ts +0 -9
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/PageComponentRelationResource.ts +0 -17
- package/src/models/PageComponentResource.ts +0 -8
- package/src/models/StoreFrontendResource.ts +6 -4
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/index.ts +0 -7
- package/dist/models/PaginatedProductChildFrontendResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductChildFrontendResourceResponse.js +0 -57
- package/dist/models/ProductChildFrontendResource.d.ts +0 -77
- package/dist/models/ProductChildFrontendResource.js +0 -82
- package/dist/models/ProductChildFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildFrontendResourceArrayResponse.js +0 -50
- package/dist/models/ProductChildSiteDetailFrontendResource.d.ts +0 -75
- package/dist/models/ProductChildSiteDetailFrontendResource.js +0 -78
- package/dist/models/ProductChildSiteDetailFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildSiteDetailFrontendResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSiteDetailFrontendResource.d.ts +0 -68
- package/dist/models/ProductRangeSiteDetailFrontendResource.js +0 -73
- package/dist/models/ProductRangeSiteDetailFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSiteDetailFrontendResourceArrayResponse.js +0 -50
- package/docs/PaginatedProductChildFrontendResourceResponse.md +0 -36
- package/docs/ProductChildFrontendResource.md +0 -48
- package/docs/ProductChildFrontendResourceArrayResponse.md +0 -34
- package/docs/ProductChildSiteDetailFrontendResource.md +0 -48
- package/docs/ProductChildSiteDetailFrontendResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSiteDetailFrontendResource.md +0 -46
- package/docs/ProductRangeSiteDetailFrontendResourceArrayResponse.md +0 -34
- package/src/models/PaginatedProductChildFrontendResourceResponse.ts +0 -90
- package/src/models/ProductChildFrontendResource.ts +0 -151
- package/src/models/ProductChildFrontendResourceArrayResponse.ts +0 -73
- package/src/models/ProductChildSiteDetailFrontendResource.ts +0 -136
- package/src/models/ProductChildSiteDetailFrontendResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSiteDetailFrontendResource.ts +0 -119
- package/src/models/ProductRangeSiteDetailFrontendResourceArrayResponse.ts +0 -73
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductChildSiteDetailFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`siteId` | number
|
|
11
|
-
`name` | string
|
|
12
|
-
`slug` | string
|
|
13
|
-
`rrpPrice` | number
|
|
14
|
-
`salePrice` | number
|
|
15
|
-
`label` | [LabelLiteResource](LabelLiteResource.md)
|
|
16
|
-
`averageRating` | string
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import type { ProductChildSiteDetailFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
-
|
|
23
|
-
// TODO: Update the object below with actual values
|
|
24
|
-
const example = {
|
|
25
|
-
"id": null,
|
|
26
|
-
"siteId": null,
|
|
27
|
-
"name": null,
|
|
28
|
-
"slug": null,
|
|
29
|
-
"rrpPrice": null,
|
|
30
|
-
"salePrice": null,
|
|
31
|
-
"label": null,
|
|
32
|
-
"averageRating": null,
|
|
33
|
-
} satisfies ProductChildSiteDetailFrontendResource
|
|
34
|
-
|
|
35
|
-
console.log(example)
|
|
36
|
-
|
|
37
|
-
// Convert the instance to a JSON string
|
|
38
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
-
console.log(exampleJSON)
|
|
40
|
-
|
|
41
|
-
// Parse the JSON string back to an object
|
|
42
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductChildSiteDetailFrontendResource
|
|
43
|
-
console.log(exampleParsed)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
-
|
|
48
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductChildSiteDetailFrontendResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductChildSiteDetailFrontendResource>](ProductChildSiteDetailFrontendResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductChildSiteDetailFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductChildSiteDetailFrontendResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductChildSiteDetailFrontendResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRangeSiteDetailFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`siteId` | number
|
|
11
|
-
`slug` | string
|
|
12
|
-
`name` | string
|
|
13
|
-
`description` | string
|
|
14
|
-
`content` | string
|
|
15
|
-
`thumbnail` | string
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import type { ProductRangeSiteDetailFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
-
|
|
22
|
-
// TODO: Update the object below with actual values
|
|
23
|
-
const example = {
|
|
24
|
-
"id": null,
|
|
25
|
-
"siteId": null,
|
|
26
|
-
"slug": null,
|
|
27
|
-
"name": null,
|
|
28
|
-
"description": null,
|
|
29
|
-
"content": null,
|
|
30
|
-
"thumbnail": null,
|
|
31
|
-
} satisfies ProductRangeSiteDetailFrontendResource
|
|
32
|
-
|
|
33
|
-
console.log(example)
|
|
34
|
-
|
|
35
|
-
// Convert the instance to a JSON string
|
|
36
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
-
console.log(exampleJSON)
|
|
38
|
-
|
|
39
|
-
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductRangeSiteDetailFrontendResource
|
|
41
|
-
console.log(exampleParsed)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
-
|
|
46
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRangeSiteDetailFrontendResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRangeSiteDetailFrontendResource>](ProductRangeSiteDetailFrontendResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRangeSiteDetailFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRangeSiteDetailFrontendResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductRangeSiteDetailFrontendResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
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 { ProductChildFrontendResource } from './ProductChildFrontendResource';
|
|
24
|
-
import {
|
|
25
|
-
ProductChildFrontendResourceFromJSON,
|
|
26
|
-
ProductChildFrontendResourceFromJSONTyped,
|
|
27
|
-
ProductChildFrontendResourceToJSON,
|
|
28
|
-
ProductChildFrontendResourceToJSONTyped,
|
|
29
|
-
} from './ProductChildFrontendResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedProductChildFrontendResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedProductChildFrontendResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<ProductChildFrontendResource>}
|
|
40
|
-
* @memberof PaginatedProductChildFrontendResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<ProductChildFrontendResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedProductChildFrontendResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedProductChildFrontendResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedProductChildFrontendResourceResponse(value: object): value is PaginatedProductChildFrontendResourceResponse {
|
|
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 PaginatedProductChildFrontendResourceResponseFromJSON(json: any): PaginatedProductChildFrontendResourceResponse {
|
|
61
|
-
return PaginatedProductChildFrontendResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedProductChildFrontendResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductChildFrontendResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(ProductChildFrontendResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedProductChildFrontendResourceResponseToJSON(json: any): PaginatedProductChildFrontendResourceResponse {
|
|
76
|
-
return PaginatedProductChildFrontendResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedProductChildFrontendResourceResponseToJSONTyped(value?: PaginatedProductChildFrontendResourceResponse | 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(ProductChildFrontendResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,151 +0,0 @@
|
|
|
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 { SupplierFrontendResource } from './SupplierFrontendResource';
|
|
17
|
-
import {
|
|
18
|
-
SupplierFrontendResourceFromJSON,
|
|
19
|
-
SupplierFrontendResourceFromJSONTyped,
|
|
20
|
-
SupplierFrontendResourceToJSON,
|
|
21
|
-
SupplierFrontendResourceToJSONTyped,
|
|
22
|
-
} from './SupplierFrontendResource';
|
|
23
|
-
import type { ProductChildSiteDetailFrontendResource } from './ProductChildSiteDetailFrontendResource';
|
|
24
|
-
import {
|
|
25
|
-
ProductChildSiteDetailFrontendResourceFromJSON,
|
|
26
|
-
ProductChildSiteDetailFrontendResourceFromJSONTyped,
|
|
27
|
-
ProductChildSiteDetailFrontendResourceToJSON,
|
|
28
|
-
ProductChildSiteDetailFrontendResourceToJSONTyped,
|
|
29
|
-
} from './ProductChildSiteDetailFrontendResource';
|
|
30
|
-
import type { AssetLiteResource } from './AssetLiteResource';
|
|
31
|
-
import {
|
|
32
|
-
AssetLiteResourceFromJSON,
|
|
33
|
-
AssetLiteResourceFromJSONTyped,
|
|
34
|
-
AssetLiteResourceToJSON,
|
|
35
|
-
AssetLiteResourceToJSONTyped,
|
|
36
|
-
} from './AssetLiteResource';
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @export
|
|
41
|
-
* @interface ProductChildFrontendResource
|
|
42
|
-
*/
|
|
43
|
-
export interface ProductChildFrontendResource {
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof ProductChildFrontendResource
|
|
48
|
-
*/
|
|
49
|
-
id: number;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof ProductChildFrontendResource
|
|
54
|
-
*/
|
|
55
|
-
sku: number;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof ProductChildFrontendResource
|
|
60
|
-
*/
|
|
61
|
-
model: string;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof ProductChildFrontendResource
|
|
66
|
-
*/
|
|
67
|
-
parentName: string;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {number}
|
|
71
|
-
* @memberof ProductChildFrontendResource
|
|
72
|
-
*/
|
|
73
|
-
variations: number;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {AssetLiteResource}
|
|
77
|
-
* @memberof ProductChildFrontendResource
|
|
78
|
-
*/
|
|
79
|
-
thumbnail: AssetLiteResource | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {SupplierFrontendResource}
|
|
83
|
-
* @memberof ProductChildFrontendResource
|
|
84
|
-
*/
|
|
85
|
-
supplier: SupplierFrontendResource | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {Array<ProductChildSiteDetailFrontendResource>}
|
|
89
|
-
* @memberof ProductChildFrontendResource
|
|
90
|
-
*/
|
|
91
|
-
siteDetails: Array<ProductChildSiteDetailFrontendResource> | null;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Check if a given object implements the ProductChildFrontendResource interface.
|
|
96
|
-
*/
|
|
97
|
-
export function instanceOfProductChildFrontendResource(value: object): value is ProductChildFrontendResource {
|
|
98
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
99
|
-
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
100
|
-
if (!('model' in value) || value['model'] === undefined) return false;
|
|
101
|
-
if (!('parentName' in value) || value['parentName'] === undefined) return false;
|
|
102
|
-
if (!('variations' in value) || value['variations'] === undefined) return false;
|
|
103
|
-
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
104
|
-
if (!('supplier' in value) || value['supplier'] === undefined) return false;
|
|
105
|
-
if (!('siteDetails' in value) || value['siteDetails'] === undefined) return false;
|
|
106
|
-
return true;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export function ProductChildFrontendResourceFromJSON(json: any): ProductChildFrontendResource {
|
|
110
|
-
return ProductChildFrontendResourceFromJSONTyped(json, false);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function ProductChildFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildFrontendResource {
|
|
114
|
-
if (json == null) {
|
|
115
|
-
return json;
|
|
116
|
-
}
|
|
117
|
-
return {
|
|
118
|
-
|
|
119
|
-
'id': json['id'],
|
|
120
|
-
'sku': json['sku'],
|
|
121
|
-
'model': json['model'],
|
|
122
|
-
'parentName': json['parentName'],
|
|
123
|
-
'variations': json['variations'],
|
|
124
|
-
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
125
|
-
'supplier': SupplierFrontendResourceFromJSON(json['supplier']),
|
|
126
|
-
'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailFrontendResourceFromJSON)),
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export function ProductChildFrontendResourceToJSON(json: any): ProductChildFrontendResource {
|
|
131
|
-
return ProductChildFrontendResourceToJSONTyped(json, false);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export function ProductChildFrontendResourceToJSONTyped(value?: ProductChildFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
135
|
-
if (value == null) {
|
|
136
|
-
return value;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return {
|
|
140
|
-
|
|
141
|
-
'id': value['id'],
|
|
142
|
-
'sku': value['sku'],
|
|
143
|
-
'model': value['model'],
|
|
144
|
-
'parentName': value['parentName'],
|
|
145
|
-
'variations': value['variations'],
|
|
146
|
-
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
147
|
-
'supplier': SupplierFrontendResourceToJSON(value['supplier']),
|
|
148
|
-
'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailFrontendResourceToJSON)),
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { ProductChildFrontendResource } from './ProductChildFrontendResource';
|
|
17
|
-
import {
|
|
18
|
-
ProductChildFrontendResourceFromJSON,
|
|
19
|
-
ProductChildFrontendResourceFromJSONTyped,
|
|
20
|
-
ProductChildFrontendResourceToJSON,
|
|
21
|
-
ProductChildFrontendResourceToJSONTyped,
|
|
22
|
-
} from './ProductChildFrontendResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ProductChildFrontendResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductChildFrontendResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ProductChildFrontendResource>}
|
|
33
|
-
* @memberof ProductChildFrontendResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<ProductChildFrontendResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the ProductChildFrontendResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfProductChildFrontendResourceArrayResponse(value: object): value is ProductChildFrontendResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ProductChildFrontendResourceArrayResponseFromJSON(json: any): ProductChildFrontendResourceArrayResponse {
|
|
46
|
-
return ProductChildFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ProductChildFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildFrontendResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildFrontendResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductChildFrontendResourceArrayResponseToJSON(json: any): ProductChildFrontendResourceArrayResponse {
|
|
60
|
-
return ProductChildFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductChildFrontendResourceArrayResponseToJSONTyped(value?: ProductChildFrontendResourceArrayResponse | 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(ProductChildFrontendResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,136 +0,0 @@
|
|
|
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 { LabelLiteResource } from './LabelLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
LabelLiteResourceFromJSON,
|
|
19
|
-
LabelLiteResourceFromJSONTyped,
|
|
20
|
-
LabelLiteResourceToJSON,
|
|
21
|
-
LabelLiteResourceToJSONTyped,
|
|
22
|
-
} from './LabelLiteResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ProductChildSiteDetailFrontendResource
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductChildSiteDetailFrontendResource {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ProductChildSiteDetailFrontendResource
|
|
34
|
-
*/
|
|
35
|
-
id: number;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ProductChildSiteDetailFrontendResource
|
|
40
|
-
*/
|
|
41
|
-
siteId: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof ProductChildSiteDetailFrontendResource
|
|
46
|
-
*/
|
|
47
|
-
name: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof ProductChildSiteDetailFrontendResource
|
|
52
|
-
*/
|
|
53
|
-
slug: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof ProductChildSiteDetailFrontendResource
|
|
58
|
-
*/
|
|
59
|
-
rrpPrice: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {number}
|
|
63
|
-
* @memberof ProductChildSiteDetailFrontendResource
|
|
64
|
-
*/
|
|
65
|
-
salePrice: number;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {LabelLiteResource}
|
|
69
|
-
* @memberof ProductChildSiteDetailFrontendResource
|
|
70
|
-
*/
|
|
71
|
-
label: LabelLiteResource | null;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof ProductChildSiteDetailFrontendResource
|
|
76
|
-
*/
|
|
77
|
-
averageRating?: string | null;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Check if a given object implements the ProductChildSiteDetailFrontendResource interface.
|
|
82
|
-
*/
|
|
83
|
-
export function instanceOfProductChildSiteDetailFrontendResource(value: object): value is ProductChildSiteDetailFrontendResource {
|
|
84
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
85
|
-
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
86
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
87
|
-
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
88
|
-
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
|
|
89
|
-
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
90
|
-
if (!('label' in value) || value['label'] === undefined) return false;
|
|
91
|
-
return true;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function ProductChildSiteDetailFrontendResourceFromJSON(json: any): ProductChildSiteDetailFrontendResource {
|
|
95
|
-
return ProductChildSiteDetailFrontendResourceFromJSONTyped(json, false);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export function ProductChildSiteDetailFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailFrontendResource {
|
|
99
|
-
if (json == null) {
|
|
100
|
-
return json;
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
|
|
104
|
-
'id': json['id'],
|
|
105
|
-
'siteId': json['siteId'],
|
|
106
|
-
'name': json['name'],
|
|
107
|
-
'slug': json['slug'],
|
|
108
|
-
'rrpPrice': json['rrpPrice'],
|
|
109
|
-
'salePrice': json['salePrice'],
|
|
110
|
-
'label': LabelLiteResourceFromJSON(json['label']),
|
|
111
|
-
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function ProductChildSiteDetailFrontendResourceToJSON(json: any): ProductChildSiteDetailFrontendResource {
|
|
116
|
-
return ProductChildSiteDetailFrontendResourceToJSONTyped(json, false);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function ProductChildSiteDetailFrontendResourceToJSONTyped(value?: ProductChildSiteDetailFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
-
if (value == null) {
|
|
121
|
-
return value;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return {
|
|
125
|
-
|
|
126
|
-
'id': value['id'],
|
|
127
|
-
'siteId': value['siteId'],
|
|
128
|
-
'name': value['name'],
|
|
129
|
-
'slug': value['slug'],
|
|
130
|
-
'rrpPrice': value['rrpPrice'],
|
|
131
|
-
'salePrice': value['salePrice'],
|
|
132
|
-
'label': LabelLiteResourceToJSON(value['label']),
|
|
133
|
-
'averageRating': value['averageRating'],
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { ProductChildSiteDetailFrontendResource } from './ProductChildSiteDetailFrontendResource';
|
|
17
|
-
import {
|
|
18
|
-
ProductChildSiteDetailFrontendResourceFromJSON,
|
|
19
|
-
ProductChildSiteDetailFrontendResourceFromJSONTyped,
|
|
20
|
-
ProductChildSiteDetailFrontendResourceToJSON,
|
|
21
|
-
ProductChildSiteDetailFrontendResourceToJSONTyped,
|
|
22
|
-
} from './ProductChildSiteDetailFrontendResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ProductChildSiteDetailFrontendResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductChildSiteDetailFrontendResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ProductChildSiteDetailFrontendResource>}
|
|
33
|
-
* @memberof ProductChildSiteDetailFrontendResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<ProductChildSiteDetailFrontendResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the ProductChildSiteDetailFrontendResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfProductChildSiteDetailFrontendResourceArrayResponse(value: object): value is ProductChildSiteDetailFrontendResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ProductChildSiteDetailFrontendResourceArrayResponseFromJSON(json: any): ProductChildSiteDetailFrontendResourceArrayResponse {
|
|
46
|
-
return ProductChildSiteDetailFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ProductChildSiteDetailFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailFrontendResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildSiteDetailFrontendResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductChildSiteDetailFrontendResourceArrayResponseToJSON(json: any): ProductChildSiteDetailFrontendResourceArrayResponse {
|
|
60
|
-
return ProductChildSiteDetailFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductChildSiteDetailFrontendResourceArrayResponseToJSONTyped(value?: ProductChildSiteDetailFrontendResourceArrayResponse | 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(ProductChildSiteDetailFrontendResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|