@burdenoff/microfe-calendar 2026.1014.1 → 2026.1107.1
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/CalendarRoot.d.ts +0 -2
- package/dist/CalendarRoot.js +9 -6
- package/dist/CalendarRoot.js.map +1 -1
- package/dist/CalendarRoutes.d.ts +1 -2
- package/dist/CalendarRoutes.js +3 -3
- package/dist/CalendarRoutes.js.map +1 -1
- package/dist/components/AgendaView.d.ts +1 -2
- package/dist/components/AgendaView.js +17 -18
- package/dist/components/AgendaView.js.map +1 -1
- package/dist/components/CalendarErrorState.d.ts +1 -2
- package/dist/components/CalendarErrorState.js +1 -2
- package/dist/components/CalendarErrorState.js.map +1 -1
- package/dist/components/ConfirmDialog.d.ts +0 -2
- package/dist/components/ConfirmDialog.js +1 -2
- package/dist/components/ConfirmDialog.js.map +1 -1
- package/dist/components/DayView.d.ts +1 -2
- package/dist/components/DayView.js +14 -15
- package/dist/components/DayView.js.map +1 -1
- package/dist/components/EventBlock.d.ts +1 -3
- package/dist/components/EventBlock.js +6 -7
- package/dist/components/EventBlock.js.map +1 -1
- package/dist/components/EventFormModal.d.ts +0 -2
- package/dist/components/EventFormModal.js +5 -6
- package/dist/components/EventFormModal.js.map +1 -1
- package/dist/components/MiniCalendar.d.ts +1 -2
- package/dist/components/MiniCalendar.js +3 -4
- package/dist/components/MiniCalendar.js.map +1 -1
- package/dist/components/MonthView.d.ts +1 -2
- package/dist/components/MonthView.js +12 -13
- package/dist/components/MonthView.js.map +1 -1
- package/dist/components/TaskEventDetail.d.ts +0 -2
- package/dist/components/TaskEventDetail.js +4 -5
- package/dist/components/TaskEventDetail.js.map +1 -1
- package/dist/components/TimelineView.d.ts +1 -2
- package/dist/components/TimelineView.js +18 -19
- package/dist/components/TimelineView.js.map +1 -1
- package/dist/components/ViewSwitcher.d.ts +1 -2
- package/dist/components/ViewSwitcher.js +1 -2
- package/dist/components/ViewSwitcher.js.map +1 -1
- package/dist/components/WeekView.d.ts +1 -2
- package/dist/components/WeekView.js +14 -15
- package/dist/components/WeekView.js.map +1 -1
- package/dist/components/YearView.d.ts +1 -2
- package/dist/components/YearView.js +21 -22
- package/dist/components/YearView.js.map +1 -1
- package/dist/constants/permissions.d.ts +0 -1
- package/dist/constants/permissions.js +1 -2
- package/dist/constants/permissions.js.map +1 -1
- package/dist/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/wspace-operations.d.ts +261 -187
- package/dist/generated/wspace-operations.js +2 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/graphql/calendarDocuments.d.ts +0 -1
- package/dist/graphql/calendarDocuments.js +1 -2
- package/dist/graphql/calendarDocuments.js.map +1 -1
- package/dist/hooks/useCalendarPermissions.d.ts +0 -2
- package/dist/hooks/useCalendarPermissions.js +1 -2
- package/dist/hooks/useCalendarPermissions.js.map +1 -1
- package/dist/hooks/useEventPermissions.d.ts +0 -2
- package/dist/hooks/useEventPermissions.js +1 -2
- package/dist/hooks/useEventPermissions.js.map +1 -1
- package/dist/hooks/useEvents.d.ts +0 -2
- package/dist/hooks/useEvents.js +6 -7
- package/dist/hooks/useEvents.js.map +1 -1
- package/dist/hooks/useOpenEvent.d.ts +0 -2
- package/dist/hooks/useOpenEvent.js +6 -15
- package/dist/hooks/useOpenEvent.js.map +1 -1
- package/dist/hooks/useSafePermissions.d.ts +0 -1
- package/dist/hooks/useSafePermissions.js +1 -2
- package/dist/hooks/useSafePermissions.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -4
- package/dist/pages/CalendarPage.d.ts +1 -2
- package/dist/pages/CalendarPage.js +5 -6
- package/dist/pages/CalendarPage.js.map +1 -1
- package/dist/pages/EventDetailsPage.d.ts +1 -2
- package/dist/pages/EventDetailsPage.js +24 -25
- package/dist/pages/EventDetailsPage.js.map +1 -1
- package/dist/pages/ResourcesPage.d.ts +1 -2
- package/dist/pages/ResourcesPage.js +72 -70
- package/dist/pages/ResourcesPage.js.map +1 -1
- package/dist/pages/SettingsPage.d.ts +1 -2
- package/dist/pages/SettingsPage.js +15 -16
- package/dist/pages/SettingsPage.js.map +1 -1
- package/dist/pages/SubscriptionsPage.d.ts +1 -2
- package/dist/pages/SubscriptionsPage.js +15 -14
- package/dist/pages/SubscriptionsPage.js.map +1 -1
- package/dist/providers/CalendarProvider.d.ts +0 -2
- package/dist/providers/CalendarProvider.js +1 -2
- package/dist/providers/CalendarProvider.js.map +1 -1
- package/dist/shared/hooks/useTr.d.ts +0 -1
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/dist/store/calendarStore.d.ts +0 -2
- package/dist/store/calendarStore.js +2 -5
- package/dist/store/calendarStore.js.map +1 -1
- package/dist/translations/en.d.ts +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/utils/dateHelpers.d.ts +0 -1
- package/dist/utils/dateHelpers.js +2 -3
- package/dist/utils/dateHelpers.js.map +1 -1
- package/dist/utils/icalHelpers.d.ts +0 -2
- package/dist/utils/icalHelpers.js +2 -3
- package/dist/utils/icalHelpers.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +58 -50
- package/dist/CalendarRoot.d.ts.map +0 -1
- package/dist/CalendarRoutes.d.ts.map +0 -1
- package/dist/components/AgendaView.d.ts.map +0 -1
- package/dist/components/CalendarErrorState.d.ts.map +0 -1
- package/dist/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/DayView.d.ts.map +0 -1
- package/dist/components/EventBlock.d.ts.map +0 -1
- package/dist/components/EventFormModal.d.ts.map +0 -1
- package/dist/components/MiniCalendar.d.ts.map +0 -1
- package/dist/components/MonthView.d.ts.map +0 -1
- package/dist/components/TaskEventDetail.d.ts.map +0 -1
- package/dist/components/TimelineView.d.ts.map +0 -1
- package/dist/components/ViewSwitcher.d.ts.map +0 -1
- package/dist/components/WeekView.d.ts.map +0 -1
- package/dist/components/YearView.d.ts.map +0 -1
- package/dist/constants/permissions.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/graphql/calendarDocuments.d.ts.map +0 -1
- package/dist/hooks/useCalendarPermissions.d.ts.map +0 -1
- package/dist/hooks/useEventPermissions.d.ts.map +0 -1
- package/dist/hooks/useEvents.d.ts.map +0 -1
- package/dist/hooks/useOpenEvent.d.ts.map +0 -1
- package/dist/hooks/useSafePermissions.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/pages/CalendarPage.d.ts.map +0 -1
- package/dist/pages/EventDetailsPage.d.ts.map +0 -1
- package/dist/pages/ResourcesPage.d.ts.map +0 -1
- package/dist/pages/SettingsPage.d.ts.map +0 -1
- package/dist/pages/SubscriptionsPage.d.ts.map +0 -1
- package/dist/providers/CalendarProvider.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/store/calendarStore.d.ts.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/dateHelpers.d.ts.map +0 -1
- package/dist/utils/icalHelpers.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { gql as e } from "@apollo/client";
|
|
2
2
|
import * as t from "@apollo/client/react";
|
|
3
|
-
|
|
3
|
+
// src/generated/wspace-operations.ts
|
|
4
4
|
var n = {};
|
|
5
5
|
e`
|
|
6
6
|
mutation BookCalendarResource($input: BookResourceInput!) {
|
|
@@ -450,7 +450,6 @@ e`
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
`;
|
|
453
|
-
|
|
454
|
-
export { c as useCreateCalendarResourceMutation, i as useCreateEventMutation, u as useDeleteCalendarResourceMutation, o as useDeleteEventMutation, v as useGetCalendarResourcesQuery, m as useGetCalendarsQuery, g as useGetEventQuery, f as useUpdateEventMutation };
|
|
453
|
+
export { 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 };
|
|
455
454
|
|
|
456
455
|
//# sourceMappingURL=wspace-operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wspace-operations.js","names":[],"sources":["../../src/generated/wspace-operations.ts"],"sourcesContent":["// @ts-nocheck\nimport * as Types from './wspace-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\nexport type BookCalendarResourceMutationVariables = Types.Exact<{\n input: Types.BookResourceInput;\n}>;\n\n\nexport type BookCalendarResourceMutation = { __typename?: 'Mutation', bookCalendarResource: { __typename?: 'CalendarResourceBooking', id: string, resourceId: string, eventId: string, startTime: string, endTime: string, status: Types.ResourceBookingStatus, notes?: string | null, approvedBy?: string | null, approvedAt?: string | null, createdBy: string, createdAt: string } };\n\nexport type CreateEventMutationVariables = Types.Exact<{\n input: Types.CreateEventInput;\n}>;\n\n\nexport type CreateEventMutation = { __typename?: 'Mutation', createEvent: { __typename?: 'CalendarEvent', id: string, title: string, description?: string | null, location?: string | null, startTime: string, endTime: string, allDay: boolean, visibility: Types.EventVisibility, status: Types.CalendarEventStatus, createdBy: string, createdAt: string, updatedAt: string, attendees: Array<{ __typename?: 'EventAttendee', id: string, userId?: string | null, email?: string | null, name?: string | null, rsvpStatus: Types.RsvpStatus, isOptional: boolean }>, reminders: Array<{ __typename?: 'EventReminder', id: string, minutesBefore: number, channel: Types.ReminderChannel }>, calendar: { __typename?: 'Calendar', id: string, name: string, color?: string | null } } };\n\nexport type DeleteEventMutationVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n scope?: Types.InputMaybe<Types.UpdateScope>;\n}>;\n\n\nexport type DeleteEventMutation = { __typename?: 'Mutation', deleteEvent: boolean };\n\nexport type CreateCalendarResourceMutationVariables = Types.Exact<{\n input: Types.CreateCalendarResourceInput;\n}>;\n\n\nexport type CreateCalendarResourceMutation = { __typename?: 'Mutation', createCalendarResource: { __typename?: 'CalendarResource', id: string, name: string, description?: string | null, resourceType: Types.CalendarResourceType, capacity?: number | null, location?: string | null, building?: string | null, floor?: string | null, room?: string | null, isActive: boolean, isBookable: boolean, requireApproval: boolean, bufferBefore: number, bufferAfter: number, features?: Record<string, unknown> | null, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type UpdateCalendarResourceMutationVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n input: Types.UpdateCalendarResourceInput;\n}>;\n\n\nexport type UpdateCalendarResourceMutation = { __typename?: 'Mutation', updateCalendarResource: { __typename?: 'CalendarResource', id: string, name: string, description?: string | null, resourceType: Types.CalendarResourceType, capacity?: number | null, location?: string | null, building?: string | null, floor?: string | null, room?: string | null, isActive: boolean, isBookable: boolean, requireApproval: boolean, bufferBefore: number, bufferAfter: number, features?: Record<string, unknown> | null, updatedAt: string } };\n\nexport type DeleteCalendarResourceMutationVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type DeleteCalendarResourceMutation = { __typename?: 'Mutation', deleteCalendarResource: boolean };\n\nexport type ApproveResourceBookingMutationVariables = Types.Exact<{\n bookingId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type ApproveResourceBookingMutation = { __typename?: 'Mutation', approveResourceBooking: { __typename?: 'CalendarResourceBooking', id: string, resourceId: string, eventId: string, startTime: string, endTime: string, status: Types.ResourceBookingStatus, approvedBy?: string | null, approvedAt?: string | null } };\n\nexport type RejectResourceBookingMutationVariables = Types.Exact<{\n bookingId: Types.Scalars['ID']['input'];\n reason?: Types.InputMaybe<Types.Scalars['String']['input']>;\n}>;\n\n\nexport type RejectResourceBookingMutation = { __typename?: 'Mutation', rejectResourceBooking: { __typename?: 'CalendarResourceBooking', id: string, resourceId: string, eventId: string, status: Types.ResourceBookingStatus, rejectedReason?: string | null } };\n\nexport type CancelResourceBookingMutationVariables = Types.Exact<{\n bookingId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type CancelResourceBookingMutation = { __typename?: 'Mutation', cancelResourceBooking: { __typename?: 'CalendarResourceBooking', id: string, resourceId: string, eventId: string, status: Types.ResourceBookingStatus } };\n\nexport type UpdateEventMutationVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n input: Types.UpdateEventInput;\n scope?: Types.InputMaybe<Types.UpdateScope>;\n}>;\n\n\nexport type UpdateEventMutation = { __typename?: 'Mutation', updateEvent: { __typename?: 'CalendarEvent', id: string, title: string, description?: string | null, location?: string | null, startTime: string, endTime: string, allDay: boolean, visibility: Types.EventVisibility, status: Types.CalendarEventStatus, updatedAt: string, attendees: Array<{ __typename?: 'EventAttendee', id: string, userId?: string | null, email?: string | null, name?: string | null, rsvpStatus: Types.RsvpStatus, isOptional: boolean }>, reminders: Array<{ __typename?: 'EventReminder', id: string, minutesBefore: number, channel: Types.ReminderChannel }> } };\n\nexport type CheckAvailabilityQueryVariables = Types.Exact<{\n calendarId: Types.Scalars['ID']['input'];\n startTime: Types.Scalars['DateTime']['input'];\n endTime: Types.Scalars['DateTime']['input'];\n userId?: Types.InputMaybe<Types.Scalars['String']['input']>;\n}>;\n\n\nexport type CheckAvailabilityQuery = { __typename?: 'Query', checkAvailability: boolean };\n\nexport type GetCalendarsQueryVariables = Types.Exact<{\n filter?: Types.InputMaybe<Types.CalendarFilterInput>;\n pagination?: Types.InputMaybe<Types.CalendarPaginationInput>;\n}>;\n\n\nexport type GetCalendarsQuery = { __typename?: 'Query', calendars: { __typename?: 'CalendarConnection', hasMore: boolean, total: number, calendars: Array<{ __typename?: 'Calendar', id: string, name: string, description?: string | null, color?: string | null, calendarType: Types.CalendarType, isPublic: boolean, isDefault: boolean, createdBy: string, timezone?: string | null, createdAt: string, updatedAt: string }> } };\n\nexport type GetEventQueryVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type GetEventQuery = { __typename?: 'Query', event?: { __typename?: 'CalendarEvent', id: string, calendarId: string, workspaceId: string, title: string, description?: string | null, location?: string | null, locationAddress?: string | null, locationType?: Types.LocationType | null, locationUrl?: string | null, startTime: string, endTime: string, allDay: boolean, timezone?: string | null, status: Types.CalendarEventStatus, visibility: Types.EventVisibility, eventType: Types.EventType, isRecurring: boolean, rrule?: string | null, tags?: Array<string> | null, maxAttendees?: number | null, currentAttendeeCount?: number | null, onlineMeetingUrl?: string | null, onlineMeetingProvider?: Types.MeetingProvider | null, createdBy: string, createdAt: string, updatedAt: string, calendar: { __typename?: 'Calendar', id: string, name: string, color?: string | null }, attendees: Array<{ __typename?: 'EventAttendee', id: string, userId?: string | null, email?: string | null, name?: string | null, rsvpStatus: Types.RsvpStatus, isOptional: boolean }>, reminders: Array<{ __typename?: 'EventReminder', id: string, minutesBefore: number, channel: Types.ReminderChannel }>, resourceBookings: Array<{ __typename?: 'CalendarResourceBooking', id: string, resourceId: string, startTime: string, endTime: string, status: Types.ResourceBookingStatus, notes?: string | null, resource?: { __typename?: 'CalendarResource', id: string, name: string, resourceType: Types.CalendarResourceType, location?: string | null, capacity?: number | null } | null }> } | null };\n\nexport type GetEventsInRangeQueryVariables = Types.Exact<{\n calendarId: Types.Scalars['ID']['input'];\n startDate: Types.Scalars['DateTime']['input'];\n endDate: Types.Scalars['DateTime']['input'];\n}>;\n\n\nexport type GetEventsInRangeQuery = { __typename?: 'Query', eventsInRange: Array<{ __typename?: 'CalendarEvent', id: string, calendarId: string, workspaceId: string, title: string, description?: string | null, location?: string | null, startTime: string, endTime: string, allDay: boolean, timezone?: string | null, status: Types.CalendarEventStatus, createdBy: string, createdAt: string, updatedAt: string, calendar: { __typename?: 'Calendar', id: string, name: string, color?: string | null }, attendees: Array<{ __typename?: 'EventAttendee', id: string, userId?: string | null, email?: string | null, name?: string | null, rsvpStatus: Types.RsvpStatus, isOptional: boolean }>, reminders: Array<{ __typename?: 'EventReminder', id: string, minutesBefore: number, channel: Types.ReminderChannel }> }> };\n\nexport type UpcomingEventsQueryVariables = Types.Exact<{\n limit?: Types.InputMaybe<Types.Scalars['Int']['input']>;\n}>;\n\n\nexport type UpcomingEventsQuery = { __typename?: 'Query', upcomingEvents: Array<{ __typename?: 'CalendarEvent', id: string, calendarId: string, title: string, description?: string | null, location?: string | null, startTime: string, endTime: string, allDay: boolean, status: Types.CalendarEventStatus, createdBy: string, createdAt: string, updatedAt: string, calendar: { __typename?: 'Calendar', id: string, name: string, color?: string | null }, attendees: Array<{ __typename?: 'EventAttendee', id: string, userId?: string | null, rsvpStatus: Types.RsvpStatus }> }> };\n\nexport type GetCalendarResourcesQueryVariables = Types.Exact<{\n resourceType?: Types.InputMaybe<Types.CalendarResourceType>;\n}>;\n\n\nexport type GetCalendarResourcesQuery = { __typename?: 'Query', getCalendarResources: Array<{ __typename?: 'CalendarResource', id: string, name: string, description?: string | null, resourceType: Types.CalendarResourceType, capacity?: number | null, location?: string | null, building?: string | null, floor?: string | null, room?: string | null, isActive: boolean, isBookable: boolean, requireApproval: boolean, bufferBefore: number, bufferAfter: number, features?: Record<string, unknown> | null, createdBy: string, createdAt: string, updatedAt: string }> };\n\nexport type GetCalendarResourceQueryVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type GetCalendarResourceQuery = { __typename?: 'Query', getCalendarResource?: { __typename?: 'CalendarResource', id: string, name: string, description?: string | null, resourceType: Types.CalendarResourceType, capacity?: number | null, location?: string | null, building?: string | null, floor?: string | null, room?: string | null, isActive: boolean, isBookable: boolean, requireApproval: boolean, approverUserId?: string | null, bufferBefore: number, bufferAfter: number, features?: Record<string, unknown> | null, metadata?: Record<string, unknown> | null, createdBy: string, createdAt: string, updatedAt: string, bookings: Array<{ __typename?: 'CalendarResourceBooking', id: string, eventId: string, startTime: string, endTime: string, status: Types.ResourceBookingStatus, notes?: string | null, createdBy: string, createdAt: string }> } | null };\n\n\nexport const BookCalendarResourceDocument = gql`\n mutation BookCalendarResource($input: BookResourceInput!) {\n bookCalendarResource(input: $input) {\n id\n resourceId\n eventId\n startTime\n endTime\n status\n notes\n approvedBy\n approvedAt\n createdBy\n createdAt\n }\n}\n `;\nexport type BookCalendarResourceMutationFn = Apollo.MutationFunction<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>;\n\n/**\n * __useBookCalendarResourceMutation__\n *\n * To run a mutation, you first call `useBookCalendarResourceMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useBookCalendarResourceMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [bookCalendarResourceMutation, { data, loading, error }] = useBookCalendarResourceMutation({\n * variables: {\n * input: // value for 'input'\n * },\n * });\n */\nexport function useBookCalendarResourceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>(BookCalendarResourceDocument, options);\n }\nexport type BookCalendarResourceMutationHookResult = ReturnType<typeof useBookCalendarResourceMutation>;\nexport type BookCalendarResourceMutationResult = Apollo.MutationResult<Types.BookCalendarResourceMutation>;\nexport type BookCalendarResourceMutationOptions = Apollo.BaseMutationOptions<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>;\nexport const CreateEventDocument = gql`\n mutation CreateEvent($input: CreateEventInput!) {\n createEvent(input: $input) {\n id\n title\n description\n location\n startTime\n endTime\n allDay\n visibility\n status\n createdBy\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n calendar {\n id\n name\n color\n }\n createdAt\n updatedAt\n }\n}\n `;\nexport type CreateEventMutationFn = Apollo.MutationFunction<Types.CreateEventMutation, Types.CreateEventMutationVariables>;\n\n/**\n * __useCreateEventMutation__\n *\n * To run a mutation, you first call `useCreateEventMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCreateEventMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [createEventMutation, { data, loading, error }] = useCreateEventMutation({\n * variables: {\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCreateEventMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateEventMutation, Types.CreateEventMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CreateEventMutation, Types.CreateEventMutationVariables>(CreateEventDocument, options);\n }\nexport type CreateEventMutationHookResult = ReturnType<typeof useCreateEventMutation>;\nexport type CreateEventMutationResult = Apollo.MutationResult<Types.CreateEventMutation>;\nexport type CreateEventMutationOptions = Apollo.BaseMutationOptions<Types.CreateEventMutation, Types.CreateEventMutationVariables>;\nexport const DeleteEventDocument = gql`\n mutation DeleteEvent($id: ID!, $scope: UpdateScope) {\n deleteEvent(id: $id, scope: $scope)\n}\n `;\nexport type DeleteEventMutationFn = Apollo.MutationFunction<Types.DeleteEventMutation, Types.DeleteEventMutationVariables>;\n\n/**\n * __useDeleteEventMutation__\n *\n * To run a mutation, you first call `useDeleteEventMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useDeleteEventMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [deleteEventMutation, { data, loading, error }] = useDeleteEventMutation({\n * variables: {\n * id: // value for 'id'\n * scope: // value for 'scope'\n * },\n * });\n */\nexport function useDeleteEventMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteEventMutation, Types.DeleteEventMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.DeleteEventMutation, Types.DeleteEventMutationVariables>(DeleteEventDocument, options);\n }\nexport type DeleteEventMutationHookResult = ReturnType<typeof useDeleteEventMutation>;\nexport type DeleteEventMutationResult = Apollo.MutationResult<Types.DeleteEventMutation>;\nexport type DeleteEventMutationOptions = Apollo.BaseMutationOptions<Types.DeleteEventMutation, Types.DeleteEventMutationVariables>;\nexport const CreateCalendarResourceDocument = gql`\n mutation CreateCalendarResource($input: CreateCalendarResourceInput!) {\n createCalendarResource(input: $input) {\n id\n name\n description\n resourceType\n capacity\n location\n building\n floor\n room\n isActive\n isBookable\n requireApproval\n bufferBefore\n bufferAfter\n features\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type CreateCalendarResourceMutationFn = Apollo.MutationFunction<Types.CreateCalendarResourceMutation, Types.CreateCalendarResourceMutationVariables>;\n\n/**\n * __useCreateCalendarResourceMutation__\n *\n * To run a mutation, you first call `useCreateCalendarResourceMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCreateCalendarResourceMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [createCalendarResourceMutation, { data, loading, error }] = useCreateCalendarResourceMutation({\n * variables: {\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCreateCalendarResourceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateCalendarResourceMutation, Types.CreateCalendarResourceMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CreateCalendarResourceMutation, Types.CreateCalendarResourceMutationVariables>(CreateCalendarResourceDocument, options);\n }\nexport type CreateCalendarResourceMutationHookResult = ReturnType<typeof useCreateCalendarResourceMutation>;\nexport type CreateCalendarResourceMutationResult = Apollo.MutationResult<Types.CreateCalendarResourceMutation>;\nexport type CreateCalendarResourceMutationOptions = Apollo.BaseMutationOptions<Types.CreateCalendarResourceMutation, Types.CreateCalendarResourceMutationVariables>;\nexport const UpdateCalendarResourceDocument = gql`\n mutation UpdateCalendarResource($id: ID!, $input: UpdateCalendarResourceInput!) {\n updateCalendarResource(id: $id, input: $input) {\n id\n name\n description\n resourceType\n capacity\n location\n building\n floor\n room\n isActive\n isBookable\n requireApproval\n bufferBefore\n bufferAfter\n features\n updatedAt\n }\n}\n `;\nexport type UpdateCalendarResourceMutationFn = Apollo.MutationFunction<Types.UpdateCalendarResourceMutation, Types.UpdateCalendarResourceMutationVariables>;\n\n/**\n * __useUpdateCalendarResourceMutation__\n *\n * To run a mutation, you first call `useUpdateCalendarResourceMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUpdateCalendarResourceMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [updateCalendarResourceMutation, { data, loading, error }] = useUpdateCalendarResourceMutation({\n * variables: {\n * id: // value for 'id'\n * input: // value for 'input'\n * },\n * });\n */\nexport function useUpdateCalendarResourceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateCalendarResourceMutation, Types.UpdateCalendarResourceMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UpdateCalendarResourceMutation, Types.UpdateCalendarResourceMutationVariables>(UpdateCalendarResourceDocument, options);\n }\nexport type UpdateCalendarResourceMutationHookResult = ReturnType<typeof useUpdateCalendarResourceMutation>;\nexport type UpdateCalendarResourceMutationResult = Apollo.MutationResult<Types.UpdateCalendarResourceMutation>;\nexport type UpdateCalendarResourceMutationOptions = Apollo.BaseMutationOptions<Types.UpdateCalendarResourceMutation, Types.UpdateCalendarResourceMutationVariables>;\nexport const DeleteCalendarResourceDocument = gql`\n mutation DeleteCalendarResource($id: ID!) {\n deleteCalendarResource(id: $id)\n}\n `;\nexport type DeleteCalendarResourceMutationFn = Apollo.MutationFunction<Types.DeleteCalendarResourceMutation, Types.DeleteCalendarResourceMutationVariables>;\n\n/**\n * __useDeleteCalendarResourceMutation__\n *\n * To run a mutation, you first call `useDeleteCalendarResourceMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useDeleteCalendarResourceMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [deleteCalendarResourceMutation, { data, loading, error }] = useDeleteCalendarResourceMutation({\n * variables: {\n * id: // value for 'id'\n * },\n * });\n */\nexport function useDeleteCalendarResourceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteCalendarResourceMutation, Types.DeleteCalendarResourceMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.DeleteCalendarResourceMutation, Types.DeleteCalendarResourceMutationVariables>(DeleteCalendarResourceDocument, options);\n }\nexport type DeleteCalendarResourceMutationHookResult = ReturnType<typeof useDeleteCalendarResourceMutation>;\nexport type DeleteCalendarResourceMutationResult = Apollo.MutationResult<Types.DeleteCalendarResourceMutation>;\nexport type DeleteCalendarResourceMutationOptions = Apollo.BaseMutationOptions<Types.DeleteCalendarResourceMutation, Types.DeleteCalendarResourceMutationVariables>;\nexport const ApproveResourceBookingDocument = gql`\n mutation ApproveResourceBooking($bookingId: ID!) {\n approveResourceBooking(bookingId: $bookingId) {\n id\n resourceId\n eventId\n startTime\n endTime\n status\n approvedBy\n approvedAt\n }\n}\n `;\nexport type ApproveResourceBookingMutationFn = Apollo.MutationFunction<Types.ApproveResourceBookingMutation, Types.ApproveResourceBookingMutationVariables>;\n\n/**\n * __useApproveResourceBookingMutation__\n *\n * To run a mutation, you first call `useApproveResourceBookingMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useApproveResourceBookingMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [approveResourceBookingMutation, { data, loading, error }] = useApproveResourceBookingMutation({\n * variables: {\n * bookingId: // value for 'bookingId'\n * },\n * });\n */\nexport function useApproveResourceBookingMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.ApproveResourceBookingMutation, Types.ApproveResourceBookingMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.ApproveResourceBookingMutation, Types.ApproveResourceBookingMutationVariables>(ApproveResourceBookingDocument, options);\n }\nexport type ApproveResourceBookingMutationHookResult = ReturnType<typeof useApproveResourceBookingMutation>;\nexport type ApproveResourceBookingMutationResult = Apollo.MutationResult<Types.ApproveResourceBookingMutation>;\nexport type ApproveResourceBookingMutationOptions = Apollo.BaseMutationOptions<Types.ApproveResourceBookingMutation, Types.ApproveResourceBookingMutationVariables>;\nexport const RejectResourceBookingDocument = gql`\n mutation RejectResourceBooking($bookingId: ID!, $reason: String) {\n rejectResourceBooking(bookingId: $bookingId, reason: $reason) {\n id\n resourceId\n eventId\n status\n rejectedReason\n }\n}\n `;\nexport type RejectResourceBookingMutationFn = Apollo.MutationFunction<Types.RejectResourceBookingMutation, Types.RejectResourceBookingMutationVariables>;\n\n/**\n * __useRejectResourceBookingMutation__\n *\n * To run a mutation, you first call `useRejectResourceBookingMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useRejectResourceBookingMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [rejectResourceBookingMutation, { data, loading, error }] = useRejectResourceBookingMutation({\n * variables: {\n * bookingId: // value for 'bookingId'\n * reason: // value for 'reason'\n * },\n * });\n */\nexport function useRejectResourceBookingMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RejectResourceBookingMutation, Types.RejectResourceBookingMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.RejectResourceBookingMutation, Types.RejectResourceBookingMutationVariables>(RejectResourceBookingDocument, options);\n }\nexport type RejectResourceBookingMutationHookResult = ReturnType<typeof useRejectResourceBookingMutation>;\nexport type RejectResourceBookingMutationResult = Apollo.MutationResult<Types.RejectResourceBookingMutation>;\nexport type RejectResourceBookingMutationOptions = Apollo.BaseMutationOptions<Types.RejectResourceBookingMutation, Types.RejectResourceBookingMutationVariables>;\nexport const CancelResourceBookingDocument = gql`\n mutation CancelResourceBooking($bookingId: ID!) {\n cancelResourceBooking(bookingId: $bookingId) {\n id\n resourceId\n eventId\n status\n }\n}\n `;\nexport type CancelResourceBookingMutationFn = Apollo.MutationFunction<Types.CancelResourceBookingMutation, Types.CancelResourceBookingMutationVariables>;\n\n/**\n * __useCancelResourceBookingMutation__\n *\n * To run a mutation, you first call `useCancelResourceBookingMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCancelResourceBookingMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [cancelResourceBookingMutation, { data, loading, error }] = useCancelResourceBookingMutation({\n * variables: {\n * bookingId: // value for 'bookingId'\n * },\n * });\n */\nexport function useCancelResourceBookingMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CancelResourceBookingMutation, Types.CancelResourceBookingMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CancelResourceBookingMutation, Types.CancelResourceBookingMutationVariables>(CancelResourceBookingDocument, options);\n }\nexport type CancelResourceBookingMutationHookResult = ReturnType<typeof useCancelResourceBookingMutation>;\nexport type CancelResourceBookingMutationResult = Apollo.MutationResult<Types.CancelResourceBookingMutation>;\nexport type CancelResourceBookingMutationOptions = Apollo.BaseMutationOptions<Types.CancelResourceBookingMutation, Types.CancelResourceBookingMutationVariables>;\nexport const UpdateEventDocument = gql`\n mutation UpdateEvent($id: ID!, $input: UpdateEventInput!, $scope: UpdateScope) {\n updateEvent(id: $id, input: $input, scope: $scope) {\n id\n title\n description\n location\n startTime\n endTime\n allDay\n visibility\n status\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n updatedAt\n }\n}\n `;\nexport type UpdateEventMutationFn = Apollo.MutationFunction<Types.UpdateEventMutation, Types.UpdateEventMutationVariables>;\n\n/**\n * __useUpdateEventMutation__\n *\n * To run a mutation, you first call `useUpdateEventMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUpdateEventMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [updateEventMutation, { data, loading, error }] = useUpdateEventMutation({\n * variables: {\n * id: // value for 'id'\n * input: // value for 'input'\n * scope: // value for 'scope'\n * },\n * });\n */\nexport function useUpdateEventMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateEventMutation, Types.UpdateEventMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UpdateEventMutation, Types.UpdateEventMutationVariables>(UpdateEventDocument, options);\n }\nexport type UpdateEventMutationHookResult = ReturnType<typeof useUpdateEventMutation>;\nexport type UpdateEventMutationResult = Apollo.MutationResult<Types.UpdateEventMutation>;\nexport type UpdateEventMutationOptions = Apollo.BaseMutationOptions<Types.UpdateEventMutation, Types.UpdateEventMutationVariables>;\nexport const CheckAvailabilityDocument = gql`\n query CheckAvailability($calendarId: ID!, $startTime: DateTime!, $endTime: DateTime!, $userId: String) {\n checkAvailability(\n calendarId: $calendarId\n startTime: $startTime\n endTime: $endTime\n userId: $userId\n )\n}\n `;\n\n/**\n * __useCheckAvailabilityQuery__\n *\n * To run a query within a React component, call `useCheckAvailabilityQuery` and pass it any options that fit your needs.\n * When your component renders, `useCheckAvailabilityQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useCheckAvailabilityQuery({\n * variables: {\n * calendarId: // value for 'calendarId'\n * startTime: // value for 'startTime'\n * endTime: // value for 'endTime'\n * userId: // value for 'userId'\n * },\n * });\n */\nexport function useCheckAvailabilityQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables> & ({ variables: Types.CheckAvailabilityQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>(CheckAvailabilityDocument, options);\n }\nexport function useCheckAvailabilityLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>(CheckAvailabilityDocument, options);\n }\n// @ts-ignore\nexport function useCheckAvailabilitySuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>;\nexport function useCheckAvailabilitySuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CheckAvailabilityQuery | undefined, Types.CheckAvailabilityQueryVariables>;\nexport function useCheckAvailabilitySuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>(CheckAvailabilityDocument, options);\n }\nexport type CheckAvailabilityQueryHookResult = ReturnType<typeof useCheckAvailabilityQuery>;\nexport type CheckAvailabilityLazyQueryHookResult = ReturnType<typeof useCheckAvailabilityLazyQuery>;\nexport type CheckAvailabilitySuspenseQueryHookResult = ReturnType<typeof useCheckAvailabilitySuspenseQuery>;\nexport type CheckAvailabilityQueryResult = Apollo.QueryResult<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>;\nexport const GetCalendarsDocument = gql`\n query GetCalendars($filter: CalendarFilterInput, $pagination: CalendarPaginationInput) {\n calendars(filter: $filter, pagination: $pagination) {\n calendars {\n id\n name\n description\n color\n calendarType\n isPublic\n isDefault\n createdBy\n timezone\n createdAt\n updatedAt\n }\n hasMore\n total\n }\n}\n `;\n\n/**\n * __useGetCalendarsQuery__\n *\n * To run a query within a React component, call `useGetCalendarsQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetCalendarsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetCalendarsQuery({\n * variables: {\n * filter: // value for 'filter'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useGetCalendarsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>(GetCalendarsDocument, options);\n }\nexport function useGetCalendarsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>(GetCalendarsDocument, options);\n }\n// @ts-ignore\nexport function useGetCalendarsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>;\nexport function useGetCalendarsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarsQuery | undefined, Types.GetCalendarsQueryVariables>;\nexport function useGetCalendarsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>(GetCalendarsDocument, options);\n }\nexport type GetCalendarsQueryHookResult = ReturnType<typeof useGetCalendarsQuery>;\nexport type GetCalendarsLazyQueryHookResult = ReturnType<typeof useGetCalendarsLazyQuery>;\nexport type GetCalendarsSuspenseQueryHookResult = ReturnType<typeof useGetCalendarsSuspenseQuery>;\nexport type GetCalendarsQueryResult = Apollo.QueryResult<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>;\nexport const GetEventDocument = gql`\n query GetEvent($id: ID!) {\n event(id: $id) {\n id\n calendarId\n workspaceId\n title\n description\n location\n locationAddress\n locationType\n locationUrl\n startTime\n endTime\n allDay\n timezone\n status\n visibility\n eventType\n isRecurring\n rrule\n tags\n maxAttendees\n currentAttendeeCount\n onlineMeetingUrl\n onlineMeetingProvider\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n resourceBookings {\n id\n resourceId\n startTime\n endTime\n status\n notes\n resource {\n id\n name\n resourceType\n location\n capacity\n }\n }\n }\n}\n `;\n\n/**\n * __useGetEventQuery__\n *\n * To run a query within a React component, call `useGetEventQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetEventQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetEventQuery({\n * variables: {\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetEventQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables> & ({ variables: Types.GetEventQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetEventQuery, Types.GetEventQueryVariables>(GetEventDocument, options);\n }\nexport function useGetEventLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetEventQuery, Types.GetEventQueryVariables>(GetEventDocument, options);\n }\n// @ts-ignore\nexport function useGetEventSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetEventQuery, Types.GetEventQueryVariables>;\nexport function useGetEventSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetEventQuery | undefined, Types.GetEventQueryVariables>;\nexport function useGetEventSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetEventQuery, Types.GetEventQueryVariables>(GetEventDocument, options);\n }\nexport type GetEventQueryHookResult = ReturnType<typeof useGetEventQuery>;\nexport type GetEventLazyQueryHookResult = ReturnType<typeof useGetEventLazyQuery>;\nexport type GetEventSuspenseQueryHookResult = ReturnType<typeof useGetEventSuspenseQuery>;\nexport type GetEventQueryResult = Apollo.QueryResult<Types.GetEventQuery, Types.GetEventQueryVariables>;\nexport const GetEventsInRangeDocument = gql`\n query GetEventsInRange($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n eventsInRange(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n calendarId\n workspaceId\n title\n description\n location\n startTime\n endTime\n allDay\n timezone\n status\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n }\n}\n `;\n\n/**\n * __useGetEventsInRangeQuery__\n *\n * To run a query within a React component, call `useGetEventsInRangeQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetEventsInRangeQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetEventsInRangeQuery({\n * variables: {\n * calendarId: // value for 'calendarId'\n * startDate: // value for 'startDate'\n * endDate: // value for 'endDate'\n * },\n * });\n */\nexport function useGetEventsInRangeQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables> & ({ variables: Types.GetEventsInRangeQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>(GetEventsInRangeDocument, options);\n }\nexport function useGetEventsInRangeLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>(GetEventsInRangeDocument, options);\n }\n// @ts-ignore\nexport function useGetEventsInRangeSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>;\nexport function useGetEventsInRangeSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetEventsInRangeQuery | undefined, Types.GetEventsInRangeQueryVariables>;\nexport function useGetEventsInRangeSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>(GetEventsInRangeDocument, options);\n }\nexport type GetEventsInRangeQueryHookResult = ReturnType<typeof useGetEventsInRangeQuery>;\nexport type GetEventsInRangeLazyQueryHookResult = ReturnType<typeof useGetEventsInRangeLazyQuery>;\nexport type GetEventsInRangeSuspenseQueryHookResult = ReturnType<typeof useGetEventsInRangeSuspenseQuery>;\nexport type GetEventsInRangeQueryResult = Apollo.QueryResult<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>;\nexport const UpcomingEventsDocument = gql`\n query UpcomingEvents($limit: Int) {\n upcomingEvents(limit: $limit) {\n id\n calendarId\n title\n description\n location\n startTime\n endTime\n allDay\n status\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n rsvpStatus\n }\n }\n}\n `;\n\n/**\n * __useUpcomingEventsQuery__\n *\n * To run a query within a React component, call `useUpcomingEventsQuery` and pass it any options that fit your needs.\n * When your component renders, `useUpcomingEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useUpcomingEventsQuery({\n * variables: {\n * limit: // value for 'limit'\n * },\n * });\n */\nexport function useUpcomingEventsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>(UpcomingEventsDocument, options);\n }\nexport function useUpcomingEventsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>(UpcomingEventsDocument, options);\n }\n// @ts-ignore\nexport function useUpcomingEventsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>;\nexport function useUpcomingEventsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.UpcomingEventsQuery | undefined, Types.UpcomingEventsQueryVariables>;\nexport function useUpcomingEventsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>(UpcomingEventsDocument, options);\n }\nexport type UpcomingEventsQueryHookResult = ReturnType<typeof useUpcomingEventsQuery>;\nexport type UpcomingEventsLazyQueryHookResult = ReturnType<typeof useUpcomingEventsLazyQuery>;\nexport type UpcomingEventsSuspenseQueryHookResult = ReturnType<typeof useUpcomingEventsSuspenseQuery>;\nexport type UpcomingEventsQueryResult = Apollo.QueryResult<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>;\nexport const GetCalendarResourcesDocument = gql`\n query GetCalendarResources($resourceType: CalendarResourceType) {\n getCalendarResources(resourceType: $resourceType) {\n id\n name\n description\n resourceType\n capacity\n location\n building\n floor\n room\n isActive\n isBookable\n requireApproval\n bufferBefore\n bufferAfter\n features\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\n\n/**\n * __useGetCalendarResourcesQuery__\n *\n * To run a query within a React component, call `useGetCalendarResourcesQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetCalendarResourcesQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetCalendarResourcesQuery({\n * variables: {\n * resourceType: // value for 'resourceType'\n * },\n * });\n */\nexport function useGetCalendarResourcesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>(GetCalendarResourcesDocument, options);\n }\nexport function useGetCalendarResourcesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>(GetCalendarResourcesDocument, options);\n }\n// @ts-ignore\nexport function useGetCalendarResourcesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>;\nexport function useGetCalendarResourcesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarResourcesQuery | undefined, Types.GetCalendarResourcesQueryVariables>;\nexport function useGetCalendarResourcesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>(GetCalendarResourcesDocument, options);\n }\nexport type GetCalendarResourcesQueryHookResult = ReturnType<typeof useGetCalendarResourcesQuery>;\nexport type GetCalendarResourcesLazyQueryHookResult = ReturnType<typeof useGetCalendarResourcesLazyQuery>;\nexport type GetCalendarResourcesSuspenseQueryHookResult = ReturnType<typeof useGetCalendarResourcesSuspenseQuery>;\nexport type GetCalendarResourcesQueryResult = Apollo.QueryResult<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>;\nexport const GetCalendarResourceDocument = gql`\n query GetCalendarResource($id: ID!) {\n getCalendarResource(id: $id) {\n id\n name\n description\n resourceType\n capacity\n location\n building\n floor\n room\n isActive\n isBookable\n requireApproval\n approverUserId\n bufferBefore\n bufferAfter\n features\n metadata\n bookings {\n id\n eventId\n startTime\n endTime\n status\n notes\n createdBy\n createdAt\n }\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\n\n/**\n * __useGetCalendarResourceQuery__\n *\n * To run a query within a React component, call `useGetCalendarResourceQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetCalendarResourceQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetCalendarResourceQuery({\n * variables: {\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetCalendarResourceQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables> & ({ variables: Types.GetCalendarResourceQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>(GetCalendarResourceDocument, options);\n }\nexport function useGetCalendarResourceLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>(GetCalendarResourceDocument, options);\n }\n// @ts-ignore\nexport function useGetCalendarResourceSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>;\nexport function useGetCalendarResourceSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarResourceQuery | undefined, Types.GetCalendarResourceQueryVariables>;\nexport function useGetCalendarResourceSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>(GetCalendarResourceDocument, options);\n }\nexport type GetCalendarResourceQueryHookResult = ReturnType<typeof useGetCalendarResourceQuery>;\nexport type GetCalendarResourceLazyQueryHookResult = ReturnType<typeof useGetCalendarResourceLazyQuery>;\nexport type GetCalendarResourceSuspenseQueryHookResult = ReturnType<typeof useGetCalendarResourceSuspenseQuery>;\nexport type GetCalendarResourceQueryResult = Apollo.QueryResult<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>;"],"mappings":";;;AAMA,IAAM,IAAiB,EAAE;AAoImB,CAAG;;;;;;;;;;;;;;;;;AA2C/C,IAAa,IAAsB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDtC,SAAgB,EAAuB,GAAmH;CAClJ,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,YAA2E,GAAqB,EAAQ;;AAKxI,IAAa,IAAsB,CAAG;;;;;AAyBtC,SAAgB,EAAuB,GAAmH;CAClJ,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,YAA2E,GAAqB,EAAQ;;AAKxI,IAAa,IAAiC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;AA2CjD,SAAgB,EAAkC,GAAyI;CACnL,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,YAAiG,GAAgC,EAAQ;;AAK3H,CAAG;;;;;;;;;;;;;;;;;;;;;;AAiDjD,IAAa,IAAiC,CAAG;;;;;AAwBjD,SAAgB,EAAkC,GAAyI;CACnL,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,YAAiG,GAAgC,EAAQ;;AAK3H,CAAG;;;;;;;;;;;;;OAwCJ,CAAG;;;;;;;;;;OAsCH,CAAG;;;;;;;;;;AAoChD,IAAa,IAAsB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDtC,SAAgB,EAAuB,GAAmH;CAClJ,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,YAA2E,GAAqB,EAAQ;;AAK/F,CAAG;;;;;;;;;;AAiD5C,IAAa,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;AAuCvC,SAAgB,EAAqB,GAA4G;CACzI,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,SAAoE,GAAsB,EAAQ;;AAiBlI,IAAa,IAAmB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFnC,SAAgB,EAAiB,GAA0L;CACnN,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,SAA4D,GAAkB,EAAQ;;AAiB9E,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4EL,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEzC,IAAa,IAA+B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;AAyC/C,SAAgB,EAA6B,GAA4H;CACjK,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,SAAoF,GAA8B,EAAQ;;AAiB/G,CAAG"}
|
|
1
|
+
{"version":3,"file":"wspace-operations.js","names":["ApolloReactHooks","defaultOptions","CreateEventDocument","useCreateEventMutation","options","baseOptions","DeleteEventDocument","useDeleteEventMutation","CreateCalendarResourceDocument","useCreateCalendarResourceMutation","DeleteCalendarResourceDocument","useDeleteCalendarResourceMutation","UpdateEventDocument","useUpdateEventMutation","GetCalendarsDocument","useGetCalendarsQuery","GetEventDocument","useGetEventQuery","GetCalendarResourcesDocument","useGetCalendarResourcesQuery"],"sources":["../../src/generated/wspace-operations.ts"],"sourcesContent":["// @ts-nocheck\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport * as Types from './wspace-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\nexport type BookResourceInput = {\n endTime: string;\n eventId: string | number;\n metadata?: Record<string, unknown> | null | undefined;\n notes?: string | null | undefined;\n resourceId: string | number;\n startTime: string;\n};\n\nexport type CalendarEventStatus =\n | 'CANCELLED'\n | 'CONFIRMED'\n | 'DRAFT'\n | 'TENTATIVE';\n\nexport type CalendarFilterInput = {\n calendarType?: CalendarType | null | undefined;\n isPublic?: boolean | null | undefined;\n search?: string | null | undefined;\n};\n\nexport type CalendarPaginationInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n};\n\nexport type CalendarResourceType =\n | 'DESK'\n | 'EQUIPMENT'\n | 'OTHER'\n | 'PARKING_SPOT'\n | 'ROOM'\n | 'VEHICLE';\n\nexport type CalendarType =\n | 'GROUP'\n | 'PERSONAL'\n | 'PROJECT'\n | 'WORKSPACE';\n\nexport type CreateCalendarResourceInput = {\n approverUserId?: string | null | undefined;\n bufferAfter?: number | null | undefined;\n bufferBefore?: number | null | undefined;\n building?: string | null | undefined;\n calendarId?: string | number | null | undefined;\n capacity?: number | null | undefined;\n description?: string | null | undefined;\n features?: Record<string, unknown> | null | undefined;\n floor?: string | null | undefined;\n isActive?: boolean | null | undefined;\n isBookable?: boolean | null | undefined;\n location?: string | null | undefined;\n metadata?: Record<string, unknown> | null | undefined;\n name: string;\n requireApproval?: boolean | null | undefined;\n resourceType: CalendarResourceType;\n room?: string | null | undefined;\n};\n\nexport type CreateEventInput = {\n allDay?: boolean | null | undefined;\n calendarId: string | number;\n checkInEnabled?: boolean | null | undefined;\n description?: string | null | undefined;\n endTime: string;\n eventType: EventType;\n isRecurring?: boolean | null | undefined;\n location?: string | null | undefined;\n locationAddress?: string | null | undefined;\n locationType?: string | null | undefined;\n locationUrl?: string | null | undefined;\n maxAttendees?: number | null | undefined;\n metadata?: Record<string, unknown> | null | undefined;\n onlineMeetingProvider?: string | null | undefined;\n onlineMeetingUrl?: string | null | undefined;\n rrule?: string | null | undefined;\n startTime: string;\n status?: string | null | undefined;\n /** Legacy tag input. Use `tagsV2` for canonical [{key,value}] shape (marqueue §251). */\n tags?: Array<string> | null | undefined;\n /** Canonical universal-tag input (marqueue §251). Takes precedence over legacy `tags`. */\n tagsV2?: Record<string, unknown> | null | undefined;\n timezone?: string | null | undefined;\n title: string;\n visibility?: string | null | undefined;\n};\n\nexport type EventType =\n | 'MEETING'\n | 'MILESTONE'\n | 'PROMPT'\n | 'TASK';\n\nexport type EventVisibility =\n | 'CONFIDENTIAL'\n | 'PRIVATE'\n | 'PUBLIC';\n\nexport type LocationType =\n | 'HYBRID'\n | 'ONLINE'\n | 'PHYSICAL'\n | 'TBD';\n\nexport type MeetingProvider =\n | 'CUSTOM'\n | 'GOOGLE_MEET'\n | 'MICROSOFT_TEAMS'\n | 'WEBEX'\n | 'ZOOM';\n\nexport type RsvpStatus =\n | 'ACCEPTED'\n | 'DECLINED'\n | 'NO_RESPONSE'\n | 'TENTATIVE';\n\nexport type ReminderChannel =\n | 'EMAIL'\n | 'IN_APP'\n | 'SMS';\n\nexport type ResourceBookingStatus =\n | 'APPROVED'\n | 'CANCELLED'\n | 'COMPLETED'\n | 'PENDING'\n | 'REJECTED';\n\nexport type UpdateCalendarResourceInput = {\n approverUserId?: string | null | undefined;\n bufferAfter?: number | null | undefined;\n bufferBefore?: number | null | undefined;\n building?: string | null | undefined;\n capacity?: number | null | undefined;\n description?: string | null | undefined;\n features?: Record<string, unknown> | null | undefined;\n floor?: string | null | undefined;\n isActive?: boolean | null | undefined;\n isBookable?: boolean | null | undefined;\n location?: string | null | undefined;\n metadata?: Record<string, unknown> | null | undefined;\n name?: string | null | undefined;\n requireApproval?: boolean | null | undefined;\n room?: string | null | undefined;\n};\n\nexport type UpdateEventInput = {\n allDay?: boolean | null | undefined;\n checkInEnabled?: boolean | null | undefined;\n description?: string | null | undefined;\n endTime?: string | null | undefined;\n location?: string | null | undefined;\n locationAddress?: string | null | undefined;\n locationType?: string | null | undefined;\n locationUrl?: string | null | undefined;\n maxAttendees?: number | null | undefined;\n metadata?: Record<string, unknown> | null | undefined;\n onlineMeetingProvider?: string | null | undefined;\n onlineMeetingUrl?: string | null | undefined;\n rrule?: string | null | undefined;\n startTime?: string | null | undefined;\n status?: string | null | undefined;\n tags?: Array<string> | null | undefined;\n timezone?: string | null | undefined;\n title?: string | null | undefined;\n visibility?: string | null | undefined;\n};\n\nexport type UpdateScope =\n | 'ALL_EVENTS'\n | 'THIS_AND_FUTURE'\n | 'THIS_EVENT';\n\nexport type BookCalendarResourceMutationVariables = Exact<{\n input: Types.BookResourceInput;\n}>;\n\n\nexport type BookCalendarResourceMutation = { bookCalendarResource: { id: string, resourceId: string, eventId: string, startTime: string, endTime: string, status: Types.ResourceBookingStatus, notes: string | null, approvedBy: string | null, approvedAt: string | null, createdBy: string, createdAt: string } };\n\nexport type CreateEventMutationVariables = Exact<{\n input: Types.CreateEventInput;\n}>;\n\n\nexport type CreateEventMutation = { createEvent: { id: string, title: string, description: string | null, location: string | null, startTime: string, endTime: string, allDay: boolean, visibility: Types.EventVisibility, status: Types.CalendarEventStatus, createdBy: string, createdAt: string, updatedAt: string, attendees: Array<{ id: string, userId: string | null, email: string | null, name: string | null, rsvpStatus: Types.RsvpStatus, isOptional: boolean }>, reminders: Array<{ id: string, minutesBefore: number, channel: Types.ReminderChannel }>, calendar: { id: string, name: string, color: string | null } } };\n\nexport type DeleteEventMutationVariables = Exact<{\n id: string | number;\n scope?: Types.UpdateScope | null | undefined;\n}>;\n\n\nexport type DeleteEventMutation = { deleteEvent: boolean };\n\nexport type CreateCalendarResourceMutationVariables = Exact<{\n input: Types.CreateCalendarResourceInput;\n}>;\n\n\nexport type CreateCalendarResourceMutation = { createCalendarResource: { id: string, name: string, description: string | null, resourceType: Types.CalendarResourceType, capacity: number | null, location: string | null, building: string | null, floor: string | null, room: string | null, isActive: boolean, isBookable: boolean, requireApproval: boolean, bufferBefore: number, bufferAfter: number, features: Record<string, unknown> | null, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type UpdateCalendarResourceMutationVariables = Exact<{\n id: string | number;\n input: Types.UpdateCalendarResourceInput;\n}>;\n\n\nexport type UpdateCalendarResourceMutation = { updateCalendarResource: { id: string, name: string, description: string | null, resourceType: Types.CalendarResourceType, capacity: number | null, location: string | null, building: string | null, floor: string | null, room: string | null, isActive: boolean, isBookable: boolean, requireApproval: boolean, bufferBefore: number, bufferAfter: number, features: Record<string, unknown> | null, updatedAt: string } };\n\nexport type DeleteCalendarResourceMutationVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type DeleteCalendarResourceMutation = { deleteCalendarResource: boolean };\n\nexport type ApproveResourceBookingMutationVariables = Exact<{\n bookingId: string | number;\n}>;\n\n\nexport type ApproveResourceBookingMutation = { approveResourceBooking: { id: string, resourceId: string, eventId: string, startTime: string, endTime: string, status: Types.ResourceBookingStatus, approvedBy: string | null, approvedAt: string | null } };\n\nexport type RejectResourceBookingMutationVariables = Exact<{\n bookingId: string | number;\n reason?: string | null | undefined;\n}>;\n\n\nexport type RejectResourceBookingMutation = { rejectResourceBooking: { id: string, resourceId: string, eventId: string, status: Types.ResourceBookingStatus, rejectedReason: string | null } };\n\nexport type CancelResourceBookingMutationVariables = Exact<{\n bookingId: string | number;\n}>;\n\n\nexport type CancelResourceBookingMutation = { cancelResourceBooking: { id: string, resourceId: string, eventId: string, status: Types.ResourceBookingStatus } };\n\nexport type UpdateEventMutationVariables = Exact<{\n id: string | number;\n input: Types.UpdateEventInput;\n scope?: Types.UpdateScope | null | undefined;\n}>;\n\n\nexport type UpdateEventMutation = { updateEvent: { id: string, title: string, description: string | null, location: string | null, startTime: string, endTime: string, allDay: boolean, visibility: Types.EventVisibility, status: Types.CalendarEventStatus, updatedAt: string, attendees: Array<{ id: string, userId: string | null, email: string | null, name: string | null, rsvpStatus: Types.RsvpStatus, isOptional: boolean }>, reminders: Array<{ id: string, minutesBefore: number, channel: Types.ReminderChannel }> } };\n\nexport type CheckAvailabilityQueryVariables = Exact<{\n calendarId: string | number;\n startTime: string;\n endTime: string;\n userId?: string | null | undefined;\n}>;\n\n\nexport type CheckAvailabilityQuery = { checkAvailability: boolean };\n\nexport type GetCalendarsQueryVariables = Exact<{\n filter?: Types.CalendarFilterInput | null | undefined;\n pagination?: Types.CalendarPaginationInput | null | undefined;\n}>;\n\n\nexport type GetCalendarsQuery = { calendars: { hasMore: boolean, total: number, calendars: Array<{ id: string, name: string, description: string | null, color: string | null, calendarType: Types.CalendarType, isPublic: boolean, isDefault: boolean, createdBy: string, timezone: string | null, createdAt: string, updatedAt: string }> } };\n\nexport type GetEventQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type GetEventQuery = { event: { id: string, calendarId: string, workspaceId: string, title: string, description: string | null, location: string | null, locationAddress: string | null, locationType: Types.LocationType | null, locationUrl: string | null, startTime: string, endTime: string, allDay: boolean, timezone: string | null, status: Types.CalendarEventStatus, visibility: Types.EventVisibility, eventType: Types.EventType, isRecurring: boolean, rrule: string | null, tags: Array<string> | null, maxAttendees: number | null, currentAttendeeCount: number | null, onlineMeetingUrl: string | null, onlineMeetingProvider: Types.MeetingProvider | null, createdBy: string, createdAt: string, updatedAt: string, calendar: { id: string, name: string, color: string | null }, attendees: Array<{ id: string, userId: string | null, email: string | null, name: string | null, rsvpStatus: Types.RsvpStatus, isOptional: boolean }>, reminders: Array<{ id: string, minutesBefore: number, channel: Types.ReminderChannel }>, resourceBookings: Array<{ id: string, resourceId: string, startTime: string, endTime: string, status: Types.ResourceBookingStatus, notes: string | null, resource: { id: string, name: string, resourceType: Types.CalendarResourceType, location: string | null, capacity: number | null } | null }> } | null };\n\nexport type GetEventsInRangeQueryVariables = Exact<{\n calendarId: string | number;\n startDate: string;\n endDate: string;\n}>;\n\n\nexport type GetEventsInRangeQuery = { eventsInRange: Array<{ id: string, calendarId: string, workspaceId: string, title: string, description: string | null, location: string | null, startTime: string, endTime: string, allDay: boolean, timezone: string | null, status: Types.CalendarEventStatus, createdBy: string, createdAt: string, updatedAt: string, calendar: { id: string, name: string, color: string | null }, attendees: Array<{ id: string, userId: string | null, email: string | null, name: string | null, rsvpStatus: Types.RsvpStatus, isOptional: boolean }>, reminders: Array<{ id: string, minutesBefore: number, channel: Types.ReminderChannel }> }> };\n\nexport type UpcomingEventsQueryVariables = Exact<{\n limit?: number | null | undefined;\n}>;\n\n\nexport type UpcomingEventsQuery = { upcomingEvents: Array<{ id: string, calendarId: string, title: string, description: string | null, location: string | null, startTime: string, endTime: string, allDay: boolean, status: Types.CalendarEventStatus, createdBy: string, createdAt: string, updatedAt: string, calendar: { id: string, name: string, color: string | null }, attendees: Array<{ id: string, userId: string | null, rsvpStatus: Types.RsvpStatus }> }> };\n\nexport type GetCalendarResourcesQueryVariables = Exact<{\n resourceType?: Types.CalendarResourceType | null | undefined;\n}>;\n\n\nexport type GetCalendarResourcesQuery = { getCalendarResources: Array<{ id: string, name: string, description: string | null, resourceType: Types.CalendarResourceType, capacity: number | null, location: string | null, building: string | null, floor: string | null, room: string | null, isActive: boolean, isBookable: boolean, requireApproval: boolean, bufferBefore: number, bufferAfter: number, features: Record<string, unknown> | null, createdBy: string, createdAt: string, updatedAt: string }> };\n\nexport type GetCalendarResourceQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type GetCalendarResourceQuery = { getCalendarResource: { id: string, name: string, description: string | null, resourceType: Types.CalendarResourceType, capacity: number | null, location: string | null, building: string | null, floor: string | null, room: string | null, isActive: boolean, isBookable: boolean, requireApproval: boolean, approverUserId: string | null, bufferBefore: number, bufferAfter: number, features: Record<string, unknown> | null, metadata: Record<string, unknown> | null, createdBy: string, createdAt: string, updatedAt: string, bookings: Array<{ id: string, eventId: string, startTime: string, endTime: string, status: Types.ResourceBookingStatus, notes: string | null, createdBy: string, createdAt: string }> } | null };\n\n\nexport const BookCalendarResourceDocument = gql`\n mutation BookCalendarResource($input: BookResourceInput!) {\n bookCalendarResource(input: $input) {\n id\n resourceId\n eventId\n startTime\n endTime\n status\n notes\n approvedBy\n approvedAt\n createdBy\n createdAt\n }\n}\n `;\nexport type BookCalendarResourceMutationFn = Apollo.MutationFunction<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>;\n\n/**\n * __useBookCalendarResourceMutation__\n *\n * To run a mutation, you first call `useBookCalendarResourceMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useBookCalendarResourceMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [bookCalendarResourceMutation, { data, loading, error }] = useBookCalendarResourceMutation({\n * variables: {\n * input: // value for 'input'\n * },\n * });\n */\nexport function useBookCalendarResourceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>(BookCalendarResourceDocument, options);\n }\nexport type BookCalendarResourceMutationHookResult = ReturnType<typeof useBookCalendarResourceMutation>;\nexport type BookCalendarResourceMutationResult = Apollo.MutationResult<Types.BookCalendarResourceMutation>;\nexport type BookCalendarResourceMutationOptions = Apollo.BaseMutationOptions<Types.BookCalendarResourceMutation, Types.BookCalendarResourceMutationVariables>;\nexport const CreateEventDocument = gql`\n mutation CreateEvent($input: CreateEventInput!) {\n createEvent(input: $input) {\n id\n title\n description\n location\n startTime\n endTime\n allDay\n visibility\n status\n createdBy\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n calendar {\n id\n name\n color\n }\n createdAt\n updatedAt\n }\n}\n `;\nexport type CreateEventMutationFn = Apollo.MutationFunction<Types.CreateEventMutation, Types.CreateEventMutationVariables>;\n\n/**\n * __useCreateEventMutation__\n *\n * To run a mutation, you first call `useCreateEventMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCreateEventMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [createEventMutation, { data, loading, error }] = useCreateEventMutation({\n * variables: {\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCreateEventMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateEventMutation, Types.CreateEventMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CreateEventMutation, Types.CreateEventMutationVariables>(CreateEventDocument, options);\n }\nexport type CreateEventMutationHookResult = ReturnType<typeof useCreateEventMutation>;\nexport type CreateEventMutationResult = Apollo.MutationResult<Types.CreateEventMutation>;\nexport type CreateEventMutationOptions = Apollo.BaseMutationOptions<Types.CreateEventMutation, Types.CreateEventMutationVariables>;\nexport const DeleteEventDocument = gql`\n mutation DeleteEvent($id: ID!, $scope: UpdateScope) {\n deleteEvent(id: $id, scope: $scope)\n}\n `;\nexport type DeleteEventMutationFn = Apollo.MutationFunction<Types.DeleteEventMutation, Types.DeleteEventMutationVariables>;\n\n/**\n * __useDeleteEventMutation__\n *\n * To run a mutation, you first call `useDeleteEventMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useDeleteEventMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [deleteEventMutation, { data, loading, error }] = useDeleteEventMutation({\n * variables: {\n * id: // value for 'id'\n * scope: // value for 'scope'\n * },\n * });\n */\nexport function useDeleteEventMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteEventMutation, Types.DeleteEventMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.DeleteEventMutation, Types.DeleteEventMutationVariables>(DeleteEventDocument, options);\n }\nexport type DeleteEventMutationHookResult = ReturnType<typeof useDeleteEventMutation>;\nexport type DeleteEventMutationResult = Apollo.MutationResult<Types.DeleteEventMutation>;\nexport type DeleteEventMutationOptions = Apollo.BaseMutationOptions<Types.DeleteEventMutation, Types.DeleteEventMutationVariables>;\nexport const CreateCalendarResourceDocument = gql`\n mutation CreateCalendarResource($input: CreateCalendarResourceInput!) {\n createCalendarResource(input: $input) {\n id\n name\n description\n resourceType\n capacity\n location\n building\n floor\n room\n isActive\n isBookable\n requireApproval\n bufferBefore\n bufferAfter\n features\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type CreateCalendarResourceMutationFn = Apollo.MutationFunction<Types.CreateCalendarResourceMutation, Types.CreateCalendarResourceMutationVariables>;\n\n/**\n * __useCreateCalendarResourceMutation__\n *\n * To run a mutation, you first call `useCreateCalendarResourceMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCreateCalendarResourceMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [createCalendarResourceMutation, { data, loading, error }] = useCreateCalendarResourceMutation({\n * variables: {\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCreateCalendarResourceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateCalendarResourceMutation, Types.CreateCalendarResourceMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CreateCalendarResourceMutation, Types.CreateCalendarResourceMutationVariables>(CreateCalendarResourceDocument, options);\n }\nexport type CreateCalendarResourceMutationHookResult = ReturnType<typeof useCreateCalendarResourceMutation>;\nexport type CreateCalendarResourceMutationResult = Apollo.MutationResult<Types.CreateCalendarResourceMutation>;\nexport type CreateCalendarResourceMutationOptions = Apollo.BaseMutationOptions<Types.CreateCalendarResourceMutation, Types.CreateCalendarResourceMutationVariables>;\nexport const UpdateCalendarResourceDocument = gql`\n mutation UpdateCalendarResource($id: ID!, $input: UpdateCalendarResourceInput!) {\n updateCalendarResource(id: $id, input: $input) {\n id\n name\n description\n resourceType\n capacity\n location\n building\n floor\n room\n isActive\n isBookable\n requireApproval\n bufferBefore\n bufferAfter\n features\n updatedAt\n }\n}\n `;\nexport type UpdateCalendarResourceMutationFn = Apollo.MutationFunction<Types.UpdateCalendarResourceMutation, Types.UpdateCalendarResourceMutationVariables>;\n\n/**\n * __useUpdateCalendarResourceMutation__\n *\n * To run a mutation, you first call `useUpdateCalendarResourceMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUpdateCalendarResourceMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [updateCalendarResourceMutation, { data, loading, error }] = useUpdateCalendarResourceMutation({\n * variables: {\n * id: // value for 'id'\n * input: // value for 'input'\n * },\n * });\n */\nexport function useUpdateCalendarResourceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateCalendarResourceMutation, Types.UpdateCalendarResourceMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UpdateCalendarResourceMutation, Types.UpdateCalendarResourceMutationVariables>(UpdateCalendarResourceDocument, options);\n }\nexport type UpdateCalendarResourceMutationHookResult = ReturnType<typeof useUpdateCalendarResourceMutation>;\nexport type UpdateCalendarResourceMutationResult = Apollo.MutationResult<Types.UpdateCalendarResourceMutation>;\nexport type UpdateCalendarResourceMutationOptions = Apollo.BaseMutationOptions<Types.UpdateCalendarResourceMutation, Types.UpdateCalendarResourceMutationVariables>;\nexport const DeleteCalendarResourceDocument = gql`\n mutation DeleteCalendarResource($id: ID!) {\n deleteCalendarResource(id: $id)\n}\n `;\nexport type DeleteCalendarResourceMutationFn = Apollo.MutationFunction<Types.DeleteCalendarResourceMutation, Types.DeleteCalendarResourceMutationVariables>;\n\n/**\n * __useDeleteCalendarResourceMutation__\n *\n * To run a mutation, you first call `useDeleteCalendarResourceMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useDeleteCalendarResourceMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [deleteCalendarResourceMutation, { data, loading, error }] = useDeleteCalendarResourceMutation({\n * variables: {\n * id: // value for 'id'\n * },\n * });\n */\nexport function useDeleteCalendarResourceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteCalendarResourceMutation, Types.DeleteCalendarResourceMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.DeleteCalendarResourceMutation, Types.DeleteCalendarResourceMutationVariables>(DeleteCalendarResourceDocument, options);\n }\nexport type DeleteCalendarResourceMutationHookResult = ReturnType<typeof useDeleteCalendarResourceMutation>;\nexport type DeleteCalendarResourceMutationResult = Apollo.MutationResult<Types.DeleteCalendarResourceMutation>;\nexport type DeleteCalendarResourceMutationOptions = Apollo.BaseMutationOptions<Types.DeleteCalendarResourceMutation, Types.DeleteCalendarResourceMutationVariables>;\nexport const ApproveResourceBookingDocument = gql`\n mutation ApproveResourceBooking($bookingId: ID!) {\n approveResourceBooking(bookingId: $bookingId) {\n id\n resourceId\n eventId\n startTime\n endTime\n status\n approvedBy\n approvedAt\n }\n}\n `;\nexport type ApproveResourceBookingMutationFn = Apollo.MutationFunction<Types.ApproveResourceBookingMutation, Types.ApproveResourceBookingMutationVariables>;\n\n/**\n * __useApproveResourceBookingMutation__\n *\n * To run a mutation, you first call `useApproveResourceBookingMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useApproveResourceBookingMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [approveResourceBookingMutation, { data, loading, error }] = useApproveResourceBookingMutation({\n * variables: {\n * bookingId: // value for 'bookingId'\n * },\n * });\n */\nexport function useApproveResourceBookingMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.ApproveResourceBookingMutation, Types.ApproveResourceBookingMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.ApproveResourceBookingMutation, Types.ApproveResourceBookingMutationVariables>(ApproveResourceBookingDocument, options);\n }\nexport type ApproveResourceBookingMutationHookResult = ReturnType<typeof useApproveResourceBookingMutation>;\nexport type ApproveResourceBookingMutationResult = Apollo.MutationResult<Types.ApproveResourceBookingMutation>;\nexport type ApproveResourceBookingMutationOptions = Apollo.BaseMutationOptions<Types.ApproveResourceBookingMutation, Types.ApproveResourceBookingMutationVariables>;\nexport const RejectResourceBookingDocument = gql`\n mutation RejectResourceBooking($bookingId: ID!, $reason: String) {\n rejectResourceBooking(bookingId: $bookingId, reason: $reason) {\n id\n resourceId\n eventId\n status\n rejectedReason\n }\n}\n `;\nexport type RejectResourceBookingMutationFn = Apollo.MutationFunction<Types.RejectResourceBookingMutation, Types.RejectResourceBookingMutationVariables>;\n\n/**\n * __useRejectResourceBookingMutation__\n *\n * To run a mutation, you first call `useRejectResourceBookingMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useRejectResourceBookingMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [rejectResourceBookingMutation, { data, loading, error }] = useRejectResourceBookingMutation({\n * variables: {\n * bookingId: // value for 'bookingId'\n * reason: // value for 'reason'\n * },\n * });\n */\nexport function useRejectResourceBookingMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RejectResourceBookingMutation, Types.RejectResourceBookingMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.RejectResourceBookingMutation, Types.RejectResourceBookingMutationVariables>(RejectResourceBookingDocument, options);\n }\nexport type RejectResourceBookingMutationHookResult = ReturnType<typeof useRejectResourceBookingMutation>;\nexport type RejectResourceBookingMutationResult = Apollo.MutationResult<Types.RejectResourceBookingMutation>;\nexport type RejectResourceBookingMutationOptions = Apollo.BaseMutationOptions<Types.RejectResourceBookingMutation, Types.RejectResourceBookingMutationVariables>;\nexport const CancelResourceBookingDocument = gql`\n mutation CancelResourceBooking($bookingId: ID!) {\n cancelResourceBooking(bookingId: $bookingId) {\n id\n resourceId\n eventId\n status\n }\n}\n `;\nexport type CancelResourceBookingMutationFn = Apollo.MutationFunction<Types.CancelResourceBookingMutation, Types.CancelResourceBookingMutationVariables>;\n\n/**\n * __useCancelResourceBookingMutation__\n *\n * To run a mutation, you first call `useCancelResourceBookingMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCancelResourceBookingMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [cancelResourceBookingMutation, { data, loading, error }] = useCancelResourceBookingMutation({\n * variables: {\n * bookingId: // value for 'bookingId'\n * },\n * });\n */\nexport function useCancelResourceBookingMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CancelResourceBookingMutation, Types.CancelResourceBookingMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CancelResourceBookingMutation, Types.CancelResourceBookingMutationVariables>(CancelResourceBookingDocument, options);\n }\nexport type CancelResourceBookingMutationHookResult = ReturnType<typeof useCancelResourceBookingMutation>;\nexport type CancelResourceBookingMutationResult = Apollo.MutationResult<Types.CancelResourceBookingMutation>;\nexport type CancelResourceBookingMutationOptions = Apollo.BaseMutationOptions<Types.CancelResourceBookingMutation, Types.CancelResourceBookingMutationVariables>;\nexport const UpdateEventDocument = gql`\n mutation UpdateEvent($id: ID!, $input: UpdateEventInput!, $scope: UpdateScope) {\n updateEvent(id: $id, input: $input, scope: $scope) {\n id\n title\n description\n location\n startTime\n endTime\n allDay\n visibility\n status\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n updatedAt\n }\n}\n `;\nexport type UpdateEventMutationFn = Apollo.MutationFunction<Types.UpdateEventMutation, Types.UpdateEventMutationVariables>;\n\n/**\n * __useUpdateEventMutation__\n *\n * To run a mutation, you first call `useUpdateEventMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUpdateEventMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [updateEventMutation, { data, loading, error }] = useUpdateEventMutation({\n * variables: {\n * id: // value for 'id'\n * input: // value for 'input'\n * scope: // value for 'scope'\n * },\n * });\n */\nexport function useUpdateEventMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateEventMutation, Types.UpdateEventMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UpdateEventMutation, Types.UpdateEventMutationVariables>(UpdateEventDocument, options);\n }\nexport type UpdateEventMutationHookResult = ReturnType<typeof useUpdateEventMutation>;\nexport type UpdateEventMutationResult = Apollo.MutationResult<Types.UpdateEventMutation>;\nexport type UpdateEventMutationOptions = Apollo.BaseMutationOptions<Types.UpdateEventMutation, Types.UpdateEventMutationVariables>;\nexport const CheckAvailabilityDocument = gql`\n query CheckAvailability($calendarId: ID!, $startTime: DateTime!, $endTime: DateTime!, $userId: String) {\n checkAvailability(\n calendarId: $calendarId\n startTime: $startTime\n endTime: $endTime\n userId: $userId\n )\n}\n `;\n\n/**\n * __useCheckAvailabilityQuery__\n *\n * To run a query within a React component, call `useCheckAvailabilityQuery` and pass it any options that fit your needs.\n * When your component renders, `useCheckAvailabilityQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useCheckAvailabilityQuery({\n * variables: {\n * calendarId: // value for 'calendarId'\n * startTime: // value for 'startTime'\n * endTime: // value for 'endTime'\n * userId: // value for 'userId'\n * },\n * });\n */\nexport function useCheckAvailabilityQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables> & ({ variables: Types.CheckAvailabilityQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>(CheckAvailabilityDocument, options);\n }\nexport function useCheckAvailabilityLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>(CheckAvailabilityDocument, options);\n }\n// @ts-ignore\nexport function useCheckAvailabilitySuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>;\nexport function useCheckAvailabilitySuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CheckAvailabilityQuery | undefined, Types.CheckAvailabilityQueryVariables>;\nexport function useCheckAvailabilitySuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>(CheckAvailabilityDocument, options);\n }\nexport type CheckAvailabilityQueryHookResult = ReturnType<typeof useCheckAvailabilityQuery>;\nexport type CheckAvailabilityLazyQueryHookResult = ReturnType<typeof useCheckAvailabilityLazyQuery>;\nexport type CheckAvailabilitySuspenseQueryHookResult = ReturnType<typeof useCheckAvailabilitySuspenseQuery>;\nexport type CheckAvailabilityQueryResult = Apollo.QueryResult<Types.CheckAvailabilityQuery, Types.CheckAvailabilityQueryVariables>;\nexport const GetCalendarsDocument = gql`\n query GetCalendars($filter: CalendarFilterInput, $pagination: CalendarPaginationInput) {\n calendars(filter: $filter, pagination: $pagination) {\n calendars {\n id\n name\n description\n color\n calendarType\n isPublic\n isDefault\n createdBy\n timezone\n createdAt\n updatedAt\n }\n hasMore\n total\n }\n}\n `;\n\n/**\n * __useGetCalendarsQuery__\n *\n * To run a query within a React component, call `useGetCalendarsQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetCalendarsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetCalendarsQuery({\n * variables: {\n * filter: // value for 'filter'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useGetCalendarsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>(GetCalendarsDocument, options);\n }\nexport function useGetCalendarsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>(GetCalendarsDocument, options);\n }\n// @ts-ignore\nexport function useGetCalendarsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>;\nexport function useGetCalendarsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarsQuery | undefined, Types.GetCalendarsQueryVariables>;\nexport function useGetCalendarsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>(GetCalendarsDocument, options);\n }\nexport type GetCalendarsQueryHookResult = ReturnType<typeof useGetCalendarsQuery>;\nexport type GetCalendarsLazyQueryHookResult = ReturnType<typeof useGetCalendarsLazyQuery>;\nexport type GetCalendarsSuspenseQueryHookResult = ReturnType<typeof useGetCalendarsSuspenseQuery>;\nexport type GetCalendarsQueryResult = Apollo.QueryResult<Types.GetCalendarsQuery, Types.GetCalendarsQueryVariables>;\nexport const GetEventDocument = gql`\n query GetEvent($id: ID!) {\n event(id: $id) {\n id\n calendarId\n workspaceId\n title\n description\n location\n locationAddress\n locationType\n locationUrl\n startTime\n endTime\n allDay\n timezone\n status\n visibility\n eventType\n isRecurring\n rrule\n tags\n maxAttendees\n currentAttendeeCount\n onlineMeetingUrl\n onlineMeetingProvider\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n resourceBookings {\n id\n resourceId\n startTime\n endTime\n status\n notes\n resource {\n id\n name\n resourceType\n location\n capacity\n }\n }\n }\n}\n `;\n\n/**\n * __useGetEventQuery__\n *\n * To run a query within a React component, call `useGetEventQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetEventQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetEventQuery({\n * variables: {\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetEventQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables> & ({ variables: Types.GetEventQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetEventQuery, Types.GetEventQueryVariables>(GetEventDocument, options);\n }\nexport function useGetEventLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetEventQuery, Types.GetEventQueryVariables>(GetEventDocument, options);\n }\n// @ts-ignore\nexport function useGetEventSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetEventQuery, Types.GetEventQueryVariables>;\nexport function useGetEventSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetEventQuery | undefined, Types.GetEventQueryVariables>;\nexport function useGetEventSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventQuery, Types.GetEventQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetEventQuery, Types.GetEventQueryVariables>(GetEventDocument, options);\n }\nexport type GetEventQueryHookResult = ReturnType<typeof useGetEventQuery>;\nexport type GetEventLazyQueryHookResult = ReturnType<typeof useGetEventLazyQuery>;\nexport type GetEventSuspenseQueryHookResult = ReturnType<typeof useGetEventSuspenseQuery>;\nexport type GetEventQueryResult = Apollo.QueryResult<Types.GetEventQuery, Types.GetEventQueryVariables>;\nexport const GetEventsInRangeDocument = gql`\n query GetEventsInRange($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n eventsInRange(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n calendarId\n workspaceId\n title\n description\n location\n startTime\n endTime\n allDay\n timezone\n status\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n }\n}\n `;\n\n/**\n * __useGetEventsInRangeQuery__\n *\n * To run a query within a React component, call `useGetEventsInRangeQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetEventsInRangeQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetEventsInRangeQuery({\n * variables: {\n * calendarId: // value for 'calendarId'\n * startDate: // value for 'startDate'\n * endDate: // value for 'endDate'\n * },\n * });\n */\nexport function useGetEventsInRangeQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables> & ({ variables: Types.GetEventsInRangeQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>(GetEventsInRangeDocument, options);\n }\nexport function useGetEventsInRangeLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>(GetEventsInRangeDocument, options);\n }\n// @ts-ignore\nexport function useGetEventsInRangeSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>;\nexport function useGetEventsInRangeSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetEventsInRangeQuery | undefined, Types.GetEventsInRangeQueryVariables>;\nexport function useGetEventsInRangeSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>(GetEventsInRangeDocument, options);\n }\nexport type GetEventsInRangeQueryHookResult = ReturnType<typeof useGetEventsInRangeQuery>;\nexport type GetEventsInRangeLazyQueryHookResult = ReturnType<typeof useGetEventsInRangeLazyQuery>;\nexport type GetEventsInRangeSuspenseQueryHookResult = ReturnType<typeof useGetEventsInRangeSuspenseQuery>;\nexport type GetEventsInRangeQueryResult = Apollo.QueryResult<Types.GetEventsInRangeQuery, Types.GetEventsInRangeQueryVariables>;\nexport const UpcomingEventsDocument = gql`\n query UpcomingEvents($limit: Int) {\n upcomingEvents(limit: $limit) {\n id\n calendarId\n title\n description\n location\n startTime\n endTime\n allDay\n status\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n rsvpStatus\n }\n }\n}\n `;\n\n/**\n * __useUpcomingEventsQuery__\n *\n * To run a query within a React component, call `useUpcomingEventsQuery` and pass it any options that fit your needs.\n * When your component renders, `useUpcomingEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useUpcomingEventsQuery({\n * variables: {\n * limit: // value for 'limit'\n * },\n * });\n */\nexport function useUpcomingEventsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>(UpcomingEventsDocument, options);\n }\nexport function useUpcomingEventsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>(UpcomingEventsDocument, options);\n }\n// @ts-ignore\nexport function useUpcomingEventsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>;\nexport function useUpcomingEventsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.UpcomingEventsQuery | undefined, Types.UpcomingEventsQueryVariables>;\nexport function useUpcomingEventsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>(UpcomingEventsDocument, options);\n }\nexport type UpcomingEventsQueryHookResult = ReturnType<typeof useUpcomingEventsQuery>;\nexport type UpcomingEventsLazyQueryHookResult = ReturnType<typeof useUpcomingEventsLazyQuery>;\nexport type UpcomingEventsSuspenseQueryHookResult = ReturnType<typeof useUpcomingEventsSuspenseQuery>;\nexport type UpcomingEventsQueryResult = Apollo.QueryResult<Types.UpcomingEventsQuery, Types.UpcomingEventsQueryVariables>;\nexport const GetCalendarResourcesDocument = gql`\n query GetCalendarResources($resourceType: CalendarResourceType) {\n getCalendarResources(resourceType: $resourceType) {\n id\n name\n description\n resourceType\n capacity\n location\n building\n floor\n room\n isActive\n isBookable\n requireApproval\n bufferBefore\n bufferAfter\n features\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\n\n/**\n * __useGetCalendarResourcesQuery__\n *\n * To run a query within a React component, call `useGetCalendarResourcesQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetCalendarResourcesQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetCalendarResourcesQuery({\n * variables: {\n * resourceType: // value for 'resourceType'\n * },\n * });\n */\nexport function useGetCalendarResourcesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>(GetCalendarResourcesDocument, options);\n }\nexport function useGetCalendarResourcesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>(GetCalendarResourcesDocument, options);\n }\n// @ts-ignore\nexport function useGetCalendarResourcesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>;\nexport function useGetCalendarResourcesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarResourcesQuery | undefined, Types.GetCalendarResourcesQueryVariables>;\nexport function useGetCalendarResourcesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>(GetCalendarResourcesDocument, options);\n }\nexport type GetCalendarResourcesQueryHookResult = ReturnType<typeof useGetCalendarResourcesQuery>;\nexport type GetCalendarResourcesLazyQueryHookResult = ReturnType<typeof useGetCalendarResourcesLazyQuery>;\nexport type GetCalendarResourcesSuspenseQueryHookResult = ReturnType<typeof useGetCalendarResourcesSuspenseQuery>;\nexport type GetCalendarResourcesQueryResult = Apollo.QueryResult<Types.GetCalendarResourcesQuery, Types.GetCalendarResourcesQueryVariables>;\nexport const GetCalendarResourceDocument = gql`\n query GetCalendarResource($id: ID!) {\n getCalendarResource(id: $id) {\n id\n name\n description\n resourceType\n capacity\n location\n building\n floor\n room\n isActive\n isBookable\n requireApproval\n approverUserId\n bufferBefore\n bufferAfter\n features\n metadata\n bookings {\n id\n eventId\n startTime\n endTime\n status\n notes\n createdBy\n createdAt\n }\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\n\n/**\n * __useGetCalendarResourceQuery__\n *\n * To run a query within a React component, call `useGetCalendarResourceQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetCalendarResourceQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @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;\n *\n * @example\n * const { data, loading, error } = useGetCalendarResourceQuery({\n * variables: {\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetCalendarResourceQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables> & ({ variables: Types.GetCalendarResourceQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>(GetCalendarResourceDocument, options);\n }\nexport function useGetCalendarResourceLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>(GetCalendarResourceDocument, options);\n }\n// @ts-ignore\nexport function useGetCalendarResourceSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>;\nexport function useGetCalendarResourceSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetCalendarResourceQuery | undefined, Types.GetCalendarResourceQueryVariables>;\nexport function useGetCalendarResourceSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>(GetCalendarResourceDocument, options);\n }\nexport type GetCalendarResourceQueryHookResult = ReturnType<typeof useGetCalendarResourceQuery>;\nexport type GetCalendarResourceLazyQueryHookResult = ReturnType<typeof useGetCalendarResourceLazyQuery>;\nexport type GetCalendarResourceSuspenseQueryHookResult = ReturnType<typeof useGetCalendarResourceSuspenseQuery>;\nexport type GetCalendarResourceQueryResult = Apollo.QueryResult<Types.GetCalendarResourceQuery, Types.GetCalendarResourceQueryVariables>;"],"mappings":";;;AAUA,IAAMC,IAAiB,CAAC;AAmToB,CAAG;;;;;;;;;;;;;;;;;AA2C/C,IAAaC,IAAsB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDtC,SAAgBC,EAAuB,GAAmH;CAClJ,IAAMC,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,YAA2EE,GAAqBE,CAAO;AACjI;AAIN,IAAaE,IAAsB,CAAG;;;;;AAyBtC,SAAgBC,EAAuB,GAAmH;CAClJ,IAAMH,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,YAA2EM,GAAqBF,CAAO;AACjI;AAIN,IAAaI,IAAiC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;AA2CjD,SAAgBC,EAAkC,GAAyI;CACnL,IAAML,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,YAAiGQ,GAAgCJ,CAAO;AAClK;AAIwC,CAAG;;;;;;;;;;;;;;;;;;;;;;AAiDjD,IAAaM,IAAiC,CAAG;;;;;AAwBjD,SAAgBC,EAAkC,GAAyI;CACnL,IAAMP,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,YAAiGU,GAAgCN,CAAO;AAClK;AAIwC,CAAG;;;;;;;;;;;;;OAwCJ,CAAG;;;;;;;;;;OAsCH,CAAG;;;;;;;;;;AAoChD,IAAaQ,IAAsB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDtC,SAAgBC,EAAuB,GAAmH;CAClJ,IAAMT,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,YAA2EY,GAAqBR,CAAO;AACjI;AAImC,CAAG;;;;;;;;;;AAiD5C,IAAaU,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;AAuCvC,SAAgBC,EAAqB,GAA4G;CACzI,IAAMX,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,SAAoEc,GAAsBV,CAAO;AAC3H;AAgBN,IAAaY,IAAmB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFnC,SAAgBC,EAAiB,GAA0L;CACnN,IAAMb,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,SAA4DgB,GAAkBZ,CAAO;AAC/G;AAgBkC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4EL,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEzC,IAAac,IAA+B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;AAyC/C,SAAgBC,EAA6B,GAA4H;CACjK,IAAMf,IAAU;EAAC,GAAGH;EAAgB,GAAGI;CAAW;CAClD,OAAOL,EAAiB,SAAoFkB,GAA8Bd,CAAO;AACnJ;AAgBqC,CAAG"}
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
export type Maybe<T> = T | null;
|
|
2
2
|
export type InputMaybe<T> = Maybe<T>;
|
|
3
|
-
export type Exact<T extends {
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}> = {
|
|
6
|
-
[K in keyof T]: T[K];
|
|
7
|
-
};
|
|
8
|
-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
-
};
|
|
11
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
-
};
|
|
14
|
-
export type MakeEmpty<T extends {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}, K extends keyof T> = {
|
|
17
|
-
[_ in K]?: never;
|
|
18
|
-
};
|
|
19
|
-
export type Incremental<T> = T | {
|
|
20
|
-
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
-
};
|
|
22
3
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
4
|
export type Scalars = {
|
|
24
5
|
ID: {
|
|
@@ -76,12 +57,12 @@ export type Scalars = {
|
|
|
76
57
|
output: File;
|
|
77
58
|
};
|
|
78
59
|
_ScalarsPlaceholder: {
|
|
79
|
-
input:
|
|
80
|
-
output:
|
|
60
|
+
input: unknown;
|
|
61
|
+
output: unknown;
|
|
81
62
|
};
|
|
82
63
|
_SecurityMainPlaceholder: {
|
|
83
|
-
input:
|
|
84
|
-
output:
|
|
64
|
+
input: unknown;
|
|
65
|
+
output: unknown;
|
|
85
66
|
};
|
|
86
67
|
};
|
|
87
68
|
export type A2AConnection = {
|
|
@@ -57848,4 +57829,3 @@ export type YieldTrendPoint = {
|
|
|
57848
57829
|
peppers: Scalars['Float']['output'];
|
|
57849
57830
|
tomatoes: Scalars['Float']['output'];
|
|
57850
57831
|
};
|
|
57851
|
-
//# sourceMappingURL=wspace-types.d.ts.map
|
|
@@ -33,4 +33,3 @@ export declare const REMOVE_ATTENDEE_MUTATION: import('graphql').DocumentNode;
|
|
|
33
33
|
export declare const RESPOND_TO_EVENT_MUTATION: import('graphql').DocumentNode;
|
|
34
34
|
export declare const CREATE_REMINDER_MUTATION: import('graphql').DocumentNode;
|
|
35
35
|
export declare const DELETE_REMINDER_MUTATION: import('graphql').DocumentNode;
|
|
36
|
-
//# sourceMappingURL=calendarDocuments.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gql as e } from "@apollo/client";
|
|
2
|
-
|
|
2
|
+
// src/graphql/calendarDocuments.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
query CalendarPlanmagnetWorkItems($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {
|
|
5
5
|
planmagnetWorkItems(workspaceId: $workspaceId, pagination: $pagination) {
|
|
@@ -380,7 +380,6 @@ var t = e`
|
|
|
380
380
|
deleteReminder(id: $id)
|
|
381
381
|
}
|
|
382
382
|
`;
|
|
383
|
-
//#endregion
|
|
384
383
|
export { S as ADD_ATTENDEE_MUTATION, o as AVAILABILITY_RULES_QUERY, s as BLACKOUT_DATES_QUERY, a as CALENDAR_DETAILS_QUERY, _ as CONNECT_EXTERNAL_CALENDAR_MUTATION, d as CREATE_AVAILABILITY_RULE_MUTATION, p as CREATE_BLACKOUT_DATE_MUTATION, h as CREATE_BOOKING_PAGE_MUTATION, T as CREATE_REMINDER_MUTATION, f as DELETE_AVAILABILITY_RULE_MUTATION, m as DELETE_BLACKOUT_DATE_MUTATION, g as DELETE_BOOKING_PAGE_MUTATION, E as DELETE_REMINDER_MUTATION, x as DISCONNECT_EXTERNAL_CALENDAR_MUTATION, r as EVENTS_IN_RANGE_QUERY, c as EXTERNAL_SYNCS_QUERY, y as PAUSE_SYNC_MUTATION, n as PLANMAGNET_MILESTONES_QUERY, t as PLANMAGNET_WORK_ITEMS_QUERY, C as REMOVE_ATTENDEE_MUTATION, w as RESPOND_TO_EVENT_MUTATION, b as RESUME_SYNC_MUTATION, u as REVOKE_CALENDAR_SHARE_MUTATION, i as SCHEDULED_JOBS_QUERY, l as SHARE_CALENDAR_MUTATION, v as TRIGGER_SYNC_MUTATION };
|
|
385
384
|
|
|
386
385
|
//# sourceMappingURL=calendarDocuments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendarDocuments.js","names":[],"sources":["../../src/graphql/calendarDocuments.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\n/**\n * PlanMagnet work items for the task overlay. Deliberately selects a MINIMAL\n * field set and does NOT select `sortOrder` — that field is `Int!` in the SDL\n * but backed by the Prisma `position` column, and selecting it triggers a\n * gateway serialization crash on some paths (the same class of bug the svc\n * field-resolver fix addresses). We only need enough to place + label + link a\n * task on the calendar. Workspace-scoped, no date filter exists on the list\n * query, so we page a generous window and filter by dueDate client-side.\n */\nexport const PLANMAGNET_WORK_ITEMS_QUERY = gql`\n query CalendarPlanmagnetWorkItems($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {\n planmagnetWorkItems(workspaceId: $workspaceId, pagination: $pagination) {\n items {\n id\n key\n title\n type\n status\n priority\n assigneeId\n dueDate\n }\n }\n }\n`;\n\nexport const PLANMAGNET_MILESTONES_QUERY = gql`\n query CalendarPlanmagnetMilestones($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {\n planmagnetMilestones(workspaceId: $workspaceId, pagination: $pagination) {\n items {\n id\n name\n status\n dueDate\n }\n }\n }\n`;\n\nexport const EVENTS_IN_RANGE_QUERY = gql`\n query CalendarEventsInRange($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n eventsInRange(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n calendarId\n workspaceId\n title\n description\n location\n locationAddress\n locationType\n locationUrl\n startTime\n endTime\n allDay\n timezone\n status\n visibility\n eventType\n isRecurring\n rrule\n tags\n maxAttendees\n currentAttendeeCount\n checkInEnabled\n onlineMeetingUrl\n onlineMeetingProvider\n metadata\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n resourceBookings {\n id\n resourceId\n startTime\n endTime\n status\n notes\n resource {\n id\n name\n resourceType\n location\n capacity\n }\n }\n attachments\n }\n }\n`;\n\nexport const SCHEDULED_JOBS_QUERY = gql`\n query CalendarScheduledJobs(\n $workspaceId: ID!\n $nextExecutionAfter: DateTime\n $nextExecutionBefore: DateTime\n ) {\n scheduledJobs(\n workspaceId: $workspaceId\n filter: { nextExecutionAfter: $nextExecutionAfter, nextExecutionBefore: $nextExecutionBefore }\n pagination: { first: 100 }\n ) {\n jobs {\n id\n name\n description\n scheduleType\n status\n priority\n scheduledAt\n nextExecutionAt\n lastExecutionAt\n timezone\n tags\n actionId\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const CALENDAR_DETAILS_QUERY = gql`\n query CalendarDetails($id: ID!) {\n calendar(id: $id) {\n id\n name\n description\n color\n timezone\n calendarType\n isPublic\n isDefault\n shares {\n id\n userId\n teamId\n canView\n canEdit\n canManage\n createdAt\n }\n bookingPages {\n id\n name\n slug\n pageType\n eventDuration\n isActive\n isPublic\n requireApproval\n maxAttendees\n }\n }\n }\n`;\n\nexport const AVAILABILITY_RULES_QUERY = gql`\n query CalendarAvailabilityRules($calendarId: ID!) {\n getAvailabilityRules(calendarId: $calendarId) {\n id\n dayOfWeek\n isAvailable\n startTime\n endTime\n timezone\n bufferBefore\n bufferAfter\n minGapBetweenEvents\n slotIncrement\n minNotice\n maxNotice\n priority\n }\n }\n`;\n\nexport const BLACKOUT_DATES_QUERY = gql`\n query CalendarBlackoutDates($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n getBlackoutDates(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n startDate\n endDate\n reason\n isRecurring\n recurrencePattern\n createdAt\n }\n }\n`;\n\nexport const EXTERNAL_SYNCS_QUERY = gql`\n query CalendarExternalSyncs($calendarId: ID!) {\n getExternalCalendarSyncs(calendarId: $calendarId) {\n id\n calendarId\n provider\n externalCalendarId\n externalCalendarName\n direction\n syncEnabled\n syncFrequency\n conflictResolution\n status\n lastSyncAt\n lastSyncStatus\n lastSyncError\n nextSyncAt\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const SHARE_CALENDAR_MUTATION = gql`\n mutation ShareCalendar(\n $calendarId: ID!\n $userId: String\n $teamId: String\n $canView: Boolean!\n $canEdit: Boolean!\n $canManage: Boolean!\n ) {\n shareCalendar(\n calendarId: $calendarId\n userId: $userId\n teamId: $teamId\n canView: $canView\n canEdit: $canEdit\n canManage: $canManage\n ) {\n id\n userId\n teamId\n canView\n canEdit\n canManage\n createdAt\n }\n }\n`;\n\nexport const REVOKE_CALENDAR_SHARE_MUTATION = gql`\n mutation RevokeCalendarShare($shareId: ID!) {\n revokeCalendarShare(shareId: $shareId)\n }\n`;\n\nexport const CREATE_AVAILABILITY_RULE_MUTATION = gql`\n mutation CreateAvailabilityRule($input: CreateAvailabilityRuleInput!) {\n createAvailabilityRule(input: $input) {\n id\n dayOfWeek\n isAvailable\n startTime\n endTime\n timezone\n bufferBefore\n bufferAfter\n slotIncrement\n minNotice\n maxNotice\n priority\n }\n }\n`;\n\nexport const DELETE_AVAILABILITY_RULE_MUTATION = gql`\n mutation DeleteAvailabilityRule($id: ID!) {\n deleteAvailabilityRule(id: $id)\n }\n`;\n\nexport const CREATE_BLACKOUT_DATE_MUTATION = gql`\n mutation CreateBlackoutDate($input: CreateBlackoutDateInput!) {\n createBlackoutDate(input: $input) {\n id\n startDate\n endDate\n reason\n isRecurring\n recurrencePattern\n createdAt\n }\n }\n`;\n\nexport const DELETE_BLACKOUT_DATE_MUTATION = gql`\n mutation DeleteBlackoutDate($id: ID!) {\n deleteBlackoutDate(id: $id)\n }\n`;\n\nexport const CREATE_BOOKING_PAGE_MUTATION = gql`\n mutation CreateBookingPage($input: CreateBookingPageInput!) {\n createBookingPage(input: $input) {\n id\n calendarId\n name\n slug\n pageType\n eventDuration\n isActive\n isPublic\n requireApproval\n maxAttendees\n }\n }\n`;\n\nexport const DELETE_BOOKING_PAGE_MUTATION = gql`\n mutation DeleteBookingPage($id: ID!) {\n deleteBookingPage(id: $id)\n }\n`;\n\nexport const CONNECT_EXTERNAL_CALENDAR_MUTATION = gql`\n mutation ConnectExternalCalendar($input: ConnectExternalCalendarInput!) {\n connectExternalCalendar(input: $input) {\n id\n provider\n externalCalendarId\n externalCalendarName\n direction\n syncEnabled\n syncFrequency\n conflictResolution\n status\n lastSyncStatus\n lastSyncError\n nextSyncAt\n }\n }\n`;\n\nexport const TRIGGER_SYNC_MUTATION = gql`\n mutation TriggerExternalCalendarSync($syncId: ID!) {\n triggerSync(syncId: $syncId) {\n id\n status\n lastSyncAt\n lastSyncStatus\n lastSyncError\n nextSyncAt\n }\n }\n`;\n\nexport const PAUSE_SYNC_MUTATION = gql`\n mutation PauseExternalCalendarSync($syncId: ID!) {\n pauseSync(syncId: $syncId) {\n id\n status\n syncEnabled\n }\n }\n`;\n\nexport const RESUME_SYNC_MUTATION = gql`\n mutation ResumeExternalCalendarSync($syncId: ID!) {\n resumeSync(syncId: $syncId) {\n id\n status\n syncEnabled\n }\n }\n`;\n\nexport const DISCONNECT_EXTERNAL_CALENDAR_MUTATION = gql`\n mutation DisconnectExternalCalendar($syncId: ID!) {\n disconnectExternalCalendar(syncId: $syncId)\n }\n`;\n\nexport const ADD_ATTENDEE_MUTATION = gql`\n mutation AddCalendarAttendee($eventId: ID!, $userId: String, $email: String, $name: String) {\n addAttendee(eventId: $eventId, userId: $userId, email: $email, name: $name) {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n }\n`;\n\nexport const REMOVE_ATTENDEE_MUTATION = gql`\n mutation RemoveCalendarAttendee($attendeeId: ID!) {\n removeAttendee(attendeeId: $attendeeId)\n }\n`;\n\nexport const RESPOND_TO_EVENT_MUTATION = gql`\n mutation RespondToCalendarEvent($eventId: ID!, $status: RSVPStatus!) {\n respondToEvent(eventId: $eventId, status: $status) {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n }\n`;\n\nexport const CREATE_REMINDER_MUTATION = gql`\n mutation CreateCalendarReminder($input: CreateReminderInput!) {\n createReminder(input: $input) {\n id\n minutesBefore\n channel\n }\n }\n`;\n\nexport const DELETE_REMINDER_MUTATION = gql`\n mutation DeleteCalendarReminder($id: ID!) {\n deleteReminder(id: $id)\n }\n`;\n"],"mappings":";;AAWA,IAAa,IAA8B,CAAG;;;;;;;;;;;;;;;GAiBjC,IAA8B,CAAG;;;;;;;;;;;GAajC,IAAwB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqE3B,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgC1B,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC5B,IAA2B,CAAG;;;;;;;;;;;;;;;;;;GAoB9B,IAAuB,CAAG;;;;;;;;;;;;GAc1B,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;GAuB1B,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;GA4B7B,IAAiC,CAAG;;;;GAMpC,IAAoC,CAAG;;;;;;;;;;;;;;;;;GAmBvC,IAAoC,CAAG;;;;GAMvC,IAAgC,CAAG;;;;;;;;;;;;GAcnC,IAAgC,CAAG;;;;GAMnC,IAA+B,CAAG;;;;;;;;;;;;;;;GAiBlC,IAA+B,CAAG;;;;GAMlC,IAAqC,CAAG;;;;;;;;;;;;;;;;;GAmBxC,IAAwB,CAAG;;;;;;;;;;;GAa3B,IAAsB,CAAG;;;;;;;;GAUzB,IAAuB,CAAG;;;;;;;;GAU1B,IAAwC,CAAG;;;;GAM3C,IAAwB,CAAG;;;;;;;;;;;GAa3B,IAA2B,CAAG;;;;GAM9B,IAA4B,CAAG;;;;;;;;;;;GAa/B,IAA2B,CAAG;;;;;;;;GAU9B,IAA2B,CAAG"}
|
|
1
|
+
{"version":3,"file":"calendarDocuments.js","names":["PLANMAGNET_WORK_ITEMS_QUERY","PLANMAGNET_MILESTONES_QUERY","EVENTS_IN_RANGE_QUERY","SCHEDULED_JOBS_QUERY","CALENDAR_DETAILS_QUERY","AVAILABILITY_RULES_QUERY","BLACKOUT_DATES_QUERY","EXTERNAL_SYNCS_QUERY","SHARE_CALENDAR_MUTATION","REVOKE_CALENDAR_SHARE_MUTATION","CREATE_AVAILABILITY_RULE_MUTATION","DELETE_AVAILABILITY_RULE_MUTATION","CREATE_BLACKOUT_DATE_MUTATION","DELETE_BLACKOUT_DATE_MUTATION","CREATE_BOOKING_PAGE_MUTATION","DELETE_BOOKING_PAGE_MUTATION","CONNECT_EXTERNAL_CALENDAR_MUTATION","TRIGGER_SYNC_MUTATION","PAUSE_SYNC_MUTATION","RESUME_SYNC_MUTATION","DISCONNECT_EXTERNAL_CALENDAR_MUTATION","ADD_ATTENDEE_MUTATION","REMOVE_ATTENDEE_MUTATION","RESPOND_TO_EVENT_MUTATION","CREATE_REMINDER_MUTATION","DELETE_REMINDER_MUTATION"],"sources":["../../src/graphql/calendarDocuments.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\n/**\n * PlanMagnet work items for the task overlay. Deliberately selects a MINIMAL\n * field set and does NOT select `sortOrder` — that field is `Int!` in the SDL\n * but backed by the Prisma `position` column, and selecting it triggers a\n * gateway serialization crash on some paths (the same class of bug the svc\n * field-resolver fix addresses). We only need enough to place + label + link a\n * task on the calendar. Workspace-scoped, no date filter exists on the list\n * query, so we page a generous window and filter by dueDate client-side.\n */\nexport const PLANMAGNET_WORK_ITEMS_QUERY = gql`\n query CalendarPlanmagnetWorkItems($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {\n planmagnetWorkItems(workspaceId: $workspaceId, pagination: $pagination) {\n items {\n id\n key\n title\n type\n status\n priority\n assigneeId\n dueDate\n }\n }\n }\n`;\n\nexport const PLANMAGNET_MILESTONES_QUERY = gql`\n query CalendarPlanmagnetMilestones($workspaceId: ID!, $pagination: PlanmagnetPaginationInput) {\n planmagnetMilestones(workspaceId: $workspaceId, pagination: $pagination) {\n items {\n id\n name\n status\n dueDate\n }\n }\n }\n`;\n\nexport const EVENTS_IN_RANGE_QUERY = gql`\n query CalendarEventsInRange($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n eventsInRange(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n calendarId\n workspaceId\n title\n description\n location\n locationAddress\n locationType\n locationUrl\n startTime\n endTime\n allDay\n timezone\n status\n visibility\n eventType\n isRecurring\n rrule\n tags\n maxAttendees\n currentAttendeeCount\n checkInEnabled\n onlineMeetingUrl\n onlineMeetingProvider\n metadata\n createdBy\n createdAt\n updatedAt\n calendar {\n id\n name\n color\n }\n attendees {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n reminders {\n id\n minutesBefore\n channel\n }\n resourceBookings {\n id\n resourceId\n startTime\n endTime\n status\n notes\n resource {\n id\n name\n resourceType\n location\n capacity\n }\n }\n attachments\n }\n }\n`;\n\nexport const SCHEDULED_JOBS_QUERY = gql`\n query CalendarScheduledJobs(\n $workspaceId: ID!\n $nextExecutionAfter: DateTime\n $nextExecutionBefore: DateTime\n ) {\n scheduledJobs(\n workspaceId: $workspaceId\n filter: { nextExecutionAfter: $nextExecutionAfter, nextExecutionBefore: $nextExecutionBefore }\n pagination: { first: 100 }\n ) {\n jobs {\n id\n name\n description\n scheduleType\n status\n priority\n scheduledAt\n nextExecutionAt\n lastExecutionAt\n timezone\n tags\n actionId\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const CALENDAR_DETAILS_QUERY = gql`\n query CalendarDetails($id: ID!) {\n calendar(id: $id) {\n id\n name\n description\n color\n timezone\n calendarType\n isPublic\n isDefault\n shares {\n id\n userId\n teamId\n canView\n canEdit\n canManage\n createdAt\n }\n bookingPages {\n id\n name\n slug\n pageType\n eventDuration\n isActive\n isPublic\n requireApproval\n maxAttendees\n }\n }\n }\n`;\n\nexport const AVAILABILITY_RULES_QUERY = gql`\n query CalendarAvailabilityRules($calendarId: ID!) {\n getAvailabilityRules(calendarId: $calendarId) {\n id\n dayOfWeek\n isAvailable\n startTime\n endTime\n timezone\n bufferBefore\n bufferAfter\n minGapBetweenEvents\n slotIncrement\n minNotice\n maxNotice\n priority\n }\n }\n`;\n\nexport const BLACKOUT_DATES_QUERY = gql`\n query CalendarBlackoutDates($calendarId: ID!, $startDate: DateTime!, $endDate: DateTime!) {\n getBlackoutDates(calendarId: $calendarId, startDate: $startDate, endDate: $endDate) {\n id\n startDate\n endDate\n reason\n isRecurring\n recurrencePattern\n createdAt\n }\n }\n`;\n\nexport const EXTERNAL_SYNCS_QUERY = gql`\n query CalendarExternalSyncs($calendarId: ID!) {\n getExternalCalendarSyncs(calendarId: $calendarId) {\n id\n calendarId\n provider\n externalCalendarId\n externalCalendarName\n direction\n syncEnabled\n syncFrequency\n conflictResolution\n status\n lastSyncAt\n lastSyncStatus\n lastSyncError\n nextSyncAt\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const SHARE_CALENDAR_MUTATION = gql`\n mutation ShareCalendar(\n $calendarId: ID!\n $userId: String\n $teamId: String\n $canView: Boolean!\n $canEdit: Boolean!\n $canManage: Boolean!\n ) {\n shareCalendar(\n calendarId: $calendarId\n userId: $userId\n teamId: $teamId\n canView: $canView\n canEdit: $canEdit\n canManage: $canManage\n ) {\n id\n userId\n teamId\n canView\n canEdit\n canManage\n createdAt\n }\n }\n`;\n\nexport const REVOKE_CALENDAR_SHARE_MUTATION = gql`\n mutation RevokeCalendarShare($shareId: ID!) {\n revokeCalendarShare(shareId: $shareId)\n }\n`;\n\nexport const CREATE_AVAILABILITY_RULE_MUTATION = gql`\n mutation CreateAvailabilityRule($input: CreateAvailabilityRuleInput!) {\n createAvailabilityRule(input: $input) {\n id\n dayOfWeek\n isAvailable\n startTime\n endTime\n timezone\n bufferBefore\n bufferAfter\n slotIncrement\n minNotice\n maxNotice\n priority\n }\n }\n`;\n\nexport const DELETE_AVAILABILITY_RULE_MUTATION = gql`\n mutation DeleteAvailabilityRule($id: ID!) {\n deleteAvailabilityRule(id: $id)\n }\n`;\n\nexport const CREATE_BLACKOUT_DATE_MUTATION = gql`\n mutation CreateBlackoutDate($input: CreateBlackoutDateInput!) {\n createBlackoutDate(input: $input) {\n id\n startDate\n endDate\n reason\n isRecurring\n recurrencePattern\n createdAt\n }\n }\n`;\n\nexport const DELETE_BLACKOUT_DATE_MUTATION = gql`\n mutation DeleteBlackoutDate($id: ID!) {\n deleteBlackoutDate(id: $id)\n }\n`;\n\nexport const CREATE_BOOKING_PAGE_MUTATION = gql`\n mutation CreateBookingPage($input: CreateBookingPageInput!) {\n createBookingPage(input: $input) {\n id\n calendarId\n name\n slug\n pageType\n eventDuration\n isActive\n isPublic\n requireApproval\n maxAttendees\n }\n }\n`;\n\nexport const DELETE_BOOKING_PAGE_MUTATION = gql`\n mutation DeleteBookingPage($id: ID!) {\n deleteBookingPage(id: $id)\n }\n`;\n\nexport const CONNECT_EXTERNAL_CALENDAR_MUTATION = gql`\n mutation ConnectExternalCalendar($input: ConnectExternalCalendarInput!) {\n connectExternalCalendar(input: $input) {\n id\n provider\n externalCalendarId\n externalCalendarName\n direction\n syncEnabled\n syncFrequency\n conflictResolution\n status\n lastSyncStatus\n lastSyncError\n nextSyncAt\n }\n }\n`;\n\nexport const TRIGGER_SYNC_MUTATION = gql`\n mutation TriggerExternalCalendarSync($syncId: ID!) {\n triggerSync(syncId: $syncId) {\n id\n status\n lastSyncAt\n lastSyncStatus\n lastSyncError\n nextSyncAt\n }\n }\n`;\n\nexport const PAUSE_SYNC_MUTATION = gql`\n mutation PauseExternalCalendarSync($syncId: ID!) {\n pauseSync(syncId: $syncId) {\n id\n status\n syncEnabled\n }\n }\n`;\n\nexport const RESUME_SYNC_MUTATION = gql`\n mutation ResumeExternalCalendarSync($syncId: ID!) {\n resumeSync(syncId: $syncId) {\n id\n status\n syncEnabled\n }\n }\n`;\n\nexport const DISCONNECT_EXTERNAL_CALENDAR_MUTATION = gql`\n mutation DisconnectExternalCalendar($syncId: ID!) {\n disconnectExternalCalendar(syncId: $syncId)\n }\n`;\n\nexport const ADD_ATTENDEE_MUTATION = gql`\n mutation AddCalendarAttendee($eventId: ID!, $userId: String, $email: String, $name: String) {\n addAttendee(eventId: $eventId, userId: $userId, email: $email, name: $name) {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n }\n`;\n\nexport const REMOVE_ATTENDEE_MUTATION = gql`\n mutation RemoveCalendarAttendee($attendeeId: ID!) {\n removeAttendee(attendeeId: $attendeeId)\n }\n`;\n\nexport const RESPOND_TO_EVENT_MUTATION = gql`\n mutation RespondToCalendarEvent($eventId: ID!, $status: RSVPStatus!) {\n respondToEvent(eventId: $eventId, status: $status) {\n id\n userId\n email\n name\n rsvpStatus\n isOptional\n }\n }\n`;\n\nexport const CREATE_REMINDER_MUTATION = gql`\n mutation CreateCalendarReminder($input: CreateReminderInput!) {\n createReminder(input: $input) {\n id\n minutesBefore\n channel\n }\n }\n`;\n\nexport const DELETE_REMINDER_MUTATION = gql`\n mutation DeleteCalendarReminder($id: ID!) {\n deleteReminder(id: $id)\n }\n`;\n"],"mappings":";;AAWA,IAAaA,IAA8B,CAAG;;;;;;;;;;;;;;;GAiBjCC,IAA8B,CAAG;;;;;;;;;;;GAajCC,IAAwB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqE3BC,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgC1BC,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC5BC,IAA2B,CAAG;;;;;;;;;;;;;;;;;;GAoB9BC,IAAuB,CAAG;;;;;;;;;;;;GAc1BC,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;GAuB1BC,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;GA4B7BC,IAAiC,CAAG;;;;GAMpCC,IAAoC,CAAG;;;;;;;;;;;;;;;;;GAmBvCC,IAAoC,CAAG;;;;GAMvCC,IAAgC,CAAG;;;;;;;;;;;;GAcnCC,IAAgC,CAAG;;;;GAMnCC,IAA+B,CAAG;;;;;;;;;;;;;;;GAiBlCC,IAA+B,CAAG;;;;GAMlCC,IAAqC,CAAG;;;;;;;;;;;;;;;;;GAmBxCC,IAAwB,CAAG;;;;;;;;;;;GAa3BC,IAAsB,CAAG;;;;;;;;GAUzBC,IAAuB,CAAG;;;;;;;;GAU1BC,IAAwC,CAAG;;;;GAM3CC,IAAwB,CAAG;;;;;;;;;;;GAa3BC,IAA2B,CAAG;;;;GAM9BC,IAA4B,CAAG;;;;;;;;;;;GAa/BC,IAA2B,CAAG;;;;;;;;GAU9BC,IAA2B,CAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Calendar } from '../types';
|
|
2
|
-
|
|
3
2
|
export interface CalendarPermissions {
|
|
4
3
|
canRead: boolean;
|
|
5
4
|
canWrite: boolean;
|
|
@@ -11,4 +10,3 @@ export interface CalendarPermissions {
|
|
|
11
10
|
* Hook to check permissions for a calendar
|
|
12
11
|
*/
|
|
13
12
|
export declare function useCalendarPermissions(calendar: Calendar | null | undefined): CalendarPermissions;
|
|
14
|
-
//# sourceMappingURL=useCalendarPermissions.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCalendar as e } from "../providers/CalendarProvider.js";
|
|
2
2
|
import { useMemo as t } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useCalendarPermissions.ts
|
|
4
4
|
function n(n) {
|
|
5
5
|
let { currentUser: r } = e();
|
|
6
6
|
return t(() => {
|
|
@@ -42,7 +42,6 @@ function n(n) {
|
|
|
42
42
|
};
|
|
43
43
|
}, [n, r]);
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { n as useCalendarPermissions };
|
|
47
46
|
|
|
48
47
|
//# sourceMappingURL=useCalendarPermissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCalendarPermissions.js","names":[],"sources":["../../src/hooks/useCalendarPermissions.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport type { Calendar } from '../types';\nimport { useCalendar } from '../providers/CalendarProvider';\n\nexport interface CalendarPermissions {\n canRead: boolean;\n canWrite: boolean;\n canShare: boolean;\n canDelete: boolean;\n permissionLevel: 'owner' | 'admin' | 'edit' | 'view' | 'none';\n}\n\n/**\n * Hook to check permissions for a calendar\n */\nexport function useCalendarPermissions(calendar: Calendar | null | undefined): CalendarPermissions {\n const { currentUser } = useCalendar();\n\n return useMemo(() => {\n if (!calendar || !currentUser) {\n return {\n canRead: false,\n canWrite: false,\n canShare: false,\n canDelete: false,\n permissionLevel: 'none',\n };\n }\n\n const isOwner = calendar.ownerId === currentUser.id;\n const share = calendar.shares?.find((s) => s.userId === currentUser.id);\n\n if (isOwner) {\n return {\n canRead: true,\n canWrite: true,\n canShare: true,\n canDelete: true,\n permissionLevel: 'owner',\n };\n }\n\n if (!share) {\n // Check visibility\n if (calendar.visibility === 'PUBLIC') {\n return {\n canRead: true,\n canWrite: false,\n canShare: false,\n canDelete: false,\n permissionLevel: 'view',\n };\n }\n\n return {\n canRead: false,\n canWrite: false,\n canShare: false,\n canDelete: false,\n permissionLevel: 'none',\n };\n }\n\n const permission = share.permission;\n\n return {\n canRead: true,\n canWrite: permission === 'EDIT' || permission === 'ADMIN',\n canShare: permission === 'ADMIN',\n canDelete: false, // Only owner can delete\n permissionLevel: permission.toLowerCase() as 'admin' | 'edit' | 'view',\n };\n }, [calendar, currentUser]);\n}\n"],"mappings":";;;AAeA,
|
|
1
|
+
{"version":3,"file":"useCalendarPermissions.js","names":["useCalendarPermissions","useCalendar","useMemo","calendar","currentUser","isOwner","share","s","permission"],"sources":["../../src/hooks/useCalendarPermissions.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport type { Calendar } from '../types';\nimport { useCalendar } from '../providers/CalendarProvider';\n\nexport interface CalendarPermissions {\n canRead: boolean;\n canWrite: boolean;\n canShare: boolean;\n canDelete: boolean;\n permissionLevel: 'owner' | 'admin' | 'edit' | 'view' | 'none';\n}\n\n/**\n * Hook to check permissions for a calendar\n */\nexport function useCalendarPermissions(calendar: Calendar | null | undefined): CalendarPermissions {\n const { currentUser } = useCalendar();\n\n return useMemo(() => {\n if (!calendar || !currentUser) {\n return {\n canRead: false,\n canWrite: false,\n canShare: false,\n canDelete: false,\n permissionLevel: 'none',\n };\n }\n\n const isOwner = calendar.ownerId === currentUser.id;\n const share = calendar.shares?.find((s) => s.userId === currentUser.id);\n\n if (isOwner) {\n return {\n canRead: true,\n canWrite: true,\n canShare: true,\n canDelete: true,\n permissionLevel: 'owner',\n };\n }\n\n if (!share) {\n // Check visibility\n if (calendar.visibility === 'PUBLIC') {\n return {\n canRead: true,\n canWrite: false,\n canShare: false,\n canDelete: false,\n permissionLevel: 'view',\n };\n }\n\n return {\n canRead: false,\n canWrite: false,\n canShare: false,\n canDelete: false,\n permissionLevel: 'none',\n };\n }\n\n const permission = share.permission;\n\n return {\n canRead: true,\n canWrite: permission === 'EDIT' || permission === 'ADMIN',\n canShare: permission === 'ADMIN',\n canDelete: false, // Only owner can delete\n permissionLevel: permission.toLowerCase() as 'admin' | 'edit' | 'view',\n };\n }, [calendar, currentUser]);\n}\n"],"mappings":";;;AAeA,SAAgBA,EAAuB,GAA4D;CACjG,IAAM,EAAE,mBAAgBC,EAAY;CAEpC,OAAOC,QAAc;EACnB,IAAI,CAACC,KAAY,CAACC,GAChB,OAAO;GACL,SAAS;GACT,UAAU;GACV,UAAU;GACV,WAAW;GACX,iBAAiB;EACnB;EAGF,IAAMC,IAAUF,EAAS,YAAYC,EAAY,IAC3CE,IAAQH,EAAS,QAAQ,MAAM,MAAMI,EAAE,WAAWH,EAAY,EAAE;EAEtE,IAAIC,GACF,OAAO;GACL,SAAS;GACT,UAAU;GACV,UAAU;GACV,WAAW;GACX,iBAAiB;EACnB;EAGF,IAAI,CAACC,GAYH,OAVIH,EAAS,eAAe,WACnB;GACL,SAAS;GACT,UAAU;GACV,UAAU;GACV,WAAW;GACX,iBAAiB;EACnB,IAGK;GACL,SAAS;GACT,UAAU;GACV,UAAU;GACV,WAAW;GACX,iBAAiB;EACnB;EAGF,IAAMK,IAAaF,EAAM;EAEzB,OAAO;GACL,SAAS;GACT,UAAUE,MAAe,UAAUA,MAAe;GAClD,UAAUA,MAAe;GACzB,WAAW;GACX,iBAAiBA,EAAW,YAAY;EAC1C;CACF,GAAG,CAACL,GAAUC,CAAW,CAAC;AAC5B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CalendarEvent, Calendar } from '../types';
|
|
2
|
-
|
|
3
2
|
export interface EventPermissions {
|
|
4
3
|
canEdit: boolean;
|
|
5
4
|
canDelete: boolean;
|
|
@@ -12,4 +11,3 @@ export interface EventPermissions {
|
|
|
12
11
|
* Hook to check permissions for a calendar event
|
|
13
12
|
*/
|
|
14
13
|
export declare function useEventPermissions(event: CalendarEvent | null | undefined, calendar?: Calendar | null): EventPermissions;
|
|
15
|
-
//# sourceMappingURL=useEventPermissions.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCalendar as e } from "../providers/CalendarProvider.js";
|
|
2
2
|
import { useCalendarPermissions as t } from "./useCalendarPermissions.js";
|
|
3
3
|
import { useMemo as n } from "react";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useEventPermissions.ts
|
|
5
5
|
function r(r, i) {
|
|
6
6
|
let { currentUser: a } = e(), o = t(i);
|
|
7
7
|
return n(() => {
|
|
@@ -28,7 +28,6 @@ function r(r, i) {
|
|
|
28
28
|
o
|
|
29
29
|
]);
|
|
30
30
|
}
|
|
31
|
-
//#endregion
|
|
32
31
|
export { r as useEventPermissions };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=useEventPermissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEventPermissions.js","names":[],"sources":["../../src/hooks/useEventPermissions.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport type { CalendarEvent, Calendar } from '../types';\nimport { useCalendar } from '../providers/CalendarProvider';\nimport { useCalendarPermissions } from './useCalendarPermissions';\n\nexport interface EventPermissions {\n canEdit: boolean;\n canDelete: boolean;\n canManageAttendees: boolean;\n canRSVP: boolean;\n canViewAttendees: boolean;\n canSetReminders: boolean;\n}\n\n/**\n * Hook to check permissions for a calendar event\n */\nexport function useEventPermissions(\n event: CalendarEvent | null | undefined,\n calendar?: Calendar | null\n): EventPermissions {\n const { currentUser } = useCalendar();\n const calendarPerms = useCalendarPermissions(calendar);\n\n return useMemo(() => {\n if (!event || !currentUser) {\n return {\n canEdit: false,\n canDelete: false,\n canManageAttendees: false,\n canRSVP: false,\n canViewAttendees: false,\n canSetReminders: false,\n };\n }\n\n const isOrganizer = event.organizerId === currentUser.id;\n const isAttendee = event.attendees?.some((a) => a.userId === currentUser.id) ?? false;\n\n return {\n canEdit: isOrganizer || calendarPerms.canWrite,\n canDelete: isOrganizer || calendarPerms.canShare,\n canManageAttendees: isOrganizer || calendarPerms.canWrite,\n canRSVP: isAttendee,\n canViewAttendees: isOrganizer || isAttendee || event.privacy === 'PUBLIC',\n canSetReminders: isAttendee,\n };\n }, [event, currentUser, calendarPerms]);\n}\n"],"mappings":";;;;AAiBA,
|
|
1
|
+
{"version":3,"file":"useEventPermissions.js","names":["useEventPermissions","useCalendar","calendarPerms","useCalendarPermissions","calendar","useMemo","event","currentUser","isOrganizer","isAttendee","a"],"sources":["../../src/hooks/useEventPermissions.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport type { CalendarEvent, Calendar } from '../types';\nimport { useCalendar } from '../providers/CalendarProvider';\nimport { useCalendarPermissions } from './useCalendarPermissions';\n\nexport interface EventPermissions {\n canEdit: boolean;\n canDelete: boolean;\n canManageAttendees: boolean;\n canRSVP: boolean;\n canViewAttendees: boolean;\n canSetReminders: boolean;\n}\n\n/**\n * Hook to check permissions for a calendar event\n */\nexport function useEventPermissions(\n event: CalendarEvent | null | undefined,\n calendar?: Calendar | null\n): EventPermissions {\n const { currentUser } = useCalendar();\n const calendarPerms = useCalendarPermissions(calendar);\n\n return useMemo(() => {\n if (!event || !currentUser) {\n return {\n canEdit: false,\n canDelete: false,\n canManageAttendees: false,\n canRSVP: false,\n canViewAttendees: false,\n canSetReminders: false,\n };\n }\n\n const isOrganizer = event.organizerId === currentUser.id;\n const isAttendee = event.attendees?.some((a) => a.userId === currentUser.id) ?? false;\n\n return {\n canEdit: isOrganizer || calendarPerms.canWrite,\n canDelete: isOrganizer || calendarPerms.canShare,\n canManageAttendees: isOrganizer || calendarPerms.canWrite,\n canRSVP: isAttendee,\n canViewAttendees: isOrganizer || isAttendee || event.privacy === 'PUBLIC',\n canSetReminders: isAttendee,\n };\n }, [event, currentUser, calendarPerms]);\n}\n"],"mappings":";;;;AAiBA,SAAgBA,EACd,GACA,GACkB;CAClB,IAAM,EAAE,mBAAgBC,EAAY,GAC9BC,IAAgBC,EAAuBC,CAAQ;CAErD,OAAOC,QAAc;EACnB,IAAI,CAACC,KAAS,CAACC,GACb,OAAO;GACL,SAAS;GACT,WAAW;GACX,oBAAoB;GACpB,SAAS;GACT,kBAAkB;GAClB,iBAAiB;EACnB;EAGF,IAAMC,IAAcF,EAAM,gBAAgBC,EAAY,IAChDE,IAAaH,EAAM,WAAW,MAAM,MAAMI,EAAE,WAAWH,EAAY,EAAE,KAAK;EAEhF,OAAO;GACL,SAASC,KAAeN,EAAc;GACtC,WAAWM,KAAeN,EAAc;GACxC,oBAAoBM,KAAeN,EAAc;GACjD,SAASO;GACT,kBAAkBD,KAAeC,KAAcH,EAAM,YAAY;GACjE,iBAAiBG;EACnB;CACF,GAAG;EAACH;EAAOC;EAAaL;CAAa,CAAC;AACxC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CalendarEvent } from '../types';
|
|
2
|
-
|
|
3
2
|
interface UseEventsOptions {
|
|
4
3
|
startDate: Date;
|
|
5
4
|
endDate: Date;
|
|
@@ -12,4 +11,3 @@ export declare function useEvents({ startDate, endDate, skip }: UseEventsOptions
|
|
|
12
11
|
refetch: () => Promise<void>;
|
|
13
12
|
};
|
|
14
13
|
export {};
|
|
15
|
-
//# sourceMappingURL=useEvents.d.ts.map
|
package/dist/hooks/useEvents.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useGetCalendarsQuery as e } from "../generated/wspace-operations.js";
|
|
2
|
+
import { useCalendar as t } from "../providers/CalendarProvider.js";
|
|
3
3
|
import { useCalendarStore as n } from "../store/calendarStore.js";
|
|
4
4
|
import { EVENTS_IN_RANGE_QUERY as r, PLANMAGNET_MILESTONES_QUERY as i, PLANMAGNET_WORK_ITEMS_QUERY as a, SCHEDULED_JOBS_QUERY as o } from "../graphql/calendarDocuments.js";
|
|
5
5
|
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
6
6
|
import { useApolloClient as u } from "@apollo/client/react";
|
|
7
|
-
|
|
7
|
+
// src/hooks/useEvents.ts
|
|
8
8
|
var d = 300;
|
|
9
9
|
function f(e) {
|
|
10
10
|
return e ? e.reduce((e, t, n) => {
|
|
@@ -81,7 +81,7 @@ function p(e) {
|
|
|
81
81
|
function m(e) {
|
|
82
82
|
let t = e.nextExecutionAt ?? e.scheduledAt ?? e.lastExecutionAt;
|
|
83
83
|
if (!t) return null;
|
|
84
|
-
let n = new Date(t), r = new Date(n.getTime() +
|
|
84
|
+
let n = new Date(t), r = new Date(n.getTime() + 18e5), i = e.status === "CANCELLED" || e.status === "FAILED" || e.status === "DISABLED" ? "CANCELLED" : e.status === "PAUSED" ? "TENTATIVE" : "CONFIRMED";
|
|
85
85
|
return {
|
|
86
86
|
id: `scheduler-${e.id}`,
|
|
87
87
|
calendarId: "__scheduler__",
|
|
@@ -109,7 +109,7 @@ function m(e) {
|
|
|
109
109
|
updatedAt: new Date(e.updatedAt)
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
var h = new Set(["DONE", "CANCELLED"]), g = new Set(["COMPLETED", "CANCELLED"]);
|
|
112
|
+
var h = /* @__PURE__ */ new Set(["DONE", "CANCELLED"]), g = /* @__PURE__ */ new Set(["COMPLETED", "CANCELLED"]);
|
|
113
113
|
function _(e) {
|
|
114
114
|
if (!e) return null;
|
|
115
115
|
let t = /^(\d{4})-(\d{2})-(\d{2})/.exec(e);
|
|
@@ -202,7 +202,7 @@ function b(e, t) {
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
function x({ startDate: f, endDate: h, skip: g = !1 }) {
|
|
205
|
-
let _ = u(), { workspaceId: x, taskOverlay: S } =
|
|
205
|
+
let _ = u(), { workspaceId: x, taskOverlay: S } = t(), C = n((e) => e.visibleCalendars), w = n((e) => e.eventFilter), { data: T, loading: E, refetch: D } = e({
|
|
206
206
|
variables: { pagination: { limit: 50 } },
|
|
207
207
|
skip: g,
|
|
208
208
|
fetchPolicy: "cache-and-network"
|
|
@@ -302,7 +302,6 @@ function x({ startDate: f, endDate: h, skip: g = !1 }) {
|
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
-
//#endregion
|
|
306
305
|
export { x as useEvents };
|
|
307
306
|
|
|
308
307
|
//# sourceMappingURL=useEvents.js.map
|