@budgetbuddyde/types 1.0.28 → 1.0.30
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 +308 -1
- package/lib/Stocks/Stock.types.js +35 -3
- package/package.json +1 -1
|
@@ -291,7 +291,7 @@ 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"]>;
|
|
294
|
+
export declare const ZPayoutInterval: z.ZodEnum<["none", "month", "quarter", "year"]>;
|
|
295
295
|
export type TPayoutInterval = z.infer<typeof ZPayoutInterval>;
|
|
296
296
|
export declare const ZDividendDetails: z.ZodObject<{
|
|
297
297
|
identifier: z.ZodString;
|
|
@@ -2840,6 +2840,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2840
2840
|
}>;
|
|
2841
2841
|
name: z.ZodString;
|
|
2842
2842
|
logo: z.ZodString;
|
|
2843
|
+
wkn: z.ZodString;
|
|
2843
2844
|
volume: z.ZodNumber;
|
|
2844
2845
|
quote: z.ZodObject<{
|
|
2845
2846
|
currency: z.ZodString;
|
|
@@ -2895,6 +2896,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2895
2896
|
exchange: string;
|
|
2896
2897
|
isin: string;
|
|
2897
2898
|
logo: string;
|
|
2899
|
+
wkn: string;
|
|
2898
2900
|
quote: {
|
|
2899
2901
|
currency: string;
|
|
2900
2902
|
date: Date;
|
|
@@ -2932,6 +2934,7 @@ export declare const ZStockPositionWithQuote: z.ZodObject<{
|
|
|
2932
2934
|
exchange: string;
|
|
2933
2935
|
isin: string;
|
|
2934
2936
|
logo: string;
|
|
2937
|
+
wkn: string;
|
|
2935
2938
|
quote: {
|
|
2936
2939
|
currency: string;
|
|
2937
2940
|
date: (string | number | Date) & (string | number | Date | undefined);
|
|
@@ -3246,4 +3249,308 @@ export declare const ZRelatedStockWithQuotes: z.ZodObject<{
|
|
|
3246
3249
|
};
|
|
3247
3250
|
}>;
|
|
3248
3251
|
export type TRelatedStockWithQuotes = z.infer<typeof ZRelatedStockWithQuotes>;
|
|
3252
|
+
declare const ZAssetWatchlist: z.ZodObject<{
|
|
3253
|
+
owner: z.ZodString;
|
|
3254
|
+
exchange: z.ZodString;
|
|
3255
|
+
isin: z.ZodString;
|
|
3256
|
+
collectionId: z.ZodString;
|
|
3257
|
+
collectionName: z.ZodString;
|
|
3258
|
+
id: z.ZodString;
|
|
3259
|
+
created: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3260
|
+
updated: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3261
|
+
}, "strip", z.ZodTypeAny, {
|
|
3262
|
+
id: string;
|
|
3263
|
+
collectionId: string;
|
|
3264
|
+
collectionName: string;
|
|
3265
|
+
created: Date;
|
|
3266
|
+
updated: Date;
|
|
3267
|
+
owner: string;
|
|
3268
|
+
exchange: string;
|
|
3269
|
+
isin: string;
|
|
3270
|
+
}, {
|
|
3271
|
+
id: string;
|
|
3272
|
+
collectionId: string;
|
|
3273
|
+
collectionName: string;
|
|
3274
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
3275
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
3276
|
+
owner: string;
|
|
3277
|
+
exchange: string;
|
|
3278
|
+
isin: string;
|
|
3279
|
+
}>;
|
|
3280
|
+
export type TAssetWatchlist = z.infer<typeof ZAssetWatchlist>;
|
|
3281
|
+
declare const ZAssetWatchlistWithQuote: z.ZodObject<{
|
|
3282
|
+
owner: z.ZodString;
|
|
3283
|
+
exchange: z.ZodString;
|
|
3284
|
+
isin: z.ZodString;
|
|
3285
|
+
name: z.ZodString;
|
|
3286
|
+
logo: z.ZodString;
|
|
3287
|
+
wkn: z.ZodString;
|
|
3288
|
+
expand: z.ZodObject<{
|
|
3289
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
3290
|
+
avatar: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
3291
|
+
email: z.ZodString;
|
|
3292
|
+
emailVisibility: z.ZodBoolean;
|
|
3293
|
+
username: z.ZodString;
|
|
3294
|
+
name: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
3295
|
+
surname: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
|
|
3296
|
+
verified: z.ZodBoolean;
|
|
3297
|
+
collectionId: z.ZodString;
|
|
3298
|
+
collectionName: z.ZodString;
|
|
3299
|
+
id: z.ZodString;
|
|
3300
|
+
created: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3301
|
+
updated: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3302
|
+
}, "strip", z.ZodTypeAny, {
|
|
3303
|
+
id: string;
|
|
3304
|
+
name: string | null;
|
|
3305
|
+
email: string;
|
|
3306
|
+
collectionId: string;
|
|
3307
|
+
collectionName: string;
|
|
3308
|
+
created: Date;
|
|
3309
|
+
updated: Date;
|
|
3310
|
+
avatar: string | null;
|
|
3311
|
+
emailVisibility: boolean;
|
|
3312
|
+
username: string;
|
|
3313
|
+
surname: string | null;
|
|
3314
|
+
verified: boolean;
|
|
3315
|
+
}, {
|
|
3316
|
+
id: string;
|
|
3317
|
+
email: string;
|
|
3318
|
+
collectionId: string;
|
|
3319
|
+
collectionName: string;
|
|
3320
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
3321
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
3322
|
+
emailVisibility: boolean;
|
|
3323
|
+
username: string;
|
|
3324
|
+
verified: boolean;
|
|
3325
|
+
avatar?: string | null | undefined;
|
|
3326
|
+
name?: string | null | undefined;
|
|
3327
|
+
surname?: string | null | undefined;
|
|
3328
|
+
}>>;
|
|
3329
|
+
exchange: z.ZodObject<{
|
|
3330
|
+
name: z.ZodString;
|
|
3331
|
+
symbol: z.ZodString;
|
|
3332
|
+
exchange: z.ZodString;
|
|
3333
|
+
collectionId: z.ZodString;
|
|
3334
|
+
collectionName: z.ZodString;
|
|
3335
|
+
id: z.ZodString;
|
|
3336
|
+
created: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3337
|
+
updated: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3338
|
+
}, "strip", z.ZodTypeAny, {
|
|
3339
|
+
symbol: string;
|
|
3340
|
+
id: string;
|
|
3341
|
+
name: string;
|
|
3342
|
+
collectionId: string;
|
|
3343
|
+
collectionName: string;
|
|
3344
|
+
created: Date;
|
|
3345
|
+
updated: Date;
|
|
3346
|
+
exchange: string;
|
|
3347
|
+
}, {
|
|
3348
|
+
symbol: string;
|
|
3349
|
+
id: string;
|
|
3350
|
+
name: string;
|
|
3351
|
+
collectionId: string;
|
|
3352
|
+
collectionName: string;
|
|
3353
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
3354
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
3355
|
+
exchange: string;
|
|
3356
|
+
}>;
|
|
3357
|
+
}, "strip", z.ZodTypeAny, {
|
|
3358
|
+
owner: {
|
|
3359
|
+
id: string;
|
|
3360
|
+
name: string | null;
|
|
3361
|
+
email: string;
|
|
3362
|
+
collectionId: string;
|
|
3363
|
+
collectionName: string;
|
|
3364
|
+
created: Date;
|
|
3365
|
+
updated: Date;
|
|
3366
|
+
avatar: string | null;
|
|
3367
|
+
emailVisibility: boolean;
|
|
3368
|
+
username: string;
|
|
3369
|
+
surname: string | null;
|
|
3370
|
+
verified: boolean;
|
|
3371
|
+
} | null;
|
|
3372
|
+
exchange: {
|
|
3373
|
+
symbol: string;
|
|
3374
|
+
id: string;
|
|
3375
|
+
name: string;
|
|
3376
|
+
collectionId: string;
|
|
3377
|
+
collectionName: string;
|
|
3378
|
+
created: Date;
|
|
3379
|
+
updated: Date;
|
|
3380
|
+
exchange: string;
|
|
3381
|
+
};
|
|
3382
|
+
}, {
|
|
3383
|
+
owner: {
|
|
3384
|
+
id: string;
|
|
3385
|
+
email: string;
|
|
3386
|
+
collectionId: string;
|
|
3387
|
+
collectionName: string;
|
|
3388
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
3389
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
3390
|
+
emailVisibility: boolean;
|
|
3391
|
+
username: string;
|
|
3392
|
+
verified: boolean;
|
|
3393
|
+
avatar?: string | null | undefined;
|
|
3394
|
+
name?: string | null | undefined;
|
|
3395
|
+
surname?: string | null | undefined;
|
|
3396
|
+
} | null;
|
|
3397
|
+
exchange: {
|
|
3398
|
+
symbol: string;
|
|
3399
|
+
id: string;
|
|
3400
|
+
name: string;
|
|
3401
|
+
collectionId: string;
|
|
3402
|
+
collectionName: string;
|
|
3403
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
3404
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
3405
|
+
exchange: string;
|
|
3406
|
+
};
|
|
3407
|
+
}>;
|
|
3408
|
+
quote: z.ZodObject<{
|
|
3409
|
+
currency: z.ZodString;
|
|
3410
|
+
exchange: z.ZodString;
|
|
3411
|
+
date: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3412
|
+
datetime: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3413
|
+
price: z.ZodNumber;
|
|
3414
|
+
isin: z.ZodString;
|
|
3415
|
+
cachedAt: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3416
|
+
}, "strip", z.ZodTypeAny, {
|
|
3417
|
+
currency: string;
|
|
3418
|
+
date: Date;
|
|
3419
|
+
datetime: Date;
|
|
3420
|
+
exchange: string;
|
|
3421
|
+
price: number;
|
|
3422
|
+
isin: string;
|
|
3423
|
+
cachedAt: Date;
|
|
3424
|
+
}, {
|
|
3425
|
+
currency: string;
|
|
3426
|
+
date: (string | number | Date) & (string | number | Date | undefined);
|
|
3427
|
+
datetime: (string | number | Date) & (string | number | Date | undefined);
|
|
3428
|
+
exchange: string;
|
|
3429
|
+
price: number;
|
|
3430
|
+
isin: string;
|
|
3431
|
+
cachedAt: (string | number | Date) & (string | number | Date | undefined);
|
|
3432
|
+
}>;
|
|
3433
|
+
collectionId: z.ZodString;
|
|
3434
|
+
collectionName: z.ZodString;
|
|
3435
|
+
id: z.ZodString;
|
|
3436
|
+
created: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3437
|
+
updated: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodDate, z.ZodNumber]>, z.ZodString]>, Date, string | number | Date>;
|
|
3438
|
+
}, "strip", z.ZodTypeAny, {
|
|
3439
|
+
id: string;
|
|
3440
|
+
name: string;
|
|
3441
|
+
collectionId: string;
|
|
3442
|
+
collectionName: string;
|
|
3443
|
+
created: Date;
|
|
3444
|
+
updated: Date;
|
|
3445
|
+
owner: string;
|
|
3446
|
+
expand: {
|
|
3447
|
+
owner: {
|
|
3448
|
+
id: string;
|
|
3449
|
+
name: string | null;
|
|
3450
|
+
email: string;
|
|
3451
|
+
collectionId: string;
|
|
3452
|
+
collectionName: string;
|
|
3453
|
+
created: Date;
|
|
3454
|
+
updated: Date;
|
|
3455
|
+
avatar: string | null;
|
|
3456
|
+
emailVisibility: boolean;
|
|
3457
|
+
username: string;
|
|
3458
|
+
surname: string | null;
|
|
3459
|
+
verified: boolean;
|
|
3460
|
+
} | null;
|
|
3461
|
+
exchange: {
|
|
3462
|
+
symbol: string;
|
|
3463
|
+
id: string;
|
|
3464
|
+
name: string;
|
|
3465
|
+
collectionId: string;
|
|
3466
|
+
collectionName: string;
|
|
3467
|
+
created: Date;
|
|
3468
|
+
updated: Date;
|
|
3469
|
+
exchange: string;
|
|
3470
|
+
};
|
|
3471
|
+
};
|
|
3472
|
+
exchange: string;
|
|
3473
|
+
isin: string;
|
|
3474
|
+
logo: string;
|
|
3475
|
+
wkn: string;
|
|
3476
|
+
quote: {
|
|
3477
|
+
currency: string;
|
|
3478
|
+
date: Date;
|
|
3479
|
+
datetime: Date;
|
|
3480
|
+
exchange: string;
|
|
3481
|
+
price: number;
|
|
3482
|
+
isin: string;
|
|
3483
|
+
cachedAt: Date;
|
|
3484
|
+
};
|
|
3485
|
+
}, {
|
|
3486
|
+
id: string;
|
|
3487
|
+
name: string;
|
|
3488
|
+
collectionId: string;
|
|
3489
|
+
collectionName: string;
|
|
3490
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
3491
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
3492
|
+
owner: string;
|
|
3493
|
+
expand: {
|
|
3494
|
+
owner: {
|
|
3495
|
+
id: string;
|
|
3496
|
+
email: string;
|
|
3497
|
+
collectionId: string;
|
|
3498
|
+
collectionName: string;
|
|
3499
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
3500
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
3501
|
+
emailVisibility: boolean;
|
|
3502
|
+
username: string;
|
|
3503
|
+
verified: boolean;
|
|
3504
|
+
avatar?: string | null | undefined;
|
|
3505
|
+
name?: string | null | undefined;
|
|
3506
|
+
surname?: string | null | undefined;
|
|
3507
|
+
} | null;
|
|
3508
|
+
exchange: {
|
|
3509
|
+
symbol: string;
|
|
3510
|
+
id: string;
|
|
3511
|
+
name: string;
|
|
3512
|
+
collectionId: string;
|
|
3513
|
+
collectionName: string;
|
|
3514
|
+
created: (string | number | Date) & (string | number | Date | undefined);
|
|
3515
|
+
updated: (string | number | Date) & (string | number | Date | undefined);
|
|
3516
|
+
exchange: string;
|
|
3517
|
+
};
|
|
3518
|
+
};
|
|
3519
|
+
exchange: string;
|
|
3520
|
+
isin: string;
|
|
3521
|
+
logo: string;
|
|
3522
|
+
wkn: string;
|
|
3523
|
+
quote: {
|
|
3524
|
+
currency: string;
|
|
3525
|
+
date: (string | number | Date) & (string | number | Date | undefined);
|
|
3526
|
+
datetime: (string | number | Date) & (string | number | Date | undefined);
|
|
3527
|
+
exchange: string;
|
|
3528
|
+
price: number;
|
|
3529
|
+
isin: string;
|
|
3530
|
+
cachedAt: (string | number | Date) & (string | number | Date | undefined);
|
|
3531
|
+
};
|
|
3532
|
+
}>;
|
|
3533
|
+
export type TAssetWatchlistWithQuote = z.infer<typeof ZAssetWatchlistWithQuote>;
|
|
3534
|
+
export declare const ZAddWatchlistAssetPayload: z.ZodObject<{
|
|
3535
|
+
owner: z.ZodString;
|
|
3536
|
+
isin: z.ZodString;
|
|
3537
|
+
exchange: z.ZodString;
|
|
3538
|
+
}, "strip", z.ZodTypeAny, {
|
|
3539
|
+
owner: string;
|
|
3540
|
+
exchange: string;
|
|
3541
|
+
isin: string;
|
|
3542
|
+
}, {
|
|
3543
|
+
owner: string;
|
|
3544
|
+
exchange: string;
|
|
3545
|
+
isin: string;
|
|
3546
|
+
}>;
|
|
3547
|
+
export type TAddWatchlistAssetPayload = z.infer<typeof ZAddWatchlistAssetPayload>;
|
|
3548
|
+
export declare const ZDeleteWatchlistAssetPayload: z.ZodObject<{
|
|
3549
|
+
id: z.ZodString;
|
|
3550
|
+
}, "strip", z.ZodTypeAny, {
|
|
3551
|
+
id: string;
|
|
3552
|
+
}, {
|
|
3553
|
+
id: string;
|
|
3554
|
+
}>;
|
|
3555
|
+
export type TDeleteWatchlistAssetPayload = z.infer<typeof ZDeleteWatchlistAssetPayload>;
|
|
3249
3556
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.ZDeleteWatchlistAssetPayload = exports.ZAddWatchlistAssetPayload = exports.ZRelatedStockWithQuotes = exports.ZRelatedStock = exports.ZUpdateStockPositionPayload = exports.ZCreateStockPositionPayload = exports.ZStockPositionWithQuote = exports.ZStockPosition = exports.ZStockExchange = exports.ZAssetDetails = exports.ZDividendDetailList = exports.ZDividendDetails = exports.ZPayoutInterval = 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
|
+
const User_types_1 = require("../User.types");
|
|
7
8
|
exports.ZIsin = zod_1.z.string().max(12, { message: 'ISIN can only be 12 characters long' });
|
|
8
9
|
exports.ZWKN = zod_1.z.string().max(6, { message: 'WKN can only be 6 characters long' });
|
|
9
10
|
exports.ZCurrency = zod_1.z.string().max(3, { message: 'Currency must be 3 characters long' });
|
|
@@ -88,10 +89,10 @@ exports.ZDividend = zod_1.z.object({
|
|
|
88
89
|
exDate: Base_type_1.ZDate,
|
|
89
90
|
isEstimated: zod_1.z.boolean(),
|
|
90
91
|
});
|
|
91
|
-
|
|
92
|
+
exports.ZPayoutInterval = zod_1.z.enum(['none', 'month', 'quarter', 'year']);
|
|
92
93
|
exports.ZDividendDetails = zod_1.z.object({
|
|
93
94
|
identifier: exports.ZIsin,
|
|
94
|
-
payoutInterval: ZPayoutInterval,
|
|
95
|
+
payoutInterval: exports.ZPayoutInterval,
|
|
95
96
|
asset: zod_1.z.object({
|
|
96
97
|
_id: zod_1.z.object({
|
|
97
98
|
identifier: exports.ZIsin,
|
|
@@ -360,6 +361,7 @@ exports.ZStockPositionWithQuote = zod_1.z.object({
|
|
|
360
361
|
}),
|
|
361
362
|
name: zod_1.z.string(),
|
|
362
363
|
logo: zod_1.z.string().url(),
|
|
364
|
+
wkn: exports.ZWKN,
|
|
363
365
|
volume: zod_1.z.number(),
|
|
364
366
|
quote: exports.ZStockQuote,
|
|
365
367
|
}).shape,
|
|
@@ -413,3 +415,33 @@ exports.ZRelatedStockWithQuotes = zod_1.z.object({
|
|
|
413
415
|
currency: exports.ZCurrency,
|
|
414
416
|
})),
|
|
415
417
|
});
|
|
418
|
+
const ZAssetWatchlist = zod_1.z.object({
|
|
419
|
+
...PocketBase_types_1.ZBaseModel.shape,
|
|
420
|
+
...zod_1.z.object({
|
|
421
|
+
owner: PocketBase_types_1.ZId,
|
|
422
|
+
exchange: PocketBase_types_1.ZId,
|
|
423
|
+
isin: exports.ZIsin,
|
|
424
|
+
}).shape,
|
|
425
|
+
});
|
|
426
|
+
const ZAssetWatchlistWithQuote = zod_1.z.object({
|
|
427
|
+
...PocketBase_types_1.ZBaseModel.shape,
|
|
428
|
+
...zod_1.z.object({
|
|
429
|
+
owner: PocketBase_types_1.ZId,
|
|
430
|
+
exchange: PocketBase_types_1.ZId,
|
|
431
|
+
isin: exports.ZIsin,
|
|
432
|
+
name: zod_1.z.string(),
|
|
433
|
+
logo: zod_1.z.string().url(),
|
|
434
|
+
wkn: exports.ZWKN,
|
|
435
|
+
expand: zod_1.z.object({
|
|
436
|
+
owner: User_types_1.ZUser,
|
|
437
|
+
exchange: exports.ZStockExchange,
|
|
438
|
+
}),
|
|
439
|
+
quote: exports.ZStockQuote,
|
|
440
|
+
}).shape,
|
|
441
|
+
});
|
|
442
|
+
exports.ZAddWatchlistAssetPayload = zod_1.z.object({
|
|
443
|
+
owner: PocketBase_types_1.ZId,
|
|
444
|
+
isin: exports.ZIsin,
|
|
445
|
+
exchange: PocketBase_types_1.ZId,
|
|
446
|
+
});
|
|
447
|
+
exports.ZDeleteWatchlistAssetPayload = zod_1.z.object({ id: PocketBase_types_1.ZId });
|