Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions apps/web/components/admin/payments/payment-plan-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ export function PaymentPlanForm({
$planId: String!
$name: String
$type: PaymentPlanType
$oneTimeAmount: Int
$emiAmount: Int
$oneTimeAmount: Float
$emiAmount: Float
$emiTotalInstallments: Int
$subscriptionMonthlyAmount: Int
$subscriptionYearlyAmount: Int
$subscriptionMonthlyAmount: Float
$subscriptionYearlyAmount: Float
$description: String
$includedProducts: [String]
) {
Expand Down Expand Up @@ -241,11 +241,11 @@ export function PaymentPlanForm({
$type: PaymentPlanType!
$entityId: String!
$entityType: MembershipEntityType!
$oneTimeAmount: Int
$emiAmount: Int
$oneTimeAmount: Float
$emiAmount: Float
$emiTotalInstallments: Int
$subscriptionMonthlyAmount: Int
$subscriptionYearlyAmount: Int
$subscriptionMonthlyAmount: Float
$subscriptionYearlyAmount: Float
$description: String
$includedProducts: [String]
) {
Expand Down
5 changes: 2 additions & 3 deletions apps/web/graphql/activities/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
GraphQLFloat,
GraphQLInt,
GraphQLList,
GraphQLNonNull,
GraphQLObjectType,
Expand All @@ -11,14 +10,14 @@ const dataPoint = new GraphQLObjectType({
name: "DataPoint",
fields: {
date: { type: new GraphQLNonNull(GraphQLString) },
count: { type: new GraphQLNonNull(GraphQLInt) },
count: { type: new GraphQLNonNull(GraphQLFloat) },
},
});

const activity = new GraphQLObjectType({
name: "Activity",
fields: {
count: { type: new GraphQLNonNull(GraphQLInt) },
count: { type: new GraphQLNonNull(GraphQLFloat) },
points: { type: new GraphQLList(dataPoint) },
growth: { type: GraphQLFloat },
},
Expand Down
17 changes: 9 additions & 8 deletions apps/web/graphql/paymentplans/mutation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
GraphQLFloat,
GraphQLInt,
GraphQLList,
GraphQLNonNull,
Expand Down Expand Up @@ -27,11 +28,11 @@ const mutations = {
entityType: {
type: new GraphQLNonNull(userTypes.membershipEntityType),
},
oneTimeAmount: { type: GraphQLInt },
emiAmount: { type: GraphQLInt },
oneTimeAmount: { type: GraphQLFloat },
emiAmount: { type: GraphQLFloat },
emiTotalInstallments: { type: GraphQLInt },
subscriptionMonthlyAmount: { type: GraphQLInt },
subscriptionYearlyAmount: { type: GraphQLInt },
subscriptionMonthlyAmount: { type: GraphQLFloat },
subscriptionYearlyAmount: { type: GraphQLFloat },
description: { type: GraphQLString },
includedProducts: { type: new GraphQLList(GraphQLString) },
},
Expand Down Expand Up @@ -85,11 +86,11 @@ const mutations = {
planId: { type: new GraphQLNonNull(GraphQLString) },
name: { type: GraphQLString },
type: { type: types.paymentPlanType },
oneTimeAmount: { type: GraphQLInt },
emiAmount: { type: GraphQLInt },
oneTimeAmount: { type: GraphQLFloat },
emiAmount: { type: GraphQLFloat },
emiTotalInstallments: { type: GraphQLInt },
subscriptionMonthlyAmount: { type: GraphQLInt },
subscriptionYearlyAmount: { type: GraphQLInt },
subscriptionMonthlyAmount: { type: GraphQLFloat },
subscriptionYearlyAmount: { type: GraphQLFloat },
description: { type: GraphQLString },
includedProducts: { type: new GraphQLList(GraphQLString) },
},
Expand Down
6 changes: 3 additions & 3 deletions apps/web/graphql/paymentplans/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ const paymentPlan = new GraphQLObjectType({
type: new GraphQLNonNull(userTypes.membershipEntityType),
},
oneTimeAmount: { type: GraphQLFloat },
emiAmount: { type: GraphQLInt },
emiAmount: { type: GraphQLFloat },
emiTotalInstallments: { type: GraphQLInt },
subscriptionMonthlyAmount: { type: GraphQLInt },
subscriptionYearlyAmount: { type: GraphQLInt },
subscriptionMonthlyAmount: { type: GraphQLFloat },
subscriptionYearlyAmount: { type: GraphQLFloat },
description: { type: GraphQLString },
includedProducts: { type: new GraphQLList(GraphQLString) },
},
Expand Down
Loading