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