Skip to content

Commit 35d9c07

Browse files
committed
chore: update types
1 parent 50a2b83 commit 35d9c07

3 files changed

Lines changed: 20235 additions & 19922 deletions

File tree

generated/schema.graphql

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,26 @@ type DiskStats {
6060
time: timestamp
6161
}
6262

63+
type FileContentResponse {
64+
content: String!
65+
path: String!
66+
size: bigint!
67+
}
68+
69+
type FileItem {
70+
isDirectory: Boolean!
71+
modified: timestamp
72+
name: String!
73+
path: String!
74+
size: bigint
75+
type: String!
76+
}
77+
78+
type FileListResponse {
79+
currentPath: String!
80+
items: [FileItem!]!
81+
}
82+
6383
type GetTestUploadResponse {
6484
error: String
6585
link: String
@@ -16465,8 +16485,14 @@ type mutation_root {
1646516485
"""checkIntoMatch"""
1646616486
checkIntoMatch(match_id: uuid!): SuccessOutput
1646716487
createApiKey(label: String!): ApiKeyResponse
16488+
16489+
"""Create directory on game server"""
16490+
createServerDirectory(dir_path: String!, node_id: String!, server_id: String): SuccessOutput
1646816491
deleteMatch(match_id: String!): SuccessOutput
1646916492

16493+
"""Delete file or directory on game server"""
16494+
deleteServerItem(node_id: String!, path: String!, server_id: String): SuccessOutput
16495+
1647016496
"""
1647116497
delete data from the table: "_map_pool"
1647216498
"""
@@ -19206,8 +19232,14 @@ type mutation_root {
1920619232

1920719233
"""logout"""
1920819234
logout: SuccessOutput
19235+
19236+
"""Move file or directory on game server"""
19237+
moveServerItem(dest_path: String!, node_id: String!, server_id: String, source_path: String!): SuccessOutput
1920919238
randomizeTeams(match_id: uuid!): SuccessOutput
1921019239
registerName(name: String!): SuccessOutput
19240+
19241+
"""Rename file or directory on game server"""
19242+
renameServerItem(new_path: String!, node_id: String!, old_path: String!, server_id: String): SuccessOutput
1921119243
requestNameChange(name: String!, steam_id: bigint!): SuccessOutput
1921219244
restartService(service: String!): SuccessOutput
1921319245

@@ -21854,6 +21886,9 @@ type mutation_root {
2185421886
"""updates to execute, in order"""
2185521887
updates: [v_pool_maps_updates!]!
2185621888
): [v_pool_maps_mutation_response]
21889+
21890+
"""Write content to file on game server"""
21891+
writeServerFile(content: String!, file_path: String!, node_id: String!, server_id: String): SuccessOutput
2185721892
}
2185821893

2185921894
"""
@@ -31713,6 +31748,9 @@ type query_root {
3171331748
getNodeStats(node: String!): NodeStats!
3171431749
getServiceStats: [PodStats]!
3171531750

31751+
"""List files in game server directory"""
31752+
listServerFiles(node_id: String!, path: String, server_id: String): FileListResponse!
31753+
3171631754
"""
3171731755
fetch data from the table: "lobbies"
3171831756
"""
@@ -33059,6 +33097,9 @@ type query_root {
3305933097
"""fetch data from the table: "plugin_versions" using primary key columns"""
3306033098
plugin_versions_by_pk(version: String!): plugin_versions
3306133099

33100+
"""Read file content from game server"""
33101+
readServerFile(file_path: String!, node_id: String!, server_id: String): FileContentResponse!
33102+
3306233103
"""
3306333104
fetch data from the table: "server_regions"
3306433105
"""

generated/schema.ts

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,29 @@ export interface DiskStats {
5757
__typename: 'DiskStats'
5858
}
5959

60+
export interface FileContentResponse {
61+
content: Scalars['String']
62+
path: Scalars['String']
63+
size: Scalars['bigint']
64+
__typename: 'FileContentResponse'
65+
}
66+
67+
export interface FileItem {
68+
isDirectory: Scalars['Boolean']
69+
modified: (Scalars['timestamp'] | null)
70+
name: Scalars['String']
71+
path: Scalars['String']
72+
size: (Scalars['bigint'] | null)
73+
type: Scalars['String']
74+
__typename: 'FileItem'
75+
}
76+
77+
export interface FileListResponse {
78+
currentPath: Scalars['String']
79+
items: FileItem[]
80+
__typename: 'FileListResponse'
81+
}
82+
6083
export interface GetTestUploadResponse {
6184
error: (Scalars['String'] | null)
6285
link: (Scalars['String'] | null)
@@ -5370,7 +5393,11 @@ export interface mutation_root {
53705393
/** checkIntoMatch */
53715394
checkIntoMatch: (SuccessOutput | null)
53725395
createApiKey: (ApiKeyResponse | null)
5396+
/** Create directory on game server */
5397+
createServerDirectory: (SuccessOutput | null)
53735398
deleteMatch: (SuccessOutput | null)
5399+
/** Delete file or directory on game server */
5400+
deleteServerItem: (SuccessOutput | null)
53745401
/** delete data from the table: "_map_pool" */
53755402
delete__map_pool: (_map_pool_mutation_response | null)
53765403
/** delete single row from the table: "_map_pool" */
@@ -6004,8 +6031,12 @@ export interface mutation_root {
60046031
leaveLineup: (SuccessOutput | null)
60056032
/** logout */
60066033
logout: (SuccessOutput | null)
6034+
/** Move file or directory on game server */
6035+
moveServerItem: (SuccessOutput | null)
60076036
randomizeTeams: (SuccessOutput | null)
60086037
registerName: (SuccessOutput | null)
6038+
/** Rename file or directory on game server */
6039+
renameServerItem: (SuccessOutput | null)
60096040
requestNameChange: (SuccessOutput | null)
60106041
restartService: (SuccessOutput | null)
60116042
/** scheduleMatch */
@@ -6491,6 +6522,8 @@ export interface mutation_root {
64916522
update_v_pool_maps: (v_pool_maps_mutation_response | null)
64926523
/** update multiples rows of table: "v_pool_maps" */
64936524
update_v_pool_maps_many: ((v_pool_maps_mutation_response | null)[] | null)
6525+
/** Write content to file on game server */
6526+
writeServerFile: (SuccessOutput | null)
64946527
__typename: 'mutation_root'
64956528
}
64966529

@@ -9439,6 +9472,8 @@ export interface query_root {
94399472
getDedicatedServerInfo: (DedicatedSeverInfo | null)[]
94409473
getNodeStats: NodeStats
94419474
getServiceStats: (PodStats | null)[]
9475+
/** List files in game server directory */
9476+
listServerFiles: FileListResponse
94429477
/** fetch data from the table: "lobbies" */
94439478
lobbies: lobbies[]
94449479
/** fetch aggregated fields from the table: "lobbies" */
@@ -9631,6 +9666,8 @@ export interface query_root {
96319666
plugin_versions_aggregate: plugin_versions_aggregate
96329667
/** fetch data from the table: "plugin_versions" using primary key columns */
96339668
plugin_versions_by_pk: (plugin_versions | null)
9669+
/** Read file content from game server */
9670+
readServerFile: FileContentResponse
96349671
/** fetch data from the table: "server_regions" */
96359672
server_regions: server_regions[]
96369673
/** fetch aggregated fields from the table: "server_regions" */
@@ -14505,6 +14542,32 @@ export interface DiskStatsGenqlSelection{
1450514542
__scalar?: boolean | number
1450614543
}
1450714544

14545+
export interface FileContentResponseGenqlSelection{
14546+
content?: boolean | number
14547+
path?: boolean | number
14548+
size?: boolean | number
14549+
__typename?: boolean | number
14550+
__scalar?: boolean | number
14551+
}
14552+
14553+
export interface FileItemGenqlSelection{
14554+
isDirectory?: boolean | number
14555+
modified?: boolean | number
14556+
name?: boolean | number
14557+
path?: boolean | number
14558+
size?: boolean | number
14559+
type?: boolean | number
14560+
__typename?: boolean | number
14561+
__scalar?: boolean | number
14562+
}
14563+
14564+
export interface FileListResponseGenqlSelection{
14565+
currentPath?: boolean | number
14566+
items?: FileItemGenqlSelection
14567+
__typename?: boolean | number
14568+
__scalar?: boolean | number
14569+
}
14570+
1450814571
export interface GetTestUploadResponseGenqlSelection{
1450914572
error?: boolean | number
1451014573
link?: boolean | number
@@ -23717,7 +23780,11 @@ export interface mutation_rootGenqlSelection{
2371723780
/** checkIntoMatch */
2371823781
checkIntoMatch?: (SuccessOutputGenqlSelection & { __args: {match_id: Scalars['uuid']} })
2371923782
createApiKey?: (ApiKeyResponseGenqlSelection & { __args: {label: Scalars['String']} })
23783+
/** Create directory on game server */
23784+
createServerDirectory?: (SuccessOutputGenqlSelection & { __args: {dir_path: Scalars['String'], node_id: Scalars['String'], server_id?: (Scalars['String'] | null)} })
2372023785
deleteMatch?: (SuccessOutputGenqlSelection & { __args: {match_id: Scalars['String']} })
23786+
/** Delete file or directory on game server */
23787+
deleteServerItem?: (SuccessOutputGenqlSelection & { __args: {node_id: Scalars['String'], path: Scalars['String'], server_id?: (Scalars['String'] | null)} })
2372123788
/** delete data from the table: "_map_pool" */
2372223789
delete__map_pool?: (_map_pool_mutation_responseGenqlSelection & { __args: {
2372323790
/** filter the rows which have to be deleted */
@@ -25129,8 +25196,12 @@ export interface mutation_rootGenqlSelection{
2512925196
leaveLineup?: (SuccessOutputGenqlSelection & { __args: {match_id: Scalars['String']} })
2513025197
/** logout */
2513125198
logout?: SuccessOutputGenqlSelection
25199+
/** Move file or directory on game server */
25200+
moveServerItem?: (SuccessOutputGenqlSelection & { __args: {dest_path: Scalars['String'], node_id: Scalars['String'], server_id?: (Scalars['String'] | null), source_path: Scalars['String']} })
2513225201
randomizeTeams?: (SuccessOutputGenqlSelection & { __args: {match_id: Scalars['uuid']} })
2513325202
registerName?: (SuccessOutputGenqlSelection & { __args: {name: Scalars['String']} })
25203+
/** Rename file or directory on game server */
25204+
renameServerItem?: (SuccessOutputGenqlSelection & { __args: {new_path: Scalars['String'], node_id: Scalars['String'], old_path: Scalars['String'], server_id?: (Scalars['String'] | null)} })
2513425205
requestNameChange?: (SuccessOutputGenqlSelection & { __args: {name: Scalars['String'], steam_id: Scalars['bigint']} })
2513525206
restartService?: (SuccessOutputGenqlSelection & { __args: {service: Scalars['String']} })
2513625207
/** scheduleMatch */
@@ -26500,6 +26571,8 @@ export interface mutation_rootGenqlSelection{
2650026571
update_v_pool_maps_many?: (v_pool_maps_mutation_responseGenqlSelection & { __args: {
2650126572
/** updates to execute, in order */
2650226573
updates: v_pool_maps_updates[]} })
26574+
/** Write content to file on game server */
26575+
writeServerFile?: (SuccessOutputGenqlSelection & { __args: {content: Scalars['String'], file_path: Scalars['String'], node_id: Scalars['String'], server_id?: (Scalars['String'] | null)} })
2650326576
__typename?: boolean | number
2650426577
__scalar?: boolean | number
2650526578
}
@@ -32069,6 +32142,8 @@ export interface query_rootGenqlSelection{
3206932142
getDedicatedServerInfo?: DedicatedSeverInfoGenqlSelection
3207032143
getNodeStats?: (NodeStatsGenqlSelection & { __args: {node: Scalars['String']} })
3207132144
getServiceStats?: PodStatsGenqlSelection
32145+
/** List files in game server directory */
32146+
listServerFiles?: (FileListResponseGenqlSelection & { __args: {node_id: Scalars['String'], path?: (Scalars['String'] | null), server_id?: (Scalars['String'] | null)} })
3207232147
/** fetch data from the table: "lobbies" */
3207332148
lobbies?: (lobbiesGenqlSelection & { __args?: {
3207432149
/** distinct select on columns */
@@ -32901,6 +32976,8 @@ export interface query_rootGenqlSelection{
3290132976
where?: (plugin_versions_bool_exp | null)} })
3290232977
/** fetch data from the table: "plugin_versions" using primary key columns */
3290332978
plugin_versions_by_pk?: (plugin_versionsGenqlSelection & { __args: {version: Scalars['String']} })
32979+
/** Read file content from game server */
32980+
readServerFile?: (FileContentResponseGenqlSelection & { __args: {file_path: Scalars['String'], node_id: Scalars['String'], server_id?: (Scalars['String'] | null)} })
3290432981
/** fetch data from the table: "server_regions" */
3290532982
server_regions?: (server_regionsGenqlSelection & { __args?: {
3290632983
/** distinct select on columns */
@@ -42721,6 +42798,30 @@ export type SubscriptionGenqlSelection = subscription_rootGenqlSelection
4272142798

4272242799

4272342800

42801+
const FileContentResponse_possibleTypes: string[] = ['FileContentResponse']
42802+
export const isFileContentResponse = (obj?: { __typename?: any } | null): obj is FileContentResponse => {
42803+
if (!obj?.__typename) throw new Error('__typename is missing in "isFileContentResponse"')
42804+
return FileContentResponse_possibleTypes.includes(obj.__typename)
42805+
}
42806+
42807+
42808+
42809+
const FileItem_possibleTypes: string[] = ['FileItem']
42810+
export const isFileItem = (obj?: { __typename?: any } | null): obj is FileItem => {
42811+
if (!obj?.__typename) throw new Error('__typename is missing in "isFileItem"')
42812+
return FileItem_possibleTypes.includes(obj.__typename)
42813+
}
42814+
42815+
42816+
42817+
const FileListResponse_possibleTypes: string[] = ['FileListResponse']
42818+
export const isFileListResponse = (obj?: { __typename?: any } | null): obj is FileListResponse => {
42819+
if (!obj?.__typename) throw new Error('__typename is missing in "isFileListResponse"')
42820+
return FileListResponse_possibleTypes.includes(obj.__typename)
42821+
}
42822+
42823+
42824+
4272442825
const GetTestUploadResponse_possibleTypes: string[] = ['GetTestUploadResponse']
4272542826
export const isGetTestUploadResponse = (obj?: { __typename?: any } | null): obj is GetTestUploadResponse => {
4272642827
if (!obj?.__typename) throw new Error('__typename is missing in "isGetTestUploadResponse"')

0 commit comments

Comments
 (0)