mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 22:38:56 +08:00
chore: cleanup legacy logic (#15072)
This commit is contained in:
@@ -2348,7 +2348,6 @@ export const invoicesQuery = {
|
||||
currentUser {
|
||||
invoiceCount
|
||||
invoices(take: $take, skip: $skip) {
|
||||
id
|
||||
status
|
||||
currency
|
||||
amount
|
||||
@@ -2359,7 +2358,6 @@ export const invoicesQuery = {
|
||||
}
|
||||
}
|
||||
}`,
|
||||
deprecations: ["'id' is deprecated: removed"],
|
||||
};
|
||||
|
||||
export const leaveWorkspaceMutation = {
|
||||
@@ -2983,10 +2981,8 @@ export const inviteByEmailsMutation = {
|
||||
inviteMembers(workspaceId: $workspaceId, emails: $emails) {
|
||||
email
|
||||
inviteId
|
||||
sentSuccess
|
||||
}
|
||||
}`,
|
||||
deprecations: ["'sentSuccess' is deprecated: Notification will be sent asynchronously"],
|
||||
};
|
||||
|
||||
export const acceptInviteByInviteIdMutation = {
|
||||
@@ -3023,7 +3019,6 @@ export const workspaceInvoicesQuery = {
|
||||
workspace(id: $workspaceId) {
|
||||
invoiceCount
|
||||
invoices(take: $take, skip: $skip) {
|
||||
id
|
||||
status
|
||||
currency
|
||||
amount
|
||||
@@ -3034,7 +3029,6 @@ export const workspaceInvoicesQuery = {
|
||||
}
|
||||
}
|
||||
}`,
|
||||
deprecations: ["'id' is deprecated: removed"],
|
||||
};
|
||||
|
||||
export const getWorkspaceRolePermissionsQuery = {
|
||||
|
||||
@@ -2,7 +2,6 @@ query invoices($take: Int!, $skip: Int!) {
|
||||
currentUser {
|
||||
invoiceCount
|
||||
invoices(take: $take, skip: $skip) {
|
||||
id
|
||||
status
|
||||
currency
|
||||
amount
|
||||
|
||||
@@ -2,6 +2,5 @@ mutation inviteByEmails($workspaceId: String!, $emails: [String!]!) {
|
||||
inviteMembers(workspaceId: $workspaceId, emails: $emails) {
|
||||
email
|
||||
inviteId
|
||||
sentSuccess
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ query workspaceInvoices($take: Int!, $skip: Int!, $workspaceId: String!) {
|
||||
workspace(id: $workspaceId) {
|
||||
invoiceCount
|
||||
invoices(take: $take, skip: $skip) {
|
||||
id
|
||||
status
|
||||
currency
|
||||
amount
|
||||
|
||||
@@ -1338,9 +1338,7 @@ export interface ExpectToUpdateDocUserRoleDataType {
|
||||
}
|
||||
|
||||
export enum FeatureType {
|
||||
AIEarlyAccess = 'AIEarlyAccess',
|
||||
Admin = 'Admin',
|
||||
EarlyAccess = 'EarlyAccess',
|
||||
FreePlan = 'FreePlan',
|
||||
LifetimeProPlan = 'LifetimeProPlan',
|
||||
ProPlan = 'ProPlan',
|
||||
@@ -1564,11 +1562,6 @@ export interface InviteResult {
|
||||
error: Maybe<Scalars['JSONObject']['output']>;
|
||||
/** Invite id, null if invite record create failed */
|
||||
inviteId: Maybe<Scalars['String']['output']>;
|
||||
/**
|
||||
* Invite email sent success
|
||||
* @deprecated Notification will be sent asynchronously
|
||||
*/
|
||||
sentSuccess: Scalars['Boolean']['output'];
|
||||
}
|
||||
|
||||
export interface InviteUserType {
|
||||
@@ -1617,8 +1610,6 @@ export interface InvoiceType {
|
||||
amount: Scalars['Int']['output'];
|
||||
createdAt: Scalars['DateTime']['output'];
|
||||
currency: Scalars['String']['output'];
|
||||
/** @deprecated removed */
|
||||
id: Maybe<Scalars['String']['output']>;
|
||||
lastPaymentError: Maybe<Scalars['String']['output']>;
|
||||
link: Maybe<Scalars['String']['output']>;
|
||||
/** @deprecated removed */
|
||||
@@ -2273,7 +2264,6 @@ export interface MutationRevokeUserAccessTokenArgs {
|
||||
|
||||
export interface MutationSendChangeEmailArgs {
|
||||
callbackUrl: Scalars['String']['input'];
|
||||
email?: InputMaybe<Scalars['String']['input']>;
|
||||
}
|
||||
|
||||
export interface MutationSendChangePasswordEmailArgs {
|
||||
@@ -3124,7 +3114,6 @@ export interface SubscriptionType {
|
||||
}
|
||||
|
||||
export enum SubscriptionVariant {
|
||||
EA = 'EA',
|
||||
Onetime = 'Onetime',
|
||||
}
|
||||
|
||||
@@ -3396,11 +3385,6 @@ export interface UserType {
|
||||
invoices: Array<InvoiceType>;
|
||||
/** User name */
|
||||
name: Scalars['String']['output'];
|
||||
/**
|
||||
* Get user notification count
|
||||
* @deprecated Use realtime subscription "notification.count.changed" instead.
|
||||
*/
|
||||
notificationCount: Scalars['Int']['output'];
|
||||
/** Get current user notifications */
|
||||
notifications: PaginatedNotificationObjectType;
|
||||
quota: UserQuotaType;
|
||||
@@ -3597,8 +3581,6 @@ export interface WorkspaceQuotaType {
|
||||
name: Scalars['String']['output'];
|
||||
overcapacityMemberCount: Scalars['Int']['output'];
|
||||
storageQuota: Scalars['SafeInt']['output'];
|
||||
/** @deprecated use `usedStorageQuota` instead */
|
||||
usedSize: Scalars['SafeInt']['output'];
|
||||
usedStorageQuota: Scalars['SafeInt']['output'];
|
||||
}
|
||||
|
||||
@@ -6874,7 +6856,6 @@ export type InvoicesQuery = {
|
||||
invoiceCount: number;
|
||||
invoices: Array<{
|
||||
__typename?: 'InvoiceType';
|
||||
id: string | null;
|
||||
status: InvoiceStatus;
|
||||
currency: string;
|
||||
amount: number;
|
||||
@@ -7598,7 +7579,6 @@ export type InviteByEmailsMutation = {
|
||||
__typename?: 'InviteResult';
|
||||
email: string;
|
||||
inviteId: string | null;
|
||||
sentSuccess: boolean;
|
||||
}>;
|
||||
};
|
||||
|
||||
@@ -7648,7 +7628,6 @@ export type WorkspaceInvoicesQuery = {
|
||||
invoiceCount: number;
|
||||
invoices: Array<{
|
||||
__typename?: 'InvoiceType';
|
||||
id: string | null;
|
||||
status: InvoiceStatus;
|
||||
currency: string;
|
||||
amount: number;
|
||||
|
||||
Reference in New Issue
Block a user