@natch-the-storage/heathershaw-platform-types 1.5.2 → 1.6.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 +27 -56
- package/build/validators.js +3 -9
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -25,12 +25,6 @@ export interface Address {
|
|
|
25
25
|
addressName?: string;
|
|
26
26
|
defaultAddress?: boolean;
|
|
27
27
|
}
|
|
28
|
-
export interface PrescriberSelect {
|
|
29
|
-
id: number;
|
|
30
|
-
name: string;
|
|
31
|
-
email: string;
|
|
32
|
-
phone: string;
|
|
33
|
-
}
|
|
34
28
|
export interface HealthInfo {
|
|
35
29
|
medicationFor?: string;
|
|
36
30
|
pregnantOrBreastfeeding: boolean;
|
|
@@ -43,16 +37,11 @@ export interface HealthInfo {
|
|
|
43
37
|
}
|
|
44
38
|
export interface ScriptSelect {
|
|
45
39
|
id: number;
|
|
46
|
-
prescriberId: number;
|
|
47
40
|
patientRecordId: number;
|
|
48
|
-
|
|
49
|
-
dateIssued: string;
|
|
41
|
+
uploaded: string;
|
|
50
42
|
processed: boolean;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
repeatStorage: RepeatStorage;
|
|
54
|
-
compoundDirectId: string | null;
|
|
55
|
-
imageKey: string | null;
|
|
43
|
+
token?: string | null;
|
|
44
|
+
fileKey?: string | null;
|
|
56
45
|
}
|
|
57
46
|
export interface OrderSelect {
|
|
58
47
|
id: number;
|
|
@@ -93,12 +82,10 @@ export interface DirectUserProfile {
|
|
|
93
82
|
id: number;
|
|
94
83
|
userId?: string;
|
|
95
84
|
remindersEnabled?: boolean;
|
|
96
|
-
scriptSubmissions?: ScriptSelect[];
|
|
97
85
|
}
|
|
98
86
|
export interface DirectUserProfileCreate {
|
|
99
87
|
userId: string;
|
|
100
88
|
remindersEnabled?: boolean;
|
|
101
|
-
scriptSubmissions?: ScriptSelect[];
|
|
102
89
|
}
|
|
103
90
|
export interface Order {
|
|
104
91
|
id: number;
|
|
@@ -222,17 +209,6 @@ export interface PatientRecordCreate {
|
|
|
222
209
|
animalSpecies?: string;
|
|
223
210
|
relationship?: string | null;
|
|
224
211
|
}
|
|
225
|
-
export interface Prescriber {
|
|
226
|
-
id: number;
|
|
227
|
-
name?: string;
|
|
228
|
-
email?: string;
|
|
229
|
-
phone?: string;
|
|
230
|
-
}
|
|
231
|
-
export interface PrescriberCreate {
|
|
232
|
-
name: string;
|
|
233
|
-
email: string;
|
|
234
|
-
phone: string;
|
|
235
|
-
}
|
|
236
212
|
export interface PriceMatch {
|
|
237
213
|
id: number;
|
|
238
214
|
partnerPharmacyProfileId?: number;
|
|
@@ -313,28 +289,23 @@ export interface RepeatReminderCreate {
|
|
|
313
289
|
}
|
|
314
290
|
export interface Script {
|
|
315
291
|
id: number;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
repeatsRemaining?: number;
|
|
322
|
-
daysSupply?: number;
|
|
323
|
-
repeatStorage?: RepeatStorage;
|
|
324
|
-
compoundDirectId?: string | null;
|
|
325
|
-
imageKey?: string | null;
|
|
292
|
+
patientRecordId: number;
|
|
293
|
+
uploaded: string;
|
|
294
|
+
processed: boolean;
|
|
295
|
+
token?: string | null;
|
|
296
|
+
fileKey?: string | null;
|
|
326
297
|
}
|
|
327
|
-
export interface
|
|
328
|
-
prescriberId: number;
|
|
298
|
+
export interface EScriptCreate {
|
|
329
299
|
patientRecordId: number;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
300
|
+
uploaded: string;
|
|
301
|
+
token: string;
|
|
302
|
+
}
|
|
303
|
+
export interface PaperScriptCreate {
|
|
304
|
+
patientRecordId: number;
|
|
305
|
+
uploaded: string;
|
|
306
|
+
filename: string;
|
|
307
|
+
contentType: string;
|
|
308
|
+
folder: string;
|
|
338
309
|
}
|
|
339
310
|
export declare const CompoundDirectAnimalId: {
|
|
340
311
|
readonly dog: {
|
|
@@ -467,6 +438,12 @@ export interface CDCustomerCreate {
|
|
|
467
438
|
animalSpecies?: typeof AnimalSpeciesKeys;
|
|
468
439
|
animalOwnerName?: string;
|
|
469
440
|
}
|
|
441
|
+
export interface CDCustomerSearch {
|
|
442
|
+
name: string;
|
|
443
|
+
dateOfBirth: string;
|
|
444
|
+
email: string;
|
|
445
|
+
phone: string;
|
|
446
|
+
}
|
|
470
447
|
export declare const ApiRoutes: {
|
|
471
448
|
orders: {
|
|
472
449
|
list: string;
|
|
@@ -483,17 +460,11 @@ export declare const ApiRoutes: {
|
|
|
483
460
|
update: string;
|
|
484
461
|
delete: (id: number) => string;
|
|
485
462
|
};
|
|
486
|
-
prescribers: {
|
|
487
|
-
list: string;
|
|
488
|
-
get: (id: number) => string;
|
|
489
|
-
create: string;
|
|
490
|
-
update: string;
|
|
491
|
-
delete: (id: number) => string;
|
|
492
|
-
};
|
|
493
463
|
scripts: {
|
|
494
464
|
list: string;
|
|
495
465
|
get: (id: number) => string;
|
|
496
|
-
|
|
466
|
+
createEscript: string;
|
|
467
|
+
createPaperScript: string;
|
|
497
468
|
update: string;
|
|
498
469
|
delete: (id: number) => string;
|
|
499
470
|
};
|
|
@@ -563,7 +534,7 @@ export declare const ApiRoutes: {
|
|
|
563
534
|
};
|
|
564
535
|
email: {};
|
|
565
536
|
compoundDirect: {
|
|
566
|
-
|
|
537
|
+
searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
|
|
567
538
|
createCustomer: string;
|
|
568
539
|
getDraftScripts: string;
|
|
569
540
|
};
|
package/build/validators.js
CHANGED
|
@@ -68,17 +68,11 @@ export const ApiRoutes = {
|
|
|
68
68
|
update: "/api/patient-records",
|
|
69
69
|
delete: (id) => `/api/patient-records/${id}`,
|
|
70
70
|
},
|
|
71
|
-
prescribers: {
|
|
72
|
-
list: "/api/prescribers",
|
|
73
|
-
get: (id) => `/api/prescribers/${id}`,
|
|
74
|
-
create: "/api/prescribers",
|
|
75
|
-
update: "/api/prescribers",
|
|
76
|
-
delete: (id) => `/api/prescribers/${id}`,
|
|
77
|
-
},
|
|
78
71
|
scripts: {
|
|
79
72
|
list: "/api/scripts",
|
|
80
73
|
get: (id) => `/api/scripts/${id}`,
|
|
81
|
-
|
|
74
|
+
createEscript: "/api/scripts/escripts",
|
|
75
|
+
createPaperScript: "/api/scripts/paper-scripts",
|
|
82
76
|
update: "/api/scripts",
|
|
83
77
|
delete: (id) => `/api/scripts/${id}`,
|
|
84
78
|
},
|
|
@@ -148,7 +142,7 @@ export const ApiRoutes = {
|
|
|
148
142
|
},
|
|
149
143
|
email: {},
|
|
150
144
|
compoundDirect: {
|
|
151
|
-
|
|
145
|
+
searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
|
|
152
146
|
createCustomer: "/api/compound-direct/customer",
|
|
153
147
|
getDraftScripts: "/api/compound-direct/draft-scripts/customers"
|
|
154
148
|
}
|