@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.
@@ -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?: number, type?: "partner" | "direct") => string;
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;
@@ -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, type) => '/api/patient-records' + `${type ? '?' + type + '=' + 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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",