-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bf63cf
commit ba30a56
Showing
316 changed files
with
12,536 additions
and
95 deletions.
There are no files selected for viewing
338 changes: 302 additions & 36 deletions
338
apps/protocol-api/src/prisma/generated/type-graphql/enhance.ts
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
apps/protocol-api/src/prisma/generated/type-graphql/enums/SplitContractScalarFieldEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
|
||
export enum SplitContractScalarFieldEnum { | ||
id = "id", | ||
createdAt = "createdAt", | ||
updatedAt = "updatedAt", | ||
chain_id = "chain_id", | ||
address = "address", | ||
tx_hash = "tx_hash", | ||
enabled = "enabled", | ||
user_split_contract_id = "user_split_contract_id" | ||
} | ||
TypeGraphQL.registerEnumType(SplitContractScalarFieldEnum, { | ||
name: "SplitContractScalarFieldEnum", | ||
description: undefined, | ||
}); |
18 changes: 18 additions & 0 deletions
18
apps/protocol-api/src/prisma/generated/type-graphql/enums/SplitPaymentScalarFieldEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
|
||
export enum SplitPaymentScalarFieldEnum { | ||
id = "id", | ||
createdAt = "createdAt", | ||
updatedAt = "updatedAt", | ||
token_address = "token_address", | ||
amount = "amount", | ||
tx_hash = "tx_hash", | ||
sender_address = "sender_address", | ||
recipient_address = "recipient_address", | ||
sender_user_id = "sender_user_id", | ||
split_contract_id = "split_contract_id" | ||
} | ||
TypeGraphQL.registerEnumType(SplitPaymentScalarFieldEnum, { | ||
name: "SplitPaymentScalarFieldEnum", | ||
description: undefined, | ||
}); |
13 changes: 13 additions & 0 deletions
13
.../protocol-api/src/prisma/generated/type-graphql/enums/UserSplitContractScalarFieldEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
|
||
export enum UserSplitContractScalarFieldEnum { | ||
id = "id", | ||
createdAt = "createdAt", | ||
updatedAt = "updatedAt", | ||
user_id = "user_id", | ||
enabled = "enabled" | ||
} | ||
TypeGraphQL.registerEnumType(UserSplitContractScalarFieldEnum, { | ||
name: "UserSplitContractScalarFieldEnum", | ||
description: undefined, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
apps/protocol-api/src/prisma/generated/type-graphql/models/SplitContract.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
import * as GraphQLScalars from "graphql-scalars"; | ||
import { Prisma } from "@prisma/client"; | ||
import { DecimalJSScalar } from "../scalars"; | ||
import { Chain } from "../models/Chain"; | ||
import { SplitPayment } from "../models/SplitPayment"; | ||
import { UserSplitContract } from "../models/UserSplitContract"; | ||
import { SplitContractCount } from "../resolvers/outputs/SplitContractCount"; | ||
|
||
@TypeGraphQL.ObjectType("SplitContract", { | ||
isAbstract: true | ||
}) | ||
export class SplitContract { | ||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: false | ||
}) | ||
id!: number; | ||
|
||
@TypeGraphQL.Field(_type => Date, { | ||
nullable: false | ||
}) | ||
createdAt!: Date; | ||
|
||
@TypeGraphQL.Field(_type => Date, { | ||
nullable: false | ||
}) | ||
updatedAt!: Date; | ||
|
||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: false | ||
}) | ||
chain_id!: number; | ||
|
||
chain?: Chain; | ||
|
||
@TypeGraphQL.Field(_type => String, { | ||
nullable: false | ||
}) | ||
address!: string; | ||
|
||
@TypeGraphQL.Field(_type => String, { | ||
nullable: false | ||
}) | ||
tx_hash!: string; | ||
|
||
@TypeGraphQL.Field(_type => Boolean, { | ||
nullable: false | ||
}) | ||
enabled!: boolean; | ||
|
||
split_payments?: SplitPayment[]; | ||
|
||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: true | ||
}) | ||
user_split_contract_id?: number | null; | ||
|
||
user_split_contract?: UserSplitContract | null; | ||
|
||
@TypeGraphQL.Field(_type => SplitContractCount, { | ||
nullable: true | ||
}) | ||
_count?: SplitContractCount | null; | ||
} |
65 changes: 65 additions & 0 deletions
65
apps/protocol-api/src/prisma/generated/type-graphql/models/SplitPayment.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
import * as GraphQLScalars from "graphql-scalars"; | ||
import { Prisma } from "@prisma/client"; | ||
import { DecimalJSScalar } from "../scalars"; | ||
import { SplitContract } from "../models/SplitContract"; | ||
import { User } from "../models/User"; | ||
|
||
@TypeGraphQL.ObjectType("SplitPayment", { | ||
isAbstract: true | ||
}) | ||
export class SplitPayment { | ||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: false | ||
}) | ||
id!: number; | ||
|
||
@TypeGraphQL.Field(_type => Date, { | ||
nullable: false | ||
}) | ||
createdAt!: Date; | ||
|
||
@TypeGraphQL.Field(_type => Date, { | ||
nullable: false | ||
}) | ||
updatedAt!: Date; | ||
|
||
@TypeGraphQL.Field(_type => String, { | ||
nullable: false | ||
}) | ||
token_address!: string; | ||
|
||
@TypeGraphQL.Field(_type => GraphQLScalars.BigIntResolver, { | ||
nullable: false | ||
}) | ||
amount!: bigint; | ||
|
||
@TypeGraphQL.Field(_type => String, { | ||
nullable: false | ||
}) | ||
tx_hash!: string; | ||
|
||
@TypeGraphQL.Field(_type => String, { | ||
nullable: false | ||
}) | ||
sender_address!: string; | ||
|
||
@TypeGraphQL.Field(_type => String, { | ||
nullable: false | ||
}) | ||
recipient_address!: string; | ||
|
||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: true | ||
}) | ||
sender_user_id?: number | null; | ||
|
||
sender_user?: User | null; | ||
|
||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: false | ||
}) | ||
split_contract_id!: number; | ||
|
||
split_contract?: SplitContract; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
apps/protocol-api/src/prisma/generated/type-graphql/models/UserSplitContract.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
import * as GraphQLScalars from "graphql-scalars"; | ||
import { Prisma } from "@prisma/client"; | ||
import { DecimalJSScalar } from "../scalars"; | ||
import { SplitContract } from "../models/SplitContract"; | ||
import { User } from "../models/User"; | ||
import { UserSplitContractCount } from "../resolvers/outputs/UserSplitContractCount"; | ||
|
||
@TypeGraphQL.ObjectType("UserSplitContract", { | ||
isAbstract: true | ||
}) | ||
export class UserSplitContract { | ||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: false | ||
}) | ||
id!: number; | ||
|
||
@TypeGraphQL.Field(_type => Date, { | ||
nullable: false | ||
}) | ||
createdAt!: Date; | ||
|
||
@TypeGraphQL.Field(_type => Date, { | ||
nullable: false | ||
}) | ||
updatedAt!: Date; | ||
|
||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: false | ||
}) | ||
user_id!: number; | ||
|
||
user?: User; | ||
|
||
@TypeGraphQL.Field(_type => Boolean, { | ||
nullable: false | ||
}) | ||
enabled!: boolean; | ||
|
||
split_contract?: SplitContract[]; | ||
|
||
@TypeGraphQL.Field(_type => UserSplitContractCount, { | ||
nullable: true | ||
}) | ||
_count?: UserSplitContractCount | null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...sma/generated/type-graphql/resolvers/crud/SplitContract/AggregateSplitContractResolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
import { GraphQLResolveInfo } from "graphql"; | ||
import { AggregateSplitContractArgs } from "./args/AggregateSplitContractArgs"; | ||
import { SplitContract } from "../../../models/SplitContract"; | ||
import { AggregateSplitContract } from "../../outputs/AggregateSplitContract"; | ||
import { transformInfoIntoPrismaArgs, getPrismaFromContext, transformCountFieldIntoSelectRelationsCount } from "../../../helpers"; | ||
|
||
@TypeGraphQL.Resolver(_of => SplitContract) | ||
export class AggregateSplitContractResolver { | ||
@TypeGraphQL.Query(_returns => AggregateSplitContract, { | ||
nullable: false | ||
}) | ||
async aggregateSplitContract(@TypeGraphQL.Ctx() ctx: any, @TypeGraphQL.Info() info: GraphQLResolveInfo, @TypeGraphQL.Args() args: AggregateSplitContractArgs): Promise<AggregateSplitContract> { | ||
return getPrismaFromContext(ctx).splitContract.aggregate({ | ||
...args, | ||
...transformInfoIntoPrismaArgs(info), | ||
}); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ma/generated/type-graphql/resolvers/crud/SplitContract/CreateManySplitContractResolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
import { GraphQLResolveInfo } from "graphql"; | ||
import { CreateManySplitContractArgs } from "./args/CreateManySplitContractArgs"; | ||
import { SplitContract } from "../../../models/SplitContract"; | ||
import { AffectedRowsOutput } from "../../outputs/AffectedRowsOutput"; | ||
import { transformInfoIntoPrismaArgs, getPrismaFromContext, transformCountFieldIntoSelectRelationsCount } from "../../../helpers"; | ||
|
||
@TypeGraphQL.Resolver(_of => SplitContract) | ||
export class CreateManySplitContractResolver { | ||
@TypeGraphQL.Mutation(_returns => AffectedRowsOutput, { | ||
nullable: false | ||
}) | ||
async createManySplitContract(@TypeGraphQL.Ctx() ctx: any, @TypeGraphQL.Info() info: GraphQLResolveInfo, @TypeGraphQL.Args() args: CreateManySplitContractArgs): Promise<AffectedRowsOutput> { | ||
const { _count } = transformInfoIntoPrismaArgs(info); | ||
return getPrismaFromContext(ctx).splitContract.createMany({ | ||
...args, | ||
...(_count && transformCountFieldIntoSelectRelationsCount(_count)), | ||
}); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...sma/generated/type-graphql/resolvers/crud/SplitContract/CreateOneSplitContractResolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
import { GraphQLResolveInfo } from "graphql"; | ||
import { CreateOneSplitContractArgs } from "./args/CreateOneSplitContractArgs"; | ||
import { SplitContract } from "../../../models/SplitContract"; | ||
import { transformInfoIntoPrismaArgs, getPrismaFromContext, transformCountFieldIntoSelectRelationsCount } from "../../../helpers"; | ||
|
||
@TypeGraphQL.Resolver(_of => SplitContract) | ||
export class CreateOneSplitContractResolver { | ||
@TypeGraphQL.Mutation(_returns => SplitContract, { | ||
nullable: false | ||
}) | ||
async createOneSplitContract(@TypeGraphQL.Ctx() ctx: any, @TypeGraphQL.Info() info: GraphQLResolveInfo, @TypeGraphQL.Args() args: CreateOneSplitContractArgs): Promise<SplitContract> { | ||
const { _count } = transformInfoIntoPrismaArgs(info); | ||
return getPrismaFromContext(ctx).splitContract.create({ | ||
...args, | ||
...(_count && transformCountFieldIntoSelectRelationsCount(_count)), | ||
}); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ma/generated/type-graphql/resolvers/crud/SplitContract/DeleteManySplitContractResolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
import { GraphQLResolveInfo } from "graphql"; | ||
import { DeleteManySplitContractArgs } from "./args/DeleteManySplitContractArgs"; | ||
import { SplitContract } from "../../../models/SplitContract"; | ||
import { AffectedRowsOutput } from "../../outputs/AffectedRowsOutput"; | ||
import { transformInfoIntoPrismaArgs, getPrismaFromContext, transformCountFieldIntoSelectRelationsCount } from "../../../helpers"; | ||
|
||
@TypeGraphQL.Resolver(_of => SplitContract) | ||
export class DeleteManySplitContractResolver { | ||
@TypeGraphQL.Mutation(_returns => AffectedRowsOutput, { | ||
nullable: false | ||
}) | ||
async deleteManySplitContract(@TypeGraphQL.Ctx() ctx: any, @TypeGraphQL.Info() info: GraphQLResolveInfo, @TypeGraphQL.Args() args: DeleteManySplitContractArgs): Promise<AffectedRowsOutput> { | ||
const { _count } = transformInfoIntoPrismaArgs(info); | ||
return getPrismaFromContext(ctx).splitContract.deleteMany({ | ||
...args, | ||
...(_count && transformCountFieldIntoSelectRelationsCount(_count)), | ||
}); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...sma/generated/type-graphql/resolvers/crud/SplitContract/DeleteOneSplitContractResolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
import { GraphQLResolveInfo } from "graphql"; | ||
import { DeleteOneSplitContractArgs } from "./args/DeleteOneSplitContractArgs"; | ||
import { SplitContract } from "../../../models/SplitContract"; | ||
import { transformInfoIntoPrismaArgs, getPrismaFromContext, transformCountFieldIntoSelectRelationsCount } from "../../../helpers"; | ||
|
||
@TypeGraphQL.Resolver(_of => SplitContract) | ||
export class DeleteOneSplitContractResolver { | ||
@TypeGraphQL.Mutation(_returns => SplitContract, { | ||
nullable: true | ||
}) | ||
async deleteOneSplitContract(@TypeGraphQL.Ctx() ctx: any, @TypeGraphQL.Info() info: GraphQLResolveInfo, @TypeGraphQL.Args() args: DeleteOneSplitContractArgs): Promise<SplitContract | null> { | ||
const { _count } = transformInfoIntoPrismaArgs(info); | ||
return getPrismaFromContext(ctx).splitContract.delete({ | ||
...args, | ||
...(_count && transformCountFieldIntoSelectRelationsCount(_count)), | ||
}); | ||
} | ||
} |
Oops, something went wrong.