wabe 0.6.12 → 0.6.14

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 (156) hide show
  1. package/dist/database/DatabaseController.d.ts +2 -0
  2. package/dist/file/FileDevAdapter.d.ts +1 -0
  3. package/dist/graphql/pointerAndRelationFunction.d.ts +6 -0
  4. package/dist/index.js +3827 -3541
  5. package/dist/schema/Schema.d.ts +2 -2
  6. package/dist/server/generateCodegen.d.ts +10 -0
  7. package/dist/server/index.d.ts +2 -1
  8. package/dist/utils/objectKeys.d.ts +1 -0
  9. package/package.json +7 -4
  10. package/dev/index.ts +0 -215
  11. package/dist/schema/resolvers/sendEmail.d.ts +0 -1
  12. package/generated/schema.graphql +0 -1945
  13. package/generated/wabe.ts +0 -448
  14. package/src/authentication/OTP.test.ts +0 -69
  15. package/src/authentication/OTP.ts +0 -64
  16. package/src/authentication/Session.test.ts +0 -629
  17. package/src/authentication/Session.ts +0 -517
  18. package/src/authentication/cookies.ts +0 -10
  19. package/src/authentication/defaultAuthentication.ts +0 -209
  20. package/src/authentication/index.ts +0 -4
  21. package/src/authentication/interface.ts +0 -177
  22. package/src/authentication/oauth/GitHub.test.ts +0 -91
  23. package/src/authentication/oauth/GitHub.ts +0 -121
  24. package/src/authentication/oauth/Google.test.ts +0 -91
  25. package/src/authentication/oauth/Google.ts +0 -101
  26. package/src/authentication/oauth/Oauth2Client.test.ts +0 -219
  27. package/src/authentication/oauth/Oauth2Client.ts +0 -135
  28. package/src/authentication/oauth/index.ts +0 -2
  29. package/src/authentication/oauth/utils.test.ts +0 -33
  30. package/src/authentication/oauth/utils.ts +0 -27
  31. package/src/authentication/providers/EmailOTP.test.ts +0 -127
  32. package/src/authentication/providers/EmailOTP.ts +0 -95
  33. package/src/authentication/providers/EmailPassword.test.ts +0 -263
  34. package/src/authentication/providers/EmailPassword.ts +0 -138
  35. package/src/authentication/providers/EmailPasswordSRP.test.ts +0 -208
  36. package/src/authentication/providers/EmailPasswordSRP.ts +0 -191
  37. package/src/authentication/providers/GitHub.ts +0 -24
  38. package/src/authentication/providers/Google.ts +0 -24
  39. package/src/authentication/providers/OAuth.test.ts +0 -185
  40. package/src/authentication/providers/OAuth.ts +0 -106
  41. package/src/authentication/providers/PhonePassword.test.ts +0 -221
  42. package/src/authentication/providers/PhonePassword.ts +0 -136
  43. package/src/authentication/providers/QRCodeOTP.test.ts +0 -77
  44. package/src/authentication/providers/QRCodeOTP.ts +0 -69
  45. package/src/authentication/providers/index.ts +0 -6
  46. package/src/authentication/resolvers/refreshResolver.test.ts +0 -30
  47. package/src/authentication/resolvers/refreshResolver.ts +0 -19
  48. package/src/authentication/resolvers/signInWithResolver.inte.test.ts +0 -59
  49. package/src/authentication/resolvers/signInWithResolver.test.ts +0 -306
  50. package/src/authentication/resolvers/signInWithResolver.ts +0 -106
  51. package/src/authentication/resolvers/signOutResolver.test.ts +0 -38
  52. package/src/authentication/resolvers/signOutResolver.ts +0 -18
  53. package/src/authentication/resolvers/signUpWithResolver.test.ts +0 -180
  54. package/src/authentication/resolvers/signUpWithResolver.ts +0 -68
  55. package/src/authentication/resolvers/verifyChallenge.test.ts +0 -230
  56. package/src/authentication/resolvers/verifyChallenge.ts +0 -78
  57. package/src/authentication/roles.test.ts +0 -49
  58. package/src/authentication/roles.ts +0 -40
  59. package/src/authentication/security.ts +0 -278
  60. package/src/authentication/utils.test.ts +0 -97
  61. package/src/authentication/utils.ts +0 -39
  62. package/src/cache/InMemoryCache.test.ts +0 -62
  63. package/src/cache/InMemoryCache.ts +0 -45
  64. package/src/cron/index.test.ts +0 -17
  65. package/src/cron/index.ts +0 -43
  66. package/src/database/DatabaseController.test.ts +0 -613
  67. package/src/database/DatabaseController.ts +0 -1415
  68. package/src/database/index.test.ts +0 -1551
  69. package/src/database/index.ts +0 -9
  70. package/src/database/interface.ts +0 -308
  71. package/src/email/DevAdapter.ts +0 -7
  72. package/src/email/EmailController.test.ts +0 -29
  73. package/src/email/EmailController.ts +0 -13
  74. package/src/email/index.ts +0 -2
  75. package/src/email/interface.ts +0 -36
  76. package/src/email/templates/sendOtpCode.ts +0 -120
  77. package/src/file/FileController.ts +0 -28
  78. package/src/file/FileDevAdapter.ts +0 -51
  79. package/src/file/hookDeleteFile.ts +0 -25
  80. package/src/file/hookReadFile.ts +0 -66
  81. package/src/file/hookUploadFile.ts +0 -52
  82. package/src/file/index.test.ts +0 -1031
  83. package/src/file/index.ts +0 -2
  84. package/src/file/interface.ts +0 -63
  85. package/src/file/security.ts +0 -156
  86. package/src/graphql/GraphQLSchema.test.ts +0 -5099
  87. package/src/graphql/GraphQLSchema.ts +0 -886
  88. package/src/graphql/index.ts +0 -2
  89. package/src/graphql/parseGraphqlSchema.ts +0 -85
  90. package/src/graphql/parser.test.ts +0 -203
  91. package/src/graphql/parser.ts +0 -707
  92. package/src/graphql/pointerAndRelationFunction.ts +0 -191
  93. package/src/graphql/resolvers.ts +0 -464
  94. package/src/graphql/tests/aggregation.test.ts +0 -1115
  95. package/src/graphql/tests/e2e.test.ts +0 -590
  96. package/src/graphql/tests/scalars.test.ts +0 -250
  97. package/src/graphql/types.ts +0 -227
  98. package/src/hooks/HookObject.test.ts +0 -122
  99. package/src/hooks/HookObject.ts +0 -165
  100. package/src/hooks/authentication.ts +0 -67
  101. package/src/hooks/createUser.test.ts +0 -77
  102. package/src/hooks/createUser.ts +0 -10
  103. package/src/hooks/defaultFields.test.ts +0 -176
  104. package/src/hooks/defaultFields.ts +0 -32
  105. package/src/hooks/deleteSession.test.ts +0 -181
  106. package/src/hooks/deleteSession.ts +0 -20
  107. package/src/hooks/hashFieldHook.test.ts +0 -152
  108. package/src/hooks/hashFieldHook.ts +0 -89
  109. package/src/hooks/index.test.ts +0 -258
  110. package/src/hooks/index.ts +0 -420
  111. package/src/hooks/permissions.test.ts +0 -412
  112. package/src/hooks/permissions.ts +0 -93
  113. package/src/hooks/protected.test.ts +0 -551
  114. package/src/hooks/protected.ts +0 -74
  115. package/src/hooks/searchableFields.test.ts +0 -147
  116. package/src/hooks/searchableFields.ts +0 -86
  117. package/src/hooks/session.test.ts +0 -134
  118. package/src/hooks/session.ts +0 -76
  119. package/src/hooks/setEmail.test.ts +0 -216
  120. package/src/hooks/setEmail.ts +0 -33
  121. package/src/hooks/setupAcl.test.ts +0 -618
  122. package/src/hooks/setupAcl.ts +0 -25
  123. package/src/hooks/virtualFields.test.ts +0 -228
  124. package/src/hooks/virtualFields.ts +0 -48
  125. package/src/index.ts +0 -9
  126. package/src/schema/Schema.test.ts +0 -482
  127. package/src/schema/Schema.ts +0 -839
  128. package/src/schema/defaultResolvers.ts +0 -93
  129. package/src/schema/index.ts +0 -1
  130. package/src/schema/resolvers/meResolver.test.ts +0 -62
  131. package/src/schema/resolvers/meResolver.ts +0 -10
  132. package/src/schema/resolvers/resetPassword.test.ts +0 -341
  133. package/src/schema/resolvers/resetPassword.ts +0 -63
  134. package/src/schema/resolvers/sendEmail.test.ts +0 -118
  135. package/src/schema/resolvers/sendEmail.ts +0 -21
  136. package/src/schema/resolvers/sendOtpCode.test.ts +0 -141
  137. package/src/schema/resolvers/sendOtpCode.ts +0 -52
  138. package/src/security.test.ts +0 -4136
  139. package/src/server/defaultSessionHandler.test.ts +0 -62
  140. package/src/server/defaultSessionHandler.ts +0 -104
  141. package/src/server/generateCodegen.ts +0 -433
  142. package/src/server/index.test.ts +0 -843
  143. package/src/server/index.ts +0 -336
  144. package/src/server/interface.ts +0 -11
  145. package/src/server/routes/authHandler.ts +0 -171
  146. package/src/server/routes/index.ts +0 -48
  147. package/src/utils/crypto.test.ts +0 -41
  148. package/src/utils/crypto.ts +0 -105
  149. package/src/utils/database.ts +0 -8
  150. package/src/utils/export.ts +0 -12
  151. package/src/utils/helper.ts +0 -204
  152. package/src/utils/index.test.ts +0 -11
  153. package/src/utils/index.ts +0 -196
  154. package/src/utils/preload.ts +0 -8
  155. package/src/utils/testHelper.ts +0 -124
  156. package/tsconfig.json +0 -32
