@composable-os/pack-bookings 0.1.0-beta.10 → 0.1.0-beta.11

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/tools.d.ts CHANGED
@@ -65,14 +65,73 @@ export declare const classGet: import("@composable-os/sdk").ToolSpec<z.ZodObject
65
65
  }, z.core.$strip>;
66
66
  }, z.core.$strip>;
67
67
  }, z.core.$strip>>;
68
+ export declare const family: import("@composable-os/sdk").ToolSpec<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
69
+ people: z.ZodArray<z.ZodObject<{
70
+ personId: z.ZodString;
71
+ name: z.ZodString;
72
+ self: z.ZodBoolean;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>>;
68
75
  export declare const book: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
69
76
  classId: z.ZodString;
77
+ forPersonId: z.ZodOptional<z.ZodString>;
70
78
  holderId: z.ZodOptional<z.ZodString>;
79
+ waitlist: z.ZodDefault<z.ZodBoolean>;
71
80
  }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
72
81
  result: z.ZodLiteral<"booked">;
73
82
  bookingId: z.ZodString;
74
83
  classId: z.ZodString;
75
84
  holderId: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ result: z.ZodLiteral<"waiting">;
87
+ bookingId: z.ZodString;
88
+ classId: z.ZodString;
89
+ position: z.ZodNullable<z.ZodNumber>;
90
+ waiting: z.ZodNullable<z.ZodNumber>;
91
+ message: z.ZodString;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ result: z.ZodLiteral<"refused">;
94
+ reason: z.ZodEnum<{
95
+ not_open: "not_open";
96
+ closed: "closed";
97
+ staff_only: "staff_only";
98
+ no_use: "no_use";
99
+ already_booked: "already_booked";
100
+ full: "full";
101
+ too_late: "too_late";
102
+ not_found: "not_found";
103
+ changed: "changed";
104
+ not_running: "not_running";
105
+ person_exists: "person_exists";
106
+ possible_duplicates: "possible_duplicates";
107
+ waitlist_closed: "waitlist_closed";
108
+ no_drop_in: "no_drop_in";
109
+ ask_desk: "ask_desk";
110
+ try_later: "try_later";
111
+ }>;
112
+ message: z.ZodString;
113
+ detail: z.ZodNullable<z.ZodString>;
114
+ opensAt: z.ZodNullable<z.ZodString>;
115
+ closesAt: z.ZodNullable<z.ZodString>;
116
+ people: z.ZodOptional<z.ZodArray<z.ZodObject<{
117
+ id: z.ZodString;
118
+ name: z.ZodString;
119
+ reasons: z.ZodArray<z.ZodString>;
120
+ }, z.core.$strip>>>;
121
+ }, z.core.$strip>]>>;
122
+ export declare const buy: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
123
+ classId: z.ZodString;
124
+ forPersonId: z.ZodOptional<z.ZodString>;
125
+ email: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
127
+ result: z.ZodLiteral<"pending">;
128
+ bookingId: z.ZodString;
129
+ classId: z.ZodString;
130
+ orderId: z.ZodString;
131
+ total: z.ZodNumber;
132
+ currency: z.ZodString;
133
+ expiresAt: z.ZodNullable<z.ZodString>;
134
+ token: z.ZodNullable<z.ZodString>;
76
135
  }, z.core.$strip>, z.ZodObject<{
77
136
  result: z.ZodLiteral<"refused">;
78
137
  reason: z.ZodEnum<{
@@ -88,6 +147,45 @@ export declare const book: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
88
147
  not_running: "not_running";
89
148
  person_exists: "person_exists";
90
149
  possible_duplicates: "possible_duplicates";
150
+ waitlist_closed: "waitlist_closed";
151
+ no_drop_in: "no_drop_in";
152
+ ask_desk: "ask_desk";
153
+ try_later: "try_later";
154
+ }>;
155
+ message: z.ZodString;
156
+ detail: z.ZodNullable<z.ZodString>;
157
+ opensAt: z.ZodNullable<z.ZodString>;
158
+ closesAt: z.ZodNullable<z.ZodString>;
159
+ people: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
+ id: z.ZodString;
161
+ name: z.ZodString;
162
+ reasons: z.ZodArray<z.ZodString>;
163
+ }, z.core.$strip>>>;
164
+ }, z.core.$strip>]>>;
165
+ export declare const leaveWaitlist: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
166
+ bookingId: z.ZodString;
167
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
168
+ result: z.ZodLiteral<"left">;
169
+ bookingId: z.ZodString;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ result: z.ZodLiteral<"refused">;
172
+ reason: z.ZodEnum<{
173
+ not_open: "not_open";
174
+ closed: "closed";
175
+ staff_only: "staff_only";
176
+ no_use: "no_use";
177
+ already_booked: "already_booked";
178
+ full: "full";
179
+ too_late: "too_late";
180
+ not_found: "not_found";
181
+ changed: "changed";
182
+ not_running: "not_running";
183
+ person_exists: "person_exists";
184
+ possible_duplicates: "possible_duplicates";
185
+ waitlist_closed: "waitlist_closed";
186
+ no_drop_in: "no_drop_in";
187
+ ask_desk: "ask_desk";
188
+ try_later: "try_later";
91
189
  }>;
