great 0.3.2 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +119 -13
  2. package/dist/accounts/create.d.ts +4 -0
  3. package/dist/accounts/create.js +42 -0
  4. package/dist/accounts/create.js.map +1 -0
  5. package/dist/accounts/index.d.ts +5 -2
  6. package/dist/accounts/index.js +48 -9
  7. package/dist/accounts/index.js.map +1 -1
  8. package/dist/clone/index.d.ts +8 -0
  9. package/dist/clone/index.js +61 -0
  10. package/dist/clone/index.js.map +1 -0
  11. package/dist/config/index.d.ts +8 -0
  12. package/dist/config/index.js +111 -0
  13. package/dist/config/index.js.map +1 -0
  14. package/dist/create/index.d.ts +3 -0
  15. package/dist/create/index.js +7 -0
  16. package/dist/create/index.js.map +1 -0
  17. package/dist/deploy/index.d.ts +11 -0
  18. package/dist/deploy/index.js +132 -0
  19. package/dist/deploy/index.js.map +1 -0
  20. package/dist/explode/index.d.ts +5 -0
  21. package/dist/explode/index.js +32 -0
  22. package/dist/explode/index.js.map +1 -0
  23. package/dist/explode/transform.d.ts +30 -0
  24. package/dist/explode/transform.js +100 -0
  25. package/dist/explode/transform.js.map +1 -0
  26. package/dist/explode/unescapeMongo.d.ts +1 -0
  27. package/dist/explode/unescapeMongo.js +15 -0
  28. package/dist/explode/unescapeMongo.js.map +1 -0
  29. package/dist/generated/graphql.d.ts +1784 -0
  30. package/dist/generated/graphql.js +73 -0
  31. package/dist/generated/graphql.js.map +1 -0
  32. package/dist/index.js +29 -4
  33. package/dist/index.js.map +1 -1
  34. package/dist/init/index.d.ts +5 -0
  35. package/dist/init/index.js +46 -0
  36. package/dist/init/index.js.map +1 -0
  37. package/dist/integrations/create.d.ts +6 -0
  38. package/dist/integrations/create.js +70 -0
  39. package/dist/integrations/create.js.map +1 -0
  40. package/dist/{projects/describe.d.ts → integrations/index.d.ts} +0 -1
  41. package/dist/integrations/index.js +23 -0
  42. package/dist/integrations/index.js.map +1 -0
  43. package/dist/integrations/list.d.ts +7 -0
  44. package/dist/integrations/list.js +103 -0
  45. package/dist/integrations/list.js.map +1 -0
  46. package/dist/login/index.d.ts +6 -0
  47. package/dist/login/index.js +25 -0
  48. package/dist/login/index.js.map +1 -0
  49. package/dist/logout/index.d.ts +6 -0
  50. package/dist/logout/index.js +11 -0
  51. package/dist/logout/index.js.map +1 -0
  52. package/dist/now/index.d.ts +3 -1
  53. package/dist/now/index.js +11 -2
  54. package/dist/now/index.js.map +1 -1
  55. package/dist/pull/index.d.ts +5 -1
  56. package/dist/pull/index.js +50 -19
  57. package/dist/pull/index.js.map +1 -1
  58. package/dist/push/index.d.ts +11 -0
  59. package/dist/push/index.js +481 -0
  60. package/dist/push/index.js.map +1 -0
  61. package/dist/repl/dispatch.d.ts +8 -0
  62. package/dist/repl/dispatch.js +75 -0
  63. package/dist/repl/dispatch.js.map +1 -0
  64. package/dist/repl/help.d.ts +2 -0
  65. package/dist/repl/help.js +14 -0
  66. package/dist/repl/help.js.map +1 -0
  67. package/dist/repl/index.d.ts +10 -0
  68. package/dist/repl/index.js +92 -0
  69. package/dist/repl/index.js.map +1 -0
  70. package/dist/run/index.d.ts +33 -1
  71. package/dist/run/index.js +109 -40
  72. package/dist/run/index.js.map +1 -1
  73. package/dist/status/index.d.ts +10 -0
  74. package/dist/status/index.js +122 -0
  75. package/dist/status/index.js.map +1 -0
  76. package/dist/types.d.ts +1 -0
  77. package/dist/types.js +2 -0
  78. package/dist/types.js.map +1 -0
  79. package/dist/utils/authServer.d.ts +4 -0
  80. package/dist/utils/authServer.js +49 -0
  81. package/dist/utils/authServer.js.map +1 -0
  82. package/dist/utils/config.d.ts +15 -0
  83. package/dist/utils/config.js +41 -0
  84. package/dist/utils/config.js.map +1 -0
  85. package/dist/utils/createIntegrationFromFile.d.ts +22 -0
  86. package/dist/utils/createIntegrationFromFile.js +116 -0
  87. package/dist/utils/createIntegrationFromFile.js.map +1 -0
  88. package/dist/utils/determineNameAndKey.d.ts +4 -0
  89. package/dist/utils/determineNameAndKey.js +8 -0
  90. package/dist/utils/determineNameAndKey.js.map +1 -0
  91. package/dist/utils/dispatch.d.ts +3 -0
  92. package/dist/utils/dispatch.js +37 -0
  93. package/dist/utils/dispatch.js.map +1 -0
  94. package/dist/utils/fetchLocal.d.ts +3 -0
  95. package/dist/utils/fetchLocal.js +21 -0
  96. package/dist/utils/fetchLocal.js.map +1 -0
  97. package/dist/utils/fetchSession.d.ts +7 -0
  98. package/dist/utils/fetchSession.js +34 -0
  99. package/dist/utils/fetchSession.js.map +1 -0
  100. package/dist/utils/graphqlClient.d.ts +10 -0
  101. package/dist/utils/graphqlClient.js +24 -0
  102. package/dist/utils/graphqlClient.js.map +1 -0
  103. package/dist/utils/graphqlError.d.ts +2 -0
  104. package/dist/utils/graphqlError.js +20 -0
  105. package/dist/utils/graphqlError.js.map +1 -0
  106. package/dist/utils/hashContent.d.ts +1 -0
  107. package/dist/utils/hashContent.js +7 -0
  108. package/dist/utils/hashContent.js.map +1 -0
  109. package/dist/utils/jwt.d.ts +6 -0
  110. package/dist/utils/jwt.js +24 -0
  111. package/dist/utils/jwt.js.map +1 -0
  112. package/dist/utils/promptForValue.d.ts +9 -0
  113. package/dist/utils/promptForValue.js +24 -0
  114. package/dist/utils/promptForValue.js.map +1 -0
  115. package/dist/utils/resolveAccount.d.ts +19 -0
  116. package/dist/utils/resolveAccount.js +75 -0
  117. package/dist/utils/resolveAccount.js.map +1 -0
  118. package/dist/utils/resolveElement.d.ts +20 -0
  119. package/dist/utils/resolveElement.js +67 -0
  120. package/dist/utils/resolveElement.js.map +1 -0
  121. package/dist/utils/resolveIntegration.d.ts +9 -0
  122. package/dist/utils/resolveIntegration.js +71 -0
  123. package/dist/utils/resolveIntegration.js.map +1 -0
  124. package/dist/utils/saveIntegration.d.ts +16 -0
  125. package/dist/utils/saveIntegration.js +117 -0
  126. package/dist/utils/saveIntegration.js.map +1 -0
  127. package/dist/utils/token.d.ts +6 -0
  128. package/dist/utils/token.js +31 -0
  129. package/dist/utils/token.js.map +1 -0
  130. package/dist/utils/valueTypes.d.ts +4 -0
  131. package/dist/utils/valueTypes.js +43 -0
  132. package/dist/utils/valueTypes.js.map +1 -0
  133. package/dist/value/get.d.ts +8 -0
  134. package/dist/value/get.js +50 -0
  135. package/dist/value/get.js.map +1 -0
  136. package/dist/{projects → value}/index.d.ts +1 -2
  137. package/dist/value/index.js +26 -0
  138. package/dist/value/index.js.map +1 -0
  139. package/dist/value/list.d.ts +8 -0
  140. package/dist/value/list.js +122 -0
  141. package/dist/value/list.js.map +1 -0
  142. package/dist/value/set.d.ts +12 -0
  143. package/dist/value/set.js +103 -0
  144. package/dist/value/set.js.map +1 -0
  145. package/dist/whoami/fetchSession.d.ts +9 -0
  146. package/dist/whoami/fetchSession.js +19 -0
  147. package/dist/whoami/fetchSession.js.map +1 -0
  148. package/dist/whoami/index.d.ts +9 -1
  149. package/dist/whoami/index.js +18 -10
  150. package/dist/whoami/index.js.map +1 -1
  151. package/package.json +30 -13
  152. package/.codeclimate.yml +0 -7
  153. package/.editorconfig +0 -11
  154. package/.nvmrc +0 -1
  155. package/.prettierrc.json +0 -6
  156. package/dist/now/index.test.d.ts +0 -1
  157. package/dist/now/index.test.js +0 -18
  158. package/dist/now/index.test.js.map +0 -1
  159. package/dist/projects/describe.js +0 -44
  160. package/dist/projects/describe.js.map +0 -1
  161. package/dist/projects/index.js +0 -39
  162. package/dist/projects/index.js.map +0 -1
  163. package/dist/utils/callApi.d.ts +0 -5
  164. package/dist/utils/callApi.js +0 -20
  165. package/dist/utils/callApi.js.map +0 -1
  166. package/dist/utils/fetchLocalProject.d.ts +0 -1
  167. package/dist/utils/fetchLocalProject.js +0 -12
  168. package/dist/utils/fetchLocalProject.js.map +0 -1
  169. package/dist/utils/saveProject.d.ts +0 -2
  170. package/dist/utils/saveProject.js +0 -68
  171. package/dist/utils/saveProject.js.map +0 -1
  172. package/eslint.config.js +0 -27
  173. package/src/accounts/index.ts +0 -41
  174. package/src/index.ts +0 -22
  175. package/src/now/index.test.ts +0 -31
  176. package/src/now/index.ts +0 -15
  177. package/src/projects/describe.ts +0 -80
  178. package/src/projects/index.ts +0 -61
  179. package/src/pull/index.ts +0 -45
  180. package/src/run/index.ts +0 -81
  181. package/src/utils/callApi.ts +0 -29
  182. package/src/utils/fetchLocalProject.ts +0 -12
  183. package/src/utils/saveProject.ts +0 -106
  184. package/src/whoami/index.ts +0 -32
  185. package/tsconfig.json +0 -28
