Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show subspace events in Space #7158

Merged
merged 13 commits into from
Nov 11, 2024
6 changes: 6 additions & 0 deletions src/core/apollo/generated/apollo-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,10 @@ export type CalendarEventKeySpecifier = (
| 'nameID'
| 'profile'
| 'startDate'
| 'subspace'
| 'type'
| 'updatedDate'
| 'visibleOnParentCalendar'
| 'wholeDay'
| CalendarEventKeySpecifier
)[];
Expand All @@ -720,8 +722,10 @@ export type CalendarEventFieldPolicy = {
nameID?: FieldPolicy<any> | FieldReadFunction<any>;
profile?: FieldPolicy<any> | FieldReadFunction<any>;
startDate?: FieldPolicy<any> | FieldReadFunction<any>;
subspace?: FieldPolicy<any> | FieldReadFunction<any>;
type?: FieldPolicy<any> | FieldReadFunction<any>;
updatedDate?: FieldPolicy<any> | FieldReadFunction<any>;
visibleOnParentCalendar?: FieldPolicy<any> | FieldReadFunction<any>;
wholeDay?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type CalloutKeySpecifier = (
Expand Down Expand Up @@ -3130,12 +3134,14 @@ export type SpaceSettingsFieldPolicy = {
privacy?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type SpaceSettingsCollaborationKeySpecifier = (
| 'allowEventsFromSubspaces'
| 'allowMembersToCreateCallouts'
| 'allowMembersToCreateSubspaces'
| 'inheritMembershipRights'
| SpaceSettingsCollaborationKeySpecifier
)[];
export type SpaceSettingsCollaborationFieldPolicy = {
allowEventsFromSubspaces?: FieldPolicy<any> | FieldReadFunction<any>;
allowMembersToCreateCallouts?: FieldPolicy<any> | FieldReadFunction<any>;
allowMembersToCreateSubspaces?: FieldPolicy<any> | FieldReadFunction<any>;
inheritMembershipRights?: FieldPolicy<any> | FieldReadFunction<any>;
Expand Down
25 changes: 19 additions & 6 deletions src/core/apollo/generated/apollo-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2393,6 +2393,7 @@ export const SpaceSettingsFragmentDoc = gql`
allowMembersToCreateCallouts
allowMembersToCreateSubspaces
inheritMembershipRights
allowEventsFromSubspaces
}
}
`;
Expand Down Expand Up @@ -2977,9 +2978,17 @@ export const CalendarEventInfoFragmentDoc = gql`
durationMinutes
wholeDay
multipleDays
visibleOnParentCalendar
profile {
...EventProfile
}
subspace @include(if: $includeSubspace) {
id
profile {
id
displayName
}
}
}
${EventProfileFragmentDoc}
`;
Expand All @@ -2994,7 +3003,7 @@ export const CollaborationTimelineInfoFragmentDoc = gql`
id
myPrivileges
}
events(limit: $limit) {
events {
...CalendarEventInfo
}
}
Expand Down Expand Up @@ -17379,6 +17388,7 @@ export const UpdateSpaceSettingsDocument = gql`
allowMembersToCreateCallouts
allowMembersToCreateSubspaces
inheritMembershipRights
allowEventsFromSubspaces
}
}
}
Expand Down Expand Up @@ -21097,7 +21107,7 @@ export function refetchCreatePostInputQuery(variables: SchemaTypes.CreatePostInp
}

export const SpaceCalendarEventsDocument = gql`
query SpaceCalendarEvents($spaceId: UUID!, $limit: Float) {
query SpaceCalendarEvents($spaceId: UUID!, $includeSubspace: Boolean = false) {
lookup {
space(ID: $spaceId) {
id
Expand All @@ -21123,7 +21133,7 @@ export const SpaceCalendarEventsDocument = gql`
* const { data, loading, error } = useSpaceCalendarEventsQuery({
* variables: {
* spaceId: // value for 'spaceId'
* limit: // value for 'limit'
* includeSubspace: // value for 'includeSubspace'
* },
* });
*/
Expand Down Expand Up @@ -21164,7 +21174,7 @@ export function refetchSpaceCalendarEventsQuery(variables: SchemaTypes.SpaceCale
}

export const CalendarEventDetailsDocument = gql`
query calendarEventDetails($eventId: UUID!) {
query calendarEventDetails($eventId: UUID!, $includeSubspace: Boolean = false) {
lookup {
calendarEvent(ID: $eventId) {
...CalendarEventDetails
Expand All @@ -21187,6 +21197,7 @@ export const CalendarEventDetailsDocument = gql`
* const { data, loading, error } = useCalendarEventDetailsQuery({
* variables: {
* eventId: // value for 'eventId'
* includeSubspace: // value for 'includeSubspace'
* },
* });
*/
Expand Down Expand Up @@ -21227,7 +21238,7 @@ export function refetchCalendarEventDetailsQuery(variables: SchemaTypes.Calendar
}

export const CreateCalendarEventDocument = gql`
mutation createCalendarEvent($eventData: CreateCalendarEventOnCalendarInput!) {
mutation createCalendarEvent($eventData: CreateCalendarEventOnCalendarInput!, $includeSubspace: Boolean = false) {
createEventOnCalendar(eventData: $eventData) {
...CalendarEventDetails
}
Expand All @@ -21253,6 +21264,7 @@ export type CreateCalendarEventMutationFn = Apollo.MutationFunction<
* const [createCalendarEventMutation, { data, loading, error }] = useCreateCalendarEventMutation({
* variables: {
* eventData: // value for 'eventData'
* includeSubspace: // value for 'includeSubspace'
* },
* });
*/
Expand All @@ -21276,7 +21288,7 @@ export type CreateCalendarEventMutationOptions = Apollo.BaseMutationOptions<
SchemaTypes.CreateCalendarEventMutationVariables
>;
export const UpdateCalendarEventDocument = gql`
mutation updateCalendarEvent($eventData: UpdateCalendarEventInput!) {
mutation updateCalendarEvent($eventData: UpdateCalendarEventInput!, $includeSubspace: Boolean = false) {
updateCalendarEvent(eventData: $eventData) {
...CalendarEventDetails
}
Expand All @@ -21302,6 +21314,7 @@ export type UpdateCalendarEventMutationFn = Apollo.MutationFunction<
* const [updateCalendarEventMutation, { data, loading, error }] = useUpdateCalendarEventMutation({
* variables: {
* eventData: // value for 'eventData'
* includeSubspace: // value for 'includeSubspace'
* },
* });
*/
Expand Down
Loading