@budgetbuddyde/types 1.0.49 → 1.0.50
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 +76 -0
- package/lib/Budget.types.js +1 -1
- package/package.json +1 -1
package/lib/Budget.types.d.ts
CHANGED
|
@@ -188,6 +188,58 @@ export declare const ZExpandedBudgetProgress: z.ZodObject<{
|
|
|
188
188
|
owner: z.ZodString;
|
|
189
189
|
label: z.ZodString;
|
|
190
190
|
categories: z.ZodArray<z.ZodString, "many">;
|
|
191
|
+
expand: z.ZodObject<{
|
|
192
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
193
|
+
owner: z.ZodString;
|
|
194
|
+
name: z.ZodString;
|
|
195
|
+
description: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
196
|
+
collectionId: z.ZodString;
|
|
197
|
+
collectionName: z.ZodString;
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
created: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
200
|
+
updated: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
id: string;
|
|
203
|
+
name: string;
|
|
204
|
+
description: string | null;
|
|
205
|
+
collectionId: string;
|
|
206
|
+
collectionName: string;
|
|
207
|
+
created: Date;
|
|
208
|
+
updated: Date;
|
|
209
|
+
owner: string;
|
|
210
|
+
}, {
|
|
211
|
+
id: string;
|
|
212
|
+
name: string;
|
|
213
|
+
collectionId: string;
|
|
214
|
+
collectionName: string;
|
|
215
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
216
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
217
|
+
owner: string;
|
|
218
|
+
description?: string | null | undefined;
|
|
219
|
+
}>, "many">;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
categories: {
|
|
222
|
+
id: string;
|
|
223
|
+
name: string;
|
|
224
|
+
description: string | null;
|
|
225
|
+
collectionId: string;
|
|
226
|
+
collectionName: string;
|
|
227
|
+
created: Date;
|
|
228
|
+
updated: Date;
|
|
229
|
+
owner: string;
|
|
230
|
+
}[];
|
|
231
|
+
}, {
|
|
232
|
+
categories: {
|
|
233
|
+
id: string;
|
|
234
|
+
name: string;
|
|
235
|
+
collectionId: string;
|
|
236
|
+
collectionName: string;
|
|
237
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
238
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
239
|
+
owner: string;
|
|
240
|
+
description?: string | null | undefined;
|
|
241
|
+
}[];
|
|
242
|
+
}>;
|
|
191
243
|
budget: z.ZodNumber;
|
|
192
244
|
type: z.ZodEnum<["include", "exclude"]>;
|
|
193
245
|
collectionId: z.ZodString;
|
|
@@ -207,6 +259,18 @@ export declare const ZExpandedBudgetProgress: z.ZodObject<{
|
|
|
207
259
|
owner: string;
|
|
208
260
|
categories: string[];
|
|
209
261
|
budget: number;
|
|
262
|
+
expand: {
|
|
263
|
+
categories: {
|
|
264
|
+
id: string;
|
|
265
|
+
name: string;
|
|
266
|
+
description: string | null;
|
|
267
|
+
collectionId: string;
|
|
268
|
+
collectionName: string;
|
|
269
|
+
created: Date;
|
|
270
|
+
updated: Date;
|
|
271
|
+
owner: string;
|
|
272
|
+
}[];
|
|
273
|
+
};
|
|
210
274
|
}, {
|
|
211
275
|
type: "include" | "exclude";
|
|
212
276
|
progress: number;
|
|
@@ -219,6 +283,18 @@ export declare const ZExpandedBudgetProgress: z.ZodObject<{
|
|
|
219
283
|
owner: string;
|
|
220
284
|
categories: string[];
|
|
221
285
|
budget: number;
|
|
286
|
+
expand: {
|
|
287
|
+
categories: {
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
collectionId: string;
|
|
291
|
+
collectionName: string;
|
|
292
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
293
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
294
|
+
owner: string;
|
|
295
|
+
description?: string | null | undefined;
|
|
296
|
+
}[];
|
|
297
|
+
};
|
|
222
298
|
}>;
|
|
223
299
|
export type TExpandedBudgetProgress = z.infer<typeof ZExpandedBudgetProgress>;
|
|
224
300
|
export declare const ZCreateBudgetPayload: z.ZodObject<{
|
package/lib/Budget.types.js
CHANGED
|
@@ -32,7 +32,7 @@ exports.ZBudgetProgress = zod_1.z.object({
|
|
|
32
32
|
progress: zod_1.z.number(),
|
|
33
33
|
});
|
|
34
34
|
exports.ZExpandedBudgetProgress = zod_1.z.object({
|
|
35
|
-
...exports.
|
|
35
|
+
...exports.ZExpandedBudget.shape,
|
|
36
36
|
progress: zod_1.z.number(),
|
|
37
37
|
});
|
|
38
38
|
exports.ZCreateBudgetPayload = zod_1.z.object({
|