@@ -0,0 +1,1784 @@
1
+ export type Maybe<T> = T | null;
2
+ export type InputMaybe<T> = T | null;
3
+ export type Exact<T extends {
4
+ [key: string]: unknown;
5
+ }> = {
6
+ [K in keyof T]: T[K];
7
+ };
8
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
9
+ [SubKey in K]?: Maybe<T[SubKey]>;
10
+ };
11
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
+ [SubKey in K]: Maybe<T[SubKey]>;
13
+ };
14
+ export type MakeEmpty<T extends {
15
+ [key: string]: unknown;
16
+ }, K extends keyof T> = {
17
+ [_ in K]?: never;
18
+ };
19
+ export type Incremental<T> = T | {
20
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
21
+ };
22
+ export type Scalars = {
23
+ ID: {
24
+ input: string;
25
+ output: string;
26
+ };
27
+ String: {
28
+ input: string;
29
+ output: string;
30
+ };
31
+ Boolean: {
32
+ input: boolean;
33
+ output: boolean;
34
+ };
35
+ Int: {
36
+ input: number;
37
+ output: number;
38
+ };
39
+ Float: {
40
+ input: number;
41
+ output: number;
42
+ };
43
+ Date: {
44
+ input: any;
45
+ output: any;
46
+ };
47
+ DateTime: {
48
+ input: any;
49
+ output: any;
50
+ };
51
+ JSON: {
52
+ input: any;
53
+ output: any;
54
+ };
55
+ PrimitiveValue: {
56
+ input: any;
57
+ output: any;
58
+ };
59
+ };
60
+ export type Account = {
61
+ __typename?: 'Account';
62
+ createdAt: Scalars['DateTime']['output'];
63
+ id: Scalars['ID']['output'];
64
+ integrations: IntegrationConnection;
65
+ key: Scalars['ID']['output'];
66
+ name: Scalars['String']['output'];
67
+ status: Status;
68
+ updatedAt: Scalars['DateTime']['output'];
69
+ users: AccountUsersEdgeConnection;
70
+ };
71
+ export type AccountIntegrationsArgs = {
72
+ after?: InputMaybe<Scalars['ID']['input']>;
73
+ before?: InputMaybe<Scalars['ID']['input']>;
74
+ direction?: InputMaybe<Direction>;
75
+ first?: InputMaybe<Scalars['Int']['input']>;
76
+ last?: InputMaybe<Scalars['Int']['input']>;
77
+ orderBy?: InputMaybe<IntegrationOrderField>;
78
+ };
79
+ export type AccountConnection = {
80
+ __typename?: 'AccountConnection';
81
+ nodes: Array<Account>;
82
+ pageInfo: PageInfo;
83
+ totalCount: Scalars['Int']['output'];
84
+ };
85
+ export declare enum AccountOrderField {
86
+ CreatedAt = "createdAt",
87
+ Name = "name",
88
+ UpdatedAt = "updatedAt"
89
+ }
90
+ export declare enum AccountRole {
91
+ Admin = "admin",
92
+ Member = "member",
93
+ Owner = "owner"
94
+ }
95
+ export type AccountUserEdge = {
96
+ __typename?: 'AccountUserEdge';
97
+ cursor: Scalars['String']['output'];
98
+ role: AccountRole;
99
+ user: User;
100
+ };
101
+ export type AccountUsersEdgeConnection = {
102
+ __typename?: 'AccountUsersEdgeConnection';
103
+ edges: Array<AccountUserEdge>;
104
+ nodes: Array<User>;
105
+ pageInfo: PageInfo;
106
+ totalCount: Scalars['Int']['output'];
107
+ };
108
+ export type Auth = Element & {
109
+ __typename?: 'Auth';
110
+ content?: Maybe<ElementContent>;
111
+ createdAt: Scalars['DateTime']['output'];
112
+ description?: Maybe<Scalars['String']['output']>;
113
+ id: Scalars['ID']['output'];
114
+ key: Scalars['ID']['output'];
115
+ name: Scalars['String']['output'];
116
+ updatedAt: Scalars['DateTime']['output'];
117
+ };
118
+ export type ConfigElement = Element & {
119
+ __typename?: 'ConfigElement';
120
+ content?: Maybe<ElementContent>;
121
+ createdAt: Scalars['DateTime']['output'];
122
+ description?: Maybe<Scalars['String']['output']>;
123
+ id: Scalars['ID']['output'];
124
+ key: Scalars['ID']['output'];
125
+ name: Scalars['String']['output'];
126
+ updatedAt: Scalars['DateTime']['output'];
127
+ };
128
+ export type Dictionary = Element & {
129
+ __typename?: 'Dictionary';
130
+ content?: Maybe<ElementContent>;
131
+ createdAt: Scalars['DateTime']['output'];
132
+ description?: Maybe<Scalars['String']['output']>;
133
+ id: Scalars['ID']['output'];
134
+ key: Scalars['ID']['output'];
135
+ name: Scalars['String']['output'];
136
+ updatedAt: Scalars['DateTime']['output'];
137
+ };
138
+ export declare enum Direction {
139
+ Asc = "asc",
140
+ Desc = "desc"
141
+ }
142
+ export type Element = {
143
+ content?: Maybe<ElementContent>;
144
+ createdAt: Scalars['DateTime']['output'];
145
+ description?: Maybe<Scalars['String']['output']>;
146
+ id: Scalars['ID']['output'];
147
+ key: Scalars['ID']['output'];
148
+ name: Scalars['String']['output'];
149
+ updatedAt: Scalars['DateTime']['output'];
150
+ };
151
+ export type ElementContent = {
152
+ __typename?: 'ElementContent';
153
+ checksum?: Maybe<Scalars['String']['output']>;
154
+ data?: Maybe<Scalars['JSON']['output']>;
155
+ timestamp: Scalars['Date']['output'];
156
+ };
157
+ export declare enum ElementType {
158
+ Auth = "auth",
159
+ Config = "config",
160
+ Dictionary = "dictionary",
161
+ Flow = "flow",
162
+ Job = "job",
163
+ Mutation = "mutation",
164
+ RetryRule = "retryRule",
165
+ Schema = "schema",
166
+ Service = "service",
167
+ Value = "value"
168
+ }
169
+ export type Flow = Element & {
170
+ __typename?: 'Flow';
171
+ content?: Maybe<ElementContent>;
172
+ createdAt: Scalars['DateTime']['output'];
173
+ description?: Maybe<Scalars['String']['output']>;
174
+ id: Scalars['ID']['output'];
175
+ key: Scalars['ID']['output'];
176
+ lastRun?: Maybe<Log>;
177
+ name: Scalars['String']['output'];
178
+ sort?: Maybe<Scalars['Int']['output']>;
179
+ updatedAt: Scalars['DateTime']['output'];
180
+ };
181
+ export type Integration = {
182
+ __typename?: 'Integration';
183
+ account: Account;
184
+ active?: Maybe<Version>;
185
+ createdAt: Scalars['DateTime']['output'];
186
+ description?: Maybe<Scalars['String']['output']>;
187
+ id: Scalars['ID']['output'];
188
+ key: Scalars['ID']['output'];
189
+ latest: Version;
190
+ logEntries: LogEntryConnection;
191
+ logs: LogConnection;
192
+ name: Scalars['String']['output'];
193
+ notifications: NotificationConnection;
194
+ status: Status;
195
+ updatedAt: Scalars['DateTime']['output'];
196
+ versions: Array<Version>;
197
+ };
198
+ export type IntegrationLogEntriesArgs = {
199
+ after?: InputMaybe<Scalars['ID']['input']>;
200
+ before?: InputMaybe<Scalars['ID']['input']>;
201
+ direction?: InputMaybe<Direction>;
202
+ first?: InputMaybe<Scalars['Int']['input']>;
203
+ last?: InputMaybe<Scalars['Int']['input']>;
204
+ };
205
+ export type IntegrationLogsArgs = {
206
+ after?: InputMaybe<Scalars['ID']['input']>;
207
+ before?: InputMaybe<Scalars['ID']['input']>;
208
+ direction?: InputMaybe<Direction>;
209
+ first?: InputMaybe<Scalars['Int']['input']>;
210
+ last?: InputMaybe<Scalars['Int']['input']>;
211
+ };
212
+ export type IntegrationNotificationsArgs = {
213
+ isAcknowledged?: InputMaybe<Scalars['Boolean']['input']>;
214
+ };
215
+ export type IntegrationConnection = {
216
+ __typename?: 'IntegrationConnection';
217
+ nodes: Array<Integration>;
218
+ pageInfo: PageInfo;
219
+ totalCount: Scalars['Int']['output'];
220
+ };
221
+ export declare enum IntegrationOrderField {
222
+ Account = "account",
223
+ CreatedAt = "createdAt",
224
+ Name = "name",
225
+ UpdatedAt = "updatedAt"
226
+ }
227
+ export type Job = Element & {
228
+ __typename?: 'Job';
229
+ content?: Maybe<ElementContent>;
230
+ createdAt: Scalars['DateTime']['output'];
231
+ cron?: Maybe<Scalars['String']['output']>;
232
+ description?: Maybe<Scalars['String']['output']>;
233
+ id: Scalars['ID']['output'];
234
+ isSubJob?: Maybe<Scalars['Boolean']['output']>;
235
+ key: Scalars['ID']['output'];
236
+ lastRun?: Maybe<Log>;
237
+ name: Scalars['String']['output'];
238
+ sort?: Maybe<Scalars['Int']['output']>;
239
+ tz?: Maybe<Scalars['String']['output']>;
240
+ updatedAt: Scalars['DateTime']['output'];
241
+ };
242
+ export type Log = {
243
+ __typename?: 'Log';
244
+ action?: Maybe<Scalars['String']['output']>;
245
+ children: LogConnection;
246
+ completedAt?: Maybe<Scalars['DateTime']['output']>;
247
+ correlationId: Scalars['String']['output'];
248
+ expireDataAt?: Maybe<Scalars['DateTime']['output']>;
249
+ id: Scalars['ID']['output'];
250
+ identId?: Maybe<Scalars['String']['output']>;
251
+ retryCount: Scalars['Int']['output'];
252
+ startedAt: Scalars['DateTime']['output'];
253
+ status?: Maybe<LogStatus>;
254
+ title: Scalars['String']['output'];
255
+ type: LogType;
256
+ };
257
+ export type LogChildrenArgs = {
258
+ after?: InputMaybe<Scalars['ID']['input']>;
259
+ before?: InputMaybe<Scalars['ID']['input']>;
260
+ direction?: InputMaybe<Direction>;
261
+ first?: InputMaybe<Scalars['Int']['input']>;
262
+ last?: InputMaybe<Scalars['Int']['input']>;
263
+ };
264
+ export type LogConnection = {
265
+ __typename?: 'LogConnection';
266
+ nodes: Array<Log>;
267
+ pageInfo: PageInfo;
268
+ totalCount: Scalars['Int']['output'];
269
+ };
270
+ export type LogEntry = {
271
+ __typename?: 'LogEntry';
272
+ action?: Maybe<Scalars['String']['output']>;
273
+ correlationId: Scalars['String']['output'];
274
+ expireDataAt?: Maybe<Scalars['DateTime']['output']>;
275
+ id: Scalars['ID']['output'];
276
+ identId?: Maybe<Scalars['String']['output']>;
277
+ retryCount: Scalars['Int']['output'];
278
+ status?: Maybe<LogStatus>;
279
+ timestamp: Scalars['DateTime']['output'];
280
+ title: Scalars['String']['output'];
281
+ type: LogType;
282
+ };
283
+ export type LogEntryConnection = {
284
+ __typename?: 'LogEntryConnection';
285
+ nodes: Array<LogEntry>;
286
+ pageInfo: PageInfo;
287
+ totalCount: Scalars['Int']['output'];
288
+ };
289
+ export declare enum LogStatus {
290
+ Autherror = "autherror",
291
+ Badrequest = "badrequest",
292
+ Badresponse = "badresponse",
293
+ Error = "error",
294
+ Noaccess = "noaccess",
295
+ Noaction = "noaction",
296
+ Notfound = "notfound",
297
+ Ok = "ok",
298
+ Pending = "pending",
299
+ Queued = "queued",
300
+ Queuing = "queuing",
301
+ Starting = "starting",
302
+ Timeout = "timeout",
303
+ Toomany = "toomany"
304
+ }
305
+ export declare enum LogType {
306
+ Action = "action",
307
+ Load = "load",
308
+ Response = "response",
309
+ Schedule = "schedule",
310
+ Unload = "unload"
311
+ }
312
+ export type Message = {
313
+ __typename?: 'Message';
314
+ createdAt: Scalars['DateTime']['output'];
315
+ id: Scalars['ID']['output'];
316
+ message: Scalars['String']['output'];
317
+ updatedAt: Scalars['DateTime']['output'];
318
+ user: User;
319
+ };
320
+ export type MessageConnection = {
321
+ __typename?: 'MessageConnection';
322
+ nodes: Array<Message>;
323
+ pageInfo: PageInfo;
324
+ totalCount: Scalars['Int']['output'];
325
+ };
326
+ export type Mutation = {
327
+ __typename?: 'Mutation';
328
+ acknowledgeNotification: Notification;
329
+ addParticipant: Participant;
330
+ createAccount: Account;
331
+ createElement: Element;
332
+ createIntegration: Integration;
333
+ createThread: Thread;
334
+ createUser: User;
335
+ createVersion: Version;
336
+ deleteAccount: Scalars['Boolean']['output'];
337
+ deleteElement: Element;
338
+ deleteIntegration: Scalars['Boolean']['output'];
339
+ deleteThread: Thread;
340
+ dispatch: Response;
341
+ includeElement: Element;
342
+ postMessage: Message;
343
+ removeParticipant: Participant;
344
+ setElementContent: Element;
345
+ setValue: Scalars['Boolean']['output'];
346
+ startIntegration: Integration;
347
+ stopIntegration: Integration;
348
+ updateAccountKey: Account;
349
+ updateAccountName: Account;
350
+ updateElement: Element;
351
+ updateElementKey: Element;
352
+ updateIntegration: Integration;
353
+ updateIntegrationKey: Integration;
354
+ updateThreadTitle: Thread;
355
+ updateUserEmail: User;
356
+ updateUserName: User;
357
+ updateVersion: Version;
358
+ };
359
+ export type MutationAcknowledgeNotificationArgs = {
360
+ id: Scalars['ID']['input'];
361
+ };
362
+ export type MutationAddParticipantArgs = {
363
+ threadId: Scalars['ID']['input'];
364
+ userId: Scalars['ID']['input'];
365
+ };
366
+ export type MutationCreateAccountArgs = {
367
+ key?: InputMaybe<Scalars['ID']['input']>;
368
+ name: Scalars['String']['input'];
369
+ };
370
+ export type MutationCreateElementArgs = {
371
+ description?: InputMaybe<Scalars['String']['input']>;
372
+ integrationId: Scalars['ID']['input'];
373
+ key: Scalars['ID']['input'];
374
+ name: Scalars['String']['input'];
375
+ type: ElementType;
376
+ };
377
+ export type MutationCreateIntegrationArgs = {
378
+ accountId: Scalars['ID']['input'];
379
+ description?: InputMaybe<Scalars['String']['input']>;
380
+ key?: InputMaybe<Scalars['ID']['input']>;
381
+ name: Scalars['String']['input'];
382
+ };
383
+ export type MutationCreateThreadArgs = {
384
+ title: Scalars['String']['input'];
385
+ };
386
+ export type MutationCreateUserArgs = {
387
+ email: Scalars['String']['input'];
388
+ name: Scalars['String']['input'];
389
+ };
390
+ export type MutationCreateVersionArgs = {
391
+ integrationId: Scalars['ID']['input'];
392
+ name?: InputMaybe<Scalars['String']['input']>;
393
+ timestamp?: InputMaybe<Scalars['DateTime']['input']>;
394
+ };
395
+ export type MutationDeleteAccountArgs = {
396
+ id: Scalars['ID']['input'];
397
+ };
398
+ export type MutationDeleteElementArgs = {
399
+ id: Scalars['ID']['input'];
400
+ };
401
+ export type MutationDeleteIntegrationArgs = {
402
+ id: Scalars['ID']['input'];
403
+ };
404
+ export type MutationDeleteThreadArgs = {
405
+ id: Scalars['ID']['input'];
406
+ };
407
+ export type MutationDispatchArgs = {
408
+ integrationId: Scalars['ID']['input'];
409
+ payload: Scalars['JSON']['input'];
410
+ type: Scalars['String']['input'];
411
+ waitForResponse?: InputMaybe<Scalars['Boolean']['input']>;
412
+ };
413
+ export type MutationIncludeElementArgs = {
414
+ elementId: Scalars['ID']['input'];
415
+ integrationId: Scalars['ID']['input'];
416
+ };
417
+ export type MutationPostMessageArgs = {
418
+ message: Scalars['String']['input'];
419
+ threadId: Scalars['ID']['input'];
420
+ };
421
+ export type MutationRemoveParticipantArgs = {
422
+ threadId: Scalars['ID']['input'];
423
+ userId: Scalars['ID']['input'];
424
+ };
425
+ export type MutationSetElementContentArgs = {
426
+ content?: InputMaybe<Scalars['JSON']['input']>;
427
+ id: Scalars['ID']['input'];
428
+ };
429
+ export type MutationSetValueArgs = {
430
+ id: Scalars['ID']['input'];
431
+ value: Scalars['PrimitiveValue']['input'];
432
+ };
433
+ export type MutationStartIntegrationArgs = {
434
+ id: Scalars['ID']['input'];
435
+ versionId?: InputMaybe<Scalars['ID']['input']>;
436
+ };
437
+ export type MutationStopIntegrationArgs = {
438
+ id: Scalars['ID']['input'];
439
+ };
440
+ export type MutationUpdateAccountKeyArgs = {
441
+ id: Scalars['ID']['input'];
442
+ key: Scalars['ID']['input'];
443
+ };
444
+ export type MutationUpdateAccountNameArgs = {
445
+ id: Scalars['ID']['input'];
446
+ name: Scalars['String']['input'];
447
+ };
448
+ export type MutationUpdateElementArgs = {
449
+ description?: InputMaybe<Scalars['String']['input']>;
450
+ id: Scalars['ID']['input'];
451
+ name?: InputMaybe<Scalars['String']['input']>;
452
+ };
453
+ export type MutationUpdateElementKeyArgs = {
454
+ id: Scalars['ID']['input'];
455
+ key: Scalars['ID']['input'];
456
+ };
457
+ export type MutationUpdateIntegrationArgs = {
458
+ description?: InputMaybe<Scalars['String']['input']>;
459
+ id: Scalars['ID']['input'];
460
+ name?: InputMaybe<Scalars['String']['input']>;
461
+ };
462
+ export type MutationUpdateIntegrationKeyArgs = {
463
+ id: Scalars['ID']['input'];
464
+ key: Scalars['ID']['input'];
465
+ };
466
+ export type MutationUpdateThreadTitleArgs = {
467
+ id: Scalars['ID']['input'];
468
+ title: Scalars['String']['input'];
469
+ };
470
+ export type MutationUpdateUserEmailArgs = {
471
+ email: Scalars['String']['input'];
472
+ id: Scalars['ID']['input'];
473
+ };
474
+ export type MutationUpdateUserNameArgs = {
475
+ id: Scalars['ID']['input'];
476
+ name: Scalars['String']['input'];
477
+ };
478
+ export type MutationUpdateVersionArgs = {
479
+ id: Scalars['ID']['input'];
480
+ name?: InputMaybe<Scalars['String']['input']>;
481
+ };
482
+ export type Notification = {
483
+ __typename?: 'Notification';
484
+ acknowledgedAt?: Maybe<Scalars['DateTime']['output']>;
485
+ acknowledgedByUser?: Maybe<User>;
486
+ createdAt: Scalars['DateTime']['output'];
487
+ description?: Maybe<Scalars['String']['output']>;
488
+ id: Scalars['ID']['output'];
489
+ integration?: Maybe<Integration>;
490
+ isAcknowledged: Scalars['Boolean']['output'];
491
+ log?: Maybe<LogEntry>;
492
+ title: Scalars['String']['output'];
493
+ type: NotificationType;
494
+ updatedAt: Scalars['DateTime']['output'];
495
+ };
496
+ export type NotificationConnection = {
497
+ __typename?: 'NotificationConnection';
498
+ nodes: Array<Notification>;
499
+ pageInfo: PageInfo;
500
+ totalCount: Scalars['Int']['output'];
501
+ };
502
+ export declare enum NotificationType {
503
+ Failure = "failure",
504
+ Warning = "warning"
505
+ }
506
+ export type PageInfo = {
507
+ __typename?: 'PageInfo';
508
+ endCursor?: Maybe<Scalars['String']['output']>;
509
+ hasNextPage: Scalars['Boolean']['output'];
510
+ hasPreviousPage: Scalars['Boolean']['output'];
511
+ startCursor?: Maybe<Scalars['String']['output']>;
512
+ };
513
+ export type Participant = {
514
+ __typename?: 'Participant';
515
+ lastSeenAt?: Maybe<Scalars['DateTime']['output']>;
516
+ thread: Thread;
517
+ user: User;
518
+ };
519
+ export type ParticipantConnection = {
520
+ __typename?: 'ParticipantConnection';
521
+ edges: Array<ParticipantEdge>;
522
+ nodes: Array<User>;
523
+ pageInfo: PageInfo;
524
+ totalCount: Scalars['Int']['output'];
525
+ };
526
+ export type ParticipantEdge = {
527
+ __typename?: 'ParticipantEdge';
528
+ cursor: Scalars['String']['output'];
529
+ lastSeenAt?: Maybe<Scalars['DateTime']['output']>;
530
+ lastSeenMessage?: Maybe<Message>;
531
+ user: User;
532
+ };
533
+ export type Query = {
534
+ __typename?: 'Query';
535
+ account?: Maybe<Account>;
536
+ accountByKey?: Maybe<Account>;
537
+ accounts?: Maybe<AccountConnection>;
538
+ element: Element;
539
+ elementByKey: Element;
540
+ integration?: Maybe<Integration>;
541
+ integrationByKey?: Maybe<Integration>;
542
+ integrations: IntegrationConnection;
543
+ log: Log;
544
+ logEntry: LogEntry;
545
+ notifications: NotificationConnection;
546
+ session: Session;
547
+ thread: Thread;
548
+ threads: ThreadConnection;
549
+ user?: Maybe<User>;
550
+ users?: Maybe<UserConnection>;
551
+ };
552
+ export type QueryAccountArgs = {
553
+ id: Scalars['ID']['input'];
554
+ };
555
+ export type QueryAccountByKeyArgs = {
556
+ key: Scalars['ID']['input'];
557
+ };
558
+ export type QueryAccountsArgs = {
559
+ after?: InputMaybe<Scalars['ID']['input']>;
560
+ before?: InputMaybe<Scalars['ID']['input']>;
561
+ direction?: InputMaybe<Direction>;
562
+ first?: InputMaybe<Scalars['Int']['input']>;
563
+ last?: InputMaybe<Scalars['Int']['input']>;
564
+ orderBy?: InputMaybe<AccountOrderField>;
565
+ };
566
+ export type QueryElementArgs = {
567
+ id: Scalars['ID']['input'];
568
+ versionId?: InputMaybe<Scalars['ID']['input']>;
569
+ };
570
+ export type QueryElementByKeyArgs = {
571
+ integrationId: Scalars['ID']['input'];
572
+ key: Scalars['ID']['input'];
573
+ type: ElementType;
574
+ versionId?: InputMaybe<Scalars['ID']['input']>;
575
+ };
576
+ export type QueryIntegrationArgs = {
577
+ id: Scalars['ID']['input'];
578
+ };
579
+ export type QueryIntegrationByKeyArgs = {
580
+ accountId: Scalars['ID']['input'];
581
+ key: Scalars['ID']['input'];
582
+ };
583
+ export type QueryIntegrationsArgs = {
584
+ after?: InputMaybe<Scalars['ID']['input']>;
585
+ before?: InputMaybe<Scalars['ID']['input']>;
586
+ direction?: InputMaybe<Direction>;
587
+ first?: InputMaybe<Scalars['Int']['input']>;
588
+ last?: InputMaybe<Scalars['Int']['input']>;
589
+ orderBy?: InputMaybe<IntegrationOrderField>;
590
+ };
591
+ export type QueryLogArgs = {
592
+ id: Scalars['ID']['input'];
593
+ };
594
+ export type QueryLogEntryArgs = {
595
+ id: Scalars['ID']['input'];
596
+ };
597
+ export type QueryNotificationsArgs = {
598
+ isAcknowledged?: InputMaybe<Scalars['Boolean']['input']>;
599
+ };
600
+ export type QueryThreadArgs = {
601
+ id: Scalars['ID']['input'];
602
+ };
603
+ export type QueryUserArgs = {
604
+ id: Scalars['ID']['input'];
605
+ };
606
+ export type Response = {
607
+ __typename?: 'Response';
608
+ data?: Maybe<Scalars['JSON']['output']>;
609
+ error?: Maybe<Scalars['String']['output']>;
610
+ id: Scalars['String']['output'];
611
+ origin?: Maybe<Scalars['String']['output']>;
612
+ paging?: Maybe<ResponsePagination>;
613
+ params?: Maybe<Scalars['JSON']['output']>;
614
+ reason?: Maybe<Scalars['String']['output']>;
615
+ status: Scalars['String']['output'];
616
+ warning?: Maybe<Scalars['String']['output']>;
617
+ };
618
+ export type ResponsePagination = {
619
+ __typename?: 'ResponsePagination';
620
+ next?: Maybe<Scalars['JSON']['output']>;
621
+ prev?: Maybe<Scalars['JSON']['output']>;
622
+ };
623
+ export type RetryRule = Element & {
624
+ __typename?: 'RetryRule';
625
+ content?: Maybe<ElementContent>;
626
+ createdAt: Scalars['DateTime']['output'];
627
+ description?: Maybe<Scalars['String']['output']>;
628
+ id: Scalars['ID']['output'];
629
+ key: Scalars['ID']['output'];
630
+ name: Scalars['String']['output'];
631
+ updatedAt: Scalars['DateTime']['output'];
632
+ };
633
+ export type Schema = Element & {
634
+ __typename?: 'Schema';
635
+ content?: Maybe<ElementContent>;
636
+ createdAt: Scalars['DateTime']['output'];
637
+ description?: Maybe<Scalars['String']['output']>;
638
+ id: Scalars['ID']['output'];
639
+ key: Scalars['ID']['output'];
640
+ name: Scalars['String']['output'];
641
+ updatedAt: Scalars['DateTime']['output'];
642
+ };
643
+ export type SchemaMutation = Element & {
644
+ __typename?: 'SchemaMutation';
645
+ content?: Maybe<ElementContent>;
646
+ createdAt: Scalars['DateTime']['output'];
647
+ description?: Maybe<Scalars['String']['output']>;
648
+ id: Scalars['ID']['output'];
649
+ key: Scalars['ID']['output'];
650
+ name: Scalars['String']['output'];
651
+ updatedAt: Scalars['DateTime']['output'];
652
+ };
653
+ export type Service = Element & {
654
+ __typename?: 'Service';
655
+ content?: Maybe<ElementContent>;
656
+ createdAt: Scalars['DateTime']['output'];
657
+ description?: Maybe<Scalars['String']['output']>;
658
+ id: Scalars['ID']['output'];
659
+ key: Scalars['ID']['output'];
660
+ name: Scalars['String']['output'];
661
+ updatedAt: Scalars['DateTime']['output'];
662
+ };
663
+ export type Session = {
664
+ __typename?: 'Session';
665
+ accounts: Array<Account>;
666
+ user?: Maybe<User>;
667
+ };
668
+ export declare enum Status {
669
+ Active = "active",
670
+ Inactive = "inactive"
671
+ }
672
+ export type Thread = {
673
+ __typename?: 'Thread';
674
+ createdAt: Scalars['DateTime']['output'];
675
+ id: Scalars['ID']['output'];
676
+ messages: MessageConnection;
677
+ participants: ParticipantConnection;
678
+ status: Status;
679
+ title: Scalars['String']['output'];
680
+ updatedAt: Scalars['DateTime']['output'];
681
+ };
682
+ export type ThreadConnection = {
683
+ __typename?: 'ThreadConnection';
684
+ nodes: Array<Thread>;
685
+ pageInfo: PageInfo;
686
+ totalCount: Scalars['Int']['output'];
687
+ };
688
+ export type User = {
689
+ __typename?: 'User';
690
+ createdAt: Scalars['DateTime']['output'];
691
+ email?: Maybe<Scalars['String']['output']>;
692
+ id: Scalars['ID']['output'];
693
+ name: Scalars['String']['output'];
694
+ roles: Array<Scalars['String']['output']>;
695
+ status: Status;
696
+ updatedAt: Scalars['DateTime']['output'];
697
+ };
698
+ export type UserConnection = {
699
+ __typename?: 'UserConnection';
700
+ nodes: Array<User>;
701
+ pageInfo: PageInfo;
702
+ totalCount: Scalars['Int']['output'];
703
+ };
704
+ export type Value = Element & {
705
+ __typename?: 'Value';
706
+ content?: Maybe<ElementContent>;
707
+ createdAt: Scalars['DateTime']['output'];
708
+ description?: Maybe<Scalars['String']['output']>;
709
+ id: Scalars['ID']['output'];
710
+ key: Scalars['ID']['output'];
711
+ name: Scalars['String']['output'];
712
+ updatedAt: Scalars['DateTime']['output'];
713
+ value?: Maybe<Scalars['PrimitiveValue']['output']>;
714
+ };
715
+ export type Version = {
716
+ __typename?: 'Version';
717
+ auths: Array<Auth>;
718
+ config?: Maybe<ConfigElement>;
719
+ dictionaries: Array<Dictionary>;
720
+ elements: Array<Element>;
721
+ flows: Array<Flow>;
722
+ id: Scalars['ID']['output'];
723
+ isActive: Scalars['Boolean']['output'];
724
+ jobs: Array<Job>;
725
+ mutations: Array<SchemaMutation>;
726
+ name?: Maybe<Scalars['String']['output']>;
727
+ schemas: Array<Schema>;
728
+ services: Array<Service>;
729
+ timestamp: Scalars['DateTime']['output'];
730
+ values: Array<Value>;
731
+ };
732
+ export type VersionElementsArgs = {
733
+ type?: InputMaybe<Array<ElementType>>;
734
+ };
735
+ export type CreateAccountMutationVariables = Exact<{
736
+ name: Scalars['String']['input'];
737
+ key?: InputMaybe<Scalars['ID']['input']>;
738
+ }>;
739
+ export type CreateAccountMutation = {
740
+ __typename?: 'Mutation';
741
+ createAccount: {
742
+ __typename?: 'Account';
743
+ id: string;
744
+ key: string;
745
+ name: string;
746
+ createdAt: any;
747
+ };
748
+ };
749
+ export type AccountsQueryVariables = Exact<{
750
+ [key: string]: never;
751
+ }>;
752
+ export type AccountsQuery = {
753
+ __typename?: 'Query';
754
+ accounts?: {
755
+ __typename?: 'AccountConnection';
756
+ totalCount: number;
757
+ nodes: Array<{
758
+ __typename?: 'Account';
759
+ id: string;
760
+ name: string;
761
+ key: string;
762
+ }>;
763
+ } | null;
764
+ };
765
+ export type IntegrationDefinitionQueryVariables = Exact<{
766
+ id: Scalars['ID']['input'];
767
+ }>;
768
+ export type IntegrationDefinitionQuery = {
769
+ __typename?: 'Query';
770
+ integration?: {
771
+ __typename?: 'Integration';
772
+ id: string;
773
+ key: string;
774
+ name: string;
775
+ description?: string | null;
776
+ status: Status;
777
+ account: {
778
+ __typename?: 'Account';
779
+ id: string;
780
+ key: string;
781
+ name: string;
782
+ };
783
+ latest: {
784
+ __typename?: 'Version';
785
+ timestamp: any;
786
+ elements: Array<{
787
+ __typename: 'Auth';
788
+ id: string;
789
+ key: string;
790
+ name: string;
791
+ content?: {
792
+ __typename?: 'ElementContent';
793
+ timestamp: any;
794
+ data?: any | null;
795
+ } | null;
796
+ } | {
797
+ __typename: 'ConfigElement';
798
+ id: string;
799
+ key: string;
800
+ name: string;
801
+ content?: {
802
+ __typename?: 'ElementContent';
803
+ timestamp: any;
804
+ data?: any | null;
805
+ } | null;
806
+ } | {
807
+ __typename: 'Dictionary';
808
+ id: string;
809
+ key: string;
810
+ name: string;
811
+ content?: {
812
+ __typename?: 'ElementContent';
813
+ timestamp: any;
814
+ data?: any | null;
815
+ } | null;
816
+ } | {
817
+ __typename: 'Flow';
818
+ id: string;
819
+ key: string;
820
+ name: string;
821
+ content?: {
822
+ __typename?: 'ElementContent';
823
+ timestamp: any;
824
+ data?: any | null;
825
+ } | null;
826
+ } | {
827
+ __typename: 'Job';
828
+ id: string;
829
+ key: string;
830
+ name: string;
831
+ content?: {
832
+ __typename?: 'ElementContent';
833
+ timestamp: any;
834
+ data?: any | null;
835
+ } | null;
836
+ } | {
837
+ __typename: 'RetryRule';
838
+ id: string;
839
+ key: string;
840
+ name: string;
841
+ content?: {
842
+ __typename?: 'ElementContent';
843
+ timestamp: any;
844
+ data?: any | null;
845
+ } | null;
846
+ } | {
847
+ __typename: 'Schema';
848
+ id: string;
849
+ key: string;
850
+ name: string;
851
+ content?: {
852
+ __typename?: 'ElementContent';
853
+ timestamp: any;
854
+ data?: any | null;
855
+ } | null;
856
+ } | {
857
+ __typename: 'SchemaMutation';
858
+ id: string;
859
+ key: string;
860
+ name: string;
861
+ content?: {
862
+ __typename?: 'ElementContent';
863
+ timestamp: any;
864
+ data?: any | null;
865
+ } | null;
866
+ } | {
867
+ __typename: 'Service';
868
+ id: string;
869
+ key: string;
870
+ name: string;
871
+ content?: {
872
+ __typename?: 'ElementContent';
873
+ timestamp: any;
874
+ data?: any | null;
875
+ } | null;
876
+ } | {
877
+ __typename: 'Value';
878
+ id: string;
879
+ key: string;
880
+ name: string;
881
+ content?: {
882
+ __typename?: 'ElementContent';
883
+ timestamp: any;
884
+ data?: any | null;
885
+ } | null;
886
+ }>;
887
+ };
888
+ } | null;
889
+ };
890
+ export type CreateVersionMutationVariables = Exact<{
891
+ integrationId: Scalars['ID']['input'];
892
+ name?: InputMaybe<Scalars['String']['input']>;
893
+ timestamp?: InputMaybe<Scalars['DateTime']['input']>;
894
+ }>;
895
+ export type CreateVersionMutation = {
896
+ __typename?: 'Mutation';
897
+ createVersion: {
898
+ __typename?: 'Version';
899
+ id: string;
900
+ name?: string | null;
901
+ timestamp: any;
902
+ isActive: boolean;
903
+ };
904
+ };
905
+ export type StartIntegrationMutationVariables = Exact<{
906
+ id: Scalars['ID']['input'];
907
+ versionId?: InputMaybe<Scalars['ID']['input']>;
908
+ }>;
909
+ export type StartIntegrationMutation = {
910
+ __typename?: 'Mutation';
911
+ startIntegration: {
912
+ __typename?: 'Integration';
913
+ id: string;
914
+ name: string;
915
+ status: Status;
916
+ };
917
+ };
918
+ export type CreateIntegrationMutationVariables = Exact<{
919
+ accountId: Scalars['ID']['input'];
920
+ name: Scalars['String']['input'];
921
+ key?: InputMaybe<Scalars['ID']['input']>;
922
+ description?: InputMaybe<Scalars['String']['input']>;
923
+ }>;
924
+ export type CreateIntegrationMutation = {
925
+ __typename?: 'Mutation';
926
+ createIntegration: {
927
+ __typename?: 'Integration';
928
+ id: string;
929
+ key: string;
930
+ name: string;
931
+ createdAt: any;
932
+ description?: string | null;
933
+ status: Status;
934
+ account: {
935
+ __typename?: 'Account';
936
+ id: string;
937
+ };
938
+ };
939
+ };
940
+ export type IntegrationsQueryVariables = Exact<{
941
+ [key: string]: never;
942
+ }>;
943
+ export type IntegrationsQuery = {
944
+ __typename?: 'Query';
945
+ integrations: {
946
+ __typename?: 'IntegrationConnection';
947
+ totalCount: number;
948
+ nodes: Array<{
949
+ __typename?: 'Integration';
950
+ id: string;
951
+ name: string;
952
+ key: string;
953
+ }>;
954
+ };
955
+ };
956
+ export type IntegrationsForAccountQueryVariables = Exact<{
957
+ accountId: Scalars['ID']['input'];
958
+ }>;
959
+ export type IntegrationsForAccountQuery = {
960
+ __typename?: 'Query';
961
+ account?: {
962
+ __typename?: 'Account';
963
+ name: string;
964
+ integrations: {
965
+ __typename?: 'IntegrationConnection';
966
+ totalCount: number;
967
+ nodes: Array<{
968
+ __typename?: 'Integration';
969
+ id: string;
970
+ name: string;
971
+ key: string;
972
+ }>;
973
+ };
974
+ } | null;
975
+ };
976
+ export type IntegrationForPushQueryVariables = Exact<{
977
+ id: Scalars['ID']['input'];
978
+ }>;
979
+ export type IntegrationForPushQuery = {
980
+ __typename?: 'Query';
981
+ integration?: {
982
+ __typename?: 'Integration';
983
+ id: string;
984
+ key: string;
985
+ name: string;
986
+ latest: {
987
+ __typename?: 'Version';
988
+ timestamp: any;
989
+ elements: Array<{
990
+ __typename: 'Auth';
991
+ id: string;
992
+ key: string;
993
+ name: string;
994
+ description?: string | null;
995
+ createdAt: any;
996
+ content?: {
997
+ __typename?: 'ElementContent';
998
+ checksum?: string | null;
999
+ timestamp: any;
1000
+ } | null;
1001
+ } | {
1002
+ __typename: 'ConfigElement';
1003
+ id: string;
1004
+ key: string;
1005
+ name: string;
1006
+ description?: string | null;
1007
+ createdAt: any;
1008
+ content?: {
1009
+ __typename?: 'ElementContent';
1010
+ checksum?: string | null;
1011
+ timestamp: any;
1012
+ } | null;
1013
+ } | {
1014
+ __typename: 'Dictionary';
1015
+ id: string;
1016
+ key: string;
1017
+ name: string;
1018
+ description?: string | null;
1019
+ createdAt: any;
1020
+ content?: {
1021
+ __typename?: 'ElementContent';
1022
+ checksum?: string | null;
1023
+ timestamp: any;
1024
+ } | null;
1025
+ } | {
1026
+ __typename: 'Flow';
1027
+ id: string;
1028
+ key: string;
1029
+ name: string;
1030
+ description?: string | null;
1031
+ createdAt: any;
1032
+ content?: {
1033
+ __typename?: 'ElementContent';
1034
+ checksum?: string | null;
1035
+ timestamp: any;
1036
+ } | null;
1037
+ } | {
1038
+ __typename: 'Job';
1039
+ id: string;
1040
+ key: string;
1041
+ name: string;
1042
+ description?: string | null;
1043
+ createdAt: any;
1044
+ content?: {
1045
+ __typename?: 'ElementContent';
1046
+ checksum?: string | null;
1047
+ timestamp: any;
1048
+ } | null;
1049
+ } | {
1050
+ __typename: 'RetryRule';
1051
+ id: string;
1052
+ key: string;
1053
+ name: string;
1054
+ description?: string | null;
1055
+ createdAt: any;
1056
+ content?: {
1057
+ __typename?: 'ElementContent';
1058
+ checksum?: string | null;
1059
+ timestamp: any;
1060
+ } | null;
1061
+ } | {
1062
+ __typename: 'Schema';
1063
+ id: string;
1064
+ key: string;
1065
+ name: string;
1066
+ description?: string | null;
1067
+ createdAt: any;
1068
+ content?: {
1069
+ __typename?: 'ElementContent';
1070
+ checksum?: string | null;
1071
+ timestamp: any;
1072
+ } | null;
1073
+ } | {
1074
+ __typename: 'SchemaMutation';
1075
+ id: string;
1076
+ key: string;
1077
+ name: string;
1078
+ description?: string | null;
1079
+ createdAt: any;
1080
+ content?: {
1081
+ __typename?: 'ElementContent';
1082
+ checksum?: string | null;
1083
+ timestamp: any;
1084
+ } | null;
1085
+ } | {
1086
+ __typename: 'Service';
1087
+ id: string;
1088
+ key: string;
1089
+ name: string;
1090
+ description?: string | null;
1091
+ createdAt: any;
1092
+ content?: {
1093
+ __typename?: 'ElementContent';
1094
+ checksum?: string | null;
1095
+ timestamp: any;
1096
+ } | null;
1097
+ } | {
1098
+ __typename: 'Value';
1099
+ id: string;
1100
+ key: string;
1101
+ name: string;
1102
+ description?: string | null;
1103
+ createdAt: any;
1104
+ content?: {
1105
+ __typename?: 'ElementContent';
1106
+ checksum?: string | null;
1107
+ timestamp: any;
1108
+ } | null;
1109
+ }>;
1110
+ };
1111
+ } | null;
1112
+ };
1113
+ export type CreateElementMutationVariables = Exact<{
1114
+ integrationId: Scalars['ID']['input'];
1115
+ key: Scalars['ID']['input'];
1116
+ name: Scalars['String']['input'];
1117
+ type: ElementType;
1118
+ description?: InputMaybe<Scalars['String']['input']>;
1119
+ }>;
1120
+ export type CreateElementMutation = {
1121
+ __typename?: 'Mutation';
1122
+ createElement: {
1123
+ __typename?: 'Auth';
1124
+ id: string;
1125
+ key: string;
1126
+ } | {
1127
+ __typename?: 'ConfigElement';
1128
+ id: string;
1129
+ key: string;
1130
+ } | {
1131
+ __typename?: 'Dictionary';
1132
+ id: string;
1133
+ key: string;
1134
+ } | {
1135
+ __typename?: 'Flow';
1136
+ id: string;
1137
+ key: string;
1138
+ } | {
1139
+ __typename?: 'Job';
1140
+ id: string;
1141
+ key: string;
1142
+ } | {
1143
+ __typename?: 'RetryRule';
1144
+ id: string;
1145
+ key: string;
1146
+ } | {
1147
+ __typename?: 'Schema';
1148
+ id: string;
1149
+ key: string;
1150
+ } | {
1151
+ __typename?: 'SchemaMutation';
1152
+ id: string;
1153
+ key: string;
1154
+ } | {
1155
+ __typename?: 'Service';
1156
+ id: string;
1157
+ key: string;
1158
+ } | {
1159
+ __typename?: 'Value';
1160
+ id: string;
1161
+ key: string;
1162
+ };
1163
+ };
1164
+ export type UpdateElementMutationVariables = Exact<{
1165
+ id: Scalars['ID']['input'];
1166
+ name?: InputMaybe<Scalars['String']['input']>;
1167
+ description?: InputMaybe<Scalars['String']['input']>;
1168
+ }>;
1169
+ export type UpdateElementMutation = {
1170
+ __typename?: 'Mutation';
1171
+ updateElement: {
1172
+ __typename?: 'Auth';
1173
+ id: string;
1174
+ name: string;
1175
+ description?: string | null;
1176
+ } | {
1177
+ __typename?: 'ConfigElement';
1178
+ id: string;
1179
+ name: string;
1180
+ description?: string | null;
1181
+ } | {
1182
+ __typename?: 'Dictionary';
1183
+ id: string;
1184
+ name: string;
1185
+ description?: string | null;
1186
+ } | {
1187
+ __typename?: 'Flow';
1188
+ id: string;
1189
+ name: string;
1190
+ description?: string | null;
1191
+ } | {
1192
+ __typename?: 'Job';
1193
+ id: string;
1194
+ name: string;
1195
+ description?: string | null;
1196
+ } | {
1197
+ __typename?: 'RetryRule';
1198
+ id: string;
1199
+ name: string;
1200
+ description?: string | null;
1201
+ } | {
1202
+ __typename?: 'Schema';
1203
+ id: string;
1204
+ name: string;
1205
+ description?: string | null;
1206
+ } | {
1207
+ __typename?: 'SchemaMutation';
1208
+ id: string;
1209
+ name: string;
1210
+ description?: string | null;
1211
+ } | {
1212
+ __typename?: 'Service';
1213
+ id: string;
1214
+ name: string;
1215
+ description?: string | null;
1216
+ } | {
1217
+ __typename?: 'Value';
1218
+ id: string;
1219
+ name: string;
1220
+ description?: string | null;
1221
+ };
1222
+ };
1223
+ export type SetElementContentMutationVariables = Exact<{
1224
+ id: Scalars['ID']['input'];
1225
+ content?: InputMaybe<Scalars['JSON']['input']>;
1226
+ }>;
1227
+ export type SetElementContentMutation = {
1228
+ __typename?: 'Mutation';
1229
+ setElementContent: {
1230
+ __typename?: 'Auth';
1231
+ id: string;
1232
+ content?: {
1233
+ __typename?: 'ElementContent';
1234
+ timestamp: any;
1235
+ checksum?: string | null;
1236
+ } | null;
1237
+ } | {
1238
+ __typename?: 'ConfigElement';
1239
+ id: string;
1240
+ content?: {
1241
+ __typename?: 'ElementContent';
1242
+ timestamp: any;
1243
+ checksum?: string | null;
1244
+ } | null;
1245
+ } | {
1246
+ __typename?: 'Dictionary';
1247
+ id: string;
1248
+ content?: {
1249
+ __typename?: 'ElementContent';
1250
+ timestamp: any;
1251
+ checksum?: string | null;
1252
+ } | null;
1253
+ } | {
1254
+ __typename?: 'Flow';
1255
+ id: string;
1256
+ content?: {
1257
+ __typename?: 'ElementContent';
1258
+ timestamp: any;
1259
+ checksum?: string | null;
1260
+ } | null;
1261
+ } | {
1262
+ __typename?: 'Job';
1263
+ id: string;
1264
+ content?: {
1265
+ __typename?: 'ElementContent';
1266
+ timestamp: any;
1267
+ checksum?: string | null;
1268
+ } | null;
1269
+ } | {
1270
+ __typename?: 'RetryRule';
1271
+ id: string;
1272
+ content?: {
1273
+ __typename?: 'ElementContent';
1274
+ timestamp: any;
1275
+ checksum?: string | null;
1276
+ } | null;
1277
+ } | {
1278
+ __typename?: 'Schema';
1279
+ id: string;
1280
+ content?: {
1281
+ __typename?: 'ElementContent';
1282
+ timestamp: any;
1283
+ checksum?: string | null;
1284
+ } | null;
1285
+ } | {
1286
+ __typename?: 'SchemaMutation';
1287
+ id: string;
1288
+ content?: {
1289
+ __typename?: 'ElementContent';
1290
+ timestamp: any;
1291
+ checksum?: string | null;
1292
+ } | null;
1293
+ } | {
1294
+ __typename?: 'Service';
1295
+ id: string;
1296
+ content?: {
1297
+ __typename?: 'ElementContent';
1298
+ timestamp: any;
1299
+ checksum?: string | null;
1300
+ } | null;
1301
+ } | {
1302
+ __typename?: 'Value';
1303
+ id: string;
1304
+ content?: {
1305
+ __typename?: 'ElementContent';
1306
+ timestamp: any;
1307
+ checksum?: string | null;
1308
+ } | null;
1309
+ };
1310
+ };
1311
+ export type DeleteElementMutationVariables = Exact<{
1312
+ id: Scalars['ID']['input'];
1313
+ }>;
1314
+ export type DeleteElementMutation = {
1315
+ __typename?: 'Mutation';
1316
+ deleteElement: {
1317
+ __typename?: 'Auth';
1318
+ id: string;
1319
+ key: string;
1320
+ } | {
1321
+ __typename?: 'ConfigElement';
1322
+ id: string;
1323
+ key: string;
1324
+ } | {
1325
+ __typename?: 'Dictionary';
1326
+ id: string;
1327
+ key: string;
1328
+ } | {
1329
+ __typename?: 'Flow';
1330
+ id: string;
1331
+ key: string;
1332
+ } | {
1333
+ __typename?: 'Job';
1334
+ id: string;
1335
+ key: string;
1336
+ } | {
1337
+ __typename?: 'RetryRule';
1338
+ id: string;
1339
+ key: string;
1340
+ } | {
1341
+ __typename?: 'Schema';
1342
+ id: string;
1343
+ key: string;
1344
+ } | {
1345
+ __typename?: 'SchemaMutation';
1346
+ id: string;
1347
+ key: string;
1348
+ } | {
1349
+ __typename?: 'Service';
1350
+ id: string;
1351
+ key: string;
1352
+ } | {
1353
+ __typename?: 'Value';
1354
+ id: string;
1355
+ key: string;
1356
+ };
1357
+ };
1358
+ export type IntegrationElementsQueryVariables = Exact<{
1359
+ id: Scalars['ID']['input'];
1360
+ }>;
1361
+ export type IntegrationElementsQuery = {
1362
+ __typename?: 'Query';
1363
+ integration?: {
1364
+ __typename?: 'Integration';
1365
+ active?: {
1366
+ __typename?: 'Version';
1367
+ elements: Array<{
1368
+ __typename: 'Auth';
1369
+ id: string;
1370
+ key: string;
1371
+ name: string;
1372
+ description?: string | null;
1373
+ } | {
1374
+ __typename: 'ConfigElement';
1375
+ id: string;
1376
+ key: string;
1377
+ name: string;
1378
+ description?: string | null;
1379
+ } | {
1380
+ __typename: 'Dictionary';
1381
+ id: string;
1382
+ key: string;
1383
+ name: string;
1384
+ description?: string | null;
1385
+ } | {
1386
+ __typename: 'Flow';
1387
+ sort?: number | null;
1388
+ id: string;
1389
+ key: string;
1390
+ name: string;
1391
+ description?: string | null;
1392
+ } | {
1393
+ __typename: 'Job';
1394
+ sort?: number | null;
1395
+ isSubJob?: boolean | null;
1396
+ id: string;
1397
+ key: string;
1398
+ name: string;
1399
+ description?: string | null;
1400
+ } | {
1401
+ __typename: 'RetryRule';
1402
+ id: string;
1403
+ key: string;
1404
+ name: string;
1405
+ description?: string | null;
1406
+ } | {
1407
+ __typename: 'Schema';
1408
+ id: string;
1409
+ key: string;
1410
+ name: string;
1411
+ description?: string | null;
1412
+ } | {
1413
+ __typename: 'SchemaMutation';
1414
+ id: string;
1415
+ key: string;
1416
+ name: string;
1417
+ description?: string | null;
1418
+ } | {
1419
+ __typename: 'Service';
1420
+ id: string;
1421
+ key: string;
1422
+ name: string;
1423
+ description?: string | null;
1424
+ } | {
1425
+ __typename: 'Value';
1426
+ id: string;
1427
+ key: string;
1428
+ name: string;
1429
+ description?: string | null;
1430
+ }>;
1431
+ } | null;
1432
+ } | null;
1433
+ };
1434
+ export type IntegrationStatusQueryVariables = Exact<{
1435
+ id: Scalars['ID']['input'];
1436
+ }>;
1437
+ export type IntegrationStatusQuery = {
1438
+ __typename?: 'Query';
1439
+ integration?: {
1440
+ __typename?: 'Integration';
1441
+ id: string;
1442
+ key: string;
1443
+ name: string;
1444
+ status: Status;
1445
+ active?: {
1446
+ __typename?: 'Version';
1447
+ id: string;
1448
+ name?: string | null;
1449
+ timestamp: any;
1450
+ } | null;
1451
+ } | null;
1452
+ };
1453
+ export type CreateIntegrationFromFileMutationVariables = Exact<{
1454
+ accountId: Scalars['ID']['input'];
1455
+ name: Scalars['String']['input'];
1456
+ key?: InputMaybe<Scalars['ID']['input']>;
1457
+ description?: InputMaybe<Scalars['String']['input']>;
1458
+ }>;
1459
+ export type CreateIntegrationFromFileMutation = {
1460
+ __typename?: 'Mutation';
1461
+ createIntegration: {
1462
+ __typename?: 'Integration';
1463
+ id: string;
1464
+ key: string;
1465
+ name: string;
1466
+ createdAt: any;
1467
+ description?: string | null;
1468
+ status: Status;
1469
+ account: {
1470
+ __typename?: 'Account';
1471
+ id: string;
1472
+ key: string;
1473
+ name: string;
1474
+ };
1475
+ };
1476
+ };
1477
+ export type DispatchMutationVariables = Exact<{
1478
+ integrationId: Scalars['ID']['input'];
1479
+ type: Scalars['String']['input'];
1480
+ payload: Scalars['JSON']['input'];
1481
+ waitForResponse?: InputMaybe<Scalars['Boolean']['input']>;
1482
+ }>;
1483
+ export type DispatchMutation = {
1484
+ __typename?: 'Mutation';
1485
+ dispatch: {
1486
+ __typename?: 'Response';
1487
+ id: string;
1488
+ status: string;
1489
+ data?: any | null;
1490
+ error?: string | null;
1491
+ warning?: string | null;
1492
+ };
1493
+ };
1494
+ export type SessionQueryVariables = Exact<{
1495
+ [key: string]: never;
1496
+ }>;
1497
+ export type SessionQuery = {
1498
+ __typename?: 'Query';
1499
+ session: {
1500
+ __typename?: 'Session';
1501
+ user?: {
1502
+ __typename?: 'User';
1503
+ id: string;
1504
+ name: string;
1505
+ } | null;
1506
+ };
1507
+ };
1508
+ export type AccountByIdQueryVariables = Exact<{
1509
+ id: Scalars['ID']['input'];
1510
+ }>;
1511
+ export type AccountByIdQuery = {
1512
+ __typename?: 'Query';
1513
+ account?: {
1514
+ __typename?: 'Account';
1515
+ id: string;
1516
+ name: string;
1517
+ key: string;
1518
+ } | null;
1519
+ };
1520
+ export type AccountByKeyQueryVariables = Exact<{
1521
+ key: Scalars['ID']['input'];
1522
+ }>;
1523
+ export type AccountByKeyQuery = {
1524
+ __typename?: 'Query';
1525
+ accountByKey?: {
1526
+ __typename?: 'Account';
1527
+ id: string;
1528
+ name: string;
1529
+ key: string;
1530
+ } | null;
1531
+ };
1532
+ export type ElementByIdQueryVariables = Exact<{
1533
+ id: Scalars['ID']['input'];
1534
+ }>;
1535
+ export type ElementByIdQuery = {
1536
+ __typename?: 'Query';
1537
+ element: {
1538
+ __typename: 'Auth';
1539
+ id: string;
1540
+ key: string;
1541
+ content?: {
1542
+ __typename?: 'ElementContent';
1543
+ data?: any | null;
1544
+ } | null;
1545
+ } | {
1546
+ __typename: 'ConfigElement';
1547
+ id: string;
1548
+ key: string;
1549
+ content?: {
1550
+ __typename?: 'ElementContent';
1551
+ data?: any | null;
1552
+ } | null;
1553
+ } | {
1554
+ __typename: 'Dictionary';
1555
+ id: string;
1556
+ key: string;
1557
+ content?: {
1558
+ __typename?: 'ElementContent';
1559
+ data?: any | null;
1560
+ } | null;
1561
+ } | {
1562
+ __typename: 'Flow';
1563
+ id: string;
1564
+ key: string;
1565
+ content?: {
1566
+ __typename?: 'ElementContent';
1567
+ data?: any | null;
1568
+ } | null;
1569
+ } | {
1570
+ __typename: 'Job';
1571
+ id: string;
1572
+ key: string;
1573
+ content?: {
1574
+ __typename?: 'ElementContent';
1575
+ data?: any | null;
1576
+ } | null;
1577
+ } | {
1578
+ __typename: 'RetryRule';
1579
+ id: string;
1580
+ key: string;
1581
+ content?: {
1582
+ __typename?: 'ElementContent';
1583
+ data?: any | null;
1584
+ } | null;
1585
+ } | {
1586
+ __typename: 'Schema';
1587
+ id: string;
1588
+ key: string;
1589
+ content?: {
1590
+ __typename?: 'ElementContent';
1591
+ data?: any | null;
1592
+ } | null;
1593
+ } | {
1594
+ __typename: 'SchemaMutation';
1595
+ id: string;
1596
+ key: string;
1597
+ content?: {
1598
+ __typename?: 'ElementContent';
1599
+ data?: any | null;
1600
+ } | null;
1601
+ } | {
1602
+ __typename: 'Service';
1603
+ id: string;
1604
+ key: string;
1605
+ content?: {
1606
+ __typename?: 'ElementContent';
1607
+ data?: any | null;
1608
+ } | null;
1609
+ } | {
1610
+ __typename: 'Value';
1611
+ value?: any | null;
1612
+ id: string;
1613
+ key: string;
1614
+ content?: {
1615
+ __typename?: 'ElementContent';
1616
+ data?: any | null;
1617
+ } | null;
1618
+ };
1619
+ };
1620
+ export type ElementByKeyQueryVariables = Exact<{
1621
+ integrationId: Scalars['ID']['input'];
1622
+ key: Scalars['ID']['input'];
1623
+ type: ElementType;
1624
+ }>;
1625
+ export type ElementByKeyQuery = {
1626
+ __typename?: 'Query';
1627
+ elementByKey: {
1628
+ __typename: 'Auth';
1629
+ id: string;
1630
+ key: string;
1631
+ content?: {
1632
+ __typename?: 'ElementContent';
1633
+ data?: any | null;
1634
+ } | null;
1635
+ } | {
1636
+ __typename: 'ConfigElement';
1637
+ id: string;
1638
+ key: string;
1639
+ content?: {
1640
+ __typename?: 'ElementContent';
1641
+ data?: any | null;
1642
+ } | null;
1643
+ } | {
1644
+ __typename: 'Dictionary';
1645
+ id: string;
1646
+ key: string;
1647
+ content?: {
1648
+ __typename?: 'ElementContent';
1649
+ data?: any | null;
1650
+ } | null;
1651
+ } | {
1652
+ __typename: 'Flow';
1653
+ id: string;
1654
+ key: string;
1655
+ content?: {
1656
+ __typename?: 'ElementContent';
1657
+ data?: any | null;
1658
+ } | null;
1659
+ } | {
1660
+ __typename: 'Job';
1661
+ id: string;
1662
+ key: string;
1663
+ content?: {
1664
+ __typename?: 'ElementContent';
1665
+ data?: any | null;
1666
+ } | null;
1667
+ } | {
1668
+ __typename: 'RetryRule';
1669
+ id: string;
1670
+ key: string;
1671
+ content?: {
1672
+ __typename?: 'ElementContent';
1673
+ data?: any | null;
1674
+ } | null;
1675
+ } | {
1676
+ __typename: 'Schema';
1677
+ id: string;
1678
+ key: string;
1679
+ content?: {
1680
+ __typename?: 'ElementContent';
1681
+ data?: any | null;
1682
+ } | null;
1683
+ } | {
1684
+ __typename: 'SchemaMutation';
1685
+ id: string;
1686
+ key: string;
1687
+ content?: {
1688
+ __typename?: 'ElementContent';
1689
+ data?: any | null;
1690
+ } | null;
1691
+ } | {
1692
+ __typename: 'Service';
1693
+ id: string;
1694
+ key: string;
1695
+ content?: {
1696
+ __typename?: 'ElementContent';
1697
+ data?: any | null;
1698
+ } | null;
1699
+ } | {
1700
+ __typename: 'Value';
1701
+ value?: any | null;
1702
+ id: string;
1703
+ key: string;
1704
+ content?: {
1705
+ __typename?: 'ElementContent';
1706
+ data?: any | null;
1707
+ } | null;
1708
+ };
1709
+ };
1710
+ export type IntegrationQueryVariables = Exact<{
1711
+ id: Scalars['ID']['input'];
1712
+ }>;
1713
+ export type IntegrationQuery = {
1714
+ __typename?: 'Query';
1715
+ integration?: {
1716
+ __typename?: 'Integration';
1717
+ id: string;
1718
+ name: string;
1719
+ } | null;
1720
+ };
1721
+ export type IntegrationByKeyQueryVariables = Exact<{
1722
+ accountId: Scalars['ID']['input'];
1723
+ key: Scalars['ID']['input'];
1724
+ }>;
1725
+ export type IntegrationByKeyQuery = {
1726
+ __typename?: 'Query';
1727
+ integrationByKey?: {
1728
+ __typename?: 'Integration';
1729
+ id: string;
1730
+ name: string;
1731
+ } | null;
1732
+ };
1733
+ export type ValuesListQueryVariables = Exact<{
1734
+ id: Scalars['ID']['input'];
1735
+ }>;
1736
+ export type ValuesListQuery = {
1737
+ __typename?: 'Query';
1738
+ integration?: {
1739
+ __typename?: 'Integration';
1740
+ id: string;
1741
+ key: string;
1742
+ name: string;
1743
+ latest: {
1744
+ __typename?: 'Version';
1745
+ elements: Array<{
1746
+ __typename: 'Auth';
1747
+ } | {
1748
+ __typename: 'ConfigElement';
1749
+ } | {
1750
+ __typename: 'Dictionary';
1751
+ } | {
1752
+ __typename: 'Flow';
1753
+ } | {
1754
+ __typename: 'Job';
1755
+ } | {
1756
+ __typename: 'RetryRule';
1757
+ } | {
1758
+ __typename: 'Schema';
1759
+ } | {
1760
+ __typename: 'SchemaMutation';
1761
+ } | {
1762
+ __typename: 'Service';
1763
+ } | {
1764
+ __typename: 'Value';
1765
+ id: string;
1766
+ key: string;
1767
+ name: string;
1768
+ value?: any | null;
1769
+ content?: {
1770
+ __typename?: 'ElementContent';
1771
+ data?: any | null;
1772
+ } | null;
1773
+ }>;
1774
+ };
1775
+ } | null;
1776
+ };
1777
+ export type SetValueMutationVariables = Exact<{
1778
+ id: Scalars['ID']['input'];
1779
+ value: Scalars['PrimitiveValue']['input'];
1780
+ }>;
1781
+ export type SetValueMutation = {
1782
+ __typename?: 'Mutation';
1783
+ setValue: boolean;
1784
+ };