@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.
@@ -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", "DISPATCHED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
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: string;
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
- type: OrderFulfillment;
202
+ fulfillment: OrderFulfillment;
201
203
  name: string;
202
- address: string;
204
+ address: Address;
203
205
  deliveryInstructions?: string;
204
206
  }
205
207
  export interface PaperScriptReminder {
@@ -15,12 +15,11 @@ export const orderFulfillmentValues = [
15
15
  export const orderStatusValues = [
16
16
  'TO_REVIEW',
17
17
  'AWAITING_PICKUP',
18
- 'POSTED',
19
- 'DISPATCHED',
20
- 'IN_TRANSIT',
21
- 'DELIVERED',
22
- 'COLLECTED',
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.13.2",
3
+ "version": "1.14.0",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",