@bizmap/sdk 0.0.105 → 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 +2 -1
- package/dist/main.js +3 -1
- package/package.json +1 -1
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<{
|
|
@@ -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 <=
|
|
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({
|
|
@@ -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,
|