@bizmap/sdk 0.0.97 → 0.0.99
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 +282 -282
- package/dist/main.js +2 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -80,7 +80,7 @@ var StandardTime = z5.string().trim().refine(
|
|
|
80
80
|
(d) => d && d.replace(/^(01|(0[2-9])|(1[0-2])):(([1-5][0-9])|0[0-9]) (am|pm)/i, "").length === 0,
|
|
81
81
|
'Invalid standard time: must match the pattern "hh:mm A"'
|
|
82
82
|
);
|
|
83
|
-
var Timestamp = z5.
|
|
83
|
+
var Timestamp = z5.iso.datetime();
|
|
84
84
|
var InviteResponse = z5.enum(["accepted", "declined"]);
|
|
85
85
|
var TimeLog = z5.object({
|
|
86
86
|
createdAt: Timestamp.readonly(),
|
|
@@ -962,7 +962,7 @@ async function scheduleAppointment(request) {
|
|
|
962
962
|
let selectedDoctor = null;
|
|
963
963
|
let selectedPhysAsst = null;
|
|
964
964
|
const availableDoctors = findAvailableStaff("doc", staffDetailsCopy);
|
|
965
|
-
const today = Date.now();
|
|
965
|
+
const today = new Date(Date.now()).toISOString();
|
|
966
966
|
if (!companyUser || !companyUser?.roles?.includes?.("rcpst")) {
|
|
967
967
|
throw new Error("Permissions missing.");
|
|
968
968
|
}
|