@bizmap/sdk 0.0.86 → 0.0.88

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
@@ -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,12 @@ 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
+ if (value === "trn") return "Tax Registration No.";
433
+ return camelCaseToLetter(value.replace("No", "No."));
434
+ };
429
435
 
430
436
  // src/schemas/profiles/User.ts
431
437
  import { UserModel } from "@wavy/util";
@@ -1073,6 +1079,7 @@ export {
1073
1079
  healthcareProviderRoles,
1074
1080
  nidClasses,
1075
1081
  normalizeCompanyId,
1082
+ normalizeNidClass,
1076
1083
  paymentMethods,
1077
1084
  scheduleAppointment,
1078
1085
  serviceProviders,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.86",
3
+ "version": "0.0.88",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",