wabe 0.6.11 → 0.6.13

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