@natch-the-storage/heathershaw-platform-types 1.8.4 → 1.9.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 +16 -4
- package/build/validators.js +7 -4
- 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;
|
|
@@ -232,9 +237,9 @@ export interface PatientRecord {
|
|
|
232
237
|
userId?: string | null;
|
|
233
238
|
firstName: string;
|
|
234
239
|
lastName: string;
|
|
235
|
-
dateOfBirth
|
|
240
|
+
dateOfBirth: string;
|
|
236
241
|
medicareNumber?: string | null;
|
|
237
|
-
phone
|
|
242
|
+
phone: string;
|
|
238
243
|
addresses?: Address[];
|
|
239
244
|
healthInfo?: HealthInfo;
|
|
240
245
|
reminderEnabled?: boolean;
|
|
@@ -363,11 +368,15 @@ export interface PaperScriptCreate {
|
|
|
363
368
|
}
|
|
364
369
|
export interface Cart {
|
|
365
370
|
id: number;
|
|
371
|
+
directUserProfileId?: number;
|
|
372
|
+
partnerPharmacyProfileId?: number;
|
|
366
373
|
items: LineItem[];
|
|
367
374
|
updatedAt: Date;
|
|
368
375
|
}
|
|
369
376
|
export interface CartUpdate {
|
|
370
377
|
id: number;
|
|
378
|
+
directUserProfileId?: number;
|
|
379
|
+
partnerPharmacyProfileId?: number;
|
|
371
380
|
items: LineItem[];
|
|
372
381
|
}
|
|
373
382
|
export declare const CompoundDirectAnimalId: {
|
|
@@ -695,6 +704,7 @@ export declare const ApiRoutes: {
|
|
|
695
704
|
create: string;
|
|
696
705
|
update: string;
|
|
697
706
|
delete: (id: number) => string;
|
|
707
|
+
getReportData: (id: number) => string;
|
|
698
708
|
};
|
|
699
709
|
users: {
|
|
700
710
|
data: (userId: string) => string;
|
|
@@ -711,9 +721,11 @@ export declare const ApiRoutes: {
|
|
|
711
721
|
contactFormInternal: string;
|
|
712
722
|
};
|
|
713
723
|
cart: {
|
|
714
|
-
|
|
724
|
+
getByDirectUser: (id: number) => string;
|
|
725
|
+
getByPartnerPharmacy: (id: number) => string;
|
|
715
726
|
put: string;
|
|
716
|
-
|
|
727
|
+
deleteByDirectUser: (id: number) => string;
|
|
728
|
+
deleteByPartnerPharmacy: (id: number) => string;
|
|
717
729
|
};
|
|
718
730
|
compoundDirect: {
|
|
719
731
|
searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => 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}`,
|
|
@@ -183,9 +184,11 @@ export const ApiRoutes = {
|
|
|
183
184
|
contactFormInternal: '/api/emails/contact-requests',
|
|
184
185
|
},
|
|
185
186
|
cart: {
|
|
186
|
-
|
|
187
|
+
getByDirectUser: (id) => `/api/carts/direct-users/${id}`,
|
|
188
|
+
getByPartnerPharmacy: (id) => `/api/carts/partner-pharmacies/${id}`,
|
|
187
189
|
put: '/api/carts',
|
|
188
|
-
|
|
190
|
+
deleteByDirectUser: (id) => `/api/carts/direct-users/${id}`,
|
|
191
|
+
deleteByPartnerPharmacy: (id) => `/api/carts/partner-pharmacies/${id}`,
|
|
189
192
|
},
|
|
190
193
|
compoundDirect: {
|
|
191
194
|
searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
|