@natch-the-storage/heathershaw-platform-types 1.10.11 → 1.10.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.
@@ -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,38 +282,23 @@ 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;
305
296
  itemId: number;
297
+ name: string;
306
298
  pricingId: number;
307
299
  overridePrice: number;
308
300
  }
309
- export interface PriceMatchCreate {
310
- partnerPharmacyProfileId: number;
311
- itemId: number;
312
- pricingId: number;
313
- overridePrice: number;
314
- }
301
+ export type PriceMatchCreate = Omit<PriceMatch, 'id' | 'name'>;
315
302
  export interface Quote {
316
303
  id: number;
317
304
  status: QuoteStatus;
@@ -323,18 +310,9 @@ export interface Quote {
323
310
  details?: string;
324
311
  token?: string;
325
312
  fileKey?: string;
313
+ created: string;
326
314
  }
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
- }
315
+ export type QuoteCreate = Omit<Quote, 'id' | 'status' | 'created'>;
338
316
  export interface RepeatReminder {
339
317
  id: number;
340
318
  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.13",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",