@friggframework/core 2.0.0--canary.680.daae24e.0 → 2.0.0--canary.686.e94de4d.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 (156) hide show
  1. package/CHANGELOG.md +0 -11
  2. package/CLAUDE.md +28 -0
  3. package/README.md +105 -0
  4. package/application/commands/integration-commands.js +2 -2
  5. package/application/commands/scheduler-commands.js +11 -7
  6. package/application/commands/user-commands.js +17 -5
  7. package/core/Worker.js +31 -7
  8. package/core/create-handler.js +9 -0
  9. package/credential/use-cases/credential-operations-for-user.js +110 -25
  10. package/credential/use-cases/reauthorize-credential-for-user.js +15 -8
  11. package/database/config.js +48 -24
  12. package/database/documentdb-utils.js +6 -1
  13. package/database/encryption/README.md +0 -2
  14. package/database/encryption/encryption-config.js +10 -31
  15. package/database/encryption/encryption-schema-registry.js +99 -47
  16. package/database/encryption/field-encryption-service.js +5 -69
  17. package/database/organization-where.js +18 -0
  18. package/database/prisma.js +4 -2
  19. package/database/unique-violation.js +25 -0
  20. package/extensions/bootstrap-runner.js +43 -0
  21. package/extensions/extension-loader.js +187 -0
  22. package/extensions/index.js +41 -0
  23. package/extensions/initialize-app.js +123 -0
  24. package/extensions/route-mounter.js +103 -0
  25. package/extensions/schema-composer.js +188 -0
  26. package/generated/prisma-mongodb/edge.js +27 -4
  27. package/generated/prisma-mongodb/index-browser.js +24 -1
  28. package/generated/prisma-mongodb/index.d.ts +3227 -47
  29. package/generated/prisma-mongodb/index.js +27 -4
  30. package/generated/prisma-mongodb/package.json +1 -1
  31. package/generated/prisma-mongodb/schema.prisma +65 -0
  32. package/generated/prisma-mongodb/wasm.js +27 -4
  33. package/generated/prisma-postgresql/edge.js +27 -4
  34. package/generated/prisma-postgresql/index-browser.js +24 -1
  35. package/generated/prisma-postgresql/index.d.ts +3519 -67
  36. package/generated/prisma-postgresql/index.js +27 -4
  37. package/generated/prisma-postgresql/package.json +1 -1
  38. package/generated/prisma-postgresql/schema.prisma +61 -0
  39. package/generated/prisma-postgresql/wasm.js +27 -4
  40. package/handlers/app-definition-loader.js +103 -12
  41. package/handlers/routers/auth.js +40 -12
  42. package/handlers/routers/health.js +4 -2
  43. package/handlers/routers/integration-defined-routers.js +144 -92
  44. package/handlers/routers/integration-webhook-routers.js +102 -64
  45. package/index.js +63 -1
  46. package/infrastructure/scheduler/index.js +19 -6
  47. package/infrastructure/scheduler/netlify-scheduler-adapter.js +216 -0
  48. package/infrastructure/scheduler/scheduled-job-repository.js +118 -0
  49. package/infrastructure/scheduler/scheduler-service-factory.js +55 -7
  50. package/integrations/index.js +5 -0
  51. package/integrations/integration-router.js +115 -73
  52. package/integrations/repositories/integration-not-found.js +14 -0
  53. package/integrations/repositories/integration-repository-documentdb.js +35 -3
  54. package/integrations/repositories/integration-repository-interface.js +17 -1
  55. package/integrations/repositories/integration-repository-mongo.js +59 -76
  56. package/integrations/repositories/integration-repository-postgres.js +62 -76
  57. package/integrations/schedule-config.js +80 -0
  58. package/integrations/tests/doubles/test-integration-repository.js +12 -1
  59. package/integrations/use-cases/create-integration.js +55 -20
  60. package/integrations/use-cases/dispatch-ongoing-syncs.js +100 -0
  61. package/integrations/use-cases/get-integrations-for-user.js +80 -40
  62. package/integrations/use-cases/index.js +7 -1
  63. package/integrations/use-cases/integration-operations-for-user.js +55 -24
  64. package/integrations/use-cases/resolve-integration-ownership.js +177 -0
  65. package/integrations/utils/map-integration-dto.js +44 -1
  66. package/management-api/management-api-config.js +71 -2
  67. package/management-api/meta-router.js +21 -2
  68. package/management-api/openapi/components.js +40 -0
  69. package/management-api/openapi/v2-operations.js +16 -4
  70. package/management-api/route-registry.js +123 -6
  71. package/management-api/v2/dependencies.js +40 -15
  72. package/management-api/v2/dto.js +20 -0
  73. package/management-api/v2/handlers/authorization.js +1 -0
  74. package/management-api/v2/handlers/credentials.js +6 -2
  75. package/management-api/v2/handlers/entities.js +10 -7
  76. package/management-api/v2/handlers/integrations.js +6 -3
  77. package/management-api/v2/request.js +32 -1
  78. package/modules/entity-scope.js +15 -0
  79. package/modules/index.js +8 -0
  80. package/modules/module-factory.js +12 -0
  81. package/modules/module.js +53 -2
  82. package/modules/repositories/entity-not-found.js +18 -0
  83. package/modules/repositories/module-repository-documentdb.js +51 -6
  84. package/modules/repositories/module-repository-interface.js +19 -2
  85. package/modules/repositories/module-repository-mongo.js +67 -74
  86. package/modules/repositories/module-repository-postgres.js +66 -74
  87. package/modules/repositories/module-repository.js +2 -1
  88. package/modules/scope-config.js +192 -0
  89. package/modules/scope-policy.js +112 -0
  90. package/modules/scope-resolution.js +288 -0
  91. package/modules/scope-visibility.js +247 -0
  92. package/modules/tests/doubles/ownership-matching.js +18 -0
  93. package/modules/use-cases/authorize-entity-for-user.js +61 -0
  94. package/modules/use-cases/create-entity-from-credential.js +113 -0
  95. package/modules/use-cases/entity-operations-for-user.js +50 -13
  96. package/modules/use-cases/entity-types.js +31 -7
  97. package/modules/use-cases/execute-entity-proxy-request.js +50 -3
  98. package/modules/use-cases/get-authorization-requirements.js +2 -2
  99. package/modules/use-cases/get-entities-for-user.js +26 -13
  100. package/modules/use-cases/get-entity-module-for-user.js +34 -7
  101. package/modules/use-cases/get-entity-options-by-id.js +10 -4
  102. package/modules/use-cases/get-entity-options-by-type.js +1 -1
  103. package/modules/use-cases/get-module-instance-from-type.js +1 -1
  104. package/modules/use-cases/get-module.js +10 -4
  105. package/modules/use-cases/manage-access.js +21 -0
  106. package/modules/use-cases/multi-step-authorization.js +40 -13
  107. package/modules/use-cases/process-authorization-callback.js +53 -19
  108. package/modules/use-cases/refresh-entity-options.js +10 -4
  109. package/modules/use-cases/test-module-auth.js +10 -4
  110. package/package.json +6 -5
  111. package/prisma-mongodb/schema.prisma +65 -0
  112. package/prisma-postgresql/migrations/20261015000000_add_organization_membership/migration.sql +26 -0
  113. package/prisma-postgresql/migrations/20261016000000_add_entity_integration_organization/migration.sql +25 -0
  114. package/prisma-postgresql/migrations/20261017000000_add_scheduled_job/migration.sql +28 -0
  115. package/prisma-postgresql/schema.prisma +61 -0
  116. package/providers/index.js +23 -0
  117. package/providers/resolve-provider.js +93 -0
  118. package/providers/runtime-detection.js +124 -0
  119. package/queues/index.js +25 -0
  120. package/queues/providers/index.js +11 -0
  121. package/queues/providers/netlify-background-provider.js +150 -0
  122. package/queues/providers/qstash-queue-provider.js +219 -0
  123. package/queues/providers/sqs-queue-provider.js +70 -0
  124. package/queues/queue-client-interface.js +55 -0
  125. package/queues/queue-message-auth.js +193 -0
  126. package/queues/queue-provider-factory.js +101 -0
  127. package/queues/queue-provider.js +65 -0
  128. package/queues/sqs-queue-client.js +81 -0
  129. package/types/index.d.ts +1 -0
  130. package/types/modules/index.d.ts +139 -0
  131. package/types/user/index.d.ts +134 -0
  132. package/user/adopter-jwt-config.js +177 -0
  133. package/user/adopter-jwt-errors.js +59 -0
  134. package/user/adopter-token-verifier.js +122 -0
  135. package/user/app-user-helpers.js +97 -0
  136. package/user/create-user-authentication.js +64 -0
  137. package/user/membership.js +51 -0
  138. package/user/repositories/organization-membership-record.js +19 -0
  139. package/user/repositories/organization-membership-repository-documentdb.js +106 -0
  140. package/user/repositories/organization-membership-repository-factory.js +42 -0
  141. package/user/repositories/organization-membership-repository-interface.js +57 -0
  142. package/user/repositories/organization-membership-repository-mongo.js +13 -0
  143. package/user/repositories/organization-membership-repository-postgres.js +29 -0
  144. package/user/repositories/organization-membership-repository-prisma.js +81 -0
  145. package/user/repositories/user-repository-documentdb.js +27 -2
  146. package/user/repositories/user-repository-interface.js +18 -0
  147. package/user/repositories/user-repository-mongo.js +24 -0
  148. package/user/repositories/user-repository-postgres.js +18 -0
  149. package/user/tests/doubles/adopter-jwt-fixtures.js +220 -0
  150. package/user/use-cases/authenticate-user.js +7 -1
  151. package/user/use-cases/ensure-organization-membership.js +92 -0
  152. package/user/use-cases/find-individual-users-by-organization.js +54 -0
  153. package/user/use-cases/get-user-from-adopter-jwt.js +95 -124
  154. package/user/use-cases/get-user-from-x-frigg-headers.js +83 -80
  155. package/user/user.js +64 -1
  156. package/database/encryption/test-support/fake-ciphertext.js +0 -15
@@ -110,6 +110,20 @@ export type UsageCounter = $Result.DefaultSelection<Prisma.$UsageCounterPayload>
110
110
  * opportunistically. stepData is encrypted at rest.
111
111
  */
112
112
  export type AuthorizationSession = $Result.DefaultSelection<Prisma.$AuthorizationSessionPayload>
113
+ /**
114
+ * Model OrganizationMembership
115
+ * One person's membership of one organization. Unique on the pair, so adding a
116
+ * membership is an idempotent upsert. `orgRole` is the organization role the
117
+ * adopter token carried when the membership was created (MEMBER when it named none).
118
+ */
119
+ export type OrganizationMembership = $Result.DefaultSelection<Prisma.$OrganizationMembershipPayload>
120
+ /**
121
+ * Model ScheduledJob
122
+ * One-time scheduled jobs for poll-and-dispatch scheduling pattern.
123
+ * Used by providers without native one-time scheduling APIs (e.g., Netlify).
124
+ * A cron function queries for due jobs and dispatches them to a queue.
125
+ */
126
+ export type ScheduledJob = $Result.DefaultSelection<Prisma.$ScheduledJobPayload>
113
127
 
114
128
  /**
115
129
  * Enums
@@ -459,6 +473,26 @@ export class PrismaClient<
459
473
  * ```
460
474
  */
461
475
  get authorizationSession(): Prisma.AuthorizationSessionDelegate<ExtArgs, ClientOptions>;
476
+
477
+ /**
478
+ * `prisma.organizationMembership`: Exposes CRUD operations for the **OrganizationMembership** model.
479
+ * Example usage:
480
+ * ```ts
481
+ * // Fetch zero or more OrganizationMemberships
482
+ * const organizationMemberships = await prisma.organizationMembership.findMany()
483
+ * ```
484
+ */
485
+ get organizationMembership(): Prisma.OrganizationMembershipDelegate<ExtArgs, ClientOptions>;
486
+
487
+ /**
488
+ * `prisma.scheduledJob`: Exposes CRUD operations for the **ScheduledJob** model.
489
+ * Example usage:
490
+ * ```ts
491
+ * // Fetch zero or more ScheduledJobs
492
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
493
+ * ```
494
+ */
495
+ get scheduledJob(): Prisma.ScheduledJobDelegate<ExtArgs, ClientOptions>;
462
496
  }
463
497
 
464
498
  export namespace Prisma {
@@ -916,7 +950,9 @@ export namespace Prisma {
916
950
  AdminScriptExecution: 'AdminScriptExecution',
917
951
  ScriptSchedule: 'ScriptSchedule',
918
952
  UsageCounter: 'UsageCounter',
919
- AuthorizationSession: 'AuthorizationSession'
953
+ AuthorizationSession: 'AuthorizationSession',
954
+ OrganizationMembership: 'OrganizationMembership',
955
+ ScheduledJob: 'ScheduledJob'
920
956
  };
921
957
 
922
958
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -935,7 +971,7 @@ export namespace Prisma {
935
971
  omit: GlobalOmitOptions
936
972
  }
937
973
  meta: {
938
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession"
974
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession" | "organizationMembership" | "scheduledJob"
939
975
  txIsolationLevel: Prisma.TransactionIsolationLevel
940
976
  }
941
977
  model: {
@@ -2197,6 +2233,154 @@ export namespace Prisma {
2197
2233
  }
2198
2234
  }
2199
2235
  }
2236
+ OrganizationMembership: {
2237
+ payload: Prisma.$OrganizationMembershipPayload<ExtArgs>
2238
+ fields: Prisma.OrganizationMembershipFieldRefs
2239
+ operations: {
2240
+ findUnique: {
2241
+ args: Prisma.OrganizationMembershipFindUniqueArgs<ExtArgs>
2242
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload> | null
2243
+ }
2244
+ findUniqueOrThrow: {
2245
+ args: Prisma.OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>
2246
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2247
+ }
2248
+ findFirst: {
2249
+ args: Prisma.OrganizationMembershipFindFirstArgs<ExtArgs>
2250
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload> | null
2251
+ }
2252
+ findFirstOrThrow: {
2253
+ args: Prisma.OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>
2254
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2255
+ }
2256
+ findMany: {
2257
+ args: Prisma.OrganizationMembershipFindManyArgs<ExtArgs>
2258
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
2259
+ }
2260
+ create: {
2261
+ args: Prisma.OrganizationMembershipCreateArgs<ExtArgs>
2262
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2263
+ }
2264
+ createMany: {
2265
+ args: Prisma.OrganizationMembershipCreateManyArgs<ExtArgs>
2266
+ result: BatchPayload
2267
+ }
2268
+ createManyAndReturn: {
2269
+ args: Prisma.OrganizationMembershipCreateManyAndReturnArgs<ExtArgs>
2270
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
2271
+ }
2272
+ delete: {
2273
+ args: Prisma.OrganizationMembershipDeleteArgs<ExtArgs>
2274
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2275
+ }
2276
+ update: {
2277
+ args: Prisma.OrganizationMembershipUpdateArgs<ExtArgs>
2278
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2279
+ }
2280
+ deleteMany: {
2281
+ args: Prisma.OrganizationMembershipDeleteManyArgs<ExtArgs>
2282
+ result: BatchPayload
2283
+ }
2284
+ updateMany: {
2285
+ args: Prisma.OrganizationMembershipUpdateManyArgs<ExtArgs>
2286
+ result: BatchPayload
2287
+ }
2288
+ updateManyAndReturn: {
2289
+ args: Prisma.OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs>
2290
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
2291
+ }
2292
+ upsert: {
2293
+ args: Prisma.OrganizationMembershipUpsertArgs<ExtArgs>
2294
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2295
+ }
2296
+ aggregate: {
2297
+ args: Prisma.OrganizationMembershipAggregateArgs<ExtArgs>
2298
+ result: $Utils.Optional<AggregateOrganizationMembership>
2299
+ }
2300
+ groupBy: {
2301
+ args: Prisma.OrganizationMembershipGroupByArgs<ExtArgs>
2302
+ result: $Utils.Optional<OrganizationMembershipGroupByOutputType>[]
2303
+ }
2304
+ count: {
2305
+ args: Prisma.OrganizationMembershipCountArgs<ExtArgs>
2306
+ result: $Utils.Optional<OrganizationMembershipCountAggregateOutputType> | number
2307
+ }
2308
+ }
2309
+ }
2310
+ ScheduledJob: {
2311
+ payload: Prisma.$ScheduledJobPayload<ExtArgs>
2312
+ fields: Prisma.ScheduledJobFieldRefs
2313
+ operations: {
2314
+ findUnique: {
2315
+ args: Prisma.ScheduledJobFindUniqueArgs<ExtArgs>
2316
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2317
+ }
2318
+ findUniqueOrThrow: {
2319
+ args: Prisma.ScheduledJobFindUniqueOrThrowArgs<ExtArgs>
2320
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2321
+ }
2322
+ findFirst: {
2323
+ args: Prisma.ScheduledJobFindFirstArgs<ExtArgs>
2324
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload> | null
2325
+ }
2326
+ findFirstOrThrow: {
2327
+ args: Prisma.ScheduledJobFindFirstOrThrowArgs<ExtArgs>
2328
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2329
+ }
2330
+ findMany: {
2331
+ args: Prisma.ScheduledJobFindManyArgs<ExtArgs>
2332
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2333
+ }
2334
+ create: {
2335
+ args: Prisma.ScheduledJobCreateArgs<ExtArgs>
2336
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2337
+ }
2338
+ createMany: {
2339
+ args: Prisma.ScheduledJobCreateManyArgs<ExtArgs>
2340
+ result: BatchPayload
2341
+ }
2342
+ createManyAndReturn: {
2343
+ args: Prisma.ScheduledJobCreateManyAndReturnArgs<ExtArgs>
2344
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2345
+ }
2346
+ delete: {
2347
+ args: Prisma.ScheduledJobDeleteArgs<ExtArgs>
2348
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2349
+ }
2350
+ update: {
2351
+ args: Prisma.ScheduledJobUpdateArgs<ExtArgs>
2352
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2353
+ }
2354
+ deleteMany: {
2355
+ args: Prisma.ScheduledJobDeleteManyArgs<ExtArgs>
2356
+ result: BatchPayload
2357
+ }
2358
+ updateMany: {
2359
+ args: Prisma.ScheduledJobUpdateManyArgs<ExtArgs>
2360
+ result: BatchPayload
2361
+ }
2362
+ updateManyAndReturn: {
2363
+ args: Prisma.ScheduledJobUpdateManyAndReturnArgs<ExtArgs>
2364
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>[]
2365
+ }
2366
+ upsert: {
2367
+ args: Prisma.ScheduledJobUpsertArgs<ExtArgs>
2368
+ result: $Utils.PayloadToResult<Prisma.$ScheduledJobPayload>
2369
+ }
2370
+ aggregate: {
2371
+ args: Prisma.ScheduledJobAggregateArgs<ExtArgs>
2372
+ result: $Utils.Optional<AggregateScheduledJob>
2373
+ }
2374
+ groupBy: {
2375
+ args: Prisma.ScheduledJobGroupByArgs<ExtArgs>
2376
+ result: $Utils.Optional<ScheduledJobGroupByOutputType>[]
2377
+ }
2378
+ count: {
2379
+ args: Prisma.ScheduledJobCountArgs<ExtArgs>
2380
+ result: $Utils.Optional<ScheduledJobCountAggregateOutputType> | number
2381
+ }
2382
+ }
2383
+ }
2200
2384
  }
2201
2385
  } & {
2202
2386
  other: {
@@ -2310,6 +2494,8 @@ export namespace Prisma {
2310
2494
  scriptSchedule?: ScriptScheduleOmit
2311
2495
  usageCounter?: UsageCounterOmit
2312
2496
  authorizationSession?: AuthorizationSessionOmit
2497
+ organizationMembership?: OrganizationMembershipOmit
2498
+ scheduledJob?: ScheduledJobOmit
2313
2499
  }
2314
2500
 
2315
2501
  /* Types for Logging */
@@ -2396,6 +2582,8 @@ export namespace Prisma {
2396
2582
  entities: number
2397
2583
  integrations: number
2398
2584
  processes: number
2585
+ memberships: number
2586
+ orgMembers: number
2399
2587
  }
2400
2588
 
2401
2589
  export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -2405,6 +2593,8 @@ export namespace Prisma {
2405
2593
  entities?: boolean | UserCountOutputTypeCountEntitiesArgs
2406
2594
  integrations?: boolean | UserCountOutputTypeCountIntegrationsArgs
2407
2595
  processes?: boolean | UserCountOutputTypeCountProcessesArgs
2596
+ memberships?: boolean | UserCountOutputTypeCountMembershipsArgs
2597
+ orgMembers?: boolean | UserCountOutputTypeCountOrgMembersArgs
2408
2598
  }
2409
2599
 
2410
2600
  // Custom InputTypes
@@ -2460,6 +2650,20 @@ export namespace Prisma {
2460
2650
  where?: ProcessWhereInput
2461
2651
  }
2462
2652
 
2653
+ /**
2654
+ * UserCountOutputType without action
2655
+ */
2656
+ export type UserCountOutputTypeCountMembershipsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2657
+ where?: OrganizationMembershipWhereInput
2658
+ }
2659
+
2660
+ /**
2661
+ * UserCountOutputType without action
2662
+ */
2663
+ export type UserCountOutputTypeCountOrgMembersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2664
+ where?: OrganizationMembershipWhereInput
2665
+ }
2666
+
2463
2667
 
2464
2668
  /**
2465
2669
  * Count Type CredentialCountOutputType
@@ -3011,6 +3215,8 @@ export namespace Prisma {
3011
3215
  entities?: boolean | User$entitiesArgs<ExtArgs>
3012
3216
  integrations?: boolean | User$integrationsArgs<ExtArgs>
3013
3217
  processes?: boolean | User$processesArgs<ExtArgs>
3218
+ memberships?: boolean | User$membershipsArgs<ExtArgs>
3219
+ orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
3014
3220
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
3015
3221
  }, ExtArgs["result"]["user"]>
3016
3222
 
@@ -3067,6 +3273,8 @@ export namespace Prisma {
3067
3273
  entities?: boolean | User$entitiesArgs<ExtArgs>
3068
3274
  integrations?: boolean | User$integrationsArgs<ExtArgs>
3069
3275
  processes?: boolean | User$processesArgs<ExtArgs>
3276
+ memberships?: boolean | User$membershipsArgs<ExtArgs>
3277
+ orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
3070
3278
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
3071
3279
  }
3072
3280
  export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -3086,6 +3294,8 @@ export namespace Prisma {
3086
3294
  entities: Prisma.$EntityPayload<ExtArgs>[]
3087
3295
  integrations: Prisma.$IntegrationPayload<ExtArgs>[]
3088
3296
  processes: Prisma.$ProcessPayload<ExtArgs>[]
3297
+ memberships: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
3298
+ orgMembers: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
3089
3299
  }
3090
3300
  scalars: $Extensions.GetPayloadResult<{
3091
3301
  id: number
@@ -3500,6 +3710,8 @@ export namespace Prisma {
3500
3710
  entities<T extends User$entitiesArgs<ExtArgs> = {}>(args?: Subset<T, User$entitiesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3501
3711
  integrations<T extends User$integrationsArgs<ExtArgs> = {}>(args?: Subset<T, User$integrationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3502
3712
  processes<T extends User$processesArgs<ExtArgs> = {}>(args?: Subset<T, User$processesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3713
+ memberships<T extends User$membershipsArgs<ExtArgs> = {}>(args?: Subset<T, User$membershipsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3714
+ orgMembers<T extends User$orgMembersArgs<ExtArgs> = {}>(args?: Subset<T, User$orgMembersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3503
3715
  /**
3504
3716
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3505
3717
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4098,6 +4310,54 @@ export namespace Prisma {
4098
4310
  distinct?: ProcessScalarFieldEnum | ProcessScalarFieldEnum[]
4099
4311
  }
4100
4312
 
4313
+ /**
4314
+ * User.memberships
4315
+ */
4316
+ export type User$membershipsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4317
+ /**
4318
+ * Select specific fields to fetch from the OrganizationMembership
4319
+ */
4320
+ select?: OrganizationMembershipSelect<ExtArgs> | null
4321
+ /**
4322
+ * Omit specific fields from the OrganizationMembership
4323
+ */
4324
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
4325
+ /**
4326
+ * Choose, which related nodes to fetch as well
4327
+ */
4328
+ include?: OrganizationMembershipInclude<ExtArgs> | null
4329
+ where?: OrganizationMembershipWhereInput
4330
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
4331
+ cursor?: OrganizationMembershipWhereUniqueInput
4332
+ take?: number
4333
+ skip?: number
4334
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
4335
+ }
4336
+
4337
+ /**
4338
+ * User.orgMembers
4339
+ */
4340
+ export type User$orgMembersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4341
+ /**
4342
+ * Select specific fields to fetch from the OrganizationMembership
4343
+ */
4344
+ select?: OrganizationMembershipSelect<ExtArgs> | null
4345
+ /**
4346
+ * Omit specific fields from the OrganizationMembership
4347
+ */
4348
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
4349
+ /**
4350
+ * Choose, which related nodes to fetch as well
4351
+ */
4352
+ include?: OrganizationMembershipInclude<ExtArgs> | null
4353
+ where?: OrganizationMembershipWhereInput
4354
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
4355
+ cursor?: OrganizationMembershipWhereUniqueInput
4356
+ take?: number
4357
+ skip?: number
4358
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
4359
+ }
4360
+
4101
4361
  /**
4102
4362
  * User without action
4103
4363
  */
@@ -6396,12 +6656,14 @@ export namespace Prisma {
6396
6656
  id: number | null
6397
6657
  credentialId: number | null
6398
6658
  userId: number | null
6659
+ organizationId: number | null
6399
6660
  }
6400
6661
 
6401
6662
  export type EntitySumAggregateOutputType = {
6402
6663
  id: number | null
6403
6664
  credentialId: number | null
6404
6665
  userId: number | null
6666
+ organizationId: number | null
6405
6667
  }
6406
6668
 
