You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.3 KiB

query GetPublicationsList(
$orderBy: HousingPublicationsOrder
$first: Int = 20
$after: String
$where: HousingWherePublicationsInput
$locale: String = "en-US"
) {
housingPublications(
orderBy: $orderBy
first: $first
after: $after
where: $where
locale: $locale
) {
nodes {
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
...PublicationListItem
}
}
}
}
}
fragment PublicationListItem on HousingPublication {
id
startTime
totalNumberOfApplications
url {
value
}
unit {
rentBenefit
externalUrl {
value
}
grossRent {
exact
}
location {
city {
name
}
}
}
# allocationProcess {
# ...PublicationListAllocationProcess
# }
applicantSpecific {
allocationChance
}
}
mutation PostApplication($publicationId: ID!, $locale: String) {
housingApplyToUnit(
input: { publicationId: $publicationId }
locale: $locale
) {
state
description
userErrors {
field
message {
locale
text
}
}
}
}
query GetIdentityConfig($realm: String!) {
identityConfig(realm: $realm) {
self
authorization_endpoint
token_endpoint
portalClientId
}
}