@natch-the-storage/heathershaw-platform-types 1.9.1 → 1.9.3
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 +25 -18
- package/build/validators.js +1 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface ScriptSelect {
|
|
|
41
41
|
fileKey?: string | null;
|
|
42
42
|
}
|
|
43
43
|
export interface LineItem {
|
|
44
|
-
id:
|
|
44
|
+
id: string;
|
|
45
45
|
name: string;
|
|
46
46
|
quantity: number;
|
|
47
47
|
price: number;
|
|
@@ -55,11 +55,6 @@ export interface LineItem {
|
|
|
55
55
|
fileKey?: string;
|
|
56
56
|
};
|
|
57
57
|
paperScriptReceived: boolean;
|
|
58
|
-
patientCharged?: string;
|
|
59
|
-
overage?: string;
|
|
60
|
-
tierFee?: string;
|
|
61
|
-
billToPharmacy?: string;
|
|
62
|
-
invoicePrice?: string;
|
|
63
58
|
otherScriptProperties: {
|
|
64
59
|
for: {
|
|
65
60
|
customerId: number;
|
|
@@ -144,6 +139,11 @@ export interface Order {
|
|
|
144
139
|
consellingNotes?: string;
|
|
145
140
|
counselledStatus?: string;
|
|
146
141
|
confirmationSentAt?: Date;
|
|
142
|
+
patientCharged?: number;
|
|
143
|
+
overage?: number;
|
|
144
|
+
tierFee?: number;
|
|
145
|
+
billToPharmacy?: number;
|
|
146
|
+
invoicePrice?: number;
|
|
147
147
|
hubspotContactId?: string;
|
|
148
148
|
created: string;
|
|
149
149
|
}
|
|
@@ -173,6 +173,11 @@ export interface OrderCreate {
|
|
|
173
173
|
consellingNotes?: string;
|
|
174
174
|
counselledStatus?: string;
|
|
175
175
|
confirmationSentAt?: Date;
|
|
176
|
+
patientCharged?: number;
|
|
177
|
+
overage?: number;
|
|
178
|
+
tierFee?: number;
|
|
179
|
+
billToPharmacy?: number;
|
|
180
|
+
invoicePrice?: number;
|
|
176
181
|
hubspotContactId?: string;
|
|
177
182
|
}
|
|
178
183
|
export interface PaperScriptReminder {
|
|
@@ -206,7 +211,7 @@ export interface PartnerPharmacyProfile {
|
|
|
206
211
|
discountTier: number;
|
|
207
212
|
paymentMode: PaymentModeAtOrder;
|
|
208
213
|
remindersEnabled?: boolean;
|
|
209
|
-
priceMatches?:
|
|
214
|
+
priceMatches?: PriceMatch[];
|
|
210
215
|
addresses?: Address[];
|
|
211
216
|
orders?: Order[];
|
|
212
217
|
xeroContactId?: string | null;
|
|
@@ -220,7 +225,7 @@ export interface PartnerPharmacyProfileCreate {
|
|
|
220
225
|
discountTier: number;
|
|
221
226
|
paymentMode: PaymentModeAtOrder;
|
|
222
227
|
remindersEnabled?: boolean;
|
|
223
|
-
priceMatches?:
|
|
228
|
+
priceMatches?: PriceMatch[];
|
|
224
229
|
addresses?: Address[];
|
|
225
230
|
orders?: Order[];
|
|
226
231
|
xeroContactId?: string | null;
|
|
@@ -269,14 +274,16 @@ export interface PatientRecordCreate {
|
|
|
269
274
|
}
|
|
270
275
|
export interface PriceMatch {
|
|
271
276
|
id: number;
|
|
272
|
-
partnerPharmacyProfileId
|
|
273
|
-
|
|
274
|
-
|
|
277
|
+
partnerPharmacyProfileId: number;
|
|
278
|
+
itemId: number;
|
|
279
|
+
pricingId: number;
|
|
280
|
+
overridePrice: number;
|
|
275
281
|
}
|
|
276
282
|
export interface PriceMatchCreate {
|
|
277
283
|
partnerPharmacyProfileId: number;
|
|
278
|
-
|
|
279
|
-
|
|
284
|
+
itemId: number;
|
|
285
|
+
pricingId: number;
|
|
286
|
+
overridePrice: number;
|
|
280
287
|
}
|
|
281
288
|
export interface Quote {
|
|
282
289
|
id: number;
|
|
@@ -351,7 +358,6 @@ export interface Cart {
|
|
|
351
358
|
updatedAt: Date;
|
|
352
359
|
}
|
|
353
360
|
export interface CartUpdate {
|
|
354
|
-
id: number;
|
|
355
361
|
directUserProfileId?: number;
|
|
356
362
|
partnerPharmacyProfileId?: number;
|
|
357
363
|
items: LineItem[];
|
|
@@ -460,6 +466,7 @@ export declare const CompoundDirectAnimalId: {
|
|
|
460
466
|
};
|
|
461
467
|
export declare const AnimalSpeciesKeys: [keyof typeof CompoundDirectAnimalId, ...(keyof typeof CompoundDirectAnimalId)[]];
|
|
462
468
|
export interface CDScriptPriceOption {
|
|
469
|
+
id: number;
|
|
463
470
|
quantity: number;
|
|
464
471
|
price: number;
|
|
465
472
|
}
|
|
@@ -499,6 +506,7 @@ export interface CDScript {
|
|
|
499
506
|
name: string;
|
|
500
507
|
price: number;
|
|
501
508
|
quantity: number;
|
|
509
|
+
createdDate: string;
|
|
502
510
|
originalScript: {
|
|
503
511
|
draftScriptId: number;
|
|
504
512
|
};
|
|
@@ -539,9 +547,8 @@ export interface CDCustomerCreate {
|
|
|
539
547
|
}
|
|
540
548
|
export interface CDCustomerSearch {
|
|
541
549
|
name: string;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
phone: string;
|
|
550
|
+
dobStartDate: string;
|
|
551
|
+
dobEndDate: string;
|
|
545
552
|
}
|
|
546
553
|
export interface CDFormulation {
|
|
547
554
|
formulationId: number;
|
|
@@ -701,7 +708,7 @@ export declare const ApiRoutes: {
|
|
|
701
708
|
deleteByPartnerPharmacy: (id: number) => string;
|
|
702
709
|
};
|
|
703
710
|
compoundDirect: {
|
|
704
|
-
searchCustomers:
|
|
711
|
+
searchCustomers: string;
|
|
705
712
|
createCustomer: string;
|
|
706
713
|
getDraftScripts: string;
|
|
707
714
|
getDraftScriptById: (id: number) => string;
|
package/build/validators.js
CHANGED
|
@@ -186,7 +186,7 @@ export const ApiRoutes = {
|
|
|
186
186
|
deleteByPartnerPharmacy: (id) => `/api/carts/partner-pharmacies/${id}`,
|
|
187
187
|
},
|
|
188
188
|
compoundDirect: {
|
|
189
|
-
searchCustomers:
|
|
189
|
+
searchCustomers: '/api/compound-direct/customers',
|
|
190
190
|
createCustomer: '/api/compound-direct/customer',
|
|
191
191
|
getDraftScripts: '/api/compound-direct/draft-scripts',
|
|
192
192
|
getDraftScriptById: (id) => `/api/compound-direct/draft-scripts/${id}`,
|