@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,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 { ProductCategoryListResource } from './ProductCategoryListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductCategoryListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductCategoryListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductCategoryListResource>}
|
|
22
|
+
* @memberof ProductCategoryListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductCategoryListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductCategoryListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductCategoryListResourceArrayResponse(value: object): value is ProductCategoryListResourceArrayResponse;
|
|
30
|
+
export declare function ProductCategoryListResourceArrayResponseFromJSON(json: any): ProductCategoryListResourceArrayResponse;
|
|
31
|
+
export declare function ProductCategoryListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryListResourceArrayResponse;
|
|
32
|
+
export declare function ProductCategoryListResourceArrayResponseToJSON(json: any): ProductCategoryListResourceArrayResponse;
|
|
33
|
+
export declare function ProductCategoryListResourceArrayResponseToJSONTyped(value?: ProductCategoryListResourceArrayResponse | 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.instanceOfProductCategoryListResourceArrayResponse = instanceOfProductCategoryListResourceArrayResponse;
|
|
17
|
+
exports.ProductCategoryListResourceArrayResponseFromJSON = ProductCategoryListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductCategoryListResourceArrayResponseFromJSONTyped = ProductCategoryListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductCategoryListResourceArrayResponseToJSON = ProductCategoryListResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductCategoryListResourceArrayResponseToJSONTyped = ProductCategoryListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductCategoryListResource_1 = require("./ProductCategoryListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductCategoryListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductCategoryListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductCategoryListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductCategoryListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductCategoryListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductCategoryListResource_1.ProductCategoryListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductCategoryListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductCategoryListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductCategoryListResourceArrayResponseToJSONTyped(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(ProductCategoryListResource_1.ProductCategoryListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 ProductCategoryLiteResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductCategoryLiteResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductCategoryLiteResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductCategoryLiteResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ProductCategoryLiteResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfProductCategoryLiteResource(value: object): value is ProductCategoryLiteResource;
|
|
35
|
+
export declare function ProductCategoryLiteResourceFromJSON(json: any): ProductCategoryLiteResource;
|
|
36
|
+
export declare function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryLiteResource;
|
|
37
|
+
export declare function ProductCategoryLiteResourceToJSON(json: any): ProductCategoryLiteResource;
|
|
38
|
+
export declare function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfProductCategoryLiteResource = instanceOfProductCategoryLiteResource;
|
|
17
|
+
exports.ProductCategoryLiteResourceFromJSON = ProductCategoryLiteResourceFromJSON;
|
|
18
|
+
exports.ProductCategoryLiteResourceFromJSONTyped = ProductCategoryLiteResourceFromJSONTyped;
|
|
19
|
+
exports.ProductCategoryLiteResourceToJSON = ProductCategoryLiteResourceToJSON;
|
|
20
|
+
exports.ProductCategoryLiteResourceToJSONTyped = ProductCategoryLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductCategoryLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductCategoryLiteResource(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ProductCategoryLiteResourceFromJSON(json) {
|
|
30
|
+
return ProductCategoryLiteResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ProductCategoryLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ProductCategoryLiteResourceToJSON(json) {
|
|
42
|
+
return ProductCategoryLiteResourceToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ProductCategoryLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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 { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductCategoryLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductCategoryLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductCategoryLiteResource>}
|
|
22
|
+
* @memberof ProductCategoryLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductCategoryLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductCategoryLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductCategoryLiteResourceArrayResponse(value: object): value is ProductCategoryLiteResourceArrayResponse;
|
|
30
|
+
export declare function ProductCategoryLiteResourceArrayResponseFromJSON(json: any): ProductCategoryLiteResourceArrayResponse;
|
|
31
|
+
export declare function ProductCategoryLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryLiteResourceArrayResponse;
|
|
32
|
+
export declare function ProductCategoryLiteResourceArrayResponseToJSON(json: any): ProductCategoryLiteResourceArrayResponse;
|
|
33
|
+
export declare function ProductCategoryLiteResourceArrayResponseToJSONTyped(value?: ProductCategoryLiteResourceArrayResponse | 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.instanceOfProductCategoryLiteResourceArrayResponse = instanceOfProductCategoryLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductCategoryLiteResourceArrayResponseFromJSON = ProductCategoryLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductCategoryLiteResourceArrayResponseFromJSONTyped = ProductCategoryLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductCategoryLiteResourceArrayResponseToJSON = ProductCategoryLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductCategoryLiteResourceArrayResponseToJSONTyped = ProductCategoryLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductCategoryLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductCategoryLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductCategoryLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductCategoryLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductCategoryLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductCategoryLiteResource_1.ProductCategoryLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductCategoryLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductCategoryLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductCategoryLiteResourceArrayResponseToJSONTyped(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(ProductCategoryLiteResource_1.ProductCategoryLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
14
|
+
import type { AssetResource } from './AssetResource';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ProductCategoryResource
|
|
19
|
+
*/
|
|
20
|
+
export interface ProductCategoryResource {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof ProductCategoryResource
|
|
25
|
+
*/
|
|
26
|
+
id?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof ProductCategoryResource
|
|
31
|
+
*/
|
|
32
|
+
siteId: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ProductCategoryResource
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof ProductCategoryResource
|
|
43
|
+
*/
|
|
44
|
+
slug: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ProductCategoryResource
|
|
49
|
+
*/
|
|
50
|
+
parentId?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof ProductCategoryResource
|
|
55
|
+
*/
|
|
56
|
+
isDisabled: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof ProductCategoryResource
|
|
61
|
+
*/
|
|
62
|
+
isAutomated: boolean;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof ProductCategoryResource
|
|
67
|
+
*/
|
|
68
|
+
index: number;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof ProductCategoryResource
|
|
73
|
+
*/
|
|
74
|
+
automatedConditionType?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {AssetResource}
|
|
78
|
+
* @memberof ProductCategoryResource
|
|
79
|
+
*/
|
|
80
|
+
thumbnail: AssetResource | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {object}
|
|
84
|
+
* @memberof ProductCategoryResource
|
|
85
|
+
*/
|
|
86
|
+
automationRules: object;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {ProductCategoryLiteResource}
|
|
90
|
+
* @memberof ProductCategoryResource
|
|
91
|
+
*/
|
|
92
|
+
parent: ProductCategoryLiteResource | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {SiteLiteResource}
|
|
96
|
+
* @memberof ProductCategoryResource
|
|
97
|
+
*/
|
|
98
|
+
site: SiteLiteResource | null;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Check if a given object implements the ProductCategoryResource interface.
|
|
102
|
+
*/
|
|
103
|
+
export declare function instanceOfProductCategoryResource(value: object): value is ProductCategoryResource;
|
|
104
|
+
export declare function ProductCategoryResourceFromJSON(json: any): ProductCategoryResource;
|
|
105
|
+
export declare function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryResource;
|
|
106
|
+
export declare function ProductCategoryResourceToJSON(json: any): ProductCategoryResource;
|
|
107
|
+
export declare function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,96 @@
|
|
|
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.instanceOfProductCategoryResource = instanceOfProductCategoryResource;
|
|
17
|
+
exports.ProductCategoryResourceFromJSON = ProductCategoryResourceFromJSON;
|
|
18
|
+
exports.ProductCategoryResourceFromJSONTyped = ProductCategoryResourceFromJSONTyped;
|
|
19
|
+
exports.ProductCategoryResourceToJSON = ProductCategoryResourceToJSON;
|
|
20
|
+
exports.ProductCategoryResourceToJSONTyped = ProductCategoryResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
|
|
23
|
+
var AssetResource_1 = require("./AssetResource");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ProductCategoryResource interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfProductCategoryResource(value) {
|
|
28
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('isAutomated' in value) || value['isAutomated'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('index' in value) || value['index'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('automationRules' in value) || value['automationRules'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('parent' in value) || value['parent'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function ProductCategoryResourceFromJSON(json) {
|
|
51
|
+
return ProductCategoryResourceFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
59
|
+
'siteId': json['siteId'],
|
|
60
|
+
'name': json['name'],
|
|
61
|
+
'slug': json['slug'],
|
|
62
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
63
|
+
'isDisabled': json['isDisabled'],
|
|
64
|
+
'isAutomated': json['isAutomated'],
|
|
65
|
+
'index': json['index'],
|
|
66
|
+
'automatedConditionType': json['automatedConditionType'] == null ? undefined : json['automatedConditionType'],
|
|
67
|
+
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
68
|
+
'automationRules': json['automationRules'],
|
|
69
|
+
'parent': (0, ProductCategoryLiteResource_1.ProductCategoryLiteResourceFromJSON)(json['parent']),
|
|
70
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function ProductCategoryResourceToJSON(json) {
|
|
74
|
+
return ProductCategoryResourceToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
77
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'id': value['id'],
|
|
83
|
+
'siteId': value['siteId'],
|
|
84
|
+
'name': value['name'],
|
|
85
|
+
'slug': value['slug'],
|
|
86
|
+
'parentId': value['parentId'],
|
|
87
|
+
'isDisabled': value['isDisabled'],
|
|
88
|
+
'isAutomated': value['isAutomated'],
|
|
89
|
+
'index': value['index'],
|
|
90
|
+
'automatedConditionType': value['automatedConditionType'],
|
|
91
|
+
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
92
|
+
'automationRules': value['automationRules'],
|
|
93
|
+
'parent': (0, ProductCategoryLiteResource_1.ProductCategoryLiteResourceToJSON)(value['parent']),
|
|
94
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -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 { ProductCategoryResource } from './ProductCategoryResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductCategoryResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductCategoryResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductCategoryResource>}
|
|
22
|
+
* @memberof ProductCategoryResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductCategoryResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductCategoryResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductCategoryResourceArrayResponse(value: object): value is ProductCategoryResourceArrayResponse;
|
|
30
|
+
export declare function ProductCategoryResourceArrayResponseFromJSON(json: any): ProductCategoryResourceArrayResponse;
|
|
31
|
+
export declare function ProductCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryResourceArrayResponse;
|
|
32
|
+
export declare function ProductCategoryResourceArrayResponseToJSON(json: any): ProductCategoryResourceArrayResponse;
|
|
33
|
+
export declare function ProductCategoryResourceArrayResponseToJSONTyped(value?: ProductCategoryResourceArrayResponse | 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.instanceOfProductCategoryResourceArrayResponse = instanceOfProductCategoryResourceArrayResponse;
|
|
17
|
+
exports.ProductCategoryResourceArrayResponseFromJSON = ProductCategoryResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductCategoryResourceArrayResponseFromJSONTyped = ProductCategoryResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductCategoryResourceArrayResponseToJSON = ProductCategoryResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductCategoryResourceArrayResponseToJSONTyped = ProductCategoryResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductCategoryResource_1 = require("./ProductCategoryResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductCategoryResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductCategoryResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductCategoryResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductCategoryResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductCategoryResource_1.ProductCategoryResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductCategoryResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductCategoryResourceArrayResponseToJSONTyped(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(ProductCategoryResource_1.ProductCategoryResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 StoreProductCategoryRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreProductCategoryRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof StoreProductCategoryRequest
|
|
23
|
+
*/
|
|
24
|
+
siteId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof StoreProductCategoryRequest
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof StoreProductCategoryRequest
|
|
35
|
+
*/
|
|
36
|
+
slug: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof StoreProductCategoryRequest
|
|
41
|
+
*/
|
|
42
|
+
parentId?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof StoreProductCategoryRequest
|
|
47
|
+
*/
|
|
48
|
+
isDisabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof StoreProductCategoryRequest
|
|
53
|
+
*/
|
|
54
|
+
hideFromFrontend?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof StoreProductCategoryRequest
|
|
59
|
+
*/
|
|
60
|
+
isAutomated: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof StoreProductCategoryRequest
|
|
65
|
+
*/
|
|
66
|
+
index?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof StoreProductCategoryRequest
|
|
71
|
+
*/
|
|
72
|
+
automatedConditionType?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
|
|
76
|
+
* @memberof StoreProductCategoryRequest
|
|
77
|
+
*/
|
|
78
|
+
automationRules?: Array<StoreProductCategoryRequestAutomationRulesInner>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof StoreProductCategoryRequest
|
|
83
|
+
*/
|
|
84
|
+
altText?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof StoreProductCategoryRequest
|
|
89
|
+
*/
|
|
90
|
+
mimeType: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof StoreProductCategoryRequest
|
|
95
|
+
*/
|
|
96
|
+
fileId: number;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the StoreProductCategoryRequest interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfStoreProductCategoryRequest(value: object): value is StoreProductCategoryRequest;
|
|
102
|
+
export declare function StoreProductCategoryRequestFromJSON(json: any): StoreProductCategoryRequest;
|
|
103
|
+
export declare function StoreProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequest;
|
|
104
|
+
export declare function StoreProductCategoryRequestToJSON(json: any): StoreProductCategoryRequest;
|
|
105
|
+
export declare function StoreProductCategoryRequestToJSONTyped(value?: StoreProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|