@digital8/lighting-illusions-ts-sdk 0.0.2349 → 0.0.2350
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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- 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 +2 -2
- package/dist/models/OrderFulfillmentResource.js +2 -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 +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- 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/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- 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/ExternalApiLogResource.ts +3 -2
- package/src/models/FrontendCartResource.ts +27 -0
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +4 -6
- 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 +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +3 -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,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.instanceOfProductClassLiteResourceArrayResponse = instanceOfProductClassLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductClassLiteResourceArrayResponseFromJSON = ProductClassLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductClassLiteResourceArrayResponseFromJSONTyped = ProductClassLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductClassLiteResourceArrayResponseToJSON = ProductClassLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductClassLiteResourceArrayResponseToJSONTyped = ProductClassLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductClassLiteResource_1 = require("./ProductClassLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductClassLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductClassLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductClassLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductClassLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductClassLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductClassLiteResource_1.ProductClassLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductClassLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductClassLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductClassLiteResourceArrayResponseToJSONTyped(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(ProductClassLiteResource_1.ProductClassLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -35,10 +35,10 @@ export interface ProductClassResource {
|
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {number}
|
|
39
39
|
* @memberof ProductClassResource
|
|
40
40
|
*/
|
|
41
|
-
parentId?:
|
|
41
|
+
parentId?: number | null;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the ProductClassResource interface.
|
|
@@ -75,6 +75,12 @@ export interface SearchAllOrdersRequest {
|
|
|
75
75
|
* @memberof SearchAllOrdersRequest
|
|
76
76
|
*/
|
|
77
77
|
customerId?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof SearchAllOrdersRequest
|
|
82
|
+
*/
|
|
83
|
+
lineItemsLabelId?: Array<string>;
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
80
86
|
* @export
|
|
@@ -60,6 +60,7 @@ function SearchAllOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
'source': json['source'] == null ? undefined : json['source'],
|
|
61
61
|
'statusId': json['status_id'] == null ? undefined : json['status_id'],
|
|
62
62
|
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
63
|
+
'lineItemsLabelId': json['lineItems-label_id'] == null ? undefined : json['lineItems-label_id'],
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
function SearchAllOrdersRequestToJSON(json) {
|
|
@@ -81,5 +82,6 @@ function SearchAllOrdersRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
81
82
|
'source': value['source'],
|
|
82
83
|
'status_id': value['statusId'],
|
|
83
84
|
'customer_id': value['customerId'],
|
|
85
|
+
'lineItems-label_id': value['lineItemsLabelId'],
|
|
84
86
|
};
|
|
85
87
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 SearchAllProductClassesRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SearchAllProductClassesRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SearchAllProductClassesRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {SearchAllProductClassesRequestSortByEnum}
|
|
27
|
+
* @memberof SearchAllProductClassesRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: SearchAllProductClassesRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {SearchAllProductClassesRequestSortDirectionEnum}
|
|
33
|
+
* @memberof SearchAllProductClassesRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: SearchAllProductClassesRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SearchAllProductClassesRequest
|
|
40
|
+
*/
|
|
41
|
+
relatedId?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SearchAllProductClassesRequest
|
|
46
|
+
*/
|
|
47
|
+
relatedType?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof SearchAllProductClassesRequest
|
|
52
|
+
*/
|
|
53
|
+
includesRelations?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const SearchAllProductClassesRequestSortByEnum: {
|
|
59
|
+
readonly Id: "id";
|
|
60
|
+
readonly Name: "name";
|
|
61
|
+
};
|
|
62
|
+
export type SearchAllProductClassesRequestSortByEnum = typeof SearchAllProductClassesRequestSortByEnum[keyof typeof SearchAllProductClassesRequestSortByEnum];
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const SearchAllProductClassesRequestSortDirectionEnum: {
|
|
67
|
+
readonly Asc: "asc";
|
|
68
|
+
readonly Desc: "desc";
|
|
69
|
+
};
|
|
70
|
+
export type SearchAllProductClassesRequestSortDirectionEnum = typeof SearchAllProductClassesRequestSortDirectionEnum[keyof typeof SearchAllProductClassesRequestSortDirectionEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the SearchAllProductClassesRequest interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfSearchAllProductClassesRequest(value: object): value is SearchAllProductClassesRequest;
|
|
75
|
+
export declare function SearchAllProductClassesRequestFromJSON(json: any): SearchAllProductClassesRequest;
|
|
76
|
+
export declare function SearchAllProductClassesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAllProductClassesRequest;
|
|
77
|
+
export declare function SearchAllProductClassesRequestToJSON(json: any): SearchAllProductClassesRequest;
|
|
78
|
+
export declare function SearchAllProductClassesRequestToJSONTyped(value?: SearchAllProductClassesRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.SearchAllProductClassesRequestSortDirectionEnum = exports.SearchAllProductClassesRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfSearchAllProductClassesRequest = instanceOfSearchAllProductClassesRequest;
|
|
18
|
+
exports.SearchAllProductClassesRequestFromJSON = SearchAllProductClassesRequestFromJSON;
|
|
19
|
+
exports.SearchAllProductClassesRequestFromJSONTyped = SearchAllProductClassesRequestFromJSONTyped;
|
|
20
|
+
exports.SearchAllProductClassesRequestToJSON = SearchAllProductClassesRequestToJSON;
|
|
21
|
+
exports.SearchAllProductClassesRequestToJSONTyped = SearchAllProductClassesRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SearchAllProductClassesRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
Name: 'name'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.SearchAllProductClassesRequestSortDirectionEnum = {
|
|
33
|
+
Asc: 'asc',
|
|
34
|
+
Desc: 'desc'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SearchAllProductClassesRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfSearchAllProductClassesRequest(value) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function SearchAllProductClassesRequestFromJSON(json) {
|
|
43
|
+
return SearchAllProductClassesRequestFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SearchAllProductClassesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
51
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
52
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
53
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
54
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
55
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function SearchAllProductClassesRequestToJSON(json) {
|
|
59
|
+
return SearchAllProductClassesRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function SearchAllProductClassesRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'search': value['search'],
|
|
68
|
+
'sortBy': value['sortBy'],
|
|
69
|
+
'sortDirection': value['sortDirection'],
|
|
70
|
+
'related_id': value['relatedId'],
|
|
71
|
+
'related_type': value['relatedType'],
|
|
72
|
+
'includes_relations': value['includesRelations'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -69,6 +69,12 @@ export interface SearchOrdersRequest {
|
|
|
69
69
|
* @memberof SearchOrdersRequest
|
|
70
70
|
*/
|
|
71
71
|
customerId?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof SearchOrdersRequest
|
|
76
|
+
*/
|
|
77
|
+
lineItemsLabelId?: Array<string>;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Date}
|
|
@@ -59,6 +59,7 @@ function SearchOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'source': json['source'] == null ? undefined : json['source'],
|
|
60
60
|
'statusId': json['status_id'] == null ? undefined : json['status_id'],
|
|
61
61
|
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
62
|
+
'lineItemsLabelId': json['lineItems-label_id'] == null ? undefined : json['lineItems-label_id'],
|
|
62
63
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
63
64
|
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
64
65
|
'beforePlacedAt': json['before_placed_at'] == null ? undefined : (new Date(json['before_placed_at'])),
|
|
@@ -89,6 +90,7 @@ function SearchOrdersRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
90
|
'source': value['source'],
|
|
90
91
|
'status_id': value['statusId'],
|
|
91
92
|
'customer_id': value['customerId'],
|
|
93
|
+
'lineItems-label_id': value['lineItemsLabelId'],
|
|
92
94
|
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
93
95
|
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
94
96
|
'before_placed_at': value['beforePlacedAt'] == null ? value['beforePlacedAt'] : value['beforePlacedAt'].toISOString(),
|
|
@@ -28,8 +28,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -54,7 +52,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'siteId': json['siteId'],
|
|
55
53
|
'name': json['name'],
|
|
56
54
|
'email': json['email'],
|
|
57
|
-
'website': json['website'],
|
|
55
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
58
56
|
'phone': json['phone'],
|
|
59
57
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
58
|
'latitude': json['latitude'],
|
|
@@ -35,8 +35,6 @@ function instanceOfStoreListResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
39
|
-
return false;
|
|
40
38
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
39
|
return false;
|
|
42
40
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'latitude': json['latitude'],
|
|
60
58
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
61
59
|
'email': json['email'],
|
|
62
|
-
'website': json['website'],
|
|
60
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
63
61
|
'netsuiteId': json['netsuiteId'],
|
|
64
62
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -47,6 +47,12 @@ export interface SupplierFrontendResource {
|
|
|
47
47
|
* @memberof SupplierFrontendResource
|
|
48
48
|
*/
|
|
49
49
|
supplierEta: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof SupplierFrontendResource
|
|
54
|
+
*/
|
|
55
|
+
productEnquiriesOnly: boolean;
|
|
50
56
|
/**
|
|
51
57
|
*
|
|
52
58
|
* @type {object}
|
|
@@ -34,6 +34,8 @@ function instanceOfSupplierFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('productEnquiriesOnly' in value) || value['productEnquiriesOnly'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('description' in value) || value['description'] === undefined)
|
|
@@ -53,6 +55,7 @@ function SupplierFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
55
|
'slug': json['slug'],
|
|
54
56
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
55
57
|
'supplierEta': json['supplierEta'],
|
|
58
|
+
'productEnquiriesOnly': json['productEnquiriesOnly'],
|
|
56
59
|
'seo': json['seo'],
|
|
57
60
|
'description': (0, DescriptionResource_1.DescriptionResourceFromJSON)(json['description']),
|
|
58
61
|
};
|
|
@@ -71,6 +74,7 @@ function SupplierFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
74
|
'slug': value['slug'],
|
|
72
75
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
73
76
|
'supplierEta': value['supplierEta'],
|
|
77
|
+
'productEnquiriesOnly': value['productEnquiriesOnly'],
|
|
74
78
|
'seo': value['seo'],
|
|
75
79
|
'description': (0, DescriptionResource_1.DescriptionResourceToJSON)(value['description']),
|
|
76
80
|
};
|
|
@@ -35,6 +35,8 @@ function instanceOfSupplierResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('productEnquiriesOnly' in value) || value['productEnquiriesOnly'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
@@ -54,6 +56,7 @@ function SupplierResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'slug': json['slug'],
|
|
55
57
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
56
58
|
'supplierEta': json['supplierEta'],
|
|
59
|
+
'productEnquiriesOnly': json['productEnquiriesOnly'],
|
|
57
60
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
58
61
|
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
59
62
|
};
|
|
@@ -72,6 +75,7 @@ function SupplierResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
75
|
'slug': value['slug'],
|
|
73
76
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
74
77
|
'supplierEta': value['supplierEta'],
|
|
78
|
+
'productEnquiriesOnly': value['productEnquiriesOnly'],
|
|
75
79
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
76
80
|
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
77
81
|
};
|
|
@@ -36,16 +36,16 @@ export interface UpdatePageComponentRequest {
|
|
|
36
36
|
order?: number;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {string}
|
|
40
40
|
* @memberof UpdatePageComponentRequest
|
|
41
41
|
*/
|
|
42
|
-
startDate?:
|
|
42
|
+
startDate?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {string}
|
|
46
46
|
* @memberof UpdatePageComponentRequest
|
|
47
47
|
*/
|
|
48
|
-
endDate?:
|
|
48
|
+
endDate?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {object}
|
|
@@ -38,8 +38,8 @@ function UpdatePageComponentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'type': json['type'],
|
|
39
39
|
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
40
40
|
'order': json['order'] == null ? undefined : json['order'],
|
|
41
|
-
'startDate': json['start_date'] == null ? undefined :
|
|
42
|
-
'endDate': json['end_date'] == null ? undefined :
|
|
41
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
42
|
+
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
43
43
|
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
44
44
|
'relations': json['relations'] == null ? undefined : (json['relations'].map(CreatePageComponentRequestRelationsInner_1.CreatePageComponentRequestRelationsInnerFromJSON)),
|
|
45
45
|
};
|
|
@@ -56,8 +56,8 @@ function UpdatePageComponentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
56
56
|
'type': value['type'],
|
|
57
57
|
'disabled': value['disabled'],
|
|
58
58
|
'order': value['order'],
|
|
59
|
-
'start_date': value['startDate']
|
|
60
|
-
'end_date': value['endDate']
|
|
59
|
+
'start_date': value['startDate'],
|
|
60
|
+
'end_date': value['endDate'],
|
|
61
61
|
'component_data': value['componentData'],
|
|
62
62
|
'relations': value['relations'] == null ? undefined : (value['relations'].map(CreatePageComponentRequestRelationsInner_1.CreatePageComponentRequestRelationsInnerToJSON)),
|
|
63
63
|
};
|
|
@@ -35,6 +35,12 @@ export interface UpdateSupplierRequest {
|
|
|
35
35
|
* @memberof UpdateSupplierRequest
|
|
36
36
|
*/
|
|
37
37
|
supplierEta: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof UpdateSupplierRequest
|
|
42
|
+
*/
|
|
43
|
+
productEnquiriesOnly?: boolean;
|
|
38
44
|
/**
|
|
39
45
|
*
|
|
40
46
|
* @type {Array<CreateBlogCategoryRequestSeoInner>}
|
|
@@ -47,6 +47,7 @@ function UpdateSupplierRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'name': json['name'],
|
|
48
48
|
'slug': json['slug'],
|
|
49
49
|
'supplierEta': json['supplier_eta'],
|
|
50
|
+
'productEnquiriesOnly': json['product_enquiries_only'] == null ? undefined : json['product_enquiries_only'],
|
|
50
51
|
'seo': (json['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
51
52
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
52
53
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
@@ -68,6 +69,7 @@ function UpdateSupplierRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
69
|
'name': value['name'],
|
|
69
70
|
'slug': value['slug'],
|
|
70
71
|
'supplier_eta': value['supplierEta'],
|
|
72
|
+
'product_enquiries_only': value['productEnquiriesOnly'],
|
|
71
73
|
'seo': (value['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerToJSON)),
|
|
72
74
|
'alt_text': value['altText'],
|
|
73
75
|
'mime_type': value['mimeType'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export * from './AdminOrderResource';
|
|
|
11
11
|
export * from './AdminOrderResourceArrayResponse';
|
|
12
12
|
export * from './AdminUserLiteResource';
|
|
13
13
|
export * from './AdminUserLiteResourceArrayResponse';
|
|
14
|
+
export * from './AppliedCouponResource';
|
|
15
|
+
export * from './AppliedCouponResourceArrayResponse';
|
|
14
16
|
export * from './AssetFileForUploadResource';
|
|
15
17
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
16
18
|
export * from './AssetFrontendResource';
|
|
@@ -61,8 +63,6 @@ export * from './BlogResource';
|
|
|
61
63
|
export * from './BlogResourceArrayResponse';
|
|
62
64
|
export * from './CartCouponLiteResource';
|
|
63
65
|
export * from './CartCouponLiteResourceArrayResponse';
|
|
64
|
-
export * from './CartCouponResource';
|
|
65
|
-
export * from './CartCouponResourceArrayResponse';
|
|
66
66
|
export * from './CartListResource';
|
|
67
67
|
export * from './CartListResourceArrayResponse';
|
|
68
68
|
export * from './CartOrderSource';
|
|
@@ -321,6 +321,7 @@ export * from './PaginatedProductChildLiteResourceResponse';
|
|
|
321
321
|
export * from './PaginatedProductChildOverlayRelationResourceResponse';
|
|
322
322
|
export * from './PaginatedProductChildRelationResourceResponse';
|
|
323
323
|
export * from './PaginatedProductChildResourceResponse';
|
|
324
|
+
export * from './PaginatedProductClassLiteResourceResponse';
|
|
324
325
|
export * from './PaginatedProductListResourceResponse';
|
|
325
326
|
export * from './PaginatedProductLiteResourceResponse';
|
|
326
327
|
export * from './PaginatedProductRangeFrontendListResourceResponse';
|
|
@@ -397,6 +398,8 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
397
398
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
398
399
|
export * from './ProductChildSiteDetailResource';
|
|
399
400
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
401
|
+
export * from './ProductClassLiteResource';
|
|
402
|
+
export * from './ProductClassLiteResourceArrayResponse';
|
|
400
403
|
export * from './ProductClassResource';
|
|
401
404
|
export * from './ProductClassResourceArrayResponse';
|
|
402
405
|
export * from './ProductCompareResource';
|
|
@@ -501,6 +504,7 @@ export * from './SearchAllPageComponentsRequest';
|
|
|
501
504
|
export * from './SearchAllPagesRequest';
|
|
502
505
|
export * from './SearchAllProductCategoriesRequest';
|
|
503
506
|
export * from './SearchAllProductChildrenRequest';
|
|
507
|
+
export * from './SearchAllProductClassesRequest';
|
|
504
508
|
export * from './SearchAllProductRangesRequest';
|
|
505
509
|
export * from './SearchAllProductRegistrationsRequest';
|
|
506
510
|
export * from './SearchAllProductTypesRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -29,6 +29,8 @@ __exportStar(require("./AdminOrderResource"), exports);
|
|
|
29
29
|
__exportStar(require("./AdminOrderResourceArrayResponse"), exports);
|
|
30
30
|
__exportStar(require("./AdminUserLiteResource"), exports);
|
|
31
31
|
__exportStar(require("./AdminUserLiteResourceArrayResponse"), exports);
|
|
32
|
+
__exportStar(require("./AppliedCouponResource"), exports);
|
|
33
|
+
__exportStar(require("./AppliedCouponResourceArrayResponse"), exports);
|
|
32
34
|
__exportStar(require("./AssetFileForUploadResource"), exports);
|
|
33
35
|
__exportStar(require("./AssetFileForUploadResourceArrayResponse"), exports);
|
|
34
36
|
__exportStar(require("./AssetFrontendResource"), exports);
|
|
@@ -79,8 +81,6 @@ __exportStar(require("./BlogResource"), exports);
|
|
|
79
81
|
__exportStar(require("./BlogResourceArrayResponse"), exports);
|
|
80
82
|
__exportStar(require("./CartCouponLiteResource"), exports);
|
|
81
83
|
__exportStar(require("./CartCouponLiteResourceArrayResponse"), exports);
|
|
82
|
-
__exportStar(require("./CartCouponResource"), exports);
|
|
83
|
-
__exportStar(require("./CartCouponResourceArrayResponse"), exports);
|
|
84
84
|
__exportStar(require("./CartListResource"), exports);
|
|
85
85
|
__exportStar(require("./CartListResourceArrayResponse"), exports);
|
|
86
86
|
__exportStar(require("./CartOrderSource"), exports);
|
|
@@ -339,6 +339,7 @@ __exportStar(require("./PaginatedProductChildLiteResourceResponse"), exports);
|
|
|
339
339
|
__exportStar(require("./PaginatedProductChildOverlayRelationResourceResponse"), exports);
|
|
340
340
|
__exportStar(require("./PaginatedProductChildRelationResourceResponse"), exports);
|
|
341
341
|
__exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
342
|
+
__exportStar(require("./PaginatedProductClassLiteResourceResponse"), exports);
|
|
342
343
|
__exportStar(require("./PaginatedProductListResourceResponse"), exports);
|
|
343
344
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
344
345
|
__exportStar(require("./PaginatedProductRangeFrontendListResourceResponse"), exports);
|
|
@@ -415,6 +416,8 @@ __exportStar(require("./ProductChildSiteDetailLiteResource"), exports);
|
|
|
415
416
|
__exportStar(require("./ProductChildSiteDetailLiteResourceArrayResponse"), exports);
|
|
416
417
|
__exportStar(require("./ProductChildSiteDetailResource"), exports);
|
|
417
418
|
__exportStar(require("./ProductChildSiteDetailResourceArrayResponse"), exports);
|
|
419
|
+
__exportStar(require("./ProductClassLiteResource"), exports);
|
|
420
|
+
__exportStar(require("./ProductClassLiteResourceArrayResponse"), exports);
|
|
418
421
|
__exportStar(require("./ProductClassResource"), exports);
|
|
419
422
|
__exportStar(require("./ProductClassResourceArrayResponse"), exports);
|
|
420
423
|
__exportStar(require("./ProductCompareResource"), exports);
|
|
@@ -519,6 +522,7 @@ __exportStar(require("./SearchAllPageComponentsRequest"), exports);
|
|
|
519
522
|
__exportStar(require("./SearchAllPagesRequest"), exports);
|
|
520
523
|
__exportStar(require("./SearchAllProductCategoriesRequest"), exports);
|
|
521
524
|
__exportStar(require("./SearchAllProductChildrenRequest"), exports);
|
|
525
|
+
__exportStar(require("./SearchAllProductClassesRequest"), exports);
|
|
522
526
|
__exportStar(require("./SearchAllProductRangesRequest"), exports);
|
|
523
527
|
__exportStar(require("./SearchAllProductRegistrationsRequest"), exports);
|
|
524
528
|
__exportStar(require("./SearchAllProductTypesRequest"), exports);
|