@digital8/lighting-illusions-ts-sdk 0.0.530 → 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 -24
- package/README.md +30 -14
- 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 -12
- package/dist/models/index.js +20 -12
- package/docs/{ProductSortBy.md → CategoryAutomationComparisonType.md} +4 -4
- package/docs/{ProductStatus.md → CategoryAutomationConditionType.md} +4 -4
- package/docs/{ProductRating.md → CategoryAutomationFieldType.md} +4 -4
- 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/{PaginatedProductSearchResultResourceResponse.md → PaginatedProductCategoryListResourceResponse.md} +5 -5
- package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
- package/docs/ProductCategoryApi.md +534 -0
- package/docs/{ProductAggregationResource.md → ProductCategoryHierarchyResource.md} +16 -12
- package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryListResource.md +48 -0
- package/docs/{ProductSearchResultResourceArrayResponse.md → ProductCategoryListResourceArrayResponse.md} +5 -5
- package/docs/ProductCategoryLiteResource.md +36 -0
- package/docs/{ProductSearchResponseResourceArrayResponse.md → ProductCategoryLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductCategoryResource.md +58 -0
- package/docs/{ProductAggregationResourceArrayResponse.md → ProductCategoryResourceArrayResponse.md} +5 -5
- 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 -12
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +0 -57
- package/dist/models/ProductAggregationResource.d.ts +0 -50
- package/dist/models/ProductAggregationResource.js +0 -63
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductAggregationResourceArrayResponse.js +0 -50
- package/dist/models/ProductRating.d.ts +0 -26
- package/dist/models/ProductRating.js +0 -52
- package/dist/models/ProductSearchResponseResource.d.ts +0 -54
- package/dist/models/ProductSearchResponseResource.js +0 -67
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.js +0 -63
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +0 -63
- package/dist/models/ProductSearchResultResource.d.ts +0 -116
- package/dist/models/ProductSearchResultResource.js +0 -105
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResultResourceArrayResponse.js +0 -50
- package/dist/models/ProductSortBy.d.ts +0 -32
- package/dist/models/ProductSortBy.js +0 -58
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/docs/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceMeta.md +0 -40
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +0 -90
- package/src/models/ProductAggregationResource.ts +0 -93
- package/src/models/ProductAggregationResourceArrayResponse.ts +0 -73
- package/src/models/ProductRating.ts +0 -54
- package/src/models/ProductSearchResponseResource.ts +0 -122
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +0 -73
- package/src/models/ProductSearchResponseResourceMeta.ts +0 -93
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +0 -93
- package/src/models/ProductSearchResultResource.ts +0 -191
- package/src/models/ProductSearchResultResourceArrayResponse.ts +0 -73
- package/src/models/ProductSortBy.ts +0 -60
- package/src/models/ProductStatus.ts +0 -52
|
@@ -0,0 +1,56 @@
|
|
|
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.CategoryAutomationFieldType = void 0;
|
|
17
|
+
exports.instanceOfCategoryAutomationFieldType = instanceOfCategoryAutomationFieldType;
|
|
18
|
+
exports.CategoryAutomationFieldTypeFromJSON = CategoryAutomationFieldTypeFromJSON;
|
|
19
|
+
exports.CategoryAutomationFieldTypeFromJSONTyped = CategoryAutomationFieldTypeFromJSONTyped;
|
|
20
|
+
exports.CategoryAutomationFieldTypeToJSON = CategoryAutomationFieldTypeToJSON;
|
|
21
|
+
exports.CategoryAutomationFieldTypeToJSONTyped = CategoryAutomationFieldTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CategoryAutomationFieldType = {
|
|
27
|
+
Price: 'price',
|
|
28
|
+
Name: 'name',
|
|
29
|
+
VariantName: 'variant_name',
|
|
30
|
+
Attribute: 'attribute',
|
|
31
|
+
Tag: 'tag',
|
|
32
|
+
Supplier: 'supplier',
|
|
33
|
+
Label: 'label'
|
|
34
|
+
};
|
|
35
|
+
function instanceOfCategoryAutomationFieldType(value) {
|
|
36
|
+
for (var key in exports.CategoryAutomationFieldType) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(exports.CategoryAutomationFieldType, key)) {
|
|
38
|
+
if (exports.CategoryAutomationFieldType[key] === value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
function CategoryAutomationFieldTypeFromJSON(json) {
|
|
46
|
+
return CategoryAutomationFieldTypeFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function CategoryAutomationFieldTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
function CategoryAutomationFieldTypeToJSON(value) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
function CategoryAutomationFieldTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 CategoryAutomationRuleResource
|
|
16
|
+
*/
|
|
17
|
+
export interface CategoryAutomationRuleResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CategoryAutomationRuleResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof CategoryAutomationRuleResource
|
|
28
|
+
*/
|
|
29
|
+
fieldType: object;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof CategoryAutomationRuleResource
|
|
34
|
+
*/
|
|
35
|
+
comparisonType: object;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CategoryAutomationRuleResource
|
|
40
|
+
*/
|
|
41
|
+
groupId?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CategoryAutomationRuleResource
|
|
46
|
+
*/
|
|
47
|
+
relatedId?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CategoryAutomationRuleResource
|
|
52
|
+
*/
|
|
53
|
+
value: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CategoryAutomationRuleResource
|
|
58
|
+
*/
|
|
59
|
+
valueId?: string | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the CategoryAutomationRuleResource interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfCategoryAutomationRuleResource(value: object): value is CategoryAutomationRuleResource;
|
|
65
|
+
export declare function CategoryAutomationRuleResourceFromJSON(json: any): CategoryAutomationRuleResource;
|
|
66
|
+
export declare function CategoryAutomationRuleResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationRuleResource;
|
|
67
|
+
export declare function CategoryAutomationRuleResourceToJSON(json: any): CategoryAutomationRuleResource;
|
|
68
|
+
export declare function CategoryAutomationRuleResourceToJSONTyped(value?: CategoryAutomationRuleResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfCategoryAutomationRuleResource = instanceOfCategoryAutomationRuleResource;
|
|
17
|
+
exports.CategoryAutomationRuleResourceFromJSON = CategoryAutomationRuleResourceFromJSON;
|
|
18
|
+
exports.CategoryAutomationRuleResourceFromJSONTyped = CategoryAutomationRuleResourceFromJSONTyped;
|
|
19
|
+
exports.CategoryAutomationRuleResourceToJSON = CategoryAutomationRuleResourceToJSON;
|
|
20
|
+
exports.CategoryAutomationRuleResourceToJSONTyped = CategoryAutomationRuleResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CategoryAutomationRuleResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCategoryAutomationRuleResource(value) {
|
|
25
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('comparisonType' in value) || value['comparisonType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CategoryAutomationRuleResourceFromJSON(json) {
|
|
34
|
+
return CategoryAutomationRuleResourceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CategoryAutomationRuleResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
42
|
+
'fieldType': json['fieldType'],
|
|
43
|
+
'comparisonType': json['comparisonType'],
|
|
44
|
+
'groupId': json['groupId'] == null ? undefined : json['groupId'],
|
|
45
|
+
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
46
|
+
'value': json['value'],
|
|
47
|
+
'valueId': json['valueId'] == null ? undefined : json['valueId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function CategoryAutomationRuleResourceToJSON(json) {
|
|
51
|
+
return CategoryAutomationRuleResourceToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function CategoryAutomationRuleResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'fieldType': value['fieldType'],
|
|
61
|
+
'comparisonType': value['comparisonType'],
|
|
62
|
+
'groupId': value['groupId'],
|
|
63
|
+
'relatedId': value['relatedId'],
|
|
64
|
+
'value': value['value'],
|
|
65
|
+
'valueId': value['valueId'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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 { CategoryAutomationRuleResource } from './CategoryAutomationRuleResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CategoryAutomationRuleResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CategoryAutomationRuleResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CategoryAutomationRuleResource>}
|
|
22
|
+
* @memberof CategoryAutomationRuleResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CategoryAutomationRuleResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CategoryAutomationRuleResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCategoryAutomationRuleResourceArrayResponse(value: object): value is CategoryAutomationRuleResourceArrayResponse;
|
|
30
|
+
export declare function CategoryAutomationRuleResourceArrayResponseFromJSON(json: any): CategoryAutomationRuleResourceArrayResponse;
|
|
31
|
+
export declare function CategoryAutomationRuleResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationRuleResourceArrayResponse;
|
|
32
|
+
export declare function CategoryAutomationRuleResourceArrayResponseToJSON(json: any): CategoryAutomationRuleResourceArrayResponse;
|
|
33
|
+
export declare function CategoryAutomationRuleResourceArrayResponseToJSONTyped(value?: CategoryAutomationRuleResourceArrayResponse | 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.instanceOfCategoryAutomationRuleResourceArrayResponse = instanceOfCategoryAutomationRuleResourceArrayResponse;
|
|
17
|
+
exports.CategoryAutomationRuleResourceArrayResponseFromJSON = CategoryAutomationRuleResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CategoryAutomationRuleResourceArrayResponseFromJSONTyped = CategoryAutomationRuleResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CategoryAutomationRuleResourceArrayResponseToJSON = CategoryAutomationRuleResourceArrayResponseToJSON;
|
|
20
|
+
exports.CategoryAutomationRuleResourceArrayResponseToJSONTyped = CategoryAutomationRuleResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CategoryAutomationRuleResource_1 = require("./CategoryAutomationRuleResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CategoryAutomationRuleResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCategoryAutomationRuleResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CategoryAutomationRuleResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CategoryAutomationRuleResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CategoryAutomationRuleResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CategoryAutomationRuleResource_1.CategoryAutomationRuleResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CategoryAutomationRuleResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CategoryAutomationRuleResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CategoryAutomationRuleResourceArrayResponseToJSONTyped(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(CategoryAutomationRuleResource_1.CategoryAutomationRuleResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,115 @@
|
|
|
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 GetAllProductCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetAllProductCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetAllProductCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetAllProductCategoryRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: GetAllProductCategoryRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetAllProductCategoryRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: GetAllProductCategoryRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetAllProductCategoryRequest
|
|
40
|
+
*/
|
|
41
|
+
relatedId?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetAllProductCategoryRequest
|
|
46
|
+
*/
|
|
47
|
+
relatedType?: GetAllProductCategoryRequestRelatedTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetAllProductCategoryRequest
|
|
52
|
+
*/
|
|
53
|
+
includesRelations?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof GetAllProductCategoryRequest
|
|
58
|
+
*/
|
|
59
|
+
siteId?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof GetAllProductCategoryRequest
|
|
64
|
+
*/
|
|
65
|
+
parentId?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof GetAllProductCategoryRequest
|
|
70
|
+
*/
|
|
71
|
+
isDisabled?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof GetAllProductCategoryRequest
|
|
76
|
+
*/
|
|
77
|
+
isAutomated?: Array<string>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const GetAllProductCategoryRequestSortByEnum: {
|
|
83
|
+
readonly Id: "id";
|
|
84
|
+
readonly Name: "name";
|
|
85
|
+
readonly Slug: "slug";
|
|
86
|
+
readonly Index: "index";
|
|
87
|
+
readonly IsDisabled: "is_disabled";
|
|
88
|
+
readonly IsAutomated: "is_automated";
|
|
89
|
+
readonly CreatedAt: "created_at";
|
|
90
|
+
readonly UpdatedAt: "updated_at";
|
|
91
|
+
};
|
|
92
|
+
export type GetAllProductCategoryRequestSortByEnum = typeof GetAllProductCategoryRequestSortByEnum[keyof typeof GetAllProductCategoryRequestSortByEnum];
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export declare const GetAllProductCategoryRequestSortDirectionEnum: {
|
|
97
|
+
readonly Asc: "asc";
|
|
98
|
+
readonly Desc: "desc";
|
|
99
|
+
};
|
|
100
|
+
export type GetAllProductCategoryRequestSortDirectionEnum = typeof GetAllProductCategoryRequestSortDirectionEnum[keyof typeof GetAllProductCategoryRequestSortDirectionEnum];
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export declare const GetAllProductCategoryRequestRelatedTypeEnum: {
|
|
105
|
+
readonly Product: "product";
|
|
106
|
+
};
|
|
107
|
+
export type GetAllProductCategoryRequestRelatedTypeEnum = typeof GetAllProductCategoryRequestRelatedTypeEnum[keyof typeof GetAllProductCategoryRequestRelatedTypeEnum];
|
|
108
|
+
/**
|
|
109
|
+
* Check if a given object implements the GetAllProductCategoryRequest interface.
|
|
110
|
+
*/
|
|
111
|
+
export declare function instanceOfGetAllProductCategoryRequest(value: object): value is GetAllProductCategoryRequest;
|
|
112
|
+
export declare function GetAllProductCategoryRequestFromJSON(json: any): GetAllProductCategoryRequest;
|
|
113
|
+
export declare function GetAllProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductCategoryRequest;
|
|
114
|
+
export declare function GetAllProductCategoryRequestToJSON(json: any): GetAllProductCategoryRequest;
|
|
115
|
+
export declare function GetAllProductCategoryRequestToJSONTyped(value?: GetAllProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,94 @@
|
|
|
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.GetAllProductCategoryRequestRelatedTypeEnum = exports.GetAllProductCategoryRequestSortDirectionEnum = exports.GetAllProductCategoryRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfGetAllProductCategoryRequest = instanceOfGetAllProductCategoryRequest;
|
|
18
|
+
exports.GetAllProductCategoryRequestFromJSON = GetAllProductCategoryRequestFromJSON;
|
|
19
|
+
exports.GetAllProductCategoryRequestFromJSONTyped = GetAllProductCategoryRequestFromJSONTyped;
|
|
20
|
+
exports.GetAllProductCategoryRequestToJSON = GetAllProductCategoryRequestToJSON;
|
|
21
|
+
exports.GetAllProductCategoryRequestToJSONTyped = GetAllProductCategoryRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetAllProductCategoryRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
Name: 'name',
|
|
28
|
+
Slug: 'slug',
|
|
29
|
+
Index: 'index',
|
|
30
|
+
IsDisabled: 'is_disabled',
|
|
31
|
+
IsAutomated: 'is_automated',
|
|
32
|
+
CreatedAt: 'created_at',
|
|
33
|
+
UpdatedAt: 'updated_at'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.GetAllProductCategoryRequestSortDirectionEnum = {
|
|
39
|
+
Asc: 'asc',
|
|
40
|
+
Desc: 'desc'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
exports.GetAllProductCategoryRequestRelatedTypeEnum = {
|
|
46
|
+
Product: 'product'
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the GetAllProductCategoryRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
function instanceOfGetAllProductCategoryRequest(value) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
function GetAllProductCategoryRequestFromJSON(json) {
|
|
55
|
+
return GetAllProductCategoryRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function GetAllProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
63
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
64
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
65
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
66
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
67
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
68
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
69
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
70
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
71
|
+
'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function GetAllProductCategoryRequestToJSON(json) {
|
|
75
|
+
return GetAllProductCategoryRequestToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
function GetAllProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
78
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'search': value['search'],
|
|
84
|
+
'sortBy': value['sortBy'],
|
|
85
|
+
'sortDirection': value['sortDirection'],
|
|
86
|
+
'related_id': value['relatedId'],
|
|
87
|
+
'related_type': value['relatedType'],
|
|
88
|
+
'includes_relations': value['includesRelations'],
|
|
89
|
+
'site_id': value['siteId'],
|
|
90
|
+
'parent_id': value['parentId'],
|
|
91
|
+
'is_disabled': value['isDisabled'],
|
|
92
|
+
'is_automated': value['isAutomated'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
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 IndexProductCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexProductCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexProductCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IndexProductCategoryRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexProductCategoryRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IndexProductCategoryRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexProductCategoryRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexProductCategoryRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexProductCategoryRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexProductCategoryRequest
|
|
52
|
+
*/
|
|
53
|
+
siteId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IndexProductCategoryRequest
|
|
58
|
+
*/
|
|
59
|
+
parentId?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof IndexProductCategoryRequest
|
|
64
|
+
*/
|
|
65
|
+
isDisabled?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof IndexProductCategoryRequest
|
|
70
|
+
*/
|
|
71
|
+
isAutomated?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof IndexProductCategoryRequest
|
|
76
|
+
*/
|
|
77
|
+
relatedId?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof IndexProductCategoryRequest
|
|
82
|
+
*/
|
|
83
|
+
relatedType?: IndexProductCategoryRequestRelatedTypeEnum;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof IndexProductCategoryRequest
|
|
88
|
+
*/
|
|
89
|
+
includesRelations?: boolean;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const IndexProductCategoryRequestSortByEnum: {
|
|
95
|
+
readonly Id: "id";
|
|
96
|
+
readonly Name: "name";
|
|
97
|
+
readonly Slug: "slug";
|
|
98
|
+
readonly Index: "index";
|
|
99
|
+
readonly IsDisabled: "is_disabled";
|
|
100
|
+
readonly IsAutomated: "is_automated";
|
|
101
|
+
readonly CreatedAt: "created_at";
|
|
102
|
+
readonly UpdatedAt: "updated_at";
|
|
103
|
+
};
|
|
104
|
+
export type IndexProductCategoryRequestSortByEnum = typeof IndexProductCategoryRequestSortByEnum[keyof typeof IndexProductCategoryRequestSortByEnum];
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export declare const IndexProductCategoryRequestSortDirectionEnum: {
|
|
109
|
+
readonly Asc: "asc";
|
|
110
|
+
readonly Desc: "desc";
|
|
111
|
+
};
|
|
112
|
+
export type IndexProductCategoryRequestSortDirectionEnum = typeof IndexProductCategoryRequestSortDirectionEnum[keyof typeof IndexProductCategoryRequestSortDirectionEnum];
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const IndexProductCategoryRequestRelatedTypeEnum: {
|
|
117
|
+
readonly Product: "product";
|
|
118
|
+
};
|
|
119
|
+
export type IndexProductCategoryRequestRelatedTypeEnum = typeof IndexProductCategoryRequestRelatedTypeEnum[keyof typeof IndexProductCategoryRequestRelatedTypeEnum];
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the IndexProductCategoryRequest interface.
|
|
122
|
+
*/
|
|
123
|
+
export declare function instanceOfIndexProductCategoryRequest(value: object): value is IndexProductCategoryRequest;
|
|
124
|
+
export declare function IndexProductCategoryRequestFromJSON(json: any): IndexProductCategoryRequest;
|
|
125
|
+
export declare function IndexProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductCategoryRequest;
|
|
126
|
+
export declare function IndexProductCategoryRequestToJSON(json: any): IndexProductCategoryRequest;
|
|
127
|
+
export declare function IndexProductCategoryRequestToJSONTyped(value?: IndexProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|