@burdenoff/microfe-bigconsole 2026.1117.1 → 2026.1117.2

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.
@@ -539,6 +539,113 @@ export type BigConsoleInstantiateDashboardTemplateInput = {
539
539
  /** Dashboard visibility */
540
540
  visibility?: BigConsoleDashboardVisibility | null | undefined;
541
541
  };
542
+ export type BigConsoleKpiReconciliationFieldKind = 'BOOLEAN' | 'DATE' | 'MIXED' | 'NUMBER' | 'STRING';
543
+ /** A record filter, applied to a card's records before the period (AND). */
544
+ export type BigConsoleKpiReconciliationFilterInput = {
545
+ field: string;
546
+ /** eq | neq | gt | gte | lt | lte | contains | in */
547
+ op: string;
548
+ value: Record<string, unknown>;
549
+ };
550
+ /**
551
+ * The cause an item is attributed to. A cause is assigned only when a configured
552
+ * rule finds permitted evidence; everything else is UNEXPLAINED.
553
+ */
554
+ export type BigConsoleKpiReconciliationGroup =
555
+ /** The other card dates the same key and amount just outside the period. */
556
+ 'CUTOFF_TIMING'
557
+ /** Equal on both cards; contributes nothing. */
558
+ | 'MATCHED'
559
+ /** A linked refund equal to the difference. */
560
+ | 'REFUND'
561
+ /** No rule found permitted evidence. */
562
+ | 'UNEXPLAINED';
563
+ /** Two cards, one period. */
564
+ export type BigConsoleKpiReconciliationInput = {
565
+ /** Cutoff rule window in days (0-31). 0 or null turns the rule off. */
566
+ cutoffWindowDays?: number | null | undefined;
567
+ /** The card subtracted from. */
568
+ left: BigConsoleKpiReconciliationSideInput;
569
+ /** Last day, inclusive (YYYY-MM-DD). */
570
+ periodEnd: string;
571
+ /** First day, inclusive (YYYY-MM-DD). */
572
+ periodStart: string;
573
+ /** The card subtracted. */
574
+ right: BigConsoleKpiReconciliationSideInput;
575
+ /** IANA timezone the period and record dates are read in. */
576
+ timezone: string;
577
+ };
578
+ /** Where a key appeared. Describes the match only, never the business cause. */
579
+ export type BigConsoleKpiReconciliationMatchStatus =
580
+ /** Same key on both cards, different amounts. */
581
+ 'CHANGED'
582
+ /** Key appears more than once on at least one card; amounts are summed per card. */
583
+ | 'DUPLICATE_KEY'
584
+ /** Same key and same amount on both cards. */
585
+ | 'EQUAL'
586
+ /** Key appears in the period on the left card only. */
587
+ | 'LEFT_ONLY'
588
+ /** Record has no key and cannot be paired. */
589
+ | 'MISSING_KEY'
590
+ /** Key appears in the period on the right card only. */
591
+ | 'RIGHT_ONLY';
592
+ /** Why a comparison could not run. */
593
+ export type BigConsoleKpiReconciliationProblemCode =
594
+ /** A card is missing or the caller cannot read its dashboard. */
595
+ 'CARD_UNAVAILABLE'
596
+ /** Field masking hides a field the comparison needs. */
597
+ | 'FIELD_RESTRICTED'
598
+ /** The cards, or some records, are in different currencies. */
599
+ | 'INCOMPATIBLE_CURRENCY'
600
+ /** Some records carry amounts that are not exact decimals. */
601
+ | 'INVALID_AMOUNT'
602
+ /** A field mapping is invalid. */
603
+ | 'INVALID_MAPPING'
604
+ /** The period or timezone is invalid. */
605
+ | 'INVALID_PERIOD'
606
+ /** A card is not a single additive amount (for example a ratio or a multi-KPI card). */
607
+ | 'NOT_ADDITIVE'
608
+ /** A card's records do not add up to the number the card shows. */
609
+ | 'RECORDS_DO_NOT_REPRODUCE_CARD'
610
+ /** A card does not expose a list of records. */
611
+ | 'RECORDS_UNAVAILABLE'
612
+ /** A card's DataSink or parser cannot be read. */
613
+ | 'UNSUPPORTED_SOURCE';
614
+ /** Which card a problem belongs to. */
615
+ export type BigConsoleKpiReconciliationSide = 'LEFT' | 'RIGHT';
616
+ /** How to read one card's records. Manual v1: the viewer confirms each mapping. */
617
+ export type BigConsoleKpiReconciliationSideInput = {
618
+ /** Additive amount summed by the card. */
619
+ amountField: string;
620
+ /** ISO 4217 currency of the amounts. */
621
+ currency: string;
622
+ /** Optional per-record currency field; every record must carry `currency`. */
623
+ currencyField?: string | null | undefined;
624
+ /** This card's own date field. Each card keeps its own. */
625
+ dateField: string;
626
+ /** The card's own record filters. */
627
+ filters?: Array<BigConsoleKpiReconciliationFilterInput> | null | undefined;
628
+ /** Business key used to match records, e.g. orderId. */
629
+ keyField: string;
630
+ /** Dot path to the records when they are nested in the card's payload. */
631
+ recordsPath?: string | null | undefined;
632
+ /** Field holding a linked refund amount (refund rule evidence). */
633
+ refundEvidenceField?: string | null | undefined;
634
+ widgetId: string | number;
635
+ };
636
+ /**
637
+ * A comparison could run (OK), could not run for a data or configuration reason
638
+ * (UNSUPPORTED), or could not run because the caller lacks access (RESTRICTED).
639
+ */
640
+ export type BigConsoleKpiReconciliationStatus = 'OK' | 'RESTRICTED' | 'UNSUPPORTED';
641
+ /** How a card's displayed value was checked against its records. */
642
+ export type BigConsoleKpiReconciliationTieScope =
643
+ /** The card value equals the total of all the card's records (the card is not limited to the period). */
644
+ 'CARD_RECORDS'
645
+ /** The card value matches neither. */
646
+ | 'NONE'
647
+ /** The card value equals the records' total for the period. */
648
+ | 'PERIOD';
542
649
  /** What a narrative explains. */