92
190
  message: z.ZodString;
93
191
  detail: z.ZodNullable<z.ZodString>;
@@ -117,6 +215,7 @@ export declare const cancel: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
117
215
  late_cancelled: "late_cancelled";
118
216
  }>;
119
217
  late: z.ZodBoolean;
218
+ dropIn: z.ZodBoolean;
120
219
  message: z.ZodString;
121
220
  }, z.core.$strip>, z.ZodObject<{
122
221
  result: z.ZodLiteral<"refused">;
@@ -133,6 +232,10 @@ export declare const cancel: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
133
232
  not_running: "not_running";
134
233
  person_exists: "person_exists";
135
234
  possible_duplicates: "possible_duplicates";
235
+ waitlist_closed: "waitlist_closed";
236
+ no_drop_in: "no_drop_in";
237
+ ask_desk: "ask_desk";
238
+ try_later: "try_later";
136
239
  }>;
137
240
  message: z.ZodString;
138
241
  detail: z.ZodNullable<z.ZodString>;
@@ -145,8 +248,12 @@ export declare const cancel: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
145
248
  }, z.core.$strip>>>;
146
249
  }, z.core.$strip>]>>;
147
250
  export declare const mine: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
251
+ personId: z.ZodOptional<z.ZodString>;
148
252
  state: z.ZodOptional<z.ZodEnum<{
149
253
  booked: "booked";
254
+ waiting: "waiting";
255
+ pending: "pending";
256
+ left: "left";
150
257
  cancelled: "cancelled";
151
258
  late_cancelled: "late_cancelled";
152
259
  }>>;
