-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathtypes.ts
113 lines (97 loc) · 3.16 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
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
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; }
Date: { input: any; output: any; }
URL: { input: any; output: any; }
};
export type Admin = {
__typename?: 'Admin';
lastModifiedAt?: Maybe<Scalars['Date']['output']>;
};
export type AttributeInput = {
key?: InputMaybe<Scalars['String']['input']>;
val?: InputMaybe<Scalars['String']['input']>;
};
export enum ButtonComponentType {
Button = 'BUTTON',
Submit = 'SUBMIT'
}
export type ComponentInput = {
child?: InputMaybe<ComponentInput>;
childrens?: InputMaybe<Array<InputMaybe<ComponentInput>>>;
event?: InputMaybe<EventInput>;
name: Scalars['String']['input'];
type: ButtonComponentType;
};
export type DropDownComponentInput = {
dropdownComponent?: InputMaybe<ComponentInput>;
getEvent: EventInput;
};
export type EventArgumentInput = {
name: Scalars['String']['input'];
value: Scalars['String']['input'];
};
export type EventInput = {
arguments: Array<EventArgumentInput>;
options?: InputMaybe<Array<EventOptionType>>;
};
export enum EventOptionType {
Reload = 'RELOAD',
Retry = 'RETRY'
}
export type Guest = {
__typename?: 'Guest';
lastLoggedIn?: Maybe<Scalars['Date']['output']>;
};
export type HttpInput = {
method?: InputMaybe<HttpMethod>;
url: Scalars['URL']['input'];
};
export enum HttpMethod {
Get = 'GET',
Post = 'POST'
}
export type LayoutInput = {
dropdown?: InputMaybe<DropDownComponentInput>;
};
export type PageInput = {
attributes?: InputMaybe<Array<AttributeInput>>;
date?: InputMaybe<Scalars['Date']['input']>;
height: Scalars['Float']['input'];
id: Scalars['ID']['input'];
layout: LayoutInput;
pageType: PageType;
postIDs?: InputMaybe<Array<Scalars['ID']['input']>>;
show: Scalars['Boolean']['input'];
tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
title: Scalars['String']['input'];
width: Scalars['Int']['input'];
};
export enum PageType {
BasicAuth = 'BASIC_AUTH',
Lp = 'LP',
Restricted = 'RESTRICTED',
Service = 'SERVICE'
}
export type User = {
__typename?: 'User';
createdAt?: Maybe<Scalars['Date']['output']>;
email?: Maybe<Scalars['String']['output']>;
id?: Maybe<Scalars['ID']['output']>;
kind?: Maybe<UserKind>;
name?: Maybe<Scalars['String']['output']>;
password?: Maybe<Scalars['String']['output']>;
updatedAt?: Maybe<Scalars['Date']['output']>;
};
export type UserKind = Admin | Guest;