@voyantjs/availability-react 0.28.3 → 0.29.0

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.
@@ -12,7 +12,7 @@ export declare function useAvailabilitySlotMutation(): {
12
12
  startsAt: string;
13
13
  endsAt: string | null;
14
14
  timezone: string;
15
- status: "open" | "closed" | "sold_out" | "cancelled";
15
+ status: "cancelled" | "open" | "closed" | "sold_out";
16
16
  unlimited: boolean;
17
17
  initialPax: number | null;
18
18
  remainingPax: number | null;
@@ -31,7 +31,7 @@ export declare function useAvailabilitySlotMutation(): {
31
31
  availabilityRuleId?: string | null | undefined;
32
32
  startTimeId?: string | null | undefined;
33
33
  endsAt?: string | null | undefined;
34
- status?: "open" | "closed" | "sold_out" | "cancelled" | undefined;
34
+ status?: "cancelled" | "open" | "closed" | "sold_out" | undefined;
35
35
  unlimited?: boolean | undefined;
36
36
  initialPax?: number | null | undefined;
37
37
  remainingPax?: number | null | undefined;
@@ -56,7 +56,7 @@ export declare function useAvailabilitySlotMutation(): {
56
56
  startsAt: string;
57
57
  endsAt: string | null;
58
58
  timezone: string;
59
- status: "open" | "closed" | "sold_out" | "cancelled";
59
+ status: "cancelled" | "open" | "closed" | "sold_out";
60
60
  unlimited: boolean;
61
61
  initialPax: number | null;
62
62
  remainingPax: number | null;
@@ -15,7 +15,7 @@ export declare function useSlots(options?: UseSlotsOptions): import("@tanstack/r
15
15
  startsAt: string;
16
16
  endsAt: string | null;
17
17
  timezone: string;
18
- status: "open" | "closed" | "sold_out" | "cancelled";
18
+ status: "cancelled" | "open" | "closed" | "sold_out";
19
19
  unlimited: boolean;
20
20
  initialPax: number | null;
21
21
  remainingPax: number | null;
@@ -214,7 +214,7 @@ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions,
214
214
  startsAt: string;
215
215
  endsAt: string | null;
216
216
  timezone: string;
217
- status: "open" | "closed" | "sold_out" | "cancelled";
217
+ status: "cancelled" | "open" | "closed" | "sold_out";
218
218
  unlimited: boolean;
219
219
  initialPax: number | null;
220
220
  remainingPax: number | null;
@@ -239,7 +239,7 @@ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions,
239
239
  startsAt: string;
240
240
  endsAt: string | null;
241
241
  timezone: string;
242
- status: "open" | "closed" | "sold_out" | "cancelled";
242
+ status: "cancelled" | "open" | "closed" | "sold_out";
243
243
  unlimited: boolean;
244
244
  initialPax: number | null;
245
245
  remainingPax: number | null;
@@ -265,7 +265,7 @@ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions,
265
265
  startsAt: string;
266
266
  endsAt: string | null;
267
267
  timezone: string;
268
- status: "open" | "closed" | "sold_out" | "cancelled";
268
+ status: "cancelled" | "open" | "closed" | "sold_out";
269
269
  unlimited: boolean;
270
270
  initialPax: number | null;
271
271
  remainingPax: number | null;
@@ -293,7 +293,7 @@ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions,
293
293
  startsAt: string;
294
294
  endsAt: string | null;
295
295
  timezone: string;
296
- status: "open" | "closed" | "sold_out" | "cancelled";
296
+ status: "cancelled" | "open" | "closed" | "sold_out";
297
297
  unlimited: boolean;
298
298
  initialPax: number | null;
299
299
  remainingPax: number | null;
@@ -442,7 +442,7 @@ export declare function getSlotQueryOptions(client: FetchWithValidationOptions,
442
442
  startsAt: string;
443
443
  endsAt: string | null;
444
444
  timezone: string;
445
- status: "open" | "closed" | "sold_out" | "cancelled";
445
+ status: "cancelled" | "open" | "closed" | "sold_out";
446
446
  unlimited: boolean;
447
447
  initialPax: number | null;
448
448
  remainingPax: number | null;
@@ -471,7 +471,7 @@ export declare function getSlotQueryOptions(client: FetchWithValidationOptions,
471
471
  startsAt: string;
472
472
  endsAt: string | null;
473
473
  timezone: string;
474
- status: "open" | "closed" | "sold_out" | "cancelled";
474
+ status: "cancelled" | "open" | "closed" | "sold_out";
475
475
  unlimited: boolean;
476
476
  initialPax: number | null;
477
477
  remainingPax: number | null;
@@ -501,7 +501,7 @@ export declare function getSlotQueryOptions(client: FetchWithValidationOptions,
501
501
  startsAt: string;
502
502
  endsAt: string | null;
503
503
  timezone: string;
504
- status: "open" | "closed" | "sold_out" | "cancelled";
504
+ status: "cancelled" | "open" | "closed" | "sold_out";
505
505
  unlimited: boolean;
506
506
  initialPax: number | null;
507
507
  remainingPax: number | null;
@@ -533,7 +533,7 @@ export declare function getSlotQueryOptions(client: FetchWithValidationOptions,
533
533
  startsAt: string;
534
534
  endsAt: string | null;
535
535
  timezone: string;
536
- status: "open" | "closed" | "sold_out" | "cancelled";
536
+ status: "cancelled" | "open" | "closed" | "sold_out";
537
537
  unlimited: boolean;
538
538
  initialPax: number | null;
539
539
  remainingPax: number | null;
@@ -743,7 +743,7 @@ export declare function getSlotAssignmentsQueryOptions(client: FetchWithValidati
743
743
  poolId: string | null;
744
744
  resourceId: string | null;
745
745
  bookingId: string | null;
746
- status: "cancelled" | "completed" | "reserved" | "assigned" | "released";
746
+ status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
747
747
  assignedBy: string | null;
748
748
  releasedAt: string | null;
749
749
  notes: string | null;
@@ -757,7 +757,7 @@ export declare function getSlotAssignmentsQueryOptions(client: FetchWithValidati
757
757
  poolId: string | null;
758
758
  resourceId: string | null;
759
759
  bookingId: string | null;
760
- status: "cancelled" | "completed" | "reserved" | "assigned" | "released";
760
+ status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
761
761
  assignedBy: string | null;
762
762
  releasedAt: string | null;
763
763
  notes: string | null;
@@ -772,7 +772,7 @@ export declare function getSlotAssignmentsQueryOptions(client: FetchWithValidati
772
772
  poolId: string | null;
773
773
  resourceId: string | null;
774
774
  bookingId: string | null;
775
- status: "cancelled" | "completed" | "reserved" | "assigned" | "released";
775
+ status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
776
776
  assignedBy: string | null;
777
777
  releasedAt: string | null;
778
778
  notes: string | null;
@@ -789,7 +789,7 @@ export declare function getSlotAssignmentsQueryOptions(client: FetchWithValidati
789
789
  poolId: string | null;
790
790
  resourceId: string | null;
791
791
  bookingId: string | null;
792
- status: "cancelled" | "completed" | "reserved" | "assigned" | "released";
792
+ status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
793
793
  assignedBy: string | null;
794
794
  releasedAt: string | null;
795
795
  notes: string | null;
package/dist/schemas.d.ts CHANGED
@@ -62,10 +62,10 @@ export declare const availabilitySlotRecordSchema: z.ZodObject<{
62
62
  endsAt: z.ZodNullable<z.ZodString>;
63
63
  timezone: z.ZodString;
64
64
  status: z.ZodEnum<{
65
+ cancelled: "cancelled";
65
66
  open: "open";
66
67
  closed: "closed";
67
68
  sold_out: "sold_out";
68
- cancelled: "cancelled";
69
69
  }>;
70
70
  unlimited: z.ZodBoolean;
71
71
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -90,10 +90,10 @@ export declare const availabilitySlotDetailSchema: z.ZodObject<{
90
90
  endsAt: z.ZodNullable<z.ZodString>;
91
91
  timezone: z.ZodString;
92
92
  status: z.ZodEnum<{
93
+ cancelled: "cancelled";
93
94
  open: "open";
94
95
  closed: "closed";
95
96
  sold_out: "sold_out";
96
- cancelled: "cancelled";
97
97
  }>;
98
98
  unlimited: z.ZodBoolean;
99
99
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -154,8 +154,8 @@ export declare const availabilitySlotAssignmentRecordSchema: z.ZodObject<{
154
154
  resourceId: z.ZodNullable<z.ZodString>;
155
155
  bookingId: z.ZodNullable<z.ZodString>;
156
156
  status: z.ZodEnum<{
157
- cancelled: "cancelled";
158
157
  completed: "completed";
158
+ cancelled: "cancelled";
159
159
  reserved: "reserved";
160
160
  assigned: "assigned";
161
161
  released: "released";
@@ -263,10 +263,10 @@ export declare const availabilitySlotListResponse: z.ZodObject<{
263
263
  endsAt: z.ZodNullable<z.ZodString>;
264
264
  timezone: z.ZodString;
265
265
  status: z.ZodEnum<{
266
+ cancelled: "cancelled";
266
267
  open: "open";
267
268
  closed: "closed";
268
269
  sold_out: "sold_out";
269
- cancelled: "cancelled";
270
270
  }>;
271
271
  unlimited: z.ZodBoolean;
272
272
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -294,10 +294,10 @@ export declare const availabilitySlotRecordResponse: z.ZodObject<{
294
294
  endsAt: z.ZodNullable<z.ZodString>;
295
295
  timezone: z.ZodString;
296
296
  status: z.ZodEnum<{
297
+ cancelled: "cancelled";
297
298
  open: "open";
298
299
  closed: "closed";
299
300
  sold_out: "sold_out";
300
- cancelled: "cancelled";
301
301
  }>;
302
302
  unlimited: z.ZodBoolean;
303
303
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -322,10 +322,10 @@ export declare const availabilitySlotSingleResponse: z.ZodObject<{
322
322
  endsAt: z.ZodNullable<z.ZodString>;
323
323
  timezone: z.ZodString;
324
324
  status: z.ZodEnum<{
325
+ cancelled: "cancelled";
325
326
  open: "open";
326
327
  closed: "closed";
327
328
  sold_out: "sold_out";
328
- cancelled: "cancelled";
329
329
  }>;
330
330
  unlimited: z.ZodBoolean;
331
331
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -389,8 +389,8 @@ export declare const availabilitySlotAssignmentListResponse: z.ZodObject<{
389
389
  resourceId: z.ZodNullable<z.ZodString>;
390
390
  bookingId: z.ZodNullable<z.ZodString>;
391
391
  status: z.ZodEnum<{
392
- cancelled: "cancelled";
393
392
  completed: "completed";
393
+ cancelled: "cancelled";
394
394
  reserved: "reserved";
395
395
  assigned: "assigned";
396
396
  released: "released";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/availability-react",
3
- "version": "0.28.3",
3
+ "version": "0.29.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0",
43
43
  "zod": "^4.0.0",
44
- "@voyantjs/availability": "0.28.3"
44
+ "@voyantjs/availability": "0.29.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@tanstack/react-query": "^5.96.2",
@@ -52,12 +52,12 @@
52
52
  "typescript": "^6.0.2",
53
53
  "vitest": "^4.1.2",
54
54
  "zod": "^4.3.6",
55
- "@voyantjs/availability": "0.28.3",
56
- "@voyantjs/react": "0.28.3",
55
+ "@voyantjs/availability": "0.29.0",
56
+ "@voyantjs/react": "0.29.0",
57
57
  "@voyantjs/voyant-typescript-config": "0.1.0"
58
58
  },
59
59
  "dependencies": {
60
- "@voyantjs/react": "0.28.3"
60
+ "@voyantjs/react": "0.29.0"
61
61
  },
62
62
  "files": [
63
63
  "dist"