@bizmap/sdk 0.0.2 → 0.0.3
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 +8 -5
- package/dist/main.js +4 -4
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -214,14 +214,14 @@ declare const CompanyUser: z.ZodObject<{
|
|
|
214
214
|
active: "active";
|
|
215
215
|
inactive: "inactive";
|
|
216
216
|
}>;
|
|
217
|
-
roles: z.ZodEnum<{
|
|
217
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
218
218
|
doc: "doc";
|
|
219
219
|
physAsst: "physAsst";
|
|
220
220
|
rcpst: "rcpst";
|
|
221
221
|
cshr: "cshr";
|
|
222
222
|
fdc: "fdc";
|
|
223
223
|
admin: "admin";
|
|
224
|
-
}
|
|
224
|
+
}>>;
|
|
225
225
|
name: z.ZodRecord<z.ZodEnum<{
|
|
226
226
|
first: "first";
|
|
227
227
|
last: "last";
|
|
@@ -232,6 +232,7 @@ declare const CompanyUser: z.ZodObject<{
|
|
|
232
232
|
uid: z.ZodString;
|
|
233
233
|
}, z.core.$strip>;
|
|
234
234
|
type CompanyUser = z.infer<typeof CompanyUser>;
|
|
235
|
+
type CompanyUserRole = z.infer<typeof companyUserRoles>;
|
|
235
236
|
declare const CompanyUsersOverviewDTO: z.ZodObject<{
|
|
236
237
|
users: z.ZodArray<z.ZodObject<{
|
|
237
238
|
createdAt: z.ZodReadonly<z.ZodNumber>;
|
|
@@ -242,14 +243,14 @@ declare const CompanyUsersOverviewDTO: z.ZodObject<{
|
|
|
242
243
|
active: "active";
|
|
243
244
|
inactive: "inactive";
|
|
244
245
|
}>;
|
|
245
|
-
roles: z.ZodEnum<{
|
|
246
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
246
247
|
doc: "doc";
|
|
247
248
|
physAsst: "physAsst";
|
|
248
249
|
rcpst: "rcpst";
|
|
249
250
|
cshr: "cshr";
|
|
250
251
|
fdc: "fdc";
|
|
251
252
|
admin: "admin";
|
|
252
|
-
}
|
|
253
|
+
}>>;
|
|
253
254
|
name: z.ZodRecord<z.ZodEnum<{
|
|
254
255
|
first: "first";
|
|
255
256
|
last: "last";
|
|
@@ -266,6 +267,7 @@ declare const companyPartnerRoles: z.ZodEnum<{
|
|
|
266
267
|
doc: "doc";
|
|
267
268
|
physAsst: "physAsst";
|
|
268
269
|
}>;
|
|
270
|
+
type CompanyPartnerRole = z.infer<typeof companyPartnerRoles>;
|
|
269
271
|
declare const employeeRoles: z.ZodEnum<{
|
|
270
272
|
doc: "doc";
|
|
271
273
|
physAsst: "physAsst";
|
|
@@ -273,6 +275,7 @@ declare const employeeRoles: z.ZodEnum<{
|
|
|
273
275
|
cshr: "cshr";
|
|
274
276
|
fdc: "fdc";
|
|
275
277
|
}>;
|
|
278
|
+
type EmployeeRole = z.infer<typeof employeeRoles>;
|
|
276
279
|
|
|
277
280
|
declare const TimeLog: z.ZodObject<{
|
|
278
281
|
createdAt: z.ZodReadonly<z.ZodNumber>;
|
|
@@ -281,4 +284,4 @@ declare const TimeLog: z.ZodObject<{
|
|
|
281
284
|
type TimeLog = z.infer<typeof TimeLog>;
|
|
282
285
|
declare const Time: z.ZodString;
|
|
283
286
|
|
|
284
|
-
export { CompanyBillingModel, CompanyInfo, CompanyOpState, CompanyPreferences, CompanyRegistrationClaims, CompanyUser, CompanyUsersOverviewDTO, PriceAdjustment, PriceTag, PricingRate, RegisterCompanyForm, Time, TimeLog, UserCompaniesDTO, appointmentDistAlgs, companyPartnerRoles, companyUserRoles, employeeRoles };
|
|
287
|
+
export { CompanyBillingModel, CompanyInfo, CompanyOpState, type CompanyPartnerRole, CompanyPreferences, CompanyRegistrationClaims, CompanyUser, type CompanyUserRole, CompanyUsersOverviewDTO, type EmployeeRole, PriceAdjustment, PriceTag, PricingRate, RegisterCompanyForm, Time, TimeLog, UserCompaniesDTO, appointmentDistAlgs, companyPartnerRoles, companyUserRoles, employeeRoles };
|
package/dist/main.js
CHANGED
|
@@ -58,7 +58,7 @@ var CompanyUser = z3.object({
|
|
|
58
58
|
...UserModel.shape,
|
|
59
59
|
lastActive: z3.number(),
|
|
60
60
|
status: z3.enum(["inviteSent", "active", "inactive"]),
|
|
61
|
-
roles: companyUserRoles,
|
|
61
|
+
roles: z3.array(companyUserRoles),
|
|
62
62
|
...TimeLog.shape
|
|
63
63
|
});
|
|
64
64
|
var CompanyUsersOverviewDTO = z3.object({
|
|
@@ -66,11 +66,11 @@ var CompanyUsersOverviewDTO = z3.object({
|
|
|
66
66
|
/**doc (one) -> physAsst (many) */
|
|
67
67
|
partnerMap: z3.record(z3.email(), z3.array(z3.email()))
|
|
68
68
|
});
|
|
69
|
-
var companyPartnerRoles =
|
|
69
|
+
var companyPartnerRoles = companyUserRoles.extract([
|
|
70
70
|
"doc",
|
|
71
71
|
"physAsst"
|
|
72
72
|
]);
|
|
73
|
-
var employeeRoles =
|
|
73
|
+
var employeeRoles = companyUserRoles.exclude(["admin"]);
|
|
74
74
|
|
|
75
75
|
// src/schemas/Company.ts
|
|
76
76
|
var CompanyInfo = z4.object({
|
|
@@ -113,7 +113,7 @@ var CompanyBillingModel = z4.object({
|
|
|
113
113
|
uid: z4.string(),
|
|
114
114
|
trn: z4.string().nullish(),
|
|
115
115
|
gctRegNo: z4.string().nullish(),
|
|
116
|
-
billingProvider:
|
|
116
|
+
billingProvider: companyUserRoles.extract(["doc", "physAsst"]),
|
|
117
117
|
primaryCurrency: Currencies,
|
|
118
118
|
additionalFees: z4.array(PriceAdjustment).optional(),
|
|
119
119
|
discounts: z4.array(PriceAdjustment).optional(),
|