wabe 0.5.23 → 0.6.1

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.
@@ -1,25 +1,36 @@
1
- """Phone custom scalar type"""
2
- scalar Phone
3
-
4
1
  enum RoleEnum {
5
2
  Admin
6
3
  Client
7
4
  }
8
5
 
9
6
  enum AuthenticationProvider {
7
+ github
10
8
  google
11
9
  emailPassword
10
+ phonePassword
12
11
  }
13
12
 
14
13
  enum SecondaryFactor {
15
14
  EmailOTP
16
15
  }
17
16
 
17
+ """Object containing information about the file"""
18
+ type FileInfo {
19
+ name: String
20
+ url: String
21
+ urlGeneratedAt: Date
22
+ isPresignedUrl: Boolean
23
+ }
24
+
25
+ """Date scalar type"""
26
+ scalar Date
27
+
18
28
  """User class"""
19
29
  type User {
20
30
  id: ID!
21
31
  name: String
22
32
  age: Int
33
+ email: Email
23
34
  acl: UserACLObject
24
35
  createdAt: Date
25
36
  updatedAt: Date
@@ -27,12 +38,14 @@ type User {
27
38
  authentication: UserAuthentication
28
39
  provider: AuthenticationProvider
29
40
  isOauth: Boolean
30
- email: Email
31
41
  verifiedEmail: Boolean
32
42
  role: Role
33
43
  sessions: _SessionConnection
34
44
  }
35
45
 
46
+ """Email scalar type"""
47
+ scalar Email
48
+
36
49
  type UserACLObject {
37
50
  users: [UserACLObjectUsersACL]
38
51
  roles: [UserACLObjectRolesACL]
@@ -50,26 +63,35 @@ type UserACLObjectRolesACL {
50
63
  write: Boolean!
51
64
  }
52
65
 
53
- """Date scalar type"""
54
- scalar Date
55
-
56
66
  type UserAuthentication {
67
+ phonePassword: UserAuthenticationPhonePassword
57
68
  emailPassword: UserAuthenticationEmailPassword
58
69
  google: UserAuthenticationGoogle
70
+ github: UserAuthenticationGithub
71
+ }
72
+
73
+ type UserAuthenticationPhonePassword {
74
+ phone: Phone!
75
+ password: String!
59
76
  }
60
77
 
78
+ """Phone scalar type"""
79
+ scalar Phone
80
+
61
81
  type UserAuthenticationEmailPassword {
62
82
  email: Email!
63
83
  password: String!
64
84
  }
65
85
 
66
- """Email scalar type"""
67
- scalar Email
68
-
69
86
  type UserAuthenticationGoogle {
70
87
  email: Email!
71
88
  verifiedEmail: Boolean!
72
- idToken: String!
89
+ }
90
+
91
+ type UserAuthenticationGithub {
92
+ email: Email!
93
+ avatarUrl: String!
94
+ username: String!
73
95
  }
74
96
 
75
97
  type _SessionConnection {
@@ -85,6 +107,7 @@ type _SessionEdge {
85
107
  input UserInput {
86
108
  name: String
87
109
  age: Int
110
+ email: Email
88
111
  acl: UserACLObjectInput
89
112
  createdAt: Date
90
113
  updatedAt: Date
@@ -92,7 +115,6 @@ input UserInput {
92
115
  authentication: UserAuthenticationInput
93
116
  provider: AuthenticationProvider
94
117
  isOauth: Boolean
95
- email: Email
96
118
  verifiedEmail: Boolean
97
119
  role: RolePointerInput
98
120
  sessions: _SessionRelationInput
@@ -116,8 +138,15 @@ input UserACLObjectRolesACLInput {
116
138
  }
117
139
 
118
140
  input UserAuthenticationInput {
141
+ phonePassword: UserAuthenticationPhonePasswordInput
119
142
  emailPassword: UserAuthenticationEmailPasswordInput
120
143
  google: UserAuthenticationGoogleInput
144
+ github: UserAuthenticationGithubInput
145
+ }
146
+
147
+ input UserAuthenticationPhonePasswordInput {
148
+ phone: Phone!
149
+ password: String!
121
150
  }
122
151
 
123
152
  input UserAuthenticationEmailPasswordInput {
@@ -128,7 +157,12 @@ input UserAuthenticationEmailPasswordInput {
128
157
  input UserAuthenticationGoogleInput {
129
158
  email: Email!
130
159
  verifiedEmail: Boolean!
131
- idToken: String!
160
+ }
161
+
162
+ input UserAuthenticationGithubInput {
163
+ email: Email!
164
+ avatarUrl: String!
165
+ username: String!
132
166
  }
133
167
 
134
168
  """Input to link an object to a pointer User"""
@@ -142,6 +176,7 @@ input UserPointerInput {
142
176
  input UserCreateFieldsInput {
143
177
  name: String
144
178
  age: Int
179
+ email: Email
145
180
  acl: UserACLObjectCreateFieldsInput
146
181
  createdAt: Date
147
182
  updatedAt: Date
@@ -149,7 +184,6 @@ input UserCreateFieldsInput {
149
184
  authentication: UserAuthenticationCreateFieldsInput
150
185
  provider: AuthenticationProvider
151
186
  isOauth: Boolean
152
- email: Email
153
187
  verifiedEmail: Boolean
154
188
  role: RolePointerInput
155
189
  sessions: _SessionRelationInput
@@ -173,8 +207,15 @@ input UserACLObjectRolesACLCreateFieldsInput {
173
207
  }
174
208
 
175
209
  input UserAuthenticationCreateFieldsInput {
210
+ phonePassword: UserAuthenticationPhonePasswordCreateFieldsInput
176
211
  emailPassword: UserAuthenticationEmailPasswordCreateFieldsInput
177
212
  google: UserAuthenticationGoogleCreateFieldsInput
213
+ github: UserAuthenticationGithubCreateFieldsInput
214
+ }
215
+
216
+ input UserAuthenticationPhonePasswordCreateFieldsInput {
217
+ phone: Phone
218
+ password: String
178
219
  }
179
220
 
180
221
  input UserAuthenticationEmailPasswordCreateFieldsInput {
@@ -185,7 +226,12 @@ input UserAuthenticationEmailPasswordCreateFieldsInput {
185
226
  input UserAuthenticationGoogleCreateFieldsInput {
186
227
  email: Email
187
228
  verifiedEmail: Boolean
188
- idToken: String
229
+ }
230
+
231
+ input UserAuthenticationGithubCreateFieldsInput {
232
+ email: Email
233
+ avatarUrl: String
234
+ username: String
189
235
  }
190
236
 
191
237
  """Input to add a relation to the class User"""
@@ -198,7 +244,6 @@ input UserRelationInput {
198
244
  type Post {
199
245
  id: ID!
200
246
  name: String!
201
- test: File
202
247
  test2: RoleEnum
203
248
  acl: PostACLObject
204
249
  createdAt: Date
@@ -206,9 +251,6 @@ type Post {
206
251
  search: [String]
207
252
  }
208
253
 
209
- """File scalar type"""
210
- scalar File
211
-
212
254
  type PostACLObject {
213
255
  users: [PostACLObjectUsersACL]
214
256
  roles: [PostACLObjectRolesACL]
@@ -228,7 +270,6 @@ type PostACLObjectRolesACL {
228
270
 
229
271
  input PostInput {
230
272
  name: String!
231
- test: File
232
273
  test2: RoleEnum
233
274
  acl: PostACLObjectInput
234
275
  createdAt: Date
@@ -262,7 +303,6 @@ input PostPointerInput {
262
303
 
263
304
  input PostCreateFieldsInput {
264
305
  name: String
265
- test: File
266
306
  test2: RoleEnum
267
307
  acl: PostACLObjectCreateFieldsInput
268
308
  createdAt: Date
@@ -619,6 +659,7 @@ input UserWhereInput {
619
659
  id: IdWhereInput
620
660
  name: StringWhereInput
621
661
  age: IntWhereInput
662
+ email: EmailWhereInput
622
663
  acl: UserACLObjectWhereInput
623
664
  createdAt: DateWhereInput
624
665
  updatedAt: DateWhereInput
@@ -626,7 +667,6 @@ input UserWhereInput {
626
667
  authentication: UserAuthenticationWhereInput
627
668
  provider: AnyWhereInput
628
669
  isOauth: BooleanWhereInput
629
- email: EmailWhereInput
630
670
  verifiedEmail: BooleanWhereInput
631
671
  role: RoleWhereInput
632
672
  sessions: _SessionWhereInput
@@ -659,6 +699,13 @@ input IntWhereInput {
659
699
  notIn: [Int]
660
700
  }
661
701
 
702
+ input EmailWhereInput {
703
+ equalTo: Email
704
+ notEqualTo: Email
705
+ in: [Email]
706
+ notIn: [Email]
707
+ }
708
+
662
709
  input UserACLObjectWhereInput {
663
710
  users: [UserACLObjectUsersACLWhereInput]
664
711
  roles: [UserACLObjectRolesACLWhereInput]
@@ -708,12 +755,28 @@ input SearchWhereInput {
708
755
  scalar Search
709
756
 
710
757
  input UserAuthenticationWhereInput {
758
+ phonePassword: UserAuthenticationPhonePasswordWhereInput
711
759
  emailPassword: UserAuthenticationEmailPasswordWhereInput
712
760
  google: UserAuthenticationGoogleWhereInput
761
+ github: UserAuthenticationGithubWhereInput
713
762
  OR: [UserAuthenticationWhereInput]
714
763
  AND: [UserAuthenticationWhereInput]
715
764
  }
716
765
 
766
+ input UserAuthenticationPhonePasswordWhereInput {
767
+ phone: PhoneWhereInput
768
+ password: StringWhereInput
769
+ OR: [UserAuthenticationPhonePasswordWhereInput]
770
+ AND: [UserAuthenticationPhonePasswordWhereInput]
771
+ }
772
+
773
+ input PhoneWhereInput {
774
+ equalTo: Phone
775
+ notEqualTo: Phone
776
+ in: [Phone]
777
+ notIn: [Phone]
778
+ }
779
+
717
780
  input UserAuthenticationEmailPasswordWhereInput {
718
781
  email: EmailWhereInput
719
782
  password: StringWhereInput
@@ -721,21 +784,21 @@ input UserAuthenticationEmailPasswordWhereInput {
721
784
  AND: [UserAuthenticationEmailPasswordWhereInput]
722
785
  }
723
786
 
724
- input EmailWhereInput {
725
- equalTo: Email
726
- notEqualTo: Email
727
- in: [Email]
728
- notIn: [Email]
729
- }
730
-
731
787
  input UserAuthenticationGoogleWhereInput {
732
788
  email: EmailWhereInput
733
789
  verifiedEmail: BooleanWhereInput
734
- idToken: StringWhereInput
735
790
  OR: [UserAuthenticationGoogleWhereInput]
736
791
  AND: [UserAuthenticationGoogleWhereInput]
737
792
  }
738
793
 
794
+ input UserAuthenticationGithubWhereInput {
795
+ email: EmailWhereInput
796
+ avatarUrl: StringWhereInput
797
+ username: StringWhereInput
798
+ OR: [UserAuthenticationGithubWhereInput]
799
+ AND: [UserAuthenticationGithubWhereInput]
800
+ }
801
+
739
802
  input AnyWhereInput {
740
803
  equalTo: Any
741
804
  notEqualTo: Any
@@ -824,6 +887,8 @@ enum UserOrder {
824
887
  name_DESC
825
888
  age_ASC
826
889
  age_DESC
890
+ email_ASC
891
+ email_DESC
827
892
  acl_ASC
828
893
  acl_DESC
829
894
  createdAt_ASC
@@ -838,8 +903,6 @@ enum UserOrder {
838
903
  provider_DESC
839
904
  isOauth_ASC
840
905
  isOauth_DESC
841
- email_ASC
842
- email_DESC
843
906
  verifiedEmail_ASC
844
907
  verifiedEmail_DESC
845
908
  role_ASC
@@ -860,7 +923,6 @@ type PostEdge {
860
923
  input PostWhereInput {
861
924
  id: IdWhereInput
862
925
  name: StringWhereInput
863
- test: FileWhereInput
864
926
  test2: AnyWhereInput
865
927
  acl: PostACLObjectWhereInput
866
928
  createdAt: DateWhereInput
@@ -870,13 +932,6 @@ input PostWhereInput {
870
932
  AND: [PostWhereInput]
871
933
  }
872
934
 
873
- input FileWhereInput {
874
- equalTo: File
875
- notEqualTo: File
876
- in: [File]
877
- notInt: [File]
878
- }
879
-
880
935
  input PostACLObjectWhereInput {
881
936
  users: [PostACLObjectUsersACLWhereInput]
882
937
  roles: [PostACLObjectRolesACLWhereInput]
@@ -903,8 +958,6 @@ input PostACLObjectRolesACLWhereInput {
903
958
  enum PostOrder {
904
959
  name_ASC
905
960
  name_DESC
906
- test_ASC
907
- test_DESC
908
961
  test2_ASC
909
962
  test2_DESC
910
963
  acl_ASC
@@ -1119,6 +1172,7 @@ input UpdateUserInput {
1119
1172
  input UserUpdateFieldsInput {
1120
1173
  name: String
1121
1174
  age: Int
1175
+ email: Email
1122
1176
  acl: UserACLObjectUpdateFieldsInput
1123
1177
  createdAt: Date
1124
1178
  updatedAt: Date
@@ -1126,7 +1180,6 @@ input UserUpdateFieldsInput {
1126
1180
  authentication: UserAuthenticationUpdateFieldsInput
1127
1181
  provider: AuthenticationProvider
1128
1182
  isOauth: Boolean
1129
- email: Email
1130
1183
  verifiedEmail: Boolean
1131
1184
  role: RolePointerInput
1132
1185
  sessions: _SessionRelationInput
@@ -1150,8 +1203,15 @@ input UserACLObjectRolesACLUpdateFieldsInput {
1150
1203
  }
1151
1204
 
1152
1205
  input UserAuthenticationUpdateFieldsInput {
1206
+ phonePassword: UserAuthenticationPhonePasswordUpdateFieldsInput
1153
1207
  emailPassword: UserAuthenticationEmailPasswordUpdateFieldsInput
1154
1208
  google: UserAuthenticationGoogleUpdateFieldsInput
1209
+ github: UserAuthenticationGithubUpdateFieldsInput
1210
+ }
1211
+
1212
+ input UserAuthenticationPhonePasswordUpdateFieldsInput {
1213
+ phone: Phone
1214
+ password: String
1155
1215
  }
1156
1216
 
1157
1217
  input UserAuthenticationEmailPasswordUpdateFieldsInput {
@@ -1162,7 +1222,12 @@ input UserAuthenticationEmailPasswordUpdateFieldsInput {
1162
1222
  input UserAuthenticationGoogleUpdateFieldsInput {
1163
1223
  email: Email
1164
1224
  verifiedEmail: Boolean
1165
- idToken: String
1225
+ }
1226
+
1227
+ input UserAuthenticationGithubUpdateFieldsInput {
1228
+ email: Email
1229
+ avatarUrl: String
1230
+ username: String
1166
1231
  }
1167
1232
 
1168
1233
  input UpdateUsersInput {
@@ -1215,7 +1280,6 @@ input UpdatePostInput {
1215
1280
 
1216
1281
  input PostUpdateFieldsInput {
1217
1282
  name: String
1218
- test: File
1219
1283
  test2: RoleEnum
1220
1284
  acl: PostACLObjectUpdateFieldsInput
1221
1285
  createdAt: Date
@@ -1536,12 +1600,19 @@ input SignInWithInput {
1536
1600
  }
1537
1601
 
1538
1602
  input SignInWithAuthenticationInput {
1603
+ phonePassword: SignInWithAuthenticationPhonePasswordInput
1539
1604
  emailPassword: SignInWithAuthenticationEmailPasswordInput
1540
1605
  google: SignInWithAuthenticationGoogleInput
1606
+ github: SignInWithAuthenticationGithubInput
1541
1607
  otp: SignInWithAuthenticationOtpInput
1542
1608
  secondaryFactor: SecondaryFactor
1543
1609
  }
1544
1610
 
1611
+ input SignInWithAuthenticationPhonePasswordInput {
1612
+ phone: Phone!
1613
+ password: String!
1614
+ }
1615
+
1545
1616
  input SignInWithAuthenticationEmailPasswordInput {
1546
1617
  email: Email!
1547
1618
  password: String!
@@ -1552,6 +1623,11 @@ input SignInWithAuthenticationGoogleInput {
1552
1623
  codeVerifier: String!
1553
1624
  }
1554
1625
 
1626
+ input SignInWithAuthenticationGithubInput {
1627
+ authorizationCode: String!
1628
+ codeVerifier: String!
1629
+ }
1630
+
1555
1631
  input SignInWithAuthenticationOtpInput {
1556
1632
  code: String
1557
1633
  }
@@ -1567,12 +1643,19 @@ input SignUpWithInput {
1567
1643
  }
1568
1644
 
1569
1645
  input SignUpWithAuthenticationInput {
1646
+ phonePassword: SignUpWithAuthenticationPhonePasswordInput
1570
1647
  emailPassword: SignUpWithAuthenticationEmailPasswordInput
1571
1648
  google: SignUpWithAuthenticationGoogleInput
1649
+ github: SignUpWithAuthenticationGithubInput
1572
1650
  otp: SignUpWithAuthenticationOtpInput
1573
1651
  secondaryFactor: SecondaryFactor
1574
1652
  }
1575
1653
 
1654
+ input SignUpWithAuthenticationPhonePasswordInput {
1655
+ phone: Phone!
1656
+ password: String!
1657
+ }
1658
+
1576
1659
  input SignUpWithAuthenticationEmailPasswordInput {
1577
1660
  email: Email!
1578
1661
  password: String!
@@ -1583,6 +1666,11 @@ input SignUpWithAuthenticationGoogleInput {
1583
1666
  codeVerifier: String!
1584
1667
  }
1585
1668
 
1669
+ input SignUpWithAuthenticationGithubInput {
1670
+ authorizationCode: String!
1671
+ codeVerifier: String!
1672
+ }
1673
+
1586
1674
  input SignUpWithAuthenticationOtpInput {
1587
1675
  code: String
1588
1676
  }