@valentine-efagene/qshelter-common 2.0.21 → 2.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/client/browser.d.ts +45 -30
- package/dist/generated/client/client.d.ts +45 -30
- package/dist/generated/client/commonInputTypes.d.ts +40 -0
- package/dist/generated/client/internal/class.d.ts +93 -60
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +1058 -720
- package/dist/generated/client/internal/prismaNamespace.js +321 -190
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +352 -215
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +321 -190
- package/dist/generated/client/models/Amenity.d.ts +168 -1
- package/dist/generated/client/models/Contract.d.ts +2390 -309
- package/dist/generated/client/models/ContractDocument.d.ts +299 -12
- package/dist/generated/client/models/ContractEvent.d.ts +1052 -0
- package/dist/generated/client/models/ContractEvent.js +1 -0
- package/dist/generated/client/models/ContractInstallment.d.ts +1656 -0
- package/dist/generated/client/models/ContractInstallment.js +1 -0
- package/dist/generated/client/models/ContractPayment.d.ts +2026 -0
- package/dist/generated/client/models/ContractPayment.js +1 -0
- package/dist/generated/client/models/ContractPhase.d.ts +2467 -0
- package/dist/generated/client/models/ContractPhase.js +1 -0
- package/dist/generated/client/models/ContractPhaseStep.d.ts +1678 -0
- package/dist/generated/client/models/ContractPhaseStep.js +1 -0
- package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +1249 -0
- package/dist/generated/client/models/ContractPhaseStepApproval.js +1 -0
- package/dist/generated/client/models/ContractTransition.d.ts +1118 -0
- package/dist/generated/client/models/ContractTransition.js +1 -0
- package/dist/generated/client/models/DomainEvent.d.ts +1240 -0
- package/dist/generated/client/models/DomainEvent.js +1 -0
- package/dist/generated/client/models/PaymentPlan.d.ts +467 -971
- package/dist/generated/client/models/Property.d.ts +372 -626
- package/dist/generated/client/models/PropertyPaymentMethod.d.ts +1714 -0
- package/dist/generated/client/models/PropertyPaymentMethod.js +1 -0
- package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +1158 -0
- package/dist/generated/client/models/PropertyPaymentMethodLink.js +1 -0
- package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +1656 -0
- package/dist/generated/client/models/PropertyPaymentMethodPhase.js +1 -0
- package/dist/generated/client/models/PropertyUnit.d.ts +1598 -0
- package/dist/generated/client/models/PropertyUnit.js +1 -0
- package/dist/generated/client/models/PropertyVariant.d.ts +2079 -0
- package/dist/generated/client/models/PropertyVariant.js +1 -0
- package/dist/generated/client/models/PropertyVariantAmenity.d.ts +1080 -0
- package/dist/generated/client/models/PropertyVariantAmenity.js +1 -0
- package/dist/generated/client/models/PropertyVariantMedia.d.ts +1189 -0
- package/dist/generated/client/models/PropertyVariantMedia.js +1 -0
- package/dist/generated/client/models/Tenant.d.ts +482 -0
- package/dist/generated/client/models/User.d.ts +684 -427
- package/dist/generated/client/models/index.d.ts +15 -12
- package/dist/generated/client/models/index.js +15 -12
- package/dist/generated/client/models.d.ts +15 -12
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/middleware/error-handler.d.ts +6 -0
- package/dist/src/middleware/error-handler.js +26 -0
- package/dist/src/middleware/index.d.ts +3 -0
- package/dist/src/middleware/index.js +3 -0
- package/dist/src/middleware/request-logger.d.ts +6 -0
- package/dist/src/middleware/request-logger.js +17 -0
- package/dist/src/middleware/tenant.d.ts +61 -0
- package/dist/src/middleware/tenant.js +85 -0
- package/dist/src/prisma/tenant.d.ts +51 -0
- package/dist/src/prisma/tenant.js +211 -0
- package/package.json +16 -2
- package/prisma/migrations/20251230104059_add_property_variants/migration.sql +622 -0
- package/prisma/migrations/20251230113413_add_multitenancy/migration.sql +54 -0
- package/prisma/schema.prisma +561 -267
|
@@ -13,27 +13,39 @@ export type AggregateContractDocument = {
|
|
|
13
13
|
export type ContractDocumentMinAggregateOutputType = {
|
|
14
14
|
id: string | null;
|
|
15
15
|
contractId: string | null;
|
|
16
|
+
phaseId: string | null;
|
|
17
|
+
stepId: string | null;
|
|
16
18
|
name: string | null;
|
|
17
19
|
url: string | null;
|
|
18
20
|
type: string | null;
|
|
21
|
+
uploadedById: string | null;
|
|
22
|
+
status: string | null;
|
|
19
23
|
createdAt: Date | null;
|
|
20
24
|
updatedAt: Date | null;
|
|
21
25
|
};
|
|
22
26
|
export type ContractDocumentMaxAggregateOutputType = {
|
|
23
27
|
id: string | null;
|
|
24
28
|
contractId: string | null;
|
|
29
|
+
phaseId: string | null;
|
|
30
|
+
stepId: string | null;
|
|
25
31
|
name: string | null;
|
|
26
32
|
url: string | null;
|
|
27
33
|
type: string | null;
|
|
34
|
+
uploadedById: string | null;
|
|
35
|
+
status: string | null;
|
|
28
36
|
createdAt: Date | null;
|
|
29
37
|
updatedAt: Date | null;
|
|
30
38
|
};
|
|
31
39
|
export type ContractDocumentCountAggregateOutputType = {
|
|
32
40
|
id: number;
|
|
33
41
|
contractId: number;
|
|
42
|
+
phaseId: number;
|
|
43
|
+
stepId: number;
|
|
34
44
|
name: number;
|
|
35
45
|
url: number;
|
|
36
46
|
type: number;
|
|
47
|
+
uploadedById: number;
|
|
48
|
+
status: number;
|
|
37
49
|
createdAt: number;
|
|
38
50
|
updatedAt: number;
|
|
39
51
|
_all: number;
|
|
@@ -41,27 +53,39 @@ export type ContractDocumentCountAggregateOutputType = {
|
|
|
41
53
|
export type ContractDocumentMinAggregateInputType = {
|
|
42
54
|
id?: true;
|
|
43
55
|
contractId?: true;
|
|
56
|
+
phaseId?: true;
|
|
57
|
+
stepId?: true;
|
|
44
58
|
name?: true;
|
|
45
59
|
url?: true;
|
|
46
60
|
type?: true;
|
|
61
|
+
uploadedById?: true;
|
|
62
|
+
status?: true;
|
|
47
63
|
createdAt?: true;
|
|
48
64
|
updatedAt?: true;
|
|
49
65
|
};
|
|
50
66
|
export type ContractDocumentMaxAggregateInputType = {
|
|
51
67
|
id?: true;
|
|
52
68
|
contractId?: true;
|
|
69
|
+
phaseId?: true;
|
|
70
|
+
stepId?: true;
|
|
53
71
|
name?: true;
|
|
54
72
|
url?: true;
|
|
55
73
|
type?: true;
|
|
74
|
+
uploadedById?: true;
|
|
75
|
+
status?: true;
|
|
56
76
|
createdAt?: true;
|
|
57
77
|
updatedAt?: true;
|
|
58
78
|
};
|
|
59
79
|
export type ContractDocumentCountAggregateInputType = {
|
|
60
80
|
id?: true;
|
|
61
81
|
contractId?: true;
|
|
82
|
+
phaseId?: true;
|
|
83
|
+
stepId?: true;
|
|
62
84
|
name?: true;
|
|
63
85
|
url?: true;
|
|
64
86
|
type?: true;
|
|
87
|
+
uploadedById?: true;
|
|
88
|
+
status?: true;
|
|
65
89
|
createdAt?: true;
|
|
66
90
|
updatedAt?: true;
|
|
67
91
|
_all?: true;
|
|
@@ -131,9 +155,13 @@ export type ContractDocumentGroupByArgs<ExtArgs extends runtime.Types.Extensions
|
|
|
131
155
|
export type ContractDocumentGroupByOutputType = {
|
|
132
156
|
id: string;
|
|
133
157
|
contractId: string;
|
|
158
|
+
phaseId: string | null;
|
|
159
|
+
stepId: string | null;
|
|
134
160
|
name: string;
|
|
135
161
|
url: string;
|
|
136
162
|
type: string;
|
|
163
|
+
uploadedById: string | null;
|
|
164
|
+
status: string;
|
|
137
165
|
createdAt: Date;
|
|
138
166
|
updatedAt: Date;
|
|
139
167
|
_count: ContractDocumentCountAggregateOutputType | null;
|
|
@@ -149,22 +177,32 @@ export type ContractDocumentWhereInput = {
|
|
|
149
177
|
NOT?: Prisma.ContractDocumentWhereInput | Prisma.ContractDocumentWhereInput[];
|
|
150
178
|
id?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
151
179
|
contractId?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
180
|
+
phaseId?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
181
|
+
stepId?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
152
182
|
name?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
153
183
|
url?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
154
184
|
type?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
185
|
+
uploadedById?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
186
|
+
status?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
155
187
|
createdAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
|
|
156
188
|
updatedAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
|
|
157
189
|
contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
|
|
190
|
+
uploadedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
158
191
|
};
|
|
159
192
|
export type ContractDocumentOrderByWithRelationInput = {
|
|
160
193
|
id?: Prisma.SortOrder;
|
|
161
194
|
contractId?: Prisma.SortOrder;
|
|
195
|
+
phaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
196
|
+
stepId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
162
197
|
name?: Prisma.SortOrder;
|
|
163
198
|
url?: Prisma.SortOrder;
|
|
164
199
|
type?: Prisma.SortOrder;
|
|
200
|
+
uploadedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
201
|
+
status?: Prisma.SortOrder;
|
|
165
202
|
createdAt?: Prisma.SortOrder;
|
|
166
203
|
updatedAt?: Prisma.SortOrder;
|
|
167
204
|
contract?: Prisma.ContractOrderByWithRelationInput;
|
|
205
|
+
uploadedBy?: Prisma.UserOrderByWithRelationInput;
|
|
168
206
|
_relevance?: Prisma.ContractDocumentOrderByRelevanceInput;
|
|
169
207
|
};
|
|
170
208
|
export type ContractDocumentWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -173,19 +211,28 @@ export type ContractDocumentWhereUniqueInput = Prisma.AtLeast<{
|
|
|
173
211
|
OR?: Prisma.ContractDocumentWhereInput[];
|
|
174
212
|
NOT?: Prisma.ContractDocumentWhereInput | Prisma.ContractDocumentWhereInput[];
|
|
175
213
|
contractId?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
214
|
+
phaseId?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
215
|
+
stepId?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
176
216
|
name?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
177
217
|
url?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
178
218
|
type?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
219
|
+
uploadedById?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
220
|
+
status?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
179
221
|
createdAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
|
|
180
222
|
updatedAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
|
|
181
223
|
contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
|
|
224
|
+
uploadedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
182
225
|
}, "id">;
|
|
183
226
|
export type ContractDocumentOrderByWithAggregationInput = {
|
|
184
227
|
id?: Prisma.SortOrder;
|
|
185
228
|
contractId?: Prisma.SortOrder;
|
|
229
|
+
phaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
230
|
+
stepId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
186
231
|
name?: Prisma.SortOrder;
|
|
187
232
|
url?: Prisma.SortOrder;
|
|
188
233
|
type?: Prisma.SortOrder;
|
|
234
|
+
uploadedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
235
|
+
status?: Prisma.SortOrder;
|
|
189
236
|
createdAt?: Prisma.SortOrder;
|
|
190
237
|
updatedAt?: Prisma.SortOrder;
|
|
191
238
|
_count?: Prisma.ContractDocumentCountOrderByAggregateInput;
|
|
@@ -198,71 +245,102 @@ export type ContractDocumentScalarWhereWithAggregatesInput = {
|
|
|
198
245
|
NOT?: Prisma.ContractDocumentScalarWhereWithAggregatesInput | Prisma.ContractDocumentScalarWhereWithAggregatesInput[];
|
|
199
246
|
id?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
|
|
200
247
|
contractId?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
|
|
248
|
+
phaseId?: Prisma.StringNullableWithAggregatesFilter<"ContractDocument"> | string | null;
|
|
249
|
+
stepId?: Prisma.StringNullableWithAggregatesFilter<"ContractDocument"> | string | null;
|
|
201
250
|
name?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
|
|
202
251
|
url?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
|
|
203
252
|
type?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
|
|
253
|
+
uploadedById?: Prisma.StringNullableWithAggregatesFilter<"ContractDocument"> | string | null;
|
|
254
|
+
status?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
|
|
204
255
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ContractDocument"> | Date | string;
|
|
205
256
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ContractDocument"> | Date | string;
|
|
206
257
|
};
|
|
207
258
|
export type ContractDocumentCreateInput = {
|
|
208
259
|
id?: string;
|
|
260
|
+
phaseId?: string | null;
|
|
261
|
+
stepId?: string | null;
|
|
209
262
|
name: string;
|
|
210
263
|
url: string;
|
|
211
264
|
type: string;
|
|
265
|
+
status?: string;
|
|
212
266
|
createdAt?: Date | string;
|
|
213
267
|
updatedAt?: Date | string;
|
|
214
268
|
contract: Prisma.ContractCreateNestedOneWithoutDocumentsInput;
|
|
269
|
+
uploadedBy?: Prisma.UserCreateNestedOneWithoutUploadedDocsInput;
|
|
215
270
|
};
|
|
216
271
|
export type ContractDocumentUncheckedCreateInput = {
|
|
217
272
|
id?: string;
|
|
218
273
|
contractId: string;
|
|
274
|
+
phaseId?: string | null;
|
|
275
|
+
stepId?: string | null;
|
|
219
276
|
name: string;
|
|
220
277
|
url: string;
|
|
221
278
|
type: string;
|
|
279
|
+
uploadedById?: string | null;
|
|
280
|
+
status?: string;
|
|
222
281
|
createdAt?: Date | string;
|
|
223
282
|
updatedAt?: Date | string;
|
|
224
283
|
};
|
|
225
284
|
export type ContractDocumentUpdateInput = {
|
|
226
285
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
286
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
287
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
227
288
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
228
289
|
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
229
290
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
291
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
230
292
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
231
293
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
232
294
|
contract?: Prisma.ContractUpdateOneRequiredWithoutDocumentsNestedInput;
|
|
295
|
+
uploadedBy?: Prisma.UserUpdateOneWithoutUploadedDocsNestedInput;
|
|
233
296
|
};
|
|
234
297
|
export type ContractDocumentUncheckedUpdateInput = {
|
|
235
298
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
236
299
|
contractId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
300
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
301
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
237
302
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
238
303
|
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
239
304
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
305
|
+
uploadedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
306
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
240
307
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
241
308
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
242
309
|
};
|
|
243
310
|
export type ContractDocumentCreateManyInput = {
|
|
244
311
|
id?: string;
|
|
245
312
|
contractId: string;
|
|
313
|
+
phaseId?: string | null;
|
|
314
|
+
stepId?: string | null;
|
|
246
315
|
name: string;
|
|
247
316
|
url: string;
|
|
248
317
|
type: string;
|
|
318
|
+
uploadedById?: string | null;
|
|
319
|
+
status?: string;
|
|
249
320
|
createdAt?: Date | string;
|
|
250
321
|
updatedAt?: Date | string;
|
|
251
322
|
};
|
|
252
323
|
export type ContractDocumentUpdateManyMutationInput = {
|
|
253
324
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
325
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
326
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
254
327
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
255
328
|
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
256
329
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
330
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
257
331
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
258
332
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
259
333
|
};
|
|
260
334
|
export type ContractDocumentUncheckedUpdateManyInput = {
|
|
261
335
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
262
336
|
contractId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
337
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
338
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
263
339
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
264
340
|
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
265
341
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
342
|
+
uploadedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
343
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
266
344
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
267
345
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
268
346
|
};
|
|
@@ -282,30 +360,80 @@ export type ContractDocumentOrderByRelevanceInput = {
|
|
|
282
360
|
export type ContractDocumentCountOrderByAggregateInput = {
|
|
283
361
|
id?: Prisma.SortOrder;
|
|
284
362
|
contractId?: Prisma.SortOrder;
|
|
363
|
+
phaseId?: Prisma.SortOrder;
|
|
364
|
+
stepId?: Prisma.SortOrder;
|
|
285
365
|
name?: Prisma.SortOrder;
|
|
286
366
|
url?: Prisma.SortOrder;
|
|
287
367
|
type?: Prisma.SortOrder;
|
|
368
|
+
uploadedById?: Prisma.SortOrder;
|
|
369
|
+
status?: Prisma.SortOrder;
|
|
288
370
|
createdAt?: Prisma.SortOrder;
|
|
289
371
|
updatedAt?: Prisma.SortOrder;
|
|
290
372
|
};
|
|
291
373
|
export type ContractDocumentMaxOrderByAggregateInput = {
|
|
292
374
|
id?: Prisma.SortOrder;
|
|
293
375
|
contractId?: Prisma.SortOrder;
|
|
376
|
+
phaseId?: Prisma.SortOrder;
|
|
377
|
+
stepId?: Prisma.SortOrder;
|
|
294
378
|
name?: Prisma.SortOrder;
|
|
295
379
|
url?: Prisma.SortOrder;
|
|
296
380
|
type?: Prisma.SortOrder;
|
|
381
|
+
uploadedById?: Prisma.SortOrder;
|
|
382
|
+
status?: Prisma.SortOrder;
|
|
297
383
|
createdAt?: Prisma.SortOrder;
|
|
298
384
|
updatedAt?: Prisma.SortOrder;
|
|
299
385
|
};
|
|
300
386
|
export type ContractDocumentMinOrderByAggregateInput = {
|
|
301
387
|
id?: Prisma.SortOrder;
|
|
302
388
|
contractId?: Prisma.SortOrder;
|
|
389
|
+
phaseId?: Prisma.SortOrder;
|
|
390
|
+
stepId?: Prisma.SortOrder;
|
|
303
391
|
name?: Prisma.SortOrder;
|
|
304
392
|
url?: Prisma.SortOrder;
|
|
305
393
|
type?: Prisma.SortOrder;
|
|
394
|
+
uploadedById?: Prisma.SortOrder;
|
|
395
|
+
status?: Prisma.SortOrder;
|
|
306
396
|
createdAt?: Prisma.SortOrder;
|
|
307
397
|
updatedAt?: Prisma.SortOrder;
|
|
308
398
|
};
|
|
399
|
+
export type ContractDocumentCreateNestedManyWithoutUploadedByInput = {
|
|
400
|
+
create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutUploadedByInput, Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput> | Prisma.ContractDocumentCreateWithoutUploadedByInput[] | Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput[];
|
|
401
|
+
connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutUploadedByInput | Prisma.ContractDocumentCreateOrConnectWithoutUploadedByInput[];
|
|
402
|
+
createMany?: Prisma.ContractDocumentCreateManyUploadedByInputEnvelope;
|
|
403
|
+
connect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
404
|
+
};
|
|
405
|
+
export type ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput = {
|
|
406
|
+
create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutUploadedByInput, Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput> | Prisma.ContractDocumentCreateWithoutUploadedByInput[] | Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput[];
|
|
407
|
+
connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutUploadedByInput | Prisma.ContractDocumentCreateOrConnectWithoutUploadedByInput[];
|
|
408
|
+
createMany?: Prisma.ContractDocumentCreateManyUploadedByInputEnvelope;
|
|
409
|
+
connect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
410
|
+
};
|
|
411
|
+
export type ContractDocumentUpdateManyWithoutUploadedByNestedInput = {
|
|
412
|
+
create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutUploadedByInput, Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput> | Prisma.ContractDocumentCreateWithoutUploadedByInput[] | Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput[];
|
|
413
|
+
connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutUploadedByInput | Prisma.ContractDocumentCreateOrConnectWithoutUploadedByInput[];
|
|
414
|
+
upsert?: Prisma.ContractDocumentUpsertWithWhereUniqueWithoutUploadedByInput | Prisma.ContractDocumentUpsertWithWhereUniqueWithoutUploadedByInput[];
|
|
415
|
+
createMany?: Prisma.ContractDocumentCreateManyUploadedByInputEnvelope;
|
|
416
|
+
set?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
417
|
+
disconnect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
418
|
+
delete?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
419
|
+
connect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
420
|
+
update?: Prisma.ContractDocumentUpdateWithWhereUniqueWithoutUploadedByInput | Prisma.ContractDocumentUpdateWithWhereUniqueWithoutUploadedByInput[];
|
|
421
|
+
updateMany?: Prisma.ContractDocumentUpdateManyWithWhereWithoutUploadedByInput | Prisma.ContractDocumentUpdateManyWithWhereWithoutUploadedByInput[];
|
|
422
|
+
deleteMany?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
|
|
423
|
+
};
|
|
424
|
+
export type ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput = {
|
|
425
|
+
create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutUploadedByInput, Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput> | Prisma.ContractDocumentCreateWithoutUploadedByInput[] | Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput[];
|
|
426
|
+
connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutUploadedByInput | Prisma.ContractDocumentCreateOrConnectWithoutUploadedByInput[];
|
|
427
|
+
upsert?: Prisma.ContractDocumentUpsertWithWhereUniqueWithoutUploadedByInput | Prisma.ContractDocumentUpsertWithWhereUniqueWithoutUploadedByInput[];
|
|
428
|
+
createMany?: Prisma.ContractDocumentCreateManyUploadedByInputEnvelope;
|
|
429
|
+
set?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
430
|
+
disconnect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
431
|
+
delete?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
432
|
+
connect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
|
|
433
|
+
update?: Prisma.ContractDocumentUpdateWithWhereUniqueWithoutUploadedByInput | Prisma.ContractDocumentUpdateWithWhereUniqueWithoutUploadedByInput[];
|
|
434
|
+
updateMany?: Prisma.ContractDocumentUpdateManyWithWhereWithoutUploadedByInput | Prisma.ContractDocumentUpdateManyWithWhereWithoutUploadedByInput[];
|
|
435
|
+
deleteMany?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
|
|
436
|
+
};
|
|
309
437
|
export type ContractDocumentCreateNestedManyWithoutContractInput = {
|
|
310
438
|
create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutContractInput, Prisma.ContractDocumentUncheckedCreateWithoutContractInput> | Prisma.ContractDocumentCreateWithoutContractInput[] | Prisma.ContractDocumentUncheckedCreateWithoutContractInput[];
|
|
311
439
|
connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutContractInput | Prisma.ContractDocumentCreateOrConnectWithoutContractInput[];
|
|
@@ -344,19 +472,88 @@ export type ContractDocumentUncheckedUpdateManyWithoutContractNestedInput = {
|
|
|
344
472
|
updateMany?: Prisma.ContractDocumentUpdateManyWithWhereWithoutContractInput | Prisma.ContractDocumentUpdateManyWithWhereWithoutContractInput[];
|
|
345
473
|
deleteMany?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
|
|
346
474
|
};
|
|
475
|
+
export type ContractDocumentCreateWithoutUploadedByInput = {
|
|
476
|
+
id?: string;
|
|
477
|
+
phaseId?: string | null;
|
|
478
|
+
stepId?: string | null;
|
|
479
|
+
name: string;
|
|
480
|
+
url: string;
|
|
481
|
+
type: string;
|
|
482
|
+
status?: string;
|
|
483
|
+
createdAt?: Date | string;
|
|
484
|
+
updatedAt?: Date | string;
|
|
485
|
+
contract: Prisma.ContractCreateNestedOneWithoutDocumentsInput;
|
|
486
|
+
};
|
|
487
|
+
export type ContractDocumentUncheckedCreateWithoutUploadedByInput = {
|
|
488
|
+
id?: string;
|
|
489
|
+
contractId: string;
|
|
490
|
+
phaseId?: string | null;
|
|
491
|
+
stepId?: string | null;
|
|
492
|
+
name: string;
|
|
493
|
+
url: string;
|
|
494
|
+
type: string;
|
|
495
|
+
status?: string;
|
|
496
|
+
createdAt?: Date | string;
|
|
497
|
+
updatedAt?: Date | string;
|
|
498
|
+
};
|
|
499
|
+
export type ContractDocumentCreateOrConnectWithoutUploadedByInput = {
|
|
500
|
+
where: Prisma.ContractDocumentWhereUniqueInput;
|
|
501
|
+
create: Prisma.XOR<Prisma.ContractDocumentCreateWithoutUploadedByInput, Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput>;
|
|
502
|
+
};
|
|
503
|
+
export type ContractDocumentCreateManyUploadedByInputEnvelope = {
|
|
504
|
+
data: Prisma.ContractDocumentCreateManyUploadedByInput | Prisma.ContractDocumentCreateManyUploadedByInput[];
|
|
505
|
+
skipDuplicates?: boolean;
|
|
506
|
+
};
|
|
507
|
+
export type ContractDocumentUpsertWithWhereUniqueWithoutUploadedByInput = {
|
|
508
|
+
where: Prisma.ContractDocumentWhereUniqueInput;
|
|
509
|
+
update: Prisma.XOR<Prisma.ContractDocumentUpdateWithoutUploadedByInput, Prisma.ContractDocumentUncheckedUpdateWithoutUploadedByInput>;
|
|
510
|
+
create: Prisma.XOR<Prisma.ContractDocumentCreateWithoutUploadedByInput, Prisma.ContractDocumentUncheckedCreateWithoutUploadedByInput>;
|
|
511
|
+
};
|
|
512
|
+
export type ContractDocumentUpdateWithWhereUniqueWithoutUploadedByInput = {
|
|
513
|
+
where: Prisma.ContractDocumentWhereUniqueInput;
|
|
514
|
+
data: Prisma.XOR<Prisma.ContractDocumentUpdateWithoutUploadedByInput, Prisma.ContractDocumentUncheckedUpdateWithoutUploadedByInput>;
|
|
515
|
+
};
|
|
516
|
+
export type ContractDocumentUpdateManyWithWhereWithoutUploadedByInput = {
|
|
517
|
+
where: Prisma.ContractDocumentScalarWhereInput;
|
|
518
|
+
data: Prisma.XOR<Prisma.ContractDocumentUpdateManyMutationInput, Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByInput>;
|
|
519
|
+
};
|
|
520
|
+
export type ContractDocumentScalarWhereInput = {
|
|
521
|
+
AND?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
|
|
522
|
+
OR?: Prisma.ContractDocumentScalarWhereInput[];
|
|
523
|
+
NOT?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
|
|
524
|
+
id?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
525
|
+
contractId?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
526
|
+
phaseId?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
527
|
+
stepId?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
528
|
+
name?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
529
|
+
url?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
530
|
+
type?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
531
|
+
uploadedById?: Prisma.StringNullableFilter<"ContractDocument"> | string | null;
|
|
532
|
+
status?: Prisma.StringFilter<"ContractDocument"> | string;
|
|
533
|
+
createdAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
|
|
534
|
+
updatedAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
|
|
535
|
+
};
|
|
347
536
|
export type ContractDocumentCreateWithoutContractInput = {
|
|
348
537
|
id?: string;
|
|
538
|
+
phaseId?: string | null;
|
|
539
|
+
stepId?: string | null;
|
|
349
540
|
name: string;
|
|
350
541
|
url: string;
|
|
351
542
|
type: string;
|
|
543
|
+
status?: string;
|
|
352
544
|
createdAt?: Date | string;
|
|
353
545
|
updatedAt?: Date | string;
|
|
546
|
+
uploadedBy?: Prisma.UserCreateNestedOneWithoutUploadedDocsInput;
|
|
354
547
|
};
|
|
355
548
|
export type ContractDocumentUncheckedCreateWithoutContractInput = {
|
|
356
549
|
id?: string;
|
|
550
|
+
phaseId?: string | null;
|
|
551
|
+
stepId?: string | null;
|
|
357
552
|
name: string;
|
|
358
553
|
url: string;
|
|
359
554
|
type: string;
|
|
555
|
+
uploadedById?: string | null;
|
|
556
|
+
status?: string;
|
|
360
557
|
createdAt?: Date | string;
|
|
361
558
|
updatedAt?: Date | string;
|
|
362
559
|
};
|
|
@@ -381,84 +578,151 @@ export type ContractDocumentUpdateManyWithWhereWithoutContractInput = {
|
|
|
381
578
|
where: Prisma.ContractDocumentScalarWhereInput;
|
|
382
579
|
data: Prisma.XOR<Prisma.ContractDocumentUpdateManyMutationInput, Prisma.ContractDocumentUncheckedUpdateManyWithoutContractInput>;
|
|
383
580
|
};
|
|
384
|
-
export type
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
createdAt?:
|
|
394
|
-
updatedAt?:
|
|
581
|
+
export type ContractDocumentCreateManyUploadedByInput = {
|
|
582
|
+
id?: string;
|
|
583
|
+
contractId: string;
|
|
584
|
+
phaseId?: string | null;
|
|
585
|
+
stepId?: string | null;
|
|
586
|
+
name: string;
|
|
587
|
+
url: string;
|
|
588
|
+
type: string;
|
|
589
|
+
status?: string;
|
|
590
|
+
createdAt?: Date | string;
|
|
591
|
+
updatedAt?: Date | string;
|
|
592
|
+
};
|
|
593
|
+
export type ContractDocumentUpdateWithoutUploadedByInput = {
|
|
594
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
595
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
596
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
597
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
598
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
599
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
600
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
601
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
602
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
603
|
+
contract?: Prisma.ContractUpdateOneRequiredWithoutDocumentsNestedInput;
|
|
604
|
+
};
|
|
605
|
+
export type ContractDocumentUncheckedUpdateWithoutUploadedByInput = {
|
|
606
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
607
|
+
contractId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
608
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
609
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
610
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
611
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
612
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
613
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
614
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
615
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
616
|
+
};
|
|
617
|
+
export type ContractDocumentUncheckedUpdateManyWithoutUploadedByInput = {
|
|
618
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
619
|
+
contractId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
620
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
621
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
622
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
623
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
624
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
625
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
626
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
627
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
395
628
|
};
|
|
396
629
|
export type ContractDocumentCreateManyContractInput = {
|
|
397
630
|
id?: string;
|
|
631
|
+
phaseId?: string | null;
|
|
632
|
+
stepId?: string | null;
|
|
398
633
|
name: string;
|
|
399
634
|
url: string;
|
|
400
635
|
type: string;
|
|
636
|
+
uploadedById?: string | null;
|
|
637
|
+
status?: string;
|
|
401
638
|
createdAt?: Date | string;
|
|
402
639
|
updatedAt?: Date | string;
|
|
403
640
|
};
|
|
404
641
|
export type ContractDocumentUpdateWithoutContractInput = {
|
|
405
642
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
643
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
644
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
406
645
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
407
646
|
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
408
647
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
648
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
409
649
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
410
650
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
651
|
+
uploadedBy?: Prisma.UserUpdateOneWithoutUploadedDocsNestedInput;
|
|
411
652
|
};
|
|
412
653
|
export type ContractDocumentUncheckedUpdateWithoutContractInput = {
|
|
413
654
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
655
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
656
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
414
657
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
415
658
|
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
416
659
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
660
|
+
uploadedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
661
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
417
662
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
418
663
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
419
664
|
};
|
|
420
665
|
export type ContractDocumentUncheckedUpdateManyWithoutContractInput = {
|
|
421
666
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
667
|
+
phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
668
|
+
stepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
422
669
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
423
670
|
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
424
671
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
672
|
+
uploadedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
673
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
425
674
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
426
675
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
427
676
|
};
|
|
428
677
|
export type ContractDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
429
678
|
id?: boolean;
|
|
430
679
|
contractId?: boolean;
|
|
680
|
+
phaseId?: boolean;
|
|
681
|
+
stepId?: boolean;
|
|
431
682
|
name?: boolean;
|
|
432
683
|
url?: boolean;
|
|
433
684
|
type?: boolean;
|
|
685
|
+
uploadedById?: boolean;
|
|
686
|
+
status?: boolean;
|
|
434
687
|
createdAt?: boolean;
|
|
435
688
|
updatedAt?: boolean;
|
|
436
689
|
contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
|
|
690
|
+
uploadedBy?: boolean | Prisma.ContractDocument$uploadedByArgs<ExtArgs>;
|
|
437
691
|
}, ExtArgs["result"]["contractDocument"]>;
|
|
438
692
|
export type ContractDocumentSelectScalar = {
|
|
439
693
|
id?: boolean;
|
|
440
694
|
contractId?: boolean;
|
|
695
|
+
phaseId?: boolean;
|
|
696
|
+
stepId?: boolean;
|
|
441
697
|
name?: boolean;
|
|
442
698
|
url?: boolean;
|
|
443
699
|
type?: boolean;
|
|
700
|
+
uploadedById?: boolean;
|
|
701
|
+
status?: boolean;
|
|
444
702
|
createdAt?: boolean;
|
|
445
703
|
updatedAt?: boolean;
|
|
446
704
|
};
|
|
447
|
-
export type ContractDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "contractId" | "name" | "url" | "type" | "createdAt" | "updatedAt", ExtArgs["result"]["contractDocument"]>;
|
|
705
|
+
export type ContractDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "contractId" | "phaseId" | "stepId" | "name" | "url" | "type" | "uploadedById" | "status" | "createdAt" | "updatedAt", ExtArgs["result"]["contractDocument"]>;
|
|
448
706
|
export type ContractDocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
449
707
|
contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
|
|
708
|
+
uploadedBy?: boolean | Prisma.ContractDocument$uploadedByArgs<ExtArgs>;
|
|
450
709
|
};
|
|
451
710
|
export type $ContractDocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
452
711
|
name: "ContractDocument";
|
|
453
712
|
objects: {
|
|
454
713
|
contract: Prisma.$ContractPayload<ExtArgs>;
|
|
714
|
+
uploadedBy: Prisma.$UserPayload<ExtArgs> | null;
|
|
455
715
|
};
|
|
456
716
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
457
717
|
id: string;
|
|
458
718
|
contractId: string;
|
|
719
|
+
phaseId: string | null;
|
|
720
|
+
stepId: string | null;
|
|
459
721
|
name: string;
|
|
460
722
|
url: string;
|
|
461
723
|
type: string;
|
|
724
|
+
uploadedById: string | null;
|
|
725
|
+
status: string;
|
|
462
726
|
createdAt: Date;
|
|
463
727
|
updatedAt: Date;
|
|
464
728
|
}, ExtArgs["result"]["contractDocument"]>;
|
|
@@ -739,6 +1003,7 @@ export interface ContractDocumentDelegate<ExtArgs extends runtime.Types.Extensio
|
|
|
739
1003
|
export interface Prisma__ContractDocumentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
740
1004
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
741
1005
|
contract<T extends Prisma.ContractDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractDefaultArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1006
|
+
uploadedBy<T extends Prisma.ContractDocument$uploadedByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContractDocument$uploadedByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
742
1007
|
/**
|
|
743
1008
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
744
1009
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -766,9 +1031,13 @@ export interface Prisma__ContractDocumentClient<T, Null = never, ExtArgs extends
|
|
|
766
1031
|
export interface ContractDocumentFieldRefs {
|
|
767
1032
|
readonly id: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
768
1033
|
readonly contractId: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
1034
|
+
readonly phaseId: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
1035
|
+
readonly stepId: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
769
1036
|
readonly name: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
770
1037
|
readonly url: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
771
1038
|
readonly type: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
1039
|
+
readonly uploadedById: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
1040
|
+
readonly status: Prisma.FieldRef<"ContractDocument", 'String'>;
|
|
772
1041
|
readonly createdAt: Prisma.FieldRef<"ContractDocument", 'DateTime'>;
|
|
773
1042
|
readonly updatedAt: Prisma.FieldRef<"ContractDocument", 'DateTime'>;
|
|
774
1043
|
}
|
|
@@ -1098,6 +1367,24 @@ export type ContractDocumentDeleteManyArgs<ExtArgs extends runtime.Types.Extensi
|
|
|
1098
1367
|
*/
|
|
1099
1368
|
limit?: number;
|
|
1100
1369
|
};
|
|
1370
|
+
/**
|
|
1371
|
+
* ContractDocument.uploadedBy
|
|
1372
|
+
*/
|
|
1373
|
+
export type ContractDocument$uploadedByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1374
|
+
/**
|
|
1375
|
+
* Select specific fields to fetch from the User
|
|
1376
|
+
*/
|
|
1377
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1378
|
+
/**
|
|
1379
|
+
* Omit specific fields from the User
|
|
1380
|
+
*/
|
|
1381
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1382
|
+
/**
|
|
1383
|
+
* Choose, which related nodes to fetch as well
|
|
1384
|
+
*/
|
|
1385
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1386
|
+
where?: Prisma.UserWhereInput;
|
|
1387
|
+
};
|
|
1101
1388
|
/**
|
|
1102
1389
|
* ContractDocument without action
|
|
1103
1390
|
*/
|