@digital8/lighting-illusions-ts-sdk 0.0.612 → 0.0.613
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 +28 -16
- package/README.md +21 -10
- package/dist/apis/DefinitionApi.d.ts +85 -0
- package/dist/apis/DefinitionApi.js +355 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/DefinitionListResource.d.ts +44 -0
- package/dist/models/DefinitionListResource.js +59 -0
- package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
- package/dist/models/DefinitionLiteResource.d.ts +38 -0
- package/dist/models/DefinitionLiteResource.js +55 -0
- package/dist/models/DefinitionLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionLiteResourceArrayResponse.js +50 -0
- package/dist/models/DefinitionResource.d.ts +44 -0
- package/dist/models/DefinitionResource.js +59 -0
- package/dist/models/DefinitionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllDefinitionRequest.d.ts +80 -0
- package/dist/models/GetAllDefinitionRequest.js +76 -0
- package/dist/models/IndexDefinitionRequest.d.ts +92 -0
- package/dist/models/IndexDefinitionRequest.js +80 -0
- package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionListResourceResponse.js +57 -0
- package/dist/models/PaginatedDefinitionLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedDefinitionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionResourceResponse.js +57 -0
- package/dist/models/StoreDefinitionRequest.d.ts +38 -0
- package/dist/models/StoreDefinitionRequest.js +55 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
- package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
- package/dist/models/UpdateDefinitionRequest.js +55 -0
- package/dist/models/index.d.ts +13 -8
- package/dist/models/index.js +13 -8
- package/docs/DefinitionApi.md +407 -0
- package/docs/{DocumentFrontendResource.md → DefinitionListResource.md} +6 -6
- package/docs/{ProductCompareResourceArrayResponse.md → DefinitionListResourceArrayResponse.md} +5 -5
- package/docs/DefinitionLiteResource.md +36 -0
- package/docs/{DocumentFrontendResourceArrayResponse.md → DefinitionLiteResourceArrayResponse.md} +5 -5
- package/docs/DefinitionResource.md +38 -0
- package/docs/{AssetFrontendResourceArrayResponse.md → DefinitionResourceArrayResponse.md} +5 -5
- package/docs/GetAllDefinitionRequest.md +44 -0
- package/docs/IndexDefinitionRequest.md +48 -0
- package/docs/{OverlayTemplateAssetFrontendResourceArrayResponse.md → PaginatedDefinitionListResourceResponse.md} +7 -5
- package/docs/PaginatedDefinitionLiteResourceResponse.md +36 -0
- package/docs/PaginatedDefinitionResourceResponse.md +36 -0
- package/docs/StoreDefinitionRequest.md +36 -0
- package/docs/StoreProductCategoryRequest.md +1 -1
- package/docs/UpdateDefinitionRequest.md +36 -0
- package/package.json +1 -1
- package/src/apis/DefinitionApi.ts +286 -0
- package/src/apis/index.ts +1 -0
- package/src/models/DefinitionListResource.ts +84 -0
- package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
- package/src/models/DefinitionLiteResource.ts +75 -0
- package/src/models/DefinitionLiteResourceArrayResponse.ts +73 -0
- package/src/models/DefinitionResource.ts +84 -0
- package/src/models/DefinitionResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllDefinitionRequest.ts +127 -0
- package/src/models/IndexDefinitionRequest.ts +143 -0
- package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionResourceResponse.ts +90 -0
- package/src/models/StoreDefinitionRequest.ts +75 -0
- package/src/models/StoreProductCategoryRequest.ts +2 -2
- package/src/models/UpdateDefinitionRequest.ts +75 -0
- package/src/models/index.ts +13 -8
- package/dist/models/AssetFrontendResource.d.ts +0 -74
- package/dist/models/AssetFrontendResource.js +0 -79
- package/dist/models/AssetFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AssetFrontendResourceArrayResponse.js +0 -50
- package/dist/models/DocumentFrontendResource.d.ts +0 -44
- package/dist/models/DocumentFrontendResource.js +0 -57
- package/dist/models/DocumentFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/DocumentFrontendResourceArrayResponse.js +0 -50
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +0 -62
- package/dist/models/OverlayTemplateAssetFrontendResource.js +0 -71
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.js +0 -50
- package/dist/models/ProductCompareResource.d.ts +0 -141
- package/dist/models/ProductCompareResource.js +0 -124
- package/dist/models/ProductCompareResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductCompareResourceArrayResponse.js +0 -50
- package/docs/AssetFrontendResource.md +0 -48
- package/docs/OverlayTemplateAssetFrontendResource.md +0 -44
- package/docs/ProductCompareResource.md +0 -70
- package/src/models/AssetFrontendResource.ts +0 -129
- package/src/models/AssetFrontendResourceArrayResponse.ts +0 -73
- package/src/models/DocumentFrontendResource.ts +0 -83
- package/src/models/DocumentFrontendResourceArrayResponse.ts +0 -73
- package/src/models/OverlayTemplateAssetFrontendResource.ts +0 -111
- package/src/models/OverlayTemplateAssetFrontendResourceArrayResponse.ts +0 -73
- package/src/models/ProductCompareResource.ts +0 -236
- package/src/models/ProductCompareResourceArrayResponse.ts +0 -73
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfProductCompareResource = instanceOfProductCompareResource;
|
|
17
|
-
exports.ProductCompareResourceFromJSON = ProductCompareResourceFromJSON;
|
|
18
|
-
exports.ProductCompareResourceFromJSONTyped = ProductCompareResourceFromJSONTyped;
|
|
19
|
-
exports.ProductCompareResourceToJSON = ProductCompareResourceToJSON;
|
|
20
|
-
exports.ProductCompareResourceToJSONTyped = ProductCompareResourceToJSONTyped;
|
|
21
|
-
var AssetFrontendResource_1 = require("./AssetFrontendResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ProductCompareResource interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfProductCompareResource(value) {
|
|
26
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('sku' in value) || value['sku'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('model' in value) || value['model'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('stock' in value) || value['stock'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('warranty' in value) || value['warranty'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('slug' in value) || value['slug'] === undefined)
|
|
39
|
-
return false;
|
|
40
|
-
if (!('parentName' in value) || value['parentName'] === undefined)
|
|
41
|
-
return false;
|
|
42
|
-
if (!('price' in value) || value['price'] === undefined)
|
|
43
|
-
return false;
|
|
44
|
-
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
45
|
-
return false;
|
|
46
|
-
if (!('availability' in value) || value['availability'] === undefined)
|
|
47
|
-
return false;
|
|
48
|
-
if (!('optionsCount' in value) || value['optionsCount'] === undefined)
|
|
49
|
-
return false;
|
|
50
|
-
if (!('averageRating' in value) || value['averageRating'] === undefined)
|
|
51
|
-
return false;
|
|
52
|
-
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
53
|
-
return false;
|
|
54
|
-
if (!('supplierName' in value) || value['supplierName'] === undefined)
|
|
55
|
-
return false;
|
|
56
|
-
if (!('supplierLogo' in value) || value['supplierLogo'] === undefined)
|
|
57
|
-
return false;
|
|
58
|
-
if (!('specsData' in value) || value['specsData'] === undefined)
|
|
59
|
-
return false;
|
|
60
|
-
if (!('dimensionData' in value) || value['dimensionData'] === undefined)
|
|
61
|
-
return false;
|
|
62
|
-
if (!('performanceSpecsData' in value) || value['performanceSpecsData'] === undefined)
|
|
63
|
-
return false;
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
function ProductCompareResourceFromJSON(json) {
|
|
67
|
-
return ProductCompareResourceFromJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
function ProductCompareResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
|
-
if (json == null) {
|
|
71
|
-
return json;
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
'id': json['id'],
|
|
75
|
-
'sku': json['sku'],
|
|
76
|
-
'model': json['model'],
|
|
77
|
-
'stock': json['stock'],
|
|
78
|
-
'warranty': json['warranty'],
|
|
79
|
-
'name': json['name'],
|
|
80
|
-
'slug': json['slug'],
|
|
81
|
-
'parentName': json['parentName'],
|
|
82
|
-
'price': json['price'],
|
|
83
|
-
'salePrice': json['salePrice'],
|
|
84
|
-
'availability': json['availability'],
|
|
85
|
-
'optionsCount': json['optionsCount'],
|
|
86
|
-
'averageRating': json['averageRating'],
|
|
87
|
-
'thumbnail': (0, AssetFrontendResource_1.AssetFrontendResourceFromJSON)(json['thumbnail']),
|
|
88
|
-
'supplierName': json['supplierName'],
|
|
89
|
-
'supplierLogo': (0, AssetFrontendResource_1.AssetFrontendResourceFromJSON)(json['supplierLogo']),
|
|
90
|
-
'specsData': json['specsData'],
|
|
91
|
-
'dimensionData': json['dimensionData'],
|
|
92
|
-
'performanceSpecsData': json['performanceSpecsData'],
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function ProductCompareResourceToJSON(json) {
|
|
96
|
-
return ProductCompareResourceToJSONTyped(json, false);
|
|
97
|
-
}
|
|
98
|
-
function ProductCompareResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
99
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
100
|
-
if (value == null) {
|
|
101
|
-
return value;
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
'id': value['id'],
|
|
105
|
-
'sku': value['sku'],
|
|
106
|
-
'model': value['model'],
|
|
107
|
-
'stock': value['stock'],
|
|
108
|
-
'warranty': value['warranty'],
|
|
109
|
-
'name': value['name'],
|
|
110
|
-
'slug': value['slug'],
|
|
111
|
-
'parentName': value['parentName'],
|
|
112
|
-
'price': value['price'],
|
|
113
|
-
'salePrice': value['salePrice'],
|
|
114
|
-
'availability': value['availability'],
|
|
115
|
-
'optionsCount': value['optionsCount'],
|
|
116
|
-
'averageRating': value['averageRating'],
|
|
117
|
-
'thumbnail': (0, AssetFrontendResource_1.AssetFrontendResourceToJSON)(value['thumbnail']),
|
|
118
|
-
'supplierName': value['supplierName'],
|
|
119
|
-
'supplierLogo': (0, AssetFrontendResource_1.AssetFrontendResourceToJSON)(value['supplierLogo']),
|
|
120
|
-
'specsData': value['specsData'],
|
|
121
|
-
'dimensionData': value['dimensionData'],
|
|
122
|
-
'performanceSpecsData': value['performanceSpecsData'],
|
|
123
|
-
};
|
|
124
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
import type { ProductCompareResource } from './ProductCompareResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ProductCompareResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ProductCompareResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<ProductCompareResource>}
|
|
22
|
-
* @memberof ProductCompareResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<ProductCompareResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ProductCompareResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfProductCompareResourceArrayResponse(value: object): value is ProductCompareResourceArrayResponse;
|
|
30
|
-
export declare function ProductCompareResourceArrayResponseFromJSON(json: any): ProductCompareResourceArrayResponse;
|
|
31
|
-
export declare function ProductCompareResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCompareResourceArrayResponse;
|
|
32
|
-
export declare function ProductCompareResourceArrayResponseToJSON(json: any): ProductCompareResourceArrayResponse;
|
|
33
|
-
export declare function ProductCompareResourceArrayResponseToJSONTyped(value?: ProductCompareResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfProductCompareResourceArrayResponse = instanceOfProductCompareResourceArrayResponse;
|
|
17
|
-
exports.ProductCompareResourceArrayResponseFromJSON = ProductCompareResourceArrayResponseFromJSON;
|
|
18
|
-
exports.ProductCompareResourceArrayResponseFromJSONTyped = ProductCompareResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.ProductCompareResourceArrayResponseToJSON = ProductCompareResourceArrayResponseToJSON;
|
|
20
|
-
exports.ProductCompareResourceArrayResponseToJSONTyped = ProductCompareResourceArrayResponseToJSONTyped;
|
|
21
|
-
var ProductCompareResource_1 = require("./ProductCompareResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ProductCompareResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfProductCompareResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function ProductCompareResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return ProductCompareResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function ProductCompareResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(ProductCompareResource_1.ProductCompareResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function ProductCompareResourceArrayResponseToJSON(json) {
|
|
40
|
-
return ProductCompareResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ProductCompareResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(ProductCompareResource_1.ProductCompareResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`filePath` | string
|
|
11
|
-
`fileName` | string
|
|
12
|
-
`altText` | string
|
|
13
|
-
`index` | number
|
|
14
|
-
`isThumbnail` | boolean
|
|
15
|
-
`isLifestyle` | boolean
|
|
16
|
-
`overlays` | object
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import type { AssetFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
-
|
|
23
|
-
// TODO: Update the object below with actual values
|
|
24
|
-
const example = {
|
|
25
|
-
"id": null,
|
|
26
|
-
"filePath": null,
|
|
27
|
-
"fileName": null,
|
|
28
|
-
"altText": null,
|
|
29
|
-
"index": null,
|
|
30
|
-
"isThumbnail": null,
|
|
31
|
-
"isLifestyle": null,
|
|
32
|
-
"overlays": null,
|
|
33
|
-
} satisfies AssetFrontendResource
|
|
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 AssetFrontendResource
|
|
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,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# OverlayTemplateAssetFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`position` | string
|
|
11
|
-
`padding` | number
|
|
12
|
-
`horizontalMargin` | number
|
|
13
|
-
`verticalMargin` | number
|
|
14
|
-
`image` | Array<string>
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import type { OverlayTemplateAssetFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
-
|
|
21
|
-
// TODO: Update the object below with actual values
|
|
22
|
-
const example = {
|
|
23
|
-
"id": null,
|
|
24
|
-
"position": null,
|
|
25
|
-
"padding": null,
|
|
26
|
-
"horizontalMargin": null,
|
|
27
|
-
"verticalMargin": null,
|
|
28
|
-
"image": null,
|
|
29
|
-
} satisfies OverlayTemplateAssetFrontendResource
|
|
30
|
-
|
|
31
|
-
console.log(example)
|
|
32
|
-
|
|
33
|
-
// Convert the instance to a JSON string
|
|
34
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
-
console.log(exampleJSON)
|
|
36
|
-
|
|
37
|
-
// Parse the JSON string back to an object
|
|
38
|
-
const exampleParsed = JSON.parse(exampleJSON) as OverlayTemplateAssetFrontendResource
|
|
39
|
-
console.log(exampleParsed)
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
-
|
|
44
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductCompareResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`sku` | number
|
|
11
|
-
`model` | string
|
|
12
|
-
`stock` | number
|
|
13
|
-
`warranty` | string
|
|
14
|
-
`name` | string
|
|
15
|
-
`slug` | string
|
|
16
|
-
`parentName` | string
|
|
17
|
-
`price` | number
|
|
18
|
-
`salePrice` | number
|
|
19
|
-
`availability` | number
|
|
20
|
-
`optionsCount` | number
|
|
21
|
-
`averageRating` | number
|
|
22
|
-
`thumbnail` | [AssetFrontendResource](AssetFrontendResource.md)
|
|
23
|
-
`supplierName` | string
|
|
24
|
-
`supplierLogo` | [AssetFrontendResource](AssetFrontendResource.md)
|
|
25
|
-
`specsData` | Array<object>
|
|
26
|
-
`dimensionData` | Array<object>
|
|
27
|
-
`performanceSpecsData` | Array<object>
|
|
28
|
-
|
|
29
|
-
## Example
|
|
30
|
-
|
|
31
|
-
```typescript
|
|
32
|
-
import type { ProductCompareResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
33
|
-
|
|
34
|
-
// TODO: Update the object below with actual values
|
|
35
|
-
const example = {
|
|
36
|
-
"id": null,
|
|
37
|
-
"sku": null,
|
|
38
|
-
"model": null,
|
|
39
|
-
"stock": null,
|
|
40
|
-
"warranty": null,
|
|
41
|
-
"name": null,
|
|
42
|
-
"slug": null,
|
|
43
|
-
"parentName": null,
|
|
44
|
-
"price": null,
|
|
45
|
-
"salePrice": null,
|
|
46
|
-
"availability": null,
|
|
47
|
-
"optionsCount": null,
|
|
48
|
-
"averageRating": null,
|
|
49
|
-
"thumbnail": null,
|
|
50
|
-
"supplierName": null,
|
|
51
|
-
"supplierLogo": null,
|
|
52
|
-
"specsData": null,
|
|
53
|
-
"dimensionData": null,
|
|
54
|
-
"performanceSpecsData": null,
|
|
55
|
-
} satisfies ProductCompareResource
|
|
56
|
-
|
|
57
|
-
console.log(example)
|
|
58
|
-
|
|
59
|
-
// Convert the instance to a JSON string
|
|
60
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
61
|
-
console.log(exampleJSON)
|
|
62
|
-
|
|
63
|
-
// Parse the JSON string back to an object
|
|
64
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductCompareResource
|
|
65
|
-
console.log(exampleParsed)
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
69
|
-
|
|
70
|
-
|
|
@@ -1,129 +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
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface AssetFrontendResource
|
|
20
|
-
*/
|
|
21
|
-
export interface AssetFrontendResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof AssetFrontendResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof AssetFrontendResource
|
|
32
|
-
*/
|
|
33
|
-
filePath: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof AssetFrontendResource
|
|
38
|
-
*/
|
|
39
|
-
fileName: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof AssetFrontendResource
|
|
44
|
-
*/
|
|
45
|
-
altText: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof AssetFrontendResource
|
|
50
|
-
*/
|
|
51
|
-
index: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @memberof AssetFrontendResource
|
|
56
|
-
*/
|
|
57
|
-
isThumbnail: boolean;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {boolean}
|
|
61
|
-
* @memberof AssetFrontendResource
|
|
62
|
-
*/
|
|
63
|
-
isLifestyle: boolean;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {object}
|
|
67
|
-
* @memberof AssetFrontendResource
|
|
68
|
-
*/
|
|
69
|
-
overlays: object;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Check if a given object implements the AssetFrontendResource interface.
|
|
74
|
-
*/
|
|
75
|
-
export function instanceOfAssetFrontendResource(value: object): value is AssetFrontendResource {
|
|
76
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
-
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
78
|
-
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
79
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
80
|
-
if (!('index' in value) || value['index'] === undefined) return false;
|
|
81
|
-
if (!('isThumbnail' in value) || value['isThumbnail'] === undefined) return false;
|
|
82
|
-
if (!('isLifestyle' in value) || value['isLifestyle'] === undefined) return false;
|
|
83
|
-
if (!('overlays' in value) || value['overlays'] === undefined) return false;
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function AssetFrontendResourceFromJSON(json: any): AssetFrontendResource {
|
|
88
|
-
return AssetFrontendResourceFromJSONTyped(json, false);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function AssetFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFrontendResource {
|
|
92
|
-
if (json == null) {
|
|
93
|
-
return json;
|
|
94
|
-
}
|
|
95
|
-
return {
|
|
96
|
-
|
|
97
|
-
'id': json['id'],
|
|
98
|
-
'filePath': json['filePath'],
|
|
99
|
-
'fileName': json['fileName'],
|
|
100
|
-
'altText': json['altText'],
|
|
101
|
-
'index': json['index'],
|
|
102
|
-
'isThumbnail': json['isThumbnail'],
|
|
103
|
-
'isLifestyle': json['isLifestyle'],
|
|
104
|
-
'overlays': json['overlays'],
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function AssetFrontendResourceToJSON(json: any): AssetFrontendResource {
|
|
109
|
-
return AssetFrontendResourceToJSONTyped(json, false);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function AssetFrontendResourceToJSONTyped(value?: AssetFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
-
if (value == null) {
|
|
114
|
-
return value;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return {
|
|
118
|
-
|
|
119
|
-
'id': value['id'],
|
|
120
|
-
'filePath': value['filePath'],
|
|
121
|
-
'fileName': value['fileName'],
|
|
122
|
-
'altText': value['altText'],
|
|
123
|
-
'index': value['index'],
|
|
124
|
-
'isThumbnail': value['isThumbnail'],
|
|
125
|
-
'isLifestyle': value['isLifestyle'],
|
|
126
|
-
'overlays': value['overlays'],
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
@@ -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 { AssetFrontendResource } from './AssetFrontendResource';
|
|
17
|
-
import {
|
|
18
|
-
AssetFrontendResourceFromJSON,
|
|
19
|
-
AssetFrontendResourceFromJSONTyped,
|
|
20
|
-
AssetFrontendResourceToJSON,
|
|
21
|
-
AssetFrontendResourceToJSONTyped,
|
|
22
|
-
} from './AssetFrontendResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface AssetFrontendResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface AssetFrontendResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<AssetFrontendResource>}
|
|
33
|
-
* @memberof AssetFrontendResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<AssetFrontendResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the AssetFrontendResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfAssetFrontendResourceArrayResponse(value: object): value is AssetFrontendResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function AssetFrontendResourceArrayResponseFromJSON(json: any): AssetFrontendResourceArrayResponse {
|
|
46
|
-
return AssetFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function AssetFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFrontendResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetFrontendResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function AssetFrontendResourceArrayResponseToJSON(json: any): AssetFrontendResourceArrayResponse {
|
|
60
|
-
return AssetFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function AssetFrontendResourceArrayResponseToJSONTyped(value?: AssetFrontendResourceArrayResponse | 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(AssetFrontendResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,83 +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
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DocumentFrontendResource
|
|
20
|
-
*/
|
|
21
|
-
export interface DocumentFrontendResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof DocumentFrontendResource
|
|
26
|
-
*/
|
|
27
|
-
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof DocumentFrontendResource
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof DocumentFrontendResource
|
|
38
|
-
*/
|
|
39
|
-
fileUrl: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the DocumentFrontendResource interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfDocumentFrontendResource(value: object): value is DocumentFrontendResource {
|
|
46
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
-
if (!('fileUrl' in value) || value['fileUrl'] === undefined) return false;
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function DocumentFrontendResourceFromJSON(json: any): DocumentFrontendResource {
|
|
52
|
-
return DocumentFrontendResourceFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function DocumentFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentFrontendResource {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
62
|
-
'name': json['name'],
|
|
63
|
-
'fileUrl': json['fileUrl'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function DocumentFrontendResourceToJSON(json: any): DocumentFrontendResource {
|
|
68
|
-
return DocumentFrontendResourceToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function DocumentFrontendResourceToJSONTyped(value?: DocumentFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'id': value['id'],
|
|
79
|
-
'name': value['name'],
|
|
80
|
-
'fileUrl': value['fileUrl'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|