@digital8/lighting-illusions-ts-sdk 0.0.2349 → 0.0.2351
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 +14 -4
- package/README.md +9 -4
- package/dist/apis/ProductClassApi.d.ts +34 -0
- package/dist/apis/ProductClassApi.js +139 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +2 -3
- package/dist/models/AdminOrderResource.js +2 -3
- package/dist/models/AppliedCouponResource.d.ts +50 -0
- package/dist/models/{CartCouponResource.js → AppliedCouponResource.js} +13 -13
- package/dist/models/AppliedCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/AppliedCouponResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
- package/dist/models/CategoryAutomationFieldType.js +3 -1
- package/dist/models/CreatePageComponentRequest.d.ts +4 -4
- package/dist/models/CreatePageComponentRequest.js +4 -4
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
- package/dist/models/CreateSupplierRequest.d.ts +6 -0
- package/dist/models/CreateSupplierRequest.js +2 -0
- package/dist/models/FrontendCartResource.d.ts +18 -0
- package/dist/models/FrontendCartResource.js +12 -0
- package/dist/models/FrontendOrderResource.d.ts +3 -3
- package/dist/models/FrontendOrderResource.js +3 -3
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +4 -6
- package/dist/models/OrderStatusWithCountResource.d.ts +12 -0
- package/dist/models/OrderStatusWithCountResource.js +8 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
- package/dist/models/ProductClassLiteResource.d.ts +44 -0
- package/dist/models/ProductClassLiteResource.js +57 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllOrdersRequest.d.ts +6 -0
- package/dist/models/SearchAllOrdersRequest.js +2 -0
- package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
- package/dist/models/SearchAllProductClassesRequest.js +74 -0
- package/dist/models/SearchOrdersRequest.d.ts +6 -0
- package/dist/models/SearchOrdersRequest.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/SupplierFrontendResource.d.ts +6 -0
- package/dist/models/SupplierFrontendResource.js +4 -0
- package/dist/models/SupplierResource.d.ts +6 -0
- package/dist/models/SupplierResource.js +4 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
- package/dist/models/UpdatePageComponentRequest.js +4 -4
- package/dist/models/UpdateSupplierRequest.d.ts +6 -0
- package/dist/models/UpdateSupplierRequest.js +2 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/docs/AdminOrderResource.md +1 -1
- package/docs/{CartCouponResource.md → AppliedCouponResource.md} +4 -4
- package/docs/{CartCouponResourceArrayResponse.md → AppliedCouponResourceArrayResponse.md} +5 -5
- package/docs/CartListResource.md +2 -0
- package/docs/CreatePageComponentRequest.md +2 -2
- package/docs/CreateSupplierRequest.md +2 -0
- package/docs/FrontendCartResource.md +6 -0
- package/docs/FrontendOrderResource.md +1 -1
- package/docs/OrderStatusWithCountResource.md +4 -0
- package/docs/PaginatedProductClassLiteResourceResponse.md +36 -0
- package/docs/ProductClassApi.md +74 -0
- package/docs/ProductClassLiteResource.md +38 -0
- package/docs/ProductClassLiteResourceArrayResponse.md +34 -0
- package/docs/ProductClassResource.md +1 -1
- package/docs/SearchAllOrdersRequest.md +2 -0
- package/docs/SearchAllProductClassesRequest.md +44 -0
- package/docs/SearchOrdersRequest.md +2 -0
- package/docs/SupplierFrontendResource.md +2 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/UpdatePageComponentRequest.md +2 -2
- package/docs/UpdateSupplierRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductClassApi.ts +76 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +4 -11
- package/src/models/{CartCouponResource.ts → AppliedCouponResource.ts} +14 -14
- package/src/models/AppliedCouponResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CategoryAutomationFieldType.ts +3 -1
- package/src/models/CreatePageComponentRequest.ts +8 -8
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
- package/src/models/CreateSupplierRequest.ts +8 -0
- package/src/models/FrontendCartResource.ts +27 -0
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +7 -8
- package/src/models/OrderStatusWithCountResource.ts +18 -0
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
- package/src/models/ProductClassLiteResource.ts +83 -0
- package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllOrdersRequest.ts +8 -0
- package/src/models/SearchAllProductClassesRequest.ts +125 -0
- package/src/models/SearchOrdersRequest.ts +8 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +6 -4
- package/src/models/SupplierFrontendResource.ts +9 -0
- package/src/models/SupplierResource.ts +9 -0
- package/src/models/UpdatePageComponentRequest.ts +8 -8
- package/src/models/UpdateSupplierRequest.ts +8 -0
- package/src/models/index.ts +6 -2
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,83 @@
|
|
|
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 ProductClassLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductClassLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductClassLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductClassLiteResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProductClassLiteResource
|
|
38
|
+
*/
|
|
39
|
+
pathString: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ProductClassLiteResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfProductClassLiteResource(value: object): value is ProductClassLiteResource {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('pathString' in value) || value['pathString'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ProductClassLiteResourceFromJSON(json: any): ProductClassLiteResource {
|
|
52
|
+
return ProductClassLiteResourceFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ProductClassLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResource {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'pathString': json['pathString'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ProductClassLiteResourceToJSON(json: any): ProductClassLiteResource {
|
|
68
|
+
return ProductClassLiteResourceToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ProductClassLiteResourceToJSONTyped(value?: ProductClassLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'pathString': value['pathString'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductClassLiteResourceFromJSON,
|
|
19
|
+
ProductClassLiteResourceFromJSONTyped,
|
|
20
|
+
ProductClassLiteResourceToJSON,
|
|
21
|
+
ProductClassLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductClassLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductClassLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductClassLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductClassLiteResource>}
|
|
33
|
+
* @memberof ProductClassLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductClassLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductClassLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductClassLiteResourceArrayResponse(value: object): value is ProductClassLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductClassLiteResourceArrayResponseFromJSON(json: any): ProductClassLiteResourceArrayResponse {
|
|
46
|
+
return ProductClassLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductClassLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductClassLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductClassLiteResourceArrayResponseToJSON(json: any): ProductClassLiteResourceArrayResponse {
|
|
60
|
+
return ProductClassLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductClassLiteResourceArrayResponseToJSONTyped(value?: ProductClassLiteResourceArrayResponse | 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(ProductClassLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -79,6 +79,12 @@ export interface SearchAllOrdersRequest {
|
|
|
79
79
|
* @memberof SearchAllOrdersRequest
|
|
80
80
|
*/
|
|
81
81
|
customerId?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof SearchAllOrdersRequest
|
|
86
|
+
*/
|
|
87
|
+
lineItemsLabelId?: Array<string>;
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
|
|
@@ -131,6 +137,7 @@ export function SearchAllOrdersRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
131
137
|
'source': json['source'] == null ? undefined : json['source'],
|
|
132
138
|
'statusId': json['status_id'] == null ? undefined : json['status_id'],
|
|
133
139
|
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
140
|
+
'lineItemsLabelId': json['lineItems-label_id'] == null ? undefined : json['lineItems-label_id'],
|
|
134
141
|
};
|
|
135
142
|
}
|
|
136
143
|
|
|
@@ -155,6 +162,7 @@ export function SearchAllOrdersRequestToJSONTyped(value?: SearchAllOrdersRequest
|
|
|
155
162
|
'source': value['source'],
|
|
156
163
|
'status_id': value['statusId'],
|
|
157
164
|
'customer_id': value['customerId'],
|
|
165
|
+
'lineItems-label_id': value['lineItemsLabelId'],
|
|
158
166
|
};
|
|
159
167
|
}
|
|
160
168
|
|
|
@@ -0,0 +1,125 @@
|
|
|
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 SearchAllProductClassesRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchAllProductClassesRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SearchAllProductClassesRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {SearchAllProductClassesRequestSortByEnum}
|
|
31
|
+
* @memberof SearchAllProductClassesRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: SearchAllProductClassesRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {SearchAllProductClassesRequestSortDirectionEnum}
|
|
37
|
+
* @memberof SearchAllProductClassesRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: SearchAllProductClassesRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SearchAllProductClassesRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SearchAllProductClassesRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof SearchAllProductClassesRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const SearchAllProductClassesRequestSortByEnum = {
|
|
65
|
+
Id: 'id',
|
|
66
|
+
Name: 'name'
|
|
67
|
+
} as const;
|
|
68
|
+
export type SearchAllProductClassesRequestSortByEnum = typeof SearchAllProductClassesRequestSortByEnum[keyof typeof SearchAllProductClassesRequestSortByEnum];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const SearchAllProductClassesRequestSortDirectionEnum = {
|
|
74
|
+
Asc: 'asc',
|
|
75
|
+
Desc: 'desc'
|
|
76
|
+
} as const;
|
|
77
|
+
export type SearchAllProductClassesRequestSortDirectionEnum = typeof SearchAllProductClassesRequestSortDirectionEnum[keyof typeof SearchAllProductClassesRequestSortDirectionEnum];
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the SearchAllProductClassesRequest interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfSearchAllProductClassesRequest(value: object): value is SearchAllProductClassesRequest {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function SearchAllProductClassesRequestFromJSON(json: any): SearchAllProductClassesRequest {
|
|
88
|
+
return SearchAllProductClassesRequestFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function SearchAllProductClassesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAllProductClassesRequest {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
98
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
99
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
100
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
101
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
102
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function SearchAllProductClassesRequestToJSON(json: any): SearchAllProductClassesRequest {
|
|
107
|
+
return SearchAllProductClassesRequestToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function SearchAllProductClassesRequestToJSONTyped(value?: SearchAllProductClassesRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'search': value['search'],
|
|
118
|
+
'sortBy': value['sortBy'],
|
|
119
|
+
'sortDirection': value['sortDirection'],
|
|
120
|
+
'related_id': value['relatedId'],
|
|
121
|
+
'related_type': value['relatedType'],
|
|
122
|
+
'includes_relations': value['includesRelations'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -73,6 +73,12 @@ export interface SearchOrdersRequest {
|
|
|
73
73
|
* @memberof SearchOrdersRequest
|
|
74
74
|
*/
|
|
75
75
|
customerId?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<string>}
|
|
79
|
+
* @memberof SearchOrdersRequest
|
|
80
|
+
*/
|
|
81
|
+
lineItemsLabelId?: Array<string>;
|
|
76
82
|
/**
|
|
77
83
|
*
|
|
78
84
|
* @type {Date}
|
|
@@ -184,6 +190,7 @@ export function SearchOrdersRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
184
190
|
'source': json['source'] == null ? undefined : json['source'],
|
|
185
191
|
'statusId': json['status_id'] == null ? undefined : json['status_id'],
|
|
186
192
|
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
193
|
+
'lineItemsLabelId': json['lineItems-label_id'] == null ? undefined : json['lineItems-label_id'],
|
|
187
194
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
188
195
|
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
189
196
|
'beforePlacedAt': json['before_placed_at'] == null ? undefined : (new Date(json['before_placed_at'])),
|
|
@@ -217,6 +224,7 @@ export function SearchOrdersRequestToJSONTyped(value?: SearchOrdersRequest | nul
|
|
|
217
224
|
'source': value['source'],
|
|
218
225
|
'status_id': value['statusId'],
|
|
219
226
|
'customer_id': value['customerId'],
|
|
227
|
+
'lineItems-label_id': value['lineItemsLabelId'],
|
|
220
228
|
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
221
229
|
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
222
230
|
'before_placed_at': value['beforePlacedAt'] == null ? value['beforePlacedAt'] : value['beforePlacedAt'].toISOString(),
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -110,6 +110,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
114
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
114
115
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
115
116
|
return true;
|
|
@@ -134,7 +135,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
137
|
'longitude': json['longitude'],
|
|
137
|
-
'tagLine': json['tagLine']
|
|
138
|
+
'tagLine': json['tagLine'],
|
|
138
139
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
140
|
'specialDates': json['specialDates'],
|
|
140
141
|
'suppliers': json['suppliers'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -149,7 +149,9 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
152
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
153
155
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
154
156
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
155
157
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -174,9 +176,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
174
176
|
'phone': json['phone'],
|
|
175
177
|
'longitude': json['longitude'],
|
|
176
178
|
'latitude': json['latitude'],
|
|
177
|
-
'tagLine': json['tagLine']
|
|
179
|
+
'tagLine': json['tagLine'],
|
|
178
180
|
'email': json['email'],
|
|
179
|
-
'website': json['website']
|
|
181
|
+
'website': json['website'],
|
|
180
182
|
'netsuiteId': json['netsuiteId'],
|
|
181
183
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
182
184
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -64,6 +64,12 @@ export interface SupplierFrontendResource {
|
|
|
64
64
|
* @memberof SupplierFrontendResource
|
|
65
65
|
*/
|
|
66
66
|
supplierEta: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof SupplierFrontendResource
|
|
71
|
+
*/
|
|
72
|
+
productEnquiriesOnly: boolean;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {object}
|
|
@@ -87,6 +93,7 @@ export function instanceOfSupplierFrontendResource(value: object): value is Supp
|
|
|
87
93
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
88
94
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
89
95
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
96
|
+
if (!('productEnquiriesOnly' in value) || value['productEnquiriesOnly'] === undefined) return false;
|
|
90
97
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
91
98
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
92
99
|
return true;
|
|
@@ -107,6 +114,7 @@ export function SupplierFrontendResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
107
114
|
'slug': json['slug'],
|
|
108
115
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
109
116
|
'supplierEta': json['supplierEta'],
|
|
117
|
+
'productEnquiriesOnly': json['productEnquiriesOnly'],
|
|
110
118
|
'seo': json['seo'],
|
|
111
119
|
'description': DescriptionResourceFromJSON(json['description']),
|
|
112
120
|
};
|
|
@@ -128,6 +136,7 @@ export function SupplierFrontendResourceToJSONTyped(value?: SupplierFrontendReso
|
|
|
128
136
|
'slug': value['slug'],
|
|
129
137
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
130
138
|
'supplierEta': value['supplierEta'],
|
|
139
|
+
'productEnquiriesOnly': value['productEnquiriesOnly'],
|
|
131
140
|
'seo': value['seo'],
|
|
132
141
|
'description': DescriptionResourceToJSON(value['description']),
|
|
133
142
|
};
|
|
@@ -71,6 +71,12 @@ export interface SupplierResource {
|
|
|
71
71
|
* @memberof SupplierResource
|
|
72
72
|
*/
|
|
73
73
|
supplierEta: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {boolean}
|
|
77
|
+
* @memberof SupplierResource
|
|
78
|
+
*/
|
|
79
|
+
productEnquiriesOnly: boolean;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {Array<SEOResource>}
|
|
@@ -94,6 +100,7 @@ export function instanceOfSupplierResource(value: object): value is SupplierReso
|
|
|
94
100
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
95
101
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
96
102
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
103
|
+
if (!('productEnquiriesOnly' in value) || value['productEnquiriesOnly'] === undefined) return false;
|
|
97
104
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
98
105
|
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
99
106
|
return true;
|
|
@@ -114,6 +121,7 @@ export function SupplierResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
114
121
|
'slug': json['slug'],
|
|
115
122
|
'thumbnail': AssetResourceFromJSON(json['thumbnail']),
|
|
116
123
|
'supplierEta': json['supplierEta'],
|
|
124
|
+
'productEnquiriesOnly': json['productEnquiriesOnly'],
|
|
117
125
|
'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
|
|
118
126
|
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
119
127
|
};
|
|
@@ -135,6 +143,7 @@ export function SupplierResourceToJSONTyped(value?: SupplierResource | null, ign
|
|
|
135
143
|
'slug': value['slug'],
|
|
136
144
|
'thumbnail': AssetResourceToJSON(value['thumbnail']),
|
|
137
145
|
'supplierEta': value['supplierEta'],
|
|
146
|
+
'productEnquiriesOnly': value['productEnquiriesOnly'],
|
|
138
147
|
'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
|
|
139
148
|
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
140
149
|
};
|
|
@@ -47,16 +47,16 @@ export interface UpdatePageComponentRequest {
|
|
|
47
47
|
order?: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
51
51
|
* @memberof UpdatePageComponentRequest
|
|
52
52
|
*/
|
|
53
|
-
startDate?:
|
|
53
|
+
startDate?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {string}
|
|
57
57
|
* @memberof UpdatePageComponentRequest
|
|
58
58
|
*/
|
|
59
|
-
endDate?:
|
|
59
|
+
endDate?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {object}
|
|
@@ -92,8 +92,8 @@ export function UpdatePageComponentRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
92
92
|
'type': json['type'],
|
|
93
93
|
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
94
94
|
'order': json['order'] == null ? undefined : json['order'],
|
|
95
|
-
'startDate': json['start_date'] == null ? undefined :
|
|
96
|
-
'endDate': json['end_date'] == null ? undefined :
|
|
95
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
96
|
+
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
97
97
|
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
98
98
|
'relations': json['relations'] == null ? undefined : ((json['relations'] as Array<any>).map(CreatePageComponentRequestRelationsInnerFromJSON)),
|
|
99
99
|
};
|
|
@@ -113,8 +113,8 @@ export function UpdatePageComponentRequestToJSONTyped(value?: UpdatePageComponen
|
|
|
113
113
|
'type': value['type'],
|
|
114
114
|
'disabled': value['disabled'],
|
|
115
115
|
'order': value['order'],
|
|
116
|
-
'start_date': value['startDate']
|
|
117
|
-
'end_date': value['endDate']
|
|
116
|
+
'start_date': value['startDate'],
|
|
117
|
+
'end_date': value['endDate'],
|
|
118
118
|
'component_data': value['componentData'],
|
|
119
119
|
'relations': value['relations'] == null ? undefined : ((value['relations'] as Array<any>).map(CreatePageComponentRequestRelationsInnerToJSON)),
|
|
120
120
|
};
|
|
@@ -52,6 +52,12 @@ export interface UpdateSupplierRequest {
|
|
|
52
52
|
* @memberof UpdateSupplierRequest
|
|
53
53
|
*/
|
|
54
54
|
supplierEta: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof UpdateSupplierRequest
|
|
59
|
+
*/
|
|
60
|
+
productEnquiriesOnly?: boolean;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {Array<CreateBlogCategoryRequestSeoInner>}
|
|
@@ -121,6 +127,7 @@ export function UpdateSupplierRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
121
127
|
'name': json['name'],
|
|
122
128
|
'slug': json['slug'],
|
|
123
129
|
'supplierEta': json['supplier_eta'],
|
|
130
|
+
'productEnquiriesOnly': json['product_enquiries_only'] == null ? undefined : json['product_enquiries_only'],
|
|
124
131
|
'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
125
132
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
126
133
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
@@ -145,6 +152,7 @@ export function UpdateSupplierRequestToJSONTyped(value?: UpdateSupplierRequest |
|
|
|
145
152
|
'name': value['name'],
|
|
146
153
|
'slug': value['slug'],
|
|
147
154
|
'supplier_eta': value['supplierEta'],
|
|
155
|
+
'product_enquiries_only': value['productEnquiriesOnly'],
|
|
148
156
|
'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),
|
|
149
157
|
'alt_text': value['altText'],
|
|
150
158
|
'mime_type': value['mimeType'],
|
package/src/models/index.ts
CHANGED
|
@@ -13,6 +13,8 @@ export * from './AdminOrderResource';
|
|
|
13
13
|
export * from './AdminOrderResourceArrayResponse';
|
|
14
14
|
export * from './AdminUserLiteResource';
|
|
15
15
|
export * from './AdminUserLiteResourceArrayResponse';
|
|
16
|
+
export * from './AppliedCouponResource';
|
|
17
|
+
export * from './AppliedCouponResourceArrayResponse';
|
|
16
18
|
export * from './AssetFileForUploadResource';
|
|
17
19
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
18
20
|
export * from './AssetFrontendResource';
|
|
@@ -63,8 +65,6 @@ export * from './BlogResource';
|
|
|
63
65
|
export * from './BlogResourceArrayResponse';
|
|
64
66
|
export * from './CartCouponLiteResource';
|
|
65
67
|
export * from './CartCouponLiteResourceArrayResponse';
|
|
66
|
-
export * from './CartCouponResource';
|
|
67
|
-
export * from './CartCouponResourceArrayResponse';
|
|
68
68
|
export * from './CartListResource';
|
|
69
69
|
export * from './CartListResourceArrayResponse';
|
|
70
70
|
export * from './CartOrderSource';
|
|
@@ -323,6 +323,7 @@ export * from './PaginatedProductChildLiteResourceResponse';
|
|
|
323
323
|
export * from './PaginatedProductChildOverlayRelationResourceResponse';
|
|
324
324
|
export * from './PaginatedProductChildRelationResourceResponse';
|
|
325
325
|
export * from './PaginatedProductChildResourceResponse';
|
|
326
|
+
export * from './PaginatedProductClassLiteResourceResponse';
|
|
326
327
|
export * from './PaginatedProductListResourceResponse';
|
|
327
328
|
export * from './PaginatedProductLiteResourceResponse';
|
|
328
329
|
export * from './PaginatedProductRangeFrontendListResourceResponse';
|
|
@@ -399,6 +400,8 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
399
400
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
400
401
|
export * from './ProductChildSiteDetailResource';
|
|
401
402
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
403
|
+
export * from './ProductClassLiteResource';
|
|
404
|
+
export * from './ProductClassLiteResourceArrayResponse';
|
|
402
405
|
export * from './ProductClassResource';
|
|
403
406
|
export * from './ProductClassResourceArrayResponse';
|
|
404
407
|
export * from './ProductCompareResource';
|
|
@@ -503,6 +506,7 @@ export * from './SearchAllPageComponentsRequest';
|
|
|
503
506
|
export * from './SearchAllPagesRequest';
|
|
504
507
|
export * from './SearchAllProductCategoriesRequest';
|
|
505
508
|
export * from './SearchAllProductChildrenRequest';
|
|
509
|
+
export * from './SearchAllProductClassesRequest';
|
|
506
510
|
export * from './SearchAllProductRangesRequest';
|
|
507
511
|
export * from './SearchAllProductRegistrationsRequest';
|
|
508
512
|
export * from './SearchAllProductTypesRequest';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CartCouponResource
|
|
16
|
-
*/
|
|
17
|
-
export interface CartCouponResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof CartCouponResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CartCouponResource
|
|
28
|
-
*/
|
|
29
|
-
code: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CartCouponResource
|
|
34
|
-
*/
|
|
35
|
-
name: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof CartCouponResource
|
|
40
|
-
*/
|
|
41
|
-
discountTotal: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the CartCouponResource interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfCartCouponResource(value: object): value is CartCouponResource;
|
|
47
|
-
export declare function CartCouponResourceFromJSON(json: any): CartCouponResource;
|
|
48
|
-
export declare function CartCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponResource;
|
|
49
|
-
export declare function CartCouponResourceToJSON(json: any): CartCouponResource;
|
|
50
|
-
export declare function CartCouponResourceToJSONTyped(value?: CartCouponResource | null, ignoreDiscriminator?: boolean): any;
|