@natch-the-storage/heathershaw-platform-types 1.3.5 → 1.4.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.
- package/build/validators.d.ts +127 -18
- package/package.json +2 -3
package/build/validators.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export interface Address {
|
|
|
22
22
|
state: string;
|
|
23
23
|
postcode: string;
|
|
24
24
|
deliveryInstructions?: string;
|
|
25
|
+
defaultAddress?: boolean;
|
|
25
26
|
}
|
|
26
27
|
export interface PrescriberSelect {
|
|
27
28
|
id: number;
|
|
@@ -30,11 +31,14 @@ export interface PrescriberSelect {
|
|
|
30
31
|
phone: string;
|
|
31
32
|
}
|
|
32
33
|
export interface HealthInfo {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
medicationFor?: string;
|
|
35
|
+
pregnantOrBreastfeeding: boolean;
|
|
36
|
+
otherMedications?: string;
|
|
37
|
+
allergies?: string;
|
|
38
|
+
medicalConditions?: string;
|
|
39
|
+
supplements?: string;
|
|
40
|
+
additionalInfo?: string;
|
|
41
|
+
lastUpdated?: string;
|
|
38
42
|
}
|
|
39
43
|
export interface ScriptSelect {
|
|
40
44
|
id: number;
|
|
@@ -91,7 +95,12 @@ export interface DirectUserProfile {
|
|
|
91
95
|
remindersEnabled?: boolean;
|
|
92
96
|
scriptSubmissions?: ScriptSelect[];
|
|
93
97
|
}
|
|
94
|
-
export
|
|
98
|
+
export interface DirectUserProfileCreate {
|
|
99
|
+
userId: string;
|
|
100
|
+
compoundDirectId?: string | null;
|
|
101
|
+
remindersEnabled?: boolean;
|
|
102
|
+
scriptSubmissions?: ScriptSelect[];
|
|
103
|
+
}
|
|
95
104
|
export interface Order {
|
|
96
105
|
id: number;
|
|
97
106
|
partnerPharmacyProfileId?: number | null;
|
|
@@ -110,7 +119,23 @@ export interface Order {
|
|
|
110
119
|
hubspotContactId?: string | null;
|
|
111
120
|
createdByUserId?: string | null;
|
|
112
121
|
}
|
|
113
|
-
export
|
|
122
|
+
export interface OrderCreate {
|
|
123
|
+
paymentModeAtOrder: PaymentModeAtOrder;
|
|
124
|
+
paymentStatus: PaymentStatus;
|
|
125
|
+
scriptType: ScriptType;
|
|
126
|
+
shippingType: ShippingType;
|
|
127
|
+
shippingFee: string;
|
|
128
|
+
partnerPharmacyProfileId?: number | null;
|
|
129
|
+
patientRecordId?: number | null;
|
|
130
|
+
completed?: boolean;
|
|
131
|
+
paperScriptReceived?: boolean;
|
|
132
|
+
lineItems?: unknown;
|
|
133
|
+
orderChangeNotes?: string | null;
|
|
134
|
+
counsellingRequired?: boolean;
|
|
135
|
+
confirmationSentAt?: Date | null;
|
|
136
|
+
hubspotContactId?: string | null;
|
|
137
|
+
createdByUserId?: string | null;
|
|
138
|
+
}
|
|
114
139
|
export interface PaperScriptReminder {
|
|
115
140
|
id: number;
|
|
116
141
|
orderId?: number;
|
|
@@ -122,7 +147,16 @@ export interface PaperScriptReminder {
|
|
|
122
147
|
received?: boolean;
|
|
123
148
|
lastSentAt?: string | null;
|
|
124
149
|
}
|
|
125
|
-
export
|
|
150
|
+
export interface PaperScriptReminderCreate {
|
|
151
|
+
orderId: number;
|
|
152
|
+
partnerPharmacyProfileId: number;
|
|
153
|
+
status: PaperScriptReminderStatus;
|
|
154
|
+
remindersSent: number;
|
|
155
|
+
escalationEmail: string;
|
|
156
|
+
received: boolean;
|
|
157
|
+
reminderIntervalDays?: number;
|
|
158
|
+
lastSentAt?: string | null;
|
|
159
|
+
}
|
|
126
160
|
export interface PartnerPharmacyProfile {
|
|
127
161
|
id: number;
|
|
128
162
|
userId?: string;
|
|
@@ -133,11 +167,23 @@ export interface PartnerPharmacyProfile {
|
|
|
133
167
|
paymentMode?: PaymentModeAtOrder;
|
|
134
168
|
remindersEnabled?: boolean;
|
|
135
169
|
priceMatches?: unknown;
|
|
136
|
-
dispatchAddress?: Address;
|
|
170
|
+
dispatchAddress?: Address[];
|
|
171
|
+
orders?: unknown;
|
|
172
|
+
xeroContactId?: string | null;
|
|
173
|
+
}
|
|
174
|
+
export interface PartnerPharmacyProfileCreate {
|
|
175
|
+
userId: string;
|
|
176
|
+
abn: string;
|
|
177
|
+
contactName: string;
|
|
178
|
+
invoiceEmail: string;
|
|
179
|
+
discountTier: string;
|
|
180
|
+
paymentMode: PaymentModeAtOrder;
|
|
181
|
+
remindersEnabled?: boolean;
|
|
182
|
+
priceMatches?: unknown;
|
|
183
|
+
dispatchAddress?: Address[];
|
|
137
184
|
orders?: unknown;
|
|
138
185
|
xeroContactId?: string | null;
|
|
139
186
|
}
|
|
140
|
-
export type PartnerPharmacyProfileCreate = Omit<PartnerPharmacyProfile, "id">;
|
|
141
187
|
export interface PatientRecord {
|
|
142
188
|
id: number;
|
|
143
189
|
partnerPharmacyProfileId?: number | null;
|
|
@@ -148,28 +194,51 @@ export interface PatientRecord {
|
|
|
148
194
|
dateOfBirth?: string;
|
|
149
195
|
medicareNumber?: string | null;
|
|
150
196
|
phone?: string;
|
|
151
|
-
address?: Address;
|
|
197
|
+
address?: Address[];
|
|
198
|
+
healthInfo?: HealthInfo;
|
|
199
|
+
reminderEnabled?: boolean;
|
|
200
|
+
scripts?: ScriptSelect[];
|
|
201
|
+
orderHistory?: OrderSelect[];
|
|
202
|
+
relationship?: string | null;
|
|
203
|
+
}
|
|
204
|
+
export interface PatientRecordCreate {
|
|
205
|
+
firstName: string;
|
|
206
|
+
lastName: string;
|
|
207
|
+
dateOfBirth: string;
|
|
208
|
+
phone: string;
|
|
209
|
+
partnerPharmacyProfileId?: number | null;
|
|
210
|
+
directUserProfileId?: number | null;
|
|
211
|
+
userId?: string | null;
|
|
212
|
+
medicareNumber?: string | null;
|
|
213
|
+
address?: Address[];
|
|
152
214
|
healthInfo?: HealthInfo;
|
|
153
215
|
reminderEnabled?: boolean;
|
|
154
216
|
scripts?: ScriptSelect[];
|
|
155
217
|
orderHistory?: OrderSelect[];
|
|
156
218
|
relationship?: string | null;
|
|
157
219
|
}
|
|
158
|
-
export type PatientRecordCreate = Omit<PatientRecord, "id">;
|
|
159
220
|
export interface Prescriber {
|
|
160
221
|
id: number;
|
|
161
222
|
name?: string;
|
|
162
223
|
email?: string;
|
|
163
224
|
phone?: string;
|
|
164
225
|
}
|
|
165
|
-
export
|
|
226
|
+
export interface PrescriberCreate {
|
|
227
|
+
name: string;
|
|
228
|
+
email: string;
|
|
229
|
+
phone: string;
|
|
230
|
+
}
|
|
166
231
|
export interface PriceMatch {
|
|
167
232
|
id: number;
|
|
168
233
|
partnerPharmacyProfileId?: number;
|
|
169
234
|
productId?: number;
|
|
170
235
|
overridePrice?: string;
|
|
171
236
|
}
|
|
172
|
-
export
|
|
237
|
+
export interface PriceMatchCreate {
|
|
238
|
+
partnerPharmacyProfileId: number;
|
|
239
|
+
productId: number;
|
|
240
|
+
overridePrice: string;
|
|
241
|
+
}
|
|
173
242
|
export interface Product {
|
|
174
243
|
id: number;
|
|
175
244
|
name?: string;
|
|
@@ -183,7 +252,18 @@ export interface Product {
|
|
|
183
252
|
flavours?: string[] | null;
|
|
184
253
|
requiresS8Medicare?: boolean;
|
|
185
254
|
}
|
|
186
|
-
export
|
|
255
|
+
export interface ProductCreate {
|
|
256
|
+
name: string;
|
|
257
|
+
category: ProductCategory;
|
|
258
|
+
rrp: string;
|
|
259
|
+
imageKey?: string | null;
|
|
260
|
+
abbreviations?: string[] | null;
|
|
261
|
+
hazardTags?: HazardTag[] | null;
|
|
262
|
+
compoundDirectId?: string | null;
|
|
263
|
+
requiresFridge?: boolean;
|
|
264
|
+
flavours?: string[] | null;
|
|
265
|
+
requiresS8Medicare?: boolean;
|
|
266
|
+
}
|
|
187
267
|
export interface Quote {
|
|
188
268
|
id: number;
|
|
189
269
|
status?: QuoteStatus;
|
|
@@ -194,7 +274,15 @@ export interface Quote {
|
|
|
194
274
|
quantity?: number;
|
|
195
275
|
patientContext?: string;
|
|
196
276
|
}
|
|
197
|
-
export
|
|
277
|
+
export interface QuoteCreate {
|
|
278
|
+
partnerPharmacyProfileId: number;
|
|
279
|
+
name: string;
|
|
280
|
+
strength: string;
|
|
281
|
+
form: string;
|
|
282
|
+
quantity: number;
|
|
283
|
+
patientContext: string;
|
|
284
|
+
status?: QuoteStatus;
|
|
285
|
+
}
|
|
198
286
|
export interface RepeatReminder {
|
|
199
287
|
id: number;
|
|
200
288
|
orderId?: number;
|
|
@@ -207,7 +295,17 @@ export interface RepeatReminder {
|
|
|
207
295
|
patientSmsSent?: boolean;
|
|
208
296
|
enabled?: boolean;
|
|
209
297
|
}
|
|
210
|
-
export
|
|
298
|
+
export interface RepeatReminderCreate {
|
|
299
|
+
orderId: number;
|
|
300
|
+
patientRecordId: number;
|
|
301
|
+
daysSupply: number;
|
|
302
|
+
dispatchedAt: Date;
|
|
303
|
+
reminderDueAt: Date;
|
|
304
|
+
reminderOffsetDays?: number;
|
|
305
|
+
pharmacyReminderSent?: boolean;
|
|
306
|
+
patientSmsSent?: boolean;
|
|
307
|
+
enabled?: boolean;
|
|
308
|
+
}
|
|
211
309
|
export interface Script {
|
|
212
310
|
id: number;
|
|
213
311
|
prescriberId?: number;
|
|
@@ -221,7 +319,18 @@ export interface Script {
|
|
|
221
319
|
compoundDirectId?: string | null;
|
|
222
320
|
imageKey?: string | null;
|
|
223
321
|
}
|
|
224
|
-
export
|
|
322
|
+
export interface ScriptCreate {
|
|
323
|
+
prescriberId: number;
|
|
324
|
+
patientRecordId: number;
|
|
325
|
+
productId: number;
|
|
326
|
+
dateIssued: string;
|
|
327
|
+
daysSupply: number;
|
|
328
|
+
repeatStorage: RepeatStorage;
|
|
329
|
+
processed?: boolean;
|
|
330
|
+
repeatsRemaining?: number;
|
|
331
|
+
compoundDirectId?: string | null;
|
|
332
|
+
imageKey?: string | null;
|
|
333
|
+
}
|
|
225
334
|
export declare const apiRoutes: {
|
|
226
335
|
orders: {
|
|
227
336
|
list: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natch-the-storage/heathershaw-platform-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Interfaces and routes to use on the client",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Natch Surana",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"build"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "tsc"
|
|
21
|
-
"publish": "npm run build && npm publish --access public"
|
|
20
|
+
"build": "tsc"
|
|
22
21
|
},
|
|
23
22
|
"devDependencies": {
|
|
24
23
|
"typescript": "^6.0.3"
|