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

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,30 @@ 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;
76
92
  }, z.core.$strip>, z.ZodObject<{
77
93
  result: z.ZodLiteral<"refused">;
78
94
  reason: z.ZodEnum<{
@@ -88,6 +104,89 @@ export declare const book: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
88
104
  not_running: "not_running";
89
105
  person_exists: "person_exists";
90
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
+ agreements: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
127
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
128
+ result: z.ZodLiteral<"pending">;
129
+ bookingId: z.ZodString;
130
+ classId: z.ZodString;
131
+ orderId: z.ZodString;
132
+ total: z.ZodNumber;
133
+ currency: z.ZodString;
134
+ expiresAt: z.ZodNullable<z.ZodString>;
135
+ token: z.ZodNullable<z.ZodString>;
136
+ }, z.core.$strip>, z.ZodObject<{
137
+ result: z.ZodLiteral<"refused">;
138
+ reason: z.ZodEnum<{
139
+ not_open: "not_open";
140
+ closed: "closed";
141
+ staff_only: "staff_only";
142
+ no_use: "no_use";
143
+ already_booked: "already_booked";
144
+ full: "full";
145
+ too_late: "too_late";
146
+ not_found: "not_found";
147
+ changed: "changed";
148
+ not_running: "not_running";
149
+ person_exists: "person_exists";
150
+ possible_duplicates: "possible_duplicates";
151
+ waitlist_closed: "waitlist_closed";
152
+ no_drop_in: "no_drop_in";
153
+ ask_desk: "ask_desk";
154
+ try_later: "try_later";
155
+ }>;
156
+ message: z.ZodString;
157
+ detail: z.ZodNullable<z.ZodString>;
158
+ opensAt: z.ZodNullable<z.ZodString>;
159
+ closesAt: z.ZodNullable<z.ZodString>;
160
+ people: z.ZodOptional<z.ZodArray<z.ZodObject<{
161
+ id: z.ZodString;
162
+ name: z.ZodString;
163
+ reasons: z.ZodArray<z.ZodString>;
164
+ }, z.core.$strip>>>;
165
+ }, z.core.$strip>]>>;
166
+ export declare const leaveWaitlist: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
167
+ bookingId: z.ZodString;
168
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
169
+ result: z.ZodLiteral<"left">;
170
+ bookingId: z.ZodString;
171
+ }, z.core.$strip>, z.ZodObject<{
172
+ result: z.ZodLiteral<"refused">;
173
+ reason: z.ZodEnum<{
174
+ not_open: "not_open";
175
+ closed: "closed";
176
+ staff_only: "staff_only";
177
+ no_use: "no_use";
178
+ already_booked: "already_booked";
179
+ full: "full";
180
+ too_late: "too_late";
181
+ not_found: "not_found";
182
+ changed: "changed";
183
+ not_running: "not_running";
184
+ person_exists: "person_exists";
185
+ possible_duplicates: "possible_duplicates";
186
+ waitlist_closed: "waitlist_closed";
187
+ no_drop_in: "no_drop_in";
188
+ ask_desk: "ask_desk";
189
+ try_later: "try_later";
91
190
  }>;
92
191
  message: z.ZodString;
93
192
  detail: z.ZodNullable<z.ZodString>;
@@ -117,6 +216,7 @@ export declare const cancel: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
117
216
  late_cancelled: "late_cancelled";
118
217
  }>;
119
218
  late: z.ZodBoolean;
219
+ dropIn: z.ZodBoolean;
120
220
  message: z.ZodString;
121
221
  }, z.core.$strip>, z.ZodObject<{
122
222
  result: z.ZodLiteral<"refused">;
@@ -133,6 +233,10 @@ export declare const cancel: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
133
233
  not_running: "not_running";
134
234
  person_exists: "person_exists";
135
235
  possible_duplicates: "possible_duplicates";
236
+ waitlist_closed: "waitlist_closed";
237
+ no_drop_in: "no_drop_in";
238
+ ask_desk: "ask_desk";
239
+ try_later: "try_later";
136
240
  }>;
137
241
  message: z.ZodString;
138
242
  detail: z.ZodNullable<z.ZodString>;
@@ -145,18 +249,25 @@ export declare const cancel: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
145
249
  }, z.core.$strip>>>;
146
250
  }, z.core.$strip>]>>;
