@valentine-efagene/qshelter-common 2.0.119 → 2.0.121
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/generated/client/browser.d.ts +11 -0
- package/dist/generated/client/client.d.ts +11 -0
- package/dist/generated/client/commonInputTypes.d.ts +260 -0
- package/dist/generated/client/enums.d.ts +79 -0
- package/dist/generated/client/enums.js +71 -1
- package/dist/generated/client/internal/class.d.ts +22 -0
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +277 -2
- package/dist/generated/client/internal/prismaNamespace.js +109 -4
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +110 -1
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +109 -4
- package/dist/generated/client/models/DocumentationPhase.d.ts +243 -1
- package/dist/generated/client/models/DocumentationPlanStep.d.ts +241 -1
- package/dist/generated/client/models/DocumentationStep.d.ts +1017 -1
- package/dist/generated/client/models/Organization.d.ts +1930 -0
- package/dist/generated/client/models/Organization.js +1 -0
- package/dist/generated/client/models/OrganizationMember.d.ts +1598 -0
- package/dist/generated/client/models/OrganizationMember.js +1 -0
- package/dist/generated/client/models/QuestionnairePhase.d.ts +165 -0
- package/dist/generated/client/models/QuestionnairePlanQuestion.d.ts +25 -22
- package/dist/generated/client/models/Tenant.d.ts +555 -0
- package/dist/generated/client/models/User.d.ts +776 -0
- package/dist/generated/client/models.d.ts +2 -0
- package/dist/src/middleware/auth-context.d.ts +30 -1
- package/dist/src/middleware/auth-context.js +34 -1
- package/dist/src/prisma/tenant.js +2 -0
- package/dist/src/utils/condition-operators.d.ts +5 -23
- package/dist/src/utils/condition-operators.js +6 -19
- package/dist/src/utils/documentation-enums.d.ts +6 -0
- package/dist/src/utils/documentation-enums.js +6 -0
- package/package.json +1 -1
- package/prisma/migrations/20260115123703_add_organizations/migration.sql +69 -0
- package/prisma/migrations/20260115125519_add_requires_manual_review_to_step/migration.sql +2 -0
- package/prisma/migrations/20260115134106_add_conditional_step_support/migration.sql +11 -0
- package/prisma/schema.prisma +191 -1
|
@@ -0,0 +1,1598 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as $Enums from "../enums.js";
|
|
3
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
4
|
+
/**
|
|
5
|
+
* Model OrganizationMember
|
|
6
|
+
* OrganizationMember: Links users to organizations with roles and permissions
|
|
7
|
+
* Supports maker-checker workflows via canApprove and approvalLimit
|
|
8
|
+
*/
|
|
9
|
+
export type OrganizationMemberModel = runtime.Types.Result.DefaultSelection<Prisma.$OrganizationMemberPayload>;
|
|
10
|
+
export type AggregateOrganizationMember = {
|
|
11
|
+
_count: OrganizationMemberCountAggregateOutputType | null;
|
|
12
|
+
_avg: OrganizationMemberAvgAggregateOutputType | null;
|
|
13
|
+
_sum: OrganizationMemberSumAggregateOutputType | null;
|
|
14
|
+
_min: OrganizationMemberMinAggregateOutputType | null;
|
|
15
|
+
_max: OrganizationMemberMaxAggregateOutputType | null;
|
|
16
|
+
};
|
|
17
|
+
export type OrganizationMemberAvgAggregateOutputType = {
|
|
18
|
+
approvalLimit: runtime.Decimal | null;
|
|
19
|
+
};
|
|
20
|
+
export type OrganizationMemberSumAggregateOutputType = {
|
|
21
|
+
approvalLimit: runtime.Decimal | null;
|
|
22
|
+
};
|
|
23
|
+
export type OrganizationMemberMinAggregateOutputType = {
|
|
24
|
+
id: string | null;
|
|
25
|
+
organizationId: string | null;
|
|
26
|
+
userId: string | null;
|
|
27
|
+
role: $Enums.OrganizationRole | null;
|
|
28
|
+
title: string | null;
|
|
29
|
+
department: string | null;
|
|
30
|
+
employeeId: string | null;
|
|
31
|
+
isActive: boolean | null;
|
|
32
|
+
canApprove: boolean | null;
|
|
33
|
+
approvalLimit: runtime.Decimal | null;
|
|
34
|
+
invitedAt: Date | null;
|
|
35
|
+
acceptedAt: Date | null;
|
|
36
|
+
invitedBy: string | null;
|
|
37
|
+
createdAt: Date | null;
|
|
38
|
+
updatedAt: Date | null;
|
|
39
|
+
};
|
|
40
|
+
export type OrganizationMemberMaxAggregateOutputType = {
|
|
41
|
+
id: string | null;
|
|
42
|
+
organizationId: string | null;
|
|
43
|
+
userId: string | null;
|
|
44
|
+
role: $Enums.OrganizationRole | null;
|
|
45
|
+
title: string | null;
|
|
46
|
+
department: string | null;
|
|
47
|
+
employeeId: string | null;
|
|
48
|
+
isActive: boolean | null;
|
|
49
|
+
canApprove: boolean | null;
|
|
50
|
+
approvalLimit: runtime.Decimal | null;
|
|
51
|
+
invitedAt: Date | null;
|
|
52
|
+
acceptedAt: Date | null;
|
|
53
|
+
invitedBy: string | null;
|
|
54
|
+
createdAt: Date | null;
|
|
55
|
+
updatedAt: Date | null;
|
|
56
|
+
};
|
|
57
|
+
export type OrganizationMemberCountAggregateOutputType = {
|
|
58
|
+
id: number;
|
|
59
|
+
organizationId: number;
|
|
60
|
+
userId: number;
|
|
61
|
+
role: number;
|
|
62
|
+
title: number;
|
|
63
|
+
department: number;
|
|
64
|
+
employeeId: number;
|
|
65
|
+
isActive: number;
|
|
66
|
+
canApprove: number;
|
|
67
|
+
approvalLimit: number;
|
|
68
|
+
invitedAt: number;
|
|
69
|
+
acceptedAt: number;
|
|
70
|
+
invitedBy: number;
|
|
71
|
+
createdAt: number;
|
|
72
|
+
updatedAt: number;
|
|
73
|
+
_all: number;
|
|
74
|
+
};
|
|
75
|
+
export type OrganizationMemberAvgAggregateInputType = {
|
|
76
|
+
approvalLimit?: true;
|
|
77
|
+
};
|
|
78
|
+
export type OrganizationMemberSumAggregateInputType = {
|
|
79
|
+
approvalLimit?: true;
|
|
80
|
+
};
|
|
81
|
+
export type OrganizationMemberMinAggregateInputType = {
|
|
82
|
+
id?: true;
|
|
83
|
+
organizationId?: true;
|
|
84
|
+
userId?: true;
|
|
85
|
+
role?: true;
|
|
86
|
+
title?: true;
|
|
87
|
+
department?: true;
|
|
88
|
+
employeeId?: true;
|
|
89
|
+
isActive?: true;
|
|
90
|
+
canApprove?: true;
|
|
91
|
+
approvalLimit?: true;
|
|
92
|
+
invitedAt?: true;
|
|
93
|
+
acceptedAt?: true;
|
|
94
|
+
invitedBy?: true;
|
|
95
|
+
createdAt?: true;
|
|
96
|
+
updatedAt?: true;
|
|
97
|
+
};
|
|
98
|
+
export type OrganizationMemberMaxAggregateInputType = {
|
|
99
|
+
id?: true;
|
|
100
|
+
organizationId?: true;
|
|
101
|
+
userId?: true;
|
|
102
|
+
role?: true;
|
|
103
|
+
title?: true;
|
|
104
|
+
department?: true;
|
|
105
|
+
employeeId?: true;
|
|
106
|
+
isActive?: true;
|
|
107
|
+
canApprove?: true;
|
|
108
|
+
approvalLimit?: true;
|
|
109
|
+
invitedAt?: true;
|
|
110
|
+
acceptedAt?: true;
|
|
111
|
+
invitedBy?: true;
|
|
112
|
+
createdAt?: true;
|
|
113
|
+
updatedAt?: true;
|
|
114
|
+
};
|
|
115
|
+
export type OrganizationMemberCountAggregateInputType = {
|
|
116
|
+
id?: true;
|
|
117
|
+
organizationId?: true;
|
|
118
|
+
userId?: true;
|
|
119
|
+
role?: true;
|
|
120
|
+
title?: true;
|
|
121
|
+
department?: true;
|
|
122
|
+
employeeId?: true;
|
|
123
|
+
isActive?: true;
|
|
124
|
+
canApprove?: true;
|
|
125
|
+
approvalLimit?: true;
|
|
126
|
+
invitedAt?: true;
|
|
127
|
+
acceptedAt?: true;
|
|
128
|
+
invitedBy?: true;
|
|
129
|
+
createdAt?: true;
|
|
130
|
+
updatedAt?: true;
|
|
131
|
+
_all?: true;
|
|
132
|
+
};
|
|
133
|
+
export type OrganizationMemberAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
134
|
+
/**
|
|
135
|
+
* Filter which OrganizationMember to aggregate.
|
|
136
|
+
*/
|
|
137
|
+
where?: Prisma.OrganizationMemberWhereInput;
|
|
138
|
+
/**
|
|
139
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
140
|
+
*
|
|
141
|
+
* Determine the order of OrganizationMembers to fetch.
|
|
142
|
+
*/
|
|
143
|
+
orderBy?: Prisma.OrganizationMemberOrderByWithRelationInput | Prisma.OrganizationMemberOrderByWithRelationInput[];
|
|
144
|
+
/**
|
|
145
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
146
|
+
*
|
|
147
|
+
* Sets the start position
|
|
148
|
+
*/
|
|
149
|
+
cursor?: Prisma.OrganizationMemberWhereUniqueInput;
|
|
150
|
+
/**
|
|
151
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
152
|
+
*
|
|
153
|
+
* Take `±n` OrganizationMembers from the position of the cursor.
|
|
154
|
+
*/
|
|
155
|
+
take?: number;
|
|
156
|
+
/**
|
|
157
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
158
|
+
*
|
|
159
|
+
* Skip the first `n` OrganizationMembers.
|
|
160
|
+
*/
|
|
161
|
+
skip?: number;
|
|
162
|
+
/**
|
|
163
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
164
|
+
*
|
|
165
|
+
* Count returned OrganizationMembers
|
|
166
|
+
**/
|
|
167
|
+
_count?: true | OrganizationMemberCountAggregateInputType;
|
|
168
|
+
/**
|
|
169
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
170
|
+
*
|
|
171
|
+
* Select which fields to average
|
|
172
|
+
**/
|
|
173
|
+
_avg?: OrganizationMemberAvgAggregateInputType;
|
|
174
|
+
/**
|
|
175
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
176
|
+
*
|
|
177
|
+
* Select which fields to sum
|
|
178
|
+
**/
|
|
179
|
+
_sum?: OrganizationMemberSumAggregateInputType;
|
|
180
|
+
/**
|
|
181
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
182
|
+
*
|
|
183
|
+
* Select which fields to find the minimum value
|
|
184
|
+
**/
|
|
185
|
+
_min?: OrganizationMemberMinAggregateInputType;
|
|
186
|
+
/**
|
|
187
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
188
|
+
*
|
|
189
|
+
* Select which fields to find the maximum value
|
|
190
|
+
**/
|
|
191
|
+
_max?: OrganizationMemberMaxAggregateInputType;
|
|
192
|
+
};
|
|
193
|
+
export type GetOrganizationMemberAggregateType<T extends OrganizationMemberAggregateArgs> = {
|
|
194
|
+
[P in keyof T & keyof AggregateOrganizationMember]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOrganizationMember[P]> : Prisma.GetScalarType<T[P], AggregateOrganizationMember[P]>;
|
|
195
|
+
};
|
|
196
|
+
export type OrganizationMemberGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
197
|
+
where?: Prisma.OrganizationMemberWhereInput;
|
|
198
|
+
orderBy?: Prisma.OrganizationMemberOrderByWithAggregationInput | Prisma.OrganizationMemberOrderByWithAggregationInput[];
|
|
199
|
+
by: Prisma.OrganizationMemberScalarFieldEnum[] | Prisma.OrganizationMemberScalarFieldEnum;
|
|
200
|
+
having?: Prisma.OrganizationMemberScalarWhereWithAggregatesInput;
|
|
201
|
+
take?: number;
|
|
202
|
+
skip?: number;
|
|
203
|
+
_count?: OrganizationMemberCountAggregateInputType | true;
|
|
204
|
+
_avg?: OrganizationMemberAvgAggregateInputType;
|
|
205
|
+
_sum?: OrganizationMemberSumAggregateInputType;
|
|
206
|
+
_min?: OrganizationMemberMinAggregateInputType;
|
|
207
|
+
_max?: OrganizationMemberMaxAggregateInputType;
|
|
208
|
+
};
|
|
209
|
+
export type OrganizationMemberGroupByOutputType = {
|
|
210
|
+
id: string;
|
|
211
|
+
organizationId: string;
|
|
212
|
+
userId: string;
|
|
213
|
+
role: $Enums.OrganizationRole;
|
|
214
|
+
title: string | null;
|
|
215
|
+
department: string | null;
|
|
216
|
+
employeeId: string | null;
|
|
217
|
+
isActive: boolean;
|
|
218
|
+
canApprove: boolean;
|
|
219
|
+
approvalLimit: runtime.Decimal | null;
|
|
220
|
+
invitedAt: Date | null;
|
|
221
|
+
acceptedAt: Date | null;
|
|
222
|
+
invitedBy: string | null;
|
|
223
|
+
createdAt: Date;
|
|
224
|
+
updatedAt: Date;
|
|
225
|
+
_count: OrganizationMemberCountAggregateOutputType | null;
|
|
226
|
+
_avg: OrganizationMemberAvgAggregateOutputType | null;
|
|
227
|
+
_sum: OrganizationMemberSumAggregateOutputType | null;
|
|
228
|
+
_min: OrganizationMemberMinAggregateOutputType | null;
|
|
229
|
+
_max: OrganizationMemberMaxAggregateOutputType | null;
|
|
230
|
+
};
|
|
231
|
+
type GetOrganizationMemberGroupByPayload<T extends OrganizationMemberGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OrganizationMemberGroupByOutputType, T['by']> & {
|
|
232
|
+
[P in ((keyof T) & (keyof OrganizationMemberGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OrganizationMemberGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OrganizationMemberGroupByOutputType[P]>;
|
|
233
|
+
}>>;
|
|
234
|
+
export type OrganizationMemberWhereInput = {
|
|
235
|
+
AND?: Prisma.OrganizationMemberWhereInput | Prisma.OrganizationMemberWhereInput[];
|
|
236
|
+
OR?: Prisma.OrganizationMemberWhereInput[];
|
|
237
|
+
NOT?: Prisma.OrganizationMemberWhereInput | Prisma.OrganizationMemberWhereInput[];
|
|
238
|
+
id?: Prisma.StringFilter<"OrganizationMember"> | string;
|
|
239
|
+
organizationId?: Prisma.StringFilter<"OrganizationMember"> | string;
|
|
240
|
+
userId?: Prisma.StringFilter<"OrganizationMember"> | string;
|
|
241
|
+
role?: Prisma.EnumOrganizationRoleFilter<"OrganizationMember"> | $Enums.OrganizationRole;
|
|
242
|
+
title?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
243
|
+
department?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
244
|
+
employeeId?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
245
|
+
isActive?: Prisma.BoolFilter<"OrganizationMember"> | boolean;
|
|
246
|
+
canApprove?: Prisma.BoolFilter<"OrganizationMember"> | boolean;
|
|
247
|
+
approvalLimit?: Prisma.DecimalNullableFilter<"OrganizationMember"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
248
|
+
invitedAt?: Prisma.DateTimeNullableFilter<"OrganizationMember"> | Date | string | null;
|
|
249
|
+
acceptedAt?: Prisma.DateTimeNullableFilter<"OrganizationMember"> | Date | string | null;
|
|
250
|
+
invitedBy?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
251
|
+
createdAt?: Prisma.DateTimeFilter<"OrganizationMember"> | Date | string;
|
|
252
|
+
updatedAt?: Prisma.DateTimeFilter<"OrganizationMember"> | Date | string;
|
|
253
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
254
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
255
|
+
};
|
|
256
|
+
export type OrganizationMemberOrderByWithRelationInput = {
|
|
257
|
+
id?: Prisma.SortOrder;
|
|
258
|
+
organizationId?: Prisma.SortOrder;
|
|
259
|
+
userId?: Prisma.SortOrder;
|
|
260
|
+
role?: Prisma.SortOrder;
|
|
261
|
+
title?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
262
|
+
department?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
263
|
+
employeeId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
264
|
+
isActive?: Prisma.SortOrder;
|
|
265
|
+
canApprove?: Prisma.SortOrder;
|
|
266
|
+
approvalLimit?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
267
|
+
invitedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
268
|
+
acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
269
|
+
invitedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
270
|
+
createdAt?: Prisma.SortOrder;
|
|
271
|
+
updatedAt?: Prisma.SortOrder;
|
|
272
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
273
|
+
user?: Prisma.UserOrderByWithRelationInput;
|
|
274
|
+
_relevance?: Prisma.OrganizationMemberOrderByRelevanceInput;
|
|
275
|
+
};
|
|
276
|
+
export type OrganizationMemberWhereUniqueInput = Prisma.AtLeast<{
|
|
277
|
+
id?: string;
|
|
278
|
+
organizationId_userId?: Prisma.OrganizationMemberOrganizationIdUserIdCompoundUniqueInput;
|
|
279
|
+
AND?: Prisma.OrganizationMemberWhereInput | Prisma.OrganizationMemberWhereInput[];
|
|
280
|
+
OR?: Prisma.OrganizationMemberWhereInput[];
|
|
281
|
+
NOT?: Prisma.OrganizationMemberWhereInput | Prisma.OrganizationMemberWhereInput[];
|
|
282
|
+
organizationId?: Prisma.StringFilter<"OrganizationMember"> | string;
|
|
283
|
+
userId?: Prisma.StringFilter<"OrganizationMember"> | string;
|
|
284
|
+
role?: Prisma.EnumOrganizationRoleFilter<"OrganizationMember"> | $Enums.OrganizationRole;
|
|
285
|
+
title?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
286
|
+
department?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
287
|
+
employeeId?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
288
|
+
isActive?: Prisma.BoolFilter<"OrganizationMember"> | boolean;
|
|
289
|
+
canApprove?: Prisma.BoolFilter<"OrganizationMember"> | boolean;
|
|
290
|
+
approvalLimit?: Prisma.DecimalNullableFilter<"OrganizationMember"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
291
|
+
invitedAt?: Prisma.DateTimeNullableFilter<"OrganizationMember"> | Date | string | null;
|
|
292
|
+
acceptedAt?: Prisma.DateTimeNullableFilter<"OrganizationMember"> | Date | string | null;
|
|
293
|
+
invitedBy?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
294
|
+
createdAt?: Prisma.DateTimeFilter<"OrganizationMember"> | Date | string;
|
|
295
|
+
updatedAt?: Prisma.DateTimeFilter<"OrganizationMember"> | Date | string;
|
|
296
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
297
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
298
|
+
}, "id" | "organizationId_userId">;
|
|
299
|
+
export type OrganizationMemberOrderByWithAggregationInput = {
|
|
300
|
+
id?: Prisma.SortOrder;
|
|
301
|
+
organizationId?: Prisma.SortOrder;
|
|
302
|
+
userId?: Prisma.SortOrder;
|
|
303
|
+
role?: Prisma.SortOrder;
|
|
304
|
+
title?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
305
|
+
department?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
306
|
+
employeeId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
307
|
+
isActive?: Prisma.SortOrder;
|
|
308
|
+
canApprove?: Prisma.SortOrder;
|
|
309
|
+
approvalLimit?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
310
|
+
invitedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
311
|
+
acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
312
|
+
invitedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
313
|
+
createdAt?: Prisma.SortOrder;
|
|
314
|
+
updatedAt?: Prisma.SortOrder;
|
|
315
|
+
_count?: Prisma.OrganizationMemberCountOrderByAggregateInput;
|
|
316
|
+
_avg?: Prisma.OrganizationMemberAvgOrderByAggregateInput;
|
|
317
|
+
_max?: Prisma.OrganizationMemberMaxOrderByAggregateInput;
|
|
318
|
+
_min?: Prisma.OrganizationMemberMinOrderByAggregateInput;
|
|
319
|
+
_sum?: Prisma.OrganizationMemberSumOrderByAggregateInput;
|
|
320
|
+
};
|
|
321
|
+
export type OrganizationMemberScalarWhereWithAggregatesInput = {
|
|
322
|
+
AND?: Prisma.OrganizationMemberScalarWhereWithAggregatesInput | Prisma.OrganizationMemberScalarWhereWithAggregatesInput[];
|
|
323
|
+
OR?: Prisma.OrganizationMemberScalarWhereWithAggregatesInput[];
|
|
324
|
+
NOT?: Prisma.OrganizationMemberScalarWhereWithAggregatesInput | Prisma.OrganizationMemberScalarWhereWithAggregatesInput[];
|
|
325
|
+
id?: Prisma.StringWithAggregatesFilter<"OrganizationMember"> | string;
|
|
326
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"OrganizationMember"> | string;
|
|
327
|
+
userId?: Prisma.StringWithAggregatesFilter<"OrganizationMember"> | string;
|
|
328
|
+
role?: Prisma.EnumOrganizationRoleWithAggregatesFilter<"OrganizationMember"> | $Enums.OrganizationRole;
|
|
329
|
+
title?: Prisma.StringNullableWithAggregatesFilter<"OrganizationMember"> | string | null;
|
|
330
|
+
department?: Prisma.StringNullableWithAggregatesFilter<"OrganizationMember"> | string | null;
|
|
331
|
+
employeeId?: Prisma.StringNullableWithAggregatesFilter<"OrganizationMember"> | string | null;
|
|
332
|
+
isActive?: Prisma.BoolWithAggregatesFilter<"OrganizationMember"> | boolean;
|
|
333
|
+
canApprove?: Prisma.BoolWithAggregatesFilter<"OrganizationMember"> | boolean;
|
|
334
|
+
approvalLimit?: Prisma.DecimalNullableWithAggregatesFilter<"OrganizationMember"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
335
|
+
invitedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OrganizationMember"> | Date | string | null;
|
|
336
|
+
acceptedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OrganizationMember"> | Date | string | null;
|
|
337
|
+
invitedBy?: Prisma.StringNullableWithAggregatesFilter<"OrganizationMember"> | string | null;
|
|
338
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"OrganizationMember"> | Date | string;
|
|
339
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"OrganizationMember"> | Date | string;
|
|
340
|
+
};
|
|
341
|
+
export type OrganizationMemberCreateInput = {
|
|
342
|
+
id?: string;
|
|
343
|
+
role?: $Enums.OrganizationRole;
|
|
344
|
+
title?: string | null;
|
|
345
|
+
department?: string | null;
|
|
346
|
+
employeeId?: string | null;
|
|
347
|
+
isActive?: boolean;
|
|
348
|
+
canApprove?: boolean;
|
|
349
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
350
|
+
invitedAt?: Date | string | null;
|
|
351
|
+
acceptedAt?: Date | string | null;
|
|
352
|
+
invitedBy?: string | null;
|
|
353
|
+
createdAt?: Date | string;
|
|
354
|
+
updatedAt?: Date | string;
|
|
355
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutMembersInput;
|
|
356
|
+
user: Prisma.UserCreateNestedOneWithoutOrganizationMembershipsInput;
|
|
357
|
+
};
|
|
358
|
+
export type OrganizationMemberUncheckedCreateInput = {
|
|
359
|
+
id?: string;
|
|
360
|
+
organizationId: string;
|
|
361
|
+
userId: string;
|
|
362
|
+
role?: $Enums.OrganizationRole;
|
|
363
|
+
title?: string | null;
|
|
364
|
+
department?: string | null;
|
|
365
|
+
employeeId?: string | null;
|
|
366
|
+
isActive?: boolean;
|
|
367
|
+
canApprove?: boolean;
|
|
368
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
369
|
+
invitedAt?: Date | string | null;
|
|
370
|
+
acceptedAt?: Date | string | null;
|
|
371
|
+
invitedBy?: string | null;
|
|
372
|
+
createdAt?: Date | string;
|
|
373
|
+
updatedAt?: Date | string;
|
|
374
|
+
};
|
|
375
|
+
export type OrganizationMemberUpdateInput = {
|
|
376
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
377
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
378
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
379
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
380
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
381
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
382
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
383
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
384
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
385
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
386
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
387
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
388
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
389
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutMembersNestedInput;
|
|
390
|
+
user?: Prisma.UserUpdateOneRequiredWithoutOrganizationMembershipsNestedInput;
|
|
391
|
+
};
|
|
392
|
+
export type OrganizationMemberUncheckedUpdateInput = {
|
|
393
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
394
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
395
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
396
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
397
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
398
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
399
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
400
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
401
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
402
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
403
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
404
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
405
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
406
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
407
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
408
|
+
};
|
|
409
|
+
export type OrganizationMemberCreateManyInput = {
|
|
410
|
+
id?: string;
|
|
411
|
+
organizationId: string;
|
|
412
|
+
userId: string;
|
|
413
|
+
role?: $Enums.OrganizationRole;
|
|
414
|
+
title?: string | null;
|
|
415
|
+
department?: string | null;
|
|
416
|
+
employeeId?: string | null;
|
|
417
|
+
isActive?: boolean;
|
|
418
|
+
canApprove?: boolean;
|
|
419
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
420
|
+
invitedAt?: Date | string | null;
|
|
421
|
+
acceptedAt?: Date | string | null;
|
|
422
|
+
invitedBy?: string | null;
|
|
423
|
+
createdAt?: Date | string;
|
|
424
|
+
updatedAt?: Date | string;
|
|
425
|
+
};
|
|
426
|
+
export type OrganizationMemberUpdateManyMutationInput = {
|
|
427
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
428
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
429
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
430
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
431
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
432
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
433
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
434
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
435
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
436
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
437
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
438
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
439
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
440
|
+
};
|
|
441
|
+
export type OrganizationMemberUncheckedUpdateManyInput = {
|
|
442
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
443
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
444
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
445
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
446
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
447
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
448
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
449
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
450
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
451
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
452
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
453
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
454
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
455
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
456
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
457
|
+
};
|
|
458
|
+
export type OrganizationMemberListRelationFilter = {
|
|
459
|
+
every?: Prisma.OrganizationMemberWhereInput;
|
|
460
|
+
some?: Prisma.OrganizationMemberWhereInput;
|
|
461
|
+
none?: Prisma.OrganizationMemberWhereInput;
|
|
462
|
+
};
|
|
463
|
+
export type OrganizationMemberOrderByRelationAggregateInput = {
|
|
464
|
+
_count?: Prisma.SortOrder;
|
|
465
|
+
};
|
|
466
|
+
export type OrganizationMemberOrderByRelevanceInput = {
|
|
467
|
+
fields: Prisma.OrganizationMemberOrderByRelevanceFieldEnum | Prisma.OrganizationMemberOrderByRelevanceFieldEnum[];
|
|
468
|
+
sort: Prisma.SortOrder;
|
|
469
|
+
search: string;
|
|
470
|
+
};
|
|
471
|
+
export type OrganizationMemberOrganizationIdUserIdCompoundUniqueInput = {
|
|
472
|
+
organizationId: string;
|
|
473
|
+
userId: string;
|
|
474
|
+
};
|
|
475
|
+
export type OrganizationMemberCountOrderByAggregateInput = {
|
|
476
|
+
id?: Prisma.SortOrder;
|
|
477
|
+
organizationId?: Prisma.SortOrder;
|
|
478
|
+
userId?: Prisma.SortOrder;
|
|
479
|
+
role?: Prisma.SortOrder;
|
|
480
|
+
title?: Prisma.SortOrder;
|
|
481
|
+
department?: Prisma.SortOrder;
|
|
482
|
+
employeeId?: Prisma.SortOrder;
|
|
483
|
+
isActive?: Prisma.SortOrder;
|
|
484
|
+
canApprove?: Prisma.SortOrder;
|
|
485
|
+
approvalLimit?: Prisma.SortOrder;
|
|
486
|
+
invitedAt?: Prisma.SortOrder;
|
|
487
|
+
acceptedAt?: Prisma.SortOrder;
|
|
488
|
+
invitedBy?: Prisma.SortOrder;
|
|
489
|
+
createdAt?: Prisma.SortOrder;
|
|
490
|
+
updatedAt?: Prisma.SortOrder;
|
|
491
|
+
};
|
|
492
|
+
export type OrganizationMemberAvgOrderByAggregateInput = {
|
|
493
|
+
approvalLimit?: Prisma.SortOrder;
|
|
494
|
+
};
|
|
495
|
+
export type OrganizationMemberMaxOrderByAggregateInput = {
|
|
496
|
+
id?: Prisma.SortOrder;
|
|
497
|
+
organizationId?: Prisma.SortOrder;
|
|
498
|
+
userId?: Prisma.SortOrder;
|
|
499
|
+
role?: Prisma.SortOrder;
|
|
500
|
+
title?: Prisma.SortOrder;
|
|
501
|
+
department?: Prisma.SortOrder;
|
|
502
|
+
employeeId?: Prisma.SortOrder;
|
|
503
|
+
isActive?: Prisma.SortOrder;
|
|
504
|
+
canApprove?: Prisma.SortOrder;
|
|
505
|
+
approvalLimit?: Prisma.SortOrder;
|
|
506
|
+
invitedAt?: Prisma.SortOrder;
|
|
507
|
+
acceptedAt?: Prisma.SortOrder;
|
|
508
|
+
invitedBy?: Prisma.SortOrder;
|
|
509
|
+
createdAt?: Prisma.SortOrder;
|
|
510
|
+
updatedAt?: Prisma.SortOrder;
|
|
511
|
+
};
|
|
512
|
+
export type OrganizationMemberMinOrderByAggregateInput = {
|
|
513
|
+
id?: Prisma.SortOrder;
|
|
514
|
+
organizationId?: Prisma.SortOrder;
|
|
515
|
+
userId?: Prisma.SortOrder;
|
|
516
|
+
role?: Prisma.SortOrder;
|
|
517
|
+
title?: Prisma.SortOrder;
|
|
518
|
+
department?: Prisma.SortOrder;
|
|
519
|
+
employeeId?: Prisma.SortOrder;
|
|
520
|
+
isActive?: Prisma.SortOrder;
|
|
521
|
+
canApprove?: Prisma.SortOrder;
|
|
522
|
+
approvalLimit?: Prisma.SortOrder;
|
|
523
|
+
invitedAt?: Prisma.SortOrder;
|
|
524
|
+
acceptedAt?: Prisma.SortOrder;
|
|
525
|
+
invitedBy?: Prisma.SortOrder;
|
|
526
|
+
createdAt?: Prisma.SortOrder;
|
|
527
|
+
updatedAt?: Prisma.SortOrder;
|
|
528
|
+
};
|
|
529
|
+
export type OrganizationMemberSumOrderByAggregateInput = {
|
|
530
|
+
approvalLimit?: Prisma.SortOrder;
|
|
531
|
+
};
|
|
532
|
+
export type OrganizationMemberCreateNestedManyWithoutUserInput = {
|
|
533
|
+
create?: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutUserInput, Prisma.OrganizationMemberUncheckedCreateWithoutUserInput> | Prisma.OrganizationMemberCreateWithoutUserInput[] | Prisma.OrganizationMemberUncheckedCreateWithoutUserInput[];
|
|
534
|
+
connectOrCreate?: Prisma.OrganizationMemberCreateOrConnectWithoutUserInput | Prisma.OrganizationMemberCreateOrConnectWithoutUserInput[];
|
|
535
|
+
createMany?: Prisma.OrganizationMemberCreateManyUserInputEnvelope;
|
|
536
|
+
connect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
537
|
+
};
|
|
538
|
+
export type OrganizationMemberUncheckedCreateNestedManyWithoutUserInput = {
|
|
539
|
+
create?: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutUserInput, Prisma.OrganizationMemberUncheckedCreateWithoutUserInput> | Prisma.OrganizationMemberCreateWithoutUserInput[] | Prisma.OrganizationMemberUncheckedCreateWithoutUserInput[];
|
|
540
|
+
connectOrCreate?: Prisma.OrganizationMemberCreateOrConnectWithoutUserInput | Prisma.OrganizationMemberCreateOrConnectWithoutUserInput[];
|
|
541
|
+
createMany?: Prisma.OrganizationMemberCreateManyUserInputEnvelope;
|
|
542
|
+
connect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
543
|
+
};
|
|
544
|
+
export type OrganizationMemberUpdateManyWithoutUserNestedInput = {
|
|
545
|
+
create?: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutUserInput, Prisma.OrganizationMemberUncheckedCreateWithoutUserInput> | Prisma.OrganizationMemberCreateWithoutUserInput[] | Prisma.OrganizationMemberUncheckedCreateWithoutUserInput[];
|
|
546
|
+
connectOrCreate?: Prisma.OrganizationMemberCreateOrConnectWithoutUserInput | Prisma.OrganizationMemberCreateOrConnectWithoutUserInput[];
|
|
547
|
+
upsert?: Prisma.OrganizationMemberUpsertWithWhereUniqueWithoutUserInput | Prisma.OrganizationMemberUpsertWithWhereUniqueWithoutUserInput[];
|
|
548
|
+
createMany?: Prisma.OrganizationMemberCreateManyUserInputEnvelope;
|
|
549
|
+
set?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
550
|
+
disconnect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
551
|
+
delete?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
552
|
+
connect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
553
|
+
update?: Prisma.OrganizationMemberUpdateWithWhereUniqueWithoutUserInput | Prisma.OrganizationMemberUpdateWithWhereUniqueWithoutUserInput[];
|
|
554
|
+
updateMany?: Prisma.OrganizationMemberUpdateManyWithWhereWithoutUserInput | Prisma.OrganizationMemberUpdateManyWithWhereWithoutUserInput[];
|
|
555
|
+
deleteMany?: Prisma.OrganizationMemberScalarWhereInput | Prisma.OrganizationMemberScalarWhereInput[];
|
|
556
|
+
};
|
|
557
|
+
export type OrganizationMemberUncheckedUpdateManyWithoutUserNestedInput = {
|
|
558
|
+
create?: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutUserInput, Prisma.OrganizationMemberUncheckedCreateWithoutUserInput> | Prisma.OrganizationMemberCreateWithoutUserInput[] | Prisma.OrganizationMemberUncheckedCreateWithoutUserInput[];
|
|
559
|
+
connectOrCreate?: Prisma.OrganizationMemberCreateOrConnectWithoutUserInput | Prisma.OrganizationMemberCreateOrConnectWithoutUserInput[];
|
|
560
|
+
upsert?: Prisma.OrganizationMemberUpsertWithWhereUniqueWithoutUserInput | Prisma.OrganizationMemberUpsertWithWhereUniqueWithoutUserInput[];
|
|
561
|
+
createMany?: Prisma.OrganizationMemberCreateManyUserInputEnvelope;
|
|
562
|
+
set?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
563
|
+
disconnect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
564
|
+
delete?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
565
|
+
connect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
566
|
+
update?: Prisma.OrganizationMemberUpdateWithWhereUniqueWithoutUserInput | Prisma.OrganizationMemberUpdateWithWhereUniqueWithoutUserInput[];
|
|
567
|
+
updateMany?: Prisma.OrganizationMemberUpdateManyWithWhereWithoutUserInput | Prisma.OrganizationMemberUpdateManyWithWhereWithoutUserInput[];
|
|
568
|
+
deleteMany?: Prisma.OrganizationMemberScalarWhereInput | Prisma.OrganizationMemberScalarWhereInput[];
|
|
569
|
+
};
|
|
570
|
+
export type OrganizationMemberCreateNestedManyWithoutOrganizationInput = {
|
|
571
|
+
create?: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutOrganizationInput, Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput> | Prisma.OrganizationMemberCreateWithoutOrganizationInput[] | Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput[];
|
|
572
|
+
connectOrCreate?: Prisma.OrganizationMemberCreateOrConnectWithoutOrganizationInput | Prisma.OrganizationMemberCreateOrConnectWithoutOrganizationInput[];
|
|
573
|
+
createMany?: Prisma.OrganizationMemberCreateManyOrganizationInputEnvelope;
|
|
574
|
+
connect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
575
|
+
};
|
|
576
|
+
export type OrganizationMemberUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
577
|
+
create?: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutOrganizationInput, Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput> | Prisma.OrganizationMemberCreateWithoutOrganizationInput[] | Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput[];
|
|
578
|
+
connectOrCreate?: Prisma.OrganizationMemberCreateOrConnectWithoutOrganizationInput | Prisma.OrganizationMemberCreateOrConnectWithoutOrganizationInput[];
|
|
579
|
+
createMany?: Prisma.OrganizationMemberCreateManyOrganizationInputEnvelope;
|
|
580
|
+
connect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
581
|
+
};
|
|
582
|
+
export type OrganizationMemberUpdateManyWithoutOrganizationNestedInput = {
|
|
583
|
+
create?: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutOrganizationInput, Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput> | Prisma.OrganizationMemberCreateWithoutOrganizationInput[] | Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput[];
|
|
584
|
+
connectOrCreate?: Prisma.OrganizationMemberCreateOrConnectWithoutOrganizationInput | Prisma.OrganizationMemberCreateOrConnectWithoutOrganizationInput[];
|
|
585
|
+
upsert?: Prisma.OrganizationMemberUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.OrganizationMemberUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
586
|
+
createMany?: Prisma.OrganizationMemberCreateManyOrganizationInputEnvelope;
|
|
587
|
+
set?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
588
|
+
disconnect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
589
|
+
delete?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
590
|
+
connect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
591
|
+
update?: Prisma.OrganizationMemberUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.OrganizationMemberUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
592
|
+
updateMany?: Prisma.OrganizationMemberUpdateManyWithWhereWithoutOrganizationInput | Prisma.OrganizationMemberUpdateManyWithWhereWithoutOrganizationInput[];
|
|
593
|
+
deleteMany?: Prisma.OrganizationMemberScalarWhereInput | Prisma.OrganizationMemberScalarWhereInput[];
|
|
594
|
+
};
|
|
595
|
+
export type OrganizationMemberUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
596
|
+
create?: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutOrganizationInput, Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput> | Prisma.OrganizationMemberCreateWithoutOrganizationInput[] | Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput[];
|
|
597
|
+
connectOrCreate?: Prisma.OrganizationMemberCreateOrConnectWithoutOrganizationInput | Prisma.OrganizationMemberCreateOrConnectWithoutOrganizationInput[];
|
|
598
|
+
upsert?: Prisma.OrganizationMemberUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.OrganizationMemberUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
599
|
+
createMany?: Prisma.OrganizationMemberCreateManyOrganizationInputEnvelope;
|
|
600
|
+
set?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
601
|
+
disconnect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
602
|
+
delete?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
603
|
+
connect?: Prisma.OrganizationMemberWhereUniqueInput | Prisma.OrganizationMemberWhereUniqueInput[];
|
|
604
|
+
update?: Prisma.OrganizationMemberUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.OrganizationMemberUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
605
|
+
updateMany?: Prisma.OrganizationMemberUpdateManyWithWhereWithoutOrganizationInput | Prisma.OrganizationMemberUpdateManyWithWhereWithoutOrganizationInput[];
|
|
606
|
+
deleteMany?: Prisma.OrganizationMemberScalarWhereInput | Prisma.OrganizationMemberScalarWhereInput[];
|
|
607
|
+
};
|
|
608
|
+
export type EnumOrganizationRoleFieldUpdateOperationsInput = {
|
|
609
|
+
set?: $Enums.OrganizationRole;
|
|
610
|
+
};
|
|
611
|
+
export type NullableDecimalFieldUpdateOperationsInput = {
|
|
612
|
+
set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
613
|
+
increment?: runtime.Decimal | runtime.DecimalJsLike | number | string;
|
|
614
|
+
decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string;
|
|
615
|
+
multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string;
|
|
616
|
+
divide?: runtime.Decimal | runtime.DecimalJsLike | number | string;
|
|
617
|
+
};
|
|
618
|
+
export type OrganizationMemberCreateWithoutUserInput = {
|
|
619
|
+
id?: string;
|
|
620
|
+
role?: $Enums.OrganizationRole;
|
|
621
|
+
title?: string | null;
|
|
622
|
+
department?: string | null;
|
|
623
|
+
employeeId?: string | null;
|
|
624
|
+
isActive?: boolean;
|
|
625
|
+
canApprove?: boolean;
|
|
626
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
627
|
+
invitedAt?: Date | string | null;
|
|
628
|
+
acceptedAt?: Date | string | null;
|
|
629
|
+
invitedBy?: string | null;
|
|
630
|
+
createdAt?: Date | string;
|
|
631
|
+
updatedAt?: Date | string;
|
|
632
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutMembersInput;
|
|
633
|
+
};
|
|
634
|
+
export type OrganizationMemberUncheckedCreateWithoutUserInput = {
|
|
635
|
+
id?: string;
|
|
636
|
+
organizationId: string;
|
|
637
|
+
role?: $Enums.OrganizationRole;
|
|
638
|
+
title?: string | null;
|
|
639
|
+
department?: string | null;
|
|
640
|
+
employeeId?: string | null;
|
|
641
|
+
isActive?: boolean;
|
|
642
|
+
canApprove?: boolean;
|
|
643
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
644
|
+
invitedAt?: Date | string | null;
|
|
645
|
+
acceptedAt?: Date | string | null;
|
|
646
|
+
invitedBy?: string | null;
|
|
647
|
+
createdAt?: Date | string;
|
|
648
|
+
updatedAt?: Date | string;
|
|
649
|
+
};
|
|
650
|
+
export type OrganizationMemberCreateOrConnectWithoutUserInput = {
|
|
651
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
652
|
+
create: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutUserInput, Prisma.OrganizationMemberUncheckedCreateWithoutUserInput>;
|
|
653
|
+
};
|
|
654
|
+
export type OrganizationMemberCreateManyUserInputEnvelope = {
|
|
655
|
+
data: Prisma.OrganizationMemberCreateManyUserInput | Prisma.OrganizationMemberCreateManyUserInput[];
|
|
656
|
+
skipDuplicates?: boolean;
|
|
657
|
+
};
|
|
658
|
+
export type OrganizationMemberUpsertWithWhereUniqueWithoutUserInput = {
|
|
659
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
660
|
+
update: Prisma.XOR<Prisma.OrganizationMemberUpdateWithoutUserInput, Prisma.OrganizationMemberUncheckedUpdateWithoutUserInput>;
|
|
661
|
+
create: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutUserInput, Prisma.OrganizationMemberUncheckedCreateWithoutUserInput>;
|
|
662
|
+
};
|
|
663
|
+
export type OrganizationMemberUpdateWithWhereUniqueWithoutUserInput = {
|
|
664
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
665
|
+
data: Prisma.XOR<Prisma.OrganizationMemberUpdateWithoutUserInput, Prisma.OrganizationMemberUncheckedUpdateWithoutUserInput>;
|
|
666
|
+
};
|
|
667
|
+
export type OrganizationMemberUpdateManyWithWhereWithoutUserInput = {
|
|
668
|
+
where: Prisma.OrganizationMemberScalarWhereInput;
|
|
669
|
+
data: Prisma.XOR<Prisma.OrganizationMemberUpdateManyMutationInput, Prisma.OrganizationMemberUncheckedUpdateManyWithoutUserInput>;
|
|
670
|
+
};
|
|
671
|
+
export type OrganizationMemberScalarWhereInput = {
|
|
672
|
+
AND?: Prisma.OrganizationMemberScalarWhereInput | Prisma.OrganizationMemberScalarWhereInput[];
|
|
673
|
+
OR?: Prisma.OrganizationMemberScalarWhereInput[];
|
|
674
|
+
NOT?: Prisma.OrganizationMemberScalarWhereInput | Prisma.OrganizationMemberScalarWhereInput[];
|
|
675
|
+
id?: Prisma.StringFilter<"OrganizationMember"> | string;
|
|
676
|
+
organizationId?: Prisma.StringFilter<"OrganizationMember"> | string;
|
|
677
|
+
userId?: Prisma.StringFilter<"OrganizationMember"> | string;
|
|
678
|
+
role?: Prisma.EnumOrganizationRoleFilter<"OrganizationMember"> | $Enums.OrganizationRole;
|
|
679
|
+
title?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
680
|
+
department?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
681
|
+
employeeId?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
682
|
+
isActive?: Prisma.BoolFilter<"OrganizationMember"> | boolean;
|
|
683
|
+
canApprove?: Prisma.BoolFilter<"OrganizationMember"> | boolean;
|
|
684
|
+
approvalLimit?: Prisma.DecimalNullableFilter<"OrganizationMember"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
685
|
+
invitedAt?: Prisma.DateTimeNullableFilter<"OrganizationMember"> | Date | string | null;
|
|
686
|
+
acceptedAt?: Prisma.DateTimeNullableFilter<"OrganizationMember"> | Date | string | null;
|
|
687
|
+
invitedBy?: Prisma.StringNullableFilter<"OrganizationMember"> | string | null;
|
|
688
|
+
createdAt?: Prisma.DateTimeFilter<"OrganizationMember"> | Date | string;
|
|
689
|
+
updatedAt?: Prisma.DateTimeFilter<"OrganizationMember"> | Date | string;
|
|
690
|
+
};
|
|
691
|
+
export type OrganizationMemberCreateWithoutOrganizationInput = {
|
|
692
|
+
id?: string;
|
|
693
|
+
role?: $Enums.OrganizationRole;
|
|
694
|
+
title?: string | null;
|
|
695
|
+
department?: string | null;
|
|
696
|
+
employeeId?: string | null;
|
|
697
|
+
isActive?: boolean;
|
|
698
|
+
canApprove?: boolean;
|
|
699
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
700
|
+
invitedAt?: Date | string | null;
|
|
701
|
+
acceptedAt?: Date | string | null;
|
|
702
|
+
invitedBy?: string | null;
|
|
703
|
+
createdAt?: Date | string;
|
|
704
|
+
updatedAt?: Date | string;
|
|
705
|
+
user: Prisma.UserCreateNestedOneWithoutOrganizationMembershipsInput;
|
|
706
|
+
};
|
|
707
|
+
export type OrganizationMemberUncheckedCreateWithoutOrganizationInput = {
|
|
708
|
+
id?: string;
|
|
709
|
+
userId: string;
|
|
710
|
+
role?: $Enums.OrganizationRole;
|
|
711
|
+
title?: string | null;
|
|
712
|
+
department?: string | null;
|
|
713
|
+
employeeId?: string | null;
|
|
714
|
+
isActive?: boolean;
|
|
715
|
+
canApprove?: boolean;
|
|
716
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
717
|
+
invitedAt?: Date | string | null;
|
|
718
|
+
acceptedAt?: Date | string | null;
|
|
719
|
+
invitedBy?: string | null;
|
|
720
|
+
createdAt?: Date | string;
|
|
721
|
+
updatedAt?: Date | string;
|
|
722
|
+
};
|
|
723
|
+
export type OrganizationMemberCreateOrConnectWithoutOrganizationInput = {
|
|
724
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
725
|
+
create: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutOrganizationInput, Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput>;
|
|
726
|
+
};
|
|
727
|
+
export type OrganizationMemberCreateManyOrganizationInputEnvelope = {
|
|
728
|
+
data: Prisma.OrganizationMemberCreateManyOrganizationInput | Prisma.OrganizationMemberCreateManyOrganizationInput[];
|
|
729
|
+
skipDuplicates?: boolean;
|
|
730
|
+
};
|
|
731
|
+
export type OrganizationMemberUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
732
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
733
|
+
update: Prisma.XOR<Prisma.OrganizationMemberUpdateWithoutOrganizationInput, Prisma.OrganizationMemberUncheckedUpdateWithoutOrganizationInput>;
|
|
734
|
+
create: Prisma.XOR<Prisma.OrganizationMemberCreateWithoutOrganizationInput, Prisma.OrganizationMemberUncheckedCreateWithoutOrganizationInput>;
|
|
735
|
+
};
|
|
736
|
+
export type OrganizationMemberUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
737
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
738
|
+
data: Prisma.XOR<Prisma.OrganizationMemberUpdateWithoutOrganizationInput, Prisma.OrganizationMemberUncheckedUpdateWithoutOrganizationInput>;
|
|
739
|
+
};
|
|
740
|
+
export type OrganizationMemberUpdateManyWithWhereWithoutOrganizationInput = {
|
|
741
|
+
where: Prisma.OrganizationMemberScalarWhereInput;
|
|
742
|
+
data: Prisma.XOR<Prisma.OrganizationMemberUpdateManyMutationInput, Prisma.OrganizationMemberUncheckedUpdateManyWithoutOrganizationInput>;
|
|
743
|
+
};
|
|
744
|
+
export type OrganizationMemberCreateManyUserInput = {
|
|
745
|
+
id?: string;
|
|
746
|
+
organizationId: string;
|
|
747
|
+
role?: $Enums.OrganizationRole;
|
|
748
|
+
title?: string | null;
|
|
749
|
+
department?: string | null;
|
|
750
|
+
employeeId?: string | null;
|
|
751
|
+
isActive?: boolean;
|
|
752
|
+
canApprove?: boolean;
|
|
753
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
754
|
+
invitedAt?: Date | string | null;
|
|
755
|
+
acceptedAt?: Date | string | null;
|
|
756
|
+
invitedBy?: string | null;
|
|
757
|
+
createdAt?: Date | string;
|
|
758
|
+
updatedAt?: Date | string;
|
|
759
|
+
};
|
|
760
|
+
export type OrganizationMemberUpdateWithoutUserInput = {
|
|
761
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
762
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
763
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
764
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
765
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
766
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
767
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
768
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
769
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
770
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
771
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
772
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
773
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
774
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutMembersNestedInput;
|
|
775
|
+
};
|
|
776
|
+
export type OrganizationMemberUncheckedUpdateWithoutUserInput = {
|
|
777
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
778
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
779
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
780
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
781
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
782
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
783
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
784
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
785
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
786
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
787
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
788
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
789
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
790
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
791
|
+
};
|
|
792
|
+
export type OrganizationMemberUncheckedUpdateManyWithoutUserInput = {
|
|
793
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
794
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
795
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
796
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
797
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
798
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
799
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
800
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
801
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
802
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
803
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
804
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
805
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
806
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
807
|
+
};
|
|
808
|
+
export type OrganizationMemberCreateManyOrganizationInput = {
|
|
809
|
+
id?: string;
|
|
810
|
+
userId: string;
|
|
811
|
+
role?: $Enums.OrganizationRole;
|
|
812
|
+
title?: string | null;
|
|
813
|
+
department?: string | null;
|
|
814
|
+
employeeId?: string | null;
|
|
815
|
+
isActive?: boolean;
|
|
816
|
+
canApprove?: boolean;
|
|
817
|
+
approvalLimit?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
818
|
+
invitedAt?: Date | string | null;
|
|
819
|
+
acceptedAt?: Date | string | null;
|
|
820
|
+
invitedBy?: string | null;
|
|
821
|
+
createdAt?: Date | string;
|
|
822
|
+
updatedAt?: Date | string;
|
|
823
|
+
};
|
|
824
|
+
export type OrganizationMemberUpdateWithoutOrganizationInput = {
|
|
825
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
826
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
827
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
828
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
829
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
830
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
831
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
832
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
833
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
834
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
835
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
836
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
837
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
838
|
+
user?: Prisma.UserUpdateOneRequiredWithoutOrganizationMembershipsNestedInput;
|
|
839
|
+
};
|
|
840
|
+
export type OrganizationMemberUncheckedUpdateWithoutOrganizationInput = {
|
|
841
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
842
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
843
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
844
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
845
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
846
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
847
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
848
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
849
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
850
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
851
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
852
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
853
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
854
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
855
|
+
};
|
|
856
|
+
export type OrganizationMemberUncheckedUpdateManyWithoutOrganizationInput = {
|
|
857
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
858
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
859
|
+
role?: Prisma.EnumOrganizationRoleFieldUpdateOperationsInput | $Enums.OrganizationRole;
|
|
860
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
861
|
+
department?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
862
|
+
employeeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
863
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
864
|
+
canApprove?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
865
|
+
approvalLimit?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
|
|
866
|
+
invitedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
867
|
+
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
868
|
+
invitedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
869
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
870
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
871
|
+
};
|
|
872
|
+
export type OrganizationMemberSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
873
|
+
id?: boolean;
|
|
874
|
+
organizationId?: boolean;
|
|
875
|
+
userId?: boolean;
|
|
876
|
+
role?: boolean;
|
|
877
|
+
title?: boolean;
|
|
878
|
+
department?: boolean;
|
|
879
|
+
employeeId?: boolean;
|
|
880
|
+
isActive?: boolean;
|
|
881
|
+
canApprove?: boolean;
|
|
882
|
+
approvalLimit?: boolean;
|
|
883
|
+
invitedAt?: boolean;
|
|
884
|
+
acceptedAt?: boolean;
|
|
885
|
+
invitedBy?: boolean;
|
|
886
|
+
createdAt?: boolean;
|
|
887
|
+
updatedAt?: boolean;
|
|
888
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
889
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
890
|
+
}, ExtArgs["result"]["organizationMember"]>;
|
|
891
|
+
export type OrganizationMemberSelectScalar = {
|
|
892
|
+
id?: boolean;
|
|
893
|
+
organizationId?: boolean;
|
|
894
|
+
userId?: boolean;
|
|
895
|
+
role?: boolean;
|
|
896
|
+
title?: boolean;
|
|
897
|
+
department?: boolean;
|
|
898
|
+
employeeId?: boolean;
|
|
899
|
+
isActive?: boolean;
|
|
900
|
+
canApprove?: boolean;
|
|
901
|
+
approvalLimit?: boolean;
|
|
902
|
+
invitedAt?: boolean;
|
|
903
|
+
acceptedAt?: boolean;
|
|
904
|
+
invitedBy?: boolean;
|
|
905
|
+
createdAt?: boolean;
|
|
906
|
+
updatedAt?: boolean;
|
|
907
|
+
};
|
|
908
|
+
export type OrganizationMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "userId" | "role" | "title" | "department" | "employeeId" | "isActive" | "canApprove" | "approvalLimit" | "invitedAt" | "acceptedAt" | "invitedBy" | "createdAt" | "updatedAt", ExtArgs["result"]["organizationMember"]>;
|
|
909
|
+
export type OrganizationMemberInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
910
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
911
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
912
|
+
};
|
|
913
|
+
export type $OrganizationMemberPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
914
|
+
name: "OrganizationMember";
|
|
915
|
+
objects: {
|
|
916
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
917
|
+
user: Prisma.$UserPayload<ExtArgs>;
|
|
918
|
+
};
|
|
919
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
920
|
+
id: string;
|
|
921
|
+
organizationId: string;
|
|
922
|
+
userId: string;
|
|
923
|
+
role: $Enums.OrganizationRole;
|
|
924
|
+
title: string | null;
|
|
925
|
+
department: string | null;
|
|
926
|
+
employeeId: string | null;
|
|
927
|
+
isActive: boolean;
|
|
928
|
+
canApprove: boolean;
|
|
929
|
+
approvalLimit: runtime.Decimal | null;
|
|
930
|
+
invitedAt: Date | null;
|
|
931
|
+
acceptedAt: Date | null;
|
|
932
|
+
invitedBy: string | null;
|
|
933
|
+
createdAt: Date;
|
|
934
|
+
updatedAt: Date;
|
|
935
|
+
}, ExtArgs["result"]["organizationMember"]>;
|
|
936
|
+
composites: {};
|
|
937
|
+
};
|
|
938
|
+
export type OrganizationMemberGetPayload<S extends boolean | null | undefined | OrganizationMemberDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload, S>;
|
|
939
|
+
export type OrganizationMemberCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OrganizationMemberFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
940
|
+
select?: OrganizationMemberCountAggregateInputType | true;
|
|
941
|
+
};
|
|
942
|
+
export interface OrganizationMemberDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
943
|
+
[K: symbol]: {
|
|
944
|
+
types: Prisma.TypeMap<ExtArgs>['model']['OrganizationMember'];
|
|
945
|
+
meta: {
|
|
946
|
+
name: 'OrganizationMember';
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
/**
|
|
950
|
+
* Find zero or one OrganizationMember that matches the filter.
|
|
951
|
+
* @param {OrganizationMemberFindUniqueArgs} args - Arguments to find a OrganizationMember
|
|
952
|
+
* @example
|
|
953
|
+
* // Get one OrganizationMember
|
|
954
|
+
* const organizationMember = await prisma.organizationMember.findUnique({
|
|
955
|
+
* where: {
|
|
956
|
+
* // ... provide filter here
|
|
957
|
+
* }
|
|
958
|
+
* })
|
|
959
|
+
*/
|
|
960
|
+
findUnique<T extends OrganizationMemberFindUniqueArgs>(args: Prisma.SelectSubset<T, OrganizationMemberFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OrganizationMemberClient<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
961
|
+
/**
|
|
962
|
+
* Find one OrganizationMember that matches the filter or throw an error with `error.code='P2025'`
|
|
963
|
+
* if no matches were found.
|
|
964
|
+
* @param {OrganizationMemberFindUniqueOrThrowArgs} args - Arguments to find a OrganizationMember
|
|
965
|
+
* @example
|
|
966
|
+
* // Get one OrganizationMember
|
|
967
|
+
* const organizationMember = await prisma.organizationMember.findUniqueOrThrow({
|
|
968
|
+
* where: {
|
|
969
|
+
* // ... provide filter here
|
|
970
|
+
* }
|
|
971
|
+
* })
|
|
972
|
+
*/
|
|
973
|
+
findUniqueOrThrow<T extends OrganizationMemberFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OrganizationMemberFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrganizationMemberClient<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
974
|
+
/**
|
|
975
|
+
* Find the first OrganizationMember that matches the filter.
|
|
976
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
977
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
978
|
+
* @param {OrganizationMemberFindFirstArgs} args - Arguments to find a OrganizationMember
|
|
979
|
+
* @example
|
|
980
|
+
* // Get one OrganizationMember
|
|
981
|
+
* const organizationMember = await prisma.organizationMember.findFirst({
|
|
982
|
+
* where: {
|
|
983
|
+
* // ... provide filter here
|
|
984
|
+
* }
|
|
985
|
+
* })
|
|
986
|
+
*/
|
|
987
|
+
findFirst<T extends OrganizationMemberFindFirstArgs>(args?: Prisma.SelectSubset<T, OrganizationMemberFindFirstArgs<ExtArgs>>): Prisma.Prisma__OrganizationMemberClient<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
988
|
+
/**
|
|
989
|
+
* Find the first OrganizationMember that matches the filter or
|
|
990
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
991
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
992
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
993
|
+
* @param {OrganizationMemberFindFirstOrThrowArgs} args - Arguments to find a OrganizationMember
|
|
994
|
+
* @example
|
|
995
|
+
* // Get one OrganizationMember
|
|
996
|
+
* const organizationMember = await prisma.organizationMember.findFirstOrThrow({
|
|
997
|
+
* where: {
|
|
998
|
+
* // ... provide filter here
|
|
999
|
+
* }
|
|
1000
|
+
* })
|
|
1001
|
+
*/
|
|
1002
|
+
findFirstOrThrow<T extends OrganizationMemberFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OrganizationMemberFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrganizationMemberClient<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1003
|
+
/**
|
|
1004
|
+
* Find zero or more OrganizationMembers that matches the filter.
|
|
1005
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1006
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1007
|
+
* @param {OrganizationMemberFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1008
|
+
* @example
|
|
1009
|
+
* // Get all OrganizationMembers
|
|
1010
|
+
* const organizationMembers = await prisma.organizationMember.findMany()
|
|
1011
|
+
*
|
|
1012
|
+
* // Get first 10 OrganizationMembers
|
|
1013
|
+
* const organizationMembers = await prisma.organizationMember.findMany({ take: 10 })
|
|
1014
|
+
*
|
|
1015
|
+
* // Only select the `id`
|
|
1016
|
+
* const organizationMemberWithIdOnly = await prisma.organizationMember.findMany({ select: { id: true } })
|
|
1017
|
+
*
|
|
1018
|
+
*/
|
|
1019
|
+
findMany<T extends OrganizationMemberFindManyArgs>(args?: Prisma.SelectSubset<T, OrganizationMemberFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Create a OrganizationMember.
|
|
1022
|
+
* @param {OrganizationMemberCreateArgs} args - Arguments to create a OrganizationMember.
|
|
1023
|
+
* @example
|
|
1024
|
+
* // Create one OrganizationMember
|
|
1025
|
+
* const OrganizationMember = await prisma.organizationMember.create({
|
|
1026
|
+
* data: {
|
|
1027
|
+
* // ... data to create a OrganizationMember
|
|
1028
|
+
* }
|
|
1029
|
+
* })
|
|
1030
|
+
*
|
|
1031
|
+
*/
|
|
1032
|
+
create<T extends OrganizationMemberCreateArgs>(args: Prisma.SelectSubset<T, OrganizationMemberCreateArgs<ExtArgs>>): Prisma.Prisma__OrganizationMemberClient<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1033
|
+
/**
|
|
1034
|
+
* Create many OrganizationMembers.
|
|
1035
|
+
* @param {OrganizationMemberCreateManyArgs} args - Arguments to create many OrganizationMembers.
|
|
1036
|
+
* @example
|
|
1037
|
+
* // Create many OrganizationMembers
|
|
1038
|
+
* const organizationMember = await prisma.organizationMember.createMany({
|
|
1039
|
+
* data: [
|
|
1040
|
+
* // ... provide data here
|
|
1041
|
+
* ]
|
|
1042
|
+
* })
|
|
1043
|
+
*
|
|
1044
|
+
*/
|
|
1045
|
+
createMany<T extends OrganizationMemberCreateManyArgs>(args?: Prisma.SelectSubset<T, OrganizationMemberCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Delete a OrganizationMember.
|
|
1048
|
+
* @param {OrganizationMemberDeleteArgs} args - Arguments to delete one OrganizationMember.
|
|
1049
|
+
* @example
|
|
1050
|
+
* // Delete one OrganizationMember
|
|
1051
|
+
* const OrganizationMember = await prisma.organizationMember.delete({
|
|
1052
|
+
* where: {
|
|
1053
|
+
* // ... filter to delete one OrganizationMember
|
|
1054
|
+
* }
|
|
1055
|
+
* })
|
|
1056
|
+
*
|
|
1057
|
+
*/
|
|
1058
|
+
delete<T extends OrganizationMemberDeleteArgs>(args: Prisma.SelectSubset<T, OrganizationMemberDeleteArgs<ExtArgs>>): Prisma.Prisma__OrganizationMemberClient<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1059
|
+
/**
|
|
1060
|
+
* Update one OrganizationMember.
|
|
1061
|
+
* @param {OrganizationMemberUpdateArgs} args - Arguments to update one OrganizationMember.
|
|
1062
|
+
* @example
|
|
1063
|
+
* // Update one OrganizationMember
|
|
1064
|
+
* const organizationMember = await prisma.organizationMember.update({
|
|
1065
|
+
* where: {
|
|
1066
|
+
* // ... provide filter here
|
|
1067
|
+
* },
|
|
1068
|
+
* data: {
|
|
1069
|
+
* // ... provide data here
|
|
1070
|
+
* }
|
|
1071
|
+
* })
|
|
1072
|
+
*
|
|
1073
|
+
*/
|
|
1074
|
+
update<T extends OrganizationMemberUpdateArgs>(args: Prisma.SelectSubset<T, OrganizationMemberUpdateArgs<ExtArgs>>): Prisma.Prisma__OrganizationMemberClient<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1075
|
+
/**
|
|
1076
|
+
* Delete zero or more OrganizationMembers.
|
|
1077
|
+
* @param {OrganizationMemberDeleteManyArgs} args - Arguments to filter OrganizationMembers to delete.
|
|
1078
|
+
* @example
|
|
1079
|
+
* // Delete a few OrganizationMembers
|
|
1080
|
+
* const { count } = await prisma.organizationMember.deleteMany({
|
|
1081
|
+
* where: {
|
|
1082
|
+
* // ... provide filter here
|
|
1083
|
+
* }
|
|
1084
|
+
* })
|
|
1085
|
+
*
|
|
1086
|
+
*/
|
|
1087
|
+
deleteMany<T extends OrganizationMemberDeleteManyArgs>(args?: Prisma.SelectSubset<T, OrganizationMemberDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1088
|
+
/**
|
|
1089
|
+
* Update zero or more OrganizationMembers.
|
|
1090
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1091
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1092
|
+
* @param {OrganizationMemberUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1093
|
+
* @example
|
|
1094
|
+
* // Update many OrganizationMembers
|
|
1095
|
+
* const organizationMember = await prisma.organizationMember.updateMany({
|
|
1096
|
+
* where: {
|
|
1097
|
+
* // ... provide filter here
|
|
1098
|
+
* },
|
|
1099
|
+
* data: {
|
|
1100
|
+
* // ... provide data here
|
|
1101
|
+
* }
|
|
1102
|
+
* })
|
|
1103
|
+
*
|
|
1104
|
+
*/
|
|
1105
|
+
updateMany<T extends OrganizationMemberUpdateManyArgs>(args: Prisma.SelectSubset<T, OrganizationMemberUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1106
|
+
/**
|
|
1107
|
+
* Create or update one OrganizationMember.
|
|
1108
|
+
* @param {OrganizationMemberUpsertArgs} args - Arguments to update or create a OrganizationMember.
|
|
1109
|
+
* @example
|
|
1110
|
+
* // Update or create a OrganizationMember
|
|
1111
|
+
* const organizationMember = await prisma.organizationMember.upsert({
|
|
1112
|
+
* create: {
|
|
1113
|
+
* // ... data to create a OrganizationMember
|
|
1114
|
+
* },
|
|
1115
|
+
* update: {
|
|
1116
|
+
* // ... in case it already exists, update
|
|
1117
|
+
* },
|
|
1118
|
+
* where: {
|
|
1119
|
+
* // ... the filter for the OrganizationMember we want to update
|
|
1120
|
+
* }
|
|
1121
|
+
* })
|
|
1122
|
+
*/
|
|
1123
|
+
upsert<T extends OrganizationMemberUpsertArgs>(args: Prisma.SelectSubset<T, OrganizationMemberUpsertArgs<ExtArgs>>): Prisma.Prisma__OrganizationMemberClient<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Count the number of OrganizationMembers.
|
|
1126
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1127
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1128
|
+
* @param {OrganizationMemberCountArgs} args - Arguments to filter OrganizationMembers to count.
|
|
1129
|
+
* @example
|
|
1130
|
+
* // Count the number of OrganizationMembers
|
|
1131
|
+
* const count = await prisma.organizationMember.count({
|
|
1132
|
+
* where: {
|
|
1133
|
+
* // ... the filter for the OrganizationMembers we want to count
|
|
1134
|
+
* }
|
|
1135
|
+
* })
|
|
1136
|
+
**/
|
|
1137
|
+
count<T extends OrganizationMemberCountArgs>(args?: Prisma.Subset<T, OrganizationMemberCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OrganizationMemberCountAggregateOutputType> : number>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Allows you to perform aggregations operations on a OrganizationMember.
|
|
1140
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1141
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1142
|
+
* @param {OrganizationMemberAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1143
|
+
* @example
|
|
1144
|
+
* // Ordered by age ascending
|
|
1145
|
+
* // Where email contains prisma.io
|
|
1146
|
+
* // Limited to the 10 users
|
|
1147
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1148
|
+
* _avg: {
|
|
1149
|
+
* age: true,
|
|
1150
|
+
* },
|
|
1151
|
+
* where: {
|
|
1152
|
+
* email: {
|
|
1153
|
+
* contains: "prisma.io",
|
|
1154
|
+
* },
|
|
1155
|
+
* },
|
|
1156
|
+
* orderBy: {
|
|
1157
|
+
* age: "asc",
|
|
1158
|
+
* },
|
|
1159
|
+
* take: 10,
|
|
1160
|
+
* })
|
|
1161
|
+
**/
|
|
1162
|
+
aggregate<T extends OrganizationMemberAggregateArgs>(args: Prisma.Subset<T, OrganizationMemberAggregateArgs>): Prisma.PrismaPromise<GetOrganizationMemberAggregateType<T>>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Group by OrganizationMember.
|
|
1165
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1166
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1167
|
+
* @param {OrganizationMemberGroupByArgs} args - Group by arguments.
|
|
1168
|
+
* @example
|
|
1169
|
+
* // Group by city, order by createdAt, get count
|
|
1170
|
+
* const result = await prisma.user.groupBy({
|
|
1171
|
+
* by: ['city', 'createdAt'],
|
|
1172
|
+
* orderBy: {
|
|
1173
|
+
* createdAt: true
|
|
1174
|
+
* },
|
|
1175
|
+
* _count: {
|
|
1176
|
+
* _all: true
|
|
1177
|
+
* },
|
|
1178
|
+
* })
|
|
1179
|
+
*
|
|
1180
|
+
**/
|
|
1181
|
+
groupBy<T extends OrganizationMemberGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1182
|
+
orderBy: OrganizationMemberGroupByArgs['orderBy'];
|
|
1183
|
+
} : {
|
|
1184
|
+
orderBy?: OrganizationMemberGroupByArgs['orderBy'];
|
|
1185
|
+
}, 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 ? {
|
|
1186
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1187
|
+
Error,
|
|
1188
|
+
'Field ',
|
|
1189
|
+
P,
|
|
1190
|
+
` in "having" needs to be provided in "by"`
|
|
1191
|
+
];
|
|
1192
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1193
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1194
|
+
}[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 ? {} : {
|
|
1195
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1196
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1197
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1198
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, OrganizationMemberGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationMemberGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1199
|
+
/**
|
|
1200
|
+
* Fields of the OrganizationMember model
|
|
1201
|
+
*/
|
|
1202
|
+
readonly fields: OrganizationMemberFieldRefs;
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1205
|
+
* The delegate class that acts as a "Promise-like" for OrganizationMember.
|
|
1206
|
+
* Why is this prefixed with `Prisma__`?
|
|
1207
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1208
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1209
|
+
*/
|
|
1210
|
+
export interface Prisma__OrganizationMemberClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1211
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1212
|
+
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>;
|
|
1213
|
+
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1214
|
+
/**
|
|
1215
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1216
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1217
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1218
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1219
|
+
*/
|
|
1220
|
+
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>;
|
|
1221
|
+
/**
|
|
1222
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1223
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1224
|
+
* @returns A Promise for the completion of the callback.
|
|
1225
|
+
*/
|
|
1226
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1229
|
+
* resolved value cannot be modified from the callback.
|
|
1230
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1231
|
+
* @returns A Promise for the completion of the callback.
|
|
1232
|
+
*/
|
|
1233
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* Fields of the OrganizationMember model
|
|
1237
|
+
*/
|
|
1238
|
+
export interface OrganizationMemberFieldRefs {
|
|
1239
|
+
readonly id: Prisma.FieldRef<"OrganizationMember", 'String'>;
|
|
1240
|
+
readonly organizationId: Prisma.FieldRef<"OrganizationMember", 'String'>;
|
|
1241
|
+
readonly userId: Prisma.FieldRef<"OrganizationMember", 'String'>;
|
|
1242
|
+
readonly role: Prisma.FieldRef<"OrganizationMember", 'OrganizationRole'>;
|
|
1243
|
+
readonly title: Prisma.FieldRef<"OrganizationMember", 'String'>;
|
|
1244
|
+
readonly department: Prisma.FieldRef<"OrganizationMember", 'String'>;
|
|
1245
|
+
readonly employeeId: Prisma.FieldRef<"OrganizationMember", 'String'>;
|
|
1246
|
+
readonly isActive: Prisma.FieldRef<"OrganizationMember", 'Boolean'>;
|
|
1247
|
+
readonly canApprove: Prisma.FieldRef<"OrganizationMember", 'Boolean'>;
|
|
1248
|
+
readonly approvalLimit: Prisma.FieldRef<"OrganizationMember", 'Decimal'>;
|
|
1249
|
+
readonly invitedAt: Prisma.FieldRef<"OrganizationMember", 'DateTime'>;
|
|
1250
|
+
readonly acceptedAt: Prisma.FieldRef<"OrganizationMember", 'DateTime'>;
|
|
1251
|
+
readonly invitedBy: Prisma.FieldRef<"OrganizationMember", 'String'>;
|
|
1252
|
+
readonly createdAt: Prisma.FieldRef<"OrganizationMember", 'DateTime'>;
|
|
1253
|
+
readonly updatedAt: Prisma.FieldRef<"OrganizationMember", 'DateTime'>;
|
|
1254
|
+
}
|
|
1255
|
+
/**
|
|
1256
|
+
* OrganizationMember findUnique
|
|
1257
|
+
*/
|
|
1258
|
+
export type OrganizationMemberFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1259
|
+
/**
|
|
1260
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1261
|
+
*/
|
|
1262
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* Omit specific fields from the OrganizationMember
|
|
1265
|
+
*/
|
|
1266
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1267
|
+
/**
|
|
1268
|
+
* Choose, which related nodes to fetch as well
|
|
1269
|
+
*/
|
|
1270
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Filter, which OrganizationMember to fetch.
|
|
1273
|
+
*/
|
|
1274
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
1275
|
+
};
|
|
1276
|
+
/**
|
|
1277
|
+
* OrganizationMember findUniqueOrThrow
|
|
1278
|
+
*/
|
|
1279
|
+
export type OrganizationMemberFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1280
|
+
/**
|
|
1281
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1282
|
+
*/
|
|
1283
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* Omit specific fields from the OrganizationMember
|
|
1286
|
+
*/
|
|
1287
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1288
|
+
/**
|
|
1289
|
+
* Choose, which related nodes to fetch as well
|
|
1290
|
+
*/
|
|
1291
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1292
|
+
/**
|
|
1293
|
+
* Filter, which OrganizationMember to fetch.
|
|
1294
|
+
*/
|
|
1295
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
1296
|
+
};
|
|
1297
|
+
/**
|
|
1298
|
+
* OrganizationMember findFirst
|
|
1299
|
+
*/
|
|
1300
|
+
export type OrganizationMemberFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1301
|
+
/**
|
|
1302
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1303
|
+
*/
|
|
1304
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1305
|
+
/**
|
|
1306
|
+
* Omit specific fields from the OrganizationMember
|
|
1307
|
+
*/
|
|
1308
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1309
|
+
/**
|
|
1310
|
+
* Choose, which related nodes to fetch as well
|
|
1311
|
+
*/
|
|
1312
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1313
|
+
/**
|
|
1314
|
+
* Filter, which OrganizationMember to fetch.
|
|
1315
|
+
*/
|
|
1316
|
+
where?: Prisma.OrganizationMemberWhereInput;
|
|
1317
|
+
/**
|
|
1318
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1319
|
+
*
|
|
1320
|
+
* Determine the order of OrganizationMembers to fetch.
|
|
1321
|
+
*/
|
|
1322
|
+
orderBy?: Prisma.OrganizationMemberOrderByWithRelationInput | Prisma.OrganizationMemberOrderByWithRelationInput[];
|
|
1323
|
+
/**
|
|
1324
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1325
|
+
*
|
|
1326
|
+
* Sets the position for searching for OrganizationMembers.
|
|
1327
|
+
*/
|
|
1328
|
+
cursor?: Prisma.OrganizationMemberWhereUniqueInput;
|
|
1329
|
+
/**
|
|
1330
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1331
|
+
*
|
|
1332
|
+
* Take `±n` OrganizationMembers from the position of the cursor.
|
|
1333
|
+
*/
|
|
1334
|
+
take?: number;
|
|
1335
|
+
/**
|
|
1336
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1337
|
+
*
|
|
1338
|
+
* Skip the first `n` OrganizationMembers.
|
|
1339
|
+
*/
|
|
1340
|
+
skip?: number;
|
|
1341
|
+
/**
|
|
1342
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1343
|
+
*
|
|
1344
|
+
* Filter by unique combinations of OrganizationMembers.
|
|
1345
|
+
*/
|
|
1346
|
+
distinct?: Prisma.OrganizationMemberScalarFieldEnum | Prisma.OrganizationMemberScalarFieldEnum[];
|
|
1347
|
+
};
|
|
1348
|
+
/**
|
|
1349
|
+
* OrganizationMember findFirstOrThrow
|
|
1350
|
+
*/
|
|
1351
|
+
export type OrganizationMemberFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1352
|
+
/**
|
|
1353
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1354
|
+
*/
|
|
1355
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* Omit specific fields from the OrganizationMember
|
|
1358
|
+
*/
|
|
1359
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1360
|
+
/**
|
|
1361
|
+
* Choose, which related nodes to fetch as well
|
|
1362
|
+
*/
|
|
1363
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1364
|
+
/**
|
|
1365
|
+
* Filter, which OrganizationMember to fetch.
|
|
1366
|
+
*/
|
|
1367
|
+
where?: Prisma.OrganizationMemberWhereInput;
|
|
1368
|
+
/**
|
|
1369
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1370
|
+
*
|
|
1371
|
+
* Determine the order of OrganizationMembers to fetch.
|
|
1372
|
+
*/
|
|
1373
|
+
orderBy?: Prisma.OrganizationMemberOrderByWithRelationInput | Prisma.OrganizationMemberOrderByWithRelationInput[];
|
|
1374
|
+
/**
|
|
1375
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1376
|
+
*
|
|
1377
|
+
* Sets the position for searching for OrganizationMembers.
|
|
1378
|
+
*/
|
|
1379
|
+
cursor?: Prisma.OrganizationMemberWhereUniqueInput;
|
|
1380
|
+
/**
|
|
1381
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1382
|
+
*
|
|
1383
|
+
* Take `±n` OrganizationMembers from the position of the cursor.
|
|
1384
|
+
*/
|
|
1385
|
+
take?: number;
|
|
1386
|
+
/**
|
|
1387
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1388
|
+
*
|
|
1389
|
+
* Skip the first `n` OrganizationMembers.
|
|
1390
|
+
*/
|
|
1391
|
+
skip?: number;
|
|
1392
|
+
/**
|
|
1393
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1394
|
+
*
|
|
1395
|
+
* Filter by unique combinations of OrganizationMembers.
|
|
1396
|
+
*/
|
|
1397
|
+
distinct?: Prisma.OrganizationMemberScalarFieldEnum | Prisma.OrganizationMemberScalarFieldEnum[];
|
|
1398
|
+
};
|
|
1399
|
+
/**
|
|
1400
|
+
* OrganizationMember findMany
|
|
1401
|
+
*/
|
|
1402
|
+
export type OrganizationMemberFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1403
|
+
/**
|
|
1404
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1405
|
+
*/
|
|
1406
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1407
|
+
/**
|
|
1408
|
+
* Omit specific fields from the OrganizationMember
|
|
1409
|
+
*/
|
|
1410
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1411
|
+
/**
|
|
1412
|
+
* Choose, which related nodes to fetch as well
|
|
1413
|
+
*/
|
|
1414
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* Filter, which OrganizationMembers to fetch.
|
|
1417
|
+
*/
|
|
1418
|
+
where?: Prisma.OrganizationMemberWhereInput;
|
|
1419
|
+
/**
|
|
1420
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1421
|
+
*
|
|
1422
|
+
* Determine the order of OrganizationMembers to fetch.
|
|
1423
|
+
*/
|
|
1424
|
+
orderBy?: Prisma.OrganizationMemberOrderByWithRelationInput | Prisma.OrganizationMemberOrderByWithRelationInput[];
|
|
1425
|
+
/**
|
|
1426
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1427
|
+
*
|
|
1428
|
+
* Sets the position for listing OrganizationMembers.
|
|
1429
|
+
*/
|
|
1430
|
+
cursor?: Prisma.OrganizationMemberWhereUniqueInput;
|
|
1431
|
+
/**
|
|
1432
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1433
|
+
*
|
|
1434
|
+
* Take `±n` OrganizationMembers from the position of the cursor.
|
|
1435
|
+
*/
|
|
1436
|
+
take?: number;
|
|
1437
|
+
/**
|
|
1438
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1439
|
+
*
|
|
1440
|
+
* Skip the first `n` OrganizationMembers.
|
|
1441
|
+
*/
|
|
1442
|
+
skip?: number;
|
|
1443
|
+
distinct?: Prisma.OrganizationMemberScalarFieldEnum | Prisma.OrganizationMemberScalarFieldEnum[];
|
|
1444
|
+
};
|
|
1445
|
+
/**
|
|
1446
|
+
* OrganizationMember create
|
|
1447
|
+
*/
|
|
1448
|
+
export type OrganizationMemberCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1449
|
+
/**
|
|
1450
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1451
|
+
*/
|
|
1452
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1453
|
+
/**
|
|
1454
|
+
* Omit specific fields from the OrganizationMember
|
|
1455
|
+
*/
|
|
1456
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1457
|
+
/**
|
|
1458
|
+
* Choose, which related nodes to fetch as well
|
|
1459
|
+
*/
|
|
1460
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1461
|
+
/**
|
|
1462
|
+
* The data needed to create a OrganizationMember.
|
|
1463
|
+
*/
|
|
1464
|
+
data: Prisma.XOR<Prisma.OrganizationMemberCreateInput, Prisma.OrganizationMemberUncheckedCreateInput>;
|
|
1465
|
+
};
|
|
1466
|
+
/**
|
|
1467
|
+
* OrganizationMember createMany
|
|
1468
|
+
*/
|
|
1469
|
+
export type OrganizationMemberCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1470
|
+
/**
|
|
1471
|
+
* The data used to create many OrganizationMembers.
|
|
1472
|
+
*/
|
|
1473
|
+
data: Prisma.OrganizationMemberCreateManyInput | Prisma.OrganizationMemberCreateManyInput[];
|
|
1474
|
+
skipDuplicates?: boolean;
|
|
1475
|
+
};
|
|
1476
|
+
/**
|
|
1477
|
+
* OrganizationMember update
|
|
1478
|
+
*/
|
|
1479
|
+
export type OrganizationMemberUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1480
|
+
/**
|
|
1481
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1482
|
+
*/
|
|
1483
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1484
|
+
/**
|
|
1485
|
+
* Omit specific fields from the OrganizationMember
|
|
1486
|
+
*/
|
|
1487
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1488
|
+
/**
|
|
1489
|
+
* Choose, which related nodes to fetch as well
|
|
1490
|
+
*/
|
|
1491
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1492
|
+
/**
|
|
1493
|
+
* The data needed to update a OrganizationMember.
|
|
1494
|
+
*/
|
|
1495
|
+
data: Prisma.XOR<Prisma.OrganizationMemberUpdateInput, Prisma.OrganizationMemberUncheckedUpdateInput>;
|
|
1496
|
+
/**
|
|
1497
|
+
* Choose, which OrganizationMember to update.
|
|
1498
|
+
*/
|
|
1499
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
1500
|
+
};
|
|
1501
|
+
/**
|
|
1502
|
+
* OrganizationMember updateMany
|
|
1503
|
+
*/
|
|
1504
|
+
export type OrganizationMemberUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1505
|
+
/**
|
|
1506
|
+
* The data used to update OrganizationMembers.
|
|
1507
|
+
*/
|
|
1508
|
+
data: Prisma.XOR<Prisma.OrganizationMemberUpdateManyMutationInput, Prisma.OrganizationMemberUncheckedUpdateManyInput>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Filter which OrganizationMembers to update
|
|
1511
|
+
*/
|
|
1512
|
+
where?: Prisma.OrganizationMemberWhereInput;
|
|
1513
|
+
/**
|
|
1514
|
+
* Limit how many OrganizationMembers to update.
|
|
1515
|
+
*/
|
|
1516
|
+
limit?: number;
|
|
1517
|
+
};
|
|
1518
|
+
/**
|
|
1519
|
+
* OrganizationMember upsert
|
|
1520
|
+
*/
|
|
1521
|
+
export type OrganizationMemberUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1522
|
+
/**
|
|
1523
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1524
|
+
*/
|
|
1525
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1526
|
+
/**
|
|
1527
|
+
* Omit specific fields from the OrganizationMember
|
|
1528
|
+
*/
|
|
1529
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1530
|
+
/**
|
|
1531
|
+
* Choose, which related nodes to fetch as well
|
|
1532
|
+
*/
|
|
1533
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1534
|
+
/**
|
|
1535
|
+
* The filter to search for the OrganizationMember to update in case it exists.
|
|
1536
|
+
*/
|
|
1537
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
1538
|
+
/**
|
|
1539
|
+
* In case the OrganizationMember found by the `where` argument doesn't exist, create a new OrganizationMember with this data.
|
|
1540
|
+
*/
|
|
1541
|
+
create: Prisma.XOR<Prisma.OrganizationMemberCreateInput, Prisma.OrganizationMemberUncheckedCreateInput>;
|
|
1542
|
+
/**
|
|
1543
|
+
* In case the OrganizationMember was found with the provided `where` argument, update it with this data.
|
|
1544
|
+
*/
|
|
1545
|
+
update: Prisma.XOR<Prisma.OrganizationMemberUpdateInput, Prisma.OrganizationMemberUncheckedUpdateInput>;
|
|
1546
|
+
};
|
|
1547
|
+
/**
|
|
1548
|
+
* OrganizationMember delete
|
|
1549
|
+
*/
|
|
1550
|
+
export type OrganizationMemberDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1551
|
+
/**
|
|
1552
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1553
|
+
*/
|
|
1554
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1555
|
+
/**
|
|
1556
|
+
* Omit specific fields from the OrganizationMember
|
|
1557
|
+
*/
|
|
1558
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1559
|
+
/**
|
|
1560
|
+
* Choose, which related nodes to fetch as well
|
|
1561
|
+
*/
|
|
1562
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1563
|
+
/**
|
|
1564
|
+
* Filter which OrganizationMember to delete.
|
|
1565
|
+
*/
|
|
1566
|
+
where: Prisma.OrganizationMemberWhereUniqueInput;
|
|
1567
|
+
};
|
|
1568
|
+
/**
|
|
1569
|
+
* OrganizationMember deleteMany
|
|
1570
|
+
*/
|
|
1571
|
+
export type OrganizationMemberDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1572
|
+
/**
|
|
1573
|
+
* Filter which OrganizationMembers to delete
|
|
1574
|
+
*/
|
|
1575
|
+
where?: Prisma.OrganizationMemberWhereInput;
|
|
1576
|
+
/**
|
|
1577
|
+
* Limit how many OrganizationMembers to delete.
|
|
1578
|
+
*/
|
|
1579
|
+
limit?: number;
|
|
1580
|
+
};
|
|
1581
|
+
/**
|
|
1582
|
+
* OrganizationMember without action
|
|
1583
|
+
*/
|
|
1584
|
+
export type OrganizationMemberDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1585
|
+
/**
|
|
1586
|
+
* Select specific fields to fetch from the OrganizationMember
|
|
1587
|
+
*/
|
|
1588
|
+
select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
|
|
1589
|
+
/**
|
|
1590
|
+
* Omit specific fields from the OrganizationMember
|
|
1591
|
+
*/
|
|
1592
|
+
omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
|
|
1593
|
+
/**
|
|
1594
|
+
* Choose, which related nodes to fetch as well
|
|
1595
|
+
*/
|
|
1596
|
+
include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
|
|
1597
|
+
};
|
|
1598
|
+
export {};
|