@natch-the-storage/heathershaw-platform-types 1.10.0 → 1.10.2
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 +3 -0
- package/build/validators.js +6 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -685,8 +685,11 @@ export declare const ApiRoutes: {
|
|
|
685
685
|
partnerPharmacyProfileId?: number;
|
|
686
686
|
directUserProfileId?: number;
|
|
687
687
|
patientRecordId?: number;
|
|
688
|
+
page?: number;
|
|
689
|
+
limit?: number;
|
|
688
690
|
}) => string;
|
|
689
691
|
get: (id: number) => string;
|
|
692
|
+
getSummary: (date: Date) => string;
|
|
690
693
|
create: string;
|
|
691
694
|
update: string;
|
|
692
695
|
delete: (id: number) => string;
|
package/build/validators.js
CHANGED
|
@@ -78,7 +78,7 @@ export const BucketObjects = {
|
|
|
78
78
|
};
|
|
79
79
|
export const ApiRoutes = {
|
|
80
80
|
admin: {
|
|
81
|
-
getDashboardData: '/admin/dashboard-data',
|
|
81
|
+
getDashboardData: '/api/admin/dashboard-data',
|
|
82
82
|
},
|
|
83
83
|
cart: {
|
|
84
84
|
getByDirectUser: (id) => `/api/carts/direct-users/${id}`,
|
|
@@ -117,10 +117,15 @@ export const ApiRoutes = {
|
|
|
117
117
|
params.set('directUserProfileId', String(filters.directUserProfileId));
|
|
118
118
|
if (filters?.patientRecordId)
|
|
119
119
|
params.set('patientRecordId', String(filters.patientRecordId));
|
|
120
|
+
if (filters?.page)
|
|
121
|
+
params.set('page', String(filters.page));
|
|
122
|
+
if (filters?.limit)
|
|
123
|
+
params.set('limit', String(filters.limit));
|
|
120
124
|
const query = params.toString();
|
|
121
125
|
return `/api/orders${query ? `?${query}` : ''}`;
|
|
122
126
|
},
|
|
123
127
|
get: (id) => `/api/orders/${id}`,
|
|
128
|
+
getSummary: (date) => `/api/orders/summary`,
|
|
124
129
|
create: '/api/orders',
|
|
125
130
|
update: '/api/orders',
|
|
126
131
|
delete: (id) => `/api/orders/${id}`,
|