@budgetbuddyde/types 1.0.27 → 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.
@@ -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.ZodString;
297
- asset: z.ZodDefault<z.ZodNullable<z.ZodObject<{
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: string;
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
- } | null;
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: string;
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
- } | null | undefined;
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.ZodString;
591
- asset: z.ZodDefault<z.ZodNullable<z.ZodObject<{
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: string;
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
- } | null;
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: string;
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
- } | null | undefined;
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: string;
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
- } | null;
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: string;
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
- } | null | undefined;
961
+ };
960
962
  historyDividends?: {
961
963
  type: string;
962
964
  currency: string;
@@ -3244,3 +3246,4 @@ export declare const ZRelatedStockWithQuotes: z.ZodObject<{
3244
3246
  };
3245
3247
  }>;
3246
3248
  export type TRelatedStockWithQuotes = z.infer<typeof ZRelatedStockWithQuotes>;
3249
+ export {};
@@ -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: zod_1.z.string(),
93
- payoutInterval: zod_1.z.string(),
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: zod_1.z.string(),
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: zod_1.z.string(),
107
- isin: zod_1.z.string(),
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budgetbuddyde/types",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "description": "Budget Buddy Typescript Types",