@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.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.int().min(10, "A timestamp must have at least (10) digits.").max(15, "A timestamp can't have more than (15) digits.").positive();
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.97",
3
+ "version": "0.0.99",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",