Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier506 committed Jan 14, 2022
2 parents 196fdfb + 22df8bd commit 49db300
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
10 changes: 8 additions & 2 deletions hasura/metadata/actions.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ type Mutation {
}

type Mutation {
add_referral(referrer: String!, invitee: String!): AddReferralOutput
add_referral(
referrer: String!
invitee: String!
): AddReferralOutput
}

type Mutation {
send_confirmation(accounts: [String]!): SendConfirmationOutput
send_confirmation(
accounts: [String]!
): SendConfirmationOutput
}

type AddReferralOutput {
Expand All @@ -25,3 +30,4 @@ type SendConfirmationOutput {
type AddJoinRequestOutput {
id: String!
}

42 changes: 22 additions & 20 deletions hasura/metadata/actions.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
actions:
- name: add_join_request
definition:
kind: synchronous
handler: '{{HASURA_GRAPHQL_ACTION_BASE_URL}}/add-join-request'
- name: add_referral
definition:
kind: synchronous
handler: '{{HASURA_GRAPHQL_ACTION_BASE_URL}}/add-referral'
forward_client_headers: true
permissions:
- role: guest
- name: send_confirmation
definition:
kind: synchronous
handler: '{{HASURA_GRAPHQL_ACTION_BASE_URL}}/send-confirmation'
permissions:
- role: guest
- name: add_join_request
definition:
kind: synchronous
handler: '{{HASURA_GRAPHQL_ACTION_BASE_URL}}/add-join-request'
permissions:
- role: guest
- name: add_referral
definition:
kind: synchronous
handler: '{{HASURA_GRAPHQL_ACTION_BASE_URL}}/add-referral'
forward_client_headers: true
permissions:
- role: guest
- name: send_confirmation
definition:
kind: synchronous
handler: '{{HASURA_GRAPHQL_ACTION_BASE_URL}}/send-confirmation'
permissions:
- role: guest
custom_types:
enums: []
input_objects: []
objects:
- name: AddReferralOutput
- name: SendConfirmationOutput
- name: AddJoinRequestOutput
- name: AddReferralOutput
- name: SendConfirmationOutput
- name: AddJoinRequestOutput
scalars: []

0 comments on commit 49db300

Please sign in to comment.