@digital8/lighting-illusions-ts-sdk 0.0.2163 → 0.0.2165
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/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- 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/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 +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- 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/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/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.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/ProductChildResource.md +2 -0
- package/docs/SearchAllFrontendComponentsRequest.md +2 -0
- package/docs/SearchAllProductChildrenRequest.md +2 -0
- package/docs/SearchProductChildrenRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/LabelApi.ts +8 -3
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AdminOrderLineItemResource.ts +19 -2
- package/src/models/CreateCartRequest.ts +1 -0
- package/src/models/LabelListResource.ts +8 -8
- package/src/models/LabelResource.ts +8 -8
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/OrderListResource.ts +14 -5
- package/src/models/OrderStatusId.ts +2 -6
- 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/StoreResource.ts +2 -3
- 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.2165
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -937,7 +937,7 @@ and is automatically generated by the
|
|
|
937
937
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
938
938
|
|
|
939
939
|
- API version: `1.0.0`
|
|
940
|
-
- Package version: `0.0.
|
|
940
|
+
- Package version: `0.0.2165`
|
|
941
941
|
- Generator version: `7.22.0`
|
|
942
942
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
943
943
|
|
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
|
});
|
|
@@ -26,8 +26,6 @@ function instanceOfAddressFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'company': json['company'],
|
|
52
50
|
'line1': json['line1'],
|
|
53
|
-
'line2': json['line2'],
|
|
51
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
54
52
|
'postcode': json['postcode'],
|
|
55
53
|
'suburb': json['suburb'],
|
|
56
54
|
'country': json['country'],
|
|
@@ -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";
|
|
@@ -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
|
}
|
|
@@ -29,6 +29,8 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -49,7 +51,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'orderId': json['orderId'],
|
|
50
52
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
51
53
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
52
|
-
'trackingUrl': json['trackingUrl']
|
|
54
|
+
'trackingUrl': json['trackingUrl'],
|
|
53
55
|
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
54
56
|
'docnum': json['docnum'],
|
|
55
57
|
'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) {
|
|
@@ -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
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SearchProductChildrenRequestRelatedTypeEnum = exports.SearchProductChildrenRequestSortDirectionEnum = exports.SearchProductChildrenRequestSortByEnum = void 0;
|
|
16
|
+
exports.SearchProductChildrenRequestRelatedTypeEnum = exports.SearchProductChildrenRequestOmnisendSyncStatusEnum = exports.SearchProductChildrenRequestSortDirectionEnum = exports.SearchProductChildrenRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfSearchProductChildrenRequest = instanceOfSearchProductChildrenRequest;
|
|
18
18
|
exports.SearchProductChildrenRequestFromJSON = SearchProductChildrenRequestFromJSON;
|
|
19
19
|
exports.SearchProductChildrenRequestFromJSONTyped = SearchProductChildrenRequestFromJSONTyped;
|
|
@@ -43,6 +43,13 @@ exports.SearchProductChildrenRequestSortDirectionEnum = {
|
|
|
43
43
|
Asc: 'asc',
|
|
44
44
|
Desc: 'desc'
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
exports.SearchProductChildrenRequestOmnisendSyncStatusEnum = {
|
|
50
|
+
Synced: 'synced',
|
|
51
|
+
Failed: 'failed'
|
|
52
|
+
};
|
|
46
53
|
/**
|
|
47
54
|
* @export
|
|
48
55
|
*/
|
|
@@ -94,6 +101,7 @@ function SearchProductChildrenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
101
|
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
95
102
|
'siteDetailsSeoHasSeoTitle': json['siteDetailsSeo-has_seo_title'] == null ? undefined : json['siteDetailsSeo-has_seo_title'],
|
|
96
103
|
'siteDetailsSeoHasSeoDescription': json['siteDetailsSeo-has_seo_description'] == null ? undefined : json['siteDetailsSeo-has_seo_description'],
|
|
104
|
+
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
97
105
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
98
106
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
99
107
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -125,6 +133,7 @@ function SearchProductChildrenRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
125
133
|
'enabledSites-id': value['enabledSitesId'],
|
|
126
134
|
'siteDetailsSeo-has_seo_title': value['siteDetailsSeoHasSeoTitle'],
|
|
127
135
|
'siteDetailsSeo-has_seo_description': value['siteDetailsSeoHasSeoDescription'],
|
|
136
|
+
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
128
137
|
'related_id': value['relatedId'],
|
|
129
138
|
'related_type': value['relatedType'],
|
|
130
139
|
'includes_relations': value['includesRelations'],
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -68,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'phone': json['phone'],
|
|
69
67
|
'longitude': json['longitude'],
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['tagLine'],
|
|
69
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
71
|
'website': json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -133,6 +133,7 @@ export type UpdateCartRequestSourceEnum = typeof UpdateCartRequestSourceEnum[key
|
|
|
133
133
|
export declare const UpdateCartRequestShippingTypeEnum: {
|
|
134
134
|
readonly Pickup: "pickup";
|
|
135
135
|
readonly Delivery: "delivery";
|
|
136
|
+
readonly AuspostStandard: "auspost_standard";
|
|
136
137
|
readonly Express: "express";
|
|
137
138
|
readonly Courier: "courier";
|
|
138
139
|
readonly DontShip: "dont_ship";
|