@budgetbuddyde/types 1.0.52 → 1.0.53
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 +28 -28
- package/lib/Stocks/Stock.types.js +2 -2
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ export declare const ZSecurity: z.ZodObject<{
|
|
|
36
36
|
*/
|
|
37
37
|
export declare const ZStockQuote: z.ZodObject<{
|
|
38
38
|
currency: z.ZodString;
|
|
39
|
-
exchange: z.ZodString
|
|
39
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
40
40
|
date: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
41
41
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
42
42
|
price: z.ZodNumber;
|
|
@@ -47,16 +47,16 @@ export declare const ZStockQuote: z.ZodObject<{
|
|
|
47
47
|
date: Date;
|
|
48
48
|
datetime: Date;
|
|
49
49
|
isin: string;
|
|
50
|
-
exchange: string;
|
|
51
50
|
price: number;
|
|
51
|
+
exchange?: string | undefined;
|
|
52
52
|
cachedAt?: Date | undefined;
|
|
53
53
|
}, {
|
|
54
54
|
currency: string;
|
|
55
55
|
date: string | number | Date;
|
|
56
56
|
datetime: string | number | Date;
|
|
57
57
|
isin: string;
|
|
58
|
-
exchange: string;
|
|
59
58
|
price: number;
|
|
59
|
+
exchange?: string | undefined;
|
|
60
60
|
cachedAt?: string | number | Date | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
export type TStockQuote = z.infer<typeof ZStockQuote>;
|
|
@@ -76,7 +76,7 @@ export declare const ZAsset: z.ZodObject<{
|
|
|
76
76
|
logo: z.ZodString;
|
|
77
77
|
security: z.ZodObject<{
|
|
78
78
|
currency: z.ZodString;
|
|
79
|
-
exchange: z.ZodString
|
|
79
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
80
80
|
date: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
81
81
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
82
82
|
price: z.ZodNumber;
|
|
@@ -87,16 +87,16 @@ export declare const ZAsset: z.ZodObject<{
|
|
|
87
87
|
date: Date;
|
|
88
88
|
datetime: Date;
|
|
89
89
|
isin: string;
|
|
90
|
-
exchange: string;
|
|
91
90
|
price: number;
|
|
91
|
+
exchange?: string | undefined;
|
|
92
92
|
cachedAt?: Date | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
currency: string;
|
|
95
95
|
date: string | number | Date;
|
|
96
96
|
datetime: string | number | Date;
|
|
97
97
|
isin: string;
|
|
98
|
-
exchange: string;
|
|
99
98
|
price: number;
|
|
99
|
+
exchange?: string | undefined;
|
|
100
100
|
cachedAt?: string | number | Date | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -112,8 +112,8 @@ export declare const ZAsset: z.ZodObject<{
|
|
|
112
112
|
date: Date;
|
|
113
113
|
datetime: Date;
|
|
114
114
|
isin: string;
|
|
115
|
-
exchange: string;
|
|
116
115
|
price: number;
|
|
116
|
+
exchange?: string | undefined;
|
|
117
117
|
cachedAt?: Date | undefined;
|
|
118
118
|
};
|
|
119
119
|
}, {
|
|
@@ -129,8 +129,8 @@ export declare const ZAsset: z.ZodObject<{
|
|
|
129
129
|
date: string | number | Date;
|
|
130
130
|
datetime: string | number | Date;
|
|
131
131
|
isin: string;
|
|
132
|
-
exchange: string;
|
|
133
132
|
price: number;
|
|
133
|
+
exchange?: string | undefined;
|
|
134
134
|
cachedAt?: string | number | Date | undefined;
|
|
135
135
|
};
|
|
136
136
|
}>;
|
|
@@ -1244,7 +1244,7 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
1244
1244
|
}>;
|
|
1245
1245
|
quote: z.ZodObject<{
|
|
1246
1246
|
currency: z.ZodString;
|
|
1247
|
-
exchange: z.ZodString
|
|
1247
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
1248
1248
|
date: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
1249
1249
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
1250
1250
|
price: z.ZodNumber;
|
|
@@ -1255,16 +1255,16 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
1255
1255
|
date: Date;
|
|
1256
1256
|
datetime: Date;
|
|
1257
1257
|
isin: string;
|
|
1258
|
-
exchange: string;
|
|
1259
1258
|
price: number;
|
|
1259
|
+
exchange?: string | undefined;
|
|
1260
1260
|
cachedAt?: Date | undefined;
|
|
1261
1261
|
}, {
|
|
1262
1262
|
currency: string;
|
|
1263
1263
|
date: string | number | Date;
|
|
1264
1264
|
datetime: string | number | Date;
|
|
1265
1265
|
isin: string;
|
|
1266
|
-
exchange: string;
|
|
1267
1266
|
price: number;
|
|
1267
|
+
exchange?: string | undefined;
|
|
1268
1268
|
cachedAt?: string | number | Date | undefined;
|
|
1269
1269
|
}>;
|
|
1270
1270
|
details: z.ZodObject<{
|
|
@@ -2434,8 +2434,8 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
2434
2434
|
date: Date;
|
|
2435
2435
|
datetime: Date;
|
|
2436
2436
|
isin: string;
|
|
2437
|
-
exchange: string;
|
|
2438
2437
|
price: number;
|
|
2438
|
+
exchange?: string | undefined;
|
|
2439
2439
|
cachedAt?: Date | undefined;
|
|
2440
2440
|
};
|
|
2441
2441
|
}, {
|
|
@@ -2650,8 +2650,8 @@ export declare const ZAssetDetails: z.ZodObject<{
|
|
|
2650
2650
|
date: string | number | Date;
|
|
2651
2651
|
datetime: string | number | Date;
|
|
2652
2652
|
isin: string;
|
|
2653
|
-
exchange: string;
|
|
2654
2653
|
price: number;
|
|
2654
|
+
exchange?: string | undefined;
|
|
2655
2655
|
cachedAt?: string | number | Date | undefined;
|
|
2656
2656
|
};
|
|
2657
2657
|
}>;
|
|
@@ -2871,7 +2871,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2871
2871
|
volume: z.ZodNumber;
|
|
2872
2872
|
quote: z.ZodObject<{
|
|
2873
2873
|
currency: z.ZodString;
|
|
2874
|
-
exchange: z.ZodString
|
|
2874
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
2875
2875
|
date: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
2876
2876
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
2877
2877
|
price: z.ZodNumber;
|
|
@@ -2882,16 +2882,16 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2882
2882
|
date: Date;
|
|
2883
2883
|
datetime: Date;
|
|
2884
2884
|
isin: string;
|
|
2885
|
-
exchange: string;
|
|
2886
2885
|
price: number;
|
|
2886
|
+
exchange?: string | undefined;
|
|
2887
2887
|
cachedAt?: Date | undefined;
|
|
2888
2888
|
}, {
|
|
2889
2889
|
currency: string;
|
|
2890
2890
|
date: string | number | Date;
|
|
2891
2891
|
datetime: string | number | Date;
|
|
2892
2892
|
isin: string;
|
|
2893
|
-
exchange: string;
|
|
2894
2893
|
price: number;
|
|
2894
|
+
exchange?: string | undefined;
|
|
2895
2895
|
cachedAt?: string | number | Date | undefined;
|
|
2896
2896
|
}>;
|
|
2897
2897
|
collectionId: z.ZodString;
|
|
@@ -2929,8 +2929,8 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2929
2929
|
date: Date;
|
|
2930
2930
|
datetime: Date;
|
|
2931
2931
|
isin: string;
|
|
2932
|
-
exchange: string;
|
|
2933
2932
|
price: number;
|
|
2933
|
+
exchange?: string | undefined;
|
|
2934
2934
|
cachedAt?: Date | undefined;
|
|
2935
2935
|
};
|
|
2936
2936
|
bought_at: Date;
|
|
@@ -2967,8 +2967,8 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2967
2967
|
date: string | number | Date;
|
|
2968
2968
|
datetime: string | number | Date;
|
|
2969
2969
|
isin: string;
|
|
2970
|
-
exchange: string;
|
|
2971
2970
|
price: number;
|
|
2971
|
+
exchange?: string | undefined;
|
|
2972
2972
|
cachedAt?: string | number | Date | undefined;
|
|
2973
2973
|
};
|
|
2974
2974
|
bought_at: string | number | Date;
|
|
@@ -3144,18 +3144,18 @@ export declare const ZRelatedStockWithQuotes: z.ZodObject<{
|
|
|
3144
3144
|
quotes: z.ZodArray<z.ZodObject<{
|
|
3145
3145
|
date: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3146
3146
|
price: z.ZodNumber;
|
|
3147
|
-
exchange: z.ZodString
|
|
3147
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
3148
3148
|
currency: z.ZodString;
|
|
3149
3149
|
}, "strip", z.ZodTypeAny, {
|
|
3150
3150
|
currency: string;
|
|
3151
3151
|
date: Date;
|
|
3152
|
-
exchange: string;
|
|
3153
3152
|
price: number;
|
|
3153
|
+
exchange?: string | undefined;
|
|
3154
3154
|
}, {
|
|
3155
3155
|
currency: string;
|
|
3156
3156
|
date: string | number | Date;
|
|
3157
|
-
exchange: string;
|
|
3158
3157
|
price: number;
|
|
3158
|
+
exchange?: string | undefined;
|
|
3159
3159
|
}>, "many">;
|
|
3160
3160
|
asset: z.ZodObject<{
|
|
3161
3161
|
_id: z.ZodObject<{
|
|
@@ -3230,8 +3230,8 @@ export declare const ZRelatedStockWithQuotes: z.ZodObject<{
|
|
|
3230
3230
|
quotes: {
|
|
3231
3231
|
currency: string;
|
|
3232
3232
|
date: Date;
|
|
3233
|
-
exchange: string;
|
|
3234
3233
|
price: number;
|
|
3234
|
+
exchange?: string | undefined;
|
|
3235
3235
|
}[];
|
|
3236
3236
|
asset: {
|
|
3237
3237
|
name: string;
|
|
@@ -3254,8 +3254,8 @@ export declare const ZRelatedStockWithQuotes: z.ZodObject<{
|
|
|
3254
3254
|
quotes: {
|
|
3255
3255
|
currency: string;
|
|
3256
3256
|
date: string | number | Date;
|
|
3257
|
-
exchange: string;
|
|
3258
3257
|
price: number;
|
|
3258
|
+
exchange?: string | undefined;
|
|
3259
3259
|
}[];
|
|
3260
3260
|
asset: {
|
|
3261
3261
|
name: string;
|
|
@@ -3444,7 +3444,7 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3444
3444
|
}>;
|
|
3445
3445
|
quote: z.ZodObject<{
|
|
3446
3446
|
currency: z.ZodString;
|
|
3447
|
-
exchange: z.ZodString
|
|
3447
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
3448
3448
|
date: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3449
3449
|
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3450
3450
|
price: z.ZodNumber;
|
|
@@ -3455,16 +3455,16 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3455
3455
|
date: Date;
|
|
3456
3456
|
datetime: Date;
|
|
3457
3457
|
isin: string;
|
|
3458
|
-
exchange: string;
|
|
3459
3458
|
price: number;
|
|
3459
|
+
exchange?: string | undefined;
|
|
3460
3460
|
cachedAt?: Date | undefined;
|
|
3461
3461
|
}, {
|
|
3462
3462
|
currency: string;
|
|
3463
3463
|
date: string | number | Date;
|
|
3464
3464
|
datetime: string | number | Date;
|
|
3465
3465
|
isin: string;
|
|
3466
|
-
exchange: string;
|
|
3467
3466
|
price: number;
|
|
3467
|
+
exchange?: string | undefined;
|
|
3468
3468
|
cachedAt?: string | number | Date | undefined;
|
|
3469
3469
|
}>;
|
|
3470
3470
|
collectionId: z.ZodString;
|
|
@@ -3517,8 +3517,8 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3517
3517
|
date: Date;
|
|
3518
3518
|
datetime: Date;
|
|
3519
3519
|
isin: string;
|
|
3520
|
-
exchange: string;
|
|
3521
3520
|
price: number;
|
|
3521
|
+
exchange?: string | undefined;
|
|
3522
3522
|
cachedAt?: Date | undefined;
|
|
3523
3523
|
};
|
|
3524
3524
|
}, {
|
|
@@ -3566,8 +3566,8 @@ export declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
|
3566
3566
|
date: string | number | Date;
|
|
3567
3567
|
datetime: string | number | Date;
|
|
3568
3568
|
isin: string;
|
|
3569
|
-
exchange: string;
|
|
3570
3569
|
price: number;
|
|
3570
|
+
exchange?: string | undefined;
|
|
3571
3571
|
cachedAt?: string | number | Date | undefined;
|
|
3572
3572
|
};
|
|
3573
3573
|
}>;
|
|
@@ -23,7 +23,7 @@ exports.ZSecurity = zod_1.z.object({
|
|
|
23
23
|
*/
|
|
24
24
|
exports.ZStockQuote = zod_1.z.object({
|
|
25
25
|
currency: zod_1.z.string().max(3),
|
|
26
|
-
exchange: zod_1.z.string().max(100),
|
|
26
|
+
exchange: zod_1.z.string().max(100).optional(),
|
|
27
27
|
date: Base_type_1.ZDate,
|
|
28
28
|
datetime: Base_type_1.ZDate,
|
|
29
29
|
price: zod_1.z.number(),
|
|
@@ -389,7 +389,7 @@ exports.ZRelatedStockWithQuotes = zod_1.z.object({
|
|
|
389
389
|
quotes: zod_1.z.array(zod_1.z.object({
|
|
390
390
|
date: Base_type_1.ZDate,
|
|
391
391
|
price: zod_1.z.number(),
|
|
392
|
-
exchange: zod_1.z.string(),
|
|
392
|
+
exchange: zod_1.z.string().optional(),
|
|
393
393
|
currency: exports.ZCurrency,
|
|
394
394
|
})),
|
|
395
395
|
});
|