@natch-the-storage/heathershaw-platform-types 1.16.0 → 1.16.2
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 +20 -2
- package/build/validators.js +16 -6
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export declare const cDProductCategoryLabelValues: string[];
|
|
2
2
|
export declare const cDProductCategoryIdValues: string[];
|
|
3
|
+
export declare const logItemTypeValues: string[];
|
|
3
4
|
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
|
|
4
5
|
export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
|
|
5
6
|
export declare const patientRecordSubAccountRelationshipValues: readonly ["Child", "Spouse", "Parent", "Pet", "Other"];
|
|
6
7
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
7
|
-
export declare const quoteStatusValues: readonly ["PENDING", "
|
|
8
|
+
export declare const quoteStatusValues: readonly ["PENDING", "RESOLVED", "DECLINED"];
|
|
8
9
|
export declare const paymentModeAtOrderValues: readonly ["ONLINE", "INVOICE", "POS"];
|
|
9
10
|
export declare const partnerPharmacyPaymentModeValues: readonly ["INVOICE", "POS"];
|
|
10
11
|
export declare const paymentStatusValues: readonly ["UNPAID", "AWAITING_PAYMENT", "PENDING_INVOICE", "PAID"];
|
|
@@ -18,6 +19,7 @@ export declare const auStatesValues: string[];
|
|
|
18
19
|
export declare const discountTierValues: number[];
|
|
19
20
|
export type CDProductCategoryId = (typeof cDProductCategoryIdValues)[number];
|
|
20
21
|
export type CDProductCategoryLabel = (typeof cDProductCategoryLabelValues)[number];
|
|
22
|
+
export type LogItemType = (typeof logItemTypeValues)[number];
|
|
21
23
|
export type OrderFulfillment = (typeof orderFulfillmentValues)[number];
|
|
22
24
|
export type OrderStatus = (typeof orderStatusValues)[number];
|
|
23
25
|
export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
|
|
@@ -101,6 +103,14 @@ export interface LineItem {
|
|
|
101
103
|
pricing: CDScriptPriceOption;
|
|
102
104
|
};
|
|
103
105
|
}
|
|
106
|
+
export interface LogItem {
|
|
107
|
+
timestamp: string;
|
|
108
|
+
type: LogItemType;
|
|
109
|
+
directUserProfileId?: number;
|
|
110
|
+
partnerPharmacyProfileId?: number;
|
|
111
|
+
staffProfileId?: number;
|
|
112
|
+
note?: string;
|
|
113
|
+
}
|
|
104
114
|
export interface GetById {
|
|
105
115
|
id: number;
|
|
106
116
|
}
|
|
@@ -118,12 +128,20 @@ export interface Sms {
|
|
|
118
128
|
to: string;
|
|
119
129
|
}
|
|
120
130
|
export interface PaymentLinkCreate {
|
|
131
|
+
id: number;
|
|
121
132
|
partnerPharmacyProfileId?: number;
|
|
122
133
|
patientRecordId?: number;
|
|
123
134
|
directUserProfileId?: number;
|
|
124
135
|
phoneNumber?: string;
|
|
125
136
|
email?: string;
|
|
126
137
|
}
|
|
138
|
+
export interface PaymentLinkProcess {
|
|
139
|
+
token: string;
|
|
140
|
+
update: {
|
|
141
|
+
orderUpdate: Omit<OrderUpdate, 'id'>;
|
|
142
|
+
patientRecordUpdate: Omit<PatientRecordUpdate, 'id'>;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
127
145
|
interface DashboardData {
|
|
128
146
|
label: string;
|
|
129
147
|
count: number;
|
|
@@ -131,7 +149,7 @@ interface DashboardData {
|
|
|
131
149
|
export interface AdminDashboardData {
|
|
132
150
|
pendingOrders: DashboardData;
|
|
133
151
|
ordersRequiringCounselling: DashboardData;
|
|
134
|
-
|
|
152
|
+
unpaidDrafts: DashboardData;
|
|
135
153
|
pendingQuotes: DashboardData;
|
|
136
154
|
unprocessedScripts: DashboardData;
|
|
137
155
|
unprocessedPaperScripts: DashboardData;
|
package/build/validators.js
CHANGED
|
@@ -6,6 +6,21 @@ export const cDProductCategoryIdValues = [
|
|
|
6
6
|
'schedule_4',
|
|
7
7
|
'schedule_8',
|
|
8
8
|
];
|
|
9
|
+
export const logItemTypeValues = [
|
|
10
|
+
'CREATED',
|
|
11
|
+
'DRAFTED',
|
|
12
|
+
'CREATED_PAID',
|
|
13
|
+
'UPDATED',
|
|
14
|
+
'UPDATED_DRAFT',
|
|
15
|
+
'PAYMENT_LINK_SMS',
|
|
16
|
+
'PAYMENT_LINK_EMAIL',
|
|
17
|
+
'PAYMENT_LINK_BOTH',
|
|
18
|
+
'PARTNER_ORDERED_INVOICE',
|
|
19
|
+
'PARTNER_ORDERED_POS',
|
|
20
|
+
'PAID',
|
|
21
|
+
'MARKED_PAID',
|
|
22
|
+
'PAYMENT_LINK_PAID',
|
|
23
|
+
];
|
|
9
24
|
export const orderFulfillmentValues = [
|
|
10
25
|
'PICKUP',
|
|
11
26
|
'POST',
|
|
@@ -33,12 +48,7 @@ export const paperScriptReminderStatusValues = [
|
|
|
33
48
|
'RECEIVED',
|
|
34
49
|
'ESCALATED',
|
|
35
50
|
];
|
|
36
|
-
export const quoteStatusValues = [
|
|
37
|
-
'PENDING',
|
|
38
|
-
'PROCESSING',
|
|
39
|
-
'RESOLVED',
|
|
40
|
-
'DECLINED',
|
|
41
|
-
];
|
|
51
|
+
export const quoteStatusValues = ['PENDING', 'RESOLVED', 'DECLINED'];
|
|
42
52
|
export const paymentModeAtOrderValues = ['ONLINE', 'INVOICE', 'POS'];
|
|
43
53
|
export const partnerPharmacyPaymentModeValues = ['INVOICE', 'POS'];
|
|
44
54
|
export const paymentStatusValues = [
|