@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.
- package/build/validators.d.ts +17 -4
- package/build/validators.js +3 -4
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -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
|
-
|
|
947
|
-
|
|
948
|
-
|
|
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?: {
|
package/build/validators.js
CHANGED
|
@@ -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
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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)}`,
|