diff --git a/hasura/metadata/actions.graphql b/hasura/metadata/actions.graphql index 0b1d26e7..19eb7859 100644 --- a/hasura/metadata/actions.graphql +++ b/hasura/metadata/actions.graphql @@ -1,3 +1,10 @@ +type Query { + getBoxProfile ( + address: String + ): BoxProfile +} + + type Mutation { updateBoxProfile : UpdateBoxProfileResponse } @@ -10,3 +17,12 @@ type UpdateBoxProfileResponse { updatedProfiles : [String!]! } +type BoxProfile { + name : String + description : String + location : String + job : String + emoji : String + imageUrl : String +} + diff --git a/hasura/metadata/actions.yaml b/hasura/metadata/actions.yaml index 51478dd6..7204a88b 100644 --- a/hasura/metadata/actions.yaml +++ b/hasura/metadata/actions.yaml @@ -1,14 +1,22 @@ actions: - - name: updateBoxProfile - definition: - kind: synchronous - handler: '{{ACTION_BASE_ENDPOINT}}/updateBoxProfile' - forward_client_headers: true - permissions: - - role: player +- name: getBoxProfile + definition: + kind: "" + handler: '{{ACTION_BASE_ENDPOINT}}/getBoxProfile' + permissions: + - role: player + - role: public +- name: updateBoxProfile + definition: + kind: synchronous + handler: '{{ACTION_BASE_ENDPOINT}}/updateBoxProfile' + forward_client_headers: true + permissions: + - role: player custom_types: enums: [] input_objects: [] objects: - - name: UpdateBoxProfileResponse + - name: UpdateBoxProfileResponse + - name: BoxProfile scalars: []