147
251
  export declare const mine: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
252
+ personId: z.ZodOptional<z.ZodString>;
148
253
  state: z.ZodOptional<z.ZodEnum<{
149
254
  booked: "booked";
255
+ waiting: "waiting";
150
256
  cancelled: "cancelled";
151
257
  late_cancelled: "late_cancelled";
258
+ pending: "pending";
259
+ left: "left";
152
260
  }>>;
153
261
  upcoming: z.ZodDefault<z.ZodBoolean>;
154
262
  limit: z.ZodDefault<z.ZodNumber>;
155
263
  }, z.core.$strip>, z.ZodObject<{
156
264
  bookings: z.ZodArray<z.ZodObject<{
157
265
  id: z.ZodString;
266
+ personId: z.ZodNullable<z.ZodString>;
158
267
  state: z.ZodNullable<z.ZodString>;
268
+ position: z.ZodNullable<z.ZodNumber>;
159
269
  holderId: z.ZodNullable<z.ZodString>;
270
+ dropInOrderId: z.ZodNullable<z.ZodString>;
160
271
  classId: z.ZodNullable<z.ZodString>;
161
272
  title: z.ZodNullable<z.ZodString>;
162
273
  startsAt: z.ZodNullable<z.ZodString>;
@@ -187,6 +298,7 @@ export declare const bookFor: import("@composable-os/sdk").ToolSpec<z.ZodObject<
187
298
  confirmNew: z.ZodDefault<z.ZodBoolean>;
188
299
  holderId: z.ZodOptional<z.ZodString>;
189
300
  paidAtDesk: z.ZodDefault<z.ZodBoolean>;
301
+ waitlist: z.ZodDefault<z.ZodBoolean>;
190
302
  note: z.ZodOptional<z.ZodString>;
191
303
  }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
192
304
  result: z.ZodLiteral<"booked">;
@@ -194,6 +306,14 @@ export declare const bookFor: import("@composable-os/sdk").ToolSpec<z.ZodObject<
194
306
  classId: z.ZodString;
195
307
  holderId: z.ZodNullable<z.ZodString>;
196
308
  personId: z.ZodString;
309
+ }, z.core.$strip>, z.ZodObject<{
310
+ result: z.ZodLiteral<"waiting">;
311
+ bookingId: z.ZodString;
312
+ classId: z.ZodString;
313
+ position: z.ZodNullable<z.ZodNumber>;
314
+ waiting: z.ZodNullable<z.ZodNumber>;
315
+ message: z.ZodString;
316
+ personId: z.ZodString;
197
317
  }, z.core.$strip>, z.ZodObject<{
198
318
  result: z.ZodLiteral<"refused">;
199
319
  reason: z.ZodEnum<{
@@ -209,6 +329,10 @@ export declare const bookFor: import("@composable-os/sdk").ToolSpec<z.ZodObject<
209
329
  not_running: "not_running";
210
330
  person_exists: "person_exists";
211
331
  possible_duplicates: "possible_duplicates";
332
+ waitlist_closed: "waitlist_closed";
333
+ no_drop_in: "no_drop_in";
334
+ ask_desk: "ask_desk";
335
+ try_later: "try_later";
212
336
  }>;
213
337
  message: z.ZodString;
214
338
  detail: z.ZodNullable<z.ZodString>;
@@ -246,6 +370,10 @@ export declare const cancelFor: import("@composable-os/sdk").ToolSpec<z.ZodObjec
246
370
  not_running: "not_running";
247
371
  person_exists: "person_exists";
248
372
  possible_duplicates: "possible_duplicates";
373
+ waitlist_closed: "waitlist_closed";
374
+ no_drop_in: "no_drop_in";
375
+ ask_desk: "ask_desk";
376
+ try_later: "try_later";
249
377
  }>;
250
378
  message: z.ZodString;
251
379
  detail: z.ZodNullable<z.ZodString>;
@@ -279,6 +407,10 @@ export declare const returnUse: import("@composable-os/sdk").ToolSpec<z.ZodObjec
279
407
  not_running: "not_running";
280
408
  person_exists: "person_exists";
281
409
  possible_duplicates: "possible_duplicates";
410
+ waitlist_closed: "waitlist_closed";
411
+ no_drop_in: "no_drop_in";
412
+ ask_desk: "ask_desk";
413
+ try_later: "try_later";
282
414
  }>;
