@bizmap/sdk 0.0.129 → 0.0.130

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
@@ -115,7 +115,7 @@ declare const CompanyDetails: z.ZodObject<{
115
115
  tktNo: z.ZodInt;
116
116
  }, z.core.$strip>;
117
117
  }, z.core.$strip>;
118
- preferences: z.ZodObject<{
118
+ preference: z.ZodObject<{
119
119
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
120
120
  lastModified: z.ZodOptional<z.ZodISODateTime>;
121
121
  serviceSelector: z.ZodEnum<{
@@ -484,7 +484,7 @@ declare const CompanyNotifications: z.ZodArray<z.ZodObject<{
484
484
  }, z.core.$strip>>;
485
485
  type CompanyNotifications = z.infer<typeof CompanyNotifications>;
486
486
 
487
- declare const CompanyPreferences: z.ZodObject<{
487
+ declare const CompanyPreference: z.ZodObject<{
488
488
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
489
489
  lastModified: z.ZodOptional<z.ZodISODateTime>;
490
490
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -499,7 +499,7 @@ declare const CompanyPreferences: z.ZodObject<{
499
499
  }>;
500
500
  servicesDeployed: z.ZodBoolean;
501
501
  }, z.core.$strip>;
502
- type CompanyPreferences = z.infer<typeof CompanyPreferences>;
502
+ type CompanyPreference = z.infer<typeof CompanyPreference>;
503
503
  declare const MutableCompanyPreferences: z.ZodObject<{
504
504
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
505
505
  serviceSelector: z.ZodEnum<{
@@ -1218,4 +1218,4 @@ declare function createNotifId(options?: {
1218
1218
  to: string;
1219
1219
  }): string;
1220
1220
 
1221
- export { type AcceptedCurrency, AlphaNumeric, COMPANY_USER_RELATIONSHIP, ClientDetails, ClientForm, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyIndustry, CompanyMemberRoles, CompanyNotifications, CompanyPreferences, type CompanyServiceSelector, CompanySession, CompanyStaff, CompanyState, type CompanyUserRole, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, MutableCompanyStaff, MutableServiceDetails, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, ServiceDetails, type ServiceDistAlg, ServiceSeverity, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Vitals, acceptedCurrencies, adminRoles, calcBalance, calcPriceMod, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, genders, getCompatibleRoles, getIncompatibleRoles, healthcareProviderRoles, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, safeParseSector, serviceDistAlgs, tiers, vitalKeys };
1221
+ export { type AcceptedCurrency, AlphaNumeric, COMPANY_USER_RELATIONSHIP, ClientDetails, ClientForm, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyIndustry, CompanyMemberRoles, CompanyNotifications, CompanyPreference, type CompanyServiceSelector, CompanySession, CompanyStaff, CompanyState, type CompanyUserRole, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, MutableCompanyStaff, MutableServiceDetails, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, ServiceDetails, type ServiceDistAlg, ServiceSeverity, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Vitals, acceptedCurrencies, adminRoles, calcBalance, calcPriceMod, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, genders, getCompatibleRoles, getIncompatibleRoles, healthcareProviderRoles, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, safeParseSector, serviceDistAlgs, tiers, vitalKeys };
package/dist/main.js CHANGED
@@ -252,7 +252,7 @@ var MutableCompanyIdentity = CompanyIdentity.pick({
252
252
 
253
253
  // src/schemas/company/components/Preferences.ts
254
254
  import * as z10 from "zod";
255
- var CompanyPreferences = z10.object({
255
+ var CompanyPreference = z10.object({
256
256
  _id: CompanyState.shape._id,
257
257
  /** The user that's allowed to record the client's services. */
258
258
  serviceSelector: companyServiceSelectors,
@@ -269,7 +269,7 @@ var CompanyPreferences = z10.object({
269
269
  (data) => !data.pps || data.pps && data.serviceSelector === "scheduler",
270
270
  `Pay per service is only allowed when the service selector is the "${"scheduler"}".`
271
271
  );
272
- var MutableCompanyPreferences = CompanyPreferences.omit({
272
+ var MutableCompanyPreferences = CompanyPreference.omit({
273
273
  _id: true,
274
274
  lastModified: true
275
275
  });
@@ -477,7 +477,7 @@ var CompanyDetails = z14.object({
477
477
  // notifications: CompanyNotifications,
478
478
  // receipts: Receipts,
479
479
  state: CompanyState.omit({ _id: true }),
480
- preferences: CompanyPreferences.omit({ _id: true }),
480
+ preference: CompanyPreference.omit({ _id: true }),
481
481
  billing: CompanyBilling.omit({ _id: true }),
482
482
  staff: CompanyStaff.omit({ _id: true })
483
483
  });
@@ -848,7 +848,7 @@ export {
848
848
  CompanyIndustry,
849
849
  CompanyMemberRoles,
850
850
  CompanyNotifications,
851
- CompanyPreferences,
851
+ CompanyPreference,
852
852
  CompanySession,
853
853
  CompanyStaff,
854
854
  CompanyState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.129",
3
+ "version": "0.0.130",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",