@nivaro/react 0.1.287 → 0.1.288
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/full.css +1 -1
- package/dist/index.d.ts +174 -1
- package/dist/index.js +29656 -28662
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1387,6 +1387,37 @@ export declare interface EvaluateOptions {
|
|
|
1387
1387
|
missing?: 'zero' | 'null';
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
|
+
/** Which way an integration event travels: a partner calling in, a push we
|
|
1391
|
+
* sent out, or a poll we made of the partner. */
|
|
1392
|
+
declare type EventDirection = 'in' | 'out' | 'poll';
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* One integration event opened into its full chain: the call, cron, import
|
|
1396
|
+
* or feed that started it, every write and transition it caused, the flows
|
|
1397
|
+
* that ran and the partner pushes that went out — as a tree. Opens on the
|
|
1398
|
+
* first failure, expanded and scrolled to.
|
|
1399
|
+
*/
|
|
1400
|
+
export declare function EventPathSheet({ target, event, onClose, onOpenRecord, onOpenEvent }: EventPathSheetProps): JSX.Element | null;
|
|
1401
|
+
|
|
1402
|
+
export declare interface EventPathSheetProps {
|
|
1403
|
+
/** An event (`source` + `id`, optionally read through its `record`), or a
|
|
1404
|
+
* chain opened directly by id — where a replay link leads. */
|
|
1405
|
+
target: IntegrationEventPathTarget | null;
|
|
1406
|
+
event?: {
|
|
1407
|
+
label?: string | null;
|
|
1408
|
+
item_label?: string | null;
|
|
1409
|
+
} | null;
|
|
1410
|
+
onClose: () => void;
|
|
1411
|
+
onOpenRecord?: (collection: string, id: string) => void;
|
|
1412
|
+
/** Replay links — the chain this one replayed, or a replay of it. The host
|
|
1413
|
+
* swaps the sheet's target to `{ chainId }`. Absent = the links read as text. */
|
|
1414
|
+
onOpenEvent?: (target: {
|
|
1415
|
+
chainId: string;
|
|
1416
|
+
}) => void;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
declare type EventStatus = 'ok' | 'error' | 'info';
|
|
1420
|
+
|
|
1390
1421
|
export declare type ExprNode = {
|
|
1391
1422
|
kind: 'number';
|
|
1392
1423
|
value: number;
|
|
@@ -2403,6 +2434,63 @@ export declare interface IntegrationDotsProps {
|
|
|
2403
2434
|
className?: string;
|
|
2404
2435
|
}
|
|
2405
2436
|
|
|
2437
|
+
/**
|
|
2438
|
+
* One entry of the integration events feed. The cross-record feed carries
|
|
2439
|
+
* `provider`; the per-record feed (GET /integration-events/record/...) carries
|
|
2440
|
+
* `source` instead — read `provider ?? source` for the source id.
|
|
2441
|
+
*/
|
|
2442
|
+
declare interface IntegrationEvent {
|
|
2443
|
+
id: string | number;
|
|
2444
|
+
label: string;
|
|
2445
|
+
text: string;
|
|
2446
|
+
user?: string | null;
|
|
2447
|
+
created_at: string;
|
|
2448
|
+
context?: string | null;
|
|
2449
|
+
/** Null when the event concerns no single record (a whole import, a poll). */
|
|
2450
|
+
collection: string | null;
|
|
2451
|
+
item_id: string | null;
|
|
2452
|
+
item_label?: string | null;
|
|
2453
|
+
provider?: string;
|
|
2454
|
+
source?: string;
|
|
2455
|
+
direction?: EventDirection;
|
|
2456
|
+
chain_id?: string | null;
|
|
2457
|
+
/** How many records the event touched, when it is more than one. */
|
|
2458
|
+
record_count?: number;
|
|
2459
|
+
partner?: string | null;
|
|
2460
|
+
caller?: string | null;
|
|
2461
|
+
replayable?: boolean;
|
|
2462
|
+
status?: EventStatus | null;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
export declare interface IntegrationEventPath {
|
|
2466
|
+
root: IntegrationPathNode;
|
|
2467
|
+
mode: 'exact' | 'inferred';
|
|
2468
|
+
truncated: boolean;
|
|
2469
|
+
step_count: number;
|
|
2470
|
+
/** Key of the first failed step, if any. */
|
|
2471
|
+
first_failure: string | null;
|
|
2472
|
+
replay_of: string | null;
|
|
2473
|
+
replayed_as: string[];
|
|
2474
|
+
/** Steps left out because the viewer may not read their records. */
|
|
2475
|
+
hidden_steps?: number;
|
|
2476
|
+
warnings: string[];
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
/** Which event to open a path for. With `record`, the path is read through
|
|
2480
|
+
* the record-scoped route (any user who can read the record); without, the
|
|
2481
|
+
* admin console route. `{ chainId }` opens one chain directly — what a
|
|
2482
|
+
* replay link carries (admin route). */
|
|
2483
|
+
export declare type IntegrationEventPathTarget = {
|
|
2484
|
+
source: string;
|
|
2485
|
+
id: string;
|
|
2486
|
+
record?: {
|
|
2487
|
+
collection: string;
|
|
2488
|
+
item: string;
|
|
2489
|
+
};
|
|
2490
|
+
} | {
|
|
2491
|
+
chainId: string;
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2406
2494
|
export declare function IntegrationObligationsView({ api, className }: IntegrationObligationsViewProps): JSX.Element;
|
|
2407
2495
|
|
|
2408
2496
|
export declare interface IntegrationObligationsViewProps {
|
|
@@ -2462,6 +2550,73 @@ export declare interface IntegrationPartnersSummary {
|
|
|
2462
2550
|
not_healthy: number;
|
|
2463
2551
|
}
|
|
2464
2552
|
|
|
2553
|
+
/** What a step opens to: field changes, a push, a partner call, a flow run,
|
|
2554
|
+
* a transition. */
|
|
2555
|
+
export declare type IntegrationPathDetail = {
|
|
2556
|
+
type: 'changes';
|
|
2557
|
+
changes: Array<{
|
|
2558
|
+
field: string;
|
|
2559
|
+
label: string;
|
|
2560
|
+
old: string;
|
|
2561
|
+
new: string;
|
|
2562
|
+
}>;
|
|
2563
|
+
} | {
|
|
2564
|
+
type: 'push';
|
|
2565
|
+
status: string;
|
|
2566
|
+
http_status?: number | null;
|
|
2567
|
+
attempts?: number;
|
|
2568
|
+
error?: string | null;
|
|
2569
|
+
request?: string | null;
|
|
2570
|
+
response?: string | null;
|
|
2571
|
+
submission_id: number;
|
|
2572
|
+
} | {
|
|
2573
|
+
type: 'call';
|
|
2574
|
+
method: string;
|
|
2575
|
+
url: string;
|
|
2576
|
+
status?: number | null;
|
|
2577
|
+
duration_ms?: number | null;
|
|
2578
|
+
error?: string | null;
|
|
2579
|
+
} | {
|
|
2580
|
+
type: 'flow';
|
|
2581
|
+
status: string;
|
|
2582
|
+
halted_at?: string | null;
|
|
2583
|
+
error?: string | null;
|
|
2584
|
+
} | {
|
|
2585
|
+
type: 'transition';
|
|
2586
|
+
from?: string | null;
|
|
2587
|
+
to?: string | null;
|
|
2588
|
+
comment?: string | null;
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
/** One step of an event's path, with the steps it set off under it. */
|
|
2592
|
+
export declare interface IntegrationPathNode {
|
|
2593
|
+
/** e.g. 'activity:12' */
|
|
2594
|
+
key: string;
|
|
2595
|
+
/** Parent step key; null = the root. */
|
|
2596
|
+
parent: string | null;
|
|
2597
|
+
kind: PathStepKind;
|
|
2598
|
+
/** ISO timestamp. */
|
|
2599
|
+
at: string;
|
|
2600
|
+
/** Milliseconds after the root step. */
|
|
2601
|
+
offset_ms: number;
|
|
2602
|
+
who?: string | null;
|
|
2603
|
+
record?: {
|
|
2604
|
+
collection: string;
|
|
2605
|
+
item: string;
|
|
2606
|
+
label?: string | null;
|
|
2607
|
+
} | null;
|
|
2608
|
+
summary: string;
|
|
2609
|
+
failed?: boolean;
|
|
2610
|
+
inferred?: boolean;
|
|
2611
|
+
/** Why it was matched (inferred) or why it failed. */
|
|
2612
|
+
reason?: string | null;
|
|
2613
|
+
detail?: IntegrationPathDetail | null;
|
|
2614
|
+
api_id?: number | null;
|
|
2615
|
+
children: IntegrationPathNode[];
|
|
2616
|
+
/** The folded steps of a 'group' node. */
|
|
2617
|
+
members?: IntegrationPathNode[];
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2465
2620
|
/** The filter-pill set the collection browser offers (its own conditions[]
|
|
2466
2621
|
* round trip to `/items/:collection` — the queue has no equivalent server
|
|
2467
2622
|
* path, so it gets the column but not the filter). Values are the same
|
|
@@ -3711,6 +3866,8 @@ export declare interface PartnersViewProps {
|
|
|
3711
3866
|
onOpenChange?: (id: number | null) => void;
|
|
3712
3867
|
}
|
|
3713
3868
|
|
|
3869
|
+
declare type PathStepKind = 'request' | 'cron' | 'import' | 'feed' | 'write' | 'transition' | 'flow' | 'push' | 'attempt' | 'partner_call' | 'group';
|
|
3870
|
+
|
|
3714
3871
|
declare interface PendingTask {
|
|
3715
3872
|
title: string;
|
|
3716
3873
|
assignee: string | null;
|
|
@@ -4859,6 +5016,9 @@ declare interface Row {
|
|
|
4859
5016
|
* ObligationTrigger union into this client lib for one comparison, so a
|
|
4860
5017
|
* new trigger kind added server-side never breaks this file's build. */
|
|
4861
5018
|
trigger?: string;
|
|
5019
|
+
/** The kind's human label from the registry ("Fusion — transfer order
|
|
5020
|
+
* submitted"); null when the server no longer knows the kind. */
|
|
5021
|
+
label?: string | null;
|
|
4862
5022
|
}
|
|
4863
5023
|
|
|
4864
5024
|
export declare const ROW_HIGHLIGHT_TINTS: Record<string, {
|
|
@@ -5243,10 +5403,13 @@ export declare function startRum(opts?: {
|
|
|
5243
5403
|
apiBase?: string;
|
|
5244
5404
|
}): void;
|
|
5245
5405
|
|
|
5246
|
-
export declare function SubmissionRow({ sub, onRetry, retrying }: {
|
|
5406
|
+
export declare function SubmissionRow({ sub, onRetry, retrying, onShowPath }: {
|
|
5247
5407
|
sub: ErpSubmission;
|
|
5248
5408
|
onRetry: (id: number) => void;
|
|
5249
5409
|
retrying: boolean;
|
|
5410
|
+
/** Opens the full integration path (write → transition → push → reply)
|
|
5411
|
+
* behind this submission. Absent = no "Show path" action. */
|
|
5412
|
+
onShowPath?: (id: number) => void;
|
|
5250
5413
|
}): JSX.Element;
|
|
5251
5414
|
|
|
5252
5415
|
/** A submission / attempt status, as a small tinted chip. */
|
|
@@ -5542,6 +5705,9 @@ export declare function useElapsedLoading(loading: boolean, thresholdMs?: number
|
|
|
5542
5705
|
*/
|
|
5543
5706
|
export declare function useEntityRoomLink(room: string | null): string | null;
|
|
5544
5707
|
|
|
5708
|
+
/** One event's full chain of writes. */
|
|
5709
|
+
export declare function useEventPath(target: IntegrationEventPathTarget | null): UseQueryResult<NoInfer<IntegrationEventPath | null>, Error>;
|
|
5710
|
+
|
|
5545
5711
|
export declare function useFeatureFlag(key: string): boolean;
|
|
5546
5712
|
|
|
5547
5713
|
/**
|
|
@@ -5789,6 +5955,13 @@ export declare function UserChip({ userId, size }: {
|
|
|
5789
5955
|
size?: 'default' | 'compact';
|
|
5790
5956
|
}): React_2.JSX.Element;
|
|
5791
5957
|
|
|
5958
|
+
/** Integration events about one record, newest first, one page at a time. */
|
|
5959
|
+
export declare function useRecordIntegrationActivity(collection: string, item: string, page: number): UseQueryResult<NoInfer<{
|
|
5960
|
+
entries: IntegrationEvent[];
|
|
5961
|
+
page: number;
|
|
5962
|
+
has_more: boolean;
|
|
5963
|
+
}>, Error>;
|
|
5964
|
+
|
|
5792
5965
|
export declare function useRefreshSignals(): UseMutationResult<unknown, Error, void, unknown>;
|
|
5793
5966
|
|
|
5794
5967
|
/**
|