mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 10:22:55 +08:00
feat(server): client version check (#9205)
Co-authored-by: forehalo <forehalo@gmail.com>
This commit is contained in:
@@ -426,6 +426,7 @@ export type ErrorDataUnion =
|
||||
| SubscriptionNotExistsDataType
|
||||
| SubscriptionPlanNotFoundDataType
|
||||
| UnknownOauthProviderDataType
|
||||
| UnsupportedClientVersionDataType
|
||||
| UnsupportedSubscriptionPlanDataType
|
||||
| VersionRejectedDataType
|
||||
| WorkspaceMembersExceedLimitToDowngradeDataType
|
||||
@@ -523,6 +524,7 @@ export enum ErrorNames {
|
||||
TOO_MANY_REQUEST = 'TOO_MANY_REQUEST',
|
||||
UNKNOWN_OAUTH_PROVIDER = 'UNKNOWN_OAUTH_PROVIDER',
|
||||
UNSPLASH_IS_NOT_CONFIGURED = 'UNSPLASH_IS_NOT_CONFIGURED',
|
||||
UNSUPPORTED_CLIENT_VERSION = 'UNSUPPORTED_CLIENT_VERSION',
|
||||
UNSUPPORTED_SUBSCRIPTION_PLAN = 'UNSUPPORTED_SUBSCRIPTION_PLAN',
|
||||
USER_AVATAR_NOT_FOUND = 'USER_AVATAR_NOT_FOUND',
|
||||
USER_NOT_FOUND = 'USER_NOT_FOUND',
|
||||
@@ -1534,6 +1536,12 @@ export interface UnknownOauthProviderDataType {
|
||||
name: Scalars['String']['output'];
|
||||
}
|
||||
|
||||
export interface UnsupportedClientVersionDataType {
|
||||
__typename?: 'UnsupportedClientVersionDataType';
|
||||
clientVersion: Scalars['String']['output'];
|
||||
requiredVersion: Scalars['String']['output'];
|
||||
}
|
||||
|
||||
export interface UnsupportedSubscriptionPlanDataType {
|
||||
__typename?: 'UnsupportedSubscriptionPlanDataType';
|
||||
plan: Scalars['String']['output'];
|
||||
|
||||
@@ -7503,6 +7503,13 @@ export function useAFFiNEI18N(): {
|
||||
["error.WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE"](options: {
|
||||
readonly limit: string;
|
||||
}): string;
|
||||
/**
|
||||
* `Unsupported client with version [{{clientVersion}}], required version is [{{requiredVersion}}].`
|
||||
*/
|
||||
["error.UNSUPPORTED_CLIENT_VERSION"](options: Readonly<{
|
||||
clientVersion: string;
|
||||
requiredVersion: string;
|
||||
}>): string;
|
||||
} { const { t } = useTranslation(); return useMemo(() => createProxy((key) => t.bind(null, key)), [t]); }
|
||||
function createComponent(i18nKey: string) {
|
||||
return (props) => createElement(Trans, { i18nKey, shouldUnescape: true, ...props });
|
||||
|
||||
@@ -1843,5 +1843,6 @@
|
||||
"error.LICENSE_NOT_FOUND": "License not found.",
|
||||
"error.INVALID_LICENSE_TO_ACTIVATE": "Invalid license to activate.",
|
||||
"error.INVALID_LICENSE_UPDATE_PARAMS": "Invalid license update params. {{reason}}",
|
||||
"error.WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE": "You cannot downgrade the workspace from team workspace because there are more than {{limit}} members that are currently active."
|
||||
"error.WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE": "You cannot downgrade the workspace from team workspace because there are more than {{limit}} members that are currently active.",
|
||||
"error.UNSUPPORTED_CLIENT_VERSION": "Unsupported client with version [{{clientVersion}}], required version is [{{requiredVersion}}]."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user