@natch-the-storage/heathershaw-platform-types 1.23.20 → 1.24.1
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 +30 -0
- package/build/validators.js +3 -0
- 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' | 'pricingId'>;
|
|
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;
|
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/pharmacies',
|
|
462
|
+
importPatients: '/api/admin/imports/patients',
|
|
460
463
|
},
|
|
461
464
|
cart: {
|
|
462
465
|
getByDirectUser: (id) => `/api/carts/direct-users/${id}`,
|