@natch-the-storage/heathershaw-platform-types 1.23.19 → 1.24.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 +31 -1
- package/build/validators.js +4 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -257,6 +257,33 @@ export type AdminImportPatient = Partial<Omit<HealthInfo, 'updated'>> & {
|
|
|
257
257
|
isAnimal?: boolean;
|
|
258
258
|
animalSpecies?: AnimalSpecies;
|
|
259
259
|
};
|
|
260
|
+
/** Import CSV structure for importPriceMatches route */
|
|
261
|
+
export type AdminImportPriceMatch = Omit<PriceMatchCreate, 'fileKey'>;
|
|
262
|
+
/** Import CSV structure for importPharmacies route */
|
|
263
|
+
export type AdminImportPharmacy = Omit<PartnerPharmacyProfileCreate, 'userId' | 'addresses' | 'xeroInvoicePrefix' | 'remindersEnabled'> & {
|
|
264
|
+
email: string;
|
|
265
|
+
street: string;
|
|
266
|
+
suburb: string;
|
|
267
|
+
state: string;
|
|
268
|
+
postcode: string;
|
|
269
|
+
};
|
|
270
|
+
/** Import CSV structure for importPatients route */
|
|
271
|
+
export type AdminImportAnyPatient = Partial<Omit<HealthInfo, 'updated'>> & {
|
|
272
|
+
partnerPharmacyProfileId?: number;
|
|
273
|
+
compoundDirectId: number;
|
|
274
|
+
firstName: string;
|
|
275
|
+
lastName: string;
|
|
276
|
+
dateOfBirth: string;
|
|
277
|
+
street: string;
|
|
278
|
+
suburb: string;
|
|
279
|
+
state: string;
|
|
280
|
+
postcode: string;
|
|
281
|
+
phone?: string;
|
|
282
|
+
email?: string;
|
|
283
|
+
mobilePhone?: string;
|
|
284
|
+
isAnimal?: boolean;
|
|
285
|
+
animalSpecies?: AnimalSpecies;
|
|
286
|
+
};
|
|
260
287
|
export interface User {
|
|
261
288
|
id: string;
|
|
262
289
|
name: string;
|
|
@@ -1284,6 +1311,9 @@ export declare const ApiRoutes: {
|
|
|
1284
1311
|
getDashboardData: string;
|
|
1285
1312
|
importDirectUsersCsv: string;
|
|
1286
1313
|
importPartnerPharmacyPatientsCsv: string;
|
|
1314
|
+
importPriceMatches: string;
|
|
1315
|
+
importPharmacies: string;
|
|
1316
|
+
importPatients: string;
|
|
1287
1317
|
};
|
|
1288
1318
|
cart: {
|
|
1289
1319
|
getByDirectUser: (id: number) => string;
|
|
@@ -1315,7 +1345,7 @@ export declare const ApiRoutes: {
|
|
|
1315
1345
|
get: (id: number) => string;
|
|
1316
1346
|
getByUser: (userId: string) => string;
|
|
1317
1347
|
create: string;
|
|
1318
|
-
onboard:
|
|
1348
|
+
onboard: string;
|
|
1319
1349
|
invite: (userId: string) => string;
|
|
1320
1350
|
update: string;
|
|
1321
1351
|
delete: (id: number) => string;
|
package/build/validators.js
CHANGED
|
@@ -457,6 +457,9 @@ export const ApiRoutes = {
|
|
|
457
457
|
getDashboardData: '/api/admin/dashboard-data',
|
|
458
458
|
importDirectUsersCsv: '/api/admin/import-direct-users',
|
|
459
459
|
importPartnerPharmacyPatientsCsv: '/api/admin/import-partner-patients',
|
|
460
|
+
importPriceMatches: '/api/admin/imports/price-matches',
|
|
461
|
+
importPharmacies: '/api/admin/imports/partners',
|
|
462
|
+
importPatients: '/api/admin/imports/patients',
|
|
460
463
|
},
|
|
461
464
|
cart: {
|
|
462
465
|
getByDirectUser: (id) => `/api/carts/direct-users/${id}`,
|
|
@@ -488,7 +491,7 @@ export const ApiRoutes = {
|
|
|
488
491
|
get: (id) => `/api/profiles/direct-users/${id}`,
|
|
489
492
|
getByUser: (userId) => `/api/profiles/direct-users/users/${userId}`,
|
|
490
493
|
create: '/api/profiles/direct-users',
|
|
491
|
-
onboard:
|
|
494
|
+
onboard: '/api/profiles/direct-users/onboard',
|
|
492
495
|
invite: (userId) => `/api/profiles/direct-users/invites/${userId}`,
|
|
493
496
|
update: '/api/profiles/direct-users',
|
|
494
497
|
delete: (id) => `/api/profiles/direct-users/${id}`,
|