@friggframework/core 2.0.0--canary.680.b3ca7f1.0 → 2.0.0--canary.681.d970b9e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -11
- package/CLAUDE.md +2 -0
- package/README.md +69 -0
- package/application/commands/integration-commands.js +8 -18
- package/application/commands/user-commands.js +17 -5
- package/application/index.js +2 -6
- package/database/documentdb-utils.js +6 -1
- package/database/encryption/README.md +0 -2
- package/database/encryption/encryption-schema-registry.js +12 -35
- package/database/encryption/field-encryption-service.js +3 -30
- package/database/unique-violation.js +25 -0
- package/generated/prisma-mongodb/edge.js +13 -4
- package/generated/prisma-mongodb/index-browser.js +10 -1
- package/generated/prisma-mongodb/index.d.ts +1922 -94
- package/generated/prisma-mongodb/index.js +13 -4
- package/generated/prisma-mongodb/package.json +1 -1
- package/generated/prisma-mongodb/schema.prisma +32 -0
- package/generated/prisma-mongodb/wasm.js +13 -4
- package/generated/prisma-postgresql/edge.js +13 -4
- package/generated/prisma-postgresql/index-browser.js +10 -1
- package/generated/prisma-postgresql/index.d.ts +2053 -83
- package/generated/prisma-postgresql/index.js +13 -4
- package/generated/prisma-postgresql/package.json +1 -1
- package/generated/prisma-postgresql/schema.prisma +29 -0
- package/generated/prisma-postgresql/wasm.js +13 -4
- package/handlers/app-definition-loader.js +13 -16
- package/handlers/backend-utils.js +25 -31
- package/handlers/routers/health.js +4 -1
- package/handlers/workers/integration-defined-workers.js +2 -5
- package/index.js +14 -4
- package/integrations/index.js +4 -0
- package/integrations/integration-router.js +31 -40
- package/integrations/utils/map-integration-dto.js +15 -1
- package/management-api/openapi/components.js +1 -7
- package/management-api/openapi/v2-operations.js +0 -4
- package/management-api/v2/dependencies.js +9 -28
- package/modules/index.js +0 -6
- package/modules/use-cases/entity-types.js +12 -36
- package/package.json +6 -5
- package/prisma-mongodb/schema.prisma +32 -0
- package/prisma-postgresql/migrations/20261015000000_add_organization_membership/migration.sql +26 -0
- package/prisma-postgresql/schema.prisma +29 -0
- package/types/index.d.ts +1 -1
- package/types/user/index.d.ts +117 -0
- package/user/adopter-jwt-config.js +177 -0
- package/user/adopter-jwt-errors.js +59 -0
- package/user/adopter-token-verifier.js +122 -0
- package/user/app-user-helpers.js +97 -0
- package/user/create-user-authentication.js +64 -0
- package/user/membership.js +51 -0
- package/user/repositories/organization-membership-record.js +19 -0
- package/user/repositories/organization-membership-repository-documentdb.js +104 -0
- package/user/repositories/organization-membership-repository-factory.js +42 -0
- package/user/repositories/organization-membership-repository-interface.js +57 -0
- package/user/repositories/organization-membership-repository-mongo.js +13 -0
- package/user/repositories/organization-membership-repository-postgres.js +29 -0
- package/user/repositories/organization-membership-repository-prisma.js +81 -0
- package/user/repositories/user-repository-documentdb.js +23 -0
- package/user/repositories/user-repository-interface.js +18 -0
- package/user/repositories/user-repository-mongo.js +24 -0
- package/user/repositories/user-repository-postgres.js +18 -0
- package/user/tests/doubles/adopter-jwt-fixtures.js +220 -0
- package/user/use-cases/ensure-organization-membership.js +92 -0
- package/user/use-cases/find-individual-users-by-organization.js +54 -0
- package/user/use-cases/get-user-from-adopter-jwt.js +86 -125
- package/user/use-cases/get-user-from-x-frigg-headers.js +74 -85
- package/user/user.js +27 -0
- package/database/encryption/test-support/fake-ciphertext.js +0 -15
- package/modules/entity-type-registry.js +0 -311
- package/types/modules/index.d.ts +0 -58
|
@@ -110,6 +110,13 @@ 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>
|
|
113
120
|
|
|
114
121
|
/**
|
|
115
122
|
* Enums
|
|
@@ -459,6 +466,16 @@ export class PrismaClient<
|
|
|
459
466
|
* ```
|
|
460
467
|
*/
|
|
461
468
|
get authorizationSession(): Prisma.AuthorizationSessionDelegate<ExtArgs, ClientOptions>;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* `prisma.organizationMembership`: Exposes CRUD operations for the **OrganizationMembership** model.
|
|
472
|
+
* Example usage:
|
|
473
|
+
* ```ts
|
|
474
|
+
* // Fetch zero or more OrganizationMemberships
|
|
475
|
+
* const organizationMemberships = await prisma.organizationMembership.findMany()
|
|
476
|
+
* ```
|
|
477
|
+
*/
|
|
478
|
+
get organizationMembership(): Prisma.OrganizationMembershipDelegate<ExtArgs, ClientOptions>;
|
|
462
479
|
}
|
|
463
480
|
|
|
464
481
|
export namespace Prisma {
|
|
@@ -916,7 +933,8 @@ export namespace Prisma {
|
|
|
916
933
|
AdminScriptExecution: 'AdminScriptExecution',
|
|
917
934
|
ScriptSchedule: 'ScriptSchedule',
|
|
918
935
|
UsageCounter: 'UsageCounter',
|
|
919
|
-
AuthorizationSession: 'AuthorizationSession'
|
|
936
|
+
AuthorizationSession: 'AuthorizationSession',
|
|
937
|
+
OrganizationMembership: 'OrganizationMembership'
|
|
920
938
|
};
|
|
921
939
|
|
|
922
940
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -935,7 +953,7 @@ export namespace Prisma {
|
|
|
935
953
|
omit: GlobalOmitOptions
|
|
936
954
|
}
|
|
937
955
|
meta: {
|
|
938
|
-
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession"
|
|
956
|
+
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession" | "organizationMembership"
|
|
939
957
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
940
958
|
}
|
|
941
959
|
model: {
|
|
@@ -2197,6 +2215,80 @@ export namespace Prisma {
|
|
|
2197
2215
|
}
|
|
2198
2216
|
}
|
|
2199
2217
|
}
|
|
2218
|
+
OrganizationMembership: {
|
|
2219
|
+
payload: Prisma.$OrganizationMembershipPayload<ExtArgs>
|
|
2220
|
+
fields: Prisma.OrganizationMembershipFieldRefs
|
|
2221
|
+
operations: {
|
|
2222
|
+
findUnique: {
|
|
2223
|
+
args: Prisma.OrganizationMembershipFindUniqueArgs<ExtArgs>
|
|
2224
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload> | null
|
|
2225
|
+
}
|
|
2226
|
+
findUniqueOrThrow: {
|
|
2227
|
+
args: Prisma.OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>
|
|
2228
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
|
|
2229
|
+
}
|
|
2230
|
+
findFirst: {
|
|
2231
|
+
args: Prisma.OrganizationMembershipFindFirstArgs<ExtArgs>
|
|
2232
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload> | null
|
|
2233
|
+
}
|
|
2234
|
+
findFirstOrThrow: {
|
|
2235
|
+
args: Prisma.OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>
|
|
2236
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
|
|
2237
|
+
}
|
|
2238
|
+
findMany: {
|
|
2239
|
+
args: Prisma.OrganizationMembershipFindManyArgs<ExtArgs>
|
|
2240
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
|
|
2241
|
+
}
|
|
2242
|
+
create: {
|
|
2243
|
+
args: Prisma.OrganizationMembershipCreateArgs<ExtArgs>
|
|
2244
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
|
|
2245
|
+
}
|
|
2246
|
+
createMany: {
|
|
2247
|
+
args: Prisma.OrganizationMembershipCreateManyArgs<ExtArgs>
|
|
2248
|
+
result: BatchPayload
|
|
2249
|
+
}
|
|
2250
|
+
createManyAndReturn: {
|
|
2251
|
+
args: Prisma.OrganizationMembershipCreateManyAndReturnArgs<ExtArgs>
|
|
2252
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
|
|
2253
|
+
}
|
|
2254
|
+
delete: {
|
|
2255
|
+
args: Prisma.OrganizationMembershipDeleteArgs<ExtArgs>
|
|
2256
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
|
|
2257
|
+
}
|
|
2258
|
+
update: {
|
|
2259
|
+
args: Prisma.OrganizationMembershipUpdateArgs<ExtArgs>
|
|
2260
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
|
|
2261
|
+
}
|
|
2262
|
+
deleteMany: {
|
|
2263
|
+
args: Prisma.OrganizationMembershipDeleteManyArgs<ExtArgs>
|
|
2264
|
+
result: BatchPayload
|
|
2265
|
+
}
|
|
2266
|
+
updateMany: {
|
|
2267
|
+
args: Prisma.OrganizationMembershipUpdateManyArgs<ExtArgs>
|
|
2268
|
+
result: BatchPayload
|
|
2269
|
+
}
|
|
2270
|
+
updateManyAndReturn: {
|
|
2271
|
+
args: Prisma.OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs>
|
|
2272
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
|
|
2273
|
+
}
|
|
2274
|
+
upsert: {
|
|
2275
|
+
args: Prisma.OrganizationMembershipUpsertArgs<ExtArgs>
|
|
2276
|
+
result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
|
|
2277
|
+
}
|
|
2278
|
+
aggregate: {
|
|
2279
|
+
args: Prisma.OrganizationMembershipAggregateArgs<ExtArgs>
|
|
2280
|
+
result: $Utils.Optional<AggregateOrganizationMembership>
|
|
2281
|
+
}
|
|
2282
|
+
groupBy: {
|
|
2283
|
+
args: Prisma.OrganizationMembershipGroupByArgs<ExtArgs>
|
|
2284
|
+
result: $Utils.Optional<OrganizationMembershipGroupByOutputType>[]
|
|
2285
|
+
}
|
|
2286
|
+
count: {
|
|
2287
|
+
args: Prisma.OrganizationMembershipCountArgs<ExtArgs>
|
|
2288
|
+
result: $Utils.Optional<OrganizationMembershipCountAggregateOutputType> | number
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2200
2292
|
}
|
|
2201
2293
|
} & {
|
|
2202
2294
|
other: {
|
|
@@ -2310,6 +2402,7 @@ export namespace Prisma {
|
|
|
2310
2402
|
scriptSchedule?: ScriptScheduleOmit
|
|
2311
2403
|
usageCounter?: UsageCounterOmit
|
|
2312
2404
|
authorizationSession?: AuthorizationSessionOmit
|
|
2405
|
+
organizationMembership?: OrganizationMembershipOmit
|
|
2313
2406
|
}
|
|
2314
2407
|
|
|
2315
2408
|
/* Types for Logging */
|
|
@@ -2396,6 +2489,8 @@ export namespace Prisma {
|
|
|
2396
2489
|
entities: number
|
|
2397
2490
|
integrations: number
|
|
2398
2491
|
processes: number
|
|
2492
|
+
memberships: number
|
|
2493
|
+
orgMembers: number
|
|
2399
2494
|
}
|
|
2400
2495
|
|
|
2401
2496
|
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
@@ -2405,6 +2500,8 @@ export namespace Prisma {
|
|
|
2405
2500
|
entities?: boolean | UserCountOutputTypeCountEntitiesArgs
|
|
2406
2501
|
integrations?: boolean | UserCountOutputTypeCountIntegrationsArgs
|
|
2407
2502
|
processes?: boolean | UserCountOutputTypeCountProcessesArgs
|
|
2503
|
+
memberships?: boolean | UserCountOutputTypeCountMembershipsArgs
|
|
2504
|
+
orgMembers?: boolean | UserCountOutputTypeCountOrgMembersArgs
|
|
2408
2505
|
}
|
|
2409
2506
|
|
|
2410
2507
|
// Custom InputTypes
|
|
@@ -2460,6 +2557,20 @@ export namespace Prisma {
|
|
|
2460
2557
|
where?: ProcessWhereInput
|
|
2461
2558
|
}
|
|
2462
2559
|
|
|
2560
|
+
/**
|
|
2561
|
+
* UserCountOutputType without action
|
|
2562
|
+
*/
|
|
2563
|
+
export type UserCountOutputTypeCountMembershipsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2564
|
+
where?: OrganizationMembershipWhereInput
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* UserCountOutputType without action
|
|
2569
|
+
*/
|
|
2570
|
+
export type UserCountOutputTypeCountOrgMembersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2571
|
+
where?: OrganizationMembershipWhereInput
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2463
2574
|
|
|
2464
2575
|
/**
|
|
2465
2576
|
* Count Type CredentialCountOutputType
|
|
@@ -3011,6 +3122,8 @@ export namespace Prisma {
|
|
|
3011
3122
|
entities?: boolean | User$entitiesArgs<ExtArgs>
|
|
3012
3123
|
integrations?: boolean | User$integrationsArgs<ExtArgs>
|
|
3013
3124
|
processes?: boolean | User$processesArgs<ExtArgs>
|
|
3125
|
+
memberships?: boolean | User$membershipsArgs<ExtArgs>
|
|
3126
|
+
orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
|
|
3014
3127
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
3015
3128
|
}, ExtArgs["result"]["user"]>
|
|
3016
3129
|
|
|
@@ -3067,6 +3180,8 @@ export namespace Prisma {
|
|
|
3067
3180
|
entities?: boolean | User$entitiesArgs<ExtArgs>
|
|
3068
3181
|
integrations?: boolean | User$integrationsArgs<ExtArgs>
|
|
3069
3182
|
processes?: boolean | User$processesArgs<ExtArgs>
|
|
3183
|
+
memberships?: boolean | User$membershipsArgs<ExtArgs>
|
|
3184
|
+
orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
|
|
3070
3185
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
3071
3186
|
}
|
|
3072
3187
|
export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
@@ -3086,6 +3201,8 @@ export namespace Prisma {
|
|
|
3086
3201
|
entities: Prisma.$EntityPayload<ExtArgs>[]
|
|
3087
3202
|
integrations: Prisma.$IntegrationPayload<ExtArgs>[]
|
|
3088
3203
|
processes: Prisma.$ProcessPayload<ExtArgs>[]
|
|
3204
|
+
memberships: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
|
|
3205
|
+
orgMembers: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
|
|
3089
3206
|
}
|
|
3090
3207
|
scalars: $Extensions.GetPayloadResult<{
|
|
3091
3208
|
id: number
|
|
@@ -3500,6 +3617,8 @@ export namespace Prisma {
|
|
|
3500
3617
|
entities<T extends User$entitiesArgs<ExtArgs> = {}>(args?: Subset<T, User$entitiesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
3501
3618
|
integrations<T extends User$integrationsArgs<ExtArgs> = {}>(args?: Subset<T, User$integrationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
3502
3619
|
processes<T extends User$processesArgs<ExtArgs> = {}>(args?: Subset<T, User$processesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
3620
|
+
memberships<T extends User$membershipsArgs<ExtArgs> = {}>(args?: Subset<T, User$membershipsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
3621
|
+
orgMembers<T extends User$orgMembersArgs<ExtArgs> = {}>(args?: Subset<T, User$orgMembersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
3503
3622
|
/**
|
|
3504
3623
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
3505
3624
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -4098,6 +4217,54 @@ export namespace Prisma {
|
|
|
4098
4217
|
distinct?: ProcessScalarFieldEnum | ProcessScalarFieldEnum[]
|
|
4099
4218
|
}
|
|
4100
4219
|
|
|
4220
|
+
/**
|
|
4221
|
+
* User.memberships
|
|
4222
|
+
*/
|
|
4223
|
+
export type User$membershipsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
4224
|
+
/**
|
|
4225
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
4226
|
+
*/
|
|
4227
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
4228
|
+
/**
|
|
4229
|
+
* Omit specific fields from the OrganizationMembership
|
|
4230
|
+
*/
|
|
4231
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
4232
|
+
/**
|
|
4233
|
+
* Choose, which related nodes to fetch as well
|
|
4234
|
+
*/
|
|
4235
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
4236
|
+
where?: OrganizationMembershipWhereInput
|
|
4237
|
+
orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
|
|
4238
|
+
cursor?: OrganizationMembershipWhereUniqueInput
|
|
4239
|
+
take?: number
|
|
4240
|
+
skip?: number
|
|
4241
|
+
distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4244
|
+
/**
|
|
4245
|
+
* User.orgMembers
|
|
4246
|
+
*/
|
|
4247
|
+
export type User$orgMembersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
4248
|
+
/**
|
|
4249
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
4250
|
+
*/
|
|
4251
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
4252
|
+
/**
|
|
4253
|
+
* Omit specific fields from the OrganizationMembership
|
|
4254
|
+
*/
|
|
4255
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
4256
|
+
/**
|
|
4257
|
+
* Choose, which related nodes to fetch as well
|
|
4258
|
+
*/
|
|
4259
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
4260
|
+
where?: OrganizationMembershipWhereInput
|
|
4261
|
+
orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
|
|
4262
|
+
cursor?: OrganizationMembershipWhereUniqueInput
|
|
4263
|
+
take?: number
|
|
4264
|
+
skip?: number
|
|
4265
|
+
distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
|
|
4266
|
+
}
|
|
4267
|
+
|
|
4101
4268
|
/**
|
|
4102
4269
|
* User without action
|
|
4103
4270
|
*/
|
|
@@ -22342,110 +22509,1218 @@ export namespace Prisma {
|
|
|
22342
22509
|
|
|
22343
22510
|
|
|
22344
22511
|
/**
|
|
22345
|
-
*
|
|
22512
|
+
* Model OrganizationMembership
|
|
22346
22513
|
*/
|
|
22347
22514
|
|
|
22348
|
-
export
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
|
|
22353
|
-
|
|
22515
|
+
export type AggregateOrganizationMembership = {
|
|
22516
|
+
_count: OrganizationMembershipCountAggregateOutputType | null
|
|
22517
|
+
_avg: OrganizationMembershipAvgAggregateOutputType | null
|
|
22518
|
+
_sum: OrganizationMembershipSumAggregateOutputType | null
|
|
22519
|
+
_min: OrganizationMembershipMinAggregateOutputType | null
|
|
22520
|
+
_max: OrganizationMembershipMaxAggregateOutputType | null
|
|
22521
|
+
}
|
|
22354
22522
|
|
|
22355
|
-
export type
|
|
22523
|
+
export type OrganizationMembershipAvgAggregateOutputType = {
|
|
22524
|
+
id: number | null
|
|
22525
|
+
individualUserId: number | null
|
|
22526
|
+
organizationUserId: number | null
|
|
22527
|
+
}
|
|
22356
22528
|
|
|
22529
|
+
export type OrganizationMembershipSumAggregateOutputType = {
|
|
22530
|
+
id: number | null
|
|
22531
|
+
individualUserId: number | null
|
|
22532
|
+
organizationUserId: number | null
|
|
22533
|
+
}
|
|
22357
22534
|
|
|
22358
|
-
export
|
|
22359
|
-
id:
|
|
22360
|
-
|
|
22361
|
-
|
|
22362
|
-
|
|
22363
|
-
|
|
22364
|
-
|
|
22365
|
-
hashword: 'hashword',
|
|
22366
|
-
appUserId: 'appUserId',
|
|
22367
|
-
organizationId: 'organizationId',
|
|
22368
|
-
appOrgId: 'appOrgId',
|
|
22369
|
-
name: 'name'
|
|
22370
|
-
};
|
|
22535
|
+
export type OrganizationMembershipMinAggregateOutputType = {
|
|
22536
|
+
id: number | null
|
|
22537
|
+
individualUserId: number | null
|
|
22538
|
+
organizationUserId: number | null
|
|
22539
|
+
orgRole: string | null
|
|
22540
|
+
createdAt: Date | null
|
|
22541
|
+
}
|
|
22371
22542
|
|
|
22372
|
-
export type
|
|
22543
|
+
export type OrganizationMembershipMaxAggregateOutputType = {
|
|
22544
|
+
id: number | null
|
|
22545
|
+
individualUserId: number | null
|
|
22546
|
+
organizationUserId: number | null
|
|
22547
|
+
orgRole: string | null
|
|
22548
|
+
createdAt: Date | null
|
|
22549
|
+
}
|
|
22373
22550
|
|
|
22551
|
+
export type OrganizationMembershipCountAggregateOutputType = {
|
|
22552
|
+
id: number
|
|
22553
|
+
individualUserId: number
|
|
22554
|
+
organizationUserId: number
|
|
22555
|
+
orgRole: number
|
|
22556
|
+
createdAt: number
|
|
22557
|
+
_all: number
|
|
22558
|
+
}
|
|
22374
22559
|
|
|
22375
|
-
export const TokenScalarFieldEnum: {
|
|
22376
|
-
id: 'id',
|
|
22377
|
-
token: 'token',
|
|
22378
|
-
created: 'created',
|
|
22379
|
-
expires: 'expires',
|
|
22380
|
-
userId: 'userId'
|
|
22381
|
-
};
|
|
22382
22560
|
|
|
22383
|
-
export type
|
|
22561
|
+
export type OrganizationMembershipAvgAggregateInputType = {
|
|
22562
|
+
id?: true
|
|
22563
|
+
individualUserId?: true
|
|
22564
|
+
organizationUserId?: true
|
|
22565
|
+
}
|
|
22384
22566
|
|
|
22567
|
+
export type OrganizationMembershipSumAggregateInputType = {
|
|
22568
|
+
id?: true
|
|
22569
|
+
individualUserId?: true
|
|
22570
|
+
organizationUserId?: true
|
|
22571
|
+
}
|
|
22385
22572
|
|
|
22386
|
-
export
|
|
22387
|
-
id
|
|
22388
|
-
|
|
22389
|
-
|
|
22390
|
-
|
|
22391
|
-
|
|
22392
|
-
|
|
22393
|
-
updatedAt: 'updatedAt'
|
|
22394
|
-
};
|
|
22573
|
+
export type OrganizationMembershipMinAggregateInputType = {
|
|
22574
|
+
id?: true
|
|
22575
|
+
individualUserId?: true
|
|
22576
|
+
organizationUserId?: true
|
|
22577
|
+
orgRole?: true
|
|
22578
|
+
createdAt?: true
|
|
22579
|
+
}
|
|
22395
22580
|
|
|
22396
|
-
export type
|
|
22581
|
+
export type OrganizationMembershipMaxAggregateInputType = {
|
|
22582
|
+
id?: true
|
|
22583
|
+
individualUserId?: true
|
|
22584
|
+
organizationUserId?: true
|
|
22585
|
+
orgRole?: true
|
|
22586
|
+
createdAt?: true
|
|
22587
|
+
}
|
|
22397
22588
|
|
|
22589
|
+
export type OrganizationMembershipCountAggregateInputType = {
|
|
22590
|
+
id?: true
|
|
22591
|
+
individualUserId?: true
|
|
22592
|
+
organizationUserId?: true
|
|
22593
|
+
orgRole?: true
|
|
22594
|
+
createdAt?: true
|
|
22595
|
+
_all?: true
|
|
22596
|
+
}
|
|
22398
22597
|
|
|
22399
|
-
export
|
|
22400
|
-
|
|
22401
|
-
|
|
22402
|
-
|
|
22403
|
-
|
|
22404
|
-
|
|
22405
|
-
|
|
22406
|
-
|
|
22407
|
-
|
|
22408
|
-
|
|
22409
|
-
|
|
22598
|
+
export type OrganizationMembershipAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22599
|
+
/**
|
|
22600
|
+
* Filter which OrganizationMembership to aggregate.
|
|
22601
|
+
*/
|
|
22602
|
+
where?: OrganizationMembershipWhereInput
|
|
22603
|
+
/**
|
|
22604
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
22605
|
+
*
|
|
22606
|
+
* Determine the order of OrganizationMemberships to fetch.
|
|
22607
|
+
*/
|
|
22608
|
+
orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
|
|
22609
|
+
/**
|
|
22610
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
22611
|
+
*
|
|
22612
|
+
* Sets the start position
|
|
22613
|
+
*/
|
|
22614
|
+
cursor?: OrganizationMembershipWhereUniqueInput
|
|
22615
|
+
/**
|
|
22616
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
22617
|
+
*
|
|
22618
|
+
* Take `±n` OrganizationMemberships from the position of the cursor.
|
|
22619
|
+
*/
|
|
22620
|
+
take?: number
|
|
22621
|
+
/**
|
|
22622
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
22623
|
+
*
|
|
22624
|
+
* Skip the first `n` OrganizationMemberships.
|
|
22625
|
+
*/
|
|
22626
|
+
skip?: number
|
|
22627
|
+
/**
|
|
22628
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
22629
|
+
*
|
|
22630
|
+
* Count returned OrganizationMemberships
|
|
22631
|
+
**/
|
|
22632
|
+
_count?: true | OrganizationMembershipCountAggregateInputType
|
|
22633
|
+
/**
|
|
22634
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
22635
|
+
*
|
|
22636
|
+
* Select which fields to average
|
|
22637
|
+
**/
|
|
22638
|
+
_avg?: OrganizationMembershipAvgAggregateInputType
|
|
22639
|
+
/**
|
|
22640
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
22641
|
+
*
|
|
22642
|
+
* Select which fields to sum
|
|
22643
|
+
**/
|
|
22644
|
+
_sum?: OrganizationMembershipSumAggregateInputType
|
|
22645
|
+
/**
|
|
22646
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
22647
|
+
*
|
|
22648
|
+
* Select which fields to find the minimum value
|
|
22649
|
+
**/
|
|
22650
|
+
_min?: OrganizationMembershipMinAggregateInputType
|
|
22651
|
+
/**
|
|
22652
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
22653
|
+
*
|
|
22654
|
+
* Select which fields to find the maximum value
|
|
22655
|
+
**/
|
|
22656
|
+
_max?: OrganizationMembershipMaxAggregateInputType
|
|
22657
|
+
}
|
|
22410
22658
|
|
|
22411
|
-
export type
|
|
22659
|
+
export type GetOrganizationMembershipAggregateType<T extends OrganizationMembershipAggregateArgs> = {
|
|
22660
|
+
[P in keyof T & keyof AggregateOrganizationMembership]: P extends '_count' | 'count'
|
|
22661
|
+
? T[P] extends true
|
|
22662
|
+
? number
|
|
22663
|
+
: GetScalarType<T[P], AggregateOrganizationMembership[P]>
|
|
22664
|
+
: GetScalarType<T[P], AggregateOrganizationMembership[P]>
|
|
22665
|
+
}
|
|
22412
22666
|
|
|
22413
22667
|
|
|
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',
|
|
22422
|
-
info: 'info',
|
|
22423
|
-
logs: 'logs',
|
|
22424
|
-
createdAt: 'createdAt',
|
|
22425
|
-
updatedAt: 'updatedAt'
|
|
22426
|
-
};
|
|
22427
22668
|
|
|
22428
|
-
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
22429
22669
|
|
|
22670
|
+
export type OrganizationMembershipGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22671
|
+
where?: OrganizationMembershipWhereInput
|
|
22672
|
+
orderBy?: OrganizationMembershipOrderByWithAggregationInput | OrganizationMembershipOrderByWithAggregationInput[]
|
|
22673
|
+
by: OrganizationMembershipScalarFieldEnum[] | OrganizationMembershipScalarFieldEnum
|
|
22674
|
+
having?: OrganizationMembershipScalarWhereWithAggregatesInput
|
|
22675
|
+
take?: number
|
|
22676
|
+
skip?: number
|
|
22677
|
+
_count?: OrganizationMembershipCountAggregateInputType | true
|
|
22678
|
+
_avg?: OrganizationMembershipAvgAggregateInputType
|
|
22679
|
+
_sum?: OrganizationMembershipSumAggregateInputType
|
|
22680
|
+
_min?: OrganizationMembershipMinAggregateInputType
|
|
22681
|
+
_max?: OrganizationMembershipMaxAggregateInputType
|
|
22682
|
+
}
|
|
22430
22683
|
|
|
22431
|
-
export
|
|
22432
|
-
id:
|
|
22433
|
-
|
|
22434
|
-
|
|
22435
|
-
|
|
22436
|
-
createdAt:
|
|
22437
|
-
|
|
22438
|
-
|
|
22684
|
+
export type OrganizationMembershipGroupByOutputType = {
|
|
22685
|
+
id: number
|
|
22686
|
+
individualUserId: number
|
|
22687
|
+
organizationUserId: number
|
|
22688
|
+
orgRole: string
|
|
22689
|
+
createdAt: Date
|
|
22690
|
+
_count: OrganizationMembershipCountAggregateOutputType | null
|
|
22691
|
+
_avg: OrganizationMembershipAvgAggregateOutputType | null
|
|
22692
|
+
_sum: OrganizationMembershipSumAggregateOutputType | null
|
|
22693
|
+
_min: OrganizationMembershipMinAggregateOutputType | null
|
|
22694
|
+
_max: OrganizationMembershipMaxAggregateOutputType | null
|
|
22695
|
+
}
|
|
22439
22696
|
|
|
22440
|
-
|
|
22697
|
+
type GetOrganizationMembershipGroupByPayload<T extends OrganizationMembershipGroupByArgs> = Prisma.PrismaPromise<
|
|
22698
|
+
Array<
|
|
22699
|
+
PickEnumerable<OrganizationMembershipGroupByOutputType, T['by']> &
|
|
22700
|
+
{
|
|
22701
|
+
[P in ((keyof T) & (keyof OrganizationMembershipGroupByOutputType))]: P extends '_count'
|
|
22702
|
+
? T[P] extends boolean
|
|
22703
|
+
? number
|
|
22704
|
+
: GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
|
|
22705
|
+
: GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
|
|
22706
|
+
}
|
|
22707
|
+
>
|
|
22708
|
+
>
|
|
22441
22709
|
|
|
22442
22710
|
|
|
22443
|
-
export
|
|
22444
|
-
id
|
|
22445
|
-
|
|
22446
|
-
|
|
22447
|
-
|
|
22448
|
-
|
|
22711
|
+
export type OrganizationMembershipSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
22712
|
+
id?: boolean
|
|
22713
|
+
individualUserId?: boolean
|
|
22714
|
+
organizationUserId?: boolean
|
|
22715
|
+
orgRole?: boolean
|
|
22716
|
+
createdAt?: boolean
|
|
22717
|
+
individualUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22718
|
+
organizationUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22719
|
+
}, ExtArgs["result"]["organizationMembership"]>
|
|
22720
|
+
|
|
22721
|
+
export type OrganizationMembershipSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
22722
|
+
id?: boolean
|
|
22723
|
+
individualUserId?: boolean
|
|
22724
|
+
organizationUserId?: boolean
|
|
22725
|
+
orgRole?: boolean
|
|
22726
|
+
createdAt?: boolean
|
|
22727
|
+
individualUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22728
|
+
organizationUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22729
|
+
}, ExtArgs["result"]["organizationMembership"]>
|
|
22730
|
+
|
|
22731
|
+
export type OrganizationMembershipSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
22732
|
+
id?: boolean
|
|
22733
|
+
individualUserId?: boolean
|
|
22734
|
+
organizationUserId?: boolean
|
|
22735
|
+
orgRole?: boolean
|
|
22736
|
+
createdAt?: boolean
|
|
22737
|
+
individualUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22738
|
+
organizationUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22739
|
+
}, ExtArgs["result"]["organizationMembership"]>
|
|
22740
|
+
|
|
22741
|
+
export type OrganizationMembershipSelectScalar = {
|
|
22742
|
+
id?: boolean
|
|
22743
|
+
individualUserId?: boolean
|
|
22744
|
+
organizationUserId?: boolean
|
|
22745
|
+
orgRole?: boolean
|
|
22746
|
+
createdAt?: boolean
|
|
22747
|
+
}
|
|
22748
|
+
|
|
22749
|
+
export type OrganizationMembershipOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "individualUserId" | "organizationUserId" | "orgRole" | "createdAt", ExtArgs["result"]["organizationMembership"]>
|
|
22750
|
+
export type OrganizationMembershipInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22751
|
+
individualUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22752
|
+
organizationUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22753
|
+
}
|
|
22754
|
+
export type OrganizationMembershipIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22755
|
+
individualUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22756
|
+
organizationUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22757
|
+
}
|
|
22758
|
+
export type OrganizationMembershipIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22759
|
+
individualUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22760
|
+
organizationUser?: boolean | UserDefaultArgs<ExtArgs>
|
|
22761
|
+
}
|
|
22762
|
+
|
|
22763
|
+
export type $OrganizationMembershipPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22764
|
+
name: "OrganizationMembership"
|
|
22765
|
+
objects: {
|
|
22766
|
+
individualUser: Prisma.$UserPayload<ExtArgs>
|
|
22767
|
+
organizationUser: Prisma.$UserPayload<ExtArgs>
|
|
22768
|
+
}
|
|
22769
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
22770
|
+
id: number
|
|
22771
|
+
individualUserId: number
|
|
22772
|
+
organizationUserId: number
|
|
22773
|
+
orgRole: string
|
|
22774
|
+
createdAt: Date
|
|
22775
|
+
}, ExtArgs["result"]["organizationMembership"]>
|
|
22776
|
+
composites: {}
|
|
22777
|
+
}
|
|
22778
|
+
|
|
22779
|
+
type OrganizationMembershipGetPayload<S extends boolean | null | undefined | OrganizationMembershipDefaultArgs> = $Result.GetResult<Prisma.$OrganizationMembershipPayload, S>
|
|
22780
|
+
|
|
22781
|
+
type OrganizationMembershipCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
22782
|
+
Omit<OrganizationMembershipFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
22783
|
+
select?: OrganizationMembershipCountAggregateInputType | true
|
|
22784
|
+
}
|
|
22785
|
+
|
|
22786
|
+
export interface OrganizationMembershipDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
22787
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['OrganizationMembership'], meta: { name: 'OrganizationMembership' } }
|
|
22788
|
+
/**
|
|
22789
|
+
* Find zero or one OrganizationMembership that matches the filter.
|
|
22790
|
+
* @param {OrganizationMembershipFindUniqueArgs} args - Arguments to find a OrganizationMembership
|
|
22791
|
+
* @example
|
|
22792
|
+
* // Get one OrganizationMembership
|
|
22793
|
+
* const organizationMembership = await prisma.organizationMembership.findUnique({
|
|
22794
|
+
* where: {
|
|
22795
|
+
* // ... provide filter here
|
|
22796
|
+
* }
|
|
22797
|
+
* })
|
|
22798
|
+
*/
|
|
22799
|
+
findUnique<T extends OrganizationMembershipFindUniqueArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
22800
|
+
|
|
22801
|
+
/**
|
|
22802
|
+
* Find one OrganizationMembership that matches the filter or throw an error with `error.code='P2025'`
|
|
22803
|
+
* if no matches were found.
|
|
22804
|
+
* @param {OrganizationMembershipFindUniqueOrThrowArgs} args - Arguments to find a OrganizationMembership
|
|
22805
|
+
* @example
|
|
22806
|
+
* // Get one OrganizationMembership
|
|
22807
|
+
* const organizationMembership = await prisma.organizationMembership.findUniqueOrThrow({
|
|
22808
|
+
* where: {
|
|
22809
|
+
* // ... provide filter here
|
|
22810
|
+
* }
|
|
22811
|
+
* })
|
|
22812
|
+
*/
|
|
22813
|
+
findUniqueOrThrow<T extends OrganizationMembershipFindUniqueOrThrowArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
22814
|
+
|
|
22815
|
+
/**
|
|
22816
|
+
* Find the first OrganizationMembership that matches the filter.
|
|
22817
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
22818
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
22819
|
+
* @param {OrganizationMembershipFindFirstArgs} args - Arguments to find a OrganizationMembership
|
|
22820
|
+
* @example
|
|
22821
|
+
* // Get one OrganizationMembership
|
|
22822
|
+
* const organizationMembership = await prisma.organizationMembership.findFirst({
|
|
22823
|
+
* where: {
|
|
22824
|
+
* // ... provide filter here
|
|
22825
|
+
* }
|
|
22826
|
+
* })
|
|
22827
|
+
*/
|
|
22828
|
+
findFirst<T extends OrganizationMembershipFindFirstArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
22829
|
+
|
|
22830
|
+
/**
|
|
22831
|
+
* Find the first OrganizationMembership that matches the filter or
|
|
22832
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
22833
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
22834
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
22835
|
+
* @param {OrganizationMembershipFindFirstOrThrowArgs} args - Arguments to find a OrganizationMembership
|
|
22836
|
+
* @example
|
|
22837
|
+
* // Get one OrganizationMembership
|
|
22838
|
+
* const organizationMembership = await prisma.organizationMembership.findFirstOrThrow({
|
|
22839
|
+
* where: {
|
|
22840
|
+
* // ... provide filter here
|
|
22841
|
+
* }
|
|
22842
|
+
* })
|
|
22843
|
+
*/
|
|
22844
|
+
findFirstOrThrow<T extends OrganizationMembershipFindFirstOrThrowArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
22845
|
+
|
|
22846
|
+
/**
|
|
22847
|
+
* Find zero or more OrganizationMemberships that matches the filter.
|
|
22848
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
22849
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
22850
|
+
* @param {OrganizationMembershipFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
22851
|
+
* @example
|
|
22852
|
+
* // Get all OrganizationMemberships
|
|
22853
|
+
* const organizationMemberships = await prisma.organizationMembership.findMany()
|
|
22854
|
+
*
|
|
22855
|
+
* // Get first 10 OrganizationMemberships
|
|
22856
|
+
* const organizationMemberships = await prisma.organizationMembership.findMany({ take: 10 })
|
|
22857
|
+
*
|
|
22858
|
+
* // Only select the `id`
|
|
22859
|
+
* const organizationMembershipWithIdOnly = await prisma.organizationMembership.findMany({ select: { id: true } })
|
|
22860
|
+
*
|
|
22861
|
+
*/
|
|
22862
|
+
findMany<T extends OrganizationMembershipFindManyArgs>(args?: SelectSubset<T, OrganizationMembershipFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
22863
|
+
|
|
22864
|
+
/**
|
|
22865
|
+
* Create a OrganizationMembership.
|
|
22866
|
+
* @param {OrganizationMembershipCreateArgs} args - Arguments to create a OrganizationMembership.
|
|
22867
|
+
* @example
|
|
22868
|
+
* // Create one OrganizationMembership
|
|
22869
|
+
* const OrganizationMembership = await prisma.organizationMembership.create({
|
|
22870
|
+
* data: {
|
|
22871
|
+
* // ... data to create a OrganizationMembership
|
|
22872
|
+
* }
|
|
22873
|
+
* })
|
|
22874
|
+
*
|
|
22875
|
+
*/
|
|
22876
|
+
create<T extends OrganizationMembershipCreateArgs>(args: SelectSubset<T, OrganizationMembershipCreateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
22877
|
+
|
|
22878
|
+
/**
|
|
22879
|
+
* Create many OrganizationMemberships.
|
|
22880
|
+
* @param {OrganizationMembershipCreateManyArgs} args - Arguments to create many OrganizationMemberships.
|
|
22881
|
+
* @example
|
|
22882
|
+
* // Create many OrganizationMemberships
|
|
22883
|
+
* const organizationMembership = await prisma.organizationMembership.createMany({
|
|
22884
|
+
* data: [
|
|
22885
|
+
* // ... provide data here
|
|
22886
|
+
* ]
|
|
22887
|
+
* })
|
|
22888
|
+
*
|
|
22889
|
+
*/
|
|
22890
|
+
createMany<T extends OrganizationMembershipCreateManyArgs>(args?: SelectSubset<T, OrganizationMembershipCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
22891
|
+
|
|
22892
|
+
/**
|
|
22893
|
+
* Create many OrganizationMemberships and returns the data saved in the database.
|
|
22894
|
+
* @param {OrganizationMembershipCreateManyAndReturnArgs} args - Arguments to create many OrganizationMemberships.
|
|
22895
|
+
* @example
|
|
22896
|
+
* // Create many OrganizationMemberships
|
|
22897
|
+
* const organizationMembership = await prisma.organizationMembership.createManyAndReturn({
|
|
22898
|
+
* data: [
|
|
22899
|
+
* // ... provide data here
|
|
22900
|
+
* ]
|
|
22901
|
+
* })
|
|
22902
|
+
*
|
|
22903
|
+
* // Create many OrganizationMemberships and only return the `id`
|
|
22904
|
+
* const organizationMembershipWithIdOnly = await prisma.organizationMembership.createManyAndReturn({
|
|
22905
|
+
* select: { id: true },
|
|
22906
|
+
* data: [
|
|
22907
|
+
* // ... provide data here
|
|
22908
|
+
* ]
|
|
22909
|
+
* })
|
|
22910
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
22911
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
22912
|
+
*
|
|
22913
|
+
*/
|
|
22914
|
+
createManyAndReturn<T extends OrganizationMembershipCreateManyAndReturnArgs>(args?: SelectSubset<T, OrganizationMembershipCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
22915
|
+
|
|
22916
|
+
/**
|
|
22917
|
+
* Delete a OrganizationMembership.
|
|
22918
|
+
* @param {OrganizationMembershipDeleteArgs} args - Arguments to delete one OrganizationMembership.
|
|
22919
|
+
* @example
|
|
22920
|
+
* // Delete one OrganizationMembership
|
|
22921
|
+
* const OrganizationMembership = await prisma.organizationMembership.delete({
|
|
22922
|
+
* where: {
|
|
22923
|
+
* // ... filter to delete one OrganizationMembership
|
|
22924
|
+
* }
|
|
22925
|
+
* })
|
|
22926
|
+
*
|
|
22927
|
+
*/
|
|
22928
|
+
delete<T extends OrganizationMembershipDeleteArgs>(args: SelectSubset<T, OrganizationMembershipDeleteArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
22929
|
+
|
|
22930
|
+
/**
|
|
22931
|
+
* Update one OrganizationMembership.
|
|
22932
|
+
* @param {OrganizationMembershipUpdateArgs} args - Arguments to update one OrganizationMembership.
|
|
22933
|
+
* @example
|
|
22934
|
+
* // Update one OrganizationMembership
|
|
22935
|
+
* const organizationMembership = await prisma.organizationMembership.update({
|
|
22936
|
+
* where: {
|
|
22937
|
+
* // ... provide filter here
|
|
22938
|
+
* },
|
|
22939
|
+
* data: {
|
|
22940
|
+
* // ... provide data here
|
|
22941
|
+
* }
|
|
22942
|
+
* })
|
|
22943
|
+
*
|
|
22944
|
+
*/
|
|
22945
|
+
update<T extends OrganizationMembershipUpdateArgs>(args: SelectSubset<T, OrganizationMembershipUpdateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
22946
|
+
|
|
22947
|
+
/**
|
|
22948
|
+
* Delete zero or more OrganizationMemberships.
|
|
22949
|
+
* @param {OrganizationMembershipDeleteManyArgs} args - Arguments to filter OrganizationMemberships to delete.
|
|
22950
|
+
* @example
|
|
22951
|
+
* // Delete a few OrganizationMemberships
|
|
22952
|
+
* const { count } = await prisma.organizationMembership.deleteMany({
|
|
22953
|
+
* where: {
|
|
22954
|
+
* // ... provide filter here
|
|
22955
|
+
* }
|
|
22956
|
+
* })
|
|
22957
|
+
*
|
|
22958
|
+
*/
|
|
22959
|
+
deleteMany<T extends OrganizationMembershipDeleteManyArgs>(args?: SelectSubset<T, OrganizationMembershipDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
22960
|
+
|
|
22961
|
+
/**
|
|
22962
|
+
* Update zero or more OrganizationMemberships.
|
|
22963
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
22964
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
22965
|
+
* @param {OrganizationMembershipUpdateManyArgs} args - Arguments to update one or more rows.
|
|
22966
|
+
* @example
|
|
22967
|
+
* // Update many OrganizationMemberships
|
|
22968
|
+
* const organizationMembership = await prisma.organizationMembership.updateMany({
|
|
22969
|
+
* where: {
|
|
22970
|
+
* // ... provide filter here
|
|
22971
|
+
* },
|
|
22972
|
+
* data: {
|
|
22973
|
+
* // ... provide data here
|
|
22974
|
+
* }
|
|
22975
|
+
* })
|
|
22976
|
+
*
|
|
22977
|
+
*/
|
|
22978
|
+
updateMany<T extends OrganizationMembershipUpdateManyArgs>(args: SelectSubset<T, OrganizationMembershipUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
22979
|
+
|
|
22980
|
+
/**
|
|
22981
|
+
* Update zero or more OrganizationMemberships and returns the data updated in the database.
|
|
22982
|
+
* @param {OrganizationMembershipUpdateManyAndReturnArgs} args - Arguments to update many OrganizationMemberships.
|
|
22983
|
+
* @example
|
|
22984
|
+
* // Update many OrganizationMemberships
|
|
22985
|
+
* const organizationMembership = await prisma.organizationMembership.updateManyAndReturn({
|
|
22986
|
+
* where: {
|
|
22987
|
+
* // ... provide filter here
|
|
22988
|
+
* },
|
|
22989
|
+
* data: [
|
|
22990
|
+
* // ... provide data here
|
|
22991
|
+
* ]
|
|
22992
|
+
* })
|
|
22993
|
+
*
|
|
22994
|
+
* // Update zero or more OrganizationMemberships and only return the `id`
|
|
22995
|
+
* const organizationMembershipWithIdOnly = await prisma.organizationMembership.updateManyAndReturn({
|
|
22996
|
+
* select: { id: true },
|
|
22997
|
+
* where: {
|
|
22998
|
+
* // ... provide filter here
|
|
22999
|
+
* },
|
|
23000
|
+
* data: [
|
|
23001
|
+
* // ... provide data here
|
|
23002
|
+
* ]
|
|
23003
|
+
* })
|
|
23004
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
23005
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
23006
|
+
*
|
|
23007
|
+
*/
|
|
23008
|
+
updateManyAndReturn<T extends OrganizationMembershipUpdateManyAndReturnArgs>(args: SelectSubset<T, OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
23009
|
+
|
|
23010
|
+
/**
|
|
23011
|
+
* Create or update one OrganizationMembership.
|
|
23012
|
+
* @param {OrganizationMembershipUpsertArgs} args - Arguments to update or create a OrganizationMembership.
|
|
23013
|
+
* @example
|
|
23014
|
+
* // Update or create a OrganizationMembership
|
|
23015
|
+
* const organizationMembership = await prisma.organizationMembership.upsert({
|
|
23016
|
+
* create: {
|
|
23017
|
+
* // ... data to create a OrganizationMembership
|
|
23018
|
+
* },
|
|
23019
|
+
* update: {
|
|
23020
|
+
* // ... in case it already exists, update
|
|
23021
|
+
* },
|
|
23022
|
+
* where: {
|
|
23023
|
+
* // ... the filter for the OrganizationMembership we want to update
|
|
23024
|
+
* }
|
|
23025
|
+
* })
|
|
23026
|
+
*/
|
|
23027
|
+
upsert<T extends OrganizationMembershipUpsertArgs>(args: SelectSubset<T, OrganizationMembershipUpsertArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
23028
|
+
|
|
23029
|
+
|
|
23030
|
+
/**
|
|
23031
|
+
* Count the number of OrganizationMemberships.
|
|
23032
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
23033
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
23034
|
+
* @param {OrganizationMembershipCountArgs} args - Arguments to filter OrganizationMemberships to count.
|
|
23035
|
+
* @example
|
|
23036
|
+
* // Count the number of OrganizationMemberships
|
|
23037
|
+
* const count = await prisma.organizationMembership.count({
|
|
23038
|
+
* where: {
|
|
23039
|
+
* // ... the filter for the OrganizationMemberships we want to count
|
|
23040
|
+
* }
|
|
23041
|
+
* })
|
|
23042
|
+
**/
|
|
23043
|
+
count<T extends OrganizationMembershipCountArgs>(
|
|
23044
|
+
args?: Subset<T, OrganizationMembershipCountArgs>,
|
|
23045
|
+
): Prisma.PrismaPromise<
|
|
23046
|
+
T extends $Utils.Record<'select', any>
|
|
23047
|
+
? T['select'] extends true
|
|
23048
|
+
? number
|
|
23049
|
+
: GetScalarType<T['select'], OrganizationMembershipCountAggregateOutputType>
|
|
23050
|
+
: number
|
|
23051
|
+
>
|
|
23052
|
+
|
|
23053
|
+
/**
|
|
23054
|
+
* Allows you to perform aggregations operations on a OrganizationMembership.
|
|
23055
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
23056
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
23057
|
+
* @param {OrganizationMembershipAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
23058
|
+
* @example
|
|
23059
|
+
* // Ordered by age ascending
|
|
23060
|
+
* // Where email contains prisma.io
|
|
23061
|
+
* // Limited to the 10 users
|
|
23062
|
+
* const aggregations = await prisma.user.aggregate({
|
|
23063
|
+
* _avg: {
|
|
23064
|
+
* age: true,
|
|
23065
|
+
* },
|
|
23066
|
+
* where: {
|
|
23067
|
+
* email: {
|
|
23068
|
+
* contains: "prisma.io",
|
|
23069
|
+
* },
|
|
23070
|
+
* },
|
|
23071
|
+
* orderBy: {
|
|
23072
|
+
* age: "asc",
|
|
23073
|
+
* },
|
|
23074
|
+
* take: 10,
|
|
23075
|
+
* })
|
|
23076
|
+
**/
|
|
23077
|
+
aggregate<T extends OrganizationMembershipAggregateArgs>(args: Subset<T, OrganizationMembershipAggregateArgs>): Prisma.PrismaPromise<GetOrganizationMembershipAggregateType<T>>
|
|
23078
|
+
|
|
23079
|
+
/**
|
|
23080
|
+
* Group by OrganizationMembership.
|
|
23081
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
23082
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
23083
|
+
* @param {OrganizationMembershipGroupByArgs} args - Group by arguments.
|
|
23084
|
+
* @example
|
|
23085
|
+
* // Group by city, order by createdAt, get count
|
|
23086
|
+
* const result = await prisma.user.groupBy({
|
|
23087
|
+
* by: ['city', 'createdAt'],
|
|
23088
|
+
* orderBy: {
|
|
23089
|
+
* createdAt: true
|
|
23090
|
+
* },
|
|
23091
|
+
* _count: {
|
|
23092
|
+
* _all: true
|
|
23093
|
+
* },
|
|
23094
|
+
* })
|
|
23095
|
+
*
|
|
23096
|
+
**/
|
|
23097
|
+
groupBy<
|
|
23098
|
+
T extends OrganizationMembershipGroupByArgs,
|
|
23099
|
+
HasSelectOrTake extends Or<
|
|
23100
|
+
Extends<'skip', Keys<T>>,
|
|
23101
|
+
Extends<'take', Keys<T>>
|
|
23102
|
+
>,
|
|
23103
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
23104
|
+
? { orderBy: OrganizationMembershipGroupByArgs['orderBy'] }
|
|
23105
|
+
: { orderBy?: OrganizationMembershipGroupByArgs['orderBy'] },
|
|
23106
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
23107
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
23108
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
23109
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
23110
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
23111
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
23112
|
+
InputErrors extends ByEmpty extends True
|
|
23113
|
+
? `Error: "by" must not be empty.`
|
|
23114
|
+
: HavingValid extends False
|
|
23115
|
+
? {
|
|
23116
|
+
[P in HavingFields]: P extends ByFields
|
|
23117
|
+
? never
|
|
23118
|
+
: P extends string
|
|
23119
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
23120
|
+
: [
|
|
23121
|
+
Error,
|
|
23122
|
+
'Field ',
|
|
23123
|
+
P,
|
|
23124
|
+
` in "having" needs to be provided in "by"`,
|
|
23125
|
+
]
|
|
23126
|
+
}[HavingFields]
|
|
23127
|
+
: 'take' extends Keys<T>
|
|
23128
|
+
? 'orderBy' extends Keys<T>
|
|
23129
|
+
? ByValid extends True
|
|
23130
|
+
? {}
|
|
23131
|
+
: {
|
|
23132
|
+
[P in OrderFields]: P extends ByFields
|
|
23133
|
+
? never
|
|
23134
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
23135
|
+
}[OrderFields]
|
|
23136
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
23137
|
+
: 'skip' extends Keys<T>
|
|
23138
|
+
? 'orderBy' extends Keys<T>
|
|
23139
|
+
? ByValid extends True
|
|
23140
|
+
? {}
|
|
23141
|
+
: {
|
|
23142
|
+
[P in OrderFields]: P extends ByFields
|
|
23143
|
+
? never
|
|
23144
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
23145
|
+
}[OrderFields]
|
|
23146
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
23147
|
+
: ByValid extends True
|
|
23148
|
+
? {}
|
|
23149
|
+
: {
|
|
23150
|
+
[P in OrderFields]: P extends ByFields
|
|
23151
|
+
? never
|
|
23152
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
23153
|
+
}[OrderFields]
|
|
23154
|
+
>(args: SubsetIntersection<T, OrganizationMembershipGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationMembershipGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
23155
|
+
/**
|
|
23156
|
+
* Fields of the OrganizationMembership model
|
|
23157
|
+
*/
|
|
23158
|
+
readonly fields: OrganizationMembershipFieldRefs;
|
|
23159
|
+
}
|
|
23160
|
+
|
|
23161
|
+
/**
|
|
23162
|
+
* The delegate class that acts as a "Promise-like" for OrganizationMembership.
|
|
23163
|
+
* Why is this prefixed with `Prisma__`?
|
|
23164
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
23165
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
23166
|
+
*/
|
|
23167
|
+
export interface Prisma__OrganizationMembershipClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
23168
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
23169
|
+
individualUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
23170
|
+
organizationUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
23171
|
+
/**
|
|
23172
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
23173
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
23174
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
23175
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
23176
|
+
*/
|
|
23177
|
+
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>
|
|
23178
|
+
/**
|
|
23179
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
23180
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
23181
|
+
* @returns A Promise for the completion of the callback.
|
|
23182
|
+
*/
|
|
23183
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
23184
|
+
/**
|
|
23185
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
23186
|
+
* resolved value cannot be modified from the callback.
|
|
23187
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
23188
|
+
* @returns A Promise for the completion of the callback.
|
|
23189
|
+
*/
|
|
23190
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
23191
|
+
}
|
|
23192
|
+
|
|
23193
|
+
|
|
23194
|
+
|
|
23195
|
+
|
|
23196
|
+
/**
|
|
23197
|
+
* Fields of the OrganizationMembership model
|
|
23198
|
+
*/
|
|
23199
|
+
interface OrganizationMembershipFieldRefs {
|
|
23200
|
+
readonly id: FieldRef<"OrganizationMembership", 'Int'>
|
|
23201
|
+
readonly individualUserId: FieldRef<"OrganizationMembership", 'Int'>
|
|
23202
|
+
readonly organizationUserId: FieldRef<"OrganizationMembership", 'Int'>
|
|
23203
|
+
readonly orgRole: FieldRef<"OrganizationMembership", 'String'>
|
|
23204
|
+
readonly createdAt: FieldRef<"OrganizationMembership", 'DateTime'>
|
|
23205
|
+
}
|
|
23206
|
+
|
|
23207
|
+
|
|
23208
|
+
// Custom InputTypes
|
|
23209
|
+
/**
|
|
23210
|
+
* OrganizationMembership findUnique
|
|
23211
|
+
*/
|
|
23212
|
+
export type OrganizationMembershipFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23213
|
+
/**
|
|
23214
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23215
|
+
*/
|
|
23216
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23217
|
+
/**
|
|
23218
|
+
* Omit specific fields from the OrganizationMembership
|
|
23219
|
+
*/
|
|
23220
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23221
|
+
/**
|
|
23222
|
+
* Choose, which related nodes to fetch as well
|
|
23223
|
+
*/
|
|
23224
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23225
|
+
/**
|
|
23226
|
+
* Filter, which OrganizationMembership to fetch.
|
|
23227
|
+
*/
|
|
23228
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
23229
|
+
}
|
|
23230
|
+
|
|
23231
|
+
/**
|
|
23232
|
+
* OrganizationMembership findUniqueOrThrow
|
|
23233
|
+
*/
|
|
23234
|
+
export type OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23235
|
+
/**
|
|
23236
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23237
|
+
*/
|
|
23238
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23239
|
+
/**
|
|
23240
|
+
* Omit specific fields from the OrganizationMembership
|
|
23241
|
+
*/
|
|
23242
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23243
|
+
/**
|
|
23244
|
+
* Choose, which related nodes to fetch as well
|
|
23245
|
+
*/
|
|
23246
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23247
|
+
/**
|
|
23248
|
+
* Filter, which OrganizationMembership to fetch.
|
|
23249
|
+
*/
|
|
23250
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
23251
|
+
}
|
|
23252
|
+
|
|
23253
|
+
/**
|
|
23254
|
+
* OrganizationMembership findFirst
|
|
23255
|
+
*/
|
|
23256
|
+
export type OrganizationMembershipFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23257
|
+
/**
|
|
23258
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23259
|
+
*/
|
|
23260
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23261
|
+
/**
|
|
23262
|
+
* Omit specific fields from the OrganizationMembership
|
|
23263
|
+
*/
|
|
23264
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23265
|
+
/**
|
|
23266
|
+
* Choose, which related nodes to fetch as well
|
|
23267
|
+
*/
|
|
23268
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23269
|
+
/**
|
|
23270
|
+
* Filter, which OrganizationMembership to fetch.
|
|
23271
|
+
*/
|
|
23272
|
+
where?: OrganizationMembershipWhereInput
|
|
23273
|
+
/**
|
|
23274
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
23275
|
+
*
|
|
23276
|
+
* Determine the order of OrganizationMemberships to fetch.
|
|
23277
|
+
*/
|
|
23278
|
+
orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
|
|
23279
|
+
/**
|
|
23280
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
23281
|
+
*
|
|
23282
|
+
* Sets the position for searching for OrganizationMemberships.
|
|
23283
|
+
*/
|
|
23284
|
+
cursor?: OrganizationMembershipWhereUniqueInput
|
|
23285
|
+
/**
|
|
23286
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
23287
|
+
*
|
|
23288
|
+
* Take `±n` OrganizationMemberships from the position of the cursor.
|
|
23289
|
+
*/
|
|
23290
|
+
take?: number
|
|
23291
|
+
/**
|
|
23292
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
23293
|
+
*
|
|
23294
|
+
* Skip the first `n` OrganizationMemberships.
|
|
23295
|
+
*/
|
|
23296
|
+
skip?: number
|
|
23297
|
+
/**
|
|
23298
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
23299
|
+
*
|
|
23300
|
+
* Filter by unique combinations of OrganizationMemberships.
|
|
23301
|
+
*/
|
|
23302
|
+
distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
|
|
23303
|
+
}
|
|
23304
|
+
|
|
23305
|
+
/**
|
|
23306
|
+
* OrganizationMembership findFirstOrThrow
|
|
23307
|
+
*/
|
|
23308
|
+
export type OrganizationMembershipFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23309
|
+
/**
|
|
23310
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23311
|
+
*/
|
|
23312
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23313
|
+
/**
|
|
23314
|
+
* Omit specific fields from the OrganizationMembership
|
|
23315
|
+
*/
|
|
23316
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23317
|
+
/**
|
|
23318
|
+
* Choose, which related nodes to fetch as well
|
|
23319
|
+
*/
|
|
23320
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23321
|
+
/**
|
|
23322
|
+
* Filter, which OrganizationMembership to fetch.
|
|
23323
|
+
*/
|
|
23324
|
+
where?: OrganizationMembershipWhereInput
|
|
23325
|
+
/**
|
|
23326
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
23327
|
+
*
|
|
23328
|
+
* Determine the order of OrganizationMemberships to fetch.
|
|
23329
|
+
*/
|
|
23330
|
+
orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
|
|
23331
|
+
/**
|
|
23332
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
23333
|
+
*
|
|
23334
|
+
* Sets the position for searching for OrganizationMemberships.
|
|
23335
|
+
*/
|
|
23336
|
+
cursor?: OrganizationMembershipWhereUniqueInput
|
|
23337
|
+
/**
|
|
23338
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
23339
|
+
*
|
|
23340
|
+
* Take `±n` OrganizationMemberships from the position of the cursor.
|
|
23341
|
+
*/
|
|
23342
|
+
take?: number
|
|
23343
|
+
/**
|
|
23344
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
23345
|
+
*
|
|
23346
|
+
* Skip the first `n` OrganizationMemberships.
|
|
23347
|
+
*/
|
|
23348
|
+
skip?: number
|
|
23349
|
+
/**
|
|
23350
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
23351
|
+
*
|
|
23352
|
+
* Filter by unique combinations of OrganizationMemberships.
|
|
23353
|
+
*/
|
|
23354
|
+
distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
|
|
23355
|
+
}
|
|
23356
|
+
|
|
23357
|
+
/**
|
|
23358
|
+
* OrganizationMembership findMany
|
|
23359
|
+
*/
|
|
23360
|
+
export type OrganizationMembershipFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23361
|
+
/**
|
|
23362
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23363
|
+
*/
|
|
23364
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23365
|
+
/**
|
|
23366
|
+
* Omit specific fields from the OrganizationMembership
|
|
23367
|
+
*/
|
|
23368
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23369
|
+
/**
|
|
23370
|
+
* Choose, which related nodes to fetch as well
|
|
23371
|
+
*/
|
|
23372
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23373
|
+
/**
|
|
23374
|
+
* Filter, which OrganizationMemberships to fetch.
|
|
23375
|
+
*/
|
|
23376
|
+
where?: OrganizationMembershipWhereInput
|
|
23377
|
+
/**
|
|
23378
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
23379
|
+
*
|
|
23380
|
+
* Determine the order of OrganizationMemberships to fetch.
|
|
23381
|
+
*/
|
|
23382
|
+
orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
|
|
23383
|
+
/**
|
|
23384
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
23385
|
+
*
|
|
23386
|
+
* Sets the position for listing OrganizationMemberships.
|
|
23387
|
+
*/
|
|
23388
|
+
cursor?: OrganizationMembershipWhereUniqueInput
|
|
23389
|
+
/**
|
|
23390
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
23391
|
+
*
|
|
23392
|
+
* Take `±n` OrganizationMemberships from the position of the cursor.
|
|
23393
|
+
*/
|
|
23394
|
+
take?: number
|
|
23395
|
+
/**
|
|
23396
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
23397
|
+
*
|
|
23398
|
+
* Skip the first `n` OrganizationMemberships.
|
|
23399
|
+
*/
|
|
23400
|
+
skip?: number
|
|
23401
|
+
distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
|
|
23402
|
+
}
|
|
23403
|
+
|
|
23404
|
+
/**
|
|
23405
|
+
* OrganizationMembership create
|
|
23406
|
+
*/
|
|
23407
|
+
export type OrganizationMembershipCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23408
|
+
/**
|
|
23409
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23410
|
+
*/
|
|
23411
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23412
|
+
/**
|
|
23413
|
+
* Omit specific fields from the OrganizationMembership
|
|
23414
|
+
*/
|
|
23415
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23416
|
+
/**
|
|
23417
|
+
* Choose, which related nodes to fetch as well
|
|
23418
|
+
*/
|
|
23419
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23420
|
+
/**
|
|
23421
|
+
* The data needed to create a OrganizationMembership.
|
|
23422
|
+
*/
|
|
23423
|
+
data: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
|
|
23424
|
+
}
|
|
23425
|
+
|
|
23426
|
+
/**
|
|
23427
|
+
* OrganizationMembership createMany
|
|
23428
|
+
*/
|
|
23429
|
+
export type OrganizationMembershipCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23430
|
+
/**
|
|
23431
|
+
* The data used to create many OrganizationMemberships.
|
|
23432
|
+
*/
|
|
23433
|
+
data: OrganizationMembershipCreateManyInput | OrganizationMembershipCreateManyInput[]
|
|
23434
|
+
skipDuplicates?: boolean
|
|
23435
|
+
}
|
|
23436
|
+
|
|
23437
|
+
/**
|
|
23438
|
+
* OrganizationMembership createManyAndReturn
|
|
23439
|
+
*/
|
|
23440
|
+
export type OrganizationMembershipCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23441
|
+
/**
|
|
23442
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23443
|
+
*/
|
|
23444
|
+
select?: OrganizationMembershipSelectCreateManyAndReturn<ExtArgs> | null
|
|
23445
|
+
/**
|
|
23446
|
+
* Omit specific fields from the OrganizationMembership
|
|
23447
|
+
*/
|
|
23448
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23449
|
+
/**
|
|
23450
|
+
* The data used to create many OrganizationMemberships.
|
|
23451
|
+
*/
|
|
23452
|
+
data: OrganizationMembershipCreateManyInput | OrganizationMembershipCreateManyInput[]
|
|
23453
|
+
skipDuplicates?: boolean
|
|
23454
|
+
/**
|
|
23455
|
+
* Choose, which related nodes to fetch as well
|
|
23456
|
+
*/
|
|
23457
|
+
include?: OrganizationMembershipIncludeCreateManyAndReturn<ExtArgs> | null
|
|
23458
|
+
}
|
|
23459
|
+
|
|
23460
|
+
/**
|
|
23461
|
+
* OrganizationMembership update
|
|
23462
|
+
*/
|
|
23463
|
+
export type OrganizationMembershipUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23464
|
+
/**
|
|
23465
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23466
|
+
*/
|
|
23467
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23468
|
+
/**
|
|
23469
|
+
* Omit specific fields from the OrganizationMembership
|
|
23470
|
+
*/
|
|
23471
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23472
|
+
/**
|
|
23473
|
+
* Choose, which related nodes to fetch as well
|
|
23474
|
+
*/
|
|
23475
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23476
|
+
/**
|
|
23477
|
+
* The data needed to update a OrganizationMembership.
|
|
23478
|
+
*/
|
|
23479
|
+
data: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
|
|
23480
|
+
/**
|
|
23481
|
+
* Choose, which OrganizationMembership to update.
|
|
23482
|
+
*/
|
|
23483
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
23484
|
+
}
|
|
23485
|
+
|
|
23486
|
+
/**
|
|
23487
|
+
* OrganizationMembership updateMany
|
|
23488
|
+
*/
|
|
23489
|
+
export type OrganizationMembershipUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23490
|
+
/**
|
|
23491
|
+
* The data used to update OrganizationMemberships.
|
|
23492
|
+
*/
|
|
23493
|
+
data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyInput>
|
|
23494
|
+
/**
|
|
23495
|
+
* Filter which OrganizationMemberships to update
|
|
23496
|
+
*/
|
|
23497
|
+
where?: OrganizationMembershipWhereInput
|
|
23498
|
+
/**
|
|
23499
|
+
* Limit how many OrganizationMemberships to update.
|
|
23500
|
+
*/
|
|
23501
|
+
limit?: number
|
|
23502
|
+
}
|
|
23503
|
+
|
|
23504
|
+
/**
|
|
23505
|
+
* OrganizationMembership updateManyAndReturn
|
|
23506
|
+
*/
|
|
23507
|
+
export type OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23508
|
+
/**
|
|
23509
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23510
|
+
*/
|
|
23511
|
+
select?: OrganizationMembershipSelectUpdateManyAndReturn<ExtArgs> | null
|
|
23512
|
+
/**
|
|
23513
|
+
* Omit specific fields from the OrganizationMembership
|
|
23514
|
+
*/
|
|
23515
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23516
|
+
/**
|
|
23517
|
+
* The data used to update OrganizationMemberships.
|
|
23518
|
+
*/
|
|
23519
|
+
data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyInput>
|
|
23520
|
+
/**
|
|
23521
|
+
* Filter which OrganizationMemberships to update
|
|
23522
|
+
*/
|
|
23523
|
+
where?: OrganizationMembershipWhereInput
|
|
23524
|
+
/**
|
|
23525
|
+
* Limit how many OrganizationMemberships to update.
|
|
23526
|
+
*/
|
|
23527
|
+
limit?: number
|
|
23528
|
+
/**
|
|
23529
|
+
* Choose, which related nodes to fetch as well
|
|
23530
|
+
*/
|
|
23531
|
+
include?: OrganizationMembershipIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
23532
|
+
}
|
|
23533
|
+
|
|
23534
|
+
/**
|
|
23535
|
+
* OrganizationMembership upsert
|
|
23536
|
+
*/
|
|
23537
|
+
export type OrganizationMembershipUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23538
|
+
/**
|
|
23539
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23540
|
+
*/
|
|
23541
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23542
|
+
/**
|
|
23543
|
+
* Omit specific fields from the OrganizationMembership
|
|
23544
|
+
*/
|
|
23545
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23546
|
+
/**
|
|
23547
|
+
* Choose, which related nodes to fetch as well
|
|
23548
|
+
*/
|
|
23549
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23550
|
+
/**
|
|
23551
|
+
* The filter to search for the OrganizationMembership to update in case it exists.
|
|
23552
|
+
*/
|
|
23553
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
23554
|
+
/**
|
|
23555
|
+
* In case the OrganizationMembership found by the `where` argument doesn't exist, create a new OrganizationMembership with this data.
|
|
23556
|
+
*/
|
|
23557
|
+
create: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
|
|
23558
|
+
/**
|
|
23559
|
+
* In case the OrganizationMembership was found with the provided `where` argument, update it with this data.
|
|
23560
|
+
*/
|
|
23561
|
+
update: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
|
|
23562
|
+
}
|
|
23563
|
+
|
|
23564
|
+
/**
|
|
23565
|
+
* OrganizationMembership delete
|
|
23566
|
+
*/
|
|
23567
|
+
export type OrganizationMembershipDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23568
|
+
/**
|
|
23569
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23570
|
+
*/
|
|
23571
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23572
|
+
/**
|
|
23573
|
+
* Omit specific fields from the OrganizationMembership
|
|
23574
|
+
*/
|
|
23575
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23576
|
+
/**
|
|
23577
|
+
* Choose, which related nodes to fetch as well
|
|
23578
|
+
*/
|
|
23579
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23580
|
+
/**
|
|
23581
|
+
* Filter which OrganizationMembership to delete.
|
|
23582
|
+
*/
|
|
23583
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
23584
|
+
}
|
|
23585
|
+
|
|
23586
|
+
/**
|
|
23587
|
+
* OrganizationMembership deleteMany
|
|
23588
|
+
*/
|
|
23589
|
+
export type OrganizationMembershipDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23590
|
+
/**
|
|
23591
|
+
* Filter which OrganizationMemberships to delete
|
|
23592
|
+
*/
|
|
23593
|
+
where?: OrganizationMembershipWhereInput
|
|
23594
|
+
/**
|
|
23595
|
+
* Limit how many OrganizationMemberships to delete.
|
|
23596
|
+
*/
|
|
23597
|
+
limit?: number
|
|
23598
|
+
}
|
|
23599
|
+
|
|
23600
|
+
/**
|
|
23601
|
+
* OrganizationMembership without action
|
|
23602
|
+
*/
|
|
23603
|
+
export type OrganizationMembershipDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
23604
|
+
/**
|
|
23605
|
+
* Select specific fields to fetch from the OrganizationMembership
|
|
23606
|
+
*/
|
|
23607
|
+
select?: OrganizationMembershipSelect<ExtArgs> | null
|
|
23608
|
+
/**
|
|
23609
|
+
* Omit specific fields from the OrganizationMembership
|
|
23610
|
+
*/
|
|
23611
|
+
omit?: OrganizationMembershipOmit<ExtArgs> | null
|
|
23612
|
+
/**
|
|
23613
|
+
* Choose, which related nodes to fetch as well
|
|
23614
|
+
*/
|
|
23615
|
+
include?: OrganizationMembershipInclude<ExtArgs> | null
|
|
23616
|
+
}
|
|
23617
|
+
|
|
23618
|
+
|
|
23619
|
+
/**
|
|
23620
|
+
* Enums
|
|
23621
|
+
*/
|
|
23622
|
+
|
|
23623
|
+
export const TransactionIsolationLevel: {
|
|
23624
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
23625
|
+
ReadCommitted: 'ReadCommitted',
|
|
23626
|
+
RepeatableRead: 'RepeatableRead',
|
|
23627
|
+
Serializable: 'Serializable'
|
|
23628
|
+
};
|
|
23629
|
+
|
|
23630
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
23631
|
+
|
|
23632
|
+
|
|
23633
|
+
export const UserScalarFieldEnum: {
|
|
23634
|
+
id: 'id',
|
|
23635
|
+
type: 'type',
|
|
23636
|
+
createdAt: 'createdAt',
|
|
23637
|
+
updatedAt: 'updatedAt',
|
|
23638
|
+
email: 'email',
|
|
23639
|
+
username: 'username',
|
|
23640
|
+
hashword: 'hashword',
|
|
23641
|
+
appUserId: 'appUserId',
|
|
23642
|
+
organizationId: 'organizationId',
|
|
23643
|
+
appOrgId: 'appOrgId',
|
|
23644
|
+
name: 'name'
|
|
23645
|
+
};
|
|
23646
|
+
|
|
23647
|
+
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
23648
|
+
|
|
23649
|
+
|
|
23650
|
+
export const TokenScalarFieldEnum: {
|
|
23651
|
+
id: 'id',
|
|
23652
|
+
token: 'token',
|
|
23653
|
+
created: 'created',
|
|
23654
|
+
expires: 'expires',
|
|
23655
|
+
userId: 'userId'
|
|
23656
|
+
};
|
|
23657
|
+
|
|
23658
|
+
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
23659
|
+
|
|
23660
|
+
|
|
23661
|
+
export const CredentialScalarFieldEnum: {
|
|
23662
|
+
id: 'id',
|
|
23663
|
+
userId: 'userId',
|
|
23664
|
+
authIsValid: 'authIsValid',
|
|
23665
|
+
externalId: 'externalId',
|
|
23666
|
+
data: 'data',
|
|
23667
|
+
createdAt: 'createdAt',
|
|
23668
|
+
updatedAt: 'updatedAt'
|
|
23669
|
+
};
|
|
23670
|
+
|
|
23671
|
+
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
|
23672
|
+
|
|
23673
|
+
|
|
23674
|
+
export const EntityScalarFieldEnum: {
|
|
23675
|
+
id: 'id',
|
|
23676
|
+
credentialId: 'credentialId',
|
|
23677
|
+
userId: 'userId',
|
|
23678
|
+
name: 'name',
|
|
23679
|
+
moduleName: 'moduleName',
|
|
23680
|
+
externalId: 'externalId',
|
|
23681
|
+
data: 'data',
|
|
23682
|
+
createdAt: 'createdAt',
|
|
23683
|
+
updatedAt: 'updatedAt'
|
|
23684
|
+
};
|
|
23685
|
+
|
|
23686
|
+
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
23687
|
+
|
|
23688
|
+
|
|
23689
|
+
export const IntegrationScalarFieldEnum: {
|
|
23690
|
+
id: 'id',
|
|
23691
|
+
userId: 'userId',
|
|
23692
|
+
status: 'status',
|
|
23693
|
+
config: 'config',
|
|
23694
|
+
version: 'version',
|
|
23695
|
+
errors: 'errors',
|
|
23696
|
+
warnings: 'warnings',
|
|
23697
|
+
info: 'info',
|
|
23698
|
+
logs: 'logs',
|
|
23699
|
+
createdAt: 'createdAt',
|
|
23700
|
+
updatedAt: 'updatedAt'
|
|
23701
|
+
};
|
|
23702
|
+
|
|
23703
|
+
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
23704
|
+
|
|
23705
|
+
|
|
23706
|
+
export const IntegrationMappingScalarFieldEnum: {
|
|
23707
|
+
id: 'id',
|
|
23708
|
+
integrationId: 'integrationId',
|
|
23709
|
+
sourceId: 'sourceId',
|
|
23710
|
+
mapping: 'mapping',
|
|
23711
|
+
createdAt: 'createdAt',
|
|
23712
|
+
updatedAt: 'updatedAt'
|
|
23713
|
+
};
|
|
23714
|
+
|
|
23715
|
+
export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
|
|
23716
|
+
|
|
23717
|
+
|
|
23718
|
+
export const SyncScalarFieldEnum: {
|
|
23719
|
+
id: 'id',
|
|
23720
|
+
integrationId: 'integrationId',
|
|
23721
|
+
hash: 'hash',
|
|
23722
|
+
name: 'name'
|
|
23723
|
+
};
|
|
22449
23724
|
|
|
22450
23725
|
export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
|
|
22451
23726
|
|
|
@@ -22581,6 +23856,17 @@ export namespace Prisma {
|
|
|
22581
23856
|
export type AuthorizationSessionScalarFieldEnum = (typeof AuthorizationSessionScalarFieldEnum)[keyof typeof AuthorizationSessionScalarFieldEnum]
|
|
22582
23857
|
|
|
22583
23858
|
|
|
23859
|
+
export const OrganizationMembershipScalarFieldEnum: {
|
|
23860
|
+
id: 'id',
|
|
23861
|
+
individualUserId: 'individualUserId',
|
|
23862
|
+
organizationUserId: 'organizationUserId',
|
|
23863
|
+
orgRole: 'orgRole',
|
|
23864
|
+
createdAt: 'createdAt'
|
|
23865
|
+
};
|
|
23866
|
+
|
|
23867
|
+
export type OrganizationMembershipScalarFieldEnum = (typeof OrganizationMembershipScalarFieldEnum)[keyof typeof OrganizationMembershipScalarFieldEnum]
|
|
23868
|
+
|
|
23869
|
+
|
|
22584
23870
|
export const SortOrder: {
|
|
22585
23871
|
asc: 'asc',
|
|
22586
23872
|
desc: 'desc'
|
|
@@ -22806,6 +24092,8 @@ export namespace Prisma {
|
|
|
22806
24092
|
entities?: EntityListRelationFilter
|
|
22807
24093
|
integrations?: IntegrationListRelationFilter
|
|
22808
24094
|
processes?: ProcessListRelationFilter
|
|
24095
|
+
memberships?: OrganizationMembershipListRelationFilter
|
|
24096
|
+
orgMembers?: OrganizationMembershipListRelationFilter
|
|
22809
24097
|
}
|
|
22810
24098
|
|
|
22811
24099
|
export type UserOrderByWithRelationInput = {
|
|
@@ -22827,6 +24115,8 @@ export namespace Prisma {
|
|
|
22827
24115
|
entities?: EntityOrderByRelationAggregateInput
|
|
22828
24116
|
integrations?: IntegrationOrderByRelationAggregateInput
|
|
22829
24117
|
processes?: ProcessOrderByRelationAggregateInput
|
|
24118
|
+
memberships?: OrganizationMembershipOrderByRelationAggregateInput
|
|
24119
|
+
orgMembers?: OrganizationMembershipOrderByRelationAggregateInput
|
|
22830
24120
|
}
|
|
22831
24121
|
|
|
22832
24122
|
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -22852,6 +24142,8 @@ export namespace Prisma {
|
|
|
22852
24142
|
entities?: EntityListRelationFilter
|
|
22853
24143
|
integrations?: IntegrationListRelationFilter
|
|
22854
24144
|
processes?: ProcessListRelationFilter
|
|
24145
|
+
memberships?: OrganizationMembershipListRelationFilter
|
|
24146
|
+
orgMembers?: OrganizationMembershipListRelationFilter
|
|
22855
24147
|
}, "id" | "username_appUserId">
|
|
22856
24148
|
|
|
22857
24149
|
export type UserOrderByWithAggregationInput = {
|
|
@@ -24014,6 +25306,67 @@ export namespace Prisma {
|
|
|
24014
25306
|
updatedAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
|
|
24015
25307
|
}
|
|
24016
25308
|
|
|
25309
|
+
export type OrganizationMembershipWhereInput = {
|
|
25310
|
+
AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
|
|
25311
|
+
OR?: OrganizationMembershipWhereInput[]
|
|
25312
|
+
NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
|
|
25313
|
+
id?: IntFilter<"OrganizationMembership"> | number
|
|
25314
|
+
individualUserId?: IntFilter<"OrganizationMembership"> | number
|
|
25315
|
+
organizationUserId?: IntFilter<"OrganizationMembership"> | number
|
|
25316
|
+
orgRole?: StringFilter<"OrganizationMembership"> | string
|
|
25317
|
+
createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
|
|
25318
|
+
individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
25319
|
+
organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
25320
|
+
}
|
|
25321
|
+
|
|
25322
|
+
export type OrganizationMembershipOrderByWithRelationInput = {
|
|
25323
|
+
id?: SortOrder
|
|
25324
|
+
individualUserId?: SortOrder
|
|
25325
|
+
organizationUserId?: SortOrder
|
|
25326
|
+
orgRole?: SortOrder
|
|
25327
|
+
createdAt?: SortOrder
|
|
25328
|
+
individualUser?: UserOrderByWithRelationInput
|
|
25329
|
+
organizationUser?: UserOrderByWithRelationInput
|
|
25330
|
+
}
|
|
25331
|
+
|
|
25332
|
+
export type OrganizationMembershipWhereUniqueInput = Prisma.AtLeast<{
|
|
25333
|
+
id?: number
|
|
25334
|
+
individualUserId_organizationUserId?: OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput
|
|
25335
|
+
AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
|
|
25336
|
+
OR?: OrganizationMembershipWhereInput[]
|
|
25337
|
+
NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
|
|
25338
|
+
individualUserId?: IntFilter<"OrganizationMembership"> | number
|
|
25339
|
+
organizationUserId?: IntFilter<"OrganizationMembership"> | number
|
|
25340
|
+
orgRole?: StringFilter<"OrganizationMembership"> | string
|
|
25341
|
+
createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
|
|
25342
|
+
individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
25343
|
+
organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
|
|
25344
|
+
}, "id" | "individualUserId_organizationUserId">
|
|
25345
|
+
|
|
25346
|
+
export type OrganizationMembershipOrderByWithAggregationInput = {
|
|
25347
|
+
id?: SortOrder
|
|
25348
|
+
individualUserId?: SortOrder
|
|
25349
|
+
organizationUserId?: SortOrder
|
|
25350
|
+
orgRole?: SortOrder
|
|
25351
|
+
createdAt?: SortOrder
|
|
25352
|
+
_count?: OrganizationMembershipCountOrderByAggregateInput
|
|
25353
|
+
_avg?: OrganizationMembershipAvgOrderByAggregateInput
|
|
25354
|
+
_max?: OrganizationMembershipMaxOrderByAggregateInput
|
|
25355
|
+
_min?: OrganizationMembershipMinOrderByAggregateInput
|
|
25356
|
+
_sum?: OrganizationMembershipSumOrderByAggregateInput
|
|
25357
|
+
}
|
|
25358
|
+
|
|
25359
|
+
export type OrganizationMembershipScalarWhereWithAggregatesInput = {
|
|
25360
|
+
AND?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
|
|
25361
|
+
OR?: OrganizationMembershipScalarWhereWithAggregatesInput[]
|
|
25362
|
+
NOT?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
|
|
25363
|
+
id?: IntWithAggregatesFilter<"OrganizationMembership"> | number
|
|
25364
|
+
individualUserId?: IntWithAggregatesFilter<"OrganizationMembership"> | number
|
|
25365
|
+
organizationUserId?: IntWithAggregatesFilter<"OrganizationMembership"> | number
|
|
25366
|
+
orgRole?: StringWithAggregatesFilter<"OrganizationMembership"> | string
|
|
25367
|
+
createdAt?: DateTimeWithAggregatesFilter<"OrganizationMembership"> | Date | string
|
|
25368
|
+
}
|
|
25369
|
+
|
|
24017
25370
|
export type UserCreateInput = {
|
|
24018
25371
|
type: $Enums.UserType
|
|
24019
25372
|
createdAt?: Date | string
|
|
@@ -24031,6 +25384,8 @@ export namespace Prisma {
|
|
|
24031
25384
|
entities?: EntityCreateNestedManyWithoutUserInput
|
|
24032
25385
|
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
24033
25386
|
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
25387
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
25388
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
24034
25389
|
}
|
|
24035
25390
|
|
|
24036
25391
|
export type UserUncheckedCreateInput = {
|
|
@@ -24051,6 +25406,8 @@ export namespace Prisma {
|
|
|
24051
25406
|
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
24052
25407
|
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
24053
25408
|
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
25409
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
25410
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
24054
25411
|
}
|
|
24055
25412
|
|
|
24056
25413
|
export type UserUpdateInput = {
|
|
@@ -24070,6 +25427,8 @@ export namespace Prisma {
|
|
|
24070
25427
|
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
24071
25428
|
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
24072
25429
|
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
25430
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
25431
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
24073
25432
|
}
|
|
24074
25433
|
|
|
24075
25434
|
export type UserUncheckedUpdateInput = {
|
|
@@ -24090,6 +25449,8 @@ export namespace Prisma {
|
|
|
24090
25449
|
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
24091
25450
|
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
24092
25451
|
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
25452
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
25453
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
24093
25454
|
}
|
|
24094
25455
|
|
|
24095
25456
|
export type UserCreateManyInput = {
|
|
@@ -25255,6 +26616,57 @@ export namespace Prisma {
|
|
|
25255
26616
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25256
26617
|
}
|
|
25257
26618
|
|
|
26619
|
+
export type OrganizationMembershipCreateInput = {
|
|
26620
|
+
orgRole?: string
|
|
26621
|
+
createdAt?: Date | string
|
|
26622
|
+
individualUser: UserCreateNestedOneWithoutMembershipsInput
|
|
26623
|
+
organizationUser: UserCreateNestedOneWithoutOrgMembersInput
|
|
26624
|
+
}
|
|
26625
|
+
|
|
26626
|
+
export type OrganizationMembershipUncheckedCreateInput = {
|
|
26627
|
+
id?: number
|
|
26628
|
+
individualUserId: number
|
|
26629
|
+
organizationUserId: number
|
|
26630
|
+
orgRole?: string
|
|
26631
|
+
createdAt?: Date | string
|
|
26632
|
+
}
|
|
26633
|
+
|
|
26634
|
+
export type OrganizationMembershipUpdateInput = {
|
|
26635
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
26636
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
26637
|
+
individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
|
|
26638
|
+
organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
|
|
26639
|
+
}
|
|
26640
|
+
|
|
26641
|
+
export type OrganizationMembershipUncheckedUpdateInput = {
|
|
26642
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
26643
|
+
individualUserId?: IntFieldUpdateOperationsInput | number
|
|
26644
|
+
organizationUserId?: IntFieldUpdateOperationsInput | number
|
|
26645
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
26646
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
26647
|
+
}
|
|
26648
|
+
|
|
26649
|
+
export type OrganizationMembershipCreateManyInput = {
|
|
26650
|
+
id?: number
|
|
26651
|
+
individualUserId: number
|
|
26652
|
+
organizationUserId: number
|
|
26653
|
+
orgRole?: string
|
|
26654
|
+
createdAt?: Date | string
|
|
26655
|
+
}
|
|
26656
|
+
|
|
26657
|
+
export type OrganizationMembershipUpdateManyMutationInput = {
|
|
26658
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
26659
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
26660
|
+
}
|
|
26661
|
+
|
|
26662
|
+
export type OrganizationMembershipUncheckedUpdateManyInput = {
|
|
26663
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
26664
|
+
individualUserId?: IntFieldUpdateOperationsInput | number
|
|
26665
|
+
organizationUserId?: IntFieldUpdateOperationsInput | number
|
|
26666
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
26667
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
26668
|
+
}
|
|
26669
|
+
|
|
25258
26670
|
export type IntFilter<$PrismaModel = never> = {
|
|
25259
26671
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
25260
26672
|
in?: number[] | ListIntFieldRefInput<$PrismaModel>
|
|
@@ -25351,6 +26763,12 @@ export namespace Prisma {
|
|
|
25351
26763
|
none?: ProcessWhereInput
|
|
25352
26764
|
}
|
|
25353
26765
|
|
|
26766
|
+
export type OrganizationMembershipListRelationFilter = {
|
|
26767
|
+
every?: OrganizationMembershipWhereInput
|
|
26768
|
+
some?: OrganizationMembershipWhereInput
|
|
26769
|
+
none?: OrganizationMembershipWhereInput
|
|
26770
|
+
}
|
|
26771
|
+
|
|
25354
26772
|
export type SortOrderInput = {
|
|
25355
26773
|
sort: SortOrder
|
|
25356
26774
|
nulls?: NullsOrder
|
|
@@ -25380,6 +26798,10 @@ export namespace Prisma {
|
|
|
25380
26798
|
_count?: SortOrder
|
|
25381
26799
|
}
|
|
25382
26800
|
|
|
26801
|
+
export type OrganizationMembershipOrderByRelationAggregateInput = {
|
|
26802
|
+
_count?: SortOrder
|
|
26803
|
+
}
|
|
26804
|
+
|
|
25383
26805
|
export type UserUsernameAppUserIdCompoundUniqueInput = {
|
|
25384
26806
|
username: string
|
|
25385
26807
|
appUserId: string
|
|
@@ -26505,6 +27927,47 @@ export namespace Prisma {
|
|
|
26505
27927
|
maxSteps?: SortOrder
|
|
26506
27928
|
}
|
|
26507
27929
|
|
|
27930
|
+
export type OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput = {
|
|
27931
|
+
individualUserId: number
|
|
27932
|
+
organizationUserId: number
|
|
27933
|
+
}
|
|
27934
|
+
|
|
27935
|
+
export type OrganizationMembershipCountOrderByAggregateInput = {
|
|
27936
|
+
id?: SortOrder
|
|
27937
|
+
individualUserId?: SortOrder
|
|
27938
|
+
organizationUserId?: SortOrder
|
|
27939
|
+
orgRole?: SortOrder
|
|
27940
|
+
createdAt?: SortOrder
|
|
27941
|
+
}
|
|
27942
|
+
|
|
27943
|
+
export type OrganizationMembershipAvgOrderByAggregateInput = {
|
|
27944
|
+
id?: SortOrder
|
|
27945
|
+
individualUserId?: SortOrder
|
|
27946
|
+
organizationUserId?: SortOrder
|
|
27947
|
+
}
|
|
27948
|
+
|
|
27949
|
+
export type OrganizationMembershipMaxOrderByAggregateInput = {
|
|
27950
|
+
id?: SortOrder
|
|
27951
|
+
individualUserId?: SortOrder
|
|
27952
|
+
organizationUserId?: SortOrder
|
|
27953
|
+
orgRole?: SortOrder
|
|
27954
|
+
createdAt?: SortOrder
|
|
27955
|
+
}
|
|
27956
|
+
|
|
27957
|
+
export type OrganizationMembershipMinOrderByAggregateInput = {
|
|
27958
|
+
id?: SortOrder
|
|
27959
|
+
individualUserId?: SortOrder
|
|
27960
|
+
organizationUserId?: SortOrder
|
|
27961
|
+
orgRole?: SortOrder
|
|
27962
|
+
createdAt?: SortOrder
|
|
27963
|
+
}
|
|
27964
|
+
|
|
27965
|
+
export type OrganizationMembershipSumOrderByAggregateInput = {
|
|
27966
|
+
id?: SortOrder
|
|
27967
|
+
individualUserId?: SortOrder
|
|
27968
|
+
organizationUserId?: SortOrder
|
|
27969
|
+
}
|
|
27970
|
+
|
|
26508
27971
|
export type UserCreateNestedOneWithoutMembersInput = {
|
|
26509
27972
|
create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
|
|
26510
27973
|
connectOrCreate?: UserCreateOrConnectWithoutMembersInput
|
|
@@ -26553,6 +28016,20 @@ export namespace Prisma {
|
|
|
26553
28016
|
connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
|
|
26554
28017
|
}
|
|
26555
28018
|
|
|
28019
|
+
export type OrganizationMembershipCreateNestedManyWithoutIndividualUserInput = {
|
|
28020
|
+
create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
|
|
28021
|
+
connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
|
|
28022
|
+
createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
|
|
28023
|
+
connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28024
|
+
}
|
|
28025
|
+
|
|
28026
|
+
export type OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput = {
|
|
28027
|
+
create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
|
|
28028
|
+
connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
|
|
28029
|
+
createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
|
|
28030
|
+
connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28031
|
+
}
|
|
28032
|
+
|
|
26556
28033
|
export type UserUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
26557
28034
|
create?: XOR<UserCreateWithoutOrganizationInput, UserUncheckedCreateWithoutOrganizationInput> | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[]
|
|
26558
28035
|
connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[]
|
|
@@ -26595,6 +28072,20 @@ export namespace Prisma {
|
|
|
26595
28072
|
connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
|
|
26596
28073
|
}
|
|
26597
28074
|
|
|
28075
|
+
export type OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput = {
|
|
28076
|
+
create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
|
|
28077
|
+
connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
|
|
28078
|
+
createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
|
|
28079
|
+
connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28080
|
+
}
|
|
28081
|
+
|
|
28082
|
+
export type OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput = {
|
|
28083
|
+
create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
|
|
28084
|
+
connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
|
|
28085
|
+
createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
|
|
28086
|
+
connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28087
|
+
}
|
|
28088
|
+
|
|
26598
28089
|
export type EnumUserTypeFieldUpdateOperationsInput = {
|
|
26599
28090
|
set?: $Enums.UserType
|
|
26600
28091
|
}
|
|
@@ -26701,6 +28192,34 @@ export namespace Prisma {
|
|
|
26701
28192
|
deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
|
|
26702
28193
|
}
|
|
26703
28194
|
|
|
28195
|
+
export type OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput = {
|
|
28196
|
+
create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
|
|
28197
|
+
connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
|
|
28198
|
+
upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
|
|
28199
|
+
createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
|
|
28200
|
+
set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28201
|
+
disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28202
|
+
delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28203
|
+
connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28204
|
+
update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
|
|
28205
|
+
updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
|
|
28206
|
+
deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
|
|
28207
|
+
}
|
|
28208
|
+
|
|
28209
|
+
export type OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput = {
|
|
28210
|
+
create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
|
|
28211
|
+
connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
|
|
28212
|
+
upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
|
|
28213
|
+
createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
|
|
28214
|
+
set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28215
|
+
disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28216
|
+
delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28217
|
+
connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28218
|
+
update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
|
|
28219
|
+
updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
|
|
28220
|
+
deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
|
|
28221
|
+
}
|
|
28222
|
+
|
|
26704
28223
|
export type IntFieldUpdateOperationsInput = {
|
|
26705
28224
|
set?: number
|
|
26706
28225
|
increment?: number
|
|
@@ -26801,6 +28320,34 @@ export namespace Prisma {
|
|
|
26801
28320
|
deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
|
|
26802
28321
|
}
|
|
26803
28322
|
|
|
28323
|
+
export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput = {
|
|
28324
|
+
create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
|
|
28325
|
+
connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
|
|
28326
|
+
upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
|
|
28327
|
+
createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
|
|
28328
|
+
set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28329
|
+
disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28330
|
+
delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28331
|
+
connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28332
|
+
update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
|
|
28333
|
+
updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
|
|
28334
|
+
deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
|
|
28335
|
+
}
|
|
28336
|
+
|
|
28337
|
+
export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput = {
|
|
28338
|
+
create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
|
|
28339
|
+
connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
|
|
28340
|
+
upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
|
|
28341
|
+
createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
|
|
28342
|
+
set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28343
|
+
disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28344
|
+
delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28345
|
+
connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
|
|
28346
|
+
update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
|
|
28347
|
+
updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
|
|
28348
|
+
deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
|
|
28349
|
+
}
|
|
28350
|
+
|
|
26804
28351
|
export type UserCreateNestedOneWithoutTokensInput = {
|
|
26805
28352
|
create?: XOR<UserCreateWithoutTokensInput, UserUncheckedCreateWithoutTokensInput>
|
|
26806
28353
|
connectOrCreate?: UserCreateOrConnectWithoutTokensInput
|
|
@@ -27691,6 +29238,34 @@ export namespace Prisma {
|
|
|
27691
29238
|
divide?: bigint | number
|
|
27692
29239
|
}
|
|
27693
29240
|
|
|
29241
|
+
export type UserCreateNestedOneWithoutMembershipsInput = {
|
|
29242
|
+
create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
|
|
29243
|
+
connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
|
|
29244
|
+
connect?: UserWhereUniqueInput
|
|
29245
|
+
}
|
|
29246
|
+
|
|
29247
|
+
export type UserCreateNestedOneWithoutOrgMembersInput = {
|
|
29248
|
+
create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
|
|
29249
|
+
connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
|
|
29250
|
+
connect?: UserWhereUniqueInput
|
|
29251
|
+
}
|
|
29252
|
+
|
|
29253
|
+
export type UserUpdateOneRequiredWithoutMembershipsNestedInput = {
|
|
29254
|
+
create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
|
|
29255
|
+
connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
|
|
29256
|
+
upsert?: UserUpsertWithoutMembershipsInput
|
|
29257
|
+
connect?: UserWhereUniqueInput
|
|
29258
|
+
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMembershipsInput, UserUpdateWithoutMembershipsInput>, UserUncheckedUpdateWithoutMembershipsInput>
|
|
29259
|
+
}
|
|
29260
|
+
|
|
29261
|
+
export type UserUpdateOneRequiredWithoutOrgMembersNestedInput = {
|
|
29262
|
+
create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
|
|
29263
|
+
connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
|
|
29264
|
+
upsert?: UserUpsertWithoutOrgMembersInput
|
|
29265
|
+
connect?: UserWhereUniqueInput
|
|
29266
|
+
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutOrgMembersInput, UserUpdateWithoutOrgMembersInput>, UserUncheckedUpdateWithoutOrgMembersInput>
|
|
29267
|
+
}
|
|
29268
|
+
|
|
27694
29269
|
export type NestedIntFilter<$PrismaModel = never> = {
|
|
27695
29270
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
27696
29271
|
in?: number[] | ListIntFieldRefInput<$PrismaModel>
|
|
@@ -28062,6 +29637,8 @@ export namespace Prisma {
|
|
|
28062
29637
|
entities?: EntityCreateNestedManyWithoutUserInput
|
|
28063
29638
|
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
28064
29639
|
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
29640
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
29641
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
28065
29642
|
}
|
|
28066
29643
|
|
|
28067
29644
|
export type UserUncheckedCreateWithoutMembersInput = {
|
|
@@ -28081,6 +29658,8 @@ export namespace Prisma {
|
|
|
28081
29658
|
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
28082
29659
|
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
28083
29660
|
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
29661
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
29662
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
28084
29663
|
}
|
|
28085
29664
|
|
|
28086
29665
|
export type UserCreateOrConnectWithoutMembersInput = {
|
|
@@ -28104,6 +29683,8 @@ export namespace Prisma {
|
|
|
28104
29683
|
entities?: EntityCreateNestedManyWithoutUserInput
|
|
28105
29684
|
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
28106
29685
|
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
29686
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
29687
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
28107
29688
|
}
|
|
28108
29689
|
|
|
28109
29690
|
export type UserUncheckedCreateWithoutOrganizationInput = {
|
|
@@ -28123,6 +29704,8 @@ export namespace Prisma {
|
|
|
28123
29704
|
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
28124
29705
|
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
28125
29706
|
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
29707
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
29708
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
28126
29709
|
}
|
|
28127
29710
|
|
|
28128
29711
|
export type UserCreateOrConnectWithoutOrganizationInput = {
|
|
@@ -28308,6 +29891,52 @@ export namespace Prisma {
|
|
|
28308
29891
|
skipDuplicates?: boolean
|
|
28309
29892
|
}
|
|
28310
29893
|
|
|
29894
|
+
export type OrganizationMembershipCreateWithoutIndividualUserInput = {
|
|
29895
|
+
orgRole?: string
|
|
29896
|
+
createdAt?: Date | string
|
|
29897
|
+
organizationUser: UserCreateNestedOneWithoutOrgMembersInput
|
|
29898
|
+
}
|
|
29899
|
+
|
|
29900
|
+
export type OrganizationMembershipUncheckedCreateWithoutIndividualUserInput = {
|
|
29901
|
+
id?: number
|
|
29902
|
+
organizationUserId: number
|
|
29903
|
+
orgRole?: string
|
|
29904
|
+
createdAt?: Date | string
|
|
29905
|
+
}
|
|
29906
|
+
|
|
29907
|
+
export type OrganizationMembershipCreateOrConnectWithoutIndividualUserInput = {
|
|
29908
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
29909
|
+
create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
|
|
29910
|
+
}
|
|
29911
|
+
|
|
29912
|
+
export type OrganizationMembershipCreateManyIndividualUserInputEnvelope = {
|
|
29913
|
+
data: OrganizationMembershipCreateManyIndividualUserInput | OrganizationMembershipCreateManyIndividualUserInput[]
|
|
29914
|
+
skipDuplicates?: boolean
|
|
29915
|
+
}
|
|
29916
|
+
|
|
29917
|
+
export type OrganizationMembershipCreateWithoutOrganizationUserInput = {
|
|
29918
|
+
orgRole?: string
|
|
29919
|
+
createdAt?: Date | string
|
|
29920
|
+
individualUser: UserCreateNestedOneWithoutMembershipsInput
|
|
29921
|
+
}
|
|
29922
|
+
|
|
29923
|
+
export type OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput = {
|
|
29924
|
+
id?: number
|
|
29925
|
+
individualUserId: number
|
|
29926
|
+
orgRole?: string
|
|
29927
|
+
createdAt?: Date | string
|
|
29928
|
+
}
|
|
29929
|
+
|
|
29930
|
+
export type OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput = {
|
|
29931
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
29932
|
+
create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
|
|
29933
|
+
}
|
|
29934
|
+
|
|
29935
|
+
export type OrganizationMembershipCreateManyOrganizationUserInputEnvelope = {
|
|
29936
|
+
data: OrganizationMembershipCreateManyOrganizationUserInput | OrganizationMembershipCreateManyOrganizationUserInput[]
|
|
29937
|
+
skipDuplicates?: boolean
|
|
29938
|
+
}
|
|
29939
|
+
|
|
28311
29940
|
export type UserUpsertWithoutMembersInput = {
|
|
28312
29941
|
update: XOR<UserUpdateWithoutMembersInput, UserUncheckedUpdateWithoutMembersInput>
|
|
28313
29942
|
create: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
|
|
@@ -28335,6 +29964,8 @@ export namespace Prisma {
|
|
|
28335
29964
|
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
28336
29965
|
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
28337
29966
|
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
29967
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
29968
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
28338
29969
|
}
|
|
28339
29970
|
|
|
28340
29971
|
export type UserUncheckedUpdateWithoutMembersInput = {
|
|
@@ -28354,6 +29985,8 @@ export namespace Prisma {
|
|
|
28354
29985
|
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
28355
29986
|
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
28356
29987
|
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
29988
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
29989
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
28357
29990
|
}
|
|
28358
29991
|
|
|
28359
29992
|
export type UserUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
@@ -28542,6 +30175,49 @@ export namespace Prisma {
|
|
|
28542
30175
|
updatedAt?: DateTimeFilter<"Process"> | Date | string
|
|
28543
30176
|
}
|
|
28544
30177
|
|
|
30178
|
+
export type OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput = {
|
|
30179
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
30180
|
+
update: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
|
|
30181
|
+
create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
|
|
30182
|
+
}
|
|
30183
|
+
|
|
30184
|
+
export type OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput = {
|
|
30185
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
30186
|
+
data: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
|
|
30187
|
+
}
|
|
30188
|
+
|
|
30189
|
+
export type OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput = {
|
|
30190
|
+
where: OrganizationMembershipScalarWhereInput
|
|
30191
|
+
data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput>
|
|
30192
|
+
}
|
|
30193
|
+
|
|
30194
|
+
export type OrganizationMembershipScalarWhereInput = {
|
|
30195
|
+
AND?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
|
|
30196
|
+
OR?: OrganizationMembershipScalarWhereInput[]
|
|
30197
|
+
NOT?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
|
|
30198
|
+
id?: IntFilter<"OrganizationMembership"> | number
|
|
30199
|
+
individualUserId?: IntFilter<"OrganizationMembership"> | number
|
|
30200
|
+
organizationUserId?: IntFilter<"OrganizationMembership"> | number
|
|
30201
|
+
orgRole?: StringFilter<"OrganizationMembership"> | string
|
|
30202
|
+
createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
|
|
30203
|
+
}
|
|
30204
|
+
|
|
30205
|
+
export type OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput = {
|
|
30206
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
30207
|
+
update: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
|
|
30208
|
+
create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
|
|
30209
|
+
}
|
|
30210
|
+
|
|
30211
|
+
export type OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput = {
|
|
30212
|
+
where: OrganizationMembershipWhereUniqueInput
|
|
30213
|
+
data: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
|
|
30214
|
+
}
|
|
30215
|
+
|
|
30216
|
+
export type OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput = {
|
|
30217
|
+
where: OrganizationMembershipScalarWhereInput
|
|
30218
|
+
data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput>
|
|
30219
|
+
}
|
|
30220
|
+
|
|
28545
30221
|
export type UserCreateWithoutTokensInput = {
|
|
28546
30222
|
type: $Enums.UserType
|
|
28547
30223
|
createdAt?: Date | string
|
|
@@ -28558,6 +30234,8 @@ export namespace Prisma {
|
|
|
28558
30234
|
entities?: EntityCreateNestedManyWithoutUserInput
|
|
28559
30235
|
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
28560
30236
|
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
30237
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
30238
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
28561
30239
|
}
|
|
28562
30240
|
|
|
28563
30241
|
export type UserUncheckedCreateWithoutTokensInput = {
|
|
@@ -28577,6 +30255,8 @@ export namespace Prisma {
|
|
|
28577
30255
|
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
28578
30256
|
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
28579
30257
|
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
30258
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
30259
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
28580
30260
|
}
|
|
28581
30261
|
|
|
28582
30262
|
export type UserCreateOrConnectWithoutTokensInput = {
|
|
@@ -28611,6 +30291,8 @@ export namespace Prisma {
|
|
|
28611
30291
|
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
28612
30292
|
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
28613
30293
|
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
30294
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
30295
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
28614
30296
|
}
|
|
28615
30297
|
|
|
28616
30298
|
export type UserUncheckedUpdateWithoutTokensInput = {
|
|
@@ -28630,6 +30312,8 @@ export namespace Prisma {
|
|
|
28630
30312
|
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
28631
30313
|
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
28632
30314
|
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
30315
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
30316
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
28633
30317
|
}
|
|
28634
30318
|
|
|
28635
30319
|
export type UserCreateWithoutCredentialsInput = {
|
|
@@ -28648,6 +30332,8 @@ export namespace Prisma {
|
|
|
28648
30332
|
entities?: EntityCreateNestedManyWithoutUserInput
|
|
28649
30333
|
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
28650
30334
|
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
30335
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
30336
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
28651
30337
|
}
|
|
28652
30338
|
|
|
28653
30339
|
export type UserUncheckedCreateWithoutCredentialsInput = {
|
|
@@ -28667,6 +30353,8 @@ export namespace Prisma {
|
|
|
28667
30353
|
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
28668
30354
|
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
28669
30355
|
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
30356
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
30357
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
28670
30358
|
}
|
|
28671
30359
|
|
|
28672
30360
|
export type UserCreateOrConnectWithoutCredentialsInput = {
|
|
@@ -28740,6 +30428,8 @@ export namespace Prisma {
|
|
|
28740
30428
|
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
28741
30429
|
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
28742
30430
|
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
30431
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
30432
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
28743
30433
|
}
|
|
28744
30434
|
|
|
28745
30435
|
export type UserUncheckedUpdateWithoutCredentialsInput = {
|
|
@@ -28759,6 +30449,8 @@ export namespace Prisma {
|
|
|
28759
30449
|
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
28760
30450
|
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
28761
30451
|
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
30452
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
30453
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
28762
30454
|
}
|
|
28763
30455
|
|
|
28764
30456
|
export type EntityUpsertWithWhereUniqueWithoutCredentialInput = {
|
|
@@ -28817,6 +30509,8 @@ export namespace Prisma {
|
|
|
28817
30509
|
credentials?: CredentialCreateNestedManyWithoutUserInput
|
|
28818
30510
|
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
28819
30511
|
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
30512
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
30513
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
28820
30514
|
}
|
|
28821
30515
|
|
|
28822
30516
|
export type UserUncheckedCreateWithoutEntitiesInput = {
|
|
@@ -28836,6 +30530,8 @@ export namespace Prisma {
|
|
|
28836
30530
|
credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
|
|
28837
30531
|
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
28838
30532
|
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
30533
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
30534
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
28839
30535
|
}
|
|
28840
30536
|
|
|
28841
30537
|
export type UserCreateOrConnectWithoutEntitiesInput = {
|
|
@@ -29008,6 +30704,8 @@ export namespace Prisma {
|
|
|
29008
30704
|
credentials?: CredentialUpdateManyWithoutUserNestedInput
|
|
29009
30705
|
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
29010
30706
|
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
30707
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
30708
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
29011
30709
|
}
|
|
29012
30710
|
|
|
29013
30711
|
export type UserUncheckedUpdateWithoutEntitiesInput = {
|
|
@@ -29027,6 +30725,8 @@ export namespace Prisma {
|
|
|
29027
30725
|
credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
|
|
29028
30726
|
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
29029
30727
|
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
30728
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
30729
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
29030
30730
|
}
|
|
29031
30731
|
|
|
29032
30732
|
export type IntegrationUpsertWithWhereUniqueWithoutEntitiesInput = {
|
|
@@ -29142,6 +30842,8 @@ export namespace Prisma {
|
|
|
29142
30842
|
credentials?: CredentialCreateNestedManyWithoutUserInput
|
|
29143
30843
|
entities?: EntityCreateNestedManyWithoutUserInput
|
|
29144
30844
|
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
30845
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
30846
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
29145
30847
|
}
|
|
29146
30848
|
|
|
29147
30849
|
export type UserUncheckedCreateWithoutIntegrationsInput = {
|
|
@@ -29161,6 +30863,8 @@ export namespace Prisma {
|
|
|
29161
30863
|
credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
|
|
29162
30864
|
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
29163
30865
|
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
30866
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
30867
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
29164
30868
|
}
|
|
29165
30869
|
|
|
29166
30870
|
export type UserCreateOrConnectWithoutIntegrationsInput = {
|
|
@@ -29341,6 +31045,8 @@ export namespace Prisma {
|
|
|
29341
31045
|
credentials?: CredentialUpdateManyWithoutUserNestedInput
|
|
29342
31046
|
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
29343
31047
|
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
31048
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
31049
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
29344
31050
|
}
|
|
29345
31051
|
|
|
29346
31052
|
export type UserUncheckedUpdateWithoutIntegrationsInput = {
|
|
@@ -29360,6 +31066,8 @@ export namespace Prisma {
|
|
|
29360
31066
|
credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
|
|
29361
31067
|
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
29362
31068
|
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
31069
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
31070
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
29363
31071
|
}
|
|
29364
31072
|
|
|
29365
31073
|
export type EntityUpsertWithWhereUniqueWithoutIntegrationsInput = {
|
|
@@ -30109,6 +31817,8 @@ export namespace Prisma {
|
|
|
30109
31817
|
credentials?: CredentialCreateNestedManyWithoutUserInput
|
|
30110
31818
|
entities?: EntityCreateNestedManyWithoutUserInput
|
|
30111
31819
|
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
31820
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
31821
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
30112
31822
|
}
|
|
30113
31823
|
|
|
30114
31824
|
export type UserUncheckedCreateWithoutProcessesInput = {
|
|
@@ -30128,6 +31838,8 @@ export namespace Prisma {
|
|
|
30128
31838
|
credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
|
|
30129
31839
|
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
30130
31840
|
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
31841
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
31842
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
30131
31843
|
}
|
|
30132
31844
|
|
|
30133
31845
|
export type UserCreateOrConnectWithoutProcessesInput = {
|
|
@@ -30271,6 +31983,8 @@ export namespace Prisma {
|
|
|
30271
31983
|
credentials?: CredentialUpdateManyWithoutUserNestedInput
|
|
30272
31984
|
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
30273
31985
|
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
31986
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
31987
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
30274
31988
|
}
|
|
30275
31989
|
|
|
30276
31990
|
export type UserUncheckedUpdateWithoutProcessesInput = {
|
|
@@ -30290,6 +32004,8 @@ export namespace Prisma {
|
|
|
30290
32004
|
credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
|
|
30291
32005
|
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
30292
32006
|
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
32007
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
32008
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
30293
32009
|
}
|
|
30294
32010
|
|
|
30295
32011
|
export type IntegrationUpsertWithoutProcessesInput = {
|
|
@@ -30518,6 +32234,202 @@ export namespace Prisma {
|
|
|
30518
32234
|
updatedAt?: DateTimeFilter<"AdminScriptExecution"> | Date | string
|
|
30519
32235
|
}
|
|
30520
32236
|
|
|
32237
|
+
export type UserCreateWithoutMembershipsInput = {
|
|
32238
|
+
type: $Enums.UserType
|
|
32239
|
+
createdAt?: Date | string
|
|
32240
|
+
updatedAt?: Date | string
|
|
32241
|
+
email?: string | null
|
|
32242
|
+
username?: string | null
|
|
32243
|
+
hashword?: string | null
|
|
32244
|
+
appUserId?: string | null
|
|
32245
|
+
appOrgId?: string | null
|
|
32246
|
+
name?: string | null
|
|
32247
|
+
organization?: UserCreateNestedOneWithoutMembersInput
|
|
32248
|
+
members?: UserCreateNestedManyWithoutOrganizationInput
|
|
32249
|
+
tokens?: TokenCreateNestedManyWithoutUserInput
|
|
32250
|
+
credentials?: CredentialCreateNestedManyWithoutUserInput
|
|
32251
|
+
entities?: EntityCreateNestedManyWithoutUserInput
|
|
32252
|
+
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
32253
|
+
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
32254
|
+
orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
|
|
32255
|
+
}
|
|
32256
|
+
|
|
32257
|
+
export type UserUncheckedCreateWithoutMembershipsInput = {
|
|
32258
|
+
id?: number
|
|
32259
|
+
type: $Enums.UserType
|
|
32260
|
+
createdAt?: Date | string
|
|
32261
|
+
updatedAt?: Date | string
|
|
32262
|
+
email?: string | null
|
|
32263
|
+
username?: string | null
|
|
32264
|
+
hashword?: string | null
|
|
32265
|
+
appUserId?: string | null
|
|
32266
|
+
organizationId?: number | null
|
|
32267
|
+
appOrgId?: string | null
|
|
32268
|
+
name?: string | null
|
|
32269
|
+
members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
|
|
32270
|
+
tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
|
|
32271
|
+
credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
|
|
32272
|
+
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
32273
|
+
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
32274
|
+
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
32275
|
+
orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
|
|
32276
|
+
}
|
|
32277
|
+
|
|
32278
|
+
export type UserCreateOrConnectWithoutMembershipsInput = {
|
|
32279
|
+
where: UserWhereUniqueInput
|
|
32280
|
+
create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
|
|
32281
|
+
}
|
|
32282
|
+
|
|
32283
|
+
export type UserCreateWithoutOrgMembersInput = {
|
|
32284
|
+
type: $Enums.UserType
|
|
32285
|
+
createdAt?: Date | string
|
|
32286
|
+
updatedAt?: Date | string
|
|
32287
|
+
email?: string | null
|
|
32288
|
+
username?: string | null
|
|
32289
|
+
hashword?: string | null
|
|
32290
|
+
appUserId?: string | null
|
|
32291
|
+
appOrgId?: string | null
|
|
32292
|
+
name?: string | null
|
|
32293
|
+
organization?: UserCreateNestedOneWithoutMembersInput
|
|
32294
|
+
members?: UserCreateNestedManyWithoutOrganizationInput
|
|
32295
|
+
tokens?: TokenCreateNestedManyWithoutUserInput
|
|
32296
|
+
credentials?: CredentialCreateNestedManyWithoutUserInput
|
|
32297
|
+
entities?: EntityCreateNestedManyWithoutUserInput
|
|
32298
|
+
integrations?: IntegrationCreateNestedManyWithoutUserInput
|
|
32299
|
+
processes?: ProcessCreateNestedManyWithoutUserInput
|
|
32300
|
+
memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
|
|
32301
|
+
}
|
|
32302
|
+
|
|
32303
|
+
export type UserUncheckedCreateWithoutOrgMembersInput = {
|
|
32304
|
+
id?: number
|
|
32305
|
+
type: $Enums.UserType
|
|
32306
|
+
createdAt?: Date | string
|
|
32307
|
+
updatedAt?: Date | string
|
|
32308
|
+
email?: string | null
|
|
32309
|
+
username?: string | null
|
|
32310
|
+
hashword?: string | null
|
|
32311
|
+
appUserId?: string | null
|
|
32312
|
+
organizationId?: number | null
|
|
32313
|
+
appOrgId?: string | null
|
|
32314
|
+
name?: string | null
|
|
32315
|
+
members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
|
|
32316
|
+
tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
|
|
32317
|
+
credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
|
|
32318
|
+
entities?: EntityUncheckedCreateNestedManyWithoutUserInput
|
|
32319
|
+
integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
|
|
32320
|
+
processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
|
|
32321
|
+
memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
|
|
32322
|
+
}
|
|
32323
|
+
|
|
32324
|
+
export type UserCreateOrConnectWithoutOrgMembersInput = {
|
|
32325
|
+
where: UserWhereUniqueInput
|
|
32326
|
+
create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
|
|
32327
|
+
}
|
|
32328
|
+
|
|
32329
|
+
export type UserUpsertWithoutMembershipsInput = {
|
|
32330
|
+
update: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
|
|
32331
|
+
create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
|
|
32332
|
+
where?: UserWhereInput
|
|
32333
|
+
}
|
|
32334
|
+
|
|
32335
|
+
export type UserUpdateToOneWithWhereWithoutMembershipsInput = {
|
|
32336
|
+
where?: UserWhereInput
|
|
32337
|
+
data: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
|
|
32338
|
+
}
|
|
32339
|
+
|
|
32340
|
+
export type UserUpdateWithoutMembershipsInput = {
|
|
32341
|
+
type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
|
|
32342
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32343
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32344
|
+
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32345
|
+
username?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32346
|
+
hashword?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32347
|
+
appUserId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32348
|
+
appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32349
|
+
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32350
|
+
organization?: UserUpdateOneWithoutMembersNestedInput
|
|
32351
|
+
members?: UserUpdateManyWithoutOrganizationNestedInput
|
|
32352
|
+
tokens?: TokenUpdateManyWithoutUserNestedInput
|
|
32353
|
+
credentials?: CredentialUpdateManyWithoutUserNestedInput
|
|
32354
|
+
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
32355
|
+
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
32356
|
+
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
32357
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
32358
|
+
}
|
|
32359
|
+
|
|
32360
|
+
export type UserUncheckedUpdateWithoutMembershipsInput = {
|
|
32361
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
32362
|
+
type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
|
|
32363
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32364
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32365
|
+
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32366
|
+
username?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32367
|
+
hashword?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32368
|
+
appUserId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32369
|
+
organizationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
32370
|
+
appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32371
|
+
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32372
|
+
members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
|
|
32373
|
+
tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
|
|
32374
|
+
credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
|
|
32375
|
+
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
32376
|
+
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
32377
|
+
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
32378
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
32379
|
+
}
|
|
32380
|
+
|
|
32381
|
+
export type UserUpsertWithoutOrgMembersInput = {
|
|
32382
|
+
update: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
|
|
32383
|
+
create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
|
|
32384
|
+
where?: UserWhereInput
|
|
32385
|
+
}
|
|
32386
|
+
|
|
32387
|
+
export type UserUpdateToOneWithWhereWithoutOrgMembersInput = {
|
|
32388
|
+
where?: UserWhereInput
|
|
32389
|
+
data: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
|
|
32390
|
+
}
|
|
32391
|
+
|
|
32392
|
+
export type UserUpdateWithoutOrgMembersInput = {
|
|
32393
|
+
type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
|
|
32394
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32395
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32396
|
+
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32397
|
+
username?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32398
|
+
hashword?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32399
|
+
appUserId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32400
|
+
appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32401
|
+
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32402
|
+
organization?: UserUpdateOneWithoutMembersNestedInput
|
|
32403
|
+
members?: UserUpdateManyWithoutOrganizationNestedInput
|
|
32404
|
+
tokens?: TokenUpdateManyWithoutUserNestedInput
|
|
32405
|
+
credentials?: CredentialUpdateManyWithoutUserNestedInput
|
|
32406
|
+
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
32407
|
+
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
32408
|
+
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
32409
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
32410
|
+
}
|
|
32411
|
+
|
|
32412
|
+
export type UserUncheckedUpdateWithoutOrgMembersInput = {
|
|
32413
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
32414
|
+
type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
|
|
32415
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32416
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32417
|
+
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32418
|
+
username?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32419
|
+
hashword?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32420
|
+
appUserId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32421
|
+
organizationId?: NullableIntFieldUpdateOperationsInput | number | null
|
|
32422
|
+
appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32423
|
+
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
32424
|
+
members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
|
|
32425
|
+
tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
|
|
32426
|
+
credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
|
|
32427
|
+
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
32428
|
+
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
32429
|
+
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
32430
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
32431
|
+
}
|
|
32432
|
+
|
|
30521
32433
|
export type UserCreateManyOrganizationInput = {
|
|
30522
32434
|
id?: number
|
|
30523
32435
|
type: $Enums.UserType
|
|
@@ -30584,6 +32496,20 @@ export namespace Prisma {
|
|
|
30584
32496
|
updatedAt?: Date | string
|
|
30585
32497
|
}
|
|
30586
32498
|
|
|
32499
|
+
export type OrganizationMembershipCreateManyIndividualUserInput = {
|
|
32500
|
+
id?: number
|
|
32501
|
+
organizationUserId: number
|
|
32502
|
+
orgRole?: string
|
|
32503
|
+
createdAt?: Date | string
|
|
32504
|
+
}
|
|
32505
|
+
|
|
32506
|
+
export type OrganizationMembershipCreateManyOrganizationUserInput = {
|
|
32507
|
+
id?: number
|
|
32508
|
+
individualUserId: number
|
|
32509
|
+
orgRole?: string
|
|
32510
|
+
createdAt?: Date | string
|
|
32511
|
+
}
|
|
32512
|
+
|
|
30587
32513
|
export type UserUpdateWithoutOrganizationInput = {
|
|
30588
32514
|
type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
|
|
30589
32515
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -30600,6 +32526,8 @@ export namespace Prisma {
|
|
|
30600
32526
|
entities?: EntityUpdateManyWithoutUserNestedInput
|
|
30601
32527
|
integrations?: IntegrationUpdateManyWithoutUserNestedInput
|
|
30602
32528
|
processes?: ProcessUpdateManyWithoutUserNestedInput
|
|
32529
|
+
memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
|
|
32530
|
+
orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
|
|
30603
32531
|
}
|
|
30604
32532
|
|
|
30605
32533
|
export type UserUncheckedUpdateWithoutOrganizationInput = {
|
|
@@ -30619,6 +32547,8 @@ export namespace Prisma {
|
|
|
30619
32547
|
entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
|
|
30620
32548
|
integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
|
|
30621
32549
|
processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
|
|
32550
|
+
memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
|
|
32551
|
+
orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
|
|
30622
32552
|
}
|
|
30623
32553
|
|
|
30624
32554
|
export type UserUncheckedUpdateManyWithoutOrganizationInput = {
|
|
@@ -30810,6 +32740,46 @@ export namespace Prisma {
|
|
|
30810
32740
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
30811
32741
|
}
|
|
30812
32742
|
|
|
32743
|
+
export type OrganizationMembershipUpdateWithoutIndividualUserInput = {
|
|
32744
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
32745
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32746
|
+
organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
|
|
32747
|
+
}
|
|
32748
|
+
|
|
32749
|
+
export type OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput = {
|
|
32750
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
32751
|
+
organizationUserId?: IntFieldUpdateOperationsInput | number
|
|
32752
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
32753
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32754
|
+
}
|
|
32755
|
+
|
|
32756
|
+
export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput = {
|
|
32757
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
32758
|
+
organizationUserId?: IntFieldUpdateOperationsInput | number
|
|
32759
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
32760
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32761
|
+
}
|
|
32762
|
+
|
|
32763
|
+
export type OrganizationMembershipUpdateWithoutOrganizationUserInput = {
|
|
32764
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
32765
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32766
|
+
individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
|
|
32767
|
+
}
|
|
32768
|
+
|
|
32769
|
+
export type OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput = {
|
|
32770
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
32771
|
+
individualUserId?: IntFieldUpdateOperationsInput | number
|
|
32772
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
32773
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32774
|
+
}
|
|
32775
|
+
|
|
32776
|
+
export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput = {
|
|
32777
|
+
id?: IntFieldUpdateOperationsInput | number
|
|
32778
|
+
individualUserId?: IntFieldUpdateOperationsInput | number
|
|
32779
|
+
orgRole?: StringFieldUpdateOperationsInput | string
|
|
32780
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
32781
|
+
}
|
|
32782
|
+
|
|
30813
32783
|
export type EntityCreateManyCredentialInput = {
|
|
30814
32784
|
id?: number
|
|
30815
32785
|
userId?: number | null
|