543
650
  export type BigConsoleNarrativeKind =
544
651
  /** An explanation of a fired alert (triggered by the alert runtime's events). */
@@ -5822,6 +5929,295 @@ export type ListPromptGenerationsQuery = {
5822
5929
  };
5823
5930
  };
5824
5931
  };
5932
+ export type KpiReconciliationMoneyFieldsFragment = {
5933
+ amount: string;
5934
+ display: string;
5935
+ };
5936
+ export type KpiReconciliationCardFieldsFragment = {
5937
+ widgetId: string;
5938
+ title: string;
5939
+ dashboardId: string;
5940
+ dashboardName: string;
5941
+ keyField: string;
5942
+ amountField: string;
5943
+ dateField: string;
5944
+ recordCount: number;
5945
+ outsidePeriodCount: number;
5946
+ undatedCount: number;
5947
+ snapshotAt: string | null;
5948
+ total: {
5949
+ amount: string;
5950
+ display: string;
5951
+ };
5952
+ tieOut: {
5953
+ cardValue: string | null;
5954
+ scope: Types.BigConsoleKpiReconciliationTieScope;
5955
+ ties: boolean;
5956
+ };
5957
+ };
5958
+ export type KpiReconciliationFieldsFragment = {
5959
+ status: Types.BigConsoleKpiReconciliationStatus;
5960
+ limitations: Array<string>;
5961
+ currency: string | null;
5962
+ direction: string;
5963
+ explanation: string;
5964
+ cutoffWindowDays: number;
5965
+ computedAt: string;
5966
+ problems: Array<{
5967
+ code: Types.BigConsoleKpiReconciliationProblemCode;
5968
+ side: Types.BigConsoleKpiReconciliationSide | null;
5969
+ message: string;
5970
+ }>;
5971
+ period: {
5972
+ start: string;
5973
+ end: string;
5974
+ timezone: string;
5975
+ };
5976
+ left: {
5977
+ widgetId: string;
5978
+ title: string;
5979
+ dashboardId: string;
5980
+ dashboardName: string;
5981
+ keyField: string;
5982
+ amountField: string;
5983
+ dateField: string;
5984
+ recordCount: number;
5985
+ outsidePeriodCount: number;
5986
+ undatedCount: number;
5987
+ snapshotAt: string | null;
5988
+ total: {
5989
+ amount: string;
5990
+ display: string;
5991
+ };
5992
+ tieOut: {
5993
+ cardValue: string | null;
5994
+ scope: Types.BigConsoleKpiReconciliationTieScope;
5995
+ ties: boolean;
5996
+ };
5997
+ } | null;
5998
+ right: {
5999
+ widgetId: string;
6000
+ title: string;
6001
+ dashboardId: string;
6002
+ dashboardName: string;
6003
+ keyField: string;
6004
+ amountField: string;
6005
+ dateField: string;
6006
+ recordCount: number;
6007
+ outsidePeriodCount: number;
6008
+ undatedCount: number;
6009
+ snapshotAt: string | null;
6010
+ total: {
6011
+ amount: string;
6012
+ display: string;
6013
+ };
6014
+ tieOut: {
6015
+ cardValue: string | null;
6016
+ scope: Types.BigConsoleKpiReconciliationTieScope;
6017
+ ties: boolean;
6018
+ };
6019
+ } | null;
6020
+ gap: {
6021
+ amount: string;
6022
+ display: string;
6023
+ } | null;
6024
+ explained: {
6025
+ amount: string;
6026
+ display: string;
6027
+ } | null;
6028
+ unexplained: {
6029
+ amount: string;
6030
+ display: string;
6031
+ } | null;
6032
+ groups: Array<{
6033
+ group: Types.BigConsoleKpiReconciliationGroup;
6034
+ label: string;
6035
+ itemCount: number;
6036
+ total: {
6037
+ amount: string;
6038
+ display: string;
6039
+ };
6040
+ }>;
6041
+ statuses: Array<{
6042
+ status: Types.BigConsoleKpiReconciliationMatchStatus;
6043
+ label: string;
6044
+ itemCount: number;
6045
+ total: {
6046
+ amount: string;
6047
+ display: string;
6048
+ };
6049
+ }>;
6050
+ };
6051
+ export type KpiReconcilableCardsQueryVariables = Exact<{
6052
+ search?: string | null | undefined;
6053
+ first?: number | null | undefined;
6054
+ }>;
6055
+ export type KpiReconcilableCardsQuery = {
6056
+ kpiReconcilableCards: Array<{
6057
+ widgetId: string;
6058
+ title: string;
6059
+ dashboardId: string;
6060
+ dashboardName: string;
6061
+ pageName: string;
6062
+ }>;
6063
+ };
6064
+ export type KpiReconciliationCardFieldsQueryVariables = Exact<{
6065
+ widgetId: string | number;
6066
+ recordsPath?: string | null | undefined;
6067
+ }>;
6068
+ export type KpiReconciliationCardFieldsQuery = {
6069
+ kpiReconciliationCardFields: {
6070
+ available: boolean;
6071
+ message: string | null;
6072
+ recordCount: number;
6073
+ fields: Array<{
6074
+ name: string;
6075
+ kind: Types.BigConsoleKpiReconciliationFieldKind;
6076
+ restricted: boolean;
6077
+ }>;
6078
+ };
6079
+ };
6080
+ export type KpiReconciliationItemsQueryVariables = Exact<{
6081
+ input: Types.BigConsoleKpiReconciliationInput;
6082
+ group?: Types.BigConsoleKpiReconciliationGroup | null | undefined;
6083
+ first?: number | null | undefined;
6084
+ offset?: number | null | undefined;
6085
+ }>;
6086
+ export type KpiReconciliationItemsQuery = {
6087
+ kpiReconciliationItems: {
6088
+ status: Types.BigConsoleKpiReconciliationStatus;
6089
+ group: Types.BigConsoleKpiReconciliationGroup | null;
6090
+ totalCount: number;
6091
+ offset: number;
6092
+ hasMore: boolean;
6093
+ problems: Array<{
6094
+ code: Types.BigConsoleKpiReconciliationProblemCode;
6095
+ side: Types.BigConsoleKpiReconciliationSide | null;
6096
+ message: string;
6097
+ }>;
6098
+ items: Array<{
6099
+ id: string;
6100
+ key: string | null;
6101
+ status: Types.BigConsoleKpiReconciliationMatchStatus;
6102
+ statusLabel: string;
6103
+ group: Types.BigConsoleKpiReconciliationGroup;
6104
+ leftCount: number;
6105
+ rightCount: number;
6106
+ evidence: string | null;
6107
+ note: string | null;
6108
+ leftAmount: {
6109
+ amount: string;
6110
+ display: string;
6111
+ } | null;
6112
+ rightAmount: {
6113
+ amount: string;
6114
+ display: string;
6115
+ } | null;
6116
+ contribution: {
6117
+ amount: string;
6118
+ display: string;
6119
+ };
6120
+ }>;
6121
+ };
6122
+ };
6123
+ export type ReconcileKpiCardsQueryVariables = Exact<{
6124
+ input: Types.BigConsoleKpiReconciliationInput;
6125
+ }>;
6126
+ export type ReconcileKpiCardsQuery = {
6127
+ reconcileKpiCards: {
6128
+ status: Types.BigConsoleKpiReconciliationStatus;
6129
+ limitations: Array<string>;
6130
+ currency: string | null;
6131
+ direction: string;
6132
+ explanation: string;
6133
+ cutoffWindowDays: number;
6134
+ computedAt: string;
6135
+ problems: Array<{
6136
+ code: Types.BigConsoleKpiReconciliationProblemCode;
6137
+ side: Types.BigConsoleKpiReconciliationSide | null;
6138
+ message: string;
6139
+ }>;
6140
+ period: {
6141
+ start: string;
6142
+ end: string;
6143
+ timezone: string;
6144
+ };
6145
+ left: {
6146
+ widgetId: string;
6147
+ title: string;
6148
+ dashboardId: string;
6149
+ dashboardName: string;
6150
+ keyField: string;
6151
+ amountField: string;
6152
+ dateField: string;
6153
+ recordCount: number;
6154
+ outsidePeriodCount: number;
6155
+ undatedCount: number;
6156
+ snapshotAt: string | null;
6157
+ total: {
6158
+ amount: string;
6159
+ display: string;
6160
+ };
6161
+ tieOut: {
6162
+ cardValue: string | null;
6163
+ scope: Types.BigConsoleKpiReconciliationTieScope;
6164
+ ties: boolean;
6165
+ };
6166
+ } | null;
6167
+ right: {
6168
+ widgetId: string;
6169
+ title: string;
6170
+ dashboardId: string;
6171
+ dashboardName: string;
6172
+ keyField: string;
6173
+ amountField: string;
6174
+ dateField: string;
6175
+ recordCount: number;
6176
+ outsidePeriodCount: number;
6177
+ undatedCount: number;
6178
+ snapshotAt: string | null;
6179
+ total: {
6180
+ amount: string;
6181
+ display: string;
6182
+ };
6183
+ tieOut: {
6184
+ cardValue: string | null;
6185
+ scope: Types.BigConsoleKpiReconciliationTieScope;
6186
+ ties: boolean;
6187
+ };
6188
+ } | null;
6189
+ gap: {
6190
+ amount: string;
6191
+ display: string;
6192
+ } | null;
6193
+ explained: {
6194
+ amount: string;
6195
+ display: string;
6196
+ } | null;
6197
+ unexplained: {
6198
+ amount: string;
6199
+ display: string;
6200
+ } | null;
6201
+ groups: Array<{
6202
+ group: Types.BigConsoleKpiReconciliationGroup;
6203
+ label: string;
6204
+ itemCount: number;
6205
+ total: {
6206
+ amount: string;
6207
+ display: string;
6208
+ };
6209
+ }>;
6210
+ statuses: Array<{
6211
+ status: Types.BigConsoleKpiReconciliationMatchStatus;
6212
+ label: string;
6213
+ itemCount: number;
6214
+ total: {
6215
+ amount: string;
6216
+ display: string;
6217
+ };
6218
+ }>;
6219
+ };
6220
+ };
5825
6221
  export type CreateSandboxMutationVariables = Exact<{
5826
6222
  input: Types.CreateSandboxInput;
5827
6223
  }>;
