@natch-the-storage/heathershaw-platform-types 1.10.12 → 1.10.14
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 +8 -40
- package/build/validators.js +1 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const orderStatusValues: readonly ["received", "processing", "dispatched", "delivered", "completed"];
|
|
2
2
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
3
3
|
export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
|
|
4
|
-
export declare const paymentModeAtOrderValues: readonly ["
|
|
4
|
+
export declare const paymentModeAtOrderValues: readonly ["online", "pos"];
|
|
5
5
|
export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID", "PENDING_INVOICE"];
|
|
6
6
|
export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
|
|
7
7
|
export declare const scriptTypeValues: readonly ["eRx", "PAPER"];
|
|
@@ -162,39 +162,7 @@ export interface Order {
|
|
|
162
162
|
hubspotContactId?: string;
|
|
163
163
|
created: string;
|
|
164
164
|
}
|
|
165
|
-
export
|
|
166
|
-
partnerPharmacyProfileId?: number | null;
|
|
167
|
-
patientRecordId?: number | null;
|
|
168
|
-
directUserProfileId?: number | null;
|
|
169
|
-
address: {
|
|
170
|
-
type: string;
|
|
171
|
-
name: string;
|
|
172
|
-
address: string;
|
|
173
|
-
};
|
|
174
|
-
trackingNumber?: string;
|
|
175
|
-
status?: string;
|
|
176
|
-
store?: string;
|
|
177
|
-
staff?: string;
|
|
178
|
-
lineItems: LineItem[];
|
|
179
|
-
orderChangeNotes?: string | null;
|
|
180
|
-
paymentModeAtOrder: PaymentModeAtOrder;
|
|
181
|
-
paymentStatus: PaymentStatus;
|
|
182
|
-
shippingType?: ShippingType;
|
|
183
|
-
shippingFee: number;
|
|
184
|
-
total: number;
|
|
185
|
-
counsellingRequired?: boolean;
|
|
186
|
-
counsellingPriority?: string;
|
|
187
|
-
counselledBy?: string;
|
|
188
|
-
consellingNotes?: string;
|
|
189
|
-
counsellingStatus?: string;
|
|
190
|
-
confirmationSentAt?: Date;
|
|
191
|
-
patientCharged?: number;
|
|
192
|
-
overage?: number;
|
|
193
|
-
tierFee?: number;
|
|
194
|
-
billToPharmacy?: number;
|
|
195
|
-
invoicePrice?: number;
|
|
196
|
-
hubspotContactId?: string;
|
|
197
|
-
}
|
|
165
|
+
export type OrderCreate = Omit<Order, 'id'>;
|
|
198
166
|
export interface PaperScriptReminder {
|
|
199
167
|
id: number;
|
|
200
168
|
orderId?: number;
|
|
@@ -294,15 +262,15 @@ export interface PriceMatch {
|
|
|
294
262
|
id: number;
|
|
295
263
|
partnerPharmacyProfileId: number;
|
|
296
264
|
itemId: number;
|
|
265
|
+
name: string;
|
|
297
266
|
pricingId: number;
|
|
298
267
|
overridePrice: number;
|
|
268
|
+
created: string;
|
|
299
269
|
}
|
|
300
|
-
export
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
overridePrice: number;
|
|
305
|
-
}
|
|
270
|
+
export type PriceMatchCreate = Omit<PriceMatch, 'id' | 'name' | 'created'>;
|
|
271
|
+
export type PriceMatchUpdate = Partial<PriceMatch> & {
|
|
272
|
+
id: number;
|
|
273
|
+
};
|
|
306
274
|
export interface Quote {
|
|
307
275
|
id: number;
|
|
308
276
|
status: QuoteStatus;
|
package/build/validators.js
CHANGED
|
@@ -12,7 +12,7 @@ export const paperScriptReminderStatusValues = [
|
|
|
12
12
|
'ESCALATED',
|
|
13
13
|
];
|
|
14
14
|
export const quoteStatusValues = ['PENDING', 'PROCESSING', 'RESOLVED'];
|
|
15
|
-
export const paymentModeAtOrderValues = ['
|
|
15
|
+
export const paymentModeAtOrderValues = ['online', 'pos'];
|
|
16
16
|
export const paymentStatusValues = [
|
|
17
17
|
'AWAITING_PAYMENT',
|
|
18
18
|
'PAID',
|