@bizmap/sdk 0.0.104 → 0.0.106

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
@@ -398,6 +398,7 @@ declare const MutableCompanyDetails: z.ZodObject<{
398
398
  }, z.core.$strip>;
399
399
  type MutableCompanyDetails = z.infer<typeof MutableCompanyDetails>;
400
400
 
401
+ declare const MAX_COMPANY_PRICE_MODS = 100;
401
402
  declare const CompanyBilling: z.ZodObject<{
402
403
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
403
404
  additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
@@ -787,40 +788,40 @@ declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
787
788
  industry: z.ZodReadonly<z.ZodEnum<{
788
789
  healthcare: "healthcare";
789
790
  }>>;
790
- address: z.ZodOptional<z.ZodObject<{
791
+ address: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
791
792
  streetAddress: z.ZodString;
792
793
  city: z.ZodOptional<z.ZodString>;
793
794
  parish: z.ZodString;
794
795
  country: z.ZodString;
795
- }, z.core.$strip>>;
796
+ }, z.core.$strip>>>;
796
797
  email: z.ZodEmail;
797
798
  phoneNumber: z.ZodOptional<z.ZodString>;
798
799
  domain: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
799
800
  alias: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
800
- picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
+ picture: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
801
802
  }, z.core.$strip>, z.ZodTransform<{
802
803
  industry: "healthcare";
803
- email: string;
804
- domain: string;
805
- address?: {
804
+ address: {
806
805
  streetAddress: string;
807
806
  parish: string;
808
807
  country: string;
809
808
  city?: string | undefined;
810
- } | undefined;
809
+ };
810
+ email: string;
811
+ domain: string;
811
812
  phoneNumber?: string | undefined;
812
813
  alias?: string | undefined;
813
814
  picture?: string | null | undefined;
814
815
  }, {
815
816
  industry: "healthcare";
816
- email: string;
817
- domain: string;
818
- address?: {
817
+ address: {
819
818
  streetAddress: string;
820
819
  parish: string;
821
820
  country: string;
822
821
  city?: string | undefined;
823
- } | undefined;
822
+ };
823
+ email: string;
824
+ domain: string;
824
825
  phoneNumber?: string | undefined;
825
826
  alias?: string | undefined;
826
827
  picture?: string | null | undefined;
@@ -1937,4 +1938,4 @@ declare function createNotifId(options?: {
1937
1938
  to: string;
1938
1939
  }): string;
1939
1940
 
1940
- export { type AcceptedCurrency, AlphaNumeric, AppointmentDetails, type AppointmentDistAlg, AppointmentSeverity, ClientForm, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, CompanyUser, type CompanyUserRole, CompanyUserSession, type CompanyUserStatus, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, type Industry, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Version, Vitals, acceptedCurrencies, adminRoles, appointmentDistAlgs, calcBalance, calcPriceMod, companyPartnerRoles, companyServiceSelectors, companyUserRoles, companyUserStatus, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, genders, getCompatibleRoles, healthcareProviderRoles, industries, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
1941
+ export { type AcceptedCurrency, AlphaNumeric, AppointmentDetails, type AppointmentDistAlg, AppointmentSeverity, ClientForm, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, CompanyUser, type CompanyUserRole, CompanyUserSession, type CompanyUserStatus, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, type Industry, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Version, Vitals, acceptedCurrencies, adminRoles, appointmentDistAlgs, calcBalance, calcPriceMod, companyPartnerRoles, companyServiceSelectors, companyUserRoles, companyUserStatus, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, genders, getCompatibleRoles, healthcareProviderRoles, industries, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
package/dist/main.js CHANGED
@@ -179,8 +179,9 @@ var CompanyState = z7.object({
179
179
  });
180
180
 
181
181
  // src/schemas/company/components/Billing.ts
182
+ var MAX_COMPANY_PRICE_MODS = 100;
182
183
  var createMod = (resource) => PriceModList.refine(
183
- (d) => Object.values(d).length <= 100,
184
+ (d) => Object.values(d).length <= MAX_COMPANY_PRICE_MODS,
184
185
  `Adding more than 100 ${resource}s is prohibited.`
185
186
  );
186
187
  var CompanyBilling = z8.object({
@@ -728,10 +729,10 @@ import * as z19 from "zod";
728
729
  var CreateCompanyForm = z19.object({
729
730
  domain: CompanyIdentity.shape._id,
730
731
  alias: CompanyIdentity.shape.alias.optional(),
731
- picture: CompanyIdentity.shape.logo,
732
+ picture: CompanyIdentity.shape.logo.optional(),
732
733
  ...CompanyIdentity.shape.contact.pick({ email: true, phoneNumber: true }).shape,
733
734
  industry: CompanyIdentity.shape.industry,
734
- address: CompanyIdentity.shape.address
735
+ address: CompanyIdentity.shape.address.nonoptional()
735
736
  }).transform((data) => {
736
737
  if (!("alias" in data)) {
737
738
  data.alias = normalizeCompanyId(data.domain);
@@ -1134,6 +1135,7 @@ export {
1134
1135
  CreditCurrency,
1135
1136
  InviteResponse,
1136
1137
  InvoiceNo,
1138
+ MAX_COMPANY_PRICE_MODS,
1137
1139
  MedicalDetails,
1138
1140
  Medicine,
1139
1141
  MiniAppointmentDetails,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.104",
3
+ "version": "0.0.106",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",