@bizmap/sdk 0.0.2 → 0.0.4

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 CHANGED
@@ -127,6 +127,7 @@ declare const RegisterCompanyForm: z.ZodObject<{
127
127
  path: z.ZodString;
128
128
  extension: z.ZodString;
129
129
  description: z.ZodOptional<z.ZodString>;
130
+ mime: z.ZodString;
130
131
  alias: z.ZodEnum<{
131
132
  pdf: "pdf";
132
133
  word: "word";
@@ -145,6 +146,7 @@ declare const RegisterCompanyForm: z.ZodObject<{
145
146
  path: z.ZodString;
146
147
  extension: z.ZodString;
147
148
  description: z.ZodOptional<z.ZodString>;
149
+ mime: z.ZodString;
148
150
  alias: z.ZodEnum<{
149
151
  pdf: "pdf";
150
152
  word: "word";
@@ -214,14 +216,14 @@ declare const CompanyUser: z.ZodObject<{
214
216
  active: "active";
215
217
  inactive: "inactive";
216
218
  }>;
217
- roles: z.ZodEnum<{
219
+ roles: z.ZodArray<z.ZodEnum<{
218
220
  doc: "doc";
219
221
  physAsst: "physAsst";
220
222
  rcpst: "rcpst";
221
223
  cshr: "cshr";
222
224
  fdc: "fdc";
223
225
  admin: "admin";
224
- }>;
226
+ }>>;
225
227
  name: z.ZodRecord<z.ZodEnum<{
226
228
  first: "first";
227
229
  last: "last";
@@ -232,6 +234,7 @@ declare const CompanyUser: z.ZodObject<{
232
234
  uid: z.ZodString;
233
235
  }, z.core.$strip>;
234
236
  type CompanyUser = z.infer<typeof CompanyUser>;
237
+ type CompanyUserRole = z.infer<typeof companyUserRoles>;
235
238
  declare const CompanyUsersOverviewDTO: z.ZodObject<{
236
239
  users: z.ZodArray<z.ZodObject<{
237
240
  createdAt: z.ZodReadonly<z.ZodNumber>;
@@ -242,14 +245,14 @@ declare const CompanyUsersOverviewDTO: z.ZodObject<{
242
245
  active: "active";
243
246
  inactive: "inactive";
244
247
  }>;
245
- roles: z.ZodEnum<{
248
+ roles: z.ZodArray<z.ZodEnum<{
246
249
  doc: "doc";
247
250
  physAsst: "physAsst";
248
251
  rcpst: "rcpst";
249
252
  cshr: "cshr";
250
253
  fdc: "fdc";
251
254
  admin: "admin";
252
- }>;
255
+ }>>;
253
256
  name: z.ZodRecord<z.ZodEnum<{
254
257
  first: "first";
255
258
  last: "last";
@@ -266,6 +269,7 @@ declare const companyPartnerRoles: z.ZodEnum<{
266
269
  doc: "doc";
267
270
  physAsst: "physAsst";
268
271
  }>;
272
+ type CompanyPartnerRole = z.infer<typeof companyPartnerRoles>;
269
273
  declare const employeeRoles: z.ZodEnum<{
270
274
  doc: "doc";
271
275
  physAsst: "physAsst";
@@ -273,6 +277,7 @@ declare const employeeRoles: z.ZodEnum<{
273
277
  cshr: "cshr";
274
278
  fdc: "fdc";
275
279
  }>;
280
+ type EmployeeRole = z.infer<typeof employeeRoles>;
276
281
 
277
282
  declare const TimeLog: z.ZodObject<{
278
283
  createdAt: z.ZodReadonly<z.ZodNumber>;
@@ -281,4 +286,4 @@ declare const TimeLog: z.ZodObject<{
281
286
  type TimeLog = z.infer<typeof TimeLog>;
282
287
  declare const Time: z.ZodString;
283
288
 
284
- export { CompanyBillingModel, CompanyInfo, CompanyOpState, CompanyPreferences, CompanyRegistrationClaims, CompanyUser, CompanyUsersOverviewDTO, PriceAdjustment, PriceTag, PricingRate, RegisterCompanyForm, Time, TimeLog, UserCompaniesDTO, appointmentDistAlgs, companyPartnerRoles, companyUserRoles, employeeRoles };
289
+ 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
@@ -33,7 +33,7 @@ var PriceTag = z2.object({
33
33
  // src/schemas/Company.ts
34
34
  import {
35
35
  Address,
36
- Currencies,
36
+ currencies,
37
37
  FileDetails,
38
38
  PhoneNumber,
39
39
  UserModel as UserModel2
@@ -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 = CompanyUser.shape.roles.extract([
69
+ var companyPartnerRoles = companyUserRoles.extract([
70
70
  "doc",
71
71
  "physAsst"
72
72
  ]);
73
- var employeeRoles = CompanyUser.shape.roles.exclude(["admin"]);
73
+ var employeeRoles = companyUserRoles.exclude(["admin"]);
74
74
 
75
75
  // src/schemas/Company.ts
76
76
  var CompanyInfo = z4.object({
@@ -113,12 +113,12 @@ var CompanyBillingModel = z4.object({
113
113
  uid: z4.string(),
114
114
  trn: z4.string().nullish(),
115
115
  gctRegNo: z4.string().nullish(),
116
- billingProvider: CompanyUser.shape.roles.extract(["doc", "physAsst"]),
117
- primaryCurrency: Currencies,
116
+ billingProvider: companyUserRoles.extract(["doc", "physAsst"]),
117
+ primaryCurrency: currencies,
118
118
  additionalFees: z4.array(PriceAdjustment).optional(),
119
119
  discounts: z4.array(PriceAdjustment).optional(),
120
120
  services: z4.array(PriceTag),
121
- acceptedCurrencies: z4.array(Currencies),
121
+ acceptedCurrencies: z4.array(currencies),
122
122
  ...TimeLog.shape
123
123
  });
124
124
  var RegisterCompanyForm = z4.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  "license": "MIT",
18
18
  "description": "",
19
19
  "devDependencies": {
20
- "@wavy/util": "^0.0.4",
20
+ "@wavy/util": "^0.0.6",
21
21
  "tsup": "^8.5.0",
22
22
  "typescript": "^5.9.2",
23
23
  "zod": "^4.2.1"