@ramme-io/shared 3.2.0 → 3.3.0
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/dist/index.cjs +21 -0
- package/dist/index.d.cts +52 -12
- package/dist/index.d.ts +52 -12
- package/dist/index.js +21 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -633,6 +633,22 @@ var AppSourceSchema = import_zod6.z.discriminatedUnion("kind", [
|
|
|
633
633
|
import_zod6.z.object({
|
|
634
634
|
kind: import_zod6.z.literal("static"),
|
|
635
635
|
values: import_zod6.z.record(import_zod6.z.union([import_zod6.z.string(), import_zod6.z.number(), import_zod6.z.boolean()]))
|
|
636
|
+
}),
|
|
637
|
+
/**
|
|
638
|
+
* Taking turns: a number that counts 0, 1, 2 … up to `count - 1` and starts
|
|
639
|
+
* again, moving on every `minutes`. Its one field is `index`.
|
|
640
|
+
*
|
|
641
|
+
* It exists for the photo frame — each photo hides unless the index is its
|
|
642
|
+
* own — and works for anything that should alternate, like two lines of a
|
|
643
|
+
* sign. Counted from UTC minutes since 1970, so the browser and every board
|
|
644
|
+
* agree on which turn it is without talking to each other, and minutes
|
|
645
|
+
* because a board redraws once a minute and no faster (see loop() in
|
|
646
|
+
* hardware/weather-display/weather-display.ino).
|
|
647
|
+
*/
|
|
648
|
+
import_zod6.z.object({
|
|
649
|
+
kind: import_zod6.z.literal("cycle"),
|
|
650
|
+
count: import_zod6.z.number().int().min(2).max(12),
|
|
651
|
+
minutes: import_zod6.z.number().int().min(1).max(1440).default(5)
|
|
636
652
|
})
|
|
637
653
|
]);
|
|
638
654
|
var AppOperandSchema = import_zod6.z.union([
|
|
@@ -1480,6 +1496,11 @@ SOURCES \u2014 declare what the app reads, then bind to it by name:
|
|
|
1480
1496
|
fields: days, hours, minutes, seconds, label
|
|
1481
1497
|
"fixed": { "kind": "static", "values": { "anything": 1 } }
|
|
1482
1498
|
fields: whatever you put in values
|
|
1499
|
+
"turn": { "kind": "cycle", "count": 2, "minutes": 5 }
|
|
1500
|
+
fields: index (0, 1, \u2026 count-1, moving on every "minutes", then round again)
|
|
1501
|
+
For things that take turns: give each block "hideWhen": { "value":
|
|
1502
|
+
{ "source": "turn", "field": "index" }, "op": "!=", "than": N } so only
|
|
1503
|
+
block N shows on turn N. The board changes at most once a minute.
|
|
1483
1504
|
|
|
1484
1505
|
RULES
|
|
1485
1506
|
|
package/dist/index.d.cts
CHANGED
|
@@ -2458,6 +2458,18 @@ declare const AppSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
2458
2458
|
}, {
|
|
2459
2459
|
values: Record<string, string | number | boolean>;
|
|
2460
2460
|
kind: "static";
|
|
2461
|
+
}>, z.ZodObject<{
|
|
2462
|
+
kind: z.ZodLiteral<"cycle">;
|
|
2463
|
+
count: z.ZodNumber;
|
|
2464
|
+
minutes: z.ZodDefault<z.ZodNumber>;
|
|
2465
|
+
}, "strip", z.ZodTypeAny, {
|
|
2466
|
+
kind: "cycle";
|
|
2467
|
+
count: number;
|
|
2468
|
+
minutes: number;
|
|
2469
|
+
}, {
|
|
2470
|
+
kind: "cycle";
|
|
2471
|
+
count: number;
|
|
2472
|
+
minutes?: number | undefined;
|
|
2461
2473
|
}>]>;
|
|
2462
2474
|
/** A number: written down, or read from a source. The input to arithmetic. */
|
|
2463
2475
|
declare const AppOperandSchema: z.ZodUnion<[z.ZodObject<{
|
|
@@ -12245,6 +12257,18 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
12245
12257
|
}, {
|
|
12246
12258
|
values: Record<string, string | number | boolean>;
|
|
12247
12259
|
kind: "static";
|
|
12260
|
+
}>, z.ZodObject<{
|
|
12261
|
+
kind: z.ZodLiteral<"cycle">;
|
|
12262
|
+
count: z.ZodNumber;
|
|
12263
|
+
minutes: z.ZodDefault<z.ZodNumber>;
|
|
12264
|
+
}, "strip", z.ZodTypeAny, {
|
|
12265
|
+
kind: "cycle";
|
|
12266
|
+
count: number;
|
|
12267
|
+
minutes: number;
|
|
12268
|
+
}, {
|
|
12269
|
+
kind: "cycle";
|
|
12270
|
+
count: number;
|
|
12271
|
+
minutes?: number | undefined;
|
|
12248
12272
|
}>]>>>;
|
|
12249
12273
|
blocks: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
12250
12274
|
color: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["background", "foreground", "muted", "accent", "success", "warning", "danger"]>, z.ZodString]>>;
|
|
@@ -16657,6 +16681,10 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
16657
16681
|
} | {
|
|
16658
16682
|
values: Record<string, string | number | boolean>;
|
|
16659
16683
|
kind: "static";
|
|
16684
|
+
} | {
|
|
16685
|
+
kind: "cycle";
|
|
16686
|
+
count: number;
|
|
16687
|
+
minutes: number;
|
|
16660
16688
|
}>;
|
|
16661
16689
|
author?: string | undefined;
|
|
16662
16690
|
}, {
|
|
@@ -17246,6 +17274,10 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
17246
17274
|
} | {
|
|
17247
17275
|
values: Record<string, string | number | boolean>;
|
|
17248
17276
|
kind: "static";
|
|
17277
|
+
} | {
|
|
17278
|
+
kind: "cycle";
|
|
17279
|
+
count: number;
|
|
17280
|
+
minutes?: number | undefined;
|
|
17249
17281
|
}> | undefined;
|
|
17250
17282
|
}>, {
|
|
17251
17283
|
id: string;
|
|
@@ -17833,6 +17865,10 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
17833
17865
|
} | {
|
|
17834
17866
|
values: Record<string, string | number | boolean>;
|
|
17835
17867
|
kind: "static";
|
|
17868
|
+
} | {
|
|
17869
|
+
kind: "cycle";
|
|
17870
|
+
count: number;
|
|
17871
|
+
minutes: number;
|
|
17836
17872
|
}>;
|
|
17837
17873
|
author?: string | undefined;
|
|
17838
17874
|
}, {
|
|
@@ -18422,6 +18458,10 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18422
18458
|
} | {
|
|
18423
18459
|
values: Record<string, string | number | boolean>;
|
|
18424
18460
|
kind: "static";
|
|
18461
|
+
} | {
|
|
18462
|
+
kind: "cycle";
|
|
18463
|
+
count: number;
|
|
18464
|
+
minutes?: number | undefined;
|
|
18425
18465
|
}> | undefined;
|
|
18426
18466
|
}>;
|
|
18427
18467
|
type AppColorToken = z.infer<typeof AppColorTokenSchema>;
|
|
@@ -20683,14 +20723,14 @@ declare const EntityEventDensityBucketSchema: z.ZodObject<{
|
|
|
20683
20723
|
maxImpact: z.ZodNullable<z.ZodNumber>;
|
|
20684
20724
|
}, "strip", z.ZodTypeAny, {
|
|
20685
20725
|
kind: "news" | "filing" | "report";
|
|
20686
|
-
bucketStart: string;
|
|
20687
20726
|
count: number;
|
|
20727
|
+
bucketStart: string;
|
|
20688
20728
|
avgSentiment: number | null;
|
|
20689
20729
|
maxImpact: number | null;
|
|
20690
20730
|
}, {
|
|
20691
20731
|
kind: "news" | "filing" | "report";
|
|
20692
|
-
bucketStart: string;
|
|
20693
20732
|
count: number;
|
|
20733
|
+
bucketStart: string;
|
|
20694
20734
|
avgSentiment: number | null;
|
|
20695
20735
|
maxImpact: number | null;
|
|
20696
20736
|
}>;
|
|
@@ -20707,14 +20747,14 @@ declare const EntityEventDensitySchema: z.ZodObject<{
|
|
|
20707
20747
|
maxImpact: z.ZodNullable<z.ZodNumber>;
|
|
20708
20748
|
}, "strip", z.ZodTypeAny, {
|
|
20709
20749
|
kind: "news" | "filing" | "report";
|
|
20710
|
-
bucketStart: string;
|
|
20711
20750
|
count: number;
|
|
20751
|
+
bucketStart: string;
|
|
20712
20752
|
avgSentiment: number | null;
|
|
20713
20753
|
maxImpact: number | null;
|
|
20714
20754
|
}, {
|
|
20715
20755
|
kind: "news" | "filing" | "report";
|
|
20716
|
-
bucketStart: string;
|
|
20717
20756
|
count: number;
|
|
20757
|
+
bucketStart: string;
|
|
20718
20758
|
avgSentiment: number | null;
|
|
20719
20759
|
maxImpact: number | null;
|
|
20720
20760
|
}>, "many">;
|
|
@@ -20736,8 +20776,8 @@ declare const EntityEventDensitySchema: z.ZodObject<{
|
|
|
20736
20776
|
bucket: "day" | "week" | "month";
|
|
20737
20777
|
buckets: {
|
|
20738
20778
|
kind: "news" | "filing" | "report";
|
|
20739
|
-
bucketStart: string;
|
|
20740
20779
|
count: number;
|
|
20780
|
+
bucketStart: string;
|
|
20741
20781
|
avgSentiment: number | null;
|
|
20742
20782
|
maxImpact: number | null;
|
|
20743
20783
|
}[];
|
|
@@ -20751,8 +20791,8 @@ declare const EntityEventDensitySchema: z.ZodObject<{
|
|
|
20751
20791
|
bucket: "day" | "week" | "month";
|
|
20752
20792
|
buckets: {
|
|
20753
20793
|
kind: "news" | "filing" | "report";
|
|
20754
|
-
bucketStart: string;
|
|
20755
20794
|
count: number;
|
|
20795
|
+
bucketStart: string;
|
|
20756
20796
|
avgSentiment: number | null;
|
|
20757
20797
|
maxImpact: number | null;
|
|
20758
20798
|
}[];
|
|
@@ -20771,15 +20811,15 @@ declare const EntityEventFacetSchema: z.ZodObject<{
|
|
|
20771
20811
|
sentimentUsable: z.ZodBoolean;
|
|
20772
20812
|
}, "strip", z.ZodTypeAny, {
|
|
20773
20813
|
kind: "news" | "filing" | "report";
|
|
20774
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20775
20814
|
count: number;
|
|
20815
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20776
20816
|
earliest: string | null;
|
|
20777
20817
|
latest: string | null;
|
|
20778
20818
|
sentimentUsable: boolean;
|
|
20779
20819
|
}, {
|
|
20780
20820
|
kind: "news" | "filing" | "report";
|
|
20781
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20782
20821
|
count: number;
|
|
20822
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20783
20823
|
earliest: string | null;
|
|
20784
20824
|
latest: string | null;
|
|
20785
20825
|
sentimentUsable: boolean;
|
|
@@ -20796,15 +20836,15 @@ declare const EntityEventFacetsSchema: z.ZodObject<{
|
|
|
20796
20836
|
sentimentUsable: z.ZodBoolean;
|
|
20797
20837
|
}, "strip", z.ZodTypeAny, {
|
|
20798
20838
|
kind: "news" | "filing" | "report";
|
|
20799
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20800
20839
|
count: number;
|
|
20840
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20801
20841
|
earliest: string | null;
|
|
20802
20842
|
latest: string | null;
|
|
20803
20843
|
sentimentUsable: boolean;
|
|
20804
20844
|
}, {
|
|
20805
20845
|
kind: "news" | "filing" | "report";
|
|
20806
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20807
20846
|
count: number;
|
|
20847
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20808
20848
|
earliest: string | null;
|
|
20809
20849
|
latest: string | null;
|
|
20810
20850
|
sentimentUsable: boolean;
|
|
@@ -20815,8 +20855,8 @@ declare const EntityEventFacetsSchema: z.ZodObject<{
|
|
|
20815
20855
|
ticker: string;
|
|
20816
20856
|
facets: {
|
|
20817
20857
|
kind: "news" | "filing" | "report";
|
|
20818
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20819
20858
|
count: number;
|
|
20859
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20820
20860
|
earliest: string | null;
|
|
20821
20861
|
latest: string | null;
|
|
20822
20862
|
sentimentUsable: boolean;
|
|
@@ -20826,8 +20866,8 @@ declare const EntityEventFacetsSchema: z.ZodObject<{
|
|
|
20826
20866
|
ticker: string;
|
|
20827
20867
|
facets: {
|
|
20828
20868
|
kind: "news" | "filing" | "report";
|
|
20829
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20830
20869
|
count: number;
|
|
20870
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20831
20871
|
earliest: string | null;
|
|
20832
20872
|
latest: string | null;
|
|
20833
20873
|
sentimentUsable: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -2458,6 +2458,18 @@ declare const AppSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
2458
2458
|
}, {
|
|
2459
2459
|
values: Record<string, string | number | boolean>;
|
|
2460
2460
|
kind: "static";
|
|
2461
|
+
}>, z.ZodObject<{
|
|
2462
|
+
kind: z.ZodLiteral<"cycle">;
|
|
2463
|
+
count: z.ZodNumber;
|
|
2464
|
+
minutes: z.ZodDefault<z.ZodNumber>;
|
|
2465
|
+
}, "strip", z.ZodTypeAny, {
|
|
2466
|
+
kind: "cycle";
|
|
2467
|
+
count: number;
|
|
2468
|
+
minutes: number;
|
|
2469
|
+
}, {
|
|
2470
|
+
kind: "cycle";
|
|
2471
|
+
count: number;
|
|
2472
|
+
minutes?: number | undefined;
|
|
2461
2473
|
}>]>;
|
|
2462
2474
|
/** A number: written down, or read from a source. The input to arithmetic. */
|
|
2463
2475
|
declare const AppOperandSchema: z.ZodUnion<[z.ZodObject<{
|
|
@@ -12245,6 +12257,18 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
12245
12257
|
}, {
|
|
12246
12258
|
values: Record<string, string | number | boolean>;
|
|
12247
12259
|
kind: "static";
|
|
12260
|
+
}>, z.ZodObject<{
|
|
12261
|
+
kind: z.ZodLiteral<"cycle">;
|
|
12262
|
+
count: z.ZodNumber;
|
|
12263
|
+
minutes: z.ZodDefault<z.ZodNumber>;
|
|
12264
|
+
}, "strip", z.ZodTypeAny, {
|
|
12265
|
+
kind: "cycle";
|
|
12266
|
+
count: number;
|
|
12267
|
+
minutes: number;
|
|
12268
|
+
}, {
|
|
12269
|
+
kind: "cycle";
|
|
12270
|
+
count: number;
|
|
12271
|
+
minutes?: number | undefined;
|
|
12248
12272
|
}>]>>>;
|
|
12249
12273
|
blocks: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
12250
12274
|
color: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["background", "foreground", "muted", "accent", "success", "warning", "danger"]>, z.ZodString]>>;
|
|
@@ -16657,6 +16681,10 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
16657
16681
|
} | {
|
|
16658
16682
|
values: Record<string, string | number | boolean>;
|
|
16659
16683
|
kind: "static";
|
|
16684
|
+
} | {
|
|
16685
|
+
kind: "cycle";
|
|
16686
|
+
count: number;
|
|
16687
|
+
minutes: number;
|
|
16660
16688
|
}>;
|
|
16661
16689
|
author?: string | undefined;
|
|
16662
16690
|
}, {
|
|
@@ -17246,6 +17274,10 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
17246
17274
|
} | {
|
|
17247
17275
|
values: Record<string, string | number | boolean>;
|
|
17248
17276
|
kind: "static";
|
|
17277
|
+
} | {
|
|
17278
|
+
kind: "cycle";
|
|
17279
|
+
count: number;
|
|
17280
|
+
minutes?: number | undefined;
|
|
17249
17281
|
}> | undefined;
|
|
17250
17282
|
}>, {
|
|
17251
17283
|
id: string;
|
|
@@ -17833,6 +17865,10 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
17833
17865
|
} | {
|
|
17834
17866
|
values: Record<string, string | number | boolean>;
|
|
17835
17867
|
kind: "static";
|
|
17868
|
+
} | {
|
|
17869
|
+
kind: "cycle";
|
|
17870
|
+
count: number;
|
|
17871
|
+
minutes: number;
|
|
17836
17872
|
}>;
|
|
17837
17873
|
author?: string | undefined;
|
|
17838
17874
|
}, {
|
|
@@ -18422,6 +18458,10 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18422
18458
|
} | {
|
|
18423
18459
|
values: Record<string, string | number | boolean>;
|
|
18424
18460
|
kind: "static";
|
|
18461
|
+
} | {
|
|
18462
|
+
kind: "cycle";
|
|
18463
|
+
count: number;
|
|
18464
|
+
minutes?: number | undefined;
|
|
18425
18465
|
}> | undefined;
|
|
18426
18466
|
}>;
|
|
18427
18467
|
type AppColorToken = z.infer<typeof AppColorTokenSchema>;
|
|
@@ -20683,14 +20723,14 @@ declare const EntityEventDensityBucketSchema: z.ZodObject<{
|
|
|
20683
20723
|
maxImpact: z.ZodNullable<z.ZodNumber>;
|
|
20684
20724
|
}, "strip", z.ZodTypeAny, {
|
|
20685
20725
|
kind: "news" | "filing" | "report";
|
|
20686
|
-
bucketStart: string;
|
|
20687
20726
|
count: number;
|
|
20727
|
+
bucketStart: string;
|
|
20688
20728
|
avgSentiment: number | null;
|
|
20689
20729
|
maxImpact: number | null;
|
|
20690
20730
|
}, {
|
|
20691
20731
|
kind: "news" | "filing" | "report";
|
|
20692
|
-
bucketStart: string;
|
|
20693
20732
|
count: number;
|
|
20733
|
+
bucketStart: string;
|
|
20694
20734
|
avgSentiment: number | null;
|
|
20695
20735
|
maxImpact: number | null;
|
|
20696
20736
|
}>;
|
|
@@ -20707,14 +20747,14 @@ declare const EntityEventDensitySchema: z.ZodObject<{
|
|
|
20707
20747
|
maxImpact: z.ZodNullable<z.ZodNumber>;
|
|
20708
20748
|
}, "strip", z.ZodTypeAny, {
|
|
20709
20749
|
kind: "news" | "filing" | "report";
|
|
20710
|
-
bucketStart: string;
|
|
20711
20750
|
count: number;
|
|
20751
|
+
bucketStart: string;
|
|
20712
20752
|
avgSentiment: number | null;
|
|
20713
20753
|
maxImpact: number | null;
|
|
20714
20754
|
}, {
|
|
20715
20755
|
kind: "news" | "filing" | "report";
|
|
20716
|
-
bucketStart: string;
|
|
20717
20756
|
count: number;
|
|
20757
|
+
bucketStart: string;
|
|
20718
20758
|
avgSentiment: number | null;
|
|
20719
20759
|
maxImpact: number | null;
|
|
20720
20760
|
}>, "many">;
|
|
@@ -20736,8 +20776,8 @@ declare const EntityEventDensitySchema: z.ZodObject<{
|
|
|
20736
20776
|
bucket: "day" | "week" | "month";
|
|
20737
20777
|
buckets: {
|
|
20738
20778
|
kind: "news" | "filing" | "report";
|
|
20739
|
-
bucketStart: string;
|
|
20740
20779
|
count: number;
|
|
20780
|
+
bucketStart: string;
|
|
20741
20781
|
avgSentiment: number | null;
|
|
20742
20782
|
maxImpact: number | null;
|
|
20743
20783
|
}[];
|
|
@@ -20751,8 +20791,8 @@ declare const EntityEventDensitySchema: z.ZodObject<{
|
|
|
20751
20791
|
bucket: "day" | "week" | "month";
|
|
20752
20792
|
buckets: {
|
|
20753
20793
|
kind: "news" | "filing" | "report";
|
|
20754
|
-
bucketStart: string;
|
|
20755
20794
|
count: number;
|
|
20795
|
+
bucketStart: string;
|
|
20756
20796
|
avgSentiment: number | null;
|
|
20757
20797
|
maxImpact: number | null;
|
|
20758
20798
|
}[];
|
|
@@ -20771,15 +20811,15 @@ declare const EntityEventFacetSchema: z.ZodObject<{
|
|
|
20771
20811
|
sentimentUsable: z.ZodBoolean;
|
|
20772
20812
|
}, "strip", z.ZodTypeAny, {
|
|
20773
20813
|
kind: "news" | "filing" | "report";
|
|
20774
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20775
20814
|
count: number;
|
|
20815
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20776
20816
|
earliest: string | null;
|
|
20777
20817
|
latest: string | null;
|
|
20778
20818
|
sentimentUsable: boolean;
|
|
20779
20819
|
}, {
|
|
20780
20820
|
kind: "news" | "filing" | "report";
|
|
20781
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20782
20821
|
count: number;
|
|
20822
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20783
20823
|
earliest: string | null;
|
|
20784
20824
|
latest: string | null;
|
|
20785
20825
|
sentimentUsable: boolean;
|
|
@@ -20796,15 +20836,15 @@ declare const EntityEventFacetsSchema: z.ZodObject<{
|
|
|
20796
20836
|
sentimentUsable: z.ZodBoolean;
|
|
20797
20837
|
}, "strip", z.ZodTypeAny, {
|
|
20798
20838
|
kind: "news" | "filing" | "report";
|
|
20799
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20800
20839
|
count: number;
|
|
20840
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20801
20841
|
earliest: string | null;
|
|
20802
20842
|
latest: string | null;
|
|
20803
20843
|
sentimentUsable: boolean;
|
|
20804
20844
|
}, {
|
|
20805
20845
|
kind: "news" | "filing" | "report";
|
|
20806
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20807
20846
|
count: number;
|
|
20847
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20808
20848
|
earliest: string | null;
|
|
20809
20849
|
latest: string | null;
|
|
20810
20850
|
sentimentUsable: boolean;
|
|
@@ -20815,8 +20855,8 @@ declare const EntityEventFacetsSchema: z.ZodObject<{
|
|
|
20815
20855
|
ticker: string;
|
|
20816
20856
|
facets: {
|
|
20817
20857
|
kind: "news" | "filing" | "report";
|
|
20818
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20819
20858
|
count: number;
|
|
20859
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20820
20860
|
earliest: string | null;
|
|
20821
20861
|
latest: string | null;
|
|
20822
20862
|
sentimentUsable: boolean;
|
|
@@ -20826,8 +20866,8 @@ declare const EntityEventFacetsSchema: z.ZodObject<{
|
|
|
20826
20866
|
ticker: string;
|
|
20827
20867
|
facets: {
|
|
20828
20868
|
kind: "news" | "filing" | "report";
|
|
20829
|
-
impactScale: "none" | "graded" | "binary" | "default";
|
|
20830
20869
|
count: number;
|
|
20870
|
+
impactScale: "none" | "graded" | "binary" | "default";
|
|
20831
20871
|
earliest: string | null;
|
|
20832
20872
|
latest: string | null;
|
|
20833
20873
|
sentimentUsable: boolean;
|
package/dist/index.js
CHANGED
|
@@ -443,6 +443,22 @@ var AppSourceSchema = z6.discriminatedUnion("kind", [
|
|
|
443
443
|
z6.object({
|
|
444
444
|
kind: z6.literal("static"),
|
|
445
445
|
values: z6.record(z6.union([z6.string(), z6.number(), z6.boolean()]))
|
|
446
|
+
}),
|
|
447
|
+
/**
|
|
448
|
+
* Taking turns: a number that counts 0, 1, 2 … up to `count - 1` and starts
|
|
449
|
+
* again, moving on every `minutes`. Its one field is `index`.
|
|
450
|
+
*
|
|
451
|
+
* It exists for the photo frame — each photo hides unless the index is its
|
|
452
|
+
* own — and works for anything that should alternate, like two lines of a
|
|
453
|
+
* sign. Counted from UTC minutes since 1970, so the browser and every board
|
|
454
|
+
* agree on which turn it is without talking to each other, and minutes
|
|
455
|
+
* because a board redraws once a minute and no faster (see loop() in
|
|
456
|
+
* hardware/weather-display/weather-display.ino).
|
|
457
|
+
*/
|
|
458
|
+
z6.object({
|
|
459
|
+
kind: z6.literal("cycle"),
|
|
460
|
+
count: z6.number().int().min(2).max(12),
|
|
461
|
+
minutes: z6.number().int().min(1).max(1440).default(5)
|
|
446
462
|
})
|
|
447
463
|
]);
|
|
448
464
|
var AppOperandSchema = z6.union([
|
|
@@ -1290,6 +1306,11 @@ SOURCES \u2014 declare what the app reads, then bind to it by name:
|
|
|
1290
1306
|
fields: days, hours, minutes, seconds, label
|
|
1291
1307
|
"fixed": { "kind": "static", "values": { "anything": 1 } }
|
|
1292
1308
|
fields: whatever you put in values
|
|
1309
|
+
"turn": { "kind": "cycle", "count": 2, "minutes": 5 }
|
|
1310
|
+
fields: index (0, 1, \u2026 count-1, moving on every "minutes", then round again)
|
|
1311
|
+
For things that take turns: give each block "hideWhen": { "value":
|
|
1312
|
+
{ "source": "turn", "field": "index" }, "op": "!=", "than": N } so only
|
|
1313
|
+
block N shows on turn N. The board changes at most once a minute.
|
|
1293
1314
|
|
|
1294
1315
|
RULES
|
|
1295
1316
|
|