@natch-the-storage/heathershaw-platform-types 1.10.10 → 1.10.12
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 +18 -27
- package/build/validators.js +7 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const orderStatusValues: readonly ["received", "processing", "dispatched", "delivered", "completed"];
|
|
1
2
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
2
3
|
export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
|
|
3
4
|
export declare const paymentModeAtOrderValues: readonly ["INVOICE", "POS"];
|
|
@@ -9,6 +10,7 @@ export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSE
|
|
|
9
10
|
export declare const staffProfileStatusValues: readonly ["ACTIVE", "SUSPENDED"];
|
|
10
11
|
export declare const auStatesValues: string[];
|
|
11
12
|
export declare const discountTierValues: number[];
|
|
13
|
+
export type OrderStatus = (typeof orderStatusValues)[number];
|
|
12
14
|
export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
|
|
13
15
|
export type QuoteStatus = (typeof quoteStatusValues)[number];
|
|
14
16
|
export type PaymentModeAtOrder = (typeof paymentModeAtOrderValues)[number];
|
|
@@ -239,9 +241,16 @@ export interface PartnerPharmacyProfileReportData {
|
|
|
239
241
|
pendingPaperScripts: number;
|
|
240
242
|
}
|
|
241
243
|
export type PartnerPharmacyProfileDetailed = PartnerPharmacyProfile & {
|
|
244
|
+
email: string;
|
|
245
|
+
phoneNumber: string;
|
|
242
246
|
status: boolean | null;
|
|
243
|
-
patients: PatientRecord
|
|
244
|
-
|
|
247
|
+
patients: PatientRecord & {
|
|
248
|
+
lastOrderDate: string | null;
|
|
249
|
+
}[];
|
|
250
|
+
orders: Order & {
|
|
251
|
+
patientFirstName: string;
|
|
252
|
+
patientLastName: string;
|
|
253
|
+
}[];
|
|
245
254
|
priceMatches: PriceMatch[];
|
|
246
255
|
quotes: Quote[];
|
|
247
256
|
};
|
|
@@ -250,6 +259,8 @@ export type PartnerPharmacyProfileSummary = Pick<PartnerPharmacyProfile, 'id' |
|
|
|
250
259
|
ordersCount: number;
|
|
251
260
|
lastOrderDate: string | null;
|
|
252
261
|
status: boolean | null;
|
|
262
|
+
phoneNumber: string;
|
|
263
|
+
email: string;
|
|
253
264
|
};
|
|
254
265
|
export interface PatientRecord {
|
|
255
266
|
id: number;
|
|
@@ -271,25 +282,14 @@ export interface PatientRecord {
|
|
|
271
282
|
animalSpecies?: string;
|
|
272
283
|
relationship?: string | null;
|
|
273
284
|
}
|
|
274
|
-
export
|
|
275
|
-
|
|
276
|
-
directUserProfileId?: number | null;
|
|
277
|
-
compoundDirectId?: number | null;
|
|
278
|
-
userId?: string | null;
|
|
285
|
+
export type PatientRecordCreate = Partial<PatientRecord> & {
|
|
286
|
+
id: number;
|
|
279
287
|
firstName: string;
|
|
280
288
|
lastName: string;
|
|
281
289
|
dateOfBirth: string;
|
|
282
290
|
email: string;
|
|
283
291
|
phone: string;
|
|
284
|
-
|
|
285
|
-
addresses?: Address[];
|
|
286
|
-
healthInfo?: HealthInfo;
|
|
287
|
-
reminderEnabled?: boolean;
|
|
288
|
-
scripts?: Script[];
|
|
289
|
-
orderHistory?: Order[];
|
|
290
|
-
animalSpecies?: string;
|
|
291
|
-
relationship?: string | null;
|
|
292
|
-
}
|
|
292
|
+
};
|
|
293
293
|
export interface PriceMatch {
|
|
294
294
|
id: number;
|
|
295
295
|
partnerPharmacyProfileId: number;
|
|
@@ -314,18 +314,9 @@ export interface Quote {
|
|
|
314
314
|
details?: string;
|
|
315
315
|
token?: string;
|
|
316
316
|
fileKey?: string;
|
|
317
|
+
created: string;
|
|
317
318
|
}
|
|
318
|
-
export
|
|
319
|
-
status?: QuoteStatus;
|
|
320
|
-
partnerPharmacyProfileId: number;
|
|
321
|
-
name: string;
|
|
322
|
-
strength: string;
|
|
323
|
-
form: string;
|
|
324
|
-
quantity: string;
|
|
325
|
-
details?: string;
|
|
326
|
-
token?: string;
|
|
327
|
-
fileKey?: string;
|
|
328
|
-
}
|
|
319
|
+
export type QuoteCreate = Omit<Quote, 'id' | 'status' | 'created'>;
|
|
329
320
|
export interface RepeatReminder {
|
|
330
321
|
id: number;
|
|
331
322
|
orderId?: number;
|
package/build/validators.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
//#region Enum value arrays ──────────────────────────────────────────────────────────
|
|
2
|
+
export const orderStatusValues = [
|
|
3
|
+
'received',
|
|
4
|
+
'processing',
|
|
5
|
+
'dispatched',
|
|
6
|
+
'delivered',
|
|
7
|
+
'completed',
|
|
8
|
+
];
|
|
2
9
|
export const paperScriptReminderStatusValues = [
|
|
3
10
|
'PENDING',
|
|
4
11
|
'RECEIVED',
|