├── apollo ├── queries │ ├── AllCars.graphql │ └── Car.graphql ├── network-interfaces │ └── default.ts └── schema │ └── index.ts ├── typings ├── process.d.ts ├── vue-apollo.d.ts └── vue.d.ts ├── models ├── system.ts ├── graphics.ts └── auth.ts ├── .gitignore ├── plugins └── nuxt-class-component.js ├── index.d.ts ├── modules ├── typescript │ └── index.js └── vue-apollo │ ├── index.js │ └── plugin.js ├── store ├── index.ts └── auth.ts ├── tsconfig.json ├── nuxt.config.js ├── README.md ├── LICENSE ├── pages ├── index.vue └── car │ └── _id.vue └── package.json /apollo/queries/AllCars.graphql: -------------------------------------------------------------------------------- 1 | query AllCars { 2 | allCars { 3 | id 4 | make 5 | model 6 | year 7 | } 8 | } -------------------------------------------------------------------------------- /typings/process.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare namespace NodeJS { 3 | export interface Process { 4 | browser: boolean 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /apollo/queries/Car.graphql: -------------------------------------------------------------------------------- 1 | query Car($id: ID!) { 2 | Car(id: $id) { 3 | make 4 | model 5 | photoURL 6 | price 7 | } 8 | } -------------------------------------------------------------------------------- /models/system.ts: -------------------------------------------------------------------------------- 1 | 2 | export type Nullable = T | null 3 | 4 | export type Existable = Nullable | undefined 5 | 6 | export type Voidable = T | void 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | 4 | # logs 5 | npm-debug.log 6 | 7 | # Nuxt build 8 | .nuxt 9 | 10 | # Nuxt generate 11 | dist 12 | 13 | # npm & Yarn 14 | yarn.lock -------------------------------------------------------------------------------- /models/graphics.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum ImageType { 3 | url, 4 | svg, 5 | blob 6 | } 7 | 8 | export class Image { 9 | constructor (readonly type: ImageType, readonly value: string) { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /models/auth.ts: -------------------------------------------------------------------------------- 1 | import { Image } from './graphics' 2 | import { Nullable } from './system' 3 | 4 | export class User { 5 | name: string 6 | email: string 7 | image: Image 8 | } 9 | 10 | export type UserData = Nullable 11 | -------------------------------------------------------------------------------- /plugins/nuxt-class-component.js: -------------------------------------------------------------------------------- 1 | import Component from 'vue-class-component' 2 | 3 | Component.registerHooks([ 4 | // Vue Apollo 5 | 'apollo', 6 | // Nuxt 7 | 'asyncData', 8 | 'beforeRouteEnter', 9 | 'beforeRouteLeave', 10 | 'fetch', 11 | 'head', 12 | 'layout', 13 | 'middleware', 14 | 'scrollToTop', 15 | 'transition', 16 | 'validate' 17 | ]) 18 | 19 | export default Component 20 | -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | import Vue from 'vue' 3 | export default typeof Vue 4 | } 5 | 6 | declare module "*.gql" { 7 | import { DocumentNode } from 'graphql' 8 | 9 | const content: DocumentNode 10 | export default content 11 | } 12 | 13 | declare module "*.graphql" { 14 | import { DocumentNode } from 'graphql' 15 | 16 | const content: DocumentNode 17 | export default content 18 | } 19 | -------------------------------------------------------------------------------- /modules/typescript/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (moduleOptions) { 2 | // Extend build 3 | this.extendBuild(config => { 4 | // Add TypeScript loader 5 | config.module.rules.push({ 6 | test: /\.ts$/, 7 | loader: 'ts-loader' 8 | }) 9 | // Add TypeScript loader for vue files 10 | for (var rule of config.module.rules) { 11 | if (rule.loader === 'vue-loader') { 12 | rule.query.loaders.ts = 'ts-loader?{"appendTsSuffixTo":["\\\\.vue$"]}' 13 | } 14 | } 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /typings/vue-apollo.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare module "vue-apollo" { 3 | import { ApolloClient } from 'apollo-client'; 4 | import Vue, { PluginObject, PluginFunction } from 'vue'; 5 | 6 | export const addGraphQLSubscriptions: {}; 7 | 8 | class VueApollo implements PluginObject<{}> { 9 | [key: string]: any; 10 | install: PluginFunction<{}>; 11 | constructor (options: { defaultClient: ApolloClient }); 12 | static install (pVue: typeof Vue, options?: {} | undefined): void; 13 | } 14 | export default VueApollo; 15 | } 16 | -------------------------------------------------------------------------------- /store/index.ts: -------------------------------------------------------------------------------- 1 | import { Store as RootStore, Module } from 'vuex' 2 | 3 | import { AuthState } from './auth' 4 | 5 | export interface IRootState extends IndexState { 6 | auth: AuthState 7 | } 8 | 9 | export class IndexState { 10 | leftPanel: boolean = true 11 | } 12 | 13 | export type Store = RootStore 14 | 15 | const indexModule: Module = { 16 | 17 | state: () => (new IndexState()), 18 | 19 | getters: { 20 | leftPanel: (state) => state.leftPanel 21 | }, 22 | 23 | mutations: { 24 | toggleLeftPanel (state) { 25 | state.leftPanel = !state.leftPanel 26 | } 27 | } 28 | } 29 | export default indexModule 30 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": [ 5 | "dom", 6 | "es2015", 7 | "esnext.asynciterable" 8 | ], 9 | "module": "es2015", 10 | "moduleResolution": "node", 11 | "jsx": "preserve", 12 | "experimentalDecorators": true, 13 | "noImplicitAny": false, 14 | "noImplicitThis": false, 15 | "strictNullChecks": true, 16 | "removeComments": true, 17 | "suppressImplicitAnyIndexErrors": true, 18 | "allowSyntheticDefaultImports": true, 19 | "allowJs": true, 20 | "sourceMap": true, 21 | "baseUrl": ".", 22 | "paths": { 23 | "~/*": [ 24 | "./*" 25 | ] 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /store/auth.ts: -------------------------------------------------------------------------------- 1 | import { Module } from 'vuex' 2 | 3 | import { IRootState } from 'store' 4 | import { UserData } from '~/models/auth' 5 | 6 | export class AuthState { 7 | user: UserData 8 | token: string = '' 9 | authenticated: boolean = false 10 | } 11 | 12 | const tokenType = 'Bearer' 13 | 14 | const authModule: Module = { 15 | 16 | state: () => (new AuthState()), 17 | 18 | getters: { 19 | token: state => state.token, 20 | authorizationToken: state => state.token && `${tokenType} ${state.token}`, 21 | }, 22 | 23 | mutations: { 24 | setUser (state, user: UserData) { 25 | state.user = user 26 | }, 27 | setToken (state, token: string) { 28 | state.token = token 29 | state.authenticated = !!token 30 | } 31 | } 32 | } 33 | export default authModule 34 | -------------------------------------------------------------------------------- /nuxt.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | baseUrl: process.env.BASE_URL || 'http://127.0.0.1:3000' 4 | }, 5 | head: { 6 | title: 'Cars with Apollo', 7 | meta: [ 8 | { charset: 'utf-8' }, 9 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, 10 | { hid: 'description', name: 'description', content: 'A simple vue-apollo typescript example app' } 11 | ], 12 | script: [ 13 | { src: 'http://cdn.polyfill.io/v1/polyfill.min.js?features=Array.prototype.includes,es6,EventSource' } 14 | ], 15 | link: [ 16 | { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } 17 | ] 18 | }, 19 | loading: { color: '#3B8070' }, 20 | plugins: [ 21 | '~/plugins/nuxt-class-component' 22 | ], 23 | modules: [ 24 | '~/modules/vue-apollo', 25 | '~/modules/typescript' 26 | ], 27 | apollo: { 28 | networkInterfaces: { 29 | default: '~/apollo/network-interfaces/default' 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-apollo-typescript-example 2 | 3 | > 4 | ## Reference 5 | 6 | [Vue](https://vuejs.org/index.html) 7 | 8 | [Nuxt](https://nuxtjs.org/guide) 9 | 10 | [graphql-code-generator](https://github.com/dotansimha/graphql-code-generator) 11 | 12 | `./modules/typescript` [nuxt-typescript](https://github.com/nuxt/nuxt.js/tree/master/examples/typescript) 13 | 14 | `./modules/vue-apollo` [apollo-module](https://github.com/nuxt-community/apollo-module) 15 | 16 | ## Build Setup 17 | 18 | ``` bash 19 | # install dependencies 20 | $ npm install # Or yarn install 21 | 22 | # serve with hot reload at localhost:3000 23 | $ npm run dev 24 | 25 | # build for production and launch server 26 | $ npm run build 27 | $ npm start 28 | 29 | # generate static project 30 | $ npm run generate 31 | 32 | # Generate graphql typings from local schema 33 | $ npm run gql-gen-local 34 | 35 | # Generate graphql typings from remote schema 36 | $ npm run gql-gen-url 37 | 38 | ``` 39 | 40 | For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js). 41 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 OniVe 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /pages/index.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 40 | 41 | 58 | -------------------------------------------------------------------------------- /apollo/network-interfaces/default.ts: -------------------------------------------------------------------------------- 1 | import { createNetworkInterface } from 'apollo-client' 2 | import { Store } from '~/store' 3 | 4 | // import { SubscriptionClient, addGraphQLSubscriptions } from 'subscriptions-transport-ws' 5 | 6 | const webApi = 'https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu' 7 | const wss = 'wss://subscriptions.graph.cool/v1/cj1dqiyvqqnmj0113yuqamkuu' 8 | 9 | export default function defaultNetworkInterface ({ isServer, store }: { isServer: boolean, store: Store }) { 10 | const networkInterface = createNetworkInterface({ uri: webApi }) 11 | 12 | networkInterface.use([{ 13 | applyMiddleware (req, next) { 14 | const authorizationToken = store.getters['auth/authorizationToken'] 15 | if (store.state.auth.authenticated && authorizationToken) { 16 | if (!req.options.headers) { 17 | req.options.headers = new Headers() 18 | } 19 | req.options.headers.authorization = authorizationToken 20 | } 21 | next() 22 | } 23 | }]) 24 | 25 | return networkInterface 26 | // return isServer 27 | // ? networkInterface 28 | // : addGraphQLSubscriptions( 29 | // networkInterface, 30 | // new SubscriptionClient(wss, { reconnect: true })) 31 | } 32 | -------------------------------------------------------------------------------- /typings/vue.d.ts: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueRouter from 'vue-router' 3 | import { Store } from 'vuex' 4 | 5 | declare module 'vue/types' { 6 | 7 | export interface IParams { 8 | [index: string]: any 9 | } 10 | export interface RedirectHandle { 11 | (status: number, path: string, query?: string): void 12 | (path: string, query?: string): void 13 | } 14 | 15 | export interface NuxtContext { 16 | isClient: boolean 17 | isServer: boolean 18 | isDev: boolean 19 | route: VueRouter 20 | store: Store 21 | env: object 22 | params: IParams 23 | query: object 24 | req?: Request 25 | res?: Response 26 | redirect: RedirectHandle 27 | error: (params: IParams) => void 28 | } 29 | 30 | export interface VueApollo { 31 | 32 | } 33 | } 34 | 35 | declare module 'vue/types/vue' { 36 | 37 | interface Vue { 38 | $nuxt: object 39 | $router: VueRouter 40 | $apollo: object 41 | 42 | validate (params: Vue.NuxtContext): boolean 43 | asyncData (context: Vue.NuxtContext): Promise 44 | 45 | apollo: object 46 | } 47 | } 48 | 49 | declare module 'vue/types/options' { 50 | interface ComponentOptions { 51 | apollo?: object; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /pages/car/_id.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 53 | 54 | 59 | -------------------------------------------------------------------------------- /modules/vue-apollo/index.js: -------------------------------------------------------------------------------- 1 | const path = require('path') 2 | 3 | module.exports = function (moduleOptions) { 4 | const options = Object.assign({}, this.options.apollo, moduleOptions) 5 | options.networkInterfaces = options.networkInterfaces || {} 6 | 7 | const networkInterfaces = options.networkInterfaces 8 | if (Object.keys(networkInterfaces).length === 0) throw new Error('[Apollo module] No network interfaces found in apollo configuration') 9 | if (!networkInterfaces.default) throw new Error('[Apollo module] No default network interface found in apollo configuration') 10 | 11 | // Sanitize networkInterfaces option 12 | Object.keys(networkInterfaces).forEach((key) => { 13 | if (typeof networkInterfaces[key] !== 'string' || (typeof networkInterfaces[key] === 'string' && /^https?:\/\//.test(networkInterfaces[key]))) { 14 | throw new Error(`[Apollo module] Network interface "${key}" should be a path to a network interface.`) 15 | } 16 | }) 17 | 18 | // Add plugin for vue-apollo 19 | this.addPlugin({ 20 | src: path.join(__dirname, 'plugin.js'), 21 | options: options 22 | }) 23 | 24 | // Add vue-apollo and apollo-client in vendor 25 | this.addVendor(['vue-apollo', 'apollo-client']) 26 | // Add graphql loader 27 | this.extendBuild((config) => { 28 | config.resolve.extensions = config.resolve.extensions.concat('.graphql', '.gql') 29 | config.module.rules.push({ 30 | test: /\.(graphql|gql)$/, 31 | use: 'graphql-tag/loader' 32 | }) 33 | }) 34 | } 35 | -------------------------------------------------------------------------------- /modules/vue-apollo/plugin.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueApollo from 'vue-apollo' 3 | import { ApolloClient, createNetworkInterface } from 'apollo-client' 4 | import 'isomorphic-fetch' 5 | 6 | Vue.use(VueApollo) 7 | 8 | export default ({ isClient, isServer, app, route, store, beforeNuxtRender }) => { 9 | 10 | const providerOptions = { 11 | clients: {} 12 | } 13 | 14 | <% Object.keys(options.networkInterfaces).forEach((key) => { %> 15 | let networkInterface = require('<%= options.networkInterfaces[key] %>') 16 | networkInterface = networkInterface.default || networkInterface 17 | if (networkInterface instanceof Function) { 18 | networkInterface = networkInterface({ isClient, isServer, store }) 19 | } 20 | const <%= key %>Client = new ApolloClient({ 21 | networkInterface, 22 | ...(isServer ? { 23 | ssrMode: true 24 | } : { 25 | initialState: window.__NUXT__.apollo.<%= key === 'default' ? 'defaultClient' : key %>, 26 | ssrForceFetchDelay: 100 27 | }) 28 | }) 29 | <% if (key === 'default') { %> 30 | providerOptions.<%= key %>Client = <%= key %>Client 31 | <% } else { %> 32 | providerOptions.clients.<%= key %> = <%= key %>Client 33 | <% } %> 34 | <% }) %> 35 | 36 | app.apolloProvider = new VueApollo(providerOptions) 37 | 38 | if (isServer) { 39 | beforeNuxtRender(async ({ Components, nuxtState }) => { 40 | await app.apolloProvider.prefetchAll({ route }, Components) 41 | nuxtState.apollo = app.apolloProvider.getStates() 42 | }) 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-apollo-typescript-example", 3 | "version": "1.0.2", 4 | "description": "A simple vue-apollo typescript example app", 5 | "author": "Igor Kuritsin (OniVe) ", 6 | "license": "MIT", 7 | "types": "./index.d.ts", 8 | "repository": { 9 | "type": "git", 10 | "url": "git+https://github.com/OniVe/vue-apollo-typescript-example" 11 | }, 12 | "files": [ 13 | "apollo", 14 | "models", 15 | "modules", 16 | "pages", 17 | "plugins", 18 | "store", 19 | "typings", 20 | "index.d.ts", 21 | "nuxt.config.js", 22 | "tsconfig.json" 23 | ], 24 | "scripts": { 25 | "dev": "nuxt", 26 | "build": "nuxt build", 27 | "start": "nuxt start", 28 | "generate": "nuxt generate", 29 | "gql-gen-local": "gql-gen --file ./apollo/schema/schema.json --template ts --out ./apollo/schema/index.ts ./apollo/queries/**/*.graphql", 30 | "gql-gen-url": "gql-gen --url https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu --template ts --out ./apollo/schema/index.ts ./apollo/queries/**/*.graphql" 31 | }, 32 | "config": { 33 | "nuxt": { 34 | "host": "127.0.0.1", 35 | "port": 3000 36 | } 37 | }, 38 | "keywords": [ 39 | "apollo-client", 40 | "nuxt", 41 | "nuxt.js", 42 | "nuxtjs", 43 | "typescript", 44 | "vue.js", 45 | "vuejs", 46 | "vue universal", 47 | "vue ssr", 48 | "vue isomorphic", 49 | "vue versatile", 50 | "vue-apollo" 51 | ], 52 | "dependencies": { 53 | "apollo-client": "^1.9.1", 54 | "isomorphic-fetch": "^2.2.1", 55 | "nuxt": "^1.0.0-rc3", 56 | "vue-apollo": "^2.1.0-beta.21", 57 | "vue-class-component": "^5.0.2", 58 | "vue-property-decorator": "^5.2.1", 59 | "vuex-class": "^0.2.0" 60 | }, 61 | "devDependencies": { 62 | "@types/lru-cache": "^4.0.0", 63 | "@types/node": "^8.0.19", 64 | "@types/vue": "^2.0.0", 65 | "graphql-code-generator": "^0.8.10", 66 | "pug": "^2.0.0-rc.3", 67 | "pug-loader": "^2.3.0", 68 | "stylus": "^0.54.5", 69 | "stylus-loader": "^3.0.1", 70 | "ts-loader": "^2.3.2", 71 | "typescript": "^2.4.2" 72 | } 73 | } -------------------------------------------------------------------------------- /apollo/schema/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | 3 | 4 | export type DateTime = any; 5 | 6 | /* The `BigDecimal` scalar type represents signed fractional values with arbitrary precision. */ 7 | export type BigDecimal = any; 8 | 9 | /* The `BigInt` scalar type represents non-fractional signed whole numeric values. BigInt can represent arbitrary big values. */ 10 | export type BigInt = any; 11 | 12 | /* The `Long` scalar type represents non-fractional signed whole numeric values. Long can represent values between -(2^63) and 2^63 - 1. */ 13 | export type Long = any; 14 | /* An object with an ID */ 15 | export interface Node { 16 | id: string; /* The id of the object. */ 17 | } 18 | 19 | export interface Query { 20 | allCars: Car[]; 21 | allFiles: File[]; 22 | allUsers: User[]; 23 | _allCarsMeta: _QueryMeta; 24 | _allFilesMeta: _QueryMeta; 25 | _allUsersMeta: _QueryMeta; 26 | Car: Car | null; 27 | File: File | null; 28 | User: User | null; 29 | user: User | null; 30 | node: Node | null; /* Fetches an object given its ID */ 31 | } 32 | 33 | export interface Car extends Node { 34 | createdAt: DateTime; 35 | id: string; 36 | make: string | null; 37 | model: string | null; 38 | photoURL: string | null; 39 | price: number | null; 40 | updatedAt: DateTime; 41 | year: number | null; 42 | } 43 | 44 | export interface File extends Node { 45 | contentType: string; 46 | createdAt: DateTime; 47 | id: string; 48 | name: string; 49 | secret: string; 50 | size: number; 51 | updatedAt: DateTime; 52 | url: string; 53 | } 54 | 55 | export interface User extends Node { 56 | createdAt: DateTime; 57 | id: string; 58 | updatedAt: DateTime; 59 | } 60 | /* Meta information about the query. */ 61 | export interface _QueryMeta { 62 | count: number; 63 | } 64 | 65 | export interface Mutation { 66 | createCar: Car | null; 67 | createFile: File | null; 68 | updateCar: Car | null; 69 | updateFile: File | null; 70 | updateUser: User | null; 71 | updateOrCreateCar: Car | null; 72 | updateOrCreateFile: File | null; 73 | updateOrCreateUser: User | null; 74 | deleteCar: Car | null; 75 | deleteFile: File | null; 76 | deleteUser: User | null; 77 | createUser: User | null; 78 | } 79 | 80 | export interface Subscription { 81 | Car: CarSubscriptionPayload | null; 82 | File: FileSubscriptionPayload | null; 83 | User: UserSubscriptionPayload | null; 84 | } 85 | 86 | export interface CarSubscriptionPayload { 87 | mutation: _ModelMutationType; 88 | node: Car | null; 89 | updatedFields: string[]; 90 | previousValues: CarPreviousValues | null; 91 | } 92 | 93 | export interface CarPreviousValues { 94 | createdAt: DateTime; 95 | id: string; 96 | make: string | null; 97 | model: string | null; 98 | photoURL: string | null; 99 | price: number | null; 100 | updatedAt: DateTime; 101 | year: number | null; 102 | } 103 | 104 | export interface FileSubscriptionPayload { 105 | mutation: _ModelMutationType; 106 | node: File | null; 107 | updatedFields: string[]; 108 | previousValues: FilePreviousValues | null; 109 | } 110 | 111 | export interface FilePreviousValues { 112 | contentType: string; 113 | createdAt: DateTime; 114 | id: string; 115 | name: string; 116 | secret: string; 117 | size: number; 118 | updatedAt: DateTime; 119 | url: string; 120 | } 121 | 122 | export interface UserSubscriptionPayload { 123 | mutation: _ModelMutationType; 124 | node: User | null; 125 | updatedFields: string[]; 126 | previousValues: UserPreviousValues | null; 127 | } 128 | 129 | export interface UserPreviousValues { 130 | createdAt: DateTime; 131 | id: string; 132 | updatedAt: DateTime; 133 | } 134 | 135 | export interface CarFilter { 136 | AND: CarFilter[]; /* Logical AND on all given filters. */ 137 | OR: CarFilter[]; /* Logical OR on all given filters. */ 138 | createdAt: DateTime | null; 139 | createdAt_not: DateTime | null; /* All values that are not equal to given value. */ 140 | createdAt_in: DateTime[]; /* All values that are contained in given list. */ 141 | createdAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 142 | createdAt_lt: DateTime | null; /* All values less than the given value. */ 143 | createdAt_lte: DateTime | null; /* All values less than or equal the given value. */ 144 | createdAt_gt: DateTime | null; /* All values greater than the given value. */ 145 | createdAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 146 | id: string | null; 147 | id_not: string | null; /* All values that are not equal to given value. */ 148 | id_in: string[]; /* All values that are contained in given list. */ 149 | id_not_in: string[]; /* All values that are not contained in given list. */ 150 | id_lt: string | null; /* All values less than the given value. */ 151 | id_lte: string | null; /* All values less than or equal the given value. */ 152 | id_gt: string | null; /* All values greater than the given value. */ 153 | id_gte: string | null; /* All values greater than or equal the given value. */ 154 | id_contains: string | null; /* All values containing the given string. */ 155 | id_not_contains: string | null; /* All values not containing the given string. */ 156 | id_starts_with: string | null; /* All values starting with the given string. */ 157 | id_not_starts_with: string | null; /* All values not starting with the given string. */ 158 | id_ends_with: string | null; /* All values ending with the given string. */ 159 | id_not_ends_with: string | null; /* All values not ending with the given string. */ 160 | make: string | null; 161 | make_not: string | null; /* All values that are not equal to given value. */ 162 | make_in: string[]; /* All values that are contained in given list. */ 163 | make_not_in: string[]; /* All values that are not contained in given list. */ 164 | make_lt: string | null; /* All values less than the given value. */ 165 | make_lte: string | null; /* All values less than or equal the given value. */ 166 | make_gt: string | null; /* All values greater than the given value. */ 167 | make_gte: string | null; /* All values greater than or equal the given value. */ 168 | make_contains: string | null; /* All values containing the given string. */ 169 | make_not_contains: string | null; /* All values not containing the given string. */ 170 | make_starts_with: string | null; /* All values starting with the given string. */ 171 | make_not_starts_with: string | null; /* All values not starting with the given string. */ 172 | make_ends_with: string | null; /* All values ending with the given string. */ 173 | make_not_ends_with: string | null; /* All values not ending with the given string. */ 174 | model: string | null; 175 | model_not: string | null; /* All values that are not equal to given value. */ 176 | model_in: string[]; /* All values that are contained in given list. */ 177 | model_not_in: string[]; /* All values that are not contained in given list. */ 178 | model_lt: string | null; /* All values less than the given value. */ 179 | model_lte: string | null; /* All values less than or equal the given value. */ 180 | model_gt: string | null; /* All values greater than the given value. */ 181 | model_gte: string | null; /* All values greater than or equal the given value. */ 182 | model_contains: string | null; /* All values containing the given string. */ 183 | model_not_contains: string | null; /* All values not containing the given string. */ 184 | model_starts_with: string | null; /* All values starting with the given string. */ 185 | model_not_starts_with: string | null; /* All values not starting with the given string. */ 186 | model_ends_with: string | null; /* All values ending with the given string. */ 187 | model_not_ends_with: string | null; /* All values not ending with the given string. */ 188 | photoURL: string | null; 189 | photoURL_not: string | null; /* All values that are not equal to given value. */ 190 | photoURL_in: string[]; /* All values that are contained in given list. */ 191 | photoURL_not_in: string[]; /* All values that are not contained in given list. */ 192 | photoURL_lt: string | null; /* All values less than the given value. */ 193 | photoURL_lte: string | null; /* All values less than or equal the given value. */ 194 | photoURL_gt: string | null; /* All values greater than the given value. */ 195 | photoURL_gte: string | null; /* All values greater than or equal the given value. */ 196 | photoURL_contains: string | null; /* All values containing the given string. */ 197 | photoURL_not_contains: string | null; /* All values not containing the given string. */ 198 | photoURL_starts_with: string | null; /* All values starting with the given string. */ 199 | photoURL_not_starts_with: string | null; /* All values not starting with the given string. */ 200 | photoURL_ends_with: string | null; /* All values ending with the given string. */ 201 | photoURL_not_ends_with: string | null; /* All values not ending with the given string. */ 202 | price: number | null; 203 | price_not: number | null; /* All values that are not equal to given value. */ 204 | price_in: number[]; /* All values that are contained in given list. */ 205 | price_not_in: number[]; /* All values that are not contained in given list. */ 206 | price_lt: number | null; /* All values less than the given value. */ 207 | price_lte: number | null; /* All values less than or equal the given value. */ 208 | price_gt: number | null; /* All values greater than the given value. */ 209 | price_gte: number | null; /* All values greater than or equal the given value. */ 210 | updatedAt: DateTime | null; 211 | updatedAt_not: DateTime | null; /* All values that are not equal to given value. */ 212 | updatedAt_in: DateTime[]; /* All values that are contained in given list. */ 213 | updatedAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 214 | updatedAt_lt: DateTime | null; /* All values less than the given value. */ 215 | updatedAt_lte: DateTime | null; /* All values less than or equal the given value. */ 216 | updatedAt_gt: DateTime | null; /* All values greater than the given value. */ 217 | updatedAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 218 | year: number | null; 219 | year_not: number | null; /* All values that are not equal to given value. */ 220 | year_in: number[]; /* All values that are contained in given list. */ 221 | year_not_in: number[]; /* All values that are not contained in given list. */ 222 | year_lt: number | null; /* All values less than the given value. */ 223 | year_lte: number | null; /* All values less than or equal the given value. */ 224 | year_gt: number | null; /* All values greater than the given value. */ 225 | year_gte: number | null; /* All values greater than or equal the given value. */ 226 | } 227 | 228 | export interface FileFilter { 229 | AND: FileFilter[]; /* Logical AND on all given filters. */ 230 | OR: FileFilter[]; /* Logical OR on all given filters. */ 231 | contentType: string | null; 232 | contentType_not: string | null; /* All values that are not equal to given value. */ 233 | contentType_in: string[]; /* All values that are contained in given list. */ 234 | contentType_not_in: string[]; /* All values that are not contained in given list. */ 235 | contentType_lt: string | null; /* All values less than the given value. */ 236 | contentType_lte: string | null; /* All values less than or equal the given value. */ 237 | contentType_gt: string | null; /* All values greater than the given value. */ 238 | contentType_gte: string | null; /* All values greater than or equal the given value. */ 239 | contentType_contains: string | null; /* All values containing the given string. */ 240 | contentType_not_contains: string | null; /* All values not containing the given string. */ 241 | contentType_starts_with: string | null; /* All values starting with the given string. */ 242 | contentType_not_starts_with: string | null; /* All values not starting with the given string. */ 243 | contentType_ends_with: string | null; /* All values ending with the given string. */ 244 | contentType_not_ends_with: string | null; /* All values not ending with the given string. */ 245 | createdAt: DateTime | null; 246 | createdAt_not: DateTime | null; /* All values that are not equal to given value. */ 247 | createdAt_in: DateTime[]; /* All values that are contained in given list. */ 248 | createdAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 249 | createdAt_lt: DateTime | null; /* All values less than the given value. */ 250 | createdAt_lte: DateTime | null; /* All values less than or equal the given value. */ 251 | createdAt_gt: DateTime | null; /* All values greater than the given value. */ 252 | createdAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 253 | id: string | null; 254 | id_not: string | null; /* All values that are not equal to given value. */ 255 | id_in: string[]; /* All values that are contained in given list. */ 256 | id_not_in: string[]; /* All values that are not contained in given list. */ 257 | id_lt: string | null; /* All values less than the given value. */ 258 | id_lte: string | null; /* All values less than or equal the given value. */ 259 | id_gt: string | null; /* All values greater than the given value. */ 260 | id_gte: string | null; /* All values greater than or equal the given value. */ 261 | id_contains: string | null; /* All values containing the given string. */ 262 | id_not_contains: string | null; /* All values not containing the given string. */ 263 | id_starts_with: string | null; /* All values starting with the given string. */ 264 | id_not_starts_with: string | null; /* All values not starting with the given string. */ 265 | id_ends_with: string | null; /* All values ending with the given string. */ 266 | id_not_ends_with: string | null; /* All values not ending with the given string. */ 267 | name: string | null; 268 | name_not: string | null; /* All values that are not equal to given value. */ 269 | name_in: string[]; /* All values that are contained in given list. */ 270 | name_not_in: string[]; /* All values that are not contained in given list. */ 271 | name_lt: string | null; /* All values less than the given value. */ 272 | name_lte: string | null; /* All values less than or equal the given value. */ 273 | name_gt: string | null; /* All values greater than the given value. */ 274 | name_gte: string | null; /* All values greater than or equal the given value. */ 275 | name_contains: string | null; /* All values containing the given string. */ 276 | name_not_contains: string | null; /* All values not containing the given string. */ 277 | name_starts_with: string | null; /* All values starting with the given string. */ 278 | name_not_starts_with: string | null; /* All values not starting with the given string. */ 279 | name_ends_with: string | null; /* All values ending with the given string. */ 280 | name_not_ends_with: string | null; /* All values not ending with the given string. */ 281 | secret: string | null; 282 | secret_not: string | null; /* All values that are not equal to given value. */ 283 | secret_in: string[]; /* All values that are contained in given list. */ 284 | secret_not_in: string[]; /* All values that are not contained in given list. */ 285 | secret_lt: string | null; /* All values less than the given value. */ 286 | secret_lte: string | null; /* All values less than or equal the given value. */ 287 | secret_gt: string | null; /* All values greater than the given value. */ 288 | secret_gte: string | null; /* All values greater than or equal the given value. */ 289 | secret_contains: string | null; /* All values containing the given string. */ 290 | secret_not_contains: string | null; /* All values not containing the given string. */ 291 | secret_starts_with: string | null; /* All values starting with the given string. */ 292 | secret_not_starts_with: string | null; /* All values not starting with the given string. */ 293 | secret_ends_with: string | null; /* All values ending with the given string. */ 294 | secret_not_ends_with: string | null; /* All values not ending with the given string. */ 295 | size: number | null; 296 | size_not: number | null; /* All values that are not equal to given value. */ 297 | size_in: number[]; /* All values that are contained in given list. */ 298 | size_not_in: number[]; /* All values that are not contained in given list. */ 299 | size_lt: number | null; /* All values less than the given value. */ 300 | size_lte: number | null; /* All values less than or equal the given value. */ 301 | size_gt: number | null; /* All values greater than the given value. */ 302 | size_gte: number | null; /* All values greater than or equal the given value. */ 303 | updatedAt: DateTime | null; 304 | updatedAt_not: DateTime | null; /* All values that are not equal to given value. */ 305 | updatedAt_in: DateTime[]; /* All values that are contained in given list. */ 306 | updatedAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 307 | updatedAt_lt: DateTime | null; /* All values less than the given value. */ 308 | updatedAt_lte: DateTime | null; /* All values less than or equal the given value. */ 309 | updatedAt_gt: DateTime | null; /* All values greater than the given value. */ 310 | updatedAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 311 | url: string | null; 312 | url_not: string | null; /* All values that are not equal to given value. */ 313 | url_in: string[]; /* All values that are contained in given list. */ 314 | url_not_in: string[]; /* All values that are not contained in given list. */ 315 | url_lt: string | null; /* All values less than the given value. */ 316 | url_lte: string | null; /* All values less than or equal the given value. */ 317 | url_gt: string | null; /* All values greater than the given value. */ 318 | url_gte: string | null; /* All values greater than or equal the given value. */ 319 | url_contains: string | null; /* All values containing the given string. */ 320 | url_not_contains: string | null; /* All values not containing the given string. */ 321 | url_starts_with: string | null; /* All values starting with the given string. */ 322 | url_not_starts_with: string | null; /* All values not starting with the given string. */ 323 | url_ends_with: string | null; /* All values ending with the given string. */ 324 | url_not_ends_with: string | null; /* All values not ending with the given string. */ 325 | } 326 | 327 | export interface UserFilter { 328 | AND: UserFilter[]; /* Logical AND on all given filters. */ 329 | OR: UserFilter[]; /* Logical OR on all given filters. */ 330 | createdAt: DateTime | null; 331 | createdAt_not: DateTime | null; /* All values that are not equal to given value. */ 332 | createdAt_in: DateTime[]; /* All values that are contained in given list. */ 333 | createdAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 334 | createdAt_lt: DateTime | null; /* All values less than the given value. */ 335 | createdAt_lte: DateTime | null; /* All values less than or equal the given value. */ 336 | createdAt_gt: DateTime | null; /* All values greater than the given value. */ 337 | createdAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 338 | id: string | null; 339 | id_not: string | null; /* All values that are not equal to given value. */ 340 | id_in: string[]; /* All values that are contained in given list. */ 341 | id_not_in: string[]; /* All values that are not contained in given list. */ 342 | id_lt: string | null; /* All values less than the given value. */ 343 | id_lte: string | null; /* All values less than or equal the given value. */ 344 | id_gt: string | null; /* All values greater than the given value. */ 345 | id_gte: string | null; /* All values greater than or equal the given value. */ 346 | id_contains: string | null; /* All values containing the given string. */ 347 | id_not_contains: string | null; /* All values not containing the given string. */ 348 | id_starts_with: string | null; /* All values starting with the given string. */ 349 | id_not_starts_with: string | null; /* All values not starting with the given string. */ 350 | id_ends_with: string | null; /* All values ending with the given string. */ 351 | id_not_ends_with: string | null; /* All values not ending with the given string. */ 352 | updatedAt: DateTime | null; 353 | updatedAt_not: DateTime | null; /* All values that are not equal to given value. */ 354 | updatedAt_in: DateTime[]; /* All values that are contained in given list. */ 355 | updatedAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 356 | updatedAt_lt: DateTime | null; /* All values less than the given value. */ 357 | updatedAt_lte: DateTime | null; /* All values less than or equal the given value. */ 358 | updatedAt_gt: DateTime | null; /* All values greater than the given value. */ 359 | updatedAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 360 | } 361 | 362 | export interface UpdateCar { 363 | id: string; 364 | make: string | null; 365 | model: string | null; 366 | photoURL: string | null; 367 | price: number | null; 368 | year: number | null; 369 | } 370 | 371 | export interface CreateCar { 372 | make: string | null; 373 | model: string | null; 374 | photoURL: string | null; 375 | price: number | null; 376 | year: number | null; 377 | } 378 | 379 | export interface UpdateFile { 380 | id: string; 381 | name: string | null; 382 | } 383 | 384 | export interface CreateFile { 385 | name: string; 386 | } 387 | 388 | export interface UpdateUser { 389 | id: string; 390 | } 391 | 392 | export interface CarSubscriptionFilter { 393 | AND: CarSubscriptionFilter[]; /* Logical AND on all given filters. */ 394 | OR: CarSubscriptionFilter[]; /* Logical OR on all given filters. */ 395 | mutation_in: _ModelMutationType[]; /* The subscription event gets dispatched when it's listed in mutation_in */ 396 | updatedFields_contains: string | null; /* The subscription event gets only dispatched when one of the updated fields names is included in this list */ 397 | updatedFields_contains_every: string[]; /* The subscription event gets only dispatched when all of the field names included in this list have been updated */ 398 | updatedFields_contains_some: string[]; /* The subscription event gets only dispatched when some of the field names included in this list have been updated */ 399 | node: CarSubscriptionFilterNode | null; 400 | } 401 | 402 | export interface CarSubscriptionFilterNode { 403 | createdAt: DateTime | null; 404 | createdAt_not: DateTime | null; /* All values that are not equal to given value. */ 405 | createdAt_in: DateTime[]; /* All values that are contained in given list. */ 406 | createdAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 407 | createdAt_lt: DateTime | null; /* All values less than the given value. */ 408 | createdAt_lte: DateTime | null; /* All values less than or equal the given value. */ 409 | createdAt_gt: DateTime | null; /* All values greater than the given value. */ 410 | createdAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 411 | id: string | null; 412 | id_not: string | null; /* All values that are not equal to given value. */ 413 | id_in: string[]; /* All values that are contained in given list. */ 414 | id_not_in: string[]; /* All values that are not contained in given list. */ 415 | id_lt: string | null; /* All values less than the given value. */ 416 | id_lte: string | null; /* All values less than or equal the given value. */ 417 | id_gt: string | null; /* All values greater than the given value. */ 418 | id_gte: string | null; /* All values greater than or equal the given value. */ 419 | id_contains: string | null; /* All values containing the given string. */ 420 | id_not_contains: string | null; /* All values not containing the given string. */ 421 | id_starts_with: string | null; /* All values starting with the given string. */ 422 | id_not_starts_with: string | null; /* All values not starting with the given string. */ 423 | id_ends_with: string | null; /* All values ending with the given string. */ 424 | id_not_ends_with: string | null; /* All values not ending with the given string. */ 425 | make: string | null; 426 | make_not: string | null; /* All values that are not equal to given value. */ 427 | make_in: string[]; /* All values that are contained in given list. */ 428 | make_not_in: string[]; /* All values that are not contained in given list. */ 429 | make_lt: string | null; /* All values less than the given value. */ 430 | make_lte: string | null; /* All values less than or equal the given value. */ 431 | make_gt: string | null; /* All values greater than the given value. */ 432 | make_gte: string | null; /* All values greater than or equal the given value. */ 433 | make_contains: string | null; /* All values containing the given string. */ 434 | make_not_contains: string | null; /* All values not containing the given string. */ 435 | make_starts_with: string | null; /* All values starting with the given string. */ 436 | make_not_starts_with: string | null; /* All values not starting with the given string. */ 437 | make_ends_with: string | null; /* All values ending with the given string. */ 438 | make_not_ends_with: string | null; /* All values not ending with the given string. */ 439 | model: string | null; 440 | model_not: string | null; /* All values that are not equal to given value. */ 441 | model_in: string[]; /* All values that are contained in given list. */ 442 | model_not_in: string[]; /* All values that are not contained in given list. */ 443 | model_lt: string | null; /* All values less than the given value. */ 444 | model_lte: string | null; /* All values less than or equal the given value. */ 445 | model_gt: string | null; /* All values greater than the given value. */ 446 | model_gte: string | null; /* All values greater than or equal the given value. */ 447 | model_contains: string | null; /* All values containing the given string. */ 448 | model_not_contains: string | null; /* All values not containing the given string. */ 449 | model_starts_with: string | null; /* All values starting with the given string. */ 450 | model_not_starts_with: string | null; /* All values not starting with the given string. */ 451 | model_ends_with: string | null; /* All values ending with the given string. */ 452 | model_not_ends_with: string | null; /* All values not ending with the given string. */ 453 | photoURL: string | null; 454 | photoURL_not: string | null; /* All values that are not equal to given value. */ 455 | photoURL_in: string[]; /* All values that are contained in given list. */ 456 | photoURL_not_in: string[]; /* All values that are not contained in given list. */ 457 | photoURL_lt: string | null; /* All values less than the given value. */ 458 | photoURL_lte: string | null; /* All values less than or equal the given value. */ 459 | photoURL_gt: string | null; /* All values greater than the given value. */ 460 | photoURL_gte: string | null; /* All values greater than or equal the given value. */ 461 | photoURL_contains: string | null; /* All values containing the given string. */ 462 | photoURL_not_contains: string | null; /* All values not containing the given string. */ 463 | photoURL_starts_with: string | null; /* All values starting with the given string. */ 464 | photoURL_not_starts_with: string | null; /* All values not starting with the given string. */ 465 | photoURL_ends_with: string | null; /* All values ending with the given string. */ 466 | photoURL_not_ends_with: string | null; /* All values not ending with the given string. */ 467 | price: number | null; 468 | price_not: number | null; /* All values that are not equal to given value. */ 469 | price_in: number[]; /* All values that are contained in given list. */ 470 | price_not_in: number[]; /* All values that are not contained in given list. */ 471 | price_lt: number | null; /* All values less than the given value. */ 472 | price_lte: number | null; /* All values less than or equal the given value. */ 473 | price_gt: number | null; /* All values greater than the given value. */ 474 | price_gte: number | null; /* All values greater than or equal the given value. */ 475 | updatedAt: DateTime | null; 476 | updatedAt_not: DateTime | null; /* All values that are not equal to given value. */ 477 | updatedAt_in: DateTime[]; /* All values that are contained in given list. */ 478 | updatedAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 479 | updatedAt_lt: DateTime | null; /* All values less than the given value. */ 480 | updatedAt_lte: DateTime | null; /* All values less than or equal the given value. */ 481 | updatedAt_gt: DateTime | null; /* All values greater than the given value. */ 482 | updatedAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 483 | year: number | null; 484 | year_not: number | null; /* All values that are not equal to given value. */ 485 | year_in: number[]; /* All values that are contained in given list. */ 486 | year_not_in: number[]; /* All values that are not contained in given list. */ 487 | year_lt: number | null; /* All values less than the given value. */ 488 | year_lte: number | null; /* All values less than or equal the given value. */ 489 | year_gt: number | null; /* All values greater than the given value. */ 490 | year_gte: number | null; /* All values greater than or equal the given value. */ 491 | } 492 | 493 | export interface FileSubscriptionFilter { 494 | AND: FileSubscriptionFilter[]; /* Logical AND on all given filters. */ 495 | OR: FileSubscriptionFilter[]; /* Logical OR on all given filters. */ 496 | mutation_in: _ModelMutationType[]; /* The subscription event gets dispatched when it's listed in mutation_in */ 497 | updatedFields_contains: string | null; /* The subscription event gets only dispatched when one of the updated fields names is included in this list */ 498 | updatedFields_contains_every: string[]; /* The subscription event gets only dispatched when all of the field names included in this list have been updated */ 499 | updatedFields_contains_some: string[]; /* The subscription event gets only dispatched when some of the field names included in this list have been updated */ 500 | node: FileSubscriptionFilterNode | null; 501 | } 502 | 503 | export interface FileSubscriptionFilterNode { 504 | contentType: string | null; 505 | contentType_not: string | null; /* All values that are not equal to given value. */ 506 | contentType_in: string[]; /* All values that are contained in given list. */ 507 | contentType_not_in: string[]; /* All values that are not contained in given list. */ 508 | contentType_lt: string | null; /* All values less than the given value. */ 509 | contentType_lte: string | null; /* All values less than or equal the given value. */ 510 | contentType_gt: string | null; /* All values greater than the given value. */ 511 | contentType_gte: string | null; /* All values greater than or equal the given value. */ 512 | contentType_contains: string | null; /* All values containing the given string. */ 513 | contentType_not_contains: string | null; /* All values not containing the given string. */ 514 | contentType_starts_with: string | null; /* All values starting with the given string. */ 515 | contentType_not_starts_with: string | null; /* All values not starting with the given string. */ 516 | contentType_ends_with: string | null; /* All values ending with the given string. */ 517 | contentType_not_ends_with: string | null; /* All values not ending with the given string. */ 518 | createdAt: DateTime | null; 519 | createdAt_not: DateTime | null; /* All values that are not equal to given value. */ 520 | createdAt_in: DateTime[]; /* All values that are contained in given list. */ 521 | createdAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 522 | createdAt_lt: DateTime | null; /* All values less than the given value. */ 523 | createdAt_lte: DateTime | null; /* All values less than or equal the given value. */ 524 | createdAt_gt: DateTime | null; /* All values greater than the given value. */ 525 | createdAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 526 | id: string | null; 527 | id_not: string | null; /* All values that are not equal to given value. */ 528 | id_in: string[]; /* All values that are contained in given list. */ 529 | id_not_in: string[]; /* All values that are not contained in given list. */ 530 | id_lt: string | null; /* All values less than the given value. */ 531 | id_lte: string | null; /* All values less than or equal the given value. */ 532 | id_gt: string | null; /* All values greater than the given value. */ 533 | id_gte: string | null; /* All values greater than or equal the given value. */ 534 | id_contains: string | null; /* All values containing the given string. */ 535 | id_not_contains: string | null; /* All values not containing the given string. */ 536 | id_starts_with: string | null; /* All values starting with the given string. */ 537 | id_not_starts_with: string | null; /* All values not starting with the given string. */ 538 | id_ends_with: string | null; /* All values ending with the given string. */ 539 | id_not_ends_with: string | null; /* All values not ending with the given string. */ 540 | name: string | null; 541 | name_not: string | null; /* All values that are not equal to given value. */ 542 | name_in: string[]; /* All values that are contained in given list. */ 543 | name_not_in: string[]; /* All values that are not contained in given list. */ 544 | name_lt: string | null; /* All values less than the given value. */ 545 | name_lte: string | null; /* All values less than or equal the given value. */ 546 | name_gt: string | null; /* All values greater than the given value. */ 547 | name_gte: string | null; /* All values greater than or equal the given value. */ 548 | name_contains: string | null; /* All values containing the given string. */ 549 | name_not_contains: string | null; /* All values not containing the given string. */ 550 | name_starts_with: string | null; /* All values starting with the given string. */ 551 | name_not_starts_with: string | null; /* All values not starting with the given string. */ 552 | name_ends_with: string | null; /* All values ending with the given string. */ 553 | name_not_ends_with: string | null; /* All values not ending with the given string. */ 554 | secret: string | null; 555 | secret_not: string | null; /* All values that are not equal to given value. */ 556 | secret_in: string[]; /* All values that are contained in given list. */ 557 | secret_not_in: string[]; /* All values that are not contained in given list. */ 558 | secret_lt: string | null; /* All values less than the given value. */ 559 | secret_lte: string | null; /* All values less than or equal the given value. */ 560 | secret_gt: string | null; /* All values greater than the given value. */ 561 | secret_gte: string | null; /* All values greater than or equal the given value. */ 562 | secret_contains: string | null; /* All values containing the given string. */ 563 | secret_not_contains: string | null; /* All values not containing the given string. */ 564 | secret_starts_with: string | null; /* All values starting with the given string. */ 565 | secret_not_starts_with: string | null; /* All values not starting with the given string. */ 566 | secret_ends_with: string | null; /* All values ending with the given string. */ 567 | secret_not_ends_with: string | null; /* All values not ending with the given string. */ 568 | size: number | null; 569 | size_not: number | null; /* All values that are not equal to given value. */ 570 | size_in: number[]; /* All values that are contained in given list. */ 571 | size_not_in: number[]; /* All values that are not contained in given list. */ 572 | size_lt: number | null; /* All values less than the given value. */ 573 | size_lte: number | null; /* All values less than or equal the given value. */ 574 | size_gt: number | null; /* All values greater than the given value. */ 575 | size_gte: number | null; /* All values greater than or equal the given value. */ 576 | updatedAt: DateTime | null; 577 | updatedAt_not: DateTime | null; /* All values that are not equal to given value. */ 578 | updatedAt_in: DateTime[]; /* All values that are contained in given list. */ 579 | updatedAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 580 | updatedAt_lt: DateTime | null; /* All values less than the given value. */ 581 | updatedAt_lte: DateTime | null; /* All values less than or equal the given value. */ 582 | updatedAt_gt: DateTime | null; /* All values greater than the given value. */ 583 | updatedAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 584 | url: string | null; 585 | url_not: string | null; /* All values that are not equal to given value. */ 586 | url_in: string[]; /* All values that are contained in given list. */ 587 | url_not_in: string[]; /* All values that are not contained in given list. */ 588 | url_lt: string | null; /* All values less than the given value. */ 589 | url_lte: string | null; /* All values less than or equal the given value. */ 590 | url_gt: string | null; /* All values greater than the given value. */ 591 | url_gte: string | null; /* All values greater than or equal the given value. */ 592 | url_contains: string | null; /* All values containing the given string. */ 593 | url_not_contains: string | null; /* All values not containing the given string. */ 594 | url_starts_with: string | null; /* All values starting with the given string. */ 595 | url_not_starts_with: string | null; /* All values not starting with the given string. */ 596 | url_ends_with: string | null; /* All values ending with the given string. */ 597 | url_not_ends_with: string | null; /* All values not ending with the given string. */ 598 | } 599 | 600 | export interface UserSubscriptionFilter { 601 | AND: UserSubscriptionFilter[]; /* Logical AND on all given filters. */ 602 | OR: UserSubscriptionFilter[]; /* Logical OR on all given filters. */ 603 | mutation_in: _ModelMutationType[]; /* The subscription event gets dispatched when it's listed in mutation_in */ 604 | updatedFields_contains: string | null; /* The subscription event gets only dispatched when one of the updated fields names is included in this list */ 605 | updatedFields_contains_every: string[]; /* The subscription event gets only dispatched when all of the field names included in this list have been updated */ 606 | updatedFields_contains_some: string[]; /* The subscription event gets only dispatched when some of the field names included in this list have been updated */ 607 | node: UserSubscriptionFilterNode | null; 608 | } 609 | 610 | export interface UserSubscriptionFilterNode { 611 | createdAt: DateTime | null; 612 | createdAt_not: DateTime | null; /* All values that are not equal to given value. */ 613 | createdAt_in: DateTime[]; /* All values that are contained in given list. */ 614 | createdAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 615 | createdAt_lt: DateTime | null; /* All values less than the given value. */ 616 | createdAt_lte: DateTime | null; /* All values less than or equal the given value. */ 617 | createdAt_gt: DateTime | null; /* All values greater than the given value. */ 618 | createdAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 619 | id: string | null; 620 | id_not: string | null; /* All values that are not equal to given value. */ 621 | id_in: string[]; /* All values that are contained in given list. */ 622 | id_not_in: string[]; /* All values that are not contained in given list. */ 623 | id_lt: string | null; /* All values less than the given value. */ 624 | id_lte: string | null; /* All values less than or equal the given value. */ 625 | id_gt: string | null; /* All values greater than the given value. */ 626 | id_gte: string | null; /* All values greater than or equal the given value. */ 627 | id_contains: string | null; /* All values containing the given string. */ 628 | id_not_contains: string | null; /* All values not containing the given string. */ 629 | id_starts_with: string | null; /* All values starting with the given string. */ 630 | id_not_starts_with: string | null; /* All values not starting with the given string. */ 631 | id_ends_with: string | null; /* All values ending with the given string. */ 632 | id_not_ends_with: string | null; /* All values not ending with the given string. */ 633 | updatedAt: DateTime | null; 634 | updatedAt_not: DateTime | null; /* All values that are not equal to given value. */ 635 | updatedAt_in: DateTime[]; /* All values that are contained in given list. */ 636 | updatedAt_not_in: DateTime[]; /* All values that are not contained in given list. */ 637 | updatedAt_lt: DateTime | null; /* All values less than the given value. */ 638 | updatedAt_lte: DateTime | null; /* All values less than or equal the given value. */ 639 | updatedAt_gt: DateTime | null; /* All values greater than the given value. */ 640 | updatedAt_gte: DateTime | null; /* All values greater than or equal the given value. */ 641 | } 642 | export interface AllCarsQueryArgs { 643 | filter: CarFilter | null; 644 | orderBy: CarOrderBy | null; 645 | skip: number | null; 646 | after: string | null; 647 | before: string | null; 648 | first: number | null; 649 | last: number | null; 650 | } 651 | export interface AllFilesQueryArgs { 652 | filter: FileFilter | null; 653 | orderBy: FileOrderBy | null; 654 | skip: number | null; 655 | after: string | null; 656 | before: string | null; 657 | first: number | null; 658 | last: number | null; 659 | } 660 | export interface AllUsersQueryArgs { 661 | filter: UserFilter | null; 662 | orderBy: UserOrderBy | null; 663 | skip: number | null; 664 | after: string | null; 665 | before: string | null; 666 | first: number | null; 667 | last: number | null; 668 | } 669 | export interface AllCarsMetaQueryArgs { 670 | filter: CarFilter | null; 671 | orderBy: CarOrderBy | null; 672 | skip: number | null; 673 | after: string | null; 674 | before: string | null; 675 | first: number | null; 676 | last: number | null; 677 | } 678 | export interface AllFilesMetaQueryArgs { 679 | filter: FileFilter | null; 680 | orderBy: FileOrderBy | null; 681 | skip: number | null; 682 | after: string | null; 683 | before: string | null; 684 | first: number | null; 685 | last: number | null; 686 | } 687 | export interface AllUsersMetaQueryArgs { 688 | filter: UserFilter | null; 689 | orderBy: UserOrderBy | null; 690 | skip: number | null; 691 | after: string | null; 692 | before: string | null; 693 | first: number | null; 694 | last: number | null; 695 | } 696 | export interface CarQueryArgs { 697 | id: string | null; 698 | } 699 | export interface FileQueryArgs { 700 | id: string | null; 701 | secret: string | null; 702 | url: string | null; 703 | } 704 | export interface UserQueryArgs { 705 | id: string | null; 706 | } 707 | export interface NodeQueryArgs { 708 | id: string; /* The ID of an object */ 709 | } 710 | export interface CreateCarMutationArgs { 711 | make: string | null; 712 | model: string | null; 713 | photoURL: string | null; 714 | price: number | null; 715 | year: number | null; 716 | } 717 | export interface CreateFileMutationArgs { 718 | name: string; 719 | } 720 | export interface UpdateCarMutationArgs { 721 | id: string; 722 | make: string | null; 723 | model: string | null; 724 | photoURL: string | null; 725 | price: number | null; 726 | year: number | null; 727 | } 728 | export interface UpdateFileMutationArgs { 729 | id: string; 730 | name: string | null; 731 | } 732 | export interface UpdateUserMutationArgs { 733 | id: string; 734 | } 735 | export interface UpdateOrCreateCarMutationArgs { 736 | update: UpdateCar; 737 | create: CreateCar; 738 | } 739 | export interface UpdateOrCreateFileMutationArgs { 740 | update: UpdateFile; 741 | create: CreateFile; 742 | } 743 | export interface UpdateOrCreateUserMutationArgs { 744 | update: UpdateUser; 745 | } 746 | export interface DeleteCarMutationArgs { 747 | id: string; 748 | } 749 | export interface DeleteFileMutationArgs { 750 | id: string; 751 | } 752 | export interface DeleteUserMutationArgs { 753 | id: string; 754 | } 755 | export interface CarSubscriptionArgs { 756 | filter: CarSubscriptionFilter | null; 757 | } 758 | export interface FileSubscriptionArgs { 759 | filter: FileSubscriptionFilter | null; 760 | } 761 | export interface UserSubscriptionArgs { 762 | filter: UserSubscriptionFilter | null; 763 | } 764 | 765 | export type CarOrderBy = "createdAt_ASC" | "createdAt_DESC" | "id_ASC" | "id_DESC" | "make_ASC" | "make_DESC" | "model_ASC" | "model_DESC" | "photoURL_ASC" | "photoURL_DESC" | "price_ASC" | "price_DESC" | "updatedAt_ASC" | "updatedAt_DESC" | "year_ASC" | "year_DESC"; 766 | 767 | 768 | export type FileOrderBy = "contentType_ASC" | "contentType_DESC" | "createdAt_ASC" | "createdAt_DESC" | "id_ASC" | "id_DESC" | "name_ASC" | "name_DESC" | "secret_ASC" | "secret_DESC" | "size_ASC" | "size_DESC" | "updatedAt_ASC" | "updatedAt_DESC" | "url_ASC" | "url_DESC"; 769 | 770 | 771 | export type UserOrderBy = "createdAt_ASC" | "createdAt_DESC" | "id_ASC" | "id_DESC" | "updatedAt_ASC" | "updatedAt_DESC"; 772 | 773 | 774 | export type _ModelMutationType = "CREATED" | "UPDATED" | "DELETED"; 775 | 776 | export namespace AllCars { 777 | export type Variables = { 778 | } 779 | 780 | export type Query = { 781 | allCars: AllCars[]; 782 | } 783 | 784 | export type AllCars = { 785 | id: string; 786 | make: string | null; 787 | model: string | null; 788 | year: number | null; 789 | } 790 | } 791 | export namespace Car { 792 | export type Variables = { 793 | id: string; 794 | } 795 | 796 | export type Query = { 797 | Car: Car | null; 798 | } 799 | 800 | export type Car = { 801 | make: string | null; 802 | model: string | null; 803 | photoURL: string | null; 804 | price: number | null; 805 | } 806 | } 807 | --------------------------------------------------------------------------------