@valentine-efagene/qshelter-common 2.0.120 → 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.
Files changed (34) hide show
  1. package/dist/generated/client/browser.d.ts +11 -0
  2. package/dist/generated/client/client.d.ts +11 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +170 -0
  4. package/dist/generated/client/enums.d.ts +58 -0
  5. package/dist/generated/client/enums.js +52 -0
  6. package/dist/generated/client/internal/class.d.ts +22 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +240 -2
  9. package/dist/generated/client/internal/prismaNamespace.js +82 -2
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +85 -1
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +82 -2
  12. package/dist/generated/client/models/DocumentationPhase.d.ts +243 -1
  13. package/dist/generated/client/models/DocumentationStep.d.ts +121 -1
  14. package/dist/generated/client/models/Organization.d.ts +1930 -0
  15. package/dist/generated/client/models/Organization.js +1 -0
  16. package/dist/generated/client/models/OrganizationMember.d.ts +1598 -0
  17. package/dist/generated/client/models/OrganizationMember.js +1 -0
  18. package/dist/generated/client/models/QuestionnairePhase.d.ts +165 -0
  19. package/dist/generated/client/models/QuestionnairePlanQuestion.d.ts +25 -22
  20. package/dist/generated/client/models/Tenant.d.ts +555 -0
  21. package/dist/generated/client/models/User.d.ts +391 -0
  22. package/dist/generated/client/models.d.ts +2 -0
  23. package/dist/src/middleware/auth-context.d.ts +30 -1
  24. package/dist/src/middleware/auth-context.js +34 -1
  25. package/dist/src/prisma/tenant.js +2 -0
  26. package/dist/src/utils/condition-operators.d.ts +5 -23
  27. package/dist/src/utils/condition-operators.js +6 -19
  28. package/dist/src/utils/documentation-enums.d.ts +6 -0
  29. package/dist/src/utils/documentation-enums.js +6 -0
  30. package/package.json +1 -1
  31. package/prisma/migrations/20260115123703_add_organizations/migration.sql +69 -0
  32. package/prisma/migrations/20260115125519_add_requires_manual_review_to_step/migration.sql +2 -0
  33. package/prisma/migrations/20260115134106_add_conditional_step_support/migration.sql +11 -0
  34. package/prisma/schema.prisma +191 -1