@@ -7963,6 +8359,9 @@ export declare const PipelineExecutionFieldsFragmentDoc: DocumentNode<PipelineEx
7963
8359
  export declare const PipelineListItemFragmentDoc: DocumentNode<PipelineListItemFragment, unknown>;
7964
8360
  export declare const PromptGenerationFieldsFragmentDoc: DocumentNode<PromptGenerationFieldsFragment, unknown>;
7965
8361
  export declare const PromptSuggestionFieldsFragmentDoc: DocumentNode<PromptSuggestionFieldsFragment, unknown>;
8362
+ export declare const KpiReconciliationMoneyFieldsFragmentDoc: DocumentNode<KpiReconciliationMoneyFieldsFragment, unknown>;
8363
+ export declare const KpiReconciliationCardFieldsFragmentDoc: DocumentNode<KpiReconciliationCardFieldsFragment, unknown>;
8364
+ export declare const KpiReconciliationFieldsFragmentDoc: DocumentNode<KpiReconciliationFieldsFragment, unknown>;
7966
8365
  export declare const EventLogFieldsFragmentDoc: DocumentNode<EventLogFieldsFragment, unknown>;
7967
8366
  export declare const EventWebhookMappingFieldsFragmentDoc: DocumentNode<EventWebhookMappingFieldsFragment, unknown>;
