@friggframework/core 2.0.0--canary.548.c8ae0ca.0 → 2.0.0--canary.545.c40eca4.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 (237) hide show
  1. package/CHANGELOG.md +66 -67
  2. package/CLAUDE.md +148 -124
  3. package/README.md +165 -130
  4. package/admin-scripts/index.js +52 -0
  5. package/admin-scripts/repositories/admin-api-key-repository-documentdb.js +21 -0
  6. package/admin-scripts/repositories/admin-api-key-repository-factory.js +51 -0
  7. package/admin-scripts/repositories/admin-api-key-repository-interface.js +121 -0
  8. package/admin-scripts/repositories/admin-api-key-repository-mongo.js +155 -0
  9. package/admin-scripts/repositories/admin-api-key-repository-postgres.js +189 -0
  10. package/admin-scripts/repositories/admin-process-repository-documentdb.js +21 -0
  11. package/admin-scripts/repositories/admin-process-repository-factory.js +49 -0
  12. package/admin-scripts/repositories/admin-process-repository-interface.js +150 -0
  13. package/admin-scripts/repositories/admin-process-repository-mongo.js +213 -0
  14. package/admin-scripts/repositories/admin-process-repository-postgres.js +251 -0
  15. package/admin-scripts/repositories/script-execution-repository-documentdb.js +21 -0
  16. package/admin-scripts/repositories/script-execution-repository-factory.js +51 -0
  17. package/admin-scripts/repositories/script-execution-repository-interface.js +193 -0
  18. package/admin-scripts/repositories/script-execution-repository-mongo.js +278 -0
  19. package/admin-scripts/repositories/script-execution-repository-postgres.js +320 -0
  20. package/admin-scripts/repositories/script-schedule-repository-documentdb.js +21 -0
  21. package/admin-scripts/repositories/script-schedule-repository-factory.js +49 -0
  22. package/admin-scripts/repositories/script-schedule-repository-interface.js +108 -0
  23. package/admin-scripts/repositories/script-schedule-repository-mongo.js +179 -0
  24. package/admin-scripts/repositories/script-schedule-repository-postgres.js +210 -0
  25. package/application/commands/admin-script-commands.js +348 -0
  26. package/application/commands/integration-commands.js +12 -6
  27. package/application/index.js +5 -3
  28. package/assertions/get.js +17 -7
  29. package/associations/association.js +59 -57
  30. package/core/CLAUDE.md +222 -156
  31. package/core/Worker.js +33 -12
  32. package/credential/credential-router.js +262 -0
  33. package/credential/repositories/credential-repository-documentdb.js +71 -1
  34. package/credential/repositories/credential-repository-factory.js +4 -6
  35. package/credential/repositories/credential-repository-interface.js +8 -2
  36. package/credential/repositories/credential-repository-mongo.js +45 -4
  37. package/credential/repositories/credential-repository-postgres.js +44 -3
  38. package/credential/repositories/credential-repository.js +3 -1
  39. package/credential/use-cases/delete-credential-for-user.js +50 -0
  40. package/credential/use-cases/get-credential-for-user.js +21 -3
  41. package/credential/use-cases/list-credentials-for-user.js +31 -0
  42. package/credential/use-cases/reauthorize-credential.js +103 -0
  43. package/credential/use-cases/update-authentication-status.js +5 -2
  44. package/database/MONGODB_TRANSACTION_FIX.md +72 -52
  45. package/database/config.js +13 -59
  46. package/database/documentdb-encryption-service.js +29 -13
  47. package/database/documentdb-utils.js +21 -12
  48. package/database/encryption/README.md +53 -36
  49. package/database/encryption/encryption-schema-registry.js +29 -23
  50. package/database/encryption/field-encryption-service.js +15 -4
  51. package/database/encryption/logger.js +3 -2
  52. package/database/encryption/prisma-encryption-extension.js +5 -8
  53. package/database/prisma.js +22 -14
  54. package/database/repositories/health-check-repository-factory.js +7 -5
  55. package/database/repositories/health-check-repository-interface.js +15 -5
  56. package/database/repositories/health-check-repository-postgres.js +1 -1
  57. package/database/use-cases/check-database-health-use-case.js +3 -2
  58. package/database/use-cases/check-database-state-use-case.js +8 -7
  59. package/database/use-cases/get-database-state-via-worker-use-case.js +15 -12
  60. package/database/use-cases/get-migration-status-use-case.js +4 -2
  61. package/database/use-cases/run-database-migration-use-case.js +41 -9
  62. package/database/use-cases/test-encryption-use-case.js +4 -5
  63. package/database/use-cases/trigger-database-migration-use-case.js +9 -8
  64. package/database/utils/mongodb-collection-utils.js +11 -3
  65. package/database/utils/mongodb-schema-init.js +10 -4
  66. package/database/utils/prisma-runner.js +144 -74
  67. package/database/utils/prisma-schema-parser.js +2 -2
  68. package/docs/PROCESS_MANAGEMENT_QUEUE_SPEC.md +135 -80
  69. package/encrypt/Cryptor.js +54 -49
  70. package/encrypt/aes-encryption-key-provider.js +82 -0
  71. package/encrypt/encryption-key-provider-interface.js +50 -0
  72. package/errors/fetch-error.js +1 -1
  73. package/generated/prisma-mongodb/edge.js +59 -4
  74. package/generated/prisma-mongodb/index-browser.js +49 -1
  75. package/generated/prisma-mongodb/index.d.ts +4023 -61
  76. package/generated/prisma-mongodb/index.js +59 -4
  77. package/generated/prisma-mongodb/package.json +1 -1
  78. package/generated/prisma-mongodb/schema.prisma +87 -0
  79. package/generated/prisma-mongodb/wasm.js +59 -4
  80. package/generated/prisma-postgresql/edge.js +58 -4
  81. package/generated/prisma-postgresql/index-browser.js +48 -1
  82. package/generated/prisma-postgresql/index.d.ts +4738 -54
  83. package/generated/prisma-postgresql/index.js +58 -4
  84. package/generated/prisma-postgresql/package.json +1 -1
  85. package/generated/prisma-postgresql/schema.prisma +85 -0
  86. package/generated/prisma-postgresql/wasm.js +58 -4
  87. package/handlers/WEBHOOKS.md +104 -81
  88. package/handlers/app-definition-loader.js +53 -10
  89. package/handlers/app-handler-helpers.js +14 -3
  90. package/handlers/backend-utils.js +0 -1
  91. package/handlers/database-migration-handler.js +64 -45
  92. package/handlers/middleware/admin-auth.js +53 -0
  93. package/handlers/routers/HEALTHCHECK.md +170 -135
  94. package/handlers/routers/admin.js +474 -0
  95. package/handlers/routers/auth.js +51 -9
  96. package/handlers/routers/db-migration.handler.js +2 -3
  97. package/handlers/routers/db-migration.js +102 -66
  98. package/handlers/routers/docs.js +180 -0
  99. package/handlers/routers/health.js +84 -283
  100. package/handlers/routers/integration-defined-routers.js +44 -33
  101. package/handlers/routers/integration-webhook-routers.js +73 -52
  102. package/handlers/routers/middleware/loadUser.js +39 -0
  103. package/handlers/routers/middleware/requireAdmin.js +43 -0
  104. package/handlers/routers/middleware/requireLoggedInUser.js +19 -0
  105. package/handlers/routers/user.js +30 -14
  106. package/handlers/routers/websocket.js +18 -4
  107. package/handlers/use-cases/check-integrations-health-use-case.js +13 -6
  108. package/handlers/workers/db-migration.js +74 -35
  109. package/handlers/workers/integration-defined-workers.js +31 -20
  110. package/index.js +50 -16
  111. package/infrastructure/scheduler/index.js +15 -11
  112. package/infrastructure/scheduler/netlify-scheduler-adapter.js +185 -0
  113. package/infrastructure/scheduler/scheduler-service-factory.js +38 -31
  114. package/integrations/WEBHOOK-QUICKSTART.md +21 -14
  115. package/integrations/index.js +4 -0
  116. package/integrations/integration-base.js +9 -6
  117. package/integrations/integration-router.js +1828 -157
  118. package/integrations/options.js +47 -20
  119. package/integrations/repositories/integration-mapping-repository-factory.js +4 -8
  120. package/integrations/repositories/integration-repository-documentdb.js +53 -24
  121. package/integrations/repositories/integration-repository-factory.js +6 -6
  122. package/integrations/repositories/integration-repository-interface.js +27 -9
  123. package/integrations/repositories/integration-repository-postgres.js +3 -3
  124. package/integrations/repositories/process-repository-factory.js +4 -7
  125. package/integrations/repositories/process-repository-interface.js +9 -5
  126. package/integrations/repositories/process-repository-mongo.js +7 -3
  127. package/integrations/repositories/process-repository-postgres.js +2 -2
  128. package/integrations/tests/doubles/config-capturing-integration.js +9 -8
  129. package/integrations/tests/doubles/dummy-integration-class.js +81 -8
  130. package/integrations/tests/doubles/test-integration-repository.js +51 -11
  131. package/integrations/use-cases/create-integration.js +36 -32
  132. package/integrations/use-cases/create-process.js +20 -9
  133. package/integrations/use-cases/delete-integration-for-user.js +5 -4
  134. package/integrations/use-cases/execute-proxy-request.js +564 -0
  135. package/integrations/use-cases/get-integration-for-user.js +25 -10
  136. package/integrations/use-cases/get-integration-instance-by-definition.js +13 -7
  137. package/integrations/use-cases/get-integrations-for-user.js +4 -1
  138. package/integrations/use-cases/get-possible-integrations.js +1 -1
  139. package/integrations/use-cases/get-process.js +5 -6
  140. package/integrations/use-cases/index.js +3 -1
  141. package/integrations/use-cases/load-integration-context.js +1 -5
  142. package/integrations/use-cases/update-process-state.js +10 -8
  143. package/integrations/utils/map-integration-dto.js +9 -3
  144. package/jest-setup.js +1 -1
  145. package/jest-teardown.js +1 -1
  146. package/lambda/TimeoutCatcher.js +32 -30
  147. package/lambda/index.js +1 -1
  148. package/logs/index.js +3 -3
  149. package/modules/domain/entities/AuthorizationSession.js +131 -0
  150. package/modules/domain/entities/index.js +10 -0
  151. package/modules/module.js +4 -9
  152. package/modules/repositories/authorization-session-repository-factory.js +53 -0
  153. package/modules/repositories/authorization-session-repository-interface.js +75 -0
  154. package/modules/repositories/authorization-session-repository-mongo.js +169 -0
  155. package/modules/repositories/authorization-session-repository-postgres.js +170 -0
  156. package/modules/repositories/module-repository-documentdb.js +89 -41
  157. package/modules/repositories/module-repository-factory.js +4 -6
  158. package/modules/repositories/module-repository-interface.js +13 -0
  159. package/modules/repositories/module-repository-mongo.js +40 -5
  160. package/modules/repositories/module-repository-postgres.js +42 -5
  161. package/modules/repositories/module-repository.js +28 -0
  162. package/modules/requester/api-key.js +0 -2
  163. package/modules/requester/basic.js +0 -1
  164. package/modules/requester/oauth-2.js +3 -14
  165. package/modules/test/mock-api/definition.js +15 -10
  166. package/modules/test/mock-api/mocks/hubspot.js +36 -36
  167. package/modules/tests/doubles/test-module-factory.js +10 -4
  168. package/modules/tests/doubles/test-module-repository.js +1 -1
  169. package/modules/use-cases/delete-module-entity.js +23 -0
  170. package/modules/use-cases/get-authorization-requirements.js +110 -0
  171. package/modules/use-cases/get-entities-for-user.js +1 -1
  172. package/modules/use-cases/get-entity-options-by-id.js +8 -6
  173. package/modules/use-cases/get-module-entity-by-id.js +16 -0
  174. package/modules/use-cases/get-module.js +12 -9
  175. package/modules/use-cases/process-authorization-callback.js +12 -6
  176. package/modules/use-cases/process-authorization-step.js +160 -0
  177. package/modules/use-cases/refresh-entity-options.js +8 -6
  178. package/modules/use-cases/start-authorization-session.js +86 -0
  179. package/modules/use-cases/test-module-auth.js +8 -6
  180. package/modules/use-cases/update-module-entity.js +27 -0
  181. package/modules/utils/map-module-dto.js +2 -2
  182. package/openapi/openapi-spec-generator.js +370 -0
  183. package/openapi/openapi-v1.yaml +1360 -0
  184. package/openapi/openapi-v2.yaml +1535 -0
  185. package/package.json +7 -9
  186. package/prisma-mongodb/schema.prisma +87 -0
  187. package/prisma-postgresql/migrations/20260222000000_add_admin_process_and_script_schedule/migration.sql +55 -0
  188. package/prisma-postgresql/schema.prisma +85 -0
  189. package/providers/index.js +13 -0
  190. package/providers/resolve-provider.js +93 -0
  191. package/queues/index.js +19 -0
  192. package/queues/providers/index.js +7 -0
  193. package/queues/providers/netlify-background-provider.js +76 -0
  194. package/queues/providers/qstash-queue-provider.js +122 -0
  195. package/queues/queue-client-interface.js +55 -0
  196. package/queues/queue-provider-factory.js +93 -0
  197. package/queues/queue-provider.js +46 -0
  198. package/queues/queuer-util.js +33 -25
  199. package/syncs/repositories/sync-repository-documentdb.js +39 -19
  200. package/syncs/repositories/sync-repository-factory.js +4 -4
  201. package/syncs/repositories/sync-repository-interface.js +6 -2
  202. package/syncs/repositories/sync-repository-postgres.js +19 -13
  203. package/syncs/sync.js +104 -100
  204. package/token/repositories/token-repository-factory.js +4 -6
  205. package/types/assertions/index.d.ts +72 -72
  206. package/types/core/index.d.ts +98 -53
  207. package/types/errors/index.d.ts +61 -54
  208. package/types/eslint-config/index.d.ts +40 -40
  209. package/types/lambda/index.d.ts +26 -26
  210. package/types/logs/index.d.ts +4 -4
  211. package/types/prettier-config/index.d.ts +5 -5
  212. package/types/test-environment/index.d.ts +14 -14
  213. package/types/tsconfig.json +95 -93
  214. package/user/repositories/user-repository-factory.js +4 -4
  215. package/user/tests/doubles/test-user-repository.js +5 -2
  216. package/user/use-cases/authenticate-user.js +2 -4
  217. package/user/use-cases/authenticate-with-shared-secret.js +1 -1
  218. package/user/use-cases/create-individual-user.js +8 -7
  219. package/user/use-cases/create-organization-user.js +1 -1
  220. package/user/use-cases/create-token-for-user-id.js +1 -1
  221. package/user/use-cases/delete-user.js +47 -0
  222. package/user/use-cases/get-user-from-adopter-jwt.js +0 -2
  223. package/user/use-cases/get-user-from-bearer-token.js +7 -3
  224. package/user/use-cases/get-user-from-x-frigg-headers.js +14 -11
  225. package/user/use-cases/login-user.js +8 -8
  226. package/user/user.js +18 -4
  227. package/utils/backend-path.js +2 -2
  228. package/utils/index.js +4 -1
  229. package/websocket/repositories/websocket-connection-repository-documentdb.js +46 -21
  230. package/websocket/repositories/websocket-connection-repository-factory.js +4 -8
  231. package/websocket/repositories/websocket-connection-repository-mongo.js +26 -16
  232. package/websocket/repositories/websocket-connection-repository-postgres.js +26 -15
  233. package/websocket/repositories/websocket-connection-repository.js +26 -20
  234. package/websocket/websocket-message-sender-interface.js +38 -0
  235. package/database/adapters/lambda-invoker.js +0 -97
  236. package/database/repositories/migration-status-repository-s3.js +0 -137
  237. package/infrastructure/scheduler/eventbridge-scheduler-adapter.js +0 -184
@@ -85,6 +85,24 @@ 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>
99
+ /**
100
+ * Model ScheduledJob
101
+ * One-time scheduled jobs for poll-and-dispatch scheduling pattern.
102
+ * Used by providers without native one-time scheduling APIs (e.g., Netlify).
103
+ * A cron function queries for due jobs and dispatches them to a queue.
104
+ */
105
+ export type ScheduledJob = $Result.DefaultSelection<Prisma.$ScheduledJobPayload>
88
106
 
89
107
  /**
90
108
  * Enums
@@ -117,6 +135,26 @@ export const AssociationType: {
117
135
 
118
136
  export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]
119
137
 
138
+
139
+ export const AdminProcessState: {
140
+ PENDING: 'PENDING',
141
+ RUNNING: 'RUNNING',
142
+ COMPLETED: 'COMPLETED',
143
+ FAILED: 'FAILED'
144
+ };
145
+
146
+ export type AdminProcessState = (typeof AdminProcessState)[keyof typeof AdminProcessState]
147
+
148
+
149
+ export const AdminTrigger: {
150
+ MANUAL: 'MANUAL',
151
+ SCHEDULED: 'SCHEDULED',
152
+ QUEUE: 'QUEUE',
153
+ WEBHOOK: 'WEBHOOK'
154
+ };
155
+
156
+ export type AdminTrigger = (typeof AdminTrigger)[keyof typeof AdminTrigger]
157
+
120
158
  }
121
159
 
122
160
  export type UserType = $Enums.UserType
@@ -131,6 +169,14 @@ export type AssociationType = $Enums.AssociationType
131
169
 
132
170
  export const AssociationType: typeof $Enums.AssociationType
133
171
 
172
+ export type AdminProcessState = $Enums.AdminProcessState
173
+
174
+ export const AdminProcessState: typeof $Enums.AdminProcessState
175
+
176
+ export type AdminTrigger = $Enums.AdminTrigger
177
+
178
+ export const AdminTrigger: typeof $Enums.AdminTrigger
179
+
134
180
  /**
135
181
  * ## Prisma Client ʲˢ
136
182
  *
@@ -378,6 +424,36 @@ export class PrismaClient<
378
424
  * ```
379
425
  */
380
426
  get websocketConnection(): Prisma.WebsocketConnectionDelegate<ExtArgs, ClientOptions>;
427
+
428
+ /**
429
+ * `prisma.adminProcess`: Exposes CRUD operations for the **AdminProcess** model.
430
+ * Example usage:
431
+ * ```ts
432
+ * // Fetch zero or more AdminProcesses
433
+ * const adminProcesses = await prisma.adminProcess.findMany()
434
+ * ```
435
+ */
436
+ get adminProcess(): Prisma.AdminProcessDelegate<ExtArgs, ClientOptions>;
437
+
438
+ /**
439
+ * `prisma.scriptSchedule`: Exposes CRUD operations for the **ScriptSchedule** model.
440
+ * Example usage:
441
+ * ```ts
442
+ * // Fetch zero or more ScriptSchedules
443
+ * const scriptSchedules = await prisma.scriptSchedule.findMany()
444
+ * ```
445
+ */
446
+ get scriptSchedule(): Prisma.ScriptScheduleDelegate<ExtArgs, ClientOptions>;
447
+
448
+ /**
449
+ * `prisma.scheduledJob`: Exposes CRUD operations for the **ScheduledJob** model.
450
+ * Example usage:
451
+ * ```ts
452
+ * // Fetch zero or more ScheduledJobs
453
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
454
+ * ```
455
+ */
456
+ get scheduledJob(): Prisma.ScheduledJobDelegate<ExtArgs, ClientOptions>;
381
457
  }
382
458
 
383
459
  export namespace Prisma {
@@ -830,7 +906,10 @@ export namespace Prisma {
830
906
  AssociationObject: 'AssociationObject',
831
907
  Process: 'Process',
832
908
  State: 'State',
833
- WebsocketConnection: 'WebsocketConnection'
909
+ WebsocketConnection: 'WebsocketConnection',
910
+ AdminProcess: 'AdminProcess',
911
+ ScriptSchedule: 'ScriptSchedule',
912
+ ScheduledJob: 'ScheduledJob'
834
913
  };
835
914
 
836
915
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -849,7 +928,7 @@ export namespace Prisma {
849
928
  omit: GlobalOmitOptions
850
929
  }
851
930
  meta: {
852
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection"
931
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminProcess" | "scriptSchedule" | "scheduledJob"
853
932
  txIsolationLevel: Prisma.TransactionIsolationLevel
854
933
  }
855
934
  model: {
@@ -1815,6 +1894,228 @@ export namespace Prisma {
1815
1894
  }
1816
1895
  }
1817
1896
  }
1897
+ AdminProcess: {
1898
+ payload: Prisma.$AdminProcessPayload<ExtArgs>
1899
+ fields: Prisma.AdminProcessFieldRefs
1900
+ operations: {
1901
+ findUnique: {
1902
+ args: Prisma.AdminProcessFindUniqueArgs<ExtArgs>
1903
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload> | null
1904
+ }
1905
+ findUniqueOrThrow: {
1906
+ args: Prisma.AdminProcessFindUniqueOrThrowArgs<ExtArgs>
1907
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1908
+ }
1909
+ findFirst: {
1910
+ args: Prisma.AdminProcessFindFirstArgs<ExtArgs>
1911
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload> | null
1912
+ }
1913
+ findFirstOrThrow: {
1914
+ args: Prisma.AdminProcessFindFirstOrThrowArgs<ExtArgs>
1915
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1916
+ }
1917
+ findMany: {
1918
+ args: Prisma.AdminProcessFindManyArgs<ExtArgs>
1919
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>[]
1920
+ }
1921
+ create: {
1922
+ args: Prisma.AdminProcessCreateArgs<ExtArgs>
1923
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1924
+ }
1925
+ createMany: {
1926
+ args: Prisma.AdminProcessCreateManyArgs<ExtArgs>
1927
+ result: BatchPayload
1928
+ }
1929
+ createManyAndReturn: {
1930
+ args: Prisma.AdminProcessCreateManyAndReturnArgs<ExtArgs>
1931
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>[]
1932
+ }
1933
+ delete: {
1934
+ args: Prisma.AdminProcessDeleteArgs<ExtArgs>
1935
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1936
+ }
1937
+ update: {
1938
+ args: Prisma.AdminProcessUpdateArgs<ExtArgs>
1939
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1940
+ }
1941
+ deleteMany: {
1942
+ args: Prisma.AdminProcessDeleteManyArgs<ExtArgs>
1943
+ result: BatchPayload
1944
+ }
1945
+ updateMany: {
1946
+ args: Prisma.AdminProcessUpdateManyArgs<ExtArgs>
1947
+ result: BatchPayload
1948
+ }
1949
+ updateManyAndReturn: {
1950
+ args: Prisma.AdminProcessUpdateManyAndReturnArgs<ExtArgs>
1951
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>[]
1952
+ }
1953
+ upsert: {
1954
+ args: Prisma.AdminProcessUpsertArgs<ExtArgs>
1955
+ result: $Utils.PayloadToResult<Prisma.$AdminProcessPayload>
1956
+ }
1957
+ aggregate: {
1958
+ args: Prisma.AdminProcessAggregateArgs<ExtArgs>
1959
+ result: $Utils.Optional<AggregateAdminProcess>
1960
+ }
1961
+ groupBy: {
1962
+ args: Prisma.AdminProcessGroupByArgs<ExtArgs>
1963
+ result: $Utils.Optional<AdminProcessGroupByOutputType>[]
1964
+ }
1965
+ count: {
1966
+ args: Prisma.AdminProcessCountArgs<ExtArgs>
1967
+ result: $Utils.Optional<AdminProcessCountAggregateOutputType> | number
1968
+ }
1969
+ }
1970
+ }
1971
+ ScriptSchedule: {
1972
+ payload: Prisma.$ScriptSchedulePayload<ExtArgs>
1973
+ fields: Prisma.ScriptScheduleFieldRefs
1974
+ operations: {
1975
+ findUnique: {
1976
+ args: Prisma.ScriptScheduleFindUniqueArgs<ExtArgs>
1977
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload> | null
1978
+ }
1979
+ findUniqueOrThrow: {
1980
+ args: Prisma.ScriptScheduleFindUniqueOrThrowArgs<ExtArgs>
1981
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1982
+ }
1983
+ findFirst: {
1984
+ args: Prisma.ScriptScheduleFindFirstArgs<ExtArgs>
1985
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload> | null
1986
+ }
1987
+ findFirstOrThrow: {
1988
+ args: Prisma.ScriptScheduleFindFirstOrThrowArgs<ExtArgs>
1989
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1990
+ }
1991
+ findMany: {
1992
+ args: Prisma.ScriptScheduleFindManyArgs<ExtArgs>
1993
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>[]
1994
+ }
1995
+ create: {
1996
+ args: Prisma.ScriptScheduleCreateArgs<ExtArgs>
1997
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
1998
+ }
1999
+ createMany: {
2000
+ args: Prisma.ScriptScheduleCreateManyArgs<ExtArgs>
2001
+ result: BatchPayload
2002
+ }
2003
+ createManyAndReturn: {
2004
+ args: Prisma.ScriptScheduleCreateManyAndReturnArgs<ExtArgs>
2005
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>[]
2006
+ }
2007
+ delete: {
2008
+ args: Prisma.ScriptScheduleDeleteArgs<ExtArgs>
2009
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
2010
+ }
2011
+ update: {
2012
+ args: Prisma.ScriptScheduleUpdateArgs<ExtArgs>
2013
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
2014
+ }
2015
+ deleteMany: {
2016
+ args: Prisma.ScriptScheduleDeleteManyArgs<ExtArgs>
2017
+ result: BatchPayload
2018
+ }
2019
+ updateMany: {
2020
+ args: Prisma.ScriptScheduleUpdateManyArgs<ExtArgs>
2021
+ result: BatchPayload
2022
+ }
2023
+ updateManyAndReturn: {
2024
+ args: Prisma.ScriptScheduleUpdateManyAndReturnArgs<ExtArgs>
2025
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>[]
2026
+ }
2027
+ upsert: {
2028
+ args: Prisma.ScriptScheduleUpsertArgs<ExtArgs>
2029
+ result: $Utils.PayloadToResult<Prisma.$ScriptSchedulePayload>
2030
+ }
2031
+ aggregate: {
2032
+ args: Prisma.ScriptScheduleAggregateArgs<ExtArgs>
2033
+ result: $Utils.Optional<AggregateScriptSchedule>
2034
+ }
2035
+ groupBy: {
2036
+ args: Prisma.ScriptScheduleGroupByArgs<ExtArgs>
2037
+ result: $Utils.Optional<ScriptScheduleGroupByOutputType>[]
2038
+ }
2039
+ count: {
2040
+ args: Prisma.ScriptScheduleCountArgs<ExtArgs>
2041
+ result: $Utils.Optional<ScriptScheduleCountAggregateOutputType> | number
2042
+ }
2043
+ }
2044
+ }
2045
+ ScheduledJob: {
2046
+ payload: Prisma.$ScheduledJobPayload<ExtArgs>
2047
+ fields: Prisma.ScheduledJobFieldRefs
2048
+ operations: {
2049
+ findUnique: {
2050
+ args: Prisma.ScheduledJobFindUniqueArgs<ExtArgs>
2051
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2052
+ }
2053
+ findUniqueOrThrow: {
2054
+ args: Prisma.ScheduledJobFindUniqueOrThrowArgs<ExtArgs>
2055
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2056
+ }
2057
+ findFirst: {
2058
+ args: Prisma.ScheduledJobFindFirstArgs<ExtArgs>
2059
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2060
+ }
2061
+ findFirstOrThrow: {
2062
+ args: Prisma.ScheduledJobFindFirstOrThrowArgs<ExtArgs>
2063
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2064
+ }
2065
+ findMany: {
2066
+ args: Prisma.ScheduledJobFindManyArgs<ExtArgs>
2067
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2068
+ }
2069
+ create: {
2070
+ args: Prisma.ScheduledJobCreateArgs<ExtArgs>
2071
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2072
+ }
2073
+ createMany: {
2074
+ args: Prisma.ScheduledJobCreateManyArgs<ExtArgs>
2075
+ result: BatchPayload
2076
+ }
2077
+ createManyAndReturn: {
2078
+ args: Prisma.ScheduledJobCreateManyAndReturnArgs<ExtArgs>
2079
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2080
+ }
2081
+ delete: {
2082
+ args: Prisma.ScheduledJobDeleteArgs<ExtArgs>
2083
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2084
+ }
2085
+ update: {
2086
+ args: Prisma.ScheduledJobUpdateArgs<ExtArgs>
2087
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2088
+ }
2089
+ deleteMany: {
2090
+ args: Prisma.ScheduledJobDeleteManyArgs<ExtArgs>
2091
+ result: BatchPayload
2092
+ }
2093
+ updateMany: {
2094
+ args: Prisma.ScheduledJobUpdateManyArgs<ExtArgs>
2095
+ result: BatchPayload
2096
+ }
2097
+ updateManyAndReturn: {
2098
+ args: Prisma.ScheduledJobUpdateManyAndReturnArgs<ExtArgs>
2099
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2100
+ }
2101
+ upsert: {
2102
+ args: Prisma.ScheduledJobUpsertArgs<ExtArgs>
2103
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2104
+ }
2105
+ aggregate: {
2106
+ args: Prisma.ScheduledJobAggregateArgs<ExtArgs>
2107
+ result: $Utils.Optional<AggregateScheduledJob>
2108
+ }
2109
+ groupBy: {
2110
+ args: Prisma.ScheduledJobGroupByArgs<ExtArgs>
2111
+ result: $Utils.Optional<ScheduledJobGroupByOutputType>[]
2112
+ }
2113
+ count: {
2114
+ args: Prisma.ScheduledJobCountArgs<ExtArgs>
2115
+ result: $Utils.Optional<ScheduledJobCountAggregateOutputType> | number
2116
+ }
2117
+ }
2118
+ }
1818
2119
  }
