2022-03-09 12:39:49 +01:00
|
|
|
import { gql } from 'graphql-request'
|
|
|
|
|
|
|
|
export const login = gql`
|
|
|
|
query Login($auth: Auth!) {
|
|
|
|
login(auth: $auth) {jwt}
|
|
|
|
}`
|
|
|
|
|
|
|
|
export const get_offers = gql`
|
|
|
|
query GetOffers($auth: Auth!) {
|
|
|
|
get_offers(auth: $auth) {
|
2022-03-10 13:57:48 +01:00
|
|
|
id
|
2022-03-09 14:24:03 +01:00
|
|
|
time_from_str
|
|
|
|
time_duration_str
|
|
|
|
beds
|
|
|
|
languages
|
|
|
|
place_country
|
|
|
|
place_city
|
|
|
|
place_zip
|
|
|
|
place_street
|
|
|
|
place_street_number
|
2022-03-09 12:39:49 +01:00
|
|
|
accessible
|
2022-03-09 14:24:03 +01:00
|
|
|
animals_allowed
|
|
|
|
animals_present
|
|
|
|
contact_name_full
|
|
|
|
contact_phone
|
|
|
|
contact_email
|
2022-03-09 12:39:49 +01:00
|
|
|
note
|
|
|
|
}
|
|
|
|
}`
|