balendar 0.0.27 → 0.0.29
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/lib/client.d.ts
CHANGED
|
@@ -627,36 +627,66 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
627
627
|
};
|
|
628
628
|
calendars: {
|
|
629
629
|
connections: ((params: {
|
|
630
|
-
provider: string | number;
|
|
631
|
-
}) => {} & ((params: {
|
|
632
630
|
userId: string | number;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
631
|
+
provider: string | number;
|
|
632
|
+
}) => {} | {
|
|
633
|
+
calendars: {
|
|
634
|
+
get: (options?: {
|
|
635
|
+
headers?: Record<string, unknown> | undefined;
|
|
636
|
+
query?: Record<string, unknown> | undefined;
|
|
637
|
+
fetch?: RequestInit | undefined;
|
|
638
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
639
|
+
500: {
|
|
640
|
+
error: string;
|
|
641
|
+
};
|
|
642
|
+
200: {
|
|
643
|
+
calendars: {
|
|
644
|
+
id: string;
|
|
645
|
+
name: string;
|
|
646
|
+
timezone: string;
|
|
647
|
+
isPrimary: boolean;
|
|
648
|
+
isSelected: boolean;
|
|
649
|
+
description?: string | undefined;
|
|
650
|
+
}[];
|
|
651
|
+
};
|
|
652
|
+
422: {
|
|
653
|
+
type: "validation";
|
|
654
|
+
on: string;
|
|
655
|
+
summary?: string;
|
|
656
|
+
message?: string;
|
|
657
|
+
found?: unknown;
|
|
658
|
+
property?: string;
|
|
659
|
+
expected?: string;
|
|
660
|
+
};
|
|
661
|
+
}>>;
|
|
662
|
+
};
|
|
663
|
+
calendar: {
|
|
664
|
+
put: (body: {
|
|
665
|
+
calendarId: string;
|
|
666
|
+
}, options?: {
|
|
667
|
+
headers?: Record<string, unknown> | undefined;
|
|
668
|
+
query?: Record<string, unknown> | undefined;
|
|
669
|
+
fetch?: RequestInit | undefined;
|
|
670
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
671
|
+
500: {
|
|
672
|
+
error: string;
|
|
673
|
+
};
|
|
674
|
+
200: {
|
|
675
|
+
success: boolean;
|
|
676
|
+
connectionId: string;
|
|
677
|
+
};
|
|
678
|
+
422: {
|
|
679
|
+
type: "validation";
|
|
680
|
+
on: string;
|
|
681
|
+
summary?: string;
|
|
682
|
+
message?: string;
|
|
683
|
+
found?: unknown;
|
|
684
|
+
property?: string;
|
|
685
|
+
expected?: string;
|
|
686
|
+
};
|
|
687
|
+
}>>;
|
|
658
688
|
};
|
|
659
|
-
})
|
|
689
|
+
}) & {
|
|
660
690
|
check: ((params: {
|
|
661
691
|
userId: string | number;
|
|
662
692
|
}) => {
|
|
@@ -671,6 +701,7 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
671
701
|
200: {
|
|
672
702
|
connected: boolean;
|
|
673
703
|
provider: "apple" | "google" | "microsoft" | null;
|
|
704
|
+
status: "error" | "active" | null;
|
|
674
705
|
};
|
|
675
706
|
422: {
|
|
676
707
|
type: "validation";
|