@@ -0,0 +1,1930 @@
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 Organization
6
+ * Organization: Banks, Developers, and other partner entities
7
+ */
8
+ export type OrganizationModel = runtime.Types.Result.DefaultSelection<Prisma.$OrganizationPayload>;
9
+ export type AggregateOrganization = {
10
+ _count: OrganizationCountAggregateOutputType | null;
11
+ _min: OrganizationMinAggregateOutputType | null;
12
+ _max: OrganizationMaxAggregateOutputType | null;
13
+ };
14
+ export type OrganizationMinAggregateOutputType = {
15
+ id: string | null;
16
+ tenantId: string | null;
17
+ name: string | null;
18
+ type: $Enums.OrganizationType | null;
19
+ status: $Enums.OrganizationStatus | null;
20
+ email: string | null;
21
+ phone: string | null;
22
+ address: string | null;
23
+ city: string | null;
24
+ state: string | null;
25
+ country: string | null;
26
+ website: string | null;
27
+ logoUrl: string | null;
28
+ description: string | null;
29
+ bankCode: string | null;
30
+ bankLicenseNo: string | null;
31
+ swiftCode: string | null;
32
+ sortCode: string | null;
33
+ cacNumber: string | null;
34
+ cacCertificateUrl: string | null;
35
+ taxId: string | null;
36
+ approvedAt: Date | null;
37
+ approvedById: string | null;
38
+ createdAt: Date | null;
39
+ updatedAt: Date | null;
40
+ };
41
+ export type OrganizationMaxAggregateOutputType = {
42
+ id: string | null;
43
+ tenantId: string | null;
44
+ name: string | null;
45
+ type: $Enums.OrganizationType | null;
46
+ status: $Enums.OrganizationStatus | null;
47
+ email: string | null;
48
+ phone: string | null;
49
+ address: string | null;
50
+ city: string | null;
51
+ state: string | null;
52
+ country: string | null;
53
+ website: string | null;
54
+ logoUrl: string | null;
55
+ description: string | null;
56
+ bankCode: string | null;
57
+ bankLicenseNo: string | null;
58
+ swiftCode: string | null;
59
+ sortCode: string | null;
60
+ cacNumber: string | null;
61
+ cacCertificateUrl: string | null;
62
+ taxId: string | null;
63
+ approvedAt: Date | null;
64
+ approvedById: string | null;
65
+ createdAt: Date | null;
66
+ updatedAt: Date | null;
67
+ };
68
+ export type OrganizationCountAggregateOutputType = {
69
+ id: number;
70
+ tenantId: number;
71
+ name: number;
72
+ type: number;
73
+ status: number;
74
+ email: number;
75
+ phone: number;
76
+ address: number;
77
+ city: number;
78
+ state: number;
79
+ country: number;
80
+ website: number;
81
+ logoUrl: number;
82
+ description: number;
83
+ bankCode: number;
84
+ bankLicenseNo: number;
85
+ swiftCode: number;
86
+ sortCode: number;
87
+ cacNumber: number;
88
+ cacCertificateUrl: number;
89
+ taxId: number;
90
+ approvedAt: number;
91
+ approvedById: number;
92
+ createdAt: number;
93
+ updatedAt: number;
94
+ _all: number;
95
+ };
96
+ export type OrganizationMinAggregateInputType = {
97
+ id?: true;
98
+ tenantId?: true;
99
+ name?: true;
100
+ type?: true;
101
+ status?: true;
102
+ email?: true;
103
+ phone?: true;
104
+ address?: true;
105
+ city?: true;
106
+ state?: true;
107
+ country?: true;
108
+ website?: true;
109
+ logoUrl?: true;
110
+ description?: true;
111
+ bankCode?: true;
112
+ bankLicenseNo?: true;
113
+ swiftCode?: true;
114
+ sortCode?: true;
115
+ cacNumber?: true;
116
+ cacCertificateUrl?: true;
117
+ taxId?: true;
118
+ approvedAt?: true;
119
+ approvedById?: true;
120
+ createdAt?: true;
121
+ updatedAt?: true;
122
+ };
123
+ export type OrganizationMaxAggregateInputType = {
124
+ id?: true;
125
+ tenantId?: true;
126
+ name?: true;
127
+ type?: true;
128
+ status?: true;
129
+ email?: true;
130
+ phone?: true;
131
+ address?: true;
132
+ city?: true;
133
+ state?: true;
134
+ country?: true;
135
+ website?: true;
136
+ logoUrl?: true;
137
+ description?: true;
138
+ bankCode?: true;
139
+ bankLicenseNo?: true;
140
+ swiftCode?: true;
141
+ sortCode?: true;
142
+ cacNumber?: true;
143
+ cacCertificateUrl?: true;
144
+ taxId?: true;
145
+ approvedAt?: true;
146
+ approvedById?: true;
147
+ createdAt?: true;
148
+ updatedAt?: true;
149
+ };
150
+ export type OrganizationCountAggregateInputType = {
151
+ id?: true;
152
+ tenantId?: true;
153
+ name?: true;
154
+ type?: true;
155
+ status?: true;
156
+ email?: true;
157
+ phone?: true;
158
+ address?: true;
159
+ city?: true;
160
+ state?: true;
161
+ country?: true;
162
+ website?: true;
163
+ logoUrl?: true;
164
+ description?: true;
165
+ bankCode?: true;
166
+ bankLicenseNo?: true;
167
+ swiftCode?: true;
168
+ sortCode?: true;
169
+ cacNumber?: true;
170
+ cacCertificateUrl?: true;
171
+ taxId?: true;
172
+ approvedAt?: true;
173
+ approvedById?: true;
174
+ createdAt?: true;
175
+ updatedAt?: true;
176
+ _all?: true;
177
+ };
178
+ export type OrganizationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
179
+ /**
180
+ * Filter which Organization to aggregate.
181
+ */
182
+ where?: Prisma.OrganizationWhereInput;
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
185
+ *
186
+ * Determine the order of Organizations to fetch.
187
+ */
188
+ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
191
+ *
192
+ * Sets the start position
193
+ */
194
+ cursor?: Prisma.OrganizationWhereUniqueInput;
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
197
+ *
198
+ * Take `±n` Organizations from the position of the cursor.
199
+ */
200
+ take?: number;
201
+ /**
202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
203
+ *
204
+ * Skip the first `n` Organizations.
205
+ */
206
+ skip?: number;
207
+ /**
208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
209
+ *
210
+ * Count returned Organizations
211
+ **/
212
+ _count?: true | OrganizationCountAggregateInputType;
213
+ /**
214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
215
+ *
216
+ * Select which fields to find the minimum value
217
+ **/
218
+ _min?: OrganizationMinAggregateInputType;
219
+ /**
220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
221
+ *
222
+ * Select which fields to find the maximum value
223
+ **/
224
+ _max?: OrganizationMaxAggregateInputType;
225
+ };
226
+ export type GetOrganizationAggregateType<T extends OrganizationAggregateArgs> = {
227
+ [P in keyof T & keyof AggregateOrganization]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOrganization[P]> : Prisma.GetScalarType<T[P], AggregateOrganization[P]>;
228
+ };
229
+ export type OrganizationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
230
+ where?: Prisma.OrganizationWhereInput;
231
+ orderBy?: Prisma.OrganizationOrderByWithAggregationInput | Prisma.OrganizationOrderByWithAggregationInput[];
232
+ by: Prisma.OrganizationScalarFieldEnum[] | Prisma.OrganizationScalarFieldEnum;
233
+ having?: Prisma.OrganizationScalarWhereWithAggregatesInput;
234
+ take?: number;
235
+ skip?: number;
236
+ _count?: OrganizationCountAggregateInputType | true;
237
+ _min?: OrganizationMinAggregateInputType;
238
+ _max?: OrganizationMaxAggregateInputType;
239
+ };
240
+ export type OrganizationGroupByOutputType = {
241
+ id: string;
242
+ tenantId: string;
243
+ name: string;
244
+ type: $Enums.OrganizationType;
245
+ status: $Enums.OrganizationStatus;
246
+ email: string | null;
247
+ phone: string | null;
248
+ address: string | null;
249
+ city: string | null;
250
+ state: string | null;
251
+ country: string | null;
252
+ website: string | null;
253
+ logoUrl: string | null;
254
+ description: string | null;
255
+ bankCode: string | null;
256
+ bankLicenseNo: string | null;
257
+ swiftCode: string | null;
258
+ sortCode: string | null;
259
+ cacNumber: string | null;
260
+ cacCertificateUrl: string | null;
261
+ taxId: string | null;
262
+ approvedAt: Date | null;
263
+ approvedById: string | null;
264
+ createdAt: Date;
265
+ updatedAt: Date;
266
+ _count: OrganizationCountAggregateOutputType | null;
267
+ _min: OrganizationMinAggregateOutputType | null;
268
+ _max: OrganizationMaxAggregateOutputType | null;
269
+ };
270
+ type GetOrganizationGroupByPayload<T extends OrganizationGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OrganizationGroupByOutputType, T['by']> & {
271
+ [P in ((keyof T) & (keyof OrganizationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OrganizationGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OrganizationGroupByOutputType[P]>;
272
+ }>>;
273
+ export type OrganizationWhereInput = {
274
+ AND?: Prisma.OrganizationWhereInput | Prisma.OrganizationWhereInput[];
275
+ OR?: Prisma.OrganizationWhereInput[];
276
+ NOT?: Prisma.OrganizationWhereInput | Prisma.OrganizationWhereInput[];
277
+ id?: Prisma.StringFilter<"Organization"> | string;
278
+ tenantId?: Prisma.StringFilter<"Organization"> | string;
279
+ name?: Prisma.StringFilter<"Organization"> | string;
280
+ type?: Prisma.EnumOrganizationTypeFilter<"Organization"> | $Enums.OrganizationType;
281
+ status?: Prisma.EnumOrganizationStatusFilter<"Organization"> | $Enums.OrganizationStatus;
282
+ email?: Prisma.StringNullableFilter<"Organization"> | string | null;
283
+ phone?: Prisma.StringNullableFilter<"Organization"> | string | null;
284
+ address?: Prisma.StringNullableFilter<"Organization"> | string | null;
285
+ city?: Prisma.StringNullableFilter<"Organization"> | string | null;
286
+ state?: Prisma.StringNullableFilter<"Organization"> | string | null;
287
+ country?: Prisma.StringNullableFilter<"Organization"> | string | null;
288
+ website?: Prisma.StringNullableFilter<"Organization"> | string | null;
289
+ logoUrl?: Prisma.StringNullableFilter<"Organization"> | string | null;
290
+ description?: Prisma.StringNullableFilter<"Organization"> | string | null;
291
+ bankCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
292
+ bankLicenseNo?: Prisma.StringNullableFilter<"Organization"> | string | null;
293
+ swiftCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
294
+ sortCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
295
+ cacNumber?: Prisma.StringNullableFilter<"Organization"> | string | null;
296
+ cacCertificateUrl?: Prisma.StringNullableFilter<"Organization"> | string | null;
297
+ taxId?: Prisma.StringNullableFilter<"Organization"> | string | null;
298
+ approvedAt?: Prisma.DateTimeNullableFilter<"Organization"> | Date | string | null;
299
+ approvedById?: Prisma.StringNullableFilter<"Organization"> | string | null;
300
+ createdAt?: Prisma.DateTimeFilter<"Organization"> | Date | string;
301
+ updatedAt?: Prisma.DateTimeFilter<"Organization"> | Date | string;
302
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
303
+ members?: Prisma.OrganizationMemberListRelationFilter;
304
+ };
305
+ export type OrganizationOrderByWithRelationInput = {
306
+ id?: Prisma.SortOrder;
307
+ tenantId?: Prisma.SortOrder;
308
+ name?: Prisma.SortOrder;
309
+ type?: Prisma.SortOrder;
310
+ status?: Prisma.SortOrder;
311
+ email?: Prisma.SortOrderInput | Prisma.SortOrder;
312
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
313
+ address?: Prisma.SortOrderInput | Prisma.SortOrder;
314
+ city?: Prisma.SortOrderInput | Prisma.SortOrder;
315
+ state?: Prisma.SortOrderInput | Prisma.SortOrder;
316
+ country?: Prisma.SortOrderInput | Prisma.SortOrder;
317
+ website?: Prisma.SortOrderInput | Prisma.SortOrder;
318
+ logoUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
319
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
320
+ bankCode?: Prisma.SortOrderInput | Prisma.SortOrder;
321
+ bankLicenseNo?: Prisma.SortOrderInput | Prisma.SortOrder;
322
+ swiftCode?: Prisma.SortOrderInput | Prisma.SortOrder;
323
+ sortCode?: Prisma.SortOrderInput | Prisma.SortOrder;
324
+ cacNumber?: Prisma.SortOrderInput | Prisma.SortOrder;
325
+ cacCertificateUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
326
+ taxId?: Prisma.SortOrderInput | Prisma.SortOrder;
327
+ approvedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
328
+ approvedById?: Prisma.SortOrderInput | Prisma.SortOrder;
329
+ createdAt?: Prisma.SortOrder;
330
+ updatedAt?: Prisma.SortOrder;
331
+ tenant?: Prisma.TenantOrderByWithRelationInput;
332
+ members?: Prisma.OrganizationMemberOrderByRelationAggregateInput;
333
+ _relevance?: Prisma.OrganizationOrderByRelevanceInput;
334
+ };
335
+ export type OrganizationWhereUniqueInput = Prisma.AtLeast<{
336
+ id?: string;
337
+ tenantId_bankCode?: Prisma.OrganizationTenantIdBankCodeCompoundUniqueInput;
338
+ tenantId_cacNumber?: Prisma.OrganizationTenantIdCacNumberCompoundUniqueInput;
339
+ AND?: Prisma.OrganizationWhereInput | Prisma.OrganizationWhereInput[];
340
+ OR?: Prisma.OrganizationWhereInput[];
341
+ NOT?: Prisma.OrganizationWhereInput | Prisma.OrganizationWhereInput[];
342
+ tenantId?: Prisma.StringFilter<"Organization"> | string;
343
+ name?: Prisma.StringFilter<"Organization"> | string;
344
+ type?: Prisma.EnumOrganizationTypeFilter<"Organization"> | $Enums.OrganizationType;
345
+ status?: Prisma.EnumOrganizationStatusFilter<"Organization"> | $Enums.OrganizationStatus;
346
+ email?: Prisma.StringNullableFilter<"Organization"> | string | null;
347
+ phone?: Prisma.StringNullableFilter<"Organization"> | string | null;
348
+ address?: Prisma.StringNullableFilter<"Organization"> | string | null;
349
+ city?: Prisma.StringNullableFilter<"Organization"> | string | null;
350
+ state?: Prisma.StringNullableFilter<"Organization"> | string | null;
351
+ country?: Prisma.StringNullableFilter<"Organization"> | string | null;
352
+ website?: Prisma.StringNullableFilter<"Organization"> | string | null;
353
+ logoUrl?: Prisma.StringNullableFilter<"Organization"> | string | null;
354
+ description?: Prisma.StringNullableFilter<"Organization"> | string | null;
355
+ bankCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
356
+ bankLicenseNo?: Prisma.StringNullableFilter<"Organization"> | string | null;
357
+ swiftCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
358
+ sortCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
359
+ cacNumber?: Prisma.StringNullableFilter<"Organization"> | string | null;
360
+ cacCertificateUrl?: Prisma.StringNullableFilter<"Organization"> | string | null;
361
+ taxId?: Prisma.StringNullableFilter<"Organization"> | string | null;
362
+ approvedAt?: Prisma.DateTimeNullableFilter<"Organization"> | Date | string | null;
363
+ approvedById?: Prisma.StringNullableFilter<"Organization"> | string | null;
364
+ createdAt?: Prisma.DateTimeFilter<"Organization"> | Date | string;
365
+ updatedAt?: Prisma.DateTimeFilter<"Organization"> | Date | string;
366
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
367
+ members?: Prisma.OrganizationMemberListRelationFilter;
368
+ }, "id" | "tenantId_bankCode" | "tenantId_cacNumber">;
369
+ export type OrganizationOrderByWithAggregationInput = {
370
+ id?: Prisma.SortOrder;
371
+ tenantId?: Prisma.SortOrder;
372
+ name?: Prisma.SortOrder;
373
+ type?: Prisma.SortOrder;
374
+ status?: Prisma.SortOrder;
375
+ email?: Prisma.SortOrderInput | Prisma.SortOrder;
376
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
377
+ address?: Prisma.SortOrderInput | Prisma.SortOrder;
378
+ city?: Prisma.SortOrderInput | Prisma.SortOrder;
379
+ state?: Prisma.SortOrderInput | Prisma.SortOrder;
380
+ country?: Prisma.SortOrderInput | Prisma.SortOrder;
381
+ website?: Prisma.SortOrderInput | Prisma.SortOrder;
382
+ logoUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
383
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
384
+ bankCode?: Prisma.SortOrderInput | Prisma.SortOrder;
385
+ bankLicenseNo?: Prisma.SortOrderInput | Prisma.SortOrder;
386
+ swiftCode?: Prisma.SortOrderInput | Prisma.SortOrder;
387
+ sortCode?: Prisma.SortOrderInput | Prisma.SortOrder;
388
+ cacNumber?: Prisma.SortOrderInput | Prisma.SortOrder;
389
+ cacCertificateUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
390
+ taxId?: Prisma.SortOrderInput | Prisma.SortOrder;
391
+ approvedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
392
+ approvedById?: Prisma.SortOrderInput | Prisma.SortOrder;
393
+ createdAt?: Prisma.SortOrder;
394
+ updatedAt?: Prisma.SortOrder;
395
+ _count?: Prisma.OrganizationCountOrderByAggregateInput;
396
+ _max?: Prisma.OrganizationMaxOrderByAggregateInput;
397
+ _min?: Prisma.OrganizationMinOrderByAggregateInput;
398
+ };
399
+ export type OrganizationScalarWhereWithAggregatesInput = {
400
+ AND?: Prisma.OrganizationScalarWhereWithAggregatesInput | Prisma.OrganizationScalarWhereWithAggregatesInput[];
401
+ OR?: Prisma.OrganizationScalarWhereWithAggregatesInput[];
402
+ NOT?: Prisma.OrganizationScalarWhereWithAggregatesInput | Prisma.OrganizationScalarWhereWithAggregatesInput[];
403
+ id?: Prisma.StringWithAggregatesFilter<"Organization"> | string;
404
+ tenantId?: Prisma.StringWithAggregatesFilter<"Organization"> | string;
405
+ name?: Prisma.StringWithAggregatesFilter<"Organization"> | string;
406
+ type?: Prisma.EnumOrganizationTypeWithAggregatesFilter<"Organization"> | $Enums.OrganizationType;
407
+ status?: Prisma.EnumOrganizationStatusWithAggregatesFilter<"Organization"> | $Enums.OrganizationStatus;
408
+ email?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
409
+ phone?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
410
+ address?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
411
+ city?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
412
+ state?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
413
+ country?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
414
+ website?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
415
+ logoUrl?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
416
+ description?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
417
+ bankCode?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
418
+ bankLicenseNo?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
419
+ swiftCode?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
420
+ sortCode?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
421
+ cacNumber?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
422
+ cacCertificateUrl?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
423
+ taxId?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
424
+ approvedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Organization"> | Date | string | null;
425
+ approvedById?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null;
426
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Organization"> | Date | string;
427
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Organization"> | Date | string;
428
+ };
429
+ export type OrganizationCreateInput = {
430
+ id?: string;
431
+ name: string;
432
+ type: $Enums.OrganizationType;
433
+ status?: $Enums.OrganizationStatus;
434
+ email?: string | null;
435
+ phone?: string | null;
436
+ address?: string | null;
437
+ city?: string | null;
438
+ state?: string | null;
439
+ country?: string | null;
440
+ website?: string | null;
441
+ logoUrl?: string | null;
442
+ description?: string | null;
443
+ bankCode?: string | null;
444
+ bankLicenseNo?: string | null;
445
+ swiftCode?: string | null;
446
+ sortCode?: string | null;
447
+ cacNumber?: string | null;
448
+ cacCertificateUrl?: string | null;
449
+ taxId?: string | null;
450
+ approvedAt?: Date | string | null;
451
+ approvedById?: string | null;
452
+ createdAt?: Date | string;
453
+ updatedAt?: Date | string;
454
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationsInput;
455
+ members?: Prisma.OrganizationMemberCreateNestedManyWithoutOrganizationInput;
456
+ };
457
+ export type OrganizationUncheckedCreateInput = {
458
+ id?: string;
459
+ tenantId: string;
460
+ name: string;
461
+ type: $Enums.OrganizationType;
462
+ status?: $Enums.OrganizationStatus;
463
+ email?: string | null;
464
+ phone?: string | null;
465
+ address?: string | null;
466
+ city?: string | null;
467
+ state?: string | null;
468
+ country?: string | null;
469
+ website?: string | null;
470
+ logoUrl?: string | null;
471
+ description?: string | null;
472
+ bankCode?: string | null;
473
+ bankLicenseNo?: string | null;
474
+ swiftCode?: string | null;
475
+ sortCode?: string | null;
476
+ cacNumber?: string | null;
477
+ cacCertificateUrl?: string | null;
478
+ taxId?: string | null;
479
+ approvedAt?: Date | string | null;
480
+ approvedById?: string | null;
481
+ createdAt?: Date | string;
482
+ updatedAt?: Date | string;
483
+ members?: Prisma.OrganizationMemberUncheckedCreateNestedManyWithoutOrganizationInput;
484
+ };
485
+ export type OrganizationUpdateInput = {
486
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
487
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
488
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
489
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
490
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
491
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
492
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
493
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
494
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
495
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
496
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
497
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
498
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
499
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
500
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
501
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
502
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
503
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
504
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
505
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
506
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
507
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
508
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
509
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
510
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationsNestedInput;
511
+ members?: Prisma.OrganizationMemberUpdateManyWithoutOrganizationNestedInput;
512
+ };
513
+ export type OrganizationUncheckedUpdateInput = {
514
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
515
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
516
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
517
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
518
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
519
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
520
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
521
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
522
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
523
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
524
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
525
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
526
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
527
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
528
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
529
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
532
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
533
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
534
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
535
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
536
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
537
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
538
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
539
+ members?: Prisma.OrganizationMemberUncheckedUpdateManyWithoutOrganizationNestedInput;
540
+ };
541
+ export type OrganizationCreateManyInput = {
542
+ id?: string;
543
+ tenantId: string;
544
+ name: string;
545
+ type: $Enums.OrganizationType;
546
+ status?: $Enums.OrganizationStatus;
547
+ email?: string | null;
548
+ phone?: string | null;
549
+ address?: string | null;
550
+ city?: string | null;
551
+ state?: string | null;
552
+ country?: string | null;
553
+ website?: string | null;
554
+ logoUrl?: string | null;
555
+ description?: string | null;
556
+ bankCode?: string | null;
557
+ bankLicenseNo?: string | null;
558
+ swiftCode?: string | null;
559
+ sortCode?: string | null;
560
+ cacNumber?: string | null;
561
+ cacCertificateUrl?: string | null;
562
+ taxId?: string | null;
563
+ approvedAt?: Date | string | null;
564
+ approvedById?: string | null;
565
+ createdAt?: Date | string;
566
+ updatedAt?: Date | string;
567
+ };
568
+ export type OrganizationUpdateManyMutationInput = {
569
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
570
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
571
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
572
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
573
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
574
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
575
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
576
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
577
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
578
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
579
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
580
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
581
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
582
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
583
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
584
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
585
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
586
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
587
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
588
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
589
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
590
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
591
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
592
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
593
+ };
594
+ export type OrganizationUncheckedUpdateManyInput = {
595
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
596
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
597
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
598
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
599
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
600
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
601
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
602
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
603
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
604
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
605
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
606
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
607
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
608
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
609
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
610
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
611
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
612
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
613
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
614
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
615
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
616
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
617
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
618
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
619
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
620
+ };
621
+ export type OrganizationOrderByRelevanceInput = {
622
+ fields: Prisma.OrganizationOrderByRelevanceFieldEnum | Prisma.OrganizationOrderByRelevanceFieldEnum[];
623
+ sort: Prisma.SortOrder;
624
+ search: string;
625
+ };
626
+ export type OrganizationTenantIdBankCodeCompoundUniqueInput = {
627
+ tenantId: string;
628
+ bankCode: string;
629
+ };
630
+ export type OrganizationTenantIdCacNumberCompoundUniqueInput = {
631
+ tenantId: string;
632
+ cacNumber: string;
633
+ };
634
+ export type OrganizationCountOrderByAggregateInput = {
635
+ id?: Prisma.SortOrder;
636
+ tenantId?: Prisma.SortOrder;
637
+ name?: Prisma.SortOrder;
638
+ type?: Prisma.SortOrder;
639
+ status?: Prisma.SortOrder;
640
+ email?: Prisma.SortOrder;
641
+ phone?: Prisma.SortOrder;
642
+ address?: Prisma.SortOrder;
643
+ city?: Prisma.SortOrder;
644
+ state?: Prisma.SortOrder;
645
+ country?: Prisma.SortOrder;
646
+ website?: Prisma.SortOrder;
647
+ logoUrl?: Prisma.SortOrder;
648
+ description?: Prisma.SortOrder;
649
+ bankCode?: Prisma.SortOrder;
650
+ bankLicenseNo?: Prisma.SortOrder;
651
+ swiftCode?: Prisma.SortOrder;
652
+ sortCode?: Prisma.SortOrder;
653
+ cacNumber?: Prisma.SortOrder;
654
+ cacCertificateUrl?: Prisma.SortOrder;
655
+ taxId?: Prisma.SortOrder;
656
+ approvedAt?: Prisma.SortOrder;
657
+ approvedById?: Prisma.SortOrder;
658
+ createdAt?: Prisma.SortOrder;
659
+ updatedAt?: Prisma.SortOrder;
660
+ };
661
+ export type OrganizationMaxOrderByAggregateInput = {
662
+ id?: Prisma.SortOrder;
663
+ tenantId?: Prisma.SortOrder;
664
+ name?: Prisma.SortOrder;
665
+ type?: Prisma.SortOrder;
666
+ status?: Prisma.SortOrder;
667
+ email?: Prisma.SortOrder;
668
+ phone?: Prisma.SortOrder;
669
+ address?: Prisma.SortOrder;
670
+ city?: Prisma.SortOrder;
671
+ state?: Prisma.SortOrder;
672
+ country?: Prisma.SortOrder;
673
+ website?: Prisma.SortOrder;
674
+ logoUrl?: Prisma.SortOrder;
675
+ description?: Prisma.SortOrder;
676
+ bankCode?: Prisma.SortOrder;
677
+ bankLicenseNo?: Prisma.SortOrder;
678
+ swiftCode?: Prisma.SortOrder;
679
+ sortCode?: Prisma.SortOrder;
680
+ cacNumber?: Prisma.SortOrder;
681
+ cacCertificateUrl?: Prisma.SortOrder;
682
+ taxId?: Prisma.SortOrder;
683
+ approvedAt?: Prisma.SortOrder;
684
+ approvedById?: Prisma.SortOrder;
685
+ createdAt?: Prisma.SortOrder;
686
+ updatedAt?: Prisma.SortOrder;
687
+ };
688
+ export type OrganizationMinOrderByAggregateInput = {
689
+ id?: Prisma.SortOrder;
690
+ tenantId?: Prisma.SortOrder;
691
+ name?: Prisma.SortOrder;
692
+ type?: Prisma.SortOrder;
693
+ status?: Prisma.SortOrder;
694
+ email?: Prisma.SortOrder;
695
+ phone?: Prisma.SortOrder;
696
+ address?: Prisma.SortOrder;
697
+ city?: Prisma.SortOrder;
698
+ state?: Prisma.SortOrder;
699
+ country?: Prisma.SortOrder;
700
+ website?: Prisma.SortOrder;
701
+ logoUrl?: Prisma.SortOrder;
702
+ description?: Prisma.SortOrder;
703
+ bankCode?: Prisma.SortOrder;
704
+ bankLicenseNo?: Prisma.SortOrder;
705
+ swiftCode?: Prisma.SortOrder;
706
+ sortCode?: Prisma.SortOrder;
707
+ cacNumber?: Prisma.SortOrder;
708
+ cacCertificateUrl?: Prisma.SortOrder;
709
+ taxId?: Prisma.SortOrder;
710
+ approvedAt?: Prisma.SortOrder;
711
+ approvedById?: Prisma.SortOrder;
712
+ createdAt?: Prisma.SortOrder;
713
+ updatedAt?: Prisma.SortOrder;
714
+ };
715
+ export type OrganizationScalarRelationFilter = {
716
+ is?: Prisma.OrganizationWhereInput;
717
+ isNot?: Prisma.OrganizationWhereInput;
718
+ };
719
+ export type OrganizationListRelationFilter = {
720
+ every?: Prisma.OrganizationWhereInput;
721
+ some?: Prisma.OrganizationWhereInput;
722
+ none?: Prisma.OrganizationWhereInput;
723
+ };
724
+ export type OrganizationOrderByRelationAggregateInput = {
725
+ _count?: Prisma.SortOrder;
726
+ };
727
+ export type EnumOrganizationTypeFieldUpdateOperationsInput = {
728
+ set?: $Enums.OrganizationType;
729
+ };
730
+ export type EnumOrganizationStatusFieldUpdateOperationsInput = {
731
+ set?: $Enums.OrganizationStatus;
732
+ };
733
+ export type OrganizationCreateNestedOneWithoutMembersInput = {
734
+ create?: Prisma.XOR<Prisma.OrganizationCreateWithoutMembersInput, Prisma.OrganizationUncheckedCreateWithoutMembersInput>;
735
+ connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutMembersInput;
736
+ connect?: Prisma.OrganizationWhereUniqueInput;
737
+ };
738
+ export type OrganizationUpdateOneRequiredWithoutMembersNestedInput = {
739
+ create?: Prisma.XOR<Prisma.OrganizationCreateWithoutMembersInput, Prisma.OrganizationUncheckedCreateWithoutMembersInput>;
740
+ connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutMembersInput;
741
+ upsert?: Prisma.OrganizationUpsertWithoutMembersInput;
742
+ connect?: Prisma.OrganizationWhereUniqueInput;
743
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationUpdateToOneWithWhereWithoutMembersInput, Prisma.OrganizationUpdateWithoutMembersInput>, Prisma.OrganizationUncheckedUpdateWithoutMembersInput>;
744
+ };
745
+ export type OrganizationCreateNestedManyWithoutTenantInput = {
746
+ create?: Prisma.XOR<Prisma.OrganizationCreateWithoutTenantInput, Prisma.OrganizationUncheckedCreateWithoutTenantInput> | Prisma.OrganizationCreateWithoutTenantInput[] | Prisma.OrganizationUncheckedCreateWithoutTenantInput[];
747
+ connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutTenantInput | Prisma.OrganizationCreateOrConnectWithoutTenantInput[];
748
+ createMany?: Prisma.OrganizationCreateManyTenantInputEnvelope;
749
+ connect?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
750
+ };
751
+ export type OrganizationUncheckedCreateNestedManyWithoutTenantInput = {
752
+ create?: Prisma.XOR<Prisma.OrganizationCreateWithoutTenantInput, Prisma.OrganizationUncheckedCreateWithoutTenantInput> | Prisma.OrganizationCreateWithoutTenantInput[] | Prisma.OrganizationUncheckedCreateWithoutTenantInput[];
753
+ connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutTenantInput | Prisma.OrganizationCreateOrConnectWithoutTenantInput[];
754
+ createMany?: Prisma.OrganizationCreateManyTenantInputEnvelope;
755
+ connect?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
756
+ };
757
+ export type OrganizationUpdateManyWithoutTenantNestedInput = {
758
+ create?: Prisma.XOR<Prisma.OrganizationCreateWithoutTenantInput, Prisma.OrganizationUncheckedCreateWithoutTenantInput> | Prisma.OrganizationCreateWithoutTenantInput[] | Prisma.OrganizationUncheckedCreateWithoutTenantInput[];
759
+ connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutTenantInput | Prisma.OrganizationCreateOrConnectWithoutTenantInput[];
760
+ upsert?: Prisma.OrganizationUpsertWithWhereUniqueWithoutTenantInput | Prisma.OrganizationUpsertWithWhereUniqueWithoutTenantInput[];
761
+ createMany?: Prisma.OrganizationCreateManyTenantInputEnvelope;
762
+ set?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
763
+ disconnect?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
764
+ delete?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
765
+ connect?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
766
+ update?: Prisma.OrganizationUpdateWithWhereUniqueWithoutTenantInput | Prisma.OrganizationUpdateWithWhereUniqueWithoutTenantInput[];
767
+ updateMany?: Prisma.OrganizationUpdateManyWithWhereWithoutTenantInput | Prisma.OrganizationUpdateManyWithWhereWithoutTenantInput[];
768
+ deleteMany?: Prisma.OrganizationScalarWhereInput | Prisma.OrganizationScalarWhereInput[];
769
+ };
770
+ export type OrganizationUncheckedUpdateManyWithoutTenantNestedInput = {
771
+ create?: Prisma.XOR<Prisma.OrganizationCreateWithoutTenantInput, Prisma.OrganizationUncheckedCreateWithoutTenantInput> | Prisma.OrganizationCreateWithoutTenantInput[] | Prisma.OrganizationUncheckedCreateWithoutTenantInput[];
772
+ connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutTenantInput | Prisma.OrganizationCreateOrConnectWithoutTenantInput[];
773
+ upsert?: Prisma.OrganizationUpsertWithWhereUniqueWithoutTenantInput | Prisma.OrganizationUpsertWithWhereUniqueWithoutTenantInput[];
774
+ createMany?: Prisma.OrganizationCreateManyTenantInputEnvelope;
775
+ set?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
776
+ disconnect?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
777
+ delete?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
778
+ connect?: Prisma.OrganizationWhereUniqueInput | Prisma.OrganizationWhereUniqueInput[];
779
+ update?: Prisma.OrganizationUpdateWithWhereUniqueWithoutTenantInput | Prisma.OrganizationUpdateWithWhereUniqueWithoutTenantInput[];
780
+ updateMany?: Prisma.OrganizationUpdateManyWithWhereWithoutTenantInput | Prisma.OrganizationUpdateManyWithWhereWithoutTenantInput[];
781
+ deleteMany?: Prisma.OrganizationScalarWhereInput | Prisma.OrganizationScalarWhereInput[];
782
+ };
783
+ export type OrganizationCreateWithoutMembersInput = {
784
+ id?: string;
785
+ name: string;
786
+ type: $Enums.OrganizationType;
787
+ status?: $Enums.OrganizationStatus;
788
+ email?: string | null;
789
+ phone?: string | null;
790
+ address?: string | null;
791
+ city?: string | null;
792
+ state?: string | null;
793
+ country?: string | null;
794
+ website?: string | null;
795
+ logoUrl?: string | null;
796
+ description?: string | null;
797
+ bankCode?: string | null;
798
+ bankLicenseNo?: string | null;
799
+ swiftCode?: string | null;
800
+ sortCode?: string | null;
801
+ cacNumber?: string | null;
802
+ cacCertificateUrl?: string | null;
803
+ taxId?: string | null;
804
+ approvedAt?: Date | string | null;
805
+ approvedById?: string | null;
806
+ createdAt?: Date | string;
807
+ updatedAt?: Date | string;
808
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationsInput;
809
+ };
810
+ export type OrganizationUncheckedCreateWithoutMembersInput = {
811
+ id?: string;
812
+ tenantId: string;
813
+ name: string;
814
+ type: $Enums.OrganizationType;
815
+ status?: $Enums.OrganizationStatus;
816
+ email?: string | null;
817
+ phone?: string | null;
818
+ address?: string | null;
819
+ city?: string | null;
820
+ state?: string | null;
821
+ country?: string | null;
822
+ website?: string | null;
823
+ logoUrl?: string | null;
824
+ description?: string | null;
825
+ bankCode?: string | null;
826
+ bankLicenseNo?: string | null;
827
+ swiftCode?: string | null;
828
+ sortCode?: string | null;
829
+ cacNumber?: string | null;
830
+ cacCertificateUrl?: string | null;
831
+ taxId?: string | null;
832
+ approvedAt?: Date | string | null;
833
+ approvedById?: string | null;
834
+ createdAt?: Date | string;
835
+ updatedAt?: Date | string;
836
+ };
837
+ export type OrganizationCreateOrConnectWithoutMembersInput = {
838
+ where: Prisma.OrganizationWhereUniqueInput;
839
+ create: Prisma.XOR<Prisma.OrganizationCreateWithoutMembersInput, Prisma.OrganizationUncheckedCreateWithoutMembersInput>;
840
+ };
841
+ export type OrganizationUpsertWithoutMembersInput = {
842
+ update: Prisma.XOR<Prisma.OrganizationUpdateWithoutMembersInput, Prisma.OrganizationUncheckedUpdateWithoutMembersInput>;
843
+ create: Prisma.XOR<Prisma.OrganizationCreateWithoutMembersInput, Prisma.OrganizationUncheckedCreateWithoutMembersInput>;
844
+ where?: Prisma.OrganizationWhereInput;
845
+ };
846
+ export type OrganizationUpdateToOneWithWhereWithoutMembersInput = {
847
+ where?: Prisma.OrganizationWhereInput;
848
+ data: Prisma.XOR<Prisma.OrganizationUpdateWithoutMembersInput, Prisma.OrganizationUncheckedUpdateWithoutMembersInput>;
849
+ };
850
+ export type OrganizationUpdateWithoutMembersInput = {
851
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
852
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
853
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
854
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
855
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
856
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
857
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
858
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
859
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
860
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
861
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
862
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
863
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
864
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
865
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
866
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
867
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
868
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
869
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
870
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
871
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
872
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
873
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
874
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
875
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationsNestedInput;
876
+ };
877
+ export type OrganizationUncheckedUpdateWithoutMembersInput = {
878
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
879
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
880
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
881
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
882
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
883
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
884
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
885
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
886
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
887
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
888
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
889
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
890
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
891
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
892
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
893
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
894
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
895
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
896
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
897
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
898
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
899
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
900
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
901
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
902
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
903
+ };
904
+ export type OrganizationCreateWithoutTenantInput = {
905
+ id?: string;
906
+ name: string;
907
+ type: $Enums.OrganizationType;
908
+ status?: $Enums.OrganizationStatus;
909
+ email?: string | null;
910
+ phone?: string | null;
911
+ address?: string | null;
912
+ city?: string | null;
913
+ state?: string | null;
914
+ country?: string | null;
915
+ website?: string | null;
916
+ logoUrl?: string | null;
917
+ description?: string | null;
918
+ bankCode?: string | null;
919
+ bankLicenseNo?: string | null;
920
+ swiftCode?: string | null;
921
+ sortCode?: string | null;
922
+ cacNumber?: string | null;
923
+ cacCertificateUrl?: string | null;
924
+ taxId?: string | null;
925
+ approvedAt?: Date | string | null;
926
+ approvedById?: string | null;
927
+ createdAt?: Date | string;
928
+ updatedAt?: Date | string;
929
+ members?: Prisma.OrganizationMemberCreateNestedManyWithoutOrganizationInput;
930
+ };
931
+ export type OrganizationUncheckedCreateWithoutTenantInput = {
932
+ id?: string;
933
+ name: string;
934
+ type: $Enums.OrganizationType;
935
+ status?: $Enums.OrganizationStatus;
936
+ email?: string | null;
937
+ phone?: string | null;
938
+ address?: string | null;
939
+ city?: string | null;
940
+ state?: string | null;
941
+ country?: string | null;
942
+ website?: string | null;
943
+ logoUrl?: string | null;
944
+ description?: string | null;
945
+ bankCode?: string | null;
946
+ bankLicenseNo?: string | null;
947
+ swiftCode?: string | null;
948
+ sortCode?: string | null;
949
+ cacNumber?: string | null;
950
+ cacCertificateUrl?: string | null;
951
+ taxId?: string | null;
952
+ approvedAt?: Date | string | null;
953
+ approvedById?: string | null;
954
+ createdAt?: Date | string;
955
+ updatedAt?: Date | string;
956
+ members?: Prisma.OrganizationMemberUncheckedCreateNestedManyWithoutOrganizationInput;
957
+ };
958
+ export type OrganizationCreateOrConnectWithoutTenantInput = {
959
+ where: Prisma.OrganizationWhereUniqueInput;
960
+ create: Prisma.XOR<Prisma.OrganizationCreateWithoutTenantInput, Prisma.OrganizationUncheckedCreateWithoutTenantInput>;
961
+ };
962
+ export type OrganizationCreateManyTenantInputEnvelope = {
963
+ data: Prisma.OrganizationCreateManyTenantInput | Prisma.OrganizationCreateManyTenantInput[];
964
+ skipDuplicates?: boolean;
965
+ };
966
+ export type OrganizationUpsertWithWhereUniqueWithoutTenantInput = {
967
+ where: Prisma.OrganizationWhereUniqueInput;
968
+ update: Prisma.XOR<Prisma.OrganizationUpdateWithoutTenantInput, Prisma.OrganizationUncheckedUpdateWithoutTenantInput>;
969
+ create: Prisma.XOR<Prisma.OrganizationCreateWithoutTenantInput, Prisma.OrganizationUncheckedCreateWithoutTenantInput>;
970
+ };
971
+ export type OrganizationUpdateWithWhereUniqueWithoutTenantInput = {
972
+ where: Prisma.OrganizationWhereUniqueInput;
973
+ data: Prisma.XOR<Prisma.OrganizationUpdateWithoutTenantInput, Prisma.OrganizationUncheckedUpdateWithoutTenantInput>;
974
+ };
975
+ export type OrganizationUpdateManyWithWhereWithoutTenantInput = {
976
+ where: Prisma.OrganizationScalarWhereInput;
977
+ data: Prisma.XOR<Prisma.OrganizationUpdateManyMutationInput, Prisma.OrganizationUncheckedUpdateManyWithoutTenantInput>;
978
+ };
979
+ export type OrganizationScalarWhereInput = {
980
+ AND?: Prisma.OrganizationScalarWhereInput | Prisma.OrganizationScalarWhereInput[];
981
+ OR?: Prisma.OrganizationScalarWhereInput[];
982
+ NOT?: Prisma.OrganizationScalarWhereInput | Prisma.OrganizationScalarWhereInput[];
983
+ id?: Prisma.StringFilter<"Organization"> | string;
984
+ tenantId?: Prisma.StringFilter<"Organization"> | string;
985
+ name?: Prisma.StringFilter<"Organization"> | string;
986
+ type?: Prisma.EnumOrganizationTypeFilter<"Organization"> | $Enums.OrganizationType;
987
+ status?: Prisma.EnumOrganizationStatusFilter<"Organization"> | $Enums.OrganizationStatus;
988
+ email?: Prisma.StringNullableFilter<"Organization"> | string | null;
989
+ phone?: Prisma.StringNullableFilter<"Organization"> | string | null;
990
+ address?: Prisma.StringNullableFilter<"Organization"> | string | null;
991
+ city?: Prisma.StringNullableFilter<"Organization"> | string | null;
992
+ state?: Prisma.StringNullableFilter<"Organization"> | string | null;
993
+ country?: Prisma.StringNullableFilter<"Organization"> | string | null;
994
+ website?: Prisma.StringNullableFilter<"Organization"> | string | null;
995
+ logoUrl?: Prisma.StringNullableFilter<"Organization"> | string | null;
996
+ description?: Prisma.StringNullableFilter<"Organization"> | string | null;
997
+ bankCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
998
+ bankLicenseNo?: Prisma.StringNullableFilter<"Organization"> | string | null;
999
+ swiftCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
1000
+ sortCode?: Prisma.StringNullableFilter<"Organization"> | string | null;
1001
+ cacNumber?: Prisma.StringNullableFilter<"Organization"> | string | null;
1002
+ cacCertificateUrl?: Prisma.StringNullableFilter<"Organization"> | string | null;
1003
+ taxId?: Prisma.StringNullableFilter<"Organization"> | string | null;
1004
+ approvedAt?: Prisma.DateTimeNullableFilter<"Organization"> | Date | string | null;
1005
+ approvedById?: Prisma.StringNullableFilter<"Organization"> | string | null;
1006
+ createdAt?: Prisma.DateTimeFilter<"Organization"> | Date | string;
1007
+ updatedAt?: Prisma.DateTimeFilter<"Organization"> | Date | string;
1008
+ };
1009
+ export type OrganizationCreateManyTenantInput = {
1010
+ id?: string;
1011
+ name: string;
1012
+ type: $Enums.OrganizationType;
1013
+ status?: $Enums.OrganizationStatus;
1014
+ email?: string | null;
1015
+ phone?: string | null;
1016
+ address?: string | null;
1017
+ city?: string | null;
1018
+ state?: string | null;
1019
+ country?: string | null;
1020
+ website?: string | null;
1021
+ logoUrl?: string | null;
1022
+ description?: string | null;
1023
+ bankCode?: string | null;
1024
+ bankLicenseNo?: string | null;
1025
+ swiftCode?: string | null;
1026
+ sortCode?: string | null;
1027
+ cacNumber?: string | null;
1028
+ cacCertificateUrl?: string | null;
1029
+ taxId?: string | null;
1030
+ approvedAt?: Date | string | null;
1031
+ approvedById?: string | null;
1032
+ createdAt?: Date | string;
1033
+ updatedAt?: Date | string;
1034
+ };
1035
+ export type OrganizationUpdateWithoutTenantInput = {
1036
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1037
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1038
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
1039
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
1040
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1041
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1042
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1043
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1044
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1045
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1046
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1047
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1048
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1049
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1050
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1051
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1052
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1053
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1054
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1055
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1056
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1057
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1059
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1060
+ members?: Prisma.OrganizationMemberUpdateManyWithoutOrganizationNestedInput;
1061
+ };
1062
+ export type OrganizationUncheckedUpdateWithoutTenantInput = {
1063
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1064
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1065
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
1066
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
1067
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1068
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1069
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1070
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1071
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1072
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1073
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1074
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1075
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1076
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1077
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1078
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1079
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1080
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1081
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1082
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1083
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1084
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1085
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1086
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1087
+ members?: Prisma.OrganizationMemberUncheckedUpdateManyWithoutOrganizationNestedInput;
1088
+ };
1089
+ export type OrganizationUncheckedUpdateManyWithoutTenantInput = {
1090
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1091
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1092
+ type?: Prisma.EnumOrganizationTypeFieldUpdateOperationsInput | $Enums.OrganizationType;
1093
+ status?: Prisma.EnumOrganizationStatusFieldUpdateOperationsInput | $Enums.OrganizationStatus;
1094
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1095
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1096
+ address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1097
+ city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1098
+ state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1099
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1100
+ website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1101
+ logoUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1102
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1103
+ bankCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1104
+ bankLicenseNo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1105
+ swiftCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1106
+ sortCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1107
+ cacNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1108
+ cacCertificateUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1109
+ taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1110
+ approvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1111
+ approvedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1112
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1113
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1114
+ };
1115
+ /**
1116
+ * Count Type OrganizationCountOutputType
1117
+ */
1118
+ export type OrganizationCountOutputType = {
1119
+ members: number;
1120
+ };
1121
+ export type OrganizationCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1122
+ members?: boolean | OrganizationCountOutputTypeCountMembersArgs;
1123
+ };
1124
+ /**
1125
+ * OrganizationCountOutputType without action
1126
+ */
1127
+ export type OrganizationCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1128
+ /**
1129
+ * Select specific fields to fetch from the OrganizationCountOutputType
1130
+ */
1131
+ select?: Prisma.OrganizationCountOutputTypeSelect<ExtArgs> | null;
1132
+ };
1133
+ /**
1134
+ * OrganizationCountOutputType without action
1135
+ */
1136
+ export type OrganizationCountOutputTypeCountMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1137
+ where?: Prisma.OrganizationMemberWhereInput;
1138
+ };
1139
+ export type OrganizationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1140
+ id?: boolean;
1141
+ tenantId?: boolean;
1142
+ name?: boolean;
1143
+ type?: boolean;
1144
+ status?: boolean;
1145
+ email?: boolean;
1146
+ phone?: boolean;
1147
+ address?: boolean;
1148
+ city?: boolean;
1149
+ state?: boolean;
1150
+ country?: boolean;
1151
+ website?: boolean;
1152
+ logoUrl?: boolean;
1153
+ description?: boolean;
1154
+ bankCode?: boolean;
1155
+ bankLicenseNo?: boolean;
1156
+ swiftCode?: boolean;
1157
+ sortCode?: boolean;
1158
+ cacNumber?: boolean;
1159
+ cacCertificateUrl?: boolean;
1160
+ taxId?: boolean;
1161
+ approvedAt?: boolean;
1162
+ approvedById?: boolean;
1163
+ createdAt?: boolean;
1164
+ updatedAt?: boolean;
1165
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1166
+ members?: boolean | Prisma.Organization$membersArgs<ExtArgs>;
1167
+ _count?: boolean | Prisma.OrganizationCountOutputTypeDefaultArgs<ExtArgs>;
1168
+ }, ExtArgs["result"]["organization"]>;
1169
+ export type OrganizationSelectScalar = {
1170
+ id?: boolean;
1171
+ tenantId?: boolean;
1172
+ name?: boolean;
1173
+ type?: boolean;
1174
+ status?: boolean;
1175
+ email?: boolean;
1176
+ phone?: boolean;
1177
+ address?: boolean;
1178
+ city?: boolean;
1179
+ state?: boolean;
1180
+ country?: boolean;
1181
+ website?: boolean;
1182
+ logoUrl?: boolean;
1183
+ description?: boolean;
1184
+ bankCode?: boolean;
1185
+ bankLicenseNo?: boolean;
1186
+ swiftCode?: boolean;
1187
+ sortCode?: boolean;
1188
+ cacNumber?: boolean;
1189
+ cacCertificateUrl?: boolean;
1190
+ taxId?: boolean;
1191
+ approvedAt?: boolean;
1192
+ approvedById?: boolean;
1193
+ createdAt?: boolean;
1194
+ updatedAt?: boolean;
1195
+ };
1196
+ export type OrganizationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "type" | "status" | "email" | "phone" | "address" | "city" | "state" | "country" | "website" | "logoUrl" | "description" | "bankCode" | "bankLicenseNo" | "swiftCode" | "sortCode" | "cacNumber" | "cacCertificateUrl" | "taxId" | "approvedAt" | "approvedById" | "createdAt" | "updatedAt", ExtArgs["result"]["organization"]>;
1197
+ export type OrganizationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1198
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1199
+ members?: boolean | Prisma.Organization$membersArgs<ExtArgs>;
1200
+ _count?: boolean | Prisma.OrganizationCountOutputTypeDefaultArgs<ExtArgs>;
1201
+ };
1202
+ export type $OrganizationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1203
+ name: "Organization";
1204
+ objects: {
1205
+ tenant: Prisma.$TenantPayload<ExtArgs>;
1206
+ members: Prisma.$OrganizationMemberPayload<ExtArgs>[];
1207
+ };
1208
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1209
+ id: string;
1210
+ tenantId: string;
1211
+ name: string;
1212
+ type: $Enums.OrganizationType;
1213
+ status: $Enums.OrganizationStatus;
1214
+ email: string | null;
1215
+ phone: string | null;
1216
+ address: string | null;
1217
+ city: string | null;
1218
+ state: string | null;
1219
+ country: string | null;
1220
+ website: string | null;
1221
+ logoUrl: string | null;
1222
+ description: string | null;
1223
+ bankCode: string | null;
1224
+ bankLicenseNo: string | null;
1225
+ swiftCode: string | null;
1226
+ sortCode: string | null;
1227
+ cacNumber: string | null;
1228
+ cacCertificateUrl: string | null;
1229
+ taxId: string | null;
1230
+ approvedAt: Date | null;
1231
+ approvedById: string | null;
1232
+ createdAt: Date;
1233
+ updatedAt: Date;
1234
+ }, ExtArgs["result"]["organization"]>;
1235
+ composites: {};
1236
+ };
1237
+ export type OrganizationGetPayload<S extends boolean | null | undefined | OrganizationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OrganizationPayload, S>;
1238
+ export type OrganizationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OrganizationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1239
+ select?: OrganizationCountAggregateInputType | true;
1240
+ };
1241
+ export interface OrganizationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1242
+ [K: symbol]: {
1243
+ types: Prisma.TypeMap<ExtArgs>['model']['Organization'];
1244
+ meta: {
1245
+ name: 'Organization';
1246
+ };
1247
+ };
1248
+ /**
1249
+ * Find zero or one Organization that matches the filter.
1250
+ * @param {OrganizationFindUniqueArgs} args - Arguments to find a Organization
1251
+ * @example
1252
+ * // Get one Organization
1253
+ * const organization = await prisma.organization.findUnique({
1254
+ * where: {
1255
+ * // ... provide filter here
1256
+ * }
1257
+ * })
1258
+ */
1259
+ findUnique<T extends OrganizationFindUniqueArgs>(args: Prisma.SelectSubset<T, OrganizationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1260
+ /**
1261
+ * Find one Organization that matches the filter or throw an error with `error.code='P2025'`
1262
+ * if no matches were found.
1263
+ * @param {OrganizationFindUniqueOrThrowArgs} args - Arguments to find a Organization
1264
+ * @example
1265
+ * // Get one Organization
1266
+ * const organization = await prisma.organization.findUniqueOrThrow({
1267
+ * where: {
1268
+ * // ... provide filter here
1269
+ * }
1270
+ * })
1271
+ */
1272
+ findUniqueOrThrow<T extends OrganizationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OrganizationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1273
+ /**
1274
+ * Find the first Organization that matches the filter.
1275
+ * Note, that providing `undefined` is treated as the value not being there.
1276
+ * Read more here: https://pris.ly/d/null-undefined
1277
+ * @param {OrganizationFindFirstArgs} args - Arguments to find a Organization
1278
+ * @example
1279
+ * // Get one Organization
1280
+ * const organization = await prisma.organization.findFirst({
1281
+ * where: {
1282
+ * // ... provide filter here
1283
+ * }
1284
+ * })
1285
+ */
1286
+ findFirst<T extends OrganizationFindFirstArgs>(args?: Prisma.SelectSubset<T, OrganizationFindFirstArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1287
+ /**
1288
+ * Find the first Organization that matches the filter or
1289
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1290
+ * Note, that providing `undefined` is treated as the value not being there.
1291
+ * Read more here: https://pris.ly/d/null-undefined
1292
+ * @param {OrganizationFindFirstOrThrowArgs} args - Arguments to find a Organization
1293
+ * @example
1294
+ * // Get one Organization
1295
+ * const organization = await prisma.organization.findFirstOrThrow({
1296
+ * where: {
1297
+ * // ... provide filter here
1298
+ * }
1299
+ * })
1300
+ */
1301
+ findFirstOrThrow<T extends OrganizationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OrganizationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1302
+ /**
1303
+ * Find zero or more Organizations that matches the filter.
1304
+ * Note, that providing `undefined` is treated as the value not being there.
1305
+ * Read more here: https://pris.ly/d/null-undefined
1306
+ * @param {OrganizationFindManyArgs} args - Arguments to filter and select certain fields only.
1307
+ * @example
1308
+ * // Get all Organizations
1309
+ * const organizations = await prisma.organization.findMany()
1310
+ *
1311
+ * // Get first 10 Organizations
1312
+ * const organizations = await prisma.organization.findMany({ take: 10 })
1313
+ *
1314
+ * // Only select the `id`
1315
+ * const organizationWithIdOnly = await prisma.organization.findMany({ select: { id: true } })
1316
+ *
1317
+ */
1318
+ findMany<T extends OrganizationFindManyArgs>(args?: Prisma.SelectSubset<T, OrganizationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1319
+ /**
1320
+ * Create a Organization.
1321
+ * @param {OrganizationCreateArgs} args - Arguments to create a Organization.
1322
+ * @example
1323
+ * // Create one Organization
1324
+ * const Organization = await prisma.organization.create({
1325
+ * data: {
1326
+ * // ... data to create a Organization
1327
+ * }
1328
+ * })
1329
+ *
1330
+ */
1331
+ create<T extends OrganizationCreateArgs>(args: Prisma.SelectSubset<T, OrganizationCreateArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1332
+ /**
1333
+ * Create many Organizations.
1334
+ * @param {OrganizationCreateManyArgs} args - Arguments to create many Organizations.
1335
+ * @example
1336
+ * // Create many Organizations
1337
+ * const organization = await prisma.organization.createMany({
1338
+ * data: [
1339
+ * // ... provide data here
1340
+ * ]
1341
+ * })
1342
+ *
1343
+ */
1344
+ createMany<T extends OrganizationCreateManyArgs>(args?: Prisma.SelectSubset<T, OrganizationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1345
+ /**
1346
+ * Delete a Organization.
1347
+ * @param {OrganizationDeleteArgs} args - Arguments to delete one Organization.
1348
+ * @example
1349
+ * // Delete one Organization
1350
+ * const Organization = await prisma.organization.delete({
1351
+ * where: {
1352
+ * // ... filter to delete one Organization
1353
+ * }
1354
+ * })
1355
+ *
1356
+ */
1357
+ delete<T extends OrganizationDeleteArgs>(args: Prisma.SelectSubset<T, OrganizationDeleteArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1358
+ /**
1359
+ * Update one Organization.
1360
+ * @param {OrganizationUpdateArgs} args - Arguments to update one Organization.
1361
+ * @example
1362
+ * // Update one Organization
1363
+ * const organization = await prisma.organization.update({
1364
+ * where: {
1365
+ * // ... provide filter here
1366
+ * },
1367
+ * data: {
1368
+ * // ... provide data here
1369
+ * }
1370
+ * })
1371
+ *
1372
+ */
1373
+ update<T extends OrganizationUpdateArgs>(args: Prisma.SelectSubset<T, OrganizationUpdateArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1374
+ /**
1375
+ * Delete zero or more Organizations.
1376
+ * @param {OrganizationDeleteManyArgs} args - Arguments to filter Organizations to delete.
1377
+ * @example
1378
+ * // Delete a few Organizations
1379
+ * const { count } = await prisma.organization.deleteMany({
1380
+ * where: {
1381
+ * // ... provide filter here
1382
+ * }
1383
+ * })
1384
+ *
1385
+ */
1386
+ deleteMany<T extends OrganizationDeleteManyArgs>(args?: Prisma.SelectSubset<T, OrganizationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1387
+ /**
1388
+ * Update zero or more Organizations.
1389
+ * Note, that providing `undefined` is treated as the value not being there.
1390
+ * Read more here: https://pris.ly/d/null-undefined
1391
+ * @param {OrganizationUpdateManyArgs} args - Arguments to update one or more rows.
1392
+ * @example
1393
+ * // Update many Organizations
1394
+ * const organization = await prisma.organization.updateMany({
1395
+ * where: {
1396
+ * // ... provide filter here
1397
+ * },
1398
+ * data: {
1399
+ * // ... provide data here
1400
+ * }
1401
+ * })
1402
+ *
1403
+ */
1404
+ updateMany<T extends OrganizationUpdateManyArgs>(args: Prisma.SelectSubset<T, OrganizationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1405
+ /**
1406
+ * Create or update one Organization.
1407
+ * @param {OrganizationUpsertArgs} args - Arguments to update or create a Organization.
1408
+ * @example
1409
+ * // Update or create a Organization
1410
+ * const organization = await prisma.organization.upsert({
1411
+ * create: {
1412
+ * // ... data to create a Organization
1413
+ * },
1414
+ * update: {
1415
+ * // ... in case it already exists, update
1416
+ * },
1417
+ * where: {
1418
+ * // ... the filter for the Organization we want to update
1419
+ * }
1420
+ * })
1421
+ */
1422
+ upsert<T extends OrganizationUpsertArgs>(args: Prisma.SelectSubset<T, OrganizationUpsertArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1423
+ /**
1424
+ * Count the number of Organizations.
1425
+ * Note, that providing `undefined` is treated as the value not being there.
1426
+ * Read more here: https://pris.ly/d/null-undefined
1427
+ * @param {OrganizationCountArgs} args - Arguments to filter Organizations to count.
1428
+ * @example
1429
+ * // Count the number of Organizations
1430
+ * const count = await prisma.organization.count({
1431
+ * where: {
1432
+ * // ... the filter for the Organizations we want to count
1433
+ * }
1434
+ * })
1435
+ **/
1436
+ count<T extends OrganizationCountArgs>(args?: Prisma.Subset<T, OrganizationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OrganizationCountAggregateOutputType> : number>;
1437
+ /**
1438
+ * Allows you to perform aggregations operations on a Organization.
1439
+ * Note, that providing `undefined` is treated as the value not being there.
1440
+ * Read more here: https://pris.ly/d/null-undefined
1441
+ * @param {OrganizationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1442
+ * @example
1443
+ * // Ordered by age ascending
1444
+ * // Where email contains prisma.io
1445
+ * // Limited to the 10 users
1446
+ * const aggregations = await prisma.user.aggregate({
1447
+ * _avg: {
1448
+ * age: true,
1449
+ * },
1450
+ * where: {
1451
+ * email: {
1452
+ * contains: "prisma.io",
1453
+ * },
1454
+ * },
1455
+ * orderBy: {
1456
+ * age: "asc",
1457
+ * },
1458
+ * take: 10,
1459
+ * })
1460
+ **/
1461
+ aggregate<T extends OrganizationAggregateArgs>(args: Prisma.Subset<T, OrganizationAggregateArgs>): Prisma.PrismaPromise<GetOrganizationAggregateType<T>>;
1462
+ /**
1463
+ * Group by Organization.
1464
+ * Note, that providing `undefined` is treated as the value not being there.
1465
+ * Read more here: https://pris.ly/d/null-undefined
1466
+ * @param {OrganizationGroupByArgs} args - Group by arguments.
1467
+ * @example
1468
+ * // Group by city, order by createdAt, get count
1469
+ * const result = await prisma.user.groupBy({
1470
+ * by: ['city', 'createdAt'],
1471
+ * orderBy: {
1472
+ * createdAt: true
1473
+ * },
1474
+ * _count: {
1475
+ * _all: true
1476
+ * },
1477
+ * })
1478
+ *
1479
+ **/
1480
+ groupBy<T extends OrganizationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1481
+ orderBy: OrganizationGroupByArgs['orderBy'];
1482
+ } : {
1483
+ orderBy?: OrganizationGroupByArgs['orderBy'];
1484
+ }, 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 ? {
1485
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1486
+ Error,
1487
+ 'Field ',
1488
+ P,
1489
+ ` in "having" needs to be provided in "by"`
1490
+ ];
1491
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1492
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1493
+ }[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 ? {} : {
1494
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1495
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1496
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1497
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, OrganizationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1498
+ /**
1499
+ * Fields of the Organization model
1500
+ */
1501
+ readonly fields: OrganizationFieldRefs;
1502
+ }
1503
+ /**
1504
+ * The delegate class that acts as a "Promise-like" for Organization.
1505
+ * Why is this prefixed with `Prisma__`?
1506
+ * Because we want to prevent naming conflicts as mentioned in
1507
+ * https://github.com/prisma/prisma-client-js/issues/707
1508
+ */
1509
+ export interface Prisma__OrganizationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1510
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1511
+ tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1512
+ members<T extends Prisma.Organization$membersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Organization$membersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1513
+ /**
1514
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1515
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1516
+ * @param onrejected The callback to execute when the Promise is rejected.
1517
+ * @returns A Promise for the completion of which ever callback is executed.
1518
+ */
1519
+ 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>;
1520
+ /**
1521
+ * Attaches a callback for only the rejection of the Promise.
1522
+ * @param onrejected The callback to execute when the Promise is rejected.
1523
+ * @returns A Promise for the completion of the callback.
1524
+ */
1525
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1526
+ /**
1527
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1528
+ * resolved value cannot be modified from the callback.
1529
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1530
+ * @returns A Promise for the completion of the callback.
1531
+ */
1532
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1533
+ }
1534
+ /**
1535
+ * Fields of the Organization model
1536
+ */
1537
+ export interface OrganizationFieldRefs {
1538
+ readonly id: Prisma.FieldRef<"Organization", 'String'>;
1539
+ readonly tenantId: Prisma.FieldRef<"Organization", 'String'>;
1540
+ readonly name: Prisma.FieldRef<"Organization", 'String'>;
1541
+ readonly type: Prisma.FieldRef<"Organization", 'OrganizationType'>;
1542
+ readonly status: Prisma.FieldRef<"Organization", 'OrganizationStatus'>;
1543
+ readonly email: Prisma.FieldRef<"Organization", 'String'>;
1544
+ readonly phone: Prisma.FieldRef<"Organization", 'String'>;
1545
+ readonly address: Prisma.FieldRef<"Organization", 'String'>;
1546
+ readonly city: Prisma.FieldRef<"Organization", 'String'>;
1547
+ readonly state: Prisma.FieldRef<"Organization", 'String'>;
1548
+ readonly country: Prisma.FieldRef<"Organization", 'String'>;
1549
+ readonly website: Prisma.FieldRef<"Organization", 'String'>;
1550
+ readonly logoUrl: Prisma.FieldRef<"Organization", 'String'>;
1551
+ readonly description: Prisma.FieldRef<"Organization", 'String'>;
1552
+ readonly bankCode: Prisma.FieldRef<"Organization", 'String'>;
1553
+ readonly bankLicenseNo: Prisma.FieldRef<"Organization", 'String'>;
1554
+ readonly swiftCode: Prisma.FieldRef<"Organization", 'String'>;
1555
+ readonly sortCode: Prisma.FieldRef<"Organization", 'String'>;
1556
+ readonly cacNumber: Prisma.FieldRef<"Organization", 'String'>;
1557
+ readonly cacCertificateUrl: Prisma.FieldRef<"Organization", 'String'>;
1558
+ readonly taxId: Prisma.FieldRef<"Organization", 'String'>;
1559
+ readonly approvedAt: Prisma.FieldRef<"Organization", 'DateTime'>;
1560
+ readonly approvedById: Prisma.FieldRef<"Organization", 'String'>;
1561
+ readonly createdAt: Prisma.FieldRef<"Organization", 'DateTime'>;
1562
+ readonly updatedAt: Prisma.FieldRef<"Organization", 'DateTime'>;
1563
+ }
1564
+ /**
1565
+ * Organization findUnique
1566
+ */
1567
+ export type OrganizationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1568
+ /**
1569
+ * Select specific fields to fetch from the Organization
1570
+ */
1571
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1572
+ /**
1573
+ * Omit specific fields from the Organization
1574
+ */
1575
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1576
+ /**
1577
+ * Choose, which related nodes to fetch as well
1578
+ */
1579
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1580
+ /**
1581
+ * Filter, which Organization to fetch.
1582
+ */
1583
+ where: Prisma.OrganizationWhereUniqueInput;
1584
+ };
1585
+ /**
1586
+ * Organization findUniqueOrThrow
1587
+ */
1588
+ export type OrganizationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1589
+ /**
1590
+ * Select specific fields to fetch from the Organization
1591
+ */
1592
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1593
+ /**
1594
+ * Omit specific fields from the Organization
1595
+ */
1596
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1597
+ /**
1598
+ * Choose, which related nodes to fetch as well
1599
+ */
1600
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1601
+ /**
1602
+ * Filter, which Organization to fetch.
1603
+ */
1604
+ where: Prisma.OrganizationWhereUniqueInput;
1605
+ };
1606
+ /**
1607
+ * Organization findFirst
1608
+ */
1609
+ export type OrganizationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1610
+ /**
1611
+ * Select specific fields to fetch from the Organization
1612
+ */
1613
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1614
+ /**
1615
+ * Omit specific fields from the Organization
1616
+ */
1617
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1618
+ /**
1619
+ * Choose, which related nodes to fetch as well
1620
+ */
1621
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1622
+ /**
1623
+ * Filter, which Organization to fetch.
1624
+ */
1625
+ where?: Prisma.OrganizationWhereInput;
1626
+ /**
1627
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1628
+ *
1629
+ * Determine the order of Organizations to fetch.
1630
+ */
1631
+ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
1632
+ /**
1633
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1634
+ *
1635
+ * Sets the position for searching for Organizations.
1636
+ */
1637
+ cursor?: Prisma.OrganizationWhereUniqueInput;
1638
+ /**
1639
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1640
+ *
1641
+ * Take `±n` Organizations from the position of the cursor.
1642
+ */
1643
+ take?: number;
1644
+ /**
1645
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1646
+ *
1647
+ * Skip the first `n` Organizations.
1648
+ */
1649
+ skip?: number;
1650
+ /**
1651
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1652
+ *
1653
+ * Filter by unique combinations of Organizations.
1654
+ */
1655
+ distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[];
1656
+ };
1657
+ /**
1658
+ * Organization findFirstOrThrow
1659
+ */
1660
+ export type OrganizationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1661
+ /**
1662
+ * Select specific fields to fetch from the Organization
1663
+ */
1664
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1665
+ /**
1666
+ * Omit specific fields from the Organization
1667
+ */
1668
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1669
+ /**
1670
+ * Choose, which related nodes to fetch as well
1671
+ */
1672
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1673
+ /**
1674
+ * Filter, which Organization to fetch.
1675
+ */
1676
+ where?: Prisma.OrganizationWhereInput;
1677
+ /**
1678
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1679
+ *
1680
+ * Determine the order of Organizations to fetch.
1681
+ */
1682
+ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
1683
+ /**
1684
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1685
+ *
1686
+ * Sets the position for searching for Organizations.
1687
+ */
1688
+ cursor?: Prisma.OrganizationWhereUniqueInput;
1689
+ /**
1690
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1691
+ *
1692
+ * Take `±n` Organizations from the position of the cursor.
1693
+ */
1694
+ take?: number;
1695
+ /**
1696
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1697
+ *
1698
+ * Skip the first `n` Organizations.
1699
+ */
1700
+ skip?: number;
1701
+ /**
1702
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1703
+ *
1704
+ * Filter by unique combinations of Organizations.
1705
+ */
1706
+ distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[];
1707
+ };
1708
+ /**
1709
+ * Organization findMany
1710
+ */
1711
+ export type OrganizationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1712
+ /**
1713
+ * Select specific fields to fetch from the Organization
1714
+ */
1715
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1716
+ /**
1717
+ * Omit specific fields from the Organization
1718
+ */
1719
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1720
+ /**
1721
+ * Choose, which related nodes to fetch as well
1722
+ */
1723
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1724
+ /**
1725
+ * Filter, which Organizations to fetch.
1726
+ */
1727
+ where?: Prisma.OrganizationWhereInput;
1728
+ /**
1729
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1730
+ *
1731
+ * Determine the order of Organizations to fetch.
1732
+ */
1733
+ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
1734
+ /**
1735
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1736
+ *
1737
+ * Sets the position for listing Organizations.
1738
+ */
1739
+ cursor?: Prisma.OrganizationWhereUniqueInput;
1740
+ /**
1741
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1742
+ *
1743
+ * Take `±n` Organizations from the position of the cursor.
1744
+ */
1745
+ take?: number;
1746
+ /**
1747
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1748
+ *
1749
+ * Skip the first `n` Organizations.
1750
+ */
1751
+ skip?: number;
1752
+ distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[];
1753
+ };
1754
+ /**
1755
+ * Organization create
1756
+ */
1757
+ export type OrganizationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1758
+ /**
1759
+ * Select specific fields to fetch from the Organization
1760
+ */
1761
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1762
+ /**
1763
+ * Omit specific fields from the Organization
1764
+ */
1765
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1766
+ /**
1767
+ * Choose, which related nodes to fetch as well
1768
+ */
1769
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1770
+ /**
1771
+ * The data needed to create a Organization.
1772
+ */
1773
+ data: Prisma.XOR<Prisma.OrganizationCreateInput, Prisma.OrganizationUncheckedCreateInput>;
1774
+ };
1775
+ /**
1776
+ * Organization createMany
1777
+ */
1778
+ export type OrganizationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1779
+ /**
1780
+ * The data used to create many Organizations.
1781
+ */
1782
+ data: Prisma.OrganizationCreateManyInput | Prisma.OrganizationCreateManyInput[];
1783
+ skipDuplicates?: boolean;
1784
+ };
1785
+ /**
1786
+ * Organization update
1787
+ */
1788
+ export type OrganizationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1789
+ /**
1790
+ * Select specific fields to fetch from the Organization
1791
+ */
1792
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1793
+ /**
1794
+ * Omit specific fields from the Organization
1795
+ */
1796
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1797
+ /**
1798
+ * Choose, which related nodes to fetch as well
1799
+ */
1800
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1801
+ /**
1802
+ * The data needed to update a Organization.
1803
+ */
1804
+ data: Prisma.XOR<Prisma.OrganizationUpdateInput, Prisma.OrganizationUncheckedUpdateInput>;
1805
+ /**
1806
+ * Choose, which Organization to update.
1807
+ */
1808
+ where: Prisma.OrganizationWhereUniqueInput;
1809
+ };
1810
+ /**
1811
+ * Organization updateMany
1812
+ */
1813
+ export type OrganizationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1814
+ /**
1815
+ * The data used to update Organizations.
1816
+ */
1817
+ data: Prisma.XOR<Prisma.OrganizationUpdateManyMutationInput, Prisma.OrganizationUncheckedUpdateManyInput>;
1818
+ /**
1819
+ * Filter which Organizations to update
1820
+ */
1821
+ where?: Prisma.OrganizationWhereInput;
1822
+ /**
1823
+ * Limit how many Organizations to update.
1824
+ */
1825
+ limit?: number;
1826
+ };
1827
+ /**
1828
+ * Organization upsert
1829
+ */
1830
+ export type OrganizationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1831
+ /**
1832
+ * Select specific fields to fetch from the Organization
1833
+ */
1834
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1835
+ /**
1836
+ * Omit specific fields from the Organization
1837
+ */
1838
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1839
+ /**
1840
+ * Choose, which related nodes to fetch as well
1841
+ */
1842
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1843
+ /**
1844
+ * The filter to search for the Organization to update in case it exists.
1845
+ */
1846
+ where: Prisma.OrganizationWhereUniqueInput;
1847
+ /**
1848
+ * In case the Organization found by the `where` argument doesn't exist, create a new Organization with this data.
1849
+ */
1850
+ create: Prisma.XOR<Prisma.OrganizationCreateInput, Prisma.OrganizationUncheckedCreateInput>;
1851
+ /**
1852
+ * In case the Organization was found with the provided `where` argument, update it with this data.
1853
+ */
1854
+ update: Prisma.XOR<Prisma.OrganizationUpdateInput, Prisma.OrganizationUncheckedUpdateInput>;
1855
+ };
1856
+ /**
1857
+ * Organization delete
1858
+ */
1859
+ export type OrganizationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1860
+ /**
1861
+ * Select specific fields to fetch from the Organization
1862
+ */
1863
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1864
+ /**
1865
+ * Omit specific fields from the Organization
1866
+ */
1867
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1868
+ /**
1869
+ * Choose, which related nodes to fetch as well
1870
+ */
1871
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1872
+ /**
1873
+ * Filter which Organization to delete.
1874
+ */
1875
+ where: Prisma.OrganizationWhereUniqueInput;
1876
+ };
1877
+ /**
1878
+ * Organization deleteMany
1879
+ */
1880
+ export type OrganizationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1881
+ /**
1882
+ * Filter which Organizations to delete
1883
+ */
1884
+ where?: Prisma.OrganizationWhereInput;
1885
+ /**
1886
+ * Limit how many Organizations to delete.
1887
+ */
1888
+ limit?: number;
1889
+ };
1890
+ /**
1891
+ * Organization.members
1892
+ */
1893
+ export type Organization$membersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1894
+ /**
1895
+ * Select specific fields to fetch from the OrganizationMember
1896
+ */
1897
+ select?: Prisma.OrganizationMemberSelect<ExtArgs> | null;
1898
+ /**
1899
+ * Omit specific fields from the OrganizationMember
1900
+ */
1901
+ omit?: Prisma.OrganizationMemberOmit<ExtArgs> | null;
1902
+ /**
1903
+ * Choose, which related nodes to fetch as well
1904
+ */
1905
+ include?: Prisma.OrganizationMemberInclude<ExtArgs> | null;
1906
+ where?: Prisma.OrganizationMemberWhereInput;
1907
+ orderBy?: Prisma.OrganizationMemberOrderByWithRelationInput | Prisma.OrganizationMemberOrderByWithRelationInput[];
1908
+ cursor?: Prisma.OrganizationMemberWhereUniqueInput;
1909
+ take?: number;
1910
+ skip?: number;
1911
+ distinct?: Prisma.OrganizationMemberScalarFieldEnum | Prisma.OrganizationMemberScalarFieldEnum[];
1912
+ };
1913
+ /**
1914
+ * Organization without action
1915
+ */
1916
+ export type OrganizationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1917
+ /**
1918
+ * Select specific fields to fetch from the Organization
1919
+ */
1920
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1921
+ /**
1922
+ * Omit specific fields from the Organization
1923
+ */
1924
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1925
+ /**
1926
+ * Choose, which related nodes to fetch as well
1927
+ */
1928
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1929
+ };
1930
+ export {};