283
415
  message: z.ZodString;
284
416
  detail: z.ZodNullable<z.ZodString>;
@@ -349,5 +481,470 @@ export declare const classList: import("@composable-os/sdk").ToolSpec<z.ZodObjec
349
481
  paidAtDesk: z.ZodBoolean;
350
482
  holderId: z.ZodNullable<z.ZodString>;
351
483
  bookedBy: z.ZodNullable<z.ZodString>;
484
+ promotedAt: z.ZodNullable<z.ZodString>;
485
+ healthNote: z.ZodNullable<z.ZodBoolean>;
486
+ passedOver: z.ZodNullable<z.ZodString>;
487
+ }, z.core.$strip>>;
488
+ }, z.core.$strip>>;
489
+ export declare const markAttended: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
490
+ bookingId: z.ZodString;
491
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
492
+ result: z.ZodEnum<{
493
+ booked: "booked";
494
+ attended: "attended";
495
+ no_show: "no_show";
496
+ }>;
497
+ bookingId: z.ZodString;
498
+ message: z.ZodString;
499
+ }, z.core.$strip>, z.ZodObject<{
500
+ result: z.ZodLiteral<"already">;
501
+ bookingId: z.ZodString;
502
+ state: z.ZodNullable<z.ZodString>;
503
+ markedAt: z.ZodNullable<z.ZodString>;
504
+ markedBy: z.ZodNullable<z.ZodString>;
505
+ message: z.ZodString;
506
+ }, z.core.$strip>, z.ZodObject<{
507
+ result: z.ZodLiteral<"refused">;
508
+ reason: z.ZodEnum<{
509
+ not_found: "not_found";
510
+ changed: "changed";
511
+ not_started: "not_started";
512
+ not_booked: "not_booked";
513
+ }>;
514
+ state: z.ZodNullable<z.ZodString>;
515
+ opensAt: z.ZodNullable<z.ZodString>;
516
+ message: z.ZodString;
517
+ }, z.core.$strip>]>>;
518
+ export declare const undoAttended: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
519
+ bookingId: z.ZodString;
520
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
521
+ result: z.ZodEnum<{
522
+ booked: "booked";
523
+ attended: "attended";
524
+ no_show: "no_show";
525
+ }>;
526
+ bookingId: z.ZodString;
527
+ message: z.ZodString;
528
+ }, z.core.$strip>, z.ZodObject<{
529
+ result: z.ZodLiteral<"already">;
530
+ bookingId: z.ZodString;
531
+ state: z.ZodNullable<z.ZodString>;
532
+ markedAt: z.ZodNullable<z.ZodString>;
533
+ markedBy: z.ZodNullable<z.ZodString>;
534
+ message: z.ZodString;
535
+ }, z.core.$strip>, z.ZodObject<{
536
+ result: z.ZodLiteral<"refused">;
537
+ reason: z.ZodEnum<{
538
+ not_found: "not_found";
539
+ changed: "changed";
540
+ not_started: "not_started";
541
+ not_booked: "not_booked";
542
+ }>;
543
+ state: z.ZodNullable<z.ZodString>;
544
+ opensAt: z.ZodNullable<z.ZodString>;
545
+ message: z.ZodString;
546
+ }, z.core.$strip>]>>;
547
+ export declare const markNoShow: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
548
+ bookingId: z.ZodString;
549
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
550
+ result: z.ZodEnum<{
551
+ booked: "booked";
552
+ attended: "attended";
553
+ no_show: "no_show";
554
+ }>;
555
+ bookingId: z.ZodString;
556
+ message: z.ZodString;
557
+ }, z.core.$strip>, z.ZodObject<{
558
+ result: z.ZodLiteral<"already">;
559
+ bookingId: z.ZodString;
560
+ state: z.ZodNullable<z.ZodString>;
561
+ markedAt: z.ZodNullable<z.ZodString>;
562
+ markedBy: z.ZodNullable<z.ZodString>;
563
+ message: z.ZodString;
564
+ }, z.core.$strip>, z.ZodObject<{
565
+ result: z.ZodLiteral<"refused">;
566
+ reason: z.ZodEnum<{
567
+ not_found: "not_found";
568
+ changed: "changed";
569
+ not_started: "not_started";
570
+ not_booked: "not_booked";
571
+ }>;
572
+ state: z.ZodNullable<z.ZodString>;
573
+ opensAt: z.ZodNullable<z.ZodString>;
574
+ message: z.ZodString;
575
+ }, z.core.$strip>]>>;
576
+ export declare const markAll: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
577
+ classId: z.ZodString;
578
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
579
+ result: z.ZodLiteral<"marked">;
580
+ classId: z.ZodString;
581
+ ticked: z.ZodNumber;
582
+ already: z.ZodNumber;
583
+ skipped: z.ZodNumber;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ result: z.ZodLiteral<"refused">;
586
+ reason: z.ZodEnum<{
587
+ not_found: "not_found";
588
+ changed: "changed";
589
+ not_started: "not_started";
590
+ not_booked: "not_booked";
591
+ }>;
592
+ state: z.ZodNullable<z.ZodString>;
593
+ opensAt: z.ZodNullable<z.ZodString>;
594
+ message: z.ZodString;
595
+ }, z.core.$strip>]>>;
596
+ export declare const roster: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
597
+ classId: z.ZodString;
598
+ }, z.core.$strip>, z.ZodObject<{
599
+ class: z.ZodObject<{
600
+ id: z.ZodString;
601
+ title: z.ZodNullable<z.ZodString>;
602
+ classType: z.ZodNullable<z.ZodObject<{
603
+ id: z.ZodString;
604
+ name: z.ZodNullable<z.ZodString>;
605
+ }, z.core.$strip>>;
606
+ startsAt: z.ZodNullable<z.ZodString>;
607
+ endsAt: z.ZodNullable<z.ZodString>;
608
+ timeZone: z.ZodNullable<z.ZodString>;
609
+ coach: z.ZodNullable<z.ZodString>;
610
+ room: z.ZodNullable<z.ZodString>;
611
+ places: z.ZodNullable<z.ZodNumber>;
612
+ booked: z.ZodNumber;
613
+ held: z.ZodNumber;
614
+ available: z.ZodNullable<z.ZodNumber>;
615
+ state: z.ZodNullable<z.ZodString>;
616
+ staffOnly: z.ZodBoolean;
617
+ }, z.core.$strip>;
618
+ bookings: z.ZodArray<z.ZodObject<{
619
+ id: z.ZodString;
620
+ person: z.ZodNullable<z.ZodObject<{
621
+ id: z.ZodString;
622
+ name: z.ZodNullable<z.ZodString>;
623
+ }, z.core.$strip>>;
624
+ state: z.ZodNullable<z.ZodString>;
625
+ markedAt: z.ZodNullable<z.ZodString>;
626
+ markedBy: z.ZodNullable<z.ZodString>;
627
+ promotedAt: z.ZodNullable<z.ZodString>;
628
+ healthNote: z.ZodNullable<z.ZodBoolean>;
629
+ }, z.core.$strip>>;
630
+ }, z.core.$strip>>;
631
+ export declare const move: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
632
+ bookingId: z.ZodString;
633
+ toClassId: z.ZodString;
634
+ note: z.ZodOptional<z.ZodString>;
635
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
636
+ result: z.ZodLiteral<"moved">;
637
+ fromBookingId: z.ZodString;
638
+ bookingId: z.ZodString;
639
+ classId: z.ZodString;
640
+ holderId: z.ZodNullable<z.ZodString>;
641
+ }, z.core.$strip>, z.ZodObject<{
642
+ result: z.ZodLiteral<"refused">;
643
+ reason: z.ZodEnum<{
644
+ not_open: "not_open";
645
+ closed: "closed";
646
+ staff_only: "staff_only";
647
+ no_use: "no_use";
648
+ already_booked: "already_booked";
649
+ full: "full";
650
+ too_late: "too_late";
651
+ not_found: "not_found";
652
+ changed: "changed";
653
+ not_running: "not_running";
654
+ person_exists: "person_exists";
655
+ possible_duplicates: "possible_duplicates";
656
+ waitlist_closed: "waitlist_closed";
657
+ no_drop_in: "no_drop_in";
658
+ ask_desk: "ask_desk";
659
+ try_later: "try_later";
660
+ }>;
661
+ message: z.ZodString;
662
+ detail: z.ZodNullable<z.ZodString>;
663
+ opensAt: z.ZodNullable<z.ZodString>;
664
+ closesAt: z.ZodNullable<z.ZodString>;
665
+ people: z.ZodOptional<z.ZodArray<z.ZodObject<{
666
+ id: z.ZodString;
667
+ name: z.ZodString;
668
+ reasons: z.ZodArray<z.ZodString>;
669
+ }, z.core.$strip>>>;
670
+ }, z.core.$strip>, z.ZodObject<{
671
+ result: z.ZodLiteral<"refused">;
672
+ message: z.ZodString;
673
+ detail: z.ZodNullable<z.ZodString>;
674
+ opensAt: z.ZodNullable<z.ZodString>;
675
+ closesAt: z.ZodNullable<z.ZodString>;
676
+ people: z.ZodOptional<z.ZodArray<z.ZodObject<{
677
+ id: z.ZodString;
678
+ name: z.ZodString;
679
+ reasons: z.ZodArray<z.ZodString>;
680
+ }, z.core.$strip>>>;
681
+ reason: z.ZodEnum<{
682
+ not_booked: "not_booked";
683
+ same_class: "same_class";
684
+ started: "started";
685
+ }>;
686
+ }, z.core.$strip>]>>;
687
+ export declare const cancelClass: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
688
+ classId: z.ZodString;
689
+ reason: z.ZodString;
690
+ }, z.core.$strip>, z.ZodObject<{
691
+ result: z.ZodLiteral<"cancelled">;
692
+ classId: z.ZodString;
693
+ bookingsCancelled: z.ZodNumber;
694
+ }, z.core.$strip>>;
695
+ export declare const bookAppointment: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
696
+ serviceId: z.ZodString;
697
+ startsAt: z.ZodString;
698
+ personId: z.ZodString;
699
+ coachId: z.ZodOptional<z.ZodString>;
700
+ roomId: z.ZodOptional<z.ZodString>;
701
+ holderId: z.ZodOptional<z.ZodString>;
702
+ paidAtDesk: z.ZodDefault<z.ZodBoolean>;
703
+ note: z.ZodOptional<z.ZodString>;
704
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
705
+ result: z.ZodLiteral<"booked">;
706
+ appointmentId: z.ZodString;
707
+ coachId: z.ZodNullable<z.ZodString>;
708
+ roomId: z.ZodNullable<z.ZodString>;
709
+ startsAt: z.ZodNullable<z.ZodString>;
710
+ endsAt: z.ZodNullable<z.ZodString>;
711
+ holderId: z.ZodNullable<z.ZodString>;
712
+ paidAtDesk: z.ZodBoolean;
713
+ warnings: z.ZodArray<z.ZodObject<{
714
+ code: z.ZodString;
715
+ message: z.ZodString;
716
+ }, z.core.$strip>>;
717
+ }, z.core.$strip>, z.ZodObject<{
718
+ result: z.ZodLiteral<"refused">;
719
+ reason: z.ZodEnum<{
720
+ no_use: "no_use";
721
+ too_late: "too_late";
722
+ not_found: "not_found";
723
+ changed: "changed";
724
+ not_started: "not_started";
725
+ not_booked: "not_booked";
726
+ started: "started";
727
+ double_booked: "double_booked";
728
+ room_taken: "room_taken";
729
+ no_account: "no_account";
730
+ no_coach_free: "no_coach_free";
731
+ not_offered: "not_offered";
732
+ same_time: "same_time";
733
+ }>;
734
+ message: z.ZodString;
735
+ detail: z.ZodNullable<z.ZodString>;
736
+ state: z.ZodNullable<z.ZodString>;
737
+ }, z.core.$strip>]>>;
738
+ export declare const moveAppointment: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
739
+ appointmentId: z.ZodString;
740
+ startsAt: z.ZodString;
741
+ coachId: z.ZodOptional<z.ZodString>;
742
+ note: z.ZodOptional<z.ZodString>;
743
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
744
+ result: z.ZodLiteral<"booked">;
745
+ appointmentId: z.ZodString;
746
+ coachId: z.ZodNullable<z.ZodString>;
747
+ roomId: z.ZodNullable<z.ZodString>;
748
+ startsAt: z.ZodNullable<z.ZodString>;
749
+ endsAt: z.ZodNullable<z.ZodString>;
750
+ holderId: z.ZodNullable<z.ZodString>;
751
+ paidAtDesk: z.ZodBoolean;
752
+ warnings: z.ZodArray<z.ZodObject<{
753
+ code: z.ZodString;
754
+ message: z.ZodString;
755
+ }, z.core.$strip>>;
756
+ fromAppointmentId: z.ZodString;
757
+ }, z.core.$strip>, z.ZodObject<{
758
+ result: z.ZodLiteral<"refused">;
759
+ reason: z.ZodEnum<{
760
+ no_use: "no_use";
761
+ too_late: "too_late";
762
+ not_found: "not_found";
763
+ changed: "changed";
764
+ not_started: "not_started";
765
+ not_booked: "not_booked";
766
+ started: "started";
767
+ double_booked: "double_booked";
768
+ room_taken: "room_taken";
769
+ no_account: "no_account";
770
+ no_coach_free: "no_coach_free";
771
+ not_offered: "not_offered";
772
+ same_time: "same_time";
773
+ }>;
774
+ message: z.ZodString;
775
+ detail: z.ZodNullable<z.ZodString>;
776
+ state: z.ZodNullable<z.ZodString>;
777
+ }, z.core.$strip>]>>;
778
+ export declare const cancelAppointment: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
779
+ appointmentId: z.ZodString;
780
+ confirm: z.ZodDefault<z.ZodBoolean>;
781
+ keepUse: z.ZodDefault<z.ZodBoolean>;
782
+ note: z.ZodOptional<z.ZodString>;
783
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
784
+ result: z.ZodEnum<{
785
+ cancelled: "cancelled";
786
+ late_cancelled: "late_cancelled";
787
+ preview: "preview";
788
+ }>;
789
+ appointmentId: z.ZodString;
790
+ state: z.ZodEnum<{
791
+ cancelled: "cancelled";
792
+ late_cancelled: "late_cancelled";
793
+ }>;
794
+ late: z.ZodBoolean;
795
+ }, z.core.$strip>, z.ZodObject<{
796
+ result: z.ZodLiteral<"refused">;
797
+ reason: z.ZodEnum<{
798
+ no_use: "no_use";
799
+ too_late: "too_late";
800
+ not_found: "not_found";
801
+ changed: "changed";
802
+ not_started: "not_started";
803
+ not_booked: "not_booked";
804
+ started: "started";
805
+ double_booked: "double_booked";
806
+ room_taken: "room_taken";
807
+ no_account: "no_account";
808
+ no_coach_free: "no_coach_free";
809
+ not_offered: "not_offered";
810
+ same_time: "same_time";
811
+ }>;
812
+ message: z.ZodString;
813
+ detail: z.ZodNullable<z.ZodString>;
814
+ state: z.ZodNullable<z.ZodString>;
815
+ }, z.core.$strip>]>>;
816
+ export declare const cancelAppointmentByUs: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
817
+ appointmentId: z.ZodString;
818
+ reason: z.ZodString;
819
+ }, z.core.$strip>, z.ZodObject<{
820
+ result: z.ZodLiteral<"cancelled_by_us">;
821
+ appointmentId: z.ZodString;
822
+ }, z.core.$strip>>;
823
+ export declare const markAppointment: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
824
+ appointmentId: z.ZodString;
825
+ mark: z.ZodEnum<{
826
+ attended: "attended";
827
+ no_show: "no_show";
828
+ }>;
829
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
830
+ result: z.ZodEnum<{
831
+ attended: "attended";
832
+ no_show: "no_show";
833
+ }>;
834
+ appointmentId: z.ZodString;
835
+ message: z.ZodString;
836
+ }, z.core.$strip>, z.ZodObject<{
837
+ result: z.ZodLiteral<"refused">;
838
+ reason: z.ZodEnum<{
839
+ no_use: "no_use";
840
+ too_late: "too_late";
841
+ not_found: "not_found";
842
+ changed: "changed";
843
+ not_started: "not_started";
844
+ not_booked: "not_booked";
845
+ started: "started";
846
+ double_booked: "double_booked";
847
+ room_taken: "room_taken";
848
+ no_account: "no_account";
849
+ no_coach_free: "no_coach_free";
850
+ not_offered: "not_offered";
851
+ same_time: "same_time";
852
+ }>;
853
+ message: z.ZodString;
854
+ detail: z.ZodNullable<z.ZodString>;
855
+ state: z.ZodNullable<z.ZodString>;
856
+ }, z.core.$strip>]>>;
857
+ export declare const excuseAppointment: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
858
+ appointmentId: z.ZodString;
859
+ reason: z.ZodString;
860
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
861
+ result: z.ZodLiteral<"excused">;
862
+ appointmentId: z.ZodString;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ result: z.ZodLiteral<"refused">;
865
+ reason: z.ZodEnum<{
866
+ no_use: "no_use";
867
+ too_late: "too_late";
868
+ not_found: "not_found";
869
+ changed: "changed";
870
+ not_started: "not_started";
871
+ not_booked: "not_booked";
872
+ started: "started";
873
+ double_booked: "double_booked";
874
+ room_taken: "room_taken";
875
+ no_account: "no_account";
876
+ no_coach_free: "no_coach_free";
877
+ not_offered: "not_offered";
878
+ same_time: "same_time";
879
+ }>;
880
+ message: z.ZodString;
881
+ detail: z.ZodNullable<z.ZodString>;
882
+ state: z.ZodNullable<z.ZodString>;
883
+ }, z.core.$strip>]>>;
884
+ export declare const reassignAppointment: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
885
+ appointmentId: z.ZodString;
886
+ coachId: z.ZodString;
887
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
888
+ result: z.ZodLiteral<"booked">;
889
+ appointmentId: z.ZodString;
890
+ coachId: z.ZodNullable<z.ZodString>;
891
+ roomId: z.ZodNullable<z.ZodString>;
892
+ startsAt: z.ZodNullable<z.ZodString>;
893
+ endsAt: z.ZodNullable<z.ZodString>;
894
+ holderId: z.ZodNullable<z.ZodString>;
895
+ paidAtDesk: z.ZodBoolean;
896
+ warnings: z.ZodArray<z.ZodObject<{
897
+ code: z.ZodString;
898
+ message: z.ZodString;
899
+ }, z.core.$strip>>;
900
+ }, z.core.$strip>, z.ZodObject<{
901
+ result: z.ZodLiteral<"refused">;
902
+ reason: z.ZodEnum<{
903
+ no_use: "no_use";
904
+ too_late: "too_late";
905
+ not_found: "not_found";
906
+ changed: "changed";
907
+ not_started: "not_started";
908
+ not_booked: "not_booked";
909
+ started: "started";
910
+ double_booked: "double_booked";
911
+ room_taken: "room_taken";
912
+ no_account: "no_account";
913
+ no_coach_free: "no_coach_free";
914
+ not_offered: "not_offered";
915
+ same_time: "same_time";
916
+ }>;
917
+ message: z.ZodString;
918
+ detail: z.ZodNullable<z.ZodString>;
919
+ state: z.ZodNullable<z.ZodString>;
920
+ }, z.core.$strip>]>>;
921
+ export declare const coachDay: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
922
+ date: z.ZodString;
923
+ coachId: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$strip>, z.ZodObject<{
925
+ date: z.ZodString;
926
+ timeZone: z.ZodString;
927
+ coaches: z.ZodArray<z.ZodObject<{
928
+ coachId: z.ZodString;
929
+ name: z.ZodNullable<z.ZodString>;
930
+ items: z.ZodArray<z.ZodObject<{
931
+ kind: z.ZodEnum<{
932
+ shift: "shift";
933
+ class: "class";
934
+ appointment: "appointment";
935
+ }>;
936
+ object: z.ZodString;
937
+ id: z.ZodString;
938
+ title: z.ZodNullable<z.ZodString>;
939
+ startsAt: z.ZodNullable<z.ZodString>;
940
+ endsAt: z.ZodNullable<z.ZodString>;
941
+ room: z.ZodNullable<z.ZodString>;
942
+ state: z.ZodNullable<z.ZodString>;
943
+ service: z.ZodNullable<z.ZodString>;
944
+ client: z.ZodNullable<z.ZodObject<{
945
+ id: z.ZodString;
946
+ name: z.ZodNullable<z.ZodString>;
947
+ }, z.core.$strip>>;
948
+ }, z.core.$strip>>;
352
949
  }, z.core.$strip>>;
353
950
  }, z.core.$strip>>;