@friggframework/core 2.0.0--canary.545.7dc47e9.0 → 2.0.0--canary.545.9c6a13d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/prisma-mongodb/edge.js +16 -4
- package/generated/prisma-mongodb/index-browser.js +13 -1
- package/generated/prisma-mongodb/index.d.ts +1342 -103
- package/generated/prisma-mongodb/index.js +16 -4
- package/generated/prisma-mongodb/package.json +1 -1
- package/generated/prisma-mongodb/schema.prisma +18 -0
- package/generated/prisma-mongodb/wasm.js +16 -4
- package/generated/prisma-postgresql/edge.js +16 -4
- package/generated/prisma-postgresql/index-browser.js +13 -1
- package/generated/prisma-postgresql/index.d.ts +1446 -93
- package/generated/prisma-postgresql/index.js +16 -4
- package/generated/prisma-postgresql/package.json +1 -1
- package/generated/prisma-postgresql/schema.prisma +17 -0
- package/generated/prisma-postgresql/wasm.js +16 -4
- package/package.json +5 -5
- package/prisma-mongodb/schema.prisma +18 -0
- package/prisma-postgresql/schema.prisma +17 -0
|
@@ -96,6 +96,13 @@ export type AdminProcess = $Result.DefaultSelection<Prisma.$AdminProcessPayload>
|
|
|
96
96
|
* Script scheduling configuration for hybrid scheduling (SQS + EventBridge)
|
|
97
97
|
*/
|
|
98
98
|
export type ScriptSchedule = $Result.DefaultSelection<Prisma.$ScriptSchedulePayload>
|
|
99
|
+
/**
|
|
100
|
+
* Model ScheduledJob
|
|
101
|
+
* One-time scheduled jobs for poll-and-dispatch scheduling pattern.
|
|
102
|
+
* Used by providers without native one-time scheduling APIs (e.g., Netlify).
|
|
103
|
+
* A cron function queries for due jobs and dispatches them to a queue.
|
|
104
|
+
*/
|
|
105
|
+
export type ScheduledJob = $Result.DefaultSelection<Prisma.$ScheduledJobPayload>
|
|
99
106
|
|
|
100
107
|
/**
|
|
101
108
|
* Enums
|
|
@@ -404,6 +411,16 @@ export class PrismaClient<
|
|
|
404
411
|
* ```
|
|
405
412
|
*/
|
|
406
413
|
get scriptSchedule(): Prisma.ScriptScheduleDelegate<ExtArgs, ClientOptions>;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* `prisma.scheduledJob`: Exposes CRUD operations for the **ScheduledJob** model.
|
|
417
|
+
* Example usage:
|
|
418
|
+
* ```ts
|
|
419
|
+
* // Fetch zero or more ScheduledJobs
|
|
420
|
+
* const scheduledJobs = await prisma.scheduledJob.findMany()
|
|
421
|
+
* ```
|
|
422
|
+
*/
|
|
423
|
+
get scheduledJob(): Prisma.ScheduledJobDelegate<ExtArgs, ClientOptions>;
|
|
407
424
|
}
|
|
408
425
|
|
|
409
426
|
export namespace Prisma {
|
|
@@ -858,7 +875,8 @@ export namespace Prisma {
|
|
|
858
875
|
State: 'State',
|
|
859
876
|
WebsocketConnection: 'WebsocketConnection',
|
|
860
877
|
AdminProcess: 'AdminProcess',
|
|
861
|
-
ScriptSchedule: 'ScriptSchedule'
|
|
878
|
+
ScriptSchedule: 'ScriptSchedule',
|
|
879
|
+
ScheduledJob: 'ScheduledJob'
|
|
862
880
|
};
|
|
863
881
|
|
|
864
882
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -877,7 +895,7 @@ export namespace Prisma {
|
|
|
877
895
|
omit: GlobalOmitOptions
|
|
878
896
|
}
|
|
879
897
|
meta: {
|
|
880
|
-
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminProcess" | "scriptSchedule"
|
|
898
|
+
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminProcess" | "scriptSchedule" | "scheduledJob"
|
|
881
899
|
txIsolationLevel: never
|
|
882
900
|
}
|
|
883
901
|
model: {
|
|
@@ -1991,6 +2009,80 @@ export namespace Prisma {
|
|
|
1991
2009
|
}
|
|
1992
2010
|
}
|
|
1993
2011
|
}
|
|
2012
|
+
ScheduledJob: {
|
|
2013
|
+
payload: Prisma.$ScheduledJobPayload<ExtArgs>
|
|
2014
|
+
fields: Prisma.ScheduledJobFieldRefs
|
|
2015
|
+
operations: {
|
|
2016
|
+
findUnique: {
|
|
2017
|
+
args: Prisma.ScheduledJobFindUniqueArgs<ExtArgs>
|
|
2018
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
|
|
2019
|
+
}
|
|
2020
|
+
findUniqueOrThrow: {
|
|
2021
|
+
args: Prisma.ScheduledJobFindUniqueOrThrowArgs<ExtArgs>
|
|
2022
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
|
|
2023
|
+
}
|
|
2024
|
+
findFirst: {
|
|
2025
|
+
args: Prisma.ScheduledJobFindFirstArgs<ExtArgs>
|
|
2026
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
|
|
2027
|
+
}
|
|
2028
|
+
findFirstOrThrow: {
|
|
2029
|
+
args: Prisma.ScheduledJobFindFirstOrThrowArgs<ExtArgs>
|
|
2030
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
|
|
2031
|
+
}
|
|
2032
|
+
findMany: {
|
|
2033
|
+
args: Prisma.ScheduledJobFindManyArgs<ExtArgs>
|
|
2034
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
|
|
2035
|
+
}
|
|
2036
|
+
create: {
|
|
2037
|
+
args: Prisma.ScheduledJobCreateArgs<ExtArgs>
|
|
2038
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
|
|
2039
|
+
}
|
|
2040
|
+
createMany: {
|
|
2041
|
+
args: Prisma.ScheduledJobCreateManyArgs<ExtArgs>
|
|
2042
|
+
result: BatchPayload
|
|
2043
|
+
}
|
|
2044
|
+
delete: {
|
|
2045
|
+
args: Prisma.ScheduledJobDeleteArgs<ExtArgs>
|
|
2046
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
|
|
2047
|
+
}
|
|
2048
|
+
update: {
|
|
2049
|
+
args: Prisma.ScheduledJobUpdateArgs<ExtArgs>
|
|
2050
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
|
|
2051
|
+
}
|
|
2052
|
+
deleteMany: {
|
|
2053
|
+
args: Prisma.ScheduledJobDeleteManyArgs<ExtArgs>
|
|
2054
|
+
result: BatchPayload
|
|
2055
|
+
}
|
|
2056
|
+
updateMany: {
|
|
2057
|
+
args: Prisma.ScheduledJobUpdateManyArgs<ExtArgs>
|
|
2058
|
+
result: BatchPayload
|
|
2059
|
+
}
|
|
2060
|
+
upsert: {
|
|
2061
|
+
args: Prisma.ScheduledJobUpsertArgs<ExtArgs>
|
|
2062
|
+
result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
|
|
2063
|
+
}
|
|
2064
|
+
aggregate: {
|
|
2065
|
+
args: Prisma.ScheduledJobAggregateArgs<ExtArgs>
|
|
2066
|
+
result: $Utils.Optional<AggregateScheduledJob>
|
|
2067
|
+
}
|
|
2068
|
+
groupBy: {
|
|
2069
|
+
args: Prisma.ScheduledJobGroupByArgs<ExtArgs>
|
|
2070
|
+
result: $Utils.Optional<ScheduledJobGroupByOutputType>[]
|
|
2071
|
+
}
|
|
2072
|
+
findRaw: {
|
|
2073
|
+
args: Prisma.ScheduledJobFindRawArgs<ExtArgs>
|
|
2074
|
+
result: JsonObject
|
|
2075
|
+
}
|
|
2076
|
+
aggregateRaw: {
|
|
2077
|
+
args: Prisma.ScheduledJobAggregateRawArgs<ExtArgs>
|
|
2078
|
+
result: JsonObject
|
|
2079
|
+
}
|
|
2080
|
+
count: {
|
|
2081
|
+
args: Prisma.ScheduledJobCountArgs<ExtArgs>
|
|
2082
|
+
result: $Utils.Optional<ScheduledJobCountAggregateOutputType> | number
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
1994
2086
|
}
|
|
1995
2087
|
} & {
|
|
1996
2088
|
other: {
|
|
@@ -2085,6 +2177,7 @@ export namespace Prisma {
|
|
|
2085
2177
|
websocketConnection?: WebsocketConnectionOmit
|
|
2086
2178
|
adminProcess?: AdminProcessOmit
|
|
2087
2179
|
scriptSchedule?: ScriptScheduleOmit
|
|
2180
|
+
scheduledJob?: ScheduledJobOmit
|
|
2088
2181
|
}
|
|
2089
2182
|
|
|
2090
2183
|
/* Types for Logging */
|
|
@@ -17959,133 +18052,1094 @@ export namespace Prisma {
|
|
|
17959
18052
|
|
|
17960
18053
|
|
|
17961
18054
|
/**
|
|
17962
|
-
*
|
|
18055
|
+
* Model ScheduledJob
|
|
17963
18056
|
*/
|
|
17964
18057
|
|
|
17965
|
-
export
|
|
17966
|
-
|
|
17967
|
-
|
|
17968
|
-
|
|
17969
|
-
|
|
17970
|
-
email: 'email',
|
|
17971
|
-
username: 'username',
|
|
17972
|
-
hashword: 'hashword',
|
|
17973
|
-
appUserId: 'appUserId',
|
|
17974
|
-
organizationId: 'organizationId',
|
|
17975
|
-
appOrgId: 'appOrgId',
|
|
17976
|
-
name: 'name'
|
|
17977
|
-
};
|
|
18058
|
+
export type AggregateScheduledJob = {
|
|
18059
|
+
_count: ScheduledJobCountAggregateOutputType | null
|
|
18060
|
+
_min: ScheduledJobMinAggregateOutputType | null
|
|
18061
|
+
_max: ScheduledJobMaxAggregateOutputType | null
|
|
18062
|
+
}
|
|
17978
18063
|
|
|
17979
|
-
export type
|
|
18064
|
+
export type ScheduledJobMinAggregateOutputType = {
|
|
18065
|
+
id: string | null
|
|
18066
|
+
scheduleName: string | null
|
|
18067
|
+
scheduledAt: Date | null
|
|
18068
|
+
queueResourceId: string | null
|
|
18069
|
+
state: string | null
|
|
18070
|
+
createdAt: Date | null
|
|
18071
|
+
updatedAt: Date | null
|
|
18072
|
+
}
|
|
17980
18073
|
|
|
18074
|
+
export type ScheduledJobMaxAggregateOutputType = {
|
|
18075
|
+
id: string | null
|
|
18076
|
+
scheduleName: string | null
|
|
18077
|
+
scheduledAt: Date | null
|
|
18078
|
+
queueResourceId: string | null
|
|
18079
|
+
state: string | null
|
|
18080
|
+
createdAt: Date | null
|
|
18081
|
+
updatedAt: Date | null
|
|
18082
|
+
}
|
|
17981
18083
|
|
|
17982
|
-
export
|
|
17983
|
-
id:
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
18084
|
+
export type ScheduledJobCountAggregateOutputType = {
|
|
18085
|
+
id: number
|
|
18086
|
+
scheduleName: number
|
|
18087
|
+
scheduledAt: number
|
|
18088
|
+
queueResourceId: number
|
|
18089
|
+
payload: number
|
|
18090
|
+
state: number
|
|
18091
|
+
createdAt: number
|
|
18092
|
+
updatedAt: number
|
|
18093
|
+
_all: number
|
|
18094
|
+
}
|
|
17989
18095
|
|
|
17990
|
-
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
17991
18096
|
|
|
18097
|
+
export type ScheduledJobMinAggregateInputType = {
|
|
18098
|
+
id?: true
|
|
18099
|
+
scheduleName?: true
|
|
18100
|
+
scheduledAt?: true
|
|
18101
|
+
queueResourceId?: true
|
|
18102
|
+
state?: true
|
|
18103
|
+
createdAt?: true
|
|
18104
|
+
updatedAt?: true
|
|
18105
|
+
}
|
|
17992
18106
|
|
|
17993
|
-
export
|
|
17994
|
-
id
|
|
17995
|
-
|
|
17996
|
-
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
createdAt
|
|
18000
|
-
updatedAt
|
|
18001
|
-
}
|
|
18107
|
+
export type ScheduledJobMaxAggregateInputType = {
|
|
18108
|
+
id?: true
|
|
18109
|
+
scheduleName?: true
|
|
18110
|
+
scheduledAt?: true
|
|
18111
|
+
queueResourceId?: true
|
|
18112
|
+
state?: true
|
|
18113
|
+
createdAt?: true
|
|
18114
|
+
updatedAt?: true
|
|
18115
|
+
}
|
|
18002
18116
|
|
|
18003
|
-
export type
|
|
18117
|
+
export type ScheduledJobCountAggregateInputType = {
|
|
18118
|
+
id?: true
|
|
18119
|
+
scheduleName?: true
|
|
18120
|
+
scheduledAt?: true
|
|
18121
|
+
queueResourceId?: true
|
|
18122
|
+
payload?: true
|
|
18123
|
+
state?: true
|
|
18124
|
+
createdAt?: true
|
|
18125
|
+
updatedAt?: true
|
|
18126
|
+
_all?: true
|
|
18127
|
+
}
|
|
18004
18128
|
|
|
18129
|
+
export type ScheduledJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18130
|
+
/**
|
|
18131
|
+
* Filter which ScheduledJob to aggregate.
|
|
18132
|
+
*/
|
|
18133
|
+
where?: ScheduledJobWhereInput
|
|
18134
|
+
/**
|
|
18135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
18136
|
+
*
|
|
18137
|
+
* Determine the order of ScheduledJobs to fetch.
|
|
18138
|
+
*/
|
|
18139
|
+
orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
|
|
18140
|
+
/**
|
|
18141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
18142
|
+
*
|
|
18143
|
+
* Sets the start position
|
|
18144
|
+
*/
|
|
18145
|
+
cursor?: ScheduledJobWhereUniqueInput
|
|
18146
|
+
/**
|
|
18147
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18148
|
+
*
|
|
18149
|
+
* Take `±n` ScheduledJobs from the position of the cursor.
|
|
18150
|
+
*/
|
|
18151
|
+
take?: number
|
|
18152
|
+
/**
|
|
18153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18154
|
+
*
|
|
18155
|
+
* Skip the first `n` ScheduledJobs.
|
|
18156
|
+
*/
|
|
18157
|
+
skip?: number
|
|
18158
|
+
/**
|
|
18159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
18160
|
+
*
|
|
18161
|
+
* Count returned ScheduledJobs
|
|
18162
|
+
**/
|
|
18163
|
+
_count?: true | ScheduledJobCountAggregateInputType
|
|
18164
|
+
/**
|
|
18165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
18166
|
+
*
|
|
18167
|
+
* Select which fields to find the minimum value
|
|
18168
|
+
**/
|
|
18169
|
+
_min?: ScheduledJobMinAggregateInputType
|
|
18170
|
+
/**
|
|
18171
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
18172
|
+
*
|
|
18173
|
+
* Select which fields to find the maximum value
|
|
18174
|
+
**/
|
|
18175
|
+
_max?: ScheduledJobMaxAggregateInputType
|
|
18176
|
+
}
|
|
18005
18177
|
|
|
18006
|
-
export
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
data: 'data',
|
|
18014
|
-
createdAt: 'createdAt',
|
|
18015
|
-
updatedAt: 'updatedAt',
|
|
18016
|
-
integrationIds: 'integrationIds',
|
|
18017
|
-
syncIds: 'syncIds'
|
|
18018
|
-
};
|
|
18178
|
+
export type GetScheduledJobAggregateType<T extends ScheduledJobAggregateArgs> = {
|
|
18179
|
+
[P in keyof T & keyof AggregateScheduledJob]: P extends '_count' | 'count'
|
|
18180
|
+
? T[P] extends true
|
|
18181
|
+
? number
|
|
18182
|
+
: GetScalarType<T[P], AggregateScheduledJob[P]>
|
|
18183
|
+
: GetScalarType<T[P], AggregateScheduledJob[P]>
|
|
18184
|
+
}
|
|
18019
18185
|
|
|
18020
|
-
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
18021
18186
|
|
|
18022
18187
|
|
|
18023
|
-
export const IntegrationScalarFieldEnum: {
|
|
18024
|
-
id: 'id',
|
|
18025
|
-
userId: 'userId',
|
|
18026
|
-
status: 'status',
|
|
18027
|
-
config: 'config',
|
|
18028
|
-
version: 'version',
|
|
18029
|
-
entityIds: 'entityIds',
|
|
18030
|
-
errors: 'errors',
|
|
18031
|
-
warnings: 'warnings',
|
|
18032
|
-
info: 'info',
|
|
18033
|
-
logs: 'logs',
|
|
18034
|
-
createdAt: 'createdAt',
|
|
18035
|
-
updatedAt: 'updatedAt'
|
|
18036
|
-
};
|
|
18037
18188
|
|
|
18038
|
-
export type
|
|
18189
|
+
export type ScheduledJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18190
|
+
where?: ScheduledJobWhereInput
|
|
18191
|
+
orderBy?: ScheduledJobOrderByWithAggregationInput | ScheduledJobOrderByWithAggregationInput[]
|
|
18192
|
+
by: ScheduledJobScalarFieldEnum[] | ScheduledJobScalarFieldEnum
|
|
18193
|
+
having?: ScheduledJobScalarWhereWithAggregatesInput
|
|
18194
|
+
take?: number
|
|
18195
|
+
skip?: number
|
|
18196
|
+
_count?: ScheduledJobCountAggregateInputType | true
|
|
18197
|
+
_min?: ScheduledJobMinAggregateInputType
|
|
18198
|
+
_max?: ScheduledJobMaxAggregateInputType
|
|
18199
|
+
}
|
|
18039
18200
|
|
|
18201
|
+
export type ScheduledJobGroupByOutputType = {
|
|
18202
|
+
id: string
|
|
18203
|
+
scheduleName: string
|
|
18204
|
+
scheduledAt: Date
|
|
18205
|
+
queueResourceId: string
|
|
18206
|
+
payload: JsonValue | null
|
|
18207
|
+
state: string
|
|
18208
|
+
createdAt: Date
|
|
18209
|
+
updatedAt: Date
|
|
18210
|
+
_count: ScheduledJobCountAggregateOutputType | null
|
|
18211
|
+
_min: ScheduledJobMinAggregateOutputType | null
|
|
18212
|
+
_max: ScheduledJobMaxAggregateOutputType | null
|
|
18213
|
+
}
|
|
18040
18214
|
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
|
|
18045
|
-
|
|
18046
|
-
|
|
18047
|
-
|
|
18048
|
-
|
|
18215
|
+
type GetScheduledJobGroupByPayload<T extends ScheduledJobGroupByArgs> = Prisma.PrismaPromise<
|
|
18216
|
+
Array<
|
|
18217
|
+
PickEnumerable<ScheduledJobGroupByOutputType, T['by']> &
|
|
18218
|
+
{
|
|
18219
|
+
[P in ((keyof T) & (keyof ScheduledJobGroupByOutputType))]: P extends '_count'
|
|
18220
|
+
? T[P] extends boolean
|
|
18221
|
+
? number
|
|
18222
|
+
: GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
|
|
18223
|
+
: GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
|
|
18224
|
+
}
|
|
18225
|
+
>
|
|
18226
|
+
>
|
|
18049
18227
|
|
|
18050
|
-
export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
|
|
18051
18228
|
|
|
18229
|
+
export type ScheduledJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
18230
|
+
id?: boolean
|
|
18231
|
+
scheduleName?: boolean
|
|
18232
|
+
scheduledAt?: boolean
|
|
18233
|
+
queueResourceId?: boolean
|
|
18234
|
+
payload?: boolean
|
|
18235
|
+
state?: boolean
|
|
18236
|
+
createdAt?: boolean
|
|
18237
|
+
updatedAt?: boolean
|
|
18238
|
+
}, ExtArgs["result"]["scheduledJob"]>
|
|
18052
18239
|
|
|
18053
|
-
export const ProcessScalarFieldEnum: {
|
|
18054
|
-
id: 'id',
|
|
18055
|
-
userId: 'userId',
|
|
18056
|
-
integrationId: 'integrationId',
|
|
18057
|
-
name: 'name',
|
|
18058
|
-
type: 'type',
|
|
18059
|
-
state: 'state',
|
|
18060
|
-
context: 'context',
|
|
18061
|
-
results: 'results',
|
|
18062
|
-
childProcesses: 'childProcesses',
|
|
18063
|
-
parentProcessId: 'parentProcessId',
|
|
18064
|
-
createdAt: 'createdAt',
|
|
18065
|
-
updatedAt: 'updatedAt'
|
|
18066
|
-
};
|
|
18067
18240
|
|
|
18068
|
-
export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
|
|
18069
18241
|
|
|
18242
|
+
export type ScheduledJobSelectScalar = {
|
|
18243
|
+
id?: boolean
|
|
18244
|
+
scheduleName?: boolean
|
|
18245
|
+
scheduledAt?: boolean
|
|
18246
|
+
queueResourceId?: boolean
|
|
18247
|
+
payload?: boolean
|
|
18248
|
+
state?: boolean
|
|
18249
|
+
createdAt?: boolean
|
|
18250
|
+
updatedAt?: boolean
|
|
18251
|
+
}
|
|
18070
18252
|
|
|
18071
|
-
export
|
|
18072
|
-
id: 'id',
|
|
18073
|
-
integrationId: 'integrationId',
|
|
18074
|
-
entityIds: 'entityIds',
|
|
18075
|
-
hash: 'hash',
|
|
18076
|
-
name: 'name'
|
|
18077
|
-
};
|
|
18253
|
+
export type ScheduledJobOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "scheduleName" | "scheduledAt" | "queueResourceId" | "payload" | "state" | "createdAt" | "updatedAt", ExtArgs["result"]["scheduledJob"]>
|
|
18078
18254
|
|
|
18079
|
-
export type
|
|
18255
|
+
export type $ScheduledJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18256
|
+
name: "ScheduledJob"
|
|
18257
|
+
objects: {}
|
|
18258
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
18259
|
+
id: string
|
|
18260
|
+
scheduleName: string
|
|
18261
|
+
scheduledAt: Date
|
|
18262
|
+
queueResourceId: string
|
|
18263
|
+
payload: Prisma.JsonValue | null
|
|
18264
|
+
state: string
|
|
18265
|
+
createdAt: Date
|
|
18266
|
+
updatedAt: Date
|
|
18267
|
+
}, ExtArgs["result"]["scheduledJob"]>
|
|
18268
|
+
composites: {}
|
|
18269
|
+
}
|
|
18080
18270
|
|
|
18271
|
+
type ScheduledJobGetPayload<S extends boolean | null | undefined | ScheduledJobDefaultArgs> = $Result.GetResult<Prisma.$ScheduledJobPayload, S>
|
|
18081
18272
|
|
|
18082
|
-
|
|
18083
|
-
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18087
|
-
|
|
18088
|
-
|
|
18273
|
+
type ScheduledJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
18274
|
+
Omit<ScheduledJobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
18275
|
+
select?: ScheduledJobCountAggregateInputType | true
|
|
18276
|
+
}
|
|
18277
|
+
|
|
18278
|
+
export interface ScheduledJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
18279
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScheduledJob'], meta: { name: 'ScheduledJob' } }
|
|
18280
|
+
/**
|
|
18281
|
+
* Find zero or one ScheduledJob that matches the filter.
|
|
18282
|
+
* @param {ScheduledJobFindUniqueArgs} args - Arguments to find a ScheduledJob
|
|
18283
|
+
* @example
|
|
18284
|
+
* // Get one ScheduledJob
|
|
18285
|
+
* const scheduledJob = await prisma.scheduledJob.findUnique({
|
|
18286
|
+
* where: {
|
|
18287
|
+
* // ... provide filter here
|
|
18288
|
+
* }
|
|
18289
|
+
* })
|
|
18290
|
+
*/
|
|
18291
|
+
findUnique<T extends ScheduledJobFindUniqueArgs>(args: SelectSubset<T, ScheduledJobFindUniqueArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
18292
|
+
|
|
18293
|
+
/**
|
|
18294
|
+
* Find one ScheduledJob that matches the filter or throw an error with `error.code='P2025'`
|
|
18295
|
+
* if no matches were found.
|
|
18296
|
+
* @param {ScheduledJobFindUniqueOrThrowArgs} args - Arguments to find a ScheduledJob
|
|
18297
|
+
* @example
|
|
18298
|
+
* // Get one ScheduledJob
|
|
18299
|
+
* const scheduledJob = await prisma.scheduledJob.findUniqueOrThrow({
|
|
18300
|
+
* where: {
|
|
18301
|
+
* // ... provide filter here
|
|
18302
|
+
* }
|
|
18303
|
+
* })
|
|
18304
|
+
*/
|
|
18305
|
+
findUniqueOrThrow<T extends ScheduledJobFindUniqueOrThrowArgs>(args: SelectSubset<T, ScheduledJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18306
|
+
|
|
18307
|
+
/**
|
|
18308
|
+
* Find the first ScheduledJob that matches the filter.
|
|
18309
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
18310
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
18311
|
+
* @param {ScheduledJobFindFirstArgs} args - Arguments to find a ScheduledJob
|
|
18312
|
+
* @example
|
|
18313
|
+
* // Get one ScheduledJob
|
|
18314
|
+
* const scheduledJob = await prisma.scheduledJob.findFirst({
|
|
18315
|
+
* where: {
|
|
18316
|
+
* // ... provide filter here
|
|
18317
|
+
* }
|
|
18318
|
+
* })
|
|
18319
|
+
*/
|
|
18320
|
+
findFirst<T extends ScheduledJobFindFirstArgs>(args?: SelectSubset<T, ScheduledJobFindFirstArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
18321
|
+
|
|
18322
|
+
/**
|
|
18323
|
+
* Find the first ScheduledJob that matches the filter or
|
|
18324
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
18325
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
18326
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
18327
|
+
* @param {ScheduledJobFindFirstOrThrowArgs} args - Arguments to find a ScheduledJob
|
|
18328
|
+
* @example
|
|
18329
|
+
* // Get one ScheduledJob
|
|
18330
|
+
* const scheduledJob = await prisma.scheduledJob.findFirstOrThrow({
|
|
18331
|
+
* where: {
|
|
18332
|
+
* // ... provide filter here
|
|
18333
|
+
* }
|
|
18334
|
+
* })
|
|
18335
|
+
*/
|
|
18336
|
+
findFirstOrThrow<T extends ScheduledJobFindFirstOrThrowArgs>(args?: SelectSubset<T, ScheduledJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18337
|
+
|
|
18338
|
+
/**
|
|
18339
|
+
* Find zero or more ScheduledJobs that matches the filter.
|
|
18340
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
18341
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
18342
|
+
* @param {ScheduledJobFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
18343
|
+
* @example
|
|
18344
|
+
* // Get all ScheduledJobs
|
|
18345
|
+
* const scheduledJobs = await prisma.scheduledJob.findMany()
|
|
18346
|
+
*
|
|
18347
|
+
* // Get first 10 ScheduledJobs
|
|
18348
|
+
* const scheduledJobs = await prisma.scheduledJob.findMany({ take: 10 })
|
|
18349
|
+
*
|
|
18350
|
+
* // Only select the `id`
|
|
18351
|
+
* const scheduledJobWithIdOnly = await prisma.scheduledJob.findMany({ select: { id: true } })
|
|
18352
|
+
*
|
|
18353
|
+
*/
|
|
18354
|
+
findMany<T extends ScheduledJobFindManyArgs>(args?: SelectSubset<T, ScheduledJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
18355
|
+
|
|
18356
|
+
/**
|
|
18357
|
+
* Create a ScheduledJob.
|
|
18358
|
+
* @param {ScheduledJobCreateArgs} args - Arguments to create a ScheduledJob.
|
|
18359
|
+
* @example
|
|
18360
|
+
* // Create one ScheduledJob
|
|
18361
|
+
* const ScheduledJob = await prisma.scheduledJob.create({
|
|
18362
|
+
* data: {
|
|
18363
|
+
* // ... data to create a ScheduledJob
|
|
18364
|
+
* }
|
|
18365
|
+
* })
|
|
18366
|
+
*
|
|
18367
|
+
*/
|
|
18368
|
+
create<T extends ScheduledJobCreateArgs>(args: SelectSubset<T, ScheduledJobCreateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18369
|
+
|
|
18370
|
+
/**
|
|
18371
|
+
* Create many ScheduledJobs.
|
|
18372
|
+
* @param {ScheduledJobCreateManyArgs} args - Arguments to create many ScheduledJobs.
|
|
18373
|
+
* @example
|
|
18374
|
+
* // Create many ScheduledJobs
|
|
18375
|
+
* const scheduledJob = await prisma.scheduledJob.createMany({
|
|
18376
|
+
* data: [
|
|
18377
|
+
* // ... provide data here
|
|
18378
|
+
* ]
|
|
18379
|
+
* })
|
|
18380
|
+
*
|
|
18381
|
+
*/
|
|
18382
|
+
createMany<T extends ScheduledJobCreateManyArgs>(args?: SelectSubset<T, ScheduledJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
18383
|
+
|
|
18384
|
+
/**
|
|
18385
|
+
* Delete a ScheduledJob.
|
|
18386
|
+
* @param {ScheduledJobDeleteArgs} args - Arguments to delete one ScheduledJob.
|
|
18387
|
+
* @example
|
|
18388
|
+
* // Delete one ScheduledJob
|
|
18389
|
+
* const ScheduledJob = await prisma.scheduledJob.delete({
|
|
18390
|
+
* where: {
|
|
18391
|
+
* // ... filter to delete one ScheduledJob
|
|
18392
|
+
* }
|
|
18393
|
+
* })
|
|
18394
|
+
*
|
|
18395
|
+
*/
|
|
18396
|
+
delete<T extends ScheduledJobDeleteArgs>(args: SelectSubset<T, ScheduledJobDeleteArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18397
|
+
|
|
18398
|
+
/**
|
|
18399
|
+
* Update one ScheduledJob.
|
|
18400
|
+
* @param {ScheduledJobUpdateArgs} args - Arguments to update one ScheduledJob.
|
|
18401
|
+
* @example
|
|
18402
|
+
* // Update one ScheduledJob
|
|
18403
|
+
* const scheduledJob = await prisma.scheduledJob.update({
|
|
18404
|
+
* where: {
|
|
18405
|
+
* // ... provide filter here
|
|
18406
|
+
* },
|
|
18407
|
+
* data: {
|
|
18408
|
+
* // ... provide data here
|
|
18409
|
+
* }
|
|
18410
|
+
* })
|
|
18411
|
+
*
|
|
18412
|
+
*/
|
|
18413
|
+
update<T extends ScheduledJobUpdateArgs>(args: SelectSubset<T, ScheduledJobUpdateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18414
|
+
|
|
18415
|
+
/**
|
|
18416
|
+
* Delete zero or more ScheduledJobs.
|
|
18417
|
+
* @param {ScheduledJobDeleteManyArgs} args - Arguments to filter ScheduledJobs to delete.
|
|
18418
|
+
* @example
|
|
18419
|
+
* // Delete a few ScheduledJobs
|
|
18420
|
+
* const { count } = await prisma.scheduledJob.deleteMany({
|
|
18421
|
+
* where: {
|
|
18422
|
+
* // ... provide filter here
|
|
18423
|
+
* }
|
|
18424
|
+
* })
|
|
18425
|
+
*
|
|
18426
|
+
*/
|
|
18427
|
+
deleteMany<T extends ScheduledJobDeleteManyArgs>(args?: SelectSubset<T, ScheduledJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
18428
|
+
|
|
18429
|
+
/**
|
|
18430
|
+
* Update zero or more ScheduledJobs.
|
|
18431
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
18432
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
18433
|
+
* @param {ScheduledJobUpdateManyArgs} args - Arguments to update one or more rows.
|
|
18434
|
+
* @example
|
|
18435
|
+
* // Update many ScheduledJobs
|
|
18436
|
+
* const scheduledJob = await prisma.scheduledJob.updateMany({
|
|
18437
|
+
* where: {
|
|
18438
|
+
* // ... provide filter here
|
|
18439
|
+
* },
|
|
18440
|
+
* data: {
|
|
18441
|
+
* // ... provide data here
|
|
18442
|
+
* }
|
|
18443
|
+
* })
|
|
18444
|
+
*
|
|
18445
|
+
*/
|
|
18446
|
+
updateMany<T extends ScheduledJobUpdateManyArgs>(args: SelectSubset<T, ScheduledJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
18447
|
+
|
|
18448
|
+
/**
|
|
18449
|
+
* Create or update one ScheduledJob.
|
|
18450
|
+
* @param {ScheduledJobUpsertArgs} args - Arguments to update or create a ScheduledJob.
|
|
18451
|
+
* @example
|
|
18452
|
+
* // Update or create a ScheduledJob
|
|
18453
|
+
* const scheduledJob = await prisma.scheduledJob.upsert({
|
|
18454
|
+
* create: {
|
|
18455
|
+
* // ... data to create a ScheduledJob
|
|
18456
|
+
* },
|
|
18457
|
+
* update: {
|
|
18458
|
+
* // ... in case it already exists, update
|
|
18459
|
+
* },
|
|
18460
|
+
* where: {
|
|
18461
|
+
* // ... the filter for the ScheduledJob we want to update
|
|
18462
|
+
* }
|
|
18463
|
+
* })
|
|
18464
|
+
*/
|
|
18465
|
+
upsert<T extends ScheduledJobUpsertArgs>(args: SelectSubset<T, ScheduledJobUpsertArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
18466
|
+
|
|
18467
|
+
/**
|
|
18468
|
+
* Find zero or more ScheduledJobs that matches the filter.
|
|
18469
|
+
* @param {ScheduledJobFindRawArgs} args - Select which filters you would like to apply.
|
|
18470
|
+
* @example
|
|
18471
|
+
* const scheduledJob = await prisma.scheduledJob.findRaw({
|
|
18472
|
+
* filter: { age: { $gt: 25 } }
|
|
18473
|
+
* })
|
|
18474
|
+
*/
|
|
18475
|
+
findRaw(args?: ScheduledJobFindRawArgs): Prisma.PrismaPromise<JsonObject>
|
|
18476
|
+
|
|
18477
|
+
/**
|
|
18478
|
+
* Perform aggregation operations on a ScheduledJob.
|
|
18479
|
+
* @param {ScheduledJobAggregateRawArgs} args - Select which aggregations you would like to apply.
|
|
18480
|
+
* @example
|
|
18481
|
+
* const scheduledJob = await prisma.scheduledJob.aggregateRaw({
|
|
18482
|
+
* pipeline: [
|
|
18483
|
+
* { $match: { status: "registered" } },
|
|
18484
|
+
* { $group: { _id: "$country", total: { $sum: 1 } } }
|
|
18485
|
+
* ]
|
|
18486
|
+
* })
|
|
18487
|
+
*/
|
|
18488
|
+
aggregateRaw(args?: ScheduledJobAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
|
|
18489
|
+
|
|
18490
|
+
|
|
18491
|
+
/**
|
|
18492
|
+
* Count the number of ScheduledJobs.
|
|
18493
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
18494
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
18495
|
+
* @param {ScheduledJobCountArgs} args - Arguments to filter ScheduledJobs to count.
|
|
18496
|
+
* @example
|
|
18497
|
+
* // Count the number of ScheduledJobs
|
|
18498
|
+
* const count = await prisma.scheduledJob.count({
|
|
18499
|
+
* where: {
|
|
18500
|
+
* // ... the filter for the ScheduledJobs we want to count
|
|
18501
|
+
* }
|
|
18502
|
+
* })
|
|
18503
|
+
**/
|
|
18504
|
+
count<T extends ScheduledJobCountArgs>(
|
|
18505
|
+
args?: Subset<T, ScheduledJobCountArgs>,
|
|
18506
|
+
): Prisma.PrismaPromise<
|
|
18507
|
+
T extends $Utils.Record<'select', any>
|
|
18508
|
+
? T['select'] extends true
|
|
18509
|
+
? number
|
|
18510
|
+
: GetScalarType<T['select'], ScheduledJobCountAggregateOutputType>
|
|
18511
|
+
: number
|
|
18512
|
+
>
|
|
18513
|
+
|
|
18514
|
+
/**
|
|
18515
|
+
* Allows you to perform aggregations operations on a ScheduledJob.
|
|
18516
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
18517
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
18518
|
+
* @param {ScheduledJobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
18519
|
+
* @example
|
|
18520
|
+
* // Ordered by age ascending
|
|
18521
|
+
* // Where email contains prisma.io
|
|
18522
|
+
* // Limited to the 10 users
|
|
18523
|
+
* const aggregations = await prisma.user.aggregate({
|
|
18524
|
+
* _avg: {
|
|
18525
|
+
* age: true,
|
|
18526
|
+
* },
|
|
18527
|
+
* where: {
|
|
18528
|
+
* email: {
|
|
18529
|
+
* contains: "prisma.io",
|
|
18530
|
+
* },
|
|
18531
|
+
* },
|
|
18532
|
+
* orderBy: {
|
|
18533
|
+
* age: "asc",
|
|
18534
|
+
* },
|
|
18535
|
+
* take: 10,
|
|
18536
|
+
* })
|
|
18537
|
+
**/
|
|
18538
|
+
aggregate<T extends ScheduledJobAggregateArgs>(args: Subset<T, ScheduledJobAggregateArgs>): Prisma.PrismaPromise<GetScheduledJobAggregateType<T>>
|
|
18539
|
+
|
|
18540
|
+
/**
|
|
18541
|
+
* Group by ScheduledJob.
|
|
18542
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
18543
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
18544
|
+
* @param {ScheduledJobGroupByArgs} args - Group by arguments.
|
|
18545
|
+
* @example
|
|
18546
|
+
* // Group by city, order by createdAt, get count
|
|
18547
|
+
* const result = await prisma.user.groupBy({
|
|
18548
|
+
* by: ['city', 'createdAt'],
|
|
18549
|
+
* orderBy: {
|
|
18550
|
+
* createdAt: true
|
|
18551
|
+
* },
|
|
18552
|
+
* _count: {
|
|
18553
|
+
* _all: true
|
|
18554
|
+
* },
|
|
18555
|
+
* })
|
|
18556
|
+
*
|
|
18557
|
+
**/
|
|
18558
|
+
groupBy<
|
|
18559
|
+
T extends ScheduledJobGroupByArgs,
|
|
18560
|
+
HasSelectOrTake extends Or<
|
|
18561
|
+
Extends<'skip', Keys<T>>,
|
|
18562
|
+
Extends<'take', Keys<T>>
|
|
18563
|
+
>,
|
|
18564
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
18565
|
+
? { orderBy: ScheduledJobGroupByArgs['orderBy'] }
|
|
18566
|
+
: { orderBy?: ScheduledJobGroupByArgs['orderBy'] },
|
|
18567
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
18568
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
18569
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
18570
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
18571
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
18572
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
18573
|
+
InputErrors extends ByEmpty extends True
|
|
18574
|
+
? `Error: "by" must not be empty.`
|
|
18575
|
+
: HavingValid extends False
|
|
18576
|
+
? {
|
|
18577
|
+
[P in HavingFields]: P extends ByFields
|
|
18578
|
+
? never
|
|
18579
|
+
: P extends string
|
|
18580
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
18581
|
+
: [
|
|
18582
|
+
Error,
|
|
18583
|
+
'Field ',
|
|
18584
|
+
P,
|
|
18585
|
+
` in "having" needs to be provided in "by"`,
|
|
18586
|
+
]
|
|
18587
|
+
}[HavingFields]
|
|
18588
|
+
: 'take' extends Keys<T>
|
|
18589
|
+
? 'orderBy' extends Keys<T>
|
|
18590
|
+
? ByValid extends True
|
|
18591
|
+
? {}
|
|
18592
|
+
: {
|
|
18593
|
+
[P in OrderFields]: P extends ByFields
|
|
18594
|
+
? never
|
|
18595
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
18596
|
+
}[OrderFields]
|
|
18597
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
18598
|
+
: 'skip' extends Keys<T>
|
|
18599
|
+
? 'orderBy' extends Keys<T>
|
|
18600
|
+
? ByValid extends True
|
|
18601
|
+
? {}
|
|
18602
|
+
: {
|
|
18603
|
+
[P in OrderFields]: P extends ByFields
|
|
18604
|
+
? never
|
|
18605
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
18606
|
+
}[OrderFields]
|
|
18607
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
18608
|
+
: ByValid extends True
|
|
18609
|
+
? {}
|
|
18610
|
+
: {
|
|
18611
|
+
[P in OrderFields]: P extends ByFields
|
|
18612
|
+
? never
|
|
18613
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
18614
|
+
}[OrderFields]
|
|
18615
|
+
>(args: SubsetIntersection<T, ScheduledJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScheduledJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
18616
|
+
/**
|
|
18617
|
+
* Fields of the ScheduledJob model
|
|
18618
|
+
*/
|
|
18619
|
+
readonly fields: ScheduledJobFieldRefs;
|
|
18620
|
+
}
|
|
18621
|
+
|
|
18622
|
+
/**
|
|
18623
|
+
* The delegate class that acts as a "Promise-like" for ScheduledJob.
|
|
18624
|
+
* Why is this prefixed with `Prisma__`?
|
|
18625
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
18626
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
18627
|
+
*/
|
|
18628
|
+
export interface Prisma__ScheduledJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
18629
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
18630
|
+
/**
|
|
18631
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
18632
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
18633
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
18634
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
18635
|
+
*/
|
|
18636
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
18637
|
+
/**
|
|
18638
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
18639
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
18640
|
+
* @returns A Promise for the completion of the callback.
|
|
18641
|
+
*/
|
|
18642
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
18643
|
+
/**
|
|
18644
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
18645
|
+
* resolved value cannot be modified from the callback.
|
|
18646
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
18647
|
+
* @returns A Promise for the completion of the callback.
|
|
18648
|
+
*/
|
|
18649
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
18650
|
+
}
|
|
18651
|
+
|
|
18652
|
+
|
|
18653
|
+
|
|
18654
|
+
|
|
18655
|
+
/**
|
|
18656
|
+
* Fields of the ScheduledJob model
|
|
18657
|
+
*/
|
|
18658
|
+
interface ScheduledJobFieldRefs {
|
|
18659
|
+
readonly id: FieldRef<"ScheduledJob", 'String'>
|
|
18660
|
+
readonly scheduleName: FieldRef<"ScheduledJob", 'String'>
|
|
18661
|
+
readonly scheduledAt: FieldRef<"ScheduledJob", 'DateTime'>
|
|
18662
|
+
readonly queueResourceId: FieldRef<"ScheduledJob", 'String'>
|
|
18663
|
+
readonly payload: FieldRef<"ScheduledJob", 'Json'>
|
|
18664
|
+
readonly state: FieldRef<"ScheduledJob", 'String'>
|
|
18665
|
+
readonly createdAt: FieldRef<"ScheduledJob", 'DateTime'>
|
|
18666
|
+
readonly updatedAt: FieldRef<"ScheduledJob", 'DateTime'>
|
|
18667
|
+
}
|
|
18668
|
+
|
|
18669
|
+
|
|
18670
|
+
// Custom InputTypes
|
|
18671
|
+
/**
|
|
18672
|
+
* ScheduledJob findUnique
|
|
18673
|
+
*/
|
|
18674
|
+
export type ScheduledJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18675
|
+
/**
|
|
18676
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18677
|
+
*/
|
|
18678
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18679
|
+
/**
|
|
18680
|
+
* Omit specific fields from the ScheduledJob
|
|
18681
|
+
*/
|
|
18682
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18683
|
+
/**
|
|
18684
|
+
* Filter, which ScheduledJob to fetch.
|
|
18685
|
+
*/
|
|
18686
|
+
where: ScheduledJobWhereUniqueInput
|
|
18687
|
+
}
|
|
18688
|
+
|
|
18689
|
+
/**
|
|
18690
|
+
* ScheduledJob findUniqueOrThrow
|
|
18691
|
+
*/
|
|
18692
|
+
export type ScheduledJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18693
|
+
/**
|
|
18694
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18695
|
+
*/
|
|
18696
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18697
|
+
/**
|
|
18698
|
+
* Omit specific fields from the ScheduledJob
|
|
18699
|
+
*/
|
|
18700
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18701
|
+
/**
|
|
18702
|
+
* Filter, which ScheduledJob to fetch.
|
|
18703
|
+
*/
|
|
18704
|
+
where: ScheduledJobWhereUniqueInput
|
|
18705
|
+
}
|
|
18706
|
+
|
|
18707
|
+
/**
|
|
18708
|
+
* ScheduledJob findFirst
|
|
18709
|
+
*/
|
|
18710
|
+
export type ScheduledJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18711
|
+
/**
|
|
18712
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18713
|
+
*/
|
|
18714
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18715
|
+
/**
|
|
18716
|
+
* Omit specific fields from the ScheduledJob
|
|
18717
|
+
*/
|
|
18718
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18719
|
+
/**
|
|
18720
|
+
* Filter, which ScheduledJob to fetch.
|
|
18721
|
+
*/
|
|
18722
|
+
where?: ScheduledJobWhereInput
|
|
18723
|
+
/**
|
|
18724
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
18725
|
+
*
|
|
18726
|
+
* Determine the order of ScheduledJobs to fetch.
|
|
18727
|
+
*/
|
|
18728
|
+
orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
|
|
18729
|
+
/**
|
|
18730
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
18731
|
+
*
|
|
18732
|
+
* Sets the position for searching for ScheduledJobs.
|
|
18733
|
+
*/
|
|
18734
|
+
cursor?: ScheduledJobWhereUniqueInput
|
|
18735
|
+
/**
|
|
18736
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18737
|
+
*
|
|
18738
|
+
* Take `±n` ScheduledJobs from the position of the cursor.
|
|
18739
|
+
*/
|
|
18740
|
+
take?: number
|
|
18741
|
+
/**
|
|
18742
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18743
|
+
*
|
|
18744
|
+
* Skip the first `n` ScheduledJobs.
|
|
18745
|
+
*/
|
|
18746
|
+
skip?: number
|
|
18747
|
+
/**
|
|
18748
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
18749
|
+
*
|
|
18750
|
+
* Filter by unique combinations of ScheduledJobs.
|
|
18751
|
+
*/
|
|
18752
|
+
distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
|
|
18753
|
+
}
|
|
18754
|
+
|
|
18755
|
+
/**
|
|
18756
|
+
* ScheduledJob findFirstOrThrow
|
|
18757
|
+
*/
|
|
18758
|
+
export type ScheduledJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18759
|
+
/**
|
|
18760
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18761
|
+
*/
|
|
18762
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18763
|
+
/**
|
|
18764
|
+
* Omit specific fields from the ScheduledJob
|
|
18765
|
+
*/
|
|
18766
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18767
|
+
/**
|
|
18768
|
+
* Filter, which ScheduledJob to fetch.
|
|
18769
|
+
*/
|
|
18770
|
+
where?: ScheduledJobWhereInput
|
|
18771
|
+
/**
|
|
18772
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
18773
|
+
*
|
|
18774
|
+
* Determine the order of ScheduledJobs to fetch.
|
|
18775
|
+
*/
|
|
18776
|
+
orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
|
|
18777
|
+
/**
|
|
18778
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
18779
|
+
*
|
|
18780
|
+
* Sets the position for searching for ScheduledJobs.
|
|
18781
|
+
*/
|
|
18782
|
+
cursor?: ScheduledJobWhereUniqueInput
|
|
18783
|
+
/**
|
|
18784
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18785
|
+
*
|
|
18786
|
+
* Take `±n` ScheduledJobs from the position of the cursor.
|
|
18787
|
+
*/
|
|
18788
|
+
take?: number
|
|
18789
|
+
/**
|
|
18790
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18791
|
+
*
|
|
18792
|
+
* Skip the first `n` ScheduledJobs.
|
|
18793
|
+
*/
|
|
18794
|
+
skip?: number
|
|
18795
|
+
/**
|
|
18796
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
18797
|
+
*
|
|
18798
|
+
* Filter by unique combinations of ScheduledJobs.
|
|
18799
|
+
*/
|
|
18800
|
+
distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
|
|
18801
|
+
}
|
|
18802
|
+
|
|
18803
|
+
/**
|
|
18804
|
+
* ScheduledJob findMany
|
|
18805
|
+
*/
|
|
18806
|
+
export type ScheduledJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18807
|
+
/**
|
|
18808
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18809
|
+
*/
|
|
18810
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18811
|
+
/**
|
|
18812
|
+
* Omit specific fields from the ScheduledJob
|
|
18813
|
+
*/
|
|
18814
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18815
|
+
/**
|
|
18816
|
+
* Filter, which ScheduledJobs to fetch.
|
|
18817
|
+
*/
|
|
18818
|
+
where?: ScheduledJobWhereInput
|
|
18819
|
+
/**
|
|
18820
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
18821
|
+
*
|
|
18822
|
+
* Determine the order of ScheduledJobs to fetch.
|
|
18823
|
+
*/
|
|
18824
|
+
orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
|
|
18825
|
+
/**
|
|
18826
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
18827
|
+
*
|
|
18828
|
+
* Sets the position for listing ScheduledJobs.
|
|
18829
|
+
*/
|
|
18830
|
+
cursor?: ScheduledJobWhereUniqueInput
|
|
18831
|
+
/**
|
|
18832
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18833
|
+
*
|
|
18834
|
+
* Take `±n` ScheduledJobs from the position of the cursor.
|
|
18835
|
+
*/
|
|
18836
|
+
take?: number
|
|
18837
|
+
/**
|
|
18838
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
18839
|
+
*
|
|
18840
|
+
* Skip the first `n` ScheduledJobs.
|
|
18841
|
+
*/
|
|
18842
|
+
skip?: number
|
|
18843
|
+
distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
|
|
18844
|
+
}
|
|
18845
|
+
|
|
18846
|
+
/**
|
|
18847
|
+
* ScheduledJob create
|
|
18848
|
+
*/
|
|
18849
|
+
export type ScheduledJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18850
|
+
/**
|
|
18851
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18852
|
+
*/
|
|
18853
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18854
|
+
/**
|
|
18855
|
+
* Omit specific fields from the ScheduledJob
|
|
18856
|
+
*/
|
|
18857
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18858
|
+
/**
|
|
18859
|
+
* The data needed to create a ScheduledJob.
|
|
18860
|
+
*/
|
|
18861
|
+
data: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
|
|
18862
|
+
}
|
|
18863
|
+
|
|
18864
|
+
/**
|
|
18865
|
+
* ScheduledJob createMany
|
|
18866
|
+
*/
|
|
18867
|
+
export type ScheduledJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18868
|
+
/**
|
|
18869
|
+
* The data used to create many ScheduledJobs.
|
|
18870
|
+
*/
|
|
18871
|
+
data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
|
|
18872
|
+
}
|
|
18873
|
+
|
|
18874
|
+
/**
|
|
18875
|
+
* ScheduledJob update
|
|
18876
|
+
*/
|
|
18877
|
+
export type ScheduledJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18878
|
+
/**
|
|
18879
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18880
|
+
*/
|
|
18881
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18882
|
+
/**
|
|
18883
|
+
* Omit specific fields from the ScheduledJob
|
|
18884
|
+
*/
|
|
18885
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18886
|
+
/**
|
|
18887
|
+
* The data needed to update a ScheduledJob.
|
|
18888
|
+
*/
|
|
18889
|
+
data: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
|
|
18890
|
+
/**
|
|
18891
|
+
* Choose, which ScheduledJob to update.
|
|
18892
|
+
*/
|
|
18893
|
+
where: ScheduledJobWhereUniqueInput
|
|
18894
|
+
}
|
|
18895
|
+
|
|
18896
|
+
/**
|
|
18897
|
+
* ScheduledJob updateMany
|
|
18898
|
+
*/
|
|
18899
|
+
export type ScheduledJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18900
|
+
/**
|
|
18901
|
+
* The data used to update ScheduledJobs.
|
|
18902
|
+
*/
|
|
18903
|
+
data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
|
|
18904
|
+
/**
|
|
18905
|
+
* Filter which ScheduledJobs to update
|
|
18906
|
+
*/
|
|
18907
|
+
where?: ScheduledJobWhereInput
|
|
18908
|
+
/**
|
|
18909
|
+
* Limit how many ScheduledJobs to update.
|
|
18910
|
+
*/
|
|
18911
|
+
limit?: number
|
|
18912
|
+
}
|
|
18913
|
+
|
|
18914
|
+
/**
|
|
18915
|
+
* ScheduledJob upsert
|
|
18916
|
+
*/
|
|
18917
|
+
export type ScheduledJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18918
|
+
/**
|
|
18919
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18920
|
+
*/
|
|
18921
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18922
|
+
/**
|
|
18923
|
+
* Omit specific fields from the ScheduledJob
|
|
18924
|
+
*/
|
|
18925
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18926
|
+
/**
|
|
18927
|
+
* The filter to search for the ScheduledJob to update in case it exists.
|
|
18928
|
+
*/
|
|
18929
|
+
where: ScheduledJobWhereUniqueInput
|
|
18930
|
+
/**
|
|
18931
|
+
* In case the ScheduledJob found by the `where` argument doesn't exist, create a new ScheduledJob with this data.
|
|
18932
|
+
*/
|
|
18933
|
+
create: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
|
|
18934
|
+
/**
|
|
18935
|
+
* In case the ScheduledJob was found with the provided `where` argument, update it with this data.
|
|
18936
|
+
*/
|
|
18937
|
+
update: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
|
|
18938
|
+
}
|
|
18939
|
+
|
|
18940
|
+
/**
|
|
18941
|
+
* ScheduledJob delete
|
|
18942
|
+
*/
|
|
18943
|
+
export type ScheduledJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18944
|
+
/**
|
|
18945
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
18946
|
+
*/
|
|
18947
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
18948
|
+
/**
|
|
18949
|
+
* Omit specific fields from the ScheduledJob
|
|
18950
|
+
*/
|
|
18951
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
18952
|
+
/**
|
|
18953
|
+
* Filter which ScheduledJob to delete.
|
|
18954
|
+
*/
|
|
18955
|
+
where: ScheduledJobWhereUniqueInput
|
|
18956
|
+
}
|
|
18957
|
+
|
|
18958
|
+
/**
|
|
18959
|
+
* ScheduledJob deleteMany
|
|
18960
|
+
*/
|
|
18961
|
+
export type ScheduledJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18962
|
+
/**
|
|
18963
|
+
* Filter which ScheduledJobs to delete
|
|
18964
|
+
*/
|
|
18965
|
+
where?: ScheduledJobWhereInput
|
|
18966
|
+
/**
|
|
18967
|
+
* Limit how many ScheduledJobs to delete.
|
|
18968
|
+
*/
|
|
18969
|
+
limit?: number
|
|
18970
|
+
}
|
|
18971
|
+
|
|
18972
|
+
/**
|
|
18973
|
+
* ScheduledJob findRaw
|
|
18974
|
+
*/
|
|
18975
|
+
export type ScheduledJobFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18976
|
+
/**
|
|
18977
|
+
* The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
|
|
18978
|
+
*/
|
|
18979
|
+
filter?: InputJsonValue
|
|
18980
|
+
/**
|
|
18981
|
+
* Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
|
|
18982
|
+
*/
|
|
18983
|
+
options?: InputJsonValue
|
|
18984
|
+
}
|
|
18985
|
+
|
|
18986
|
+
/**
|
|
18987
|
+
* ScheduledJob aggregateRaw
|
|
18988
|
+
*/
|
|
18989
|
+
export type ScheduledJobAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
18990
|
+
/**
|
|
18991
|
+
* An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
|
|
18992
|
+
*/
|
|
18993
|
+
pipeline?: InputJsonValue[]
|
|
18994
|
+
/**
|
|
18995
|
+
* Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
|
|
18996
|
+
*/
|
|
18997
|
+
options?: InputJsonValue
|
|
18998
|
+
}
|
|
18999
|
+
|
|
19000
|
+
/**
|
|
19001
|
+
* ScheduledJob without action
|
|
19002
|
+
*/
|
|
19003
|
+
export type ScheduledJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
19004
|
+
/**
|
|
19005
|
+
* Select specific fields to fetch from the ScheduledJob
|
|
19006
|
+
*/
|
|
19007
|
+
select?: ScheduledJobSelect<ExtArgs> | null
|
|
19008
|
+
/**
|
|
19009
|
+
* Omit specific fields from the ScheduledJob
|
|
19010
|
+
*/
|
|
19011
|
+
omit?: ScheduledJobOmit<ExtArgs> | null
|
|
19012
|
+
}
|
|
19013
|
+
|
|
19014
|
+
|
|
19015
|
+
/**
|
|
19016
|
+
* Enums
|
|
19017
|
+
*/
|
|
19018
|
+
|
|
19019
|
+
export const UserScalarFieldEnum: {
|
|
19020
|
+
id: 'id',
|
|
19021
|
+
type: 'type',
|
|
19022
|
+
createdAt: 'createdAt',
|
|
19023
|
+
updatedAt: 'updatedAt',
|
|
19024
|
+
email: 'email',
|
|
19025
|
+
username: 'username',
|
|
19026
|
+
hashword: 'hashword',
|
|
19027
|
+
appUserId: 'appUserId',
|
|
19028
|
+
organizationId: 'organizationId',
|
|
19029
|
+
appOrgId: 'appOrgId',
|
|
19030
|
+
name: 'name'
|
|
19031
|
+
};
|
|
19032
|
+
|
|
19033
|
+
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
19034
|
+
|
|
19035
|
+
|
|
19036
|
+
export const TokenScalarFieldEnum: {
|
|
19037
|
+
id: 'id',
|
|
19038
|
+
token: 'token',
|
|
19039
|
+
created: 'created',
|
|
19040
|
+
expires: 'expires',
|
|
19041
|
+
userId: 'userId'
|
|
19042
|
+
};
|
|
19043
|
+
|
|
19044
|
+
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
19045
|
+
|
|
19046
|
+
|
|
19047
|
+
export const CredentialScalarFieldEnum: {
|
|
19048
|
+
id: 'id',
|
|
19049
|
+
userId: 'userId',
|
|
19050
|
+
authIsValid: 'authIsValid',
|
|
19051
|
+
externalId: 'externalId',
|
|
19052
|
+
data: 'data',
|
|
19053
|
+
createdAt: 'createdAt',
|
|
19054
|
+
updatedAt: 'updatedAt'
|
|
19055
|
+
};
|
|
19056
|
+
|
|
19057
|
+
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
|
19058
|
+
|
|
19059
|
+
|
|
19060
|
+
export const EntityScalarFieldEnum: {
|
|
19061
|
+
id: 'id',
|
|
19062
|
+
credentialId: 'credentialId',
|
|
19063
|
+
userId: 'userId',
|
|
19064
|
+
name: 'name',
|
|
19065
|
+
moduleName: 'moduleName',
|
|
19066
|
+
externalId: 'externalId',
|
|
19067
|
+
data: 'data',
|
|
19068
|
+
createdAt: 'createdAt',
|
|
19069
|
+
updatedAt: 'updatedAt',
|
|
19070
|
+
integrationIds: 'integrationIds',
|
|
19071
|
+
syncIds: 'syncIds'
|
|
19072
|
+
};
|
|
19073
|
+
|
|
19074
|
+
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
19075
|
+
|
|
19076
|
+
|
|
19077
|
+
export const IntegrationScalarFieldEnum: {
|
|
19078
|
+
id: 'id',
|
|
19079
|
+
userId: 'userId',
|
|
19080
|
+
status: 'status',
|
|
19081
|
+
config: 'config',
|
|
19082
|
+
version: 'version',
|
|
19083
|
+
entityIds: 'entityIds',
|
|
19084
|
+
errors: 'errors',
|
|
19085
|
+
warnings: 'warnings',
|
|
19086
|
+
info: 'info',
|
|
19087
|
+
logs: 'logs',
|
|
19088
|
+
createdAt: 'createdAt',
|
|
19089
|
+
updatedAt: 'updatedAt'
|
|
19090
|
+
};
|
|
19091
|
+
|
|
19092
|
+
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
19093
|
+
|
|
19094
|
+
|
|
19095
|
+
export const IntegrationMappingScalarFieldEnum: {
|
|
19096
|
+
id: 'id',
|
|
19097
|
+
integrationId: 'integrationId',
|
|
19098
|
+
sourceId: 'sourceId',
|
|
19099
|
+
mapping: 'mapping',
|
|
19100
|
+
createdAt: 'createdAt',
|
|
19101
|
+
updatedAt: 'updatedAt'
|
|
19102
|
+
};
|
|
19103
|
+
|
|
19104
|
+
export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
|
|
19105
|
+
|
|
19106
|
+
|
|
19107
|
+
export const ProcessScalarFieldEnum: {
|
|
19108
|
+
id: 'id',
|
|
19109
|
+
userId: 'userId',
|
|
19110
|
+
integrationId: 'integrationId',
|
|
19111
|
+
name: 'name',
|
|
19112
|
+
type: 'type',
|
|
19113
|
+
state: 'state',
|
|
19114
|
+
context: 'context',
|
|
19115
|
+
results: 'results',
|
|
19116
|
+
childProcesses: 'childProcesses',
|
|
19117
|
+
parentProcessId: 'parentProcessId',
|
|
19118
|
+
createdAt: 'createdAt',
|
|
19119
|
+
updatedAt: 'updatedAt'
|
|
19120
|
+
};
|
|
19121
|
+
|
|
19122
|
+
export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
|
|
19123
|
+
|
|
19124
|
+
|
|
19125
|
+
export const SyncScalarFieldEnum: {
|
|
19126
|
+
id: 'id',
|
|
19127
|
+
integrationId: 'integrationId',
|
|
19128
|
+
entityIds: 'entityIds',
|
|
19129
|
+
hash: 'hash',
|
|
19130
|
+
name: 'name'
|
|
19131
|
+
};
|
|
19132
|
+
|
|
19133
|
+
export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
|
|
19134
|
+
|
|
19135
|
+
|
|
19136
|
+
export const DataIdentifierScalarFieldEnum: {
|
|
19137
|
+
id: 'id',
|
|
19138
|
+
syncId: 'syncId',
|
|
19139
|
+
entityId: 'entityId',
|
|
19140
|
+
idData: 'idData',
|
|
19141
|
+
hash: 'hash'
|
|
19142
|
+
};
|
|
18089
19143
|
|
|
18090
19144
|
export type DataIdentifierScalarFieldEnum = (typeof DataIdentifierScalarFieldEnum)[keyof typeof DataIdentifierScalarFieldEnum]
|
|
18091
19145
|
|
|
@@ -18162,6 +19216,20 @@ export namespace Prisma {
|
|
|
18162
19216
|
export type ScriptScheduleScalarFieldEnum = (typeof ScriptScheduleScalarFieldEnum)[keyof typeof ScriptScheduleScalarFieldEnum]
|
|
18163
19217
|
|
|
18164
19218
|
|
|
19219
|
+
export const ScheduledJobScalarFieldEnum: {
|
|
19220
|
+
id: 'id',
|
|
19221
|
+
scheduleName: 'scheduleName',
|
|
19222
|
+
scheduledAt: 'scheduledAt',
|
|
19223
|
+
queueResourceId: 'queueResourceId',
|
|
19224
|
+
payload: 'payload',
|
|
19225
|
+
state: 'state',
|
|
19226
|
+
createdAt: 'createdAt',
|
|
19227
|
+
updatedAt: 'updatedAt'
|
|
19228
|
+
};
|
|
19229
|
+
|
|
19230
|
+
export type ScheduledJobScalarFieldEnum = (typeof ScheduledJobScalarFieldEnum)[keyof typeof ScheduledJobScalarFieldEnum]
|
|
19231
|
+
|
|
19232
|
+
|
|
18165
19233
|
export const SortOrder: {
|
|
18166
19234
|
asc: 'asc',
|
|
18167
19235
|
desc: 'desc'
|
|
@@ -19357,6 +20425,73 @@ export namespace Prisma {
|
|
|
19357
20425
|
updatedAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
|
|
19358
20426
|
}
|
|
19359
20427
|
|
|
20428
|
+
export type ScheduledJobWhereInput = {
|
|
20429
|
+
AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
|
|
20430
|
+
OR?: ScheduledJobWhereInput[]
|
|
20431
|
+
NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
|
|
20432
|
+
id?: StringFilter<"ScheduledJob"> | string
|
|
20433
|
+
scheduleName?: StringFilter<"ScheduledJob"> | string
|
|
20434
|
+
scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
|
|
20435
|
+
queueResourceId?: StringFilter<"ScheduledJob"> | string
|
|
20436
|
+
payload?: JsonNullableFilter<"ScheduledJob">
|
|
20437
|
+
state?: StringFilter<"ScheduledJob"> | string
|
|
20438
|
+
createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
|
|
20439
|
+
updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
|
|
20440
|
+
}
|
|
20441
|
+
|
|
20442
|
+
export type ScheduledJobOrderByWithRelationInput = {
|
|
20443
|
+
id?: SortOrder
|
|
20444
|
+
scheduleName?: SortOrder
|
|
20445
|
+
scheduledAt?: SortOrder
|
|
20446
|
+
queueResourceId?: SortOrder
|
|
20447
|
+
payload?: SortOrder
|
|
20448
|
+
state?: SortOrder
|
|
20449
|
+
createdAt?: SortOrder
|
|
20450
|
+
updatedAt?: SortOrder
|
|
20451
|
+
}
|
|
20452
|
+
|
|
20453
|
+
export type ScheduledJobWhereUniqueInput = Prisma.AtLeast<{
|
|
20454
|
+
id?: string
|
|
20455
|
+
scheduleName?: string
|
|
20456
|
+
AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
|
|
20457
|
+
OR?: ScheduledJobWhereInput[]
|
|
20458
|
+
NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
|
|
20459
|
+
scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
|
|
20460
|
+
queueResourceId?: StringFilter<"ScheduledJob"> | string
|
|
20461
|
+
payload?: JsonNullableFilter<"ScheduledJob">
|
|
20462
|
+
state?: StringFilter<"ScheduledJob"> | string
|
|
20463
|
+
createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
|
|
20464
|
+
updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
|
|
20465
|
+
}, "id" | "scheduleName">
|
|
20466
|
+
|
|
20467
|
+
export type ScheduledJobOrderByWithAggregationInput = {
|
|
20468
|
+
id?: SortOrder
|
|
20469
|
+
scheduleName?: SortOrder
|
|
20470
|
+
scheduledAt?: SortOrder
|
|
20471
|
+
queueResourceId?: SortOrder
|
|
20472
|
+
payload?: SortOrder
|
|
20473
|
+
state?: SortOrder
|
|
20474
|
+
createdAt?: SortOrder
|
|
20475
|
+
updatedAt?: SortOrder
|
|
20476
|
+
_count?: ScheduledJobCountOrderByAggregateInput
|
|
20477
|
+
_max?: ScheduledJobMaxOrderByAggregateInput
|
|
20478
|
+
_min?: ScheduledJobMinOrderByAggregateInput
|
|
20479
|
+
}
|
|
20480
|
+
|
|
20481
|
+
export type ScheduledJobScalarWhereWithAggregatesInput = {
|
|
20482
|
+
AND?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
|
|
20483
|
+
OR?: ScheduledJobScalarWhereWithAggregatesInput[]
|
|
20484
|
+
NOT?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
|
|
20485
|
+
id?: StringWithAggregatesFilter<"ScheduledJob"> | string
|
|
20486
|
+
scheduleName?: StringWithAggregatesFilter<"ScheduledJob"> | string
|
|
20487
|
+
scheduledAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
|
|
20488
|
+
queueResourceId?: StringWithAggregatesFilter<"ScheduledJob"> | string
|
|
20489
|
+
payload?: JsonNullableWithAggregatesFilter<"ScheduledJob">
|
|
20490
|
+
state?: StringWithAggregatesFilter<"ScheduledJob"> | string
|
|
20491
|
+
createdAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
|
|
20492
|
+
updatedAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
|
|
20493
|
+
}
|
|
20494
|
+
|
|
19360
20495
|
export type UserCreateInput = {
|
|
19361
20496
|
id?: string
|
|
19362
20497
|
type: $Enums.UserType
|
|
@@ -20431,6 +21566,79 @@ export namespace Prisma {
|
|
|
20431
21566
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
20432
21567
|
}
|
|
20433
21568
|
|
|
21569
|
+
export type ScheduledJobCreateInput = {
|
|
21570
|
+
id?: string
|
|
21571
|
+
scheduleName: string
|
|
21572
|
+
scheduledAt: Date | string
|
|
21573
|
+
queueResourceId: string
|
|
21574
|
+
payload?: InputJsonValue | null
|
|
21575
|
+
state?: string
|
|
21576
|
+
createdAt?: Date | string
|
|
21577
|
+
updatedAt?: Date | string
|
|
21578
|
+
}
|
|
21579
|
+
|
|
21580
|
+
export type ScheduledJobUncheckedCreateInput = {
|
|
21581
|
+
id?: string
|
|
21582
|
+
scheduleName: string
|
|
21583
|
+
scheduledAt: Date | string
|
|
21584
|
+
queueResourceId: string
|
|
21585
|
+
payload?: InputJsonValue | null
|
|
21586
|
+
state?: string
|
|
21587
|
+
createdAt?: Date | string
|
|
21588
|
+
updatedAt?: Date | string
|
|
21589
|
+
}
|
|
21590
|
+
|
|
21591
|
+
export type ScheduledJobUpdateInput = {
|
|
21592
|
+
scheduleName?: StringFieldUpdateOperationsInput | string
|
|
21593
|
+
scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21594
|
+
queueResourceId?: StringFieldUpdateOperationsInput | string
|
|
21595
|
+
payload?: InputJsonValue | InputJsonValue | null
|
|
21596
|
+
state?: StringFieldUpdateOperationsInput | string
|
|
21597
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21598
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21599
|
+
}
|
|
21600
|
+
|
|
21601
|
+
export type ScheduledJobUncheckedUpdateInput = {
|
|
21602
|
+
scheduleName?: StringFieldUpdateOperationsInput | string
|
|
21603
|
+
scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21604
|
+
queueResourceId?: StringFieldUpdateOperationsInput | string
|
|
21605
|
+
payload?: InputJsonValue | InputJsonValue | null
|
|
21606
|
+
state?: StringFieldUpdateOperationsInput | string
|
|
21607
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21608
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21609
|
+
}
|
|
21610
|
+
|
|
21611
|
+
export type ScheduledJobCreateManyInput = {
|
|
21612
|
+
id?: string
|
|
21613
|
+
scheduleName: string
|
|
21614
|
+
scheduledAt: Date | string
|
|
21615
|
+
queueResourceId: string
|
|
21616
|
+
payload?: InputJsonValue | null
|
|
21617
|
+
state?: string
|
|
21618
|
+
createdAt?: Date | string
|
|
21619
|
+
updatedAt?: Date | string
|
|
21620
|
+
}
|
|
21621
|
+
|
|
21622
|
+
export type ScheduledJobUpdateManyMutationInput = {
|
|
21623
|
+
scheduleName?: StringFieldUpdateOperationsInput | string
|
|
21624
|
+
scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21625
|
+
queueResourceId?: StringFieldUpdateOperationsInput | string
|
|
21626
|
+
payload?: InputJsonValue | InputJsonValue | null
|
|
21627
|
+
state?: StringFieldUpdateOperationsInput | string
|
|
21628
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21629
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21630
|
+
}
|
|
21631
|
+
|
|
21632
|
+
export type ScheduledJobUncheckedUpdateManyInput = {
|
|
21633
|
+
scheduleName?: StringFieldUpdateOperationsInput | string
|
|
21634
|
+
scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21635
|
+
queueResourceId?: StringFieldUpdateOperationsInput | string
|
|
21636
|
+
payload?: InputJsonValue | InputJsonValue | null
|
|
21637
|
+
state?: StringFieldUpdateOperationsInput | string
|
|
21638
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21639
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21640
|
+
}
|
|
21641
|
+
|
|
20434
21642
|
export type StringFilter<$PrismaModel = never> = {
|
|
20435
21643
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
20436
21644
|
in?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
@@ -21290,6 +22498,37 @@ export namespace Prisma {
|
|
|
21290
22498
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
21291
22499
|
}
|
|
21292
22500
|
|
|
22501
|
+
export type ScheduledJobCountOrderByAggregateInput = {
|
|
22502
|
+
id?: SortOrder
|
|
22503
|
+
scheduleName?: SortOrder
|
|
22504
|
+
scheduledAt?: SortOrder
|
|
22505
|
+
queueResourceId?: SortOrder
|
|
22506
|
+
payload?: SortOrder
|
|
22507
|
+
state?: SortOrder
|
|
22508
|
+
createdAt?: SortOrder
|
|
22509
|
+
updatedAt?: SortOrder
|
|
22510
|
+
}
|
|
22511
|
+
|
|
22512
|
+
export type ScheduledJobMaxOrderByAggregateInput = {
|
|
22513
|
+
id?: SortOrder
|
|
22514
|
+
scheduleName?: SortOrder
|
|
22515
|
+
scheduledAt?: SortOrder
|
|
22516
|
+
queueResourceId?: SortOrder
|
|
22517
|
+
state?: SortOrder
|
|
22518
|
+
createdAt?: SortOrder
|
|
22519
|
+
updatedAt?: SortOrder
|
|
22520
|
+
}
|
|
22521
|
+
|
|
22522
|
+
export type ScheduledJobMinOrderByAggregateInput = {
|
|
22523
|
+
id?: SortOrder
|
|
22524
|
+
scheduleName?: SortOrder
|
|
22525
|
+
scheduledAt?: SortOrder
|
|
22526
|
+
queueResourceId?: SortOrder
|
|
22527
|
+
state?: SortOrder
|
|
22528
|
+
createdAt?: SortOrder
|
|
22529
|
+
updatedAt?: SortOrder
|
|
22530
|
+
}
|
|
22531
|
+
|
|
21293
22532
|
export type UserCreateNestedOneWithoutMembersInput = {
|
|
21294
22533
|
create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
|
|
21295
22534
|
connectOrCreate?: UserCreateOrConnectWithoutMembersInput
|