Skip to content

Commit f06fbb3

Browse files
authored
chore: add map labels (#43)
1 parent 1bf9ee6 commit f06fbb3

File tree

6 files changed

+69
-12
lines changed

6 files changed

+69
-12
lines changed

generated/schema.graphql

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6535,6 +6535,7 @@ type maps {
65356535
e_match_type: e_match_types!
65366536
enabled: Boolean!
65376537
id: uuid!
6538+
label: String
65386539

65396540
"""An array relationship"""
65406541
match_maps(
@@ -6688,6 +6689,7 @@ input maps_bool_exp {
66886689
e_match_type: e_match_types_bool_exp
66896690
enabled: Boolean_comparison_exp
66906691
id: uuid_comparison_exp
6692+
label: String_comparison_exp
66916693
match_maps: match_maps_bool_exp
66926694
match_maps_aggregate: match_maps_aggregate_bool_exp
66936695
match_veto_picks: match_map_veto_picks_bool_exp
@@ -6722,6 +6724,7 @@ input maps_insert_input {
67226724
e_match_type: e_match_types_obj_rel_insert_input
67236725
enabled: Boolean
67246726
id: uuid
6727+
label: String
67256728
match_maps: match_maps_arr_rel_insert_input
67266729
match_veto_picks: match_map_veto_picks_arr_rel_insert_input
67276730
name: String
@@ -6734,6 +6737,7 @@ input maps_insert_input {
67346737
"""aggregate max on columns"""
67356738
type maps_max_fields {
67366739
id: uuid
6740+
label: String
67376741
name: String
67386742
patch: String
67396743
poster: String
@@ -6745,6 +6749,7 @@ order by max() on columns of table "maps"
67456749
"""
67466750
input maps_max_order_by {
67476751
id: order_by
6752+
label: order_by
67486753
name: order_by
67496754
patch: order_by
67506755
poster: order_by
@@ -6754,6 +6759,7 @@ input maps_max_order_by {
67546759
"""aggregate min on columns"""
67556760
type maps_min_fields {
67566761
id: uuid
6762+
label: String
67576763
name: String
67586764
patch: String
67596765
poster: String
@@ -6765,6 +6771,7 @@ order by min() on columns of table "maps"
67656771
"""
67666772
input maps_min_order_by {
67676773
id: order_by
6774+
label: order_by
67686775
name: order_by
67696776
patch: order_by
67706777
poster: order_by
@@ -6807,6 +6814,7 @@ input maps_order_by {
68076814
e_match_type: e_match_types_order_by
68086815
enabled: order_by
68096816
id: order_by
6817+
label: order_by
68106818
match_maps_aggregate: match_maps_aggregate_order_by
68116819
match_veto_picks_aggregate: match_map_veto_picks_aggregate_order_by
68126820
name: order_by
@@ -6834,6 +6842,9 @@ enum maps_select_column {
68346842
"""column name"""
68356843
id
68366844

6845+
"""column name"""
6846+
label
6847+
68376848
"""column name"""
68386849
name
68396850

@@ -6879,6 +6890,7 @@ input maps_set_input {
68796890
active_pool: Boolean
68806891
enabled: Boolean
68816892
id: uuid
6893+
label: String
68826894
name: String
68836895
patch: String
68846896
poster: String
@@ -6902,6 +6914,7 @@ input maps_stream_cursor_value_input {
69026914
active_pool: Boolean
69036915
enabled: Boolean
69046916
id: uuid
6917+
label: String
69056918
name: String
69066919
patch: String
69076920
poster: String
@@ -6922,6 +6935,9 @@ enum maps_update_column {
69226935
"""column name"""
69236936
id
69246937

6938+
"""column name"""
6939+
label
6940+
69256941
"""column name"""
69266942
name
69276943

@@ -19245,7 +19261,7 @@ enum player_elo_constraint {
1924519261
"""
1924619262
unique or primary key constraint on columns "steam_id", "match_id"
1924719263
"""
19248-
player_ratings_pkey
19264+
player_elo_pkey
1924919265
}
1925019266

1925119267
"""

generated/schema.ts

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,6 +2209,7 @@ export interface maps {
22092209
e_match_type: e_match_types
22102210
enabled: Scalars['Boolean']
22112211
id: Scalars['uuid']
2212+
label: (Scalars['String'] | null)
22122213
/** An array relationship */
22132214
match_maps: match_maps[]
22142215
/** An aggregate relationship */
@@ -2250,6 +2251,7 @@ export type maps_constraint = 'maps_name_type_key' | 'maps_pkey'
22502251
/** aggregate max on columns */
22512252
export interface maps_max_fields {
22522253
id: (Scalars['uuid'] | null)
2254+
label: (Scalars['String'] | null)
22532255
name: (Scalars['String'] | null)
22542256
patch: (Scalars['String'] | null)
22552257
poster: (Scalars['String'] | null)
@@ -2261,6 +2263,7 @@ export interface maps_max_fields {
22612263
/** aggregate min on columns */
22622264
export interface maps_min_fields {
22632265
id: (Scalars['uuid'] | null)
2266+
label: (Scalars['String'] | null)
22642267
name: (Scalars['String'] | null)
22652268
patch: (Scalars['String'] | null)
22662269
poster: (Scalars['String'] | null)
@@ -2280,7 +2283,7 @@ export interface maps_mutation_response {
22802283

22812284

22822285
/** select columns of table "maps" */
2283-
export type maps_select_column = 'active_pool' | 'enabled' | 'id' | 'name' | 'patch' | 'poster' | 'type' | 'workshop_map_id'
2286+
export type maps_select_column = 'active_pool' | 'enabled' | 'id' | 'label' | 'name' | 'patch' | 'poster' | 'type' | 'workshop_map_id'
22842287

22852288

22862289
/** select "maps_aggregate_bool_exp_bool_and_arguments_columns" columns of table "maps" */
@@ -2292,7 +2295,7 @@ export type maps_select_column_maps_aggregate_bool_exp_bool_or_arguments_columns
22922295

22932296

22942297
/** update columns of table "maps" */
2295-
export type maps_update_column = 'active_pool' | 'enabled' | 'id' | 'name' | 'patch' | 'poster' | 'type' | 'workshop_map_id'
2298+
export type maps_update_column = 'active_pool' | 'enabled' | 'id' | 'label' | 'name' | 'patch' | 'poster' | 'type' | 'workshop_map_id'
22962299

22972300

22982301
/** relational table for assigning a players to a match and lineup */
@@ -5710,7 +5713,7 @@ export interface player_elo_avg_fields {
57105713

57115714

57125715
/** unique or primary key constraints on table "player_elo" */
5713-
export type player_elo_constraint = 'player_ratings_pkey'
5716+
export type player_elo_constraint = 'player_elo_pkey'
57145717

57155718

57165719
/** aggregate max on columns */
@@ -15156,6 +15159,7 @@ export interface mapsGenqlSelection{
1515615159
e_match_type?: e_match_typesGenqlSelection
1515715160
enabled?: boolean | number
1515815161
id?: boolean | number
15162+
label?: boolean | number
1515915163
/** An array relationship */
1516015164
match_maps?: (match_mapsGenqlSelection & { __args?: {
1516115165
/** distinct select on columns */
@@ -15252,16 +15256,17 @@ on_conflict?: (maps_on_conflict | null)}
1525215256

1525315257

1525415258
/** Boolean expression to filter rows from the table "maps". All fields are combined with a logical 'AND'. */
15255-
export interface maps_bool_exp {_and?: (maps_bool_exp[] | null),_not?: (maps_bool_exp | null),_or?: (maps_bool_exp[] | null),active_pool?: (Boolean_comparison_exp | null),e_match_type?: (e_match_types_bool_exp | null),enabled?: (Boolean_comparison_exp | null),id?: (uuid_comparison_exp | null),match_maps?: (match_maps_bool_exp | null),match_maps_aggregate?: (match_maps_aggregate_bool_exp | null),match_veto_picks?: (match_map_veto_picks_bool_exp | null),match_veto_picks_aggregate?: (match_map_veto_picks_aggregate_bool_exp | null),name?: (String_comparison_exp | null),patch?: (String_comparison_exp | null),poster?: (String_comparison_exp | null),type?: (e_match_types_enum_comparison_exp | null),workshop_map_id?: (String_comparison_exp | null)}
15259+
export interface maps_bool_exp {_and?: (maps_bool_exp[] | null),_not?: (maps_bool_exp | null),_or?: (maps_bool_exp[] | null),active_pool?: (Boolean_comparison_exp | null),e_match_type?: (e_match_types_bool_exp | null),enabled?: (Boolean_comparison_exp | null),id?: (uuid_comparison_exp | null),label?: (String_comparison_exp | null),match_maps?: (match_maps_bool_exp | null),match_maps_aggregate?: (match_maps_aggregate_bool_exp | null),match_veto_picks?: (match_map_veto_picks_bool_exp | null),match_veto_picks_aggregate?: (match_map_veto_picks_aggregate_bool_exp | null),name?: (String_comparison_exp | null),patch?: (String_comparison_exp | null),poster?: (String_comparison_exp | null),type?: (e_match_types_enum_comparison_exp | null),workshop_map_id?: (String_comparison_exp | null)}
1525615260

1525715261

1525815262
/** input type for inserting data into table "maps" */
15259-
export interface maps_insert_input {active_pool?: (Scalars['Boolean'] | null),e_match_type?: (e_match_types_obj_rel_insert_input | null),enabled?: (Scalars['Boolean'] | null),id?: (Scalars['uuid'] | null),match_maps?: (match_maps_arr_rel_insert_input | null),match_veto_picks?: (match_map_veto_picks_arr_rel_insert_input | null),name?: (Scalars['String'] | null),patch?: (Scalars['String'] | null),poster?: (Scalars['String'] | null),type?: (e_match_types_enum | null),workshop_map_id?: (Scalars['String'] | null)}
15263+
export interface maps_insert_input {active_pool?: (Scalars['Boolean'] | null),e_match_type?: (e_match_types_obj_rel_insert_input | null),enabled?: (Scalars['Boolean'] | null),id?: (Scalars['uuid'] | null),label?: (Scalars['String'] | null),match_maps?: (match_maps_arr_rel_insert_input | null),match_veto_picks?: (match_map_veto_picks_arr_rel_insert_input | null),name?: (Scalars['String'] | null),patch?: (Scalars['String'] | null),poster?: (Scalars['String'] | null),type?: (e_match_types_enum | null),workshop_map_id?: (Scalars['String'] | null)}
1526015264

1526115265

1526215266
/** aggregate max on columns */
1526315267
export interface maps_max_fieldsGenqlSelection{
1526415268
id?: boolean | number
15269+
label?: boolean | number
1526515270
name?: boolean | number
1526615271
patch?: boolean | number
1526715272
poster?: boolean | number
@@ -15272,12 +15277,13 @@ export interface maps_max_fieldsGenqlSelection{
1527215277

1527315278

1527415279
/** order by max() on columns of table "maps" */
15275-
export interface maps_max_order_by {id?: (order_by | null),name?: (order_by | null),patch?: (order_by | null),poster?: (order_by | null),workshop_map_id?: (order_by | null)}
15280+
export interface maps_max_order_by {id?: (order_by | null),label?: (order_by | null),name?: (order_by | null),patch?: (order_by | null),poster?: (order_by | null),workshop_map_id?: (order_by | null)}
1527615281

1527715282

1527815283
/** aggregate min on columns */
1527915284
export interface maps_min_fieldsGenqlSelection{
1528015285
id?: boolean | number
15286+
label?: boolean | number
1528115287
name?: boolean | number
1528215288
patch?: boolean | number
1528315289
poster?: boolean | number
@@ -15288,7 +15294,7 @@ export interface maps_min_fieldsGenqlSelection{
1528815294

1528915295

1529015296
/** order by min() on columns of table "maps" */
15291-
export interface maps_min_order_by {id?: (order_by | null),name?: (order_by | null),patch?: (order_by | null),poster?: (order_by | null),workshop_map_id?: (order_by | null)}
15297+
export interface maps_min_order_by {id?: (order_by | null),label?: (order_by | null),name?: (order_by | null),patch?: (order_by | null),poster?: (order_by | null),workshop_map_id?: (order_by | null)}
1529215298

1529315299

1529415300
/** response of any mutation on the table "maps" */
@@ -15313,15 +15319,15 @@ export interface maps_on_conflict {constraint: maps_constraint,update_columns?:
1531315319

1531415320

1531515321
/** Ordering options when selecting data from "maps". */
15316-
export interface maps_order_by {active_pool?: (order_by | null),e_match_type?: (e_match_types_order_by | null),enabled?: (order_by | null),id?: (order_by | null),match_maps_aggregate?: (match_maps_aggregate_order_by | null),match_veto_picks_aggregate?: (match_map_veto_picks_aggregate_order_by | null),name?: (order_by | null),patch?: (order_by | null),poster?: (order_by | null),type?: (order_by | null),workshop_map_id?: (order_by | null)}
15322+
export interface maps_order_by {active_pool?: (order_by | null),e_match_type?: (e_match_types_order_by | null),enabled?: (order_by | null),id?: (order_by | null),label?: (order_by | null),match_maps_aggregate?: (match_maps_aggregate_order_by | null),match_veto_picks_aggregate?: (match_map_veto_picks_aggregate_order_by | null),name?: (order_by | null),patch?: (order_by | null),poster?: (order_by | null),type?: (order_by | null),workshop_map_id?: (order_by | null)}
1531715323

1531815324

1531915325
/** primary key columns input for table: maps */
1532015326
export interface maps_pk_columns_input {id: Scalars['uuid']}
1532115327

1532215328

1532315329
/** input type for updating data in table "maps" */
15324-
export interface maps_set_input {active_pool?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),id?: (Scalars['uuid'] | null),name?: (Scalars['String'] | null),patch?: (Scalars['String'] | null),poster?: (Scalars['String'] | null),type?: (e_match_types_enum | null),workshop_map_id?: (Scalars['String'] | null)}
15330+
export interface maps_set_input {active_pool?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),id?: (Scalars['uuid'] | null),label?: (Scalars['String'] | null),name?: (Scalars['String'] | null),patch?: (Scalars['String'] | null),poster?: (Scalars['String'] | null),type?: (e_match_types_enum | null),workshop_map_id?: (Scalars['String'] | null)}
1532515331

1532615332

1532715333
/** Streaming cursor of the table "maps" */
@@ -15333,7 +15339,7 @@ ordering?: (cursor_ordering | null)}
1533315339

1533415340

1533515341
/** Initial value of the column from where the streaming should start */
15336-
export interface maps_stream_cursor_value_input {active_pool?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),id?: (Scalars['uuid'] | null),name?: (Scalars['String'] | null),patch?: (Scalars['String'] | null),poster?: (Scalars['String'] | null),type?: (e_match_types_enum | null),workshop_map_id?: (Scalars['String'] | null)}
15342+
export interface maps_stream_cursor_value_input {active_pool?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),id?: (Scalars['uuid'] | null),label?: (Scalars['String'] | null),name?: (Scalars['String'] | null),patch?: (Scalars['String'] | null),poster?: (Scalars['String'] | null),type?: (e_match_types_enum | null),workshop_map_id?: (Scalars['String'] | null)}
1533715343

1533815344
export interface maps_updates {
1533915345
/** sets the columns of the filtered rows to the given values */
@@ -40632,6 +40638,7 @@ export const enumMapsSelectColumn = {
4063240638
active_pool: 'active_pool' as const,
4063340639
enabled: 'enabled' as const,
4063440640
id: 'id' as const,
40641+
label: 'label' as const,
4063540642
name: 'name' as const,
4063640643
patch: 'patch' as const,
4063740644
poster: 'poster' as const,
@@ -40653,6 +40660,7 @@ export const enumMapsUpdateColumn = {
4065340660
active_pool: 'active_pool' as const,
4065440661
enabled: 'enabled' as const,
4065540662
id: 'id' as const,
40663+
label: 'label' as const,
4065640664
name: 'name' as const,
4065740665
patch: 'patch' as const,
4065840666
poster: 'poster' as const,
@@ -41076,7 +41084,7 @@ export const enumPlayerDamagesSelectColumn = {
4107641084
}
4107741085

4107841086
export const enumPlayerEloConstraint = {
41079-
player_ratings_pkey: 'player_ratings_pkey' as const
41087+
player_elo_pkey: 'player_elo_pkey' as const
4108041088
}
4108141089

4108241090
export const enumPlayerEloSelectColumn = {

generated/types.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8743,6 +8743,9 @@ export default {
87438743
"id": [
87448744
1989
87458745
],
8746+
"label": [
8747+
11
8748+
],
87468749
"match_maps": [
87478750
857,
87488751
{
@@ -8996,6 +8999,9 @@ export default {
89968999
"id": [
89979000
1990
89989001
],
9002+
"label": [
9003+
13
9004+
],
89999005
"match_maps": [
90009006
866
90019007
],
@@ -9041,6 +9047,9 @@ export default {
90419047
"id": [
90429048
1989
90439049
],
9050+
"label": [
9051+
11
9052+
],
90449053
"match_maps": [
90459054
863
90469055
],
@@ -9070,6 +9079,9 @@ export default {
90709079
"id": [
90719080
1989
90729081
],
9082+
"label": [
9083+
11
9084+
],
90739085
"name": [
90749086
11
90759087
],
@@ -9090,6 +9102,9 @@ export default {
90909102
"id": [
90919103
1104
90929104
],
9105+
"label": [
9106+
1104
9107+
],
90939108
"name": [
90949109
1104
90959110
],
@@ -9110,6 +9125,9 @@ export default {
91109125
"id": [
91119126
1989
91129127
],
9128+
"label": [
9129+
11
9130+
],
91139131
"name": [
91149132
11
91159133
],
@@ -9130,6 +9148,9 @@ export default {
91309148
"id": [
91319149
1104
91329150
],
9151+
"label": [
9152+
1104
9153+
],
91339154
"name": [
91349155
1104
91359156
],
@@ -9195,6 +9216,9 @@ export default {
91959216
"id": [
91969217
1104
91979218
],
9219+
"label": [
9220+
1104
9221+
],
91989222
"match_maps_aggregate": [
91999223
862
92009224
],
@@ -9241,6 +9265,9 @@ export default {
92419265
"id": [
92429266
1989
92439267
],
9268+
"label": [
9269+
11
9270+
],
92449271
"name": [
92459272
11
92469273
],
@@ -9281,6 +9308,9 @@ export default {
92819308
"id": [
92829309
1989
92839310
],
9311+
"label": [
9312+
11
9313+
],
92849314
"name": [
92859315
11
92869316
],

hasura/metadata/databases/default/tables/public_maps.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ insert_permissions:
2727
columns:
2828
- active_pool
2929
- enabled
30+
- label
3031
- name
3132
- patch
3233
- poster
@@ -40,6 +41,7 @@ select_permissions:
4041
- active_pool
4142
- enabled
4243
- id
44+
- label
4345
- name
4446
- patch
4547
- poster
@@ -53,6 +55,7 @@ update_permissions:
5355
columns:
5456
- active_pool
5557
- enabled
58+
- label
5659
- name
5760
- patch
5861
- poster

hasura/migrations/default/1731412891963_alter_table_public_maps_add_column_label/down.sql renamed to hasura/migrations/default/1744454171590_alter_table_public_maps_add_column_label/down.sql

File renamed without changes.

hasura/migrations/default/1731412891963_alter_table_public_maps_add_column_label/up.sql renamed to hasura/migrations/default/1744454171590_alter_table_public_maps_add_column_label/up.sql

File renamed without changes.

0 commit comments

Comments
 (0)