Availability

Get availability calendar

input GetAvailablityInput {
    workspaceIds: ID[]
    buildingIds: ID[]
    unitTypeIds: ID[]
    unitIds: ID[]
    dates {
        from: Date
        to: Date   
    }
}

query {
    availablity {
        calendar(q: GetAvailablityInput) {
            edges {
                nodes {
                   property {
                       # See unit and unit types
                   }
                   calendar {
                       date: Date
                       status: string # "booked" | "blocked" | "available"
                       note: string
                       minStay: number
                       booking {
                           # See booking page
                       }
                       block {
                           id: ID
                           from: Date
                           to: Date
                           notes: string
                       }
                   }
                }
            }
        }   
    }
}

Is inventory available

query {
    availability {
       isAvailable(
          unitId: ID
          unitTypeId: ID
          from: Date
          to: Date
       ) {
          available: boolean
       }   
    }
}

Create calendar block

mutation {
    availability {
       blocks {
          create(
             from: Date
             to: Date
             notes: string
          ) {
             # Block   
          }
       }   
    }
}

Last updated