@natch-the-storage/heathershaw-platform-types 1.23.11 → 1.23.13

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.
@@ -241,6 +241,20 @@ export interface AdminDashboardData {
241
241
  unprocessedScripts: DashboardData;
242
242
  unprocessedPaperScripts: DashboardData;
243
243
  }
244
+ export type AdminImportDirectUser = Partial<HealthInfo> & {
245
+ compoundDirectId: number;
246
+ firstName: string;
247
+ lastName: string;
248
+ dateOfBirth: string;
249
+ street?: string;
250
+ suburb?: string;
251
+ state?: string;
252
+ postcode?: string;
253
+ phone?: string;
254
+ email?: string;
255
+ mobilePhone?: string;
256
+ isAnimal?: boolean;
257
+ };
244
258
  export interface User {
245
259
  id: string;
246
260
  name: string;
@@ -253,7 +267,7 @@ export interface User {
253
267
  image?: string;
254
268
  createdAt: Date;
255
269
  updatedAt: Date;
256
- role: string;
270
+ role: UserRole;
257
271
  banned?: boolean;
258
272
  banReason?: string;
259
273
  banExpires?: Date;
@@ -1265,7 +1279,7 @@ interface ListParams {
1265
1279
  export declare const ApiRoutes: {
1266
1280
  admin: {
1267
1281
  getDashboardData: string;
1268
- importPatientsCsv: string;
1282
+ importDirectUsersCsv: string;
1269
1283
  };
1270
1284
  cart: {
1271
1285
  getByDirectUser: (id: number) => string;
@@ -455,7 +455,7 @@ function handleParams(filters) {
455
455
  export const ApiRoutes = {
456
456
  admin: {
457
457
  getDashboardData: '/api/admin/dashboard-data',
458
- importPatientsCsv: '/api/admin/import-patients',
458
+ importDirectUsersCsv: '/api/admin/import-direct-users',
459
459
  },
460
460
  cart: {
461
461
  getByDirectUser: (id) => `/api/carts/direct-users/${id}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.23.11",
3
+ "version": "1.23.13",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",