@budgetbuddyde/types 1.0.3 → 1.0.6
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/lib/Budget.type.d.ts +4 -4
- package/lib/Budget.type.js +1 -1
- package/lib/Category.type.d.ts +4 -4
- package/lib/Category.type.js +1 -1
- package/lib/File.type.d.ts +24 -0
- package/lib/File.type.js +18 -0
- package/lib/PaymentMethod.type.d.ts +4 -4
- package/lib/PaymentMethod.type.js +1 -1
- package/lib/Subscription.type.d.ts +4 -4
- package/lib/Subscription.type.js +1 -1
- package/lib/Transaction.type.d.ts +122 -4
- package/lib/Transaction.type.js +19 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +1 -1
package/lib/Budget.type.d.ts
CHANGED
|
@@ -543,17 +543,17 @@ export declare const ZDeleteBudgetResponsePayload: z.ZodObject<{
|
|
|
543
543
|
};
|
|
544
544
|
budget: number;
|
|
545
545
|
}>, "many">;
|
|
546
|
-
failed: z.ZodArray<z.
|
|
546
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
547
547
|
budgetId: z.ZodNumber;
|
|
548
548
|
}, "strip", z.ZodTypeAny, {
|
|
549
549
|
budgetId: number;
|
|
550
550
|
}, {
|
|
551
551
|
budgetId: number;
|
|
552
|
-
}>, "many"
|
|
552
|
+
}>, "many">;
|
|
553
553
|
}, "strip", z.ZodTypeAny, {
|
|
554
554
|
failed: {
|
|
555
555
|
budgetId: number;
|
|
556
|
-
}[]
|
|
556
|
+
}[];
|
|
557
557
|
success: {
|
|
558
558
|
id: number;
|
|
559
559
|
createdAt: Date;
|
|
@@ -600,7 +600,7 @@ export declare const ZDeleteBudgetResponsePayload: z.ZodObject<{
|
|
|
600
600
|
}, {
|
|
601
601
|
failed: {
|
|
602
602
|
budgetId: number;
|
|
603
|
-
}[]
|
|
603
|
+
}[];
|
|
604
604
|
success: {
|
|
605
605
|
id: number;
|
|
606
606
|
createdAt: (number | Date) & (number | Date | undefined);
|
package/lib/Budget.type.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.ZDeleteBudgetPayload = zod_1.z.array(zod_1.z.object({
|
|
|
28
28
|
}));
|
|
29
29
|
exports.ZDeleteBudgetResponsePayload = zod_1.z.object({
|
|
30
30
|
success: zod_1.z.array(exports.ZBudget),
|
|
31
|
-
failed:
|
|
31
|
+
failed: exports.ZDeleteBudgetPayload,
|
|
32
32
|
});
|
|
33
33
|
exports.ZBudgetProgress = exports.ZBudget.extend({
|
|
34
34
|
amount_spent: zod_1.z.number(),
|
package/lib/Category.type.d.ts
CHANGED
|
@@ -249,17 +249,17 @@ export declare const ZDeleteCategoryResponsePayload: z.ZodObject<{
|
|
|
249
249
|
};
|
|
250
250
|
description?: string | null | undefined;
|
|
251
251
|
}>, "many">;
|
|
252
|
-
failed: z.ZodArray<z.
|
|
252
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
253
253
|
categoryId: z.ZodNumber;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
255
|
categoryId: number;
|
|
256
256
|
}, {
|
|
257
257
|
categoryId: number;
|
|
258
|
-
}>, "many"
|
|
258
|
+
}>, "many">;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
260
|
failed: {
|
|
261
261
|
categoryId: number;
|
|
262
|
-
}[]
|
|
262
|
+
}[];
|
|
263
263
|
success: {
|
|
264
264
|
id: number;
|
|
265
265
|
name: string;
|
|
@@ -285,7 +285,7 @@ export declare const ZDeleteCategoryResponsePayload: z.ZodObject<{
|
|
|
285
285
|
}, {
|
|
286
286
|
failed: {
|
|
287
287
|
categoryId: number;
|
|
288
|
-
}[]
|
|
288
|
+
}[];
|
|
289
289
|
success: {
|
|
290
290
|
id: number;
|
|
291
291
|
name: string;
|
package/lib/Category.type.js
CHANGED
|
@@ -27,5 +27,5 @@ exports.ZDeleteCategoryPayload = zod_1.z.array(zod_1.z.object({
|
|
|
27
27
|
}));
|
|
28
28
|
exports.ZDeleteCategoryResponsePayload = zod_1.z.object({
|
|
29
29
|
success: zod_1.z.array(exports.ZCategory),
|
|
30
|
-
failed:
|
|
30
|
+
failed: exports.ZDeleteCategoryPayload,
|
|
31
31
|
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ZFile: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
size: z.ZodNumber;
|
|
5
|
+
location: z.ZodString;
|
|
6
|
+
type: z.ZodString;
|
|
7
|
+
last_edited_at: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodString]>, Date, string | Date>;
|
|
8
|
+
created_at: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodString]>, Date, string | Date>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
type: string;
|
|
11
|
+
location: string;
|
|
12
|
+
name: string;
|
|
13
|
+
size: number;
|
|
14
|
+
last_edited_at: Date;
|
|
15
|
+
created_at: Date;
|
|
16
|
+
}, {
|
|
17
|
+
type: string;
|
|
18
|
+
location: string;
|
|
19
|
+
name: string;
|
|
20
|
+
size: number;
|
|
21
|
+
last_edited_at: (string | Date) & (string | Date | undefined);
|
|
22
|
+
created_at: (string | Date) & (string | Date | undefined);
|
|
23
|
+
}>;
|
|
24
|
+
export type TFile = z.infer<typeof ZFile>;
|
package/lib/File.type.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ZFile = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ZFile = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string(),
|
|
7
|
+
size: zod_1.z.number(),
|
|
8
|
+
location: zod_1.z.string(),
|
|
9
|
+
type: zod_1.z.string(),
|
|
10
|
+
last_edited_at: zod_1.z
|
|
11
|
+
.date()
|
|
12
|
+
.or(zod_1.z.string())
|
|
13
|
+
.transform(val => new Date(val)),
|
|
14
|
+
created_at: zod_1.z
|
|
15
|
+
.date()
|
|
16
|
+
.or(zod_1.z.string())
|
|
17
|
+
.transform(val => new Date(val)),
|
|
18
|
+
});
|
|
@@ -273,17 +273,17 @@ export declare const ZDeletePaymentMethodResponsePayload: z.ZodObject<{
|
|
|
273
273
|
provider: string;
|
|
274
274
|
description?: string | null | undefined;
|
|
275
275
|
}>, "many">;
|
|
276
|
-
failed: z.ZodArray<z.
|
|
276
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
277
277
|
paymentMethodId: z.ZodNumber;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
279
|
paymentMethodId: number;
|
|
280
280
|
}, {
|
|
281
281
|
paymentMethodId: number;
|
|
282
|
-
}>, "many"
|
|
282
|
+
}>, "many">;
|
|
283
283
|
}, "strip", z.ZodTypeAny, {
|
|
284
284
|
failed: {
|
|
285
285
|
paymentMethodId: number;
|
|
286
|
-
}[]
|
|
286
|
+
}[];
|
|
287
287
|
success: {
|
|
288
288
|
id: number;
|
|
289
289
|
address: string;
|
|
@@ -311,7 +311,7 @@ export declare const ZDeletePaymentMethodResponsePayload: z.ZodObject<{
|
|
|
311
311
|
}, {
|
|
312
312
|
failed: {
|
|
313
313
|
paymentMethodId: number;
|
|
314
|
-
}[]
|
|
314
|
+
}[];
|
|
315
315
|
success: {
|
|
316
316
|
id: number;
|
|
317
317
|
address: string;
|
|
@@ -35,5 +35,5 @@ exports.ZDeletePaymentMethodPayload = zod_1.z.array(zod_1.z.object({
|
|
|
35
35
|
}));
|
|
36
36
|
exports.ZDeletePaymentMethodResponsePayload = zod_1.z.object({
|
|
37
37
|
success: zod_1.z.array(exports.ZPaymentMethod),
|
|
38
|
-
failed:
|
|
38
|
+
failed: exports.ZDeletePaymentMethodPayload,
|
|
39
39
|
});
|
|
@@ -917,17 +917,17 @@ export declare const ZDeleteSubscriptionResponsePayload: z.ZodObject<{
|
|
|
917
917
|
executeAt: (number | Date) & (number | Date | undefined);
|
|
918
918
|
description?: string | null | undefined;
|
|
919
919
|
}>, "many">;
|
|
920
|
-
failed: z.ZodArray<z.
|
|
920
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
921
921
|
subscriptionId: z.ZodNumber;
|
|
922
922
|
}, "strip", z.ZodTypeAny, {
|
|
923
923
|
subscriptionId: number;
|
|
924
924
|
}, {
|
|
925
925
|
subscriptionId: number;
|
|
926
|
-
}>, "many"
|
|
926
|
+
}>, "many">;
|
|
927
927
|
}, "strip", z.ZodTypeAny, {
|
|
928
928
|
failed: {
|
|
929
929
|
subscriptionId: number;
|
|
930
|
-
}[]
|
|
930
|
+
}[];
|
|
931
931
|
success: {
|
|
932
932
|
id: number;
|
|
933
933
|
receiver: string;
|
|
@@ -1002,7 +1002,7 @@ export declare const ZDeleteSubscriptionResponsePayload: z.ZodObject<{
|
|
|
1002
1002
|
}, {
|
|
1003
1003
|
failed: {
|
|
1004
1004
|
subscriptionId: number;
|
|
1005
|
-
}[]
|
|
1005
|
+
}[];
|
|
1006
1006
|
success: {
|
|
1007
1007
|
id: number;
|
|
1008
1008
|
receiver: string;
|
package/lib/Subscription.type.js
CHANGED
|
@@ -63,5 +63,5 @@ exports.ZDeleteSubscriptionPayload = zod_1.z.array(zod_1.z.object({
|
|
|
63
63
|
}));
|
|
64
64
|
exports.ZDeleteSubscriptionResponsePayload = zod_1.z.object({
|
|
65
65
|
success: zod_1.z.array(exports.ZSubscription),
|
|
66
|
-
failed:
|
|
66
|
+
failed: exports.ZDeleteSubscriptionPayload,
|
|
67
67
|
});
|
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* TransactionFile
|
|
4
|
+
*/
|
|
5
|
+
export declare const ZTransactionFile: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
fileName: z.ZodString;
|
|
8
|
+
fileSize: z.ZodNumber;
|
|
9
|
+
mimeType: z.ZodString;
|
|
10
|
+
location: z.ZodString;
|
|
11
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodNumber]>, Date, number | Date>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
location: string;
|
|
14
|
+
uuid: string;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
fileName: string;
|
|
17
|
+
fileSize: number;
|
|
18
|
+
mimeType: string;
|
|
19
|
+
}, {
|
|
20
|
+
location: string;
|
|
21
|
+
uuid: string;
|
|
22
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
23
|
+
fileName: string;
|
|
24
|
+
fileSize: number;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
}>;
|
|
27
|
+
export type TTransactionFile = z.infer<typeof ZTransactionFile>;
|
|
2
28
|
export declare const ZTransaction: z.ZodObject<{
|
|
3
29
|
id: z.ZodNumber;
|
|
4
30
|
owner: z.ZodObject<{
|
|
@@ -281,6 +307,28 @@ export declare const ZTransaction: z.ZodObject<{
|
|
|
281
307
|
receiver: z.ZodString;
|
|
282
308
|
description: z.ZodDefault<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
|
|
283
309
|
transferAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
|
|
310
|
+
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
311
|
+
uuid: z.ZodString;
|
|
312
|
+
fileName: z.ZodString;
|
|
313
|
+
fileSize: z.ZodNumber;
|
|
314
|
+
mimeType: z.ZodString;
|
|
315
|
+
location: z.ZodString;
|
|
316
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodNumber]>, Date, number | Date>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
location: string;
|
|
319
|
+
uuid: string;
|
|
320
|
+
createdAt: Date;
|
|
321
|
+
fileName: string;
|
|
322
|
+
fileSize: number;
|
|
323
|
+
mimeType: string;
|
|
324
|
+
}, {
|
|
325
|
+
location: string;
|
|
326
|
+
uuid: string;
|
|
327
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
328
|
+
fileName: string;
|
|
329
|
+
fileSize: number;
|
|
330
|
+
mimeType: string;
|
|
331
|
+
}>, "many">;
|
|
284
332
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodNumber]>, Date, number | Date>;
|
|
285
333
|
}, "strip", z.ZodTypeAny, {
|
|
286
334
|
id: number;
|
|
@@ -351,6 +399,14 @@ export declare const ZTransaction: z.ZodObject<{
|
|
|
351
399
|
};
|
|
352
400
|
processedAt: Date;
|
|
353
401
|
transferAmount: number;
|
|
402
|
+
attachedFiles: {
|
|
403
|
+
location: string;
|
|
404
|
+
uuid: string;
|
|
405
|
+
createdAt: Date;
|
|
406
|
+
fileName: string;
|
|
407
|
+
fileSize: number;
|
|
408
|
+
mimeType: string;
|
|
409
|
+
}[];
|
|
354
410
|
}, {
|
|
355
411
|
id: number;
|
|
356
412
|
receiver: string;
|
|
@@ -419,6 +475,14 @@ export declare const ZTransaction: z.ZodObject<{
|
|
|
419
475
|
};
|
|
420
476
|
processedAt: (number | Date) & (number | Date | undefined);
|
|
421
477
|
transferAmount: string | number;
|
|
478
|
+
attachedFiles: {
|
|
479
|
+
location: string;
|
|
480
|
+
uuid: string;
|
|
481
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
482
|
+
fileName: string;
|
|
483
|
+
fileSize: number;
|
|
484
|
+
mimeType: string;
|
|
485
|
+
}[];
|
|
422
486
|
description?: string | null | undefined;
|
|
423
487
|
}>;
|
|
424
488
|
export type TTransaction = z.infer<typeof ZTransaction>;
|
|
@@ -765,6 +829,28 @@ export declare const ZDeleteTransactionResponsePayload: z.ZodObject<{
|
|
|
765
829
|
receiver: z.ZodString;
|
|
766
830
|
description: z.ZodDefault<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
|
|
767
831
|
transferAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
|
|
832
|
+
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
833
|
+
uuid: z.ZodString;
|
|
834
|
+
fileName: z.ZodString;
|
|
835
|
+
fileSize: z.ZodNumber;
|
|
836
|
+
mimeType: z.ZodString;
|
|
837
|
+
location: z.ZodString;
|
|
838
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodNumber]>, Date, number | Date>;
|
|
839
|
+
}, "strip", z.ZodTypeAny, {
|
|
840
|
+
location: string;
|
|
841
|
+
uuid: string;
|
|
842
|
+
createdAt: Date;
|
|
843
|
+
fileName: string;
|
|
844
|
+
fileSize: number;
|
|
845
|
+
mimeType: string;
|
|
846
|
+
}, {
|
|
847
|
+
location: string;
|
|
848
|
+
uuid: string;
|
|
849
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
850
|
+
fileName: string;
|
|
851
|
+
fileSize: number;
|
|
852
|
+
mimeType: string;
|
|
853
|
+
}>, "many">;
|
|
768
854
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodNumber]>, Date, number | Date>;
|
|
769
855
|
}, "strip", z.ZodTypeAny, {
|
|
770
856
|
id: number;
|
|
@@ -835,6 +921,14 @@ export declare const ZDeleteTransactionResponsePayload: z.ZodObject<{
|
|
|
835
921
|
};
|
|
836
922
|
processedAt: Date;
|
|
837
923
|
transferAmount: number;
|
|
924
|
+
attachedFiles: {
|
|
925
|
+
location: string;
|
|
926
|
+
uuid: string;
|
|
927
|
+
createdAt: Date;
|
|
928
|
+
fileName: string;
|
|
929
|
+
fileSize: number;
|
|
930
|
+
mimeType: string;
|
|
931
|
+
}[];
|
|
838
932
|
}, {
|
|
839
933
|
id: number;
|
|
840
934
|
receiver: string;
|
|
@@ -903,19 +997,27 @@ export declare const ZDeleteTransactionResponsePayload: z.ZodObject<{
|
|
|
903
997
|
};
|
|
904
998
|
processedAt: (number | Date) & (number | Date | undefined);
|
|
905
999
|
transferAmount: string | number;
|
|
1000
|
+
attachedFiles: {
|
|
1001
|
+
location: string;
|
|
1002
|
+
uuid: string;
|
|
1003
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
1004
|
+
fileName: string;
|
|
1005
|
+
fileSize: number;
|
|
1006
|
+
mimeType: string;
|
|
1007
|
+
}[];
|
|
906
1008
|
description?: string | null | undefined;
|
|
907
1009
|
}>, "many">;
|
|
908
|
-
failed: z.ZodArray<z.
|
|
1010
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
909
1011
|
transactionId: z.ZodNumber;
|
|
910
1012
|
}, "strip", z.ZodTypeAny, {
|
|
911
1013
|
transactionId: number;
|
|
912
1014
|
}, {
|
|
913
1015
|
transactionId: number;
|
|
914
|
-
}>, "many"
|
|
1016
|
+
}>, "many">;
|
|
915
1017
|
}, "strip", z.ZodTypeAny, {
|
|
916
1018
|
failed: {
|
|
917
1019
|
transactionId: number;
|
|
918
|
-
}[]
|
|
1020
|
+
}[];
|
|
919
1021
|
success: {
|
|
920
1022
|
id: number;
|
|
921
1023
|
receiver: string;
|
|
@@ -985,11 +1087,19 @@ export declare const ZDeleteTransactionResponsePayload: z.ZodObject<{
|
|
|
985
1087
|
};
|
|
986
1088
|
processedAt: Date;
|
|
987
1089
|
transferAmount: number;
|
|
1090
|
+
attachedFiles: {
|
|
1091
|
+
location: string;
|
|
1092
|
+
uuid: string;
|
|
1093
|
+
createdAt: Date;
|
|
1094
|
+
fileName: string;
|
|
1095
|
+
fileSize: number;
|
|
1096
|
+
mimeType: string;
|
|
1097
|
+
}[];
|
|
988
1098
|
}[];
|
|
989
1099
|
}, {
|
|
990
1100
|
failed: {
|
|
991
1101
|
transactionId: number;
|
|
992
|
-
}[]
|
|
1102
|
+
}[];
|
|
993
1103
|
success: {
|
|
994
1104
|
id: number;
|
|
995
1105
|
receiver: string;
|
|
@@ -1058,6 +1168,14 @@ export declare const ZDeleteTransactionResponsePayload: z.ZodObject<{
|
|
|
1058
1168
|
};
|
|
1059
1169
|
processedAt: (number | Date) & (number | Date | undefined);
|
|
1060
1170
|
transferAmount: string | number;
|
|
1171
|
+
attachedFiles: {
|
|
1172
|
+
location: string;
|
|
1173
|
+
uuid: string;
|
|
1174
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
1175
|
+
fileName: string;
|
|
1176
|
+
fileSize: number;
|
|
1177
|
+
mimeType: string;
|
|
1178
|
+
}[];
|
|
1061
1179
|
description?: string | null | undefined;
|
|
1062
1180
|
}[];
|
|
1063
1181
|
}>;
|
package/lib/Transaction.type.js
CHANGED
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZDeleteTransactionResponsePayload = exports.ZDeleteTransactionPayload = exports.ZUpdateTransactionPayload = exports.ZCreateTransactionPayload = exports.ZTransaction = void 0;
|
|
3
|
+
exports.ZDeleteTransactionResponsePayload = exports.ZDeleteTransactionPayload = exports.ZUpdateTransactionPayload = exports.ZCreateTransactionPayload = exports.ZTransaction = exports.ZTransactionFile = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const User_type_1 = require("./User.type");
|
|
6
6
|
const Category_type_1 = require("./Category.type");
|
|
7
7
|
const PaymentMethod_type_1 = require("./PaymentMethod.type");
|
|
8
8
|
const Base_type_1 = require("./Base.type");
|
|
9
|
+
/**
|
|
10
|
+
* TransactionFile
|
|
11
|
+
*/
|
|
12
|
+
exports.ZTransactionFile = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
// owner: ZUser,
|
|
15
|
+
// transaction: ZTransaction,
|
|
16
|
+
fileName: zod_1.z.string(),
|
|
17
|
+
fileSize: zod_1.z.number(),
|
|
18
|
+
mimeType: zod_1.z.string().max(20, { message: 'Mimetype is too long' }),
|
|
19
|
+
location: zod_1.z.string().max(100, { message: 'Location is too long' }),
|
|
20
|
+
createdAt: Base_type_1.ZCreatedAt,
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Transaction
|
|
24
|
+
*/
|
|
9
25
|
const ZTransferAmount = zod_1.z
|
|
10
26
|
.number()
|
|
11
27
|
.or(zod_1.z.string())
|
|
@@ -19,6 +35,7 @@ exports.ZTransaction = zod_1.z.object({
|
|
|
19
35
|
receiver: zod_1.z.string(),
|
|
20
36
|
description: Base_type_1.ZDescription,
|
|
21
37
|
transferAmount: ZTransferAmount,
|
|
38
|
+
attachedFiles: zod_1.z.array(exports.ZTransactionFile),
|
|
22
39
|
createdAt: Base_type_1.ZCreatedAt,
|
|
23
40
|
});
|
|
24
41
|
exports.ZCreateTransactionPayload = zod_1.z.object({
|
|
@@ -44,5 +61,5 @@ exports.ZDeleteTransactionPayload = zod_1.z.array(zod_1.z.object({
|
|
|
44
61
|
}));
|
|
45
62
|
exports.ZDeleteTransactionResponsePayload = zod_1.z.object({
|
|
46
63
|
success: zod_1.z.array(exports.ZTransaction),
|
|
47
|
-
failed:
|
|
64
|
+
failed: exports.ZDeleteTransactionPayload,
|
|
48
65
|
});
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED