@natch-the-storage/heathershaw-platform-types 1.10.11 → 1.10.12

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.
@@ -244,7 +244,9 @@ export type PartnerPharmacyProfileDetailed = PartnerPharmacyProfile & {
244
244
  email: string;
245
245
  phoneNumber: string;
246
246
  status: boolean | null;
247
- patients: PatientRecord[];
247
+ patients: PatientRecord & {
248
+ lastOrderDate: string | null;
249
+ }[];
248
250
  orders: Order & {
249
251
  patientFirstName: string;
250
252
  patientLastName: string;
@@ -280,25 +282,14 @@ export interface PatientRecord {
280
282
  animalSpecies?: string;
281
283
  relationship?: string | null;
282
284
  }
283
- export interface PatientRecordCreate {
284
- partnerPharmacyProfileId?: number | null;
285
- directUserProfileId?: number | null;
286
- compoundDirectId?: number | null;
287
- userId?: string | null;
285
+ export type PatientRecordCreate = Partial<PatientRecord> & {
286
+ id: number;
288
287
  firstName: string;
289
288
  lastName: string;
290
289
  dateOfBirth: string;
291
290
  email: string;
292
291
  phone: string;
293
- medicareNumber?: string | null;
294
- addresses?: Address[];
295
- healthInfo?: HealthInfo;
296
- reminderEnabled?: boolean;
297
- scripts?: Script[];
298
- orderHistory?: Order[];
299
- animalSpecies?: string;
300
- relationship?: string | null;
301
- }
292
+ };
302
293
  export interface PriceMatch {
303
294
  id: number;
304
295
  partnerPharmacyProfileId: number;
@@ -323,18 +314,9 @@ export interface Quote {
323
314
  details?: string;
324
315
  token?: string;
325
316
  fileKey?: string;
317
+ created: string;
326
318
  }
327
- export interface QuoteCreate {
328
- status?: QuoteStatus;
329
- partnerPharmacyProfileId: number;
330
- name: string;
331
- strength: string;
332
- form: string;
333
- quantity: string;
334
- details?: string;
335
- token?: string;
336
- fileKey?: string;
337
- }
319
+ export type QuoteCreate = Omit<Quote, 'id' | 'status' | 'created'>;
338
320
  export interface RepeatReminder {
339
321
  id: number;
340
322
  orderId?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.10.11",
3
+ "version": "1.10.12",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",