beherbergung/frontend/search/codegen/queries.ts

43 lines
768 B
TypeScript
Raw Normal View History

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) {
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
place_lon
place_lat
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
}
}`
export const get_rw = gql`
query GetRw($auth: Auth!) {
get_rw(auth: $auth) {
id
rw_contacted
rw_contact_replied
rw_offer_occupied
rw_note
}
}`