@budgetbuddyde/types 1.0.37 → 1.0.39
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/Stocks/Stock.types.d.ts +19 -19
- package/lib/Stocks/Stock.types.js +1 -1
- package/lib/User.types.d.ts +1 -1
- package/lib/User.types.js +6 -2
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export declare const ZStockQuote: z.ZodObject<{
|
|
|
19
19
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
20
20
|
price: z.ZodNumber;
|
|
21
21
|
isin: z.ZodString;
|
|
22
|
-
cachedAt: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date
|
|
22
|
+
cachedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
currency: string;
|
|
25
25
|
date: Date;
|
|
@@ -27,7 +27,7 @@ export declare const ZStockQuote: z.ZodObject<{
|
|
|
27
27
|
exchange: string;
|
|
28
28
|
price: number;
|
|
29
29
|
isin: string;
|
|
30
|
-
cachedAt
|
|
30
|
+
cachedAt?: Date | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
currency: string;
|
|
33
33
|
date: (string | number | Date) & (string | number | Date | undefined);
|
|
@@ -35,7 +35,7 @@ export declare const ZStockQuote: z.ZodObject<{
|
|
|
35
35
|
exchange: string;
|
|
36
36
|
price: number;
|
|
37
37
|
isin: string;
|
|
38
|
-
cachedAt
|
|
38
|
+
cachedAt?: string | number | Date | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
export type TStockQuote = z.infer<typeof ZStockQuote>;
|
|
41
41
|
export declare const ZAsset: z.ZodObject<{
|
|
@@ -1222,7 +1222,7 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
1222
1222
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
1223
1223
|
price: z.ZodNumber;
|
|
1224
1224
|
isin: z.ZodString;
|
|
1225
|
-
cachedAt: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date
|
|
1225
|
+
cachedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>>;
|
|
1226
1226
|
}, "strip", z.ZodTypeAny, {
|
|
1227
1227
|
currency: string;
|
|
1228
1228
|
date: Date;
|
|
@@ -1230,7 +1230,7 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
1230
1230
|
exchange: string;
|
|
1231
1231
|
price: number;
|
|
1232
1232
|
isin: string;
|
|
1233
|
-
cachedAt
|
|
1233
|
+
cachedAt?: Date | undefined;
|
|
1234
1234
|
}, {
|
|
1235
1235
|
currency: string;
|
|
1236
1236
|
date: (string | number | Date) & (string | number | Date | undefined);
|
|
@@ -1238,7 +1238,7 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
1238
1238
|
exchange: string;
|
|
1239
1239
|
price: number;
|
|
1240
1240
|
isin: string;
|
|
1241
|
-
cachedAt
|
|
1241
|
+
cachedAt?: string | number | Date | undefined;
|
|
1242
1242
|
}>;
|
|
1243
1243
|
details: z.ZodObject<{
|
|
1244
1244
|
securityDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -2409,7 +2409,7 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
2409
2409
|
exchange: string;
|
|
2410
2410
|
price: number;
|
|
2411
2411
|
isin: string;
|
|
2412
|
-
cachedAt
|
|
2412
|
+
cachedAt?: Date | undefined;
|
|
2413
2413
|
};
|
|
2414
2414
|
}, {
|
|
2415
2415
|
details: {
|
|
@@ -2625,7 +2625,7 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
2625
2625
|
exchange: string;
|
|
2626
2626
|
price: number;
|
|
2627
2627
|
isin: string;
|
|
2628
|
-
cachedAt
|
|
2628
|
+
cachedAt?: string | number | Date | undefined;
|
|
2629
2629
|
};
|
|
2630
2630
|
}>;
|
|
2631
2631
|
export type TAssetDetails = z.infer<typeof ZAssetDetails>;
|
|
@@ -2849,7 +2849,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2849
2849
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
2850
2850
|
price: z.ZodNumber;
|
|
2851
2851
|
isin: z.ZodString;
|
|
2852
|
-
cachedAt: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date
|
|
2852
|
+
cachedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>>;
|
|
2853
2853
|
}, "strip", z.ZodTypeAny, {
|
|
2854
2854
|
currency: string;
|
|
2855
2855
|
date: Date;
|
|
@@ -2857,7 +2857,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2857
2857
|
exchange: string;
|
|
2858
2858
|
price: number;
|
|
2859
2859
|
isin: string;
|
|
2860
|
-
cachedAt
|
|
2860
|
+
cachedAt?: Date | undefined;
|
|
2861
2861
|
}, {
|
|
2862
2862
|
currency: string;
|
|
2863
2863
|
date: (string | number | Date) & (string | number | Date | undefined);
|
|
@@ -2865,7 +2865,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2865
2865
|
exchange: string;
|
|
2866
2866
|
price: number;
|
|
2867
2867
|
isin: string;
|
|
2868
|
-
cachedAt
|
|
2868
|
+
cachedAt?: string | number | Date | undefined;
|
|
2869
2869
|
}>;
|
|
2870
2870
|
collectionId: z.ZodString;
|
|
2871
2871
|
collectionName: z.ZodString;
|
|
@@ -2904,7 +2904,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2904
2904
|
exchange: string;
|
|
2905
2905
|
price: number;
|
|
2906
2906
|
isin: string;
|
|
2907
|
-
cachedAt
|
|
2907
|
+
cachedAt?: Date | undefined;
|
|
2908
2908
|
};
|
|
2909
2909
|
bought_at: Date;
|
|
2910
2910
|
buy_in: number;
|
|
@@ -2942,7 +2942,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2942
2942
|
exchange: string;
|
|
2943
2943
|
price: number;
|
|
2944
2944
|
isin: string;
|
|
2945
|
-
cachedAt
|
|
2945
|
+
cachedAt?: string | number | Date | undefined;
|
|
2946
2946
|
};
|
|
2947
2947
|
bought_at: (string | number | Date) & (string | number | Date | undefined);
|
|
2948
2948
|
buy_in: number;
|
|
@@ -3294,7 +3294,7 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3294
3294
|
name: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
3295
3295
|
surname: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
3296
3296
|
verified: z.ZodBoolean;
|
|
3297
|
-
marked_for_deletion: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>>;
|
|
3297
|
+
marked_for_deletion: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date | null, string | number | Date>>;
|
|
3298
3298
|
newsletter: z.ZodArray<z.ZodString, "many">;
|
|
3299
3299
|
collectionId: z.ZodString;
|
|
3300
3300
|
collectionName: z.ZodString;
|
|
@@ -3422,7 +3422,7 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3422
3422
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3423
3423
|
price: z.ZodNumber;
|
|
3424
3424
|
isin: z.ZodString;
|
|
3425
|
-
cachedAt: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date
|
|
3425
|
+
cachedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>>;
|
|
3426
3426
|
}, "strip", z.ZodTypeAny, {
|
|
3427
3427
|
currency: string;
|
|
3428
3428
|
date: Date;
|
|
@@ -3430,7 +3430,7 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3430
3430
|
exchange: string;
|
|
3431
3431
|
price: number;
|
|
3432
3432
|
isin: string;
|
|
3433
|
-
cachedAt
|
|
3433
|
+
cachedAt?: Date | undefined;
|
|
3434
3434
|
}, {
|
|
3435
3435
|
currency: string;
|
|
3436
3436
|
date: (string | number | Date) & (string | number | Date | undefined);
|
|
@@ -3438,7 +3438,7 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3438
3438
|
exchange: string;
|
|
3439
3439
|
price: number;
|
|
3440
3440
|
isin: string;
|
|
3441
|
-
cachedAt
|
|
3441
|
+
cachedAt?: string | number | Date | undefined;
|
|
3442
3442
|
}>;
|
|
3443
3443
|
collectionId: z.ZodString;
|
|
3444
3444
|
collectionName: z.ZodString;
|
|
@@ -3492,7 +3492,7 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3492
3492
|
exchange: string;
|
|
3493
3493
|
price: number;
|
|
3494
3494
|
isin: string;
|
|
3495
|
-
cachedAt
|
|
3495
|
+
cachedAt?: Date | undefined;
|
|
3496
3496
|
};
|
|
3497
3497
|
}, {
|
|
3498
3498
|
id: string;
|
|
@@ -3541,7 +3541,7 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3541
3541
|
exchange: string;
|
|
3542
3542
|
price: number;
|
|
3543
3543
|
isin: string;
|
|
3544
|
-
cachedAt
|
|
3544
|
+
cachedAt?: string | number | Date | undefined;
|
|
3545
3545
|
};
|
|
3546
3546
|
}>;
|
|
3547
3547
|
export type TAssetWatchlistWithQuote = z.infer<typeof ZAssetWatchlistWithQuote>;
|
|
@@ -20,7 +20,7 @@ exports.ZStockQuote = zod_1.z.object({
|
|
|
20
20
|
datetime: Base_type_1.ZDate,
|
|
21
21
|
price: zod_1.z.number(),
|
|
22
22
|
isin: zod_1.z.string().max(12),
|
|
23
|
-
cachedAt: Base_type_1.ZDate,
|
|
23
|
+
cachedAt: Base_type_1.ZDate.optional(),
|
|
24
24
|
});
|
|
25
25
|
exports.ZAsset = zod_1.z.object({
|
|
26
26
|
_id: zod_1.z.object({
|
package/lib/User.types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const ZUser: z.ZodNullable<z.ZodObject<{
|
|
|
7
7
|
name: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
8
8
|
surname: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
9
9
|
verified: z.ZodBoolean;
|
|
10
|
-
marked_for_deletion: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>>;
|
|
10
|
+
marked_for_deletion: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date | null, string | number | Date>>;
|
|
11
11
|
newsletter: z.ZodArray<z.ZodString, "many">;
|
|
12
12
|
collectionId: z.ZodString;
|
|
13
13
|
collectionName: z.ZodString;
|
package/lib/User.types.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ZUser = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const PocketBase_types_1 = require("./PocketBase.types");
|
|
6
|
-
const Base_type_1 = require("./Base.type");
|
|
7
6
|
exports.ZUser = zod_1.z
|
|
8
7
|
.object({
|
|
9
8
|
...PocketBase_types_1.ZBaseModel.shape,
|
|
@@ -15,7 +14,12 @@ exports.ZUser = zod_1.z
|
|
|
15
14
|
name: PocketBase_types_1.ZNullableString,
|
|
16
15
|
surname: PocketBase_types_1.ZNullableString,
|
|
17
16
|
verified: zod_1.z.boolean(),
|
|
18
|
-
marked_for_deletion:
|
|
17
|
+
marked_for_deletion: zod_1.z
|
|
18
|
+
.date()
|
|
19
|
+
.or(zod_1.z.number())
|
|
20
|
+
.or(zod_1.z.string())
|
|
21
|
+
.transform(val => (typeof val === 'string' && val.length === 0 ? null : new Date(val)))
|
|
22
|
+
.nullable(),
|
|
19
23
|
newsletter: zod_1.z.array(PocketBase_types_1.ZId),
|
|
20
24
|
}).shape,
|
|
21
25
|
})
|