@digital8/lighting-illusions-ts-sdk 0.0.464 → 0.0.466
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 -10
- package/README.md +24 -18
- package/dist/apis/AttributeApi.d.ts +31 -31
- package/dist/apis/AttributeApi.js +92 -92
- package/dist/apis/OverlayTemplateApi.d.ts +37 -37
- package/dist/apis/OverlayTemplateApi.js +110 -110
- package/dist/apis/ProductApi.d.ts +73 -1
- package/dist/apis/ProductApi.js +292 -0
- package/dist/apis/ProductTypeApi.d.ts +31 -31
- package/dist/apis/ProductTypeApi.js +89 -89
- package/dist/apis/TagApi.d.ts +25 -25
- package/dist/apis/TagApi.js +81 -81
- package/dist/models/AssetLiteResource.d.ts +6 -0
- package/dist/models/AssetLiteResource.js +4 -0
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductChildRequest.js +51 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +32 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +51 -0
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +48 -0
- package/dist/models/AttachAttributeProductTypeRequest.js +65 -0
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +48 -0
- package/dist/models/AttachProductTypeAttributeRequest.js +65 -0
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +51 -0
- package/dist/models/{UnlinkAssetableOverlayTemplateRequest.js → DetachAssetableOverlayTemplateRequest.js} +15 -15
- package/dist/models/OverlayTemplateListResource.d.ts +7 -0
- package/dist/models/OverlayTemplateListResource.js +5 -0
- package/dist/models/ProductChildListResource.d.ts +12 -0
- package/dist/models/ProductChildListResource.js +8 -0
- package/dist/models/ProductTypeListResource.d.ts +6 -0
- package/dist/models/ProductTypeListResource.js +4 -0
- package/dist/models/SiteNotificationListResource.d.ts +7 -0
- package/dist/models/SiteNotificationListResource.js +5 -0
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +5 -5
- package/docs/AssetLiteResource.md +2 -0
- package/docs/{LinkProductChildrenTagRequest.md → AttachAccessoriesProductChildRequest.md} +4 -4
- package/docs/{LinkAssetsOverlayTemplateRequest.md → AttachAssetsOverlayTemplateRequest.md} +4 -4
- package/docs/{LinkAttributeProductTypeRequest.md → AttachAttributeProductTypeRequest.md} +4 -4
- package/docs/{LinkProductTypeAttributeRequest.md → AttachProductTypeAttributeRequest.md} +4 -4
- package/docs/AttributeApi.md +117 -117
- package/docs/{UnlinkAssetableOverlayTemplateRequest.md → DetachAssetableOverlayTemplateRequest.md} +4 -4
- package/docs/OverlayTemplateApi.md +115 -115
- package/docs/OverlayTemplateListResource.md +2 -0
- package/docs/ProductApi.md +414 -0
- package/docs/ProductChildListResource.md +4 -0
- package/docs/ProductTypeApi.md +94 -94
- package/docs/ProductTypeListResource.md +2 -0
- package/docs/SiteNotificationListResource.md +2 -0
- package/docs/TagApi.md +84 -84
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +105 -105
- package/src/apis/OverlayTemplateApi.ts +138 -138
- package/src/apis/ProductApi.ts +283 -0
- package/src/apis/ProductTypeApi.ts +101 -101
- package/src/apis/TagApi.ts +91 -91
- package/src/models/AssetLiteResource.ts +9 -0
- package/src/models/AttachAccessoriesProductChildRequest.ts +66 -0
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +66 -0
- package/src/models/AttachAttributeProductTypeRequest.ts +88 -0
- package/src/models/AttachProductTypeAttributeRequest.ts +88 -0
- package/src/models/{UnlinkAssetableOverlayTemplateRequest.ts → DetachAssetableOverlayTemplateRequest.ts} +16 -16
- package/src/models/OverlayTemplateListResource.ts +17 -0
- package/src/models/ProductChildListResource.ts +18 -0
- package/src/models/ProductTypeListResource.ts +9 -0
- package/src/models/SiteNotificationListResource.ts +17 -0
- package/src/models/index.ts +5 -5
- package/dist/models/LinkAssetsOverlayTemplateRequest.d.ts +0 -32
- package/dist/models/LinkAssetsOverlayTemplateRequest.js +0 -51
- package/dist/models/LinkAttributeProductTypeRequest.d.ts +0 -48
- package/dist/models/LinkAttributeProductTypeRequest.js +0 -65
- package/dist/models/LinkProductChildrenTagRequest.d.ts +0 -32
- package/dist/models/LinkProductChildrenTagRequest.js +0 -51
- package/dist/models/LinkProductTypeAttributeRequest.d.ts +0 -48
- package/dist/models/LinkProductTypeAttributeRequest.js +0 -65
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +0 -51
- package/src/models/LinkAssetsOverlayTemplateRequest.ts +0 -66
- package/src/models/LinkAttributeProductTypeRequest.ts +0 -88
- package/src/models/LinkProductChildrenTagRequest.ts +0 -66
- package/src/models/LinkProductTypeAttributeRequest.ts +0 -88
|
@@ -0,0 +1,65 @@
|
|
|
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.AttachProductTypeAttributeRequestFieldTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAttachProductTypeAttributeRequest = instanceOfAttachProductTypeAttributeRequest;
|
|
18
|
+
exports.AttachProductTypeAttributeRequestFromJSON = AttachProductTypeAttributeRequestFromJSON;
|
|
19
|
+
exports.AttachProductTypeAttributeRequestFromJSONTyped = AttachProductTypeAttributeRequestFromJSONTyped;
|
|
20
|
+
exports.AttachProductTypeAttributeRequestToJSON = AttachProductTypeAttributeRequestToJSON;
|
|
21
|
+
exports.AttachProductTypeAttributeRequestToJSONTyped = AttachProductTypeAttributeRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AttachProductTypeAttributeRequestFieldTypeEnum = {
|
|
26
|
+
Performance: 'performance',
|
|
27
|
+
Specification: 'specification',
|
|
28
|
+
Dimension: 'dimension',
|
|
29
|
+
Other: 'other'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AttachProductTypeAttributeRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfAttachProductTypeAttributeRequest(value) {
|
|
35
|
+
if (!('productTypeId' in value) || value['productTypeId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AttachProductTypeAttributeRequestFromJSON(json) {
|
|
42
|
+
return AttachProductTypeAttributeRequestFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AttachProductTypeAttributeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'productTypeId': json['product_type_id'],
|
|
50
|
+
'fieldType': json['field_type'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function AttachProductTypeAttributeRequestToJSON(json) {
|
|
54
|
+
return AttachProductTypeAttributeRequestToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function AttachProductTypeAttributeRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'product_type_id': value['productTypeId'],
|
|
63
|
+
'field_type': value['fieldType'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DetachAssetableOverlayTemplateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DetachAssetableOverlayTemplateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DetachAssetableOverlayTemplateRequest
|
|
22
|
+
*/
|
|
23
|
+
relatedId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DetachAssetableOverlayTemplateRequest
|
|
28
|
+
*/
|
|
29
|
+
relatedType: DetachAssetableOverlayTemplateRequestRelatedTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DetachAssetableOverlayTemplateRequest
|
|
34
|
+
*/
|
|
35
|
+
includesRelations?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const DetachAssetableOverlayTemplateRequestRelatedTypeEnum: {
|
|
41
|
+
readonly ProductChild: "productChild";
|
|
42
|
+
};
|
|
43
|
+
export type DetachAssetableOverlayTemplateRequestRelatedTypeEnum = typeof DetachAssetableOverlayTemplateRequestRelatedTypeEnum[keyof typeof DetachAssetableOverlayTemplateRequestRelatedTypeEnum];
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the DetachAssetableOverlayTemplateRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfDetachAssetableOverlayTemplateRequest(value: object): value is DetachAssetableOverlayTemplateRequest;
|
|
48
|
+
export declare function DetachAssetableOverlayTemplateRequestFromJSON(json: any): DetachAssetableOverlayTemplateRequest;
|
|
49
|
+
export declare function DetachAssetableOverlayTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachAssetableOverlayTemplateRequest;
|
|
50
|
+
export declare function DetachAssetableOverlayTemplateRequestToJSON(json: any): DetachAssetableOverlayTemplateRequest;
|
|
51
|
+
export declare function DetachAssetableOverlayTemplateRequestToJSONTyped(value?: DetachAssetableOverlayTemplateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,32 +13,32 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.DetachAssetableOverlayTemplateRequestRelatedTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfDetachAssetableOverlayTemplateRequest = instanceOfDetachAssetableOverlayTemplateRequest;
|
|
18
|
+
exports.DetachAssetableOverlayTemplateRequestFromJSON = DetachAssetableOverlayTemplateRequestFromJSON;
|
|
19
|
+
exports.DetachAssetableOverlayTemplateRequestFromJSONTyped = DetachAssetableOverlayTemplateRequestFromJSONTyped;
|
|
20
|
+
exports.DetachAssetableOverlayTemplateRequestToJSON = DetachAssetableOverlayTemplateRequestToJSON;
|
|
21
|
+
exports.DetachAssetableOverlayTemplateRequestToJSONTyped = DetachAssetableOverlayTemplateRequestToJSONTyped;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.DetachAssetableOverlayTemplateRequestRelatedTypeEnum = {
|
|
26
26
|
ProductChild: 'productChild'
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* Check if a given object implements the
|
|
29
|
+
* Check if a given object implements the DetachAssetableOverlayTemplateRequest interface.
|
|
30
30
|
*/
|
|
31
|
-
function
|
|
31
|
+
function instanceOfDetachAssetableOverlayTemplateRequest(value) {
|
|
32
32
|
if (!('relatedId' in value) || value['relatedId'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
if (!('relatedType' in value) || value['relatedType'] === undefined)
|
|
35
35
|
return false;
|
|
36
36
|
return true;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function DetachAssetableOverlayTemplateRequestFromJSON(json) {
|
|
39
|
+
return DetachAssetableOverlayTemplateRequestFromJSONTyped(json, false);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function DetachAssetableOverlayTemplateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
42
|
if (json == null) {
|
|
43
43
|
return json;
|
|
44
44
|
}
|
|
@@ -48,10 +48,10 @@ function UnlinkAssetableOverlayTemplateRequestFromJSONTyped(json, ignoreDiscrimi
|
|
|
48
48
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return
|
|
51
|
+
function DetachAssetableOverlayTemplateRequestToJSON(json) {
|
|
52
|
+
return DetachAssetableOverlayTemplateRequestToJSONTyped(json, false);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function DetachAssetableOverlayTemplateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
55
55
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
56
|
if (value == null) {
|
|
57
57
|
return value;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SiteLiteResource } from './SiteLiteResource';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface OverlayTemplateListResource {
|
|
|
27
28
|
* @memberof OverlayTemplateListResource
|
|
28
29
|
*/
|
|
29
30
|
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<SiteLiteResource>}
|
|
34
|
+
* @memberof OverlayTemplateListResource
|
|
35
|
+
*/
|
|
36
|
+
sites: Array<SiteLiteResource> | null;
|
|
30
37
|
}
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the OverlayTemplateListResource interface.
|
|
@@ -18,6 +18,7 @@ exports.OverlayTemplateListResourceFromJSON = OverlayTemplateListResourceFromJSO
|
|
|
18
18
|
exports.OverlayTemplateListResourceFromJSONTyped = OverlayTemplateListResourceFromJSONTyped;
|
|
19
19
|
exports.OverlayTemplateListResourceToJSON = OverlayTemplateListResourceToJSON;
|
|
20
20
|
exports.OverlayTemplateListResourceToJSONTyped = OverlayTemplateListResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the OverlayTemplateListResource interface.
|
|
23
24
|
*/
|
|
@@ -26,6 +27,8 @@ function instanceOfOverlayTemplateListResource(value) {
|
|
|
26
27
|
return false;
|
|
27
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
29
|
return false;
|
|
30
|
+
if (!('sites' in value) || value['sites'] === undefined)
|
|
31
|
+
return false;
|
|
29
32
|
return true;
|
|
30
33
|
}
|
|
31
34
|
function OverlayTemplateListResourceFromJSON(json) {
|
|
@@ -38,6 +41,7 @@ function OverlayTemplateListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
41
|
return {
|
|
39
42
|
'id': json['id'],
|
|
40
43
|
'name': json['name'],
|
|
44
|
+
'sites': (json['sites'] == null ? null : json['sites'].map(SiteLiteResource_1.SiteLiteResourceFromJSON)),
|
|
41
45
|
};
|
|
42
46
|
}
|
|
43
47
|
function OverlayTemplateListResourceToJSON(json) {
|
|
@@ -51,5 +55,6 @@ function OverlayTemplateListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
55
|
return {
|
|
52
56
|
'id': value['id'],
|
|
53
57
|
'name': value['name'],
|
|
58
|
+
'sites': (value['sites'] == null ? null : value['sites'].map(SiteLiteResource_1.SiteLiteResourceToJSON)),
|
|
54
59
|
};
|
|
55
60
|
}
|
|
@@ -34,6 +34,18 @@ export interface ProductChildListResource {
|
|
|
34
34
|
* @memberof ProductChildListResource
|
|
35
35
|
*/
|
|
36
36
|
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ProductChildListResource
|
|
41
|
+
*/
|
|
42
|
+
model: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ProductChildListResource
|
|
47
|
+
*/
|
|
48
|
+
stock: number;
|
|
37
49
|
/**
|
|
38
50
|
*
|
|
39
51
|
* @type {AssetLiteResource}
|
|
@@ -29,6 +29,10 @@ function instanceOfProductChildListResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('stock' in value) || value['stock'] === undefined)
|
|
35
|
+
return false;
|
|
32
36
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
33
37
|
return false;
|
|
34
38
|
return true;
|
|
@@ -44,6 +48,8 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
48
|
'id': json['id'],
|
|
45
49
|
'sku': json['sku'],
|
|
46
50
|
'name': json['name'],
|
|
51
|
+
'model': json['model'],
|
|
52
|
+
'stock': json['stock'],
|
|
47
53
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
48
54
|
};
|
|
49
55
|
}
|
|
@@ -59,6 +65,8 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
59
65
|
'id': value['id'],
|
|
60
66
|
'sku': value['sku'],
|
|
61
67
|
'name': value['name'],
|
|
68
|
+
'model': value['model'],
|
|
69
|
+
'stock': value['stock'],
|
|
62
70
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
63
71
|
};
|
|
64
72
|
}
|
|
@@ -27,6 +27,12 @@ export interface ProductTypeListResource {
|
|
|
27
27
|
* @memberof ProductTypeListResource
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ProductTypeListResource
|
|
34
|
+
*/
|
|
35
|
+
totalAttributes: number;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the ProductTypeListResource interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfProductTypeListResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('totalAttributes' in value) || value['totalAttributes'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function ProductTypeListResourceFromJSON(json) {
|
|
@@ -38,6 +40,7 @@ function ProductTypeListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
return {
|
|
39
41
|
'id': json['id'],
|
|
40
42
|
'name': json['name'],
|
|
43
|
+
'totalAttributes': json['totalAttributes'],
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function ProductTypeListResourceToJSON(json) {
|
|
@@ -51,5 +54,6 @@ function ProductTypeListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
54
|
return {
|
|
52
55
|
'id': value['id'],
|
|
53
56
|
'name': value['name'],
|
|
57
|
+
'totalAttributes': value['totalAttributes'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SiteLiteResource } from './SiteLiteResource';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface SiteNotificationListResource {
|
|
|
39
40
|
* @memberof SiteNotificationListResource
|
|
40
41
|
*/
|
|
41
42
|
isActive: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {SiteLiteResource}
|
|
46
|
+
* @memberof SiteNotificationListResource
|
|
47
|
+
*/
|
|
48
|
+
sites: SiteLiteResource | null;
|
|
42
49
|
}
|
|
43
50
|
/**
|
|
44
51
|
* Check if a given object implements the SiteNotificationListResource interface.
|
|
@@ -18,6 +18,7 @@ exports.SiteNotificationListResourceFromJSON = SiteNotificationListResourceFromJ
|
|
|
18
18
|
exports.SiteNotificationListResourceFromJSONTyped = SiteNotificationListResourceFromJSONTyped;
|
|
19
19
|
exports.SiteNotificationListResourceToJSON = SiteNotificationListResourceToJSON;
|
|
20
20
|
exports.SiteNotificationListResourceToJSONTyped = SiteNotificationListResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the SiteNotificationListResource interface.
|
|
23
24
|
*/
|
|
@@ -26,6 +27,8 @@ function instanceOfSiteNotificationListResource(value) {
|
|
|
26
27
|
return false;
|
|
27
28
|
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
28
29
|
return false;
|
|
30
|
+
if (!('sites' in value) || value['sites'] === undefined)
|
|
31
|
+
return false;
|
|
29
32
|
return true;
|
|
30
33
|
}
|
|
31
34
|
function SiteNotificationListResourceFromJSON(json) {
|
|
@@ -40,6 +43,7 @@ function SiteNotificationListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
43
|
'heading': json['heading'] == null ? undefined : json['heading'],
|
|
41
44
|
'type': json['type'] == null ? undefined : json['type'],
|
|
42
45
|
'isActive': json['isActive'],
|
|
46
|
+
'sites': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['sites']),
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
function SiteNotificationListResourceToJSON(json) {
|
|
@@ -55,5 +59,6 @@ function SiteNotificationListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
59
|
'heading': value['heading'],
|
|
56
60
|
'type': value['type'],
|
|
57
61
|
'isActive': value['isActive'],
|
|
62
|
+
'sites': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['sites']),
|
|
58
63
|
};
|
|
59
64
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export * from './AssetLiteResource';
|
|
|
4
4
|
export * from './AssetLiteResourceArrayResponse';
|
|
5
5
|
export * from './AssetResource';
|
|
6
6
|
export * from './AssetResourceArrayResponse';
|
|
7
|
+
export * from './AttachAccessoriesProductChildRequest';
|
|
8
|
+
export * from './AttachAssetsOverlayTemplateRequest';
|
|
9
|
+
export * from './AttachAttributeProductTypeRequest';
|
|
10
|
+
export * from './AttachProductTypeAttributeRequest';
|
|
7
11
|
export * from './AttributeFieldType';
|
|
8
12
|
export * from './AttributeListResource';
|
|
9
13
|
export * from './AttributeListResourceArrayResponse';
|
|
@@ -18,6 +22,7 @@ export * from './AttributeValueResource';
|
|
|
18
22
|
export * from './AttributeValueResourceArrayResponse';
|
|
19
23
|
export * from './CouponDiscountType';
|
|
20
24
|
export * from './DestroyAttributeValueRequest';
|
|
25
|
+
export * from './DetachAssetableOverlayTemplateRequest';
|
|
21
26
|
export * from './ExternalApiLogListResource';
|
|
22
27
|
export * from './ExternalApiLogListResourceArrayResponse';
|
|
23
28
|
export * from './ExternalApiLogResource';
|
|
@@ -41,10 +46,6 @@ export * from './IndexSiteNotificationRequest';
|
|
|
41
46
|
export * from './IndexSiteRequest';
|
|
42
47
|
export * from './IndexSupplierRequest';
|
|
43
48
|
export * from './IndexTagRequest';
|
|
44
|
-
export * from './LinkAssetsOverlayTemplateRequest';
|
|
45
|
-
export * from './LinkAttributeProductTypeRequest';
|
|
46
|
-
export * from './LinkProductChildrenTagRequest';
|
|
47
|
-
export * from './LinkProductTypeAttributeRequest';
|
|
48
49
|
export * from './ModelAttributeResource';
|
|
49
50
|
export * from './ModelAttributeResourceArrayResponse';
|
|
50
51
|
export * from './OverlayTemplateAssetPosition';
|
|
@@ -160,7 +161,6 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
160
161
|
export * from './TagResource';
|
|
161
162
|
export * from './TagResourceArrayResponse';
|
|
162
163
|
export * from './TagType';
|
|
163
|
-
export * from './UnlinkAssetableOverlayTemplateRequest';
|
|
164
164
|
export * from './UpdateAttributeRequest';
|
|
165
165
|
export * from './UpdateAttributeValueRequest';
|
|
166
166
|
export * from './UpdateFilterOrderAttributeRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -22,6 +22,10 @@ __exportStar(require("./AssetLiteResource"), exports);
|
|
|
22
22
|
__exportStar(require("./AssetLiteResourceArrayResponse"), exports);
|
|
23
23
|
__exportStar(require("./AssetResource"), exports);
|
|
24
24
|
__exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
25
|
+
__exportStar(require("./AttachAccessoriesProductChildRequest"), exports);
|
|
26
|
+
__exportStar(require("./AttachAssetsOverlayTemplateRequest"), exports);
|
|
27
|
+
__exportStar(require("./AttachAttributeProductTypeRequest"), exports);
|
|
28
|
+
__exportStar(require("./AttachProductTypeAttributeRequest"), exports);
|
|
25
29
|
__exportStar(require("./AttributeFieldType"), exports);
|
|
26
30
|
__exportStar(require("./AttributeListResource"), exports);
|
|
27
31
|
__exportStar(require("./AttributeListResourceArrayResponse"), exports);
|
|
@@ -36,6 +40,7 @@ __exportStar(require("./AttributeValueResource"), exports);
|
|
|
36
40
|
__exportStar(require("./AttributeValueResourceArrayResponse"), exports);
|
|
37
41
|
__exportStar(require("./CouponDiscountType"), exports);
|
|
38
42
|
__exportStar(require("./DestroyAttributeValueRequest"), exports);
|
|
43
|
+
__exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
|
|
39
44
|
__exportStar(require("./ExternalApiLogListResource"), exports);
|
|
40
45
|
__exportStar(require("./ExternalApiLogListResourceArrayResponse"), exports);
|
|
41
46
|
__exportStar(require("./ExternalApiLogResource"), exports);
|
|
@@ -59,10 +64,6 @@ __exportStar(require("./IndexSiteNotificationRequest"), exports);
|
|
|
59
64
|
__exportStar(require("./IndexSiteRequest"), exports);
|
|
60
65
|
__exportStar(require("./IndexSupplierRequest"), exports);
|
|
61
66
|
__exportStar(require("./IndexTagRequest"), exports);
|
|
62
|
-
__exportStar(require("./LinkAssetsOverlayTemplateRequest"), exports);
|
|
63
|
-
__exportStar(require("./LinkAttributeProductTypeRequest"), exports);
|
|
64
|
-
__exportStar(require("./LinkProductChildrenTagRequest"), exports);
|
|
65
|
-
__exportStar(require("./LinkProductTypeAttributeRequest"), exports);
|
|
66
67
|
__exportStar(require("./ModelAttributeResource"), exports);
|
|
67
68
|
__exportStar(require("./ModelAttributeResourceArrayResponse"), exports);
|
|
68
69
|
__exportStar(require("./OverlayTemplateAssetPosition"), exports);
|
|
@@ -178,7 +179,6 @@ __exportStar(require("./TagLiteResourceArrayResponse"), exports);
|
|
|
178
179
|
__exportStar(require("./TagResource"), exports);
|
|
179
180
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
180
181
|
__exportStar(require("./TagType"), exports);
|
|
181
|
-
__exportStar(require("./UnlinkAssetableOverlayTemplateRequest"), exports);
|
|
182
182
|
__exportStar(require("./UpdateAttributeRequest"), exports);
|
|
183
183
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
184
184
|
__exportStar(require("./UpdateFilterOrderAttributeRequest"), exports);
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`filePath` | string
|
|
11
11
|
`fileName` | string
|
|
12
|
+
`altText` | string
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const example = {
|
|
|
20
21
|
"id": null,
|
|
21
22
|
"filePath": null,
|
|
22
23
|
"fileName": null,
|
|
24
|
+
"altText": null,
|
|
23
25
|
} satisfies AssetLiteResource
|
|
24
26
|
|
|
25
27
|
console.log(example)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AttachAccessoriesProductChildRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -11,12 +11,12 @@ Name | Type
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { AttachAccessoriesProductChildRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"productChildIds": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies AttachAccessoriesProductChildRequest
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttachAccessoriesProductChildRequest
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AttachAssetsOverlayTemplateRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -11,12 +11,12 @@ Name | Type
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { AttachAssetsOverlayTemplateRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"assetIds": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies AttachAssetsOverlayTemplateRequest
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttachAssetsOverlayTemplateRequest
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AttachAttributeProductTypeRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -12,13 +12,13 @@ Name | Type
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { AttachAttributeProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"attributeId": null,
|
|
20
20
|
"fieldType": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies AttachAttributeProductTypeRequest
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttachAttributeProductTypeRequest
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AttachProductTypeAttributeRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -12,13 +12,13 @@ Name | Type
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { AttachProductTypeAttributeRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"productTypeId": null,
|
|
20
20
|
"fieldType": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies AttachProductTypeAttributeRequest
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttachProductTypeAttributeRequest
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|