@@ -1,1945 +0,0 @@
1
- enum RoleEnum {
2
- DashboardAdmin
3
- Admin
4
- Client
5
- }
6
-
7
- enum AuthenticationProvider {
8
- github
9
- google
10
- emailPassword
11
- phonePassword
12
- }
13
-
14
- enum SecondaryFactor {
15
- emailOTP
16
- qrcodeOTP
17
- }
18
-
19
- """Object containing information about the file"""
20
- type FileInfo {
21
- name: String
22
- url: String
23
- urlGeneratedAt: Date
24
- isPresignedUrl: Boolean
25
- }
26
-
27
- """Date scalar type"""
28
- scalar Date
29
-
30
- """User class"""
31
- type User {
32
- id: ID!
33
- name: String
34
- age: Int
35
- email: Email
36
- acl: UserACLObject
37
- createdAt: Date
38
- updatedAt: Date
39
- search: [String]
40
- authentication: UserAuthentication
41
- provider: AuthenticationProvider
42
- isOauth: Boolean
43
- verifiedEmail: Boolean
44
- role: Role
45
- sessions(where: _SessionWhereInput, offset: Int, first: Int, order: [_SessionOrder!]): _SessionConnection
46
- secondFA: UserSecondFA
47
- pendingChallenges: [UserPendingAuthenticationChallenge]
48
- }
49
-
50
- """Email scalar type"""
51
- scalar Email
52
-
53
- type UserACLObject {
54
- users: [UserACLObjectUsersACL]
55
- roles: [UserACLObjectRolesACL]
56
- }
57
-
58
- type UserACLObjectUsersACL {
59
- userId: String!
60
- read: Boolean!
61
- write: Boolean!
62
- }
63
-
64
- type UserACLObjectRolesACL {
65
- roleId: String!
66
- read: Boolean!
67
- write: Boolean!
68
- }
69
-
70
- type UserAuthentication {
71
- emailPasswordSRP: UserAuthenticationEmailPasswordSRP
72
- phonePassword: UserAuthenticationPhonePassword
73
- emailPassword: UserAuthenticationEmailPassword
74
- google: UserAuthenticationGoogle
75
- github: UserAuthenticationGithub
76
- }
77
-
78
- type UserAuthenticationEmailPasswordSRP {
79
- email: Email!
80
- salt: String!
81
- verifier: String!
82
- serverSecret: String
83
- }
84
-
85
- type UserAuthenticationPhonePassword {
86
- phone: Phone!
87
- password: String!
88
- }
89
-
90
- """Phone scalar type"""
91
- scalar Phone
92
-
93
- type UserAuthenticationEmailPassword {
94
- email: Email!
95
- password: String!
96
- }
97
-
98
- type UserAuthenticationGoogle {
99
- email: Email!
100
- verifiedEmail: Boolean!
101
- }
102
-
103
- type UserAuthenticationGithub {
104
- email: Email!
105
- avatarUrl: String!
106
- username: String!
107
- }
108
-
109
- type _SessionConnection {
110
- ok: Boolean
111
- totalCount: Int
112
- edges: [_SessionEdge]
113
- }
114
-
115
- type _SessionEdge {
116
- node: _Session!
117
- }
118
-
119
- input _SessionWhereInput {
120
- id: IdWhereInput
121
- user: UserWhereInput
122
- accessTokenEncrypted: StringWhereInput
123
- accessTokenExpiresAt: DateWhereInput
124
- refreshTokenEncrypted: StringWhereInput
125
- refreshTokenExpiresAt: DateWhereInput
126
- acl: _SessionACLObjectWhereInput
127
- createdAt: DateWhereInput
128
- updatedAt: DateWhereInput
129
- search: SearchWhereInput
130
- OR: [_SessionWhereInput]
131
- AND: [_SessionWhereInput]
132
- }
133
-
134
- input IdWhereInput {
135
- equalTo: ID
136
- notEqualTo: ID
137
- in: [ID]
138
- notIn: [ID]
139
- }
140
-
141
- """User class"""
142
- input UserWhereInput {
143
- id: IdWhereInput
144
- name: StringWhereInput
145
- age: IntWhereInput
146
- email: EmailWhereInput
147
- acl: UserACLObjectWhereInput
148
- createdAt: DateWhereInput
149
- updatedAt: DateWhereInput
150
- search: SearchWhereInput
151
- authentication: UserAuthenticationWhereInput
152
- provider: AnyWhereInput
153
- isOauth: BooleanWhereInput
154
- verifiedEmail: BooleanWhereInput
155
- role: RoleWhereInput
156
- sessions: _SessionRelationWhereInput
157
- secondFA: UserSecondFAWhereInput
158
- pendingChallenges: [UserPendingAuthenticationChallengeWhereInput]
159
- OR: [UserWhereInput]
160
- AND: [UserWhereInput]
161
- }
162
-
163
- input StringWhereInput {
164
- equalTo: String
165
- notEqualTo: String
166
- in: [String]
167
- notIn: [String]
168
- exists: Boolean
169
- }
170
-
171
- input IntWhereInput {
172
- equalTo: Int
173
- notEqualTo: Int
174
- lessThan: Int
175
- lessThanOrEqualTo: Int
176
- greaterThan: Int
177
- greaterThanOrEqualTo: Int
178
- in: [Int]
179
- notIn: [Int]
180
- exists: Boolean
181
- }
182
-
183
- input EmailWhereInput {
184
- equalTo: Email
185
- notEqualTo: Email
186
- in: [Email]
187
- notIn: [Email]
188
- exists: Boolean
189
- }
190
-
191
- input UserACLObjectWhereInput {
192
- users: [UserACLObjectUsersACLWhereInput]
193
- roles: [UserACLObjectRolesACLWhereInput]
194
- OR: [UserACLObjectWhereInput]
195
- AND: [UserACLObjectWhereInput]
196
- }
197
-
198
- input UserACLObjectUsersACLWhereInput {
199
- userId: StringWhereInput
200
- read: BooleanWhereInput
201
- write: BooleanWhereInput
202
- OR: [UserACLObjectUsersACLWhereInput]
203
- AND: [UserACLObjectUsersACLWhereInput]
204
- }
205
-
206
- input BooleanWhereInput {
207
- equalTo: Boolean
208
- notEqualTo: Boolean
209
- in: [Boolean]
210
- notIn: [Boolean]
211
- exists: Boolean
212
- }
213
-
214
- input UserACLObjectRolesACLWhereInput {
215
- roleId: StringWhereInput
216
- read: BooleanWhereInput
217
- write: BooleanWhereInput
218
- OR: [UserACLObjectRolesACLWhereInput]
219
- AND: [UserACLObjectRolesACLWhereInput]
220
- }
221
-
222
- input DateWhereInput {
223
- equalTo: Date
224
- notEqualTo: Date
225
- in: [Date]
226
- notIn: [Date]
227
- lessThan: Date
228
- lessThanOrEqualTo: Date
229
- greaterThan: Date
230
- greaterThanOrEqualTo: Date
231
- exists: Boolean
232
- }
233
-
234
- input SearchWhereInput {
235
- contains: Search
236
- }
237
-
238
- """Search scalar to tokenize and search for all searchable fields"""
239
- scalar Search
240
-
241
- input UserAuthenticationWhereInput {
242
- emailPasswordSRP: UserAuthenticationEmailPasswordSRPWhereInput
243
- phonePassword: UserAuthenticationPhonePasswordWhereInput
244
- emailPassword: UserAuthenticationEmailPasswordWhereInput
245
- google: UserAuthenticationGoogleWhereInput
246
- github: UserAuthenticationGithubWhereInput
247
- OR: [UserAuthenticationWhereInput]
248
- AND: [UserAuthenticationWhereInput]
249
- }
250
-
251
- input UserAuthenticationEmailPasswordSRPWhereInput {
252
- email: EmailWhereInput
253
- salt: StringWhereInput
254
- verifier: StringWhereInput
255
- serverSecret: StringWhereInput
256
- OR: [UserAuthenticationEmailPasswordSRPWhereInput]
257
- AND: [UserAuthenticationEmailPasswordSRPWhereInput]
258
- }
259
-
260
- input UserAuthenticationPhonePasswordWhereInput {
261
- phone: PhoneWhereInput
262
- password: StringWhereInput
263
- OR: [UserAuthenticationPhonePasswordWhereInput]
264
- AND: [UserAuthenticationPhonePasswordWhereInput]
265
- }
266
-
267
- input PhoneWhereInput {
268
- equalTo: Phone
269
- notEqualTo: Phone
270
- in: [Phone]
271
- notIn: [Phone]
272
- exists: Boolean
273
- }
274
-
275
- input UserAuthenticationEmailPasswordWhereInput {
276
- email: EmailWhereInput
277
- password: StringWhereInput
278
- OR: [UserAuthenticationEmailPasswordWhereInput]
279
- AND: [UserAuthenticationEmailPasswordWhereInput]
280
- }
281
-
282
- input UserAuthenticationGoogleWhereInput {
283
- email: EmailWhereInput
284
- verifiedEmail: BooleanWhereInput
285
- OR: [UserAuthenticationGoogleWhereInput]
286
- AND: [UserAuthenticationGoogleWhereInput]
287
- }
288
-
289
- input UserAuthenticationGithubWhereInput {
290
- email: EmailWhereInput
291
- avatarUrl: StringWhereInput
292
- username: StringWhereInput
293
- OR: [UserAuthenticationGithubWhereInput]
294
- AND: [UserAuthenticationGithubWhereInput]
295
- }
296
-
297
- input AnyWhereInput {
298
- equalTo: Any
299
- notEqualTo: Any
300
- exists: Boolean
301
- }
302
-
303
- """
304
- The Any scalar type is used in operations and types that involve any type of value.
305
- """
306
- scalar Any
307
-
308
- input RoleWhereInput {
309
- id: IdWhereInput
310
- name: StringWhereInput
311
- users: UserRelationWhereInput
312
- acl: RoleACLObjectWhereInput
313
- createdAt: DateWhereInput
314
- updatedAt: DateWhereInput
315
- search: SearchWhereInput
316
- OR: [RoleWhereInput]
317
- AND: [RoleWhereInput]
318
- }
319
-
320
- """Filter on relation to User"""
321
- input UserRelationWhereInput {
322
- have: UserWhereInput
323
- isEmpty: Boolean
324
- }
325
-
326
- input RoleACLObjectWhereInput {
327
- users: [RoleACLObjectUsersACLWhereInput]
328
- roles: [RoleACLObjectRolesACLWhereInput]
329
- OR: [RoleACLObjectWhereInput]
330
- AND: [RoleACLObjectWhereInput]
331
- }
332
-
333
- input RoleACLObjectUsersACLWhereInput {
334
- userId: StringWhereInput
335
- read: BooleanWhereInput
336
- write: BooleanWhereInput
337
- OR: [RoleACLObjectUsersACLWhereInput]
338
- AND: [RoleACLObjectUsersACLWhereInput]
339
- }
340
-
341
- input RoleACLObjectRolesACLWhereInput {
342
- roleId: StringWhereInput
343
- read: BooleanWhereInput
344
- write: BooleanWhereInput
345
- OR: [RoleACLObjectRolesACLWhereInput]
346
- AND: [RoleACLObjectRolesACLWhereInput]
347
- }
348
-
349
- """Filter on relation to _Session"""
350
- input _SessionRelationWhereInput {
351
- have: _SessionWhereInput
352
- isEmpty: Boolean
353
- }
354
-
355
- input UserSecondFAWhereInput {
356
- enabled: BooleanWhereInput
357
- provider: AnyWhereInput
358
- OR: [UserSecondFAWhereInput]
359
- AND: [UserSecondFAWhereInput]
360
- }
361
-
362
- input UserPendingAuthenticationChallengeWhereInput {
363
- token: StringWhereInput
364
- provider: StringWhereInput
365
- expiresAt: DateWhereInput
366
- OR: [UserPendingAuthenticationChallengeWhereInput]
367
- AND: [UserPendingAuthenticationChallengeWhereInput]
368
- }
369
-
370
- input _SessionACLObjectWhereInput {
371
- users: [_SessionACLObjectUsersACLWhereInput]
372
- roles: [_SessionACLObjectRolesACLWhereInput]
373
- OR: [_SessionACLObjectWhereInput]
374
- AND: [_SessionACLObjectWhereInput]
375
- }
376
-
377
- input _SessionACLObjectUsersACLWhereInput {
378
- userId: StringWhereInput
379
- read: BooleanWhereInput
380
- write: BooleanWhereInput
381
- OR: [_SessionACLObjectUsersACLWhereInput]
382
- AND: [_SessionACLObjectUsersACLWhereInput]
383
- }
384
-
385
- input _SessionACLObjectRolesACLWhereInput {
386
- roleId: StringWhereInput
387
- read: BooleanWhereInput
388
- write: BooleanWhereInput
389
- OR: [_SessionACLObjectRolesACLWhereInput]
390
- AND: [_SessionACLObjectRolesACLWhereInput]
391
- }
392
-
393
- enum _SessionOrder {
394
- user_ASC
395
- user_DESC
396
- accessTokenEncrypted_ASC
397
- accessTokenEncrypted_DESC
398
- accessTokenExpiresAt_ASC
399
- accessTokenExpiresAt_DESC
400
- refreshTokenEncrypted_ASC
401
- refreshTokenEncrypted_DESC
402
- refreshTokenExpiresAt_ASC
403
- refreshTokenExpiresAt_DESC
404
- acl_ASC
405
- acl_DESC
406
- createdAt_ASC
407
- createdAt_DESC
408
- updatedAt_ASC
409
- updatedAt_DESC
410
- search_ASC
411
- search_DESC
412
- }
413
-
414
- type UserSecondFA {
415
- enabled: Boolean!
416
- provider: SecondaryFactor!
417
- }
418
-
419
- type UserPendingAuthenticationChallenge {
420
- token: String!
421
- provider: String!
422
- expiresAt: Date!
423
- }
424
-
425
- """User class"""
426
- input UserInput {
427
- name: String
428
- age: Int
429
- email: Email
430
- acl: UserACLObjectInput
431
- createdAt: Date
432
- updatedAt: Date
433
- search: [String]
434
- authentication: UserAuthenticationInput
435
- provider: AuthenticationProvider
436
- isOauth: Boolean
437
- verifiedEmail: Boolean
438
- role: RolePointerInput
439
- sessions: _SessionRelationInput
440
- secondFA: UserSecondFAInput
441
- pendingChallenges: [UserPendingAuthenticationChallengeInput]
442
- }
443
-
444
- input UserACLObjectInput {
445
- users: [UserACLObjectUsersACLInput]
446
- roles: [UserACLObjectRolesACLInput]
447
- }
448
-
449
- input UserACLObjectUsersACLInput {
450
- userId: String!
451
- read: Boolean!
452
- write: Boolean!
453
- }
454
-
455
- input UserACLObjectRolesACLInput {
456
- roleId: String!
457
- read: Boolean!
458
- write: Boolean!
459
- }
460
-
461
- input UserAuthenticationInput {
462
- emailPasswordSRP: UserAuthenticationEmailPasswordSRPInput
463
- phonePassword: UserAuthenticationPhonePasswordInput
464
- emailPassword: UserAuthenticationEmailPasswordInput
465
- google: UserAuthenticationGoogleInput
466
- github: UserAuthenticationGithubInput
467
- }
468
-
469
- input UserAuthenticationEmailPasswordSRPInput {
470
- email: Email!
471
- salt: String!
472
- verifier: String!
473
- serverSecret: String
474
- }
475
-
476
- input UserAuthenticationPhonePasswordInput {
477
- phone: Phone!
478
- password: String!
479
- }
480
-
481
- input UserAuthenticationEmailPasswordInput {
482
- email: Email!
483
- password: String!
484
- }
485
-
486
- input UserAuthenticationGoogleInput {
487
- email: Email!
488
- verifiedEmail: Boolean!
489
- }
490
-
491
- input UserAuthenticationGithubInput {
492
- email: Email!
493
- avatarUrl: String!
494
- username: String!
495
- }
496
-
497
- input UserSecondFAInput {
498
- enabled: Boolean!
499
- provider: SecondaryFactor!
500
- }
501
-
502
- input UserPendingAuthenticationChallengeInput {
503
- token: String!
504
- provider: String!
505
- expiresAt: Date!
506
- }
507
-
508
- """Input to link an object to a pointer User"""
509
- input UserPointerInput {
510
- unlink: Boolean
511
- link: ID
512
- createAndLink: UserCreateFieldsInput
513
- }
514
-
515
- """User class"""
516
- input UserCreateFieldsInput {
517
- name: String
518
- age: Int
519
- email: Email
520
- acl: UserACLObjectCreateFieldsInput
521
- createdAt: Date
522
- updatedAt: Date
523
- search: [String]
524
- authentication: UserAuthenticationCreateFieldsInput
525
- provider: AuthenticationProvider
526
- isOauth: Boolean
527
- verifiedEmail: Boolean
528
- role: RolePointerInput
529
- sessions: _SessionRelationInput
530
- secondFA: UserSecondFACreateFieldsInput
531
- pendingChallenges: [UserPendingAuthenticationChallengeCreateFieldsInput]
532
- }
533
-
534
- input UserACLObjectCreateFieldsInput {
535
- users: [UserACLObjectUsersACLCreateFieldsInput]
536
- roles: [UserACLObjectRolesACLCreateFieldsInput]
537
- }
538
-
539
- input UserACLObjectUsersACLCreateFieldsInput {
540
- userId: String
541
- read: Boolean
542
- write: Boolean
543
- }
544
-
545
- input UserACLObjectRolesACLCreateFieldsInput {
546
- roleId: String
547
- read: Boolean
548
- write: Boolean
549
- }
550
-
551
- input UserAuthenticationCreateFieldsInput {
552
- emailPasswordSRP: UserAuthenticationEmailPasswordSRPCreateFieldsInput
553
- phonePassword: UserAuthenticationPhonePasswordCreateFieldsInput
554
- emailPassword: UserAuthenticationEmailPasswordCreateFieldsInput
555
- google: UserAuthenticationGoogleCreateFieldsInput
556
- github: UserAuthenticationGithubCreateFieldsInput
557
- }
558
-
559
- input UserAuthenticationEmailPasswordSRPCreateFieldsInput {
560
- email: Email
561
- salt: String
562
- verifier: String
563
- serverSecret: String
564
- }
565
-
566
- input UserAuthenticationPhonePasswordCreateFieldsInput {
567
- phone: Phone
568
- password: String
569
- }
570
-
571
- input UserAuthenticationEmailPasswordCreateFieldsInput {
572
- email: Email
573
- password: String
574
- }
575
-
576
- input UserAuthenticationGoogleCreateFieldsInput {
577
- email: Email
578
- verifiedEmail: Boolean
579
- }
580
-
581
- input UserAuthenticationGithubCreateFieldsInput {
582
- email: Email
583
- avatarUrl: String
584
- username: String
585
- }
586
-
587
- input UserSecondFACreateFieldsInput {
588
- enabled: Boolean
589
- provider: SecondaryFactor
590
- }
591
-
592
- input UserPendingAuthenticationChallengeCreateFieldsInput {
593
- token: String
594
- provider: String
595
- expiresAt: Date
596
- }
597
-
598
- """Input to add a relation to the class User"""
599
- input UserRelationInput {
600
- add: [ID!]
601
- remove: [ID!]
602
- createAndAdd: [UserCreateFieldsInput!]
603
- }
604
-
605
- type Post {
606
- id: ID!
607
- name: String!
608
- test2: RoleEnum
609
- test3(where: UserWhereInput, offset: Int, first: Int, order: [UserOrder!]): UserConnection
610
- test4: User
611
- experiences: [PostExperience!]
612
- acl: PostACLObject
613
- createdAt: Date
614
- updatedAt: Date
615
- search: [String]
616
- }
617
-
618
- type UserConnection {
619
- ok: Boolean
620
- totalCount: Int
621
- edges: [UserEdge]
622
- }
623
-
624
- type UserEdge {
625
- node: User!
626
- }
627
-
628
- enum UserOrder {
629
- name_ASC
630
- name_DESC
631
- age_ASC
632
- age_DESC
633
- email_ASC
634
- email_DESC
635
- acl_ASC
636
- acl_DESC
637
- createdAt_ASC
638
- createdAt_DESC
639
- updatedAt_ASC
640
- updatedAt_DESC
641
- search_ASC
642
- search_DESC
643
- authentication_ASC
644
- authentication_DESC
645
- provider_ASC
646
- provider_DESC
647
- isOauth_ASC
648
- isOauth_DESC
649
- verifiedEmail_ASC
650
- verifiedEmail_DESC
651
- role_ASC
652
- role_DESC
653
- sessions_ASC
654
- sessions_DESC
655
- secondFA_ASC
656
- secondFA_DESC
657
- pendingChallenges_ASC
658
- pendingChallenges_DESC
659
- }
660
-
661
- type PostExperience {
662
- jobTitle: String!
663
- companyName: String!
664
- startDate: String!
665
- endDate: String!
666
- achievements: [String]
667
- }
668
-
669
- type PostACLObject {
670
- users: [PostACLObjectUsersACL]
671
- roles: [PostACLObjectRolesACL]
672
- }
673
-
674
- type PostACLObjectUsersACL {
675
- userId: String!
676
- read: Boolean!
677
- write: Boolean!
678
- }
679
-
680
- type PostACLObjectRolesACL {
681
- roleId: String!
682
- read: Boolean!
683
- write: Boolean!
684
- }
685
-
686
- input PostInput {
687
- name: String!
688
- test2: RoleEnum
689
- test3: UserRelationInput
690
- test4: UserPointerInput
691
- experiences: [PostExperienceInput!]
692
- acl: PostACLObjectInput
693
- createdAt: Date
694
- updatedAt: Date
695
- search: [String]
696
- }
697
-
698
- input PostExperienceInput {
699
- jobTitle: String!
700
- companyName: String!
701
- startDate: String!
702
- endDate: String!
703
- achievements: [String]
704
- }
705
-
706
- input PostACLObjectInput {
707
- users: [PostACLObjectUsersACLInput]
708
- roles: [PostACLObjectRolesACLInput]
709
- }
710
-
711
- input PostACLObjectUsersACLInput {
712
- userId: String!
713
- read: Boolean!
714
- write: Boolean!
715
- }
716
-
717
- input PostACLObjectRolesACLInput {
718
- roleId: String!
719
- read: Boolean!
720
- write: Boolean!
721
- }
722
-
723
- """Input to link an object to a pointer Post"""
724
- input PostPointerInput {
725
- unlink: Boolean
726
- link: ID
727
- createAndLink: PostCreateFieldsInput
728
- }
729
-
730
- input PostCreateFieldsInput {
731
- name: String
732
- test2: RoleEnum
733
- test3: UserRelationInput
734
- test4: UserPointerInput
735
- experiences: [PostExperienceCreateFieldsInput!]
736
- acl: PostACLObjectCreateFieldsInput
737
- createdAt: Date
738
- updatedAt: Date
739
- search: [String]
740
- }
741
-
742
- input PostExperienceCreateFieldsInput {
743
- jobTitle: String
744
- companyName: String
745
- startDate: String
746
- endDate: String
747
- achievements: [String]
748
- }
749
-
750
- input PostACLObjectCreateFieldsInput {
751
- users: [PostACLObjectUsersACLCreateFieldsInput]
752
- roles: [PostACLObjectRolesACLCreateFieldsInput]
753
- }
754
-
755
- input PostACLObjectUsersACLCreateFieldsInput {
756
- userId: String
757
- read: Boolean
758
- write: Boolean
759
- }
760
-
761
- input PostACLObjectRolesACLCreateFieldsInput {
762
- roleId: String
763
- read: Boolean
764
- write: Boolean
765
- }
766
-
767
- """Input to add a relation to the class Post"""
768
- input PostRelationInput {
769
- add: [ID!]
770
- remove: [ID!]
771
- createAndAdd: [PostCreateFieldsInput!]
772
- }
773
-
774
- type _Session {
775
- id: ID!
776
- user: User
777
- accessTokenEncrypted: String!
778
- accessTokenExpiresAt: Date!
779
- refreshTokenEncrypted: String!
780
- refreshTokenExpiresAt: Date!
781
- acl: _SessionACLObject
782
- createdAt: Date
783
- updatedAt: Date
784
- search: [String]
785
- }
786
-
787
- type _SessionACLObject {
788
- users: [_SessionACLObjectUsersACL]
789
- roles: [_SessionACLObjectRolesACL]
790
- }
791
-
792
- type _SessionACLObjectUsersACL {
793
- userId: String!
794
- read: Boolean!
795
- write: Boolean!
796
- }
797
-
798
- type _SessionACLObjectRolesACL {
799
- roleId: String!
800
- read: Boolean!
801
- write: Boolean!
802
- }
803
-
804
- input _SessionInput {
805
- user: UserPointerInput
806
- accessTokenEncrypted: String!
807
- accessTokenExpiresAt: Date!
808
- refreshTokenEncrypted: String!
809
- refreshTokenExpiresAt: Date!
810
- acl: _SessionACLObjectInput
811
- createdAt: Date
812
- updatedAt: Date
813
- search: [String]
814
- }
815
-
816
- input _SessionACLObjectInput {
817
- users: [_SessionACLObjectUsersACLInput]
818
- roles: [_SessionACLObjectRolesACLInput]
819
- }
820
-
821
- input _SessionACLObjectUsersACLInput {
822
- userId: String!
823
- read: Boolean!
824
- write: Boolean!
825
- }
826
-
827
- input _SessionACLObjectRolesACLInput {
828
- roleId: String!
829
- read: Boolean!
830
- write: Boolean!
831
- }
832
-
833
- """Input to link an object to a pointer _Session"""
834
- input _SessionPointerInput {
835
- unlink: Boolean
836
- link: ID
837
- createAndLink: _SessionCreateFieldsInput
838
- }
839
-
840
- input _SessionCreateFieldsInput {
841
- user: UserPointerInput
842
- accessTokenEncrypted: String
843
- accessTokenExpiresAt: Date
844
- refreshTokenEncrypted: String
845
- refreshTokenExpiresAt: Date
846
- acl: _SessionACLObjectCreateFieldsInput
847
- createdAt: Date
848
- updatedAt: Date
849
- search: [String]
850
- }
851
-
852
- input _SessionACLObjectCreateFieldsInput {
853
- users: [_SessionACLObjectUsersACLCreateFieldsInput]
854
- roles: [_SessionACLObjectRolesACLCreateFieldsInput]
855
- }
856
-
857
- input _SessionACLObjectUsersACLCreateFieldsInput {
858
- userId: String
859
- read: Boolean
860
- write: Boolean
861
- }
862
-
863
- input _SessionACLObjectRolesACLCreateFieldsInput {
864
- roleId: String
865
- read: Boolean
866
- write: Boolean
867
- }
868
-
869
- """Input to add a relation to the class _Session"""
870
- input _SessionRelationInput {
871
- add: [ID!]
872
- remove: [ID!]
873
- createAndAdd: [_SessionCreateFieldsInput!]
874
- }
875
-
876
- type Role {
877
- id: ID!
878
- name: String!
879
- users(where: UserWhereInput, offset: Int, first: Int, order: [UserOrder!]): UserConnection
880
- acl: RoleACLObject
881
- createdAt: Date
882
- updatedAt: Date
883
- search: [String]
884
- }
885
-
886
- type RoleACLObject {
887
- users: [RoleACLObjectUsersACL]
888
- roles: [RoleACLObjectRolesACL]
889
- }
890
-
891
- type RoleACLObjectUsersACL {
892
- userId: String!
893
- read: Boolean!
894
- write: Boolean!
895
- }
896
-
897
- type RoleACLObjectRolesACL {
898
- roleId: String!
899
- read: Boolean!
900
- write: Boolean!
901
- }
902
-
903
- input RoleInput {
904
- name: String!
905
- users: UserRelationInput
906
- acl: RoleACLObjectInput
907
- createdAt: Date
908
- updatedAt: Date
909
- search: [String]
910
- }
911
-
912
- input RoleACLObjectInput {
913
- users: [RoleACLObjectUsersACLInput]
914
- roles: [RoleACLObjectRolesACLInput]
915
- }
916
-
917
- input RoleACLObjectUsersACLInput {
918
- userId: String!
919
- read: Boolean!
920
- write: Boolean!
921
- }
922
-
923
- input RoleACLObjectRolesACLInput {
924
- roleId: String!
925
- read: Boolean!
926
- write: Boolean!
927
- }
928
-
929
- """Input to link an object to a pointer Role"""
930
- input RolePointerInput {
931
- unlink: Boolean
932
- link: ID
933
- createAndLink: RoleCreateFieldsInput
934
- }
935
-
936
- input RoleCreateFieldsInput {
937
- name: String
938
- users: UserRelationInput
939
- acl: RoleACLObjectCreateFieldsInput
940
- createdAt: Date
941
- updatedAt: Date
942
- search: [String]
943
- }
944
-
945
- input RoleACLObjectCreateFieldsInput {
946
- users: [RoleACLObjectUsersACLCreateFieldsInput]
947
- roles: [RoleACLObjectRolesACLCreateFieldsInput]
948
- }
949
-
950
- input RoleACLObjectUsersACLCreateFieldsInput {
951
- userId: String
952
- read: Boolean
953
- write: Boolean
954
- }
955
-
956
- input RoleACLObjectRolesACLCreateFieldsInput {
957
- roleId: String
958
- read: Boolean
959
- write: Boolean
960
- }
961
-
962
- """Input to add a relation to the class Role"""
963
- input RoleRelationInput {
964
- add: [ID!]
965
- remove: [ID!]
966
- createAndAdd: [RoleCreateFieldsInput!]
967
- }
968
-
969
- type _InternalConfig {
970
- id: ID!
971
- configKey: String!
972
- configValue: String!
973
- description: String
974
- acl: _InternalConfigACLObject
975
- createdAt: Date
976
- updatedAt: Date
977
- search: [String]
978
- }
979
-
980
- type _InternalConfigACLObject {
981
- users: [_InternalConfigACLObjectUsersACL]
982
- roles: [_InternalConfigACLObjectRolesACL]
983
- }
984
-
985
- type _InternalConfigACLObjectUsersACL {
986
- userId: String!
987
- read: Boolean!
988
- write: Boolean!
989
- }
990
-
991
- type _InternalConfigACLObjectRolesACL {
992
- roleId: String!
993
- read: Boolean!
994
- write: Boolean!
995
- }
996
-
997
- input _InternalConfigInput {
998
- configKey: String!
999
- configValue: String!
1000
- description: String
1001
- acl: _InternalConfigACLObjectInput
1002
- createdAt: Date
1003
- updatedAt: Date
1004
- search: [String]
1005
- }
1006
-
1007
- input _InternalConfigACLObjectInput {
1008
- users: [_InternalConfigACLObjectUsersACLInput]
1009
- roles: [_InternalConfigACLObjectRolesACLInput]
1010
- }
1011
-
1012
- input _InternalConfigACLObjectUsersACLInput {
1013
- userId: String!
1014
- read: Boolean!
1015
- write: Boolean!
1016
- }
1017
-
1018
- input _InternalConfigACLObjectRolesACLInput {
1019
- roleId: String!
1020
- read: Boolean!
1021
- write: Boolean!
1022
- }
1023
-
1024
- """Input to link an object to a pointer _InternalConfig"""
1025
- input _InternalConfigPointerInput {
1026
- unlink: Boolean
1027
- link: ID
1028
- createAndLink: _InternalConfigCreateFieldsInput
1029
- }
1030
-
1031
- input _InternalConfigCreateFieldsInput {
1032
- configKey: String
1033
- configValue: String
1034
- description: String
1035
- acl: _InternalConfigACLObjectCreateFieldsInput
1036
- createdAt: Date
1037
- updatedAt: Date
1038
- search: [String]
1039
- }
1040
-
1041
- input _InternalConfigACLObjectCreateFieldsInput {
1042
- users: [_InternalConfigACLObjectUsersACLCreateFieldsInput]
1043
- roles: [_InternalConfigACLObjectRolesACLCreateFieldsInput]
1044
- }
1045
-
1046
- input _InternalConfigACLObjectUsersACLCreateFieldsInput {
1047
- userId: String
1048
- read: Boolean
1049
- write: Boolean
1050
- }
1051
-
1052
- input _InternalConfigACLObjectRolesACLCreateFieldsInput {
1053
- roleId: String
1054
- read: Boolean
1055
- write: Boolean
1056
- }
1057
-
1058
- """Input to add a relation to the class _InternalConfig"""
1059
- input _InternalConfigRelationInput {
1060
- add: [ID!]
1061
- remove: [ID!]
1062
- createAndAdd: [_InternalConfigCreateFieldsInput!]
1063
- }
1064
-
1065
- type Query {
1066
- """User class"""
1067
- user(id: ID): User
1068
-
1069
- """User class"""
1070
- users(where: UserWhereInput, offset: Int, first: Int, order: [UserOrder!]): UserConnection!
1071
- post(id: ID): Post
1072
- posts(where: PostWhereInput, offset: Int, first: Int, order: [PostOrder!]): PostConnection!
1073
- _session(id: ID): _Session
1074
- _sessions(where: _SessionWhereInput, offset: Int, first: Int, order: [_SessionOrder!]): _SessionConnection!
1075
- role(id: ID): Role
1076
- roles(where: RoleWhereInput, offset: Int, first: Int, order: [RoleOrder!]): RoleConnection!
1077
- _internalConfig(id: ID): _InternalConfig
1078
- _internalConfigs(where: _InternalConfigWhereInput, offset: Int, first: Int, order: [_InternalConfigOrder!]): _InternalConfigConnection!
1079
-
1080
- """Hello world description"""
1081
- helloWorld(name: String!): String
1082
- me: MeOutput
1083
- }
1084
-
1085
- type PostConnection {
1086
- ok: Boolean
1087
- totalCount: Int
1088
- edges: [PostEdge]
1089
- }
1090
-
1091
- type PostEdge {
1092
- node: Post!
1093
- }
1094
-
1095
- input PostWhereInput {
1096
- id: IdWhereInput
1097
- name: StringWhereInput
1098
- test2: AnyWhereInput
1099
- test3: UserRelationWhereInput
1100
- test4: UserWhereInput
1101
- experiences: [PostExperienceWhereInput!]
1102
- acl: PostACLObjectWhereInput
1103
- createdAt: DateWhereInput
1104
- updatedAt: DateWhereInput
1105
- search: SearchWhereInput
1106
- OR: [PostWhereInput]
1107
- AND: [PostWhereInput]
1108
- }
1109
-
1110
- input PostExperienceWhereInput {
1111
- jobTitle: StringWhereInput
1112
- companyName: StringWhereInput
1113
- startDate: StringWhereInput
1114
- endDate: StringWhereInput
1115
- achievements: ArrayWhereInput
1116
- OR: [PostExperienceWhereInput]
1117
- AND: [PostExperienceWhereInput]
1118
- }
1119
-
1120
- input ArrayWhereInput {
1121
- equalTo: Any
1122
- notEqualTo: Any
1123
- contains: Any
1124
- notContains: Any
1125
- exists: Boolean
1126
- }
1127
-
1128
- input PostACLObjectWhereInput {
1129
- users: [PostACLObjectUsersACLWhereInput]
1130
- roles: [PostACLObjectRolesACLWhereInput]
1131
- OR: [PostACLObjectWhereInput]
1132
- AND: [PostACLObjectWhereInput]
1133
- }
1134
-
1135
- input PostACLObjectUsersACLWhereInput {
1136
- userId: StringWhereInput
1137
- read: BooleanWhereInput
1138
- write: BooleanWhereInput
1139
- OR: [PostACLObjectUsersACLWhereInput]
1140
- AND: [PostACLObjectUsersACLWhereInput]
1141
- }
1142
-
1143
- input PostACLObjectRolesACLWhereInput {
1144
- roleId: StringWhereInput
1145
- read: BooleanWhereInput
1146
- write: BooleanWhereInput
1147
- OR: [PostACLObjectRolesACLWhereInput]
1148
- AND: [PostACLObjectRolesACLWhereInput]
1149
- }
1150
-
1151
- enum PostOrder {
1152
- name_ASC
1153
- name_DESC
1154
- test2_ASC
1155
- test2_DESC
1156
- test3_ASC
1157
- test3_DESC
1158
- test4_ASC
1159
- test4_DESC
1160
- experiences_ASC
1161
- experiences_DESC
1162
- acl_ASC
1163
- acl_DESC
1164
- createdAt_ASC
1165
- createdAt_DESC
1166
- updatedAt_ASC
1167
- updatedAt_DESC
1168
- search_ASC
1169
- search_DESC
1170
- }
1171
-
1172
- type RoleConnection {
1173
- ok: Boolean
1174
- totalCount: Int
1175
- edges: [RoleEdge]
1176
- }
1177
-
1178
- type RoleEdge {
1179
- node: Role!
1180
- }
1181
-
1182
- enum RoleOrder {
1183
- name_ASC
1184
- name_DESC
1185
- users_ASC
1186
- users_DESC
1187
- acl_ASC
1188
- acl_DESC
1189
- createdAt_ASC
1190
- createdAt_DESC
1191
- updatedAt_ASC
1192
- updatedAt_DESC
1193
- search_ASC
1194
- search_DESC
1195
- }
1196
-
1197
- type _InternalConfigConnection {
1198
- ok: Boolean
1199
- totalCount: Int
1200
- edges: [_InternalConfigEdge]
1201
- }
1202
-
1203
- type _InternalConfigEdge {
1204
- node: _InternalConfig!
1205
- }
1206
-
1207
- input _InternalConfigWhereInput {
1208
- id: IdWhereInput
1209
- configKey: StringWhereInput
1210
- configValue: StringWhereInput
1211
- description: StringWhereInput
1212
- acl: _InternalConfigACLObjectWhereInput
1213
- createdAt: DateWhereInput
1214
- updatedAt: DateWhereInput
1215
- search: SearchWhereInput
1216
- OR: [_InternalConfigWhereInput]
1217
- AND: [_InternalConfigWhereInput]
1218
- }
1219
-
1220
- input _InternalConfigACLObjectWhereInput {
1221
- users: [_InternalConfigACLObjectUsersACLWhereInput]
1222
- roles: [_InternalConfigACLObjectRolesACLWhereInput]
1223
- OR: [_InternalConfigACLObjectWhereInput]
1224
- AND: [_InternalConfigACLObjectWhereInput]
1225
- }
1226
-
1227
- input _InternalConfigACLObjectUsersACLWhereInput {
1228
- userId: StringWhereInput
1229
- read: BooleanWhereInput
1230
- write: BooleanWhereInput
1231
- OR: [_InternalConfigACLObjectUsersACLWhereInput]
1232
- AND: [_InternalConfigACLObjectUsersACLWhereInput]
1233
- }
1234
-
1235
- input _InternalConfigACLObjectRolesACLWhereInput {
1236
- roleId: StringWhereInput
1237
- read: BooleanWhereInput
1238
- write: BooleanWhereInput
1239
- OR: [_InternalConfigACLObjectRolesACLWhereInput]
1240
- AND: [_InternalConfigACLObjectRolesACLWhereInput]
1241
- }
1242
-
1243
- enum _InternalConfigOrder {
1244
- configKey_ASC
1245
- configKey_DESC
1246
- configValue_ASC
1247
- configValue_DESC
1248
- description_ASC
1249
- description_DESC
1250
- acl_ASC
1251
- acl_DESC
1252
- createdAt_ASC
1253
- createdAt_DESC
1254
- updatedAt_ASC
1255
- updatedAt_DESC
1256
- search_ASC
1257
- search_DESC
1258
- }
1259
-
1260
- type MeOutput {
1261
- user: User
1262
- }
1263
-
1264
- type Mutation {
1265
- """User class"""
1266
- createUser(input: CreateUserInput!): CreateUserPayload
1267
-
1268
- """User class"""
1269
- createUsers(input: CreateUsersInput!): UserConnection!
1270
-
1271
- """User class"""
1272
- updateUser(input: UpdateUserInput!): UpdateUserPayload
1273
-
1274
- """User class"""
1275
- updateUsers(input: UpdateUsersInput!): UserConnection!
1276
-
1277
- """User class"""
1278
- deleteUser(input: DeleteUserInput!): DeleteUserPayload
1279
-
1280
- """User class"""
1281
- deleteUsers(input: DeleteUsersInput!): UserConnection!
1282
- createPost(input: CreatePostInput!): CreatePostPayload
1283
- createPosts(input: CreatePostsInput!): PostConnection!
1284
- updatePost(input: UpdatePostInput!): UpdatePostPayload
1285
- updatePosts(input: UpdatePostsInput!): PostConnection!
1286
- deletePost(input: DeletePostInput!): DeletePostPayload
1287
- deletePosts(input: DeletePostsInput!): PostConnection!
1288
- create_Session(input: Create_SessionInput!): Create_SessionPayload
1289
- create_Sessions(input: Create_SessionsInput!): _SessionConnection!
1290
- update_Session(input: Update_SessionInput!): Update_SessionPayload
1291
- update_Sessions(input: Update_SessionsInput!): _SessionConnection!
1292
- delete_Session(input: Delete_SessionInput!): Delete_SessionPayload
1293
- delete_Sessions(input: Delete_SessionsInput!): _SessionConnection!
1294
- createRole(input: CreateRoleInput!): CreateRolePayload
1295
- createRoles(input: CreateRolesInput!): RoleConnection!
1296
- updateRole(input: UpdateRoleInput!): UpdateRolePayload
1297
- updateRoles(input: UpdateRolesInput!): RoleConnection!
1298
- deleteRole(input: DeleteRoleInput!): DeleteRolePayload
1299
- deleteRoles(input: DeleteRolesInput!): RoleConnection!
1300
- create_InternalConfig(input: Create_InternalConfigInput!): Create_InternalConfigPayload
1301
- create_InternalConfigs(input: Create_InternalConfigsInput!): _InternalConfigConnection!
1302
- update_InternalConfig(input: Update_InternalConfigInput!): Update_InternalConfigPayload
1303
- update_InternalConfigs(input: Update_InternalConfigsInput!): _InternalConfigConnection!
1304
- delete_InternalConfig(input: Delete_InternalConfigInput!): Delete_InternalConfigPayload
1305
- delete_InternalConfigs(input: Delete_InternalConfigsInput!): _InternalConfigConnection!
1306
- createMutation(input: CreateMutationInput!): Boolean!
1307
- customMutation(input: CustomMutationInput!): Int
1308
- secondCustomMutation(input: SecondCustomMutationInput!): Int
1309
-
1310
- """Mutation to reset the password of the user"""
1311
- resetPassword(input: ResetPasswordInput!): Boolean
1312
-
1313
- """Send an OTP code by email to the user"""
1314
- sendOtpCode(input: SendOtpCodeInput!): Boolean
1315
-
1316
- """Send basic email with text and html, returns the id of the email"""
1317
- sendEmail(input: SendEmailInput!): String
1318
- signInWith(input: SignInWithInput!): SignInWithOutput
1319
- signUpWith(input: SignUpWithInput!): SignUpWithOutput
1320
- signOut: Boolean
1321
- refresh(input: RefreshInput!): RefreshSessionOutput
1322
- verifyChallenge(input: VerifyChallengeInput!): VerifyChallengeOutput
1323
- }
1324
-
1325
- type CreateUserPayload {
1326
- user: User
1327
- ok: Boolean
1328
- }
1329
-
1330
- input CreateUserInput {
1331
- fields: UserCreateFieldsInput
1332
- }
1333
-
1334
- input CreateUsersInput {
1335
- fields: [UserCreateFieldsInput]!
1336
- offset: Int
1337
- first: Int
1338
- order: [UserOrder]
1339
- }
1340
-
1341
- type UpdateUserPayload {
1342
- user: User
1343
- ok: Boolean
1344
- }
1345
-
1346
- input UpdateUserInput {
1347
- id: ID
1348
- fields: UserUpdateFieldsInput
1349
- }
1350
-
1351
- """User class"""
1352
- input UserUpdateFieldsInput {
1353
- name: String
1354
- age: Int
1355
- email: Email
1356
- acl: UserACLObjectUpdateFieldsInput
1357
- createdAt: Date
1358
- updatedAt: Date
1359
- search: [String]
1360
- authentication: UserAuthenticationUpdateFieldsInput
1361
- provider: AuthenticationProvider
1362
- isOauth: Boolean
1363
- verifiedEmail: Boolean
1364
- role: RolePointerInput
1365
- sessions: _SessionRelationInput
1366
- secondFA: UserSecondFAUpdateFieldsInput
1367
- pendingChallenges: [UserPendingAuthenticationChallengeUpdateFieldsInput]
1368
- }
1369
-
1370
- input UserACLObjectUpdateFieldsInput {
1371
- users: [UserACLObjectUsersACLUpdateFieldsInput]
1372
- roles: [UserACLObjectRolesACLUpdateFieldsInput]
1373
- }
1374
-
1375
- input UserACLObjectUsersACLUpdateFieldsInput {
1376
- userId: String
1377
- read: Boolean
1378
- write: Boolean
1379
- }
1380
-
1381
- input UserACLObjectRolesACLUpdateFieldsInput {
1382
- roleId: String
1383
- read: Boolean
1384
- write: Boolean
1385
- }
1386
-
1387
- input UserAuthenticationUpdateFieldsInput {
1388
- emailPasswordSRP: UserAuthenticationEmailPasswordSRPUpdateFieldsInput
1389
- phonePassword: UserAuthenticationPhonePasswordUpdateFieldsInput
1390
- emailPassword: UserAuthenticationEmailPasswordUpdateFieldsInput
1391
- google: UserAuthenticationGoogleUpdateFieldsInput
1392
- github: UserAuthenticationGithubUpdateFieldsInput
1393
- }
1394
-
1395
- input UserAuthenticationEmailPasswordSRPUpdateFieldsInput {
1396
- email: Email
1397
- salt: String
1398
- verifier: String
1399
- serverSecret: String
1400
- }
1401
-
1402
- input UserAuthenticationPhonePasswordUpdateFieldsInput {
1403
- phone: Phone
1404
- password: String
1405
- }
1406
-
1407
- input UserAuthenticationEmailPasswordUpdateFieldsInput {
1408
- email: Email
1409
- password: String
1410
- }
1411
-
1412
- input UserAuthenticationGoogleUpdateFieldsInput {
1413
- email: Email
1414
- verifiedEmail: Boolean
1415
- }
1416
-
1417
- input UserAuthenticationGithubUpdateFieldsInput {
1418
- email: Email
1419
- avatarUrl: String
1420
- username: String
1421
- }
1422
-
1423
- input UserSecondFAUpdateFieldsInput {
1424
- enabled: Boolean
1425
- provider: SecondaryFactor
1426
- }
1427
-
1428
- input UserPendingAuthenticationChallengeUpdateFieldsInput {
1429
- token: String
1430
- provider: String
1431
- expiresAt: Date
1432
- }
1433
-
1434
- input UpdateUsersInput {
1435
- fields: UserUpdateFieldsInput
1436
- where: UserWhereInput
1437
- offset: Int
1438
- first: Int
1439
- order: [UserOrder]
1440
- }
1441
-
1442
- type DeleteUserPayload {
1443
- user: User
1444
- ok: Boolean
1445
- }
1446
-
1447
- input DeleteUserInput {
1448
- id: ID
1449
- }
1450
-
1451
- input DeleteUsersInput {
1452
- where: UserWhereInput
1453
- order: [UserOrder]
1454
- }
1455
-
1456
- type CreatePostPayload {
1457
- post: Post
1458
- ok: Boolean
1459
- }
1460
-
1461
- input CreatePostInput {
1462
- fields: PostCreateFieldsInput
1463
- }
1464
-
1465
- input CreatePostsInput {
1466
- fields: [PostCreateFieldsInput]!
1467
- offset: Int
1468
- first: Int
1469
- order: [PostOrder]
1470
- }
1471
-
1472
- type UpdatePostPayload {
1473
- post: Post
1474
- ok: Boolean
1475
- }
1476
-
1477
- input UpdatePostInput {
1478
- id: ID
1479
- fields: PostUpdateFieldsInput
1480
- }
1481
-
1482
- input PostUpdateFieldsInput {
1483
- name: String
1484
- test2: RoleEnum
1485
- test3: UserRelationInput
1486
- test4: UserPointerInput
1487
- experiences: [PostExperienceUpdateFieldsInput!]
1488
- acl: PostACLObjectUpdateFieldsInput
1489
- createdAt: Date
1490
- updatedAt: Date
1491
- search: [String]
1492
- }
1493
-
1494
- input PostExperienceUpdateFieldsInput {
1495
- jobTitle: String
1496
- companyName: String
1497
- startDate: String
1498
- endDate: String
1499
- achievements: [String]
1500
- }
1501
-
1502
- input PostACLObjectUpdateFieldsInput {
1503
- users: [PostACLObjectUsersACLUpdateFieldsInput]
1504
- roles: [PostACLObjectRolesACLUpdateFieldsInput]
1505
- }
1506
-
1507
- input PostACLObjectUsersACLUpdateFieldsInput {
1508
- userId: String
1509
- read: Boolean
1510
- write: Boolean
1511
- }
1512
-
1513
- input PostACLObjectRolesACLUpdateFieldsInput {
1514
- roleId: String
1515
- read: Boolean
1516
- write: Boolean
1517
- }
1518
-
1519
- input UpdatePostsInput {
1520
- fields: PostUpdateFieldsInput
1521
- where: PostWhereInput
1522
- offset: Int
1523
- first: Int
1524
- order: [PostOrder]
1525
- }
1526
-
1527
- type DeletePostPayload {
1528
- post: Post
1529
- ok: Boolean
1530
- }
1531
-
1532
- input DeletePostInput {
1533
- id: ID
1534
- }
1535
-
1536
- input DeletePostsInput {
1537
- where: PostWhereInput
1538
- order: [PostOrder]
1539
- }
1540
-
1541
- type Create_SessionPayload {
1542
- _session: _Session
1543
- ok: Boolean
1544
- }
1545
-
1546
- input Create_SessionInput {
1547
- fields: _SessionCreateFieldsInput
1548
- }
1549
-
1550
- input Create_SessionsInput {
1551
- fields: [_SessionCreateFieldsInput]!
1552
- offset: Int
1553
- first: Int
1554
- order: [_SessionOrder]
1555
- }
1556
-
1557
- type Update_SessionPayload {
1558
- _session: _Session
1559
- ok: Boolean
1560
- }
1561
-
1562
- input Update_SessionInput {
1563
- id: ID
1564
- fields: _SessionUpdateFieldsInput
1565
- }
1566
-
1567
- input _SessionUpdateFieldsInput {
1568
- user: UserPointerInput
1569
- accessTokenEncrypted: String
1570
- accessTokenExpiresAt: Date
1571
- refreshTokenEncrypted: String
1572
- refreshTokenExpiresAt: Date
1573
- acl: _SessionACLObjectUpdateFieldsInput
1574
- createdAt: Date
1575
- updatedAt: Date
1576
- search: [String]
1577
- }
1578
-
1579
- input _SessionACLObjectUpdateFieldsInput {
1580
- users: [_SessionACLObjectUsersACLUpdateFieldsInput]
1581
- roles: [_SessionACLObjectRolesACLUpdateFieldsInput]
1582
- }
1583
-
1584
- input _SessionACLObjectUsersACLUpdateFieldsInput {
1585
- userId: String
1586
- read: Boolean
1587
- write: Boolean
1588
- }
1589
-
1590
- input _SessionACLObjectRolesACLUpdateFieldsInput {
1591
- roleId: String
1592
- read: Boolean
1593
- write: Boolean
1594
- }
1595
-
1596
- input Update_SessionsInput {
1597
- fields: _SessionUpdateFieldsInput
1598
- where: _SessionWhereInput
1599
- offset: Int
1600
- first: Int
1601
- order: [_SessionOrder]
1602
- }
1603
-
1604
- type Delete_SessionPayload {
1605
- _session: _Session
1606
- ok: Boolean
1607
- }
1608
-
1609
- input Delete_SessionInput {
1610
- id: ID
1611
- }
1612
-
1613
- input Delete_SessionsInput {
1614
- where: _SessionWhereInput
1615
- order: [_SessionOrder]
1616
- }
1617
-
1618
- type CreateRolePayload {
1619
- role: Role
1620
- ok: Boolean
1621
- }
1622
-
1623
- input CreateRoleInput {
1624
- fields: RoleCreateFieldsInput
1625
- }
1626
-
1627
- input CreateRolesInput {
1628
- fields: [RoleCreateFieldsInput]!
1629
- offset: Int
1630
- first: Int
1631
- order: [RoleOrder]
1632
- }
1633
-
1634
- type UpdateRolePayload {
1635
- role: Role
1636
- ok: Boolean
1637
- }
1638
-
1639
- input UpdateRoleInput {
1640
- id: ID
1641
- fields: RoleUpdateFieldsInput
1642
- }
1643
-
1644
- input RoleUpdateFieldsInput {
1645
- name: String
1646
- users: UserRelationInput
1647
- acl: RoleACLObjectUpdateFieldsInput
1648
- createdAt: Date
1649
- updatedAt: Date
1650
- search: [String]
1651
- }
1652
-
1653
- input RoleACLObjectUpdateFieldsInput {
1654
- users: [RoleACLObjectUsersACLUpdateFieldsInput]
1655
- roles: [RoleACLObjectRolesACLUpdateFieldsInput]
1656
- }
1657
-
1658
- input RoleACLObjectUsersACLUpdateFieldsInput {
1659
- userId: String
1660
- read: Boolean
1661
- write: Boolean
1662
- }
1663
-
1664
- input RoleACLObjectRolesACLUpdateFieldsInput {
1665
- roleId: String
1666
- read: Boolean
1667
- write: Boolean
1668
- }
1669
-
1670
- input UpdateRolesInput {
1671
- fields: RoleUpdateFieldsInput
1672
- where: RoleWhereInput
1673
- offset: Int
1674
- first: Int
1675
- order: [RoleOrder]
1676
- }
1677
-
1678
- type DeleteRolePayload {
1679
- role: Role
1680
- ok: Boolean
1681
- }
1682
-
1683
- input DeleteRoleInput {
1684
- id: ID
1685
- }
1686
-
1687
- input DeleteRolesInput {
1688
- where: RoleWhereInput
1689
- order: [RoleOrder]
1690
- }
1691
-
1692
- type Create_InternalConfigPayload {
1693
- _internalConfig: _InternalConfig
1694
- ok: Boolean
1695
- }
1696
-
1697
- input Create_InternalConfigInput {
1698
- fields: _InternalConfigCreateFieldsInput
1699
- }
1700
-
1701
- input Create_InternalConfigsInput {
1702
- fields: [_InternalConfigCreateFieldsInput]!
1703
- offset: Int
1704
- first: Int
1705
- order: [_InternalConfigOrder]
1706
- }
1707
-
1708
- type Update_InternalConfigPayload {
1709
- _internalConfig: _InternalConfig
1710
- ok: Boolean
1711
- }
1712
-
1713
- input Update_InternalConfigInput {
1714
- id: ID
1715
- fields: _InternalConfigUpdateFieldsInput
1716
- }
1717
-
1718
- input _InternalConfigUpdateFieldsInput {
1719
- configKey: String
1720
- configValue: String
1721
- description: String
1722
- acl: _InternalConfigACLObjectUpdateFieldsInput
1723
- createdAt: Date
1724
- updatedAt: Date
1725
- search: [String]
1726
- }
1727
-
1728
- input _InternalConfigACLObjectUpdateFieldsInput {
1729
- users: [_InternalConfigACLObjectUsersACLUpdateFieldsInput]
1730
- roles: [_InternalConfigACLObjectRolesACLUpdateFieldsInput]
1731
- }
1732
-
1733
- input _InternalConfigACLObjectUsersACLUpdateFieldsInput {
1734
- userId: String
1735
- read: Boolean
1736
- write: Boolean
1737
- }
1738
-
1739
- input _InternalConfigACLObjectRolesACLUpdateFieldsInput {
1740
- roleId: String
1741
- read: Boolean
1742
- write: Boolean
1743
- }
1744
-
1745
- input Update_InternalConfigsInput {
1746
- fields: _InternalConfigUpdateFieldsInput
1747
- where: _InternalConfigWhereInput
1748
- offset: Int
1749
- first: Int
1750
- order: [_InternalConfigOrder]
1751
- }
1752
-
1753
- type Delete_InternalConfigPayload {
1754
- _internalConfig: _InternalConfig
1755
- ok: Boolean
1756
- }
1757
-
1758
- input Delete_InternalConfigInput {
1759
- id: ID
1760
- }
1761
-
1762
- input Delete_InternalConfigsInput {
1763
- where: _InternalConfigWhereInput
1764
- order: [_InternalConfigOrder]
1765
- }
1766
-
1767
- input CreateMutationInput {
1768
- name: Int!
1769
- }
1770
-
1771
- input CustomMutationInput {
1772
- a: Int!
1773
- b: Int!
1774
- }
1775
-
1776
- input SecondCustomMutationInput {
1777
- sum: SecondCustomMutationSumInput
1778
- }
1779
-
1780
- input SecondCustomMutationSumInput {
1781
- a: Int!
1782
- b: Int!
1783
- }
1784
-
1785
- input ResetPasswordInput {
1786
- password: String!
1787
- email: Email
1788
- phone: String
1789
- otp: String!
1790
- }
1791
-
1792
- input SendOtpCodeInput {
1793
- email: Email!
1794
- }
1795
-
1796
- input SendEmailInput {
1797
- from: String!
1798
- to: [String!]!
1799
- subject: String!
1800
- text: String
1801
- html: String
1802
- }
1803
-
1804
- type SignInWithOutput {
1805
- user: User
1806
- challengeToken: String
1807
- accessToken: String
1808
- refreshToken: String
1809
- srp: SignInWithOutputSRPOutputSignInWith
1810
- }
1811
-
1812
- type SignInWithOutputSRPOutputSignInWith {
1813
- salt: String
1814
- serverPublic: String
1815
- }
1816
-
1817
- input SignInWithInput {
1818
- authentication: SignInWithAuthenticationInput!
1819
- }
1820
-
1821
- input SignInWithAuthenticationInput {
1822
- emailPasswordSRP: SignInWithAuthenticationEmailPasswordSRPInput
1823
- phonePassword: SignInWithAuthenticationPhonePasswordInput
1824
- emailPassword: SignInWithAuthenticationEmailPasswordInput
1825
- google: SignInWithAuthenticationGoogleInput
1826
- github: SignInWithAuthenticationGithubInput
1827
- }
1828
-
1829
- input SignInWithAuthenticationEmailPasswordSRPInput {
1830
- email: Email!
1831
- clientPublic: String
1832
- salt: String
1833
- verifier: String
1834
- }
1835
-
1836
- input SignInWithAuthenticationPhonePasswordInput {
1837
- phone: Phone!
1838
- password: String!
1839
- }
1840
-
1841
- input SignInWithAuthenticationEmailPasswordInput {
1842
- email: Email!
1843
- password: String!
1844
- }
1845
-
1846
- input SignInWithAuthenticationGoogleInput {
1847
- authorizationCode: String!
1848
- codeVerifier: String!
1849
- }
1850
-
1851
- input SignInWithAuthenticationGithubInput {
1852
- authorizationCode: String!
1853
- codeVerifier: String!
1854
- }
1855
-
1856
- type SignUpWithOutput {
1857
- id: String
1858
- accessToken: String!
1859
- refreshToken: String!
1860
- }
1861
-
1862
- input SignUpWithInput {
1863
- authentication: SignUpWithAuthenticationInput!
1864
- }
1865
-
1866
- input SignUpWithAuthenticationInput {
1867
- emailPasswordSRP: SignUpWithAuthenticationEmailPasswordSRPInput
1868
- phonePassword: SignUpWithAuthenticationPhonePasswordInput
1869
- emailPassword: SignUpWithAuthenticationEmailPasswordInput
1870
- google: SignUpWithAuthenticationGoogleInput
1871
- github: SignUpWithAuthenticationGithubInput
1872
- }
1873
-
1874
- input SignUpWithAuthenticationEmailPasswordSRPInput {
1875
- email: Email!
1876
- clientPublic: String
1877
- salt: String
1878
- verifier: String
1879
- }
1880
-
1881
- input SignUpWithAuthenticationPhonePasswordInput {
1882
- phone: Phone!
1883
- password: String!
1884
- }
1885
-
1886
- input SignUpWithAuthenticationEmailPasswordInput {
1887
- email: Email!
1888
- password: String!
1889
- }
1890
-
1891
- input SignUpWithAuthenticationGoogleInput {
1892
- authorizationCode: String!
1893
- codeVerifier: String!
1894
- }
1895
-
1896
- input SignUpWithAuthenticationGithubInput {
1897
- authorizationCode: String!
1898
- codeVerifier: String!
1899
- }
1900
-
1901
- type RefreshSessionOutput {
1902
- accessToken: String!
1903
- refreshToken: String!
1904
- }
1905
-
1906
- input RefreshInput {
1907
- accessToken: String!
1908
- refreshToken: String!
1909
- }
1910
-
1911
- type VerifyChallengeOutput {
1912
- accessToken: String
1913
- srp: VerifyChallengeOutputSRPOutputVerifyChallenge
1914
- }
1915
-
1916
- type VerifyChallengeOutputSRPOutputVerifyChallenge {
1917
- serverSessionProof: String!
1918
- }
1919
-
1920
- input VerifyChallengeInput {
1921
- challengeToken: String
1922
- secondFA: VerifyChallengeSecondaryFactorAuthenticationInput
1923
- }
1924
-
1925
- input VerifyChallengeSecondaryFactorAuthenticationInput {
1926
- emailPasswordSRPChallenge: VerifyChallengeSecondaryFactorAuthenticationEmailPasswordSRPChallengeInput
1927
- emailOTP: VerifyChallengeSecondaryFactorAuthenticationEmailOTPInput
1928
- qrCodeOTP: VerifyChallengeSecondaryFactorAuthenticationQrCodeOTPInput
1929
- }
1930
-
1931
- input VerifyChallengeSecondaryFactorAuthenticationEmailPasswordSRPChallengeInput {
1932
- email: Email!
1933
- clientPublic: String!
1934
- clientSessionProof: String!
1935
- }
1936
-
1937
- input VerifyChallengeSecondaryFactorAuthenticationEmailOTPInput {
1938
- email: Email!
1939
- otp: String!
1940
- }
1941
-
1942
- input VerifyChallengeSecondaryFactorAuthenticationQrCodeOTPInput {
1943
- email: Email!
1944
- otp: String!
1945
- }