@kosha-ai/server 0.0.6 → 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/config/kosha-config.d.ts +21 -0
- package/dist/config/kosha-config.d.ts.map +1 -1
- package/dist/config/kosha-config.js +31 -2
- 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.d.ts +3 -0
- package/dist/credentials/credentials.module.d.ts.map +1 -0
- package/dist/credentials/credentials.module.js +15 -0
- 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 +45 -0
- package/dist/credentials/credentials.service.d.ts.map +1 -0
- package/dist/credentials/credentials.service.js +135 -0
- 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/ca.service.d.ts +36 -0
- package/dist/egress/ca.service.d.ts.map +1 -0
- package/dist/egress/ca.service.js +117 -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 +18 -0
- package/dist/egress/egress.controller.d.ts.map +1 -0
- package/dist/egress/egress.controller.js +80 -0
- package/dist/egress/egress.listener.d.ts +39 -0
- package/dist/egress/egress.listener.d.ts.map +1 -0
- package/dist/egress/egress.listener.js +328 -0
- package/dist/egress/egress.module.d.ts +7 -0
- package/dist/egress/egress.module.d.ts.map +1 -0
- package/dist/egress/egress.module.js +31 -0
- 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 +77 -0
- package/dist/egress/grants.service.d.ts.map +1 -0
- package/dist/egress/grants.service.js +159 -0
- package/dist/egress/host-rules.service.d.ts +35 -0
- package/dist/egress/host-rules.service.d.ts.map +1 -0
- package/dist/egress/host-rules.service.js +48 -0
- 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 +17 -35
- package/dist/generated/prisma/browser.d.ts.map +1 -1
- package/dist/generated/prisma/client.d.ts +17 -35
- 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 +24 -46
- 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 +258 -472
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespace.js +45 -83
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +45 -85
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +45 -83
- 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 +1535 -0
- package/dist/generated/prisma/models/EgressGrant.d.ts.map +1 -0
- 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 +183 -322
- 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 +4 -6
- package/dist/generated/prisma/models.d.ts.map +1 -1
- package/dist/index.d.ts +20 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -3
- 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 +13 -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 -3
- 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 -21
- package/dist/proxy/proxy.service.d.ts.map +1 -1
- package/dist/proxy/proxy.service.js +61 -110
- package/package.json +9 -4
- package/prisma/migrations/20260929101936_init/migration.sql +345 -0
- package/prisma/migrations/20260930102529_connection_config/migration.sql +2 -0
- package/prisma/schema.prisma +103 -178
- 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 -1539
- package/dist/generated/prisma/models/EndUser.d.ts.map +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/dist/generated/prisma/models/{ConnectSession.js → EgressGrant.js} +0 -0
- /package/dist/generated/prisma/models/{Connection.js → Environment.js} +0 -0
- /package/dist/generated/prisma/models/{ConnectionCredential.js → Team.js} +0 -0
- /package/dist/generated/prisma/models/{EndUser.js → TeamMember.js} +0 -0
|
@@ -0,0 +1,1498 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model Team
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type TeamModel = runtime.Types.Result.DefaultSelection<Prisma.$TeamPayload>;
|
|
8
|
+
export type AggregateTeam = {
|
|
9
|
+
_count: TeamCountAggregateOutputType | null;
|
|
10
|
+
_avg: TeamAvgAggregateOutputType | null;
|
|
11
|
+
_sum: TeamSumAggregateOutputType | null;
|
|
12
|
+
_min: TeamMinAggregateOutputType | null;
|
|
13
|
+
_max: TeamMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type TeamAvgAggregateOutputType = {
|
|
16
|
+
memberCount: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type TeamSumAggregateOutputType = {
|
|
19
|
+
memberCount: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type TeamMinAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
name: string | null;
|
|
24
|
+
memberCount: number | null;
|
|
25
|
+
organizationId: string | null;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
updatedAt: Date | null;
|
|
28
|
+
};
|
|
29
|
+
export type TeamMaxAggregateOutputType = {
|
|
30
|
+
id: string | null;
|
|
31
|
+
name: string | null;
|
|
32
|
+
memberCount: number | null;
|
|
33
|
+
organizationId: string | null;
|
|
34
|
+
createdAt: Date | null;
|
|
35
|
+
updatedAt: Date | null;
|
|
36
|
+
};
|
|
37
|
+
export type TeamCountAggregateOutputType = {
|
|
38
|
+
id: number;
|
|
39
|
+
name: number;
|
|
40
|
+
memberCount: number;
|
|
41
|
+
organizationId: number;
|
|
42
|
+
createdAt: number;
|
|
43
|
+
updatedAt: number;
|
|
44
|
+
_all: number;
|
|
45
|
+
};
|
|
46
|
+
export type TeamAvgAggregateInputType = {
|
|
47
|
+
memberCount?: true;
|
|
48
|
+
};
|
|
49
|
+
export type TeamSumAggregateInputType = {
|
|
50
|
+
memberCount?: true;
|
|
51
|
+
};
|
|
52
|
+
export type TeamMinAggregateInputType = {
|
|
53
|
+
id?: true;
|
|
54
|
+
name?: true;
|
|
55
|
+
memberCount?: true;
|
|
56
|
+
organizationId?: true;
|
|
57
|
+
createdAt?: true;
|
|
58
|
+
updatedAt?: true;
|
|
59
|
+
};
|
|
60
|
+
export type TeamMaxAggregateInputType = {
|
|
61
|
+
id?: true;
|
|
62
|
+
name?: true;
|
|
63
|
+
memberCount?: true;
|
|
64
|
+
organizationId?: true;
|
|
65
|
+
createdAt?: true;
|
|
66
|
+
updatedAt?: true;
|
|
67
|
+
};
|
|
68
|
+
export type TeamCountAggregateInputType = {
|
|
69
|
+
id?: true;
|
|
70
|
+
name?: true;
|
|
71
|
+
memberCount?: true;
|
|
72
|
+
organizationId?: true;
|
|
73
|
+
createdAt?: true;
|
|
74
|
+
updatedAt?: true;
|
|
75
|
+
_all?: true;
|
|
76
|
+
};
|
|
77
|
+
export type TeamAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
78
|
+
/**
|
|
79
|
+
* Filter which Team to aggregate.
|
|
80
|
+
*/
|
|
81
|
+
where?: Prisma.TeamWhereInput;
|
|
82
|
+
/**
|
|
83
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
84
|
+
*
|
|
85
|
+
* Determine the order of Teams to fetch.
|
|
86
|
+
*/
|
|
87
|
+
orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[];
|
|
88
|
+
/**
|
|
89
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
90
|
+
*
|
|
91
|
+
* Sets the start position
|
|
92
|
+
*/
|
|
93
|
+
cursor?: Prisma.TeamWhereUniqueInput;
|
|
94
|
+
/**
|
|
95
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
96
|
+
*
|
|
97
|
+
* Take `±n` Teams from the position of the cursor.
|
|
98
|
+
*/
|
|
99
|
+
take?: number;
|
|
100
|
+
/**
|
|
101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
102
|
+
*
|
|
103
|
+
* Skip the first `n` Teams.
|
|
104
|
+
*/
|
|
105
|
+
skip?: number;
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
108
|
+
*
|
|
109
|
+
* Count returned Teams
|
|
110
|
+
**/
|
|
111
|
+
_count?: true | TeamCountAggregateInputType;
|
|
112
|
+
/**
|
|
113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
114
|
+
*
|
|
115
|
+
* Select which fields to average
|
|
116
|
+
**/
|
|
117
|
+
_avg?: TeamAvgAggregateInputType;
|
|
118
|
+
/**
|
|
119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
120
|
+
*
|
|
121
|
+
* Select which fields to sum
|
|
122
|
+
**/
|
|
123
|
+
_sum?: TeamSumAggregateInputType;
|
|
124
|
+
/**
|
|
125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
126
|
+
*
|
|
127
|
+
* Select which fields to find the minimum value
|
|
128
|
+
**/
|
|
129
|
+
_min?: TeamMinAggregateInputType;
|
|
130
|
+
/**
|
|
131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
132
|
+
*
|
|
133
|
+
* Select which fields to find the maximum value
|
|
134
|
+
**/
|
|
135
|
+
_max?: TeamMaxAggregateInputType;
|
|
136
|
+
};
|
|
137
|
+
export type GetTeamAggregateType<T extends TeamAggregateArgs> = {
|
|
138
|
+
[P in keyof T & keyof AggregateTeam]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateTeam[P]> : Prisma.GetScalarType<T[P], AggregateTeam[P]>;
|
|
139
|
+
};
|
|
140
|
+
export type TeamGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
141
|
+
where?: Prisma.TeamWhereInput;
|
|
142
|
+
orderBy?: Prisma.TeamOrderByWithAggregationInput | Prisma.TeamOrderByWithAggregationInput[];
|
|
143
|
+
by: Prisma.TeamScalarFieldEnum[] | Prisma.TeamScalarFieldEnum;
|
|
144
|
+
having?: Prisma.TeamScalarWhereWithAggregatesInput;
|
|
145
|
+
take?: number;
|
|
146
|
+
skip?: number;
|
|
147
|
+
_count?: TeamCountAggregateInputType | true;
|
|
148
|
+
_avg?: TeamAvgAggregateInputType;
|
|
149
|
+
_sum?: TeamSumAggregateInputType;
|
|
150
|
+
_min?: TeamMinAggregateInputType;
|
|
151
|
+
_max?: TeamMaxAggregateInputType;
|
|
152
|
+
};
|
|
153
|
+
export type TeamGroupByOutputType = {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
memberCount: number;
|
|
157
|
+
organizationId: string;
|
|
158
|
+
createdAt: Date;
|
|
159
|
+
updatedAt: Date | null;
|
|
160
|
+
_count: TeamCountAggregateOutputType | null;
|
|
161
|
+
_avg: TeamAvgAggregateOutputType | null;
|
|
162
|
+
_sum: TeamSumAggregateOutputType | null;
|
|
163
|
+
_min: TeamMinAggregateOutputType | null;
|
|
164
|
+
_max: TeamMaxAggregateOutputType | null;
|
|
165
|
+
};
|
|
166
|
+
export type GetTeamGroupByPayload<T extends TeamGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<TeamGroupByOutputType, T['by']> & {
|
|
167
|
+
[P in ((keyof T) & (keyof TeamGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], TeamGroupByOutputType[P]> : Prisma.GetScalarType<T[P], TeamGroupByOutputType[P]>;
|
|
168
|
+
}>>;
|
|
169
|
+
export type TeamWhereInput = {
|
|
170
|
+
AND?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[];
|
|
171
|
+
OR?: Prisma.TeamWhereInput[];
|
|
172
|
+
NOT?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[];
|
|
173
|
+
id?: Prisma.StringFilter<"Team"> | string;
|
|
174
|
+
name?: Prisma.StringFilter<"Team"> | string;
|
|
175
|
+
memberCount?: Prisma.IntFilter<"Team"> | number;
|
|
176
|
+
organizationId?: Prisma.StringFilter<"Team"> | string;
|
|
177
|
+
createdAt?: Prisma.DateTimeFilter<"Team"> | Date | string;
|
|
178
|
+
updatedAt?: Prisma.DateTimeNullableFilter<"Team"> | Date | string | null;
|
|
179
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
180
|
+
members?: Prisma.TeamMemberListRelationFilter;
|
|
181
|
+
environments?: Prisma.EnvironmentListRelationFilter;
|
|
182
|
+
};
|
|
183
|
+
export type TeamOrderByWithRelationInput = {
|
|
184
|
+
id?: Prisma.SortOrder;
|
|
185
|
+
name?: Prisma.SortOrder;
|
|
186
|
+
memberCount?: Prisma.SortOrder;
|
|
187
|
+
organizationId?: Prisma.SortOrder;
|
|
188
|
+
createdAt?: Prisma.SortOrder;
|
|
189
|
+
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
190
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
191
|
+
members?: Prisma.TeamMemberOrderByRelationAggregateInput;
|
|
192
|
+
environments?: Prisma.EnvironmentOrderByRelationAggregateInput;
|
|
193
|
+
};
|
|
194
|
+
export type TeamWhereUniqueInput = Prisma.AtLeast<{
|
|
195
|
+
id?: string;
|
|
196
|
+
AND?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[];
|
|
197
|
+
OR?: Prisma.TeamWhereInput[];
|
|
198
|
+
NOT?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[];
|
|
199
|
+
name?: Prisma.StringFilter<"Team"> | string;
|
|
200
|
+
memberCount?: Prisma.IntFilter<"Team"> | number;
|
|
201
|
+
organizationId?: Prisma.StringFilter<"Team"> | string;
|
|
202
|
+
createdAt?: Prisma.DateTimeFilter<"Team"> | Date | string;
|
|
203
|
+
updatedAt?: Prisma.DateTimeNullableFilter<"Team"> | Date | string | null;
|
|
204
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
205
|
+
members?: Prisma.TeamMemberListRelationFilter;
|
|
206
|
+
environments?: Prisma.EnvironmentListRelationFilter;
|
|
207
|
+
}, "id">;
|
|
208
|
+
export type TeamOrderByWithAggregationInput = {
|
|
209
|
+
id?: Prisma.SortOrder;
|
|
210
|
+
name?: Prisma.SortOrder;
|
|
211
|
+
memberCount?: Prisma.SortOrder;
|
|
212
|
+
organizationId?: Prisma.SortOrder;
|
|
213
|
+
createdAt?: Prisma.SortOrder;
|
|
214
|
+
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
215
|
+
_count?: Prisma.TeamCountOrderByAggregateInput;
|
|
216
|
+
_avg?: Prisma.TeamAvgOrderByAggregateInput;
|
|
217
|
+
_max?: Prisma.TeamMaxOrderByAggregateInput;
|
|
218
|
+
_min?: Prisma.TeamMinOrderByAggregateInput;
|
|
219
|
+
_sum?: Prisma.TeamSumOrderByAggregateInput;
|
|
220
|
+
};
|
|
221
|
+
export type TeamScalarWhereWithAggregatesInput = {
|
|
222
|
+
AND?: Prisma.TeamScalarWhereWithAggregatesInput | Prisma.TeamScalarWhereWithAggregatesInput[];
|
|
223
|
+
OR?: Prisma.TeamScalarWhereWithAggregatesInput[];
|
|
224
|
+
NOT?: Prisma.TeamScalarWhereWithAggregatesInput | Prisma.TeamScalarWhereWithAggregatesInput[];
|
|
225
|
+
id?: Prisma.StringWithAggregatesFilter<"Team"> | string;
|
|
226
|
+
name?: Prisma.StringWithAggregatesFilter<"Team"> | string;
|
|
227
|
+
memberCount?: Prisma.IntWithAggregatesFilter<"Team"> | number;
|
|
228
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"Team"> | string;
|
|
229
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Team"> | Date | string;
|
|
230
|
+
updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Team"> | Date | string | null;
|
|
231
|
+
};
|
|
232
|
+
export type TeamCreateInput = {
|
|
233
|
+
id: string;
|
|
234
|
+
name: string;
|
|
235
|
+
memberCount?: number;
|
|
236
|
+
createdAt?: Date | string;
|
|
237
|
+
updatedAt?: Date | string | null;
|
|
238
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutTeamsInput;
|
|
239
|
+
members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput;
|
|
240
|
+
environments?: Prisma.EnvironmentCreateNestedManyWithoutTeamInput;
|
|
241
|
+
};
|
|
242
|
+
export type TeamUncheckedCreateInput = {
|
|
243
|
+
id: string;
|
|
244
|
+
name: string;
|
|
245
|
+
memberCount?: number;
|
|
246
|
+
organizationId: string;
|
|
247
|
+
createdAt?: Date | string;
|
|
248
|
+
updatedAt?: Date | string | null;
|
|
249
|
+
members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput;
|
|
250
|
+
environments?: Prisma.EnvironmentUncheckedCreateNestedManyWithoutTeamInput;
|
|
251
|
+
};
|
|
252
|
+
export type TeamUpdateInput = {
|
|
253
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
254
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
255
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
256
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
257
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
258
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutTeamsNestedInput;
|
|
259
|
+
members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput;
|
|
260
|
+
environments?: Prisma.EnvironmentUpdateManyWithoutTeamNestedInput;
|
|
261
|
+
};
|
|
262
|
+
export type TeamUncheckedUpdateInput = {
|
|
263
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
264
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
265
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
266
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
267
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
268
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
269
|
+
members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput;
|
|
270
|
+
environments?: Prisma.EnvironmentUncheckedUpdateManyWithoutTeamNestedInput;
|
|
271
|
+
};
|
|
272
|
+
export type TeamCreateManyInput = {
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
memberCount?: number;
|
|
276
|
+
organizationId: string;
|
|
277
|
+
createdAt?: Date | string;
|
|
278
|
+
updatedAt?: Date | string | null;
|
|
279
|
+
};
|
|
280
|
+
export type TeamUpdateManyMutationInput = {
|
|
281
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
282
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
283
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
284
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
285
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
286
|
+
};
|
|
287
|
+
export type TeamUncheckedUpdateManyInput = {
|
|
288
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
289
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
290
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
291
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
292
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
293
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
294
|
+
};
|
|
295
|
+
export type TeamListRelationFilter = {
|
|
296
|
+
every?: Prisma.TeamWhereInput;
|
|
297
|
+
some?: Prisma.TeamWhereInput;
|
|
298
|
+
none?: Prisma.TeamWhereInput;
|
|
299
|
+
};
|
|
300
|
+
export type TeamOrderByRelationAggregateInput = {
|
|
301
|
+
_count?: Prisma.SortOrder;
|
|
302
|
+
};
|
|
303
|
+
export type TeamCountOrderByAggregateInput = {
|
|
304
|
+
id?: Prisma.SortOrder;
|
|
305
|
+
name?: Prisma.SortOrder;
|
|
306
|
+
memberCount?: Prisma.SortOrder;
|
|
307
|
+
organizationId?: Prisma.SortOrder;
|
|
308
|
+
createdAt?: Prisma.SortOrder;
|
|
309
|
+
updatedAt?: Prisma.SortOrder;
|
|
310
|
+
};
|
|
311
|
+
export type TeamAvgOrderByAggregateInput = {
|
|
312
|
+
memberCount?: Prisma.SortOrder;
|
|
313
|
+
};
|
|
314
|
+
export type TeamMaxOrderByAggregateInput = {
|
|
315
|
+
id?: Prisma.SortOrder;
|
|
316
|
+
name?: Prisma.SortOrder;
|
|
317
|
+
memberCount?: Prisma.SortOrder;
|
|
318
|
+
organizationId?: Prisma.SortOrder;
|
|
319
|
+
createdAt?: Prisma.SortOrder;
|
|
320
|
+
updatedAt?: Prisma.SortOrder;
|
|
321
|
+
};
|
|
322
|
+
export type TeamMinOrderByAggregateInput = {
|
|
323
|
+
id?: Prisma.SortOrder;
|
|
324
|
+
name?: Prisma.SortOrder;
|
|
325
|
+
memberCount?: Prisma.SortOrder;
|
|
326
|
+
organizationId?: Prisma.SortOrder;
|
|
327
|
+
createdAt?: Prisma.SortOrder;
|
|
328
|
+
updatedAt?: Prisma.SortOrder;
|
|
329
|
+
};
|
|
330
|
+
export type TeamSumOrderByAggregateInput = {
|
|
331
|
+
memberCount?: Prisma.SortOrder;
|
|
332
|
+
};
|
|
333
|
+
export type TeamScalarRelationFilter = {
|
|
334
|
+
is?: Prisma.TeamWhereInput;
|
|
335
|
+
isNot?: Prisma.TeamWhereInput;
|
|
336
|
+
};
|
|
337
|
+
export type TeamNullableScalarRelationFilter = {
|
|
338
|
+
is?: Prisma.TeamWhereInput | null;
|
|
339
|
+
isNot?: Prisma.TeamWhereInput | null;
|
|
340
|
+
};
|
|
341
|
+
export type TeamCreateNestedManyWithoutOrganizationInput = {
|
|
342
|
+
create?: Prisma.XOR<Prisma.TeamCreateWithoutOrganizationInput, Prisma.TeamUncheckedCreateWithoutOrganizationInput> | Prisma.TeamCreateWithoutOrganizationInput[] | Prisma.TeamUncheckedCreateWithoutOrganizationInput[];
|
|
343
|
+
connectOrCreate?: Prisma.TeamCreateOrConnectWithoutOrganizationInput | Prisma.TeamCreateOrConnectWithoutOrganizationInput[];
|
|
344
|
+
createMany?: Prisma.TeamCreateManyOrganizationInputEnvelope;
|
|
345
|
+
connect?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
346
|
+
};
|
|
347
|
+
export type TeamUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
348
|
+
create?: Prisma.XOR<Prisma.TeamCreateWithoutOrganizationInput, Prisma.TeamUncheckedCreateWithoutOrganizationInput> | Prisma.TeamCreateWithoutOrganizationInput[] | Prisma.TeamUncheckedCreateWithoutOrganizationInput[];
|
|
349
|
+
connectOrCreate?: Prisma.TeamCreateOrConnectWithoutOrganizationInput | Prisma.TeamCreateOrConnectWithoutOrganizationInput[];
|
|
350
|
+
createMany?: Prisma.TeamCreateManyOrganizationInputEnvelope;
|
|
351
|
+
connect?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
352
|
+
};
|
|
353
|
+
export type TeamUpdateManyWithoutOrganizationNestedInput = {
|
|
354
|
+
create?: Prisma.XOR<Prisma.TeamCreateWithoutOrganizationInput, Prisma.TeamUncheckedCreateWithoutOrganizationInput> | Prisma.TeamCreateWithoutOrganizationInput[] | Prisma.TeamUncheckedCreateWithoutOrganizationInput[];
|
|
355
|
+
connectOrCreate?: Prisma.TeamCreateOrConnectWithoutOrganizationInput | Prisma.TeamCreateOrConnectWithoutOrganizationInput[];
|
|
356
|
+
upsert?: Prisma.TeamUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.TeamUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
357
|
+
createMany?: Prisma.TeamCreateManyOrganizationInputEnvelope;
|
|
358
|
+
set?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
359
|
+
disconnect?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
360
|
+
delete?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
361
|
+
connect?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
362
|
+
update?: Prisma.TeamUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.TeamUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
363
|
+
updateMany?: Prisma.TeamUpdateManyWithWhereWithoutOrganizationInput | Prisma.TeamUpdateManyWithWhereWithoutOrganizationInput[];
|
|
364
|
+
deleteMany?: Prisma.TeamScalarWhereInput | Prisma.TeamScalarWhereInput[];
|
|
365
|
+
};
|
|
366
|
+
export type TeamUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
367
|
+
create?: Prisma.XOR<Prisma.TeamCreateWithoutOrganizationInput, Prisma.TeamUncheckedCreateWithoutOrganizationInput> | Prisma.TeamCreateWithoutOrganizationInput[] | Prisma.TeamUncheckedCreateWithoutOrganizationInput[];
|
|
368
|
+
connectOrCreate?: Prisma.TeamCreateOrConnectWithoutOrganizationInput | Prisma.TeamCreateOrConnectWithoutOrganizationInput[];
|
|
369
|
+
upsert?: Prisma.TeamUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.TeamUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
370
|
+
createMany?: Prisma.TeamCreateManyOrganizationInputEnvelope;
|
|
371
|
+
set?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
372
|
+
disconnect?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
373
|
+
delete?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
374
|
+
connect?: Prisma.TeamWhereUniqueInput | Prisma.TeamWhereUniqueInput[];
|
|
375
|
+
update?: Prisma.TeamUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.TeamUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
376
|
+
updateMany?: Prisma.TeamUpdateManyWithWhereWithoutOrganizationInput | Prisma.TeamUpdateManyWithWhereWithoutOrganizationInput[];
|
|
377
|
+
deleteMany?: Prisma.TeamScalarWhereInput | Prisma.TeamScalarWhereInput[];
|
|
378
|
+
};
|
|
379
|
+
export type IntFieldUpdateOperationsInput = {
|
|
380
|
+
set?: number;
|
|
381
|
+
increment?: number;
|
|
382
|
+
decrement?: number;
|
|
383
|
+
multiply?: number;
|
|
384
|
+
divide?: number;
|
|
385
|
+
};
|
|
386
|
+
export type TeamCreateNestedOneWithoutMembersInput = {
|
|
387
|
+
create?: Prisma.XOR<Prisma.TeamCreateWithoutMembersInput, Prisma.TeamUncheckedCreateWithoutMembersInput>;
|
|
388
|
+
connectOrCreate?: Prisma.TeamCreateOrConnectWithoutMembersInput;
|
|
389
|
+
connect?: Prisma.TeamWhereUniqueInput;
|
|
390
|
+
};
|
|
391
|
+
export type TeamUpdateOneRequiredWithoutMembersNestedInput = {
|
|
392
|
+
create?: Prisma.XOR<Prisma.TeamCreateWithoutMembersInput, Prisma.TeamUncheckedCreateWithoutMembersInput>;
|
|
393
|
+
connectOrCreate?: Prisma.TeamCreateOrConnectWithoutMembersInput;
|
|
394
|
+
upsert?: Prisma.TeamUpsertWithoutMembersInput;
|
|
395
|
+
connect?: Prisma.TeamWhereUniqueInput;
|
|
396
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamUpdateToOneWithWhereWithoutMembersInput, Prisma.TeamUpdateWithoutMembersInput>, Prisma.TeamUncheckedUpdateWithoutMembersInput>;
|
|
397
|
+
};
|
|
398
|
+
export type TeamCreateNestedOneWithoutEnvironmentsInput = {
|
|
399
|
+
create?: Prisma.XOR<Prisma.TeamCreateWithoutEnvironmentsInput, Prisma.TeamUncheckedCreateWithoutEnvironmentsInput>;
|
|
400
|
+
connectOrCreate?: Prisma.TeamCreateOrConnectWithoutEnvironmentsInput;
|
|
401
|
+
connect?: Prisma.TeamWhereUniqueInput;
|
|
402
|
+
};
|
|
403
|
+
export type TeamUpdateOneWithoutEnvironmentsNestedInput = {
|
|
404
|
+
create?: Prisma.XOR<Prisma.TeamCreateWithoutEnvironmentsInput, Prisma.TeamUncheckedCreateWithoutEnvironmentsInput>;
|
|
405
|
+
connectOrCreate?: Prisma.TeamCreateOrConnectWithoutEnvironmentsInput;
|
|
406
|
+
upsert?: Prisma.TeamUpsertWithoutEnvironmentsInput;
|
|
407
|
+
disconnect?: Prisma.TeamWhereInput | boolean;
|
|
408
|
+
delete?: Prisma.TeamWhereInput | boolean;
|
|
409
|
+
connect?: Prisma.TeamWhereUniqueInput;
|
|
410
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamUpdateToOneWithWhereWithoutEnvironmentsInput, Prisma.TeamUpdateWithoutEnvironmentsInput>, Prisma.TeamUncheckedUpdateWithoutEnvironmentsInput>;
|
|
411
|
+
};
|
|
412
|
+
export type TeamCreateWithoutOrganizationInput = {
|
|
413
|
+
id: string;
|
|
414
|
+
name: string;
|
|
415
|
+
memberCount?: number;
|
|
416
|
+
createdAt?: Date | string;
|
|
417
|
+
updatedAt?: Date | string | null;
|
|
418
|
+
members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput;
|
|
419
|
+
environments?: Prisma.EnvironmentCreateNestedManyWithoutTeamInput;
|
|
420
|
+
};
|
|
421
|
+
export type TeamUncheckedCreateWithoutOrganizationInput = {
|
|
422
|
+
id: string;
|
|
423
|
+
name: string;
|
|
424
|
+
memberCount?: number;
|
|
425
|
+
createdAt?: Date | string;
|
|
426
|
+
updatedAt?: Date | string | null;
|
|
427
|
+
members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput;
|
|
428
|
+
environments?: Prisma.EnvironmentUncheckedCreateNestedManyWithoutTeamInput;
|
|
429
|
+
};
|
|
430
|
+
export type TeamCreateOrConnectWithoutOrganizationInput = {
|
|
431
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
432
|
+
create: Prisma.XOR<Prisma.TeamCreateWithoutOrganizationInput, Prisma.TeamUncheckedCreateWithoutOrganizationInput>;
|
|
433
|
+
};
|
|
434
|
+
export type TeamCreateManyOrganizationInputEnvelope = {
|
|
435
|
+
data: Prisma.TeamCreateManyOrganizationInput | Prisma.TeamCreateManyOrganizationInput[];
|
|
436
|
+
skipDuplicates?: boolean;
|
|
437
|
+
};
|
|
438
|
+
export type TeamUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
439
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
440
|
+
update: Prisma.XOR<Prisma.TeamUpdateWithoutOrganizationInput, Prisma.TeamUncheckedUpdateWithoutOrganizationInput>;
|
|
441
|
+
create: Prisma.XOR<Prisma.TeamCreateWithoutOrganizationInput, Prisma.TeamUncheckedCreateWithoutOrganizationInput>;
|
|
442
|
+
};
|
|
443
|
+
export type TeamUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
444
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
445
|
+
data: Prisma.XOR<Prisma.TeamUpdateWithoutOrganizationInput, Prisma.TeamUncheckedUpdateWithoutOrganizationInput>;
|
|
446
|
+
};
|
|
447
|
+
export type TeamUpdateManyWithWhereWithoutOrganizationInput = {
|
|
448
|
+
where: Prisma.TeamScalarWhereInput;
|
|
449
|
+
data: Prisma.XOR<Prisma.TeamUpdateManyMutationInput, Prisma.TeamUncheckedUpdateManyWithoutOrganizationInput>;
|
|
450
|
+
};
|
|
451
|
+
export type TeamScalarWhereInput = {
|
|
452
|
+
AND?: Prisma.TeamScalarWhereInput | Prisma.TeamScalarWhereInput[];
|
|
453
|
+
OR?: Prisma.TeamScalarWhereInput[];
|
|
454
|
+
NOT?: Prisma.TeamScalarWhereInput | Prisma.TeamScalarWhereInput[];
|
|
455
|
+
id?: Prisma.StringFilter<"Team"> | string;
|
|
456
|
+
name?: Prisma.StringFilter<"Team"> | string;
|
|
457
|
+
memberCount?: Prisma.IntFilter<"Team"> | number;
|
|
458
|
+
organizationId?: Prisma.StringFilter<"Team"> | string;
|
|
459
|
+
createdAt?: Prisma.DateTimeFilter<"Team"> | Date | string;
|
|
460
|
+
updatedAt?: Prisma.DateTimeNullableFilter<"Team"> | Date | string | null;
|
|
461
|
+
};
|
|
462
|
+
export type TeamCreateWithoutMembersInput = {
|
|
463
|
+
id: string;
|
|
464
|
+
name: string;
|
|
465
|
+
memberCount?: number;
|
|
466
|
+
createdAt?: Date | string;
|
|
467
|
+
updatedAt?: Date | string | null;
|
|
468
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutTeamsInput;
|
|
469
|
+
environments?: Prisma.EnvironmentCreateNestedManyWithoutTeamInput;
|
|
470
|
+
};
|
|
471
|
+
export type TeamUncheckedCreateWithoutMembersInput = {
|
|
472
|
+
id: string;
|
|
473
|
+
name: string;
|
|
474
|
+
memberCount?: number;
|
|
475
|
+
organizationId: string;
|
|
476
|
+
createdAt?: Date | string;
|
|
477
|
+
updatedAt?: Date | string | null;
|
|
478
|
+
environments?: Prisma.EnvironmentUncheckedCreateNestedManyWithoutTeamInput;
|
|
479
|
+
};
|
|
480
|
+
export type TeamCreateOrConnectWithoutMembersInput = {
|
|
481
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
482
|
+
create: Prisma.XOR<Prisma.TeamCreateWithoutMembersInput, Prisma.TeamUncheckedCreateWithoutMembersInput>;
|
|
483
|
+
};
|
|
484
|
+
export type TeamUpsertWithoutMembersInput = {
|
|
485
|
+
update: Prisma.XOR<Prisma.TeamUpdateWithoutMembersInput, Prisma.TeamUncheckedUpdateWithoutMembersInput>;
|
|
486
|
+
create: Prisma.XOR<Prisma.TeamCreateWithoutMembersInput, Prisma.TeamUncheckedCreateWithoutMembersInput>;
|
|
487
|
+
where?: Prisma.TeamWhereInput;
|
|
488
|
+
};
|
|
489
|
+
export type TeamUpdateToOneWithWhereWithoutMembersInput = {
|
|
490
|
+
where?: Prisma.TeamWhereInput;
|
|
491
|
+
data: Prisma.XOR<Prisma.TeamUpdateWithoutMembersInput, Prisma.TeamUncheckedUpdateWithoutMembersInput>;
|
|
492
|
+
};
|
|
493
|
+
export type TeamUpdateWithoutMembersInput = {
|
|
494
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
495
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
496
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
497
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
498
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
499
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutTeamsNestedInput;
|
|
500
|
+
environments?: Prisma.EnvironmentUpdateManyWithoutTeamNestedInput;
|
|
501
|
+
};
|
|
502
|
+
export type TeamUncheckedUpdateWithoutMembersInput = {
|
|
503
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
504
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
505
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
506
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
507
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
508
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
509
|
+
environments?: Prisma.EnvironmentUncheckedUpdateManyWithoutTeamNestedInput;
|
|
510
|
+
};
|
|
511
|
+
export type TeamCreateWithoutEnvironmentsInput = {
|
|
512
|
+
id: string;
|
|
513
|
+
name: string;
|
|
514
|
+
memberCount?: number;
|
|
515
|
+
createdAt?: Date | string;
|
|
516
|
+
updatedAt?: Date | string | null;
|
|
517
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutTeamsInput;
|
|
518
|
+
members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput;
|
|
519
|
+
};
|
|
520
|
+
export type TeamUncheckedCreateWithoutEnvironmentsInput = {
|
|
521
|
+
id: string;
|
|
522
|
+
name: string;
|
|
523
|
+
memberCount?: number;
|
|
524
|
+
organizationId: string;
|
|
525
|
+
createdAt?: Date | string;
|
|
526
|
+
updatedAt?: Date | string | null;
|
|
527
|
+
members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput;
|
|
528
|
+
};
|
|
529
|
+
export type TeamCreateOrConnectWithoutEnvironmentsInput = {
|
|
530
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
531
|
+
create: Prisma.XOR<Prisma.TeamCreateWithoutEnvironmentsInput, Prisma.TeamUncheckedCreateWithoutEnvironmentsInput>;
|
|
532
|
+
};
|
|
533
|
+
export type TeamUpsertWithoutEnvironmentsInput = {
|
|
534
|
+
update: Prisma.XOR<Prisma.TeamUpdateWithoutEnvironmentsInput, Prisma.TeamUncheckedUpdateWithoutEnvironmentsInput>;
|
|
535
|
+
create: Prisma.XOR<Prisma.TeamCreateWithoutEnvironmentsInput, Prisma.TeamUncheckedCreateWithoutEnvironmentsInput>;
|
|
536
|
+
where?: Prisma.TeamWhereInput;
|
|
537
|
+
};
|
|
538
|
+
export type TeamUpdateToOneWithWhereWithoutEnvironmentsInput = {
|
|
539
|
+
where?: Prisma.TeamWhereInput;
|
|
540
|
+
data: Prisma.XOR<Prisma.TeamUpdateWithoutEnvironmentsInput, Prisma.TeamUncheckedUpdateWithoutEnvironmentsInput>;
|
|
541
|
+
};
|
|
542
|
+
export type TeamUpdateWithoutEnvironmentsInput = {
|
|
543
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
544
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
545
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
546
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
547
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
548
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutTeamsNestedInput;
|
|
549
|
+
members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput;
|
|
550
|
+
};
|
|
551
|
+
export type TeamUncheckedUpdateWithoutEnvironmentsInput = {
|
|
552
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
553
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
554
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
555
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
556
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
557
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
558
|
+
members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput;
|
|
559
|
+
};
|
|
560
|
+
export type TeamCreateManyOrganizationInput = {
|
|
561
|
+
id: string;
|
|
562
|
+
name: string;
|
|
563
|
+
memberCount?: number;
|
|
564
|
+
createdAt?: Date | string;
|
|
565
|
+
updatedAt?: Date | string | null;
|
|
566
|
+
};
|
|
567
|
+
export type TeamUpdateWithoutOrganizationInput = {
|
|
568
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
569
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
570
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
571
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
572
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
573
|
+
members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput;
|
|
574
|
+
environments?: Prisma.EnvironmentUpdateManyWithoutTeamNestedInput;
|
|
575
|
+
};
|
|
576
|
+
export type TeamUncheckedUpdateWithoutOrganizationInput = {
|
|
577
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
578
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
579
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
580
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
581
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
582
|
+
members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput;
|
|
583
|
+
environments?: Prisma.EnvironmentUncheckedUpdateManyWithoutTeamNestedInput;
|
|
584
|
+
};
|
|
585
|
+
export type TeamUncheckedUpdateManyWithoutOrganizationInput = {
|
|
586
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
587
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
588
|
+
memberCount?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
589
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
590
|
+
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* Count Type TeamCountOutputType
|
|
594
|
+
*/
|
|
595
|
+
export type TeamCountOutputType = {
|
|
596
|
+
members: number;
|
|
597
|
+
environments: number;
|
|
598
|
+
};
|
|
599
|
+
export type TeamCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
600
|
+
members?: boolean | TeamCountOutputTypeCountMembersArgs;
|
|
601
|
+
environments?: boolean | TeamCountOutputTypeCountEnvironmentsArgs;
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* TeamCountOutputType without action
|
|
605
|
+
*/
|
|
606
|
+
export type TeamCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
607
|
+
/**
|
|
608
|
+
* Select specific fields to fetch from the TeamCountOutputType
|
|
609
|
+
*/
|
|
610
|
+
select?: Prisma.TeamCountOutputTypeSelect<ExtArgs> | null;
|
|
611
|
+
};
|
|
612
|
+
/**
|
|
613
|
+
* TeamCountOutputType without action
|
|
614
|
+
*/
|
|
615
|
+
export type TeamCountOutputTypeCountMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
616
|
+
where?: Prisma.TeamMemberWhereInput;
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* TeamCountOutputType without action
|
|
620
|
+
*/
|
|
621
|
+
export type TeamCountOutputTypeCountEnvironmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
622
|
+
where?: Prisma.EnvironmentWhereInput;
|
|
623
|
+
};
|
|
624
|
+
export type TeamSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
625
|
+
id?: boolean;
|
|
626
|
+
name?: boolean;
|
|
627
|
+
memberCount?: boolean;
|
|
628
|
+
organizationId?: boolean;
|
|
629
|
+
createdAt?: boolean;
|
|
630
|
+
updatedAt?: boolean;
|
|
631
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
632
|
+
members?: boolean | Prisma.Team$membersArgs<ExtArgs>;
|
|
633
|
+
environments?: boolean | Prisma.Team$environmentsArgs<ExtArgs>;
|
|
634
|
+
_count?: boolean | Prisma.TeamCountOutputTypeDefaultArgs<ExtArgs>;
|
|
635
|
+
}, ExtArgs["result"]["team"]>;
|
|
636
|
+
export type TeamSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
637
|
+
id?: boolean;
|
|
638
|
+
name?: boolean;
|
|
639
|
+
memberCount?: boolean;
|
|
640
|
+
organizationId?: boolean;
|
|
641
|
+
createdAt?: boolean;
|
|
642
|
+
updatedAt?: boolean;
|
|
643
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
644
|
+
}, ExtArgs["result"]["team"]>;
|
|
645
|
+
export type TeamSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
646
|
+
id?: boolean;
|
|
647
|
+
name?: boolean;
|
|
648
|
+
memberCount?: boolean;
|
|
649
|
+
organizationId?: boolean;
|
|
650
|
+
createdAt?: boolean;
|
|
651
|
+
updatedAt?: boolean;
|
|
652
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
653
|
+
}, ExtArgs["result"]["team"]>;
|
|
654
|
+
export type TeamSelectScalar = {
|
|
655
|
+
id?: boolean;
|
|
656
|
+
name?: boolean;
|
|
657
|
+
memberCount?: boolean;
|
|
658
|
+
organizationId?: boolean;
|
|
659
|
+
createdAt?: boolean;
|
|
660
|
+
updatedAt?: boolean;
|
|
661
|
+
};
|
|
662
|
+
export type TeamOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "memberCount" | "organizationId" | "createdAt" | "updatedAt", ExtArgs["result"]["team"]>;
|
|
663
|
+
export type TeamInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
664
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
665
|
+
members?: boolean | Prisma.Team$membersArgs<ExtArgs>;
|
|
666
|
+
environments?: boolean | Prisma.Team$environmentsArgs<ExtArgs>;
|
|
667
|
+
_count?: boolean | Prisma.TeamCountOutputTypeDefaultArgs<ExtArgs>;
|
|
668
|
+
};
|
|
669
|
+
export type TeamIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
670
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
671
|
+
};
|
|
672
|
+
export type TeamIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
673
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
674
|
+
};
|
|
675
|
+
export type $TeamPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
676
|
+
name: "Team";
|
|
677
|
+
objects: {
|
|
678
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
679
|
+
members: Prisma.$TeamMemberPayload<ExtArgs>[];
|
|
680
|
+
environments: Prisma.$EnvironmentPayload<ExtArgs>[];
|
|
681
|
+
};
|
|
682
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
683
|
+
id: string;
|
|
684
|
+
name: string;
|
|
685
|
+
memberCount: number;
|
|
686
|
+
organizationId: string;
|
|
687
|
+
createdAt: Date;
|
|
688
|
+
updatedAt: Date | null;
|
|
689
|
+
}, ExtArgs["result"]["team"]>;
|
|
690
|
+
composites: {};
|
|
691
|
+
};
|
|
692
|
+
export type TeamGetPayload<S extends boolean | null | undefined | TeamDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TeamPayload, S>;
|
|
693
|
+
export type TeamCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<TeamFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
694
|
+
select?: TeamCountAggregateInputType | true;
|
|
695
|
+
};
|
|
696
|
+
export interface TeamDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
697
|
+
[K: symbol]: {
|
|
698
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Team'];
|
|
699
|
+
meta: {
|
|
700
|
+
name: 'Team';
|
|
701
|
+
};
|
|
702
|
+
};
|
|
703
|
+
/**
|
|
704
|
+
* Find zero or one Team that matches the filter.
|
|
705
|
+
* @param {TeamFindUniqueArgs} args - Arguments to find a Team
|
|
706
|
+
* @example
|
|
707
|
+
* // Get one Team
|
|
708
|
+
* const team = await prisma.team.findUnique({
|
|
709
|
+
* where: {
|
|
710
|
+
* // ... provide filter here
|
|
711
|
+
* }
|
|
712
|
+
* })
|
|
713
|
+
*/
|
|
714
|
+
findUnique<T extends TeamFindUniqueArgs>(args: Prisma.SelectSubset<T, TeamFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
715
|
+
/**
|
|
716
|
+
* Find one Team that matches the filter or throw an error with `error.code='P2025'`
|
|
717
|
+
* if no matches were found.
|
|
718
|
+
* @param {TeamFindUniqueOrThrowArgs} args - Arguments to find a Team
|
|
719
|
+
* @example
|
|
720
|
+
* // Get one Team
|
|
721
|
+
* const team = await prisma.team.findUniqueOrThrow({
|
|
722
|
+
* where: {
|
|
723
|
+
* // ... provide filter here
|
|
724
|
+
* }
|
|
725
|
+
* })
|
|
726
|
+
*/
|
|
727
|
+
findUniqueOrThrow<T extends TeamFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TeamFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
728
|
+
/**
|
|
729
|
+
* Find the first Team that matches the filter.
|
|
730
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
731
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
732
|
+
* @param {TeamFindFirstArgs} args - Arguments to find a Team
|
|
733
|
+
* @example
|
|
734
|
+
* // Get one Team
|
|
735
|
+
* const team = await prisma.team.findFirst({
|
|
736
|
+
* where: {
|
|
737
|
+
* // ... provide filter here
|
|
738
|
+
* }
|
|
739
|
+
* })
|
|
740
|
+
*/
|
|
741
|
+
findFirst<T extends TeamFindFirstArgs>(args?: Prisma.SelectSubset<T, TeamFindFirstArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
742
|
+
/**
|
|
743
|
+
* Find the first Team that matches the filter or
|
|
744
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
745
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
746
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
747
|
+
* @param {TeamFindFirstOrThrowArgs} args - Arguments to find a Team
|
|
748
|
+
* @example
|
|
749
|
+
* // Get one Team
|
|
750
|
+
* const team = await prisma.team.findFirstOrThrow({
|
|
751
|
+
* where: {
|
|
752
|
+
* // ... provide filter here
|
|
753
|
+
* }
|
|
754
|
+
* })
|
|
755
|
+
*/
|
|
756
|
+
findFirstOrThrow<T extends TeamFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TeamFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
757
|
+
/**
|
|
758
|
+
* Find zero or more Teams that matches the filter.
|
|
759
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
760
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
761
|
+
* @param {TeamFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
762
|
+
* @example
|
|
763
|
+
* // Get all Teams
|
|
764
|
+
* const teams = await prisma.team.findMany()
|
|
765
|
+
*
|
|
766
|
+
* // Get first 10 Teams
|
|
767
|
+
* const teams = await prisma.team.findMany({ take: 10 })
|
|
768
|
+
*
|
|
769
|
+
* // Only select the `id`
|
|
770
|
+
* const teamWithIdOnly = await prisma.team.findMany({ select: { id: true } })
|
|
771
|
+
*
|
|
772
|
+
*/
|
|
773
|
+
findMany<T extends TeamFindManyArgs>(args?: Prisma.SelectSubset<T, TeamFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
774
|
+
/**
|
|
775
|
+
* Create a Team.
|
|
776
|
+
* @param {TeamCreateArgs} args - Arguments to create a Team.
|
|
777
|
+
* @example
|
|
778
|
+
* // Create one Team
|
|
779
|
+
* const Team = await prisma.team.create({
|
|
780
|
+
* data: {
|
|
781
|
+
* // ... data to create a Team
|
|
782
|
+
* }
|
|
783
|
+
* })
|
|
784
|
+
*
|
|
785
|
+
*/
|
|
786
|
+
create<T extends TeamCreateArgs>(args: Prisma.SelectSubset<T, TeamCreateArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
787
|
+
/**
|
|
788
|
+
* Create many Teams.
|
|
789
|
+
* @param {TeamCreateManyArgs} args - Arguments to create many Teams.
|
|
790
|
+
* @example
|
|
791
|
+
* // Create many Teams
|
|
792
|
+
* const team = await prisma.team.createMany({
|
|
793
|
+
* data: [
|
|
794
|
+
* // ... provide data here
|
|
795
|
+
* ]
|
|
796
|
+
* })
|
|
797
|
+
*
|
|
798
|
+
*/
|
|
799
|
+
createMany<T extends TeamCreateManyArgs>(args?: Prisma.SelectSubset<T, TeamCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
800
|
+
/**
|
|
801
|
+
* Create many Teams and returns the data saved in the database.
|
|
802
|
+
* @param {TeamCreateManyAndReturnArgs} args - Arguments to create many Teams.
|
|
803
|
+
* @example
|
|
804
|
+
* // Create many Teams
|
|
805
|
+
* const team = await prisma.team.createManyAndReturn({
|
|
806
|
+
* data: [
|
|
807
|
+
* // ... provide data here
|
|
808
|
+
* ]
|
|
809
|
+
* })
|
|
810
|
+
*
|
|
811
|
+
* // Create many Teams and only return the `id`
|
|
812
|
+
* const teamWithIdOnly = await prisma.team.createManyAndReturn({
|
|
813
|
+
* select: { id: true },
|
|
814
|
+
* data: [
|
|
815
|
+
* // ... provide data here
|
|
816
|
+
* ]
|
|
817
|
+
* })
|
|
818
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
819
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
820
|
+
*
|
|
821
|
+
*/
|
|
822
|
+
createManyAndReturn<T extends TeamCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TeamCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
823
|
+
/**
|
|
824
|
+
* Delete a Team.
|
|
825
|
+
* @param {TeamDeleteArgs} args - Arguments to delete one Team.
|
|
826
|
+
* @example
|
|
827
|
+
* // Delete one Team
|
|
828
|
+
* const Team = await prisma.team.delete({
|
|
829
|
+
* where: {
|
|
830
|
+
* // ... filter to delete one Team
|
|
831
|
+
* }
|
|
832
|
+
* })
|
|
833
|
+
*
|
|
834
|
+
*/
|
|
835
|
+
delete<T extends TeamDeleteArgs>(args: Prisma.SelectSubset<T, TeamDeleteArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
836
|
+
/**
|
|
837
|
+
* Update one Team.
|
|
838
|
+
* @param {TeamUpdateArgs} args - Arguments to update one Team.
|
|
839
|
+
* @example
|
|
840
|
+
* // Update one Team
|
|
841
|
+
* const team = await prisma.team.update({
|
|
842
|
+
* where: {
|
|
843
|
+
* // ... provide filter here
|
|
844
|
+
* },
|
|
845
|
+
* data: {
|
|
846
|
+
* // ... provide data here
|
|
847
|
+
* }
|
|
848
|
+
* })
|
|
849
|
+
*
|
|
850
|
+
*/
|
|
851
|
+
update<T extends TeamUpdateArgs>(args: Prisma.SelectSubset<T, TeamUpdateArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
852
|
+
/**
|
|
853
|
+
* Delete zero or more Teams.
|
|
854
|
+
* @param {TeamDeleteManyArgs} args - Arguments to filter Teams to delete.
|
|
855
|
+
* @example
|
|
856
|
+
* // Delete a few Teams
|
|
857
|
+
* const { count } = await prisma.team.deleteMany({
|
|
858
|
+
* where: {
|
|
859
|
+
* // ... provide filter here
|
|
860
|
+
* }
|
|
861
|
+
* })
|
|
862
|
+
*
|
|
863
|
+
*/
|
|
864
|
+
deleteMany<T extends TeamDeleteManyArgs>(args?: Prisma.SelectSubset<T, TeamDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
865
|
+
/**
|
|
866
|
+
* Update zero or more Teams.
|
|
867
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
868
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
869
|
+
* @param {TeamUpdateManyArgs} args - Arguments to update one or more rows.
|
|
870
|
+
* @example
|
|
871
|
+
* // Update many Teams
|
|
872
|
+
* const team = await prisma.team.updateMany({
|
|
873
|
+
* where: {
|
|
874
|
+
* // ... provide filter here
|
|
875
|
+
* },
|
|
876
|
+
* data: {
|
|
877
|
+
* // ... provide data here
|
|
878
|
+
* }
|
|
879
|
+
* })
|
|
880
|
+
*
|
|
881
|
+
*/
|
|
882
|
+
updateMany<T extends TeamUpdateManyArgs>(args: Prisma.SelectSubset<T, TeamUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
883
|
+
/**
|
|
884
|
+
* Update zero or more Teams and returns the data updated in the database.
|
|
885
|
+
* @param {TeamUpdateManyAndReturnArgs} args - Arguments to update many Teams.
|
|
886
|
+
* @example
|
|
887
|
+
* // Update many Teams
|
|
888
|
+
* const team = await prisma.team.updateManyAndReturn({
|
|
889
|
+
* where: {
|
|
890
|
+
* // ... provide filter here
|
|
891
|
+
* },
|
|
892
|
+
* data: [
|
|
893
|
+
* // ... provide data here
|
|
894
|
+
* ]
|
|
895
|
+
* })
|
|
896
|
+
*
|
|
897
|
+
* // Update zero or more Teams and only return the `id`
|
|
898
|
+
* const teamWithIdOnly = await prisma.team.updateManyAndReturn({
|
|
899
|
+
* select: { id: true },
|
|
900
|
+
* where: {
|
|
901
|
+
* // ... provide filter here
|
|
902
|
+
* },
|
|
903
|
+
* data: [
|
|
904
|
+
* // ... provide data here
|
|
905
|
+
* ]
|
|
906
|
+
* })
|
|
907
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
908
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
909
|
+
*
|
|
910
|
+
*/
|
|
911
|
+
updateManyAndReturn<T extends TeamUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TeamUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
912
|
+
/**
|
|
913
|
+
* Create or update one Team.
|
|
914
|
+
* @param {TeamUpsertArgs} args - Arguments to update or create a Team.
|
|
915
|
+
* @example
|
|
916
|
+
* // Update or create a Team
|
|
917
|
+
* const team = await prisma.team.upsert({
|
|
918
|
+
* create: {
|
|
919
|
+
* // ... data to create a Team
|
|
920
|
+
* },
|
|
921
|
+
* update: {
|
|
922
|
+
* // ... in case it already exists, update
|
|
923
|
+
* },
|
|
924
|
+
* where: {
|
|
925
|
+
* // ... the filter for the Team we want to update
|
|
926
|
+
* }
|
|
927
|
+
* })
|
|
928
|
+
*/
|
|
929
|
+
upsert<T extends TeamUpsertArgs>(args: Prisma.SelectSubset<T, TeamUpsertArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
930
|
+
/**
|
|
931
|
+
* Count the number of Teams.
|
|
932
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
933
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
934
|
+
* @param {TeamCountArgs} args - Arguments to filter Teams to count.
|
|
935
|
+
* @example
|
|
936
|
+
* // Count the number of Teams
|
|
937
|
+
* const count = await prisma.team.count({
|
|
938
|
+
* where: {
|
|
939
|
+
* // ... the filter for the Teams we want to count
|
|
940
|
+
* }
|
|
941
|
+
* })
|
|
942
|
+
**/
|
|
943
|
+
count<T extends TeamCountArgs>(args?: Prisma.Subset<T, TeamCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], TeamCountAggregateOutputType> : number>;
|
|
944
|
+
/**
|
|
945
|
+
* Allows you to perform aggregations operations on a Team.
|
|
946
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
947
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
948
|
+
* @param {TeamAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
949
|
+
* @example
|
|
950
|
+
* // Ordered by age ascending
|
|
951
|
+
* // Where email contains prisma.io
|
|
952
|
+
* // Limited to the 10 users
|
|
953
|
+
* const aggregations = await prisma.user.aggregate({
|
|
954
|
+
* _avg: {
|
|
955
|
+
* age: true,
|
|
956
|
+
* },
|
|
957
|
+
* where: {
|
|
958
|
+
* email: {
|
|
959
|
+
* contains: "prisma.io",
|
|
960
|
+
* },
|
|
961
|
+
* },
|
|
962
|
+
* orderBy: {
|
|
963
|
+
* age: "asc",
|
|
964
|
+
* },
|
|
965
|
+
* take: 10,
|
|
966
|
+
* })
|
|
967
|
+
**/
|
|
968
|
+
aggregate<T extends TeamAggregateArgs>(args: Prisma.Subset<T, TeamAggregateArgs>): Prisma.PrismaPromise<GetTeamAggregateType<T>>;
|
|
969
|
+
/**
|
|
970
|
+
* Group by Team.
|
|
971
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
972
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
973
|
+
* @param {TeamGroupByArgs} args - Group by arguments.
|
|
974
|
+
* @example
|
|
975
|
+
* // Group by city, order by createdAt, get count
|
|
976
|
+
* const result = await prisma.user.groupBy({
|
|
977
|
+
* by: ['city', 'createdAt'],
|
|
978
|
+
* orderBy: {
|
|
979
|
+
* createdAt: true
|
|
980
|
+
* },
|
|
981
|
+
* _count: {
|
|
982
|
+
* _all: true
|
|
983
|
+
* },
|
|
984
|
+
* })
|
|
985
|
+
*
|
|
986
|
+
**/
|
|
987
|
+
groupBy<T extends TeamGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
988
|
+
orderBy: TeamGroupByArgs['orderBy'];
|
|
989
|
+
} : {
|
|
990
|
+
orderBy?: TeamGroupByArgs['orderBy'];
|
|
991
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
992
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
993
|
+
Error,
|
|
994
|
+
'Field ',
|
|
995
|
+
P,
|
|
996
|
+
` in "having" needs to be provided in "by"`
|
|
997
|
+
];
|
|
998
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
999
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1000
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1001
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1002
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1003
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1004
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, TeamGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Fields of the Team model
|
|
1007
|
+
*/
|
|
1008
|
+
readonly fields: TeamFieldRefs;
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* The delegate class that acts as a "Promise-like" for Team.
|
|
1012
|
+
* Why is this prefixed with `Prisma__`?
|
|
1013
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1014
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1015
|
+
*/
|
|
1016
|
+
export interface Prisma__TeamClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1017
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1018
|
+
organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1019
|
+
members<T extends Prisma.Team$membersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Team$membersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1020
|
+
environments<T extends Prisma.Team$environmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Team$environmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1023
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1024
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1025
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1026
|
+
*/
|
|
1027
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
1028
|
+
/**
|
|
1029
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1030
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1031
|
+
* @returns A Promise for the completion of the callback.
|
|
1032
|
+
*/
|
|
1033
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1034
|
+
/**
|
|
1035
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1036
|
+
* resolved value cannot be modified from the callback.
|
|
1037
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1038
|
+
* @returns A Promise for the completion of the callback.
|
|
1039
|
+
*/
|
|
1040
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Fields of the Team model
|
|
1044
|
+
*/
|
|
1045
|
+
export interface TeamFieldRefs {
|
|
1046
|
+
readonly id: Prisma.FieldRef<"Team", 'String'>;
|
|
1047
|
+
readonly name: Prisma.FieldRef<"Team", 'String'>;
|
|
1048
|
+
readonly memberCount: Prisma.FieldRef<"Team", 'Int'>;
|
|
1049
|
+
readonly organizationId: Prisma.FieldRef<"Team", 'String'>;
|
|
1050
|
+
readonly createdAt: Prisma.FieldRef<"Team", 'DateTime'>;
|
|
1051
|
+
readonly updatedAt: Prisma.FieldRef<"Team", 'DateTime'>;
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Team findUnique
|
|
1055
|
+
*/
|
|
1056
|
+
export type TeamFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1057
|
+
/**
|
|
1058
|
+
* Select specific fields to fetch from the Team
|
|
1059
|
+
*/
|
|
1060
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* Omit specific fields from the Team
|
|
1063
|
+
*/
|
|
1064
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1065
|
+
/**
|
|
1066
|
+
* Choose, which related nodes to fetch as well
|
|
1067
|
+
*/
|
|
1068
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* Filter, which Team to fetch.
|
|
1071
|
+
*/
|
|
1072
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* Team findUniqueOrThrow
|
|
1076
|
+
*/
|
|
1077
|
+
export type TeamFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1078
|
+
/**
|
|
1079
|
+
* Select specific fields to fetch from the Team
|
|
1080
|
+
*/
|
|
1081
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1082
|
+
/**
|
|
1083
|
+
* Omit specific fields from the Team
|
|
1084
|
+
*/
|
|
1085
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Choose, which related nodes to fetch as well
|
|
1088
|
+
*/
|
|
1089
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1090
|
+
/**
|
|
1091
|
+
* Filter, which Team to fetch.
|
|
1092
|
+
*/
|
|
1093
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
1094
|
+
};
|
|
1095
|
+
/**
|
|
1096
|
+
* Team findFirst
|
|
1097
|
+
*/
|
|
1098
|
+
export type TeamFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1099
|
+
/**
|
|
1100
|
+
* Select specific fields to fetch from the Team
|
|
1101
|
+
*/
|
|
1102
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1103
|
+
/**
|
|
1104
|
+
* Omit specific fields from the Team
|
|
1105
|
+
*/
|
|
1106
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* Choose, which related nodes to fetch as well
|
|
1109
|
+
*/
|
|
1110
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Filter, which Team to fetch.
|
|
1113
|
+
*/
|
|
1114
|
+
where?: Prisma.TeamWhereInput;
|
|
1115
|
+
/**
|
|
1116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1117
|
+
*
|
|
1118
|
+
* Determine the order of Teams to fetch.
|
|
1119
|
+
*/
|
|
1120
|
+
orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[];
|
|
1121
|
+
/**
|
|
1122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1123
|
+
*
|
|
1124
|
+
* Sets the position for searching for Teams.
|
|
1125
|
+
*/
|
|
1126
|
+
cursor?: Prisma.TeamWhereUniqueInput;
|
|
1127
|
+
/**
|
|
1128
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1129
|
+
*
|
|
1130
|
+
* Take `±n` Teams from the position of the cursor.
|
|
1131
|
+
*/
|
|
1132
|
+
take?: number;
|
|
1133
|
+
/**
|
|
1134
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1135
|
+
*
|
|
1136
|
+
* Skip the first `n` Teams.
|
|
1137
|
+
*/
|
|
1138
|
+
skip?: number;
|
|
1139
|
+
/**
|
|
1140
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1141
|
+
*
|
|
1142
|
+
* Filter by unique combinations of Teams.
|
|
1143
|
+
*/
|
|
1144
|
+
distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[];
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Team findFirstOrThrow
|
|
1148
|
+
*/
|
|
1149
|
+
export type TeamFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1150
|
+
/**
|
|
1151
|
+
* Select specific fields to fetch from the Team
|
|
1152
|
+
*/
|
|
1153
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1154
|
+
/**
|
|
1155
|
+
* Omit specific fields from the Team
|
|
1156
|
+
*/
|
|
1157
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1158
|
+
/**
|
|
1159
|
+
* Choose, which related nodes to fetch as well
|
|
1160
|
+
*/
|
|
1161
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1162
|
+
/**
|
|
1163
|
+
* Filter, which Team to fetch.
|
|
1164
|
+
*/
|
|
1165
|
+
where?: Prisma.TeamWhereInput;
|
|
1166
|
+
/**
|
|
1167
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1168
|
+
*
|
|
1169
|
+
* Determine the order of Teams to fetch.
|
|
1170
|
+
*/
|
|
1171
|
+
orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[];
|
|
1172
|
+
/**
|
|
1173
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1174
|
+
*
|
|
1175
|
+
* Sets the position for searching for Teams.
|
|
1176
|
+
*/
|
|
1177
|
+
cursor?: Prisma.TeamWhereUniqueInput;
|
|
1178
|
+
/**
|
|
1179
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1180
|
+
*
|
|
1181
|
+
* Take `±n` Teams from the position of the cursor.
|
|
1182
|
+
*/
|
|
1183
|
+
take?: number;
|
|
1184
|
+
/**
|
|
1185
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1186
|
+
*
|
|
1187
|
+
* Skip the first `n` Teams.
|
|
1188
|
+
*/
|
|
1189
|
+
skip?: number;
|
|
1190
|
+
/**
|
|
1191
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1192
|
+
*
|
|
1193
|
+
* Filter by unique combinations of Teams.
|
|
1194
|
+
*/
|
|
1195
|
+
distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[];
|
|
1196
|
+
};
|
|
1197
|
+
/**
|
|
1198
|
+
* Team findMany
|
|
1199
|
+
*/
|
|
1200
|
+
export type TeamFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1201
|
+
/**
|
|
1202
|
+
* Select specific fields to fetch from the Team
|
|
1203
|
+
*/
|
|
1204
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1205
|
+
/**
|
|
1206
|
+
* Omit specific fields from the Team
|
|
1207
|
+
*/
|
|
1208
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1209
|
+
/**
|
|
1210
|
+
* Choose, which related nodes to fetch as well
|
|
1211
|
+
*/
|
|
1212
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* Filter, which Teams to fetch.
|
|
1215
|
+
*/
|
|
1216
|
+
where?: Prisma.TeamWhereInput;
|
|
1217
|
+
/**
|
|
1218
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1219
|
+
*
|
|
1220
|
+
* Determine the order of Teams to fetch.
|
|
1221
|
+
*/
|
|
1222
|
+
orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[];
|
|
1223
|
+
/**
|
|
1224
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1225
|
+
*
|
|
1226
|
+
* Sets the position for listing Teams.
|
|
1227
|
+
*/
|
|
1228
|
+
cursor?: Prisma.TeamWhereUniqueInput;
|
|
1229
|
+
/**
|
|
1230
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1231
|
+
*
|
|
1232
|
+
* Take `±n` Teams from the position of the cursor.
|
|
1233
|
+
*/
|
|
1234
|
+
take?: number;
|
|
1235
|
+
/**
|
|
1236
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1237
|
+
*
|
|
1238
|
+
* Skip the first `n` Teams.
|
|
1239
|
+
*/
|
|
1240
|
+
skip?: number;
|
|
1241
|
+
/**
|
|
1242
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1243
|
+
*
|
|
1244
|
+
* Filter by unique combinations of Teams.
|
|
1245
|
+
*/
|
|
1246
|
+
distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[];
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* Team create
|
|
1250
|
+
*/
|
|
1251
|
+
export type TeamCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1252
|
+
/**
|
|
1253
|
+
* Select specific fields to fetch from the Team
|
|
1254
|
+
*/
|
|
1255
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1256
|
+
/**
|
|
1257
|
+
* Omit specific fields from the Team
|
|
1258
|
+
*/
|
|
1259
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1260
|
+
/**
|
|
1261
|
+
* Choose, which related nodes to fetch as well
|
|
1262
|
+
*/
|
|
1263
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1264
|
+
/**
|
|
1265
|
+
* The data needed to create a Team.
|
|
1266
|
+
*/
|
|
1267
|
+
data: Prisma.XOR<Prisma.TeamCreateInput, Prisma.TeamUncheckedCreateInput>;
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* Team createMany
|
|
1271
|
+
*/
|
|
1272
|
+
export type TeamCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1273
|
+
/**
|
|
1274
|
+
* The data used to create many Teams.
|
|
1275
|
+
*/
|
|
1276
|
+
data: Prisma.TeamCreateManyInput | Prisma.TeamCreateManyInput[];
|
|
1277
|
+
skipDuplicates?: boolean;
|
|
1278
|
+
};
|
|
1279
|
+
/**
|
|
1280
|
+
* Team createManyAndReturn
|
|
1281
|
+
*/
|
|
1282
|
+
export type TeamCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1283
|
+
/**
|
|
1284
|
+
* Select specific fields to fetch from the Team
|
|
1285
|
+
*/
|
|
1286
|
+
select?: Prisma.TeamSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1287
|
+
/**
|
|
1288
|
+
* Omit specific fields from the Team
|
|
1289
|
+
*/
|
|
1290
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* The data used to create many Teams.
|
|
1293
|
+
*/
|
|
1294
|
+
data: Prisma.TeamCreateManyInput | Prisma.TeamCreateManyInput[];
|
|
1295
|
+
skipDuplicates?: boolean;
|
|
1296
|
+
/**
|
|
1297
|
+
* Choose, which related nodes to fetch as well
|
|
1298
|
+
*/
|
|
1299
|
+
include?: Prisma.TeamIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1300
|
+
};
|
|
1301
|
+
/**
|
|
1302
|
+
* Team update
|
|
1303
|
+
*/
|
|
1304
|
+
export type TeamUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1305
|
+
/**
|
|
1306
|
+
* Select specific fields to fetch from the Team
|
|
1307
|
+
*/
|
|
1308
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1309
|
+
/**
|
|
1310
|
+
* Omit specific fields from the Team
|
|
1311
|
+
*/
|
|
1312
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1313
|
+
/**
|
|
1314
|
+
* Choose, which related nodes to fetch as well
|
|
1315
|
+
*/
|
|
1316
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1317
|
+
/**
|
|
1318
|
+
* The data needed to update a Team.
|
|
1319
|
+
*/
|
|
1320
|
+
data: Prisma.XOR<Prisma.TeamUpdateInput, Prisma.TeamUncheckedUpdateInput>;
|
|
1321
|
+
/**
|
|
1322
|
+
* Choose, which Team to update.
|
|
1323
|
+
*/
|
|
1324
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
1325
|
+
};
|
|
1326
|
+
/**
|
|
1327
|
+
* Team updateMany
|
|
1328
|
+
*/
|
|
1329
|
+
export type TeamUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1330
|
+
/**
|
|
1331
|
+
* The data used to update Teams.
|
|
1332
|
+
*/
|
|
1333
|
+
data: Prisma.XOR<Prisma.TeamUpdateManyMutationInput, Prisma.TeamUncheckedUpdateManyInput>;
|
|
1334
|
+
/**
|
|
1335
|
+
* Filter which Teams to update
|
|
1336
|
+
*/
|
|
1337
|
+
where?: Prisma.TeamWhereInput;
|
|
1338
|
+
/**
|
|
1339
|
+
* Limit how many Teams to update.
|
|
1340
|
+
*/
|
|
1341
|
+
limit?: number;
|
|
1342
|
+
};
|
|
1343
|
+
/**
|
|
1344
|
+
* Team updateManyAndReturn
|
|
1345
|
+
*/
|
|
1346
|
+
export type TeamUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1347
|
+
/**
|
|
1348
|
+
* Select specific fields to fetch from the Team
|
|
1349
|
+
*/
|
|
1350
|
+
select?: Prisma.TeamSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1351
|
+
/**
|
|
1352
|
+
* Omit specific fields from the Team
|
|
1353
|
+
*/
|
|
1354
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1355
|
+
/**
|
|
1356
|
+
* The data used to update Teams.
|
|
1357
|
+
*/
|
|
1358
|
+
data: Prisma.XOR<Prisma.TeamUpdateManyMutationInput, Prisma.TeamUncheckedUpdateManyInput>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Filter which Teams to update
|
|
1361
|
+
*/
|
|
1362
|
+
where?: Prisma.TeamWhereInput;
|
|
1363
|
+
/**
|
|
1364
|
+
* Limit how many Teams to update.
|
|
1365
|
+
*/
|
|
1366
|
+
limit?: number;
|
|
1367
|
+
/**
|
|
1368
|
+
* Choose, which related nodes to fetch as well
|
|
1369
|
+
*/
|
|
1370
|
+
include?: Prisma.TeamIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1371
|
+
};
|
|
1372
|
+
/**
|
|
1373
|
+
* Team upsert
|
|
1374
|
+
*/
|
|
1375
|
+
export type TeamUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1376
|
+
/**
|
|
1377
|
+
* Select specific fields to fetch from the Team
|
|
1378
|
+
*/
|
|
1379
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1380
|
+
/**
|
|
1381
|
+
* Omit specific fields from the Team
|
|
1382
|
+
*/
|
|
1383
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1384
|
+
/**
|
|
1385
|
+
* Choose, which related nodes to fetch as well
|
|
1386
|
+
*/
|
|
1387
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1388
|
+
/**
|
|
1389
|
+
* The filter to search for the Team to update in case it exists.
|
|
1390
|
+
*/
|
|
1391
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
1392
|
+
/**
|
|
1393
|
+
* In case the Team found by the `where` argument doesn't exist, create a new Team with this data.
|
|
1394
|
+
*/
|
|
1395
|
+
create: Prisma.XOR<Prisma.TeamCreateInput, Prisma.TeamUncheckedCreateInput>;
|
|
1396
|
+
/**
|
|
1397
|
+
* In case the Team was found with the provided `where` argument, update it with this data.
|
|
1398
|
+
*/
|
|
1399
|
+
update: Prisma.XOR<Prisma.TeamUpdateInput, Prisma.TeamUncheckedUpdateInput>;
|
|
1400
|
+
};
|
|
1401
|
+
/**
|
|
1402
|
+
* Team delete
|
|
1403
|
+
*/
|
|
1404
|
+
export type TeamDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1405
|
+
/**
|
|
1406
|
+
* Select specific fields to fetch from the Team
|
|
1407
|
+
*/
|
|
1408
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1409
|
+
/**
|
|
1410
|
+
* Omit specific fields from the Team
|
|
1411
|
+
*/
|
|
1412
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1413
|
+
/**
|
|
1414
|
+
* Choose, which related nodes to fetch as well
|
|
1415
|
+
*/
|
|
1416
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1417
|
+
/**
|
|
1418
|
+
* Filter which Team to delete.
|
|
1419
|
+
*/
|
|
1420
|
+
where: Prisma.TeamWhereUniqueInput;
|
|
1421
|
+
};
|
|
1422
|
+
/**
|
|
1423
|
+
* Team deleteMany
|
|
1424
|
+
*/
|
|
1425
|
+
export type TeamDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1426
|
+
/**
|
|
1427
|
+
* Filter which Teams to delete
|
|
1428
|
+
*/
|
|
1429
|
+
where?: Prisma.TeamWhereInput;
|
|
1430
|
+
/**
|
|
1431
|
+
* Limit how many Teams to delete.
|
|
1432
|
+
*/
|
|
1433
|
+
limit?: number;
|
|
1434
|
+
};
|
|
1435
|
+
/**
|
|
1436
|
+
* Team.members
|
|
1437
|
+
*/
|
|
1438
|
+
export type Team$membersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1439
|
+
/**
|
|
1440
|
+
* Select specific fields to fetch from the TeamMember
|
|
1441
|
+
*/
|
|
1442
|
+
select?: Prisma.TeamMemberSelect<ExtArgs> | null;
|
|
1443
|
+
/**
|
|
1444
|
+
* Omit specific fields from the TeamMember
|
|
1445
|
+
*/
|
|
1446
|
+
omit?: Prisma.TeamMemberOmit<ExtArgs> | null;
|
|
1447
|
+
/**
|
|
1448
|
+
* Choose, which related nodes to fetch as well
|
|
1449
|
+
*/
|
|
1450
|
+
include?: Prisma.TeamMemberInclude<ExtArgs> | null;
|
|
1451
|
+
where?: Prisma.TeamMemberWhereInput;
|
|
1452
|
+
orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[];
|
|
1453
|
+
cursor?: Prisma.TeamMemberWhereUniqueInput;
|
|
1454
|
+
take?: number;
|
|
1455
|
+
skip?: number;
|
|
1456
|
+
distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[];
|
|
1457
|
+
};
|
|
1458
|
+
/**
|
|
1459
|
+
* Team.environments
|
|
1460
|
+
*/
|
|
1461
|
+
export type Team$environmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1462
|
+
/**
|
|
1463
|
+
* Select specific fields to fetch from the Environment
|
|
1464
|
+
*/
|
|
1465
|
+
select?: Prisma.EnvironmentSelect<ExtArgs> | null;
|
|
1466
|
+
/**
|
|
1467
|
+
* Omit specific fields from the Environment
|
|
1468
|
+
*/
|
|
1469
|
+
omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
|
|
1470
|
+
/**
|
|
1471
|
+
* Choose, which related nodes to fetch as well
|
|
1472
|
+
*/
|
|
1473
|
+
include?: Prisma.EnvironmentInclude<ExtArgs> | null;
|
|
1474
|
+
where?: Prisma.EnvironmentWhereInput;
|
|
1475
|
+
orderBy?: Prisma.EnvironmentOrderByWithRelationInput | Prisma.EnvironmentOrderByWithRelationInput[];
|
|
1476
|
+
cursor?: Prisma.EnvironmentWhereUniqueInput;
|
|
1477
|
+
take?: number;
|
|
1478
|
+
skip?: number;
|
|
1479
|
+
distinct?: Prisma.EnvironmentScalarFieldEnum | Prisma.EnvironmentScalarFieldEnum[];
|
|
1480
|
+
};
|
|
1481
|
+
/**
|
|
1482
|
+
* Team without action
|
|
1483
|
+
*/
|
|
1484
|
+
export type TeamDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1485
|
+
/**
|
|
1486
|
+
* Select specific fields to fetch from the Team
|
|
1487
|
+
*/
|
|
1488
|
+
select?: Prisma.TeamSelect<ExtArgs> | null;
|
|
1489
|
+
/**
|
|
1490
|
+
* Omit specific fields from the Team
|
|
1491
|
+
*/
|
|
1492
|
+
omit?: Prisma.TeamOmit<ExtArgs> | null;
|
|
1493
|
+
/**
|
|
1494
|
+
* Choose, which related nodes to fetch as well
|
|
1495
|
+
*/
|
|
1496
|
+
include?: Prisma.TeamInclude<ExtArgs> | null;
|
|
1497
|
+
};
|
|
1498
|
+
//# sourceMappingURL=Team.d.ts.map
|