@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.
- package/build/validators.d.ts +6 -0
- package/build/validators.js +3 -2
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -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;
|
package/build/validators.js
CHANGED
|
@@ -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/
|
|
157
|
-
getOrders: (userId) => `/api/profiles/direct-users/
|
|
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}`,
|