@valentine-efagene/qshelter-common 2.0.101 → 2.0.102
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/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +10 -0
- package/dist/generated/client/internal/prismaNamespace.js +10 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +10 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +10 -0
- package/dist/generated/client/models/DomainEvent.d.ts +281 -2
- package/dist/generated/client/models/Settings.d.ts +211 -4
- package/dist/generated/client/models/Social.d.ts +147 -1
- package/dist/generated/client/models/Tenant.d.ts +3705 -639
- package/dist/generated/client/models/Transaction.d.ts +178 -14
- package/dist/generated/client/models/Wallet.d.ts +169 -1
- package/dist/generated/client/models/WorkflowBlocker.d.ts +299 -4
- package/dist/src/prisma/tenant.js +0 -8
- package/package.json +1 -1
- package/prisma/migrations/20260113122855_add_tenant_to_remaining_models/migration.sql +64 -0
- package/prisma/schema.prisma +25 -2
|
@@ -20,6 +20,7 @@ export type TransactionSumAggregateOutputType = {
|
|
|
20
20
|
};
|
|
21
21
|
export type TransactionMinAggregateOutputType = {
|
|
22
22
|
id: string | null;
|
|
23
|
+
tenantId: string | null;
|
|
23
24
|
walletId: string | null;
|
|
24
25
|
amount: number | null;
|
|
25
26
|
type: string | null;
|
|
@@ -31,6 +32,7 @@ export type TransactionMinAggregateOutputType = {
|
|
|
31
32
|
};
|
|
32
33
|
export type TransactionMaxAggregateOutputType = {
|
|
33
34
|
id: string | null;
|
|
35
|
+
tenantId: string | null;
|
|
34
36
|
walletId: string | null;
|
|
35
37
|
amount: number | null;
|
|
36
38
|
type: string | null;
|
|
@@ -42,6 +44,7 @@ export type TransactionMaxAggregateOutputType = {
|
|
|
42
44
|
};
|
|
43
45
|
export type TransactionCountAggregateOutputType = {
|
|
44
46
|
id: number;
|
|
47
|
+
tenantId: number;
|
|
45
48
|
walletId: number;
|
|
46
49
|
amount: number;
|
|
47
50
|
type: number;
|
|
@@ -60,6 +63,7 @@ export type TransactionSumAggregateInputType = {
|
|
|
60
63
|
};
|
|
61
64
|
export type TransactionMinAggregateInputType = {
|
|
62
65
|
id?: true;
|
|
66
|
+
tenantId?: true;
|
|
63
67
|
walletId?: true;
|
|
64
68
|
amount?: true;
|
|
65
69
|
type?: true;
|
|
@@ -71,6 +75,7 @@ export type TransactionMinAggregateInputType = {
|
|
|
71
75
|
};
|
|
72
76
|
export type TransactionMaxAggregateInputType = {
|
|
73
77
|
id?: true;
|
|
78
|
+
tenantId?: true;
|
|
74
79
|
walletId?: true;
|
|
75
80
|
amount?: true;
|
|
76
81
|
type?: true;
|
|
@@ -82,6 +87,7 @@ export type TransactionMaxAggregateInputType = {
|
|
|
82
87
|
};
|
|
83
88
|
export type TransactionCountAggregateInputType = {
|
|
84
89
|
id?: true;
|
|
90
|
+
tenantId?: true;
|
|
85
91
|
walletId?: true;
|
|
86
92
|
amount?: true;
|
|
87
93
|
type?: true;
|
|
@@ -170,6 +176,7 @@ export type TransactionGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|
|
170
176
|
};
|
|
171
177
|
export type TransactionGroupByOutputType = {
|
|
172
178
|
id: string;
|
|
179
|
+
tenantId: string;
|
|
173
180
|
walletId: string;
|
|
174
181
|
amount: number;
|
|
175
182
|
type: string;
|
|
@@ -192,6 +199,7 @@ export type TransactionWhereInput = {
|
|
|
192
199
|
OR?: Prisma.TransactionWhereInput[];
|
|
193
200
|
NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[];
|
|
194
201
|
id?: Prisma.StringFilter<"Transaction"> | string;
|
|
202
|
+
tenantId?: Prisma.StringFilter<"Transaction"> | string;
|
|
195
203
|
walletId?: Prisma.StringFilter<"Transaction"> | string;
|
|
196
204
|
amount?: Prisma.FloatFilter<"Transaction"> | number;
|
|
197
205
|
type?: Prisma.StringFilter<"Transaction"> | string;
|
|
@@ -200,10 +208,12 @@ export type TransactionWhereInput = {
|
|
|
200
208
|
description?: Prisma.StringNullableFilter<"Transaction"> | string | null;
|
|
201
209
|
createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string;
|
|
202
210
|
updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string;
|
|
211
|
+
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
|
|
203
212
|
wallet?: Prisma.XOR<Prisma.WalletScalarRelationFilter, Prisma.WalletWhereInput>;
|
|
204
213
|
};
|
|
205
214
|
export type TransactionOrderByWithRelationInput = {
|
|
206
215
|
id?: Prisma.SortOrder;
|
|
216
|
+
tenantId?: Prisma.SortOrder;
|
|
207
217
|
walletId?: Prisma.SortOrder;
|
|
208
218
|
amount?: Prisma.SortOrder;
|
|
209
219
|
type?: Prisma.SortOrder;
|
|
@@ -212,6 +222,7 @@ export type TransactionOrderByWithRelationInput = {
|
|
|
212
222
|
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
213
223
|
createdAt?: Prisma.SortOrder;
|
|
214
224
|
updatedAt?: Prisma.SortOrder;
|
|
225
|
+
tenant?: Prisma.TenantOrderByWithRelationInput;
|
|
215
226
|
wallet?: Prisma.WalletOrderByWithRelationInput;
|
|
216
227
|
_relevance?: Prisma.TransactionOrderByRelevanceInput;
|
|
217
228
|
};
|
|
@@ -220,6 +231,7 @@ export type TransactionWhereUniqueInput = Prisma.AtLeast<{
|
|
|
220
231
|
AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[];
|
|
221
232
|
OR?: Prisma.TransactionWhereInput[];
|
|
222
233
|
NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[];
|
|
234
|
+
tenantId?: Prisma.StringFilter<"Transaction"> | string;
|
|
223
235
|
walletId?: Prisma.StringFilter<"Transaction"> | string;
|
|
224
236
|
amount?: Prisma.FloatFilter<"Transaction"> | number;
|
|
225
237
|
type?: Prisma.StringFilter<"Transaction"> | string;
|
|
@@ -228,10 +240,12 @@ export type TransactionWhereUniqueInput = Prisma.AtLeast<{
|
|
|
228
240
|
description?: Prisma.StringNullableFilter<"Transaction"> | string | null;
|
|
229
241
|
createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string;
|
|
230
242
|
updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string;
|
|
243
|
+
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
|
|
231
244
|
wallet?: Prisma.XOR<Prisma.WalletScalarRelationFilter, Prisma.WalletWhereInput>;
|
|
232
245
|
}, "id">;
|
|
233
246
|
export type TransactionOrderByWithAggregationInput = {
|
|
234
247
|
id?: Prisma.SortOrder;
|
|
248
|
+
tenantId?: Prisma.SortOrder;
|
|
235
249
|
walletId?: Prisma.SortOrder;
|
|
236
250
|
amount?: Prisma.SortOrder;
|
|
237
251
|
type?: Prisma.SortOrder;
|
|
@@ -251,6 +265,7 @@ export type TransactionScalarWhereWithAggregatesInput = {
|
|
|
251
265
|
OR?: Prisma.TransactionScalarWhereWithAggregatesInput[];
|
|
252
266
|
NOT?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[];
|
|
253
267
|
id?: Prisma.StringWithAggregatesFilter<"Transaction"> | string;
|
|
268
|
+
tenantId?: Prisma.StringWithAggregatesFilter<"Transaction"> | string;
|
|
254
269
|
walletId?: Prisma.StringWithAggregatesFilter<"Transaction"> | string;
|
|
255
270
|
amount?: Prisma.FloatWithAggregatesFilter<"Transaction"> | number;
|
|
256
271
|
type?: Prisma.StringWithAggregatesFilter<"Transaction"> | string;
|
|
@@ -269,10 +284,12 @@ export type TransactionCreateInput = {
|
|
|
269
284
|
description?: string | null;
|
|
270
285
|
createdAt?: Date | string;
|
|
271
286
|
updatedAt?: Date | string;
|
|
287
|
+
tenant: Prisma.TenantCreateNestedOneWithoutTransactionsInput;
|
|
272
288
|
wallet: Prisma.WalletCreateNestedOneWithoutTransactionsInput;
|
|
273
289
|
};
|
|
274
290
|
export type TransactionUncheckedCreateInput = {
|
|
275
291
|
id?: string;
|
|
292
|
+
tenantId: string;
|
|
276
293
|
walletId: string;
|
|
277
294
|
amount: number;
|
|
278
295
|
type: string;
|
|
@@ -291,10 +308,12 @@ export type TransactionUpdateInput = {
|
|
|
291
308
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
292
309
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
293
310
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
311
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutTransactionsNestedInput;
|
|
294
312
|
wallet?: Prisma.WalletUpdateOneRequiredWithoutTransactionsNestedInput;
|
|
295
313
|
};
|
|
296
314
|
export type TransactionUncheckedUpdateInput = {
|
|
297
315
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
316
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
298
317
|
walletId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
299
318
|
amount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
300
319
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -306,6 +325,7 @@ export type TransactionUncheckedUpdateInput = {
|
|
|
306
325
|
};
|
|
307
326
|
export type TransactionCreateManyInput = {
|
|
308
327
|
id?: string;
|
|
328
|
+
tenantId: string;
|
|
309
329
|
walletId: string;
|
|
310
330
|
amount: number;
|
|
311
331
|
type: string;
|
|
@@ -327,6 +347,7 @@ export type TransactionUpdateManyMutationInput = {
|
|
|
327
347
|
};
|
|
328
348
|
export type TransactionUncheckedUpdateManyInput = {
|
|
329
349
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
350
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
330
351
|
walletId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
331
352
|
amount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
332
353
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -351,6 +372,7 @@ export type TransactionOrderByRelevanceInput = {
|
|
|
351
372
|
};
|
|
352
373
|
export type TransactionCountOrderByAggregateInput = {
|
|
353
374
|
id?: Prisma.SortOrder;
|
|
375
|
+
tenantId?: Prisma.SortOrder;
|
|
354
376
|
walletId?: Prisma.SortOrder;
|
|
355
377
|
amount?: Prisma.SortOrder;
|
|
356
378
|
type?: Prisma.SortOrder;
|
|
@@ -365,6 +387,7 @@ export type TransactionAvgOrderByAggregateInput = {
|
|
|
365
387
|
};
|
|
366
388
|
export type TransactionMaxOrderByAggregateInput = {
|
|
367
389
|
id?: Prisma.SortOrder;
|
|
390
|
+
tenantId?: Prisma.SortOrder;
|
|
368
391
|
walletId?: Prisma.SortOrder;
|
|
369
392
|
amount?: Prisma.SortOrder;
|
|
370
393
|
type?: Prisma.SortOrder;
|
|
@@ -376,6 +399,7 @@ export type TransactionMaxOrderByAggregateInput = {
|
|
|
376
399
|
};
|
|
377
400
|
export type TransactionMinOrderByAggregateInput = {
|
|
378
401
|
id?: Prisma.SortOrder;
|
|
402
|
+
tenantId?: Prisma.SortOrder;
|
|
379
403
|
walletId?: Prisma.SortOrder;
|
|
380
404
|
amount?: Prisma.SortOrder;
|
|
381
405
|
type?: Prisma.SortOrder;
|
|
@@ -388,6 +412,44 @@ export type TransactionMinOrderByAggregateInput = {
|
|
|
388
412
|
export type TransactionSumOrderByAggregateInput = {
|
|
389
413
|
amount?: Prisma.SortOrder;
|
|
390
414
|
};
|
|
415
|
+
export type TransactionCreateNestedManyWithoutTenantInput = {
|
|
416
|
+
create?: Prisma.XOR<Prisma.TransactionCreateWithoutTenantInput, Prisma.TransactionUncheckedCreateWithoutTenantInput> | Prisma.TransactionCreateWithoutTenantInput[] | Prisma.TransactionUncheckedCreateWithoutTenantInput[];
|
|
417
|
+
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutTenantInput | Prisma.TransactionCreateOrConnectWithoutTenantInput[];
|
|
418
|
+
createMany?: Prisma.TransactionCreateManyTenantInputEnvelope;
|
|
419
|
+
connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
420
|
+
};
|
|
421
|
+
export type TransactionUncheckedCreateNestedManyWithoutTenantInput = {
|
|
422
|
+
create?: Prisma.XOR<Prisma.TransactionCreateWithoutTenantInput, Prisma.TransactionUncheckedCreateWithoutTenantInput> | Prisma.TransactionCreateWithoutTenantInput[] | Prisma.TransactionUncheckedCreateWithoutTenantInput[];
|
|
423
|
+
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutTenantInput | Prisma.TransactionCreateOrConnectWithoutTenantInput[];
|
|
424
|
+
createMany?: Prisma.TransactionCreateManyTenantInputEnvelope;
|
|
425
|
+
connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
426
|
+
};
|
|
427
|
+
export type TransactionUpdateManyWithoutTenantNestedInput = {
|
|
428
|
+
create?: Prisma.XOR<Prisma.TransactionCreateWithoutTenantInput, Prisma.TransactionUncheckedCreateWithoutTenantInput> | Prisma.TransactionCreateWithoutTenantInput[] | Prisma.TransactionUncheckedCreateWithoutTenantInput[];
|
|
429
|
+
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutTenantInput | Prisma.TransactionCreateOrConnectWithoutTenantInput[];
|
|
430
|
+
upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutTenantInput | Prisma.TransactionUpsertWithWhereUniqueWithoutTenantInput[];
|
|
431
|
+
createMany?: Prisma.TransactionCreateManyTenantInputEnvelope;
|
|
432
|
+
set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
433
|
+
disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
434
|
+
delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
435
|
+
connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
436
|
+
update?: Prisma.TransactionUpdateWithWhereUniqueWithoutTenantInput | Prisma.TransactionUpdateWithWhereUniqueWithoutTenantInput[];
|
|
437
|
+
updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutTenantInput | Prisma.TransactionUpdateManyWithWhereWithoutTenantInput[];
|
|
438
|
+
deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
|
|
439
|
+
};
|
|
440
|
+
export type TransactionUncheckedUpdateManyWithoutTenantNestedInput = {
|
|
441
|
+
create?: Prisma.XOR<Prisma.TransactionCreateWithoutTenantInput, Prisma.TransactionUncheckedCreateWithoutTenantInput> | Prisma.TransactionCreateWithoutTenantInput[] | Prisma.TransactionUncheckedCreateWithoutTenantInput[];
|
|
442
|
+
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutTenantInput | Prisma.TransactionCreateOrConnectWithoutTenantInput[];
|
|
443
|
+
upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutTenantInput | Prisma.TransactionUpsertWithWhereUniqueWithoutTenantInput[];
|
|
444
|
+
createMany?: Prisma.TransactionCreateManyTenantInputEnvelope;
|
|
445
|
+
set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
446
|
+
disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
447
|
+
delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
448
|
+
connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
|
|
449
|
+
update?: Prisma.TransactionUpdateWithWhereUniqueWithoutTenantInput | Prisma.TransactionUpdateWithWhereUniqueWithoutTenantInput[];
|
|
450
|
+
updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutTenantInput | Prisma.TransactionUpdateManyWithWhereWithoutTenantInput[];
|
|
451
|
+
deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
|
|
452
|
+
};
|
|
391
453
|
export type TransactionCreateNestedManyWithoutWalletInput = {
|
|
392
454
|
create?: Prisma.XOR<Prisma.TransactionCreateWithoutWalletInput, Prisma.TransactionUncheckedCreateWithoutWalletInput> | Prisma.TransactionCreateWithoutWalletInput[] | Prisma.TransactionUncheckedCreateWithoutWalletInput[];
|
|
393
455
|
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutWalletInput | Prisma.TransactionCreateOrConnectWithoutWalletInput[];
|
|
@@ -426,7 +488,7 @@ export type TransactionUncheckedUpdateManyWithoutWalletNestedInput = {
|
|
|
426
488
|
updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutWalletInput | Prisma.TransactionUpdateManyWithWhereWithoutWalletInput[];
|
|
427
489
|
deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
|
|
428
490
|
};
|
|
429
|
-
export type
|
|
491
|
+
export type TransactionCreateWithoutTenantInput = {
|
|
430
492
|
id?: string;
|
|
431
493
|
amount: number;
|
|
432
494
|
type: string;
|
|
@@ -435,9 +497,11 @@ export type TransactionCreateWithoutWalletInput = {
|
|
|
435
497
|
description?: string | null;
|
|
436
498
|
createdAt?: Date | string;
|
|
437
499
|
updatedAt?: Date | string;
|
|
500
|
+
wallet: Prisma.WalletCreateNestedOneWithoutTransactionsInput;
|
|
438
501
|
};
|
|
439
|
-
export type
|
|
502
|
+
export type TransactionUncheckedCreateWithoutTenantInput = {
|
|
440
503
|
id?: string;
|
|
504
|
+
walletId: string;
|
|
441
505
|
amount: number;
|
|
442
506
|
type: string;
|
|
443
507
|
status: string;
|
|
@@ -446,32 +510,33 @@ export type TransactionUncheckedCreateWithoutWalletInput = {
|
|
|
446
510
|
createdAt?: Date | string;
|
|
447
511
|
updatedAt?: Date | string;
|
|
448
512
|
};
|
|
449
|
-
export type
|
|
513
|
+
export type TransactionCreateOrConnectWithoutTenantInput = {
|
|
450
514
|
where: Prisma.TransactionWhereUniqueInput;
|
|
451
|
-
create: Prisma.XOR<Prisma.
|
|
515
|
+
create: Prisma.XOR<Prisma.TransactionCreateWithoutTenantInput, Prisma.TransactionUncheckedCreateWithoutTenantInput>;
|
|
452
516
|
};
|
|
453
|
-
export type
|
|
454
|
-
data: Prisma.
|
|
517
|
+
export type TransactionCreateManyTenantInputEnvelope = {
|
|
518
|
+
data: Prisma.TransactionCreateManyTenantInput | Prisma.TransactionCreateManyTenantInput[];
|
|
455
519
|
skipDuplicates?: boolean;
|
|
456
520
|
};
|
|
457
|
-
export type
|
|
521
|
+
export type TransactionUpsertWithWhereUniqueWithoutTenantInput = {
|
|
458
522
|
where: Prisma.TransactionWhereUniqueInput;
|
|
459
|
-
update: Prisma.XOR<Prisma.
|
|
460
|
-
create: Prisma.XOR<Prisma.
|
|
523
|
+
update: Prisma.XOR<Prisma.TransactionUpdateWithoutTenantInput, Prisma.TransactionUncheckedUpdateWithoutTenantInput>;
|
|
524
|
+
create: Prisma.XOR<Prisma.TransactionCreateWithoutTenantInput, Prisma.TransactionUncheckedCreateWithoutTenantInput>;
|
|
461
525
|
};
|
|
462
|
-
export type
|
|
526
|
+
export type TransactionUpdateWithWhereUniqueWithoutTenantInput = {
|
|
463
527
|
where: Prisma.TransactionWhereUniqueInput;
|
|
464
|
-
data: Prisma.XOR<Prisma.
|
|
528
|
+
data: Prisma.XOR<Prisma.TransactionUpdateWithoutTenantInput, Prisma.TransactionUncheckedUpdateWithoutTenantInput>;
|
|
465
529
|
};
|
|
466
|
-
export type
|
|
530
|
+
export type TransactionUpdateManyWithWhereWithoutTenantInput = {
|
|
467
531
|
where: Prisma.TransactionScalarWhereInput;
|
|
468
|
-
data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.
|
|
532
|
+
data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyWithoutTenantInput>;
|
|
469
533
|
};
|
|
470
534
|
export type TransactionScalarWhereInput = {
|
|
471
535
|
AND?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
|
|
472
536
|
OR?: Prisma.TransactionScalarWhereInput[];
|
|
473
537
|
NOT?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
|
|
474
538
|
id?: Prisma.StringFilter<"Transaction"> | string;
|
|
539
|
+
tenantId?: Prisma.StringFilter<"Transaction"> | string;
|
|
475
540
|
walletId?: Prisma.StringFilter<"Transaction"> | string;
|
|
476
541
|
amount?: Prisma.FloatFilter<"Transaction"> | number;
|
|
477
542
|
type?: Prisma.StringFilter<"Transaction"> | string;
|
|
@@ -481,8 +546,96 @@ export type TransactionScalarWhereInput = {
|
|
|
481
546
|
createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string;
|
|
482
547
|
updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string;
|
|
483
548
|
};
|
|
549
|
+
export type TransactionCreateWithoutWalletInput = {
|
|
550
|
+
id?: string;
|
|
551
|
+
amount: number;
|
|
552
|
+
type: string;
|
|
553
|
+
status: string;
|
|
554
|
+
reference?: string | null;
|
|
555
|
+
description?: string | null;
|
|
556
|
+
createdAt?: Date | string;
|
|
557
|
+
updatedAt?: Date | string;
|
|
558
|
+
tenant: Prisma.TenantCreateNestedOneWithoutTransactionsInput;
|
|
559
|
+
};
|
|
560
|
+
export type TransactionUncheckedCreateWithoutWalletInput = {
|
|
561
|
+
id?: string;
|
|
562
|
+
tenantId: string;
|
|
563
|
+
amount: number;
|
|
564
|
+
type: string;
|
|
565
|
+
status: string;
|
|
566
|
+
reference?: string | null;
|
|
567
|
+
description?: string | null;
|
|
568
|
+
createdAt?: Date | string;
|
|
569
|
+
updatedAt?: Date | string;
|
|
570
|
+
};
|
|
571
|
+
export type TransactionCreateOrConnectWithoutWalletInput = {
|
|
572
|
+
where: Prisma.TransactionWhereUniqueInput;
|
|
573
|
+
create: Prisma.XOR<Prisma.TransactionCreateWithoutWalletInput, Prisma.TransactionUncheckedCreateWithoutWalletInput>;
|
|
574
|
+
};
|
|
575
|
+
export type TransactionCreateManyWalletInputEnvelope = {
|
|
576
|
+
data: Prisma.TransactionCreateManyWalletInput | Prisma.TransactionCreateManyWalletInput[];
|
|
577
|
+
skipDuplicates?: boolean;
|
|
578
|
+
};
|
|
579
|
+
export type TransactionUpsertWithWhereUniqueWithoutWalletInput = {
|
|
580
|
+
where: Prisma.TransactionWhereUniqueInput;
|
|
581
|
+
update: Prisma.XOR<Prisma.TransactionUpdateWithoutWalletInput, Prisma.TransactionUncheckedUpdateWithoutWalletInput>;
|
|
582
|
+
create: Prisma.XOR<Prisma.TransactionCreateWithoutWalletInput, Prisma.TransactionUncheckedCreateWithoutWalletInput>;
|
|
583
|
+
};
|
|
584
|
+
export type TransactionUpdateWithWhereUniqueWithoutWalletInput = {
|
|
585
|
+
where: Prisma.TransactionWhereUniqueInput;
|
|
586
|
+
data: Prisma.XOR<Prisma.TransactionUpdateWithoutWalletInput, Prisma.TransactionUncheckedUpdateWithoutWalletInput>;
|
|
587
|
+
};
|
|
588
|
+
export type TransactionUpdateManyWithWhereWithoutWalletInput = {
|
|
589
|
+
where: Prisma.TransactionScalarWhereInput;
|
|
590
|
+
data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyWithoutWalletInput>;
|
|
591
|
+
};
|
|
592
|
+
export type TransactionCreateManyTenantInput = {
|
|
593
|
+
id?: string;
|
|
594
|
+
walletId: string;
|
|
595
|
+
amount: number;
|
|
596
|
+
type: string;
|
|
597
|
+
status: string;
|
|
598
|
+
reference?: string | null;
|
|
599
|
+
description?: string | null;
|
|
600
|
+
createdAt?: Date | string;
|
|
601
|
+
updatedAt?: Date | string;
|
|
602
|
+
};
|
|
603
|
+
export type TransactionUpdateWithoutTenantInput = {
|
|
604
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
605
|
+
amount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
606
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
607
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
608
|
+
reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
609
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
610
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
611
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
612
|
+
wallet?: Prisma.WalletUpdateOneRequiredWithoutTransactionsNestedInput;
|
|
613
|
+
};
|
|
614
|
+
export type TransactionUncheckedUpdateWithoutTenantInput = {
|
|
615
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
616
|
+
walletId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
617
|
+
amount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
618
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
619
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
620
|
+
reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
621
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
622
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
623
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
624
|
+
};
|
|
625
|
+
export type TransactionUncheckedUpdateManyWithoutTenantInput = {
|
|
626
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
627
|
+
walletId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
628
|
+
amount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
629
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
630
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
631
|
+
reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
632
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
633
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
634
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
635
|
+
};
|
|
484
636
|
export type TransactionCreateManyWalletInput = {
|
|
485
637
|
id?: string;
|
|
638
|
+
tenantId: string;
|
|
486
639
|
amount: number;
|
|
487
640
|
type: string;
|
|
488
641
|
status: string;
|
|
@@ -500,9 +653,11 @@ export type TransactionUpdateWithoutWalletInput = {
|
|
|
500
653
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
501
654
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
502
655
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
656
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutTransactionsNestedInput;
|
|
503
657
|
};
|
|
504
658
|
export type TransactionUncheckedUpdateWithoutWalletInput = {
|
|
505
659
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
660
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
506
661
|
amount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
507
662
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
508
663
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -513,6 +668,7 @@ export type TransactionUncheckedUpdateWithoutWalletInput = {
|
|
|
513
668
|
};
|
|
514
669
|
export type TransactionUncheckedUpdateManyWithoutWalletInput = {
|
|
515
670
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
671
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
516
672
|
amount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
517
673
|
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
518
674
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -523,6 +679,7 @@ export type TransactionUncheckedUpdateManyWithoutWalletInput = {
|
|
|
523
679
|
};
|
|
524
680
|
export type TransactionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
525
681
|
id?: boolean;
|
|
682
|
+
tenantId?: boolean;
|
|
526
683
|
walletId?: boolean;
|
|
527
684
|
amount?: boolean;
|
|
528
685
|
type?: boolean;
|
|
@@ -531,10 +688,12 @@ export type TransactionSelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
531
688
|
description?: boolean;
|
|
532
689
|
createdAt?: boolean;
|
|
533
690
|
updatedAt?: boolean;
|
|
691
|
+
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
|
|
534
692
|
wallet?: boolean | Prisma.WalletDefaultArgs<ExtArgs>;
|
|
535
693
|
}, ExtArgs["result"]["transaction"]>;
|
|
536
694
|
export type TransactionSelectScalar = {
|
|
537
695
|
id?: boolean;
|
|
696
|
+
tenantId?: boolean;
|
|
538
697
|
walletId?: boolean;
|
|
539
698
|
amount?: boolean;
|
|
540
699
|
type?: boolean;
|
|
@@ -544,17 +703,20 @@ export type TransactionSelectScalar = {
|
|
|
544
703
|
createdAt?: boolean;
|
|
545
704
|
updatedAt?: boolean;
|
|
546
705
|
};
|
|
547
|
-
export type TransactionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "walletId" | "amount" | "type" | "status" | "reference" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["transaction"]>;
|
|
706
|
+
export type TransactionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "walletId" | "amount" | "type" | "status" | "reference" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["transaction"]>;
|
|
548
707
|
export type TransactionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
708
|
+
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
|
|
549
709
|
wallet?: boolean | Prisma.WalletDefaultArgs<ExtArgs>;
|
|
550
710
|
};
|
|
551
711
|
export type $TransactionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
552
712
|
name: "Transaction";
|
|
553
713
|
objects: {
|
|
714
|
+
tenant: Prisma.$TenantPayload<ExtArgs>;
|
|
554
715
|
wallet: Prisma.$WalletPayload<ExtArgs>;
|
|
555
716
|
};
|
|
556
717
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
557
718
|
id: string;
|
|
719
|
+
tenantId: string;
|
|
558
720
|
walletId: string;
|
|
559
721
|
amount: number;
|
|
560
722
|
type: string;
|
|
@@ -840,6 +1002,7 @@ export interface TransactionDelegate<ExtArgs extends runtime.Types.Extensions.In
|
|
|
840
1002
|
*/
|
|
841
1003
|
export interface Prisma__TransactionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
842
1004
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1005
|
+
tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
843
1006
|
wallet<T extends Prisma.WalletDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WalletDefaultArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
844
1007
|
/**
|
|
845
1008
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
@@ -867,6 +1030,7 @@ export interface Prisma__TransactionClient<T, Null = never, ExtArgs extends runt
|
|
|
867
1030
|
*/
|
|
868
1031
|
export interface TransactionFieldRefs {
|
|
869
1032
|
readonly id: Prisma.FieldRef<"Transaction", 'String'>;
|
|
1033
|
+
readonly tenantId: Prisma.FieldRef<"Transaction", 'String'>;
|
|
870
1034
|
readonly walletId: Prisma.FieldRef<"Transaction", 'String'>;
|
|
871
1035
|
readonly amount: Prisma.FieldRef<"Transaction", 'Float'>;
|
|
872
1036
|
readonly type: Prisma.FieldRef<"Transaction", 'String'>;
|