diff --git a/apps/web/components/admin/payments/payment-plan-form.tsx b/apps/web/components/admin/payments/payment-plan-form.tsx index 54ea9f07d..f577f2e77 100644 --- a/apps/web/components/admin/payments/payment-plan-form.tsx +++ b/apps/web/components/admin/payments/payment-plan-form.tsx @@ -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] ) { @@ -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] ) { diff --git a/apps/web/graphql/activities/types.ts b/apps/web/graphql/activities/types.ts index 15949e2b2..d04038cd3 100644 --- a/apps/web/graphql/activities/types.ts +++ b/apps/web/graphql/activities/types.ts @@ -1,6 +1,5 @@ import { GraphQLFloat, - GraphQLInt, GraphQLList, GraphQLNonNull, GraphQLObjectType, @@ -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 }, }, diff --git a/apps/web/graphql/paymentplans/mutation.ts b/apps/web/graphql/paymentplans/mutation.ts index c8894eaaa..7eeb83162 100644 --- a/apps/web/graphql/paymentplans/mutation.ts +++ b/apps/web/graphql/paymentplans/mutation.ts @@ -1,4 +1,5 @@ import { + GraphQLFloat, GraphQLInt, GraphQLList, GraphQLNonNull, @@ -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) }, }, @@ -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) }, }, diff --git a/apps/web/graphql/paymentplans/types.ts b/apps/web/graphql/paymentplans/types.ts index 52417c616..0d7bb5362 100644 --- a/apps/web/graphql/paymentplans/types.ts +++ b/apps/web/graphql/paymentplans/types.ts @@ -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) }, },