balendar 0.0.11 → 0.0.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.
@@ -801,6 +801,83 @@ export declare function createBalendar(config: BalendarConfig): {
801
801
  expected?: string;
802
802
  };
803
803
  }>>;
804
+ "by-booking-id": ((params: {
805
+ bookingId: string | number;
806
+ }) => {
807
+ patch: (body: {
808
+ userId: number;
809
+ title?: string | undefined;
810
+ description?: string | null | undefined;
811
+ status?: "confirmed" | "cancelled" | "tentative" | undefined;
812
+ startTime?: string | undefined;
813
+ endTime?: string | undefined;
814
+ location?: string | null | undefined;
815
+ busyStatus?: "busy" | "free" | undefined;
816
+ }, options?: {
817
+ headers?: Record<string, unknown> | undefined;
818
+ query?: Record<string, unknown> | undefined;
819
+ fetch?: RequestInit | undefined;
820
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
821
+ 500: {
822
+ error: string;
823
+ };
824
+ 200: {
825
+ userId: number;
826
+ title: string;
827
+ startTime: string;
828
+ endTime: string;
829
+ status: "confirmed" | "cancelled" | "tentative";
830
+ busyStatus: "busy" | "free";
831
+ createdAt: string;
832
+ updatedAt: string;
833
+ eventId: number;
834
+ bookingId: number | null;
835
+ description: string | null;
836
+ location: string | null;
837
+ };
838
+ 400: {
839
+ error: string;
840
+ };
841
+ 404: {
842
+ error: string;
843
+ };
844
+ 422: {
845
+ type: "validation";
846
+ on: string;
847
+ summary?: string;
848
+ message?: string;
849
+ found?: unknown;
850
+ property?: string;
851
+ expected?: string;
852
+ };
853
+ }>>;
854
+ delete: (body: {
855
+ userId: number;
856
+ }, options?: {
857
+ headers?: Record<string, unknown> | undefined;
858
+ query?: Record<string, unknown> | undefined;
859
+ fetch?: RequestInit | undefined;
860
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
861
+ 500: {
862
+ error: string;
863
+ };
864
+ 200: {
865
+ success: boolean;
866
+ };
867
+ 404: {
868
+ error: string;
869
+ };
870
+ 422: {
871
+ type: "validation";
872
+ on: string;
873
+ summary?: string;
874
+ message?: string;
875
+ found?: unknown;
876
+ property?: string;
877
+ expected?: string;
878
+ };
879
+ }>>;
880
+ }) & {};
804
881
  };
805
882
  webhooks: ((params: {
806
883
  userId: string | number;
@@ -816,7 +893,6 @@ export declare function createBalendar(config: BalendarConfig): {
816
893
  };
817
894
  200: {
818
895
  success: boolean;
819
- calendarExternalId?: string | undefined;
820
896
  resourceId?: string | undefined;
821
897
  error?: string | undefined;
822
898
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balendar",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "module": "client.ts",
5
5
  "type": "module",
6
6
  "private": false,