@natch-the-storage/heathershaw-platform-types 1.7.2 → 1.7.3

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.
@@ -43,28 +43,6 @@ export interface ScriptSelect {
43
43
  token?: string | null;
44
44
  fileKey?: string | null;
45
45
  }
46
- export interface OrderSelect {
47
- id: number;
48
- partnerPharmacyProfileId: number | null;
49
- directUserProfileId: number | null;
50
- trackingNumber: string;
51
- status: boolean;
52
- paymentModeAtOrder: PaymentModeAtOrder;
53
- paymentStatus: PaymentStatus;
54
- store: string;
55
- staff: string;
56
- shippingType: ShippingType;
57
- shippingFee: string;
58
- lineItems: LineItem[];
59
- orderChangeNotes: string | null;
60
- counsellingRequired: boolean;
61
- counsellingPriority: string;
62
- counselledBy: string;
63
- consellingNotes: string;
64
- counselledStatus: string;
65
- confirmationSentAt: Date;
66
- hubspotContactId: string;
67
- }
68
46
  export interface LineItem {
69
47
  id: number;
70
48
  name: string;
@@ -72,6 +50,7 @@ export interface LineItem {
72
50
  price: number;
73
51
  rrp: number;
74
52
  flavour?: string;
53
+ adverseSymptomsStatus?: string;
75
54
  adverseSymptoms?: string;
76
55
  scriptType: string;
77
56
  paperScriptReceived: boolean;
@@ -84,9 +63,10 @@ export interface LineItem {
84
63
  for: {
85
64
  customerId: number;
86
65
  patientRecordId: number;
87
- patientName: string;
66
+ patientFirstName: string;
67
+ patientLastName: string;
88
68
  };
89
- quantity: string;
69
+ quantity: number;
90
70
  expiryDate: string;
91
71
  repeatsLeft: number;
92
72
  supplyNumber: number;
@@ -124,16 +104,18 @@ export interface Order {
124
104
  id: number;
125
105
  partnerPharmacyProfileId?: number | null;
126
106
  directUserProfileId?: number | null;
107
+ address: string;
127
108
  trackingNumber?: string;
128
- status?: boolean;
129
- paymentModeAtOrder?: PaymentModeAtOrder;
130
- paymentStatus?: PaymentStatus;
109
+ status: string;
131
110
  store?: string;
132
111
  staff?: string;
133
- shippingType?: ShippingType;
134
- shippingFee?: string;
135
- lineItems?: LineItem[];
112
+ lineItems: LineItem[];
136
113
  orderChangeNotes?: string | null;
114
+ paymentModeAtOrder?: PaymentModeAtOrder;
115
+ paymentStatus?: PaymentStatus;
116
+ shippingType?: ShippingType;
117
+ shippingFee?: number;
118
+ total: number;
137
119
  counsellingRequired?: boolean;
138
120
  counsellingPriority?: string;
139
121
  counselledBy?: string;
@@ -141,20 +123,23 @@ export interface Order {
141
123
  counselledStatus?: string;
142
124
  confirmationSentAt?: Date;
143
125
  hubspotContactId?: string;
126
+ created: string;
144
127
  }
145
128
  export interface OrderCreate {
146
- paymentModeAtOrder: PaymentModeAtOrder;
147
- paymentStatus: PaymentStatus;
148
- shippingType: ShippingType;
149
- shippingFee: string;
150
129
  partnerPharmacyProfileId?: number | null;
151
130
  directUserProfileId?: number | null;
131
+ address: string;
152
132
  trackingNumber?: string;
153
- status?: boolean;
133
+ status?: string;
154
134
  store?: string;
155
135
  staff?: string;
156
- lineItems?: LineItem[];
136
+ lineItems: LineItem[];
157
137
  orderChangeNotes?: string | null;
138
+ paymentModeAtOrder: PaymentModeAtOrder;
139
+ paymentStatus: PaymentStatus;
140
+ shippingType: ShippingType;
141
+ shippingFee: number;
142
+ total: number;
158
143
  counsellingRequired?: boolean;
159
144
  counsellingPriority?: string;
160
145
  counselledBy?: string;
@@ -219,8 +204,8 @@ export interface PatientRecord {
219
204
  directUserProfileId?: number | null;
220
205
  compoundDirectId?: number | null;
221
206
  userId?: string | null;
222
- firstName?: string;
223
- lastName?: string;
207
+ firstName: string;
208
+ lastName: string;
224
209
  dateOfBirth?: string;
225
210
  medicareNumber?: string | null;
226
211
  phone?: string;
@@ -228,7 +213,7 @@ export interface PatientRecord {
228
213
  healthInfo?: HealthInfo;
229
214
  reminderEnabled?: boolean;
230
215
  scripts?: ScriptSelect[];
231
- orderHistory?: OrderSelect[];
216
+ orderHistory?: Order[];
232
217
  animalSpecies?: string;
233
218
  relationship?: string | null;
234
219
  }
@@ -246,7 +231,7 @@ export interface PatientRecordCreate {
246
231
  healthInfo?: HealthInfo;
247
232
  reminderEnabled?: boolean;
248
233
  scripts?: ScriptSelect[];
249
- orderHistory?: OrderSelect[];
234
+ orderHistory?: Order[];
250
235
  animalSpecies?: string;
251
236
  relationship?: string | null;
252
237
  }
@@ -510,8 +495,8 @@ export interface CDScript {
510
495
  };
511
496
  };
512
497
  formulation: {
513
- properties?: CDScriptProperties[];
514
- ingredients?: CDScriptIngredients[];
498
+ properties: CDScriptProperties[];
499
+ ingredients: CDScriptIngredients[];
515
500
  };
516
501
  itemCount: number;
517
502
  }
@@ -598,6 +583,7 @@ export declare const ApiRoutes: {
598
583
  list: string;
599
584
  get: (id: number) => string;
600
585
  getByUser: (userId: string) => string;
586
+ getOrders: (userId: number) => string;
601
587
  create: string;
602
588
  onboard: (userId: string) => string;
603
589
  update: string;
@@ -116,6 +116,7 @@ export const ApiRoutes = {
116
116
  list: '/api/profiles/direct-users',
117
117
  get: (id) => `/api/profiles/direct-users/${id}`,
118
118
  getByUser: (userId) => `/api/profiles/direct-users/user/${userId}`,
119
+ getOrders: (userId) => `/api/profiles/direct-users/user/${userId}/orders`,
119
120
  create: '/api/profiles/direct-users',
120
121
  onboard: (userId) => `/api/profiles/direct-users/${userId}`,
121
122
  update: '/api/profiles/direct-users',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",