@budgetbuddyde/api 0.1.0
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/LICENSE +21 -0
- package/README.md +366 -0
- package/lib/api.d.ts +17 -0
- package/lib/api.js +22 -0
- package/lib/budget.d.ts +3 -0
- package/lib/budget.js +19 -0
- package/lib/category.d.ts +3 -0
- package/lib/category.js +19 -0
- package/lib/error.d.ts +33 -0
- package/lib/error.js +55 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +22 -0
- package/lib/paymentMethod.d.ts +3 -0
- package/lib/paymentMethod.js +19 -0
- package/lib/recurringPayment.d.ts +4 -0
- package/lib/recurringPayment.js +20 -0
- package/lib/services/budget.service.d.ts +8 -0
- package/lib/services/budget.service.js +43 -0
- package/lib/services/category.service.d.ts +24 -0
- package/lib/services/category.service.js +98 -0
- package/lib/services/entity.service.d.ts +31 -0
- package/lib/services/entity.service.js +185 -0
- package/lib/services/paymentMethod.service.d.ts +15 -0
- package/lib/services/paymentMethod.service.js +64 -0
- package/lib/services/recurringPayment.service.d.ts +43 -0
- package/lib/services/recurringPayment.service.js +26 -0
- package/lib/services/transaction.service.d.ts +43 -0
- package/lib/services/transaction.service.js +46 -0
- package/lib/transaction.d.ts +4 -0
- package/lib/transaction.js +20 -0
- package/lib/types/budget.type.d.ts +5 -0
- package/lib/types/budget.type.js +2 -0
- package/lib/types/category.type.d.ts +6 -0
- package/lib/types/category.type.js +2 -0
- package/lib/types/common.d.ts +15 -0
- package/lib/types/common.js +2 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/index.js +22 -0
- package/lib/types/interfaces/index.d.ts +3 -0
- package/lib/types/interfaces/index.js +19 -0
- package/lib/types/interfaces/query.interface.d.ts +14 -0
- package/lib/types/interfaces/query.interface.js +2 -0
- package/lib/types/interfaces/recurringPayment.interface.d.ts +5 -0
- package/lib/types/interfaces/recurringPayment.interface.js +2 -0
- package/lib/types/interfaces/transaction.interface.d.ts +5 -0
- package/lib/types/interfaces/transaction.interface.js +2 -0
- package/lib/types/paymentMethod.type.d.ts +5 -0
- package/lib/types/paymentMethod.type.js +2 -0
- package/lib/types/recurringPayment.type.d.ts +5 -0
- package/lib/types/recurringPayment.type.js +2 -0
- package/lib/types/schemas/budget.schema.d.ts +228 -0
- package/lib/types/schemas/budget.schema.js +77 -0
- package/lib/types/schemas/category.schema.d.ts +160 -0
- package/lib/types/schemas/category.schema.js +69 -0
- package/lib/types/schemas/common.schema.d.ts +25 -0
- package/lib/types/schemas/common.schema.js +27 -0
- package/lib/types/schemas/index.d.ts +6 -0
- package/lib/types/schemas/index.js +22 -0
- package/lib/types/schemas/paymentMethod.schema.d.ts +138 -0
- package/lib/types/schemas/paymentMethod.schema.js +59 -0
- package/lib/types/schemas/recurringPayment.schema.d.ts +199 -0
- package/lib/types/schemas/recurringPayment.schema.js +62 -0
- package/lib/types/schemas/transaction.schema.d.ts +207 -0
- package/lib/types/schemas/transaction.schema.js +76 -0
- package/lib/types/transaction.type.d.ts +6 -0
- package/lib/types/transaction.type.js +2 -0
- package/package.json +144 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const Transaction: z.ZodObject<{
|
|
3
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TransactionID">;
|
|
4
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
5
|
+
categoryId: z.core.$ZodBranded<z.ZodUUID, "CategoryID">;
|
|
6
|
+
paymentMethodId: z.core.$ZodBranded<z.ZodUUID, "PaymentMethodID">;
|
|
7
|
+
processedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
8
|
+
receiver: z.ZodString;
|
|
9
|
+
transferAmount: z.ZodNumber;
|
|
10
|
+
information: z.ZodNullable<z.ZodString>;
|
|
11
|
+
createdAt: z.ZodISODateTime;
|
|
12
|
+
updatedAt: z.ZodISODateTime;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const ExpandedTransaction: z.ZodObject<{
|
|
15
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TransactionID">;
|
|
16
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
17
|
+
createdAt: z.ZodISODateTime;
|
|
18
|
+
updatedAt: z.ZodISODateTime;
|
|
19
|
+
processedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
20
|
+
receiver: z.ZodString;
|
|
21
|
+
transferAmount: z.ZodNumber;
|
|
22
|
+
information: z.ZodNullable<z.ZodString>;
|
|
23
|
+
category: z.ZodObject<{
|
|
24
|
+
id: z.core.$ZodBranded<z.ZodUUID, "CategoryID">;
|
|
25
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
description: z.ZodNullable<z.ZodString>;
|
|
28
|
+
createdAt: z.ZodISODateTime;
|
|
29
|
+
updatedAt: z.ZodISODateTime;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
paymentMethod: z.ZodObject<{
|
|
32
|
+
id: z.core.$ZodBranded<z.ZodUUID, "PaymentMethodID">;
|
|
33
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
provider: z.ZodString;
|
|
36
|
+
address: z.ZodString;
|
|
37
|
+
description: z.ZodNullable<z.ZodString>;
|
|
38
|
+
createdAt: z.ZodISODateTime;
|
|
39
|
+
updatedAt: z.ZodISODateTime;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const CreateOrUpdateTransactionPayload: z.ZodObject<{
|
|
43
|
+
categoryId: z.core.$ZodBranded<z.ZodUUID, "CategoryID">;
|
|
44
|
+
paymentMethodId: z.core.$ZodBranded<z.ZodUUID, "PaymentMethodID">;
|
|
45
|
+
processedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
46
|
+
receiver: z.ZodString;
|
|
47
|
+
transferAmount: z.ZodNumber;
|
|
48
|
+
information: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export declare const ReceiverVH: z.ZodObject<{
|
|
51
|
+
receiver: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const GetAllTransactionsResponse: z.ZodObject<{
|
|
54
|
+
status: z.ZodNumber;
|
|
55
|
+
message: z.ZodOptional<z.ZodString>;
|
|
56
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
from: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
db: "db";
|
|
59
|
+
cache: "cache";
|
|
60
|
+
external: "external";
|
|
61
|
+
}>>;
|
|
62
|
+
data: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
63
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TransactionID">;
|
|
64
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
65
|
+
createdAt: z.ZodISODateTime;
|
|
66
|
+
updatedAt: z.ZodISODateTime;
|
|
67
|
+
processedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
68
|
+
receiver: z.ZodString;
|
|
69
|
+
transferAmount: z.ZodNumber;
|
|
70
|
+
information: z.ZodNullable<z.ZodString>;
|
|
71
|
+
category: z.ZodObject<{
|
|
72
|
+
id: z.core.$ZodBranded<z.ZodUUID, "CategoryID">;
|
|
73
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
description: z.ZodNullable<z.ZodString>;
|
|
76
|
+
createdAt: z.ZodISODateTime;
|
|
77
|
+
updatedAt: z.ZodISODateTime;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
paymentMethod: z.ZodObject<{
|
|
80
|
+
id: z.core.$ZodBranded<z.ZodUUID, "PaymentMethodID">;
|
|
81
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
provider: z.ZodString;
|
|
84
|
+
address: z.ZodString;
|
|
85
|
+
description: z.ZodNullable<z.ZodString>;
|
|
86
|
+
createdAt: z.ZodISODateTime;
|
|
87
|
+
updatedAt: z.ZodISODateTime;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
}, z.core.$strip>>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export declare const GetTransactionResponse: z.ZodObject<{
|
|
92
|
+
status: z.ZodNumber;
|
|
93
|
+
message: z.ZodOptional<z.ZodString>;
|
|
94
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
from: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
db: "db";
|
|
97
|
+
cache: "cache";
|
|
98
|
+
external: "external";
|
|
99
|
+
}>>;
|
|
100
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
101
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TransactionID">;
|
|
102
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
103
|
+
createdAt: z.ZodISODateTime;
|
|
104
|
+
updatedAt: z.ZodISODateTime;
|
|
105
|
+
processedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
106
|
+
receiver: z.ZodString;
|
|
107
|
+
transferAmount: z.ZodNumber;
|
|
108
|
+
information: z.ZodNullable<z.ZodString>;
|
|
109
|
+
category: z.ZodObject<{
|
|
110
|
+
id: z.core.$ZodBranded<z.ZodUUID, "CategoryID">;
|
|
111
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
description: z.ZodNullable<z.ZodString>;
|
|
114
|
+
createdAt: z.ZodISODateTime;
|
|
115
|
+
updatedAt: z.ZodISODateTime;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
paymentMethod: z.ZodObject<{
|
|
118
|
+
id: z.core.$ZodBranded<z.ZodUUID, "PaymentMethodID">;
|
|
119
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
provider: z.ZodString;
|
|
122
|
+
address: z.ZodString;
|
|
123
|
+
description: z.ZodNullable<z.ZodString>;
|
|
124
|
+
createdAt: z.ZodISODateTime;
|
|
125
|
+
updatedAt: z.ZodISODateTime;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export declare const CreateTransactionResponse: z.ZodObject<{
|
|
130
|
+
status: z.ZodNumber;
|
|
131
|
+
message: z.ZodOptional<z.ZodString>;
|
|
132
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
from: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
db: "db";
|
|
135
|
+
cache: "cache";
|
|
136
|
+
external: "external";
|
|
137
|
+
}>>;
|
|
138
|
+
data: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
139
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TransactionID">;
|
|
140
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
141
|
+
categoryId: z.core.$ZodBranded<z.ZodUUID, "CategoryID">;
|
|
142
|
+
paymentMethodId: z.core.$ZodBranded<z.ZodUUID, "PaymentMethodID">;
|
|
143
|
+
processedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
144
|
+
receiver: z.ZodString;
|
|
145
|
+
transferAmount: z.ZodNumber;
|
|
146
|
+
information: z.ZodNullable<z.ZodString>;
|
|
147
|
+
createdAt: z.ZodISODateTime;
|
|
148
|
+
updatedAt: z.ZodISODateTime;
|
|
149
|
+
}, z.core.$strip>>>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
export declare const UpdateTransactionResponse: z.ZodObject<{
|
|
152
|
+
status: z.ZodNumber;
|
|
153
|
+
message: z.ZodOptional<z.ZodString>;
|
|
154
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
from: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
db: "db";
|
|
157
|
+
cache: "cache";
|
|
158
|
+
external: "external";
|
|
159
|
+
}>>;
|
|
160
|
+
data: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
161
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TransactionID">;
|
|
162
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
163
|
+
categoryId: z.core.$ZodBranded<z.ZodUUID, "CategoryID">;
|
|
164
|
+
paymentMethodId: z.core.$ZodBranded<z.ZodUUID, "PaymentMethodID">;
|
|
165
|
+
processedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
166
|
+
receiver: z.ZodString;
|
|
167
|
+
transferAmount: z.ZodNumber;
|
|
168
|
+
information: z.ZodNullable<z.ZodString>;
|
|
169
|
+
createdAt: z.ZodISODateTime;
|
|
170
|
+
updatedAt: z.ZodISODateTime;
|
|
171
|
+
}, z.core.$strip>>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export declare const DeleteTransactionResponse: z.ZodObject<{
|
|
174
|
+
status: z.ZodNumber;
|
|
175
|
+
message: z.ZodOptional<z.ZodString>;
|
|
176
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
from: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
db: "db";
|
|
179
|
+
cache: "cache";
|
|
180
|
+
external: "external";
|
|
181
|
+
}>>;
|
|
182
|
+
data: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
183
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TransactionID">;
|
|
184
|
+
ownerId: z.core.$ZodBranded<z.ZodString, "UserID">;
|
|
185
|
+
categoryId: z.core.$ZodBranded<z.ZodUUID, "CategoryID">;
|
|
186
|
+
paymentMethodId: z.core.$ZodBranded<z.ZodUUID, "PaymentMethodID">;
|
|
187
|
+
processedAt: z.ZodUnion<[z.ZodISODateTime, z.ZodDate]>;
|
|
188
|
+
receiver: z.ZodString;
|
|
189
|
+
transferAmount: z.ZodNumber;
|
|
190
|
+
information: z.ZodNullable<z.ZodString>;
|
|
191
|
+
createdAt: z.ZodISODateTime;
|
|
192
|
+
updatedAt: z.ZodISODateTime;
|
|
193
|
+
}, z.core.$strip>>>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export declare const ReceiverVHResponse: z.ZodObject<{
|
|
196
|
+
status: z.ZodNumber;
|
|
197
|
+
message: z.ZodOptional<z.ZodString>;
|
|
198
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
from: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
db: "db";
|
|
201
|
+
cache: "cache";
|
|
202
|
+
external: "external";
|
|
203
|
+
}>>;
|
|
204
|
+
data: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
205
|
+
receiver: z.ZodString;
|
|
206
|
+
}, z.core.$strip>>>;
|
|
207
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReceiverVHResponse = exports.DeleteTransactionResponse = exports.UpdateTransactionResponse = exports.CreateTransactionResponse = exports.GetTransactionResponse = exports.GetAllTransactionsResponse = exports.ReceiverVH = exports.CreateOrUpdateTransactionPayload = exports.ExpandedTransaction = exports.Transaction = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const category_schema_1 = require("./category.schema");
|
|
9
|
+
const common_schema_1 = require("./common.schema");
|
|
10
|
+
const paymentMethod_schema_1 = require("./paymentMethod.schema");
|
|
11
|
+
exports.Transaction = zod_1.default.object({
|
|
12
|
+
id: zod_1.default.uuid().brand("TransactionID"),
|
|
13
|
+
ownerId: common_schema_1.UserID,
|
|
14
|
+
categoryId: category_schema_1.Category.shape.id,
|
|
15
|
+
paymentMethodId: paymentMethod_schema_1.PaymentMethod.shape.id,
|
|
16
|
+
processedAt: zod_1.default.iso.datetime().or(zod_1.default.date()),
|
|
17
|
+
receiver: zod_1.default.string(),
|
|
18
|
+
transferAmount: zod_1.default.number(),
|
|
19
|
+
information: zod_1.default.string().nullable(),
|
|
20
|
+
createdAt: zod_1.default.iso.datetime(),
|
|
21
|
+
updatedAt: zod_1.default.iso.datetime(),
|
|
22
|
+
});
|
|
23
|
+
exports.ExpandedTransaction = exports.Transaction.omit({
|
|
24
|
+
categoryId: true,
|
|
25
|
+
paymentMethodId: true,
|
|
26
|
+
}).extend({
|
|
27
|
+
category: category_schema_1.Category,
|
|
28
|
+
paymentMethod: paymentMethod_schema_1.PaymentMethod,
|
|
29
|
+
});
|
|
30
|
+
// export const CreateTransactionPayload = Transaction.pick({
|
|
31
|
+
// categoryId: true,
|
|
32
|
+
// paymentMethodId: true,
|
|
33
|
+
// processedAt: true,
|
|
34
|
+
// receiver: true,
|
|
35
|
+
// transferAmount: true,
|
|
36
|
+
// information: true,
|
|
37
|
+
// }).extend({
|
|
38
|
+
// information: Transaction.shape.information.optional(),
|
|
39
|
+
// });
|
|
40
|
+
// export const UpdateTransactionPayload = Transaction.pick({
|
|
41
|
+
// categoryId: true,
|
|
42
|
+
// paymentMethodId: true,
|
|
43
|
+
// processedAt: true,
|
|
44
|
+
// receiver: true,
|
|
45
|
+
// transferAmount: true,
|
|
46
|
+
// information: true,
|
|
47
|
+
// }).extend({
|
|
48
|
+
// information: Transaction.shape.information.optional(),
|
|
49
|
+
// });
|
|
50
|
+
exports.CreateOrUpdateTransactionPayload = exports.Transaction.pick({
|
|
51
|
+
categoryId: true,
|
|
52
|
+
paymentMethodId: true,
|
|
53
|
+
processedAt: true,
|
|
54
|
+
receiver: true,
|
|
55
|
+
transferAmount: true,
|
|
56
|
+
information: true,
|
|
57
|
+
}).extend({
|
|
58
|
+
information: exports.Transaction.shape.information.optional(),
|
|
59
|
+
});
|
|
60
|
+
exports.ReceiverVH = exports.Transaction.pick({
|
|
61
|
+
receiver: true,
|
|
62
|
+
});
|
|
63
|
+
exports.GetAllTransactionsResponse = common_schema_1.ApiResponse.extend({
|
|
64
|
+
data: zod_1.default.array(exports.ExpandedTransaction).nullable(),
|
|
65
|
+
});
|
|
66
|
+
exports.GetTransactionResponse = common_schema_1.ApiResponse.extend({
|
|
67
|
+
data: exports.ExpandedTransaction.nullable(),
|
|
68
|
+
});
|
|
69
|
+
exports.CreateTransactionResponse = common_schema_1.ApiResponse.extend({
|
|
70
|
+
data: zod_1.default.array(exports.Transaction).nullable(),
|
|
71
|
+
});
|
|
72
|
+
exports.UpdateTransactionResponse = exports.CreateTransactionResponse;
|
|
73
|
+
exports.DeleteTransactionResponse = exports.CreateTransactionResponse;
|
|
74
|
+
exports.ReceiverVHResponse = common_schema_1.ApiResponse.extend({
|
|
75
|
+
data: zod_1.default.array(exports.ReceiverVH).nullable(),
|
|
76
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TypeOfSchema } from "./common";
|
|
2
|
+
import type * as schema from "./schemas/transaction.schema";
|
|
3
|
+
export type TTransaction = TypeOfSchema<typeof schema.Transaction>;
|
|
4
|
+
export type TExpandedTransaction = TypeOfSchema<typeof schema.ExpandedTransaction>;
|
|
5
|
+
export type TCreateOrUpdateTransactionPayload = TypeOfSchema<typeof schema.CreateOrUpdateTransactionPayload>;
|
|
6
|
+
export type TReceiverVH = TypeOfSchema<typeof schema.ReceiverVH>;
|
package/package.json
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@budgetbuddyde/api",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"registry": "https://registry.npmjs.org/",
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"author": "Thorben",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"homepage": "https://github.com/BudgetBuddyDE/BudgetBuddyDE",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/BudgetBuddyDE/BudgetBuddyDE.git"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/BudgetBuddyDE/BudgetBuddyDE/issues"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "rimraf lib && tsc",
|
|
22
|
+
"pretest": "npm run check",
|
|
23
|
+
"test": "vitest run --silent",
|
|
24
|
+
"test:watch": "vitest",
|
|
25
|
+
"check": "biome check --error-on-warnings",
|
|
26
|
+
"check:write": "npm run check -- --write --unsafe",
|
|
27
|
+
"lint": "biome lint --write",
|
|
28
|
+
"format": "biome format --write"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"zod": "^4.1.12"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@biomejs/biome": "^2.3.0",
|
|
35
|
+
"@vitest/ui": "^3.2.4",
|
|
36
|
+
"rimraf": "^6.0.1",
|
|
37
|
+
"typescript": "^5.9.3",
|
|
38
|
+
"vitest": "^3.2.4"
|
|
39
|
+
},
|
|
40
|
+
"main": "lib/index.js",
|
|
41
|
+
"types": "lib/index.d.ts",
|
|
42
|
+
"exports": {
|
|
43
|
+
".": {
|
|
44
|
+
"dev-source": "./src/index.ts",
|
|
45
|
+
"types": "./lib/index.d.ts",
|
|
46
|
+
"default": "./lib/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./api": {
|
|
49
|
+
"dev-source": "./src/api.ts",
|
|
50
|
+
"types": "./lib/api.d.ts",
|
|
51
|
+
"default": "./lib/api.js"
|
|
52
|
+
},
|
|
53
|
+
"./client": {
|
|
54
|
+
"dev-source": "./src/api.ts",
|
|
55
|
+
"types": "./lib/api.d.ts",
|
|
56
|
+
"default": "./lib/api.js"
|
|
57
|
+
},
|
|
58
|
+
"./types": {
|
|
59
|
+
"dev-source": "./src/types/index.ts",
|
|
60
|
+
"types": "./lib/types/index.d.ts",
|
|
61
|
+
"default": "./lib/types/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./interfaces": {
|
|
64
|
+
"dev-source": "./src/types/interfaces/index.ts",
|
|
65
|
+
"types": "./lib/types/interfaces/index.d.ts",
|
|
66
|
+
"default": "./lib/types/interfaces/index.js"
|
|
67
|
+
},
|
|
68
|
+
"./schemas": {
|
|
69
|
+
"dev-source": "./src/types/schemas/index.ts",
|
|
70
|
+
"types": "./lib/types/schemas/index.d.ts",
|
|
71
|
+
"default": "./lib/types/schemas/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./error": {
|
|
74
|
+
"dev-source": "./src/error.ts",
|
|
75
|
+
"types": "./lib/error.d.ts",
|
|
76
|
+
"default": "./lib/error.js"
|
|
77
|
+
},
|
|
78
|
+
"./category": {
|
|
79
|
+
"dev-source": "./src/category.ts",
|
|
80
|
+
"types": "./lib/category.d.ts",
|
|
81
|
+
"default": "./lib/category.js"
|
|
82
|
+
},
|
|
83
|
+
"./paymentMethod": {
|
|
84
|
+
"dev-source": "./src/paymentMethod.ts",
|
|
85
|
+
"types": "./lib/paymentMethod.d.ts",
|
|
86
|
+
"default": "./lib/paymentMethod.js"
|
|
87
|
+
},
|
|
88
|
+
"./budget": {
|
|
89
|
+
"dev-source": "./src/budget.ts",
|
|
90
|
+
"types": "./lib/budget.d.ts",
|
|
91
|
+
"default": "./lib/budget.js"
|
|
92
|
+
},
|
|
93
|
+
"./transaction": {
|
|
94
|
+
"dev-source": "./src/transaction.ts",
|
|
95
|
+
"types": "./lib/transaction.d.ts",
|
|
96
|
+
"default": "./lib/transaction.js"
|
|
97
|
+
},
|
|
98
|
+
"./recurringPayment": {
|
|
99
|
+
"dev-source": "./src/recurringPayment.ts",
|
|
100
|
+
"types": "./lib/recurringPayment.d.ts",
|
|
101
|
+
"default": "./lib/recurringPayment.js"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"typesVersions": {
|
|
105
|
+
"*": {
|
|
106
|
+
"*": [
|
|
107
|
+
"./lib/index.d.js"
|
|
108
|
+
],
|
|
109
|
+
"api": [
|
|
110
|
+
"./lib/api.d.ts"
|
|
111
|
+
],
|
|
112
|
+
"client": [
|
|
113
|
+
"./lib/api.d.ts"
|
|
114
|
+
],
|
|
115
|
+
"types": [
|
|
116
|
+
"./lib/types/index.d.ts"
|
|
117
|
+
],
|
|
118
|
+
"interfaces": [
|
|
119
|
+
"./lib/types/interfaces/index.d.ts"
|
|
120
|
+
],
|
|
121
|
+
"schemas": [
|
|
122
|
+
"./lib/types/schemas/index.d.ts"
|
|
123
|
+
],
|
|
124
|
+
"error": [
|
|
125
|
+
"./lib/error.d.ts"
|
|
126
|
+
],
|
|
127
|
+
"category": [
|
|
128
|
+
"./lib/category.d.ts"
|
|
129
|
+
],
|
|
130
|
+
"paymentMethod": [
|
|
131
|
+
"./lib/paymentMethod.d.ts"
|
|
132
|
+
],
|
|
133
|
+
"budget": [
|
|
134
|
+
"./lib/budget.d.ts"
|
|
135
|
+
],
|
|
136
|
+
"transaction": [
|
|
137
|
+
"./lib/transaction.d.ts"
|
|
138
|
+
],
|
|
139
|
+
"recurringPayment": [
|
|
140
|
+
"./lib/recurringPayment.d.ts"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|