@@ -155,8 +262,11 @@ export declare const mine: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
155
262
  }, z.core.$strip>, z.ZodObject<{
156
263
  bookings: z.ZodArray<z.ZodObject<{
157
264
  id: z.ZodString;
265
+ personId: z.ZodNullable<z.ZodString>;
158
266
  state: z.ZodNullable<z.ZodString>;
267
+ position: z.ZodNullable<z.ZodNumber>;
159
268
  holderId: z.ZodNullable<z.ZodString>;
269
+ dropInOrderId: z.ZodNullable<z.ZodString>;
160
270
  classId: z.ZodNullable<z.ZodString>;
161
271
  title: z.ZodNullable<z.ZodString>;
162
272
  startsAt: z.ZodNullable<z.ZodString>;
@@ -187,6 +297,7 @@ export declare const bookFor: import("@composable-os/sdk").ToolSpec<z.ZodObject<
187
297
  confirmNew: z.ZodDefault<z.ZodBoolean>;
188
298
  holderId: z.ZodOptional<z.ZodString>;
189
299
  paidAtDesk: z.ZodDefault<z.ZodBoolean>;
300
+ waitlist: z.ZodDefault<z.ZodBoolean>;
190
301
  note: z.ZodOptional<z.ZodString>;
191
302
  }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
192
303
  result: z.ZodLiteral<"booked">;
@@ -194,6 +305,14 @@ export declare const bookFor: import("@composable-os/sdk").ToolSpec<z.ZodObject<
194
305
  classId: z.ZodString;
195
306
  holderId: z.ZodNullable<z.ZodString>;
196
307
  personId: z.ZodString;
308
+ }, z.core.$strip>, z.ZodObject<{
309
+ result: z.ZodLiteral<"waiting">;
310
+ bookingId: z.ZodString;
311
+ classId: z.ZodString;
312
+ position: z.ZodNullable<z.ZodNumber>;
313
+ waiting: z.ZodNullable<z.ZodNumber>;
314
+ message: z.ZodString;
315
+ personId: z.ZodString;
197
316
  }, z.core.$strip>, z.ZodObject<{
198
317
  result: z.ZodLiteral<"refused">;
199
318
  reason: z.ZodEnum<{
@@ -209,6 +328,10 @@ export declare const bookFor: import("@composable-os/sdk").ToolSpec<z.ZodObject<
209
328
  not_running: "not_running";
210
329
  person_exists: "person_exists";
211
330
  possible_duplicates: "possible_duplicates";
331
+ waitlist_closed: "waitlist_closed";
332
+ no_drop_in: "no_drop_in";
333
+ ask_desk: "ask_desk";
334
+ try_later: "try_later";
212
335
  }>;
213
336
  message: z.ZodString;
214
337
  detail: z.ZodNullable<z.ZodString>;
@@ -246,6 +369,10 @@ export declare const cancelFor: import("@composable-os/sdk").ToolSpec<z.ZodObjec
246
369
  not_running: "not_running";
247
370
  person_exists: "person_exists";
248
371
  possible_duplicates: "possible_duplicates";
372
+ waitlist_closed: "waitlist_closed";
373
+ no_drop_in: "no_drop_in";
374
+ ask_desk: "ask_desk";
375
+ try_later: "try_later";
249
376
  }>;
250
377
  message: z.ZodString;
251
378
  detail: z.ZodNullable<z.ZodString>;
@@ -279,6 +406,10 @@ export declare const returnUse: import("@composable-os/sdk").ToolSpec<z.ZodObjec
279
406
  not_running: "not_running";
280
407
  person_exists: "person_exists";
281
408
  possible_duplicates: "possible_duplicates";
409
+ waitlist_closed: "waitlist_closed";
410
+ no_drop_in: "no_drop_in";
411
+ ask_desk: "ask_desk";
412
+ try_later: "try_later";
282
413
  }>;
283
414
  message: z.ZodString;
284
415
  detail: z.ZodNullable<z.ZodString>;
@@ -349,5 +480,212 @@ export declare const classList: import("@composable-os/sdk").ToolSpec<z.ZodObjec
349
480
  paidAtDesk: z.ZodBoolean;
350
481
  holderId: z.ZodNullable<z.ZodString>;
351
482
  bookedBy: z.ZodNullable<z.ZodString>;
