Files
2026-07-08 16:15:37 +02:00

2676 lines
125 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 `CalendarConnection` 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 CalendarConnection
* A user's connection to an external calendar provider. PER-USER, tenant-scoped
* for isolation. The OAuth tokens are AES-256-GCM per-tenant-DEK envelopes
* (AD-8); never selected into a list view-model. `dataConnectionId` is an
* OPTIONAL read-only reference to the Apps-Engine DataConnection catalog entry
* (bare scalar, AD-21) — calendar runs autonomously if the catalog row is absent.
*/
export type CalendarConnectionModel = runtime.Types.Result.DefaultSelection<Prisma.$CalendarConnectionPayload>
export type AggregateCalendarConnection = {
_count: CalendarConnectionCountAggregateOutputType | null
_min: CalendarConnectionMinAggregateOutputType | null
_max: CalendarConnectionMaxAggregateOutputType | null
}
export type CalendarConnectionMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
userId: string | null
provider: $Enums.CalendarProvider | null
externalAccountEmail: string | null
externalAccountId: string | null
oauthRefreshTokenCiphertext: string | null
oauthAccessTokenCiphertext: string | null
oauthAccessTokenExpiresAt: Date | null
webhookSubscriptionId: string | null
webhookSubscriptionExpiresAt: Date | null
syncDirection: $Enums.CalendarSyncDirection | null
status: $Enums.CalendarConnectionStatus | null
lastSyncAt: Date | null
lastErrorText: string | null
dataConnectionId: string | null
isDemoData: boolean | null
archivedAt: Date | null
}
export type CalendarConnectionMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
userId: string | null
provider: $Enums.CalendarProvider | null
externalAccountEmail: string | null
externalAccountId: string | null
oauthRefreshTokenCiphertext: string | null
oauthAccessTokenCiphertext: string | null
oauthAccessTokenExpiresAt: Date | null
webhookSubscriptionId: string | null
webhookSubscriptionExpiresAt: Date | null
syncDirection: $Enums.CalendarSyncDirection | null
status: $Enums.CalendarConnectionStatus | null
lastSyncAt: Date | null
lastErrorText: string | null
dataConnectionId: string | null
isDemoData: boolean | null
archivedAt: Date | null
}
export type CalendarConnectionCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
userId: number
provider: number
externalAccountEmail: number
externalAccountId: number
oauthRefreshTokenCiphertext: number
oauthAccessTokenCiphertext: number
oauthAccessTokenExpiresAt: number
oauthScopes: number
webhookSubscriptionId: number
webhookSubscriptionExpiresAt: number
selectedCalendars: number
syncDirection: number
status: number
lastSyncAt: number
lastErrorText: number
dataConnectionId: number
isDemoData: number
archivedAt: number
_all: number
}
export type CalendarConnectionMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
userId?: true
provider?: true
externalAccountEmail?: true
externalAccountId?: true
oauthRefreshTokenCiphertext?: true
oauthAccessTokenCiphertext?: true
oauthAccessTokenExpiresAt?: true
webhookSubscriptionId?: true
webhookSubscriptionExpiresAt?: true
syncDirection?: true
status?: true
lastSyncAt?: true
lastErrorText?: true
dataConnectionId?: true
isDemoData?: true
archivedAt?: true
}
export type CalendarConnectionMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
userId?: true
provider?: true
externalAccountEmail?: true
externalAccountId?: true
oauthRefreshTokenCiphertext?: true
oauthAccessTokenCiphertext?: true
oauthAccessTokenExpiresAt?: true
webhookSubscriptionId?: true
webhookSubscriptionExpiresAt?: true
syncDirection?: true
status?: true
lastSyncAt?: true
lastErrorText?: true
dataConnectionId?: true
isDemoData?: true
archivedAt?: true
}
export type CalendarConnectionCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
userId?: true
provider?: true
externalAccountEmail?: true
externalAccountId?: true
oauthRefreshTokenCiphertext?: true
oauthAccessTokenCiphertext?: true
oauthAccessTokenExpiresAt?: true
oauthScopes?: true
webhookSubscriptionId?: true
webhookSubscriptionExpiresAt?: true
selectedCalendars?: true
syncDirection?: true
status?: true
lastSyncAt?: true
lastErrorText?: true
dataConnectionId?: true
isDemoData?: true
archivedAt?: true
_all?: true
}
export type CalendarConnectionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CalendarConnection to aggregate.
*/
where?: Prisma.CalendarConnectionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CalendarConnections to fetch.
*/
orderBy?: Prisma.CalendarConnectionOrderByWithRelationInput | Prisma.CalendarConnectionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.CalendarConnectionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CalendarConnections 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` CalendarConnections.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned CalendarConnections
**/
_count?: true | CalendarConnectionCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: CalendarConnectionMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: CalendarConnectionMaxAggregateInputType
}
export type GetCalendarConnectionAggregateType<T extends CalendarConnectionAggregateArgs> = {
[P in keyof T & keyof AggregateCalendarConnection]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCalendarConnection[P]>
: Prisma.GetScalarType<T[P], AggregateCalendarConnection[P]>
}
export type CalendarConnectionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CalendarConnectionWhereInput
orderBy?: Prisma.CalendarConnectionOrderByWithAggregationInput | Prisma.CalendarConnectionOrderByWithAggregationInput[]
by: Prisma.CalendarConnectionScalarFieldEnum[] | Prisma.CalendarConnectionScalarFieldEnum
having?: Prisma.CalendarConnectionScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: CalendarConnectionCountAggregateInputType | true
_min?: CalendarConnectionMinAggregateInputType
_max?: CalendarConnectionMaxAggregateInputType
}
export type CalendarConnectionGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string
userId: string
provider: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext: string | null
oauthAccessTokenCiphertext: string | null
oauthAccessTokenExpiresAt: Date | null
oauthScopes: string[]
webhookSubscriptionId: string | null
webhookSubscriptionExpiresAt: Date | null
selectedCalendars: runtime.JsonValue
syncDirection: $Enums.CalendarSyncDirection
status: $Enums.CalendarConnectionStatus
lastSyncAt: Date | null
lastErrorText: string | null
dataConnectionId: string | null
isDemoData: boolean
archivedAt: Date | null
_count: CalendarConnectionCountAggregateOutputType | null
_min: CalendarConnectionMinAggregateOutputType | null
_max: CalendarConnectionMaxAggregateOutputType | null
}
export type GetCalendarConnectionGroupByPayload<T extends CalendarConnectionGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<CalendarConnectionGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof CalendarConnectionGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], CalendarConnectionGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], CalendarConnectionGroupByOutputType[P]>
}
>
>
export type CalendarConnectionWhereInput = {
AND?: Prisma.CalendarConnectionWhereInput | Prisma.CalendarConnectionWhereInput[]
OR?: Prisma.CalendarConnectionWhereInput[]
NOT?: Prisma.CalendarConnectionWhereInput | Prisma.CalendarConnectionWhereInput[]
id?: Prisma.StringFilter<"CalendarConnection"> | string
createdAt?: Prisma.DateTimeFilter<"CalendarConnection"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CalendarConnection"> | Date | string
tenantId?: Prisma.StringFilter<"CalendarConnection"> | string
userId?: Prisma.StringFilter<"CalendarConnection"> | string
provider?: Prisma.EnumCalendarProviderFilter<"CalendarConnection"> | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFilter<"CalendarConnection"> | string
externalAccountId?: Prisma.StringFilter<"CalendarConnection"> | string
oauthRefreshTokenCiphertext?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
oauthAccessTokenCiphertext?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
oauthAccessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"CalendarConnection"> | Date | string | null
oauthScopes?: Prisma.StringNullableListFilter<"CalendarConnection">
webhookSubscriptionId?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
webhookSubscriptionExpiresAt?: Prisma.DateTimeNullableFilter<"CalendarConnection"> | Date | string | null
selectedCalendars?: Prisma.JsonFilter<"CalendarConnection">
syncDirection?: Prisma.EnumCalendarSyncDirectionFilter<"CalendarConnection"> | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFilter<"CalendarConnection"> | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.DateTimeNullableFilter<"CalendarConnection"> | Date | string | null
lastErrorText?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
dataConnectionId?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
isDemoData?: Prisma.BoolFilter<"CalendarConnection"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"CalendarConnection"> | Date | string | null
events?: Prisma.CalendarEventListRelationFilter
mappings?: Prisma.CalendarEventMappingListRelationFilter
syncCursors?: Prisma.CalendarSyncCursorListRelationFilter
webhookEvents?: Prisma.CalendarWebhookEventListRelationFilter
conflicts?: Prisma.CalendarConflictListRelationFilter
}
export type CalendarConnectionOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
userId?: Prisma.SortOrder
provider?: Prisma.SortOrder
externalAccountEmail?: Prisma.SortOrder
externalAccountId?: Prisma.SortOrder
oauthRefreshTokenCiphertext?: Prisma.SortOrderInput | Prisma.SortOrder
oauthAccessTokenCiphertext?: Prisma.SortOrderInput | Prisma.SortOrder
oauthAccessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
oauthScopes?: Prisma.SortOrder
webhookSubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder
webhookSubscriptionExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
selectedCalendars?: Prisma.SortOrder
syncDirection?: Prisma.SortOrder
status?: Prisma.SortOrder
lastSyncAt?: Prisma.SortOrderInput | Prisma.SortOrder
lastErrorText?: Prisma.SortOrderInput | Prisma.SortOrder
dataConnectionId?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
events?: Prisma.CalendarEventOrderByRelationAggregateInput
mappings?: Prisma.CalendarEventMappingOrderByRelationAggregateInput
syncCursors?: Prisma.CalendarSyncCursorOrderByRelationAggregateInput
webhookEvents?: Prisma.CalendarWebhookEventOrderByRelationAggregateInput
conflicts?: Prisma.CalendarConflictOrderByRelationAggregateInput
}
export type CalendarConnectionWhereUniqueInput = Prisma.AtLeast<{
id?: string
tenantId_userId_provider_externalAccountId?: Prisma.CalendarConnectionTenantIdUserIdProviderExternalAccountIdCompoundUniqueInput
AND?: Prisma.CalendarConnectionWhereInput | Prisma.CalendarConnectionWhereInput[]
OR?: Prisma.CalendarConnectionWhereInput[]
NOT?: Prisma.CalendarConnectionWhereInput | Prisma.CalendarConnectionWhereInput[]
createdAt?: Prisma.DateTimeFilter<"CalendarConnection"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CalendarConnection"> | Date | string
tenantId?: Prisma.StringFilter<"CalendarConnection"> | string
userId?: Prisma.StringFilter<"CalendarConnection"> | string
provider?: Prisma.EnumCalendarProviderFilter<"CalendarConnection"> | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFilter<"CalendarConnection"> | string
externalAccountId?: Prisma.StringFilter<"CalendarConnection"> | string
oauthRefreshTokenCiphertext?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
oauthAccessTokenCiphertext?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
oauthAccessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"CalendarConnection"> | Date | string | null
oauthScopes?: Prisma.StringNullableListFilter<"CalendarConnection">
webhookSubscriptionId?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
webhookSubscriptionExpiresAt?: Prisma.DateTimeNullableFilter<"CalendarConnection"> | Date | string | null
selectedCalendars?: Prisma.JsonFilter<"CalendarConnection">
syncDirection?: Prisma.EnumCalendarSyncDirectionFilter<"CalendarConnection"> | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFilter<"CalendarConnection"> | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.DateTimeNullableFilter<"CalendarConnection"> | Date | string | null
lastErrorText?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
dataConnectionId?: Prisma.StringNullableFilter<"CalendarConnection"> | string | null
isDemoData?: Prisma.BoolFilter<"CalendarConnection"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"CalendarConnection"> | Date | string | null
events?: Prisma.CalendarEventListRelationFilter
mappings?: Prisma.CalendarEventMappingListRelationFilter
syncCursors?: Prisma.CalendarSyncCursorListRelationFilter
webhookEvents?: Prisma.CalendarWebhookEventListRelationFilter
conflicts?: Prisma.CalendarConflictListRelationFilter
}, "id" | "tenantId_userId_provider_externalAccountId">
export type CalendarConnectionOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
userId?: Prisma.SortOrder
provider?: Prisma.SortOrder
externalAccountEmail?: Prisma.SortOrder
externalAccountId?: Prisma.SortOrder
oauthRefreshTokenCiphertext?: Prisma.SortOrderInput | Prisma.SortOrder
oauthAccessTokenCiphertext?: Prisma.SortOrderInput | Prisma.SortOrder
oauthAccessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
oauthScopes?: Prisma.SortOrder
webhookSubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder
webhookSubscriptionExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
selectedCalendars?: Prisma.SortOrder
syncDirection?: Prisma.SortOrder
status?: Prisma.SortOrder
lastSyncAt?: Prisma.SortOrderInput | Prisma.SortOrder
lastErrorText?: Prisma.SortOrderInput | Prisma.SortOrder
dataConnectionId?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.CalendarConnectionCountOrderByAggregateInput
_max?: Prisma.CalendarConnectionMaxOrderByAggregateInput
_min?: Prisma.CalendarConnectionMinOrderByAggregateInput
}
export type CalendarConnectionScalarWhereWithAggregatesInput = {
AND?: Prisma.CalendarConnectionScalarWhereWithAggregatesInput | Prisma.CalendarConnectionScalarWhereWithAggregatesInput[]
OR?: Prisma.CalendarConnectionScalarWhereWithAggregatesInput[]
NOT?: Prisma.CalendarConnectionScalarWhereWithAggregatesInput | Prisma.CalendarConnectionScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"CalendarConnection"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CalendarConnection"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CalendarConnection"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"CalendarConnection"> | string
userId?: Prisma.StringWithAggregatesFilter<"CalendarConnection"> | string
provider?: Prisma.EnumCalendarProviderWithAggregatesFilter<"CalendarConnection"> | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringWithAggregatesFilter<"CalendarConnection"> | string
externalAccountId?: Prisma.StringWithAggregatesFilter<"CalendarConnection"> | string
oauthRefreshTokenCiphertext?: Prisma.StringNullableWithAggregatesFilter<"CalendarConnection"> | string | null
oauthAccessTokenCiphertext?: Prisma.StringNullableWithAggregatesFilter<"CalendarConnection"> | string | null
oauthAccessTokenExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"CalendarConnection"> | Date | string | null
oauthScopes?: Prisma.StringNullableListFilter<"CalendarConnection">
webhookSubscriptionId?: Prisma.StringNullableWithAggregatesFilter<"CalendarConnection"> | string | null
webhookSubscriptionExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"CalendarConnection"> | Date | string | null
selectedCalendars?: Prisma.JsonWithAggregatesFilter<"CalendarConnection">
syncDirection?: Prisma.EnumCalendarSyncDirectionWithAggregatesFilter<"CalendarConnection"> | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusWithAggregatesFilter<"CalendarConnection"> | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.DateTimeNullableWithAggregatesFilter<"CalendarConnection"> | Date | string | null
lastErrorText?: Prisma.StringNullableWithAggregatesFilter<"CalendarConnection"> | string | null
dataConnectionId?: Prisma.StringNullableWithAggregatesFilter<"CalendarConnection"> | string | null
isDemoData?: Prisma.BoolWithAggregatesFilter<"CalendarConnection"> | boolean
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"CalendarConnection"> | Date | string | null
}
export type CalendarConnectionCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventCreateNestedManyWithoutConnectionInput
mappings?: Prisma.CalendarEventMappingCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventUncheckedCreateNestedManyWithoutConnectionInput
mappings?: Prisma.CalendarEventMappingUncheckedCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictUncheckedCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUpdateManyWithoutConnectionNestedInput
mappings?: Prisma.CalendarEventMappingUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUncheckedUpdateManyWithoutConnectionNestedInput
mappings?: Prisma.CalendarEventMappingUncheckedUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUncheckedUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type CalendarConnectionUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type CalendarConnectionUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type CalendarConnectionTenantIdUserIdProviderExternalAccountIdCompoundUniqueInput = {
tenantId: string
userId: string
provider: $Enums.CalendarProvider
externalAccountId: string
}
export type CalendarConnectionCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
userId?: Prisma.SortOrder
provider?: Prisma.SortOrder
externalAccountEmail?: Prisma.SortOrder
externalAccountId?: Prisma.SortOrder
oauthRefreshTokenCiphertext?: Prisma.SortOrder
oauthAccessTokenCiphertext?: Prisma.SortOrder
oauthAccessTokenExpiresAt?: Prisma.SortOrder
oauthScopes?: Prisma.SortOrder
webhookSubscriptionId?: Prisma.SortOrder
webhookSubscriptionExpiresAt?: Prisma.SortOrder
selectedCalendars?: Prisma.SortOrder
syncDirection?: Prisma.SortOrder
status?: Prisma.SortOrder
lastSyncAt?: Prisma.SortOrder
lastErrorText?: Prisma.SortOrder
dataConnectionId?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type CalendarConnectionMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
userId?: Prisma.SortOrder
provider?: Prisma.SortOrder
externalAccountEmail?: Prisma.SortOrder
externalAccountId?: Prisma.SortOrder
oauthRefreshTokenCiphertext?: Prisma.SortOrder
oauthAccessTokenCiphertext?: Prisma.SortOrder
oauthAccessTokenExpiresAt?: Prisma.SortOrder
webhookSubscriptionId?: Prisma.SortOrder
webhookSubscriptionExpiresAt?: Prisma.SortOrder
syncDirection?: Prisma.SortOrder
status?: Prisma.SortOrder
lastSyncAt?: Prisma.SortOrder
lastErrorText?: Prisma.SortOrder
dataConnectionId?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type CalendarConnectionMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
userId?: Prisma.SortOrder
provider?: Prisma.SortOrder
externalAccountEmail?: Prisma.SortOrder
externalAccountId?: Prisma.SortOrder
oauthRefreshTokenCiphertext?: Prisma.SortOrder
oauthAccessTokenCiphertext?: Prisma.SortOrder
oauthAccessTokenExpiresAt?: Prisma.SortOrder
webhookSubscriptionId?: Prisma.SortOrder
webhookSubscriptionExpiresAt?: Prisma.SortOrder
syncDirection?: Prisma.SortOrder
status?: Prisma.SortOrder
lastSyncAt?: Prisma.SortOrder
lastErrorText?: Prisma.SortOrder
dataConnectionId?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type CalendarConnectionNullableScalarRelationFilter = {
is?: Prisma.CalendarConnectionWhereInput | null
isNot?: Prisma.CalendarConnectionWhereInput | null
}
export type CalendarConnectionScalarRelationFilter = {
is?: Prisma.CalendarConnectionWhereInput
isNot?: Prisma.CalendarConnectionWhereInput
}
export type CalendarConnectionCreateoauthScopesInput = {
set: string[]
}
export type EnumCalendarProviderFieldUpdateOperationsInput = {
set?: $Enums.CalendarProvider
}
export type CalendarConnectionUpdateoauthScopesInput = {
set?: string[]
push?: string | string[]
}
export type EnumCalendarSyncDirectionFieldUpdateOperationsInput = {
set?: $Enums.CalendarSyncDirection
}
export type EnumCalendarConnectionStatusFieldUpdateOperationsInput = {
set?: $Enums.CalendarConnectionStatus
}
export type CalendarConnectionCreateNestedOneWithoutEventsInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutEventsInput, Prisma.CalendarConnectionUncheckedCreateWithoutEventsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutEventsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
}
export type CalendarConnectionUpdateOneWithoutEventsNestedInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutEventsInput, Prisma.CalendarConnectionUncheckedCreateWithoutEventsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutEventsInput
upsert?: Prisma.CalendarConnectionUpsertWithoutEventsInput
disconnect?: Prisma.CalendarConnectionWhereInput | boolean
delete?: Prisma.CalendarConnectionWhereInput | boolean
connect?: Prisma.CalendarConnectionWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CalendarConnectionUpdateToOneWithWhereWithoutEventsInput, Prisma.CalendarConnectionUpdateWithoutEventsInput>, Prisma.CalendarConnectionUncheckedUpdateWithoutEventsInput>
}
export type CalendarConnectionCreateNestedOneWithoutMappingsInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutMappingsInput, Prisma.CalendarConnectionUncheckedCreateWithoutMappingsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutMappingsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
}
export type CalendarConnectionUpdateOneRequiredWithoutMappingsNestedInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutMappingsInput, Prisma.CalendarConnectionUncheckedCreateWithoutMappingsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutMappingsInput
upsert?: Prisma.CalendarConnectionUpsertWithoutMappingsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CalendarConnectionUpdateToOneWithWhereWithoutMappingsInput, Prisma.CalendarConnectionUpdateWithoutMappingsInput>, Prisma.CalendarConnectionUncheckedUpdateWithoutMappingsInput>
}
export type CalendarConnectionCreateNestedOneWithoutSyncCursorsInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutSyncCursorsInput, Prisma.CalendarConnectionUncheckedCreateWithoutSyncCursorsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutSyncCursorsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
}
export type CalendarConnectionUpdateOneRequiredWithoutSyncCursorsNestedInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutSyncCursorsInput, Prisma.CalendarConnectionUncheckedCreateWithoutSyncCursorsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutSyncCursorsInput
upsert?: Prisma.CalendarConnectionUpsertWithoutSyncCursorsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CalendarConnectionUpdateToOneWithWhereWithoutSyncCursorsInput, Prisma.CalendarConnectionUpdateWithoutSyncCursorsInput>, Prisma.CalendarConnectionUncheckedUpdateWithoutSyncCursorsInput>
}
export type CalendarConnectionCreateNestedOneWithoutWebhookEventsInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutWebhookEventsInput, Prisma.CalendarConnectionUncheckedCreateWithoutWebhookEventsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutWebhookEventsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
}
export type CalendarConnectionUpdateOneRequiredWithoutWebhookEventsNestedInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutWebhookEventsInput, Prisma.CalendarConnectionUncheckedCreateWithoutWebhookEventsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutWebhookEventsInput
upsert?: Prisma.CalendarConnectionUpsertWithoutWebhookEventsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CalendarConnectionUpdateToOneWithWhereWithoutWebhookEventsInput, Prisma.CalendarConnectionUpdateWithoutWebhookEventsInput>, Prisma.CalendarConnectionUncheckedUpdateWithoutWebhookEventsInput>
}
export type CalendarConnectionCreateNestedOneWithoutConflictsInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutConflictsInput, Prisma.CalendarConnectionUncheckedCreateWithoutConflictsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutConflictsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
}
export type CalendarConnectionUpdateOneRequiredWithoutConflictsNestedInput = {
create?: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutConflictsInput, Prisma.CalendarConnectionUncheckedCreateWithoutConflictsInput>
connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutConflictsInput
upsert?: Prisma.CalendarConnectionUpsertWithoutConflictsInput
connect?: Prisma.CalendarConnectionWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CalendarConnectionUpdateToOneWithWhereWithoutConflictsInput, Prisma.CalendarConnectionUpdateWithoutConflictsInput>, Prisma.CalendarConnectionUncheckedUpdateWithoutConflictsInput>
}
export type CalendarConnectionCreateWithoutEventsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
mappings?: Prisma.CalendarEventMappingCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionUncheckedCreateWithoutEventsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
mappings?: Prisma.CalendarEventMappingUncheckedCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictUncheckedCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionCreateOrConnectWithoutEventsInput = {
where: Prisma.CalendarConnectionWhereUniqueInput
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutEventsInput, Prisma.CalendarConnectionUncheckedCreateWithoutEventsInput>
}
export type CalendarConnectionUpsertWithoutEventsInput = {
update: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutEventsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutEventsInput>
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutEventsInput, Prisma.CalendarConnectionUncheckedCreateWithoutEventsInput>
where?: Prisma.CalendarConnectionWhereInput
}
export type CalendarConnectionUpdateToOneWithWhereWithoutEventsInput = {
where?: Prisma.CalendarConnectionWhereInput
data: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutEventsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutEventsInput>
}
export type CalendarConnectionUpdateWithoutEventsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
mappings?: Prisma.CalendarEventMappingUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionUncheckedUpdateWithoutEventsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
mappings?: Prisma.CalendarEventMappingUncheckedUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUncheckedUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionCreateWithoutMappingsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionUncheckedCreateWithoutMappingsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventUncheckedCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictUncheckedCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionCreateOrConnectWithoutMappingsInput = {
where: Prisma.CalendarConnectionWhereUniqueInput
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutMappingsInput, Prisma.CalendarConnectionUncheckedCreateWithoutMappingsInput>
}
export type CalendarConnectionUpsertWithoutMappingsInput = {
update: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutMappingsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutMappingsInput>
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutMappingsInput, Prisma.CalendarConnectionUncheckedCreateWithoutMappingsInput>
where?: Prisma.CalendarConnectionWhereInput
}
export type CalendarConnectionUpdateToOneWithWhereWithoutMappingsInput = {
where?: Prisma.CalendarConnectionWhereInput
data: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutMappingsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutMappingsInput>
}
export type CalendarConnectionUpdateWithoutMappingsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionUncheckedUpdateWithoutMappingsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUncheckedUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUncheckedUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionCreateWithoutSyncCursorsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventCreateNestedManyWithoutConnectionInput
mappings?: Prisma.CalendarEventMappingCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionUncheckedCreateWithoutSyncCursorsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventUncheckedCreateNestedManyWithoutConnectionInput
mappings?: Prisma.CalendarEventMappingUncheckedCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictUncheckedCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionCreateOrConnectWithoutSyncCursorsInput = {
where: Prisma.CalendarConnectionWhereUniqueInput
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutSyncCursorsInput, Prisma.CalendarConnectionUncheckedCreateWithoutSyncCursorsInput>
}
export type CalendarConnectionUpsertWithoutSyncCursorsInput = {
update: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutSyncCursorsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutSyncCursorsInput>
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutSyncCursorsInput, Prisma.CalendarConnectionUncheckedCreateWithoutSyncCursorsInput>
where?: Prisma.CalendarConnectionWhereInput
}
export type CalendarConnectionUpdateToOneWithWhereWithoutSyncCursorsInput = {
where?: Prisma.CalendarConnectionWhereInput
data: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutSyncCursorsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutSyncCursorsInput>
}
export type CalendarConnectionUpdateWithoutSyncCursorsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUpdateManyWithoutConnectionNestedInput
mappings?: Prisma.CalendarEventMappingUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionUncheckedUpdateWithoutSyncCursorsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUncheckedUpdateManyWithoutConnectionNestedInput
mappings?: Prisma.CalendarEventMappingUncheckedUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUncheckedUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionCreateWithoutWebhookEventsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventCreateNestedManyWithoutConnectionInput
mappings?: Prisma.CalendarEventMappingCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionUncheckedCreateWithoutWebhookEventsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventUncheckedCreateNestedManyWithoutConnectionInput
mappings?: Prisma.CalendarEventMappingUncheckedCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedCreateNestedManyWithoutConnectionInput
conflicts?: Prisma.CalendarConflictUncheckedCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionCreateOrConnectWithoutWebhookEventsInput = {
where: Prisma.CalendarConnectionWhereUniqueInput
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutWebhookEventsInput, Prisma.CalendarConnectionUncheckedCreateWithoutWebhookEventsInput>
}
export type CalendarConnectionUpsertWithoutWebhookEventsInput = {
update: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutWebhookEventsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutWebhookEventsInput>
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutWebhookEventsInput, Prisma.CalendarConnectionUncheckedCreateWithoutWebhookEventsInput>
where?: Prisma.CalendarConnectionWhereInput
}
export type CalendarConnectionUpdateToOneWithWhereWithoutWebhookEventsInput = {
where?: Prisma.CalendarConnectionWhereInput
data: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutWebhookEventsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutWebhookEventsInput>
}
export type CalendarConnectionUpdateWithoutWebhookEventsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUpdateManyWithoutConnectionNestedInput
mappings?: Prisma.CalendarEventMappingUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionUncheckedUpdateWithoutWebhookEventsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUncheckedUpdateManyWithoutConnectionNestedInput
mappings?: Prisma.CalendarEventMappingUncheckedUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedUpdateManyWithoutConnectionNestedInput
conflicts?: Prisma.CalendarConflictUncheckedUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionCreateWithoutConflictsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventCreateNestedManyWithoutConnectionInput
mappings?: Prisma.CalendarEventMappingCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionUncheckedCreateWithoutConflictsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
provider?: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext?: string | null
oauthAccessTokenCiphertext?: string | null
oauthAccessTokenExpiresAt?: Date | string | null
oauthScopes?: Prisma.CalendarConnectionCreateoauthScopesInput | string[]
webhookSubscriptionId?: string | null
webhookSubscriptionExpiresAt?: Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: $Enums.CalendarSyncDirection
status?: $Enums.CalendarConnectionStatus
lastSyncAt?: Date | string | null
lastErrorText?: string | null
dataConnectionId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
events?: Prisma.CalendarEventUncheckedCreateNestedManyWithoutConnectionInput
mappings?: Prisma.CalendarEventMappingUncheckedCreateNestedManyWithoutConnectionInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedCreateNestedManyWithoutConnectionInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedCreateNestedManyWithoutConnectionInput
}
export type CalendarConnectionCreateOrConnectWithoutConflictsInput = {
where: Prisma.CalendarConnectionWhereUniqueInput
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutConflictsInput, Prisma.CalendarConnectionUncheckedCreateWithoutConflictsInput>
}
export type CalendarConnectionUpsertWithoutConflictsInput = {
update: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutConflictsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutConflictsInput>
create: Prisma.XOR<Prisma.CalendarConnectionCreateWithoutConflictsInput, Prisma.CalendarConnectionUncheckedCreateWithoutConflictsInput>
where?: Prisma.CalendarConnectionWhereInput
}
export type CalendarConnectionUpdateToOneWithWhereWithoutConflictsInput = {
where?: Prisma.CalendarConnectionWhereInput
data: Prisma.XOR<Prisma.CalendarConnectionUpdateWithoutConflictsInput, Prisma.CalendarConnectionUncheckedUpdateWithoutConflictsInput>
}
export type CalendarConnectionUpdateWithoutConflictsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUpdateManyWithoutConnectionNestedInput
mappings?: Prisma.CalendarEventMappingUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUpdateManyWithoutConnectionNestedInput
}
export type CalendarConnectionUncheckedUpdateWithoutConflictsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
provider?: Prisma.EnumCalendarProviderFieldUpdateOperationsInput | $Enums.CalendarProvider
externalAccountEmail?: Prisma.StringFieldUpdateOperationsInput | string
externalAccountId?: Prisma.StringFieldUpdateOperationsInput | string
oauthRefreshTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenCiphertext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthAccessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
oauthScopes?: Prisma.CalendarConnectionUpdateoauthScopesInput | string[]
webhookSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
webhookSubscriptionExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
selectedCalendars?: Prisma.JsonNullValueInput | runtime.InputJsonValue
syncDirection?: Prisma.EnumCalendarSyncDirectionFieldUpdateOperationsInput | $Enums.CalendarSyncDirection
status?: Prisma.EnumCalendarConnectionStatusFieldUpdateOperationsInput | $Enums.CalendarConnectionStatus
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dataConnectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
events?: Prisma.CalendarEventUncheckedUpdateManyWithoutConnectionNestedInput
mappings?: Prisma.CalendarEventMappingUncheckedUpdateManyWithoutConnectionNestedInput
syncCursors?: Prisma.CalendarSyncCursorUncheckedUpdateManyWithoutConnectionNestedInput
webhookEvents?: Prisma.CalendarWebhookEventUncheckedUpdateManyWithoutConnectionNestedInput
}
/**
* Count Type CalendarConnectionCountOutputType
*/
export type CalendarConnectionCountOutputType = {
events: number
mappings: number
syncCursors: number
webhookEvents: number
conflicts: number
}
export type CalendarConnectionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
events?: boolean | CalendarConnectionCountOutputTypeCountEventsArgs
mappings?: boolean | CalendarConnectionCountOutputTypeCountMappingsArgs
syncCursors?: boolean | CalendarConnectionCountOutputTypeCountSyncCursorsArgs
webhookEvents?: boolean | CalendarConnectionCountOutputTypeCountWebhookEventsArgs
conflicts?: boolean | CalendarConnectionCountOutputTypeCountConflictsArgs
}
/**
* CalendarConnectionCountOutputType without action
*/
export type CalendarConnectionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnectionCountOutputType
*/
select?: Prisma.CalendarConnectionCountOutputTypeSelect<ExtArgs> | null
}
/**
* CalendarConnectionCountOutputType without action
*/
export type CalendarConnectionCountOutputTypeCountEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CalendarEventWhereInput
}
/**
* CalendarConnectionCountOutputType without action
*/
export type CalendarConnectionCountOutputTypeCountMappingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CalendarEventMappingWhereInput
}
/**
* CalendarConnectionCountOutputType without action
*/
export type CalendarConnectionCountOutputTypeCountSyncCursorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CalendarSyncCursorWhereInput
}
/**
* CalendarConnectionCountOutputType without action
*/
export type CalendarConnectionCountOutputTypeCountWebhookEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CalendarWebhookEventWhereInput
}
/**
* CalendarConnectionCountOutputType without action
*/
export type CalendarConnectionCountOutputTypeCountConflictsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CalendarConflictWhereInput
}
export type CalendarConnectionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
userId?: boolean
provider?: boolean
externalAccountEmail?: boolean
externalAccountId?: boolean
oauthRefreshTokenCiphertext?: boolean
oauthAccessTokenCiphertext?: boolean
oauthAccessTokenExpiresAt?: boolean
oauthScopes?: boolean
webhookSubscriptionId?: boolean
webhookSubscriptionExpiresAt?: boolean
selectedCalendars?: boolean
syncDirection?: boolean
status?: boolean
lastSyncAt?: boolean
lastErrorText?: boolean
dataConnectionId?: boolean
isDemoData?: boolean
archivedAt?: boolean
events?: boolean | Prisma.CalendarConnection$eventsArgs<ExtArgs>
mappings?: boolean | Prisma.CalendarConnection$mappingsArgs<ExtArgs>
syncCursors?: boolean | Prisma.CalendarConnection$syncCursorsArgs<ExtArgs>
webhookEvents?: boolean | Prisma.CalendarConnection$webhookEventsArgs<ExtArgs>
conflicts?: boolean | Prisma.CalendarConnection$conflictsArgs<ExtArgs>
_count?: boolean | Prisma.CalendarConnectionCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["calendarConnection"]>
export type CalendarConnectionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
userId?: boolean
provider?: boolean
externalAccountEmail?: boolean
externalAccountId?: boolean
oauthRefreshTokenCiphertext?: boolean
oauthAccessTokenCiphertext?: boolean
oauthAccessTokenExpiresAt?: boolean
oauthScopes?: boolean
webhookSubscriptionId?: boolean
webhookSubscriptionExpiresAt?: boolean
selectedCalendars?: boolean
syncDirection?: boolean
status?: boolean
lastSyncAt?: boolean
lastErrorText?: boolean
dataConnectionId?: boolean
isDemoData?: boolean
archivedAt?: boolean
}, ExtArgs["result"]["calendarConnection"]>
export type CalendarConnectionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
userId?: boolean
provider?: boolean
externalAccountEmail?: boolean
externalAccountId?: boolean
oauthRefreshTokenCiphertext?: boolean
oauthAccessTokenCiphertext?: boolean
oauthAccessTokenExpiresAt?: boolean
oauthScopes?: boolean
webhookSubscriptionId?: boolean
webhookSubscriptionExpiresAt?: boolean
selectedCalendars?: boolean
syncDirection?: boolean
status?: boolean
lastSyncAt?: boolean
lastErrorText?: boolean
dataConnectionId?: boolean
isDemoData?: boolean
archivedAt?: boolean
}, ExtArgs["result"]["calendarConnection"]>
export type CalendarConnectionSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
userId?: boolean
provider?: boolean
externalAccountEmail?: boolean
externalAccountId?: boolean
oauthRefreshTokenCiphertext?: boolean
oauthAccessTokenCiphertext?: boolean
oauthAccessTokenExpiresAt?: boolean
oauthScopes?: boolean
webhookSubscriptionId?: boolean
webhookSubscriptionExpiresAt?: boolean
selectedCalendars?: boolean
syncDirection?: boolean
status?: boolean
lastSyncAt?: boolean
lastErrorText?: boolean
dataConnectionId?: boolean
isDemoData?: boolean
archivedAt?: boolean
}
export type CalendarConnectionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "userId" | "provider" | "externalAccountEmail" | "externalAccountId" | "oauthRefreshTokenCiphertext" | "oauthAccessTokenCiphertext" | "oauthAccessTokenExpiresAt" | "oauthScopes" | "webhookSubscriptionId" | "webhookSubscriptionExpiresAt" | "selectedCalendars" | "syncDirection" | "status" | "lastSyncAt" | "lastErrorText" | "dataConnectionId" | "isDemoData" | "archivedAt", ExtArgs["result"]["calendarConnection"]>
export type CalendarConnectionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
events?: boolean | Prisma.CalendarConnection$eventsArgs<ExtArgs>
mappings?: boolean | Prisma.CalendarConnection$mappingsArgs<ExtArgs>
syncCursors?: boolean | Prisma.CalendarConnection$syncCursorsArgs<ExtArgs>
webhookEvents?: boolean | Prisma.CalendarConnection$webhookEventsArgs<ExtArgs>
conflicts?: boolean | Prisma.CalendarConnection$conflictsArgs<ExtArgs>
_count?: boolean | Prisma.CalendarConnectionCountOutputTypeDefaultArgs<ExtArgs>
}
export type CalendarConnectionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type CalendarConnectionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $CalendarConnectionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CalendarConnection"
objects: {
events: Prisma.$CalendarEventPayload<ExtArgs>[]
mappings: Prisma.$CalendarEventMappingPayload<ExtArgs>[]
syncCursors: Prisma.$CalendarSyncCursorPayload<ExtArgs>[]
webhookEvents: Prisma.$CalendarWebhookEventPayload<ExtArgs>[]
conflicts: Prisma.$CalendarConflictPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string
userId: string
provider: $Enums.CalendarProvider
externalAccountEmail: string
externalAccountId: string
oauthRefreshTokenCiphertext: string | null
oauthAccessTokenCiphertext: string | null
oauthAccessTokenExpiresAt: Date | null
oauthScopes: string[]
webhookSubscriptionId: string | null
webhookSubscriptionExpiresAt: Date | null
selectedCalendars: runtime.JsonValue
syncDirection: $Enums.CalendarSyncDirection
status: $Enums.CalendarConnectionStatus
lastSyncAt: Date | null
lastErrorText: string | null
dataConnectionId: string | null
isDemoData: boolean
archivedAt: Date | null
}, ExtArgs["result"]["calendarConnection"]>
composites: {}
}
export type CalendarConnectionGetPayload<S extends boolean | null | undefined | CalendarConnectionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload, S>
export type CalendarConnectionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<CalendarConnectionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: CalendarConnectionCountAggregateInputType | true
}
export interface CalendarConnectionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CalendarConnection'], meta: { name: 'CalendarConnection' } }
/**
* Find zero or one CalendarConnection that matches the filter.
* @param {CalendarConnectionFindUniqueArgs} args - Arguments to find a CalendarConnection
* @example
* // Get one CalendarConnection
* const calendarConnection = await prisma.calendarConnection.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends CalendarConnectionFindUniqueArgs>(args: Prisma.SelectSubset<T, CalendarConnectionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CalendarConnectionClient<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one CalendarConnection that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {CalendarConnectionFindUniqueOrThrowArgs} args - Arguments to find a CalendarConnection
* @example
* // Get one CalendarConnection
* const calendarConnection = await prisma.calendarConnection.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends CalendarConnectionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CalendarConnectionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CalendarConnectionClient<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first CalendarConnection 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 {CalendarConnectionFindFirstArgs} args - Arguments to find a CalendarConnection
* @example
* // Get one CalendarConnection
* const calendarConnection = await prisma.calendarConnection.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends CalendarConnectionFindFirstArgs>(args?: Prisma.SelectSubset<T, CalendarConnectionFindFirstArgs<ExtArgs>>): Prisma.Prisma__CalendarConnectionClient<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first CalendarConnection 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 {CalendarConnectionFindFirstOrThrowArgs} args - Arguments to find a CalendarConnection
* @example
* // Get one CalendarConnection
* const calendarConnection = await prisma.calendarConnection.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends CalendarConnectionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CalendarConnectionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CalendarConnectionClient<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more CalendarConnections 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 {CalendarConnectionFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all CalendarConnections
* const calendarConnections = await prisma.calendarConnection.findMany()
*
* // Get first 10 CalendarConnections
* const calendarConnections = await prisma.calendarConnection.findMany({ take: 10 })
*
* // Only select the `id`
* const calendarConnectionWithIdOnly = await prisma.calendarConnection.findMany({ select: { id: true } })
*
*/
findMany<T extends CalendarConnectionFindManyArgs>(args?: Prisma.SelectSubset<T, CalendarConnectionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a CalendarConnection.
* @param {CalendarConnectionCreateArgs} args - Arguments to create a CalendarConnection.
* @example
* // Create one CalendarConnection
* const CalendarConnection = await prisma.calendarConnection.create({
* data: {
* // ... data to create a CalendarConnection
* }
* })
*
*/
create<T extends CalendarConnectionCreateArgs>(args: Prisma.SelectSubset<T, CalendarConnectionCreateArgs<ExtArgs>>): Prisma.Prisma__CalendarConnectionClient<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many CalendarConnections.
* @param {CalendarConnectionCreateManyArgs} args - Arguments to create many CalendarConnections.
* @example
* // Create many CalendarConnections
* const calendarConnection = await prisma.calendarConnection.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends CalendarConnectionCreateManyArgs>(args?: Prisma.SelectSubset<T, CalendarConnectionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many CalendarConnections and returns the data saved in the database.
* @param {CalendarConnectionCreateManyAndReturnArgs} args - Arguments to create many CalendarConnections.
* @example
* // Create many CalendarConnections
* const calendarConnection = await prisma.calendarConnection.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many CalendarConnections and only return the `id`
* const calendarConnectionWithIdOnly = await prisma.calendarConnection.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 CalendarConnectionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CalendarConnectionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a CalendarConnection.
* @param {CalendarConnectionDeleteArgs} args - Arguments to delete one CalendarConnection.
* @example
* // Delete one CalendarConnection
* const CalendarConnection = await prisma.calendarConnection.delete({
* where: {
* // ... filter to delete one CalendarConnection
* }
* })
*
*/
delete<T extends CalendarConnectionDeleteArgs>(args: Prisma.SelectSubset<T, CalendarConnectionDeleteArgs<ExtArgs>>): Prisma.Prisma__CalendarConnectionClient<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one CalendarConnection.
* @param {CalendarConnectionUpdateArgs} args - Arguments to update one CalendarConnection.
* @example
* // Update one CalendarConnection
* const calendarConnection = await prisma.calendarConnection.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends CalendarConnectionUpdateArgs>(args: Prisma.SelectSubset<T, CalendarConnectionUpdateArgs<ExtArgs>>): Prisma.Prisma__CalendarConnectionClient<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more CalendarConnections.
* @param {CalendarConnectionDeleteManyArgs} args - Arguments to filter CalendarConnections to delete.
* @example
* // Delete a few CalendarConnections
* const { count } = await prisma.calendarConnection.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends CalendarConnectionDeleteManyArgs>(args?: Prisma.SelectSubset<T, CalendarConnectionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CalendarConnections.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CalendarConnectionUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many CalendarConnections
* const calendarConnection = await prisma.calendarConnection.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends CalendarConnectionUpdateManyArgs>(args: Prisma.SelectSubset<T, CalendarConnectionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CalendarConnections and returns the data updated in the database.
* @param {CalendarConnectionUpdateManyAndReturnArgs} args - Arguments to update many CalendarConnections.
* @example
* // Update many CalendarConnections
* const calendarConnection = await prisma.calendarConnection.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more CalendarConnections and only return the `id`
* const calendarConnectionWithIdOnly = await prisma.calendarConnection.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 CalendarConnectionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CalendarConnectionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one CalendarConnection.
* @param {CalendarConnectionUpsertArgs} args - Arguments to update or create a CalendarConnection.
* @example
* // Update or create a CalendarConnection
* const calendarConnection = await prisma.calendarConnection.upsert({
* create: {
* // ... data to create a CalendarConnection
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the CalendarConnection we want to update
* }
* })
*/
upsert<T extends CalendarConnectionUpsertArgs>(args: Prisma.SelectSubset<T, CalendarConnectionUpsertArgs<ExtArgs>>): Prisma.Prisma__CalendarConnectionClient<runtime.Types.Result.GetResult<Prisma.$CalendarConnectionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of CalendarConnections.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CalendarConnectionCountArgs} args - Arguments to filter CalendarConnections to count.
* @example
* // Count the number of CalendarConnections
* const count = await prisma.calendarConnection.count({
* where: {
* // ... the filter for the CalendarConnections we want to count
* }
* })
**/
count<T extends CalendarConnectionCountArgs>(
args?: Prisma.Subset<T, CalendarConnectionCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], CalendarConnectionCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a CalendarConnection.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CalendarConnectionAggregateArgs} 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 CalendarConnectionAggregateArgs>(args: Prisma.Subset<T, CalendarConnectionAggregateArgs>): Prisma.PrismaPromise<GetCalendarConnectionAggregateType<T>>
/**
* Group by CalendarConnection.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CalendarConnectionGroupByArgs} 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 CalendarConnectionGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: CalendarConnectionGroupByArgs['orderBy'] }
: { orderBy?: CalendarConnectionGroupByArgs['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, CalendarConnectionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCalendarConnectionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the CalendarConnection model
*/
readonly fields: CalendarConnectionFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for CalendarConnection.
* 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__CalendarConnectionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
events<T extends Prisma.CalendarConnection$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CalendarConnection$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CalendarEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
mappings<T extends Prisma.CalendarConnection$mappingsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CalendarConnection$mappingsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CalendarEventMappingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
syncCursors<T extends Prisma.CalendarConnection$syncCursorsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CalendarConnection$syncCursorsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CalendarSyncCursorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
webhookEvents<T extends Prisma.CalendarConnection$webhookEventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CalendarConnection$webhookEventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CalendarWebhookEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
conflicts<T extends Prisma.CalendarConnection$conflictsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CalendarConnection$conflictsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CalendarConflictPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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 CalendarConnection model
*/
export interface CalendarConnectionFieldRefs {
readonly id: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly createdAt: Prisma.FieldRef<"CalendarConnection", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"CalendarConnection", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly userId: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly provider: Prisma.FieldRef<"CalendarConnection", 'CalendarProvider'>
readonly externalAccountEmail: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly externalAccountId: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly oauthRefreshTokenCiphertext: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly oauthAccessTokenCiphertext: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly oauthAccessTokenExpiresAt: Prisma.FieldRef<"CalendarConnection", 'DateTime'>
readonly oauthScopes: Prisma.FieldRef<"CalendarConnection", 'String[]'>
readonly webhookSubscriptionId: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly webhookSubscriptionExpiresAt: Prisma.FieldRef<"CalendarConnection", 'DateTime'>
readonly selectedCalendars: Prisma.FieldRef<"CalendarConnection", 'Json'>
readonly syncDirection: Prisma.FieldRef<"CalendarConnection", 'CalendarSyncDirection'>
readonly status: Prisma.FieldRef<"CalendarConnection", 'CalendarConnectionStatus'>
readonly lastSyncAt: Prisma.FieldRef<"CalendarConnection", 'DateTime'>
readonly lastErrorText: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly dataConnectionId: Prisma.FieldRef<"CalendarConnection", 'String'>
readonly isDemoData: Prisma.FieldRef<"CalendarConnection", 'Boolean'>
readonly archivedAt: Prisma.FieldRef<"CalendarConnection", 'DateTime'>
}
// Custom InputTypes
/**
* CalendarConnection findUnique
*/
export type CalendarConnectionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* Filter, which CalendarConnection to fetch.
*/
where: Prisma.CalendarConnectionWhereUniqueInput
}
/**
* CalendarConnection findUniqueOrThrow
*/
export type CalendarConnectionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* Filter, which CalendarConnection to fetch.
*/
where: Prisma.CalendarConnectionWhereUniqueInput
}
/**
* CalendarConnection findFirst
*/
export type CalendarConnectionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* Filter, which CalendarConnection to fetch.
*/
where?: Prisma.CalendarConnectionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CalendarConnections to fetch.
*/
orderBy?: Prisma.CalendarConnectionOrderByWithRelationInput | Prisma.CalendarConnectionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CalendarConnections.
*/
cursor?: Prisma.CalendarConnectionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CalendarConnections 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` CalendarConnections.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CalendarConnections.
*/
distinct?: Prisma.CalendarConnectionScalarFieldEnum | Prisma.CalendarConnectionScalarFieldEnum[]
}
/**
* CalendarConnection findFirstOrThrow
*/
export type CalendarConnectionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* Filter, which CalendarConnection to fetch.
*/
where?: Prisma.CalendarConnectionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CalendarConnections to fetch.
*/
orderBy?: Prisma.CalendarConnectionOrderByWithRelationInput | Prisma.CalendarConnectionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CalendarConnections.
*/
cursor?: Prisma.CalendarConnectionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CalendarConnections 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` CalendarConnections.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CalendarConnections.
*/
distinct?: Prisma.CalendarConnectionScalarFieldEnum | Prisma.CalendarConnectionScalarFieldEnum[]
}
/**
* CalendarConnection findMany
*/
export type CalendarConnectionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* Filter, which CalendarConnections to fetch.
*/
where?: Prisma.CalendarConnectionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CalendarConnections to fetch.
*/
orderBy?: Prisma.CalendarConnectionOrderByWithRelationInput | Prisma.CalendarConnectionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing CalendarConnections.
*/
cursor?: Prisma.CalendarConnectionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CalendarConnections 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` CalendarConnections.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CalendarConnections.
*/
distinct?: Prisma.CalendarConnectionScalarFieldEnum | Prisma.CalendarConnectionScalarFieldEnum[]
}
/**
* CalendarConnection create
*/
export type CalendarConnectionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* The data needed to create a CalendarConnection.
*/
data: Prisma.XOR<Prisma.CalendarConnectionCreateInput, Prisma.CalendarConnectionUncheckedCreateInput>
}
/**
* CalendarConnection createMany
*/
export type CalendarConnectionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many CalendarConnections.
*/
data: Prisma.CalendarConnectionCreateManyInput | Prisma.CalendarConnectionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* CalendarConnection createManyAndReturn
*/
export type CalendarConnectionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* The data used to create many CalendarConnections.
*/
data: Prisma.CalendarConnectionCreateManyInput | Prisma.CalendarConnectionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* CalendarConnection update
*/
export type CalendarConnectionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* The data needed to update a CalendarConnection.
*/
data: Prisma.XOR<Prisma.CalendarConnectionUpdateInput, Prisma.CalendarConnectionUncheckedUpdateInput>
/**
* Choose, which CalendarConnection to update.
*/
where: Prisma.CalendarConnectionWhereUniqueInput
}
/**
* CalendarConnection updateMany
*/
export type CalendarConnectionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update CalendarConnections.
*/
data: Prisma.XOR<Prisma.CalendarConnectionUpdateManyMutationInput, Prisma.CalendarConnectionUncheckedUpdateManyInput>
/**
* Filter which CalendarConnections to update
*/
where?: Prisma.CalendarConnectionWhereInput
/**
* Limit how many CalendarConnections to update.
*/
limit?: number
}
/**
* CalendarConnection updateManyAndReturn
*/
export type CalendarConnectionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* The data used to update CalendarConnections.
*/
data: Prisma.XOR<Prisma.CalendarConnectionUpdateManyMutationInput, Prisma.CalendarConnectionUncheckedUpdateManyInput>
/**
* Filter which CalendarConnections to update
*/
where?: Prisma.CalendarConnectionWhereInput
/**
* Limit how many CalendarConnections to update.
*/
limit?: number
}
/**
* CalendarConnection upsert
*/
export type CalendarConnectionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* The filter to search for the CalendarConnection to update in case it exists.
*/
where: Prisma.CalendarConnectionWhereUniqueInput
/**
* In case the CalendarConnection found by the `where` argument doesn't exist, create a new CalendarConnection with this data.
*/
create: Prisma.XOR<Prisma.CalendarConnectionCreateInput, Prisma.CalendarConnectionUncheckedCreateInput>
/**
* In case the CalendarConnection was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.CalendarConnectionUpdateInput, Prisma.CalendarConnectionUncheckedUpdateInput>
}
/**
* CalendarConnection delete
*/
export type CalendarConnectionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
/**
* Filter which CalendarConnection to delete.
*/
where: Prisma.CalendarConnectionWhereUniqueInput
}
/**
* CalendarConnection deleteMany
*/
export type CalendarConnectionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CalendarConnections to delete
*/
where?: Prisma.CalendarConnectionWhereInput
/**
* Limit how many CalendarConnections to delete.
*/
limit?: number
}
/**
* CalendarConnection.events
*/
export type CalendarConnection$eventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarEvent
*/
select?: Prisma.CalendarEventSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarEvent
*/
omit?: Prisma.CalendarEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarEventInclude<ExtArgs> | null
where?: Prisma.CalendarEventWhereInput
orderBy?: Prisma.CalendarEventOrderByWithRelationInput | Prisma.CalendarEventOrderByWithRelationInput[]
cursor?: Prisma.CalendarEventWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.CalendarEventScalarFieldEnum | Prisma.CalendarEventScalarFieldEnum[]
}
/**
* CalendarConnection.mappings
*/
export type CalendarConnection$mappingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarEventMapping
*/
select?: Prisma.CalendarEventMappingSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarEventMapping
*/
omit?: Prisma.CalendarEventMappingOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarEventMappingInclude<ExtArgs> | null
where?: Prisma.CalendarEventMappingWhereInput
orderBy?: Prisma.CalendarEventMappingOrderByWithRelationInput | Prisma.CalendarEventMappingOrderByWithRelationInput[]
cursor?: Prisma.CalendarEventMappingWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.CalendarEventMappingScalarFieldEnum | Prisma.CalendarEventMappingScalarFieldEnum[]
}
/**
* CalendarConnection.syncCursors
*/
export type CalendarConnection$syncCursorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarSyncCursor
*/
select?: Prisma.CalendarSyncCursorSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarSyncCursor
*/
omit?: Prisma.CalendarSyncCursorOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarSyncCursorInclude<ExtArgs> | null
where?: Prisma.CalendarSyncCursorWhereInput
orderBy?: Prisma.CalendarSyncCursorOrderByWithRelationInput | Prisma.CalendarSyncCursorOrderByWithRelationInput[]
cursor?: Prisma.CalendarSyncCursorWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.CalendarSyncCursorScalarFieldEnum | Prisma.CalendarSyncCursorScalarFieldEnum[]
}
/**
* CalendarConnection.webhookEvents
*/
export type CalendarConnection$webhookEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarWebhookEvent
*/
select?: Prisma.CalendarWebhookEventSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarWebhookEvent
*/
omit?: Prisma.CalendarWebhookEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarWebhookEventInclude<ExtArgs> | null
where?: Prisma.CalendarWebhookEventWhereInput
orderBy?: Prisma.CalendarWebhookEventOrderByWithRelationInput | Prisma.CalendarWebhookEventOrderByWithRelationInput[]
cursor?: Prisma.CalendarWebhookEventWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.CalendarWebhookEventScalarFieldEnum | Prisma.CalendarWebhookEventScalarFieldEnum[]
}
/**
* CalendarConnection.conflicts
*/
export type CalendarConnection$conflictsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConflict
*/
select?: Prisma.CalendarConflictSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConflict
*/
omit?: Prisma.CalendarConflictOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConflictInclude<ExtArgs> | null
where?: Prisma.CalendarConflictWhereInput
orderBy?: Prisma.CalendarConflictOrderByWithRelationInput | Prisma.CalendarConflictOrderByWithRelationInput[]
cursor?: Prisma.CalendarConflictWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.CalendarConflictScalarFieldEnum | Prisma.CalendarConflictScalarFieldEnum[]
}
/**
* CalendarConnection without action
*/
export type CalendarConnectionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarConnection
*/
select?: Prisma.CalendarConnectionSelect<ExtArgs> | null
/**
* Omit specific fields from the CalendarConnection
*/
omit?: Prisma.CalendarConnectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CalendarConnectionInclude<ExtArgs> | null
}