@natch-the-storage/heathershaw-platform-types 1.15.7 → 1.15.8
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 -3
- package/build/validators.js +7 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const cDProductCategoryIdValues: string[];
|
|
|
3
3
|
export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
|
|
4
4
|
export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
|
|
5
5
|
export declare const paperScriptReminderStatusValues: readonly ["PENDING", "RECEIVED", "ESCALATED"];
|
|
6
|
-
export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED"];
|
|
6
|
+
export declare const quoteStatusValues: readonly ["PENDING", "PROCESSING", "RESOLVED", "DISMISSED"];
|
|
7
7
|
export declare const paymentModeAtOrderValues: readonly ["ONLINE", "INVOICE", "POS"];
|
|
8
8
|
export declare const partnerPharmacyPaymentModeValues: readonly ["INVOICE", "POS"];
|
|
9
9
|
export declare const paymentStatusValues: readonly ["UNPAID", "AWAITING_PAYMENT", "PENDING_INVOICE", "PAID"];
|
|
@@ -321,11 +321,15 @@ export interface Quote {
|
|
|
321
321
|
details?: string;
|
|
322
322
|
token?: string;
|
|
323
323
|
fileKey?: string;
|
|
324
|
-
|
|
324
|
+
formulationId?: number;
|
|
325
325
|
pricingId?: number;
|
|
326
326
|
created: string;
|
|
327
|
+
resolved: string;
|
|
327
328
|
}
|
|
328
|
-
export type QuoteCreate = Omit<Quote, 'id' | 'status' | 'created' | '
|
|
329
|
+
export type QuoteCreate = Omit<Quote, 'id' | 'status' | 'created' | 'formulationId' | 'pricingId' | 'resolved'>;
|
|
330
|
+
export type QuoteUpdate = Partial<Quote> & {
|
|
331
|
+
id: number;
|
|
332
|
+
};
|
|
329
333
|
export interface RepeatReminder {
|
|
330
334
|
id: number;
|
|
331
335
|
orderId?: number;
|
|
@@ -865,6 +869,7 @@ export declare const ApiRoutes: {
|
|
|
865
869
|
};
|
|
866
870
|
notifications: {
|
|
867
871
|
createPaymentLink: string;
|
|
872
|
+
quoteReadyNotification: string;
|
|
868
873
|
};
|
|
869
874
|
orders: {
|
|
870
875
|
list: (filters?: ListParams & {
|
package/build/validators.js
CHANGED
|
@@ -26,7 +26,12 @@ export const paperScriptReminderStatusValues = [
|
|
|
26
26
|
'RECEIVED',
|
|
27
27
|
'ESCALATED',
|
|
28
28
|
];
|
|
29
|
-
export const quoteStatusValues = [
|
|
29
|
+
export const quoteStatusValues = [
|
|
30
|
+
'PENDING',
|
|
31
|
+
'PROCESSING',
|
|
32
|
+
'RESOLVED',
|
|
33
|
+
'DISMISSED',
|
|
34
|
+
];
|
|
30
35
|
export const paymentModeAtOrderValues = ['ONLINE', 'INVOICE', 'POS'];
|
|
31
36
|
export const partnerPharmacyPaymentModeValues = ['INVOICE', 'POS'];
|
|
32
37
|
export const paymentStatusValues = [
|
|
@@ -256,6 +261,7 @@ export const ApiRoutes = {
|
|
|
256
261
|
},
|
|
257
262
|
notifications: {
|
|
258
263
|
createPaymentLink: '/api/notifications/payment-links',
|
|
264
|
+
quoteReadyNotification: '/api/notifications/quotes',
|
|
259
265
|
},
|
|
260
266
|
orders: {
|
|
261
267
|
list: (filters) => `/api/orders${handleParams(filters)}`,
|