@budgetbuddyde/types 1.0.26 → 1.0.28
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 +170 -31
- package/lib/Stocks/Stock.types.js +26 -17
- package/package.json +1 -1
|
@@ -291,10 +291,12 @@ export declare const ZDividend: z.ZodObject<{
|
|
|
291
291
|
recordDate?: string | number | Date | null | undefined;
|
|
292
292
|
}>;
|
|
293
293
|
export type TDividend = z.infer<typeof ZDividend>;
|
|
294
|
+
declare const ZPayoutInterval: z.ZodEnum<["none", "month", "quarter", "year"]>;
|
|
295
|
+
export type TPayoutInterval = z.infer<typeof ZPayoutInterval>;
|
|
294
296
|
export declare const ZDividendDetails: z.ZodObject<{
|
|
295
297
|
identifier: z.ZodString;
|
|
296
|
-
payoutInterval: z.
|
|
297
|
-
asset: z.
|
|
298
|
+
payoutInterval: z.ZodEnum<["none", "month", "quarter", "year"]>;
|
|
299
|
+
asset: z.ZodObject<{
|
|
298
300
|
_id: z.ZodObject<{
|
|
299
301
|
identifier: z.ZodString;
|
|
300
302
|
assetType: z.ZodString;
|
|
@@ -362,7 +364,7 @@ export declare const ZDividendDetails: z.ZodObject<{
|
|
|
362
364
|
etfDomicile?: string | undefined;
|
|
363
365
|
etfCompany?: string | undefined;
|
|
364
366
|
};
|
|
365
|
-
}
|
|
367
|
+
}>;
|
|
366
368
|
historyDividends: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
367
369
|
type: z.ZodString;
|
|
368
370
|
security: z.ZodString;
|
|
@@ -470,7 +472,7 @@ export declare const ZDividendDetails: z.ZodObject<{
|
|
|
470
472
|
}>>;
|
|
471
473
|
}, "strip", z.ZodTypeAny, {
|
|
472
474
|
identifier: string;
|
|
473
|
-
payoutInterval:
|
|
475
|
+
payoutInterval: "none" | "month" | "year" | "quarter";
|
|
474
476
|
asset: {
|
|
475
477
|
name: string;
|
|
476
478
|
_id: {
|
|
@@ -487,7 +489,7 @@ export declare const ZDividendDetails: z.ZodObject<{
|
|
|
487
489
|
etfDomicile?: string | undefined;
|
|
488
490
|
etfCompany?: string | undefined;
|
|
489
491
|
};
|
|
490
|
-
}
|
|
492
|
+
};
|
|
491
493
|
historyDividends: {
|
|
492
494
|
type: string;
|
|
493
495
|
currency: string;
|
|
@@ -527,8 +529,8 @@ export declare const ZDividendDetails: z.ZodObject<{
|
|
|
527
529
|
} | undefined;
|
|
528
530
|
}, {
|
|
529
531
|
identifier: string;
|
|
530
|
-
payoutInterval:
|
|
531
|
-
asset
|
|
532
|
+
payoutInterval: "none" | "month" | "year" | "quarter";
|
|
533
|
+
asset: {
|
|
532
534
|
name: string;
|
|
533
535
|
_id: {
|
|
534
536
|
identifier: string;
|
|
@@ -544,7 +546,7 @@ export declare const ZDividendDetails: z.ZodObject<{
|
|
|
544
546
|
etfDomicile?: string | undefined;
|
|
545
547
|
etfCompany?: string | undefined;
|
|
546
548
|
};
|
|
547
|
-
}
|
|
549
|
+
};
|
|
548
550
|
historyDividends?: {
|
|
549
551
|
type: string;
|
|
550
552
|
currency: string;
|
|
@@ -587,8 +589,8 @@ export type TDividendDetails = z.infer<typeof ZDividendDetails>;
|
|
|
587
589
|
export declare const ZDividendDetailList: z.ZodObject<{
|
|
588
590
|
dividendDetails: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
589
591
|
identifier: z.ZodString;
|
|
590
|
-
payoutInterval: z.
|
|
591
|
-
asset: z.
|
|
592
|
+
payoutInterval: z.ZodEnum<["none", "month", "quarter", "year"]>;
|
|
593
|
+
asset: z.ZodObject<{
|
|
592
594
|
_id: z.ZodObject<{
|
|
593
595
|
identifier: z.ZodString;
|
|
594
596
|
assetType: z.ZodString;
|
|
@@ -656,7 +658,7 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
656
658
|
etfDomicile?: string | undefined;
|
|
657
659
|
etfCompany?: string | undefined;
|
|
658
660
|
};
|
|
659
|
-
}
|
|
661
|
+
}>;
|
|
660
662
|
historyDividends: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
661
663
|
type: z.ZodString;
|
|
662
664
|
security: z.ZodString;
|
|
@@ -764,7 +766,7 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
764
766
|
}>>;
|
|
765
767
|
}, "strip", z.ZodTypeAny, {
|
|
766
768
|
identifier: string;
|
|
767
|
-
payoutInterval:
|
|
769
|
+
payoutInterval: "none" | "month" | "year" | "quarter";
|
|
768
770
|
asset: {
|
|
769
771
|
name: string;
|
|
770
772
|
_id: {
|
|
@@ -781,7 +783,7 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
781
783
|
etfDomicile?: string | undefined;
|
|
782
784
|
etfCompany?: string | undefined;
|
|
783
785
|
};
|
|
784
|
-
}
|
|
786
|
+
};
|
|
785
787
|
historyDividends: {
|
|
786
788
|
type: string;
|
|
787
789
|
currency: string;
|
|
@@ -821,8 +823,8 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
821
823
|
} | undefined;
|
|
822
824
|
}, {
|
|
823
825
|
identifier: string;
|
|
824
|
-
payoutInterval:
|
|
825
|
-
asset
|
|
826
|
+
payoutInterval: "none" | "month" | "year" | "quarter";
|
|
827
|
+
asset: {
|
|
826
828
|
name: string;
|
|
827
829
|
_id: {
|
|
828
830
|
identifier: string;
|
|
@@ -838,7 +840,7 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
838
840
|
etfDomicile?: string | undefined;
|
|
839
841
|
etfCompany?: string | undefined;
|
|
840
842
|
};
|
|
841
|
-
}
|
|
843
|
+
};
|
|
842
844
|
historyDividends?: {
|
|
843
845
|
type: string;
|
|
844
846
|
currency: string;
|
|
@@ -880,7 +882,7 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
880
882
|
}, "strip", z.ZodTypeAny, {
|
|
881
883
|
dividendDetails: Record<string, {
|
|
882
884
|
identifier: string;
|
|
883
|
-
payoutInterval:
|
|
885
|
+
payoutInterval: "none" | "month" | "year" | "quarter";
|
|
884
886
|
asset: {
|
|
885
887
|
name: string;
|
|
886
888
|
_id: {
|
|
@@ -897,7 +899,7 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
897
899
|
etfDomicile?: string | undefined;
|
|
898
900
|
etfCompany?: string | undefined;
|
|
899
901
|
};
|
|
900
|
-
}
|
|
902
|
+
};
|
|
901
903
|
historyDividends: {
|
|
902
904
|
type: string;
|
|
903
905
|
currency: string;
|
|
@@ -939,8 +941,8 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
939
941
|
}, {
|
|
940
942
|
dividendDetails: Record<string, {
|
|
941
943
|
identifier: string;
|
|
942
|
-
payoutInterval:
|
|
943
|
-
asset
|
|
944
|
+
payoutInterval: "none" | "month" | "year" | "quarter";
|
|
945
|
+
asset: {
|
|
944
946
|
name: string;
|
|
945
947
|
_id: {
|
|
946
948
|
identifier: string;
|
|
@@ -956,7 +958,7 @@ export declare const ZDividendDetailList: z.ZodObject<{
|
|
|
956
958
|
etfDomicile?: string | undefined;
|
|
957
959
|
etfCompany?: string | undefined;
|
|
958
960
|
};
|
|
959
|
-
}
|
|
961
|
+
};
|
|
960
962
|
historyDividends?: {
|
|
961
963
|
type: string;
|
|
962
964
|
currency: string;
|
|
@@ -3015,7 +3017,7 @@ export declare const ZRelatedStock: z.ZodObject<{
|
|
|
3015
3017
|
assetType: z.ZodString;
|
|
3016
3018
|
name: z.ZodString;
|
|
3017
3019
|
logo: z.ZodString;
|
|
3018
|
-
security: z.ZodObject<{
|
|
3020
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
3019
3021
|
website: z.ZodString;
|
|
3020
3022
|
type: z.ZodString;
|
|
3021
3023
|
wkn: z.ZodString;
|
|
@@ -3036,7 +3038,7 @@ export declare const ZRelatedStock: z.ZodObject<{
|
|
|
3036
3038
|
wkn: string;
|
|
3037
3039
|
etfDomicile?: string | null | undefined;
|
|
3038
3040
|
etfCompany?: string | null | undefined;
|
|
3039
|
-
}
|
|
3041
|
+
}>>;
|
|
3040
3042
|
}, "strip", z.ZodTypeAny, {
|
|
3041
3043
|
name: string;
|
|
3042
3044
|
_id: {
|
|
@@ -3045,14 +3047,14 @@ export declare const ZRelatedStock: z.ZodObject<{
|
|
|
3045
3047
|
};
|
|
3046
3048
|
assetType: string;
|
|
3047
3049
|
logo: string;
|
|
3048
|
-
security
|
|
3050
|
+
security?: {
|
|
3049
3051
|
type: string;
|
|
3050
3052
|
isin: string;
|
|
3051
3053
|
website: string;
|
|
3052
3054
|
wkn: string;
|
|
3053
3055
|
etfDomicile: string | null;
|
|
3054
3056
|
etfCompany: string | null;
|
|
3055
|
-
};
|
|
3057
|
+
} | undefined;
|
|
3056
3058
|
}, {
|
|
3057
3059
|
name: string;
|
|
3058
3060
|
_id: {
|
|
@@ -3061,14 +3063,14 @@ export declare const ZRelatedStock: z.ZodObject<{
|
|
|
3061
3063
|
};
|
|
3062
3064
|
assetType: string;
|
|
3063
3065
|
logo: string;
|
|
3064
|
-
security
|
|
3066
|
+
security?: {
|
|
3065
3067
|
type: string;
|
|
3066
3068
|
isin: string;
|
|
3067
3069
|
website: string;
|
|
3068
3070
|
wkn: string;
|
|
3069
3071
|
etfDomicile?: string | null | undefined;
|
|
3070
3072
|
etfCompany?: string | null | undefined;
|
|
3071
|
-
};
|
|
3073
|
+
} | undefined;
|
|
3072
3074
|
}>;
|
|
3073
3075
|
}, "strip", z.ZodTypeAny, {
|
|
3074
3076
|
asset: {
|
|
@@ -3079,14 +3081,14 @@ export declare const ZRelatedStock: z.ZodObject<{
|
|
|
3079
3081
|
};
|
|
3080
3082
|
assetType: string;
|
|
3081
3083
|
logo: string;
|
|
3082
|
-
security
|
|
3084
|
+
security?: {
|
|
3083
3085
|
type: string;
|
|
3084
3086
|
isin: string;
|
|
3085
3087
|
website: string;
|
|
3086
3088
|
wkn: string;
|
|
3087
3089
|
etfDomicile: string | null;
|
|
3088
3090
|
etfCompany: string | null;
|
|
3089
|
-
};
|
|
3091
|
+
} | undefined;
|
|
3090
3092
|
};
|
|
3091
3093
|
}, {
|
|
3092
3094
|
asset: {
|
|
@@ -3097,14 +3099,151 @@ export declare const ZRelatedStock: z.ZodObject<{
|
|
|
3097
3099
|
};
|
|
3098
3100
|
assetType: string;
|
|
3099
3101
|
logo: string;
|
|
3100
|
-
security
|
|
3102
|
+
security?: {
|
|
3101
3103
|
type: string;
|
|
3102
3104
|
isin: string;
|
|
3103
3105
|
website: string;
|
|
3104
3106
|
wkn: string;
|
|
3105
3107
|
etfDomicile?: string | null | undefined;
|
|
3106
3108
|
etfCompany?: string | null | undefined;
|
|
3107
|
-
};
|
|
3109
|
+
} | undefined;
|
|
3108
3110
|
};
|
|
3109
3111
|
}>;
|
|
3110
3112
|
export type TRelatedStock = z.infer<typeof ZRelatedStock>;
|
|
3113
|
+
export declare const ZRelatedStockWithQuotes: z.ZodObject<{
|
|
3114
|
+
quotes: z.ZodArray<z.ZodObject<{
|
|
3115
|
+
date: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3116
|
+
price: z.ZodNumber;
|
|
3117
|
+
exchange: z.ZodString;
|
|
3118
|
+
currency: z.ZodString;
|
|
3119
|
+
}, "strip", z.ZodTypeAny, {
|
|
3120
|
+
currency: string;
|
|
3121
|
+
date: Date;
|
|
3122
|
+
exchange: string;
|
|
3123
|
+
price: number;
|
|
3124
|
+
}, {
|
|
3125
|
+
currency: string;
|
|
3126
|
+
date: (string | number | Date) & (string | number | Date | undefined);
|
|
3127
|
+
exchange: string;
|
|
3128
|
+
price: number;
|
|
3129
|
+
}>, "many">;
|
|
3130
|
+
asset: z.ZodObject<{
|
|
3131
|
+
_id: z.ZodObject<{
|
|
3132
|
+
identifier: z.ZodString;
|
|
3133
|
+
assetType: z.ZodString;
|
|
3134
|
+
}, "strip", z.ZodTypeAny, {
|
|
3135
|
+
identifier: string;
|
|
3136
|
+
assetType: string;
|
|
3137
|
+
}, {
|
|
3138
|
+
identifier: string;
|
|
3139
|
+
assetType: string;
|
|
3140
|
+
}>;
|
|
3141
|
+
assetType: z.ZodString;
|
|
3142
|
+
name: z.ZodString;
|
|
3143
|
+
logo: z.ZodString;
|
|
3144
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
3145
|
+
website: z.ZodString;
|
|
3146
|
+
type: z.ZodString;
|
|
3147
|
+
wkn: z.ZodString;
|
|
3148
|
+
isin: z.ZodString;
|
|
3149
|
+
etfDomicile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3150
|
+
etfCompany: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3151
|
+
}, "strip", z.ZodTypeAny, {
|
|
3152
|
+
type: string;
|
|
3153
|
+
isin: string;
|
|
3154
|
+
website: string;
|
|
3155
|
+
wkn: string;
|
|
3156
|
+
etfDomicile: string | null;
|
|
3157
|
+
etfCompany: string | null;
|
|
3158
|
+
}, {
|
|
3159
|
+
type: string;
|
|
3160
|
+
isin: string;
|
|
3161
|
+
website: string;
|
|
3162
|
+
wkn: string;
|
|
3163
|
+
etfDomicile?: string | null | undefined;
|
|
3164
|
+
etfCompany?: string | null | undefined;
|
|
3165
|
+
}>>;
|
|
3166
|
+
}, "strip", z.ZodTypeAny, {
|
|
3167
|
+
name: string;
|
|
3168
|
+
_id: {
|
|
3169
|
+
identifier: string;
|
|
3170
|
+
assetType: string;
|
|
3171
|
+
};
|
|
3172
|
+
assetType: string;
|
|
3173
|
+
logo: string;
|
|
3174
|
+
security?: {
|
|
3175
|
+
type: string;
|
|
3176
|
+
isin: string;
|
|
3177
|
+
website: string;
|
|
3178
|
+
wkn: string;
|
|
3179
|
+
etfDomicile: string | null;
|
|
3180
|
+
etfCompany: string | null;
|
|
3181
|
+
} | undefined;
|
|
3182
|
+
}, {
|
|
3183
|
+
name: string;
|
|
3184
|
+
_id: {
|
|
3185
|
+
identifier: string;
|
|
3186
|
+
assetType: string;
|
|
3187
|
+
};
|
|
3188
|
+
assetType: string;
|
|
3189
|
+
logo: string;
|
|
3190
|
+
security?: {
|
|
3191
|
+
type: string;
|
|
3192
|
+
isin: string;
|
|
3193
|
+
website: string;
|
|
3194
|
+
wkn: string;
|
|
3195
|
+
etfDomicile?: string | null | undefined;
|
|
3196
|
+
etfCompany?: string | null | undefined;
|
|
3197
|
+
} | undefined;
|
|
3198
|
+
}>;
|
|
3199
|
+
}, "strip", z.ZodTypeAny, {
|
|
3200
|
+
quotes: {
|
|
3201
|
+
currency: string;
|
|
3202
|
+
date: Date;
|
|
3203
|
+
exchange: string;
|
|
3204
|
+
price: number;
|
|
3205
|
+
}[];
|
|
3206
|
+
asset: {
|
|
3207
|
+
name: string;
|
|
3208
|
+
_id: {
|
|
3209
|
+
identifier: string;
|
|
3210
|
+
assetType: string;
|
|
3211
|
+
};
|
|
3212
|
+
assetType: string;
|
|
3213
|
+
logo: string;
|
|
3214
|
+
security?: {
|
|
3215
|
+
type: string;
|
|
3216
|
+
isin: string;
|
|
3217
|
+
website: string;
|
|
3218
|
+
wkn: string;
|
|
3219
|
+
etfDomicile: string | null;
|
|
3220
|
+
etfCompany: string | null;
|
|
3221
|
+
} | undefined;
|
|
3222
|
+
};
|
|
3223
|
+
}, {
|
|
3224
|
+
quotes: {
|
|
3225
|
+
currency: string;
|
|
3226
|
+
date: (string | number | Date) & (string | number | Date | undefined);
|
|
3227
|
+
exchange: string;
|
|
3228
|
+
price: number;
|
|
3229
|
+
}[];
|
|
3230
|
+
asset: {
|
|
3231
|
+
name: string;
|
|
3232
|
+
_id: {
|
|
3233
|
+
identifier: string;
|
|
3234
|
+
assetType: string;
|
|
3235
|
+
};
|
|
3236
|
+
assetType: string;
|
|
3237
|
+
logo: string;
|
|
3238
|
+
security?: {
|
|
3239
|
+
type: string;
|
|
3240
|
+
isin: string;
|
|
3241
|
+
website: string;
|
|
3242
|
+
wkn: string;
|
|
3243
|
+
etfDomicile?: string | null | undefined;
|
|
3244
|
+
etfCompany?: string | null | undefined;
|
|
3245
|
+
} | undefined;
|
|
3246
|
+
};
|
|
3247
|
+
}>;
|
|
3248
|
+
export type TRelatedStockWithQuotes = z.infer<typeof ZRelatedStockWithQuotes>;
|
|
3249
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZRelatedStock = exports.ZUpdateStockPositionPayload = exports.ZCreateStockPositionPayload = exports.ZStockPositionWithQuote = exports.ZStockPosition = exports.ZStockExchange = exports.ZAssetDetails = exports.ZDividendDetailList = exports.ZDividendDetails = exports.ZDividend = exports.ZAssetChartQuote = exports.ZAssetSearchResult = exports.ZAsset = exports.ZStockQuote = exports.ZStockType = exports.ZTimeframe = exports.ZCurrency = exports.ZWKN = exports.ZIsin = void 0;
|
|
3
|
+
exports.ZRelatedStockWithQuotes = exports.ZRelatedStock = exports.ZUpdateStockPositionPayload = exports.ZCreateStockPositionPayload = exports.ZStockPositionWithQuote = exports.ZStockPosition = exports.ZStockExchange = exports.ZAssetDetails = exports.ZDividendDetailList = exports.ZDividendDetails = exports.ZDividend = exports.ZAssetChartQuote = exports.ZAssetSearchResult = exports.ZAsset = exports.ZStockQuote = exports.ZStockType = exports.ZTimeframe = exports.ZCurrency = exports.ZWKN = exports.ZIsin = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const PocketBase_types_1 = require("../PocketBase.types");
|
|
6
6
|
const Base_type_1 = require("../Base.type");
|
|
7
|
-
exports.ZIsin = zod_1.z.string().
|
|
8
|
-
exports.ZWKN = zod_1.z.string().
|
|
7
|
+
exports.ZIsin = zod_1.z.string().max(12, { message: 'ISIN can only be 12 characters long' });
|
|
8
|
+
exports.ZWKN = zod_1.z.string().max(6, { message: 'WKN can only be 6 characters long' });
|
|
9
9
|
exports.ZCurrency = zod_1.z.string().max(3, { message: 'Currency must be 3 characters long' });
|
|
10
10
|
exports.ZTimeframe = zod_1.z.enum(['1d', '1m', '3m', '1y', '5y', 'ytd']);
|
|
11
11
|
exports.ZStockType = zod_1.z.enum(['Aktie', 'ETF']).or(zod_1.z.string());
|
|
@@ -88,29 +88,27 @@ exports.ZDividend = zod_1.z.object({
|
|
|
88
88
|
exDate: Base_type_1.ZDate,
|
|
89
89
|
isEstimated: zod_1.z.boolean(),
|
|
90
90
|
});
|
|
91
|
+
const ZPayoutInterval = zod_1.z.enum(['none', 'month', 'quarter', 'year']);
|
|
91
92
|
exports.ZDividendDetails = zod_1.z.object({
|
|
92
|
-
identifier:
|
|
93
|
-
payoutInterval:
|
|
94
|
-
asset: zod_1.z
|
|
95
|
-
.object({
|
|
93
|
+
identifier: exports.ZIsin,
|
|
94
|
+
payoutInterval: ZPayoutInterval,
|
|
95
|
+
asset: zod_1.z.object({
|
|
96
96
|
_id: zod_1.z.object({
|
|
97
|
-
identifier:
|
|
97
|
+
identifier: exports.ZIsin,
|
|
98
98
|
assetType: zod_1.z.string(),
|
|
99
99
|
}),
|
|
100
100
|
assetType: zod_1.z.string(),
|
|
101
101
|
name: zod_1.z.string(),
|
|
102
|
-
logo: zod_1.z.string(),
|
|
102
|
+
logo: zod_1.z.string().url(),
|
|
103
103
|
security: zod_1.z.object({
|
|
104
|
-
website: zod_1.z.string(),
|
|
104
|
+
website: zod_1.z.string().url(),
|
|
105
105
|
type: zod_1.z.string(),
|
|
106
|
-
wkn:
|
|
107
|
-
isin:
|
|
106
|
+
wkn: exports.ZWKN,
|
|
107
|
+
isin: exports.ZIsin,
|
|
108
108
|
etfDomicile: zod_1.z.string().optional(),
|
|
109
109
|
etfCompany: zod_1.z.string().optional(),
|
|
110
110
|
}),
|
|
111
|
-
})
|
|
112
|
-
.nullable()
|
|
113
|
-
.default(null),
|
|
111
|
+
}),
|
|
114
112
|
historyDividends: zod_1.z.array(exports.ZDividend).nullable().default([]),
|
|
115
113
|
futureDividends: zod_1.z.array(exports.ZDividend).nullable().default([]),
|
|
116
114
|
dividendKPIs: zod_1.z
|
|
@@ -394,13 +392,24 @@ exports.ZRelatedStock = zod_1.z.object({
|
|
|
394
392
|
assetType: zod_1.z.string(),
|
|
395
393
|
name: zod_1.z.string(),
|
|
396
394
|
logo: zod_1.z.string().url(),
|
|
397
|
-
security: zod_1.z
|
|
395
|
+
security: zod_1.z
|
|
396
|
+
.object({
|
|
398
397
|
website: zod_1.z.string().url(),
|
|
399
398
|
type: zod_1.z.string(),
|
|
400
399
|
wkn: exports.ZWKN,
|
|
401
400
|
isin: exports.ZIsin,
|
|
402
401
|
etfDomicile: zod_1.z.string().nullable().default(null),
|
|
403
402
|
etfCompany: zod_1.z.string().nullable().default(null),
|
|
404
|
-
})
|
|
403
|
+
})
|
|
404
|
+
.optional(),
|
|
405
405
|
}),
|
|
406
406
|
});
|
|
407
|
+
exports.ZRelatedStockWithQuotes = zod_1.z.object({
|
|
408
|
+
...exports.ZRelatedStock.shape,
|
|
409
|
+
quotes: zod_1.z.array(zod_1.z.object({
|
|
410
|
+
date: Base_type_1.ZDate,
|
|
411
|
+
price: zod_1.z.number(),
|
|
412
|
+
exchange: zod_1.z.string(),
|
|
413
|
+
currency: exports.ZCurrency,
|
|
414
|
+
})),
|
|
415
|
+
});
|