@bizmap/sdk 0.0.67 → 0.0.68

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
@@ -36,6 +36,10 @@ declare const companyServiceSelectors: z.ZodEnum<{
36
36
  doctor: "doctor";
37
37
  }>;
38
38
  type CompanyServiceSelector = z.infer<typeof companyServiceSelectors>;
39
+ declare const companyTypes: z.ZodEnum<{
40
+ MEDICAL: "MEDICAL";
41
+ }>;
42
+ type CompanyType = z.infer<typeof companyTypes>;
39
43
 
40
44
  declare const tiers: z.ZodEnum<{
41
45
  basic: "basic";
@@ -69,6 +73,9 @@ declare const serviceProviders: z.ZodEnum<{
69
73
  declare const CompanyDetails: z.ZodObject<{
70
74
  _id: z.ZodUUID;
71
75
  identity: z.ZodObject<{
76
+ type: z.ZodReadonly<z.ZodEnum<{
77
+ MEDICAL: "MEDICAL";
78
+ }>>;
72
79
  lastModified: z.ZodNullable<z.ZodInt>;
73
80
  address: z.ZodObject<{
74
81
  streetAddress: z.ZodString;
@@ -548,16 +555,19 @@ declare const CompanyIdentity: z.ZodObject<{
548
555
  _id: z.ZodUUID;
549
556
  displayName: z.ZodString;
550
557
  logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
- contact: z.ZodObject<{
552
- email: z.ZodEmail;
553
- phoneNumber: z.ZodOptional<z.ZodString>;
554
- }, z.core.$strip>;
558
+ type: z.ZodReadonly<z.ZodEnum<{
559
+ MEDICAL: "MEDICAL";
560
+ }>>;
555
561
  address: z.ZodObject<{
556
562
  streetAddress: z.ZodString;
557
563
  city: z.ZodOptional<z.ZodString>;
558
564
  parish: z.ZodString;
559
565
  country: z.ZodString;
560
566
  }, z.core.$strip>;
567
+ contact: z.ZodObject<{
568
+ email: z.ZodEmail;
569
+ phoneNumber: z.ZodOptional<z.ZodString>;
570
+ }, z.core.$strip>;
561
571
  tier: z.ZodObject<{
562
572
  current: z.ZodEnum<{
563
573
  basic: "basic";
@@ -1774,4 +1784,4 @@ declare function createNotifId(options?: {
1774
1784
  to: string;
1775
1785
  }): string;
1776
1786
 
1777
- export { AppointmentDetails, type AppointmentDistAlg, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, CompanyUser, type CompanyUserRole, CreditCurrency, type EmployeeRole, type HealthcareProviderRole, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, type PaymentMethod, PriceAdjustment, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, UserDetails, Vitals, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, getCompatibleRoles, healthcareProviderRoles, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
1787
+ export { AppointmentDetails, type AppointmentDistAlg, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, type CompanyType, CompanyUser, type CompanyUserRole, CreditCurrency, type EmployeeRole, type HealthcareProviderRole, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, type PaymentMethod, PriceAdjustment, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, UserDetails, Vitals, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyTypes, companyUserRoles, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, getCompatibleRoles, healthcareProviderRoles, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
package/dist/main.js CHANGED
@@ -18,6 +18,7 @@ var healthcareProviderRoles = companyUserRoles.extract([
18
18
  ]);
19
19
  var appointmentDistAlgs = z.enum(["RR", "LOR"]);
20
20
  var companyServiceSelectors = z.enum(["scheduler", "doctor"]);
21
+ var companyTypes = z.enum(["MEDICAL"]);
21
22
 
22
23
  // src/enums/Global.ts
23
24
  import * as z2 from "zod";
@@ -181,13 +182,12 @@ var CompanyIdentity = z9.object({
181
182
  _id: CompanyState.shape._id,
182
183
  displayName: z9.string().min(3).max(25),
183
184
  logo: z9.string().max(150).nullish(),
184
- /** Hash this field */
185
- // password: z.string(),
185
+ type: companyTypes.readonly(),
186
+ address: Address,
186
187
  contact: z9.object({
187
188
  email: z9.email().max(25),
188
189
  phoneNumber: PhoneNumber.optional()
189
190
  }),
190
- address: Address,
191
191
  // Can only be changed by the server
192
192
  tier: z9.object({
193
193
  current: tiers,
@@ -945,6 +945,7 @@ export {
945
945
  appointmentDistAlgs,
946
946
  companyPartnerRoles,
947
947
  companyServiceSelectors,
948
+ companyTypes,
948
949
  companyUserRoles,
949
950
  createNotifId,
950
951
  employeeRoles,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",