@natch-the-storage/heathershaw-platform-types 1.3.5 → 1.4.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 +116 -11
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -91,7 +91,12 @@ export interface DirectUserProfile {
|
|
|
91
91
|
remindersEnabled?: boolean;
|
|
92
92
|
scriptSubmissions?: ScriptSelect[];
|
|
93
93
|
}
|
|
94
|
-
export
|
|
94
|
+
export interface DirectUserProfileCreate {
|
|
95
|
+
userId: string;
|
|
96
|
+
compoundDirectId?: string | null;
|
|
97
|
+
remindersEnabled?: boolean;
|
|
98
|
+
scriptSubmissions?: ScriptSelect[];
|
|
99
|
+
}
|
|
95
100
|
export interface Order {
|
|
96
101
|
id: number;
|
|
97
102
|
partnerPharmacyProfileId?: number | null;
|
|
@@ -110,7 +115,23 @@ export interface Order {
|
|
|
110
115
|
hubspotContactId?: string | null;
|
|
111
116
|
createdByUserId?: string | null;
|
|
112
117
|
}
|
|
113
|
-
export
|
|
118
|
+
export interface OrderCreate {
|
|
119
|
+
paymentModeAtOrder: PaymentModeAtOrder;
|
|
120
|
+
paymentStatus: PaymentStatus;
|
|
121
|
+
scriptType: ScriptType;
|
|
122
|
+
shippingType: ShippingType;
|
|
123
|
+
shippingFee: string;
|
|
124
|
+
partnerPharmacyProfileId?: number | null;
|
|
125
|
+
patientRecordId?: number | null;
|
|
126
|
+
completed?: boolean;
|
|
127
|
+
paperScriptReceived?: boolean;
|
|
128
|
+
lineItems?: unknown;
|
|
129
|
+
orderChangeNotes?: string | null;
|
|
130
|
+
counsellingRequired?: boolean;
|
|
131
|
+
confirmationSentAt?: Date | null;
|
|
132
|
+
hubspotContactId?: string | null;
|
|
133
|
+
createdByUserId?: string | null;
|
|
134
|
+
}
|
|
114
135
|
export interface PaperScriptReminder {
|
|
115
136
|
id: number;
|
|
116
137
|
orderId?: number;
|
|
@@ -122,7 +143,16 @@ export interface PaperScriptReminder {
|
|
|
122
143
|
received?: boolean;
|
|
123
144
|
lastSentAt?: string | null;
|
|
124
145
|
}
|
|
125
|
-
export
|
|
146
|
+
export interface PaperScriptReminderCreate {
|
|
147
|
+
orderId: number;
|
|
148
|
+
partnerPharmacyProfileId: number;
|
|
149
|
+
status: PaperScriptReminderStatus;
|
|
150
|
+
remindersSent: number;
|
|
151
|
+
escalationEmail: string;
|
|
152
|
+
received: boolean;
|
|
153
|
+
reminderIntervalDays?: number;
|
|
154
|
+
lastSentAt?: string | null;
|
|
155
|
+
}
|
|
126
156
|
export interface PartnerPharmacyProfile {
|
|
127
157
|
id: number;
|
|
128
158
|
userId?: string;
|
|
@@ -137,7 +167,19 @@ export interface PartnerPharmacyProfile {
|
|
|
137
167
|
orders?: unknown;
|
|
138
168
|
xeroContactId?: string | null;
|
|
139
169
|
}
|
|
140
|
-
export
|
|
170
|
+
export interface PartnerPharmacyProfileCreate {
|
|
171
|
+
userId: string;
|
|
172
|
+
abn: string;
|
|
173
|
+
contactName: string;
|
|
174
|
+
invoiceEmail: string;
|
|
175
|
+
discountTier: string;
|
|
176
|
+
paymentMode: PaymentModeAtOrder;
|
|
177
|
+
remindersEnabled?: boolean;
|
|
178
|
+
priceMatches?: unknown;
|
|
179
|
+
dispatchAddress?: Address;
|
|
180
|
+
orders?: unknown;
|
|
181
|
+
xeroContactId?: string | null;
|
|
182
|
+
}
|
|
141
183
|
export interface PatientRecord {
|
|
142
184
|
id: number;
|
|
143
185
|
partnerPharmacyProfileId?: number | null;
|
|
@@ -155,21 +197,44 @@ export interface PatientRecord {
|
|
|
155
197
|
orderHistory?: OrderSelect[];
|
|
156
198
|
relationship?: string | null;
|
|
157
199
|
}
|
|
158
|
-
export
|
|
200
|
+
export interface PatientRecordCreate {
|
|
201
|
+
firstName: string;
|
|
202
|
+
lastName: string;
|
|
203
|
+
dateOfBirth: string;
|
|
204
|
+
phone: string;
|
|
205
|
+
partnerPharmacyProfileId?: number | null;
|
|
206
|
+
directUserProfileId?: number | null;
|
|
207
|
+
userId?: string | null;
|
|
208
|
+
medicareNumber?: string | null;
|
|
209
|
+
address?: Address;
|
|
210
|
+
healthInfo?: HealthInfo;
|
|
211
|
+
reminderEnabled?: boolean;
|
|
212
|
+
scripts?: ScriptSelect[];
|
|
213
|
+
orderHistory?: OrderSelect[];
|
|
214
|
+
relationship?: string | null;
|
|
215
|
+
}
|
|
159
216
|
export interface Prescriber {
|
|
160
217
|
id: number;
|
|
161
218
|
name?: string;
|
|
162
219
|
email?: string;
|
|
163
220
|
phone?: string;
|
|
164
221
|
}
|
|
165
|
-
export
|
|
222
|
+
export interface PrescriberCreate {
|
|
223
|
+
name: string;
|
|
224
|
+
email: string;
|
|
225
|
+
phone: string;
|
|
226
|
+
}
|
|
166
227
|
export interface PriceMatch {
|
|
167
228
|
id: number;
|
|
168
229
|
partnerPharmacyProfileId?: number;
|
|
169
230
|
productId?: number;
|
|
170
231
|
overridePrice?: string;
|
|
171
232
|
}
|
|
172
|
-
export
|
|
233
|
+
export interface PriceMatchCreate {
|
|
234
|
+
partnerPharmacyProfileId: number;
|
|
235
|
+
productId: number;
|
|
236
|
+
overridePrice: string;
|
|
237
|
+
}
|
|
173
238
|
export interface Product {
|
|
174
239
|
id: number;
|
|
175
240
|
name?: string;
|
|
@@ -183,7 +248,18 @@ export interface Product {
|
|
|
183
248
|
flavours?: string[] | null;
|
|
184
249
|
requiresS8Medicare?: boolean;
|
|
185
250
|
}
|
|
186
|
-
export
|
|
251
|
+
export interface ProductCreate {
|
|
252
|
+
name: string;
|
|
253
|
+
category: ProductCategory;
|
|
254
|
+
rrp: string;
|
|
255
|
+
imageKey?: string | null;
|
|
256
|
+
abbreviations?: string[] | null;
|
|
257
|
+
hazardTags?: HazardTag[] | null;
|
|
258
|
+
compoundDirectId?: string | null;
|
|
259
|
+
requiresFridge?: boolean;
|
|
260
|
+
flavours?: string[] | null;
|
|
261
|
+
requiresS8Medicare?: boolean;
|
|
262
|
+
}
|
|
187
263
|
export interface Quote {
|
|
188
264
|
id: number;
|
|
189
265
|
status?: QuoteStatus;
|
|
@@ -194,7 +270,15 @@ export interface Quote {
|
|
|
194
270
|
quantity?: number;
|
|
195
271
|
patientContext?: string;
|
|
196
272
|
}
|
|
197
|
-
export
|
|
273
|
+
export interface QuoteCreate {
|
|
274
|
+
partnerPharmacyProfileId: number;
|
|
275
|
+
name: string;
|
|
276
|
+
strength: string;
|
|
277
|
+
form: string;
|
|
278
|
+
quantity: number;
|
|
279
|
+
patientContext: string;
|
|
280
|
+
status?: QuoteStatus;
|
|
281
|
+
}
|
|
198
282
|
export interface RepeatReminder {
|
|
199
283
|
id: number;
|
|
200
284
|
orderId?: number;
|
|
@@ -207,7 +291,17 @@ export interface RepeatReminder {
|
|
|
207
291
|
patientSmsSent?: boolean;
|
|
208
292
|
enabled?: boolean;
|
|
209
293
|
}
|
|
210
|
-
export
|
|
294
|
+
export interface RepeatReminderCreate {
|
|
295
|
+
orderId: number;
|
|
296
|
+
patientRecordId: number;
|
|
297
|
+
daysSupply: number;
|
|
298
|
+
dispatchedAt: Date;
|
|
299
|
+
reminderDueAt: Date;
|
|
300
|
+
reminderOffsetDays?: number;
|
|
301
|
+
pharmacyReminderSent?: boolean;
|
|
302
|
+
patientSmsSent?: boolean;
|
|
303
|
+
enabled?: boolean;
|
|
304
|
+
}
|
|
211
305
|
export interface Script {
|
|
212
306
|
id: number;
|
|
213
307
|
prescriberId?: number;
|
|
@@ -221,7 +315,18 @@ export interface Script {
|
|
|
221
315
|
compoundDirectId?: string | null;
|
|
222
316
|
imageKey?: string | null;
|
|
223
317
|
}
|
|
224
|
-
export
|
|
318
|
+
export interface ScriptCreate {
|
|
319
|
+
prescriberId: number;
|
|
320
|
+
patientRecordId: number;
|
|
321
|
+
productId: number;
|
|
322
|
+
dateIssued: string;
|
|
323
|
+
daysSupply: number;
|
|
324
|
+
repeatStorage: RepeatStorage;
|
|
325
|
+
processed?: boolean;
|
|
326
|
+
repeatsRemaining?: number;
|
|
327
|
+
compoundDirectId?: string | null;
|
|
328
|
+
imageKey?: string | null;
|
|
329
|
+
}
|
|
225
330
|
export declare const apiRoutes: {
|
|
226
331
|
orders: {
|
|
227
332
|
list: string;
|