/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateCalendarConnection]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CalendarConnectionGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CalendarConnectionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutEventsInput connect?: Prisma.CalendarConnectionWhereUniqueInput } export type CalendarConnectionUpdateOneWithoutEventsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutEventsInput upsert?: Prisma.CalendarConnectionUpsertWithoutEventsInput disconnect?: Prisma.CalendarConnectionWhereInput | boolean delete?: Prisma.CalendarConnectionWhereInput | boolean connect?: Prisma.CalendarConnectionWhereUniqueInput update?: Prisma.XOR, Prisma.CalendarConnectionUncheckedUpdateWithoutEventsInput> } export type CalendarConnectionCreateNestedOneWithoutMappingsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutMappingsInput connect?: Prisma.CalendarConnectionWhereUniqueInput } export type CalendarConnectionUpdateOneRequiredWithoutMappingsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutMappingsInput upsert?: Prisma.CalendarConnectionUpsertWithoutMappingsInput connect?: Prisma.CalendarConnectionWhereUniqueInput update?: Prisma.XOR, Prisma.CalendarConnectionUncheckedUpdateWithoutMappingsInput> } export type CalendarConnectionCreateNestedOneWithoutSyncCursorsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutSyncCursorsInput connect?: Prisma.CalendarConnectionWhereUniqueInput } export type CalendarConnectionUpdateOneRequiredWithoutSyncCursorsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutSyncCursorsInput upsert?: Prisma.CalendarConnectionUpsertWithoutSyncCursorsInput connect?: Prisma.CalendarConnectionWhereUniqueInput update?: Prisma.XOR, Prisma.CalendarConnectionUncheckedUpdateWithoutSyncCursorsInput> } export type CalendarConnectionCreateNestedOneWithoutWebhookEventsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutWebhookEventsInput connect?: Prisma.CalendarConnectionWhereUniqueInput } export type CalendarConnectionUpdateOneRequiredWithoutWebhookEventsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutWebhookEventsInput upsert?: Prisma.CalendarConnectionUpsertWithoutWebhookEventsInput connect?: Prisma.CalendarConnectionWhereUniqueInput update?: Prisma.XOR, Prisma.CalendarConnectionUncheckedUpdateWithoutWebhookEventsInput> } export type CalendarConnectionCreateNestedOneWithoutConflictsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutConflictsInput connect?: Prisma.CalendarConnectionWhereUniqueInput } export type CalendarConnectionUpdateOneRequiredWithoutConflictsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CalendarConnectionCreateOrConnectWithoutConflictsInput upsert?: Prisma.CalendarConnectionUpsertWithoutConflictsInput connect?: Prisma.CalendarConnectionWhereUniqueInput update?: Prisma.XOR, 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 } export type CalendarConnectionUpsertWithoutEventsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CalendarConnectionWhereInput } export type CalendarConnectionUpdateToOneWithWhereWithoutEventsInput = { where?: Prisma.CalendarConnectionWhereInput data: Prisma.XOR } 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 } export type CalendarConnectionUpsertWithoutMappingsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CalendarConnectionWhereInput } export type CalendarConnectionUpdateToOneWithWhereWithoutMappingsInput = { where?: Prisma.CalendarConnectionWhereInput data: Prisma.XOR } 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 } export type CalendarConnectionUpsertWithoutSyncCursorsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CalendarConnectionWhereInput } export type CalendarConnectionUpdateToOneWithWhereWithoutSyncCursorsInput = { where?: Prisma.CalendarConnectionWhereInput data: Prisma.XOR } 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 } export type CalendarConnectionUpsertWithoutWebhookEventsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CalendarConnectionWhereInput } export type CalendarConnectionUpdateToOneWithWhereWithoutWebhookEventsInput = { where?: Prisma.CalendarConnectionWhereInput data: Prisma.XOR } 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 } export type CalendarConnectionUpsertWithoutConflictsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CalendarConnectionWhereInput } export type CalendarConnectionUpdateToOneWithWhereWithoutConflictsInput = { where?: Prisma.CalendarConnectionWhereInput data: Prisma.XOR } 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 = { events?: boolean | CalendarConnectionCountOutputTypeCountEventsArgs mappings?: boolean | CalendarConnectionCountOutputTypeCountMappingsArgs syncCursors?: boolean | CalendarConnectionCountOutputTypeCountSyncCursorsArgs webhookEvents?: boolean | CalendarConnectionCountOutputTypeCountWebhookEventsArgs conflicts?: boolean | CalendarConnectionCountOutputTypeCountConflictsArgs } /** * CalendarConnectionCountOutputType without action */ export type CalendarConnectionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CalendarConnectionCountOutputType */ select?: Prisma.CalendarConnectionCountOutputTypeSelect | null } /** * CalendarConnectionCountOutputType without action */ export type CalendarConnectionCountOutputTypeCountEventsArgs = { where?: Prisma.CalendarEventWhereInput } /** * CalendarConnectionCountOutputType without action */ export type CalendarConnectionCountOutputTypeCountMappingsArgs = { where?: Prisma.CalendarEventMappingWhereInput } /** * CalendarConnectionCountOutputType without action */ export type CalendarConnectionCountOutputTypeCountSyncCursorsArgs = { where?: Prisma.CalendarSyncCursorWhereInput } /** * CalendarConnectionCountOutputType without action */ export type CalendarConnectionCountOutputTypeCountWebhookEventsArgs = { where?: Prisma.CalendarWebhookEventWhereInput } /** * CalendarConnectionCountOutputType without action */ export type CalendarConnectionCountOutputTypeCountConflictsArgs = { where?: Prisma.CalendarConflictWhereInput } export type CalendarConnectionSelect = 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 mappings?: boolean | Prisma.CalendarConnection$mappingsArgs syncCursors?: boolean | Prisma.CalendarConnection$syncCursorsArgs webhookEvents?: boolean | Prisma.CalendarConnection$webhookEventsArgs conflicts?: boolean | Prisma.CalendarConnection$conflictsArgs _count?: boolean | Prisma.CalendarConnectionCountOutputTypeDefaultArgs }, ExtArgs["result"]["calendarConnection"]> export type CalendarConnectionSelectCreateManyAndReturn = 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 = 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 = 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 = { events?: boolean | Prisma.CalendarConnection$eventsArgs mappings?: boolean | Prisma.CalendarConnection$mappingsArgs syncCursors?: boolean | Prisma.CalendarConnection$syncCursorsArgs webhookEvents?: boolean | Prisma.CalendarConnection$webhookEventsArgs conflicts?: boolean | Prisma.CalendarConnection$conflictsArgs _count?: boolean | Prisma.CalendarConnectionCountOutputTypeDefaultArgs } export type CalendarConnectionIncludeCreateManyAndReturn = {} export type CalendarConnectionIncludeUpdateManyAndReturn = {} export type $CalendarConnectionPayload = { name: "CalendarConnection" objects: { events: Prisma.$CalendarEventPayload[] mappings: Prisma.$CalendarEventMappingPayload[] syncCursors: Prisma.$CalendarSyncCursorPayload[] webhookEvents: Prisma.$CalendarWebhookEventPayload[] conflicts: Prisma.$CalendarConflictPayload[] } 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 = runtime.Types.Result.GetResult export type CalendarConnectionCountArgs = Omit & { select?: CalendarConnectionCountAggregateInputType | true } export interface CalendarConnectionDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__CalendarConnectionClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CalendarConnectionClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__CalendarConnectionClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__CalendarConnectionClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CalendarConnectionClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CalendarConnectionClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CalendarConnectionClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CalendarConnectionClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CalendarConnectionGroupByArgs['orderBy'] } : { orderBy?: CalendarConnectionGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetCalendarConnectionGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" events = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> mappings = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> syncCursors = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> webhookEvents = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> conflicts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | null /** * Filter, which CalendarConnection to fetch. */ where: Prisma.CalendarConnectionWhereUniqueInput } /** * CalendarConnection findUniqueOrThrow */ export type CalendarConnectionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | null /** * Filter, which CalendarConnection to fetch. */ where: Prisma.CalendarConnectionWhereUniqueInput } /** * CalendarConnection findFirst */ export type CalendarConnectionFindFirstArgs = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | 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 = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | 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 = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | 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 = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | null /** * The data needed to create a CalendarConnection. */ data: Prisma.XOR } /** * CalendarConnection createMany */ export type CalendarConnectionCreateManyArgs = { /** * The data used to create many CalendarConnections. */ data: Prisma.CalendarConnectionCreateManyInput | Prisma.CalendarConnectionCreateManyInput[] skipDuplicates?: boolean } /** * CalendarConnection createManyAndReturn */ export type CalendarConnectionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelectCreateManyAndReturn | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * The data used to create many CalendarConnections. */ data: Prisma.CalendarConnectionCreateManyInput | Prisma.CalendarConnectionCreateManyInput[] skipDuplicates?: boolean } /** * CalendarConnection update */ export type CalendarConnectionUpdateArgs = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | null /** * The data needed to update a CalendarConnection. */ data: Prisma.XOR /** * Choose, which CalendarConnection to update. */ where: Prisma.CalendarConnectionWhereUniqueInput } /** * CalendarConnection updateMany */ export type CalendarConnectionUpdateManyArgs = { /** * The data used to update CalendarConnections. */ data: Prisma.XOR /** * Filter which CalendarConnections to update */ where?: Prisma.CalendarConnectionWhereInput /** * Limit how many CalendarConnections to update. */ limit?: number } /** * CalendarConnection updateManyAndReturn */ export type CalendarConnectionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelectUpdateManyAndReturn | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * The data used to update CalendarConnections. */ data: Prisma.XOR /** * Filter which CalendarConnections to update */ where?: Prisma.CalendarConnectionWhereInput /** * Limit how many CalendarConnections to update. */ limit?: number } /** * CalendarConnection upsert */ export type CalendarConnectionUpsertArgs = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | 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 /** * In case the CalendarConnection was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * CalendarConnection delete */ export type CalendarConnectionDeleteArgs = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | null /** * Filter which CalendarConnection to delete. */ where: Prisma.CalendarConnectionWhereUniqueInput } /** * CalendarConnection deleteMany */ export type CalendarConnectionDeleteManyArgs = { /** * Filter which CalendarConnections to delete */ where?: Prisma.CalendarConnectionWhereInput /** * Limit how many CalendarConnections to delete. */ limit?: number } /** * CalendarConnection.events */ export type CalendarConnection$eventsArgs = { /** * Select specific fields to fetch from the CalendarEvent */ select?: Prisma.CalendarEventSelect | null /** * Omit specific fields from the CalendarEvent */ omit?: Prisma.CalendarEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarEventInclude | 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 = { /** * Select specific fields to fetch from the CalendarEventMapping */ select?: Prisma.CalendarEventMappingSelect | null /** * Omit specific fields from the CalendarEventMapping */ omit?: Prisma.CalendarEventMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarEventMappingInclude | 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 = { /** * Select specific fields to fetch from the CalendarSyncCursor */ select?: Prisma.CalendarSyncCursorSelect | null /** * Omit specific fields from the CalendarSyncCursor */ omit?: Prisma.CalendarSyncCursorOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarSyncCursorInclude | 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 = { /** * Select specific fields to fetch from the CalendarWebhookEvent */ select?: Prisma.CalendarWebhookEventSelect | null /** * Omit specific fields from the CalendarWebhookEvent */ omit?: Prisma.CalendarWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarWebhookEventInclude | 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 = { /** * Select specific fields to fetch from the CalendarConflict */ select?: Prisma.CalendarConflictSelect | null /** * Omit specific fields from the CalendarConflict */ omit?: Prisma.CalendarConflictOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConflictInclude | 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 = { /** * Select specific fields to fetch from the CalendarConnection */ select?: Prisma.CalendarConnectionSelect | null /** * Omit specific fields from the CalendarConnection */ omit?: Prisma.CalendarConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CalendarConnectionInclude | null }