@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.532
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 +42 -0
- package/README.md +30 -2
- package/dist/apis/ProductCategoryApi.d.ts +105 -0
- package/dist/apis/ProductCategoryApi.js +445 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
- package/dist/models/CategoryAutomationComparisonType.js +55 -0
- package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
- package/dist/models/CategoryAutomationConditionType.js +51 -0
- package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
- package/dist/models/CategoryAutomationFieldType.js +56 -0
- package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
- package/dist/models/CategoryAutomationRuleResource.js +67 -0
- package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
- package/dist/models/GetAllProductCategoryRequest.js +94 -0
- package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
- package/dist/models/IndexProductCategoryRequest.js +98 -0
- package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
- package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
- package/dist/models/ProductCategoryHierarchyResource.js +69 -0
- package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryListResource.d.ts +75 -0
- package/dist/models/ProductCategoryListResource.js +78 -0
- package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
- package/dist/models/ProductCategoryLiteResource.js +53 -0
- package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryResource.d.ts +107 -0
- package/dist/models/ProductCategoryResource.js +96 -0
- package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +105 -0
- package/dist/models/StoreProductCategoryRequest.js +86 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +62 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +63 -0
- package/dist/models/UpdateProductCategoryRequest.d.ts +105 -0
- package/dist/models/UpdateProductCategoryRequest.js +74 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/docs/CategoryAutomationComparisonType.md +32 -0
- package/docs/CategoryAutomationConditionType.md +32 -0
- package/docs/CategoryAutomationFieldType.md +32 -0
- package/docs/CategoryAutomationRuleResource.md +46 -0
- package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
- package/docs/GetAllProductCategoryRequest.md +52 -0
- package/docs/IndexProductCategoryRequest.md +56 -0
- package/docs/PaginatedProductCategoryListResourceResponse.md +36 -0
- package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
- package/docs/ProductCategoryApi.md +534 -0
- package/docs/ProductCategoryHierarchyResource.md +44 -0
- package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryListResource.md +48 -0
- package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryLiteResource.md +36 -0
- package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryResource.md +58 -0
- package/docs/ProductCategoryResourceArrayResponse.md +34 -0
- package/docs/StoreProductCategoryRequest.md +58 -0
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
- package/docs/UpdateProductCategoryRequest.md +58 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +363 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CategoryAutomationComparisonType.ts +57 -0
- package/src/models/CategoryAutomationConditionType.ts +53 -0
- package/src/models/CategoryAutomationFieldType.ts +58 -0
- package/src/models/CategoryAutomationRuleResource.ts +116 -0
- package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductCategoryRequest.ts +171 -0
- package/src/models/IndexProductCategoryRequest.ts +187 -0
- package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
- package/src/models/ProductCategoryHierarchyResource.ts +110 -0
- package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryListResource.ts +136 -0
- package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryLiteResource.ts +74 -0
- package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryResource.ts +193 -0
- package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductCategoryRequest.ts +175 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +107 -0
- package/src/models/UpdateProductCategoryRequest.ts +169 -0
- package/src/models/index.ts +20 -0
|
@@ -0,0 +1,86 @@
|
|
|
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.instanceOfStoreProductCategoryRequest = instanceOfStoreProductCategoryRequest;
|
|
17
|
+
exports.StoreProductCategoryRequestFromJSON = StoreProductCategoryRequestFromJSON;
|
|
18
|
+
exports.StoreProductCategoryRequestFromJSONTyped = StoreProductCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.StoreProductCategoryRequestToJSON = StoreProductCategoryRequestToJSON;
|
|
20
|
+
exports.StoreProductCategoryRequestToJSONTyped = StoreProductCategoryRequestToJSONTyped;
|
|
21
|
+
var StoreProductCategoryRequestAutomationRulesInner_1 = require("./StoreProductCategoryRequestAutomationRulesInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreProductCategoryRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreProductCategoryRequest(value) {
|
|
26
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('isAutomated' in value) || value['isAutomated'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function StoreProductCategoryRequestFromJSON(json) {
|
|
41
|
+
return StoreProductCategoryRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function StoreProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'siteId': json['site_id'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'slug': json['slug'],
|
|
51
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
52
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
53
|
+
'hideFromFrontend': json['hide_from_frontend'] == null ? undefined : json['hide_from_frontend'],
|
|
54
|
+
'isAutomated': json['is_automated'],
|
|
55
|
+
'index': json['index'] == null ? undefined : json['index'],
|
|
56
|
+
'automatedConditionType': json['automated_condition_type'] == null ? undefined : json['automated_condition_type'],
|
|
57
|
+
'automationRules': json['automation_rules'] == null ? undefined : (json['automation_rules'].map(StoreProductCategoryRequestAutomationRulesInner_1.StoreProductCategoryRequestAutomationRulesInnerFromJSON)),
|
|
58
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
59
|
+
'mimeType': json['mime_type'],
|
|
60
|
+
'fileId': json['file_id'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function StoreProductCategoryRequestToJSON(json) {
|
|
64
|
+
return StoreProductCategoryRequestToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function StoreProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'site_id': value['siteId'],
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'slug': value['slug'],
|
|
75
|
+
'parent_id': value['parentId'],
|
|
76
|
+
'is_disabled': value['isDisabled'],
|
|
77
|
+
'hide_from_frontend': value['hideFromFrontend'],
|
|
78
|
+
'is_automated': value['isAutomated'],
|
|
79
|
+
'index': value['index'],
|
|
80
|
+
'automated_condition_type': value['automatedConditionType'],
|
|
81
|
+
'automation_rules': value['automationRules'] == null ? undefined : (value['automationRules'].map(StoreProductCategoryRequestAutomationRulesInner_1.StoreProductCategoryRequestAutomationRulesInnerToJSON)),
|
|
82
|
+
'alt_text': value['altText'],
|
|
83
|
+
'mime_type': value['mimeType'],
|
|
84
|
+
'file_id': value['fileId'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 StoreProductCategoryRequestAutomationRulesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
22
|
+
*/
|
|
23
|
+
fieldType: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
28
|
+
*/
|
|
29
|
+
comparisonType: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
34
|
+
*/
|
|
35
|
+
groupId?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
40
|
+
*/
|
|
41
|
+
relatedId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
46
|
+
*/
|
|
47
|
+
value?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
52
|
+
*/
|
|
53
|
+
valueId?: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the StoreProductCategoryRequestAutomationRulesInner interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfStoreProductCategoryRequestAutomationRulesInner(value: object): value is StoreProductCategoryRequestAutomationRulesInner;
|
|
59
|
+
export declare function StoreProductCategoryRequestAutomationRulesInnerFromJSON(json: any): StoreProductCategoryRequestAutomationRulesInner;
|
|
60
|
+
export declare function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestAutomationRulesInner;
|
|
61
|
+
export declare function StoreProductCategoryRequestAutomationRulesInnerToJSON(json: any): StoreProductCategoryRequestAutomationRulesInner;
|
|
62
|
+
export declare function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value?: StoreProductCategoryRequestAutomationRulesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfStoreProductCategoryRequestAutomationRulesInner = instanceOfStoreProductCategoryRequestAutomationRulesInner;
|
|
17
|
+
exports.StoreProductCategoryRequestAutomationRulesInnerFromJSON = StoreProductCategoryRequestAutomationRulesInnerFromJSON;
|
|
18
|
+
exports.StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped = StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped;
|
|
19
|
+
exports.StoreProductCategoryRequestAutomationRulesInnerToJSON = StoreProductCategoryRequestAutomationRulesInnerToJSON;
|
|
20
|
+
exports.StoreProductCategoryRequestAutomationRulesInnerToJSONTyped = StoreProductCategoryRequestAutomationRulesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreProductCategoryRequestAutomationRulesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreProductCategoryRequestAutomationRulesInner(value) {
|
|
25
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('comparisonType' in value) || value['comparisonType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StoreProductCategoryRequestAutomationRulesInnerFromJSON(json) {
|
|
32
|
+
return StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'fieldType': json['field_type'],
|
|
40
|
+
'comparisonType': json['comparison_type'],
|
|
41
|
+
'groupId': json['group_id'] == null ? undefined : json['group_id'],
|
|
42
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
43
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
44
|
+
'valueId': json['value_id'] == null ? undefined : json['value_id'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function StoreProductCategoryRequestAutomationRulesInnerToJSON(json) {
|
|
48
|
+
return StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'field_type': value['fieldType'],
|
|
57
|
+
'comparison_type': value['comparisonType'],
|
|
58
|
+
'group_id': value['groupId'],
|
|
59
|
+
'related_id': value['relatedId'],
|
|
60
|
+
'value': value['value'],
|
|
61
|
+
'value_id': value['valueId'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { StoreProductCategoryRequestAutomationRulesInner } from './StoreProductCategoryRequestAutomationRulesInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateProductCategoryRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateProductCategoryRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateProductCategoryRequest
|
|
23
|
+
*/
|
|
24
|
+
siteId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateProductCategoryRequest
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateProductCategoryRequest
|
|
35
|
+
*/
|
|
36
|
+
slug?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateProductCategoryRequest
|
|
41
|
+
*/
|
|
42
|
+
parentId?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof UpdateProductCategoryRequest
|
|
47
|
+
*/
|
|
48
|
+
isDisabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof UpdateProductCategoryRequest
|
|
53
|
+
*/
|
|
54
|
+
hideFromFrontend?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof UpdateProductCategoryRequest
|
|
59
|
+
*/
|
|
60
|
+
isAutomated?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof UpdateProductCategoryRequest
|
|
65
|
+
*/
|
|
66
|
+
index?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof UpdateProductCategoryRequest
|
|
71
|
+
*/
|
|
72
|
+
automatedConditionType?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
|
|
76
|
+
* @memberof UpdateProductCategoryRequest
|
|
77
|
+
*/
|
|
78
|
+
automationRules?: Array<StoreProductCategoryRequestAutomationRulesInner>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof UpdateProductCategoryRequest
|
|
83
|
+
*/
|
|
84
|
+
altText?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof UpdateProductCategoryRequest
|
|
89
|
+
*/
|
|
90
|
+
mimeType?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof UpdateProductCategoryRequest
|
|
95
|
+
*/
|
|
96
|
+
fileId?: number;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the UpdateProductCategoryRequest interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfUpdateProductCategoryRequest(value: object): value is UpdateProductCategoryRequest;
|
|
102
|
+
export declare function UpdateProductCategoryRequestFromJSON(json: any): UpdateProductCategoryRequest;
|
|
103
|
+
export declare function UpdateProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductCategoryRequest;
|
|
104
|
+
export declare function UpdateProductCategoryRequestToJSON(json: any): UpdateProductCategoryRequest;
|
|
105
|
+
export declare function UpdateProductCategoryRequestToJSONTyped(value?: UpdateProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfUpdateProductCategoryRequest = instanceOfUpdateProductCategoryRequest;
|
|
17
|
+
exports.UpdateProductCategoryRequestFromJSON = UpdateProductCategoryRequestFromJSON;
|
|
18
|
+
exports.UpdateProductCategoryRequestFromJSONTyped = UpdateProductCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateProductCategoryRequestToJSON = UpdateProductCategoryRequestToJSON;
|
|
20
|
+
exports.UpdateProductCategoryRequestToJSONTyped = UpdateProductCategoryRequestToJSONTyped;
|
|
21
|
+
var StoreProductCategoryRequestAutomationRulesInner_1 = require("./StoreProductCategoryRequestAutomationRulesInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateProductCategoryRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateProductCategoryRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UpdateProductCategoryRequestFromJSON(json) {
|
|
29
|
+
return UpdateProductCategoryRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UpdateProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
39
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
40
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
41
|
+
'hideFromFrontend': json['hide_from_frontend'] == null ? undefined : json['hide_from_frontend'],
|
|
42
|
+
'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
|
|
43
|
+
'index': json['index'] == null ? undefined : json['index'],
|
|
44
|
+
'automatedConditionType': json['automated_condition_type'] == null ? undefined : json['automated_condition_type'],
|
|
45
|
+
'automationRules': json['automation_rules'] == null ? undefined : (json['automation_rules'].map(StoreProductCategoryRequestAutomationRulesInner_1.StoreProductCategoryRequestAutomationRulesInnerFromJSON)),
|
|
46
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
47
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
48
|
+
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function UpdateProductCategoryRequestToJSON(json) {
|
|
52
|
+
return UpdateProductCategoryRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function UpdateProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'site_id': value['siteId'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'slug': value['slug'],
|
|
63
|
+
'parent_id': value['parentId'],
|
|
64
|
+
'is_disabled': value['isDisabled'],
|
|
65
|
+
'hide_from_frontend': value['hideFromFrontend'],
|
|
66
|
+
'is_automated': value['isAutomated'],
|
|
67
|
+
'index': value['index'],
|
|
68
|
+
'automated_condition_type': value['automatedConditionType'],
|
|
69
|
+
'automation_rules': value['automationRules'] == null ? undefined : (value['automationRules'].map(StoreProductCategoryRequestAutomationRulesInner_1.StoreProductCategoryRequestAutomationRulesInnerToJSON)),
|
|
70
|
+
'alt_text': value['altText'],
|
|
71
|
+
'mime_type': value['mimeType'],
|
|
72
|
+
'file_id': value['fileId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ export * from './AttributeResourceArrayResponse';
|
|
|
24
24
|
export * from './AttributeType';
|
|
25
25
|
export * from './AttributeValueResource';
|
|
26
26
|
export * from './AttributeValueResourceArrayResponse';
|
|
27
|
+
export * from './CategoryAutomationComparisonType';
|
|
28
|
+
export * from './CategoryAutomationConditionType';
|
|
29
|
+
export * from './CategoryAutomationFieldType';
|
|
30
|
+
export * from './CategoryAutomationRuleResource';
|
|
31
|
+
export * from './CategoryAutomationRuleResourceArrayResponse';
|
|
27
32
|
export * from './CouponDiscountType';
|
|
28
33
|
export * from './DescriptionResource';
|
|
29
34
|
export * from './DescriptionResourceArrayResponse';
|
|
@@ -49,6 +54,7 @@ export * from './GetAllAttributeRequest';
|
|
|
49
54
|
export * from './GetAllDocumentRequest';
|
|
50
55
|
export * from './GetAllGoogleCategoryRequest';
|
|
51
56
|
export * from './GetAllOverlayTemplateRequest';
|
|
57
|
+
export * from './GetAllProductCategoryRequest';
|
|
52
58
|
export * from './GetAllProductChildRequest';
|
|
53
59
|
export * from './GetAllProductRequest';
|
|
54
60
|
export * from './GetAllProductTypeRequest';
|
|
@@ -59,6 +65,7 @@ export * from './IndexAttributeRequest';
|
|
|
59
65
|
export * from './IndexDocumentRequest';
|
|
60
66
|
export * from './IndexExternalApiLogRequest';
|
|
61
67
|
export * from './IndexOverlayTemplateRequest';
|
|
68
|
+
export * from './IndexProductCategoryRequest';
|
|
62
69
|
export * from './IndexProductChildRequest';
|
|
63
70
|
export * from './IndexProductRequest';
|
|
64
71
|
export * from './IndexProductTypeRequest';
|
|
@@ -88,6 +95,8 @@ export * from './PaginatedGoogleCategoryResourceResponse';
|
|
|
88
95
|
export * from './PaginatedOverlayTemplateListResourceResponse';
|
|
89
96
|
export * from './PaginatedOverlayTemplateLiteResourceResponse';
|
|
90
97
|
export * from './PaginatedOverlayTemplateResourceResponse';
|
|
98
|
+
export * from './PaginatedProductCategoryListResourceResponse';
|
|
99
|
+
export * from './PaginatedProductCategoryResourceResponse';
|
|
91
100
|
export * from './PaginatedProductChildListResourceResponse';
|
|
92
101
|
export * from './PaginatedProductChildLiteResourceResponse';
|
|
93
102
|
export * from './PaginatedProductChildOverlayRelationResourceResponse';
|
|
@@ -112,6 +121,14 @@ export * from './PaginatedTagListResourceResponse';
|
|
|
112
121
|
export * from './PaginatedTagLiteResourceResponse';
|
|
113
122
|
export * from './PaginatedTagResourceResponse';
|
|
114
123
|
export * from './PagingMetadata';
|
|
124
|
+
export * from './ProductCategoryHierarchyResource';
|
|
125
|
+
export * from './ProductCategoryHierarchyResourceArrayResponse';
|
|
126
|
+
export * from './ProductCategoryListResource';
|
|
127
|
+
export * from './ProductCategoryListResourceArrayResponse';
|
|
128
|
+
export * from './ProductCategoryLiteResource';
|
|
129
|
+
export * from './ProductCategoryLiteResourceArrayResponse';
|
|
130
|
+
export * from './ProductCategoryResource';
|
|
131
|
+
export * from './ProductCategoryResourceArrayResponse';
|
|
115
132
|
export * from './ProductChildListResource';
|
|
116
133
|
export * from './ProductChildListResourceArrayResponse';
|
|
117
134
|
export * from './ProductChildLiteResource';
|
|
@@ -161,6 +178,8 @@ export * from './StoreDocumentFileRequest';
|
|
|
161
178
|
export * from './StoreDocumentRequest';
|
|
162
179
|
export * from './StoreOverlayTemplateAssetRequest';
|
|
163
180
|
export * from './StoreOverlayTemplateRequest';
|
|
181
|
+
export * from './StoreProductCategoryRequest';
|
|
182
|
+
export * from './StoreProductCategoryRequestAutomationRulesInner';
|
|
164
183
|
export * from './StoreProductChildRequest';
|
|
165
184
|
export * from './StoreProductChildRequestAssetsInner';
|
|
166
185
|
export * from './StoreProductChildRequestAttributeValuesInner';
|
|
@@ -196,6 +215,7 @@ export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
|
196
215
|
export * from './UpdateModelAttributeRequest';
|
|
197
216
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
198
217
|
export * from './UpdateOverlayTemplateRequest';
|
|
218
|
+
export * from './UpdateProductCategoryRequest';
|
|
199
219
|
export * from './UpdateProductChildRequest';
|
|
200
220
|
export * from './UpdateProductChildRequestAssetsInner';
|
|
201
221
|
export * from './UpdateProductRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -42,6 +42,11 @@ __exportStar(require("./AttributeResourceArrayResponse"), exports);
|
|
|
42
42
|
__exportStar(require("./AttributeType"), exports);
|
|
43
43
|
__exportStar(require("./AttributeValueResource"), exports);
|
|
44
44
|
__exportStar(require("./AttributeValueResourceArrayResponse"), exports);
|
|
45
|
+
__exportStar(require("./CategoryAutomationComparisonType"), exports);
|
|
46
|
+
__exportStar(require("./CategoryAutomationConditionType"), exports);
|
|
47
|
+
__exportStar(require("./CategoryAutomationFieldType"), exports);
|
|
48
|
+
__exportStar(require("./CategoryAutomationRuleResource"), exports);
|
|
49
|
+
__exportStar(require("./CategoryAutomationRuleResourceArrayResponse"), exports);
|
|
45
50
|
__exportStar(require("./CouponDiscountType"), exports);
|
|
46
51
|
__exportStar(require("./DescriptionResource"), exports);
|
|
47
52
|
__exportStar(require("./DescriptionResourceArrayResponse"), exports);
|
|
@@ -67,6 +72,7 @@ __exportStar(require("./GetAllAttributeRequest"), exports);
|
|
|
67
72
|
__exportStar(require("./GetAllDocumentRequest"), exports);
|
|
68
73
|
__exportStar(require("./GetAllGoogleCategoryRequest"), exports);
|
|
69
74
|
__exportStar(require("./GetAllOverlayTemplateRequest"), exports);
|
|
75
|
+
__exportStar(require("./GetAllProductCategoryRequest"), exports);
|
|
70
76
|
__exportStar(require("./GetAllProductChildRequest"), exports);
|
|
71
77
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
72
78
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
@@ -77,6 +83,7 @@ __exportStar(require("./IndexAttributeRequest"), exports);
|
|
|
77
83
|
__exportStar(require("./IndexDocumentRequest"), exports);
|
|
78
84
|
__exportStar(require("./IndexExternalApiLogRequest"), exports);
|
|
79
85
|
__exportStar(require("./IndexOverlayTemplateRequest"), exports);
|
|
86
|
+
__exportStar(require("./IndexProductCategoryRequest"), exports);
|
|
80
87
|
__exportStar(require("./IndexProductChildRequest"), exports);
|
|
81
88
|
__exportStar(require("./IndexProductRequest"), exports);
|
|
82
89
|
__exportStar(require("./IndexProductTypeRequest"), exports);
|
|
@@ -106,6 +113,8 @@ __exportStar(require("./PaginatedGoogleCategoryResourceResponse"), exports);
|
|
|
106
113
|
__exportStar(require("./PaginatedOverlayTemplateListResourceResponse"), exports);
|
|
107
114
|
__exportStar(require("./PaginatedOverlayTemplateLiteResourceResponse"), exports);
|
|
108
115
|
__exportStar(require("./PaginatedOverlayTemplateResourceResponse"), exports);
|
|
116
|
+
__exportStar(require("./PaginatedProductCategoryListResourceResponse"), exports);
|
|
117
|
+
__exportStar(require("./PaginatedProductCategoryResourceResponse"), exports);
|
|
109
118
|
__exportStar(require("./PaginatedProductChildListResourceResponse"), exports);
|
|
110
119
|
__exportStar(require("./PaginatedProductChildLiteResourceResponse"), exports);
|
|
111
120
|
__exportStar(require("./PaginatedProductChildOverlayRelationResourceResponse"), exports);
|
|
@@ -130,6 +139,14 @@ __exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
|
130
139
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
131
140
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
132
141
|
__exportStar(require("./PagingMetadata"), exports);
|
|
142
|
+
__exportStar(require("./ProductCategoryHierarchyResource"), exports);
|
|
143
|
+
__exportStar(require("./ProductCategoryHierarchyResourceArrayResponse"), exports);
|
|
144
|
+
__exportStar(require("./ProductCategoryListResource"), exports);
|
|
145
|
+
__exportStar(require("./ProductCategoryListResourceArrayResponse"), exports);
|
|
146
|
+
__exportStar(require("./ProductCategoryLiteResource"), exports);
|
|
147
|
+
__exportStar(require("./ProductCategoryLiteResourceArrayResponse"), exports);
|
|
148
|
+
__exportStar(require("./ProductCategoryResource"), exports);
|
|
149
|
+
__exportStar(require("./ProductCategoryResourceArrayResponse"), exports);
|
|
133
150
|
__exportStar(require("./ProductChildListResource"), exports);
|
|
134
151
|
__exportStar(require("./ProductChildListResourceArrayResponse"), exports);
|
|
135
152
|
__exportStar(require("./ProductChildLiteResource"), exports);
|
|
@@ -179,6 +196,8 @@ __exportStar(require("./StoreDocumentFileRequest"), exports);
|
|
|
179
196
|
__exportStar(require("./StoreDocumentRequest"), exports);
|
|
180
197
|
__exportStar(require("./StoreOverlayTemplateAssetRequest"), exports);
|
|
181
198
|
__exportStar(require("./StoreOverlayTemplateRequest"), exports);
|
|
199
|
+
__exportStar(require("./StoreProductCategoryRequest"), exports);
|
|
200
|
+
__exportStar(require("./StoreProductCategoryRequestAutomationRulesInner"), exports);
|
|
182
201
|
__exportStar(require("./StoreProductChildRequest"), exports);
|
|
183
202
|
__exportStar(require("./StoreProductChildRequestAssetsInner"), exports);
|
|
184
203
|
__exportStar(require("./StoreProductChildRequestAttributeValuesInner"), exports);
|
|
@@ -214,6 +233,7 @@ __exportStar(require("./UpdateFilterOrderAttributeRequestValuesInner"), exports)
|
|
|
214
233
|
__exportStar(require("./UpdateModelAttributeRequest"), exports);
|
|
215
234
|
__exportStar(require("./UpdateOverlayTemplateAssetRequest"), exports);
|
|
216
235
|
__exportStar(require("./UpdateOverlayTemplateRequest"), exports);
|
|
236
|
+
__exportStar(require("./UpdateProductCategoryRequest"), exports);
|
|
217
237
|
__exportStar(require("./UpdateProductChildRequest"), exports);
|
|
218
238
|
__exportStar(require("./UpdateProductChildRequestAssetsInner"), exports);
|
|
219
239
|
__exportStar(require("./UpdateProductRequest"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# CategoryAutomationComparisonType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { CategoryAutomationComparisonType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies CategoryAutomationComparisonType
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as CategoryAutomationComparisonType
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# CategoryAutomationConditionType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { CategoryAutomationConditionType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies CategoryAutomationConditionType
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as CategoryAutomationConditionType
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# CategoryAutomationFieldType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { CategoryAutomationFieldType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies CategoryAutomationFieldType
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as CategoryAutomationFieldType
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# CategoryAutomationRuleResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`fieldType` | object
|
|
11
|
+
`comparisonType` | object
|
|
12
|
+
`groupId` | string
|
|
13
|
+
`relatedId` | string
|
|
14
|
+
`value` | string
|
|
15
|
+
`valueId` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { CategoryAutomationRuleResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"id": null,
|
|
25
|
+
"fieldType": null,
|
|
26
|
+
"comparisonType": null,
|
|
27
|
+
"groupId": null,
|
|
28
|
+
"relatedId": null,
|
|
29
|
+
"value": null,
|
|
30
|
+
"valueId": null,
|
|
31
|
+
} satisfies CategoryAutomationRuleResource
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as CategoryAutomationRuleResource
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|