@natch-the-storage/heathershaw-platform-types 1.8.5 → 1.9.0

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.
@@ -237,9 +237,9 @@ export interface PatientRecord {
237
237
  userId?: string | null;
238
238
  firstName: string;
239
239
  lastName: string;
240
- dateOfBirth?: string;
240
+ dateOfBirth: string;
241
241
  medicareNumber?: string | null;
242
- phone?: string;
242
+ phone: string;
243
243
  addresses?: Address[];
244
244
  healthInfo?: HealthInfo;
245
245
  reminderEnabled?: boolean;
@@ -368,11 +368,15 @@ export interface PaperScriptCreate {
368
368
  }
369
369
  export interface Cart {
370
370
  id: number;
371
+ directUserProfileId?: number;
372
+ partnerPharmacyProfileId?: number;
371
373
  items: LineItem[];
372
374
  updatedAt: Date;
373
375
  }
374
376
  export interface CartUpdate {
375
377
  id: number;
378
+ directUserProfileId?: number;
379
+ partnerPharmacyProfileId?: number;
376
380
  items: LineItem[];
377
381
  }
378
382
  export declare const CompoundDirectAnimalId: {
@@ -717,9 +721,11 @@ export declare const ApiRoutes: {
717
721
  contactFormInternal: string;
718
722
  };
719
723
  cart: {
720
- get: (id: number) => string;
724
+ getByDirectUser: (id: number) => string;
725
+ getByPartnerPharmacy: (id: number) => string;
721
726
  put: string;
722
- delete: (id: number) => string;
727
+ deleteByDirectUser: (id: number) => string;
728
+ deleteByPartnerPharmacy: (id: number) => string;
723
729
  };
724
730
  compoundDirect: {
725
731
  searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
@@ -184,9 +184,11 @@ export const ApiRoutes = {
184
184
  contactFormInternal: '/api/emails/contact-requests',
185
185
  },
186
186
  cart: {
187
- get: (id) => `/api/carts/${id}`,
187
+ getByDirectUser: (id) => `/api/carts/direct-users/${id}`,
188
+ getByPartnerPharmacy: (id) => `/api/carts/partner-pharmacies/${id}`,
188
189
  put: '/api/carts',
189
- delete: (id) => `/api/carts/${id}`,
190
+ deleteByDirectUser: (id) => `/api/carts/direct-users/${id}`,
191
+ deleteByPartnerPharmacy: (id) => `/api/carts/partner-pharmacies/${id}`,
190
192
  },
191
193
  compoundDirect: {
192
194
  searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.8.5",
3
+ "version": "1.9.0",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",