order3000 1.0.0 → 1.0.1

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/client.d.cts CHANGED
@@ -727,7 +727,7 @@ interface components {
727
727
  id?: string;
728
728
  startTime?: string;
729
729
  endTime?: string | null;
730
- dayOfWeek: components["schemas"]["DayOfWeek"];
730
+ dayOfWeek?: components["schemas"]["DayOfWeek"];
731
731
  isSchedulable?: boolean | null;
732
732
  }[];
733
733
  scheduleOverrides: {
@@ -737,10 +737,11 @@ interface components {
737
737
  [key: string]: string;
738
738
  } | null;
739
739
  timeSlots: {
740
- id: string;
741
- startTime: string;
742
- endTime: string | null;
743
- isSchedulable: boolean | null;
740
+ id?: string;
741
+ startTime?: string;
742
+ endTime?: string | null;
743
+ dayOfWeek?: components["schemas"]["DayOfWeek"];
744
+ isSchedulable?: boolean | null;
744
745
  }[];
745
746
  }[];
746
747
  promotions: {
@@ -2013,8 +2014,12 @@ type MakeReservationResponse = schemas['MakeReservationResponse'];
2013
2014
  */
2014
2015
  type DayOfWeek = NonNullable<NonNullable<schemas['FetchEventsResponse'][number]['schedule']>['scheduleTimeSlots'][number]['dayOfWeek']>;
2015
2016
  /**
2016
- * A single regular (by-day-of-week) time slot for an event. Generated-bound
2017
- * to the events list response's `timeSlots[]` element.
2017
+ * A single event time slot — the one slot shape, used by both the weekly
2018
+ * recurring `timeSlots[]` and the per-date `scheduleOverrides[].timeSlots[]`.
2019
+ * `dayOfWeek` is present only on weekly slots (optional); every field is
2020
+ * optional because the underlying join row may be absent, so consumers
2021
+ * resolving "the slots bookable on date X" must guard. Generated-bound to
2022
+ * the events list response's `timeSlots[]` element.
2018
2023
  */
2019
2024
  type TimeSlot = schemas['FetchEventsResponse'][number]['timeSlots'][number];
2020
2025
  /**
package/dist/client.d.mts CHANGED
@@ -727,7 +727,7 @@ interface components {
727
727
  id?: string;
728
728
  startTime?: string;
729
729
  endTime?: string | null;
730
- dayOfWeek: components["schemas"]["DayOfWeek"];
730
+ dayOfWeek?: components["schemas"]["DayOfWeek"];
731
731
  isSchedulable?: boolean | null;
732
732
  }[];
733
733
  scheduleOverrides: {
@@ -737,10 +737,11 @@ interface components {
737
737
  [key: string]: string;
738
738
  } | null;
739
739
  timeSlots: {
740
- id: string;
741
- startTime: string;
742
- endTime: string | null;
743
- isSchedulable: boolean | null;
740
+ id?: string;
741
+ startTime?: string;
742
+ endTime?: string | null;
743
+ dayOfWeek?: components["schemas"]["DayOfWeek"];
744
+ isSchedulable?: boolean | null;
744
745
  }[];
745
746
  }[];
746
747
  promotions: {
@@ -2013,8 +2014,12 @@ type MakeReservationResponse = schemas['MakeReservationResponse'];
2013
2014
  */
2014
2015
  type DayOfWeek = NonNullable<NonNullable<schemas['FetchEventsResponse'][number]['schedule']>['scheduleTimeSlots'][number]['dayOfWeek']>;
2015
2016
  /**
2016
- * A single regular (by-day-of-week) time slot for an event. Generated-bound
2017
- * to the events list response's `timeSlots[]` element.
2017
+ * A single event time slot — the one slot shape, used by both the weekly
2018
+ * recurring `timeSlots[]` and the per-date `scheduleOverrides[].timeSlots[]`.
2019
+ * `dayOfWeek` is present only on weekly slots (optional); every field is
2020
+ * optional because the underlying join row may be absent, so consumers
2021
+ * resolving "the slots bookable on date X" must guard. Generated-bound to
2022
+ * the events list response's `timeSlots[]` element.
2018
2023
  */
2019
2024
  type TimeSlot = schemas['FetchEventsResponse'][number]['timeSlots'][number];
2020
2025
  /**
package/dist/schemas.cjs CHANGED
@@ -1311,7 +1311,7 @@ const fetchEventsResponseSchema = v4.z.array(
1311
1311
  startTime: v4.z.optional(v4.z.string()),
1312
1312
  endTime: v4.z.string().nullish(),
1313
1313
  get dayOfWeek() {
1314
- return dayOfWeekSchema;
1314
+ return dayOfWeekSchema.optional();
1315
1315
  },
1316
1316
  isSchedulable: v4.z.boolean().nullish()
1317
1317
  })
@@ -1323,10 +1323,13 @@ const fetchEventsResponseSchema = v4.z.array(
1323
1323
  reason: v4.z.nullable(v4.z.object({}).catchall(v4.z.string())),
1324
1324
  timeSlots: v4.z.array(
1325
1325
  v4.z.object({
1326
- id: v4.z.string(),
1327
- startTime: v4.z.string(),
1328
- endTime: v4.z.nullable(v4.z.string()),
1329
- isSchedulable: v4.z.nullable(v4.z.boolean())
1326
+ id: v4.z.optional(v4.z.string()),
1327
+ startTime: v4.z.optional(v4.z.string()),
1328
+ endTime: v4.z.string().nullish(),
1329
+ get dayOfWeek() {
1330
+ return dayOfWeekSchema.optional();
1331
+ },
1332
+ isSchedulable: v4.z.boolean().nullish()
1330
1333
  })
1331
1334
  )
1332
1335
  })
@@ -1310,7 +1310,7 @@ declare const schemas: {
1310
1310
  id: zod.ZodOptional<zod.ZodString>;
1311
1311
  startTime: zod.ZodOptional<zod.ZodString>;
1312
1312
  endTime: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1313
- dayOfWeek: zod.ZodEnum<{
1313
+ dayOfWeek: zod.ZodOptional<zod.ZodEnum<{
1314
1314
  monday: "monday";
1315
1315
  tuesday: "tuesday";
1316
1316
  wednesday: "wednesday";
@@ -1318,7 +1318,7 @@ declare const schemas: {
1318
1318
  friday: "friday";
1319
1319
  saturday: "saturday";
1320
1320
  sunday: "sunday";
1321
- }>;
1321
+ }>>;
1322
1322
  isSchedulable: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
1323
1323
  }, zod_v4_core.$strip>>;
1324
1324
  scheduleOverrides: zod.ZodArray<zod.ZodObject<{
@@ -1326,10 +1326,19 @@ declare const schemas: {
1326
1326
  date: zod.ZodString;
1327
1327
  reason: zod.ZodNullable<zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodString>>>;
1328
1328
  timeSlots: zod.ZodArray<zod.ZodObject<{
1329
- id: zod.ZodString;
1330
- startTime: zod.ZodString;
1331
- endTime: zod.ZodNullable<zod.ZodString>;
1332
- isSchedulable: zod.ZodNullable<zod.ZodBoolean>;
1329
+ id: zod.ZodOptional<zod.ZodString>;
1330
+ startTime: zod.ZodOptional<zod.ZodString>;
1331
+ endTime: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1332
+ dayOfWeek: zod.ZodOptional<zod.ZodEnum<{
1333
+ monday: "monday";
1334
+ tuesday: "tuesday";
1335
+ wednesday: "wednesday";
1336
+ thursday: "thursday";
1337
+ friday: "friday";
1338
+ saturday: "saturday";
1339
+ sunday: "sunday";
1340
+ }>>;
1341
+ isSchedulable: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
1333
1342
  }, zod_v4_core.$strip>>;
1334
1343
  }, zod_v4_core.$strip>>;
1335
1344
  promotions: zod.ZodArray<zod.ZodObject<{
@@ -1310,7 +1310,7 @@ declare const schemas: {
1310
1310
  id: zod.ZodOptional<zod.ZodString>;
1311
1311
  startTime: zod.ZodOptional<zod.ZodString>;
1312
1312
  endTime: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1313
- dayOfWeek: zod.ZodEnum<{
1313
+ dayOfWeek: zod.ZodOptional<zod.ZodEnum<{
1314
1314
  monday: "monday";
1315
1315
  tuesday: "tuesday";
1316
1316
  wednesday: "wednesday";
@@ -1318,7 +1318,7 @@ declare const schemas: {
1318
1318
  friday: "friday";
1319
1319
  saturday: "saturday";
1320
1320
  sunday: "sunday";
1321
- }>;
1321
+ }>>;
1322
1322
  isSchedulable: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
1323
1323
  }, zod_v4_core.$strip>>;
1324
1324
  scheduleOverrides: zod.ZodArray<zod.ZodObject<{
@@ -1326,10 +1326,19 @@ declare const schemas: {
1326
1326
  date: zod.ZodString;
1327
1327
  reason: zod.ZodNullable<zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodString>>>;
1328
1328
  timeSlots: zod.ZodArray<zod.ZodObject<{
1329
- id: zod.ZodString;
1330
- startTime: zod.ZodString;
1331
- endTime: zod.ZodNullable<zod.ZodString>;
1332
- isSchedulable: zod.ZodNullable<zod.ZodBoolean>;
1329
+ id: zod.ZodOptional<zod.ZodString>;
1330
+ startTime: zod.ZodOptional<zod.ZodString>;
1331
+ endTime: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1332
+ dayOfWeek: zod.ZodOptional<zod.ZodEnum<{
1333
+ monday: "monday";
1334
+ tuesday: "tuesday";
1335
+ wednesday: "wednesday";
1336
+ thursday: "thursday";
1337
+ friday: "friday";
1338
+ saturday: "saturday";
1339
+ sunday: "sunday";
1340
+ }>>;
1341
+ isSchedulable: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
1333
1342
  }, zod_v4_core.$strip>>;
1334
1343
  }, zod_v4_core.$strip>>;
1335
1344
  promotions: zod.ZodArray<zod.ZodObject<{
package/dist/schemas.mjs CHANGED
@@ -1309,7 +1309,7 @@ const fetchEventsResponseSchema = z.array(
1309
1309
  startTime: z.optional(z.string()),
1310
1310
  endTime: z.string().nullish(),
1311
1311
  get dayOfWeek() {
1312
- return dayOfWeekSchema;
1312
+ return dayOfWeekSchema.optional();
1313
1313
  },
1314
1314
  isSchedulable: z.boolean().nullish()
1315
1315
  })
@@ -1321,10 +1321,13 @@ const fetchEventsResponseSchema = z.array(
1321
1321
  reason: z.nullable(z.object({}).catchall(z.string())),
1322
1322
  timeSlots: z.array(
1323
1323
  z.object({
1324
- id: z.string(),
1325
- startTime: z.string(),
1326
- endTime: z.nullable(z.string()),
1327
- isSchedulable: z.nullable(z.boolean())
1324
+ id: z.optional(z.string()),
1325
+ startTime: z.optional(z.string()),
1326
+ endTime: z.string().nullish(),
1327
+ get dayOfWeek() {
1328
+ return dayOfWeekSchema.optional();
1329
+ },
1330
+ isSchedulable: z.boolean().nullish()
1328
1331
  })
1329
1332
  )
1330
1333
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",