@valentine-efagene/qshelter-common 2.0.52 → 2.0.53

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 (118) hide show
  1. package/dist/src/middleware/tenant.js +3 -3
  2. package/package.json +1 -1
  3. package/dist/generated/client/models/ContractPhaseStep.d.ts +0 -1819
  4. package/dist/generated/client/models/ContractPhaseStep.js +0 -1
  5. package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +0 -1253
  6. package/dist/generated/client/models/ContractPhaseStepApproval.js +0 -1
  7. package/dist/generated/client/models/ContractPhaseStepDocument.d.ts +0 -1052
  8. package/dist/generated/client/models/ContractPhaseStepDocument.js +0 -1
  9. package/dist/generated/client/models/Mortgage.d.ts +0 -2777
  10. package/dist/generated/client/models/Mortgage.js +0 -1
  11. package/dist/generated/client/models/MortgageDocument.d.ts +0 -1118
  12. package/dist/generated/client/models/MortgageDocument.js +0 -1
  13. package/dist/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
  14. package/dist/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
  15. package/dist/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
  16. package/dist/generated/client/models/MortgageDownpaymentPayment.js +0 -1
  17. package/dist/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
  18. package/dist/generated/client/models/MortgageDownpaymentPlan.js +0 -1
  19. package/dist/generated/client/models/MortgageStep.d.ts +0 -1222
  20. package/dist/generated/client/models/MortgageStep.js +0 -1
  21. package/dist/generated/client/models/MortgageTransition.d.ts +0 -1118
  22. package/dist/generated/client/models/MortgageTransition.js +0 -1
  23. package/dist/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
  24. package/dist/generated/client/models/MortgageTransitionEvent.js +0 -1
  25. package/dist/generated/client/models/MortgageType.d.ts +0 -1052
  26. package/dist/generated/client/models/MortgageType.js +0 -1
  27. package/dist/generated/client/models/Payment.d.ts +0 -2026
  28. package/dist/generated/client/models/Payment.js +0 -1
  29. package/dist/generated/client/models/PaymentInstallment.d.ts +0 -1539
  30. package/dist/generated/client/models/PaymentInstallment.js +0 -1
  31. package/dist/generated/client/models/PaymentSchedule.d.ts +0 -1450
  32. package/dist/generated/client/models/PaymentSchedule.js +0 -1
  33. package/dist/index.d.ts +0 -6
  34. package/dist/index.js +0 -6
  35. package/dist/src/generated/client/client.d.ts +0 -201
  36. package/dist/src/generated/client/client.js +0 -32
  37. package/dist/src/generated/client/commonInputTypes.d.ts +0 -403
  38. package/dist/src/generated/client/commonInputTypes.js +0 -10
  39. package/dist/src/generated/client/enums.d.ts +0 -1
  40. package/dist/src/generated/client/enums.js +0 -10
  41. package/dist/src/generated/client/internal/class.d.ts +0 -511
  42. package/dist/src/generated/client/internal/class.js +0 -40
  43. package/dist/src/generated/client/internal/prismaNamespace.d.ts +0 -3571
  44. package/dist/src/generated/client/internal/prismaNamespace.js +0 -739
  45. package/dist/src/generated/client/models/Amenity.d.ts +0 -1020
  46. package/dist/src/generated/client/models/Amenity.js +0 -1
  47. package/dist/src/generated/client/models/Contract.d.ts +0 -2099
  48. package/dist/src/generated/client/models/Contract.js +0 -1
  49. package/dist/src/generated/client/models/ContractDocument.d.ts +0 -1118
  50. package/dist/src/generated/client/models/ContractDocument.js +0 -1
  51. package/dist/src/generated/client/models/DeviceEndpoint.d.ts +0 -1118
  52. package/dist/src/generated/client/models/DeviceEndpoint.js +0 -1
  53. package/dist/src/generated/client/models/EmailPreference.d.ts +0 -1151
  54. package/dist/src/generated/client/models/EmailPreference.js +0 -1
  55. package/dist/src/generated/client/models/Mortgage.d.ts +0 -2777
  56. package/dist/src/generated/client/models/Mortgage.js +0 -1
  57. package/dist/src/generated/client/models/MortgageDocument.d.ts +0 -1118
  58. package/dist/src/generated/client/models/MortgageDocument.js +0 -1
  59. package/dist/src/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
  60. package/dist/src/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
  61. package/dist/src/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
  62. package/dist/src/generated/client/models/MortgageDownpaymentPayment.js +0 -1
  63. package/dist/src/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
  64. package/dist/src/generated/client/models/MortgageDownpaymentPlan.js +0 -1
  65. package/dist/src/generated/client/models/MortgageStep.d.ts +0 -1222
  66. package/dist/src/generated/client/models/MortgageStep.js +0 -1
  67. package/dist/src/generated/client/models/MortgageTransition.d.ts +0 -1118
  68. package/dist/src/generated/client/models/MortgageTransition.js +0 -1
  69. package/dist/src/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
  70. package/dist/src/generated/client/models/MortgageTransitionEvent.js +0 -1
  71. package/dist/src/generated/client/models/MortgageType.d.ts +0 -1052
  72. package/dist/src/generated/client/models/MortgageType.js +0 -1
  73. package/dist/src/generated/client/models/OAuthState.d.ts +0 -864
  74. package/dist/src/generated/client/models/OAuthState.js +0 -1
  75. package/dist/src/generated/client/models/PasswordReset.d.ts +0 -1085
  76. package/dist/src/generated/client/models/PasswordReset.js +0 -1
  77. package/dist/src/generated/client/models/Payment.d.ts +0 -2026
  78. package/dist/src/generated/client/models/Payment.js +0 -1
  79. package/dist/src/generated/client/models/PaymentInstallment.d.ts +0 -1539
  80. package/dist/src/generated/client/models/PaymentInstallment.js +0 -1
  81. package/dist/src/generated/client/models/PaymentPlan.d.ts +0 -2148
  82. package/dist/src/generated/client/models/PaymentPlan.js +0 -1
  83. package/dist/src/generated/client/models/PaymentSchedule.d.ts +0 -1450
  84. package/dist/src/generated/client/models/PaymentSchedule.js +0 -1
  85. package/dist/src/generated/client/models/Permission.d.ts +0 -1115
  86. package/dist/src/generated/client/models/Permission.js +0 -1
  87. package/dist/src/generated/client/models/Property.d.ts +0 -3254
  88. package/dist/src/generated/client/models/Property.js +0 -1
  89. package/dist/src/generated/client/models/PropertyAmenity.d.ts +0 -1080
  90. package/dist/src/generated/client/models/PropertyAmenity.js +0 -1
  91. package/dist/src/generated/client/models/PropertyDocument.d.ts +0 -1118
  92. package/dist/src/generated/client/models/PropertyDocument.js +0 -1
  93. package/dist/src/generated/client/models/PropertyMedia.d.ts +0 -1331
  94. package/dist/src/generated/client/models/PropertyMedia.js +0 -1
  95. package/dist/src/generated/client/models/RefreshToken.d.ts +0 -1085
  96. package/dist/src/generated/client/models/RefreshToken.js +0 -1
  97. package/dist/src/generated/client/models/Role.d.ts +0 -1153
  98. package/dist/src/generated/client/models/Role.js +0 -1
  99. package/dist/src/generated/client/models/RolePermission.d.ts +0 -1080
  100. package/dist/src/generated/client/models/RolePermission.js +0 -1
  101. package/dist/src/generated/client/models/Settings.d.ts +0 -916
  102. package/dist/src/generated/client/models/Settings.js +0 -1
  103. package/dist/src/generated/client/models/Social.d.ts +0 -1090
  104. package/dist/src/generated/client/models/Social.js +0 -1
  105. package/dist/src/generated/client/models/Tenant.d.ts +0 -1082
  106. package/dist/src/generated/client/models/Tenant.js +0 -1
  107. package/dist/src/generated/client/models/Transaction.d.ts +0 -1222
  108. package/dist/src/generated/client/models/Transaction.js +0 -1
  109. package/dist/src/generated/client/models/User.d.ts +0 -4239
  110. package/dist/src/generated/client/models/User.js +0 -1
  111. package/dist/src/generated/client/models/UserRole.d.ts +0 -1080
  112. package/dist/src/generated/client/models/UserRole.js +0 -1
  113. package/dist/src/generated/client/models/UserSuspension.d.ts +0 -1085
  114. package/dist/src/generated/client/models/UserSuspension.js +0 -1
  115. package/dist/src/generated/client/models/Wallet.d.ts +0 -1191
  116. package/dist/src/generated/client/models/Wallet.js +0 -1
  117. package/dist/src/generated/client/models.d.ts +0 -37
  118. package/dist/src/generated/client/models.js +0 -1