483
+ promotedAt: z.ZodNullable<z.ZodString>;
484
+ passedOver: z.ZodNullable<z.ZodString>;
485
+ }, z.core.$strip>>;
486
+ }, z.core.$strip>>;
487
+ export declare const markAttended: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
488
+ bookingId: z.ZodString;
489
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
490
+ result: z.ZodEnum<{
491
+ booked: "booked";
492
+ attended: "attended";
493
+ no_show: "no_show";
494
+ }>;
495
+ bookingId: z.ZodString;
496
+ message: z.ZodString;
497
+ }, z.core.$strip>, z.ZodObject<{
498
+ result: z.ZodLiteral<"already">;
499
+ bookingId: z.ZodString;
500
+ state: z.ZodNullable<z.ZodString>;
501
+ markedAt: z.ZodNullable<z.ZodString>;
502
+ markedBy: z.ZodNullable<z.ZodString>;
503
+ message: z.ZodString;
504
+ }, z.core.$strip>, z.ZodObject<{
505
+ result: z.ZodLiteral<"refused">;
506
+ reason: z.ZodEnum<{
507
+ not_found: "not_found";
508
+ changed: "changed";
509
+ not_started: "not_started";
510
+ not_booked: "not_booked";
511
+ }>;
512
+ state: z.ZodNullable<z.ZodString>;
513
+ opensAt: z.ZodNullable<z.ZodString>;
514
+ message: z.ZodString;
515
+ }, z.core.$strip>]>>;
516
+ export declare const undoAttended: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
517
+ bookingId: z.ZodString;
518
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
519
+ result: z.ZodEnum<{
520
+ booked: "booked";
521
+ attended: "attended";
522
+ no_show: "no_show";
523
+ }>;
524
+ bookingId: z.ZodString;
525
+ message: z.ZodString;
526
+ }, z.core.$strip>, z.ZodObject<{
527
+ result: z.ZodLiteral<"already">;
528
+ bookingId: z.ZodString;
529
+ state: z.ZodNullable<z.ZodString>;
530
+ markedAt: z.ZodNullable<z.ZodString>;
531
+ markedBy: z.ZodNullable<z.ZodString>;
532
+ message: z.ZodString;
533
+ }, z.core.$strip>, z.ZodObject<{
534
+ result: z.ZodLiteral<"refused">;
535
+ reason: z.ZodEnum<{
536
+ not_found: "not_found";
537
+ changed: "changed";
538
+ not_started: "not_started";
539
+ not_booked: "not_booked";
540
+ }>;
541
+ state: z.ZodNullable<z.ZodString>;
542
+ opensAt: z.ZodNullable<z.ZodString>;
543
+ message: z.ZodString;
544
+ }, z.core.$strip>]>>;
545
+ export declare const markNoShow: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
546
+ bookingId: z.ZodString;
547
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
548
+ result: z.ZodEnum<{
549
+ booked: "booked";
550
+ attended: "attended";
551
+ no_show: "no_show";
552
+ }>;
553
+ bookingId: z.ZodString;
554
+ message: z.ZodString;
555
+ }, z.core.$strip>, z.ZodObject<{
556
+ result: z.ZodLiteral<"already">;
557
+ bookingId: z.ZodString;
558
+ state: z.ZodNullable<z.ZodString>;
559
+ markedAt: z.ZodNullable<z.ZodString>;
560
+ markedBy: z.ZodNullable<z.ZodString>;
561
+ message: z.ZodString;
562
+ }, z.core.$strip>, z.ZodObject<{
563
+ result: z.ZodLiteral<"refused">;
564
+ reason: z.ZodEnum<{
565
+ not_found: "not_found";
566
+ changed: "changed";
567
+ not_started: "not_started";
568
+ not_booked: "not_booked";
569
+ }>;
570
+ state: z.ZodNullable<z.ZodString>;
571
+ opensAt: z.ZodNullable<z.ZodString>;
572
+ message: z.ZodString;
573
+ }, z.core.$strip>]>>;
574
+ export declare const markAll: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
575
+ classId: z.ZodString;
576
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
577
+ result: z.ZodLiteral<"marked">;
578
+ classId: z.ZodString;
579
+ ticked: z.ZodNumber;
580
+ already: z.ZodNumber;
581
+ skipped: z.ZodNumber;
582
+ }, z.core.$strip>, z.ZodObject<{
583
+ result: z.ZodLiteral<"refused">;
584
+ reason: z.ZodEnum<{
585
+ not_found: "not_found";
586
+ changed: "changed";
587
+ not_started: "not_started";
588
+ not_booked: "not_booked";
589
+ }>;
590
+ state: z.ZodNullable<z.ZodString>;
591
+ opensAt: z.ZodNullable<z.ZodString>;
592
+ message: z.ZodString;
593
+ }, z.core.$strip>]>>;
594
+ export declare const roster: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
595
+ classId: z.ZodString;
596
+ }, z.core.$strip>, z.ZodObject<{
597
+ class: z.ZodObject<{
598
+ id: z.ZodString;
599
+ title: z.ZodNullable<z.ZodString>;
600
+ classType: z.ZodNullable<z.ZodObject<{
601
+ id: z.ZodString;
602
+ name: z.ZodNullable<z.ZodString>;
603
+ }, z.core.$strip>>;
604
+ startsAt: z.ZodNullable<z.ZodString>;
605
+ endsAt: z.ZodNullable<z.ZodString>;
606
+ timeZone: z.ZodNullable<z.ZodString>;
607
+ coach: z.ZodNullable<z.ZodString>;
608
+ room: z.ZodNullable<z.ZodString>;
609
+ places: z.ZodNullable<z.ZodNumber>;
610
+ booked: z.ZodNumber;
611
+ held: z.ZodNumber;
612
+ available: z.ZodNullable<z.ZodNumber>;
613
+ state: z.ZodNullable<z.ZodString>;
614
+ staffOnly: z.ZodBoolean;
615
+ }, z.core.$strip>;
616
+ bookings: z.ZodArray<z.ZodObject<{
617
+ id: z.ZodString;
618
+ person: z.ZodNullable<z.ZodObject<{
619
+ id: z.ZodString;
620
+ name: z.ZodNullable<z.ZodString>;
621
+ }, z.core.$strip>>;
622
+ state: z.ZodNullable<z.ZodString>;
623
+ markedAt: z.ZodNullable<z.ZodString>;
624
+ markedBy: z.ZodNullable<z.ZodString>;
625
+ promotedAt: z.ZodNullable<z.ZodString>;
352
626
  }, z.core.$strip>>;
353
627
  }, z.core.$strip>>;
