@natch-the-storage/heathershaw-platform-types 1.10.30 → 1.11.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 +12 -3
- package/build/validators.js +9 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "
|
|
1
|
+
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
|
|
2
2
|
export declare const orderStatusValues: readonly ["RECEIVED", "PROCESSING", "DISPATCHED", "DELIVERED", "COMPLETED"];
|
|
3
3
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
4
4
|
export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
|
|
@@ -101,7 +101,10 @@ export interface DevEmail {
|
|
|
101
101
|
export interface Sms {
|
|
102
102
|
body: string;
|
|
103
103
|
to: string;
|
|
104
|
-
|
|
104
|
+
}
|
|
105
|
+
export interface PaymentLinkCreate {
|
|
106
|
+
phone?: string;
|
|
107
|
+
email?: string;
|
|
105
108
|
}
|
|
106
109
|
interface DashboardData {
|
|
107
110
|
label: string;
|
|
@@ -173,6 +176,7 @@ export interface Order {
|
|
|
173
176
|
created: string;
|
|
174
177
|
requiredDate: string;
|
|
175
178
|
draft: boolean;
|
|
179
|
+
reasonMarkedPaid?: string;
|
|
176
180
|
}
|
|
177
181
|
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
|
|
178
182
|
draft?: boolean;
|
|
@@ -268,7 +272,6 @@ export interface PatientRecord {
|
|
|
268
272
|
addresses?: Address[];
|
|
269
273
|
healthInfo?: HealthInfo;
|
|
270
274
|
reminderEnabled?: boolean;
|
|
271
|
-
scripts?: Script[];
|
|
272
275
|
orderHistory?: Order[];
|
|
273
276
|
animalSpecies?: string;
|
|
274
277
|
relationship?: string | null;
|
|
@@ -280,6 +283,9 @@ export type PatientRecordCreate = Partial<PatientRecord> & {
|
|
|
280
283
|
email: string;
|
|
281
284
|
phone: string;
|
|
282
285
|
};
|
|
286
|
+
export type PatientRecordUpdate = Partial<PatientRecord> & {
|
|
287
|
+
id: number;
|
|
288
|
+
};
|
|
283
289
|
export interface PriceMatch {
|
|
284
290
|
id: number;
|
|
285
291
|
partnerPharmacyProfileId: number;
|
|
@@ -670,6 +676,9 @@ export declare const ApiRoutes: {
|
|
|
670
676
|
email: {
|
|
671
677
|
contactFormInternal: string;
|
|
672
678
|
};
|
|
679
|
+
notifications: {
|
|
680
|
+
createPaymentLink: string;
|
|
681
|
+
};
|
|
673
682
|
orders: {
|
|
674
683
|
list: (filters?: {
|
|
675
684
|
partnerPharmacyProfileId?: number;
|
package/build/validators.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
//#region Enum value arrays ──────────────────────────────────────────────────────────
|
|
2
|
-
export const orderFulfillmentValues = [
|
|
2
|
+
export const orderFulfillmentValues = [
|
|
3
|
+
'PICKUP',
|
|
4
|
+
'POST',
|
|
5
|
+
'COURIER',
|
|
6
|
+
'DELIVER',
|
|
7
|
+
];
|
|
3
8
|
export const orderStatusValues = [
|
|
4
9
|
'RECEIVED',
|
|
5
10
|
'PROCESSING',
|
|
@@ -181,6 +186,9 @@ export const ApiRoutes = {
|
|
|
181
186
|
email: {
|
|
182
187
|
contactFormInternal: '/api/emails/contact-requests',
|
|
183
188
|
},
|
|
189
|
+
notifications: {
|
|
190
|
+
createPaymentLink: '/api/notifications/payment-links',
|
|
191
|
+
},
|
|
184
192
|
orders: {
|
|
185
193
|
list: (filters) => {
|
|
186
194
|
const params = new URLSearchParams();
|