@natch-the-storage/heathershaw-platform-types 1.6.7 → 1.7.1
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 +65 -24
- package/build/validators.js +4 -0
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -46,20 +46,40 @@ export interface ScriptSelect {
|
|
|
46
46
|
export interface OrderSelect {
|
|
47
47
|
id: number;
|
|
48
48
|
partnerPharmacyProfileId: number | null;
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
directUserProfileId: number | null;
|
|
50
|
+
trackingNumber: string;
|
|
51
|
+
status: boolean;
|
|
51
52
|
paymentModeAtOrder: PaymentModeAtOrder;
|
|
52
53
|
paymentStatus: PaymentStatus;
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
store: string;
|
|
55
|
+
staff: string;
|
|
55
56
|
shippingType: ShippingType;
|
|
56
57
|
shippingFee: string;
|
|
57
|
-
lineItems:
|
|
58
|
+
lineItems: LineItem[];
|
|
58
59
|
orderChangeNotes: string | null;
|
|
59
60
|
counsellingRequired: boolean;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
counsellingPriority: string;
|
|
62
|
+
counselledBy: string;
|
|
63
|
+
consellingNotes: string;
|
|
64
|
+
counselledStatus: string;
|
|
65
|
+
confirmationSentAt: Date;
|
|
66
|
+
hubspotContactId: string;
|
|
67
|
+
}
|
|
68
|
+
export interface LineItem {
|
|
69
|
+
id: number;
|
|
70
|
+
name: string;
|
|
71
|
+
quantity: number;
|
|
72
|
+
price: number;
|
|
73
|
+
rrp: number;
|
|
74
|
+
flavour?: string;
|
|
75
|
+
adverseSymptoms?: string;
|
|
76
|
+
scriptType: string;
|
|
77
|
+
paperScriptReceived: boolean;
|
|
78
|
+
patientCharged?: string;
|
|
79
|
+
overage?: string;
|
|
80
|
+
tierFee?: string;
|
|
81
|
+
billToPharmacy?: string;
|
|
82
|
+
invoicePrice?: string;
|
|
63
83
|
}
|
|
64
84
|
export interface GetById {
|
|
65
85
|
id: number;
|
|
@@ -90,37 +110,45 @@ export interface DirectUserProfileCreate {
|
|
|
90
110
|
export interface Order {
|
|
91
111
|
id: number;
|
|
92
112
|
partnerPharmacyProfileId?: number | null;
|
|
93
|
-
|
|
94
|
-
|
|
113
|
+
directUserProfileId?: number | null;
|
|
114
|
+
trackingNumber?: string;
|
|
115
|
+
status?: boolean;
|
|
95
116
|
paymentModeAtOrder?: PaymentModeAtOrder;
|
|
96
117
|
paymentStatus?: PaymentStatus;
|
|
97
|
-
|
|
98
|
-
|
|
118
|
+
store?: string;
|
|
119
|
+
staff?: string;
|
|
99
120
|
shippingType?: ShippingType;
|
|
100
121
|
shippingFee?: string;
|
|
101
|
-
lineItems?:
|
|
122
|
+
lineItems?: LineItem[];
|
|
102
123
|
orderChangeNotes?: string | null;
|
|
103
124
|
counsellingRequired?: boolean;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
125
|
+
counsellingPriority?: string;
|
|
126
|
+
counselledBy?: string;
|
|
127
|
+
consellingNotes?: string;
|
|
128
|
+
counselledStatus?: string;
|
|
129
|
+
confirmationSentAt?: Date;
|
|
130
|
+
hubspotContactId?: string;
|
|
107
131
|
}
|
|
108
132
|
export interface OrderCreate {
|
|
109
133
|
paymentModeAtOrder: PaymentModeAtOrder;
|
|
110
134
|
paymentStatus: PaymentStatus;
|
|
111
|
-
scriptType: ScriptType;
|
|
112
135
|
shippingType: ShippingType;
|
|
113
136
|
shippingFee: string;
|
|
114
137
|
partnerPharmacyProfileId?: number | null;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
138
|
+
directUserProfileId?: number | null;
|
|
139
|
+
trackingNumber?: string;
|
|
140
|
+
status?: boolean;
|
|
141
|
+
store?: string;
|
|
142
|
+
staff?: string;
|
|
143
|
+
lineItems?: LineItem[];
|
|
119
144
|
orderChangeNotes?: string | null;
|
|
120
145
|
counsellingRequired?: boolean;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
146
|
+
counsellingPriority?: string;
|
|
147
|
+
counselledBy?: string;
|
|
148
|
+
consellingNotes?: string;
|
|
149
|
+
counselledStatus?: string;
|
|
150
|
+
confirmationSentAt?: Date;
|
|
151
|
+
hubspotContactId?: string;
|
|
124
152
|
}
|
|
125
153
|
export interface PaperScriptReminder {
|
|
126
154
|
id: number;
|
|
@@ -305,6 +333,15 @@ export interface PaperScriptCreate {
|
|
|
305
333
|
uploaded: string;
|
|
306
334
|
fileKey: string;
|
|
307
335
|
}
|
|
336
|
+
export interface Cart {
|
|
337
|
+
id: number;
|
|
338
|
+
items: any[];
|
|
339
|
+
updatedAt: Date;
|
|
340
|
+
}
|
|
341
|
+
export interface CartUpdate {
|
|
342
|
+
id: number;
|
|
343
|
+
items: any[];
|
|
344
|
+
}
|
|
308
345
|
export declare const CompoundDirectAnimalId: {
|
|
309
346
|
readonly dog: {
|
|
310
347
|
readonly id: 1;
|
|
@@ -570,6 +607,10 @@ export declare const ApiRoutes: {
|
|
|
570
607
|
send: string;
|
|
571
608
|
};
|
|
572
609
|
email: {};
|
|
610
|
+
cart: {
|
|
611
|
+
get: (id: number) => string;
|
|
612
|
+
put: string;
|
|
613
|
+
};
|
|
573
614
|
compoundDirect: {
|
|
574
615
|
searchCustomers: ({ name, dateOfBirth, email, phone }: CDCustomerSearch) => string;
|
|
575
616
|
createCustomer: string;
|
package/build/validators.js
CHANGED
|
@@ -141,6 +141,10 @@ export const ApiRoutes = {
|
|
|
141
141
|
send: '/api/reminders/sms',
|
|
142
142
|
},
|
|
143
143
|
email: {},
|
|
144
|
+
cart: {
|
|
145
|
+
get: (id) => `/api/carts/${id}`,
|
|
146
|
+
put: '/api/carts',
|
|
147
|
+
},
|
|
144
148
|
compoundDirect: {
|
|
145
149
|
searchCustomers: ({ name, dateOfBirth, email, phone }) => `/api/compound-direct/customers?name=${name}&dateOfBirth=${dateOfBirth}&email=${email}&phone=${phone}`,
|
|
146
150
|
createCustomer: '/api/compound-direct/customer',
|