@natch-the-storage/heathershaw-platform-types 1.10.7 → 1.10.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 +5 -2
- package/build/validators.js +4 -3
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const paymentStatusValues: readonly ["AWAITING_PAYMENT", "PAID",
|
|
|
5
5
|
export declare const repeatStorageValues: readonly ["HEATHERSHAWS", "PHARMACY", "PATIENT"];
|
|
6
6
|
export declare const scriptTypeValues: readonly ["eRx", "PAPER"];
|
|
7
7
|
export declare const shippingTypeValues: readonly ["STANDARD", "COLD_CHAIN"];
|
|
8
|
-
export declare const staffProfileRoleValues: readonly ["ADMIN", "COUNSELLING", "SALES REP", "ALT. THERAPIES", "COMPOUNDING"
|
|
8
|
+
export declare const staffProfileRoleValues: readonly ["STAFF", "ADMIN", "COUNSELLING", "SALES REP", "ALT. THERAPIES", "COMPOUNDING"];
|
|
9
9
|
export declare const staffProfileStatusValues: readonly ["ACTIVE", "SUSPENDED"];
|
|
10
10
|
export type PaperScriptReminderStatus = (typeof paperScriptReminderStatusValues)[number];
|
|
11
11
|
export type QuoteStatus = (typeof quoteStatusValues)[number];
|
|
@@ -390,17 +390,19 @@ export interface StaffProfile {
|
|
|
390
390
|
id: number;
|
|
391
391
|
userId: string;
|
|
392
392
|
role: StaffProfileRole;
|
|
393
|
+
name: string;
|
|
393
394
|
status: StaffProfileStatus;
|
|
394
395
|
}
|
|
395
396
|
export interface StaffProfileCreate {
|
|
396
397
|
userId: string;
|
|
397
398
|
role: StaffProfileRole;
|
|
399
|
+
name: string;
|
|
398
400
|
status: StaffProfileStatus;
|
|
399
401
|
}
|
|
400
402
|
/**
|
|
401
403
|
* A union of the StaffProfile with the name, username and email fields from the user
|
|
402
404
|
*/
|
|
403
|
-
export interface
|
|
405
|
+
export interface StaffProfileWithUser {
|
|
404
406
|
id: number;
|
|
405
407
|
userId: string;
|
|
406
408
|
name: string;
|
|
@@ -783,6 +785,7 @@ export declare const ApiRoutes: {
|
|
|
783
785
|
limit?: number;
|
|
784
786
|
}) => string;
|
|
785
787
|
get: (id: number) => string;
|
|
788
|
+
getByUser: (userId: string) => string;
|
|
786
789
|
create: string;
|
|
787
790
|
update: string;
|
|
788
791
|
};
|
package/build/validators.js
CHANGED
|
@@ -19,12 +19,12 @@ export const repeatStorageValues = [
|
|
|
19
19
|
export const scriptTypeValues = ['eRx', 'PAPER'];
|
|
20
20
|
export const shippingTypeValues = ['STANDARD', 'COLD_CHAIN'];
|
|
21
21
|
export const staffProfileRoleValues = [
|
|
22
|
+
'STAFF',
|
|
22
23
|
'ADMIN',
|
|
23
24
|
'COUNSELLING',
|
|
24
25
|
'SALES REP',
|
|
25
26
|
'ALT. THERAPIES',
|
|
26
27
|
'COMPOUNDING',
|
|
27
|
-
'STAFF',
|
|
28
28
|
];
|
|
29
29
|
export const staffProfileStatusValues = ['ACTIVE', 'SUSPENDED'];
|
|
30
30
|
// ─── Compound Direct ────────────────────────────────────────────────────────────
|
|
@@ -147,7 +147,7 @@ export const ApiRoutes = {
|
|
|
147
147
|
partnerPharmacyProfiles: {
|
|
148
148
|
list: '/api/profiles/partner-pharmacies',
|
|
149
149
|
get: (id) => `/api/profiles/partner-pharmacies/${id}`,
|
|
150
|
-
getByUser: (userId) => `/api/profiles/partner-pharmacies/
|
|
150
|
+
getByUser: (userId) => `/api/profiles/partner-pharmacies/users/${userId}`,
|
|
151
151
|
create: '/api/profiles/partner-pharmacies',
|
|
152
152
|
update: '/api/profiles/partner-pharmacies',
|
|
153
153
|
delete: (id) => `/api/profiles/partner-pharmacies/${id}`,
|
|
@@ -156,7 +156,7 @@ export const ApiRoutes = {
|
|
|
156
156
|
patientRecords: {
|
|
157
157
|
list: (id, type) => '/api/patient-records' + `${type ? '?' + type + '=' + id : ''}`,
|
|
158
158
|
get: (id) => `/api/patient-records/${id}`,
|
|
159
|
-
getByUser: (userId) => `/api/patient-records/
|
|
159
|
+
getByUser: (userId) => `/api/patient-records/users/${userId}`,
|
|
160
160
|
create: '/api/patient-records',
|
|
161
161
|
update: '/api/patient-records',
|
|
162
162
|
delete: (id) => `/api/patient-records/${id}`,
|
|
@@ -217,6 +217,7 @@ export const ApiRoutes = {
|
|
|
217
217
|
return `/api/profiles/staff-profiles${query ? `?${query}` : ''}`;
|
|
218
218
|
},
|
|
219
219
|
get: (id) => `/api/profiles/staff-profiles/${id}`,
|
|
220
|
+
getByUser: (userId) => `/api/profiles/staff-profiles/users/${userId}`,
|
|
220
221
|
create: '/api/profiles/staff-profiles',
|
|
221
222
|
update: '/api/profiles/staff-profiles',
|
|
222
223
|
},
|