balendar 0.0.10 → 0.0.12
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
|
@@ -60,7 +60,7 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
60
60
|
}>>;
|
|
61
61
|
};
|
|
62
62
|
api: {
|
|
63
|
-
calendars: {
|
|
63
|
+
"calendars-public": {
|
|
64
64
|
connections: ((params: {
|
|
65
65
|
provider: string | number;
|
|
66
66
|
}) => {
|
|
@@ -90,98 +90,8 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
90
90
|
};
|
|
91
91
|
}>>;
|
|
92
92
|
};
|
|
93
|
-
} &
|
|
94
|
-
|
|
95
|
-
}) => {
|
|
96
|
-
oauth: {
|
|
97
|
-
url: {
|
|
98
|
-
get: (options?: {
|
|
99
|
-
headers?: Record<string, unknown> | undefined;
|
|
100
|
-
query?: Record<string, unknown> | undefined;
|
|
101
|
-
fetch?: RequestInit | undefined;
|
|
102
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
103
|
-
500: {
|
|
104
|
-
error: string;
|
|
105
|
-
};
|
|
106
|
-
200: {
|
|
107
|
-
url: string;
|
|
108
|
-
};
|
|
109
|
-
422: {
|
|
110
|
-
type: "validation";
|
|
111
|
-
on: string;
|
|
112
|
-
summary?: string;
|
|
113
|
-
message?: string;
|
|
114
|
-
found?: unknown;
|
|
115
|
-
property?: string;
|
|
116
|
-
expected?: string;
|
|
117
|
-
};
|
|
118
|
-
}>>;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
})) & {
|
|
122
|
-
check: ((params: {
|
|
123
|
-
userId: string | number;
|
|
124
|
-
}) => {
|
|
125
|
-
get: (options?: {
|
|
126
|
-
headers?: Record<string, unknown> | undefined;
|
|
127
|
-
query?: Record<string, unknown> | undefined;
|
|
128
|
-
fetch?: RequestInit | undefined;
|
|
129
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
130
|
-
500: {
|
|
131
|
-
error: string;
|
|
132
|
-
};
|
|
133
|
-
200: {
|
|
134
|
-
connected: boolean;
|
|
135
|
-
provider: "apple" | "google" | "microsoft" | null;
|
|
136
|
-
};
|
|
137
|
-
422: {
|
|
138
|
-
type: "validation";
|
|
139
|
-
on: string;
|
|
140
|
-
summary?: string;
|
|
141
|
-
message?: string;
|
|
142
|
-
found?: unknown;
|
|
143
|
-
property?: string;
|
|
144
|
-
expected?: string;
|
|
145
|
-
};
|
|
146
|
-
}>>;
|
|
147
|
-
}) & {};
|
|
148
|
-
};
|
|
149
|
-
webhooks: ((params: {
|
|
150
|
-
userId: string | number;
|
|
151
|
-
}) => {
|
|
152
|
-
handle: {
|
|
153
|
-
post: (body?: any, options?: {
|
|
154
|
-
headers?: Record<string, unknown> | undefined;
|
|
155
|
-
query?: Record<string, unknown> | undefined;
|
|
156
|
-
fetch?: RequestInit | undefined;
|
|
157
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
158
|
-
500: {
|
|
159
|
-
error: string;
|
|
160
|
-
};
|
|
161
|
-
200: {
|
|
162
|
-
success: boolean;
|
|
163
|
-
calendarExternalId?: string | undefined;
|
|
164
|
-
resourceId?: string | undefined;
|
|
165
|
-
error?: string | undefined;
|
|
166
|
-
};
|
|
167
|
-
400: {
|
|
168
|
-
error: string;
|
|
169
|
-
};
|
|
170
|
-
404: {
|
|
171
|
-
error: string;
|
|
172
|
-
};
|
|
173
|
-
422: {
|
|
174
|
-
type: "validation";
|
|
175
|
-
on: string;
|
|
176
|
-
summary?: string;
|
|
177
|
-
message?: string;
|
|
178
|
-
found?: unknown;
|
|
179
|
-
property?: string;
|
|
180
|
-
expected?: string;
|
|
181
|
-
};
|
|
182
|
-
}>>;
|
|
183
|
-
};
|
|
184
|
-
}) & {
|
|
93
|
+
}) & {};
|
|
94
|
+
webhooks: {
|
|
185
95
|
google: {
|
|
186
96
|
post: (body?: any, options?: {
|
|
187
97
|
headers?: Record<string, unknown> | undefined;
|
|
@@ -211,129 +121,6 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
211
121
|
}>>;
|
|
212
122
|
};
|
|
213
123
|
};
|
|
214
|
-
events: ((params: {
|
|
215
|
-
eventId: string | number;
|
|
216
|
-
}) => {
|
|
217
|
-
patch: (body: {
|
|
218
|
-
userId: number;
|
|
219
|
-
status?: "confirmed" | "cancelled" | "tentative" | undefined;
|
|
220
|
-
title?: string | undefined;
|
|
221
|
-
description?: string | null | undefined;
|
|
222
|
-
startTime?: string | undefined;
|
|
223
|
-
endTime?: string | undefined;
|
|
224
|
-
location?: string | null | undefined;
|
|
225
|
-
busyStatus?: "busy" | "free" | undefined;
|
|
226
|
-
}, options?: {
|
|
227
|
-
headers?: Record<string, unknown> | undefined;
|
|
228
|
-
query?: Record<string, unknown> | undefined;
|
|
229
|
-
fetch?: RequestInit | undefined;
|
|
230
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
231
|
-
500: {
|
|
232
|
-
error: string;
|
|
233
|
-
};
|
|
234
|
-
200: {
|
|
235
|
-
userId: number;
|
|
236
|
-
title: string;
|
|
237
|
-
startTime: string;
|
|
238
|
-
endTime: string;
|
|
239
|
-
status: "confirmed" | "cancelled" | "tentative";
|
|
240
|
-
busyStatus: "busy" | "free";
|
|
241
|
-
createdAt: string;
|
|
242
|
-
updatedAt: string;
|
|
243
|
-
eventId: number;
|
|
244
|
-
bookingId: number | null;
|
|
245
|
-
description: string | null;
|
|
246
|
-
location: string | null;
|
|
247
|
-
};
|
|
248
|
-
400: {
|
|
249
|
-
error: string;
|
|
250
|
-
};
|
|
251
|
-
404: {
|
|
252
|
-
error: string;
|
|
253
|
-
};
|
|
254
|
-
422: {
|
|
255
|
-
type: "validation";
|
|
256
|
-
on: string;
|
|
257
|
-
summary?: string;
|
|
258
|
-
message?: string;
|
|
259
|
-
found?: unknown;
|
|
260
|
-
property?: string;
|
|
261
|
-
expected?: string;
|
|
262
|
-
};
|
|
263
|
-
}>>;
|
|
264
|
-
delete: (body: {
|
|
265
|
-
userId: number;
|
|
266
|
-
}, options?: {
|
|
267
|
-
headers?: Record<string, unknown> | undefined;
|
|
268
|
-
query?: Record<string, unknown> | undefined;
|
|
269
|
-
fetch?: RequestInit | undefined;
|
|
270
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
271
|
-
500: {
|
|
272
|
-
error: string;
|
|
273
|
-
};
|
|
274
|
-
200: {
|
|
275
|
-
success: boolean;
|
|
276
|
-
};
|
|
277
|
-
404: {
|
|
278
|
-
error: string;
|
|
279
|
-
};
|
|
280
|
-
422: {
|
|
281
|
-
type: "validation";
|
|
282
|
-
on: string;
|
|
283
|
-
summary?: string;
|
|
284
|
-
message?: string;
|
|
285
|
-
found?: unknown;
|
|
286
|
-
property?: string;
|
|
287
|
-
expected?: string;
|
|
288
|
-
};
|
|
289
|
-
}>>;
|
|
290
|
-
}) & {
|
|
291
|
-
post: (body: {
|
|
292
|
-
userId: number;
|
|
293
|
-
bookingId: number | null;
|
|
294
|
-
title: string;
|
|
295
|
-
description: string | null;
|
|
296
|
-
location: string | null;
|
|
297
|
-
startTime: string;
|
|
298
|
-
endTime: string;
|
|
299
|
-
status: "confirmed" | "cancelled" | "tentative";
|
|
300
|
-
busyStatus: "busy" | "free";
|
|
301
|
-
}, options?: {
|
|
302
|
-
headers?: Record<string, unknown> | undefined;
|
|
303
|
-
query?: Record<string, unknown> | undefined;
|
|
304
|
-
fetch?: RequestInit | undefined;
|
|
305
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
306
|
-
500: {
|
|
307
|
-
error: string;
|
|
308
|
-
};
|
|
309
|
-
200: {
|
|
310
|
-
userId: number;
|
|
311
|
-
title: string;
|
|
312
|
-
startTime: string;
|
|
313
|
-
endTime: string;
|
|
314
|
-
status: "confirmed" | "cancelled" | "tentative";
|
|
315
|
-
busyStatus: "busy" | "free";
|
|
316
|
-
createdAt: string;
|
|
317
|
-
updatedAt: string;
|
|
318
|
-
eventId: number;
|
|
319
|
-
bookingId: number | null;
|
|
320
|
-
description: string | null;
|
|
321
|
-
location: string | null;
|
|
322
|
-
};
|
|
323
|
-
400: {
|
|
324
|
-
error: string;
|
|
325
|
-
};
|
|
326
|
-
422: {
|
|
327
|
-
type: "validation";
|
|
328
|
-
on: string;
|
|
329
|
-
summary?: string;
|
|
330
|
-
message?: string;
|
|
331
|
-
found?: unknown;
|
|
332
|
-
property?: string;
|
|
333
|
-
expected?: string;
|
|
334
|
-
};
|
|
335
|
-
}>>;
|
|
336
|
-
};
|
|
337
124
|
};
|
|
338
125
|
events: ((params: {
|
|
339
126
|
eventId: string | number;
|
|
@@ -735,44 +522,203 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
735
522
|
}>>;
|
|
736
523
|
};
|
|
737
524
|
};
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
525
|
+
"user-time-slots": {
|
|
526
|
+
post: (body: {
|
|
527
|
+
filters: {
|
|
528
|
+
dateFrom: string;
|
|
529
|
+
dateTo: string;
|
|
530
|
+
timeFrom: string;
|
|
531
|
+
timeTo: string;
|
|
532
|
+
userId: number;
|
|
533
|
+
bookingLocations: {
|
|
534
|
+
bookingLocationId: number;
|
|
535
|
+
bufferMinutes: number;
|
|
536
|
+
leadMinutes: number;
|
|
537
|
+
}[];
|
|
538
|
+
bookingDurationMinutes: number;
|
|
539
|
+
slotGapMinutes: number;
|
|
540
|
+
timeZone: string;
|
|
541
|
+
};
|
|
542
|
+
}, options?: {
|
|
543
|
+
headers?: Record<string, unknown> | undefined;
|
|
544
|
+
query?: Record<string, unknown> | undefined;
|
|
545
|
+
fetch?: RequestInit | undefined;
|
|
546
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
547
|
+
200: {
|
|
548
|
+
userId: number;
|
|
549
|
+
timeZone: string;
|
|
550
|
+
bookingLocationAvailability: {
|
|
551
|
+
bookingLocationId: number;
|
|
552
|
+
timeSlotCount: number;
|
|
553
|
+
timeSlots: {
|
|
554
|
+
date: string;
|
|
555
|
+
time: string[];
|
|
751
556
|
}[];
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
557
|
+
}[];
|
|
558
|
+
};
|
|
559
|
+
400: {
|
|
560
|
+
error: string;
|
|
561
|
+
};
|
|
562
|
+
422: {
|
|
563
|
+
type: "validation";
|
|
564
|
+
on: string;
|
|
565
|
+
summary?: string;
|
|
566
|
+
message?: string;
|
|
567
|
+
found?: unknown;
|
|
568
|
+
property?: string;
|
|
569
|
+
expected?: string;
|
|
570
|
+
};
|
|
571
|
+
}>>;
|
|
572
|
+
};
|
|
573
|
+
"users-time-slots": {
|
|
574
|
+
post: (body: {
|
|
575
|
+
baseFilters: {
|
|
576
|
+
dateFrom: string;
|
|
577
|
+
dateTo: string;
|
|
578
|
+
timeFrom: string;
|
|
579
|
+
timeTo: string;
|
|
580
|
+
};
|
|
581
|
+
userFilters: {
|
|
582
|
+
userId: number;
|
|
583
|
+
bookingLocations: {
|
|
584
|
+
bookingLocationId: number;
|
|
585
|
+
bufferMinutes: number;
|
|
586
|
+
leadMinutes: number;
|
|
587
|
+
}[];
|
|
588
|
+
bookingDurationMinutes: number;
|
|
589
|
+
slotGapMinutes: number;
|
|
590
|
+
timeZone: string;
|
|
591
|
+
}[];
|
|
592
|
+
}, options?: {
|
|
593
|
+
headers?: Record<string, unknown> | undefined;
|
|
594
|
+
query?: Record<string, unknown> | undefined;
|
|
595
|
+
fetch?: RequestInit | undefined;
|
|
596
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
597
|
+
200: {
|
|
598
|
+
userId: number;
|
|
599
|
+
timeZone: string;
|
|
600
|
+
bookingLocationAvailability: {
|
|
601
|
+
bookingLocationId: number;
|
|
602
|
+
timeSlotCount: number;
|
|
603
|
+
timeSlots: {
|
|
604
|
+
date: string;
|
|
605
|
+
time: string[];
|
|
606
|
+
}[];
|
|
607
|
+
}[];
|
|
608
|
+
}[];
|
|
609
|
+
400: {
|
|
610
|
+
error: string;
|
|
611
|
+
};
|
|
612
|
+
422: {
|
|
613
|
+
type: "validation";
|
|
614
|
+
on: string;
|
|
615
|
+
summary?: string;
|
|
616
|
+
message?: string;
|
|
617
|
+
found?: unknown;
|
|
618
|
+
property?: string;
|
|
619
|
+
expected?: string;
|
|
620
|
+
};
|
|
621
|
+
}>>;
|
|
622
|
+
};
|
|
623
|
+
calendars: {
|
|
624
|
+
connections: ((params: {
|
|
625
|
+
provider: string | number;
|
|
626
|
+
}) => {} & ((params: {
|
|
627
|
+
userId: string | number;
|
|
628
|
+
}) => {
|
|
629
|
+
oauth: {
|
|
630
|
+
url: {
|
|
631
|
+
get: (options?: {
|
|
632
|
+
headers?: Record<string, unknown> | undefined;
|
|
633
|
+
query?: Record<string, unknown> | undefined;
|
|
634
|
+
fetch?: RequestInit | undefined;
|
|
635
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
636
|
+
500: {
|
|
637
|
+
error: string;
|
|
638
|
+
};
|
|
639
|
+
200: {
|
|
640
|
+
url: string;
|
|
641
|
+
};
|
|
642
|
+
422: {
|
|
643
|
+
type: "validation";
|
|
644
|
+
on: string;
|
|
645
|
+
summary?: string;
|
|
646
|
+
message?: string;
|
|
647
|
+
found?: unknown;
|
|
648
|
+
property?: string;
|
|
649
|
+
expected?: string;
|
|
650
|
+
};
|
|
651
|
+
}>>;
|
|
755
652
|
};
|
|
653
|
+
};
|
|
654
|
+
})) & {
|
|
655
|
+
check: ((params: {
|
|
656
|
+
userId: string | number;
|
|
657
|
+
}) => {
|
|
658
|
+
get: (options?: {
|
|
659
|
+
headers?: Record<string, unknown> | undefined;
|
|
660
|
+
query?: Record<string, unknown> | undefined;
|
|
661
|
+
fetch?: RequestInit | undefined;
|
|
662
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
663
|
+
500: {
|
|
664
|
+
error: string;
|
|
665
|
+
};
|
|
666
|
+
200: {
|
|
667
|
+
connected: boolean;
|
|
668
|
+
provider: "apple" | "google" | "microsoft" | null;
|
|
669
|
+
};
|
|
670
|
+
422: {
|
|
671
|
+
type: "validation";
|
|
672
|
+
on: string;
|
|
673
|
+
summary?: string;
|
|
674
|
+
message?: string;
|
|
675
|
+
found?: unknown;
|
|
676
|
+
property?: string;
|
|
677
|
+
expected?: string;
|
|
678
|
+
};
|
|
679
|
+
}>>;
|
|
680
|
+
}) & {};
|
|
681
|
+
};
|
|
682
|
+
events: ((params: {
|
|
683
|
+
eventId: string | number;
|
|
684
|
+
}) => {
|
|
685
|
+
patch: (body: {
|
|
686
|
+
userId: number;
|
|
687
|
+
title?: string | undefined;
|
|
688
|
+
description?: string | null | undefined;
|
|
689
|
+
status?: "confirmed" | "cancelled" | "tentative" | undefined;
|
|
690
|
+
startTime?: string | undefined;
|
|
691
|
+
endTime?: string | undefined;
|
|
692
|
+
location?: string | null | undefined;
|
|
693
|
+
busyStatus?: "busy" | "free" | undefined;
|
|
756
694
|
}, options?: {
|
|
757
695
|
headers?: Record<string, unknown> | undefined;
|
|
758
696
|
query?: Record<string, unknown> | undefined;
|
|
759
697
|
fetch?: RequestInit | undefined;
|
|
760
698
|
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
699
|
+
500: {
|
|
700
|
+
error: string;
|
|
701
|
+
};
|
|
761
702
|
200: {
|
|
762
703
|
userId: number;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
704
|
+
title: string;
|
|
705
|
+
startTime: string;
|
|
706
|
+
endTime: string;
|
|
707
|
+
status: "confirmed" | "cancelled" | "tentative";
|
|
708
|
+
busyStatus: "busy" | "free";
|
|
709
|
+
createdAt: string;
|
|
710
|
+
updatedAt: string;
|
|
711
|
+
eventId: number;
|
|
712
|
+
bookingId: number | null;
|
|
713
|
+
description: string | null;
|
|
714
|
+
location: string | null;
|
|
772
715
|
};
|
|
773
716
|
400: {
|
|
774
717
|
error: string;
|
|
775
718
|
};
|
|
719
|
+
404: {
|
|
720
|
+
error: string;
|
|
721
|
+
};
|
|
776
722
|
422: {
|
|
777
723
|
type: "validation";
|
|
778
724
|
on: string;
|
|
@@ -783,43 +729,65 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
783
729
|
expected?: string;
|
|
784
730
|
};
|
|
785
731
|
}>>;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
732
|
+
delete: (body: {
|
|
733
|
+
userId: number;
|
|
734
|
+
}, options?: {
|
|
735
|
+
headers?: Record<string, unknown> | undefined;
|
|
736
|
+
query?: Record<string, unknown> | undefined;
|
|
737
|
+
fetch?: RequestInit | undefined;
|
|
738
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
739
|
+
500: {
|
|
740
|
+
error: string;
|
|
794
741
|
};
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
742
|
+
200: {
|
|
743
|
+
success: boolean;
|
|
744
|
+
};
|
|
745
|
+
404: {
|
|
746
|
+
error: string;
|
|
747
|
+
};
|
|
748
|
+
422: {
|
|
749
|
+
type: "validation";
|
|
750
|
+
on: string;
|
|
751
|
+
summary?: string;
|
|
752
|
+
message?: string;
|
|
753
|
+
found?: unknown;
|
|
754
|
+
property?: string;
|
|
755
|
+
expected?: string;
|
|
756
|
+
};
|
|
757
|
+
}>>;
|
|
758
|
+
}) & {
|
|
759
|
+
post: (body: {
|
|
760
|
+
userId: number;
|
|
761
|
+
bookingId: number | null;
|
|
762
|
+
title: string;
|
|
763
|
+
description: string | null;
|
|
764
|
+
location: string | null;
|
|
765
|
+
startTime: string;
|
|
766
|
+
endTime: string;
|
|
767
|
+
status: "confirmed" | "cancelled" | "tentative";
|
|
768
|
+
busyStatus: "busy" | "free";
|
|
806
769
|
}, options?: {
|
|
807
770
|
headers?: Record<string, unknown> | undefined;
|
|
808
771
|
query?: Record<string, unknown> | undefined;
|
|
809
772
|
fetch?: RequestInit | undefined;
|
|
810
773
|
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
774
|
+
500: {
|
|
775
|
+
error: string;
|
|
776
|
+
};
|
|
811
777
|
200: {
|
|
812
778
|
userId: number;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
779
|
+
title: string;
|
|
780
|
+
startTime: string;
|
|
781
|
+
endTime: string;
|
|
782
|
+
status: "confirmed" | "cancelled" | "tentative";
|
|
783
|
+
busyStatus: "busy" | "free";
|
|
784
|
+
createdAt: string;
|
|
785
|
+
updatedAt: string;
|
|
786
|
+
eventId: number;
|
|
787
|
+
bookingId: number | null;
|
|
788
|
+
description: string | null;
|
|
789
|
+
location: string | null;
|
|
790
|
+
};
|
|
823
791
|
400: {
|
|
824
792
|
error: string;
|
|
825
793
|
};
|
|
@@ -834,6 +802,41 @@ export declare function createBalendar(config: BalendarConfig): {
|
|
|
834
802
|
};
|
|
835
803
|
}>>;
|
|
836
804
|
};
|
|
805
|
+
webhooks: ((params: {
|
|
806
|
+
userId: string | number;
|
|
807
|
+
}) => {
|
|
808
|
+
handle: {
|
|
809
|
+
post: (body?: any, options?: {
|
|
810
|
+
headers?: Record<string, unknown> | undefined;
|
|
811
|
+
query?: Record<string, unknown> | undefined;
|
|
812
|
+
fetch?: RequestInit | undefined;
|
|
813
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
814
|
+
500: {
|
|
815
|
+
error: string;
|
|
816
|
+
};
|
|
817
|
+
200: {
|
|
818
|
+
success: boolean;
|
|
819
|
+
resourceId?: string | undefined;
|
|
820
|
+
error?: string | undefined;
|
|
821
|
+
};
|
|
822
|
+
400: {
|
|
823
|
+
error: string;
|
|
824
|
+
};
|
|
825
|
+
404: {
|
|
826
|
+
error: string;
|
|
827
|
+
};
|
|
828
|
+
422: {
|
|
829
|
+
type: "validation";
|
|
830
|
+
on: string;
|
|
831
|
+
summary?: string;
|
|
832
|
+
message?: string;
|
|
833
|
+
found?: unknown;
|
|
834
|
+
property?: string;
|
|
835
|
+
expected?: string;
|
|
836
|
+
};
|
|
837
|
+
}>>;
|
|
838
|
+
};
|
|
839
|
+
}) & {};
|
|
837
840
|
};
|
|
838
841
|
};
|
|
839
842
|
};
|
|
@@ -92,13 +92,13 @@ export type Events = z.infer<typeof EventsSchema>;
|
|
|
92
92
|
*/
|
|
93
93
|
export declare const UpdateEventInputSchema: z.ZodObject<{
|
|
94
94
|
userId: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
title: z.ZodOptional<z.ZodString>;
|
|
96
|
+
description: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
95
97
|
status: z.ZodOptional<z.ZodEnum<{
|
|
96
98
|
confirmed: "confirmed";
|
|
97
99
|
cancelled: "cancelled";
|
|
98
100
|
tentative: "tentative";
|
|
99
101
|
}>>;
|
|
100
|
-
title: z.ZodOptional<z.ZodString>;
|
|
101
|
-
description: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
102
102
|
startTime: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
103
103
|
endTime: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
104
104
|
location: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|