@natch-the-storage/heathershaw-platform-types 1.15.10 → 1.15.12
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 +9 -1
- package/build/validators.js +1 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -296,11 +296,18 @@ export interface PatientRecord {
|
|
|
296
296
|
orderHistory?: Order[];
|
|
297
297
|
animalSpecies?: string;
|
|
298
298
|
relationship?: string | null;
|
|
299
|
+
active: boolean;
|
|
299
300
|
}
|
|
300
|
-
export type PatientRecordCreate = Omit<PatientRecord, 'id'
|
|
301
|
+
export type PatientRecordCreate = Omit<PatientRecord, 'id' | 'active'> & {
|
|
302
|
+
active?: boolean;
|
|
303
|
+
};
|
|
301
304
|
export type PatientRecordUpdate = Partial<PatientRecord> & {
|
|
302
305
|
id: number;
|
|
303
306
|
};
|
|
307
|
+
export type PatientRecordConsent = Pick<PatientRecord, 'id' | 'firstName' | 'lastName' | 'relationship'> & {
|
|
308
|
+
phoneNumber?: string;
|
|
309
|
+
email?: string;
|
|
310
|
+
};
|
|
304
311
|
export interface PriceMatch {
|
|
305
312
|
id: number;
|
|
306
313
|
partnerPharmacyProfileId: number;
|
|
@@ -912,6 +919,7 @@ export declare const ApiRoutes: {
|
|
|
912
919
|
create: string;
|
|
913
920
|
update: string;
|
|
914
921
|
delete: (id: number) => string;
|
|
922
|
+
consent: string;
|
|
915
923
|
};
|
|
916
924
|
priceMatches: {
|
|
917
925
|
list: (filters?: {
|
package/build/validators.js
CHANGED
|
@@ -304,6 +304,7 @@ export const ApiRoutes = {
|
|
|
304
304
|
create: '/api/patient-records',
|
|
305
305
|
update: '/api/patient-records',
|
|
306
306
|
delete: (id) => `/api/patient-records/${id}`,
|
|
307
|
+
consent: '/api/notifications/patient-records',
|
|
307
308
|
},
|
|
308
309
|
priceMatches: {
|
|
309
310
|
list: (filters) => `/api/price-matches${handleParams(filters)}`,
|