@budgetbuddyde/types 1.0.2 → 1.0.3
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 +359 -2
- package/lib/Budget.type.js +6 -2
- package/lib/Category.type.d.ts +170 -2
- package/lib/Category.type.js +6 -2
- package/lib/PaymentMethod.type.d.ts +180 -2
- package/lib/PaymentMethod.type.js +6 -2
- package/lib/Subscription.type.d.ts +587 -2
- package/lib/Subscription.type.js +6 -2
- package/lib/Transaction.type.d.ts +582 -2
- package/lib/Transaction.type.js +6 -2
- package/package.json +1 -1
|
@@ -152,11 +152,189 @@ export declare const ZUpdatePaymentMethodPayload: z.ZodObject<{
|
|
|
152
152
|
description?: string | null | undefined;
|
|
153
153
|
}>;
|
|
154
154
|
export type TUpdatePaymentMethodPayload = z.infer<typeof ZUpdatePaymentMethodPayload>;
|
|
155
|
-
export declare const ZDeletePaymentMethodPayload: z.ZodObject<{
|
|
155
|
+
export declare const ZDeletePaymentMethodPayload: z.ZodArray<z.ZodObject<{
|
|
156
156
|
paymentMethodId: z.ZodNumber;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
158
|
paymentMethodId: number;
|
|
159
159
|
}, {
|
|
160
160
|
paymentMethodId: number;
|
|
161
|
-
}>;
|
|
161
|
+
}>, "many">;
|
|
162
162
|
export type TDeletePaymentMethodPayload = z.infer<typeof ZDeletePaymentMethodPayload>;
|
|
163
|
+
export declare const ZDeletePaymentMethodResponsePayload: z.ZodObject<{
|
|
164
|
+
success: z.ZodArray<z.ZodObject<{
|
|
165
|
+
id: z.ZodNumber;
|
|
166
|
+
owner: z.ZodObject<{
|
|
167
|
+
uuid: z.ZodString;
|
|
168
|
+
isVerified: z.ZodDefault<z.ZodBoolean>;
|
|
169
|
+
role: z.ZodObject<{
|
|
170
|
+
id: z.ZodNumber;
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
description: z.ZodDefault<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
|
|
173
|
+
permissions: z.ZodNumber;
|
|
174
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodNumber]>, Date, number | Date>;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
id: number;
|
|
177
|
+
name: string;
|
|
178
|
+
description: string | null;
|
|
179
|
+
permissions: number;
|
|
180
|
+
createdAt: Date;
|
|
181
|
+
}, {
|
|
182
|
+
id: number;
|
|
183
|
+
name: string;
|
|
184
|
+
permissions: number;
|
|
185
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
186
|
+
description?: string | null | undefined;
|
|
187
|
+
}>;
|
|
188
|
+
email: z.ZodString;
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
surname: z.ZodString;
|
|
191
|
+
password: z.ZodString;
|
|
192
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodNumber]>, Date, number | Date>;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
name: string;
|
|
195
|
+
role: {
|
|
196
|
+
id: number;
|
|
197
|
+
name: string;
|
|
198
|
+
description: string | null;
|
|
199
|
+
permissions: number;
|
|
200
|
+
createdAt: Date;
|
|
201
|
+
};
|
|
202
|
+
email: string;
|
|
203
|
+
uuid: string;
|
|
204
|
+
createdAt: Date;
|
|
205
|
+
isVerified: boolean;
|
|
206
|
+
surname: string;
|
|
207
|
+
password: string;
|
|
208
|
+
}, {
|
|
209
|
+
name: string;
|
|
210
|
+
role: {
|
|
211
|
+
id: number;
|
|
212
|
+
name: string;
|
|
213
|
+
permissions: number;
|
|
214
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
215
|
+
description?: string | null | undefined;
|
|
216
|
+
};
|
|
217
|
+
email: string;
|
|
218
|
+
uuid: string;
|
|
219
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
220
|
+
surname: string;
|
|
221
|
+
password: string;
|
|
222
|
+
isVerified?: boolean | undefined;
|
|
223
|
+
}>;
|
|
224
|
+
name: z.ZodString;
|
|
225
|
+
address: z.ZodString;
|
|
226
|
+
provider: z.ZodString;
|
|
227
|
+
description: z.ZodDefault<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
|
|
228
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodDate, z.ZodNumber]>, Date, number | Date>;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
id: number;
|
|
231
|
+
address: string;
|
|
232
|
+
name: string;
|
|
233
|
+
description: string | null;
|
|
234
|
+
createdAt: Date;
|
|
235
|
+
owner: {
|
|
236
|
+
name: string;
|
|
237
|
+
role: {
|
|
238
|
+
id: number;
|
|
239
|
+
name: string;
|
|
240
|
+
description: string | null;
|
|
241
|
+
permissions: number;
|
|
242
|
+
createdAt: Date;
|
|
243
|
+
};
|
|
244
|
+
email: string;
|
|
245
|
+
uuid: string;
|
|
246
|
+
createdAt: Date;
|
|
247
|
+
isVerified: boolean;
|
|
248
|
+
surname: string;
|
|
249
|
+
password: string;
|
|
250
|
+
};
|
|
251
|
+
provider: string;
|
|
252
|
+
}, {
|
|
253
|
+
id: number;
|
|
254
|
+
address: string;
|
|
255
|
+
name: string;
|
|
256
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
257
|
+
owner: {
|
|
258
|
+
name: string;
|
|
259
|
+
role: {
|
|
260
|
+
id: number;
|
|
261
|
+
name: string;
|
|
262
|
+
permissions: number;
|
|
263
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
264
|
+
description?: string | null | undefined;
|
|
265
|
+
};
|
|
266
|
+
email: string;
|
|
267
|
+
uuid: string;
|
|
268
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
269
|
+
surname: string;
|
|
270
|
+
password: string;
|
|
271
|
+
isVerified?: boolean | undefined;
|
|
272
|
+
};
|
|
273
|
+
provider: string;
|
|
274
|
+
description?: string | null | undefined;
|
|
275
|
+
}>, "many">;
|
|
276
|
+
failed: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
277
|
+
paymentMethodId: z.ZodNumber;
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
paymentMethodId: number;
|
|
280
|
+
}, {
|
|
281
|
+
paymentMethodId: number;
|
|
282
|
+
}>, "many">, "many">;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
failed: {
|
|
285
|
+
paymentMethodId: number;
|
|
286
|
+
}[][];
|
|
287
|
+
success: {
|
|
288
|
+
id: number;
|
|
289
|
+
address: string;
|
|
290
|
+
name: string;
|
|
291
|
+
description: string | null;
|
|
292
|
+
createdAt: Date;
|
|
293
|
+
owner: {
|
|
294
|
+
name: string;
|
|
295
|
+
role: {
|
|
296
|
+
id: number;
|
|
297
|
+
name: string;
|
|
298
|
+
description: string | null;
|
|
299
|
+
permissions: number;
|
|
300
|
+
createdAt: Date;
|
|
301
|
+
};
|
|
302
|
+
email: string;
|
|
303
|
+
uuid: string;
|
|
304
|
+
createdAt: Date;
|
|
305
|
+
isVerified: boolean;
|
|
306
|
+
surname: string;
|
|
307
|
+
password: string;
|
|
308
|
+
};
|
|
309
|
+
provider: string;
|
|
310
|
+
}[];
|
|
311
|
+
}, {
|
|
312
|
+
failed: {
|
|
313
|
+
paymentMethodId: number;
|
|
314
|
+
}[][];
|
|
315
|
+
success: {
|
|
316
|
+
id: number;
|
|
317
|
+
address: string;
|
|
318
|
+
name: string;
|
|
319
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
320
|
+
owner: {
|
|
321
|
+
name: string;
|
|
322
|
+
role: {
|
|
323
|
+
id: number;
|
|
324
|
+
name: string;
|
|
325
|
+
permissions: number;
|
|
326
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
327
|
+
description?: string | null | undefined;
|
|
328
|
+
};
|
|
329
|
+
email: string;
|
|
330
|
+
uuid: string;
|
|
331
|
+
createdAt: (number | Date) & (number | Date | undefined);
|
|
332
|
+
surname: string;
|
|
333
|
+
password: string;
|
|
334
|
+
isVerified?: boolean | undefined;
|
|
335
|
+
};
|
|
336
|
+
provider: string;
|
|
337
|
+
description?: string | null | undefined;
|
|
338
|
+
}[];
|
|
339
|
+
}>;
|
|
340
|
+
export type TDeletePaymentMethodResponsePayload = z.infer<typeof ZDeletePaymentMethodResponsePayload>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZDeletePaymentMethodPayload = exports.ZUpdatePaymentMethodPayload = exports.ZCreatePaymentMethodPayload = exports.ZPaymentMethod = void 0;
|
|
3
|
+
exports.ZDeletePaymentMethodResponsePayload = exports.ZDeletePaymentMethodPayload = exports.ZUpdatePaymentMethodPayload = exports.ZCreatePaymentMethodPayload = exports.ZPaymentMethod = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const User_type_1 = require("./User.type");
|
|
6
6
|
const Base_type_1 = require("./Base.type");
|
|
@@ -30,6 +30,10 @@ exports.ZUpdatePaymentMethodPayload = zod_1.z.object({
|
|
|
30
30
|
provider: ZProvider,
|
|
31
31
|
description: Base_type_1.ZDescription,
|
|
32
32
|
});
|
|
33
|
-
exports.ZDeletePaymentMethodPayload = zod_1.z.object({
|
|
33
|
+
exports.ZDeletePaymentMethodPayload = zod_1.z.array(zod_1.z.object({
|
|
34
34
|
paymentMethodId: zod_1.z.number(),
|
|
35
|
+
}));
|
|
36
|
+
exports.ZDeletePaymentMethodResponsePayload = zod_1.z.object({
|
|
37
|
+
success: zod_1.z.array(exports.ZPaymentMethod),
|
|
38
|
+
failed: zod_1.z.array(exports.ZDeletePaymentMethodPayload),
|
|
35
39
|
});
|