fix(server): workspace member permissions and profile onboarding (#19786)
## Summary Aligns **workspace member** editing and **onboarding** with how the product is actually used: profile and other “settings” fields go through **`updateWorkspaceMemberSettings`**, while **`/graphql`** record APIs follow **object-level** permissions for the `workspaceMember` object. ## Product behaviour ### Completing “Create profile” onboarding Users who must create a profile (empty name at sign-up) get `ONBOARDING_CREATE_PROFILE_PENDING` set. The onboarding UI saves the name with **`updateWorkspaceMemberSettings`**, not with a workspace record **`updateOne`**. **Before:** The server only cleared the pending flag on **`workspaceMember.updateOne`**, so the flag could stay set and onboarding appeared stuck. **After:** Clearing the profile step runs when **`updateWorkspaceMemberSettings`** persists an update that includes a **name** (same rules as before: non-empty name parts). Onboarding can advance normally after **Continue** on Create profile. ### Two ways to change workspace member data | Path | Typical use | Who can change what | |------|----------------|---------------------| | **`updateWorkspaceMemberSettings`** (metadata API) | Standard member fields the app treats as “my profile / preferences” (name, avatar-related settings, locale, time zone, etc.) | **Always** your **own** workspace member. Changing **another** member still requires **Workspace members** in role settings (`WORKSPACE_MEMBERS`). Custom fields are **not** allowed on this endpoint (unchanged). | | **`/graphql`** record mutations on **`workspaceMember`** | Custom fields, integrations, anything that goes through the generic record API | **`WorkspaceMember`** is special-cased in permissions: **read** stays **on** for everyone, but **update / create / delete** require **`WORKSPACE_MEMBERS`**, including updating **your own** row via `/graphql`. So a **Member** without that permission cannot fix their name through **`updateWorkspaceMember`**; they use **Settings** / **`updateWorkspaceMemberSettings`** instead. | This matches **`WorkspaceRolesPermissionsCacheService`**: for the workspace member object, `canReadObjectRecords` is always true; `canUpdateObjectRecords` (and delete-related flags) follow **`WORKSPACE_MEMBERS`**. ### Hooks and delete side-effects - Removed **`workspaceMember.updateOne`** pre-query hook and **`WorkspaceMemberPreQueryHookService`**: they duplicated the same rules the permission cache already enforces for `/graphql`. - **`WorkspaceMember.deleteOne`** pre-hook still tells users to remove members via the dedicated flow; the post-hook only runs the **`deleteUserWorkspace`** side-effect when a member row is actually removed—**no** extra settings-permission check there, since only callers that already passed **object** delete permission can remove the row. ## Tests - **`workspace-members.integration-spec.ts`**: clarifies and extends coverage so **`/graphql`** **`updateOne`** is denied for **own** record on a **standard** name field and on a **custom** field when the role lacks **`WORKSPACE_MEMBERS`**. ## Implementation notes - **`OnboardingService.completeOnboardingProfileStepIfNameProvided`** centralises the “clear profile pending if name present” logic; **`UserResolver.updateWorkspaceMemberSettings`** calls it after save, using the typed update payload’s **`name`** (no cast). - **`UserWorkspaceService.updateUserWorkspaceLocaleForUserWorkspace`**: drops a redundant **`coreEntityCacheService.invalidate`**; **`updateWorkspaceMemberSettings`** still invalidates the user-workspace cache after the mutation.
This commit is contained in:
@@ -1266,6 +1266,37 @@ type Analytics {
|
||||
success: Boolean!
|
||||
}
|
||||
|
||||
type ApprovedAccessDomain {
|
||||
id: UUID!
|
||||
domain: String!
|
||||
isValidated: Boolean!
|
||||
createdAt: DateTime!
|
||||
}
|
||||
|
||||
type FileWithSignedUrl {
|
||||
id: UUID!
|
||||
path: String!
|
||||
size: Float!
|
||||
createdAt: DateTime!
|
||||
url: String!
|
||||
}
|
||||
|
||||
type EnterpriseLicenseInfoDTO {
|
||||
isValid: Boolean!
|
||||
licensee: String
|
||||
expiresAt: DateTime
|
||||
subscriptionId: String
|
||||
}
|
||||
|
||||
type EnterpriseSubscriptionStatusDTO {
|
||||
status: String!
|
||||
licensee: String
|
||||
expiresAt: DateTime
|
||||
cancelAt: DateTime
|
||||
currentPeriodEnd: DateTime
|
||||
isCancellationScheduled: Boolean!
|
||||
}
|
||||
|
||||
type BillingSubscriptionSchedulePhaseItem {
|
||||
price: String!
|
||||
quantity: Float
|
||||
@@ -1419,42 +1450,11 @@ type BillingUpdate {
|
||||
billingSubscriptions: [BillingSubscription!]!
|
||||
}
|
||||
|
||||
type EnterpriseLicenseInfoDTO {
|
||||
isValid: Boolean!
|
||||
licensee: String
|
||||
expiresAt: DateTime
|
||||
subscriptionId: String
|
||||
}
|
||||
|
||||
type EnterpriseSubscriptionStatusDTO {
|
||||
status: String!
|
||||
licensee: String
|
||||
expiresAt: DateTime
|
||||
cancelAt: DateTime
|
||||
currentPeriodEnd: DateTime
|
||||
isCancellationScheduled: Boolean!
|
||||
}
|
||||
|
||||
type OnboardingStepSuccess {
|
||||
"""Boolean that confirms query was dispatched"""
|
||||
success: Boolean!
|
||||
}
|
||||
|
||||
type ApprovedAccessDomain {
|
||||
id: UUID!
|
||||
domain: String!
|
||||
isValidated: Boolean!
|
||||
createdAt: DateTime!
|
||||
}
|
||||
|
||||
type FileWithSignedUrl {
|
||||
id: UUID!
|
||||
path: String!
|
||||
size: Float!
|
||||
createdAt: DateTime!
|
||||
url: String!
|
||||
}
|
||||
|
||||
type WorkspaceInvitation {
|
||||
id: UUID!
|
||||
email: String!
|
||||
|
||||
@@ -989,6 +989,41 @@ export interface Analytics {
|
||||
__typename: 'Analytics'
|
||||
}
|
||||
|
||||
export interface ApprovedAccessDomain {
|
||||
id: Scalars['UUID']
|
||||
domain: Scalars['String']
|
||||
isValidated: Scalars['Boolean']
|
||||
createdAt: Scalars['DateTime']
|
||||
__typename: 'ApprovedAccessDomain'
|
||||
}
|
||||
|
||||
export interface FileWithSignedUrl {
|
||||
id: Scalars['UUID']
|
||||
path: Scalars['String']
|
||||
size: Scalars['Float']
|
||||
createdAt: Scalars['DateTime']
|
||||
url: Scalars['String']
|
||||
__typename: 'FileWithSignedUrl'
|
||||
}
|
||||
|
||||
export interface EnterpriseLicenseInfoDTO {
|
||||
isValid: Scalars['Boolean']
|
||||
licensee?: Scalars['String']
|
||||
expiresAt?: Scalars['DateTime']
|
||||
subscriptionId?: Scalars['String']
|
||||
__typename: 'EnterpriseLicenseInfoDTO'
|
||||
}
|
||||
|
||||
export interface EnterpriseSubscriptionStatusDTO {
|
||||
status: Scalars['String']
|
||||
licensee?: Scalars['String']
|
||||
expiresAt?: Scalars['DateTime']
|
||||
cancelAt?: Scalars['DateTime']
|
||||
currentPeriodEnd?: Scalars['DateTime']
|
||||
isCancellationScheduled: Scalars['Boolean']
|
||||
__typename: 'EnterpriseSubscriptionStatusDTO'
|
||||
}
|
||||
|
||||
export interface BillingSubscriptionSchedulePhaseItem {
|
||||
price: Scalars['String']
|
||||
quantity?: Scalars['Float']
|
||||
@@ -1134,47 +1169,12 @@ export interface BillingUpdate {
|
||||
__typename: 'BillingUpdate'
|
||||
}
|
||||
|
||||
export interface EnterpriseLicenseInfoDTO {
|
||||
isValid: Scalars['Boolean']
|
||||
licensee?: Scalars['String']
|
||||
expiresAt?: Scalars['DateTime']
|
||||
subscriptionId?: Scalars['String']
|
||||
__typename: 'EnterpriseLicenseInfoDTO'
|
||||
}
|
||||
|
||||
export interface EnterpriseSubscriptionStatusDTO {
|
||||
status: Scalars['String']
|
||||
licensee?: Scalars['String']
|
||||
expiresAt?: Scalars['DateTime']
|
||||
cancelAt?: Scalars['DateTime']
|
||||
currentPeriodEnd?: Scalars['DateTime']
|
||||
isCancellationScheduled: Scalars['Boolean']
|
||||
__typename: 'EnterpriseSubscriptionStatusDTO'
|
||||
}
|
||||
|
||||
export interface OnboardingStepSuccess {
|
||||
/** Boolean that confirms query was dispatched */
|
||||
success: Scalars['Boolean']
|
||||
__typename: 'OnboardingStepSuccess'
|
||||
}
|
||||
|
||||
export interface ApprovedAccessDomain {
|
||||
id: Scalars['UUID']
|
||||
domain: Scalars['String']
|
||||
isValidated: Scalars['Boolean']
|
||||
createdAt: Scalars['DateTime']
|
||||
__typename: 'ApprovedAccessDomain'
|
||||
}
|
||||
|
||||
export interface FileWithSignedUrl {
|
||||
id: Scalars['UUID']
|
||||
path: Scalars['String']
|
||||
size: Scalars['Float']
|
||||
createdAt: Scalars['DateTime']
|
||||
url: Scalars['String']
|
||||
__typename: 'FileWithSignedUrl'
|
||||
}
|
||||
|
||||
export interface WorkspaceInvitation {
|
||||
id: Scalars['UUID']
|
||||
email: Scalars['String']
|
||||
@@ -4239,6 +4239,45 @@ export interface AnalyticsGenqlSelection{
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface ApprovedAccessDomainGenqlSelection{
|
||||
id?: boolean | number
|
||||
domain?: boolean | number
|
||||
isValidated?: boolean | number
|
||||
createdAt?: boolean | number
|
||||
__typename?: boolean | number
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface FileWithSignedUrlGenqlSelection{
|
||||
id?: boolean | number
|
||||
path?: boolean | number
|
||||
size?: boolean | number
|
||||
createdAt?: boolean | number
|
||||
url?: boolean | number
|
||||
__typename?: boolean | number
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface EnterpriseLicenseInfoDTOGenqlSelection{
|
||||
isValid?: boolean | number
|
||||
licensee?: boolean | number
|
||||
expiresAt?: boolean | number
|
||||
subscriptionId?: boolean | number
|
||||
__typename?: boolean | number
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface EnterpriseSubscriptionStatusDTOGenqlSelection{
|
||||
status?: boolean | number
|
||||
licensee?: boolean | number
|
||||
expiresAt?: boolean | number
|
||||
cancelAt?: boolean | number
|
||||
currentPeriodEnd?: boolean | number
|
||||
isCancellationScheduled?: boolean | number
|
||||
__typename?: boolean | number
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface BillingSubscriptionSchedulePhaseItemGenqlSelection{
|
||||
price?: boolean | number
|
||||
quantity?: boolean | number
|
||||
@@ -4386,26 +4425,6 @@ export interface BillingUpdateGenqlSelection{
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface EnterpriseLicenseInfoDTOGenqlSelection{
|
||||
isValid?: boolean | number
|
||||
licensee?: boolean | number
|
||||
expiresAt?: boolean | number
|
||||
subscriptionId?: boolean | number
|
||||
__typename?: boolean | number
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface EnterpriseSubscriptionStatusDTOGenqlSelection{
|
||||
status?: boolean | number
|
||||
licensee?: boolean | number
|
||||
expiresAt?: boolean | number
|
||||
cancelAt?: boolean | number
|
||||
currentPeriodEnd?: boolean | number
|
||||
isCancellationScheduled?: boolean | number
|
||||
__typename?: boolean | number
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface OnboardingStepSuccessGenqlSelection{
|
||||
/** Boolean that confirms query was dispatched */
|
||||
success?: boolean | number
|
||||
@@ -4413,25 +4432,6 @@ export interface OnboardingStepSuccessGenqlSelection{
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface ApprovedAccessDomainGenqlSelection{
|
||||
id?: boolean | number
|
||||
domain?: boolean | number
|
||||
isValidated?: boolean | number
|
||||
createdAt?: boolean | number
|
||||
__typename?: boolean | number
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface FileWithSignedUrlGenqlSelection{
|
||||
id?: boolean | number
|
||||
path?: boolean | number
|
||||
size?: boolean | number
|
||||
createdAt?: boolean | number
|
||||
url?: boolean | number
|
||||
__typename?: boolean | number
|
||||
__scalar?: boolean | number
|
||||
}
|
||||
|
||||
export interface WorkspaceInvitationGenqlSelection{
|
||||
id?: boolean | number
|
||||
email?: boolean | number
|
||||
@@ -7493,6 +7493,38 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
|
||||
|
||||
|
||||
|
||||
const ApprovedAccessDomain_possibleTypes: string[] = ['ApprovedAccessDomain']
|
||||
export const isApprovedAccessDomain = (obj?: { __typename?: any } | null): obj is ApprovedAccessDomain => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isApprovedAccessDomain"')
|
||||
return ApprovedAccessDomain_possibleTypes.includes(obj.__typename)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const FileWithSignedUrl_possibleTypes: string[] = ['FileWithSignedUrl']
|
||||
export const isFileWithSignedUrl = (obj?: { __typename?: any } | null): obj is FileWithSignedUrl => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isFileWithSignedUrl"')
|
||||
return FileWithSignedUrl_possibleTypes.includes(obj.__typename)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const EnterpriseLicenseInfoDTO_possibleTypes: string[] = ['EnterpriseLicenseInfoDTO']
|
||||
export const isEnterpriseLicenseInfoDTO = (obj?: { __typename?: any } | null): obj is EnterpriseLicenseInfoDTO => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isEnterpriseLicenseInfoDTO"')
|
||||
return EnterpriseLicenseInfoDTO_possibleTypes.includes(obj.__typename)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const EnterpriseSubscriptionStatusDTO_possibleTypes: string[] = ['EnterpriseSubscriptionStatusDTO']
|
||||
export const isEnterpriseSubscriptionStatusDTO = (obj?: { __typename?: any } | null): obj is EnterpriseSubscriptionStatusDTO => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isEnterpriseSubscriptionStatusDTO"')
|
||||
return EnterpriseSubscriptionStatusDTO_possibleTypes.includes(obj.__typename)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const BillingSubscriptionSchedulePhaseItem_possibleTypes: string[] = ['BillingSubscriptionSchedulePhaseItem']
|
||||
export const isBillingSubscriptionSchedulePhaseItem = (obj?: { __typename?: any } | null): obj is BillingSubscriptionSchedulePhaseItem => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isBillingSubscriptionSchedulePhaseItem"')
|
||||
@@ -7621,22 +7653,6 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
|
||||
|
||||
|
||||
|
||||
const EnterpriseLicenseInfoDTO_possibleTypes: string[] = ['EnterpriseLicenseInfoDTO']
|
||||
export const isEnterpriseLicenseInfoDTO = (obj?: { __typename?: any } | null): obj is EnterpriseLicenseInfoDTO => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isEnterpriseLicenseInfoDTO"')
|
||||
return EnterpriseLicenseInfoDTO_possibleTypes.includes(obj.__typename)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const EnterpriseSubscriptionStatusDTO_possibleTypes: string[] = ['EnterpriseSubscriptionStatusDTO']
|
||||
export const isEnterpriseSubscriptionStatusDTO = (obj?: { __typename?: any } | null): obj is EnterpriseSubscriptionStatusDTO => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isEnterpriseSubscriptionStatusDTO"')
|
||||
return EnterpriseSubscriptionStatusDTO_possibleTypes.includes(obj.__typename)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const OnboardingStepSuccess_possibleTypes: string[] = ['OnboardingStepSuccess']
|
||||
export const isOnboardingStepSuccess = (obj?: { __typename?: any } | null): obj is OnboardingStepSuccess => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isOnboardingStepSuccess"')
|
||||
@@ -7645,22 +7661,6 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
|
||||
|
||||
|
||||
|
||||
const ApprovedAccessDomain_possibleTypes: string[] = ['ApprovedAccessDomain']
|
||||
export const isApprovedAccessDomain = (obj?: { __typename?: any } | null): obj is ApprovedAccessDomain => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isApprovedAccessDomain"')
|
||||
return ApprovedAccessDomain_possibleTypes.includes(obj.__typename)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const FileWithSignedUrl_possibleTypes: string[] = ['FileWithSignedUrl']
|
||||
export const isFileWithSignedUrl = (obj?: { __typename?: any } | null): obj is FileWithSignedUrl => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isFileWithSignedUrl"')
|
||||
return FileWithSignedUrl_possibleTypes.includes(obj.__typename)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const WorkspaceInvitation_possibleTypes: string[] = ['WorkspaceInvitation']
|
||||
export const isWorkspaceInvitation = (obj?: { __typename?: any } | null): obj is WorkspaceInvitation => {
|
||||
if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceInvitation"')
|
||||
|
||||
@@ -39,11 +39,11 @@ export default {
|
||||
95,
|
||||
101,
|
||||
115,
|
||||
120,
|
||||
121,
|
||||
122,
|
||||
124,
|
||||
132,
|
||||
125,
|
||||
126,
|
||||
128,
|
||||
136,
|
||||
147,
|
||||
150,
|
||||
152,
|
||||
@@ -105,13 +105,13 @@ export default {
|
||||
1
|
||||
],
|
||||
"metadata": [
|
||||
119
|
||||
123
|
||||
],
|
||||
"on_BillingLicensedProduct": [
|
||||
128
|
||||
132
|
||||
],
|
||||
"on_BillingMeteredProduct": [
|
||||
129
|
||||
133
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
@@ -1700,10 +1700,10 @@ export default {
|
||||
157
|
||||
],
|
||||
"billingSubscriptions": [
|
||||
131
|
||||
135
|
||||
],
|
||||
"currentBillingSubscription": [
|
||||
131
|
||||
135
|
||||
],
|
||||
"billingEntitlements": [
|
||||
253
|
||||
@@ -2621,259 +2621,36 @@ export default {
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSubscriptionSchedulePhaseItem": {
|
||||
"price": [
|
||||
1
|
||||
],
|
||||
"quantity": [
|
||||
11
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSubscriptionSchedulePhase": {
|
||||
"start_date": [
|
||||
11
|
||||
],
|
||||
"end_date": [
|
||||
11
|
||||
],
|
||||
"items": [
|
||||
117
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingProductMetadata": {
|
||||
"planKey": [
|
||||
120
|
||||
],
|
||||
"priceUsageBased": [
|
||||
121
|
||||
],
|
||||
"productKey": [
|
||||
122
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingPlanKey": {},
|
||||
"BillingUsageType": {},
|
||||
"BillingProductKey": {},
|
||||
"BillingPriceLicensed": {
|
||||
"recurringInterval": [
|
||||
124
|
||||
],
|
||||
"unitAmount": [
|
||||
11
|
||||
],
|
||||
"stripePriceId": [
|
||||
1
|
||||
],
|
||||
"priceUsageType": [
|
||||
121
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"SubscriptionInterval": {},
|
||||
"BillingPriceTier": {
|
||||
"upTo": [
|
||||
11
|
||||
],
|
||||
"flatAmount": [
|
||||
11
|
||||
],
|
||||
"unitAmount": [
|
||||
11
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingPriceMetered": {
|
||||
"tiers": [
|
||||
125
|
||||
],
|
||||
"recurringInterval": [
|
||||
124
|
||||
],
|
||||
"stripePriceId": [
|
||||
1
|
||||
],
|
||||
"priceUsageType": [
|
||||
121
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingProduct": {
|
||||
"name": [
|
||||
1
|
||||
],
|
||||
"description": [
|
||||
1
|
||||
],
|
||||
"images": [
|
||||
1
|
||||
],
|
||||
"metadata": [
|
||||
119
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingLicensedProduct": {
|
||||
"name": [
|
||||
1
|
||||
],
|
||||
"description": [
|
||||
1
|
||||
],
|
||||
"images": [
|
||||
1
|
||||
],
|
||||
"metadata": [
|
||||
119
|
||||
],
|
||||
"prices": [
|
||||
123
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingMeteredProduct": {
|
||||
"name": [
|
||||
1
|
||||
],
|
||||
"description": [
|
||||
1
|
||||
],
|
||||
"images": [
|
||||
1
|
||||
],
|
||||
"metadata": [
|
||||
119
|
||||
],
|
||||
"prices": [
|
||||
126
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSubscriptionItem": {
|
||||
"ApprovedAccessDomain": {
|
||||
"id": [
|
||||
3
|
||||
],
|
||||
"hasReachedCurrentPeriodCap": [
|
||||
6
|
||||
],
|
||||
"quantity": [
|
||||
11
|
||||
],
|
||||
"stripePriceId": [
|
||||
"domain": [
|
||||
1
|
||||
],
|
||||
"billingProduct": [
|
||||
0
|
||||
"isValidated": [
|
||||
6
|
||||
],
|
||||
"createdAt": [
|
||||
4
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSubscription": {
|
||||
"FileWithSignedUrl": {
|
||||
"id": [
|
||||
3
|
||||
],
|
||||
"status": [
|
||||
132
|
||||
"path": [
|
||||
1
|
||||
],
|
||||
"interval": [
|
||||
124
|
||||
"size": [
|
||||
11
|
||||
],
|
||||
"billingSubscriptionItems": [
|
||||
130
|
||||
],
|
||||
"currentPeriodEnd": [
|
||||
"createdAt": [
|
||||
4
|
||||
],
|
||||
"metadata": [
|
||||
15
|
||||
],
|
||||
"phases": [
|
||||
118
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"SubscriptionStatus": {},
|
||||
"BillingEndTrialPeriod": {
|
||||
"status": [
|
||||
132
|
||||
],
|
||||
"hasPaymentMethod": [
|
||||
6
|
||||
],
|
||||
"billingPortalUrl": [
|
||||
1
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingMeteredProductUsage": {
|
||||
"productKey": [
|
||||
122
|
||||
],
|
||||
"periodStart": [
|
||||
4
|
||||
],
|
||||
"periodEnd": [
|
||||
4
|
||||
],
|
||||
"usedCredits": [
|
||||
11
|
||||
],
|
||||
"grantedCredits": [
|
||||
11
|
||||
],
|
||||
"rolloverCredits": [
|
||||
11
|
||||
],
|
||||
"totalGrantedCredits": [
|
||||
11
|
||||
],
|
||||
"unitPriceCents": [
|
||||
11
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingPlan": {
|
||||
"planKey": [
|
||||
120
|
||||
],
|
||||
"licensedProducts": [
|
||||
128
|
||||
],
|
||||
"meteredProducts": [
|
||||
129
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSession": {
|
||||
"url": [
|
||||
1
|
||||
],
|
||||
@@ -2881,17 +2658,6 @@ export default {
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingUpdate": {
|
||||
"currentBillingSubscription": [
|
||||
131
|
||||
],
|
||||
"billingSubscriptions": [
|
||||
131
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"EnterpriseLicenseInfoDTO": {
|
||||
"isValid": [
|
||||
6
|
||||
@@ -2932,6 +2698,277 @@ export default {
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSubscriptionSchedulePhaseItem": {
|
||||
"price": [
|
||||
1
|
||||
],
|
||||
"quantity": [
|
||||
11
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSubscriptionSchedulePhase": {
|
||||
"start_date": [
|
||||
11
|
||||
],
|
||||
"end_date": [
|
||||
11
|
||||
],
|
||||
"items": [
|
||||
121
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingProductMetadata": {
|
||||
"planKey": [
|
||||
124
|
||||
],
|
||||
"priceUsageBased": [
|
||||
125
|
||||
],
|
||||
"productKey": [
|
||||
126
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingPlanKey": {},
|
||||
"BillingUsageType": {},
|
||||
"BillingProductKey": {},
|
||||
"BillingPriceLicensed": {
|
||||
"recurringInterval": [
|
||||
128
|
||||
],
|
||||
"unitAmount": [
|
||||
11
|
||||
],
|
||||
"stripePriceId": [
|
||||
1
|
||||
],
|
||||
"priceUsageType": [
|
||||
125
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"SubscriptionInterval": {},
|
||||
"BillingPriceTier": {
|
||||
"upTo": [
|
||||
11
|
||||
],
|
||||
"flatAmount": [
|
||||
11
|
||||
],
|
||||
"unitAmount": [
|
||||
11
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingPriceMetered": {
|
||||
"tiers": [
|
||||
129
|
||||
],
|
||||
"recurringInterval": [
|
||||
128
|
||||
],
|
||||
"stripePriceId": [
|
||||
1
|
||||
],
|
||||
"priceUsageType": [
|
||||
125
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingProduct": {
|
||||
"name": [
|
||||
1
|
||||
],
|
||||
"description": [
|
||||
1
|
||||
],
|
||||
"images": [
|
||||
1
|
||||
],
|
||||
"metadata": [
|
||||
123
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingLicensedProduct": {
|
||||
"name": [
|
||||
1
|
||||
],
|
||||
"description": [
|
||||
1
|
||||
],
|
||||
"images": [
|
||||
1
|
||||
],
|
||||
"metadata": [
|
||||
123
|
||||
],
|
||||
"prices": [
|
||||
127
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingMeteredProduct": {
|
||||
"name": [
|
||||
1
|
||||
],
|
||||
"description": [
|
||||
1
|
||||
],
|
||||
"images": [
|
||||
1
|
||||
],
|
||||
"metadata": [
|
||||
123
|
||||
],
|
||||
"prices": [
|
||||
130
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSubscriptionItem": {
|
||||
"id": [
|
||||
3
|
||||
],
|
||||
"hasReachedCurrentPeriodCap": [
|
||||
6
|
||||
],
|
||||
"quantity": [
|
||||
11
|
||||
],
|
||||
"stripePriceId": [
|
||||
1
|
||||
],
|
||||
"billingProduct": [
|
||||
0
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSubscription": {
|
||||
"id": [
|
||||
3
|
||||
],
|
||||
"status": [
|
||||
136
|
||||
],
|
||||
"interval": [
|
||||
128
|
||||
],
|
||||
"billingSubscriptionItems": [
|
||||
134
|
||||
],
|
||||
"currentPeriodEnd": [
|
||||
4
|
||||
],
|
||||
"metadata": [
|
||||
15
|
||||
],
|
||||
"phases": [
|
||||
122
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"SubscriptionStatus": {},
|
||||
"BillingEndTrialPeriod": {
|
||||
"status": [
|
||||
136
|
||||
],
|
||||
"hasPaymentMethod": [
|
||||
6
|
||||
],
|
||||
"billingPortalUrl": [
|
||||
1
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingMeteredProductUsage": {
|
||||
"productKey": [
|
||||
126
|
||||
],
|
||||
"periodStart": [
|
||||
4
|
||||
],
|
||||
"periodEnd": [
|
||||
4
|
||||
],
|
||||
"usedCredits": [
|
||||
11
|
||||
],
|
||||
"grantedCredits": [
|
||||
11
|
||||
],
|
||||
"rolloverCredits": [
|
||||
11
|
||||
],
|
||||
"totalGrantedCredits": [
|
||||
11
|
||||
],
|
||||
"unitPriceCents": [
|
||||
11
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingPlan": {
|
||||
"planKey": [
|
||||
124
|
||||
],
|
||||
"licensedProducts": [
|
||||
132
|
||||
],
|
||||
"meteredProducts": [
|
||||
133
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingSession": {
|
||||
"url": [
|
||||
1
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"BillingUpdate": {
|
||||
"currentBillingSubscription": [
|
||||
135
|
||||
],
|
||||
"billingSubscriptions": [
|
||||
135
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"OnboardingStepSuccess": {
|
||||
"success": [
|
||||
6
|
||||
@@ -2940,43 +2977,6 @@ export default {
|
||||
1
|
||||
]
|
||||
},
|
||||
"ApprovedAccessDomain": {
|
||||
"id": [
|
||||
3
|
||||
],
|
||||
"domain": [
|
||||
1
|
||||
],
|
||||
"isValidated": [
|
||||
6
|
||||
],
|
||||
"createdAt": [
|
||||
4
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"FileWithSignedUrl": {
|
||||
"id": [
|
||||
3
|
||||
],
|
||||
"path": [
|
||||
1
|
||||
],
|
||||
"size": [
|
||||
11
|
||||
],
|
||||
"createdAt": [
|
||||
4
|
||||
],
|
||||
"url": [
|
||||
1
|
||||
],
|
||||
"__typename": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"WorkspaceInvitation": {
|
||||
"id": [
|
||||
3
|
||||
@@ -6481,10 +6481,10 @@ export default {
|
||||
}
|
||||
],
|
||||
"enterpriseSubscriptionStatus": [
|
||||
139
|
||||
120
|
||||
],
|
||||
"billingPortalSession": [
|
||||
136,
|
||||
140,
|
||||
{
|
||||
"returnUrlPath": [
|
||||
1
|
||||
@@ -6492,16 +6492,16 @@ export default {
|
||||
}
|
||||
],
|
||||
"listPlans": [
|
||||
135
|
||||
139
|
||||
],
|
||||
"getMeteredProductsUsage": [
|
||||
134
|
||||
138
|
||||
],
|
||||
"findWorkspaceInvitations": [
|
||||
143
|
||||
],
|
||||
"getApprovedAccessDomains": [
|
||||
141
|
||||
117
|
||||
],
|
||||
"getPageLayoutTabs": [
|
||||
113,
|
||||
@@ -7533,7 +7533,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"uploadEmailAttachmentFile": [
|
||||
142,
|
||||
118,
|
||||
{
|
||||
"file": [
|
||||
388,
|
||||
@@ -7542,7 +7542,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"uploadAIChatFile": [
|
||||
142,
|
||||
118,
|
||||
{
|
||||
"file": [
|
||||
388,
|
||||
@@ -7551,7 +7551,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"uploadWorkflowFile": [
|
||||
142,
|
||||
118,
|
||||
{
|
||||
"file": [
|
||||
388,
|
||||
@@ -7560,7 +7560,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"uploadWorkspaceLogo": [
|
||||
142,
|
||||
118,
|
||||
{
|
||||
"file": [
|
||||
388,
|
||||
@@ -7569,7 +7569,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"uploadWorkspaceMemberProfilePicture": [
|
||||
142,
|
||||
118,
|
||||
{
|
||||
"file": [
|
||||
388,
|
||||
@@ -7578,7 +7578,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"uploadFilesFieldFile": [
|
||||
142,
|
||||
118,
|
||||
{
|
||||
"file": [
|
||||
388,
|
||||
@@ -7591,7 +7591,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"uploadFilesFieldFileByUniversalIdentifier": [
|
||||
142,
|
||||
118,
|
||||
{
|
||||
"file": [
|
||||
388,
|
||||
@@ -7936,7 +7936,7 @@ export default {
|
||||
6
|
||||
],
|
||||
"setEnterpriseKey": [
|
||||
138,
|
||||
119,
|
||||
{
|
||||
"enterpriseKey": [
|
||||
1,
|
||||
@@ -7945,20 +7945,20 @@ export default {
|
||||
}
|
||||
],
|
||||
"skipSyncEmailOnboardingStep": [
|
||||
140
|
||||
142
|
||||
],
|
||||
"skipBookOnboardingStep": [
|
||||
140
|
||||
142
|
||||
],
|
||||
"checkoutSession": [
|
||||
136,
|
||||
140,
|
||||
{
|
||||
"recurringInterval": [
|
||||
124,
|
||||
128,
|
||||
"SubscriptionInterval!"
|
||||
],
|
||||
"plan": [
|
||||
120,
|
||||
124,
|
||||
"BillingPlanKey!"
|
||||
],
|
||||
"requirePaymentMethod": [
|
||||
@@ -7971,19 +7971,19 @@ export default {
|
||||
}
|
||||
],
|
||||
"switchSubscriptionInterval": [
|
||||
137
|
||||
141
|
||||
],
|
||||
"switchBillingPlan": [
|
||||
137
|
||||
141
|
||||
],
|
||||
"cancelSwitchBillingPlan": [
|
||||
137
|
||||
141
|
||||
],
|
||||
"cancelSwitchBillingInterval": [
|
||||
137
|
||||
141
|
||||
],
|
||||
"setMeteredSubscriptionPrice": [
|
||||
137,
|
||||
141,
|
||||
{
|
||||
"priceId": [
|
||||
1,
|
||||
@@ -7992,10 +7992,10 @@ export default {
|
||||
}
|
||||
],
|
||||
"endSubscriptionTrialPeriod": [
|
||||
133
|
||||
137
|
||||
],
|
||||
"cancelSwitchMeteredPrice": [
|
||||
137
|
||||
141
|
||||
],
|
||||
"deleteWorkspaceInvitation": [
|
||||
1,
|
||||
@@ -8028,7 +8028,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"createApprovedAccessDomain": [
|
||||
141,
|
||||
117,
|
||||
{
|
||||
"input": [
|
||||
420,
|
||||
@@ -8046,7 +8046,7 @@ export default {
|
||||
}
|
||||
],
|
||||
"validateApprovedAccessDomain": [
|
||||
141,
|
||||
117,
|
||||
{
|
||||
"input": [
|
||||
422,
|
||||
|
||||
Reference in New Issue
Block a user