react-semaphor 0.1.602 → 0.1.603
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/analytics-protocol/index.js +415 -375
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
- package/dist/chunks/{assistant-chat-BWF3GYip.js → assistant-chat-B6hNQI1t.js} +146 -146
- package/dist/chunks/{bookmark-impact-BF3iRx5a.js → bookmark-impact-Ba2PLcGp.js} +3 -3
- package/dist/chunks/{bookmark-state-CBSTdW6q.js → bookmark-state-n7AaNzR_.js} +517 -516
- package/dist/chunks/{card-filter-builder-B8XHwMY6.js → card-filter-builder-Y22HizVx.js} +104 -104
- package/dist/chunks/{comparison-window-caption-W83qB4V5.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
- package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
- package/dist/chunks/{dashboard-DG5EIYYB.js → dashboard-BghI99oY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CBSrhyWZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +103 -103
- package/dist/chunks/{dashboard-controls-D6ECO4N1.js → dashboard-controls-CtFXlyjV.js} +53 -53
- package/dist/chunks/{dashboard-json-DrJftBSL.js → dashboard-json-DfGBUtCd.js} +5 -5
- package/dist/chunks/dates-BnrXF4bb.js +185 -0
- package/dist/chunks/{edit-dashboard-visual-BDYAJIbb.js → edit-dashboard-visual-oxt3x1wb.js} +7976 -8184
- package/dist/chunks/{filter-line-BXT6y303.js → filter-line-Cy5YYqRL.js} +27 -27
- package/dist/chunks/{filter-reach-copy-BukhZmzm.js → filter-reach-copy-CE_ZX147.js} +1590 -1729
- package/dist/chunks/{filter-value-text-D3-bf3_b.js → filter-value-text-fWvSDwkl.js} +11 -11
- package/dist/chunks/{index-BW0yozjs.js → index-D5rxbtS4.js} +24 -24
- package/dist/chunks/{layout-grid-Ds0diMeY.js → layout-grid-9LndRoLa.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CgQgVeeI.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
- package/dist/chunks/{matrix-operation-contract--DkNCOzd.js → matrix-operation-contract-DPBj69D8.js} +3 -2
- package/dist/chunks/{metric-comparison-zMylnIkc.js → metric-comparison-B0FR-Q8I.js} +184 -125
- package/dist/chunks/{paintbrush-CX8pao1j.js → paintbrush-58FQYY-y.js} +1 -1
- package/dist/chunks/{palette-CuA0HlzF.js → palette-Be62Tkoa.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-C8KL7hPx.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
- package/dist/chunks/{pivot-result-identity-C1AOH1PS.js → pivot-result-identity-CAP4--iq.js} +1 -1
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
- package/dist/chunks/{report-preferences-dialog-CbuVNDGi.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
- package/dist/chunks/{report-runtime-context-E7USjN7E.js → report-runtime-context-c77_KF9v.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CULCE_hM.js → resolve-dashboard-input-context-Rtl1ffmE.js} +7115 -6963
- package/dist/chunks/{save-BKHlDONy.js → save-C5A0JnEV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-C1WlOx5z.js → saved-dashboard-context-tcyTU8jm.js} +193 -207
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
- package/dist/chunks/{semaphor-ready-indicator-CBIRcDWs.js → semaphor-ready-indicator-FBvunj6S.js} +35550 -35273
- package/dist/chunks/{shelf-drop-preview-context-xR69SMA8.js → shelf-drop-preview-context-QKStrcK9.js} +6 -6
- package/dist/chunks/{stored-dashboard-BuM8vnWf.js → stored-dashboard-CHozcAY9.js} +621 -616
- package/dist/chunks/{style-sheet-parts-Bt9ZNre8.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
- package/dist/chunks/{table-export-sheet-DVljtHkG.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
- package/dist/chunks/{token-types-D_xKgyVS.js → token-types-XbM6QByy.js} +1 -1
- package/dist/chunks/{upload-Dll_M7XQ.js → upload-H15d7uHK.js} +1 -1
- package/dist/chunks/{validators-ClWHpYql.js → validators-Baf3VIf5.js} +3 -3
- package/dist/chunks/{variable-draft-CDGGl53R.js → variable-draft-C2y8Jp6Z.js} +3 -3
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2466 -2343
- package/dist/format-utils/index.js +205 -204
- package/dist/index.js +20 -20
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/usage-events/index.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/dates-Bz-qM5px.js +0 -164
- package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
- package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
- package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
package/dist/surfboard/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, R as s, D as o } from "../chunks/report-preferences-dialog-
|
|
2
|
-
import { C as f, E as D } from "../chunks/bookmark-state-
|
|
1
|
+
import { a, R as s, D as o } from "../chunks/report-preferences-dialog-uJp9GBTM.js";
|
|
2
|
+
import { C as f, E as D } from "../chunks/bookmark-state-n7AaNzR_.js";
|
|
3
3
|
export {
|
|
4
4
|
f as CONTROL_CARD_DEFAULT_VALUE,
|
|
5
5
|
a as DisplayFormatPreferencesFields,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DefaultDateFilter, FixedDayDefaultDateFilter, FixedMonthDefaultDateFilter } from '../surfboard/filter/types.js';
|
|
2
2
|
import { WeekStart } from '../../lib/types/token-types.js';
|
|
3
3
|
import { CalendarContext } from '../../shared/report-runtime-context/index.js';
|
|
4
|
+
import { ComparisonWindowShape } from '../../shared/analytics-protocol/comparison-choices.js';
|
|
4
5
|
/** Calendar inputs for defaults, including reproducible and fiscal reports. */
|
|
5
6
|
export type DefaultDateCalendar = Pick<CalendarContext, 'tz' | 'weekStart'> & Partial<Pick<CalendarContext, 'anchor' | 'fiscalCalendar'>>;
|
|
6
7
|
export declare const isFixedMonthDefaultDateFilter: (value: unknown) => value is FixedMonthDefaultDateFilter;
|
|
@@ -26,4 +27,11 @@ export declare const isSingleDayDefaultDateFilter: (value: DefaultDateFilter | u
|
|
|
26
27
|
* other window would filter on dates the control doesn't show.
|
|
27
28
|
*/
|
|
28
29
|
export declare const isSingleMonthDefaultDateFilter: (value: DefaultDateFilter | undefined) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* A date default's window for the Compare with menu (compare-with CW-D7): a
|
|
32
|
+
* relative default's shape, a fixed day, or a fixed calendar month. Read from
|
|
33
|
+
* the stored default itself, so a fixed default is never unknown (review
|
|
34
|
+
* P2R-05: a fixed month offered a week back that overlaps it).
|
|
35
|
+
*/
|
|
36
|
+
export declare function defaultDateFilterComparisonShape(meta: DefaultDateFilter | undefined): ComparisonWindowShape | undefined;
|
|
29
37
|
export declare function resolveDefaultDateFilterForDefaults(meta: DefaultDateFilter, calendar: string | DefaultDateCalendar, weekStart?: WeekStart): [Date, Date] | undefined;
|
package/dist/types/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as t, z as r, C as l, E as o, V as i, j as n, c as d, g as m, f as u, b as c, e as E, d as C, a as T, y as p, x as D, o as A, h as I, q as _, w as F, v as S, m as b, n as L, l as f, p as N, k as y, s as R, u as h, i as g, r as x, t as M } from "../chunks/bookmark-state-
|
|
2
|
-
import { C as V, D as w, L as z, d as U, g as k, e as B, h as K, f as v, c as Y, a as q, i as G, b as P, n as Q, s as W } from "../chunks/validators-
|
|
3
|
-
import { D as J } from "../chunks/token-types-
|
|
4
|
-
import { r as H, a as Z } from "../chunks/pivot-result-identity-
|
|
5
|
-
import { D as ee } from "../chunks/report-runtime-context-
|
|
1
|
+
import { B as t, z as r, C as l, E as o, V as i, j as n, c as d, g as m, f as u, b as c, e as E, d as C, a as T, y as p, x as D, o as A, h as I, q as _, w as F, v as S, m as b, n as L, l as f, p as N, k as y, s as R, u as h, i as g, r as x, t as M } from "../chunks/bookmark-state-n7AaNzR_.js";
|
|
2
|
+
import { C as V, D as w, L as z, d as U, g as k, e as B, h as K, f as v, c as Y, a as q, i as G, b as P, n as Q, s as W } from "../chunks/validators-Baf3VIf5.js";
|
|
3
|
+
import { D as J } from "../chunks/token-types-XbM6QByy.js";
|
|
4
|
+
import { r as H, a as Z } from "../chunks/pivot-result-identity-CAP4--iq.js";
|
|
5
|
+
import { D as ee } from "../chunks/report-runtime-context-c77_KF9v.js";
|
|
6
6
|
const e = [
|
|
7
7
|
"concatenate",
|
|
8
8
|
"conditional-category",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentDefinition, DocumentKpiSection, DocumentSection, DocumentTableSection, DocumentTextContent, DocumentTextRegionBlock, DocumentTextStyle, TCard, TDashboard } from '../types/common-types.js';
|
|
2
|
-
import { Field } from '../types/explorer-types.js';
|
|
3
2
|
import { DashboardCardLocation } from '../../shared/dashboard-authoring/document-section-cards.js';
|
|
4
3
|
import { DocumentPanelTarget } from './document-panel-target.js';
|
|
5
4
|
import { DocumentIdFactory, DocumentSectionKindId } from './document-section-kinds.js';
|
|
@@ -71,7 +70,6 @@ export type DocumentEdit = {
|
|
|
71
70
|
sectionId: string;
|
|
72
71
|
oldCardId: string;
|
|
73
72
|
card: TCard;
|
|
74
|
-
calculatedFields?: Field[];
|
|
75
73
|
}
|
|
76
74
|
/** A placeholder KPI when neither `card` nor `source` is given. */
|
|
77
75
|
| {
|
|
@@ -100,8 +98,6 @@ export type DocumentEditResult = {
|
|
|
100
98
|
document: DocumentDefinition;
|
|
101
99
|
/** Where the panel goes next: the inserted, moved or edited section, or a removed section's neighbor. */
|
|
102
100
|
target: DocumentPanelTarget;
|
|
103
|
-
/** The sheet's full calculated fields after a copy brought new ones; persist as the sheet's list. */
|
|
104
|
-
calculatedFields?: Field[];
|
|
105
101
|
/** Card ids removed (`to: null`) or replaced by a new id, for reference cleanup. */
|
|
106
102
|
retargetedCardIds?: Array<{
|
|
107
103
|
from: string;
|
|
@@ -480,7 +480,6 @@ type Actions = {
|
|
|
480
480
|
updateFrame: (sheetId: string, frame: TFrame, options?: {
|
|
481
481
|
semanticExecutionPayload?: SemanticExecutionPayload;
|
|
482
482
|
}) => void;
|
|
483
|
-
updateSheetCalculatedFields: (sheetId: string, calculatedFields: Field[]) => void;
|
|
484
483
|
updateDashboardCalculatedFields: (calculatedFields: Field[]) => void;
|
|
485
484
|
/** Whether the field changes a Document section card's edit made would apply with that card committed; asked before writing it. */
|
|
486
485
|
checkCalculatedFieldOps: (card: TCard, replacingCardId: string) => {
|
|
@@ -1431,7 +1431,6 @@ export type TFrame = {
|
|
|
1431
1431
|
filterId?: string;
|
|
1432
1432
|
cards: TCard[];
|
|
1433
1433
|
activeCardId: string;
|
|
1434
|
-
calculatedFields?: Field[];
|
|
1435
1434
|
};
|
|
1436
1435
|
export type DocumentPageSetup = {
|
|
1437
1436
|
size: 'letter' | 'a4';
|
|
@@ -1626,7 +1625,6 @@ export type TSheet = {
|
|
|
1626
1625
|
customizedBreakpoints?: CustomizableBreakpoint[];
|
|
1627
1626
|
cards?: TCard[];
|
|
1628
1627
|
frames?: TFrame[];
|
|
1629
|
-
calculatedFields?: Field[];
|
|
1630
1628
|
document?: DocumentDefinition;
|
|
1631
1629
|
};
|
|
1632
1630
|
export type TEvent = {
|
|
@@ -28,7 +28,7 @@ import { StoredRelativeDate } from '../../shared/analytics-protocol/relative-dat
|
|
|
28
28
|
export declare const CALCULATED_FIELD_ENTITY_MARKER: "SEMAPHOR_CALCULATED_FIELD";
|
|
29
29
|
export declare const LEGACY_CALCULATED_FIELD_ENTITY_MARKER: "calculated_fields";
|
|
30
30
|
export type CardMode = 'explorer' | 'dev';
|
|
31
|
-
export type FieldScope = 'card' | '
|
|
31
|
+
export type FieldScope = 'card' | 'dashboard' | 'domain';
|
|
32
32
|
export type SemanticTemporalPresentation = {
|
|
33
33
|
granularity: SemaphorTimeGrain;
|
|
34
34
|
format: TemporalBucketFormat;
|
|
@@ -1431,16 +1431,22 @@ export declare const semaphorMetricResultSchema: z.ZodObject<{
|
|
|
1431
1431
|
missingMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1432
1432
|
comparison: z.ZodOptional<z.ZodObject<{
|
|
1433
1433
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1434
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1435
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1434
1436
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1435
1437
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1436
1438
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1437
1439
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1438
1440
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1441
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1442
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1439
1443
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1440
1444
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1441
1445
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1442
1446
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1443
1447
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1448
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1449
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1444
1450
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1445
1451
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1446
1452
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
@@ -1481,16 +1487,22 @@ export declare const semaphorMetricResultSchema: z.ZodObject<{
|
|
|
1481
1487
|
missingMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1482
1488
|
comparison: z.ZodOptional<z.ZodObject<{
|
|
1483
1489
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1490
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1491
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1484
1492
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1485
1493
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1486
1494
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1487
1495
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1488
1496
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1497
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1498
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1489
1499
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1490
1500
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1491
1501
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1492
1502
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1493
1503
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1504
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1505
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1494
1506
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1495
1507
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1496
1508
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
@@ -1531,16 +1543,22 @@ export declare const semaphorMetricResultSchema: z.ZodObject<{
|
|
|
1531
1543
|
missingMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1532
1544
|
comparison: z.ZodOptional<z.ZodObject<{
|
|
1533
1545
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1546
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1547
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1534
1548
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1535
1549
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1536
1550
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1537
1551
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1538
1552
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1553
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1554
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1539
1555
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1540
1556
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1541
1557
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1542
1558
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1543
1559
|
kind: z.ZodEnum<["previous_period", "previous_year", "target"]>;
|
|
1560
|
+
/** What it compared with, as a card names it (compare-with CW-D24). */
|
|
1561
|
+
words: z.ZodOptional<z.ZodString>;
|
|
1544
1562
|
value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
|
|
1545
1563
|
delta: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1546
1564
|
deltaPercent: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
@@ -5,6 +5,7 @@ export declare const SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT: {
|
|
|
5
5
|
readonly responseDetail: "responseDetail";
|
|
6
6
|
readonly mode: "string";
|
|
7
7
|
readonly comparisonKind: "string";
|
|
8
|
+
readonly comparisonWords: "string";
|
|
8
9
|
readonly executionResult: "executionResult";
|
|
9
10
|
readonly compiledQuery: "unknown";
|
|
10
11
|
readonly data: "unknown";
|
|
@@ -66,6 +67,8 @@ export type SemaphorAnalyzeResult = Partial<Record<SemaphorAnalyzeResultFieldNam
|
|
|
66
67
|
responseDetail?: SemaphorAnalyzeResponseDetail;
|
|
67
68
|
mode?: string;
|
|
68
69
|
comparisonKind?: string;
|
|
70
|
+
/** What the comparison compared with, as a card names it: "Same day last week · Nov 6, until 8:06 AM" (compare-with CW-D24). */
|
|
71
|
+
comparisonWords?: string;
|
|
69
72
|
executionResult?: SemaphorAnalyticsExecutionResult;
|
|
70
73
|
compiledQuery?: SemaphorCompiledQuery;
|
|
71
74
|
data?: unknown;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ComparisonShiftSpec, ComparisonUnit, ResolvedDateWindow } from './metric-comparison.js';
|
|
2
|
+
import { DateUnit, RelativeDateUnit, RelativeDateWindow } from './relative-date/index.js';
|
|
3
|
+
import { TemporalCalendar } from '../temporal/calendar-periods.js';
|
|
4
|
+
/** A calendar unit a comparison can step by. */
|
|
5
|
+
export type ComparisonCalendarUnit = Exclude<ComparisonUnit, 'period'>;
|
|
6
|
+
/**
|
|
7
|
+
* What the choices need to know about a window: the days it covers (a
|
|
8
|
+
* month counts its average length), and the calendar period it is when it is exactly one (Today, This month,
|
|
9
|
+
* Last quarter). Absent with no window.
|
|
10
|
+
*/
|
|
11
|
+
export type ComparisonWindowShape = {
|
|
12
|
+
days: number;
|
|
13
|
+
period?: DateUnit;
|
|
14
|
+
/** A window counted in some unit other than days (the last 3 months, the last 6 hours): its count and unit, for its words (review P2R-02). */
|
|
15
|
+
count?: number;
|
|
16
|
+
unit?: RelativeDateUnit;
|
|
17
|
+
/**
|
|
18
|
+
* The fewest days the window can span, when that is less than `days` (a
|
|
19
|
+
* month 28, three months 89, twelve months 365): "certainly overlaps" is
|
|
20
|
+
* judged on it, so a step that fits in a short month is never refused.
|
|
21
|
+
*/
|
|
22
|
+
fewestDays?: number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* What a surface has for the window a comparison applies to (compare-with
|
|
26
|
+
* CW-D15): a relative window as stored, a fixed day or month default, two
|
|
27
|
+
* dates as a filter stores them (the end included: a picked range's last
|
|
28
|
+
* instant, or a date-only day), or a run's resolved window (end exclusive).
|
|
29
|
+
*/
|
|
30
|
+
export type ComparisonWindowSource = {
|
|
31
|
+
kind: 'relative';
|
|
32
|
+
window: unknown;
|
|
33
|
+
} | {
|
|
34
|
+
kind: 'fixedDay';
|
|
35
|
+
}
|
|
36
|
+
/** `month` 0 to 11, as the month picker saves it. */
|
|
37
|
+
| {
|
|
38
|
+
kind: 'fixedMonth';
|
|
39
|
+
year: number;
|
|
40
|
+
month: number;
|
|
41
|
+
}
|
|
42
|
+
/** `calendar`, when the caller knows the report's: a range that is exactly one calendar period is named by it, as placement steps it. */
|
|
43
|
+
| {
|
|
44
|
+
kind: 'range';
|
|
45
|
+
start: unknown;
|
|
46
|
+
end: unknown;
|
|
47
|
+
calendar?: TemporalCalendar | null;
|
|
48
|
+
} | {
|
|
49
|
+
kind: 'resolved';
|
|
50
|
+
window: ResolvedDateWindow;
|
|
51
|
+
calendar?: TemporalCalendar | null;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The one owner of a comparison window's shape (compare-with CW-D15, hotspot
|
|
55
|
+
* H-1): every surface (the Date filter's footer, chip and configuration
|
|
56
|
+
* panel, the card editor, the MCP) maps what it has to a source and asks
|
|
57
|
+
* here, so the days counted, the end included and the unit a window is named
|
|
58
|
+
* in are decided once. Undefined when the source has no finite window.
|
|
59
|
+
*/
|
|
60
|
+
export declare function comparisonWindowShape(source: ComparisonWindowSource | undefined): ComparisonWindowShape | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* What a current window is, for naming its comparison, where the run plans it
|
|
63
|
+
* (compare-with CW-D12, CW-D15; ledger P4-11): the window the user picked when
|
|
64
|
+
* one governs, else the whole range on the report calendar. Never the window
|
|
65
|
+
* the run counted: that is cut at the run instant while it is still running,
|
|
66
|
+
* and would name a running month "Previous 13 days".
|
|
67
|
+
*/
|
|
68
|
+
export declare function plannedWindowShape(input: {
|
|
69
|
+
picked?: RelativeDateWindow;
|
|
70
|
+
whole?: ResolvedDateWindow;
|
|
71
|
+
calendar?: TemporalCalendar | null;
|
|
72
|
+
}): ComparisonWindowShape | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Whether a step back certainly lands on days the window still covers, for
|
|
75
|
+
* the control's note: previous period never does; a fixed step does when even
|
|
76
|
+
* its longest step is shorter than the window (a week back from This month).
|
|
77
|
+
* Placement decides on the dates (a month back from the last 30 days may
|
|
78
|
+
* fit); unknown with no window: false.
|
|
79
|
+
*/
|
|
80
|
+
export declare function comparisonOverlaps(spec: ComparisonShiftSpec, shape: ComparisonWindowShape | undefined): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The steps a window is offered, in menu order (CW-D7, CW-D14): previous
|
|
83
|
+
* period always; then each calendar unit one step of which is longer than
|
|
84
|
+
* the window (so it cannot overlap, nor equal the previous period) and which
|
|
85
|
+
* is not the window's own period (a week back from
|
|
86
|
+
* This week is the previous period). A day step is never listed: on a day
|
|
87
|
+
* it is the previous period, on anything longer it overlaps. With no window,
|
|
88
|
+
* every unit.
|
|
89
|
+
*/
|
|
90
|
+
export declare function offeredComparisons(shape: ComparisonWindowShape | undefined): ComparisonShiftSpec[];
|
|
91
|
+
/** The units a custom step may name, in menu order. */
|
|
92
|
+
export declare const CUSTOM_COMPARISON_UNITS: readonly ComparisonCalendarUnit[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TemporalCalendar, TemporalShift } from '../temporal/calendar-periods.js';
|
|
2
|
+
import { DateColumnKind, DateWindowBasis } from './date-window.js';
|
|
3
|
+
import { ResolvedDateWindow, StoredViewerPeriodComparisonSpec } from './metric-comparison.js';
|
|
4
|
+
export type ComparisonWindowPlacementResult = {
|
|
5
|
+
status: 'resolved';
|
|
6
|
+
currentWindow: ResolvedDateWindow;
|
|
7
|
+
comparisonWindow: ResolvedDateWindow;
|
|
8
|
+
/** How far back the comparison window sits (CK-D4). */
|
|
9
|
+
step: TemporalShift;
|
|
10
|
+
} | {
|
|
11
|
+
status: 'unavailable';
|
|
12
|
+
reason: 'finite_current_window_required' | 'current_window_not_started' | 'temporal_binding_invalid' | 'insufficient_history' | 'overlaps_current_window';
|
|
13
|
+
};
|
|
14
|
+
/** The comparison window for a step back from the current window, or why there is none. */
|
|
15
|
+
export declare function placeComparisonWindow(input: {
|
|
16
|
+
currentWindow: ResolvedDateWindow | undefined;
|
|
17
|
+
/** A step back, in any stored shape: read through the one reader here (compare-with CW-D5). */
|
|
18
|
+
spec: StoredViewerPeriodComparisonSpec;
|
|
19
|
+
/** The date column the windows filter: a DATE column counts whole days. */
|
|
20
|
+
column: DateColumnKind;
|
|
21
|
+
referenceTime: Date;
|
|
22
|
+
/**
|
|
23
|
+
* What the current window is (CK-D2). An `anchored` window (Year to last
|
|
24
|
+
* completed month) compares with the same completed subperiods `offset`
|
|
25
|
+
* spans earlier (relative-date-as-of SPEC 3.3, AO-D26).
|
|
26
|
+
*/
|
|
27
|
+
basis: DateWindowBasis;
|
|
28
|
+
weekStart: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
29
|
+
fiscalCalendar?: TemporalCalendar['fiscalCalendar'];
|
|
30
|
+
}): ComparisonWindowPlacementResult;
|
|
@@ -4,6 +4,7 @@ import { matrixResultSchema } from './matrix-window-contract.js';
|
|
|
4
4
|
import { CalendarContext } from '../report-runtime-context/index.js';
|
|
5
5
|
import { RelativeDateWindowInput } from './relative-date/index.js';
|
|
6
6
|
import { SemaphorQueryConstraints } from './applied-constraints.js';
|
|
7
|
+
import { ComparisonFamily, MetricComparisonSpec } from './metric-comparison.js';
|
|
7
8
|
export type SemaphorProtocolVersion = 1;
|
|
8
9
|
export type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
|
|
9
10
|
export type SemaphorSourceLevel = 'database' | 'schema' | 'table';
|
|
@@ -419,10 +420,12 @@ export type SemaphorMetricIntent = {
|
|
|
419
420
|
timeWindow?: SemaphorTimeWindow;
|
|
420
421
|
dimensions?: SemaphorFieldRef[];
|
|
421
422
|
filters?: SemaphorAnalyticsFilter[];
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
423
|
+
/**
|
|
424
|
+
* One comparison for the analysis, in the words a card measure takes
|
|
425
|
+
* (compare-with CW-D24): a step back (`{ kind: 'shift', unit, offset?,
|
|
426
|
+
* matchWeekdays? }`) or a target.
|
|
427
|
+
*/
|
|
428
|
+
comparison?: MetricComparisonSpec;
|
|
426
429
|
analysis?: SemaphorMetricAnalysis;
|
|
427
430
|
orderBy?: {
|
|
428
431
|
field: SemaphorFieldRef;
|
|
@@ -633,7 +636,10 @@ export type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
|
|
|
633
636
|
primaryValue: number | string | null;
|
|
634
637
|
missingMeasures?: string[];
|
|
635
638
|
comparison?: {
|
|
636
|
-
|
|
639
|
+
/** previous_year for a step by years, previous_period for any other step, or target. */
|
|
640
|
+
kind: ComparisonFamily;
|
|
641
|
+
/** What it compared with, named for the window (`describeComparison`): "Same day last week". */
|
|
642
|
+
words?: string;
|
|
637
643
|
value?: number | string | null;
|
|
638
644
|
delta?: number | null;
|
|
639
645
|
deltaPercent?: number | null;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Duration, ZonedDateTime } from '../temporal/temporal.js';
|
|
2
|
+
import { DateUnit, RelativeDateWindow } from './relative-date/index.js';
|
|
3
|
+
export type { ZonedDateTime } from '../temporal/temporal.js';
|
|
4
|
+
/** What a window's column can tell apart: an instant, or only the day. */
|
|
5
|
+
export type DateColumnKind = 'date' | 'timestamp';
|
|
6
|
+
/** The units a calendar window counts and a calendar step moves by. */
|
|
7
|
+
export type CalendarStepUnit = 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
8
|
+
/**
|
|
9
|
+
* What a window is (comparison kernel CK-D2): it decides how its previous
|
|
10
|
+
* period is placed and how its length is counted.
|
|
11
|
+
*/
|
|
12
|
+
export type DateWindowBasis =
|
|
13
|
+
/** A count of calendar units ("Last 7 days", "This month", "This month, to date"). */
|
|
14
|
+
{
|
|
15
|
+
kind: 'calendar';
|
|
16
|
+
unit: DateUnit;
|
|
17
|
+
n: number;
|
|
18
|
+
toDate: boolean;
|
|
19
|
+
window: RelativeDateWindow;
|
|
20
|
+
}
|
|
21
|
+
/** A rolling minute or hour span on a timestamp column: elapsed time. */
|
|
22
|
+
| {
|
|
23
|
+
kind: 'elapsed';
|
|
24
|
+
window: RelativeDateWindow;
|
|
25
|
+
}
|
|
26
|
+
/** As of the end of the last complete period: compares by span (relative-date-as-of AO-D26). */
|
|
27
|
+
| {
|
|
28
|
+
kind: 'anchored';
|
|
29
|
+
window: RelativeDateWindow;
|
|
30
|
+
}
|
|
31
|
+
/** Picked dates or instants, no window behind them. */
|
|
32
|
+
| {
|
|
33
|
+
kind: 'range';
|
|
34
|
+
};
|
|
35
|
+
export type ZonedDateWindow = {
|
|
36
|
+
/** The first instant, in the window's zone. */
|
|
37
|
+
readonly start: ZonedDateTime;
|
|
38
|
+
/** The first instant after the window. */
|
|
39
|
+
readonly endExclusive: ZonedDateTime;
|
|
40
|
+
readonly column: DateColumnKind;
|
|
41
|
+
readonly basis: DateWindowBasis;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The basis of a window: what it was picked as (CK-D2). A window picked to an
|
|
45
|
+
* instant becomes a range on a DATE column, where the instant is a day; a
|
|
46
|
+
* sub-day window on a timestamp is elapsed time.
|
|
47
|
+
*/
|
|
48
|
+
export declare function dateWindowBasis(window: RelativeDateWindow | undefined, column: DateColumnKind): DateWindowBasis;
|
|
49
|
+
/** An instant read into a zone: the zoned time every window operation takes. */
|
|
50
|
+
export declare function zonedAt(instant: Date, zone: string): ZonedDateTime;
|
|
51
|
+
/**
|
|
52
|
+
* The one constructor. Bounds are half-open; on a DATE column both widen to
|
|
53
|
+
* whole days (the start's day from its midnight, the last instant's day to
|
|
54
|
+
* the next midnight), as the run filters a date.
|
|
55
|
+
*/
|
|
56
|
+
export declare function dateWindowOf(input: {
|
|
57
|
+
start: Date;
|
|
58
|
+
endExclusive: Date;
|
|
59
|
+
zone: string;
|
|
60
|
+
column: DateColumnKind;
|
|
61
|
+
/** What the window is (`dateWindowBasis`, or a range when another date filter narrows a picked window). */
|
|
62
|
+
basis: DateWindowBasis;
|
|
63
|
+
}): ZonedDateWindow;
|
|
64
|
+
/** Whether the window is whole calendar months (a month, a quarter, a year): both ends on a month's first midnight. */
|
|
65
|
+
export declare function isWholeMonths(window: Pick<ZonedDateWindow, 'start' | 'endExclusive'>): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The window cut at the run instant, what has elapsed of it (compare-with
|
|
68
|
+
* CW-D1): to the instant on a timestamp, through the whole of today on a DATE
|
|
69
|
+
* column. Null before it starts; the window itself when nothing is left to
|
|
70
|
+
* run.
|
|
71
|
+
*/
|
|
72
|
+
export declare function windowCutAt(window: ZonedDateWindow, now: Date): ZonedDateWindow | null;
|
|
73
|
+
/** The window's length in calendar time: local days and the time of day, as a wall clock counts it. */
|
|
74
|
+
export declare function calendarLength(window: Pick<ZonedDateWindow, 'start' | 'endExclusive'>): Duration;
|
|
75
|
+
/** The window's length in elapsed time. */
|
|
76
|
+
export declare function elapsedLength(window: Pick<ZonedDateWindow, 'start' | 'endExclusive'>): number;
|
|
77
|
+
/** `amount` units on the calendar from a zoned time, keeping the time of day and clamping a month's day (January 31 to February 28). */
|
|
78
|
+
export declare function calendarShift(at: ZonedDateTime, amount: number, unit: CalendarStepUnit): ZonedDateTime;
|
|
79
|
+
/**
|
|
80
|
+
* A window `amount` units back on the calendar. Whole calendar months (both
|
|
81
|
+
* ends on a month's first midnight: a month, a quarter, a year) move their
|
|
82
|
+
* exclusive end, so April stays all of March; any other window moves its last
|
|
83
|
+
* included instant, keeping the time of day and clamping to a shorter month's
|
|
84
|
+
* last day (analytics kernel K6, ledger EXT-01): March 31 reaches February 28.
|
|
85
|
+
*/
|
|
86
|
+
export declare function windowStepBack(window: Pick<ZonedDateWindow, 'start' | 'endExclusive'>, amount: number, unit: CalendarStepUnit, options: {
|
|
87
|
+
toDate: boolean;
|
|
88
|
+
}): {
|
|
89
|
+
start: ZonedDateTime;
|
|
90
|
+
endExclusive: ZonedDateTime;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* A comparison never covers more time than the window it compares
|
|
94
|
+
* (compare-with CW-INV-1, CW-D26): a window that is not whole calendar months
|
|
95
|
+
* keeps its comparison to its own length from the stepped-back start, counted
|
|
96
|
+
* as the calendar does (local days and time of day) so a clock change keeps
|
|
97
|
+
* the same hour; an elapsed window (a rolling hour span) counts elapsed time.
|
|
98
|
+
* Whole months, quarters and years keep their own lengths.
|
|
99
|
+
*/
|
|
100
|
+
export declare function noLongerThan<T extends {
|
|
101
|
+
start: ZonedDateTime;
|
|
102
|
+
endExclusive: ZonedDateTime;
|
|
103
|
+
}>(comparison: T, window: Pick<ZonedDateWindow, 'start' | 'endExclusive'>, options: {
|
|
104
|
+
elapsed: boolean;
|
|
105
|
+
}): T;
|
|
@@ -15,6 +15,33 @@ export declare function filterValueTargetsField(filter: TFilterValue, field: {
|
|
|
15
15
|
name: string;
|
|
16
16
|
qualifiedFieldName?: string;
|
|
17
17
|
}): boolean;
|
|
18
|
+
/** A dashboard filter value that is the Global Date: it owns the range of every field it targets. */
|
|
19
|
+
export declare function isGlobalDateValue(filter: TFilterValue): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Global Date replaces the card's own range on the field it targets; every
|
|
22
|
+
* other dashboard date filter intersects with it (analytics kernel P2a-01).
|
|
23
|
+
* The one rule for which date ranges restrict a card: the run applies it
|
|
24
|
+
* before it builds the query (the app's `withGlobalDateOwnership` adapter),
|
|
25
|
+
* and authoring reads the window a comparison will step from through it
|
|
26
|
+
* (`readComparisonDates`, compare-with CW16-R1), so the two never disagree.
|
|
27
|
+
*
|
|
28
|
+
* Returns the card config without its own range conditions on every field an
|
|
29
|
+
* applicable Global Date value targets. Only the root group's conditions
|
|
30
|
+
* count, and only when the root is unconditional: removing a condition from an
|
|
31
|
+
* OR or negated group would change what the rest of the group means. The same
|
|
32
|
+
* object when nothing is owned. Pass only the filters that apply to the card.
|
|
33
|
+
* Never owned: a latest-value condition (Global Date scopes its lookup instead,
|
|
34
|
+
* K12, K13), a viewer's zoom (it narrows the dashboard's dates on one chart,
|
|
35
|
+
* chart date zoom DZ-D5), and a condition the run resolved from a data anchor
|
|
36
|
+
* (`resolvedAtRun`: ownership was decided for its marker before resolution,
|
|
37
|
+
* and a second pass must not undo that; only the run has such conditions, and
|
|
38
|
+
* only it can read the marker, temporal predicate contract E2).
|
|
39
|
+
*/
|
|
40
|
+
export declare function withGlobalDateOwnership<T extends {
|
|
41
|
+
filters?: FilterGroup | null;
|
|
42
|
+
}>(cardConfig: T, activeFilters: readonly TFilterValue[], options?: {
|
|
43
|
+
resolvedAtRun?: (condition: FilterCondition) => boolean;
|
|
44
|
+
}): T;
|
|
18
45
|
/**
|
|
19
46
|
* Whether every condition of this group must hold for a row: it is not
|
|
20
47
|
* negated, and it joins with AND (or has at most one child, so its operator
|
|
@@ -20,7 +20,8 @@ export declare const SEMAPHOR_ANALYTICS_INTENT_FIXTURES: {
|
|
|
20
20
|
role: "measure";
|
|
21
21
|
};
|
|
22
22
|
comparison: {
|
|
23
|
-
kind: "
|
|
23
|
+
kind: "shift";
|
|
24
|
+
unit: "period";
|
|
24
25
|
};
|
|
25
26
|
limit: number;
|
|
26
27
|
};
|
|
@@ -137,7 +138,8 @@ export declare const SEMAPHOR_ANALYTICS_INTENT_FIXTURES: {
|
|
|
137
138
|
};
|
|
138
139
|
timeGrain: "week";
|
|
139
140
|
comparison: {
|
|
140
|
-
kind: "
|
|
141
|
+
kind: "shift";
|
|
142
|
+
unit: "period";
|
|
141
143
|
};
|
|
142
144
|
limit: number;
|
|
143
145
|
};
|
|
@@ -13,6 +13,9 @@ export * from './physical-source-resolution.js';
|
|
|
13
13
|
export * from './source-entity-resolution.js';
|
|
14
14
|
export * from './fixtures.js';
|
|
15
15
|
export * from './metric-comparison.js';
|
|
16
|
+
export * from './comparison-choices.js';
|
|
17
|
+
export * from './date-window.js';
|
|
18
|
+
export * from './comparison-placement.js';
|
|
16
19
|
export * from './applied-constraints.js';
|
|
17
20
|
export * from './filter-field-ownership.js';
|
|
18
21
|
export * from './click-reach-filter-id.js';
|