-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
61 lines (51 loc) · 2.2 KB
/
types.ts
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
/* eslint-disable */
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string; }
String: { input: string; output: string; }
Boolean: { input: boolean; output: boolean; }
Int: { input: number; output: number; }
Float: { input: number; output: number; }
};
export type Event = {
endDate?: Maybe<Scalars['String']['output']>;
startDate?: Maybe<Scalars['String']['output']>;
timeZone?: Maybe<Scalars['String']['output']>;
};
export type MeetingEvent = Event & {
__typename: 'MeetingEvent';
endDate?: Maybe<Scalars['String']['output']>;
event: MeetingEvent | OtherEvent;
startDate?: Maybe<Scalars['String']['output']>;
timeZone?: Maybe<Scalars['String']['output']>;
};
export type OtherEvent = Event & {
__typename: 'OtherEvent';
endDate?: Maybe<Scalars['String']['output']>;
somethingElse: Scalars['String']['output'];
startDate?: Maybe<Scalars['String']['output']>;
timeZone?: Maybe<Scalars['String']['output']>;
};
export type Query = {
__typename: 'Query';
getUser?: Maybe<User>;
};
export type QueryGetUserArgs = {
id: Scalars['String']['input'];
};
export type User = {
__typename: 'User';
events?: Maybe<Array<MeetingEvent | OtherEvent>>;
id: Scalars['String']['output'];
};
export type GetUserQueryVariables = Exact<{
id: Scalars['String']['input'];
}>;
export type GetUserQuery = { __typename: 'Query', getUser?: { __typename: 'User', id: string, events?: Array<{ __typename: 'MeetingEvent', startDate?: string | null, endDate?: string | null } | { __typename: 'OtherEvent', startDate?: string | null, endDate?: string | null }> | null } | null };