@bizmap/sdk 0.0.82 → 0.0.84
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 +24 -1
- package/dist/main.js +11 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -1113,6 +1113,25 @@ declare const ClientIdentity: z.ZodObject<{
|
|
|
1113
1113
|
linkedTo: z.ZodOptional<z.ZodUUID>;
|
|
1114
1114
|
}, z.core.$strip>;
|
|
1115
1115
|
type ClientIdentity = z.infer<typeof ClientIdentity>;
|
|
1116
|
+
declare const ClientForm: z.ZodObject<{
|
|
1117
|
+
firstName: z.ZodNonOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1118
|
+
lastName: z.ZodNonOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1119
|
+
middleName: z.ZodNonOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1120
|
+
dob: z.ZodNonOptional<z.ZodInt>;
|
|
1121
|
+
sex: z.ZodNonOptional<z.ZodEnum<{
|
|
1122
|
+
male: "male";
|
|
1123
|
+
female: "female";
|
|
1124
|
+
}>>;
|
|
1125
|
+
attributes: z.ZodNonOptional<z.ZodObject<{
|
|
1126
|
+
mothersMaidenName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1127
|
+
fathersMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1128
|
+
mothersMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1129
|
+
oldestSiblingMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1130
|
+
firstSchoolName: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
}, z.core.$strip>>;
|
|
1133
|
+
}, z.core.$strip>;
|
|
1134
|
+
type ClientForm = z.infer<typeof ClientForm>;
|
|
1116
1135
|
|
|
1117
1136
|
declare const MiniAppointmentDetails: z.ZodObject<{
|
|
1118
1137
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
@@ -1244,6 +1263,7 @@ declare const MiniAppointmentDetails: z.ZodObject<{
|
|
|
1244
1263
|
}>;
|
|
1245
1264
|
amount: z.ZodNumber;
|
|
1246
1265
|
}, z.core.$strip>>>>;
|
|
1266
|
+
lockedBy: z.ZodOptional<z.ZodUUID>;
|
|
1247
1267
|
timeline: z.ZodObject<{
|
|
1248
1268
|
scheduler: z.ZodObject<{
|
|
1249
1269
|
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
@@ -1393,6 +1413,7 @@ declare const AppointmentDetails: z.ZodObject<{
|
|
|
1393
1413
|
}>;
|
|
1394
1414
|
amount: z.ZodNumber;
|
|
1395
1415
|
}, z.core.$strip>>>>;
|
|
1416
|
+
lockedBy: z.ZodOptional<z.ZodUUID>;
|
|
1396
1417
|
timeline: z.ZodObject<{
|
|
1397
1418
|
scheduler: z.ZodObject<{
|
|
1398
1419
|
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
@@ -1576,6 +1597,7 @@ declare const MutableAppointmentDetails: z.ZodObject<{
|
|
|
1576
1597
|
}>;
|
|
1577
1598
|
amount: z.ZodNumber;
|
|
1578
1599
|
}, z.core.$strip>>>>;
|
|
1600
|
+
lockedBy: z.ZodOptional<z.ZodUUID>;
|
|
1579
1601
|
timeline: z.ZodObject<{
|
|
1580
1602
|
scheduler: z.ZodObject<{
|
|
1581
1603
|
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
@@ -1896,6 +1918,7 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
|
|
|
1896
1918
|
amount: number;
|
|
1897
1919
|
lastModified?: number | null | undefined;
|
|
1898
1920
|
}[] | null | undefined;
|
|
1921
|
+
lockedBy?: string | undefined;
|
|
1899
1922
|
};
|
|
1900
1923
|
}>;
|
|
1901
1924
|
|
|
@@ -1958,4 +1981,4 @@ declare function createNotifId(options?: {
|
|
|
1958
1981
|
to: string;
|
|
1959
1982
|
}): string;
|
|
1960
1983
|
|
|
1961
|
-
export { AppointmentDetails, type AppointmentDistAlg, 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, 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, normalizeCompanyId, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
|
|
1984
|
+
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, 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, normalizeCompanyId, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
|
package/dist/main.js
CHANGED
|
@@ -722,6 +722,14 @@ var ClientIdentity = UserDetails.pick({
|
|
|
722
722
|
linkedTo: UserDetails.shape._id.optional()
|
|
723
723
|
}).shape
|
|
724
724
|
);
|
|
725
|
+
var ClientForm = ClientIdentity.pick({
|
|
726
|
+
firstName: true,
|
|
727
|
+
middleName: true,
|
|
728
|
+
lastName: true,
|
|
729
|
+
dob: true,
|
|
730
|
+
sex: true,
|
|
731
|
+
attributes: true
|
|
732
|
+
}).required();
|
|
725
733
|
|
|
726
734
|
// src/schemas/appointment/Appointment.ts
|
|
727
735
|
import * as z21 from "zod";
|
|
@@ -781,6 +789,8 @@ var MiniAppointmentDetails = z21.object({
|
|
|
781
789
|
...TimeLog.shape
|
|
782
790
|
})
|
|
783
791
|
).max(100).nullish(),
|
|
792
|
+
// The user that is currently modifying the appointment
|
|
793
|
+
lockedBy: UserDetails.shape._id.optional(),
|
|
784
794
|
timeline: z21.object({
|
|
785
795
|
scheduler: TimelineActivity,
|
|
786
796
|
physAsst: TimelineActivity.or(z21.literal("none")),
|
|
@@ -1000,6 +1010,7 @@ function createNotifId(options) {
|
|
|
1000
1010
|
}
|
|
1001
1011
|
export {
|
|
1002
1012
|
AppointmentDetails,
|
|
1013
|
+
ClientForm,
|
|
1003
1014
|
ClientIdentity,
|
|
1004
1015
|
CompanyBilling,
|
|
1005
1016
|
CompanyDetails,
|