@natch-the-storage/heathershaw-platform-types 1.9.1 → 1.9.2
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 +16 -12
- package/build/validators.js +1 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -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;
|
|
@@ -270,12 +275,12 @@ export interface PatientRecordCreate {
|
|
|
270
275
|
export interface PriceMatch {
|
|
271
276
|
id: number;
|
|
272
277
|
partnerPharmacyProfileId?: number;
|
|
273
|
-
|
|
274
|
-
overridePrice
|
|
278
|
+
itemId: number;
|
|
279
|
+
overridePrice: string;
|
|
275
280
|
}
|
|
276
281
|
export interface PriceMatchCreate {
|
|
277
282
|
partnerPharmacyProfileId: number;
|
|
278
|
-
|
|
283
|
+
itemId: number;
|
|
279
284
|
overridePrice: string;
|
|
280
285
|
}
|
|
281
286
|
export interface Quote {
|
|
@@ -351,7 +356,6 @@ export interface Cart {
|
|
|
351
356
|
updatedAt: Date;
|
|
352
357
|
}
|
|
353
358
|
export interface CartUpdate {
|
|
354
|
-
id: number;
|
|
355
359
|
directUserProfileId?: number;
|
|
356
360
|
partnerPharmacyProfileId?: number;
|
|
357
361
|
items: LineItem[];
|
|
@@ -701,7 +705,7 @@ export declare const ApiRoutes: {
|
|
|
701
705
|
deleteByPartnerPharmacy: (id: number) => string;
|
|
702
706
|
};
|
|
703
707
|
compoundDirect: {
|
|
704
|
-
searchCustomers:
|
|
708
|
+
searchCustomers: string;
|
|
705
709
|
createCustomer: string;
|
|
706
710
|
getDraftScripts: string;
|
|
707
711
|
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}`,
|