balendar 0.0.15 → 0.0.17
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 +3 -7
- package/dist/lib/models.d.ts +1 -0
- package/dist/lib/models.js +5 -5
- package/dist/src/modules/event-mappings/event-mappings.domain.d.ts +7 -0
- package/dist/src/orchestrators/availability/availability.domain.d.ts +0 -19
- package/dist/src/orchestrators/calendars/connections.domain.d.ts +10 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export declare const CreateEventMappingInputSchema: z.ZodObject<{
|
|
|
6
6
|
eventId: z.ZodNumber;
|
|
7
7
|
calendarConnectionId: z.ZodString;
|
|
8
8
|
externalId: z.ZodNullable<z.ZodString>;
|
|
9
|
+
recurringEventId: z.ZodNullable<z.ZodString>;
|
|
9
10
|
externalProvider: z.ZodEnum<{
|
|
10
11
|
apple: "apple";
|
|
11
12
|
google: "google";
|
|
@@ -20,6 +21,7 @@ export declare const EventMappingSchema: z.ZodObject<{
|
|
|
20
21
|
eventId: z.ZodNumber;
|
|
21
22
|
calendarConnectionId: z.ZodString;
|
|
22
23
|
externalId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
recurringEventId: z.ZodNullable<z.ZodString>;
|
|
23
25
|
externalProvider: z.ZodEnum<{
|
|
24
26
|
apple: "apple";
|
|
25
27
|
google: "google";
|
|
@@ -33,6 +35,7 @@ export declare const EventMappingsSchema: z.ZodArray<z.ZodObject<{
|
|
|
33
35
|
eventId: z.ZodNumber;
|
|
34
36
|
calendarConnectionId: z.ZodString;
|
|
35
37
|
externalId: z.ZodNullable<z.ZodString>;
|
|
38
|
+
recurringEventId: z.ZodNullable<z.ZodString>;
|
|
36
39
|
externalProvider: z.ZodEnum<{
|
|
37
40
|
apple: "apple";
|
|
38
41
|
google: "google";
|
|
@@ -49,6 +52,7 @@ export type EventMappings = z.infer<typeof EventMappingsSchema>;
|
|
|
49
52
|
*/
|
|
50
53
|
export declare const UpdateEventMappingInputSchema: z.ZodObject<{
|
|
51
54
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
recurringEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
56
|
}, z.core.$strip>;
|
|
53
57
|
export type UpdateEventMappingInput = z.infer<typeof UpdateEventMappingInputSchema>;
|
|
54
58
|
/**
|
|
@@ -59,6 +63,7 @@ export declare const PaginatedEventMappingsSchema: z.ZodObject<{
|
|
|
59
63
|
eventId: z.ZodNumber;
|
|
60
64
|
calendarConnectionId: z.ZodString;
|
|
61
65
|
externalId: z.ZodNullable<z.ZodString>;
|
|
66
|
+
recurringEventId: z.ZodNullable<z.ZodString>;
|
|
62
67
|
externalProvider: z.ZodEnum<{
|
|
63
68
|
apple: "apple";
|
|
64
69
|
google: "google";
|
|
@@ -84,6 +89,7 @@ export declare const SearchEventMappingsInputSchema: z.ZodObject<{
|
|
|
84
89
|
eventMappingId: z.ZodOptional<z.ZodNumber>;
|
|
85
90
|
calendarConnectionId: z.ZodOptional<z.ZodString>;
|
|
86
91
|
externalId: z.ZodOptional<z.ZodString>;
|
|
92
|
+
recurringEventId: z.ZodOptional<z.ZodString>;
|
|
87
93
|
externalProvider: z.ZodOptional<z.ZodEnum<{
|
|
88
94
|
apple: "apple";
|
|
89
95
|
google: "google";
|
|
@@ -103,6 +109,7 @@ export declare const SearchEventMappingsOutputSchema: z.ZodObject<{
|
|
|
103
109
|
eventId: z.ZodNumber;
|
|
104
110
|
calendarConnectionId: z.ZodString;
|
|
105
111
|
externalId: z.ZodNullable<z.ZodString>;
|
|
112
|
+
recurringEventId: z.ZodNullable<z.ZodString>;
|
|
106
113
|
externalProvider: z.ZodEnum<{
|
|
107
114
|
apple: "apple";
|
|
108
115
|
google: "google";
|
|
@@ -121,23 +121,4 @@ export declare const MultiUserAvailabilitySchema: z.ZodArray<z.ZodObject<{
|
|
|
121
121
|
}, z.core.$strip>>;
|
|
122
122
|
}, z.core.$strip>>;
|
|
123
123
|
export type MultiUserAvailability = z.infer<typeof MultiUserAvailabilitySchema>;
|
|
124
|
-
/**
|
|
125
|
-
* UserDateCheckOutput
|
|
126
|
-
* The output schema for a high level availability check for a user.
|
|
127
|
-
* This is used for quickly checking the availability of a user for a given date/date range.
|
|
128
|
-
*
|
|
129
|
-
* Example: We have a calendar picker UI where the user can select a date to check the availability for.
|
|
130
|
-
* We want to indicate whether a specific date has any availability or not.
|
|
131
|
-
* We don't need to know the exact availability times, just whether it's available or not.
|
|
132
|
-
*/
|
|
133
|
-
export declare const UserDateCheckOutputSchema: z.ZodObject<{
|
|
134
|
-
userId: z.ZodNumber;
|
|
135
|
-
timeZone: z.ZodString;
|
|
136
|
-
anyAvailability: z.ZodBoolean;
|
|
137
|
-
availability: z.ZodObject<{
|
|
138
|
-
date: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
139
|
-
isAvailable: z.ZodBoolean;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
bookingLocationId: z.ZodNumber;
|
|
142
|
-
}, z.core.$strip>;
|
|
143
124
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const ConnectionStatusSchema: z.ZodObject<{
|
|
3
|
+
connected: z.ZodBoolean;
|
|
4
|
+
provider: z.ZodNullable<z.ZodEnum<{
|
|
5
|
+
apple: "apple";
|
|
6
|
+
google: "google";
|
|
7
|
+
microsoft: "microsoft";
|
|
8
|
+
}>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type ConnectionStatus = z.infer<typeof ConnectionStatusSchema>;
|