@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.533
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 +66 -0
- package/README.md +42 -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/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductAggregationResource.d.ts +50 -0
- package/dist/models/ProductAggregationResource.js +63 -0
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductAggregationResourceArrayResponse.js +50 -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/ProductRating.d.ts +26 -0
- package/dist/models/ProductRating.js +52 -0
- package/dist/models/ProductSearchResponseResource.d.ts +54 -0
- package/dist/models/ProductSearchResponseResource.js +67 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
- package/dist/models/ProductSearchResultResource.d.ts +116 -0
- package/dist/models/ProductSearchResultResource.js +105 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
- package/dist/models/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +113 -0
- package/dist/models/StoreProductCategoryRequest.js +94 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +87 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +87 -0
- package/dist/models/UpdateProductCategoryRequest.d.ts +113 -0
- package/dist/models/UpdateProductCategoryRequest.js +82 -0
- package/dist/models/index.d.ts +32 -0
- package/dist/models/index.js +32 -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/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -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/ProductRating.md +32 -0
- package/docs/ProductSearchResponseResource.md +40 -0
- package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResponseResourceMeta.md +40 -0
- package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
- package/docs/ProductSearchResultResource.md +62 -0
- package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
- package/docs/ProductSortBy.md +32 -0
- package/docs/ProductStatus.md +32 -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/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -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/ProductRating.ts +54 -0
- package/src/models/ProductSearchResponseResource.ts +122 -0
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
- package/src/models/ProductSearchResultResource.ts +191 -0
- package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/StoreProductCategoryRequest.ts +186 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +136 -0
- package/src/models/UpdateProductCategoryRequest.ts +180 -0
- package/src/models/index.ts +32 -0
|
@@ -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 { CategoryAutomationRuleResource } from './CategoryAutomationRuleResource';
|
|
17
|
+
import {
|
|
18
|
+
CategoryAutomationRuleResourceFromJSON,
|
|
19
|
+
CategoryAutomationRuleResourceFromJSONTyped,
|
|
20
|
+
CategoryAutomationRuleResourceToJSON,
|
|
21
|
+
CategoryAutomationRuleResourceToJSONTyped,
|
|
22
|
+
} from './CategoryAutomationRuleResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CategoryAutomationRuleResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CategoryAutomationRuleResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CategoryAutomationRuleResource>}
|
|
33
|
+
* @memberof CategoryAutomationRuleResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CategoryAutomationRuleResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CategoryAutomationRuleResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCategoryAutomationRuleResourceArrayResponse(value: object): value is CategoryAutomationRuleResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CategoryAutomationRuleResourceArrayResponseFromJSON(json: any): CategoryAutomationRuleResourceArrayResponse {
|
|
46
|
+
return CategoryAutomationRuleResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CategoryAutomationRuleResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationRuleResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CategoryAutomationRuleResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CategoryAutomationRuleResourceArrayResponseToJSON(json: any): CategoryAutomationRuleResourceArrayResponse {
|
|
60
|
+
return CategoryAutomationRuleResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CategoryAutomationRuleResourceArrayResponseToJSONTyped(value?: CategoryAutomationRuleResourceArrayResponse | 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(CategoryAutomationRuleResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -0,0 +1,171 @@
|
|
|
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 GetAllProductCategoryRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GetAllProductCategoryRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetAllProductCategoryRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetAllProductCategoryRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: GetAllProductCategoryRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetAllProductCategoryRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: GetAllProductCategoryRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetAllProductCategoryRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetAllProductCategoryRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: GetAllProductCategoryRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllProductCategoryRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof GetAllProductCategoryRequest
|
|
62
|
+
*/
|
|
63
|
+
siteId?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof GetAllProductCategoryRequest
|
|
68
|
+
*/
|
|
69
|
+
parentId?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof GetAllProductCategoryRequest
|
|
74
|
+
*/
|
|
75
|
+
isDisabled?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<string>}
|
|
79
|
+
* @memberof GetAllProductCategoryRequest
|
|
80
|
+
*/
|
|
81
|
+
isAutomated?: Array<string>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const GetAllProductCategoryRequestSortByEnum = {
|
|
89
|
+
Id: 'id',
|
|
90
|
+
Name: 'name',
|
|
91
|
+
Slug: 'slug',
|
|
92
|
+
Index: 'index',
|
|
93
|
+
IsDisabled: 'is_disabled',
|
|
94
|
+
IsAutomated: 'is_automated',
|
|
95
|
+
CreatedAt: 'created_at',
|
|
96
|
+
UpdatedAt: 'updated_at'
|
|
97
|
+
} as const;
|
|
98
|
+
export type GetAllProductCategoryRequestSortByEnum = typeof GetAllProductCategoryRequestSortByEnum[keyof typeof GetAllProductCategoryRequestSortByEnum];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export const GetAllProductCategoryRequestSortDirectionEnum = {
|
|
104
|
+
Asc: 'asc',
|
|
105
|
+
Desc: 'desc'
|
|
106
|
+
} as const;
|
|
107
|
+
export type GetAllProductCategoryRequestSortDirectionEnum = typeof GetAllProductCategoryRequestSortDirectionEnum[keyof typeof GetAllProductCategoryRequestSortDirectionEnum];
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export const GetAllProductCategoryRequestRelatedTypeEnum = {
|
|
113
|
+
Product: 'product'
|
|
114
|
+
} as const;
|
|
115
|
+
export type GetAllProductCategoryRequestRelatedTypeEnum = typeof GetAllProductCategoryRequestRelatedTypeEnum[keyof typeof GetAllProductCategoryRequestRelatedTypeEnum];
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Check if a given object implements the GetAllProductCategoryRequest interface.
|
|
120
|
+
*/
|
|
121
|
+
export function instanceOfGetAllProductCategoryRequest(value: object): value is GetAllProductCategoryRequest {
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function GetAllProductCategoryRequestFromJSON(json: any): GetAllProductCategoryRequest {
|
|
126
|
+
return GetAllProductCategoryRequestFromJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function GetAllProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductCategoryRequest {
|
|
130
|
+
if (json == null) {
|
|
131
|
+
return json;
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
136
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
137
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
138
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
139
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
140
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
141
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
142
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
143
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
144
|
+
'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function GetAllProductCategoryRequestToJSON(json: any): GetAllProductCategoryRequest {
|
|
149
|
+
return GetAllProductCategoryRequestToJSONTyped(json, false);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function GetAllProductCategoryRequestToJSONTyped(value?: GetAllProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
153
|
+
if (value == null) {
|
|
154
|
+
return value;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return {
|
|
158
|
+
|
|
159
|
+
'search': value['search'],
|
|
160
|
+
'sortBy': value['sortBy'],
|
|
161
|
+
'sortDirection': value['sortDirection'],
|
|
162
|
+
'related_id': value['relatedId'],
|
|
163
|
+
'related_type': value['relatedType'],
|
|
164
|
+
'includes_relations': value['includesRelations'],
|
|
165
|
+
'site_id': value['siteId'],
|
|
166
|
+
'parent_id': value['parentId'],
|
|
167
|
+
'is_disabled': value['isDisabled'],
|
|
168
|
+
'is_automated': value['isAutomated'],
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
@@ -0,0 +1,187 @@
|
|
|
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 IndexProductCategoryRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexProductCategoryRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexProductCategoryRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IndexProductCategoryRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexProductCategoryRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IndexProductCategoryRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexProductCategoryRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexProductCategoryRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexProductCategoryRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof IndexProductCategoryRequest
|
|
56
|
+
*/
|
|
57
|
+
siteId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof IndexProductCategoryRequest
|
|
62
|
+
*/
|
|
63
|
+
parentId?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof IndexProductCategoryRequest
|
|
68
|
+
*/
|
|
69
|
+
isDisabled?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof IndexProductCategoryRequest
|
|
74
|
+
*/
|
|
75
|
+
isAutomated?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof IndexProductCategoryRequest
|
|
80
|
+
*/
|
|
81
|
+
relatedId?: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof IndexProductCategoryRequest
|
|
86
|
+
*/
|
|
87
|
+
relatedType?: IndexProductCategoryRequestRelatedTypeEnum;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof IndexProductCategoryRequest
|
|
92
|
+
*/
|
|
93
|
+
includesRelations?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const IndexProductCategoryRequestSortByEnum = {
|
|
101
|
+
Id: 'id',
|
|
102
|
+
Name: 'name',
|
|
103
|
+
Slug: 'slug',
|
|
104
|
+
Index: 'index',
|
|
105
|
+
IsDisabled: 'is_disabled',
|
|
106
|
+
IsAutomated: 'is_automated',
|
|
107
|
+
CreatedAt: 'created_at',
|
|
108
|
+
UpdatedAt: 'updated_at'
|
|
109
|
+
} as const;
|
|
110
|
+
export type IndexProductCategoryRequestSortByEnum = typeof IndexProductCategoryRequestSortByEnum[keyof typeof IndexProductCategoryRequestSortByEnum];
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
export const IndexProductCategoryRequestSortDirectionEnum = {
|
|
116
|
+
Asc: 'asc',
|
|
117
|
+
Desc: 'desc'
|
|
118
|
+
} as const;
|
|
119
|
+
export type IndexProductCategoryRequestSortDirectionEnum = typeof IndexProductCategoryRequestSortDirectionEnum[keyof typeof IndexProductCategoryRequestSortDirectionEnum];
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @export
|
|
123
|
+
*/
|
|
124
|
+
export const IndexProductCategoryRequestRelatedTypeEnum = {
|
|
125
|
+
Product: 'product'
|
|
126
|
+
} as const;
|
|
127
|
+
export type IndexProductCategoryRequestRelatedTypeEnum = typeof IndexProductCategoryRequestRelatedTypeEnum[keyof typeof IndexProductCategoryRequestRelatedTypeEnum];
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Check if a given object implements the IndexProductCategoryRequest interface.
|
|
132
|
+
*/
|
|
133
|
+
export function instanceOfIndexProductCategoryRequest(value: object): value is IndexProductCategoryRequest {
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function IndexProductCategoryRequestFromJSON(json: any): IndexProductCategoryRequest {
|
|
138
|
+
return IndexProductCategoryRequestFromJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function IndexProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductCategoryRequest {
|
|
142
|
+
if (json == null) {
|
|
143
|
+
return json;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
148
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
149
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
150
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
151
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
152
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
153
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
154
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
155
|
+
'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
|
|
156
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
157
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
158
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function IndexProductCategoryRequestToJSON(json: any): IndexProductCategoryRequest {
|
|
163
|
+
return IndexProductCategoryRequestToJSONTyped(json, false);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function IndexProductCategoryRequestToJSONTyped(value?: IndexProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
167
|
+
if (value == null) {
|
|
168
|
+
return value;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
|
|
173
|
+
'search': value['search'],
|
|
174
|
+
'sortBy': value['sortBy'],
|
|
175
|
+
'sortDirection': value['sortDirection'],
|
|
176
|
+
'per_page': value['perPage'],
|
|
177
|
+
'page': value['page'],
|
|
178
|
+
'site_id': value['siteId'],
|
|
179
|
+
'parent_id': value['parentId'],
|
|
180
|
+
'is_disabled': value['isDisabled'],
|
|
181
|
+
'is_automated': value['isAutomated'],
|
|
182
|
+
'related_id': value['relatedId'],
|
|
183
|
+
'related_type': value['relatedType'],
|
|
184
|
+
'includes_relations': value['includesRelations'],
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { ProductCategoryListResource } from './ProductCategoryListResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductCategoryListResourceFromJSON,
|
|
19
|
+
ProductCategoryListResourceFromJSONTyped,
|
|
20
|
+
ProductCategoryListResourceToJSON,
|
|
21
|
+
ProductCategoryListResourceToJSONTyped,
|
|
22
|
+
} from './ProductCategoryListResource';
|
|
23
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
24
|
+
import {
|
|
25
|
+
PagingMetadataFromJSON,
|
|
26
|
+
PagingMetadataFromJSONTyped,
|
|
27
|
+
PagingMetadataToJSON,
|
|
28
|
+
PagingMetadataToJSONTyped,
|
|
29
|
+
} from './PagingMetadata';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductCategoryListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductCategoryListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductCategoryListResource>}
|
|
40
|
+
* @memberof PaginatedProductCategoryListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductCategoryListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductCategoryListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductCategoryListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductCategoryListResourceResponse(value: object): value is PaginatedProductCategoryListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductCategoryListResourceResponseFromJSON(json: any): PaginatedProductCategoryListResourceResponse {
|
|
61
|
+
return PaginatedProductCategoryListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductCategoryListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductCategoryListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductCategoryListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductCategoryListResourceResponseToJSON(json: any): PaginatedProductCategoryListResourceResponse {
|
|
76
|
+
return PaginatedProductCategoryListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductCategoryListResourceResponseToJSONTyped(value?: PaginatedProductCategoryListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductCategoryListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductCategoryResource } from './ProductCategoryResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductCategoryResourceFromJSON,
|
|
26
|
+
ProductCategoryResourceFromJSONTyped,
|
|
27
|
+
ProductCategoryResourceToJSON,
|
|
28
|
+
ProductCategoryResourceToJSONTyped,
|
|
29
|
+
} from './ProductCategoryResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductCategoryResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductCategoryResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductCategoryResource>}
|
|
40
|
+
* @memberof PaginatedProductCategoryResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductCategoryResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductCategoryResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductCategoryResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductCategoryResourceResponse(value: object): value is PaginatedProductCategoryResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductCategoryResourceResponseFromJSON(json: any): PaginatedProductCategoryResourceResponse {
|
|
61
|
+
return PaginatedProductCategoryResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductCategoryResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductCategoryResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductCategoryResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductCategoryResourceResponseToJSON(json: any): PaginatedProductCategoryResourceResponse {
|
|
76
|
+
return PaginatedProductCategoryResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductCategoryResourceResponseToJSONTyped(value?: PaginatedProductCategoryResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductCategoryResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|