@friggframework/core 2.0.0--canary.531.eb2e0bb.0 → 2.0.0--canary.517.f738cdd.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.
Files changed (42) hide show
  1. package/admin-scripts/index.js +52 -0
  2. package/admin-scripts/repositories/admin-process-repository-documentdb.js +21 -0
  3. package/admin-scripts/repositories/admin-process-repository-factory.js +51 -0
  4. package/admin-scripts/repositories/admin-process-repository-interface.js +150 -0
  5. package/admin-scripts/repositories/admin-process-repository-mongo.js +213 -0
  6. package/admin-scripts/repositories/admin-process-repository-postgres.js +251 -0
  7. package/admin-scripts/repositories/script-schedule-repository-documentdb.js +21 -0
  8. package/admin-scripts/repositories/script-schedule-repository-factory.js +51 -0
  9. package/admin-scripts/repositories/script-schedule-repository-interface.js +108 -0
  10. package/admin-scripts/repositories/script-schedule-repository-mongo.js +179 -0
  11. package/admin-scripts/repositories/script-schedule-repository-postgres.js +210 -0
  12. package/application/commands/admin-script-commands.js +344 -0
  13. package/application/index.js +0 -4
  14. package/database/use-cases/check-database-state-use-case.js +2 -2
  15. package/database/use-cases/trigger-database-migration-use-case.js +1 -1
  16. package/generated/prisma-mongodb/edge.js +47 -4
  17. package/generated/prisma-mongodb/index-browser.js +37 -1
  18. package/generated/prisma-mongodb/index.d.ts +2775 -52
  19. package/generated/prisma-mongodb/index.js +47 -4
  20. package/generated/prisma-mongodb/package.json +1 -1
  21. package/generated/prisma-mongodb/schema.prisma +69 -0
  22. package/generated/prisma-mongodb/wasm.js +47 -4
  23. package/generated/prisma-postgresql/edge.js +46 -4
  24. package/generated/prisma-postgresql/index-browser.js +36 -1
  25. package/generated/prisma-postgresql/index.d.ts +3414 -83
  26. package/generated/prisma-postgresql/index.js +46 -4
  27. package/generated/prisma-postgresql/package.json +1 -1
  28. package/generated/prisma-postgresql/schema.prisma +68 -0
  29. package/generated/prisma-postgresql/wasm.js +46 -4
  30. package/handlers/middleware/admin-auth.js +53 -0
  31. package/handlers/routers/db-migration.handler.js +1 -1
  32. package/handlers/routers/db-migration.js +18 -33
  33. package/index.js +0 -1
  34. package/package.json +5 -5
  35. package/prisma-mongodb/schema.prisma +69 -0
  36. package/prisma-postgresql/schema.prisma +68 -0
  37. package/application/commands/scheduler-commands.js +0 -263
  38. package/infrastructure/scheduler/eventbridge-scheduler-adapter.js +0 -185
  39. package/infrastructure/scheduler/index.js +0 -34
  40. package/infrastructure/scheduler/mock-scheduler-adapter.js +0 -143
  41. package/infrastructure/scheduler/scheduler-service-factory.js +0 -73
  42. package/infrastructure/scheduler/scheduler-service-interface.js +0 -47
@@ -85,6 +85,17 @@ export type State = $Result.DefaultSelection<Prisma.$StatePayload>
85
85
  * AWS API Gateway WebSocket connection tracking
86
86
  */
87
87
  export type WebsocketConnection = $Result.DefaultSelection<Prisma.$WebsocketConnectionPayload>
88
+ /**
89
+ * Model AdminProcess
90
+ * Admin process tracking (like Process but without user/integration FK)
91
+ * Used for: admin scripts, db migrations, system maintenance tasks
92
+ */
93
+ export type AdminProcess = $Result.DefaultSelection<Prisma.$AdminProcessPayload>
94
+ /**
95
+ * Model ScriptSchedule
96
+ * Script scheduling configuration for hybrid scheduling (SQS + EventBridge)
97
+ */
98
+ export type ScriptSchedule = $Result.DefaultSelection<Prisma.$ScriptSchedulePayload>
88
99
 
89
100
  /**
90
101
  * Enums
@@ -117,6 +128,26 @@ export const AssociationType: {
117
128
 
118
129
  export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]
119
130
 
131
+
132
+ export const AdminProcessState: {
133
+ PENDING: 'PENDING',
134
+ RUNNING: 'RUNNING',
135
+ COMPLETED: 'COMPLETED',
136
+ FAILED: 'FAILED'
137
+ };
138
+
139
+ export type AdminProcessState = (typeof AdminProcessState)[keyof typeof AdminProcessState]
140
+
141
+
142
+ export const AdminTrigger: {
143
+ MANUAL: 'MANUAL',
144
+ SCHEDULED: 'SCHEDULED',
145
+ QUEUE: 'QUEUE',
146
+ WEBHOOK: 'WEBHOOK'
147
+ };
148
+
149
+ export type AdminTrigger = (typeof AdminTrigger)[keyof typeof AdminTrigger]
150
+
120
151
  }
121
152
 
122
153
  export type UserType = $Enums.UserType
@@ -131,6 +162,14 @@ export type AssociationType = $Enums.AssociationType
131
162
 
132
163
  export const AssociationType: typeof $Enums.AssociationType
133
164
 
165
+ export type AdminProcessState = $Enums.AdminProcessState
166
+
167
+ export const AdminProcessState: typeof $Enums.AdminProcessState
168
+
169
+ export type AdminTrigger = $Enums.AdminTrigger
170
+
171
+ export const AdminTrigger: typeof $Enums.AdminTrigger
172
+
134
173
  /**
135
174
  * ## Prisma Client ʲˢ
136
175
  *
@@ -345,6 +384,26 @@ export class PrismaClient<
345
384
  * ```
346
385
  */
347
386
  get websocketConnection(): Prisma.WebsocketConnectionDelegate<ExtArgs, ClientOptions>;
387
+
388
+ /**
389
+ * `prisma.adminProcess`: Exposes CRUD operations for the **AdminProcess** model.
390
+ * Example usage:
391
+ * ```ts
392
+ * // Fetch zero or more AdminProcesses
393
+ * const adminProcesses = await prisma.adminProcess.findMany()
394
+ * ```
395
+ */
396
+ get adminProcess(): Prisma.AdminProcessDelegate<ExtArgs, ClientOptions>;
397
+
398
+ /**
399
+ * `prisma.scriptSchedule`: Exposes CRUD operations for the **ScriptSchedule** model.
400
+ * Example usage:
401
+ * ```ts
402
+ * // Fetch zero or more ScriptSchedules
403
+ * const scriptSchedules = await prisma.scriptSchedule.findMany()
404
+ * ```
405
+ */
406
+ get scriptSchedule(): Prisma.ScriptScheduleDelegate<ExtArgs, ClientOptions>;
348
407
  }
349
408
 
350
409
  export namespace Prisma {
@@ -797,7 +856,9 @@ export namespace Prisma {
797
856
  Association: 'Association',
798
857
  AssociationObject: 'AssociationObject',
799
858
  State: 'State',
800
- WebsocketConnection: 'WebsocketConnection'
859
+ WebsocketConnection: 'WebsocketConnection',
860
+ AdminProcess: 'AdminProcess',
861
+ ScriptSchedule: 'ScriptSchedule'
801
862
  };
802
863
 
803
864
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -816,7 +877,7 @@ export namespace Prisma {
816
877
  omit: GlobalOmitOptions
817
878
  }
818
879
  meta: {
819
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection"
880
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminProcess" | "scriptSchedule"
820
881
  txIsolationLevel: never
821
882
  }
822
883
  model: {
@@ -1782,6 +1843,154 @@ export namespace Prisma {
1782
1843
  }
1783
1844
  }
1784
1845
  }
1846
+ AdminProcess: {
1847
+ payload: Prisma.$AdminProcessPayload<ExtArgs>
1848
+ fields: Prisma.AdminProcessFieldRefs
1849
+ operations: {
1850
+ findUnique: {
1851
+ args: Prisma.AdminProcessFindUniqueArgs<ExtArgs>
1852
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload> | null
1853
+ }
1854
+ findUniqueOrThrow: {
1855
+ args: Prisma.AdminProcessFindUniqueOrThrowArgs<ExtArgs>
1856
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1857
+ }
1858
+ findFirst: {
1859
+ args: Prisma.AdminProcessFindFirstArgs<ExtArgs>
1860
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload> | null
1861
+ }
1862
+ findFirstOrThrow: {
1863
+ args: Prisma.AdminProcessFindFirstOrThrowArgs<ExtArgs>
1864
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1865
+ }
1866
+ findMany: {
1867
+ args: Prisma.AdminProcessFindManyArgs<ExtArgs>
1868
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>[]
1869
+ }
1870
+ create: {
1871
+ args: Prisma.AdminProcessCreateArgs<ExtArgs>
1872
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1873
+ }
1874
+ createMany: {
1875
+ args: Prisma.AdminProcessCreateManyArgs<ExtArgs>
1876
+ result: BatchPayload
1877
+ }
1878
+ delete: {
1879
+ args: Prisma.AdminProcessDeleteArgs<ExtArgs>
1880
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1881
+ }
1882
+ update: {
1883
+ args: Prisma.AdminProcessUpdateArgs<ExtArgs>
1884
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1885
+ }
1886
+ deleteMany: {
1887
+ args: Prisma.AdminProcessDeleteManyArgs<ExtArgs>
1888
+ result: BatchPayload
1889
+ }
1890
+ updateMany: {
1891
+ args: Prisma.AdminProcessUpdateManyArgs<ExtArgs>
1892
+ result: BatchPayload
1893
+ }
1894
+ upsert: {
1895
+ args: Prisma.AdminProcessUpsertArgs<ExtArgs>
1896
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1897
+ }
1898
+ aggregate: {
1899
+ args: Prisma.AdminProcessAggregateArgs<ExtArgs>
1900
+ result: $Utils.Optional<AggregateAdminProcess>
1901
+ }
1902
+ groupBy: {
1903
+ args: Prisma.AdminProcessGroupByArgs<ExtArgs>
1904
+ result: $Utils.Optional<AdminProcessGroupByOutputType>[]
1905
+ }
1906
+ findRaw: {
1907
+ args: Prisma.AdminProcessFindRawArgs<ExtArgs>
1908
+ result: JsonObject
1909
+ }
1910
+ aggregateRaw: {
1911
+ args: Prisma.AdminProcessAggregateRawArgs<ExtArgs>
1912
+ result: JsonObject
1913
+ }
1914
+ count: {
1915
+ args: Prisma.AdminProcessCountArgs<ExtArgs>
1916
+ result: $Utils.Optional<AdminProcessCountAggregateOutputType> | number
1917
+ }
1918
+ }
1919
+ }
1920
+ ScriptSchedule: {
1921
+ payload: Prisma.$ScriptSchedulePayload<ExtArgs>
1922
+ fields: Prisma.ScriptScheduleFieldRefs
1923
+ operations: {
1924
+ findUnique: {
1925
+ args: Prisma.ScriptScheduleFindUniqueArgs<ExtArgs>
1926
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload> | null
1927
+ }
1928
+ findUniqueOrThrow: {
1929
+ args: Prisma.ScriptScheduleFindUniqueOrThrowArgs<ExtArgs>
1930
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1931
+ }
1932
+ findFirst: {
1933
+ args: Prisma.ScriptScheduleFindFirstArgs<ExtArgs>
1934
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload> | null
1935
+ }
1936
+ findFirstOrThrow: {
1937
+ args: Prisma.ScriptScheduleFindFirstOrThrowArgs<ExtArgs>
1938
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1939
+ }
1940
+ findMany: {
1941
+ args: Prisma.ScriptScheduleFindManyArgs<ExtArgs>
1942
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>[]
1943
+ }
1944
+ create: {
1945
+ args: Prisma.ScriptScheduleCreateArgs<ExtArgs>
1946
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1947
+ }
1948
+ createMany: {
1949
+ args: Prisma.ScriptScheduleCreateManyArgs<ExtArgs>
1950
+ result: BatchPayload
1951
+ }
1952
+ delete: {
1953
+ args: Prisma.ScriptScheduleDeleteArgs<ExtArgs>
1954
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1955
+ }
1956
+ update: {
1957
+ args: Prisma.ScriptScheduleUpdateArgs<ExtArgs>
1958
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1959
+ }
1960
+ deleteMany: {
1961
+ args: Prisma.ScriptScheduleDeleteManyArgs<ExtArgs>
1962
+ result: BatchPayload
1963
+ }
1964
+ updateMany: {
1965
+ args: Prisma.ScriptScheduleUpdateManyArgs<ExtArgs>
1966
+ result: BatchPayload
1967
+ }
1968
+ upsert: {
1969
+ args: Prisma.ScriptScheduleUpsertArgs<ExtArgs>
1970
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1971
+ }
1972
+ aggregate: {
1973
+ args: Prisma.ScriptScheduleAggregateArgs<ExtArgs>
1974
+ result: $Utils.Optional<AggregateScriptSchedule>
1975
+ }
1976
+ groupBy: {
1977
+ args: Prisma.ScriptScheduleGroupByArgs<ExtArgs>
1978
+ result: $Utils.Optional<ScriptScheduleGroupByOutputType>[]
1979
+ }
1980
+ findRaw: {
1981
+ args: Prisma.ScriptScheduleFindRawArgs<ExtArgs>
1982
+ result: JsonObject
1983
+ }
1984
+ aggregateRaw: {
1985
+ args: Prisma.ScriptScheduleAggregateRawArgs<ExtArgs>
1986
+ result: JsonObject
1987
+ }
1988
+ count: {
1989
+ args: Prisma.ScriptScheduleCountArgs<ExtArgs>
1990
+ result: $Utils.Optional<ScriptScheduleCountAggregateOutputType> | number
1991
+ }
1992
+ }
1993
+ }
1785
1994
  }
