@bizmap/sdk 0.0.86 → 0.0.87
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 +7 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -2004,10 +2004,11 @@ declare const findConflictingPartners: (...partners: (CompanyUser | MiniCompanyU
|
|
|
2004
2004
|
* */
|
|
2005
2005
|
declare const getCompatibleRoles: (role: CompanyUserRole) => CompanyUserRole[];
|
|
2006
2006
|
declare const normalizeCompanyId: (id: string) => string;
|
|
2007
|
+
declare const normalizeNidClass: (value: NidClass) => string;
|
|
2007
2008
|
|
|
2008
2009
|
declare function createNotifId(options?: {
|
|
2009
2010
|
from: string;
|
|
2010
2011
|
to: string;
|
|
2011
2012
|
}): string;
|
|
2012
2013
|
|
|
2013
|
-
export { AppointmentDetails, type AppointmentDistAlg, ClientForm, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, type CompanyType, CompanyUser, type CompanyUserRole, CompanyUserSession, type CompanyUserStatus, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, type NidClass, Notification, type PaymentMethod, PriceAdjustment, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, UserDetails, Version, Vitals, adminRoles, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyTypes, companyUserRoles, companyUserStatus, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, genders, getCompatibleRoles, healthcareProviderRoles, nidClasses, normalizeCompanyId, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
|
|
2014
|
+
export { AppointmentDetails, type AppointmentDistAlg, ClientForm, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, type CompanyType, CompanyUser, type CompanyUserRole, CompanyUserSession, type CompanyUserStatus, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, type NidClass, Notification, type PaymentMethod, PriceAdjustment, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, UserDetails, Version, Vitals, adminRoles, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyTypes, companyUserRoles, companyUserStatus, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, genders, getCompatibleRoles, healthcareProviderRoles, nidClasses, normalizeCompanyId, normalizeNidClass, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
|
package/dist/main.js
CHANGED
|
@@ -393,7 +393,7 @@ import * as z15 from "zod";
|
|
|
393
393
|
import * as z14 from "zod";
|
|
394
394
|
|
|
395
395
|
// src/functions/helper-functions.ts
|
|
396
|
-
import { upperFirst as upperFirst2 } from "@wavy/fn";
|
|
396
|
+
import { camelCaseToLetter, upperFirst as upperFirst2 } from "@wavy/fn";
|
|
397
397
|
var findConflictingPartners = (...partners) => {
|
|
398
398
|
let hasSingleDoctor = false;
|
|
399
399
|
const conflicts = [];
|
|
@@ -426,6 +426,11 @@ var getCompatibleRoles = (role) => {
|
|
|
426
426
|
var normalizeCompanyId = (id) => {
|
|
427
427
|
return id.split("-").map((value) => upperFirst2(value.toLowerCase())).join(" ");
|
|
428
428
|
};
|
|
429
|
+
var normalizeNidClass = (value) => {
|
|
430
|
+
value = nidClasses.parse(value);
|
|
431
|
+
if (value === "nin") return "National Id No.";
|
|
432
|
+
return camelCaseToLetter(value.replace("No", "No."));
|
|
433
|
+
};
|
|
429
434
|
|
|
430
435
|
// src/schemas/profiles/User.ts
|
|
431
436
|
import { UserModel } from "@wavy/util";
|
|
@@ -1073,6 +1078,7 @@ export {
|
|
|
1073
1078
|
healthcareProviderRoles,
|
|
1074
1079
|
nidClasses,
|
|
1075
1080
|
normalizeCompanyId,
|
|
1081
|
+
normalizeNidClass,
|
|
1076
1082
|
paymentMethods,
|
|
1077
1083
|
scheduleAppointment,
|
|
1078
1084
|
serviceProviders,
|