@digital8/lighting-illusions-ts-sdk 0.0.374 → 0.0.376
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -6
- package/README.md +7 -5
- package/dist/apis/ProductApi.d.ts +3 -3
- package/dist/apis/ProductApi.js +1 -1
- package/dist/models/AssetResource.d.ts +12 -0
- package/dist/models/AssetResource.js +8 -0
- package/dist/models/GetAllProductChildRequest.d.ts +19 -11
- package/dist/models/GetAllProductChildRequest.js +11 -11
- package/dist/models/PaginatedProductChildSiteDetailsListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductChildSiteDetailsListResourceResponse.js +57 -0
- package/dist/models/ProductChildResource.d.ts +3 -2
- package/dist/models/ProductChildResource.js +3 -2
- package/dist/models/ProductChildSiteDetailResource.d.ts +88 -0
- package/dist/models/ProductChildSiteDetailResource.js +89 -0
- package/dist/models/ProductChildSiteDetailResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildSiteDetailResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailsListResource.d.ts +100 -0
- package/dist/models/ProductChildSiteDetailsListResource.js +97 -0
- package/dist/models/ProductChildSiteDetailsListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildSiteDetailsListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +5 -3
- package/dist/models/index.js +5 -3
- package/docs/AssetResource.md +4 -0
- package/docs/GetAllProductChildRequest.md +4 -0
- package/docs/{PaginatedProductChildLiteResourceResponse.md → PaginatedProductChildSiteDetailsListResourceResponse.md} +5 -5
- package/docs/ProductApi.md +2 -2
- package/docs/ProductChildResource.md +1 -1
- package/docs/ProductChildSiteDetailResource.md +52 -0
- package/docs/{ProductChildLiteResourceArrayResponse.md → ProductChildSiteDetailResourceArrayResponse.md} +5 -5
- package/docs/{ProductChildLiteResource.md → ProductChildSiteDetailsListResource.md} +16 -4
- package/docs/ProductChildSiteDetailsListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +6 -6
- package/src/models/AssetResource.ts +18 -0
- package/src/models/GetAllProductChildRequest.ts +23 -11
- package/src/models/PaginatedProductChildSiteDetailsListResourceResponse.ts +90 -0
- package/src/models/ProductChildResource.ts +11 -4
- package/src/models/ProductChildSiteDetailResource.ts +162 -0
- package/src/models/ProductChildSiteDetailResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailsListResource.ts +180 -0
- package/src/models/ProductChildSiteDetailsListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +5 -3
- package/dist/models/PaginatedProductChildLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductChildLiteResourceResponse.js +0 -57
- package/dist/models/ProductChildLiteResource.d.ts +0 -63
- package/dist/models/ProductChildLiteResource.js +0 -72
- package/dist/models/ProductChildLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildLiteResourceArrayResponse.js +0 -50
- package/src/models/PaginatedProductChildLiteResourceResponse.ts +0 -90
- package/src/models/ProductChildLiteResource.ts +0 -119
- package/src/models/ProductChildLiteResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfProductChildSiteDetailResourceArrayResponse = instanceOfProductChildSiteDetailResourceArrayResponse;
|
|
17
|
+
exports.ProductChildSiteDetailResourceArrayResponseFromJSON = ProductChildSiteDetailResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildSiteDetailResourceArrayResponseFromJSONTyped = ProductChildSiteDetailResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildSiteDetailResourceArrayResponseToJSON = ProductChildSiteDetailResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildSiteDetailResourceArrayResponseToJSONTyped = ProductChildSiteDetailResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildSiteDetailResource_1 = require("./ProductChildSiteDetailResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildSiteDetailResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildSiteDetailResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildSiteDetailResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildSiteDetailResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildSiteDetailResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildSiteDetailResource_1.ProductChildSiteDetailResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildSiteDetailResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildSiteDetailResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildSiteDetailResourceArrayResponseToJSONTyped(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(ProductChildSiteDetailResource_1.ProductChildSiteDetailResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { AssetResource } from './AssetResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ProductChildSiteDetailsListResource
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductChildSiteDetailsListResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
30
|
+
*/
|
|
31
|
+
parentName: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
42
|
+
*/
|
|
43
|
+
modelNumber: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
48
|
+
*/
|
|
49
|
+
sku: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
54
|
+
*/
|
|
55
|
+
stock: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
60
|
+
*/
|
|
61
|
+
netsuiteId: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {AssetResource}
|
|
65
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
66
|
+
*/
|
|
67
|
+
thumbnail: AssetResource | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {SiteLiteResource}
|
|
71
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
72
|
+
*/
|
|
73
|
+
site: SiteLiteResource | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
78
|
+
*/
|
|
79
|
+
rrpPrice: number;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
84
|
+
*/
|
|
85
|
+
salePrice: number;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof ProductChildSiteDetailsListResource
|
|
90
|
+
*/
|
|
91
|
+
slug: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the ProductChildSiteDetailsListResource interface.
|
|
95
|
+
*/
|
|
96
|
+
export declare function instanceOfProductChildSiteDetailsListResource(value: object): value is ProductChildSiteDetailsListResource;
|
|
97
|
+
export declare function ProductChildSiteDetailsListResourceFromJSON(json: any): ProductChildSiteDetailsListResource;
|
|
98
|
+
export declare function ProductChildSiteDetailsListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailsListResource;
|
|
99
|
+
export declare function ProductChildSiteDetailsListResourceToJSON(json: any): ProductChildSiteDetailsListResource;
|
|
100
|
+
export declare function ProductChildSiteDetailsListResourceToJSONTyped(value?: ProductChildSiteDetailsListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,97 @@
|
|
|
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.instanceOfProductChildSiteDetailsListResource = instanceOfProductChildSiteDetailsListResource;
|
|
17
|
+
exports.ProductChildSiteDetailsListResourceFromJSON = ProductChildSiteDetailsListResourceFromJSON;
|
|
18
|
+
exports.ProductChildSiteDetailsListResourceFromJSONTyped = ProductChildSiteDetailsListResourceFromJSONTyped;
|
|
19
|
+
exports.ProductChildSiteDetailsListResourceToJSON = ProductChildSiteDetailsListResourceToJSON;
|
|
20
|
+
exports.ProductChildSiteDetailsListResourceToJSONTyped = ProductChildSiteDetailsListResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var AssetResource_1 = require("./AssetResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ProductChildSiteDetailsListResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfProductChildSiteDetailsListResource(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('parentName' in value) || value['parentName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('modelNumber' in value) || value['modelNumber'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('stock' in value) || value['stock'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function ProductChildSiteDetailsListResourceFromJSON(json) {
|
|
54
|
+
return ProductChildSiteDetailsListResourceFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ProductChildSiteDetailsListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': json['id'],
|
|
62
|
+
'parentName': json['parentName'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'modelNumber': json['modelNumber'],
|
|
65
|
+
'sku': json['sku'],
|
|
66
|
+
'stock': json['stock'],
|
|
67
|
+
'netsuiteId': json['netsuiteId'],
|
|
68
|
+
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
69
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
70
|
+
'rrpPrice': json['rrpPrice'],
|
|
71
|
+
'salePrice': json['salePrice'],
|
|
72
|
+
'slug': json['slug'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function ProductChildSiteDetailsListResourceToJSON(json) {
|
|
76
|
+
return ProductChildSiteDetailsListResourceToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function ProductChildSiteDetailsListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
79
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'id': value['id'],
|
|
85
|
+
'parentName': value['parentName'],
|
|
86
|
+
'name': value['name'],
|
|
87
|
+
'modelNumber': value['modelNumber'],
|
|
88
|
+
'sku': value['sku'],
|
|
89
|
+
'stock': value['stock'],
|
|
90
|
+
'netsuiteId': value['netsuiteId'],
|
|
91
|
+
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
92
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
93
|
+
'rrpPrice': value['rrpPrice'],
|
|
94
|
+
'salePrice': value['salePrice'],
|
|
95
|
+
'slug': value['slug'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { ProductChildSiteDetailsListResource } from './ProductChildSiteDetailsListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildSiteDetailsListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildSiteDetailsListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductChildSiteDetailsListResource>}
|
|
22
|
+
* @memberof ProductChildSiteDetailsListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductChildSiteDetailsListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductChildSiteDetailsListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductChildSiteDetailsListResourceArrayResponse(value: object): value is ProductChildSiteDetailsListResourceArrayResponse;
|
|
30
|
+
export declare function ProductChildSiteDetailsListResourceArrayResponseFromJSON(json: any): ProductChildSiteDetailsListResourceArrayResponse;
|
|
31
|
+
export declare function ProductChildSiteDetailsListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailsListResourceArrayResponse;
|
|
32
|
+
export declare function ProductChildSiteDetailsListResourceArrayResponseToJSON(json: any): ProductChildSiteDetailsListResourceArrayResponse;
|
|
33
|
+
export declare function ProductChildSiteDetailsListResourceArrayResponseToJSONTyped(value?: ProductChildSiteDetailsListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfProductChildSiteDetailsListResourceArrayResponse = instanceOfProductChildSiteDetailsListResourceArrayResponse;
|
|
17
|
+
exports.ProductChildSiteDetailsListResourceArrayResponseFromJSON = ProductChildSiteDetailsListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildSiteDetailsListResourceArrayResponseFromJSONTyped = ProductChildSiteDetailsListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildSiteDetailsListResourceArrayResponseToJSON = ProductChildSiteDetailsListResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildSiteDetailsListResourceArrayResponseToJSONTyped = ProductChildSiteDetailsListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildSiteDetailsListResource_1 = require("./ProductChildSiteDetailsListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildSiteDetailsListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildSiteDetailsListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildSiteDetailsListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildSiteDetailsListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildSiteDetailsListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildSiteDetailsListResource_1.ProductChildSiteDetailsListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildSiteDetailsListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildSiteDetailsListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildSiteDetailsListResourceArrayResponseToJSONTyped(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(ProductChildSiteDetailsListResource_1.ProductChildSiteDetailsListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -46,9 +46,9 @@ export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
|
46
46
|
export * from './PaginatedAttributeResourceResponse';
|
|
47
47
|
export * from './PaginatedOverlayTemplateLiteResourceResponse';
|
|
48
48
|
export * from './PaginatedOverlayTemplateResourceResponse';
|
|
49
|
-
export * from './PaginatedProductChildLiteResourceResponse';
|
|
50
49
|
export * from './PaginatedProductChildRelationResourceResponse';
|
|
51
50
|
export * from './PaginatedProductChildResourceResponse';
|
|
51
|
+
export * from './PaginatedProductChildSiteDetailsListResourceResponse';
|
|
52
52
|
export * from './PaginatedProductLiteResourceResponse';
|
|
53
53
|
export * from './PaginatedProductResourceResponse';
|
|
54
54
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
@@ -62,12 +62,14 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
62
62
|
export * from './PaginatedTagLiteResourceResponse';
|
|
63
63
|
export * from './PaginatedTagResourceResponse';
|
|
64
64
|
export * from './PagingMetadata';
|
|
65
|
-
export * from './ProductChildLiteResource';
|
|
66
|
-
export * from './ProductChildLiteResourceArrayResponse';
|
|
67
65
|
export * from './ProductChildRelationResource';
|
|
68
66
|
export * from './ProductChildRelationResourceArrayResponse';
|
|
69
67
|
export * from './ProductChildResource';
|
|
70
68
|
export * from './ProductChildResourceArrayResponse';
|
|
69
|
+
export * from './ProductChildSiteDetailResource';
|
|
70
|
+
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
71
|
+
export * from './ProductChildSiteDetailsListResource';
|
|
72
|
+
export * from './ProductChildSiteDetailsListResourceArrayResponse';
|
|
71
73
|
export * from './ProductLiteResource';
|
|
72
74
|
export * from './ProductLiteResourceArrayResponse';
|
|
73
75
|
export * from './ProductResource';
|
package/dist/models/index.js
CHANGED
|
@@ -64,9 +64,9 @@ __exportStar(require("./PaginatedAttributeProductTypeRelationResourceResponse"),
|
|
|
64
64
|
__exportStar(require("./PaginatedAttributeResourceResponse"), exports);
|
|
65
65
|
__exportStar(require("./PaginatedOverlayTemplateLiteResourceResponse"), exports);
|
|
66
66
|
__exportStar(require("./PaginatedOverlayTemplateResourceResponse"), exports);
|
|
67
|
-
__exportStar(require("./PaginatedProductChildLiteResourceResponse"), exports);
|
|
68
67
|
__exportStar(require("./PaginatedProductChildRelationResourceResponse"), exports);
|
|
69
68
|
__exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
69
|
+
__exportStar(require("./PaginatedProductChildSiteDetailsListResourceResponse"), exports);
|
|
70
70
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
71
71
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
72
72
|
__exportStar(require("./PaginatedProductTypeLiteResourceResponse"), exports);
|
|
@@ -80,12 +80,14 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
80
80
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
81
81
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
82
82
|
__exportStar(require("./PagingMetadata"), exports);
|
|
83
|
-
__exportStar(require("./ProductChildLiteResource"), exports);
|
|
84
|
-
__exportStar(require("./ProductChildLiteResourceArrayResponse"), exports);
|
|
85
83
|
__exportStar(require("./ProductChildRelationResource"), exports);
|
|
86
84
|
__exportStar(require("./ProductChildRelationResourceArrayResponse"), exports);
|
|
87
85
|
__exportStar(require("./ProductChildResource"), exports);
|
|
88
86
|
__exportStar(require("./ProductChildResourceArrayResponse"), exports);
|
|
87
|
+
__exportStar(require("./ProductChildSiteDetailResource"), exports);
|
|
88
|
+
__exportStar(require("./ProductChildSiteDetailResourceArrayResponse"), exports);
|
|
89
|
+
__exportStar(require("./ProductChildSiteDetailsListResource"), exports);
|
|
90
|
+
__exportStar(require("./ProductChildSiteDetailsListResourceArrayResponse"), exports);
|
|
89
91
|
__exportStar(require("./ProductLiteResource"), exports);
|
|
90
92
|
__exportStar(require("./ProductLiteResourceArrayResponse"), exports);
|
|
91
93
|
__exportStar(require("./ProductResource"), exports);
|
package/docs/AssetResource.md
CHANGED
|
@@ -13,6 +13,8 @@ Name | Type
|
|
|
13
13
|
`altText` | string
|
|
14
14
|
`index` | number
|
|
15
15
|
`assetFileId` | number
|
|
16
|
+
`isThumbnail` | boolean
|
|
17
|
+
`isLifestyle` | boolean
|
|
16
18
|
`overlayTemplates` | [Array<OverlayTemplateLiteResource>](OverlayTemplateLiteResource.md)
|
|
17
19
|
|
|
18
20
|
## Example
|
|
@@ -29,6 +31,8 @@ const example = {
|
|
|
29
31
|
"altText": null,
|
|
30
32
|
"index": null,
|
|
31
33
|
"assetFileId": null,
|
|
34
|
+
"isThumbnail": null,
|
|
35
|
+
"isLifestyle": null,
|
|
32
36
|
"overlayTemplates": null,
|
|
33
37
|
} satisfies AssetResource
|
|
34
38
|
|
|
@@ -11,6 +11,8 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`relatedId` | number
|
|
13
13
|
`relatedType` | string
|
|
14
|
+
`siteId` | Array<string>
|
|
15
|
+
`isDisabled` | Array<string>
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -24,6 +26,8 @@ const example = {
|
|
|
24
26
|
"sortDirection": null,
|
|
25
27
|
"relatedId": null,
|
|
26
28
|
"relatedType": null,
|
|
29
|
+
"siteId": null,
|
|
30
|
+
"isDisabled": null,
|
|
27
31
|
} satisfies GetAllProductChildRequest
|
|
28
32
|
|
|
29
33
|
console.log(example)
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PaginatedProductChildSiteDetailsListResourceResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ProductChildSiteDetailsListResource>](ProductChildSiteDetailsListResource.md)
|
|
10
10
|
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { PaginatedProductChildSiteDetailsListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"data": null,
|
|
20
20
|
"meta": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies PaginatedProductChildSiteDetailsListResourceResponse
|
|
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 PaginatedProductChildSiteDetailsListResourceResponse
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
package/docs/ProductApi.md
CHANGED
|
@@ -216,7 +216,7 @@ No authorization required
|
|
|
216
216
|
|
|
217
217
|
## getAllProductChild
|
|
218
218
|
|
|
219
|
-
>
|
|
219
|
+
> ProductChildSiteDetailsListResourceArrayResponse getAllProductChild(getAllProductChildRequest)
|
|
220
220
|
|
|
221
221
|
Auto-generated: getAllProductChild
|
|
222
222
|
|
|
@@ -259,7 +259,7 @@ example().catch(console.error);
|
|
|
259
259
|
|
|
260
260
|
### Return type
|
|
261
261
|
|
|
262
|
-
[**
|
|
262
|
+
[**ProductChildSiteDetailsListResourceArrayResponse**](ProductChildSiteDetailsListResourceArrayResponse.md)
|
|
263
263
|
|
|
264
264
|
### Authorization
|
|
265
265
|
|
|
@@ -27,7 +27,7 @@ Name | Type
|
|
|
27
27
|
`omnisendId` | number
|
|
28
28
|
`isDisabled` | string
|
|
29
29
|
`tags` | object
|
|
30
|
-
`siteDetails` |
|
|
30
|
+
`siteDetails` | [Array<ProductChildSiteDetailResource>](ProductChildSiteDetailResource.md)
|
|
31
31
|
`accessories` | [Array<ProductChildRelationResource>](ProductChildRelationResource.md)
|
|
32
32
|
`compatibleProducts` | [Array<ProductChildRelationResource>](ProductChildRelationResource.md)
|
|
33
33
|
`assets` | [Array<AssetResource>](AssetResource.md)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductChildSiteDetailResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
11
|
+
`name` | string
|
|
12
|
+
`slug` | string
|
|
13
|
+
`description` | string
|
|
14
|
+
`displayName` | string
|
|
15
|
+
`rrpPrice` | number
|
|
16
|
+
`salePrice` | number
|
|
17
|
+
`isDisabled` | boolean
|
|
18
|
+
`seo` | [SEOResource](SEOResource.md)
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { ProductChildSiteDetailResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"id": null,
|
|
28
|
+
"site": null,
|
|
29
|
+
"name": null,
|
|
30
|
+
"slug": null,
|
|
31
|
+
"description": null,
|
|
32
|
+
"displayName": null,
|
|
33
|
+
"rrpPrice": null,
|
|
34
|
+
"salePrice": null,
|
|
35
|
+
"isDisabled": null,
|
|
36
|
+
"seo": null,
|
|
37
|
+
} satisfies ProductChildSiteDetailResource
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductChildSiteDetailResource
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductChildSiteDetailResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ProductChildSiteDetailResource>](ProductChildSiteDetailResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ProductChildSiteDetailResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ProductChildSiteDetailResourceArrayResponse
|
|
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 ProductChildSiteDetailResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductChildSiteDetailsListResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -7,26 +7,38 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
+
`parentName` | string
|
|
10
11
|
`name` | string
|
|
11
12
|
`modelNumber` | string
|
|
12
13
|
`sku` | number
|
|
14
|
+
`stock` | number
|
|
13
15
|
`netsuiteId` | number
|
|
14
16
|
`thumbnail` | [AssetResource](AssetResource.md)
|
|
17
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
18
|
+
`rrpPrice` | number
|
|
19
|
+
`salePrice` | number
|
|
20
|
+
`slug` | string
|
|
15
21
|
|
|
16
22
|
## Example
|
|
17
23
|
|
|
18
24
|
```typescript
|
|
19
|
-
import type {
|
|
25
|
+
import type { ProductChildSiteDetailsListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
26
|
|
|
21
27
|
// TODO: Update the object below with actual values
|
|
22
28
|
const example = {
|
|
23
29
|
"id": null,
|
|
30
|
+
"parentName": null,
|
|
24
31
|
"name": null,
|
|
25
32
|
"modelNumber": null,
|
|
26
33
|
"sku": null,
|
|
34
|
+
"stock": null,
|
|
27
35
|
"netsuiteId": null,
|
|
28
36
|
"thumbnail": null,
|
|
29
|
-
|
|
37
|
+
"site": null,
|
|
38
|
+
"rrpPrice": null,
|
|
39
|
+
"salePrice": null,
|
|
40
|
+
"slug": null,
|
|
41
|
+
} satisfies ProductChildSiteDetailsListResource
|
|
30
42
|
|
|
31
43
|
console.log(example)
|
|
32
44
|
|
|
@@ -35,7 +47,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
35
47
|
console.log(exampleJSON)
|
|
36
48
|
|
|
37
49
|
// Parse the JSON string back to an object
|
|
38
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductChildSiteDetailsListResource
|
|
39
51
|
console.log(exampleParsed)
|
|
40
52
|
```
|
|
41
53
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductChildSiteDetailsListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductChildSiteDetailsListResource>](ProductChildSiteDetailsListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductChildSiteDetailsListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductChildSiteDetailsListResourceArrayResponse
|
|
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 ProductChildSiteDetailsListResourceArrayResponse
|
|
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
|
+
|