mirror of
https://github.com/unraid/api.git
synced 2026-02-23 17:49:35 -06:00
feat: fix codegen
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[api]
|
||||
version="3.2.3+0f03c5ea"
|
||||
version="3.2.3+f3d357e6"
|
||||
[local]
|
||||
[notifier]
|
||||
apikey="unnotify_30994bfaccf839c65bae75f7fa12dd5ee16e69389f754c3b98ed7d5"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[api]
|
||||
version="3.2.3+0f03c5ea"
|
||||
version="3.2.3+f3d357e6"
|
||||
[local]
|
||||
[notifier]
|
||||
apikey="unnotify_30994bfaccf839c65bae75f7fa12dd5ee16e69389f754c3b98ed7d5"
|
||||
@@ -19,4 +19,4 @@ allowedOrigins=""
|
||||
[upc]
|
||||
apikey="unupc_fab6ff6ffe51040595c6d9ffb63a353ba16cc2ad7d93f813a2e80a5810"
|
||||
[connectionStatus]
|
||||
minigraph="PRE_INIT"
|
||||
minigraph="ERROR_RETRYING"
|
||||
|
||||
@@ -1000,7 +1000,7 @@ export function VarsSchema(): z.ZodObject<Properties<Vars>> {
|
||||
regTm: z.string().nullish(),
|
||||
regTm2: z.string().nullish(),
|
||||
regTo: z.string().nullish(),
|
||||
regTy: registrationTypeSchema.nullish(),
|
||||
regTy: z.string().nullish(),
|
||||
safeMode: z.boolean().nullish(),
|
||||
sbClean: z.boolean().nullish(),
|
||||
sbEvents: z.number().nullish(),
|
||||
|
||||
@@ -1408,7 +1408,7 @@ export type Vars = {
|
||||
regTm2?: Maybe<Scalars['String']['output']>;
|
||||
/** Registration owner */
|
||||
regTo?: Maybe<Scalars['String']['output']>;
|
||||
regTy?: Maybe<registrationType>;
|
||||
regTy?: Maybe<Scalars['String']['output']>;
|
||||
safeMode?: Maybe<Scalars['Boolean']['output']>;
|
||||
sbClean?: Maybe<Scalars['Boolean']['output']>;
|
||||
sbEvents?: Maybe<Scalars['Int']['output']>;
|
||||
@@ -2803,7 +2803,7 @@ export type VarsResolvers<ContextType = Context, ParentType extends ResolversPar
|
||||
regTm?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
||||
regTm2?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
||||
regTo?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
||||
regTy?: Resolver<Maybe<ResolversTypes['registrationType']>, ParentType, ContextType>;
|
||||
regTy?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
||||
safeMode?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
||||
sbClean?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
||||
sbEvents?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
||||
|
||||
@@ -271,12 +271,18 @@ export type DashboardVars = {
|
||||
flashGuid?: Maybe<Scalars['String']['output']>;
|
||||
regState?: Maybe<Scalars['String']['output']>;
|
||||
regTy?: Maybe<Scalars['String']['output']>;
|
||||
serverDescription?: Maybe<Scalars['String']['output']>;
|
||||
serverName?: Maybe<Scalars['String']['output']>;
|
||||
};
|
||||
|
||||
export type DashboardVarsInput = {
|
||||
flashGuid: Scalars['String']['input'];
|
||||
regState: Scalars['String']['input'];
|
||||
regTy: Scalars['String']['input'];
|
||||
/** Server description */
|
||||
serverDescription?: InputMaybe<Scalars['String']['input']>;
|
||||
/** Name of the server */
|
||||
serverName?: InputMaybe<Scalars['String']['input']>;
|
||||
};
|
||||
|
||||
export type DashboardVersions = {
|
||||
@@ -347,7 +353,7 @@ export type KsServerDetails = {
|
||||
flashVendor: Scalars['String']['output'];
|
||||
guid: Scalars['String']['output'];
|
||||
ipsId: Scalars['String']['output'];
|
||||
keyType: KeyType;
|
||||
keyType?: Maybe<Scalars['String']['output']>;
|
||||
licenseKey: Scalars['String']['output'];
|
||||
name: Scalars['String']['output'];
|
||||
plgVersion?: Maybe<Scalars['String']['output']>;
|
||||
|
||||
@@ -157,7 +157,9 @@ export function DashboardVarsInputSchema(): z.ZodObject<Properties<DashboardVars
|
||||
return z.object({
|
||||
flashGuid: z.string(),
|
||||
regState: z.string(),
|
||||
regTy: z.string()
|
||||
regTy: z.string(),
|
||||
serverDescription: z.string().nullish(),
|
||||
serverName: z.string().nullish()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ type Vars {
|
||||
regCheck: String
|
||||
regFile: String
|
||||
regGuid: String
|
||||
regTy: registrationType
|
||||
regTy: String
|
||||
regState: RegistrationState
|
||||
"""
|
||||
Registration owner
|
||||
|
||||
@@ -6,7 +6,7 @@ const config: CodegenConfig = {
|
||||
ignoreNoDocuments: false,
|
||||
config: {
|
||||
namingConvention: {
|
||||
typeNames: './fix-array-type.ts',
|
||||
typeNames: './fix-array-type.js',
|
||||
},
|
||||
scalars: {
|
||||
DateTime: 'string',
|
||||
|
||||
@@ -220,11 +220,11 @@ export type Case = {
|
||||
|
||||
export type Cloud = {
|
||||
__typename?: 'Cloud';
|
||||
allowedOrigins?: Array<Scalars['String']['output']>;
|
||||
apiKey?: ApiKeyResponse;
|
||||
cloud?: CloudResponse;
|
||||
allowedOrigins: Array<Scalars['String']['output']>;
|
||||
apiKey: ApiKeyResponse;
|
||||
cloud: CloudResponse;
|
||||
error?: Maybe<Scalars['String']['output']>;
|
||||
minigraphql?: MinigraphqlResponse;
|
||||
minigraphql: MinigraphqlResponse;
|
||||
relay?: Maybe<RelayResponse>;
|
||||
};
|
||||
|
||||
@@ -996,7 +996,6 @@ export type Registration = {
|
||||
};
|
||||
|
||||
export enum RegistrationState {
|
||||
/** Basic */
|
||||
Basic = 'BASIC',
|
||||
/** BLACKLISTED */
|
||||
Eblacklisted = 'EBLACKLISTED',
|
||||
@@ -1029,12 +1028,12 @@ export enum RegistrationState {
|
||||
Enokeyfile2 = 'ENOKEYFILE2',
|
||||
/** Invalid installation */
|
||||
Etrial = 'ETRIAL',
|
||||
/** Plus */
|
||||
Lifetime = 'LIFETIME',
|
||||
Plus = 'PLUS',
|
||||
/** Pro */
|
||||
Pro = 'PRO',
|
||||
/** Trial */
|
||||
Trial = 'TRIAL'
|
||||
Starter = 'STARTER',
|
||||
Trial = 'TRIAL',
|
||||
Unleashed = 'UNLEASHED'
|
||||
}
|
||||
|
||||
export type RelayResponse = {
|
||||
@@ -1412,7 +1411,6 @@ export type Vars = {
|
||||
regTm2?: Maybe<Scalars['String']['output']>;
|
||||
/** Registration owner */
|
||||
regTo?: Maybe<Scalars['String']['output']>;
|
||||
/** Registration type - used to be registrationType enum and should be migrated back, but changed to match mothership for now */
|
||||
regTy?: Maybe<Scalars['String']['output']>;
|
||||
safeMode?: Maybe<Scalars['Boolean']['output']>;
|
||||
sbClean?: Maybe<Scalars['Boolean']['output']>;
|
||||
@@ -1599,16 +1597,14 @@ export enum mdState {
|
||||
}
|
||||
|
||||
export enum registrationType {
|
||||
/** Basic */
|
||||
Basic = 'BASIC',
|
||||
/** Invalid */
|
||||
Invalid = 'INVALID',
|
||||
/** Plus */
|
||||
Lifetime = 'LIFETIME',
|
||||
Plus = 'PLUS',
|
||||
/** Pro */
|
||||
Pro = 'PRO',
|
||||
/** Trial */
|
||||
Trial = 'TRIAL'
|
||||
Starter = 'STARTER',
|
||||
Trial = 'TRIAL',
|
||||
Unleashed = 'UNLEASHED'
|
||||
}
|
||||
|
||||
export type updateApikeyInput = {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @param {string*} str
|
||||
* @return {string}
|
||||
*/
|
||||
function FixArrayType (str: string) {
|
||||
function FixArrayType (str) {
|
||||
if (str === 'Array') {
|
||||
return 'ArrayType';
|
||||
}
|
||||
Reference in New Issue
Block a user