1
- // Code generated by Prisma (prisma@1.22.2 ). DO NOT EDIT.
1
+ // Code generated by Prisma (prisma@1.23.0 ). DO NOT EDIT.
2
2
// Please don't change this file manually but run `prisma generate` to update it.
3
3
// For more information, please read the docs: https://www.prisma.io/docs/prisma-client/
4
4
5
- import { DocumentNode , GraphQLSchema } from "graphql" ;
6
- import { makePrismaClientClass , BaseClientOptions } from "prisma-client-lib" ;
5
+ import { DocumentNode } from "graphql" ;
6
+ import {
7
+ makePrismaClientClass ,
8
+ BaseClientOptions ,
9
+ Model
10
+ } from "prisma-client-lib" ;
7
11
import { typeDefs } from "./prisma-schema" ;
8
12
9
- type AtLeastOne < T , U = { [ K in keyof T ] : Pick < T , K > } > = Partial < T > &
13
+ export type AtLeastOne < T , U = { [ K in keyof T ] : Pick < T , K > } > = Partial < T > &
10
14
U [ keyof U ] ;
11
15
12
16
export interface Exists {
@@ -785,7 +789,10 @@ export interface VotePreviousValuesSubscription
785
789
id : ( ) => Promise < AsyncIterator < ID_Output > > ;
786
790
}
787
791
788
- export interface UserConnection { }
792
+ export interface UserConnection {
793
+ pageInfo : PageInfo ;
794
+ edges : UserEdge [ ] ;
795
+ }
789
796
790
797
export interface UserConnectionPromise
791
798
extends Promise < UserConnection > ,
@@ -803,7 +810,10 @@ export interface UserConnectionSubscription
803
810
aggregate : < T = AggregateUserSubscription > ( ) => T ;
804
811
}
805
812
806
- export interface LinkConnection { }
813
+ export interface LinkConnection {
814
+ pageInfo : PageInfo ;
815
+ edges : LinkEdge [ ] ;
816
+ }
807
817
808
818
export interface LinkConnectionPromise
809
819
extends Promise < LinkConnection > ,
@@ -946,6 +956,7 @@ export interface AggregateVoteSubscription
946
956
}
947
957
948
958
export interface LinkEdge {
959
+ node : Link ;
949
960
cursor : String ;
950
961
}
951
962
@@ -961,7 +972,10 @@ export interface LinkEdgeSubscription
961
972
cursor : ( ) => Promise < AsyncIterator < String > > ;
962
973
}
963
974
964
- export interface VoteConnection { }
975
+ export interface VoteConnection {
976
+ pageInfo : PageInfo ;
977
+ edges : VoteEdge [ ] ;
978
+ }
965
979
966
980
export interface VoteConnectionPromise
967
981
extends Promise < VoteConnection > ,
@@ -981,7 +995,9 @@ export interface VoteConnectionSubscription
981
995
982
996
export interface UserSubscriptionPayload {
983
997
mutation : MutationType ;
984
- updatedFields ?: String [ ] ;
998
+ node : User ;
999
+ updatedFields : String [ ] ;
1000
+ previousValues : UserPreviousValues ;
985
1001
}
986
1002
987
1003
export interface UserSubscriptionPayloadPromise
@@ -1003,6 +1019,7 @@ export interface UserSubscriptionPayloadSubscription
1003
1019
}
1004
1020
1005
1021
export interface UserEdge {
1022
+ node : User ;
1006
1023
cursor : String ;
1007
1024
}
1008
1025
@@ -1063,7 +1080,9 @@ export interface LinkPreviousValuesSubscription
1063
1080
1064
1081
export interface LinkSubscriptionPayload {
1065
1082
mutation : MutationType ;
1066
- updatedFields ?: String [ ] ;
1083
+ node : Link ;
1084
+ updatedFields : String [ ] ;
1085
+ previousValues : LinkPreviousValues ;
1067
1086
}
1068
1087
1069
1088
export interface LinkSubscriptionPayloadPromise
@@ -1156,7 +1175,9 @@ export interface PageInfoSubscription
1156
1175
1157
1176
export interface VoteSubscriptionPayload {
1158
1177
mutation : MutationType ;
1159
- updatedFields ?: String [ ] ;
1178
+ node : Vote ;
1179
+ updatedFields : String [ ] ;
1180
+ previousValues : VotePreviousValues ;
1160
1181
}
1161
1182
1162
1183
export interface VoteSubscriptionPayloadPromise
@@ -1210,6 +1231,7 @@ export interface AggregateUserSubscription
1210
1231
}
1211
1232
1212
1233
export interface VoteEdge {
1234
+ node : Vote ;
1213
1235
cursor : String ;
1214
1236
}
1215
1237
@@ -1262,7 +1284,7 @@ export type Boolean = boolean;
1262
1284
* Model Metadata
1263
1285
*/
1264
1286
1265
- export const models = [
1287
+ export const models : Model [ ] = [
1266
1288
{
1267
1289
name : "Link" ,
1268
1290
embedded : false
0 commit comments