@natch-the-storage/heathershaw-platform-types 1.15.13 → 1.16.0
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 +6 -1
- package/build/validators.js +5 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -195,8 +195,9 @@ export interface Order {
|
|
|
195
195
|
requiredDate: string;
|
|
196
196
|
draft: boolean;
|
|
197
197
|
reasonMarkedPaid?: string;
|
|
198
|
+
paymentLinkToken?: string;
|
|
198
199
|
}
|
|
199
|
-
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
|
|
200
|
+
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft' | 'paymentLinkToken'> & {
|
|
200
201
|
draft?: boolean;
|
|
201
202
|
};
|
|
202
203
|
export type OrderUpdate = Partial<Order> & {
|
|
@@ -893,6 +894,9 @@ export declare const ApiRoutes: {
|
|
|
893
894
|
create: string;
|
|
894
895
|
update: string;
|
|
895
896
|
delete: (id: number) => string;
|
|
897
|
+
createPaymentLinkToken: string;
|
|
898
|
+
getByPaymentLinkToken: (token: string) => string;
|
|
899
|
+
updateByPaymentLinkToken: (token: string) => string;
|
|
896
900
|
};
|
|
897
901
|
paperScriptReminders: {
|
|
898
902
|
list: string;
|
|
@@ -923,6 +927,7 @@ export declare const ApiRoutes: {
|
|
|
923
927
|
consent: string;
|
|
924
928
|
activate: string;
|
|
925
929
|
isActive: (id: number) => string;
|
|
930
|
+
declineConsent: string;
|
|
926
931
|
};
|
|
927
932
|
priceMatches: {
|
|
928
933
|
list: (filters?: {
|
package/build/validators.js
CHANGED
|
@@ -277,6 +277,9 @@ export const ApiRoutes = {
|
|
|
277
277
|
create: '/api/orders',
|
|
278
278
|
update: '/api/orders',
|
|
279
279
|
delete: (id) => `/api/orders/${id}`,
|
|
280
|
+
createPaymentLinkToken: '/api/orders/payment-links',
|
|
281
|
+
getByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
|
|
282
|
+
updateByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
|
|
280
283
|
},
|
|
281
284
|
paperScriptReminders: {
|
|
282
285
|
list: '/api/paper-script-reminders',
|
|
@@ -305,8 +308,9 @@ export const ApiRoutes = {
|
|
|
305
308
|
update: '/api/patient-records',
|
|
306
309
|
delete: (id) => `/api/patient-records/${id}`,
|
|
307
310
|
consent: '/api/notifications/patient-records',
|
|
308
|
-
activate: '/api/
|
|
311
|
+
activate: '/api/patient-records/activate',
|
|
309
312
|
isActive: (id) => `/api/patient-records/${id}/active`,
|
|
313
|
+
declineConsent: '/api/patient-records/decline-consent',
|
|
310
314
|
},
|
|
311
315
|
priceMatches: {
|
|
312
316
|
list: (filters) => `/api/price-matches${handleParams(filters)}`,
|