@natch-the-storage/heathershaw-platform-types 1.15.14 → 1.16.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 +15 -3
- package/build/validators.js +4 -6
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIE
|
|
|
4
4
|
export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
|
|
5
5
|
export declare const patientRecordSubAccountRelationshipValues: readonly ["Child", "Spouse", "Parent", "Pet", "Other"];
|
|
6
6
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
7
|
-
export declare const quoteStatusValues: readonly ["PENDING", "
|
|
7
|
+
export declare const quoteStatusValues: readonly ["PENDING", "RESOLVED", "DECLINED"];
|
|
8
8
|
export declare const paymentModeAtOrderValues: readonly ["ONLINE", "INVOICE", "POS"];
|
|
9
9
|
export declare const partnerPharmacyPaymentModeValues: readonly ["INVOICE", "POS"];
|
|
10
10
|
export declare const paymentStatusValues: readonly ["UNPAID", "AWAITING_PAYMENT", "PENDING_INVOICE", "PAID"];
|
|
@@ -118,12 +118,20 @@ export interface Sms {
|
|
|
118
118
|
to: string;
|
|
119
119
|
}
|
|
120
120
|
export interface PaymentLinkCreate {
|
|
121
|
+
id: number;
|
|
121
122
|
partnerPharmacyProfileId?: number;
|
|
122
123
|
patientRecordId?: number;
|
|
123
124
|
directUserProfileId?: number;
|
|
124
125
|
phoneNumber?: string;
|
|
125
126
|
email?: string;
|
|
126
127
|
}
|
|
128
|
+
export interface PaymentLinkProcess {
|
|
129
|
+
token: string;
|
|
130
|
+
update: {
|
|
131
|
+
orderUpdate: Omit<OrderUpdate, 'id'>;
|
|
132
|
+
patientRecordUpdate: Omit<PatientRecordUpdate, 'id'>;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
127
135
|
interface DashboardData {
|
|
128
136
|
label: string;
|
|
129
137
|
count: number;
|
|
@@ -131,7 +139,7 @@ interface DashboardData {
|
|
|
131
139
|
export interface AdminDashboardData {
|
|
132
140
|
pendingOrders: DashboardData;
|
|
133
141
|
ordersRequiringCounselling: DashboardData;
|
|
134
|
-
|
|
142
|
+
unpaidDrafts: DashboardData;
|
|
135
143
|
pendingQuotes: DashboardData;
|
|
136
144
|
unprocessedScripts: DashboardData;
|
|
137
145
|
unprocessedPaperScripts: DashboardData;
|
|
@@ -195,8 +203,9 @@ export interface Order {
|
|
|
195
203
|
requiredDate: string;
|
|
196
204
|
draft: boolean;
|
|
197
205
|
reasonMarkedPaid?: string;
|
|
206
|
+
paymentLinkToken?: string;
|
|
198
207
|
}
|
|
199
|
-
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
|
|
208
|
+
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft' | 'paymentLinkToken'> & {
|
|
200
209
|
draft?: boolean;
|
|
201
210
|
};
|
|
202
211
|
export type OrderUpdate = Partial<Order> & {
|
|
@@ -893,6 +902,9 @@ export declare const ApiRoutes: {
|
|
|
893
902
|
create: string;
|
|
894
903
|
update: string;
|
|
895
904
|
delete: (id: number) => string;
|
|
905
|
+
createPaymentLinkToken: string;
|
|
906
|
+
getByPaymentLinkToken: (token: string) => string;
|
|
907
|
+
updateByPaymentLinkToken: (token: string) => string;
|
|
896
908
|
};
|
|
897
909
|
paperScriptReminders: {
|
|
898
910
|
list: string;
|
package/build/validators.js
CHANGED
|
@@ -33,12 +33,7 @@ export const paperScriptReminderStatusValues = [
|
|
|
33
33
|
'RECEIVED',
|
|
34
34
|
'ESCALATED',
|
|
35
35
|
];
|
|
36
|
-
export const quoteStatusValues = [
|
|
37
|
-
'PENDING',
|
|
38
|
-
'PROCESSING',
|
|
39
|
-
'RESOLVED',
|
|
40
|
-
'DECLINED',
|
|
41
|
-
];
|
|
36
|
+
export const quoteStatusValues = ['PENDING', 'RESOLVED', 'DECLINED'];
|
|
42
37
|
export const paymentModeAtOrderValues = ['ONLINE', 'INVOICE', 'POS'];
|
|
43
38
|
export const partnerPharmacyPaymentModeValues = ['INVOICE', 'POS'];
|
|
44
39
|
export const paymentStatusValues = [
|
|
@@ -277,6 +272,9 @@ export const ApiRoutes = {
|
|
|
277
272
|
create: '/api/orders',
|
|
278
273
|
update: '/api/orders',
|
|
279
274
|
delete: (id) => `/api/orders/${id}`,
|
|
275
|
+
createPaymentLinkToken: '/api/orders/payment-links',
|
|
276
|
+
getByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
|
|
277
|
+
updateByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
|
|
280
278
|
},
|
|
281
279
|
paperScriptReminders: {
|
|
282
280
|
list: '/api/paper-script-reminders',
|