@bizmap/sdk 0.0.9 → 0.0.10
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/dist/main.d.ts +10 -14
- package/dist/main.js +20 -20
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -31,18 +31,21 @@ declare const CompanyIdentity: z.ZodObject<{
|
|
|
31
31
|
uid: z.ZodReadonly<z.ZodString>;
|
|
32
32
|
displayName: z.ZodString;
|
|
33
33
|
logo: z.ZodOptional<z.ZodString>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
contact: z.ZodObject<{
|
|
35
|
+
email: z.ZodEmail;
|
|
36
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
37
38
|
address: z.ZodRecord<z.ZodEnum<{
|
|
38
39
|
streetAddress: "streetAddress";
|
|
39
40
|
city: "city";
|
|
40
41
|
parish: "parish";
|
|
41
42
|
country: "country";
|
|
42
43
|
}>, z.ZodString>;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
legal: z.ZodObject<{
|
|
45
|
+
regNo: z.ZodReadonly<z.ZodString>;
|
|
46
|
+
trn: z.ZodOptional<z.ZodString>;
|
|
47
|
+
gctRegNo: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>;
|
|
46
49
|
}, z.core.$strip>;
|
|
47
50
|
type CompanyIdentity = z.infer<typeof CompanyIdentity>;
|
|
48
51
|
declare const CompanyOpState: z.ZodObject<{
|
|
@@ -62,10 +65,6 @@ declare const CompanyPreferences: z.ZodObject<{
|
|
|
62
65
|
RR: "RR";
|
|
63
66
|
LOR: "LOR";
|
|
64
67
|
}>;
|
|
65
|
-
workingHours: z.ZodObject<{
|
|
66
|
-
start: z.ZodString;
|
|
67
|
-
end: z.ZodString;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
68
|
}, z.core.$strip>;
|
|
70
69
|
type CompanyPreferences = z.infer<typeof CompanyPreferences>;
|
|
71
70
|
declare const CompanyBillingModel: z.ZodObject<{
|
|
@@ -111,10 +110,6 @@ declare const RegisterCompanyForm: z.ZodObject<{
|
|
|
111
110
|
slogan: z.ZodString;
|
|
112
111
|
email: z.ZodEmail;
|
|
113
112
|
phoneNumber: z.ZodString;
|
|
114
|
-
workingHours: z.ZodObject<{
|
|
115
|
-
start: z.ZodString;
|
|
116
|
-
end: z.ZodString;
|
|
117
|
-
}, z.core.$strip>;
|
|
118
113
|
logo: z.ZodObject<{
|
|
119
114
|
lastModified: z.ZodNullable<z.ZodNumber>;
|
|
120
115
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -233,6 +228,7 @@ declare const StaffDetails: z.ZodObject<{
|
|
|
233
228
|
uid: z.ZodString;
|
|
234
229
|
}, z.core.$strip>>;
|
|
235
230
|
partnerMap: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
231
|
+
blackListedMembers: z.ZodArray<z.ZodString>;
|
|
236
232
|
}, z.core.$strip>;
|
|
237
233
|
type StaffDetails = z.infer<typeof StaffDetails>;
|
|
238
234
|
|
package/dist/main.js
CHANGED
|
@@ -61,19 +61,19 @@ var appointmentDistAlgs = z3.enum(["RR", "LOR"]);
|
|
|
61
61
|
var CompanyIdentity = z4.object({
|
|
62
62
|
uid: z4.string().readonly(),
|
|
63
63
|
// The company's uid
|
|
64
|
-
// Organizational
|
|
65
64
|
displayName: z4.string(),
|
|
66
65
|
logo: z4.string().optional(),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
email: z4.email(),
|
|
66
|
+
contact: z4.object({
|
|
67
|
+
email: z4.email(),
|
|
68
|
+
phoneNumber: PhoneNumber.optional()
|
|
69
|
+
}),
|
|
72
70
|
address: Address,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
legal: z4.object({
|
|
72
|
+
regNo: z4.string().readonly(),
|
|
73
|
+
// The company's registration number
|
|
74
|
+
trn: z4.string().optional(),
|
|
75
|
+
gctRegNo: z4.string().optional()
|
|
76
|
+
}),
|
|
77
77
|
...TimeLog.shape
|
|
78
78
|
});
|
|
79
79
|
var CompanyOpState = z4.object({
|
|
@@ -93,14 +93,14 @@ var CompanyPreferences = z4.object({
|
|
|
93
93
|
* @property LOR (Least Outstanding Requests): Distribute based on availability.
|
|
94
94
|
*/
|
|
95
95
|
apptDistAlg: appointmentDistAlgs,
|
|
96
|
-
// Required to determine:
|
|
97
|
-
// [1] when the working directory on the server should reset
|
|
98
|
-
// [2] the time that company session requests are cut-off
|
|
99
|
-
// (the cutoff time affects non-admins)
|
|
100
|
-
workingHours:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}),
|
|
96
|
+
// // Required to determine:
|
|
97
|
+
// // [1] when the working directory on the server should reset
|
|
98
|
+
// // [2] the time that company session requests are cut-off
|
|
99
|
+
// // (the cutoff time affects non-admins)
|
|
100
|
+
// workingHours: z.object({
|
|
101
|
+
// start: Time,
|
|
102
|
+
// end: Time,
|
|
103
|
+
// }),
|
|
104
104
|
...TimeLog.shape
|
|
105
105
|
});
|
|
106
106
|
var CompanyBillingModel = z4.object({
|
|
@@ -120,7 +120,6 @@ var RegisterCompanyForm = z4.object({
|
|
|
120
120
|
slogan: z4.string(),
|
|
121
121
|
email: z4.email(),
|
|
122
122
|
phoneNumber: PhoneNumber,
|
|
123
|
-
workingHours: CompanyPreferences.shape.workingHours,
|
|
124
123
|
logo: FileDetails,
|
|
125
124
|
receipt: FileDetails,
|
|
126
125
|
_claims: z4.string()
|
|
@@ -143,7 +142,8 @@ var StaffDetails = z4.object({
|
|
|
143
142
|
/**
|
|
144
143
|
* @relationship one -> many
|
|
145
144
|
*@description A map of doctor `uids` to their assistants `uids` */
|
|
146
|
-
partnerMap: z4.record(CompanyUser.shape.uid, z4.array(CompanyUser.shape.uid))
|
|
145
|
+
partnerMap: z4.record(CompanyUser.shape.uid, z4.array(CompanyUser.shape.uid)),
|
|
146
|
+
blackListedMembers: z4.array(CompanyUser.shape.uid)
|
|
147
147
|
});
|
|
148
148
|
export {
|
|
149
149
|
CompanyBillingModel,
|