@digital8/lighting-illusions-ts-sdk 0.0.2162 → 0.0.2164
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/README.md +2 -2
- package/dist/apis/LabelApi.d.ts +3 -2
- package/dist/apis/LabelApi.js +2 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderLineItemResource.d.ts +8 -1
- package/dist/models/AdminOrderLineItemResource.js +8 -1
- package/dist/models/CreateCartRequest.d.ts +1 -0
- package/dist/models/CreateCartRequest.js +1 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/LabelListResource.d.ts +4 -4
- package/dist/models/LabelListResource.js +4 -4
- package/dist/models/LabelResource.d.ts +4 -4
- package/dist/models/LabelResource.js +4 -4
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +6 -2
- package/dist/models/OrderListResource.d.ts +8 -2
- package/dist/models/OrderListResource.js +7 -3
- package/dist/models/OrderStatusId.d.ts +2 -6
- package/dist/models/OrderStatusId.js +2 -6
- package/dist/models/ProductChildFrontendResource.d.ts +3 -2
- package/dist/models/ProductChildFrontendResource.js +3 -2
- package/dist/models/ProductChildResource.d.ts +6 -0
- package/dist/models/ProductChildResource.js +4 -0
- package/dist/models/SearchAllFrontendComponentsRequest.d.ts +15 -0
- package/dist/models/SearchAllFrontendComponentsRequest.js +11 -1
- package/dist/models/SearchAllProductChildrenRequest.d.ts +6 -0
- package/dist/models/SearchAllProductChildrenRequest.js +2 -0
- package/dist/models/SearchProductChildrenRequest.d.ts +14 -0
- package/dist/models/SearchProductChildrenRequest.js +10 -1
- package/dist/models/ShippingType.d.ts +1 -0
- package/dist/models/ShippingType.js +1 -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 +3 -1
- 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/UpdateCartRequest.d.ts +1 -0
- package/dist/models/UpdateCartRequest.js +1 -0
- package/dist/models/UpdateOrderRequest.d.ts +1 -0
- package/dist/models/UpdateOrderRequest.js +1 -0
- package/docs/AdminOrderLineItemResource.md +2 -0
- package/docs/LabelApi.md +3 -3
- package/docs/LabelListResource.md +2 -2
- package/docs/LabelResource.md +2 -2
- package/docs/OrderListResource.md +4 -2
- package/docs/ProductChildFrontendResource.md +1 -1
- package/docs/ProductChildResource.md +2 -0
- package/docs/SearchAllFrontendComponentsRequest.md +2 -0
- package/docs/SearchAllProductChildrenRequest.md +2 -0
- package/docs/SearchProductChildrenRequest.md +2 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/LabelApi.ts +8 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderLineItemResource.ts +19 -2
- package/src/models/CreateCartRequest.ts +1 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/LabelListResource.ts +8 -8
- package/src/models/LabelResource.ts +8 -8
- package/src/models/OrderFulfillmentResource.ts +6 -4
- package/src/models/OrderListResource.ts +14 -5
- package/src/models/OrderStatusId.ts +2 -6
- package/src/models/ProductChildFrontendResource.ts +11 -4
- package/src/models/ProductChildResource.ts +9 -0
- package/src/models/SearchAllFrontendComponentsRequest.ts +18 -0
- package/src/models/SearchAllProductChildrenRequest.ts +8 -0
- package/src/models/SearchProductChildrenRequest.ts +17 -0
- package/src/models/ShippingType.ts +1 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/UpdateCartRequest.ts +1 -0
- package/src/models/UpdateOrderRequest.ts +1 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.2164
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -934,7 +934,7 @@ and is automatically generated by the
|
|
|
934
934
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
935
935
|
|
|
936
936
|
- API version: `1.0.0`
|
|
937
|
-
- Package version: `0.0.
|
|
937
|
+
- Package version: `0.0.2164`
|
|
938
938
|
- Generator version: `7.22.0`
|
|
939
939
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
940
940
|
|
package/dist/apis/LabelApi.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type CreateLabelRequest } from '../models/CreateLabelRequest';
|
|
14
14
|
import { type GenericResponse } from '../models/GenericResponse';
|
|
15
|
+
import { type LabelLiteResourceArrayResponse } from '../models/LabelLiteResourceArrayResponse';
|
|
15
16
|
import { type LabelResource } from '../models/LabelResource';
|
|
16
17
|
import { type PaginatedLabelListResourceResponse } from '../models/PaginatedLabelListResourceResponse';
|
|
17
18
|
import { type SearchLabelsRequest } from '../models/SearchLabelsRequest';
|
|
@@ -58,11 +59,11 @@ export declare class LabelApi extends runtime.BaseAPI {
|
|
|
58
59
|
/**
|
|
59
60
|
* Auto-generated: getAllLabel
|
|
60
61
|
*/
|
|
61
|
-
getAllLabelRaw(requestParameters: GetAllLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
62
|
+
getAllLabelRaw(requestParameters: GetAllLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LabelLiteResourceArrayResponse>>;
|
|
62
63
|
/**
|
|
63
64
|
* Auto-generated: getAllLabel
|
|
64
65
|
*/
|
|
65
|
-
getAllLabel(requestParameters?: GetAllLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
66
|
+
getAllLabel(requestParameters?: GetAllLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LabelLiteResourceArrayResponse>;
|
|
66
67
|
/**
|
|
67
68
|
* Creates request options for indexLabel without sending the request
|
|
68
69
|
*/
|
package/dist/apis/LabelApi.js
CHANGED
|
@@ -68,6 +68,7 @@ exports.LabelApi = void 0;
|
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var CreateLabelRequest_1 = require("../models/CreateLabelRequest");
|
|
70
70
|
var GenericResponse_1 = require("../models/GenericResponse");
|
|
71
|
+
var LabelLiteResourceArrayResponse_1 = require("../models/LabelLiteResourceArrayResponse");
|
|
71
72
|
var LabelResource_1 = require("../models/LabelResource");
|
|
72
73
|
var PaginatedLabelListResourceResponse_1 = require("../models/PaginatedLabelListResourceResponse");
|
|
73
74
|
var SearchLabelsRequest_1 = require("../models/SearchLabelsRequest");
|
|
@@ -174,7 +175,7 @@ var LabelApi = /** @class */ (function (_super) {
|
|
|
174
175
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
175
176
|
case 2:
|
|
176
177
|
response = _a.sent();
|
|
177
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
178
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, LabelLiteResourceArrayResponse_1.LabelLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
178
179
|
}
|
|
179
180
|
});
|
|
180
181
|
});
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('line2' in value) || value['line2'] === undefined)
|
|
@@ -52,7 +54,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'type': json['type'] == null ? undefined : json['type'],
|
|
53
55
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
54
56
|
'addresseeName': json['addresseeName'],
|
|
55
|
-
'company': json['company']
|
|
57
|
+
'company': json['company'],
|
|
56
58
|
'line1': json['line1'],
|
|
57
59
|
'line2': json['line2'],
|
|
58
60
|
'postcode': json['postcode'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LabelLiteResource } from './LabelLiteResource';
|
|
12
13
|
import type { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -39,7 +40,13 @@ export interface AdminOrderLineItemResource {
|
|
|
39
40
|
* @type {number}
|
|
40
41
|
* @memberof AdminOrderLineItemResource
|
|
41
42
|
*/
|
|
42
|
-
labelId
|
|
43
|
+
labelId: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {LabelLiteResource}
|
|
47
|
+
* @memberof AdminOrderLineItemResource
|
|
48
|
+
*/
|
|
49
|
+
label: LabelLiteResource | null;
|
|
43
50
|
/**
|
|
44
51
|
*
|
|
45
52
|
* @type {number}
|
|
@@ -18,6 +18,7 @@ exports.AdminOrderLineItemResourceFromJSON = AdminOrderLineItemResourceFromJSON;
|
|
|
18
18
|
exports.AdminOrderLineItemResourceFromJSONTyped = AdminOrderLineItemResourceFromJSONTyped;
|
|
19
19
|
exports.AdminOrderLineItemResourceToJSON = AdminOrderLineItemResourceToJSON;
|
|
20
20
|
exports.AdminOrderLineItemResourceToJSONTyped = AdminOrderLineItemResourceToJSONTyped;
|
|
21
|
+
var LabelLiteResource_1 = require("./LabelLiteResource");
|
|
21
22
|
var ProductChildLineItemLiteResource_1 = require("./ProductChildLineItemLiteResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AdminOrderLineItemResource interface.
|
|
@@ -29,6 +30,10 @@ function instanceOfAdminOrderLineItemResource(value) {
|
|
|
29
30
|
return false;
|
|
30
31
|
if (!('productPrice' in value) || value['productPrice'] === undefined)
|
|
31
32
|
return false;
|
|
33
|
+
if (!('labelId' in value) || value['labelId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
36
|
+
return false;
|
|
32
37
|
if (!('productDiscount' in value) || value['productDiscount'] === undefined)
|
|
33
38
|
return false;
|
|
34
39
|
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined)
|
|
@@ -64,7 +69,8 @@ function AdminOrderLineItemResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
69
|
'id': json['id'],
|
|
65
70
|
'quantity': json['quantity'],
|
|
66
71
|
'productPrice': json['productPrice'],
|
|
67
|
-
'labelId': json['labelId']
|
|
72
|
+
'labelId': json['labelId'],
|
|
73
|
+
'label': (0, LabelLiteResource_1.LabelLiteResourceFromJSON)(json['label']),
|
|
68
74
|
'productDiscount': json['productDiscount'],
|
|
69
75
|
'totalDiscount': json['totalDiscount'],
|
|
70
76
|
'lineSubtotal': json['lineSubtotal'],
|
|
@@ -91,6 +97,7 @@ function AdminOrderLineItemResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
91
97
|
'quantity': value['quantity'],
|
|
92
98
|
'productPrice': value['productPrice'],
|
|
93
99
|
'labelId': value['labelId'],
|
|
100
|
+
'label': (0, LabelLiteResource_1.LabelLiteResourceToJSON)(value['label']),
|
|
94
101
|
'productDiscount': value['productDiscount'],
|
|
95
102
|
'totalDiscount': value['totalDiscount'],
|
|
96
103
|
'lineSubtotal': value['lineSubtotal'],
|
|
@@ -152,6 +152,7 @@ export type CreateCartRequestSourceEnum = typeof CreateCartRequestSourceEnum[key
|
|
|
152
152
|
export declare const CreateCartRequestShippingTypeEnum: {
|
|
153
153
|
readonly Pickup: "pickup";
|
|
154
154
|
readonly Delivery: "delivery";
|
|
155
|
+
readonly AuspostStandard: "auspost_standard";
|
|
155
156
|
readonly Express: "express";
|
|
156
157
|
readonly Courier: "courier";
|
|
157
158
|
readonly DontShip: "dont_ship";
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -54,16 +54,16 @@ export interface LabelListResource {
|
|
|
54
54
|
textColour: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {Date}
|
|
58
58
|
* @memberof LabelListResource
|
|
59
59
|
*/
|
|
60
|
-
startDate?:
|
|
60
|
+
startDate?: Date | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {Date}
|
|
64
64
|
* @memberof LabelListResource
|
|
65
65
|
*/
|
|
66
|
-
endDate?:
|
|
66
|
+
endDate?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {SiteLiteResource}
|
|
@@ -51,8 +51,8 @@ function LabelListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'productCount': json['productCount'],
|
|
52
52
|
'colour': json['colour'],
|
|
53
53
|
'textColour': json['textColour'],
|
|
54
|
-
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
55
|
-
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
54
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
55
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
56
56
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -71,8 +71,8 @@ function LabelListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
71
|
'productCount': value['productCount'],
|
|
72
72
|
'colour': value['colour'],
|
|
73
73
|
'textColour': value['textColour'],
|
|
74
|
-
'startDate': value['startDate'],
|
|
75
|
-
'endDate': value['endDate'],
|
|
74
|
+
'startDate': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
75
|
+
'endDate': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
76
76
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -60,16 +60,16 @@ export interface LabelResource {
|
|
|
60
60
|
textColour: string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {Date}
|
|
64
64
|
* @memberof LabelResource
|
|
65
65
|
*/
|
|
66
|
-
startDate?:
|
|
66
|
+
startDate?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {Date}
|
|
70
70
|
* @memberof LabelResource
|
|
71
71
|
*/
|
|
72
|
-
endDate?:
|
|
72
|
+
endDate?: Date | null;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Check if a given object implements the LabelResource interface.
|
|
@@ -52,8 +52,8 @@ function LabelResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'cartButtonText': json['cartButtonText'],
|
|
53
53
|
'colour': json['colour'],
|
|
54
54
|
'textColour': json['textColour'],
|
|
55
|
-
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
56
|
-
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
55
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
56
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function LabelResourceToJSON(json) {
|
|
@@ -72,7 +72,7 @@ function LabelResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
72
|
'cartButtonText': value['cartButtonText'],
|
|
73
73
|
'colour': value['colour'],
|
|
74
74
|
'textColour': value['textColour'],
|
|
75
|
-
'startDate': value['startDate'],
|
|
76
|
-
'endDate': value['endDate'],
|
|
75
|
+
'startDate': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
76
|
+
'endDate': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -39,13 +39,13 @@ export interface OrderFulfillmentResource {
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderFulfillmentResource
|
|
41
41
|
*/
|
|
42
|
-
trackingNumber
|
|
42
|
+
trackingNumber: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
@@ -29,6 +29,10 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
35
|
+
return false;
|
|
32
36
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
33
37
|
return false;
|
|
34
38
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
@@ -50,8 +54,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
54
|
'id': json['id'],
|
|
51
55
|
'orderId': json['orderId'],
|
|
52
56
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
|
-
'trackingNumber': json['trackingNumber']
|
|
54
|
-
'trackingUrl': json['trackingUrl']
|
|
57
|
+
'trackingNumber': json['trackingNumber'],
|
|
58
|
+
'trackingUrl': json['trackingUrl'],
|
|
55
59
|
'trackingCompany': json['trackingCompany'],
|
|
56
60
|
'docnum': json['docnum'],
|
|
57
61
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -88,10 +88,16 @@ export interface OrderListResource {
|
|
|
88
88
|
lineItems: Array<LineItemListResource> | null;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
|
-
* @type {
|
|
91
|
+
* @type {TransactionLiteResource}
|
|
92
92
|
* @memberof OrderListResource
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
latestTransaction: TransactionLiteResource | null;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof OrderListResource
|
|
99
|
+
*/
|
|
100
|
+
transactionsCount: number;
|
|
95
101
|
}
|
|
96
102
|
/**
|
|
97
103
|
* Check if a given object implements the OrderListResource interface.
|
|
@@ -43,7 +43,9 @@ function instanceOfOrderListResource(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
-
if (!('
|
|
46
|
+
if (!('latestTransaction' in value) || value['latestTransaction'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('transactionsCount' in value) || value['transactionsCount'] === undefined)
|
|
47
49
|
return false;
|
|
48
50
|
return true;
|
|
49
51
|
}
|
|
@@ -66,7 +68,8 @@ function OrderListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
67
69
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceFromJSON)(json['status']),
|
|
68
70
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
69
|
-
'
|
|
71
|
+
'latestTransaction': (0, TransactionLiteResource_1.TransactionLiteResourceFromJSON)(json['latestTransaction']),
|
|
72
|
+
'transactionsCount': json['transactionsCount'],
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
75
|
function OrderListResourceToJSON(json) {
|
|
@@ -89,6 +92,7 @@ function OrderListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
92
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
90
93
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceToJSON)(value['status']),
|
|
91
94
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
92
|
-
'
|
|
95
|
+
'latestTransaction': (0, TransactionLiteResource_1.TransactionLiteResourceToJSON)(value['latestTransaction']),
|
|
96
|
+
'transactionsCount': value['transactionsCount'],
|
|
93
97
|
};
|
|
94
98
|
}
|
|
@@ -14,19 +14,15 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const OrderStatusId: {
|
|
17
|
+
readonly _1: "1";
|
|
17
18
|
readonly _2: "2";
|
|
18
19
|
readonly _3: "3";
|
|
19
20
|
readonly _4: "4";
|
|
20
|
-
readonly
|
|
21
|
+
readonly _5: "5";
|
|
21
22
|
readonly _7: "7";
|
|
22
23
|
readonly _9: "9";
|
|
23
|
-
readonly _10: "10";
|
|
24
24
|
readonly _11: "11";
|
|
25
|
-
readonly _12: "12";
|
|
26
25
|
readonly _13: "13";
|
|
27
|
-
readonly _14: "14";
|
|
28
|
-
readonly _15: "15";
|
|
29
|
-
readonly _16: "16";
|
|
30
26
|
readonly _17: "17";
|
|
31
27
|
};
|
|
32
28
|
export type OrderStatusId = typeof OrderStatusId[keyof typeof OrderStatusId];
|
|
@@ -24,19 +24,15 @@ exports.OrderStatusIdToJSONTyped = OrderStatusIdToJSONTyped;
|
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.OrderStatusId = {
|
|
27
|
+
_1: '1',
|
|
27
28
|
_2: '2',
|
|
28
29
|
_3: '3',
|
|
29
30
|
_4: '4',
|
|
30
|
-
|
|
31
|
+
_5: '5',
|
|
31
32
|
_7: '7',
|
|
32
33
|
_9: '9',
|
|
33
|
-
_10: '10',
|
|
34
34
|
_11: '11',
|
|
35
|
-
_12: '12',
|
|
36
35
|
_13: '13',
|
|
37
|
-
_14: '14',
|
|
38
|
-
_15: '15',
|
|
39
|
-
_16: '16',
|
|
40
36
|
_17: '17'
|
|
41
37
|
};
|
|
42
38
|
function instanceOfOrderStatusId(value) {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SupplierFrontendResource } from './SupplierFrontendResource';
|
|
13
|
+
import type { ProductChildSiteDetailFrontendResource } from './ProductChildSiteDetailFrontendResource';
|
|
13
14
|
import type { AssetLiteResource } from './AssetLiteResource';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -61,10 +62,10 @@ export interface ProductChildFrontendResource {
|
|
|
61
62
|
supplier: SupplierFrontendResource | null;
|
|
62
63
|
/**
|
|
63
64
|
*
|
|
64
|
-
* @type {
|
|
65
|
+
* @type {ProductChildSiteDetailFrontendResource}
|
|
65
66
|
* @memberof ProductChildFrontendResource
|
|
66
67
|
*/
|
|
67
|
-
siteDetails:
|
|
68
|
+
siteDetails: ProductChildSiteDetailFrontendResource | null;
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
70
71
|
* Check if a given object implements the ProductChildFrontendResource interface.
|
|
@@ -19,6 +19,7 @@ exports.ProductChildFrontendResourceFromJSONTyped = ProductChildFrontendResource
|
|
|
19
19
|
exports.ProductChildFrontendResourceToJSON = ProductChildFrontendResourceToJSON;
|
|
20
20
|
exports.ProductChildFrontendResourceToJSONTyped = ProductChildFrontendResourceToJSONTyped;
|
|
21
21
|
var SupplierFrontendResource_1 = require("./SupplierFrontendResource");
|
|
22
|
+
var ProductChildSiteDetailFrontendResource_1 = require("./ProductChildSiteDetailFrontendResource");
|
|
22
23
|
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ProductChildFrontendResource interface.
|
|
@@ -57,7 +58,7 @@ function ProductChildFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
58
|
'variations': json['variations'],
|
|
58
59
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
59
60
|
'supplier': (0, SupplierFrontendResource_1.SupplierFrontendResourceFromJSON)(json['supplier']),
|
|
60
|
-
'siteDetails': json['siteDetails'],
|
|
61
|
+
'siteDetails': (0, ProductChildSiteDetailFrontendResource_1.ProductChildSiteDetailFrontendResourceFromJSON)(json['siteDetails']),
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
64
|
function ProductChildFrontendResourceToJSON(json) {
|
|
@@ -76,6 +77,6 @@ function ProductChildFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
76
77
|
'variations': value['variations'],
|
|
77
78
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
78
79
|
'supplier': (0, SupplierFrontendResource_1.SupplierFrontendResourceToJSON)(value['supplier']),
|
|
79
|
-
'siteDetails': value['siteDetails'],
|
|
80
|
+
'siteDetails': (0, ProductChildSiteDetailFrontendResource_1.ProductChildSiteDetailFrontendResourceToJSON)(value['siteDetails']),
|
|
80
81
|
};
|
|
81
82
|
}
|
|
@@ -30,6 +30,8 @@ function instanceOfProductChildResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('allowOversell' in value) || value['allowOversell'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('modelNumber' in value) || value['modelNumber'] === undefined)
|
|
@@ -94,6 +96,7 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
96
|
return {
|
|
95
97
|
'id': json['id'],
|
|
96
98
|
'name': json['name'],
|
|
99
|
+
'fullName': json['fullName'],
|
|
97
100
|
'allowOversell': json['allowOversell'],
|
|
98
101
|
'modelNumber': json['modelNumber'],
|
|
99
102
|
'weight': json['weight'],
|
|
@@ -136,6 +139,7 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
136
139
|
return {
|
|
137
140
|
'id': value['id'],
|
|
138
141
|
'name': value['name'],
|
|
142
|
+
'fullName': value['fullName'],
|
|
139
143
|
'allowOversell': value['allowOversell'],
|
|
140
144
|
'modelNumber': value['modelNumber'],
|
|
141
145
|
'weight': value['weight'],
|
|
@@ -57,6 +57,12 @@ export interface SearchAllFrontendComponentsRequest {
|
|
|
57
57
|
* @memberof SearchAllFrontendComponentsRequest
|
|
58
58
|
*/
|
|
59
59
|
sitesId?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {SearchAllFrontendComponentsRequestPageTypeEnum}
|
|
63
|
+
* @memberof SearchAllFrontendComponentsRequest
|
|
64
|
+
*/
|
|
65
|
+
pageType?: SearchAllFrontendComponentsRequestPageTypeEnum | null;
|
|
60
66
|
}
|
|
61
67
|
/**
|
|
62
68
|
* @export
|
|
@@ -74,6 +80,15 @@ export declare const SearchAllFrontendComponentsRequestSortDirectionEnum: {
|
|
|
74
80
|
readonly Desc: "desc";
|
|
75
81
|
};
|
|
76
82
|
export type SearchAllFrontendComponentsRequestSortDirectionEnum = typeof SearchAllFrontendComponentsRequestSortDirectionEnum[keyof typeof SearchAllFrontendComponentsRequestSortDirectionEnum];
|
|
83
|
+
/**
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
export declare const SearchAllFrontendComponentsRequestPageTypeEnum: {
|
|
87
|
+
readonly Home: "home";
|
|
88
|
+
readonly Page: "page";
|
|
89
|
+
readonly Blog: "blog";
|
|
90
|
+
};
|
|
91
|
+
export type SearchAllFrontendComponentsRequestPageTypeEnum = typeof SearchAllFrontendComponentsRequestPageTypeEnum[keyof typeof SearchAllFrontendComponentsRequestPageTypeEnum];
|
|
77
92
|
/**
|
|
78
93
|
* Check if a given object implements the SearchAllFrontendComponentsRequest interface.
|
|
79
94
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SearchAllFrontendComponentsRequestSortDirectionEnum = exports.SearchAllFrontendComponentsRequestSortByEnum = void 0;
|
|
16
|
+
exports.SearchAllFrontendComponentsRequestPageTypeEnum = exports.SearchAllFrontendComponentsRequestSortDirectionEnum = exports.SearchAllFrontendComponentsRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfSearchAllFrontendComponentsRequest = instanceOfSearchAllFrontendComponentsRequest;
|
|
18
18
|
exports.SearchAllFrontendComponentsRequestFromJSON = SearchAllFrontendComponentsRequestFromJSON;
|
|
19
19
|
exports.SearchAllFrontendComponentsRequestFromJSONTyped = SearchAllFrontendComponentsRequestFromJSONTyped;
|
|
@@ -33,6 +33,14 @@ exports.SearchAllFrontendComponentsRequestSortDirectionEnum = {
|
|
|
33
33
|
Asc: 'asc',
|
|
34
34
|
Desc: 'desc'
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
exports.SearchAllFrontendComponentsRequestPageTypeEnum = {
|
|
40
|
+
Home: 'home',
|
|
41
|
+
Page: 'page',
|
|
42
|
+
Blog: 'blog'
|
|
43
|
+
};
|
|
36
44
|
/**
|
|
37
45
|
* Check if a given object implements the SearchAllFrontendComponentsRequest interface.
|
|
38
46
|
*/
|
|
@@ -54,6 +62,7 @@ function SearchAllFrontendComponentsRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
54
62
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
55
63
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
56
64
|
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
65
|
+
'pageType': json['page_type'] == null ? undefined : json['page_type'],
|
|
57
66
|
};
|
|
58
67
|
}
|
|
59
68
|
function SearchAllFrontendComponentsRequestToJSON(json) {
|
|
@@ -72,5 +81,6 @@ function SearchAllFrontendComponentsRequestToJSONTyped(value, ignoreDiscriminato
|
|
|
72
81
|
'related_type': value['relatedType'],
|
|
73
82
|
'includes_relations': value['includesRelations'],
|
|
74
83
|
'sites-id': value['sitesId'],
|
|
84
|
+
'page_type': value['pageType'],
|
|
75
85
|
};
|
|
76
86
|
}
|
|
@@ -123,6 +123,12 @@ export interface SearchAllProductChildrenRequest {
|
|
|
123
123
|
* @memberof SearchAllProductChildrenRequest
|
|
124
124
|
*/
|
|
125
125
|
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {Array<string>}
|
|
129
|
+
* @memberof SearchAllProductChildrenRequest
|
|
130
|
+
*/
|
|
131
|
+
omnisendSyncStatus?: Array<string>;
|
|
126
132
|
}
|
|
127
133
|
/**
|
|
128
134
|
* @export
|
|
@@ -85,6 +85,7 @@ function SearchAllProductChildrenRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
85
85
|
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
86
86
|
'siteDetailsSeoHasSeoTitle': json['siteDetailsSeo-has_seo_title'] == null ? undefined : json['siteDetailsSeo-has_seo_title'],
|
|
87
87
|
'siteDetailsSeoHasSeoDescription': json['siteDetailsSeo-has_seo_description'] == null ? undefined : json['siteDetailsSeo-has_seo_description'],
|
|
88
|
+
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
91
|
function SearchAllProductChildrenRequestToJSON(json) {
|
|
@@ -114,5 +115,6 @@ function SearchAllProductChildrenRequestToJSONTyped(value, ignoreDiscriminator)
|
|
|
114
115
|
'enabledSites-id': value['enabledSitesId'],
|
|
115
116
|
'siteDetailsSeo-has_seo_title': value['siteDetailsSeoHasSeoTitle'],
|
|
116
117
|
'siteDetailsSeo-has_seo_description': value['siteDetailsSeoHasSeoDescription'],
|
|
118
|
+
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
117
119
|
};
|
|
118
120
|
}
|
|
@@ -117,6 +117,12 @@ export interface SearchProductChildrenRequest {
|
|
|
117
117
|
* @memberof SearchProductChildrenRequest
|
|
118
118
|
*/
|
|
119
119
|
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {SearchProductChildrenRequestOmnisendSyncStatusEnum}
|
|
123
|
+
* @memberof SearchProductChildrenRequest
|
|
124
|
+
*/
|
|
125
|
+
omnisendSyncStatus?: SearchProductChildrenRequestOmnisendSyncStatusEnum | null;
|
|
120
126
|
/**
|
|
121
127
|
*
|
|
122
128
|
* @type {number}
|
|
@@ -162,6 +168,14 @@ export declare const SearchProductChildrenRequestSortDirectionEnum: {
|
|
|
162
168
|
readonly Desc: "desc";
|
|
163
169
|
};
|
|
164
170
|
export type SearchProductChildrenRequestSortDirectionEnum = typeof SearchProductChildrenRequestSortDirectionEnum[keyof typeof SearchProductChildrenRequestSortDirectionEnum];
|
|
171
|
+
/**
|
|
172
|
+
* @export
|
|
173
|
+
*/
|
|
174
|
+
export declare const SearchProductChildrenRequestOmnisendSyncStatusEnum: {
|
|
175
|
+
readonly Synced: "synced";
|
|
176
|
+
readonly Failed: "failed";
|
|
177
|
+
};
|
|
178
|
+
export type SearchProductChildrenRequestOmnisendSyncStatusEnum = typeof SearchProductChildrenRequestOmnisendSyncStatusEnum[keyof typeof SearchProductChildrenRequestOmnisendSyncStatusEnum];
|
|
165
179
|
/**
|
|
166
180
|
* @export
|
|
167
181
|
*/
|