@natch-the-storage/heathershaw-platform-types 1.16.9 → 1.17.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.
@@ -307,6 +307,7 @@ export interface PatientRecord {
307
307
  lastName: string;
308
308
  dateOfBirth: string;
309
309
  medicareNumber?: string;
310
+ medicareIrn?: string;
310
311
  email: string;
311
312
  phoneNumber: string;
312
313
  addresses: Address[];
@@ -328,6 +329,20 @@ export type PatientRecordConsent = Pick<PatientRecord, 'id' | 'firstName' | 'las
328
329
  phoneNumber?: string;
329
330
  email?: string;
330
331
  };
332
+ export interface PatientRecordAuthorisationData {
333
+ owner: {
334
+ id: number;
335
+ firstName: string;
336
+ lastName: string;
337
+ };
338
+ subaccount: {
339
+ id: number;
340
+ firstName: string;
341
+ };
342
+ }
343
+ export interface PatientRecordHandleAuthorisationBody {
344
+ rejected: boolean;
345
+ }
331
346
  export interface PriceMatch {
332
347
  id: number;
333
348
  partnerPharmacyProfileId: number;
@@ -942,10 +957,9 @@ export declare const ApiRoutes: {
942
957
  create: string;
943
958
  update: string;
944
959
  delete: (id: number) => string;
945
- consent: string;
946
- activate: string;
947
- isActive: (id: number) => string;
948
- declineConsent: string;
960
+ authorisationNotification: string;
961
+ getAuthorisationData: (token: string) => string;
962
+ handleAuthorisation: (token: string) => string;
949
963
  };
950
964
  priceMatches: {
951
965
  list: (filters?: {
@@ -324,10 +324,9 @@ export const ApiRoutes = {
324
324
  create: '/api/patient-records',
325
325
  update: '/api/patient-records',
326
326
  delete: (id) => `/api/patient-records/${id}`,
327
- consent: '/api/notifications/patient-records',
328
- activate: '/api/patient-records/activate',
329
- isActive: (id) => `/api/patient-records/${id}/active`,
330
- declineConsent: '/api/patient-records/decline-consent',
327
+ authorisationNotification: '/api/notifications/patient-records',
328
+ getAuthorisationData: (token) => `/api/patient-records/authorisation-tokens/${token}`,
329
+ handleAuthorisation: (token) => `/api/patient-records/authorisation-tokens/${token}`,
331
330
  },
332
331
  priceMatches: {
333
332
  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.16.9",
3
+ "version": "1.17.0",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",