@natch-the-storage/heathershaw-platform-types 1.11.0 → 1.11.2

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.
@@ -103,7 +103,10 @@ export interface Sms {
103
103
  to: string;
104
104
  }
105
105
  export interface PaymentLinkCreate {
106
- phone?: string;
106
+ partnerPharmacyProfileId?: number;
107
+ patientRecordId?: number;
108
+ directUserProfileId?: number;
109
+ phoneNumber?: string;
107
110
  email?: string;
108
111
  }
109
112
  interface DashboardData {
@@ -186,6 +189,7 @@ export interface OrderAddress {
186
189
  type: OrderFulfillment;
187
190
  name: string;
188
191
  address: string;
192
+ deliveryInstructions?: string;
189
193
  }
190
194
  export interface PaperScriptReminder {
191
195
  id: number;
@@ -218,9 +222,7 @@ export interface PartnerPharmacyProfile {
218
222
  discountTier: number;
219
223
  paymentMode: PartnerPharmacyPaymentMode;
220
224
  remindersEnabled?: boolean;
221
- priceMatches?: PriceMatch[];
222
225
  addresses: Address[];
223
- orders?: Order[];
224
226
  xeroContactId?: string | null;
225
227
  }
226
228
  export type PartnerPharmacyProfileCreate = Omit<PartnerPharmacyProfile, 'id' | 'priceMatches' | 'orders'>;
@@ -268,21 +270,15 @@ export interface PatientRecord {
268
270
  dateOfBirth: string;
269
271
  medicareNumber?: string;
270
272
  email: string;
271
- phone: string;
272
- addresses?: Address[];
273
+ phoneNumber: string;
274
+ addresses: Address[];
273
275
  healthInfo?: HealthInfo;
274
276
  reminderEnabled?: boolean;
275
277
  orderHistory?: Order[];
276
278
  animalSpecies?: string;
277
279
  relationship?: string | null;
278
280
  }
279
- export type PatientRecordCreate = Partial<PatientRecord> & {
280
- firstName: string;
281
- lastName: string;
282
- dateOfBirth: string;
283
- email: string;
284
- phone: string;
285
- };
281
+ export type PatientRecordCreate = Omit<PatientRecord, 'id'>;
286
282
  export type PatientRecordUpdate = Partial<PatientRecord> & {
287
283
  id: number;
288
284
  };
@@ -348,7 +344,7 @@ export type AdminScript = Script & {
348
344
  firstName: string;
349
345
  lastName: string;
350
346
  dateOfBirth: string;
351
- phone: string;
347
+ phoneNumber: string;
352
348
  email: string;
353
349
  };
354
350
  export type EScriptCreate = Pick<Script, 'patientRecordId' | 'partnerPharmacyProfileId'> & {
@@ -627,7 +623,7 @@ export interface ContactFormInternalCreate {
627
623
  pharmacyName?: string;
628
624
  name: string;
629
625
  email: string;
630
- phone?: string;
626
+ phoneNumber?: string;
631
627
  orderNumber?: string;
632
628
  message: string;
633
629
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",