@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.
@@ -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?: {
@@ -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)}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.15.10",
3
+ "version": "1.15.12",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",