1819
2120
  } & {
1820
2121
  other: {
@@ -1920,6 +2221,9 @@ export namespace Prisma {
1920
2221
  process?: ProcessOmit
1921
2222
  state?: StateOmit
1922
2223
  websocketConnection?: WebsocketConnectionOmit
2224
+ adminProcess?: AdminProcessOmit
2225
+ scriptSchedule?: ScriptScheduleOmit
2226
+ scheduledJob?: ScheduledJobOmit
1923
2227
  }
1924
2228
 
1925
2229
  /* Types for Logging */
@@ -2329,6 +2633,37 @@ export namespace Prisma {
2329
2633
  }
2330
2634
 
2331
2635
 
2636
+ /**
2637
+ * Count Type AdminProcessCountOutputType
2638
+ */
2639
+
2640
+ export type AdminProcessCountOutputType = {
2641
+ childProcesses: number
2642
+ }
2643
+
2644
+ export type AdminProcessCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2645
+ childProcesses?: boolean | AdminProcessCountOutputTypeCountChildProcessesArgs
2646
+ }
2647
+
2648
+ // Custom InputTypes
2649
+ /**
2650
+ * AdminProcessCountOutputType without action
2651
+ */
2652
+ export type AdminProcessCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2653
+ /**
2654
+ * Select specific fields to fetch from the AdminProcessCountOutputType
2655
+ */
2656
+ select?: AdminProcessCountOutputTypeSelect<ExtArgs> | null
2657
+ }
2658
+
2659
+ /**
2660
+ * AdminProcessCountOutputType without action
2661
+ */
2662
+ export type AdminProcessCountOutputTypeCountChildProcessesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2663
+ where?: AdminProcessWhereInput
2664
+ }
2665
+
2666
+
2332
2667
  /**
2333
2668
  * Models
2334
2669
  */
