@natch-the-storage/heathershaw-platform-types 1.23.14 → 1.23.16
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 +38 -30
- package/build/validators.js +26 -25
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -241,19 +241,25 @@ export interface AdminDashboardData {
|
|
|
241
241
|
unprocessedScripts: DashboardData;
|
|
242
242
|
unprocessedPaperScripts: DashboardData;
|
|
243
243
|
}
|
|
244
|
+
/** Used for the importDirectUsersCsv api route */
|
|
244
245
|
export type AdminImportDirectUser = Partial<Omit<HealthInfo, 'updated'>> & {
|
|
245
246
|
compoundDirectId: number;
|
|
246
247
|
firstName: string;
|
|
247
248
|
lastName: string;
|
|
248
249
|
dateOfBirth: string;
|
|
249
|
-
street
|
|
250
|
-
suburb
|
|
251
|
-
state
|
|
252
|
-
postcode
|
|
250
|
+
street: string;
|
|
251
|
+
suburb: string;
|
|
252
|
+
state: string;
|
|
253
|
+
postcode: string;
|
|
253
254
|
phone?: string;
|
|
254
255
|
email?: string;
|
|
255
256
|
mobilePhone?: string;
|
|
256
257
|
isAnimal?: boolean;
|
|
258
|
+
animalSpecies?: AnimalSpecies;
|
|
259
|
+
};
|
|
260
|
+
/** Used for the importPartnerPharmacyPatientsCsv api route */
|
|
261
|
+
export type AdminImportPartnerPatient = AdminImportDirectUser & {
|
|
262
|
+
partnerPharmacyProfileId: number;
|
|
257
263
|
};
|
|
258
264
|
export interface User {
|
|
259
265
|
id: string;
|
|
@@ -665,108 +671,109 @@ export declare const CDProductCategoriesIdLabel: {
|
|
|
665
671
|
label: CDProductCategoryLabel;
|
|
666
672
|
}[];
|
|
667
673
|
export declare const CompoundDirectAnimalId: {
|
|
668
|
-
readonly
|
|
674
|
+
readonly Dog: {
|
|
669
675
|
readonly id: 1;
|
|
670
676
|
readonly name: "Dog";
|
|
671
677
|
};
|
|
672
|
-
readonly
|
|
678
|
+
readonly Cat: {
|
|
673
679
|
readonly id: 2;
|
|
674
680
|
readonly name: "Cat";
|
|
675
681
|
};
|
|
676
|
-
readonly
|
|
682
|
+
readonly Fish: {
|
|
677
683
|
readonly id: 3;
|
|
678
684
|
readonly name: "Fish";
|
|
679
685
|
};
|
|
680
|
-
readonly
|
|
686
|
+
readonly Bird: {
|
|
681
687
|
readonly id: 4;
|
|
682
688
|
readonly name: "Bird";
|
|
683
689
|
};
|
|
684
|
-
readonly
|
|
690
|
+
readonly Rabbit: {
|
|
685
691
|
readonly id: 5;
|
|
686
692
|
readonly name: "Rabbit";
|
|
687
693
|
};
|
|
688
|
-
readonly
|
|
694
|
+
readonly Mouse: {
|
|
689
695
|
readonly id: 6;
|
|
690
696
|
readonly name: "Mouse";
|
|
691
697
|
};
|
|
692
|
-
readonly
|
|
698
|
+
readonly Guinea: {
|
|
693
699
|
readonly id: 7;
|
|
694
700
|
readonly name: "Guinea";
|
|
695
701
|
};
|
|
696
|
-
readonly
|
|
702
|
+
readonly Turtle: {
|
|
697
703
|
readonly id: 8;
|
|
698
704
|
readonly name: "Turtle";
|
|
699
705
|
};
|
|
700
|
-
readonly
|
|
706
|
+
readonly Horse: {
|
|
701
707
|
readonly id: 9;
|
|
702
708
|
readonly name: "Horse";
|
|
703
709
|
};
|
|
704
|
-
readonly
|
|
710
|
+
readonly Snake: {
|
|
705
711
|
readonly id: 10;
|
|
706
712
|
readonly name: "Snake";
|
|
707
713
|
};
|
|
708
|
-
readonly
|
|
714
|
+
readonly Ferret: {
|
|
709
715
|
readonly id: 11;
|
|
710
716
|
readonly name: "Ferret";
|
|
711
717
|
};
|
|
712
|
-
readonly
|
|
718
|
+
readonly Lizard: {
|
|
713
719
|
readonly id: 12;
|
|
714
720
|
readonly name: "Lizard";
|
|
715
721
|
};
|
|
716
|
-
readonly
|
|
722
|
+
readonly Rat: {
|
|
717
723
|
readonly id: 13;
|
|
718
724
|
readonly name: "Rat";
|
|
719
725
|
};
|
|
720
|
-
readonly
|
|
726
|
+
readonly Sheep: {
|
|
721
727
|
readonly id: 14;
|
|
722
728
|
readonly name: "Sheep";
|
|
723
729
|
};
|
|
724
|
-
readonly
|
|
730
|
+
readonly Cow: {
|
|
725
731
|
readonly id: 15;
|
|
726
732
|
readonly name: "Cow";
|
|
727
733
|
};
|
|
728
|
-
readonly
|
|
734
|
+
readonly Goat: {
|
|
729
735
|
readonly id: 16;
|
|
730
736
|
readonly name: "Goat";
|
|
731
737
|
};
|
|
732
|
-
readonly
|
|
738
|
+
readonly Donkey: {
|
|
733
739
|
readonly id: 17;
|
|
734
740
|
readonly name: "Donkey";
|
|
735
741
|
};
|
|
736
|
-
readonly
|
|
742
|
+
readonly Deer: {
|
|
737
743
|
readonly id: 18;
|
|
738
744
|
readonly name: "Deer";
|
|
739
745
|
};
|
|
740
|
-
readonly
|
|
746
|
+
readonly Pig: {
|
|
741
747
|
readonly id: 19;
|
|
742
748
|
readonly name: "Pig";
|
|
743
749
|
};
|
|
744
|
-
readonly
|
|
750
|
+
readonly Chicken: {
|
|
745
751
|
readonly id: 20;
|
|
746
752
|
readonly name: "Chicken";
|
|
747
753
|
};
|
|
748
|
-
readonly
|
|
754
|
+
readonly Goose: {
|
|
749
755
|
readonly id: 21;
|
|
750
756
|
readonly name: "Goose";
|
|
751
757
|
};
|
|
752
|
-
readonly
|
|
758
|
+
readonly Bee: {
|
|
753
759
|
readonly id: 22;
|
|
754
760
|
readonly name: "Bee";
|
|
755
761
|
};
|
|
756
|
-
readonly
|
|
762
|
+
readonly Koala: {
|
|
757
763
|
readonly id: 23;
|
|
758
764
|
readonly name: "Koala";
|
|
759
765
|
};
|
|
760
|
-
readonly
|
|
766
|
+
readonly Monkey: {
|
|
761
767
|
readonly id: 24;
|
|
762
768
|
readonly name: "Monkey";
|
|
763
769
|
};
|
|
764
|
-
readonly
|
|
770
|
+
readonly Other: {
|
|
765
771
|
readonly id: 25;
|
|
766
772
|
readonly name: "N/A";
|
|
767
773
|
};
|
|
768
774
|
};
|
|
769
775
|
export declare const AnimalSpeciesKeys: [keyof typeof CompoundDirectAnimalId, ...(keyof typeof CompoundDirectAnimalId)[]];
|
|
776
|
+
export type AnimalSpecies = (typeof AnimalSpeciesKeys)[number];
|
|
770
777
|
export interface CDEPrescription {
|
|
771
778
|
type: string;
|
|
772
779
|
/** If true, indicates this is an eRx script, if false or undefined, assume it is a paper script */
|
|
@@ -1090,7 +1097,7 @@ export interface CDCustomerCreate {
|
|
|
1090
1097
|
mobile: string;
|
|
1091
1098
|
email?: string;
|
|
1092
1099
|
dateOfBirth: string;
|
|
1093
|
-
animalSpecies?:
|
|
1100
|
+
animalSpecies?: AnimalSpecies;
|
|
1094
1101
|
animalOwnerName?: string;
|
|
1095
1102
|
}
|
|
1096
1103
|
/**
|
|
@@ -1280,6 +1287,7 @@ export declare const ApiRoutes: {
|
|
|
1280
1287
|
admin: {
|
|
1281
1288
|
getDashboardData: string;
|
|
1282
1289
|
importDirectUsersCsv: string;
|
|
1290
|
+
importPartnerPharmacyPatientsCsv: string;
|
|
1283
1291
|
};
|
|
1284
1292
|
cart: {
|
|
1285
1293
|
getByDirectUser: (id: number) => string;
|
package/build/validators.js
CHANGED
|
@@ -354,31 +354,31 @@ export const CDProductCategoriesIdLabel = cDProductCategoryIdValues.map((v, i) =
|
|
|
354
354
|
return { id: v, label: cDProductCategoryLabelValues[i] };
|
|
355
355
|
});
|
|
356
356
|
export const CompoundDirectAnimalId = {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
357
|
+
Dog: { id: 1, name: 'Dog' },
|
|
358
|
+
Cat: { id: 2, name: 'Cat' },
|
|
359
|
+
Fish: { id: 3, name: 'Fish' },
|
|
360
|
+
Bird: { id: 4, name: 'Bird' },
|
|
361
|
+
Rabbit: { id: 5, name: 'Rabbit' },
|
|
362
|
+
Mouse: { id: 6, name: 'Mouse' },
|
|
363
|
+
Guinea: { id: 7, name: 'Guinea' },
|
|
364
|
+
Turtle: { id: 8, name: 'Turtle' },
|
|
365
|
+
Horse: { id: 9, name: 'Horse' },
|
|
366
|
+
Snake: { id: 10, name: 'Snake' },
|
|
367
|
+
Ferret: { id: 11, name: 'Ferret' },
|
|
368
|
+
Lizard: { id: 12, name: 'Lizard' },
|
|
369
|
+
Rat: { id: 13, name: 'Rat' },
|
|
370
|
+
Sheep: { id: 14, name: 'Sheep' },
|
|
371
|
+
Cow: { id: 15, name: 'Cow' },
|
|
372
|
+
Goat: { id: 16, name: 'Goat' },
|
|
373
|
+
Donkey: { id: 17, name: 'Donkey' },
|
|
374
|
+
Deer: { id: 18, name: 'Deer' },
|
|
375
|
+
Pig: { id: 19, name: 'Pig' },
|
|
376
|
+
Chicken: { id: 20, name: 'Chicken' },
|
|
377
|
+
Goose: { id: 21, name: 'Goose' },
|
|
378
|
+
Bee: { id: 22, name: 'Bee' },
|
|
379
|
+
Koala: { id: 23, name: 'Koala' },
|
|
380
|
+
Monkey: { id: 24, name: 'Monkey' },
|
|
381
|
+
Other: { id: 25, name: 'N/A' },
|
|
382
382
|
};
|
|
383
383
|
export const AnimalSpeciesKeys = Object.keys(CompoundDirectAnimalId);
|
|
384
384
|
export const CDProductForms = [
|
|
@@ -456,6 +456,7 @@ export const ApiRoutes = {
|
|
|
456
456
|
admin: {
|
|
457
457
|
getDashboardData: '/api/admin/dashboard-data',
|
|
458
458
|
importDirectUsersCsv: '/api/admin/import-direct-users',
|
|
459
|
+
importPartnerPharmacyPatientsCsv: '/api/admin/import-partner-patients',
|
|
459
460
|
},
|
|
460
461
|
cart: {
|
|
461
462
|
getByDirectUser: (id) => `/api/carts/direct-users/${id}`,
|