feat: move ssoenabled to a boolean flag rather than ids

This commit is contained in:
Eli Bosley
2025-01-21 11:13:08 -05:00
parent 428ad15ec7
commit 6f5edb2406
8 changed files with 67 additions and 43 deletions

View File

@@ -1,7 +1,8 @@
import type { Config, PartialCloudFragment } from '~/composables/gql/graphql';
import type { ActivationCodeData } from '~/store/activationCode';
import type { Theme } from '~/store/theme';
import type { UserProfileLink } from '~/types/userProfile';
import type { ActivationCodeData } from '~/store/activationCode';
export type ServerState = 'BASIC'
| 'PLUS'
@@ -108,6 +109,7 @@ export interface Server {
regExp?: number;
regUpdatesExpired?: boolean;
site?: string;
ssoEnabled?: boolean;
state?: ServerState;
theme?: Theme | undefined;
updateOsIgnoredReleases?: string[];
@@ -117,7 +119,6 @@ export interface Server {
username?: string;
wanFQDN?: string;
wanIp?: string;
ssoSubIds?: string;
}
export interface ServerAccountCallbackSendPayload {
@@ -196,4 +197,4 @@ export interface ServerStateData {
message: string;
error?: ServerStateDataError | boolean;
withKey?: boolean; // @todo potentially remove
}
}