@natch-the-storage/heathershaw-platform-types 1.16.10 → 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.
@@ -329,6 +329,20 @@ export type PatientRecordConsent = Pick<PatientRecord, 'id' | 'firstName' | 'las
329
329
  phoneNumber?: string;
330
330
  email?: string;
331
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
+ }
332
346
  export interface PriceMatch {
333
347
  id: number;
334
348
  partnerPharmacyProfileId: number;
@@ -943,10 +957,9 @@ export declare const ApiRoutes: {
943
957
  create: string;
944
958
  update: string;
945
959
  delete: (id: number) => string;
946
- consent: string;
947
- activate: string;
948
- isActive: (id: number) => string;
949
- declineConsent: string;
960
+ authorisationNotification: string;
961
+ getAuthorisationData: (token: string) => string;
962
+ handleAuthorisation: (token: string) => string;
950
963
  };
951
964
  priceMatches: {
952
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.10",
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",