balendar 0.0.7 → 0.0.8
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/src/modules/availability-rules/availability-rules.domain.d.ts +574 -0
- package/dist/src/modules/events/events.domain.d.ts +165 -0
- package/dist/src/modules/external-calendars/external-calendars.domain.d.ts +367 -0
- package/dist/src/modules/external-events/external-events.domain.d.ts +137 -0
- package/dist/src/orchestrators/availability/availability.domain.d.ts +143 -0
- package/package.json +2 -2
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const Title: z.ZodString;
|
|
3
|
+
export declare const Description: z.ZodString;
|
|
4
|
+
export declare const Location: z.ZodString;
|
|
5
|
+
/**
|
|
6
|
+
* EventStatus
|
|
7
|
+
*/
|
|
8
|
+
export declare const EventStatuses: readonly ["confirmed", "cancelled", "tentative"];
|
|
9
|
+
export declare const EventStatusesSchema: z.ZodEnum<{
|
|
10
|
+
confirmed: "confirmed";
|
|
11
|
+
cancelled: "cancelled";
|
|
12
|
+
tentative: "tentative";
|
|
13
|
+
}>;
|
|
14
|
+
export type EventStatus = z.infer<typeof EventStatusesSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* EventBusyStatus
|
|
17
|
+
*/
|
|
18
|
+
export declare const EventBusyStatuses: readonly ["busy", "free"];
|
|
19
|
+
export declare const EventBusyStatusesSchema: z.ZodEnum<{
|
|
20
|
+
busy: "busy";
|
|
21
|
+
free: "free";
|
|
22
|
+
}>;
|
|
23
|
+
export type EventBusyStatus = z.infer<typeof EventBusyStatusesSchema>;
|
|
24
|
+
export declare const CreateEventInputSchema: z.ZodObject<{
|
|
25
|
+
userId: z.ZodNumber;
|
|
26
|
+
bookingId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
29
|
+
location: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
30
|
+
startTime: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
31
|
+
endTime: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
32
|
+
status: z.ZodEnum<{
|
|
33
|
+
confirmed: "confirmed";
|
|
34
|
+
cancelled: "cancelled";
|
|
35
|
+
tentative: "tentative";
|
|
36
|
+
}>;
|
|
37
|
+
busyStatus: z.ZodDefault<z.ZodEnum<{
|
|
38
|
+
busy: "busy";
|
|
39
|
+
free: "free";
|
|
40
|
+
}>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type CreateEventInput = z.infer<typeof CreateEventInputSchema>;
|
|
43
|
+
/**
|
|
44
|
+
* Event
|
|
45
|
+
*/
|
|
46
|
+
export declare const EventSchema: z.ZodObject<{
|
|
47
|
+
userId: z.ZodNumber;
|
|
48
|
+
title: z.ZodString;
|
|
49
|
+
startTime: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
50
|
+
endTime: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
51
|
+
status: z.ZodEnum<{
|
|
52
|
+
confirmed: "confirmed";
|
|
53
|
+
cancelled: "cancelled";
|
|
54
|
+
tentative: "tentative";
|
|
55
|
+
}>;
|
|
56
|
+
busyStatus: z.ZodDefault<z.ZodEnum<{
|
|
57
|
+
busy: "busy";
|
|
58
|
+
free: "free";
|
|
59
|
+
}>>;
|
|
60
|
+
createdAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
61
|
+
updatedAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
62
|
+
eventId: z.ZodNumber;
|
|
63
|
+
bookingId: z.ZodNullable<z.ZodNumber>;
|
|
64
|
+
description: z.ZodNullable<z.ZodString>;
|
|
65
|
+
location: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export declare const EventsSchema: z.ZodArray<z.ZodObject<{
|
|
68
|
+
userId: z.ZodNumber;
|
|
69
|
+
title: z.ZodString;
|
|
70
|
+
startTime: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
71
|
+
endTime: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
72
|
+
status: z.ZodEnum<{
|
|
73
|
+
confirmed: "confirmed";
|
|
74
|
+
cancelled: "cancelled";
|
|
75
|
+
tentative: "tentative";
|
|
76
|
+
}>;
|
|
77
|
+
busyStatus: z.ZodDefault<z.ZodEnum<{
|
|
78
|
+
busy: "busy";
|
|
79
|
+
free: "free";
|
|
80
|
+
}>>;
|
|
81
|
+
createdAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
82
|
+
updatedAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
83
|
+
eventId: z.ZodNumber;
|
|
84
|
+
bookingId: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
description: z.ZodNullable<z.ZodString>;
|
|
86
|
+
location: z.ZodNullable<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
export type Event = z.infer<typeof EventSchema>;
|
|
89
|
+
export type Events = z.infer<typeof EventsSchema>;
|
|
90
|
+
/**
|
|
91
|
+
* UpdateEventInput
|
|
92
|
+
*/
|
|
93
|
+
export declare const UpdateEventInputSchema: z.ZodObject<{
|
|
94
|
+
userId: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
confirmed: "confirmed";
|
|
97
|
+
cancelled: "cancelled";
|
|
98
|
+
tentative: "tentative";
|
|
99
|
+
}>>;
|
|
100
|
+
title: z.ZodOptional<z.ZodString>;
|
|
101
|
+
description: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
102
|
+
startTime: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
103
|
+
endTime: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
104
|
+
location: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
105
|
+
busyStatus: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
106
|
+
busy: "busy";
|
|
107
|
+
free: "free";
|
|
108
|
+
}>>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type UpdateEventInput = z.infer<typeof UpdateEventInputSchema>;
|
|
111
|
+
/**
|
|
112
|
+
* SearchEventsInput
|
|
113
|
+
*/
|
|
114
|
+
export declare const SearchEventsInputSchema: z.ZodObject<{
|
|
115
|
+
userId: z.ZodNumber;
|
|
116
|
+
startDate: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
117
|
+
endDate: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
118
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
119
|
+
confirmed: "confirmed";
|
|
120
|
+
cancelled: "cancelled";
|
|
121
|
+
tentative: "tentative";
|
|
122
|
+
}>>;
|
|
123
|
+
busyStatus: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
busy: "busy";
|
|
125
|
+
free: "free";
|
|
126
|
+
}>>;
|
|
127
|
+
pagination: z.ZodDefault<z.ZodObject<{
|
|
128
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
129
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
export type SearchEventsInput = z.infer<typeof SearchEventsInputSchema>;
|
|
133
|
+
/**
|
|
134
|
+
* SearchEventsOutput
|
|
135
|
+
*/
|
|
136
|
+
export declare const SearchEventsOutputSchema: z.ZodObject<{
|
|
137
|
+
items: z.ZodArray<z.ZodObject<{
|
|
138
|
+
userId: z.ZodNumber;
|
|
139
|
+
title: z.ZodString;
|
|
140
|
+
startTime: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
141
|
+
endTime: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
142
|
+
status: z.ZodEnum<{
|
|
143
|
+
confirmed: "confirmed";
|
|
144
|
+
cancelled: "cancelled";
|
|
145
|
+
tentative: "tentative";
|
|
146
|
+
}>;
|
|
147
|
+
busyStatus: z.ZodDefault<z.ZodEnum<{
|
|
148
|
+
busy: "busy";
|
|
149
|
+
free: "free";
|
|
150
|
+
}>>;
|
|
151
|
+
createdAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
152
|
+
updatedAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
153
|
+
eventId: z.ZodNumber;
|
|
154
|
+
bookingId: z.ZodNullable<z.ZodNumber>;
|
|
155
|
+
description: z.ZodNullable<z.ZodString>;
|
|
156
|
+
location: z.ZodNullable<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
pagination: z.ZodObject<{
|
|
159
|
+
total: z.ZodCoercedNumber<unknown>;
|
|
160
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
161
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
162
|
+
hasMore: z.ZodBoolean;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export type SearchEventsOutput = z.infer<typeof SearchEventsOutputSchema>;
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* External Calendar Status
|
|
4
|
+
*/
|
|
5
|
+
export declare const ExternalCalendarStatuses: readonly ["active", "expired", "revoked", "error"];
|
|
6
|
+
export declare const ExternalCalendarStatusSchema: z.ZodEnum<{
|
|
7
|
+
error: "error";
|
|
8
|
+
active: "active";
|
|
9
|
+
expired: "expired";
|
|
10
|
+
revoked: "revoked";
|
|
11
|
+
}>;
|
|
12
|
+
export type ExternalCalendarStatus = z.infer<typeof ExternalCalendarStatusSchema>;
|
|
13
|
+
/**
|
|
14
|
+
* Google Calendar Scopes (provider-specific)
|
|
15
|
+
*/
|
|
16
|
+
export declare const GoogleCalendarScopes: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/userinfo.email"];
|
|
17
|
+
export declare const GoogleCalendarScopesSchema: z.ZodArray<z.ZodEnum<{
|
|
18
|
+
"https://www.googleapis.com/auth/calendar": "https://www.googleapis.com/auth/calendar";
|
|
19
|
+
"https://www.googleapis.com/auth/userinfo.email": "https://www.googleapis.com/auth/userinfo.email";
|
|
20
|
+
}>>;
|
|
21
|
+
export type GoogleCalendarScopes = z.infer<typeof GoogleCalendarScopesSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* Create External Calendar Input
|
|
24
|
+
*/
|
|
25
|
+
export declare const CreateExternalCalendarInputSchema: z.ZodObject<{
|
|
26
|
+
lastSyncedAt: z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
27
|
+
syncStatus: z.ZodEnum<{
|
|
28
|
+
error: "error";
|
|
29
|
+
pending: "pending";
|
|
30
|
+
syncing: "syncing";
|
|
31
|
+
synced: "synced";
|
|
32
|
+
}>;
|
|
33
|
+
syncError: z.ZodNullable<z.ZodString>;
|
|
34
|
+
retryCount: z.ZodNumber;
|
|
35
|
+
externalProvider: z.ZodEnum<{
|
|
36
|
+
apple: "apple";
|
|
37
|
+
google: "google";
|
|
38
|
+
microsoft: "microsoft";
|
|
39
|
+
}>;
|
|
40
|
+
externalId: z.ZodString;
|
|
41
|
+
connectionId: z.ZodString;
|
|
42
|
+
accessToken: z.ZodString;
|
|
43
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
44
|
+
expiresAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type CreateExternalCalendarInput = z.infer<typeof CreateExternalCalendarInputSchema>;
|
|
47
|
+
/**
|
|
48
|
+
* External Calendar
|
|
49
|
+
*/
|
|
50
|
+
export declare const ExternalCalendarSchema: z.ZodObject<{
|
|
51
|
+
lastSyncedAt: z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
52
|
+
syncStatus: z.ZodEnum<{
|
|
53
|
+
error: "error";
|
|
54
|
+
pending: "pending";
|
|
55
|
+
syncing: "syncing";
|
|
56
|
+
synced: "synced";
|
|
57
|
+
}>;
|
|
58
|
+
syncError: z.ZodNullable<z.ZodString>;
|
|
59
|
+
retryCount: z.ZodNumber;
|
|
60
|
+
externalProvider: z.ZodEnum<{
|
|
61
|
+
apple: "apple";
|
|
62
|
+
google: "google";
|
|
63
|
+
microsoft: "microsoft";
|
|
64
|
+
}>;
|
|
65
|
+
externalId: z.ZodString;
|
|
66
|
+
connectionId: z.ZodString;
|
|
67
|
+
accessToken: z.ZodString;
|
|
68
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
69
|
+
expiresAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
70
|
+
createdAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
71
|
+
updatedAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
72
|
+
externalCalendarId: z.ZodNumber;
|
|
73
|
+
userId: z.ZodNumber;
|
|
74
|
+
status: z.ZodEnum<{
|
|
75
|
+
error: "error";
|
|
76
|
+
active: "active";
|
|
77
|
+
expired: "expired";
|
|
78
|
+
revoked: "revoked";
|
|
79
|
+
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type ExternalCalendar = z.infer<typeof ExternalCalendarSchema>;
|
|
82
|
+
/**
|
|
83
|
+
* Update External Calendar Input
|
|
84
|
+
*/
|
|
85
|
+
export declare const UpdateExternalCalendarInputSchema: z.ZodObject<{
|
|
86
|
+
lastSyncedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>>;
|
|
87
|
+
syncStatus: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
error: "error";
|
|
89
|
+
pending: "pending";
|
|
90
|
+
syncing: "syncing";
|
|
91
|
+
synced: "synced";
|
|
92
|
+
}>>;
|
|
93
|
+
syncError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
externalProvider: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
apple: "apple";
|
|
97
|
+
google: "google";
|
|
98
|
+
microsoft: "microsoft";
|
|
99
|
+
}>>;
|
|
100
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
101
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
102
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
103
|
+
refreshToken: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
104
|
+
expiresAt: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export type UpdateExternalCalendarInput = z.infer<typeof UpdateExternalCalendarInputSchema>;
|
|
107
|
+
/**
|
|
108
|
+
* External Calendar OAuth URL Input
|
|
109
|
+
*/
|
|
110
|
+
export declare const ExternalCalendarOAuthUrlInputSchema: z.ZodObject<{
|
|
111
|
+
externalProvider: z.ZodEnum<{
|
|
112
|
+
apple: "apple";
|
|
113
|
+
google: "google";
|
|
114
|
+
microsoft: "microsoft";
|
|
115
|
+
}>;
|
|
116
|
+
redirectUri: z.ZodURL;
|
|
117
|
+
scopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
118
|
+
state: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export type ExternalCalendarOAuthUrlInput = z.infer<typeof ExternalCalendarOAuthUrlInputSchema>;
|
|
121
|
+
/**
|
|
122
|
+
* External Calendar OAuth Callback Input
|
|
123
|
+
*/
|
|
124
|
+
export declare const ExternalCalendarOAuthCallbackInputSchema: z.ZodObject<{
|
|
125
|
+
externalProvider: z.ZodEnum<{
|
|
126
|
+
apple: "apple";
|
|
127
|
+
google: "google";
|
|
128
|
+
microsoft: "microsoft";
|
|
129
|
+
}>;
|
|
130
|
+
code: z.ZodString;
|
|
131
|
+
state: z.ZodString;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export type ExternalCalendarOAuthCallbackInput = z.infer<typeof ExternalCalendarOAuthCallbackInputSchema>;
|
|
134
|
+
/**
|
|
135
|
+
* External Calendar Sync Input
|
|
136
|
+
*/
|
|
137
|
+
export declare const ExternalCalendarSyncInputSchema: z.ZodObject<{
|
|
138
|
+
externalCalendarId: z.ZodNumber;
|
|
139
|
+
force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type ExternalCalendarSyncInput = z.infer<typeof ExternalCalendarSyncInputSchema>;
|
|
142
|
+
/**
|
|
143
|
+
* External Calendar Event (generic from external APIs)
|
|
144
|
+
*/
|
|
145
|
+
export declare const ExternalCalendarEventSchema: z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
148
|
+
description: z.ZodOptional<z.ZodString>;
|
|
149
|
+
location: z.ZodOptional<z.ZodString>;
|
|
150
|
+
start: z.ZodObject<{
|
|
151
|
+
dateTime: z.ZodOptional<z.ZodString>;
|
|
152
|
+
date: z.ZodOptional<z.ZodString>;
|
|
153
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
end: z.ZodObject<{
|
|
156
|
+
dateTime: z.ZodOptional<z.ZodString>;
|
|
157
|
+
date: z.ZodOptional<z.ZodString>;
|
|
158
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
161
|
+
confirmed: "confirmed";
|
|
162
|
+
cancelled: "cancelled";
|
|
163
|
+
tentative: "tentative";
|
|
164
|
+
}>>;
|
|
165
|
+
transparency: z.ZodOptional<z.ZodEnum<{
|
|
166
|
+
opaque: "opaque";
|
|
167
|
+
transparent: "transparent";
|
|
168
|
+
}>>;
|
|
169
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
default: "default";
|
|
171
|
+
public: "public";
|
|
172
|
+
private: "private";
|
|
173
|
+
confidential: "confidential";
|
|
174
|
+
}>>;
|
|
175
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
176
|
+
email: z.ZodString;
|
|
177
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
178
|
+
responseStatus: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
tentative: "tentative";
|
|
180
|
+
needsAction: "needsAction";
|
|
181
|
+
declined: "declined";
|
|
182
|
+
accepted: "accepted";
|
|
183
|
+
}>>;
|
|
184
|
+
}, z.core.$strip>>>;
|
|
185
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
email: z.ZodString;
|
|
187
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
organizer: z.ZodOptional<z.ZodObject<{
|
|
190
|
+
email: z.ZodString;
|
|
191
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
htmlLink: z.ZodOptional<z.ZodString>;
|
|
194
|
+
hangoutLink: z.ZodOptional<z.ZodString>;
|
|
195
|
+
conferenceData: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
createRequest: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
requestId: z.ZodString;
|
|
198
|
+
conferenceSolutionKey: z.ZodObject<{
|
|
199
|
+
type: z.ZodString;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
entryPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
203
|
+
entryPointType: z.ZodString;
|
|
204
|
+
uri: z.ZodString;
|
|
205
|
+
label: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>>>;
|
|
207
|
+
conferenceSolution: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
name: z.ZodString;
|
|
209
|
+
iconUri: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
conferenceId: z.ZodOptional<z.ZodString>;
|
|
212
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
213
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export type ExternalCalendarEvent = z.infer<typeof ExternalCalendarEventSchema>;
|
|
217
|
+
/**
|
|
218
|
+
* Google Calendar Item (from calendar list)
|
|
219
|
+
*/
|
|
220
|
+
export declare const GoogleCalendarItemSchema: z.ZodObject<{
|
|
221
|
+
id: z.ZodString;
|
|
222
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
223
|
+
description: z.ZodOptional<z.ZodString>;
|
|
224
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
accessRole: z.ZodOptional<z.ZodEnum<{
|
|
226
|
+
owner: "owner";
|
|
227
|
+
reader: "reader";
|
|
228
|
+
writer: "writer";
|
|
229
|
+
freeBusyReader: "freeBusyReader";
|
|
230
|
+
}>>;
|
|
231
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
232
|
+
foregroundColor: z.ZodOptional<z.ZodString>;
|
|
233
|
+
selected: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export type GoogleCalendarItem = z.infer<typeof GoogleCalendarItemSchema>;
|
|
237
|
+
/**
|
|
238
|
+
* Google Calendar List Response
|
|
239
|
+
*/
|
|
240
|
+
export declare const GoogleCalendarListResponseSchema: z.ZodObject<{
|
|
241
|
+
kind: z.ZodString;
|
|
242
|
+
etag: z.ZodString;
|
|
243
|
+
nextSyncToken: z.ZodOptional<z.ZodString>;
|
|
244
|
+
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
245
|
+
items: z.ZodArray<z.ZodObject<{
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
248
|
+
description: z.ZodOptional<z.ZodString>;
|
|
249
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
accessRole: z.ZodOptional<z.ZodEnum<{
|
|
251
|
+
owner: "owner";
|
|
252
|
+
reader: "reader";
|
|
253
|
+
writer: "writer";
|
|
254
|
+
freeBusyReader: "freeBusyReader";
|
|
255
|
+
}>>;
|
|
256
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
257
|
+
foregroundColor: z.ZodOptional<z.ZodString>;
|
|
258
|
+
selected: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
export type GoogleCalendarListResponse = z.infer<typeof GoogleCalendarListResponseSchema>;
|
|
263
|
+
/**
|
|
264
|
+
* External Calendar List Response
|
|
265
|
+
*/
|
|
266
|
+
export declare const ExternalCalendarListResponseSchema: z.ZodObject<{
|
|
267
|
+
kind: z.ZodString;
|
|
268
|
+
etag: z.ZodString;
|
|
269
|
+
nextSyncToken: z.ZodOptional<z.ZodString>;
|
|
270
|
+
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
271
|
+
items: z.ZodArray<z.ZodObject<{
|
|
272
|
+
id: z.ZodString;
|
|
273
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
274
|
+
description: z.ZodOptional<z.ZodString>;
|
|
275
|
+
location: z.ZodOptional<z.ZodString>;
|
|
276
|
+
start: z.ZodObject<{
|
|
277
|
+
dateTime: z.ZodOptional<z.ZodString>;
|
|
278
|
+
date: z.ZodOptional<z.ZodString>;
|
|
279
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
end: z.ZodObject<{
|
|
282
|
+
dateTime: z.ZodOptional<z.ZodString>;
|
|
283
|
+
date: z.ZodOptional<z.ZodString>;
|
|
284
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
confirmed: "confirmed";
|
|
288
|
+
cancelled: "cancelled";
|
|
289
|
+
tentative: "tentative";
|
|
290
|
+
}>>;
|
|
291
|
+
transparency: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
opaque: "opaque";
|
|
293
|
+
transparent: "transparent";
|
|
294
|
+
}>>;
|
|
295
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
default: "default";
|
|
297
|
+
public: "public";
|
|
298
|
+
private: "private";
|
|
299
|
+
confidential: "confidential";
|
|
300
|
+
}>>;
|
|
301
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
302
|
+
email: z.ZodString;
|
|
303
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
304
|
+
responseStatus: z.ZodOptional<z.ZodEnum<{
|
|
305
|
+
tentative: "tentative";
|
|
306
|
+
needsAction: "needsAction";
|
|
307
|
+
declined: "declined";
|
|
308
|
+
accepted: "accepted";
|
|
309
|
+
}>>;
|
|
310
|
+
}, z.core.$strip>>>;
|
|
311
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
312
|
+
email: z.ZodString;
|
|
313
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
organizer: z.ZodOptional<z.ZodObject<{
|
|
316
|
+
email: z.ZodString;
|
|
317
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strip>>;
|
|
319
|
+
htmlLink: z.ZodOptional<z.ZodString>;
|
|
320
|
+
hangoutLink: z.ZodOptional<z.ZodString>;
|
|
321
|
+
conferenceData: z.ZodOptional<z.ZodObject<{
|
|
322
|
+
createRequest: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
requestId: z.ZodString;
|
|
324
|
+
conferenceSolutionKey: z.ZodObject<{
|
|
325
|
+
type: z.ZodString;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
}, z.core.$strip>>;
|
|
328
|
+
entryPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
329
|
+
entryPointType: z.ZodString;
|
|
330
|
+
uri: z.ZodString;
|
|
331
|
+
label: z.ZodOptional<z.ZodString>;
|
|
332
|
+
}, z.core.$strip>>>;
|
|
333
|
+
conferenceSolution: z.ZodOptional<z.ZodObject<{
|
|
334
|
+
name: z.ZodString;
|
|
335
|
+
iconUri: z.ZodOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strip>>;
|
|
337
|
+
conferenceId: z.ZodOptional<z.ZodString>;
|
|
338
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
339
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
}, z.core.$strip>>;
|
|
342
|
+
}, z.core.$strip>;
|
|
343
|
+
export type ExternalCalendarListResponse = z.infer<typeof ExternalCalendarListResponseSchema>;
|
|
344
|
+
/**
|
|
345
|
+
* External Calendar Filters
|
|
346
|
+
*/
|
|
347
|
+
export declare const ExternalCalendarFiltersSchema: z.ZodObject<{
|
|
348
|
+
externalProvider: z.ZodOptional<z.ZodEnum<{
|
|
349
|
+
apple: "apple";
|
|
350
|
+
google: "google";
|
|
351
|
+
microsoft: "microsoft";
|
|
352
|
+
}>>;
|
|
353
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
error: "error";
|
|
355
|
+
active: "active";
|
|
356
|
+
expired: "expired";
|
|
357
|
+
revoked: "revoked";
|
|
358
|
+
}>>;
|
|
359
|
+
syncStatus: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
error: "error";
|
|
361
|
+
pending: "pending";
|
|
362
|
+
syncing: "syncing";
|
|
363
|
+
synced: "synced";
|
|
364
|
+
}>>;
|
|
365
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
export type ExternalCalendarFilters = z.infer<typeof ExternalCalendarFiltersSchema>;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* External providers
|
|
4
|
+
* Currently supported: Google
|
|
5
|
+
*/
|
|
6
|
+
export declare const APPLE = "apple";
|
|
7
|
+
export declare const GOOGLE = "google";
|
|
8
|
+
export declare const MICROSOFT = "microsoft";
|
|
9
|
+
export declare const ExternalProviders: readonly ["apple", "google", "microsoft"];
|
|
10
|
+
export declare const ExternalProvidersSchema: z.ZodEnum<{
|
|
11
|
+
apple: "apple";
|
|
12
|
+
google: "google";
|
|
13
|
+
microsoft: "microsoft";
|
|
14
|
+
}>;
|
|
15
|
+
export type ExternalProvider = z.infer<typeof ExternalProvidersSchema>;
|
|
16
|
+
/**
|
|
17
|
+
* Create external event input schema
|
|
18
|
+
*/
|
|
19
|
+
export declare const CreateExternalEventInputSchema: z.ZodObject<{
|
|
20
|
+
lastSyncedAt: z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
21
|
+
syncStatus: z.ZodEnum<{
|
|
22
|
+
error: "error";
|
|
23
|
+
pending: "pending";
|
|
24
|
+
syncing: "syncing";
|
|
25
|
+
synced: "synced";
|
|
26
|
+
}>;
|
|
27
|
+
syncError: z.ZodNullable<z.ZodString>;
|
|
28
|
+
retryCount: z.ZodNumber;
|
|
29
|
+
eventId: z.ZodNumber;
|
|
30
|
+
calendarConnectionId: z.ZodString;
|
|
31
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
32
|
+
externalProvider: z.ZodEnum<{
|
|
33
|
+
apple: "apple";
|
|
34
|
+
google: "google";
|
|
35
|
+
microsoft: "microsoft";
|
|
36
|
+
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type CreateExternalEventInput = z.infer<typeof CreateExternalEventInputSchema>;
|
|
39
|
+
/**
|
|
40
|
+
* External event schema
|
|
41
|
+
*/
|
|
42
|
+
export declare const ExternalEventSchema: z.ZodObject<{
|
|
43
|
+
lastSyncedAt: z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
44
|
+
syncStatus: z.ZodEnum<{
|
|
45
|
+
error: "error";
|
|
46
|
+
pending: "pending";
|
|
47
|
+
syncing: "syncing";
|
|
48
|
+
synced: "synced";
|
|
49
|
+
}>;
|
|
50
|
+
syncError: z.ZodNullable<z.ZodString>;
|
|
51
|
+
retryCount: z.ZodNumber;
|
|
52
|
+
eventId: z.ZodNumber;
|
|
53
|
+
calendarConnectionId: z.ZodString;
|
|
54
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
55
|
+
externalProvider: z.ZodEnum<{
|
|
56
|
+
apple: "apple";
|
|
57
|
+
google: "google";
|
|
58
|
+
microsoft: "microsoft";
|
|
59
|
+
}>;
|
|
60
|
+
createdAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
61
|
+
updatedAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
62
|
+
externalEventId: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export declare const ExternalEventsSchema: z.ZodArray<z.ZodObject<{
|
|
65
|
+
lastSyncedAt: z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
66
|
+
syncStatus: z.ZodEnum<{
|
|
67
|
+
error: "error";
|
|
68
|
+
pending: "pending";
|
|
69
|
+
syncing: "syncing";
|
|
70
|
+
synced: "synced";
|
|
71
|
+
}>;
|
|
72
|
+
syncError: z.ZodNullable<z.ZodString>;
|
|
73
|
+
retryCount: z.ZodNumber;
|
|
74
|
+
eventId: z.ZodNumber;
|
|
75
|
+
calendarConnectionId: z.ZodString;
|
|
76
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
77
|
+
externalProvider: z.ZodEnum<{
|
|
78
|
+
apple: "apple";
|
|
79
|
+
google: "google";
|
|
80
|
+
microsoft: "microsoft";
|
|
81
|
+
}>;
|
|
82
|
+
createdAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
83
|
+
updatedAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
84
|
+
externalEventId: z.ZodNumber;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
export type ExternalEvent = z.infer<typeof ExternalEventSchema>;
|
|
87
|
+
export type ExternalEvents = z.infer<typeof ExternalEventsSchema>;
|
|
88
|
+
/**
|
|
89
|
+
* Update external event input schema
|
|
90
|
+
*/
|
|
91
|
+
export declare const UpdateExternalEventInputSchema: z.ZodObject<{
|
|
92
|
+
syncStatus: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
error: "error";
|
|
94
|
+
pending: "pending";
|
|
95
|
+
syncing: "syncing";
|
|
96
|
+
synced: "synced";
|
|
97
|
+
}>>;
|
|
98
|
+
lastSyncedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>>;
|
|
99
|
+
syncError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type UpdateExternalEventInput = z.infer<typeof UpdateExternalEventInputSchema>;
|
|
104
|
+
/**
|
|
105
|
+
* Paginated external events schema
|
|
106
|
+
*/
|
|
107
|
+
export declare const PaginatedExternalEventsSchema: z.ZodObject<{
|
|
108
|
+
items: z.ZodArray<z.ZodObject<{
|
|
109
|
+
lastSyncedAt: z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
110
|
+
syncStatus: z.ZodEnum<{
|
|
111
|
+
error: "error";
|
|
112
|
+
pending: "pending";
|
|
113
|
+
syncing: "syncing";
|
|
114
|
+
synced: "synced";
|
|
115
|
+
}>;
|
|
116
|
+
syncError: z.ZodNullable<z.ZodString>;
|
|
117
|
+
retryCount: z.ZodNumber;
|
|
118
|
+
eventId: z.ZodNumber;
|
|
119
|
+
calendarConnectionId: z.ZodString;
|
|
120
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
121
|
+
externalProvider: z.ZodEnum<{
|
|
122
|
+
apple: "apple";
|
|
123
|
+
google: "google";
|
|
124
|
+
microsoft: "microsoft";
|
|
125
|
+
}>;
|
|
126
|
+
createdAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
127
|
+
updatedAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
128
|
+
externalEventId: z.ZodNumber;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
pagination: z.ZodObject<{
|
|
131
|
+
total: z.ZodCoercedNumber<unknown>;
|
|
132
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
133
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
134
|
+
hasMore: z.ZodBoolean;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export type PaginatedExternalEvents = z.infer<typeof PaginatedExternalEventsSchema>;
|