@natch-the-storage/heathershaw-platform-types 1.8.4 → 1.8.5

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.
@@ -224,6 +224,11 @@ export interface PartnerPharmacyProfileCreate {
224
224
  orders?: unknown;
225
225
  xeroContactId?: string | null;
226
226
  }
227
+ export interface PartnerPharmacyProfileReportData {
228
+ orderCount: number;
229
+ patientRecordCount: number;
230
+ awaitingPatientPayment: number;
231
+ }
227
232
  export interface PatientRecord {
228
233
  id: number;
229
234
  partnerPharmacyProfileId?: number | null;
@@ -695,6 +700,7 @@ export declare const ApiRoutes: {
695
700
  create: string;
696
701
  update: string;
697
702
  delete: (id: number) => string;
703
+ getReportData: (id: number) => string;
698
704
  };
699
705
  users: {
700
706
  data: (userId: string) => string;
@@ -153,8 +153,8 @@ export const ApiRoutes = {
153
153
  directUserProfiles: {
154
154
  list: '/api/profiles/direct-users',
155
155
  get: (id) => `/api/profiles/direct-users/${id}`,
156
- getByUser: (userId) => `/api/profiles/direct-users/user/${userId}`,
157
- getOrders: (userId) => `/api/profiles/direct-users/user/${userId}/orders`,
156
+ getByUser: (userId) => `/api/profiles/direct-users/users/${userId}`,
157
+ getOrders: (userId) => `/api/profiles/direct-users/users/${userId}/orders`,
158
158
  create: '/api/profiles/direct-users',
159
159
  onboard: (userId) => `/api/profiles/direct-users/${userId}`,
160
160
  update: '/api/profiles/direct-users',
@@ -167,6 +167,7 @@ export const ApiRoutes = {
167
167
  create: '/api/profiles/partner-pharmacies',
168
168
  update: '/api/profiles/partner-pharmacies',
169
169
  delete: (id) => `/api/profiles/partner-pharmacies/${id}`,
170
+ getReportData: (id) => `/api/profiles/partner-pharmacies/${id}/reports`,
170
171
  },
171
172
  users: {
172
173
  data: (userId) => `/api/users/data/${userId}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",