@natch-the-storage/heathershaw-platform-types 1.5.0 → 1.5.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 +4 -104
- package/build/validators.js +1 -2
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -92,13 +92,11 @@ export interface Sms {
|
|
|
92
92
|
export interface DirectUserProfile {
|
|
93
93
|
id: number;
|
|
94
94
|
userId?: string;
|
|
95
|
-
compoundDirectId?: string | null;
|
|
96
95
|
remindersEnabled?: boolean;
|
|
97
96
|
scriptSubmissions?: ScriptSelect[];
|
|
98
97
|
}
|
|
99
98
|
export interface DirectUserProfileCreate {
|
|
100
99
|
userId: string;
|
|
101
|
-
compoundDirectId?: string | null;
|
|
102
100
|
remindersEnabled?: boolean;
|
|
103
101
|
scriptSubmissions?: ScriptSelect[];
|
|
104
102
|
}
|
|
@@ -191,6 +189,7 @@ export interface PatientRecord {
|
|
|
191
189
|
id: number;
|
|
192
190
|
partnerPharmacyProfileId?: number | null;
|
|
193
191
|
directUserProfileId?: number | null;
|
|
192
|
+
compoundDirectId?: number | null;
|
|
194
193
|
userId?: string | null;
|
|
195
194
|
firstName?: string;
|
|
196
195
|
lastName?: string;
|
|
@@ -212,6 +211,7 @@ export interface PatientRecordCreate {
|
|
|
212
211
|
phone: string;
|
|
213
212
|
partnerPharmacyProfileId?: number | null;
|
|
214
213
|
directUserProfileId?: number | null;
|
|
214
|
+
compoundDirectId?: number | null;
|
|
215
215
|
userId?: string | null;
|
|
216
216
|
medicareNumber?: string | null;
|
|
217
217
|
address?: Address[];
|
|
@@ -464,109 +464,9 @@ export interface CDCustomerCreate {
|
|
|
464
464
|
mobile: string;
|
|
465
465
|
email: string;
|
|
466
466
|
dateOfBirth: string;
|
|
467
|
-
animalSpecies
|
|
467
|
+
animalSpecies?: typeof AnimalSpeciesKeys;
|
|
468
|
+
animalOwnerName?: string;
|
|
468
469
|
}
|
|
469
|
-
export declare const apiRoutes: {
|
|
470
|
-
orders: {
|
|
471
|
-
list: string;
|
|
472
|
-
get: (id: number) => string;
|
|
473
|
-
create: string;
|
|
474
|
-
update: string;
|
|
475
|
-
delete: (id: number) => string;
|
|
476
|
-
};
|
|
477
|
-
patientRecords: {
|
|
478
|
-
list: string;
|
|
479
|
-
get: (id?: number, type?: "partner" | "direct") => string;
|
|
480
|
-
getByUser: (userId: string) => string;
|
|
481
|
-
create: string;
|
|
482
|
-
update: string;
|
|
483
|
-
delete: (id: number) => string;
|
|
484
|
-
};
|
|
485
|
-
prescribers: {
|
|
486
|
-
list: string;
|
|
487
|
-
get: (id: number) => string;
|
|
488
|
-
create: string;
|
|
489
|
-
update: string;
|
|
490
|
-
delete: (id: number) => string;
|
|
491
|
-
};
|
|
492
|
-
scripts: {
|
|
493
|
-
list: string;
|
|
494
|
-
get: (id: number) => string;
|
|
495
|
-
create: string;
|
|
496
|
-
update: string;
|
|
497
|
-
delete: (id: number) => string;
|
|
498
|
-
};
|
|
499
|
-
products: {
|
|
500
|
-
list: string;
|
|
501
|
-
get: (id: number) => string;
|
|
502
|
-
create: string;
|
|
503
|
-
update: string;
|
|
504
|
-
delete: (id: number) => string;
|
|
505
|
-
};
|
|
506
|
-
quotes: {
|
|
507
|
-
list: string;
|
|
508
|
-
get: (id: number) => string;
|
|
509
|
-
create: string;
|
|
510
|
-
update: string;
|
|
511
|
-
delete: (id: number) => string;
|
|
512
|
-
};
|
|
513
|
-
paperScriptReminders: {
|
|
514
|
-
list: string;
|
|
515
|
-
get: (id: number) => string;
|
|
516
|
-
create: string;
|
|
517
|
-
update: string;
|
|
518
|
-
delete: (id: number) => string;
|
|
519
|
-
};
|
|
520
|
-
repeatReminders: {
|
|
521
|
-
list: string;
|
|
522
|
-
get: (id: number) => string;
|
|
523
|
-
history: (id: number) => string;
|
|
524
|
-
create: string;
|
|
525
|
-
update: string;
|
|
526
|
-
delete: (id: number) => string;
|
|
527
|
-
};
|
|
528
|
-
priceMatches: {
|
|
529
|
-
list: string;
|
|
530
|
-
get: (id: number) => string;
|
|
531
|
-
create: string;
|
|
532
|
-
update: string;
|
|
533
|
-
delete: (id: number) => string;
|
|
534
|
-
};
|
|
535
|
-
directUserProfiles: {
|
|
536
|
-
list: string;
|
|
537
|
-
get: (id: number) => string;
|
|
538
|
-
getByUser: (userId: string) => string;
|
|
539
|
-
create: string;
|
|
540
|
-
onboard: (userId: string) => string;
|
|
541
|
-
update: string;
|
|
542
|
-
delete: (id: number) => string;
|
|
543
|
-
};
|
|
544
|
-
partnerPharmacyProfiles: {
|
|
545
|
-
list: string;
|
|
546
|
-
get: (id: number) => string;
|
|
547
|
-
getByUser: (userId: string) => string;
|
|
548
|
-
create: string;
|
|
549
|
-
update: string;
|
|
550
|
-
delete: (id: number) => string;
|
|
551
|
-
};
|
|
552
|
-
users: {
|
|
553
|
-
data: (userId: string) => string;
|
|
554
|
-
};
|
|
555
|
-
uploads: {
|
|
556
|
-
presign: string;
|
|
557
|
-
delete: string;
|
|
558
|
-
};
|
|
559
|
-
sms: {
|
|
560
|
-
twilioStatus: string;
|
|
561
|
-
send: string;
|
|
562
|
-
};
|
|
563
|
-
email: {};
|
|
564
|
-
compoundDirect: {
|
|
565
|
-
searchForCustomer: string;
|
|
566
|
-
createCustomer: string;
|
|
567
|
-
getDraftScripts: string;
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
470
|
export declare const ApiRoutes: {
|
|
571
471
|
orders: {
|
|
572
472
|
list: string;
|
package/build/validators.js
CHANGED
|
@@ -52,7 +52,7 @@ export const CompoundDirectAnimalId = {
|
|
|
52
52
|
monkey: { id: 24, name: 'Monkey' },
|
|
53
53
|
};
|
|
54
54
|
export const AnimalSpeciesKeys = Object.keys(CompoundDirectAnimalId);
|
|
55
|
-
export const
|
|
55
|
+
export const ApiRoutes = {
|
|
56
56
|
orders: {
|
|
57
57
|
list: "/api/orders",
|
|
58
58
|
get: (id) => `/api/orders/${id}`,
|
|
@@ -153,4 +153,3 @@ export const apiRoutes = {
|
|
|
153
153
|
getDraftScripts: "/api/compound-direct/draft-scripts/customers"
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
|
-
export const ApiRoutes = apiRoutes;
|