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

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
@@ -123,6 +123,7 @@ export declare const buy: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
123
123
  classId: z.ZodString;
124
124
  forPersonId: z.ZodOptional<z.ZodString>;
125
125
  email: z.ZodOptional<z.ZodString>;
126
+ agreements: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
126
127
  }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
127
128
  result: z.ZodLiteral<"pending">;
128
129
  bookingId: z.ZodString;
@@ -252,10 +253,10 @@ export declare const mine: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
252
253
  state: z.ZodOptional<z.ZodEnum<{
253
254
  booked: "booked";
254
255
  waiting: "waiting";
255
- pending: "pending";
256
- left: "left";
257
256
  cancelled: "cancelled";
258
257
  late_cancelled: "late_cancelled";
258
+ pending: "pending";
259
+ left: "left";
259
260
  }>>;
260
261
  upcoming: z.ZodDefault<z.ZodBoolean>;
261
262
  limit: z.ZodDefault<z.ZodNumber>;
@@ -481,6 +482,7 @@ export declare const classList: import("@composable-os/sdk").ToolSpec<z.ZodObjec
481
482
  holderId: z.ZodNullable<z.ZodString>;
482
483
  bookedBy: z.ZodNullable<z.ZodString>;
483
484
  promotedAt: z.ZodNullable<z.ZodString>;
485
+ healthNote: z.ZodNullable<z.ZodBoolean>;
484
486
  passedOver: z.ZodNullable<z.ZodString>;
485
487
  }, z.core.$strip>>;
486
488
  }, z.core.$strip>>;
@@ -623,6 +625,7 @@ export declare const roster: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
623
625
  markedAt: z.ZodNullable<z.ZodString>;
624
626
  markedBy: z.ZodNullable<z.ZodString>;
625
627
  promotedAt: z.ZodNullable<z.ZodString>;
628
+ healthNote: z.ZodNullable<z.ZodBoolean>;
626
629
  }, z.core.$strip>>;
627
630
  }, z.core.$strip>>;
628
631
  export declare const move: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
@@ -689,3 +692,259 @@ export declare const cancelClass: import("@composable-os/sdk").ToolSpec<z.ZodObj
689
692
  classId: z.ZodString;
690
693
  bookingsCancelled: z.ZodNumber;
691
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>>;
949
+ }, z.core.$strip>>;
950
+ }, z.core.$strip>>;