@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.
- package/build/validators.d.ts +10 -4
- package/build/validators.js +4 -2
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -237,9 +237,9 @@ export interface PatientRecord {
|
|
|
237
237
|
userId?: string | null;
|
|
238
238
|
firstName: string;
|
|
239
239
|
lastName: string;
|
|
240
|
-
dateOfBirth
|
|
240
|
+
dateOfBirth: string;
|
|
241
241
|
medicareNumber?: string | null;
|
|
242
|
-
phone
|
|
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
|
-
|
|
724
|
+
getByDirectUser: (id: number) => string;
|
|
725
|
+
getByPartnerPharmacy: (id: number) => string;
|
|
721
726
|
put: string;
|
|
722
|
-
|
|
727
|
+
deleteByDirectUser: (id: number) => string;
|
|
728
|
+
deleteByPartnerPharmacy: (id: number) => string;
|
|
723
729
|
};
|
|
724
730
|
compoundDirect: {
|
|
725
731
|
searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
|
package/build/validators.js
CHANGED
|
@@ -184,9 +184,11 @@ export const ApiRoutes = {
|
|
|
184
184
|
contactFormInternal: '/api/emails/contact-requests',
|
|
185
185
|
},
|
|
186
186
|
cart: {
|
|
187
|
-
|
|
187
|
+
getByDirectUser: (id) => `/api/carts/direct-users/${id}`,
|
|
188
|
+
getByPartnerPharmacy: (id) => `/api/carts/partner-pharmacies/${id}`,
|
|
188
189
|
put: '/api/carts',
|
|
189
|
-
|
|
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}`,
|