7968
8367
  export declare const WidgetPageInfoFieldsFragmentDoc: DocumentNode<WidgetPageInfoFieldsFragment, unknown>;
@@ -8108,6 +8507,10 @@ export declare const GenerateDashboardFromPromptDocument: DocumentNode<GenerateD
8108
8507
  export declare const GetPromptGenerationDocument: DocumentNode<GetPromptGenerationQuery, GetPromptGenerationQueryVariables>;
8109
8508
  export declare const GetPromptSuggestionsDocument: DocumentNode<GetPromptSuggestionsQuery, GetPromptSuggestionsQueryVariables>;
8110
8509
  export declare const ListPromptGenerationsDocument: DocumentNode<ListPromptGenerationsQuery, ListPromptGenerationsQueryVariables>;
8510
+ export declare const KpiReconcilableCardsDocument: DocumentNode<KpiReconcilableCardsQuery, KpiReconcilableCardsQueryVariables>;
8511
+ export declare const KpiReconciliationCardFieldsDocument: DocumentNode<KpiReconciliationCardFieldsQuery, KpiReconciliationCardFieldsQueryVariables>;
8512
+ export declare const KpiReconciliationItemsDocument: DocumentNode<KpiReconciliationItemsQuery, KpiReconciliationItemsQueryVariables>;
8513
+ export declare const ReconcileKpiCardsDocument: DocumentNode<ReconcileKpiCardsQuery, ReconcileKpiCardsQueryVariables>;
8111
8514
  export declare const CreateSandboxDocument: DocumentNode<CreateSandboxMutation, CreateSandboxMutationVariables>;
8112
8515
  export declare const ProxySandboxRequestDocument: DocumentNode<ProxySandboxRequestMutation, ProxySandboxRequestMutationVariables>;
8113
8516
  export declare const ExtendSandboxTtlDocument: DocumentNode<ExtendSandboxTtlMutation, ExtendSandboxTtlMutationVariables>;