@ai-matrx/records-ui 0.116.74 → 0.116.75
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 +6 -0
- package/dist/{SaveToTable-M532U7TS.js → SaveToTable-HQREESNE.js} +3 -3
- package/dist/{chunk-K5RXFZYC.js → chunk-D2FZEAYO.js} +9 -8
- package/dist/{chunk-K5RXFZYC.js.map → chunk-D2FZEAYO.js.map} +1 -1
- package/dist/{chunk-ZX4EFZSB.js → chunk-HCPNQM4Y.js} +1 -1
- package/dist/chunk-HCPNQM4Y.js.map +1 -0
- package/dist/{chunk-XLHEYH5J.js → chunk-NDYZROTI.js} +4 -4
- package/dist/chunk-NDYZROTI.js.map +1 -0
- package/dist/helpers.d.cts +26 -0
- package/dist/helpers.d.ts +26 -0
- package/dist/index.cjs +217 -109
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +193 -86
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +5 -4
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-XLHEYH5J.js.map +0 -1
- package/dist/chunk-ZX4EFZSB.js.map +0 -1
- /package/dist/{SaveToTable-M532U7TS.js.map → SaveToTable-HQREESNE.js.map} +0 -0
package/dist/helpers.d.cts
CHANGED
|
@@ -307,6 +307,23 @@ interface EnrichOutcome {
|
|
|
307
307
|
/** How many values it wrote (0 for a preview). */
|
|
308
308
|
rowsWritten?: number;
|
|
309
309
|
}
|
|
310
|
+
/** What a fill would cost is asked BEFORE it runs (lane FIX-AI4, CD-AI-04 — law 14: the confirm step shows points). */
|
|
311
|
+
interface FillEstimateAsk {
|
|
312
|
+
tableId: Uuid$1;
|
|
313
|
+
fieldId: Uuid$1;
|
|
314
|
+
/** How many records the fill would cover. */
|
|
315
|
+
rows: number;
|
|
316
|
+
}
|
|
317
|
+
interface FillEstimate {
|
|
318
|
+
/** `measured`: the column's own cost per row so far. `estimated`: the model's price over what each row sends. `none`: no figure. */
|
|
319
|
+
basis: "measured" | "estimated" | "none";
|
|
320
|
+
/** The whole fill, in cents; shown only as points at the host's rate. */
|
|
321
|
+
costCents: number | null;
|
|
322
|
+
/** True when the column also reads the web or pictures, which cost more than this. */
|
|
323
|
+
extraReads?: boolean;
|
|
324
|
+
/** Why there is no figure, in the server's words, when `basis` is `none`. */
|
|
325
|
+
says?: string;
|
|
326
|
+
}
|
|
310
327
|
|
|
311
328
|
/** One record as the grid shows it: its id, its name (the row label) and its masked document. */
|
|
312
329
|
interface GridContextRecord {
|
|
@@ -907,6 +924,15 @@ interface RecordsUiHost {
|
|
|
907
924
|
* Unbound, no Fill control is drawn at all and the reason names this port.
|
|
908
925
|
*/
|
|
909
926
|
enrich?: (ask: EnrichAsk) => Promise<EnrichOutcome>;
|
|
927
|
+
/**
|
|
928
|
+
* OPTIONAL. WHAT A FILL WOULD COST, BEFORE IT RUNS (lane FIX-AI4, CD-AI-04 — law 14).
|
|
929
|
+
*
|
|
930
|
+
* The confirm step before a bulk fill shows its points. A column with runs carries its measured cost per row;
|
|
931
|
+
* one without asks here, and the host asks the server (`POST /v1/tables/{table}/ai-columns/{field}/estimate`),
|
|
932
|
+
* which prices the rows the fill would do at the bound model's catalog price. Unbound, a column that never ran
|
|
933
|
+
* says "no estimate".
|
|
934
|
+
*/
|
|
935
|
+
estimateFill?: (ask: FillEstimateAsk) => Promise<FillEstimate>;
|
|
910
936
|
/**
|
|
911
937
|
* OPTIONAL. POINTS PER DOLLAR — the platform's rate. Every cost these screens show is
|
|
912
938
|
* points at this rate (`costInPoints`); unbound, no cost is shown, never the vendor's money.
|
package/dist/helpers.d.ts
CHANGED
|
@@ -307,6 +307,23 @@ interface EnrichOutcome {
|
|
|
307
307
|
/** How many values it wrote (0 for a preview). */
|
|
308
308
|
rowsWritten?: number;
|
|
309
309
|
}
|
|
310
|
+
/** What a fill would cost is asked BEFORE it runs (lane FIX-AI4, CD-AI-04 — law 14: the confirm step shows points). */
|
|
311
|
+
interface FillEstimateAsk {
|
|
312
|
+
tableId: Uuid$1;
|
|
313
|
+
fieldId: Uuid$1;
|
|
314
|
+
/** How many records the fill would cover. */
|
|
315
|
+
rows: number;
|
|
316
|
+
}
|
|
317
|
+
interface FillEstimate {
|
|
318
|
+
/** `measured`: the column's own cost per row so far. `estimated`: the model's price over what each row sends. `none`: no figure. */
|
|
319
|
+
basis: "measured" | "estimated" | "none";
|
|
320
|
+
/** The whole fill, in cents; shown only as points at the host's rate. */
|
|
321
|
+
costCents: number | null;
|
|
322
|
+
/** True when the column also reads the web or pictures, which cost more than this. */
|
|
323
|
+
extraReads?: boolean;
|
|
324
|
+
/** Why there is no figure, in the server's words, when `basis` is `none`. */
|
|
325
|
+
says?: string;
|
|
326
|
+
}
|
|
310
327
|
|
|
311
328
|
/** One record as the grid shows it: its id, its name (the row label) and its masked document. */
|
|
312
329
|
interface GridContextRecord {
|
|
@@ -907,6 +924,15 @@ interface RecordsUiHost {
|
|
|
907
924
|
* Unbound, no Fill control is drawn at all and the reason names this port.
|
|
908
925
|
*/
|
|
909
926
|
enrich?: (ask: EnrichAsk) => Promise<EnrichOutcome>;
|
|
927
|
+
/**
|
|
928
|
+
* OPTIONAL. WHAT A FILL WOULD COST, BEFORE IT RUNS (lane FIX-AI4, CD-AI-04 — law 14).
|
|
929
|
+
*
|
|
930
|
+
* The confirm step before a bulk fill shows its points. A column with runs carries its measured cost per row;
|
|
931
|
+
* one without asks here, and the host asks the server (`POST /v1/tables/{table}/ai-columns/{field}/estimate`),
|
|
932
|
+
* which prices the rows the fill would do at the bound model's catalog price. Unbound, a column that never ran
|
|
933
|
+
* says "no estimate".
|
|
934
|
+
*/
|
|
935
|
+
estimateFill?: (ask: FillEstimateAsk) => Promise<FillEstimate>;
|
|
910
936
|
/**
|
|
911
937
|
* OPTIONAL. POINTS PER DOLLAR — the platform's rate. Every cost these screens show is
|
|
912
938
|
* points at this rate (`costInPoints`); unbound, no cost is shown, never the vendor's money.
|