@natch-the-storage/heathershaw-platform-types 1.7.6 → 1.7.8

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.
@@ -91,6 +91,22 @@ export interface Sms {
91
91
  to: string;
92
92
  from: string;
93
93
  }
94
+ export interface User {
95
+ id: string;
96
+ name: string;
97
+ email: string;
98
+ emailVerified: boolean;
99
+ phoneNumber: string;
100
+ phoneNumberVerified: boolean;
101
+ image?: string;
102
+ createdAt: Date;
103
+ updatedAt: Date;
104
+ role: string;
105
+ banned?: boolean;
106
+ banReason?: string;
107
+ banExpires?: Date;
108
+ onboarded: boolean;
109
+ }
94
110
  export interface DirectUserProfile {
95
111
  id: number;
96
112
  userId?: string;
@@ -188,7 +204,7 @@ export interface PartnerPharmacyProfile {
188
204
  paymentMode?: PaymentModeAtOrder;
189
205
  remindersEnabled?: boolean;
190
206
  priceMatches?: unknown;
191
- dispatchAddress?: Address[];
207
+ addresses?: Address[];
192
208
  orders?: unknown;
193
209
  xeroContactId?: string | null;
194
210
  }
@@ -202,7 +218,7 @@ export interface PartnerPharmacyProfileCreate {
202
218
  paymentMode: PaymentModeAtOrder;
203
219
  remindersEnabled?: boolean;
204
220
  priceMatches?: unknown;
205
- dispatchAddress?: Address[];
221
+ addresses?: Address[];
206
222
  orders?: unknown;
207
223
  xeroContactId?: string | null;
208
224
  }
@@ -217,7 +233,7 @@ export interface PatientRecord {
217
233
  dateOfBirth?: string;
218
234
  medicareNumber?: string | null;
219
235
  phone?: string;
220
- address?: Address[];
236
+ addresses?: Address[];
221
237
  healthInfo?: HealthInfo;
222
238
  reminderEnabled?: boolean;
223
239
  scripts?: ScriptSelect[];
@@ -235,7 +251,7 @@ export interface PatientRecordCreate {
235
251
  compoundDirectId?: number | null;
236
252
  userId?: string | null;
237
253
  medicareNumber?: string | null;
238
- address?: Address[];
254
+ addresses?: Address[];
239
255
  healthInfo?: HealthInfo;
240
256
  reminderEnabled?: boolean;
241
257
  scripts?: ScriptSelect[];
@@ -530,12 +546,25 @@ export interface CDCustomerSearch {
530
546
  export declare const parseCategory: (category: string) => "Order or delivery" | "Prescription" | "Profile or account" | "Compounding" | "General";
531
547
  export interface ContactFormInternalCreate {
532
548
  category: string;
549
+ pharmacyName?: string;
533
550
  name: string;
534
551
  email: string;
535
552
  phone?: string;
536
553
  orderNumber?: string;
537
554
  message: string;
538
555
  }
556
+ export declare const BucketObjects: {
557
+ dev: {
558
+ emailLogo: {
559
+ url: string;
560
+ };
561
+ };
562
+ prod: {
563
+ emailLogo: {
564
+ url: undefined;
565
+ };
566
+ };
567
+ };
539
568
  export declare const ApiRoutes: {
540
569
  orders: {
541
570
  list: string;
@@ -67,6 +67,18 @@ export const parseCategory = (category) => {
67
67
  return 'General';
68
68
  }
69
69
  };
70
+ export const BucketObjects = {
71
+ dev: {
72
+ emailLogo: {
73
+ url: 'https://pub-8a1a0de58ef143239a849bfea14018bf.r2.dev/core/logo-no-tagline-white-green.svg',
74
+ },
75
+ },
76
+ prod: {
77
+ emailLogo: {
78
+ url: undefined,
79
+ },
80
+ },
81
+ };
70
82
  export const ApiRoutes = {
71
83
  orders: {
72
84
  list: '/api/orders',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",