@rokoyfa/calendar 0.0.0-stage → 1.0.0
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/CHANGELOG.md +32 -0
- package/LICENSE +21 -0
- package/README.md +159 -3
- package/api/openapi.yaml +919 -0
- package/dist-lib/cdn/calendar-widget.js +14 -0
- package/dist-lib/cdn/calendar-widget.js.map +1 -0
- package/dist-lib/cdn/de-BPZBZXaZ.js +2 -0
- package/dist-lib/cdn/de-BPZBZXaZ.js.map +1 -0
- package/dist-lib/cdn/es-DsIckdik.js +2 -0
- package/dist-lib/cdn/es-DsIckdik.js.map +1 -0
- package/dist-lib/cdn/fr-DWAs3O6J.js +2 -0
- package/dist-lib/cdn/fr-DWAs3O6J.js.map +1 -0
- package/dist-lib/cdn/it-CbhjxqIb.js +2 -0
- package/dist-lib/cdn/it-CbhjxqIb.js.map +1 -0
- package/dist-lib/cdn/nl-mjTHznX5.js +2 -0
- package/dist-lib/cdn/nl-mjTHznX5.js.map +1 -0
- package/dist-lib/cdn/pl-CXT0jb2D.js +2 -0
- package/dist-lib/cdn/pl-CXT0jb2D.js.map +1 -0
- package/dist-lib/cdn/pt-D0oXlVdU.js +2 -0
- package/dist-lib/cdn/pt-D0oXlVdU.js.map +1 -0
- package/dist-lib/npm/de-CCzGjeTd.js +573 -0
- package/dist-lib/npm/de-CCzGjeTd.js.map +1 -0
- package/dist-lib/npm/es-Ciaf66rH.js +559 -0
- package/dist-lib/npm/es-Ciaf66rH.js.map +1 -0
- package/dist-lib/npm/fr-CAqNm10Z.js +559 -0
- package/dist-lib/npm/fr-CAqNm10Z.js.map +1 -0
- package/dist-lib/npm/index.d.ts +1 -0
- package/dist-lib/npm/index.js +13277 -0
- package/dist-lib/npm/index.js.map +1 -0
- package/dist-lib/npm/it-Cqqdu2ua.js +565 -0
- package/dist-lib/npm/it-Cqqdu2ua.js.map +1 -0
- package/dist-lib/npm/nl-CkchSA8q.js +559 -0
- package/dist-lib/npm/nl-CkchSA8q.js.map +1 -0
- package/dist-lib/npm/pl-CCBDUr8k.js +565 -0
- package/dist-lib/npm/pl-CCBDUr8k.js.map +1 -0
- package/dist-lib/npm/pt-DucaCaoY.js +566 -0
- package/dist-lib/npm/pt-DucaCaoY.js.map +1 -0
- package/dist-lib/npm/types/components/Button.d.ts +17 -0
- package/dist-lib/npm/types/components/ChoiceChip.d.ts +13 -0
- package/dist-lib/npm/types/components/ConfirmModal.d.ts +11 -0
- package/dist-lib/npm/types/components/DateTimeField.d.ts +15 -0
- package/dist-lib/npm/types/components/Form.d.ts +8 -0
- package/dist-lib/npm/types/components/FormField.d.ts +10 -0
- package/dist-lib/npm/types/components/IconButton.d.ts +11 -0
- package/dist-lib/npm/types/components/Icons.d.ts +10 -0
- package/dist-lib/npm/types/components/Modal.d.ts +10 -0
- package/dist-lib/npm/types/components/NumberField.d.ts +12 -0
- package/dist-lib/npm/types/components/PageLayout.d.ts +13 -0
- package/dist-lib/npm/types/components/PageSection.d.ts +10 -0
- package/dist-lib/npm/types/components/PasswordField.d.ts +4 -0
- package/dist-lib/npm/types/components/SegmentedControl.d.ts +11 -0
- package/dist-lib/npm/types/components/SegmentedField.d.ts +11 -0
- package/dist-lib/npm/types/components/SelectField.d.ts +13 -0
- package/dist-lib/npm/types/components/StatusMessage.d.ts +13 -0
- package/dist-lib/npm/types/components/Stepper.d.ts +9 -0
- package/dist-lib/npm/types/components/Switch.d.ts +8 -0
- package/dist-lib/npm/types/components/Tabs.d.ts +14 -0
- package/dist-lib/npm/types/components/TeamsGate.d.ts +4 -0
- package/dist-lib/npm/types/components/TextField.d.ts +9 -0
- package/dist-lib/npm/types/config/calendars.d.ts +1 -0
- package/dist-lib/npm/types/config/routes.d.ts +18 -0
- package/dist-lib/npm/types/context/HostContext.d.ts +11 -0
- package/dist-lib/npm/types/context/RootElementContext.d.ts +2 -0
- package/dist-lib/npm/types/data/index.d.ts +4 -0
- package/dist-lib/npm/types/data/localDataSource.d.ts +3 -0
- package/dist-lib/npm/types/data/restDataSource.d.ts +11 -0
- package/dist-lib/npm/types/data/tenantDataSource.d.ts +10 -0
- package/dist-lib/npm/types/data/types.d.ts +21 -0
- package/dist-lib/npm/types/features/authorization/components/AccountMenu.d.ts +6 -0
- package/dist-lib/npm/types/features/authorization/components/AuthFields.d.ts +26 -0
- package/dist-lib/npm/types/features/authorization/components/AuthGate.d.ts +7 -0
- package/dist-lib/npm/types/features/authorization/components/ContinueLink.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/EmailVerificationBanner.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/ForgotPasswordPage.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/LoginPage.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/RegisterPage.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/ResendVerificationButton.d.ts +4 -0
- package/dist-lib/npm/types/features/authorization/components/ResetPasswordPage.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/VerifyEmailPage.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/account/AccountSettings.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/account/DeleteAccountSection.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/account/EmailSection.d.ts +4 -0
- package/dist-lib/npm/types/features/authorization/components/account/PasswordSection.d.ts +1 -0
- package/dist-lib/npm/types/features/authorization/components/account/ProfileSection.d.ts +4 -0
- package/dist-lib/npm/types/features/authorization/context/AuthContext.d.ts +2 -0
- package/dist-lib/npm/types/features/authorization/context/AuthProvider.d.ts +8 -0
- package/dist-lib/npm/types/features/authorization/hooks/useAuth.d.ts +18 -0
- package/dist-lib/npm/types/features/authorization/index.d.ts +14 -0
- package/dist-lib/npm/types/features/authorization/repositories/HostTokenAuthRepository.d.ts +18 -0
- package/dist-lib/npm/types/features/authorization/repositories/RemoteAuthRepository.d.ts +18 -0
- package/dist-lib/npm/types/features/authorization/types/auth.d.ts +52 -0
- package/dist-lib/npm/types/features/authorization/utils/validation.d.ts +22 -0
- package/dist-lib/npm/types/features/calendar/components/Calendar.d.ts +14 -0
- package/dist-lib/npm/types/features/calendar/components/CalendarHeader.d.ts +16 -0
- package/dist-lib/npm/types/features/calendar/components/DayColumn.d.ts +21 -0
- package/dist-lib/npm/types/features/calendar/components/EventBlock.d.ts +10 -0
- package/dist-lib/npm/types/features/calendar/components/EventChip.d.ts +10 -0
- package/dist-lib/npm/types/features/calendar/components/EventTitle.d.ts +8 -0
- package/dist-lib/npm/types/features/calendar/components/MiniMonth.d.ts +9 -0
- package/dist-lib/npm/types/features/calendar/components/MonthGrid.d.ts +8 -0
- package/dist-lib/npm/types/features/calendar/components/MonthView.d.ts +2 -0
- package/dist-lib/npm/types/features/calendar/components/NowIndicator.d.ts +6 -0
- package/dist-lib/npm/types/features/calendar/components/TimeColumn.d.ts +1 -0
- package/dist-lib/npm/types/features/calendar/components/TimeGridView.d.ts +2 -0
- package/dist-lib/npm/types/features/calendar/components/YearView.d.ts +2 -0
- package/dist-lib/npm/types/features/calendar/constants/grid.d.ts +4 -0
- package/dist-lib/npm/types/features/calendar/constants/views.d.ts +7 -0
- package/dist-lib/npm/types/features/calendar/context/DragContext.d.ts +2 -0
- package/dist-lib/npm/types/features/calendar/context/EventSourcesContext.d.ts +3 -0
- package/dist-lib/npm/types/features/calendar/hooks/useCalendarView.d.ts +19 -0
- package/dist-lib/npm/types/features/calendar/hooks/useEventDrag.d.ts +15 -0
- package/dist-lib/npm/types/features/calendar/hooks/useEventSource.d.ts +2 -0
- package/dist-lib/npm/types/features/calendar/hooks/useNow.d.ts +1 -0
- package/dist-lib/npm/types/features/calendar/hooks/useSlotSelection.d.ts +6 -0
- package/dist-lib/npm/types/features/calendar/index.d.ts +4 -0
- package/dist-lib/npm/types/features/calendar/types/editor.d.ts +5 -0
- package/dist-lib/npm/types/features/calendar/types/eventLayout.d.ts +14 -0
- package/dist-lib/npm/types/features/calendar/types/eventSource.d.ts +6 -0
- package/dist-lib/npm/types/features/calendar/types/view.d.ts +27 -0
- package/dist-lib/npm/types/features/calendar/utils/allDay.d.ts +12 -0
- package/dist-lib/npm/types/features/calendar/utils/eventDrag.d.ts +12 -0
- package/dist-lib/npm/types/features/calendar/utils/eventGeometry.d.ts +3 -0
- package/dist-lib/npm/types/features/calendar/utils/eventLabels.d.ts +16 -0
- package/dist-lib/npm/types/features/calendar/utils/layoutEvents.d.ts +3 -0
- package/dist-lib/npm/types/features/calendar/utils/segmentEvents.d.ts +5 -0
- package/dist-lib/npm/types/features/calendar/utils/slotSelection.d.ts +17 -0
- package/dist-lib/npm/types/features/calendars/components/ActiveCalendarIndicator.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/components/CalendarPreview.d.ts +4 -0
- package/dist-lib/npm/types/features/calendars/components/CalendarSettings.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/components/CalendarSwitcher.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/components/InvitationList.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/components/create/ColorStep.d.ts +7 -0
- package/dist-lib/npm/types/features/calendars/components/create/CreateCalendarPage.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/components/create/DetailsStep.d.ts +12 -0
- package/dist-lib/npm/types/features/calendars/components/create/MembersStep.d.ts +8 -0
- package/dist-lib/npm/types/features/calendars/components/create/ReviewStep.d.ts +4 -0
- package/dist-lib/npm/types/features/calendars/components/settings/CalendarSettingsPage.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/components/settings/DangerSection.d.ts +9 -0
- package/dist-lib/npm/types/features/calendars/components/settings/GeneralSection.d.ts +4 -0
- package/dist-lib/npm/types/features/calendars/components/settings/MembersSection.d.ts +11 -0
- package/dist-lib/npm/types/features/calendars/components/settings/RoleOverview.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/components/settings/TeamInvitationsSection.d.ts +12 -0
- package/dist-lib/npm/types/features/calendars/components/settings/TransferOwnershipModal.d.ts +8 -0
- package/dist-lib/npm/types/features/calendars/constants/calendars.d.ts +9 -0
- package/dist-lib/npm/types/features/calendars/context/CalendarsContext.d.ts +2 -0
- package/dist-lib/npm/types/features/calendars/context/CalendarsProvider.d.ts +8 -0
- package/dist-lib/npm/types/features/calendars/hooks/useCalendars.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/hooks/useTeam.d.ts +12 -0
- package/dist-lib/npm/types/features/calendars/index.d.ts +12 -0
- package/dist-lib/npm/types/features/calendars/repositories/LocalCalendarRepository.d.ts +20 -0
- package/dist-lib/npm/types/features/calendars/repositories/RemoteCalendarRepository.d.ts +23 -0
- package/dist-lib/npm/types/features/calendars/types/calendar.d.ts +91 -0
- package/dist-lib/npm/types/features/calendars/utils/draft.d.ts +7 -0
- package/dist-lib/npm/types/features/calendars/utils/permissions.d.ts +13 -0
- package/dist-lib/npm/types/features/events/components/ColorPicker.d.ts +7 -0
- package/dist-lib/npm/types/features/events/components/CustomColorSettings.d.ts +1 -0
- package/dist-lib/npm/types/features/events/components/DeleteEventModal.d.ts +8 -0
- package/dist-lib/npm/types/features/events/components/EventModal.d.ts +11 -0
- package/dist-lib/npm/types/features/events/components/RecurrenceFields.d.ts +9 -0
- package/dist-lib/npm/types/features/events/components/RecurrenceScopeModal.d.ts +8 -0
- package/dist-lib/npm/types/features/events/components/ScopeButtons.d.ts +10 -0
- package/dist-lib/npm/types/features/events/components/TimeZoneField.d.ts +6 -0
- package/dist-lib/npm/types/features/events/constants/colors.d.ts +3 -0
- package/dist-lib/npm/types/features/events/hooks/useCustomColors.d.ts +8 -0
- package/dist-lib/npm/types/features/events/hooks/useEvents.d.ts +15 -0
- package/dist-lib/npm/types/features/events/index.d.ts +7 -0
- package/dist-lib/npm/types/features/events/types/eventModal.d.ts +1 -0
- package/dist-lib/npm/types/features/events/utils/scopeOptions.d.ts +3 -0
- package/dist-lib/npm/types/features/events/utils/seriesActions.d.ts +4 -0
- package/dist-lib/npm/types/features/preferences/components/PreferencesSettings.d.ts +1 -0
- package/dist-lib/npm/types/features/preferences/context/PreferencesContext.d.ts +6 -0
- package/dist-lib/npm/types/features/preferences/context/PreferencesProvider.d.ts +4 -0
- package/dist-lib/npm/types/features/preferences/hooks/usePreferences.d.ts +1 -0
- package/dist-lib/npm/types/features/preferences/index.d.ts +3 -0
- package/dist-lib/npm/types/features/storage/components/LocalImportPrompt.d.ts +5 -0
- package/dist-lib/npm/types/features/storage/context/StorageContext.d.ts +2 -0
- package/dist-lib/npm/types/features/storage/context/StorageProvider.d.ts +8 -0
- package/dist-lib/npm/types/features/storage/hooks/useStorage.d.ts +7 -0
- package/dist-lib/npm/types/features/storage/index.d.ts +10 -0
- package/dist-lib/npm/types/features/storage/repositories/LocalColorRepository.d.ts +9 -0
- package/dist-lib/npm/types/features/storage/repositories/LocalEventRepository.d.ts +13 -0
- package/dist-lib/npm/types/features/storage/repositories/LocalPreferencesRepository.d.ts +8 -0
- package/dist-lib/npm/types/features/storage/repositories/RemoteColorRepository.d.ts +10 -0
- package/dist-lib/npm/types/features/storage/repositories/RemoteEventRepository.d.ts +12 -0
- package/dist-lib/npm/types/features/storage/repositories/RemotePreferencesRepository.d.ts +9 -0
- package/dist-lib/npm/types/features/storage/types/storage.d.ts +35 -0
- package/dist-lib/npm/types/features/storage/utils/copyEvents.d.ts +3 -0
- package/dist-lib/npm/types/features/storage/utils/localStorageList.d.ts +5 -0
- package/dist-lib/npm/types/features/storage/utils/localStorageValue.d.ts +9 -0
- package/dist-lib/npm/types/hooks/useArrowKeyNavigation.d.ts +6 -0
- package/dist-lib/npm/types/hooks/useAsyncAction.d.ts +6 -0
- package/dist-lib/npm/types/hooks/useAsyncResource.d.ts +9 -0
- package/dist-lib/npm/types/hooks/useForm.d.ts +21 -0
- package/dist-lib/npm/types/hooks/useFormState.d.ts +8 -0
- package/dist-lib/npm/types/hooks/useRequiredContext.d.ts +2 -0
- package/dist-lib/npm/types/hooks/useTabParam.d.ts +3 -0
- package/dist-lib/npm/types/i18n/I18nContext.d.ts +16 -0
- package/dist-lib/npm/types/i18n/I18nProvider.d.ts +9 -0
- package/dist-lib/npm/types/i18n/errorMessage.d.ts +2 -0
- package/dist-lib/npm/types/i18n/format.d.ts +28 -0
- package/dist-lib/npm/types/i18n/index.d.ts +8 -0
- package/dist-lib/npm/types/i18n/locale.d.ts +21 -0
- package/dist-lib/npm/types/i18n/messages/de/auth.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/de/calendar.d.ts +3 -0
- package/dist-lib/npm/types/i18n/messages/de/calendars.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/de/core.d.ts +7 -0
- package/dist-lib/npm/types/i18n/messages/de/events.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/de/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/de/settings.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/de/storage.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/en/auth.d.ts +97 -0
- package/dist-lib/npm/types/i18n/messages/en/calendar.d.ts +34 -0
- package/dist-lib/npm/types/i18n/messages/en/calendars.d.ts +179 -0
- package/dist-lib/npm/types/i18n/messages/en/core.d.ts +86 -0
- package/dist-lib/npm/types/i18n/messages/en/events.d.ts +46 -0
- package/dist-lib/npm/types/i18n/messages/en/index.d.ts +468 -0
- package/dist-lib/npm/types/i18n/messages/en/settings.d.ts +19 -0
- package/dist-lib/npm/types/i18n/messages/en/storage.d.ts +7 -0
- package/dist-lib/npm/types/i18n/messages/es/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/fr/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/index.d.ts +473 -0
- package/dist-lib/npm/types/i18n/messages/it/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/nl/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/pl/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/pt/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/types.d.ts +7 -0
- package/dist-lib/npm/types/i18n/useI18n.d.ts +3 -0
- package/dist-lib/npm/types/i18n/useLocaleGetter.d.ts +1 -0
- package/dist-lib/npm/types/i18n/weekInfo.d.ts +5 -0
- package/dist-lib/npm/types/lib/CalendarApp.d.ts +14 -0
- package/dist-lib/npm/types/lib/CalendarWidget.d.ts +2 -0
- package/dist-lib/npm/types/lib/IsolatedRoot.d.ts +9 -0
- package/dist-lib/npm/types/lib/config.d.ts +31 -0
- package/dist-lib/npm/types/lib/defaults.d.ts +13 -0
- package/dist-lib/npm/types/lib/element.d.ts +19 -0
- package/dist-lib/npm/types/lib/eventCallbacks.d.ts +11 -0
- package/dist-lib/npm/types/lib/index.d.ts +17 -0
- package/dist-lib/npm/types/lib/linkParam.d.ts +2 -0
- package/dist-lib/npm/types/lib/version.d.ts +1 -0
- package/dist-lib/npm/types/pages/CalendarPage.d.ts +1 -0
- package/dist-lib/npm/types/pages/SettingsPage.d.ts +1 -0
- package/dist-lib/npm/types/router.d.ts +7 -0
- package/dist-lib/npm/types/utils/api.d.ts +32 -0
- package/dist-lib/npm/types/utils/apiError.d.ts +26 -0
- package/dist-lib/npm/types/utils/appError.d.ts +10 -0
- package/dist-lib/npm/types/utils/calendarView.d.ts +3 -0
- package/dist-lib/npm/types/utils/classNames.d.ts +2 -0
- package/dist-lib/npm/types/utils/color.d.ts +5 -0
- package/dist-lib/npm/types/utils/date.d.ts +44 -0
- package/dist-lib/npm/types/utils/dom.d.ts +3 -0
- package/dist-lib/npm/types/utils/event.d.ts +86 -0
- package/dist-lib/npm/types/utils/number.d.ts +1 -0
- package/dist-lib/npm/types/utils/object.d.ts +3 -0
- package/dist-lib/npm/types/utils/preferences.d.ts +14 -0
- package/dist-lib/npm/types/utils/recurrence.d.ts +33 -0
- package/dist-lib/npm/types/utils/series.d.ts +9 -0
- package/dist-lib/npm/types/utils/timeZone.d.ts +11 -0
- package/dist-lib/npm/types/utils/validation.d.ts +6 -0
- package/package.json +88 -6
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { CalendarView } from '../types/view.js';
|
|
3
|
+
type CalendarHeaderProps = {
|
|
4
|
+
view: CalendarView;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
onViewChange: (view: CalendarView) => void;
|
|
8
|
+
onPrevious: () => void;
|
|
9
|
+
onNext: () => void;
|
|
10
|
+
onToday: () => void;
|
|
11
|
+
onCreateEvent?: () => void;
|
|
12
|
+
context?: ReactNode;
|
|
13
|
+
accessory?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare function CalendarHeader({ view, title, subtitle, onViewChange, onPrevious, onNext, onToday, onCreateEvent, context, accessory, }: CalendarHeaderProps): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { EventOccurrence } from '../../../utils/event.js';
|
|
2
|
+
import type { EventSegment } from '../types/eventLayout.js';
|
|
3
|
+
import type { AllDaySegment } from '../utils/allDay.js';
|
|
4
|
+
type DayColumnProps = {
|
|
5
|
+
date: string;
|
|
6
|
+
isToday: boolean;
|
|
7
|
+
nowMinutes: number | null;
|
|
8
|
+
segments: readonly EventSegment[];
|
|
9
|
+
allDaySegments: readonly AllDaySegment[];
|
|
10
|
+
selection?: {
|
|
11
|
+
fromHour: number;
|
|
12
|
+
toHour: number;
|
|
13
|
+
label: string | null;
|
|
14
|
+
} | null;
|
|
15
|
+
onSlotSelect: (date: string, hour: number) => void;
|
|
16
|
+
onAllDaySelect: (date: string) => void;
|
|
17
|
+
onEventSelect: (event: EventOccurrence) => void;
|
|
18
|
+
onHeaderSelect?: (date: string) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare function DayColumn({ date, isToday, nowMinutes, segments, allDaySegments, selection, onSlotSelect, onAllDaySelect, onEventSelect, onHeaderSelect, }: DayColumnProps): import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type EventOccurrence } from '../../../utils/event.js';
|
|
2
|
+
import type { EventSegment } from '../types/eventLayout.js';
|
|
3
|
+
type EventBlockProps = {
|
|
4
|
+
segment: EventSegment;
|
|
5
|
+
column: number;
|
|
6
|
+
columns: number;
|
|
7
|
+
onSelect: (event: EventOccurrence) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function EventBlock({ segment, column, columns, onSelect }: EventBlockProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EventOccurrence } from '../../../utils/event.js';
|
|
2
|
+
import type { EventSegment } from '../types/eventLayout.js';
|
|
3
|
+
type EventChipProps = {
|
|
4
|
+
segment: EventSegment;
|
|
5
|
+
row?: number;
|
|
6
|
+
isContinuation?: boolean;
|
|
7
|
+
onSelect: (event: EventOccurrence) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function EventChip({ segment, row, isContinuation, onSelect }: EventChipProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EventOccurrence } from '../../../utils/event.js';
|
|
2
|
+
import type { EventSource } from '../types/eventSource.js';
|
|
3
|
+
type EventTitleProps = {
|
|
4
|
+
event: EventOccurrence;
|
|
5
|
+
source?: EventSource;
|
|
6
|
+
};
|
|
7
|
+
export declare function EventTitle({ event, source }: EventTitleProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type MiniMonthProps = {
|
|
2
|
+
month: string;
|
|
3
|
+
today: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
hasEvents?: (date: string) => boolean;
|
|
6
|
+
onSelectDay?: (date: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function MiniMonth({ month, today, className, hasEvents, onSelectDay }: MiniMonthProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type MonthGridProps = {
|
|
3
|
+
month: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
renderDay: (date: string, isInMonth: boolean) => ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function MonthGrid({ month, className, renderDay }: MonthGridProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TimeColumn(): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Messages } from '../../../i18n/index.js';
|
|
2
|
+
import { type CalendarView, type ViewDefinition } from '../types/view.js';
|
|
3
|
+
export declare const VIEW_DEFINITIONS: Record<CalendarView, ViewDefinition>;
|
|
4
|
+
export declare const getViewOptions: (m: Messages) => {
|
|
5
|
+
value: "day" | "week" | "month" | "year";
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CalendarView } from '../types/view.js';
|
|
2
|
+
export declare function useCalendarView(initialView?: CalendarView, initialDate?: string): {
|
|
3
|
+
view: "day" | "week" | "month" | "year";
|
|
4
|
+
setView: import("react").Dispatch<import("react").SetStateAction<"day" | "week" | "month" | "year">>;
|
|
5
|
+
anchor: string;
|
|
6
|
+
range: {
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
};
|
|
10
|
+
dates: string[];
|
|
11
|
+
definition: import("../types/view.ts").ViewDefinition;
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle: string | undefined;
|
|
14
|
+
previous: () => void;
|
|
15
|
+
next: () => void;
|
|
16
|
+
goToToday: () => void;
|
|
17
|
+
goToDate: (date: string) => void;
|
|
18
|
+
show: (nextView: CalendarView, date: string) => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import type { EventOccurrence, EventPeriod } from '../../../utils/event.js';
|
|
3
|
+
export type DragPreview = {
|
|
4
|
+
occurrenceKey: string;
|
|
5
|
+
period: EventPeriod;
|
|
6
|
+
};
|
|
7
|
+
type UseEventDragOptions = {
|
|
8
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
occurrences: ReadonlyMap<string, EventOccurrence>;
|
|
11
|
+
onPreview: (preview: DragPreview | null) => void;
|
|
12
|
+
onDrop: (occurrence: EventOccurrence, period: EventPeriod) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare function useEventDrag({ containerRef, enabled, occurrences, onPreview, onDrop }: UseEventDragOptions): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useNow(): Date;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type SlotRange, type SlotSelection } from '../utils/slotSelection.js';
|
|
3
|
+
export declare function useSlotSelection(containerRef: RefObject<HTMLElement | null>, enabled: boolean, onSelect: (range: SlotRange) => void): {
|
|
4
|
+
selection: SlotSelection | null;
|
|
5
|
+
isClickSuppressed: () => boolean;
|
|
6
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { EventOccurrence } from '../../../utils/event.js';
|
|
2
|
+
export type EventSegment = {
|
|
3
|
+
event: EventOccurrence;
|
|
4
|
+
date: string;
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
continuesBefore: boolean;
|
|
8
|
+
continuesAfter: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type PositionedSegment = {
|
|
11
|
+
segment: EventSegment;
|
|
12
|
+
column: number;
|
|
13
|
+
columns: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { I18n } from '../../../i18n/index.js';
|
|
2
|
+
import type { DateRange } from '../../../utils/date.js';
|
|
3
|
+
import type { EventOccurrence } from '../../../utils/event.js';
|
|
4
|
+
import type { SlotRange } from '../utils/slotSelection.js';
|
|
5
|
+
import type { EventSegment } from './eventLayout.js';
|
|
6
|
+
export { CALENDAR_VIEWS, type CalendarView } from '../../../utils/calendarView.js';
|
|
7
|
+
export type ViewI18n = Pick<I18n, 'm' | 'format' | 'weekInfo'>;
|
|
8
|
+
export type ViewDefinition = {
|
|
9
|
+
getRange: (anchor: string, firstDay: number) => DateRange;
|
|
10
|
+
step: (anchor: string, direction: 1 | -1) => string;
|
|
11
|
+
getTitle: (anchor: string, i18n: ViewI18n) => string;
|
|
12
|
+
getSubtitle?: (anchor: string, i18n: ViewI18n) => string;
|
|
13
|
+
};
|
|
14
|
+
export type CalendarViewProps = {
|
|
15
|
+
anchor: string;
|
|
16
|
+
dates: readonly string[];
|
|
17
|
+
today: string;
|
|
18
|
+
currentMinutes: number;
|
|
19
|
+
segmentsByDate: ReadonlyMap<string, readonly EventSegment[]>;
|
|
20
|
+
onCreate: (date: string, hour: number) => void;
|
|
21
|
+
onCreateRange: (range: SlotRange) => void;
|
|
22
|
+
onCreateAllDay: (date: string) => void;
|
|
23
|
+
canCreate: boolean;
|
|
24
|
+
onEventSelect: (event: EventOccurrence) => void;
|
|
25
|
+
onShowDay: (date: string) => void;
|
|
26
|
+
onShowMonth: (date: string) => void;
|
|
27
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EventSegment } from '../types/eventLayout.js';
|
|
2
|
+
export type AllDaySegment = {
|
|
3
|
+
segment: EventSegment;
|
|
4
|
+
row: number;
|
|
5
|
+
isFirst: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type AllDayLanes = {
|
|
8
|
+
allDay: ReadonlyMap<string, readonly AllDaySegment[]>;
|
|
9
|
+
timed: ReadonlyMap<string, readonly EventSegment[]>;
|
|
10
|
+
rows: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function splitAllDay(dates: readonly string[], segmentsByDate: ReadonlyMap<string, readonly EventSegment[]>): AllDayLanes;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type EditScope, type EventInput, type EventOccurrence, type EventPeriod } from '../../../utils/event.js';
|
|
2
|
+
export type DragMode = 'move' | 'resize';
|
|
3
|
+
export type DragUnit = 'minutes' | 'days';
|
|
4
|
+
export type DragPoint = {
|
|
5
|
+
date: string;
|
|
6
|
+
minutes: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const DRAG_STEP_MINUTES = 15;
|
|
9
|
+
export declare const getDragDelta: (unit: DragUnit, from: DragPoint, to: DragPoint) => number;
|
|
10
|
+
export declare const applyDragDelta: (period: EventPeriod, mode: DragMode, delta: number) => EventPeriod;
|
|
11
|
+
export declare const isSamePeriod: (a: EventPeriod, b: EventPeriod) => boolean;
|
|
12
|
+
export declare const toDropInput: (occurrence: EventOccurrence, viewerPeriod: EventPeriod, viewerTimeZone: string, scope: EditScope) => EventInput;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { I18n } from '../../../i18n/index.js';
|
|
2
|
+
import { type EventOccurrence } from '../../../utils/event.js';
|
|
3
|
+
import type { ClassNameValue } from '../../../utils/classNames.js';
|
|
4
|
+
import type { EventSegment } from '../types/eventLayout.js';
|
|
5
|
+
import type { EventSource } from '../types/eventSource.js';
|
|
6
|
+
type LabelI18n = Pick<I18n, 'm' | 'format'>;
|
|
7
|
+
export declare const getRecurrenceText: (event: EventOccurrence, i18n: LabelI18n) => string | null;
|
|
8
|
+
export declare const getSourceText: (source: EventSource, { m }: LabelI18n) => string;
|
|
9
|
+
export declare const getEventTooltip: (event: EventOccurrence, source: EventSource | undefined, i18n: LabelI18n) => string;
|
|
10
|
+
export declare const getSegmentAttributes: ({ event, continuesBefore, continuesAfter }: EventSegment, source: EventSource | undefined, i18n: LabelI18n, ...classNamesToMerge: ClassNameValue[]) => {
|
|
11
|
+
title: string;
|
|
12
|
+
'data-occurrence-key': string;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: import("react").CSSProperties;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type DateRange } from '../../../utils/date.js';
|
|
2
|
+
import { type EventOccurrence } from '../../../utils/event.js';
|
|
3
|
+
import type { EventSegment } from '../types/eventLayout.js';
|
|
4
|
+
export declare function splitEventIntoSegments(event: EventOccurrence, { from, to }: DateRange): EventSegment[];
|
|
5
|
+
export declare function groupSegmentsByDate(events: readonly EventOccurrence[], range: DateRange): Map<string, EventSegment[]>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HourSlot } from '../../../utils/event.js';
|
|
2
|
+
export type SlotSelection = {
|
|
3
|
+
anchor: HourSlot;
|
|
4
|
+
current: HourSlot;
|
|
5
|
+
};
|
|
6
|
+
export type SlotRange = {
|
|
7
|
+
first: HourSlot;
|
|
8
|
+
last: HourSlot;
|
|
9
|
+
};
|
|
10
|
+
export declare const isSameSlot: (a: HourSlot | null, b: HourSlot | null) => boolean;
|
|
11
|
+
export declare const toSlotRange: ({ anchor, current }: SlotSelection) => SlotRange;
|
|
12
|
+
export declare const getHoursOnDate: ({ first, last }: SlotRange, date: string) => {
|
|
13
|
+
fromHour: number;
|
|
14
|
+
toHour: number;
|
|
15
|
+
} | null;
|
|
16
|
+
export declare const findSlotAt: (scope: Document | ShadowRoot, x: number, y: number) => HourSlot | null;
|
|
17
|
+
export declare const getSlotFromTarget: (target: EventTarget | null) => HourSlot | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ActiveCalendarIndicator(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CalendarSettings(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CalendarSwitcher(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function InvitationList(): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EventColor } from '../../../../utils/event.js';
|
|
2
|
+
type ColorStepProps = {
|
|
3
|
+
color: EventColor;
|
|
4
|
+
onChange: (color: EventColor) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function ColorStep({ color, onChange }: ColorStepProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CreateCalendarPage(): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FieldErrors } from '../../../../utils/validation.js';
|
|
2
|
+
import type { DetailsValues } from '../../utils/draft.js';
|
|
3
|
+
type DetailsStepProps = {
|
|
4
|
+
values: DetailsValues;
|
|
5
|
+
errors: FieldErrors<DetailsValues>;
|
|
6
|
+
disabled?: Partial<Record<keyof DetailsValues, boolean>>;
|
|
7
|
+
hideDescription?: boolean;
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
onChange: (changes: Partial<DetailsValues>) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function DetailsStep({ values, errors, disabled, hideDescription, autoFocus, onChange, }: DetailsStepProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Invitation } from '../../types/calendar.js';
|
|
2
|
+
type MembersStepProps = {
|
|
3
|
+
invitations: readonly Invitation[];
|
|
4
|
+
ownEmail: string | null;
|
|
5
|
+
onChange: (invitations: Invitation[]) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function MembersStep({ invitations, ownEmail, onChange }: MembersStepProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CalendarSettingsPage(): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CalendarSummary, TeamMember } from '../../types/calendar.js';
|
|
2
|
+
type DangerSectionProps = {
|
|
3
|
+
calendar: CalendarSummary;
|
|
4
|
+
members: readonly TeamMember[];
|
|
5
|
+
currentUserId: string | null;
|
|
6
|
+
onOwnershipTransferred: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function DangerSection({ calendar, members, currentUserId, onOwnershipTransferred }: DangerSectionProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CalendarSummary, TeamMember, TeamRole } from '../../types/calendar.js';
|
|
2
|
+
type MembersSectionProps = {
|
|
3
|
+
calendar: CalendarSummary;
|
|
4
|
+
members: readonly TeamMember[];
|
|
5
|
+
error: string | null;
|
|
6
|
+
currentUserId: string | null;
|
|
7
|
+
onChangeRole: (userId: string, role: TeamRole) => Promise<void>;
|
|
8
|
+
onRemove: (userId: string) => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
export declare function MembersSection({ calendar, members, error, currentUserId, onChangeRole, onRemove, }: MembersSectionProps): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RoleOverview(): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CalendarSummary, Invitation, TeamInvitation, TeamMember } from '../../types/calendar.js';
|
|
2
|
+
type TeamInvitationsSectionProps = {
|
|
3
|
+
calendar: CalendarSummary;
|
|
4
|
+
invitations: readonly TeamInvitation[];
|
|
5
|
+
members: readonly TeamMember[];
|
|
6
|
+
error: string | null;
|
|
7
|
+
ownEmail: string | null;
|
|
8
|
+
onInvite: (invitation: Invitation) => Promise<void>;
|
|
9
|
+
onRevoke: (invitationId: string) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export declare function TeamInvitationsSection({ calendar, invitations, members, error, ownEmail, onInvite, onRevoke, }: TeamInvitationsSectionProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TeamMember } from '../../types/calendar.js';
|
|
2
|
+
type TransferOwnershipModalProps = {
|
|
3
|
+
candidates: readonly TeamMember[];
|
|
4
|
+
onSelect: (member: TeamMember) => void;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function TransferOwnershipModal({ candidates, onSelect, onClose }: TransferOwnershipModalProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CalendarDraft, CalendarSummary, InvitableRole, TeamRole } from '../types/calendar.js';
|
|
2
|
+
export declare const CALENDAR_NAME_MAX_LENGTH = 80;
|
|
3
|
+
export declare const CALENDAR_DESCRIPTION_MAX_LENGTH = 500;
|
|
4
|
+
export declare const MAX_INVITATIONS = 50;
|
|
5
|
+
export declare const PERSONAL_CALENDAR: CalendarSummary;
|
|
6
|
+
export declare const EMPTY_CALENDAR_DRAFT: CalendarDraft;
|
|
7
|
+
export declare const ROLE_HIERARCHY: Record<TeamRole, number>;
|
|
8
|
+
export declare const INVITABLE_ROLES: readonly InvitableRole[];
|
|
9
|
+
export declare const DEFAULT_INVITATION_ROLE: InvitableRole;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { CalendarRepository } from '../types/calendar.js';
|
|
3
|
+
type CalendarsProviderProps = {
|
|
4
|
+
repository: CalendarRepository;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function CalendarsProvider({ repository, children }: CalendarsProviderProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useCalendars: () => import("../types/calendar.ts").CalendarsContextValue;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CalendarSummary, Invitation, TeamInvitation, TeamMember, TeamRole } from '../types/calendar.js';
|
|
2
|
+
export declare function useTeam(calendar: CalendarSummary): {
|
|
3
|
+
reloadMembers: () => void;
|
|
4
|
+
members: TeamMember[];
|
|
5
|
+
membersError: string | null;
|
|
6
|
+
invitations: TeamInvitation[];
|
|
7
|
+
invitationsError: string | null;
|
|
8
|
+
changeRole: (userId: string, role: TeamRole) => Promise<void>;
|
|
9
|
+
removeMember: (userId: string) => Promise<void>;
|
|
10
|
+
invite: (invitation: Invitation) => Promise<void>;
|
|
11
|
+
revokeInvitation: (invitationId: string) => Promise<void>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { CalendarsProvider } from './context/CalendarsProvider.js';
|
|
2
|
+
export { useCalendars } from './hooks/useCalendars.js';
|
|
3
|
+
export { CalendarSettings } from './components/CalendarSettings.js';
|
|
4
|
+
export { InvitationList } from './components/InvitationList.js';
|
|
5
|
+
export { CalendarSettingsPage } from './components/settings/CalendarSettingsPage.js';
|
|
6
|
+
export { CreateCalendarPage } from './components/create/CreateCalendarPage.js';
|
|
7
|
+
export { CalendarSwitcher } from './components/CalendarSwitcher.js';
|
|
8
|
+
export { ActiveCalendarIndicator } from './components/ActiveCalendarIndicator.js';
|
|
9
|
+
export { getSharedCalendars, getVisibleCalendarIds, hasPermission, isPersonalCalendar } from './utils/permissions.js';
|
|
10
|
+
export { LocalCalendarRepository } from './repositories/LocalCalendarRepository.js';
|
|
11
|
+
export { RemoteCalendarRepository } from './repositories/RemoteCalendarRepository.js';
|
|
12
|
+
export type { CalendarChanges, CalendarDraft, CalendarKind, CalendarRepository, CalendarSummary, InvitableRole, Invitation, PendingInvitation, Permission, TeamChanges, TeamInvitation, TeamMember, TeamRole, } from './types/calendar.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CalendarRepository } from '../types/calendar.js';
|
|
2
|
+
export declare class LocalCalendarRepository implements CalendarRepository {
|
|
3
|
+
list(): Promise<import("../index.ts").CalendarSummary[]>;
|
|
4
|
+
listInvitations(): Promise<never[]>;
|
|
5
|
+
create: () => Promise<never>;
|
|
6
|
+
leave: () => Promise<never>;
|
|
7
|
+
setShowInPersonal: () => Promise<never>;
|
|
8
|
+
acceptInvitation: () => Promise<never>;
|
|
9
|
+
declineInvitation: () => Promise<never>;
|
|
10
|
+
updateCalendar: () => Promise<never>;
|
|
11
|
+
updateTeam: () => Promise<never>;
|
|
12
|
+
deleteTeam: () => Promise<never>;
|
|
13
|
+
transferOwnership: () => Promise<never>;
|
|
14
|
+
listMembers: () => Promise<never>;
|
|
15
|
+
changeMemberRole: () => Promise<never>;
|
|
16
|
+
removeMember: () => Promise<never>;
|
|
17
|
+
listTeamInvitations: () => Promise<never>;
|
|
18
|
+
invite: () => Promise<never>;
|
|
19
|
+
revokeInvitation: () => Promise<never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ApiClient } from '../../../utils/api.js';
|
|
2
|
+
import type { CalendarChanges, CalendarDraft, CalendarRepository, CalendarSummary, Invitation, PendingInvitation, TeamChanges, TeamInvitation, TeamMember, TeamRole } from '../types/calendar.js';
|
|
3
|
+
export declare class RemoteCalendarRepository implements CalendarRepository {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(api: ApiClient);
|
|
6
|
+
list(): Promise<CalendarSummary[]>;
|
|
7
|
+
create({ name, description, color, invitations }: CalendarDraft): Promise<CalendarSummary>;
|
|
8
|
+
leave(teamId: string): Promise<void>;
|
|
9
|
+
updateCalendar(calendarId: string, changes: CalendarChanges): Promise<CalendarSummary>;
|
|
10
|
+
updateTeam(teamId: string, changes: TeamChanges): Promise<CalendarSummary[]>;
|
|
11
|
+
deleteTeam(teamId: string): Promise<void>;
|
|
12
|
+
transferOwnership(teamId: string, userId: string): Promise<CalendarSummary[]>;
|
|
13
|
+
listMembers(teamId: string): Promise<TeamMember[]>;
|
|
14
|
+
changeMemberRole(teamId: string, userId: string, role: TeamRole): Promise<TeamMember>;
|
|
15
|
+
removeMember(teamId: string, userId: string): Promise<void>;
|
|
16
|
+
listTeamInvitations(teamId: string): Promise<TeamInvitation[]>;
|
|
17
|
+
invite(teamId: string, invitation: Invitation): Promise<TeamInvitation>;
|
|
18
|
+
revokeInvitation(teamId: string, invitationId: string): Promise<void>;
|
|
19
|
+
setShowInPersonal(calendarId: string, showInPersonal: boolean): Promise<CalendarSummary>;
|
|
20
|
+
listInvitations(): Promise<PendingInvitation[]>;
|
|
21
|
+
acceptInvitation(id: string): Promise<CalendarSummary[]>;
|
|
22
|
+
declineInvitation(id: string): Promise<void>;
|
|
23
|
+
}
|