@aiquants/daily-report 0.40.0 → 0.41.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/CHANGELOG.md +140 -0
- package/README.md +3146 -1101
- package/dist/client.d.mts +59 -132
- package/dist/client.d.ts +59 -132
- package/dist/client.js +6 -6
- package/dist/client.mjs +6 -6
- package/dist/{comment-adapter-CNti3-Dv.d.ts → comment-adapter-BTXFkMSz.d.ts} +2 -3
- package/dist/{comment-adapter-BbGh4nc0.d.mts → comment-adapter-wejvIziS.d.mts} +2 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{search-marks-wire-DLgJTytk.d.mts → search-marks-wire-BSS2d1t6.d.mts} +7 -1
- package/dist/{search-marks-wire-DLgJTytk.d.ts → search-marks-wire-BSS2d1t6.d.ts} +7 -1
- package/dist/server.d.mts +11 -40
- package/dist/server.d.ts +11 -40
- package/dist/server.js +10 -10
- package/dist/server.mjs +10 -10
- package/dist/sse-schema-CUiQKk8K.d.mts +286 -0
- package/dist/sse-schema-CUiQKk8K.d.ts +286 -0
- package/dist/styles/daily-report.standalone.css +1 -1
- package/package.json +9 -9
- package/dist/sse-schema-S7gXWA2N.d.mts +0 -2617
- package/dist/sse-schema-S7gXWA2N.d.ts +0 -2617
package/dist/client.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from "react";
|
|
2
2
|
import { RefObject, ReactNode, Context } from "react";
|
|
3
|
-
import { D as DailyReportItem, a as DailyReportSseStreamAnchor, b as DailyReportUser, c as DailyReportSseTerminalEvent, d as DailyReportSseMessage, e as DailyReportDetail } from "./sse-schema-
|
|
3
|
+
import { D as DailyReportItem, a as DailyReportSseStreamAnchor, b as DailyReportUser, c as DailyReportSseTerminalEvent, d as DailyReportSseMessage, e as DailyReportDetail } from "./sse-schema-CUiQKk8K.mjs";
|
|
4
4
|
import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
|
|
5
|
-
import { D as DailyReportActionIntent, U as UIComment } from "./comment-adapter-
|
|
5
|
+
import { D as DailyReportActionIntent, U as UIComment } from "./comment-adapter-wejvIziS.mjs";
|
|
6
6
|
import { D as DailyReportSearchFilterFacet } from "./search-filters-wire-5MWi6GWu.mjs";
|
|
7
7
|
export { a as DAILY_REPORT_SEARCH_FILTER_FACETS } from "./search-filters-wire-5MWi6GWu.mjs";
|
|
8
8
|
import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
|
|
9
9
|
import { ShouldRevalidateFunction } from "react-router";
|
|
10
|
-
import "zod";
|
|
10
|
+
import "zod/v3";
|
|
11
11
|
type DailyReportAttachmentIndicatorProps = {
|
|
12
12
|
id: string;
|
|
13
13
|
count: number;
|
|
@@ -33,17 +33,6 @@ type DailyReportDetailListProps = {
|
|
|
33
33
|
scrollRestoreRef?: RefObject<DailyReportDetailListScrollRestore>;
|
|
34
34
|
};
|
|
35
35
|
declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
|
|
36
|
-
declare const DailyReportIdsStreamStatus: () => react.JSX.Element;
|
|
37
|
-
type DailyReportListProps = {
|
|
38
|
-
dailyReportItems: DailyReportRows;
|
|
39
|
-
rowSetSize?: number;
|
|
40
|
-
autoMarkRead?: boolean;
|
|
41
|
-
selectedReportHubId: number | null;
|
|
42
|
-
onSelectItem: (reportHubId: number | null) => void;
|
|
43
|
-
userId?: string | null;
|
|
44
|
-
scrollOffsetRef?: RefObject<number>;
|
|
45
|
-
};
|
|
46
|
-
declare const DailyReportList: (props: DailyReportListProps) => react.JSX.Element;
|
|
47
36
|
type DailyReportSearchFailure = "invalid" | "busy" | "unavailable" | "failed";
|
|
48
37
|
type DailyReportLocale = VirtualScrollLocale;
|
|
49
38
|
type DailyReportOperation = Exclude<DailyReportActionIntent, "clearCache">;
|
|
@@ -290,6 +279,61 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
290
279
|
];
|
|
291
280
|
declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
|
|
292
281
|
declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
|
|
282
|
+
type DailyReportRowBatch = {
|
|
283
|
+
readonly length: number;
|
|
284
|
+
idAt(index: number): number;
|
|
285
|
+
itemAt(index: number): DailyReportItem;
|
|
286
|
+
items(): DailyReportItem[];
|
|
287
|
+
businessDateAt(index: number): string | null;
|
|
288
|
+
sourceTypeAt(index: number): string | undefined;
|
|
289
|
+
};
|
|
290
|
+
type DailyReportIdsStreamItemReplacements = {
|
|
291
|
+
readonly previous: DailyReportRowBatch;
|
|
292
|
+
readonly next: DailyReportRowBatch;
|
|
293
|
+
};
|
|
294
|
+
type DailyReportIdsStreamItemsChange = {
|
|
295
|
+
readonly base: number;
|
|
296
|
+
readonly revision: number;
|
|
297
|
+
readonly appended: DailyReportRowBatch;
|
|
298
|
+
readonly replaced: DailyReportIdsStreamItemReplacements;
|
|
299
|
+
readonly removed: DailyReportRowBatch;
|
|
300
|
+
};
|
|
301
|
+
type DailyReportIdsStreamPhase = "idle" | "streaming" | "retrying" | "complete" | "failed" | "auth-required";
|
|
302
|
+
type DailyReportIdsStreamState = {
|
|
303
|
+
loadedCount: number;
|
|
304
|
+
itemsRevision: number;
|
|
305
|
+
itemsChanges: readonly DailyReportIdsStreamItemsChange[];
|
|
306
|
+
totalCount: number | null;
|
|
307
|
+
phase: DailyReportIdsStreamPhase;
|
|
308
|
+
isRevalidating: boolean;
|
|
309
|
+
hasCompletedOnce: boolean;
|
|
310
|
+
completedAt: number | null;
|
|
311
|
+
error: Error | null;
|
|
312
|
+
streamAnchor: DailyReportSseStreamAnchor | null;
|
|
313
|
+
};
|
|
314
|
+
declare const ensureDailyReportIdsStreamSession: (options: {
|
|
315
|
+
apiBasePath?: string;
|
|
316
|
+
userKey: string | null;
|
|
317
|
+
}) => void;
|
|
318
|
+
declare const bootstrapDailyReportIdsStreamSession: (options: {
|
|
319
|
+
apiBasePath?: string;
|
|
320
|
+
userKey: string | null;
|
|
321
|
+
}) => void;
|
|
322
|
+
declare const primeDailyReportIdsStreamSession: () => void;
|
|
323
|
+
declare const readDailyReportIdsStreamRows: () => DailyReportRowBatch;
|
|
324
|
+
declare const resyncDailyReportIdsStream: () => void;
|
|
325
|
+
declare const useDailyReportIdsStream: () => DailyReportIdsStreamState;
|
|
326
|
+
declare const DailyReportIdsStreamStatus: () => react.JSX.Element;
|
|
327
|
+
type DailyReportListProps = {
|
|
328
|
+
dailyReportItems: DailyReportRows;
|
|
329
|
+
rowSetSize?: number;
|
|
330
|
+
autoMarkRead?: boolean;
|
|
331
|
+
selectedReportHubId: number | null;
|
|
332
|
+
onSelectItem: (reportHubId: number | null) => void;
|
|
333
|
+
userId?: string | null;
|
|
334
|
+
scrollOffsetRef?: RefObject<number>;
|
|
335
|
+
};
|
|
336
|
+
declare const DailyReportList: (props: DailyReportListProps) => react.JSX.Element;
|
|
293
337
|
type DailyReportSearchFilterOption = {
|
|
294
338
|
readonly value: string;
|
|
295
339
|
readonly label: string;
|
|
@@ -353,123 +397,6 @@ declare const DailyReportConfigProvider: ({ config, children }: {
|
|
|
353
397
|
}) => react.JSX.Element;
|
|
354
398
|
declare const useDailyReportConfig: () => DailyReportClientConfig;
|
|
355
399
|
declare const resolveSourceTypeConfig: (sourceType?: string | null, sourceTypeConfigs?: Record<string, SourceTypeConfig>) => SourceTypeConfig | undefined;
|
|
356
|
-
declare class DailyReportRowBatch {
|
|
357
|
-
readonly length: number;
|
|
358
|
-
readonly ids: Float64Array;
|
|
359
|
-
readonly businessDateCodes: Uint16Array;
|
|
360
|
-
readonly sourceTypeCodes: Uint8Array;
|
|
361
|
-
constructor(length: number, ids: Float64Array, businessDateCodes: Uint16Array, sourceTypeCodes: Uint8Array);
|
|
362
|
-
itemAt(index: number): DailyReportItem;
|
|
363
|
-
items(): DailyReportItem[];
|
|
364
|
-
}
|
|
365
|
-
type DailyReportIdsStreamItemReplacements = {
|
|
366
|
-
readonly previous: DailyReportRowBatch;
|
|
367
|
-
readonly next: DailyReportRowBatch;
|
|
368
|
-
};
|
|
369
|
-
type DailyReportIdsStreamItemsChange = {
|
|
370
|
-
readonly base: number;
|
|
371
|
-
readonly revision: number;
|
|
372
|
-
readonly appended: DailyReportRowBatch;
|
|
373
|
-
readonly replaced: DailyReportIdsStreamItemReplacements;
|
|
374
|
-
readonly removed: DailyReportRowBatch;
|
|
375
|
-
};
|
|
376
|
-
type DailyReportIdsStreamPhase = "idle" | "streaming" | "retrying" | "complete" | "failed" | "auth-required";
|
|
377
|
-
type DailyReportIdsStreamState = {
|
|
378
|
-
loadedCount: number;
|
|
379
|
-
itemsRevision: number;
|
|
380
|
-
itemsChanges: readonly DailyReportIdsStreamItemsChange[];
|
|
381
|
-
totalCount: number | null;
|
|
382
|
-
phase: DailyReportIdsStreamPhase;
|
|
383
|
-
isRevalidating: boolean;
|
|
384
|
-
hasCompletedOnce: boolean;
|
|
385
|
-
completedAt: number | null;
|
|
386
|
-
error: Error | null;
|
|
387
|
-
streamAnchor: DailyReportSseStreamAnchor | null;
|
|
388
|
-
};
|
|
389
|
-
type DailyReportIdsStreamClientOptions = {
|
|
390
|
-
apiBasePath?: string;
|
|
391
|
-
fetchFn?: (input: string, init: {
|
|
392
|
-
signal: AbortSignal;
|
|
393
|
-
headers: Record<string, string>;
|
|
394
|
-
cache: RequestCache;
|
|
395
|
-
}) => Promise<Response>;
|
|
396
|
-
setTimeoutFn?: (handler: () => void, ms: number) => ReturnType<typeof setTimeout>;
|
|
397
|
-
clearTimeoutFn?: (id: ReturnType<typeof setTimeout>) => void;
|
|
398
|
-
readStallTimeoutMs?: number;
|
|
399
|
-
warn?: (...args: unknown[]) => void;
|
|
400
|
-
publishCoalesceMs?: number;
|
|
401
|
-
now?: () => number;
|
|
402
|
-
};
|
|
403
|
-
declare class DailyReportIdsStreamClient {
|
|
404
|
-
private readonly apiBasePath;
|
|
405
|
-
private readonly fetchFn;
|
|
406
|
-
private readonly setTimeoutFn;
|
|
407
|
-
private readonly clearTimeoutFn;
|
|
408
|
-
private readonly warn;
|
|
409
|
-
private readonly readStallTimeoutMs;
|
|
410
|
-
private readonly rows;
|
|
411
|
-
private readonly listeners;
|
|
412
|
-
private state;
|
|
413
|
-
private streamAnchorRevision;
|
|
414
|
-
private lastCursor;
|
|
415
|
-
private lastSnapshot;
|
|
416
|
-
private consecutiveFailures;
|
|
417
|
-
private started;
|
|
418
|
-
private disposed;
|
|
419
|
-
private loopGeneration;
|
|
420
|
-
private activeAbortController;
|
|
421
|
-
private readonly externalRemovalTombstones;
|
|
422
|
-
private pendingForceRefresh;
|
|
423
|
-
private wakeRetryWait;
|
|
424
|
-
private readonly handleOnline;
|
|
425
|
-
private readonly publishCoalesceMs;
|
|
426
|
-
private publishCoalesceTimer;
|
|
427
|
-
private readonly now;
|
|
428
|
-
private lastItemsPublishAt;
|
|
429
|
-
private readonly pendingItemsChange;
|
|
430
|
-
constructor(options?: DailyReportIdsStreamClientOptions);
|
|
431
|
-
getState(): DailyReportIdsStreamState;
|
|
432
|
-
subscribe(listener: () => void): () => void;
|
|
433
|
-
start(): void;
|
|
434
|
-
retry(): void;
|
|
435
|
-
refresh(options?: {
|
|
436
|
-
forceRefresh?: boolean;
|
|
437
|
-
}): void;
|
|
438
|
-
resync(): void;
|
|
439
|
-
applyExternalUpsert(item: DailyReportItem): void;
|
|
440
|
-
applyExternalRemoval(reportHubId: number): void;
|
|
441
|
-
has(reportHubId: number): boolean;
|
|
442
|
-
readRows(): DailyReportRowBatch;
|
|
443
|
-
readItems(): DailyReportItem[];
|
|
444
|
-
dispose(): void;
|
|
445
|
-
private runStreamLoop;
|
|
446
|
-
private pruneUnseenItems;
|
|
447
|
-
private streamOnce;
|
|
448
|
-
private awaitResponseHeaders;
|
|
449
|
-
private watchReadSilence;
|
|
450
|
-
private absorbChunkLine;
|
|
451
|
-
private putItem;
|
|
452
|
-
private deleteItem;
|
|
453
|
-
private absorbStreamAnchor;
|
|
454
|
-
private takePendingItems;
|
|
455
|
-
private publishItems;
|
|
456
|
-
private schedulePublishItems;
|
|
457
|
-
private cancelScheduledPublishItems;
|
|
458
|
-
private publish;
|
|
459
|
-
private buildStreamUrl;
|
|
460
|
-
private waitBeforeRetry;
|
|
461
|
-
}
|
|
462
|
-
declare const ensureDailyReportIdsStreamSession: (options: {
|
|
463
|
-
apiBasePath?: string;
|
|
464
|
-
userKey: string | null;
|
|
465
|
-
}) => void;
|
|
466
|
-
declare const bootstrapDailyReportIdsStreamSession: (options: {
|
|
467
|
-
apiBasePath?: string;
|
|
468
|
-
userKey: string | null;
|
|
469
|
-
}) => void;
|
|
470
|
-
declare const primeDailyReportIdsStreamSession: () => void;
|
|
471
|
-
declare const resyncDailyReportIdsStream: () => void;
|
|
472
|
-
declare const useDailyReportIdsStream: () => DailyReportIdsStreamState;
|
|
473
400
|
type DailyReportPageProps = {
|
|
474
401
|
user?: DailyReportUser;
|
|
475
402
|
userId?: string | null;
|
|
@@ -580,4 +507,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
|
|
|
580
507
|
};
|
|
581
508
|
declare const LATTICE_BLOCK_QUANTUM_CLASS_NAME = "[--aqdr-lattice-block:4px] [@media(resolution:1.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.875dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.875dppx)]:[--aqdr-lattice-block:8px]";
|
|
582
509
|
declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
|
|
583
|
-
export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps,
|
|
510
|
+
export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type ListNavigationHandle as DailyReportListNavigationHandle, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportRowBatch, type DailyReportRows, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type SourceTypeConfig as DailyReportSourceTypeConfig, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, readDailyReportIdsStreamRows, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
|
package/dist/client.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from "react";
|
|
2
2
|
import { RefObject, ReactNode, Context } from "react";
|
|
3
|
-
import { D as DailyReportItem, a as DailyReportSseStreamAnchor, b as DailyReportUser, c as DailyReportSseTerminalEvent, d as DailyReportSseMessage, e as DailyReportDetail } from "./sse-schema-
|
|
3
|
+
import { D as DailyReportItem, a as DailyReportSseStreamAnchor, b as DailyReportUser, c as DailyReportSseTerminalEvent, d as DailyReportSseMessage, e as DailyReportDetail } from "./sse-schema-CUiQKk8K.js";
|
|
4
4
|
import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
|
|
5
|
-
import { D as DailyReportActionIntent, U as UIComment } from "./comment-adapter-
|
|
5
|
+
import { D as DailyReportActionIntent, U as UIComment } from "./comment-adapter-BTXFkMSz.js";
|
|
6
6
|
import { D as DailyReportSearchFilterFacet } from "./search-filters-wire-5MWi6GWu.js";
|
|
7
7
|
export { a as DAILY_REPORT_SEARCH_FILTER_FACETS } from "./search-filters-wire-5MWi6GWu.js";
|
|
8
8
|
import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
|
|
9
9
|
import { ShouldRevalidateFunction } from "react-router";
|
|
10
|
-
import "zod";
|
|
10
|
+
import "zod/v3";
|
|
11
11
|
type DailyReportAttachmentIndicatorProps = {
|
|
12
12
|
id: string;
|
|
13
13
|
count: number;
|
|
@@ -33,17 +33,6 @@ type DailyReportDetailListProps = {
|
|
|
33
33
|
scrollRestoreRef?: RefObject<DailyReportDetailListScrollRestore>;
|
|
34
34
|
};
|
|
35
35
|
declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
|
|
36
|
-
declare const DailyReportIdsStreamStatus: () => react.JSX.Element;
|
|
37
|
-
type DailyReportListProps = {
|
|
38
|
-
dailyReportItems: DailyReportRows;
|
|
39
|
-
rowSetSize?: number;
|
|
40
|
-
autoMarkRead?: boolean;
|
|
41
|
-
selectedReportHubId: number | null;
|
|
42
|
-
onSelectItem: (reportHubId: number | null) => void;
|
|
43
|
-
userId?: string | null;
|
|
44
|
-
scrollOffsetRef?: RefObject<number>;
|
|
45
|
-
};
|
|
46
|
-
declare const DailyReportList: (props: DailyReportListProps) => react.JSX.Element;
|
|
47
36
|
type DailyReportSearchFailure = "invalid" | "busy" | "unavailable" | "failed";
|
|
48
37
|
type DailyReportLocale = VirtualScrollLocale;
|
|
49
38
|
type DailyReportOperation = Exclude<DailyReportActionIntent, "clearCache">;
|
|
@@ -290,6 +279,61 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
290
279
|
];
|
|
291
280
|
declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
|
|
292
281
|
declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
|
|
282
|
+
type DailyReportRowBatch = {
|
|
283
|
+
readonly length: number;
|
|
284
|
+
idAt(index: number): number;
|
|
285
|
+
itemAt(index: number): DailyReportItem;
|
|
286
|
+
items(): DailyReportItem[];
|
|
287
|
+
businessDateAt(index: number): string | null;
|
|
288
|
+
sourceTypeAt(index: number): string | undefined;
|
|
289
|
+
};
|
|
290
|
+
type DailyReportIdsStreamItemReplacements = {
|
|
291
|
+
readonly previous: DailyReportRowBatch;
|
|
292
|
+
readonly next: DailyReportRowBatch;
|
|
293
|
+
};
|
|
294
|
+
type DailyReportIdsStreamItemsChange = {
|
|
295
|
+
readonly base: number;
|
|
296
|
+
readonly revision: number;
|
|
297
|
+
readonly appended: DailyReportRowBatch;
|
|
298
|
+
readonly replaced: DailyReportIdsStreamItemReplacements;
|
|
299
|
+
readonly removed: DailyReportRowBatch;
|
|
300
|
+
};
|
|
301
|
+
type DailyReportIdsStreamPhase = "idle" | "streaming" | "retrying" | "complete" | "failed" | "auth-required";
|
|
302
|
+
type DailyReportIdsStreamState = {
|
|
303
|
+
loadedCount: number;
|
|
304
|
+
itemsRevision: number;
|
|
305
|
+
itemsChanges: readonly DailyReportIdsStreamItemsChange[];
|
|
306
|
+
totalCount: number | null;
|
|
307
|
+
phase: DailyReportIdsStreamPhase;
|
|
308
|
+
isRevalidating: boolean;
|
|
309
|
+
hasCompletedOnce: boolean;
|
|
310
|
+
completedAt: number | null;
|
|
311
|
+
error: Error | null;
|
|
312
|
+
streamAnchor: DailyReportSseStreamAnchor | null;
|
|
313
|
+
};
|
|
314
|
+
declare const ensureDailyReportIdsStreamSession: (options: {
|
|
315
|
+
apiBasePath?: string;
|
|
316
|
+
userKey: string | null;
|
|
317
|
+
}) => void;
|
|
318
|
+
declare const bootstrapDailyReportIdsStreamSession: (options: {
|
|
319
|
+
apiBasePath?: string;
|
|
320
|
+
userKey: string | null;
|
|
321
|
+
}) => void;
|
|
322
|
+
declare const primeDailyReportIdsStreamSession: () => void;
|
|
323
|
+
declare const readDailyReportIdsStreamRows: () => DailyReportRowBatch;
|
|
324
|
+
declare const resyncDailyReportIdsStream: () => void;
|
|
325
|
+
declare const useDailyReportIdsStream: () => DailyReportIdsStreamState;
|
|
326
|
+
declare const DailyReportIdsStreamStatus: () => react.JSX.Element;
|
|
327
|
+
type DailyReportListProps = {
|
|
328
|
+
dailyReportItems: DailyReportRows;
|
|
329
|
+
rowSetSize?: number;
|
|
330
|
+
autoMarkRead?: boolean;
|
|
331
|
+
selectedReportHubId: number | null;
|
|
332
|
+
onSelectItem: (reportHubId: number | null) => void;
|
|
333
|
+
userId?: string | null;
|
|
334
|
+
scrollOffsetRef?: RefObject<number>;
|
|
335
|
+
};
|
|
336
|
+
declare const DailyReportList: (props: DailyReportListProps) => react.JSX.Element;
|
|
293
337
|
type DailyReportSearchFilterOption = {
|
|
294
338
|
readonly value: string;
|
|
295
339
|
readonly label: string;
|
|
@@ -353,123 +397,6 @@ declare const DailyReportConfigProvider: ({ config, children }: {
|
|
|
353
397
|
}) => react.JSX.Element;
|
|
354
398
|
declare const useDailyReportConfig: () => DailyReportClientConfig;
|
|
355
399
|
declare const resolveSourceTypeConfig: (sourceType?: string | null, sourceTypeConfigs?: Record<string, SourceTypeConfig>) => SourceTypeConfig | undefined;
|
|
356
|
-
declare class DailyReportRowBatch {
|
|
357
|
-
readonly length: number;
|
|
358
|
-
readonly ids: Float64Array;
|
|
359
|
-
readonly businessDateCodes: Uint16Array;
|
|
360
|
-
readonly sourceTypeCodes: Uint8Array;
|
|
361
|
-
constructor(length: number, ids: Float64Array, businessDateCodes: Uint16Array, sourceTypeCodes: Uint8Array);
|
|
362
|
-
itemAt(index: number): DailyReportItem;
|
|
363
|
-
items(): DailyReportItem[];
|
|
364
|
-
}
|
|
365
|
-
type DailyReportIdsStreamItemReplacements = {
|
|
366
|
-
readonly previous: DailyReportRowBatch;
|
|
367
|
-
readonly next: DailyReportRowBatch;
|
|
368
|
-
};
|
|
369
|
-
type DailyReportIdsStreamItemsChange = {
|
|
370
|
-
readonly base: number;
|
|
371
|
-
readonly revision: number;
|
|
372
|
-
readonly appended: DailyReportRowBatch;
|
|
373
|
-
readonly replaced: DailyReportIdsStreamItemReplacements;
|
|
374
|
-
readonly removed: DailyReportRowBatch;
|
|
375
|
-
};
|
|
376
|
-
type DailyReportIdsStreamPhase = "idle" | "streaming" | "retrying" | "complete" | "failed" | "auth-required";
|
|
377
|
-
type DailyReportIdsStreamState = {
|
|
378
|
-
loadedCount: number;
|
|
379
|
-
itemsRevision: number;
|
|
380
|
-
itemsChanges: readonly DailyReportIdsStreamItemsChange[];
|
|
381
|
-
totalCount: number | null;
|
|
382
|
-
phase: DailyReportIdsStreamPhase;
|
|
383
|
-
isRevalidating: boolean;
|
|
384
|
-
hasCompletedOnce: boolean;
|
|
385
|
-
completedAt: number | null;
|
|
386
|
-
error: Error | null;
|
|
387
|
-
streamAnchor: DailyReportSseStreamAnchor | null;
|
|
388
|
-
};
|
|
389
|
-
type DailyReportIdsStreamClientOptions = {
|
|
390
|
-
apiBasePath?: string;
|
|
391
|
-
fetchFn?: (input: string, init: {
|
|
392
|
-
signal: AbortSignal;
|
|
393
|
-
headers: Record<string, string>;
|
|
394
|
-
cache: RequestCache;
|
|
395
|
-
}) => Promise<Response>;
|
|
396
|
-
setTimeoutFn?: (handler: () => void, ms: number) => ReturnType<typeof setTimeout>;
|
|
397
|
-
clearTimeoutFn?: (id: ReturnType<typeof setTimeout>) => void;
|
|
398
|
-
readStallTimeoutMs?: number;
|
|
399
|
-
warn?: (...args: unknown[]) => void;
|
|
400
|
-
publishCoalesceMs?: number;
|
|
401
|
-
now?: () => number;
|
|
402
|
-
};
|
|
403
|
-
declare class DailyReportIdsStreamClient {
|
|
404
|
-
private readonly apiBasePath;
|
|
405
|
-
private readonly fetchFn;
|
|
406
|
-
private readonly setTimeoutFn;
|
|
407
|
-
private readonly clearTimeoutFn;
|
|
408
|
-
private readonly warn;
|
|
409
|
-
private readonly readStallTimeoutMs;
|
|
410
|
-
private readonly rows;
|
|
411
|
-
private readonly listeners;
|
|
412
|
-
private state;
|
|
413
|
-
private streamAnchorRevision;
|
|
414
|
-
private lastCursor;
|
|
415
|
-
private lastSnapshot;
|
|
416
|
-
private consecutiveFailures;
|
|
417
|
-
private started;
|
|
418
|
-
private disposed;
|
|
419
|
-
private loopGeneration;
|
|
420
|
-
private activeAbortController;
|
|
421
|
-
private readonly externalRemovalTombstones;
|
|
422
|
-
private pendingForceRefresh;
|
|
423
|
-
private wakeRetryWait;
|
|
424
|
-
private readonly handleOnline;
|
|
425
|
-
private readonly publishCoalesceMs;
|
|
426
|
-
private publishCoalesceTimer;
|
|
427
|
-
private readonly now;
|
|
428
|
-
private lastItemsPublishAt;
|
|
429
|
-
private readonly pendingItemsChange;
|
|
430
|
-
constructor(options?: DailyReportIdsStreamClientOptions);
|
|
431
|
-
getState(): DailyReportIdsStreamState;
|
|
432
|
-
subscribe(listener: () => void): () => void;
|
|
433
|
-
start(): void;
|
|
434
|
-
retry(): void;
|
|
435
|
-
refresh(options?: {
|
|
436
|
-
forceRefresh?: boolean;
|
|
437
|
-
}): void;
|
|
438
|
-
resync(): void;
|
|
439
|
-
applyExternalUpsert(item: DailyReportItem): void;
|
|
440
|
-
applyExternalRemoval(reportHubId: number): void;
|
|
441
|
-
has(reportHubId: number): boolean;
|
|
442
|
-
readRows(): DailyReportRowBatch;
|
|
443
|
-
readItems(): DailyReportItem[];
|
|
444
|
-
dispose(): void;
|
|
445
|
-
private runStreamLoop;
|
|
446
|
-
private pruneUnseenItems;
|
|
447
|
-
private streamOnce;
|
|
448
|
-
private awaitResponseHeaders;
|
|
449
|
-
private watchReadSilence;
|
|
450
|
-
private absorbChunkLine;
|
|
451
|
-
private putItem;
|
|
452
|
-
private deleteItem;
|
|
453
|
-
private absorbStreamAnchor;
|
|
454
|
-
private takePendingItems;
|
|
455
|
-
private publishItems;
|
|
456
|
-
private schedulePublishItems;
|
|
457
|
-
private cancelScheduledPublishItems;
|
|
458
|
-
private publish;
|
|
459
|
-
private buildStreamUrl;
|
|
460
|
-
private waitBeforeRetry;
|
|
461
|
-
}
|
|
462
|
-
declare const ensureDailyReportIdsStreamSession: (options: {
|
|
463
|
-
apiBasePath?: string;
|
|
464
|
-
userKey: string | null;
|
|
465
|
-
}) => void;
|
|
466
|
-
declare const bootstrapDailyReportIdsStreamSession: (options: {
|
|
467
|
-
apiBasePath?: string;
|
|
468
|
-
userKey: string | null;
|
|
469
|
-
}) => void;
|
|
470
|
-
declare const primeDailyReportIdsStreamSession: () => void;
|
|
471
|
-
declare const resyncDailyReportIdsStream: () => void;
|
|
472
|
-
declare const useDailyReportIdsStream: () => DailyReportIdsStreamState;
|
|
473
400
|
type DailyReportPageProps = {
|
|
474
401
|
user?: DailyReportUser;
|
|
475
402
|
userId?: string | null;
|
|
@@ -580,4 +507,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
|
|
|
580
507
|
};
|
|
581
508
|
declare const LATTICE_BLOCK_QUANTUM_CLASS_NAME = "[--aqdr-lattice-block:4px] [@media(resolution:1.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.875dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.875dppx)]:[--aqdr-lattice-block:8px]";
|
|
582
509
|
declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
|
|
583
|
-
export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps,
|
|
510
|
+
export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type ListNavigationHandle as DailyReportListNavigationHandle, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportRowBatch, type DailyReportRows, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type SourceTypeConfig as DailyReportSourceTypeConfig, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, readDailyReportIdsStreamRows, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
|