zenstack/packages/clients/tanstack-query/test/schemas/basic/input.ts
sanny-io 446a48335f
feat: exists operation (#550)
* feat: exists operation

* Add RPC handling.

* Add frontend handling.

* Add tests.

* Fix postgres error.

* Add JSDoc.

* Remove `@ts-expect-error`

* Disable post-processing.

* Put semicolon back.
2026-01-07 18:05:49 +08:00

115 lines
8.5 KiB
TypeScript

//////////////////////////////////////////////////////////////////////////////////////////////
// DO NOT MODIFY THIS FILE //
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
//////////////////////////////////////////////////////////////////////////////////////////////
/* eslint-disable */
import { type SchemaType as $Schema } from "./schema-lite";
import type { FindManyArgs as $FindManyArgs, FindUniqueArgs as $FindUniqueArgs, FindFirstArgs as $FindFirstArgs, ExistsArgs as $ExistsArgs, CreateArgs as $CreateArgs, CreateManyArgs as $CreateManyArgs, CreateManyAndReturnArgs as $CreateManyAndReturnArgs, UpdateArgs as $UpdateArgs, UpdateManyArgs as $UpdateManyArgs, UpdateManyAndReturnArgs as $UpdateManyAndReturnArgs, UpsertArgs as $UpsertArgs, DeleteArgs as $DeleteArgs, DeleteManyArgs as $DeleteManyArgs, CountArgs as $CountArgs, AggregateArgs as $AggregateArgs, GroupByArgs as $GroupByArgs, WhereInput as $WhereInput, SelectInput as $SelectInput, IncludeInput as $IncludeInput, OmitInput as $OmitInput, QueryOptions as $QueryOptions } from "@zenstackhq/orm";
import type { SimplifiedPlainResult as $Result, SelectIncludeOmit as $SelectIncludeOmit } from "@zenstackhq/orm";
export type UserFindManyArgs = $FindManyArgs<$Schema, "User">;
export type UserFindUniqueArgs = $FindUniqueArgs<$Schema, "User">;
export type UserFindFirstArgs = $FindFirstArgs<$Schema, "User">;
export type UserExistsArgs = $ExistsArgs<$Schema, "User">;
export type UserCreateArgs = $CreateArgs<$Schema, "User">;
export type UserCreateManyArgs = $CreateManyArgs<$Schema, "User">;
export type UserCreateManyAndReturnArgs = $CreateManyAndReturnArgs<$Schema, "User">;
export type UserUpdateArgs = $UpdateArgs<$Schema, "User">;
export type UserUpdateManyArgs = $UpdateManyArgs<$Schema, "User">;
export type UserUpdateManyAndReturnArgs = $UpdateManyAndReturnArgs<$Schema, "User">;
export type UserUpsertArgs = $UpsertArgs<$Schema, "User">;
export type UserDeleteArgs = $DeleteArgs<$Schema, "User">;
export type UserDeleteManyArgs = $DeleteManyArgs<$Schema, "User">;
export type UserCountArgs = $CountArgs<$Schema, "User">;
export type UserAggregateArgs = $AggregateArgs<$Schema, "User">;
export type UserGroupByArgs = $GroupByArgs<$Schema, "User">;
export type UserWhereInput = $WhereInput<$Schema, "User">;
export type UserSelect = $SelectInput<$Schema, "User">;
export type UserInclude = $IncludeInput<$Schema, "User">;
export type UserOmit = $OmitInput<$Schema, "User">;
export type UserGetPayload<Args extends $SelectIncludeOmit<$Schema, "User", true>, Options extends $QueryOptions<$Schema> = $QueryOptions<$Schema>> = $Result<$Schema, "User", Args, Options>;
export type PostFindManyArgs = $FindManyArgs<$Schema, "Post">;
export type PostFindUniqueArgs = $FindUniqueArgs<$Schema, "Post">;
export type PostFindFirstArgs = $FindFirstArgs<$Schema, "Post">;
export type PostExistsArgs = $ExistsArgs<$Schema, "Post">;
export type PostCreateArgs = $CreateArgs<$Schema, "Post">;
export type PostCreateManyArgs = $CreateManyArgs<$Schema, "Post">;
export type PostCreateManyAndReturnArgs = $CreateManyAndReturnArgs<$Schema, "Post">;
export type PostUpdateArgs = $UpdateArgs<$Schema, "Post">;
export type PostUpdateManyArgs = $UpdateManyArgs<$Schema, "Post">;
export type PostUpdateManyAndReturnArgs = $UpdateManyAndReturnArgs<$Schema, "Post">;
export type PostUpsertArgs = $UpsertArgs<$Schema, "Post">;
export type PostDeleteArgs = $DeleteArgs<$Schema, "Post">;
export type PostDeleteManyArgs = $DeleteManyArgs<$Schema, "Post">;
export type PostCountArgs = $CountArgs<$Schema, "Post">;
export type PostAggregateArgs = $AggregateArgs<$Schema, "Post">;
export type PostGroupByArgs = $GroupByArgs<$Schema, "Post">;
export type PostWhereInput = $WhereInput<$Schema, "Post">;
export type PostSelect = $SelectInput<$Schema, "Post">;
export type PostInclude = $IncludeInput<$Schema, "Post">;
export type PostOmit = $OmitInput<$Schema, "Post">;
export type PostGetPayload<Args extends $SelectIncludeOmit<$Schema, "Post", true>, Options extends $QueryOptions<$Schema> = $QueryOptions<$Schema>> = $Result<$Schema, "Post", Args, Options>;
export type CategoryFindManyArgs = $FindManyArgs<$Schema, "Category">;
export type CategoryFindUniqueArgs = $FindUniqueArgs<$Schema, "Category">;
export type CategoryFindFirstArgs = $FindFirstArgs<$Schema, "Category">;
export type CategoryExistsArgs = $ExistsArgs<$Schema, "Category">;
export type CategoryCreateArgs = $CreateArgs<$Schema, "Category">;
export type CategoryCreateManyArgs = $CreateManyArgs<$Schema, "Category">;
export type CategoryCreateManyAndReturnArgs = $CreateManyAndReturnArgs<$Schema, "Category">;
export type CategoryUpdateArgs = $UpdateArgs<$Schema, "Category">;
export type CategoryUpdateManyArgs = $UpdateManyArgs<$Schema, "Category">;
export type CategoryUpdateManyAndReturnArgs = $UpdateManyAndReturnArgs<$Schema, "Category">;
export type CategoryUpsertArgs = $UpsertArgs<$Schema, "Category">;
export type CategoryDeleteArgs = $DeleteArgs<$Schema, "Category">;
export type CategoryDeleteManyArgs = $DeleteManyArgs<$Schema, "Category">;
export type CategoryCountArgs = $CountArgs<$Schema, "Category">;
export type CategoryAggregateArgs = $AggregateArgs<$Schema, "Category">;
export type CategoryGroupByArgs = $GroupByArgs<$Schema, "Category">;
export type CategoryWhereInput = $WhereInput<$Schema, "Category">;
export type CategorySelect = $SelectInput<$Schema, "Category">;
export type CategoryInclude = $IncludeInput<$Schema, "Category">;
export type CategoryOmit = $OmitInput<$Schema, "Category">;
export type CategoryGetPayload<Args extends $SelectIncludeOmit<$Schema, "Category", true>, Options extends $QueryOptions<$Schema> = $QueryOptions<$Schema>> = $Result<$Schema, "Category", Args, Options>;
export type FooFindManyArgs = $FindManyArgs<$Schema, "Foo">;
export type FooFindUniqueArgs = $FindUniqueArgs<$Schema, "Foo">;
export type FooFindFirstArgs = $FindFirstArgs<$Schema, "Foo">;
export type FooExistsArgs = $ExistsArgs<$Schema, "Foo">;
export type FooCreateArgs = $CreateArgs<$Schema, "Foo">;
export type FooCreateManyArgs = $CreateManyArgs<$Schema, "Foo">;
export type FooCreateManyAndReturnArgs = $CreateManyAndReturnArgs<$Schema, "Foo">;
export type FooUpdateArgs = $UpdateArgs<$Schema, "Foo">;
export type FooUpdateManyArgs = $UpdateManyArgs<$Schema, "Foo">;
export type FooUpdateManyAndReturnArgs = $UpdateManyAndReturnArgs<$Schema, "Foo">;
export type FooUpsertArgs = $UpsertArgs<$Schema, "Foo">;
export type FooDeleteArgs = $DeleteArgs<$Schema, "Foo">;
export type FooDeleteManyArgs = $DeleteManyArgs<$Schema, "Foo">;
export type FooCountArgs = $CountArgs<$Schema, "Foo">;
export type FooAggregateArgs = $AggregateArgs<$Schema, "Foo">;
export type FooGroupByArgs = $GroupByArgs<$Schema, "Foo">;
export type FooWhereInput = $WhereInput<$Schema, "Foo">;
export type FooSelect = $SelectInput<$Schema, "Foo">;
export type FooInclude = $IncludeInput<$Schema, "Foo">;
export type FooOmit = $OmitInput<$Schema, "Foo">;
export type FooGetPayload<Args extends $SelectIncludeOmit<$Schema, "Foo", true>, Options extends $QueryOptions<$Schema> = $QueryOptions<$Schema>> = $Result<$Schema, "Foo", Args, Options>;
export type BarFindManyArgs = $FindManyArgs<$Schema, "Bar">;
export type BarFindUniqueArgs = $FindUniqueArgs<$Schema, "Bar">;
export type BarFindFirstArgs = $FindFirstArgs<$Schema, "Bar">;
export type BarExistsArgs = $ExistsArgs<$Schema, "Bar">;
export type BarCreateArgs = $CreateArgs<$Schema, "Bar">;
export type BarCreateManyArgs = $CreateManyArgs<$Schema, "Bar">;
export type BarCreateManyAndReturnArgs = $CreateManyAndReturnArgs<$Schema, "Bar">;
export type BarUpdateArgs = $UpdateArgs<$Schema, "Bar">;
export type BarUpdateManyArgs = $UpdateManyArgs<$Schema, "Bar">;
export type BarUpdateManyAndReturnArgs = $UpdateManyAndReturnArgs<$Schema, "Bar">;
export type BarUpsertArgs = $UpsertArgs<$Schema, "Bar">;
export type BarDeleteArgs = $DeleteArgs<$Schema, "Bar">;
export type BarDeleteManyArgs = $DeleteManyArgs<$Schema, "Bar">;
export type BarCountArgs = $CountArgs<$Schema, "Bar">;
export type BarAggregateArgs = $AggregateArgs<$Schema, "Bar">;
export type BarGroupByArgs = $GroupByArgs<$Schema, "Bar">;
export type BarWhereInput = $WhereInput<$Schema, "Bar">;
export type BarSelect = $SelectInput<$Schema, "Bar">;
export type BarInclude = $IncludeInput<$Schema, "Bar">;
export type BarOmit = $OmitInput<$Schema, "Bar">;
export type BarGetPayload<Args extends $SelectIncludeOmit<$Schema, "Bar", true>, Options extends $QueryOptions<$Schema> = $QueryOptions<$Schema>> = $Result<$Schema, "Bar", Args, Options>;