@budgetbuddyde/types 1.0.47 → 1.0.48
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.types.d.ts +9 -9
- package/lib/Budget.types.js +3 -3
- package/package.json +1 -1
package/lib/Budget.types.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export type TBudget = z.infer<typeof ZBudget>;
|
|
|
37
37
|
export declare const ZExpandedBudget: z.ZodObject<{
|
|
38
38
|
owner: z.ZodString;
|
|
39
39
|
label: z.ZodString;
|
|
40
|
-
|
|
40
|
+
categories: z.ZodArray<z.ZodString, "many">;
|
|
41
41
|
expand: z.ZodObject<{
|
|
42
42
|
categories: z.ZodArray<z.ZodObject<{
|
|
43
43
|
owner: z.ZodString;
|
|
@@ -106,8 +106,8 @@ export declare const ZExpandedBudget: z.ZodObject<{
|
|
|
106
106
|
created: Date;
|
|
107
107
|
updated: Date;
|
|
108
108
|
owner: string;
|
|
109
|
-
category: string[];
|
|
110
109
|
budget: number;
|
|
110
|
+
categories: string[];
|
|
111
111
|
expand: {
|
|
112
112
|
categories: {
|
|
113
113
|
id: string;
|
|
@@ -129,8 +129,8 @@ export declare const ZExpandedBudget: z.ZodObject<{
|
|
|
129
129
|
created: (string | number | Date) & (string | number | Date | undefined);
|
|
130
130
|
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
131
131
|
owner: string;
|
|
132
|
-
category: string[];
|
|
133
132
|
budget: number;
|
|
133
|
+
categories: string[];
|
|
134
134
|
expand: {
|
|
135
135
|
categories: {
|
|
136
136
|
id: string;
|
|
@@ -224,41 +224,41 @@ export type TExpandedBudgetProgress = z.infer<typeof ZExpandedBudgetProgress>;
|
|
|
224
224
|
export declare const ZCreateBudgetPayload: z.ZodObject<{
|
|
225
225
|
owner: z.ZodString;
|
|
226
226
|
label: z.ZodString;
|
|
227
|
-
|
|
227
|
+
categories: z.ZodArray<z.ZodString, "many">;
|
|
228
228
|
budget: z.ZodNumber;
|
|
229
229
|
type: z.ZodEnum<["include", "exclude"]>;
|
|
230
230
|
}, "strip", z.ZodTypeAny, {
|
|
231
231
|
type: "include" | "exclude";
|
|
232
232
|
label: string;
|
|
233
233
|
owner: string;
|
|
234
|
-
category: string[];
|
|
235
234
|
budget: number;
|
|
235
|
+
categories: string[];
|
|
236
236
|
}, {
|
|
237
237
|
type: "include" | "exclude";
|
|
238
238
|
label: string;
|
|
239
239
|
owner: string;
|
|
240
|
-
category: string[];
|
|
241
240
|
budget: number;
|
|
241
|
+
categories: string[];
|
|
242
242
|
}>;
|
|
243
243
|
export type TCreateBudgetPayload = z.infer<typeof ZCreateBudgetPayload>;
|
|
244
244
|
export declare const ZUpdateBudgetPayload: z.ZodObject<{
|
|
245
245
|
owner: z.ZodString;
|
|
246
246
|
label: z.ZodString;
|
|
247
|
-
|
|
247
|
+
categories: z.ZodArray<z.ZodString, "many">;
|
|
248
248
|
budget: z.ZodNumber;
|
|
249
249
|
type: z.ZodEnum<["include", "exclude"]>;
|
|
250
250
|
}, "strip", z.ZodTypeAny, {
|
|
251
251
|
type: "include" | "exclude";
|
|
252
252
|
label: string;
|
|
253
253
|
owner: string;
|
|
254
|
-
category: string[];
|
|
255
254
|
budget: number;
|
|
255
|
+
categories: string[];
|
|
256
256
|
}, {
|
|
257
257
|
type: "include" | "exclude";
|
|
258
258
|
label: string;
|
|
259
259
|
owner: string;
|
|
260
|
-
category: string[];
|
|
261
260
|
budget: number;
|
|
261
|
+
categories: string[];
|
|
262
262
|
}>;
|
|
263
263
|
export type TUpdateBudgetPayload = z.infer<typeof ZUpdateBudgetPayload>;
|
|
264
264
|
export declare const ZDeleteBudgetPayload: z.ZodObject<{
|
package/lib/Budget.types.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.ZExpandedBudget = zod_1.z.object({
|
|
|
19
19
|
...zod_1.z.object({
|
|
20
20
|
owner: PocketBase_types_1.ZId,
|
|
21
21
|
label: zod_1.z.string(),
|
|
22
|
-
|
|
22
|
+
categories: zod_1.z.array(PocketBase_types_1.ZId),
|
|
23
23
|
expand: zod_1.z.object({
|
|
24
24
|
categories: zod_1.z.array(Category_types_1.ZCategory),
|
|
25
25
|
}),
|
|
@@ -38,14 +38,14 @@ exports.ZExpandedBudgetProgress = zod_1.z.object({
|
|
|
38
38
|
exports.ZCreateBudgetPayload = zod_1.z.object({
|
|
39
39
|
owner: PocketBase_types_1.ZId,
|
|
40
40
|
label: zod_1.z.string(),
|
|
41
|
-
|
|
41
|
+
categories: zod_1.z.array(PocketBase_types_1.ZId),
|
|
42
42
|
budget: zod_1.z.number().min(0),
|
|
43
43
|
type: zod_1.z.enum(['include', 'exclude']),
|
|
44
44
|
});
|
|
45
45
|
exports.ZUpdateBudgetPayload = zod_1.z.object({
|
|
46
46
|
owner: PocketBase_types_1.ZId,
|
|
47
47
|
label: zod_1.z.string(),
|
|
48
|
-
|
|
48
|
+
categories: zod_1.z.array(PocketBase_types_1.ZId),
|
|
49
49
|
budget: zod_1.z.number().min(0),
|
|
50
50
|
type: zod_1.z.enum(['include', 'exclude']),
|
|
51
51
|
});
|