@natch-the-storage/heathershaw-platform-types 1.15.6 → 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 +9 -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,10 +321,15 @@ export interface Quote {
|
|
|
321
321
|
details?: string;
|
|
322
322
|
token?: string;
|
|
323
323
|
fileKey?: string;
|
|
324
|
-
|
|
324
|
+
formulationId?: number;
|
|
325
|
+
pricingId?: number;
|
|
325
326
|
created: string;
|
|
327
|
+
resolved: string;
|
|
326
328
|
}
|
|
327
|
-
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
|
+
};
|
|
328
333
|
export interface RepeatReminder {
|
|
329
334
|
id: number;
|
|
330
335
|
orderId?: number;
|
|
@@ -864,6 +869,7 @@ export declare const ApiRoutes: {
|
|
|
864
869
|
};
|
|
865
870
|
notifications: {
|
|
866
871
|
createPaymentLink: string;
|
|
872
|
+
quoteReadyNotification: string;
|
|
867
873
|
};
|
|
868
874
|
orders: {
|
|
869
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)}`,
|