@@ -17429,58 +17764,3418 @@ export namespace Prisma {
17429
17764
 
17430
17765
 
17431
17766
  /**
17432
- * Enums
17767
+ * Model AdminProcess
17433
17768
  */
17434
17769
 
17435
- export const TransactionIsolationLevel: {
17436
- ReadUncommitted: 'ReadUncommitted',
17437
- ReadCommitted: 'ReadCommitted',
17438
- RepeatableRead: 'RepeatableRead',
17439
- Serializable: 'Serializable'
17440
- };
17441
-
17442
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
17443
-
17770
+ export type AggregateAdminProcess = {
17771
+ _count: AdminProcessCountAggregateOutputType | null
17772
+ _avg: AdminProcessAvgAggregateOutputType | null
17773
+ _sum: AdminProcessSumAggregateOutputType | null
17774
+ _min: AdminProcessMinAggregateOutputType | null
17775
+ _max: AdminProcessMaxAggregateOutputType | null
17776
+ }
17444
17777
 
17445
- export const UserScalarFieldEnum: {
17446
- id: 'id',
17447
- type: 'type',
17448
- createdAt: 'createdAt',
17449
- updatedAt: 'updatedAt',
17450
- email: 'email',
17451
- username: 'username',
17452
- hashword: 'hashword',
17453
- appUserId: 'appUserId',
17454
- organizationId: 'organizationId',
17455
- appOrgId: 'appOrgId',
17456
- name: 'name'
17457
- };
17778
+ export type AdminProcessAvgAggregateOutputType = {
17779
+ id: number | null
17780
+ parentProcessId: number | null
17781
+ }
17458
17782
 
17459
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
17783
+ export type AdminProcessSumAggregateOutputType = {
17784
+ id: number | null
17785
+ parentProcessId: number | null
17786
+ }
17460
17787
 
17788
+ export type AdminProcessMinAggregateOutputType = {
17789
+ id: number | null
17790
+ name: string | null
17791
+ type: string | null
17792
+ state: $Enums.AdminProcessState | null
17793
+ parentProcessId: number | null
17794
+ createdAt: Date | null
17795
+ updatedAt: Date | null
17796
+ }
17461
17797
 
17462
- export const TokenScalarFieldEnum: {
17463
- id: 'id',
17464
- token: 'token',
17465
- created: 'created',
17466
- expires: 'expires',
17467
- userId: 'userId'
17468
- };
17798
+ export type AdminProcessMaxAggregateOutputType = {
17799
+ id: number | null
17800
+ name: string | null
17801
+ type: string | null
17802
+ state: $Enums.AdminProcessState | null
17803
+ parentProcessId: number | null
17804
+ createdAt: Date | null
17805
+ updatedAt: Date | null
17806
+ }
17469
17807
 
17470
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
17808
+ export type AdminProcessCountAggregateOutputType = {
17809
+ id: number
17810
+ name: number
17811
+ type: number
17812
+ state: number
17813
+ context: number
17814
+ results: number
17815
+ parentProcessId: number
17816
+ createdAt: number
17817
+ updatedAt: number
17818
+ _all: number
17819
+ }
17471
17820
 
17472
17821
 
17473
- export const CredentialScalarFieldEnum: {
17474
- id: 'id',
17475
- userId: 'userId',
17476
- authIsValid: 'authIsValid',
17477
- externalId: 'externalId',
17478
- data: 'data',
17479
- createdAt: 'createdAt',
17480
- updatedAt: 'updatedAt'
17481
- };
17822
+ export type AdminProcessAvgAggregateInputType = {
17823
+ id?: true
17824
+ parentProcessId?: true
17825
+ }
17482
17826
 
17483
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
17827
+ export type AdminProcessSumAggregateInputType = {
17828
+ id?: true
17829
+ parentProcessId?: true
17830
+ }
17831
+
17832
+ export type AdminProcessMinAggregateInputType = {
17833
+ id?: true
17834
+ name?: true
17835
+ type?: true
17836
+ state?: true
17837
+ parentProcessId?: true
17838
+ createdAt?: true
17839
+ updatedAt?: true
17840
+ }
17841
+
17842
+ export type AdminProcessMaxAggregateInputType = {
17843
+ id?: true
17844
+ name?: true
17845
+ type?: true
17846
+ state?: true
17847
+ parentProcessId?: true
17848
+ createdAt?: true
17849
+ updatedAt?: true
17850
+ }
17851
+
17852
+ export type AdminProcessCountAggregateInputType = {
17853
+ id?: true
17854
+ name?: true
17855
+ type?: true
17856
+ state?: true
17857
+ context?: true
17858
+ results?: true
17859
+ parentProcessId?: true
17860
+ createdAt?: true
17861
+ updatedAt?: true
17862
+ _all?: true
17863
+ }
17864
+
17865
+ export type AdminProcessAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17866
+ /**
17867
+ * Filter which AdminProcess to aggregate.
17868
+ */
17869
+ where?: AdminProcessWhereInput
17870
+ /**
17871
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17872
+ *
17873
+ * Determine the order of AdminProcesses to fetch.
17874
+ */
17875
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
17876
+ /**
17877
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17878
+ *
17879
+ * Sets the start position
17880
+ */
17881
+ cursor?: AdminProcessWhereUniqueInput
17882
+ /**
17883
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17884
+ *
17885
+ * Take `±n` AdminProcesses from the position of the cursor.
17886
+ */
17887
+ take?: number
17888
+ /**
17889
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17890
+ *
17891
+ * Skip the first `n` AdminProcesses.
17892
+ */
17893
+ skip?: number
17894
+ /**
17895
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17896
+ *
17897
+ * Count returned AdminProcesses
17898
+ **/
17899
+ _count?: true | AdminProcessCountAggregateInputType
17900
+ /**
17901
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17902
+ *
17903
+ * Select which fields to average
17904
+ **/
17905
+ _avg?: AdminProcessAvgAggregateInputType
17906
+ /**
17907
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17908
+ *
17909
+ * Select which fields to sum
17910
+ **/
17911
+ _sum?: AdminProcessSumAggregateInputType
17912
+ /**
17913
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17914
+ *
17915
+ * Select which fields to find the minimum value
17916
+ **/
17917
+ _min?: AdminProcessMinAggregateInputType
17918
+ /**
17919
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
17920
+ *
17921
+ * Select which fields to find the maximum value
17922
+ **/
17923
+ _max?: AdminProcessMaxAggregateInputType
17924
+ }
17925
+
17926
+ export type GetAdminProcessAggregateType<T extends AdminProcessAggregateArgs> = {
17927
+ [P in keyof T & keyof AggregateAdminProcess]: P extends '_count' | 'count'
17928
+ ? T[P] extends true
17929
+ ? number
17930
+ : GetScalarType<T[P], AggregateAdminProcess[P]>
17931
+ : GetScalarType<T[P], AggregateAdminProcess[P]>
17932
+ }
17933
+
17934
+
17935
+
17936
+
17937
+ export type AdminProcessGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17938
+ where?: AdminProcessWhereInput
17939
+ orderBy?: AdminProcessOrderByWithAggregationInput | AdminProcessOrderByWithAggregationInput[]
17940
+ by: AdminProcessScalarFieldEnum[] | AdminProcessScalarFieldEnum
17941
+ having?: AdminProcessScalarWhereWithAggregatesInput
17942
+ take?: number
17943
+ skip?: number
17944
+ _count?: AdminProcessCountAggregateInputType | true
17945
+ _avg?: AdminProcessAvgAggregateInputType
17946
+ _sum?: AdminProcessSumAggregateInputType
17947
+ _min?: AdminProcessMinAggregateInputType
17948
+ _max?: AdminProcessMaxAggregateInputType
17949
+ }
17950
+
17951
+ export type AdminProcessGroupByOutputType = {
17952
+ id: number
17953
+ name: string
17954
+ type: string
17955
+ state: $Enums.AdminProcessState
17956
+ context: JsonValue
17957
+ results: JsonValue
17958
+ parentProcessId: number | null
17959
+ createdAt: Date
17960
+ updatedAt: Date
17961
+ _count: AdminProcessCountAggregateOutputType | null
17962
+ _avg: AdminProcessAvgAggregateOutputType | null
17963
+ _sum: AdminProcessSumAggregateOutputType | null
17964
+ _min: AdminProcessMinAggregateOutputType | null
17965
+ _max: AdminProcessMaxAggregateOutputType | null
17966
+ }
17967
+
17968
+ type GetAdminProcessGroupByPayload<T extends AdminProcessGroupByArgs> = Prisma.PrismaPromise<
17969
+ Array<
17970
+ PickEnumerable<AdminProcessGroupByOutputType, T['by']> &
17971
+ {
17972
+ [P in ((keyof T) & (keyof AdminProcessGroupByOutputType))]: P extends '_count'
17973
+ ? T[P] extends boolean
17974
+ ? number
17975
+ : GetScalarType<T[P], AdminProcessGroupByOutputType[P]>
17976
+ : GetScalarType<T[P], AdminProcessGroupByOutputType[P]>
17977
+ }
17978
+ >
17979
+ >
17980
+
17981
+
17982
+ export type AdminProcessSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17983
+ id?: boolean
17984
+ name?: boolean
17985
+ type?: boolean
17986
+ state?: boolean
17987
+ context?: boolean
17988
+ results?: boolean
17989
+ parentProcessId?: boolean
17990
+ createdAt?: boolean
17991
+ updatedAt?: boolean
17992
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
17993
+ childProcesses?: boolean | AdminProcess$childProcessesArgs<ExtArgs>
17994
+ _count?: boolean | AdminProcessCountOutputTypeDefaultArgs<ExtArgs>
17995
+ }, ExtArgs["result"]["adminProcess"]>
17996
+
17997
+ export type AdminProcessSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
17998
+ id?: boolean
17999
+ name?: boolean
18000
+ type?: boolean
18001
+ state?: boolean
18002
+ context?: boolean
18003
+ results?: boolean
18004
+ parentProcessId?: boolean
18005
+ createdAt?: boolean
18006
+ updatedAt?: boolean
18007
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
18008
+ }, ExtArgs["result"]["adminProcess"]>
18009
+
18010
+ export type AdminProcessSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
18011
+ id?: boolean
18012
+ name?: boolean
18013
+ type?: boolean
18014
+ state?: boolean
18015
+ context?: boolean
18016
+ results?: boolean
18017
+ parentProcessId?: boolean
18018
+ createdAt?: boolean
18019
+ updatedAt?: boolean
18020
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
18021
+ }, ExtArgs["result"]["adminProcess"]>
18022
+
18023
+ export type AdminProcessSelectScalar = {
18024
+ id?: boolean
18025
+ name?: boolean
18026
+ type?: boolean
18027
+ state?: boolean
18028
+ context?: boolean
18029
+ results?: boolean
18030
+ parentProcessId?: boolean
18031
+ createdAt?: boolean
18032
+ updatedAt?: boolean
18033
+ }
18034
+
18035
+ export type AdminProcessOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "type" | "state" | "context" | "results" | "parentProcessId" | "createdAt" | "updatedAt", ExtArgs["result"]["adminProcess"]>
18036
+ export type AdminProcessInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18037
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
18038
+ childProcesses?: boolean | AdminProcess$childProcessesArgs<ExtArgs>
18039
+ _count?: boolean | AdminProcessCountOutputTypeDefaultArgs<ExtArgs>
18040
+ }
18041
+ export type AdminProcessIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18042
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
18043
+ }
18044
+ export type AdminProcessIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18045
+ parentProcess?: boolean | AdminProcess$parentProcessArgs<ExtArgs>
18046
+ }
18047
+
18048
+ export type $AdminProcessPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18049
+ name: "AdminProcess"
18050
+ objects: {
18051
+ parentProcess: Prisma.$AdminProcessPayload<ExtArgs> | null
18052
+ childProcesses: Prisma.$AdminProcessPayload<ExtArgs>[]
18053
+ }
18054
+ scalars: $Extensions.GetPayloadResult<{
18055
+ id: number
18056
+ name: string
18057
+ type: string
18058
+ state: $Enums.AdminProcessState
18059
+ context: Prisma.JsonValue
18060
+ results: Prisma.JsonValue
18061
+ parentProcessId: number | null
18062
+ createdAt: Date
18063
+ updatedAt: Date
18064
+ }, ExtArgs["result"]["adminProcess"]>
18065
+ composites: {}
18066
+ }
18067
+
18068
+ type AdminProcessGetPayload<S extends boolean | null | undefined | AdminProcessDefaultArgs> = $Result.GetResult<Prisma.$AdminProcessPayload, S>
18069
+
18070
+ type AdminProcessCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
18071
+ Omit<AdminProcessFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
18072
+ select?: AdminProcessCountAggregateInputType | true
18073
+ }
18074
+
18075
+ export interface AdminProcessDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
18076
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminProcess'], meta: { name: 'AdminProcess' } }
18077
+ /**
18078
+ * Find zero or one AdminProcess that matches the filter.
18079
+ * @param {AdminProcessFindUniqueArgs} args - Arguments to find a AdminProcess
18080
+ * @example
18081
+ * // Get one AdminProcess
18082
+ * const adminProcess = await prisma.adminProcess.findUnique({
18083
+ * where: {
18084
+ * // ... provide filter here
18085
+ * }
18086
+ * })
18087
+ */
18088
+ findUnique<T extends AdminProcessFindUniqueArgs>(args: SelectSubset<T, AdminProcessFindUniqueArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
18089
+
18090
+ /**
18091
+ * Find one AdminProcess that matches the filter or throw an error with `error.code='P2025'`
18092
+ * if no matches were found.
18093
+ * @param {AdminProcessFindUniqueOrThrowArgs} args - Arguments to find a AdminProcess
18094
+ * @example
18095
+ * // Get one AdminProcess
18096
+ * const adminProcess = await prisma.adminProcess.findUniqueOrThrow({
18097
+ * where: {
18098
+ * // ... provide filter here
18099
+ * }
18100
+ * })
18101
+ */
18102
+ findUniqueOrThrow<T extends AdminProcessFindUniqueOrThrowArgs>(args: SelectSubset<T, AdminProcessFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18103
+
18104
+ /**
18105
+ * Find the first AdminProcess that matches the filter.
18106
+ * Note, that providing `undefined` is treated as the value not being there.
18107
+ * Read more here: https://pris.ly/d/null-undefined
18108
+ * @param {AdminProcessFindFirstArgs} args - Arguments to find a AdminProcess
18109
+ * @example
18110
+ * // Get one AdminProcess
18111
+ * const adminProcess = await prisma.adminProcess.findFirst({
18112
+ * where: {
18113
+ * // ... provide filter here
18114
+ * }
18115
+ * })
18116
+ */
18117
+ findFirst<T extends AdminProcessFindFirstArgs>(args?: SelectSubset<T, AdminProcessFindFirstArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
18118
+
18119
+ /**
18120
+ * Find the first AdminProcess that matches the filter or
18121
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
18122
+ * Note, that providing `undefined` is treated as the value not being there.
18123
+ * Read more here: https://pris.ly/d/null-undefined
18124
+ * @param {AdminProcessFindFirstOrThrowArgs} args - Arguments to find a AdminProcess
18125
+ * @example
18126
+ * // Get one AdminProcess
18127
+ * const adminProcess = await prisma.adminProcess.findFirstOrThrow({
18128
+ * where: {
18129
+ * // ... provide filter here
18130
+ * }
18131
+ * })
18132
+ */
18133
+ findFirstOrThrow<T extends AdminProcessFindFirstOrThrowArgs>(args?: SelectSubset<T, AdminProcessFindFirstOrThrowArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18134
+
18135
+ /**
18136
+ * Find zero or more AdminProcesses that matches the filter.
18137
+ * Note, that providing `undefined` is treated as the value not being there.
18138
+ * Read more here: https://pris.ly/d/null-undefined
18139
+ * @param {AdminProcessFindManyArgs} args - Arguments to filter and select certain fields only.
18140
+ * @example
18141
+ * // Get all AdminProcesses
18142
+ * const adminProcesses = await prisma.adminProcess.findMany()
18143
+ *
18144
+ * // Get first 10 AdminProcesses
18145
+ * const adminProcesses = await prisma.adminProcess.findMany({ take: 10 })
18146
+ *
18147
+ * // Only select the `id`
18148
+ * const adminProcessWithIdOnly = await prisma.adminProcess.findMany({ select: { id: true } })
18149
+ *
18150
+ */
18151
+ findMany<T extends AdminProcessFindManyArgs>(args?: SelectSubset<T, AdminProcessFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
18152
+
18153
+ /**
18154
+ * Create a AdminProcess.
18155
+ * @param {AdminProcessCreateArgs} args - Arguments to create a AdminProcess.
18156
+ * @example
18157
+ * // Create one AdminProcess
18158
+ * const AdminProcess = await prisma.adminProcess.create({
18159
+ * data: {
18160
+ * // ... data to create a AdminProcess
18161
+ * }
18162
+ * })
18163
+ *
18164
+ */
18165
+ create<T extends AdminProcessCreateArgs>(args: SelectSubset<T, AdminProcessCreateArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18166
+
18167
+ /**
18168
+ * Create many AdminProcesses.
18169
+ * @param {AdminProcessCreateManyArgs} args - Arguments to create many AdminProcesses.
18170
+ * @example
18171
+ * // Create many AdminProcesses
18172
+ * const adminProcess = await prisma.adminProcess.createMany({
18173
+ * data: [
18174
+ * // ... provide data here
18175
+ * ]
18176
+ * })
18177
+ *
18178
+ */
18179
+ createMany<T extends AdminProcessCreateManyArgs>(args?: SelectSubset<T, AdminProcessCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18180
+
18181
+ /**
18182
+ * Create many AdminProcesses and returns the data saved in the database.
18183
+ * @param {AdminProcessCreateManyAndReturnArgs} args - Arguments to create many AdminProcesses.
18184
+ * @example
18185
+ * // Create many AdminProcesses
18186
+ * const adminProcess = await prisma.adminProcess.createManyAndReturn({
18187
+ * data: [
18188
+ * // ... provide data here
18189
+ * ]
18190
+ * })
18191
+ *
18192
+ * // Create many AdminProcesses and only return the `id`
18193
+ * const adminProcessWithIdOnly = await prisma.adminProcess.createManyAndReturn({
18194
+ * select: { id: true },
18195
+ * data: [
18196
+ * // ... provide data here
18197
+ * ]
18198
+ * })
18199
+ * Note, that providing `undefined` is treated as the value not being there.
18200
+ * Read more here: https://pris.ly/d/null-undefined
18201
+ *
18202
+ */
18203
+ createManyAndReturn<T extends AdminProcessCreateManyAndReturnArgs>(args?: SelectSubset<T, AdminProcessCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
18204
+
18205
+ /**
18206
+ * Delete a AdminProcess.
18207
+ * @param {AdminProcessDeleteArgs} args - Arguments to delete one AdminProcess.
18208
+ * @example
18209
+ * // Delete one AdminProcess
18210
+ * const AdminProcess = await prisma.adminProcess.delete({
18211
+ * where: {
18212
+ * // ... filter to delete one AdminProcess
18213
+ * }
18214
+ * })
18215
+ *
18216
+ */
18217
+ delete<T extends AdminProcessDeleteArgs>(args: SelectSubset<T, AdminProcessDeleteArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18218
+
18219
+ /**
18220
+ * Update one AdminProcess.
18221
+ * @param {AdminProcessUpdateArgs} args - Arguments to update one AdminProcess.
18222
+ * @example
18223
+ * // Update one AdminProcess
18224
+ * const adminProcess = await prisma.adminProcess.update({
18225
+ * where: {
18226
+ * // ... provide filter here
18227
+ * },
18228
+ * data: {
18229
+ * // ... provide data here
18230
+ * }
18231
+ * })
18232
+ *
18233
+ */
18234
+ update<T extends AdminProcessUpdateArgs>(args: SelectSubset<T, AdminProcessUpdateArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18235
+
18236
+ /**
18237
+ * Delete zero or more AdminProcesses.
18238
+ * @param {AdminProcessDeleteManyArgs} args - Arguments to filter AdminProcesses to delete.
18239
+ * @example
18240
+ * // Delete a few AdminProcesses
18241
+ * const { count } = await prisma.adminProcess.deleteMany({
18242
+ * where: {
18243
+ * // ... provide filter here
18244
+ * }
18245
+ * })
18246
+ *
18247
+ */
18248
+ deleteMany<T extends AdminProcessDeleteManyArgs>(args?: SelectSubset<T, AdminProcessDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18249
+
18250
+ /**
18251
+ * Update zero or more AdminProcesses.
18252
+ * Note, that providing `undefined` is treated as the value not being there.
18253
+ * Read more here: https://pris.ly/d/null-undefined
18254
+ * @param {AdminProcessUpdateManyArgs} args - Arguments to update one or more rows.
18255
+ * @example
18256
+ * // Update many AdminProcesses
18257
+ * const adminProcess = await prisma.adminProcess.updateMany({
18258
+ * where: {
18259
+ * // ... provide filter here
18260
+ * },
18261
+ * data: {
18262
+ * // ... provide data here
18263
+ * }
18264
+ * })
18265
+ *
18266
+ */
18267
+ updateMany<T extends AdminProcessUpdateManyArgs>(args: SelectSubset<T, AdminProcessUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
18268
+
18269
+ /**
18270
+ * Update zero or more AdminProcesses and returns the data updated in the database.
18271
+ * @param {AdminProcessUpdateManyAndReturnArgs} args - Arguments to update many AdminProcesses.
18272
+ * @example
18273
+ * // Update many AdminProcesses
18274
+ * const adminProcess = await prisma.adminProcess.updateManyAndReturn({
18275
+ * where: {
18276
+ * // ... provide filter here
18277
+ * },
18278
+ * data: [
18279
+ * // ... provide data here
18280
+ * ]
18281
+ * })
18282
+ *
18283
+ * // Update zero or more AdminProcesses and only return the `id`
18284
+ * const adminProcessWithIdOnly = await prisma.adminProcess.updateManyAndReturn({
18285
+ * select: { id: true },
18286
+ * where: {
18287
+ * // ... provide filter here
18288
+ * },
18289
+ * data: [
18290
+ * // ... provide data here
18291
+ * ]
18292
+ * })
18293
+ * Note, that providing `undefined` is treated as the value not being there.
18294
+ * Read more here: https://pris.ly/d/null-undefined
18295
+ *
18296
+ */
18297
+ updateManyAndReturn<T extends AdminProcessUpdateManyAndReturnArgs>(args: SelectSubset<T, AdminProcessUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
18298
+
18299
+ /**
18300
+ * Create or update one AdminProcess.
18301
+ * @param {AdminProcessUpsertArgs} args - Arguments to update or create a AdminProcess.
18302
+ * @example
18303
+ * // Update or create a AdminProcess
18304
+ * const adminProcess = await prisma.adminProcess.upsert({
18305
+ * create: {
18306
+ * // ... data to create a AdminProcess
18307
+ * },
18308
+ * update: {
18309
+ * // ... in case it already exists, update
18310
+ * },
18311
+ * where: {
18312
+ * // ... the filter for the AdminProcess we want to update
18313
+ * }
18314
+ * })
18315
+ */
18316
+ upsert<T extends AdminProcessUpsertArgs>(args: SelectSubset<T, AdminProcessUpsertArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
18317
+
18318
+
18319
+ /**
18320
+ * Count the number of AdminProcesses.
18321
+ * Note, that providing `undefined` is treated as the value not being there.
18322
+ * Read more here: https://pris.ly/d/null-undefined
18323
+ * @param {AdminProcessCountArgs} args - Arguments to filter AdminProcesses to count.
18324
+ * @example
18325
+ * // Count the number of AdminProcesses
18326
+ * const count = await prisma.adminProcess.count({
18327
+ * where: {
18328
+ * // ... the filter for the AdminProcesses we want to count
18329
+ * }
18330
+ * })
18331
+ **/
18332
+ count<T extends AdminProcessCountArgs>(
18333
+ args?: Subset<T, AdminProcessCountArgs>,
18334
+ ): Prisma.PrismaPromise<
18335
+ T extends $Utils.Record<'select', any>
18336
+ ? T['select'] extends true
18337
+ ? number
18338
+ : GetScalarType<T['select'], AdminProcessCountAggregateOutputType>
18339
+ : number
18340
+ >
18341
+
18342
+ /**
18343
+ * Allows you to perform aggregations operations on a AdminProcess.
18344
+ * Note, that providing `undefined` is treated as the value not being there.
18345
+ * Read more here: https://pris.ly/d/null-undefined
18346
+ * @param {AdminProcessAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
18347
+ * @example
18348
+ * // Ordered by age ascending
18349
+ * // Where email contains prisma.io
18350
+ * // Limited to the 10 users
18351
+ * const aggregations = await prisma.user.aggregate({
18352
+ * _avg: {
18353
+ * age: true,
18354
+ * },
18355
+ * where: {
18356
+ * email: {
18357
+ * contains: "prisma.io",
18358
+ * },
18359
+ * },
18360
+ * orderBy: {
18361
+ * age: "asc",
18362
+ * },
18363
+ * take: 10,
18364
+ * })
18365
+ **/
18366
+ aggregate<T extends AdminProcessAggregateArgs>(args: Subset<T, AdminProcessAggregateArgs>): Prisma.PrismaPromise<GetAdminProcessAggregateType<T>>
18367
+
18368
+ /**
18369
+ * Group by AdminProcess.
18370
+ * Note, that providing `undefined` is treated as the value not being there.
18371
+ * Read more here: https://pris.ly/d/null-undefined
18372
+ * @param {AdminProcessGroupByArgs} args - Group by arguments.
18373
+ * @example
18374
+ * // Group by city, order by createdAt, get count
18375
+ * const result = await prisma.user.groupBy({
18376
+ * by: ['city', 'createdAt'],
18377
+ * orderBy: {
18378
+ * createdAt: true
18379
+ * },
18380
+ * _count: {
18381
+ * _all: true
18382
+ * },
18383
+ * })
18384
+ *
18385
+ **/
18386
+ groupBy<
18387
+ T extends AdminProcessGroupByArgs,
18388
+ HasSelectOrTake extends Or<
18389
+ Extends<'skip', Keys<T>>,
18390
+ Extends<'take', Keys<T>>
18391
+ >,
18392
+ OrderByArg extends True extends HasSelectOrTake
18393
+ ? { orderBy: AdminProcessGroupByArgs['orderBy'] }
18394
+ : { orderBy?: AdminProcessGroupByArgs['orderBy'] },
18395
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
18396
+ ByFields extends MaybeTupleToUnion<T['by']>,
18397
+ ByValid extends Has<ByFields, OrderFields>,
18398
+ HavingFields extends GetHavingFields<T['having']>,
18399
+ HavingValid extends Has<ByFields, HavingFields>,
18400
+ ByEmpty extends T['by'] extends never[] ? True : False,
18401
+ InputErrors extends ByEmpty extends True
18402
+ ? `Error: "by" must not be empty.`
18403
+ : HavingValid extends False
18404
+ ? {
18405
+ [P in HavingFields]: P extends ByFields
18406
+ ? never
18407
+ : P extends string
18408
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
18409
+ : [
18410
+ Error,
18411
+ 'Field ',
18412
+ P,
18413
+ ` in "having" needs to be provided in "by"`,
18414
+ ]
18415
+ }[HavingFields]
18416
+ : 'take' extends Keys<T>
18417
+ ? 'orderBy' extends Keys<T>
18418
+ ? ByValid extends True
18419
+ ? {}
18420
+ : {
18421
+ [P in OrderFields]: P extends ByFields
18422
+ ? never
18423
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18424
+ }[OrderFields]
18425
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
18426
+ : 'skip' extends Keys<T>
18427
+ ? 'orderBy' extends Keys<T>
18428
+ ? ByValid extends True
18429
+ ? {}
18430
+ : {
18431
+ [P in OrderFields]: P extends ByFields
18432
+ ? never
18433
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18434
+ }[OrderFields]
18435
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
18436
+ : ByValid extends True
18437
+ ? {}
18438
+ : {
18439
+ [P in OrderFields]: P extends ByFields
18440
+ ? never
18441
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
18442
+ }[OrderFields]
18443
+ >(args: SubsetIntersection<T, AdminProcessGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminProcessGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
18444
+ /**
18445
+ * Fields of the AdminProcess model
18446
+ */
18447
+ readonly fields: AdminProcessFieldRefs;
18448
+ }
18449
+
18450
+ /**
18451
+ * The delegate class that acts as a "Promise-like" for AdminProcess.
18452
+ * Why is this prefixed with `Prisma__`?
18453
+ * Because we want to prevent naming conflicts as mentioned in
18454
+ * https://github.com/prisma/prisma-client-js/issues/707
18455
+ */
18456
+ export interface Prisma__AdminProcessClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
18457
+ readonly [Symbol.toStringTag]: "PrismaPromise"
18458
+ parentProcess<T extends AdminProcess$parentProcessArgs<ExtArgs> = {}>(args?: Subset<T, AdminProcess$parentProcessArgs<ExtArgs>>): Prisma__AdminProcessClient<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
18459
+ childProcesses<T extends AdminProcess$childProcessesArgs<ExtArgs> = {}>(args?: Subset<T, AdminProcess$childProcessesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AdminProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
18460
+ /**
18461
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
18462
+ * @param onfulfilled The callback to execute when the Promise is resolved.
18463
+ * @param onrejected The callback to execute when the Promise is rejected.
18464
+ * @returns A Promise for the completion of which ever callback is executed.
18465
+ */
18466
+ 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>
18467
+ /**
18468
+ * Attaches a callback for only the rejection of the Promise.
18469
+ * @param onrejected The callback to execute when the Promise is rejected.
18470
+ * @returns A Promise for the completion of the callback.
18471
+ */
18472
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
18473
+ /**
18474
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
18475
+ * resolved value cannot be modified from the callback.
18476
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
18477
+ * @returns A Promise for the completion of the callback.
18478
+ */
18479
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
18480
+ }
18481
+
18482
+
18483
+
18484
+
18485
+ /**
18486
+ * Fields of the AdminProcess model
18487
+ */
18488
+ interface AdminProcessFieldRefs {
18489
+ readonly id: FieldRef<"AdminProcess", 'Int'>
18490
+ readonly name: FieldRef<"AdminProcess", 'String'>
18491
+ readonly type: FieldRef<"AdminProcess", 'String'>
18492
+ readonly state: FieldRef<"AdminProcess", 'AdminProcessState'>
18493
+ readonly context: FieldRef<"AdminProcess", 'Json'>
18494
+ readonly results: FieldRef<"AdminProcess", 'Json'>
18495
+ readonly parentProcessId: FieldRef<"AdminProcess", 'Int'>
18496
+ readonly createdAt: FieldRef<"AdminProcess", 'DateTime'>
18497
+ readonly updatedAt: FieldRef<"AdminProcess", 'DateTime'>
18498
+ }
18499
+
18500
+
18501
+ // Custom InputTypes
18502
+ /**
18503
+ * AdminProcess findUnique
18504
+ */
18505
+ export type AdminProcessFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18506
+ /**
18507
+ * Select specific fields to fetch from the AdminProcess
18508
+ */
18509
+ select?: AdminProcessSelect<ExtArgs> | null
18510
+ /**
18511
+ * Omit specific fields from the AdminProcess
18512
+ */
18513
+ omit?: AdminProcessOmit<ExtArgs> | null
18514
+ /**
18515
+ * Choose, which related nodes to fetch as well
18516
+ */
18517
+ include?: AdminProcessInclude<ExtArgs> | null
18518
+ /**
18519
+ * Filter, which AdminProcess to fetch.
18520
+ */
18521
+ where: AdminProcessWhereUniqueInput
18522
+ }
18523
+
18524
+ /**
18525
+ * AdminProcess findUniqueOrThrow
18526
+ */
18527
+ export type AdminProcessFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18528
+ /**
18529
+ * Select specific fields to fetch from the AdminProcess
18530
+ */
18531
+ select?: AdminProcessSelect<ExtArgs> | null
18532
+ /**
18533
+ * Omit specific fields from the AdminProcess
18534
+ */
18535
+ omit?: AdminProcessOmit<ExtArgs> | null
18536
+ /**
18537
+ * Choose, which related nodes to fetch as well
18538
+ */
18539
+ include?: AdminProcessInclude<ExtArgs> | null
18540
+ /**
18541
+ * Filter, which AdminProcess to fetch.
18542
+ */
18543
+ where: AdminProcessWhereUniqueInput
18544
+ }
18545
+
18546
+ /**
18547
+ * AdminProcess findFirst
18548
+ */
18549
+ export type AdminProcessFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18550
+ /**
18551
+ * Select specific fields to fetch from the AdminProcess
18552
+ */
18553
+ select?: AdminProcessSelect<ExtArgs> | null
18554
+ /**
18555
+ * Omit specific fields from the AdminProcess
18556
+ */
18557
+ omit?: AdminProcessOmit<ExtArgs> | null
18558
+ /**
18559
+ * Choose, which related nodes to fetch as well
18560
+ */
18561
+ include?: AdminProcessInclude<ExtArgs> | null
18562
+ /**
18563
+ * Filter, which AdminProcess to fetch.
18564
+ */
18565
+ where?: AdminProcessWhereInput
18566
+ /**
18567
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18568
+ *
18569
+ * Determine the order of AdminProcesses to fetch.
18570
+ */
18571
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
18572
+ /**
18573
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18574
+ *
18575
+ * Sets the position for searching for AdminProcesses.
18576
+ */
18577
+ cursor?: AdminProcessWhereUniqueInput
18578
+ /**
18579
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18580
+ *
18581
+ * Take `±n` AdminProcesses from the position of the cursor.
18582
+ */
18583
+ take?: number
18584
+ /**
18585
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18586
+ *
18587
+ * Skip the first `n` AdminProcesses.
18588
+ */
18589
+ skip?: number
18590
+ /**
18591
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
18592
+ *
18593
+ * Filter by unique combinations of AdminProcesses.
18594
+ */
18595
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
18596
+ }
18597
+
18598
+ /**
18599
+ * AdminProcess findFirstOrThrow
18600
+ */
18601
+ export type AdminProcessFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18602
+ /**
18603
+ * Select specific fields to fetch from the AdminProcess
18604
+ */
18605
+ select?: AdminProcessSelect<ExtArgs> | null
18606
+ /**
18607
+ * Omit specific fields from the AdminProcess
18608
+ */
18609
+ omit?: AdminProcessOmit<ExtArgs> | null
18610
+ /**
18611
+ * Choose, which related nodes to fetch as well
18612
+ */
18613
+ include?: AdminProcessInclude<ExtArgs> | null
18614
+ /**
18615
+ * Filter, which AdminProcess to fetch.
18616
+ */
18617
+ where?: AdminProcessWhereInput
18618
+ /**
18619
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18620
+ *
18621
+ * Determine the order of AdminProcesses to fetch.
18622
+ */
18623
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
18624
+ /**
18625
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18626
+ *
18627
+ * Sets the position for searching for AdminProcesses.
18628
+ */
18629
+ cursor?: AdminProcessWhereUniqueInput
18630
+ /**
18631
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18632
+ *
18633
+ * Take `±n` AdminProcesses from the position of the cursor.
18634
+ */
18635
+ take?: number
18636
+ /**
18637
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18638
+ *
18639
+ * Skip the first `n` AdminProcesses.
18640
+ */
18641
+ skip?: number
18642
+ /**
18643
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
18644
+ *
18645
+ * Filter by unique combinations of AdminProcesses.
18646
+ */
18647
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
18648
+ }
18649
+
18650
+ /**
18651
+ * AdminProcess findMany
18652
+ */
18653
+ export type AdminProcessFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18654
+ /**
18655
+ * Select specific fields to fetch from the AdminProcess
18656
+ */
18657
+ select?: AdminProcessSelect<ExtArgs> | null
18658
+ /**
18659
+ * Omit specific fields from the AdminProcess
18660
+ */
18661
+ omit?: AdminProcessOmit<ExtArgs> | null
18662
+ /**
18663
+ * Choose, which related nodes to fetch as well
18664
+ */
18665
+ include?: AdminProcessInclude<ExtArgs> | null
18666
+ /**
18667
+ * Filter, which AdminProcesses to fetch.
18668
+ */
18669
+ where?: AdminProcessWhereInput
18670
+ /**
18671
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
18672
+ *
18673
+ * Determine the order of AdminProcesses to fetch.
18674
+ */
18675
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
18676
+ /**
18677
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
18678
+ *
18679
+ * Sets the position for listing AdminProcesses.
18680
+ */
18681
+ cursor?: AdminProcessWhereUniqueInput
18682
+ /**
18683
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18684
+ *
18685
+ * Take `±n` AdminProcesses from the position of the cursor.
18686
+ */
18687
+ take?: number
18688
+ /**
18689
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
18690
+ *
18691
+ * Skip the first `n` AdminProcesses.
18692
+ */
18693
+ skip?: number
18694
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
18695
+ }
18696
+
18697
+ /**
18698
+ * AdminProcess create
18699
+ */
18700
+ export type AdminProcessCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18701
+ /**
18702
+ * Select specific fields to fetch from the AdminProcess
18703
+ */
18704
+ select?: AdminProcessSelect<ExtArgs> | null
18705
+ /**
18706
+ * Omit specific fields from the AdminProcess
18707
+ */
18708
+ omit?: AdminProcessOmit<ExtArgs> | null
18709
+ /**
18710
+ * Choose, which related nodes to fetch as well
18711
+ */
18712
+ include?: AdminProcessInclude<ExtArgs> | null
18713
+ /**
18714
+ * The data needed to create a AdminProcess.
18715
+ */
18716
+ data: XOR<AdminProcessCreateInput, AdminProcessUncheckedCreateInput>
18717
+ }
18718
+
18719
+ /**
18720
+ * AdminProcess createMany
18721
+ */
18722
+ export type AdminProcessCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18723
+ /**
18724
+ * The data used to create many AdminProcesses.
18725
+ */
18726
+ data: AdminProcessCreateManyInput | AdminProcessCreateManyInput[]
18727
+ skipDuplicates?: boolean
18728
+ }
18729
+
18730
+ /**
18731
+ * AdminProcess createManyAndReturn
18732
+ */
18733
+ export type AdminProcessCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18734
+ /**
18735
+ * Select specific fields to fetch from the AdminProcess
18736
+ */
18737
+ select?: AdminProcessSelectCreateManyAndReturn<ExtArgs> | null
18738
+ /**
18739
+ * Omit specific fields from the AdminProcess
18740
+ */
18741
+ omit?: AdminProcessOmit<ExtArgs> | null
18742
+ /**
18743
+ * The data used to create many AdminProcesses.
18744
+ */
18745
+ data: AdminProcessCreateManyInput | AdminProcessCreateManyInput[]
18746
+ skipDuplicates?: boolean
18747
+ /**
18748
+ * Choose, which related nodes to fetch as well
18749
+ */
18750
+ include?: AdminProcessIncludeCreateManyAndReturn<ExtArgs> | null
18751
+ }
18752
+
18753
+ /**
18754
+ * AdminProcess update
18755
+ */
18756
+ export type AdminProcessUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18757
+ /**
18758
+ * Select specific fields to fetch from the AdminProcess
18759
+ */
18760
+ select?: AdminProcessSelect<ExtArgs> | null
18761
+ /**
18762
+ * Omit specific fields from the AdminProcess
18763
+ */
18764
+ omit?: AdminProcessOmit<ExtArgs> | null
18765
+ /**
18766
+ * Choose, which related nodes to fetch as well
18767
+ */
18768
+ include?: AdminProcessInclude<ExtArgs> | null
18769
+ /**
18770
+ * The data needed to update a AdminProcess.
18771
+ */
18772
+ data: XOR<AdminProcessUpdateInput, AdminProcessUncheckedUpdateInput>
18773
+ /**
18774
+ * Choose, which AdminProcess to update.
18775
+ */
18776
+ where: AdminProcessWhereUniqueInput
18777
+ }
18778
+
18779
+ /**
18780
+ * AdminProcess updateMany
18781
+ */
18782
+ export type AdminProcessUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18783
+ /**
18784
+ * The data used to update AdminProcesses.
18785
+ */
18786
+ data: XOR<AdminProcessUpdateManyMutationInput, AdminProcessUncheckedUpdateManyInput>
18787
+ /**
18788
+ * Filter which AdminProcesses to update
18789
+ */
18790
+ where?: AdminProcessWhereInput
18791
+ /**
18792
+ * Limit how many AdminProcesses to update.
18793
+ */
18794
+ limit?: number
18795
+ }
18796
+
18797
+ /**
18798
+ * AdminProcess updateManyAndReturn
18799
+ */
18800
+ export type AdminProcessUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18801
+ /**
18802
+ * Select specific fields to fetch from the AdminProcess
18803
+ */
18804
+ select?: AdminProcessSelectUpdateManyAndReturn<ExtArgs> | null
18805
+ /**
18806
+ * Omit specific fields from the AdminProcess
18807
+ */
18808
+ omit?: AdminProcessOmit<ExtArgs> | null
18809
+ /**
18810
+ * The data used to update AdminProcesses.
18811
+ */
18812
+ data: XOR<AdminProcessUpdateManyMutationInput, AdminProcessUncheckedUpdateManyInput>
18813
+ /**
18814
+ * Filter which AdminProcesses to update
18815
+ */
18816
+ where?: AdminProcessWhereInput
18817
+ /**
18818
+ * Limit how many AdminProcesses to update.
18819
+ */
18820
+ limit?: number
18821
+ /**
18822
+ * Choose, which related nodes to fetch as well
18823
+ */
18824
+ include?: AdminProcessIncludeUpdateManyAndReturn<ExtArgs> | null
18825
+ }
18826
+
18827
+ /**
18828
+ * AdminProcess upsert
18829
+ */
18830
+ export type AdminProcessUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18831
+ /**
18832
+ * Select specific fields to fetch from the AdminProcess
18833
+ */
18834
+ select?: AdminProcessSelect<ExtArgs> | null
18835
+ /**
18836
+ * Omit specific fields from the AdminProcess
18837
+ */
18838
+ omit?: AdminProcessOmit<ExtArgs> | null
18839
+ /**
18840
+ * Choose, which related nodes to fetch as well
18841
+ */
18842
+ include?: AdminProcessInclude<ExtArgs> | null
18843
+ /**
18844
+ * The filter to search for the AdminProcess to update in case it exists.
18845
+ */
18846
+ where: AdminProcessWhereUniqueInput
18847
+ /**
18848
+ * In case the AdminProcess found by the `where` argument doesn't exist, create a new AdminProcess with this data.
18849
+ */
18850
+ create: XOR<AdminProcessCreateInput, AdminProcessUncheckedCreateInput>
18851
+ /**
18852
+ * In case the AdminProcess was found with the provided `where` argument, update it with this data.
18853
+ */
18854
+ update: XOR<AdminProcessUpdateInput, AdminProcessUncheckedUpdateInput>
18855
+ }
18856
+
18857
+ /**
18858
+ * AdminProcess delete
18859
+ */
18860
+ export type AdminProcessDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18861
+ /**
18862
+ * Select specific fields to fetch from the AdminProcess
18863
+ */
18864
+ select?: AdminProcessSelect<ExtArgs> | null
18865
+ /**
18866
+ * Omit specific fields from the AdminProcess
18867
+ */
18868
+ omit?: AdminProcessOmit<ExtArgs> | null
18869
+ /**
18870
+ * Choose, which related nodes to fetch as well
18871
+ */
18872
+ include?: AdminProcessInclude<ExtArgs> | null
18873
+ /**
18874
+ * Filter which AdminProcess to delete.
18875
+ */
18876
+ where: AdminProcessWhereUniqueInput
18877
+ }
18878
+
18879
+ /**
18880
+ * AdminProcess deleteMany
18881
+ */
18882
+ export type AdminProcessDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18883
+ /**
18884
+ * Filter which AdminProcesses to delete
18885
+ */
18886
+ where?: AdminProcessWhereInput
18887
+ /**
18888
+ * Limit how many AdminProcesses to delete.
18889
+ */
18890
+ limit?: number
18891
+ }
18892
+
18893
+ /**
18894
+ * AdminProcess.parentProcess
18895
+ */
18896
+ export type AdminProcess$parentProcessArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18897
+ /**
18898
+ * Select specific fields to fetch from the AdminProcess
18899
+ */
18900
+ select?: AdminProcessSelect<ExtArgs> | null
18901
+ /**
18902
+ * Omit specific fields from the AdminProcess
18903
+ */
18904
+ omit?: AdminProcessOmit<ExtArgs> | null
18905
+ /**
18906
+ * Choose, which related nodes to fetch as well
18907
+ */
18908
+ include?: AdminProcessInclude<ExtArgs> | null
18909
+ where?: AdminProcessWhereInput
18910
+ }
18911
+
18912
+ /**
18913
+ * AdminProcess.childProcesses
18914
+ */
18915
+ export type AdminProcess$childProcessesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18916
+ /**
18917
+ * Select specific fields to fetch from the AdminProcess
18918
+ */
18919
+ select?: AdminProcessSelect<ExtArgs> | null
18920
+ /**
18921
+ * Omit specific fields from the AdminProcess
18922
+ */
18923
+ omit?: AdminProcessOmit<ExtArgs> | null
18924
+ /**
18925
+ * Choose, which related nodes to fetch as well
18926
+ */
18927
+ include?: AdminProcessInclude<ExtArgs> | null
18928
+ where?: AdminProcessWhereInput
18929
+ orderBy?: AdminProcessOrderByWithRelationInput | AdminProcessOrderByWithRelationInput[]
18930
+ cursor?: AdminProcessWhereUniqueInput
18931
+ take?: number
18932
+ skip?: number
18933
+ distinct?: AdminProcessScalarFieldEnum | AdminProcessScalarFieldEnum[]
18934
+ }
18935
+
18936
+ /**
18937
+ * AdminProcess without action
18938
+ */
18939
+ export type AdminProcessDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
18940
+ /**
18941
+ * Select specific fields to fetch from the AdminProcess
18942
+ */
18943
+ select?: AdminProcessSelect<ExtArgs> | null
18944
+ /**
18945
+ * Omit specific fields from the AdminProcess
18946
+ */
18947
+ omit?: AdminProcessOmit<ExtArgs> | null
18948
+ /**
18949
+ * Choose, which related nodes to fetch as well
18950
+ */
18951
+ include?: AdminProcessInclude<ExtArgs> | null
18952
+ }
18953
+
18954
+
18955
+ /**
18956
+ * Model ScriptSchedule
18957
+ */
18958
+
18959
+ export type AggregateScriptSchedule = {
18960
+ _count: ScriptScheduleCountAggregateOutputType | null
18961
+ _avg: ScriptScheduleAvgAggregateOutputType | null
18962
+ _sum: ScriptScheduleSumAggregateOutputType | null
18963
+ _min: ScriptScheduleMinAggregateOutputType | null
18964
+ _max: ScriptScheduleMaxAggregateOutputType | null
18965
+ }
18966
+
18967
+ export type ScriptScheduleAvgAggregateOutputType = {
18968
+ id: number | null
18969
+ }
18970
+
18971
+ export type ScriptScheduleSumAggregateOutputType = {
18972
+ id: number | null
18973
+ }
18974
+
18975
+ export type ScriptScheduleMinAggregateOutputType = {
18976
+ id: number | null
18977
+ scriptName: string | null
18978
+ enabled: boolean | null
18979
+ cronExpression: string | null
18980
+ timezone: string | null
18981
+ lastTriggeredAt: Date | null
18982
+ nextTriggerAt: Date | null
18983
+ externalScheduleId: string | null
18984
+ externalScheduleName: string | null
18985
+ createdAt: Date | null
18986
+ updatedAt: Date | null
18987
+ }
18988
+
18989
+ export type ScriptScheduleMaxAggregateOutputType = {
18990
+ id: number | null
18991
+ scriptName: string | null
18992
+ enabled: boolean | null
18993
+ cronExpression: string | null
18994
+ timezone: string | null
18995
+ lastTriggeredAt: Date | null
18996
+ nextTriggerAt: Date | null
18997
+ externalScheduleId: string | null
18998
+ externalScheduleName: string | null
18999
+ createdAt: Date | null
19000
+ updatedAt: Date | null
19001
+ }
19002
+
19003
+ export type ScriptScheduleCountAggregateOutputType = {
19004
+ id: number
19005
+ scriptName: number
19006
+ enabled: number
19007
+ cronExpression: number
19008
+ timezone: number
19009
+ lastTriggeredAt: number
19010
+ nextTriggerAt: number
19011
+ externalScheduleId: number
19012
+ externalScheduleName: number
19013
+ createdAt: number
19014
+ updatedAt: number
19015
+ _all: number
19016
+ }
19017
+
19018
+
19019
+ export type ScriptScheduleAvgAggregateInputType = {
19020
+ id?: true
19021
+ }
19022
+
19023
+ export type ScriptScheduleSumAggregateInputType = {
19024
+ id?: true
19025
+ }
19026
+
19027
+ export type ScriptScheduleMinAggregateInputType = {
19028
+ id?: true
19029
+ scriptName?: true
19030
+ enabled?: true
19031
+ cronExpression?: true
19032
+ timezone?: true
19033
+ lastTriggeredAt?: true
19034
+ nextTriggerAt?: true
19035
+ externalScheduleId?: true
19036
+ externalScheduleName?: true
19037
+ createdAt?: true
19038
+ updatedAt?: true
19039
+ }
19040
+
19041
+ export type ScriptScheduleMaxAggregateInputType = {
19042
+ id?: true
19043
+ scriptName?: true
19044
+ enabled?: true
19045
+ cronExpression?: true
19046
+ timezone?: true
19047
+ lastTriggeredAt?: true
19048
+ nextTriggerAt?: true
19049
+ externalScheduleId?: true
19050
+ externalScheduleName?: true
19051
+ createdAt?: true
19052
+ updatedAt?: true
19053
+ }
19054
+
19055
+ export type ScriptScheduleCountAggregateInputType = {
19056
+ id?: true
19057
+ scriptName?: true
19058
+ enabled?: true
19059
+ cronExpression?: true
19060
+ timezone?: true
19061
+ lastTriggeredAt?: true
19062
+ nextTriggerAt?: true
19063
+ externalScheduleId?: true
19064
+ externalScheduleName?: true
19065
+ createdAt?: true
19066
+ updatedAt?: true
19067
+ _all?: true
19068
+ }
19069
+
19070
+ export type ScriptScheduleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19071
+ /**
19072
+ * Filter which ScriptSchedule to aggregate.
19073
+ */
19074
+ where?: ScriptScheduleWhereInput
19075
+ /**
19076
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19077
+ *
19078
+ * Determine the order of ScriptSchedules to fetch.
19079
+ */
19080
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
19081
+ /**
19082
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19083
+ *
19084
+ * Sets the start position
19085
+ */
19086
+ cursor?: ScriptScheduleWhereUniqueInput
19087
+ /**
19088
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19089
+ *
19090
+ * Take `±n` ScriptSchedules from the position of the cursor.
19091
+ */
19092
+ take?: number
19093
+ /**
19094
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19095
+ *
19096
+ * Skip the first `n` ScriptSchedules.
19097
+ */
19098
+ skip?: number
19099
+ /**
19100
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19101
+ *
19102
+ * Count returned ScriptSchedules
19103
+ **/
19104
+ _count?: true | ScriptScheduleCountAggregateInputType
19105
+ /**
19106
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19107
+ *
19108
+ * Select which fields to average
19109
+ **/
19110
+ _avg?: ScriptScheduleAvgAggregateInputType
19111
+ /**
19112
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19113
+ *
19114
+ * Select which fields to sum
19115
+ **/
19116
+ _sum?: ScriptScheduleSumAggregateInputType
19117
+ /**
19118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19119
+ *
19120
+ * Select which fields to find the minimum value
19121
+ **/
19122
+ _min?: ScriptScheduleMinAggregateInputType
19123
+ /**
19124
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19125
+ *
19126
+ * Select which fields to find the maximum value
19127
+ **/
19128
+ _max?: ScriptScheduleMaxAggregateInputType
19129
+ }
19130
+
19131
+ export type GetScriptScheduleAggregateType<T extends ScriptScheduleAggregateArgs> = {
19132
+ [P in keyof T & keyof AggregateScriptSchedule]: P extends '_count' | 'count'
19133
+ ? T[P] extends true
19134
+ ? number
19135
+ : GetScalarType<T[P], AggregateScriptSchedule[P]>
19136
+ : GetScalarType<T[P], AggregateScriptSchedule[P]>
19137
+ }
19138
+
19139
+
19140
+
19141
+
19142
+ export type ScriptScheduleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19143
+ where?: ScriptScheduleWhereInput
19144
+ orderBy?: ScriptScheduleOrderByWithAggregationInput | ScriptScheduleOrderByWithAggregationInput[]
19145
+ by: ScriptScheduleScalarFieldEnum[] | ScriptScheduleScalarFieldEnum
19146
+ having?: ScriptScheduleScalarWhereWithAggregatesInput
19147
+ take?: number
19148
+ skip?: number
19149
+ _count?: ScriptScheduleCountAggregateInputType | true
19150
+ _avg?: ScriptScheduleAvgAggregateInputType
19151
+ _sum?: ScriptScheduleSumAggregateInputType
19152
+ _min?: ScriptScheduleMinAggregateInputType
19153
+ _max?: ScriptScheduleMaxAggregateInputType
19154
+ }
19155
+
19156
+ export type ScriptScheduleGroupByOutputType = {
19157
+ id: number
19158
+ scriptName: string
19159
+ enabled: boolean
19160
+ cronExpression: string | null
19161
+ timezone: string
19162
+ lastTriggeredAt: Date | null
19163
+ nextTriggerAt: Date | null
19164
+ externalScheduleId: string | null
19165
+ externalScheduleName: string | null
19166
+ createdAt: Date
19167
+ updatedAt: Date
19168
+ _count: ScriptScheduleCountAggregateOutputType | null
19169
+ _avg: ScriptScheduleAvgAggregateOutputType | null
19170
+ _sum: ScriptScheduleSumAggregateOutputType | null
19171
+ _min: ScriptScheduleMinAggregateOutputType | null
19172
+ _max: ScriptScheduleMaxAggregateOutputType | null
19173
+ }
19174
+
19175
+ type GetScriptScheduleGroupByPayload<T extends ScriptScheduleGroupByArgs> = Prisma.PrismaPromise<
19176
+ Array<
19177
+ PickEnumerable<ScriptScheduleGroupByOutputType, T['by']> &
19178
+ {
19179
+ [P in ((keyof T) & (keyof ScriptScheduleGroupByOutputType))]: P extends '_count'
19180
+ ? T[P] extends boolean
19181
+ ? number
19182
+ : GetScalarType<T[P], ScriptScheduleGroupByOutputType[P]>
19183
+ : GetScalarType<T[P], ScriptScheduleGroupByOutputType[P]>
19184
+ }
19185
+ >
19186
+ >
19187
+
19188
+
19189
+ export type ScriptScheduleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19190
+ id?: boolean
19191
+ scriptName?: boolean
19192
+ enabled?: boolean
19193
+ cronExpression?: boolean
19194
+ timezone?: boolean
19195
+ lastTriggeredAt?: boolean
19196
+ nextTriggerAt?: boolean
19197
+ externalScheduleId?: boolean
19198
+ externalScheduleName?: boolean
19199
+ createdAt?: boolean
19200
+ updatedAt?: boolean
19201
+ }, ExtArgs["result"]["scriptSchedule"]>
19202
+
19203
+ export type ScriptScheduleSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19204
+ id?: boolean
19205
+ scriptName?: boolean
19206
+ enabled?: boolean
19207
+ cronExpression?: boolean
19208
+ timezone?: boolean
19209
+ lastTriggeredAt?: boolean
19210
+ nextTriggerAt?: boolean
19211
+ externalScheduleId?: boolean
19212
+ externalScheduleName?: boolean
19213
+ createdAt?: boolean
19214
+ updatedAt?: boolean
19215
+ }, ExtArgs["result"]["scriptSchedule"]>
19216
+
19217
+ export type ScriptScheduleSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19218
+ id?: boolean
19219
+ scriptName?: boolean
19220
+ enabled?: boolean
19221
+ cronExpression?: boolean
19222
+ timezone?: boolean
19223
+ lastTriggeredAt?: boolean
19224
+ nextTriggerAt?: boolean
19225
+ externalScheduleId?: boolean
19226
+ externalScheduleName?: boolean
19227
+ createdAt?: boolean
19228
+ updatedAt?: boolean
19229
+ }, ExtArgs["result"]["scriptSchedule"]>
19230
+
19231
+ export type ScriptScheduleSelectScalar = {
19232
+ id?: boolean
19233
+ scriptName?: boolean
19234
+ enabled?: boolean
19235
+ cronExpression?: boolean
19236
+ timezone?: boolean
19237
+ lastTriggeredAt?: boolean
19238
+ nextTriggerAt?: boolean
19239
+ externalScheduleId?: boolean
19240
+ externalScheduleName?: boolean
19241
+ createdAt?: boolean
19242
+ updatedAt?: boolean
19243
+ }
19244
+
19245
+ 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"]>
19246
+
19247
+ export type $ScriptSchedulePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19248
+ name: "ScriptSchedule"
19249
+ objects: {}
19250
+ scalars: $Extensions.GetPayloadResult<{
19251
+ id: number
19252
+ scriptName: string
19253
+ enabled: boolean
19254
+ cronExpression: string | null
19255
+ timezone: string
19256
+ lastTriggeredAt: Date | null
19257
+ nextTriggerAt: Date | null
19258
+ externalScheduleId: string | null
19259
+ externalScheduleName: string | null
19260
+ createdAt: Date
19261
+ updatedAt: Date
19262
+ }, ExtArgs["result"]["scriptSchedule"]>
19263
+ composites: {}
19264
+ }
19265
+
19266
+ type ScriptScheduleGetPayload<S extends boolean | null | undefined | ScriptScheduleDefaultArgs> = $Result.GetResult<Prisma.$ScriptSchedulePayload, S>
19267
+
19268
+ type ScriptScheduleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
19269
+ Omit<ScriptScheduleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
19270
+ select?: ScriptScheduleCountAggregateInputType | true
19271
+ }
19272
+
19273
+ export interface ScriptScheduleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
19274
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScriptSchedule'], meta: { name: 'ScriptSchedule' } }
19275
+ /**
19276
+ * Find zero or one ScriptSchedule that matches the filter.
19277
+ * @param {ScriptScheduleFindUniqueArgs} args - Arguments to find a ScriptSchedule
19278
+ * @example
19279
+ * // Get one ScriptSchedule
19280
+ * const scriptSchedule = await prisma.scriptSchedule.findUnique({
19281
+ * where: {
19282
+ * // ... provide filter here
19283
+ * }
19284
+ * })
19285
+ */
19286
+ findUnique<T extends ScriptScheduleFindUniqueArgs>(args: SelectSubset<T, ScriptScheduleFindUniqueArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
19287
+
19288
+ /**
19289
+ * Find one ScriptSchedule that matches the filter or throw an error with `error.code='P2025'`
19290
+ * if no matches were found.
19291
+ * @param {ScriptScheduleFindUniqueOrThrowArgs} args - Arguments to find a ScriptSchedule
19292
+ * @example
19293
+ * // Get one ScriptSchedule
19294
+ * const scriptSchedule = await prisma.scriptSchedule.findUniqueOrThrow({
19295
+ * where: {
19296
+ * // ... provide filter here
19297
+ * }
19298
+ * })
19299
+ */
19300
+ findUniqueOrThrow<T extends ScriptScheduleFindUniqueOrThrowArgs>(args: SelectSubset<T, ScriptScheduleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19301
+
19302
+ /**
19303
+ * Find the first ScriptSchedule that matches the filter.
19304
+ * Note, that providing `undefined` is treated as the value not being there.
19305
+ * Read more here: https://pris.ly/d/null-undefined
19306
+ * @param {ScriptScheduleFindFirstArgs} args - Arguments to find a ScriptSchedule
19307
+ * @example
19308
+ * // Get one ScriptSchedule
19309
+ * const scriptSchedule = await prisma.scriptSchedule.findFirst({
19310
+ * where: {
19311
+ * // ... provide filter here
19312
+ * }
19313
+ * })
19314
+ */
19315
+ findFirst<T extends ScriptScheduleFindFirstArgs>(args?: SelectSubset<T, ScriptScheduleFindFirstArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
19316
+
19317
+ /**
19318
+ * Find the first ScriptSchedule that matches the filter or
19319
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
19320
+ * Note, that providing `undefined` is treated as the value not being there.
19321
+ * Read more here: https://pris.ly/d/null-undefined
19322
+ * @param {ScriptScheduleFindFirstOrThrowArgs} args - Arguments to find a ScriptSchedule
19323
+ * @example
19324
+ * // Get one ScriptSchedule
19325
+ * const scriptSchedule = await prisma.scriptSchedule.findFirstOrThrow({
19326
+ * where: {
19327
+ * // ... provide filter here
19328
+ * }
19329
+ * })
19330
+ */
19331
+ findFirstOrThrow<T extends ScriptScheduleFindFirstOrThrowArgs>(args?: SelectSubset<T, ScriptScheduleFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19332
+
19333
+ /**
19334
+ * Find zero or more ScriptSchedules that matches the filter.
19335
+ * Note, that providing `undefined` is treated as the value not being there.
19336
+ * Read more here: https://pris.ly/d/null-undefined
19337
+ * @param {ScriptScheduleFindManyArgs} args - Arguments to filter and select certain fields only.
19338
+ * @example
19339
+ * // Get all ScriptSchedules
19340
+ * const scriptSchedules = await prisma.scriptSchedule.findMany()
19341
+ *
19342
+ * // Get first 10 ScriptSchedules
19343
+ * const scriptSchedules = await prisma.scriptSchedule.findMany({ take: 10 })
19344
+ *
19345
+ * // Only select the `id`
19346
+ * const scriptScheduleWithIdOnly = await prisma.scriptSchedule.findMany({ select: { id: true } })
19347
+ *
19348
+ */
19349
+ findMany<T extends ScriptScheduleFindManyArgs>(args?: SelectSubset<T, ScriptScheduleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
19350
+
19351
+ /**
19352
+ * Create a ScriptSchedule.
19353
+ * @param {ScriptScheduleCreateArgs} args - Arguments to create a ScriptSchedule.
19354
+ * @example
19355
+ * // Create one ScriptSchedule
19356
+ * const ScriptSchedule = await prisma.scriptSchedule.create({
19357
+ * data: {
19358
+ * // ... data to create a ScriptSchedule
19359
+ * }
19360
+ * })
19361
+ *
19362
+ */
19363
+ create<T extends ScriptScheduleCreateArgs>(args: SelectSubset<T, ScriptScheduleCreateArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19364
+
19365
+ /**
19366
+ * Create many ScriptSchedules.
19367
+ * @param {ScriptScheduleCreateManyArgs} args - Arguments to create many ScriptSchedules.
19368
+ * @example
19369
+ * // Create many ScriptSchedules
19370
+ * const scriptSchedule = await prisma.scriptSchedule.createMany({
19371
+ * data: [
19372
+ * // ... provide data here
19373
+ * ]
19374
+ * })
19375
+ *
19376
+ */
19377
+ createMany<T extends ScriptScheduleCreateManyArgs>(args?: SelectSubset<T, ScriptScheduleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19378
+
19379
+ /**
19380
+ * Create many ScriptSchedules and returns the data saved in the database.
19381
+ * @param {ScriptScheduleCreateManyAndReturnArgs} args - Arguments to create many ScriptSchedules.
19382
+ * @example
19383
+ * // Create many ScriptSchedules
19384
+ * const scriptSchedule = await prisma.scriptSchedule.createManyAndReturn({
19385
+ * data: [
19386
+ * // ... provide data here
19387
+ * ]
19388
+ * })
19389
+ *
19390
+ * // Create many ScriptSchedules and only return the `id`
19391
+ * const scriptScheduleWithIdOnly = await prisma.scriptSchedule.createManyAndReturn({
19392
+ * select: { id: true },
19393
+ * data: [
19394
+ * // ... provide data here
19395
+ * ]
19396
+ * })
19397
+ * Note, that providing `undefined` is treated as the value not being there.
19398
+ * Read more here: https://pris.ly/d/null-undefined
19399
+ *
19400
+ */
19401
+ createManyAndReturn<T extends ScriptScheduleCreateManyAndReturnArgs>(args?: SelectSubset<T, ScriptScheduleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
19402
+
19403
+ /**
19404
+ * Delete a ScriptSchedule.
19405
+ * @param {ScriptScheduleDeleteArgs} args - Arguments to delete one ScriptSchedule.
19406
+ * @example
19407
+ * // Delete one ScriptSchedule
19408
+ * const ScriptSchedule = await prisma.scriptSchedule.delete({
19409
+ * where: {
19410
+ * // ... filter to delete one ScriptSchedule
19411
+ * }
19412
+ * })
19413
+ *
19414
+ */
19415
+ delete<T extends ScriptScheduleDeleteArgs>(args: SelectSubset<T, ScriptScheduleDeleteArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19416
+
19417
+ /**
19418
+ * Update one ScriptSchedule.
19419
+ * @param {ScriptScheduleUpdateArgs} args - Arguments to update one ScriptSchedule.
19420
+ * @example
19421
+ * // Update one ScriptSchedule
19422
+ * const scriptSchedule = await prisma.scriptSchedule.update({
19423
+ * where: {
19424
+ * // ... provide filter here
19425
+ * },
19426
+ * data: {
19427
+ * // ... provide data here
19428
+ * }
19429
+ * })
19430
+ *
19431
+ */
19432
+ update<T extends ScriptScheduleUpdateArgs>(args: SelectSubset<T, ScriptScheduleUpdateArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19433
+
19434
+ /**
19435
+ * Delete zero or more ScriptSchedules.
19436
+ * @param {ScriptScheduleDeleteManyArgs} args - Arguments to filter ScriptSchedules to delete.
19437
+ * @example
19438
+ * // Delete a few ScriptSchedules
19439
+ * const { count } = await prisma.scriptSchedule.deleteMany({
19440
+ * where: {
19441
+ * // ... provide filter here
19442
+ * }
19443
+ * })
19444
+ *
19445
+ */
19446
+ deleteMany<T extends ScriptScheduleDeleteManyArgs>(args?: SelectSubset<T, ScriptScheduleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19447
+
19448
+ /**
19449
+ * Update zero or more ScriptSchedules.
19450
+ * Note, that providing `undefined` is treated as the value not being there.
19451
+ * Read more here: https://pris.ly/d/null-undefined
19452
+ * @param {ScriptScheduleUpdateManyArgs} args - Arguments to update one or more rows.
19453
+ * @example
19454
+ * // Update many ScriptSchedules
19455
+ * const scriptSchedule = await prisma.scriptSchedule.updateMany({
19456
+ * where: {
19457
+ * // ... provide filter here
19458
+ * },
19459
+ * data: {
19460
+ * // ... provide data here
19461
+ * }
19462
+ * })
19463
+ *
19464
+ */
19465
+ updateMany<T extends ScriptScheduleUpdateManyArgs>(args: SelectSubset<T, ScriptScheduleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19466
+
19467
+ /**
19468
+ * Update zero or more ScriptSchedules and returns the data updated in the database.
19469
+ * @param {ScriptScheduleUpdateManyAndReturnArgs} args - Arguments to update many ScriptSchedules.
19470
+ * @example
19471
+ * // Update many ScriptSchedules
19472
+ * const scriptSchedule = await prisma.scriptSchedule.updateManyAndReturn({
19473
+ * where: {
19474
+ * // ... provide filter here
19475
+ * },
19476
+ * data: [
19477
+ * // ... provide data here
19478
+ * ]
19479
+ * })
19480
+ *
19481
+ * // Update zero or more ScriptSchedules and only return the `id`
19482
+ * const scriptScheduleWithIdOnly = await prisma.scriptSchedule.updateManyAndReturn({
19483
+ * select: { id: true },
19484
+ * where: {
19485
+ * // ... provide filter here
19486
+ * },
19487
+ * data: [
19488
+ * // ... provide data here
19489
+ * ]
19490
+ * })
19491
+ * Note, that providing `undefined` is treated as the value not being there.
19492
+ * Read more here: https://pris.ly/d/null-undefined
19493
+ *
19494
+ */
19495
+ updateManyAndReturn<T extends ScriptScheduleUpdateManyAndReturnArgs>(args: SelectSubset<T, ScriptScheduleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
19496
+
19497
+ /**
19498
+ * Create or update one ScriptSchedule.
19499
+ * @param {ScriptScheduleUpsertArgs} args - Arguments to update or create a ScriptSchedule.
19500
+ * @example
19501
+ * // Update or create a ScriptSchedule
19502
+ * const scriptSchedule = await prisma.scriptSchedule.upsert({
19503
+ * create: {
19504
+ * // ... data to create a ScriptSchedule
19505
+ * },
19506
+ * update: {
19507
+ * // ... in case it already exists, update
19508
+ * },
19509
+ * where: {
19510
+ * // ... the filter for the ScriptSchedule we want to update
19511
+ * }
19512
+ * })
19513
+ */
19514
+ upsert<T extends ScriptScheduleUpsertArgs>(args: SelectSubset<T, ScriptScheduleUpsertArgs<ExtArgs>>): Prisma__ScriptScheduleClient<$Result.GetResult<Prisma.$ScriptSchedulePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19515
+
19516
+
19517
+ /**
19518
+ * Count the number of ScriptSchedules.
19519
+ * Note, that providing `undefined` is treated as the value not being there.
19520
+ * Read more here: https://pris.ly/d/null-undefined
19521
+ * @param {ScriptScheduleCountArgs} args - Arguments to filter ScriptSchedules to count.
19522
+ * @example
19523
+ * // Count the number of ScriptSchedules
19524
+ * const count = await prisma.scriptSchedule.count({
19525
+ * where: {
19526
+ * // ... the filter for the ScriptSchedules we want to count
19527
+ * }
19528
+ * })
19529
+ **/
19530
+ count<T extends ScriptScheduleCountArgs>(
19531
+ args?: Subset<T, ScriptScheduleCountArgs>,
19532
+ ): Prisma.PrismaPromise<
19533
+ T extends $Utils.Record<'select', any>
19534
+ ? T['select'] extends true
19535
+ ? number
19536
+ : GetScalarType<T['select'], ScriptScheduleCountAggregateOutputType>
19537
+ : number
19538
+ >
19539
+
19540
+ /**
19541
+ * Allows you to perform aggregations operations on a ScriptSchedule.
19542
+ * Note, that providing `undefined` is treated as the value not being there.
19543
+ * Read more here: https://pris.ly/d/null-undefined
19544
+ * @param {ScriptScheduleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
19545
+ * @example
19546
+ * // Ordered by age ascending
19547
+ * // Where email contains prisma.io
19548
+ * // Limited to the 10 users
19549
+ * const aggregations = await prisma.user.aggregate({
19550
+ * _avg: {
19551
+ * age: true,
19552
+ * },
19553
+ * where: {
19554
+ * email: {
19555
+ * contains: "prisma.io",
19556
+ * },
19557
+ * },
19558
+ * orderBy: {
19559
+ * age: "asc",
19560
+ * },
19561
+ * take: 10,
19562
+ * })
19563
+ **/
19564
+ aggregate<T extends ScriptScheduleAggregateArgs>(args: Subset<T, ScriptScheduleAggregateArgs>): Prisma.PrismaPromise<GetScriptScheduleAggregateType<T>>
19565
+
19566
+ /**
19567
+ * Group by ScriptSchedule.
19568
+ * Note, that providing `undefined` is treated as the value not being there.
19569
+ * Read more here: https://pris.ly/d/null-undefined
19570
+ * @param {ScriptScheduleGroupByArgs} args - Group by arguments.
19571
+ * @example
19572
+ * // Group by city, order by createdAt, get count
19573
+ * const result = await prisma.user.groupBy({
19574
+ * by: ['city', 'createdAt'],
19575
+ * orderBy: {
19576
+ * createdAt: true
19577
+ * },
19578
+ * _count: {
19579
+ * _all: true
19580
+ * },
19581
+ * })
19582
+ *
19583
+ **/
19584
+ groupBy<
19585
+ T extends ScriptScheduleGroupByArgs,
19586
+ HasSelectOrTake extends Or<
19587
+ Extends<'skip', Keys<T>>,
19588
+ Extends<'take', Keys<T>>
19589
+ >,
19590
+ OrderByArg extends True extends HasSelectOrTake
19591
+ ? { orderBy: ScriptScheduleGroupByArgs['orderBy'] }
19592
+ : { orderBy?: ScriptScheduleGroupByArgs['orderBy'] },
19593
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
19594
+ ByFields extends MaybeTupleToUnion<T['by']>,
19595
+ ByValid extends Has<ByFields, OrderFields>,
19596
+ HavingFields extends GetHavingFields<T['having']>,
19597
+ HavingValid extends Has<ByFields, HavingFields>,
19598
+ ByEmpty extends T['by'] extends never[] ? True : False,
19599
+ InputErrors extends ByEmpty extends True
19600
+ ? `Error: "by" must not be empty.`
19601
+ : HavingValid extends False
19602
+ ? {
19603
+ [P in HavingFields]: P extends ByFields
19604
+ ? never
19605
+ : P extends string
19606
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
19607
+ : [
19608
+ Error,
19609
+ 'Field ',
19610
+ P,
19611
+ ` in "having" needs to be provided in "by"`,
19612
+ ]
19613
+ }[HavingFields]
19614
+ : 'take' extends Keys<T>
19615
+ ? 'orderBy' extends Keys<T>
19616
+ ? ByValid extends True
19617
+ ? {}
19618
+ : {
19619
+ [P in OrderFields]: P extends ByFields
19620
+ ? never
19621
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19622
+ }[OrderFields]
19623
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
19624
+ : 'skip' extends Keys<T>
19625
+ ? 'orderBy' extends Keys<T>
19626
+ ? ByValid extends True
19627
+ ? {}
19628
+ : {
19629
+ [P in OrderFields]: P extends ByFields
19630
+ ? never
19631
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19632
+ }[OrderFields]
19633
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
19634
+ : ByValid extends True
19635
+ ? {}
19636
+ : {
19637
+ [P in OrderFields]: P extends ByFields
19638
+ ? never
19639
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19640
+ }[OrderFields]
19641
+ >(args: SubsetIntersection<T, ScriptScheduleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScriptScheduleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
19642
+ /**
19643
+ * Fields of the ScriptSchedule model
19644
+ */
19645
+ readonly fields: ScriptScheduleFieldRefs;
19646
+ }
19647
+
19648
+ /**
19649
+ * The delegate class that acts as a "Promise-like" for ScriptSchedule.
19650
+ * Why is this prefixed with `Prisma__`?
19651
+ * Because we want to prevent naming conflicts as mentioned in
19652
+ * https://github.com/prisma/prisma-client-js/issues/707
19653
+ */
19654
+ export interface Prisma__ScriptScheduleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
19655
+ readonly [Symbol.toStringTag]: "PrismaPromise"
19656
+ /**
19657
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
19658
+ * @param onfulfilled The callback to execute when the Promise is resolved.
19659
+ * @param onrejected The callback to execute when the Promise is rejected.
19660
+ * @returns A Promise for the completion of which ever callback is executed.
19661
+ */
19662
+ 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>
19663
+ /**
19664
+ * Attaches a callback for only the rejection of the Promise.
19665
+ * @param onrejected The callback to execute when the Promise is rejected.
19666
+ * @returns A Promise for the completion of the callback.
19667
+ */
19668
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
19669
+ /**
19670
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
19671
+ * resolved value cannot be modified from the callback.
19672
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
19673
+ * @returns A Promise for the completion of the callback.
19674
+ */
19675
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
19676
+ }
19677
+
19678
+
19679
+
19680
+
19681
+ /**
19682
+ * Fields of the ScriptSchedule model
19683
+ */
19684
+ interface ScriptScheduleFieldRefs {
19685
+ readonly id: FieldRef<"ScriptSchedule", 'Int'>
19686
+ readonly scriptName: FieldRef<"ScriptSchedule", 'String'>
19687
+ readonly enabled: FieldRef<"ScriptSchedule", 'Boolean'>
19688
+ readonly cronExpression: FieldRef<"ScriptSchedule", 'String'>
19689
+ readonly timezone: FieldRef<"ScriptSchedule", 'String'>
19690
+ readonly lastTriggeredAt: FieldRef<"ScriptSchedule", 'DateTime'>
19691
+ readonly nextTriggerAt: FieldRef<"ScriptSchedule", 'DateTime'>
19692
+ readonly externalScheduleId: FieldRef<"ScriptSchedule", 'String'>
19693
+ readonly externalScheduleName: FieldRef<"ScriptSchedule", 'String'>
19694
+ readonly createdAt: FieldRef<"ScriptSchedule", 'DateTime'>
19695
+ readonly updatedAt: FieldRef<"ScriptSchedule", 'DateTime'>
19696
+ }
19697
+
19698
+
19699
+ // Custom InputTypes
19700
+ /**
19701
+ * ScriptSchedule findUnique
19702
+ */
19703
+ export type ScriptScheduleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19704
+ /**
19705
+ * Select specific fields to fetch from the ScriptSchedule
19706
+ */
19707
+ select?: ScriptScheduleSelect<ExtArgs> | null
19708
+ /**
19709
+ * Omit specific fields from the ScriptSchedule
19710
+ */
19711
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19712
+ /**
19713
+ * Filter, which ScriptSchedule to fetch.
19714
+ */
19715
+ where: ScriptScheduleWhereUniqueInput
19716
+ }
19717
+
19718
+ /**
19719
+ * ScriptSchedule findUniqueOrThrow
19720
+ */
19721
+ export type ScriptScheduleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19722
+ /**
19723
+ * Select specific fields to fetch from the ScriptSchedule
19724
+ */
19725
+ select?: ScriptScheduleSelect<ExtArgs> | null
19726
+ /**
19727
+ * Omit specific fields from the ScriptSchedule
19728
+ */
19729
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19730
+ /**
19731
+ * Filter, which ScriptSchedule to fetch.
19732
+ */
19733
+ where: ScriptScheduleWhereUniqueInput
19734
+ }
19735
+
19736
+ /**
19737
+ * ScriptSchedule findFirst
19738
+ */
19739
+ export type ScriptScheduleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19740
+ /**
19741
+ * Select specific fields to fetch from the ScriptSchedule
19742
+ */
19743
+ select?: ScriptScheduleSelect<ExtArgs> | null
19744
+ /**
19745
+ * Omit specific fields from the ScriptSchedule
19746
+ */
19747
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19748
+ /**
19749
+ * Filter, which ScriptSchedule to fetch.
19750
+ */
19751
+ where?: ScriptScheduleWhereInput
19752
+ /**
19753
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19754
+ *
19755
+ * Determine the order of ScriptSchedules to fetch.
19756
+ */
19757
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
19758
+ /**
19759
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19760
+ *
19761
+ * Sets the position for searching for ScriptSchedules.
19762
+ */
19763
+ cursor?: ScriptScheduleWhereUniqueInput
19764
+ /**
19765
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19766
+ *
19767
+ * Take `±n` ScriptSchedules from the position of the cursor.
19768
+ */
19769
+ take?: number
19770
+ /**
19771
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19772
+ *
19773
+ * Skip the first `n` ScriptSchedules.
19774
+ */
19775
+ skip?: number
19776
+ /**
19777
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
19778
+ *
19779
+ * Filter by unique combinations of ScriptSchedules.
19780
+ */
19781
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
19782
+ }
19783
+
19784
+ /**
19785
+ * ScriptSchedule findFirstOrThrow
19786
+ */
19787
+ export type ScriptScheduleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19788
+ /**
19789
+ * Select specific fields to fetch from the ScriptSchedule
19790
+ */
19791
+ select?: ScriptScheduleSelect<ExtArgs> | null
19792
+ /**
19793
+ * Omit specific fields from the ScriptSchedule
19794
+ */
19795
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19796
+ /**
19797
+ * Filter, which ScriptSchedule to fetch.
19798
+ */
19799
+ where?: ScriptScheduleWhereInput
19800
+ /**
19801
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19802
+ *
19803
+ * Determine the order of ScriptSchedules to fetch.
19804
+ */
19805
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
19806
+ /**
19807
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19808
+ *
19809
+ * Sets the position for searching for ScriptSchedules.
19810
+ */
19811
+ cursor?: ScriptScheduleWhereUniqueInput
19812
+ /**
19813
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19814
+ *
19815
+ * Take `±n` ScriptSchedules from the position of the cursor.
19816
+ */
19817
+ take?: number
19818
+ /**
19819
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19820
+ *
19821
+ * Skip the first `n` ScriptSchedules.
19822
+ */
19823
+ skip?: number
19824
+ /**
19825
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
19826
+ *
19827
+ * Filter by unique combinations of ScriptSchedules.
19828
+ */
19829
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
19830
+ }
19831
+
19832
+ /**
19833
+ * ScriptSchedule findMany
19834
+ */
19835
+ export type ScriptScheduleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19836
+ /**
19837
+ * Select specific fields to fetch from the ScriptSchedule
19838
+ */
19839
+ select?: ScriptScheduleSelect<ExtArgs> | null
19840
+ /**
19841
+ * Omit specific fields from the ScriptSchedule
19842
+ */
19843
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19844
+ /**
19845
+ * Filter, which ScriptSchedules to fetch.
19846
+ */
19847
+ where?: ScriptScheduleWhereInput
19848
+ /**
19849
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19850
+ *
19851
+ * Determine the order of ScriptSchedules to fetch.
19852
+ */
19853
+ orderBy?: ScriptScheduleOrderByWithRelationInput | ScriptScheduleOrderByWithRelationInput[]
19854
+ /**
19855
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19856
+ *
19857
+ * Sets the position for listing ScriptSchedules.
19858
+ */
19859
+ cursor?: ScriptScheduleWhereUniqueInput
19860
+ /**
19861
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19862
+ *
19863
+ * Take `±n` ScriptSchedules from the position of the cursor.
19864
+ */
19865
+ take?: number
19866
+ /**
19867
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19868
+ *
19869
+ * Skip the first `n` ScriptSchedules.
19870
+ */
19871
+ skip?: number
19872
+ distinct?: ScriptScheduleScalarFieldEnum | ScriptScheduleScalarFieldEnum[]
19873
+ }
19874
+
19875
+ /**
19876
+ * ScriptSchedule create
19877
+ */
19878
+ export type ScriptScheduleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19879
+ /**
19880
+ * Select specific fields to fetch from the ScriptSchedule
19881
+ */
19882
+ select?: ScriptScheduleSelect<ExtArgs> | null
19883
+ /**
19884
+ * Omit specific fields from the ScriptSchedule
19885
+ */
19886
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19887
+ /**
19888
+ * The data needed to create a ScriptSchedule.
19889
+ */
19890
+ data: XOR<ScriptScheduleCreateInput, ScriptScheduleUncheckedCreateInput>
19891
+ }
19892
+
19893
+ /**
19894
+ * ScriptSchedule createMany
19895
+ */
19896
+ export type ScriptScheduleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19897
+ /**
19898
+ * The data used to create many ScriptSchedules.
19899
+ */
19900
+ data: ScriptScheduleCreateManyInput | ScriptScheduleCreateManyInput[]
19901
+ skipDuplicates?: boolean
19902
+ }
19903
+
19904
+ /**
19905
+ * ScriptSchedule createManyAndReturn
19906
+ */
19907
+ export type ScriptScheduleCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19908
+ /**
19909
+ * Select specific fields to fetch from the ScriptSchedule
19910
+ */
19911
+ select?: ScriptScheduleSelectCreateManyAndReturn<ExtArgs> | null
19912
+ /**
19913
+ * Omit specific fields from the ScriptSchedule
19914
+ */
19915
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19916
+ /**
19917
+ * The data used to create many ScriptSchedules.
19918
+ */
19919
+ data: ScriptScheduleCreateManyInput | ScriptScheduleCreateManyInput[]
19920
+ skipDuplicates?: boolean
19921
+ }
19922
+
19923
+ /**
19924
+ * ScriptSchedule update
19925
+ */
19926
+ export type ScriptScheduleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19927
+ /**
19928
+ * Select specific fields to fetch from the ScriptSchedule
19929
+ */
19930
+ select?: ScriptScheduleSelect<ExtArgs> | null
19931
+ /**
19932
+ * Omit specific fields from the ScriptSchedule
19933
+ */
19934
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19935
+ /**
19936
+ * The data needed to update a ScriptSchedule.
19937
+ */
19938
+ data: XOR<ScriptScheduleUpdateInput, ScriptScheduleUncheckedUpdateInput>
19939
+ /**
19940
+ * Choose, which ScriptSchedule to update.
19941
+ */
19942
+ where: ScriptScheduleWhereUniqueInput
19943
+ }
19944
+
19945
+ /**
19946
+ * ScriptSchedule updateMany
19947
+ */
19948
+ export type ScriptScheduleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19949
+ /**
19950
+ * The data used to update ScriptSchedules.
19951
+ */
19952
+ data: XOR<ScriptScheduleUpdateManyMutationInput, ScriptScheduleUncheckedUpdateManyInput>
19953
+ /**
19954
+ * Filter which ScriptSchedules to update
19955
+ */
19956
+ where?: ScriptScheduleWhereInput
19957
+ /**
19958
+ * Limit how many ScriptSchedules to update.
19959
+ */
19960
+ limit?: number
19961
+ }
19962
+
19963
+ /**
19964
+ * ScriptSchedule updateManyAndReturn
19965
+ */
19966
+ export type ScriptScheduleUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19967
+ /**
19968
+ * Select specific fields to fetch from the ScriptSchedule
19969
+ */
19970
+ select?: ScriptScheduleSelectUpdateManyAndReturn<ExtArgs> | null
19971
+ /**
19972
+ * Omit specific fields from the ScriptSchedule
19973
+ */
19974
+ omit?: ScriptScheduleOmit<ExtArgs> | null
19975
+ /**
19976
+ * The data used to update ScriptSchedules.
19977
+ */
19978
+ data: XOR<ScriptScheduleUpdateManyMutationInput, ScriptScheduleUncheckedUpdateManyInput>
19979
+ /**
19980
+ * Filter which ScriptSchedules to update
19981
+ */
19982
+ where?: ScriptScheduleWhereInput
19983
+ /**
19984
+ * Limit how many ScriptSchedules to update.
19985
+ */
19986
+ limit?: number
19987
+ }
19988
+
19989
+ /**
19990
+ * ScriptSchedule upsert
19991
+ */
19992
+ export type ScriptScheduleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19993
+ /**
19994
+ * Select specific fields to fetch from the ScriptSchedule
19995
+ */
19996
+ select?: ScriptScheduleSelect<ExtArgs> | null
19997
+ /**
19998
+ * Omit specific fields from the ScriptSchedule
19999
+ */
20000
+ omit?: ScriptScheduleOmit<ExtArgs> | null
20001
+ /**
20002
+ * The filter to search for the ScriptSchedule to update in case it exists.
20003
+ */
20004
+ where: ScriptScheduleWhereUniqueInput
20005
+ /**
20006
+ * In case the ScriptSchedule found by the `where` argument doesn't exist, create a new ScriptSchedule with this data.
20007
+ */
20008
+ create: XOR<ScriptScheduleCreateInput, ScriptScheduleUncheckedCreateInput>
20009
+ /**
20010
+ * In case the ScriptSchedule was found with the provided `where` argument, update it with this data.
20011
+ */
20012
+ update: XOR<ScriptScheduleUpdateInput, ScriptScheduleUncheckedUpdateInput>
20013
+ }
20014
+
20015
+ /**
20016
+ * ScriptSchedule delete
20017
+ */
20018
+ export type ScriptScheduleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20019
+ /**
20020
+ * Select specific fields to fetch from the ScriptSchedule
20021
+ */
20022
+ select?: ScriptScheduleSelect<ExtArgs> | null
20023
+ /**
20024
+ * Omit specific fields from the ScriptSchedule
20025
+ */
20026
+ omit?: ScriptScheduleOmit<ExtArgs> | null
20027
+ /**
20028
+ * Filter which ScriptSchedule to delete.
20029
+ */
20030
+ where: ScriptScheduleWhereUniqueInput
20031
+ }
20032
+
20033
+ /**
20034
+ * ScriptSchedule deleteMany
20035
+ */
20036
+ export type ScriptScheduleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20037
+ /**
20038
+ * Filter which ScriptSchedules to delete
20039
+ */
20040
+ where?: ScriptScheduleWhereInput
20041
+ /**
20042
+ * Limit how many ScriptSchedules to delete.
20043
+ */
20044
+ limit?: number
20045
+ }
20046
+
20047
+ /**
20048
+ * ScriptSchedule without action
20049
+ */
20050
+ export type ScriptScheduleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20051
+ /**
20052
+ * Select specific fields to fetch from the ScriptSchedule
20053
+ */
20054
+ select?: ScriptScheduleSelect<ExtArgs> | null
20055
+ /**
20056
+ * Omit specific fields from the ScriptSchedule
20057
+ */
20058
+ omit?: ScriptScheduleOmit<ExtArgs> | null
20059
+ }
20060
+
20061
+
20062
+ /**
20063
+ * Model ScheduledJob
20064
+ */
20065
+
20066
+ export type AggregateScheduledJob = {
20067
+ _count: ScheduledJobCountAggregateOutputType | null
20068
+ _avg: ScheduledJobAvgAggregateOutputType | null
20069
+ _sum: ScheduledJobSumAggregateOutputType | null
20070
+ _min: ScheduledJobMinAggregateOutputType | null
20071
+ _max: ScheduledJobMaxAggregateOutputType | null
20072
+ }
20073
+
20074
+ export type ScheduledJobAvgAggregateOutputType = {
20075
+ id: number | null
20076
+ }
20077
+
20078
+ export type ScheduledJobSumAggregateOutputType = {
20079
+ id: number | null
20080
+ }
20081
+
20082
+ export type ScheduledJobMinAggregateOutputType = {
20083
+ id: number | null
20084
+ scheduleName: string | null
20085
+ scheduledAt: Date | null
20086
+ queueResourceId: string | null
20087
+ state: string | null
20088
+ createdAt: Date | null
20089
+ updatedAt: Date | null
20090
+ }
20091
+
20092
+ export type ScheduledJobMaxAggregateOutputType = {
20093
+ id: number | null
20094
+ scheduleName: string | null
20095
+ scheduledAt: Date | null
20096
+ queueResourceId: string | null
20097
+ state: string | null
20098
+ createdAt: Date | null
20099
+ updatedAt: Date | null
20100
+ }
20101
+
20102
+ export type ScheduledJobCountAggregateOutputType = {
20103
+ id: number
20104
+ scheduleName: number
20105
+ scheduledAt: number
20106
+ queueResourceId: number
20107
+ payload: number
20108
+ state: number
20109
+ createdAt: number
20110
+ updatedAt: number
20111
+ _all: number
20112
+ }
20113
+
20114
+
20115
+ export type ScheduledJobAvgAggregateInputType = {
20116
+ id?: true
20117
+ }
20118
+
20119
+ export type ScheduledJobSumAggregateInputType = {
20120
+ id?: true
20121
+ }
20122
+
20123
+ export type ScheduledJobMinAggregateInputType = {
20124
+ id?: true
20125
+ scheduleName?: true
20126
+ scheduledAt?: true
20127
+ queueResourceId?: true
20128
+ state?: true
20129
+ createdAt?: true
20130
+ updatedAt?: true
20131
+ }
20132
+
20133
+ export type ScheduledJobMaxAggregateInputType = {
20134
+ id?: true
20135
+ scheduleName?: true
20136
+ scheduledAt?: true
20137
+ queueResourceId?: true
20138
+ state?: true
20139
+ createdAt?: true
20140
+ updatedAt?: true
20141
+ }
20142
+
20143
+ export type ScheduledJobCountAggregateInputType = {
20144
+ id?: true
20145
+ scheduleName?: true
20146
+ scheduledAt?: true
20147
+ queueResourceId?: true
20148
+ payload?: true
20149
+ state?: true
20150
+ createdAt?: true
20151
+ updatedAt?: true
20152
+ _all?: true
20153
+ }
20154
+
20155
+ export type ScheduledJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20156
+ /**
20157
+ * Filter which ScheduledJob to aggregate.
20158
+ */
20159
+ where?: ScheduledJobWhereInput
20160
+ /**
20161
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20162
+ *
20163
+ * Determine the order of ScheduledJobs to fetch.
20164
+ */
20165
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
20166
+ /**
20167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20168
+ *
20169
+ * Sets the start position
20170
+ */
20171
+ cursor?: ScheduledJobWhereUniqueInput
20172
+ /**
20173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20174
+ *
20175
+ * Take `±n` ScheduledJobs from the position of the cursor.
20176
+ */
20177
+ take?: number
20178
+ /**
20179
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20180
+ *
20181
+ * Skip the first `n` ScheduledJobs.
20182
+ */
20183
+ skip?: number
20184
+ /**
20185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20186
+ *
20187
+ * Count returned ScheduledJobs
20188
+ **/
20189
+ _count?: true | ScheduledJobCountAggregateInputType
20190
+ /**
20191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20192
+ *
20193
+ * Select which fields to average
20194
+ **/
20195
+ _avg?: ScheduledJobAvgAggregateInputType
20196
+ /**
20197
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20198
+ *
20199
+ * Select which fields to sum
20200
+ **/
20201
+ _sum?: ScheduledJobSumAggregateInputType
20202
+ /**
20203
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20204
+ *
20205
+ * Select which fields to find the minimum value
20206
+ **/
20207
+ _min?: ScheduledJobMinAggregateInputType
20208
+ /**
20209
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20210
+ *
20211
+ * Select which fields to find the maximum value
20212
+ **/
20213
+ _max?: ScheduledJobMaxAggregateInputType
20214
+ }
20215
+
20216
+ export type GetScheduledJobAggregateType<T extends ScheduledJobAggregateArgs> = {
20217
+ [P in keyof T & keyof AggregateScheduledJob]: P extends '_count' | 'count'
20218
+ ? T[P] extends true
20219
+ ? number
20220
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
20221
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
20222
+ }
20223
+
20224
+
20225
+
20226
+
20227
+ export type ScheduledJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20228
+ where?: ScheduledJobWhereInput
20229
+ orderBy?: ScheduledJobOrderByWithAggregationInput | ScheduledJobOrderByWithAggregationInput[]
20230
+ by: ScheduledJobScalarFieldEnum[] | ScheduledJobScalarFieldEnum
20231
+ having?: ScheduledJobScalarWhereWithAggregatesInput
20232
+ take?: number
20233
+ skip?: number
20234
+ _count?: ScheduledJobCountAggregateInputType | true
20235
+ _avg?: ScheduledJobAvgAggregateInputType
20236
+ _sum?: ScheduledJobSumAggregateInputType
20237
+ _min?: ScheduledJobMinAggregateInputType
20238
+ _max?: ScheduledJobMaxAggregateInputType
20239
+ }
20240
+
20241
+ export type ScheduledJobGroupByOutputType = {
20242
+ id: number
20243
+ scheduleName: string
20244
+ scheduledAt: Date
20245
+ queueResourceId: string
20246
+ payload: JsonValue | null
20247
+ state: string
20248
+ createdAt: Date
20249
+ updatedAt: Date
20250
+ _count: ScheduledJobCountAggregateOutputType | null
20251
+ _avg: ScheduledJobAvgAggregateOutputType | null
20252
+ _sum: ScheduledJobSumAggregateOutputType | null
20253
+ _min: ScheduledJobMinAggregateOutputType | null
20254
+ _max: ScheduledJobMaxAggregateOutputType | null
20255
+ }
20256
+
20257
+ type GetScheduledJobGroupByPayload<T extends ScheduledJobGroupByArgs> = Prisma.PrismaPromise<
20258
+ Array<
20259
+ PickEnumerable<ScheduledJobGroupByOutputType, T['by']> &
20260
+ {
20261
+ [P in ((keyof T) & (keyof ScheduledJobGroupByOutputType))]: P extends '_count'
20262
+ ? T[P] extends boolean
20263
+ ? number
20264
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
20265
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
20266
+ }
20267
+ >
20268
+ >
20269
+
20270
+
20271
+ export type ScheduledJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20272
+ id?: boolean
20273
+ scheduleName?: boolean
20274
+ scheduledAt?: boolean
20275
+ queueResourceId?: boolean
20276
+ payload?: boolean
20277
+ state?: boolean
20278
+ createdAt?: boolean
20279
+ updatedAt?: boolean
20280
+ }, ExtArgs["result"]["scheduledJob"]>
20281
+
20282
+ export type ScheduledJobSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20283
+ id?: boolean
20284
+ scheduleName?: boolean
20285
+ scheduledAt?: boolean
20286
+ queueResourceId?: boolean
20287
+ payload?: boolean
20288
+ state?: boolean
20289
+ createdAt?: boolean
20290
+ updatedAt?: boolean
20291
+ }, ExtArgs["result"]["scheduledJob"]>
20292
+
20293
+ export type ScheduledJobSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20294
+ id?: boolean
20295
+ scheduleName?: boolean
20296
+ scheduledAt?: boolean
20297
+ queueResourceId?: boolean
20298
+ payload?: boolean
20299
+ state?: boolean
20300
+ createdAt?: boolean
20301
+ updatedAt?: boolean
20302
+ }, ExtArgs["result"]["scheduledJob"]>
20303
+
20304
+ export type ScheduledJobSelectScalar = {
20305
+ id?: boolean
20306
+ scheduleName?: boolean
20307
+ scheduledAt?: boolean
20308
+ queueResourceId?: boolean
20309
+ payload?: boolean
20310
+ state?: boolean
20311
+ createdAt?: boolean
20312
+ updatedAt?: boolean
20313
+ }
20314
+
20315
+ export type ScheduledJobOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "scheduleName" | "scheduledAt" | "queueResourceId" | "payload" | "state" | "createdAt" | "updatedAt", ExtArgs["result"]["scheduledJob"]>
20316
+
20317
+ export type $ScheduledJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20318
+ name: "ScheduledJob"
20319
+ objects: {}
20320
+ scalars: $Extensions.GetPayloadResult<{
20321
+ id: number
20322
+ scheduleName: string
20323
+ scheduledAt: Date
20324
+ queueResourceId: string
20325
+ payload: Prisma.JsonValue | null
20326
+ state: string
20327
+ createdAt: Date
20328
+ updatedAt: Date
20329
+ }, ExtArgs["result"]["scheduledJob"]>
20330
+ composites: {}
20331
+ }
20332
+
20333
+ type ScheduledJobGetPayload<S extends boolean | null | undefined | ScheduledJobDefaultArgs> = $Result.GetResult<Prisma.$ScheduledJobPayload, S>
20334
+
20335
+ type ScheduledJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
20336
+ Omit<ScheduledJobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
20337
+ select?: ScheduledJobCountAggregateInputType | true
20338
+ }
20339
+
20340
+ export interface ScheduledJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
20341
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScheduledJob'], meta: { name: 'ScheduledJob' } }
20342
+ /**
20343
+ * Find zero or one ScheduledJob that matches the filter.
20344
+ * @param {ScheduledJobFindUniqueArgs} args - Arguments to find a ScheduledJob
20345
+ * @example
20346
+ * // Get one ScheduledJob
20347
+ * const scheduledJob = await prisma.scheduledJob.findUnique({
20348
+ * where: {
20349
+ * // ... provide filter here
20350
+ * }
20351
+ * })
20352
+ */
20353
+ findUnique<T extends ScheduledJobFindUniqueArgs>(args: SelectSubset<T, ScheduledJobFindUniqueArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
20354
+
20355
+ /**
20356
+ * Find one ScheduledJob that matches the filter or throw an error with `error.code='P2025'`
20357
+ * if no matches were found.
20358
+ * @param {ScheduledJobFindUniqueOrThrowArgs} args - Arguments to find a ScheduledJob
20359
+ * @example
20360
+ * // Get one ScheduledJob
20361
+ * const scheduledJob = await prisma.scheduledJob.findUniqueOrThrow({
20362
+ * where: {
20363
+ * // ... provide filter here
20364
+ * }
20365
+ * })
20366
+ */
20367
+ findUniqueOrThrow<T extends ScheduledJobFindUniqueOrThrowArgs>(args: SelectSubset<T, ScheduledJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20368
+
20369
+ /**
20370
+ * Find the first ScheduledJob that matches the filter.
20371
+ * Note, that providing `undefined` is treated as the value not being there.
20372
+ * Read more here: https://pris.ly/d/null-undefined
20373
+ * @param {ScheduledJobFindFirstArgs} args - Arguments to find a ScheduledJob
20374
+ * @example
20375
+ * // Get one ScheduledJob
20376
+ * const scheduledJob = await prisma.scheduledJob.findFirst({
20377
+ * where: {
20378
+ * // ... provide filter here
20379
+ * }
20380
+ * })
20381
+ */
20382
+ findFirst<T extends ScheduledJobFindFirstArgs>(args?: SelectSubset<T, ScheduledJobFindFirstArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
20383
+
20384
+ /**
20385
+ * Find the first ScheduledJob that matches the filter or
20386
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
20387
+ * Note, that providing `undefined` is treated as the value not being there.
20388
+ * Read more here: https://pris.ly/d/null-undefined
20389
+ * @param {ScheduledJobFindFirstOrThrowArgs} args - Arguments to find a ScheduledJob
20390
+ * @example
20391
+ * // Get one ScheduledJob
20392
+ * const scheduledJob = await prisma.scheduledJob.findFirstOrThrow({
20393
+ * where: {
20394
+ * // ... provide filter here
20395
+ * }
20396
+ * })
20397
+ */
20398
+ findFirstOrThrow<T extends ScheduledJobFindFirstOrThrowArgs>(args?: SelectSubset<T, ScheduledJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20399
+
20400
+ /**
20401
+ * Find zero or more ScheduledJobs that matches the filter.
20402
+ * Note, that providing `undefined` is treated as the value not being there.
20403
+ * Read more here: https://pris.ly/d/null-undefined
20404
+ * @param {ScheduledJobFindManyArgs} args - Arguments to filter and select certain fields only.
20405
+ * @example
20406
+ * // Get all ScheduledJobs
20407
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
20408
+ *
20409
+ * // Get first 10 ScheduledJobs
20410
+ * const scheduledJobs = await prisma.scheduledJob.findMany({ take: 10 })
20411
+ *
20412
+ * // Only select the `id`
20413
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.findMany({ select: { id: true } })
20414
+ *
20415
+ */
20416
+ findMany<T extends ScheduledJobFindManyArgs>(args?: SelectSubset<T, ScheduledJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
20417
+
20418
+ /**
20419
+ * Create a ScheduledJob.
20420
+ * @param {ScheduledJobCreateArgs} args - Arguments to create a ScheduledJob.
20421
+ * @example
20422
+ * // Create one ScheduledJob
20423
+ * const ScheduledJob = await prisma.scheduledJob.create({
20424
+ * data: {
20425
+ * // ... data to create a ScheduledJob
20426
+ * }
20427
+ * })
20428
+ *
20429
+ */
20430
+ create<T extends ScheduledJobCreateArgs>(args: SelectSubset<T, ScheduledJobCreateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20431
+
20432
+ /**
20433
+ * Create many ScheduledJobs.
20434
+ * @param {ScheduledJobCreateManyArgs} args - Arguments to create many ScheduledJobs.
20435
+ * @example
20436
+ * // Create many ScheduledJobs
20437
+ * const scheduledJob = await prisma.scheduledJob.createMany({
20438
+ * data: [
20439
+ * // ... provide data here
20440
+ * ]
20441
+ * })
20442
+ *
20443
+ */
20444
+ createMany<T extends ScheduledJobCreateManyArgs>(args?: SelectSubset<T, ScheduledJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20445
+
20446
+ /**
20447
+ * Create many ScheduledJobs and returns the data saved in the database.
20448
+ * @param {ScheduledJobCreateManyAndReturnArgs} args - Arguments to create many ScheduledJobs.
20449
+ * @example
20450
+ * // Create many ScheduledJobs
20451
+ * const scheduledJob = await prisma.scheduledJob.createManyAndReturn({
20452
+ * data: [
20453
+ * // ... provide data here
20454
+ * ]
20455
+ * })
20456
+ *
20457
+ * // Create many ScheduledJobs and only return the `id`
20458
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.createManyAndReturn({
20459
+ * select: { id: true },
20460
+ * data: [
20461
+ * // ... provide data here
20462
+ * ]
20463
+ * })
20464
+ * Note, that providing `undefined` is treated as the value not being there.
20465
+ * Read more here: https://pris.ly/d/null-undefined
20466
+ *
20467
+ */
20468
+ createManyAndReturn<T extends ScheduledJobCreateManyAndReturnArgs>(args?: SelectSubset<T, ScheduledJobCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
20469
+
20470
+ /**
20471
+ * Delete a ScheduledJob.
20472
+ * @param {ScheduledJobDeleteArgs} args - Arguments to delete one ScheduledJob.
20473
+ * @example
20474
+ * // Delete one ScheduledJob
20475
+ * const ScheduledJob = await prisma.scheduledJob.delete({
20476
+ * where: {
20477
+ * // ... filter to delete one ScheduledJob
20478
+ * }
20479
+ * })
20480
+ *
20481
+ */
20482
+ delete<T extends ScheduledJobDeleteArgs>(args: SelectSubset<T, ScheduledJobDeleteArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20483
+
20484
+ /**
20485
+ * Update one ScheduledJob.
20486
+ * @param {ScheduledJobUpdateArgs} args - Arguments to update one ScheduledJob.
20487
+ * @example
20488
+ * // Update one ScheduledJob
20489
+ * const scheduledJob = await prisma.scheduledJob.update({
20490
+ * where: {
20491
+ * // ... provide filter here
20492
+ * },
20493
+ * data: {
20494
+ * // ... provide data here
20495
+ * }
20496
+ * })
20497
+ *
20498
+ */
20499
+ update<T extends ScheduledJobUpdateArgs>(args: SelectSubset<T, ScheduledJobUpdateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20500
+
20501
+ /**
20502
+ * Delete zero or more ScheduledJobs.
20503
+ * @param {ScheduledJobDeleteManyArgs} args - Arguments to filter ScheduledJobs to delete.
20504
+ * @example
20505
+ * // Delete a few ScheduledJobs
20506
+ * const { count } = await prisma.scheduledJob.deleteMany({
20507
+ * where: {
20508
+ * // ... provide filter here
20509
+ * }
20510
+ * })
20511
+ *
20512
+ */
20513
+ deleteMany<T extends ScheduledJobDeleteManyArgs>(args?: SelectSubset<T, ScheduledJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20514
+
20515
+ /**
20516
+ * Update zero or more ScheduledJobs.
20517
+ * Note, that providing `undefined` is treated as the value not being there.
20518
+ * Read more here: https://pris.ly/d/null-undefined
20519
+ * @param {ScheduledJobUpdateManyArgs} args - Arguments to update one or more rows.
20520
+ * @example
20521
+ * // Update many ScheduledJobs
20522
+ * const scheduledJob = await prisma.scheduledJob.updateMany({
20523
+ * where: {
20524
+ * // ... provide filter here
20525
+ * },
20526
+ * data: {
20527
+ * // ... provide data here
20528
+ * }
20529
+ * })
20530
+ *
20531
+ */
20532
+ updateMany<T extends ScheduledJobUpdateManyArgs>(args: SelectSubset<T, ScheduledJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20533
+
20534
+ /**
20535
+ * Update zero or more ScheduledJobs and returns the data updated in the database.
20536
+ * @param {ScheduledJobUpdateManyAndReturnArgs} args - Arguments to update many ScheduledJobs.
20537
+ * @example
20538
+ * // Update many ScheduledJobs
20539
+ * const scheduledJob = await prisma.scheduledJob.updateManyAndReturn({
20540
+ * where: {
20541
+ * // ... provide filter here
20542
+ * },
20543
+ * data: [
20544
+ * // ... provide data here
20545
+ * ]
20546
+ * })
20547
+ *
20548
+ * // Update zero or more ScheduledJobs and only return the `id`
20549
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.updateManyAndReturn({
20550
+ * select: { id: true },
20551
+ * where: {
20552
+ * // ... provide filter here
20553
+ * },
20554
+ * data: [
20555
+ * // ... provide data here
20556
+ * ]
20557
+ * })
20558
+ * Note, that providing `undefined` is treated as the value not being there.
20559
+ * Read more here: https://pris.ly/d/null-undefined
20560
+ *
20561
+ */
20562
+ updateManyAndReturn<T extends ScheduledJobUpdateManyAndReturnArgs>(args: SelectSubset<T, ScheduledJobUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
20563
+
20564
+ /**
20565
+ * Create or update one ScheduledJob.
20566
+ * @param {ScheduledJobUpsertArgs} args - Arguments to update or create a ScheduledJob.
20567
+ * @example
20568
+ * // Update or create a ScheduledJob
20569
+ * const scheduledJob = await prisma.scheduledJob.upsert({
20570
+ * create: {
20571
+ * // ... data to create a ScheduledJob
20572
+ * },
20573
+ * update: {
20574
+ * // ... in case it already exists, update
20575
+ * },
20576
+ * where: {
20577
+ * // ... the filter for the ScheduledJob we want to update
20578
+ * }
20579
+ * })
20580
+ */
20581
+ upsert<T extends ScheduledJobUpsertArgs>(args: SelectSubset<T, ScheduledJobUpsertArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20582
+
20583
+
20584
+ /**
20585
+ * Count the number of ScheduledJobs.
20586
+ * Note, that providing `undefined` is treated as the value not being there.
20587
+ * Read more here: https://pris.ly/d/null-undefined
20588
+ * @param {ScheduledJobCountArgs} args - Arguments to filter ScheduledJobs to count.
20589
+ * @example
20590
+ * // Count the number of ScheduledJobs
20591
+ * const count = await prisma.scheduledJob.count({
20592
+ * where: {
20593
+ * // ... the filter for the ScheduledJobs we want to count
20594
+ * }
20595
+ * })
20596
+ **/
20597
+ count<T extends ScheduledJobCountArgs>(
20598
+ args?: Subset<T, ScheduledJobCountArgs>,
20599
+ ): Prisma.PrismaPromise<
20600
+ T extends $Utils.Record<'select', any>
20601
+ ? T['select'] extends true
20602
+ ? number
20603
+ : GetScalarType<T['select'], ScheduledJobCountAggregateOutputType>
20604
+ : number
20605
+ >
20606
+
20607
+ /**
20608
+ * Allows you to perform aggregations operations on a ScheduledJob.
20609
+ * Note, that providing `undefined` is treated as the value not being there.
20610
+ * Read more here: https://pris.ly/d/null-undefined
20611
+ * @param {ScheduledJobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
20612
+ * @example
20613
+ * // Ordered by age ascending
20614
+ * // Where email contains prisma.io
20615
+ * // Limited to the 10 users
20616
+ * const aggregations = await prisma.user.aggregate({
20617
+ * _avg: {
20618
+ * age: true,
20619
+ * },
20620
+ * where: {
20621
+ * email: {
20622
+ * contains: "prisma.io",
20623
+ * },
20624
+ * },
20625
+ * orderBy: {
20626
+ * age: "asc",
20627
+ * },
20628
+ * take: 10,
20629
+ * })
20630
+ **/
20631
+ aggregate<T extends ScheduledJobAggregateArgs>(args: Subset<T, ScheduledJobAggregateArgs>): Prisma.PrismaPromise<GetScheduledJobAggregateType<T>>
20632
+
20633
+ /**
20634
+ * Group by ScheduledJob.
20635
+ * Note, that providing `undefined` is treated as the value not being there.
20636
+ * Read more here: https://pris.ly/d/null-undefined
20637
+ * @param {ScheduledJobGroupByArgs} args - Group by arguments.
20638
+ * @example
20639
+ * // Group by city, order by createdAt, get count
20640
+ * const result = await prisma.user.groupBy({
20641
+ * by: ['city', 'createdAt'],
20642
+ * orderBy: {
20643
+ * createdAt: true
20644
+ * },
20645
+ * _count: {
20646
+ * _all: true
20647
+ * },
20648
+ * })
20649
+ *
20650
+ **/
20651
+ groupBy<
20652
+ T extends ScheduledJobGroupByArgs,
20653
+ HasSelectOrTake extends Or<
20654
+ Extends<'skip', Keys<T>>,
20655
+ Extends<'take', Keys<T>>
20656
+ >,
20657
+ OrderByArg extends True extends HasSelectOrTake
20658
+ ? { orderBy: ScheduledJobGroupByArgs['orderBy'] }
20659
+ : { orderBy?: ScheduledJobGroupByArgs['orderBy'] },
20660
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
20661
+ ByFields extends MaybeTupleToUnion<T['by']>,
20662
+ ByValid extends Has<ByFields, OrderFields>,
20663
+ HavingFields extends GetHavingFields<T['having']>,
20664
+ HavingValid extends Has<ByFields, HavingFields>,
20665
+ ByEmpty extends T['by'] extends never[] ? True : False,
20666
+ InputErrors extends ByEmpty extends True
20667
+ ? `Error: "by" must not be empty.`
20668
+ : HavingValid extends False
20669
+ ? {
20670
+ [P in HavingFields]: P extends ByFields
20671
+ ? never
20672
+ : P extends string
20673
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
20674
+ : [
20675
+ Error,
20676
+ 'Field ',
20677
+ P,
20678
+ ` in "having" needs to be provided in "by"`,
20679
+ ]
20680
+ }[HavingFields]
20681
+ : 'take' extends Keys<T>
20682
+ ? 'orderBy' extends Keys<T>
20683
+ ? ByValid extends True
20684
+ ? {}
20685
+ : {
20686
+ [P in OrderFields]: P extends ByFields
20687
+ ? never
20688
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20689
+ }[OrderFields]
20690
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
20691
+ : 'skip' extends Keys<T>
20692
+ ? 'orderBy' extends Keys<T>
20693
+ ? ByValid extends True
20694
+ ? {}
20695
+ : {
20696
+ [P in OrderFields]: P extends ByFields
20697
+ ? never
20698
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20699
+ }[OrderFields]
20700
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
20701
+ : ByValid extends True
20702
+ ? {}
20703
+ : {
20704
+ [P in OrderFields]: P extends ByFields
20705
+ ? never
20706
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20707
+ }[OrderFields]
20708
+ >(args: SubsetIntersection<T, ScheduledJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScheduledJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
20709
+ /**
20710
+ * Fields of the ScheduledJob model
20711
+ */
20712
+ readonly fields: ScheduledJobFieldRefs;
20713
+ }
20714
+
20715
+ /**
20716
+ * The delegate class that acts as a "Promise-like" for ScheduledJob.
20717
+ * Why is this prefixed with `Prisma__`?
20718
+ * Because we want to prevent naming conflicts as mentioned in
20719
+ * https://github.com/prisma/prisma-client-js/issues/707
20720
+ */
20721
+ export interface Prisma__ScheduledJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
20722
+ readonly [Symbol.toStringTag]: "PrismaPromise"
20723
+ /**
20724
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
20725
+ * @param onfulfilled The callback to execute when the Promise is resolved.
20726
+ * @param onrejected The callback to execute when the Promise is rejected.
20727
+ * @returns A Promise for the completion of which ever callback is executed.
20728
+ */
20729
+ 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>
20730
+ /**
20731
+ * Attaches a callback for only the rejection of the Promise.
20732
+ * @param onrejected The callback to execute when the Promise is rejected.
20733
+ * @returns A Promise for the completion of the callback.
20734
+ */
20735
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
20736
+ /**
20737
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
20738
+ * resolved value cannot be modified from the callback.
20739
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
20740
+ * @returns A Promise for the completion of the callback.
20741
+ */
20742
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
20743
+ }
20744
+
20745
+
20746
+
20747
+
20748
+ /**
20749
+ * Fields of the ScheduledJob model
20750
+ */
20751
+ interface ScheduledJobFieldRefs {
20752
+ readonly id: FieldRef<"ScheduledJob", 'Int'>
20753
+ readonly scheduleName: FieldRef<"ScheduledJob", 'String'>
20754
+ readonly scheduledAt: FieldRef<"ScheduledJob", 'DateTime'>
20755
+ readonly queueResourceId: FieldRef<"ScheduledJob", 'String'>
20756
+ readonly payload: FieldRef<"ScheduledJob", 'Json'>
20757
+ readonly state: FieldRef<"ScheduledJob", 'String'>
20758
+ readonly createdAt: FieldRef<"ScheduledJob", 'DateTime'>
20759
+ readonly updatedAt: FieldRef<"ScheduledJob", 'DateTime'>
20760
+ }
20761
+
20762
+
20763
+ // Custom InputTypes
20764
+ /**
20765
+ * ScheduledJob findUnique
20766
+ */
20767
+ export type ScheduledJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20768
+ /**
20769
+ * Select specific fields to fetch from the ScheduledJob
20770
+ */
20771
+ select?: ScheduledJobSelect<ExtArgs> | null
20772
+ /**
20773
+ * Omit specific fields from the ScheduledJob
20774
+ */
20775
+ omit?: ScheduledJobOmit<ExtArgs> | null
20776
+ /**
20777
+ * Filter, which ScheduledJob to fetch.
20778
+ */
20779
+ where: ScheduledJobWhereUniqueInput
20780
+ }
20781
+
20782
+ /**
20783
+ * ScheduledJob findUniqueOrThrow
20784
+ */
20785
+ export type ScheduledJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20786
+ /**
20787
+ * Select specific fields to fetch from the ScheduledJob
20788
+ */
20789
+ select?: ScheduledJobSelect<ExtArgs> | null
20790
+ /**
20791
+ * Omit specific fields from the ScheduledJob
20792
+ */
20793
+ omit?: ScheduledJobOmit<ExtArgs> | null
20794
+ /**
20795
+ * Filter, which ScheduledJob to fetch.
20796
+ */
20797
+ where: ScheduledJobWhereUniqueInput
20798
+ }
20799
+
20800
+ /**
20801
+ * ScheduledJob findFirst
20802
+ */
20803
+ export type ScheduledJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20804
+ /**
20805
+ * Select specific fields to fetch from the ScheduledJob
20806
+ */
20807
+ select?: ScheduledJobSelect<ExtArgs> | null
20808
+ /**
20809
+ * Omit specific fields from the ScheduledJob
20810
+ */
20811
+ omit?: ScheduledJobOmit<ExtArgs> | null
20812
+ /**
20813
+ * Filter, which ScheduledJob to fetch.
20814
+ */
20815
+ where?: ScheduledJobWhereInput
20816
+ /**
20817
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20818
+ *
20819
+ * Determine the order of ScheduledJobs to fetch.
20820
+ */
20821
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
20822
+ /**
20823
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20824
+ *
20825
+ * Sets the position for searching for ScheduledJobs.
20826
+ */
20827
+ cursor?: ScheduledJobWhereUniqueInput
20828
+ /**
20829
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20830
+ *
20831
+ * Take `±n` ScheduledJobs from the position of the cursor.
20832
+ */
20833
+ take?: number
20834
+ /**
20835
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20836
+ *
20837
+ * Skip the first `n` ScheduledJobs.
20838
+ */
20839
+ skip?: number
20840
+ /**
20841
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
20842
+ *
20843
+ * Filter by unique combinations of ScheduledJobs.
20844
+ */
20845
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
20846
+ }
20847
+
20848
+ /**
20849
+ * ScheduledJob findFirstOrThrow
20850
+ */
20851
+ export type ScheduledJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20852
+ /**
20853
+ * Select specific fields to fetch from the ScheduledJob
20854
+ */
20855
+ select?: ScheduledJobSelect<ExtArgs> | null
20856
+ /**
20857
+ * Omit specific fields from the ScheduledJob
20858
+ */
20859
+ omit?: ScheduledJobOmit<ExtArgs> | null
20860
+ /**
20861
+ * Filter, which ScheduledJob to fetch.
20862
+ */
20863
+ where?: ScheduledJobWhereInput
20864
+ /**
20865
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20866
+ *
20867
+ * Determine the order of ScheduledJobs to fetch.
20868
+ */
20869
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
20870
+ /**
20871
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20872
+ *
20873
+ * Sets the position for searching for ScheduledJobs.
20874
+ */
20875
+ cursor?: ScheduledJobWhereUniqueInput
20876
+ /**
20877
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20878
+ *
20879
+ * Take `±n` ScheduledJobs from the position of the cursor.
20880
+ */
20881
+ take?: number
20882
+ /**
20883
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20884
+ *
20885
+ * Skip the first `n` ScheduledJobs.
20886
+ */
20887
+ skip?: number
20888
+ /**
20889
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
20890
+ *
20891
+ * Filter by unique combinations of ScheduledJobs.
20892
+ */
20893
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
20894
+ }
20895
+
20896
+ /**
20897
+ * ScheduledJob findMany
20898
+ */
20899
+ export type ScheduledJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20900
+ /**
20901
+ * Select specific fields to fetch from the ScheduledJob
20902
+ */
20903
+ select?: ScheduledJobSelect<ExtArgs> | null
20904
+ /**
20905
+ * Omit specific fields from the ScheduledJob
20906
+ */
20907
+ omit?: ScheduledJobOmit<ExtArgs> | null
20908
+ /**
20909
+ * Filter, which ScheduledJobs to fetch.
20910
+ */
20911
+ where?: ScheduledJobWhereInput
20912
+ /**
20913
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20914
+ *
20915
+ * Determine the order of ScheduledJobs to fetch.
20916
+ */
20917
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
20918
+ /**
20919
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20920
+ *
20921
+ * Sets the position for listing ScheduledJobs.
20922
+ */
20923
+ cursor?: ScheduledJobWhereUniqueInput
20924
+ /**
20925
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20926
+ *
20927
+ * Take `±n` ScheduledJobs from the position of the cursor.
20928
+ */
20929
+ take?: number
20930
+ /**
20931
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20932
+ *
20933
+ * Skip the first `n` ScheduledJobs.
20934
+ */
20935
+ skip?: number
20936
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
20937
+ }
20938
+
20939
+ /**
20940
+ * ScheduledJob create
20941
+ */
20942
+ export type ScheduledJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20943
+ /**
20944
+ * Select specific fields to fetch from the ScheduledJob
20945
+ */
20946
+ select?: ScheduledJobSelect<ExtArgs> | null
20947
+ /**
20948
+ * Omit specific fields from the ScheduledJob
20949
+ */
20950
+ omit?: ScheduledJobOmit<ExtArgs> | null
20951
+ /**
20952
+ * The data needed to create a ScheduledJob.
20953
+ */
20954
+ data: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
20955
+ }
20956
+
20957
+ /**
20958
+ * ScheduledJob createMany
20959
+ */
20960
+ export type ScheduledJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20961
+ /**
20962
+ * The data used to create many ScheduledJobs.
20963
+ */
20964
+ data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
20965
+ skipDuplicates?: boolean
20966
+ }
20967
+
20968
+ /**
20969
+ * ScheduledJob createManyAndReturn
20970
+ */
20971
+ export type ScheduledJobCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20972
+ /**
20973
+ * Select specific fields to fetch from the ScheduledJob
20974
+ */
20975
+ select?: ScheduledJobSelectCreateManyAndReturn<ExtArgs> | null
20976
+ /**
20977
+ * Omit specific fields from the ScheduledJob
20978
+ */
20979
+ omit?: ScheduledJobOmit<ExtArgs> | null
20980
+ /**
20981
+ * The data used to create many ScheduledJobs.
20982
+ */
20983
+ data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
20984
+ skipDuplicates?: boolean
20985
+ }
20986
+
20987
+ /**
20988
+ * ScheduledJob update
20989
+ */
20990
+ export type ScheduledJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20991
+ /**
20992
+ * Select specific fields to fetch from the ScheduledJob
20993
+ */
20994
+ select?: ScheduledJobSelect<ExtArgs> | null
20995
+ /**
20996
+ * Omit specific fields from the ScheduledJob
20997
+ */
20998
+ omit?: ScheduledJobOmit<ExtArgs> | null
20999
+ /**
21000
+ * The data needed to update a ScheduledJob.
21001
+ */
21002
+ data: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
21003
+ /**
21004
+ * Choose, which ScheduledJob to update.
21005
+ */
21006
+ where: ScheduledJobWhereUniqueInput
21007
+ }
21008
+
21009
+ /**
21010
+ * ScheduledJob updateMany
21011
+ */
21012
+ export type ScheduledJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21013
+ /**
21014
+ * The data used to update ScheduledJobs.
21015
+ */
21016
+ data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
21017
+ /**
21018
+ * Filter which ScheduledJobs to update
21019
+ */
21020
+ where?: ScheduledJobWhereInput
21021
+ /**
21022
+ * Limit how many ScheduledJobs to update.
21023
+ */
21024
+ limit?: number
21025
+ }
21026
+
21027
+ /**
21028
+ * ScheduledJob updateManyAndReturn
21029
+ */
21030
+ export type ScheduledJobUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21031
+ /**
21032
+ * Select specific fields to fetch from the ScheduledJob
21033
+ */
21034
+ select?: ScheduledJobSelectUpdateManyAndReturn<ExtArgs> | null
21035
+ /**
21036
+ * Omit specific fields from the ScheduledJob
21037
+ */
21038
+ omit?: ScheduledJobOmit<ExtArgs> | null
21039
+ /**
21040
+ * The data used to update ScheduledJobs.
21041
+ */
21042
+ data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
21043
+ /**
21044
+ * Filter which ScheduledJobs to update
21045
+ */
21046
+ where?: ScheduledJobWhereInput
21047
+ /**
21048
+ * Limit how many ScheduledJobs to update.
21049
+ */
21050
+ limit?: number
21051
+ }
21052
+
21053
+ /**
21054
+ * ScheduledJob upsert
21055
+ */
21056
+ export type ScheduledJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21057
+ /**
21058
+ * Select specific fields to fetch from the ScheduledJob
21059
+ */
21060
+ select?: ScheduledJobSelect<ExtArgs> | null
21061
+ /**
21062
+ * Omit specific fields from the ScheduledJob
21063
+ */
21064
+ omit?: ScheduledJobOmit<ExtArgs> | null
21065
+ /**
21066
+ * The filter to search for the ScheduledJob to update in case it exists.
21067
+ */
21068
+ where: ScheduledJobWhereUniqueInput
21069
+ /**
21070
+ * In case the ScheduledJob found by the `where` argument doesn't exist, create a new ScheduledJob with this data.
21071
+ */
21072
+ create: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
21073
+ /**
21074
+ * In case the ScheduledJob was found with the provided `where` argument, update it with this data.
21075
+ */
21076
+ update: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
21077
+ }
21078
+
21079
+ /**
21080
+ * ScheduledJob delete
21081
+ */
21082
+ export type ScheduledJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21083
+ /**
21084
+ * Select specific fields to fetch from the ScheduledJob
21085
+ */
21086
+ select?: ScheduledJobSelect<ExtArgs> | null
21087
+ /**
21088
+ * Omit specific fields from the ScheduledJob
21089
+ */
21090
+ omit?: ScheduledJobOmit<ExtArgs> | null
21091
+ /**
21092
+ * Filter which ScheduledJob to delete.
21093
+ */
21094
+ where: ScheduledJobWhereUniqueInput
21095
+ }
21096
+
21097
+ /**
21098
+ * ScheduledJob deleteMany
21099
+ */
21100
+ export type ScheduledJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21101
+ /**
21102
+ * Filter which ScheduledJobs to delete
21103
+ */
21104
+ where?: ScheduledJobWhereInput
21105
+ /**
21106
+ * Limit how many ScheduledJobs to delete.
21107
+ */
21108
+ limit?: number
21109
+ }
21110
+
21111
+ /**
21112
+ * ScheduledJob without action
21113
+ */
21114
+ export type ScheduledJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21115
+ /**
21116
+ * Select specific fields to fetch from the ScheduledJob
21117
+ */
21118
+ select?: ScheduledJobSelect<ExtArgs> | null
21119
+ /**
21120
+ * Omit specific fields from the ScheduledJob
21121
+ */
21122
+ omit?: ScheduledJobOmit<ExtArgs> | null
21123
+ }
21124
+
21125
+
21126
+ /**
21127
+ * Enums
21128
+ */
21129
+
21130
+ export const TransactionIsolationLevel: {
21131
+ ReadUncommitted: 'ReadUncommitted',
21132
+ ReadCommitted: 'ReadCommitted',
21133
+ RepeatableRead: 'RepeatableRead',
21134
+ Serializable: 'Serializable'
21135
+ };
21136
+
21137
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
21138
+
21139
+
21140
+ export const UserScalarFieldEnum: {
21141
+ id: 'id',
21142
+ type: 'type',
21143
+ createdAt: 'createdAt',
21144
+ updatedAt: 'updatedAt',
21145
+ email: 'email',
21146
+ username: 'username',
21147
+ hashword: 'hashword',
21148
+ appUserId: 'appUserId',
21149
+ organizationId: 'organizationId',
21150
+ appOrgId: 'appOrgId',
21151
+ name: 'name'
21152
+ };
21153
+
21154
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
21155
+
21156
+
21157
+ export const TokenScalarFieldEnum: {
21158
+ id: 'id',
21159
+ token: 'token',
21160
+ created: 'created',
21161
+ expires: 'expires',
21162
+ userId: 'userId'
21163
+ };
21164
+
21165
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
21166
+
21167
+
21168
+ export const CredentialScalarFieldEnum: {
21169
+ id: 'id',
21170
+ userId: 'userId',
21171
+ authIsValid: 'authIsValid',
21172
+ externalId: 'externalId',
21173
+ data: 'data',
21174
+ createdAt: 'createdAt',
21175
+ updatedAt: 'updatedAt'
21176
+ };
21177
+
21178
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
17484
21179
 
