diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql index c7879b6eec..1674a092d1 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql +++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql @@ -2423,6 +2423,39 @@ type MarketplaceApp { isFeatured: Boolean! } +type MarketplaceAppRoleObjectPermission { + universalIdentifier: String! + objectUniversalIdentifier: String! + canReadObjectRecords: Boolean + canUpdateObjectRecords: Boolean + canSoftDeleteObjectRecords: Boolean + canDestroyObjectRecords: Boolean +} + +type MarketplaceAppRoleFieldPermission { + universalIdentifier: String! + objectUniversalIdentifier: String! + fieldUniversalIdentifier: String! + canReadFieldValue: Boolean + canUpdateFieldValue: Boolean +} + +type MarketplaceAppRole { + universalIdentifier: String! + label: String! + description: String + icon: String + canUpdateAllSettings: Boolean + canAccessAllTools: Boolean + canReadAllObjectRecords: Boolean + canUpdateAllObjectRecords: Boolean + canSoftDeleteAllObjectRecords: Boolean + canDestroyAllObjectRecords: Boolean + permissionFlagUniversalIdentifiers: [String!] + objectPermissions: [MarketplaceAppRoleObjectPermission!] + fieldPermissions: [MarketplaceAppRoleFieldPermission!] +} + type MarketplaceAppDetail { universalIdentifier: String! id: String! @@ -2432,7 +2465,19 @@ type MarketplaceAppDetail { latestAvailableVersion: String isListed: Boolean! isFeatured: Boolean! - manifest: JSON + description: String + author: String + category: String + logo: String + websiteUrl: String + aboutDescription: String + termsUrl: String + emailSupport: String + issueReportUrl: String + screenshots: [String!]! + defaultRoleUniversalIdentifier: String + roles: [MarketplaceAppRole!] + manifest: JSON @deprecated(reason: "Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead") } type PublicDomain { diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts index 7dfa780513..54eb587425 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts +++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts @@ -2104,6 +2104,42 @@ export interface MarketplaceApp { __typename: 'MarketplaceApp' } +export interface MarketplaceAppRoleObjectPermission { + universalIdentifier: Scalars['String'] + objectUniversalIdentifier: Scalars['String'] + canReadObjectRecords?: Scalars['Boolean'] + canUpdateObjectRecords?: Scalars['Boolean'] + canSoftDeleteObjectRecords?: Scalars['Boolean'] + canDestroyObjectRecords?: Scalars['Boolean'] + __typename: 'MarketplaceAppRoleObjectPermission' +} + +export interface MarketplaceAppRoleFieldPermission { + universalIdentifier: Scalars['String'] + objectUniversalIdentifier: Scalars['String'] + fieldUniversalIdentifier: Scalars['String'] + canReadFieldValue?: Scalars['Boolean'] + canUpdateFieldValue?: Scalars['Boolean'] + __typename: 'MarketplaceAppRoleFieldPermission' +} + +export interface MarketplaceAppRole { + universalIdentifier: Scalars['String'] + label: Scalars['String'] + description?: Scalars['String'] + icon?: Scalars['String'] + canUpdateAllSettings?: Scalars['Boolean'] + canAccessAllTools?: Scalars['Boolean'] + canReadAllObjectRecords?: Scalars['Boolean'] + canUpdateAllObjectRecords?: Scalars['Boolean'] + canSoftDeleteAllObjectRecords?: Scalars['Boolean'] + canDestroyAllObjectRecords?: Scalars['Boolean'] + permissionFlagUniversalIdentifiers?: Scalars['String'][] + objectPermissions?: MarketplaceAppRoleObjectPermission[] + fieldPermissions?: MarketplaceAppRoleFieldPermission[] + __typename: 'MarketplaceAppRole' +} + export interface MarketplaceAppDetail { universalIdentifier: Scalars['String'] id: Scalars['String'] @@ -2113,6 +2149,19 @@ export interface MarketplaceAppDetail { latestAvailableVersion?: Scalars['String'] isListed: Scalars['Boolean'] isFeatured: Scalars['Boolean'] + description?: Scalars['String'] + author?: Scalars['String'] + category?: Scalars['String'] + logo?: Scalars['String'] + websiteUrl?: Scalars['String'] + aboutDescription?: Scalars['String'] + termsUrl?: Scalars['String'] + emailSupport?: Scalars['String'] + issueReportUrl?: Scalars['String'] + screenshots: Scalars['String'][] + defaultRoleUniversalIdentifier?: Scalars['String'] + roles?: MarketplaceAppRole[] + /** @deprecated Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead */ manifest?: Scalars['JSON'] __typename: 'MarketplaceAppDetail' } @@ -5232,6 +5281,45 @@ export interface MarketplaceAppGenqlSelection{ __scalar?: boolean | number } +export interface MarketplaceAppRoleObjectPermissionGenqlSelection{ + universalIdentifier?: boolean | number + objectUniversalIdentifier?: boolean | number + canReadObjectRecords?: boolean | number + canUpdateObjectRecords?: boolean | number + canSoftDeleteObjectRecords?: boolean | number + canDestroyObjectRecords?: boolean | number + __typename?: boolean | number + __scalar?: boolean | number +} + +export interface MarketplaceAppRoleFieldPermissionGenqlSelection{ + universalIdentifier?: boolean | number + objectUniversalIdentifier?: boolean | number + fieldUniversalIdentifier?: boolean | number + canReadFieldValue?: boolean | number + canUpdateFieldValue?: boolean | number + __typename?: boolean | number + __scalar?: boolean | number +} + +export interface MarketplaceAppRoleGenqlSelection{ + universalIdentifier?: boolean | number + label?: boolean | number + description?: boolean | number + icon?: boolean | number + canUpdateAllSettings?: boolean | number + canAccessAllTools?: boolean | number + canReadAllObjectRecords?: boolean | number + canUpdateAllObjectRecords?: boolean | number + canSoftDeleteAllObjectRecords?: boolean | number + canDestroyAllObjectRecords?: boolean | number + permissionFlagUniversalIdentifiers?: boolean | number + objectPermissions?: MarketplaceAppRoleObjectPermissionGenqlSelection + fieldPermissions?: MarketplaceAppRoleFieldPermissionGenqlSelection + __typename?: boolean | number + __scalar?: boolean | number +} + export interface MarketplaceAppDetailGenqlSelection{ universalIdentifier?: boolean | number id?: boolean | number @@ -5241,6 +5329,19 @@ export interface MarketplaceAppDetailGenqlSelection{ latestAvailableVersion?: boolean | number isListed?: boolean | number isFeatured?: boolean | number + description?: boolean | number + author?: boolean | number + category?: boolean | number + logo?: boolean | number + websiteUrl?: boolean | number + aboutDescription?: boolean | number + termsUrl?: boolean | number + emailSupport?: boolean | number + issueReportUrl?: boolean | number + screenshots?: boolean | number + defaultRoleUniversalIdentifier?: boolean | number + roles?: MarketplaceAppRoleGenqlSelection + /** @deprecated Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead */ manifest?: boolean | number __typename?: boolean | number __scalar?: boolean | number @@ -8184,6 +8285,30 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null + const MarketplaceAppRoleObjectPermission_possibleTypes: string[] = ['MarketplaceAppRoleObjectPermission'] + export const isMarketplaceAppRoleObjectPermission = (obj?: { __typename?: any } | null): obj is MarketplaceAppRoleObjectPermission => { + if (!obj?.__typename) throw new Error('__typename is missing in "isMarketplaceAppRoleObjectPermission"') + return MarketplaceAppRoleObjectPermission_possibleTypes.includes(obj.__typename) + } + + + + const MarketplaceAppRoleFieldPermission_possibleTypes: string[] = ['MarketplaceAppRoleFieldPermission'] + export const isMarketplaceAppRoleFieldPermission = (obj?: { __typename?: any } | null): obj is MarketplaceAppRoleFieldPermission => { + if (!obj?.__typename) throw new Error('__typename is missing in "isMarketplaceAppRoleFieldPermission"') + return MarketplaceAppRoleFieldPermission_possibleTypes.includes(obj.__typename) + } + + + + const MarketplaceAppRole_possibleTypes: string[] = ['MarketplaceAppRole'] + export const isMarketplaceAppRole = (obj?: { __typename?: any } | null): obj is MarketplaceAppRole => { + if (!obj?.__typename) throw new Error('__typename is missing in "isMarketplaceAppRole"') + return MarketplaceAppRole_possibleTypes.includes(obj.__typename) + } + + + const MarketplaceAppDetail_possibleTypes: string[] = ['MarketplaceAppDetail'] export const isMarketplaceAppDetail = (obj?: { __typename?: any } | null): obj is MarketplaceAppDetail => { if (!obj?.__typename) throw new Error('__typename is missing in "isMarketplaceAppDetail"') diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts index a672efb901..49cf8b63c9 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/types.ts +++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts @@ -63,27 +63,27 @@ export default { 217, 229, 235, - 271, - 273, 274, - 275, 276, 277, 278, 279, - 286, - 326, - 327, - 328, + 280, + 281, + 282, + 289, 329, + 330, 331, - 333, - 344, - 351, - 358, - 359, - 442, - 488 + 332, + 334, + 336, + 347, + 354, + 361, + 362, + 445, + 491 ], "types": { "BillingProductDTO": { @@ -4775,6 +4775,93 @@ export default { 1 ] }, + "MarketplaceAppRoleObjectPermission": { + "universalIdentifier": [ + 1 + ], + "objectUniversalIdentifier": [ + 1 + ], + "canReadObjectRecords": [ + 6 + ], + "canUpdateObjectRecords": [ + 6 + ], + "canSoftDeleteObjectRecords": [ + 6 + ], + "canDestroyObjectRecords": [ + 6 + ], + "__typename": [ + 1 + ] + }, + "MarketplaceAppRoleFieldPermission": { + "universalIdentifier": [ + 1 + ], + "objectUniversalIdentifier": [ + 1 + ], + "fieldUniversalIdentifier": [ + 1 + ], + "canReadFieldValue": [ + 6 + ], + "canUpdateFieldValue": [ + 6 + ], + "__typename": [ + 1 + ] + }, + "MarketplaceAppRole": { + "universalIdentifier": [ + 1 + ], + "label": [ + 1 + ], + "description": [ + 1 + ], + "icon": [ + 1 + ], + "canUpdateAllSettings": [ + 6 + ], + "canAccessAllTools": [ + 6 + ], + "canReadAllObjectRecords": [ + 6 + ], + "canUpdateAllObjectRecords": [ + 6 + ], + "canSoftDeleteAllObjectRecords": [ + 6 + ], + "canDestroyAllObjectRecords": [ + 6 + ], + "permissionFlagUniversalIdentifiers": [ + 1 + ], + "objectPermissions": [ + 267 + ], + "fieldPermissions": [ + 268 + ], + "__typename": [ + 1 + ] + }, "MarketplaceAppDetail": { "universalIdentifier": [ 1 @@ -4800,6 +4887,42 @@ export default { "isFeatured": [ 6 ], + "description": [ + 1 + ], + "author": [ + 1 + ], + "category": [ + 1 + ], + "logo": [ + 1 + ], + "websiteUrl": [ + 1 + ], + "aboutDescription": [ + 1 + ], + "termsUrl": [ + 1 + ], + "emailSupport": [ + 1 + ], + "issueReportUrl": [ + 1 + ], + "screenshots": [ + 1 + ], + "defaultRoleUniversalIdentifier": [ + 1 + ], + "roles": [ + 269 + ], "manifest": [ 7 ], @@ -4858,10 +4981,10 @@ export default { 1 ], "status": [ - 271 + 274 ], "verificationRecords": [ - 269 + 272 ], "verifiedAt": [ 4 @@ -4876,22 +4999,22 @@ export default { 3 ], "visibility": [ - 273 + 276 ], "handle": [ 1 ], "type": [ - 274 + 277 ], "isContactAutoCreationEnabled": [ 6 ], "contactAutoCreationPolicy": [ - 275 + 278 ], "messageFolderImportPolicy": [ - 276 + 279 ], "excludeNonProfessionalEmails": [ 6 @@ -4900,7 +5023,7 @@ export default { 6 ], "pendingGroupEmailsAction": [ - 277 + 280 ], "isSyncEnabled": [ 6 @@ -4909,10 +5032,10 @@ export default { 4 ], "syncStatus": [ - 278 + 281 ], "syncStage": [ - 279 + 282 ], "syncStageStartedAt": [ 4 @@ -4948,7 +5071,7 @@ export default { "MessageChannelSyncStage": {}, "CreateEmailGroupChannelOutput": { "messageChannel": [ - 272 + 275 ], "forwardingAddress": [ 1 @@ -5010,7 +5133,7 @@ export default { 21 ], "skipped": [ - 283 + 286 ], "__typename": [ 1 @@ -5033,7 +5156,7 @@ export default { 1 ], "visibility": [ - 286 + 289 ], "__typename": [ 1 @@ -5079,7 +5202,7 @@ export default { 1 ], "location": [ - 288 + 291 ], "__typename": [ 1 @@ -5104,13 +5227,13 @@ export default { }, "ImapSmtpCaldavPublicConnectionParameters": { "IMAP": [ - 290 + 293 ], "SMTP": [ - 290 + 293 ], "CALDAV": [ - 290 + 293 ], "__typename": [ 1 @@ -5130,7 +5253,7 @@ export default { 3 ], "connectionParameters": [ - 291 + 294 ], "__typename": [ 1 @@ -5352,7 +5475,7 @@ export default { 1 ], "series": [ - 300 + 303 ], "xAxisLabel": [ 1 @@ -5401,7 +5524,7 @@ export default { 1 ], "data": [ - 302 + 305 ], "__typename": [ 1 @@ -5409,7 +5532,7 @@ export default { }, "LineChartData": { "series": [ - 303 + 306 ], "xAxisLabel": [ 1 @@ -5446,7 +5569,7 @@ export default { }, "PieChartData": { "data": [ - 305 + 308 ], "showLegend": [ 6 @@ -5551,13 +5674,13 @@ export default { }, "EventLogQueryResult": { "records": [ - 310 + 313 ], "totalCount": [ 21 ], "pageInfo": [ - 311 + 314 ], "__typename": [ 1 @@ -5621,7 +5744,7 @@ export default { 1 ], "parts": [ - 296 + 299 ], "processedAt": [ 4 @@ -5690,7 +5813,7 @@ export default { }, "AiSystemPromptPreview": { "sections": [ - 316 + 319 ], "estimatedTokenCount": [ 21 @@ -5718,7 +5841,7 @@ export default { 21 ], "error": [ - 318 + 321 ], "__typename": [ 1 @@ -5780,10 +5903,10 @@ export default { 3 ], "evaluations": [ - 322 + 325 ], "messages": [ - 314 + 317 ], "createdAt": [ 4 @@ -5814,19 +5937,19 @@ export default { 1 ], "syncStatus": [ - 326 + 329 ], "syncStage": [ - 327 + 330 ], "visibility": [ - 328 + 331 ], "isContactAutoCreationEnabled": [ 6 ], "contactAutoCreationPolicy": [ - 329 + 332 ], "isSyncEnabled": [ 6 @@ -5877,7 +6000,7 @@ export default { 1 ], "pendingSyncAction": [ - 331 + 334 ], "messageChannelId": [ 3 @@ -5895,7 +6018,7 @@ export default { "MessageFolderPendingSyncAction": {}, "CollectionHash": { "collectionName": [ - 333 + 336 ], "hash": [ 1 @@ -5959,13 +6082,13 @@ export default { }, "MinimalMetadata": { "objectMetadataItems": [ - 334 + 337 ], "views": [ - 335 + 338 ], "collectionHashes": [ - 332 + 335 ], "__typename": [ 1 @@ -6118,7 +6241,7 @@ export default { 2, { "input": [ - 338, + 341, "GetApiKeyInput!" ] } @@ -6221,7 +6344,7 @@ export default { 25, { "input": [ - 339, + 342, "AgentIdInput!" ] } @@ -6277,7 +6400,7 @@ export default { 41, { "input": [ - 340, + 343, "LogicFunctionIdInput!" ] } @@ -6289,7 +6412,7 @@ export default { 7, { "input": [ - 340, + 343, "LogicFunctionIdInput!" ] } @@ -6298,7 +6421,7 @@ export default { 1, { "input": [ - 340, + 343, "LogicFunctionIdInput!" ] } @@ -6461,22 +6584,22 @@ export default { 29 ], "previewMessageCampaignAudience": [ - 281, + 284, { "input": [ - 341, + 344, "PreviewMessageCampaignAudienceInput!" ] } ], "unsubscribeTopics": [ - 285 + 288 ], "unsubscribePagePreviewUrl": [ 1 ], "myMessageChannels": [ - 272, + 275, { "connectedAccountId": [ 3 @@ -6484,13 +6607,13 @@ export default { } ], "getEmailingDomains": [ - 270 + 273 ], "myConnectedAccounts": [ 237 ], "getToolIndex": [ - 295 + 298 ], "getToolInputSchema": [ 7, @@ -6502,10 +6625,10 @@ export default { } ], "webhooks": [ - 294 + 297 ], "webhook": [ - 294, + 297, { "id": [ 3, @@ -6514,7 +6637,7 @@ export default { } ], "myMessageFolders": [ - 330, + 333, { "messageChannelId": [ 3 @@ -6522,7 +6645,7 @@ export default { } ], "myCalendarChannels": [ - 325, + 328, { "connectedAccountId": [ 3 @@ -6530,13 +6653,13 @@ export default { } ], "minimalMetadata": [ - 336 + 339 ], "appConnections": [ 216, { "filter": [ - 342 + 345 ] } ], @@ -6550,13 +6673,13 @@ export default { } ], "findWorkspaceAiStats": [ - 324 + 327 ], "chatThreads": [ - 315 + 318 ], "chatThread": [ - 315, + 318, { "id": [ 3, @@ -6565,7 +6688,7 @@ export default { } ], "chatMessages": [ - 314, + 317, { "threadId": [ 3, @@ -6574,7 +6697,7 @@ export default { } ], "chatStreamCatchupChunks": [ - 319, + 322, { "threadId": [ 3, @@ -6583,13 +6706,13 @@ export default { } ], "getAiSystemPromptPreview": [ - 317 + 320 ], "skills": [ - 313 + 316 ], "skill": [ - 313, + 316, { "id": [ 3, @@ -6598,7 +6721,7 @@ export default { } ], "agentTurns": [ - 323, + 326, { "agentId": [ 3, @@ -6664,43 +6787,43 @@ export default { 222 ], "eventLogs": [ - 312, + 315, { "input": [ - 343, + 346, "EventLogQueryInput!" ] } ], "pieChartData": [ - 306, + 309, { "input": [ - 347, + 350, "PieChartDataInput!" ] } ], "lineChartData": [ - 304, + 307, { "input": [ - 348, + 351, "LineChartDataInput!" ] } ], "barChartData": [ - 301, + 304, { "input": [ - 349, + 352, "BarChartDataInput!" ] } ], "getConnectedImapSmtpCaldavAccount": [ - 292, + 295, { "id": [ 3, @@ -6709,7 +6832,7 @@ export default { } ], "getAutoCompleteAddress": [ - 287, + 290, { "address": [ 1, @@ -6728,7 +6851,7 @@ export default { } ], "getAddressDetails": [ - 289, + 292, { "placeId": [ 1, @@ -6744,18 +6867,18 @@ export default { 262, { "input": [ - 350 + 353 ] } ], "findManyPublicDomains": [ - 268 + 271 ], "findManyMarketplaceApps": [ 266 ], "findMarketplaceAppDetail": [ - 267, + 270, { "universalIdentifier": [ 1, @@ -6818,10 +6941,10 @@ export default { }, "EventLogQueryInput": { "table": [ - 344 + 347 ], "filters": [ - 345 + 348 ], "first": [ 21 @@ -6842,7 +6965,7 @@ export default { 1 ], "dateRange": [ - 346 + 349 ], "recordId": [ 1 @@ -6909,7 +7032,7 @@ export default { 1 ], "operationTypes": [ - 351 + 354 ], "__typename": [ 1 @@ -6921,7 +7044,7 @@ export default { 6, { "input": [ - 353, + 356, "AddQuerySubscriptionInput!" ] } @@ -6930,7 +7053,7 @@ export default { 6, { "input": [ - 354, + 357, "RemoveQueryFromEventStreamInput!" ] } @@ -6939,7 +7062,7 @@ export default { 158, { "inputs": [ - 355, + 358, "[CreateNavigationMenuItemInput!]!" ] } @@ -6948,7 +7071,7 @@ export default { 158, { "input": [ - 355, + 358, "CreateNavigationMenuItemInput!" ] } @@ -6957,7 +7080,7 @@ export default { 158, { "inputs": [ - 356, + 359, "[UpdateOneNavigationMenuItemInput!]!" ] } @@ -6966,7 +7089,7 @@ export default { 158, { "input": [ - 356, + 359, "UpdateOneNavigationMenuItemInput!" ] } @@ -7001,7 +7124,7 @@ export default { "Float!" ], "fileFolder": [ - 358, + 361, "FileFolder!" ], "fieldMetadataId": [ @@ -7037,7 +7160,7 @@ export default { 128, { "file": [ - 359, + 362, "Upload!" ] } @@ -7046,7 +7169,7 @@ export default { 128, { "file": [ - 359, + 362, "Upload!" ] } @@ -7055,7 +7178,7 @@ export default { 128, { "file": [ - 359, + 362, "Upload!" ] } @@ -7064,7 +7187,7 @@ export default { 128, { "file": [ - 359, + 362, "Upload!" ] } @@ -7073,7 +7196,7 @@ export default { 128, { "file": [ - 359, + 362, "Upload!" ] } @@ -7082,7 +7205,7 @@ export default { 128, { "file": [ - 359, + 362, "Upload!" ], "fieldMetadataId": [ @@ -7095,7 +7218,7 @@ export default { 128, { "file": [ - 359, + 362, "Upload!" ], "fieldMetadataUniversalIdentifier": [ @@ -7108,7 +7231,7 @@ export default { 58, { "input": [ - 360, + 363, "CreateViewFilterGroupInput!" ] } @@ -7121,7 +7244,7 @@ export default { "String!" ], "input": [ - 361, + 364, "UpdateViewFilterGroupInput!" ] } @@ -7148,7 +7271,7 @@ export default { 60, { "input": [ - 362, + 365, "CreateViewFilterInput!" ] } @@ -7157,7 +7280,7 @@ export default { 60, { "input": [ - 363, + 366, "UpdateViewFilterInput!" ] } @@ -7166,7 +7289,7 @@ export default { 60, { "input": [ - 365, + 368, "DeleteViewFilterInput!" ] } @@ -7175,7 +7298,7 @@ export default { 60, { "input": [ - 366, + 369, "DestroyViewFilterInput!" ] } @@ -7184,7 +7307,7 @@ export default { 66, { "input": [ - 367, + 370, "CreateViewInput!" ] } @@ -7197,7 +7320,7 @@ export default { "String!" ], "input": [ - 368, + 371, "UpdateViewInput!" ] } @@ -7224,7 +7347,7 @@ export default { 66, { "input": [ - 369, + 372, "UpsertViewWidgetInput!" ] } @@ -7233,7 +7356,7 @@ export default { 63, { "input": [ - 374, + 377, "CreateViewSortInput!" ] } @@ -7242,7 +7365,7 @@ export default { 63, { "input": [ - 375, + 378, "UpdateViewSortInput!" ] } @@ -7251,7 +7374,7 @@ export default { 6, { "input": [ - 377, + 380, "DeleteViewSortInput!" ] } @@ -7260,7 +7383,7 @@ export default { 6, { "input": [ - 378, + 381, "DestroyViewSortInput!" ] } @@ -7269,7 +7392,7 @@ export default { 56, { "input": [ - 379, + 382, "UpdateViewFieldInput!" ] } @@ -7278,7 +7401,7 @@ export default { 56, { "input": [ - 381, + 384, "CreateViewFieldInput!" ] } @@ -7287,7 +7410,7 @@ export default { 56, { "inputs": [ - 381, + 384, "[CreateViewFieldInput!]!" ] } @@ -7296,7 +7419,7 @@ export default { 56, { "input": [ - 382, + 385, "DeleteViewFieldInput!" ] } @@ -7305,7 +7428,7 @@ export default { 56, { "input": [ - 383, + 386, "DestroyViewFieldInput!" ] } @@ -7314,7 +7437,7 @@ export default { 65, { "input": [ - 384, + 387, "UpdateViewFieldGroupInput!" ] } @@ -7323,7 +7446,7 @@ export default { 65, { "input": [ - 386, + 389, "CreateViewFieldGroupInput!" ] } @@ -7332,7 +7455,7 @@ export default { 65, { "inputs": [ - 386, + 389, "[CreateViewFieldGroupInput!]!" ] } @@ -7341,7 +7464,7 @@ export default { 65, { "input": [ - 387, + 390, "DeleteViewFieldGroupInput!" ] } @@ -7350,7 +7473,7 @@ export default { 65, { "input": [ - 388, + 391, "DestroyViewFieldGroupInput!" ] } @@ -7359,7 +7482,7 @@ export default { 66, { "input": [ - 389, + 392, "UpsertFieldsWidgetInput!" ] } @@ -7368,7 +7491,7 @@ export default { 2, { "input": [ - 392, + 395, "CreateApiKeyInput!" ] } @@ -7377,7 +7500,7 @@ export default { 2, { "input": [ - 393, + 396, "UpdateApiKeyInput!" ] } @@ -7386,7 +7509,7 @@ export default { 2, { "input": [ - 394, + 397, "RevokeApiKeyInput!" ] } @@ -7544,7 +7667,7 @@ export default { 127, { "input": [ - 395, + 398, "CreateApprovedAccessDomainInput!" ] } @@ -7553,7 +7676,7 @@ export default { 6, { "input": [ - 396, + 399, "DeleteApprovedAccessDomainInput!" ] } @@ -7562,7 +7685,7 @@ export default { 127, { "input": [ - 397, + 400, "ValidateApprovedAccessDomainInput!" ] } @@ -7571,7 +7694,7 @@ export default { 120, { "input": [ - 398, + 401, "CreatePageLayoutTabInput!" ] } @@ -7584,7 +7707,7 @@ export default { "String!" ], "input": [ - 399, + 402, "UpdatePageLayoutTabInput!" ] } @@ -7602,7 +7725,7 @@ export default { 121, { "input": [ - 400, + 403, "CreatePageLayoutInput!" ] } @@ -7615,7 +7738,7 @@ export default { "String!" ], "input": [ - 401, + 404, "UpdatePageLayoutInput!" ] } @@ -7637,7 +7760,7 @@ export default { "String!" ], "input": [ - 402, + 405, "UpdatePageLayoutWithTabsInput!" ] } @@ -7673,7 +7796,7 @@ export default { 82, { "input": [ - 406, + 409, "CreatePageLayoutWidgetInput!" ] } @@ -7686,7 +7809,7 @@ export default { "String!" ], "input": [ - 407, + 410, "UpdatePageLayoutWidgetInput!" ] } @@ -7704,7 +7827,7 @@ export default { 25, { "input": [ - 408, + 411, "CreateAgentInput!" ] } @@ -7713,7 +7836,7 @@ export default { 25, { "input": [ - 409, + 412, "UpdateAgentInput!" ] } @@ -7722,7 +7845,7 @@ export default { 25, { "input": [ - 339, + 342, "AgentIdInput!" ] } @@ -7731,7 +7854,7 @@ export default { 52, { "input": [ - 410, + 413, "CreateOneObjectInput!" ] } @@ -7740,7 +7863,7 @@ export default { 52, { "input": [ - 412, + 415, "DeleteOneObjectInput!" ] } @@ -7749,7 +7872,7 @@ export default { 52, { "input": [ - 413, + 416, "UpdateOneObjectInput!" ] } @@ -7758,7 +7881,7 @@ export default { 45, { "input": [ - 415, + 418, "CreateOneIndexInput!" ] } @@ -7767,7 +7890,7 @@ export default { 45, { "input": [ - 418, + 421, "DeleteOneIndexInput!" ] } @@ -7776,7 +7899,7 @@ export default { 41, { "input": [ - 340, + 343, "LogicFunctionIdInput!" ] } @@ -7785,7 +7908,7 @@ export default { 41, { "input": [ - 419, + 422, "CreateLogicFunctionFromSourceInput!" ] } @@ -7794,7 +7917,7 @@ export default { 167, { "input": [ - 420, + 423, "ExecuteOneLogicFunctionInput!" ] } @@ -7803,7 +7926,7 @@ export default { 6, { "input": [ - 421, + 424, "UpdateLogicFunctionFromSourceInput!" ] } @@ -7812,7 +7935,7 @@ export default { 35, { "input": [ - 423, + 426, "CreateCommandMenuItemInput!" ] } @@ -7821,7 +7944,7 @@ export default { 35, { "input": [ - 424, + 427, "UpdateCommandMenuItemInput!" ] } @@ -7848,7 +7971,7 @@ export default { 34, { "input": [ - 425, + 428, "CreateFrontComponentInput!" ] } @@ -7857,7 +7980,7 @@ export default { 34, { "input": [ - 426, + 429, "UpdateFrontComponentInput!" ] } @@ -7875,7 +7998,7 @@ export default { 72, { "data": [ - 428, + 431, "ActivateWorkspaceInput!" ] } @@ -7884,7 +8007,7 @@ export default { 72, { "data": [ - 429, + 432, "UpdateWorkspaceInput!" ] } @@ -7899,7 +8022,7 @@ export default { 43, { "input": [ - 430, + 433, "CreateOneFieldMetadataInput!" ] } @@ -7908,7 +8031,7 @@ export default { 43, { "input": [ - 432, + 435, "UpdateOneFieldMetadataInput!" ] } @@ -7917,7 +8040,7 @@ export default { 43, { "input": [ - 434, + 437, "DeleteOneFieldInput!" ] } @@ -7926,7 +8049,7 @@ export default { 62, { "input": [ - 435, + 438, "CreateViewGroupInput!" ] } @@ -7935,7 +8058,7 @@ export default { 62, { "inputs": [ - 435, + 438, "[CreateViewGroupInput!]!" ] } @@ -7944,7 +8067,7 @@ export default { 62, { "input": [ - 436, + 439, "UpdateViewGroupInput!" ] } @@ -7953,7 +8076,7 @@ export default { 62, { "inputs": [ - 436, + 439, "[UpdateViewGroupInput!]!" ] } @@ -7962,7 +8085,7 @@ export default { 62, { "input": [ - 438, + 441, "DeleteViewGroupInput!" ] } @@ -7971,7 +8094,7 @@ export default { 62, { "input": [ - 439, + 442, "DestroyViewGroupInput!" ] } @@ -7980,7 +8103,7 @@ export default { 6, { "workspaceMigration": [ - 440, + 443, "WorkspaceMigrationInput!" ] } @@ -7998,7 +8121,7 @@ export default { 198, { "input": [ - 443, + 446, "CreateApplicationRegistrationInput!" ] } @@ -8007,7 +8130,7 @@ export default { 8, { "input": [ - 444, + 447, "UpdateApplicationRegistrationInput!" ] } @@ -8034,7 +8157,7 @@ export default { 5, { "input": [ - 446, + 449, "CreateApplicationRegistrationVariableInput!" ] } @@ -8043,7 +8166,7 @@ export default { 5, { "input": [ - 447, + 450, "UpdateApplicationRegistrationVariableInput!" ] } @@ -8061,7 +8184,7 @@ export default { 8, { "file": [ - 359, + 362, "Upload!" ], "universalIdentifier": [ @@ -8099,7 +8222,7 @@ export default { 29, { "createRoleInput": [ - 449, + 452, "CreateRoleInput!" ] } @@ -8108,7 +8231,7 @@ export default { 29, { "updateRoleInput": [ - 450, + 453, "UpdateRoleInput!" ] } @@ -8126,7 +8249,7 @@ export default { 16, { "upsertObjectPermissionsInput": [ - 452, + 455, "UpsertObjectPermissionsInput!" ] } @@ -8135,7 +8258,7 @@ export default { 27, { "upsertPermissionFlagsInput": [ - 454, + 457, "UpsertPermissionFlagsInput!" ] } @@ -8144,7 +8267,7 @@ export default { 26, { "upsertFieldPermissionsInput": [ - 455, + 458, "UpsertFieldPermissionsInput!" ] } @@ -8153,7 +8276,7 @@ export default { 232, { "input": [ - 457, + 460, "UpsertRowLevelPermissionPredicatesInput!" ] } @@ -8181,37 +8304,37 @@ export default { } ], "sendEmailViaEmailingDomain": [ - 282, + 285, { "input": [ - 460, + 463, "SendEmailViaDomainInput!" ] } ], "sendMessageCampaign": [ - 284, + 287, { "input": [ - 461, + 464, "SendMessageCampaignInput!" ] } ], "createUnsubscribeTopic": [ - 285, + 288, { "input": [ - 462, + 465, "CreateUnsubscribeTopicInput!" ] } ], "updateUnsubscribeTopic": [ - 285, + 288, { "input": [ - 463, + 466, "UpdateUnsubscribeTopicInput!" ] } @@ -8226,25 +8349,25 @@ export default { } ], "updateMessageChannel": [ - 272, + 275, { "input": [ - 464, + 467, "UpdateMessageChannelInput!" ] } ], "createEmailGroupChannel": [ - 280, + 283, { "input": [ - 466, + 469, "CreateEmailGroupChannelInput!" ] } ], "deleteEmailGroupChannel": [ - 272, + 275, { "id": [ 3, @@ -8253,10 +8376,10 @@ export default { } ], "createEmailingDomain": [ - 270, + 273, { "input": [ - 467, + 470, "CreateEmailingDomainInput!" ] } @@ -8271,7 +8394,7 @@ export default { } ], "verifyEmailingDomain": [ - 270, + 273, { "id": [ 1, @@ -8289,34 +8412,34 @@ export default { } ], "runAgent": [ - 297, + 300, { "input": [ - 468, + 471, "RunAgentInput!" ] } ], "createWebhook": [ - 294, + 297, { "input": [ - 469, + 472, "CreateWebhookInput!" ] } ], "updateWebhook": [ - 294, + 297, { "input": [ - 470, + 473, "UpdateWebhookInput!" ] } ], "deleteWebhook": [ - 294, + 297, { "id": [ 3, @@ -8325,37 +8448,37 @@ export default { } ], "updateMessageFolder": [ - 330, + 333, { "input": [ - 472, + 475, "UpdateMessageFolderInput!" ] } ], "updateMessageFolders": [ - 330, + 333, { "input": [ - 474, + 477, "UpdateMessageFoldersInput!" ] } ], "updateCalendarChannel": [ - 325, + 328, { "input": [ - 475, + 478, "UpdateCalendarChannelInput!" ] } ], "createChatThread": [ - 315 + 318 ], "sendChatMessage": [ - 320, + 323, { "threadId": [ 3, @@ -8376,13 +8499,13 @@ export default { 1 ], "fileAttachments": [ - 477, + 480, "[FileAttachmentInput!]" ] } ], "retryChatMessage": [ - 320, + 323, { "threadId": [ 3, @@ -8394,7 +8517,7 @@ export default { } ], "answerAgentChatQuestion": [ - 320, + 323, { "threadId": [ 3, @@ -8405,7 +8528,7 @@ export default { "UUID!" ], "answers": [ - 478, + 481, "[AgentChatQuestionAnswerInput!]!" ], "modelId": [ @@ -8423,7 +8546,7 @@ export default { } ], "renameChatThread": [ - 315, + 318, { "id": [ 3, @@ -8436,7 +8559,7 @@ export default { } ], "archiveChatThread": [ - 315, + 318, { "id": [ 3, @@ -8445,7 +8568,7 @@ export default { } ], "unarchiveChatThread": [ - 315, + 318, { "id": [ 3, @@ -8472,25 +8595,25 @@ export default { } ], "createSkill": [ - 313, + 316, { "input": [ - 479, + 482, "CreateSkillInput!" ] } ], "updateSkill": [ - 313, + 316, { "input": [ - 480, + 483, "UpdateSkillInput!" ] } ], "deleteSkill": [ - 313, + 316, { "id": [ 3, @@ -8499,7 +8622,7 @@ export default { } ], "activateSkill": [ - 313, + 316, { "id": [ 3, @@ -8508,7 +8631,7 @@ export default { } ], "deactivateSkill": [ - 313, + 316, { "id": [ 3, @@ -8517,7 +8640,7 @@ export default { } ], "evaluateAgentTurn": [ - 322, + 325, { "turnId": [ 3, @@ -8526,7 +8649,7 @@ export default { } ], "runEvaluationInput": [ - 323, + 326, { "agentId": [ 3, @@ -8542,7 +8665,7 @@ export default { 245, { "input": [ - 481, + 484, "GetAuthorizationUrlForSSOInput!" ] } @@ -8708,7 +8831,7 @@ export default { 248, { "input": [ - 482 + 485 ] } ], @@ -8720,7 +8843,7 @@ export default { "String!" ], "file": [ - 359, + 362, "Upload!" ] } @@ -8863,7 +8986,7 @@ export default { 6, { "input": [ - 483, + 486, "UpdateWorkspaceMemberSettingsInput!" ] } @@ -8897,7 +9020,7 @@ export default { 223, { "input": [ - 484, + 487, "SetupOIDCSsoInput!" ] } @@ -8906,7 +9029,7 @@ export default { 223, { "input": [ - 485, + 488, "SetupSAMLSsoInput!" ] } @@ -8915,7 +9038,7 @@ export default { 219, { "input": [ - 486, + 489, "DeleteSsoInput!" ] } @@ -8924,13 +9047,13 @@ export default { 220, { "input": [ - 487, + 490, "EditSsoInput!" ] } ], "createObjectEvent": [ - 309, + 312, { "event": [ 1, @@ -8950,10 +9073,10 @@ export default { } ], "trackAnalytics": [ - 309, + 312, { "type": [ - 488, + 491, "AnalyticsType!" ], "name": [ @@ -8968,7 +9091,7 @@ export default { } ], "duplicateDashboard": [ - 307, + 310, { "id": [ 3, @@ -8990,25 +9113,25 @@ export default { } ], "createCalendarEvent": [ - 299, + 302, { "input": [ - 489, + 492, "CreateCalendarEventInput!" ] } ], "sendEmail": [ - 308, + 311, { "input": [ - 490, + 493, "SendEmailInput!" ] } ], "startChannelSync": [ - 298, + 301, { "connectedAccountId": [ 3, @@ -9017,14 +9140,14 @@ export default { } ], "saveImapSmtpCaldavAccount": [ - 293, + 296, { "handle": [ 1, "String!" ], "connectionParameters": [ - 492, + 495, "EmailAccountConnectionParameters!" ], "id": [ @@ -9036,13 +9159,13 @@ export default { 169, { "input": [ - 494, + 497, "UpdateLabPublicFeatureFlagInput!" ] } ], "createPublicDomain": [ - 268, + 271, { "domain": [ 1, @@ -9076,7 +9199,7 @@ export default { 75, { "input": [ - 495, + 498, "CreateOneAppTokenInput!" ] } @@ -9146,7 +9269,7 @@ export default { 265, { "file": [ - 359, + 362, "Upload!" ], "applicationUniversalIdentifier": [ @@ -9154,7 +9277,7 @@ export default { "String!" ], "fileFolder": [ - 358, + 361, "FileFolder!" ], "filePath": [ @@ -9263,7 +9386,7 @@ export default { 3 ], "update": [ - 357 + 360 ], "__typename": [ 1 @@ -9374,7 +9497,7 @@ export default { 3 ], "update": [ - 364 + 367 ], "__typename": [ 1 @@ -9539,16 +9662,16 @@ export default { 3 ], "viewFields": [ - 370 + 373 ], "viewFilters": [ - 371 + 374 ], "viewFilterGroups": [ - 372 + 375 ], "viewSorts": [ - 373 + 376 ], "__typename": [ 1 @@ -9659,7 +9782,7 @@ export default { 3 ], "update": [ - 376 + 379 ], "__typename": [ 1 @@ -9697,7 +9820,7 @@ export default { 3 ], "update": [ - 380 + 383 ], "__typename": [ 1 @@ -9773,7 +9896,7 @@ export default { 3 ], "update": [ - 385 + 388 ], "__typename": [ 1 @@ -9837,10 +9960,10 @@ export default { 3 ], "groups": [ - 390 + 393 ], "fields": [ - 391 + 394 ], "__typename": [ 1 @@ -9860,7 +9983,7 @@ export default { 6 ], "fields": [ - 391 + 394 ], "__typename": [ 1 @@ -10028,7 +10151,7 @@ export default { 3 ], "tabs": [ - 403 + 406 ], "__typename": [ 1 @@ -10051,7 +10174,7 @@ export default { 86 ], "widgets": [ - 404 + 407 ], "__typename": [ 1 @@ -10074,7 +10197,7 @@ export default { 3 ], "gridPosition": [ - 405 + 408 ], "position": [ 7 @@ -10123,7 +10246,7 @@ export default { 3 ], "gridPosition": [ - 405 + 408 ], "position": [ 7 @@ -10149,7 +10272,7 @@ export default { 3 ], "gridPosition": [ - 405 + 408 ], "position": [ 7 @@ -10242,7 +10365,7 @@ export default { }, "CreateOneObjectInput": { "object": [ - 411 + 414 ], "__typename": [ 1 @@ -10302,7 +10425,7 @@ export default { }, "UpdateOneObjectInput": { "update": [ - 414 + 417 ], "id": [ 3 @@ -10357,7 +10480,7 @@ export default { }, "CreateOneIndexInput": { "index": [ - 416 + 419 ], "__typename": [ 1 @@ -10368,7 +10491,7 @@ export default { 3 ], "fields": [ - 417 + 420 ], "indexType": [ 46 @@ -10453,7 +10576,7 @@ export default { 3 ], "update": [ - 422 + 425 ], "__typename": [ 1 @@ -10613,7 +10736,7 @@ export default { 3 ], "update": [ - 427 + 430 ], "__typename": [ 1 @@ -10720,7 +10843,7 @@ export default { }, "CreateOneFieldMetadataInput": { "field": [ - 431 + 434 ], "__typename": [ 1 @@ -10793,7 +10916,7 @@ export default { 3 ], "update": [ - 433 + 436 ], "__typename": [ 1 @@ -10888,7 +11011,7 @@ export default { 3 ], "update": [ - 437 + 440 ], "__typename": [ 1 @@ -10929,7 +11052,7 @@ export default { }, "WorkspaceMigrationInput": { "actions": [ - 441 + 444 ], "__typename": [ 1 @@ -10937,10 +11060,10 @@ export default { }, "WorkspaceMigrationDeleteActionInput": { "type": [ - 442 + 445 ], "metadataName": [ - 333 + 336 ], "universalIdentifier": [ 1 @@ -10972,7 +11095,7 @@ export default { 1 ], "update": [ - 445 + 448 ], "__typename": [ 1 @@ -11023,7 +11146,7 @@ export default { 1 ], "update": [ - 448 + 451 ], "__typename": [ 1 @@ -11089,7 +11212,7 @@ export default { }, "UpdateRoleInput": { "update": [ - 451 + 454 ], "id": [ 3 @@ -11144,7 +11267,7 @@ export default { 3 ], "objectPermissions": [ - 453 + 456 ], "__typename": [ 1 @@ -11186,7 +11309,7 @@ export default { 3 ], "fieldPermissions": [ - 456 + 459 ], "__typename": [ 1 @@ -11217,10 +11340,10 @@ export default { 3 ], "predicates": [ - 458 + 461 ], "predicateGroups": [ - 459 + 462 ], "__typename": [ 1 @@ -11338,7 +11461,7 @@ export default { 1 ], "visibility": [ - 286 + 289 ], "__typename": [ 1 @@ -11355,7 +11478,7 @@ export default { 1 ], "visibility": [ - 286 + 289 ], "__typename": [ 1 @@ -11366,7 +11489,7 @@ export default { 3 ], "update": [ - 465 + 468 ], "__typename": [ 1 @@ -11374,16 +11497,16 @@ export default { }, "UpdateMessageChannelInputUpdates": { "visibility": [ - 273 + 276 ], "isContactAutoCreationEnabled": [ 6 ], "contactAutoCreationPolicy": [ - 275 + 278 ], "messageFolderImportPolicy": [ - 276 + 279 ], "isSyncEnabled": [ 6 @@ -11450,7 +11573,7 @@ export default { 3 ], "update": [ - 471 + 474 ], "__typename": [ 1 @@ -11478,7 +11601,7 @@ export default { 3 ], "update": [ - 473 + 476 ], "__typename": [ 1 @@ -11497,7 +11620,7 @@ export default { 3 ], "update": [ - 473 + 476 ], "__typename": [ 1 @@ -11508,7 +11631,7 @@ export default { 3 ], "update": [ - 476 + 479 ], "__typename": [ 1 @@ -11516,13 +11639,13 @@ export default { }, "UpdateCalendarChannelInputUpdates": { "visibility": [ - 328 + 331 ], "isContactAutoCreationEnabled": [ 6 ], "contactAutoCreationPolicy": [ - 329 + 332 ], "isSyncEnabled": [ 6 @@ -11762,7 +11885,7 @@ export default { 1 ], "files": [ - 491 + 494 ], "__typename": [ 1 @@ -11781,13 +11904,13 @@ export default { }, "EmailAccountConnectionParameters": { "IMAP": [ - 493 + 496 ], "SMTP": [ - 493 + 496 ], "CALDAV": [ - 493 + 496 ], "__typename": [ 1 @@ -11826,7 +11949,7 @@ export default { }, "CreateOneAppTokenInput": { "appToken": [ - 496 + 499 ], "__typename": [ 1 @@ -11854,13 +11977,13 @@ export default { 233, { "input": [ - 498, + 501, "LogicFunctionLogsInput!" ] } ], "onAgentChatEvent": [ - 321, + 324, { "threadId": [ 3, @@ -11869,10 +11992,10 @@ export default { } ], "eventLogsLive": [ - 310, + 313, { "table": [ - 344, + 347, "EventLogTable!" ] } diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index 82e0473c4b..b9e8442f00 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -2308,14 +2308,63 @@ export type MarketplaceApp = { export type MarketplaceAppDetail = { __typename?: 'MarketplaceAppDetail'; + aboutDescription?: Maybe; + author?: Maybe; + category?: Maybe; + defaultRoleUniversalIdentifier?: Maybe; + description?: Maybe; + emailSupport?: Maybe; id: Scalars['String']['output']; isFeatured: Scalars['Boolean']['output']; isListed: Scalars['Boolean']['output']; + issueReportUrl?: Maybe; latestAvailableVersion?: Maybe; + logo?: Maybe; + /** @deprecated Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead */ manifest?: Maybe; name: Scalars['String']['output']; + roles?: Maybe>; + screenshots: Array; sourcePackage?: Maybe; sourceType: ApplicationRegistrationSourceType; + termsUrl?: Maybe; + universalIdentifier: Scalars['String']['output']; + websiteUrl?: Maybe; +}; + +export type MarketplaceAppRole = { + __typename?: 'MarketplaceAppRole'; + canAccessAllTools?: Maybe; + canDestroyAllObjectRecords?: Maybe; + canReadAllObjectRecords?: Maybe; + canSoftDeleteAllObjectRecords?: Maybe; + canUpdateAllObjectRecords?: Maybe; + canUpdateAllSettings?: Maybe; + description?: Maybe; + fieldPermissions?: Maybe>; + icon?: Maybe; + label: Scalars['String']['output']; + objectPermissions?: Maybe>; + permissionFlagUniversalIdentifiers?: Maybe>; + universalIdentifier: Scalars['String']['output']; +}; + +export type MarketplaceAppRoleFieldPermission = { + __typename?: 'MarketplaceAppRoleFieldPermission'; + canReadFieldValue?: Maybe; + canUpdateFieldValue?: Maybe; + fieldUniversalIdentifier: Scalars['String']['output']; + objectUniversalIdentifier: Scalars['String']['output']; + universalIdentifier: Scalars['String']['output']; +}; + +export type MarketplaceAppRoleObjectPermission = { + __typename?: 'MarketplaceAppRoleObjectPermission'; + canDestroyObjectRecords?: Maybe; + canReadObjectRecords?: Maybe; + canSoftDeleteObjectRecords?: Maybe; + canUpdateObjectRecords?: Maybe; + objectUniversalIdentifier: Scalars['String']['output']; universalIdentifier: Scalars['String']['output']; }; @@ -7176,7 +7225,7 @@ export type GetLogicFunctionSourceCodeQueryVariables = Exact<{ export type GetLogicFunctionSourceCodeQuery = { __typename?: 'Query', getLogicFunctionSourceCode?: string | null }; -export type MarketplaceAppDetailFieldsFragment = { __typename?: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isFeatured: boolean, manifest?: any | null }; +export type MarketplaceAppDetailFieldsFragment = { __typename?: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isFeatured: boolean, description?: string | null, author?: string | null, category?: string | null, logo?: string | null, websiteUrl?: string | null, aboutDescription?: string | null, termsUrl?: string | null, emailSupport?: string | null, issueReportUrl?: string | null, screenshots: Array, defaultRoleUniversalIdentifier?: string | null, roles?: Array<{ __typename?: 'MarketplaceAppRole', universalIdentifier: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings?: boolean | null, canAccessAllTools?: boolean | null, canReadAllObjectRecords?: boolean | null, canUpdateAllObjectRecords?: boolean | null, canSoftDeleteAllObjectRecords?: boolean | null, canDestroyAllObjectRecords?: boolean | null, permissionFlagUniversalIdentifiers?: Array | null, objectPermissions?: Array<{ __typename?: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null, fieldPermissions?: Array<{ __typename?: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null }> | null }> | null }; export type MarketplaceAppFieldsFragment = { __typename?: 'MarketplaceApp', id: string, name: string, description: string, author: string, category: string, logo?: string | null, sourcePackage?: string | null, isFeatured: boolean }; @@ -7205,7 +7254,14 @@ export type FindMarketplaceAppDetailQueryVariables = Exact<{ }>; -export type FindMarketplaceAppDetailQuery = { __typename?: 'Query', findMarketplaceAppDetail: { __typename?: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isFeatured: boolean, manifest?: any | null } }; +export type FindMarketplaceAppDetailQuery = { __typename?: 'Query', findMarketplaceAppDetail: { __typename?: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isFeatured: boolean, description?: string | null, author?: string | null, category?: string | null, logo?: string | null, websiteUrl?: string | null, aboutDescription?: string | null, termsUrl?: string | null, emailSupport?: string | null, issueReportUrl?: string | null, screenshots: Array, defaultRoleUniversalIdentifier?: string | null, roles?: Array<{ __typename?: 'MarketplaceAppRole', universalIdentifier: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings?: boolean | null, canAccessAllTools?: boolean | null, canReadAllObjectRecords?: boolean | null, canUpdateAllObjectRecords?: boolean | null, canSoftDeleteAllObjectRecords?: boolean | null, canDestroyAllObjectRecords?: boolean | null, permissionFlagUniversalIdentifiers?: Array | null, objectPermissions?: Array<{ __typename?: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null, fieldPermissions?: Array<{ __typename?: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null }> | null }> | null } }; + +export type FindMarketplaceAppManifestQueryVariables = Exact<{ + universalIdentifier: Scalars['String']['input']; +}>; + + +export type FindMarketplaceAppManifestQuery = { __typename?: 'Query', findMarketplaceAppDetail: { __typename?: 'MarketplaceAppDetail', id: string, manifest?: any | null } }; export type NavigationMenuItemFieldsFragment = { __typename?: 'NavigationMenuItem', id: string, type: NavigationMenuItemType, userWorkspaceId?: string | null, targetRecordId?: string | null, targetObjectMetadataId?: string | null, viewId?: string | null, folderId?: string | null, name?: string | null, link?: string | null, icon?: string | null, color?: string | null, pageLayoutId?: string | null, position: number, applicationId?: string | null, createdAt: string, updatedAt: string }; @@ -8741,7 +8797,7 @@ export const CommandMenuItemFieldsFragmentDoc = {"kind":"Document","definitions" export const PageLayoutWidgetFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode; export const PageLayoutTabFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode; export const PageLayoutFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; -export const MarketplaceAppDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"manifest"}}]}}]} as unknown as DocumentNode; +export const MarketplaceAppDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"screenshots"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode; export const MarketplaceAppFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceApp"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}}]}}]} as unknown as DocumentNode; export const NavigationMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; export const NavigationMenuItemQueryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordIdentifier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifier"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; @@ -8872,7 +8928,8 @@ export const GetLogicFunctionSourceCodeDocument = {"kind":"Document","definition export const InstallApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InstallApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"installApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; export const UpgradeApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpgradeApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"targetVersion"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upgradeApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"appRegistrationId"}}},{"kind":"Argument","name":{"kind":"Name","value":"targetVersion"},"value":{"kind":"Variable","name":{"kind":"Name","value":"targetVersion"}}}]}]}}]} as unknown as DocumentNode; export const FindManyMarketplaceAppsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyMarketplaceApps"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyMarketplaceApps"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceApp"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}}]}}]} as unknown as DocumentNode; -export const FindMarketplaceAppDetailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppDetail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppDetailFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"manifest"}}]}}]} as unknown as DocumentNode; +export const FindMarketplaceAppDetailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppDetail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppDetailFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"screenshots"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode; +export const FindMarketplaceAppManifestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppManifest"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"manifest"}}]}}]}}]} as unknown as DocumentNode; export const CreateManyNavigationMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyNavigationMenuItems"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateNavigationMenuItemInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyNavigationMenuItems"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordIdentifier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifier"}}]}}]}}]} as unknown as DocumentNode; export const DeleteManyNavigationMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteManyNavigationMenuItems"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ids"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteManyNavigationMenuItems"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ids"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordIdentifier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifier"}}]}}]}}]} as unknown as DocumentNode; export const UpdateManyNavigationMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateManyNavigationMenuItems"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateOneNavigationMenuItemInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateManyNavigationMenuItems"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordIdentifier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifier"}}]}}]}}]} as unknown as DocumentNode; diff --git a/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts b/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts index 39a1721cc6..68350e5e26 100644 --- a/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts +++ b/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts @@ -10,6 +10,44 @@ export const MARKETPLACE_APP_DETAIL_FRAGMENT = gql` latestAvailableVersion isListed isFeatured - manifest + description + author + category + logo + websiteUrl + aboutDescription + termsUrl + emailSupport + issueReportUrl + screenshots + defaultRoleUniversalIdentifier + roles { + universalIdentifier + label + description + icon + canUpdateAllSettings + canAccessAllTools + canReadAllObjectRecords + canUpdateAllObjectRecords + canSoftDeleteAllObjectRecords + canDestroyAllObjectRecords + permissionFlagUniversalIdentifiers + objectPermissions { + universalIdentifier + objectUniversalIdentifier + canReadObjectRecords + canUpdateObjectRecords + canSoftDeleteObjectRecords + canDestroyObjectRecords + } + fieldPermissions { + universalIdentifier + objectUniversalIdentifier + fieldUniversalIdentifier + canReadFieldValue + canUpdateFieldValue + } + } } `; diff --git a/packages/twenty-front/src/modules/marketplace/graphql/queries/findMarketplaceAppManifest.ts b/packages/twenty-front/src/modules/marketplace/graphql/queries/findMarketplaceAppManifest.ts new file mode 100644 index 0000000000..634285e935 --- /dev/null +++ b/packages/twenty-front/src/modules/marketplace/graphql/queries/findMarketplaceAppManifest.ts @@ -0,0 +1,10 @@ +import gql from 'graphql-tag'; + +export const FIND_MARKETPLACE_APP_MANIFEST = gql` + query FindMarketplaceAppManifest($universalIdentifier: String!) { + findMarketplaceAppDetail(universalIdentifier: $universalIdentifier) { + id + manifest + } + } +`; diff --git a/packages/twenty-front/src/modules/marketplace/utils/buildRoleManifestFromMarketplaceAppRole.ts b/packages/twenty-front/src/modules/marketplace/utils/buildRoleManifestFromMarketplaceAppRole.ts new file mode 100644 index 0000000000..496c454269 --- /dev/null +++ b/packages/twenty-front/src/modules/marketplace/utils/buildRoleManifestFromMarketplaceAppRole.ts @@ -0,0 +1,36 @@ +import { type RoleManifest } from 'twenty-shared/application'; +import { type MarketplaceAppRole } from '~/generated-metadata/graphql'; + +export const buildRoleManifestFromMarketplaceAppRole = ( + role: MarketplaceAppRole, +): RoleManifest => ({ + universalIdentifier: role.universalIdentifier, + label: role.label, + description: role.description ?? undefined, + icon: role.icon ?? undefined, + canUpdateAllSettings: role.canUpdateAllSettings ?? undefined, + canAccessAllTools: role.canAccessAllTools ?? undefined, + canReadAllObjectRecords: role.canReadAllObjectRecords ?? undefined, + canUpdateAllObjectRecords: role.canUpdateAllObjectRecords ?? undefined, + canSoftDeleteAllObjectRecords: + role.canSoftDeleteAllObjectRecords ?? undefined, + canDestroyAllObjectRecords: role.canDestroyAllObjectRecords ?? undefined, + permissionFlagUniversalIdentifiers: + role.permissionFlagUniversalIdentifiers ?? undefined, + objectPermissions: role.objectPermissions?.map((permission) => ({ + universalIdentifier: permission.universalIdentifier, + objectUniversalIdentifier: permission.objectUniversalIdentifier, + canReadObjectRecords: permission.canReadObjectRecords ?? undefined, + canUpdateObjectRecords: permission.canUpdateObjectRecords ?? undefined, + canSoftDeleteObjectRecords: + permission.canSoftDeleteObjectRecords ?? undefined, + canDestroyObjectRecords: permission.canDestroyObjectRecords ?? undefined, + })), + fieldPermissions: role.fieldPermissions?.map((permission) => ({ + universalIdentifier: permission.universalIdentifier, + objectUniversalIdentifier: permission.objectUniversalIdentifier, + fieldUniversalIdentifier: permission.fieldUniversalIdentifier, + canReadFieldValue: permission.canReadFieldValue ?? undefined, + canUpdateFieldValue: permission.canUpdateFieldValue ?? undefined, + })), +}); diff --git a/packages/twenty-front/src/modules/marketplace/utils/getMarketplaceAppDefaultRoleManifest.ts b/packages/twenty-front/src/modules/marketplace/utils/getMarketplaceAppDefaultRoleManifest.ts new file mode 100644 index 0000000000..b6adaebb29 --- /dev/null +++ b/packages/twenty-front/src/modules/marketplace/utils/getMarketplaceAppDefaultRoleManifest.ts @@ -0,0 +1,20 @@ +import { buildRoleManifestFromMarketplaceAppRole } from '@/marketplace/utils/buildRoleManifestFromMarketplaceAppRole'; +import { type RoleManifest } from 'twenty-shared/application'; +import { isDefined } from 'twenty-shared/utils'; +import { type MarketplaceAppDetail } from '~/generated-metadata/graphql'; + +export const getMarketplaceAppDefaultRoleManifest = ( + detail: + | Pick + | null + | undefined, +): RoleManifest | undefined => { + const defaultRole = detail?.roles?.find( + (role) => + role.universalIdentifier === detail?.defaultRoleUniversalIdentifier, + ); + + return isDefined(defaultRole) + ? buildRoleManifestFromMarketplaceAppRole(defaultRole) + : undefined; +}; diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx index e6946b497b..2bd512d158 100644 --- a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx +++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx @@ -35,6 +35,7 @@ import { import { ApplicationRegistrationSourceType, FindMarketplaceAppDetailDocument, + FindMarketplaceAppManifestDocument, FindOneApplicationDocument, PermissionFlagType, UninstallApplicationDocument, @@ -76,9 +77,15 @@ export const SettingsApplicationDetails = () => { skip: !application?.universalIdentifier, }); + const { data: manifestData } = useQuery(FindMarketplaceAppManifestDocument, { + variables: { universalIdentifier: application?.universalIdentifier ?? '' }, + skip: !application?.universalIdentifier, + }); + const detail = detailData?.findMarketplaceAppDetail; - const manifest = detail?.manifest as Manifest | undefined; - const app = manifest?.application; + const manifest = manifestData?.findMarketplaceAppDetail?.manifest as + | Manifest + | undefined; const currentWorkspace = useAtomStateValue(currentWorkspaceState); const isStandardApplication = isTwentyStandardApplication(application); const isCustomApplication = isWorkspaceCustomApplication( @@ -89,11 +96,11 @@ export const SettingsApplicationDetails = () => { const resolvedDescription = useResolvedApplicationDescription(application); const displayName = - app?.displayName ?? application?.name ?? t`Application details`; - const description = app?.description ?? resolvedDescription; + detail?.name ?? application?.name ?? t`Application details`; + const description = detail?.description ?? resolvedDescription; const getScreenshots = () => { - if (app?.screenshots?.length) return app.screenshots; + if (detail?.screenshots?.length) return detail.screenshots; if (isStandardApplication) return STANDARD_APPLICATION_ILLUSTRATIONS; if (isCustomApplication) return CUSTOM_APPLICATION_ILLUSTRATIONS; return undefined; @@ -254,20 +261,20 @@ export const SettingsApplicationDetails = () => { { skip: !availableApplicationId, }); + const { data: manifestData } = useQuery(FindMarketplaceAppManifestDocument, { + variables: { universalIdentifier: availableApplicationId }, + skip: !availableApplicationId, + }); + const application = applicationData?.findOneApplication; const detail = detailData?.findMarketplaceAppDetail; - const manifest = detail?.manifest as Manifest | undefined; - const app = manifest?.application; + const manifest = manifestData?.findMarketplaceAppDetail?.manifest as + | Manifest + | undefined; - const displayName = app?.displayName ?? detail?.name ?? ''; - const description = app?.description ?? ''; + const displayName = detail?.name ?? ''; + const description = detail?.description ?? ''; const currentVersion = application?.version; const latestAvailableVersion = detail?.latestAvailableVersion; @@ -92,9 +100,7 @@ export const SettingsAvailableApplicationDetails = () => { const isUnlisted = isDefined(detail) && !detail.isListed; const isAlreadyInstalled = isDefined(application); - const defaultRole = manifest?.roles?.find( - (r) => r.universalIdentifier === app?.defaultRoleUniversalIdentifier, - ); + const defaultRole = getMarketplaceAppDefaultRoleManifest(detail); const hasUpdate = isNpmApp && @@ -173,10 +179,9 @@ export const SettingsAvailableApplicationDetails = () => { }, { icon: IconShield, - count: (manifest?.roles ?? []).filter( + count: (detail?.roles ?? []).filter( (role) => - role.universalIdentifier !== - manifest?.application.defaultRoleUniversalIdentifier, + role.universalIdentifier !== detail?.defaultRoleUniversalIdentifier, ).length, one: t`role`, many: t`roles`, @@ -215,10 +220,10 @@ export const SettingsAvailableApplicationDetails = () => { { } latestAvailableVersion={detail.latestAvailableVersion ?? '0.0.0'} developerLinks={{ - websiteUrl: app?.websiteUrl, - termsUrl: app?.termsUrl, - emailSupport: app?.emailSupport, - issueReportUrl: app?.issueReportUrl, + websiteUrl: detail.websiteUrl ?? undefined, + termsUrl: detail.termsUrl ?? undefined, + emailSupport: detail.emailSupport ?? undefined, + issueReportUrl: detail.issueReportUrl ?? undefined, sourcePackageUrl, }} isInstalled={isAlreadyInstalled} @@ -249,7 +254,7 @@ export const SettingsAvailableApplicationDetails = () => { manifestContent={manifest} applicationInfo={{ name: displayName, - logo: app?.logoUrl, + logo: detail.logo, universalIdentifier: detail.universalIdentifier, }} /> @@ -290,7 +295,7 @@ export const SettingsAvailableApplicationDetails = () => { { r.universalIdentifier === app?.defaultRoleUniversalIdentifier, - ); + const defaultRole = getMarketplaceAppDefaultRoleManifest(detail); const handleInstall = async () => { if (installable) { @@ -79,7 +74,7 @@ export const SettingsApplicationRegistrationShareLinkButtons = ({ ({ request: { - query: FindMarketplaceAppDetailDocument, + query: FindMarketplaceAppManifestDocument, variables: { universalIdentifier: APP_UID }, }, result: { @@ -52,7 +52,7 @@ describe('useApplicationManifest', () => { universalIdentifier: APP_UID, name: 'My App', }), - findMarketplaceAppDetailMock(null), + findMarketplaceAppManifestMock(null), ], }); diff --git a/packages/twenty-front/src/pages/settings/layout/hooks/useApplicationManifest.ts b/packages/twenty-front/src/pages/settings/layout/hooks/useApplicationManifest.ts index 92c81e45dc..6c8d7cc0e8 100644 --- a/packages/twenty-front/src/pages/settings/layout/hooks/useApplicationManifest.ts +++ b/packages/twenty-front/src/pages/settings/layout/hooks/useApplicationManifest.ts @@ -1,7 +1,7 @@ import { useQuery } from '@apollo/client/react'; import { type Manifest } from 'twenty-shared/application'; import { - FindMarketplaceAppDetailDocument, + FindMarketplaceAppManifestDocument, FindOneApplicationDocument, } from '~/generated-metadata/graphql'; @@ -20,7 +20,7 @@ export const useApplicationManifest = (applicationId: string) => { const application = appData?.findOneApplication; const { data: detailData, loading: detailLoading } = useQuery( - FindMarketplaceAppDetailDocument, + FindMarketplaceAppManifestDocument, { variables: { universalIdentifier: application?.universalIdentifier ?? '', diff --git a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts index 77750267a4..a9abd494bc 100644 --- a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts +++ b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts @@ -4,6 +4,7 @@ import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator'; import { GraphQLJSON } from 'graphql-type-json'; import { type Manifest } from 'twenty-shared/application'; +import { MarketplaceAppRoleDTO } from 'src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-role.dto'; import { ApplicationRegistrationSourceType } from 'src/engine/core-modules/application/application-registration/enums/application-registration-source-type.enum'; @ObjectType('MarketplaceAppDetail') @@ -44,6 +45,67 @@ export class MarketplaceAppDetailDTO { @Field(() => Boolean) isFeatured: boolean; - @Field(() => GraphQLJSON, { nullable: true }) + @IsOptional() + @IsString() + @Field({ nullable: true }) + description?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + author?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + category?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + logo?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + websiteUrl?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + aboutDescription?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + termsUrl?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + emailSupport?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + issueReportUrl?: string; + + @Field(() => [String]) + screenshots: string[]; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + defaultRoleUniversalIdentifier?: string; + + @IsOptional() + @Field(() => [MarketplaceAppRoleDTO], { nullable: true }) + roles?: MarketplaceAppRoleDTO[]; + + @Field(() => GraphQLJSON, { + nullable: true, + deprecationReason: + 'Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead', + }) manifest?: Manifest; } diff --git a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-role.dto.ts b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-role.dto.ts new file mode 100644 index 0000000000..2ec5d151d6 --- /dev/null +++ b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-role.dto.ts @@ -0,0 +1,129 @@ +import { Field, ObjectType } from '@nestjs/graphql'; + +import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator'; + +@ObjectType('MarketplaceAppRoleObjectPermission') +export class MarketplaceAppRoleObjectPermissionDTO { + @IsString() + @IsNotEmpty() + @Field() + universalIdentifier: string; + + @IsString() + @IsNotEmpty() + @Field() + objectUniversalIdentifier: string; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canReadObjectRecords?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canUpdateObjectRecords?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canSoftDeleteObjectRecords?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canDestroyObjectRecords?: boolean; +} + +@ObjectType('MarketplaceAppRoleFieldPermission') +export class MarketplaceAppRoleFieldPermissionDTO { + @IsString() + @IsNotEmpty() + @Field() + universalIdentifier: string; + + @IsString() + @IsNotEmpty() + @Field() + objectUniversalIdentifier: string; + + @IsString() + @IsNotEmpty() + @Field() + fieldUniversalIdentifier: string; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canReadFieldValue?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canUpdateFieldValue?: boolean; +} + +@ObjectType('MarketplaceAppRole') +export class MarketplaceAppRoleDTO { + @IsString() + @IsNotEmpty() + @Field() + universalIdentifier: string; + + @IsString() + @IsNotEmpty() + @Field() + label: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + description?: string; + + @IsOptional() + @IsString() + @Field({ nullable: true }) + icon?: string; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canUpdateAllSettings?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canAccessAllTools?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canReadAllObjectRecords?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canUpdateAllObjectRecords?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canSoftDeleteAllObjectRecords?: boolean; + + @IsOptional() + @IsBoolean() + @Field(() => Boolean, { nullable: true }) + canDestroyAllObjectRecords?: boolean; + + @IsOptional() + @Field(() => [String], { nullable: true }) + permissionFlagUniversalIdentifiers?: string[]; + + @IsOptional() + @Field(() => [MarketplaceAppRoleObjectPermissionDTO], { nullable: true }) + objectPermissions?: MarketplaceAppRoleObjectPermissionDTO[]; + + @IsOptional() + @Field(() => [MarketplaceAppRoleFieldPermissionDTO], { nullable: true }) + fieldPermissions?: MarketplaceAppRoleFieldPermissionDTO[]; +} diff --git a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts index 94440992b3..fbe4aec013 100644 --- a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts +++ b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts @@ -1,6 +1,7 @@ import { Injectable, Logger } from '@nestjs/common'; -import { isDefined } from 'twenty-shared/utils'; +import { type RoleManifest } from 'twenty-shared/application'; +import { isDefined, isNonEmptyArray } from 'twenty-shared/utils'; import { type ApplicationRegistrationEntity } from 'src/engine/core-modules/application/application-registration/application-registration.entity'; import { @@ -15,6 +16,7 @@ import { import { MarketplaceCatalogSyncCronJob } from 'src/engine/core-modules/application/application-marketplace/crons/marketplace-catalog-sync.cron.job'; import { MarketplaceAppDTO } from 'src/engine/core-modules/application/application-marketplace/dtos/marketplace-app.dto'; import { MarketplaceAppDetailDTO } from 'src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto'; +import { MarketplaceAppRoleDTO } from 'src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-role.dto'; import { InjectMessageQueue } from 'src/engine/core-modules/message-queue/decorators/message-queue.decorator'; import { MessageQueue } from 'src/engine/core-modules/message-queue/message-queue.constants'; import { MessageQueueService } from 'src/engine/core-modules/message-queue/services/message-queue.service'; @@ -115,7 +117,80 @@ export class MarketplaceQueryService { latestAvailableVersion: registration.latestAvailableVersion ?? undefined, isListed: registration.isListed, isFeatured: registration.isFeatured, + description: + registration.description ?? + registration.manifest?.application?.description ?? + undefined, + author: + registration.author ?? + registration.manifest?.application?.author ?? + undefined, + category: + registration.category ?? + registration.manifest?.application?.category ?? + undefined, + logo: registration.logoUrl ?? undefined, + websiteUrl: + registration.websiteUrl ?? + registration.manifest?.application?.websiteUrl ?? + undefined, + aboutDescription: + registration.aboutDescription ?? + registration.manifest?.application?.aboutDescription ?? + undefined, + termsUrl: + registration.termsUrl ?? + registration.manifest?.application?.termsUrl ?? + undefined, + emailSupport: + registration.emailSupport ?? + registration.manifest?.application?.emailSupport ?? + undefined, + issueReportUrl: + registration.issueReportUrl ?? + registration.manifest?.application?.issueReportUrl ?? + undefined, + screenshots: isNonEmptyArray(registration.screenshots) + ? registration.screenshots + : (registration.manifest?.application?.screenshots ?? []), + defaultRoleUniversalIdentifier: + registration.manifest?.application?.defaultRoleUniversalIdentifier, + roles: registration.manifest?.roles?.map((role) => + this.toMarketplaceAppRoleDTO(role), + ), manifest: registration.manifest ?? undefined, }; } + + private toMarketplaceAppRoleDTO(role: RoleManifest): MarketplaceAppRoleDTO { + return { + universalIdentifier: role.universalIdentifier, + label: role.label, + description: role.description, + icon: role.icon, + canUpdateAllSettings: role.canUpdateAllSettings, + canAccessAllTools: role.canAccessAllTools, + canReadAllObjectRecords: role.canReadAllObjectRecords, + canUpdateAllObjectRecords: role.canUpdateAllObjectRecords, + canSoftDeleteAllObjectRecords: role.canSoftDeleteAllObjectRecords, + canDestroyAllObjectRecords: role.canDestroyAllObjectRecords, + permissionFlagUniversalIdentifiers: + role.permissionFlagUniversalIdentifiers, + objectPermissions: role.objectPermissions?.map((permission) => ({ + universalIdentifier: permission.universalIdentifier, + objectUniversalIdentifier: permission.objectUniversalIdentifier, + canReadObjectRecords: permission.canReadObjectRecords, + canUpdateObjectRecords: permission.canUpdateObjectRecords, + canSoftDeleteObjectRecords: permission.canSoftDeleteObjectRecords, + canDestroyObjectRecords: permission.canDestroyObjectRecords, + })), + fieldPermissions: role.fieldPermissions?.map((permission) => ({ + universalIdentifier: permission.universalIdentifier, + objectUniversalIdentifier: permission.objectUniversalIdentifier, + fieldUniversalIdentifier: permission.fieldUniversalIdentifier, + canReadFieldValue: permission.canReadFieldValue, + canUpdateFieldValue: permission.canUpdateFieldValue, + })), + }; + } }