6407
6669
  export type EntityMinAggregateOutputType = {
@@ -6411,6 +6673,7 @@ export namespace Prisma {
6411
6673
  name: string | null
6412
6674
  moduleName: string | null
6413
6675
  externalId: string | null
6676
+ organizationId: number | null
6414
6677
  createdAt: Date | null
6415
6678
  updatedAt: Date | null
6416
6679
  }
@@ -6422,6 +6685,7 @@ export namespace Prisma {
6422
6685
  name: string | null
6423
6686
  moduleName: string | null
6424
6687
  externalId: string | null
6688
+ organizationId: number | null
6425
6689
  createdAt: Date | null
6426
6690
  updatedAt: Date | null
6427
6691
  }
@@ -6433,6 +6697,7 @@ export namespace Prisma {
6433
6697
  name: number
6434
6698
  moduleName: number
6435
6699
  externalId: number
6700
+ organizationId: number
6436
6701
  data: number
6437
6702
  createdAt: number
6438
6703
  updatedAt: number
@@ -6444,12 +6709,14 @@ export namespace Prisma {
6444
6709
  id?: true
6445
6710
  credentialId?: true
6446
6711
  userId?: true
6712
+ organizationId?: true
6447
6713
  }
6448
6714
 
6449
6715
  export type EntitySumAggregateInputType = {
6450
6716
  id?: true
6451
6717
  credentialId?: true
6452
6718
  userId?: true
6719
+ organizationId?: true
6453
6720
  }
6454
6721
 
6455
6722
  export type EntityMinAggregateInputType = {
@@ -6459,6 +6726,7 @@ export namespace Prisma {
6459
6726
  name?: true
6460
6727
  moduleName?: true
6461
6728
  externalId?: true
6729
+ organizationId?: true
6462
6730
  createdAt?: true
6463
6731
  updatedAt?: true
6464
6732
  }
@@ -6470,6 +6738,7 @@ export namespace Prisma {
6470
6738
  name?: true
6471
6739
  moduleName?: true
6472
6740
  externalId?: true
6741
+ organizationId?: true
6473
6742
  createdAt?: true
6474
6743
  updatedAt?: true
6475
6744
  }
@@ -6481,6 +6750,7 @@ export namespace Prisma {
6481
6750
  name?: true
6482
6751
  moduleName?: true
6483
6752
  externalId?: true
6753
+ organizationId?: true
6484
6754
  data?: true
6485
6755
  createdAt?: true
6486
6756
  updatedAt?: true
@@ -6580,6 +6850,7 @@ export namespace Prisma {
6580
6850
  name: string | null
6581
6851
  moduleName: string | null
6582
6852
  externalId: string | null
6853
+ organizationId: number | null
6583
6854
  data: JsonValue
6584
6855
  createdAt: Date
6585
6856
  updatedAt: Date
@@ -6611,6 +6882,7 @@ export namespace Prisma {
6611
6882
  name?: boolean
6612
6883
  moduleName?: boolean
6613
6884
  externalId?: boolean
6885
+ organizationId?: boolean
6614
6886
  data?: boolean
6615
6887
  createdAt?: boolean
6616
6888
  updatedAt?: boolean
@@ -6630,6 +6902,7 @@ export namespace Prisma {
6630
6902
  name?: boolean
6631
6903
  moduleName?: boolean
6632
6904
  externalId?: boolean
6905
+ organizationId?: boolean
6633
6906
  data?: boolean
6634
6907
  createdAt?: boolean
6635
6908
  updatedAt?: boolean
@@ -6644,6 +6917,7 @@ export namespace Prisma {
6644
6917
  name?: boolean
6645
6918
  moduleName?: boolean
6646
6919
  externalId?: boolean
6920
+ organizationId?: boolean
6647
6921
  data?: boolean
6648
6922
  createdAt?: boolean
6649
6923
  updatedAt?: boolean
@@ -6658,12 +6932,13 @@ export namespace Prisma {
6658
6932
  name?: boolean
6659
6933
  moduleName?: boolean
6660
6934
  externalId?: boolean
6935
+ organizationId?: boolean
6661
6936
  data?: boolean
6662
6937
  createdAt?: boolean
6663
6938
  updatedAt?: boolean
6664
6939
  }
6665
6940
 
6666
- export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "credentialId" | "userId" | "name" | "moduleName" | "externalId" | "data" | "createdAt" | "updatedAt", ExtArgs["result"]["entity"]>
6941
+ export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "credentialId" | "userId" | "name" | "moduleName" | "externalId" | "organizationId" | "data" | "createdAt" | "updatedAt", ExtArgs["result"]["entity"]>
6667
6942
  export type EntityInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6668
6943
  credential?: boolean | Entity$credentialArgs<ExtArgs>
6669
6944
  user?: boolean | Entity$userArgs<ExtArgs>
@@ -6699,6 +6974,7 @@ export namespace Prisma {
6699
6974
  name: string | null
6700
6975
  moduleName: string | null
6701
6976
  externalId: string | null
6977
+ organizationId: number | null
6702
6978
  data: Prisma.JsonValue
6703
6979
  createdAt: Date
6704
6980
  updatedAt: Date
@@ -7137,6 +7413,7 @@ export namespace Prisma {
7137
7413
  readonly name: FieldRef<"Entity", 'String'>
7138
7414
  readonly moduleName: FieldRef<"Entity", 'String'>
7139
7415
  readonly externalId: FieldRef<"Entity", 'String'>
7416
+ readonly organizationId: FieldRef<"Entity", 'Int'>
7140
7417
  readonly data: FieldRef<"Entity", 'Json'>
7141
7418
  readonly createdAt: FieldRef<"Entity", 'DateTime'>
7142
7419
  readonly updatedAt: FieldRef<"Entity", 'DateTime'>
@@ -7703,17 +7980,20 @@ export namespace Prisma {
7703
7980
  export type IntegrationAvgAggregateOutputType = {
7704
7981
  id: number | null
7705
7982
  userId: number | null
7983
+ organizationId: number | null
7706
7984
  }
7707
7985
 
7708
7986
  export type IntegrationSumAggregateOutputType = {
7709
7987
  id: number | null
7710
7988
  userId: number | null
7989
+ organizationId: number | null
7711
7990
  }
7712
7991
 
7713
7992
  export type IntegrationMinAggregateOutputType = {
7714
7993
  id: number | null
7715
7994
  userId: number | null
7716
7995
  status: $Enums.IntegrationStatus | null
7996
+ organizationId: number | null
7717
7997
  version: string | null
7718
7998
  createdAt: Date | null
7719
7999
  updatedAt: Date | null
@@ -7723,6 +8003,7 @@ export namespace Prisma {
7723
8003
  id: number | null
7724
8004
  userId: number | null
7725
8005
  status: $Enums.IntegrationStatus | null
8006
+ organizationId: number | null
7726
8007
  version: string | null
7727
8008
  createdAt: Date | null
7728
8009
  updatedAt: Date | null
@@ -7732,6 +8013,7 @@ export namespace Prisma {
7732
8013
  id: number
7733
8014
  userId: number
7734
8015
  status: number
8016
+ organizationId: number
7735
8017
  config: number
7736
8018
  version: number
7737
8019
  errors: number
@@ -7747,17 +8029,20 @@ export namespace Prisma {
7747
8029
  export type IntegrationAvgAggregateInputType = {
7748
8030
  id?: true
7749
8031
  userId?: true
8032
+ organizationId?: true
7750
8033
  }
7751
8034
 
7752
8035
  export type IntegrationSumAggregateInputType = {
7753
8036
  id?: true
7754
8037
  userId?: true
8038
+ organizationId?: true
7755
8039
  }
7756
8040
 
7757
8041
  export type IntegrationMinAggregateInputType = {
7758
8042
  id?: true
7759
8043
  userId?: true
7760
8044
  status?: true
8045
+ organizationId?: true
7761
8046
  version?: true
7762
8047
  createdAt?: true
7763
8048
  updatedAt?: true
@@ -7767,6 +8052,7 @@ export namespace Prisma {
7767
8052
  id?: true
7768
8053
  userId?: true
7769
8054
  status?: true
8055
+ organizationId?: true
7770
8056
  version?: true
7771
8057
  createdAt?: true
7772
8058
  updatedAt?: true
@@ -7776,6 +8062,7 @@ export namespace Prisma {
7776
8062
  id?: true
7777
8063
  userId?: true
7778
8064
  status?: true
8065
+ organizationId?: true
7779
8066
  config?: true
7780
8067
  version?: true
7781
8068
  errors?: true
@@ -7877,6 +8164,7 @@ export namespace Prisma {
7877
8164
  id: number
7878
8165
  userId: number | null
7879
8166
  status: $Enums.IntegrationStatus
8167
+ organizationId: number | null
7880
8168
  config: JsonValue | null
7881
8169
  version: string | null
7882
8170
  errors: JsonValue
@@ -7910,6 +8198,7 @@ export namespace Prisma {
7910
8198
  id?: boolean
7911
8199
  userId?: boolean
7912
8200
  status?: boolean
8201
+ organizationId?: boolean
7913
8202
  config?: boolean
7914
8203
  version?: boolean
7915
8204
  errors?: boolean
@@ -7931,6 +8220,7 @@ export namespace Prisma {
7931
8220
  id?: boolean
7932
8221
  userId?: boolean
7933
8222
  status?: boolean
8223
+ organizationId?: boolean
7934
8224
  config?: boolean
7935
8225
  version?: boolean
7936
8226
  errors?: boolean
@@ -7946,6 +8236,7 @@ export namespace Prisma {
7946
8236
  id?: boolean
7947
8237
  userId?: boolean
7948
8238
  status?: boolean
8239
+ organizationId?: boolean
7949
8240
  config?: boolean
7950
8241
  version?: boolean
7951
8242
  errors?: boolean
@@ -7961,6 +8252,7 @@ export namespace Prisma {
7961
8252
  id?: boolean
7962
8253
  userId?: boolean
7963
8254
  status?: boolean
8255
+ organizationId?: boolean
7964
8256
  config?: boolean
7965
8257
  version?: boolean
7966
8258
  errors?: boolean
@@ -7971,7 +8263,7 @@ export namespace Prisma {
7971
8263
  updatedAt?: boolean
7972
8264
  }
7973
8265
 
7974
- export type IntegrationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "status" | "config" | "version" | "errors" | "warnings" | "info" | "logs" | "createdAt" | "updatedAt", ExtArgs["result"]["integration"]>
8266
+ export type IntegrationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "status" | "organizationId" | "config" | "version" | "errors" | "warnings" | "info" | "logs" | "createdAt" | "updatedAt", ExtArgs["result"]["integration"]>
7975
8267
  export type IntegrationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7976
8268
  user?: boolean | Integration$userArgs<ExtArgs>
7977
8269
  entities?: boolean | Integration$entitiesArgs<ExtArgs>
@@ -8002,6 +8294,7 @@ export namespace Prisma {
8002
8294
  id: number
8003
8295
  userId: number | null
8004
8296
  status: $Enums.IntegrationStatus
8297
+ organizationId: number | null
8005
8298
  config: Prisma.JsonValue | null
8006
8299
  version: string | null
8007
8300
  errors: Prisma.JsonValue
@@ -8442,6 +8735,7 @@ export namespace Prisma {
8442
8735
  readonly id: FieldRef<"Integration", 'Int'>
8443
8736
  readonly userId: FieldRef<"Integration", 'Int'>
8444
8737
  readonly status: FieldRef<"Integration", 'IntegrationStatus'>
8738
+ readonly organizationId: FieldRef<"Integration", 'Int'>
8445
8739
  readonly config: FieldRef<"Integration", 'Json'>
8446
8740
  readonly version: FieldRef<"Integration", 'String'>
8447
8741
  readonly errors: FieldRef<"Integration", 'Json'>
@@ -22342,83 +22636,2257 @@ export namespace Prisma {
22342
22636
 
22343
22637
 
22344
22638
  /**
22345
- * Enums
22639
+ * Model OrganizationMembership
22346
22640
  */
22347
22641
 
22348
- export const TransactionIsolationLevel: {
22349
- ReadUncommitted: 'ReadUncommitted',
22350
- ReadCommitted: 'ReadCommitted',
22351
- RepeatableRead: 'RepeatableRead',
22352
- Serializable: 'Serializable'
22353
- };
22354
-
22355
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
22356
-
22357
-
22358
- export const UserScalarFieldEnum: {
22359
- id: 'id',
22360
- type: 'type',
22361
- createdAt: 'createdAt',
22362
- updatedAt: 'updatedAt',
22363
- email: 'email',
22364
- username: 'username',
22365
- hashword: 'hashword',
22366
- appUserId: 'appUserId',
22367
- organizationId: 'organizationId',
22368
- appOrgId: 'appOrgId',
22369
- name: 'name'
22370
- };
22642
+ export type AggregateOrganizationMembership = {
22643
+ _count: OrganizationMembershipCountAggregateOutputType | null
22644
+ _avg: OrganizationMembershipAvgAggregateOutputType | null
22645
+ _sum: OrganizationMembershipSumAggregateOutputType | null
22646
+ _min: OrganizationMembershipMinAggregateOutputType | null
22647
+ _max: OrganizationMembershipMaxAggregateOutputType | null
22648
+ }
22371
22649
 
22372
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
22650
+ export type OrganizationMembershipAvgAggregateOutputType = {
22651
+ id: number | null
22652
+ individualUserId: number | null
22653
+ organizationUserId: number | null
22654
+ }
22373
22655
 
22656
+ export type OrganizationMembershipSumAggregateOutputType = {
22657
+ id: number | null
22658
+ individualUserId: number | null
22659
+ organizationUserId: number | null
22660
+ }
22374
22661
 
22375
- export const TokenScalarFieldEnum: {
22376
- id: 'id',
22377
- token: 'token',
22378
- created: 'created',
22379
- expires: 'expires',
22380
- userId: 'userId'
22381
- };
22662
+ export type OrganizationMembershipMinAggregateOutputType = {
22663
+ id: number | null
22664
+ individualUserId: number | null
22665
+ organizationUserId: number | null
22666
+ orgRole: string | null
22667
+ createdAt: Date | null
22668
+ }
22382
22669
 
22383
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
22670
+ export type OrganizationMembershipMaxAggregateOutputType = {
22671
+ id: number | null
22672
+ individualUserId: number | null
22673
+ organizationUserId: number | null
22674
+ orgRole: string | null
22675
+ createdAt: Date | null
22676
+ }
22384
22677
 
22678
+ export type OrganizationMembershipCountAggregateOutputType = {
22679
+ id: number
22680
+ individualUserId: number
22681
+ organizationUserId: number
22682
+ orgRole: number
22683
+ createdAt: number
22684
+ _all: number
22685
+ }
22385
22686
 
22386
- export const CredentialScalarFieldEnum: {
22387
- id: 'id',
22388
- userId: 'userId',
22389
- authIsValid: 'authIsValid',
22390
- externalId: 'externalId',
22391
- data: 'data',
22392
- createdAt: 'createdAt',
22393
- updatedAt: 'updatedAt'
22394
- };
22395
22687
 
22396
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
22688
+ export type OrganizationMembershipAvgAggregateInputType = {
22689
+ id?: true
22690
+ individualUserId?: true
22691
+ organizationUserId?: true
22692
+ }
22397
22693
 
22694
+ export type OrganizationMembershipSumAggregateInputType = {
22695
+ id?: true
22696
+ individualUserId?: true
22697
+ organizationUserId?: true
22698
+ }
22398
22699
 
22399
- export const EntityScalarFieldEnum: {
22400
- id: 'id',
22401
- credentialId: 'credentialId',
22402
- userId: 'userId',
22403
- name: 'name',
22404
- moduleName: 'moduleName',
22405
- externalId: 'externalId',
22406
- data: 'data',
22407
- createdAt: 'createdAt',
22408
- updatedAt: 'updatedAt'
22409
- };
22700
+ export type OrganizationMembershipMinAggregateInputType = {
22701
+ id?: true
22702
+ individualUserId?: true
22703
+ organizationUserId?: true
22704
+ orgRole?: true
22705
+ createdAt?: true
22706
+ }
22410
22707
 
22411
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
22708
+ export type OrganizationMembershipMaxAggregateInputType = {
22709
+ id?: true
22710
+ individualUserId?: true
22711
+ organizationUserId?: true
22712
+ orgRole?: true
22713
+ createdAt?: true
22714
+ }
22412
22715
 
22716
+ export type OrganizationMembershipCountAggregateInputType = {
22717
+ id?: true
22718
+ individualUserId?: true
22719
+ organizationUserId?: true
22720
+ orgRole?: true
22721
+ createdAt?: true
22722
+ _all?: true
22723
+ }
22413
22724
 
22414
- export const IntegrationScalarFieldEnum: {
22415
- id: 'id',
22416
- userId: 'userId',
22417
- status: 'status',
22418
- config: 'config',
22419
- version: 'version',
22420
- errors: 'errors',
22421
- warnings: 'warnings',
22725
+ export type OrganizationMembershipAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22726
+ /**
22727
+ * Filter which OrganizationMembership to aggregate.
22728
+ */
22729
+ where?: OrganizationMembershipWhereInput
22730
+ /**
22731
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
22732
+ *
22733
+ * Determine the order of OrganizationMemberships to fetch.
22734
+ */
22735
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
22736
+ /**
22737
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
22738
+ *
22739
+ * Sets the start position
22740
+ */
22741
+ cursor?: OrganizationMembershipWhereUniqueInput
22742
+ /**
22743
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22744
+ *
22745
+ * Take `±n` OrganizationMemberships from the position of the cursor.
22746
+ */
22747
+ take?: number
22748
+ /**
22749
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22750
+ *
22751
+ * Skip the first `n` OrganizationMemberships.
22752
+ */
22753
+ skip?: number
22754
+ /**
22755
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22756
+ *
22757
+ * Count returned OrganizationMemberships
22758
+ **/
22759
+ _count?: true | OrganizationMembershipCountAggregateInputType
22760
+ /**
22761
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22762
+ *
22763
+ * Select which fields to average
22764
+ **/
22765
+ _avg?: OrganizationMembershipAvgAggregateInputType
22766
+ /**
22767
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22768
+ *
22769
+ * Select which fields to sum
22770
+ **/
22771
+ _sum?: OrganizationMembershipSumAggregateInputType
22772
+ /**
22773
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22774
+ *
22775
+ * Select which fields to find the minimum value
22776
+ **/
22777
+ _min?: OrganizationMembershipMinAggregateInputType
22778
+ /**
22779
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22780
+ *
22781
+ * Select which fields to find the maximum value
22782
+ **/
22783
+ _max?: OrganizationMembershipMaxAggregateInputType
22784
+ }
22785
+
22786
+ export type GetOrganizationMembershipAggregateType<T extends OrganizationMembershipAggregateArgs> = {
22787
+ [P in keyof T & keyof AggregateOrganizationMembership]: P extends '_count' | 'count'
22788
+ ? T[P] extends true
22789
+ ? number
22790
+ : GetScalarType<T[P], AggregateOrganizationMembership[P]>
22791
+ : GetScalarType<T[P], AggregateOrganizationMembership[P]>
22792
+ }
22793
+
22794
+
22795
+
22796
+
22797
+ export type OrganizationMembershipGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22798
+ where?: OrganizationMembershipWhereInput
22799
+ orderBy?: OrganizationMembershipOrderByWithAggregationInput | OrganizationMembershipOrderByWithAggregationInput[]
22800
+ by: OrganizationMembershipScalarFieldEnum[] | OrganizationMembershipScalarFieldEnum
22801
+ having?: OrganizationMembershipScalarWhereWithAggregatesInput
22802
+ take?: number
22803
+ skip?: number
22804
+ _count?: OrganizationMembershipCountAggregateInputType | true
22805
+ _avg?: OrganizationMembershipAvgAggregateInputType
22806
+ _sum?: OrganizationMembershipSumAggregateInputType
22807
+ _min?: OrganizationMembershipMinAggregateInputType
22808
+ _max?: OrganizationMembershipMaxAggregateInputType
22809
+ }
22810
+
22811
+ export type OrganizationMembershipGroupByOutputType = {
22812
+ id: number
22813
+ individualUserId: number
22814
+ organizationUserId: number
22815
+ orgRole: string
22816
+ createdAt: Date
22817
+ _count: OrganizationMembershipCountAggregateOutputType | null
22818
+ _avg: OrganizationMembershipAvgAggregateOutputType | null
22819
+ _sum: OrganizationMembershipSumAggregateOutputType | null
22820
+ _min: OrganizationMembershipMinAggregateOutputType | null
22821
+ _max: OrganizationMembershipMaxAggregateOutputType | null
22822
+ }
22823
+
22824
+ type GetOrganizationMembershipGroupByPayload<T extends OrganizationMembershipGroupByArgs> = Prisma.PrismaPromise<
22825
+ Array<
22826
+ PickEnumerable<OrganizationMembershipGroupByOutputType, T['by']> &
22827
+ {
22828
+ [P in ((keyof T) & (keyof OrganizationMembershipGroupByOutputType))]: P extends '_count'
22829
+ ? T[P] extends boolean
22830
+ ? number
22831
+ : GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
22832
+ : GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
22833
+ }
22834
+ >
22835
+ >
22836
+
22837
+
22838
+ export type OrganizationMembershipSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
22839
+ id?: boolean
22840
+ individualUserId?: boolean
22841
+ organizationUserId?: boolean
22842
+ orgRole?: boolean
22843
+ createdAt?: boolean
22844
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
22845
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22846
+ }, ExtArgs["result"]["organizationMembership"]>
22847
+
22848
+ export type OrganizationMembershipSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
22849
+ id?: boolean
22850
+ individualUserId?: boolean
22851
+ organizationUserId?: boolean
22852
+ orgRole?: boolean
22853
+ createdAt?: boolean
22854
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
22855
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22856
+ }, ExtArgs["result"]["organizationMembership"]>
22857
+
22858
+ export type OrganizationMembershipSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
22859
+ id?: boolean
22860
+ individualUserId?: boolean
22861
+ organizationUserId?: boolean
22862
+ orgRole?: boolean
22863
+ createdAt?: boolean
22864
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
22865
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22866
+ }, ExtArgs["result"]["organizationMembership"]>
22867
+
22868
+ export type OrganizationMembershipSelectScalar = {
22869
+ id?: boolean
22870
+ individualUserId?: boolean
22871
+ organizationUserId?: boolean
22872
+ orgRole?: boolean
22873
+ createdAt?: boolean
22874
+ }
22875
+
22876
+ export type OrganizationMembershipOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "individualUserId" | "organizationUserId" | "orgRole" | "createdAt", ExtArgs["result"]["organizationMembership"]>
22877
+ export type OrganizationMembershipInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22878
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
22879
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22880
+ }
22881
+ export type OrganizationMembershipIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22882
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
22883
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22884
+ }
22885
+ export type OrganizationMembershipIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22886
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
22887
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22888
+ }
22889
+
22890
+ export type $OrganizationMembershipPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22891
+ name: "OrganizationMembership"
22892
+ objects: {
22893
+ individualUser: Prisma.$UserPayload<ExtArgs>
22894
+ organizationUser: Prisma.$UserPayload<ExtArgs>
22895
+ }
22896
+ scalars: $Extensions.GetPayloadResult<{
22897
+ id: number
22898
+ individualUserId: number
22899
+ organizationUserId: number
22900
+ orgRole: string
22901
+ createdAt: Date
22902
+ }, ExtArgs["result"]["organizationMembership"]>
22903
+ composites: {}
22904
+ }
22905
+
22906
+ type OrganizationMembershipGetPayload<S extends boolean | null | undefined | OrganizationMembershipDefaultArgs> = $Result.GetResult<Prisma.$OrganizationMembershipPayload, S>
22907
+
22908
+ type OrganizationMembershipCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
22909
+ Omit<OrganizationMembershipFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
22910
+ select?: OrganizationMembershipCountAggregateInputType | true
22911
+ }
22912
+
22913
+ export interface OrganizationMembershipDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
22914
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['OrganizationMembership'], meta: { name: 'OrganizationMembership' } }
22915
+ /**
22916
+ * Find zero or one OrganizationMembership that matches the filter.
22917
+ * @param {OrganizationMembershipFindUniqueArgs} args - Arguments to find a OrganizationMembership
22918
+ * @example
22919
+ * // Get one OrganizationMembership
22920
+ * const organizationMembership = await prisma.organizationMembership.findUnique({
22921
+ * where: {
22922
+ * // ... provide filter here
22923
+ * }
22924
+ * })
22925
+ */
22926
+ findUnique<T extends OrganizationMembershipFindUniqueArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
22927
+
22928
+ /**
22929
+ * Find one OrganizationMembership that matches the filter or throw an error with `error.code='P2025'`
22930
+ * if no matches were found.
22931
+ * @param {OrganizationMembershipFindUniqueOrThrowArgs} args - Arguments to find a OrganizationMembership
22932
+ * @example
22933
+ * // Get one OrganizationMembership
22934
+ * const organizationMembership = await prisma.organizationMembership.findUniqueOrThrow({
22935
+ * where: {
22936
+ * // ... provide filter here
22937
+ * }
22938
+ * })
22939
+ */
22940
+ findUniqueOrThrow<T extends OrganizationMembershipFindUniqueOrThrowArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
22941
+
22942
+ /**
22943
+ * Find the first OrganizationMembership that matches the filter.
22944
+ * Note, that providing `undefined` is treated as the value not being there.
22945
+ * Read more here: https://pris.ly/d/null-undefined
22946
+ * @param {OrganizationMembershipFindFirstArgs} args - Arguments to find a OrganizationMembership
22947
+ * @example
22948
+ * // Get one OrganizationMembership
22949
+ * const organizationMembership = await prisma.organizationMembership.findFirst({
22950
+ * where: {
22951
+ * // ... provide filter here
22952
+ * }
22953
+ * })
22954
+ */
22955
+ findFirst<T extends OrganizationMembershipFindFirstArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
22956
+
22957
+ /**
22958
+ * Find the first OrganizationMembership that matches the filter or
22959
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
22960
+ * Note, that providing `undefined` is treated as the value not being there.
22961
+ * Read more here: https://pris.ly/d/null-undefined
22962
+ * @param {OrganizationMembershipFindFirstOrThrowArgs} args - Arguments to find a OrganizationMembership
22963
+ * @example
22964
+ * // Get one OrganizationMembership
22965
+ * const organizationMembership = await prisma.organizationMembership.findFirstOrThrow({
22966
+ * where: {
22967
+ * // ... provide filter here
22968
+ * }
22969
+ * })
22970
+ */
22971
+ findFirstOrThrow<T extends OrganizationMembershipFindFirstOrThrowArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
22972
+
22973
+ /**
22974
+ * Find zero or more OrganizationMemberships that matches the filter.
22975
+ * Note, that providing `undefined` is treated as the value not being there.
22976
+ * Read more here: https://pris.ly/d/null-undefined
22977
+ * @param {OrganizationMembershipFindManyArgs} args - Arguments to filter and select certain fields only.
22978
+ * @example
22979
+ * // Get all OrganizationMemberships
22980
+ * const organizationMemberships = await prisma.organizationMembership.findMany()
22981
+ *
22982
+ * // Get first 10 OrganizationMemberships
22983
+ * const organizationMemberships = await prisma.organizationMembership.findMany({ take: 10 })
22984
+ *
22985
+ * // Only select the `id`
22986
+ * const organizationMembershipWithIdOnly = await prisma.organizationMembership.findMany({ select: { id: true } })
22987
+ *
22988
+ */
22989
+ findMany<T extends OrganizationMembershipFindManyArgs>(args?: SelectSubset<T, OrganizationMembershipFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
22990
+
22991
+ /**
22992
+ * Create a OrganizationMembership.
22993
+ * @param {OrganizationMembershipCreateArgs} args - Arguments to create a OrganizationMembership.
22994
+ * @example
22995
+ * // Create one OrganizationMembership
22996
+ * const OrganizationMembership = await prisma.organizationMembership.create({
22997
+ * data: {
22998
+ * // ... data to create a OrganizationMembership
22999
+ * }
23000
+ * })
23001
+ *
23002
+ */
23003
+ create<T extends OrganizationMembershipCreateArgs>(args: SelectSubset<T, OrganizationMembershipCreateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
23004
+
23005
+ /**
23006
+ * Create many OrganizationMemberships.
23007
+ * @param {OrganizationMembershipCreateManyArgs} args - Arguments to create many OrganizationMemberships.
23008
+ * @example
23009
+ * // Create many OrganizationMemberships
23010
+ * const organizationMembership = await prisma.organizationMembership.createMany({
23011
+ * data: [
23012
+ * // ... provide data here
23013
+ * ]
23014
+ * })
23015
+ *
23016
+ */
23017
+ createMany<T extends OrganizationMembershipCreateManyArgs>(args?: SelectSubset<T, OrganizationMembershipCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
23018
+
23019
+ /**
23020
+ * Create many OrganizationMemberships and returns the data saved in the database.
23021
+ * @param {OrganizationMembershipCreateManyAndReturnArgs} args - Arguments to create many OrganizationMemberships.
23022
+ * @example
23023
+ * // Create many OrganizationMemberships
23024
+ * const organizationMembership = await prisma.organizationMembership.createManyAndReturn({
23025
+ * data: [
23026
+ * // ... provide data here
23027
+ * ]
23028
+ * })
23029
+ *
23030
+ * // Create many OrganizationMemberships and only return the `id`
23031
+ * const organizationMembershipWithIdOnly = await prisma.organizationMembership.createManyAndReturn({
23032
+ * select: { id: true },
23033
+ * data: [
23034
+ * // ... provide data here
23035
+ * ]
23036
+ * })
23037
+ * Note, that providing `undefined` is treated as the value not being there.
23038
+ * Read more here: https://pris.ly/d/null-undefined
23039
+ *
23040
+ */
23041
+ createManyAndReturn<T extends OrganizationMembershipCreateManyAndReturnArgs>(args?: SelectSubset<T, OrganizationMembershipCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
23042
+
23043
+ /**
23044
+ * Delete a OrganizationMembership.
23045
+ * @param {OrganizationMembershipDeleteArgs} args - Arguments to delete one OrganizationMembership.
23046
+ * @example
23047
+ * // Delete one OrganizationMembership
23048
+ * const OrganizationMembership = await prisma.organizationMembership.delete({
23049
+ * where: {
23050
+ * // ... filter to delete one OrganizationMembership
23051
+ * }
23052
+ * })
23053
+ *
23054
+ */
23055
+ delete<T extends OrganizationMembershipDeleteArgs>(args: SelectSubset<T, OrganizationMembershipDeleteArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
23056
+
23057
+ /**
23058
+ * Update one OrganizationMembership.
23059
+ * @param {OrganizationMembershipUpdateArgs} args - Arguments to update one OrganizationMembership.
23060
+ * @example
23061
+ * // Update one OrganizationMembership
23062
+ * const organizationMembership = await prisma.organizationMembership.update({
23063
+ * where: {
23064
+ * // ... provide filter here
23065
+ * },
23066
+ * data: {
23067
+ * // ... provide data here
23068
+ * }
23069
+ * })
23070
+ *
23071
+ */
23072
+ update<T extends OrganizationMembershipUpdateArgs>(args: SelectSubset<T, OrganizationMembershipUpdateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
23073
+
23074
+ /**
23075
+ * Delete zero or more OrganizationMemberships.
23076
+ * @param {OrganizationMembershipDeleteManyArgs} args - Arguments to filter OrganizationMemberships to delete.
23077
+ * @example
23078
+ * // Delete a few OrganizationMemberships
23079
+ * const { count } = await prisma.organizationMembership.deleteMany({
23080
+ * where: {
23081
+ * // ... provide filter here
23082
+ * }
23083
+ * })
23084
+ *
23085
+ */
23086
+ deleteMany<T extends OrganizationMembershipDeleteManyArgs>(args?: SelectSubset<T, OrganizationMembershipDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
23087
+
23088
+ /**
23089
+ * Update zero or more OrganizationMemberships.
23090
+ * Note, that providing `undefined` is treated as the value not being there.
23091
+ * Read more here: https://pris.ly/d/null-undefined
23092
+ * @param {OrganizationMembershipUpdateManyArgs} args - Arguments to update one or more rows.
23093
+ * @example
23094
+ * // Update many OrganizationMemberships
23095
+ * const organizationMembership = await prisma.organizationMembership.updateMany({
23096
+ * where: {
23097
+ * // ... provide filter here
23098
+ * },
23099
+ * data: {
23100
+ * // ... provide data here
23101
+ * }
23102
+ * })
23103
+ *
23104
+ */
23105
+ updateMany<T extends OrganizationMembershipUpdateManyArgs>(args: SelectSubset<T, OrganizationMembershipUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
23106
+
23107
+ /**
23108
+ * Update zero or more OrganizationMemberships and returns the data updated in the database.
23109
+ * @param {OrganizationMembershipUpdateManyAndReturnArgs} args - Arguments to update many OrganizationMemberships.
23110
+ * @example
23111
+ * // Update many OrganizationMemberships
23112
+ * const organizationMembership = await prisma.organizationMembership.updateManyAndReturn({
23113
+ * where: {
23114
+ * // ... provide filter here
23115
+ * },
23116
+ * data: [
23117
+ * // ... provide data here
23118
+ * ]
23119
+ * })
23120
+ *
23121
+ * // Update zero or more OrganizationMemberships and only return the `id`
23122
+ * const organizationMembershipWithIdOnly = await prisma.organizationMembership.updateManyAndReturn({
23123
+ * select: { id: true },
23124
+ * where: {
23125
+ * // ... provide filter here
23126
+ * },
23127
+ * data: [
23128
+ * // ... provide data here
23129
+ * ]
23130
+ * })
23131
+ * Note, that providing `undefined` is treated as the value not being there.
23132
+ * Read more here: https://pris.ly/d/null-undefined
23133
+ *
23134
+ */
23135
+ updateManyAndReturn<T extends OrganizationMembershipUpdateManyAndReturnArgs>(args: SelectSubset<T, OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
23136
+
23137
+ /**
23138
+ * Create or update one OrganizationMembership.
23139
+ * @param {OrganizationMembershipUpsertArgs} args - Arguments to update or create a OrganizationMembership.
23140
+ * @example
23141
+ * // Update or create a OrganizationMembership
23142
+ * const organizationMembership = await prisma.organizationMembership.upsert({
23143
+ * create: {
23144
+ * // ... data to create a OrganizationMembership
23145
+ * },
23146
+ * update: {
23147
+ * // ... in case it already exists, update
23148
+ * },
23149
+ * where: {
23150
+ * // ... the filter for the OrganizationMembership we want to update
23151
+ * }
23152
+ * })
23153
+ */
23154
+ upsert<T extends OrganizationMembershipUpsertArgs>(args: SelectSubset<T, OrganizationMembershipUpsertArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
23155
+
23156
+
23157
+ /**
23158
+ * Count the number of OrganizationMemberships.
23159
+ * Note, that providing `undefined` is treated as the value not being there.
23160
+ * Read more here: https://pris.ly/d/null-undefined
23161
+ * @param {OrganizationMembershipCountArgs} args - Arguments to filter OrganizationMemberships to count.
23162
+ * @example
23163
+ * // Count the number of OrganizationMemberships
23164
+ * const count = await prisma.organizationMembership.count({
23165
+ * where: {
23166
+ * // ... the filter for the OrganizationMemberships we want to count
23167
+ * }
23168
+ * })
23169
+ **/
23170
+ count<T extends OrganizationMembershipCountArgs>(
23171
+ args?: Subset<T, OrganizationMembershipCountArgs>,
23172
+ ): Prisma.PrismaPromise<
23173
+ T extends $Utils.Record<'select', any>
23174
+ ? T['select'] extends true
23175
+ ? number
23176
+ : GetScalarType<T['select'], OrganizationMembershipCountAggregateOutputType>
23177
+ : number
23178
+ >
23179
+
23180
+ /**
23181
+ * Allows you to perform aggregations operations on a OrganizationMembership.
23182
+ * Note, that providing `undefined` is treated as the value not being there.
23183
+ * Read more here: https://pris.ly/d/null-undefined
23184
+ * @param {OrganizationMembershipAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
23185
+ * @example
23186
+ * // Ordered by age ascending
23187
+ * // Where email contains prisma.io
23188
+ * // Limited to the 10 users
23189
+ * const aggregations = await prisma.user.aggregate({
23190
+ * _avg: {
23191
+ * age: true,
23192
+ * },
23193
+ * where: {
23194
+ * email: {
23195
+ * contains: "prisma.io",
23196
+ * },
23197
+ * },
23198
+ * orderBy: {
23199
+ * age: "asc",
23200
+ * },
23201
+ * take: 10,
23202
+ * })
23203
+ **/
23204
+ aggregate<T extends OrganizationMembershipAggregateArgs>(args: Subset<T, OrganizationMembershipAggregateArgs>): Prisma.PrismaPromise<GetOrganizationMembershipAggregateType<T>>
23205
+
23206
+ /**
23207
+ * Group by OrganizationMembership.
23208
+ * Note, that providing `undefined` is treated as the value not being there.
23209
+ * Read more here: https://pris.ly/d/null-undefined
23210
+ * @param {OrganizationMembershipGroupByArgs} args - Group by arguments.
23211
+ * @example
23212
+ * // Group by city, order by createdAt, get count
23213
+ * const result = await prisma.user.groupBy({
23214
+ * by: ['city', 'createdAt'],
23215
+ * orderBy: {
23216
+ * createdAt: true
23217
+ * },
23218
+ * _count: {
23219
+ * _all: true
23220
+ * },
23221
+ * })
23222
+ *
23223
+ **/
23224
+ groupBy<
23225
+ T extends OrganizationMembershipGroupByArgs,
23226
+ HasSelectOrTake extends Or<
23227
+ Extends<'skip', Keys<T>>,
23228
+ Extends<'take', Keys<T>>
23229
+ >,
23230
+ OrderByArg extends True extends HasSelectOrTake
23231
+ ? { orderBy: OrganizationMembershipGroupByArgs['orderBy'] }
23232
+ : { orderBy?: OrganizationMembershipGroupByArgs['orderBy'] },
23233
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
23234
+ ByFields extends MaybeTupleToUnion<T['by']>,
23235
+ ByValid extends Has<ByFields, OrderFields>,
23236
+ HavingFields extends GetHavingFields<T['having']>,
23237
+ HavingValid extends Has<ByFields, HavingFields>,
23238
+ ByEmpty extends T['by'] extends never[] ? True : False,
23239
+ InputErrors extends ByEmpty extends True
23240
+ ? `Error: "by" must not be empty.`
23241
+ : HavingValid extends False
23242
+ ? {
23243
+ [P in HavingFields]: P extends ByFields
23244
+ ? never
23245
+ : P extends string
23246
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
23247
+ : [
23248
+ Error,
23249
+ 'Field ',
23250
+ P,
23251
+ ` in "having" needs to be provided in "by"`,
23252
+ ]
23253
+ }[HavingFields]
23254
+ : 'take' extends Keys<T>
23255
+ ? 'orderBy' extends Keys<T>
23256
+ ? ByValid extends True
23257
+ ? {}
23258
+ : {
23259
+ [P in OrderFields]: P extends ByFields
23260
+ ? never
23261
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
23262
+ }[OrderFields]
23263
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
23264
+ : 'skip' extends Keys<T>
23265
+ ? 'orderBy' extends Keys<T>
23266
+ ? ByValid extends True
23267
+ ? {}
23268
+ : {
23269
+ [P in OrderFields]: P extends ByFields
23270
+ ? never
23271
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
23272
+ }[OrderFields]
23273
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
23274
+ : ByValid extends True
23275
+ ? {}
23276
+ : {
23277
+ [P in OrderFields]: P extends ByFields
23278
+ ? never
23279
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
23280
+ }[OrderFields]
23281
+ >(args: SubsetIntersection<T, OrganizationMembershipGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationMembershipGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
23282
+ /**
23283
+ * Fields of the OrganizationMembership model
23284
+ */
23285
+ readonly fields: OrganizationMembershipFieldRefs;
23286
+ }
23287
+
23288
+ /**
23289
+ * The delegate class that acts as a "Promise-like" for OrganizationMembership.
23290
+ * Why is this prefixed with `Prisma__`?
23291
+ * Because we want to prevent naming conflicts as mentioned in
23292
+ * https://github.com/prisma/prisma-client-js/issues/707
23293
+ */
23294
+ export interface Prisma__OrganizationMembershipClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
23295
+ readonly [Symbol.toStringTag]: "PrismaPromise"
23296
+ individualUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
23297
+ organizationUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
23298
+ /**
23299
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
23300
+ * @param onfulfilled The callback to execute when the Promise is resolved.
23301
+ * @param onrejected The callback to execute when the Promise is rejected.
23302
+ * @returns A Promise for the completion of which ever callback is executed.
23303
+ */
23304
+ 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>
23305
+ /**
23306
+ * Attaches a callback for only the rejection of the Promise.
23307
+ * @param onrejected The callback to execute when the Promise is rejected.
23308
+ * @returns A Promise for the completion of the callback.
23309
+ */
23310
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
23311
+ /**
23312
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
23313
+ * resolved value cannot be modified from the callback.
23314
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
23315
+ * @returns A Promise for the completion of the callback.
23316
+ */
23317
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
23318
+ }
23319
+
23320
+
23321
+
23322
+
23323
+ /**
23324
+ * Fields of the OrganizationMembership model
23325
+ */
23326
+ interface OrganizationMembershipFieldRefs {
23327
+ readonly id: FieldRef<"OrganizationMembership", 'Int'>
23328
+ readonly individualUserId: FieldRef<"OrganizationMembership", 'Int'>
23329
+ readonly organizationUserId: FieldRef<"OrganizationMembership", 'Int'>
23330
+ readonly orgRole: FieldRef<"OrganizationMembership", 'String'>
23331
+ readonly createdAt: FieldRef<"OrganizationMembership", 'DateTime'>
23332
+ }
23333
+
23334
+
23335
+ // Custom InputTypes
23336
+ /**
23337
+ * OrganizationMembership findUnique
23338
+ */
23339
+ export type OrganizationMembershipFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23340
+ /**
23341
+ * Select specific fields to fetch from the OrganizationMembership
23342
+ */
23343
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23344
+ /**
23345
+ * Omit specific fields from the OrganizationMembership
23346
+ */
23347
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23348
+ /**
23349
+ * Choose, which related nodes to fetch as well
23350
+ */
23351
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23352
+ /**
23353
+ * Filter, which OrganizationMembership to fetch.
23354
+ */
23355
+ where: OrganizationMembershipWhereUniqueInput
23356
+ }
23357
+
23358
+ /**
23359
+ * OrganizationMembership findUniqueOrThrow
23360
+ */
23361
+ export type OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23362
+ /**
23363
+ * Select specific fields to fetch from the OrganizationMembership
23364
+ */
23365
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23366
+ /**
23367
+ * Omit specific fields from the OrganizationMembership
23368
+ */
23369
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23370
+ /**
23371
+ * Choose, which related nodes to fetch as well
23372
+ */
23373
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23374
+ /**
23375
+ * Filter, which OrganizationMembership to fetch.
23376
+ */
23377
+ where: OrganizationMembershipWhereUniqueInput
23378
+ }
23379
+
23380
+ /**
23381
+ * OrganizationMembership findFirst
23382
+ */
23383
+ export type OrganizationMembershipFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23384
+ /**
23385
+ * Select specific fields to fetch from the OrganizationMembership
23386
+ */
23387
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23388
+ /**
23389
+ * Omit specific fields from the OrganizationMembership
23390
+ */
23391
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23392
+ /**
23393
+ * Choose, which related nodes to fetch as well
23394
+ */
23395
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23396
+ /**
23397
+ * Filter, which OrganizationMembership to fetch.
23398
+ */
23399
+ where?: OrganizationMembershipWhereInput
23400
+ /**
23401
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
23402
+ *
23403
+ * Determine the order of OrganizationMemberships to fetch.
23404
+ */
23405
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
23406
+ /**
23407
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
23408
+ *
23409
+ * Sets the position for searching for OrganizationMemberships.
23410
+ */
23411
+ cursor?: OrganizationMembershipWhereUniqueInput
23412
+ /**
23413
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23414
+ *
23415
+ * Take `±n` OrganizationMemberships from the position of the cursor.
23416
+ */
23417
+ take?: number
23418
+ /**
23419
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23420
+ *
23421
+ * Skip the first `n` OrganizationMemberships.
23422
+ */
23423
+ skip?: number
23424
+ /**
23425
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
23426
+ *
23427
+ * Filter by unique combinations of OrganizationMemberships.
23428
+ */
23429
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
23430
+ }
23431
+
23432
+ /**
23433
+ * OrganizationMembership findFirstOrThrow
23434
+ */
23435
+ export type OrganizationMembershipFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23436
+ /**
23437
+ * Select specific fields to fetch from the OrganizationMembership
23438
+ */
23439
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23440
+ /**
23441
+ * Omit specific fields from the OrganizationMembership
23442
+ */
23443
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23444
+ /**
23445
+ * Choose, which related nodes to fetch as well
23446
+ */
23447
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23448
+ /**
23449
+ * Filter, which OrganizationMembership to fetch.
23450
+ */
23451
+ where?: OrganizationMembershipWhereInput
23452
+ /**
23453
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
23454
+ *
23455
+ * Determine the order of OrganizationMemberships to fetch.
23456
+ */
23457
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
23458
+ /**
23459
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
23460
+ *
23461
+ * Sets the position for searching for OrganizationMemberships.
23462
+ */
23463
+ cursor?: OrganizationMembershipWhereUniqueInput
23464
+ /**
23465
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23466
+ *
23467
+ * Take `±n` OrganizationMemberships from the position of the cursor.
23468
+ */
23469
+ take?: number
23470
+ /**
23471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23472
+ *
23473
+ * Skip the first `n` OrganizationMemberships.
23474
+ */
23475
+ skip?: number
23476
+ /**
23477
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
23478
+ *
23479
+ * Filter by unique combinations of OrganizationMemberships.
23480
+ */
23481
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
23482
+ }
23483
+
23484
+ /**
23485
+ * OrganizationMembership findMany
23486
+ */
23487
+ export type OrganizationMembershipFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23488
+ /**
23489
+ * Select specific fields to fetch from the OrganizationMembership
23490
+ */
23491
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23492
+ /**
23493
+ * Omit specific fields from the OrganizationMembership
23494
+ */
23495
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23496
+ /**
23497
+ * Choose, which related nodes to fetch as well
23498
+ */
23499
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23500
+ /**
23501
+ * Filter, which OrganizationMemberships to fetch.
23502
+ */
23503
+ where?: OrganizationMembershipWhereInput
23504
+ /**
23505
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
23506
+ *
23507
+ * Determine the order of OrganizationMemberships to fetch.
23508
+ */
23509
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
23510
+ /**
23511
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
23512
+ *
23513
+ * Sets the position for listing OrganizationMemberships.
23514
+ */
23515
+ cursor?: OrganizationMembershipWhereUniqueInput
23516
+ /**
23517
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23518
+ *
23519
+ * Take `±n` OrganizationMemberships from the position of the cursor.
23520
+ */
23521
+ take?: number
23522
+ /**
23523
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23524
+ *
23525
+ * Skip the first `n` OrganizationMemberships.
23526
+ */
23527
+ skip?: number
23528
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
23529
+ }
23530
+
23531
+ /**
23532
+ * OrganizationMembership create
23533
+ */
23534
+ export type OrganizationMembershipCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23535
+ /**
23536
+ * Select specific fields to fetch from the OrganizationMembership
23537
+ */
23538
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23539
+ /**
23540
+ * Omit specific fields from the OrganizationMembership
23541
+ */
23542
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23543
+ /**
23544
+ * Choose, which related nodes to fetch as well
23545
+ */
23546
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23547
+ /**
23548
+ * The data needed to create a OrganizationMembership.
23549
+ */
23550
+ data: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
23551
+ }
23552
+
23553
+ /**
23554
+ * OrganizationMembership createMany
23555
+ */
23556
+ export type OrganizationMembershipCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23557
+ /**
23558
+ * The data used to create many OrganizationMemberships.
23559
+ */
23560
+ data: OrganizationMembershipCreateManyInput | OrganizationMembershipCreateManyInput[]
23561
+ skipDuplicates?: boolean
23562
+ }
23563
+
23564
+ /**
23565
+ * OrganizationMembership createManyAndReturn
23566
+ */
23567
+ export type OrganizationMembershipCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23568
+ /**
23569
+ * Select specific fields to fetch from the OrganizationMembership
23570
+ */
23571
+ select?: OrganizationMembershipSelectCreateManyAndReturn<ExtArgs> | null
23572
+ /**
23573
+ * Omit specific fields from the OrganizationMembership
23574
+ */
23575
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23576
+ /**
23577
+ * The data used to create many OrganizationMemberships.
23578
+ */
23579
+ data: OrganizationMembershipCreateManyInput | OrganizationMembershipCreateManyInput[]
23580
+ skipDuplicates?: boolean
23581
+ /**
23582
+ * Choose, which related nodes to fetch as well
23583
+ */
23584
+ include?: OrganizationMembershipIncludeCreateManyAndReturn<ExtArgs> | null
23585
+ }
23586
+
23587
+ /**
23588
+ * OrganizationMembership update
23589
+ */
23590
+ export type OrganizationMembershipUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23591
+ /**
23592
+ * Select specific fields to fetch from the OrganizationMembership
23593
+ */
23594
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23595
+ /**
23596
+ * Omit specific fields from the OrganizationMembership
23597
+ */
23598
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23599
+ /**
23600
+ * Choose, which related nodes to fetch as well
23601
+ */
23602
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23603
+ /**
23604
+ * The data needed to update a OrganizationMembership.
23605
+ */
23606
+ data: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
23607
+ /**
23608
+ * Choose, which OrganizationMembership to update.
23609
+ */
23610
+ where: OrganizationMembershipWhereUniqueInput
23611
+ }
23612
+
23613
+ /**
23614
+ * OrganizationMembership updateMany
23615
+ */
23616
+ export type OrganizationMembershipUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23617
+ /**
23618
+ * The data used to update OrganizationMemberships.
23619
+ */
23620
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyInput>
23621
+ /**
23622
+ * Filter which OrganizationMemberships to update
23623
+ */
23624
+ where?: OrganizationMembershipWhereInput
23625
+ /**
23626
+ * Limit how many OrganizationMemberships to update.
23627
+ */
23628
+ limit?: number
23629
+ }
23630
+
23631
+ /**
23632
+ * OrganizationMembership updateManyAndReturn
23633
+ */
23634
+ export type OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23635
+ /**
23636
+ * Select specific fields to fetch from the OrganizationMembership
23637
+ */
23638
+ select?: OrganizationMembershipSelectUpdateManyAndReturn<ExtArgs> | null
23639
+ /**
23640
+ * Omit specific fields from the OrganizationMembership
23641
+ */
23642
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23643
+ /**
23644
+ * The data used to update OrganizationMemberships.
23645
+ */
23646
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyInput>
23647
+ /**
23648
+ * Filter which OrganizationMemberships to update
23649
+ */
23650
+ where?: OrganizationMembershipWhereInput
23651
+ /**
23652
+ * Limit how many OrganizationMemberships to update.
23653
+ */
23654
+ limit?: number
23655
+ /**
23656
+ * Choose, which related nodes to fetch as well
23657
+ */
23658
+ include?: OrganizationMembershipIncludeUpdateManyAndReturn<ExtArgs> | null
23659
+ }
23660
+
23661
+ /**
23662
+ * OrganizationMembership upsert
23663
+ */
23664
+ export type OrganizationMembershipUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23665
+ /**
23666
+ * Select specific fields to fetch from the OrganizationMembership
23667
+ */
23668
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23669
+ /**
23670
+ * Omit specific fields from the OrganizationMembership
23671
+ */
23672
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23673
+ /**
23674
+ * Choose, which related nodes to fetch as well
23675
+ */
23676
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23677
+ /**
23678
+ * The filter to search for the OrganizationMembership to update in case it exists.
23679
+ */
23680
+ where: OrganizationMembershipWhereUniqueInput
23681
+ /**
23682
+ * In case the OrganizationMembership found by the `where` argument doesn't exist, create a new OrganizationMembership with this data.
23683
+ */
23684
+ create: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
23685
+ /**
23686
+ * In case the OrganizationMembership was found with the provided `where` argument, update it with this data.
23687
+ */
23688
+ update: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
23689
+ }
23690
+
23691
+ /**
23692
+ * OrganizationMembership delete
23693
+ */
23694
+ export type OrganizationMembershipDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23695
+ /**
23696
+ * Select specific fields to fetch from the OrganizationMembership
23697
+ */
23698
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23699
+ /**
23700
+ * Omit specific fields from the OrganizationMembership
23701
+ */
23702
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23703
+ /**
23704
+ * Choose, which related nodes to fetch as well
23705
+ */
23706
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23707
+ /**
23708
+ * Filter which OrganizationMembership to delete.
23709
+ */
23710
+ where: OrganizationMembershipWhereUniqueInput
23711
+ }
23712
+
23713
+ /**
23714
+ * OrganizationMembership deleteMany
23715
+ */
23716
+ export type OrganizationMembershipDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23717
+ /**
23718
+ * Filter which OrganizationMemberships to delete
23719
+ */
23720
+ where?: OrganizationMembershipWhereInput
23721
+ /**
23722
+ * Limit how many OrganizationMemberships to delete.
23723
+ */
23724
+ limit?: number
23725
+ }
23726
+
23727
+ /**
23728
+ * OrganizationMembership without action
23729
+ */
23730
+ export type OrganizationMembershipDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23731
+ /**
23732
+ * Select specific fields to fetch from the OrganizationMembership
23733
+ */
23734
+ select?: OrganizationMembershipSelect<ExtArgs> | null
23735
+ /**
23736
+ * Omit specific fields from the OrganizationMembership
23737
+ */
23738
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
23739
+ /**
23740
+ * Choose, which related nodes to fetch as well
23741
+ */
23742
+ include?: OrganizationMembershipInclude<ExtArgs> | null
23743
+ }
23744
+
23745
+
23746
+ /**
23747
+ * Model ScheduledJob
23748
+ */
23749
+
23750
+ export type AggregateScheduledJob = {
23751
+ _count: ScheduledJobCountAggregateOutputType | null
23752
+ _avg: ScheduledJobAvgAggregateOutputType | null
23753
+ _sum: ScheduledJobSumAggregateOutputType | null
23754
+ _min: ScheduledJobMinAggregateOutputType | null
23755
+ _max: ScheduledJobMaxAggregateOutputType | null
23756
+ }
23757
+
23758
+ export type ScheduledJobAvgAggregateOutputType = {
23759
+ id: number | null
23760
+ }
23761
+
23762
+ export type ScheduledJobSumAggregateOutputType = {
23763
+ id: number | null
23764
+ }
23765
+
23766
+ export type ScheduledJobMinAggregateOutputType = {
23767
+ id: number | null
23768
+ scheduleName: string | null
23769
+ scheduledAt: Date | null
23770
+ queueResourceId: string | null
23771
+ state: string | null
23772
+ createdAt: Date | null
23773
+ updatedAt: Date | null
23774
+ }
23775
+
23776
+ export type ScheduledJobMaxAggregateOutputType = {
23777
+ id: number | null
23778
+ scheduleName: string | null
23779
+ scheduledAt: Date | null
23780
+ queueResourceId: string | null
23781
+ state: string | null
23782
+ createdAt: Date | null
23783
+ updatedAt: Date | null
23784
+ }
23785
+
23786
+ export type ScheduledJobCountAggregateOutputType = {
23787
+ id: number
23788
+ scheduleName: number
23789
+ scheduledAt: number
23790
+ queueResourceId: number
23791
+ payload: number
23792
+ state: number
23793
+ createdAt: number
23794
+ updatedAt: number
23795
+ _all: number
23796
+ }
23797
+
23798
+
23799
+ export type ScheduledJobAvgAggregateInputType = {
23800
+ id?: true
23801
+ }
23802
+
23803
+ export type ScheduledJobSumAggregateInputType = {
23804
+ id?: true
23805
+ }
23806
+
23807
+ export type ScheduledJobMinAggregateInputType = {
23808
+ id?: true
23809
+ scheduleName?: true
23810
+ scheduledAt?: true
23811
+ queueResourceId?: true
23812
+ state?: true
23813
+ createdAt?: true
23814
+ updatedAt?: true
23815
+ }
23816
+
23817
+ export type ScheduledJobMaxAggregateInputType = {
23818
+ id?: true
23819
+ scheduleName?: true
23820
+ scheduledAt?: true
23821
+ queueResourceId?: true
23822
+ state?: true
23823
+ createdAt?: true
23824
+ updatedAt?: true
23825
+ }
23826
+
23827
+ export type ScheduledJobCountAggregateInputType = {
23828
+ id?: true
23829
+ scheduleName?: true
23830
+ scheduledAt?: true
23831
+ queueResourceId?: true
23832
+ payload?: true
23833
+ state?: true
23834
+ createdAt?: true
23835
+ updatedAt?: true
23836
+ _all?: true
23837
+ }
23838
+
23839
+ export type ScheduledJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23840
+ /**
23841
+ * Filter which ScheduledJob to aggregate.
23842
+ */
23843
+ where?: ScheduledJobWhereInput
23844
+ /**
23845
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
23846
+ *
23847
+ * Determine the order of ScheduledJobs to fetch.
23848
+ */
23849
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
23850
+ /**
23851
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
23852
+ *
23853
+ * Sets the start position
23854
+ */
23855
+ cursor?: ScheduledJobWhereUniqueInput
23856
+ /**
23857
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23858
+ *
23859
+ * Take `±n` ScheduledJobs from the position of the cursor.
23860
+ */
23861
+ take?: number
23862
+ /**
23863
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23864
+ *
23865
+ * Skip the first `n` ScheduledJobs.
23866
+ */
23867
+ skip?: number
23868
+ /**
23869
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
23870
+ *
23871
+ * Count returned ScheduledJobs
23872
+ **/
23873
+ _count?: true | ScheduledJobCountAggregateInputType
23874
+ /**
23875
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
23876
+ *
23877
+ * Select which fields to average
23878
+ **/
23879
+ _avg?: ScheduledJobAvgAggregateInputType
23880
+ /**
23881
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
23882
+ *
23883
+ * Select which fields to sum
23884
+ **/
23885
+ _sum?: ScheduledJobSumAggregateInputType
23886
+ /**
23887
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
23888
+ *
23889
+ * Select which fields to find the minimum value
23890
+ **/
23891
+ _min?: ScheduledJobMinAggregateInputType
23892
+ /**
23893
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
23894
+ *
23895
+ * Select which fields to find the maximum value
23896
+ **/
23897
+ _max?: ScheduledJobMaxAggregateInputType
23898
+ }
23899
+
23900
+ export type GetScheduledJobAggregateType<T extends ScheduledJobAggregateArgs> = {
23901
+ [P in keyof T & keyof AggregateScheduledJob]: P extends '_count' | 'count'
23902
+ ? T[P] extends true
23903
+ ? number
23904
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
23905
+ : GetScalarType<T[P], AggregateScheduledJob[P]>
23906
+ }
23907
+
23908
+
23909
+
23910
+
23911
+ export type ScheduledJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23912
+ where?: ScheduledJobWhereInput
23913
+ orderBy?: ScheduledJobOrderByWithAggregationInput | ScheduledJobOrderByWithAggregationInput[]
23914
+ by: ScheduledJobScalarFieldEnum[] | ScheduledJobScalarFieldEnum
23915
+ having?: ScheduledJobScalarWhereWithAggregatesInput
23916
+ take?: number
23917
+ skip?: number
23918
+ _count?: ScheduledJobCountAggregateInputType | true
23919
+ _avg?: ScheduledJobAvgAggregateInputType
23920
+ _sum?: ScheduledJobSumAggregateInputType
23921
+ _min?: ScheduledJobMinAggregateInputType
23922
+ _max?: ScheduledJobMaxAggregateInputType
23923
+ }
23924
+
23925
+ export type ScheduledJobGroupByOutputType = {
23926
+ id: number
23927
+ scheduleName: string
23928
+ scheduledAt: Date
23929
+ queueResourceId: string
23930
+ payload: JsonValue | null
23931
+ state: string
23932
+ createdAt: Date
23933
+ updatedAt: Date
23934
+ _count: ScheduledJobCountAggregateOutputType | null
23935
+ _avg: ScheduledJobAvgAggregateOutputType | null
23936
+ _sum: ScheduledJobSumAggregateOutputType | null
23937
+ _min: ScheduledJobMinAggregateOutputType | null
23938
+ _max: ScheduledJobMaxAggregateOutputType | null
23939
+ }
23940
+
23941
+ type GetScheduledJobGroupByPayload<T extends ScheduledJobGroupByArgs> = Prisma.PrismaPromise<
23942
+ Array<
23943
+ PickEnumerable<ScheduledJobGroupByOutputType, T['by']> &
23944
+ {
23945
+ [P in ((keyof T) & (keyof ScheduledJobGroupByOutputType))]: P extends '_count'
23946
+ ? T[P] extends boolean
23947
+ ? number
23948
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
23949
+ : GetScalarType<T[P], ScheduledJobGroupByOutputType[P]>
23950
+ }
23951
+ >
23952
+ >
23953
+
23954
+
23955
+ export type ScheduledJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
23956
+ id?: boolean
23957
+ scheduleName?: boolean
23958
+ scheduledAt?: boolean
23959
+ queueResourceId?: boolean
23960
+ payload?: boolean
23961
+ state?: boolean
23962
+ createdAt?: boolean
23963
+ updatedAt?: boolean
23964
+ }, ExtArgs["result"]["scheduledJob"]>
23965
+
23966
+ export type ScheduledJobSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
23967
+ id?: boolean
23968
+ scheduleName?: boolean
23969
+ scheduledAt?: boolean
23970
+ queueResourceId?: boolean
23971
+ payload?: boolean
23972
+ state?: boolean
23973
+ createdAt?: boolean
23974
+ updatedAt?: boolean
23975
+ }, ExtArgs["result"]["scheduledJob"]>
23976
+
23977
+ export type ScheduledJobSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
23978
+ id?: boolean
23979
+ scheduleName?: boolean
23980
+ scheduledAt?: boolean
23981
+ queueResourceId?: boolean
23982
+ payload?: boolean
23983
+ state?: boolean
23984
+ createdAt?: boolean
23985
+ updatedAt?: boolean
23986
+ }, ExtArgs["result"]["scheduledJob"]>
23987
+
23988
+ export type ScheduledJobSelectScalar = {
23989
+ id?: boolean
23990
+ scheduleName?: boolean
23991
+ scheduledAt?: boolean
23992
+ queueResourceId?: boolean
23993
+ payload?: boolean
23994
+ state?: boolean
23995
+ createdAt?: boolean
23996
+ updatedAt?: boolean
23997
+ }
23998
+
23999
+ export type ScheduledJobOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "scheduleName" | "scheduledAt" | "queueResourceId" | "payload" | "state" | "createdAt" | "updatedAt", ExtArgs["result"]["scheduledJob"]>
24000
+
24001
+ export type $ScheduledJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24002
+ name: "ScheduledJob"
24003
+ objects: {}
24004
+ scalars: $Extensions.GetPayloadResult<{
24005
+ id: number
24006
+ scheduleName: string
24007
+ scheduledAt: Date
24008
+ queueResourceId: string
24009
+ payload: Prisma.JsonValue | null
24010
+ state: string
24011
+ createdAt: Date
24012
+ updatedAt: Date
24013
+ }, ExtArgs["result"]["scheduledJob"]>
24014
+ composites: {}
24015
+ }
24016
+
24017
+ type ScheduledJobGetPayload<S extends boolean | null | undefined | ScheduledJobDefaultArgs> = $Result.GetResult<Prisma.$ScheduledJobPayload, S>
24018
+
24019
+ type ScheduledJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
24020
+ Omit<ScheduledJobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
24021
+ select?: ScheduledJobCountAggregateInputType | true
24022
+ }
24023
+
24024
+ export interface ScheduledJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
24025
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ScheduledJob'], meta: { name: 'ScheduledJob' } }
24026
+ /**
24027
+ * Find zero or one ScheduledJob that matches the filter.
24028
+ * @param {ScheduledJobFindUniqueArgs} args - Arguments to find a ScheduledJob
24029
+ * @example
24030
+ * // Get one ScheduledJob
24031
+ * const scheduledJob = await prisma.scheduledJob.findUnique({
24032
+ * where: {
24033
+ * // ... provide filter here
24034
+ * }
24035
+ * })
24036
+ */
24037
+ findUnique<T extends ScheduledJobFindUniqueArgs>(args: SelectSubset<T, ScheduledJobFindUniqueArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
24038
+
24039
+ /**
24040
+ * Find one ScheduledJob that matches the filter or throw an error with `error.code='P2025'`
24041
+ * if no matches were found.
24042
+ * @param {ScheduledJobFindUniqueOrThrowArgs} args - Arguments to find a ScheduledJob
24043
+ * @example
24044
+ * // Get one ScheduledJob
24045
+ * const scheduledJob = await prisma.scheduledJob.findUniqueOrThrow({
24046
+ * where: {
24047
+ * // ... provide filter here
24048
+ * }
24049
+ * })
24050
+ */
24051
+ findUniqueOrThrow<T extends ScheduledJobFindUniqueOrThrowArgs>(args: SelectSubset<T, ScheduledJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
24052
+
24053
+ /**
24054
+ * Find the first ScheduledJob that matches the filter.
24055
+ * Note, that providing `undefined` is treated as the value not being there.
24056
+ * Read more here: https://pris.ly/d/null-undefined
24057
+ * @param {ScheduledJobFindFirstArgs} args - Arguments to find a ScheduledJob
24058
+ * @example
24059
+ * // Get one ScheduledJob
24060
+ * const scheduledJob = await prisma.scheduledJob.findFirst({
24061
+ * where: {
24062
+ * // ... provide filter here
24063
+ * }
24064
+ * })
24065
+ */
24066
+ findFirst<T extends ScheduledJobFindFirstArgs>(args?: SelectSubset<T, ScheduledJobFindFirstArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
24067
+
24068
+ /**
24069
+ * Find the first ScheduledJob that matches the filter or
24070
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
24071
+ * Note, that providing `undefined` is treated as the value not being there.
24072
+ * Read more here: https://pris.ly/d/null-undefined
24073
+ * @param {ScheduledJobFindFirstOrThrowArgs} args - Arguments to find a ScheduledJob
24074
+ * @example
24075
+ * // Get one ScheduledJob
24076
+ * const scheduledJob = await prisma.scheduledJob.findFirstOrThrow({
24077
+ * where: {
24078
+ * // ... provide filter here
24079
+ * }
24080
+ * })
24081
+ */
24082
+ findFirstOrThrow<T extends ScheduledJobFindFirstOrThrowArgs>(args?: SelectSubset<T, ScheduledJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
24083
+
24084
+ /**
24085
+ * Find zero or more ScheduledJobs that matches the filter.
24086
+ * Note, that providing `undefined` is treated as the value not being there.
24087
+ * Read more here: https://pris.ly/d/null-undefined
24088
+ * @param {ScheduledJobFindManyArgs} args - Arguments to filter and select certain fields only.
24089
+ * @example
24090
+ * // Get all ScheduledJobs
24091
+ * const scheduledJobs = await prisma.scheduledJob.findMany()
24092
+ *
24093
+ * // Get first 10 ScheduledJobs
24094
+ * const scheduledJobs = await prisma.scheduledJob.findMany({ take: 10 })
24095
+ *
24096
+ * // Only select the `id`
24097
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.findMany({ select: { id: true } })
24098
+ *
24099
+ */
24100
+ findMany<T extends ScheduledJobFindManyArgs>(args?: SelectSubset<T, ScheduledJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
24101
+
24102
+ /**
24103
+ * Create a ScheduledJob.
24104
+ * @param {ScheduledJobCreateArgs} args - Arguments to create a ScheduledJob.
24105
+ * @example
24106
+ * // Create one ScheduledJob
24107
+ * const ScheduledJob = await prisma.scheduledJob.create({
24108
+ * data: {
24109
+ * // ... data to create a ScheduledJob
24110
+ * }
24111
+ * })
24112
+ *
24113
+ */
24114
+ create<T extends ScheduledJobCreateArgs>(args: SelectSubset<T, ScheduledJobCreateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
24115
+
24116
+ /**
24117
+ * Create many ScheduledJobs.
24118
+ * @param {ScheduledJobCreateManyArgs} args - Arguments to create many ScheduledJobs.
24119
+ * @example
24120
+ * // Create many ScheduledJobs
24121
+ * const scheduledJob = await prisma.scheduledJob.createMany({
24122
+ * data: [
24123
+ * // ... provide data here
24124
+ * ]
24125
+ * })
24126
+ *
24127
+ */
24128
+ createMany<T extends ScheduledJobCreateManyArgs>(args?: SelectSubset<T, ScheduledJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
24129
+
24130
+ /**
24131
+ * Create many ScheduledJobs and returns the data saved in the database.
24132
+ * @param {ScheduledJobCreateManyAndReturnArgs} args - Arguments to create many ScheduledJobs.
24133
+ * @example
24134
+ * // Create many ScheduledJobs
24135
+ * const scheduledJob = await prisma.scheduledJob.createManyAndReturn({
24136
+ * data: [
24137
+ * // ... provide data here
24138
+ * ]
24139
+ * })
24140
+ *
24141
+ * // Create many ScheduledJobs and only return the `id`
24142
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.createManyAndReturn({
24143
+ * select: { id: true },
24144
+ * data: [
24145
+ * // ... provide data here
24146
+ * ]
24147
+ * })
24148
+ * Note, that providing `undefined` is treated as the value not being there.
24149
+ * Read more here: https://pris.ly/d/null-undefined
24150
+ *
24151
+ */
24152
+ createManyAndReturn<T extends ScheduledJobCreateManyAndReturnArgs>(args?: SelectSubset<T, ScheduledJobCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
24153
+
24154
+ /**
24155
+ * Delete a ScheduledJob.
24156
+ * @param {ScheduledJobDeleteArgs} args - Arguments to delete one ScheduledJob.
24157
+ * @example
24158
+ * // Delete one ScheduledJob
24159
+ * const ScheduledJob = await prisma.scheduledJob.delete({
24160
+ * where: {
24161
+ * // ... filter to delete one ScheduledJob
24162
+ * }
24163
+ * })
24164
+ *
24165
+ */
24166
+ delete<T extends ScheduledJobDeleteArgs>(args: SelectSubset<T, ScheduledJobDeleteArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
24167
+
24168
+ /**
24169
+ * Update one ScheduledJob.
24170
+ * @param {ScheduledJobUpdateArgs} args - Arguments to update one ScheduledJob.
24171
+ * @example
24172
+ * // Update one ScheduledJob
24173
+ * const scheduledJob = await prisma.scheduledJob.update({
24174
+ * where: {
24175
+ * // ... provide filter here
24176
+ * },
24177
+ * data: {
24178
+ * // ... provide data here
24179
+ * }
24180
+ * })
24181
+ *
24182
+ */
24183
+ update<T extends ScheduledJobUpdateArgs>(args: SelectSubset<T, ScheduledJobUpdateArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
24184
+
24185
+ /**
24186
+ * Delete zero or more ScheduledJobs.
24187
+ * @param {ScheduledJobDeleteManyArgs} args - Arguments to filter ScheduledJobs to delete.
24188
+ * @example
24189
+ * // Delete a few ScheduledJobs
24190
+ * const { count } = await prisma.scheduledJob.deleteMany({
24191
+ * where: {
24192
+ * // ... provide filter here
24193
+ * }
24194
+ * })
24195
+ *
24196
+ */
24197
+ deleteMany<T extends ScheduledJobDeleteManyArgs>(args?: SelectSubset<T, ScheduledJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
24198
+
24199
+ /**
24200
+ * Update zero or more ScheduledJobs.
24201
+ * Note, that providing `undefined` is treated as the value not being there.
24202
+ * Read more here: https://pris.ly/d/null-undefined
24203
+ * @param {ScheduledJobUpdateManyArgs} args - Arguments to update one or more rows.
24204
+ * @example
24205
+ * // Update many ScheduledJobs
24206
+ * const scheduledJob = await prisma.scheduledJob.updateMany({
24207
+ * where: {
24208
+ * // ... provide filter here
24209
+ * },
24210
+ * data: {
24211
+ * // ... provide data here
24212
+ * }
24213
+ * })
24214
+ *
24215
+ */
24216
+ updateMany<T extends ScheduledJobUpdateManyArgs>(args: SelectSubset<T, ScheduledJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
24217
+
24218
+ /**
24219
+ * Update zero or more ScheduledJobs and returns the data updated in the database.
24220
+ * @param {ScheduledJobUpdateManyAndReturnArgs} args - Arguments to update many ScheduledJobs.
24221
+ * @example
24222
+ * // Update many ScheduledJobs
24223
+ * const scheduledJob = await prisma.scheduledJob.updateManyAndReturn({
24224
+ * where: {
24225
+ * // ... provide filter here
24226
+ * },
24227
+ * data: [
24228
+ * // ... provide data here
24229
+ * ]
24230
+ * })
24231
+ *
24232
+ * // Update zero or more ScheduledJobs and only return the `id`
24233
+ * const scheduledJobWithIdOnly = await prisma.scheduledJob.updateManyAndReturn({
24234
+ * select: { id: true },
24235
+ * where: {
24236
+ * // ... provide filter here
24237
+ * },
24238
+ * data: [
24239
+ * // ... provide data here
24240
+ * ]
24241
+ * })
24242
+ * Note, that providing `undefined` is treated as the value not being there.
24243
+ * Read more here: https://pris.ly/d/null-undefined
24244
+ *
24245
+ */
24246
+ updateManyAndReturn<T extends ScheduledJobUpdateManyAndReturnArgs>(args: SelectSubset<T, ScheduledJobUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
24247
+
24248
+ /**
24249
+ * Create or update one ScheduledJob.
24250
+ * @param {ScheduledJobUpsertArgs} args - Arguments to update or create a ScheduledJob.
24251
+ * @example
24252
+ * // Update or create a ScheduledJob
24253
+ * const scheduledJob = await prisma.scheduledJob.upsert({
24254
+ * create: {
24255
+ * // ... data to create a ScheduledJob
24256
+ * },
24257
+ * update: {
24258
+ * // ... in case it already exists, update
24259
+ * },
24260
+ * where: {
24261
+ * // ... the filter for the ScheduledJob we want to update
24262
+ * }
24263
+ * })
24264
+ */
24265
+ upsert<T extends ScheduledJobUpsertArgs>(args: SelectSubset<T, ScheduledJobUpsertArgs<ExtArgs>>): Prisma__ScheduledJobClient<$Result.GetResult<Prisma.$ScheduledJobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
24266
+
24267
+
24268
+ /**
24269
+ * Count the number of ScheduledJobs.
24270
+ * Note, that providing `undefined` is treated as the value not being there.
24271
+ * Read more here: https://pris.ly/d/null-undefined
24272
+ * @param {ScheduledJobCountArgs} args - Arguments to filter ScheduledJobs to count.
24273
+ * @example
24274
+ * // Count the number of ScheduledJobs
24275
+ * const count = await prisma.scheduledJob.count({
24276
+ * where: {
24277
+ * // ... the filter for the ScheduledJobs we want to count
24278
+ * }
24279
+ * })
24280
+ **/
24281
+ count<T extends ScheduledJobCountArgs>(
24282
+ args?: Subset<T, ScheduledJobCountArgs>,
24283
+ ): Prisma.PrismaPromise<
24284
+ T extends $Utils.Record<'select', any>
24285
+ ? T['select'] extends true
24286
+ ? number
24287
+ : GetScalarType<T['select'], ScheduledJobCountAggregateOutputType>
24288
+ : number
24289
+ >
24290
+
24291
+ /**
24292
+ * Allows you to perform aggregations operations on a ScheduledJob.
24293
+ * Note, that providing `undefined` is treated as the value not being there.
24294
+ * Read more here: https://pris.ly/d/null-undefined
24295
+ * @param {ScheduledJobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
24296
+ * @example
24297
+ * // Ordered by age ascending
24298
+ * // Where email contains prisma.io
24299
+ * // Limited to the 10 users
24300
+ * const aggregations = await prisma.user.aggregate({
24301
+ * _avg: {
24302
+ * age: true,
24303
+ * },
24304
+ * where: {
24305
+ * email: {
24306
+ * contains: "prisma.io",
24307
+ * },
24308
+ * },
24309
+ * orderBy: {
24310
+ * age: "asc",
24311
+ * },
24312
+ * take: 10,
24313
+ * })
24314
+ **/
24315
+ aggregate<T extends ScheduledJobAggregateArgs>(args: Subset<T, ScheduledJobAggregateArgs>): Prisma.PrismaPromise<GetScheduledJobAggregateType<T>>
24316
+
24317
+ /**
24318
+ * Group by ScheduledJob.
24319
+ * Note, that providing `undefined` is treated as the value not being there.
24320
+ * Read more here: https://pris.ly/d/null-undefined
24321
+ * @param {ScheduledJobGroupByArgs} args - Group by arguments.
24322
+ * @example
24323
+ * // Group by city, order by createdAt, get count
24324
+ * const result = await prisma.user.groupBy({
24325
+ * by: ['city', 'createdAt'],
24326
+ * orderBy: {
24327
+ * createdAt: true
24328
+ * },
24329
+ * _count: {
24330
+ * _all: true
24331
+ * },
24332
+ * })
24333
+ *
24334
+ **/
24335
+ groupBy<
24336
+ T extends ScheduledJobGroupByArgs,
24337
+ HasSelectOrTake extends Or<
24338
+ Extends<'skip', Keys<T>>,
24339
+ Extends<'take', Keys<T>>
24340
+ >,
24341
+ OrderByArg extends True extends HasSelectOrTake
24342
+ ? { orderBy: ScheduledJobGroupByArgs['orderBy'] }
24343
+ : { orderBy?: ScheduledJobGroupByArgs['orderBy'] },
24344
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
24345
+ ByFields extends MaybeTupleToUnion<T['by']>,
24346
+ ByValid extends Has<ByFields, OrderFields>,
24347
+ HavingFields extends GetHavingFields<T['having']>,
24348
+ HavingValid extends Has<ByFields, HavingFields>,
24349
+ ByEmpty extends T['by'] extends never[] ? True : False,
24350
+ InputErrors extends ByEmpty extends True
24351
+ ? `Error: "by" must not be empty.`
24352
+ : HavingValid extends False
24353
+ ? {
24354
+ [P in HavingFields]: P extends ByFields
24355
+ ? never
24356
+ : P extends string
24357
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
24358
+ : [
24359
+ Error,
24360
+ 'Field ',
24361
+ P,
24362
+ ` in "having" needs to be provided in "by"`,
24363
+ ]
24364
+ }[HavingFields]
24365
+ : 'take' extends Keys<T>
24366
+ ? 'orderBy' extends Keys<T>
24367
+ ? ByValid extends True
24368
+ ? {}
24369
+ : {
24370
+ [P in OrderFields]: P extends ByFields
24371
+ ? never
24372
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
24373
+ }[OrderFields]
24374
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
24375
+ : 'skip' extends Keys<T>
24376
+ ? 'orderBy' extends Keys<T>
24377
+ ? ByValid extends True
24378
+ ? {}
24379
+ : {
24380
+ [P in OrderFields]: P extends ByFields
24381
+ ? never
24382
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
24383
+ }[OrderFields]
24384
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
24385
+ : ByValid extends True
24386
+ ? {}
24387
+ : {
24388
+ [P in OrderFields]: P extends ByFields
24389
+ ? never
24390
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
24391
+ }[OrderFields]
24392
+ >(args: SubsetIntersection<T, ScheduledJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetScheduledJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
24393
+ /**
24394
+ * Fields of the ScheduledJob model
24395
+ */
24396
+ readonly fields: ScheduledJobFieldRefs;
24397
+ }
24398
+
24399
+ /**
24400
+ * The delegate class that acts as a "Promise-like" for ScheduledJob.
24401
+ * Why is this prefixed with `Prisma__`?
24402
+ * Because we want to prevent naming conflicts as mentioned in
24403
+ * https://github.com/prisma/prisma-client-js/issues/707
24404
+ */
24405
+ export interface Prisma__ScheduledJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
24406
+ readonly [Symbol.toStringTag]: "PrismaPromise"
24407
+ /**
24408
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
24409
+ * @param onfulfilled The callback to execute when the Promise is resolved.
24410
+ * @param onrejected The callback to execute when the Promise is rejected.
24411
+ * @returns A Promise for the completion of which ever callback is executed.
24412
+ */
24413
+ 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>
24414
+ /**
24415
+ * Attaches a callback for only the rejection of the Promise.
24416
+ * @param onrejected The callback to execute when the Promise is rejected.
24417
+ * @returns A Promise for the completion of the callback.
24418
+ */
24419
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
24420
+ /**
24421
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
24422
+ * resolved value cannot be modified from the callback.
24423
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
24424
+ * @returns A Promise for the completion of the callback.
24425
+ */
24426
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
24427
+ }
24428
+
24429
+
24430
+
24431
+
24432
+ /**
24433
+ * Fields of the ScheduledJob model
24434
+ */
24435
+ interface ScheduledJobFieldRefs {
24436
+ readonly id: FieldRef<"ScheduledJob", 'Int'>
24437
+ readonly scheduleName: FieldRef<"ScheduledJob", 'String'>
24438
+ readonly scheduledAt: FieldRef<"ScheduledJob", 'DateTime'>
24439
+ readonly queueResourceId: FieldRef<"ScheduledJob", 'String'>
24440
+ readonly payload: FieldRef<"ScheduledJob", 'Json'>
24441
+ readonly state: FieldRef<"ScheduledJob", 'String'>
24442
+ readonly createdAt: FieldRef<"ScheduledJob", 'DateTime'>
24443
+ readonly updatedAt: FieldRef<"ScheduledJob", 'DateTime'>
24444
+ }
24445
+
24446
+
24447
+ // Custom InputTypes
24448
+ /**
24449
+ * ScheduledJob findUnique
24450
+ */
24451
+ export type ScheduledJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24452
+ /**
24453
+ * Select specific fields to fetch from the ScheduledJob
24454
+ */
24455
+ select?: ScheduledJobSelect<ExtArgs> | null
24456
+ /**
24457
+ * Omit specific fields from the ScheduledJob
24458
+ */
24459
+ omit?: ScheduledJobOmit<ExtArgs> | null
24460
+ /**
24461
+ * Filter, which ScheduledJob to fetch.
24462
+ */
24463
+ where: ScheduledJobWhereUniqueInput
24464
+ }
24465
+
24466
+ /**
24467
+ * ScheduledJob findUniqueOrThrow
24468
+ */
24469
+ export type ScheduledJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24470
+ /**
24471
+ * Select specific fields to fetch from the ScheduledJob
24472
+ */
24473
+ select?: ScheduledJobSelect<ExtArgs> | null
24474
+ /**
24475
+ * Omit specific fields from the ScheduledJob
24476
+ */
24477
+ omit?: ScheduledJobOmit<ExtArgs> | null
24478
+ /**
24479
+ * Filter, which ScheduledJob to fetch.
24480
+ */
24481
+ where: ScheduledJobWhereUniqueInput
24482
+ }
24483
+
24484
+ /**
24485
+ * ScheduledJob findFirst
24486
+ */
24487
+ export type ScheduledJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24488
+ /**
24489
+ * Select specific fields to fetch from the ScheduledJob
24490
+ */
24491
+ select?: ScheduledJobSelect<ExtArgs> | null
24492
+ /**
24493
+ * Omit specific fields from the ScheduledJob
24494
+ */
24495
+ omit?: ScheduledJobOmit<ExtArgs> | null
24496
+ /**
24497
+ * Filter, which ScheduledJob to fetch.
24498
+ */
24499
+ where?: ScheduledJobWhereInput
24500
+ /**
24501
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24502
+ *
24503
+ * Determine the order of ScheduledJobs to fetch.
24504
+ */
24505
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
24506
+ /**
24507
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24508
+ *
24509
+ * Sets the position for searching for ScheduledJobs.
24510
+ */
24511
+ cursor?: ScheduledJobWhereUniqueInput
24512
+ /**
24513
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24514
+ *
24515
+ * Take `±n` ScheduledJobs from the position of the cursor.
24516
+ */
24517
+ take?: number
24518
+ /**
24519
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24520
+ *
24521
+ * Skip the first `n` ScheduledJobs.
24522
+ */
24523
+ skip?: number
24524
+ /**
24525
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
24526
+ *
24527
+ * Filter by unique combinations of ScheduledJobs.
24528
+ */
24529
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
24530
+ }
24531
+
24532
+ /**
24533
+ * ScheduledJob findFirstOrThrow
24534
+ */
24535
+ export type ScheduledJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24536
+ /**
24537
+ * Select specific fields to fetch from the ScheduledJob
24538
+ */
24539
+ select?: ScheduledJobSelect<ExtArgs> | null
24540
+ /**
24541
+ * Omit specific fields from the ScheduledJob
24542
+ */
24543
+ omit?: ScheduledJobOmit<ExtArgs> | null
24544
+ /**
24545
+ * Filter, which ScheduledJob to fetch.
24546
+ */
24547
+ where?: ScheduledJobWhereInput
24548
+ /**
24549
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24550
+ *
24551
+ * Determine the order of ScheduledJobs to fetch.
24552
+ */
24553
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
24554
+ /**
24555
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24556
+ *
24557
+ * Sets the position for searching for ScheduledJobs.
24558
+ */
24559
+ cursor?: ScheduledJobWhereUniqueInput
24560
+ /**
24561
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24562
+ *
24563
+ * Take `±n` ScheduledJobs from the position of the cursor.
24564
+ */
24565
+ take?: number
24566
+ /**
24567
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24568
+ *
24569
+ * Skip the first `n` ScheduledJobs.
24570
+ */
24571
+ skip?: number
24572
+ /**
24573
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
24574
+ *
24575
+ * Filter by unique combinations of ScheduledJobs.
24576
+ */
24577
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
24578
+ }
24579
+
24580
+ /**
24581
+ * ScheduledJob findMany
24582
+ */
24583
+ export type ScheduledJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24584
+ /**
24585
+ * Select specific fields to fetch from the ScheduledJob
24586
+ */
24587
+ select?: ScheduledJobSelect<ExtArgs> | null
24588
+ /**
24589
+ * Omit specific fields from the ScheduledJob
24590
+ */
24591
+ omit?: ScheduledJobOmit<ExtArgs> | null
24592
+ /**
24593
+ * Filter, which ScheduledJobs to fetch.
24594
+ */
24595
+ where?: ScheduledJobWhereInput
24596
+ /**
24597
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24598
+ *
24599
+ * Determine the order of ScheduledJobs to fetch.
24600
+ */
24601
+ orderBy?: ScheduledJobOrderByWithRelationInput | ScheduledJobOrderByWithRelationInput[]
24602
+ /**
24603
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24604
+ *
24605
+ * Sets the position for listing ScheduledJobs.
24606
+ */
24607
+ cursor?: ScheduledJobWhereUniqueInput
24608
+ /**
24609
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24610
+ *
24611
+ * Take `±n` ScheduledJobs from the position of the cursor.
24612
+ */
24613
+ take?: number
24614
+ /**
24615
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24616
+ *
24617
+ * Skip the first `n` ScheduledJobs.
24618
+ */
24619
+ skip?: number
24620
+ distinct?: ScheduledJobScalarFieldEnum | ScheduledJobScalarFieldEnum[]
24621
+ }
24622
+
24623
+ /**
24624
+ * ScheduledJob create
24625
+ */
24626
+ export type ScheduledJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24627
+ /**
24628
+ * Select specific fields to fetch from the ScheduledJob
24629
+ */
24630
+ select?: ScheduledJobSelect<ExtArgs> | null
24631
+ /**
24632
+ * Omit specific fields from the ScheduledJob
24633
+ */
24634
+ omit?: ScheduledJobOmit<ExtArgs> | null
24635
+ /**
24636
+ * The data needed to create a ScheduledJob.
24637
+ */
24638
+ data: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
24639
+ }
24640
+
24641
+ /**
24642
+ * ScheduledJob createMany
24643
+ */
24644
+ export type ScheduledJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24645
+ /**
24646
+ * The data used to create many ScheduledJobs.
24647
+ */
24648
+ data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
24649
+ skipDuplicates?: boolean
24650
+ }
24651
+
24652
+ /**
24653
+ * ScheduledJob createManyAndReturn
24654
+ */
24655
+ export type ScheduledJobCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24656
+ /**
24657
+ * Select specific fields to fetch from the ScheduledJob
24658
+ */
24659
+ select?: ScheduledJobSelectCreateManyAndReturn<ExtArgs> | null
24660
+ /**
24661
+ * Omit specific fields from the ScheduledJob
24662
+ */
24663
+ omit?: ScheduledJobOmit<ExtArgs> | null
24664
+ /**
24665
+ * The data used to create many ScheduledJobs.
24666
+ */
24667
+ data: ScheduledJobCreateManyInput | ScheduledJobCreateManyInput[]
24668
+ skipDuplicates?: boolean
24669
+ }
24670
+
24671
+ /**
24672
+ * ScheduledJob update
24673
+ */
24674
+ export type ScheduledJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24675
+ /**
24676
+ * Select specific fields to fetch from the ScheduledJob
24677
+ */
24678
+ select?: ScheduledJobSelect<ExtArgs> | null
24679
+ /**
24680
+ * Omit specific fields from the ScheduledJob
24681
+ */
24682
+ omit?: ScheduledJobOmit<ExtArgs> | null
24683
+ /**
24684
+ * The data needed to update a ScheduledJob.
24685
+ */
24686
+ data: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
24687
+ /**
24688
+ * Choose, which ScheduledJob to update.
24689
+ */
24690
+ where: ScheduledJobWhereUniqueInput
24691
+ }
24692
+
24693
+ /**
24694
+ * ScheduledJob updateMany
24695
+ */
24696
+ export type ScheduledJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24697
+ /**
24698
+ * The data used to update ScheduledJobs.
24699
+ */
24700
+ data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
24701
+ /**
24702
+ * Filter which ScheduledJobs to update
24703
+ */
24704
+ where?: ScheduledJobWhereInput
24705
+ /**
24706
+ * Limit how many ScheduledJobs to update.
24707
+ */
24708
+ limit?: number
24709
+ }
24710
+
24711
+ /**
24712
+ * ScheduledJob updateManyAndReturn
24713
+ */
24714
+ export type ScheduledJobUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24715
+ /**
24716
+ * Select specific fields to fetch from the ScheduledJob
24717
+ */
24718
+ select?: ScheduledJobSelectUpdateManyAndReturn<ExtArgs> | null
24719
+ /**
24720
+ * Omit specific fields from the ScheduledJob
24721
+ */
24722
+ omit?: ScheduledJobOmit<ExtArgs> | null
24723
+ /**
24724
+ * The data used to update ScheduledJobs.
24725
+ */
24726
+ data: XOR<ScheduledJobUpdateManyMutationInput, ScheduledJobUncheckedUpdateManyInput>
24727
+ /**
24728
+ * Filter which ScheduledJobs to update
24729
+ */
24730
+ where?: ScheduledJobWhereInput
24731
+ /**
24732
+ * Limit how many ScheduledJobs to update.
24733
+ */
24734
+ limit?: number
24735
+ }
24736
+
24737
+ /**
24738
+ * ScheduledJob upsert
24739
+ */
24740
+ export type ScheduledJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24741
+ /**
24742
+ * Select specific fields to fetch from the ScheduledJob
24743
+ */
24744
+ select?: ScheduledJobSelect<ExtArgs> | null
24745
+ /**
24746
+ * Omit specific fields from the ScheduledJob
24747
+ */
24748
+ omit?: ScheduledJobOmit<ExtArgs> | null
24749
+ /**
24750
+ * The filter to search for the ScheduledJob to update in case it exists.
24751
+ */
24752
+ where: ScheduledJobWhereUniqueInput
24753
+ /**
24754
+ * In case the ScheduledJob found by the `where` argument doesn't exist, create a new ScheduledJob with this data.
24755
+ */
24756
+ create: XOR<ScheduledJobCreateInput, ScheduledJobUncheckedCreateInput>
24757
+ /**
24758
+ * In case the ScheduledJob was found with the provided `where` argument, update it with this data.
24759
+ */
24760
+ update: XOR<ScheduledJobUpdateInput, ScheduledJobUncheckedUpdateInput>
24761
+ }
24762
+
24763
+ /**
24764
+ * ScheduledJob delete
24765
+ */
24766
+ export type ScheduledJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24767
+ /**
24768
+ * Select specific fields to fetch from the ScheduledJob
24769
+ */
24770
+ select?: ScheduledJobSelect<ExtArgs> | null
24771
+ /**
24772
+ * Omit specific fields from the ScheduledJob
24773
+ */
24774
+ omit?: ScheduledJobOmit<ExtArgs> | null
24775
+ /**
24776
+ * Filter which ScheduledJob to delete.
24777
+ */
24778
+ where: ScheduledJobWhereUniqueInput
24779
+ }
24780
+
24781
+ /**
24782
+ * ScheduledJob deleteMany
24783
+ */
24784
+ export type ScheduledJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24785
+ /**
24786
+ * Filter which ScheduledJobs to delete
24787
+ */
24788
+ where?: ScheduledJobWhereInput
24789
+ /**
24790
+ * Limit how many ScheduledJobs to delete.
24791
+ */
24792
+ limit?: number
24793
+ }
24794
+
24795
+ /**
24796
+ * ScheduledJob without action
24797
+ */
24798
+ export type ScheduledJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24799
+ /**
24800
+ * Select specific fields to fetch from the ScheduledJob
24801
+ */
24802
+ select?: ScheduledJobSelect<ExtArgs> | null
24803
+ /**
24804
+ * Omit specific fields from the ScheduledJob
24805
+ */
24806
+ omit?: ScheduledJobOmit<ExtArgs> | null
24807
+ }
24808
+
24809
+
24810
+ /**
24811
+ * Enums
24812
+ */
24813
+
24814
+ export const TransactionIsolationLevel: {
24815
+ ReadUncommitted: 'ReadUncommitted',
24816
+ ReadCommitted: 'ReadCommitted',
24817
+ RepeatableRead: 'RepeatableRead',
24818
+ Serializable: 'Serializable'
24819
+ };
24820
+
24821
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
24822
+
24823
+
24824
+ export const UserScalarFieldEnum: {
24825
+ id: 'id',
24826
+ type: 'type',
24827
+ createdAt: 'createdAt',
24828
+ updatedAt: 'updatedAt',
24829
+ email: 'email',
24830
+ username: 'username',
24831
+ hashword: 'hashword',
24832
+ appUserId: 'appUserId',
24833
+ organizationId: 'organizationId',
24834
+ appOrgId: 'appOrgId',
24835
+ name: 'name'
24836
+ };
24837
+
24838
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
24839
+
24840
+
24841
+ export const TokenScalarFieldEnum: {
24842
+ id: 'id',
24843
+ token: 'token',
24844
+ created: 'created',
24845
+ expires: 'expires',
24846
+ userId: 'userId'
24847
+ };
24848
+
24849
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
24850
+
24851
+
24852
+ export const CredentialScalarFieldEnum: {
24853
+ id: 'id',
24854
+ userId: 'userId',
24855
+ authIsValid: 'authIsValid',
24856
+ externalId: 'externalId',
24857
+ data: 'data',
24858
+ createdAt: 'createdAt',
24859
+ updatedAt: 'updatedAt'
24860
+ };
24861
+
24862
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
24863
+
24864
+
24865
+ export const EntityScalarFieldEnum: {
24866
+ id: 'id',
24867
+ credentialId: 'credentialId',
24868
+ userId: 'userId',
24869
+ name: 'name',
24870
+ moduleName: 'moduleName',
24871
+ externalId: 'externalId',
24872
+ organizationId: 'organizationId',
24873
+ data: 'data',
24874
+ createdAt: 'createdAt',
24875
+ updatedAt: 'updatedAt'
24876
+ };
24877
+
24878
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
24879
+
24880
+
24881
+ export const IntegrationScalarFieldEnum: {
24882
+ id: 'id',
24883
+ userId: 'userId',
24884
+ status: 'status',
24885
+ organizationId: 'organizationId',
24886
+ config: 'config',
24887
+ version: 'version',
24888
+ errors: 'errors',
24889
+ warnings: 'warnings',
22422
24890
  info: 'info',
22423
24891
  logs: 'logs',
22424
24892
  createdAt: 'createdAt',
@@ -22581,6 +25049,31 @@ export namespace Prisma {
22581
25049
  export type AuthorizationSessionScalarFieldEnum = (typeof AuthorizationSessionScalarFieldEnum)[keyof typeof AuthorizationSessionScalarFieldEnum]
22582
25050
 
22583
25051
 
25052
+ export const OrganizationMembershipScalarFieldEnum: {
25053
+ id: 'id',
25054
+ individualUserId: 'individualUserId',
25055
+ organizationUserId: 'organizationUserId',
25056
+ orgRole: 'orgRole',
25057
+ createdAt: 'createdAt'
25058
+ };
25059
+
25060
+ export type OrganizationMembershipScalarFieldEnum = (typeof OrganizationMembershipScalarFieldEnum)[keyof typeof OrganizationMembershipScalarFieldEnum]
25061
+
25062
+
25063
+ export const ScheduledJobScalarFieldEnum: {
25064
+ id: 'id',
25065
+ scheduleName: 'scheduleName',
25066
+ scheduledAt: 'scheduledAt',
25067
+ queueResourceId: 'queueResourceId',
25068
+ payload: 'payload',
25069
+ state: 'state',
25070
+ createdAt: 'createdAt',
25071
+ updatedAt: 'updatedAt'
25072
+ };
25073
+
25074
+ export type ScheduledJobScalarFieldEnum = (typeof ScheduledJobScalarFieldEnum)[keyof typeof ScheduledJobScalarFieldEnum]
25075
+
25076
+
22584
25077
  export const SortOrder: {
22585
25078
  asc: 'asc',
22586
25079
  desc: 'desc'
@@ -22806,6 +25299,8 @@ export namespace Prisma {
22806
25299
  entities?: EntityListRelationFilter
22807
25300
  integrations?: IntegrationListRelationFilter
22808
25301
  processes?: ProcessListRelationFilter
25302
+ memberships?: OrganizationMembershipListRelationFilter
25303
+ orgMembers?: OrganizationMembershipListRelationFilter
22809
25304
  }
22810
25305
 
22811
25306
  export type UserOrderByWithRelationInput = {
@@ -22827,6 +25322,8 @@ export namespace Prisma {
22827
25322
  entities?: EntityOrderByRelationAggregateInput
22828
25323
  integrations?: IntegrationOrderByRelationAggregateInput
22829
25324
  processes?: ProcessOrderByRelationAggregateInput
25325
+ memberships?: OrganizationMembershipOrderByRelationAggregateInput
25326
+ orgMembers?: OrganizationMembershipOrderByRelationAggregateInput
22830
25327
  }
22831
25328
 
22832
25329
  export type UserWhereUniqueInput = Prisma.AtLeast<{
@@ -22852,6 +25349,8 @@ export namespace Prisma {
22852
25349
  entities?: EntityListRelationFilter
22853
25350
  integrations?: IntegrationListRelationFilter
22854
25351
  processes?: ProcessListRelationFilter
25352
+ memberships?: OrganizationMembershipListRelationFilter
25353
+ orgMembers?: OrganizationMembershipListRelationFilter
22855
25354
  }, "id" | "username_appUserId">
22856
25355
 
22857
25356
  export type UserOrderByWithAggregationInput = {
@@ -23027,6 +25526,7 @@ export namespace Prisma {
23027
25526
  name?: StringNullableFilter<"Entity"> | string | null
23028
25527
  moduleName?: StringNullableFilter<"Entity"> | string | null
23029
25528
  externalId?: StringNullableFilter<"Entity"> | string | null
25529
+ organizationId?: IntNullableFilter<"Entity"> | number | null
23030
25530
  data?: JsonFilter<"Entity">
23031
25531
  createdAt?: DateTimeFilter<"Entity"> | Date | string
23032
25532
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -23045,6 +25545,7 @@ export namespace Prisma {
23045
25545
  name?: SortOrderInput | SortOrder
23046
25546
  moduleName?: SortOrderInput | SortOrder
23047
25547
  externalId?: SortOrderInput | SortOrder
25548
+ organizationId?: SortOrderInput | SortOrder
23048
25549
  data?: SortOrder
23049
25550
  createdAt?: SortOrder
23050
25551
  updatedAt?: SortOrder
@@ -23066,6 +25567,7 @@ export namespace Prisma {
23066
25567
  name?: StringNullableFilter<"Entity"> | string | null
23067
25568
  moduleName?: StringNullableFilter<"Entity"> | string | null
23068
25569
  externalId?: StringNullableFilter<"Entity"> | string | null
25570
+ organizationId?: IntNullableFilter<"Entity"> | number | null
23069
25571
  data?: JsonFilter<"Entity">
23070
25572
  createdAt?: DateTimeFilter<"Entity"> | Date | string
23071
25573
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -23084,6 +25586,7 @@ export namespace Prisma {
23084
25586
  name?: SortOrderInput | SortOrder
23085
25587
  moduleName?: SortOrderInput | SortOrder
23086
25588
  externalId?: SortOrderInput | SortOrder
25589
+ organizationId?: SortOrderInput | SortOrder
23087
25590
  data?: SortOrder
23088
25591
  createdAt?: SortOrder
23089
25592
  updatedAt?: SortOrder
@@ -23104,6 +25607,7 @@ export namespace Prisma {
23104
25607
  name?: StringNullableWithAggregatesFilter<"Entity"> | string | null
23105
25608
  moduleName?: StringNullableWithAggregatesFilter<"Entity"> | string | null
23106
25609
  externalId?: StringNullableWithAggregatesFilter<"Entity"> | string | null
25610
+ organizationId?: IntNullableWithAggregatesFilter<"Entity"> | number | null
23107
25611
  data?: JsonWithAggregatesFilter<"Entity">
23108
25612
  createdAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string
23109
25613
  updatedAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string
@@ -23116,6 +25620,7 @@ export namespace Prisma {
23116
25620
  id?: IntFilter<"Integration"> | number
23117
25621
  userId?: IntNullableFilter<"Integration"> | number | null
23118
25622
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
25623
+ organizationId?: IntNullableFilter<"Integration"> | number | null
23119
25624
  config?: JsonNullableFilter<"Integration">
23120
25625
  version?: StringNullableFilter<"Integration"> | string | null
23121
25626
  errors?: JsonFilter<"Integration">
@@ -23136,6 +25641,7 @@ export namespace Prisma {
23136
25641
  id?: SortOrder
23137
25642
  userId?: SortOrderInput | SortOrder
23138
25643
  status?: SortOrder
25644
+ organizationId?: SortOrderInput | SortOrder
23139
25645
  config?: SortOrderInput | SortOrder
23140
25646
  version?: SortOrderInput | SortOrder
23141
25647
  errors?: SortOrder
@@ -23159,6 +25665,7 @@ export namespace Prisma {
23159
25665
  NOT?: IntegrationWhereInput | IntegrationWhereInput[]
23160
25666
  userId?: IntNullableFilter<"Integration"> | number | null
23161
25667
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
25668
+ organizationId?: IntNullableFilter<"Integration"> | number | null
23162
25669
  config?: JsonNullableFilter<"Integration">
23163
25670
  version?: StringNullableFilter<"Integration"> | string | null
23164
25671
  errors?: JsonFilter<"Integration">
@@ -23179,6 +25686,7 @@ export namespace Prisma {
23179
25686
  id?: SortOrder
23180
25687
  userId?: SortOrderInput | SortOrder
23181
25688
  status?: SortOrder
25689
+ organizationId?: SortOrderInput | SortOrder
23182
25690
  config?: SortOrderInput | SortOrder
23183
25691
  version?: SortOrderInput | SortOrder
23184
25692
  errors?: SortOrder
@@ -23201,6 +25709,7 @@ export namespace Prisma {
23201
25709
  id?: IntWithAggregatesFilter<"Integration"> | number
23202
25710
  userId?: IntNullableWithAggregatesFilter<"Integration"> | number | null
23203
25711
  status?: EnumIntegrationStatusWithAggregatesFilter<"Integration"> | $Enums.IntegrationStatus
25712
+ organizationId?: IntNullableWithAggregatesFilter<"Integration"> | number | null
23204
25713
  config?: JsonNullableWithAggregatesFilter<"Integration">
23205
25714
  version?: StringNullableWithAggregatesFilter<"Integration"> | string | null
23206
25715
  errors?: JsonWithAggregatesFilter<"Integration">
@@ -24014,6 +26523,136 @@ export namespace Prisma {
24014
26523
  updatedAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
24015
26524
  }
24016
26525
 
26526
+ export type OrganizationMembershipWhereInput = {
26527
+ AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
26528
+ OR?: OrganizationMembershipWhereInput[]
26529
+ NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
26530
+ id?: IntFilter<"OrganizationMembership"> | number
26531
+ individualUserId?: IntFilter<"OrganizationMembership"> | number
26532
+ organizationUserId?: IntFilter<"OrganizationMembership"> | number
26533
+ orgRole?: StringFilter<"OrganizationMembership"> | string
26534
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
26535
+ individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
26536
+ organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
26537
+ }
26538
+
26539
+ export type OrganizationMembershipOrderByWithRelationInput = {
26540
+ id?: SortOrder
26541
+ individualUserId?: SortOrder
26542
+ organizationUserId?: SortOrder
26543
+ orgRole?: SortOrder
26544
+ createdAt?: SortOrder
26545
+ individualUser?: UserOrderByWithRelationInput
26546
+ organizationUser?: UserOrderByWithRelationInput
26547
+ }
26548
+
26549
+ export type OrganizationMembershipWhereUniqueInput = Prisma.AtLeast<{
26550
+ id?: number
26551
+ individualUserId_organizationUserId?: OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput
26552
+ AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
26553
+ OR?: OrganizationMembershipWhereInput[]
26554
+ NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
26555
+ individualUserId?: IntFilter<"OrganizationMembership"> | number
26556
+ organizationUserId?: IntFilter<"OrganizationMembership"> | number
26557
+ orgRole?: StringFilter<"OrganizationMembership"> | string
26558
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
26559
+ individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
26560
+ organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
26561
+ }, "id" | "individualUserId_organizationUserId">
26562
+
26563
+ export type OrganizationMembershipOrderByWithAggregationInput = {
26564
+ id?: SortOrder
26565
+ individualUserId?: SortOrder
26566
+ organizationUserId?: SortOrder
26567
+ orgRole?: SortOrder
26568
+ createdAt?: SortOrder
26569
+ _count?: OrganizationMembershipCountOrderByAggregateInput
26570
+ _avg?: OrganizationMembershipAvgOrderByAggregateInput
26571
+ _max?: OrganizationMembershipMaxOrderByAggregateInput
26572
+ _min?: OrganizationMembershipMinOrderByAggregateInput
26573
+ _sum?: OrganizationMembershipSumOrderByAggregateInput
26574
+ }
26575
+
26576
+ export type OrganizationMembershipScalarWhereWithAggregatesInput = {
26577
+ AND?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
26578
+ OR?: OrganizationMembershipScalarWhereWithAggregatesInput[]
26579
+ NOT?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
26580
+ id?: IntWithAggregatesFilter<"OrganizationMembership"> | number
26581
+ individualUserId?: IntWithAggregatesFilter<"OrganizationMembership"> | number
26582
+ organizationUserId?: IntWithAggregatesFilter<"OrganizationMembership"> | number
26583
+ orgRole?: StringWithAggregatesFilter<"OrganizationMembership"> | string
26584
+ createdAt?: DateTimeWithAggregatesFilter<"OrganizationMembership"> | Date | string
26585
+ }
26586
+
26587
+ export type ScheduledJobWhereInput = {
26588
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
26589
+ OR?: ScheduledJobWhereInput[]
26590
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
26591
+ id?: IntFilter<"ScheduledJob"> | number
26592
+ scheduleName?: StringFilter<"ScheduledJob"> | string
26593
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
26594
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
26595
+ payload?: JsonNullableFilter<"ScheduledJob">
26596
+ state?: StringFilter<"ScheduledJob"> | string
26597
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
26598
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
26599
+ }
26600
+
26601
+ export type ScheduledJobOrderByWithRelationInput = {
26602
+ id?: SortOrder
26603
+ scheduleName?: SortOrder
26604
+ scheduledAt?: SortOrder
26605
+ queueResourceId?: SortOrder
26606
+ payload?: SortOrderInput | SortOrder
26607
+ state?: SortOrder
26608
+ createdAt?: SortOrder
26609
+ updatedAt?: SortOrder
26610
+ }
26611
+
26612
+ export type ScheduledJobWhereUniqueInput = Prisma.AtLeast<{
26613
+ id?: number
26614
+ scheduleName?: string
26615
+ AND?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
26616
+ OR?: ScheduledJobWhereInput[]
26617
+ NOT?: ScheduledJobWhereInput | ScheduledJobWhereInput[]
26618
+ scheduledAt?: DateTimeFilter<"ScheduledJob"> | Date | string
26619
+ queueResourceId?: StringFilter<"ScheduledJob"> | string
26620
+ payload?: JsonNullableFilter<"ScheduledJob">
26621
+ state?: StringFilter<"ScheduledJob"> | string
26622
+ createdAt?: DateTimeFilter<"ScheduledJob"> | Date | string
26623
+ updatedAt?: DateTimeFilter<"ScheduledJob"> | Date | string
26624
+ }, "id" | "scheduleName">
26625
+
26626
+ export type ScheduledJobOrderByWithAggregationInput = {
26627
+ id?: SortOrder
26628
+ scheduleName?: SortOrder
26629
+ scheduledAt?: SortOrder
26630
+ queueResourceId?: SortOrder
26631
+ payload?: SortOrderInput | SortOrder
26632
+ state?: SortOrder
26633
+ createdAt?: SortOrder
26634
+ updatedAt?: SortOrder
26635
+ _count?: ScheduledJobCountOrderByAggregateInput
26636
+ _avg?: ScheduledJobAvgOrderByAggregateInput
26637
+ _max?: ScheduledJobMaxOrderByAggregateInput
26638
+ _min?: ScheduledJobMinOrderByAggregateInput
26639
+ _sum?: ScheduledJobSumOrderByAggregateInput
26640
+ }
26641
+
26642
+ export type ScheduledJobScalarWhereWithAggregatesInput = {
26643
+ AND?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
26644
+ OR?: ScheduledJobScalarWhereWithAggregatesInput[]
26645
+ NOT?: ScheduledJobScalarWhereWithAggregatesInput | ScheduledJobScalarWhereWithAggregatesInput[]
26646
+ id?: IntWithAggregatesFilter<"ScheduledJob"> | number
26647
+ scheduleName?: StringWithAggregatesFilter<"ScheduledJob"> | string
26648
+ scheduledAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
26649
+ queueResourceId?: StringWithAggregatesFilter<"ScheduledJob"> | string
26650
+ payload?: JsonNullableWithAggregatesFilter<"ScheduledJob">
26651
+ state?: StringWithAggregatesFilter<"ScheduledJob"> | string
26652
+ createdAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
26653
+ updatedAt?: DateTimeWithAggregatesFilter<"ScheduledJob"> | Date | string
26654
+ }
26655
+
24017
26656
  export type UserCreateInput = {
24018
26657
  type: $Enums.UserType
24019
26658
  createdAt?: Date | string
@@ -24031,6 +26670,8 @@ export namespace Prisma {
24031
26670
  entities?: EntityCreateNestedManyWithoutUserInput
24032
26671
  integrations?: IntegrationCreateNestedManyWithoutUserInput
24033
26672
  processes?: ProcessCreateNestedManyWithoutUserInput
26673
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
26674
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
24034
26675
  }
24035
26676
 
24036
26677
  export type UserUncheckedCreateInput = {
@@ -24051,6 +26692,8 @@ export namespace Prisma {
24051
26692
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
24052
26693
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
24053
26694
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
26695
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
26696
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
24054
26697
  }
24055
26698
 
24056
26699
  export type UserUpdateInput = {
@@ -24070,6 +26713,8 @@ export namespace Prisma {
24070
26713
  entities?: EntityUpdateManyWithoutUserNestedInput
24071
26714
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
24072
26715
  processes?: ProcessUpdateManyWithoutUserNestedInput
26716
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
26717
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
24073
26718
  }
24074
26719
 
24075
26720
  export type UserUncheckedUpdateInput = {
@@ -24090,6 +26735,8 @@ export namespace Prisma {
24090
26735
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
24091
26736
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
24092
26737
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
26738
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
26739
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
24093
26740
  }
24094
26741
 
24095
26742
  export type UserCreateManyInput = {
@@ -24258,6 +26905,7 @@ export namespace Prisma {
24258
26905
  name?: string | null
24259
26906
  moduleName?: string | null
24260
26907
  externalId?: string | null
26908
+ organizationId?: number | null
24261
26909
  data?: JsonNullValueInput | InputJsonValue
24262
26910
  createdAt?: Date | string
24263
26911
  updatedAt?: Date | string
@@ -24276,6 +26924,7 @@ export namespace Prisma {
24276
26924
  name?: string | null
24277
26925
  moduleName?: string | null
24278
26926
  externalId?: string | null
26927
+ organizationId?: number | null
24279
26928
  data?: JsonNullValueInput | InputJsonValue
24280
26929
  createdAt?: Date | string
24281
26930
  updatedAt?: Date | string
@@ -24289,6 +26938,7 @@ export namespace Prisma {
24289
26938
  name?: NullableStringFieldUpdateOperationsInput | string | null
24290
26939
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
24291
26940
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
26941
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
24292
26942
  data?: JsonNullValueInput | InputJsonValue
24293
26943
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24294
26944
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -24307,6 +26957,7 @@ export namespace Prisma {
24307
26957
  name?: NullableStringFieldUpdateOperationsInput | string | null
24308
26958
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
24309
26959
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
26960
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
24310
26961
  data?: JsonNullValueInput | InputJsonValue
24311
26962
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24312
26963
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -24323,6 +26974,7 @@ export namespace Prisma {
24323
26974
  name?: string | null
24324
26975
  moduleName?: string | null
24325
26976
  externalId?: string | null
26977
+ organizationId?: number | null
24326
26978
  data?: JsonNullValueInput | InputJsonValue
24327
26979
  createdAt?: Date | string
24328
26980
  updatedAt?: Date | string
@@ -24332,6 +26984,7 @@ export namespace Prisma {
24332
26984
  name?: NullableStringFieldUpdateOperationsInput | string | null
24333
26985
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
24334
26986
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
26987
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
24335
26988
  data?: JsonNullValueInput | InputJsonValue
24336
26989
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24337
26990
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -24344,6 +26997,7 @@ export namespace Prisma {
24344
26997
  name?: NullableStringFieldUpdateOperationsInput | string | null
24345
26998
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
24346
26999
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
27000
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
24347
27001
  data?: JsonNullValueInput | InputJsonValue
24348
27002
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24349
27003
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -24351,6 +27005,7 @@ export namespace Prisma {
24351
27005
 
24352
27006
  export type IntegrationCreateInput = {
24353
27007
  status?: $Enums.IntegrationStatus
27008
+ organizationId?: number | null
24354
27009
  config?: NullableJsonNullValueInput | InputJsonValue
24355
27010
  version?: string | null
24356
27011
  errors?: JsonNullValueInput | InputJsonValue
@@ -24371,6 +27026,7 @@ export namespace Prisma {
24371
27026
  id?: number
24372
27027
  userId?: number | null
24373
27028
  status?: $Enums.IntegrationStatus
27029
+ organizationId?: number | null
24374
27030
  config?: NullableJsonNullValueInput | InputJsonValue
24375
27031
  version?: string | null
24376
27032
  errors?: JsonNullValueInput | InputJsonValue
@@ -24388,6 +27044,7 @@ export namespace Prisma {
24388
27044
 
24389
27045
  export type IntegrationUpdateInput = {
24390
27046
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
27047
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
24391
27048
  config?: NullableJsonNullValueInput | InputJsonValue
24392
27049
  version?: NullableStringFieldUpdateOperationsInput | string | null
24393
27050
  errors?: JsonNullValueInput | InputJsonValue
@@ -24408,6 +27065,7 @@ export namespace Prisma {
24408
27065
  id?: IntFieldUpdateOperationsInput | number
24409
27066
  userId?: NullableIntFieldUpdateOperationsInput | number | null
24410
27067
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
27068
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
24411
27069
  config?: NullableJsonNullValueInput | InputJsonValue
24412
27070
  version?: NullableStringFieldUpdateOperationsInput | string | null
24413
27071
  errors?: JsonNullValueInput | InputJsonValue
@@ -24427,6 +27085,7 @@ export namespace Prisma {
24427
27085
  id?: number
24428
27086
  userId?: number | null
24429
27087
  status?: $Enums.IntegrationStatus
27088
+ organizationId?: number | null
24430
27089
  config?: NullableJsonNullValueInput | InputJsonValue
24431
27090
  version?: string | null
24432
27091
  errors?: JsonNullValueInput | InputJsonValue
@@ -24439,6 +27098,7 @@ export namespace Prisma {
24439
27098
 
24440
27099
  export type IntegrationUpdateManyMutationInput = {
24441
27100
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
27101
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
24442
27102
  config?: NullableJsonNullValueInput | InputJsonValue
24443
27103
  version?: NullableStringFieldUpdateOperationsInput | string | null
24444
27104
  errors?: JsonNullValueInput | InputJsonValue
@@ -24453,6 +27113,7 @@ export namespace Prisma {
24453
27113
  id?: IntFieldUpdateOperationsInput | number
24454
27114
  userId?: NullableIntFieldUpdateOperationsInput | number | null
24455
27115
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
27116
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
24456
27117
  config?: NullableJsonNullValueInput | InputJsonValue
24457
27118
  version?: NullableStringFieldUpdateOperationsInput | string | null
24458
27119
  errors?: JsonNullValueInput | InputJsonValue
@@ -25255,6 +27916,131 @@ export namespace Prisma {
25255
27916
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
25256
27917
  }
25257
27918
 
27919
+ export type OrganizationMembershipCreateInput = {
27920
+ orgRole?: string
27921
+ createdAt?: Date | string
27922
+ individualUser: UserCreateNestedOneWithoutMembershipsInput
27923
+ organizationUser: UserCreateNestedOneWithoutOrgMembersInput
27924
+ }
27925
+
27926
+ export type OrganizationMembershipUncheckedCreateInput = {
27927
+ id?: number
27928
+ individualUserId: number
27929
+ organizationUserId: number
27930
+ orgRole?: string
27931
+ createdAt?: Date | string
27932
+ }
27933
+
27934
+ export type OrganizationMembershipUpdateInput = {
27935
+ orgRole?: StringFieldUpdateOperationsInput | string
27936
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27937
+ individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
27938
+ organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
27939
+ }
27940
+
27941
+ export type OrganizationMembershipUncheckedUpdateInput = {
27942
+ id?: IntFieldUpdateOperationsInput | number
27943
+ individualUserId?: IntFieldUpdateOperationsInput | number
27944
+ organizationUserId?: IntFieldUpdateOperationsInput | number
27945
+ orgRole?: StringFieldUpdateOperationsInput | string
27946
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27947
+ }
27948
+
27949
+ export type OrganizationMembershipCreateManyInput = {
27950
+ id?: number
27951
+ individualUserId: number
27952
+ organizationUserId: number
27953
+ orgRole?: string
27954
+ createdAt?: Date | string
27955
+ }
27956
+
27957
+ export type OrganizationMembershipUpdateManyMutationInput = {
27958
+ orgRole?: StringFieldUpdateOperationsInput | string
27959
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27960
+ }
27961
+
27962
+ export type OrganizationMembershipUncheckedUpdateManyInput = {
27963
+ id?: IntFieldUpdateOperationsInput | number
27964
+ individualUserId?: IntFieldUpdateOperationsInput | number
27965
+ organizationUserId?: IntFieldUpdateOperationsInput | number
27966
+ orgRole?: StringFieldUpdateOperationsInput | string
27967
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27968
+ }
27969
+
27970
+ export type ScheduledJobCreateInput = {
27971
+ scheduleName: string
27972
+ scheduledAt: Date | string
27973
+ queueResourceId: string
27974
+ payload?: NullableJsonNullValueInput | InputJsonValue
27975
+ state?: string
27976
+ createdAt?: Date | string
27977
+ updatedAt?: Date | string
27978
+ }
27979
+
27980
+ export type ScheduledJobUncheckedCreateInput = {
27981
+ id?: number
27982
+ scheduleName: string
27983
+ scheduledAt: Date | string
27984
+ queueResourceId: string
27985
+ payload?: NullableJsonNullValueInput | InputJsonValue
27986
+ state?: string
27987
+ createdAt?: Date | string
27988
+ updatedAt?: Date | string
27989
+ }
27990
+
27991
+ export type ScheduledJobUpdateInput = {
27992
+ scheduleName?: StringFieldUpdateOperationsInput | string
27993
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
27994
+ queueResourceId?: StringFieldUpdateOperationsInput | string
27995
+ payload?: NullableJsonNullValueInput | InputJsonValue
27996
+ state?: StringFieldUpdateOperationsInput | string
27997
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27998
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
27999
+ }
28000
+
28001
+ export type ScheduledJobUncheckedUpdateInput = {
28002
+ id?: IntFieldUpdateOperationsInput | number
28003
+ scheduleName?: StringFieldUpdateOperationsInput | string
28004
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
28005
+ queueResourceId?: StringFieldUpdateOperationsInput | string
28006
+ payload?: NullableJsonNullValueInput | InputJsonValue
28007
+ state?: StringFieldUpdateOperationsInput | string
28008
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28009
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28010
+ }
28011
+
28012
+ export type ScheduledJobCreateManyInput = {
28013
+ id?: number
28014
+ scheduleName: string
28015
+ scheduledAt: Date | string
28016
+ queueResourceId: string
28017
+ payload?: NullableJsonNullValueInput | InputJsonValue
28018
+ state?: string
28019
+ createdAt?: Date | string
28020
+ updatedAt?: Date | string
28021
+ }
28022
+
28023
+ export type ScheduledJobUpdateManyMutationInput = {
28024
+ scheduleName?: StringFieldUpdateOperationsInput | string
28025
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
28026
+ queueResourceId?: StringFieldUpdateOperationsInput | string
28027
+ payload?: NullableJsonNullValueInput | InputJsonValue
28028
+ state?: StringFieldUpdateOperationsInput | string
28029
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28030
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28031
+ }
28032
+
28033
+ export type ScheduledJobUncheckedUpdateManyInput = {
28034
+ id?: IntFieldUpdateOperationsInput | number
28035
+ scheduleName?: StringFieldUpdateOperationsInput | string
28036
+ scheduledAt?: DateTimeFieldUpdateOperationsInput | Date | string
28037
+ queueResourceId?: StringFieldUpdateOperationsInput | string
28038
+ payload?: NullableJsonNullValueInput | InputJsonValue
28039
+ state?: StringFieldUpdateOperationsInput | string
28040
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28041
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28042
+ }
28043
+
25258
28044
  export type IntFilter<$PrismaModel = never> = {
25259
28045
  equals?: number | IntFieldRefInput<$PrismaModel>
25260
28046
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -25351,6 +28137,12 @@ export namespace Prisma {
25351
28137
  none?: ProcessWhereInput
25352
28138
  }
25353
28139
 
28140
+ export type OrganizationMembershipListRelationFilter = {
28141
+ every?: OrganizationMembershipWhereInput
28142
+ some?: OrganizationMembershipWhereInput
28143
+ none?: OrganizationMembershipWhereInput
28144
+ }
28145
+
25354
28146
  export type SortOrderInput = {
25355
28147
  sort: SortOrder
25356
28148
  nulls?: NullsOrder
@@ -25380,6 +28172,10 @@ export namespace Prisma {
25380
28172
  _count?: SortOrder
25381
28173
  }
25382
28174
 
28175
+ export type OrganizationMembershipOrderByRelationAggregateInput = {
28176
+ _count?: SortOrder
28177
+ }
28178
+
25383
28179
  export type UserUsernameAppUserIdCompoundUniqueInput = {
25384
28180
  username: string
25385
28181
  appUserId: string
@@ -25750,6 +28546,7 @@ export namespace Prisma {
25750
28546
  name?: SortOrder
25751
28547
  moduleName?: SortOrder
25752
28548
  externalId?: SortOrder
28549
+ organizationId?: SortOrder
25753
28550
  data?: SortOrder
25754
28551
  createdAt?: SortOrder
25755
28552
  updatedAt?: SortOrder
@@ -25759,6 +28556,7 @@ export namespace Prisma {
25759
28556
  id?: SortOrder
25760
28557
  credentialId?: SortOrder
25761
28558
  userId?: SortOrder
28559
+ organizationId?: SortOrder
25762
28560
  }
25763
28561
 
25764
28562
  export type EntityMaxOrderByAggregateInput = {
@@ -25768,6 +28566,7 @@ export namespace Prisma {
25768
28566
  name?: SortOrder
25769
28567
  moduleName?: SortOrder
25770
28568
  externalId?: SortOrder
28569
+ organizationId?: SortOrder
25771
28570
  createdAt?: SortOrder
25772
28571
  updatedAt?: SortOrder
25773
28572
  }
@@ -25779,6 +28578,7 @@ export namespace Prisma {
25779
28578
  name?: SortOrder
25780
28579
  moduleName?: SortOrder
25781
28580
  externalId?: SortOrder
28581
+ organizationId?: SortOrder
25782
28582
  createdAt?: SortOrder
25783
28583
  updatedAt?: SortOrder
25784
28584
  }
@@ -25787,6 +28587,7 @@ export namespace Prisma {
25787
28587
  id?: SortOrder
25788
28588
  credentialId?: SortOrder
25789
28589
  userId?: SortOrder
28590
+ organizationId?: SortOrder
25790
28591
  }
25791
28592
 
25792
28593
  export type EnumIntegrationStatusFilter<$PrismaModel = never> = {
@@ -25843,6 +28644,7 @@ export namespace Prisma {
25843
28644
  id?: SortOrder
25844
28645
  userId?: SortOrder
25845
28646
  status?: SortOrder
28647
+ organizationId?: SortOrder
25846
28648
  config?: SortOrder
25847
28649
  version?: SortOrder
25848
28650
  errors?: SortOrder
@@ -25856,12 +28658,14 @@ export namespace Prisma {
25856
28658
  export type IntegrationAvgOrderByAggregateInput = {
25857
28659
  id?: SortOrder
25858
28660
  userId?: SortOrder
28661
+ organizationId?: SortOrder
25859
28662
  }
25860
28663
 
25861
28664
  export type IntegrationMaxOrderByAggregateInput = {
25862
28665
  id?: SortOrder
25863
28666
  userId?: SortOrder
25864
28667
  status?: SortOrder
28668
+ organizationId?: SortOrder
25865
28669
  version?: SortOrder
25866
28670
  createdAt?: SortOrder
25867
28671
  updatedAt?: SortOrder
@@ -25871,6 +28675,7 @@ export namespace Prisma {
25871
28675
  id?: SortOrder
25872
28676
  userId?: SortOrder
25873
28677
  status?: SortOrder
28678
+ organizationId?: SortOrder
25874
28679
  version?: SortOrder
25875
28680
  createdAt?: SortOrder
25876
28681
  updatedAt?: SortOrder
@@ -25879,6 +28684,7 @@ export namespace Prisma {
25879
28684
  export type IntegrationSumOrderByAggregateInput = {
25880
28685
  id?: SortOrder
25881
28686
  userId?: SortOrder
28687
+ organizationId?: SortOrder
25882
28688
  }
25883
28689
 
25884
28690
  export type EnumIntegrationStatusWithAggregatesFilter<$PrismaModel = never> = {
@@ -26505,6 +29311,86 @@ export namespace Prisma {
26505
29311
  maxSteps?: SortOrder
26506
29312
  }
26507
29313
 
29314
+ export type OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput = {
29315
+ individualUserId: number
29316
+ organizationUserId: number
29317
+ }
29318
+
29319
+ export type OrganizationMembershipCountOrderByAggregateInput = {
29320
+ id?: SortOrder
29321
+ individualUserId?: SortOrder
29322
+ organizationUserId?: SortOrder
29323
+ orgRole?: SortOrder
29324
+ createdAt?: SortOrder
29325
+ }
29326
+
29327
+ export type OrganizationMembershipAvgOrderByAggregateInput = {
29328
+ id?: SortOrder
29329
+ individualUserId?: SortOrder
29330
+ organizationUserId?: SortOrder
29331
+ }
29332
+
29333
+ export type OrganizationMembershipMaxOrderByAggregateInput = {
29334
+ id?: SortOrder
29335
+ individualUserId?: SortOrder
29336
+ organizationUserId?: SortOrder
29337
+ orgRole?: SortOrder
29338
+ createdAt?: SortOrder
29339
+ }
29340
+
29341
+ export type OrganizationMembershipMinOrderByAggregateInput = {
29342
+ id?: SortOrder
29343
+ individualUserId?: SortOrder
29344
+ organizationUserId?: SortOrder
29345
+ orgRole?: SortOrder
29346
+ createdAt?: SortOrder
29347
+ }
29348
+
29349
+ export type OrganizationMembershipSumOrderByAggregateInput = {
29350
+ id?: SortOrder
29351
+ individualUserId?: SortOrder
29352
+ organizationUserId?: SortOrder
29353
+ }
29354
+
29355
+ export type ScheduledJobCountOrderByAggregateInput = {
29356
+ id?: SortOrder
29357
+ scheduleName?: SortOrder
29358
+ scheduledAt?: SortOrder
29359
+ queueResourceId?: SortOrder
29360
+ payload?: SortOrder
29361
+ state?: SortOrder
29362
+ createdAt?: SortOrder
29363
+ updatedAt?: SortOrder
29364
+ }
29365
+
29366
+ export type ScheduledJobAvgOrderByAggregateInput = {
29367
+ id?: SortOrder
29368
+ }
29369
+
29370
+ export type ScheduledJobMaxOrderByAggregateInput = {
29371
+ id?: SortOrder
29372
+ scheduleName?: SortOrder
29373
+ scheduledAt?: SortOrder
29374
+ queueResourceId?: SortOrder
29375
+ state?: SortOrder
29376
+ createdAt?: SortOrder
29377
+ updatedAt?: SortOrder
29378
+ }
29379
+
29380
+ export type ScheduledJobMinOrderByAggregateInput = {
29381
+ id?: SortOrder
29382
+ scheduleName?: SortOrder
29383
+ scheduledAt?: SortOrder
29384
+ queueResourceId?: SortOrder
29385
+ state?: SortOrder
29386
+ createdAt?: SortOrder
29387
+ updatedAt?: SortOrder
29388
+ }
29389
+
29390
+ export type ScheduledJobSumOrderByAggregateInput = {
29391
+ id?: SortOrder
29392
+ }
29393
+
26508
29394
  export type UserCreateNestedOneWithoutMembersInput = {
26509
29395
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
26510
29396
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -26553,6 +29439,20 @@ export namespace Prisma {
26553
29439
  connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
26554
29440
  }
26555
29441
 
29442
+ export type OrganizationMembershipCreateNestedManyWithoutIndividualUserInput = {
29443
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
29444
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
29445
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
29446
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29447
+ }
29448
+
29449
+ export type OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput = {
29450
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
29451
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
29452
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
29453
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29454
+ }
29455
+
26556
29456
  export type UserUncheckedCreateNestedManyWithoutOrganizationInput = {
26557
29457
  create?: XOR<UserCreateWithoutOrganizationInput, UserUncheckedCreateWithoutOrganizationInput> | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[]
26558
29458
  connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[]
@@ -26595,6 +29495,20 @@ export namespace Prisma {
26595
29495
  connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
26596
29496
  }
26597
29497
 
29498
+ export type OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput = {
29499
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
29500
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
29501
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
29502
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29503
+ }
29504
+
29505
+ export type OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput = {
29506
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
29507
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
29508
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
29509
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29510
+ }
29511
+
26598
29512
  export type EnumUserTypeFieldUpdateOperationsInput = {
26599
29513
  set?: $Enums.UserType
26600
29514
  }
@@ -26701,6 +29615,34 @@ export namespace Prisma {
26701
29615
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
26702
29616
  }
26703
29617
 
29618
+ export type OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput = {
29619
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
29620
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
29621
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
29622
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
29623
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29624
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29625
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29626
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29627
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
29628
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
29629
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
29630
+ }
29631
+
29632
+ export type OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput = {
29633
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
29634
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
29635
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
29636
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
29637
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29638
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29639
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29640
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29641
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
29642
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
29643
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
29644
+ }
29645
+
26704
29646
  export type IntFieldUpdateOperationsInput = {
26705
29647
  set?: number
26706
29648
  increment?: number
@@ -26801,6 +29743,34 @@ export namespace Prisma {
26801
29743
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
26802
29744
  }
26803
29745
 
29746
+ export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput = {
29747
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
29748
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
29749
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
29750
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
29751
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29752
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29753
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29754
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29755
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
29756
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
29757
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
29758
+ }
29759
+
29760
+ export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput = {
29761
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
29762
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
29763
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
29764
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
29765
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29766
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29767
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29768
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
29769
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
29770
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
29771
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
29772
+ }
29773
+
26804
29774
  export type UserCreateNestedOneWithoutTokensInput = {
26805
29775
  create?: XOR<UserCreateWithoutTokensInput, UserUncheckedCreateWithoutTokensInput>
26806
29776
  connectOrCreate?: UserCreateOrConnectWithoutTokensInput
@@ -27691,6 +30661,34 @@ export namespace Prisma {
27691
30661
  divide?: bigint | number
27692
30662
  }
27693
30663
 
30664
+ export type UserCreateNestedOneWithoutMembershipsInput = {
30665
+ create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
30666
+ connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
30667
+ connect?: UserWhereUniqueInput
30668
+ }
30669
+
30670
+ export type UserCreateNestedOneWithoutOrgMembersInput = {
30671
+ create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
30672
+ connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
30673
+ connect?: UserWhereUniqueInput
30674
+ }
30675
+
30676
+ export type UserUpdateOneRequiredWithoutMembershipsNestedInput = {
30677
+ create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
30678
+ connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
30679
+ upsert?: UserUpsertWithoutMembershipsInput
30680
+ connect?: UserWhereUniqueInput
30681
+ update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMembershipsInput, UserUpdateWithoutMembershipsInput>, UserUncheckedUpdateWithoutMembershipsInput>
30682
+ }
30683
+
30684
+ export type UserUpdateOneRequiredWithoutOrgMembersNestedInput = {
30685
+ create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
30686
+ connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
30687
+ upsert?: UserUpsertWithoutOrgMembersInput
30688
+ connect?: UserWhereUniqueInput
30689
+ update?: XOR<XOR<UserUpdateToOneWithWhereWithoutOrgMembersInput, UserUpdateWithoutOrgMembersInput>, UserUncheckedUpdateWithoutOrgMembersInput>
30690
+ }
30691
+
27694
30692
  export type NestedIntFilter<$PrismaModel = never> = {
27695
30693
  equals?: number | IntFieldRefInput<$PrismaModel>
27696
30694
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -28062,6 +31060,8 @@ export namespace Prisma {
28062
31060
  entities?: EntityCreateNestedManyWithoutUserInput
28063
31061
  integrations?: IntegrationCreateNestedManyWithoutUserInput
28064
31062
  processes?: ProcessCreateNestedManyWithoutUserInput
31063
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
31064
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
28065
31065
  }
28066
31066
 
28067
31067
  export type UserUncheckedCreateWithoutMembersInput = {
@@ -28081,6 +31081,8 @@ export namespace Prisma {
28081
31081
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
28082
31082
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
28083
31083
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
31084
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
31085
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
28084
31086
  }
28085
31087
 
28086
31088
  export type UserCreateOrConnectWithoutMembersInput = {
@@ -28104,6 +31106,8 @@ export namespace Prisma {
28104
31106
  entities?: EntityCreateNestedManyWithoutUserInput
28105
31107
  integrations?: IntegrationCreateNestedManyWithoutUserInput
28106
31108
  processes?: ProcessCreateNestedManyWithoutUserInput
31109
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
31110
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
28107
31111
  }
28108
31112
 
28109
31113
  export type UserUncheckedCreateWithoutOrganizationInput = {
@@ -28123,6 +31127,8 @@ export namespace Prisma {
28123
31127
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
28124
31128
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
28125
31129
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
31130
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
31131
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
28126
31132
  }
28127
31133
 
28128
31134
  export type UserCreateOrConnectWithoutOrganizationInput = {
@@ -28191,6 +31197,7 @@ export namespace Prisma {
28191
31197
  name?: string | null
28192
31198
  moduleName?: string | null
28193
31199
  externalId?: string | null
31200
+ organizationId?: number | null
28194
31201
  data?: JsonNullValueInput | InputJsonValue
28195
31202
  createdAt?: Date | string
28196
31203
  updatedAt?: Date | string
@@ -28207,6 +31214,7 @@ export namespace Prisma {
28207
31214
  name?: string | null
28208
31215
  moduleName?: string | null
28209
31216
  externalId?: string | null
31217
+ organizationId?: number | null
28210
31218
  data?: JsonNullValueInput | InputJsonValue
28211
31219
  createdAt?: Date | string
28212
31220
  updatedAt?: Date | string
@@ -28228,6 +31236,7 @@ export namespace Prisma {
28228
31236
 
28229
31237
  export type IntegrationCreateWithoutUserInput = {
28230
31238
  status?: $Enums.IntegrationStatus
31239
+ organizationId?: number | null
28231
31240
  config?: NullableJsonNullValueInput | InputJsonValue
28232
31241
  version?: string | null
28233
31242
  errors?: JsonNullValueInput | InputJsonValue
@@ -28246,6 +31255,7 @@ export namespace Prisma {
28246
31255
  export type IntegrationUncheckedCreateWithoutUserInput = {
28247
31256
  id?: number
28248
31257
  status?: $Enums.IntegrationStatus
31258
+ organizationId?: number | null
28249
31259
  config?: NullableJsonNullValueInput | InputJsonValue
28250
31260
  version?: string | null
28251
31261
  errors?: JsonNullValueInput | InputJsonValue
@@ -28308,6 +31318,52 @@ export namespace Prisma {
28308
31318
  skipDuplicates?: boolean
28309
31319
  }
28310
31320
 
31321
+ export type OrganizationMembershipCreateWithoutIndividualUserInput = {
31322
+ orgRole?: string
31323
+ createdAt?: Date | string
31324
+ organizationUser: UserCreateNestedOneWithoutOrgMembersInput
31325
+ }
31326
+
31327
+ export type OrganizationMembershipUncheckedCreateWithoutIndividualUserInput = {
31328
+ id?: number
31329
+ organizationUserId: number
31330
+ orgRole?: string
31331
+ createdAt?: Date | string
31332
+ }
31333
+
31334
+ export type OrganizationMembershipCreateOrConnectWithoutIndividualUserInput = {
31335
+ where: OrganizationMembershipWhereUniqueInput
31336
+ create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
31337
+ }
31338
+
31339
+ export type OrganizationMembershipCreateManyIndividualUserInputEnvelope = {
31340
+ data: OrganizationMembershipCreateManyIndividualUserInput | OrganizationMembershipCreateManyIndividualUserInput[]
31341
+ skipDuplicates?: boolean
31342
+ }
31343
+
31344
+ export type OrganizationMembershipCreateWithoutOrganizationUserInput = {
31345
+ orgRole?: string
31346
+ createdAt?: Date | string
31347
+ individualUser: UserCreateNestedOneWithoutMembershipsInput
31348
+ }
31349
+
31350
+ export type OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput = {
31351
+ id?: number
31352
+ individualUserId: number
31353
+ orgRole?: string
31354
+ createdAt?: Date | string
31355
+ }
31356
+
31357
+ export type OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput = {
31358
+ where: OrganizationMembershipWhereUniqueInput
31359
+ create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
31360
+ }
31361
+
31362
+ export type OrganizationMembershipCreateManyOrganizationUserInputEnvelope = {
31363
+ data: OrganizationMembershipCreateManyOrganizationUserInput | OrganizationMembershipCreateManyOrganizationUserInput[]
31364
+ skipDuplicates?: boolean
31365
+ }
31366
+
28311
31367
  export type UserUpsertWithoutMembersInput = {
28312
31368
  update: XOR<UserUpdateWithoutMembersInput, UserUncheckedUpdateWithoutMembersInput>
28313
31369
  create: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
@@ -28335,6 +31391,8 @@ export namespace Prisma {
28335
31391
  entities?: EntityUpdateManyWithoutUserNestedInput
28336
31392
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
28337
31393
  processes?: ProcessUpdateManyWithoutUserNestedInput
31394
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
31395
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
28338
31396
  }
28339
31397
 
28340
31398
  export type UserUncheckedUpdateWithoutMembersInput = {
@@ -28354,6 +31412,8 @@ export namespace Prisma {
28354
31412
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
28355
31413
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
28356
31414
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
31415
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
31416
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
28357
31417
  }
28358
31418
 
28359
31419
  export type UserUpsertWithWhereUniqueWithoutOrganizationInput = {
@@ -28471,6 +31531,7 @@ export namespace Prisma {
28471
31531
  name?: StringNullableFilter<"Entity"> | string | null
28472
31532
  moduleName?: StringNullableFilter<"Entity"> | string | null
28473
31533
  externalId?: StringNullableFilter<"Entity"> | string | null
31534
+ organizationId?: IntNullableFilter<"Entity"> | number | null
28474
31535
  data?: JsonFilter<"Entity">
28475
31536
  createdAt?: DateTimeFilter<"Entity"> | Date | string
28476
31537
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -28499,6 +31560,7 @@ export namespace Prisma {
28499
31560
  id?: IntFilter<"Integration"> | number
28500
31561
  userId?: IntNullableFilter<"Integration"> | number | null
28501
31562
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
31563
+ organizationId?: IntNullableFilter<"Integration"> | number | null
28502
31564
  config?: JsonNullableFilter<"Integration">
28503
31565
  version?: StringNullableFilter<"Integration"> | string | null
28504
31566
  errors?: JsonFilter<"Integration">
@@ -28542,6 +31604,49 @@ export namespace Prisma {
28542
31604
  updatedAt?: DateTimeFilter<"Process"> | Date | string
28543
31605
  }
28544
31606
 
31607
+ export type OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput = {
31608
+ where: OrganizationMembershipWhereUniqueInput
31609
+ update: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
31610
+ create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
31611
+ }
31612
+
31613
+ export type OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput = {
31614
+ where: OrganizationMembershipWhereUniqueInput
31615
+ data: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
31616
+ }
31617
+
31618
+ export type OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput = {
31619
+ where: OrganizationMembershipScalarWhereInput
31620
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput>
31621
+ }
31622
+
31623
+ export type OrganizationMembershipScalarWhereInput = {
31624
+ AND?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
31625
+ OR?: OrganizationMembershipScalarWhereInput[]
31626
+ NOT?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
31627
+ id?: IntFilter<"OrganizationMembership"> | number
31628
+ individualUserId?: IntFilter<"OrganizationMembership"> | number
31629
+ organizationUserId?: IntFilter<"OrganizationMembership"> | number
31630
+ orgRole?: StringFilter<"OrganizationMembership"> | string
31631
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
31632
+ }
31633
+
31634
+ export type OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput = {
31635
+ where: OrganizationMembershipWhereUniqueInput
31636
+ update: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
31637
+ create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
31638
+ }
31639
+
31640
+ export type OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput = {
31641
+ where: OrganizationMembershipWhereUniqueInput
31642
+ data: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
31643
+ }
31644
+
31645
+ export type OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput = {
31646
+ where: OrganizationMembershipScalarWhereInput
31647
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput>
31648
+ }
31649
+
28545
31650
  export type UserCreateWithoutTokensInput = {
28546
31651
  type: $Enums.UserType
28547
31652
  createdAt?: Date | string
@@ -28558,6 +31663,8 @@ export namespace Prisma {
28558
31663
  entities?: EntityCreateNestedManyWithoutUserInput
28559
31664
  integrations?: IntegrationCreateNestedManyWithoutUserInput
28560
31665
  processes?: ProcessCreateNestedManyWithoutUserInput
31666
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
31667
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
28561
31668
  }
28562
31669
 
28563
31670
  export type UserUncheckedCreateWithoutTokensInput = {
@@ -28577,6 +31684,8 @@ export namespace Prisma {
28577
31684
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
28578
31685
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
28579
31686
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
31687
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
31688
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
28580
31689
  }
28581
31690
 
28582
31691
  export type UserCreateOrConnectWithoutTokensInput = {
@@ -28611,6 +31720,8 @@ export namespace Prisma {
28611
31720
  entities?: EntityUpdateManyWithoutUserNestedInput
28612
31721
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
28613
31722
  processes?: ProcessUpdateManyWithoutUserNestedInput
31723
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
31724
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
28614
31725
  }
28615
31726
 
28616
31727
  export type UserUncheckedUpdateWithoutTokensInput = {
@@ -28630,6 +31741,8 @@ export namespace Prisma {
28630
31741
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
28631
31742
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
28632
31743
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
31744
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
31745
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
28633
31746
  }
28634
31747
 
28635
31748
  export type UserCreateWithoutCredentialsInput = {
@@ -28648,6 +31761,8 @@ export namespace Prisma {
28648
31761
  entities?: EntityCreateNestedManyWithoutUserInput
28649
31762
  integrations?: IntegrationCreateNestedManyWithoutUserInput
28650
31763
  processes?: ProcessCreateNestedManyWithoutUserInput
31764
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
31765
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
28651
31766
  }
28652
31767
 
28653
31768
  export type UserUncheckedCreateWithoutCredentialsInput = {
@@ -28667,6 +31782,8 @@ export namespace Prisma {
28667
31782
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
28668
31783
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
28669
31784
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
31785
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
31786
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
28670
31787
  }
28671
31788
 
28672
31789
  export type UserCreateOrConnectWithoutCredentialsInput = {
@@ -28678,6 +31795,7 @@ export namespace Prisma {
28678
31795
  name?: string | null
28679
31796
  moduleName?: string | null
28680
31797
  externalId?: string | null
31798
+ organizationId?: number | null
28681
31799
  data?: JsonNullValueInput | InputJsonValue
28682
31800
  createdAt?: Date | string
28683
31801
  updatedAt?: Date | string
@@ -28694,6 +31812,7 @@ export namespace Prisma {
28694
31812
  name?: string | null
28695
31813
  moduleName?: string | null
28696
31814
  externalId?: string | null
31815
+ organizationId?: number | null
28697
31816
  data?: JsonNullValueInput | InputJsonValue
28698
31817
  createdAt?: Date | string
28699
31818
  updatedAt?: Date | string
@@ -28740,6 +31859,8 @@ export namespace Prisma {
28740
31859
  entities?: EntityUpdateManyWithoutUserNestedInput
28741
31860
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
28742
31861
  processes?: ProcessUpdateManyWithoutUserNestedInput
31862
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
31863
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
28743
31864
  }
28744
31865
 
28745
31866
  export type UserUncheckedUpdateWithoutCredentialsInput = {
@@ -28759,6 +31880,8 @@ export namespace Prisma {
28759
31880
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
28760
31881
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
28761
31882
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
31883
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
31884
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
28762
31885
  }
28763
31886
 
28764
31887
  export type EntityUpsertWithWhereUniqueWithoutCredentialInput = {
@@ -28817,6 +31940,8 @@ export namespace Prisma {
28817
31940
  credentials?: CredentialCreateNestedManyWithoutUserInput
28818
31941
  integrations?: IntegrationCreateNestedManyWithoutUserInput
28819
31942
  processes?: ProcessCreateNestedManyWithoutUserInput
31943
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
31944
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
28820
31945
  }
28821
31946
 
28822
31947
  export type UserUncheckedCreateWithoutEntitiesInput = {
@@ -28836,6 +31961,8 @@ export namespace Prisma {
28836
31961
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
28837
31962
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
28838
31963
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
31964
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
31965
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
28839
31966
  }
28840
31967
 
28841
31968
  export type UserCreateOrConnectWithoutEntitiesInput = {
@@ -28845,6 +31972,7 @@ export namespace Prisma {
28845
31972
 
28846
31973
  export type IntegrationCreateWithoutEntitiesInput = {
28847
31974
  status?: $Enums.IntegrationStatus
31975
+ organizationId?: number | null
28848
31976
  config?: NullableJsonNullValueInput | InputJsonValue
28849
31977
  version?: string | null
28850
31978
  errors?: JsonNullValueInput | InputJsonValue
@@ -28864,6 +31992,7 @@ export namespace Prisma {
28864
31992
  id?: number
28865
31993
  userId?: number | null
28866
31994
  status?: $Enums.IntegrationStatus
31995
+ organizationId?: number | null
28867
31996
  config?: NullableJsonNullValueInput | InputJsonValue
28868
31997
  version?: string | null
28869
31998
  errors?: JsonNullValueInput | InputJsonValue
@@ -29008,6 +32137,8 @@ export namespace Prisma {
29008
32137
  credentials?: CredentialUpdateManyWithoutUserNestedInput
29009
32138
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
29010
32139
  processes?: ProcessUpdateManyWithoutUserNestedInput
32140
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
32141
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
29011
32142
  }
29012
32143
 
29013
32144
  export type UserUncheckedUpdateWithoutEntitiesInput = {
@@ -29027,6 +32158,8 @@ export namespace Prisma {
29027
32158
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
29028
32159
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
29029
32160
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
32161
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
32162
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
29030
32163
  }
29031
32164
 
29032
32165
  export type IntegrationUpsertWithWhereUniqueWithoutEntitiesInput = {
@@ -29142,6 +32275,8 @@ export namespace Prisma {
29142
32275
  credentials?: CredentialCreateNestedManyWithoutUserInput
29143
32276
  entities?: EntityCreateNestedManyWithoutUserInput
29144
32277
  processes?: ProcessCreateNestedManyWithoutUserInput
32278
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
32279
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
29145
32280
  }
29146
32281
 
29147
32282
  export type UserUncheckedCreateWithoutIntegrationsInput = {
@@ -29161,6 +32296,8 @@ export namespace Prisma {
29161
32296
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
29162
32297
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
29163
32298
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
32299
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
32300
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
29164
32301
  }
29165
32302
 
29166
32303
  export type UserCreateOrConnectWithoutIntegrationsInput = {
@@ -29172,6 +32309,7 @@ export namespace Prisma {
29172
32309
  name?: string | null
29173
32310
  moduleName?: string | null
29174
32311
  externalId?: string | null
32312
+ organizationId?: number | null
29175
32313
  data?: JsonNullValueInput | InputJsonValue
29176
32314
  createdAt?: Date | string
29177
32315
  updatedAt?: Date | string
@@ -29189,6 +32327,7 @@ export namespace Prisma {
29189
32327
  name?: string | null
29190
32328
  moduleName?: string | null
29191
32329
  externalId?: string | null
32330
+ organizationId?: number | null
29192
32331
  data?: JsonNullValueInput | InputJsonValue
29193
32332
  createdAt?: Date | string
29194
32333
  updatedAt?: Date | string
@@ -29341,6 +32480,8 @@ export namespace Prisma {
29341
32480
  credentials?: CredentialUpdateManyWithoutUserNestedInput
29342
32481
  entities?: EntityUpdateManyWithoutUserNestedInput
29343
32482
  processes?: ProcessUpdateManyWithoutUserNestedInput
32483
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
32484
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
29344
32485
  }
29345
32486
 
29346
32487
  export type UserUncheckedUpdateWithoutIntegrationsInput = {
@@ -29360,6 +32501,8 @@ export namespace Prisma {
29360
32501
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
29361
32502
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
29362
32503
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
32504
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
32505
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
29363
32506
  }
29364
32507
 
29365
32508
  export type EntityUpsertWithWhereUniqueWithoutIntegrationsInput = {
@@ -29467,6 +32610,7 @@ export namespace Prisma {
29467
32610
 
29468
32611
  export type IntegrationCreateWithoutMappingsInput = {
29469
32612
  status?: $Enums.IntegrationStatus
32613
+ organizationId?: number | null
29470
32614
  config?: NullableJsonNullValueInput | InputJsonValue
29471
32615
  version?: string | null
29472
32616
  errors?: JsonNullValueInput | InputJsonValue
@@ -29486,6 +32630,7 @@ export namespace Prisma {
29486
32630
  id?: number
29487
32631
  userId?: number | null
29488
32632
  status?: $Enums.IntegrationStatus
32633
+ organizationId?: number | null
29489
32634
  config?: NullableJsonNullValueInput | InputJsonValue
29490
32635
  version?: string | null
29491
32636
  errors?: JsonNullValueInput | InputJsonValue
@@ -29518,6 +32663,7 @@ export namespace Prisma {
29518
32663
 
29519
32664
  export type IntegrationUpdateWithoutMappingsInput = {
29520
32665
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32666
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
29521
32667
  config?: NullableJsonNullValueInput | InputJsonValue
29522
32668
  version?: NullableStringFieldUpdateOperationsInput | string | null
29523
32669
  errors?: JsonNullValueInput | InputJsonValue
@@ -29537,6 +32683,7 @@ export namespace Prisma {
29537
32683
  id?: IntFieldUpdateOperationsInput | number
29538
32684
  userId?: NullableIntFieldUpdateOperationsInput | number | null
29539
32685
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32686
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
29540
32687
  config?: NullableJsonNullValueInput | InputJsonValue
29541
32688
  version?: NullableStringFieldUpdateOperationsInput | string | null
29542
32689
  errors?: JsonNullValueInput | InputJsonValue
@@ -29553,6 +32700,7 @@ export namespace Prisma {
29553
32700
 
29554
32701
  export type IntegrationCreateWithoutSyncsInput = {
29555
32702
  status?: $Enums.IntegrationStatus
32703
+ organizationId?: number | null
29556
32704
  config?: NullableJsonNullValueInput | InputJsonValue
29557
32705
  version?: string | null
29558
32706
  errors?: JsonNullValueInput | InputJsonValue
@@ -29572,6 +32720,7 @@ export namespace Prisma {
29572
32720
  id?: number
29573
32721
  userId?: number | null
29574
32722
  status?: $Enums.IntegrationStatus
32723
+ organizationId?: number | null
29575
32724
  config?: NullableJsonNullValueInput | InputJsonValue
29576
32725
  version?: string | null
29577
32726
  errors?: JsonNullValueInput | InputJsonValue
@@ -29595,6 +32744,7 @@ export namespace Prisma {
29595
32744
  name?: string | null
29596
32745
  moduleName?: string | null
29597
32746
  externalId?: string | null
32747
+ organizationId?: number | null
29598
32748
  data?: JsonNullValueInput | InputJsonValue
29599
32749
  createdAt?: Date | string
29600
32750
  updatedAt?: Date | string
@@ -29612,6 +32762,7 @@ export namespace Prisma {
29612
32762
  name?: string | null
29613
32763
  moduleName?: string | null
29614
32764
  externalId?: string | null
32765
+ organizationId?: number | null
29615
32766
  data?: JsonNullValueInput | InputJsonValue
29616
32767
  createdAt?: Date | string
29617
32768
  updatedAt?: Date | string
@@ -29661,6 +32812,7 @@ export namespace Prisma {
29661
32812
 
29662
32813
  export type IntegrationUpdateWithoutSyncsInput = {
29663
32814
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32815
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
29664
32816
  config?: NullableJsonNullValueInput | InputJsonValue
29665
32817
  version?: NullableStringFieldUpdateOperationsInput | string | null
29666
32818
  errors?: JsonNullValueInput | InputJsonValue
@@ -29680,6 +32832,7 @@ export namespace Prisma {
29680
32832
  id?: IntFieldUpdateOperationsInput | number
29681
32833
  userId?: NullableIntFieldUpdateOperationsInput | number | null
29682
32834
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32835
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
29683
32836
  config?: NullableJsonNullValueInput | InputJsonValue
29684
32837
  version?: NullableStringFieldUpdateOperationsInput | string | null
29685
32838
  errors?: JsonNullValueInput | InputJsonValue
@@ -29750,6 +32903,7 @@ export namespace Prisma {
29750
32903
  name?: string | null
29751
32904
  moduleName?: string | null
29752
32905
  externalId?: string | null
32906
+ organizationId?: number | null
29753
32907
  data?: JsonNullValueInput | InputJsonValue
29754
32908
  createdAt?: Date | string
29755
32909
  updatedAt?: Date | string
@@ -29767,6 +32921,7 @@ export namespace Prisma {
29767
32921
  name?: string | null
29768
32922
  moduleName?: string | null
29769
32923
  externalId?: string | null
32924
+ organizationId?: number | null
29770
32925
  data?: JsonNullValueInput | InputJsonValue
29771
32926
  createdAt?: Date | string
29772
32927
  updatedAt?: Date | string
@@ -29821,6 +32976,7 @@ export namespace Prisma {
29821
32976
  name?: NullableStringFieldUpdateOperationsInput | string | null
29822
32977
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
29823
32978
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32979
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
29824
32980
  data?: JsonNullValueInput | InputJsonValue
29825
32981
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29826
32982
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -29838,6 +32994,7 @@ export namespace Prisma {
29838
32994
  name?: NullableStringFieldUpdateOperationsInput | string | null
29839
32995
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
29840
32996
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32997
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
29841
32998
  data?: JsonNullValueInput | InputJsonValue
29842
32999
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29843
33000
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -29848,6 +33005,7 @@ export namespace Prisma {
29848
33005
 
29849
33006
  export type IntegrationCreateWithoutAssociationsInput = {
29850
33007
  status?: $Enums.IntegrationStatus
33008
+ organizationId?: number | null
29851
33009
  config?: NullableJsonNullValueInput | InputJsonValue
29852
33010
  version?: string | null
29853
33011
  errors?: JsonNullValueInput | InputJsonValue
@@ -29867,6 +33025,7 @@ export namespace Prisma {
29867
33025
  id?: number
29868
33026
  userId?: number | null
29869
33027
  status?: $Enums.IntegrationStatus
33028
+ organizationId?: number | null
29870
33029
  config?: NullableJsonNullValueInput | InputJsonValue
29871
33030
  version?: string | null
29872
33031
  errors?: JsonNullValueInput | InputJsonValue
@@ -29924,6 +33083,7 @@ export namespace Prisma {
29924
33083
 
29925
33084
  export type IntegrationUpdateWithoutAssociationsInput = {
29926
33085
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
33086
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
29927
33087
  config?: NullableJsonNullValueInput | InputJsonValue
29928
33088
  version?: NullableStringFieldUpdateOperationsInput | string | null
29929
33089
  errors?: JsonNullValueInput | InputJsonValue
@@ -29943,6 +33103,7 @@ export namespace Prisma {
29943
33103
  id?: IntFieldUpdateOperationsInput | number
29944
33104
  userId?: NullableIntFieldUpdateOperationsInput | number | null
29945
33105
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
33106
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
29946
33107
  config?: NullableJsonNullValueInput | InputJsonValue
29947
33108
  version?: NullableStringFieldUpdateOperationsInput | string | null
29948
33109
  errors?: JsonNullValueInput | InputJsonValue
@@ -29997,6 +33158,7 @@ export namespace Prisma {
29997
33158
  name?: string | null
29998
33159
  moduleName?: string | null
29999
33160
  externalId?: string | null
33161
+ organizationId?: number | null
30000
33162
  data?: JsonNullValueInput | InputJsonValue
30001
33163
  createdAt?: Date | string
30002
33164
  updatedAt?: Date | string
@@ -30014,6 +33176,7 @@ export namespace Prisma {
30014
33176
  name?: string | null
30015
33177
  moduleName?: string | null
30016
33178
  externalId?: string | null
33179
+ organizationId?: number | null
30017
33180
  data?: JsonNullValueInput | InputJsonValue
30018
33181
  createdAt?: Date | string
30019
33182
  updatedAt?: Date | string
@@ -30068,6 +33231,7 @@ export namespace Prisma {
30068
33231
  name?: NullableStringFieldUpdateOperationsInput | string | null
30069
33232
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
30070
33233
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33234
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30071
33235
  data?: JsonNullValueInput | InputJsonValue
30072
33236
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30073
33237
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30085,6 +33249,7 @@ export namespace Prisma {
30085
33249
  name?: NullableStringFieldUpdateOperationsInput | string | null
30086
33250
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
30087
33251
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33252
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30088
33253
  data?: JsonNullValueInput | InputJsonValue
30089
33254
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30090
33255
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30109,6 +33274,8 @@ export namespace Prisma {
30109
33274
  credentials?: CredentialCreateNestedManyWithoutUserInput
30110
33275
  entities?: EntityCreateNestedManyWithoutUserInput
30111
33276
  integrations?: IntegrationCreateNestedManyWithoutUserInput
33277
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
33278
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
30112
33279
  }
30113
33280
 
30114
33281
  export type UserUncheckedCreateWithoutProcessesInput = {
@@ -30128,6 +33295,8 @@ export namespace Prisma {
30128
33295
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
30129
33296
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
30130
33297
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
33298
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
33299
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
30131
33300
  }
30132
33301
 
30133
33302
  export type UserCreateOrConnectWithoutProcessesInput = {
@@ -30137,6 +33306,7 @@ export namespace Prisma {
30137
33306
 
30138
33307
  export type IntegrationCreateWithoutProcessesInput = {
30139
33308
  status?: $Enums.IntegrationStatus
33309
+ organizationId?: number | null
30140
33310
  config?: NullableJsonNullValueInput | InputJsonValue
30141
33311
  version?: string | null
30142
33312
  errors?: JsonNullValueInput | InputJsonValue
@@ -30156,6 +33326,7 @@ export namespace Prisma {
30156
33326
  id?: number
30157
33327
  userId?: number | null
30158
33328
  status?: $Enums.IntegrationStatus
33329
+ organizationId?: number | null
30159
33330
  config?: NullableJsonNullValueInput | InputJsonValue
30160
33331
  version?: string | null
30161
33332
  errors?: JsonNullValueInput | InputJsonValue
@@ -30271,6 +33442,8 @@ export namespace Prisma {
30271
33442
  credentials?: CredentialUpdateManyWithoutUserNestedInput
30272
33443
  entities?: EntityUpdateManyWithoutUserNestedInput
30273
33444
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
33445
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
33446
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
30274
33447
  }
30275
33448
 
30276
33449
  export type UserUncheckedUpdateWithoutProcessesInput = {
@@ -30290,6 +33463,8 @@ export namespace Prisma {
30290
33463
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
30291
33464
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
30292
33465
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
33466
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
33467
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
30293
33468
  }
30294
33469
 
30295
33470
  export type IntegrationUpsertWithoutProcessesInput = {
@@ -30305,6 +33480,7 @@ export namespace Prisma {
30305
33480
 
30306
33481
  export type IntegrationUpdateWithoutProcessesInput = {
30307
33482
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
33483
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30308
33484
  config?: NullableJsonNullValueInput | InputJsonValue
30309
33485
  version?: NullableStringFieldUpdateOperationsInput | string | null
30310
33486
  errors?: JsonNullValueInput | InputJsonValue
@@ -30324,6 +33500,7 @@ export namespace Prisma {
30324
33500
  id?: IntFieldUpdateOperationsInput | number
30325
33501
  userId?: NullableIntFieldUpdateOperationsInput | number | null
30326
33502
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
33503
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30327
33504
  config?: NullableJsonNullValueInput | InputJsonValue
30328
33505
  version?: NullableStringFieldUpdateOperationsInput | string | null
30329
33506
  errors?: JsonNullValueInput | InputJsonValue
@@ -30518,6 +33695,202 @@ export namespace Prisma {
30518
33695
  updatedAt?: DateTimeFilter<"AdminScriptExecution"> | Date | string
30519
33696
  }
30520
33697
 
33698
+ export type UserCreateWithoutMembershipsInput = {
33699
+ type: $Enums.UserType
33700
+ createdAt?: Date | string
33701
+ updatedAt?: Date | string
33702
+ email?: string | null
33703
+ username?: string | null
33704
+ hashword?: string | null
33705
+ appUserId?: string | null
33706
+ appOrgId?: string | null
33707
+ name?: string | null
33708
+ organization?: UserCreateNestedOneWithoutMembersInput
33709
+ members?: UserCreateNestedManyWithoutOrganizationInput
33710
+ tokens?: TokenCreateNestedManyWithoutUserInput
33711
+ credentials?: CredentialCreateNestedManyWithoutUserInput
33712
+ entities?: EntityCreateNestedManyWithoutUserInput
33713
+ integrations?: IntegrationCreateNestedManyWithoutUserInput
33714
+ processes?: ProcessCreateNestedManyWithoutUserInput
33715
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
33716
+ }
33717
+
33718
+ export type UserUncheckedCreateWithoutMembershipsInput = {
33719
+ id?: number
33720
+ type: $Enums.UserType
33721
+ createdAt?: Date | string
33722
+ updatedAt?: Date | string
33723
+ email?: string | null
33724
+ username?: string | null
33725
+ hashword?: string | null
33726
+ appUserId?: string | null
33727
+ organizationId?: number | null
33728
+ appOrgId?: string | null
33729
+ name?: string | null
33730
+ members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
33731
+ tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
33732
+ credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
33733
+ entities?: EntityUncheckedCreateNestedManyWithoutUserInput
33734
+ integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
33735
+ processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
33736
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
33737
+ }
33738
+
33739
+ export type UserCreateOrConnectWithoutMembershipsInput = {
33740
+ where: UserWhereUniqueInput
33741
+ create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
33742
+ }
33743
+
33744
+ export type UserCreateWithoutOrgMembersInput = {
33745
+ type: $Enums.UserType
33746
+ createdAt?: Date | string
33747
+ updatedAt?: Date | string
33748
+ email?: string | null
33749
+ username?: string | null
33750
+ hashword?: string | null
33751
+ appUserId?: string | null
33752
+ appOrgId?: string | null
33753
+ name?: string | null
33754
+ organization?: UserCreateNestedOneWithoutMembersInput
33755
+ members?: UserCreateNestedManyWithoutOrganizationInput
33756
+ tokens?: TokenCreateNestedManyWithoutUserInput
33757
+ credentials?: CredentialCreateNestedManyWithoutUserInput
33758
+ entities?: EntityCreateNestedManyWithoutUserInput
33759
+ integrations?: IntegrationCreateNestedManyWithoutUserInput
33760
+ processes?: ProcessCreateNestedManyWithoutUserInput
33761
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
33762
+ }
33763
+
33764
+ export type UserUncheckedCreateWithoutOrgMembersInput = {
33765
+ id?: number
33766
+ type: $Enums.UserType
33767
+ createdAt?: Date | string
33768
+ updatedAt?: Date | string
33769
+ email?: string | null
33770
+ username?: string | null
33771
+ hashword?: string | null
33772
+ appUserId?: string | null
33773
+ organizationId?: number | null
33774
+ appOrgId?: string | null
33775
+ name?: string | null
33776
+ members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
33777
+ tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
33778
+ credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
33779
+ entities?: EntityUncheckedCreateNestedManyWithoutUserInput
33780
+ integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
33781
+ processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
33782
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
33783
+ }
33784
+
33785
+ export type UserCreateOrConnectWithoutOrgMembersInput = {
33786
+ where: UserWhereUniqueInput
33787
+ create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
33788
+ }
33789
+
33790
+ export type UserUpsertWithoutMembershipsInput = {
33791
+ update: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
33792
+ create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
33793
+ where?: UserWhereInput
33794
+ }
33795
+
33796
+ export type UserUpdateToOneWithWhereWithoutMembershipsInput = {
33797
+ where?: UserWhereInput
33798
+ data: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
33799
+ }
33800
+
33801
+ export type UserUpdateWithoutMembershipsInput = {
33802
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
33803
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33804
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
33805
+ email?: NullableStringFieldUpdateOperationsInput | string | null
33806
+ username?: NullableStringFieldUpdateOperationsInput | string | null
33807
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
33808
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
33809
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
33810
+ name?: NullableStringFieldUpdateOperationsInput | string | null
33811
+ organization?: UserUpdateOneWithoutMembersNestedInput
33812
+ members?: UserUpdateManyWithoutOrganizationNestedInput
33813
+ tokens?: TokenUpdateManyWithoutUserNestedInput
33814
+ credentials?: CredentialUpdateManyWithoutUserNestedInput
33815
+ entities?: EntityUpdateManyWithoutUserNestedInput
33816
+ integrations?: IntegrationUpdateManyWithoutUserNestedInput
33817
+ processes?: ProcessUpdateManyWithoutUserNestedInput
33818
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
33819
+ }
33820
+
33821
+ export type UserUncheckedUpdateWithoutMembershipsInput = {
33822
+ id?: IntFieldUpdateOperationsInput | number
33823
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
33824
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33825
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
33826
+ email?: NullableStringFieldUpdateOperationsInput | string | null
33827
+ username?: NullableStringFieldUpdateOperationsInput | string | null
33828
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
33829
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
33830
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33831
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
33832
+ name?: NullableStringFieldUpdateOperationsInput | string | null
33833
+ members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
33834
+ tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
33835
+ credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
33836
+ entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
33837
+ integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
33838
+ processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
33839
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
33840
+ }
33841
+
33842
+ export type UserUpsertWithoutOrgMembersInput = {
33843
+ update: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
33844
+ create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
33845
+ where?: UserWhereInput
33846
+ }
33847
+
33848
+ export type UserUpdateToOneWithWhereWithoutOrgMembersInput = {
33849
+ where?: UserWhereInput
33850
+ data: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
33851
+ }
33852
+
33853
+ export type UserUpdateWithoutOrgMembersInput = {
33854
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
33855
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33856
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
33857
+ email?: NullableStringFieldUpdateOperationsInput | string | null
33858
+ username?: NullableStringFieldUpdateOperationsInput | string | null
33859
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
33860
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
33861
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
33862
+ name?: NullableStringFieldUpdateOperationsInput | string | null
33863
+ organization?: UserUpdateOneWithoutMembersNestedInput
33864
+ members?: UserUpdateManyWithoutOrganizationNestedInput
33865
+ tokens?: TokenUpdateManyWithoutUserNestedInput
33866
+ credentials?: CredentialUpdateManyWithoutUserNestedInput
33867
+ entities?: EntityUpdateManyWithoutUserNestedInput
33868
+ integrations?: IntegrationUpdateManyWithoutUserNestedInput
33869
+ processes?: ProcessUpdateManyWithoutUserNestedInput
33870
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
33871
+ }
33872
+
33873
+ export type UserUncheckedUpdateWithoutOrgMembersInput = {
33874
+ id?: IntFieldUpdateOperationsInput | number
33875
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
33876
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33877
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
33878
+ email?: NullableStringFieldUpdateOperationsInput | string | null
33879
+ username?: NullableStringFieldUpdateOperationsInput | string | null
33880
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
33881
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
33882
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33883
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
33884
+ name?: NullableStringFieldUpdateOperationsInput | string | null
33885
+ members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
33886
+ tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
33887
+ credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
33888
+ entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
33889
+ integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
33890
+ processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
33891
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
33892
+ }
33893
+
30521
33894
  export type UserCreateManyOrganizationInput = {
30522
33895
  id?: number
30523
33896
  type: $Enums.UserType
@@ -30553,6 +33926,7 @@ export namespace Prisma {
30553
33926
  name?: string | null
30554
33927
  moduleName?: string | null
30555
33928
  externalId?: string | null
33929
+ organizationId?: number | null
30556
33930
  data?: JsonNullValueInput | InputJsonValue
30557
33931
  createdAt?: Date | string
30558
33932
  updatedAt?: Date | string
@@ -30561,6 +33935,7 @@ export namespace Prisma {
30561
33935
  export type IntegrationCreateManyUserInput = {
30562
33936
  id?: number
30563
33937
  status?: $Enums.IntegrationStatus
33938
+ organizationId?: number | null
30564
33939
  config?: NullableJsonNullValueInput | InputJsonValue
30565
33940
  version?: string | null
30566
33941
  errors?: JsonNullValueInput | InputJsonValue
@@ -30584,6 +33959,20 @@ export namespace Prisma {
30584
33959
  updatedAt?: Date | string
30585
33960
  }
30586
33961
 
33962
+ export type OrganizationMembershipCreateManyIndividualUserInput = {
33963
+ id?: number
33964
+ organizationUserId: number
33965
+ orgRole?: string
33966
+ createdAt?: Date | string
33967
+ }
33968
+
33969
+ export type OrganizationMembershipCreateManyOrganizationUserInput = {
33970
+ id?: number
33971
+ individualUserId: number
33972
+ orgRole?: string
33973
+ createdAt?: Date | string
33974
+ }
33975
+
30587
33976
  export type UserUpdateWithoutOrganizationInput = {
30588
33977
  type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
30589
33978
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30600,6 +33989,8 @@ export namespace Prisma {
30600
33989
  entities?: EntityUpdateManyWithoutUserNestedInput
30601
33990
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
30602
33991
  processes?: ProcessUpdateManyWithoutUserNestedInput
33992
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
33993
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
30603
33994
  }
30604
33995
 
30605
33996
  export type UserUncheckedUpdateWithoutOrganizationInput = {
@@ -30619,6 +34010,8 @@ export namespace Prisma {
30619
34010
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
30620
34011
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
30621
34012
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
34013
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
34014
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
30622
34015
  }
30623
34016
 
30624
34017
  export type UserUncheckedUpdateManyWithoutOrganizationInput = {
@@ -30686,6 +34079,7 @@ export namespace Prisma {
30686
34079
  name?: NullableStringFieldUpdateOperationsInput | string | null
30687
34080
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
30688
34081
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34082
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30689
34083
  data?: JsonNullValueInput | InputJsonValue
30690
34084
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30691
34085
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30702,6 +34096,7 @@ export namespace Prisma {
30702
34096
  name?: NullableStringFieldUpdateOperationsInput | string | null
30703
34097
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
30704
34098
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34099
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30705
34100
  data?: JsonNullValueInput | InputJsonValue
30706
34101
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30707
34102
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30717,6 +34112,7 @@ export namespace Prisma {
30717
34112
  name?: NullableStringFieldUpdateOperationsInput | string | null
30718
34113
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
30719
34114
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34115
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30720
34116
  data?: JsonNullValueInput | InputJsonValue
30721
34117
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30722
34118
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30724,6 +34120,7 @@ export namespace Prisma {
30724
34120
 
30725
34121
  export type IntegrationUpdateWithoutUserInput = {
30726
34122
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
34123
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30727
34124
  config?: NullableJsonNullValueInput | InputJsonValue
30728
34125
  version?: NullableStringFieldUpdateOperationsInput | string | null
30729
34126
  errors?: JsonNullValueInput | InputJsonValue
@@ -30742,6 +34139,7 @@ export namespace Prisma {
30742
34139
  export type IntegrationUncheckedUpdateWithoutUserInput = {
30743
34140
  id?: IntFieldUpdateOperationsInput | number
30744
34141
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
34142
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30745
34143
  config?: NullableJsonNullValueInput | InputJsonValue
30746
34144
  version?: NullableStringFieldUpdateOperationsInput | string | null
30747
34145
  errors?: JsonNullValueInput | InputJsonValue
@@ -30760,6 +34158,7 @@ export namespace Prisma {
30760
34158
  export type IntegrationUncheckedUpdateManyWithoutUserInput = {
30761
34159
  id?: IntFieldUpdateOperationsInput | number
30762
34160
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
34161
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30763
34162
  config?: NullableJsonNullValueInput | InputJsonValue
30764
34163
  version?: NullableStringFieldUpdateOperationsInput | string | null
30765
34164
  errors?: JsonNullValueInput | InputJsonValue
@@ -30810,12 +34209,53 @@ export namespace Prisma {
30810
34209
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
30811
34210
  }
30812
34211
 
34212
+ export type OrganizationMembershipUpdateWithoutIndividualUserInput = {
34213
+ orgRole?: StringFieldUpdateOperationsInput | string
34214
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
34215
+ organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
34216
+ }
34217
+
34218
+ export type OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput = {
34219
+ id?: IntFieldUpdateOperationsInput | number
34220
+ organizationUserId?: IntFieldUpdateOperationsInput | number
34221
+ orgRole?: StringFieldUpdateOperationsInput | string
34222
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
34223
+ }
34224
+
34225
+ export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput = {
34226
+ id?: IntFieldUpdateOperationsInput | number
34227
+ organizationUserId?: IntFieldUpdateOperationsInput | number
34228
+ orgRole?: StringFieldUpdateOperationsInput | string
34229
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
34230
+ }
34231
+
34232
+ export type OrganizationMembershipUpdateWithoutOrganizationUserInput = {
34233
+ orgRole?: StringFieldUpdateOperationsInput | string
34234
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
34235
+ individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
34236
+ }
34237
+
34238
+ export type OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput = {
34239
+ id?: IntFieldUpdateOperationsInput | number
34240
+ individualUserId?: IntFieldUpdateOperationsInput | number
34241
+ orgRole?: StringFieldUpdateOperationsInput | string
34242
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
34243
+ }
34244
+
34245
+ export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput = {
34246
+ id?: IntFieldUpdateOperationsInput | number
34247
+ individualUserId?: IntFieldUpdateOperationsInput | number
34248
+ orgRole?: StringFieldUpdateOperationsInput | string
34249
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
34250
+ }
34251
+
30813
34252
  export type EntityCreateManyCredentialInput = {
30814
34253
  id?: number
30815
34254
  userId?: number | null
30816
34255
  name?: string | null
30817
34256
  moduleName?: string | null
30818
34257
  externalId?: string | null
34258
+ organizationId?: number | null
30819
34259
  data?: JsonNullValueInput | InputJsonValue
30820
34260
  createdAt?: Date | string
30821
34261
  updatedAt?: Date | string
@@ -30825,6 +34265,7 @@ export namespace Prisma {
30825
34265
  name?: NullableStringFieldUpdateOperationsInput | string | null
30826
34266
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
30827
34267
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34268
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30828
34269
  data?: JsonNullValueInput | InputJsonValue
30829
34270
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30830
34271
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30841,6 +34282,7 @@ export namespace Prisma {
30841
34282
  name?: NullableStringFieldUpdateOperationsInput | string | null
30842
34283
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
30843
34284
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34285
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30844
34286
  data?: JsonNullValueInput | InputJsonValue
30845
34287
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30846
34288
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30856,6 +34298,7 @@ export namespace Prisma {
30856
34298
  name?: NullableStringFieldUpdateOperationsInput | string | null
30857
34299
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
30858
34300
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34301
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30859
34302
  data?: JsonNullValueInput | InputJsonValue
30860
34303
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30861
34304
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30878,6 +34321,7 @@ export namespace Prisma {
30878
34321
 
30879
34322
  export type IntegrationUpdateWithoutEntitiesInput = {
30880
34323
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
34324
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30881
34325
  config?: NullableJsonNullValueInput | InputJsonValue
30882
34326
  version?: NullableStringFieldUpdateOperationsInput | string | null
30883
34327
  errors?: JsonNullValueInput | InputJsonValue
@@ -30897,6 +34341,7 @@ export namespace Prisma {
30897
34341
  id?: IntFieldUpdateOperationsInput | number
30898
34342
  userId?: NullableIntFieldUpdateOperationsInput | number | null
30899
34343
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
34344
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30900
34345
  config?: NullableJsonNullValueInput | InputJsonValue
30901
34346
  version?: NullableStringFieldUpdateOperationsInput | string | null
30902
34347
  errors?: JsonNullValueInput | InputJsonValue
@@ -30915,6 +34360,7 @@ export namespace Prisma {
30915
34360
  id?: IntFieldUpdateOperationsInput | number
30916
34361
  userId?: NullableIntFieldUpdateOperationsInput | number | null
30917
34362
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
34363
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
30918
34364
  config?: NullableJsonNullValueInput | InputJsonValue
30919
34365
  version?: NullableStringFieldUpdateOperationsInput | string | null
30920
34366
  errors?: JsonNullValueInput | InputJsonValue
@@ -31028,6 +34474,7 @@ export namespace Prisma {
31028
34474
  name?: NullableStringFieldUpdateOperationsInput | string | null
31029
34475
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31030
34476
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34477
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31031
34478
  data?: JsonNullValueInput | InputJsonValue
31032
34479
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31033
34480
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31045,6 +34492,7 @@ export namespace Prisma {
31045
34492
  name?: NullableStringFieldUpdateOperationsInput | string | null
31046
34493
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31047
34494
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34495
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31048
34496
  data?: JsonNullValueInput | InputJsonValue
31049
34497
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31050
34498
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31060,6 +34508,7 @@ export namespace Prisma {
31060
34508
  name?: NullableStringFieldUpdateOperationsInput | string | null
31061
34509
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31062
34510
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34511
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31063
34512
  data?: JsonNullValueInput | InputJsonValue
31064
34513
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31065
34514
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31182,6 +34631,7 @@ export namespace Prisma {
31182
34631
  name?: NullableStringFieldUpdateOperationsInput | string | null
31183
34632
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31184
34633
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34634
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31185
34635
  data?: JsonNullValueInput | InputJsonValue
31186
34636
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31187
34637
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31199,6 +34649,7 @@ export namespace Prisma {
31199
34649
  name?: NullableStringFieldUpdateOperationsInput | string | null
31200
34650
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31201
34651
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34652
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31202
34653
  data?: JsonNullValueInput | InputJsonValue
31203
34654
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31204
34655
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31214,6 +34665,7 @@ export namespace Prisma {
31214
34665
  name?: NullableStringFieldUpdateOperationsInput | string | null
31215
34666
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31216
34667
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
34668
+ organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31217
34669
  data?: JsonNullValueInput | InputJsonValue
31218
34670
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31219
34671
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string