@natch-the-storage/heathershaw-platform-types 1.10.10 → 1.10.11
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 +10 -1
- 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,14 @@ 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
247
|
patients: PatientRecord[];
|
|
244
|
-
orders: Order
|
|
248
|
+
orders: Order & {
|
|
249
|
+
patientFirstName: string;
|
|
250
|
+
patientLastName: string;
|
|
251
|
+
}[];
|
|
245
252
|
priceMatches: PriceMatch[];
|
|
246
253
|
quotes: Quote[];
|
|
247
254
|
};
|
|
@@ -250,6 +257,8 @@ export type PartnerPharmacyProfileSummary = Pick<PartnerPharmacyProfile, 'id' |
|
|
|
250
257
|
ordersCount: number;
|
|
251
258
|
lastOrderDate: string | null;
|
|
252
259
|
status: boolean | null;
|
|
260
|
+
phoneNumber: string;
|
|
261
|
+
email: string;
|
|
253
262
|
};
|
|
254
263
|
export interface PatientRecord {
|
|
255
264
|
id: 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',
|