@burdenoff/microfe-calendar 2026.1120.1 → 2026.1123.2
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/CalendarRoutes.d.ts +3 -0
- package/dist/CalendarRoutes.js +37 -32
- package/dist/CalendarRoutes.js.map +1 -1
- package/dist/generated/global-operations.d.ts +74 -0
- package/dist/generated/global-operations.js +20 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.d.ts +9902 -578
- package/dist/generated/wspace-operations.d.ts +298 -0
- package/dist/generated/wspace-operations.js +126 -1
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +204825 -48049
- package/dist/providers/CalendarProvider.d.ts +2 -0
- package/dist/providers/CalendarProvider.js +12 -10
- package/dist/providers/CalendarProvider.js.map +1 -1
- package/dist/translations/en.d.ts +5 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/v2/CalendarPageV2.d.ts +1 -0
- package/dist/v2/CalendarPageV2.js +19 -0
- package/dist/v2/CalendarPageV2.js.map +1 -0
- package/dist/v2/CalendarRoutesV2.d.ts +1 -0
- package/dist/v2/CalendarRoutesV2.js +117 -0
- package/dist/v2/CalendarRoutesV2.js.map +1 -0
- package/dist/v2/data/invalidation.d.ts +4 -0
- package/dist/v2/data/normalize.d.ts +26 -0
- package/dist/v2/data/normalize.js +87 -0
- package/dist/v2/data/normalize.js.map +1 -0
- package/dist/v2/data/useCalendarsV2.d.ts +16 -0
- package/dist/v2/data/useCalendarsV2.js +25 -0
- package/dist/v2/data/useCalendarsV2.js.map +1 -0
- package/dist/v2/data/useEventsInRangeV2.d.ts +18 -0
- package/dist/v2/data/useFreeBusy.d.ts +22 -0
- package/dist/v2/data/useKeyedLoad.d.ts +17 -0
- package/dist/v2/prefs/CalendarPrefsProvider.d.ts +25 -0
- package/dist/v2/prefs/CalendarPrefsProvider.js +52 -0
- package/dist/v2/prefs/CalendarPrefsProvider.js.map +1 -0
- package/dist/v2/prefs/calendarPrefs.d.ts +73 -0
- package/dist/v2/prefs/calendarPrefs.js +71 -0
- package/dist/v2/prefs/calendarPrefs.js.map +1 -0
- package/dist/v2/prefs/prefsApi.d.ts +16 -0
- package/dist/v2/prefs/prefsApi.js +46 -0
- package/dist/v2/prefs/prefsApi.js.map +1 -0
- package/dist/v2/prefs/prefsSession.d.ts +55 -0
- package/dist/v2/prefs/prefsSession.js +94 -0
- package/dist/v2/prefs/prefsSession.js.map +1 -0
- package/dist/v2/prefs/prefsStorage.d.ts +17 -0
- package/dist/v2/prefs/prefsStorage.js +56 -0
- package/dist/v2/prefs/prefsStorage.js.map +1 -0
- package/dist/v2/routes.d.ts +43 -0
- package/dist/v2/routes.js +60 -0
- package/dist/v2/routes.js.map +1 -0
- package/dist/v2/state/calendarV2Store.d.ts +54 -0
- package/dist/v2/state/calendarV2Store.js +78 -0
- package/dist/v2/state/calendarV2Store.js.map +1 -0
- package/dist/v2/state/useCalendarV2Navigation.d.ts +25 -0
- package/dist/v2/state/useCalendarV2Navigation.js +52 -0
- package/dist/v2/state/useCalendarV2Navigation.js.map +1 -0
- package/dist/v2/state/useCalendarV2PrefsBridge.d.ts +1 -0
- package/dist/v2/state/useCalendarV2PrefsBridge.js +28 -0
- package/dist/v2/state/useCalendarV2PrefsBridge.js.map +1 -0
- package/dist/v2/time/calendarTime.d.ts +115 -0
- package/dist/v2/time/calendarTime.js +59 -0
- package/dist/v2/time/calendarTime.js.map +1 -0
- package/dist/v2/types.d.ts +202 -0
- package/package.json +12 -5
|
@@ -30,6 +30,43 @@ export type CalendarPaginationInput = {
|
|
|
30
30
|
offset?: number | null | undefined;
|
|
31
31
|
};
|
|
32
32
|
export type CalendarResourceType = 'DESK' | 'EQUIPMENT' | 'OTHER' | 'PARKING_SPOT' | 'ROOM' | 'VEHICLE';
|
|
33
|
+
/** Where a calendar's events come from. */
|
|
34
|
+
export type CalendarSource = 'GOOGLE_CALENDAR' | 'ICS_URL' | 'LOCAL' | 'OUTLOOK_CALENDAR';
|
|
35
|
+
/** How often a calendar subscribed by link is re-read. */
|
|
36
|
+
export type CalendarSubscriptionRefresh = 'DAILY' | 'HOURLY';
|
|
37
|
+
/** Who a calendar subscribed by link is for. */
|
|
38
|
+
export type CalendarSubscriptionScope =
|
|
39
|
+
/** Only the person who subscribed sees it. */
|
|
40
|
+
'PERSONAL'
|
|
41
|
+
/** Everyone in the workspace sees it; workspace admins manage it. */
|
|
42
|
+
| 'WORKSPACE';
|
|
43
|
+
/** Why the last refresh of a subscribed calendar failed. */
|
|
44
|
+
export type CalendarSyncProblem =
|
|
45
|
+
/** The link, or a redirect, points to a private or internal address. */
|
|
46
|
+
'BLOCKED_ADDRESS'
|
|
47
|
+
/** The link answered 404 / 410: it no longer works. */
|
|
48
|
+
| 'LINK_GONE'
|
|
49
|
+
/** The stored link can no longer be decrypted; subscribe again. */
|
|
50
|
+
| 'LINK_UNREADABLE'
|
|
51
|
+
/** The link answered 401 / 403: it needs a sign-in. */
|
|
52
|
+
| 'NEEDS_SIGN_IN'
|
|
53
|
+
/** The link did not return an iCalendar file. */
|
|
54
|
+
| 'NOT_A_CALENDAR'
|
|
55
|
+
/** The link's server answered with an error (e.g. 5xx). */
|
|
56
|
+
| 'SERVER_ERROR'
|
|
57
|
+
/** The link took longer than 10 seconds to answer. */
|
|
58
|
+
| 'TIMED_OUT'
|
|
59
|
+
/**
|
|
60
|
+
* Reading the calendar takes too much work (its repeating events, or the
|
|
61
|
+
* parse time limit).
|
|
62
|
+
*/
|
|
63
|
+
| 'TOO_COMPLEX'
|
|
64
|
+
/** The calendar is too large: over 2 MB, 5,000 events or 100 time zones. */
|
|
65
|
+
| 'TOO_LARGE'
|
|
66
|
+
/** The link redirects more than 3 times. */
|
|
67
|
+
| 'TOO_MANY_REDIRECTS'
|
|
68
|
+
/** The link could not be reached (DNS, connection or TLS failure). */
|
|
69
|
+
| 'UNREACHABLE';
|
|
33
70
|
export type CalendarType = 'GROUP' | 'PERSONAL' | 'PROJECT' | 'WORKSPACE';
|
|
34
71
|
export type CreateCalendarResourceInput = {
|
|
35
72
|
approverUserId?: string | null | undefined;
|
|
@@ -77,13 +114,20 @@ export type CreateEventInput = {
|
|
|
77
114
|
title: string;
|
|
78
115
|
visibility?: string | null | undefined;
|
|
79
116
|
};
|
|
117
|
+
export type DayOfWeek = 'FRIDAY' | 'MONDAY' | 'SATURDAY' | 'SUNDAY' | 'THURSDAY' | 'TUESDAY' | 'WEDNESDAY';
|
|
80
118
|
export type EventType = 'MEETING' | 'MILESTONE' | 'PROMPT' | 'TASK';
|
|
81
119
|
export type EventVisibility = 'CONFIDENTIAL' | 'PRIVATE' | 'PUBLIC';
|
|
120
|
+
export type ExternalCalendarSyncStatus = 'ACTIVE' | 'DISCONNECTED' | 'ERROR' | 'PAUSED';
|
|
121
|
+
/** How a block of a person's time is taken (BOFF-15698). */
|
|
122
|
+
export type FreeBusyKind = 'BUSY' | 'OUT_OF_OFFICE' | 'TENTATIVE';
|
|
82
123
|
export type LocationType = 'HYBRID' | 'ONLINE' | 'PHYSICAL' | 'TBD';
|
|
83
124
|
export type MeetingProvider = 'CUSTOM' | 'GOOGLE_MEET' | 'MICROSOFT_TEAMS' | 'WEBEX' | 'ZOOM';
|
|
84
125
|
export type RsvpStatus = 'ACCEPTED' | 'DECLINED' | 'NO_RESPONSE' | 'TENTATIVE';
|
|
85
126
|
export type ReminderChannel = 'EMAIL' | 'IN_APP' | 'SMS';
|
|
86
127
|
export type ResourceBookingStatus = 'APPROVED' | 'CANCELLED' | 'COMPLETED' | 'PENDING' | 'REJECTED';
|
|
128
|
+
export type SyncProvider = 'APPLE_ICAL' | 'CALDAV' | 'GOOGLE_CALENDAR'
|
|
129
|
+
/** A calendar subscribed by its link (subscribeCalendarByUrl), read-only. */
|
|
130
|
+
| 'ICS_URL' | 'OUTLOOK_CALENDAR';
|
|
87
131
|
export type UpdateCalendarResourceInput = {
|
|
88
132
|
approverUserId?: string | null | undefined;
|
|
89
133
|
bufferAfter?: number | null | undefined;
|
|
@@ -541,6 +585,141 @@ export type GetCalendarResourceQuery = {
|
|
|
541
585
|
}>;
|
|
542
586
|
} | null;
|
|
543
587
|
};
|
|
588
|
+
export type CalendarV2CalendarsQueryVariables = Exact<{
|
|
589
|
+
pagination?: Types.CalendarPaginationInput | null | undefined;
|
|
590
|
+
}>;
|
|
591
|
+
export type CalendarV2CalendarsQuery = {
|
|
592
|
+
calendars: {
|
|
593
|
+
hasMore: boolean;
|
|
594
|
+
total: number;
|
|
595
|
+
calendars: Array<{
|
|
596
|
+
id: string;
|
|
597
|
+
name: string;
|
|
598
|
+
description: string | null;
|
|
599
|
+
color: string | null;
|
|
600
|
+
calendarType: Types.CalendarType;
|
|
601
|
+
source: Types.CalendarSource;
|
|
602
|
+
isDefault: boolean;
|
|
603
|
+
isPublic: boolean;
|
|
604
|
+
isReadOnly: boolean;
|
|
605
|
+
createdBy: string;
|
|
606
|
+
ownerUserId: string | null;
|
|
607
|
+
ownerWorkspaceId: string | null;
|
|
608
|
+
ownerGroupId: string | null;
|
|
609
|
+
ownerProjectId: string | null;
|
|
610
|
+
timezone: string | null;
|
|
611
|
+
externalSyncs: Array<{
|
|
612
|
+
id: string;
|
|
613
|
+
provider: Types.SyncProvider;
|
|
614
|
+
status: Types.ExternalCalendarSyncStatus;
|
|
615
|
+
syncEnabled: boolean;
|
|
616
|
+
lastSyncAt: string | null;
|
|
617
|
+
lastSuccessAt: string | null;
|
|
618
|
+
lastProblem: Types.CalendarSyncProblem | null;
|
|
619
|
+
consecutiveFailures: number;
|
|
620
|
+
slow: boolean;
|
|
621
|
+
refresh: Types.CalendarSubscriptionRefresh | null;
|
|
622
|
+
subscriptionScope: Types.CalendarSubscriptionScope | null;
|
|
623
|
+
}>;
|
|
624
|
+
}>;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
export type CalendarV2EventDayQueryVariables = Exact<{
|
|
628
|
+
id: string | number;
|
|
629
|
+
}>;
|
|
630
|
+
export type CalendarV2EventDayQuery = {
|
|
631
|
+
event: {
|
|
632
|
+
id: string;
|
|
633
|
+
startTime: string;
|
|
634
|
+
endTime: string;
|
|
635
|
+
allDay: boolean;
|
|
636
|
+
timezone: string | null;
|
|
637
|
+
} | null;
|
|
638
|
+
};
|
|
639
|
+
export type CalendarV2EventsInRangeQueryVariables = Exact<{
|
|
640
|
+
calendarId: string | number;
|
|
641
|
+
startDate: string;
|
|
642
|
+
endDate: string;
|
|
643
|
+
}>;
|
|
644
|
+
export type CalendarV2EventsInRangeQuery = {
|
|
645
|
+
eventsInRange: Array<{
|
|
646
|
+
id: string;
|
|
647
|
+
calendarId: string;
|
|
648
|
+
title: string;
|
|
649
|
+
description: string | null;
|
|
650
|
+
location: string | null;
|
|
651
|
+
locationAddress: string | null;
|
|
652
|
+
locationType: Types.LocationType | null;
|
|
653
|
+
locationUrl: string | null;
|
|
654
|
+
startTime: string;
|
|
655
|
+
endTime: string;
|
|
656
|
+
allDay: boolean;
|
|
657
|
+
timezone: string | null;
|
|
658
|
+
status: Types.CalendarEventStatus;
|
|
659
|
+
visibility: Types.EventVisibility;
|
|
660
|
+
eventType: Types.EventType;
|
|
661
|
+
isRecurring: boolean;
|
|
662
|
+
rrule: string | null;
|
|
663
|
+
tags: Array<string> | null;
|
|
664
|
+
onlineMeetingUrl: string | null;
|
|
665
|
+
onlineMeetingProvider: Types.MeetingProvider | null;
|
|
666
|
+
metadata: Record<string, unknown> | null;
|
|
667
|
+
createdBy: string;
|
|
668
|
+
createdAt: string;
|
|
669
|
+
updatedAt: string;
|
|
670
|
+
attendees: Array<{
|
|
671
|
+
id: string;
|
|
672
|
+
userId: string | null;
|
|
673
|
+
email: string | null;
|
|
674
|
+
name: string | null;
|
|
675
|
+
rsvpStatus: Types.RsvpStatus;
|
|
676
|
+
isOptional: boolean;
|
|
677
|
+
isOrganizer: boolean;
|
|
678
|
+
}>;
|
|
679
|
+
reminders: Array<{
|
|
680
|
+
id: string;
|
|
681
|
+
minutesBefore: number;
|
|
682
|
+
channel: Types.ReminderChannel;
|
|
683
|
+
}>;
|
|
684
|
+
resourceBookings: Array<{
|
|
685
|
+
id: string;
|
|
686
|
+
resourceId: string;
|
|
687
|
+
startTime: string;
|
|
688
|
+
endTime: string;
|
|
689
|
+
status: Types.ResourceBookingStatus;
|
|
690
|
+
resource: {
|
|
691
|
+
id: string;
|
|
692
|
+
name: string;
|
|
693
|
+
resourceType: Types.CalendarResourceType;
|
|
694
|
+
location: string | null;
|
|
695
|
+
capacity: number | null;
|
|
696
|
+
} | null;
|
|
697
|
+
}>;
|
|
698
|
+
}>;
|
|
699
|
+
};
|
|
700
|
+
export type CalendarV2FreeBusyQueryVariables = Exact<{
|
|
701
|
+
userIds: Array<string | number> | string | number;
|
|
702
|
+
from: string;
|
|
703
|
+
to: string;
|
|
704
|
+
}>;
|
|
705
|
+
export type CalendarV2FreeBusyQuery = {
|
|
706
|
+
freeBusy: Array<{
|
|
707
|
+
userId: string;
|
|
708
|
+
truncated: boolean;
|
|
709
|
+
busy: Array<{
|
|
710
|
+
start: string;
|
|
711
|
+
end: string;
|
|
712
|
+
kind: Types.FreeBusyKind;
|
|
713
|
+
allDay: boolean;
|
|
714
|
+
}>;
|
|
715
|
+
workingHours: Array<{
|
|
716
|
+
dayOfWeek: Types.DayOfWeek;
|
|
717
|
+
start: string;
|
|
718
|
+
end: string;
|
|
719
|
+
timezone: string;
|
|
720
|
+
}>;
|
|
721
|
+
}>;
|
|
722
|
+
};
|
|
544
723
|
export declare const BookCalendarResourceDocument: Apollo.DocumentNode;
|
|
545
724
|
export type BookCalendarResourceMutationFn = Apollo.MutationFunction<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>;
|
|
546
725
|
/**
|
|
@@ -977,4 +1156,123 @@ export type GetCalendarResourceQueryHookResult = ReturnType<typeof useGetCalenda
|
|
|
977
1156
|
export type GetCalendarResourceLazyQueryHookResult = ReturnType<typeof useGetCalendarResourceLazyQuery>;
|
|
978
1157
|
export type GetCalendarResourceSuspenseQueryHookResult = ReturnType<typeof useGetCalendarResourceSuspenseQuery>;
|
|
979
1158
|
export type GetCalendarResourceQueryResult = Apollo.QueryResult<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>;
|
|
1159
|
+
export declare const CalendarV2CalendarsDocument: Apollo.DocumentNode;
|
|
1160
|
+
/**
|
|
1161
|
+
* __useCalendarV2CalendarsQuery__
|
|
1162
|
+
*
|
|
1163
|
+
* To run a query within a React component, call `useCalendarV2CalendarsQuery` and pass it any options that fit your needs.
|
|
1164
|
+
* When your component renders, `useCalendarV2CalendarsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1165
|
+
* you can use to render your UI.
|
|
1166
|
+
*
|
|
1167
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1168
|
+
*
|
|
1169
|
+
* @example
|
|
1170
|
+
* const { data, loading, error } = useCalendarV2CalendarsQuery({
|
|
1171
|
+
* variables: {
|
|
1172
|
+
* pagination: // value for 'pagination'
|
|
1173
|
+
* },
|
|
1174
|
+
* });
|
|
1175
|
+
*/
|
|
1176
|
+
export declare function useCalendarV2CalendarsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.CalendarV2CalendarsQuery, Types.CalendarV2CalendarsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.CalendarV2CalendarsQuery, Types.CalendarV2CalendarsQueryVariables, "empty" | "complete" | "streaming", Types.CalendarV2CalendarsQueryVariables, undefined>;
|
|
1177
|
+
export declare function useCalendarV2CalendarsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CalendarV2CalendarsQuery, Types.CalendarV2CalendarsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.CalendarV2CalendarsQuery, Types.CalendarV2CalendarsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1178
|
+
export declare function useCalendarV2CalendarsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2CalendarsQuery, Types.CalendarV2CalendarsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2CalendarsQuery, Types.CalendarV2CalendarsQueryVariables>;
|
|
1179
|
+
export declare function useCalendarV2CalendarsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2CalendarsQuery, Types.CalendarV2CalendarsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2CalendarsQuery | undefined, Types.CalendarV2CalendarsQueryVariables>;
|
|
1180
|
+
export type CalendarV2CalendarsQueryHookResult = ReturnType<typeof useCalendarV2CalendarsQuery>;
|
|
1181
|
+
export type CalendarV2CalendarsLazyQueryHookResult = ReturnType<typeof useCalendarV2CalendarsLazyQuery>;
|
|
1182
|
+
export type CalendarV2CalendarsSuspenseQueryHookResult = ReturnType<typeof useCalendarV2CalendarsSuspenseQuery>;
|
|
1183
|
+
export type CalendarV2CalendarsQueryResult = Apollo.QueryResult<Types.CalendarV2CalendarsQuery, Types.CalendarV2CalendarsQueryVariables>;
|
|
1184
|
+
export declare const CalendarV2EventDayDocument: Apollo.DocumentNode;
|
|
1185
|
+
/**
|
|
1186
|
+
* __useCalendarV2EventDayQuery__
|
|
1187
|
+
*
|
|
1188
|
+
* To run a query within a React component, call `useCalendarV2EventDayQuery` and pass it any options that fit your needs.
|
|
1189
|
+
* When your component renders, `useCalendarV2EventDayQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1190
|
+
* you can use to render your UI.
|
|
1191
|
+
*
|
|
1192
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1193
|
+
*
|
|
1194
|
+
* @example
|
|
1195
|
+
* const { data, loading, error } = useCalendarV2EventDayQuery({
|
|
1196
|
+
* variables: {
|
|
1197
|
+
* id: // value for 'id'
|
|
1198
|
+
* },
|
|
1199
|
+
* });
|
|
1200
|
+
*/
|
|
1201
|
+
export declare function useCalendarV2EventDayQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.CalendarV2EventDayQuery, Types.CalendarV2EventDayQueryVariables> & ({
|
|
1202
|
+
variables: Types.CalendarV2EventDayQueryVariables;
|
|
1203
|
+
skip?: boolean;
|
|
1204
|
+
} | {
|
|
1205
|
+
skip: boolean;
|
|
1206
|
+
})): ApolloReactHooks.useQuery.Result<Types.CalendarV2EventDayQuery, Types.CalendarV2EventDayQueryVariables, "empty" | "complete" | "streaming", Types.CalendarV2EventDayQueryVariables, undefined>;
|
|
1207
|
+
export declare function useCalendarV2EventDayLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CalendarV2EventDayQuery, Types.CalendarV2EventDayQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.CalendarV2EventDayQuery, Types.CalendarV2EventDayQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1208
|
+
export declare function useCalendarV2EventDaySuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2EventDayQuery, Types.CalendarV2EventDayQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2EventDayQuery, Types.CalendarV2EventDayQueryVariables>;
|
|
1209
|
+
export declare function useCalendarV2EventDaySuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2EventDayQuery, Types.CalendarV2EventDayQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2EventDayQuery | undefined, Types.CalendarV2EventDayQueryVariables>;
|
|
1210
|
+
export type CalendarV2EventDayQueryHookResult = ReturnType<typeof useCalendarV2EventDayQuery>;
|
|
1211
|
+
export type CalendarV2EventDayLazyQueryHookResult = ReturnType<typeof useCalendarV2EventDayLazyQuery>;
|
|
1212
|
+
export type CalendarV2EventDaySuspenseQueryHookResult = ReturnType<typeof useCalendarV2EventDaySuspenseQuery>;
|
|
1213
|
+
export type CalendarV2EventDayQueryResult = Apollo.QueryResult<Types.CalendarV2EventDayQuery, Types.CalendarV2EventDayQueryVariables>;
|
|
1214
|
+
export declare const CalendarV2EventsInRangeDocument: Apollo.DocumentNode;
|
|
1215
|
+
/**
|
|
1216
|
+
* __useCalendarV2EventsInRangeQuery__
|
|
1217
|
+
*
|
|
1218
|
+
* To run a query within a React component, call `useCalendarV2EventsInRangeQuery` and pass it any options that fit your needs.
|
|
1219
|
+
* When your component renders, `useCalendarV2EventsInRangeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1220
|
+
* you can use to render your UI.
|
|
1221
|
+
*
|
|
1222
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1223
|
+
*
|
|
1224
|
+
* @example
|
|
1225
|
+
* const { data, loading, error } = useCalendarV2EventsInRangeQuery({
|
|
1226
|
+
* variables: {
|
|
1227
|
+
* calendarId: // value for 'calendarId'
|
|
1228
|
+
* startDate: // value for 'startDate'
|
|
1229
|
+
* endDate: // value for 'endDate'
|
|
1230
|
+
* },
|
|
1231
|
+
* });
|
|
1232
|
+
*/
|
|
1233
|
+
export declare function useCalendarV2EventsInRangeQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.CalendarV2EventsInRangeQuery, Types.CalendarV2EventsInRangeQueryVariables> & ({
|
|
1234
|
+
variables: Types.CalendarV2EventsInRangeQueryVariables;
|
|
1235
|
+
skip?: boolean;
|
|
1236
|
+
} | {
|
|
1237
|
+
skip: boolean;
|
|
1238
|
+
})): ApolloReactHooks.useQuery.Result<Types.CalendarV2EventsInRangeQuery, Types.CalendarV2EventsInRangeQueryVariables, "empty" | "complete" | "streaming", Types.CalendarV2EventsInRangeQueryVariables, undefined>;
|
|
1239
|
+
export declare function useCalendarV2EventsInRangeLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CalendarV2EventsInRangeQuery, Types.CalendarV2EventsInRangeQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.CalendarV2EventsInRangeQuery, Types.CalendarV2EventsInRangeQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1240
|
+
export declare function useCalendarV2EventsInRangeSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2EventsInRangeQuery, Types.CalendarV2EventsInRangeQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2EventsInRangeQuery, Types.CalendarV2EventsInRangeQueryVariables>;
|
|
1241
|
+
export declare function useCalendarV2EventsInRangeSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2EventsInRangeQuery, Types.CalendarV2EventsInRangeQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2EventsInRangeQuery | undefined, Types.CalendarV2EventsInRangeQueryVariables>;
|
|
1242
|
+
export type CalendarV2EventsInRangeQueryHookResult = ReturnType<typeof useCalendarV2EventsInRangeQuery>;
|
|
1243
|
+
export type CalendarV2EventsInRangeLazyQueryHookResult = ReturnType<typeof useCalendarV2EventsInRangeLazyQuery>;
|
|
1244
|
+
export type CalendarV2EventsInRangeSuspenseQueryHookResult = ReturnType<typeof useCalendarV2EventsInRangeSuspenseQuery>;
|
|
1245
|
+
export type CalendarV2EventsInRangeQueryResult = Apollo.QueryResult<Types.CalendarV2EventsInRangeQuery, Types.CalendarV2EventsInRangeQueryVariables>;
|
|
1246
|
+
export declare const CalendarV2FreeBusyDocument: Apollo.DocumentNode;
|
|
1247
|
+
/**
|
|
1248
|
+
* __useCalendarV2FreeBusyQuery__
|
|
1249
|
+
*
|
|
1250
|
+
* To run a query within a React component, call `useCalendarV2FreeBusyQuery` and pass it any options that fit your needs.
|
|
1251
|
+
* When your component renders, `useCalendarV2FreeBusyQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1252
|
+
* you can use to render your UI.
|
|
1253
|
+
*
|
|
1254
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1255
|
+
*
|
|
1256
|
+
* @example
|
|
1257
|
+
* const { data, loading, error } = useCalendarV2FreeBusyQuery({
|
|
1258
|
+
* variables: {
|
|
1259
|
+
* userIds: // value for 'userIds'
|
|
1260
|
+
* from: // value for 'from'
|
|
1261
|
+
* to: // value for 'to'
|
|
1262
|
+
* },
|
|
1263
|
+
* });
|
|
1264
|
+
*/
|
|
1265
|
+
export declare function useCalendarV2FreeBusyQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.CalendarV2FreeBusyQuery, Types.CalendarV2FreeBusyQueryVariables> & ({
|
|
1266
|
+
variables: Types.CalendarV2FreeBusyQueryVariables;
|
|
1267
|
+
skip?: boolean;
|
|
1268
|
+
} | {
|
|
1269
|
+
skip: boolean;
|
|
1270
|
+
})): ApolloReactHooks.useQuery.Result<Types.CalendarV2FreeBusyQuery, Types.CalendarV2FreeBusyQueryVariables, "empty" | "complete" | "streaming", Types.CalendarV2FreeBusyQueryVariables, undefined>;
|
|
1271
|
+
export declare function useCalendarV2FreeBusyLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CalendarV2FreeBusyQuery, Types.CalendarV2FreeBusyQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.CalendarV2FreeBusyQuery, Types.CalendarV2FreeBusyQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1272
|
+
export declare function useCalendarV2FreeBusySuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2FreeBusyQuery, Types.CalendarV2FreeBusyQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2FreeBusyQuery, Types.CalendarV2FreeBusyQueryVariables>;
|
|
1273
|
+
export declare function useCalendarV2FreeBusySuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CalendarV2FreeBusyQuery, Types.CalendarV2FreeBusyQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CalendarV2FreeBusyQuery | undefined, Types.CalendarV2FreeBusyQueryVariables>;
|
|
1274
|
+
export type CalendarV2FreeBusyQueryHookResult = ReturnType<typeof useCalendarV2FreeBusyQuery>;
|
|
1275
|
+
export type CalendarV2FreeBusyLazyQueryHookResult = ReturnType<typeof useCalendarV2FreeBusyLazyQuery>;
|
|
1276
|
+
export type CalendarV2FreeBusySuspenseQueryHookResult = ReturnType<typeof useCalendarV2FreeBusySuspenseQuery>;
|
|
1277
|
+
export type CalendarV2FreeBusyQueryResult = Apollo.QueryResult<Types.CalendarV2FreeBusyQuery, Types.CalendarV2FreeBusyQueryVariables>;
|
|
980
1278
|
export {};
|
|
@@ -450,6 +450,131 @@ e`
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
`;
|
|
453
|
-
|
|
453
|
+
var y = e`
|
|
454
|
+
query CalendarV2Calendars($pagination: CalendarPaginationInput) {
|
|
455
|
+
calendars(pagination: $pagination) {
|
|
456
|
+
calendars {
|
|
457
|
+
id
|
|
458
|
+
name
|
|
459
|
+
description
|
|
460
|
+
color
|
|
461
|
+
calendarType
|
|
462
|
+
source
|
|
463
|
+
isDefault
|
|
464
|
+
isPublic
|
|
465
|
+
isReadOnly
|
|
466
|
+
createdBy
|
|
467
|
+
ownerUserId
|
|
468
|
+
ownerWorkspaceId
|
|
469
|
+
ownerGroupId
|
|
470
|
+
ownerProjectId
|
|
471
|
+
timezone
|
|
472
|
+
externalSyncs {
|
|
473
|
+
id
|
|
474
|
+
provider
|
|
475
|
+
status
|
|
476
|
+
syncEnabled
|
|
477
|
+
lastSyncAt
|
|
478
|
+
lastSuccessAt
|
|
479
|
+
lastProblem
|
|
480
|
+
consecutiveFailures
|
|
481
|
+
slow
|
|
482
|
+
refresh
|
|
483
|
+
subscriptionScope
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
hasMore
|
|
487
|
+
total
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
`, b = e`
|
|
491
|
+
query CalendarV2EventDay($id: ID!) {
|
|
492
|
+
event(id: $id) {
|
|
493
|
+
id
|
|
494
|
+
startTime
|
|
495
|
+
endTime
|
|
496
|
+
allDay
|
|
497
|
+
timezone
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
`;
|
|
501
|
+
e`
|
|
502
|
+
query CalendarV2EventsInRange($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {
|
|
503
|
+
eventsInRange(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {
|
|
504
|
+
id
|
|
505
|
+
calendarId
|
|
506
|
+
title
|
|
507
|
+
description
|
|
508
|
+
location
|
|
509
|
+
locationAddress
|
|
510
|
+
locationType
|
|
511
|
+
locationUrl
|
|
512
|
+
startTime
|
|
513
|
+
endTime
|
|
514
|
+
allDay
|
|
515
|
+
timezone
|
|
516
|
+
status
|
|
517
|
+
visibility
|
|
518
|
+
eventType
|
|
519
|
+
isRecurring
|
|
520
|
+
rrule
|
|
521
|
+
tags
|
|
522
|
+
onlineMeetingUrl
|
|
523
|
+
onlineMeetingProvider
|
|
524
|
+
metadata
|
|
525
|
+
createdBy
|
|
526
|
+
createdAt
|
|
527
|
+
updatedAt
|
|
528
|
+
attendees {
|
|
529
|
+
id
|
|
530
|
+
userId
|
|
531
|
+
email
|
|
532
|
+
name
|
|
533
|
+
rsvpStatus
|
|
534
|
+
isOptional
|
|
535
|
+
isOrganizer
|
|
536
|
+
}
|
|
537
|
+
reminders {
|
|
538
|
+
id
|
|
539
|
+
minutesBefore
|
|
540
|
+
channel
|
|
541
|
+
}
|
|
542
|
+
resourceBookings {
|
|
543
|
+
id
|
|
544
|
+
resourceId
|
|
545
|
+
startTime
|
|
546
|
+
endTime
|
|
547
|
+
status
|
|
548
|
+
resource {
|
|
549
|
+
id
|
|
550
|
+
name
|
|
551
|
+
resourceType
|
|
552
|
+
location
|
|
553
|
+
capacity
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
`, e`
|
|
559
|
+
query CalendarV2FreeBusy($userIds: [ID!]!, $from: DateTime!, $to: DateTime!) {
|
|
560
|
+
freeBusy(userIds: $userIds, from: $from, to: $to) {
|
|
561
|
+
userId
|
|
562
|
+
truncated
|
|
563
|
+
busy {
|
|
564
|
+
start
|
|
565
|
+
end
|
|
566
|
+
kind
|
|
567
|
+
allDay
|
|
568
|
+
}
|
|
569
|
+
workingHours {
|
|
570
|
+
dayOfWeek
|
|
571
|
+
start
|
|
572
|
+
end
|
|
573
|
+
timezone
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
`;
|
|
578
|
+
export { y as CalendarV2CalendarsDocument, b as CalendarV2EventDayDocument, s as CreateCalendarResourceDocument, r as CreateEventDocument, l as DeleteCalendarResourceDocument, a as DeleteEventDocument, _ as GetCalendarResourcesDocument, p as GetCalendarsDocument, h as GetEventDocument, d as UpdateEventDocument, c as useCreateCalendarResourceMutation, i as useCreateEventMutation, u as useDeleteCalendarResourceMutation, o as useDeleteEventMutation, v as useGetCalendarResourcesQuery, m as useGetCalendarsQuery, g as useGetEventQuery, f as useUpdateEventMutation };
|
|
454
579
|
|
|
455
580
|
//# sourceMappingURL=wspace-operations.js.map
|