@digital8/lighting-illusions-ts-sdk 0.0.568 → 0.0.569
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 +4 -4
- package/README.md +6 -4
- package/dist/apis/ProductCategoryApi.d.ts +27 -3
- package/dist/apis/ProductCategoryApi.js +97 -1
- package/dist/models/AttachProductsProductCategoryRequest.d.ts +32 -0
- package/dist/models/AttachProductsProductCategoryRequest.js +51 -0
- package/dist/models/DetachProductsProductCategoryRequest.d.ts +32 -0
- package/dist/models/DetachProductsProductCategoryRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +2 -2
- package/dist/models/ProductCategoryListResource.d.ts +0 -6
- package/dist/models/ProductCategoryListResource.js +0 -4
- package/dist/models/ProductRating.d.ts +0 -1
- package/dist/models/ProductRating.js +1 -2
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/docs/{PreviewAutomationRulesResource.md → AttachProductsProductCategoryRequest.md} +6 -8
- package/docs/{PreviewAutomationRulesResourceArrayResponse.md → DetachProductsProductCategoryRequest.md} +6 -6
- package/docs/PreviewAutomationRulesProductCategoryRequest.md +1 -1
- package/docs/ProductCategoryApi.md +141 -3
- package/docs/ProductCategoryListResource.md +0 -2
- package/docs/ProductSearchResultResource.md +0 -2
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +99 -6
- package/src/models/AttachProductsProductCategoryRequest.ts +66 -0
- package/src/models/DetachProductsProductCategoryRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +2 -2
- package/src/models/ProductCategoryListResource.ts +0 -9
- package/src/models/ProductRating.ts +1 -2
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/index.ts +2 -2
- package/dist/models/PreviewAutomationRulesResource.d.ts +0 -38
- package/dist/models/PreviewAutomationRulesResource.js +0 -55
- package/dist/models/PreviewAutomationRulesResourceArrayResponse.d.ts +0 -33
- package/dist/models/PreviewAutomationRulesResourceArrayResponse.js +0 -50
- package/src/models/PreviewAutomationRulesResource.ts +0 -75
- package/src/models/PreviewAutomationRulesResourceArrayResponse.ts +0 -73
|
@@ -63,12 +63,6 @@ export interface ProductCategoryListResource {
|
|
|
63
63
|
* @memberof ProductCategoryListResource
|
|
64
64
|
*/
|
|
65
65
|
hasChildren: boolean;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {boolean}
|
|
69
|
-
* @memberof ProductCategoryListResource
|
|
70
|
-
*/
|
|
71
|
-
isParent: boolean;
|
|
72
66
|
/**
|
|
73
67
|
*
|
|
74
68
|
* @type {number}
|
|
@@ -92,7 +86,6 @@ export function instanceOfProductCategoryListResource(value: object): value is P
|
|
|
92
86
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
93
87
|
if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
|
|
94
88
|
if (!('hasChildren' in value) || value['hasChildren'] === undefined) return false;
|
|
95
|
-
if (!('isParent' in value) || value['isParent'] === undefined) return false;
|
|
96
89
|
if (!('productCount' in value) || value['productCount'] === undefined) return false;
|
|
97
90
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
98
91
|
return true;
|
|
@@ -114,7 +107,6 @@ export function ProductCategoryListResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
114
107
|
'isDisabled': json['isDisabled'],
|
|
115
108
|
'isAutomated': json['isAutomated'],
|
|
116
109
|
'hasChildren': json['hasChildren'],
|
|
117
|
-
'isParent': json['isParent'],
|
|
118
110
|
'productCount': json['productCount'],
|
|
119
111
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
120
112
|
};
|
|
@@ -137,7 +129,6 @@ export function ProductCategoryListResourceToJSONTyped(value?: ProductCategoryLi
|
|
|
137
129
|
'isDisabled': value['isDisabled'],
|
|
138
130
|
'isAutomated': value['isAutomated'],
|
|
139
131
|
'hasChildren': value['hasChildren'],
|
|
140
|
-
'isParent': value['isParent'],
|
|
141
132
|
'productCount': value['productCount'],
|
|
142
133
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
143
134
|
};
|
|
@@ -91,12 +91,6 @@ export interface ProductSearchResultResource {
|
|
|
91
91
|
* @memberof ProductSearchResultResource
|
|
92
92
|
*/
|
|
93
93
|
supplierName: string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof ProductSearchResultResource
|
|
98
|
-
*/
|
|
99
|
-
supplierLogo: string;
|
|
100
94
|
/**
|
|
101
95
|
*
|
|
102
96
|
* @type {number}
|
|
@@ -132,7 +126,6 @@ export function instanceOfProductSearchResultResource(value: object): value is P
|
|
|
132
126
|
if (!('labelDetails' in value) || value['labelDetails'] === undefined) return false;
|
|
133
127
|
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
134
128
|
if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
|
|
135
|
-
if (!('supplierLogo' in value) || value['supplierLogo'] === undefined) return false;
|
|
136
129
|
if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
|
|
137
130
|
if (!('availability' in value) || value['availability'] === undefined) return false;
|
|
138
131
|
if (!('wishlisted' in value) || value['wishlisted'] === undefined) return false;
|
|
@@ -161,7 +154,6 @@ export function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
161
154
|
'labelDetails': json['labelDetails'],
|
|
162
155
|
'categories': json['categories'],
|
|
163
156
|
'supplierName': json['supplierName'],
|
|
164
|
-
'supplierLogo': json['supplierLogo'],
|
|
165
157
|
'supplierId': json['supplierId'],
|
|
166
158
|
'availability': json['availability'],
|
|
167
159
|
'wishlisted': json['wishlisted'],
|
|
@@ -191,7 +183,6 @@ export function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResu
|
|
|
191
183
|
'labelDetails': value['labelDetails'],
|
|
192
184
|
'categories': value['categories'],
|
|
193
185
|
'supplierName': value['supplierName'],
|
|
194
|
-
'supplierLogo': value['supplierLogo'],
|
|
195
186
|
'supplierId': value['supplierId'],
|
|
196
187
|
'availability': value['availability'],
|
|
197
188
|
'wishlisted': value['wishlisted'],
|
package/src/models/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
|
14
14
|
export * from './AttachDocumentsProductChildSiteDetailRequest';
|
|
15
15
|
export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
16
16
|
export * from './AttachProductTypeAttributeRequest';
|
|
17
|
+
export * from './AttachProductsProductCategoryRequest';
|
|
17
18
|
export * from './AttributeFieldType';
|
|
18
19
|
export * from './AttributeListResource';
|
|
19
20
|
export * from './AttributeListResourceArrayResponse';
|
|
@@ -39,6 +40,7 @@ export * from './DetachAssetableOverlayTemplateRequest';
|
|
|
39
40
|
export * from './DetachDocumentablesDocumentRequest';
|
|
40
41
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
41
42
|
export * from './DetachDocumentsProductChildSiteDetailRequest';
|
|
43
|
+
export * from './DetachProductsProductCategoryRequest';
|
|
42
44
|
export * from './DocumentFileForUploadResource';
|
|
43
45
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
44
46
|
export * from './DocumentLiteResource';
|
|
@@ -125,8 +127,6 @@ export * from './PaginatedTagLiteResourceResponse';
|
|
|
125
127
|
export * from './PaginatedTagResourceResponse';
|
|
126
128
|
export * from './PagingMetadata';
|
|
127
129
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
128
|
-
export * from './PreviewAutomationRulesResource';
|
|
129
|
-
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
130
130
|
export * from './ProductAggregationResource';
|
|
131
131
|
export * from './ProductAggregationResourceArrayResponse';
|
|
132
132
|
export * from './ProductCategoryHierarchyResource';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PreviewAutomationRulesResource
|
|
16
|
-
*/
|
|
17
|
-
export interface PreviewAutomationRulesResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof PreviewAutomationRulesResource
|
|
22
|
-
*/
|
|
23
|
-
count: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {boolean}
|
|
27
|
-
* @memberof PreviewAutomationRulesResource
|
|
28
|
-
*/
|
|
29
|
-
tooComplex: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the PreviewAutomationRulesResource interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfPreviewAutomationRulesResource(value: object): value is PreviewAutomationRulesResource;
|
|
35
|
-
export declare function PreviewAutomationRulesResourceFromJSON(json: any): PreviewAutomationRulesResource;
|
|
36
|
-
export declare function PreviewAutomationRulesResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewAutomationRulesResource;
|
|
37
|
-
export declare function PreviewAutomationRulesResourceToJSON(json: any): PreviewAutomationRulesResource;
|
|
38
|
-
export declare function PreviewAutomationRulesResourceToJSONTyped(value?: PreviewAutomationRulesResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfPreviewAutomationRulesResource = instanceOfPreviewAutomationRulesResource;
|
|
17
|
-
exports.PreviewAutomationRulesResourceFromJSON = PreviewAutomationRulesResourceFromJSON;
|
|
18
|
-
exports.PreviewAutomationRulesResourceFromJSONTyped = PreviewAutomationRulesResourceFromJSONTyped;
|
|
19
|
-
exports.PreviewAutomationRulesResourceToJSON = PreviewAutomationRulesResourceToJSON;
|
|
20
|
-
exports.PreviewAutomationRulesResourceToJSONTyped = PreviewAutomationRulesResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the PreviewAutomationRulesResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfPreviewAutomationRulesResource(value) {
|
|
25
|
-
if (!('count' in value) || value['count'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('tooComplex' in value) || value['tooComplex'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function PreviewAutomationRulesResourceFromJSON(json) {
|
|
32
|
-
return PreviewAutomationRulesResourceFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function PreviewAutomationRulesResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'count': json['count'],
|
|
40
|
-
'tooComplex': json['too_complex'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function PreviewAutomationRulesResourceToJSON(json) {
|
|
44
|
-
return PreviewAutomationRulesResourceToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function PreviewAutomationRulesResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'count': value['count'],
|
|
53
|
-
'too_complex': value['tooComplex'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { PreviewAutomationRulesResource } from './PreviewAutomationRulesResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface PreviewAutomationRulesResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface PreviewAutomationRulesResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<PreviewAutomationRulesResource>}
|
|
22
|
-
* @memberof PreviewAutomationRulesResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<PreviewAutomationRulesResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the PreviewAutomationRulesResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfPreviewAutomationRulesResourceArrayResponse(value: object): value is PreviewAutomationRulesResourceArrayResponse;
|
|
30
|
-
export declare function PreviewAutomationRulesResourceArrayResponseFromJSON(json: any): PreviewAutomationRulesResourceArrayResponse;
|
|
31
|
-
export declare function PreviewAutomationRulesResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewAutomationRulesResourceArrayResponse;
|
|
32
|
-
export declare function PreviewAutomationRulesResourceArrayResponseToJSON(json: any): PreviewAutomationRulesResourceArrayResponse;
|
|
33
|
-
export declare function PreviewAutomationRulesResourceArrayResponseToJSONTyped(value?: PreviewAutomationRulesResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfPreviewAutomationRulesResourceArrayResponse = instanceOfPreviewAutomationRulesResourceArrayResponse;
|
|
17
|
-
exports.PreviewAutomationRulesResourceArrayResponseFromJSON = PreviewAutomationRulesResourceArrayResponseFromJSON;
|
|
18
|
-
exports.PreviewAutomationRulesResourceArrayResponseFromJSONTyped = PreviewAutomationRulesResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.PreviewAutomationRulesResourceArrayResponseToJSON = PreviewAutomationRulesResourceArrayResponseToJSON;
|
|
20
|
-
exports.PreviewAutomationRulesResourceArrayResponseToJSONTyped = PreviewAutomationRulesResourceArrayResponseToJSONTyped;
|
|
21
|
-
var PreviewAutomationRulesResource_1 = require("./PreviewAutomationRulesResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the PreviewAutomationRulesResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfPreviewAutomationRulesResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function PreviewAutomationRulesResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return PreviewAutomationRulesResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function PreviewAutomationRulesResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(PreviewAutomationRulesResource_1.PreviewAutomationRulesResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function PreviewAutomationRulesResourceArrayResponseToJSON(json) {
|
|
40
|
-
return PreviewAutomationRulesResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function PreviewAutomationRulesResourceArrayResponseToJSONTyped(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(PreviewAutomationRulesResource_1.PreviewAutomationRulesResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface PreviewAutomationRulesResource
|
|
20
|
-
*/
|
|
21
|
-
export interface PreviewAutomationRulesResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof PreviewAutomationRulesResource
|
|
26
|
-
*/
|
|
27
|
-
count: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {boolean}
|
|
31
|
-
* @memberof PreviewAutomationRulesResource
|
|
32
|
-
*/
|
|
33
|
-
tooComplex: boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the PreviewAutomationRulesResource interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfPreviewAutomationRulesResource(value: object): value is PreviewAutomationRulesResource {
|
|
40
|
-
if (!('count' in value) || value['count'] === undefined) return false;
|
|
41
|
-
if (!('tooComplex' in value) || value['tooComplex'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function PreviewAutomationRulesResourceFromJSON(json: any): PreviewAutomationRulesResource {
|
|
46
|
-
return PreviewAutomationRulesResourceFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function PreviewAutomationRulesResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewAutomationRulesResource {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'count': json['count'],
|
|
56
|
-
'tooComplex': json['too_complex'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PreviewAutomationRulesResourceToJSON(json: any): PreviewAutomationRulesResource {
|
|
61
|
-
return PreviewAutomationRulesResourceToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PreviewAutomationRulesResourceToJSONTyped(value?: PreviewAutomationRulesResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'count': value['count'],
|
|
72
|
-
'too_complex': value['tooComplex'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PreviewAutomationRulesResource } from './PreviewAutomationRulesResource';
|
|
17
|
-
import {
|
|
18
|
-
PreviewAutomationRulesResourceFromJSON,
|
|
19
|
-
PreviewAutomationRulesResourceFromJSONTyped,
|
|
20
|
-
PreviewAutomationRulesResourceToJSON,
|
|
21
|
-
PreviewAutomationRulesResourceToJSONTyped,
|
|
22
|
-
} from './PreviewAutomationRulesResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface PreviewAutomationRulesResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface PreviewAutomationRulesResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<PreviewAutomationRulesResource>}
|
|
33
|
-
* @memberof PreviewAutomationRulesResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<PreviewAutomationRulesResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the PreviewAutomationRulesResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfPreviewAutomationRulesResourceArrayResponse(value: object): value is PreviewAutomationRulesResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function PreviewAutomationRulesResourceArrayResponseFromJSON(json: any): PreviewAutomationRulesResourceArrayResponse {
|
|
46
|
-
return PreviewAutomationRulesResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function PreviewAutomationRulesResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewAutomationRulesResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PreviewAutomationRulesResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function PreviewAutomationRulesResourceArrayResponseToJSON(json: any): PreviewAutomationRulesResourceArrayResponse {
|
|
60
|
-
return PreviewAutomationRulesResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function PreviewAutomationRulesResourceArrayResponseToJSONTyped(value?: PreviewAutomationRulesResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PreviewAutomationRulesResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|