@natch-the-storage/heathershaw-platform-types 1.13.2 → 1.14.1

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"];
@@ -32,7 +32,7 @@ export type AuStates = (typeof auStatesValues)[number];
32
32
  export type DiscountTiers = (typeof discountTierValues)[number];
33
33
  export type Pharmacy = {
34
34
  name: string;
35
- address: string;
35
+ address: Address;
36
36
  openingHours: string;
37
37
  tag: string;
38
38
  color: 'default' | 'secondary' | 'alert' | 'warning';
@@ -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',
@@ -69,7 +68,12 @@ export const discountTierValues = [0.9, 0.88, 0.875, 0.85, 0.8, 0.75, 0.7];
69
68
  export const PHARMACIES = [
70
69
  {
71
70
  name: 'Malvern Road',
72
- address: '1402 Malvern Road, Glen Iris VIC 3146',
71
+ address: {
72
+ street: '1402 Malvern Road',
73
+ suburb: 'Glen Iris',
74
+ state: 'VIC',
75
+ postcode: '3146',
76
+ },
73
77
  openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
74
78
  tag: 'Compounding',
75
79
  color: 'secondary',
@@ -78,7 +82,12 @@ export const PHARMACIES = [
78
82
  },
79
83
  {
80
84
  name: 'Burke Road',
81
- address: '153 Burke Road, Glen Iris VIC 3146',
85
+ address: {
86
+ street: '153 Burke Road',
87
+ suburb: 'Glen Iris',
88
+ state: 'VIC',
89
+ postcode: '3146',
90
+ },
82
91
  openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
83
92
  tag: 'Since 1926',
84
93
  color: 'default',
@@ -87,7 +96,12 @@ export const PHARMACIES = [
87
96
  },
88
97
  {
89
98
  name: 'High Street',
90
- address: '123 High Street, Malvern VIC 3144',
99
+ address: {
100
+ street: '123 High Street',
101
+ suburb: 'Malvern',
102
+ state: 'VIC',
103
+ postcode: '3144',
104
+ },
91
105
  openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
92
106
  tag: 'Alt. therapies',
93
107
  color: 'secondary',
@@ -96,7 +110,12 @@ export const PHARMACIES = [
96
110
  },
97
111
  {
98
112
  name: 'Wattletree Road',
99
- address: '284 Wattletree Road, Glen Iris VIC 3146',
113
+ address: {
114
+ street: '284 Wattletree Road',
115
+ suburb: 'Glen Iris',
116
+ state: 'VIC',
117
+ postcode: '3146',
118
+ },
100
119
  openingHours: 'Mon - Fri 8:30am - 7pm · Sat 9am - 4pm',
101
120
  tag: 'Newest',
102
121
  color: 'alert',
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.1",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",