17485
21180
 
17486
21181
  export const EntityScalarFieldEnum: {
@@ -17604,6 +21299,52 @@ export namespace Prisma {
17604
21299
  export type WebsocketConnectionScalarFieldEnum = (typeof WebsocketConnectionScalarFieldEnum)[keyof typeof WebsocketConnectionScalarFieldEnum]
17605
21300
 
17606
21301
 
21302
+ export const AdminProcessScalarFieldEnum: {
21303
+ id: 'id',
21304
+ name: 'name',
21305
+ type: 'type',
21306
+ state: 'state',
21307
+ context: 'context',
21308
+ results: 'results',
21309
+ parentProcessId: 'parentProcessId',
21310
+ createdAt: 'createdAt',
21311
+ updatedAt: 'updatedAt'
21312
+ };
21313
+
21314
+ export type AdminProcessScalarFieldEnum = (typeof AdminProcessScalarFieldEnum)[keyof typeof AdminProcessScalarFieldEnum]
21315
+
21316
+
21317
+ export const ScriptScheduleScalarFieldEnum: {
21318
+ id: 'id',
21319
+ scriptName: 'scriptName',
21320
+ enabled: 'enabled',
21321
+ cronExpression: 'cronExpression',
21322
+ timezone: 'timezone',
21323
+ lastTriggeredAt: 'lastTriggeredAt',
21324
+ nextTriggerAt: 'nextTriggerAt',
21325
+ externalScheduleId: 'externalScheduleId',
21326
+ externalScheduleName: 'externalScheduleName',
21327
+ createdAt: 'createdAt',
21328
+ updatedAt: 'updatedAt'
21329
+ };
21330
+
21331
+ export type ScriptScheduleScalarFieldEnum = (typeof ScriptScheduleScalarFieldEnum)[keyof typeof ScriptScheduleScalarFieldEnum]
21332
+
21333
+
21334
+ export const ScheduledJobScalarFieldEnum: {
21335
+ id: 'id',
21336
+ scheduleName: 'scheduleName',
21337
+ scheduledAt: 'scheduledAt',
21338
+ queueResourceId: 'queueResourceId',
21339
+ payload: 'payload',
21340
+ state: 'state',
21341
+ createdAt: 'createdAt',
21342
+ updatedAt: 'updatedAt'
21343
+ };
21344
+
21345
+ export type ScheduledJobScalarFieldEnum = (typeof ScheduledJobScalarFieldEnum)[keyof typeof ScheduledJobScalarFieldEnum]
21346
+
21347
+
17607
21348
  export const SortOrder: {
17608
21349
  asc: 'asc',
17609
21350
  desc: 'desc'
@@ -17762,6 +21503,20 @@ export namespace Prisma {
17762
21503
 
17763
21504
 
17764
21505
 
21506
+ /**
21507
+ * Reference to a field of type 'AdminProcessState'
21508
+ */
21509
+ export type EnumAdminProcessStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AdminProcessState'>
21510
+
21511
+
21512
+
21513
+ /**
21514
+ * Reference to a field of type 'AdminProcessState[]'
21515
+ */
21516
+ export type ListEnumAdminProcessStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AdminProcessState[]'>
21517
+
21518
+
21519
+
17765
21520
  /**
17766
21521
  * Reference to a field of type 'Float'
17767
21522
  */
@@ -18686,6 +22441,239 @@ export namespace Prisma {
18686
22441
  connectionId?: StringNullableWithAggregatesFilter<"WebsocketConnection"> | string | null
18687
22442
  }
18688
22443
 
22444
+ export type AdminProcessWhereInput = {
22445
+ AND?: AdminProcessWhereInput | AdminProcessWhereInput[]
22446
+ OR?: AdminProcessWhereInput[]
22447
+ NOT?: AdminProcessWhereInput | AdminProcessWhereInput[]
22448
+ id?: IntFilter<"AdminProcess"> | number
22449
+ name?: StringFilter<"AdminProcess"> | string
22450
+ type?: StringFilter<"AdminProcess"> | string
22451
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
22452
+ context?: JsonFilter<"AdminProcess">
22453
+ results?: JsonFilter<"AdminProcess">
22454
+ parentProcessId?: IntNullableFilter<"AdminProcess"> | number | null
22455
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
22456
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
22457
+ parentProcess?: XOR<AdminProcessNullableScalarRelationFilter, AdminProcessWhereInput> | null
22458
+ childProcesses?: AdminProcessListRelationFilter
22459
+ }
22460
+
22461
+ export type AdminProcessOrderByWithRelationInput = {
22462
+ id?: SortOrder
22463
+ name?: SortOrder
22464
+ type?: SortOrder
22465
+ state?: SortOrder
22466
+ context?: SortOrder
22467
+ results?: SortOrder
22468
+ parentProcessId?: SortOrderInput | SortOrder
22469
+ createdAt?: SortOrder
22470
+ updatedAt?: SortOrder
22471
+ parentProcess?: AdminProcessOrderByWithRelationInput
22472
+ childProcesses?: AdminProcessOrderByRelationAggregateInput
22473
+ }
22474
+
22475
+ export type AdminProcessWhereUniqueInput = Prisma.AtLeast<{
22476
+ id?: number
22477
+ AND?: AdminProcessWhereInput | AdminProcessWhereInput[]
22478
+ OR?: AdminProcessWhereInput[]
22479
+ NOT?: AdminProcessWhereInput | AdminProcessWhereInput[]
22480
+ name?: StringFilter<"AdminProcess"> | string
22481
+ type?: StringFilter<"AdminProcess"> | string
22482
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
22483
+ context?: JsonFilter<"AdminProcess">
22484
+ results?: JsonFilter<"AdminProcess">
22485
+ parentProcessId?: IntNullableFilter<"AdminProcess"> | number | null
22486
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
22487
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
22488
+ parentProcess?: XOR<AdminProcessNullableScalarRelationFilter, AdminProcessWhereInput> | null
22489
+ childProcesses?: AdminProcessListRelationFilter
22490
+ }, "id">
22491
+
22492
+ export type AdminProcessOrderByWithAggregationInput = {
22493
+ id?: SortOrder
22494
+ name?: SortOrder
22495
+ type?: SortOrder
22496
+ state?: SortOrder
22497
+ context?: SortOrder
22498
+ results?: SortOrder
22499
+ parentProcessId?: SortOrderInput | SortOrder
22500
+ createdAt?: SortOrder
22501
+ updatedAt?: SortOrder
22502
+ _count?: AdminProcessCountOrderByAggregateInput
22503
+ _avg?: AdminProcessAvgOrderByAggregateInput
22504
+ _max?: AdminProcessMaxOrderByAggregateInput
22505
+ _min?: AdminProcessMinOrderByAggregateInput
22506
+ _sum?: AdminProcessSumOrderByAggregateInput
22507
+ }
22508
+
22509
+ export type AdminProcessScalarWhereWithAggregatesInput = {
22510
+ AND?: AdminProcessScalarWhereWithAggregatesInput | AdminProcessScalarWhereWithAggregatesInput[]
22511
+ OR?: AdminProcessScalarWhereWithAggregatesInput[]
22512
+ NOT?: AdminProcessScalarWhereWithAggregatesInput | AdminProcessScalarWhereWithAggregatesInput[]
22513
+ id?: IntWithAggregatesFilter<"AdminProcess"> | number
22514
+ name?: StringWithAggregatesFilter<"AdminProcess"> | string
22515
+ type?: StringWithAggregatesFilter<"AdminProcess"> | string
22516
+ state?: EnumAdminProcessStateWithAggregatesFilter<"AdminProcess"> | $Enums.AdminProcessState
22517
+ context?: JsonWithAggregatesFilter<"AdminProcess">
22518
+ results?: JsonWithAggregatesFilter<"AdminProcess">
22519
+ parentProcessId?: IntNullableWithAggregatesFilter<"AdminProcess"> | number | null
22520
+ createdAt?: DateTimeWithAggregatesFilter<"AdminProcess"> | Date | string
22521
+ updatedAt?: DateTimeWithAggregatesFilter<"AdminProcess"> | Date | string
22522
+ }
22523
+
22524
+ export type ScriptScheduleWhereInput = {
22525
+ AND?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
22526
+ OR?: ScriptScheduleWhereInput[]
22527
+ NOT?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
22528
+ id?: IntFilter<"ScriptSchedule"> | number
22529
+ scriptName?: StringFilter<"ScriptSchedule"> | string
22530
+ enabled?: BoolFilter<"ScriptSchedule"> | boolean
22531
+ cronExpression?: StringNullableFilter<"ScriptSchedule"> | string | null
22532
+ timezone?: StringFilter<"ScriptSchedule"> | string
22533
+ lastTriggeredAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
22534
+ nextTriggerAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
22535
+ externalScheduleId?: StringNullableFilter<"ScriptSchedule"> | string | null
22536
+ externalScheduleName?: StringNullableFilter<"ScriptSchedule"> | string | null
22537
+ createdAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
22538
+ updatedAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
22539
+ }
22540
+
22541
+ export type ScriptScheduleOrderByWithRelationInput = {
22542
+ id?: SortOrder
22543
+ scriptName?: SortOrder
22544
+ enabled?: SortOrder
22545
+ cronExpression?: SortOrderInput | SortOrder
22546
+ timezone?: SortOrder
22547
+ lastTriggeredAt?: SortOrderInput | SortOrder
22548
+ nextTriggerAt?: SortOrderInput | SortOrder
22549
+ externalScheduleId?: SortOrderInput | SortOrder
22550
+ externalScheduleName?: SortOrderInput | SortOrder
22551
+ createdAt?: SortOrder
22552
+ updatedAt?: SortOrder
22553
+ }
22554
+
22555
+ export type ScriptScheduleWhereUniqueInput = Prisma.AtLeast<{
22556
+ id?: number
22557
+ scriptName?: string
22558
+ AND?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
22559
+ OR?: ScriptScheduleWhereInput[]
22560
+ NOT?: ScriptScheduleWhereInput | ScriptScheduleWhereInput[]
22561
+ enabled?: BoolFilter<"ScriptSchedule"> | boolean
22562
+ cronExpression?: StringNullableFilter<"ScriptSchedule"> | string | null
22563
+ timezone?: StringFilter<"ScriptSchedule"> | string
22564
+ lastTriggeredAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
22565
+ nextTriggerAt?: DateTimeNullableFilter<"ScriptSchedule"> | Date | string | null
22566
+ externalScheduleId?: StringNullableFilter<"ScriptSchedule"> | string | null
22567
+ externalScheduleName?: StringNullableFilter<"ScriptSchedule"> | string | null
22568
+ createdAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
22569
+ updatedAt?: DateTimeFilter<"ScriptSchedule"> | Date | string
22570
+ }, "id" | "scriptName">
22571
+
22572
+ export type ScriptScheduleOrderByWithAggregationInput = {
22573
+ id?: SortOrder
22574
+ scriptName?: SortOrder
22575
+ enabled?: SortOrder
22576
+ cronExpression?: SortOrderInput | SortOrder
22577
+ timezone?: SortOrder
22578
+ lastTriggeredAt?: SortOrderInput | SortOrder
22579
+ nextTriggerAt?: SortOrderInput | SortOrder
22580
+ externalScheduleId?: SortOrderInput | SortOrder
22581
+ externalScheduleName?: SortOrderInput | SortOrder
22582
+ createdAt?: SortOrder
22583
+ updatedAt?: SortOrder
22584
+ _count?: ScriptScheduleCountOrderByAggregateInput
22585
+ _avg?: ScriptScheduleAvgOrderByAggregateInput
22586
+ _max?: ScriptScheduleMaxOrderByAggregateInput
22587
+ _min?: ScriptScheduleMinOrderByAggregateInput
22588
+ _sum?: ScriptScheduleSumOrderByAggregateInput
22589
+ }
22590
+
22591
+ export type ScriptScheduleScalarWhereWithAggregatesInput = {
22592
+ AND?: ScriptScheduleScalarWhereWithAggregatesInput | ScriptScheduleScalarWhereWithAggregatesInput[]
22593
+ OR?: ScriptScheduleScalarWhereWithAggregatesInput[]
22594
+ NOT?: ScriptScheduleScalarWhereWithAggregatesInput | ScriptScheduleScalarWhereWithAggregatesInput[]
22595
+ id?: IntWithAggregatesFilter<"ScriptSchedule"> | number
22596
+ scriptName?: StringWithAggregatesFilter<"ScriptSchedule"> | string
22597
+ enabled?: BoolWithAggregatesFilter<"ScriptSchedule"> | boolean
22598
+ cronExpression?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
22599
+ timezone?: StringWithAggregatesFilter<"ScriptSchedule"> | string
22600
+ lastTriggeredAt?: DateTimeNullableWithAggregatesFilter<"ScriptSchedule"> | Date | string | null
22601
+ nextTriggerAt?: DateTimeNullableWithAggregatesFilter<"ScriptSchedule"> | Date | string | null
22602
+ externalScheduleId?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
22603
+ externalScheduleName?: StringNullableWithAggregatesFilter<"ScriptSchedule"> | string | null
22604
+ createdAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
22605
+ updatedAt?: DateTimeWithAggregatesFilter<"ScriptSchedule"> | Date | string
22606
+ }
22607
+
22608
+ export type ScheduledJobWhereInput = {
22609
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
22610
+ OR?: ScheduledJobWhereInput[]
22611
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
22612
+ id?: IntFilter<"ScheduledJob"> | number
22613
+ scheduleName?: StringFilter<"ScheduledJob"> | string
22614
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22615
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
22616
+ payload?: JsonNullableFilter<"ScheduledJob">
22617
+ state?: StringFilter<"ScheduledJob"> | string
22618
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22619
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22620
+ }
22621
+
22622
+ export type ScheduledJobOrderByWithRelationInput = {
22623
+ id?: SortOrder
22624
+ scheduleName?: SortOrder
22625
+ scheduledAt?: SortOrder
22626
+ queueResourceId?: SortOrder
22627
+ payload?: SortOrderInput | SortOrder
22628
+ state?: SortOrder
22629
+ createdAt?: SortOrder
22630
+ updatedAt?: SortOrder
22631
+ }
22632
+
22633
+ export type ScheduledJobWhereUniqueInput = Prisma.AtLeast<{
22634
+ id?: number
22635
+ scheduleName?: string
22636
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
22637
+ OR?: ScheduledJobWhereInput[]
22638
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
22639
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22640
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
22641
+ payload?: JsonNullableFilter<"ScheduledJob">
22642
+ state?: StringFilter<"ScheduledJob"> | string
22643
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22644
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
22645
+ }, "id" | "scheduleName">
22646
+
22647
+ export type ScheduledJobOrderByWithAggregationInput = {
22648
+ id?: SortOrder
22649
+ scheduleName?: SortOrder
22650
+ scheduledAt?: SortOrder
22651
+ queueResourceId?: SortOrder
22652
+ payload?: SortOrderInput | SortOrder
22653
+ state?: SortOrder
22654
+ createdAt?: SortOrder
22655
+ updatedAt?: SortOrder
22656
+ _count?: ScheduledJobCountOrderByAggregateInput
22657
+ _avg?: ScheduledJobAvgOrderByAggregateInput
22658
+ _max?: ScheduledJobMaxOrderByAggregateInput
22659
+ _min?: ScheduledJobMinOrderByAggregateInput
22660
+ _sum?: ScheduledJobSumOrderByAggregateInput
22661
+ }
22662
+
22663
+ export type ScheduledJobScalarWhereWithAggregatesInput = {
22664
+ AND?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
22665
+ OR?: ScheduledJobScalarWhereWithAggregatesInput[]
22666
+ NOT?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
22667
+ id?: IntWithAggregatesFilter<"ScheduledJob"> | number
22668
+ scheduleName?: StringWithAggregatesFilter<"ScheduledJob"> | string
22669
+ scheduledAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
22670
+ queueResourceId?: StringWithAggregatesFilter<"ScheduledJob"> | string
22671
+ payload?: JsonNullableWithAggregatesFilter<"ScheduledJob">
22672
+ state?: StringWithAggregatesFilter<"ScheduledJob"> | string
22673
+ createdAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
22674
+ updatedAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
22675
+ }
22676
+
18689
22677
  export type UserCreateInput = {
18690
22678
  type: $Enums.UserType
18691
22679
  createdAt?: Date | string
@@ -19549,27 +23537,280 @@ export namespace Prisma {
19549
23537
  connectionId?: string | null
19550
23538
  }
19551
23539
 
19552
- export type WebsocketConnectionUpdateInput = {
19553
- connectionId?: NullableStringFieldUpdateOperationsInput | string | null
23540
+ export type WebsocketConnectionUpdateInput = {
23541
+ connectionId?: NullableStringFieldUpdateOperationsInput | string | null
23542
+ }
23543
+
23544
+ export type WebsocketConnectionUncheckedUpdateInput = {
23545
+ id?: IntFieldUpdateOperationsInput | number
23546
+ connectionId?: NullableStringFieldUpdateOperationsInput | string | null
23547
+ }
23548
+
23549
+ export type WebsocketConnectionCreateManyInput = {
23550
+ id?: number
23551
+ connectionId?: string | null
23552
+ }
23553
+
23554
+ export type WebsocketConnectionUpdateManyMutationInput = {
23555
+ connectionId?: NullableStringFieldUpdateOperationsInput | string | null
23556
+ }
23557
+
23558
+ export type WebsocketConnectionUncheckedUpdateManyInput = {
23559
+ id?: IntFieldUpdateOperationsInput | number
23560
+ connectionId?: NullableStringFieldUpdateOperationsInput | string | null
23561
+ }
23562
+
23563
+ export type AdminProcessCreateInput = {
23564
+ name: string
23565
+ type: string
23566
+ state?: $Enums.AdminProcessState
23567
+ context?: JsonNullValueInput | InputJsonValue
23568
+ results?: JsonNullValueInput | InputJsonValue
23569
+ createdAt?: Date | string
23570
+ updatedAt?: Date | string
23571
+ parentProcess?: AdminProcessCreateNestedOneWithoutChildProcessesInput
23572
+ childProcesses?: AdminProcessCreateNestedManyWithoutParentProcessInput
23573
+ }
23574
+
23575
+ export type AdminProcessUncheckedCreateInput = {
23576
+ id?: number
23577
+ name: string
23578
+ type: string
23579
+ state?: $Enums.AdminProcessState
23580
+ context?: JsonNullValueInput | InputJsonValue
23581
+ results?: JsonNullValueInput | InputJsonValue
23582
+ parentProcessId?: number | null
23583
+ createdAt?: Date | string
23584
+ updatedAt?: Date | string
23585
+ childProcesses?: AdminProcessUncheckedCreateNestedManyWithoutParentProcessInput
23586
+ }
23587
+
23588
+ export type AdminProcessUpdateInput = {
23589
+ name?: StringFieldUpdateOperationsInput | string
23590
+ type?: StringFieldUpdateOperationsInput | string
23591
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
23592
+ context?: JsonNullValueInput | InputJsonValue
23593
+ results?: JsonNullValueInput | InputJsonValue
23594
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23595
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23596
+ parentProcess?: AdminProcessUpdateOneWithoutChildProcessesNestedInput
23597
+ childProcesses?: AdminProcessUpdateManyWithoutParentProcessNestedInput
23598
+ }
23599
+
23600
+ export type AdminProcessUncheckedUpdateInput = {
23601
+ id?: IntFieldUpdateOperationsInput | number
23602
+ name?: StringFieldUpdateOperationsInput | string
23603
+ type?: StringFieldUpdateOperationsInput | string
23604
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
23605
+ context?: JsonNullValueInput | InputJsonValue
23606
+ results?: JsonNullValueInput | InputJsonValue
23607
+ parentProcessId?: NullableIntFieldUpdateOperationsInput | number | null
23608
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23609
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23610
+ childProcesses?: AdminProcessUncheckedUpdateManyWithoutParentProcessNestedInput
23611
+ }
23612
+
23613
+ export type AdminProcessCreateManyInput = {
23614
+ id?: number
23615
+ name: string
23616
+ type: string
23617
+ state?: $Enums.AdminProcessState
23618
+ context?: JsonNullValueInput | InputJsonValue
23619
+ results?: JsonNullValueInput | InputJsonValue
23620
+ parentProcessId?: number | null
23621
+ createdAt?: Date | string
23622
+ updatedAt?: Date | string
23623
+ }
23624
+
23625
+ export type AdminProcessUpdateManyMutationInput = {
23626
+ name?: StringFieldUpdateOperationsInput | string
23627
+ type?: StringFieldUpdateOperationsInput | string
23628
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
23629
+ context?: JsonNullValueInput | InputJsonValue
23630
+ results?: JsonNullValueInput | InputJsonValue
23631
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23632
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23633
+ }
23634
+
23635
+ export type AdminProcessUncheckedUpdateManyInput = {
23636
+ id?: IntFieldUpdateOperationsInput | number
23637
+ name?: StringFieldUpdateOperationsInput | string
23638
+ type?: StringFieldUpdateOperationsInput | string
23639
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
23640
+ context?: JsonNullValueInput | InputJsonValue
23641
+ results?: JsonNullValueInput | InputJsonValue
23642
+ parentProcessId?: NullableIntFieldUpdateOperationsInput | number | null
23643
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23644
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23645
+ }
23646
+
23647
+ export type ScriptScheduleCreateInput = {
23648
+ scriptName: string
23649
+ enabled?: boolean
23650
+ cronExpression?: string | null
23651
+ timezone?: string
23652
+ lastTriggeredAt?: Date | string | null
23653
+ nextTriggerAt?: Date | string | null
23654
+ externalScheduleId?: string | null
23655
+ externalScheduleName?: string | null
23656
+ createdAt?: Date | string
23657
+ updatedAt?: Date | string
23658
+ }
23659
+
23660
+ export type ScriptScheduleUncheckedCreateInput = {
23661
+ id?: number
23662
+ scriptName: string
23663
+ enabled?: boolean
23664
+ cronExpression?: string | null
23665
+ timezone?: string
23666
+ lastTriggeredAt?: Date | string | null
23667
+ nextTriggerAt?: Date | string | null
23668
+ externalScheduleId?: string | null
23669
+ externalScheduleName?: string | null
23670
+ createdAt?: Date | string
23671
+ updatedAt?: Date | string
23672
+ }
23673
+
23674
+ export type ScriptScheduleUpdateInput = {
23675
+ scriptName?: StringFieldUpdateOperationsInput | string
23676
+ enabled?: BoolFieldUpdateOperationsInput | boolean
23677
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
23678
+ timezone?: StringFieldUpdateOperationsInput | string
23679
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23680
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23681
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
23682
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
23683
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23684
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23685
+ }
23686
+
23687
+ export type ScriptScheduleUncheckedUpdateInput = {
23688
+ id?: IntFieldUpdateOperationsInput | number
23689
+ scriptName?: StringFieldUpdateOperationsInput | string
23690
+ enabled?: BoolFieldUpdateOperationsInput | boolean
23691
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
23692
+ timezone?: StringFieldUpdateOperationsInput | string
23693
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23694
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23695
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
23696
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
23697
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23698
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23699
+ }
23700
+
23701
+ export type ScriptScheduleCreateManyInput = {
23702
+ id?: number
23703
+ scriptName: string
23704
+ enabled?: boolean
23705
+ cronExpression?: string | null
23706
+ timezone?: string
23707
+ lastTriggeredAt?: Date | string | null
23708
+ nextTriggerAt?: Date | string | null
23709
+ externalScheduleId?: string | null
23710
+ externalScheduleName?: string | null
23711
+ createdAt?: Date | string
23712
+ updatedAt?: Date | string
23713
+ }
23714
+
23715
+ export type ScriptScheduleUpdateManyMutationInput = {
23716
+ scriptName?: StringFieldUpdateOperationsInput | string
23717
+ enabled?: BoolFieldUpdateOperationsInput | boolean
23718
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
23719
+ timezone?: StringFieldUpdateOperationsInput | string
23720
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23721
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23722
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
23723
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
23724
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23725
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23726
+ }
23727
+
23728
+ export type ScriptScheduleUncheckedUpdateManyInput = {
23729
+ id?: IntFieldUpdateOperationsInput | number
23730
+ scriptName?: StringFieldUpdateOperationsInput | string
23731
+ enabled?: BoolFieldUpdateOperationsInput | boolean
23732
+ cronExpression?: NullableStringFieldUpdateOperationsInput | string | null
23733
+ timezone?: StringFieldUpdateOperationsInput | string
23734
+ lastTriggeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23735
+ nextTriggerAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23736
+ externalScheduleId?: NullableStringFieldUpdateOperationsInput | string | null
23737
+ externalScheduleName?: NullableStringFieldUpdateOperationsInput | string | null
23738
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23739
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23740
+ }
23741
+
23742
+ export type ScheduledJobCreateInput = {
23743
+ scheduleName: string
23744
+ scheduledAt: Date | string
23745
+ queueResourceId: string
23746
+ payload?: NullableJsonNullValueInput | InputJsonValue
23747
+ state?: string
23748
+ createdAt?: Date | string
23749
+ updatedAt?: Date | string
23750
+ }
23751
+
23752
+ export type ScheduledJobUncheckedCreateInput = {
23753
+ id?: number
23754
+ scheduleName: string
23755
+ scheduledAt: Date | string
23756
+ queueResourceId: string
23757
+ payload?: NullableJsonNullValueInput | InputJsonValue
23758
+ state?: string
23759
+ createdAt?: Date | string
23760
+ updatedAt?: Date | string
23761
+ }
23762
+
23763
+ export type ScheduledJobUpdateInput = {
23764
+ scheduleName?: StringFieldUpdateOperationsInput | string
23765
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
23766
+ queueResourceId?: StringFieldUpdateOperationsInput | string
23767
+ payload?: NullableJsonNullValueInput | InputJsonValue
23768
+ state?: StringFieldUpdateOperationsInput | string
23769
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23770
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19554
23771
  }
19555
23772
 
19556
- export type WebsocketConnectionUncheckedUpdateInput = {
23773
+ export type ScheduledJobUncheckedUpdateInput = {
19557
23774
  id?: IntFieldUpdateOperationsInput | number
19558
- connectionId?: NullableStringFieldUpdateOperationsInput | string | null
23775
+ scheduleName?: StringFieldUpdateOperationsInput | string
23776
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
23777
+ queueResourceId?: StringFieldUpdateOperationsInput | string
23778
+ payload?: NullableJsonNullValueInput | InputJsonValue
23779
+ state?: StringFieldUpdateOperationsInput | string
23780
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23781
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19559
23782
  }
19560
23783
 
19561
- export type WebsocketConnectionCreateManyInput = {
23784
+ export type ScheduledJobCreateManyInput = {
19562
23785
  id?: number
19563
- connectionId?: string | null
23786
+ scheduleName: string
23787
+ scheduledAt: Date | string
23788
+ queueResourceId: string
23789
+ payload?: NullableJsonNullValueInput | InputJsonValue
23790
+ state?: string
23791
+ createdAt?: Date | string
23792
+ updatedAt?: Date | string
19564
23793
  }
19565
23794
 
19566
- export type WebsocketConnectionUpdateManyMutationInput = {
19567
- connectionId?: NullableStringFieldUpdateOperationsInput | string | null
23795
+ export type ScheduledJobUpdateManyMutationInput = {
23796
+ scheduleName?: StringFieldUpdateOperationsInput | string
23797
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
23798
+ queueResourceId?: StringFieldUpdateOperationsInput | string
23799
+ payload?: NullableJsonNullValueInput | InputJsonValue
23800
+ state?: StringFieldUpdateOperationsInput | string
23801
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23802
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19568
23803
  }
19569
23804
 
19570
- export type WebsocketConnectionUncheckedUpdateManyInput = {
23805
+ export type ScheduledJobUncheckedUpdateManyInput = {
19571
23806
  id?: IntFieldUpdateOperationsInput | number
19572
- connectionId?: NullableStringFieldUpdateOperationsInput | string | null
23807
+ scheduleName?: StringFieldUpdateOperationsInput | string
23808
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
23809
+ queueResourceId?: StringFieldUpdateOperationsInput | string
23810
+ payload?: NullableJsonNullValueInput | InputJsonValue
23811
+ state?: StringFieldUpdateOperationsInput | string
23812
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23813
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19573
23814
  }
19574
23815
 
19575
23816
  export type IntFilter<$PrismaModel = never> = {
@@ -20553,6 +24794,182 @@ export namespace Prisma {
20553
24794
  id?: SortOrder
20554
24795
  }
20555
24796
 
24797
+ export type EnumAdminProcessStateFilter<$PrismaModel = never> = {
24798
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
24799
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
24800
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
24801
+ not?: NestedEnumAdminProcessStateFilter<$PrismaModel> | $Enums.AdminProcessState
24802
+ }
24803
+
24804
+ export type AdminProcessNullableScalarRelationFilter = {
24805
+ is?: AdminProcessWhereInput | null
24806
+ isNot?: AdminProcessWhereInput | null
24807
+ }
24808
+
24809
+ export type AdminProcessListRelationFilter = {
24810
+ every?: AdminProcessWhereInput
24811
+ some?: AdminProcessWhereInput
24812
+ none?: AdminProcessWhereInput
24813
+ }
24814
+
24815
+ export type AdminProcessOrderByRelationAggregateInput = {
24816
+ _count?: SortOrder
24817
+ }
24818
+
24819
+ export type AdminProcessCountOrderByAggregateInput = {
24820
+ id?: SortOrder
24821
+ name?: SortOrder
24822
+ type?: SortOrder
24823
+ state?: SortOrder
24824
+ context?: SortOrder
24825
+ results?: SortOrder
24826
+ parentProcessId?: SortOrder
24827
+ createdAt?: SortOrder
24828
+ updatedAt?: SortOrder
24829
+ }
24830
+
24831
+ export type AdminProcessAvgOrderByAggregateInput = {
24832
+ id?: SortOrder
24833
+ parentProcessId?: SortOrder
24834
+ }
24835
+
24836
+ export type AdminProcessMaxOrderByAggregateInput = {
24837
+ id?: SortOrder
24838
+ name?: SortOrder
24839
+ type?: SortOrder
24840
+ state?: SortOrder
24841
+ parentProcessId?: SortOrder
24842
+ createdAt?: SortOrder
24843
+ updatedAt?: SortOrder
24844
+ }
24845
+
24846
+ export type AdminProcessMinOrderByAggregateInput = {
24847
+ id?: SortOrder
24848
+ name?: SortOrder
24849
+ type?: SortOrder
24850
+ state?: SortOrder
24851
+ parentProcessId?: SortOrder
24852
+ createdAt?: SortOrder
24853
+ updatedAt?: SortOrder
24854
+ }
24855
+
24856
+ export type AdminProcessSumOrderByAggregateInput = {
24857
+ id?: SortOrder
24858
+ parentProcessId?: SortOrder
24859
+ }
24860
+
24861
+ export type EnumAdminProcessStateWithAggregatesFilter<$PrismaModel = never> = {
24862
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
24863
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
24864
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
24865
+ not?: NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel> | $Enums.AdminProcessState
24866
+ _count?: NestedIntFilter<$PrismaModel>
24867
+ _min?: NestedEnumAdminProcessStateFilter<$PrismaModel>
24868
+ _max?: NestedEnumAdminProcessStateFilter<$PrismaModel>
24869
+ }
24870
+
24871
+ export type BoolFilter<$PrismaModel = never> = {
24872
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
24873
+ not?: NestedBoolFilter<$PrismaModel> | boolean
24874
+ }
24875
+
24876
+ export type ScriptScheduleCountOrderByAggregateInput = {
24877
+ id?: SortOrder
24878
+ scriptName?: SortOrder
24879
+ enabled?: SortOrder
24880
+ cronExpression?: SortOrder
24881
+ timezone?: SortOrder
24882
+ lastTriggeredAt?: SortOrder
24883
+ nextTriggerAt?: SortOrder
24884
+ externalScheduleId?: SortOrder
24885
+ externalScheduleName?: SortOrder
24886
+ createdAt?: SortOrder
24887
+ updatedAt?: SortOrder
24888
+ }
24889
+
24890
+ export type ScriptScheduleAvgOrderByAggregateInput = {
24891
+ id?: SortOrder
24892
+ }
24893
+
24894
+ export type ScriptScheduleMaxOrderByAggregateInput = {
24895
+ id?: SortOrder
24896
+ scriptName?: SortOrder
24897
+ enabled?: SortOrder
24898
+ cronExpression?: SortOrder
24899
+ timezone?: SortOrder
24900
+ lastTriggeredAt?: SortOrder
24901
+ nextTriggerAt?: SortOrder
24902
+ externalScheduleId?: SortOrder
24903
+ externalScheduleName?: SortOrder
24904
+ createdAt?: SortOrder
24905
+ updatedAt?: SortOrder
24906
+ }
24907
+
24908
+ export type ScriptScheduleMinOrderByAggregateInput = {
24909
+ id?: SortOrder
24910
+ scriptName?: SortOrder
24911
+ enabled?: SortOrder
24912
+ cronExpression?: SortOrder
24913
+ timezone?: SortOrder
24914
+ lastTriggeredAt?: SortOrder
24915
+ nextTriggerAt?: SortOrder
24916
+ externalScheduleId?: SortOrder
24917
+ externalScheduleName?: SortOrder
24918
+ createdAt?: SortOrder
24919
+ updatedAt?: SortOrder
24920
+ }
24921
+
24922
+ export type ScriptScheduleSumOrderByAggregateInput = {
24923
+ id?: SortOrder
24924
+ }
24925
+
24926
+ export type BoolWithAggregatesFilter<$PrismaModel = never> = {
24927
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
24928
+ not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
24929
+ _count?: NestedIntFilter<$PrismaModel>
24930
+ _min?: NestedBoolFilter<$PrismaModel>
24931
+ _max?: NestedBoolFilter<$PrismaModel>
24932
+ }
24933
+
24934
+ export type ScheduledJobCountOrderByAggregateInput = {
24935
+ id?: SortOrder
24936
+ scheduleName?: SortOrder
24937
+ scheduledAt?: SortOrder
24938
+ queueResourceId?: SortOrder
24939
+ payload?: SortOrder
24940
+ state?: SortOrder
24941
+ createdAt?: SortOrder
24942
+ updatedAt?: SortOrder
24943
+ }
24944
+
24945
+ export type ScheduledJobAvgOrderByAggregateInput = {
24946
+ id?: SortOrder
24947
+ }
24948
+
24949
+ export type ScheduledJobMaxOrderByAggregateInput = {
24950
+ id?: SortOrder
24951
+ scheduleName?: SortOrder
24952
+ scheduledAt?: SortOrder
24953
+ queueResourceId?: SortOrder
24954
+ state?: SortOrder
24955
+ createdAt?: SortOrder
24956
+ updatedAt?: SortOrder
24957
+ }
24958
+
24959
+ export type ScheduledJobMinOrderByAggregateInput = {
24960
+ id?: SortOrder
24961
+ scheduleName?: SortOrder
24962
+ scheduledAt?: SortOrder
24963
+ queueResourceId?: SortOrder
24964
+ state?: SortOrder
24965
+ createdAt?: SortOrder
24966
+ updatedAt?: SortOrder
24967
+ }
24968
+
24969
+ export type ScheduledJobSumOrderByAggregateInput = {
24970
+ id?: SortOrder
24971
+ }
24972
+
20556
24973
  export type UserCreateNestedOneWithoutMembersInput = {
20557
24974
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
20558
24975
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -21665,6 +26082,72 @@ export namespace Prisma {
21665
26082
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
21666
26083
  }
21667
26084
 
26085
+ export type AdminProcessCreateNestedOneWithoutChildProcessesInput = {
26086
+ create?: XOR<AdminProcessCreateWithoutChildProcessesInput, AdminProcessUncheckedCreateWithoutChildProcessesInput>
26087
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutChildProcessesInput
26088
+ connect?: AdminProcessWhereUniqueInput
26089
+ }
26090
+
26091
+ export type AdminProcessCreateNestedManyWithoutParentProcessInput = {
26092
+ create?: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput> | AdminProcessCreateWithoutParentProcessInput[] | AdminProcessUncheckedCreateWithoutParentProcessInput[]
26093
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutParentProcessInput | AdminProcessCreateOrConnectWithoutParentProcessInput[]
26094
+ createMany?: AdminProcessCreateManyParentProcessInputEnvelope
26095
+ connect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26096
+ }
26097
+
26098
+ export type AdminProcessUncheckedCreateNestedManyWithoutParentProcessInput = {
26099
+ create?: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput> | AdminProcessCreateWithoutParentProcessInput[] | AdminProcessUncheckedCreateWithoutParentProcessInput[]
26100
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutParentProcessInput | AdminProcessCreateOrConnectWithoutParentProcessInput[]
26101
+ createMany?: AdminProcessCreateManyParentProcessInputEnvelope
26102
+ connect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26103
+ }
26104
+
26105
+ export type EnumAdminProcessStateFieldUpdateOperationsInput = {
26106
+ set?: $Enums.AdminProcessState
26107
+ }
26108
+
26109
+ export type AdminProcessUpdateOneWithoutChildProcessesNestedInput = {
26110
+ create?: XOR<AdminProcessCreateWithoutChildProcessesInput, AdminProcessUncheckedCreateWithoutChildProcessesInput>
26111
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutChildProcessesInput
26112
+ upsert?: AdminProcessUpsertWithoutChildProcessesInput
26113
+ disconnect?: AdminProcessWhereInput | boolean
26114
+ delete?: AdminProcessWhereInput | boolean
26115
+ connect?: AdminProcessWhereUniqueInput
26116
+ update?: XOR<XOR<AdminProcessUpdateToOneWithWhereWithoutChildProcessesInput, AdminProcessUpdateWithoutChildProcessesInput>, AdminProcessUncheckedUpdateWithoutChildProcessesInput>
26117
+ }
26118
+
26119
+ export type AdminProcessUpdateManyWithoutParentProcessNestedInput = {
26120
+ create?: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput> | AdminProcessCreateWithoutParentProcessInput[] | AdminProcessUncheckedCreateWithoutParentProcessInput[]
26121
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutParentProcessInput | AdminProcessCreateOrConnectWithoutParentProcessInput[]
26122
+ upsert?: AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput | AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput[]
26123
+ createMany?: AdminProcessCreateManyParentProcessInputEnvelope
26124
+ set?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26125
+ disconnect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26126
+ delete?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26127
+ connect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26128
+ update?: AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput | AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput[]
26129
+ updateMany?: AdminProcessUpdateManyWithWhereWithoutParentProcessInput | AdminProcessUpdateManyWithWhereWithoutParentProcessInput[]
26130
+ deleteMany?: AdminProcessScalarWhereInput | AdminProcessScalarWhereInput[]
26131
+ }
26132
+
26133
+ export type AdminProcessUncheckedUpdateManyWithoutParentProcessNestedInput = {
26134
+ create?: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput> | AdminProcessCreateWithoutParentProcessInput[] | AdminProcessUncheckedCreateWithoutParentProcessInput[]
26135
+ connectOrCreate?: AdminProcessCreateOrConnectWithoutParentProcessInput | AdminProcessCreateOrConnectWithoutParentProcessInput[]
26136
+ upsert?: AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput | AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput[]
26137
+ createMany?: AdminProcessCreateManyParentProcessInputEnvelope
26138
+ set?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26139
+ disconnect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26140
+ delete?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26141
+ connect?: AdminProcessWhereUniqueInput | AdminProcessWhereUniqueInput[]
26142
+ update?: AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput | AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput[]
26143
+ updateMany?: AdminProcessUpdateManyWithWhereWithoutParentProcessInput | AdminProcessUpdateManyWithWhereWithoutParentProcessInput[]
26144
+ deleteMany?: AdminProcessScalarWhereInput | AdminProcessScalarWhereInput[]
26145
+ }
26146
+
26147
+ export type BoolFieldUpdateOperationsInput = {
26148
+ set?: boolean
26149
+ }
26150
+
21668
26151
  export type NestedIntFilter<$PrismaModel = never> = {
21669
26152
  equals?: number | IntFieldRefInput<$PrismaModel>
21670
26153
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -21963,6 +26446,36 @@ export namespace Prisma {
21963
26446
  _max?: NestedEnumAssociationTypeFilter<$PrismaModel>
21964
26447
  }
21965
26448
 
26449
+ export type NestedEnumAdminProcessStateFilter<$PrismaModel = never> = {
26450
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
26451
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
26452
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
26453
+ not?: NestedEnumAdminProcessStateFilter<$PrismaModel> | $Enums.AdminProcessState
26454
+ }
26455
+
26456
+ export type NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel = never> = {
26457
+ equals?: $Enums.AdminProcessState | EnumAdminProcessStateFieldRefInput<$PrismaModel>
26458
+ in?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
26459
+ notIn?: $Enums.AdminProcessState[] | ListEnumAdminProcessStateFieldRefInput<$PrismaModel>
26460
+ not?: NestedEnumAdminProcessStateWithAggregatesFilter<$PrismaModel> | $Enums.AdminProcessState
26461
+ _count?: NestedIntFilter<$PrismaModel>
26462
+ _min?: NestedEnumAdminProcessStateFilter<$PrismaModel>
26463
+ _max?: NestedEnumAdminProcessStateFilter<$PrismaModel>
26464
+ }
26465
+
26466
+ export type NestedBoolFilter<$PrismaModel = never> = {
26467
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
26468
+ not?: NestedBoolFilter<$PrismaModel> | boolean
26469
+ }
26470
+
26471
+ export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
26472
+ equals?: boolean | BooleanFieldRefInput<$PrismaModel>
26473
+ not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
26474
+ _count?: NestedIntFilter<$PrismaModel>
26475
+ _min?: NestedBoolFilter<$PrismaModel>
26476
+ _max?: NestedBoolFilter<$PrismaModel>
26477
+ }
26478
+
21966
26479
  export type UserCreateWithoutMembersInput = {
21967
26480
  type: $Enums.UserType
21968
26481
  createdAt?: Date | string
@@ -24309,6 +28822,132 @@ export namespace Prisma {
24309
28822
  data: XOR<ProcessUpdateManyMutationInput, ProcessUncheckedUpdateManyWithoutParentProcessInput>
24310
28823
  }
24311
28824
 
28825
+ export type AdminProcessCreateWithoutChildProcessesInput = {
28826
+ name: string
28827
+ type: string
28828
+ state?: $Enums.AdminProcessState
28829
+ context?: JsonNullValueInput | InputJsonValue
28830
+ results?: JsonNullValueInput | InputJsonValue
28831
+ createdAt?: Date | string
28832
+ updatedAt?: Date | string
28833
+ parentProcess?: AdminProcessCreateNestedOneWithoutChildProcessesInput
28834
+ }
28835
+
28836
+ export type AdminProcessUncheckedCreateWithoutChildProcessesInput = {
28837
+ id?: number
28838
+ name: string
28839
+ type: string
28840
+ state?: $Enums.AdminProcessState
28841
+ context?: JsonNullValueInput | InputJsonValue
28842
+ results?: JsonNullValueInput | InputJsonValue
28843
+ parentProcessId?: number | null
28844
+ createdAt?: Date | string
28845
+ updatedAt?: Date | string
28846
+ }
28847
+
28848
+ export type AdminProcessCreateOrConnectWithoutChildProcessesInput = {
28849
+ where: AdminProcessWhereUniqueInput
28850
+ create: XOR<AdminProcessCreateWithoutChildProcessesInput, AdminProcessUncheckedCreateWithoutChildProcessesInput>
28851
+ }
28852
+
28853
+ export type AdminProcessCreateWithoutParentProcessInput = {
28854
+ name: string
28855
+ type: string
28856
+ state?: $Enums.AdminProcessState
28857
+ context?: JsonNullValueInput | InputJsonValue
28858
+ results?: JsonNullValueInput | InputJsonValue
28859
+ createdAt?: Date | string
28860
+ updatedAt?: Date | string
28861
+ childProcesses?: AdminProcessCreateNestedManyWithoutParentProcessInput
28862
+ }
28863
+
28864
+ export type AdminProcessUncheckedCreateWithoutParentProcessInput = {
28865
+ id?: number
28866
+ name: string
28867
+ type: string
28868
+ state?: $Enums.AdminProcessState
28869
+ context?: JsonNullValueInput | InputJsonValue
28870
+ results?: JsonNullValueInput | InputJsonValue
28871
+ createdAt?: Date | string
28872
+ updatedAt?: Date | string
28873
+ childProcesses?: AdminProcessUncheckedCreateNestedManyWithoutParentProcessInput
28874
+ }
28875
+
28876
+ export type AdminProcessCreateOrConnectWithoutParentProcessInput = {
28877
+ where: AdminProcessWhereUniqueInput
28878
+ create: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput>
28879
+ }
28880
+
28881
+ export type AdminProcessCreateManyParentProcessInputEnvelope = {
28882
+ data: AdminProcessCreateManyParentProcessInput | AdminProcessCreateManyParentProcessInput[]
28883
+ skipDuplicates?: boolean
28884
+ }
28885
+
28886
+ export type AdminProcessUpsertWithoutChildProcessesInput = {
28887
+ update: XOR<AdminProcessUpdateWithoutChildProcessesInput, AdminProcessUncheckedUpdateWithoutChildProcessesInput>
28888
+ create: XOR<AdminProcessCreateWithoutChildProcessesInput, AdminProcessUncheckedCreateWithoutChildProcessesInput>
28889
+ where?: AdminProcessWhereInput
28890
+ }
28891
+
28892
+ export type AdminProcessUpdateToOneWithWhereWithoutChildProcessesInput = {
28893
+ where?: AdminProcessWhereInput
28894
+ data: XOR<AdminProcessUpdateWithoutChildProcessesInput, AdminProcessUncheckedUpdateWithoutChildProcessesInput>
28895
+ }
28896
+
28897
+ export type AdminProcessUpdateWithoutChildProcessesInput = {
28898
+ name?: StringFieldUpdateOperationsInput | string
28899
+ type?: StringFieldUpdateOperationsInput | string
28900
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
28901
+ context?: JsonNullValueInput | InputJsonValue
28902
+ results?: JsonNullValueInput | InputJsonValue
28903
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28904
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28905
+ parentProcess?: AdminProcessUpdateOneWithoutChildProcessesNestedInput
28906
+ }
28907
+
28908
+ export type AdminProcessUncheckedUpdateWithoutChildProcessesInput = {
28909
+ id?: IntFieldUpdateOperationsInput | number
28910
+ name?: StringFieldUpdateOperationsInput | string
28911
+ type?: StringFieldUpdateOperationsInput | string
28912
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
28913
+ context?: JsonNullValueInput | InputJsonValue
28914
+ results?: JsonNullValueInput | InputJsonValue
28915
+ parentProcessId?: NullableIntFieldUpdateOperationsInput | number | null
28916
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28917
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28918
+ }
28919
+
28920
+ export type AdminProcessUpsertWithWhereUniqueWithoutParentProcessInput = {
28921
+ where: AdminProcessWhereUniqueInput
28922
+ update: XOR<AdminProcessUpdateWithoutParentProcessInput, AdminProcessUncheckedUpdateWithoutParentProcessInput>
28923
+ create: XOR<AdminProcessCreateWithoutParentProcessInput, AdminProcessUncheckedCreateWithoutParentProcessInput>
28924
+ }
28925
+
28926
+ export type AdminProcessUpdateWithWhereUniqueWithoutParentProcessInput = {
28927
+ where: AdminProcessWhereUniqueInput
28928
+ data: XOR<AdminProcessUpdateWithoutParentProcessInput, AdminProcessUncheckedUpdateWithoutParentProcessInput>
28929
+ }
28930
+
28931
+ export type AdminProcessUpdateManyWithWhereWithoutParentProcessInput = {
28932
+ where: AdminProcessScalarWhereInput
28933
+ data: XOR<AdminProcessUpdateManyMutationInput, AdminProcessUncheckedUpdateManyWithoutParentProcessInput>
28934
+ }
28935
+
28936
+ export type AdminProcessScalarWhereInput = {
28937
+ AND?: AdminProcessScalarWhereInput | AdminProcessScalarWhereInput[]
28938
+ OR?: AdminProcessScalarWhereInput[]
28939
+ NOT?: AdminProcessScalarWhereInput | AdminProcessScalarWhereInput[]
28940
+ id?: IntFilter<"AdminProcess"> | number
28941
+ name?: StringFilter<"AdminProcess"> | string
28942
+ type?: StringFilter<"AdminProcess"> | string
28943
+ state?: EnumAdminProcessStateFilter<"AdminProcess"> | $Enums.AdminProcessState
28944
+ context?: JsonFilter<"AdminProcess">
28945
+ results?: JsonFilter<"AdminProcess">
28946
+ parentProcessId?: IntNullableFilter<"AdminProcess"> | number | null
28947
+ createdAt?: DateTimeFilter<"AdminProcess"> | Date | string
28948
+ updatedAt?: DateTimeFilter<"AdminProcess"> | Date | string
28949
+ }
28950
+
24312
28951
  export type UserCreateManyOrganizationInput = {
24313
28952
  id?: number
24314
28953
  type: $Enums.UserType
@@ -25114,6 +29753,51 @@ export namespace Prisma {
25114
29753
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
25115
29754
  }
25116
29755
 
29756
+ export type AdminProcessCreateManyParentProcessInput = {
29757
+ id?: number
29758
+ name: string
29759
+ type: string
29760
+ state?: $Enums.AdminProcessState
29761
+ context?: JsonNullValueInput | InputJsonValue
29762
+ results?: JsonNullValueInput | InputJsonValue
29763
+ createdAt?: Date | string
29764
+ updatedAt?: Date | string
29765
+ }
29766
+
29767
+ export type AdminProcessUpdateWithoutParentProcessInput = {
29768
+ name?: StringFieldUpdateOperationsInput | string
29769
+ type?: StringFieldUpdateOperationsInput | string
29770
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
29771
+ context?: JsonNullValueInput | InputJsonValue
29772
+ results?: JsonNullValueInput | InputJsonValue
29773
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29774
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29775
+ childProcesses?: AdminProcessUpdateManyWithoutParentProcessNestedInput
29776
+ }
29777
+
29778
+ export type AdminProcessUncheckedUpdateWithoutParentProcessInput = {
29779
+ id?: IntFieldUpdateOperationsInput | number
29780
+ name?: StringFieldUpdateOperationsInput | string
29781
+ type?: StringFieldUpdateOperationsInput | string
29782
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
29783
+ context?: JsonNullValueInput | InputJsonValue
29784
+ results?: JsonNullValueInput | InputJsonValue
29785
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29786
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29787
+ childProcesses?: AdminProcessUncheckedUpdateManyWithoutParentProcessNestedInput
29788
+ }
29789
+
29790
+ export type AdminProcessUncheckedUpdateManyWithoutParentProcessInput = {
29791
+ id?: IntFieldUpdateOperationsInput | number
29792
+ name?: StringFieldUpdateOperationsInput | string
29793
+ type?: StringFieldUpdateOperationsInput | string
29794
+ state?: EnumAdminProcessStateFieldUpdateOperationsInput | $Enums.AdminProcessState
29795
+ context?: JsonNullValueInput | InputJsonValue
29796
+ results?: JsonNullValueInput | InputJsonValue
29797
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29798
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29799
+ }
29800
+
25117
29801
 
25118
29802
 
25119
29803
  /**