@natch-the-storage/heathershaw-platform-types 1.13.2 → 1.14.0
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/build/validators.d.ts +7 -5
- package/build/validators.js +5 -6
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const cDProductCategoryLabelValues: string[];
|
|
2
2
|
export declare const cDProductCategoryIdValues: string[];
|
|
3
3
|
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
|
|
4
|
-
export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "
|
|
4
|
+
export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
|
|
5
5
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
6
6
|
export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
|
|
7
7
|
export declare const paymentModeAtOrderValues: readonly ["ONLINE", "INVOICE", "POS"];
|
|
@@ -165,7 +165,7 @@ export interface Order {
|
|
|
165
165
|
directUserProfileId?: number | null;
|
|
166
166
|
address: OrderAddress;
|
|
167
167
|
trackingNumber?: string;
|
|
168
|
-
status:
|
|
168
|
+
status: OrderStatus;
|
|
169
169
|
store?: string;
|
|
170
170
|
staff?: string;
|
|
171
171
|
lineItems: LineItem[];
|
|
@@ -195,11 +195,13 @@ export interface Order {
|
|
|
195
195
|
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
|
|
196
196
|
draft?: boolean;
|
|
197
197
|
};
|
|
198
|
-
export type OrderUpdate = Partial<Order
|
|
198
|
+
export type OrderUpdate = Partial<Order> & {
|
|
199
|
+
id: number;
|
|
200
|
+
};
|
|
199
201
|
export interface OrderAddress {
|
|
200
|
-
|
|
202
|
+
fulfillment: OrderFulfillment;
|
|
201
203
|
name: string;
|
|
202
|
-
address:
|
|
204
|
+
address: Address;
|
|
203
205
|
deliveryInstructions?: string;
|
|
204
206
|
}
|
|
205
207
|
export interface PaperScriptReminder {
|
package/build/validators.js
CHANGED
|
@@ -15,12 +15,11 @@ export const orderFulfillmentValues = [
|
|
|
15
15
|
export const orderStatusValues = [
|
|
16
16
|
'TO_REVIEW',
|
|
17
17
|
'AWAITING_PICKUP',
|
|
18
|
-
'POSTED',
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'CANCELLED',
|
|
18
|
+
'POSTED', // in flight
|
|
19
|
+
'IN_TRANSIT', // in flight
|
|
20
|
+
'DELIVERED', // terminal
|
|
21
|
+
'COLLECTED', // terminal
|
|
22
|
+
'CANCELLED', // terminal
|
|
24
23
|
];
|
|
25
24
|
export const paperScriptReminderStatusValues = [
|
|
26
25
|
'PENDING',
|