1354 lines
54 KiB
TypeScript
1354 lines
54 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `OfflineSyncMutation` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model OfflineSyncMutation
|
|
*
|
|
*/
|
|
export type OfflineSyncMutationModel = runtime.Types.Result.DefaultSelection<Prisma.$OfflineSyncMutationPayload>
|
|
|
|
export type AggregateOfflineSyncMutation = {
|
|
_count: OfflineSyncMutationCountAggregateOutputType | null
|
|
_min: OfflineSyncMutationMinAggregateOutputType | null
|
|
_max: OfflineSyncMutationMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type OfflineSyncMutationMinAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
clientMutationId: string | null
|
|
createdByUserId: string | null
|
|
operation: $Enums.OfflineSyncOperation | null
|
|
status: $Enums.OfflineSyncStatus | null
|
|
resultEntityType: string | null
|
|
resultEntityId: string | null
|
|
errorMessageKey: string | null
|
|
createdAt: Date | null
|
|
appliedAt: Date | null
|
|
}
|
|
|
|
export type OfflineSyncMutationMaxAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
clientMutationId: string | null
|
|
createdByUserId: string | null
|
|
operation: $Enums.OfflineSyncOperation | null
|
|
status: $Enums.OfflineSyncStatus | null
|
|
resultEntityType: string | null
|
|
resultEntityId: string | null
|
|
errorMessageKey: string | null
|
|
createdAt: Date | null
|
|
appliedAt: Date | null
|
|
}
|
|
|
|
export type OfflineSyncMutationCountAggregateOutputType = {
|
|
id: number
|
|
tenantId: number
|
|
clientMutationId: number
|
|
createdByUserId: number
|
|
operation: number
|
|
payload: number
|
|
status: number
|
|
resultEntityType: number
|
|
resultEntityId: number
|
|
errorMessageKey: number
|
|
createdAt: number
|
|
appliedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type OfflineSyncMutationMinAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
clientMutationId?: true
|
|
createdByUserId?: true
|
|
operation?: true
|
|
status?: true
|
|
resultEntityType?: true
|
|
resultEntityId?: true
|
|
errorMessageKey?: true
|
|
createdAt?: true
|
|
appliedAt?: true
|
|
}
|
|
|
|
export type OfflineSyncMutationMaxAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
clientMutationId?: true
|
|
createdByUserId?: true
|
|
operation?: true
|
|
status?: true
|
|
resultEntityType?: true
|
|
resultEntityId?: true
|
|
errorMessageKey?: true
|
|
createdAt?: true
|
|
appliedAt?: true
|
|
}
|
|
|
|
export type OfflineSyncMutationCountAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
clientMutationId?: true
|
|
createdByUserId?: true
|
|
operation?: true
|
|
payload?: true
|
|
status?: true
|
|
resultEntityType?: true
|
|
resultEntityId?: true
|
|
errorMessageKey?: true
|
|
createdAt?: true
|
|
appliedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type OfflineSyncMutationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which OfflineSyncMutation to aggregate.
|
|
*/
|
|
where?: Prisma.OfflineSyncMutationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of OfflineSyncMutations to fetch.
|
|
*/
|
|
orderBy?: Prisma.OfflineSyncMutationOrderByWithRelationInput | Prisma.OfflineSyncMutationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` OfflineSyncMutations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` OfflineSyncMutations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned OfflineSyncMutations
|
|
**/
|
|
_count?: true | OfflineSyncMutationCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: OfflineSyncMutationMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: OfflineSyncMutationMaxAggregateInputType
|
|
}
|
|
|
|
export type GetOfflineSyncMutationAggregateType<T extends OfflineSyncMutationAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateOfflineSyncMutation]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateOfflineSyncMutation[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateOfflineSyncMutation[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type OfflineSyncMutationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.OfflineSyncMutationWhereInput
|
|
orderBy?: Prisma.OfflineSyncMutationOrderByWithAggregationInput | Prisma.OfflineSyncMutationOrderByWithAggregationInput[]
|
|
by: Prisma.OfflineSyncMutationScalarFieldEnum[] | Prisma.OfflineSyncMutationScalarFieldEnum
|
|
having?: Prisma.OfflineSyncMutationScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: OfflineSyncMutationCountAggregateInputType | true
|
|
_min?: OfflineSyncMutationMinAggregateInputType
|
|
_max?: OfflineSyncMutationMaxAggregateInputType
|
|
}
|
|
|
|
export type OfflineSyncMutationGroupByOutputType = {
|
|
id: string
|
|
tenantId: string
|
|
clientMutationId: string
|
|
createdByUserId: string | null
|
|
operation: $Enums.OfflineSyncOperation
|
|
payload: runtime.JsonValue
|
|
status: $Enums.OfflineSyncStatus
|
|
resultEntityType: string | null
|
|
resultEntityId: string | null
|
|
errorMessageKey: string | null
|
|
createdAt: Date
|
|
appliedAt: Date | null
|
|
_count: OfflineSyncMutationCountAggregateOutputType | null
|
|
_min: OfflineSyncMutationMinAggregateOutputType | null
|
|
_max: OfflineSyncMutationMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetOfflineSyncMutationGroupByPayload<T extends OfflineSyncMutationGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<OfflineSyncMutationGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof OfflineSyncMutationGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], OfflineSyncMutationGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], OfflineSyncMutationGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type OfflineSyncMutationWhereInput = {
|
|
AND?: Prisma.OfflineSyncMutationWhereInput | Prisma.OfflineSyncMutationWhereInput[]
|
|
OR?: Prisma.OfflineSyncMutationWhereInput[]
|
|
NOT?: Prisma.OfflineSyncMutationWhereInput | Prisma.OfflineSyncMutationWhereInput[]
|
|
id?: Prisma.StringFilter<"OfflineSyncMutation"> | string
|
|
tenantId?: Prisma.StringFilter<"OfflineSyncMutation"> | string
|
|
clientMutationId?: Prisma.StringFilter<"OfflineSyncMutation"> | string
|
|
createdByUserId?: Prisma.StringNullableFilter<"OfflineSyncMutation"> | string | null
|
|
operation?: Prisma.EnumOfflineSyncOperationFilter<"OfflineSyncMutation"> | $Enums.OfflineSyncOperation
|
|
payload?: Prisma.JsonFilter<"OfflineSyncMutation">
|
|
status?: Prisma.EnumOfflineSyncStatusFilter<"OfflineSyncMutation"> | $Enums.OfflineSyncStatus
|
|
resultEntityType?: Prisma.StringNullableFilter<"OfflineSyncMutation"> | string | null
|
|
resultEntityId?: Prisma.StringNullableFilter<"OfflineSyncMutation"> | string | null
|
|
errorMessageKey?: Prisma.StringNullableFilter<"OfflineSyncMutation"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"OfflineSyncMutation"> | Date | string
|
|
appliedAt?: Prisma.DateTimeNullableFilter<"OfflineSyncMutation"> | Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
clientMutationId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
operation?: Prisma.SortOrder
|
|
payload?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
resultEntityType?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
resultEntityId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
errorMessageKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
appliedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type OfflineSyncMutationWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tenantId_clientMutationId?: Prisma.OfflineSyncMutationTenantIdClientMutationIdCompoundUniqueInput
|
|
AND?: Prisma.OfflineSyncMutationWhereInput | Prisma.OfflineSyncMutationWhereInput[]
|
|
OR?: Prisma.OfflineSyncMutationWhereInput[]
|
|
NOT?: Prisma.OfflineSyncMutationWhereInput | Prisma.OfflineSyncMutationWhereInput[]
|
|
tenantId?: Prisma.StringFilter<"OfflineSyncMutation"> | string
|
|
clientMutationId?: Prisma.StringFilter<"OfflineSyncMutation"> | string
|
|
createdByUserId?: Prisma.StringNullableFilter<"OfflineSyncMutation"> | string | null
|
|
operation?: Prisma.EnumOfflineSyncOperationFilter<"OfflineSyncMutation"> | $Enums.OfflineSyncOperation
|
|
payload?: Prisma.JsonFilter<"OfflineSyncMutation">
|
|
status?: Prisma.EnumOfflineSyncStatusFilter<"OfflineSyncMutation"> | $Enums.OfflineSyncStatus
|
|
resultEntityType?: Prisma.StringNullableFilter<"OfflineSyncMutation"> | string | null
|
|
resultEntityId?: Prisma.StringNullableFilter<"OfflineSyncMutation"> | string | null
|
|
errorMessageKey?: Prisma.StringNullableFilter<"OfflineSyncMutation"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"OfflineSyncMutation"> | Date | string
|
|
appliedAt?: Prisma.DateTimeNullableFilter<"OfflineSyncMutation"> | Date | string | null
|
|
}, "id" | "tenantId_clientMutationId">
|
|
|
|
export type OfflineSyncMutationOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
clientMutationId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
operation?: Prisma.SortOrder
|
|
payload?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
resultEntityType?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
resultEntityId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
errorMessageKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
appliedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.OfflineSyncMutationCountOrderByAggregateInput
|
|
_max?: Prisma.OfflineSyncMutationMaxOrderByAggregateInput
|
|
_min?: Prisma.OfflineSyncMutationMinOrderByAggregateInput
|
|
}
|
|
|
|
export type OfflineSyncMutationScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.OfflineSyncMutationScalarWhereWithAggregatesInput | Prisma.OfflineSyncMutationScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.OfflineSyncMutationScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.OfflineSyncMutationScalarWhereWithAggregatesInput | Prisma.OfflineSyncMutationScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"OfflineSyncMutation"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"OfflineSyncMutation"> | string
|
|
clientMutationId?: Prisma.StringWithAggregatesFilter<"OfflineSyncMutation"> | string
|
|
createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"OfflineSyncMutation"> | string | null
|
|
operation?: Prisma.EnumOfflineSyncOperationWithAggregatesFilter<"OfflineSyncMutation"> | $Enums.OfflineSyncOperation
|
|
payload?: Prisma.JsonWithAggregatesFilter<"OfflineSyncMutation">
|
|
status?: Prisma.EnumOfflineSyncStatusWithAggregatesFilter<"OfflineSyncMutation"> | $Enums.OfflineSyncStatus
|
|
resultEntityType?: Prisma.StringNullableWithAggregatesFilter<"OfflineSyncMutation"> | string | null
|
|
resultEntityId?: Prisma.StringNullableWithAggregatesFilter<"OfflineSyncMutation"> | string | null
|
|
errorMessageKey?: Prisma.StringNullableWithAggregatesFilter<"OfflineSyncMutation"> | string | null
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"OfflineSyncMutation"> | Date | string
|
|
appliedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OfflineSyncMutation"> | Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
clientMutationId: string
|
|
createdByUserId?: string | null
|
|
operation: $Enums.OfflineSyncOperation
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
status?: $Enums.OfflineSyncStatus
|
|
resultEntityType?: string | null
|
|
resultEntityId?: string | null
|
|
errorMessageKey?: string | null
|
|
createdAt?: Date | string
|
|
appliedAt?: Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationUncheckedCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
clientMutationId: string
|
|
createdByUserId?: string | null
|
|
operation: $Enums.OfflineSyncOperation
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
status?: $Enums.OfflineSyncStatus
|
|
resultEntityType?: string | null
|
|
resultEntityId?: string | null
|
|
errorMessageKey?: string | null
|
|
createdAt?: Date | string
|
|
appliedAt?: Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
clientMutationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
operation?: Prisma.EnumOfflineSyncOperationFieldUpdateOperationsInput | $Enums.OfflineSyncOperation
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
status?: Prisma.EnumOfflineSyncStatusFieldUpdateOperationsInput | $Enums.OfflineSyncStatus
|
|
resultEntityType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
errorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
appliedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
clientMutationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
operation?: Prisma.EnumOfflineSyncOperationFieldUpdateOperationsInput | $Enums.OfflineSyncOperation
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
status?: Prisma.EnumOfflineSyncStatusFieldUpdateOperationsInput | $Enums.OfflineSyncStatus
|
|
resultEntityType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
errorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
appliedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationCreateManyInput = {
|
|
id?: string
|
|
tenantId: string
|
|
clientMutationId: string
|
|
createdByUserId?: string | null
|
|
operation: $Enums.OfflineSyncOperation
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
status?: $Enums.OfflineSyncStatus
|
|
resultEntityType?: string | null
|
|
resultEntityId?: string | null
|
|
errorMessageKey?: string | null
|
|
createdAt?: Date | string
|
|
appliedAt?: Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
clientMutationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
operation?: Prisma.EnumOfflineSyncOperationFieldUpdateOperationsInput | $Enums.OfflineSyncOperation
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
status?: Prisma.EnumOfflineSyncStatusFieldUpdateOperationsInput | $Enums.OfflineSyncStatus
|
|
resultEntityType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
errorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
appliedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
clientMutationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
operation?: Prisma.EnumOfflineSyncOperationFieldUpdateOperationsInput | $Enums.OfflineSyncOperation
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
status?: Prisma.EnumOfflineSyncStatusFieldUpdateOperationsInput | $Enums.OfflineSyncStatus
|
|
resultEntityType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
resultEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
errorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
appliedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type OfflineSyncMutationTenantIdClientMutationIdCompoundUniqueInput = {
|
|
tenantId: string
|
|
clientMutationId: string
|
|
}
|
|
|
|
export type OfflineSyncMutationCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
clientMutationId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
operation?: Prisma.SortOrder
|
|
payload?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
resultEntityType?: Prisma.SortOrder
|
|
resultEntityId?: Prisma.SortOrder
|
|
errorMessageKey?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
appliedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type OfflineSyncMutationMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
clientMutationId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
operation?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
resultEntityType?: Prisma.SortOrder
|
|
resultEntityId?: Prisma.SortOrder
|
|
errorMessageKey?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
appliedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type OfflineSyncMutationMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
clientMutationId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
operation?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
resultEntityType?: Prisma.SortOrder
|
|
resultEntityId?: Prisma.SortOrder
|
|
errorMessageKey?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
appliedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type EnumOfflineSyncOperationFieldUpdateOperationsInput = {
|
|
set?: $Enums.OfflineSyncOperation
|
|
}
|
|
|
|
export type EnumOfflineSyncStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.OfflineSyncStatus
|
|
}
|
|
|
|
|
|
|
|
export type OfflineSyncMutationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
clientMutationId?: boolean
|
|
createdByUserId?: boolean
|
|
operation?: boolean
|
|
payload?: boolean
|
|
status?: boolean
|
|
resultEntityType?: boolean
|
|
resultEntityId?: boolean
|
|
errorMessageKey?: boolean
|
|
createdAt?: boolean
|
|
appliedAt?: boolean
|
|
}, ExtArgs["result"]["offlineSyncMutation"]>
|
|
|
|
export type OfflineSyncMutationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
clientMutationId?: boolean
|
|
createdByUserId?: boolean
|
|
operation?: boolean
|
|
payload?: boolean
|
|
status?: boolean
|
|
resultEntityType?: boolean
|
|
resultEntityId?: boolean
|
|
errorMessageKey?: boolean
|
|
createdAt?: boolean
|
|
appliedAt?: boolean
|
|
}, ExtArgs["result"]["offlineSyncMutation"]>
|
|
|
|
export type OfflineSyncMutationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
clientMutationId?: boolean
|
|
createdByUserId?: boolean
|
|
operation?: boolean
|
|
payload?: boolean
|
|
status?: boolean
|
|
resultEntityType?: boolean
|
|
resultEntityId?: boolean
|
|
errorMessageKey?: boolean
|
|
createdAt?: boolean
|
|
appliedAt?: boolean
|
|
}, ExtArgs["result"]["offlineSyncMutation"]>
|
|
|
|
export type OfflineSyncMutationSelectScalar = {
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
clientMutationId?: boolean
|
|
createdByUserId?: boolean
|
|
operation?: boolean
|
|
payload?: boolean
|
|
status?: boolean
|
|
resultEntityType?: boolean
|
|
resultEntityId?: boolean
|
|
errorMessageKey?: boolean
|
|
createdAt?: boolean
|
|
appliedAt?: boolean
|
|
}
|
|
|
|
export type OfflineSyncMutationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "clientMutationId" | "createdByUserId" | "operation" | "payload" | "status" | "resultEntityType" | "resultEntityId" | "errorMessageKey" | "createdAt" | "appliedAt", ExtArgs["result"]["offlineSyncMutation"]>
|
|
|
|
export type $OfflineSyncMutationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "OfflineSyncMutation"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
tenantId: string
|
|
clientMutationId: string
|
|
createdByUserId: string | null
|
|
operation: $Enums.OfflineSyncOperation
|
|
payload: runtime.JsonValue
|
|
status: $Enums.OfflineSyncStatus
|
|
resultEntityType: string | null
|
|
resultEntityId: string | null
|
|
errorMessageKey: string | null
|
|
createdAt: Date
|
|
appliedAt: Date | null
|
|
}, ExtArgs["result"]["offlineSyncMutation"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type OfflineSyncMutationGetPayload<S extends boolean | null | undefined | OfflineSyncMutationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload, S>
|
|
|
|
export type OfflineSyncMutationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<OfflineSyncMutationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: OfflineSyncMutationCountAggregateInputType | true
|
|
}
|
|
|
|
export interface OfflineSyncMutationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['OfflineSyncMutation'], meta: { name: 'OfflineSyncMutation' } }
|
|
/**
|
|
* Find zero or one OfflineSyncMutation that matches the filter.
|
|
* @param {OfflineSyncMutationFindUniqueArgs} args - Arguments to find a OfflineSyncMutation
|
|
* @example
|
|
* // Get one OfflineSyncMutation
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends OfflineSyncMutationFindUniqueArgs>(args: Prisma.SelectSubset<T, OfflineSyncMutationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OfflineSyncMutationClient<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one OfflineSyncMutation that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {OfflineSyncMutationFindUniqueOrThrowArgs} args - Arguments to find a OfflineSyncMutation
|
|
* @example
|
|
* // Get one OfflineSyncMutation
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends OfflineSyncMutationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OfflineSyncMutationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OfflineSyncMutationClient<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first OfflineSyncMutation that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {OfflineSyncMutationFindFirstArgs} args - Arguments to find a OfflineSyncMutation
|
|
* @example
|
|
* // Get one OfflineSyncMutation
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends OfflineSyncMutationFindFirstArgs>(args?: Prisma.SelectSubset<T, OfflineSyncMutationFindFirstArgs<ExtArgs>>): Prisma.Prisma__OfflineSyncMutationClient<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first OfflineSyncMutation that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {OfflineSyncMutationFindFirstOrThrowArgs} args - Arguments to find a OfflineSyncMutation
|
|
* @example
|
|
* // Get one OfflineSyncMutation
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends OfflineSyncMutationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OfflineSyncMutationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OfflineSyncMutationClient<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more OfflineSyncMutations that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {OfflineSyncMutationFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all OfflineSyncMutations
|
|
* const offlineSyncMutations = await prisma.offlineSyncMutation.findMany()
|
|
*
|
|
* // Get first 10 OfflineSyncMutations
|
|
* const offlineSyncMutations = await prisma.offlineSyncMutation.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const offlineSyncMutationWithIdOnly = await prisma.offlineSyncMutation.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends OfflineSyncMutationFindManyArgs>(args?: Prisma.SelectSubset<T, OfflineSyncMutationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a OfflineSyncMutation.
|
|
* @param {OfflineSyncMutationCreateArgs} args - Arguments to create a OfflineSyncMutation.
|
|
* @example
|
|
* // Create one OfflineSyncMutation
|
|
* const OfflineSyncMutation = await prisma.offlineSyncMutation.create({
|
|
* data: {
|
|
* // ... data to create a OfflineSyncMutation
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends OfflineSyncMutationCreateArgs>(args: Prisma.SelectSubset<T, OfflineSyncMutationCreateArgs<ExtArgs>>): Prisma.Prisma__OfflineSyncMutationClient<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many OfflineSyncMutations.
|
|
* @param {OfflineSyncMutationCreateManyArgs} args - Arguments to create many OfflineSyncMutations.
|
|
* @example
|
|
* // Create many OfflineSyncMutations
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends OfflineSyncMutationCreateManyArgs>(args?: Prisma.SelectSubset<T, OfflineSyncMutationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many OfflineSyncMutations and returns the data saved in the database.
|
|
* @param {OfflineSyncMutationCreateManyAndReturnArgs} args - Arguments to create many OfflineSyncMutations.
|
|
* @example
|
|
* // Create many OfflineSyncMutations
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many OfflineSyncMutations and only return the `id`
|
|
* const offlineSyncMutationWithIdOnly = await prisma.offlineSyncMutation.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends OfflineSyncMutationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OfflineSyncMutationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a OfflineSyncMutation.
|
|
* @param {OfflineSyncMutationDeleteArgs} args - Arguments to delete one OfflineSyncMutation.
|
|
* @example
|
|
* // Delete one OfflineSyncMutation
|
|
* const OfflineSyncMutation = await prisma.offlineSyncMutation.delete({
|
|
* where: {
|
|
* // ... filter to delete one OfflineSyncMutation
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends OfflineSyncMutationDeleteArgs>(args: Prisma.SelectSubset<T, OfflineSyncMutationDeleteArgs<ExtArgs>>): Prisma.Prisma__OfflineSyncMutationClient<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one OfflineSyncMutation.
|
|
* @param {OfflineSyncMutationUpdateArgs} args - Arguments to update one OfflineSyncMutation.
|
|
* @example
|
|
* // Update one OfflineSyncMutation
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends OfflineSyncMutationUpdateArgs>(args: Prisma.SelectSubset<T, OfflineSyncMutationUpdateArgs<ExtArgs>>): Prisma.Prisma__OfflineSyncMutationClient<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more OfflineSyncMutations.
|
|
* @param {OfflineSyncMutationDeleteManyArgs} args - Arguments to filter OfflineSyncMutations to delete.
|
|
* @example
|
|
* // Delete a few OfflineSyncMutations
|
|
* const { count } = await prisma.offlineSyncMutation.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends OfflineSyncMutationDeleteManyArgs>(args?: Prisma.SelectSubset<T, OfflineSyncMutationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more OfflineSyncMutations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {OfflineSyncMutationUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many OfflineSyncMutations
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends OfflineSyncMutationUpdateManyArgs>(args: Prisma.SelectSubset<T, OfflineSyncMutationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more OfflineSyncMutations and returns the data updated in the database.
|
|
* @param {OfflineSyncMutationUpdateManyAndReturnArgs} args - Arguments to update many OfflineSyncMutations.
|
|
* @example
|
|
* // Update many OfflineSyncMutations
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more OfflineSyncMutations and only return the `id`
|
|
* const offlineSyncMutationWithIdOnly = await prisma.offlineSyncMutation.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends OfflineSyncMutationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OfflineSyncMutationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one OfflineSyncMutation.
|
|
* @param {OfflineSyncMutationUpsertArgs} args - Arguments to update or create a OfflineSyncMutation.
|
|
* @example
|
|
* // Update or create a OfflineSyncMutation
|
|
* const offlineSyncMutation = await prisma.offlineSyncMutation.upsert({
|
|
* create: {
|
|
* // ... data to create a OfflineSyncMutation
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the OfflineSyncMutation we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends OfflineSyncMutationUpsertArgs>(args: Prisma.SelectSubset<T, OfflineSyncMutationUpsertArgs<ExtArgs>>): Prisma.Prisma__OfflineSyncMutationClient<runtime.Types.Result.GetResult<Prisma.$OfflineSyncMutationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of OfflineSyncMutations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {OfflineSyncMutationCountArgs} args - Arguments to filter OfflineSyncMutations to count.
|
|
* @example
|
|
* // Count the number of OfflineSyncMutations
|
|
* const count = await prisma.offlineSyncMutation.count({
|
|
* where: {
|
|
* // ... the filter for the OfflineSyncMutations we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends OfflineSyncMutationCountArgs>(
|
|
args?: Prisma.Subset<T, OfflineSyncMutationCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], OfflineSyncMutationCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a OfflineSyncMutation.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {OfflineSyncMutationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends OfflineSyncMutationAggregateArgs>(args: Prisma.Subset<T, OfflineSyncMutationAggregateArgs>): Prisma.PrismaPromise<GetOfflineSyncMutationAggregateType<T>>
|
|
|
|
/**
|
|
* Group by OfflineSyncMutation.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {OfflineSyncMutationGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends OfflineSyncMutationGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: OfflineSyncMutationGroupByArgs['orderBy'] }
|
|
: { orderBy?: OfflineSyncMutationGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, OfflineSyncMutationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOfflineSyncMutationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the OfflineSyncMutation model
|
|
*/
|
|
readonly fields: OfflineSyncMutationFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for OfflineSyncMutation.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__OfflineSyncMutationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the OfflineSyncMutation model
|
|
*/
|
|
export interface OfflineSyncMutationFieldRefs {
|
|
readonly id: Prisma.FieldRef<"OfflineSyncMutation", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"OfflineSyncMutation", 'String'>
|
|
readonly clientMutationId: Prisma.FieldRef<"OfflineSyncMutation", 'String'>
|
|
readonly createdByUserId: Prisma.FieldRef<"OfflineSyncMutation", 'String'>
|
|
readonly operation: Prisma.FieldRef<"OfflineSyncMutation", 'OfflineSyncOperation'>
|
|
readonly payload: Prisma.FieldRef<"OfflineSyncMutation", 'Json'>
|
|
readonly status: Prisma.FieldRef<"OfflineSyncMutation", 'OfflineSyncStatus'>
|
|
readonly resultEntityType: Prisma.FieldRef<"OfflineSyncMutation", 'String'>
|
|
readonly resultEntityId: Prisma.FieldRef<"OfflineSyncMutation", 'String'>
|
|
readonly errorMessageKey: Prisma.FieldRef<"OfflineSyncMutation", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"OfflineSyncMutation", 'DateTime'>
|
|
readonly appliedAt: Prisma.FieldRef<"OfflineSyncMutation", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* OfflineSyncMutation findUnique
|
|
*/
|
|
export type OfflineSyncMutationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which OfflineSyncMutation to fetch.
|
|
*/
|
|
where: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation findUniqueOrThrow
|
|
*/
|
|
export type OfflineSyncMutationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which OfflineSyncMutation to fetch.
|
|
*/
|
|
where: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation findFirst
|
|
*/
|
|
export type OfflineSyncMutationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which OfflineSyncMutation to fetch.
|
|
*/
|
|
where?: Prisma.OfflineSyncMutationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of OfflineSyncMutations to fetch.
|
|
*/
|
|
orderBy?: Prisma.OfflineSyncMutationOrderByWithRelationInput | Prisma.OfflineSyncMutationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for OfflineSyncMutations.
|
|
*/
|
|
cursor?: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` OfflineSyncMutations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` OfflineSyncMutations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of OfflineSyncMutations.
|
|
*/
|
|
distinct?: Prisma.OfflineSyncMutationScalarFieldEnum | Prisma.OfflineSyncMutationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation findFirstOrThrow
|
|
*/
|
|
export type OfflineSyncMutationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which OfflineSyncMutation to fetch.
|
|
*/
|
|
where?: Prisma.OfflineSyncMutationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of OfflineSyncMutations to fetch.
|
|
*/
|
|
orderBy?: Prisma.OfflineSyncMutationOrderByWithRelationInput | Prisma.OfflineSyncMutationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for OfflineSyncMutations.
|
|
*/
|
|
cursor?: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` OfflineSyncMutations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` OfflineSyncMutations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of OfflineSyncMutations.
|
|
*/
|
|
distinct?: Prisma.OfflineSyncMutationScalarFieldEnum | Prisma.OfflineSyncMutationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation findMany
|
|
*/
|
|
export type OfflineSyncMutationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which OfflineSyncMutations to fetch.
|
|
*/
|
|
where?: Prisma.OfflineSyncMutationWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of OfflineSyncMutations to fetch.
|
|
*/
|
|
orderBy?: Prisma.OfflineSyncMutationOrderByWithRelationInput | Prisma.OfflineSyncMutationOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing OfflineSyncMutations.
|
|
*/
|
|
cursor?: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` OfflineSyncMutations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` OfflineSyncMutations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of OfflineSyncMutations.
|
|
*/
|
|
distinct?: Prisma.OfflineSyncMutationScalarFieldEnum | Prisma.OfflineSyncMutationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation create
|
|
*/
|
|
export type OfflineSyncMutationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a OfflineSyncMutation.
|
|
*/
|
|
data: Prisma.XOR<Prisma.OfflineSyncMutationCreateInput, Prisma.OfflineSyncMutationUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation createMany
|
|
*/
|
|
export type OfflineSyncMutationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many OfflineSyncMutations.
|
|
*/
|
|
data: Prisma.OfflineSyncMutationCreateManyInput | Prisma.OfflineSyncMutationCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation createManyAndReturn
|
|
*/
|
|
export type OfflineSyncMutationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many OfflineSyncMutations.
|
|
*/
|
|
data: Prisma.OfflineSyncMutationCreateManyInput | Prisma.OfflineSyncMutationCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation update
|
|
*/
|
|
export type OfflineSyncMutationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a OfflineSyncMutation.
|
|
*/
|
|
data: Prisma.XOR<Prisma.OfflineSyncMutationUpdateInput, Prisma.OfflineSyncMutationUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which OfflineSyncMutation to update.
|
|
*/
|
|
where: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation updateMany
|
|
*/
|
|
export type OfflineSyncMutationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update OfflineSyncMutations.
|
|
*/
|
|
data: Prisma.XOR<Prisma.OfflineSyncMutationUpdateManyMutationInput, Prisma.OfflineSyncMutationUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which OfflineSyncMutations to update
|
|
*/
|
|
where?: Prisma.OfflineSyncMutationWhereInput
|
|
/**
|
|
* Limit how many OfflineSyncMutations to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation updateManyAndReturn
|
|
*/
|
|
export type OfflineSyncMutationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update OfflineSyncMutations.
|
|
*/
|
|
data: Prisma.XOR<Prisma.OfflineSyncMutationUpdateManyMutationInput, Prisma.OfflineSyncMutationUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which OfflineSyncMutations to update
|
|
*/
|
|
where?: Prisma.OfflineSyncMutationWhereInput
|
|
/**
|
|
* Limit how many OfflineSyncMutations to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation upsert
|
|
*/
|
|
export type OfflineSyncMutationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the OfflineSyncMutation to update in case it exists.
|
|
*/
|
|
where: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
/**
|
|
* In case the OfflineSyncMutation found by the `where` argument doesn't exist, create a new OfflineSyncMutation with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.OfflineSyncMutationCreateInput, Prisma.OfflineSyncMutationUncheckedCreateInput>
|
|
/**
|
|
* In case the OfflineSyncMutation was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.OfflineSyncMutationUpdateInput, Prisma.OfflineSyncMutationUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation delete
|
|
*/
|
|
export type OfflineSyncMutationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which OfflineSyncMutation to delete.
|
|
*/
|
|
where: Prisma.OfflineSyncMutationWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation deleteMany
|
|
*/
|
|
export type OfflineSyncMutationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which OfflineSyncMutations to delete
|
|
*/
|
|
where?: Prisma.OfflineSyncMutationWhereInput
|
|
/**
|
|
* Limit how many OfflineSyncMutations to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* OfflineSyncMutation without action
|
|
*/
|
|
export type OfflineSyncMutationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OfflineSyncMutation
|
|
*/
|
|
select?: Prisma.OfflineSyncMutationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OfflineSyncMutation
|
|
*/
|
|
omit?: Prisma.OfflineSyncMutationOmit<ExtArgs> | null
|
|
}
|