-
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
ddc69c0
commit 9a904db
Showing
161 changed files
with
5,338 additions
and
68 deletions.
There are no files selected for viewing
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
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
170 changes: 135 additions & 35 deletions
170
apps/protocol-api/src/prisma/generated/type-graphql/enhance.ts
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...rotocol-api/src/prisma/generated/type-graphql/enums/ContributionPaymentScalarFieldEnum.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,14 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
|
||
export enum ContributionPaymentScalarFieldEnum { | ||
id = "id", | ||
createdAt = "createdAt", | ||
updatedAt = "updatedAt", | ||
contribution_id = "contribution_id", | ||
split_payment_id = "split_payment_id", | ||
type = "type" | ||
} | ||
TypeGraphQL.registerEnumType(ContributionPaymentScalarFieldEnum, { | ||
name: "ContributionPaymentScalarFieldEnum", | ||
description: undefined, | ||
}); |
10 changes: 10 additions & 0 deletions
10
apps/protocol-api/src/prisma/generated/type-graphql/enums/ContributionPaymentType.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,10 @@ | ||
import * as TypeGraphQL from "type-graphql"; | ||
|
||
export enum ContributionPaymentType { | ||
TIP = "TIP", | ||
REPORT = "REPORT" | ||
} | ||
TypeGraphQL.registerEnumType(ContributionPaymentType, { | ||
name: "ContributionPaymentType", | ||
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
46 changes: 46 additions & 0 deletions
46
apps/protocol-api/src/prisma/generated/type-graphql/models/ContributionPayment.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 { Contribution } from "../models/Contribution"; | ||
import { SplitPayment } from "../models/SplitPayment"; | ||
import { ContributionPaymentType } from "../enums/ContributionPaymentType"; | ||
|
||
@TypeGraphQL.ObjectType("ContributionPayment", { | ||
isAbstract: true | ||
}) | ||
export class ContributionPayment { | ||
@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 | ||
}) | ||
contribution_id!: number; | ||
|
||
contribution?: Contribution; | ||
|
||
@TypeGraphQL.Field(_type => TypeGraphQL.Int, { | ||
nullable: false | ||
}) | ||
split_payment_id!: number; | ||
|
||
split_payment?: SplitPayment; | ||
|
||
@TypeGraphQL.Field(_type => ContributionPaymentType, { | ||
nullable: false | ||
}) | ||
type!: "TIP" | "REPORT"; | ||
} |
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
19 changes: 19 additions & 0 deletions
19
...d/type-graphql/resolvers/crud/ContributionPayment/AggregateContributionPaymentResolver.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 { AggregateContributionPaymentArgs } from "./args/AggregateContributionPaymentArgs"; | ||
import { ContributionPayment } from "../../../models/ContributionPayment"; | ||
import { AggregateContributionPayment } from "../../outputs/AggregateContributionPayment"; | ||
import { transformInfoIntoPrismaArgs, getPrismaFromContext, transformCountFieldIntoSelectRelationsCount } from "../../../helpers"; | ||
|
||
@TypeGraphQL.Resolver(_of => ContributionPayment) | ||
export class AggregateContributionPaymentResolver { | ||
@TypeGraphQL.Query(_returns => AggregateContributionPayment, { | ||
nullable: false | ||
}) | ||
async aggregateContributionPayment(@TypeGraphQL.Ctx() ctx: any, @TypeGraphQL.Info() info: GraphQLResolveInfo, @TypeGraphQL.Args() args: AggregateContributionPaymentArgs): Promise<AggregateContributionPayment> { | ||
return getPrismaFromContext(ctx).contributionPayment.aggregate({ | ||
...args, | ||
...transformInfoIntoPrismaArgs(info), | ||
}); | ||
} | ||
} |
Oops, something went wrong.