@@ -1,1118 +0,0 @@
1
- import type * as runtime from "@prisma/client/runtime/client";
2
- import type * as Prisma from "../internal/prismaNamespace.js";
3
- /**
4
- * Model ContractDocument
5
- *
6
- */
7
- export type ContractDocumentModel = runtime.Types.Result.DefaultSelection<Prisma.$ContractDocumentPayload>;
8
- export type AggregateContractDocument = {
9
- _count: ContractDocumentCountAggregateOutputType | null;
10
- _min: ContractDocumentMinAggregateOutputType | null;
11
- _max: ContractDocumentMaxAggregateOutputType | null;
12
- };
13
- export type ContractDocumentMinAggregateOutputType = {
14
- id: string | null;
15
- contractId: string | null;
16
- name: string | null;
17
- url: string | null;
18
- type: string | null;
19
- createdAt: Date | null;
20
- updatedAt: Date | null;
21
- };
22
- export type ContractDocumentMaxAggregateOutputType = {
23
- id: string | null;
24
- contractId: string | null;
25
- name: string | null;
26
- url: string | null;
27
- type: string | null;
28
- createdAt: Date | null;
29
- updatedAt: Date | null;
30
- };
31
- export type ContractDocumentCountAggregateOutputType = {
32
- id: number;
33
- contractId: number;
34
- name: number;
35
- url: number;
36
- type: number;
37
- createdAt: number;
38
- updatedAt: number;
39
- _all: number;
40
- };
41
- export type ContractDocumentMinAggregateInputType = {
42
- id?: true;
43
- contractId?: true;
44
- name?: true;
45
- url?: true;
46
- type?: true;
47
- createdAt?: true;
48
- updatedAt?: true;
49
- };
50
- export type ContractDocumentMaxAggregateInputType = {
51
- id?: true;
52
- contractId?: true;
53
- name?: true;
54
- url?: true;
55
- type?: true;
56
- createdAt?: true;
57
- updatedAt?: true;
58
- };
59
- export type ContractDocumentCountAggregateInputType = {
60
- id?: true;
61
- contractId?: true;
62
- name?: true;
63
- url?: true;
64
- type?: true;
65
- createdAt?: true;
66
- updatedAt?: true;
67
- _all?: true;
68
- };
69
- export type ContractDocumentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
70
- /**
71
- * Filter which ContractDocument to aggregate.
72
- */
73
- where?: Prisma.ContractDocumentWhereInput;
74
- /**
75
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
76
- *
77
- * Determine the order of ContractDocuments to fetch.
78
- */
79
- orderBy?: Prisma.ContractDocumentOrderByWithRelationInput | Prisma.ContractDocumentOrderByWithRelationInput[];
80
- /**
81
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
82
- *
83
- * Sets the start position
84
- */
85
- cursor?: Prisma.ContractDocumentWhereUniqueInput;
86
- /**
87
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
- *
89
- * Take `±n` ContractDocuments from the position of the cursor.
90
- */
91
- take?: number;
92
- /**
93
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
- *
95
- * Skip the first `n` ContractDocuments.
96
- */
97
- skip?: number;
98
- /**
99
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
- *
101
- * Count returned ContractDocuments
102
- **/
103
- _count?: true | ContractDocumentCountAggregateInputType;
104
- /**
105
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
- *
107
- * Select which fields to find the minimum value
108
- **/
109
- _min?: ContractDocumentMinAggregateInputType;
110
- /**
111
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
- *
113
- * Select which fields to find the maximum value
114
- **/
115
- _max?: ContractDocumentMaxAggregateInputType;
116
- };
117
- export type GetContractDocumentAggregateType<T extends ContractDocumentAggregateArgs> = {
118
- [P in keyof T & keyof AggregateContractDocument]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateContractDocument[P]> : Prisma.GetScalarType<T[P], AggregateContractDocument[P]>;
119
- };
120
- export type ContractDocumentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
- where?: Prisma.ContractDocumentWhereInput;
122
- orderBy?: Prisma.ContractDocumentOrderByWithAggregationInput | Prisma.ContractDocumentOrderByWithAggregationInput[];
123
- by: Prisma.ContractDocumentScalarFieldEnum[] | Prisma.ContractDocumentScalarFieldEnum;
124
- having?: Prisma.ContractDocumentScalarWhereWithAggregatesInput;
125
- take?: number;
126
- skip?: number;
127
- _count?: ContractDocumentCountAggregateInputType | true;
128
- _min?: ContractDocumentMinAggregateInputType;
129
- _max?: ContractDocumentMaxAggregateInputType;
130
- };
131
- export type ContractDocumentGroupByOutputType = {
132
- id: string;
133
- contractId: string;
134
- name: string;
135
- url: string;
136
- type: string;
137
- createdAt: Date;
138
- updatedAt: Date;
139
- _count: ContractDocumentCountAggregateOutputType | null;
140
- _min: ContractDocumentMinAggregateOutputType | null;
141
- _max: ContractDocumentMaxAggregateOutputType | null;
142
- };
143
- type GetContractDocumentGroupByPayload<T extends ContractDocumentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ContractDocumentGroupByOutputType, T['by']> & {
144
- [P in ((keyof T) & (keyof ContractDocumentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ContractDocumentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ContractDocumentGroupByOutputType[P]>;
145
- }>>;
146
- export type ContractDocumentWhereInput = {
147
- AND?: Prisma.ContractDocumentWhereInput | Prisma.ContractDocumentWhereInput[];
148
- OR?: Prisma.ContractDocumentWhereInput[];
149
- NOT?: Prisma.ContractDocumentWhereInput | Prisma.ContractDocumentWhereInput[];
150
- id?: Prisma.StringFilter<"ContractDocument"> | string;
151
- contractId?: Prisma.StringFilter<"ContractDocument"> | string;
152
- name?: Prisma.StringFilter<"ContractDocument"> | string;
153
- url?: Prisma.StringFilter<"ContractDocument"> | string;
154
- type?: Prisma.StringFilter<"ContractDocument"> | string;
155
- createdAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
156
- updatedAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
157
- contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
158
- };
159
- export type ContractDocumentOrderByWithRelationInput = {
160
- id?: Prisma.SortOrder;
161
- contractId?: Prisma.SortOrder;
162
- name?: Prisma.SortOrder;
163
- url?: Prisma.SortOrder;
164
- type?: Prisma.SortOrder;
165
- createdAt?: Prisma.SortOrder;
166
- updatedAt?: Prisma.SortOrder;
167
- contract?: Prisma.ContractOrderByWithRelationInput;
168
- _relevance?: Prisma.ContractDocumentOrderByRelevanceInput;
169
- };
170
- export type ContractDocumentWhereUniqueInput = Prisma.AtLeast<{
171
- id?: string;
172
- AND?: Prisma.ContractDocumentWhereInput | Prisma.ContractDocumentWhereInput[];
173
- OR?: Prisma.ContractDocumentWhereInput[];
174
- NOT?: Prisma.ContractDocumentWhereInput | Prisma.ContractDocumentWhereInput[];
175
- contractId?: Prisma.StringFilter<"ContractDocument"> | string;
176
- name?: Prisma.StringFilter<"ContractDocument"> | string;
177
- url?: Prisma.StringFilter<"ContractDocument"> | string;
178
- type?: Prisma.StringFilter<"ContractDocument"> | string;
179
- createdAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
180
- updatedAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
181
- contract?: Prisma.XOR<Prisma.ContractScalarRelationFilter, Prisma.ContractWhereInput>;
182
- }, "id">;
183
- export type ContractDocumentOrderByWithAggregationInput = {
184
- id?: Prisma.SortOrder;
185
- contractId?: Prisma.SortOrder;
186
- name?: Prisma.SortOrder;
187
- url?: Prisma.SortOrder;
188
- type?: Prisma.SortOrder;
189
- createdAt?: Prisma.SortOrder;
190
- updatedAt?: Prisma.SortOrder;
191
- _count?: Prisma.ContractDocumentCountOrderByAggregateInput;
192
- _max?: Prisma.ContractDocumentMaxOrderByAggregateInput;
193
- _min?: Prisma.ContractDocumentMinOrderByAggregateInput;
194
- };
195
- export type ContractDocumentScalarWhereWithAggregatesInput = {
196
- AND?: Prisma.ContractDocumentScalarWhereWithAggregatesInput | Prisma.ContractDocumentScalarWhereWithAggregatesInput[];
197
- OR?: Prisma.ContractDocumentScalarWhereWithAggregatesInput[];
198
- NOT?: Prisma.ContractDocumentScalarWhereWithAggregatesInput | Prisma.ContractDocumentScalarWhereWithAggregatesInput[];
199
- id?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
200
- contractId?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
201
- name?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
202
- url?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
203
- type?: Prisma.StringWithAggregatesFilter<"ContractDocument"> | string;
204
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"ContractDocument"> | Date | string;
205
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ContractDocument"> | Date | string;
206
- };
207
- export type ContractDocumentCreateInput = {
208
- id?: string;
209
- name: string;
210
- url: string;
211
- type: string;
212
- createdAt?: Date | string;
213
- updatedAt?: Date | string;
214
- contract: Prisma.ContractCreateNestedOneWithoutDocumentsInput;
215
- };
216
- export type ContractDocumentUncheckedCreateInput = {
217
- id?: string;
218
- contractId: string;
219
- name: string;
220
- url: string;
221
- type: string;
222
- createdAt?: Date | string;
223
- updatedAt?: Date | string;
224
- };
225
- export type ContractDocumentUpdateInput = {
226
- id?: Prisma.StringFieldUpdateOperationsInput | string;
227
- name?: Prisma.StringFieldUpdateOperationsInput | string;
228
- url?: Prisma.StringFieldUpdateOperationsInput | string;
229
- type?: Prisma.StringFieldUpdateOperationsInput | string;
230
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
231
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
232
- contract?: Prisma.ContractUpdateOneRequiredWithoutDocumentsNestedInput;
233
- };
234
- export type ContractDocumentUncheckedUpdateInput = {
235
- id?: Prisma.StringFieldUpdateOperationsInput | string;
236
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
237
- name?: Prisma.StringFieldUpdateOperationsInput | string;
238
- url?: Prisma.StringFieldUpdateOperationsInput | string;
239
- type?: Prisma.StringFieldUpdateOperationsInput | string;
240
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
241
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
242
- };
243
- export type ContractDocumentCreateManyInput = {
244
- id?: string;
245
- contractId: string;
246
- name: string;
247
- url: string;
248
- type: string;
249
- createdAt?: Date | string;
250
- updatedAt?: Date | string;
251
- };
252
- export type ContractDocumentUpdateManyMutationInput = {
253
- id?: Prisma.StringFieldUpdateOperationsInput | string;
254
- name?: Prisma.StringFieldUpdateOperationsInput | string;
255
- url?: Prisma.StringFieldUpdateOperationsInput | string;
256
- type?: Prisma.StringFieldUpdateOperationsInput | string;
257
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
258
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
259
- };
260
- export type ContractDocumentUncheckedUpdateManyInput = {
261
- id?: Prisma.StringFieldUpdateOperationsInput | string;
262
- contractId?: Prisma.StringFieldUpdateOperationsInput | string;
263
- name?: Prisma.StringFieldUpdateOperationsInput | string;
264
- url?: Prisma.StringFieldUpdateOperationsInput | string;
265
- type?: Prisma.StringFieldUpdateOperationsInput | string;
266
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
267
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
268
- };
269
- export type ContractDocumentListRelationFilter = {
270
- every?: Prisma.ContractDocumentWhereInput;
271
- some?: Prisma.ContractDocumentWhereInput;
272
- none?: Prisma.ContractDocumentWhereInput;
273
- };
274
- export type ContractDocumentOrderByRelationAggregateInput = {
275
- _count?: Prisma.SortOrder;
276
- };
277
- export type ContractDocumentOrderByRelevanceInput = {
278
- fields: Prisma.ContractDocumentOrderByRelevanceFieldEnum | Prisma.ContractDocumentOrderByRelevanceFieldEnum[];
279
- sort: Prisma.SortOrder;
280
- search: string;
281
- };
282
- export type ContractDocumentCountOrderByAggregateInput = {
283
- id?: Prisma.SortOrder;
284
- contractId?: Prisma.SortOrder;
285
- name?: Prisma.SortOrder;
286
- url?: Prisma.SortOrder;
287
- type?: Prisma.SortOrder;
288
- createdAt?: Prisma.SortOrder;
289
- updatedAt?: Prisma.SortOrder;
290
- };
291
- export type ContractDocumentMaxOrderByAggregateInput = {
292
- id?: Prisma.SortOrder;
293
- contractId?: Prisma.SortOrder;
294
- name?: Prisma.SortOrder;
295
- url?: Prisma.SortOrder;
296
- type?: Prisma.SortOrder;
297
- createdAt?: Prisma.SortOrder;
298
- updatedAt?: Prisma.SortOrder;
299
- };
300
- export type ContractDocumentMinOrderByAggregateInput = {
301
- id?: Prisma.SortOrder;
302
- contractId?: Prisma.SortOrder;
303
- name?: Prisma.SortOrder;
304
- url?: Prisma.SortOrder;
305
- type?: Prisma.SortOrder;
306
- createdAt?: Prisma.SortOrder;
307
- updatedAt?: Prisma.SortOrder;
308
- };
309
- export type ContractDocumentCreateNestedManyWithoutContractInput = {
310
- create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutContractInput, Prisma.ContractDocumentUncheckedCreateWithoutContractInput> | Prisma.ContractDocumentCreateWithoutContractInput[] | Prisma.ContractDocumentUncheckedCreateWithoutContractInput[];
311
- connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutContractInput | Prisma.ContractDocumentCreateOrConnectWithoutContractInput[];
312
- createMany?: Prisma.ContractDocumentCreateManyContractInputEnvelope;
313
- connect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
314
- };
315
- export type ContractDocumentUncheckedCreateNestedManyWithoutContractInput = {
316
- create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutContractInput, Prisma.ContractDocumentUncheckedCreateWithoutContractInput> | Prisma.ContractDocumentCreateWithoutContractInput[] | Prisma.ContractDocumentUncheckedCreateWithoutContractInput[];
317
- connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutContractInput | Prisma.ContractDocumentCreateOrConnectWithoutContractInput[];
318
- createMany?: Prisma.ContractDocumentCreateManyContractInputEnvelope;
319
- connect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
320
- };
321
- export type ContractDocumentUpdateManyWithoutContractNestedInput = {
322
- create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutContractInput, Prisma.ContractDocumentUncheckedCreateWithoutContractInput> | Prisma.ContractDocumentCreateWithoutContractInput[] | Prisma.ContractDocumentUncheckedCreateWithoutContractInput[];
323
- connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutContractInput | Prisma.ContractDocumentCreateOrConnectWithoutContractInput[];
324
- upsert?: Prisma.ContractDocumentUpsertWithWhereUniqueWithoutContractInput | Prisma.ContractDocumentUpsertWithWhereUniqueWithoutContractInput[];
325
- createMany?: Prisma.ContractDocumentCreateManyContractInputEnvelope;
326
- set?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
327
- disconnect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
328
- delete?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
329
- connect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
330
- update?: Prisma.ContractDocumentUpdateWithWhereUniqueWithoutContractInput | Prisma.ContractDocumentUpdateWithWhereUniqueWithoutContractInput[];
331
- updateMany?: Prisma.ContractDocumentUpdateManyWithWhereWithoutContractInput | Prisma.ContractDocumentUpdateManyWithWhereWithoutContractInput[];
332
- deleteMany?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
333
- };
334
- export type ContractDocumentUncheckedUpdateManyWithoutContractNestedInput = {
335
- create?: Prisma.XOR<Prisma.ContractDocumentCreateWithoutContractInput, Prisma.ContractDocumentUncheckedCreateWithoutContractInput> | Prisma.ContractDocumentCreateWithoutContractInput[] | Prisma.ContractDocumentUncheckedCreateWithoutContractInput[];
336
- connectOrCreate?: Prisma.ContractDocumentCreateOrConnectWithoutContractInput | Prisma.ContractDocumentCreateOrConnectWithoutContractInput[];
337
- upsert?: Prisma.ContractDocumentUpsertWithWhereUniqueWithoutContractInput | Prisma.ContractDocumentUpsertWithWhereUniqueWithoutContractInput[];
338
- createMany?: Prisma.ContractDocumentCreateManyContractInputEnvelope;
339
- set?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
340
- disconnect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
341
- delete?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
342
- connect?: Prisma.ContractDocumentWhereUniqueInput | Prisma.ContractDocumentWhereUniqueInput[];
343
- update?: Prisma.ContractDocumentUpdateWithWhereUniqueWithoutContractInput | Prisma.ContractDocumentUpdateWithWhereUniqueWithoutContractInput[];
344
- updateMany?: Prisma.ContractDocumentUpdateManyWithWhereWithoutContractInput | Prisma.ContractDocumentUpdateManyWithWhereWithoutContractInput[];
345
- deleteMany?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
346
- };
347
- export type ContractDocumentCreateWithoutContractInput = {
348
- id?: string;
349
- name: string;
350
- url: string;
351
- type: string;
352
- createdAt?: Date | string;
353
- updatedAt?: Date | string;
354
- };
355
- export type ContractDocumentUncheckedCreateWithoutContractInput = {
356
- id?: string;
357
- name: string;
358
- url: string;
359
- type: string;
360
- createdAt?: Date | string;
361
- updatedAt?: Date | string;
362
- };
363
- export type ContractDocumentCreateOrConnectWithoutContractInput = {
364
- where: Prisma.ContractDocumentWhereUniqueInput;
365
- create: Prisma.XOR<Prisma.ContractDocumentCreateWithoutContractInput, Prisma.ContractDocumentUncheckedCreateWithoutContractInput>;
366
- };
367
- export type ContractDocumentCreateManyContractInputEnvelope = {
368
- data: Prisma.ContractDocumentCreateManyContractInput | Prisma.ContractDocumentCreateManyContractInput[];
369
- skipDuplicates?: boolean;
370
- };
371
- export type ContractDocumentUpsertWithWhereUniqueWithoutContractInput = {
372
- where: Prisma.ContractDocumentWhereUniqueInput;
373
- update: Prisma.XOR<Prisma.ContractDocumentUpdateWithoutContractInput, Prisma.ContractDocumentUncheckedUpdateWithoutContractInput>;
374
- create: Prisma.XOR<Prisma.ContractDocumentCreateWithoutContractInput, Prisma.ContractDocumentUncheckedCreateWithoutContractInput>;
375
- };
376
- export type ContractDocumentUpdateWithWhereUniqueWithoutContractInput = {
377
- where: Prisma.ContractDocumentWhereUniqueInput;
378
- data: Prisma.XOR<Prisma.ContractDocumentUpdateWithoutContractInput, Prisma.ContractDocumentUncheckedUpdateWithoutContractInput>;
379
- };
380
- export type ContractDocumentUpdateManyWithWhereWithoutContractInput = {
381
- where: Prisma.ContractDocumentScalarWhereInput;
382
- data: Prisma.XOR<Prisma.ContractDocumentUpdateManyMutationInput, Prisma.ContractDocumentUncheckedUpdateManyWithoutContractInput>;
383
- };
384
- export type ContractDocumentScalarWhereInput = {
385
- AND?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
386
- OR?: Prisma.ContractDocumentScalarWhereInput[];
387
- NOT?: Prisma.ContractDocumentScalarWhereInput | Prisma.ContractDocumentScalarWhereInput[];
388
- id?: Prisma.StringFilter<"ContractDocument"> | string;
389
- contractId?: Prisma.StringFilter<"ContractDocument"> | string;
390
- name?: Prisma.StringFilter<"ContractDocument"> | string;
391
- url?: Prisma.StringFilter<"ContractDocument"> | string;
392
- type?: Prisma.StringFilter<"ContractDocument"> | string;
393
- createdAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
394
- updatedAt?: Prisma.DateTimeFilter<"ContractDocument"> | Date | string;
395
- };
396
- export type ContractDocumentCreateManyContractInput = {
397
- id?: string;
398
- name: string;
399
- url: string;
400
- type: string;
401
- createdAt?: Date | string;
402
- updatedAt?: Date | string;
403
- };
404
- export type ContractDocumentUpdateWithoutContractInput = {
405
- id?: Prisma.StringFieldUpdateOperationsInput | string;
406
- name?: Prisma.StringFieldUpdateOperationsInput | string;
407
- url?: Prisma.StringFieldUpdateOperationsInput | string;
408
- type?: Prisma.StringFieldUpdateOperationsInput | string;
409
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
410
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
411
- };
412
- export type ContractDocumentUncheckedUpdateWithoutContractInput = {
413
- id?: Prisma.StringFieldUpdateOperationsInput | string;
414
- name?: Prisma.StringFieldUpdateOperationsInput | string;
415
- url?: Prisma.StringFieldUpdateOperationsInput | string;
416
- type?: Prisma.StringFieldUpdateOperationsInput | string;
417
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
418
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
419
- };
420
- export type ContractDocumentUncheckedUpdateManyWithoutContractInput = {
421
- id?: Prisma.StringFieldUpdateOperationsInput | string;
422
- name?: Prisma.StringFieldUpdateOperationsInput | string;
423
- url?: Prisma.StringFieldUpdateOperationsInput | string;
424
- type?: Prisma.StringFieldUpdateOperationsInput | string;
425
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
426
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
427
- };
428
- export type ContractDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
429
- id?: boolean;
430
- contractId?: boolean;
431
- name?: boolean;
432
- url?: boolean;
433
- type?: boolean;
434
- createdAt?: boolean;
435
- updatedAt?: boolean;
436
- contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
437
- }, ExtArgs["result"]["contractDocument"]>;
438
- export type ContractDocumentSelectScalar = {
439
- id?: boolean;
440
- contractId?: boolean;
441
- name?: boolean;
442
- url?: boolean;
443
- type?: boolean;
444
- createdAt?: boolean;
445
- updatedAt?: boolean;
446
- };
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"]>;
448
- export type ContractDocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
449
- contract?: boolean | Prisma.ContractDefaultArgs<ExtArgs>;
450
- };
451
- export type $ContractDocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
452
- name: "ContractDocument";
453
- objects: {
454
- contract: Prisma.$ContractPayload<ExtArgs>;
455
- };
456
- scalars: runtime.Types.Extensions.GetPayloadResult<{
457
- id: string;
458
- contractId: string;
459
- name: string;
460
- url: string;
461
- type: string;
462
- createdAt: Date;
463
- updatedAt: Date;
464
- }, ExtArgs["result"]["contractDocument"]>;
465
- composites: {};
466
- };
467
- export type ContractDocumentGetPayload<S extends boolean | null | undefined | ContractDocumentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload, S>;
468
- export type ContractDocumentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ContractDocumentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
469
- select?: ContractDocumentCountAggregateInputType | true;
470
- };
471
- export interface ContractDocumentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
472
- [K: symbol]: {
473
- types: Prisma.TypeMap<ExtArgs>['model']['ContractDocument'];
474
- meta: {
475
- name: 'ContractDocument';
476
- };
477
- };
478
- /**
479
- * Find zero or one ContractDocument that matches the filter.
480
- * @param {ContractDocumentFindUniqueArgs} args - Arguments to find a ContractDocument
481
- * @example
482
- * // Get one ContractDocument
483
- * const contractDocument = await prisma.contractDocument.findUnique({
484
- * where: {
485
- * // ... provide filter here
486
- * }
487
- * })
488
- */
489
- findUnique<T extends ContractDocumentFindUniqueArgs>(args: Prisma.SelectSubset<T, ContractDocumentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ContractDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
490
- /**
491
- * Find one ContractDocument that matches the filter or throw an error with `error.code='P2025'`
492
- * if no matches were found.
493
- * @param {ContractDocumentFindUniqueOrThrowArgs} args - Arguments to find a ContractDocument
494
- * @example
495
- * // Get one ContractDocument
496
- * const contractDocument = await prisma.contractDocument.findUniqueOrThrow({
497
- * where: {
498
- * // ... provide filter here
499
- * }
500
- * })
501
- */
502
- findUniqueOrThrow<T extends ContractDocumentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ContractDocumentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
503
- /**
504
- * Find the first ContractDocument that matches the filter.
505
- * Note, that providing `undefined` is treated as the value not being there.
506
- * Read more here: https://pris.ly/d/null-undefined
507
- * @param {ContractDocumentFindFirstArgs} args - Arguments to find a ContractDocument
508
- * @example
509
- * // Get one ContractDocument
510
- * const contractDocument = await prisma.contractDocument.findFirst({
511
- * where: {
512
- * // ... provide filter here
513
- * }
514
- * })
515
- */
516
- findFirst<T extends ContractDocumentFindFirstArgs>(args?: Prisma.SelectSubset<T, ContractDocumentFindFirstArgs<ExtArgs>>): Prisma.Prisma__ContractDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
517
- /**
518
- * Find the first ContractDocument that matches the filter or
519
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
520
- * Note, that providing `undefined` is treated as the value not being there.
521
- * Read more here: https://pris.ly/d/null-undefined
522
- * @param {ContractDocumentFindFirstOrThrowArgs} args - Arguments to find a ContractDocument
523
- * @example
524
- * // Get one ContractDocument
525
- * const contractDocument = await prisma.contractDocument.findFirstOrThrow({
526
- * where: {
527
- * // ... provide filter here
528
- * }
529
- * })
530
- */
531
- findFirstOrThrow<T extends ContractDocumentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ContractDocumentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
532
- /**
533
- * Find zero or more ContractDocuments that matches the filter.
534
- * Note, that providing `undefined` is treated as the value not being there.
535
- * Read more here: https://pris.ly/d/null-undefined
536
- * @param {ContractDocumentFindManyArgs} args - Arguments to filter and select certain fields only.
537
- * @example
538
- * // Get all ContractDocuments
539
- * const contractDocuments = await prisma.contractDocument.findMany()
540
- *
541
- * // Get first 10 ContractDocuments
542
- * const contractDocuments = await prisma.contractDocument.findMany({ take: 10 })
543
- *
544
- * // Only select the `id`
545
- * const contractDocumentWithIdOnly = await prisma.contractDocument.findMany({ select: { id: true } })
546
- *
547
- */
548
- findMany<T extends ContractDocumentFindManyArgs>(args?: Prisma.SelectSubset<T, ContractDocumentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
549
- /**
550
- * Create a ContractDocument.
551
- * @param {ContractDocumentCreateArgs} args - Arguments to create a ContractDocument.
552
- * @example
553
- * // Create one ContractDocument
554
- * const ContractDocument = await prisma.contractDocument.create({
555
- * data: {
556
- * // ... data to create a ContractDocument
557
- * }
558
- * })
559
- *
560
- */
561
- create<T extends ContractDocumentCreateArgs>(args: Prisma.SelectSubset<T, ContractDocumentCreateArgs<ExtArgs>>): Prisma.Prisma__ContractDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
562
- /**
563
- * Create many ContractDocuments.
564
- * @param {ContractDocumentCreateManyArgs} args - Arguments to create many ContractDocuments.
565
- * @example
566
- * // Create many ContractDocuments
567
- * const contractDocument = await prisma.contractDocument.createMany({
568
- * data: [
569
- * // ... provide data here
570
- * ]
571
- * })
572
- *
573
- */
574
- createMany<T extends ContractDocumentCreateManyArgs>(args?: Prisma.SelectSubset<T, ContractDocumentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
575
- /**
576
- * Delete a ContractDocument.
577
- * @param {ContractDocumentDeleteArgs} args - Arguments to delete one ContractDocument.
578
- * @example
579
- * // Delete one ContractDocument
580
- * const ContractDocument = await prisma.contractDocument.delete({
581
- * where: {
582
- * // ... filter to delete one ContractDocument
583
- * }
584
- * })
585
- *
586
- */
587
- delete<T extends ContractDocumentDeleteArgs>(args: Prisma.SelectSubset<T, ContractDocumentDeleteArgs<ExtArgs>>): Prisma.Prisma__ContractDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
588
- /**
589
- * Update one ContractDocument.
590
- * @param {ContractDocumentUpdateArgs} args - Arguments to update one ContractDocument.
591
- * @example
592
- * // Update one ContractDocument
593
- * const contractDocument = await prisma.contractDocument.update({
594
- * where: {
595
- * // ... provide filter here
596
- * },
597
- * data: {
598
- * // ... provide data here
599
- * }
600
- * })
601
- *
602
- */
603
- update<T extends ContractDocumentUpdateArgs>(args: Prisma.SelectSubset<T, ContractDocumentUpdateArgs<ExtArgs>>): Prisma.Prisma__ContractDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
604
- /**
605
- * Delete zero or more ContractDocuments.
606
- * @param {ContractDocumentDeleteManyArgs} args - Arguments to filter ContractDocuments to delete.
607
- * @example
608
- * // Delete a few ContractDocuments
609
- * const { count } = await prisma.contractDocument.deleteMany({
610
- * where: {
611
- * // ... provide filter here
612
- * }
613
- * })
614
- *
615
- */
616
- deleteMany<T extends ContractDocumentDeleteManyArgs>(args?: Prisma.SelectSubset<T, ContractDocumentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
617
- /**
618
- * Update zero or more ContractDocuments.
619
- * Note, that providing `undefined` is treated as the value not being there.
620
- * Read more here: https://pris.ly/d/null-undefined
621
- * @param {ContractDocumentUpdateManyArgs} args - Arguments to update one or more rows.
622
- * @example
623
- * // Update many ContractDocuments
624
- * const contractDocument = await prisma.contractDocument.updateMany({
625
- * where: {
626
- * // ... provide filter here
627
- * },
628
- * data: {
629
- * // ... provide data here
630
- * }
631
- * })
632
- *
633
- */
634
- updateMany<T extends ContractDocumentUpdateManyArgs>(args: Prisma.SelectSubset<T, ContractDocumentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
635
- /**
636
- * Create or update one ContractDocument.
637
- * @param {ContractDocumentUpsertArgs} args - Arguments to update or create a ContractDocument.
638
- * @example
639
- * // Update or create a ContractDocument
640
- * const contractDocument = await prisma.contractDocument.upsert({
641
- * create: {
642
- * // ... data to create a ContractDocument
643
- * },
644
- * update: {
645
- * // ... in case it already exists, update
646
- * },
647
- * where: {
648
- * // ... the filter for the ContractDocument we want to update
649
- * }
650
- * })
651
- */
652
- upsert<T extends ContractDocumentUpsertArgs>(args: Prisma.SelectSubset<T, ContractDocumentUpsertArgs<ExtArgs>>): Prisma.Prisma__ContractDocumentClient<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
653
- /**
654
- * Count the number of ContractDocuments.
655
- * Note, that providing `undefined` is treated as the value not being there.
656
- * Read more here: https://pris.ly/d/null-undefined
657
- * @param {ContractDocumentCountArgs} args - Arguments to filter ContractDocuments to count.
658
- * @example
659
- * // Count the number of ContractDocuments
660
- * const count = await prisma.contractDocument.count({
661
- * where: {
662
- * // ... the filter for the ContractDocuments we want to count
663
- * }
664
- * })
665
- **/
666
- count<T extends ContractDocumentCountArgs>(args?: Prisma.Subset<T, ContractDocumentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ContractDocumentCountAggregateOutputType> : number>;
667
- /**
668
- * Allows you to perform aggregations operations on a ContractDocument.
669
- * Note, that providing `undefined` is treated as the value not being there.
670
- * Read more here: https://pris.ly/d/null-undefined
671
- * @param {ContractDocumentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
672
- * @example
673
- * // Ordered by age ascending
674
- * // Where email contains prisma.io
675
- * // Limited to the 10 users
676
- * const aggregations = await prisma.user.aggregate({
677
- * _avg: {
678
- * age: true,
679
- * },
680
- * where: {
681
- * email: {
682
- * contains: "prisma.io",
683
- * },
684
- * },
685
- * orderBy: {
686
- * age: "asc",
687
- * },
688
- * take: 10,
689
- * })
690
- **/
691
- aggregate<T extends ContractDocumentAggregateArgs>(args: Prisma.Subset<T, ContractDocumentAggregateArgs>): Prisma.PrismaPromise<GetContractDocumentAggregateType<T>>;
692
- /**
693
- * Group by ContractDocument.
694
- * Note, that providing `undefined` is treated as the value not being there.
695
- * Read more here: https://pris.ly/d/null-undefined
696
- * @param {ContractDocumentGroupByArgs} args - Group by arguments.
697
- * @example
698
- * // Group by city, order by createdAt, get count
699
- * const result = await prisma.user.groupBy({
700
- * by: ['city', 'createdAt'],
701
- * orderBy: {
702
- * createdAt: true
703
- * },
704
- * _count: {
705
- * _all: true
706
- * },
707
- * })
708
- *
709
- **/
710
- groupBy<T extends ContractDocumentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
711
- orderBy: ContractDocumentGroupByArgs['orderBy'];
712
- } : {
713
- orderBy?: ContractDocumentGroupByArgs['orderBy'];
714
- }, 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 ? {
715
- [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
716
- Error,
717
- 'Field ',
718
- P,
719
- ` in "having" needs to be provided in "by"`
720
- ];
721
- }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
722
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
723
- }[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 ? {} : {
724
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
725
- }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
726
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
727
- }[OrderFields]>(args: Prisma.SubsetIntersection<T, ContractDocumentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractDocumentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
728
- /**
729
- * Fields of the ContractDocument model
730
- */
731
- readonly fields: ContractDocumentFieldRefs;
732
- }
733
- /**
734
- * The delegate class that acts as a "Promise-like" for ContractDocument.
735
- * Why is this prefixed with `Prisma__`?
736
- * Because we want to prevent naming conflicts as mentioned in
737
- * https://github.com/prisma/prisma-client-js/issues/707
738
- */
739
- export interface Prisma__ContractDocumentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
740
- readonly [Symbol.toStringTag]: "PrismaPromise";
741
- 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>;
742
- /**
743
- * Attaches callbacks for the resolution and/or rejection of the Promise.
744
- * @param onfulfilled The callback to execute when the Promise is resolved.
745
- * @param onrejected The callback to execute when the Promise is rejected.
746
- * @returns A Promise for the completion of which ever callback is executed.
747
- */
748
- 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>;
749
- /**
750
- * Attaches a callback for only the rejection of the Promise.
751
- * @param onrejected The callback to execute when the Promise is rejected.
752
- * @returns A Promise for the completion of the callback.
753
- */
754
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
755
- /**
756
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
757
- * resolved value cannot be modified from the callback.
758
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
759
- * @returns A Promise for the completion of the callback.
760
- */
761
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
762
- }
763
- /**
764
- * Fields of the ContractDocument model
765
- */
766
- export interface ContractDocumentFieldRefs {
767
- readonly id: Prisma.FieldRef<"ContractDocument", 'String'>;
768
- readonly contractId: Prisma.FieldRef<"ContractDocument", 'String'>;
769
- readonly name: Prisma.FieldRef<"ContractDocument", 'String'>;
770
- readonly url: Prisma.FieldRef<"ContractDocument", 'String'>;
771
- readonly type: Prisma.FieldRef<"ContractDocument", 'String'>;
772
- readonly createdAt: Prisma.FieldRef<"ContractDocument", 'DateTime'>;
773
- readonly updatedAt: Prisma.FieldRef<"ContractDocument", 'DateTime'>;
774
- }
775
- /**
776
- * ContractDocument findUnique
777
- */
778
- export type ContractDocumentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
779
- /**
780
- * Select specific fields to fetch from the ContractDocument
781
- */
782
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
783
- /**
784
- * Omit specific fields from the ContractDocument
785
- */
786
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
787
- /**
788
- * Choose, which related nodes to fetch as well
789
- */
790
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
791
- /**
792
- * Filter, which ContractDocument to fetch.
793
- */
794
- where: Prisma.ContractDocumentWhereUniqueInput;
795
- };
796
- /**
797
- * ContractDocument findUniqueOrThrow
798
- */
799
- export type ContractDocumentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
800
- /**
801
- * Select specific fields to fetch from the ContractDocument
802
- */
803
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
804
- /**
805
- * Omit specific fields from the ContractDocument
806
- */
807
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
808
- /**
809
- * Choose, which related nodes to fetch as well
810
- */
811
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
812
- /**
813
- * Filter, which ContractDocument to fetch.
814
- */
815
- where: Prisma.ContractDocumentWhereUniqueInput;
816
- };
817
- /**
818
- * ContractDocument findFirst
819
- */
820
- export type ContractDocumentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
821
- /**
822
- * Select specific fields to fetch from the ContractDocument
823
- */
824
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
825
- /**
826
- * Omit specific fields from the ContractDocument
827
- */
828
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
829
- /**
830
- * Choose, which related nodes to fetch as well
831
- */
832
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
833
- /**
834
- * Filter, which ContractDocument to fetch.
835
- */
836
- where?: Prisma.ContractDocumentWhereInput;
837
- /**
838
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
839
- *
840
- * Determine the order of ContractDocuments to fetch.
841
- */
842
- orderBy?: Prisma.ContractDocumentOrderByWithRelationInput | Prisma.ContractDocumentOrderByWithRelationInput[];
843
- /**
844
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
845
- *
846
- * Sets the position for searching for ContractDocuments.
847
- */
848
- cursor?: Prisma.ContractDocumentWhereUniqueInput;
849
- /**
850
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
851
- *
852
- * Take `±n` ContractDocuments from the position of the cursor.
853
- */
854
- take?: number;
855
- /**
856
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
857
- *
858
- * Skip the first `n` ContractDocuments.
859
- */
860
- skip?: number;
861
- /**
862
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
863
- *
864
- * Filter by unique combinations of ContractDocuments.
865
- */
866
- distinct?: Prisma.ContractDocumentScalarFieldEnum | Prisma.ContractDocumentScalarFieldEnum[];
867
- };
868
- /**
869
- * ContractDocument findFirstOrThrow
870
- */
871
- export type ContractDocumentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
872
- /**
873
- * Select specific fields to fetch from the ContractDocument
874
- */
875
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
876
- /**
877
- * Omit specific fields from the ContractDocument
878
- */
879
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
880
- /**
881
- * Choose, which related nodes to fetch as well
882
- */
883
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
884
- /**
885
- * Filter, which ContractDocument to fetch.
886
- */
887
- where?: Prisma.ContractDocumentWhereInput;
888
- /**
889
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
890
- *
891
- * Determine the order of ContractDocuments to fetch.
892
- */
893
- orderBy?: Prisma.ContractDocumentOrderByWithRelationInput | Prisma.ContractDocumentOrderByWithRelationInput[];
894
- /**
895
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
896
- *
897
- * Sets the position for searching for ContractDocuments.
898
- */
899
- cursor?: Prisma.ContractDocumentWhereUniqueInput;
900
- /**
901
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
902
- *
903
- * Take `±n` ContractDocuments from the position of the cursor.
904
- */
905
- take?: number;
906
- /**
907
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
908
- *
909
- * Skip the first `n` ContractDocuments.
910
- */
911
- skip?: number;
912
- /**
913
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
914
- *
915
- * Filter by unique combinations of ContractDocuments.
916
- */
917
- distinct?: Prisma.ContractDocumentScalarFieldEnum | Prisma.ContractDocumentScalarFieldEnum[];
918
- };
919
- /**
920
- * ContractDocument findMany
921
- */
922
- export type ContractDocumentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
923
- /**
924
- * Select specific fields to fetch from the ContractDocument
925
- */
926
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
927
- /**
928
- * Omit specific fields from the ContractDocument
929
- */
930
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
931
- /**
932
- * Choose, which related nodes to fetch as well
933
- */
934
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
935
- /**
936
- * Filter, which ContractDocuments to fetch.
937
- */
938
- where?: Prisma.ContractDocumentWhereInput;
939
- /**
940
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
941
- *
942
- * Determine the order of ContractDocuments to fetch.
943
- */
944
- orderBy?: Prisma.ContractDocumentOrderByWithRelationInput | Prisma.ContractDocumentOrderByWithRelationInput[];
945
- /**
946
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
947
- *
948
- * Sets the position for listing ContractDocuments.
949
- */
950
- cursor?: Prisma.ContractDocumentWhereUniqueInput;
951
- /**
952
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
953
- *
954
- * Take `±n` ContractDocuments from the position of the cursor.
955
- */
956
- take?: number;
957
- /**
958
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
959
- *
960
- * Skip the first `n` ContractDocuments.
961
- */
962
- skip?: number;
963
- distinct?: Prisma.ContractDocumentScalarFieldEnum | Prisma.ContractDocumentScalarFieldEnum[];
964
- };
965
- /**
966
- * ContractDocument create
967
- */
968
- export type ContractDocumentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
969
- /**
970
- * Select specific fields to fetch from the ContractDocument
971
- */
972
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
973
- /**
974
- * Omit specific fields from the ContractDocument
975
- */
976
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
977
- /**
978
- * Choose, which related nodes to fetch as well
979
- */
980
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
981
- /**
982
- * The data needed to create a ContractDocument.
983
- */
984
- data: Prisma.XOR<Prisma.ContractDocumentCreateInput, Prisma.ContractDocumentUncheckedCreateInput>;
985
- };
986
- /**
987
- * ContractDocument createMany
988
- */
989
- export type ContractDocumentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
990
- /**
991
- * The data used to create many ContractDocuments.
992
- */
993
- data: Prisma.ContractDocumentCreateManyInput | Prisma.ContractDocumentCreateManyInput[];
994
- skipDuplicates?: boolean;
995
- };
996
- /**
997
- * ContractDocument update
998
- */
999
- export type ContractDocumentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1000
- /**
1001
- * Select specific fields to fetch from the ContractDocument
1002
- */
1003
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
1004
- /**
1005
- * Omit specific fields from the ContractDocument
1006
- */
1007
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
1008
- /**
1009
- * Choose, which related nodes to fetch as well
1010
- */
1011
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
1012
- /**
1013
- * The data needed to update a ContractDocument.
1014
- */
1015
- data: Prisma.XOR<Prisma.ContractDocumentUpdateInput, Prisma.ContractDocumentUncheckedUpdateInput>;
1016
- /**
1017
- * Choose, which ContractDocument to update.
1018
- */
1019
- where: Prisma.ContractDocumentWhereUniqueInput;
1020
- };
1021
- /**
1022
- * ContractDocument updateMany
1023
- */
1024
- export type ContractDocumentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1025
- /**
1026
- * The data used to update ContractDocuments.
1027
- */
1028
- data: Prisma.XOR<Prisma.ContractDocumentUpdateManyMutationInput, Prisma.ContractDocumentUncheckedUpdateManyInput>;
1029
- /**
1030
- * Filter which ContractDocuments to update
1031
- */
1032
- where?: Prisma.ContractDocumentWhereInput;
1033
- /**
1034
- * Limit how many ContractDocuments to update.
1035
- */
1036
- limit?: number;
1037
- };
1038
- /**
1039
- * ContractDocument upsert
1040
- */
1041
- export type ContractDocumentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1042
- /**
1043
- * Select specific fields to fetch from the ContractDocument
1044
- */
1045
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
1046
- /**
1047
- * Omit specific fields from the ContractDocument
1048
- */
1049
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
1050
- /**
1051
- * Choose, which related nodes to fetch as well
1052
- */
1053
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
1054
- /**
1055
- * The filter to search for the ContractDocument to update in case it exists.
1056
- */
1057
- where: Prisma.ContractDocumentWhereUniqueInput;
1058
- /**
1059
- * In case the ContractDocument found by the `where` argument doesn't exist, create a new ContractDocument with this data.
1060
- */
1061
- create: Prisma.XOR<Prisma.ContractDocumentCreateInput, Prisma.ContractDocumentUncheckedCreateInput>;
1062
- /**
1063
- * In case the ContractDocument was found with the provided `where` argument, update it with this data.
1064
- */
1065
- update: Prisma.XOR<Prisma.ContractDocumentUpdateInput, Prisma.ContractDocumentUncheckedUpdateInput>;
1066
- };
1067
- /**
1068
- * ContractDocument delete
1069
- */
1070
- export type ContractDocumentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
- /**
1072
- * Select specific fields to fetch from the ContractDocument
1073
- */
1074
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
1075
- /**
1076
- * Omit specific fields from the ContractDocument
1077
- */
1078
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
1079
- /**
1080
- * Choose, which related nodes to fetch as well
1081
- */
1082
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
1083
- /**
1084
- * Filter which ContractDocument to delete.
1085
- */
1086
- where: Prisma.ContractDocumentWhereUniqueInput;
1087
- };
1088
- /**
1089
- * ContractDocument deleteMany
1090
- */
1091
- export type ContractDocumentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1092
- /**
1093
- * Filter which ContractDocuments to delete
1094
- */
1095
- where?: Prisma.ContractDocumentWhereInput;
1096
- /**
1097
- * Limit how many ContractDocuments to delete.
1098
- */
1099
- limit?: number;
1100
- };
1101
- /**
1102
- * ContractDocument without action
1103
- */
1104
- export type ContractDocumentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1105
- /**
1106
- * Select specific fields to fetch from the ContractDocument
1107
- */
1108
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
1109
- /**
1110
- * Omit specific fields from the ContractDocument
1111
- */
1112
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
1113
- /**
1114
- * Choose, which related nodes to fetch as well
1115
- */
1116
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
1117
- };
1118
- export {};