@kosha-ai/server 0.1.0 → 0.2.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/dist/auth/api-key.guard.d.ts +7 -2
- package/dist/auth/api-key.guard.d.ts.map +1 -1
- package/dist/auth/api-key.guard.js +28 -8
- package/dist/auth/auth.factory.d.ts +15 -1
- package/dist/auth/auth.factory.d.ts.map +1 -1
- package/dist/auth/auth.factory.js +48 -2
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +24 -6
- package/dist/configurations/configurations.controller.d.ts +11 -136
- package/dist/configurations/configurations.controller.d.ts.map +1 -1
- package/dist/configurations/configurations.controller.js +58 -25
- package/dist/configurations/configurations.module.d.ts.map +1 -1
- package/dist/configurations/configurations.module.js +4 -1
- package/dist/configurations/configurations.repository.d.ts +43 -0
- package/dist/configurations/configurations.repository.d.ts.map +1 -0
- package/dist/configurations/configurations.repository.js +76 -0
- package/dist/configurations/configurations.service.d.ts +38 -194
- package/dist/configurations/configurations.service.d.ts.map +1 -1
- package/dist/configurations/configurations.service.js +118 -110
- package/dist/configurations/dto/create-configuration.dto.d.ts +8 -0
- package/dist/configurations/dto/create-configuration.dto.d.ts.map +1 -0
- package/dist/configurations/dto/create-configuration.dto.js +54 -0
- package/dist/configurations/dto/update-configuration.dto.d.ts +7 -0
- package/dist/configurations/dto/update-configuration.dto.d.ts.map +1 -0
- package/dist/configurations/dto/update-configuration.dto.js +39 -0
- package/dist/connect/connect.controller.d.ts +6 -8
- package/dist/connect/connect.controller.d.ts.map +1 -1
- package/dist/connect/connect.controller.js +45 -15
- package/dist/connect/connect.module.d.ts.map +1 -1
- package/dist/connect/connect.module.js +4 -2
- package/dist/connect/connect.repository.d.ts +78 -0
- package/dist/connect/connect.repository.d.ts.map +1 -0
- package/dist/connect/connect.repository.js +146 -0
- package/dist/connect/connect.service.d.ts +28 -19
- package/dist/connect/connect.service.d.ts.map +1 -1
- package/dist/connect/connect.service.js +149 -163
- package/dist/connect/dto/create-connect-session.dto.d.ts +8 -0
- package/dist/connect/dto/create-connect-session.dto.d.ts.map +1 -0
- package/dist/connect/dto/create-connect-session.dto.js +55 -0
- package/dist/connect/dto/create-test-session.dto.d.ts +10 -0
- package/dist/connect/dto/create-test-session.dto.d.ts.map +1 -0
- package/dist/connect/dto/create-test-session.dto.js +34 -0
- package/dist/connections/connections.controller.d.ts +8 -61
- package/dist/connections/connections.controller.d.ts.map +1 -1
- package/dist/connections/connections.controller.js +31 -9
- package/dist/connections/connections.module.d.ts.map +1 -1
- package/dist/connections/connections.module.js +4 -1
- package/dist/connections/connections.repository.d.ts +24 -0
- package/dist/connections/connections.repository.d.ts.map +1 -0
- package/dist/connections/connections.repository.js +66 -0
- package/dist/connections/connections.service.d.ts +24 -69
- package/dist/connections/connections.service.d.ts.map +1 -1
- package/dist/connections/connections.service.js +59 -56
- package/dist/connections/dto/list-connections.dto.d.ts +5 -0
- package/dist/connections/dto/list-connections.dto.d.ts.map +1 -0
- package/dist/connections/dto/list-connections.dto.js +25 -0
- package/dist/connections/environment-connections.controller.d.ts +26 -0
- package/dist/connections/environment-connections.controller.d.ts.map +1 -0
- package/dist/connections/environment-connections.controller.js +81 -0
- package/dist/connections/environment-connections.module.d.ts +11 -0
- package/dist/connections/environment-connections.module.d.ts.map +1 -0
- package/dist/connections/environment-connections.module.js +21 -0
- package/dist/credentials/credentials.module.js +3 -3
- package/dist/credentials/credentials.repository.d.ts +8 -0
- package/dist/credentials/credentials.repository.d.ts.map +1 -0
- package/dist/credentials/credentials.repository.js +21 -0
- package/dist/credentials/credentials.service.d.ts +19 -29
- package/dist/credentials/credentials.service.d.ts.map +1 -1
- package/dist/credentials/credentials.service.js +84 -57
- package/dist/crypto/credential-envelope.d.ts +56 -0
- package/dist/crypto/credential-envelope.d.ts.map +1 -0
- package/dist/crypto/credential-envelope.js +70 -0
- package/dist/crypto/crypto.service.d.ts +8 -0
- package/dist/crypto/crypto.service.d.ts.map +1 -1
- package/dist/crypto/crypto.service.js +12 -0
- package/dist/egress/dto/mint-grant.dto.d.ts +7 -0
- package/dist/egress/dto/mint-grant.dto.d.ts.map +1 -0
- package/dist/egress/dto/mint-grant.dto.js +44 -0
- package/dist/egress/egress.controller.d.ts +2 -8
- package/dist/egress/egress.controller.d.ts.map +1 -1
- package/dist/egress/egress.controller.js +27 -6
- package/dist/egress/egress.listener.d.ts +3 -1
- package/dist/egress/egress.listener.d.ts.map +1 -1
- package/dist/egress/egress.listener.js +12 -8
- package/dist/egress/egress.module.d.ts.map +1 -1
- package/dist/egress/egress.module.js +10 -2
- package/dist/egress/egress.repository.d.ts +58 -0
- package/dist/egress/egress.repository.d.ts.map +1 -0
- package/dist/egress/egress.repository.js +116 -0
- package/dist/egress/grants.service.d.ts +23 -78
- package/dist/egress/grants.service.d.ts.map +1 -1
- package/dist/egress/grants.service.js +44 -104
- package/dist/environments/dto/create-environment.dto.d.ts +6 -0
- package/dist/environments/dto/create-environment.dto.d.ts.map +1 -0
- package/dist/environments/dto/create-environment.dto.js +34 -0
- package/dist/environments/dto/update-environment.dto.d.ts +5 -0
- package/dist/environments/dto/update-environment.dto.d.ts.map +1 -0
- package/dist/environments/dto/update-environment.dto.js +24 -0
- package/dist/environments/environments.controller.d.ts +53 -0
- package/dist/environments/environments.controller.d.ts.map +1 -0
- package/dist/environments/environments.controller.js +101 -0
- package/dist/environments/environments.module.d.ts +3 -0
- package/dist/environments/environments.module.d.ts.map +1 -0
- package/dist/environments/environments.module.js +15 -0
- package/dist/environments/environments.repository.d.ts +37 -0
- package/dist/environments/environments.repository.d.ts.map +1 -0
- package/dist/environments/environments.repository.js +82 -0
- package/dist/environments/environments.service.d.ts +43 -0
- package/dist/environments/environments.service.d.ts.map +1 -0
- package/dist/environments/environments.service.js +124 -0
- package/dist/generated/prisma/browser.d.ts +14 -37
- package/dist/generated/prisma/browser.d.ts.map +1 -1
- package/dist/generated/prisma/client.d.ts +14 -37
- package/dist/generated/prisma/client.d.ts.map +1 -1
- package/dist/generated/prisma/commonInputTypes.d.ts +104 -145
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -1
- package/dist/generated/prisma/enums.d.ts +1 -21
- package/dist/generated/prisma/enums.d.ts.map +1 -1
- package/dist/generated/prisma/enums.js +1 -18
- package/dist/generated/prisma/internal/class.d.ts +20 -53
- package/dist/generated/prisma/internal/class.d.ts.map +1 -1
- package/dist/generated/prisma/internal/class.js +4 -4
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +215 -519
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespace.js +38 -90
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +37 -92
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +38 -90
- package/dist/generated/prisma/models/Account.d.ts +344 -26
- package/dist/generated/prisma/models/Account.d.ts.map +1 -1
- package/dist/generated/prisma/models/Configuration.d.ts +218 -851
- package/dist/generated/prisma/models/Configuration.d.ts.map +1 -1
- package/dist/generated/prisma/models/EgressGrant.d.ts +131 -134
- package/dist/generated/prisma/models/EgressGrant.d.ts.map +1 -1
- package/dist/generated/prisma/models/Environment.d.ts +1644 -0
- package/dist/generated/prisma/models/Environment.d.ts.map +1 -0
- package/dist/generated/prisma/models/Invitation.d.ts +42 -1
- package/dist/generated/prisma/models/Invitation.d.ts.map +1 -1
- package/dist/generated/prisma/models/Organization.d.ts +122 -408
- package/dist/generated/prisma/models/Organization.d.ts.map +1 -1
- package/dist/generated/prisma/models/Session.d.ts +36 -1
- package/dist/generated/prisma/models/Session.d.ts.map +1 -1
- package/dist/generated/prisma/models/Team.d.ts +1498 -0
- package/dist/generated/prisma/models/Team.d.ts.map +1 -0
- package/dist/generated/prisma/models/TeamMember.d.ts +1281 -0
- package/dist/generated/prisma/models/TeamMember.d.ts.map +1 -0
- package/dist/generated/prisma/models/User.d.ts +338 -2
- package/dist/generated/prisma/models/User.d.ts.map +1 -1
- package/dist/generated/prisma/models.d.ts +3 -6
- package/dist/generated/prisma/models.d.ts.map +1 -1
- package/dist/index.d.ts +15 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/integrations/integrations.controller.d.ts +2 -1
- package/dist/integrations/integrations.controller.d.ts.map +1 -1
- package/dist/integrations/integrations.module.d.ts.map +1 -1
- package/dist/integrations/integrations.module.js +0 -2
- package/dist/kosha.module.d.ts.map +1 -1
- package/dist/kosha.module.js +9 -3
- package/dist/proxy/proxy.controller.d.ts +8 -3
- package/dist/proxy/proxy.controller.d.ts.map +1 -1
- package/dist/proxy/proxy.controller.js +26 -10
- package/dist/proxy/proxy.module.d.ts.map +1 -1
- package/dist/proxy/proxy.module.js +5 -2
- package/dist/proxy/proxy.repository.d.ts +24 -0
- package/dist/proxy/proxy.repository.d.ts.map +1 -0
- package/dist/proxy/proxy.repository.js +47 -0
- package/dist/proxy/proxy.service.d.ts +17 -5
- package/dist/proxy/proxy.service.d.ts.map +1 -1
- package/dist/proxy/proxy.service.js +58 -27
- package/package.json +7 -4
- package/prisma/migrations/20260929101936_init/migration.sql +345 -0
- package/prisma/migrations/20260930102529_connection_config/migration.sql +2 -0
- package/prisma/schema.prisma +93 -198
- package/dist/generated/prisma/models/ConnectSession.d.ts +0 -1606
- package/dist/generated/prisma/models/ConnectSession.d.ts.map +0 -1
- package/dist/generated/prisma/models/Connection.d.ts +0 -1949
- package/dist/generated/prisma/models/Connection.d.ts.map +0 -1
- package/dist/generated/prisma/models/ConnectionCredential.d.ts +0 -1293
- package/dist/generated/prisma/models/ConnectionCredential.d.ts.map +0 -1
- package/dist/generated/prisma/models/EndUser.d.ts +0 -1666
- package/dist/generated/prisma/models/EndUser.d.ts.map +0 -1
- package/dist/generated/prisma/models/EndUser.js +0 -1
- package/dist/generated/prisma/models/OAuthState.d.ts +0 -1404
- package/dist/generated/prisma/models/OAuthState.d.ts.map +0 -1
- package/dist/generated/prisma/models/OAuthState.js +0 -1
- package/dist/generated/prisma/models/Provider.d.ts +0 -1462
- package/dist/generated/prisma/models/Provider.d.ts.map +0 -1
- package/dist/generated/prisma/models/Provider.js +0 -1
- package/dist/integrations/provider-sync.service.d.ts +0 -24
- package/dist/integrations/provider-sync.service.d.ts.map +0 -1
- package/dist/integrations/provider-sync.service.js +0 -74
- package/prisma/migrations/20260908000000_init/migration.sql +0 -209
- package/prisma/migrations/20260908161813_add_connect_domain/migration.sql +0 -173
- package/prisma/migrations/20260916000000_add_configuration_slug/migration.sql +0 -15
- package/prisma/migrations/20260921000000_add_egress_grant/migration.sql +0 -31
- /package/dist/generated/prisma/models/{ConnectSession.js → Environment.js} +0 -0
- /package/dist/generated/prisma/models/{Connection.js → Team.js} +0 -0
- /package/dist/generated/prisma/models/{ConnectionCredential.js → TeamMember.js} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Environment } from '../generated/prisma/client.js';
|
|
2
|
+
import type { CreateEnvironmentDto } from './dto/create-environment.dto.js';
|
|
3
|
+
import type { UpdateEnvironmentDto } from './dto/update-environment.dto.js';
|
|
4
|
+
import { EnvironmentsRepository } from './environments.repository.js';
|
|
5
|
+
export declare class EnvironmentsService {
|
|
6
|
+
private readonly environments;
|
|
7
|
+
constructor(environments: EnvironmentsRepository);
|
|
8
|
+
/**
|
|
9
|
+
* What the member can reach: an environment with no team is open to the
|
|
10
|
+
* whole organization, one with a team needs membership of it.
|
|
11
|
+
*/
|
|
12
|
+
listFor(organizationId: string, userId: string): Promise<Environment[]>;
|
|
13
|
+
/**
|
|
14
|
+
* For machine callers. An API key already names one environment and the
|
|
15
|
+
* guard has checked it belongs to the key's organization; a key is not a
|
|
16
|
+
* person and has no teams.
|
|
17
|
+
*/
|
|
18
|
+
get(organizationId: string, id: string): Promise<Environment>;
|
|
19
|
+
/**
|
|
20
|
+
* For a signed-in person. A team gates the environment itself, not merely
|
|
21
|
+
* its place in a listing — otherwise the id is the whole security of it, and
|
|
22
|
+
* ids travel.
|
|
23
|
+
*
|
|
24
|
+
* Answers "not found" rather than "forbidden", so nobody learns which
|
|
25
|
+
* environments exist by asking.
|
|
26
|
+
*/
|
|
27
|
+
getForMember(organizationId: string, userId: string, id: string): Promise<Environment>;
|
|
28
|
+
/** Resolves the slug a caller quotes, within one organization. */
|
|
29
|
+
getBySlug(organizationId: string, slug: string): Promise<Environment>;
|
|
30
|
+
create(organizationId: string, input: CreateEnvironmentDto): Promise<Environment>;
|
|
31
|
+
update(organizationId: string, userId: string, id: string, input: UpdateEnvironmentDto): Promise<Environment>;
|
|
32
|
+
remove(organizationId: string, userId: string, id: string): Promise<void>;
|
|
33
|
+
/** Called from the organization-creation hook. */
|
|
34
|
+
seedDefaults(organizationId: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* The environment an API key names, re-checked against the key's own
|
|
37
|
+
* organization. `apikey.metadata` is a soft reference: nothing stops a key
|
|
38
|
+
* naming an environment that has since moved or gone.
|
|
39
|
+
*/
|
|
40
|
+
resolveForOrganization(organizationId: string, environmentId: unknown): Promise<Environment>;
|
|
41
|
+
private assertTeamBelongs;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=environments.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environments.service.d.ts","sourceRoot":"","sources":["../../src/environments/environments.service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAWtE,qBACa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,sBAAsB;IAEjE;;;OAGG;IACG,OAAO,CACX,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,WAAW,EAAE,CAAC;IAKzB;;;;OAIG;IACG,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAMnE;;;;;;;OAOG;IACG,YAAY,CAChB,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,WAAW,CAAC;IAWvB,kEAAkE;IAC5D,SAAS,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IASrE,MAAM,CACV,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,WAAW,CAAC;IAsBjB,MAAM,CACV,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,WAAW,CAAC;IAWjB,MAAM,CACV,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,IAAI,CAAC;IAKhB,kDAAkD;IAC5C,YAAY,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMzD;;;;OAIG;IACG,sBAAsB,CAC1B,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,OAAO,GACrB,OAAO,CAAC,WAAW,CAAC;YAmBT,iBAAiB;CAUhC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { BadRequestException, Injectable, NotFoundException, } from '@nestjs/common';
|
|
3
|
+
import { EnvironmentsRepository } from './environments.repository.js';
|
|
4
|
+
/**
|
|
5
|
+
* Every organization starts with these two. Sandbox is first so a new
|
|
6
|
+
* organization does not point at production by omission.
|
|
7
|
+
*/
|
|
8
|
+
const DEFAULTS = [
|
|
9
|
+
{ name: 'Sandbox', slug: 'sandbox' },
|
|
10
|
+
{ name: 'Production', slug: 'production' },
|
|
11
|
+
];
|
|
12
|
+
let EnvironmentsService = class EnvironmentsService {
|
|
13
|
+
environments;
|
|
14
|
+
constructor(environments) {
|
|
15
|
+
this.environments = environments;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* What the member can reach: an environment with no team is open to the
|
|
19
|
+
* whole organization, one with a team needs membership of it.
|
|
20
|
+
*/
|
|
21
|
+
async listFor(organizationId, userId) {
|
|
22
|
+
const teamIds = await this.environments.teamIdsFor(organizationId, userId);
|
|
23
|
+
return this.environments.findVisible(organizationId, teamIds);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* For machine callers. An API key already names one environment and the
|
|
27
|
+
* guard has checked it belongs to the key's organization; a key is not a
|
|
28
|
+
* person and has no teams.
|
|
29
|
+
*/
|
|
30
|
+
async get(organizationId, id) {
|
|
31
|
+
const environment = await this.environments.findById(organizationId, id);
|
|
32
|
+
if (!environment)
|
|
33
|
+
throw new NotFoundException('Environment not found');
|
|
34
|
+
return environment;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* For a signed-in person. A team gates the environment itself, not merely
|
|
38
|
+
* its place in a listing — otherwise the id is the whole security of it, and
|
|
39
|
+
* ids travel.
|
|
40
|
+
*
|
|
41
|
+
* Answers "not found" rather than "forbidden", so nobody learns which
|
|
42
|
+
* environments exist by asking.
|
|
43
|
+
*/
|
|
44
|
+
async getForMember(organizationId, userId, id) {
|
|
45
|
+
const teamIds = await this.environments.teamIdsFor(organizationId, userId);
|
|
46
|
+
const environment = await this.environments.findVisibleById(organizationId, id, teamIds);
|
|
47
|
+
if (!environment)
|
|
48
|
+
throw new NotFoundException('Environment not found');
|
|
49
|
+
return environment;
|
|
50
|
+
}
|
|
51
|
+
/** Resolves the slug a caller quotes, within one organization. */
|
|
52
|
+
async getBySlug(organizationId, slug) {
|
|
53
|
+
const environment = await this.environments.findBySlug(organizationId, slug);
|
|
54
|
+
if (!environment)
|
|
55
|
+
throw new NotFoundException('Environment not found');
|
|
56
|
+
return environment;
|
|
57
|
+
}
|
|
58
|
+
async create(organizationId, input) {
|
|
59
|
+
const name = input.name.trim();
|
|
60
|
+
if (!name)
|
|
61
|
+
throw new BadRequestException('name is required');
|
|
62
|
+
const slug = slugify(input.slug ?? name);
|
|
63
|
+
if (!slug) {
|
|
64
|
+
throw new BadRequestException('slug must contain at least one letter or digit');
|
|
65
|
+
}
|
|
66
|
+
if (input.teamId)
|
|
67
|
+
await this.assertTeamBelongs(organizationId, input.teamId);
|
|
68
|
+
return this.environments.create({
|
|
69
|
+
organizationId,
|
|
70
|
+
name,
|
|
71
|
+
slug,
|
|
72
|
+
teamId: input.teamId ?? null,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
async update(organizationId, userId, id, input) {
|
|
76
|
+
await this.getForMember(organizationId, userId, id);
|
|
77
|
+
if (input.teamId)
|
|
78
|
+
await this.assertTeamBelongs(organizationId, input.teamId);
|
|
79
|
+
return this.environments.update(id, {
|
|
80
|
+
name: input.name?.trim(),
|
|
81
|
+
teamId: input.teamId,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
async remove(organizationId, userId, id) {
|
|
85
|
+
await this.getForMember(organizationId, userId, id);
|
|
86
|
+
await this.environments.delete(id);
|
|
87
|
+
}
|
|
88
|
+
/** Called from the organization-creation hook. */
|
|
89
|
+
async seedDefaults(organizationId) {
|
|
90
|
+
await this.environments.createMany(DEFAULTS.map((environment) => ({ ...environment, organizationId })));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The environment an API key names, re-checked against the key's own
|
|
94
|
+
* organization. `apikey.metadata` is a soft reference: nothing stops a key
|
|
95
|
+
* naming an environment that has since moved or gone.
|
|
96
|
+
*/
|
|
97
|
+
async resolveForOrganization(organizationId, environmentId) {
|
|
98
|
+
if (typeof environmentId !== 'string' || !environmentId) {
|
|
99
|
+
throw new BadRequestException('This API key names no environment. Re-issue it against one.');
|
|
100
|
+
}
|
|
101
|
+
const environment = await this.environments.findById(organizationId, environmentId);
|
|
102
|
+
if (!environment) {
|
|
103
|
+
throw new BadRequestException('This API key names an environment that does not belong to its organization');
|
|
104
|
+
}
|
|
105
|
+
return environment;
|
|
106
|
+
}
|
|
107
|
+
async assertTeamBelongs(organizationId, teamId) {
|
|
108
|
+
if (!(await this.environments.teamExists(organizationId, teamId))) {
|
|
109
|
+
throw new BadRequestException('That team belongs to another organization');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
EnvironmentsService = __decorate([
|
|
114
|
+
Injectable(),
|
|
115
|
+
__metadata("design:paramtypes", [EnvironmentsRepository])
|
|
116
|
+
], EnvironmentsService);
|
|
117
|
+
export { EnvironmentsService };
|
|
118
|
+
/** Lowercase, digits and single dashes. Empty if the input has no word chars. */
|
|
119
|
+
function slugify(value) {
|
|
120
|
+
return value
|
|
121
|
+
.toLowerCase()
|
|
122
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
123
|
+
.replace(/^-+|-+$/g, '');
|
|
124
|
+
}
|
|
@@ -38,53 +38,30 @@ export type Member = Prisma.MemberModel;
|
|
|
38
38
|
*/
|
|
39
39
|
export type Invitation = Prisma.InvitationModel;
|
|
40
40
|
/**
|
|
41
|
-
* Model
|
|
41
|
+
* Model Team
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
export type
|
|
45
|
-
/**
|
|
46
|
-
* Model Provider
|
|
47
|
-
* Catalogue of providers Kosha can talk to. Derived state: every row is
|
|
48
|
-
* upserted at boot from the installed integration packages, and rows whose
|
|
49
|
-
* package is gone are deactivated rather than deleted.
|
|
50
|
-
*/
|
|
51
|
-
export type Provider = Prisma.ProviderModel;
|
|
52
|
-
/**
|
|
53
|
-
* Model Configuration
|
|
54
|
-
* One organization's setup of one provider: which OAuth app, which scopes,
|
|
55
|
-
* which environment. `metadata` holds the integration's own `configFields`.
|
|
56
|
-
*/
|
|
57
|
-
export type Configuration = Prisma.ConfigurationModel;
|
|
58
|
-
/**
|
|
59
|
-
* Model EndUser
|
|
60
|
-
* The organization's own users, identified by the organization's id for them
|
|
61
|
-
* — never by a Kosha auth user.
|
|
62
|
-
*/
|
|
63
|
-
export type EndUser = Prisma.EndUserModel;
|
|
44
|
+
export type Team = Prisma.TeamModel;
|
|
64
45
|
/**
|
|
65
|
-
* Model
|
|
66
|
-
*
|
|
67
|
-
* hold several connections against the same configuration (two GitHub
|
|
68
|
-
* accounts), so uniqueness is per provider account, not per end user.
|
|
46
|
+
* Model TeamMember
|
|
47
|
+
*
|
|
69
48
|
*/
|
|
70
|
-
export type
|
|
49
|
+
export type TeamMember = Prisma.TeamMemberModel;
|
|
71
50
|
/**
|
|
72
|
-
* Model
|
|
73
|
-
*
|
|
74
|
-
* Every token column is AES-256-GCM ciphertext.
|
|
51
|
+
* Model Apikey
|
|
52
|
+
*
|
|
75
53
|
*/
|
|
76
|
-
export type
|
|
54
|
+
export type Apikey = Prisma.ApikeyModel;
|
|
77
55
|
/**
|
|
78
|
-
* Model
|
|
79
|
-
*
|
|
80
|
-
* connect flow.
|
|
56
|
+
* Model Environment
|
|
57
|
+
*
|
|
81
58
|
*/
|
|
82
|
-
export type
|
|
59
|
+
export type Environment = Prisma.EnvironmentModel;
|
|
83
60
|
/**
|
|
84
|
-
* Model
|
|
85
|
-
*
|
|
61
|
+
* Model Configuration
|
|
62
|
+
*
|
|
86
63
|
*/
|
|
87
|
-
export type
|
|
64
|
+
export type Configuration = Prisma.ConfigurationModel;
|
|
88
65
|
/**
|
|
89
66
|
* Model EgressGrant
|
|
90
67
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/browser.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,MAAM,sCAAsC,CAAA;AAC9D,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAC;AAC3B;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/browser.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,MAAM,sCAAsC,CAAA;AAC9D,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAC;AAC3B;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA;AACjD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAA;AACrD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA"}
|
|
@@ -57,53 +57,30 @@ export type Member = Prisma.MemberModel;
|
|
|
57
57
|
*/
|
|
58
58
|
export type Invitation = Prisma.InvitationModel;
|
|
59
59
|
/**
|
|
60
|
-
* Model
|
|
60
|
+
* Model Team
|
|
61
61
|
*
|
|
62
62
|
*/
|
|
63
|
-
export type
|
|
64
|
-
/**
|
|
65
|
-
* Model Provider
|
|
66
|
-
* Catalogue of providers Kosha can talk to. Derived state: every row is
|
|
67
|
-
* upserted at boot from the installed integration packages, and rows whose
|
|
68
|
-
* package is gone are deactivated rather than deleted.
|
|
69
|
-
*/
|
|
70
|
-
export type Provider = Prisma.ProviderModel;
|
|
71
|
-
/**
|
|
72
|
-
* Model Configuration
|
|
73
|
-
* One organization's setup of one provider: which OAuth app, which scopes,
|
|
74
|
-
* which environment. `metadata` holds the integration's own `configFields`.
|
|
75
|
-
*/
|
|
76
|
-
export type Configuration = Prisma.ConfigurationModel;
|
|
77
|
-
/**
|
|
78
|
-
* Model EndUser
|
|
79
|
-
* The organization's own users, identified by the organization's id for them
|
|
80
|
-
* — never by a Kosha auth user.
|
|
81
|
-
*/
|
|
82
|
-
export type EndUser = Prisma.EndUserModel;
|
|
63
|
+
export type Team = Prisma.TeamModel;
|
|
83
64
|
/**
|
|
84
|
-
* Model
|
|
85
|
-
*
|
|
86
|
-
* hold several connections against the same configuration (two GitHub
|
|
87
|
-
* accounts), so uniqueness is per provider account, not per end user.
|
|
65
|
+
* Model TeamMember
|
|
66
|
+
*
|
|
88
67
|
*/
|
|
89
|
-
export type
|
|
68
|
+
export type TeamMember = Prisma.TeamMemberModel;
|
|
90
69
|
/**
|
|
91
|
-
* Model
|
|
92
|
-
*
|
|
93
|
-
* Every token column is AES-256-GCM ciphertext.
|
|
70
|
+
* Model Apikey
|
|
71
|
+
*
|
|
94
72
|
*/
|
|
95
|
-
export type
|
|
73
|
+
export type Apikey = Prisma.ApikeyModel;
|
|
96
74
|
/**
|
|
97
|
-
* Model
|
|
98
|
-
*
|
|
99
|
-
* connect flow.
|
|
75
|
+
* Model Environment
|
|
76
|
+
*
|
|
100
77
|
*/
|
|
101
|
-
export type
|
|
78
|
+
export type Environment = Prisma.EnvironmentModel;
|
|
102
79
|
/**
|
|
103
|
-
* Model
|
|
104
|
-
*
|
|
80
|
+
* Model Configuration
|
|
81
|
+
*
|
|
105
82
|
*/
|
|
106
|
-
export type
|
|
83
|
+
export type Configuration = Prisma.ConfigurationModel;
|
|
107
84
|
/**
|
|
108
85
|
* Model EgressGrant
|
|
109
86
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/client.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AAExD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAEvD,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,gCAAgC,CAAA;AACzD,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,SAAS,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,SAAS,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;AAC3S,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/client.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AAExD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAEvD,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,gCAAgC,CAAA;AACzD,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,SAAS,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,SAAS,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;AAC3S,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA;AACjD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAA;AACrD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
-
import * as $Enums from "./enums.js";
|
|
3
2
|
import type * as Prisma from "./internal/prismaNamespace.js";
|
|
4
3
|
export type StringFilter<$PrismaModel = never> = {
|
|
5
4
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
@@ -111,6 +110,23 @@ export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
|
111
110
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
112
111
|
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
113
112
|
};
|
|
113
|
+
export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
114
|
+
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|
115
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
116
|
+
path?: string[];
|
|
117
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
118
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
119
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
120
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
121
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
122
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
123
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
124
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
125
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
126
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
127
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
128
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
129
|
+
};
|
|
114
130
|
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
115
131
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
116
132
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
@@ -124,6 +140,51 @@ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
124
140
|
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
125
141
|
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
126
142
|
};
|
|
143
|
+
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
144
|
+
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
145
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
146
|
+
path?: string[];
|
|
147
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
148
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
149
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
150
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
151
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
152
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
153
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
154
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
155
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
156
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
157
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
158
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
159
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
160
|
+
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
161
|
+
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
162
|
+
};
|
|
163
|
+
export type IntFilter<$PrismaModel = never> = {
|
|
164
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
165
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
166
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
167
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
168
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
169
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
170
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
171
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
172
|
+
};
|
|
173
|
+
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
174
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
175
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
176
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
177
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
178
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
179
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
180
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
181
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
182
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
183
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
184
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
185
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
186
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
187
|
+
};
|
|
127
188
|
export type IntNullableFilter<$PrismaModel = never> = {
|
|
128
189
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
129
190
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
@@ -160,88 +221,6 @@ export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
160
221
|
_min?: Prisma.NestedBoolNullableFilter<$PrismaModel>;
|
|
161
222
|
_max?: Prisma.NestedBoolNullableFilter<$PrismaModel>;
|
|
162
223
|
};
|
|
163
|
-
export type EnumAuthTypeFilter<$PrismaModel = never> = {
|
|
164
|
-
equals?: $Enums.AuthType | Prisma.EnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
165
|
-
in?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
166
|
-
notIn?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
167
|
-
not?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel> | $Enums.AuthType;
|
|
168
|
-
};
|
|
169
|
-
export type EnumAuthTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
170
|
-
equals?: $Enums.AuthType | Prisma.EnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
171
|
-
in?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
172
|
-
notIn?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
173
|
-
not?: Prisma.NestedEnumAuthTypeWithAggregatesFilter<$PrismaModel> | $Enums.AuthType;
|
|
174
|
-
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
175
|
-
_min?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel>;
|
|
176
|
-
_max?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel>;
|
|
177
|
-
};
|
|
178
|
-
export type EnumConnectionEnvironmentFilter<$PrismaModel = never> = {
|
|
179
|
-
equals?: $Enums.ConnectionEnvironment | Prisma.EnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
180
|
-
in?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
181
|
-
notIn?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
182
|
-
not?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel> | $Enums.ConnectionEnvironment;
|
|
183
|
-
};
|
|
184
|
-
export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
185
|
-
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|
186
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
187
|
-
path?: string[];
|
|
188
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
189
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
190
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
191
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
192
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
193
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
194
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
195
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
196
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
197
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
198
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
199
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
200
|
-
};
|
|
201
|
-
export type EnumConnectionEnvironmentWithAggregatesFilter<$PrismaModel = never> = {
|
|
202
|
-
equals?: $Enums.ConnectionEnvironment | Prisma.EnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
203
|
-
in?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
204
|
-
notIn?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
205
|
-
not?: Prisma.NestedEnumConnectionEnvironmentWithAggregatesFilter<$PrismaModel> | $Enums.ConnectionEnvironment;
|
|
206
|
-
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
207
|
-
_min?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel>;
|
|
208
|
-
_max?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel>;
|
|
209
|
-
};
|
|
210
|
-
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
211
|
-
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
212
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
213
|
-
path?: string[];
|
|
214
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
215
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
216
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
217
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
218
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
219
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
220
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
221
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
222
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
223
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
224
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
225
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
226
|
-
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
227
|
-
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
228
|
-
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
229
|
-
};
|
|
230
|
-
export type EnumConnectionStatusFilter<$PrismaModel = never> = {
|
|
231
|
-
equals?: $Enums.ConnectionStatus | Prisma.EnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
232
|
-
in?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
233
|
-
notIn?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
234
|
-
not?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel> | $Enums.ConnectionStatus;
|
|
235
|
-
};
|
|
236
|
-
export type EnumConnectionStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
237
|
-
equals?: $Enums.ConnectionStatus | Prisma.EnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
238
|
-
in?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
239
|
-
notIn?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
240
|
-
not?: Prisma.NestedEnumConnectionStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConnectionStatus;
|
|
241
|
-
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
242
|
-
_min?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel>;
|
|
243
|
-
_max?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel>;
|
|
244
|
-
};
|
|
245
224
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
246
225
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
247
226
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
@@ -377,6 +356,48 @@ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
377
356
|
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
378
357
|
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
379
358
|
};
|
|
359
|
+
export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
360
|
+
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|
361
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
362
|
+
path?: string[];
|
|
363
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
364
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
365
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
366
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
367
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
368
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
369
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
370
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
371
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
372
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
373
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
374
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
375
|
+
};
|
|
376
|
+
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
377
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
378
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
379
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
380
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
381
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
382
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
383
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
384
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
385
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
386
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
387
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
388
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
389
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
390
|
+
};
|
|
391
|
+
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
392
|
+
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
393
|
+
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
|
394
|
+
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
|
395
|
+
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
396
|
+
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
397
|
+
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
398
|
+
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
399
|
+
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
|
400
|
+
};
|
|
380
401
|
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
|
381
402
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null;
|
|
382
403
|
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null;
|
|
@@ -413,66 +434,4 @@ export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
413
434
|
_min?: Prisma.NestedBoolNullableFilter<$PrismaModel>;
|
|
414
435
|
_max?: Prisma.NestedBoolNullableFilter<$PrismaModel>;
|
|
415
436
|
};
|
|
416
|
-
export type NestedEnumAuthTypeFilter<$PrismaModel = never> = {
|
|
417
|
-
equals?: $Enums.AuthType | Prisma.EnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
418
|
-
in?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
419
|
-
notIn?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
420
|
-
not?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel> | $Enums.AuthType;
|
|
421
|
-
};
|
|
422
|
-
export type NestedEnumAuthTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
423
|
-
equals?: $Enums.AuthType | Prisma.EnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
424
|
-
in?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
425
|
-
notIn?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
|
|
426
|
-
not?: Prisma.NestedEnumAuthTypeWithAggregatesFilter<$PrismaModel> | $Enums.AuthType;
|
|
427
|
-
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
428
|
-
_min?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel>;
|
|
429
|
-
_max?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel>;
|
|
430
|
-
};
|
|
431
|
-
export type NestedEnumConnectionEnvironmentFilter<$PrismaModel = never> = {
|
|
432
|
-
equals?: $Enums.ConnectionEnvironment | Prisma.EnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
433
|
-
in?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
434
|
-
notIn?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
435
|
-
not?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel> | $Enums.ConnectionEnvironment;
|
|
436
|
-
};
|
|
437
|
-
export type NestedEnumConnectionEnvironmentWithAggregatesFilter<$PrismaModel = never> = {
|
|
438
|
-
equals?: $Enums.ConnectionEnvironment | Prisma.EnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
439
|
-
in?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
440
|
-
notIn?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
|
|
441
|
-
not?: Prisma.NestedEnumConnectionEnvironmentWithAggregatesFilter<$PrismaModel> | $Enums.ConnectionEnvironment;
|
|
442
|
-
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
443
|
-
_min?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel>;
|
|
444
|
-
_max?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel>;
|
|
445
|
-
};
|
|
446
|
-
export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
447
|
-
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|
448
|
-
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
449
|
-
path?: string[];
|
|
450
|
-
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
451
|
-
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
452
|
-
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
453
|
-
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
454
|
-
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
455
|
-
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
456
|
-
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
457
|
-
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
458
|
-
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
459
|
-
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
460
|
-
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
461
|
-
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
462
|
-
};
|
|
463
|
-
export type NestedEnumConnectionStatusFilter<$PrismaModel = never> = {
|
|
464
|
-
equals?: $Enums.ConnectionStatus | Prisma.EnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
465
|
-
in?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
466
|
-
notIn?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
467
|
-
not?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel> | $Enums.ConnectionStatus;
|
|
468
|
-
};
|
|
469
|
-
export type NestedEnumConnectionStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
470
|
-
equals?: $Enums.ConnectionStatus | Prisma.EnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
471
|
-
in?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
472
|
-
notIn?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
|
|
473
|
-
not?: Prisma.NestedEnumConnectionStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConnectionStatus;
|
|
474
|
-
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
475
|
-
_min?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel>;
|
|
476
|
-
_max?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel>;
|
|
477
|
-
};
|
|
478
437
|
//# sourceMappingURL=commonInputTypes.d.ts.map
|