1786
1995
  } & {
1787
1996
  other: {
@@ -1874,6 +2083,8 @@ export namespace Prisma {
1874
2083
  associationObject?: AssociationObjectOmit
1875
2084
  state?: StateOmit
1876
2085
  websocketConnection?: WebsocketConnectionOmit
2086
+ adminProcess?: AdminProcessOmit
2087
+ scriptSchedule?: ScriptScheduleOmit
1877
2088
  }
1878
2089
 
1879
2090
  /* Types for Logging */
@@ -15775,70 +15986,2043 @@ export namespace Prisma {
15775
15986
 
15776
15987
 
15777
15988
  /**
15778
- * Enums
15989
+ * Model AdminProcess
15779
15990
  */
15780
15991
 
15781
- export const UserScalarFieldEnum: {
15782
- id: 'id',
15783
- type: 'type',
15784
- createdAt: 'createdAt',
15785
- updatedAt: 'updatedAt',
15786
- email: 'email',
15787
- username: 'username',
15788
- hashword: 'hashword',
15789
- appUserId: 'appUserId',
15790
- organizationId: 'organizationId',
15791
- appOrgId: 'appOrgId',
15792
- name: 'name'
15793
- };
15992
+ export type AggregateAdminProcess = {
15993
+ _count: AdminProcessCountAggregateOutputType | null
15994
+ _min: AdminProcessMinAggregateOutputType | null
15995
+ _max: AdminProcessMaxAggregateOutputType | null
15996
+ }
15794
15997
 
15795
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
15998
+ export type AdminProcessMinAggregateOutputType = {
15999
+ id: string | null
16000
+ name: string | null
16001
+ type: string | null
16002
+ state: $Enums.AdminProcessState | null
16003
+ parentProcessId: string | null
16004
+ createdAt: Date | null
16005
+ updatedAt: Date | null
16006
+ }
15796
16007
 
16008
+ export type AdminProcessMaxAggregateOutputType = {
16009
+ id: string | null
16010
+ name: string | null
16011
+ type: string | null
16012
+ state: $Enums.AdminProcessState | null
16013
+ parentProcessId: string | null
16014
+ createdAt: Date | null
16015
+ updatedAt: Date | null
16016
+ }
15797
16017
 
15798
- export const TokenScalarFieldEnum: {
15799
- id: 'id',
15800
- token: 'token',
15801
- created: 'created',
15802
- expires: 'expires',
15803
- userId: 'userId'
15804
- };
16018
+ export type AdminProcessCountAggregateOutputType = {
16019
+ id: number
16020
+ name: number
16021
+ type: number
16022
+ state: number
16023
+ context: number
16024
+ results: number
16025
+ childProcesses: number
16026
+ parentProcessId: number
16027
+ createdAt: number
16028
+ updatedAt: number
16029
+ _all: number
16030
+ }
15805
16031
 
15806
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
15807
16032
 
16033
+ export type AdminProcessMinAggregateInputType = {
16034
+ id?: true
16035
+ name?: true
16036
+ type?: true
16037
+ state?: true
16038
+ parentProcessId?: true
16039
+ createdAt?: true
16040
+ updatedAt?: true
16041
+ }
15808
16042
 
15809
- export const CredentialScalarFieldEnum: {
15810
- id: 'id',
15811
- userId: 'userId',
15812
- authIsValid: 'authIsValid',
15813
- externalId: 'externalId',
15814
- data: 'data',
15815
- createdAt: 'createdAt',
15816
- updatedAt: 'updatedAt'
15817
- };
16043
+ export type AdminProcessMaxAggregateInputType = {
16044
+ id?: true
16045
+ name?: true
16046
+ type?: true
16047
+ state?: true
16048
+ parentProcessId?: true
16049
+ createdAt?: true
16050
+ updatedAt?: true
16051
+ }
15818
16052
 
15819
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
16053
+ export type AdminProcessCountAggregateInputType = {
16054
+ id?: true
16055
+ name?: true
16056
+ type?: true
16057
+ state?: true
16058
+ context?: true
16059
+ results?: true
16060
+ childProcesses?: true
16061
+ parentProcessId?: true
16062
+ createdAt?: true
16063
+ updatedAt?: true
16064
+ _all?: true
16065
+ }
15820
16066
 
16067
+ export type AdminProcessAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16068
+ /**
16069
+ * Filter which AdminProcess to aggregate.
16070
+ */
16071
+ where?: AdminProcessWhereInput
16072
+ /**
16073
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16074
+ *
16075
+ * Determine the order of AdminProcesses to fetch.
16076
+ */
16077
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
16078
+ /**
16079
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16080
+ *
16081
+ * Sets the start position
16082
+ */
16083
+ cursor?: AdminProcessWhereUniqueInput
16084
+ /**
16085
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16086
+ *
16087
+ * Take `±n` AdminProcesses from the position of the cursor.
16088
+ */
16089
+ take?: number
16090
+ /**
16091
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16092
+ *
16093
+ * Skip the first `n` AdminProcesses.
16094
+ */
16095
+ skip?: number
16096
+ /**
16097
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16098
+ *
16099
+ * Count returned AdminProcesses
16100
+ **/
16101
+ _count?: true | AdminProcessCountAggregateInputType
16102
+ /**
16103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16104
+ *
16105
+ * Select which fields to find the minimum value
16106
+ **/
16107
+ _min?: AdminProcessMinAggregateInputType
16108
+ /**
16109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16110
+ *
16111
+ * Select which fields to find the maximum value
16112
+ **/
16113
+ _max?: AdminProcessMaxAggregateInputType
16114
+ }
15821
16115
 
15822
- export const EntityScalarFieldEnum: {
15823
- id: 'id',
15824
- credentialId: 'credentialId',
15825
- userId: 'userId',
15826
- name: 'name',
15827
- moduleName: 'moduleName',
15828
- externalId: 'externalId',
15829
- data: 'data',
15830
- createdAt: 'createdAt',
15831
- updatedAt: 'updatedAt',
15832
- integrationIds: 'integrationIds',
15833
- syncIds: 'syncIds'
15834
- };
16116
+ export type GetAdminProcessAggregateType<T extends AdminProcessAggregateArgs> = {
16117
+ [P in keyof T & keyof AggregateAdminProcess]: P extends '_count' | 'count'
16118
+ ? T[P] extends true
16119
+ ? number
16120
+ : GetScalarType<T[P], AggregateAdminProcess[P]>
16121
+ : GetScalarType<T[P], AggregateAdminProcess[P]>
16122
+ }
15835
16123
 
15836
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
15837
16124
 
15838
16125
 
15839
- export const IntegrationScalarFieldEnum: {
15840
- id: 'id',
15841
- userId: 'userId',
16126
+
16127
+ export type AdminProcessGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16128
+ where?: AdminProcessWhereInput
16129
+ orderBy?: AdminProcessOrderByWithAggregationInput | AdminProcessOrderByWithAggregationInput[]
16130
+ by: AdminProcessScalarFieldEnum[] | AdminProcessScalarFieldEnum
16131
+ having?: AdminProcessScalarWhereWithAggregatesInput
16132
+ take?: number
16133
+ skip?: number
16134
+ _count?: AdminProcessCountAggregateInputType | true
16135
+ _min?: AdminProcessMinAggregateInputType
16136
+ _max?: AdminProcessMaxAggregateInputType
16137
+ }
16138
+
16139
+ export type AdminProcessGroupByOutputType = {
16140
+ id: string
16141
+ name: string
16142
+ type: string
16143
+ state: $Enums.AdminProcessState
16144
+ context: JsonValue
16145
+ results: JsonValue
16146
+ childProcesses: string[]
16147
+ parentProcessId: string | null
16148
+ createdAt: Date
16149
+ updatedAt: Date
16150
+ _count: AdminProcessCountAggregateOutputType | null
16151
+ _min: AdminProcessMinAggregateOutputType | null
16152
+ _max: AdminProcessMaxAggregateOutputType | null
16153
+ }
16154
+
16155
+ type GetAdminProcessGroupByPayload<T extends AdminProcessGroupByArgs> = Prisma.PrismaPromise<
16156
+ Array<
16157
+ PickEnumerable<AdminProcessGroupByOutputType, T['by']> &
16158
+ {
16159
+ [P in ((keyof T) & (keyof AdminProcessGroupByOutputType))]: P extends '_count'
16160
+ ? T[P] extends boolean
16161
+ ? number
16162
+ : GetScalarType<T[P], AdminProcessGroupByOutputType[P]>
16163
+ : GetScalarType<T[P], AdminProcessGroupByOutputType[P]>
16164
+ }
16165
+ >
16166
+ >
16167
+
16168
+
16169
+ export type AdminProcessSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
16170
+ id?: boolean
16171
+ name?: boolean
16172
+ type?: boolean
16173
+ state?: boolean
16174
+ context?: boolean
16175
+ results?: boolean
16176
+ childProcesses?: boolean
16177
+ parentProcessId?: boolean
16178
+ createdAt?: boolean
16179
+ updatedAt?: boolean
16180
+ }, ExtArgs["result"]["adminProcess"]>
16181
+
16182
+
16183
+
16184
+ export type AdminProcessSelectScalar = {
16185
+ id?: boolean
16186
+ name?: boolean
16187
+ type?: boolean
16188
+ state?: boolean
16189
+ context?: boolean
16190
+ results?: boolean
16191
+ childProcesses?: boolean
16192
+ parentProcessId?: boolean
16193
+ createdAt?: boolean
16194
+ updatedAt?: boolean
16195
+ }
16196
+
16197
+ export type AdminProcessOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "type" | "state" | "context" | "results" | "childProcesses" | "parentProcessId" | "createdAt" | "updatedAt", ExtArgs["result"]["adminProcess"]>
16198
+
16199
+ export type $AdminProcessPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16200
+ name: "AdminProcess"
16201
+ objects: {}
16202
+ scalars: $Extensions.GetPayloadResult<{
16203
+ id: string
16204
+ name: string
16205
+ type: string
16206
+ state: $Enums.AdminProcessState
16207
+ context: Prisma.JsonValue
16208
+ results: Prisma.JsonValue
16209
+ childProcesses: string[]
16210
+ parentProcessId: string | null
16211
+ createdAt: Date
16212
+ updatedAt: Date
16213
+ }, ExtArgs["result"]["adminProcess"]>
16214
+ composites: {}
16215
+ }
16216
+
16217
+ type AdminProcessGetPayload<S extends boolean | null | undefined | AdminProcessDefaultArgs> = $Result.GetResult<Prisma.$AdminProcessPayload, S>
16218
+
16219
+ type AdminProcessCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
16220
+ Omit<AdminProcessFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
16221
+ select?: AdminProcessCountAggregateInputType | true
16222
+ }
16223
+
16224
+ export interface AdminProcessDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
16225
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminProcess'], meta: { name: 'AdminProcess' } }
16226
+ /**
16227
+ * Find zero or one AdminProcess that matches the filter.
16228
+ * @param {AdminProcessFindUniqueArgs} args - Arguments to find a AdminProcess
16229
+ * @example
16230
+ * // Get one AdminProcess
16231
+ * const adminProcess = await prisma.adminProcess.findUnique({
16232
+ * where: {
16233
+ * // ... provide filter here
16234
+ * }
16235
+ * })
16236
+ */
16237
+ findUnique<T extends AdminProcessFindUniqueArgs>(args: SelectSubset<T, AdminProcessFindUniqueArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
16238
+
16239
+ /**
16240
+ * Find one AdminProcess that matches the filter or throw an error with `error.code='P2025'`
16241
+ * if no matches were found.
16242
+ * @param {AdminProcessFindUniqueOrThrowArgs} args - Arguments to find a AdminProcess
16243
+ * @example
16244
+ * // Get one AdminProcess
16245
+ * const adminProcess = await prisma.adminProcess.findUniqueOrThrow({
16246
+ * where: {
16247
+ * // ... provide filter here
16248
+ * }
16249
+ * })
16250
+ */
16251
+ findUniqueOrThrow<T extends AdminProcessFindUniqueOrThrowArgs>(args: SelectSubset<T, AdminProcessFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16252
+
16253
+ /**
16254
+ * Find the first AdminProcess that matches the filter.
16255
+ * Note, that providing `undefined` is treated as the value not being there.
16256
+ * Read more here: https://pris.ly/d/null-undefined
16257
+ * @param {AdminProcessFindFirstArgs} args - Arguments to find a AdminProcess
16258
+ * @example
16259
+ * // Get one AdminProcess
16260
+ * const adminProcess = await prisma.adminProcess.findFirst({
16261
+ * where: {
16262
+ * // ... provide filter here
16263
+ * }
16264
+ * })
16265
+ */
16266
+ findFirst<T extends AdminProcessFindFirstArgs>(args?: SelectSubset<T, AdminProcessFindFirstArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
16267
+
16268
+ /**
16269
+ * Find the first AdminProcess that matches the filter or
16270
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
16271
+ * Note, that providing `undefined` is treated as the value not being there.
16272
+ * Read more here: https://pris.ly/d/null-undefined
16273
+ * @param {AdminProcessFindFirstOrThrowArgs} args - Arguments to find a AdminProcess
16274
+ * @example
16275
+ * // Get one AdminProcess
16276
+ * const adminProcess = await prisma.adminProcess.findFirstOrThrow({
16277
+ * where: {
16278
+ * // ... provide filter here
16279
+ * }
16280
+ * })
16281
+ */
16282
+ findFirstOrThrow<T extends AdminProcessFindFirstOrThrowArgs>(args?: SelectSubset<T, AdminProcessFindFirstOrThrowArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16283
+
16284
+ /**
16285
+ * Find zero or more AdminProcesses that matches the filter.
16286
+ * Note, that providing `undefined` is treated as the value not being there.
16287
+ * Read more here: https://pris.ly/d/null-undefined
16288
+ * @param {AdminProcessFindManyArgs} args - Arguments to filter and select certain fields only.
16289
+ * @example
16290
+ * // Get all AdminProcesses
16291
+ * const adminProcesses = await prisma.adminProcess.findMany()
16292
+ *
16293
+ * // Get first 10 AdminProcesses
16294
+ * const adminProcesses = await prisma.adminProcess.findMany({ take: 10 })
16295
+ *
16296
+ * // Only select the `id`
16297
+ * const adminProcessWithIdOnly = await prisma.adminProcess.findMany({ select: { id: true } })
16298
+ *
16299
+ */
16300
+ findMany<T extends AdminProcessFindManyArgs>(args?: SelectSubset<T, AdminProcessFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
16301
+
16302
+ /**
16303
+ * Create a AdminProcess.
16304
+ * @param {AdminProcessCreateArgs} args - Arguments to create a AdminProcess.
16305
+ * @example
16306
+ * // Create one AdminProcess
16307
+ * const AdminProcess = await prisma.adminProcess.create({
16308
+ * data: {
16309
+ * // ... data to create a AdminProcess
16310
+ * }
16311
+ * })
16312
+ *
16313
+ */
16314
+ create<T extends AdminProcessCreateArgs>(args: SelectSubset<T, AdminProcessCreateArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16315
+
16316
+ /**
16317
+ * Create many AdminProcesses.
16318
+ * @param {AdminProcessCreateManyArgs} args - Arguments to create many AdminProcesses.
16319
+ * @example
16320
+ * // Create many AdminProcesses
16321
+ * const adminProcess = await prisma.adminProcess.createMany({
16322
+ * data: [
16323
+ * // ... provide data here
16324
+ * ]
16325
+ * })
16326
+ *
16327
+ */
16328
+ createMany<T extends AdminProcessCreateManyArgs>(args?: SelectSubset<T, AdminProcessCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16329
+
16330
+ /**
16331
+ * Delete a AdminProcess.
16332
+ * @param {AdminProcessDeleteArgs} args - Arguments to delete one AdminProcess.
16333
+ * @example
16334
+ * // Delete one AdminProcess
16335
+ * const AdminProcess = await prisma.adminProcess.delete({
16336
+ * where: {
16337
+ * // ... filter to delete one AdminProcess
16338
+ * }
16339
+ * })
16340
+ *
16341
+ */
16342
+ delete<T extends AdminProcessDeleteArgs>(args: SelectSubset<T, AdminProcessDeleteArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16343
+
16344
+ /**
16345
+ * Update one AdminProcess.
16346
+ * @param {AdminProcessUpdateArgs} args - Arguments to update one AdminProcess.
16347
+ * @example
16348
+ * // Update one AdminProcess
16349
+ * const adminProcess = await prisma.adminProcess.update({
16350
+ * where: {
16351
+ * // ... provide filter here
16352
+ * },
16353
+ * data: {
16354
+ * // ... provide data here
16355
+ * }
16356
+ * })
16357
+ *
16358
+ */
16359
+ update<T extends AdminProcessUpdateArgs>(args: SelectSubset<T, AdminProcessUpdateArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16360
+
16361
+ /**
16362
+ * Delete zero or more AdminProcesses.
16363
+ * @param {AdminProcessDeleteManyArgs} args - Arguments to filter AdminProcesses to delete.
16364
+ * @example
16365
+ * // Delete a few AdminProcesses
16366
+ * const { count } = await prisma.adminProcess.deleteMany({
16367
+ * where: {
16368
+ * // ... provide filter here
16369
+ * }
16370
+ * })
16371
+ *
16372
+ */
16373
+ deleteMany<T extends AdminProcessDeleteManyArgs>(args?: SelectSubset<T, AdminProcessDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16374
+
16375
+ /**
16376
+ * Update zero or more AdminProcesses.
16377
+ * Note, that providing `undefined` is treated as the value not being there.
16378
+ * Read more here: https://pris.ly/d/null-undefined
16379
+ * @param {AdminProcessUpdateManyArgs} args - Arguments to update one or more rows.
16380
+ * @example
16381
+ * // Update many AdminProcesses
16382
+ * const adminProcess = await prisma.adminProcess.updateMany({
16383
+ * where: {
16384
+ * // ... provide filter here
16385
+ * },
16386
+ * data: {
16387
+ * // ... provide data here
16388
+ * }
16389
+ * })
16390
+ *
16391
+ */
16392
+ updateMany<T extends AdminProcessUpdateManyArgs>(args: SelectSubset<T, AdminProcessUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16393
+
16394
+ /**
16395
+ * Create or update one AdminProcess.
16396
+ * @param {AdminProcessUpsertArgs} args - Arguments to update or create a AdminProcess.
16397
+ * @example
16398
+ * // Update or create a AdminProcess
16399
+ * const adminProcess = await prisma.adminProcess.upsert({
16400
+ * create: {
16401
+ * // ... data to create a AdminProcess
16402
+ * },
16403
+ * update: {
16404
+ * // ... in case it already exists, update
16405
+ * },
16406
+ * where: {
16407
+ * // ... the filter for the AdminProcess we want to update
16408
+ * }
16409
+ * })
16410
+ */
16411
+ upsert<T extends AdminProcessUpsertArgs>(args: SelectSubset<T, AdminProcessUpsertArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
16412
+
16413
+ /**
16414
+ * Find zero or more AdminProcesses that matches the filter.
16415
+ * @param {AdminProcessFindRawArgs} args - Select which filters you would like to apply.
16416
+ * @example
16417
+ * const adminProcess = await prisma.adminProcess.findRaw({
16418
+ * filter: { age: { $gt: 25 } }
16419
+ * })
16420
+ */
16421
+ findRaw(args?: AdminProcessFindRawArgs): Prisma.PrismaPromise<JsonObject>
16422
+
16423
+ /**
16424
+ * Perform aggregation operations on a AdminProcess.
16425
+ * @param {AdminProcessAggregateRawArgs} args - Select which aggregations you would like to apply.
16426
+ * @example
16427
+ * const adminProcess = await prisma.adminProcess.aggregateRaw({
16428
+ * pipeline: [
16429
+ * { $match: { status: "registered" } },
16430
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
16431
+ * ]
16432
+ * })
16433
+ */
16434
+ aggregateRaw(args?: AdminProcessAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
16435
+
16436
+
16437
+ /**
16438
+ * Count the number of AdminProcesses.
16439
+ * Note, that providing `undefined` is treated as the value not being there.
16440
+ * Read more here: https://pris.ly/d/null-undefined
16441
+ * @param {AdminProcessCountArgs} args - Arguments to filter AdminProcesses to count.
16442
+ * @example
16443
+ * // Count the number of AdminProcesses
16444
+ * const count = await prisma.adminProcess.count({
16445
+ * where: {
16446
+ * // ... the filter for the AdminProcesses we want to count
16447
+ * }
16448
+ * })
16449
+ **/
16450
+ count<T extends AdminProcessCountArgs>(
16451
+ args?: Subset<T, AdminProcessCountArgs>,
16452
+ ): Prisma.PrismaPromise<
16453
+ T extends $Utils.Record<'select', any>
16454
+ ? T['select'] extends true
16455
+ ? number
16456
+ : GetScalarType<T['select'], AdminProcessCountAggregateOutputType>
16457
+ : number
16458
+ >
16459
+
16460
+ /**
16461
+ * Allows you to perform aggregations operations on a AdminProcess.
16462
+ * Note, that providing `undefined` is treated as the value not being there.
16463
+ * Read more here: https://pris.ly/d/null-undefined
16464
+ * @param {AdminProcessAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
16465
+ * @example
16466
+ * // Ordered by age ascending
16467
+ * // Where email contains prisma.io
16468
+ * // Limited to the 10 users
16469
+ * const aggregations = await prisma.user.aggregate({
16470
+ * _avg: {
16471
+ * age: true,
16472
+ * },
16473
+ * where: {
16474
+ * email: {
16475
+ * contains: "prisma.io",
16476
+ * },
16477
+ * },
16478
+ * orderBy: {
16479
+ * age: "asc",
16480
+ * },
16481
+ * take: 10,
16482
+ * })
16483
+ **/
16484
+ aggregate<T extends AdminProcessAggregateArgs>(args: Subset<T, AdminProcessAggregateArgs>): Prisma.PrismaPromise<GetAdminProcessAggregateType<T>>
16485
+
16486
+ /**
16487
+ * Group by AdminProcess.
16488
+ * Note, that providing `undefined` is treated as the value not being there.
16489
+ * Read more here: https://pris.ly/d/null-undefined
16490
+ * @param {AdminProcessGroupByArgs} args - Group by arguments.
16491
+ * @example
16492
+ * // Group by city, order by createdAt, get count
16493
+ * const result = await prisma.user.groupBy({
16494
+ * by: ['city', 'createdAt'],
16495
+ * orderBy: {
16496
+ * createdAt: true
16497
+ * },
16498
+ * _count: {
16499
+ * _all: true
16500
+ * },
16501
+ * })
16502
+ *
16503
+ **/
16504
+ groupBy<
16505
+ T extends AdminProcessGroupByArgs,
16506
+ HasSelectOrTake extends Or<
16507
+ Extends<'skip', Keys<T>>,
16508
+ Extends<'take', Keys<T>>
16509
+ >,
16510
+ OrderByArg extends True extends HasSelectOrTake
16511
+ ? { orderBy: AdminProcessGroupByArgs['orderBy'] }
16512
+ : { orderBy?: AdminProcessGroupByArgs['orderBy'] },
16513
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
16514
+ ByFields extends MaybeTupleToUnion<T['by']>,
16515
+ ByValid extends Has<ByFields, OrderFields>,
16516
+ HavingFields extends GetHavingFields<T['having']>,
16517
+ HavingValid extends Has<ByFields, HavingFields>,
16518
+ ByEmpty extends T['by'] extends never[] ? True : False,
16519
+ InputErrors extends ByEmpty extends True
16520
+ ? `Error: "by" must not be empty.`
16521
+ : HavingValid extends False
16522
+ ? {
16523
+ [P in HavingFields]: P extends ByFields
16524
+ ? never
16525
+ : P extends string
16526
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
16527
+ : [
16528
+ Error,
16529
+ 'Field ',
16530
+ P,
16531
+ ` in "having" needs to be provided in "by"`,
16532
+ ]
16533
+ }[HavingFields]
16534
+ : 'take' extends Keys<T>
16535
+ ? 'orderBy' extends Keys<T>
16536
+ ? ByValid extends True
16537
+ ? {}
16538
+ : {
16539
+ [P in OrderFields]: P extends ByFields
16540
+ ? never
16541
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16542
+ }[OrderFields]
16543
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
16544
+ : 'skip' extends Keys<T>
16545
+ ? 'orderBy' extends Keys<T>
16546
+ ? ByValid extends True
16547
+ ? {}
16548
+ : {
16549
+ [P in OrderFields]: P extends ByFields
16550
+ ? never
16551
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16552
+ }[OrderFields]
16553
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
16554
+ : ByValid extends True
16555
+ ? {}
16556
+ : {
16557
+ [P in OrderFields]: P extends ByFields
16558
+ ? never
16559
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
16560
+ }[OrderFields]
16561
+ >(args: SubsetIntersection<T, AdminProcessGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminProcessGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
16562
+ /**
16563
+ * Fields of the AdminProcess model
16564
+ */
16565
+ readonly fields: AdminProcessFieldRefs;
16566
+ }
16567
+
16568
+ /**
16569
+ * The delegate class that acts as a "Promise-like" for AdminProcess.
16570
+ * Why is this prefixed with `Prisma__`?
16571
+ * Because we want to prevent naming conflicts as mentioned in
16572
+ * https://github.com/prisma/prisma-client-js/issues/707
16573
+ */
16574
+ export interface Prisma__AdminProcessClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
16575
+ readonly [Symbol.toStringTag]: "PrismaPromise"
16576
+ /**
16577
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
16578
+ * @param onfulfilled The callback to execute when the Promise is resolved.
16579
+ * @param onrejected The callback to execute when the Promise is rejected.
16580
+ * @returns A Promise for the completion of which ever callback is executed.
16581
+ */
16582
+ 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>
16583
+ /**
16584
+ * Attaches a callback for only the rejection of the Promise.
16585
+ * @param onrejected The callback to execute when the Promise is rejected.
16586
+ * @returns A Promise for the completion of the callback.
16587
+ */
16588
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
16589
+ /**
16590
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
16591
+ * resolved value cannot be modified from the callback.
16592
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
16593
+ * @returns A Promise for the completion of the callback.
16594
+ */
16595
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
16596
+ }
16597
+
16598
+
16599
+
16600
+
16601
+ /**
16602
+ * Fields of the AdminProcess model
16603
+ */
16604
+ interface AdminProcessFieldRefs {
16605
+ readonly id: FieldRef<"AdminProcess", 'String'>
16606
+ readonly name: FieldRef<"AdminProcess", 'String'>
16607
+ readonly type: FieldRef<"AdminProcess", 'String'>
16608
+ readonly state: FieldRef<"AdminProcess", 'AdminProcessState'>
16609
+ readonly context: FieldRef<"AdminProcess", 'Json'>
16610
+ readonly results: FieldRef<"AdminProcess", 'Json'>
16611
+ readonly childProcesses: FieldRef<"AdminProcess", 'String[]'>
16612
+ readonly parentProcessId: FieldRef<"AdminProcess", 'String'>
16613
+ readonly createdAt: FieldRef<"AdminProcess", 'DateTime'>
16614
+ readonly updatedAt: FieldRef<"AdminProcess", 'DateTime'>
16615
+ }
16616
+
16617
+
16618
+ // Custom InputTypes
16619
+ /**
16620
+ * AdminProcess findUnique
16621
+ */
16622
+ export type AdminProcessFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16623
+ /**
16624
+ * Select specific fields to fetch from the AdminProcess
16625
+ */
16626
+ select?: AdminProcessSelect<ExtArgs> | null
16627
+ /**
16628
+ * Omit specific fields from the AdminProcess
16629
+ */
16630
+ omit?: AdminProcessOmit<ExtArgs> | null
16631
+ /**
16632
+ * Filter, which AdminProcess to fetch.
16633
+ */
16634
+ where: AdminProcessWhereUniqueInput
16635
+ }
16636
+
16637
+ /**
16638
+ * AdminProcess findUniqueOrThrow
16639
+ */
16640
+ export type AdminProcessFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16641
+ /**
16642
+ * Select specific fields to fetch from the AdminProcess
16643
+ */
16644
+ select?: AdminProcessSelect<ExtArgs> | null
16645
+ /**
16646
+ * Omit specific fields from the AdminProcess
16647
+ */
16648
+ omit?: AdminProcessOmit<ExtArgs> | null
16649
+ /**
16650
+ * Filter, which AdminProcess to fetch.
16651
+ */
16652
+ where: AdminProcessWhereUniqueInput
16653
+ }
16654
+
16655
+ /**
16656
+ * AdminProcess findFirst
16657
+ */
16658
+ export type AdminProcessFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16659
+ /**
16660
+ * Select specific fields to fetch from the AdminProcess
16661
+ */
16662
+ select?: AdminProcessSelect<ExtArgs> | null
16663
+ /**
16664
+ * Omit specific fields from the AdminProcess
16665
+ */
16666
+ omit?: AdminProcessOmit<ExtArgs> | null
16667
+ /**
16668
+ * Filter, which AdminProcess to fetch.
16669
+ */
16670
+ where?: AdminProcessWhereInput
16671
+ /**
16672
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16673
+ *
16674
+ * Determine the order of AdminProcesses to fetch.
16675
+ */
16676
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
16677
+ /**
16678
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16679
+ *
16680
+ * Sets the position for searching for AdminProcesses.
16681
+ */
16682
+ cursor?: AdminProcessWhereUniqueInput
16683
+ /**
16684
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16685
+ *
16686
+ * Take `±n` AdminProcesses from the position of the cursor.
16687
+ */
16688
+ take?: number
16689
+ /**
16690
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16691
+ *
16692
+ * Skip the first `n` AdminProcesses.
16693
+ */
16694
+ skip?: number
16695
+ /**
16696
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
16697
+ *
16698
+ * Filter by unique combinations of AdminProcesses.
16699
+ */
16700
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
16701
+ }
16702
+
16703
+ /**
16704
+ * AdminProcess findFirstOrThrow
16705
+ */
16706
+ export type AdminProcessFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16707
+ /**
16708
+ * Select specific fields to fetch from the AdminProcess
16709
+ */
16710
+ select?: AdminProcessSelect<ExtArgs> | null
16711
+ /**
16712
+ * Omit specific fields from the AdminProcess
16713
+ */
16714
+ omit?: AdminProcessOmit<ExtArgs> | null
16715
+ /**
16716
+ * Filter, which AdminProcess to fetch.
16717
+ */
16718
+ where?: AdminProcessWhereInput
16719
+ /**
16720
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16721
+ *
16722
+ * Determine the order of AdminProcesses to fetch.
16723
+ */
16724
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
16725
+ /**
16726
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16727
+ *
16728
+ * Sets the position for searching for AdminProcesses.
16729
+ */
16730
+ cursor?: AdminProcessWhereUniqueInput
16731
+ /**
16732
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16733
+ *
16734
+ * Take `±n` AdminProcesses from the position of the cursor.
16735
+ */
16736
+ take?: number
16737
+ /**
16738
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16739
+ *
16740
+ * Skip the first `n` AdminProcesses.
16741
+ */
16742
+ skip?: number
16743
+ /**
16744
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
16745
+ *
16746
+ * Filter by unique combinations of AdminProcesses.
16747
+ */
16748
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
16749
+ }
16750
+
16751
+ /**
16752
+ * AdminProcess findMany
16753
+ */
16754
+ export type AdminProcessFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16755
+ /**
16756
+ * Select specific fields to fetch from the AdminProcess
16757
+ */
16758
+ select?: AdminProcessSelect<ExtArgs> | null
16759
+ /**
16760
+ * Omit specific fields from the AdminProcess
16761
+ */
16762
+ omit?: AdminProcessOmit<ExtArgs> | null
16763
+ /**
16764
+ * Filter, which AdminProcesses to fetch.
16765
+ */
16766
+ where?: AdminProcessWhereInput
16767
+ /**
16768
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16769
+ *
16770
+ * Determine the order of AdminProcesses to fetch.
16771
+ */
16772
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
16773
+ /**
16774
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16775
+ *
16776
+ * Sets the position for listing AdminProcesses.
16777
+ */
16778
+ cursor?: AdminProcessWhereUniqueInput
16779
+ /**
16780
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16781
+ *
16782
+ * Take `±n` AdminProcesses from the position of the cursor.
16783
+ */
16784
+ take?: number
16785
+ /**
16786
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16787
+ *
16788
+ * Skip the first `n` AdminProcesses.
16789
+ */
16790
+ skip?: number
16791
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
16792
+ }
16793
+
16794
+ /**
16795
+ * AdminProcess create
16796
+ */
16797
+ export type AdminProcessCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16798
+ /**
16799
+ * Select specific fields to fetch from the AdminProcess
16800
+ */
16801
+ select?: AdminProcessSelect<ExtArgs> | null
16802
+ /**
16803
+ * Omit specific fields from the AdminProcess
16804
+ */
16805
+ omit?: AdminProcessOmit<ExtArgs> | null
16806
+ /**
16807
+ * The data needed to create a AdminProcess.
16808
+ */
16809
+ data: XOR<AdminProcessCreateInput, AdminProcessUncheckedCreateInput>
16810
+ }
16811
+
16812
+ /**
16813
+ * AdminProcess createMany
16814
+ */
16815
+ export type AdminProcessCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16816
+ /**
16817
+ * The data used to create many AdminProcesses.
16818
+ */
16819
+ data: AdminProcessCreateManyInput | AdminProcessCreateManyInput[]
16820
+ }
16821
+
16822
+ /**
16823
+ * AdminProcess update
16824
+ */
16825
+ export type AdminProcessUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16826
+ /**
16827
+ * Select specific fields to fetch from the AdminProcess
16828
+ */
16829
+ select?: AdminProcessSelect<ExtArgs> | null
16830
+ /**
16831
+ * Omit specific fields from the AdminProcess
16832
+ */
16833
+ omit?: AdminProcessOmit<ExtArgs> | null
16834
+ /**
16835
+ * The data needed to update a AdminProcess.
16836
+ */
16837
+ data: XOR<AdminProcessUpdateInput, AdminProcessUncheckedUpdateInput>
16838
+ /**
16839
+ * Choose, which AdminProcess to update.
16840
+ */
16841
+ where: AdminProcessWhereUniqueInput
16842
+ }
16843
+
16844
+ /**
16845
+ * AdminProcess updateMany
16846
+ */
16847
+ export type AdminProcessUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16848
+ /**
16849
+ * The data used to update AdminProcesses.
16850
+ */
16851
+ data: XOR<AdminProcessUpdateManyMutationInput, AdminProcessUncheckedUpdateManyInput>
16852
+ /**
16853
+ * Filter which AdminProcesses to update
16854
+ */
16855
+ where?: AdminProcessWhereInput
16856
+ /**
16857
+ * Limit how many AdminProcesses to update.
16858
+ */
16859
+ limit?: number
16860
+ }
16861
+
16862
+ /**
16863
+ * AdminProcess upsert
16864
+ */
16865
+ export type AdminProcessUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16866
+ /**
16867
+ * Select specific fields to fetch from the AdminProcess
16868
+ */
16869
+ select?: AdminProcessSelect<ExtArgs> | null
16870
+ /**
16871
+ * Omit specific fields from the AdminProcess
16872
+ */
16873
+ omit?: AdminProcessOmit<ExtArgs> | null
16874
+ /**
16875
+ * The filter to search for the AdminProcess to update in case it exists.
16876
+ */
16877
+ where: AdminProcessWhereUniqueInput
16878
+ /**
16879
+ * In case the AdminProcess found by the `where` argument doesn't exist, create a new AdminProcess with this data.
16880
+ */
16881
+ create: XOR<AdminProcessCreateInput, AdminProcessUncheckedCreateInput>
16882
+ /**
16883
+ * In case the AdminProcess was found with the provided `where` argument, update it with this data.
16884
+ */
16885
+ update: XOR<AdminProcessUpdateInput, AdminProcessUncheckedUpdateInput>
16886
+ }
16887
+
16888
+ /**
16889
+ * AdminProcess delete
16890
+ */
16891
+ export type AdminProcessDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16892
+ /**
16893
+ * Select specific fields to fetch from the AdminProcess
16894
+ */
16895
+ select?: AdminProcessSelect<ExtArgs> | null
16896
+ /**
16897
+ * Omit specific fields from the AdminProcess
16898
+ */
16899
+ omit?: AdminProcessOmit<ExtArgs> | null
16900
+ /**
16901
+ * Filter which AdminProcess to delete.
16902
+ */
16903
+ where: AdminProcessWhereUniqueInput
16904
+ }
16905
+
16906
+ /**
16907
+ * AdminProcess deleteMany
16908
+ */
16909
+ export type AdminProcessDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16910
+ /**
16911
+ * Filter which AdminProcesses to delete
16912
+ */
16913
+ where?: AdminProcessWhereInput
16914
+ /**
16915
+ * Limit how many AdminProcesses to delete.
16916
+ */
16917
+ limit?: number
16918
+ }
16919
+
16920
+ /**
16921
+ * AdminProcess findRaw
16922
+ */
16923
+ export type AdminProcessFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16924
+ /**
16925
+ * 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}.
16926
+ */
16927
+ filter?: InputJsonValue
16928
+ /**
16929
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
16930
+ */
16931
+ options?: InputJsonValue
16932
+ }
16933
+
16934
+ /**
16935
+ * AdminProcess aggregateRaw
16936
+ */
16937
+ export type AdminProcessAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16938
+ /**
16939
+ * 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}.
16940
+ */
16941
+ pipeline?: InputJsonValue[]
16942
+ /**
16943
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
16944
+ */
16945
+ options?: InputJsonValue
16946
+ }
16947
+
16948
+ /**
16949
+ * AdminProcess without action
16950
+ */
16951
+ export type AdminProcessDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16952
+ /**
16953
+ * Select specific fields to fetch from the AdminProcess
16954
+ */
16955
+ select?: AdminProcessSelect<ExtArgs> | null
16956
+ /**
16957
+ * Omit specific fields from the AdminProcess
16958
+ */
16959
+ omit?: AdminProcessOmit<ExtArgs> | null
16960
+ }
16961
+
16962
+
16963
+ /**
16964
+ * Model ScriptSchedule
16965
+ */
16966
+
16967
+ export type AggregateScriptSchedule = {
16968
+ _count: ScriptScheduleCountAggregateOutputType | null
16969
+ _min: ScriptScheduleMinAggregateOutputType | null
16970
+ _max: ScriptScheduleMaxAggregateOutputType | null
16971
+ }
16972
+
16973
+ export type ScriptScheduleMinAggregateOutputType = {
16974
+ id: string | null
16975
+ scriptName: string | null
16976
+ enabled: boolean | null
16977
+ cronExpression: string | null
16978
+ timezone: string | null
16979
+ lastTriggeredAt: Date | null
16980
+ nextTriggerAt: Date | null
16981
+ externalScheduleId: string | null
16982
+ externalScheduleName: string | null
16983
+ createdAt: Date | null
16984
+ updatedAt: Date | null
16985
+ }
16986
+
16987
+ export type ScriptScheduleMaxAggregateOutputType = {
16988
+ id: string | null
16989
+ scriptName: string | null
16990
+ enabled: boolean | null
16991
+ cronExpression: string | null
16992
+ timezone: string | null
16993
+ lastTriggeredAt: Date | null
16994
+ nextTriggerAt: Date | null
16995
+ externalScheduleId: string | null
16996
+ externalScheduleName: string | null
16997
+ createdAt: Date | null
16998
+ updatedAt: Date | null
16999
+ }
17000
+
17001
+ export type ScriptScheduleCountAggregateOutputType = {
17002
+ id: number
17003
+ scriptName: number
17004
+ enabled: number
17005
+ cronExpression: number
17006
+ timezone: number
17007
+ lastTriggeredAt: number
17008
+ nextTriggerAt: number
17009
+ externalScheduleId: number
17010
+ externalScheduleName: number
17011
+ createdAt: number
17012
+ updatedAt: number
17013
+ _all: number
17014
+ }
17015
+
17016
+
17017
+ export type ScriptScheduleMinAggregateInputType = {
17018
+ id?: true
17019
+ scriptName?: true
17020
+ enabled?: true
17021
+ cronExpression?: true
17022
+ timezone?: true
17023
+ lastTriggeredAt?: true
17024
+ nextTriggerAt?: true
17025
+ externalScheduleId?: true
17026
+ externalScheduleName?: true
17027
+ createdAt?: true
17028
+ updatedAt?: true
17029
+ }
17030
+
17031
+ export type ScriptScheduleMaxAggregateInputType = {
17032
+ id?: true
17033
+ scriptName?: true
17034
+ enabled?: true
17035
+ cronExpression?: true
17036
+ timezone?: true
17037
+ lastTriggeredAt?: true
17038
+ nextTriggerAt?: true
17039
+ externalScheduleId?: true
17040
+ externalScheduleName?: true
17041
+ createdAt?: true
17042
+ updatedAt?: true
17043
+ }
17044
+
17045
+ export type ScriptScheduleCountAggregateInputType = {
17046
+ id?: true
17047
+ scriptName?: true
17048
+ enabled?: true
17049
+ cronExpression?: true
17050
+ timezone?: true
17051
+ lastTriggeredAt?: true
17052
+ nextTriggerAt?: true
17053
+ externalScheduleId?: true
17054
+ externalScheduleName?: true
17055
+ createdAt?: true
17056
+ updatedAt?: true
17057
+ _all?: true
17058
+ }
17059
+
17060
+ export type ScriptScheduleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17061
+ /**
17062
+ * Filter which ScriptSchedule to aggregate.
17063
+ */
17064
+ where?: ScriptScheduleWhereInput
17065
+ /**
17066
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17067
+ *
17068
+ * Determine the order of ScriptSchedules to fetch.
17069
+ */
17070
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
17071
+ /**
17072
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17073
+ *
17074
+ * Sets the start position
17075
+ */
17076
+ cursor?: ScriptScheduleWhereUniqueInput
17077
+ /**
17078
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17079
+ *
17080
+ * Take `±n` ScriptSchedules from the position of the cursor.
17081
+ */
17082
+ take?: number
17083
+ /**
17084
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17085
+ *
17086
+ * Skip the first `n` ScriptSchedules.
17087
+ */
17088
+ skip?: number
17089
+ /**
17090
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17091
+ *
17092
+ * Count returned ScriptSchedules
17093
+ **/
17094
+ _count?: true | ScriptScheduleCountAggregateInputType
17095
+ /**
17096
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17097
+ *
17098
+ * Select which fields to find the minimum value
17099
+ **/
17100
+ _min?: ScriptScheduleMinAggregateInputType
17101
+ /**
17102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17103
+ *
17104
+ * Select which fields to find the maximum value
17105
+ **/
17106
+ _max?: ScriptScheduleMaxAggregateInputType
17107
+ }
17108
+
17109
+ export type GetScriptScheduleAggregateType<T extends ScriptScheduleAggregateArgs> = {
17110
+ [P in keyof T & keyof AggregateScriptSchedule]: P extends '_count' | 'count'
17111
+ ? T[P] extends true
17112
+ ? number
17113
+ : GetScalarType<T[P], AggregateScriptSchedule[P]>
17114
+ : GetScalarType<T[P], AggregateScriptSchedule[P]>
17115
+ }
17116
+
17117
+
17118
+
17119
+
17120
+ export type ScriptScheduleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17121
+ where?: ScriptScheduleWhereInput
17122
+ orderBy?: ScriptScheduleOrderByWithAggregationInput | ScriptScheduleOrderByWithAggregationInput[]
17123
+ by: ScriptScheduleScalarFieldEnum[] | ScriptScheduleScalarFieldEnum
17124
+ having?: ScriptScheduleScalarWhereWithAggregatesInput
17125
+ take?: number
17126
+ skip?: number
17127
+ _count?: ScriptScheduleCountAggregateInputType | true
17128
+ _min?: ScriptScheduleMinAggregateInputType
17129
+ _max?: ScriptScheduleMaxAggregateInputType
17130
+ }
17131
+
17132
+ export type ScriptScheduleGroupByOutputType = {
17133
+ id: string
17134
+ scriptName: string
17135
+ enabled: boolean
17136
+ cronExpression: string | null
17137
+ timezone: string
17138
+ lastTriggeredAt: Date | null
17139
+ nextTriggerAt: Date | null
17140
+ externalScheduleId: string | null
17141
+ externalScheduleName: string | null
17142
+ createdAt: Date
17143
+ updatedAt: Date
17144
+ _count: ScriptScheduleCountAggregateOutputType | null
17145
+ _min: ScriptScheduleMinAggregateOutputType | null
17146
+ _max: ScriptScheduleMaxAggregateOutputType | null
17147
+ }
17148
+
17149
+ type GetScriptScheduleGroupByPayload<T extends ScriptScheduleGroupByArgs> = Prisma.PrismaPromise<
17150
+ Array<
17151
+ PickEnumerable<ScriptScheduleGroupByOutputType, T['by']> &
17152
+ {
17153
+ [P in ((keyof T) & (keyof ScriptScheduleGroupByOutputType))]: P extends '_count'
17154
+ ? T[P] extends boolean
17155
+ ? number
17156
+ : GetScalarType<T[P], ScriptScheduleGroupByOutputType[P]>
17157
+ : GetScalarType<T[P], ScriptScheduleGroupByOutputType[P]>
17158
+ }
17159
+ >
17160
+ >
17161
+
17162
+
17163
+ export type ScriptScheduleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17164
+ id?: boolean
17165
+ scriptName?: boolean
17166
+ enabled?: boolean
17167
+ cronExpression?: boolean
17168
+ timezone?: boolean
17169
+ lastTriggeredAt?: boolean
17170
+ nextTriggerAt?: boolean
17171
+ externalScheduleId?: boolean
17172
+ externalScheduleName?: boolean
17173
+ createdAt?: boolean
17174
+ updatedAt?: boolean
17175
+ }, ExtArgs["result"]["scriptSchedule"]>
17176
+
17177
+
17178
+
17179
+ export type ScriptScheduleSelectScalar = {
17180
+ id?: boolean
17181
+ scriptName?: boolean
17182
+ enabled?: boolean
17183
+ cronExpression?: boolean
17184
+ timezone?: boolean
17185
+ lastTriggeredAt?: boolean
17186
+ nextTriggerAt?: boolean
17187
+ externalScheduleId?: boolean
17188
+ externalScheduleName?: boolean
17189
+ createdAt?: boolean
17190
+ updatedAt?: boolean
17191
+ }
17192
+
17193
+ export type ScriptScheduleOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "scriptName" | "enabled" | "cronExpression" | "timezone" | "lastTriggeredAt" | "nextTriggerAt" | "externalScheduleId" | "externalScheduleName" | "createdAt" | "updatedAt", ExtArgs["result"]["scriptSchedule"]>
17194
+
17195
+ export type $ScriptSchedulePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17196
+ name: "ScriptSchedule"
17197
+ objects: {}
17198
+ scalars: $Extensions.GetPayloadResult<{
17199
+ id: string
17200
+ scriptName: string
17201
+ enabled: boolean
17202
+ cronExpression: string | null
17203
+ timezone: string
17204
+ lastTriggeredAt: Date | null
17205
+ nextTriggerAt: Date | null
17206
+ externalScheduleId: string | null
17207
+ externalScheduleName: string | null
17208
+ createdAt: Date
17209
+ updatedAt: Date
17210
+ }, ExtArgs["result"]["scriptSchedule"]>
17211
+ composites: {}
17212
+ }
17213
+
17214
+ type ScriptScheduleGetPayload<S extends boolean | null | undefined | ScriptScheduleDefaultArgs> = $Result.GetResult<Prisma.$ScriptSchedulePayload, S>
17215
+
17216
+ type ScriptScheduleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
17217
+ Omit<ScriptScheduleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
17218
+ select?: ScriptScheduleCountAggregateInputType | true
17219
+ }
17220
+
17221
+ export interface ScriptScheduleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
17222
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScriptSchedule'], meta: { name: 'ScriptSchedule' } }
17223
+ /**
17224
+ * Find zero or one ScriptSchedule that matches the filter.
17225
+ * @param {ScriptScheduleFindUniqueArgs} args - Arguments to find a ScriptSchedule
17226
+ * @example
17227
+ * // Get one ScriptSchedule
17228
+ * const scriptSchedule = await prisma.scriptSchedule.findUnique({
17229
+ * where: {
17230
+ * // ... provide filter here
17231
+ * }
17232
+ * })
17233
+ */
17234
+ findUnique<T extends ScriptScheduleFindUniqueArgs>(args: SelectSubset<T, ScriptScheduleFindUniqueArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
17235
+
17236
+ /**
17237
+ * Find one ScriptSchedule that matches the filter or throw an error with `error.code='P2025'`
17238
+ * if no matches were found.
17239
+ * @param {ScriptScheduleFindUniqueOrThrowArgs} args - Arguments to find a ScriptSchedule
17240
+ * @example
17241
+ * // Get one ScriptSchedule
17242
+ * const scriptSchedule = await prisma.scriptSchedule.findUniqueOrThrow({
17243
+ * where: {
17244
+ * // ... provide filter here
17245
+ * }
17246
+ * })
17247
+ */
17248
+ findUniqueOrThrow<T extends ScriptScheduleFindUniqueOrThrowArgs>(args: SelectSubset<T, ScriptScheduleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17249
+
17250
+ /**
17251
+ * Find the first ScriptSchedule that matches the filter.
17252
+ * Note, that providing `undefined` is treated as the value not being there.
17253
+ * Read more here: https://pris.ly/d/null-undefined
17254
+ * @param {ScriptScheduleFindFirstArgs} args - Arguments to find a ScriptSchedule
17255
+ * @example
17256
+ * // Get one ScriptSchedule
17257
+ * const scriptSchedule = await prisma.scriptSchedule.findFirst({
17258
+ * where: {
17259
+ * // ... provide filter here
17260
+ * }
17261
+ * })
17262
+ */
17263
+ findFirst<T extends ScriptScheduleFindFirstArgs>(args?: SelectSubset<T, ScriptScheduleFindFirstArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
17264
+
17265
+ /**
17266
+ * Find the first ScriptSchedule that matches the filter or
17267
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
17268
+ * Note, that providing `undefined` is treated as the value not being there.
17269
+ * Read more here: https://pris.ly/d/null-undefined
17270
+ * @param {ScriptScheduleFindFirstOrThrowArgs} args - Arguments to find a ScriptSchedule
17271
+ * @example
17272
+ * // Get one ScriptSchedule
17273
+ * const scriptSchedule = await prisma.scriptSchedule.findFirstOrThrow({
17274
+ * where: {
17275
+ * // ... provide filter here
17276
+ * }
17277
+ * })
17278
+ */
17279
+ findFirstOrThrow<T extends ScriptScheduleFindFirstOrThrowArgs>(args?: SelectSubset<T, ScriptScheduleFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17280
+
17281
+ /**
17282
+ * Find zero or more ScriptSchedules that matches the filter.
17283
+ * Note, that providing `undefined` is treated as the value not being there.
17284
+ * Read more here: https://pris.ly/d/null-undefined
17285
+ * @param {ScriptScheduleFindManyArgs} args - Arguments to filter and select certain fields only.
17286
+ * @example
17287
+ * // Get all ScriptSchedules
17288
+ * const scriptSchedules = await prisma.scriptSchedule.findMany()
17289
+ *
17290
+ * // Get first 10 ScriptSchedules
17291
+ * const scriptSchedules = await prisma.scriptSchedule.findMany({ take: 10 })
17292
+ *
17293
+ * // Only select the `id`
17294
+ * const scriptScheduleWithIdOnly = await prisma.scriptSchedule.findMany({ select: { id: true } })
17295
+ *
17296
+ */
17297
+ findMany<T extends ScriptScheduleFindManyArgs>(args?: SelectSubset<T, ScriptScheduleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
17298
+
17299
+ /**
17300
+ * Create a ScriptSchedule.
17301
+ * @param {ScriptScheduleCreateArgs} args - Arguments to create a ScriptSchedule.
17302
+ * @example
17303
+ * // Create one ScriptSchedule
17304
+ * const ScriptSchedule = await prisma.scriptSchedule.create({
17305
+ * data: {
17306
+ * // ... data to create a ScriptSchedule
17307
+ * }
17308
+ * })
17309
+ *
17310
+ */
17311
+ create<T extends ScriptScheduleCreateArgs>(args: SelectSubset<T, ScriptScheduleCreateArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17312
+
17313
+ /**
17314
+ * Create many ScriptSchedules.
17315
+ * @param {ScriptScheduleCreateManyArgs} args - Arguments to create many ScriptSchedules.
17316
+ * @example
17317
+ * // Create many ScriptSchedules
17318
+ * const scriptSchedule = await prisma.scriptSchedule.createMany({
17319
+ * data: [
17320
+ * // ... provide data here
17321
+ * ]
17322
+ * })
17323
+ *
17324
+ */
17325
+ createMany<T extends ScriptScheduleCreateManyArgs>(args?: SelectSubset<T, ScriptScheduleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
17326
+
17327
+ /**
17328
+ * Delete a ScriptSchedule.
17329
+ * @param {ScriptScheduleDeleteArgs} args - Arguments to delete one ScriptSchedule.
17330
+ * @example
17331
+ * // Delete one ScriptSchedule
17332
+ * const ScriptSchedule = await prisma.scriptSchedule.delete({
17333
+ * where: {
17334
+ * // ... filter to delete one ScriptSchedule
17335
+ * }
17336
+ * })
17337
+ *
17338
+ */
17339
+ delete<T extends ScriptScheduleDeleteArgs>(args: SelectSubset<T, ScriptScheduleDeleteArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17340
+
17341
+ /**
17342
+ * Update one ScriptSchedule.
17343
+ * @param {ScriptScheduleUpdateArgs} args - Arguments to update one ScriptSchedule.
17344
+ * @example
17345
+ * // Update one ScriptSchedule
17346
+ * const scriptSchedule = await prisma.scriptSchedule.update({
17347
+ * where: {
17348
+ * // ... provide filter here
17349
+ * },
17350
+ * data: {
17351
+ * // ... provide data here
17352
+ * }
17353
+ * })
17354
+ *
17355
+ */
17356
+ update<T extends ScriptScheduleUpdateArgs>(args: SelectSubset<T, ScriptScheduleUpdateArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17357
+
17358
+ /**
17359
+ * Delete zero or more ScriptSchedules.
17360
+ * @param {ScriptScheduleDeleteManyArgs} args - Arguments to filter ScriptSchedules to delete.
17361
+ * @example
17362
+ * // Delete a few ScriptSchedules
17363
+ * const { count } = await prisma.scriptSchedule.deleteMany({
17364
+ * where: {
17365
+ * // ... provide filter here
17366
+ * }
17367
+ * })
17368
+ *
17369
+ */
17370
+ deleteMany<T extends ScriptScheduleDeleteManyArgs>(args?: SelectSubset<T, ScriptScheduleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
17371
+
17372
+ /**
17373
+ * Update zero or more ScriptSchedules.
17374
+ * Note, that providing `undefined` is treated as the value not being there.
17375
+ * Read more here: https://pris.ly/d/null-undefined
17376
+ * @param {ScriptScheduleUpdateManyArgs} args - Arguments to update one or more rows.
17377
+ * @example
17378
+ * // Update many ScriptSchedules
17379
+ * const scriptSchedule = await prisma.scriptSchedule.updateMany({
17380
+ * where: {
17381
+ * // ... provide filter here
17382
+ * },
17383
+ * data: {
17384
+ * // ... provide data here
17385
+ * }
17386
+ * })
17387
+ *
17388
+ */
17389
+ updateMany<T extends ScriptScheduleUpdateManyArgs>(args: SelectSubset<T, ScriptScheduleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
17390
+
17391
+ /**
17392
+ * Create or update one ScriptSchedule.
17393
+ * @param {ScriptScheduleUpsertArgs} args - Arguments to update or create a ScriptSchedule.
17394
+ * @example
17395
+ * // Update or create a ScriptSchedule
17396
+ * const scriptSchedule = await prisma.scriptSchedule.upsert({
17397
+ * create: {
17398
+ * // ... data to create a ScriptSchedule
17399
+ * },
17400
+ * update: {
17401
+ * // ... in case it already exists, update
17402
+ * },
17403
+ * where: {
17404
+ * // ... the filter for the ScriptSchedule we want to update
17405
+ * }
17406
+ * })
17407
+ */
17408
+ upsert<T extends ScriptScheduleUpsertArgs>(args: SelectSubset<T, ScriptScheduleUpsertArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
17409
+
17410
+ /**
17411
+ * Find zero or more ScriptSchedules that matches the filter.
17412
+ * @param {ScriptScheduleFindRawArgs} args - Select which filters you would like to apply.
17413
+ * @example
17414
+ * const scriptSchedule = await prisma.scriptSchedule.findRaw({
17415
+ * filter: { age: { $gt: 25 } }
17416
+ * })
17417
+ */
17418
+ findRaw(args?: ScriptScheduleFindRawArgs): Prisma.PrismaPromise<JsonObject>
17419
+
17420
+ /**
17421
+ * Perform aggregation operations on a ScriptSchedule.
17422
+ * @param {ScriptScheduleAggregateRawArgs} args - Select which aggregations you would like to apply.
17423
+ * @example
17424
+ * const scriptSchedule = await prisma.scriptSchedule.aggregateRaw({
17425
+ * pipeline: [
17426
+ * { $match: { status: "registered" } },
17427
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
17428
+ * ]
17429
+ * })
17430
+ */
17431
+ aggregateRaw(args?: ScriptScheduleAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
17432
+
17433
+
17434
+ /**
17435
+ * Count the number of ScriptSchedules.
17436
+ * Note, that providing `undefined` is treated as the value not being there.
17437
+ * Read more here: https://pris.ly/d/null-undefined
17438
+ * @param {ScriptScheduleCountArgs} args - Arguments to filter ScriptSchedules to count.
17439
+ * @example
17440
+ * // Count the number of ScriptSchedules
17441
+ * const count = await prisma.scriptSchedule.count({
17442
+ * where: {
17443
+ * // ... the filter for the ScriptSchedules we want to count
17444
+ * }
17445
+ * })
17446
+ **/
17447
+ count<T extends ScriptScheduleCountArgs>(
17448
+ args?: Subset<T, ScriptScheduleCountArgs>,
17449
+ ): Prisma.PrismaPromise<
17450
+ T extends $Utils.Record<'select', any>
17451
+ ? T['select'] extends true
17452
+ ? number
17453
+ : GetScalarType<T['select'], ScriptScheduleCountAggregateOutputType>
17454
+ : number
17455
+ >
17456
+
17457
+ /**
17458
+ * Allows you to perform aggregations operations on a ScriptSchedule.
17459
+ * Note, that providing `undefined` is treated as the value not being there.
17460
+ * Read more here: https://pris.ly/d/null-undefined
17461
+ * @param {ScriptScheduleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
17462
+ * @example
17463
+ * // Ordered by age ascending
17464
+ * // Where email contains prisma.io
17465
+ * // Limited to the 10 users
17466
+ * const aggregations = await prisma.user.aggregate({
17467
+ * _avg: {
17468
+ * age: true,
17469
+ * },
17470
+ * where: {
17471
+ * email: {
17472
+ * contains: "prisma.io",
17473
+ * },
17474
+ * },
17475
+ * orderBy: {
17476
+ * age: "asc",
17477
+ * },
17478
+ * take: 10,
17479
+ * })
17480
+ **/
17481
+ aggregate<T extends ScriptScheduleAggregateArgs>(args: Subset<T, ScriptScheduleAggregateArgs>): Prisma.PrismaPromise<GetScriptScheduleAggregateType<T>>
17482
+
17483
+ /**
17484
+ * Group by ScriptSchedule.
17485
+ * Note, that providing `undefined` is treated as the value not being there.
17486
+ * Read more here: https://pris.ly/d/null-undefined
17487
+ * @param {ScriptScheduleGroupByArgs} args - Group by arguments.
17488
+ * @example
17489
+ * // Group by city, order by createdAt, get count
17490
+ * const result = await prisma.user.groupBy({
17491
+ * by: ['city', 'createdAt'],
17492
+ * orderBy: {
17493
+ * createdAt: true
17494
+ * },
17495
+ * _count: {
17496
+ * _all: true
17497
+ * },
17498
+ * })
17499
+ *
17500
+ **/
17501
+ groupBy<
17502
+ T extends ScriptScheduleGroupByArgs,
17503
+ HasSelectOrTake extends Or<
17504
+ Extends<'skip', Keys<T>>,
17505
+ Extends<'take', Keys<T>>
17506
+ >,
17507
+ OrderByArg extends True extends HasSelectOrTake
17508
+ ? { orderBy: ScriptScheduleGroupByArgs['orderBy'] }
17509
+ : { orderBy?: ScriptScheduleGroupByArgs['orderBy'] },
17510
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
17511
+ ByFields extends MaybeTupleToUnion<T['by']>,
17512
+ ByValid extends Has<ByFields, OrderFields>,
17513
+ HavingFields extends GetHavingFields<T['having']>,
17514
+ HavingValid extends Has<ByFields, HavingFields>,
17515
+ ByEmpty extends T['by'] extends never[] ? True : False,
17516
+ InputErrors extends ByEmpty extends True
17517
+ ? `Error: "by" must not be empty.`
17518
+ : HavingValid extends False
17519
+ ? {
17520
+ [P in HavingFields]: P extends ByFields
17521
+ ? never
17522
+ : P extends string
17523
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
17524
+ : [
17525
+ Error,
17526
+ 'Field ',
17527
+ P,
17528
+ ` in "having" needs to be provided in "by"`,
17529
+ ]
17530
+ }[HavingFields]
17531
+ : 'take' extends Keys<T>
17532
+ ? 'orderBy' extends Keys<T>
17533
+ ? ByValid extends True
17534
+ ? {}
17535
+ : {
17536
+ [P in OrderFields]: P extends ByFields
17537
+ ? never
17538
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17539
+ }[OrderFields]
17540
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
17541
+ : 'skip' extends Keys<T>
17542
+ ? 'orderBy' extends Keys<T>
17543
+ ? ByValid extends True
17544
+ ? {}
17545
+ : {
17546
+ [P in OrderFields]: P extends ByFields
17547
+ ? never
17548
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17549
+ }[OrderFields]
17550
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
17551
+ : ByValid extends True
17552
+ ? {}
17553
+ : {
17554
+ [P in OrderFields]: P extends ByFields
17555
+ ? never
17556
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17557
+ }[OrderFields]
17558
+ >(args: SubsetIntersection<T, ScriptScheduleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScriptScheduleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
17559
+ /**
17560
+ * Fields of the ScriptSchedule model
17561
+ */
17562
+ readonly fields: ScriptScheduleFieldRefs;
17563
+ }
17564
+
17565
+ /**
17566
+ * The delegate class that acts as a "Promise-like" for ScriptSchedule.
17567
+ * Why is this prefixed with `Prisma__`?
17568
+ * Because we want to prevent naming conflicts as mentioned in
17569
+ * https://github.com/prisma/prisma-client-js/issues/707
17570
+ */
17571
+ export interface Prisma__ScriptScheduleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
17572
+ readonly [Symbol.toStringTag]: "PrismaPromise"
17573
+ /**
17574
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
17575
+ * @param onfulfilled The callback to execute when the Promise is resolved.
17576
+ * @param onrejected The callback to execute when the Promise is rejected.
17577
+ * @returns A Promise for the completion of which ever callback is executed.
17578
+ */
17579
+ 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>
17580
+ /**
17581
+ * Attaches a callback for only the rejection of the Promise.
17582
+ * @param onrejected The callback to execute when the Promise is rejected.
17583
+ * @returns A Promise for the completion of the callback.
17584
+ */
17585
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
17586
+ /**
17587
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
17588
+ * resolved value cannot be modified from the callback.
17589
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
17590
+ * @returns A Promise for the completion of the callback.
17591
+ */
17592
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
17593
+ }
17594
+
17595
+
17596
+
17597
+
17598
+ /**
17599
+ * Fields of the ScriptSchedule model
17600
+ */
17601
+ interface ScriptScheduleFieldRefs {
17602
+ readonly id: FieldRef<"ScriptSchedule", 'String'>
17603
+ readonly scriptName: FieldRef<"ScriptSchedule", 'String'>
17604
+ readonly enabled: FieldRef<"ScriptSchedule", 'Boolean'>
17605
+ readonly cronExpression: FieldRef<"ScriptSchedule", 'String'>
17606
+ readonly timezone: FieldRef<"ScriptSchedule", 'String'>
17607
+ readonly lastTriggeredAt: FieldRef<"ScriptSchedule", 'DateTime'>
17608
+ readonly nextTriggerAt: FieldRef<"ScriptSchedule", 'DateTime'>
17609
+ readonly externalScheduleId: FieldRef<"ScriptSchedule", 'String'>
17610
+ readonly externalScheduleName: FieldRef<"ScriptSchedule", 'String'>
17611
+ readonly createdAt: FieldRef<"ScriptSchedule", 'DateTime'>
17612
+ readonly updatedAt: FieldRef<"ScriptSchedule", 'DateTime'>
17613
+ }
17614
+
17615
+
17616
+ // Custom InputTypes
17617
+ /**
17618
+ * ScriptSchedule findUnique
17619
+ */
17620
+ export type ScriptScheduleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17621
+ /**
17622
+ * Select specific fields to fetch from the ScriptSchedule
17623
+ */
17624
+ select?: ScriptScheduleSelect<ExtArgs> | null
17625
+ /**
17626
+ * Omit specific fields from the ScriptSchedule
17627
+ */
17628
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17629
+ /**
17630
+ * Filter, which ScriptSchedule to fetch.
17631
+ */
17632
+ where: ScriptScheduleWhereUniqueInput
17633
+ }
17634
+
17635
+ /**
17636
+ * ScriptSchedule findUniqueOrThrow
17637
+ */
17638
+ export type ScriptScheduleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17639
+ /**
17640
+ * Select specific fields to fetch from the ScriptSchedule
17641
+ */
17642
+ select?: ScriptScheduleSelect<ExtArgs> | null
17643
+ /**
17644
+ * Omit specific fields from the ScriptSchedule
17645
+ */
17646
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17647
+ /**
17648
+ * Filter, which ScriptSchedule to fetch.
17649
+ */
17650
+ where: ScriptScheduleWhereUniqueInput
17651
+ }
17652
+
17653
+ /**
17654
+ * ScriptSchedule findFirst
17655
+ */
17656
+ export type ScriptScheduleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17657
+ /**
17658
+ * Select specific fields to fetch from the ScriptSchedule
17659
+ */
17660
+ select?: ScriptScheduleSelect<ExtArgs> | null
17661
+ /**
17662
+ * Omit specific fields from the ScriptSchedule
17663
+ */
17664
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17665
+ /**
17666
+ * Filter, which ScriptSchedule to fetch.
17667
+ */
17668
+ where?: ScriptScheduleWhereInput
17669
+ /**
17670
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17671
+ *
17672
+ * Determine the order of ScriptSchedules to fetch.
17673
+ */
17674
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
17675
+ /**
17676
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17677
+ *
17678
+ * Sets the position for searching for ScriptSchedules.
17679
+ */
17680
+ cursor?: ScriptScheduleWhereUniqueInput
17681
+ /**
17682
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17683
+ *
17684
+ * Take `±n` ScriptSchedules from the position of the cursor.
17685
+ */
17686
+ take?: number
17687
+ /**
17688
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17689
+ *
17690
+ * Skip the first `n` ScriptSchedules.
17691
+ */
17692
+ skip?: number
17693
+ /**
17694
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
17695
+ *
17696
+ * Filter by unique combinations of ScriptSchedules.
17697
+ */
17698
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
17699
+ }
17700
+
17701
+ /**
17702
+ * ScriptSchedule findFirstOrThrow
17703
+ */
17704
+ export type ScriptScheduleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17705
+ /**
17706
+ * Select specific fields to fetch from the ScriptSchedule
17707
+ */
17708
+ select?: ScriptScheduleSelect<ExtArgs> | null
17709
+ /**
17710
+ * Omit specific fields from the ScriptSchedule
17711
+ */
17712
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17713
+ /**
17714
+ * Filter, which ScriptSchedule to fetch.
17715
+ */
17716
+ where?: ScriptScheduleWhereInput
17717
+ /**
17718
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17719
+ *
17720
+ * Determine the order of ScriptSchedules to fetch.
17721
+ */
17722
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
17723
+ /**
17724
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17725
+ *
17726
+ * Sets the position for searching for ScriptSchedules.
17727
+ */
17728
+ cursor?: ScriptScheduleWhereUniqueInput
17729
+ /**
17730
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17731
+ *
17732
+ * Take `±n` ScriptSchedules from the position of the cursor.
17733
+ */
17734
+ take?: number
17735
+ /**
17736
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17737
+ *
17738
+ * Skip the first `n` ScriptSchedules.
17739
+ */
17740
+ skip?: number
17741
+ /**
17742
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
17743
+ *
17744
+ * Filter by unique combinations of ScriptSchedules.
17745
+ */
17746
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
17747
+ }
17748
+
17749
+ /**
17750
+ * ScriptSchedule findMany
17751
+ */
17752
+ export type ScriptScheduleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17753
+ /**
17754
+ * Select specific fields to fetch from the ScriptSchedule
17755
+ */
17756
+ select?: ScriptScheduleSelect<ExtArgs> | null
17757
+ /**
17758
+ * Omit specific fields from the ScriptSchedule
17759
+ */
17760
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17761
+ /**
17762
+ * Filter, which ScriptSchedules to fetch.
17763
+ */
17764
+ where?: ScriptScheduleWhereInput
17765
+ /**
17766
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17767
+ *
17768
+ * Determine the order of ScriptSchedules to fetch.
17769
+ */
17770
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
17771
+ /**
17772
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17773
+ *
17774
+ * Sets the position for listing ScriptSchedules.
17775
+ */
17776
+ cursor?: ScriptScheduleWhereUniqueInput
17777
+ /**
17778
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17779
+ *
17780
+ * Take `±n` ScriptSchedules from the position of the cursor.
17781
+ */
17782
+ take?: number
17783
+ /**
17784
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17785
+ *
17786
+ * Skip the first `n` ScriptSchedules.
17787
+ */
17788
+ skip?: number
17789
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
17790
+ }
17791
+
17792
+ /**
17793
+ * ScriptSchedule create
17794
+ */
17795
+ export type ScriptScheduleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17796
+ /**
17797
+ * Select specific fields to fetch from the ScriptSchedule
17798
+ */
17799
+ select?: ScriptScheduleSelect<ExtArgs> | null
17800
+ /**
17801
+ * Omit specific fields from the ScriptSchedule
17802
+ */
17803
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17804
+ /**
17805
+ * The data needed to create a ScriptSchedule.
17806
+ */
17807
+ data: XOR<ScriptScheduleCreateInput, ScriptScheduleUncheckedCreateInput>
17808
+ }
17809
+
17810
+ /**
17811
+ * ScriptSchedule createMany
17812
+ */
17813
+ export type ScriptScheduleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17814
+ /**
17815
+ * The data used to create many ScriptSchedules.
17816
+ */
17817
+ data: ScriptScheduleCreateManyInput | ScriptScheduleCreateManyInput[]
17818
+ }
17819
+
17820
+ /**
17821
+ * ScriptSchedule update
17822
+ */
17823
+ export type ScriptScheduleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17824
+ /**
17825
+ * Select specific fields to fetch from the ScriptSchedule
17826
+ */
17827
+ select?: ScriptScheduleSelect<ExtArgs> | null
17828
+ /**
17829
+ * Omit specific fields from the ScriptSchedule
17830
+ */
17831
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17832
+ /**
17833
+ * The data needed to update a ScriptSchedule.
17834
+ */
17835
+ data: XOR<ScriptScheduleUpdateInput, ScriptScheduleUncheckedUpdateInput>
17836
+ /**
17837
+ * Choose, which ScriptSchedule to update.
17838
+ */
17839
+ where: ScriptScheduleWhereUniqueInput
17840
+ }
17841
+
17842
+ /**
17843
+ * ScriptSchedule updateMany
17844
+ */
17845
+ export type ScriptScheduleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17846
+ /**
17847
+ * The data used to update ScriptSchedules.
17848
+ */
17849
+ data: XOR<ScriptScheduleUpdateManyMutationInput, ScriptScheduleUncheckedUpdateManyInput>
17850
+ /**
17851
+ * Filter which ScriptSchedules to update
17852
+ */
17853
+ where?: ScriptScheduleWhereInput
17854
+ /**
17855
+ * Limit how many ScriptSchedules to update.
17856
+ */
17857
+ limit?: number
17858
+ }
17859
+
17860
+ /**
17861
+ * ScriptSchedule upsert
17862
+ */
17863
+ export type ScriptScheduleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17864
+ /**
17865
+ * Select specific fields to fetch from the ScriptSchedule
17866
+ */
17867
+ select?: ScriptScheduleSelect<ExtArgs> | null
17868
+ /**
17869
+ * Omit specific fields from the ScriptSchedule
17870
+ */
17871
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17872
+ /**
17873
+ * The filter to search for the ScriptSchedule to update in case it exists.
17874
+ */
17875
+ where: ScriptScheduleWhereUniqueInput
17876
+ /**
17877
+ * In case the ScriptSchedule found by the `where` argument doesn't exist, create a new ScriptSchedule with this data.
17878
+ */
17879
+ create: XOR<ScriptScheduleCreateInput, ScriptScheduleUncheckedCreateInput>
17880
+ /**
17881
+ * In case the ScriptSchedule was found with the provided `where` argument, update it with this data.
17882
+ */
17883
+ update: XOR<ScriptScheduleUpdateInput, ScriptScheduleUncheckedUpdateInput>
17884
+ }
17885
+
17886
+ /**
17887
+ * ScriptSchedule delete
17888
+ */
17889
+ export type ScriptScheduleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17890
+ /**
17891
+ * Select specific fields to fetch from the ScriptSchedule
17892
+ */
17893
+ select?: ScriptScheduleSelect<ExtArgs> | null
17894
+ /**
17895
+ * Omit specific fields from the ScriptSchedule
17896
+ */
17897
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17898
+ /**
17899
+ * Filter which ScriptSchedule to delete.
17900
+ */
17901
+ where: ScriptScheduleWhereUniqueInput
17902
+ }
17903
+
17904
+ /**
17905
+ * ScriptSchedule deleteMany
17906
+ */
17907
+ export type ScriptScheduleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17908
+ /**
17909
+ * Filter which ScriptSchedules to delete
17910
+ */
17911
+ where?: ScriptScheduleWhereInput
17912
+ /**
17913
+ * Limit how many ScriptSchedules to delete.
17914
+ */
17915
+ limit?: number
17916
+ }
17917
+
17918
+ /**
17919
+ * ScriptSchedule findRaw
17920
+ */
17921
+ export type ScriptScheduleFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17922
+ /**
17923
+ * 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}.
17924
+ */
17925
+ filter?: InputJsonValue
17926
+ /**
17927
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
17928
+ */
17929
+ options?: InputJsonValue
17930
+ }
17931
+
17932
+ /**
17933
+ * ScriptSchedule aggregateRaw
17934
+ */
17935
+ export type ScriptScheduleAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17936
+ /**
17937
+ * 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}.
17938
+ */
17939
+ pipeline?: InputJsonValue[]
17940
+ /**
17941
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
17942
+ */
17943
+ options?: InputJsonValue
17944
+ }
17945
+
17946
+ /**
17947
+ * ScriptSchedule without action
17948
+ */
17949
+ export type ScriptScheduleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17950
+ /**
17951
+ * Select specific fields to fetch from the ScriptSchedule
17952
+ */
17953
+ select?: ScriptScheduleSelect<ExtArgs> | null
17954
+ /**
17955
+ * Omit specific fields from the ScriptSchedule
17956
+ */
17957
+ omit?: ScriptScheduleOmit<ExtArgs> | null
17958
+ }
17959
+
17960
+
17961
+ /**
17962
+ * Enums
17963
+ */
17964
+
17965
+ export const UserScalarFieldEnum: {
17966
+ id: 'id',
17967
+ type: 'type',
17968
+ createdAt: 'createdAt',
17969
+ updatedAt: 'updatedAt',
17970
+ email: 'email',
17971
+ username: 'username',
17972
+ hashword: 'hashword',
17973
+ appUserId: 'appUserId',
17974
+ organizationId: 'organizationId',
17975
+ appOrgId: 'appOrgId',
17976
+ name: 'name'
17977
+ };
17978
+
17979
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
17980
+
17981
+
17982
+ export const TokenScalarFieldEnum: {
17983
+ id: 'id',
17984
+ token: 'token',
17985
+ created: 'created',
17986
+ expires: 'expires',
17987
+ userId: 'userId'
17988
+ };
17989
+
17990
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
17991
+
17992
+
17993
+ export const CredentialScalarFieldEnum: {
17994
+ id: 'id',
17995
+ userId: 'userId',
17996
+ authIsValid: 'authIsValid',
17997
+ externalId: 'externalId',
17998
+ data: 'data',
17999
+ createdAt: 'createdAt',
18000
+ updatedAt: 'updatedAt'
18001
+ };
18002
+
18003
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
18004
+
18005
+
18006
+ export const EntityScalarFieldEnum: {
18007
+ id: 'id',
18008
+ credentialId: 'credentialId',
18009
+ userId: 'userId',
18010
+ name: 'name',
18011
+ moduleName: 'moduleName',
18012
+ externalId: 'externalId',
18013
+ data: 'data',
18014
+ createdAt: 'createdAt',
18015
+ updatedAt: 'updatedAt',
18016
+ integrationIds: 'integrationIds',
18017
+ syncIds: 'syncIds'
18018
+ };
18019
+
18020
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
18021
+
18022
+
18023
+ export const IntegrationScalarFieldEnum: {
18024
+ id: 'id',
18025
+ userId: 'userId',
15842
18026
  status: 'status',
15843
18027
  config: 'config',
15844
18028
  version: 'version',
@@ -15945,6 +18129,39 @@ export namespace Prisma {
15945
18129
  export type WebsocketConnectionScalarFieldEnum = (typeof WebsocketConnectionScalarFieldEnum)[keyof typeof WebsocketConnectionScalarFieldEnum]
15946
18130
 
15947
18131
 
18132
+ export const AdminProcessScalarFieldEnum: {
18133
+ id: 'id',
18134
+ name: 'name',
18135
+ type: 'type',
18136
+ state: 'state',
18137
+ context: 'context',
18138
+ results: 'results',
18139
+ childProcesses: 'childProcesses',
18140
+ parentProcessId: 'parentProcessId',
18141
+ createdAt: 'createdAt',
18142
+ updatedAt: 'updatedAt'
18143
+ };
18144
+
18145
+ export type AdminProcessScalarFieldEnum = (typeof AdminProcessScalarFieldEnum)[keyof typeof AdminProcessScalarFieldEnum]
18146
+
18147
+
18148
+ export const ScriptScheduleScalarFieldEnum: {
18149
+ id: 'id',
18150
+ scriptName: 'scriptName',
18151
+ enabled: 'enabled',
18152
+ cronExpression: 'cronExpression',
18153
+ timezone: 'timezone',
18154
+ lastTriggeredAt: 'lastTriggeredAt',
18155
+ nextTriggerAt: 'nextTriggerAt',
18156
+ externalScheduleId: 'externalScheduleId',
18157
+ externalScheduleName: 'externalScheduleName',
18158
+ createdAt: 'createdAt',
18159
+ updatedAt: 'updatedAt'
18160
+ };
18161
+
18162
+ export type ScriptScheduleScalarFieldEnum = (typeof ScriptScheduleScalarFieldEnum)[keyof typeof ScriptScheduleScalarFieldEnum]
18163
+
18164
+
15948
18165
  export const SortOrder: {
15949
18166
  asc: 'asc',
15950
18167
  desc: 'desc'
@@ -16050,6 +18267,20 @@ export namespace Prisma {
16050
18267
 
16051
18268
 
16052
18269
 
18270
+ /**
18271
+ * Reference to a field of type 'AdminProcessState'
18272
+ */
18273
+ export type EnumAdminProcessStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AdminProcessState'>
18274
+
18275
+
18276
+
18277
+ /**
18278
+ * Reference to a field of type 'AdminProcessState[]'
18279
+ */
18280
+ export type ListEnumAdminProcessStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AdminProcessState[]'>
18281
+
18282
+
18283
+
16053
18284
  /**
16054
18285
  * Reference to a field of type 'Int'
16055
18286
  */
@@ -16967,6 +19198,165 @@ export namespace Prisma {
16967
19198
  connectionId?: StringNullableWithAggregatesFilter<"WebsocketConnection"> | string | null
16968
19199
  }
16969
19200
 
19201
+ export type AdminProcessWhereInput = {
19202
+ AND?: AdminProcessWhereInput | AdminProcessWhereInput[]
19203
+ OR?: AdminProcessWhereInput[]
19204
+ NOT?: AdminProcessWhereInput | AdminProcessWhereInput[]
19205
+ id?: StringFilter<"AdminProcess"> | string
19206
+ name?: StringFilter<"AdminProcess"> | string
19207
+ type?: StringFilter<"AdminProcess"> | string
19208
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
19209
+ context?: JsonFilter<"AdminProcess">
19210
+ results?: JsonFilter<"AdminProcess">
19211
+ childProcesses?: StringNullableListFilter<"AdminProcess">
19212
+ parentProcessId?: StringNullableFilter<"AdminProcess"> | string | null
19213
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
19214
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
19215
+ }
19216
+
19217
+ export type AdminProcessOrderByWithRelationInput = {
19218
+ id?: SortOrder
19219
+ name?: SortOrder
19220
+ type?: SortOrder
19221
+ state?: SortOrder
19222
+ context?: SortOrder
19223
+ results?: SortOrder
19224
+ childProcesses?: SortOrder
19225
+ parentProcessId?: SortOrder
19226
+ createdAt?: SortOrder
19227
+ updatedAt?: SortOrder
19228
+ }
19229
+
19230
+ export type AdminProcessWhereUniqueInput = Prisma.AtLeast<{
19231
+ id?: string
19232
+ AND?: AdminProcessWhereInput | AdminProcessWhereInput[]
19233
+ OR?: AdminProcessWhereInput[]
19234
+ NOT?: AdminProcessWhereInput | AdminProcessWhereInput[]
19235
+ name?: StringFilter<"AdminProcess"> | string
19236
+ type?: StringFilter<"AdminProcess"> | string
19237
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
19238
+ context?: JsonFilter<"AdminProcess">
19239
+ results?: JsonFilter<"AdminProcess">
19240
+ childProcesses?: StringNullableListFilter<"AdminProcess">
19241
+ parentProcessId?: StringNullableFilter<"AdminProcess"> | string | null
19242
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
19243
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
19244
+ }, "id">
19245
+
19246
+ export type AdminProcessOrderByWithAggregationInput = {
19247
+ id?: SortOrder
19248
+ name?: SortOrder
19249
+ type?: SortOrder
19250
+ state?: SortOrder
19251
+ context?: SortOrder
19252
+ results?: SortOrder
19253
+ childProcesses?: SortOrder
19254
+ parentProcessId?: SortOrder
19255
+ createdAt?: SortOrder
19256
+ updatedAt?: SortOrder
19257
+ _count?: AdminProcessCountOrderByAggregateInput
19258
+ _max?: AdminProcessMaxOrderByAggregateInput
19259
+ _min?: AdminProcessMinOrderByAggregateInput
19260
+ }
19261
+
19262
+ export type AdminProcessScalarWhereWithAggregatesInput = {
19263
+ AND?: AdminProcessScalarWhereWithAggregatesInput | AdminProcessScalarWhereWithAggregatesInput[]
19264
+ OR?: AdminProcessScalarWhereWithAggregatesInput[]
19265
+ NOT?: AdminProcessScalarWhereWithAggregatesInput | AdminProcessScalarWhereWithAggregatesInput[]
19266
+ id?: StringWithAggregatesFilter<"AdminProcess"> | string
19267
+ name?: StringWithAggregatesFilter<"AdminProcess"> | string
19268
+ type?: StringWithAggregatesFilter<"AdminProcess"> | string
19269
+ state?: EnumAdminProcessStateWithAggregatesFilter<"AdminProcess"> | $Enums.AdminProcessState
19270
+ context?: JsonWithAggregatesFilter<"AdminProcess">
19271
+ results?: JsonWithAggregatesFilter<"AdminProcess">
19272
+ childProcesses?: StringNullableListFilter<"AdminProcess">
19273
+ parentProcessId?: StringNullableWithAggregatesFilter<"AdminProcess"> | string | null
19274
+ createdAt?: DateTimeWithAggregatesFilter<"AdminProcess"> | Date | string
19275
+ updatedAt?: DateTimeWithAggregatesFilter<"AdminProcess"> | Date | string
19276
+ }
19277
+
19278
+ export type ScriptScheduleWhereInput = {
19279
+ AND?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
19280
+ OR?: ScriptScheduleWhereInput[]
19281
+ NOT?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
19282
+ id?: StringFilter<"ScriptSchedule"> | string
19283
+ scriptName?: StringFilter<"ScriptSchedule"> | string
19284
+ enabled?: BoolFilter<"ScriptSchedule"> | boolean
19285
+ cronExpression?: StringNullableFilter<"ScriptSchedule"> | string | null
19286
+ timezone?: StringFilter<"ScriptSchedule"> | string
19287
+ lastTriggeredAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
19288
+ nextTriggerAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
19289
+ externalScheduleId?: StringNullableFilter<"ScriptSchedule"> | string | null
19290
+ externalScheduleName?: StringNullableFilter<"ScriptSchedule"> | string | null
19291
+ createdAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
19292
+ updatedAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
19293
+ }
19294
+
19295
+ export type ScriptScheduleOrderByWithRelationInput = {
19296
+ id?: SortOrder
19297
+ scriptName?: SortOrder
19298
+ enabled?: SortOrder
19299
+ cronExpression?: SortOrder
19300
+ timezone?: SortOrder
19301
+ lastTriggeredAt?: SortOrder
19302
+ nextTriggerAt?: SortOrder
19303
+ externalScheduleId?: SortOrder
19304
+ externalScheduleName?: SortOrder
19305
+ createdAt?: SortOrder
19306
+ updatedAt?: SortOrder
19307
+ }
19308
+
19309
+ export type ScriptScheduleWhereUniqueInput = Prisma.AtLeast<{
19310
+ id?: string
19311
+ scriptName?: string
19312
+ AND?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
19313
+ OR?: ScriptScheduleWhereInput[]
19314
+ NOT?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
19315
+ enabled?: BoolFilter<"ScriptSchedule"> | boolean
19316
+ cronExpression?: StringNullableFilter<"ScriptSchedule"> | string | null
19317
+ timezone?: StringFilter<"ScriptSchedule"> | string
19318
+ lastTriggeredAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
19319
+ nextTriggerAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
19320
+ externalScheduleId?: StringNullableFilter<"ScriptSchedule"> | string | null
19321
+ externalScheduleName?: StringNullableFilter<"ScriptSchedule"> | string | null
19322
+ createdAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
19323
+ updatedAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
19324
+ }, "id" | "scriptName">
19325
+
19326
+ export type ScriptScheduleOrderByWithAggregationInput = {
19327
+ id?: SortOrder
19328
+ scriptName?: SortOrder
19329
+ enabled?: SortOrder
19330
+ cronExpression?: SortOrder
19331
+ timezone?: SortOrder
19332
+ lastTriggeredAt?: SortOrder
19333
+ nextTriggerAt?: SortOrder
19334
+ externalScheduleId?: SortOrder
19335
+ externalScheduleName?: SortOrder
19336
+ createdAt?: SortOrder
19337
+ updatedAt?: SortOrder
19338
+ _count?: ScriptScheduleCountOrderByAggregateInput
19339
+ _max?: ScriptScheduleMaxOrderByAggregateInput
19340
+ _min?: ScriptScheduleMinOrderByAggregateInput
19341
+ }
19342
+
19343
+ export type ScriptScheduleScalarWhereWithAggregatesInput = {
19344
+ AND?: ScriptScheduleScalarWhereWithAggregatesInput | ScriptScheduleScalarWhereWithAggregatesInput[]
19345
+ OR?: ScriptScheduleScalarWhereWithAggregatesInput[]
19346
+ NOT?: ScriptScheduleScalarWhereWithAggregatesInput | ScriptScheduleScalarWhereWithAggregatesInput[]
19347
+ id?: StringWithAggregatesFilter<"ScriptSchedule"> | string
19348
+ scriptName?: StringWithAggregatesFilter<"ScriptSchedule"> | string
19349
+ enabled?: BoolWithAggregatesFilter<"ScriptSchedule"> | boolean
19350
+ cronExpression?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
19351
+ timezone?: StringWithAggregatesFilter<"ScriptSchedule"> | string
19352
+ lastTriggeredAt?: DateTimeNullableWithAggregatesFilter<"ScriptSchedule"> | Date | string | null
19353
+ nextTriggerAt?: DateTimeNullableWithAggregatesFilter<"ScriptSchedule"> | Date | string | null
19354
+ externalScheduleId?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
19355
+ externalScheduleName?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
19356
+ createdAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
19357
+ updatedAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
19358
+ }
19359
+
16970
19360
  export type UserCreateInput = {
16971
19361
  id?: string
16972
19362
  type: $Enums.UserType
@@ -17860,6 +20250,187 @@ export namespace Prisma {
17860
20250
  connectionId?: NullableStringFieldUpdateOperationsInput | string | null
17861
20251
  }
17862
20252
 
20253
+ export type AdminProcessCreateInput = {
20254
+ id?: string
20255
+ name: string
20256
+ type: string
20257
+ state?: $Enums.AdminProcessState
20258
+ context?: InputJsonValue
20259
+ results?: InputJsonValue
20260
+ childProcesses?: AdminProcessCreatechildProcessesInput | string[]
20261
+ parentProcessId?: string | null
20262
+ createdAt?: Date | string
20263
+ updatedAt?: Date | string
20264
+ }
20265
+
20266
+ export type AdminProcessUncheckedCreateInput = {
20267
+ id?: string
20268
+ name: string
20269
+ type: string
20270
+ state?: $Enums.AdminProcessState
20271
+ context?: InputJsonValue
20272
+ results?: InputJsonValue
20273
+ childProcesses?: AdminProcessCreatechildProcessesInput | string[]
20274
+ parentProcessId?: string | null
20275
+ createdAt?: Date | string
20276
+ updatedAt?: Date | string
20277
+ }
20278
+
20279
+ export type AdminProcessUpdateInput = {
20280
+ name?: StringFieldUpdateOperationsInput | string
20281
+ type?: StringFieldUpdateOperationsInput | string
20282
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
20283
+ context?: InputJsonValue | InputJsonValue
20284
+ results?: InputJsonValue | InputJsonValue
20285
+ childProcesses?: AdminProcessUpdatechildProcessesInput | string[]
20286
+ parentProcessId?: NullableStringFieldUpdateOperationsInput | string | null
20287
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20288
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
20289
+ }
20290
+
20291
+ export type AdminProcessUncheckedUpdateInput = {
20292
+ name?: StringFieldUpdateOperationsInput | string
20293
+ type?: StringFieldUpdateOperationsInput | string
20294
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
20295
+ context?: InputJsonValue | InputJsonValue
20296
+ results?: InputJsonValue | InputJsonValue
20297
+ childProcesses?: AdminProcessUpdatechildProcessesInput | string[]
20298
+ parentProcessId?: NullableStringFieldUpdateOperationsInput | string | null
20299
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20300
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
20301
+ }
20302
+
20303
+ export type AdminProcessCreateManyInput = {
20304
+ id?: string
20305
+ name: string
20306
+ type: string
20307
+ state?: $Enums.AdminProcessState
20308
+ context?: InputJsonValue
20309
+ results?: InputJsonValue
20310
+ childProcesses?: AdminProcessCreatechildProcessesInput | string[]
20311
+ parentProcessId?: string | null
20312
+ createdAt?: Date | string
20313
+ updatedAt?: Date | string
20314
+ }
20315
+
20316
+ export type AdminProcessUpdateManyMutationInput = {
20317
+ name?: StringFieldUpdateOperationsInput | string
20318
+ type?: StringFieldUpdateOperationsInput | string
20319
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
20320
+ context?: InputJsonValue | InputJsonValue
20321
+ results?: InputJsonValue | InputJsonValue
20322
+ childProcesses?: AdminProcessUpdatechildProcessesInput | string[]
20323
+ parentProcessId?: NullableStringFieldUpdateOperationsInput | string | null
20324
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20325
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
20326
+ }
20327
+
20328
+ export type AdminProcessUncheckedUpdateManyInput = {
20329
+ name?: StringFieldUpdateOperationsInput | string
20330
+ type?: StringFieldUpdateOperationsInput | string
20331
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
20332
+ context?: InputJsonValue | InputJsonValue
20333
+ results?: InputJsonValue | InputJsonValue
20334
+ childProcesses?: AdminProcessUpdatechildProcessesInput | string[]
20335
+ parentProcessId?: NullableStringFieldUpdateOperationsInput | string | null
20336
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20337
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
20338
+ }
20339
+
20340
+ export type ScriptScheduleCreateInput = {
20341
+ id?: string
20342
+ scriptName: string
20343
+ enabled?: boolean
20344
+ cronExpression?: string | null
20345
+ timezone?: string
20346
+ lastTriggeredAt?: Date | string | null
20347
+ nextTriggerAt?: Date | string | null
20348
+ externalScheduleId?: string | null
20349
+ externalScheduleName?: string | null
20350
+ createdAt?: Date | string
20351
+ updatedAt?: Date | string
20352
+ }
20353
+
20354
+ export type ScriptScheduleUncheckedCreateInput = {
20355
+ id?: string
20356
+ scriptName: string
20357
+ enabled?: boolean
20358
+ cronExpression?: string | null
20359
+ timezone?: string
20360
+ lastTriggeredAt?: Date | string | null
20361
+ nextTriggerAt?: Date | string | null
20362
+ externalScheduleId?: string | null
20363
+ externalScheduleName?: string | null
20364
+ createdAt?: Date | string
20365
+ updatedAt?: Date | string
20366
+ }
20367
+
20368
+ export type ScriptScheduleUpdateInput = {
20369
+ scriptName?: StringFieldUpdateOperationsInput | string
20370
+ enabled?: BoolFieldUpdateOperationsInput | boolean
20371
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
20372
+ timezone?: StringFieldUpdateOperationsInput | string
20373
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20374
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20375
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
20376
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
20377
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20378
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
20379
+ }
20380
+
20381
+ export type ScriptScheduleUncheckedUpdateInput = {
20382
+ scriptName?: StringFieldUpdateOperationsInput | string
20383
+ enabled?: BoolFieldUpdateOperationsInput | boolean
20384
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
20385
+ timezone?: StringFieldUpdateOperationsInput | string
20386
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20387
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20388
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
20389
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
20390
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20391
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
20392
+ }
20393
+
20394
+ export type ScriptScheduleCreateManyInput = {
20395
+ id?: string
20396
+ scriptName: string
20397
+ enabled?: boolean
20398
+ cronExpression?: string | null
20399
+ timezone?: string
20400
+ lastTriggeredAt?: Date | string | null
20401
+ nextTriggerAt?: Date | string | null
20402
+ externalScheduleId?: string | null
20403
+ externalScheduleName?: string | null
20404
+ createdAt?: Date | string
20405
+ updatedAt?: Date | string
20406
+ }
20407
+
20408
+ export type ScriptScheduleUpdateManyMutationInput = {
20409
+ scriptName?: StringFieldUpdateOperationsInput | string
20410
+ enabled?: BoolFieldUpdateOperationsInput | boolean
20411
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
20412
+ timezone?: StringFieldUpdateOperationsInput | string
20413
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20414
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20415
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
20416
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
20417
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20418
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
20419
+ }
20420
+
20421
+ export type ScriptScheduleUncheckedUpdateManyInput = {
20422
+ scriptName?: StringFieldUpdateOperationsInput | string
20423
+ enabled?: BoolFieldUpdateOperationsInput | boolean
20424
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
20425
+ timezone?: StringFieldUpdateOperationsInput | string
20426
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20427
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20428
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
20429
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
20430
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20431
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
20432
+ }
20433
+
17863
20434
  export type StringFilter<$PrismaModel = never> = {
17864
20435
  equals?: string | StringFieldRefInput<$PrismaModel>
17865
20436
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -18614,6 +21185,111 @@ export namespace Prisma {
18614
21185
  connectionId?: SortOrder
18615
21186
  }
18616
21187
 
21188
+ export type EnumAdminProcessStateFilter<$PrismaModel = never> = {
21189
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
21190
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
21191
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
21192
+ not?: NestedEnumAdminProcessStateFilter<$PrismaModel> | $Enums.AdminProcessState
21193
+ }
21194
+
21195
+ export type AdminProcessCountOrderByAggregateInput = {
21196
+ id?: SortOrder
21197
+ name?: SortOrder
21198
+ type?: SortOrder
21199
+ state?: SortOrder
21200
+ context?: SortOrder
21201
+ results?: SortOrder
21202
+ childProcesses?: SortOrder
21203
+ parentProcessId?: SortOrder
21204
+ createdAt?: SortOrder
21205
+ updatedAt?: SortOrder
21206
+ }
21207
+
21208
+ export type AdminProcessMaxOrderByAggregateInput = {
21209
+ id?: SortOrder
21210
+ name?: SortOrder
21211
+ type?: SortOrder
21212
+ state?: SortOrder
21213
+ parentProcessId?: SortOrder
21214
+ createdAt?: SortOrder
21215
+ updatedAt?: SortOrder
21216
+ }
21217
+
21218
+ export type AdminProcessMinOrderByAggregateInput = {
21219
+ id?: SortOrder
21220
+ name?: SortOrder
21221
+ type?: SortOrder
21222
+ state?: SortOrder
21223
+ parentProcessId?: SortOrder
21224
+ createdAt?: SortOrder
21225
+ updatedAt?: SortOrder
21226
+ }
21227
+
21228
+ export type EnumAdminProcessStateWithAggregatesFilter<$PrismaModel = never> = {
21229
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
21230
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
21231
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
21232
+ not?: NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel> | $Enums.AdminProcessState
21233
+ _count?: NestedIntFilter<$PrismaModel>
21234
+ _min?: NestedEnumAdminProcessStateFilter<$PrismaModel>
21235
+ _max?: NestedEnumAdminProcessStateFilter<$PrismaModel>
21236
+ }
21237
+
21238
+ export type BoolFilter<$PrismaModel = never> = {
21239
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
21240
+ not?: NestedBoolFilter<$PrismaModel> | boolean
21241
+ }
21242
+
21243
+ export type ScriptScheduleCountOrderByAggregateInput = {
21244
+ id?: SortOrder
21245
+ scriptName?: SortOrder
21246
+ enabled?: SortOrder
21247
+ cronExpression?: SortOrder
21248
+ timezone?: SortOrder
21249
+ lastTriggeredAt?: SortOrder
21250
+ nextTriggerAt?: SortOrder
21251
+ externalScheduleId?: SortOrder
21252
+ externalScheduleName?: SortOrder
21253
+ createdAt?: SortOrder
21254
+ updatedAt?: SortOrder
21255
+ }
21256
+
21257
+ export type ScriptScheduleMaxOrderByAggregateInput = {
21258
+ id?: SortOrder
21259
+ scriptName?: SortOrder
21260
+ enabled?: SortOrder
21261
+ cronExpression?: SortOrder
21262
+ timezone?: SortOrder
21263
+ lastTriggeredAt?: SortOrder
21264
+ nextTriggerAt?: SortOrder
21265
+ externalScheduleId?: SortOrder
21266
+ externalScheduleName?: SortOrder
21267
+ createdAt?: SortOrder
21268
+ updatedAt?: SortOrder
21269
+ }
21270
+
21271
+ export type ScriptScheduleMinOrderByAggregateInput = {
21272
+ id?: SortOrder
21273
+ scriptName?: SortOrder
21274
+ enabled?: SortOrder
21275
+ cronExpression?: SortOrder
21276
+ timezone?: SortOrder
21277
+ lastTriggeredAt?: SortOrder
21278
+ nextTriggerAt?: SortOrder
21279
+ externalScheduleId?: SortOrder
21280
+ externalScheduleName?: SortOrder
21281
+ createdAt?: SortOrder
21282
+ updatedAt?: SortOrder
21283
+ }
21284
+
21285
+ export type BoolWithAggregatesFilter<$PrismaModel = never> = {
21286
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
21287
+ not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
21288
+ _count?: NestedIntFilter<$PrismaModel>
21289
+ _min?: NestedBoolFilter<$PrismaModel>
21290
+ _max?: NestedBoolFilter<$PrismaModel>
21291
+ }
21292
+
18617
21293
  export type UserCreateNestedOneWithoutMembersInput = {
18618
21294
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
18619
21295
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -19700,6 +22376,23 @@ export namespace Prisma {
19700
22376
  update?: XOR<XOR<EntityUpdateToOneWithWhereWithoutAssociationObjectsInput, EntityUpdateWithoutAssociationObjectsInput>, EntityUncheckedUpdateWithoutAssociationObjectsInput>
19701
22377
  }
19702
22378
 
22379
+ export type AdminProcessCreatechildProcessesInput = {
22380
+ set: string[]
22381
+ }
22382
+
22383
+ export type EnumAdminProcessStateFieldUpdateOperationsInput = {
22384
+ set?: $Enums.AdminProcessState
22385
+ }
22386
+
22387
+ export type AdminProcessUpdatechildProcessesInput = {
22388
+ set?: string[]
22389
+ push?: string | string[]
22390
+ }
22391
+
22392
+ export type BoolFieldUpdateOperationsInput = {
22393
+ set?: boolean
22394
+ }
22395
+
19703
22396
  export type NestedStringFilter<$PrismaModel = never> = {
19704
22397
  equals?: string | StringFieldRefInput<$PrismaModel>
19705
22398
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -19928,6 +22621,36 @@ export namespace Prisma {
19928
22621
  _max?: NestedEnumAssociationTypeFilter<$PrismaModel>
19929
22622
  }
19930
22623
 
22624
+ export type NestedEnumAdminProcessStateFilter<$PrismaModel = never> = {
22625
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
22626
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
22627
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
22628
+ not?: NestedEnumAdminProcessStateFilter<$PrismaModel> | $Enums.AdminProcessState
22629
+ }
22630
+
22631
+ export type NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel = never> = {
22632
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
22633
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
22634
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
22635
+ not?: NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel> | $Enums.AdminProcessState
22636
+ _count?: NestedIntFilter<$PrismaModel>
22637
+ _min?: NestedEnumAdminProcessStateFilter<$PrismaModel>
22638
+ _max?: NestedEnumAdminProcessStateFilter<$PrismaModel>
22639
+ }
22640
+
22641
+ export type NestedBoolFilter<$PrismaModel = never> = {
22642
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
22643
+ not?: NestedBoolFilter<$PrismaModel> | boolean
22644
+ }
22645
+
22646
+ export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
22647
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
22648
+ not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
22649
+ _count?: NestedIntFilter<$PrismaModel>
22650
+ _min?: NestedBoolFilter<$PrismaModel>
22651
+ _max?: NestedBoolFilter<$PrismaModel>
22652
+ }
22653
+
19931
22654
  export type UserCreateWithoutMembersInput = {
19932
22655
  id?: string
19933
22656
  type: $Enums.UserType