mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-25 06:08:03 -05:00
added getBoxProfile action
This commit is contained in:
committed by
Hammad Jutt
parent
8c4df7e547
commit
f79e8cd261
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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: []
|
||||
|
||||
Reference in New Issue
Block a user