Created
November 2, 2022 21:26
-
-
Save salemhilal/d608444ca3af150246d48b31c4599bc0 to your computer and use it in GitHub Desktop.
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
diff --git a/hasura/metadata/actions.graphql b/hasura/metadata/actions.graphql | |
index 5266f097..472a1c79 100644 | |
--- a/hasura/metadata/actions.graphql | |
+++ b/hasura/metadata/actions.graphql | |
@@ -1,9 +1,13 @@ | |
type Mutation { | |
- addCoupon(args: AddCouponInput!): AddCouponOutput | |
+ addCoupon( | |
+ args: AddCouponInput! | |
+ ): AddCouponOutput | |
} | |
type Mutation { | |
- addCustomer(args: AddCustomerInput!): AddCustomerOutput | |
+ addCustomer( | |
+ args: AddCustomerInput! | |
+ ): AddCustomerOutput | |
} | |
type Mutation { | |
@@ -19,7 +23,9 @@ type Mutation { | |
} | |
type Mutation { | |
- addMeter(args: MeterInput!): MeterOutput | |
+ addMeter( | |
+ args: MeterInput! | |
+ ): MeterOutput | |
} | |
type Mutation { | |
@@ -29,23 +35,33 @@ type Mutation { | |
} | |
type Mutation { | |
- addPricePlan(args: PricePlanInput!): PricePlanOutput | |
+ addPricePlan( | |
+ args: PricePlanInput! | |
+ ): PricePlanOutput | |
} | |
type Mutation { | |
- addPricePlanTag(args: AddPricePlanTagInput!): AddPricePlanTagOutput | |
+ addPricePlanTag( | |
+ args: AddPricePlanTagInput! | |
+ ): AddPricePlanTagOutput | |
} | |
type Mutation { | |
- addPricePlanV2(args: PricePlanV2Input!): PricePlanV2Output | |
+ addPricePlanV2( | |
+ args: PricePlanV2Input! | |
+ ): PricePlanV2Output | |
} | |
type Mutation { | |
- addSubscription(args: AddSubscriptionInput!): AddSubscriptionOutput | |
+ addSubscription( | |
+ args: AddSubscriptionInput! | |
+ ): AddSubscriptionOutput | |
} | |
type Mutation { | |
- addVendor(args: AddVendorInput!): AddVendorOutput! | |
+ addVendor( | |
+ args: AddVendorInput! | |
+ ): AddVendorOutput! | |
} | |
type Mutation { | |
@@ -61,23 +77,33 @@ type Mutation { | |
} | |
type Mutation { | |
- addVendorUser(args: AddVendorUserInput!): AddVendorUserOutput! | |
+ addVendorUser( | |
+ args: AddVendorUserInput! | |
+ ): AddVendorUserOutput! | |
} | |
type Mutation { | |
- addWebhook(args: AddWebhookInput!): AddWebhookOutput | |
+ addWebhook( | |
+ args: AddWebhookInput! | |
+ ): AddWebhookOutput | |
} | |
type Mutation { | |
- applyCoupon(args: ApplyCouponInput!): ApplyCouponOutput | |
+ applyCoupon( | |
+ args: ApplyCouponInput! | |
+ ): ApplyCouponOutput | |
} | |
type Mutation { | |
- archiveMeter(args: ArchiveMeterInput!): ArchiveMeterOuput | |
+ archiveMeter( | |
+ args: ArchiveMeterInput! | |
+ ): ArchiveMeterOuput | |
} | |
type Mutation { | |
- archivePricePlan(args: ArchivePricePlanInput!): ArchivePricePlanOutput | |
+ archivePricePlan( | |
+ args: ArchivePricePlanInput! | |
+ ): ArchivePricePlanOutput | |
} | |
type Mutation { | |
@@ -87,7 +113,9 @@ type Mutation { | |
} | |
type Mutation { | |
- confirmEmail(args: ConfirmEmailInput!): ConfirmEmailOutput! | |
+ confirmEmail( | |
+ args: ConfirmEmailInput! | |
+ ): ConfirmEmailOutput! | |
} | |
type Mutation { | |
@@ -97,7 +125,9 @@ type Mutation { | |
} | |
type Mutation { | |
- createCreditGrant(args: CreateCreditGrantInput!): CreateCreditGrantOutput! | |
+ createCreditGrant( | |
+ args: CreateCreditGrantInput! | |
+ ): CreateCreditGrantOutput! | |
} | |
type Mutation { | |
@@ -113,11 +143,15 @@ type Mutation { | |
} | |
type Mutation { | |
- deleteCoupon(args: DeleteCouponInput!): DeleteCouponOutput | |
+ deleteCoupon( | |
+ args: DeleteCouponInput! | |
+ ): DeleteCouponOutput | |
} | |
type Mutation { | |
- deleteCustomer(args: DeleteCustomerInput!): DeleteCustomerOutput | |
+ deleteCustomer( | |
+ args: DeleteCustomerInput! | |
+ ): DeleteCustomerOutput | |
} | |
type Mutation { | |
@@ -127,19 +161,27 @@ type Mutation { | |
} | |
type Mutation { | |
- deleteMeter(args: DeleteMeterInput!): DeleteMeterOutput | |
+ deleteMeter( | |
+ args: DeleteMeterInput! | |
+ ): DeleteMeterOutput | |
} | |
type Mutation { | |
- deletePricePlan(args: DeletePricePlanInput!): DeletePricePlanOutput | |
+ deletePricePlan( | |
+ args: DeletePricePlanInput! | |
+ ): DeletePricePlanOutput | |
} | |
type Mutation { | |
- deletePricePlanTag(args: DeletePricePlanTagInput!): DeletePricePlanTagOutput | |
+ deletePricePlanTag( | |
+ args: DeletePricePlanTagInput! | |
+ ): DeletePricePlanTagOutput | |
} | |
type Mutation { | |
- deleteSubscription(args: DeleteSubscriptionInput!): DeleteSubscriptionOutput | |
+ deleteSubscription( | |
+ args: DeleteSubscriptionInput! | |
+ ): DeleteSubscriptionOutput | |
} | |
type Mutation { | |
@@ -149,7 +191,9 @@ type Mutation { | |
} | |
type Mutation { | |
- deleteWebhook(args: DeleteWebhookInput!): DeleteWebhookOutput | |
+ deleteWebhook( | |
+ args: DeleteWebhookInput! | |
+ ): DeleteWebhookOutput | |
} | |
type Mutation { | |
@@ -165,11 +209,15 @@ type Mutation { | |
} | |
type Mutation { | |
- editCustomer(args: EditCustomerInput!): EditCustomerOutput! | |
+ editCustomer( | |
+ args: EditCustomerInput! | |
+ ): EditCustomerOutput! | |
} | |
type Mutation { | |
- forecastUsage(args: ForecastUsageIntput!): ForecastUsageOutput | |
+ forecastUsage( | |
+ args: ForecastUsageIntput! | |
+ ): ForecastUsageOutput | |
} | |
type Mutation { | |
@@ -179,11 +227,15 @@ type Mutation { | |
} | |
type Query { | |
- getAnalyticsChurn(args: AnalyticsCustomerInput!): AnalyticsDataOutputCount! | |
+ getAnalyticsChurn( | |
+ args: AnalyticsCustomerInput! | |
+ ): AnalyticsDataOutputCount! | |
} | |
type Query { | |
- getAnalyticsChurnOverTime(args: AnalyticsCustomerInput!): AnalyticsDataOutput! | |
+ getAnalyticsChurnOverTime( | |
+ args: AnalyticsCustomerInput! | |
+ ): AnalyticsDataOutput! | |
} | |
type Query { | |
@@ -289,19 +341,27 @@ type Query { | |
} | |
type Query { | |
- getAnalyticsMeters(args: AnalyticsMetersInput!): [AnalyticsMetersOutput!] | |
+ getAnalyticsMeters( | |
+ args: AnalyticsMetersInput! | |
+ ): [AnalyticsMetersOutput!] | |
} | |
type Query { | |
- getAnalyticsMomGrowth(args: AnalyticsCustomerInput!): AnalyticsDataOutput! | |
+ getAnalyticsMomGrowth( | |
+ args: AnalyticsCustomerInput! | |
+ ): AnalyticsDataOutput! | |
} | |
type Query { | |
- getAnalyticsMomTotals(args: AnalyticsCustomerInput!): AnalyticsDataOutput! | |
+ getAnalyticsMomTotals( | |
+ args: AnalyticsCustomerInput! | |
+ ): AnalyticsDataOutput! | |
} | |
type Query { | |
- getAnalyticsNewCustomer(args: AnalyticsCustomerInput!): AnalyticsDataOutputCount! | |
+ getAnalyticsNewCustomer( | |
+ args: AnalyticsCustomerInput! | |
+ ): AnalyticsDataOutputCount! | |
} | |
type Query { | |
@@ -329,11 +389,15 @@ type Query { | |
} | |
type Query { | |
- getCreditBalance(args: GetCreditBalanceInput!): GetCreditBalanceOutput! | |
+ getCreditBalance( | |
+ args: GetCreditBalanceInput! | |
+ ): GetCreditBalanceOutput! | |
} | |
type Query { | |
- getCreditLedger(args: GetCreditLedgerInput!): [GetCreditLedgerOutput!]! | |
+ getCreditLedger( | |
+ args: GetCreditLedgerInput! | |
+ ): [GetCreditLedgerOutput!]! | |
} | |
type Query { | |
@@ -349,11 +413,15 @@ type Query { | |
} | |
type Query { | |
- getCustomerRevenue(args: CustomerRevenueInput!): CustomerRevenueOutput | |
+ getCustomerRevenue( | |
+ args: CustomerRevenueInput! | |
+ ): CustomerRevenueOutput | |
} | |
type Query { | |
- getCustomerStatus(args: CustomerStatusInput!): CustomerStatusOutput | |
+ getCustomerStatus( | |
+ args: CustomerStatusInput! | |
+ ): CustomerStatusOutput | |
} | |
type Query { | |
@@ -387,7 +455,9 @@ type Query { | |
} | |
type Query { | |
- getVendorRevenue(args: VendorRevenueInput!): VendorRevenueOutput | |
+ getVendorRevenue( | |
+ args: VendorRevenueInput! | |
+ ): VendorRevenueOutput | |
} | |
type Query { | |
@@ -415,43 +485,63 @@ type Query { | |
} | |
type Query { | |
- getVendorToken(args: VendorTokenInput!): VendorTokenOutput | |
+ getVendorToken( | |
+ args: VendorTokenInput! | |
+ ): VendorTokenOutput | |
} | |
type Mutation { | |
- inviteUser(args: InviteUserInput!): InviteUserOutput! | |
+ inviteUser( | |
+ args: InviteUserInput! | |
+ ): InviteUserOutput! | |
} | |
type Query { | |
- listCreditBalance(args: ListCreditBalanceInput!): [ListCreditBalanceOutput!]! | |
+ listCreditBalance( | |
+ args: ListCreditBalanceInput! | |
+ ): [ListCreditBalanceOutput!]! | |
} | |
type Query { | |
- listGeneratedInvoices(args: GeneratedInvoicesInput!): GeneratedInvoicesOutput! | |
+ listGeneratedInvoices( | |
+ args: GeneratedInvoicesInput! | |
+ ): GeneratedInvoicesOutput! | |
} | |
type Query { | |
- listUpcomingInvoices(args: UpcomingInvoicesInput!): UpcomingInvoicesOutput! | |
+ listUpcomingInvoices( | |
+ args: UpcomingInvoicesInput! | |
+ ): UpcomingInvoicesOutput! | |
} | |
type Mutation { | |
- login(args: LoginInput!): LoginOutput! | |
+ login( | |
+ args: LoginInput! | |
+ ): LoginOutput! | |
} | |
type Mutation { | |
- manualRetries(args: ManualRetriesInput!): ManualRetriesOutput | |
+ manualRetries( | |
+ args: ManualRetriesInput! | |
+ ): ManualRetriesOutput | |
} | |
type Mutation { | |
- markAsPaid(args: MarkAsPaidInput!): MarkAsPaidOutput | |
+ markAsPaid( | |
+ args: MarkAsPaidInput! | |
+ ): MarkAsPaidOutput | |
} | |
type Mutation { | |
- performRefund(args: RefundInput!): RefundOutput | |
+ performRefund( | |
+ args: RefundInput! | |
+ ): RefundOutput | |
} | |
type Mutation { | |
- priceTest(args: PriceTestIntput!): PriceTestOutput | |
+ priceTest( | |
+ args: PriceTestIntput! | |
+ ): PriceTestOutput | |
} | |
type Mutation { | |
@@ -459,11 +549,15 @@ type Mutation { | |
} | |
type Mutation { | |
- register(args: RegisterInput!): RegisterOutput! | |
+ register( | |
+ args: RegisterInput! | |
+ ): RegisterOutput! | |
} | |
type Mutation { | |
- updateCustomer(args: UpdateCustomerInput!): UpdateCustomerOutput | |
+ updateCustomer( | |
+ args: UpdateCustomerInput! | |
+ ): UpdateCustomerOutput | |
} | |
type Mutation { | |
@@ -479,11 +573,15 @@ type Mutation { | |
} | |
type Mutation { | |
- updateMeter(args: UpdateMeterInput!): UpdateMeterOutput | |
+ updateMeter( | |
+ args: UpdateMeterInput! | |
+ ): UpdateMeterOutput | |
} | |
type Mutation { | |
- updatePricePlan(args: UpdatePricePlanInput!): UpdatePricePlanOutput | |
+ updatePricePlan( | |
+ args: UpdatePricePlanInput! | |
+ ): UpdatePricePlanOutput | |
} | |
type Mutation { | |
@@ -493,11 +591,15 @@ type Mutation { | |
} | |
type Mutation { | |
- updatePricePlanV2(args: PricePlanV2Input!): PricePlanV2Output | |
+ updatePricePlanV2( | |
+ args: PricePlanV2Input! | |
+ ): PricePlanV2Output | |
} | |
type Mutation { | |
- updateSubscription(args: UpdateSubscriptionInput!): UpdateSubscriptionOutput | |
+ updateSubscription( | |
+ args: UpdateSubscriptionInput! | |
+ ): UpdateSubscriptionOutput | |
} | |
type Mutation { | |
@@ -543,11 +645,15 @@ type Mutation { | |
} | |
type Query { | |
- validatePriceList(args: PriceListValidationInput!): PriceListValidationOutput | |
+ validatePriceList( | |
+ args: PriceListValidationInput! | |
+ ): PriceListValidationOutput | |
} | |
type Mutation { | |
- voidCreditGrant(args: VoidCreditGrantInput!): VoidCreditGrantOutput! | |
+ voidCreditGrant( | |
+ args: VoidCreditGrantInput! | |
+ ): VoidCreditGrantOutput! | |
} | |
input LoginInput { | |
@@ -1822,3 +1928,4 @@ type ManualRetriesOutput { | |
} | |
scalar Json | |
+ | |
diff --git a/hasura/metadata/actions.yaml b/hasura/metadata/actions.yaml | |
index 3b1b9473..a0414dfe 100644 | |
--- a/hasura/metadata/actions.yaml | |
+++ b/hasura/metadata/actions.yaml | |
@@ -471,7 +471,7 @@ actions: | |
forward_client_headers: true | |
permissions: | |
- role: user | |
- comment: Get a list of price plans for the analytics dashboard price plan filter dropdown | |
+ comment: Get a list of price plans for the analytics dashboard price plan filter dropdown menu | |
- name: getAnalyticsReactivation | |
definition: | |
kind: "" | |
@@ -736,6 +736,7 @@ actions: | |
definition: | |
kind: synchronous | |
handler: '{{HASURA_GRAPHQL_ACTIONS_HANDLER_WEBHOOK_BASEURL}}/graphql_actions/v2/update_price_plan' | |
+ forward_client_headers: true | |
permissions: | |
- role: user | |
comment: Update a price plan (v2 of PricePlan with line items) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment