|
| 1 | +import { ConnectorConfig, DataConnect, QueryRef, QueryPromise, MutationRef, MutationPromise } from 'firebase/data-connect'; |
| 2 | + |
| 3 | +export const connectorConfig: ConnectorConfig; |
| 4 | + |
| 5 | +export type TimestampString = string; |
| 6 | +export type UUIDString = string; |
| 7 | +export type Int64String = string; |
| 8 | +export type DateString = string; |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +export interface AddMetaData { |
| 14 | + ref: Meta_Key; |
| 15 | +} |
| 16 | + |
| 17 | +export interface CreateMovieData { |
| 18 | + movie_insert: Movie_Key; |
| 19 | +} |
| 20 | + |
| 21 | +export interface CreateMovieVariables { |
| 22 | + title: string; |
| 23 | + genre: string; |
| 24 | + imageUrl: string; |
| 25 | +} |
| 26 | + |
| 27 | +export interface DeleteMetaData { |
| 28 | + ref?: Meta_Key | null; |
| 29 | +} |
| 30 | + |
| 31 | +export interface DeleteMetaVariables { |
| 32 | + id: UUIDString; |
| 33 | +} |
| 34 | + |
| 35 | +export interface DeleteMovieData { |
| 36 | + movie_delete?: Movie_Key | null; |
| 37 | +} |
| 38 | + |
| 39 | +export interface DeleteMovieVariables { |
| 40 | + id: UUIDString; |
| 41 | +} |
| 42 | + |
| 43 | +export interface GetMetaData { |
| 44 | + ref: ({ |
| 45 | + id: UUIDString; |
| 46 | + } & Meta_Key)[]; |
| 47 | +} |
| 48 | + |
| 49 | +export interface GetMovieByIdData { |
| 50 | + movie?: { |
| 51 | + id: UUIDString; |
| 52 | + title: string; |
| 53 | + imageUrl: string; |
| 54 | + genre?: string | null; |
| 55 | + } & Movie_Key; |
| 56 | +} |
| 57 | + |
| 58 | +export interface GetMovieByIdVariables { |
| 59 | + id: UUIDString; |
| 60 | +} |
| 61 | + |
| 62 | +export interface ListMoviesData { |
| 63 | + movies: ({ |
| 64 | + id: UUIDString; |
| 65 | + title: string; |
| 66 | + imageUrl: string; |
| 67 | + genre?: string | null; |
| 68 | + } & Movie_Key)[]; |
| 69 | +} |
| 70 | + |
| 71 | +export interface Meta_Key { |
| 72 | + id: UUIDString; |
| 73 | + __typename?: 'Meta_Key'; |
| 74 | +} |
| 75 | + |
| 76 | +export interface MovieMetadata_Key { |
| 77 | + id: UUIDString; |
| 78 | + __typename?: 'MovieMetadata_Key'; |
| 79 | +} |
| 80 | + |
| 81 | +export interface Movie_Key { |
| 82 | + id: UUIDString; |
| 83 | + __typename?: 'Movie_Key'; |
| 84 | +} |
| 85 | + |
| 86 | +export interface UpsertMovieData { |
| 87 | + movie_upsert: Movie_Key; |
| 88 | +} |
| 89 | + |
| 90 | +export interface UpsertMovieVariables { |
| 91 | + id: UUIDString; |
| 92 | + title: string; |
| 93 | + imageUrl: string; |
| 94 | +} |
| 95 | + |
| 96 | +interface CreateMovieRef { |
| 97 | + /* Allow users to create refs without passing in DataConnect */ |
| 98 | + (vars: CreateMovieVariables): MutationRef<CreateMovieData, CreateMovieVariables>; |
| 99 | + /* Allow users to pass in custom DataConnect instances */ |
| 100 | + (dc: DataConnect, vars: CreateMovieVariables): MutationRef<CreateMovieData, CreateMovieVariables>; |
| 101 | + operationName: string; |
| 102 | +} |
| 103 | +export const createMovieRef: CreateMovieRef; |
| 104 | + |
| 105 | +export function createMovie(vars: CreateMovieVariables): MutationPromise<CreateMovieData, CreateMovieVariables>; |
| 106 | +export function createMovie(dc: DataConnect, vars: CreateMovieVariables): MutationPromise<CreateMovieData, CreateMovieVariables>; |
| 107 | + |
| 108 | +interface UpsertMovieRef { |
| 109 | + /* Allow users to create refs without passing in DataConnect */ |
| 110 | + (vars: UpsertMovieVariables): MutationRef<UpsertMovieData, UpsertMovieVariables>; |
| 111 | + /* Allow users to pass in custom DataConnect instances */ |
| 112 | + (dc: DataConnect, vars: UpsertMovieVariables): MutationRef<UpsertMovieData, UpsertMovieVariables>; |
| 113 | + operationName: string; |
| 114 | +} |
| 115 | +export const upsertMovieRef: UpsertMovieRef; |
| 116 | + |
| 117 | +export function upsertMovie(vars: UpsertMovieVariables): MutationPromise<UpsertMovieData, UpsertMovieVariables>; |
| 118 | +export function upsertMovie(dc: DataConnect, vars: UpsertMovieVariables): MutationPromise<UpsertMovieData, UpsertMovieVariables>; |
| 119 | + |
| 120 | +interface DeleteMovieRef { |
| 121 | + /* Allow users to create refs without passing in DataConnect */ |
| 122 | + (vars: DeleteMovieVariables): MutationRef<DeleteMovieData, DeleteMovieVariables>; |
| 123 | + /* Allow users to pass in custom DataConnect instances */ |
| 124 | + (dc: DataConnect, vars: DeleteMovieVariables): MutationRef<DeleteMovieData, DeleteMovieVariables>; |
| 125 | + operationName: string; |
| 126 | +} |
| 127 | +export const deleteMovieRef: DeleteMovieRef; |
| 128 | + |
| 129 | +export function deleteMovie(vars: DeleteMovieVariables): MutationPromise<DeleteMovieData, DeleteMovieVariables>; |
| 130 | +export function deleteMovie(dc: DataConnect, vars: DeleteMovieVariables): MutationPromise<DeleteMovieData, DeleteMovieVariables>; |
| 131 | + |
| 132 | +interface AddMetaRef { |
| 133 | + /* Allow users to create refs without passing in DataConnect */ |
| 134 | + (): MutationRef<AddMetaData, undefined>; |
| 135 | + /* Allow users to pass in custom DataConnect instances */ |
| 136 | + (dc: DataConnect): MutationRef<AddMetaData, undefined>; |
| 137 | + operationName: string; |
| 138 | +} |
| 139 | +export const addMetaRef: AddMetaRef; |
| 140 | + |
| 141 | +export function addMeta(): MutationPromise<AddMetaData, undefined>; |
| 142 | +export function addMeta(dc: DataConnect): MutationPromise<AddMetaData, undefined>; |
| 143 | + |
| 144 | +interface DeleteMetaRef { |
| 145 | + /* Allow users to create refs without passing in DataConnect */ |
| 146 | + (vars: DeleteMetaVariables): MutationRef<DeleteMetaData, DeleteMetaVariables>; |
| 147 | + /* Allow users to pass in custom DataConnect instances */ |
| 148 | + (dc: DataConnect, vars: DeleteMetaVariables): MutationRef<DeleteMetaData, DeleteMetaVariables>; |
| 149 | + operationName: string; |
| 150 | +} |
| 151 | +export const deleteMetaRef: DeleteMetaRef; |
| 152 | + |
| 153 | +export function deleteMeta(vars: DeleteMetaVariables): MutationPromise<DeleteMetaData, DeleteMetaVariables>; |
| 154 | +export function deleteMeta(dc: DataConnect, vars: DeleteMetaVariables): MutationPromise<DeleteMetaData, DeleteMetaVariables>; |
| 155 | + |
| 156 | +interface ListMoviesRef { |
| 157 | + /* Allow users to create refs without passing in DataConnect */ |
| 158 | + (): QueryRef<ListMoviesData, undefined>; |
| 159 | + /* Allow users to pass in custom DataConnect instances */ |
| 160 | + (dc: DataConnect): QueryRef<ListMoviesData, undefined>; |
| 161 | + operationName: string; |
| 162 | +} |
| 163 | +export const listMoviesRef: ListMoviesRef; |
| 164 | + |
| 165 | +export function listMovies(): QueryPromise<ListMoviesData, undefined>; |
| 166 | +export function listMovies(dc: DataConnect): QueryPromise<ListMoviesData, undefined>; |
| 167 | + |
| 168 | +interface GetMovieByIdRef { |
| 169 | + /* Allow users to create refs without passing in DataConnect */ |
| 170 | + (vars: GetMovieByIdVariables): QueryRef<GetMovieByIdData, GetMovieByIdVariables>; |
| 171 | + /* Allow users to pass in custom DataConnect instances */ |
| 172 | + (dc: DataConnect, vars: GetMovieByIdVariables): QueryRef<GetMovieByIdData, GetMovieByIdVariables>; |
| 173 | + operationName: string; |
| 174 | +} |
| 175 | +export const getMovieByIdRef: GetMovieByIdRef; |
| 176 | + |
| 177 | +export function getMovieById(vars: GetMovieByIdVariables): QueryPromise<GetMovieByIdData, GetMovieByIdVariables>; |
| 178 | +export function getMovieById(dc: DataConnect, vars: GetMovieByIdVariables): QueryPromise<GetMovieByIdData, GetMovieByIdVariables>; |
| 179 | + |
| 180 | +interface GetMetaRef { |
| 181 | + /* Allow users to create refs without passing in DataConnect */ |
| 182 | + (): QueryRef<GetMetaData, undefined>; |
| 183 | + /* Allow users to pass in custom DataConnect instances */ |
| 184 | + (dc: DataConnect): QueryRef<GetMetaData, undefined>; |
| 185 | + operationName: string; |
| 186 | +} |
| 187 | +export const getMetaRef: GetMetaRef; |
| 188 | + |
| 189 | +export function getMeta(): QueryPromise<GetMetaData, undefined>; |
| 190 | +export function getMeta(dc: DataConnect): QueryPromise<GetMetaData, undefined>; |
| 191 | + |
0 commit comments