@bizmap/sdk 0.0.98 → 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,13 +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().positive().superRefine((d, ctx) => {
84
- const totalDigits = d.toString().length;
85
- if (totalDigits < 10)
86
- ctx.addIssue("A timestamp must have at least (10) digits.");
87
- else if (totalDigits > 15)
88
- ctx.addIssue("A timestamp can't have more than (15) digits.");
89
- });
83
+ var Timestamp = z5.iso.datetime();
90
84
  var InviteResponse = z5.enum(["accepted", "declined"]);
91
85
  var TimeLog = z5.object({
92
86
  createdAt: Timestamp.readonly(),
@@ -968,7 +962,7 @@ async function scheduleAppointment(request) {
968
962
  let selectedDoctor = null;
969
963
  let selectedPhysAsst = null;
970
964
  const availableDoctors = findAvailableStaff("doc", staffDetailsCopy);
971
- const today = Date.now();
965
+ const today = new Date(Date.now()).toISOString();
972
966
  if (!companyUser || !companyUser?.roles?.includes?.("rcpst")) {
973
967
  throw new Error("Permissions missing.");
974
968
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.98",
3
+ "version": "0.0.99",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",