628
+ export declare const move: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
629
+ bookingId: z.ZodString;
630
+ toClassId: z.ZodString;
631
+ note: z.ZodOptional<z.ZodString>;
632
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
633
+ result: z.ZodLiteral<"moved">;
634
+ fromBookingId: z.ZodString;
635
+ bookingId: z.ZodString;
636
+ classId: z.ZodString;
637
+ holderId: z.ZodNullable<z.ZodString>;
638
+ }, z.core.$strip>, z.ZodObject<{
639
+ result: z.ZodLiteral<"refused">;
640
+ reason: z.ZodEnum<{
641
+ not_open: "not_open";
642
+ closed: "closed";
643
+ staff_only: "staff_only";
644
+ no_use: "no_use";
645
+ already_booked: "already_booked";
646
+ full: "full";
647
+ too_late: "too_late";
648
+ not_found: "not_found";
649
+ changed: "changed";
650
+ not_running: "not_running";
651
+ person_exists: "person_exists";
652
+ possible_duplicates: "possible_duplicates";
653
+ waitlist_closed: "waitlist_closed";
654
+ no_drop_in: "no_drop_in";
655
+ ask_desk: "ask_desk";
656
+ try_later: "try_later";
657
+ }>;
658
+ message: z.ZodString;
659
+ detail: z.ZodNullable<z.ZodString>;
660
+ opensAt: z.ZodNullable<z.ZodString>;
661
+ closesAt: z.ZodNullable<z.ZodString>;
662
+ people: z.ZodOptional<z.ZodArray<z.ZodObject<{
663
+ id: z.ZodString;
664
+ name: z.ZodString;
665
+ reasons: z.ZodArray<z.ZodString>;
666
+ }, z.core.$strip>>>;
667
+ }, z.core.$strip>, z.ZodObject<{
668
+ result: z.ZodLiteral<"refused">;
669
+ message: z.ZodString;
670
+ detail: z.ZodNullable<z.ZodString>;
671
+ opensAt: z.ZodNullable<z.ZodString>;
672
+ closesAt: z.ZodNullable<z.ZodString>;
673
+ people: z.ZodOptional<z.ZodArray<z.ZodObject<{
674
+ id: z.ZodString;
675
+ name: z.ZodString;
676
+ reasons: z.ZodArray<z.ZodString>;
677
+ }, z.core.$strip>>>;
678
+ reason: z.ZodEnum<{
679
+ not_booked: "not_booked";
680
+ same_class: "same_class";
681
+ started: "started";
682
+ }>;
683
+ }, z.core.$strip>]>>;
684
+ export declare const cancelClass: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
685
+ classId: z.ZodString;
686
+ reason: z.ZodString;
687
+ }, z.core.$strip>, z.ZodObject<{
688
+ result: z.ZodLiteral<"cancelled">;
689
+ classId: z.ZodString;
690
+ bookingsCancelled: z.ZodNumber;
691
+ }, z.core.$strip>>;