-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathqueries.generated.ts
More file actions
230 lines (216 loc) · 9.97 KB
/
Copy pathqueries.generated.ts
File metadata and controls
230 lines (216 loc) · 9.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
/* eslint-disable */
import * as Types from '../../graphqlTypes.generated';
import { RunBasicSignupDataFragment, CommonConventionDataFragment } from '../queries.generated';
import { gql } from '@apollo/client';
import { RunBasicSignupDataFragmentDoc, CommonConventionDataFragmentDoc } from '../queries.generated';
import * as Apollo from '@apollo/client';
export type ScheduleGridEventFragmentFragment = (
{ __typename: 'Event' }
& Pick<Types.Event, 'id' | 'title' | 'length_seconds' | 'short_blurb_html' | 'my_rating' | 'can_play_concurrently'>
& { event_category: (
{ __typename: 'EventCategory' }
& Pick<Types.EventCategory, 'id' | 'name' | 'default_color' | 'signed_up_color' | 'full_color'>
), registration_policy?: Types.Maybe<(
{ __typename: 'RegistrationPolicy' }
& Pick<Types.RegistrationPolicy, 'slots_limited' | 'only_uncounted' | 'total_slots' | 'total_slots_including_not_counted' | 'preferred_slots' | 'preferred_slots_including_not_counted' | 'minimum_slots' | 'minimum_slots_including_not_counted'>
& { buckets: Array<(
{ __typename: 'RegistrationPolicyBucket' }
& Pick<Types.RegistrationPolicyBucket, 'key' | 'not_counted' | 'total_slots' | 'slots_limited'>
)> }
)>, runs: Array<(
{ __typename: 'Run' }
& Types.MakeOptional<Pick<Types.Run, 'id' | 'starts_at' | 'schedule_note' | 'title_suffix' | 'confirmed_signup_count' | 'not_counted_signup_count' | 'room_names'>, 'confirmed_signup_count' | 'not_counted_signup_count'>
& RunBasicSignupDataFragment
)> }
);
export type ScheduleGridConventionDataQueryQueryVariables = Types.Exact<{ [key: string]: never; }>;
export type ScheduleGridConventionDataQueryQuery = (
{ __typename: 'Query' }
& { convention: (
{ __typename: 'Convention' }
& Pick<Types.Convention, 'id' | 'pre_schedule_content_html'>
& CommonConventionDataFragment
) }
);
export type ScheduleGridEventsQueryQueryVariables = Types.Exact<{
extendedCounts: Types.Scalars['Boolean'];
start?: Types.Maybe<Types.Scalars['Date']>;
finish?: Types.Maybe<Types.Scalars['Date']>;
}>;
export type ScheduleGridEventsQueryQuery = (
{ __typename: 'Query' }
& { events: Array<(
{ __typename: 'Event' }
& Pick<Types.Event, 'id'>
& ScheduleGridEventFragmentFragment
)> }
);
export type ScheduleGridCombinedQueryQueryVariables = Types.Exact<{
extendedCounts: Types.Scalars['Boolean'];
start?: Types.Maybe<Types.Scalars['Date']>;
finish?: Types.Maybe<Types.Scalars['Date']>;
}>;
export type ScheduleGridCombinedQueryQuery = (
{ __typename: 'Query' }
& { convention?: Types.Maybe<(
{ __typename: 'Convention' }
& Pick<Types.Convention, 'id' | 'pre_schedule_content_html'>
& CommonConventionDataFragment
)>, events: Array<(
{ __typename: 'Event' }
& Pick<Types.Event, 'id'>
& ScheduleGridEventFragmentFragment
)> }
);
export const ScheduleGridEventFragmentFragmentDoc = gql`
fragment ScheduleGridEventFragment on Event {
id
title
length_seconds
short_blurb_html
my_rating
can_play_concurrently
event_category {
id
name
default_color
signed_up_color
full_color
}
registration_policy {
slots_limited
only_uncounted
total_slots
total_slots_including_not_counted
preferred_slots
preferred_slots_including_not_counted
minimum_slots
minimum_slots_including_not_counted
buckets {
key
not_counted
total_slots
slots_limited
}
}
runs(start: $start, finish: $finish) {
id
starts_at
schedule_note
title_suffix
...RunBasicSignupData
confirmed_signup_count @include(if: $extendedCounts)
not_counted_signup_count @include(if: $extendedCounts)
room_names
}
}
${RunBasicSignupDataFragmentDoc}`;
export const ScheduleGridConventionDataQueryDocument = gql`
query ScheduleGridConventionDataQuery {
convention: assertConvention {
id
pre_schedule_content_html
...CommonConventionData
}
}
${CommonConventionDataFragmentDoc}`;
/**
* __useScheduleGridConventionDataQueryQuery__
*
* To run a query within a React component, call `useScheduleGridConventionDataQueryQuery` and pass it any options that fit your needs.
* When your component renders, `useScheduleGridConventionDataQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useScheduleGridConventionDataQueryQuery({
* variables: {
* },
* });
*/
export function useScheduleGridConventionDataQueryQuery(baseOptions?: Apollo.QueryHookOptions<ScheduleGridConventionDataQueryQuery, ScheduleGridConventionDataQueryQueryVariables>) {
return Apollo.useQuery<ScheduleGridConventionDataQueryQuery, ScheduleGridConventionDataQueryQueryVariables>(ScheduleGridConventionDataQueryDocument, baseOptions);
}
export function useScheduleGridConventionDataQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ScheduleGridConventionDataQueryQuery, ScheduleGridConventionDataQueryQueryVariables>) {
return Apollo.useLazyQuery<ScheduleGridConventionDataQueryQuery, ScheduleGridConventionDataQueryQueryVariables>(ScheduleGridConventionDataQueryDocument, baseOptions);
}
export type ScheduleGridConventionDataQueryQueryHookResult = ReturnType<typeof useScheduleGridConventionDataQueryQuery>;
export type ScheduleGridConventionDataQueryLazyQueryHookResult = ReturnType<typeof useScheduleGridConventionDataQueryLazyQuery>;
export type ScheduleGridConventionDataQueryQueryResult = Apollo.QueryResult<ScheduleGridConventionDataQueryQuery, ScheduleGridConventionDataQueryQueryVariables>;
export const ScheduleGridEventsQueryDocument = gql`
query ScheduleGridEventsQuery($extendedCounts: Boolean!, $start: Date, $finish: Date) {
events(extendedCounts: $extendedCounts, start: $start, finish: $finish) {
id
...ScheduleGridEventFragment
}
}
${ScheduleGridEventFragmentFragmentDoc}`;
/**
* __useScheduleGridEventsQueryQuery__
*
* To run a query within a React component, call `useScheduleGridEventsQueryQuery` and pass it any options that fit your needs.
* When your component renders, `useScheduleGridEventsQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useScheduleGridEventsQueryQuery({
* variables: {
* extendedCounts: // value for 'extendedCounts'
* start: // value for 'start'
* finish: // value for 'finish'
* },
* });
*/
export function useScheduleGridEventsQueryQuery(baseOptions: Apollo.QueryHookOptions<ScheduleGridEventsQueryQuery, ScheduleGridEventsQueryQueryVariables>) {
return Apollo.useQuery<ScheduleGridEventsQueryQuery, ScheduleGridEventsQueryQueryVariables>(ScheduleGridEventsQueryDocument, baseOptions);
}
export function useScheduleGridEventsQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ScheduleGridEventsQueryQuery, ScheduleGridEventsQueryQueryVariables>) {
return Apollo.useLazyQuery<ScheduleGridEventsQueryQuery, ScheduleGridEventsQueryQueryVariables>(ScheduleGridEventsQueryDocument, baseOptions);
}
export type ScheduleGridEventsQueryQueryHookResult = ReturnType<typeof useScheduleGridEventsQueryQuery>;
export type ScheduleGridEventsQueryLazyQueryHookResult = ReturnType<typeof useScheduleGridEventsQueryLazyQuery>;
export type ScheduleGridEventsQueryQueryResult = Apollo.QueryResult<ScheduleGridEventsQueryQuery, ScheduleGridEventsQueryQueryVariables>;
export const ScheduleGridCombinedQueryDocument = gql`
query ScheduleGridCombinedQuery($extendedCounts: Boolean!, $start: Date, $finish: Date) {
convention {
id
pre_schedule_content_html
...CommonConventionData
}
events(extendedCounts: $extendedCounts, start: $start, finish: $finish) {
id
...ScheduleGridEventFragment
}
}
${CommonConventionDataFragmentDoc}
${ScheduleGridEventFragmentFragmentDoc}`;
/**
* __useScheduleGridCombinedQueryQuery__
*
* To run a query within a React component, call `useScheduleGridCombinedQueryQuery` and pass it any options that fit your needs.
* When your component renders, `useScheduleGridCombinedQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useScheduleGridCombinedQueryQuery({
* variables: {
* extendedCounts: // value for 'extendedCounts'
* start: // value for 'start'
* finish: // value for 'finish'
* },
* });
*/
export function useScheduleGridCombinedQueryQuery(baseOptions: Apollo.QueryHookOptions<ScheduleGridCombinedQueryQuery, ScheduleGridCombinedQueryQueryVariables>) {
return Apollo.useQuery<ScheduleGridCombinedQueryQuery, ScheduleGridCombinedQueryQueryVariables>(ScheduleGridCombinedQueryDocument, baseOptions);
}
export function useScheduleGridCombinedQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ScheduleGridCombinedQueryQuery, ScheduleGridCombinedQueryQueryVariables>) {
return Apollo.useLazyQuery<ScheduleGridCombinedQueryQuery, ScheduleGridCombinedQueryQueryVariables>(ScheduleGridCombinedQueryDocument, baseOptions);
}
export type ScheduleGridCombinedQueryQueryHookResult = ReturnType<typeof useScheduleGridCombinedQueryQuery>;
export type ScheduleGridCombinedQueryLazyQueryHookResult = ReturnType<typeof useScheduleGridCombinedQueryLazyQuery>;
export type ScheduleGridCombinedQueryQueryResult = Apollo.QueryResult<ScheduleGridCombinedQueryQuery, ScheduleGridCombinedQueryQueryVariables>;