diff --git a/src/core/apollo/generated/apollo-helpers.ts b/src/core/apollo/generated/apollo-helpers.ts index 82c2a585ac..b3b01fc9a2 100644 --- a/src/core/apollo/generated/apollo-helpers.ts +++ b/src/core/apollo/generated/apollo-helpers.ts @@ -901,6 +901,19 @@ export type CommunityGuidelinesFieldPolicy = { id?: FieldPolicy | FieldReadFunction; profile?: FieldPolicy | FieldReadFunction; }; +export type CommunityGuidelinesTemplateKeySpecifier = ( + | 'authorization' + | 'guidelines' + | 'id' + | 'profile' + | CommunityGuidelinesTemplateKeySpecifier +)[]; +export type CommunityGuidelinesTemplateFieldPolicy = { + authorization?: FieldPolicy | FieldReadFunction; + guidelines?: FieldPolicy | FieldReadFunction; + id?: FieldPolicy | FieldReadFunction; + profile?: FieldPolicy | FieldReadFunction; +}; export type CommunityPolicyKeySpecifier = ('admin' | 'id' | 'lead' | 'member' | CommunityPolicyKeySpecifier)[]; export type CommunityPolicyFieldPolicy = { admin?: FieldPolicy | FieldReadFunction; @@ -954,6 +967,21 @@ export type ContextFieldPolicy = { vision?: FieldPolicy | FieldReadFunction; who?: FieldPolicy | FieldReadFunction; }; +export type ContributorKeySpecifier = ( + | 'agent' + | 'authorization' + | 'id' + | 'nameID' + | 'profile' + | ContributorKeySpecifier +)[]; +export type ContributorFieldPolicy = { + agent?: FieldPolicy | FieldReadFunction; + authorization?: FieldPolicy | FieldReadFunction; + id?: FieldPolicy | FieldReadFunction; + nameID?: FieldPolicy | FieldReadFunction; + profile?: FieldPolicy | FieldReadFunction; +}; export type ContributorRolesKeySpecifier = ( | 'applications' | 'id' @@ -1400,6 +1428,8 @@ export type LookupQueryResultsKeySpecifier = ( | 'calloutTemplate' | 'collaboration' | 'community' + | 'communityGuidelines' + | 'communityGuidelinesTemplate' | 'context' | 'document' | 'innovationFlow' @@ -1424,6 +1454,8 @@ export type LookupQueryResultsFieldPolicy = { calloutTemplate?: FieldPolicy | FieldReadFunction; collaboration?: FieldPolicy | FieldReadFunction; community?: FieldPolicy | FieldReadFunction; + communityGuidelines?: FieldPolicy | FieldReadFunction; + communityGuidelinesTemplate?: FieldPolicy | FieldReadFunction; context?: FieldPolicy | FieldReadFunction; document?: FieldPolicy | FieldReadFunction; innovationFlow?: FieldPolicy | FieldReadFunction; @@ -1506,6 +1538,7 @@ export type MutationKeySpecifier = ( | 'createActorGroup' | 'createCalloutOnCollaboration' | 'createCalloutTemplate' + | 'createCommunityGuidelinesTemplate' | 'createContributionOnCallout' | 'createDiscussion' | 'createEventOnCalendar' @@ -1665,6 +1698,7 @@ export type MutationFieldPolicy = { createActorGroup?: FieldPolicy | FieldReadFunction; createCalloutOnCollaboration?: FieldPolicy | FieldReadFunction; createCalloutTemplate?: FieldPolicy | FieldReadFunction; + createCommunityGuidelinesTemplate?: FieldPolicy | FieldReadFunction; createContributionOnCallout?: FieldPolicy | FieldReadFunction; createDiscussion?: FieldPolicy | FieldReadFunction; createEventOnCalendar?: FieldPolicy | FieldReadFunction; @@ -2246,60 +2280,6 @@ export type RelayPaginatedSpacePageInfoFieldPolicy = { hasPreviousPage?: FieldPolicy | FieldReadFunction; startCursor?: FieldPolicy | FieldReadFunction; }; -export type RelayPaginatedUserKeySpecifier = ( - | 'accountUpn' - | 'agent' - | 'authorization' - | 'communityRooms' - | 'directRooms' - | 'email' - | 'firstName' - | 'gender' - | 'id' - | 'isContactable' - | 'lastName' - | 'nameID' - | 'phone' - | 'preferences' - | 'profile' - | 'storageAggregator' - | RelayPaginatedUserKeySpecifier -)[]; -export type RelayPaginatedUserFieldPolicy = { - accountUpn?: FieldPolicy | FieldReadFunction; - agent?: FieldPolicy | FieldReadFunction; - authorization?: FieldPolicy | FieldReadFunction; - communityRooms?: FieldPolicy | FieldReadFunction; - directRooms?: FieldPolicy | FieldReadFunction; - email?: FieldPolicy | FieldReadFunction; - firstName?: FieldPolicy | FieldReadFunction; - gender?: FieldPolicy | FieldReadFunction; - id?: FieldPolicy | FieldReadFunction; - isContactable?: FieldPolicy | FieldReadFunction; - lastName?: FieldPolicy | FieldReadFunction; - nameID?: FieldPolicy | FieldReadFunction; - phone?: FieldPolicy | FieldReadFunction; - preferences?: FieldPolicy | FieldReadFunction; - profile?: FieldPolicy | FieldReadFunction; - storageAggregator?: FieldPolicy | FieldReadFunction; -}; -export type RelayPaginatedUserEdgeKeySpecifier = ('node' | RelayPaginatedUserEdgeKeySpecifier)[]; -export type RelayPaginatedUserEdgeFieldPolicy = { - node?: FieldPolicy | FieldReadFunction; -}; -export type RelayPaginatedUserPageInfoKeySpecifier = ( - | 'endCursor' - | 'hasNextPage' - | 'hasPreviousPage' - | 'startCursor' - | RelayPaginatedUserPageInfoKeySpecifier -)[]; -export type RelayPaginatedUserPageInfoFieldPolicy = { - endCursor?: FieldPolicy | FieldReadFunction; - hasNextPage?: FieldPolicy | FieldReadFunction; - hasPreviousPage?: FieldPolicy | FieldReadFunction; - startCursor?: FieldPolicy | FieldReadFunction; -}; export type RolesResultKeySpecifier = ('displayName' | 'id' | 'nameID' | 'roles' | RolesResultKeySpecifier)[]; export type RolesResultFieldPolicy = { displayName?: FieldPolicy | FieldReadFunction; @@ -2758,6 +2738,10 @@ export type TaskFieldPolicy = { export type TemplatesSetKeySpecifier = ( | 'authorization' | 'calloutTemplates' + | 'calloutTemplatesCount' + | 'communityGuidelinesTemplate' + | 'communityGuidelinesTemplates' + | 'communityGuidelinesTemplatesCount' | 'id' | 'innovationFlowTemplate' | 'innovationFlowTemplates' @@ -2773,6 +2757,10 @@ export type TemplatesSetKeySpecifier = ( export type TemplatesSetFieldPolicy = { authorization?: FieldPolicy | FieldReadFunction; calloutTemplates?: FieldPolicy | FieldReadFunction; + calloutTemplatesCount?: FieldPolicy | FieldReadFunction; + communityGuidelinesTemplate?: FieldPolicy | FieldReadFunction; + communityGuidelinesTemplates?: FieldPolicy | FieldReadFunction; + communityGuidelinesTemplatesCount?: FieldPolicy | FieldReadFunction; id?: FieldPolicy | FieldReadFunction; innovationFlowTemplate?: FieldPolicy | FieldReadFunction; innovationFlowTemplates?: FieldPolicy | FieldReadFunction; @@ -3260,6 +3248,13 @@ export type StrictTypedTypePolicies = { keyFields?: false | CommunityGuidelinesKeySpecifier | (() => undefined | CommunityGuidelinesKeySpecifier); fields?: CommunityGuidelinesFieldPolicy; }; + CommunityGuidelinesTemplate?: Omit & { + keyFields?: + | false + | CommunityGuidelinesTemplateKeySpecifier + | (() => undefined | CommunityGuidelinesTemplateKeySpecifier); + fields?: CommunityGuidelinesTemplateFieldPolicy; + }; CommunityPolicy?: Omit & { keyFields?: false | CommunityPolicyKeySpecifier | (() => undefined | CommunityPolicyKeySpecifier); fields?: CommunityPolicyFieldPolicy; @@ -3276,6 +3271,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | ContextKeySpecifier | (() => undefined | ContextKeySpecifier); fields?: ContextFieldPolicy; }; + Contributor?: Omit & { + keyFields?: false | ContributorKeySpecifier | (() => undefined | ContributorKeySpecifier); + fields?: ContributorFieldPolicy; + }; ContributorRoles?: Omit & { keyFields?: false | ContributorRolesKeySpecifier | (() => undefined | ContributorRolesKeySpecifier); fields?: ContributorRolesFieldPolicy; @@ -3549,21 +3548,6 @@ export type StrictTypedTypePolicies = { | (() => undefined | RelayPaginatedSpacePageInfoKeySpecifier); fields?: RelayPaginatedSpacePageInfoFieldPolicy; }; - RelayPaginatedUser?: Omit & { - keyFields?: false | RelayPaginatedUserKeySpecifier | (() => undefined | RelayPaginatedUserKeySpecifier); - fields?: RelayPaginatedUserFieldPolicy; - }; - RelayPaginatedUserEdge?: Omit & { - keyFields?: false | RelayPaginatedUserEdgeKeySpecifier | (() => undefined | RelayPaginatedUserEdgeKeySpecifier); - fields?: RelayPaginatedUserEdgeFieldPolicy; - }; - RelayPaginatedUserPageInfo?: Omit & { - keyFields?: - | false - | RelayPaginatedUserPageInfoKeySpecifier - | (() => undefined | RelayPaginatedUserPageInfoKeySpecifier); - fields?: RelayPaginatedUserPageInfoFieldPolicy; - }; RolesResult?: Omit & { keyFields?: false | RolesResultKeySpecifier | (() => undefined | RolesResultKeySpecifier); fields?: RolesResultFieldPolicy; diff --git a/src/core/apollo/generated/apollo-hooks.ts b/src/core/apollo/generated/apollo-hooks.ts index 8c926b38e4..d18cb1a41a 100644 --- a/src/core/apollo/generated/apollo-hooks.ts +++ b/src/core/apollo/generated/apollo-hooks.ts @@ -582,25 +582,36 @@ export const ReactionDetailsFragmentDoc = gql` } } `; -export const SenderProfileFragmentDoc = gql` - fragment SenderProfile on Profile { +export const VisualUriFragmentDoc = gql` + fragment VisualUri on Visual { id - displayName - url - type - avatar: visual(type: AVATAR) { - id - uri - } - tagsets { - ...TagsetDetails - } - location { + uri + name + } +`; +export const ContributorDetailsFragmentDoc = gql` + fragment ContributorDetails on Contributor { + id + nameID + profile { id - city - country + displayName + url + avatar: visual(type: AVATAR) { + ...VisualUri + } + description + tagsets { + ...TagsetDetails + } + location { + id + country + city + } } } + ${VisualUriFragmentDoc} ${TagsetDetailsFragmentDoc} `; export const MessageDetailsFragmentDoc = gql` @@ -613,22 +624,11 @@ export const MessageDetailsFragmentDoc = gql` } threadID sender { - ... on User { - id - profile { - ...SenderProfile - } - } - ... on VirtualContributor { - id - profile { - ...SenderProfile - } - } + ...ContributorDetails } } ${ReactionDetailsFragmentDoc} - ${SenderProfileFragmentDoc} + ${ContributorDetailsFragmentDoc} `; export const CommentsWithMessagesFragmentDoc = gql` fragment CommentsWithMessages on Room { @@ -704,13 +704,6 @@ export const CalloutDetailsFragmentDoc = gql` ${LinkDetailsWithAuthorizationFragmentDoc} ${CommentsWithMessagesFragmentDoc} `; -export const VisualUriFragmentDoc = gql` - fragment VisualUri on Visual { - id - uri - name - } -`; export const WhiteboardCollectionCalloutCardFragmentDoc = gql` fragment WhiteboardCollectionCalloutCard on Whiteboard { id @@ -2307,21 +2300,6 @@ export const SpaceInfoFragmentDoc = gql` } ${SpaceDetailsFragmentDoc} `; -export const SpaceWelcomeBlockContributorProfileFragmentDoc = gql` - fragment SpaceWelcomeBlockContributorProfile on Profile { - id - displayName - location { - id - city - country - } - tagsets { - id - tags - } - } -`; export const DashboardTopCalloutFragmentDoc = gql` fragment DashboardTopCallout on Callout { id @@ -2383,6 +2361,21 @@ export const EntityDashboardCommunityFragmentDoc = gql` ${AssociatedOrganizationDetailsFragmentDoc} ${DashboardContributingOrganizationFragmentDoc} `; +export const SpaceWelcomeBlockContributorProfileFragmentDoc = gql` + fragment SpaceWelcomeBlockContributorProfile on Profile { + id + displayName + location { + id + city + country + } + tagsets { + id + tags + } + } +`; export const SpacePageFragmentDoc = gql` fragment SpacePage on Space { id @@ -2390,10 +2383,7 @@ export const SpacePageFragmentDoc = gql` account { id host { - ...AssociatedOrganizationDetails - profile { - ...SpaceWelcomeBlockContributorProfile - } + ...ContributorDetails } } metrics { @@ -2446,13 +2436,13 @@ export const SpacePageFragmentDoc = gql` } } } - ${AssociatedOrganizationDetailsFragmentDoc} - ${SpaceWelcomeBlockContributorProfileFragmentDoc} + ${ContributorDetailsFragmentDoc} ${VisualUriFragmentDoc} ${TagsetDetailsFragmentDoc} ${DashboardTopCalloutsFragmentDoc} ${DashboardTimelineAuthorizationFragmentDoc} ${EntityDashboardCommunityFragmentDoc} + ${SpaceWelcomeBlockContributorProfileFragmentDoc} `; export const SubspacePageFragmentDoc = gql` fragment SubspacePage on Space { @@ -6173,6 +6163,7 @@ export const CreatePostFromContributeTabDocument = gql` id displayName description + url tagset { ...TagsetDetails } @@ -10406,7 +10397,7 @@ export const CommunityMembersListDocument = gql` space(ID: $spaceId) @include(if: $includeSpaceHost) { account { host { - ...OrganizationDetails + ...ContributorDetails } } } @@ -10415,7 +10406,7 @@ export const CommunityMembersListDocument = gql` } } } - ${OrganizationDetailsFragmentDoc} + ${ContributorDetailsFragmentDoc} ${CommunityMembersDetailsFragmentDoc} `; @@ -14530,8 +14521,9 @@ export const AboutPageNonMembersDocument = gql` } } account { + id host { - ...AssociatedOrganizationDetails + ...ContributorDetails } } metrics { @@ -14565,7 +14557,7 @@ export const AboutPageNonMembersDocument = gql` } ${TagsetDetailsFragmentDoc} ${VisualFullFragmentDoc} - ${AssociatedOrganizationDetailsFragmentDoc} + ${ContributorDetailsFragmentDoc} ${MetricsItemFragmentDoc} ${ContextTabFragmentDoc} `; @@ -14783,7 +14775,7 @@ export const JourneyDataDocument = gql` account { id host { - ...AssociatedOrganizationDetails + ...ContributorDetails } } } @@ -14793,7 +14785,7 @@ export const JourneyDataDocument = gql` ${ContextJourneyDataFragmentDoc} ${JourneyCommunityFragmentDoc} ${MetricsItemFragmentDoc} - ${AssociatedOrganizationDetailsFragmentDoc} + ${ContributorDetailsFragmentDoc} `; /** @@ -15278,7 +15270,7 @@ export const SpaceCommunityPageDocument = gql` account { id host { - ...AssociatedOrganizationDetails + ...ContributorDetails } } community { @@ -15289,7 +15281,7 @@ export const SpaceCommunityPageDocument = gql` } } } - ${AssociatedOrganizationDetailsFragmentDoc} + ${ContributorDetailsFragmentDoc} ${CommunityPageCommunityFragmentDoc} `; diff --git a/src/core/apollo/generated/graphql-schema.ts b/src/core/apollo/generated/graphql-schema.ts index 0f30eab952..c3b47b0f1d 100644 --- a/src/core/apollo/generated/graphql-schema.ts +++ b/src/core/apollo/generated/graphql-schema.ts @@ -43,7 +43,7 @@ export type Account = { /** The defaults in use by this Account */ defaults?: Maybe; /** The Account host. */ - host?: Maybe; + host?: Maybe; /** The ID of the entity */ id: Scalars['UUID']; /** The Library in use by this Account */ @@ -709,7 +709,6 @@ export enum AuthorizationPrivilege { AccessDashboardRefresh = 'ACCESS_DASHBOARD_REFRESH', AccessInteractiveGuidance = 'ACCESS_INTERACTIVE_GUIDANCE', AccessVirtualContributor = 'ACCESS_VIRTUAL_CONTRIBUTOR', - Admin = 'ADMIN', AuthorizationReset = 'AUTHORIZATION_RESET', CommunityAddMember = 'COMMUNITY_ADD_MEMBER', CommunityApply = 'COMMUNITY_APPLY', @@ -1246,6 +1245,18 @@ export type CommunityGuidelines = { profile: Profile; }; +export type CommunityGuidelinesTemplate = { + __typename?: 'CommunityGuidelinesTemplate'; + /** The authorization rules for the entity */ + authorization?: Maybe; + /** The community guidelines. */ + guidelines: CommunityGuidelines; + /** The ID of the entity */ + id: Scalars['UUID']; + /** The Profile for this template. */ + profile: Profile; +}; + export type CommunityJoinInput = { communityID: Scalars['UUID']; }; @@ -1341,6 +1352,19 @@ export type Context = { who?: Maybe; }; +export type Contributor = { + /** The Agent for the Contributor. */ + agent: Agent; + /** The authorization rules for the Contributor */ + authorization?: Maybe; + /** The ID of the Contributor */ + id: Scalars['UUID']; + /** A name identifier of the Contributor, unique within a given scope. */ + nameID: Scalars['NameID']; + /** The profile for the Contributor. */ + profile: Profile; +}; + export type ContributorFilterInput = { /** Return contributors with credentials in the provided list */ credentials?: InputMaybe>; @@ -1378,7 +1402,7 @@ export type ConvertSubsubspaceToSubspaceInput = { }; export type CreateAccountInput = { - /** The host Organization for the account */ + /** The host Organization or User for the account */ hostID: Scalars['UUID_NAMEID']; /** The root Space to be created. */ spaceData: CreateSpaceInput; @@ -1457,6 +1481,7 @@ export type CreateCalloutTemplateOnTemplatesSetInput = { contributionDefaults: CreateCalloutContributionDefaultsInput; contributionPolicy: CreateCalloutContributionPolicyInput; framing: CreateCalloutFramingInput; + /** The profile of the template. */ profile: CreateProfileInput; tags?: InputMaybe>; templatesSetID: Scalars['UUID']; @@ -1474,6 +1499,22 @@ export type CreateCollaborationInput = { innovationFlowTemplateID?: InputMaybe; }; +export type CreateCommunityGuidelinesInput = { + profile: CreateProfileInput; +}; + +export type CreateCommunityGuidelinesTemplateOnTemplatesSetInput = { + /** The Community guidelines to associate with this template. */ + communityGuidelines?: InputMaybe; + /** The ID of the Community guidelines to associate with this template. */ + communityGuidelinesID?: InputMaybe; + /** The profile of the template. */ + profile: CreateProfileInput; + tags?: InputMaybe>; + templatesSetID: Scalars['UUID']; + visualUri?: InputMaybe; +}; + export type CreateContextInput = { impact?: InputMaybe; vision?: InputMaybe; @@ -1488,6 +1529,7 @@ export type CreateContributionOnCalloutInput = { }; export type CreateInnovationFlowTemplateOnTemplatesSetInput = { + /** The profile of the template. */ profile: CreateProfileInput; states?: InputMaybe>; tags?: InputMaybe>; @@ -1583,6 +1625,7 @@ export type CreatePostInput = { export type CreatePostTemplateOnTemplatesSetInput = { /** The default description to be pre-filled when users create Posts based on this template. */ defaultDescription?: InputMaybe; + /** The profile of the template. */ profile: CreateProfileInput; tags?: InputMaybe>; templatesSetID: Scalars['UUID']; @@ -1699,6 +1742,7 @@ export type CreateWhiteboardInput = { export type CreateWhiteboardTemplateOnTemplatesSetInput = { content?: InputMaybe; + /** The profile of the template. */ profile: CreateProfileInput; tags?: InputMaybe>; templatesSetID: Scalars['UUID']; @@ -2368,6 +2412,10 @@ export type LookupQueryResults = { collaboration?: Maybe; /** Lookup the specified Community */ community?: Maybe; + /** Lookup the specified Community guidelines */ + communityGuidelines?: Maybe; + /** Lookup the specified InnovationFlow Template */ + communityGuidelinesTemplate?: Maybe; /** Lookup the specified Context */ context?: Maybe; /** Lookup the specified Document */ @@ -2431,6 +2479,14 @@ export type LookupQueryResultsCommunityArgs = { ID: Scalars['UUID']; }; +export type LookupQueryResultsCommunityGuidelinesArgs = { + ID: Scalars['UUID']; +}; + +export type LookupQueryResultsCommunityGuidelinesTemplateArgs = { + ID: Scalars['UUID']; +}; + export type LookupQueryResultsContextArgs = { ID: Scalars['UUID']; }; @@ -2522,15 +2578,13 @@ export type Message = { /** Reactions on this message */ reactions: Array; /** The User or Virtual Contributor that created this Message */ - sender?: Maybe; + sender?: Maybe; /** The message being replied to */ threadID?: Maybe; /** The server timestamp in UTC */ timestamp: Scalars['Float']; }; -export type MessageSender = User | VirtualContributor; - export type Metadata = { __typename?: 'Metadata'; /** Collection of metadata about Alkemio services. */ @@ -2619,6 +2673,8 @@ export type Mutation = { createCalloutOnCollaboration: Callout; /** Creates a new CalloutTemplate on the specified TemplatesSet. */ createCalloutTemplate: CalloutTemplate; + /** Creates a new CommunityGuidelinesTemplate on the specified TemplatesSet. */ + createCommunityGuidelinesTemplate: CommunityGuidelinesTemplate; /** Create a new Contribution on the Callout. */ createContributionOnCallout: CalloutContribution; /** Creates a new Discussion as part of this Communication. */ @@ -2977,6 +3033,10 @@ export type MutationCreateCalloutTemplateArgs = { calloutTemplateInput: CreateCalloutTemplateOnTemplatesSetInput; }; +export type MutationCreateCommunityGuidelinesTemplateArgs = { + communityGuidelinesTemplateInput: CreateCommunityGuidelinesTemplateOnTemplatesSetInput; +}; + export type MutationCreateContributionOnCalloutArgs = { contributionData: CreateContributionOnCalloutInput; }; @@ -3489,46 +3549,47 @@ export type Nvp = { value: Scalars['String']; }; -export type Organization = Groupable & { - __typename?: 'Organization'; - /** All Users that are admins of this Organization. */ - admins?: Maybe>; - /** The Agent representing this User. */ - agent?: Maybe; - /** All Users that are associated with this Organization. */ - associates?: Maybe>; - /** The authorization rules for the entity */ - authorization?: Maybe; - /** Organization contact email */ - contactEmail?: Maybe; - /** Domain name; what is verified, eg. alkem.io */ - domain?: Maybe; - /** Group defined on this organization. */ - group?: Maybe; - /** Groups defined on this organization. */ - groups?: Maybe>; - /** The ID of the entity */ - id: Scalars['UUID']; - /** Legal name - required if hosting an Space */ - legalEntityName?: Maybe; - /** Metrics about the activity within this Organization. */ - metrics?: Maybe>; - /** The roles on this Organization for the currently logged in user. */ - myRoles?: Maybe>; - /** A name identifier of the entity, unique within a given scope. */ - nameID: Scalars['NameID']; - /** All Users that are owners of this Organization. */ - owners?: Maybe>; - /** The preferences for this Organization */ - preferences: Array; - /** The profile for this Organization. */ - profile: Profile; - /** The StorageAggregator for managing storage buckets in use by this Organization */ - storageAggregator?: Maybe; - verification: OrganizationVerification; - /** Organization website */ - website?: Maybe; -}; +export type Organization = Contributor & + Groupable & { + __typename?: 'Organization'; + /** All Users that are admins of this Organization. */ + admins?: Maybe>; + /** The Agent representing this User. */ + agent: Agent; + /** All Users that are associated with this Organization. */ + associates?: Maybe>; + /** The authorization rules for the Contributor */ + authorization?: Maybe; + /** Organization contact email */ + contactEmail?: Maybe; + /** Domain name; what is verified, eg. alkem.io */ + domain?: Maybe; + /** Group defined on this organization. */ + group?: Maybe; + /** Groups defined on this organization. */ + groups?: Maybe>; + /** The ID of the Contributor */ + id: Scalars['UUID']; + /** Legal name - required if hosting an Space */ + legalEntityName?: Maybe; + /** Metrics about the activity within this Organization. */ + metrics?: Maybe>; + /** The roles on this Organization for the currently logged in user. */ + myRoles?: Maybe>; + /** A name identifier of the Contributor, unique within a given scope. */ + nameID: Scalars['NameID']; + /** All Users that are owners of this Organization. */ + owners?: Maybe>; + /** The preferences for this Organization */ + preferences: Array; + /** The profile for this Organization. */ + profile: Profile; + /** The StorageAggregator for managing storage buckets in use by this Organization */ + storageAggregator?: Maybe; + verification: OrganizationVerification; + /** Organization website */ + website?: Maybe; + }; export type OrganizationGroupArgs = { ID: Scalars['UUID']; @@ -3880,6 +3941,7 @@ export enum ProfileType { CalloutTemplate = 'CALLOUT_TEMPLATE', Challenge = 'CHALLENGE', CommunityGuidelines = 'COMMUNITY_GUIDELINES', + CommunityGuidelinesTemplate = 'COMMUNITY_GUIDELINES_TEMPLATE', ContributionLink = 'CONTRIBUTION_LINK', Discussion = 'DISCUSSION', InnovationFlow = 'INNOVATION_FLOW', @@ -4210,56 +4272,6 @@ export type RelayPaginatedSpacePageInfo = { startCursor?: Maybe; }; -export type RelayPaginatedUser = { - __typename?: 'RelayPaginatedUser'; - /** The unique personal identifier (upn) for the account associated with this user profile */ - accountUpn: Scalars['String']; - /** The Agent representing this User. */ - agent?: Maybe; - /** The authorization rules for the entity */ - authorization?: Maybe; - /** The Community rooms this user is a member of */ - communityRooms?: Maybe>; - /** The direct rooms this user is a member of */ - directRooms?: Maybe>; - /** The email address for this User. */ - email: Scalars['String']; - firstName: Scalars['String']; - gender: Scalars['String']; - /** The ID of the entity */ - id: Scalars['UUID']; - /** Can a message be sent to this User. */ - isContactable: Scalars['Boolean']; - lastName: Scalars['String']; - /** A name identifier of the entity, unique within a given scope. */ - nameID: Scalars['NameID']; - /** The phone number for this User. */ - phone: Scalars['String']; - /** The preferences for this user */ - preferences: Array; - /** The Profile for this User. */ - profile: Profile; - /** The StorageAggregator for managing storage buckets in use by this User */ - storageAggregator?: Maybe; -}; - -export type RelayPaginatedUserEdge = { - __typename?: 'RelayPaginatedUserEdge'; - node: RelayPaginatedUser; -}; - -export type RelayPaginatedUserPageInfo = { - __typename?: 'RelayPaginatedUserPageInfo'; - /** The last cursor of the page result */ - endCursor?: Maybe; - /** Indicate whether more items exist after the returned ones */ - hasNextPage: Scalars['Boolean']; - /** Indicate whether more items exist before the returned ones */ - hasPreviousPage: Scalars['Boolean']; - /** The first cursor of the page result */ - startCursor?: Maybe; -}; - export type RemoveCommunityRoleFromOrganizationInput = { communityID: Scalars['UUID']; organizationID: Scalars['UUID_NAMEID']; @@ -4945,6 +4957,14 @@ export type TemplatesSet = { authorization?: Maybe; /** The CalloutTemplates in this TemplatesSet. */ calloutTemplates: Array; + /** The total number of CalloutTemplates in this TemplatesSet. */ + calloutTemplatesCount: Scalars['Float']; + /** A single CommunityGuidelinesTemplate */ + communityGuidelinesTemplate?: Maybe; + /** The CommunityGuidelines in this TemplatesSet. */ + communityGuidelinesTemplates: Array; + /** The total number of CommunityGuidelinesTemplates in this TemplatesSet. */ + communityGuidelinesTemplatesCount: Scalars['Float']; /** The ID of the entity */ id: Scalars['UUID']; /** A single InnovationFlowTemplate */ @@ -4967,6 +4987,10 @@ export type TemplatesSet = { whiteboardTemplatesCount: Scalars['Float']; }; +export type TemplatesSetCommunityGuidelinesTemplateArgs = { + ID: Scalars['UUID']; +}; + export type TemplatesSetInnovationFlowTemplateArgs = { ID: Scalars['UUID']; }; @@ -4992,7 +5016,7 @@ export type Timeline = { export type UpdateAccountPlatformSettingsInput = { /** The identifier for the Account whose license etc is to be updated. */ accountID: Scalars['UUID']; - /** Update the host Organization for the Account. */ + /** Update the host Organization or User for the Account. */ hostID?: InputMaybe; /** Update the license settings for the Account. */ license?: InputMaybe; @@ -5480,13 +5504,13 @@ export type UpdateWhiteboardTemplateInput = { profile?: InputMaybe; }; -export type User = { +export type User = Contributor & { __typename?: 'User'; /** The unique personal identifier (upn) for the account associated with this user profile */ accountUpn: Scalars['String']; /** The Agent representing this User. */ - agent?: Maybe; - /** The authorization rules for the entity */ + agent: Agent; + /** The authorization rules for the Contributor */ authorization?: Maybe; /** The Community rooms this user is a member of */ communityRooms?: Maybe>; @@ -5496,12 +5520,12 @@ export type User = { email: Scalars['String']; firstName: Scalars['String']; gender: Scalars['String']; - /** The ID of the entity */ + /** The ID of the Contributor */ id: Scalars['UUID']; /** Can a message be sent to this User. */ isContactable: Scalars['Boolean']; lastName: Scalars['String']; - /** A name identifier of the entity, unique within a given scope. */ + /** A name identifier of the Contributor, unique within a given scope. */ nameID: Scalars['NameID']; /** The phone number for this User. */ phone: Scalars['String']; @@ -5617,15 +5641,15 @@ export type VerifiedCredentialClaim = { value: Scalars['JSON']; }; -export type VirtualContributor = { +export type VirtualContributor = Contributor & { __typename?: 'VirtualContributor'; /** The Agent representing this User. */ - agent?: Maybe; - /** The authorization rules for the entity */ + agent: Agent; + /** The authorization rules for the Contributor */ authorization?: Maybe; - /** The ID of the entity */ + /** The ID of the Contributor */ id: Scalars['UUID']; - /** A name identifier of the entity, unique within a given scope. */ + /** A name identifier of the Contributor, unique within a given scope. */ nameID: Scalars['NameID']; /** The profile for this Virtual. */ profile: Profile; @@ -5904,28 +5928,26 @@ export type UserAgentSsiFragment = { __typename?: 'User'; id: string; nameID: string; - agent?: - | { - __typename?: 'Agent'; - id: string; - did?: string | undefined; - credentials?: - | Array<{ __typename?: 'Credential'; id: string; resourceID: string; type: AuthorizationCredential }> - | undefined; - verifiedCredentials?: - | Array<{ - __typename?: 'VerifiedCredential'; - context: string; - issued: string; - expires: string; - issuer: string; - name: string; - type: string; - claims: Array<{ __typename?: 'VerifiedCredentialClaim'; name: string; value: string }>; - }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + did?: string | undefined; + credentials?: + | Array<{ __typename?: 'Credential'; id: string; resourceID: string; type: AuthorizationCredential }> + | undefined; + verifiedCredentials?: + | Array<{ + __typename?: 'VerifiedCredential'; + context: string; + issued: string; + expires: string; + issuer: string; + name: string; + type: string; + claims: Array<{ __typename?: 'VerifiedCredentialClaim'; name: string; value: string }>; + }> + | undefined; + }; }; export type UserSsiQueryVariables = Exact<{ [key: string]: never }>; @@ -5939,28 +5961,26 @@ export type UserSsiQuery = { __typename?: 'User'; id: string; nameID: string; - agent?: - | { - __typename?: 'Agent'; - id: string; - did?: string | undefined; - credentials?: - | Array<{ __typename?: 'Credential'; id: string; resourceID: string; type: AuthorizationCredential }> - | undefined; - verifiedCredentials?: - | Array<{ - __typename?: 'VerifiedCredential'; - context: string; - issued: string; - expires: string; - issuer: string; - name: string; - type: string; - claims: Array<{ __typename?: 'VerifiedCredentialClaim'; name: string; value: string }>; - }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + did?: string | undefined; + credentials?: + | Array<{ __typename?: 'Credential'; id: string; resourceID: string; type: AuthorizationCredential }> + | undefined; + verifiedCredentials?: + | Array<{ + __typename?: 'VerifiedCredential'; + context: string; + issued: string; + expires: string; + issuer: string; + name: string; + type: string; + claims: Array<{ __typename?: 'VerifiedCredentialClaim'; name: string; value: string }>; + }> + | undefined; + }; } | undefined; }; @@ -6165,16 +6185,41 @@ export type CalloutPageCalloutQuery = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -6185,19 +6230,20 @@ export type CalloutPageCalloutQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -6208,7 +6254,7 @@ export type CalloutPageCalloutQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -6718,6 +6764,28 @@ export type SpaceInnovationFlowTemplatesLibraryQuery = { visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; }; } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + }; + } | undefined; }; }; @@ -8183,6 +8251,28 @@ export type SpaceCalloutTemplatesLibraryQuery = { visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; }; } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + }; + } | undefined; }; }; @@ -8670,16 +8760,41 @@ export type CreateCalloutMutation = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -8690,19 +8805,20 @@ export type CreateCalloutMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -8713,7 +8829,7 @@ export type CreateCalloutMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -8960,15 +9076,16 @@ export type UpdateCalloutVisibilityMutation = { }>; sender?: | { - __typename?: 'User'; + __typename?: 'Organization'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -8979,19 +9096,44 @@ export type UpdateCalloutVisibilityMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -9002,7 +9144,7 @@ export type UpdateCalloutVisibilityMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -9063,6 +9205,7 @@ export type CreatePostFromContributeTabMutation = { id: string; displayName: string; description?: string | undefined; + url: string; tagset?: | { __typename?: 'Tagset'; @@ -9681,16 +9824,41 @@ export type CalloutDetailsQuery = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -9701,19 +9869,20 @@ export type CalloutDetailsQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -9724,7 +9893,7 @@ export type CalloutDetailsQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -9914,16 +10083,41 @@ export type CalloutDetailsFragment = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -9934,19 +10128,20 @@ export type CalloutDetailsFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -9957,7 +10152,7 @@ export type CalloutDetailsFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -10094,6 +10289,28 @@ export type SpacePostTemplatesLibraryQuery = { visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; }; } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + }; + } | undefined; }; }; @@ -10264,16 +10481,43 @@ export type PostQuery = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: + | { __typename?: 'Location'; id: string; country: string; city: string } + | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -10285,20 +10529,21 @@ export type PostQuery = { }> | undefined; location?: - | { __typename?: 'Location'; id: string; city: string; country: string } + | { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -10310,7 +10555,7 @@ export type PostQuery = { }> | undefined; location?: - | { __typename?: 'Location'; id: string; city: string; country: string } + | { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } @@ -10395,16 +10640,41 @@ export type PostDashboardFragment = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -10415,19 +10685,20 @@ export type PostDashboardFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -10438,7 +10709,7 @@ export type PostDashboardFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -10867,6 +11138,28 @@ export type SpaceWhiteboardTemplatesLibraryQuery = { visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; }; } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + visual?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + }; + } | undefined; }; }; @@ -12205,16 +12498,41 @@ export type CreateDiscussionMutation = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12225,19 +12543,20 @@ export type CreateDiscussionMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12248,7 +12567,7 @@ export type CreateDiscussionMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -12296,15 +12615,16 @@ export type UpdateDiscussionMutation = { }>; sender?: | { - __typename?: 'User'; + __typename?: 'Organization'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12315,19 +12635,20 @@ export type UpdateDiscussionMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { - __typename?: 'VirtualContributor'; + __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12338,10 +12659,34 @@ export type UpdateDiscussionMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } - | undefined; + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | undefined; }>; }; authorization?: @@ -12388,16 +12733,41 @@ export type DiscussionDetailsFragment = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12408,19 +12778,20 @@ export type DiscussionDetailsFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12431,7 +12802,7 @@ export type DiscussionDetailsFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -12620,16 +12991,41 @@ export type PlatformDiscussionQuery = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12640,19 +13036,20 @@ export type PlatformDiscussionQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12663,7 +13060,7 @@ export type PlatformDiscussionQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -12764,16 +13161,41 @@ export type MessageDetailsFragment = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12784,19 +13206,20 @@ export type MessageDetailsFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12807,32 +13230,12 @@ export type MessageDetailsFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; }; -export type SenderProfileFragment = { - __typename?: 'Profile'; - id: string; - displayName: string; - url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; - tagsets?: - | Array<{ - __typename?: 'Tagset'; - id: string; - name: string; - tags: Array; - allowedValues: Array; - type: TagsetType; - }> - | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; -}; - export type ReactionDetailsFragment = { __typename?: 'Reaction'; id: string; @@ -12869,16 +13272,41 @@ export type CommentsWithMessagesFragment = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12889,19 +13317,20 @@ export type CommentsWithMessagesFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -12912,7 +13341,7 @@ export type CommentsWithMessagesFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -12939,7 +13368,11 @@ export type ReplyToMessageMutation = { id: string; message: string; timestamp: number; - sender?: { __typename?: 'User'; id: string } | { __typename?: 'VirtualContributor'; id: string } | undefined; + sender?: + | { __typename?: 'Organization' } + | { __typename?: 'User'; id: string } + | { __typename?: 'VirtualContributor'; id: string } + | undefined; }; }; @@ -12999,7 +13432,11 @@ export type SendMessageToRoomMutation = { id: string; message: string; timestamp: number; - sender?: { __typename?: 'User'; id: string } | { __typename?: 'VirtualContributor'; id: string } | undefined; + sender?: + | { __typename?: 'Organization' } + | { __typename?: 'User'; id: string } + | { __typename?: 'VirtualContributor'; id: string } + | undefined; }; }; @@ -13041,16 +13478,41 @@ export type RoomEventsSubscription = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -13061,19 +13523,20 @@ export type RoomEventsSubscription = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -13084,7 +13547,7 @@ export type RoomEventsSubscription = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -13151,16 +13614,41 @@ export type CommunityUpdatesQuery = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -13171,19 +13659,20 @@ export type CommunityUpdatesQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -13194,7 +13683,7 @@ export type CommunityUpdatesQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -13823,15 +14312,13 @@ export type CommunityPageMembersFragment = { id: string; nameID: string; email: string; - agent?: - | { - __typename?: 'Agent'; - id: string; - credentials?: - | Array<{ __typename?: 'Credential'; id: string; type: AuthorizationCredential; resourceID: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + credentials?: + | Array<{ __typename?: 'Credential'; id: string; type: AuthorizationCredential; resourceID: string }> + | undefined; + }; profile: { __typename?: 'Profile'; id: string; @@ -13964,6 +14451,7 @@ export type CommunityMembersListQuery = { __typename?: 'Profile'; id: string; displayName: string; + url: string; description?: string | undefined; avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: @@ -13976,10 +14464,58 @@ export type CommunityMembersListQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; country: string; city: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } - | undefined; + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | undefined; }; } | undefined; @@ -14533,15 +15069,13 @@ export type ContributorsPageUsersQuery = { id: string; nameID: string; isContactable: boolean; - agent?: - | { - __typename?: 'Agent'; - id: string; - credentials?: - | Array<{ __typename?: 'Credential'; id: string; type: AuthorizationCredential; resourceID: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + credentials?: + | Array<{ __typename?: 'Credential'; id: string; type: AuthorizationCredential; resourceID: string }> + | undefined; + }; userProfile: { __typename?: 'Profile'; id: string; @@ -14615,15 +15149,13 @@ export type UserContributorPaginatedFragment = { id: string; nameID: string; isContactable: boolean; - agent?: - | { - __typename?: 'Agent'; - id: string; - credentials?: - | Array<{ __typename?: 'Credential'; id: string; type: AuthorizationCredential; resourceID: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + credentials?: + | Array<{ __typename?: 'Credential'; id: string; type: AuthorizationCredential; resourceID: string }> + | undefined; + }; userProfile: { __typename?: 'Profile'; id: string; @@ -14655,15 +15187,13 @@ export type UserContributorFragment = { id: string; nameID: string; isContactable: boolean; - agent?: - | { - __typename?: 'Agent'; - id: string; - credentials?: - | Array<{ __typename?: 'Credential'; id: string; type: AuthorizationCredential; resourceID: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + credentials?: + | Array<{ __typename?: 'Credential'; id: string; type: AuthorizationCredential; resourceID: string }> + | undefined; + }; userProfile: { __typename?: 'Profile'; id: string; @@ -14683,6 +15213,86 @@ export type UserContributorFragment = { }; }; +type ContributorDetails_Organization_Fragment = { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; +}; + +type ContributorDetails_User_Fragment = { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; +}; + +type ContributorDetails_VirtualContributor_Fragment = { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; +}; + +export type ContributorDetailsFragment = + | ContributorDetails_Organization_Fragment + | ContributorDetails_User_Fragment + | ContributorDetails_VirtualContributor_Fragment; + export type AssociatedOrganizationQueryVariables = Exact<{ organizationId: Scalars['UUID_NAMEID']; }>; @@ -15700,16 +16310,14 @@ export type GroupMembersFragment = { export type UserAgentFragment = { __typename?: 'User'; - agent?: - | { - __typename?: 'Agent'; - id: string; - did?: string | undefined; - credentials?: - | Array<{ __typename?: 'Credential'; id: string; resourceID: string; type: AuthorizationCredential }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + did?: string | undefined; + credentials?: + | Array<{ __typename?: 'Credential'; id: string; resourceID: string; type: AuthorizationCredential }> + | undefined; + }; }; export type UserDetailsFragment = { @@ -15722,14 +16330,10 @@ export type UserDetailsFragment = { gender: string; phone: string; accountUpn: string; - agent?: - | { - __typename?: 'Agent'; - credentials?: - | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + credentials?: Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string }> | undefined; + }; profile: { __typename?: 'Profile'; id: string; @@ -15839,14 +16443,10 @@ export type CreateUserMutation = { gender: string; phone: string; accountUpn: string; - agent?: - | { - __typename?: 'Agent'; - credentials?: - | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + credentials?: Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string }> | undefined; + }; profile: { __typename?: 'Profile'; id: string; @@ -15900,14 +16500,10 @@ export type CreateUserNewRegistrationMutation = { gender: string; phone: string; accountUpn: string; - agent?: - | { - __typename?: 'Agent'; - credentials?: - | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + credentials?: Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string }> | undefined; + }; profile: { __typename?: 'Profile'; id: string; @@ -16039,14 +16635,10 @@ export type UpdateUserMutation = { gender: string; phone: string; accountUpn: string; - agent?: - | { - __typename?: 'Agent'; - credentials?: - | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + credentials?: Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string }> | undefined; + }; profile: { __typename?: 'Profile'; id: string; @@ -16111,16 +16703,14 @@ export type UserQuery = { gender: string; phone: string; accountUpn: string; - agent?: - | { - __typename?: 'Agent'; - id: string; - did?: string | undefined; - credentials?: - | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string; id: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + did?: string | undefined; + credentials?: + | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string; id: string }> + | undefined; + }; profile: { __typename?: 'Profile'; id: string; @@ -16203,16 +16793,14 @@ export type UserProfileQuery = { gender: string; phone: string; accountUpn: string; - agent?: - | { - __typename?: 'Agent'; - id: string; - did?: string | undefined; - credentials?: - | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string; id: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + did?: string | undefined; + credentials?: + | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string; id: string }> + | undefined; + }; profile: { __typename?: 'Profile'; id: string; @@ -16340,16 +16928,14 @@ export type UserProviderQuery = { gender: string; phone: string; accountUpn: string; - agent?: - | { - __typename?: 'Agent'; - id: string; - did?: string | undefined; - credentials?: - | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string; id: string }> - | undefined; - } - | undefined; + agent: { + __typename?: 'Agent'; + id: string; + did?: string | undefined; + credentials?: + | Array<{ __typename?: 'Credential'; type: AuthorizationCredential; resourceID: string; id: string }> + | undefined; + }; profile: { __typename?: 'Profile'; id: string; @@ -16452,6 +17038,8 @@ export type SpaceCommunityContributorsQuery = { status: OrganizationVerificationEnum; }; } + | { __typename?: 'User' } + | { __typename?: 'VirtualContributor' } | undefined; }; community: { @@ -16707,6 +17295,12 @@ export type InnovationHubAvailableSpacesQuery = { id: string; profile: { __typename?: 'Profile'; id: string; displayName: string }; } + | { __typename?: 'User'; id: string; profile: { __typename?: 'Profile'; id: string; displayName: string } } + | { + __typename?: 'VirtualContributor'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } | undefined; }; profile: { __typename?: 'Profile'; id: string; displayName: string }; @@ -16726,6 +17320,12 @@ export type InnovationHubSpaceFragment = { id: string; profile: { __typename?: 'Profile'; id: string; displayName: string }; } + | { __typename?: 'User'; id: string; profile: { __typename?: 'Profile'; id: string; displayName: string } } + | { + __typename?: 'VirtualContributor'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } | undefined; }; profile: { __typename?: 'Profile'; id: string; displayName: string }; @@ -16852,6 +17452,16 @@ export type AdminInnovationHubQuery = { id: string; profile: { __typename?: 'Profile'; id: string; displayName: string }; } + | { + __typename?: 'User'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } | undefined; }; profile: { __typename?: 'Profile'; id: string; displayName: string }; @@ -16914,6 +17524,12 @@ export type AdminInnovationHubFragment = { id: string; profile: { __typename?: 'Profile'; id: string; displayName: string }; } + | { __typename?: 'User'; id: string; profile: { __typename?: 'Profile'; id: string; displayName: string } } + | { + __typename?: 'VirtualContributor'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } | undefined; }; profile: { __typename?: 'Profile'; id: string; displayName: string }; @@ -16979,6 +17595,16 @@ export type CreateInnovationHubMutation = { id: string; profile: { __typename?: 'Profile'; id: string; displayName: string }; } + | { + __typename?: 'User'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } | undefined; }; profile: { __typename?: 'Profile'; id: string; displayName: string }; @@ -17045,12 +17671,22 @@ export type UpdateInnovationHubMutation = { id: string; profile: { __typename?: 'Profile'; id: string; displayName: string }; } - | undefined; - }; - profile: { __typename?: 'Profile'; id: string; displayName: string }; - }> - | undefined; - }; + | { + __typename?: 'User'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } + | undefined; + }; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + }> + | undefined; + }; }; export type InnovationHubQueryVariables = Exact<{ @@ -17154,6 +17790,7 @@ export type AboutPageNonMembersQuery = { }; account: { __typename?: 'Account'; + id: string; host?: | { __typename?: 'Organization'; @@ -17162,19 +17799,70 @@ export type AboutPageNonMembersQuery = { profile: { __typename?: 'Profile'; id: string; - tagline: string; displayName: string; + url: string; description?: string | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; - tagsets?: Array<{ __typename?: 'Tagset'; id: string; tags: Array }> | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; - verification: { - __typename?: 'OrganizationVerification'; + } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; id: string; - status: OrganizationVerificationEnum; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; - metrics?: Array<{ __typename?: 'NVP'; id: string; name: string; value: string }> | undefined; } | undefined; }; @@ -17457,19 +18145,70 @@ export type JourneyDataQuery = { profile: { __typename?: 'Profile'; id: string; - tagline: string; displayName: string; + url: string; description?: string | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; - tagsets?: Array<{ __typename?: 'Tagset'; id: string; tags: Array }> | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; - verification: { - __typename?: 'OrganizationVerification'; + } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; id: string; - status: OrganizationVerificationEnum; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; - metrics?: Array<{ __typename?: 'NVP'; id: string; name: string; value: string }> | undefined; } | undefined; }; @@ -17876,15 +18615,70 @@ export type SpaceCommunityPageQuery = { profile: { __typename?: 'Profile'; id: string; - tagline: string; displayName: string; + url: string; description?: string | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; - tagsets?: Array<{ __typename?: 'Tagset'; id: string; tags: Array }> | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; - verification: { __typename?: 'OrganizationVerification'; id: string; status: OrganizationVerificationEnum }; - metrics?: Array<{ __typename?: 'NVP'; id: string; name: string; value: string }> | undefined; } | undefined; }; @@ -18117,7 +18911,14 @@ export type SpaceDetailsFragment = { } | undefined; }; - account: { __typename?: 'Account'; host?: { __typename?: 'Organization'; id: string } | undefined }; + account: { + __typename?: 'Account'; + host?: + | { __typename?: 'Organization'; id: string } + | { __typename?: 'User'; id: string } + | { __typename?: 'VirtualContributor'; id: string } + | undefined; + }; authorization?: { __typename?: 'Authorization'; id: string; anonymousReadAccess: boolean } | undefined; context: { __typename?: 'Context'; @@ -18181,7 +18982,11 @@ export type SpaceProviderQuery = { __typename?: 'Account'; id: string; license: { __typename?: 'License'; id: string; visibility: SpaceVisibility }; - host?: { __typename?: 'Organization'; id: string } | undefined; + host?: + | { __typename?: 'Organization'; id: string } + | { __typename?: 'User'; id: string } + | { __typename?: 'VirtualContributor'; id: string } + | undefined; }; profile: { __typename?: 'Profile'; @@ -18280,7 +19085,11 @@ export type SpaceInfoFragment = { __typename?: 'Account'; id: string; license: { __typename?: 'License'; id: string; visibility: SpaceVisibility }; - host?: { __typename?: 'Organization'; id: string } | undefined; + host?: + | { __typename?: 'Organization'; id: string } + | { __typename?: 'User'; id: string } + | { __typename?: 'VirtualContributor'; id: string } + | undefined; }; profile: { __typename?: 'Profile'; @@ -18356,6 +19165,32 @@ export type SpaceHostQuery = { tagsets?: Array<{ __typename?: 'Tagset'; id: string; tags: Array }> | undefined; }; } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + tagsets?: Array<{ __typename?: 'Tagset'; id: string; tags: Array }> | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + tagsets?: Array<{ __typename?: 'Tagset'; id: string; tags: Array }> | undefined; + }; + } | undefined; }; }; @@ -18381,25 +19216,76 @@ export type SpacePageQuery = { id: string; host?: | { - __typename?: 'Organization'; + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; id: string; nameID: string; profile: { __typename?: 'Profile'; id: string; - tagline: string; displayName: string; + url: string; description?: string | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; - tagsets?: Array<{ __typename?: 'Tagset'; id: string; tags: Array }> | undefined; - }; - verification: { - __typename?: 'OrganizationVerification'; - id: string; - status: OrganizationVerificationEnum; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; - metrics?: Array<{ __typename?: 'NVP'; id: string; name: string; value: string }> | undefined; } | undefined; }; @@ -18620,15 +19506,70 @@ export type SpacePageFragment = { profile: { __typename?: 'Profile'; id: string; - tagline: string; displayName: string; + url: string; description?: string | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; - tagsets?: Array<{ __typename?: 'Tagset'; id: string; tags: Array }> | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'User'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } + | { + __typename?: 'VirtualContributor'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; - verification: { __typename?: 'OrganizationVerification'; id: string; status: OrganizationVerificationEnum }; - metrics?: Array<{ __typename?: 'NVP'; id: string; name: string; value: string }> | undefined; } | undefined; }; @@ -19357,7 +20298,14 @@ export type UpdateSpaceMutation = { } | undefined; }; - account: { __typename?: 'Account'; host?: { __typename?: 'Organization'; id: string } | undefined }; + account: { + __typename?: 'Account'; + host?: + | { __typename?: 'Organization'; id: string } + | { __typename?: 'User'; id: string } + | { __typename?: 'VirtualContributor'; id: string } + | undefined; + }; authorization?: { __typename?: 'Authorization'; id: string; anonymousReadAccess: boolean } | undefined; context: { __typename?: 'Context'; @@ -20624,7 +21572,11 @@ export type UpdateAccountPlatformSettingsMutation = { visibility: SpaceVisibility; featureFlags: Array<{ __typename?: 'LicenseFeatureFlag'; name: LicenseFeatureFlagName; enabled: boolean }>; }; - host?: { __typename?: 'Organization'; id: string } | undefined; + host?: + | { __typename?: 'Organization'; id: string } + | { __typename?: 'User'; id: string } + | { __typename?: 'VirtualContributor'; id: string } + | undefined; }; }; @@ -20661,6 +21613,12 @@ export type AdminSpacesListQuery = { id: string; profile: { __typename?: 'Profile'; id: string; displayName: string }; } + | { __typename?: 'User'; id: string; profile: { __typename?: 'Profile'; id: string; displayName: string } } + | { + __typename?: 'VirtualContributor'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } | undefined; }; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; @@ -20689,6 +21647,12 @@ export type AdminSpaceFragment = { id: string; profile: { __typename?: 'Profile'; id: string; displayName: string }; } + | { __typename?: 'User'; id: string; profile: { __typename?: 'Profile'; id: string; displayName: string } } + | { + __typename?: 'VirtualContributor'; + id: string; + profile: { __typename?: 'Profile'; id: string; displayName: string }; + } | undefined; }; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string }; @@ -23185,16 +24149,41 @@ export type CalendarEventDetailsQuery = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -23205,19 +24194,20 @@ export type CalendarEventDetailsQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -23228,7 +24218,7 @@ export type CalendarEventDetailsQuery = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -23326,16 +24316,41 @@ export type CalendarEventDetailsFragment = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -23346,19 +24361,20 @@ export type CalendarEventDetailsFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -23369,7 +24385,7 @@ export type CalendarEventDetailsFragment = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -23485,16 +24501,41 @@ export type CreateCalendarEventMutation = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -23505,19 +24546,20 @@ export type CreateCalendarEventMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -23528,7 +24570,7 @@ export type CreateCalendarEventMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; @@ -23624,16 +24666,41 @@ export type UpdateCalendarEventMutation = { | undefined; }>; sender?: + | { + __typename?: 'Organization'; + id: string; + nameID: string; + profile: { + __typename?: 'Profile'; + id: string; + displayName: string; + url: string; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; + tagsets?: + | Array<{ + __typename?: 'Tagset'; + id: string; + name: string; + tags: Array; + allowedValues: Array; + type: TagsetType; + }> + | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; + }; + } | { __typename?: 'User'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -23644,19 +24711,20 @@ export type UpdateCalendarEventMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | { __typename?: 'VirtualContributor'; id: string; + nameID: string; profile: { __typename?: 'Profile'; id: string; displayName: string; url: string; - type?: ProfileType | undefined; - avatar?: { __typename?: 'Visual'; id: string; uri: string } | undefined; + description?: string | undefined; + avatar?: { __typename?: 'Visual'; id: string; uri: string; name: string } | undefined; tagsets?: | Array<{ __typename?: 'Tagset'; @@ -23667,7 +24735,7 @@ export type UpdateCalendarEventMutation = { type: TagsetType; }> | undefined; - location?: { __typename?: 'Location'; id: string; city: string; country: string } | undefined; + location?: { __typename?: 'Location'; id: string; country: string; city: string } | undefined; }; } | undefined; diff --git a/src/domain/collaboration/callout/graphql/CalloutMutations.graphql b/src/domain/collaboration/callout/graphql/CalloutMutations.graphql index 34f9b44774..0d1e203175 100644 --- a/src/domain/collaboration/callout/graphql/CalloutMutations.graphql +++ b/src/domain/collaboration/callout/graphql/CalloutMutations.graphql @@ -8,6 +8,7 @@ mutation CreatePostFromContributeTab($postData: CreateContributionOnCalloutInput id displayName description + url tagset { ...TagsetDetails } diff --git a/src/domain/collaboration/callout/post/PostCalloutContainer.tsx b/src/domain/collaboration/callout/post/PostCalloutContainer.tsx index 3f0380756f..7a2f261b39 100644 --- a/src/domain/collaboration/callout/post/PostCalloutContainer.tsx +++ b/src/domain/collaboration/callout/post/PostCalloutContainer.tsx @@ -102,6 +102,7 @@ const PostCalloutContainer = ({ callout, children }: PostCalloutContainerProps) nameID: '', profile: { id: '', + url: '', displayName: post.profileData.displayName, description: post.profileData?.description, visual: { diff --git a/src/domain/communication/room/Comments/CommentsMessageDetailsFragment.graphql b/src/domain/communication/room/Comments/CommentsMessageDetailsFragment.graphql index edcceee8d0..35021f60e4 100644 --- a/src/domain/communication/room/Comments/CommentsMessageDetailsFragment.graphql +++ b/src/domain/communication/room/Comments/CommentsMessageDetailsFragment.graphql @@ -7,37 +7,7 @@ fragment MessageDetails on Message { } threadID sender { - ... on User { - id - profile { - ...SenderProfile - } - } - ... on VirtualContributor { - id - profile { - ...SenderProfile - } - } - } -} - -fragment SenderProfile on Profile { - id - displayName - url - type - avatar: visual(type: AVATAR) { - id - uri - } - tagsets { - ...TagsetDetails - } - location { - id - city - country + ...ContributorDetails } } diff --git a/src/domain/community/community/CommunityAdmin/CommunityOrganizations.tsx b/src/domain/community/community/CommunityAdmin/CommunityOrganizations.tsx index 37f4cd18c7..93d1046e42 100644 --- a/src/domain/community/community/CommunityAdmin/CommunityOrganizations.tsx +++ b/src/domain/community/community/CommunityAdmin/CommunityOrganizations.tsx @@ -12,7 +12,7 @@ import { FC, useState } from 'react'; import AddIcon from '@mui/icons-material/Add'; import EditIcon from '@mui/icons-material/Edit'; import { buildOrganizationUrl } from '../../../../main/routing/urlBuilders'; -import { CommunityPolicyFragment, OrganizationDetailsFragment } from '../../../../core/apollo/generated/graphql-schema'; +import { CommunityPolicyFragment } from '../../../../core/apollo/generated/graphql-schema'; import { gutters } from '../../../../core/ui/grid/utils'; import DataGridSkeleton from '../../../../core/ui/table/DataGridSkeleton'; import DataGridTable from '../../../../core/ui/table/DataGridTable'; @@ -20,8 +20,9 @@ import { BlockTitle } from '../../../../core/ui/typography'; import CommunityMemberSettingsDialog from './CommunityMemberSettingsDialog'; import CommunityAddMembersDialog, { CommunityAddMembersDialogProps } from './CommunityAddMembersDialog'; import useCommunityPolicyChecker from './useCommunityPolicyChecker'; +import { ContributorViewProps } from '../EntityDashboardContributorsSection/Types'; -export interface OrganizationDetailsFragmentWithRoles extends OrganizationDetailsFragment { +export interface OrganizationDetailsFragmentWithRoles extends ContributorViewProps { isMember: boolean; isLead: boolean; isFacilitating: boolean; diff --git a/src/domain/community/community/EntityDashboardContributorsSection/Types.ts b/src/domain/community/community/EntityDashboardContributorsSection/Types.ts index 348c811e27..969deeedf7 100644 --- a/src/domain/community/community/EntityDashboardContributorsSection/Types.ts +++ b/src/domain/community/community/EntityDashboardContributorsSection/Types.ts @@ -1,9 +1,7 @@ import { WithId } from '../../../../core/utils/WithId'; import { ContributorCardSquareProps } from '../../contributor/ContributorCardSquare/ContributorCardSquare'; -import { - AssociatedOrganizationDetailsFragment, - DashboardLeadUserFragment, -} from '../../../../core/apollo/generated/graphql-schema'; +import { DashboardLeadUserFragment } from '../../../../core/apollo/generated/graphql-schema'; +import { Identifiable } from '../../../../core/utils/Identifiable'; export interface EntityDashboardContributors { memberUsers: WithId[] | undefined; @@ -12,8 +10,29 @@ export interface EntityDashboardContributors { memberOrganizationsCount: number | undefined; } +// TODO nameID -> url +// TODO clean up fetched data +export interface ContributorViewProps extends Identifiable { + nameID: string; + profile: { + displayName: string; + avatar?: { + uri: string; + }; + location?: { + country: string; + city: string; + }; + tagline?: string; + tagsets?: { + tags: string[]; + }[]; + // url: string; + }; +} + export interface EntityDashboardLeads { leadUsers: DashboardLeadUserFragment[] | undefined; - leadOrganizations: AssociatedOrganizationDetailsFragment[] | undefined; - hostOrganizations?: AssociatedOrganizationDetailsFragment[] | undefined; + leadOrganizations: ContributorViewProps[] | undefined; + host?: ContributorViewProps; } diff --git a/src/domain/community/community/useCommunityAssignment/CommunityMembersList.graphql b/src/domain/community/community/useCommunityAssignment/CommunityMembersList.graphql index 483e79c411..f83ba0b74d 100644 --- a/src/domain/community/community/useCommunityAssignment/CommunityMembersList.graphql +++ b/src/domain/community/community/useCommunityAssignment/CommunityMembersList.graphql @@ -7,7 +7,7 @@ query CommunityMembersList( space(ID: $spaceId) @include(if: $includeSpaceHost) { account { host { - ...OrganizationDetails + ...ContributorDetails } } } diff --git a/src/domain/community/contributor/graphql/contributorDetails.graphql b/src/domain/community/contributor/graphql/contributorDetails.graphql new file mode 100644 index 0000000000..6db2613dad --- /dev/null +++ b/src/domain/community/contributor/graphql/contributorDetails.graphql @@ -0,0 +1,21 @@ +fragment ContributorDetails on Contributor { + id + nameID + profile { + id + displayName + url + avatar: visual(type: AVATAR) { + ...VisualUri + } + description + tagsets { + ...TagsetDetails + } + location { + id + country + city + } + } +} diff --git a/src/domain/journey/common/AboutPageContainer/AboutPageContainer.tsx b/src/domain/journey/common/AboutPageContainer/AboutPageContainer.tsx index 2d605484e1..3cd334bd3b 100644 --- a/src/domain/journey/common/AboutPageContainer/AboutPageContainer.tsx +++ b/src/domain/journey/common/AboutPageContainer/AboutPageContainer.tsx @@ -19,6 +19,7 @@ import { useAboutPageMembersQuery, useAboutPageNonMembersQuery } from '../../../ import getMetricCount from '../../../platform/metrics/utils/getMetricCount'; import { MetricType } from '../../../platform/metrics/MetricType'; import { InnovationFlowDetails } from '../../../collaboration/InnovationFlow/InnovationFlow'; +import { ContributorViewProps } from '../../../community/community/EntityDashboardContributorsSection/Types'; interface AboutPagePermissions { communityReadAccess: boolean; @@ -37,7 +38,7 @@ export interface AboutPageContainerEntities { memberOrganizationsCount: number | undefined; leadUsers: DashboardLeadUserFragment[] | undefined; leadOrganizations: AssociatedOrganizationDetailsFragment[] | undefined; - hostOrganization: AssociatedOrganizationDetailsFragment | undefined; + host: ContributorViewProps | undefined; references: ReferenceDetailsFragment[] | undefined; } @@ -93,7 +94,7 @@ const AboutPageContainer: FC = ({ journeyId, children } // TODO looks like space is missing const collaboration = nonMembersData?.lookup.space?.collaboration; - const hostOrganization = nonMembersData?.lookup.space?.account.host; + const host = nonMembersData?.lookup.space?.account.host; const community = { ...nonMemberJourney?.community, ...memberJourney?.community, @@ -139,7 +140,7 @@ const AboutPageContainer: FC = ({ journeyId, children } metrics, leadUsers, leadOrganizations, - hostOrganization, + host, references, ...contributors, }, diff --git a/src/domain/journey/common/AboutPageContainer/AboutPageContainerQueries.graphql b/src/domain/journey/common/AboutPageContainer/AboutPageContainerQueries.graphql index a50a1c3fae..0629eda018 100644 --- a/src/domain/journey/common/AboutPageContainer/AboutPageContainerQueries.graphql +++ b/src/domain/journey/common/AboutPageContainer/AboutPageContainerQueries.graphql @@ -34,8 +34,9 @@ query AboutPageNonMembers($spaceId: UUID!) { } } account { + id host { - ...AssociatedOrganizationDetails + ...ContributorDetails } } metrics { diff --git a/src/domain/journey/common/JourneyAboutDialog/JourneyAboutDialog.tsx b/src/domain/journey/common/JourneyAboutDialog/JourneyAboutDialog.tsx index 1ef1ca31c4..767b2a12e1 100644 --- a/src/domain/journey/common/JourneyAboutDialog/JourneyAboutDialog.tsx +++ b/src/domain/journey/common/JourneyAboutDialog/JourneyAboutDialog.tsx @@ -89,7 +89,7 @@ const JourneyAboutDialog = ({ journeyLevel, leadUsers, leadOrganizations, - hostOrganizations, + host, sendMessageToCommunityLeads, metrics, description, @@ -245,7 +245,7 @@ const JourneyAboutDialog = ({ /> )} - {hostOrganizations && ( + {host && ( } - leadOrganizations={hostOrganizations} + leadOrganizations={host && [host]} leadUsers={undefined} > - {hostOrganizations && hostOrganizations.length > 0 && ( + {host && ( sendMessage('organization', { - id: hostOrganizations[0].id, - displayName: hostOrganizations[0].profile.displayName, - avatarUri: hostOrganizations[0].profile.avatar?.uri, - country: hostOrganizations[0].profile.location?.country, - city: hostOrganizations[0].profile.location?.city, + id: host.id, + displayName: host.profile.displayName, + avatarUri: host.profile.avatar?.uri, + country: host.profile.location?.country, + city: host.profile.location?.city, }) } sx={{ cursor: 'pointer' }} diff --git a/src/domain/journey/common/JourneyUnauthorizedDialog/JourneyData.graphql b/src/domain/journey/common/JourneyUnauthorizedDialog/JourneyData.graphql index 1e266ecb7f..6bf583e82b 100644 --- a/src/domain/journey/common/JourneyUnauthorizedDialog/JourneyData.graphql +++ b/src/domain/journey/common/JourneyUnauthorizedDialog/JourneyData.graphql @@ -17,7 +17,7 @@ query JourneyData($spaceId: UUID!, $includeCommunity: Boolean = false) { account { id host { - ...AssociatedOrganizationDetails + ...ContributorDetails } } } diff --git a/src/domain/journey/common/JourneyUnauthorizedDialog/JourneyUnauthorizedDialogContainer.tsx b/src/domain/journey/common/JourneyUnauthorizedDialog/JourneyUnauthorizedDialogContainer.tsx index d8d8a1edb9..73527a4ff8 100644 --- a/src/domain/journey/common/JourneyUnauthorizedDialog/JourneyUnauthorizedDialogContainer.tsx +++ b/src/domain/journey/common/JourneyUnauthorizedDialog/JourneyUnauthorizedDialogContainer.tsx @@ -1,4 +1,4 @@ -import { ReactNode, useCallback, useMemo } from 'react'; +import { ReactNode, useCallback } from 'react'; import { useJourneyCommunityPrivilegesQuery, useJourneyDataQuery, @@ -87,10 +87,7 @@ const JourneyUnauthorizedDialogContainer = ({ [sendMessageToCommunityLeads, community] ); - const hostOrganizations = useMemo( - () => journeyDataQueryData?.lookup.space?.account.host && [journeyDataQueryData?.lookup.space.account.host], - [journeyDataQueryData] - ); + const host = journeyDataQueryData?.lookup.space?.account.host; const provided: JourneyUnauthorizedDialogContainerProvided = { authorized: !isUnauthorized, @@ -103,7 +100,7 @@ const JourneyUnauthorizedDialogContainer = ({ impact: context?.impact, metrics, sendMessageToCommunityLeads: handleSendMessageToCommunityLeads, - hostOrganizations, + host, leadOrganizations: community?.leadOrganizations, leadUsers: community?.leadUsers, loading, diff --git a/src/domain/journey/common/journeyDashboardWelcomeBlock/JourneyDashboardWelcomeBlock.tsx b/src/domain/journey/common/journeyDashboardWelcomeBlock/JourneyDashboardWelcomeBlock.tsx index 20c7a03fd4..3b71ccb4fb 100644 --- a/src/domain/journey/common/journeyDashboardWelcomeBlock/JourneyDashboardWelcomeBlock.tsx +++ b/src/domain/journey/common/journeyDashboardWelcomeBlock/JourneyDashboardWelcomeBlock.tsx @@ -6,7 +6,10 @@ import WrapperMarkdown from '../../../../core/ui/markdown/WrapperMarkdown'; import Gutters from '../../../../core/ui/grid/Gutters'; import ContributorCardHorizontal from '../../../../core/ui/card/ContributorCardHorizontal'; import { buildOrganizationUrl, buildUserProfileUrl } from '../../../../main/routing/urlBuilders'; -import { EntityDashboardLeads } from '../../../community/community/EntityDashboardContributorsSection/Types'; +import { + ContributorViewProps, + EntityDashboardLeads, +} from '../../../community/community/EntityDashboardContributorsSection/Types'; import { MessageReceiverChipData } from '../../../communication/messaging/DirectMessaging/DirectMessageDialog'; import SeeMore from '../../../../core/ui/content/SeeMore'; import { EntityPageSection } from '../../../shared/layout/EntityPageSection'; @@ -16,7 +19,7 @@ interface JourneyDashboardWelcomeBlockProps { vision: string; leadUsers: EntityDashboardLeads['leadUsers']; onContactLeadUser: (receiver: MessageReceiverChipData) => void; - leadOrganizations: EntityDashboardLeads['leadOrganizations']; + leadOrganizations: ContributorViewProps[] | undefined; onContactLeadOrganization: (receiver: MessageReceiverChipData) => void; member?: boolean; } diff --git a/src/domain/journey/space/SpaceCommunityPage/SpaceCommunityPageQueries.graphql b/src/domain/journey/space/SpaceCommunityPage/SpaceCommunityPageQueries.graphql index 7e28d04920..6416c95b06 100644 --- a/src/domain/journey/space/SpaceCommunityPage/SpaceCommunityPageQueries.graphql +++ b/src/domain/journey/space/SpaceCommunityPage/SpaceCommunityPageQueries.graphql @@ -8,7 +8,7 @@ query SpaceCommunityPage($spaceNameId: UUID_NAMEID!) { account { id host { - ...AssociatedOrganizationDetails + ...ContributorDetails } } community { diff --git a/src/domain/journey/space/SpaceDashboard/SpaceDashboard.graphql b/src/domain/journey/space/SpaceDashboard/SpaceDashboard.graphql index f5d27e9ce6..7e39bb8aeb 100644 --- a/src/domain/journey/space/SpaceDashboard/SpaceDashboard.graphql +++ b/src/domain/journey/space/SpaceDashboard/SpaceDashboard.graphql @@ -33,10 +33,7 @@ fragment SpacePage on Space { account { id host { - ...AssociatedOrganizationDetails - profile { - ...SpaceWelcomeBlockContributorProfile - } + ...ContributorDetails } } metrics { diff --git a/src/domain/journey/space/SpaceDashboard/SpaceDashboardContainer.tsx b/src/domain/journey/space/SpaceDashboard/SpaceDashboardContainer.tsx index 4b510d9fbe..2d43962130 100644 --- a/src/domain/journey/space/SpaceDashboard/SpaceDashboardContainer.tsx +++ b/src/domain/journey/space/SpaceDashboard/SpaceDashboardContainer.tsx @@ -1,5 +1,5 @@ import { ApolloError } from '@apollo/client'; -import React, { FC, useCallback, useMemo } from 'react'; +import React, { FC, useCallback } from 'react'; import { useSpace } from '../SpaceContext/useSpace'; import { useUserContext } from '../../../community/user'; import { @@ -9,7 +9,6 @@ import { } from '../../../../core/apollo/generated/apollo-hooks'; import { ContainerChildProps } from '../../../../core/container/container'; import { - AssociatedOrganizationDetailsFragment, AuthorizationPrivilege, CalloutGroupName, CommunityMembershipStatus, @@ -20,6 +19,7 @@ import useCallouts, { UseCalloutsProvided } from '../../../collaboration/callout import useSpaceDashboardNavigation, { DashboardNavigationItem, } from '../spaceDashboardNavigation/useSpaceDashboardNavigation'; +import { ContributorViewProps } from '../../../community/community/EntityDashboardContributorsSection/Types'; export interface SpaceContainerEntities { space: SpacePageFragment | undefined; @@ -35,7 +35,7 @@ export interface SpaceContainerEntities { isAuthenticated: boolean; isMember: boolean; references: Reference[] | undefined; - hostOrganizations: AssociatedOrganizationDetailsFragment[] | undefined; + host: ContributorViewProps | undefined; sendMessageToCommunityLeads: (message: string) => Promise; callouts: UseCalloutsProvided; } @@ -103,7 +103,7 @@ export const SpaceDashboardContainer: FC = ({ spaceId, const references = referencesData?.lookup.space?.profile.references; - const hostOrganizations = useMemo(() => (space?.account.host ? [space.account.host] : []), [spaceData]); + const host = space?.account.host; const communityId = space?.community?.id ?? ''; @@ -140,7 +140,7 @@ export const SpaceDashboardContainer: FC = ({ spaceId, isAuthenticated, isMember, references, - hostOrganizations, + host, sendMessageToCommunityLeads: handleSendMessageToCommunityLeads, callouts, }, diff --git a/src/domain/journey/space/SpaceDashboard/SpaceDashboardPage.tsx b/src/domain/journey/space/SpaceDashboard/SpaceDashboardPage.tsx index f472ac5e59..cf78e399cc 100644 --- a/src/domain/journey/space/SpaceDashboard/SpaceDashboardPage.tsx +++ b/src/domain/journey/space/SpaceDashboard/SpaceDashboardPage.tsx @@ -47,7 +47,7 @@ const SpaceDashboardPage: FC = ({ dialog }) => { entityReadAccess={entities.permissions.spaceReadAccess} readUsersAccess={entities.permissions.readUsers} leadUsers={entities.space?.community?.leadUsers} - leadOrganizations={entities.hostOrganizations} + host={entities.host} callouts={callouts} journeyTypeName="space" myMembershipStatus={entities.space?.community?.myMembershipStatus} @@ -88,7 +88,7 @@ const SpaceDashboardPage: FC = ({ dialog }) => { impact={entities.space?.context?.impact} loading={state.loading} leadUsers={entities.space?.community?.leadUsers} - hostOrganizations={entities.hostOrganizations} + host={entities.host} leadOrganizations={entities.space?.community?.leadOrganizations} endButton={ diff --git a/src/domain/journey/space/SpaceDashboard/SpaceDashboardView.tsx b/src/domain/journey/space/SpaceDashboard/SpaceDashboardView.tsx index f5faccb487..166ba6a7b6 100644 --- a/src/domain/journey/space/SpaceDashboard/SpaceDashboardView.tsx +++ b/src/domain/journey/space/SpaceDashboard/SpaceDashboardView.tsx @@ -1,7 +1,6 @@ -import React, { ReactNode } from 'react'; +import React, { ReactNode, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { - AssociatedOrganizationDetailsFragment, CalloutGroupName, CalloutsQueryVariables, CommunityMembershipStatus, @@ -30,6 +29,7 @@ import InfoColumn from '../../../../core/ui/content/InfoColumn'; import ContentColumn from '../../../../core/ui/content/ContentColumn'; import PageContentBlock from '../../../../core/ui/content/PageContentBlock'; import PageContentColumn from '../../../../core/ui/content/PageContentColumn'; +import { ContributorViewProps } from '../../../community/community/EntityDashboardContributorsSection/Types'; interface SpaceWelcomeBlockContributor { profile: SpaceWelcomeBlockContributorProfileFragment; @@ -42,7 +42,7 @@ interface SpaceDashboardViewProps { vision?: string; communityId?: string; organization?: unknown; - leadOrganizations: (SpaceWelcomeBlockContributor & AssociatedOrganizationDetailsFragment)[] | undefined; + host: ContributorViewProps | undefined; leadUsers: (SpaceWelcomeBlockContributor & DashboardLeadUserFragment)[] | undefined; communityReadAccess: boolean; timelineReadAccess?: boolean; @@ -73,7 +73,7 @@ const SpaceDashboardView = ({ communityId = '', communityReadAccess = false, timelineReadAccess = false, - leadOrganizations, + host, leadUsers, journeyTypeName, callouts, @@ -90,6 +90,8 @@ const SpaceDashboardView = ({ dialogTitle: t('send-message-dialog.direct-message-title'), }); + const welcomeBlockContributors = useMemo(() => host && [host], [host]); + return ( <> {directMessageDialog} @@ -120,7 +122,7 @@ const SpaceDashboardView = ({ vision={vision} leadUsers={leadUsers} onContactLeadUser={receiver => sendMessage('user', receiver)} - leadOrganizations={leadOrganizations} + leadOrganizations={welcomeBlockContributors} onContactLeadOrganization={receiver => sendMessage('organization', receiver)} journeyTypeName="space" member={myMembershipStatus === CommunityMembershipStatus.Member} diff --git a/src/domain/journey/subspace/pages/SubspaceAboutPage.tsx b/src/domain/journey/subspace/pages/SubspaceAboutPage.tsx index 411bbb5a4b..05cb6bc36f 100644 --- a/src/domain/journey/subspace/pages/SubspaceAboutPage.tsx +++ b/src/domain/journey/subspace/pages/SubspaceAboutPage.tsx @@ -34,7 +34,7 @@ const SubspaceAboutPage: FC = () => { { context, references, - hostOrganization, + host, leadOrganizations, leadUsers, metrics, @@ -59,7 +59,7 @@ const SubspaceAboutPage: FC = () => { impact={context?.impact} loading={state.loading} leadUsers={leadUsers} - hostOrganizations={hostOrganization && [hostOrganization]} + host={host} leadOrganizations={leadOrganizations} endButton={ diff --git a/src/domain/platform/admin/components/Organization/OrganizationForm.tsx b/src/domain/platform/admin/components/Organization/OrganizationForm.tsx index a9fbaee19b..c2411ef708 100644 --- a/src/domain/platform/admin/components/Organization/OrganizationForm.tsx +++ b/src/domain/platform/admin/components/Organization/OrganizationForm.tsx @@ -30,6 +30,9 @@ import Gutters from '../../../../../core/ui/grid/Gutters'; const EmptyOrganization: Omit = { id: '', + agent: { + id: '', + }, nameID: '', contactEmail: undefined, domain: '', diff --git a/src/domain/shared/icons/profileIcons.ts b/src/domain/shared/icons/profileIcons.ts index dfe3f8f4e0..d24ba248d3 100644 --- a/src/domain/shared/icons/profileIcons.ts +++ b/src/domain/shared/icons/profileIcons.ts @@ -13,6 +13,7 @@ import { Face5, Face6, HubOutlined, + ImageNotSupportedOutlined, InventoryOutlined, PeopleAltOutlined, PersonOutline, @@ -20,6 +21,7 @@ import { } from '@mui/icons-material'; import calloutIcons from '../../collaboration/callout/utils/calloutIcons'; import { SpaceIcon } from '../../journey/space/icon/SpaceIcon'; +import { warn } from '../../../core/logging/sentry/log'; export const getProfileIcon = (profileType: ProfileType): ComponentType => { switch (profileType) { @@ -67,5 +69,9 @@ export const getProfileIcon = (profileType: ProfileType): ComponentType