@digital8/lighting-illusions-ts-sdk 0.0.549 → 0.0.551
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 -0
- package/README.md +4 -2
- package/dist/apis/ProductCategoryApi.d.ts +3 -3
- package/dist/apis/ProductCategoryApi.js +1 -1
- package/dist/models/PreviewAutomationRulesResource.d.ts +38 -0
- package/dist/models/PreviewAutomationRulesResource.js +55 -0
- package/dist/models/PreviewAutomationRulesResourceArrayResponse.d.ts +33 -0
- package/dist/models/PreviewAutomationRulesResourceArrayResponse.js +50 -0
- package/dist/models/ProductRating.d.ts +0 -1
- package/dist/models/ProductRating.js +1 -2
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/PreviewAutomationRulesResource.md +36 -0
- package/docs/PreviewAutomationRulesResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryApi.md +3 -3
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +6 -3
- package/src/models/PreviewAutomationRulesResource.ts +75 -0
- package/src/models/PreviewAutomationRulesResourceArrayResponse.ts +73 -0
- package/src/models/ProductRating.ts +1 -2
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -133,6 +133,8 @@ docs/PaginatedTagLiteResourceResponse.md
|
|
|
133
133
|
docs/PaginatedTagResourceResponse.md
|
|
134
134
|
docs/PagingMetadata.md
|
|
135
135
|
docs/PreviewAutomationRulesProductCategoryRequest.md
|
|
136
|
+
docs/PreviewAutomationRulesResource.md
|
|
137
|
+
docs/PreviewAutomationRulesResourceArrayResponse.md
|
|
136
138
|
docs/ProductAggregationResource.md
|
|
137
139
|
docs/ProductAggregationResourceArrayResponse.md
|
|
138
140
|
docs/ProductApi.md
|
|
@@ -396,6 +398,8 @@ src/models/PaginatedTagLiteResourceResponse.ts
|
|
|
396
398
|
src/models/PaginatedTagResourceResponse.ts
|
|
397
399
|
src/models/PagingMetadata.ts
|
|
398
400
|
src/models/PreviewAutomationRulesProductCategoryRequest.ts
|
|
401
|
+
src/models/PreviewAutomationRulesResource.ts
|
|
402
|
+
src/models/PreviewAutomationRulesResourceArrayResponse.ts
|
|
399
403
|
src/models/ProductAggregationResource.ts
|
|
400
404
|
src/models/ProductAggregationResourceArrayResponse.ts
|
|
401
405
|
src/models/ProductCategoryHierarchyResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.551
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -280,6 +280,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
280
280
|
- [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
|
|
281
281
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
282
282
|
- [PreviewAutomationRulesProductCategoryRequest](docs/PreviewAutomationRulesProductCategoryRequest.md)
|
|
283
|
+
- [PreviewAutomationRulesResource](docs/PreviewAutomationRulesResource.md)
|
|
284
|
+
- [PreviewAutomationRulesResourceArrayResponse](docs/PreviewAutomationRulesResourceArrayResponse.md)
|
|
283
285
|
- [ProductAggregationResource](docs/ProductAggregationResource.md)
|
|
284
286
|
- [ProductAggregationResourceArrayResponse](docs/ProductAggregationResourceArrayResponse.md)
|
|
285
287
|
- [ProductCategoryHierarchyResource](docs/ProductCategoryHierarchyResource.md)
|
|
@@ -408,7 +410,7 @@ and is automatically generated by the
|
|
|
408
410
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
409
411
|
|
|
410
412
|
- API version: `1.0.0`
|
|
411
|
-
- Package version: `0.0.
|
|
413
|
+
- Package version: `0.0.551`
|
|
412
414
|
- Generator version: `7.18.0`
|
|
413
415
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
414
416
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
13
|
+
import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
14
14
|
export interface DestroyProductCategoryRequest {
|
|
15
15
|
productCategory: number;
|
|
16
16
|
}
|
|
@@ -84,11 +84,11 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
84
84
|
/**
|
|
85
85
|
* Auto-generated: previewAutomationRulesProductCategory
|
|
86
86
|
*/
|
|
87
|
-
previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
87
|
+
previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PreviewAutomationRulesResource>>;
|
|
88
88
|
/**
|
|
89
89
|
* Auto-generated: previewAutomationRulesProductCategory
|
|
90
90
|
*/
|
|
91
|
-
previewAutomationRulesProductCategory(requestParameters?: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
91
|
+
previewAutomationRulesProductCategory(requestParameters?: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PreviewAutomationRulesResource>;
|
|
92
92
|
/**
|
|
93
93
|
* Auto-generated: showProductCategory
|
|
94
94
|
*/
|
|
@@ -323,7 +323,7 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
323
323
|
}, initOverrides)];
|
|
324
324
|
case 1:
|
|
325
325
|
response = _a.sent();
|
|
326
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
326
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PreviewAutomationRulesResourceFromJSON)(jsonValue); })];
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}
|
|
@@ -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 { 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;
|
|
@@ -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.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
|
+
}
|
|
@@ -17,7 +17,6 @@ export declare const ProductRating: {
|
|
|
17
17
|
readonly _5: "5";
|
|
18
18
|
readonly _4: "4";
|
|
19
19
|
readonly _3: "3";
|
|
20
|
-
readonly _2: "2";
|
|
21
20
|
};
|
|
22
21
|
export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
|
|
23
22
|
export declare function instanceOfProductRating(value: any): boolean;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ export * from './PaginatedTagLiteResourceResponse';
|
|
|
123
123
|
export * from './PaginatedTagResourceResponse';
|
|
124
124
|
export * from './PagingMetadata';
|
|
125
125
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
126
|
+
export * from './PreviewAutomationRulesResource';
|
|
127
|
+
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
126
128
|
export * from './ProductAggregationResource';
|
|
127
129
|
export * from './ProductAggregationResourceArrayResponse';
|
|
128
130
|
export * from './ProductCategoryHierarchyResource';
|
package/dist/models/index.js
CHANGED
|
@@ -141,6 +141,8 @@ __exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
|
141
141
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
142
142
|
__exportStar(require("./PagingMetadata"), exports);
|
|
143
143
|
__exportStar(require("./PreviewAutomationRulesProductCategoryRequest"), exports);
|
|
144
|
+
__exportStar(require("./PreviewAutomationRulesResource"), exports);
|
|
145
|
+
__exportStar(require("./PreviewAutomationRulesResourceArrayResponse"), exports);
|
|
144
146
|
__exportStar(require("./ProductAggregationResource"), exports);
|
|
145
147
|
__exportStar(require("./ProductAggregationResourceArrayResponse"), exports);
|
|
146
148
|
__exportStar(require("./ProductCategoryHierarchyResource"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PreviewAutomationRulesResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`count` | number
|
|
10
|
+
`tooComplex` | boolean
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PreviewAutomationRulesResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"count": null,
|
|
20
|
+
"tooComplex": null,
|
|
21
|
+
} satisfies PreviewAutomationRulesResource
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PreviewAutomationRulesResource
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# PreviewAutomationRulesResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<PreviewAutomationRulesResource>](PreviewAutomationRulesResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PreviewAutomationRulesResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies PreviewAutomationRulesResourceArrayResponse
|
|
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 PreviewAutomationRulesResourceArrayResponse
|
|
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
|
+
|
|
@@ -338,7 +338,7 @@ No authorization required
|
|
|
338
338
|
|
|
339
339
|
## previewAutomationRulesProductCategory
|
|
340
340
|
|
|
341
|
-
>
|
|
341
|
+
> PreviewAutomationRulesResource previewAutomationRulesProductCategory(previewAutomationRulesProductCategoryRequest)
|
|
342
342
|
|
|
343
343
|
Auto-generated: previewAutomationRulesProductCategory
|
|
344
344
|
|
|
@@ -381,7 +381,7 @@ example().catch(console.error);
|
|
|
381
381
|
|
|
382
382
|
### Return type
|
|
383
383
|
|
|
384
|
-
[**
|
|
384
|
+
[**PreviewAutomationRulesResource**](PreviewAutomationRulesResource.md)
|
|
385
385
|
|
|
386
386
|
### Authorization
|
|
387
387
|
|
|
@@ -396,7 +396,7 @@ No authorization required
|
|
|
396
396
|
### HTTP response details
|
|
397
397
|
| Status code | Description | Response headers |
|
|
398
398
|
|-------------|-------------|------------------|
|
|
399
|
-
| **200** |
|
|
399
|
+
| **200** | Successful resource response | - |
|
|
400
400
|
|
|
401
401
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
402
402
|
|
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
IndexProductCategoryRequest,
|
|
21
21
|
PaginatedProductCategoryListResourceResponse,
|
|
22
22
|
PreviewAutomationRulesProductCategoryRequest,
|
|
23
|
+
PreviewAutomationRulesResource,
|
|
23
24
|
ProductCategoryHierarchyResourceArrayResponse,
|
|
24
25
|
ProductCategoryLiteResourceArrayResponse,
|
|
25
26
|
ProductCategoryResource,
|
|
@@ -37,6 +38,8 @@ import {
|
|
|
37
38
|
PaginatedProductCategoryListResourceResponseToJSON,
|
|
38
39
|
PreviewAutomationRulesProductCategoryRequestFromJSON,
|
|
39
40
|
PreviewAutomationRulesProductCategoryRequestToJSON,
|
|
41
|
+
PreviewAutomationRulesResourceFromJSON,
|
|
42
|
+
PreviewAutomationRulesResourceToJSON,
|
|
40
43
|
ProductCategoryHierarchyResourceArrayResponseFromJSON,
|
|
41
44
|
ProductCategoryHierarchyResourceArrayResponseToJSON,
|
|
42
45
|
ProductCategoryLiteResourceArrayResponseFromJSON,
|
|
@@ -261,7 +264,7 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
261
264
|
/**
|
|
262
265
|
* Auto-generated: previewAutomationRulesProductCategory
|
|
263
266
|
*/
|
|
264
|
-
async previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
267
|
+
async previewAutomationRulesProductCategoryRaw(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PreviewAutomationRulesResource>> {
|
|
265
268
|
const queryParameters: any = {};
|
|
266
269
|
|
|
267
270
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -279,13 +282,13 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
279
282
|
body: PreviewAutomationRulesProductCategoryRequestToJSON(requestParameters['previewAutomationRulesProductCategoryRequest']),
|
|
280
283
|
}, initOverrides);
|
|
281
284
|
|
|
282
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
285
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PreviewAutomationRulesResourceFromJSON(jsonValue));
|
|
283
286
|
}
|
|
284
287
|
|
|
285
288
|
/**
|
|
286
289
|
* Auto-generated: previewAutomationRulesProductCategory
|
|
287
290
|
*/
|
|
288
|
-
async previewAutomationRulesProductCategory(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
291
|
+
async previewAutomationRulesProductCategory(requestParameters: PreviewAutomationRulesProductCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PreviewAutomationRulesResource> {
|
|
289
292
|
const response = await this.previewAutomationRulesProductCategoryRaw(requestParameters, initOverrides);
|
|
290
293
|
return await response.value();
|
|
291
294
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -125,6 +125,8 @@ export * from './PaginatedTagLiteResourceResponse';
|
|
|
125
125
|
export * from './PaginatedTagResourceResponse';
|
|
126
126
|
export * from './PagingMetadata';
|
|
127
127
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
128
|
+
export * from './PreviewAutomationRulesResource';
|
|
129
|
+
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
128
130
|
export * from './ProductAggregationResource';
|
|
129
131
|
export * from './ProductAggregationResourceArrayResponse';
|
|
130
132
|
export * from './ProductCategoryHierarchyResource';
|