Skip to content

The open alternative to Salesforce, designed for AI.

[BREAKING_CHANGE] Replace setRecordGeneralAccess with setRecordPrivate (#29383)

Charles Bochet295f830f2147
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index 3c7490a7daa..0abdd6bd443 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -3434,7 +3434,7 @@ type Mutation {
sendMessageCampaignTest(input: SendMessageCampaignTestInput!): SendEmailViaDomainOutput!
setAppKeyValue(input: SetAppKeyValueInput!): AppKeyValue!
setEnterpriseKey(enterpriseKey: String!): EnterpriseLicenseInfoDTO!
- setRecordGeneralAccess(accessLevel: RecordShareAccessLevel!, target: RecordTargetInput!): RecordSharingDTO!
+ setRecordPrivate(isPrivate: Boolean!, target: RecordTargetInput!): RecordSharingDTO!
setRecordShare(accessLevel: RecordShareAccessLevel!, principal: RecordSharePrincipalInput!, target: RecordTargetInput!): RecordSharingDTO!
setResourceCreditSubscriptionPrice(priceId: String!): BillingUpdate!
signIn(captchaToken: String, email: String!, locale: String, password: String!, verifyEmailRedirectPath: String): AvailableWorkspacesAndAccessTokens!
@@ -4282,13 +4282,12 @@ enum RecordShareRowCause {
type RecordSharingDTO {
canManageSharing: Boolean!
- defaultGeneralAccessLevel: RecordShareAccessLevel
- generalAccessLevel: RecordShareAccessLevel
hasManagedGeneralAccess: Boolean!
+ isPrivate: Boolean!
+ isShareable: Boolean!
permissions: RecordPermissionsDTO!
roles: [RecordSharingRoleDTO!]!
shares: [RecordSharingGrantDTO!]!
- sharingMode: RecordSharingMode!
}
type RecordSharingGrantDTO {
@@ -4300,16 +4299,6 @@ type RecordSharingGrantDTO {
rowCause: RecordShareRowCause!
}
-"""
-How records of an object are shared: only through roles, private until shared, readable through linked records, or open by default with per-record exceptions
-"""
-enum RecordSharingMode {
- INHERITED
- OPEN_BY_DEFAULT
- PRIVATE
- ROLE_ONLY
-}
-
type RecordSharingRoleDTO {
canRead: Boolean
canUpdate: Boolean
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 4d2d42c2018..310857c67fe 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -2429,7 +2429,7 @@ export interface Mutation {
sendMessageCampaignTest: SendEmailViaDomainOutput
setAppKeyValue: AppKeyValue
setEnterpriseKey: EnterpriseLicenseInfoDTO
- setRecordGeneralAccess: RecordSharingDTO
+ setRecordPrivate: RecordSharingDTO
setRecordShare: RecordSharingDTO
setResourceCreditSubscriptionPrice: BillingUpdate
signIn: AvailableWorkspacesAndAccessTokens
@@ -3166,13 +3166,12 @@ export type RecordShareRowCause = 'APPLICATION' | 'MANUAL' | 'OWNER' | 'RULE'
export interface RecordSharingDTO {
canManageSharing: Scalars['Boolean']
- defaultGeneralAccessLevel?: RecordShareAccessLevel
- generalAccessLevel?: RecordShareAccessLevel
hasManagedGeneralAccess: Scalars['Boolean']
+ isPrivate: Scalars['Boolean']
+ isShareable: Scalars['Boolean']
permissions: RecordPermissionsDTO
roles: RecordSharingRoleDTO[]
shares: RecordSharingGrantDTO[]
- sharingMode: RecordSharingMode
__typename: 'RecordSharingDTO'
}
@@ -3186,10 +3185,6 @@ export interface RecordSharingGrantDTO {
__typename: 'RecordSharingGrantDTO'
}
-
-/** How records of an object are shared: only through roles, private until shared, readable through linked records, or open by default with per-record exceptions */
-export type RecordSharingMode = 'INHERITED' | 'OPEN_BY_DEFAULT' | 'PRIVATE' | 'ROLE_ONLY'
-
export interface RecordSharingRoleDTO {
canRead?: Scalars['Boolean']
canUpdate?: Scalars['Boolean']
@@ -6958,7 +6953,7 @@ export interface MutationGenqlSelection{
sendMessageCampaignTest?: (SendEmailViaDomainOutputGenqlSelection & { __args: {input: SendMessageCampaignTestInput} })
setAppKeyValue?: (AppKeyValueGenqlSelection & { __args: {input: SetAppKeyValueInput} })
setEnterpriseKey?: (EnterpriseLicenseInfoDTOGenqlSelection & { __args: {enterpriseKey: Scalars['String']} })
- setRecordGeneralAccess?: (RecordSharingDTOGenqlSelection & { __args: {accessLevel: RecordShareAccessLevel, target: RecordTargetInput} })
+ setRecordPrivate?: (RecordSharingDTOGenqlSelection & { __args: {isPrivate: Scalars['Boolean'], target: RecordTargetInput} })
setRecordShare?: (RecordSharingDTOGenqlSelection & { __args: {accessLevel: RecordShareAccessLevel, principal: RecordSharePrincipalInput, target: RecordTargetInput} })
setResourceCreditSubscriptionPrice?: (BillingUpdateGenqlSelection & { __args: {priceId: Scalars['String']} })
signIn?: (AvailableWorkspacesAndAccessTokensGenqlSelection & { __args: {captchaToken?: (Scalars['String'] | null), email: Scalars['String'], locale?: (Scalars['String'] | null), password: Scalars['String'], verifyEmailRedirectPath?: (Scalars['String'] | null)} })
@@ -7747,13 +7742,12 @@ export interface RecordSharePrincipalInput {roleId?: (Scalars['UUID'] | null),wo
export interface RecordSharingDTOGenqlSelection{
canManageSharing?: boolean | number
- defaultGeneralAccessLevel?: boolean | number
- generalAccessLevel?: boolean | number
hasManagedGeneralAccess?: boolean | number
+ isPrivate?: boolean | number
+ isShareable?: boolean | number
permissions?: RecordPermissionsDTOGenqlSelection
roles?: RecordSharingRoleDTOGenqlSelection
shares?: RecordSharingGrantDTOGenqlSelection
- sharingMode?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
@@ -12700,13 +12694,6 @@ export const enumRecordShareRowCause = {
RULE: 'RULE' as const
}
-export const enumRecordSharingMode = {
- INHERITED: 'INHERITED' as const,
- OPEN_BY_DEFAULT: 'OPEN_BY_DEFAULT' as const,
- PRIVATE: 'PRIVATE' as const,
- ROLE_ONLY: 'ROLE_ONLY' as const
-}
-
export const enumRelationType = {
MANY_TO_ONE: 'MANY_TO_ONE' as const,
ONE_TO_MANY: 'ONE_TO_MANY' as const
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index 9db816ff8c6..7ac955d9a98 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -87,42 +87,41 @@ export default {
434,
436,
437,
- 440,
- 446,
- 458,
- 460,
- 464,
- 469,
- 489,
+ 445,
+ 457,
+ 459,
+ 463,
+ 468,
+ 488,
+ 500,
501,
- 502,
- 504,
- 529,
- 531,
- 533,
- 597,
- 617,
- 624,
- 626,
- 630,
- 641,
+ 503,
+ 528,
+ 530,
+ 532,
+ 596,
+ 616,
+ 623,
+ 625,
+ 629,
+ 640,
+ 646,
647,
- 648,
+ 649,
650,
- 651,
+ 652,
653,
654,
- 655,
+ 657,
658,
- 659,
- 664,
- 666,
- 669,
+ 663,
+ 665,
+ 668,
+ 673,
674,
675,
- 676,
- 679,
- 680
+ 678,
+ 679
],
"types": {
"ActivateWorkspaceInput": {
@@ -150,7 +149,7 @@ export default {
},
"Agent": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
@@ -162,7 +161,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -192,7 +191,7 @@ export default {
315
],
"roleId": [
- 529
+ 528
],
"triggers": [
315
@@ -207,7 +206,7 @@ export default {
"Boolean": {},
"AgentChatChannel": {
"applicationId": [
- 529
+ 528
],
"color": [
1
@@ -216,7 +215,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isAccessible": [
4
@@ -231,7 +230,7 @@ export default {
6
],
"roleIds": [
- 529
+ 528
],
"__typename": [
1
@@ -247,7 +246,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"label": [
1
@@ -264,7 +263,7 @@ export default {
10
],
"channelId": [
- 529
+ 528
],
"doneCount": [
10
@@ -304,7 +303,7 @@ export default {
4
],
"threadIds": [
- 529
+ 528
],
"__typename": [
1
@@ -405,7 +404,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"isSubscribed": [
4
@@ -423,7 +422,7 @@ export default {
211
],
"threadId": [
- 529
+ 528
],
"updatedAt": [
211
@@ -434,7 +433,7 @@ export default {
},
"AgentIdInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -442,13 +441,13 @@ export default {
},
"AgentMessage": {
"agentId": [
- 529
+ 528
],
"createdAt": [
211
],
"id": [
- 529
+ 528
],
"parts": [
22
@@ -463,19 +462,19 @@ export default {
1
],
"senderUserWorkspaceId": [
- 529
+ 528
],
"senderWorkspaceMemberId": [
- 529
+ 528
],
"status": [
1
],
"threadId": [
- 529
+ 528
],
"turnId": [
- 529
+ 528
],
"__typename": [
1
@@ -492,7 +491,7 @@ export default {
1
],
"fileId": [
- 529
+ 528
],
"fileMediaType": [
1
@@ -501,10 +500,10 @@ export default {
1
],
"id": [
- 529
+ 528
],
"messageId": [
- 529
+ 528
],
"orderIndex": [
10
@@ -566,7 +565,7 @@ export default {
},
"AgentMessageReactionSummary": {
"agentIds": [
- 529
+ 528
],
"emoji": [
1
@@ -575,7 +574,7 @@ export default {
4
],
"workspaceMemberIds": [
- 529
+ 528
],
"__typename": [
1
@@ -601,7 +600,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"input": [
1
@@ -625,7 +624,7 @@ export default {
25
],
"threadId": [
- 529
+ 528
],
"threadTitle": [
1
@@ -640,13 +639,13 @@ export default {
"AgentTurnStatus": {},
"AggregateChartConfiguration": {
"aggregateFieldMetadataId": [
- 529
+ 528
],
"aggregateOperation": [
27
],
"configurationType": [
- 658
+ 657
],
"description": [
1
@@ -766,7 +765,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"name": [
1
@@ -775,7 +774,7 @@ export default {
211
],
"role": [
- 452
+ 451
],
"updatedAt": [
211
@@ -789,7 +788,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"name": [
1
@@ -919,13 +918,13 @@ export default {
1
],
"personId": [
- 529
+ 528
],
"role": [
356
],
"workspaceMemberId": [
- 529
+ 528
],
"__typename": [
1
@@ -939,7 +938,7 @@ export default {
75
],
"applicationRegistrationId": [
- 529
+ 528
],
"applicationVariables": [
78
@@ -960,7 +959,7 @@ export default {
211
],
"defaultLogicFunctionRole": [
- 452
+ 451
],
"defaultRoleId": [
1
@@ -972,10 +971,10 @@ export default {
286
],
"healthCheckLogicFunctionId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"isUninstallBlockedByOtherWorkspaceInstallations": [
4
@@ -984,7 +983,7 @@ export default {
328
],
"logoFileId": [
- 529
+ 528
],
"logoUrl": [
1
@@ -999,13 +998,13 @@ export default {
1
],
"packageJsonFileId": [
- 529
+ 528
],
"settingsCustomTabFrontComponentId": [
- 529
+ 528
],
"settingsMenuItems": [
- 488
+ 487
],
"universalIdentifier": [
1
@@ -1017,7 +1016,7 @@ export default {
1
],
"yarnLockFileId": [
- 529
+ 528
],
"__typename": [
1
@@ -1025,7 +1024,7 @@ export default {
},
"ApplicationAuthorization": {
"applicationId": [
- 529
+ 528
],
"applicationName": [
1
@@ -1037,7 +1036,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"lastAuthorizedAt": [
211
@@ -1049,7 +1048,7 @@ export default {
1
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -1060,7 +1059,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -1068,7 +1067,7 @@ export default {
},
"ApplicationConnectedAccountDTO": {
"applicationId": [
- 529
+ 528
],
"archivedAt": [
211
@@ -1083,7 +1082,7 @@ export default {
425
],
"connectionProviderId": [
- 529
+ 528
],
"createdAt": [
211
@@ -1095,7 +1094,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isOwnedByCurrentUser": [
4
@@ -1122,7 +1121,7 @@ export default {
211
],
"userWorkspaceId": [
- 529
+ 528
],
"visibility": [
1
@@ -1139,7 +1138,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"logoUrl": [
1
@@ -1236,7 +1235,7 @@ export default {
},
"ApplicationFileCompletionError": {
"fileId": [
- 529
+ 528
],
"message": [
1
@@ -1284,7 +1283,7 @@ export default {
279
],
"fileId": [
- 529
+ 528
],
"filePath": [
1
@@ -1494,16 +1493,16 @@ export default {
},
"ApplicationPreferences": {
"applicationId": [
- 529
+ 528
],
"connectionProviders": [
50
],
"settingsMenuItems": [
- 488
+ 487
],
"variables": [
- 629
+ 628
],
"__typename": [
1
@@ -1517,7 +1516,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isConfigured": [
4
@@ -1547,7 +1546,7 @@ export default {
1
],
"ownerWorkspaceId": [
- 529
+ 528
],
"sourcePackage": [
1
@@ -1586,7 +1585,7 @@ export default {
6
],
"versionDistribution": [
- 639
+ 638
],
"__typename": [
1
@@ -1594,7 +1593,7 @@ export default {
},
"ApplicationRegistrationSummary": {
"id": [
- 529
+ 528
],
"latestAvailableVersion": [
1
@@ -1617,7 +1616,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isDeprecated": [
4
@@ -1666,7 +1665,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isDeprecated": [
4
@@ -1708,7 +1707,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isValidated": [
4
@@ -1745,7 +1744,7 @@ export default {
4
],
"sso": [
- 468
+ 467
],
"__typename": [
1
@@ -1805,7 +1804,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"inviteHash": [
1
@@ -1820,10 +1819,10 @@ export default {
1
],
"sso": [
- 467
+ 466
],
"workspaceUrls": [
- 681
+ 680
],
"__typename": [
1
@@ -1854,7 +1853,7 @@ export default {
"AxisNameDisplay": {},
"BarChartConfiguration": {
"aggregateFieldMetadataId": [
- 529
+ 528
],
"aggregateOperation": [
27
@@ -1866,7 +1865,7 @@ export default {
1
],
"configurationType": [
- 658
+ 657
],
"description": [
1
@@ -1902,7 +1901,7 @@ export default {
392
],
"primaryAxisGroupByFieldMetadataId": [
- 529
+ 528
],
"primaryAxisGroupBySubFieldName": [
1
@@ -1923,7 +1922,7 @@ export default {
392
],
"secondaryAxisGroupByFieldMetadataId": [
- 529
+ 528
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -1990,7 +1989,7 @@ export default {
315
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -2032,10 +2031,10 @@ export default {
4
],
"id": [
- 529
+ 528
],
"userCreditsFallback": [
- 630
+ 629
],
"__typename": [
1
@@ -2055,7 +2054,7 @@ export default {
4
],
"status": [
- 502
+ 501
],
"__typename": [
1
@@ -2165,7 +2164,7 @@ export default {
125
],
"recurringInterval": [
- 501
+ 500
],
"stripePriceId": [
1
@@ -2182,7 +2181,7 @@ export default {
125
],
"recurringInterval": [
- 501
+ 500
],
"stripePriceId": [
1
@@ -2329,10 +2328,10 @@ export default {
4
],
"id": [
- 529
+ 528
],
"interval": [
- 501
+ 500
],
"metadata": [
315
@@ -2341,7 +2340,7 @@ export default {
121
],
"status": [
- 502
+ 501
],
"__typename": [
1
@@ -2359,7 +2358,7 @@ export default {
4
],
"id": [
- 529
+ 528
],
"quantity": [
6
@@ -2435,7 +2434,7 @@ export default {
},
"CalendarChannel": {
"connectedAccountId": [
- 529
+ 528
],
"contactAutoCreationPolicy": [
128
@@ -2450,7 +2449,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isContactAutoCreationEnabled": [
4
@@ -2489,7 +2488,7 @@ export default {
"CalendarChannelVisibility": {},
"CalendarConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -2497,7 +2496,7 @@ export default {
},
"CallRecordingSummaryConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -2505,7 +2504,7 @@ export default {
},
"CallRecordingTranscriptConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -2582,7 +2581,7 @@ export default {
"ChartNumberFormat": {},
"ChatConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -2615,7 +2614,7 @@ export default {
},
"ChatThreadsConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -2888,7 +2887,7 @@ export default {
1
],
"sentry": [
- 486
+ 485
],
"serverUrl": [
1
@@ -2897,7 +2896,7 @@ export default {
4
],
"support": [
- 503
+ 502
],
"__typename": [
1
@@ -2930,10 +2929,10 @@ export default {
},
"CommandMenuItem": {
"applicationId": [
- 529
+ 528
],
"availabilityObjectMetadataId": [
- 529
+ 528
],
"availabilityType": [
155
@@ -2945,7 +2944,7 @@ export default {
1
],
"coreWorkflowVersionId": [
- 529
+ 528
],
"createdAt": [
211
@@ -2957,7 +2956,7 @@ export default {
286
],
"frontComponentId": [
- 529
+ 528
],
"hotKeys": [
1
@@ -2966,7 +2965,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -2978,10 +2977,10 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 529
+ 528
],
"pageLayoutId": [
- 529
+ 528
],
"payload": [
156
@@ -2993,13 +2992,13 @@ export default {
1
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
],
"workflowVersionId": [
- 529
+ 528
],
"__typename": [
1
@@ -3030,7 +3029,7 @@ export default {
},
"ConnectedAccountPublicDTO": {
"applicationId": [
- 529
+ 528
],
"archivedAt": [
211
@@ -3045,7 +3044,7 @@ export default {
425
],
"connectionProviderId": [
- 529
+ 528
],
"createdAt": [
211
@@ -3057,7 +3056,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"lastCredentialsRefreshedAt": [
211
@@ -3081,7 +3080,7 @@ export default {
211
],
"userWorkspaceId": [
- 529
+ 528
],
"visibility": [
1
@@ -3099,13 +3098,13 @@ export default {
1
],
"id": [
- 529
+ 528
],
"provider": [
1
],
"userWorkspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -3144,7 +3143,7 @@ export default {
1
],
"roleIds": [
- 529
+ 528
],
"__typename": [
1
@@ -3176,7 +3175,7 @@ export default {
315
],
"roleId": [
- 529
+ 528
],
"triggers": [
315
@@ -3196,7 +3195,7 @@ export default {
1
],
"roleId": [
- 529
+ 528
],
"__typename": [
1
@@ -3204,7 +3203,7 @@ export default {
},
"CreateAppMessageChannelInput": {
"connectedAccountId": [
- 529
+ 528
],
"displayName": [
1
@@ -3213,10 +3212,10 @@ export default {
1
],
"messagingProviderUniversalIdentifier": [
- 529
+ 528
],
"participantHandleFieldUniversalIdentifier": [
- 529
+ 528
],
"visibility": [
352
@@ -3335,7 +3334,7 @@ export default {
},
"CreateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 529
+ 528
],
"availabilityType": [
155
@@ -3347,13 +3346,13 @@ export default {
1
],
"coreWorkflowVersionId": [
- 529
+ 528
],
"engineComponentKey": [
245
],
"frontComponentId": [
- 529
+ 528
],
"hotKeys": [
1
@@ -3368,10 +3367,10 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 529
+ 528
],
"pageLayoutId": [
- 529
+ 528
],
"payload": [
315
@@ -3383,7 +3382,7 @@ export default {
1
],
"workflowVersionId": [
- 529
+ 528
],
"__typename": [
1
@@ -3469,7 +3468,7 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"options": [
315
@@ -3501,7 +3500,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"name": [
1
@@ -3515,7 +3514,7 @@ export default {
},
"CreateIndexFieldInput": {
"fieldMetadataId": [
- 529
+ 528
],
"subFieldName": [
1
@@ -3532,7 +3531,7 @@ export default {
308
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -3552,7 +3551,7 @@ export default {
315
],
"id": [
- 529
+ 528
],
"name": [
1
@@ -3570,7 +3569,7 @@ export default {
315
],
"universalIdentifier": [
- 529
+ 528
],
"workflowActionTriggerSettings": [
315
@@ -3581,10 +3580,10 @@ export default {
},
"CreateMcpServerInput": {
"connectionProviderId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -3607,7 +3606,7 @@ export default {
1
],
"unsubscribeTopicId": [
- 529
+ 528
],
"__typename": [
1
@@ -3615,19 +3614,19 @@ export default {
},
"CreateNavigationMenuItemInput": {
"agentChatChannelId": [
- 529
+ 528
],
"color": [
1
],
"folderId": [
- 529
+ 528
],
"icon": [
1
],
"id": [
- 529
+ 528
],
"link": [
1
@@ -3636,25 +3635,25 @@ export default {
1
],
"pageLayoutId": [
- 529
+ 528
],
"position": [
6
],
"targetObjectMetadataId": [
- 529
+ 528
],
"targetRecordId": [
- 529
+ 528
],
"type": [
376
],
"userWorkspaceId": [
- 529
+ 528
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -3733,7 +3732,7 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"type": [
402
@@ -3747,7 +3746,7 @@ export default {
401
],
"pageLayoutId": [
- 529
+ 528
],
"position": [
6
@@ -3764,10 +3763,10 @@ export default {
315
],
"objectMetadataId": [
- 529
+ 528
],
"pageLayoutTabId": [
- 529
+ 528
],
"position": [
315
@@ -3776,7 +3775,7 @@ export default {
1
],
"type": [
- 659
+ 658
],
"__typename": [
1
@@ -3784,13 +3783,13 @@ export default {
},
"CreateRecordExportInput": {
"fieldMetadataIds": [
- 529
+ 528
],
"filter": [
315
],
"objectMetadataId": [
- 529
+ 528
],
"orderBy": [
315
@@ -3801,19 +3800,19 @@ export default {
},
"CreateRelatedRecordPathInput": {
"firstFieldMetadataId": [
- 529
+ 528
],
"isInherent": [
4
],
"objectMetadataId": [
- 529
+ 528
],
"secondFieldMetadataId": [
- 529
+ 528
],
"thirdFieldMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -3877,7 +3876,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"label": [
1
@@ -3897,7 +3896,7 @@ export default {
1
],
"visibility": [
- 533
+ 532
],
"__typename": [
1
@@ -3914,7 +3913,7 @@ export default {
98
],
"operationType": [
- 617
+ 616
],
"periodCount": [
10
@@ -3923,7 +3922,7 @@ export default {
1
],
"resourceType": [
- 624
+ 623
],
"spenderId": [
1
@@ -3932,7 +3931,7 @@ export default {
1
],
"unit": [
- 626
+ 625
],
"__typename": [
1
@@ -3943,7 +3942,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 529
+ 528
],
"expression": [
1
@@ -3961,7 +3960,7 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -3969,7 +3968,7 @@ export default {
},
"CreateViewFieldGroupInput": {
"id": [
- 529
+ 528
],
"isVisible": [
4
@@ -3981,7 +3980,7 @@ export default {
6
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -3992,10 +3991,10 @@ export default {
27
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"isVisible": [
4
@@ -4007,10 +4006,10 @@ export default {
6
],
"viewFieldGroupId": [
- 529
+ 528
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -4018,19 +4017,19 @@ export default {
},
"CreateViewFilterGroupInput": {
"id": [
- 529
+ 528
],
"logicalOperator": [
- 647
+ 646
],
"parentViewFilterGroupId": [
- 529
+ 528
],
"positionInViewFilterGroup": [
6
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -4038,19 +4037,19 @@ export default {
},
"CreateViewFilterInput": {
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"operand": [
- 648
+ 647
],
"positionInViewFilterGroup": [
6
],
"relationTargetFieldMetadataId": [
- 529
+ 528
],
"subFieldName": [
1
@@ -4059,10 +4058,10 @@ export default {
315
],
"viewFilterGroupId": [
- 529
+ 528
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -4073,7 +4072,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isVisible": [
4
@@ -4082,7 +4081,7 @@ export default {
6
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -4093,13 +4092,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 529
+ 528
],
"calendarFieldMetadataId": [
- 529
+ 528
],
"calendarLayout": [
- 641
+ 640
],
"groupLoadLimit": [
10
@@ -4108,7 +4107,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isCompact": [
4
@@ -4117,25 +4116,25 @@ export default {
27
],
"kanbanAggregateOperationFieldMetadataId": [
- 529
+ 528
],
"kanbanColumnWidth": [
10
],
"key": [
- 650
+ 649
],
"mainGroupByFieldMetadataId": [
- 529
+ 528
],
"name": [
1
],
"objectMetadataId": [
- 529
+ 528
],
"openRecordIn": [
- 651
+ 650
],
"position": [
6
@@ -4144,10 +4143,10 @@ export default {
4
],
"type": [
- 654
+ 653
],
"visibility": [
- 655
+ 654
],
"__typename": [
1
@@ -4155,19 +4154,19 @@ export default {
},
"CreateViewSortInput": {
"direction": [
- 653
+ 652
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"subFieldName": [
1
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -4178,13 +4177,13 @@ export default {
1
],
"id": [
- 529
+ 528
],
"operations": [
1
],
"roleId": [
- 529
+ 528
],
"secret": [
1
@@ -4207,10 +4206,10 @@ export default {
1
],
"operation": [
- 617
+ 616
],
"resource": [
- 624
+ 623
],
"__typename": [
1
@@ -4237,7 +4236,7 @@ export default {
"DateTime": {},
"DeleteApprovedAccessDomainInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4245,7 +4244,7 @@ export default {
},
"DeleteOneFieldInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4253,7 +4252,7 @@ export default {
},
"DeleteOneIndexInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4261,7 +4260,7 @@ export default {
},
"DeleteOneObjectInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4269,7 +4268,7 @@ export default {
},
"DeleteSso": {
"identityProviderId": [
- 529
+ 528
],
"__typename": [
1
@@ -4277,7 +4276,7 @@ export default {
},
"DeleteSsoInput": {
"identityProviderId": [
- 529
+ 528
],
"__typename": [
1
@@ -4293,7 +4292,7 @@ export default {
},
"DeleteViewFieldGroupInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4301,7 +4300,7 @@ export default {
},
"DeleteViewFieldInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4309,7 +4308,7 @@ export default {
},
"DeleteViewFilterInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4317,7 +4316,7 @@ export default {
},
"DeleteViewGroupInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4325,7 +4324,7 @@ export default {
},
"DeleteViewSortInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4336,7 +4335,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"name": [
289
@@ -4345,7 +4344,7 @@ export default {
1
],
"userWorkspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -4353,7 +4352,7 @@ export default {
},
"DestroyViewFieldGroupInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4361,7 +4360,7 @@ export default {
},
"DestroyViewFieldInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4369,7 +4368,7 @@ export default {
},
"DestroyViewFilterInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4377,7 +4376,7 @@ export default {
},
"DestroyViewGroupInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4385,7 +4384,7 @@ export default {
},
"DestroyViewSortInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -4427,7 +4426,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isCustomDomainEnabled": [
4
@@ -4444,10 +4443,10 @@ export default {
1
],
"id": [
- 529
+ 528
],
"pageLayoutId": [
- 529
+ 528
],
"position": [
6
@@ -4470,7 +4469,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"memberCount": [
6
@@ -4490,7 +4489,7 @@ export default {
},
"EditSso": {
"id": [
- 529
+ 528
],
"issuer": [
1
@@ -4499,7 +4498,7 @@ export default {
1
],
"status": [
- 469
+ 468
],
"type": [
296
@@ -4510,10 +4509,10 @@ export default {
},
"EditSsoInput": {
"id": [
- 529
+ 528
],
"status": [
- 469
+ 468
],
"__typename": [
1
@@ -4547,7 +4546,7 @@ export default {
},
"EmailThreadConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -4561,7 +4560,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"status": [
242
@@ -4570,13 +4569,13 @@ export default {
243
],
"unsubscribeHostnameStatus": [
- 531
+ 530
],
"updatedAt": [
211
],
"verificationRecords": [
- 636
+ 635
],
"verifiedAt": [
211
@@ -4589,7 +4588,7 @@ export default {
"EmailingDomainTenantStatus": {},
"EmailsConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -4855,7 +4854,7 @@ export default {
},
"ExecuteOneLogicFunctionInput": {
"id": [
- 529
+ 528
],
"payload": [
315
@@ -4878,7 +4877,7 @@ export default {
"FeatureFlagKey": {},
"Field": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
@@ -4896,7 +4895,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -4929,10 +4928,10 @@ export default {
1
],
"morphId": [
- 529
+ 528
],
"morphRelations": [
- 445
+ 444
],
"name": [
1
@@ -4941,13 +4940,13 @@ export default {
378
],
"objectMetadataId": [
- 529
+ 528
],
"options": [
315
],
"relation": [
- 445
+ 444
],
"settings": [
315
@@ -4970,7 +4969,7 @@ export default {
},
"FieldConfiguration": {
"configurationType": [
- 658
+ 657
],
"fieldDisplayMode": [
269
@@ -5019,7 +5018,7 @@ export default {
271
],
"id": [
- 530
+ 529
],
"isActive": [
126
@@ -5034,7 +5033,7 @@ export default {
126
],
"objectMetadataId": [
- 530
+ 529
],
"or": [
271
@@ -5052,16 +5051,16 @@ export default {
4
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"objectMetadataId": [
- 529
+ 528
],
"roleId": [
- 529
+ 528
],
"__typename": [
1
@@ -5075,10 +5074,10 @@ export default {
4
],
"fieldMetadataId": [
- 529
+ 528
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -5086,7 +5085,7 @@ export default {
},
"FieldRichTextConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -5094,7 +5093,7 @@ export default {
},
"FieldsConfiguration": {
"configurationType": [
- 658
+ 657
],
"newFieldDefaultVisibility": [
4
@@ -5114,7 +5113,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"path": [
1
@@ -5131,7 +5130,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -5146,7 +5145,7 @@ export default {
211
],
"fileId": [
- 529
+ 528
],
"uploadUrl": [
1
@@ -5160,7 +5159,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"path": [
1
@@ -5177,7 +5176,7 @@ export default {
},
"FilesConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -5185,7 +5184,7 @@ export default {
},
"FindAvailableSSOIDP": {
"id": [
- 529
+ 528
],
"issuer": [
1
@@ -5194,13 +5193,13 @@ export default {
1
],
"status": [
- 469
+ 468
],
"type": [
296
],
"workspace": [
- 678
+ 677
],
"__typename": [
1
@@ -5220,7 +5219,7 @@ export default {
1
],
"unsubscribeTopicId": [
- 529
+ 528
],
"__typename": [
1
@@ -5228,7 +5227,7 @@ export default {
},
"FormFieldConfiguration": {
"configurationType": [
- 658
+ 657
],
"fieldMetadataId": [
1
@@ -5242,7 +5241,7 @@ export default {
1
],
"applicationId": [
- 529
+ 528
],
"applicationName": [
1
@@ -5272,7 +5271,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isHeadless": [
4
@@ -5284,7 +5283,7 @@ export default {
1
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
@@ -5301,13 +5300,13 @@ export default {
},
"FrontComponentConfiguration": {
"configurationType": [
- 658
+ 657
],
"frontComponentId": [
- 529
+ 528
],
"headerCommandMenuItemUniversalIdentifiers": [
- 529
+ 528
],
"__typename": [
1
@@ -5315,7 +5314,7 @@ export default {
},
"FrontComponentWidgetAvailability": {
"objectMetadataId": [
- 529
+ 528
],
"pageLayoutType": [
402
@@ -5337,7 +5336,7 @@ export default {
},
"GetApiKeyInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -5348,7 +5347,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"type": [
1
@@ -5359,7 +5358,7 @@ export default {
},
"GetAuthorizationUrlForSSOInput": {
"identityProviderId": [
- 529
+ 528
],
"workspaceInviteHash": [
1
@@ -5370,7 +5369,7 @@ export default {
},
"GrantApplicationCapabilitiesInput": {
"applicationId": [
- 529
+ 528
],
"capabilities": [
1
@@ -5400,7 +5399,7 @@ export default {
"IdentityProviderType": {},
"IframeConfiguration": {
"configurationType": [
- 658
+ 657
],
"url": [
1
@@ -5473,7 +5472,7 @@ export default {
83
],
"workspace": [
- 682
+ 681
],
"__typename": [
1
@@ -5484,10 +5483,10 @@ export default {
1
],
"recordId": [
- 529
+ 528
],
"threadId": [
- 529
+ 528
],
"__typename": [
1
@@ -5495,13 +5494,13 @@ export default {
},
"Index": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
],
"id": [
- 529
+ 528
],
"indexFieldMetadataList": [
306
@@ -5547,10 +5546,10 @@ export default {
211
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"order": [
6
@@ -5570,7 +5569,7 @@ export default {
307
],
"id": [
- 530
+ 529
],
"isCustom": [
126
@@ -5585,7 +5584,7 @@ export default {
"IndexType": {},
"IngestAppMessagesInput": {
"messageChannelId": [
- 529
+ 528
],
"messages": [
44
@@ -5607,10 +5606,10 @@ export default {
1
],
"messageId": [
- 529
+ 528
],
"messageThreadId": [
- 529
+ 528
],
"__typename": [
1
@@ -5677,7 +5676,7 @@ export default {
},
"LineChartConfiguration": {
"aggregateFieldMetadataId": [
- 529
+ 528
],
"aggregateOperation": [
27
@@ -5689,7 +5688,7 @@ export default {
1
],
"configurationType": [
- 658
+ 657
],
"description": [
1
@@ -5722,7 +5721,7 @@ export default {
392
],
"primaryAxisGroupByFieldMetadataId": [
- 529
+ 528
],
"primaryAxisGroupBySubFieldName": [
1
@@ -5743,7 +5742,7 @@ export default {
392
],
"secondaryAxisGroupByFieldMetadataId": [
- 529
+ 528
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -5795,7 +5794,7 @@ export default {
315
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -5845,7 +5844,7 @@ export default {
},
"ListAppMessageChannelsInput": {
"connectedAccountId": [
- 529
+ 528
],
"__typename": [
1
@@ -5853,7 +5852,7 @@ export default {
},
"ListAppMessageFoldersInput": {
"messageChannelId": [
- 529
+ 528
],
"__typename": [
1
@@ -5872,7 +5871,7 @@ export default {
},
"LogicFunction": {
"applicationId": [
- 529
+ 528
],
"canRunOnDemand": [
4
@@ -5899,7 +5898,7 @@ export default {
315
],
"id": [
- 529
+ 528
],
"name": [
1
@@ -5917,7 +5916,7 @@ export default {
315
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
@@ -5967,7 +5966,7 @@ export default {
1
],
"universalIdentifier": [
- 529
+ 528
],
"__typename": [
1
@@ -5975,19 +5974,19 @@ export default {
},
"LogicFunctionLogsInput": {
"applicationId": [
- 529
+ 528
],
"applicationUniversalIdentifier": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"name": [
1
],
"universalIdentifier": [
- 529
+ 528
],
"__typename": [
1
@@ -6216,16 +6215,16 @@ export default {
},
"McpServer": {
"applicationId": [
- 529
+ 528
],
"connectionProviderId": [
- 529
+ 528
],
"createdAt": [
211
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -6248,7 +6247,7 @@ export default {
},
"MessageCampaignBodyConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -6256,7 +6255,7 @@ export default {
},
"MessageCampaignDetailsConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -6278,7 +6277,7 @@ export default {
158
],
"connectedAccountId": [
- 529
+ 528
],
"contactAutoCreationPolicy": [
347
@@ -6299,7 +6298,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"importProgress": [
10
@@ -6314,10 +6313,10 @@ export default {
354
],
"messagingProviderUniversalIdentifier": [
- 529
+ 528
],
"participantHandleFieldUniversalIdentifier": [
- 529
+ 528
],
"pendingGroupEmailsAction": [
348
@@ -6367,7 +6366,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isSentFolder": [
4
@@ -6376,7 +6375,7 @@ export default {
4
],
"messageChannelId": [
- 529
+ 528
],
"name": [
1
@@ -6405,7 +6404,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"reason": [
359
@@ -6414,7 +6413,7 @@ export default {
360
],
"unsubscribeTopicId": [
- 529
+ 528
],
"__typename": [
1
@@ -6466,7 +6465,7 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"property": [
1
@@ -6475,7 +6474,7 @@ export default {
366
],
"recordId": [
- 529
+ 528
],
"sourceValue": [
1
@@ -6504,13 +6503,13 @@ export default {
"MetadataTranslationProvenance": {},
"MetadataTranslationsInput": {
"fieldMetadataId": [
- 529
+ 528
],
"locale": [
1
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -6539,7 +6538,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -6568,16 +6567,16 @@ export default {
},
"MinimalView": {
"id": [
- 529
+ 528
],
"key": [
- 650
+ 649
],
"objectMetadataId": [
- 529
+ 528
],
"type": [
- 654
+ 653
],
"__typename": [
1
@@ -6586,16 +6585,16 @@ export default {
"ModelFamily": {},
"Mutation": {
"activateSkill": [
- 495,
+ 494,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
],
"activateWorkspace": [
- 663,
+ 662,
{
"data": [
0,
@@ -6611,7 +6610,7 @@ export default {
"String!"
],
"messageId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -6629,10 +6628,10 @@ export default {
4,
{
"assigneeWorkspaceMemberId": [
- 529
+ 528
],
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -6641,11 +6640,11 @@ export default {
4,
{
"agentId": [
- 529,
+ 528,
"UUID!"
],
"roleId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -6654,11 +6653,11 @@ export default {
4,
{
"apiKeyId": [
- 529,
+ 528,
"UUID!"
],
"roleId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -6735,7 +6734,7 @@ export default {
"BillingPlanKey!"
],
"recurringInterval": [
- 501,
+ 500,
"SubscriptionInterval!"
],
"requirePaymentMethod": [
@@ -6760,7 +6759,7 @@ export default {
72,
{
"fileId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -6773,7 +6772,7 @@ export default {
"String!"
],
"fileIds": [
- 529,
+ 528,
"[UUID!]!"
]
}
@@ -6905,7 +6904,7 @@ export default {
17,
{
"channelId": [
- 529
+ 528
]
}
],
@@ -6991,7 +6990,7 @@ export default {
}
],
"createManyViewFieldGroups": [
- 644,
+ 643,
{
"inputs": [
200,
@@ -7000,7 +6999,7 @@ export default {
}
],
"createManyViewFields": [
- 643,
+ 642,
{
"inputs": [
201,
@@ -7009,7 +7008,7 @@ export default {
}
],
"createManyViewGroups": [
- 649,
+ 648,
{
"inputs": [
204,
@@ -7062,10 +7061,10 @@ export default {
}
],
"createOIDCIdentityProvider": [
- 492,
+ 491,
{
"input": [
- 490,
+ 489,
"SetupOIDCSsoInput!"
]
}
@@ -7078,14 +7077,14 @@ export default {
"String!"
],
"objectMetadataId": [
- 529,
+ 528,
"UUID!"
],
"properties": [
315
],
"recordId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7136,7 +7135,7 @@ export default {
}
],
"createOneRole": [
- 452,
+ 451,
{
"createRoleInput": [
195,
@@ -7185,7 +7184,7 @@ export default {
}
],
"createRelatedRecordPath": [
- 444,
+ 443,
{
"input": [
194,
@@ -7194,16 +7193,16 @@ export default {
}
],
"createSAMLIdentityProvider": [
- 492,
+ 491,
{
"input": [
- 491,
+ 490,
"SetupSAMLSsoInput!"
]
}
],
"createSkill": [
- 495,
+ 494,
{
"input": [
196,
@@ -7223,7 +7222,7 @@ export default {
"BillingPlanKey!"
],
"recurringInterval": [
- 501,
+ 500,
"SubscriptionInterval!"
],
"requirePaymentMethod": [
@@ -7236,7 +7235,7 @@ export default {
}
],
"createUnsubscribeTopic": [
- 532,
+ 531,
{
"input": [
197,
@@ -7245,7 +7244,7 @@ export default {
}
],
"createUsageLimit": [
- 615,
+ 614,
{
"input": [
198,
@@ -7254,7 +7253,7 @@ export default {
}
],
"createValidationRule": [
- 635,
+ 634,
{
"input": [
199,
@@ -7263,7 +7262,7 @@ export default {
}
],
"createView": [
- 640,
+ 639,
{
"input": [
205,
@@ -7272,7 +7271,7 @@ export default {
}
],
"createViewField": [
- 643,
+ 642,
{
"input": [
201,
@@ -7281,7 +7280,7 @@ export default {
}
],
"createViewFieldGroup": [
- 644,
+ 643,
{
"input": [
200,
@@ -7290,7 +7289,7 @@ export default {
}
],
"createViewFilter": [
- 645,
+ 644,
{
"input": [
203,
@@ -7299,7 +7298,7 @@ export default {
}
],
"createViewFilterGroup": [
- 646,
+ 645,
{
"input": [
202,
@@ -7308,7 +7307,7 @@ export default {
}
],
"createViewGroup": [
- 649,
+ 648,
{
"input": [
204,
@@ -7317,7 +7316,7 @@ export default {
}
],
"createViewSort": [
- 652,
+ 651,
{
"input": [
206,
@@ -7326,7 +7325,7 @@ export default {
}
],
"createWebhook": [
- 656,
+ 655,
{
"input": [
207,
@@ -7335,10 +7334,10 @@ export default {
}
],
"deactivateSkill": [
- 495,
+ 494,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7347,11 +7346,11 @@ export default {
4,
{
"channelId": [
- 529,
+ 528,
"UUID!"
],
"destinationChannelId": [
- 529
+ 528
]
}
],
@@ -7371,7 +7370,7 @@ export default {
346,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7398,7 +7397,7 @@ export default {
154,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7407,19 +7406,19 @@ export default {
158,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
],
"deleteCurrentWorkspace": [
- 663
+ 662
],
"deleteEmailGroupChannel": [
346,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7437,7 +7436,7 @@ export default {
286,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7446,7 +7445,7 @@ export default {
375,
{
"ids": [
- 529,
+ 528,
"[UUID!]!"
]
}
@@ -7455,7 +7454,7 @@ export default {
342,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7464,7 +7463,7 @@ export default {
4,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7473,7 +7472,7 @@ export default {
375,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7527,7 +7526,7 @@ export default {
1,
{
"roleId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7545,16 +7544,16 @@ export default {
4,
{
"messageId": [
- 529,
+ 528,
"UUID!"
]
}
],
"deleteRelatedRecordPath": [
- 444,
+ 443,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7569,10 +7568,10 @@ export default {
}
],
"deleteSkill": [
- 495,
+ 494,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7581,7 +7580,7 @@ export default {
218,
{
"twoFactorAuthenticationMethodId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7599,16 +7598,16 @@ export default {
4,
{
"usageLimitId": [
- 529,
+ 528,
"UUID!"
]
}
],
"deleteUser": [
- 628
+ 627
],
"deleteUserFromWorkspace": [
- 632,
+ 631,
{
"workspaceMemberIdToDelete": [
1,
@@ -7617,10 +7616,10 @@ export default {
}
],
"deleteValidationRule": [
- 635,
+ 634,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7635,7 +7634,7 @@ export default {
}
],
"deleteViewField": [
- 643,
+ 642,
{
"input": [
220,
@@ -7644,7 +7643,7 @@ export default {
}
],
"deleteViewFieldGroup": [
- 644,
+ 643,
{
"input": [
219,
@@ -7653,7 +7652,7 @@ export default {
}
],
"deleteViewFilter": [
- 645,
+ 644,
{
"input": [
221,
@@ -7671,7 +7670,7 @@ export default {
}
],
"deleteViewGroup": [
- 649,
+ 648,
{
"input": [
222,
@@ -7689,10 +7688,10 @@ export default {
}
],
"deleteWebhook": [
- 656,
+ 655,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7743,7 +7742,7 @@ export default {
}
],
"destroyViewField": [
- 643,
+ 642,
{
"input": [
226,
@@ -7752,7 +7751,7 @@ export default {
}
],
"destroyViewFieldGroup": [
- 644,
+ 643,
{
"input": [
225,
@@ -7761,7 +7760,7 @@ export default {
}
],
"destroyViewFilter": [
- 645,
+ 644,
{
"input": [
227,
@@ -7779,7 +7778,7 @@ export default {
}
],
"destroyViewGroup": [
- 649,
+ 648,
{
"input": [
228,
@@ -7809,7 +7808,7 @@ export default {
158,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7818,7 +7817,7 @@ export default {
233,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7827,7 +7826,7 @@ export default {
234,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7852,7 +7851,7 @@ export default {
"String!"
],
"workspaceId": [
- 529
+ 528
]
}
],
@@ -7878,7 +7877,7 @@ export default {
}
],
"enrichWorkspaceCompany": [
- 667
+ 666
],
"executeOneLogicFunction": [
330,
@@ -7893,7 +7892,7 @@ export default {
39,
{
"apiKeyId": [
- 529,
+ 528,
"UUID!"
],
"expiresAt": [
@@ -7906,7 +7905,7 @@ export default {
77,
{
"applicationId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7915,16 +7914,16 @@ export default {
83
],
"generateTransientToken": [
- 512
+ 511
],
"generateTwoFactorAuthenticationRecoveryCode": [
- 526,
+ 525,
{
"otp": [
1
],
"userId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -7972,7 +7971,7 @@ export default {
}
],
"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [
- 527,
+ 526,
{
"captchaToken": [
1
@@ -8042,11 +8041,11 @@ export default {
302,
{
"userId": [
- 529,
+ 528,
"UUID!"
],
"workspaceId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8104,7 +8103,7 @@ export default {
4,
{
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8113,10 +8112,10 @@ export default {
4,
{
"channelId": [
- 529
+ 528
],
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8135,7 +8134,7 @@ export default {
"String!"
],
"messageId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8144,7 +8143,7 @@ export default {
4,
{
"input": [
- 447,
+ 446,
"RemoveQueryFromEventStreamInput!"
]
}
@@ -8157,7 +8156,7 @@ export default {
"RecordSharePrincipalInput!"
],
"target": [
- 443,
+ 442,
"RecordTargetInput!"
]
}
@@ -8166,7 +8165,7 @@ export default {
4,
{
"agentId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8193,7 +8192,7 @@ export default {
4,
{
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8202,13 +8201,13 @@ export default {
4,
{
"input": [
- 448,
+ 447,
"ReportAppConnectionAuthFailureInput!"
]
}
],
"resendEmailVerificationToken": [
- 449,
+ 448,
{
"email": [
1,
@@ -8221,7 +8220,7 @@ export default {
}
],
"resendWorkspaceInvitation": [
- 482,
+ 481,
{
"appTokenId": [
1,
@@ -8233,7 +8232,7 @@ export default {
154,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8266,22 +8265,22 @@ export default {
}
],
"resetTimelineActivityType": [
- 507,
+ 506,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
],
"retryChatMessage": [
- 474,
+ 473,
{
"modelId": [
1
],
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8293,7 +8292,7 @@ export default {
37,
{
"input": [
- 450,
+ 449,
"RevokeApiKeyInput!"
]
}
@@ -8302,7 +8301,7 @@ export default {
4,
{
"applicationAuthorizationId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8311,7 +8310,7 @@ export default {
4,
{
"userId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8320,13 +8319,13 @@ export default {
4,
{
"userSessionId": [
- 529,
+ 528,
"UUID!"
]
}
],
"rotateApplicationRegistrationClientSecret": [
- 454,
+ 453,
{
"id": [
1,
@@ -8335,10 +8334,10 @@ export default {
}
],
"runAgent": [
- 465,
+ 464,
{
"input": [
- 461,
+ 460,
"RunAgentInput!"
]
}
@@ -8347,7 +8346,7 @@ export default {
62,
{
"applicationId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8364,38 +8363,38 @@ export default {
"String!"
],
"id": [
- 529
+ 528
]
}
],
"sendAppChannelMessage": [
- 473,
+ 472,
{
"input": [
- 472,
+ 471,
"SendAppChannelMessageInput!"
]
}
],
"sendChatMessage": [
- 474,
+ 473,
{
"browsingContext": [
315
],
"channelId": [
- 529
+ 528
],
"fileAttachments": [
278,
"[FileAttachmentInput!]"
],
"mentionedWorkspaceMemberIds": [
- 529,
+ 528,
"[UUID!]"
],
"messageId": [
- 529,
+ 528,
"UUID!"
],
"modelId": [
@@ -8409,55 +8408,55 @@ export default {
"String!"
],
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
],
"sendEmail": [
- 477,
+ 476,
{
"input": [
- 476,
+ 475,
"SendEmailInput!"
]
}
],
"sendInboxMessage": [
- 481,
+ 480,
{
"input": [
- 480,
+ 479,
"SendInboxMessageInput!"
]
}
],
"sendInvitations": [
- 482,
+ 481,
{
"emails": [
1,
"[String!]!"
],
"roleId": [
- 529
+ 528
]
}
],
"sendMessageCampaign": [
- 484,
+ 483,
{
"input": [
- 483,
+ 482,
"SendMessageCampaignInput!"
]
}
],
"sendMessageCampaignTest": [
- 479,
+ 478,
{
"input": [
- 485,
+ 484,
"SendMessageCampaignTestInput!"
]
}
@@ -8466,7 +8465,7 @@ export default {
41,
{
"input": [
- 487,
+ 486,
"SetAppKeyValueInput!"
]
}
@@ -8480,15 +8479,15 @@ export default {
]
}
],
- "setRecordGeneralAccess": [
+ "setRecordPrivate": [
438,
{
- "accessLevel": [
- 434,
- "RecordShareAccessLevel!"
+ "isPrivate": [
+ 4,
+ "Boolean!"
],
"target": [
- 443,
+ 442,
"RecordTargetInput!"
]
}
@@ -8505,7 +8504,7 @@ export default {
"RecordSharePrincipalInput!"
],
"target": [
- 443,
+ 442,
"RecordTargetInput!"
]
}
@@ -8572,15 +8571,15 @@ export default {
}
],
"signUpInNewWorkspace": [
- 493,
+ 492,
{
"input": [
- 494
+ 493
]
}
],
"signUpInWorkspace": [
- 493,
+ 492,
{
"captchaToken": [
1
@@ -8600,7 +8599,7 @@ export default {
1
],
"workspaceId": [
- 529
+ 528
],
"workspaceInviteHash": [
1
@@ -8627,7 +8626,7 @@ export default {
"DateTime!"
],
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -8636,13 +8635,13 @@ export default {
140,
{
"connectedAccountId": [
- 529,
+ 528,
"UUID!"
]
}
],
"startWorkspaceSetupChat": [
- 497,
+ 496,
{
"companyContext": [
315
@@ -8656,13 +8655,13 @@ export default {
4,
{
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
],
"stopImpersonation": [
- 498
+ 497
],
"switchBillingPlan": [
124,
@@ -8679,13 +8678,13 @@ export default {
353,
{
"input": [
- 505,
+ 504,
"SyncAppMessageFoldersInput!"
]
}
],
"syncApplication": [
- 677,
+ 676,
{
"dryRun": [
4
@@ -8734,55 +8733,55 @@ export default {
}
],
"triggerAddPeopleToMessageListJob": [
- 514,
+ 513,
{
"input": [
- 513,
+ 512,
"TriggerAddPeopleToMessageListJobInput!"
]
}
],
"triggerInstallApplication": [
- 518,
+ 517,
{
"input": [
- 515,
+ 514,
"TriggerInstallApplicationInput!"
]
}
],
"triggerInstallApplicationJob": [
- 517,
+ 516,
{
"input": [
- 516,
+ 515,
"TriggerInstallApplicationJobInput!"
]
}
],
"triggerUninstallApplication": [
- 522,
+ 521,
{
"input": [
- 519,
+ 518,
"TriggerUninstallApplicationInput!"
]
}
],
"triggerUninstallApplicationJob": [
- 521,
+ 520,
{
"input": [
- 520,
+ 519,
"TriggerUninstallApplicationJobInput!"
]
}
],
"triggerUpgradeApplication": [
- 524,
+ 523,
{
"input": [
- 523,
+ 522,
"TriggerUpgradeApplicationInput!"
]
}
@@ -8800,11 +8799,11 @@ export default {
5,
{
"channelId": [
- 529,
+ 528,
"UUID!"
],
"input": [
- 534,
+ 533,
"UpdateAgentChatChannelInput!"
]
}
@@ -8820,7 +8819,7 @@ export default {
211
],
"threadIds": [
- 529,
+ 528,
"[UUID!]!"
]
}
@@ -8829,7 +8828,7 @@ export default {
37,
{
"input": [
- 536,
+ 535,
"UpdateApiKeyInput!"
]
}
@@ -8838,7 +8837,7 @@ export default {
346,
{
"input": [
- 537,
+ 536,
"UpdateAppMessageChannelInput!"
]
}
@@ -8847,11 +8846,11 @@ export default {
46,
{
"id": [
- 529,
+ 528,
"UUID!"
],
"input": [
- 538,
+ 537,
"UpdateApplicationInput!"
]
}
@@ -8860,7 +8859,7 @@ export default {
72,
{
"input": [
- 539,
+ 538,
"UpdateApplicationRegistrationInput!"
]
}
@@ -8869,7 +8868,7 @@ export default {
76,
{
"input": [
- 541,
+ 540,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -8878,7 +8877,7 @@ export default {
127,
{
"input": [
- 543,
+ 542,
"UpdateCalendarChannelInput!"
]
}
@@ -8887,7 +8886,7 @@ export default {
154,
{
"input": [
- 545,
+ 544,
"UpdateCommandMenuItemInput!"
]
}
@@ -8896,7 +8895,7 @@ export default {
346,
{
"input": [
- 546,
+ 545,
"UpdateEmailGroupChannelInput!"
]
}
@@ -8905,7 +8904,7 @@ export default {
286,
{
"input": [
- 548,
+ 547,
"UpdateFrontComponentInput!"
]
}
@@ -8914,7 +8913,7 @@ export default {
264,
{
"input": [
- 550,
+ 549,
"UpdateLabPublicFeatureFlagInput!"
]
}
@@ -8923,7 +8922,7 @@ export default {
375,
{
"inputs": [
- 563,
+ 562,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
@@ -8932,16 +8931,16 @@ export default {
378,
{
"inputs": [
- 564,
+ 563,
"[UpdateOneObjectInput!]!"
]
}
],
"updateManyViewGroups": [
- 649,
+ 648,
{
"inputs": [
- 586,
+ 585,
"[UpdateViewGroupInput!]!"
]
}
@@ -8950,7 +8949,7 @@ export default {
342,
{
"input": [
- 553,
+ 552,
"UpdateMcpServerInput!"
]
}
@@ -8959,7 +8958,7 @@ export default {
346,
{
"input": [
- 555,
+ 554,
"UpdateMessageChannelInput!"
]
}
@@ -8968,7 +8967,7 @@ export default {
353,
{
"input": [
- 557,
+ 556,
"UpdateMessageFolderInput!"
]
}
@@ -8977,7 +8976,7 @@ export default {
353,
{
"input": [
- 559,
+ 558,
"UpdateMessageFoldersInput!"
]
}
@@ -9003,7 +9002,7 @@ export default {
375,
{
"input": [
- 563,
+ 562,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -9012,7 +9011,7 @@ export default {
3,
{
"input": [
- 535,
+ 534,
"UpdateAgentInput!"
]
}
@@ -9021,7 +9020,7 @@ export default {
4,
{
"applicationId": [
- 529
+ 528
],
"key": [
1,
@@ -9037,7 +9036,7 @@ export default {
266,
{
"input": [
- 562,
+ 561,
"UpdateOneFieldMetadataInput!"
]
}
@@ -9046,7 +9045,7 @@ export default {
4,
{
"input": [
- 551,
+ 550,
"UpdateLogicFunctionFromSourceInput!"
]
}
@@ -9055,16 +9054,16 @@ export default {
378,
{
"input": [
- 564,
+ 563,
"UpdateOneObjectInput!"
]
}
],
"updateOneRole": [
- 452,
+ 451,
{
"updateRoleInput": [
- 571,
+ 570,
"UpdateRoleInput!"
]
}
@@ -9077,7 +9076,7 @@ export default {
"String!"
],
"input": [
- 565,
+ 564,
"UpdatePageLayoutInput!"
]
}
@@ -9090,7 +9089,7 @@ export default {
"String!"
],
"input": [
- 566,
+ 565,
"UpdatePageLayoutTabInput!"
]
}
@@ -9103,7 +9102,7 @@ export default {
"String!"
],
"input": [
- 568,
+ 567,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -9116,7 +9115,7 @@ export default {
"String!"
],
"input": [
- 570,
+ 569,
"UpdatePageLayoutWithTabsInput!"
]
}
@@ -9135,37 +9134,37 @@ export default {
}
],
"updateSkill": [
- 495,
+ 494,
{
"input": [
- 573,
+ 572,
"UpdateSkillInput!"
]
}
],
"updateTimelineActivityType": [
- 507,
+ 506,
{
"input": [
- 574,
+ 573,
"UpdateTimelineActivityTypeInput!"
]
}
],
"updateUnsubscribeTopic": [
- 532,
+ 531,
{
"input": [
- 575,
+ 574,
"UpdateUnsubscribeTopicInput!"
]
}
],
"updateUsageLimit": [
- 615,
+ 614,
{
"input": [
- 576,
+ 575,
"UpdateUsageLimitInput!"
]
}
@@ -9174,7 +9173,7 @@ export default {
100,
{
"userCreditsFallback": [
- 630,
+ 629,
"UserCreditsFallback!"
]
}
@@ -9192,130 +9191,130 @@ export default {
}
],
"updateValidationRule": [
- 635,
+ 634,
{
"input": [
- 577,
+ 576,
"UpdateValidationRuleInput!"
]
}
],
"updateView": [
- 640,
+ 639,
{
"id": [
1,
"String!"
],
"input": [
- 588,
+ 587,
"UpdateViewInput!"
]
}
],
"updateViewField": [
- 643,
+ 642,
{
"input": [
- 581,
+ 580,
"UpdateViewFieldInput!"
]
}
],
"updateViewFieldGroup": [
- 644,
+ 643,
{
"input": [
- 579,
+ 578,
"UpdateViewFieldGroupInput!"
]
}
],
"updateViewFilter": [
- 645,
+ 644,
{
"input": [
- 584,
+ 583,
"UpdateViewFilterInput!"
]
}
],
"updateViewFilterGroup": [
- 646,
+ 645,
{
"id": [
1,
"String!"
],
"input": [
- 583,
+ 582,
"UpdateViewFilterGroupInput!"
]
}
],
"updateViewGroup": [
- 649,
+ 648,
{
"input": [
- 586,
+ 585,
"UpdateViewGroupInput!"
]
}
],
"updateViewSort": [
- 652,
+ 651,
{
"input": [
- 589,
+ 588,
"UpdateViewSortInput!"
]
}
],
"updateWebhook": [
- 656,
+ 655,
{
"input": [
- 591,
+ 590,
"UpdateWebhookInput!"
]
}
],
"updateWorkspace": [
- 663,
+ 662,
{
"data": [
- 595,
+ 594,
"UpdateWorkspaceInput!"
]
}
],
"updateWorkspaceAllowedEmbeddingOrigins": [
- 663,
+ 662,
{
"data": [
- 593,
+ 592,
"UpdateWorkspaceAllowedEmbeddingOriginsInput!"
]
}
],
"updateWorkspaceIframeMediaPermissions": [
- 663,
+ 662,
{
"data": [
- 594,
+ 593,
"UpdateWorkspaceIframeMediaPermissionsInput!"
]
}
],
"updateWorkspaceMemberRole": [
- 672,
+ 671,
{
"roleId": [
- 529,
+ 528,
"UUID!"
],
"workspaceMemberId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -9324,7 +9323,7 @@ export default {
4,
{
"input": [
- 596,
+ 595,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -9346,7 +9345,7 @@ export default {
72,
{
"file": [
- 597,
+ 596,
"Upload!"
],
"universalIdentifier": [
@@ -9362,7 +9361,7 @@ export default {
"String!"
],
"file": [
- 597,
+ 596,
"Upload!"
],
"fileFolder": [
@@ -9383,7 +9382,7 @@ export default {
"String!"
],
"file": [
- 597,
+ 596,
"Upload!"
]
}
@@ -9392,7 +9391,7 @@ export default {
281,
{
"file": [
- 597,
+ 596,
"Upload!"
],
"workspaceId": [
@@ -9405,7 +9404,7 @@ export default {
281,
{
"file": [
- 597,
+ 596,
"Upload!"
]
}
@@ -9414,7 +9413,7 @@ export default {
281,
{
"file": [
- 597,
+ 596,
"Upload!"
]
}
@@ -9423,16 +9422,16 @@ export default {
273,
{
"upsertFieldPermissionsInput": [
- 598,
+ 597,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertFieldsWidget": [
- 640,
+ 639,
{
"input": [
- 601,
+ 600,
"UpsertFieldsWidgetInput!"
]
}
@@ -9441,34 +9440,34 @@ export default {
386,
{
"upsertObjectPermissionsInput": [
- 602,
+ 601,
"UpsertObjectPermissionsInput!"
]
}
],
"upsertPermissionFlags": [
- 453,
+ 452,
{
"upsertPermissionFlagsInput": [
- 603,
+ 602,
"UpsertPermissionFlagsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 605,
+ 604,
{
"input": [
- 604,
+ 603,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
],
"upsertViewWidget": [
- 640,
+ 639,
{
"input": [
- 606,
+ 605,
"UpsertViewWidgetInput!"
]
}
@@ -9477,13 +9476,13 @@ export default {
80,
{
"input": [
- 633,
+ 632,
"ValidateApprovedAccessDomainInput!"
]
}
],
"verifyEmailAndGetLoginToken": [
- 637,
+ 636,
{
"captchaToken": [
1
@@ -9528,7 +9527,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 638,
+ 637,
{
"otp": [
1,
@@ -9553,10 +9552,10 @@ export default {
},
"NavigationMenuItem": {
"agentChatChannelId": [
- 529
+ 528
],
"applicationId": [
- 529
+ 528
],
"color": [
1
@@ -9565,13 +9564,13 @@ export default {
211
],
"folderId": [
- 529
+ 528
],
"icon": [
1
],
"id": [
- 529
+ 528
],
"link": [
1
@@ -9580,16 +9579,16 @@ export default {
1
],
"pageLayoutId": [
- 529
+ 528
],
"position": [
6
],
"targetObjectMetadataId": [
- 529
+ 528
],
"targetRecordId": [
- 529
+ 528
],
"targetRecordIdentifier": [
431
@@ -9601,10 +9600,10 @@ export default {
211
],
"userWorkspaceId": [
- 529
+ 528
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -9613,7 +9612,7 @@ export default {
"NavigationMenuItemType": {},
"NotesConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -9621,7 +9620,7 @@ export default {
},
"Object": {
"applicationId": [
- 529
+ 528
],
"color": [
1
@@ -9658,10 +9657,10 @@ export default {
1
],
"id": [
- 529
+ 528
],
"imageIdentifierFieldMetadataId": [
- 529
+ 528
],
"indexMetadataList": [
304
@@ -9707,7 +9706,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 529
+ 528
],
"labelPlural": [
1
@@ -9728,10 +9727,10 @@ export default {
363
],
"readabilityParentFieldUniversalIdentifiers": [
- 529
+ 528
],
"searchFieldMetadataList": [
- 471
+ 470
],
"sharingReach": [
393
@@ -9790,7 +9789,7 @@ export default {
382
],
"id": [
- 530
+ 529
],
"isActive": [
126
@@ -9817,7 +9816,7 @@ export default {
382
],
"universalIdentifier": [
- 530
+ 529
],
"__typename": [
1
@@ -9836,7 +9835,7 @@ export default {
},
"ObjectMetadataCommandMenuItemPayload": {
"objectMetadataItemId": [
- 529
+ 528
],
"__typename": [
1
@@ -9857,16 +9856,16 @@ export default {
4
],
"objectMetadataId": [
- 529
+ 528
],
"restrictedFields": [
315
],
"rowLevelPermissionPredicateGroups": [
- 456
+ 455
],
"rowLevelPermissionPredicates": [
- 455
+ 454
],
"__typename": [
1
@@ -9886,7 +9885,7 @@ export default {
4
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -9996,19 +9995,19 @@ export default {
},
"PageLayout": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
],
"defaultTabToFocusOnMobileAndSidePanelId": [
- 529
+ 528
],
"deletedAt": [
211
],
"id": [
- 529
+ 528
],
"isFirstTabPinned": [
4
@@ -10020,7 +10019,7 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"tabs": [
400
@@ -10029,7 +10028,7 @@ export default {
402
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
@@ -10040,7 +10039,7 @@ export default {
},
"PageLayoutTab": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
@@ -10052,7 +10051,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -10067,7 +10066,7 @@ export default {
401
],
"pageLayoutId": [
- 529
+ 528
],
"position": [
6
@@ -10076,7 +10075,7 @@ export default {
1
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
@@ -10092,7 +10091,7 @@ export default {
"PageLayoutType": {},
"PageLayoutWidget": {
"applicationId": [
- 529
+ 528
],
"conditionalAvailabilityExpression": [
1
@@ -10101,7 +10100,7 @@ export default {
315
],
"configuration": [
- 657
+ 656
],
"createdAt": [
211
@@ -10113,7 +10112,7 @@ export default {
295
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -10125,10 +10124,10 @@ export default {
4
],
"objectMetadataId": [
- 529
+ 528
],
"pageLayoutTabId": [
- 529
+ 528
],
"position": [
406
@@ -10137,10 +10136,10 @@ export default {
1
],
"type": [
- 659
+ 658
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
@@ -10216,7 +10215,7 @@ export default {
},
"PermissionFlag": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
@@ -10228,7 +10227,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"key": [
1
@@ -10240,7 +10239,7 @@ export default {
1
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
@@ -10252,7 +10251,7 @@ export default {
"PermissionFlagType": {},
"PieChartConfiguration": {
"aggregateFieldMetadataId": [
- 529
+ 528
],
"aggregateOperation": [
27
@@ -10261,7 +10260,7 @@ export default {
1
],
"configurationType": [
- 658
+ 657
],
"dateGranularity": [
392
@@ -10282,7 +10281,7 @@ export default {
10
],
"groupByFieldMetadataId": [
- 529
+ 528
],
"groupBySubFieldName": [
1
@@ -10340,7 +10339,7 @@ export default {
315
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -10415,7 +10414,7 @@ export default {
},
"PublicApplicationRegistration": {
"id": [
- 529
+ 528
],
"logoUrl": [
1
@@ -10452,7 +10451,7 @@ export default {
},
"PublicDomain": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
@@ -10461,7 +10460,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isValidated": [
4
@@ -10523,13 +10522,13 @@ export default {
1
],
"id": [
- 529
+ 528
],
"logo": [
1
],
"workspaceUrls": [
- 681
+ 680
],
"__typename": [
1
@@ -10540,7 +10539,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"logo": [
1
@@ -10566,7 +10565,7 @@ export default {
7
],
"channelId": [
- 529,
+ 528,
"UUID!"
],
"filter": [
@@ -10590,7 +10589,7 @@ export default {
24,
{
"agentId": [
- 529,
+ 528,
"UUID!"
],
"limit": [
@@ -10666,7 +10665,7 @@ export default {
49,
{
"applicationId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10675,7 +10674,7 @@ export default {
50,
{
"applicationId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10699,10 +10698,10 @@ export default {
}
],
"applicationSdkClientChecksums": [
- 470,
+ 469,
{
"applicationId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10731,10 +10730,10 @@ export default {
}
],
"callRecordingIdForCalendarEvent": [
- 529,
+ 528,
{
"calendarEventId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10743,7 +10742,7 @@ export default {
21,
{
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10752,7 +10751,7 @@ export default {
143,
{
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10761,7 +10760,7 @@ export default {
17,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10779,7 +10778,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 671,
+ 670,
{
"inviteHash": [
1,
@@ -10788,7 +10787,7 @@ export default {
}
],
"checkWorkspaceSubdomainAvailability": [
- 499,
+ 498,
{
"subdomain": [
1,
@@ -10800,7 +10799,7 @@ export default {
154,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10809,16 +10808,16 @@ export default {
154
],
"currentUser": [
- 628
+ 627
],
"currentUserApplicationAuthorizations": [
47
],
"currentUserSessions": [
- 631
+ 630
],
"currentWorkspace": [
- 663
+ 662
],
"enterpriseCheckoutSession": [
1,
@@ -10855,7 +10854,7 @@ export default {
4
],
"universalIdentifier": [
- 529,
+ 528,
"UUID!"
]
}
@@ -10864,7 +10863,7 @@ export default {
266,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -11008,10 +11007,10 @@ export default {
46,
{
"id": [
- 529
+ 528
],
"universalIdentifier": [
- 529
+ 528
]
}
],
@@ -11058,10 +11057,10 @@ export default {
}
],
"findWorkspaceAiStats": [
- 665
+ 664
],
"findWorkspaceFromInviteHash": [
- 663,
+ 662,
{
"inviteHash": [
1,
@@ -11070,13 +11069,13 @@ export default {
}
],
"findWorkspaceInvitations": [
- 670
+ 669
],
"frontComponent": [
286,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -11101,7 +11100,7 @@ export default {
31
],
"getApiKeyRoles": [
- 452
+ 451
],
"getApprovedAccessDomains": [
80
@@ -11138,7 +11137,7 @@ export default {
160,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -11238,7 +11237,7 @@ export default {
427,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -11247,22 +11246,22 @@ export default {
116
],
"getRole": [
- 452,
+ 451,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
],
"getRoles": [
- 452
+ 451
],
"getSSOIdentityProviders": [
283
],
"getToolIndex": [
- 511
+ 510
],
"getToolInputSchema": [
315,
@@ -11274,15 +11273,15 @@ export default {
}
],
"getUsageAnalytics": [
- 612,
+ 611,
{
"input": [
- 613
+ 612
]
}
],
"getView": [
- 640,
+ 639,
{
"id": [
1,
@@ -11291,7 +11290,7 @@ export default {
}
],
"getViewField": [
- 643,
+ 642,
{
"id": [
1,
@@ -11300,7 +11299,7 @@ export default {
}
],
"getViewFieldGroup": [
- 644,
+ 643,
{
"id": [
1,
@@ -11309,7 +11308,7 @@ export default {
}
],
"getViewFieldGroups": [
- 644,
+ 643,
{
"viewId": [
1,
@@ -11318,7 +11317,7 @@ export default {
}
],
"getViewFields": [
- 643,
+ 642,
{
"viewId": [
1,
@@ -11327,7 +11326,7 @@ export default {
}
],
"getViewFilter": [
- 645,
+ 644,
{
"id": [
1,
@@ -11336,7 +11335,7 @@ export default {
}
],
"getViewFilterGroup": [
- 646,
+ 645,
{
"id": [
1,
@@ -11345,7 +11344,7 @@ export default {
}
],
"getViewFilterGroups": [
- 646,
+ 645,
{
"viewId": [
1
@@ -11353,7 +11352,7 @@ export default {
}
],
"getViewFilters": [
- 645,
+ 644,
{
"viewId": [
1
@@ -11361,7 +11360,7 @@ export default {
}
],
"getViewGroup": [
- 649,
+ 648,
{
"id": [
1,
@@ -11370,7 +11369,7 @@ export default {
}
],
"getViewGroups": [
- 649,
+ 648,
{
"viewId": [
1
@@ -11378,7 +11377,7 @@ export default {
}
],
"getViewSort": [
- 652,
+ 651,
{
"id": [
1,
@@ -11387,7 +11386,7 @@ export default {
}
],
"getViewSorts": [
- 652,
+ 651,
{
"viewId": [
1
@@ -11395,19 +11394,19 @@ export default {
}
],
"getViews": [
- 640,
+ 639,
{
"objectMetadataId": [
1
],
"viewTypes": [
- 654,
+ 653,
"[ViewType!]"
]
}
],
"getWorkspaceCreationDefaults": [
- 668
+ 667
],
"githubClaimAuthorizationUrl": [
1,
@@ -11443,7 +11442,7 @@ export default {
342,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -11473,10 +11472,10 @@ export default {
369
],
"mostlyEmptyFieldMetadataIds": [
- 529,
+ 528,
{
"objectMetadataId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -11488,7 +11487,7 @@ export default {
127,
{
"connectedAccountId": [
- 529
+ 528
]
}
],
@@ -11499,7 +11498,7 @@ export default {
346,
{
"connectedAccountId": [
- 529
+ 528
]
}
],
@@ -11507,18 +11506,18 @@ export default {
353,
{
"messageChannelId": [
- 529
+ 528
]
}
],
"myUserApplicationVariables": [
- 673
+ 672
],
"navigationMenuItem": [
375,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -11530,7 +11529,7 @@ export default {
378,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
@@ -11594,7 +11593,7 @@ export default {
433,
{
"targets": [
- 443,
+ 442,
"[RecordTargetInput!]!"
]
}
@@ -11603,61 +11602,61 @@ export default {
438,
{
"target": [
- 443,
+ 442,
"RecordTargetInput!"
]
}
],
"relatedRecordPaths": [
- 444
+ 443
],
"skill": [
- 495,
+ 494,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
],
"skills": [
- 495
+ 494
],
"timelineActivityTypes": [
- 507
+ 506
],
"twoFactorAuthenticationRecoveryStatus": [
- 528,
+ 527,
{
"userId": [
- 529,
+ 528,
"UUID!"
]
}
],
"unsubscribeTopics": [
- 532
+ 531
],
"usageLimits": [
- 615
+ 614
],
"usageQuotaDefinitions": [
- 619
+ 618
],
"usageQuotaScopeConsumption": [
- 621,
+ 620,
{
"input": [
- 622,
+ 621,
"UsageQuotaScopeInput!"
]
}
],
"usageQuotasWithConsumption": [
- 623
+ 622
],
"validatePasswordResetToken": [
- 634,
+ 633,
{
"passwordResetToken": [
1,
@@ -11666,25 +11665,25 @@ export default {
}
],
"validationRules": [
- 635,
+ 634,
{
"objectMetadataId": [
- 529,
+ 528,
"UUID!"
]
}
],
"webhook": [
- 656,
+ 655,
{
"id": [
- 529,
+ 528,
"UUID!"
]
}
],
"webhooks": [
- 656
+ 655
],
"__typename": [
1
@@ -11692,7 +11691,7 @@ export default {
},
"RatioAggregateConfig": {
"fieldMetadataId": [
- 529
+ 528
],
"optionValue": [
1
@@ -11712,7 +11711,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"progress": [
10
@@ -11723,7 +11722,7 @@ export default {
},
"RecordIdentifier": {
"id": [
- 529
+ 528
],
"imageIdentifier": [
1
@@ -11754,13 +11753,13 @@ export default {
},
"RecordPermissionsResult": {
"objectMetadataId": [
- 529
+ 528
],
"permissions": [
432
],
"recordId": [
- 529
+ 528
],
"__typename": [
1
@@ -11769,10 +11768,10 @@ export default {
"RecordShareAccessLevel": {},
"RecordSharePrincipalInput": {
"roleId": [
- 529
+ 528
],
"workspaceMemberId": [
- 529
+ 528
],
"__typename": [
1
@@ -11784,27 +11783,24 @@ export default {
"canManageSharing": [
4
],
- "defaultGeneralAccessLevel": [
- 434
+ "hasManagedGeneralAccess": [
+ 4
],
- "generalAccessLevel": [
- 434
+ "isPrivate": [
+ 4
],
- "hasManagedGeneralAccess": [
+ "isShareable": [
4
],
"permissions": [
432
],
"roles": [
- 441
+ 440
],
"shares": [
439
],
- "sharingMode": [
- 440
- ],
"__typename": [
1
]
@@ -11817,10 +11813,10 @@ export default {
18
],
"principalId": [
- 529
+ 528
],
"principalRoleId": [
- 529
+ 528
],
"principalType": [
436
@@ -11832,7 +11828,6 @@ export default {
1
]
},
- "RecordSharingMode": {},
"RecordSharingRoleDTO": {
"canRead": [
4
@@ -11841,7 +11836,7 @@ export default {
4
],
"id": [
- 529
+ 528
],
"label": [
1
@@ -11852,7 +11847,7 @@ export default {
},
"RecordTableConfiguration": {
"configurationType": [
- 658
+ 657
],
"isUIEditable": [
4
@@ -11869,10 +11864,10 @@ export default {
},
"RecordTargetInput": {
"objectMetadataId": [
- 529
+ 528
],
"recordId": [
- 529
+ 528
],
"__typename": [
1
@@ -11880,22 +11875,22 @@ export default {
},
"RelatedRecordPath": {
"firstFieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"isInherent": [
4
],
"objectMetadataId": [
- 529
+ 528
],
"secondFieldMetadataId": [
- 529
+ 528
],
"thirdFieldMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -11915,7 +11910,7 @@ export default {
378
],
"type": [
- 446
+ 445
],
"__typename": [
1
@@ -11954,7 +11949,7 @@ export default {
},
"RevokeApiKeyInput": {
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -11982,7 +11977,7 @@ export default {
38
],
"applicationId": [
- 529
+ 528
],
"canAccessAllAgentChatChannels": [
4
@@ -12024,7 +12019,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isEditable": [
4
@@ -12036,19 +12031,19 @@ export default {
386
],
"permissionFlags": [
- 453
+ 452
],
"rowLevelPermissionPredicateGroups": [
- 456
+ 455
],
"rowLevelPermissionPredicates": [
- 455
+ 454
],
"universalIdentifier": [
- 529
+ 528
],
"workspaceMembers": [
- 672
+ 671
],
"__typename": [
1
@@ -12059,10 +12054,10 @@ export default {
1
],
"id": [
- 529
+ 528
],
"roleId": [
- 529
+ 528
],
"__typename": [
1
@@ -12087,7 +12082,7 @@ export default {
1
],
"operand": [
- 460
+ 459
],
"positionInRowLevelPermissionPredicateGroup": [
6
@@ -12122,7 +12117,7 @@ export default {
1
],
"logicalOperator": [
- 458
+ 457
],
"objectMetadataId": [
1
@@ -12142,16 +12137,16 @@ export default {
},
"RowLevelPermissionPredicateGroupInput": {
"id": [
- 529
+ 528
],
"logicalOperator": [
- 458
+ 457
],
"objectMetadataId": [
- 529
+ 528
],
"parentRowLevelPermissionPredicateGroupId": [
- 529
+ 528
],
"positionInRowLevelPermissionPredicateGroup": [
6
@@ -12163,22 +12158,22 @@ export default {
"RowLevelPermissionPredicateGroupLogicalOperator": {},
"RowLevelPermissionPredicateInput": {
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"operand": [
- 460
+ 459
],
"positionInRowLevelPermissionPredicateGroup": [
6
],
"relationFieldMetadataId": [
- 529
+ 528
],
"rowLevelPermissionPredicateGroupId": [
- 529
+ 528
],
"subFieldName": [
1
@@ -12205,10 +12200,10 @@ export default {
1
],
"input": [
- 463
+ 462
],
"messages": [
- 463
+ 462
],
"prompt": [
1
@@ -12217,10 +12212,10 @@ export default {
315
],
"runAsWorkspaceMemberId": [
- 529
+ 528
],
"thread": [
- 466
+ 465
],
"waitForCompletion": [
4
@@ -12231,7 +12226,7 @@ export default {
},
"RunAgentMessageAttachmentInput": {
"fileId": [
- 529
+ 528
],
"filename": [
1
@@ -12242,13 +12237,13 @@ export default {
},
"RunAgentMessageInput": {
"attachments": [
- 462
+ 461
],
"content": [
1
],
"role": [
- 464
+ 463
],
"__typename": [
1
@@ -12269,7 +12264,7 @@ export default {
4
],
"threadId": [
- 529
+ 528
],
"__typename": [
1
@@ -12288,7 +12283,7 @@ export default {
},
"SSOConnection": {
"id": [
- 529
+ 528
],
"issuer": [
1
@@ -12297,7 +12292,7 @@ export default {
1
],
"status": [
- 469
+ 468
],
"type": [
296
@@ -12308,7 +12303,7 @@ export default {
},
"SSOIdentityProvider": {
"id": [
- 529
+ 528
],
"issuer": [
1
@@ -12317,7 +12312,7 @@ export default {
1
],
"status": [
- 469
+ 468
],
"type": [
296
@@ -12343,16 +12338,16 @@ export default {
211
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"position": [
6
],
"tsVectorFieldMetadataId": [
- 529
+ 528
],
"updatedAt": [
211
@@ -12363,13 +12358,13 @@ export default {
},
"SendAppChannelMessageInput": {
"idempotencyKey": [
- 529
+ 528
],
"messageChannelId": [
- 529
+ 528
],
"messageThreadId": [
- 529
+ 528
],
"text": [
1
@@ -12380,10 +12375,10 @@ export default {
},
"SendAppChannelMessageOutput": {
"messageId": [
- 529
+ 528
],
"messageThreadId": [
- 529
+ 528
],
"__typename": [
1
@@ -12391,7 +12386,7 @@ export default {
},
"SendChatMessageResult": {
"mentionedParticipantWorkspaceMemberIds": [
- 529
+ 528
],
"messageId": [
1
@@ -12434,7 +12429,7 @@ export default {
1
],
"files": [
- 475
+ 474
],
"fromHandle": [
1
@@ -12446,7 +12441,7 @@ export default {
1
],
"targetRecord": [
- 478
+ 477
],
"to": [
1
@@ -12474,7 +12469,7 @@ export default {
1
],
"recordId": [
- 529
+ 528
],
"__typename": [
1
@@ -12505,7 +12500,7 @@ export default {
315
],
"workspaceMemberIds": [
- 529
+ 528
],
"__typename": [
1
@@ -12513,7 +12508,7 @@ export default {
},
"SendInboxMessageResult": {
"threadId": [
- 529
+ 528
],
"__typename": [
1
@@ -12524,7 +12519,7 @@ export default {
1
],
"result": [
- 670
+ 669
],
"success": [
4
@@ -12611,31 +12606,31 @@ export default {
},
"SettingsMenuItem": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
],
"frontComponentId": [
- 529
+ 528
],
"icon": [
1
],
"id": [
- 529
+ 528
],
"position": [
6
],
"scope": [
- 489
+ 488
],
"title": [
1
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
@@ -12670,7 +12665,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"issuer": [
1
@@ -12687,7 +12682,7 @@ export default {
},
"SetupSso": {
"id": [
- 529
+ 528
],
"issuer": [
1
@@ -12696,7 +12691,7 @@ export default {
1
],
"status": [
- 469
+ 468
],
"type": [
296
@@ -12710,7 +12705,7 @@ export default {
83
],
"workspace": [
- 682
+ 681
],
"__typename": [
1
@@ -12735,7 +12730,7 @@ export default {
},
"Skill": {
"applicationId": [
- 529
+ 528
],
"content": [
1
@@ -12750,7 +12745,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -12776,10 +12771,10 @@ export default {
},
"StandaloneRichTextConfiguration": {
"body": [
- 451
+ 450
],
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -12787,7 +12782,7 @@ export default {
},
"StartWorkspaceSetupChatResult": {
"outcome": [
- 680
+ 679
],
"thread": [
17
@@ -12857,7 +12852,7 @@ export default {
14,
{
"threadId": [
- 529,
+ 528,
"UUID!"
]
}
@@ -12879,7 +12874,7 @@ export default {
"SubscriptionStatus": {},
"Support": {
"supportDriver": [
- 504
+ 503
],
"supportFrontChatId": [
1
@@ -12894,7 +12889,7 @@ export default {
43
],
"messageChannelId": [
- 529
+ 528
],
"__typename": [
1
@@ -12902,7 +12897,7 @@ export default {
},
"TasksConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -12913,22 +12908,22 @@ export default {
1
],
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
],
"emit": [
- 508
+ 507
],
"frontComponentUniversalIdentifier": [
- 529
+ 528
],
"icon": [
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -12940,13 +12935,13 @@ export default {
1
],
"objectUniversalIdentifier": [
- 529
+ 528
],
"replacesTimelineActivityTypeUniversalIdentifier": [
- 529
+ 528
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
@@ -12957,13 +12952,13 @@ export default {
},
"TimelineActivityTypeEmit": {
"objectUniversalIdentifier": [
- 529
+ 528
],
"on": [
1
],
"through": [
- 509
+ 508
],
"__typename": [
1
@@ -12971,13 +12966,13 @@ export default {
},
"TimelineActivityTypeEmitThrough": {
"happensAtFieldUniversalIdentifier": [
- 529
+ 528
],
"relationFieldUniversalIdentifier": [
- 529
+ 528
],
"triggerFieldUniversalIdentifiers": [
- 529
+ 528
],
"__typename": [
1
@@ -12985,7 +12980,7 @@ export default {
},
"TimelineConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -13033,7 +13028,7 @@ export default {
},
"TriggerAddPeopleToMessageListJobInput": {
"messageListId": [
- 529
+ 528
],
"personFilter": [
315
@@ -13141,7 +13136,7 @@ export default {
1
],
"twoFactorAuthenticationMethodId": [
- 529
+ 528
],
"__typename": [
1
@@ -13186,19 +13181,19 @@ export default {
"UUID": {},
"UUIDFilterComparison": {
"eq": [
- 529
+ 528
],
"gt": [
- 529
+ 528
],
"gte": [
- 529
+ 528
],
"iLike": [
- 529
+ 528
],
"in": [
- 529
+ 528
],
"is": [
4
@@ -13207,25 +13202,25 @@ export default {
4
],
"like": [
- 529
+ 528
],
"lt": [
- 529
+ 528
],
"lte": [
- 529
+ 528
],
"neq": [
- 529
+ 528
],
"notILike": [
- 529
+ 528
],
"notIn": [
- 529
+ 528
],
"notLike": [
- 529
+ 528
],
"__typename": [
1
@@ -13240,7 +13235,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"name": [
1
@@ -13249,7 +13244,7 @@ export default {
211
],
"visibility": [
- 533
+ 532
],
"__typename": [
1
@@ -13270,7 +13265,7 @@ export default {
6
],
"roleIds": [
- 529
+ 528
],
"__typename": [
1
@@ -13284,7 +13279,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -13308,7 +13303,7 @@ export default {
315
],
"roleId": [
- 529
+ 528
],
"triggers": [
315
@@ -13322,7 +13317,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"name": [
1
@@ -13339,13 +13334,13 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isSyncEnabled": [
4
],
"messagingProviderUniversalIdentifier": [
- 529
+ 528
],
"visibility": [
352
@@ -13367,7 +13362,7 @@ export default {
1
],
"update": [
- 540
+ 539
],
"__typename": [
1
@@ -13392,7 +13387,7 @@ export default {
1
],
"update": [
- 542
+ 541
],
"__typename": [
1
@@ -13414,10 +13409,10 @@ export default {
},
"UpdateCalendarChannelInput": {
"id": [
- 529
+ 528
],
"update": [
- 544
+ 543
],
"__typename": [
1
@@ -13445,7 +13440,7 @@ export default {
},
"UpdateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 529
+ 528
],
"availabilityType": [
155
@@ -13460,7 +13455,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isPinned": [
4
@@ -13469,7 +13464,7 @@ export default {
1
],
"pageLayoutId": [
- 529
+ 528
],
"position": [
6
@@ -13486,7 +13481,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -13539,7 +13534,7 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"options": [
315
@@ -13559,10 +13554,10 @@ export default {
},
"UpdateFrontComponentInput": {
"id": [
- 529
+ 528
],
"update": [
- 549
+ 548
],
"__typename": [
1
@@ -13592,10 +13587,10 @@ export default {
},
"UpdateLogicFunctionFromSourceInput": {
"id": [
- 529
+ 528
],
"update": [
- 552
+ 551
],
"__typename": [
1
@@ -13641,10 +13636,10 @@ export default {
},
"UpdateMcpServerInput": {
"id": [
- 529
+ 528
],
"update": [
- 554
+ 553
],
"__typename": [
1
@@ -13652,7 +13647,7 @@ export default {
},
"UpdateMcpServerInputUpdates": {
"connectionProviderId": [
- 529
+ 528
],
"isActive": [
4
@@ -13672,10 +13667,10 @@ export default {
},
"UpdateMessageChannelInput": {
"id": [
- 529
+ 528
],
"update": [
- 556
+ 555
],
"__typename": [
1
@@ -13709,10 +13704,10 @@ export default {
},
"UpdateMessageFolderInput": {
"id": [
- 529
+ 528
],
"update": [
- 558
+ 557
],
"__typename": [
1
@@ -13728,10 +13723,10 @@ export default {
},
"UpdateMessageFoldersInput": {
"ids": [
- 529
+ 528
],
"update": [
- 558
+ 557
],
"__typename": [
1
@@ -13742,7 +13737,7 @@ export default {
1
],
"folderId": [
- 529
+ 528
],
"icon": [
1
@@ -13754,7 +13749,7 @@ export default {
1
],
"pageLayoutId": [
- 529
+ 528
],
"position": [
6
@@ -13774,7 +13769,7 @@ export default {
1
],
"imageIdentifierFieldMetadataId": [
- 529
+ 528
],
"isActive": [
4
@@ -13786,7 +13781,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 529
+ 528
],
"labelPlural": [
1
@@ -13821,10 +13816,10 @@ export default {
},
"UpdateOneFieldMetadataInput": {
"id": [
- 529
+ 528
],
"update": [
- 547
+ 546
],
"__typename": [
1
@@ -13832,10 +13827,10 @@ export default {
},
"UpdateOneNavigationMenuItemInput": {
"id": [
- 529
+ 528
],
"update": [
- 560
+ 559
],
"__typename": [
1
@@ -13843,10 +13838,10 @@ export default {
},
"UpdateOneObjectInput": {
"id": [
- 529
+ 528
],
"update": [
- 561
+ 560
],
"__typename": [
1
@@ -13857,7 +13852,7 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"type": [
402
@@ -13888,7 +13883,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"layoutMode": [
401
@@ -13900,7 +13895,7 @@ export default {
1
],
"widgets": [
- 569
+ 568
],
"__typename": [
1
@@ -13920,10 +13915,10 @@ export default {
4
],
"objectMetadataId": [
- 529
+ 528
],
"pageLayoutTabId": [
- 529
+ 528
],
"position": [
315
@@ -13932,7 +13927,7 @@ export default {
1
],
"type": [
- 659
+ 658
],
"__typename": [
1
@@ -13949,13 +13944,13 @@ export default {
315
],
"id": [
- 529
+ 528
],
"objectMetadataId": [
- 529
+ 528
],
"pageLayoutTabId": [
- 529
+ 528
],
"position": [
315
@@ -13964,7 +13959,7 @@ export default {
1
],
"type": [
- 659
+ 658
],
"__typename": [
1
@@ -13978,10 +13973,10 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"tabs": [
- 567
+ 566
],
"type": [
402
@@ -13992,10 +13987,10 @@ export default {
},
"UpdateRoleInput": {
"id": [
- 529
+ 528
],
"update": [
- 572
+ 571
],
"__typename": [
1
@@ -14056,7 +14051,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -14076,7 +14071,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -14102,7 +14097,7 @@ export default {
1
],
"visibility": [
- 533
+ 532
],
"__typename": [
1
@@ -14110,7 +14105,7 @@ export default {
},
"UpdateUsageLimitInput": {
"id": [
- 529
+ 528
],
"payload": [
198
@@ -14121,10 +14116,10 @@ export default {
},
"UpdateValidationRuleInput": {
"id": [
- 529
+ 528
],
"update": [
- 578
+ 577
],
"__typename": [
1
@@ -14135,7 +14130,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 529
+ 528
],
"expression": [
1
@@ -14158,10 +14153,10 @@ export default {
},
"UpdateViewFieldGroupInput": {
"id": [
- 529
+ 528
],
"update": [
- 580
+ 579
],
"__typename": [
1
@@ -14186,10 +14181,10 @@ export default {
},
"UpdateViewFieldInput": {
"id": [
- 529
+ 528
],
"update": [
- 582
+ 581
],
"__typename": [
1
@@ -14209,7 +14204,7 @@ export default {
6
],
"viewFieldGroupId": [
- 529
+ 528
],
"__typename": [
1
@@ -14217,19 +14212,19 @@ export default {
},
"UpdateViewFilterGroupInput": {
"id": [
- 529
+ 528
],
"logicalOperator": [
- 647
+ 646
],
"parentViewFilterGroupId": [
- 529
+ 528
],
"positionInViewFilterGroup": [
6
],
"viewId": [
- 529
+ 528
],
"__typename": [
1
@@ -14237,10 +14232,10 @@ export default {
},
"UpdateViewFilterInput": {
"id": [
- 529
+ 528
],
"update": [
- 585
+ 584
],
"__typename": [
1
@@ -14248,16 +14243,16 @@ export default {
},
"UpdateViewFilterInputUpdates": {
"fieldMetadataId": [
- 529
+ 528
],
"operand": [
- 648
+ 647
],
"positionInViewFilterGroup": [
6
],
"relationTargetFieldMetadataId": [
- 529
+ 528
],
"subFieldName": [
1
@@ -14266,7 +14261,7 @@ export default {
315
],
"viewFilterGroupId": [
- 529
+ 528
],
"__typename": [
1
@@ -14274,10 +14269,10 @@ export default {
},
"UpdateViewGroupInput": {
"id": [
- 529
+ 528
],
"update": [
- 587
+ 586
],
"__typename": [
1
@@ -14285,7 +14280,7 @@ export default {
},
"UpdateViewGroupInputUpdates": {
"fieldMetadataId": [
- 529
+ 528
],
"fieldValue": [
1
@@ -14305,13 +14300,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 529
+ 528
],
"calendarFieldMetadataId": [
- 529
+ 528
],
"calendarLayout": [
- 641
+ 640
],
"groupLoadLimit": [
10
@@ -14320,7 +14315,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isCompact": [
4
@@ -14329,19 +14324,19 @@ export default {
27
],
"kanbanAggregateOperationFieldMetadataId": [
- 529
+ 528
],
"kanbanColumnWidth": [
10
],
"mainGroupByFieldMetadataId": [
- 529
+ 528
],
"name": [
1
],
"openRecordIn": [
- 651
+ 650
],
"position": [
6
@@ -14353,10 +14348,10 @@ export default {
365
],
"type": [
- 654
+ 653
],
"visibility": [
- 655
+ 654
],
"__typename": [
1
@@ -14364,10 +14359,10 @@ export default {
},
"UpdateViewSortInput": {
"id": [
- 529
+ 528
],
"update": [
- 590
+ 589
],
"__typename": [
1
@@ -14375,7 +14370,7 @@ export default {
},
"UpdateViewSortInputUpdates": {
"direction": [
- 653
+ 652
],
"subFieldName": [
1
@@ -14386,10 +14381,10 @@ export default {
},
"UpdateWebhookInput": {
"id": [
- 529
+ 528
],
"update": [
- 592
+ 591
],
"__typename": [
1
@@ -14403,7 +14398,7 @@ export default {
1
],
"roleId": [
- 529
+ 528
],
"secret": [
1
@@ -14463,7 +14458,7 @@ export default {
1
],
"defaultRoleId": [
- 529
+ 528
],
"displayName": [
1
@@ -14523,7 +14518,7 @@ export default {
6
],
"workspaceDiscoverability": [
- 669
+ 668
],
"__typename": [
1
@@ -14534,7 +14529,7 @@ export default {
315
],
"workspaceMemberId": [
- 529
+ 528
],
"__typename": [
1
@@ -14546,7 +14541,7 @@ export default {
274
],
"roleId": [
- 529
+ 528
],
"__typename": [
1
@@ -14554,7 +14549,7 @@ export default {
},
"UpsertFieldsWidgetFieldInput": {
"fieldMetadataId": [
- 529
+ 528
],
"isVisible": [
4
@@ -14563,7 +14558,7 @@ export default {
6
],
"viewFieldId": [
- 529
+ 528
],
"__typename": [
1
@@ -14571,10 +14566,10 @@ export default {
},
"UpsertFieldsWidgetGroupInput": {
"fields": [
- 599
+ 598
],
"id": [
- 529
+ 528
],
"isVisible": [
4
@@ -14591,13 +14586,13 @@ export default {
},
"UpsertFieldsWidgetInput": {
"fields": [
- 599
+ 598
],
"groups": [
- 600
+ 599
],
"widgetId": [
- 529
+ 528
],
"__typename": [
1
@@ -14608,7 +14603,7 @@ export default {
387
],
"roleId": [
- 529
+ 528
],
"__typename": [
1
@@ -14619,7 +14614,7 @@ export default {
1
],
"roleId": [
- 529
+ 528
],
"__typename": [
1
@@ -14627,16 +14622,16 @@ export default {
},
"UpsertRowLevelPermissionPredicatesInput": {
"objectMetadataId": [
- 529
+ 528
],
"predicateGroups": [
- 457
+ 456
],
"predicates": [
- 459
+ 458
],
"roleId": [
- 529
+ 528
],
"__typename": [
1
@@ -14644,10 +14639,10 @@ export default {
},
"UpsertRowLevelPermissionPredicatesResult": {
"predicateGroups": [
- 456
+ 455
],
"predicates": [
- 455
+ 454
],
"__typename": [
1
@@ -14655,22 +14650,22 @@ export default {
},
"UpsertViewWidgetInput": {
"view": [
- 610
+ 609
],
"viewFields": [
- 607
+ 606
],
"viewFilterGroups": [
- 608
+ 607
],
"viewFilters": [
- 609
+ 608
],
"viewSorts": [
- 611
+ 610
],
"widgetId": [
- 529
+ 528
],
"__typename": [
1
@@ -14681,7 +14676,7 @@ export default {
27
],
"fieldMetadataId": [
- 529
+ 528
],
"isVisible": [
4
@@ -14693,7 +14688,7 @@ export default {
6
],
"viewFieldId": [
- 529
+ 528
],
"__typename": [
1
@@ -14701,13 +14696,13 @@ export default {
},
"UpsertViewWidgetViewFilterGroupInput": {
"id": [
- 529
+ 528
],
"logicalOperator": [
- 647
+ 646
],
"parentViewFilterGroupId": [
- 529
+ 528
],
"positionInViewFilterGroup": [
6
@@ -14718,19 +14713,19 @@ export default {
},
"UpsertViewWidgetViewFilterInput": {
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"operand": [
- 648
+ 647
],
"positionInViewFilterGroup": [
6
],
"relationTargetFieldMetadataId": [
- 529
+ 528
],
"subFieldName": [
1
@@ -14739,7 +14734,7 @@ export default {
315
],
"viewFilterGroupId": [
- 529
+ 528
],
"__typename": [
1
@@ -14747,34 +14742,34 @@ export default {
},
"UpsertViewWidgetViewSettingsInput": {
"calendarEndFieldMetadataId": [
- 529
+ 528
],
"calendarFieldMetadataId": [
- 529
+ 528
],
"calendarLayout": [
- 641
+ 640
],
"kanbanAggregateOperation": [
27
],
"kanbanAggregateOperationFieldMetadataId": [
- 529
+ 528
],
"kanbanColumnWidth": [
10
],
"mainGroupByFieldMetadataId": [
- 529
+ 528
],
"openRecordIn": [
- 651
+ 650
],
"shouldHideEmptyGroups": [
4
],
"type": [
- 654
+ 653
],
"__typename": [
1
@@ -14782,13 +14777,13 @@ export default {
},
"UpsertViewWidgetViewSortInput": {
"direction": [
- 653
+ 652
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -14802,22 +14797,22 @@ export default {
211
],
"timeSeries": [
- 625
+ 624
],
"usageByApplication": [
- 614
+ 613
],
"usageByModel": [
- 614
+ 613
],
"usageByOperationType": [
- 614
+ 613
],
"usageByUser": [
- 614
+ 613
],
"userDailyUsage": [
- 627
+ 626
],
"__typename": [
1
@@ -14825,7 +14820,7 @@ export default {
},
"UsageAnalyticsInput": {
"operationTypes": [
- 617
+ 616
],
"periodEnd": [
211
@@ -14868,7 +14863,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"limitKind": [
1
@@ -14877,7 +14872,7 @@ export default {
98
],
"operationType": [
- 617
+ 616
],
"periodCount": [
10
@@ -14886,7 +14881,7 @@ export default {
1
],
"resourceType": [
- 624
+ 623
],
"spenderId": [
1
@@ -14895,7 +14890,7 @@ export default {
1
],
"unit": [
- 626
+ 625
],
"updatedAt": [
211
@@ -14906,10 +14901,10 @@ export default {
},
"UsageLimitOperationDefinition": {
"allowedUnits": [
- 626
+ 625
],
"operationType": [
- 617
+ 616
],
"__typename": [
1
@@ -14918,7 +14913,7 @@ export default {
"UsageOperationType": {},
"UsageQuotaDefinition": {
"allowedOperations": [
- 616
+ 615
],
"allowedSpenderTypes": [
1
@@ -14927,10 +14922,10 @@ export default {
1
],
"operatorOnlyScopes": [
- 620
+ 619
],
"resourceType": [
- 624
+ 623
],
"__typename": [
1
@@ -14938,7 +14933,7 @@ export default {
},
"UsageQuotaDefinitions": {
"definitions": [
- 618
+ 617
],
"hasAllowancePeriod": [
4
@@ -14952,7 +14947,7 @@ export default {
},
"UsageQuotaOperatorOnlyScope": {
"operationType": [
- 617
+ 616
],
"periodUnit": [
1
@@ -14961,7 +14956,7 @@ export default {
1
],
"unit": [
- 626
+ 625
],
"__typename": [
1
@@ -14983,13 +14978,13 @@ export default {
},
"UsageQuotaScopeInput": {
"operationType": [
- 617
+ 616
],
"periodUnit": [
1
],
"resourceType": [
- 624
+ 623
],
"spenderId": [
1
@@ -14998,7 +14993,7 @@ export default {
1
],
"unit": [
- 626
+ 625
],
"__typename": [
1
@@ -15009,7 +15004,7 @@ export default {
98
],
"id": [
- 529
+ 528
],
"isEnforced": [
4
@@ -15018,7 +15013,7 @@ export default {
98
],
"operationType": [
- 617
+ 616
],
"periodEnd": [
211
@@ -15033,7 +15028,7 @@ export default {
98
],
"resourceType": [
- 624
+ 623
],
"spenderId": [
1
@@ -15045,7 +15040,7 @@ export default {
1
],
"unit": [
- 626
+ 625
],
"__typename": [
1
@@ -15069,7 +15064,7 @@ export default {
"UsageUnit": {},
"UsageUserDaily": {
"dailyUsage": [
- 625
+ 624
],
"userWorkspaceId": [
1
@@ -15092,10 +15087,10 @@ export default {
211
],
"currentUserWorkspace": [
- 632
+ 631
],
"currentWorkspace": [
- 663
+ 662
],
"deletedAt": [
211
@@ -15116,7 +15111,7 @@ export default {
4
],
"id": [
- 529
+ 528
],
"isEmailVerified": [
4
@@ -15146,16 +15141,16 @@ export default {
316
],
"userWorkspaces": [
- 632
+ 631
],
"workspaceMember": [
- 672
+ 671
],
"workspaceMembers": [
- 672
+ 671
],
"workspaces": [
- 632
+ 631
],
"__typename": [
1
@@ -15211,7 +15206,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"ipAddress": [
1
@@ -15232,7 +15227,7 @@ export default {
1
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -15246,7 +15241,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"isImpersonating": [
4
@@ -15264,16 +15259,16 @@ export default {
411
],
"twoFactorAuthenticationMethodSummary": [
- 525
+ 524
],
"updatedAt": [
211
],
"user": [
- 628
+ 627
],
"userId": [
- 529
+ 528
],
"__typename": [
1
@@ -15281,7 +15276,7 @@ export default {
},
"ValidateApprovedAccessDomainInput": {
"approvedAccessDomainId": [
- 529
+ 528
],
"validationToken": [
1
@@ -15298,7 +15293,7 @@ export default {
4
],
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -15309,7 +15304,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 529
+ 528
],
"expression": [
1
@@ -15318,7 +15313,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -15330,7 +15325,7 @@ export default {
1
],
"objectMetadataId": [
- 529
+ 528
],
"__typename": [
1
@@ -15361,7 +15356,7 @@ export default {
83
],
"workspaceUrls": [
- 681
+ 680
],
"__typename": [
1
@@ -15391,22 +15386,22 @@ export default {
1
],
"applicationId": [
- 529
+ 528
],
"calendarEndFieldMetadataId": [
- 529
+ 528
],
"calendarFieldMetadataId": [
- 529
+ 528
],
"calendarLayout": [
- 641
+ 640
],
"createdAt": [
211
],
"createdByUserWorkspaceId": [
- 529
+ 528
],
"deletedAt": [
211
@@ -15418,7 +15413,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -15436,25 +15431,25 @@ export default {
27
],
"kanbanAggregateOperationFieldMetadataId": [
- 529
+ 528
],
"kanbanColumnWidth": [
10
],
"key": [
- 650
+ 649
],
"mainGroupByFieldMetadataId": [
- 529
+ 528
],
"name": [
1
],
"objectMetadataId": [
- 529
+ 528
],
"openRecordIn": [
- 651
+ 650
],
"position": [
6
@@ -15463,37 +15458,37 @@ export default {
4
],
"type": [
- 654
+ 653
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
],
"viewFieldGroups": [
- 644
+ 643
],
"viewFields": [
- 643
+ 642
],
"viewFilterGroups": [
- 646
+ 645
],
"viewFilters": [
- 645
+ 644
],
"viewGroups": [
- 649
+ 648
],
"viewSorts": [
- 652
+ 651
],
"visibility": [
- 655
+ 654
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -15502,7 +15497,7 @@ export default {
"ViewCalendarLayout": {},
"ViewConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -15513,7 +15508,7 @@ export default {
27
],
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
@@ -15522,10 +15517,10 @@ export default {
211
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -15546,19 +15541,19 @@ export default {
6
],
"universalIdentifier": [
- 529
+ 528
],
"updatedAt": [
211
],
"viewFieldGroupId": [
- 529
+ 528
],
"viewId": [
- 529
+ 528
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -15572,7 +15567,7 @@ export default {
211
],
"id": [
- 529
+ 528
],
"isActive": [
4
@@ -15593,13 +15588,13 @@ export default {
211
],
"viewFields": [
- 643
+ 642
],
"viewId": [
- 529
+ 528
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -15613,19 +15608,19 @@ export default {
211
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"operand": [
- 648
+ 647
],
"positionInViewFilterGroup": [
6
],
"relationTargetFieldMetadataId": [
- 529
+ 528
],
"subFieldName": [
1
@@ -15637,13 +15632,13 @@ export default {
315
],
"viewFilterGroupId": [
- 529
+ 528
],
"viewId": [
- 529
+ 528
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -15657,13 +15652,13 @@ export default {
211
],
"id": [
- 529
+ 528
],
"logicalOperator": [
- 647
+ 646
],
"parentViewFilterGroupId": [
- 529
+ 528
],
"positionInViewFilterGroup": [
6
@@ -15672,10 +15667,10 @@ export default {
211
],
"viewId": [
- 529
+ 528
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -15694,7 +15689,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"isVisible": [
4
@@ -15706,10 +15701,10 @@ export default {
211
],
"viewId": [
- 529
+ 528
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -15725,13 +15720,13 @@ export default {
211
],
"direction": [
- 653
+ 652
],
"fieldMetadataId": [
- 529
+ 528
],
"id": [
- 529
+ 528
],
"subFieldName": [
1
@@ -15740,10 +15735,10 @@ export default {
211
],
"viewId": [
- 529
+ 528
],
"workspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -15754,7 +15749,7 @@ export default {
"ViewVisibility": {},
"Webhook": {
"applicationId": [
- 529
+ 528
],
"createdAt": [
211
@@ -15766,13 +15761,13 @@ export default {
1
],
"id": [
- 529
+ 528
],
"operations": [
1
],
"role": [
- 452
+ 451
],
"secret": [
1
@@ -15852,28 +15847,28 @@ export default {
412
],
"on_RecordTableConfiguration": [
- 442
+ 441
],
"on_StandaloneRichTextConfiguration": [
- 496
+ 495
],
"on_TasksConfiguration": [
- 506
+ 505
],
"on_TimelineConfiguration": [
- 510
+ 509
],
"on_ViewConfiguration": [
- 642
+ 641
],
"on_WorkflowConfiguration": [
- 660
+ 659
],
"on_WorkflowRunConfiguration": [
- 661
+ 660
],
"on_WorkflowVersionConfiguration": [
- 662
+ 661
],
"__typename": [
1
@@ -15883,7 +15878,7 @@ export default {
"WidgetType": {},
"WorkflowConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -15891,7 +15886,7 @@ export default {
},
"WorkflowRunConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -15899,7 +15894,7 @@ export default {
},
"WorkflowVersionConfiguration": {
"configurationType": [
- 658
+ 657
],
"__typename": [
1
@@ -15907,7 +15902,7 @@ export default {
},
"Workspace": {
"activationStatus": [
- 664
+ 663
],
"aiAdditionalInstructions": [
1
@@ -15952,7 +15947,7 @@ export default {
1
],
"defaultRole": [
- 452
+ 451
],
"deletedAt": [
211
@@ -15976,7 +15971,7 @@ export default {
4
],
"id": [
- 529
+ 528
],
"iframeMediaPermissions": [
298
@@ -16033,7 +16028,7 @@ export default {
1
],
"logoFileId": [
- 529
+ 528
],
"metadataVersion": [
6
@@ -16048,22 +16043,22 @@ export default {
211
],
"viewFields": [
- 643
+ 642
],
"viewFilterGroups": [
- 646
+ 645
],
"viewFilters": [
- 645
+ 644
],
"viewGroups": [
- 649
+ 648
],
"viewSorts": [
- 652
+ 651
],
"views": [
- 640
+ 639
],
"workspaceCustomApplication": [
46
@@ -16072,13 +16067,13 @@ export default {
1
],
"workspaceDiscoverability": [
- 669
+ 668
],
"workspaceMembersCount": [
6
],
"workspaceUrls": [
- 681
+ 680
],
"__typename": [
1
@@ -16108,13 +16103,13 @@ export default {
4
],
"outcome": [
- 666
+ 665
],
"personEnrichment": [
315
],
"personOutcome": [
- 679
+ 678
],
"__typename": [
1
@@ -16140,10 +16135,10 @@ export default {
211
],
"id": [
- 529
+ 528
],
"roleId": [
- 529
+ 528
],
"__typename": [
1
@@ -16168,10 +16163,10 @@ export default {
1
],
"dateFormat": [
- 674
+ 673
],
"id": [
- 529
+ 528
],
"locale": [
1
@@ -16180,16 +16175,16 @@ export default {
289
],
"numberFormat": [
- 675
+ 674
],
"openRecordIn": [
397
],
"roles": [
- 452
+ 451
],
"timeFormat": [
- 676
+ 675
],
"timeZone": [
1
@@ -16201,10 +16196,10 @@ export default {
1
],
"userId": [
- 529
+ 528
],
"userWorkspaceId": [
- 529
+ 528
],
"__typename": [
1
@@ -16212,13 +16207,13 @@ export default {
},
"WorkspaceMemberApplicationVariables": {
"userWorkspaceId": [
- 529
+ 528
],
"variables": [
- 629
+ 628
],
"workspaceMemberId": [
- 529
+ 528
],
"__typename": [
1
@@ -16243,7 +16238,7 @@ export default {
1
],
"id": [
- 529
+ 528
],
"__typename": [
1
@@ -16264,10 +16259,10 @@ export default {
},
"WorkspaceUrlsAndId": {
"id": [
- 529
+ 528
],
"workspaceUrls": [
- 681
+ 680
],
"__typename": [
1
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index b259678e3f3..fb3a9c5347b 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -1193,7 +1193,7 @@ export type MostlyEmptyFieldMetadataIdsQueryVariables = Exact<{
export type MostlyEmptyFieldMetadataIdsQuery = { mostlyEmptyFieldMetadataIds: Array<string> };
-export type RecordSharingFieldsFragment = { __typename: 'RecordSharingDTO', sharingMode: Types.RecordSharingMode, canManageSharing: boolean, generalAccessLevel: Types.RecordShareAccessLevel | null, defaultGeneralAccessLevel: Types.RecordShareAccessLevel | null, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> };
+export type RecordSharingFieldsFragment = { __typename: 'RecordSharingDTO', isShareable: boolean, isPrivate: boolean, canManageSharing: boolean, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> };
export type RemoveRecordShareMutationVariables = Exact<{
target: Types.RecordTargetInput;
@@ -1201,15 +1201,15 @@ export type RemoveRecordShareMutationVariables = Exact<{
}>;
-export type RemoveRecordShareMutation = { removeRecordShare: { __typename: 'RecordSharingDTO', sharingMode: Types.RecordSharingMode, canManageSharing: boolean, generalAccessLevel: Types.RecordShareAccessLevel | null, defaultGeneralAccessLevel: Types.RecordShareAccessLevel | null, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> } };
+export type RemoveRecordShareMutation = { removeRecordShare: { __typename: 'RecordSharingDTO', isShareable: boolean, isPrivate: boolean, canManageSharing: boolean, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> } };
-export type SetRecordGeneralAccessMutationVariables = Exact<{
+export type SetRecordPrivateMutationVariables = Exact<{
target: Types.RecordTargetInput;
- accessLevel: Types.RecordShareAccessLevel;
+ isPrivate: boolean;
}>;
-export type SetRecordGeneralAccessMutation = { setRecordGeneralAccess: { __typename: 'RecordSharingDTO', sharingMode: Types.RecordSharingMode, canManageSharing: boolean, generalAccessLevel: Types.RecordShareAccessLevel | null, defaultGeneralAccessLevel: Types.RecordShareAccessLevel | null, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> } };
+export type SetRecordPrivateMutation = { setRecordPrivate: { __typename: 'RecordSharingDTO', isShareable: boolean, isPrivate: boolean, canManageSharing: boolean, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> } };
export type SetRecordShareMutationVariables = Exact<{
target: Types.RecordTargetInput;
@@ -1218,7 +1218,7 @@ export type SetRecordShareMutationVariables = Exact<{
}>;
-export type SetRecordShareMutation = { setRecordShare: { __typename: 'RecordSharingDTO', sharingMode: Types.RecordSharingMode, canManageSharing: boolean, generalAccessLevel: Types.RecordShareAccessLevel | null, defaultGeneralAccessLevel: Types.RecordShareAccessLevel | null, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> } };
+export type SetRecordShareMutation = { setRecordShare: { __typename: 'RecordSharingDTO', isShareable: boolean, isPrivate: boolean, canManageSharing: boolean, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> } };
export type GetRecordPermissionsQueryVariables = Exact<{
targets: Array<Types.RecordTargetInput> | Types.RecordTargetInput;
@@ -1232,7 +1232,7 @@ export type GetRecordSharingQueryVariables = Exact<{
}>;
-export type GetRecordSharingQuery = { recordSharing: { __typename: 'RecordSharingDTO', sharingMode: Types.RecordSharingMode, canManageSharing: boolean, generalAccessLevel: Types.RecordShareAccessLevel | null, defaultGeneralAccessLevel: Types.RecordShareAccessLevel | null, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> } };
+export type GetRecordSharingQuery = { recordSharing: { __typename: 'RecordSharingDTO', isShareable: boolean, isPrivate: boolean, canManageSharing: boolean, hasManagedGeneralAccess: boolean, permissions: { __typename: 'RecordPermissionsDTO', canRead: boolean, canUpdate: boolean, canDelete: boolean, canSoftDelete: boolean }, shares: Array<{ __typename: 'RecordSharingGrantDTO', id: string, principalId: string, principalType: Types.RecordSharePrincipalType, principalRoleId: string | null, accessLevel: Types.RecordShareAccessLevel, rowCause: Types.RecordShareRowCause }>, roles: Array<{ __typename: 'RecordSharingRoleDTO', id: string, label: string, canRead: boolean | null, canUpdate: boolean | null }> } };
export type CompleteBookCallOnboardingStepMutationVariables = Exact<{
hasBookedCall: boolean;
@@ -2895,7 +2895,7 @@ export const MarketplaceAppDetailFieldsFragmentDoc = {"kind":"Document","definit
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":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}}]}}]} as unknown as DocumentNode<MarketplaceAppFieldsFragment, unknown>;
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":"agentChatChannelId"}},{"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<NavigationMenuItemFieldsFragment, unknown>;
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":"agentChatChannelId"}},{"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<NavigationMenuItemQueryFieldsFragment, unknown>;
-export const RecordSharingFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sharingMode"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"generalAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"defaultGeneralAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<RecordSharingFieldsFragment, unknown>;
+export const RecordSharingFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isShareable"}},{"kind":"Field","name":{"kind":"Name","value":"isPrivate"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<RecordSharingFieldsFragment, unknown>;
export const RelatedRecordPathFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RelatedRecordPathFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RelatedRecordPath"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"firstFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"thirdFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isInherent"}}]}}]} as unknown as DocumentNode<RelatedRecordPathFragmentFragment, unknown>;
export const ApplicationRegistrationFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationRegistrationFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApplicationRegistration"}},"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":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImagesUrls"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthClientId"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthRedirectUris"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthScopes"}},{"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":"isPreInstalled"}},{"kind":"Field","name":{"kind":"Name","value":"isConfigured"}},{"kind":"Field","name":{"kind":"Name","value":"ownerWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ApplicationRegistrationFragmentFragment, unknown>;
export const ApplicationRegistrationListItemFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationRegistrationListItem"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApplicationRegistration"}},"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":"logoUrl"}}]}}]} as unknown as DocumentNode<ApplicationRegistrationListItemFragment, unknown>;
@@ -3074,11 +3074,11 @@ export const DeleteOneIndexMetadataItemDocument = {"kind":"Document","definition
export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectMetadataItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"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":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>;
export const ObjectRecordCountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectRecordCounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectRecordCounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectNamePlural"}},{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}}]}}]} as unknown as DocumentNode<ObjectRecordCountsQuery, ObjectRecordCountsQueryVariables>;
export const MostlyEmptyFieldMetadataIdsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MostlyEmptyFieldMetadataIds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"objectMetadataId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mostlyEmptyFieldMetadataIds"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"objectMetadataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"objectMetadataId"}}}]}]}}]} as unknown as DocumentNode<MostlyEmptyFieldMetadataIdsQuery, MostlyEmptyFieldMetadataIdsQueryVariables>;
-export const RemoveRecordShareDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveRecordShare"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"principal"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharePrincipalInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeRecordShare"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}},{"kind":"Argument","name":{"kind":"Name","value":"principal"},"value":{"kind":"Variable","name":{"kind":"Name","value":"principal"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sharingMode"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"generalAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"defaultGeneralAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<RemoveRecordShareMutation, RemoveRecordShareMutationVariables>;
-export const SetRecordGeneralAccessDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetRecordGeneralAccess"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accessLevel"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordShareAccessLevel"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setRecordGeneralAccess"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}},{"kind":"Argument","name":{"kind":"Name","value":"accessLevel"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accessLevel"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sharingMode"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"generalAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"defaultGeneralAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<SetRecordGeneralAccessMutation, SetRecordGeneralAccessMutationVariables>;
-export const SetRecordShareDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetRecordShare"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"principal"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharePrincipalInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accessLevel"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordShareAccessLevel"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setRecordShare"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}},{"kind":"Argument","name":{"kind":"Name","value":"principal"},"value":{"kind":"Variable","name":{"kind":"Name","value":"principal"}}},{"kind":"Argument","name":{"kind":"Name","value":"accessLevel"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accessLevel"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sharingMode"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"generalAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"defaultGeneralAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<SetRecordShareMutation, SetRecordShareMutationVariables>;
+export const RemoveRecordShareDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveRecordShare"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"principal"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharePrincipalInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeRecordShare"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}},{"kind":"Argument","name":{"kind":"Name","value":"principal"},"value":{"kind":"Variable","name":{"kind":"Name","value":"principal"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isShareable"}},{"kind":"Field","name":{"kind":"Name","value":"isPrivate"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<RemoveRecordShareMutation, RemoveRecordShareMutationVariables>;
+export const SetRecordPrivateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetRecordPrivate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isPrivate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setRecordPrivate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}},{"kind":"Argument","name":{"kind":"Name","value":"isPrivate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isPrivate"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isShareable"}},{"kind":"Field","name":{"kind":"Name","value":"isPrivate"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<SetRecordPrivateMutation, SetRecordPrivateMutationVariables>;
+export const SetRecordShareDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetRecordShare"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"principal"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharePrincipalInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accessLevel"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordShareAccessLevel"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setRecordShare"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}},{"kind":"Argument","name":{"kind":"Name","value":"principal"},"value":{"kind":"Variable","name":{"kind":"Name","value":"principal"}}},{"kind":"Argument","name":{"kind":"Name","value":"accessLevel"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accessLevel"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isShareable"}},{"kind":"Field","name":{"kind":"Name","value":"isPrivate"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<SetRecordShareMutation, SetRecordShareMutationVariables>;
export const GetRecordPermissionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRecordPermissions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"targets"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recordPermissions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"targets"},"value":{"kind":"Variable","name":{"kind":"Name","value":"targets"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"recordId"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}}]}}]}}]} as unknown as DocumentNode<GetRecordPermissionsQuery, GetRecordPermissionsQueryVariables>;
-export const GetRecordSharingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRecordSharing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recordSharing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sharingMode"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"generalAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"defaultGeneralAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<GetRecordSharingQuery, GetRecordSharingQueryVariables>;
+export const GetRecordSharingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRecordSharing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recordSharing"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isShareable"}},{"kind":"Field","name":{"kind":"Name","value":"isPrivate"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<GetRecordSharingQuery, GetRecordSharingQueryVariables>;
export const CompleteBookCallOnboardingStepDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CompleteBookCallOnboardingStep"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hasBookedCall"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isAutoSkipped"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeBookCallOnboardingStep"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"hasBookedCall"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hasBookedCall"}}},{"kind":"Argument","name":{"kind":"Name","value":"isAutoSkipped"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isAutoSkipped"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<CompleteBookCallOnboardingStepMutation, CompleteBookCallOnboardingStepMutationVariables>;
export const EnrichWorkspaceCompanyDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"EnrichWorkspaceCompany"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enrichWorkspaceCompany"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"outcome"}},{"kind":"Field","name":{"kind":"Name","value":"enrichment"}},{"kind":"Field","name":{"kind":"Name","value":"personOutcome"}},{"kind":"Field","name":{"kind":"Name","value":"personEnrichment"}},{"kind":"Field","name":{"kind":"Name","value":"isBookCallOnboardingStepPending"}}]}}]}}]} as unknown as DocumentNode<EnrichWorkspaceCompanyMutation, EnrichWorkspaceCompanyMutationVariables>;
export const GoBackToPreviousOnboardingStepDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"GoBackToPreviousOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"goBackToPreviousOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"previousOnboardingStatus"}}]}}]}}]} as unknown as DocumentNode<GoBackToPreviousOnboardingStepMutation, GoBackToPreviousOnboardingStepMutationVariables>;
diff --git a/packages/twenty-front/src/generated-metadata/schema.ts b/packages/twenty-front/src/generated-metadata/schema.ts
index a5fed96e000..6a63a462e88 100644
--- a/packages/twenty-front/src/generated-metadata/schema.ts
+++ b/packages/twenty-front/src/generated-metadata/schema.ts
@@ -3615,7 +3615,7 @@ export type Mutation = {
sendMessageCampaignTest: SendEmailViaDomainOutput;
setAppKeyValue: AppKeyValue;
setEnterpriseKey: EnterpriseLicenseInfoDto;
- setRecordGeneralAccess: RecordSharingDto;
+ setRecordPrivate: RecordSharingDto;
setRecordShare: RecordSharingDto;
setResourceCreditSubscriptionPrice: BillingUpdate;
signIn: AvailableWorkspacesAndAccessTokens;
@@ -4683,8 +4683,8 @@ export type MutationSetEnterpriseKeyArgs = {
};
-export type MutationSetRecordGeneralAccessArgs = {
- accessLevel: RecordShareAccessLevel;
+export type MutationSetRecordPrivateArgs = {
+ isPrivate: Scalars['Boolean']['input'];
target: RecordTargetInput;
};
@@ -6520,13 +6520,12 @@ export enum RecordShareRowCause {
export type RecordSharingDto = {
__typename?: 'RecordSharingDTO';
canManageSharing: Scalars['Boolean']['output'];
- defaultGeneralAccessLevel?: Maybe<RecordShareAccessLevel>;
- generalAccessLevel?: Maybe<RecordShareAccessLevel>;
hasManagedGeneralAccess: Scalars['Boolean']['output'];
+ isPrivate: Scalars['Boolean']['output'];
+ isShareable: Scalars['Boolean']['output'];
permissions: RecordPermissionsDto;
roles: Array<RecordSharingRoleDto>;
shares: Array<RecordSharingGrantDto>;
- sharingMode: RecordSharingMode;
};
export type RecordSharingGrantDto = {
@@ -6539,14 +6538,6 @@ export type RecordSharingGrantDto = {
rowCause: RecordShareRowCause;
};
-/** How records of an object are shared: only through roles, private until shared, readable through linked records, or open by default with per-record exceptions */
-export enum RecordSharingMode {
- INHERITED = 'INHERITED',
- OPEN_BY_DEFAULT = 'OPEN_BY_DEFAULT',
- PRIVATE = 'PRIVATE',
- ROLE_ONLY = 'ROLE_ONLY'
-}
-
export type RecordSharingRoleDto = {
__typename?: 'RecordSharingRoleDTO';
canRead?: Maybe<Scalars['Boolean']['output']>;
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/graphql/fragments/recordSharingFragment.ts b/packages/twenty-front/src/modules/object-record/record-sharing/graphql/fragments/recordSharingFragment.ts
index 3e55924b608..44a3a8b5d1e 100644
--- a/packages/twenty-front/src/modules/object-record/record-sharing/graphql/fragments/recordSharingFragment.ts
+++ b/packages/twenty-front/src/modules/object-record/record-sharing/graphql/fragments/recordSharingFragment.ts
@@ -2,7 +2,8 @@ import { gql } from '@apollo/client';
export const RECORD_SHARING_FRAGMENT = gql`
fragment RecordSharingFields on RecordSharingDTO {
- sharingMode
+ isShareable
+ isPrivate
canManageSharing
permissions {
canRead
@@ -10,8 +11,6 @@ export const RECORD_SHARING_FRAGMENT = gql`
canDelete
canSoftDelete
}
- generalAccessLevel
- defaultGeneralAccessLevel
hasManagedGeneralAccess
shares {
id
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/graphql/mutations/setRecordGeneralAccess.ts b/packages/twenty-front/src/modules/object-record/record-sharing/graphql/mutations/setRecordGeneralAccess.ts
deleted file mode 100644
index c8c023fda35..00000000000
--- a/packages/twenty-front/src/modules/object-record/record-sharing/graphql/mutations/setRecordGeneralAccess.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { gql } from '@apollo/client';
-
-import { RECORD_SHARING_FRAGMENT } from '@/object-record/record-sharing/graphql/fragments/recordSharingFragment';
-
-export const SET_RECORD_GENERAL_ACCESS = gql`
- ${RECORD_SHARING_FRAGMENT}
- mutation SetRecordGeneralAccess(
- $target: RecordTargetInput!
- $accessLevel: RecordShareAccessLevel!
- ) {
- setRecordGeneralAccess(target: $target, accessLevel: $accessLevel) {
- ...RecordSharingFields
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/graphql/mutations/setRecordPrivate.ts b/packages/twenty-front/src/modules/object-record/record-sharing/graphql/mutations/setRecordPrivate.ts
new file mode 100644
index 00000000000..22baf79ab06
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-sharing/graphql/mutations/setRecordPrivate.ts
@@ -0,0 +1,12 @@
+import { gql } from '@apollo/client';
+
+import { RECORD_SHARING_FRAGMENT } from '@/object-record/record-sharing/graphql/fragments/recordSharingFragment';
+
+export const SET_RECORD_PRIVATE = gql`
+ ${RECORD_SHARING_FRAGMENT}
+ mutation SetRecordPrivate($target: RecordTargetInput!, $isPrivate: Boolean!) {
+ setRecordPrivate(target: $target, isPrivate: $isPrivate) {
+ ...RecordSharingFields
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/hooks/__tests__/useRecordSharing.test.tsx b/packages/twenty-front/src/modules/object-record/record-sharing/hooks/__tests__/useRecordSharing.test.tsx
deleted file mode 100644
index 41423b22aec..00000000000
--- a/packages/twenty-front/src/modules/object-record/record-sharing/hooks/__tests__/useRecordSharing.test.tsx
+++ /dev/null
@@ -1,303 +0,0 @@
-import {
- ApolloClient,
- ApolloLink,
- InMemoryCache,
- Observable,
-} from '@apollo/client';
-import { ApolloProvider } from '@apollo/client/react';
-import { act, render, renderHook, waitFor } from '@testing-library/react';
-import { createStore, Provider as JotaiProvider } from 'jotai';
-import { type ReactNode } from 'react';
-
-import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
-import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
-import { RecordSharingPermissionsEffect } from '@/object-record/record-sharing/components/RecordSharingPermissionsEffect';
-import { RecordSharingRefreshEffect } from '@/object-record/record-sharing/components/RecordSharingRefreshEffect';
-import { useRecordSharing } from '@/object-record/record-sharing/hooks/useRecordSharing';
-import { recordPermissionsFamilyState } from '@/object-record/record-sharing/states/recordPermissionsFamilyState';
-import { RecordShareAccessLevel } from '~/generated-metadata/graphql';
-
-const mockEnqueueToast = jest.fn();
-
-jest.mock('twenty-ui/components/feedback', () => ({
- useToast: () => ({ enqueueToast: mockEnqueueToast }),
-}));
-
-const RECORD_TARGET = { objectMetadataId: 'note', recordId: 'record' };
-
-const PERMISSIONS = {
- __typename: 'RecordPermissionsDTO',
- canRead: true,
- canUpdate: true,
- canDelete: true,
- canSoftDelete: true,
-};
-
-const SHARING = {
- __typename: 'RecordSharingDTO',
- sharingMode: 'PRIVATE',
- canManageSharing: true,
- permissions: PERMISSIONS,
- generalAccessLevel: 'NONE',
- defaultGeneralAccessLevel: 'NONE',
- hasManagedGeneralAccess: false,
- shares: [],
- roles: [],
-};
-
-const SHARED_WITH_MEMBER = {
- ...SHARING,
- permissions: { ...PERMISSIONS, canDelete: false },
- shares: [
- {
- __typename: 'RecordSharingGrantDTO',
- id: 'grant',
- principalId: 'member',
- principalType: 'WORKSPACE_MEMBER',
- principalRoleId: 'member-role',
- accessLevel: 'READ',
- rowCause: 'MANUAL',
- },
- ],
-};
-
-const OPEN_TO_VIEWERS = {
- ...SHARING,
- permissions: { ...PERMISSIONS, canSoftDelete: false },
- generalAccessLevel: 'READ',
-};
-
-const RESPONSE_BY_OPERATION_NAME: Record<string, Record<string, unknown>> = {
- GetRecordSharing: { recordSharing: SHARING },
- SetRecordShare: { setRecordShare: SHARED_WITH_MEMBER },
- SetRecordGeneralAccess: { setRecordGeneralAccess: OPEN_TO_VIEWERS },
- RemoveRecordShare: { removeRecordShare: SHARING },
-};
-
-const createHarness = () => {
- const request = jest.fn(
- (operationName: string | undefined, _variables: Record<string, unknown>) =>
- RESPONSE_BY_OPERATION_NAME[operationName ?? ''],
- );
- const client = new ApolloClient({
- cache: new InMemoryCache(),
- link: new ApolloLink(
- (operation) =>
- new Observable((observer) => {
- try {
- observer.next({
- data: request(operation.operationName, operation.variables),
- });
- observer.complete();
- } catch (error) {
- observer.error(error);
- }
- }),
- ),
- });
- const store = createStore();
- store.set(currentWorkspaceState.atom, { id: 'workspace' } as never);
- store.set(currentWorkspaceMemberState.atom, { id: 'viewer' } as never);
- const wrapper = ({ children }: { children: ReactNode }) => (
- <JotaiProvider store={store}>
- <ApolloProvider client={client}>{children}</ApolloProvider>
- </JotaiProvider>
- );
- const readStoredPermissions = () =>
- store.get(
- recordPermissionsFamilyState.atomFamily({
- ...RECORD_TARGET,
- workspaceId: 'workspace',
- workspaceMemberId: 'viewer',
- }),
- )?.permissions;
- return { request, wrapper, readStoredPermissions };
-};
-
-const renderRecordSharing = (
- wrapper: ReturnType<typeof createHarness>['wrapper'],
-) =>
- renderHook(() => useRecordSharing({ recordTarget: RECORD_TARGET }), {
- wrapper,
- });
-
-describe('useRecordSharing', () => {
- beforeEach(() => {
- jest.useFakeTimers();
- jest.clearAllMocks();
- });
- afterEach(() => jest.useRealTimers());
-
- it('updates the audience and the record permissions from the mutation without another request', async () => {
- const { request, wrapper, readStoredPermissions } = createHarness();
- const { result } = renderRecordSharing(wrapper);
- await waitFor(() =>
- expect(result.current.sharing?.canManageSharing).toBe(true),
- );
- await act(async () => {
- await expect(
- result.current.setShare({
- principal: { workspaceMemberId: 'member' },
- accessLevel: RecordShareAccessLevel.READ,
- }),
- ).resolves.toEqual(SHARED_WITH_MEMBER);
- });
- expect(request.mock.calls.map(([operationName]) => operationName)).toEqual([
- 'GetRecordSharing',
- 'SetRecordShare',
- ]);
- expect(request).toHaveBeenLastCalledWith('SetRecordShare', {
- target: RECORD_TARGET,
- principal: { workspaceMemberId: 'member' },
- accessLevel: RecordShareAccessLevel.READ,
- });
- expect(result.current.sharing?.shares).toEqual([
- expect.objectContaining({ principalId: 'member' }),
- ]);
- expect(readStoredPermissions()).toEqual(SHARED_WITH_MEMBER.permissions);
- expect(mockEnqueueToast).not.toHaveBeenCalled();
- });
-
- it('sends general access and removals through their own mutations and shows their result', async () => {
- const { request, wrapper, readStoredPermissions } = createHarness();
- const { result } = renderRecordSharing(wrapper);
- await waitFor(() =>
- expect(result.current.sharing?.canManageSharing).toBe(true),
- );
- await act(async () => {
- await expect(
- result.current.setGeneralAccess(RecordShareAccessLevel.READ),
- ).resolves.toEqual(OPEN_TO_VIEWERS);
- });
- expect(request).toHaveBeenLastCalledWith('SetRecordGeneralAccess', {
- target: RECORD_TARGET,
- accessLevel: RecordShareAccessLevel.READ,
- });
- expect(result.current.sharing?.generalAccessLevel).toBe(
- RecordShareAccessLevel.READ,
- );
- expect(readStoredPermissions()).toEqual(OPEN_TO_VIEWERS.permissions);
- await act(async () => {
- await result.current.setShare({
- principal: { workspaceMemberId: 'member' },
- accessLevel: RecordShareAccessLevel.READ,
- });
- });
- expect(result.current.sharing?.shares).toHaveLength(1);
- await act(async () => {
- await expect(
- result.current.removeShare({
- principal: { workspaceMemberId: 'member' },
- }),
- ).resolves.toEqual(SHARING);
- });
- expect(request).toHaveBeenLastCalledWith('RemoveRecordShare', {
- target: RECORD_TARGET,
- principal: { workspaceMemberId: 'member' },
- });
- expect(result.current.sharing?.shares).toEqual([]);
- });
-
- it('stores the record permissions of every loaded answer, focus refreshes included', async () => {
- const { request, wrapper, readStoredPermissions } = createHarness();
- const TestSharingRefresh = () => {
- const { sharing, refetch } = useRecordSharing({
- recordTarget: RECORD_TARGET,
- });
- return (
- <>
- <RecordSharingPermissionsEffect
- recordTarget={RECORD_TARGET}
- permissions={sharing?.permissions}
- />
- <RecordSharingRefreshEffect refetch={refetch} />
- </>
- );
- };
- render(<TestSharingRefresh />, { wrapper });
- await waitFor(() =>
- expect(readStoredPermissions()).toEqual(SHARING.permissions),
- );
- request.mockImplementationOnce(() => ({
- recordSharing: OPEN_TO_VIEWERS,
- }));
- await act(async () => {
- window.dispatchEvent(new Event('focus'));
- });
- await waitFor(() =>
- expect(readStoredPermissions()).toEqual(OPEN_TO_VIEWERS.permissions),
- );
- });
-
- it('reports a rejected mutation without changing the saved audience', async () => {
- const { request, wrapper, readStoredPermissions } = createHarness();
- const { result } = renderRecordSharing(wrapper);
- await waitFor(() =>
- expect(result.current.sharing?.canManageSharing).toBe(true),
- );
- request.mockImplementationOnce(() => {
- throw new Error('Save failed');
- });
- await act(async () => {
- await expect(
- result.current.setShare({
- principal: { workspaceMemberId: 'member' },
- accessLevel: RecordShareAccessLevel.READ,
- }),
- ).resolves.toBeUndefined();
- });
- expect(result.current.sharing?.shares).toEqual([]);
- expect(readStoredPermissions()).toBeUndefined();
- expect(mockEnqueueToast).toHaveBeenCalledTimes(1);
- });
-
- it('does not poll for changes', async () => {
- const { request, wrapper } = createHarness();
- const { result } = renderRecordSharing(wrapper);
- await waitFor(() =>
- expect(result.current.sharing?.canManageSharing).toBe(true),
- );
- await act(async () => {
- jest.advanceTimersByTime(120_000);
- });
- expect(request).toHaveBeenCalledTimes(1);
- });
-
- it('refreshes on focus and removes the listener on unmount', async () => {
- const { request, wrapper } = createHarness();
- const TestSharingRefresh = () => {
- const { refetch } = useRecordSharing({ recordTarget: RECORD_TARGET });
- return <RecordSharingRefreshEffect refetch={refetch} />;
- };
- const { unmount } = render(<TestSharingRefresh />, { wrapper });
- await waitFor(() => expect(request).toHaveBeenCalledTimes(1));
- await act(async () => {
- window.dispatchEvent(new Event('focus'));
- });
- expect(request).toHaveBeenCalledTimes(2);
- unmount();
- window.dispatchEvent(new Event('focus'));
- expect(request).toHaveBeenCalledTimes(2);
- });
-
- it('retains the loaded sharing on a refresh error so retry stays reachable', async () => {
- const { request, wrapper } = createHarness();
- const { result } = renderRecordSharing(wrapper);
- await waitFor(() =>
- expect(result.current.sharing?.canManageSharing).toBe(true),
- );
- request.mockImplementationOnce(() => {
- throw new Error('Network unavailable');
- });
- await act(async () => {
- await result.current.refetch().catch(() => {});
- });
- expect(result.current.error).toBeDefined();
- expect(result.current.sharing?.canManageSharing).toBe(true);
- await act(async () => {
- await result.current.refetch();
- });
- expect(result.current.error).toBeUndefined();
- expect(result.current.sharing?.canManageSharing).toBe(true);
- });
-});
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/hooks/useRecordSharing.ts b/packages/twenty-front/src/modules/object-record/record-sharing/hooks/useRecordSharing.ts
index 8cd3deeb38f..7b37b949ec4 100644
--- a/packages/twenty-front/src/modules/object-record/record-sharing/hooks/useRecordSharing.ts
+++ b/packages/twenty-front/src/modules/object-record/record-sharing/hooks/useRecordSharing.ts
@@ -8,7 +8,7 @@ import { useRefreshRecordPermissions } from '@/object-record/record-sharing/hook
import {
GetRecordSharingDocument,
RemoveRecordShareDocument,
- SetRecordGeneralAccessDocument,
+ SetRecordPrivateDocument,
SetRecordShareDocument,
type RecordShareAccessLevel,
type RecordSharePrincipalInput,
@@ -42,11 +42,13 @@ export const useRecordSharing = ({
data: { recordSharing: sharing },
});
};
- const [setGeneralAccessMutation, { loading: savingGeneralAccess }] =
- useMutation(SetRecordGeneralAccessDocument, {
+ const [setPrivateMutation, { loading: savingPrivate }] = useMutation(
+ SetRecordPrivateDocument,
+ {
update: (cache, { data: mutationData }) =>
- writeSharing(cache, mutationData?.setRecordGeneralAccess),
- });
+ writeSharing(cache, mutationData?.setRecordPrivate),
+ },
+ );
const [setShareMutation, { loading: savingShare }] = useMutation(
SetRecordShareDocument,
{
@@ -79,14 +81,14 @@ export const useRecordSharing = ({
}
};
- const setGeneralAccess = (accessLevel: RecordShareAccessLevel) =>
+ const setPrivate = (isPrivate: boolean) =>
changeSharing(
async () =>
(
- await setGeneralAccessMutation({
- variables: { target: recordTarget, accessLevel },
+ await setPrivateMutation({
+ variables: { target: recordTarget, isPrivate },
})
- ).data?.setRecordGeneralAccess,
+ ).data?.setRecordPrivate,
);
const setShare = ({
@@ -123,8 +125,8 @@ export const useRecordSharing = ({
sharing: data?.recordSharing,
loading,
error,
- saving: savingGeneralAccess || savingShare || removingShare,
- setGeneralAccess,
+ saving: savingPrivate || savingShare || removingShare,
+ setPrivate,
setShare,
removeShare,
refetch,
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/utils/__tests__/getRecordSharingGeneralAccess.test.ts b/packages/twenty-front/src/modules/object-record/record-sharing/utils/__tests__/getRecordSharingGeneralAccess.test.ts
index a7cb8e721fb..f7226d9b479 100644
--- a/packages/twenty-front/src/modules/object-record/record-sharing/utils/__tests__/getRecordSharingGeneralAccess.test.ts
+++ b/packages/twenty-front/src/modules/object-record/record-sharing/utils/__tests__/getRecordSharingGeneralAccess.test.ts
@@ -1,13 +1,13 @@
import { i18n } from '@lingui/core';
import { getRecordSharingGeneralAccess } from '@/object-record/record-sharing/utils/getRecordSharingGeneralAccess';
-import { RecordShareAccessLevel } from '~/generated-metadata/graphql';
describe('getRecordSharingGeneralAccess', () => {
- it('includes application-managed access without an explicit workspace grant', () => {
+ it('includes application-managed access on a private record', () => {
const generalAccess = getRecordSharingGeneralAccess({
sharing: {
- generalAccessLevel: RecordShareAccessLevel.NONE,
+ isShareable: true,
+ isPrivate: true,
hasManagedGeneralAccess: true,
},
objectLabelPlural: 'Companies',
@@ -19,11 +19,12 @@ describe('getRecordSharingGeneralAccess', () => {
);
});
- it('includes an explicit workspace grant without application-managed access', () => {
+ it('includes a record that follows its roles', () => {
expect(
getRecordSharingGeneralAccess({
sharing: {
- generalAccessLevel: RecordShareAccessLevel.READ,
+ isShareable: true,
+ isPrivate: false,
hasManagedGeneralAccess: false,
},
objectLabelPlural: 'Companies',
@@ -31,13 +32,11 @@ describe('getRecordSharingGeneralAccess', () => {
).toBe(true);
});
- it('keeps restricted and unknown sharing without general access', () => {
+ it('keeps private, role-only and unknown sharing without general access', () => {
for (const sharing of [
undefined,
- {
- generalAccessLevel: RecordShareAccessLevel.NONE,
- hasManagedGeneralAccess: false,
- },
+ { isShareable: true, isPrivate: true, hasManagedGeneralAccess: false },
+ { isShareable: false, isPrivate: false, hasManagedGeneralAccess: false },
]) {
expect(
getRecordSharingGeneralAccess({
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/utils/getRecordSharingGeneralAccess.ts b/packages/twenty-front/src/modules/object-record/record-sharing/utils/getRecordSharingGeneralAccess.ts
index 30a4d69d426..8239b255587 100644
--- a/packages/twenty-front/src/modules/object-record/record-sharing/utils/getRecordSharingGeneralAccess.ts
+++ b/packages/twenty-front/src/modules/object-record/record-sharing/utils/getRecordSharingGeneralAccess.ts
@@ -1,10 +1,6 @@
import { msg } from '@lingui/core/macro';
-import { isDefined } from 'twenty-shared/utils';
-import {
- RecordShareAccessLevel,
- type RecordSharingFieldsFragment,
-} from '~/generated-metadata/graphql';
+import { type RecordSharingFieldsFragment } from '~/generated-metadata/graphql';
export const getRecordSharingGeneralAccess = ({
sharing,
@@ -13,14 +9,13 @@ export const getRecordSharingGeneralAccess = ({
sharing:
| Pick<
RecordSharingFieldsFragment,
- 'generalAccessLevel' | 'hasManagedGeneralAccess'
+ 'isShareable' | 'isPrivate' | 'hasManagedGeneralAccess'
>
| undefined;
objectLabelPlural: string;
}) => ({
hasGeneralAccess:
(sharing?.hasManagedGeneralAccess ?? false) ||
- (isDefined(sharing?.generalAccessLevel) &&
- sharing.generalAccessLevel !== RecordShareAccessLevel.NONE),
+ ((sharing?.isShareable ?? false) && !sharing?.isPrivate),
label: msg`Everyone with access to ${objectLabelPlural}`,
});
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/utils/getRecordSharingReadOnlyDescription.ts b/packages/twenty-front/src/modules/object-record/record-sharing/utils/getRecordSharingReadOnlyDescription.ts
new file mode 100644
index 00000000000..98c25ea4854
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-sharing/utils/getRecordSharingReadOnlyDescription.ts
@@ -0,0 +1,21 @@
+import { msg } from '@lingui/core/macro';
+
+import { type RecordSharingFieldsFragment } from '~/generated-metadata/graphql';
+
+export const getRecordSharingReadOnlyDescription = ({
+ sharing,
+ objectLabelPlural,
+}: {
+ sharing: Pick<RecordSharingFieldsFragment, 'isShareable' | 'isPrivate'>;
+ objectLabelPlural: string;
+}) => {
+ if (!sharing.isShareable) {
+ return msg`Access to ${objectLabelPlural} is set by roles, not record by record.`;
+ }
+
+ if (sharing.isPrivate) {
+ return msg`Only the creator of this record and people with full access to it can change who has access.`;
+ }
+
+ return msg`Only the creator of this record, people with full access to it and admins can change who has access.`;
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/share-record/components/SidePanelShareRecordContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/share-record/components/SidePanelShareRecordContent.tsx
index 0937bb29739..06314167dc5 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/share-record/components/SidePanelShareRecordContent.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/share-record/components/SidePanelShareRecordContent.tsx
@@ -13,6 +13,7 @@ import { RecordSharingInvitationRecipientPicker } from '@/object-record/record-s
import { type useRecordSharing } from '@/object-record/record-sharing/hooks/useRecordSharing';
import { type RecordSharingInvitationRecipient } from '@/object-record/record-sharing/types/RecordSharingInvitationRecipient';
import { getRecordSharingRecipientGroups } from '@/object-record/record-sharing/utils/getRecordSharingRecipientGroups';
+import { getRecordSharingReadOnlyDescription } from '@/object-record/record-sharing/utils/getRecordSharingReadOnlyDescription';
import { SidePanelShareRecordGeneralAccessItem } from '@/side-panel/pages/share-record/components/SidePanelShareRecordGeneralAccessItem';
import { SidePanelShareRecordGroup } from '@/side-panel/pages/share-record/components/SidePanelShareRecordGroup';
import { SidePanelShareRecordList } from '@/side-panel/pages/share-record/components/SidePanelShareRecordList';
@@ -22,7 +23,6 @@ import { SidePanelShareRecordSkeleton } from '@/side-panel/pages/share-record/co
import { useSidePanelShareRecordInvitation } from '@/side-panel/pages/share-record/hooks/useSidePanelShareRecordInvitation';
import { useSidePanelShareRecordSearch } from '@/side-panel/pages/share-record/hooks/useSidePanelShareRecordSearch';
import { SidePanelFooter } from '@/ui/layout/side-panel/components/SidePanelFooter';
-import { RecordSharingMode } from '~/generated-metadata/graphql';
import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';
const StyledContainer = styled.div`
@@ -68,7 +68,7 @@ export const SidePanelShareRecordContent = ({
loading,
error,
saving,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -77,7 +77,7 @@ export const SidePanelShareRecordContent = ({
sharing,
saving,
setShare,
- setGeneralAccess,
+ setPrivate,
objectLabelPlural,
});
const searchInputRef = useRef<HTMLInputElement>(null);
@@ -169,16 +169,13 @@ export const SidePanelShareRecordContent = ({
heading={isInviting ? t`Have access` : t`Everyone`}
>
<SidePanelShareRecordGeneralAccessItem
- generalAccessLevel={sharing.generalAccessLevel}
- defaultGeneralAccessLevel={
- sharing.defaultGeneralAccessLevel
- }
+ isPrivate={sharing.isPrivate}
hasManagedGeneralAccess={
sharing.hasManagedGeneralAccess
}
objectLabelPlural={objectLabelPlural}
isSaving={invitation.isSubmitting}
- setGeneralAccess={setGeneralAccess}
+ setPrivate={setPrivate}
/>
</SidePanelShareRecordGroup>
)}
@@ -237,11 +234,12 @@ export const SidePanelShareRecordContent = ({
</>
) : (
<StyledDescription>
- {sharing.sharingMode === RecordSharingMode.ROLE_ONLY
- ? t`Access to ${objectLabelPlural} is set by roles, not record by record.`
- : sharing.sharingMode === RecordSharingMode.OPEN_BY_DEFAULT
- ? t`Only the creator of this record, people with full access to it and admins can change who has access.`
- : t`Only the creator of this record and people with full access to it can change who has access.`}
+ {t(
+ getRecordSharingReadOnlyDescription({
+ sharing,
+ objectLabelPlural,
+ }),
+ )}
</StyledDescription>
))
)}
diff --git a/packages/twenty-front/src/modules/side-panel/pages/share-record/components/SidePanelShareRecordGeneralAccessItem.tsx b/packages/twenty-front/src/modules/side-panel/pages/share-record/components/SidePanelShareRecordGeneralAccessItem.tsx
index 0835bd18f8c..762bba677d2 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/share-record/components/SidePanelShareRecordGeneralAccessItem.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/share-record/components/SidePanelShareRecordGeneralAccessItem.tsx
@@ -1,13 +1,10 @@
import { useLingui } from '@lingui/react/macro';
-import { isDefined } from 'twenty-shared/utils';
import { Dropdown } from 'twenty-ui/components/navigation';
-import { IconEye, IconLock, IconPencil } from 'twenty-ui/icon';
+import { IconLock, IconPencil } from 'twenty-ui/icon';
import { Avatar } from 'twenty-ui/primitives/data-display';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
-import { RECORD_SHARE_ACCESS_LEVEL_OPTIONS } from '@/object-record/record-sharing/constants/RecordShareAccessLevelOptions';
import { type useRecordSharing } from '@/object-record/record-sharing/hooks/useRecordSharing';
-import { getRecordShareAccessLevelLabel } from '@/object-record/record-sharing/utils/getRecordShareAccessLevelLabel';
import { getRecordSharingGeneralAccess } from '@/object-record/record-sharing/utils/getRecordSharingGeneralAccess';
import { SidePanelShareRecordDropdownItem } from '@/side-panel/pages/share-record/components/SidePanelShareRecordDropdownItem';
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
@@ -15,48 +12,31 @@ import { ListItemIconContainer } from '@/ui/navigation/list-item/components/List
import { DEFAULT_WORKSPACE_LOGO } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceLogo';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { getWorkspaceAvatarColorSeed } from '@/workspace/utils/getWorkspaceAvatarColorSeed';
-import { RecordShareAccessLevel } from '~/generated-metadata/graphql';
import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
type SidePanelShareRecordGeneralAccessItemProps = {
- generalAccessLevel: RecordShareAccessLevel | null | undefined;
- defaultGeneralAccessLevel: RecordShareAccessLevel | null | undefined;
+ isPrivate: boolean;
hasManagedGeneralAccess: boolean;
objectLabelPlural: string;
isSaving: boolean;
- setGeneralAccess: ReturnType<typeof useRecordSharing>['setGeneralAccess'];
+ setPrivate: ReturnType<typeof useRecordSharing>['setPrivate'];
};
export const SidePanelShareRecordGeneralAccessItem = ({
- generalAccessLevel,
- defaultGeneralAccessLevel,
+ isPrivate,
hasManagedGeneralAccess,
objectLabelPlural,
isSaving,
- setGeneralAccess,
+ setPrivate,
}: SidePanelShareRecordGeneralAccessItemProps) => {
const { t } = useLingui();
const currentWorkspace = useAtomStateValue(currentWorkspaceState);
const workspaceName = currentWorkspace?.displayName ?? '';
- const isRestricted =
- !isDefined(generalAccessLevel) ||
- generalAccessLevel === RecordShareAccessLevel.NONE;
const { hasGeneralAccess, label: generalAccessLabel } =
getRecordSharingGeneralAccess({
- sharing: {
- generalAccessLevel: generalAccessLevel ?? null,
- hasManagedGeneralAccess,
- },
+ sharing: { isShareable: true, isPrivate, hasManagedGeneralAccess },
objectLabelPlural,
});
- const withDefaultMarker = ({
- label,
- accessLevel,
- }: {
- label: string;
- accessLevel: RecordShareAccessLevel;
- }) =>
- accessLevel === defaultGeneralAccessLevel ? t`${label} (default)` : label;
return (
<SidePanelShareRecordDropdownItem
@@ -76,59 +56,31 @@ export const SidePanelShareRecordGeneralAccessItem = ({
</ListItemIconContainer>
) : undefined
}
- description={
- isRestricted
- ? undefined
- : getRecordShareAccessLevelLabel(generalAccessLevel)
- }
+ description={isPrivate ? undefined : t`As their role allows`}
disabled={isSaving}
width={GenericDropdownContentWidth.Medium}
>
<Dropdown.Section>
<Dropdown.OptionItem
startIcon={<IconLock />}
- selected={!hasGeneralAccess}
- disabled={isRestricted || isSaving}
+ selected={isPrivate}
+ disabled={isPrivate || isSaving}
onSelect={() => {
- void setGeneralAccess(RecordShareAccessLevel.NONE);
+ void setPrivate(true);
}}
>
- {withDefaultMarker({
- label: t`Restricted`,
- accessLevel: RecordShareAccessLevel.NONE,
- })}
+ {t`Restricted`}
+ </Dropdown.OptionItem>
+ <Dropdown.OptionItem
+ startIcon={<IconPencil />}
+ selected={!isPrivate}
+ disabled={!isPrivate || isSaving}
+ onSelect={() => {
+ void setPrivate(false);
+ }}
+ >
+ {t(generalAccessLabel)}
</Dropdown.OptionItem>
- </Dropdown.Section>
- <Dropdown.Separator />
- <Dropdown.Section label={t(generalAccessLabel)}>
- {RECORD_SHARE_ACCESS_LEVEL_OPTIONS.filter(
- // Full access is only granted by name, and a record that follows its roles is private or editable
- (option) =>
- option.value !== RecordShareAccessLevel.FULL &&
- (defaultGeneralAccessLevel === RecordShareAccessLevel.NONE ||
- option.value !== RecordShareAccessLevel.READ),
- ).map((option) => (
- <Dropdown.OptionItem
- key={option.value}
- startIcon={
- option.value === RecordShareAccessLevel.READ ? (
- <IconEye />
- ) : (
- <IconPencil />
- )
- }
- selected={generalAccessLevel === option.value}
- disabled={generalAccessLevel === option.value || isSaving}
- onSelect={() => {
- void setGeneralAccess(option.value);
- }}
- >
- {withDefaultMarker({
- label: t(option.label),
- accessLevel: option.value,
- })}
- </Dropdown.OptionItem>
- ))}
</Dropdown.Section>
</SidePanelShareRecordDropdownItem>
);
diff --git a/packages/twenty-front/src/modules/side-panel/pages/share-record/components/__stories__/SidePanelShareRecordContent.stories.tsx b/packages/twenty-front/src/modules/side-panel/pages/share-record/components/__stories__/SidePanelShareRecordContent.stories.tsx
index af549f7e03d..b498626aa6e 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/share-record/components/__stories__/SidePanelShareRecordContent.stories.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/share-record/components/__stories__/SidePanelShareRecordContent.stories.tsx
@@ -14,13 +14,12 @@ import {
RecordShareAccessLevel,
RecordSharePrincipalType,
RecordShareRowCause,
- RecordSharingMode,
} from '~/generated-metadata/graphql';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { ToastDecorator } from '~/testing/decorators/ToastDecorator';
import { mockCurrentWorkspace } from '~/testing/mock-data/users';
-const setGeneralAccess = fn();
+const setPrivate = fn();
const setShare = fn();
const removeShare = fn();
const refetch = fn().mockResolvedValue(undefined);
@@ -55,10 +54,9 @@ const MEMBERS = [
const SHARING = {
__typename: 'RecordSharingDTO' as const,
- sharingMode: RecordSharingMode.PRIVATE,
+ isShareable: true,
+ isPrivate: true,
canManageSharing: true,
- generalAccessLevel: RecordShareAccessLevel.NONE,
- defaultGeneralAccessLevel: RecordShareAccessLevel.NONE,
hasManagedGeneralAccess: false,
permissions: {
__typename: 'RecordPermissionsDTO' as const,
@@ -156,15 +154,15 @@ const meta: Meta<typeof SidePanelShareRecordContent> = {
loading: false,
error: undefined,
saving: false,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
},
},
beforeEach: () => {
- setGeneralAccess.mockClear();
- setGeneralAccess.mockResolvedValue(SHARING);
+ setPrivate.mockClear();
+ setPrivate.mockResolvedValue(SHARING);
setShare.mockClear();
setShare.mockResolvedValue(SHARING);
removeShare.mockClear();
@@ -203,41 +201,23 @@ export const Default: Story = {
await expect(generalAccess).toHaveFocus();
await userEvent.keyboard('{Enter}');
const restrictedOption = await page.findByRole('menuitemradio', {
- name: 'Restricted (default)',
+ name: 'Restricted',
});
await expect(restrictedOption).toBeVisible();
- const restrictedLabel = within(restrictedOption).getByText(
- 'Restricted (default)',
- );
+ const restrictedLabel = within(restrictedOption).getByText('Restricted');
await canvasElement.ownerDocument.fonts.ready;
await expect(restrictedLabel.scrollWidth).toBeLessThanOrEqual(
restrictedLabel.clientWidth,
);
- const generalAccessHeading = page.getByText(
- `Everyone with access to ${args.objectLabelPlural}`,
- );
- const headingRange = canvasElement.ownerDocument.createRange();
- headingRange.selectNodeContents(generalAccessHeading);
- await expect(headingRange.getClientRects()).toHaveLength(1);
await expect(
page.queryByRole('menuitemradio', { name: 'Full access' }),
).not.toBeInTheDocument();
- await userEvent.click(page.getByRole('menuitemradio', { name: 'Viewer' }));
- await waitFor(() =>
- expect(setGeneralAccess).toHaveBeenLastCalledWith(
- RecordShareAccessLevel.READ,
- ),
- );
- await expect(generalAccess).toHaveFocus();
- await userEvent.keyboard('{Enter}');
await userEvent.click(
- await page.findByRole('menuitemradio', { name: 'Editor' }),
- );
- await waitFor(() =>
- expect(setGeneralAccess).toHaveBeenLastCalledWith(
- RecordShareAccessLevel.READ_WRITE,
- ),
+ page.getByRole('menuitemradio', {
+ name: `Everyone with access to ${args.objectLabelPlural}`,
+ }),
);
+ await waitFor(() => expect(setPrivate).toHaveBeenLastCalledWith(false));
await expect(generalAccess).toHaveFocus();
await userEvent.tab();
await expect(role).toHaveFocus();
@@ -341,7 +321,7 @@ export const ChangeAccessWithoutMovingRecipients: Story = {
loading: false,
error: undefined,
saving: false,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -452,7 +432,7 @@ export const InvitePeople: Story = {
await expect(page.queryByText('Selected')).not.toBeInTheDocument();
await expect(page.queryByText('Not shared with')).not.toBeInTheDocument();
await expect(page.queryByRole('checkbox')).not.toBeInTheDocument();
- await expect(setGeneralAccess).not.toHaveBeenCalled();
+ await expect(setPrivate).not.toHaveBeenCalled();
},
};
@@ -473,13 +453,9 @@ export const InviteEveryone: Story = {
page.queryByRole('menuitemradio', { name: 'Full access' }),
).not.toBeInTheDocument();
await userEvent.click(page.getByRole('menuitemradio', { name: 'Editor' }));
- await expect(setGeneralAccess).not.toHaveBeenCalled();
+ await expect(setPrivate).not.toHaveBeenCalled();
await userEvent.click(page.getByRole('button', { name: 'Invite 1' }));
- await waitFor(() =>
- expect(setGeneralAccess).toHaveBeenCalledWith(
- RecordShareAccessLevel.READ_WRITE,
- ),
- );
+ await waitFor(() => expect(setPrivate).toHaveBeenCalledWith(false));
await expect(setShare).not.toHaveBeenCalled();
},
};
@@ -496,7 +472,7 @@ export const InviteRole: Story = {
loading: false,
error: undefined,
saving: false,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -523,7 +499,7 @@ export const InviteRole: Story = {
principal: { roleId: 'sales' },
accessLevel: RecordShareAccessLevel.FULL,
});
- await expect(setGeneralAccess).not.toHaveBeenCalled();
+ await expect(setPrivate).not.toHaveBeenCalled();
},
};
@@ -532,14 +508,12 @@ export const DefaultGeneralAccess: Story = {
sharingState: {
sharing: {
...SHARING,
- sharingMode: RecordSharingMode.OPEN_BY_DEFAULT,
- generalAccessLevel: RecordShareAccessLevel.READ_WRITE,
- defaultGeneralAccessLevel: RecordShareAccessLevel.READ_WRITE,
+ isPrivate: false,
},
loading: false,
error: undefined,
saving: false,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -548,26 +522,21 @@ export const DefaultGeneralAccess: Story = {
play: async ({ canvasElement }) => {
const page = within(canvasElement.ownerDocument.body);
const generalAccess = await page.findByRole('button', {
- name: 'Everyone with access to Chats Editor',
+ name: 'Everyone with access to Chats As their role allows',
});
await userEvent.click(generalAccess);
await expect(
- await page.findByRole('menuitemradio', { name: 'Editor (default)' }),
+ await page.findByRole('menuitemradio', {
+ name: 'Everyone with access to Chats',
+ }),
).toBeVisible();
await expect(
page.queryByRole('menuitemradio', { name: 'Full access' }),
).not.toBeInTheDocument();
- await expect(
- page.queryByRole('menuitemradio', { name: 'Viewer' }),
- ).not.toBeInTheDocument();
await userEvent.click(
page.getByRole('menuitemradio', { name: 'Restricted' }),
);
- await waitFor(() =>
- expect(setGeneralAccess).toHaveBeenLastCalledWith(
- RecordShareAccessLevel.NONE,
- ),
- );
+ await waitFor(() => expect(setPrivate).toHaveBeenLastCalledWith(true));
await expect(
page.getByRole('button', { name: 'Phil Schiler Editor' }),
).toBeVisible();
@@ -615,7 +584,7 @@ export const Loading: Story = {
loading: true,
error: undefined,
saving: false,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -638,7 +607,7 @@ export const Loading: Story = {
const footer = copyLink.closest('[data-variant="compact"]');
await expect(footer?.getBoundingClientRect().height).toBe(40);
await expect(setShare).not.toHaveBeenCalled();
- await expect(setGeneralAccess).not.toHaveBeenCalled();
+ await expect(setPrivate).not.toHaveBeenCalled();
},
};
@@ -649,7 +618,7 @@ export const Saving: Story = {
loading: false,
error: undefined,
saving: true,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -676,7 +645,7 @@ export const Saving: Story = {
await expect(page.queryByRole('menu')).not.toBeInTheDocument();
}
await expect(setShare).not.toHaveBeenCalled();
- await expect(setGeneralAccess).not.toHaveBeenCalled();
+ await expect(setPrivate).not.toHaveBeenCalled();
await expect(removeShare).not.toHaveBeenCalled();
},
};
@@ -693,7 +662,7 @@ export const ReadOnly: Story = {
loading: false,
error: undefined,
saving: false,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -733,7 +702,7 @@ export const LoadError: Story = {
loading: false,
error: new Error('Sharing unavailable'),
saving: false,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -769,7 +738,7 @@ export const ManagedAccess: Story = {
loading: false,
error: undefined,
saving: false,
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
diff --git a/packages/twenty-front/src/modules/side-panel/pages/share-record/components/__tests__/SidePanelShareRecordContent.test.tsx b/packages/twenty-front/src/modules/side-panel/pages/share-record/components/__tests__/SidePanelShareRecordContent.test.tsx
index 9da9dd41163..eb90ce24627 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/share-record/components/__tests__/SidePanelShareRecordContent.test.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/share-record/components/__tests__/SidePanelShareRecordContent.test.tsx
@@ -8,7 +8,6 @@ import {
RecordShareAccessLevel,
RecordSharePrincipalType,
RecordShareRowCause,
- RecordSharingMode,
type RecordSharingFieldsFragment,
} from '~/generated-metadata/graphql';
@@ -21,7 +20,7 @@ import {
resetJotaiStore,
} from '@/ui/utilities/state/jotai/jotaiStore';
-const setGeneralAccess = jest.fn();
+const setPrivate = jest.fn();
const setShare = jest.fn();
const removeShare = jest.fn();
const refetch = jest.fn();
@@ -34,7 +33,8 @@ jest.mock('~/hooks/useCopyToClipboard', () => ({
type Share = RecordSharingFieldsFragment['shares'][number];
const sharing: RecordSharingFieldsFragment = {
- sharingMode: RecordSharingMode.PRIVATE,
+ isShareable: true,
+ isPrivate: true,
canManageSharing: true,
permissions: {
canRead: true,
@@ -43,8 +43,6 @@ const sharing: RecordSharingFieldsFragment = {
canSoftDelete: true,
__typename: 'RecordPermissionsDTO',
},
- generalAccessLevel: RecordShareAccessLevel.NONE,
- defaultGeneralAccessLevel: RecordShareAccessLevel.NONE,
hasManagedGeneralAccess: false,
roles: [
{
@@ -93,7 +91,7 @@ const renderSharing = ({
objectLabelPlural="Companies"
sharingState={{
sharing: { ...sharing, ...sharingOverrides },
- setGeneralAccess,
+ setPrivate,
setShare,
removeShare,
refetch,
@@ -207,7 +205,7 @@ describe('Share record side panel', () => {
it('tells viewers of a record open by default who can change its access', async () => {
renderSharing({
sharingOverrides: {
- sharingMode: RecordSharingMode.OPEN_BY_DEFAULT,
+ isPrivate: false,
canManageSharing: false,
roles: [],
},
@@ -224,10 +222,9 @@ describe('Share record side panel', () => {
it('explains that records of an object without record sharing follow roles', async () => {
renderSharing({
sharingOverrides: {
- sharingMode: RecordSharingMode.ROLE_ONLY,
+ isShareable: false,
canManageSharing: false,
- generalAccessLevel: null,
- defaultGeneralAccessLevel: null,
+ isPrivate: false,
roles: [],
},
});
diff --git a/packages/twenty-front/src/modules/side-panel/pages/share-record/hooks/__tests__/useSidePanelShareRecordInvitation.test.tsx b/packages/twenty-front/src/modules/side-panel/pages/share-record/hooks/__tests__/useSidePanelShareRecordInvitation.test.tsx
deleted file mode 100644
index 39dbbd77db6..00000000000
--- a/packages/twenty-front/src/modules/side-panel/pages/share-record/hooks/__tests__/useSidePanelShareRecordInvitation.test.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-import { i18n } from '@lingui/core';
-import { I18nProvider } from '@lingui/react';
-import { act, renderHook } from '@testing-library/react';
-import { createStore, Provider as JotaiProvider } from 'jotai';
-import { type ReactNode } from 'react';
-
-import { currentWorkspaceMembersState } from '@/auth/states/currentWorkspaceMembersState';
-import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
-import { useSidePanelShareRecordInvitation } from '@/side-panel/pages/share-record/hooks/useSidePanelShareRecordInvitation';
-import {
- RecordShareAccessLevel,
- RecordSharingMode,
- type RecordSharingFieldsFragment,
-} from '~/generated-metadata/graphql';
-import { mockCurrentWorkspace } from '~/testing/mock-data/users';
-
-const RESTRICTED_SHARING: RecordSharingFieldsFragment = {
- sharingMode: RecordSharingMode.PRIVATE,
- canManageSharing: true,
- permissions: {
- canRead: true,
- canUpdate: true,
- canDelete: true,
- canSoftDelete: true,
- __typename: 'RecordPermissionsDTO',
- },
- generalAccessLevel: RecordShareAccessLevel.NONE,
- defaultGeneralAccessLevel: RecordShareAccessLevel.NONE,
- hasManagedGeneralAccess: false,
- roles: [],
- shares: [],
- __typename: 'RecordSharingDTO',
-};
-
-const setShare = jest.fn();
-const setGeneralAccess = jest.fn();
-
-const renderInvitation = () => {
- const store = createStore();
- store.set(currentWorkspaceState.atom, {
- ...mockCurrentWorkspace,
- displayName: 'Acme',
- });
- store.set(currentWorkspaceMembersState.atom, []);
-
- const Wrapper = ({ children }: { children: ReactNode }) => (
- <JotaiProvider store={store}>
- <I18nProvider i18n={i18n}>{children}</I18nProvider>
- </JotaiProvider>
- );
-
- return renderHook(
- ({ sharing }: { sharing: RecordSharingFieldsFragment }) =>
- useSidePanelShareRecordInvitation({
- sharing,
- saving: false,
- setShare,
- setGeneralAccess,
- objectLabelPlural: 'Companies',
- }),
- { initialProps: { sharing: RESTRICTED_SHARING }, wrapper: Wrapper },
- );
-};
-
-describe('useSidePanelShareRecordInvitation', () => {
- beforeEach(() => {
- jest.clearAllMocks();
- });
-
- it('drops a staged Everyone recipient once the record gains workspace access', async () => {
- const { result, rerender } = renderInvitation();
- const everyoneRecipients = result.current.recipients.filter(
- (recipient) => recipient.kind === 'everyone',
- );
-
- act(() => {
- result.current.onRecipientsChange(everyoneRecipients);
- });
-
- expect(result.current.hasEveryoneRecipient).toBe(true);
-
- rerender({
- sharing: {
- ...RESTRICTED_SHARING,
- generalAccessLevel: RecordShareAccessLevel.READ,
- },
- });
-
- expect(result.current.selectedRecipients).toEqual([]);
- expect(result.current.hasEveryoneRecipient).toBe(false);
- await expect(result.current.onInvite()).resolves.toBe(false);
- expect(setGeneralAccess).not.toHaveBeenCalled();
- });
-});
diff --git a/packages/twenty-front/src/modules/side-panel/pages/share-record/hooks/useSidePanelShareRecordInvitation.ts b/packages/twenty-front/src/modules/side-panel/pages/share-record/hooks/useSidePanelShareRecordInvitation.ts
index d50d4910f67..e4ea72ea44f 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/share-record/hooks/useSidePanelShareRecordInvitation.ts
+++ b/packages/twenty-front/src/modules/side-panel/pages/share-record/hooks/useSidePanelShareRecordInvitation.ts
@@ -16,7 +16,7 @@ const DEFAULT_INVITATION_ACCESS_LEVEL = RecordShareAccessLevel.READ;
type UseSidePanelShareRecordInvitationProps = Pick<
ReturnType<typeof useRecordSharing>,
- 'sharing' | 'saving' | 'setShare' | 'setGeneralAccess'
+ 'sharing' | 'saving' | 'setShare' | 'setPrivate'
> & {
objectLabelPlural: string;
};
@@ -25,7 +25,7 @@ export const useSidePanelShareRecordInvitation = ({
sharing,
saving,
setShare,
- setGeneralAccess,
+ setPrivate,
objectLabelPlural,
}: UseSidePanelShareRecordInvitationProps) => {
const { t } = useLingui();
@@ -82,7 +82,7 @@ export const useSidePanelShareRecordInvitation = ({
);
const hasInvalidAccessLevel =
accessLevel === RecordShareAccessLevel.NONE ||
- (hasEveryoneRecipient && accessLevel === RecordShareAccessLevel.FULL);
+ (hasEveryoneRecipient && accessLevel !== RecordShareAccessLevel.READ_WRITE);
const onRecipientsChange = (
nextRecipients: RecordSharingInvitationRecipient[],
@@ -104,7 +104,7 @@ export const useSidePanelShareRecordInvitation = ({
const inviteRecipient = (recipient: RecordSharingInvitationRecipient) => {
if (recipient.kind === 'everyone') {
- return setGeneralAccess(accessLevel);
+ return setPrivate(false);
}
const principal =
diff --git a/packages/twenty-server/src/engine/api/common/common-query-runners/common-create-many-query-runner/common-create-many-query-runner.service.ts b/packages/twenty-server/src/engine/api/common/common-query-runners/common-create-many-query-runner/common-create-many-query-runner.service.ts
index 4ca916c4798..10b6f38c72c 100644
--- a/packages/twenty-server/src/engine/api/common/common-query-runners/common-create-many-query-runner/common-create-many-query-runner.service.ts
+++ b/packages/twenty-server/src/engine/api/common/common-query-runners/common-create-many-query-runner/common-create-many-query-runner.service.ts
@@ -78,7 +78,7 @@ export class CommonCreateManyQueryRunnerService extends CommonBaseQueryRunnerSer
): Promise<ObjectRecord[]> {
const objectSharing = resolveObjectSharing(queryRunnerContext);
- if (objectSharing.isShareRequired || isNonEmptyArray(args.shareWith)) {
+ if (objectSharing.isPrivateByDefault || isNonEmptyArray(args.shareWith)) {
await this.shareWithService.validateShareWithOrThrow({
authContext: queryRunnerContext.authContext,
shareWith: args.shareWith,
@@ -159,7 +159,7 @@ export class CommonCreateManyQueryRunnerService extends CommonBaseQueryRunnerSer
flatObjectMetadataMaps,
flatFieldMetadataMaps,
repository:
- objectSharing.isShareRequired &&
+ objectSharing.isPrivateByDefault &&
isDefined(queryRunnerContext.transactionScope)
? queryRunnerContext.transactionScope.getRepository(
flatObjectMetadata.nameSingular,
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-sharing.service.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-sharing.service.ts
index 5af2221e717..a75d87043f7 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-sharing.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-sharing.service.ts
@@ -250,10 +250,7 @@ export class AgentChatSharingService {
};
const sharing = await this.recordSharingService.getSharing(recordTarget);
- if (
- sharing.canManageSharing &&
- !EDIT_ACCESS_LEVELS.includes(sharing.generalAccessLevel)
- ) {
+ if (sharing.canManageSharing) {
for (const memberId of chatMemberIds) {
const memberShare = sharing.shares.find(
({ principalId }) => principalId === memberId,
diff --git a/packages/twenty-server/src/engine/permissions/combine/utils/__tests__/build-row-access-policy.util.spec.ts b/packages/twenty-server/src/engine/permissions/combine/utils/__tests__/build-row-access-policy.util.spec.ts
index 958a9ed0976..2fa6752db00 100644
--- a/packages/twenty-server/src/engine/permissions/combine/utils/__tests__/build-row-access-policy.util.spec.ts
+++ b/packages/twenty-server/src/engine/permissions/combine/utils/__tests__/build-row-access-policy.util.spec.ts
@@ -51,6 +51,10 @@ const environment: RowAccessPolicyEnvironment &
recordShareTableExpression: '"workspace"."recordShare"',
featureFlagsMap: {},
};
+const privateRecordEnvironment = {
+ ...environment,
+ featureFlagsMap: { [FeatureFlagKey.IS_PRIVATE_RECORD_ENABLED]: true },
+};
const sharingEnvironment = {
...environment,
featureFlagsMap: {
@@ -78,23 +82,33 @@ const readEverything: RowAccessPolicySubject = {
resolveRowLevelPermissionRecordFilter: () => null,
};
-const build = (
- subject: RowAccessPolicySubject,
- flatObjectMetadata: FlatObjectMetadata,
-) =>
+const build = ({
+ subject,
+ flatObjectMetadata,
+ policyEnvironment = environment,
+}: {
+ subject: RowAccessPolicySubject;
+ flatObjectMetadata: FlatObjectMetadata;
+ policyEnvironment?: typeof environment;
+}) =>
buildCompiledRowAccessPolicy({
subject,
- environment,
+ environment: policyEnvironment,
tableAlias: flatObjectMetadata.nameSingular,
flatObjectMetadata,
operationType: 'select',
});
-const gatedSql = (
- subject: RowAccessPolicySubject,
- flatObjectMetadata: FlatObjectMetadata,
-): string => {
- const policy = build(subject, flatObjectMetadata);
+const gatedSql = ({
+ subject,
+ flatObjectMetadata,
+ policyEnvironment = environment,
+}: {
+ subject: RowAccessPolicySubject;
+ flatObjectMetadata: FlatObjectMetadata;
+ policyEnvironment?: typeof environment;
+}): string => {
+ const policy = build({ subject, flatObjectMetadata, policyEnvironment });
expect(policy.kind).toBe('gated');
@@ -134,14 +148,21 @@ describe('buildRowAccessPolicy', () => {
...note,
disabledObjectPermissionActions: ['canReadObjectRecords' as const],
};
- expect(build(readEverything, object)).toEqual({ kind: 'denied' });
expect(
- build({ ...readEverything, isOwningApplication: () => true }, object),
+ build({ subject: readEverything, flatObjectMetadata: object }),
+ ).toEqual({ kind: 'denied' });
+ expect(
+ build({
+ subject: { ...readEverything, isOwningApplication: () => true },
+ flatObjectMetadata: object,
+ }),
).toEqual({ kind: 'open' });
});
it('opens an object to a subject without predicate', () => {
- expect(build(readEverything, note)).toEqual({ kind: 'open' });
+ expect(
+ build({ subject: readEverything, flatObjectMetadata: note }),
+ ).toEqual({ kind: 'open' });
});
it('keeps private records to their creator and shares once record sharing is enabled', () => {
@@ -181,11 +202,17 @@ describe('buildRowAccessPolicy', () => {
).toEqual({ kind: 'open' });
});
- it('keeps records of a PRIVATE object gated on their shares', () => {
- expect(gatedSql(readEverything, person)).toContain('recordShare');
+ it('gates every object on private records once they are enabled, without record sharing', () => {
+ expect(
+ gatedSql({
+ subject: readEverything,
+ flatObjectMetadata: person,
+ policyEnvironment: privateRecordEnvironment,
+ }),
+ ).toContain('recordShare');
});
- it('keeps a system object open when record sharing is enabled', () => {
+ it('gates a system object on private records too', () => {
expect(
buildCompiledRowAccessPolicy({
subject: readEverything,
@@ -193,8 +220,8 @@ describe('buildRowAccessPolicy', () => {
tableAlias: 'note',
flatObjectMetadata: { ...note, isSystem: true },
operationType: 'select',
- }),
- ).toEqual({ kind: 'open' });
+ }).kind,
+ ).toBe('gated');
});
it('leaves an object open to inserts when record sharing is enabled', () => {
@@ -296,42 +323,49 @@ describe('buildRowAccessPolicy', () => {
});
it('denies an object the subject has no permission on', () => {
- expect(build({ ...readEverything, objectsPermissions: {} }, note)).toEqual({
+ expect(
+ build({
+ subject: { ...readEverything, objectsPermissions: {} },
+ flatObjectMetadata: note,
+ }),
+ ).toEqual({
kind: 'denied',
});
});
it('gates an object on the role predicate alone', () => {
- const sql = gatedSql(
- {
+ const sql = gatedSql({
+ subject: {
...readEverything,
resolveRowLevelPermissionRecordFilter: () => NOTE_FILTER,
},
- note,
- );
+ flatObjectMetadata: note,
+ });
expect(sql).toBe('("note"."title" = :restricted)');
});
- it('gates a PRIVATE object on its share rows and leaves it open without principals', () => {
- expect(gatedSql(readEverything, person)).toContain(
- '"person_recordShare"."recordId" = "person"."id"',
- );
+ it('gates records on their share rows and leaves them open without principals', () => {
expect(
- build({ ...readEverything, principalIds: undefined }, person),
- ).toEqual({ kind: 'open' });
- });
-
- it('keeps a PRIVATE object open for its owning application', () => {
+ gatedSql({
+ subject: readEverything,
+ flatObjectMetadata: person,
+ policyEnvironment: privateRecordEnvironment,
+ }),
+ ).toContain('"person_recordShare"."recordId" = "person"."id"');
expect(
- build({ ...readEverything, isOwningApplication: () => true }, person),
+ build({
+ subject: { ...readEverything, principalIds: undefined },
+ flatObjectMetadata: person,
+ policyEnvironment: privateRecordEnvironment,
+ }),
).toEqual({ kind: 'open' });
});
it('keeps private records gated regardless of the sharing UI flag', () => {
const policy = buildCompiledRowAccessPolicy({
subject: readEverything,
- environment,
+ environment: privateRecordEnvironment,
tableAlias: 'person',
flatObjectMetadata: person,
operationType: 'select',
diff --git a/packages/twenty-server/src/engine/permissions/private-record/services/private-record-storage.service.ts b/packages/twenty-server/src/engine/permissions/private-record/services/private-record-storage.service.ts
index a9670fe21f7..9d657f9255b 100644
--- a/packages/twenty-server/src/engine/permissions/private-record/services/private-record-storage.service.ts
+++ b/packages/twenty-server/src/engine/permissions/private-record/services/private-record-storage.service.ts
@@ -2,8 +2,6 @@
import { Injectable } from '@nestjs/common';
-import { msg } from '@lingui/core/macro';
-
import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
import { CREATED_BY_WORKSPACE_MEMBER_ID_COLUMN_NAME } from 'src/engine/permissions/private-record/constants/created-by-workspace-member-id-column-name.constant';
@@ -11,11 +9,8 @@ import { IS_PRIVATE_COLUMN_NAME } from 'src/engine/permissions/private-record/co
import { type PrivateRecordState } from 'src/engine/permissions/private-record/types/private-record-state.type';
import { findPrivateRecordStates } from 'src/engine/permissions/private-record/utils/find-private-record-states.util';
import { isPrivateRecordEnabled } from 'src/engine/permissions/private-record/utils/is-private-record-enabled.util';
-import {
- RecordShareException,
- RecordShareExceptionCode,
-} from 'src/engine/permissions/record-share/record-share.exception';
import { RecordShareStorageService } from 'src/engine/permissions/record-share/services/record-share-storage.service';
+import { isPermissionStorageObject } from 'src/engine/permissions/utils/is-permission-storage-object.util';
import { hasCreatedByField } from 'src/engine/permissions/private-record/utils/has-created-by-field.util';
import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type';
import { type WorkspaceRepository } from 'src/engine/twenty-orm/repository/workspace-repository';
@@ -94,6 +89,7 @@ export class PrivateRecordStorageService {
const objectsWithCreator = flatObjectMetadatas.filter(
(flatObjectMetadata) =>
+ !isPermissionStorageObject(flatObjectMetadata) &&
hasCreatedByField({ flatObjectMetadata, flatFieldMetadataMaps }),
);
@@ -145,17 +141,7 @@ export class PrivateRecordStorageService {
);
if (!isPrivateRecordEnabled(featureFlagsMap)) {
- if (!isPrivate) {
- return;
- }
-
- throw new RecordShareException(
- 'Private records are not enabled for this workspace yet',
- RecordShareExceptionCode.INVALID_SHARE_WITH,
- {
- userFriendlyMessage: msg`Private records are not available in this workspace yet.`,
- },
- );
+ return;
}
await this.withRepository({
diff --git a/packages/twenty-server/src/engine/permissions/private-record/utils/assert-private-record-enabled-or-throw.util.ts b/packages/twenty-server/src/engine/permissions/private-record/utils/assert-private-record-enabled-or-throw.util.ts
new file mode 100644
index 00000000000..4e2571fa5d7
--- /dev/null
+++ b/packages/twenty-server/src/engine/permissions/private-record/utils/assert-private-record-enabled-or-throw.util.ts
@@ -0,0 +1,26 @@
+/* @license Enterprise */
+
+import { msg } from '@lingui/core/macro';
+import { type FeatureFlagKey } from 'twenty-shared/types';
+
+import { isPrivateRecordEnabled } from 'src/engine/permissions/private-record/utils/is-private-record-enabled.util';
+import {
+ RecordShareException,
+ RecordShareExceptionCode,
+} from 'src/engine/permissions/record-share/record-share.exception';
+
+export const assertPrivateRecordEnabledOrThrow = (
+ featureFlagsMap: Partial<Record<FeatureFlagKey, boolean>>,
+): void => {
+ if (isPrivateRecordEnabled(featureFlagsMap)) {
+ return;
+ }
+
+ throw new RecordShareException(
+ 'Private records are not enabled for this workspace yet',
+ RecordShareExceptionCode.INVALID_SHARE_WITH,
+ {
+ userFriendlyMessage: msg`Private records are not available in this workspace yet.`,
+ },
+ );
+};
diff --git a/packages/twenty-server/src/engine/permissions/private-record/utils/build-private-record-creator-grant.util.ts b/packages/twenty-server/src/engine/permissions/private-record/utils/build-private-record-creator-grant.util.ts
index 39d180f84eb..a312ea464ff 100644
--- a/packages/twenty-server/src/engine/permissions/private-record/utils/build-private-record-creator-grant.util.ts
+++ b/packages/twenty-server/src/engine/permissions/private-record/utils/build-private-record-creator-grant.util.ts
@@ -4,7 +4,6 @@ import { isDefined } from 'twenty-shared/utils';
import { buildPrivateRecordCreatorExpression } from 'src/engine/permissions/private-record/utils/build-private-record-creator-expression.util';
import { isPrivateRecordEnabled } from 'src/engine/permissions/private-record/utils/is-private-record-enabled.util';
-import { resolveObjectSharing } from 'src/engine/permissions/record-share/utils/resolve-object-sharing.util';
import {
type RowAccessExpression,
type RowAccessPolicyContext,
@@ -20,12 +19,7 @@ export const buildPrivateRecordCreatorGrant = ({
Pick<RowAccessPolicyTarget, 'tableAlias' | 'flatObjectMetadata'>):
| RowAccessExpression
| undefined => {
- const { isShareRequired } = resolveObjectSharing({
- flatObjectMetadata,
- featureFlagsMap: environment.featureFlagsMap,
- });
-
- if (isShareRequired || !isPrivateRecordEnabled(environment.featureFlagsMap)) {
+ if (!isPrivateRecordEnabled(environment.featureFlagsMap)) {
return undefined;
}
diff --git a/packages/twenty-server/src/engine/permissions/record-share/dtos/record-sharing.dto.ts b/packages/twenty-server/src/engine/permissions/record-share/dtos/record-sharing.dto.ts
index f92c9c6dc7c..7d81ed7181e 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/dtos/record-sharing.dto.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/dtos/record-sharing.dto.ts
@@ -13,7 +13,6 @@ import {
} from 'twenty-shared/types';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
-import { RecordSharingMode } from 'src/engine/permissions/record-share/enums/record-sharing-mode.enum';
import { RecordPermissionsDTO } from 'src/engine/permissions/record-permissions/dtos/record-permissions.dto';
registerEnumType(RecordShareAccessLevel, { name: 'RecordShareAccessLevel' });
@@ -72,8 +71,11 @@ export class RecordSharingRoleDTO {
@ObjectType()
export class RecordSharingDTO {
- @Field(() => RecordSharingMode)
- sharingMode: RecordSharingMode;
+ @Field(() => Boolean)
+ isShareable: boolean;
+
+ @Field(() => Boolean)
+ isPrivate: boolean;
@Field(() => Boolean)
canManageSharing: boolean;
@@ -81,14 +83,6 @@ export class RecordSharingDTO {
@Field(() => RecordPermissionsDTO)
permissions: RecordPermissionsDTO;
- // Null when records of the object are not shared, or when the viewer can
- // no longer read the record
- @Field(() => RecordShareAccessLevel, { nullable: true })
- generalAccessLevel: RecordShareAccessLevel | null;
-
- @Field(() => RecordShareAccessLevel, { nullable: true })
- defaultGeneralAccessLevel: RecordShareAccessLevel | null;
-
@Field(() => Boolean)
hasManagedGeneralAccess: boolean;
diff --git a/packages/twenty-server/src/engine/permissions/record-share/enums/record-sharing-mode.enum.ts b/packages/twenty-server/src/engine/permissions/record-share/enums/record-sharing-mode.enum.ts
deleted file mode 100644
index bed85905764..00000000000
--- a/packages/twenty-server/src/engine/permissions/record-share/enums/record-sharing-mode.enum.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/* @license Enterprise */
-
-import { registerEnumType } from '@nestjs/graphql';
-
-export enum RecordSharingMode {
- ROLE_ONLY = 'ROLE_ONLY',
- PRIVATE = 'PRIVATE',
- INHERITED = 'INHERITED',
- OPEN_BY_DEFAULT = 'OPEN_BY_DEFAULT',
-}
-
-registerEnumType(RecordSharingMode, {
- name: 'RecordSharingMode',
- description:
- 'How records of an object are shared: only through roles, private until shared, readable through linked records, or open by default with per-record exceptions',
-});
diff --git a/packages/twenty-server/src/engine/permissions/record-share/resolvers/record-sharing.resolver.ts b/packages/twenty-server/src/engine/permissions/record-share/resolvers/record-sharing.resolver.ts
index 41b52e882ea..4549e7b2cef 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/resolvers/record-sharing.resolver.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/resolvers/record-sharing.resolver.ts
@@ -45,15 +45,14 @@ export class RecordSharingResolver {
}
@Mutation(() => RecordSharingDTO)
- setRecordGeneralAccess(
+ setRecordPrivate(
@Args('target') target: RecordTargetInput,
- @Args('accessLevel', { type: () => RecordShareAccessLevel })
- accessLevel: RecordShareAccessLevel,
+ @Args('isPrivate', { type: () => Boolean }) isPrivate: boolean,
) {
return this.handleRecordShareException(() =>
- this.sharingService.setGeneralAccess({
+ this.sharingService.setPrivate({
...target,
- accessLevel,
+ isPrivate,
authContext: this.getUserContext(),
}),
);
diff --git a/packages/twenty-server/src/engine/permissions/record-share/services/record-sharing.service.ts b/packages/twenty-server/src/engine/permissions/record-share/services/record-sharing.service.ts
index 5a2e5a4e894..5b5f49a669a 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/services/record-sharing.service.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/services/record-sharing.service.ts
@@ -2,8 +2,6 @@ import { buildRecordShareLockKey } from 'src/engine/permissions/record-share/uti
import { computeObjectTargetTable } from 'src/engine/utils/compute-object-target-table.util';
import { Injectable } from '@nestjs/common';
-import { msg } from '@lingui/core/macro';
-import { EVERYONE_PRINCIPAL_ID } from 'twenty-shared/constants';
import {
RecordShareAccessLevel,
RecordSharePrincipalType,
@@ -13,29 +11,24 @@ import { isDefined } from 'twenty-shared/utils';
import { type UserWorkspaceAuthContext } from 'src/engine/core-modules/auth/types/workspace-auth-context.type';
import { NotFoundError } from 'src/engine/core-modules/graphql/utils/graphql-errors.util';
-import { GENERAL_RECORD_SHARE_ACCESS_LEVELS } from 'src/engine/permissions/record-share/constants/general-record-share-access-levels.constant';
import {
type RecordSharePrincipalInput,
type RecordSharingDTO,
type RecordSharingGrantDTO,
type RecordSharingRoleDTO,
} from 'src/engine/permissions/record-share/dtos/record-sharing.dto';
-import {
- RecordShareException,
- RecordShareExceptionCode,
-} from 'src/engine/permissions/record-share/record-share.exception';
import { RecordSharePrincipalService } from 'src/engine/permissions/record-share/services/record-share-principal.service';
import { type PrivateRecordState } from 'src/engine/permissions/private-record/types/private-record-state.type';
import { PrivateRecordStorageService } from 'src/engine/permissions/private-record/services/private-record-storage.service';
import { RecordShareStorageService } from 'src/engine/permissions/record-share/services/record-share-storage.service';
import { type RecordShare } from 'src/engine/permissions/record-share/types/record-share.type';
import { canRolesAccessAllRecords } from 'src/engine/permissions/role/utils/can-roles-access-all-records.util';
-import { resolveRecordGeneralAccessLevel } from 'src/engine/permissions/record-share/utils/resolve-record-general-access-level.util';
import {
type ObjectSharing,
resolveObjectSharing,
} from 'src/engine/permissions/record-share/utils/resolve-object-sharing.util';
-import { resolveRecordSharingMode } from 'src/engine/permissions/record-share/utils/resolve-record-sharing-mode.util';
+import { assertPrivateRecordEnabledOrThrow } from 'src/engine/permissions/private-record/utils/assert-private-record-enabled-or-throw.util';
+import { hasCreatedByField } from 'src/engine/permissions/private-record/utils/has-created-by-field.util';
import { resolveRecordSharePrincipalOrThrow } from 'src/engine/permissions/record-share/utils/resolve-record-share-principal-or-throw.util';
import { resolveViewerRecordShareAccessLevel } from 'src/engine/permissions/record-share/utils/resolve-viewer-record-share-access-level.util';
import { validateShareWithPrincipalsOrThrow } from 'src/engine/permissions/record-share/utils/validate-share-with-principals-or-throw.util';
@@ -91,21 +84,11 @@ export class RecordSharingService {
return this.buildSharingResponse({ args, sharingObject, permissions });
}
- // On a record open by default, the default level means following the
- // object again, so no row is kept for it
- async setGeneralAccess(
- args: RecordSharingArgs & { accessLevel: RecordShareAccessLevel },
+ async setPrivate(
+ args: RecordSharingArgs & { isPrivate: boolean },
): Promise<RecordSharingDTO> {
- if (!GENERAL_RECORD_SHARE_ACCESS_LEVELS.includes(args.accessLevel)) {
- throw new RecordShareException(
- `General access level "${args.accessLevel}" must be one of ${GENERAL_RECORD_SHARE_ACCESS_LEVELS.join(', ')}`,
- RecordShareExceptionCode.INVALID_SHARE_WITH,
- { userFriendlyMessage: msg`Invalid access level.` },
- );
- }
-
return this.changeSharing(args, (change) =>
- this.writeGeneralAccess({ ...change, args }),
+ this.writeRecordPrivacy({ ...change, args }),
);
}
@@ -248,11 +231,10 @@ export class RecordSharingService {
// A writer may revoke their own access; the mutation must still succeed with a redacted state.
if (!permissions.canRead) {
return {
- sharingMode: resolveRecordSharingMode(sharingObject),
+ isShareable: sharingObject.isShareable,
+ isPrivate: false,
canManageSharing: false,
permissions,
- generalAccessLevel: null,
- defaultGeneralAccessLevel: sharingObject.defaultGeneralAccessLevel,
hasManagedGeneralAccess: false,
roles: [],
shares: [],
@@ -262,51 +244,26 @@ export class RecordSharingService {
return this.buildSharingResponse({ args, sharingObject, permissions });
}
- private async writeGeneralAccess({
+ private async writeRecordPrivacy({
workspaceId,
transactionScope,
- sharingObject: {
- flatObjectMetadata,
- isShareRequired,
- isPrivateByDefault,
- defaultGeneralAccessLevel,
- },
+ sharingObject: { flatObjectMetadata },
creatorWorkspaceMemberId,
args,
}: RecordSharingChange & {
- args: RecordSharingArgs & { accessLevel: RecordShareAccessLevel };
+ args: RecordSharingArgs & { isPrivate: boolean };
}): Promise<void> {
- if (isShareRequired) {
- await this.recordShareStorageService.setManualShare({
- workspaceId,
- transactionScope,
- enabled: args.accessLevel !== defaultGeneralAccessLevel,
- share: {
- principalId: EVERYONE_PRINCIPAL_ID,
- principalType: RecordSharePrincipalType.EVERYONE,
- accessLevel: args.accessLevel,
- objectMetadataId: args.objectMetadataId,
- recordId: args.recordId,
- sourceId: args.recordId,
- },
- });
-
- return;
- }
+ const { isPrivate } = args;
+ const { featureFlagsMap, flatFieldMetadataMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'featureFlagsMap',
+ 'flatFieldMetadataMaps',
+ ]);
- if (
- args.accessLevel === RecordShareAccessLevel.READ ||
- (isPrivateByDefault && args.accessLevel !== RecordShareAccessLevel.NONE)
- ) {
- throw new RecordShareException(
- 'A record is either private or follows the roles of its object',
- RecordShareExceptionCode.INVALID_SHARE_WITH,
- { userFriendlyMessage: msg`Invalid access level.` },
- );
+ if (isPrivate) {
+ assertPrivateRecordEnabledOrThrow(featureFlagsMap);
}
- const isPrivate = args.accessLevel === RecordShareAccessLevel.NONE;
-
await this.privateRecordStorageService.setPrivate({
workspaceId,
flatObjectMetadata,
@@ -317,6 +274,10 @@ export class RecordSharingService {
// An owner row, unlike a share, survives the share removals of whoever made the record private
if (!isPrivate) {
+ if (!hasCreatedByField({ flatObjectMetadata, flatFieldMetadataMaps })) {
+ return;
+ }
+
await this.recordShareStorageService.deleteMatching({
workspaceId,
transactionScope,
@@ -376,8 +337,9 @@ export class RecordSharingService {
permissions: RecordPermissionsDTO;
}): Promise<RecordSharingDTO> {
const { flatObjectMetadata } = sharingObject;
- const { shares, viewerAccessLevel, generalAccessLevel } =
- await this.getRecordShares({ ...args, sharingObject });
+ const { shares, viewerAccessLevel, isPrivate } = await this.getRecordShares(
+ { ...args, sharingObject },
+ );
const canManageSharing =
sharingObject.isShareable &&
permissions.canUpdate &&
@@ -393,11 +355,10 @@ export class RecordSharingService {
);
return {
- sharingMode: resolveRecordSharingMode(sharingObject),
+ isShareable: sharingObject.isShareable,
+ isPrivate,
canManageSharing,
permissions,
- generalAccessLevel,
- defaultGeneralAccessLevel: sharingObject.defaultGeneralAccessLevel,
hasManagedGeneralAccess: shares.some(
(share) =>
share.principalType === RecordSharePrincipalType.EVERYONE &&
@@ -500,13 +461,7 @@ export class RecordSharingService {
transactionScope?: WorkspaceTransactionScope;
}) {
const workspaceId = authContext.workspace.id;
- const {
- flatObjectMetadata,
- isShareable,
- isShareRequired,
- defaultGeneralAccessLevel,
- } = sharingObject;
- const canBePrivate = isShareable && !isShareRequired;
+ const { flatObjectMetadata, isShareable } = sharingObject;
const {
userWorkspaceRoleMap,
apiKeyRoleMap,
@@ -538,29 +493,22 @@ export class RecordSharingService {
recordIds: [recordId],
transactionScope,
});
- const privateRecordState = canBePrivate
- ? await this.findPrivateRecordState({
- workspaceId,
- flatObjectMetadata,
- recordId,
- transactionScope,
- })
- : undefined;
+ const privateRecordState = await this.findPrivateRecordState({
+ workspaceId,
+ flatObjectMetadata,
+ recordId,
+ transactionScope,
+ });
const isPrivate = privateRecordState?.isPrivate ?? false;
const creatorWorkspaceMemberId =
privateRecordState?.createdByWorkspaceMemberId ?? undefined;
- const generalAccessLevel = resolveRecordGeneralAccessLevel({
- defaultGeneralAccessLevel,
- recordShares: shares,
- isPrivate,
- });
const viewerAccessLevel = resolveViewerRecordShareAccessLevel({
recordShares: shares,
principalIds,
- implicitAccessLevels: canBePrivate
+ implicitAccessLevels: isShareable
? [
- generalAccessLevel,
+ isPrivate ? null : RecordShareAccessLevel.READ_WRITE,
creatorWorkspaceMemberId === authContext.workspaceMemberId ||
(canAccessAllRecords && !isPrivate)
? RecordShareAccessLevel.FULL
@@ -572,7 +520,7 @@ export class RecordSharingService {
return {
shares,
viewerAccessLevel,
- generalAccessLevel,
+ isPrivate,
creatorWorkspaceMemberId,
};
}
diff --git a/packages/twenty-server/src/engine/permissions/record-share/services/share-with.service.ts b/packages/twenty-server/src/engine/permissions/record-share/services/share-with.service.ts
index d7fc3a5b4a2..38c5b8cacd7 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/services/share-with.service.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/services/share-with.service.ts
@@ -5,6 +5,7 @@ import { Injectable } from '@nestjs/common';
import { isNonEmptyArray } from 'twenty-shared/utils';
import { type WorkspaceAuthContext } from 'src/engine/core-modules/auth/types/workspace-auth-context.type';
+import { assertPrivateRecordEnabledOrThrow } from 'src/engine/permissions/private-record/utils/assert-private-record-enabled-or-throw.util';
import { RecordSharePrincipalService } from 'src/engine/permissions/record-share/services/record-share-principal.service';
import { PrivateRecordStorageService } from 'src/engine/permissions/private-record/services/private-record-storage.service';
import { RecordShareStorageService } from 'src/engine/permissions/record-share/services/record-share-storage.service';
@@ -76,6 +77,15 @@ export class ShareWithService {
}): Promise<void> {
const workspaceId = authContext.workspace.id;
+ if (isPrivate && !objectSharing.isPrivateByDefault) {
+ const { featureFlagsMap } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'featureFlagsMap',
+ ]);
+
+ assertPrivateRecordEnabledOrThrow(featureFlagsMap);
+ }
+
// A hard-destroyed record leaves its rows behind, and a client may reuse its id
await this.recordShareStorageService.deleteByRecordIds({
workspaceId,
@@ -92,7 +102,6 @@ export class ShareWithService {
authContext,
apiKeyRoleMap,
shareWith,
- isShareRequired: objectSharing.isShareRequired,
isPrivateByDefault: objectSharing.isPrivateByDefault,
isPrivate,
}),
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/build-record-share-inputs-for-created-records.util.spec.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/build-record-share-inputs-for-created-records.util.spec.ts
index aa6f48ee46f..50ea32d538f 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/build-record-share-inputs-for-created-records.util.spec.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/build-record-share-inputs-for-created-records.util.spec.ts
@@ -54,8 +54,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
objectMetadataId: OBJECT_METADATA_ID,
authContext: userAuthContext,
apiKeyRoleMap,
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -94,8 +93,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
accessLevel: RecordShareAccessLevel.READ_WRITE,
},
],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -131,7 +129,6 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
shareWith: [
{ roleId: ROLE_ID, accessLevel: RecordShareAccessLevel.READ },
],
- isShareRequired: false,
isPrivateByDefault: false,
isPrivate: false,
}),
@@ -156,7 +153,6 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
authContext: userAuthContext,
apiKeyRoleMap,
shareWith: [],
- isShareRequired: false,
isPrivateByDefault: false,
isPrivate: true,
}),
@@ -171,7 +167,6 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
authContext: apiKeyAuthContext,
apiKeyRoleMap,
shareWith: [],
- isShareRequired: false,
isPrivateByDefault: false,
isPrivate: true,
}),
@@ -198,8 +193,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
shareWith: [
{ everyone: true, accessLevel: RecordShareAccessLevel.READ },
],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -234,8 +228,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
shareWith: [
{ everyone: true, accessLevel: RecordShareAccessLevel.READ },
],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -256,8 +249,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
shareWith: [
{ roleId: ROLE_ID, accessLevel: RecordShareAccessLevel.FULL },
],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -295,8 +287,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
accessLevel: RecordShareAccessLevel.READ,
},
],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -325,8 +316,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
shareWith: [
{ roleId: ROLE_ID, accessLevel: RecordShareAccessLevel.FULL },
],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([expect.objectContaining({ principalId: ROLE_ID })]);
@@ -342,8 +332,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
shareWith: [
{ everyone: true, accessLevel: RecordShareAccessLevel.READ },
],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -369,8 +358,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
authContext: userAuthContext,
apiKeyRoleMap,
shareWith: null,
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -388,8 +376,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
objectMetadataId: OBJECT_METADATA_ID,
authContext: apiKeyAuthContext,
apiKeyRoleMap,
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
@@ -414,8 +401,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
authContext: systemAuthContext,
apiKeyRoleMap,
shareWith: [],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([]);
@@ -434,8 +420,7 @@ describe('buildRecordShareInputsForCreatedRecords', () => {
accessLevel: RecordShareAccessLevel.READ,
},
],
- isShareRequired: true,
- isPrivateByDefault: false,
+ isPrivateByDefault: true,
isPrivate: false,
}),
).toEqual([
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-created-record-sharing-or-throw.util.spec.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-created-record-sharing-or-throw.util.spec.ts
index 4264f22fd28..efc06780c5a 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-created-record-sharing-or-throw.util.spec.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-created-record-sharing-or-throw.util.spec.ts
@@ -20,53 +20,20 @@ const EVERYONE_AT_DEFAULT = {
everyone: true,
accessLevel: RecordShareAccessLevel.READ_WRITE,
};
-const SHARE_REQUIRED_OBJECT = {
- isShareable: true,
- isShareRequired: true,
- isPrivateByDefault: true,
- defaultGeneralAccessLevel: RecordShareAccessLevel.NONE,
-};
const SHAREABLE_OBJECT = {
isShareable: true,
- isShareRequired: false,
isPrivateByDefault: false,
- defaultGeneralAccessLevel: RecordShareAccessLevel.READ_WRITE,
-};
-const PRIVATE_BY_DEFAULT_OBJECT = {
- ...SHAREABLE_OBJECT,
- isPrivateByDefault: true,
};
const ROLE_ONLY_OBJECT = {
isShareable: false,
- isShareRequired: false,
isPrivateByDefault: false,
- defaultGeneralAccessLevel: null,
+};
+const PRIVATE_BY_DEFAULT_OBJECT = {
+ isShareable: true,
+ isPrivateByDefault: true,
};
describe('resolveCreatedRecordSharingOrThrow', () => {
- it('should write every entry, and the creator rows, on an object whose records need a share', () => {
- expect(
- resolveCreatedRecordSharingOrThrow({
- objectSharing: SHARE_REQUIRED_OBJECT,
- shareWith: [ROLE_GRANT, EVERYONE_GRANT],
- }),
- ).toEqual({ shareWith: [ROLE_GRANT, EVERYONE_GRANT], isPrivate: false });
- expect(
- resolveCreatedRecordSharingOrThrow({
- objectSharing: SHARE_REQUIRED_OBJECT,
- }),
- ).toEqual({ shareWith: [], isPrivate: false });
- });
-
- it('should leave no everyone row when everyone keeps the default of an object whose records need a share', () => {
- expect(
- resolveCreatedRecordSharingOrThrow({
- objectSharing: SHARE_REQUIRED_OBJECT,
- shareWith: [ROLE_GRANT, EVERYONE_NONE],
- }),
- ).toEqual({ shareWith: [ROLE_GRANT], isPrivate: false });
- });
-
it('should create private records when everyone gets no access', () => {
expect(
resolveCreatedRecordSharingOrThrow({
@@ -124,7 +91,7 @@ describe('resolveCreatedRecordSharingOrThrow', () => {
).toBeNull();
});
- it('should always create a record of a private-by-default object private', () => {
+ it('should create a record of a private-by-default object private unless it is shared with everyone', () => {
expect(
resolveCreatedRecordSharingOrThrow({
objectSharing: PRIVATE_BY_DEFAULT_OBJECT,
@@ -136,6 +103,15 @@ describe('resolveCreatedRecordSharingOrThrow', () => {
objectSharing: PRIVATE_BY_DEFAULT_OBJECT,
shareWith: [EVERYONE_AT_DEFAULT],
}),
+ ).toBeNull();
+ });
+
+ it('should create a record of a private-by-default object private even without record sharing', () => {
+ expect(
+ resolveCreatedRecordSharingOrThrow({
+ objectSharing: { ...PRIVATE_BY_DEFAULT_OBJECT, isShareable: false },
+ shareWith: [ROLE_GRANT],
+ }),
).toEqual({ shareWith: [], isPrivate: true });
});
});
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-object-sharing.util.spec.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-object-sharing.util.spec.ts
index aa917f1e2d1..5502954e68a 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-object-sharing.util.spec.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-object-sharing.util.spec.ts
@@ -1,70 +1,47 @@
/* @license Enterprise */
import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
-import { FeatureFlagKey, RecordShareAccessLevel } from 'twenty-shared/types';
+import { FeatureFlagKey } from 'twenty-shared/types';
import { resolveObjectSharing } from 'src/engine/permissions/record-share/utils/resolve-object-sharing.util';
const OBJECT = {
universalIdentifier: 'custom-object',
- isSystem: false,
disabledObjectPermissionActions: null,
};
-const OPEN_BY_DEFAULT = {
- isShareable: true,
- isShareRequired: false,
- isPrivateByDefault: false,
- defaultGeneralAccessLevel: RecordShareAccessLevel.READ_WRITE,
-};
-const ROLE_ONLY = {
- isShareable: false,
- isShareRequired: false,
- isPrivateByDefault: false,
- defaultGeneralAccessLevel: null,
-};
const CHAT_THREAD = {
...OBJECT,
universalIdentifier: STANDARD_OBJECTS.agentChatThread.universalIdentifier,
};
-const PRIVATE_CHAT_THREAD = {
- [FeatureFlagKey.IS_PRIVATE_RECORD_ENABLED]: true,
-};
const RECORD_SHARING = {
[FeatureFlagKey.IS_RECORD_LEVEL_SHARING_ENABLED]: true,
};
describe('resolveObjectSharing', () => {
- it('should open records by default and let grants view or edit beyond the role', () => {
+ it('should make records shareable beyond the role once record sharing is enabled', () => {
expect(
resolveObjectSharing({
flatObjectMetadata: OBJECT,
featureFlagsMap: RECORD_SHARING,
}),
).toEqual({
- ...OPEN_BY_DEFAULT,
+ isShareable: true,
+ isPrivateByDefault: false,
canShareBeyondRole: true,
operationTypesGrantedBeyondRole: ['select', 'update'],
});
});
- it.each([
- { isSystem: false, featureFlagsMap: {} },
- { isSystem: true, featureFlagsMap: RECORD_SHARING },
- ])(
- 'should keep records role-only for %o',
- ({ isSystem, featureFlagsMap }) => {
- expect(
- resolveObjectSharing({
- flatObjectMetadata: { ...OBJECT, isSystem },
- featureFlagsMap,
- }),
- ).toEqual({
- ...ROLE_ONLY,
- canShareBeyondRole: false,
- operationTypesGrantedBeyondRole: [],
- });
- },
- );
+ it('should keep records unshareable while record sharing is disabled', () => {
+ expect(
+ resolveObjectSharing({ flatObjectMetadata: OBJECT, featureFlagsMap: {} }),
+ ).toEqual({
+ isShareable: false,
+ isPrivateByDefault: false,
+ canShareBeyondRole: false,
+ operationTypesGrantedBeyondRole: [],
+ });
+ });
it('should not grant beyond the role an operation the object disables', () => {
expect(
@@ -96,35 +73,18 @@ describe('resolveObjectSharing', () => {
});
});
- it('should reach chat threads through their shares until private records are enabled', () => {
- expect(
- resolveObjectSharing({
- flatObjectMetadata: CHAT_THREAD,
- featureFlagsMap: {},
- }),
- ).toEqual({
- isShareable: true,
- isShareRequired: true,
- isPrivateByDefault: true,
- defaultGeneralAccessLevel: RecordShareAccessLevel.NONE,
- canShareBeyondRole: false,
- operationTypesGrantedBeyondRole: [],
- });
- });
-
- it('should make chat threads shareable private records once private records are enabled, whatever the sharing flag', () => {
- expect(
- resolveObjectSharing({
- flatObjectMetadata: CHAT_THREAD,
- featureFlagsMap: PRIVATE_CHAT_THREAD,
- }),
- ).toEqual({
- isShareable: true,
- isShareRequired: false,
- isPrivateByDefault: true,
- defaultGeneralAccessLevel: RecordShareAccessLevel.NONE,
- canShareBeyondRole: false,
- operationTypesGrantedBeyondRole: [],
- });
- });
+ it.each([
+ { featureFlagsMap: {}, isShareable: false },
+ { featureFlagsMap: RECORD_SHARING, isShareable: true },
+ ])(
+ 'should create chat threads private and share them only with record sharing ($isShareable)',
+ ({ featureFlagsMap, isShareable }) => {
+ expect(
+ resolveObjectSharing({
+ flatObjectMetadata: CHAT_THREAD,
+ featureFlagsMap,
+ }),
+ ).toMatchObject({ isShareable, isPrivateByDefault: true });
+ },
+ );
});
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-record-general-access-level.util.spec.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-record-general-access-level.util.spec.ts
deleted file mode 100644
index 64bf5340e6a..00000000000
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/__tests__/resolve-record-general-access-level.util.spec.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-/* @license Enterprise */
-
-import { EVERYONE_PRINCIPAL_ID } from 'twenty-shared/constants';
-import {
- RecordShareAccessLevel,
- RecordSharePrincipalType,
- RecordShareRowCause,
-} from 'twenty-shared/types';
-
-import { type RecordShare } from 'src/engine/permissions/record-share/types/record-share.type';
-import { resolveRecordGeneralAccessLevel } from 'src/engine/permissions/record-share/utils/resolve-record-general-access-level.util';
-
-const buildEveryoneShare = (
- accessLevel: RecordShareAccessLevel,
- rowCause = RecordShareRowCause.MANUAL,
-): RecordShare => ({
- id: 'share-1',
- recordId: 'record-1',
- objectMetadataId: 'object-1',
- principalId: EVERYONE_PRINCIPAL_ID,
- principalType: RecordSharePrincipalType.EVERYONE,
- accessLevel,
- rowCause,
- sourceId: 'record-1',
-});
-
-describe('resolveRecordGeneralAccessLevel', () => {
- it.each([
- RecordShareAccessLevel.READ_WRITE,
- RecordShareAccessLevel.NONE,
- null,
- ])(
- 'should fall back to the default general access %s',
- (defaultGeneralAccessLevel) => {
- expect(
- resolveRecordGeneralAccessLevel({
- defaultGeneralAccessLevel,
- recordShares: [],
- isPrivate: false,
- }),
- ).toBe(defaultGeneralAccessLevel);
- },
- );
-
- it('should report no general access on a private record', () => {
- expect(
- resolveRecordGeneralAccessLevel({
- defaultGeneralAccessLevel: RecordShareAccessLevel.READ_WRITE,
- recordShares: [],
- isPrivate: true,
- }),
- ).toBe(RecordShareAccessLevel.NONE);
- });
-
- it('should read a manual opening of a private record', () => {
- expect(
- resolveRecordGeneralAccessLevel({
- defaultGeneralAccessLevel: RecordShareAccessLevel.NONE,
- recordShares: [buildEveryoneShare(RecordShareAccessLevel.READ)],
- isPrivate: false,
- }),
- ).toBe(RecordShareAccessLevel.READ);
- });
-
- it('should ignore everyone grants managed by a rule', () => {
- expect(
- resolveRecordGeneralAccessLevel({
- defaultGeneralAccessLevel: RecordShareAccessLevel.READ_WRITE,
- recordShares: [
- buildEveryoneShare(
- RecordShareAccessLevel.FULL,
- RecordShareRowCause.RULE,
- ),
- ],
- isPrivate: false,
- }),
- ).toBe(RecordShareAccessLevel.READ_WRITE);
- });
-
- it('should report no general access when records are not shared', () => {
- expect(
- resolveRecordGeneralAccessLevel({
- defaultGeneralAccessLevel: null,
- recordShares: [buildEveryoneShare(RecordShareAccessLevel.READ)],
- isPrivate: false,
- }),
- ).toBeNull();
- });
-});
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/build-record-share-gate.util.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/build-record-share-gate.util.ts
index 972baf2e8d3..2c7b7556649 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/build-record-share-gate.util.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/utils/build-record-share-gate.util.ts
@@ -4,10 +4,9 @@ import { isDefined } from 'twenty-shared/utils';
import { isPrivateRecordEnabled } from 'src/engine/permissions/private-record/utils/is-private-record-enabled.util';
import { buildPrivateRecordCreatorExpression } from 'src/engine/permissions/private-record/utils/build-private-record-creator-expression.util';
-import { resolveObjectSharing } from 'src/engine/permissions/record-share/utils/resolve-object-sharing.util';
import { resolveRequiredRecordShareAccessLevels } from 'src/engine/permissions/record-share/utils/resolve-required-record-share-access-levels.util';
+import { isPermissionStorageObject } from 'src/engine/permissions/utils/is-permission-storage-object.util';
import {
- type RowAccessExpression,
type RowAccessPolicy,
type RowAccessPolicyContext,
type RowAccessPolicyTarget,
@@ -24,14 +23,9 @@ export const buildRecordShareGate = ({
RowAccessPolicyTarget,
'tableAlias' | 'flatObjectMetadata' | 'operationType'
>): RowAccessPolicy => {
- const { isShareable, isShareRequired } = resolveObjectSharing({
- flatObjectMetadata,
- featureFlagsMap: environment.featureFlagsMap,
- });
-
if (
- !isShareable ||
- (isShareRequired && subject.isOwningApplication(flatObjectMetadata)) ||
+ !isPrivateRecordEnabled(environment.featureFlagsMap) ||
+ isPermissionStorageObject(flatObjectMetadata) ||
!isDefined(subject.principalIds)
) {
return { kind: 'open' };
@@ -43,22 +37,6 @@ export const buildRecordShareGate = ({
return { kind: 'open' };
}
- const recordShared: RowAccessExpression = {
- kind: 'recordShared',
- tableAlias,
- objectMetadataId: flatObjectMetadata.id,
- principalIds: subject.principalIds,
- accessLevels,
- };
-
- if (isShareRequired) {
- return { kind: 'gated', expression: recordShared };
- }
-
- if (!isPrivateRecordEnabled(environment.featureFlagsMap)) {
- return { kind: 'open' };
- }
-
const creator = buildPrivateRecordCreatorExpression({
workspaceMemberId: subject.workspaceMemberId,
flatFieldMetadataMaps: environment.flatFieldMetadataMaps,
@@ -78,7 +56,13 @@ export const buildRecordShareGate = ({
objectMetadataId: flatObjectMetadata.id,
},
...(isDefined(creator) ? [creator] : []),
- recordShared,
+ {
+ kind: 'recordShared',
+ tableAlias,
+ objectMetadataId: flatObjectMetadata.id,
+ principalIds: subject.principalIds,
+ accessLevels,
+ },
],
},
};
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/build-record-share-inputs-for-created-records.util.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/build-record-share-inputs-for-created-records.util.ts
index b6e0469aac1..1cb46b930c0 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/build-record-share-inputs-for-created-records.util.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/utils/build-record-share-inputs-for-created-records.util.ts
@@ -112,7 +112,6 @@ export const buildRecordShareInputsForCreatedRecords = ({
authContext,
apiKeyRoleMap,
shareWith,
- isShareRequired,
isPrivateByDefault,
isPrivate,
}: {
@@ -121,7 +120,6 @@ export const buildRecordShareInputsForCreatedRecords = ({
authContext: WorkspaceAuthContext;
apiKeyRoleMap: Record<string, string>;
shareWith?: ShareWithInput[] | null;
- isShareRequired: boolean;
isPrivateByDefault: boolean;
isPrivate: boolean;
}): RecordShareInput[] => {
@@ -137,9 +135,7 @@ export const buildRecordShareInputsForCreatedRecords = ({
// An application or API key has no createdBy member to keep its private records through
const shouldWriteCreatorRows =
- isShareRequired ||
- isPrivateByDefault ||
- (isPrivate && !isUserAuthContext(authContext));
+ isPrivateByDefault || (isPrivate && !isUserAuthContext(authContext));
return [
...recordIds.flatMap((recordId) => [
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-created-record-sharing-or-throw.util.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-created-record-sharing-or-throw.util.ts
index a3dd7505d45..74a31e7c4da 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-created-record-sharing-or-throw.util.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-created-record-sharing-or-throw.util.ts
@@ -18,39 +18,17 @@ export type CreatedRecordSharing = {
// shareWith also reaches records created through nested relations, whose objects may not be shareable
export const resolveCreatedRecordSharingOrThrow = ({
- objectSharing: {
- isShareable,
- isShareRequired,
- isPrivateByDefault,
- defaultGeneralAccessLevel,
- },
+ objectSharing: { isShareable, isPrivateByDefault },
shareWith,
}: {
- objectSharing: Pick<
- ObjectSharing,
- | 'isShareable'
- | 'isShareRequired'
- | 'isPrivateByDefault'
- | 'defaultGeneralAccessLevel'
- >;
+ objectSharing: Pick<ObjectSharing, 'isShareable' | 'isPrivateByDefault'>;
shareWith?: ShareWithInput[] | null;
}): CreatedRecordSharing | null => {
if (!isShareable) {
- return null;
+ return isPrivateByDefault ? { shareWith: [], isPrivate: true } : null;
}
const entries = shareWith ?? [];
-
- if (isShareRequired) {
- return {
- shareWith: entries.filter(
- (entry) =>
- !entry.everyone || entry.accessLevel !== defaultGeneralAccessLevel,
- ),
- isPrivate: false,
- };
- }
-
const everyoneEntries = entries.filter((entry) => entry.everyone);
if (
@@ -66,11 +44,14 @@ export const resolveCreatedRecordSharingOrThrow = ({
}
const namedEntries = entries.filter((entry) => !entry.everyone);
+ const isSharedWithEveryone = everyoneEntries.some(
+ (entry) => entry.accessLevel !== RecordShareAccessLevel.NONE,
+ );
const isPrivate =
- isPrivateByDefault ||
everyoneEntries.some(
(entry) => entry.accessLevel === RecordShareAccessLevel.NONE,
- );
+ ) ||
+ (isPrivateByDefault && !isSharedWithEveryone);
return isPrivate || isNonEmptyArray(namedEntries)
? { shareWith: namedEntries, isPrivate }
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-object-sharing.util.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-object-sharing.util.ts
index f01cbef2147..8b7edd91f5a 100644
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-object-sharing.util.ts
+++ b/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-object-sharing.util.ts
@@ -1,11 +1,10 @@
/* @license Enterprise */
import { type ObjectPermissionAction } from 'twenty-shared/application';
-import { FeatureFlagKey, RecordShareAccessLevel } from 'twenty-shared/types';
+import { FeatureFlagKey } from 'twenty-shared/types';
import { isNonEmptyArray } from 'twenty-shared/utils';
-import { isPrivateRecordEnabled } from 'src/engine/permissions/private-record/utils/is-private-record-enabled.util';
import { isPrivateByDefaultObject } from 'src/engine/permissions/private-record/utils/is-private-by-default-object.util';
import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type';
import { type OperationType } from 'src/engine/permissions/role/utils/validate-operation-is-permitted-or-throw.util';
@@ -23,28 +22,11 @@ const OPERATIONS_GRANTABLE_BEYOND_ROLE: {
export type ObjectSharing = {
isShareable: boolean;
- isShareRequired: boolean;
isPrivateByDefault: boolean;
- defaultGeneralAccessLevel: RecordShareAccessLevel | null;
canShareBeyondRole: boolean;
operationTypesGrantedBeyondRole: OperationType[];
};
-const resolveDefaultGeneralAccessLevel = ({
- isShareable,
- isShareRequired,
- isPrivateByDefault,
-}: Pick<
- ObjectSharing,
- 'isShareable' | 'isShareRequired' | 'isPrivateByDefault'
->): RecordShareAccessLevel | null => {
- if (isShareRequired || isPrivateByDefault) {
- return RecordShareAccessLevel.NONE;
- }
-
- return isShareable ? RecordShareAccessLevel.READ_WRITE : null;
-};
-
const resolveOperationTypesGrantableBeyondRole = ({
disabledObjectPermissionActions,
}: Pick<
@@ -62,32 +44,19 @@ export const resolveObjectSharing = ({
}: {
flatObjectMetadata: Pick<
FlatObjectMetadata,
- 'universalIdentifier' | 'isSystem' | 'disabledObjectPermissionActions'
+ 'universalIdentifier' | 'disabledObjectPermissionActions'
>;
featureFlagsMap: Partial<Record<FeatureFlagKey, boolean>>;
}): ObjectSharing => {
- const isRecordSharingEnabled =
+ const isShareable =
featureFlagsMap[FeatureFlagKey.IS_RECORD_LEVEL_SHARING_ENABLED] ?? false;
-
- const isPrivateByDefault = isPrivateByDefaultObject(flatObjectMetadata);
- const isShareRequired =
- isPrivateByDefault && !isPrivateRecordEnabled(featureFlagsMap);
- const canBeShared = isRecordSharingEnabled && !flatObjectMetadata.isSystem;
- const isShareable = isPrivateByDefault || canBeShared;
-
- const operationTypesGrantedBeyondRole = canBeShared
+ const operationTypesGrantedBeyondRole = isShareable
? resolveOperationTypesGrantableBeyondRole(flatObjectMetadata)
: [];
return {
isShareable,
- isShareRequired,
- isPrivateByDefault,
- defaultGeneralAccessLevel: resolveDefaultGeneralAccessLevel({
- isShareable,
- isShareRequired,
- isPrivateByDefault,
- }),
+ isPrivateByDefault: isPrivateByDefaultObject(flatObjectMetadata),
canShareBeyondRole: isNonEmptyArray(operationTypesGrantedBeyondRole),
operationTypesGrantedBeyondRole,
};
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-record-general-access-level.util.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-record-general-access-level.util.ts
deleted file mode 100644
index 0c4ce0f70ab..00000000000
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-record-general-access-level.util.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* @license Enterprise */
-
-import {
- RecordShareAccessLevel,
- RecordSharePrincipalType,
- RecordShareRowCause,
-} from 'twenty-shared/types';
-import { isDefined } from 'twenty-shared/utils';
-
-import { type RecordShare } from 'src/engine/permissions/record-share/types/record-share.type';
-
-// Everyone rows written by a rule or an application are not part of the
-// general access people set on the record
-export const resolveRecordGeneralAccessLevel = ({
- defaultGeneralAccessLevel,
- recordShares,
- isPrivate,
-}: {
- defaultGeneralAccessLevel: RecordShareAccessLevel | null;
- recordShares: RecordShare[];
- isPrivate: boolean;
-}): RecordShareAccessLevel | null => {
- if (!isDefined(defaultGeneralAccessLevel)) {
- return null;
- }
-
- if (isPrivate) {
- return RecordShareAccessLevel.NONE;
- }
-
- const everyoneManualShare = recordShares.find(
- (recordShare) =>
- recordShare.principalType === RecordSharePrincipalType.EVERYONE &&
- recordShare.rowCause === RecordShareRowCause.MANUAL,
- );
-
- return everyoneManualShare?.accessLevel ?? defaultGeneralAccessLevel;
-};
diff --git a/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-record-sharing-mode.util.ts b/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-record-sharing-mode.util.ts
deleted file mode 100644
index 2926ff60633..00000000000
--- a/packages/twenty-server/src/engine/permissions/record-share/utils/resolve-record-sharing-mode.util.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/* @license Enterprise */
-
-import { RecordSharingMode } from 'src/engine/permissions/record-share/enums/record-sharing-mode.enum';
-import { type ObjectSharing } from 'src/engine/permissions/record-share/utils/resolve-object-sharing.util';
-
-export const resolveRecordSharingMode = ({
- isShareable,
- isShareRequired,
-}: Pick<
- ObjectSharing,
- 'isShareable' | 'isShareRequired'
->): RecordSharingMode => {
- if (isShareRequired) {
- return RecordSharingMode.PRIVATE;
- }
-
- return isShareable
- ? RecordSharingMode.OPEN_BY_DEFAULT
- : RecordSharingMode.ROLE_ONLY;
-};
diff --git a/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap
index 804587d9d8d..53cd4dccac1 100644
--- a/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap
@@ -494,7 +494,7 @@ exports[`endpoint permission declarations should match the auth principals, perm
"RecordPermissionsResolver.recordPermissions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}",
"RecordSharingResolver.recordSharing {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}",
"RecordSharingResolver.removeRecordShare {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}",
- "RecordSharingResolver.setRecordGeneralAccess {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}",
+ "RecordSharingResolver.setRecordPrivate {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}",
"RecordSharingResolver.setRecordShare {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":[],"requiredPermissionFlags":[]}",
"RelatedRecordPathResolver.createRelatedRecordPath {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":["IS_RELATED_RECORD_PATHS_ENABLED"],"requiredPermissionFlags":["ROLES"]}",
"RelatedRecordPathResolver.deleteRelatedRecordPath {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}],"requiredFeatureFlags":["IS_RELATED_RECORD_PATHS_ENABLED"],"requiredPermissionFlags":["ROLES"]}",
diff --git a/packages/twenty-server/test/integration/graphql/suites/ai-chat-inbox-message.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/ai-chat-inbox-message.integration-spec.ts
index a6daee129e9..79d57a06b05 100644
--- a/packages/twenty-server/test/integration/graphql/suites/ai-chat-inbox-message.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/ai-chat-inbox-message.integration-spec.ts
@@ -1,3 +1,5 @@
+import { FeatureFlagKey } from 'twenty-shared/types';
+import { updateFeatureFlag } from 'test/integration/metadata/suites/utils/update-feature-flag.util';
import { parse } from 'graphql';
import { answerToolCall } from 'test/integration/graphql/suites/workflow/utils/answer-tool-call.util';
import { createOneOperationFactory } from 'test/integration/graphql/utils/create-one-operation-factory.util';
@@ -47,6 +49,17 @@ const QUESTION = {
// The model is not called here: the resumed stream is only checked for being
// queued.
+const setRecordSharingEnabled = (value: boolean) =>
+ updateFeatureFlag({
+ featureFlag: FeatureFlagKey.IS_RECORD_LEVEL_SHARING_ENABLED,
+ value,
+ expectToFail: false,
+ });
+
+beforeAll(() => setRecordSharingEnabled(true));
+
+afterAll(() => setRecordSharingEnabled(false));
+
describe('Sending an inbox message as an application', () => {
const input = {
workspaceMemberIds: [WORKSPACE_MEMBER_DATA_SEED_IDS.JANE],
diff --git a/packages/twenty-server/test/integration/graphql/suites/chat-shared-api-boundaries.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/chat-shared-api-boundaries.integration-spec.ts
index 3fdf6347c1c..080cf54e435 100644
--- a/packages/twenty-server/test/integration/graphql/suites/chat-shared-api-boundaries.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/chat-shared-api-boundaries.integration-spec.ts
@@ -1,3 +1,4 @@
+import { updateFeatureFlag } from 'test/integration/metadata/suites/utils/update-feature-flag.util';
import { randomUUID } from 'node:crypto';
import { configureChatParticipationModels } from 'test/integration/ai/utils/configure-chat-participation-models.util';
@@ -27,6 +28,17 @@ import { type WorkspaceEventEmitter } from 'src/engine/workspace-event-emitter/w
import { USER_WORKSPACE_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/utils/seed-user-workspaces.util';
import { WORKSPACE_MEMBER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/workspace-member-data-seeds.constant';
+const setRecordSharingEnabled = (value: boolean) =>
+ updateFeatureFlag({
+ featureFlag: FeatureFlagKey.IS_RECORD_LEVEL_SHARING_ENABLED,
+ value,
+ expectToFail: false,
+ });
+
+beforeAll(() => setRecordSharingEnabled(true));
+
+afterAll(() => setRecordSharingEnabled(false));
+
describe('Shared conversation API boundaries', () => {
let context: Awaited<ReturnType<typeof createChatParticipationTestContext>>;
let models: ReturnType<typeof configureChatParticipationModels>;
@@ -407,31 +419,37 @@ describe('Shared conversation API boundaries', () => {
it('does not let ownership bypass a revoked update permission', async () => {
const threadId = context.registerThread();
- await context.threadService.createThread({
- id: threadId,
- workspaceId: context.workspaceId,
- workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY,
- });
- await runWithReadOnlyChatPermission({
- workspaceId: context.workspaceId,
- userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JONY,
- work: async () => {
- const readable = await readThread(threadId);
- const sent = await sendChatParticipationMessage({
- threadId,
- token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
- });
+ await setRecordSharingEnabled(false);
- expect(readable.body.errors).toBeUndefined();
- expect(sent.body.errors).toBeDefined();
- expect(
- await context.chatService.hasMessages({
+ try {
+ await context.threadService.createThread({
+ id: threadId,
+ workspaceId: context.workspaceId,
+ workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY,
+ });
+ await runWithReadOnlyChatPermission({
+ workspaceId: context.workspaceId,
+ userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JONY,
+ work: async () => {
+ const readable = await readThread(threadId);
+ const sent = await sendChatParticipationMessage({
threadId,
- workspaceId: context.workspaceId,
- }),
- ).toBe(false);
- },
- });
+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ });
+
+ expect(readable.body.errors).toBeUndefined();
+ expect(sent.body.errors).toBeDefined();
+ expect(
+ await context.chatService.hasMessages({
+ threadId,
+ workspaceId: context.workspaceId,
+ }),
+ ).toBe(false);
+ },
+ });
+ } finally {
+ await setRecordSharingEnabled(true);
+ }
});
it('cannot take over a chat ID that another member creates concurrently', async () => {
diff --git a/packages/twenty-server/test/integration/graphql/suites/chat-thread-participant.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/chat-thread-participant.integration-spec.ts
index 3871fbe91e0..f4f2daae83e 100644
--- a/packages/twenty-server/test/integration/graphql/suites/chat-thread-participant.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/chat-thread-participant.integration-spec.ts
@@ -1,3 +1,4 @@
+import { updateFeatureFlag } from 'test/integration/metadata/suites/utils/update-feature-flag.util';
import { randomUUID } from 'node:crypto';
import { EventEmitter, once } from 'node:events';
@@ -8,6 +9,7 @@ import {
} from 'twenty-shared/database-events';
import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
import {
+ FeatureFlagKey,
RecordShareAccessLevel,
RecordSharePrincipalType,
} from 'twenty-shared/types';
@@ -319,6 +321,17 @@ const setShareWithJony = (threadId: string, enabled: boolean) =>
enabled,
});
+const setRecordSharingEnabled = (value: boolean) =>
+ updateFeatureFlag({
+ featureFlag: FeatureFlagKey.IS_RECORD_LEVEL_SHARING_ENABLED,
+ value,
+ expectToFail: false,
+ });
+
+beforeAll(() => setRecordSharingEnabled(true));
+
+afterAll(() => setRecordSharingEnabled(false));
+
describe('Chat thread participant state through the authenticated API', () => {
const createdThreadIds: string[] = [];
diff --git a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/chat-thread-sharing.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/chat-thread-sharing.integration-spec.ts
index 04e6b428a6c..070a6401415 100644
--- a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/chat-thread-sharing.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/chat-thread-sharing.integration-spec.ts
@@ -1,3 +1,4 @@
+import { updateFeatureFlag } from 'test/integration/metadata/suites/utils/update-feature-flag.util';
import { createOneOperationFactory } from 'test/integration/graphql/utils/create-one-operation-factory.util';
import { deleteOneOperationFactory } from 'test/integration/graphql/utils/delete-one-operation-factory.util';
import { destroyOneOperationFactory } from 'test/integration/graphql/utils/destroy-one-operation-factory.util';
@@ -14,7 +15,6 @@ import {
} from 'test/integration/utils/restore-legacy-chat-membership-columns.util';
import { listChatThreadIds } from 'test/integration/utils/list-chat-thread-ids.util';
import { type AgentChatActorService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-actor.service';
-import { buildWorkspaceSetupChatThreadId } from 'src/engine/metadata-modules/ai/ai-chat/utils/build-workspace-setup-chat-thread-id.util';
import { type RecordShareStorageService } from 'src/engine/permissions/record-share/services/record-share-storage.service';
import { type BillingSubscriptionService } from 'src/engine/core-modules/billing/services/billing-subscription.service';
import { type AddWorkflowRunToChatThreadsCommand } from 'src/database/commands/upgrade-version-command/2-44/2-44-workspace-command-1790607161319-add-workflow-run-to-chat-threads.command';
@@ -26,6 +26,7 @@ import { parse } from 'graphql';
import { EVERYONE_PRINCIPAL_ID } from 'twenty-shared/constants';
import { type ObjectRecordDestroyEvent } from 'twenty-shared/database-events';
import {
+ FeatureFlagKey,
RecordShareAccessLevel,
RecordSharePrincipalType,
RecordShareRowCause,
@@ -146,18 +147,13 @@ const readStoredThreadState = async (threadId: string) => {
};
const SET_SHARE =
parse(`mutation SetThreadShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!, $accessLevel: RecordShareAccessLevel!) {
- setRecordShare(target: $target, principal: $principal, accessLevel: $accessLevel) { sharingMode }
+ setRecordShare(target: $target, principal: $principal, accessLevel: $accessLevel) { canManageSharing }
}`);
const REMOVE_SHARE =
parse(`mutation RemoveThreadShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!) {
- removeRecordShare(target: $target, principal: $principal) { sharingMode }
+ removeRecordShare(target: $target, principal: $principal) { canManageSharing }
}`);
-const SET_GENERAL_ACCESS =
- parse(`mutation SetThreadGeneralAccess($target: RecordTargetInput!, $accessLevel: RecordShareAccessLevel!) {
- setRecordGeneralAccess(target: $target, accessLevel: $accessLevel) { sharingMode }
-}`);
-type ThreadAudience = RecordSharePrincipalInput | 'everyone';
-// Everyone is reached through the general access, where NONE withdraws it
+type ThreadAudience = RecordSharePrincipalInput;
const shareThread = ({
target,
audience,
@@ -169,12 +165,6 @@ const shareThread = ({
accessLevel: RecordShareAccessLevel;
token?: string;
}) => {
- if (audience === 'everyone') {
- return makeMetadataApiRequest(
- { query: SET_GENERAL_ACCESS, variables: { target, accessLevel } },
- token,
- );
- }
return accessLevel === RecordShareAccessLevel.NONE
? makeMetadataApiRequest(
{ query: REMOVE_SHARE, variables: { target, principal: audience } },
@@ -189,6 +179,17 @@ const shareThread = ({
);
};
+const setRecordSharingEnabled = (value: boolean) =>
+ updateFeatureFlag({
+ featureFlag: FeatureFlagKey.IS_RECORD_LEVEL_SHARING_ENABLED,
+ value,
+ expectToFail: false,
+ });
+
+beforeAll(() => setRecordSharingEnabled(true));
+
+afterAll(() => setRecordSharingEnabled(false));
+
describe('Conversation sharing through the authenticated API', () => {
it.each(['member', 'role'])(
'grants read-only %s access and denies it immediately after revocation',
@@ -209,16 +210,8 @@ describe('Conversation sharing through the authenticated API', () => {
const threadAudience: ThreadAudience =
audience === 'member'
? { workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY }
- : audience === 'role'
- ? { roleId }
- : 'everyone';
- const threadId =
- audience === 'setup'
- ? buildWorkspaceSetupChatThreadId({
- workspaceId,
- userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JANE,
- })
- : randomUUID();
+ : { roleId };
+ const threadId = randomUUID();
const target = {
objectMetadataId:
flatObjectMetadataMaps.byUniversalIdentifier[
@@ -343,13 +336,6 @@ describe('Conversation sharing through the authenticated API', () => {
APPLE_JONY_MEMBER_ACCESS_TOKEN,
);
expect(stop.body.errors[0].extensions.code).toBe('NOT_FOUND');
- const grantAsViewer = await shareThread({
- target,
- audience: 'everyone',
- accessLevel: RecordShareAccessLevel.READ,
- token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
- });
- expect(grantAsViewer.body.errors[0].extensions.code).toBe('NOT_FOUND');
const anonymous = await readThread(threadId, null);
expect(anonymous.body.errors).toBeDefined();
expect((await changeShare(false)).body.errors).toBeUndefined();
@@ -386,9 +372,7 @@ describe('Conversation sharing through the authenticated API', () => {
const threadAudience: ThreadAudience =
audience === 'member'
? { workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY }
- : audience === 'role'
- ? { roleId: userWorkspaceRoleMap[sender.userWorkspaceId] }
- : 'everyone';
+ : { roleId: userWorkspaceRoleMap[sender.userWorkspaceId] };
const threadId = randomUUID();
const target = {
objectMetadataId:
@@ -472,21 +456,13 @@ describe('Conversation sharing through the authenticated API', () => {
.extensions.code,
).toBe('NOT_FOUND');
}
- // Full access lets its holder manage sharing, so everyone never gets it
- if (threadAudience === 'everyone') {
- expect(
- (await grant(RecordShareAccessLevel.FULL)).body.errors[0].extensions
- .code,
- ).toBe('BAD_USER_INPUT');
- } else {
+ expect(
+ (await grant(RecordShareAccessLevel.FULL)).body.errors,
+ ).toBeUndefined();
+ for (const enabled of [true, false]) {
expect(
- (await grant(RecordShareAccessLevel.FULL)).body.errors,
+ (await changeSharingAsParticipant(enabled)).body.errors,
).toBeUndefined();
- for (const enabled of [true, false]) {
- expect(
- (await changeSharingAsParticipant(enabled)).body.errors,
- ).toBeUndefined();
- }
}
expect(
(await grant(RecordShareAccessLevel.READ_WRITE)).body.errors,
diff --git a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-level-sharing-open-object.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-level-sharing-open-object.integration-spec.ts
index b6417819f87..67aba727a7a 100644
--- a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-level-sharing-open-object.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-level-sharing-open-object.integration-spec.ts
@@ -21,7 +21,6 @@ import { makeMetadataApiRequest } from 'test/integration/metadata/suites/utils/m
import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';
import { type RecordSharePrincipalInput } from 'src/engine/permissions/record-share/dtos/record-sharing.dto';
-import { RecordSharingMode } from 'src/engine/permissions/record-share/enums/record-sharing-mode.enum';
import { type RecordShareStorageService } from 'src/engine/permissions/record-share/services/record-share-storage.service';
import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';
import { WORKSPACE_MEMBER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/workspace-member-data-seeds.constant';
@@ -32,7 +31,7 @@ const RECORD_ID = randomUUID();
const workspaceId = SEED_APPLE_WORKSPACE_ID;
const JONY = { workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY };
const fields =
- 'sharingMode canManageSharing generalAccessLevel defaultGeneralAccessLevel permissions { canRead canUpdate } shares { principalId rowCause accessLevel }';
+ 'isShareable isPrivate canManageSharing permissions { canRead canUpdate } shares { principalId rowCause accessLevel }';
const READ_SHARING = parse(
`query RecordSharing($target: RecordTargetInput!) { recordSharing(target: $target) { ${fields} } }`,
);
@@ -42,8 +41,8 @@ const SET_SHARE = parse(
const REMOVE_SHARE = parse(
`mutation RemoveShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!) { removeRecordShare(target: $target, principal: $principal) { ${fields} } }`,
);
-const SET_GENERAL_ACCESS = parse(
- `mutation SetGeneralAccess($target: RecordTargetInput!, $accessLevel: RecordShareAccessLevel!) { setRecordGeneralAccess(target: $target, accessLevel: $accessLevel) { ${fields} } }`,
+const SET_PRIVATE = parse(
+ `mutation SetPrivate($target: RecordTargetInput!, $isPrivate: Boolean!) { setRecordPrivate(target: $target, isPrivate: $isPrivate) { ${fields} } }`,
);
describe('Record-level sharing on an object open by default', () => {
@@ -81,14 +80,17 @@ describe('Record-level sharing on an object open by default', () => {
token,
);
- const setGeneralAccess = (
- accessLevel: RecordShareAccessLevel,
+ const setPrivate = ({
+ isPrivate,
token = APPLE_JANE_ADMIN_ACCESS_TOKEN,
- ) =>
+ }: {
+ isPrivate: boolean;
+ token?: string;
+ }) =>
makeMetadataApiRequest(
{
- query: SET_GENERAL_ACCESS,
- variables: { target: target(), accessLevel },
+ query: SET_PRIVATE,
+ variables: { target: target(), isPrivate },
},
token,
);
@@ -161,7 +163,7 @@ describe('Record-level sharing on an object open by default', () => {
});
beforeEach(async () => {
- await setGeneralAccess(RecordShareAccessLevel.READ_WRITE);
+ await setPrivate({ isPrivate: false });
await shares.deleteByRecordIds({
workspaceId,
objectMetadataId,
@@ -199,10 +201,9 @@ describe('Record-level sharing on an object open by default', () => {
expect(response.body.errors).toBeUndefined();
expect(response.body.data.recordSharing).toMatchObject({
- sharingMode: RecordSharingMode.OPEN_BY_DEFAULT,
+ isShareable: true,
canManageSharing: true,
- generalAccessLevel: RecordShareAccessLevel.READ_WRITE,
- defaultGeneralAccessLevel: RecordShareAccessLevel.READ_WRITE,
+ isPrivate: false,
shares: [],
});
expect(
@@ -218,12 +219,11 @@ describe('Record-level sharing on an object open by default', () => {
});
it('should hide a private record from everyone but its creator, with no share row for the creator', async () => {
- const restricted = await setGeneralAccess(RecordShareAccessLevel.NONE);
+ const restricted = await setPrivate({ isPrivate: true });
expect(restricted.body.errors).toBeUndefined();
- expect(restricted.body.data.setRecordGeneralAccess).toMatchObject({
- generalAccessLevel: RecordShareAccessLevel.NONE,
- defaultGeneralAccessLevel: RecordShareAccessLevel.READ_WRITE,
+ expect(restricted.body.data.setRecordPrivate).toMatchObject({
+ isPrivate: true,
shares: [],
});
expect(await findRecordIds(APPLE_JONY_MEMBER_ACCESS_TOKEN)).toEqual([]);
@@ -236,7 +236,7 @@ describe('Record-level sharing on an object open by default', () => {
});
it('should let a grant lift a restriction up to its level', async () => {
- await setGeneralAccess(RecordShareAccessLevel.NONE);
+ await setPrivate({ isPrivate: true });
await setShare({ principal: JONY });
expect(await findRecordIds(APPLE_JONY_MEMBER_ACCESS_TOKEN)).toEqual([
@@ -257,22 +257,12 @@ describe('Record-level sharing on an object open by default', () => {
).toBeUndefined();
});
- it('should refuse a view-only general access, which private records replace', async () => {
- const viewOnly = await setGeneralAccess(RecordShareAccessLevel.READ);
-
- expect(viewOnly.body.errors).toBeDefined();
- expect(
- (await rename('Still editable', APPLE_JONY_MEMBER_ACCESS_TOKEN)).body
- .errors,
- ).toBeUndefined();
- });
-
it('should let a private record follow its roles again', async () => {
- await setGeneralAccess(RecordShareAccessLevel.NONE);
- const reopened = await setGeneralAccess(RecordShareAccessLevel.READ_WRITE);
+ await setPrivate({ isPrivate: true });
+ const reopened = await setPrivate({ isPrivate: false });
- expect(reopened.body.data.setRecordGeneralAccess).toMatchObject({
- generalAccessLevel: RecordShareAccessLevel.READ_WRITE,
+ expect(reopened.body.data.setRecordPrivate).toMatchObject({
+ isPrivate: false,
});
expect(
await shares.findByRecordIds({
@@ -287,10 +277,10 @@ describe('Record-level sharing on an object open by default', () => {
});
it('should keep sharing in the hands of the creator and full access holders', async () => {
- const response = await setGeneralAccess(
- RecordShareAccessLevel.NONE,
- APPLE_JONY_MEMBER_ACCESS_TOKEN,
- );
+ const response = await setPrivate({
+ isPrivate: true,
+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ });
expect(response.body.errors).toBeDefined();
expect(await findRecordIds(APPLE_JONY_MEMBER_ACCESS_TOKEN)).toEqual([
@@ -311,10 +301,10 @@ describe('Record-level sharing on an object open by default', () => {
accessLevel: RecordShareAccessLevel.FULL,
});
- const restricted = await setGeneralAccess(
- RecordShareAccessLevel.NONE,
- APPLE_JONY_MEMBER_ACCESS_TOKEN,
- );
+ const restricted = await setPrivate({
+ isPrivate: true,
+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ });
expect(restricted.body.errors).toBeUndefined();
@@ -333,19 +323,6 @@ describe('Record-level sharing on an object open by default', () => {
).toBe(true);
});
- it('should refuse full access as general access', async () => {
- const response = await setGeneralAccess(RecordShareAccessLevel.FULL);
-
- expect(response.body.errors?.[0]?.extensions?.code).toBe('BAD_USER_INPUT');
- expect(
- await shares.findByRecordIds({
- workspaceId,
- objectMetadataId,
- recordIds: [RECORD_ID],
- }),
- ).toEqual([]);
- });
-
it('should refuse NONE as a granted access level', async () => {
const response = await setShare({
principal: JONY,
@@ -364,7 +341,7 @@ describe('Record-level sharing on an object open by default', () => {
});
it('should keep a record private when a grant is removed', async () => {
- await setGeneralAccess(RecordShareAccessLevel.NONE);
+ await setPrivate({ isPrivate: true });
await setShare({ principal: JONY });
const removed = await makeMetadataApiRequest({
@@ -374,29 +351,24 @@ describe('Record-level sharing on an object open by default', () => {
expect(removed.body.errors).toBeUndefined();
expect(removed.body.data.removeRecordShare).toMatchObject({
- generalAccessLevel: RecordShareAccessLevel.NONE,
+ isPrivate: true,
shares: [],
});
expect(await findRecordIds(APPLE_JONY_MEMBER_ACCESS_TOKEN)).toEqual([]);
});
- it('should leave open objects untouched while the flag is off', async () => {
- await setGeneralAccess(RecordShareAccessLevel.NONE);
+ it('should keep a private record private while record sharing is off', async () => {
+ await setPrivate({ isPrivate: true });
await setRecordSharingEnabled(false);
try {
- expect(await findRecordIds(APPLE_JONY_MEMBER_ACCESS_TOKEN)).toEqual([
- RECORD_ID,
- ]);
+ expect(await findRecordIds(APPLE_JONY_MEMBER_ACCESS_TOKEN)).toEqual([]);
expect((await readSharing()).body.data.recordSharing).toMatchObject({
- sharingMode: RecordSharingMode.ROLE_ONLY,
+ isShareable: false,
canManageSharing: false,
- generalAccessLevel: null,
- defaultGeneralAccessLevel: null,
+ isPrivate: true,
});
- expect(
- (await setGeneralAccess(RecordShareAccessLevel.NONE)).body.errors,
- ).toBeDefined();
+ expect((await setPrivate({ isPrivate: true })).body.errors).toBeDefined();
} finally {
await setRecordSharingEnabled(true);
}
diff --git a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-level-sharing-restricted-record-surfaces.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-level-sharing-restricted-record-surfaces.integration-spec.ts
index 7b943467e86..f5f4f81b50b 100644
--- a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-level-sharing-restricted-record-surfaces.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-level-sharing-restricted-record-surfaces.integration-spec.ts
@@ -39,13 +39,13 @@ const COMPANY_IDS = [RESTRICTED_COMPANY_ID, OPEN_COMPANY_ID];
const PERSON_ID = randomUUID();
const SET_SHARE = parse(
- `mutation SetShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!, $accessLevel: RecordShareAccessLevel!) { setRecordShare(target: $target, principal: $principal, accessLevel: $accessLevel) { generalAccessLevel } }`,
+ `mutation SetShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!, $accessLevel: RecordShareAccessLevel!) { setRecordShare(target: $target, principal: $principal, accessLevel: $accessLevel) { isPrivate } }`,
);
const REMOVE_SHARE = parse(
- `mutation RemoveShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!) { removeRecordShare(target: $target, principal: $principal) { generalAccessLevel } }`,
+ `mutation RemoveShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!) { removeRecordShare(target: $target, principal: $principal) { isPrivate } }`,
);
-const SET_GENERAL_ACCESS = parse(
- `mutation SetGeneralAccess($target: RecordTargetInput!, $accessLevel: RecordShareAccessLevel!) { setRecordGeneralAccess(target: $target, accessLevel: $accessLevel) { generalAccessLevel } }`,
+const SET_PRIVATE = parse(
+ `mutation SetPrivate($target: RecordTargetInput!, $isPrivate: Boolean!) { setRecordPrivate(target: $target, isPrivate: $isPrivate) { isPrivate } }`,
);
const FIND_COMPANIES = parse(
@@ -140,14 +140,10 @@ describe('A restricted record on an object open by default', () => {
companyId: RESTRICTED_COMPANY_ID,
});
- const restricted = await changeSharing(SET_GENERAL_ACCESS, {
- accessLevel: RecordShareAccessLevel.NONE,
- });
+ const restricted = await changeSharing(SET_PRIVATE, { isPrivate: true });
expect(restricted.body.errors).toBeUndefined();
- expect(restricted.body.data.setRecordGeneralAccess.generalAccessLevel).toBe(
- RecordShareAccessLevel.NONE,
- );
+ expect(restricted.body.data.setRecordPrivate.isPrivate).toBe(true);
});
afterAll(async () => {
diff --git a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-sharing-all-records-access.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-sharing-all-records-access.integration-spec.ts
index aac0f39ab1d..29d996d14af 100644
--- a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-sharing-all-records-access.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-sharing-all-records-access.integration-spec.ts
@@ -43,15 +43,15 @@ const RESTRICTED_RECORD_ID = randomUUID();
const SHARED_RECORD_ID = randomUUID();
const workspaceId = SEED_APPLE_WORKSPACE_ID;
const fields =
- 'canManageSharing generalAccessLevel shares { principalId rowCause accessLevel }';
+ 'canManageSharing isPrivate shares { principalId rowCause accessLevel }';
const READ_SHARING = parse(
`query RecordSharing($target: RecordTargetInput!) { recordSharing(target: $target) { ${fields} } }`,
);
const SET_SHARE = parse(
`mutation SetShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!, $accessLevel: RecordShareAccessLevel!) { setRecordShare(target: $target, principal: $principal, accessLevel: $accessLevel) { ${fields} } }`,
);
-const SET_GENERAL_ACCESS = parse(
- `mutation SetGeneralAccess($target: RecordTargetInput!, $accessLevel: RecordShareAccessLevel!) { setRecordGeneralAccess(target: $target, accessLevel: $accessLevel) { ${fields} } }`,
+const SET_PRIVATE = parse(
+ `mutation SetPrivate($target: RecordTargetInput!, $isPrivate: Boolean!) { setRecordPrivate(target: $target, isPrivate: $isPrivate) { ${fields} } }`,
);
describe('Access to all records and ownership transfer', () => {
@@ -190,10 +190,10 @@ describe('Access to all records and ownership transfer', () => {
const restricted = await makeMetadataApiRequest(
{
- query: SET_GENERAL_ACCESS,
+ query: SET_PRIVATE,
variables: {
target: target(recordId),
- accessLevel: RecordShareAccessLevel.NONE,
+ isPrivate: true,
},
},
APPLE_JONY_MEMBER_ACCESS_TOKEN,
@@ -296,12 +296,12 @@ describe('Access to all records and ownership transfer', () => {
}
});
- it('should lift restrictions for everyone while record sharing is off', async () => {
+ it('should keep private records private while record sharing is off', async () => {
await setRecordSharingEnabled(false);
try {
- expect(await findRecordIds(APPLE_PHIL_GUEST_ACCESS_TOKEN)).toEqual(
- [RESTRICTED_RECORD_ID, SHARED_RECORD_ID].sort(),
+ expect(await findRecordIds(APPLE_PHIL_GUEST_ACCESS_TOKEN)).not.toContain(
+ RESTRICTED_RECORD_ID,
);
} finally {
await setRecordSharingEnabled(true);
diff --git a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-sharing-beyond-role.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-sharing-beyond-role.integration-spec.ts
index daa05324437..44d1c690039 100644
--- a/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-sharing-beyond-role.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/object-records-permissions/record-sharing-beyond-role.integration-spec.ts
@@ -44,8 +44,8 @@ const JONY = { workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY };
const SET_SHARE = parse(
`mutation SetShare($target: RecordTargetInput!, $principal: RecordSharePrincipalInput!, $accessLevel: RecordShareAccessLevel!) { setRecordShare(target: $target, principal: $principal, accessLevel: $accessLevel) { canManageSharing } }`,
);
-const SET_GENERAL_ACCESS = parse(
- `mutation SetGeneralAccess($target: RecordTargetInput!, $accessLevel: RecordShareAccessLevel!) { setRecordGeneralAccess(target: $target, accessLevel: $accessLevel) { canManageSharing } }`,
+const SET_PRIVATE = parse(
+ `mutation SetPrivate($target: RecordTargetInput!, $isPrivate: Boolean!) { setRecordPrivate(target: $target, isPrivate: $isPrivate) { canManageSharing } }`,
);
const READ_SHARING = parse(
`query RecordSharing($target: RecordTargetInput!) { recordSharing(target: $target) { canManageSharing permissions { canRead canUpdate canDelete } shares { principalId } } }`,
@@ -85,14 +85,17 @@ describe('Records shared beyond the role that can access their object', () => {
token,
);
- const setGeneralAccess = (
- accessLevel: RecordShareAccessLevel,
+ const setPrivate = ({
+ isPrivate,
token = APPLE_JANE_ADMIN_ACCESS_TOKEN,
- ) =>
+ }: {
+ isPrivate: boolean;
+ token?: string;
+ }) =>
makeMetadataApiRequest(
{
- query: SET_GENERAL_ACCESS,
- variables: { target: target(), accessLevel },
+ query: SET_PRIVATE,
+ variables: { target: target(), isPrivate },
},
token,
);
@@ -253,10 +256,10 @@ describe('Records shared beyond the role that can access their object', () => {
expect(deleted.body.errors).toBeDefined();
expect(
(
- await setGeneralAccess(
- RecordShareAccessLevel.NONE,
- APPLE_JONY_MEMBER_ACCESS_TOKEN,
- )
+ await setPrivate({
+ isPrivate: true,
+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ })
).body.errors,
).toBeDefined();
@@ -272,8 +275,8 @@ describe('Records shared beyond the role that can access their object', () => {
});
});
- it('should not let general access reach beyond the role', async () => {
- const share = await setGeneralAccess(RecordShareAccessLevel.READ_WRITE);
+ it('should not let a record that follows its roles reach beyond the role', async () => {
+ const share = await setPrivate({ isPrivate: false });
expect(share.body.errors).toBeUndefined();
expect(await findIdsAsJony()).toEqual({ errors: undefined, ids: [] });
@@ -288,19 +291,17 @@ describe('Records shared beyond the role that can access their object', () => {
it('should tell owners what the role of each recipient grants on its own', async () => {
await setShare({ principal: JONY });
await setShare({ principal: { roleId: memberRoleId } });
- await setGeneralAccess(RecordShareAccessLevel.NONE);
+ await setPrivate({ isPrivate: true });
const sharing = await makeMetadataApiRequest({
query: parse(
- `query RecordSharing($target: RecordTargetInput!) { recordSharing(target: $target) { generalAccessLevel shares { principalId principalRoleId } roles { id canRead canUpdate } } }`,
+ `query RecordSharing($target: RecordTargetInput!) { recordSharing(target: $target) { isPrivate shares { principalId principalRoleId } roles { id canRead canUpdate } } }`,
),
variables: { target: target() },
});
expect(sharing.body.errors).toBeUndefined();
- expect(sharing.body.data.recordSharing.generalAccessLevel).toBe(
- RecordShareAccessLevel.NONE,
- );
+ expect(sharing.body.data.recordSharing.isPrivate).toBe(true);
expect(sharing.body.data.recordSharing.shares).toEqual(
expect.arrayContaining([
{