@natch-the-storage/heathershaw-platform-types 1.8.1 → 1.8.2
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 +2 -2
- package/build/validators.js +2 -2
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -580,8 +580,8 @@ export declare const ApiRoutes: {
|
|
|
580
580
|
delete: (id: number) => string;
|
|
581
581
|
};
|
|
582
582
|
patientRecords: {
|
|
583
|
-
list: string;
|
|
584
|
-
get: (id
|
|
583
|
+
list: (id?: number, type?: "partner" | "direct") => string;
|
|
584
|
+
get: (id: number) => string;
|
|
585
585
|
getByUser: (userId: string) => string;
|
|
586
586
|
create: string;
|
|
587
587
|
update: string;
|
package/build/validators.js
CHANGED
|
@@ -98,8 +98,8 @@ export const ApiRoutes = {
|
|
|
98
98
|
delete: (id) => `/api/orders/${id}`,
|
|
99
99
|
},
|
|
100
100
|
patientRecords: {
|
|
101
|
-
list: '/api/patient-records'
|
|
102
|
-
get: (id
|
|
101
|
+
list: (id, type) => '/api/patient-records' + `${type ? '?' + type + '=' + id : ''}`,
|
|
102
|
+
get: (id) => `/api/patient-records/${id}`,
|
|
103
103
|
getByUser: (userId) => `/api/patient-records/user/${userId}`,
|
|
104
104
|
create: '/api/patient-records',
|
|
105
105
|
update: '/api/patient-records',
|