Repository: graphcool/graphql-server-example
Branch: master
Commit: a66e2c78194b
Files: 57
Total size: 1.4 MB
Directory structure:
gitextract_ixuxgozt/
├── .gitignore
├── .graphqlconfig.yml
├── .vscode/
│ └── launch.json
├── LICENSE
├── README.md
├── docker-compose.yml
├── package.json
├── prisma/
│ ├── datamodel.graphql
│ ├── prisma.yml
│ └── seed.graphql
├── queries/
│ ├── booking.graphql
│ └── queries.graphql
├── renovate.json
├── src/
│ ├── generated/
│ │ ├── prisma-client/
│ │ │ ├── index.ts
│ │ │ └── prisma-schema.ts
│ │ ├── prisma.graphql
│ │ ├── prisma.ts
│ │ └── resolvers.ts
│ ├── index.ts
│ ├── resolvers/
│ │ ├── Amenities.ts
│ │ ├── AuthPayload.ts
│ │ ├── Booking.ts
│ │ ├── City.ts
│ │ ├── CityPreviousValues.ts
│ │ ├── CitySubscriptionPayload.ts
│ │ ├── CreditCardInformation.ts
│ │ ├── Experience.ts
│ │ ├── ExperienceCategory.ts
│ │ ├── ExperiencesByCity.ts
│ │ ├── GuestRequirements.ts
│ │ ├── HouseRules.ts
│ │ ├── Location.ts
│ │ ├── Message.ts
│ │ ├── Mutation.ts
│ │ ├── MutationResult.ts
│ │ ├── Neighbourhood.ts
│ │ ├── Notification.ts
│ │ ├── Payment.ts
│ │ ├── PaymentAccount.ts
│ │ ├── PaypalInformation.ts
│ │ ├── Picture.ts
│ │ ├── Place.ts
│ │ ├── PlaceViews.ts
│ │ ├── Policies.ts
│ │ ├── Pricing.ts
│ │ ├── Query.ts
│ │ ├── Reservation.ts
│ │ ├── Review.ts
│ │ ├── Subscription.ts
│ │ ├── User.ts
│ │ ├── Viewer.ts
│ │ ├── index.ts
│ │ └── types/
│ │ ├── Context.ts
│ │ └── TypeMap.ts
│ ├── schema.graphql
│ └── utils.ts
└── tsconfig.json
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
.env*
dist
package-lock.json
node_modules
.idea
*.log
.graphcoolrc
**/.DS_Store
================================================
FILE: .graphqlconfig.yml
================================================
projects:
app:
schemaPath: src/schema.graphql
includes: [
"schema.graphql",
"prisma.graphql",
"booking.graphql",
"queries.graphql",
]
extensions:
endpoints:
default: http://localhost:4000
prisma:
schemaPath: src/generated/prisma.graphql
includes: [
"prisma.graphql",
"seed.graphql",
"datamodel.graphql",
]
extensions:
prisma: prisma/prisma.yml
codegen:
- generator: prisma-binding
language: typescript
output:
binding: src/generated/prisma.ts
================================================
FILE: .vscode/launch.json
================================================
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/src/index.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
}
]
}
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2018 Graphcool
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# Airbnb Clone - GraphQL Server Example with Prisma
This project demonstrates how to build a production-ready application with Prisma and [`graphql-yoga`](https://github.com/graphcool/graphql-yoga). The API provided by the GraphQL server is the foundation for an application similar to [AirBnB](https://www.airbnb.com/).
## Get started
> **Note**: `prisma` is listed as a _development dependency_ and _script_ in this project's [`package.json`](./package.json). This means you can invoke the Prisma CLI without having it globally installed on your machine (by prefixing it with `yarn`), e.g. `yarn prisma deploy` or `yarn prisma playground`. If you have the Prisma CLI installed globally (which you can do with `npm install -g prisma`), you can omit the `yarn` prefix.
### 1. Download the example & install dependencies
Clone the repository with the following command:
```sh
git clone git@github.com:graphcool/graphql-server-example.git
```
Next, navigate into the downloaded folder and install the NPM dependencies:
```sh
cd graphql-server-example
yarn install
```
### 2. Deploy the Prisma database service
You can now [deploy](https://www.prismagraphql.com/docs/reference/cli-command-reference/database-service/prisma-deploy-kee1iedaov) the Prisma service (note that this requires you to have [Docker](https://www.docker.com) installed on your machine - if that's not the case, follow the collapsed instructions below the code block):
```sh
cd prisma
docker-compose up -d
cd ..
yarn prisma deploy
```
I don't have Docker installed on my machine
To deploy your service to a public cluster (rather than locally with Docker), you need to perform the following steps:
1. Remove the `cluster` property from `prisma.yml`.
1. Run `yarn prisma deploy`.
1. When prompted by the CLI, select a public cluster (e.g. `prisma-eu1` or `prisma-us1`).
1. Replace the [`endpoint`](./src/index.js#L23) in `index.ts` with the HTTP endpoint that was printed after the previous command.
> Notice that when deploying the Prisma service for the very first time, the CLI will execute the mutations from [`prisma/seed.graphql`](prisma/seed.graphql) to seed some initial data in the database. The CLI is aware of this file because it's listed in [`prisma/prisma.yml`](prisma/prisma.yml#L11) under the `seed` property.
### 3. Start the GraphQL server
The Prisma database service that's backing your GraphQL server is now available. This means you can now start the server:
```sh
yarn dev
```
The `dev` script starts the server (on `http://localhost:4000`) and opens a GraphQL Playground where you get acces to the API of your GraphQL server (defined in the [application schema](./src/schema.graphql)) as well as the underlying Prisma API (defined in the auto-generated [Prisma database schema](./src/generated/prisma.ts)) directly.
Inside the Playground, you can start exploring the available operations by browsing the built-in documentation.
## Testing the API
Check [`queries/booking.graphql`](queries/booking.graphql) and [`queries/queries.graphql`](queries/queries.graphql) to see several example operations you can send to the API. To get an understanding of the booking flows, check the mutations in [`queries/booking.graphql`](queries/booking.graphql).
## Deployment
A quick and easy way to deploy the GraphQL server from this repository is with [Zeit Now](https://zeit.co/now). After you downloaded the [Now Desktop](https://zeit.co/download) app, you can deploy the server with the following command:
```sh
now --dotenv .env.prod
```
**Notice that you need to create the `.env.prod` file yourself before invoking the command.** It should list the same environment variables as [`.env`](.env) but with different values. In particular, you need to make sure that your Prisma service is deployed to a cluster that accessible over the web.
Here is an example for what `.env.prod` might look like:
```
PRISMA_STAGE="prod"
PRISMA_CLUSTER="public-tundrapiper-423/prisma-us1"
PRISMA_ENDPOINT="http://us1.prisma.sh/public-tundrapiper-423/prisma-airbnb-example/dev"
PRISMA_SECRET="mysecret123"
APP_SECRET="appsecret321"
```
To learn more about deploying GraphQL servers with Zeit Now, check out this [tutorial](https://www.prismagraphql.com/docs/tutorials/graphql-server-development/deployment-with-now-ahs1jahkee).
## Troubleshooting
I'm getting the error message [Network error]: FetchError: request to http://localhost:4466/auth-example/dev failed, reason: connect ECONNREFUSED when trying to send a query or mutation
This is because the endpoint for the Prisma service is hardcoded in [`index.js`](index.js#L23). The service is assumed to be running on the default port for a local cluster: `http://localhost:4466`. Apparently, your local cluster is using a different port.
You now have two options:
1. Figure out the port of your local cluster and adjust it in `index.js`. You can look it up in `~/.prisma/config.yml`.
1. Deploy the service to a public cluster. Expand the `I don't have Docker installed on my machine`-section in step 2 for instructions.
Either way, you need to adjust the `endpoint` that's passed to the `Prisma` constructor in `index.js` so it reflects the actual cluster domain and service endpoint.
## License
MIT
================================================
FILE: docker-compose.yml
================================================
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.17.1
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
# managementApiSecret: my-secret
databases:
default:
connector: postgres
host: postgres
port: 5432
user: prisma
password: prisma
migrations: true
postgres:
image: postgres
restart: always
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres:
================================================
FILE: package.json
================================================
{
"name": "graphql-server-example",
"version": "0.0.0",
"scripts": {
"dev": "npm-run-all --parallel start playground",
"start": "nodemon -e ts,graphql -x ts-node --no-cache -r dotenv/config src/index.ts",
"playground": "graphql playground",
"build": "rm -rf dist && graphql codegen && tsc",
"prisma": "prisma",
"resolver-interfaces": "graphql-resolver-codegen interfaces -s src/schema.graphql -o ./src/generated/resolvers.ts",
"resolver-scaffold": "graphql-resolver-codegen scaffold -s src/schema.graphql -o ./src/resolvers/ -i ../generated/resolvers",
"resolver-codegen": "npm-run-all resolver-interfaces resolver-scaffold"
},
"dependencies": {
"bcryptjs": "2.4.3",
"graphql": "14.5.7",
"graphql-tag": "2.10.1",
"graphql-tools": "4.0.5",
"graphql-yoga": "1.18.3",
"jsonwebtoken": "8.5.1",
"prisma-binding": "2.3.16",
"prisma-client-lib": "1.34.8"
},
"devDependencies": {
"@types/bcryptjs": "2.4.2",
"@types/jsonwebtoken": "8.3.4",
"dotenv": "6.2.0",
"graphql-cli": "2.17.0",
"graphql-resolver-codegen": "0.3.1",
"nodemon": "1.19.2",
"npm-run-all": "4.1.5",
"prisma": "1.34.8",
"ts-node": "7.0.1",
"typescript": "3.6.3"
},
"prettier": {
"semi": false,
"trailingComma": "all",
"singleQuote": true
}
}
================================================
FILE: prisma/datamodel.graphql
================================================
type User {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
firstName: String!
lastName: String!
email: String! @unique
password: String!
phone: String!
responseRate: Float
responseTime: Int
isSuperHost: Boolean! @default(value: "false")
ownedPlaces: [Place!]!
location: Location
bookings: [Booking!]!
paymentAccount: [PaymentAccount!]!
sentMessages: [Message!]! @relation(name: "SentMessages")
receivedMessages: [Message!]! @relation(name: "ReceivedMessages")
notifications: [Notification!]!
profilePicture: Picture
hostingExperiences: [Experience!]!
}
type Place {
id: ID! @unique
name: String!
size: PLACE_SIZES
shortDescription: String!
description: String!
slug: String!
maxGuests: Int!
numBedrooms: Int!
numBeds: Int!
numBaths: Int!
reviews: [Review!]!
amenities: Amenities!
host: User!
pricing: Pricing!
location: Location!
views: Views!
guestRequirements: GuestRequirements
policies: Policies
houseRules: HouseRules
bookings: [Booking!]!
pictures: [Picture!]!
popularity: Int!
}
type Pricing {
id: ID! @unique
place: Place!
monthlyDiscount: Int
weeklyDiscount: Int
perNight: Int!
smartPricing: Boolean! @default(value: "false")
basePrice: Int!
averageWeekly: Int!
averageMonthly: Int!
cleaningFee: Int
securityDeposit: Int
extraGuests: Int
weekendPricing: Int
currency: CURRENCY
}
type GuestRequirements {
id: ID! @unique
govIssuedId: Boolean! @default(value: "false")
recommendationsFromOtherHosts: Boolean! @default(value: "false")
guestTripInformation: Boolean! @default(value: "false")
place: Place!
}
type Policies {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
checkInStartTime: Float!
checkInEndTime: Float!
checkoutTime: Float!
place: Place!
}
type HouseRules {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
suitableForChildren: Boolean
suitableForInfants: Boolean
petsAllowed: Boolean
smokingAllowed: Boolean
partiesAndEventsAllowed: Boolean
additionalRules: String
}
type Views {
id: ID! @unique
lastWeek: Int!
place: Place!
}
type Location {
id: ID! @unique
lat: Float!
lng: Float!
neighbourHood: Neighbourhood
user: User
place: Place
address: String!
directions: String!
experience: Experience
restaurant: Restaurant
}
type Neighbourhood {
id: ID! @unique
locations: [Location!]!
name: String!
slug: String!
homePreview: Picture
city: City!
featured: Boolean!
popularity: Int!
}
type City {
id: ID! @unique
name: String!
neighbourhoods: [Neighbourhood!]!
}
type Picture {
id: ID! @unique
url: String!
}
type Experience {
id: ID! @unique
category: ExperienceCategory
title: String!
host: User!
location: Location!
pricePerPerson: Int!
reviews: [Review!]!
preview: Picture!
popularity: Int!
}
type ExperienceCategory {
id: ID! @unique
mainColor: String! @default(value: "#123456")
name: String!
experience: Experience
}
type Amenities {
id: ID! @unique
place: Place!
elevator: Boolean! @default(value: "false")
petsAllowed: Boolean! @default(value: "false")
internet: Boolean! @default(value: "false")
kitchen: Boolean! @default(value: "false")
wirelessInternet: Boolean! @default(value: "false")
familyKidFriendly: Boolean! @default(value: "false")
freeParkingOnPremises: Boolean! @default(value: "false")
hotTub: Boolean! @default(value: "false")
pool: Boolean! @default(value: "false")
smokingAllowed: Boolean! @default(value: "false")
wheelchairAccessible: Boolean! @default(value: "false")
breakfast: Boolean! @default(value: "false")
cableTv: Boolean! @default(value: "false")
suitableForEvents: Boolean! @default(value: "false")
dryer: Boolean! @default(value: "false")
washer: Boolean! @default(value: "false")
indoorFireplace: Boolean! @default(value: "false")
tv: Boolean! @default(value: "false")
heating: Boolean! @default(value: "false")
hangers: Boolean! @default(value: "false")
iron: Boolean! @default(value: "false")
hairDryer: Boolean! @default(value: "false")
doorman: Boolean! @default(value: "false")
paidParkingOffPremises: Boolean! @default(value: "false")
freeParkingOnStreet: Boolean! @default(value: "false")
gym: Boolean! @default(value: "false")
airConditioning: Boolean! @default(value: "false")
shampoo: Boolean! @default(value: "false")
essentials: Boolean! @default(value: "false")
laptopFriendlyWorkspace: Boolean! @default(value: "false")
privateEntrance: Boolean! @default(value: "false")
buzzerWirelessIntercom: Boolean! @default(value: "false")
babyBath: Boolean! @default(value: "false")
babyMonitor: Boolean! @default(value: "false")
babysitterRecommendations: Boolean! @default(value: "false")
bathtub: Boolean! @default(value: "false")
changingTable: Boolean! @default(value: "false")
childrensBooksAndToys: Boolean! @default(value: "false")
childrensDinnerware: Boolean! @default(value: "false")
crib: Boolean! @default(value: "false")
}
type Review {
id: ID! @unique
createdAt: DateTime!
text: String!
stars: Int!
accuracy: Int!
location: Int!
checkIn: Int!
value: Int!
cleanliness: Int!
communication: Int!
place: Place!
experience: Experience
}
type Booking {
id: ID! @unique
createdAt: DateTime!
bookee: User!
place: Place!
startDate: DateTime!
endDate: DateTime!
payment: Payment
}
type Payment {
id: ID! @unique
createdAt: DateTime!
serviceFee: Float!
placePrice: Float!
totalPrice: Float!
booking: Booking!
paymentMethod: PaymentAccount!
}
type PaymentAccount {
id: ID! @unique
createdAt: DateTime!
type: PAYMENT_PROVIDER
user: User!
payments: [Payment!]!
paypal: PaypalInformation
creditcard: CreditCardInformation
}
type PaypalInformation {
id: ID! @unique
createdAt: DateTime!
email: String!
paymentAccount: PaymentAccount!
}
type CreditCardInformation {
id: ID! @unique
createdAt: DateTime!
cardNumber: String!
expiresOnMonth: Int!
expiresOnYear: Int!
securityCode: String!
firstName: String!
lastName: String!
postalCode: String!
country: String!
paymentAccount: PaymentAccount
}
type Message {
id: ID! @unique
createdAt: DateTime!
from: User! @relation(name: "SentMessages")
to: User! @relation(name: "ReceivedMessages")
deliveredAt: DateTime!
readAt: DateTime!
}
type Notification {
id: ID! @unique
createdAt: DateTime!
type: NOTIFICATION_TYPE
user: User!
link: String!
readDate: DateTime!
}
type Restaurant {
id: ID! @unique
createdAt: DateTime!
title: String!
avgPricePerPerson: Int!
pictures: [Picture!]!
location: Location!
isCurated: Boolean! @default(value: "true")
slug: String!
popularity: Int!
}
enum CURRENCY {
CAD
CHF
EUR
JPY
USD
ZAR
}
enum PLACE_SIZES {
ENTIRE_HOUSE
ENTIRE_APARTMENT
ENTIRE_EARTH_HOUSE
ENTIRE_CABIN
ENTIRE_VILLA
ENTIRE_PLACE
ENTIRE_BOAT
PRIVATE_ROOM
}
enum PAYMENT_PROVIDER {
PAYPAL
CREDIT_CARD
}
enum NOTIFICATION_TYPE {
OFFER
INSTANT_BOOK
RESPONSIVENESS
NEW_AMENITIES
HOUSE_RULES
}
================================================
FILE: prisma/prisma.yml
================================================
endpoint: ${env:PRISMA_ENDPOINT}
datamodel: datamodel.graphql
# The secret is used to generate JWTs which allow to authenticate
# against your Prisma service. You can use the `prisma token` command from the CLI
# to generate a JWT based on the secret. When using the `prisma-binding` package,
# you don't need to generate the JWTs manually as the library is doing that for you
# (this is why you're passing it to the `Prisma` constructor).
# Here, the secret is loaded as an environment variable from .env.
secret: ${env:PRISMA_SECRET}
# Defines how to seed data to the database upon the initial deploy.
seed:
import: seed.graphql
generate:
- generator: typescript-client
output: ../src/generated/prisma-client/
hooks:
post-deploy:
- graphql get-schema -p prisma
- graphql codegen
================================================
FILE: prisma/seed.graphql
================================================
mutation {
experience: createExperience(
data: {
popularity: 3
pricePerPerson: 33
title: "Raise a glass to Prohibition"
host: {
create: {
email: "test2@test.com"
firstName: "Kitty"
lastName: "Miller"
isSuperHost: true
phone: "+1123455667"
password: "secret"
responseRate: 1
responseTime: 5
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
}
preview: {
create: {
url: "https://a0.muscache.com/im/pictures/cb14d34d-65cf-401d-ba7f-585ec37b43ef.jpg"
}
}
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
) {
id
}
restaurant: createRestaurant(
data: {
title: "Chumley's"
pictures: {
create: {
url: "https://a0.muscache.com/pictures/a9a1d433-bcde-4601-88a0-5f16871b8548.jpg"
}
}
slug: "chumleys"
popularity: 1
avgPricePerPerson: 30
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
) {
id
}
firstPlace: createPlace(
data: {
name: "Mushroom Dome Cabin: #1 on airbnb in the world"
shortDescription: "With a geodesic dome loft & a large deck in the trees, you'll feel like you're in a tree house in the woods. We are in a quiet yet convenient location. Shaded by Oak and Madrone trees and next to a Redwood grove, you can enjoy the outdoors from the deck. In the summer, it is cool and in the winter you might get to hear the creek running below."
description: "The space\\n\\nWe have 10 acres next to land without fences so you will get to enjoy nature: just hang out on the deck, take a hike in the woods, watch the hummingbirds, pet the goats, go to the beach or gaze at the stars - as long as the moon isn't full. ; ) During the summer, if there isn't any nightly fog, we can see the Milky Way here.\\n\\nTo check our availability, click on the \"Request to Book\" link."
maxGuests: 3
pictures: {
create: {
url: "https://a0.muscache.com/im/pictures/140333/3ab8f121_original.jpg?aki_policy=xx_large"
}
}
numBedrooms: 1
numBeds: 3
numBaths: 1
size: ENTIRE_CABIN
slug: "mushroom-dome"
popularity: 1
host: {
create: {
email: "test@test.com"
firstName: "John"
lastName: "Doe"
isSuperHost: true
phone: "+1123455667"
password: "secret"
responseRate: 1
responseTime: 5
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
}
amenities: { create: { airConditioning: false, essentials: true } }
views: { create: { lastWeek: 0 } }
guestRequirements: {
create: {
recommendationsFromOtherHosts: false
guestTripInformation: false
}
}
policies: {
create: {
checkInStartTime: 11.00
checkInEndTime: 20.00
checkoutTime: 10.00
}
}
pricing: {
create: {
averageMonthly: 1000
averageWeekly: 300
basePrice: 100
cleaningFee: 30
extraGuests: 80
perNight: 100
securityDeposit: 500
weeklyDiscount: 50
smartPricing: false
currency: USD
}
}
houseRules: {
create: {
smokingAllowed: false
petsAllowed: true
suitableForInfants: false
}
}
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
) {
id
}
secondPlace: createPlace(
data: {
name: "Apartment 1 of 4 with green terrace in Roma Norte"
shortDescription: "We offer other options with incredible terraces: Wonderful little loft with enjoyable terrace. Green and relaxing in the heart of the bustling city."
description: "We offer other options with incredible terraces: Wonderful little loft with enjoyable terrace. Green and relaxing in the heart of the bustling city."
maxGuests: 3
pictures: {
create: {
url: "https://a0.muscache.com/im/pictures/45880516/93bb5931_original.jpg?aki_policy=xx_large"
}
}
numBedrooms: 1
numBeds: 3
numBaths: 1
size: ENTIRE_CABIN
slug: "mushroom-dome"
popularity: 1
host: {
create: {
email: "test14@test.com"
firstName: "Jason"
lastName: "Padmakumara"
isSuperHost: true
phone: "+1123455667"
password: "secret"
responseRate: 1
responseTime: 5
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
}
amenities: { create: { airConditioning: false, essentials: true } }
views: { create: { lastWeek: 0 } }
guestRequirements: {
create: {
recommendationsFromOtherHosts: false
guestTripInformation: false
}
}
policies: {
create: {
checkInStartTime: 11.00
checkInEndTime: 20.00
checkoutTime: 10.00
}
}
pricing: {
create: {
averageMonthly: 1000
averageWeekly: 300
basePrice: 100
cleaningFee: 30
extraGuests: 80
perNight: 110
securityDeposit: 500
weeklyDiscount: 50
smartPricing: false
currency: USD
}
}
houseRules: {
create: {
smokingAllowed: false
petsAllowed: true
suitableForInfants: false
}
}
location: {
create: {
address: "Narvarte Oriente, Mexico City, CDMX, Mexico"
directions: "Follow the street to the end, then right"
lat: 19.398095
lng: -99.149452
neighbourHood: {
create: {
name: "Mexico City"
slug: "mexico-city"
featured: true
popularity: 1
city: { create: { name: "Mexico City" } }
}
}
}
}
}
) {
id
}
thirdPlace: createPlace(
data: {
name: "Urban Farmhouse at Curtis Park"
shortDescription: "The Urban Farmhouse circa 1886 - meticulously converted in 2013. Situated adjacent to community garden. The updates afford you all the modern convenience you could ask for and charm you can only get from a building built in 1886. A true Charmer."
description: "The Urban Farmhouse circa 1886 - meticulously converted in 2013. Situated adjacent to community garden. The updates afford you all the modern convenience you could ask for and charm you can only get from a building built in 1886. A true Charmer."
maxGuests: 3
pictures: {
create: {
url: "https://a0.muscache.com/im/pictures/ff6b760d-8782-4ccb-9e03-50aa720e3783.jpg?aki_policy=xx_large"
}
}
numBedrooms: 1
numBeds: 3
numBaths: 1
size: ENTIRE_CABIN
slug: "mushroom-dome"
popularity: 1
host: {
create: {
email: "test12@test.com"
firstName: "Hans"
lastName: "Johanson"
isSuperHost: true
phone: "+1123455667"
password: "secret"
responseRate: 1
responseTime: 5
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
}
amenities: { create: { airConditioning: false, essentials: true } }
views: { create: { lastWeek: 0 } }
guestRequirements: {
create: {
recommendationsFromOtherHosts: false
guestTripInformation: false
}
}
policies: {
create: {
checkInStartTime: 11.00
checkInEndTime: 20.00
checkoutTime: 10.00
}
}
pricing: {
create: {
averageMonthly: 1000
averageWeekly: 300
basePrice: 100
cleaningFee: 30
extraGuests: 80
perNight: 87
securityDeposit: 500
weeklyDiscount: 50
smartPricing: false
currency: USD
}
}
houseRules: {
create: {
smokingAllowed: false
petsAllowed: true
suitableForInfants: false
}
}
location: {
create: {
address: "W Crestline Ave, Littleton, CO 80120, USA"
directions: "Follow the street to the end, then right"
lat: 39.619115
lng: -105.016560
neighbourHood: {
create: {
name: "Denver"
slug: "denver"
featured: true
popularity: 1
city: { create: { name: "Denver" } }
}
}
}
}
}
) {
id
}
fourthPlace: createPlace(
data: {
name: "Underground Hygge"
shortDescription: "This inspired dwelling nestled right into the breathtaking Columbia River Gorge mountainside. Reverently framed by the iconic round doorway, the wondrous views will entrance your imagination and inspire an unforgettable journey. Every nook of this little habitation will warm your sole, every cranny will charm your expedition of repose. Up the pathway, tucked into the earth, an unbelievable adventure awaits!"
description: "This inspired dwelling nestled right into the breathtaking Columbia River Gorge mountainside. Reverently framed by the iconic round doorway, the wondrous views will entrance your imagination and inspire an unforgettable journey. Every nook of this little habitation will warm your sole, every cranny will charm your expedition of repose. Up the pathway, tucked into the earth, an unbelievable adventure awaits!"
maxGuests: 3
pictures: {
create: {
url: "https://a0.muscache.com/im/pictures/56bff280-aba3-42f3-af42-adc2814a72f4.jpg?aki_policy=xx_large"
}
}
numBedrooms: 1
numBeds: 3
numBaths: 1
size: ENTIRE_CABIN
slug: "mushroom-dome"
popularity: 1
host: {
create: {
email: "test13@test.com"
firstName: "Leah"
lastName: "Dyer"
isSuperHost: true
phone: "+1123455667"
password: "secret"
responseRate: 1
responseTime: 5
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
}
amenities: { create: { airConditioning: false, essentials: true } }
views: { create: { lastWeek: 0 } }
guestRequirements: {
create: {
recommendationsFromOtherHosts: false
guestTripInformation: false
}
}
policies: {
create: {
checkInStartTime: 11.00
checkInEndTime: 20.00
checkoutTime: 10.00
}
}
pricing: {
create: {
averageMonthly: 1000
averageWeekly: 300
basePrice: 100
cleaningFee: 30
extraGuests: 80
perNight: 69
securityDeposit: 500
weeklyDiscount: 50
smartPricing: false
currency: USD
}
}
houseRules: {
create: {
smokingAllowed: false
petsAllowed: true
suitableForInfants: false
}
}
location: {
create: {
address: "2600-2712 Entiat Way, Entiat, WA 98822, USA"
directions: "Follow the street to the end, then right"
lat: 47.631190
lng: -120.220822
neighbourHood: {
create: {
name: "Orondo"
slug: "orondo"
featured: true
popularity: 1
city: { create: { name: "Orondo" } }
}
}
}
}
}
) {
id
}
fifthPlace: createPlace(
data: {
name: "Romantic, Cozy Cottage Next to Downtown"
shortDescription: "Comfy, cozy and romantic cottage less than 3 miles from Downtown. The Cleveland Cottage provides a private oasis within city limits that includes full kitchen, Wifi, parking, electric fireplace & entrance through a private courtyard with fire pit."
description: "Comfy, cozy and romantic cottage less than 3 miles from Downtown. The Cleveland Cottage provides a private oasis within city limits that includes full kitchen, Wifi, parking, electric fireplace & entrance through a private courtyard with fire pit."
maxGuests: 3
pictures: {
create: {
url: "https://a0.muscache.com/im/pictures/100298057/ccd8c843_original.jpg?aki_policy=xx_large"
}
}
numBedrooms: 1
numBeds: 3
numBaths: 1
size: ENTIRE_CABIN
slug: "mushroom-dome"
popularity: 1
host: {
create: {
email: "test15@test.com"
firstName: "Kris"
lastName: "Mao"
isSuperHost: true
phone: "+1123455667"
password: "secret"
responseRate: 1
responseTime: 5
location: {
create: {
address: "2 Salmon Way, Moss Landing, Monterey County, CA, USA"
directions: "Follow the street to the end, then right"
lat: 36.805235
lng: 121.7892066
neighbourHood: {
create: {
name: "Monterey Countey"
slug: "monterey-countey"
featured: true
popularity: 1
city: { create: { name: "Moss Landing" } }
}
}
}
}
}
}
amenities: { create: { airConditioning: false, essentials: true } }
views: { create: { lastWeek: 0 } }
guestRequirements: {
create: {
recommendationsFromOtherHosts: false
guestTripInformation: false
}
}
policies: {
create: {
checkInStartTime: 11.00
checkInEndTime: 20.00
checkoutTime: 10.00
}
}
pricing: {
create: {
averageMonthly: 1000
averageWeekly: 300
basePrice: 100
cleaningFee: 30
extraGuests: 80
perNight: 110
securityDeposit: 500
weeklyDiscount: 50
smartPricing: false
currency: USD
}
}
houseRules: {
create: {
smokingAllowed: false
petsAllowed: true
suitableForInfants: false
}
}
location: {
create: {
address: "Greenwood, Nashville, TN 37206, USA"
directions: "Follow the street to the end, then right"
lat: 36.187977
lng: -86.751635
neighbourHood: {
create: {
name: "Nashville"
slug: "nashville"
featured: true
popularity: 1
city: { create: { name: "Nashville" } }
}
}
}
}
}
) {
id
}
}
================================================
FILE: queries/booking.graphql
================================================
mutation signup {
signup(
email: "a25@a.de"
firstName: "Tom"
lastName: "Hardy"
password: "pw"
phone: "+1132123123"
) {
user {
id
}
token
}
}
mutation login {
login(email: "a25@a.de", password: "pw") {
user {
id
}
token
}
}
# TODO: IMPLEMENT
# mutation addPaymentMethod {
# addPaymentMethod(
# cardNumber: "4242424242424242"
# expiresOnMonth: 12
# expiresOnYear: 2020
# securityCode: "232"
# firstName: "Bob"
# lastName: "der Meister"
# postalCode: "12345"
# country: "Germany"
# ) {
# success
# }
# }
mutation book {
book(
placeId: ""
checkIn: "2017-11-19T11:57:44.828Z"
checkOut: "2017-11-20T11:57:44.828Z"
numGuests: 2
) {
success
}
}
================================================
FILE: queries/queries.graphql
================================================
## possible queries
{
topExperiences {
...ExperienceFragment
}
topHomes {
id
pricing {
id
perNight
}
name
description
pictures {
url
}
numRatings
avgRating
}
topReservations {
id
slug
title
avgPricePerPerson
pictures {
url
}
title
popularity
isCurated
location {
...LocationFields
}
}
homesInPriceRange(min: 0, max: 100) {
id
pricing {
id
perNight
}
name
description
pictures {
url
}
numRatings
avgRating
}
featuredDestinations {
id
name
slug
homePreview {
url
}
city {
id
name
}
featured
popularity
}
cityExperiences: experiencesByCity(
cities: [
"New York"
"Barcelona"
"Paris"
"Tokyo"
"Los Angeles"
"Lisbon"
"San Francisco"
"Sydney"
"London"
"Rome",
"Moss Landing"
]
) {
city {
name
}
experiences {
...ExperienceFragment
}
}
}
fragment ExperienceFragment on Experience {
id
category {
id
mainColor
name
experience {
id
}
}
title
location {
...LocationFields
}
pricePerPerson
reviews {
id
accuracy
checkIn
cleanliness
communication
createdAt
location
stars
text
value
}
preview {
url
}
popularity
}
fragment LocationFields on Location {
id
lat
lng
address
directions
}
================================================
FILE: renovate.json
================================================
{
"extends": [
"config:base",
"docker:disable",
":skipStatusChecks"
],
"automerge": true,
"major": {
"automerge": false
}
}
================================================
FILE: src/generated/prisma-client/index.ts
================================================
// Code generated by Prisma (prisma@1.20.7). DO NOT EDIT.
// Please don't change this file manually but run `prisma generate` to update it.
// For more information, please read the docs: https://www.prisma.io/docs/prisma-client/
import { DocumentNode, GraphQLSchema } from "graphql";
import { makePrismaClientClass, BaseClientOptions } from "prisma-client-lib";
import { typeDefs } from "./prisma-schema";
type AtLeastOne }> = Partial &
U[keyof U];
export interface Exists {
amenities: (where?: AmenitiesWhereInput) => Promise;
booking: (where?: BookingWhereInput) => Promise;
city: (where?: CityWhereInput) => Promise;
creditCardInformation: (
where?: CreditCardInformationWhereInput
) => Promise;
experience: (where?: ExperienceWhereInput) => Promise;
experienceCategory: (
where?: ExperienceCategoryWhereInput
) => Promise;
guestRequirements: (where?: GuestRequirementsWhereInput) => Promise;
houseRules: (where?: HouseRulesWhereInput) => Promise;
location: (where?: LocationWhereInput) => Promise;
message: (where?: MessageWhereInput) => Promise;
neighbourhood: (where?: NeighbourhoodWhereInput) => Promise;
notification: (where?: NotificationWhereInput) => Promise;
payment: (where?: PaymentWhereInput) => Promise;
paymentAccount: (where?: PaymentAccountWhereInput) => Promise;
paypalInformation: (where?: PaypalInformationWhereInput) => Promise;
picture: (where?: PictureWhereInput) => Promise;
place: (where?: PlaceWhereInput) => Promise;
policies: (where?: PoliciesWhereInput) => Promise;
pricing: (where?: PricingWhereInput) => Promise;
restaurant: (where?: RestaurantWhereInput) => Promise;
review: (where?: ReviewWhereInput) => Promise;
user: (where?: UserWhereInput) => Promise;
views: (where?: ViewsWhereInput) => Promise;
}
export interface Node {}
export type FragmentableArray = Promise> & Fragmentable;
export interface Fragmentable {
$fragment(fragment: string | DocumentNode): Promise;
}
export interface Prisma {
$exists: Exists;
$graphql: (
query: string,
variables?: { [key: string]: any }
) => Promise;
/**
* Queries
*/
amenities: (where: AmenitiesWhereUniqueInput) => AmenitiesPromise;
amenitieses: (
args?: {
where?: AmenitiesWhereInput;
orderBy?: AmenitiesOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
amenitiesesConnection: (
args?: {
where?: AmenitiesWhereInput;
orderBy?: AmenitiesOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => AmenitiesConnectionPromise;
booking: (where: BookingWhereUniqueInput) => BookingPromise;
bookings: (
args?: {
where?: BookingWhereInput;
orderBy?: BookingOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
bookingsConnection: (
args?: {
where?: BookingWhereInput;
orderBy?: BookingOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => BookingConnectionPromise;
city: (where: CityWhereUniqueInput) => CityPromise;
cities: (
args?: {
where?: CityWhereInput;
orderBy?: CityOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
citiesConnection: (
args?: {
where?: CityWhereInput;
orderBy?: CityOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => CityConnectionPromise;
creditCardInformation: (
where: CreditCardInformationWhereUniqueInput
) => CreditCardInformationPromise;
creditCardInformations: (
args?: {
where?: CreditCardInformationWhereInput;
orderBy?: CreditCardInformationOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
creditCardInformationsConnection: (
args?: {
where?: CreditCardInformationWhereInput;
orderBy?: CreditCardInformationOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => CreditCardInformationConnectionPromise;
experience: (where: ExperienceWhereUniqueInput) => ExperiencePromise;
experiences: (
args?: {
where?: ExperienceWhereInput;
orderBy?: ExperienceOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
experiencesConnection: (
args?: {
where?: ExperienceWhereInput;
orderBy?: ExperienceOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => ExperienceConnectionPromise;
experienceCategory: (
where: ExperienceCategoryWhereUniqueInput
) => ExperienceCategoryPromise;
experienceCategories: (
args?: {
where?: ExperienceCategoryWhereInput;
orderBy?: ExperienceCategoryOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
experienceCategoriesConnection: (
args?: {
where?: ExperienceCategoryWhereInput;
orderBy?: ExperienceCategoryOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => ExperienceCategoryConnectionPromise;
guestRequirements: (
where: GuestRequirementsWhereUniqueInput
) => GuestRequirementsPromise;
guestRequirementses: (
args?: {
where?: GuestRequirementsWhereInput;
orderBy?: GuestRequirementsOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
guestRequirementsesConnection: (
args?: {
where?: GuestRequirementsWhereInput;
orderBy?: GuestRequirementsOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => GuestRequirementsConnectionPromise;
houseRules: (where: HouseRulesWhereUniqueInput) => HouseRulesPromise;
houseRuleses: (
args?: {
where?: HouseRulesWhereInput;
orderBy?: HouseRulesOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
houseRulesesConnection: (
args?: {
where?: HouseRulesWhereInput;
orderBy?: HouseRulesOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => HouseRulesConnectionPromise;
location: (where: LocationWhereUniqueInput) => LocationPromise;
locations: (
args?: {
where?: LocationWhereInput;
orderBy?: LocationOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
locationsConnection: (
args?: {
where?: LocationWhereInput;
orderBy?: LocationOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => LocationConnectionPromise;
message: (where: MessageWhereUniqueInput) => MessagePromise;
messages: (
args?: {
where?: MessageWhereInput;
orderBy?: MessageOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
messagesConnection: (
args?: {
where?: MessageWhereInput;
orderBy?: MessageOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => MessageConnectionPromise;
neighbourhood: (where: NeighbourhoodWhereUniqueInput) => NeighbourhoodPromise;
neighbourhoods: (
args?: {
where?: NeighbourhoodWhereInput;
orderBy?: NeighbourhoodOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
neighbourhoodsConnection: (
args?: {
where?: NeighbourhoodWhereInput;
orderBy?: NeighbourhoodOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => NeighbourhoodConnectionPromise;
notification: (where: NotificationWhereUniqueInput) => NotificationPromise;
notifications: (
args?: {
where?: NotificationWhereInput;
orderBy?: NotificationOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
notificationsConnection: (
args?: {
where?: NotificationWhereInput;
orderBy?: NotificationOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => NotificationConnectionPromise;
payment: (where: PaymentWhereUniqueInput) => PaymentPromise;
payments: (
args?: {
where?: PaymentWhereInput;
orderBy?: PaymentOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
paymentsConnection: (
args?: {
where?: PaymentWhereInput;
orderBy?: PaymentOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => PaymentConnectionPromise;
paymentAccount: (
where: PaymentAccountWhereUniqueInput
) => PaymentAccountPromise;
paymentAccounts: (
args?: {
where?: PaymentAccountWhereInput;
orderBy?: PaymentAccountOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
paymentAccountsConnection: (
args?: {
where?: PaymentAccountWhereInput;
orderBy?: PaymentAccountOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => PaymentAccountConnectionPromise;
paypalInformation: (
where: PaypalInformationWhereUniqueInput
) => PaypalInformationPromise;
paypalInformations: (
args?: {
where?: PaypalInformationWhereInput;
orderBy?: PaypalInformationOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
paypalInformationsConnection: (
args?: {
where?: PaypalInformationWhereInput;
orderBy?: PaypalInformationOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => PaypalInformationConnectionPromise;
picture: (where: PictureWhereUniqueInput) => PicturePromise;
pictures: (
args?: {
where?: PictureWhereInput;
orderBy?: PictureOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
picturesConnection: (
args?: {
where?: PictureWhereInput;
orderBy?: PictureOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => PictureConnectionPromise;
place: (where: PlaceWhereUniqueInput) => PlacePromise;
places: (
args?: {
where?: PlaceWhereInput;
orderBy?: PlaceOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
placesConnection: (
args?: {
where?: PlaceWhereInput;
orderBy?: PlaceOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => PlaceConnectionPromise;
policies: (where: PoliciesWhereUniqueInput) => PoliciesPromise;
policieses: (
args?: {
where?: PoliciesWhereInput;
orderBy?: PoliciesOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
policiesesConnection: (
args?: {
where?: PoliciesWhereInput;
orderBy?: PoliciesOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => PoliciesConnectionPromise;
pricing: (where: PricingWhereUniqueInput) => PricingPromise;
pricings: (
args?: {
where?: PricingWhereInput;
orderBy?: PricingOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
pricingsConnection: (
args?: {
where?: PricingWhereInput;
orderBy?: PricingOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => PricingConnectionPromise;
restaurant: (where: RestaurantWhereUniqueInput) => RestaurantPromise;
restaurants: (
args?: {
where?: RestaurantWhereInput;
orderBy?: RestaurantOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
restaurantsConnection: (
args?: {
where?: RestaurantWhereInput;
orderBy?: RestaurantOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => RestaurantConnectionPromise;
review: (where: ReviewWhereUniqueInput) => ReviewPromise;
reviews: (
args?: {
where?: ReviewWhereInput;
orderBy?: ReviewOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
reviewsConnection: (
args?: {
where?: ReviewWhereInput;
orderBy?: ReviewOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => ReviewConnectionPromise;
user: (where: UserWhereUniqueInput) => UserPromise;
users: (
args?: {
where?: UserWhereInput;
orderBy?: UserOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
usersConnection: (
args?: {
where?: UserWhereInput;
orderBy?: UserOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => UserConnectionPromise;
views: (where: ViewsWhereUniqueInput) => ViewsPromise;
viewses: (
args?: {
where?: ViewsWhereInput;
orderBy?: ViewsOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => FragmentableArray;
viewsesConnection: (
args?: {
where?: ViewsWhereInput;
orderBy?: ViewsOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => ViewsConnectionPromise;
node: (args: { id: ID_Output }) => Node;
/**
* Mutations
*/
createAmenities: (data: AmenitiesCreateInput) => AmenitiesPromise;
updateAmenities: (
args: { data: AmenitiesUpdateInput; where: AmenitiesWhereUniqueInput }
) => AmenitiesPromise;
updateManyAmenitieses: (
args: {
data: AmenitiesUpdateManyMutationInput;
where?: AmenitiesWhereInput;
}
) => BatchPayloadPromise;
upsertAmenities: (
args: {
where: AmenitiesWhereUniqueInput;
create: AmenitiesCreateInput;
update: AmenitiesUpdateInput;
}
) => AmenitiesPromise;
deleteAmenities: (where: AmenitiesWhereUniqueInput) => AmenitiesPromise;
deleteManyAmenitieses: (where?: AmenitiesWhereInput) => BatchPayloadPromise;
createBooking: (data: BookingCreateInput) => BookingPromise;
updateBooking: (
args: { data: BookingUpdateInput; where: BookingWhereUniqueInput }
) => BookingPromise;
updateManyBookings: (
args: { data: BookingUpdateManyMutationInput; where?: BookingWhereInput }
) => BatchPayloadPromise;
upsertBooking: (
args: {
where: BookingWhereUniqueInput;
create: BookingCreateInput;
update: BookingUpdateInput;
}
) => BookingPromise;
deleteBooking: (where: BookingWhereUniqueInput) => BookingPromise;
deleteManyBookings: (where?: BookingWhereInput) => BatchPayloadPromise;
createCity: (data: CityCreateInput) => CityPromise;
updateCity: (
args: { data: CityUpdateInput; where: CityWhereUniqueInput }
) => CityPromise;
updateManyCities: (
args: { data: CityUpdateManyMutationInput; where?: CityWhereInput }
) => BatchPayloadPromise;
upsertCity: (
args: {
where: CityWhereUniqueInput;
create: CityCreateInput;
update: CityUpdateInput;
}
) => CityPromise;
deleteCity: (where: CityWhereUniqueInput) => CityPromise;
deleteManyCities: (where?: CityWhereInput) => BatchPayloadPromise;
createCreditCardInformation: (
data: CreditCardInformationCreateInput
) => CreditCardInformationPromise;
updateCreditCardInformation: (
args: {
data: CreditCardInformationUpdateInput;
where: CreditCardInformationWhereUniqueInput;
}
) => CreditCardInformationPromise;
updateManyCreditCardInformations: (
args: {
data: CreditCardInformationUpdateManyMutationInput;
where?: CreditCardInformationWhereInput;
}
) => BatchPayloadPromise;
upsertCreditCardInformation: (
args: {
where: CreditCardInformationWhereUniqueInput;
create: CreditCardInformationCreateInput;
update: CreditCardInformationUpdateInput;
}
) => CreditCardInformationPromise;
deleteCreditCardInformation: (
where: CreditCardInformationWhereUniqueInput
) => CreditCardInformationPromise;
deleteManyCreditCardInformations: (
where?: CreditCardInformationWhereInput
) => BatchPayloadPromise;
createExperience: (data: ExperienceCreateInput) => ExperiencePromise;
updateExperience: (
args: { data: ExperienceUpdateInput; where: ExperienceWhereUniqueInput }
) => ExperiencePromise;
updateManyExperiences: (
args: {
data: ExperienceUpdateManyMutationInput;
where?: ExperienceWhereInput;
}
) => BatchPayloadPromise;
upsertExperience: (
args: {
where: ExperienceWhereUniqueInput;
create: ExperienceCreateInput;
update: ExperienceUpdateInput;
}
) => ExperiencePromise;
deleteExperience: (where: ExperienceWhereUniqueInput) => ExperiencePromise;
deleteManyExperiences: (where?: ExperienceWhereInput) => BatchPayloadPromise;
createExperienceCategory: (
data: ExperienceCategoryCreateInput
) => ExperienceCategoryPromise;
updateExperienceCategory: (
args: {
data: ExperienceCategoryUpdateInput;
where: ExperienceCategoryWhereUniqueInput;
}
) => ExperienceCategoryPromise;
updateManyExperienceCategories: (
args: {
data: ExperienceCategoryUpdateManyMutationInput;
where?: ExperienceCategoryWhereInput;
}
) => BatchPayloadPromise;
upsertExperienceCategory: (
args: {
where: ExperienceCategoryWhereUniqueInput;
create: ExperienceCategoryCreateInput;
update: ExperienceCategoryUpdateInput;
}
) => ExperienceCategoryPromise;
deleteExperienceCategory: (
where: ExperienceCategoryWhereUniqueInput
) => ExperienceCategoryPromise;
deleteManyExperienceCategories: (
where?: ExperienceCategoryWhereInput
) => BatchPayloadPromise;
createGuestRequirements: (
data: GuestRequirementsCreateInput
) => GuestRequirementsPromise;
updateGuestRequirements: (
args: {
data: GuestRequirementsUpdateInput;
where: GuestRequirementsWhereUniqueInput;
}
) => GuestRequirementsPromise;
updateManyGuestRequirementses: (
args: {
data: GuestRequirementsUpdateManyMutationInput;
where?: GuestRequirementsWhereInput;
}
) => BatchPayloadPromise;
upsertGuestRequirements: (
args: {
where: GuestRequirementsWhereUniqueInput;
create: GuestRequirementsCreateInput;
update: GuestRequirementsUpdateInput;
}
) => GuestRequirementsPromise;
deleteGuestRequirements: (
where: GuestRequirementsWhereUniqueInput
) => GuestRequirementsPromise;
deleteManyGuestRequirementses: (
where?: GuestRequirementsWhereInput
) => BatchPayloadPromise;
createHouseRules: (data: HouseRulesCreateInput) => HouseRulesPromise;
updateHouseRules: (
args: { data: HouseRulesUpdateInput; where: HouseRulesWhereUniqueInput }
) => HouseRulesPromise;
updateManyHouseRuleses: (
args: {
data: HouseRulesUpdateManyMutationInput;
where?: HouseRulesWhereInput;
}
) => BatchPayloadPromise;
upsertHouseRules: (
args: {
where: HouseRulesWhereUniqueInput;
create: HouseRulesCreateInput;
update: HouseRulesUpdateInput;
}
) => HouseRulesPromise;
deleteHouseRules: (where: HouseRulesWhereUniqueInput) => HouseRulesPromise;
deleteManyHouseRuleses: (where?: HouseRulesWhereInput) => BatchPayloadPromise;
createLocation: (data: LocationCreateInput) => LocationPromise;
updateLocation: (
args: { data: LocationUpdateInput; where: LocationWhereUniqueInput }
) => LocationPromise;
updateManyLocations: (
args: { data: LocationUpdateManyMutationInput; where?: LocationWhereInput }
) => BatchPayloadPromise;
upsertLocation: (
args: {
where: LocationWhereUniqueInput;
create: LocationCreateInput;
update: LocationUpdateInput;
}
) => LocationPromise;
deleteLocation: (where: LocationWhereUniqueInput) => LocationPromise;
deleteManyLocations: (where?: LocationWhereInput) => BatchPayloadPromise;
createMessage: (data: MessageCreateInput) => MessagePromise;
updateMessage: (
args: { data: MessageUpdateInput; where: MessageWhereUniqueInput }
) => MessagePromise;
updateManyMessages: (
args: { data: MessageUpdateManyMutationInput; where?: MessageWhereInput }
) => BatchPayloadPromise;
upsertMessage: (
args: {
where: MessageWhereUniqueInput;
create: MessageCreateInput;
update: MessageUpdateInput;
}
) => MessagePromise;
deleteMessage: (where: MessageWhereUniqueInput) => MessagePromise;
deleteManyMessages: (where?: MessageWhereInput) => BatchPayloadPromise;
createNeighbourhood: (data: NeighbourhoodCreateInput) => NeighbourhoodPromise;
updateNeighbourhood: (
args: {
data: NeighbourhoodUpdateInput;
where: NeighbourhoodWhereUniqueInput;
}
) => NeighbourhoodPromise;
updateManyNeighbourhoods: (
args: {
data: NeighbourhoodUpdateManyMutationInput;
where?: NeighbourhoodWhereInput;
}
) => BatchPayloadPromise;
upsertNeighbourhood: (
args: {
where: NeighbourhoodWhereUniqueInput;
create: NeighbourhoodCreateInput;
update: NeighbourhoodUpdateInput;
}
) => NeighbourhoodPromise;
deleteNeighbourhood: (
where: NeighbourhoodWhereUniqueInput
) => NeighbourhoodPromise;
deleteManyNeighbourhoods: (
where?: NeighbourhoodWhereInput
) => BatchPayloadPromise;
createNotification: (data: NotificationCreateInput) => NotificationPromise;
updateNotification: (
args: { data: NotificationUpdateInput; where: NotificationWhereUniqueInput }
) => NotificationPromise;
updateManyNotifications: (
args: {
data: NotificationUpdateManyMutationInput;
where?: NotificationWhereInput;
}
) => BatchPayloadPromise;
upsertNotification: (
args: {
where: NotificationWhereUniqueInput;
create: NotificationCreateInput;
update: NotificationUpdateInput;
}
) => NotificationPromise;
deleteNotification: (
where: NotificationWhereUniqueInput
) => NotificationPromise;
deleteManyNotifications: (
where?: NotificationWhereInput
) => BatchPayloadPromise;
createPayment: (data: PaymentCreateInput) => PaymentPromise;
updatePayment: (
args: { data: PaymentUpdateInput; where: PaymentWhereUniqueInput }
) => PaymentPromise;
updateManyPayments: (
args: { data: PaymentUpdateManyMutationInput; where?: PaymentWhereInput }
) => BatchPayloadPromise;
upsertPayment: (
args: {
where: PaymentWhereUniqueInput;
create: PaymentCreateInput;
update: PaymentUpdateInput;
}
) => PaymentPromise;
deletePayment: (where: PaymentWhereUniqueInput) => PaymentPromise;
deleteManyPayments: (where?: PaymentWhereInput) => BatchPayloadPromise;
createPaymentAccount: (
data: PaymentAccountCreateInput
) => PaymentAccountPromise;
updatePaymentAccount: (
args: {
data: PaymentAccountUpdateInput;
where: PaymentAccountWhereUniqueInput;
}
) => PaymentAccountPromise;
updateManyPaymentAccounts: (
args: {
data: PaymentAccountUpdateManyMutationInput;
where?: PaymentAccountWhereInput;
}
) => BatchPayloadPromise;
upsertPaymentAccount: (
args: {
where: PaymentAccountWhereUniqueInput;
create: PaymentAccountCreateInput;
update: PaymentAccountUpdateInput;
}
) => PaymentAccountPromise;
deletePaymentAccount: (
where: PaymentAccountWhereUniqueInput
) => PaymentAccountPromise;
deleteManyPaymentAccounts: (
where?: PaymentAccountWhereInput
) => BatchPayloadPromise;
createPaypalInformation: (
data: PaypalInformationCreateInput
) => PaypalInformationPromise;
updatePaypalInformation: (
args: {
data: PaypalInformationUpdateInput;
where: PaypalInformationWhereUniqueInput;
}
) => PaypalInformationPromise;
updateManyPaypalInformations: (
args: {
data: PaypalInformationUpdateManyMutationInput;
where?: PaypalInformationWhereInput;
}
) => BatchPayloadPromise;
upsertPaypalInformation: (
args: {
where: PaypalInformationWhereUniqueInput;
create: PaypalInformationCreateInput;
update: PaypalInformationUpdateInput;
}
) => PaypalInformationPromise;
deletePaypalInformation: (
where: PaypalInformationWhereUniqueInput
) => PaypalInformationPromise;
deleteManyPaypalInformations: (
where?: PaypalInformationWhereInput
) => BatchPayloadPromise;
createPicture: (data: PictureCreateInput) => PicturePromise;
updatePicture: (
args: { data: PictureUpdateInput; where: PictureWhereUniqueInput }
) => PicturePromise;
updateManyPictures: (
args: { data: PictureUpdateManyMutationInput; where?: PictureWhereInput }
) => BatchPayloadPromise;
upsertPicture: (
args: {
where: PictureWhereUniqueInput;
create: PictureCreateInput;
update: PictureUpdateInput;
}
) => PicturePromise;
deletePicture: (where: PictureWhereUniqueInput) => PicturePromise;
deleteManyPictures: (where?: PictureWhereInput) => BatchPayloadPromise;
createPlace: (data: PlaceCreateInput) => PlacePromise;
updatePlace: (
args: { data: PlaceUpdateInput; where: PlaceWhereUniqueInput }
) => PlacePromise;
updateManyPlaces: (
args: { data: PlaceUpdateManyMutationInput; where?: PlaceWhereInput }
) => BatchPayloadPromise;
upsertPlace: (
args: {
where: PlaceWhereUniqueInput;
create: PlaceCreateInput;
update: PlaceUpdateInput;
}
) => PlacePromise;
deletePlace: (where: PlaceWhereUniqueInput) => PlacePromise;
deleteManyPlaces: (where?: PlaceWhereInput) => BatchPayloadPromise;
createPolicies: (data: PoliciesCreateInput) => PoliciesPromise;
updatePolicies: (
args: { data: PoliciesUpdateInput; where: PoliciesWhereUniqueInput }
) => PoliciesPromise;
updateManyPolicieses: (
args: { data: PoliciesUpdateManyMutationInput; where?: PoliciesWhereInput }
) => BatchPayloadPromise;
upsertPolicies: (
args: {
where: PoliciesWhereUniqueInput;
create: PoliciesCreateInput;
update: PoliciesUpdateInput;
}
) => PoliciesPromise;
deletePolicies: (where: PoliciesWhereUniqueInput) => PoliciesPromise;
deleteManyPolicieses: (where?: PoliciesWhereInput) => BatchPayloadPromise;
createPricing: (data: PricingCreateInput) => PricingPromise;
updatePricing: (
args: { data: PricingUpdateInput; where: PricingWhereUniqueInput }
) => PricingPromise;
updateManyPricings: (
args: { data: PricingUpdateManyMutationInput; where?: PricingWhereInput }
) => BatchPayloadPromise;
upsertPricing: (
args: {
where: PricingWhereUniqueInput;
create: PricingCreateInput;
update: PricingUpdateInput;
}
) => PricingPromise;
deletePricing: (where: PricingWhereUniqueInput) => PricingPromise;
deleteManyPricings: (where?: PricingWhereInput) => BatchPayloadPromise;
createRestaurant: (data: RestaurantCreateInput) => RestaurantPromise;
updateRestaurant: (
args: { data: RestaurantUpdateInput; where: RestaurantWhereUniqueInput }
) => RestaurantPromise;
updateManyRestaurants: (
args: {
data: RestaurantUpdateManyMutationInput;
where?: RestaurantWhereInput;
}
) => BatchPayloadPromise;
upsertRestaurant: (
args: {
where: RestaurantWhereUniqueInput;
create: RestaurantCreateInput;
update: RestaurantUpdateInput;
}
) => RestaurantPromise;
deleteRestaurant: (where: RestaurantWhereUniqueInput) => RestaurantPromise;
deleteManyRestaurants: (where?: RestaurantWhereInput) => BatchPayloadPromise;
createReview: (data: ReviewCreateInput) => ReviewPromise;
updateReview: (
args: { data: ReviewUpdateInput; where: ReviewWhereUniqueInput }
) => ReviewPromise;
updateManyReviews: (
args: { data: ReviewUpdateManyMutationInput; where?: ReviewWhereInput }
) => BatchPayloadPromise;
upsertReview: (
args: {
where: ReviewWhereUniqueInput;
create: ReviewCreateInput;
update: ReviewUpdateInput;
}
) => ReviewPromise;
deleteReview: (where: ReviewWhereUniqueInput) => ReviewPromise;
deleteManyReviews: (where?: ReviewWhereInput) => BatchPayloadPromise;
createUser: (data: UserCreateInput) => UserPromise;
updateUser: (
args: { data: UserUpdateInput; where: UserWhereUniqueInput }
) => UserPromise;
updateManyUsers: (
args: { data: UserUpdateManyMutationInput; where?: UserWhereInput }
) => BatchPayloadPromise;
upsertUser: (
args: {
where: UserWhereUniqueInput;
create: UserCreateInput;
update: UserUpdateInput;
}
) => UserPromise;
deleteUser: (where: UserWhereUniqueInput) => UserPromise;
deleteManyUsers: (where?: UserWhereInput) => BatchPayloadPromise;
createViews: (data: ViewsCreateInput) => ViewsPromise;
updateViews: (
args: { data: ViewsUpdateInput; where: ViewsWhereUniqueInput }
) => ViewsPromise;
updateManyViewses: (
args: { data: ViewsUpdateManyMutationInput; where?: ViewsWhereInput }
) => BatchPayloadPromise;
upsertViews: (
args: {
where: ViewsWhereUniqueInput;
create: ViewsCreateInput;
update: ViewsUpdateInput;
}
) => ViewsPromise;
deleteViews: (where: ViewsWhereUniqueInput) => ViewsPromise;
deleteManyViewses: (where?: ViewsWhereInput) => BatchPayloadPromise;
/**
* Subscriptions
*/
$subscribe: Subscription;
}
export interface Subscription {
amenities: (
where?: AmenitiesSubscriptionWhereInput
) => AmenitiesSubscriptionPayloadSubscription;
booking: (
where?: BookingSubscriptionWhereInput
) => BookingSubscriptionPayloadSubscription;
city: (
where?: CitySubscriptionWhereInput
) => CitySubscriptionPayloadSubscription;
creditCardInformation: (
where?: CreditCardInformationSubscriptionWhereInput
) => CreditCardInformationSubscriptionPayloadSubscription;
experience: (
where?: ExperienceSubscriptionWhereInput
) => ExperienceSubscriptionPayloadSubscription;
experienceCategory: (
where?: ExperienceCategorySubscriptionWhereInput
) => ExperienceCategorySubscriptionPayloadSubscription;
guestRequirements: (
where?: GuestRequirementsSubscriptionWhereInput
) => GuestRequirementsSubscriptionPayloadSubscription;
houseRules: (
where?: HouseRulesSubscriptionWhereInput
) => HouseRulesSubscriptionPayloadSubscription;
location: (
where?: LocationSubscriptionWhereInput
) => LocationSubscriptionPayloadSubscription;
message: (
where?: MessageSubscriptionWhereInput
) => MessageSubscriptionPayloadSubscription;
neighbourhood: (
where?: NeighbourhoodSubscriptionWhereInput
) => NeighbourhoodSubscriptionPayloadSubscription;
notification: (
where?: NotificationSubscriptionWhereInput
) => NotificationSubscriptionPayloadSubscription;
payment: (
where?: PaymentSubscriptionWhereInput
) => PaymentSubscriptionPayloadSubscription;
paymentAccount: (
where?: PaymentAccountSubscriptionWhereInput
) => PaymentAccountSubscriptionPayloadSubscription;
paypalInformation: (
where?: PaypalInformationSubscriptionWhereInput
) => PaypalInformationSubscriptionPayloadSubscription;
picture: (
where?: PictureSubscriptionWhereInput
) => PictureSubscriptionPayloadSubscription;
place: (
where?: PlaceSubscriptionWhereInput
) => PlaceSubscriptionPayloadSubscription;
policies: (
where?: PoliciesSubscriptionWhereInput
) => PoliciesSubscriptionPayloadSubscription;
pricing: (
where?: PricingSubscriptionWhereInput
) => PricingSubscriptionPayloadSubscription;
restaurant: (
where?: RestaurantSubscriptionWhereInput
) => RestaurantSubscriptionPayloadSubscription;
review: (
where?: ReviewSubscriptionWhereInput
) => ReviewSubscriptionPayloadSubscription;
user: (
where?: UserSubscriptionWhereInput
) => UserSubscriptionPayloadSubscription;
views: (
where?: ViewsSubscriptionWhereInput
) => ViewsSubscriptionPayloadSubscription;
}
export interface ClientConstructor {
new (options?: BaseClientOptions): T;
}
/**
* Types
*/
export type AmenitiesOrderByInput =
| "id_ASC"
| "id_DESC"
| "elevator_ASC"
| "elevator_DESC"
| "petsAllowed_ASC"
| "petsAllowed_DESC"
| "internet_ASC"
| "internet_DESC"
| "kitchen_ASC"
| "kitchen_DESC"
| "wirelessInternet_ASC"
| "wirelessInternet_DESC"
| "familyKidFriendly_ASC"
| "familyKidFriendly_DESC"
| "freeParkingOnPremises_ASC"
| "freeParkingOnPremises_DESC"
| "hotTub_ASC"
| "hotTub_DESC"
| "pool_ASC"
| "pool_DESC"
| "smokingAllowed_ASC"
| "smokingAllowed_DESC"
| "wheelchairAccessible_ASC"
| "wheelchairAccessible_DESC"
| "breakfast_ASC"
| "breakfast_DESC"
| "cableTv_ASC"
| "cableTv_DESC"
| "suitableForEvents_ASC"
| "suitableForEvents_DESC"
| "dryer_ASC"
| "dryer_DESC"
| "washer_ASC"
| "washer_DESC"
| "indoorFireplace_ASC"
| "indoorFireplace_DESC"
| "tv_ASC"
| "tv_DESC"
| "heating_ASC"
| "heating_DESC"
| "hangers_ASC"
| "hangers_DESC"
| "iron_ASC"
| "iron_DESC"
| "hairDryer_ASC"
| "hairDryer_DESC"
| "doorman_ASC"
| "doorman_DESC"
| "paidParkingOffPremises_ASC"
| "paidParkingOffPremises_DESC"
| "freeParkingOnStreet_ASC"
| "freeParkingOnStreet_DESC"
| "gym_ASC"
| "gym_DESC"
| "airConditioning_ASC"
| "airConditioning_DESC"
| "shampoo_ASC"
| "shampoo_DESC"
| "essentials_ASC"
| "essentials_DESC"
| "laptopFriendlyWorkspace_ASC"
| "laptopFriendlyWorkspace_DESC"
| "privateEntrance_ASC"
| "privateEntrance_DESC"
| "buzzerWirelessIntercom_ASC"
| "buzzerWirelessIntercom_DESC"
| "babyBath_ASC"
| "babyBath_DESC"
| "babyMonitor_ASC"
| "babyMonitor_DESC"
| "babysitterRecommendations_ASC"
| "babysitterRecommendations_DESC"
| "bathtub_ASC"
| "bathtub_DESC"
| "changingTable_ASC"
| "changingTable_DESC"
| "childrensBooksAndToys_ASC"
| "childrensBooksAndToys_DESC"
| "childrensDinnerware_ASC"
| "childrensDinnerware_DESC"
| "crib_ASC"
| "crib_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type NOTIFICATION_TYPE =
| "OFFER"
| "INSTANT_BOOK"
| "RESPONSIVENESS"
| "NEW_AMENITIES"
| "HOUSE_RULES";
export type ExperienceOrderByInput =
| "id_ASC"
| "id_DESC"
| "title_ASC"
| "title_DESC"
| "pricePerPerson_ASC"
| "pricePerPerson_DESC"
| "popularity_ASC"
| "popularity_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type ViewsOrderByInput =
| "id_ASC"
| "id_DESC"
| "lastWeek_ASC"
| "lastWeek_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type NotificationOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "type_ASC"
| "type_DESC"
| "link_ASC"
| "link_DESC"
| "readDate_ASC"
| "readDate_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PLACE_SIZES =
| "ENTIRE_HOUSE"
| "ENTIRE_APARTMENT"
| "ENTIRE_EARTH_HOUSE"
| "ENTIRE_CABIN"
| "ENTIRE_VILLA"
| "ENTIRE_PLACE"
| "ENTIRE_BOAT"
| "PRIVATE_ROOM";
export type MessageOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "deliveredAt_ASC"
| "deliveredAt_DESC"
| "readAt_ASC"
| "readAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PricingOrderByInput =
| "id_ASC"
| "id_DESC"
| "monthlyDiscount_ASC"
| "monthlyDiscount_DESC"
| "weeklyDiscount_ASC"
| "weeklyDiscount_DESC"
| "perNight_ASC"
| "perNight_DESC"
| "smartPricing_ASC"
| "smartPricing_DESC"
| "basePrice_ASC"
| "basePrice_DESC"
| "averageWeekly_ASC"
| "averageWeekly_DESC"
| "averageMonthly_ASC"
| "averageMonthly_DESC"
| "cleaningFee_ASC"
| "cleaningFee_DESC"
| "securityDeposit_ASC"
| "securityDeposit_DESC"
| "extraGuests_ASC"
| "extraGuests_DESC"
| "weekendPricing_ASC"
| "weekendPricing_DESC"
| "currency_ASC"
| "currency_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PaymentAccountOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "type_ASC"
| "type_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PaypalInformationOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "email_ASC"
| "email_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PaymentOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "serviceFee_ASC"
| "serviceFee_DESC"
| "placePrice_ASC"
| "placePrice_DESC"
| "totalPrice_ASC"
| "totalPrice_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type GuestRequirementsOrderByInput =
| "id_ASC"
| "id_DESC"
| "govIssuedId_ASC"
| "govIssuedId_DESC"
| "recommendationsFromOtherHosts_ASC"
| "recommendationsFromOtherHosts_DESC"
| "guestTripInformation_ASC"
| "guestTripInformation_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type BookingOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "startDate_ASC"
| "startDate_DESC"
| "endDate_ASC"
| "endDate_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type CreditCardInformationOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "cardNumber_ASC"
| "cardNumber_DESC"
| "expiresOnMonth_ASC"
| "expiresOnMonth_DESC"
| "expiresOnYear_ASC"
| "expiresOnYear_DESC"
| "securityCode_ASC"
| "securityCode_DESC"
| "firstName_ASC"
| "firstName_DESC"
| "lastName_ASC"
| "lastName_DESC"
| "postalCode_ASC"
| "postalCode_DESC"
| "country_ASC"
| "country_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PictureOrderByInput =
| "id_ASC"
| "id_DESC"
| "url_ASC"
| "url_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type MutationType = "CREATED" | "UPDATED" | "DELETED";
export type NeighbourhoodOrderByInput =
| "id_ASC"
| "id_DESC"
| "name_ASC"
| "name_DESC"
| "slug_ASC"
| "slug_DESC"
| "featured_ASC"
| "featured_DESC"
| "popularity_ASC"
| "popularity_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type RestaurantOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "title_ASC"
| "title_DESC"
| "avgPricePerPerson_ASC"
| "avgPricePerPerson_DESC"
| "isCurated_ASC"
| "isCurated_DESC"
| "slug_ASC"
| "slug_DESC"
| "popularity_ASC"
| "popularity_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PAYMENT_PROVIDER = "PAYPAL" | "CREDIT_CARD";
export type HouseRulesOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC"
| "suitableForChildren_ASC"
| "suitableForChildren_DESC"
| "suitableForInfants_ASC"
| "suitableForInfants_DESC"
| "petsAllowed_ASC"
| "petsAllowed_DESC"
| "smokingAllowed_ASC"
| "smokingAllowed_DESC"
| "partiesAndEventsAllowed_ASC"
| "partiesAndEventsAllowed_DESC"
| "additionalRules_ASC"
| "additionalRules_DESC";
export type CURRENCY = "CAD" | "CHF" | "EUR" | "JPY" | "USD" | "ZAR";
export type ReviewOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "text_ASC"
| "text_DESC"
| "stars_ASC"
| "stars_DESC"
| "accuracy_ASC"
| "accuracy_DESC"
| "location_ASC"
| "location_DESC"
| "checkIn_ASC"
| "checkIn_DESC"
| "value_ASC"
| "value_DESC"
| "cleanliness_ASC"
| "cleanliness_DESC"
| "communication_ASC"
| "communication_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PlaceOrderByInput =
| "id_ASC"
| "id_DESC"
| "name_ASC"
| "name_DESC"
| "size_ASC"
| "size_DESC"
| "shortDescription_ASC"
| "shortDescription_DESC"
| "description_ASC"
| "description_DESC"
| "slug_ASC"
| "slug_DESC"
| "maxGuests_ASC"
| "maxGuests_DESC"
| "numBedrooms_ASC"
| "numBedrooms_DESC"
| "numBeds_ASC"
| "numBeds_DESC"
| "numBaths_ASC"
| "numBaths_DESC"
| "popularity_ASC"
| "popularity_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type LocationOrderByInput =
| "id_ASC"
| "id_DESC"
| "lat_ASC"
| "lat_DESC"
| "lng_ASC"
| "lng_DESC"
| "address_ASC"
| "address_DESC"
| "directions_ASC"
| "directions_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type ExperienceCategoryOrderByInput =
| "id_ASC"
| "id_DESC"
| "mainColor_ASC"
| "mainColor_DESC"
| "name_ASC"
| "name_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export type PoliciesOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC"
| "checkInStartTime_ASC"
| "checkInStartTime_DESC"
| "checkInEndTime_ASC"
| "checkInEndTime_DESC"
| "checkoutTime_ASC"
| "checkoutTime_DESC";
export type UserOrderByInput =
| "id_ASC"
| "id_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC"
| "firstName_ASC"
| "firstName_DESC"
| "lastName_ASC"
| "lastName_DESC"
| "email_ASC"
| "email_DESC"
| "password_ASC"
| "password_DESC"
| "phone_ASC"
| "phone_DESC"
| "responseRate_ASC"
| "responseRate_DESC"
| "responseTime_ASC"
| "responseTime_DESC"
| "isSuperHost_ASC"
| "isSuperHost_DESC";
export type CityOrderByInput =
| "id_ASC"
| "id_DESC"
| "name_ASC"
| "name_DESC"
| "createdAt_ASC"
| "createdAt_DESC"
| "updatedAt_ASC"
| "updatedAt_DESC";
export interface PlaceUpdateWithoutBookingsDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export type AmenitiesWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface PoliciesUpsertWithoutPlaceInput {
update: PoliciesUpdateWithoutPlaceDataInput;
create: PoliciesCreateWithoutPlaceInput;
}
export interface PricingWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
place?: PlaceWhereInput;
monthlyDiscount?: Int;
monthlyDiscount_not?: Int;
monthlyDiscount_in?: Int[] | Int;
monthlyDiscount_not_in?: Int[] | Int;
monthlyDiscount_lt?: Int;
monthlyDiscount_lte?: Int;
monthlyDiscount_gt?: Int;
monthlyDiscount_gte?: Int;
weeklyDiscount?: Int;
weeklyDiscount_not?: Int;
weeklyDiscount_in?: Int[] | Int;
weeklyDiscount_not_in?: Int[] | Int;
weeklyDiscount_lt?: Int;
weeklyDiscount_lte?: Int;
weeklyDiscount_gt?: Int;
weeklyDiscount_gte?: Int;
perNight?: Int;
perNight_not?: Int;
perNight_in?: Int[] | Int;
perNight_not_in?: Int[] | Int;
perNight_lt?: Int;
perNight_lte?: Int;
perNight_gt?: Int;
perNight_gte?: Int;
smartPricing?: Boolean;
smartPricing_not?: Boolean;
basePrice?: Int;
basePrice_not?: Int;
basePrice_in?: Int[] | Int;
basePrice_not_in?: Int[] | Int;
basePrice_lt?: Int;
basePrice_lte?: Int;
basePrice_gt?: Int;
basePrice_gte?: Int;
averageWeekly?: Int;
averageWeekly_not?: Int;
averageWeekly_in?: Int[] | Int;
averageWeekly_not_in?: Int[] | Int;
averageWeekly_lt?: Int;
averageWeekly_lte?: Int;
averageWeekly_gt?: Int;
averageWeekly_gte?: Int;
averageMonthly?: Int;
averageMonthly_not?: Int;
averageMonthly_in?: Int[] | Int;
averageMonthly_not_in?: Int[] | Int;
averageMonthly_lt?: Int;
averageMonthly_lte?: Int;
averageMonthly_gt?: Int;
averageMonthly_gte?: Int;
cleaningFee?: Int;
cleaningFee_not?: Int;
cleaningFee_in?: Int[] | Int;
cleaningFee_not_in?: Int[] | Int;
cleaningFee_lt?: Int;
cleaningFee_lte?: Int;
cleaningFee_gt?: Int;
cleaningFee_gte?: Int;
securityDeposit?: Int;
securityDeposit_not?: Int;
securityDeposit_in?: Int[] | Int;
securityDeposit_not_in?: Int[] | Int;
securityDeposit_lt?: Int;
securityDeposit_lte?: Int;
securityDeposit_gt?: Int;
securityDeposit_gte?: Int;
extraGuests?: Int;
extraGuests_not?: Int;
extraGuests_in?: Int[] | Int;
extraGuests_not_in?: Int[] | Int;
extraGuests_lt?: Int;
extraGuests_lte?: Int;
extraGuests_gt?: Int;
extraGuests_gte?: Int;
weekendPricing?: Int;
weekendPricing_not?: Int;
weekendPricing_in?: Int[] | Int;
weekendPricing_not_in?: Int[] | Int;
weekendPricing_lt?: Int;
weekendPricing_lte?: Int;
weekendPricing_gt?: Int;
weekendPricing_gte?: Int;
currency?: CURRENCY;
currency_not?: CURRENCY;
currency_in?: CURRENCY[] | CURRENCY;
currency_not_in?: CURRENCY[] | CURRENCY;
AND?: PricingWhereInput[] | PricingWhereInput;
OR?: PricingWhereInput[] | PricingWhereInput;
NOT?: PricingWhereInput[] | PricingWhereInput;
}
export interface HouseRulesUpdateOneInput {
create?: HouseRulesCreateInput;
update?: HouseRulesUpdateDataInput;
upsert?: HouseRulesUpsertNestedInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: HouseRulesWhereUniqueInput;
}
export interface ViewsWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
lastWeek?: Int;
lastWeek_not?: Int;
lastWeek_in?: Int[] | Int;
lastWeek_not_in?: Int[] | Int;
lastWeek_lt?: Int;
lastWeek_lte?: Int;
lastWeek_gt?: Int;
lastWeek_gte?: Int;
place?: PlaceWhereInput;
AND?: ViewsWhereInput[] | ViewsWhereInput;
OR?: ViewsWhereInput[] | ViewsWhereInput;
NOT?: ViewsWhereInput[] | ViewsWhereInput;
}
export interface HouseRulesUpdateDataInput {
suitableForChildren?: Boolean;
suitableForInfants?: Boolean;
petsAllowed?: Boolean;
smokingAllowed?: Boolean;
partiesAndEventsAllowed?: Boolean;
additionalRules?: String;
}
export interface PoliciesWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
updatedAt?: DateTimeInput;
updatedAt_not?: DateTimeInput;
updatedAt_in?: DateTimeInput[] | DateTimeInput;
updatedAt_not_in?: DateTimeInput[] | DateTimeInput;
updatedAt_lt?: DateTimeInput;
updatedAt_lte?: DateTimeInput;
updatedAt_gt?: DateTimeInput;
updatedAt_gte?: DateTimeInput;
checkInStartTime?: Float;
checkInStartTime_not?: Float;
checkInStartTime_in?: Float[] | Float;
checkInStartTime_not_in?: Float[] | Float;
checkInStartTime_lt?: Float;
checkInStartTime_lte?: Float;
checkInStartTime_gt?: Float;
checkInStartTime_gte?: Float;
checkInEndTime?: Float;
checkInEndTime_not?: Float;
checkInEndTime_in?: Float[] | Float;
checkInEndTime_not_in?: Float[] | Float;
checkInEndTime_lt?: Float;
checkInEndTime_lte?: Float;
checkInEndTime_gt?: Float;
checkInEndTime_gte?: Float;
checkoutTime?: Float;
checkoutTime_not?: Float;
checkoutTime_in?: Float[] | Float;
checkoutTime_not_in?: Float[] | Float;
checkoutTime_lt?: Float;
checkoutTime_lte?: Float;
checkoutTime_gt?: Float;
checkoutTime_gte?: Float;
place?: PlaceWhereInput;
AND?: PoliciesWhereInput[] | PoliciesWhereInput;
OR?: PoliciesWhereInput[] | PoliciesWhereInput;
NOT?: PoliciesWhereInput[] | PoliciesWhereInput;
}
export interface HouseRulesUpsertNestedInput {
update: HouseRulesUpdateDataInput;
create: HouseRulesCreateInput;
}
export interface MessageWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
from?: UserWhereInput;
to?: UserWhereInput;
deliveredAt?: DateTimeInput;
deliveredAt_not?: DateTimeInput;
deliveredAt_in?: DateTimeInput[] | DateTimeInput;
deliveredAt_not_in?: DateTimeInput[] | DateTimeInput;
deliveredAt_lt?: DateTimeInput;
deliveredAt_lte?: DateTimeInput;
deliveredAt_gt?: DateTimeInput;
deliveredAt_gte?: DateTimeInput;
readAt?: DateTimeInput;
readAt_not?: DateTimeInput;
readAt_in?: DateTimeInput[] | DateTimeInput;
readAt_not_in?: DateTimeInput[] | DateTimeInput;
readAt_lt?: DateTimeInput;
readAt_lte?: DateTimeInput;
readAt_gt?: DateTimeInput;
readAt_gte?: DateTimeInput;
AND?: MessageWhereInput[] | MessageWhereInput;
OR?: MessageWhereInput[] | MessageWhereInput;
NOT?: MessageWhereInput[] | MessageWhereInput;
}
export interface ReviewCreateWithoutExperienceInput {
text: String;
stars: Int;
accuracy: Int;
location: Int;
checkIn: Int;
value: Int;
cleanliness: Int;
communication: Int;
place: PlaceCreateOneWithoutReviewsInput;
}
export interface GuestRequirementsUpdateManyMutationInput {
govIssuedId?: Boolean;
recommendationsFromOtherHosts?: Boolean;
guestTripInformation?: Boolean;
}
export interface PlaceCreateOneWithoutReviewsInput {
create?: PlaceCreateWithoutReviewsInput;
connect?: PlaceWhereUniqueInput;
}
export interface BookingUpdateManyWithoutPlaceInput {
create?: BookingCreateWithoutPlaceInput[] | BookingCreateWithoutPlaceInput;
delete?: BookingWhereUniqueInput[] | BookingWhereUniqueInput;
connect?: BookingWhereUniqueInput[] | BookingWhereUniqueInput;
disconnect?: BookingWhereUniqueInput[] | BookingWhereUniqueInput;
update?:
| BookingUpdateWithWhereUniqueWithoutPlaceInput[]
| BookingUpdateWithWhereUniqueWithoutPlaceInput;
upsert?:
| BookingUpsertWithWhereUniqueWithoutPlaceInput[]
| BookingUpsertWithWhereUniqueWithoutPlaceInput;
}
export interface PlaceCreateWithoutReviewsInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
amenities: AmenitiesCreateOneWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
pricing: PricingCreateOneWithoutPlaceInput;
location: LocationCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface CreditCardInformationWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
cardNumber?: String;
cardNumber_not?: String;
cardNumber_in?: String[] | String;
cardNumber_not_in?: String[] | String;
cardNumber_lt?: String;
cardNumber_lte?: String;
cardNumber_gt?: String;
cardNumber_gte?: String;
cardNumber_contains?: String;
cardNumber_not_contains?: String;
cardNumber_starts_with?: String;
cardNumber_not_starts_with?: String;
cardNumber_ends_with?: String;
cardNumber_not_ends_with?: String;
expiresOnMonth?: Int;
expiresOnMonth_not?: Int;
expiresOnMonth_in?: Int[] | Int;
expiresOnMonth_not_in?: Int[] | Int;
expiresOnMonth_lt?: Int;
expiresOnMonth_lte?: Int;
expiresOnMonth_gt?: Int;
expiresOnMonth_gte?: Int;
expiresOnYear?: Int;
expiresOnYear_not?: Int;
expiresOnYear_in?: Int[] | Int;
expiresOnYear_not_in?: Int[] | Int;
expiresOnYear_lt?: Int;
expiresOnYear_lte?: Int;
expiresOnYear_gt?: Int;
expiresOnYear_gte?: Int;
securityCode?: String;
securityCode_not?: String;
securityCode_in?: String[] | String;
securityCode_not_in?: String[] | String;
securityCode_lt?: String;
securityCode_lte?: String;
securityCode_gt?: String;
securityCode_gte?: String;
securityCode_contains?: String;
securityCode_not_contains?: String;
securityCode_starts_with?: String;
securityCode_not_starts_with?: String;
securityCode_ends_with?: String;
securityCode_not_ends_with?: String;
firstName?: String;
firstName_not?: String;
firstName_in?: String[] | String;
firstName_not_in?: String[] | String;
firstName_lt?: String;
firstName_lte?: String;
firstName_gt?: String;
firstName_gte?: String;
firstName_contains?: String;
firstName_not_contains?: String;
firstName_starts_with?: String;
firstName_not_starts_with?: String;
firstName_ends_with?: String;
firstName_not_ends_with?: String;
lastName?: String;
lastName_not?: String;
lastName_in?: String[] | String;
lastName_not_in?: String[] | String;
lastName_lt?: String;
lastName_lte?: String;
lastName_gt?: String;
lastName_gte?: String;
lastName_contains?: String;
lastName_not_contains?: String;
lastName_starts_with?: String;
lastName_not_starts_with?: String;
lastName_ends_with?: String;
lastName_not_ends_with?: String;
postalCode?: String;
postalCode_not?: String;
postalCode_in?: String[] | String;
postalCode_not_in?: String[] | String;
postalCode_lt?: String;
postalCode_lte?: String;
postalCode_gt?: String;
postalCode_gte?: String;
postalCode_contains?: String;
postalCode_not_contains?: String;
postalCode_starts_with?: String;
postalCode_not_starts_with?: String;
postalCode_ends_with?: String;
postalCode_not_ends_with?: String;
country?: String;
country_not?: String;
country_in?: String[] | String;
country_not_in?: String[] | String;
country_lt?: String;
country_lte?: String;
country_gt?: String;
country_gte?: String;
country_contains?: String;
country_not_contains?: String;
country_starts_with?: String;
country_not_starts_with?: String;
country_ends_with?: String;
country_not_ends_with?: String;
paymentAccount?: PaymentAccountWhereInput;
AND?: CreditCardInformationWhereInput[] | CreditCardInformationWhereInput;
OR?: CreditCardInformationWhereInput[] | CreditCardInformationWhereInput;
NOT?: CreditCardInformationWhereInput[] | CreditCardInformationWhereInput;
}
export interface MessageCreateManyWithoutToInput {
create?: MessageCreateWithoutToInput[] | MessageCreateWithoutToInput;
connect?: MessageWhereUniqueInput[] | MessageWhereUniqueInput;
}
export interface ReviewSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: ReviewWhereInput;
AND?: ReviewSubscriptionWhereInput[] | ReviewSubscriptionWhereInput;
OR?: ReviewSubscriptionWhereInput[] | ReviewSubscriptionWhereInput;
NOT?: ReviewSubscriptionWhereInput[] | ReviewSubscriptionWhereInput;
}
export interface MessageCreateWithoutToInput {
from: UserCreateOneWithoutSentMessagesInput;
deliveredAt: DateTimeInput;
readAt: DateTimeInput;
}
export interface RestaurantSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: RestaurantWhereInput;
AND?: RestaurantSubscriptionWhereInput[] | RestaurantSubscriptionWhereInput;
OR?: RestaurantSubscriptionWhereInput[] | RestaurantSubscriptionWhereInput;
NOT?: RestaurantSubscriptionWhereInput[] | RestaurantSubscriptionWhereInput;
}
export interface UserCreateOneWithoutSentMessagesInput {
create?: UserCreateWithoutSentMessagesInput;
connect?: UserWhereUniqueInput;
}
export interface PaymentAccountWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
type?: PAYMENT_PROVIDER;
type_not?: PAYMENT_PROVIDER;
type_in?: PAYMENT_PROVIDER[] | PAYMENT_PROVIDER;
type_not_in?: PAYMENT_PROVIDER[] | PAYMENT_PROVIDER;
user?: UserWhereInput;
payments_every?: PaymentWhereInput;
payments_some?: PaymentWhereInput;
payments_none?: PaymentWhereInput;
paypal?: PaypalInformationWhereInput;
creditcard?: CreditCardInformationWhereInput;
AND?: PaymentAccountWhereInput[] | PaymentAccountWhereInput;
OR?: PaymentAccountWhereInput[] | PaymentAccountWhereInput;
NOT?: PaymentAccountWhereInput[] | PaymentAccountWhereInput;
}
export interface UserCreateWithoutSentMessagesInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceCreateManyWithoutHostInput;
location?: LocationCreateOneWithoutUserInput;
bookings?: BookingCreateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountCreateManyWithoutUserInput;
receivedMessages?: MessageCreateManyWithoutToInput;
notifications?: NotificationCreateManyWithoutUserInput;
profilePicture?: PictureCreateOneInput;
hostingExperiences?: ExperienceCreateManyWithoutHostInput;
}
export interface PaymentWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
serviceFee?: Float;
serviceFee_not?: Float;
serviceFee_in?: Float[] | Float;
serviceFee_not_in?: Float[] | Float;
serviceFee_lt?: Float;
serviceFee_lte?: Float;
serviceFee_gt?: Float;
serviceFee_gte?: Float;
placePrice?: Float;
placePrice_not?: Float;
placePrice_in?: Float[] | Float;
placePrice_not_in?: Float[] | Float;
placePrice_lt?: Float;
placePrice_lte?: Float;
placePrice_gt?: Float;
placePrice_gte?: Float;
totalPrice?: Float;
totalPrice_not?: Float;
totalPrice_in?: Float[] | Float;
totalPrice_not_in?: Float[] | Float;
totalPrice_lt?: Float;
totalPrice_lte?: Float;
totalPrice_gt?: Float;
totalPrice_gte?: Float;
booking?: BookingWhereInput;
paymentMethod?: PaymentAccountWhereInput;
AND?: PaymentWhereInput[] | PaymentWhereInput;
OR?: PaymentWhereInput[] | PaymentWhereInput;
NOT?: PaymentWhereInput[] | PaymentWhereInput;
}
export interface PaymentCreateOneWithoutBookingInput {
create?: PaymentCreateWithoutBookingInput;
connect?: PaymentWhereUniqueInput;
}
export interface PlaceSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: PlaceWhereInput;
AND?: PlaceSubscriptionWhereInput[] | PlaceSubscriptionWhereInput;
OR?: PlaceSubscriptionWhereInput[] | PlaceSubscriptionWhereInput;
NOT?: PlaceSubscriptionWhereInput[] | PlaceSubscriptionWhereInput;
}
export interface PaymentCreateWithoutBookingInput {
serviceFee: Float;
placePrice: Float;
totalPrice: Float;
paymentMethod: PaymentAccountCreateOneWithoutPaymentsInput;
}
export interface PaypalInformationSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: PaypalInformationWhereInput;
AND?:
| PaypalInformationSubscriptionWhereInput[]
| PaypalInformationSubscriptionWhereInput;
OR?:
| PaypalInformationSubscriptionWhereInput[]
| PaypalInformationSubscriptionWhereInput;
NOT?:
| PaypalInformationSubscriptionWhereInput[]
| PaypalInformationSubscriptionWhereInput;
}
export interface PaymentAccountCreateOneWithoutPaymentsInput {
create?: PaymentAccountCreateWithoutPaymentsInput;
connect?: PaymentAccountWhereUniqueInput;
}
export interface PaymentAccountSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: PaymentAccountWhereInput;
AND?:
| PaymentAccountSubscriptionWhereInput[]
| PaymentAccountSubscriptionWhereInput;
OR?:
| PaymentAccountSubscriptionWhereInput[]
| PaymentAccountSubscriptionWhereInput;
NOT?:
| PaymentAccountSubscriptionWhereInput[]
| PaymentAccountSubscriptionWhereInput;
}
export interface PaymentAccountCreateWithoutPaymentsInput {
type?: PAYMENT_PROVIDER;
user: UserCreateOneWithoutPaymentAccountInput;
paypal?: PaypalInformationCreateOneWithoutPaymentAccountInput;
creditcard?: CreditCardInformationCreateOneWithoutPaymentAccountInput;
}
export interface ExperienceCategoryWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
mainColor?: String;
mainColor_not?: String;
mainColor_in?: String[] | String;
mainColor_not_in?: String[] | String;
mainColor_lt?: String;
mainColor_lte?: String;
mainColor_gt?: String;
mainColor_gte?: String;
mainColor_contains?: String;
mainColor_not_contains?: String;
mainColor_starts_with?: String;
mainColor_not_starts_with?: String;
mainColor_ends_with?: String;
mainColor_not_ends_with?: String;
name?: String;
name_not?: String;
name_in?: String[] | String;
name_not_in?: String[] | String;
name_lt?: String;
name_lte?: String;
name_gt?: String;
name_gte?: String;
name_contains?: String;
name_not_contains?: String;
name_starts_with?: String;
name_not_starts_with?: String;
name_ends_with?: String;
name_not_ends_with?: String;
experience?: ExperienceWhereInput;
AND?: ExperienceCategoryWhereInput[] | ExperienceCategoryWhereInput;
OR?: ExperienceCategoryWhereInput[] | ExperienceCategoryWhereInput;
NOT?: ExperienceCategoryWhereInput[] | ExperienceCategoryWhereInput;
}
export interface UserCreateOneWithoutPaymentAccountInput {
create?: UserCreateWithoutPaymentAccountInput;
connect?: UserWhereUniqueInput;
}
export interface NotificationSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: NotificationWhereInput;
AND?:
| NotificationSubscriptionWhereInput[]
| NotificationSubscriptionWhereInput;
OR?:
| NotificationSubscriptionWhereInput[]
| NotificationSubscriptionWhereInput;
NOT?:
| NotificationSubscriptionWhereInput[]
| NotificationSubscriptionWhereInput;
}
export interface UserCreateWithoutPaymentAccountInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceCreateManyWithoutHostInput;
location?: LocationCreateOneWithoutUserInput;
bookings?: BookingCreateManyWithoutBookeeInput;
sentMessages?: MessageCreateManyWithoutFromInput;
receivedMessages?: MessageCreateManyWithoutToInput;
notifications?: NotificationCreateManyWithoutUserInput;
profilePicture?: PictureCreateOneInput;
hostingExperiences?: ExperienceCreateManyWithoutHostInput;
}
export interface NeighbourhoodSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: NeighbourhoodWhereInput;
AND?:
| NeighbourhoodSubscriptionWhereInput[]
| NeighbourhoodSubscriptionWhereInput;
OR?:
| NeighbourhoodSubscriptionWhereInput[]
| NeighbourhoodSubscriptionWhereInput;
NOT?:
| NeighbourhoodSubscriptionWhereInput[]
| NeighbourhoodSubscriptionWhereInput;
}
export interface ExperienceCreateOneWithoutLocationInput {
create?: ExperienceCreateWithoutLocationInput;
connect?: ExperienceWhereUniqueInput;
}
export interface MessageSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: MessageWhereInput;
AND?: MessageSubscriptionWhereInput[] | MessageSubscriptionWhereInput;
OR?: MessageSubscriptionWhereInput[] | MessageSubscriptionWhereInput;
NOT?: MessageSubscriptionWhereInput[] | MessageSubscriptionWhereInput;
}
export interface ExperienceCreateWithoutLocationInput {
category?: ExperienceCategoryCreateOneWithoutExperienceInput;
title: String;
host: UserCreateOneWithoutHostingExperiencesInput;
pricePerPerson: Int;
reviews?: ReviewCreateManyWithoutExperienceInput;
preview: PictureCreateOneInput;
popularity: Int;
}
export interface HouseRulesSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: HouseRulesWhereInput;
AND?: HouseRulesSubscriptionWhereInput[] | HouseRulesSubscriptionWhereInput;
OR?: HouseRulesSubscriptionWhereInput[] | HouseRulesSubscriptionWhereInput;
NOT?: HouseRulesSubscriptionWhereInput[] | HouseRulesSubscriptionWhereInput;
}
export interface AmenitiesUpdateInput {
place?: PlaceUpdateOneRequiredWithoutAmenitiesInput;
elevator?: Boolean;
petsAllowed?: Boolean;
internet?: Boolean;
kitchen?: Boolean;
wirelessInternet?: Boolean;
familyKidFriendly?: Boolean;
freeParkingOnPremises?: Boolean;
hotTub?: Boolean;
pool?: Boolean;
smokingAllowed?: Boolean;
wheelchairAccessible?: Boolean;
breakfast?: Boolean;
cableTv?: Boolean;
suitableForEvents?: Boolean;
dryer?: Boolean;
washer?: Boolean;
indoorFireplace?: Boolean;
tv?: Boolean;
heating?: Boolean;
hangers?: Boolean;
iron?: Boolean;
hairDryer?: Boolean;
doorman?: Boolean;
paidParkingOffPremises?: Boolean;
freeParkingOnStreet?: Boolean;
gym?: Boolean;
airConditioning?: Boolean;
shampoo?: Boolean;
essentials?: Boolean;
laptopFriendlyWorkspace?: Boolean;
privateEntrance?: Boolean;
buzzerWirelessIntercom?: Boolean;
babyBath?: Boolean;
babyMonitor?: Boolean;
babysitterRecommendations?: Boolean;
bathtub?: Boolean;
changingTable?: Boolean;
childrensBooksAndToys?: Boolean;
childrensDinnerware?: Boolean;
crib?: Boolean;
}
export interface ExperienceCategorySubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: ExperienceCategoryWhereInput;
AND?:
| ExperienceCategorySubscriptionWhereInput[]
| ExperienceCategorySubscriptionWhereInput;
OR?:
| ExperienceCategorySubscriptionWhereInput[]
| ExperienceCategorySubscriptionWhereInput;
NOT?:
| ExperienceCategorySubscriptionWhereInput[]
| ExperienceCategorySubscriptionWhereInput;
}
export interface PlaceUpdateOneRequiredWithoutAmenitiesInput {
create?: PlaceCreateWithoutAmenitiesInput;
update?: PlaceUpdateWithoutAmenitiesDataInput;
upsert?: PlaceUpsertWithoutAmenitiesInput;
connect?: PlaceWhereUniqueInput;
}
export interface ExperienceSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: ExperienceWhereInput;
AND?: ExperienceSubscriptionWhereInput[] | ExperienceSubscriptionWhereInput;
OR?: ExperienceSubscriptionWhereInput[] | ExperienceSubscriptionWhereInput;
NOT?: ExperienceSubscriptionWhereInput[] | ExperienceSubscriptionWhereInput;
}
export interface PlaceUpdateWithoutAmenitiesDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface CitySubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: CityWhereInput;
AND?: CitySubscriptionWhereInput[] | CitySubscriptionWhereInput;
OR?: CitySubscriptionWhereInput[] | CitySubscriptionWhereInput;
NOT?: CitySubscriptionWhereInput[] | CitySubscriptionWhereInput;
}
export interface ReviewUpdateManyWithoutPlaceInput {
create?: ReviewCreateWithoutPlaceInput[] | ReviewCreateWithoutPlaceInput;
delete?: ReviewWhereUniqueInput[] | ReviewWhereUniqueInput;
connect?: ReviewWhereUniqueInput[] | ReviewWhereUniqueInput;
disconnect?: ReviewWhereUniqueInput[] | ReviewWhereUniqueInput;
update?:
| ReviewUpdateWithWhereUniqueWithoutPlaceInput[]
| ReviewUpdateWithWhereUniqueWithoutPlaceInput;
upsert?:
| ReviewUpsertWithWhereUniqueWithoutPlaceInput[]
| ReviewUpsertWithWhereUniqueWithoutPlaceInput;
}
export type BookingWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface ReviewUpdateWithWhereUniqueWithoutPlaceInput {
where: ReviewWhereUniqueInput;
data: ReviewUpdateWithoutPlaceDataInput;
}
export interface ViewsUpdateManyMutationInput {
lastWeek?: Int;
}
export interface ReviewUpdateWithoutPlaceDataInput {
text?: String;
stars?: Int;
accuracy?: Int;
location?: Int;
checkIn?: Int;
value?: Int;
cleanliness?: Int;
communication?: Int;
experience?: ExperienceUpdateOneWithoutReviewsInput;
}
export type CityWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface ExperienceUpdateOneWithoutReviewsInput {
create?: ExperienceCreateWithoutReviewsInput;
update?: ExperienceUpdateWithoutReviewsDataInput;
upsert?: ExperienceUpsertWithoutReviewsInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: ExperienceWhereUniqueInput;
}
export interface PlaceUpdateWithoutViewsDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface ExperienceUpdateWithoutReviewsDataInput {
category?: ExperienceCategoryUpdateOneWithoutExperienceInput;
title?: String;
host?: UserUpdateOneRequiredWithoutHostingExperiencesInput;
location?: LocationUpdateOneRequiredWithoutExperienceInput;
pricePerPerson?: Int;
preview?: PictureUpdateOneRequiredInput;
popularity?: Int;
}
export interface ViewsUpdateInput {
lastWeek?: Int;
place?: PlaceUpdateOneRequiredWithoutViewsInput;
}
export interface ExperienceCategoryUpdateOneWithoutExperienceInput {
create?: ExperienceCategoryCreateWithoutExperienceInput;
update?: ExperienceCategoryUpdateWithoutExperienceDataInput;
upsert?: ExperienceCategoryUpsertWithoutExperienceInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: ExperienceCategoryWhereUniqueInput;
}
export interface PlaceCreateWithoutViewsInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
amenities: AmenitiesCreateOneWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
pricing: PricingCreateOneWithoutPlaceInput;
location: LocationCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface ExperienceCategoryUpdateWithoutExperienceDataInput {
mainColor?: String;
name?: String;
}
export interface ViewsCreateInput {
lastWeek: Int;
place: PlaceCreateOneWithoutViewsInput;
}
export interface ExperienceCategoryUpsertWithoutExperienceInput {
update: ExperienceCategoryUpdateWithoutExperienceDataInput;
create: ExperienceCategoryCreateWithoutExperienceInput;
}
export type ExperienceWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface UserUpdateOneRequiredWithoutHostingExperiencesInput {
create?: UserCreateWithoutHostingExperiencesInput;
update?: UserUpdateWithoutHostingExperiencesDataInput;
upsert?: UserUpsertWithoutHostingExperiencesInput;
connect?: UserWhereUniqueInput;
}
export interface UserCreateInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceCreateManyWithoutHostInput;
location?: LocationCreateOneWithoutUserInput;
bookings?: BookingCreateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountCreateManyWithoutUserInput;
sentMessages?: MessageCreateManyWithoutFromInput;
receivedMessages?: MessageCreateManyWithoutToInput;
notifications?: NotificationCreateManyWithoutUserInput;
profilePicture?: PictureCreateOneInput;
hostingExperiences?: ExperienceCreateManyWithoutHostInput;
}
export interface UserUpdateWithoutHostingExperiencesDataInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceUpdateManyWithoutHostInput;
location?: LocationUpdateOneWithoutUserInput;
bookings?: BookingUpdateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountUpdateManyWithoutUserInput;
sentMessages?: MessageUpdateManyWithoutFromInput;
receivedMessages?: MessageUpdateManyWithoutToInput;
notifications?: NotificationUpdateManyWithoutUserInput;
profilePicture?: PictureUpdateOneInput;
}
export type ExperienceCategoryWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface PlaceUpdateManyWithoutHostInput {
create?: PlaceCreateWithoutHostInput[] | PlaceCreateWithoutHostInput;
delete?: PlaceWhereUniqueInput[] | PlaceWhereUniqueInput;
connect?: PlaceWhereUniqueInput[] | PlaceWhereUniqueInput;
disconnect?: PlaceWhereUniqueInput[] | PlaceWhereUniqueInput;
update?:
| PlaceUpdateWithWhereUniqueWithoutHostInput[]
| PlaceUpdateWithWhereUniqueWithoutHostInput;
upsert?:
| PlaceUpsertWithWhereUniqueWithoutHostInput[]
| PlaceUpsertWithWhereUniqueWithoutHostInput;
}
export interface ReviewUpdateInput {
text?: String;
stars?: Int;
accuracy?: Int;
location?: Int;
checkIn?: Int;
value?: Int;
cleanliness?: Int;
communication?: Int;
place?: PlaceUpdateOneRequiredWithoutReviewsInput;
experience?: ExperienceUpdateOneWithoutReviewsInput;
}
export interface PlaceUpdateWithWhereUniqueWithoutHostInput {
where: PlaceWhereUniqueInput;
data: PlaceUpdateWithoutHostDataInput;
}
export interface RestaurantUpdateManyMutationInput {
title?: String;
avgPricePerPerson?: Int;
isCurated?: Boolean;
slug?: String;
popularity?: Int;
}
export interface PlaceUpdateWithoutHostDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface LocationUpsertWithoutRestaurantInput {
update: LocationUpdateWithoutRestaurantDataInput;
create: LocationCreateWithoutRestaurantInput;
}
export interface AmenitiesUpdateOneRequiredWithoutPlaceInput {
create?: AmenitiesCreateWithoutPlaceInput;
update?: AmenitiesUpdateWithoutPlaceDataInput;
upsert?: AmenitiesUpsertWithoutPlaceInput;
connect?: AmenitiesWhereUniqueInput;
}
export interface LocationUpdateOneRequiredWithoutRestaurantInput {
create?: LocationCreateWithoutRestaurantInput;
update?: LocationUpdateWithoutRestaurantDataInput;
upsert?: LocationUpsertWithoutRestaurantInput;
connect?: LocationWhereUniqueInput;
}
export interface AmenitiesUpdateWithoutPlaceDataInput {
elevator?: Boolean;
petsAllowed?: Boolean;
internet?: Boolean;
kitchen?: Boolean;
wirelessInternet?: Boolean;
familyKidFriendly?: Boolean;
freeParkingOnPremises?: Boolean;
hotTub?: Boolean;
pool?: Boolean;
smokingAllowed?: Boolean;
wheelchairAccessible?: Boolean;
breakfast?: Boolean;
cableTv?: Boolean;
suitableForEvents?: Boolean;
dryer?: Boolean;
washer?: Boolean;
indoorFireplace?: Boolean;
tv?: Boolean;
heating?: Boolean;
hangers?: Boolean;
iron?: Boolean;
hairDryer?: Boolean;
doorman?: Boolean;
paidParkingOffPremises?: Boolean;
freeParkingOnStreet?: Boolean;
gym?: Boolean;
airConditioning?: Boolean;
shampoo?: Boolean;
essentials?: Boolean;
laptopFriendlyWorkspace?: Boolean;
privateEntrance?: Boolean;
buzzerWirelessIntercom?: Boolean;
babyBath?: Boolean;
babyMonitor?: Boolean;
babysitterRecommendations?: Boolean;
bathtub?: Boolean;
changingTable?: Boolean;
childrensBooksAndToys?: Boolean;
childrensDinnerware?: Boolean;
crib?: Boolean;
}
export type HouseRulesWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface AmenitiesUpsertWithoutPlaceInput {
update: AmenitiesUpdateWithoutPlaceDataInput;
create: AmenitiesCreateWithoutPlaceInput;
}
export interface LocationCreateWithoutRestaurantInput {
lat: Float;
lng: Float;
neighbourHood?: NeighbourhoodCreateOneWithoutLocationsInput;
user?: UserCreateOneWithoutLocationInput;
place?: PlaceCreateOneWithoutLocationInput;
address: String;
directions: String;
experience?: ExperienceCreateOneWithoutLocationInput;
}
export interface PricingUpdateOneRequiredWithoutPlaceInput {
create?: PricingCreateWithoutPlaceInput;
update?: PricingUpdateWithoutPlaceDataInput;
upsert?: PricingUpsertWithoutPlaceInput;
connect?: PricingWhereUniqueInput;
}
export interface RestaurantCreateInput {
title: String;
avgPricePerPerson: Int;
pictures?: PictureCreateManyInput;
location: LocationCreateOneWithoutRestaurantInput;
isCurated?: Boolean;
slug: String;
popularity: Int;
}
export interface PricingUpdateWithoutPlaceDataInput {
monthlyDiscount?: Int;
weeklyDiscount?: Int;
perNight?: Int;
smartPricing?: Boolean;
basePrice?: Int;
averageWeekly?: Int;
averageMonthly?: Int;
cleaningFee?: Int;
securityDeposit?: Int;
extraGuests?: Int;
weekendPricing?: Int;
currency?: CURRENCY;
}
export interface PricingUpdateManyMutationInput {
monthlyDiscount?: Int;
weeklyDiscount?: Int;
perNight?: Int;
smartPricing?: Boolean;
basePrice?: Int;
averageWeekly?: Int;
averageMonthly?: Int;
cleaningFee?: Int;
securityDeposit?: Int;
extraGuests?: Int;
weekendPricing?: Int;
currency?: CURRENCY;
}
export interface PricingUpsertWithoutPlaceInput {
update: PricingUpdateWithoutPlaceDataInput;
create: PricingCreateWithoutPlaceInput;
}
export interface PlaceUpdateWithoutPricingDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface LocationUpdateOneRequiredWithoutPlaceInput {
create?: LocationCreateWithoutPlaceInput;
update?: LocationUpdateWithoutPlaceDataInput;
upsert?: LocationUpsertWithoutPlaceInput;
connect?: LocationWhereUniqueInput;
}
export interface PlaceUpdateOneRequiredWithoutPricingInput {
create?: PlaceCreateWithoutPricingInput;
update?: PlaceUpdateWithoutPricingDataInput;
upsert?: PlaceUpsertWithoutPricingInput;
connect?: PlaceWhereUniqueInput;
}
export interface LocationUpdateWithoutPlaceDataInput {
lat?: Float;
lng?: Float;
neighbourHood?: NeighbourhoodUpdateOneWithoutLocationsInput;
user?: UserUpdateOneWithoutLocationInput;
address?: String;
directions?: String;
experience?: ExperienceUpdateOneWithoutLocationInput;
restaurant?: RestaurantUpdateOneWithoutLocationInput;
}
export interface PlaceCreateWithoutPricingInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
amenities: AmenitiesCreateOneWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
location: LocationCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface NeighbourhoodUpdateOneWithoutLocationsInput {
create?: NeighbourhoodCreateWithoutLocationsInput;
update?: NeighbourhoodUpdateWithoutLocationsDataInput;
upsert?: NeighbourhoodUpsertWithoutLocationsInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: NeighbourhoodWhereUniqueInput;
}
export interface PlaceCreateOneWithoutPricingInput {
create?: PlaceCreateWithoutPricingInput;
connect?: PlaceWhereUniqueInput;
}
export interface NeighbourhoodUpdateWithoutLocationsDataInput {
name?: String;
slug?: String;
homePreview?: PictureUpdateOneInput;
city?: CityUpdateOneRequiredWithoutNeighbourhoodsInput;
featured?: Boolean;
popularity?: Int;
}
export interface PoliciesUpdateManyMutationInput {
checkInStartTime?: Float;
checkInEndTime?: Float;
checkoutTime?: Float;
}
export interface PictureUpdateOneInput {
create?: PictureCreateInput;
update?: PictureUpdateDataInput;
upsert?: PictureUpsertNestedInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: PictureWhereUniqueInput;
}
export interface PlaceUpsertWithoutPoliciesInput {
update: PlaceUpdateWithoutPoliciesDataInput;
create: PlaceCreateWithoutPoliciesInput;
}
export interface PictureUpdateDataInput {
url?: String;
}
export interface PlaceUpdateOneRequiredWithoutPoliciesInput {
create?: PlaceCreateWithoutPoliciesInput;
update?: PlaceUpdateWithoutPoliciesDataInput;
upsert?: PlaceUpsertWithoutPoliciesInput;
connect?: PlaceWhereUniqueInput;
}
export interface PictureUpsertNestedInput {
update: PictureUpdateDataInput;
create: PictureCreateInput;
}
export interface PoliciesUpdateInput {
checkInStartTime?: Float;
checkInEndTime?: Float;
checkoutTime?: Float;
place?: PlaceUpdateOneRequiredWithoutPoliciesInput;
}
export interface CityUpdateOneRequiredWithoutNeighbourhoodsInput {
create?: CityCreateWithoutNeighbourhoodsInput;
update?: CityUpdateWithoutNeighbourhoodsDataInput;
upsert?: CityUpsertWithoutNeighbourhoodsInput;
connect?: CityWhereUniqueInput;
}
export interface PlaceCreateOneWithoutPoliciesInput {
create?: PlaceCreateWithoutPoliciesInput;
connect?: PlaceWhereUniqueInput;
}
export interface CityUpdateWithoutNeighbourhoodsDataInput {
name?: String;
}
export interface PoliciesCreateInput {
checkInStartTime: Float;
checkInEndTime: Float;
checkoutTime: Float;
place: PlaceCreateOneWithoutPoliciesInput;
}
export interface CityUpsertWithoutNeighbourhoodsInput {
update: CityUpdateWithoutNeighbourhoodsDataInput;
create: CityCreateWithoutNeighbourhoodsInput;
}
export interface PlaceUpdateInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface NeighbourhoodUpsertWithoutLocationsInput {
update: NeighbourhoodUpdateWithoutLocationsDataInput;
create: NeighbourhoodCreateWithoutLocationsInput;
}
export interface PlaceWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
name?: String;
name_not?: String;
name_in?: String[] | String;
name_not_in?: String[] | String;
name_lt?: String;
name_lte?: String;
name_gt?: String;
name_gte?: String;
name_contains?: String;
name_not_contains?: String;
name_starts_with?: String;
name_not_starts_with?: String;
name_ends_with?: String;
name_not_ends_with?: String;
size?: PLACE_SIZES;
size_not?: PLACE_SIZES;
size_in?: PLACE_SIZES[] | PLACE_SIZES;
size_not_in?: PLACE_SIZES[] | PLACE_SIZES;
shortDescription?: String;
shortDescription_not?: String;
shortDescription_in?: String[] | String;
shortDescription_not_in?: String[] | String;
shortDescription_lt?: String;
shortDescription_lte?: String;
shortDescription_gt?: String;
shortDescription_gte?: String;
shortDescription_contains?: String;
shortDescription_not_contains?: String;
shortDescription_starts_with?: String;
shortDescription_not_starts_with?: String;
shortDescription_ends_with?: String;
shortDescription_not_ends_with?: String;
description?: String;
description_not?: String;
description_in?: String[] | String;
description_not_in?: String[] | String;
description_lt?: String;
description_lte?: String;
description_gt?: String;
description_gte?: String;
description_contains?: String;
description_not_contains?: String;
description_starts_with?: String;
description_not_starts_with?: String;
description_ends_with?: String;
description_not_ends_with?: String;
slug?: String;
slug_not?: String;
slug_in?: String[] | String;
slug_not_in?: String[] | String;
slug_lt?: String;
slug_lte?: String;
slug_gt?: String;
slug_gte?: String;
slug_contains?: String;
slug_not_contains?: String;
slug_starts_with?: String;
slug_not_starts_with?: String;
slug_ends_with?: String;
slug_not_ends_with?: String;
maxGuests?: Int;
maxGuests_not?: Int;
maxGuests_in?: Int[] | Int;
maxGuests_not_in?: Int[] | Int;
maxGuests_lt?: Int;
maxGuests_lte?: Int;
maxGuests_gt?: Int;
maxGuests_gte?: Int;
numBedrooms?: Int;
numBedrooms_not?: Int;
numBedrooms_in?: Int[] | Int;
numBedrooms_not_in?: Int[] | Int;
numBedrooms_lt?: Int;
numBedrooms_lte?: Int;
numBedrooms_gt?: Int;
numBedrooms_gte?: Int;
numBeds?: Int;
numBeds_not?: Int;
numBeds_in?: Int[] | Int;
numBeds_not_in?: Int[] | Int;
numBeds_lt?: Int;
numBeds_lte?: Int;
numBeds_gt?: Int;
numBeds_gte?: Int;
numBaths?: Int;
numBaths_not?: Int;
numBaths_in?: Int[] | Int;
numBaths_not_in?: Int[] | Int;
numBaths_lt?: Int;
numBaths_lte?: Int;
numBaths_gt?: Int;
numBaths_gte?: Int;
reviews_every?: ReviewWhereInput;
reviews_some?: ReviewWhereInput;
reviews_none?: ReviewWhereInput;
amenities?: AmenitiesWhereInput;
host?: UserWhereInput;
pricing?: PricingWhereInput;
location?: LocationWhereInput;
views?: ViewsWhereInput;
guestRequirements?: GuestRequirementsWhereInput;
policies?: PoliciesWhereInput;
houseRules?: HouseRulesWhereInput;
bookings_every?: BookingWhereInput;
bookings_some?: BookingWhereInput;
bookings_none?: BookingWhereInput;
pictures_every?: PictureWhereInput;
pictures_some?: PictureWhereInput;
pictures_none?: PictureWhereInput;
popularity?: Int;
popularity_not?: Int;
popularity_in?: Int[] | Int;
popularity_not_in?: Int[] | Int;
popularity_lt?: Int;
popularity_lte?: Int;
popularity_gt?: Int;
popularity_gte?: Int;
AND?: PlaceWhereInput[] | PlaceWhereInput;
OR?: PlaceWhereInput[] | PlaceWhereInput;
NOT?: PlaceWhereInput[] | PlaceWhereInput;
}
export interface UserUpdateOneWithoutLocationInput {
create?: UserCreateWithoutLocationInput;
update?: UserUpdateWithoutLocationDataInput;
upsert?: UserUpsertWithoutLocationInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: UserWhereUniqueInput;
}
export interface PictureUpdateManyMutationInput {
url?: String;
}
export interface UserUpdateWithoutLocationDataInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceUpdateManyWithoutHostInput;
bookings?: BookingUpdateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountUpdateManyWithoutUserInput;
sentMessages?: MessageUpdateManyWithoutFromInput;
receivedMessages?: MessageUpdateManyWithoutToInput;
notifications?: NotificationUpdateManyWithoutUserInput;
profilePicture?: PictureUpdateOneInput;
hostingExperiences?: ExperienceUpdateManyWithoutHostInput;
}
export type PictureWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface BookingUpdateManyWithoutBookeeInput {
create?: BookingCreateWithoutBookeeInput[] | BookingCreateWithoutBookeeInput;
delete?: BookingWhereUniqueInput[] | BookingWhereUniqueInput;
connect?: BookingWhereUniqueInput[] | BookingWhereUniqueInput;
disconnect?: BookingWhereUniqueInput[] | BookingWhereUniqueInput;
update?:
| BookingUpdateWithWhereUniqueWithoutBookeeInput[]
| BookingUpdateWithWhereUniqueWithoutBookeeInput;
upsert?:
| BookingUpsertWithWhereUniqueWithoutBookeeInput[]
| BookingUpsertWithWhereUniqueWithoutBookeeInput;
}
export interface PaymentAccountUpsertWithoutPaypalInput {
update: PaymentAccountUpdateWithoutPaypalDataInput;
create: PaymentAccountCreateWithoutPaypalInput;
}
export interface BookingUpdateWithWhereUniqueWithoutBookeeInput {
where: BookingWhereUniqueInput;
data: BookingUpdateWithoutBookeeDataInput;
}
export type PlaceWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface BookingUpdateWithoutBookeeDataInput {
place?: PlaceUpdateOneRequiredWithoutBookingsInput;
startDate?: DateTimeInput;
endDate?: DateTimeInput;
payment?: PaymentUpdateOneWithoutBookingInput;
}
export interface PaypalInformationUpdateInput {
email?: String;
paymentAccount?: PaymentAccountUpdateOneRequiredWithoutPaypalInput;
}
export interface PlaceUpdateOneRequiredWithoutBookingsInput {
create?: PlaceCreateWithoutBookingsInput;
update?: PlaceUpdateWithoutBookingsDataInput;
upsert?: PlaceUpsertWithoutBookingsInput;
connect?: PlaceWhereUniqueInput;
}
export type PoliciesWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface LocationUpdateManyMutationInput {
lat?: Float;
lng?: Float;
address?: String;
directions?: String;
}
export interface PaypalInformationCreateInput {
email: String;
paymentAccount: PaymentAccountCreateOneWithoutPaypalInput;
}
export interface UserUpdateOneRequiredWithoutOwnedPlacesInput {
create?: UserCreateWithoutOwnedPlacesInput;
update?: UserUpdateWithoutOwnedPlacesDataInput;
upsert?: UserUpsertWithoutOwnedPlacesInput;
connect?: UserWhereUniqueInput;
}
export interface PaymentAccountUpdateInput {
type?: PAYMENT_PROVIDER;
user?: UserUpdateOneRequiredWithoutPaymentAccountInput;
payments?: PaymentUpdateManyWithoutPaymentMethodInput;
paypal?: PaypalInformationUpdateOneWithoutPaymentAccountInput;
creditcard?: CreditCardInformationUpdateOneWithoutPaymentAccountInput;
}
export interface UserUpdateWithoutOwnedPlacesDataInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
location?: LocationUpdateOneWithoutUserInput;
bookings?: BookingUpdateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountUpdateManyWithoutUserInput;
sentMessages?: MessageUpdateManyWithoutFromInput;
receivedMessages?: MessageUpdateManyWithoutToInput;
notifications?: NotificationUpdateManyWithoutUserInput;
profilePicture?: PictureUpdateOneInput;
hostingExperiences?: ExperienceUpdateManyWithoutHostInput;
}
export interface ReviewWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
text?: String;
text_not?: String;
text_in?: String[] | String;
text_not_in?: String[] | String;
text_lt?: String;
text_lte?: String;
text_gt?: String;
text_gte?: String;
text_contains?: String;
text_not_contains?: String;
text_starts_with?: String;
text_not_starts_with?: String;
text_ends_with?: String;
text_not_ends_with?: String;
stars?: Int;
stars_not?: Int;
stars_in?: Int[] | Int;
stars_not_in?: Int[] | Int;
stars_lt?: Int;
stars_lte?: Int;
stars_gt?: Int;
stars_gte?: Int;
accuracy?: Int;
accuracy_not?: Int;
accuracy_in?: Int[] | Int;
accuracy_not_in?: Int[] | Int;
accuracy_lt?: Int;
accuracy_lte?: Int;
accuracy_gt?: Int;
accuracy_gte?: Int;
location?: Int;
location_not?: Int;
location_in?: Int[] | Int;
location_not_in?: Int[] | Int;
location_lt?: Int;
location_lte?: Int;
location_gt?: Int;
location_gte?: Int;
checkIn?: Int;
checkIn_not?: Int;
checkIn_in?: Int[] | Int;
checkIn_not_in?: Int[] | Int;
checkIn_lt?: Int;
checkIn_lte?: Int;
checkIn_gt?: Int;
checkIn_gte?: Int;
value?: Int;
value_not?: Int;
value_in?: Int[] | Int;
value_not_in?: Int[] | Int;
value_lt?: Int;
value_lte?: Int;
value_gt?: Int;
value_gte?: Int;
cleanliness?: Int;
cleanliness_not?: Int;
cleanliness_in?: Int[] | Int;
cleanliness_not_in?: Int[] | Int;
cleanliness_lt?: Int;
cleanliness_lte?: Int;
cleanliness_gt?: Int;
cleanliness_gte?: Int;
communication?: Int;
communication_not?: Int;
communication_in?: Int[] | Int;
communication_not_in?: Int[] | Int;
communication_lt?: Int;
communication_lte?: Int;
communication_gt?: Int;
communication_gte?: Int;
place?: PlaceWhereInput;
experience?: ExperienceWhereInput;
AND?: ReviewWhereInput[] | ReviewWhereInput;
OR?: ReviewWhereInput[] | ReviewWhereInput;
NOT?: ReviewWhereInput[] | ReviewWhereInput;
}
export interface LocationUpdateOneWithoutUserInput {
create?: LocationCreateWithoutUserInput;
update?: LocationUpdateWithoutUserDataInput;
upsert?: LocationUpsertWithoutUserInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: LocationWhereUniqueInput;
}
export interface PaymentUpdateManyMutationInput {
serviceFee?: Float;
placePrice?: Float;
totalPrice?: Float;
}
export interface LocationUpdateWithoutUserDataInput {
lat?: Float;
lng?: Float;
neighbourHood?: NeighbourhoodUpdateOneWithoutLocationsInput;
place?: PlaceUpdateOneWithoutLocationInput;
address?: String;
directions?: String;
experience?: ExperienceUpdateOneWithoutLocationInput;
restaurant?: RestaurantUpdateOneWithoutLocationInput;
}
export type RestaurantWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface PlaceUpdateOneWithoutLocationInput {
create?: PlaceCreateWithoutLocationInput;
update?: PlaceUpdateWithoutLocationDataInput;
upsert?: PlaceUpsertWithoutLocationInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: PlaceWhereUniqueInput;
}
export interface NotificationUpdateManyMutationInput {
type?: NOTIFICATION_TYPE;
link?: String;
readDate?: DateTimeInput;
}
export interface PlaceUpdateWithoutLocationDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface UserUpdateWithoutNotificationsDataInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceUpdateManyWithoutHostInput;
location?: LocationUpdateOneWithoutUserInput;
bookings?: BookingUpdateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountUpdateManyWithoutUserInput;
sentMessages?: MessageUpdateManyWithoutFromInput;
receivedMessages?: MessageUpdateManyWithoutToInput;
profilePicture?: PictureUpdateOneInput;
hostingExperiences?: ExperienceUpdateManyWithoutHostInput;
}
export interface ViewsUpdateOneRequiredWithoutPlaceInput {
create?: ViewsCreateWithoutPlaceInput;
update?: ViewsUpdateWithoutPlaceDataInput;
upsert?: ViewsUpsertWithoutPlaceInput;
connect?: ViewsWhereUniqueInput;
}
export interface UserUpdateOneRequiredWithoutNotificationsInput {
create?: UserCreateWithoutNotificationsInput;
update?: UserUpdateWithoutNotificationsDataInput;
upsert?: UserUpsertWithoutNotificationsInput;
connect?: UserWhereUniqueInput;
}
export interface ViewsUpdateWithoutPlaceDataInput {
lastWeek?: Int;
}
export interface UserCreateWithoutNotificationsInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceCreateManyWithoutHostInput;
location?: LocationCreateOneWithoutUserInput;
bookings?: BookingCreateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountCreateManyWithoutUserInput;
sentMessages?: MessageCreateManyWithoutFromInput;
receivedMessages?: MessageCreateManyWithoutToInput;
profilePicture?: PictureCreateOneInput;
hostingExperiences?: ExperienceCreateManyWithoutHostInput;
}
export interface ViewsUpsertWithoutPlaceInput {
update: ViewsUpdateWithoutPlaceDataInput;
create: ViewsCreateWithoutPlaceInput;
}
export interface UserCreateOneWithoutNotificationsInput {
create?: UserCreateWithoutNotificationsInput;
connect?: UserWhereUniqueInput;
}
export interface GuestRequirementsUpdateOneWithoutPlaceInput {
create?: GuestRequirementsCreateWithoutPlaceInput;
update?: GuestRequirementsUpdateWithoutPlaceDataInput;
upsert?: GuestRequirementsUpsertWithoutPlaceInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: GuestRequirementsWhereUniqueInput;
}
export interface NeighbourhoodUpdateManyMutationInput {
name?: String;
slug?: String;
featured?: Boolean;
popularity?: Int;
}
export interface GuestRequirementsUpdateWithoutPlaceDataInput {
govIssuedId?: Boolean;
recommendationsFromOtherHosts?: Boolean;
guestTripInformation?: Boolean;
}
export type ViewsWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface GuestRequirementsUpsertWithoutPlaceInput {
update: GuestRequirementsUpdateWithoutPlaceDataInput;
create: GuestRequirementsCreateWithoutPlaceInput;
}
export interface MessageUpdateManyMutationInput {
deliveredAt?: DateTimeInput;
readAt?: DateTimeInput;
}
export interface PoliciesUpdateOneWithoutPlaceInput {
create?: PoliciesCreateWithoutPlaceInput;
update?: PoliciesUpdateWithoutPlaceDataInput;
upsert?: PoliciesUpsertWithoutPlaceInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: PoliciesWhereUniqueInput;
}
export interface MessageCreateInput {
from: UserCreateOneWithoutSentMessagesInput;
to: UserCreateOneWithoutReceivedMessagesInput;
deliveredAt: DateTimeInput;
readAt: DateTimeInput;
}
export interface PoliciesUpdateWithoutPlaceDataInput {
checkInStartTime?: Float;
checkInEndTime?: Float;
checkoutTime?: Float;
}
export interface AmenitiesCreateInput {
place: PlaceCreateOneWithoutAmenitiesInput;
elevator?: Boolean;
petsAllowed?: Boolean;
internet?: Boolean;
kitchen?: Boolean;
wirelessInternet?: Boolean;
familyKidFriendly?: Boolean;
freeParkingOnPremises?: Boolean;
hotTub?: Boolean;
pool?: Boolean;
smokingAllowed?: Boolean;
wheelchairAccessible?: Boolean;
breakfast?: Boolean;
cableTv?: Boolean;
suitableForEvents?: Boolean;
dryer?: Boolean;
washer?: Boolean;
indoorFireplace?: Boolean;
tv?: Boolean;
heating?: Boolean;
hangers?: Boolean;
iron?: Boolean;
hairDryer?: Boolean;
doorman?: Boolean;
paidParkingOffPremises?: Boolean;
freeParkingOnStreet?: Boolean;
gym?: Boolean;
airConditioning?: Boolean;
shampoo?: Boolean;
essentials?: Boolean;
laptopFriendlyWorkspace?: Boolean;
privateEntrance?: Boolean;
buzzerWirelessIntercom?: Boolean;
babyBath?: Boolean;
babyMonitor?: Boolean;
babysitterRecommendations?: Boolean;
bathtub?: Boolean;
changingTable?: Boolean;
childrensBooksAndToys?: Boolean;
childrensDinnerware?: Boolean;
crib?: Boolean;
}
export interface NotificationWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
type?: NOTIFICATION_TYPE;
type_not?: NOTIFICATION_TYPE;
type_in?: NOTIFICATION_TYPE[] | NOTIFICATION_TYPE;
type_not_in?: NOTIFICATION_TYPE[] | NOTIFICATION_TYPE;
user?: UserWhereInput;
link?: String;
link_not?: String;
link_in?: String[] | String;
link_not_in?: String[] | String;
link_lt?: String;
link_lte?: String;
link_gt?: String;
link_gte?: String;
link_contains?: String;
link_not_contains?: String;
link_starts_with?: String;
link_not_starts_with?: String;
link_ends_with?: String;
link_not_ends_with?: String;
readDate?: DateTimeInput;
readDate_not?: DateTimeInput;
readDate_in?: DateTimeInput[] | DateTimeInput;
readDate_not_in?: DateTimeInput[] | DateTimeInput;
readDate_lt?: DateTimeInput;
readDate_lte?: DateTimeInput;
readDate_gt?: DateTimeInput;
readDate_gte?: DateTimeInput;
AND?: NotificationWhereInput[] | NotificationWhereInput;
OR?: NotificationWhereInput[] | NotificationWhereInput;
NOT?: NotificationWhereInput[] | NotificationWhereInput;
}
export interface PlaceCreateWithoutAmenitiesInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
pricing: PricingCreateOneWithoutPlaceInput;
location: LocationCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface GuestRequirementsWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
govIssuedId?: Boolean;
govIssuedId_not?: Boolean;
recommendationsFromOtherHosts?: Boolean;
recommendationsFromOtherHosts_not?: Boolean;
guestTripInformation?: Boolean;
guestTripInformation_not?: Boolean;
place?: PlaceWhereInput;
AND?: GuestRequirementsWhereInput[] | GuestRequirementsWhereInput;
OR?: GuestRequirementsWhereInput[] | GuestRequirementsWhereInput;
NOT?: GuestRequirementsWhereInput[] | GuestRequirementsWhereInput;
}
export interface ReviewCreateWithoutPlaceInput {
text: String;
stars: Int;
accuracy: Int;
location: Int;
checkIn: Int;
value: Int;
cleanliness: Int;
communication: Int;
experience?: ExperienceCreateOneWithoutReviewsInput;
}
export interface HouseRulesWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
updatedAt?: DateTimeInput;
updatedAt_not?: DateTimeInput;
updatedAt_in?: DateTimeInput[] | DateTimeInput;
updatedAt_not_in?: DateTimeInput[] | DateTimeInput;
updatedAt_lt?: DateTimeInput;
updatedAt_lte?: DateTimeInput;
updatedAt_gt?: DateTimeInput;
updatedAt_gte?: DateTimeInput;
suitableForChildren?: Boolean;
suitableForChildren_not?: Boolean;
suitableForInfants?: Boolean;
suitableForInfants_not?: Boolean;
petsAllowed?: Boolean;
petsAllowed_not?: Boolean;
smokingAllowed?: Boolean;
smokingAllowed_not?: Boolean;
partiesAndEventsAllowed?: Boolean;
partiesAndEventsAllowed_not?: Boolean;
additionalRules?: String;
additionalRules_not?: String;
additionalRules_in?: String[] | String;
additionalRules_not_in?: String[] | String;
additionalRules_lt?: String;
additionalRules_lte?: String;
additionalRules_gt?: String;
additionalRules_gte?: String;
additionalRules_contains?: String;
additionalRules_not_contains?: String;
additionalRules_starts_with?: String;
additionalRules_not_starts_with?: String;
additionalRules_ends_with?: String;
additionalRules_not_ends_with?: String;
AND?: HouseRulesWhereInput[] | HouseRulesWhereInput;
OR?: HouseRulesWhereInput[] | HouseRulesWhereInput;
NOT?: HouseRulesWhereInput[] | HouseRulesWhereInput;
}
export interface ExperienceCreateWithoutReviewsInput {
category?: ExperienceCategoryCreateOneWithoutExperienceInput;
title: String;
host: UserCreateOneWithoutHostingExperiencesInput;
location: LocationCreateOneWithoutExperienceInput;
pricePerPerson: Int;
preview: PictureCreateOneInput;
popularity: Int;
}
export interface LocationUpdateInput {
lat?: Float;
lng?: Float;
neighbourHood?: NeighbourhoodUpdateOneWithoutLocationsInput;
user?: UserUpdateOneWithoutLocationInput;
place?: PlaceUpdateOneWithoutLocationInput;
address?: String;
directions?: String;
experience?: ExperienceUpdateOneWithoutLocationInput;
restaurant?: RestaurantUpdateOneWithoutLocationInput;
}
export interface ExperienceCategoryCreateWithoutExperienceInput {
mainColor?: String;
name: String;
}
export interface LocationCreateInput {
lat: Float;
lng: Float;
neighbourHood?: NeighbourhoodCreateOneWithoutLocationsInput;
user?: UserCreateOneWithoutLocationInput;
place?: PlaceCreateOneWithoutLocationInput;
address: String;
directions: String;
experience?: ExperienceCreateOneWithoutLocationInput;
restaurant?: RestaurantCreateOneWithoutLocationInput;
}
export interface UserCreateWithoutHostingExperiencesInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceCreateManyWithoutHostInput;
location?: LocationCreateOneWithoutUserInput;
bookings?: BookingCreateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountCreateManyWithoutUserInput;
sentMessages?: MessageCreateManyWithoutFromInput;
receivedMessages?: MessageCreateManyWithoutToInput;
notifications?: NotificationCreateManyWithoutUserInput;
profilePicture?: PictureCreateOneInput;
}
export interface BookingUpdateWithWhereUniqueWithoutPlaceInput {
where: BookingWhereUniqueInput;
data: BookingUpdateWithoutPlaceDataInput;
}
export interface PlaceCreateWithoutHostInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
amenities: AmenitiesCreateOneWithoutPlaceInput;
pricing: PricingCreateOneWithoutPlaceInput;
location: LocationCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface BookingUpdateWithoutPlaceDataInput {
bookee?: UserUpdateOneRequiredWithoutBookingsInput;
startDate?: DateTimeInput;
endDate?: DateTimeInput;
payment?: PaymentUpdateOneWithoutBookingInput;
}
export interface AmenitiesCreateWithoutPlaceInput {
elevator?: Boolean;
petsAllowed?: Boolean;
internet?: Boolean;
kitchen?: Boolean;
wirelessInternet?: Boolean;
familyKidFriendly?: Boolean;
freeParkingOnPremises?: Boolean;
hotTub?: Boolean;
pool?: Boolean;
smokingAllowed?: Boolean;
wheelchairAccessible?: Boolean;
breakfast?: Boolean;
cableTv?: Boolean;
suitableForEvents?: Boolean;
dryer?: Boolean;
washer?: Boolean;
indoorFireplace?: Boolean;
tv?: Boolean;
heating?: Boolean;
hangers?: Boolean;
iron?: Boolean;
hairDryer?: Boolean;
doorman?: Boolean;
paidParkingOffPremises?: Boolean;
freeParkingOnStreet?: Boolean;
gym?: Boolean;
airConditioning?: Boolean;
shampoo?: Boolean;
essentials?: Boolean;
laptopFriendlyWorkspace?: Boolean;
privateEntrance?: Boolean;
buzzerWirelessIntercom?: Boolean;
babyBath?: Boolean;
babyMonitor?: Boolean;
babysitterRecommendations?: Boolean;
bathtub?: Boolean;
changingTable?: Boolean;
childrensBooksAndToys?: Boolean;
childrensDinnerware?: Boolean;
crib?: Boolean;
}
export interface UserUpdateOneRequiredWithoutBookingsInput {
create?: UserCreateWithoutBookingsInput;
update?: UserUpdateWithoutBookingsDataInput;
upsert?: UserUpsertWithoutBookingsInput;
connect?: UserWhereUniqueInput;
}
export interface PricingCreateWithoutPlaceInput {
monthlyDiscount?: Int;
weeklyDiscount?: Int;
perNight: Int;
smartPricing?: Boolean;
basePrice: Int;
averageWeekly: Int;
averageMonthly: Int;
cleaningFee?: Int;
securityDeposit?: Int;
extraGuests?: Int;
weekendPricing?: Int;
currency?: CURRENCY;
}
export interface UserUpdateWithoutBookingsDataInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceUpdateManyWithoutHostInput;
location?: LocationUpdateOneWithoutUserInput;
paymentAccount?: PaymentAccountUpdateManyWithoutUserInput;
sentMessages?: MessageUpdateManyWithoutFromInput;
receivedMessages?: MessageUpdateManyWithoutToInput;
notifications?: NotificationUpdateManyWithoutUserInput;
profilePicture?: PictureUpdateOneInput;
hostingExperiences?: ExperienceUpdateManyWithoutHostInput;
}
export interface LocationCreateWithoutPlaceInput {
lat: Float;
lng: Float;
neighbourHood?: NeighbourhoodCreateOneWithoutLocationsInput;
user?: UserCreateOneWithoutLocationInput;
address: String;
directions: String;
experience?: ExperienceCreateOneWithoutLocationInput;
restaurant?: RestaurantCreateOneWithoutLocationInput;
}
export interface PaymentAccountUpdateManyWithoutUserInput {
create?:
| PaymentAccountCreateWithoutUserInput[]
| PaymentAccountCreateWithoutUserInput;
delete?: PaymentAccountWhereUniqueInput[] | PaymentAccountWhereUniqueInput;
connect?: PaymentAccountWhereUniqueInput[] | PaymentAccountWhereUniqueInput;
disconnect?:
| PaymentAccountWhereUniqueInput[]
| PaymentAccountWhereUniqueInput;
update?:
| PaymentAccountUpdateWithWhereUniqueWithoutUserInput[]
| PaymentAccountUpdateWithWhereUniqueWithoutUserInput;
upsert?:
| PaymentAccountUpsertWithWhereUniqueWithoutUserInput[]
| PaymentAccountUpsertWithWhereUniqueWithoutUserInput;
}
export interface NeighbourhoodCreateWithoutLocationsInput {
name: String;
slug: String;
homePreview?: PictureCreateOneInput;
city: CityCreateOneWithoutNeighbourhoodsInput;
featured: Boolean;
popularity: Int;
}
export interface PaymentAccountUpdateWithWhereUniqueWithoutUserInput {
where: PaymentAccountWhereUniqueInput;
data: PaymentAccountUpdateWithoutUserDataInput;
}
export interface PictureCreateInput {
url: String;
}
export interface PaymentAccountUpdateWithoutUserDataInput {
type?: PAYMENT_PROVIDER;
payments?: PaymentUpdateManyWithoutPaymentMethodInput;
paypal?: PaypalInformationUpdateOneWithoutPaymentAccountInput;
creditcard?: CreditCardInformationUpdateOneWithoutPaymentAccountInput;
}
export interface CityCreateWithoutNeighbourhoodsInput {
name: String;
}
export interface PaymentUpdateManyWithoutPaymentMethodInput {
create?:
| PaymentCreateWithoutPaymentMethodInput[]
| PaymentCreateWithoutPaymentMethodInput;
delete?: PaymentWhereUniqueInput[] | PaymentWhereUniqueInput;
connect?: PaymentWhereUniqueInput[] | PaymentWhereUniqueInput;
disconnect?: PaymentWhereUniqueInput[] | PaymentWhereUniqueInput;
update?:
| PaymentUpdateWithWhereUniqueWithoutPaymentMethodInput[]
| PaymentUpdateWithWhereUniqueWithoutPaymentMethodInput;
upsert?:
| PaymentUpsertWithWhereUniqueWithoutPaymentMethodInput[]
| PaymentUpsertWithWhereUniqueWithoutPaymentMethodInput;
}
export interface UserCreateWithoutLocationInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceCreateManyWithoutHostInput;
bookings?: BookingCreateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountCreateManyWithoutUserInput;
sentMessages?: MessageCreateManyWithoutFromInput;
receivedMessages?: MessageCreateManyWithoutToInput;
notifications?: NotificationCreateManyWithoutUserInput;
profilePicture?: PictureCreateOneInput;
hostingExperiences?: ExperienceCreateManyWithoutHostInput;
}
export interface PaymentUpdateWithWhereUniqueWithoutPaymentMethodInput {
where: PaymentWhereUniqueInput;
data: PaymentUpdateWithoutPaymentMethodDataInput;
}
export interface BookingCreateWithoutBookeeInput {
place: PlaceCreateOneWithoutBookingsInput;
startDate: DateTimeInput;
endDate: DateTimeInput;
payment?: PaymentCreateOneWithoutBookingInput;
}
export interface PaymentUpdateWithoutPaymentMethodDataInput {
serviceFee?: Float;
placePrice?: Float;
totalPrice?: Float;
booking?: BookingUpdateOneRequiredWithoutPaymentInput;
}
export interface PlaceCreateWithoutBookingsInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
amenities: AmenitiesCreateOneWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
pricing: PricingCreateOneWithoutPlaceInput;
location: LocationCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface BookingUpdateOneRequiredWithoutPaymentInput {
create?: BookingCreateWithoutPaymentInput;
update?: BookingUpdateWithoutPaymentDataInput;
upsert?: BookingUpsertWithoutPaymentInput;
connect?: BookingWhereUniqueInput;
}
export interface UserCreateWithoutOwnedPlacesInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
location?: LocationCreateOneWithoutUserInput;
bookings?: BookingCreateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountCreateManyWithoutUserInput;
sentMessages?: MessageCreateManyWithoutFromInput;
receivedMessages?: MessageCreateManyWithoutToInput;
notifications?: NotificationCreateManyWithoutUserInput;
profilePicture?: PictureCreateOneInput;
hostingExperiences?: ExperienceCreateManyWithoutHostInput;
}
export interface BookingUpdateWithoutPaymentDataInput {
bookee?: UserUpdateOneRequiredWithoutBookingsInput;
place?: PlaceUpdateOneRequiredWithoutBookingsInput;
startDate?: DateTimeInput;
endDate?: DateTimeInput;
}
export interface LocationCreateWithoutUserInput {
lat: Float;
lng: Float;
neighbourHood?: NeighbourhoodCreateOneWithoutLocationsInput;
place?: PlaceCreateOneWithoutLocationInput;
address: String;
directions: String;
experience?: ExperienceCreateOneWithoutLocationInput;
restaurant?: RestaurantCreateOneWithoutLocationInput;
}
export interface BookingUpsertWithoutPaymentInput {
update: BookingUpdateWithoutPaymentDataInput;
create: BookingCreateWithoutPaymentInput;
}
export interface PlaceCreateWithoutLocationInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
amenities: AmenitiesCreateOneWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
pricing: PricingCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface PaymentUpsertWithWhereUniqueWithoutPaymentMethodInput {
where: PaymentWhereUniqueInput;
update: PaymentUpdateWithoutPaymentMethodDataInput;
create: PaymentCreateWithoutPaymentMethodInput;
}
export interface ViewsCreateWithoutPlaceInput {
lastWeek: Int;
}
export interface PaypalInformationUpdateOneWithoutPaymentAccountInput {
create?: PaypalInformationCreateWithoutPaymentAccountInput;
update?: PaypalInformationUpdateWithoutPaymentAccountDataInput;
upsert?: PaypalInformationUpsertWithoutPaymentAccountInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: PaypalInformationWhereUniqueInput;
}
export interface GuestRequirementsCreateWithoutPlaceInput {
govIssuedId?: Boolean;
recommendationsFromOtherHosts?: Boolean;
guestTripInformation?: Boolean;
}
export interface PaypalInformationUpdateWithoutPaymentAccountDataInput {
email?: String;
}
export interface PoliciesCreateWithoutPlaceInput {
checkInStartTime: Float;
checkInEndTime: Float;
checkoutTime: Float;
}
export interface PaypalInformationUpsertWithoutPaymentAccountInput {
update: PaypalInformationUpdateWithoutPaymentAccountDataInput;
create: PaypalInformationCreateWithoutPaymentAccountInput;
}
export interface HouseRulesCreateInput {
suitableForChildren?: Boolean;
suitableForInfants?: Boolean;
petsAllowed?: Boolean;
smokingAllowed?: Boolean;
partiesAndEventsAllowed?: Boolean;
additionalRules?: String;
}
export interface CreditCardInformationUpdateOneWithoutPaymentAccountInput {
create?: CreditCardInformationCreateWithoutPaymentAccountInput;
update?: CreditCardInformationUpdateWithoutPaymentAccountDataInput;
upsert?: CreditCardInformationUpsertWithoutPaymentAccountInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: CreditCardInformationWhereUniqueInput;
}
export interface BookingCreateWithoutPlaceInput {
bookee: UserCreateOneWithoutBookingsInput;
startDate: DateTimeInput;
endDate: DateTimeInput;
payment?: PaymentCreateOneWithoutBookingInput;
}
export interface CreditCardInformationUpdateWithoutPaymentAccountDataInput {
cardNumber?: String;
expiresOnMonth?: Int;
expiresOnYear?: Int;
securityCode?: String;
firstName?: String;
lastName?: String;
postalCode?: String;
country?: String;
}
export interface UserCreateWithoutBookingsInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceCreateManyWithoutHostInput;
location?: LocationCreateOneWithoutUserInput;
paymentAccount?: PaymentAccountCreateManyWithoutUserInput;
sentMessages?: MessageCreateManyWithoutFromInput;
receivedMessages?: MessageCreateManyWithoutToInput;
notifications?: NotificationCreateManyWithoutUserInput;
profilePicture?: PictureCreateOneInput;
hostingExperiences?: ExperienceCreateManyWithoutHostInput;
}
export interface CreditCardInformationUpsertWithoutPaymentAccountInput {
update: CreditCardInformationUpdateWithoutPaymentAccountDataInput;
create: CreditCardInformationCreateWithoutPaymentAccountInput;
}
export interface PaymentAccountCreateWithoutUserInput {
type?: PAYMENT_PROVIDER;
payments?: PaymentCreateManyWithoutPaymentMethodInput;
paypal?: PaypalInformationCreateOneWithoutPaymentAccountInput;
creditcard?: CreditCardInformationCreateOneWithoutPaymentAccountInput;
}
export interface PaymentAccountUpsertWithWhereUniqueWithoutUserInput {
where: PaymentAccountWhereUniqueInput;
update: PaymentAccountUpdateWithoutUserDataInput;
create: PaymentAccountCreateWithoutUserInput;
}
export interface PaymentCreateWithoutPaymentMethodInput {
serviceFee: Float;
placePrice: Float;
totalPrice: Float;
booking: BookingCreateOneWithoutPaymentInput;
}
export interface MessageUpdateManyWithoutFromInput {
create?: MessageCreateWithoutFromInput[] | MessageCreateWithoutFromInput;
delete?: MessageWhereUniqueInput[] | MessageWhereUniqueInput;
connect?: MessageWhereUniqueInput[] | MessageWhereUniqueInput;
disconnect?: MessageWhereUniqueInput[] | MessageWhereUniqueInput;
update?:
| MessageUpdateWithWhereUniqueWithoutFromInput[]
| MessageUpdateWithWhereUniqueWithoutFromInput;
upsert?:
| MessageUpsertWithWhereUniqueWithoutFromInput[]
| MessageUpsertWithWhereUniqueWithoutFromInput;
}
export interface BookingCreateWithoutPaymentInput {
bookee: UserCreateOneWithoutBookingsInput;
place: PlaceCreateOneWithoutBookingsInput;
startDate: DateTimeInput;
endDate: DateTimeInput;
}
export interface MessageUpdateWithWhereUniqueWithoutFromInput {
where: MessageWhereUniqueInput;
data: MessageUpdateWithoutFromDataInput;
}
export interface PaypalInformationCreateWithoutPaymentAccountInput {
email: String;
}
export interface MessageUpdateWithoutFromDataInput {
to?: UserUpdateOneRequiredWithoutReceivedMessagesInput;
deliveredAt?: DateTimeInput;
readAt?: DateTimeInput;
}
export interface CreditCardInformationCreateWithoutPaymentAccountInput {
cardNumber: String;
expiresOnMonth: Int;
expiresOnYear: Int;
securityCode: String;
firstName: String;
lastName: String;
postalCode: String;
country: String;
}
export interface UserUpdateOneRequiredWithoutReceivedMessagesInput {
create?: UserCreateWithoutReceivedMessagesInput;
update?: UserUpdateWithoutReceivedMessagesDataInput;
upsert?: UserUpsertWithoutReceivedMessagesInput;
connect?: UserWhereUniqueInput;
}
export interface MessageCreateWithoutFromInput {
to: UserCreateOneWithoutReceivedMessagesInput;
deliveredAt: DateTimeInput;
readAt: DateTimeInput;
}
export interface UserUpdateWithoutReceivedMessagesDataInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceUpdateManyWithoutHostInput;
location?: LocationUpdateOneWithoutUserInput;
bookings?: BookingUpdateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountUpdateManyWithoutUserInput;
sentMessages?: MessageUpdateManyWithoutFromInput;
notifications?: NotificationUpdateManyWithoutUserInput;
profilePicture?: PictureUpdateOneInput;
hostingExperiences?: ExperienceUpdateManyWithoutHostInput;
}
export interface UserCreateWithoutReceivedMessagesInput {
firstName: String;
lastName: String;
email: String;
password: String;
phone: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceCreateManyWithoutHostInput;
location?: LocationCreateOneWithoutUserInput;
bookings?: BookingCreateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountCreateManyWithoutUserInput;
sentMessages?: MessageCreateManyWithoutFromInput;
notifications?: NotificationCreateManyWithoutUserInput;
profilePicture?: PictureCreateOneInput;
hostingExperiences?: ExperienceCreateManyWithoutHostInput;
}
export interface NotificationUpdateManyWithoutUserInput {
create?:
| NotificationCreateWithoutUserInput[]
| NotificationCreateWithoutUserInput;
delete?: NotificationWhereUniqueInput[] | NotificationWhereUniqueInput;
connect?: NotificationWhereUniqueInput[] | NotificationWhereUniqueInput;
disconnect?: NotificationWhereUniqueInput[] | NotificationWhereUniqueInput;
update?:
| NotificationUpdateWithWhereUniqueWithoutUserInput[]
| NotificationUpdateWithWhereUniqueWithoutUserInput;
upsert?:
| NotificationUpsertWithWhereUniqueWithoutUserInput[]
| NotificationUpsertWithWhereUniqueWithoutUserInput;
}
export interface NotificationCreateWithoutUserInput {
type?: NOTIFICATION_TYPE;
link: String;
readDate: DateTimeInput;
}
export interface NotificationUpdateWithWhereUniqueWithoutUserInput {
where: NotificationWhereUniqueInput;
data: NotificationUpdateWithoutUserDataInput;
}
export interface ExperienceCreateWithoutHostInput {
category?: ExperienceCategoryCreateOneWithoutExperienceInput;
title: String;
location: LocationCreateOneWithoutExperienceInput;
pricePerPerson: Int;
reviews?: ReviewCreateManyWithoutExperienceInput;
preview: PictureCreateOneInput;
popularity: Int;
}
export interface NotificationUpdateWithoutUserDataInput {
type?: NOTIFICATION_TYPE;
link?: String;
readDate?: DateTimeInput;
}
export interface LocationCreateWithoutExperienceInput {
lat: Float;
lng: Float;
neighbourHood?: NeighbourhoodCreateOneWithoutLocationsInput;
user?: UserCreateOneWithoutLocationInput;
place?: PlaceCreateOneWithoutLocationInput;
address: String;
directions: String;
restaurant?: RestaurantCreateOneWithoutLocationInput;
}
export interface NotificationUpsertWithWhereUniqueWithoutUserInput {
where: NotificationWhereUniqueInput;
update: NotificationUpdateWithoutUserDataInput;
create: NotificationCreateWithoutUserInput;
}
export interface RestaurantCreateWithoutLocationInput {
title: String;
avgPricePerPerson: Int;
pictures?: PictureCreateManyInput;
isCurated?: Boolean;
slug: String;
popularity: Int;
}
export interface ExperienceUpdateManyWithoutHostInput {
create?:
| ExperienceCreateWithoutHostInput[]
| ExperienceCreateWithoutHostInput;
delete?: ExperienceWhereUniqueInput[] | ExperienceWhereUniqueInput;
connect?: ExperienceWhereUniqueInput[] | ExperienceWhereUniqueInput;
disconnect?: ExperienceWhereUniqueInput[] | ExperienceWhereUniqueInput;
update?:
| ExperienceUpdateWithWhereUniqueWithoutHostInput[]
| ExperienceUpdateWithWhereUniqueWithoutHostInput;
upsert?:
| ExperienceUpsertWithWhereUniqueWithoutHostInput[]
| ExperienceUpsertWithWhereUniqueWithoutHostInput;
}
export interface ReviewCreateManyWithoutExperienceInput {
create?:
| ReviewCreateWithoutExperienceInput[]
| ReviewCreateWithoutExperienceInput;
connect?: ReviewWhereUniqueInput[] | ReviewWhereUniqueInput;
}
export interface ExperienceUpdateWithWhereUniqueWithoutHostInput {
where: ExperienceWhereUniqueInput;
data: ExperienceUpdateWithoutHostDataInput;
}
export interface UserSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: UserWhereInput;
AND?: UserSubscriptionWhereInput[] | UserSubscriptionWhereInput;
OR?: UserSubscriptionWhereInput[] | UserSubscriptionWhereInput;
NOT?: UserSubscriptionWhereInput[] | UserSubscriptionWhereInput;
}
export interface ExperienceUpdateWithoutHostDataInput {
category?: ExperienceCategoryUpdateOneWithoutExperienceInput;
title?: String;
location?: LocationUpdateOneRequiredWithoutExperienceInput;
pricePerPerson?: Int;
reviews?: ReviewUpdateManyWithoutExperienceInput;
preview?: PictureUpdateOneRequiredInput;
popularity?: Int;
}
export interface PricingSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: PricingWhereInput;
AND?: PricingSubscriptionWhereInput[] | PricingSubscriptionWhereInput;
OR?: PricingSubscriptionWhereInput[] | PricingSubscriptionWhereInput;
NOT?: PricingSubscriptionWhereInput[] | PricingSubscriptionWhereInput;
}
export interface LocationUpdateOneRequiredWithoutExperienceInput {
create?: LocationCreateWithoutExperienceInput;
update?: LocationUpdateWithoutExperienceDataInput;
upsert?: LocationUpsertWithoutExperienceInput;
connect?: LocationWhereUniqueInput;
}
export interface BookingWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
bookee?: UserWhereInput;
place?: PlaceWhereInput;
startDate?: DateTimeInput;
startDate_not?: DateTimeInput;
startDate_in?: DateTimeInput[] | DateTimeInput;
startDate_not_in?: DateTimeInput[] | DateTimeInput;
startDate_lt?: DateTimeInput;
startDate_lte?: DateTimeInput;
startDate_gt?: DateTimeInput;
startDate_gte?: DateTimeInput;
endDate?: DateTimeInput;
endDate_not?: DateTimeInput;
endDate_in?: DateTimeInput[] | DateTimeInput;
endDate_not_in?: DateTimeInput[] | DateTimeInput;
endDate_lt?: DateTimeInput;
endDate_lte?: DateTimeInput;
endDate_gt?: DateTimeInput;
endDate_gte?: DateTimeInput;
payment?: PaymentWhereInput;
AND?: BookingWhereInput[] | BookingWhereInput;
OR?: BookingWhereInput[] | BookingWhereInput;
NOT?: BookingWhereInput[] | BookingWhereInput;
}
export interface LocationUpdateWithoutExperienceDataInput {
lat?: Float;
lng?: Float;
neighbourHood?: NeighbourhoodUpdateOneWithoutLocationsInput;
user?: UserUpdateOneWithoutLocationInput;
place?: PlaceUpdateOneWithoutLocationInput;
address?: String;
directions?: String;
restaurant?: RestaurantUpdateOneWithoutLocationInput;
}
export interface RestaurantWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
title?: String;
title_not?: String;
title_in?: String[] | String;
title_not_in?: String[] | String;
title_lt?: String;
title_lte?: String;
title_gt?: String;
title_gte?: String;
title_contains?: String;
title_not_contains?: String;
title_starts_with?: String;
title_not_starts_with?: String;
title_ends_with?: String;
title_not_ends_with?: String;
avgPricePerPerson?: Int;
avgPricePerPerson_not?: Int;
avgPricePerPerson_in?: Int[] | Int;
avgPricePerPerson_not_in?: Int[] | Int;
avgPricePerPerson_lt?: Int;
avgPricePerPerson_lte?: Int;
avgPricePerPerson_gt?: Int;
avgPricePerPerson_gte?: Int;
pictures_every?: PictureWhereInput;
pictures_some?: PictureWhereInput;
pictures_none?: PictureWhereInput;
location?: LocationWhereInput;
isCurated?: Boolean;
isCurated_not?: Boolean;
slug?: String;
slug_not?: String;
slug_in?: String[] | String;
slug_not_in?: String[] | String;
slug_lt?: String;
slug_lte?: String;
slug_gt?: String;
slug_gte?: String;
slug_contains?: String;
slug_not_contains?: String;
slug_starts_with?: String;
slug_not_starts_with?: String;
slug_ends_with?: String;
slug_not_ends_with?: String;
popularity?: Int;
popularity_not?: Int;
popularity_in?: Int[] | Int;
popularity_not_in?: Int[] | Int;
popularity_lt?: Int;
popularity_lte?: Int;
popularity_gt?: Int;
popularity_gte?: Int;
AND?: RestaurantWhereInput[] | RestaurantWhereInput;
OR?: RestaurantWhereInput[] | RestaurantWhereInput;
NOT?: RestaurantWhereInput[] | RestaurantWhereInput;
}
export interface RestaurantUpdateOneWithoutLocationInput {
create?: RestaurantCreateWithoutLocationInput;
update?: RestaurantUpdateWithoutLocationDataInput;
upsert?: RestaurantUpsertWithoutLocationInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: RestaurantWhereUniqueInput;
}
export interface ExperienceWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
category?: ExperienceCategoryWhereInput;
title?: String;
title_not?: String;
title_in?: String[] | String;
title_not_in?: String[] | String;
title_lt?: String;
title_lte?: String;
title_gt?: String;
title_gte?: String;
title_contains?: String;
title_not_contains?: String;
title_starts_with?: String;
title_not_starts_with?: String;
title_ends_with?: String;
title_not_ends_with?: String;
host?: UserWhereInput;
location?: LocationWhereInput;
pricePerPerson?: Int;
pricePerPerson_not?: Int;
pricePerPerson_in?: Int[] | Int;
pricePerPerson_not_in?: Int[] | Int;
pricePerPerson_lt?: Int;
pricePerPerson_lte?: Int;
pricePerPerson_gt?: Int;
pricePerPerson_gte?: Int;
reviews_every?: ReviewWhereInput;
reviews_some?: ReviewWhereInput;
reviews_none?: ReviewWhereInput;
preview?: PictureWhereInput;
popularity?: Int;
popularity_not?: Int;
popularity_in?: Int[] | Int;
popularity_not_in?: Int[] | Int;
popularity_lt?: Int;
popularity_lte?: Int;
popularity_gt?: Int;
popularity_gte?: Int;
AND?: ExperienceWhereInput[] | ExperienceWhereInput;
OR?: ExperienceWhereInput[] | ExperienceWhereInput;
NOT?: ExperienceWhereInput[] | ExperienceWhereInput;
}
export interface RestaurantUpdateWithoutLocationDataInput {
title?: String;
avgPricePerPerson?: Int;
pictures?: PictureUpdateManyInput;
isCurated?: Boolean;
slug?: String;
popularity?: Int;
}
export interface PictureWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
url?: String;
url_not?: String;
url_in?: String[] | String;
url_not_in?: String[] | String;
url_lt?: String;
url_lte?: String;
url_gt?: String;
url_gte?: String;
url_contains?: String;
url_not_contains?: String;
url_starts_with?: String;
url_not_starts_with?: String;
url_ends_with?: String;
url_not_ends_with?: String;
AND?: PictureWhereInput[] | PictureWhereInput;
OR?: PictureWhereInput[] | PictureWhereInput;
NOT?: PictureWhereInput[] | PictureWhereInput;
}
export interface PictureUpdateManyInput {
create?: PictureCreateInput[] | PictureCreateInput;
update?:
| PictureUpdateWithWhereUniqueNestedInput[]
| PictureUpdateWithWhereUniqueNestedInput;
upsert?:
| PictureUpsertWithWhereUniqueNestedInput[]
| PictureUpsertWithWhereUniqueNestedInput;
delete?: PictureWhereUniqueInput[] | PictureWhereUniqueInput;
connect?: PictureWhereUniqueInput[] | PictureWhereUniqueInput;
disconnect?: PictureWhereUniqueInput[] | PictureWhereUniqueInput;
}
export interface GuestRequirementsSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: GuestRequirementsWhereInput;
AND?:
| GuestRequirementsSubscriptionWhereInput[]
| GuestRequirementsSubscriptionWhereInput;
OR?:
| GuestRequirementsSubscriptionWhereInput[]
| GuestRequirementsSubscriptionWhereInput;
NOT?:
| GuestRequirementsSubscriptionWhereInput[]
| GuestRequirementsSubscriptionWhereInput;
}
export interface PictureUpdateWithWhereUniqueNestedInput {
where: PictureWhereUniqueInput;
data: PictureUpdateDataInput;
}
export interface CreditCardInformationSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: CreditCardInformationWhereInput;
AND?:
| CreditCardInformationSubscriptionWhereInput[]
| CreditCardInformationSubscriptionWhereInput;
OR?:
| CreditCardInformationSubscriptionWhereInput[]
| CreditCardInformationSubscriptionWhereInput;
NOT?:
| CreditCardInformationSubscriptionWhereInput[]
| CreditCardInformationSubscriptionWhereInput;
}
export interface PictureUpsertWithWhereUniqueNestedInput {
where: PictureWhereUniqueInput;
update: PictureUpdateDataInput;
create: PictureCreateInput;
}
export interface AmenitiesSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: AmenitiesWhereInput;
AND?: AmenitiesSubscriptionWhereInput[] | AmenitiesSubscriptionWhereInput;
OR?: AmenitiesSubscriptionWhereInput[] | AmenitiesSubscriptionWhereInput;
NOT?: AmenitiesSubscriptionWhereInput[] | AmenitiesSubscriptionWhereInput;
}
export interface RestaurantUpsertWithoutLocationInput {
update: RestaurantUpdateWithoutLocationDataInput;
create: RestaurantCreateWithoutLocationInput;
}
export interface LocationWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
lat?: Float;
lat_not?: Float;
lat_in?: Float[] | Float;
lat_not_in?: Float[] | Float;
lat_lt?: Float;
lat_lte?: Float;
lat_gt?: Float;
lat_gte?: Float;
lng?: Float;
lng_not?: Float;
lng_in?: Float[] | Float;
lng_not_in?: Float[] | Float;
lng_lt?: Float;
lng_lte?: Float;
lng_gt?: Float;
lng_gte?: Float;
neighbourHood?: NeighbourhoodWhereInput;
user?: UserWhereInput;
place?: PlaceWhereInput;
address?: String;
address_not?: String;
address_in?: String[] | String;
address_not_in?: String[] | String;
address_lt?: String;
address_lte?: String;
address_gt?: String;
address_gte?: String;
address_contains?: String;
address_not_contains?: String;
address_starts_with?: String;
address_not_starts_with?: String;
address_ends_with?: String;
address_not_ends_with?: String;
directions?: String;
directions_not?: String;
directions_in?: String[] | String;
directions_not_in?: String[] | String;
directions_lt?: String;
directions_lte?: String;
directions_gt?: String;
directions_gte?: String;
directions_contains?: String;
directions_not_contains?: String;
directions_starts_with?: String;
directions_not_starts_with?: String;
directions_ends_with?: String;
directions_not_ends_with?: String;
experience?: ExperienceWhereInput;
restaurant?: RestaurantWhereInput;
AND?: LocationWhereInput[] | LocationWhereInput;
OR?: LocationWhereInput[] | LocationWhereInput;
NOT?: LocationWhereInput[] | LocationWhereInput;
}
export interface LocationUpsertWithoutExperienceInput {
update: LocationUpdateWithoutExperienceDataInput;
create: LocationCreateWithoutExperienceInput;
}
export type CreditCardInformationWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface ReviewUpdateManyWithoutExperienceInput {
create?:
| ReviewCreateWithoutExperienceInput[]
| ReviewCreateWithoutExperienceInput;
delete?: ReviewWhereUniqueInput[] | ReviewWhereUniqueInput;
connect?: ReviewWhereUniqueInput[] | ReviewWhereUniqueInput;
disconnect?: ReviewWhereUniqueInput[] | ReviewWhereUniqueInput;
update?:
| ReviewUpdateWithWhereUniqueWithoutExperienceInput[]
| ReviewUpdateWithWhereUniqueWithoutExperienceInput;
upsert?:
| ReviewUpsertWithWhereUniqueWithoutExperienceInput[]
| ReviewUpsertWithWhereUniqueWithoutExperienceInput;
}
export interface UserUpdateManyMutationInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
}
export interface ReviewUpdateWithWhereUniqueWithoutExperienceInput {
where: ReviewWhereUniqueInput;
data: ReviewUpdateWithoutExperienceDataInput;
}
export interface ReviewUpdateManyMutationInput {
text?: String;
stars?: Int;
accuracy?: Int;
location?: Int;
checkIn?: Int;
value?: Int;
cleanliness?: Int;
communication?: Int;
}
export interface ReviewUpdateWithoutExperienceDataInput {
text?: String;
stars?: Int;
accuracy?: Int;
location?: Int;
checkIn?: Int;
value?: Int;
cleanliness?: Int;
communication?: Int;
place?: PlaceUpdateOneRequiredWithoutReviewsInput;
}
export interface ReviewCreateInput {
text: String;
stars: Int;
accuracy: Int;
location: Int;
checkIn: Int;
value: Int;
cleanliness: Int;
communication: Int;
place: PlaceCreateOneWithoutReviewsInput;
experience?: ExperienceCreateOneWithoutReviewsInput;
}
export interface PlaceUpdateOneRequiredWithoutReviewsInput {
create?: PlaceCreateWithoutReviewsInput;
update?: PlaceUpdateWithoutReviewsDataInput;
upsert?: PlaceUpsertWithoutReviewsInput;
connect?: PlaceWhereUniqueInput;
}
export interface LocationUpdateWithoutRestaurantDataInput {
lat?: Float;
lng?: Float;
neighbourHood?: NeighbourhoodUpdateOneWithoutLocationsInput;
user?: UserUpdateOneWithoutLocationInput;
place?: PlaceUpdateOneWithoutLocationInput;
address?: String;
directions?: String;
experience?: ExperienceUpdateOneWithoutLocationInput;
}
export interface PlaceUpdateWithoutReviewsDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface AmenitiesWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
place?: PlaceWhereInput;
elevator?: Boolean;
elevator_not?: Boolean;
petsAllowed?: Boolean;
petsAllowed_not?: Boolean;
internet?: Boolean;
internet_not?: Boolean;
kitchen?: Boolean;
kitchen_not?: Boolean;
wirelessInternet?: Boolean;
wirelessInternet_not?: Boolean;
familyKidFriendly?: Boolean;
familyKidFriendly_not?: Boolean;
freeParkingOnPremises?: Boolean;
freeParkingOnPremises_not?: Boolean;
hotTub?: Boolean;
hotTub_not?: Boolean;
pool?: Boolean;
pool_not?: Boolean;
smokingAllowed?: Boolean;
smokingAllowed_not?: Boolean;
wheelchairAccessible?: Boolean;
wheelchairAccessible_not?: Boolean;
breakfast?: Boolean;
breakfast_not?: Boolean;
cableTv?: Boolean;
cableTv_not?: Boolean;
suitableForEvents?: Boolean;
suitableForEvents_not?: Boolean;
dryer?: Boolean;
dryer_not?: Boolean;
washer?: Boolean;
washer_not?: Boolean;
indoorFireplace?: Boolean;
indoorFireplace_not?: Boolean;
tv?: Boolean;
tv_not?: Boolean;
heating?: Boolean;
heating_not?: Boolean;
hangers?: Boolean;
hangers_not?: Boolean;
iron?: Boolean;
iron_not?: Boolean;
hairDryer?: Boolean;
hairDryer_not?: Boolean;
doorman?: Boolean;
doorman_not?: Boolean;
paidParkingOffPremises?: Boolean;
paidParkingOffPremises_not?: Boolean;
freeParkingOnStreet?: Boolean;
freeParkingOnStreet_not?: Boolean;
gym?: Boolean;
gym_not?: Boolean;
airConditioning?: Boolean;
airConditioning_not?: Boolean;
shampoo?: Boolean;
shampoo_not?: Boolean;
essentials?: Boolean;
essentials_not?: Boolean;
laptopFriendlyWorkspace?: Boolean;
laptopFriendlyWorkspace_not?: Boolean;
privateEntrance?: Boolean;
privateEntrance_not?: Boolean;
buzzerWirelessIntercom?: Boolean;
buzzerWirelessIntercom_not?: Boolean;
babyBath?: Boolean;
babyBath_not?: Boolean;
babyMonitor?: Boolean;
babyMonitor_not?: Boolean;
babysitterRecommendations?: Boolean;
babysitterRecommendations_not?: Boolean;
bathtub?: Boolean;
bathtub_not?: Boolean;
changingTable?: Boolean;
changingTable_not?: Boolean;
childrensBooksAndToys?: Boolean;
childrensBooksAndToys_not?: Boolean;
childrensDinnerware?: Boolean;
childrensDinnerware_not?: Boolean;
crib?: Boolean;
crib_not?: Boolean;
AND?: AmenitiesWhereInput[] | AmenitiesWhereInput;
OR?: AmenitiesWhereInput[] | AmenitiesWhereInput;
NOT?: AmenitiesWhereInput[] | AmenitiesWhereInput;
}
export interface PlaceUpsertWithoutReviewsInput {
update: PlaceUpdateWithoutReviewsDataInput;
create: PlaceCreateWithoutReviewsInput;
}
export type LocationWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface ReviewUpsertWithWhereUniqueWithoutExperienceInput {
where: ReviewWhereUniqueInput;
update: ReviewUpdateWithoutExperienceDataInput;
create: ReviewCreateWithoutExperienceInput;
}
export type MessageWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface PictureUpdateOneRequiredInput {
create?: PictureCreateInput;
update?: PictureUpdateDataInput;
upsert?: PictureUpsertNestedInput;
connect?: PictureWhereUniqueInput;
}
export type NeighbourhoodWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface ExperienceUpsertWithWhereUniqueWithoutHostInput {
where: ExperienceWhereUniqueInput;
update: ExperienceUpdateWithoutHostDataInput;
create: ExperienceCreateWithoutHostInput;
}
export type NotificationWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface UserUpsertWithoutReceivedMessagesInput {
update: UserUpdateWithoutReceivedMessagesDataInput;
create: UserCreateWithoutReceivedMessagesInput;
}
export type PaymentWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface MessageUpsertWithWhereUniqueWithoutFromInput {
where: MessageWhereUniqueInput;
update: MessageUpdateWithoutFromDataInput;
create: MessageCreateWithoutFromInput;
}
export type PaymentAccountWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface MessageUpdateManyWithoutToInput {
create?: MessageCreateWithoutToInput[] | MessageCreateWithoutToInput;
delete?: MessageWhereUniqueInput[] | MessageWhereUniqueInput;
connect?: MessageWhereUniqueInput[] | MessageWhereUniqueInput;
disconnect?: MessageWhereUniqueInput[] | MessageWhereUniqueInput;
update?:
| MessageUpdateWithWhereUniqueWithoutToInput[]
| MessageUpdateWithWhereUniqueWithoutToInput;
upsert?:
| MessageUpsertWithWhereUniqueWithoutToInput[]
| MessageUpsertWithWhereUniqueWithoutToInput;
}
export type PaypalInformationWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface MessageUpdateWithWhereUniqueWithoutToInput {
where: MessageWhereUniqueInput;
data: MessageUpdateWithoutToDataInput;
}
export interface PictureUpdateInput {
url?: String;
}
export interface MessageUpdateWithoutToDataInput {
from?: UserUpdateOneRequiredWithoutSentMessagesInput;
deliveredAt?: DateTimeInput;
readAt?: DateTimeInput;
}
export interface PaymentAccountUpdateWithoutPaypalDataInput {
type?: PAYMENT_PROVIDER;
user?: UserUpdateOneRequiredWithoutPaymentAccountInput;
payments?: PaymentUpdateManyWithoutPaymentMethodInput;
creditcard?: CreditCardInformationUpdateOneWithoutPaymentAccountInput;
}
export interface UserUpdateOneRequiredWithoutSentMessagesInput {
create?: UserCreateWithoutSentMessagesInput;
update?: UserUpdateWithoutSentMessagesDataInput;
upsert?: UserUpsertWithoutSentMessagesInput;
connect?: UserWhereUniqueInput;
}
export interface PaymentAccountCreateWithoutPaypalInput {
type?: PAYMENT_PROVIDER;
user: UserCreateOneWithoutPaymentAccountInput;
payments?: PaymentCreateManyWithoutPaymentMethodInput;
creditcard?: CreditCardInformationCreateOneWithoutPaymentAccountInput;
}
export interface UserUpdateWithoutSentMessagesDataInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceUpdateManyWithoutHostInput;
location?: LocationUpdateOneWithoutUserInput;
bookings?: BookingUpdateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountUpdateManyWithoutUserInput;
receivedMessages?: MessageUpdateManyWithoutToInput;
notifications?: NotificationUpdateManyWithoutUserInput;
profilePicture?: PictureUpdateOneInput;
hostingExperiences?: ExperienceUpdateManyWithoutHostInput;
}
export interface PaymentAccountUpdateManyMutationInput {
type?: PAYMENT_PROVIDER;
}
export interface UserUpsertWithoutSentMessagesInput {
update: UserUpdateWithoutSentMessagesDataInput;
create: UserCreateWithoutSentMessagesInput;
}
export interface PaymentAccountCreateInput {
type?: PAYMENT_PROVIDER;
user: UserCreateOneWithoutPaymentAccountInput;
payments?: PaymentCreateManyWithoutPaymentMethodInput;
paypal?: PaypalInformationCreateOneWithoutPaymentAccountInput;
creditcard?: CreditCardInformationCreateOneWithoutPaymentAccountInput;
}
export interface MessageUpsertWithWhereUniqueWithoutToInput {
where: MessageWhereUniqueInput;
update: MessageUpdateWithoutToDataInput;
create: MessageCreateWithoutToInput;
}
export interface PaymentCreateInput {
serviceFee: Float;
placePrice: Float;
totalPrice: Float;
booking: BookingCreateOneWithoutPaymentInput;
paymentMethod: PaymentAccountCreateOneWithoutPaymentsInput;
}
export interface UserUpsertWithoutBookingsInput {
update: UserUpdateWithoutBookingsDataInput;
create: UserCreateWithoutBookingsInput;
}
export type ReviewWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface PaymentUpdateOneWithoutBookingInput {
create?: PaymentCreateWithoutBookingInput;
update?: PaymentUpdateWithoutBookingDataInput;
upsert?: PaymentUpsertWithoutBookingInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: PaymentWhereUniqueInput;
}
export type UserWhereUniqueInput = AtLeastOne<{
id: ID_Input;
email?: String;
}>;
export interface PaymentUpdateWithoutBookingDataInput {
serviceFee?: Float;
placePrice?: Float;
totalPrice?: Float;
paymentMethod?: PaymentAccountUpdateOneRequiredWithoutPaymentsInput;
}
export interface NeighbourhoodUpdateInput {
locations?: LocationUpdateManyWithoutNeighbourHoodInput;
name?: String;
slug?: String;
homePreview?: PictureUpdateOneInput;
city?: CityUpdateOneRequiredWithoutNeighbourhoodsInput;
featured?: Boolean;
popularity?: Int;
}
export interface PaymentAccountUpdateOneRequiredWithoutPaymentsInput {
create?: PaymentAccountCreateWithoutPaymentsInput;
update?: PaymentAccountUpdateWithoutPaymentsDataInput;
upsert?: PaymentAccountUpsertWithoutPaymentsInput;
connect?: PaymentAccountWhereUniqueInput;
}
export interface MessageUpdateInput {
from?: UserUpdateOneRequiredWithoutSentMessagesInput;
to?: UserUpdateOneRequiredWithoutReceivedMessagesInput;
deliveredAt?: DateTimeInput;
readAt?: DateTimeInput;
}
export interface PaymentAccountUpdateWithoutPaymentsDataInput {
type?: PAYMENT_PROVIDER;
user?: UserUpdateOneRequiredWithoutPaymentAccountInput;
paypal?: PaypalInformationUpdateOneWithoutPaymentAccountInput;
creditcard?: CreditCardInformationUpdateOneWithoutPaymentAccountInput;
}
export interface PlaceCreateOneWithoutAmenitiesInput {
create?: PlaceCreateWithoutAmenitiesInput;
connect?: PlaceWhereUniqueInput;
}
export interface UserUpdateOneRequiredWithoutPaymentAccountInput {
create?: UserCreateWithoutPaymentAccountInput;
update?: UserUpdateWithoutPaymentAccountDataInput;
upsert?: UserUpsertWithoutPaymentAccountInput;
connect?: UserWhereUniqueInput;
}
export interface ExperienceCreateOneWithoutReviewsInput {
create?: ExperienceCreateWithoutReviewsInput;
connect?: ExperienceWhereUniqueInput;
}
export interface UserUpdateWithoutPaymentAccountDataInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceUpdateManyWithoutHostInput;
location?: LocationUpdateOneWithoutUserInput;
bookings?: BookingUpdateManyWithoutBookeeInput;
sentMessages?: MessageUpdateManyWithoutFromInput;
receivedMessages?: MessageUpdateManyWithoutToInput;
notifications?: NotificationUpdateManyWithoutUserInput;
profilePicture?: PictureUpdateOneInput;
hostingExperiences?: ExperienceUpdateManyWithoutHostInput;
}
export interface UserCreateOneWithoutHostingExperiencesInput {
create?: UserCreateWithoutHostingExperiencesInput;
connect?: UserWhereUniqueInput;
}
export interface UserUpsertWithoutPaymentAccountInput {
update: UserUpdateWithoutPaymentAccountDataInput;
create: UserCreateWithoutPaymentAccountInput;
}
export interface AmenitiesCreateOneWithoutPlaceInput {
create?: AmenitiesCreateWithoutPlaceInput;
connect?: AmenitiesWhereUniqueInput;
}
export interface PaymentAccountUpsertWithoutPaymentsInput {
update: PaymentAccountUpdateWithoutPaymentsDataInput;
create: PaymentAccountCreateWithoutPaymentsInput;
}
export interface LocationCreateOneWithoutPlaceInput {
create?: LocationCreateWithoutPlaceInput;
connect?: LocationWhereUniqueInput;
}
export interface PaymentUpsertWithoutBookingInput {
update: PaymentUpdateWithoutBookingDataInput;
create: PaymentCreateWithoutBookingInput;
}
export interface PictureCreateOneInput {
create?: PictureCreateInput;
connect?: PictureWhereUniqueInput;
}
export interface BookingUpsertWithWhereUniqueWithoutPlaceInput {
where: BookingWhereUniqueInput;
update: BookingUpdateWithoutPlaceDataInput;
create: BookingCreateWithoutPlaceInput;
}
export interface UserCreateOneWithoutLocationInput {
create?: UserCreateWithoutLocationInput;
connect?: UserWhereUniqueInput;
}
export interface PlaceUpsertWithoutLocationInput {
update: PlaceUpdateWithoutLocationDataInput;
create: PlaceCreateWithoutLocationInput;
}
export interface PlaceCreateOneWithoutBookingsInput {
create?: PlaceCreateWithoutBookingsInput;
connect?: PlaceWhereUniqueInput;
}
export interface ExperienceUpdateOneWithoutLocationInput {
create?: ExperienceCreateWithoutLocationInput;
update?: ExperienceUpdateWithoutLocationDataInput;
upsert?: ExperienceUpsertWithoutLocationInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: ExperienceWhereUniqueInput;
}
export interface LocationCreateOneWithoutUserInput {
create?: LocationCreateWithoutUserInput;
connect?: LocationWhereUniqueInput;
}
export interface ExperienceUpdateWithoutLocationDataInput {
category?: ExperienceCategoryUpdateOneWithoutExperienceInput;
title?: String;
host?: UserUpdateOneRequiredWithoutHostingExperiencesInput;
pricePerPerson?: Int;
reviews?: ReviewUpdateManyWithoutExperienceInput;
preview?: PictureUpdateOneRequiredInput;
popularity?: Int;
}
export interface ViewsCreateOneWithoutPlaceInput {
create?: ViewsCreateWithoutPlaceInput;
connect?: ViewsWhereUniqueInput;
}
export interface ExperienceUpsertWithoutLocationInput {
update: ExperienceUpdateWithoutLocationDataInput;
create: ExperienceCreateWithoutLocationInput;
}
export interface PoliciesCreateOneWithoutPlaceInput {
create?: PoliciesCreateWithoutPlaceInput;
connect?: PoliciesWhereUniqueInput;
}
export interface LocationUpsertWithoutUserInput {
update: LocationUpdateWithoutUserDataInput;
create: LocationCreateWithoutUserInput;
}
export interface BookingCreateManyWithoutPlaceInput {
create?: BookingCreateWithoutPlaceInput[] | BookingCreateWithoutPlaceInput;
connect?: BookingWhereUniqueInput[] | BookingWhereUniqueInput;
}
export interface UserUpsertWithoutOwnedPlacesInput {
update: UserUpdateWithoutOwnedPlacesDataInput;
create: UserCreateWithoutOwnedPlacesInput;
}
export interface PaymentAccountCreateManyWithoutUserInput {
create?:
| PaymentAccountCreateWithoutUserInput[]
| PaymentAccountCreateWithoutUserInput;
connect?: PaymentAccountWhereUniqueInput[] | PaymentAccountWhereUniqueInput;
}
export interface PlaceUpsertWithoutBookingsInput {
update: PlaceUpdateWithoutBookingsDataInput;
create: PlaceCreateWithoutBookingsInput;
}
export interface BookingCreateOneWithoutPaymentInput {
create?: BookingCreateWithoutPaymentInput;
connect?: BookingWhereUniqueInput;
}
export interface BookingUpsertWithWhereUniqueWithoutBookeeInput {
where: BookingWhereUniqueInput;
update: BookingUpdateWithoutBookeeDataInput;
create: BookingCreateWithoutBookeeInput;
}
export interface CreditCardInformationCreateOneWithoutPaymentAccountInput {
create?: CreditCardInformationCreateWithoutPaymentAccountInput;
connect?: CreditCardInformationWhereUniqueInput;
}
export interface UserUpsertWithoutLocationInput {
update: UserUpdateWithoutLocationDataInput;
create: UserCreateWithoutLocationInput;
}
export interface UserCreateOneWithoutReceivedMessagesInput {
create?: UserCreateWithoutReceivedMessagesInput;
connect?: UserWhereUniqueInput;
}
export interface LocationUpsertWithoutPlaceInput {
update: LocationUpdateWithoutPlaceDataInput;
create: LocationCreateWithoutPlaceInput;
}
export interface ExperienceCreateManyWithoutHostInput {
create?:
| ExperienceCreateWithoutHostInput[]
| ExperienceCreateWithoutHostInput;
connect?: ExperienceWhereUniqueInput[] | ExperienceWhereUniqueInput;
}
export interface PlaceUpsertWithWhereUniqueWithoutHostInput {
where: PlaceWhereUniqueInput;
update: PlaceUpdateWithoutHostDataInput;
create: PlaceCreateWithoutHostInput;
}
export interface RestaurantCreateOneWithoutLocationInput {
create?: RestaurantCreateWithoutLocationInput;
connect?: RestaurantWhereUniqueInput;
}
export interface UserUpsertWithoutHostingExperiencesInput {
update: UserUpdateWithoutHostingExperiencesDataInput;
create: UserCreateWithoutHostingExperiencesInput;
}
export interface ViewsSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: ViewsWhereInput;
AND?: ViewsSubscriptionWhereInput[] | ViewsSubscriptionWhereInput;
OR?: ViewsSubscriptionWhereInput[] | ViewsSubscriptionWhereInput;
NOT?: ViewsSubscriptionWhereInput[] | ViewsSubscriptionWhereInput;
}
export interface ExperienceUpsertWithoutReviewsInput {
update: ExperienceUpdateWithoutReviewsDataInput;
create: ExperienceCreateWithoutReviewsInput;
}
export interface PoliciesSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: PoliciesWhereInput;
AND?: PoliciesSubscriptionWhereInput[] | PoliciesSubscriptionWhereInput;
OR?: PoliciesSubscriptionWhereInput[] | PoliciesSubscriptionWhereInput;
NOT?: PoliciesSubscriptionWhereInput[] | PoliciesSubscriptionWhereInput;
}
export interface ReviewUpsertWithWhereUniqueWithoutPlaceInput {
where: ReviewWhereUniqueInput;
update: ReviewUpdateWithoutPlaceDataInput;
create: ReviewCreateWithoutPlaceInput;
}
export interface PaymentSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: PaymentWhereInput;
AND?: PaymentSubscriptionWhereInput[] | PaymentSubscriptionWhereInput;
OR?: PaymentSubscriptionWhereInput[] | PaymentSubscriptionWhereInput;
NOT?: PaymentSubscriptionWhereInput[] | PaymentSubscriptionWhereInput;
}
export interface PlaceUpsertWithoutAmenitiesInput {
update: PlaceUpdateWithoutAmenitiesDataInput;
create: PlaceCreateWithoutAmenitiesInput;
}
export interface LocationSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: LocationWhereInput;
AND?: LocationSubscriptionWhereInput[] | LocationSubscriptionWhereInput;
OR?: LocationSubscriptionWhereInput[] | LocationSubscriptionWhereInput;
NOT?: LocationSubscriptionWhereInput[] | LocationSubscriptionWhereInput;
}
export interface AmenitiesUpdateManyMutationInput {
elevator?: Boolean;
petsAllowed?: Boolean;
internet?: Boolean;
kitchen?: Boolean;
wirelessInternet?: Boolean;
familyKidFriendly?: Boolean;
freeParkingOnPremises?: Boolean;
hotTub?: Boolean;
pool?: Boolean;
smokingAllowed?: Boolean;
wheelchairAccessible?: Boolean;
breakfast?: Boolean;
cableTv?: Boolean;
suitableForEvents?: Boolean;
dryer?: Boolean;
washer?: Boolean;
indoorFireplace?: Boolean;
tv?: Boolean;
heating?: Boolean;
hangers?: Boolean;
iron?: Boolean;
hairDryer?: Boolean;
doorman?: Boolean;
paidParkingOffPremises?: Boolean;
freeParkingOnStreet?: Boolean;
gym?: Boolean;
airConditioning?: Boolean;
shampoo?: Boolean;
essentials?: Boolean;
laptopFriendlyWorkspace?: Boolean;
privateEntrance?: Boolean;
buzzerWirelessIntercom?: Boolean;
babyBath?: Boolean;
babyMonitor?: Boolean;
babysitterRecommendations?: Boolean;
bathtub?: Boolean;
changingTable?: Boolean;
childrensBooksAndToys?: Boolean;
childrensDinnerware?: Boolean;
crib?: Boolean;
}
export interface BookingSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: BookingWhereInput;
AND?: BookingSubscriptionWhereInput[] | BookingSubscriptionWhereInput;
OR?: BookingSubscriptionWhereInput[] | BookingSubscriptionWhereInput;
NOT?: BookingSubscriptionWhereInput[] | BookingSubscriptionWhereInput;
}
export interface HouseRulesUpdateManyMutationInput {
suitableForChildren?: Boolean;
suitableForInfants?: Boolean;
petsAllowed?: Boolean;
smokingAllowed?: Boolean;
partiesAndEventsAllowed?: Boolean;
additionalRules?: String;
}
export interface PlaceUpdateOneRequiredWithoutViewsInput {
create?: PlaceCreateWithoutViewsInput;
update?: PlaceUpdateWithoutViewsDataInput;
upsert?: PlaceUpsertWithoutViewsInput;
connect?: PlaceWhereUniqueInput;
}
export interface HouseRulesUpdateInput {
suitableForChildren?: Boolean;
suitableForInfants?: Boolean;
petsAllowed?: Boolean;
smokingAllowed?: Boolean;
partiesAndEventsAllowed?: Boolean;
additionalRules?: String;
}
export interface UserUpdateInput {
firstName?: String;
lastName?: String;
email?: String;
password?: String;
phone?: String;
responseRate?: Float;
responseTime?: Int;
isSuperHost?: Boolean;
ownedPlaces?: PlaceUpdateManyWithoutHostInput;
location?: LocationUpdateOneWithoutUserInput;
bookings?: BookingUpdateManyWithoutBookeeInput;
paymentAccount?: PaymentAccountUpdateManyWithoutUserInput;
sentMessages?: MessageUpdateManyWithoutFromInput;
receivedMessages?: MessageUpdateManyWithoutToInput;
notifications?: NotificationUpdateManyWithoutUserInput;
profilePicture?: PictureUpdateOneInput;
hostingExperiences?: ExperienceUpdateManyWithoutHostInput;
}
export interface BookingCreateInput {
bookee: UserCreateOneWithoutBookingsInput;
place: PlaceCreateOneWithoutBookingsInput;
startDate: DateTimeInput;
endDate: DateTimeInput;
payment?: PaymentCreateOneWithoutBookingInput;
}
export type GuestRequirementsWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface BookingUpdateInput {
bookee?: UserUpdateOneRequiredWithoutBookingsInput;
place?: PlaceUpdateOneRequiredWithoutBookingsInput;
startDate?: DateTimeInput;
endDate?: DateTimeInput;
payment?: PaymentUpdateOneWithoutBookingInput;
}
export interface LocationCreateOneWithoutRestaurantInput {
create?: LocationCreateWithoutRestaurantInput;
connect?: LocationWhereUniqueInput;
}
export interface BookingUpdateManyMutationInput {
startDate?: DateTimeInput;
endDate?: DateTimeInput;
}
export interface PricingUpdateInput {
place?: PlaceUpdateOneRequiredWithoutPricingInput;
monthlyDiscount?: Int;
weeklyDiscount?: Int;
perNight?: Int;
smartPricing?: Boolean;
basePrice?: Int;
averageWeekly?: Int;
averageMonthly?: Int;
cleaningFee?: Int;
securityDeposit?: Int;
extraGuests?: Int;
weekendPricing?: Int;
currency?: CURRENCY;
}
export interface CityCreateInput {
name: String;
neighbourhoods?: NeighbourhoodCreateManyWithoutCityInput;
}
export interface PlaceUpdateWithoutPoliciesDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
guestRequirements?: GuestRequirementsUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface NeighbourhoodCreateManyWithoutCityInput {
create?:
| NeighbourhoodCreateWithoutCityInput[]
| NeighbourhoodCreateWithoutCityInput;
connect?: NeighbourhoodWhereUniqueInput[] | NeighbourhoodWhereUniqueInput;
}
export interface PlaceUpdateManyMutationInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
popularity?: Int;
}
export interface NeighbourhoodCreateWithoutCityInput {
locations?: LocationCreateManyWithoutNeighbourHoodInput;
name: String;
slug: String;
homePreview?: PictureCreateOneInput;
featured: Boolean;
popularity: Int;
}
export interface PaypalInformationUpdateManyMutationInput {
email?: String;
}
export interface LocationCreateManyWithoutNeighbourHoodInput {
create?:
| LocationCreateWithoutNeighbourHoodInput[]
| LocationCreateWithoutNeighbourHoodInput;
connect?: LocationWhereUniqueInput[] | LocationWhereUniqueInput;
}
export interface PaymentAccountCreateOneWithoutPaypalInput {
create?: PaymentAccountCreateWithoutPaypalInput;
connect?: PaymentAccountWhereUniqueInput;
}
export interface LocationCreateWithoutNeighbourHoodInput {
lat: Float;
lng: Float;
user?: UserCreateOneWithoutLocationInput;
place?: PlaceCreateOneWithoutLocationInput;
address: String;
directions: String;
experience?: ExperienceCreateOneWithoutLocationInput;
restaurant?: RestaurantCreateOneWithoutLocationInput;
}
export interface PaymentUpdateInput {
serviceFee?: Float;
placePrice?: Float;
totalPrice?: Float;
booking?: BookingUpdateOneRequiredWithoutPaymentInput;
paymentMethod?: PaymentAccountUpdateOneRequiredWithoutPaymentsInput;
}
export interface CityUpdateInput {
name?: String;
neighbourhoods?: NeighbourhoodUpdateManyWithoutCityInput;
}
export interface NotificationUpdateInput {
type?: NOTIFICATION_TYPE;
user?: UserUpdateOneRequiredWithoutNotificationsInput;
link?: String;
readDate?: DateTimeInput;
}
export interface NeighbourhoodUpdateManyWithoutCityInput {
create?:
| NeighbourhoodCreateWithoutCityInput[]
| NeighbourhoodCreateWithoutCityInput;
delete?: NeighbourhoodWhereUniqueInput[] | NeighbourhoodWhereUniqueInput;
connect?: NeighbourhoodWhereUniqueInput[] | NeighbourhoodWhereUniqueInput;
disconnect?: NeighbourhoodWhereUniqueInput[] | NeighbourhoodWhereUniqueInput;
update?:
| NeighbourhoodUpdateWithWhereUniqueWithoutCityInput[]
| NeighbourhoodUpdateWithWhereUniqueWithoutCityInput;
upsert?:
| NeighbourhoodUpsertWithWhereUniqueWithoutCityInput[]
| NeighbourhoodUpsertWithWhereUniqueWithoutCityInput;
}
export interface NeighbourhoodCreateInput {
locations?: LocationCreateManyWithoutNeighbourHoodInput;
name: String;
slug: String;
homePreview?: PictureCreateOneInput;
city: CityCreateOneWithoutNeighbourhoodsInput;
featured: Boolean;
popularity: Int;
}
export interface NeighbourhoodUpdateWithWhereUniqueWithoutCityInput {
where: NeighbourhoodWhereUniqueInput;
data: NeighbourhoodUpdateWithoutCityDataInput;
}
export interface ReviewCreateManyWithoutPlaceInput {
create?: ReviewCreateWithoutPlaceInput[] | ReviewCreateWithoutPlaceInput;
connect?: ReviewWhereUniqueInput[] | ReviewWhereUniqueInput;
}
export interface NeighbourhoodUpdateWithoutCityDataInput {
locations?: LocationUpdateManyWithoutNeighbourHoodInput;
name?: String;
slug?: String;
homePreview?: PictureUpdateOneInput;
featured?: Boolean;
popularity?: Int;
}
export interface PlaceCreateManyWithoutHostInput {
create?: PlaceCreateWithoutHostInput[] | PlaceCreateWithoutHostInput;
connect?: PlaceWhereUniqueInput[] | PlaceWhereUniqueInput;
}
export interface LocationUpdateManyWithoutNeighbourHoodInput {
create?:
| LocationCreateWithoutNeighbourHoodInput[]
| LocationCreateWithoutNeighbourHoodInput;
delete?: LocationWhereUniqueInput[] | LocationWhereUniqueInput;
connect?: LocationWhereUniqueInput[] | LocationWhereUniqueInput;
disconnect?: LocationWhereUniqueInput[] | LocationWhereUniqueInput;
update?:
| LocationUpdateWithWhereUniqueWithoutNeighbourHoodInput[]
| LocationUpdateWithWhereUniqueWithoutNeighbourHoodInput;
upsert?:
| LocationUpsertWithWhereUniqueWithoutNeighbourHoodInput[]
| LocationUpsertWithWhereUniqueWithoutNeighbourHoodInput;
}
export interface NeighbourhoodCreateOneWithoutLocationsInput {
create?: NeighbourhoodCreateWithoutLocationsInput;
connect?: NeighbourhoodWhereUniqueInput;
}
export interface LocationUpdateWithWhereUniqueWithoutNeighbourHoodInput {
where: LocationWhereUniqueInput;
data: LocationUpdateWithoutNeighbourHoodDataInput;
}
export interface BookingCreateManyWithoutBookeeInput {
create?: BookingCreateWithoutBookeeInput[] | BookingCreateWithoutBookeeInput;
connect?: BookingWhereUniqueInput[] | BookingWhereUniqueInput;
}
export interface LocationUpdateWithoutNeighbourHoodDataInput {
lat?: Float;
lng?: Float;
user?: UserUpdateOneWithoutLocationInput;
place?: PlaceUpdateOneWithoutLocationInput;
address?: String;
directions?: String;
experience?: ExperienceUpdateOneWithoutLocationInput;
restaurant?: RestaurantUpdateOneWithoutLocationInput;
}
export interface PlaceCreateOneWithoutLocationInput {
create?: PlaceCreateWithoutLocationInput;
connect?: PlaceWhereUniqueInput;
}
export interface LocationUpsertWithWhereUniqueWithoutNeighbourHoodInput {
where: LocationWhereUniqueInput;
update: LocationUpdateWithoutNeighbourHoodDataInput;
create: LocationCreateWithoutNeighbourHoodInput;
}
export interface HouseRulesCreateOneInput {
create?: HouseRulesCreateInput;
connect?: HouseRulesWhereUniqueInput;
}
export interface NeighbourhoodUpsertWithWhereUniqueWithoutCityInput {
where: NeighbourhoodWhereUniqueInput;
update: NeighbourhoodUpdateWithoutCityDataInput;
create: NeighbourhoodCreateWithoutCityInput;
}
export interface PaymentCreateManyWithoutPaymentMethodInput {
create?:
| PaymentCreateWithoutPaymentMethodInput[]
| PaymentCreateWithoutPaymentMethodInput;
connect?: PaymentWhereUniqueInput[] | PaymentWhereUniqueInput;
}
export interface CityUpdateManyMutationInput {
name?: String;
}
export interface MessageCreateManyWithoutFromInput {
create?: MessageCreateWithoutFromInput[] | MessageCreateWithoutFromInput;
connect?: MessageWhereUniqueInput[] | MessageWhereUniqueInput;
}
export interface CreditCardInformationCreateInput {
cardNumber: String;
expiresOnMonth: Int;
expiresOnYear: Int;
securityCode: String;
firstName: String;
lastName: String;
postalCode: String;
country: String;
paymentAccount?: PaymentAccountCreateOneWithoutCreditcardInput;
}
export interface LocationCreateOneWithoutExperienceInput {
create?: LocationCreateWithoutExperienceInput;
connect?: LocationWhereUniqueInput;
}
export interface PaymentAccountCreateOneWithoutCreditcardInput {
create?: PaymentAccountCreateWithoutCreditcardInput;
connect?: PaymentAccountWhereUniqueInput;
}
export interface PaypalInformationWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
email?: String;
email_not?: String;
email_in?: String[] | String;
email_not_in?: String[] | String;
email_lt?: String;
email_lte?: String;
email_gt?: String;
email_gte?: String;
email_contains?: String;
email_not_contains?: String;
email_starts_with?: String;
email_not_starts_with?: String;
email_ends_with?: String;
email_not_ends_with?: String;
paymentAccount?: PaymentAccountWhereInput;
AND?: PaypalInformationWhereInput[] | PaypalInformationWhereInput;
OR?: PaypalInformationWhereInput[] | PaypalInformationWhereInput;
NOT?: PaypalInformationWhereInput[] | PaypalInformationWhereInput;
}
export interface PaymentAccountCreateWithoutCreditcardInput {
type?: PAYMENT_PROVIDER;
user: UserCreateOneWithoutPaymentAccountInput;
payments?: PaymentCreateManyWithoutPaymentMethodInput;
paypal?: PaypalInformationCreateOneWithoutPaymentAccountInput;
}
export interface CityWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
name?: String;
name_not?: String;
name_in?: String[] | String;
name_not_in?: String[] | String;
name_lt?: String;
name_lte?: String;
name_gt?: String;
name_gte?: String;
name_contains?: String;
name_not_contains?: String;
name_starts_with?: String;
name_not_starts_with?: String;
name_ends_with?: String;
name_not_ends_with?: String;
neighbourhoods_every?: NeighbourhoodWhereInput;
neighbourhoods_some?: NeighbourhoodWhereInput;
neighbourhoods_none?: NeighbourhoodWhereInput;
AND?: CityWhereInput[] | CityWhereInput;
OR?: CityWhereInput[] | CityWhereInput;
NOT?: CityWhereInput[] | CityWhereInput;
}
export interface CreditCardInformationUpdateInput {
cardNumber?: String;
expiresOnMonth?: Int;
expiresOnYear?: Int;
securityCode?: String;
firstName?: String;
lastName?: String;
postalCode?: String;
country?: String;
paymentAccount?: PaymentAccountUpdateOneWithoutCreditcardInput;
}
export interface PlaceUpsertWithoutViewsInput {
update: PlaceUpdateWithoutViewsDataInput;
create: PlaceCreateWithoutViewsInput;
}
export interface PaymentAccountUpdateOneWithoutCreditcardInput {
create?: PaymentAccountCreateWithoutCreditcardInput;
update?: PaymentAccountUpdateWithoutCreditcardDataInput;
upsert?: PaymentAccountUpsertWithoutCreditcardInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: PaymentAccountWhereUniqueInput;
}
export interface UserWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
createdAt?: DateTimeInput;
createdAt_not?: DateTimeInput;
createdAt_in?: DateTimeInput[] | DateTimeInput;
createdAt_not_in?: DateTimeInput[] | DateTimeInput;
createdAt_lt?: DateTimeInput;
createdAt_lte?: DateTimeInput;
createdAt_gt?: DateTimeInput;
createdAt_gte?: DateTimeInput;
updatedAt?: DateTimeInput;
updatedAt_not?: DateTimeInput;
updatedAt_in?: DateTimeInput[] | DateTimeInput;
updatedAt_not_in?: DateTimeInput[] | DateTimeInput;
updatedAt_lt?: DateTimeInput;
updatedAt_lte?: DateTimeInput;
updatedAt_gt?: DateTimeInput;
updatedAt_gte?: DateTimeInput;
firstName?: String;
firstName_not?: String;
firstName_in?: String[] | String;
firstName_not_in?: String[] | String;
firstName_lt?: String;
firstName_lte?: String;
firstName_gt?: String;
firstName_gte?: String;
firstName_contains?: String;
firstName_not_contains?: String;
firstName_starts_with?: String;
firstName_not_starts_with?: String;
firstName_ends_with?: String;
firstName_not_ends_with?: String;
lastName?: String;
lastName_not?: String;
lastName_in?: String[] | String;
lastName_not_in?: String[] | String;
lastName_lt?: String;
lastName_lte?: String;
lastName_gt?: String;
lastName_gte?: String;
lastName_contains?: String;
lastName_not_contains?: String;
lastName_starts_with?: String;
lastName_not_starts_with?: String;
lastName_ends_with?: String;
lastName_not_ends_with?: String;
email?: String;
email_not?: String;
email_in?: String[] | String;
email_not_in?: String[] | String;
email_lt?: String;
email_lte?: String;
email_gt?: String;
email_gte?: String;
email_contains?: String;
email_not_contains?: String;
email_starts_with?: String;
email_not_starts_with?: String;
email_ends_with?: String;
email_not_ends_with?: String;
password?: String;
password_not?: String;
password_in?: String[] | String;
password_not_in?: String[] | String;
password_lt?: String;
password_lte?: String;
password_gt?: String;
password_gte?: String;
password_contains?: String;
password_not_contains?: String;
password_starts_with?: String;
password_not_starts_with?: String;
password_ends_with?: String;
password_not_ends_with?: String;
phone?: String;
phone_not?: String;
phone_in?: String[] | String;
phone_not_in?: String[] | String;
phone_lt?: String;
phone_lte?: String;
phone_gt?: String;
phone_gte?: String;
phone_contains?: String;
phone_not_contains?: String;
phone_starts_with?: String;
phone_not_starts_with?: String;
phone_ends_with?: String;
phone_not_ends_with?: String;
responseRate?: Float;
responseRate_not?: Float;
responseRate_in?: Float[] | Float;
responseRate_not_in?: Float[] | Float;
responseRate_lt?: Float;
responseRate_lte?: Float;
responseRate_gt?: Float;
responseRate_gte?: Float;
responseTime?: Int;
responseTime_not?: Int;
responseTime_in?: Int[] | Int;
responseTime_not_in?: Int[] | Int;
responseTime_lt?: Int;
responseTime_lte?: Int;
responseTime_gt?: Int;
responseTime_gte?: Int;
isSuperHost?: Boolean;
isSuperHost_not?: Boolean;
ownedPlaces_every?: PlaceWhereInput;
ownedPlaces_some?: PlaceWhereInput;
ownedPlaces_none?: PlaceWhereInput;
location?: LocationWhereInput;
bookings_every?: BookingWhereInput;
bookings_some?: BookingWhereInput;
bookings_none?: BookingWhereInput;
paymentAccount_every?: PaymentAccountWhereInput;
paymentAccount_some?: PaymentAccountWhereInput;
paymentAccount_none?: PaymentAccountWhereInput;
sentMessages_every?: MessageWhereInput;
sentMessages_some?: MessageWhereInput;
sentMessages_none?: MessageWhereInput;
receivedMessages_every?: MessageWhereInput;
receivedMessages_some?: MessageWhereInput;
receivedMessages_none?: MessageWhereInput;
notifications_every?: NotificationWhereInput;
notifications_some?: NotificationWhereInput;
notifications_none?: NotificationWhereInput;
profilePicture?: PictureWhereInput;
hostingExperiences_every?: ExperienceWhereInput;
hostingExperiences_some?: ExperienceWhereInput;
hostingExperiences_none?: ExperienceWhereInput;
AND?: UserWhereInput[] | UserWhereInput;
OR?: UserWhereInput[] | UserWhereInput;
NOT?: UserWhereInput[] | UserWhereInput;
}
export interface PaymentAccountUpdateWithoutCreditcardDataInput {
type?: PAYMENT_PROVIDER;
user?: UserUpdateOneRequiredWithoutPaymentAccountInput;
payments?: PaymentUpdateManyWithoutPaymentMethodInput;
paypal?: PaypalInformationUpdateOneWithoutPaymentAccountInput;
}
export interface PlaceUpsertWithoutPricingInput {
update: PlaceUpdateWithoutPricingDataInput;
create: PlaceCreateWithoutPricingInput;
}
export interface PaymentAccountUpsertWithoutCreditcardInput {
update: PaymentAccountUpdateWithoutCreditcardDataInput;
create: PaymentAccountCreateWithoutCreditcardInput;
}
export interface PlaceCreateWithoutPoliciesInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
amenities: AmenitiesCreateOneWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
pricing: PricingCreateOneWithoutPlaceInput;
location: LocationCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface CreditCardInformationUpdateManyMutationInput {
cardNumber?: String;
expiresOnMonth?: Int;
expiresOnYear?: Int;
securityCode?: String;
firstName?: String;
lastName?: String;
postalCode?: String;
country?: String;
}
export interface PaymentAccountUpdateOneRequiredWithoutPaypalInput {
create?: PaymentAccountCreateWithoutPaypalInput;
update?: PaymentAccountUpdateWithoutPaypalDataInput;
upsert?: PaymentAccountUpsertWithoutPaypalInput;
connect?: PaymentAccountWhereUniqueInput;
}
export interface ExperienceCreateInput {
category?: ExperienceCategoryCreateOneWithoutExperienceInput;
title: String;
host: UserCreateOneWithoutHostingExperiencesInput;
location: LocationCreateOneWithoutExperienceInput;
pricePerPerson: Int;
reviews?: ReviewCreateManyWithoutExperienceInput;
preview: PictureCreateOneInput;
popularity: Int;
}
export interface UserUpsertWithoutNotificationsInput {
update: UserUpdateWithoutNotificationsDataInput;
create: UserCreateWithoutNotificationsInput;
}
export interface ExperienceUpdateInput {
category?: ExperienceCategoryUpdateOneWithoutExperienceInput;
title?: String;
host?: UserUpdateOneRequiredWithoutHostingExperiencesInput;
location?: LocationUpdateOneRequiredWithoutExperienceInput;
pricePerPerson?: Int;
reviews?: ReviewUpdateManyWithoutExperienceInput;
preview?: PictureUpdateOneRequiredInput;
popularity?: Int;
}
export interface PricingCreateOneWithoutPlaceInput {
create?: PricingCreateWithoutPlaceInput;
connect?: PricingWhereUniqueInput;
}
export interface ExperienceUpdateManyMutationInput {
title?: String;
pricePerPerson?: Int;
popularity?: Int;
}
export interface UserCreateOneWithoutOwnedPlacesInput {
create?: UserCreateWithoutOwnedPlacesInput;
connect?: UserWhereUniqueInput;
}
export interface ExperienceCategoryCreateInput {
mainColor?: String;
name: String;
experience?: ExperienceCreateOneWithoutCategoryInput;
}
export interface UserCreateOneWithoutBookingsInput {
create?: UserCreateWithoutBookingsInput;
connect?: UserWhereUniqueInput;
}
export interface ExperienceCreateOneWithoutCategoryInput {
create?: ExperienceCreateWithoutCategoryInput;
connect?: ExperienceWhereUniqueInput;
}
export interface NotificationCreateManyWithoutUserInput {
create?:
| NotificationCreateWithoutUserInput[]
| NotificationCreateWithoutUserInput;
connect?: NotificationWhereUniqueInput[] | NotificationWhereUniqueInput;
}
export interface ExperienceCreateWithoutCategoryInput {
title: String;
host: UserCreateOneWithoutHostingExperiencesInput;
location: LocationCreateOneWithoutExperienceInput;
pricePerPerson: Int;
reviews?: ReviewCreateManyWithoutExperienceInput;
preview: PictureCreateOneInput;
popularity: Int;
}
export interface PictureSubscriptionWhereInput {
mutation_in?: MutationType[] | MutationType;
updatedFields_contains?: String;
updatedFields_contains_every?: String[] | String;
updatedFields_contains_some?: String[] | String;
node?: PictureWhereInput;
AND?: PictureSubscriptionWhereInput[] | PictureSubscriptionWhereInput;
OR?: PictureSubscriptionWhereInput[] | PictureSubscriptionWhereInput;
NOT?: PictureSubscriptionWhereInput[] | PictureSubscriptionWhereInput;
}
export interface ExperienceCategoryUpdateInput {
mainColor?: String;
name?: String;
experience?: ExperienceUpdateOneWithoutCategoryInput;
}
export interface PlaceCreateOneWithoutViewsInput {
create?: PlaceCreateWithoutViewsInput;
connect?: PlaceWhereUniqueInput;
}
export interface ExperienceUpdateOneWithoutCategoryInput {
create?: ExperienceCreateWithoutCategoryInput;
update?: ExperienceUpdateWithoutCategoryDataInput;
upsert?: ExperienceUpsertWithoutCategoryInput;
delete?: Boolean;
disconnect?: Boolean;
connect?: ExperienceWhereUniqueInput;
}
export interface PricingCreateInput {
place: PlaceCreateOneWithoutPricingInput;
monthlyDiscount?: Int;
weeklyDiscount?: Int;
perNight: Int;
smartPricing?: Boolean;
basePrice: Int;
averageWeekly: Int;
averageMonthly: Int;
cleaningFee?: Int;
securityDeposit?: Int;
extraGuests?: Int;
weekendPricing?: Int;
currency?: CURRENCY;
}
export interface ExperienceUpdateWithoutCategoryDataInput {
title?: String;
host?: UserUpdateOneRequiredWithoutHostingExperiencesInput;
location?: LocationUpdateOneRequiredWithoutExperienceInput;
pricePerPerson?: Int;
reviews?: ReviewUpdateManyWithoutExperienceInput;
preview?: PictureUpdateOneRequiredInput;
popularity?: Int;
}
export type PricingWhereUniqueInput = AtLeastOne<{
id: ID_Input;
}>;
export interface ExperienceUpsertWithoutCategoryInput {
update: ExperienceUpdateWithoutCategoryDataInput;
create: ExperienceCreateWithoutCategoryInput;
}
export interface ExperienceCategoryCreateOneWithoutExperienceInput {
create?: ExperienceCategoryCreateWithoutExperienceInput;
connect?: ExperienceCategoryWhereUniqueInput;
}
export interface ExperienceCategoryUpdateManyMutationInput {
mainColor?: String;
name?: String;
}
export interface GuestRequirementsCreateOneWithoutPlaceInput {
create?: GuestRequirementsCreateWithoutPlaceInput;
connect?: GuestRequirementsWhereUniqueInput;
}
export interface GuestRequirementsCreateInput {
govIssuedId?: Boolean;
recommendationsFromOtherHosts?: Boolean;
guestTripInformation?: Boolean;
place: PlaceCreateOneWithoutGuestRequirementsInput;
}
export interface PictureCreateManyInput {
create?: PictureCreateInput[] | PictureCreateInput;
connect?: PictureWhereUniqueInput[] | PictureWhereUniqueInput;
}
export interface PlaceCreateOneWithoutGuestRequirementsInput {
create?: PlaceCreateWithoutGuestRequirementsInput;
connect?: PlaceWhereUniqueInput;
}
export interface RestaurantUpdateInput {
title?: String;
avgPricePerPerson?: Int;
pictures?: PictureUpdateManyInput;
location?: LocationUpdateOneRequiredWithoutRestaurantInput;
isCurated?: Boolean;
slug?: String;
popularity?: Int;
}
export interface PlaceCreateWithoutGuestRequirementsInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
amenities: AmenitiesCreateOneWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
pricing: PricingCreateOneWithoutPlaceInput;
location: LocationCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface NotificationCreateInput {
type?: NOTIFICATION_TYPE;
user: UserCreateOneWithoutNotificationsInput;
link: String;
readDate: DateTimeInput;
}
export interface PlaceUpsertWithoutGuestRequirementsInput {
update: PlaceUpdateWithoutGuestRequirementsDataInput;
create: PlaceCreateWithoutGuestRequirementsInput;
}
export interface PlaceUpdateWithoutGuestRequirementsDataInput {
name?: String;
size?: PLACE_SIZES;
shortDescription?: String;
description?: String;
slug?: String;
maxGuests?: Int;
numBedrooms?: Int;
numBeds?: Int;
numBaths?: Int;
reviews?: ReviewUpdateManyWithoutPlaceInput;
amenities?: AmenitiesUpdateOneRequiredWithoutPlaceInput;
host?: UserUpdateOneRequiredWithoutOwnedPlacesInput;
pricing?: PricingUpdateOneRequiredWithoutPlaceInput;
location?: LocationUpdateOneRequiredWithoutPlaceInput;
views?: ViewsUpdateOneRequiredWithoutPlaceInput;
policies?: PoliciesUpdateOneWithoutPlaceInput;
houseRules?: HouseRulesUpdateOneInput;
bookings?: BookingUpdateManyWithoutPlaceInput;
pictures?: PictureUpdateManyInput;
popularity?: Int;
}
export interface PlaceUpdateOneRequiredWithoutGuestRequirementsInput {
create?: PlaceCreateWithoutGuestRequirementsInput;
update?: PlaceUpdateWithoutGuestRequirementsDataInput;
upsert?: PlaceUpsertWithoutGuestRequirementsInput;
connect?: PlaceWhereUniqueInput;
}
export interface GuestRequirementsUpdateInput {
govIssuedId?: Boolean;
recommendationsFromOtherHosts?: Boolean;
guestTripInformation?: Boolean;
place?: PlaceUpdateOneRequiredWithoutGuestRequirementsInput;
}
export interface CityCreateOneWithoutNeighbourhoodsInput {
create?: CityCreateWithoutNeighbourhoodsInput;
connect?: CityWhereUniqueInput;
}
export interface PlaceCreateInput {
name: String;
size?: PLACE_SIZES;
shortDescription: String;
description: String;
slug: String;
maxGuests: Int;
numBedrooms: Int;
numBeds: Int;
numBaths: Int;
reviews?: ReviewCreateManyWithoutPlaceInput;
amenities: AmenitiesCreateOneWithoutPlaceInput;
host: UserCreateOneWithoutOwnedPlacesInput;
pricing: PricingCreateOneWithoutPlaceInput;
location: LocationCreateOneWithoutPlaceInput;
views: ViewsCreateOneWithoutPlaceInput;
guestRequirements?: GuestRequirementsCreateOneWithoutPlaceInput;
policies?: PoliciesCreateOneWithoutPlaceInput;
houseRules?: HouseRulesCreateOneInput;
bookings?: BookingCreateManyWithoutPlaceInput;
pictures?: PictureCreateManyInput;
popularity: Int;
}
export interface NeighbourhoodWhereInput {
id?: ID_Input;
id_not?: ID_Input;
id_in?: ID_Input[] | ID_Input;
id_not_in?: ID_Input[] | ID_Input;
id_lt?: ID_Input;
id_lte?: ID_Input;
id_gt?: ID_Input;
id_gte?: ID_Input;
id_contains?: ID_Input;
id_not_contains?: ID_Input;
id_starts_with?: ID_Input;
id_not_starts_with?: ID_Input;
id_ends_with?: ID_Input;
id_not_ends_with?: ID_Input;
locations_every?: LocationWhereInput;
locations_some?: LocationWhereInput;
locations_none?: LocationWhereInput;
name?: String;
name_not?: String;
name_in?: String[] | String;
name_not_in?: String[] | String;
name_lt?: String;
name_lte?: String;
name_gt?: String;
name_gte?: String;
name_contains?: String;
name_not_contains?: String;
name_starts_with?: String;
name_not_starts_with?: String;
name_ends_with?: String;
name_not_ends_with?: String;
slug?: String;
slug_not?: String;
slug_in?: String[] | String;
slug_not_in?: String[] | String;
slug_lt?: String;
slug_lte?: String;
slug_gt?: String;
slug_gte?: String;
slug_contains?: String;
slug_not_contains?: String;
slug_starts_with?: String;
slug_not_starts_with?: String;
slug_ends_with?: String;
slug_not_ends_with?: String;
homePreview?: PictureWhereInput;
city?: CityWhereInput;
featured?: Boolean;
featured_not?: Boolean;
popularity?: Int;
popularity_not?: Int;
popularity_in?: Int[] | Int;
popularity_not_in?: Int[] | Int;
popularity_lt?: Int;
popularity_lte?: Int;
popularity_gt?: Int;
popularity_gte?: Int;
AND?: NeighbourhoodWhereInput[] | NeighbourhoodWhereInput;
OR?: NeighbourhoodWhereInput[] | NeighbourhoodWhereInput;
NOT?: NeighbourhoodWhereInput[] | NeighbourhoodWhereInput;
}
export interface PaypalInformationCreateOneWithoutPaymentAccountInput {
create?: PaypalInformationCreateWithoutPaymentAccountInput;
connect?: PaypalInformationWhereUniqueInput;
}
export interface NodeNode {
id: ID_Output;
}
export interface ViewsPreviousValues {
id: ID_Output;
lastWeek: Int;
}
export interface ViewsPreviousValuesPromise
extends Promise,
Fragmentable {
id: () => Promise;
lastWeek: () => Promise;
}
export interface ViewsPreviousValuesSubscription
extends Promise>,
Fragmentable {
id: () => Promise>;
lastWeek: () => Promise>;
}
export interface CityConnection {}
export interface CityConnectionPromise
extends Promise,
Fragmentable {
pageInfo: () => T;
edges: >() => T;
aggregate: () => T;
}
export interface CityConnectionSubscription
extends Promise>,
Fragmentable {
pageInfo: () => T;
edges: >>() => T;
aggregate: () => T;
}
export interface Experience {
id: ID_Output;
title: String;
pricePerPerson: Int;
popularity: Int;
}
export interface ExperiencePromise extends Promise, Fragmentable {
id: () => Promise;
category: () => T;
title: () => Promise;
host: () => T;
location: () => T;
pricePerPerson: () => Promise;
reviews: >(
args?: {
where?: ReviewWhereInput;
orderBy?: ReviewOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => T;
preview: () => T;
popularity: () => Promise;
}
export interface ExperienceSubscription
extends Promise>,
Fragmentable {
id: () => Promise>;
category: () => T;
title: () => Promise>;
host: () => T;
location: () => T;
pricePerPerson: () => Promise>;
reviews: >>(
args?: {
where?: ReviewWhereInput;
orderBy?: ReviewOrderByInput;
skip?: Int;
after?: String;
before?: String;
first?: Int;
last?: Int;
}
) => T;
preview: () => T;
popularity: () => Promise>;
}
export interface AggregateBooking {
count: Int;
}
export interface AggregateBookingPromise
extends Promise,
Fragmentable {
count: () => Promise;
}
export interface AggregateBookingSubscription
extends Promise>,
Fragmentable {
count: () => Promise>;
}
export interface ExperienceCategory {
id: ID_Output;
mainColor: String;
name: String;
}
export interface ExperienceCategoryPromise
extends Promise,
Fragmentable {
id: () => Promise;
mainColor: () => Promise;
name: () => Promise;
experience: () => T;
}
export interface ExperienceCategorySubscription
extends Promise>,
Fragmentable {
id: () => Promise>;
mainColor: () => Promise>;
name: () => Promise>;
experience: () => T;
}
export interface CityEdge {
cursor: String;
}
export interface CityEdgePromise extends Promise, Fragmentable {
node: () => T;
cursor: () => Promise;
}
export interface CityEdgeSubscription
extends Promise>,
Fragmentable {
node: () => T;
cursor: () => Promise>;
}
export interface ReviewPreviousValues {
id: ID_Output;
createdAt: DateTimeOutput;
text: String;
stars: Int;
accuracy: Int;
location: Int;
checkIn: Int;
value: Int;
cleanliness: Int;
communication: Int;
}
export interface ReviewPreviousValuesPromise
extends Promise,
Fragmentable {
id: () => Promise;
createdAt: () => Promise;
text: () => Promise;
stars: () => Promise;
accuracy: () => Promise;
location: () => Promise;
checkIn: () => Promise;
value: () => Promise;
cleanliness: () => Promise;
communication: () => Promise;
}
export interface ReviewPreviousValuesSubscription
extends Promise>,
Fragmentable {
id: () => Promise>;
createdAt: () => Promise>;
text: () => Promise>;
stars: () => Promise>;
accuracy: () => Promise>;
location: () => Promise>;
checkIn: () => Promise>;
value: () => Promise>;
cleanliness: () => Promise>;
communication: () => Promise>;
}
export interface BatchPayload {
count: Long;
}
export interface BatchPayloadPromise
extends Promise,
Fragmentable {
count: () => Promise;
}
export interface BatchPayloadSubscription
extends Promise>,
Fragmentable {
count: () => Promise>;
}
export interface BookingEdge {
cursor: String;
}
export interface BookingEdgePromise extends Promise, Fragmentable {
node: () => T;
cursor: () => Promise;
}
export interface BookingEdgeSubscription
extends Promise>,
Fragmentable {
node: () => T;
cursor: () => Promise>;
}
export interface Review {
id: ID_Output;
createdAt: DateTimeOutput;
text: String;
stars: Int;
accuracy: Int;
location: Int;
checkIn: Int;
value: Int;
cleanliness: Int;
communication: Int;
}
export interface ReviewPromise extends Promise, Fragmentable {
id: () => Promise;
createdAt: () => Promise;
text: () => Promise;
stars: () => Promise;
accuracy: () => Promise;
location: () => Promise;
checkIn: () => Promise;
value: () => Promise;
cleanliness: () => Promise;
communication: () => Promise;
place: () => T;
experience: () => T;
}
export interface ReviewSubscription
extends Promise>,
Fragmentable {
id: () => Promise>;
createdAt: () => Promise>;
text: () => Promise>;
stars: () => Promise>;
accuracy: () => Promise>;
location: () => Promise>;
checkIn: () => Promise>;
value: () => Promise>;
cleanliness: () => Promise>;
communication: () => Promise>;
place: () => T;
experience: () => T;
}
export interface ViewsConnection {}
export interface ViewsConnectionPromise
extends Promise,
Fragmentable {
pageInfo: () => T;
edges: >() => T;
aggregate: () => T;
}
export interface ViewsConnectionSubscription
extends Promise>,
Fragmentable {
pageInfo: () => T;
edges: >>() => T;
aggregate: () => T;
}
export interface AggregateViews {
count: Int;
}
export interface AggregateViewsPromise
extends Promise,
Fragmentable {
count: () => Promise;
}
export interface AggregateViewsSubscription
extends Promise>,
Fragmentable {
count: () => Promise>;
}
export interface AggregateUser {
count: Int;
}
export interface AggregateUserPromise
extends Promise,
Fragmentable {
count: () => Promise;
}
export interface AggregateUserSubscription
extends Promise>,
Fragmentable {
count: () => Promise>;
}
export interface BookingConnection {}
export interface BookingConnectionPromise
extends Promise,
Fragmentable {
pageInfo: () => T;
edges: >() => T;
aggregate: () => T;
}
export interface BookingConnectionSubscription
extends Promise>,
Fragmentable {
pageInfo: () => T;
edges: >>() => T;
aggregate: () => T;
}
export interface UserConnection {}
export interface UserConnectionPromise
extends Promise,
Fragmentable {
pageInfo: () => T;
edges: >() => T;
aggregate: () => T;
}
export interface UserConnectionSubscription
extends Promise>,
Fragmentable {
pageInfo: () => T;
edges: >>() => T;
aggregate: () => T;
}
export interface Amenities {
id: ID_Output;
elevator: Boolean;
petsAllowed: Boolean;
internet: Boolean;
kitchen: Boolean;
wirelessInternet: Boolean;
familyKidFriendly: Boolean;
freeParkingOnPremises: Boolean;
hotTub: Boolean;
pool: Boolean;
smokingAllowed: Boolean;
wheelchairAccessible: Boolean;
breakfast: Boolean;
cableTv: Boolean;
suitableForEvents: Boolean;
dryer: Boolean;
washer: Boolean;
indoorFireplace: Boolean;
tv: Boolean;
heating: Boolean;
hangers: Boolean;
iron: Boolean;
hairDryer: Boolean;
doorman: Boolean;
paidParkingOffPremises: Boolean;
freeParkingOnStreet: Boolean;
gym: Boolean;
airConditioning: Boolean;
shampoo: Boolean;
essentials: Boolean;
laptopFriendlyWorkspace: Boolean;
privateEntrance: Boolean;
buzzerWirelessIntercom: Boolean;
babyBath: Boolean;
babyMonitor: Boolean;
babysitterRecommendations: Boolean;
bathtub: Boolean;
changingTable: Boolean;
childrensBooksAndToys: Boolean;
childrensDinnerware: Boolean;
crib: Boolean;
}
export interface AmenitiesPromise extends Promise, Fragmentable {
id: () => Promise;
place: () => T;
elevator: () => Promise;
petsAllowed: () => Promise;
internet: () => Promise;
kitchen: () => Promise;
wirelessInternet: () => Promise;
familyKidFriendly: () => Promise;
freeParkingOnPremises: () => Promise;
hotTub: () => Promise;
pool: () => Promise;
smokingAllowed: () => Promise;
wheelchairAccessible: () => Promise;
breakfast: () => Promise;
cableTv: () => Promise;
suitableForEvents: () => Promise;
dryer: () => Promise;
washer: () => Promise;
indoorFireplace: () => Promise;
tv: () => Promise;
heating: () => Promise;
hangers: () => Promise;
iron: () => Promise;
hairDryer: () => Promise;
doorman: () => Promise;
paidParkingOffPremises: () => Promise;
freeParkingOnStreet: () => Promise;
gym: () => Promise;
airConditioning: () => Promise;
shampoo: () => Promise;
essentials: () => Promise;
laptopFriendlyWorkspace: () => Promise;
privateEntrance: () => Promise;
buzzerWirelessIntercom: () => Promise;
babyBath: () => Promise;
babyMonitor: () => Promise;
babysitterRecommendations: () => Promise;
bathtub: () => Promise;
changingTable: () => Promise;
childrensBooksAndToys: () => Promise;
childrensDinnerware: () => Promise;
crib: () => Promise;
}
export interface AmenitiesSubscription
extends Promise>,
Fragmentable {
id: () => Promise>;
place: () => T;
elevator: () => Promise>;
petsAllowed: () => Promise>;
internet: () => Promise>;
kitchen: () => Promise>;
wirelessInternet: () => Promise>;
familyKidFriendly: () => Promise>;
freeParkingOnPremises: () => Promise>;
hotTub: () => Promise>;
pool: () => Promise>;
smokingAllowed: () => Promise