@ai-matrx/records 0.99.32 → 0.99.34
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 +16 -1
- package/dist/{client-CrwedBYU.d.ts → client-CSfkP7Xf.d.ts} +5 -74
- package/dist/{client-D1EwyWfh.d.cts → client-jKf1Z-kp.d.cts} +5 -74
- package/dist/core/index.cjs +149 -105
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +9 -331
- package/dist/core/index.d.ts +9 -331
- package/dist/core/index.js +149 -105
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +280 -236
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +3 -2
- package/dist/data/index.d.ts +3 -2
- package/dist/data/index.js +280 -236
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-CC5rTTIA.d.ts → declareTable-0emxEewn.d.ts} +1 -1
- package/dist/{declareTable-BIIt0Wqt.d.cts → declareTable-800bwUn3.d.cts} +1 -1
- package/dist/door-call/index.cjs +1287 -0
- package/dist/door-call/index.cjs.map +1 -0
- package/dist/door-call/index.d.cts +20 -0
- package/dist/door-call/index.d.ts +20 -0
- package/dist/door-call/index.js +1264 -0
- package/dist/door-call/index.js.map +1 -0
- package/dist/{doors-D1yAs0a0.d.cts → doors-BgjRUdxw.d.cts} +13 -1
- package/dist/{doors-D2z3kH2i.d.ts → doors-D7_jEKtg.d.ts} +13 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/{objectOrganization-DazBoDAq.d.cts → objectOrganization-B5YFGVUB.d.cts} +1 -1
- package/dist/{objectOrganization-D1ox3gUx.d.ts → objectOrganization-DozoVIxS.d.ts} +1 -1
- package/dist/pickListDoors-C-_eAEGL.d.cts +135 -0
- package/dist/pickListDoors-DgWVnNRI.d.ts +135 -0
- package/dist/questions/index.d.cts +3 -2
- package/dist/questions/index.d.ts +3 -2
- package/dist/react/index.cjs +363 -319
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +37 -22
- package/dist/react/index.d.ts +37 -22
- package/dist/react/index.js +363 -319
- package/dist/react/index.js.map +1 -1
- package/dist/scopes/index.cjs +7 -0
- package/dist/scopes/index.cjs.map +1 -1
- package/dist/scopes/index.d.cts +2 -2
- package/dist/scopes/index.d.ts +2 -2
- package/dist/scopes/index.js +7 -0
- package/dist/scopes/index.js.map +1 -1
- package/dist/setup/index.cjs +289 -245
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +4 -3
- package/dist/setup/index.d.ts +4 -3
- package/dist/setup/index.js +289 -245
- package/dist/setup/index.js.map +1 -1
- package/dist/table-logic-BPquabNN.d.ts +328 -0
- package/dist/table-logic-CTh6lwaq.d.cts +328 -0
- package/dist/typed-table/index.cjs +280 -236
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +4 -3
- package/dist/typed-table/index.d.ts +4 -3
- package/dist/typed-table/index.js +280 -236
- package/dist/typed-table/index.js.map +1 -1
- package/dist/views/index.d.cts +3 -2
- package/dist/views/index.d.ts +3 -2
- package/package.json +13 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
### Unreleased
|
|
4
|
+
|
|
5
|
+
- **New subpath `@ai-matrx/records/door-call`: the light door clients a shell uses, without the ~600 KB client.** `lightScopeDoors(supabase)` (exactly `client.scopes`), `lightPickListDoors(supabase)` (`pickListGet` / `pickListForSelection` / `pickListUpdate`), `lightDoorCall(supabase)`, `createDoorCall`, `storeDoors`, `asRecordsDataSource` / `supabaseDataSource`, the bulk/service result helpers (`isBulkOpError`, `describeBulkFailures`, `isServiceFailure`) and `resolveObjectOrganization` / `readObjectOrganizationAnswer`. No table registry, no generated catalogue, no field-kind vocabulary (guard: `src/door-call/door-call-entry.test.ts`, which also proves every door the entry names is in the generated catalogue). Consumer action: a shell-reachable module that only asks scope / pick-list doors or `storeDoors` imports from `/door-call` instead of `/core`.
|
|
6
|
+
- **One door call.** The records client's `callDoor` is now `createDoorCall` (`src/core/doorCall.ts`) with the page bundle and the generated catalogue handed in as hooks, so primed answers, one-read-in-flight, the schema, `door_absent` and the error sink are one implementation for the full and the light clients. Behaviour unchanged. Consumer action: none.
|
|
7
|
+
- `ScopeDoors.tableProvision({ organization_id, item_id, scope_id, home_id })` (`custom.scope_table_provision`); `RecordsClient.scopeTableProvision` calls it with the client's organization. Additive. Consumer action: none.
|
|
8
|
+
|
|
9
|
+
## 0.99.34
|
|
4
10
|
|
|
5
11
|
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
6
12
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records/src`.
|
|
7
13
|
|
|
14
|
+
## 0.99.32
|
|
15
|
+
|
|
16
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
17
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
18
|
+
Diff: `git diff bfacbee0f5 ff7c99ff75 -- apps/shared/records/src`
|
|
19
|
+
|
|
20
|
+
Changed shipped source files (1):
|
|
21
|
+
- `apps/shared/records/src/results-light.ts`
|
|
22
|
+
|
|
8
23
|
## 0.99.31
|
|
9
24
|
### Unreleased
|
|
10
25
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { U as Uuid, h as Timestamp, l as ReadRow, n as RecordDocument, T as TableType, b as TableDisplay, S as StorageMode, aw as TableOrigin, as as StoredRecord, p as ParityFieldType, a as RecordsError,
|
|
1
|
+
import { U as Uuid, h as Timestamp, l as ReadRow, n as RecordDocument, T as TableType, b as TableDisplay, S as StorageMode, aw as TableOrigin, as as StoredRecord, p as ParityFieldType, a as RecordsError, R as RecordsResult, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ai as RecordRead, k as RecordPageSort, ah as RecordPage, ag as RecordKeysetPage, aj as RecordRevision, r as ReadValue, aE as WriteConflict } from './record-CTgSgWe3.js';
|
|
2
2
|
import { E as StoreFilter, o as DashboardSummary, I as InterfaceRead, v as InterfaceRows, l as DashboardBlock, R as RecordFilter, e as AggregateCompare, A as AggregateBucket, n as DashboardRunResult, F as StuckRow, c as AggregateMeasure, j as AggregateRow, G as Subscription, M as MySubscription, J as SubscriptionSpec, u as DigestPreview, d as SavedViewRow, C as SavedViewSpecIn, x as RowTemplateRow } from './subscription-Bp1RSb6p.js';
|
|
3
3
|
import { f as RelationCoordinate, j as RelationWordsManyArgs, g as RelationIcons, k as ReverseColumn, o as ReverseLinksManyArgs, m as ReverseLinks, n as ReverseLinksFieldsArgs, S as SourceArchived } from './relation-T4biacnz.js';
|
|
4
4
|
import { F as Field, r as FieldPatch, N as NewFieldDeclaration, z as RelationNamesAnswer, o as FieldDuplicated, s as FieldProposal, T as TableProposal, h as ButtonPressed } from './field-DaE90BZ7.js';
|
|
5
|
-
import {
|
|
5
|
+
import { S as ScopeDoors } from './doors-D7_jEKtg.js';
|
|
6
|
+
import { P as PickListDoors } from './pickListDoors-DgWVnNRI.js';
|
|
6
7
|
import { F as FormSummary, b as BookingSummary, B as BookingAvailability, a as BookingDeclared, e as FormRoute, d as FormResults } from './rule-DzNj0QvN.js';
|
|
7
8
|
import { g as PermissionLevel, a as RecordsConfig, M as MyLevel } from './ports-CmmvR8OI.js';
|
|
8
9
|
import { F as FormLookOptions, t as PortalSummary, d as PortalArchiveFilter, c as PortalArchiveAnswer, v as PortalTableRef, e as PortalCard, g as PortalConfigInput, l as PortalFormSpec, i as PortalFormAnswer, m as PortalInvitation, p as PortalRevocation, n as PortalPreviewRow } from './portal-CAssJHRZ.js';
|
|
@@ -511,38 +512,6 @@ declare function recordsUseSentence(records: number, words: string): string;
|
|
|
511
512
|
/** What the answer will do, said before Save: “3 records move to “Exam”.” */
|
|
512
513
|
declare function rehomeSentence(records: number, words: string, rehome: ChoiceRehome, toWords?: string): string;
|
|
513
514
|
|
|
514
|
-
/** One choice as the detail / selection documents hand it back. */
|
|
515
|
-
interface PickListItem {
|
|
516
|
-
id: string;
|
|
517
|
-
label: string;
|
|
518
|
-
/** Never present on the selection read: that read is the one a non-owner may see. */
|
|
519
|
-
description?: string | null;
|
|
520
|
-
help_text?: string | null;
|
|
521
|
-
group_name?: string | null;
|
|
522
|
-
icon_name?: string | null;
|
|
523
|
-
}
|
|
524
|
-
/** A pick list as `pick_list_get` / `pick_list_for_selection` / `pick_list_update` answer it. */
|
|
525
|
-
interface PickListDocument {
|
|
526
|
-
id?: string;
|
|
527
|
-
list_id?: string;
|
|
528
|
-
list_name?: string;
|
|
529
|
-
description?: string | null;
|
|
530
|
-
organization_id?: string | null;
|
|
531
|
-
/** The choices in order (the update door answers this flat shape). */
|
|
532
|
-
items?: PickListItem[];
|
|
533
|
-
/** The choices by group (the read doors answer this shape). */
|
|
534
|
-
items_grouped?: Record<string, PickListItem[]>;
|
|
535
|
-
[key: string]: unknown;
|
|
536
|
-
}
|
|
537
|
-
/** One choice to write when a list's choices are replaced. Either casing of each key is read by the door. */
|
|
538
|
-
interface PickListItemInput {
|
|
539
|
-
label: string;
|
|
540
|
-
description?: string;
|
|
541
|
-
help_text?: string;
|
|
542
|
-
group_name?: string;
|
|
543
|
-
icon?: string;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
515
|
/** The store's behaviour words a column can be changed to. */
|
|
547
516
|
type RetypeBehaviour = "text" | "range" | "boolean";
|
|
548
517
|
/** `custom.migrate_retype`'s answer for a Field. */
|
|
@@ -4174,23 +4143,6 @@ declare function planQuery(query: RecordQuery): QueryPlan;
|
|
|
4174
4143
|
/** The intersection of the id sets a plan's calls produced. Order is preserved from the first set. */
|
|
4175
4144
|
declare function intersectIds(sets: Uuid[][]): Uuid[];
|
|
4176
4145
|
|
|
4177
|
-
/**
|
|
4178
|
-
* 🚨 A REFUSAL IS NOT AN APP ERROR (lane RECORDS-UI-FIX, guide re-walk 2026-09-23).
|
|
4179
|
-
*
|
|
4180
|
-
* A person typing `-3` into a column that takes "at least 0" is the store WORKING: the
|
|
4181
|
-
* rule said no, the screen said so in the one notice, and the person fixed it. The default
|
|
4182
|
-
* sink printed every one of those through `console.error`, and the app's error capture
|
|
4183
|
-
* (matrx-frontend `lib/diagnostics/globalErrorCapture.ts`) counts every `console.error` —
|
|
4184
|
-
* so one refused value lit a red "2 errors" pill in the corner, telling an admin the
|
|
4185
|
-
* product had failed when a person had simply been told no.
|
|
4186
|
-
*
|
|
4187
|
-
* These are the codes a PERSON causes by what they typed or when they typed it; each one
|
|
4188
|
-
* is already drawn on the screen that asked. They are still said (`console.info`), never
|
|
4189
|
-
* silenced. Everything else — a door, the store switched off, a timeout, a class this
|
|
4190
|
-
* package did not recognise — is a failure of the system and stays `console.error`.
|
|
4191
|
-
*/
|
|
4192
|
-
declare const A_PERSONS_REFUSAL: ReadonlySet<RecordsErrorCode>;
|
|
4193
|
-
declare function isAPersonsRefusal(code: RecordsErrorCode | string): boolean;
|
|
4194
4146
|
/** One organization the client could not use, with the sentence that says why. */
|
|
4195
4147
|
interface OrganizationUnavailable {
|
|
4196
4148
|
organization_id: Uuid;
|
|
@@ -4210,7 +4162,7 @@ interface MetadataSearchAnswer {
|
|
|
4210
4162
|
organizations_covered: Uuid[];
|
|
4211
4163
|
unavailable: OrganizationUnavailable[];
|
|
4212
4164
|
}
|
|
4213
|
-
interface RecordsClient {
|
|
4165
|
+
interface RecordsClient extends PickListDoors {
|
|
4214
4166
|
/** The config this client was built with, so a screen can show who it is acting as. */
|
|
4215
4167
|
readonly config: RecordsConfig;
|
|
4216
4168
|
/**
|
|
@@ -4719,27 +4671,6 @@ interface RecordsClient {
|
|
|
4719
4671
|
fieldOptions(args: {
|
|
4720
4672
|
field_id: Uuid;
|
|
4721
4673
|
}): Promise<RecordsResult<StoredRecord[]>>;
|
|
4722
|
-
/**
|
|
4723
|
-
* PICK-LISTS: a pick list with its choices, grouped (`custom.pick_list_get`; viewer access on the list).
|
|
4724
|
-
* The list is read by its own id; its organization is the list's own, never the client's.
|
|
4725
|
-
*/
|
|
4726
|
-
pickListGet(args: {
|
|
4727
|
-
list_id: Uuid;
|
|
4728
|
-
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
4729
|
-
/** PICK-LISTS: a pick list for a selection control (`custom.pick_list_for_selection`): labels, help, groups, icons, NEVER the secret description. */
|
|
4730
|
-
pickListForSelection(args: {
|
|
4731
|
-
list_id: Uuid;
|
|
4732
|
-
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
4733
|
-
/**
|
|
4734
|
-
* PICK-LISTS: rename / describe a pick list and, with `items`, REPLACE its choices
|
|
4735
|
-
* (`custom.pick_list_update`; editor access). The replaced choices are archived, soft and restorable.
|
|
4736
|
-
*/
|
|
4737
|
-
pickListUpdate(args: {
|
|
4738
|
-
list_id: Uuid;
|
|
4739
|
-
list_name?: string | null;
|
|
4740
|
-
description?: string | null;
|
|
4741
|
-
items?: readonly PickListItemInput[] | null;
|
|
4742
|
-
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
4743
4674
|
/**
|
|
4744
4675
|
* How many records hold each choice of one choice column, keyed by the option's id
|
|
4745
4676
|
* (`custom.field_choice_usage`; counts only records the caller may see). What a column editor
|
|
@@ -6917,4 +6848,4 @@ declare function createRecordsClient(given: RecordsConfig): RecordsClient;
|
|
|
6917
6848
|
*/
|
|
6918
6849
|
declare function asWriteConflict(error: RecordsError, recordId: Uuid): WriteConflict | null;
|
|
6919
6850
|
|
|
6920
|
-
export { type
|
|
6851
|
+
export { type ChecklistSpec as $, ARCHIVE_LANES as A, type AutomationStep as B, type AutomationTested as C, type AutomationToken as D, type AutomationTrigger as E, type FieldDrift as F, type AutomationValue as G, type AutomationValues as H, type AutomationWeekday as I, type AutomationWhen as J, BUILT_KIND_WORD as K, CHOICE_NUDGES as L, type CaptureField as M, type CaptureFileRef as N, type CaptureOutcome as O, type CaptureQuestion as P, type CaptureSheetFace as Q, type RecordsClient as R, type CaptureSheetSummary as S, type TableArchiveProgress as T, type ChecklistDeclared as U, type ChecklistRequirement as V, type ChecklistRequirementKind as W, type ChecklistRoleSpec as X, type ChecklistRunStarted as Y, type ChecklistRunStep as Z, type ChecklistRunSummary as _, ARCHIVE_LANE_LABEL as a, type Enrichment as a$, type ChecklistStepCompleted as a0, type ChecklistStepSpec as a1, type ChecklistTemplateShape as a2, type ChecklistTemplateSummary as a3, type ChecklistTrigger as a4, type ChecklistTriggerKind as a5, type ChoiceCellBack as a6, type ChoiceLike as a7, type ChoiceNudge as a8, type ChoiceOption as a9, type DrillAdHocOp as aA, type DrillAnswer as aB, type DrillAnswerRow as aC, type DrillChartToken as aD, type DrillDeclaration as aE, type DrillDefinition as aF, type DrillDimension as aG, type DrillFinding as aH, type DrillGrain as aI, type DrillHaving as aJ, type DrillLane as aK, type DrillLevel as aL, type DrillMeasure as aM, type DrillMeasureOp as aN, type DrillMeasureWhereValue as aO, type DrillPath as aP, type DrillQuestion as aQ, type DrillRecords as aR, type DrillRowsPage as aS, type DrillSource as aT, type DrillView as aU, type EnrichAlternate as aV, type EnrichCell as aW, type EnrichDeclared as aX, type EnrichDueRow as aY, type EnrichRun as aZ, type EnrichSource as a_, type ChoiceRehome as aa, type ChoiceUsage as ab, type ChoicesRehomed as ac, type CommentThreadRead as ad, type CommentWritten as ae, type ConversationScope as af, type ConversationScopeContext as ag, type CustomFieldTableType as ah, DEFAULT_ARCHIVE_LANE as ai, DEFAULT_PAGE_SIZE as aj, DRILL_CHART_TOKENS as ak, DRILL_DESCRIPTION_MAX as al, DRILL_DOORS as am, DRILL_SCHEMA as an, type DataHomeTable as ao, type DecorationColor as ap, type DecorationPath as aq, type DecorationRule as ar, type DecorationRuleOp as as, type DecorationTarget as at, type DocRenderRow as au, type DocSignatureCheck as av, type DocSignatureRow as aw, type DocTemplateRow as ax, type DocToken as ay, type DocUnresolvedToken as az, ARCHIVE_LANE_MEANS as b, type PromotedPredicate as b$, type EnrichmentSummary as b0, type EntityBackLinkItem as b1, type EntityBackLinks as b2, type EntityFieldRights as b3, type EntityFieldValue as b4, type EntityFieldsAcross as b5, type EntityRecordMatch as b6, type EntityRecordRead as b7, type EntityRecordsFound as b8, type EntityRowWritten as b9, type InboundAddress as bA, type InboundDeclared as bB, type InboxCounts as bC, type InboxStateChange as bD, type IoExportPage as bE, type MigrationEntry as bF, type MigrationUndone as bG, type NewEntityFieldDeclaration as bH, type OutsideShareAnswer as bI, PIPELINE_RULE_KINDS as bJ, type ParentExtracted as bK, type Pipeline as bL, type PipelineColumn as bM, type PipelineDeclared as bN, type PipelineGate as bO, type PipelineGatePreview as bP, type PipelineMissingField as bQ, type PipelineMoveMany as bR, type PipelineMoveManyItem as bS, type PipelineMoveManyResult as bT, type PipelineMoveResult as bU, type PipelineMoveVerdict as bV, type PipelineRule as bW, type PipelineRuleKind as bX, type PipelineSpec as bY, type PipelineStage as bZ, type PipelineVerdict as b_, type EntityTableFacts as ba, type ExternalPrincipalCard as bb, type FieldDriftAspect as bc, type FieldHistoryEntry as bd, type FieldRetyped as be, type FormArchiveAnswer as bf, type FormulaParse as bg, type FormulaPreview as bh, type GridLayout as bi, type GridLayoutMode as bj, type GridRowHeight as bk, type HistoryActor as bl, type HistoryActorKind as bm, type HistoryChange as bn, type Home as bo, type ImportBatchResult as bp, type ImportColumnPlan as bq, type ImportColumnsDeclared as br, type ImportFinished as bs, type ImportOpened as bt, type ImportOutcome as bu, type ImportPlan as bv, type ImportPolicy as bw, type ImportProposal as bx, type ImportReport as by, type ImportRun as bz, type ActionRefusal as c, type TableRowCount as c$, type PublishBinding as c0, type PublishBindingKind as c1, type QueryPlan as c2, ROW_LABEL_FORMULA_MAX_LENGTH as c3, ROW_WEB_NOT_READY as c4, type RecordChangeAction as c5, type RecordComment as c6, type RecordEvent as c7, type RecordHeader as c8, type RecordHistoryEntry as c9, type StagePending as cA, type StagePendingOnBoard as cB, type StageRuleEnforcement as cC, type StageRuleOnFail as cD, type StageRuleWarning as cE, type SyncAutoRefresh as cF, type Table as cG, type TableCapacity as cH, type TableCopyInProgress as cI, type TableCopySpec as cJ, type TableDecorations as cK, type TableDuplicateProgress as cL, type TableDuplicated as cM, type TableFact as cN, type TableHome as cO, type TableHomeDestination as cP, type TableLevel as cQ, type TableLevelApproval as cR, type TableLevelFacts as cS, type TableLevelSet as cT, type TableListEntry as cU, type TableLiveLocation as cV, type TableMoved as cW, type TablePlacement as cX, type TablePlacementFact as cY, type TableReaderRule as cZ, type TableRestoreProgress as c_, type RecordQuery as ca, type RecordRowControls as cb, type RecordScopeComment as cc, type RecordScopeContext as cd, type RecordScopeField as ce, type RecordScopeHistoryEntry as cf, type RecordScopeRelation as cg, type RecordScopeWithheld as ch, type RecordSplit as ci, type RecordsMerged as cj, type RegisteredTable as ck, type ResolvedPublishBinding as cl, type ResolvedPublishBindingKind as cm, type RestorePreview as cn, type RestoreResult as co, type RetypeBehaviour as cp, type RetypePreview as cq, type RowAction as cr, type RowActionStep as cs, type RowDefaultsApplied as ct, SHOWN_TO_LABEL as cu, SHOWN_TO_VALUES as cv, SHOWN_TO_WHO_MAY_CHANGE as cw, STAGE_RULE_ENFORCEMENT as cx, STAGE_RULE_ON_FAIL as cy, type ShownTo as cz, type ActionRunResult as d, isTheChosen as d$, type TableRowDefaults as d0, type TableRowDefaultsPatch as d1, type TableRowLabel as d2, type TableSyncAnswer as d3, type TableSyncResult as d4, type TableSyncSettings as d5, type TableSyncSource as d6, type TableSyncSourceDocument as d7, type TableSyncSpec as d8, type TableWebhook as d9, type WorkSlotHold as dA, type WorkState as dB, type WorkTemplateNode as dC, type WorkTemplateRelation as dD, type WorkTurn as dE, actionRefusals as dF, archivedByLine as dG, archivedWhen as dH, asChoiceNudge as dI, asWriteConflict as dJ, automationWebhookUrl as dK, choiceSlug as dL, choiceValuesOf as dM, choicesOf as dN, clearsRowLabel as dO, createRecordsClient as dP, decideTypedChoice as dQ, declareDrillDefinition as dR, drillAnswerOf as dS, drillFindingKnob as dT, emptyArchiveLine as dU, exportPageXlsx as dV, holdsARetiredChoice as dW, intersectIds as dX, isArchiveLane as dY, isFoundation as dZ, isShownTo as d_, type TableWebhookDeclared as da, type TypedChoiceDecision as db, type ViewLayout as dc, type ViewOrderSet as dd, type WorkApprovalDecision as de, type WorkApprovalFiled as df, type WorkApprovalState as dg, type WorkApprover as dh, type WorkAssignment as di, type WorkAssignmentField as dj, type WorkChange as dk, type WorkDecideMany as dl, type WorkDecideManyItem as dm, type WorkDecideManyResult as dn, type WorkDecideVerdict as dp, type WorkDueState as dq, type WorkGraph as dr, type WorkInboxItem as ds, type WorkInboxKind as dt, type WorkInboxView as du, type WorkInstantiation as dv, type WorkListFlavour as dw, type WorkListItem as dx, type WorkOrigin as dy, type WorkRecordState as dz, type AdminTable as e, keptGroups as e0, keptOutOfSight as e1, keptTableHref as e2, levelHasShownTo as e3, looksLikeAnId as e4, mayDrag as e5, moveConsequence as e6, moveInOrder as e7, offeredAsContext as e8, optionKey as e9, optionLabel as ea, parseFieldDrift as eb, parseTableCopiesInProgress as ec, parseTableDuplicateProgress as ed, parseTableDuplicated as ee, parseTableHome as ef, parseTableMoved as eg, planQuery as eh, previewRetype as ei, previewRuleChange as ej, recordChangeTrigger as ek, recordSourceKey as el, recordSourceTable as em, recordsUseSentence as en, rehomeSentence as eo, removedChoicesInUse as ep, ruleThatRefuses as eq, rulesWithTopStar as er, sameDocument as es, scopeChip as et, sheetSyncSpec as eu, valueConverts as ev, withRowCounts as ew, withTableFacts as ex, withTablePlacement as ey, type AnonTokenBinding as f, type ArchiveLane as g, type ArchivedChecklistTemplate as h, type ArchivedDoorRow as i, type ArchivedForm as j, type ArchivedRow as k, type AsOf as l, type AutomationAction as m, type AutomationComparison as n, type AutomationDeclared as o, type AutomationFilter as p, type AutomationFlipped as q, type AutomationItem as r, type AutomationLastRun as s, type AutomationList as t, type AutomationRevision as u, type AutomationRevisions as v, type AutomationRun as w, type AutomationRunStatus as x, type AutomationRuns as y, type AutomationSpec as z };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { U as Uuid, h as Timestamp, l as ReadRow, n as RecordDocument, T as TableType, b as TableDisplay, S as StorageMode, aw as TableOrigin, as as StoredRecord, p as ParityFieldType, a as RecordsError,
|
|
1
|
+
import { U as Uuid, h as Timestamp, l as ReadRow, n as RecordDocument, T as TableType, b as TableDisplay, S as StorageMode, aw as TableOrigin, as as StoredRecord, p as ParityFieldType, a as RecordsError, R as RecordsResult, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ai as RecordRead, k as RecordPageSort, ah as RecordPage, ag as RecordKeysetPage, aj as RecordRevision, r as ReadValue, aE as WriteConflict } from './record-CTgSgWe3.cjs';
|
|
2
2
|
import { E as StoreFilter, o as DashboardSummary, I as InterfaceRead, v as InterfaceRows, l as DashboardBlock, R as RecordFilter, e as AggregateCompare, A as AggregateBucket, n as DashboardRunResult, F as StuckRow, c as AggregateMeasure, j as AggregateRow, G as Subscription, M as MySubscription, J as SubscriptionSpec, u as DigestPreview, d as SavedViewRow, C as SavedViewSpecIn, x as RowTemplateRow } from './subscription-CuaGi3lC.cjs';
|
|
3
3
|
import { f as RelationCoordinate, j as RelationWordsManyArgs, g as RelationIcons, k as ReverseColumn, o as ReverseLinksManyArgs, m as ReverseLinks, n as ReverseLinksFieldsArgs, S as SourceArchived } from './relation-BjjjXyqn.cjs';
|
|
4
4
|
import { F as Field, r as FieldPatch, N as NewFieldDeclaration, z as RelationNamesAnswer, o as FieldDuplicated, s as FieldProposal, T as TableProposal, h as ButtonPressed } from './field-B8loYt-A.cjs';
|
|
5
|
-
import {
|
|
5
|
+
import { S as ScopeDoors } from './doors-BgjRUdxw.cjs';
|
|
6
|
+
import { P as PickListDoors } from './pickListDoors-C-_eAEGL.cjs';
|
|
6
7
|
import { F as FormSummary, b as BookingSummary, B as BookingAvailability, a as BookingDeclared, e as FormRoute, d as FormResults } from './rule-49jO7lN-.cjs';
|
|
7
8
|
import { g as PermissionLevel, a as RecordsConfig, M as MyLevel } from './ports-alv3bgKY.cjs';
|
|
8
9
|
import { F as FormLookOptions, t as PortalSummary, d as PortalArchiveFilter, c as PortalArchiveAnswer, v as PortalTableRef, e as PortalCard, g as PortalConfigInput, l as PortalFormSpec, i as PortalFormAnswer, m as PortalInvitation, p as PortalRevocation, n as PortalPreviewRow } from './portal-L_mN8l9P.cjs';
|
|
@@ -511,38 +512,6 @@ declare function recordsUseSentence(records: number, words: string): string;
|
|
|
511
512
|
/** What the answer will do, said before Save: “3 records move to “Exam”.” */
|
|
512
513
|
declare function rehomeSentence(records: number, words: string, rehome: ChoiceRehome, toWords?: string): string;
|
|
513
514
|
|
|
514
|
-
/** One choice as the detail / selection documents hand it back. */
|
|
515
|
-
interface PickListItem {
|
|
516
|
-
id: string;
|
|
517
|
-
label: string;
|
|
518
|
-
/** Never present on the selection read: that read is the one a non-owner may see. */
|
|
519
|
-
description?: string | null;
|
|
520
|
-
help_text?: string | null;
|
|
521
|
-
group_name?: string | null;
|
|
522
|
-
icon_name?: string | null;
|
|
523
|
-
}
|
|
524
|
-
/** A pick list as `pick_list_get` / `pick_list_for_selection` / `pick_list_update` answer it. */
|
|
525
|
-
interface PickListDocument {
|
|
526
|
-
id?: string;
|
|
527
|
-
list_id?: string;
|
|
528
|
-
list_name?: string;
|
|
529
|
-
description?: string | null;
|
|
530
|
-
organization_id?: string | null;
|
|
531
|
-
/** The choices in order (the update door answers this flat shape). */
|
|
532
|
-
items?: PickListItem[];
|
|
533
|
-
/** The choices by group (the read doors answer this shape). */
|
|
534
|
-
items_grouped?: Record<string, PickListItem[]>;
|
|
535
|
-
[key: string]: unknown;
|
|
536
|
-
}
|
|
537
|
-
/** One choice to write when a list's choices are replaced. Either casing of each key is read by the door. */
|
|
538
|
-
interface PickListItemInput {
|
|
539
|
-
label: string;
|
|
540
|
-
description?: string;
|
|
541
|
-
help_text?: string;
|
|
542
|
-
group_name?: string;
|
|
543
|
-
icon?: string;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
515
|
/** The store's behaviour words a column can be changed to. */
|
|
547
516
|
type RetypeBehaviour = "text" | "range" | "boolean";
|
|
548
517
|
/** `custom.migrate_retype`'s answer for a Field. */
|
|
@@ -4174,23 +4143,6 @@ declare function planQuery(query: RecordQuery): QueryPlan;
|
|
|
4174
4143
|
/** The intersection of the id sets a plan's calls produced. Order is preserved from the first set. */
|
|
4175
4144
|
declare function intersectIds(sets: Uuid[][]): Uuid[];
|
|
4176
4145
|
|
|
4177
|
-
/**
|
|
4178
|
-
* 🚨 A REFUSAL IS NOT AN APP ERROR (lane RECORDS-UI-FIX, guide re-walk 2026-09-23).
|
|
4179
|
-
*
|
|
4180
|
-
* A person typing `-3` into a column that takes "at least 0" is the store WORKING: the
|
|
4181
|
-
* rule said no, the screen said so in the one notice, and the person fixed it. The default
|
|
4182
|
-
* sink printed every one of those through `console.error`, and the app's error capture
|
|
4183
|
-
* (matrx-frontend `lib/diagnostics/globalErrorCapture.ts`) counts every `console.error` —
|
|
4184
|
-
* so one refused value lit a red "2 errors" pill in the corner, telling an admin the
|
|
4185
|
-
* product had failed when a person had simply been told no.
|
|
4186
|
-
*
|
|
4187
|
-
* These are the codes a PERSON causes by what they typed or when they typed it; each one
|
|
4188
|
-
* is already drawn on the screen that asked. They are still said (`console.info`), never
|
|
4189
|
-
* silenced. Everything else — a door, the store switched off, a timeout, a class this
|
|
4190
|
-
* package did not recognise — is a failure of the system and stays `console.error`.
|
|
4191
|
-
*/
|
|
4192
|
-
declare const A_PERSONS_REFUSAL: ReadonlySet<RecordsErrorCode>;
|
|
4193
|
-
declare function isAPersonsRefusal(code: RecordsErrorCode | string): boolean;
|
|
4194
4146
|
/** One organization the client could not use, with the sentence that says why. */
|
|
4195
4147
|
interface OrganizationUnavailable {
|
|
4196
4148
|
organization_id: Uuid;
|
|
@@ -4210,7 +4162,7 @@ interface MetadataSearchAnswer {
|
|
|
4210
4162
|
organizations_covered: Uuid[];
|
|
4211
4163
|
unavailable: OrganizationUnavailable[];
|
|
4212
4164
|
}
|
|
4213
|
-
interface RecordsClient {
|
|
4165
|
+
interface RecordsClient extends PickListDoors {
|
|
4214
4166
|
/** The config this client was built with, so a screen can show who it is acting as. */
|
|
4215
4167
|
readonly config: RecordsConfig;
|
|
4216
4168
|
/**
|
|
@@ -4719,27 +4671,6 @@ interface RecordsClient {
|
|
|
4719
4671
|
fieldOptions(args: {
|
|
4720
4672
|
field_id: Uuid;
|
|
4721
4673
|
}): Promise<RecordsResult<StoredRecord[]>>;
|
|
4722
|
-
/**
|
|
4723
|
-
* PICK-LISTS: a pick list with its choices, grouped (`custom.pick_list_get`; viewer access on the list).
|
|
4724
|
-
* The list is read by its own id; its organization is the list's own, never the client's.
|
|
4725
|
-
*/
|
|
4726
|
-
pickListGet(args: {
|
|
4727
|
-
list_id: Uuid;
|
|
4728
|
-
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
4729
|
-
/** PICK-LISTS: a pick list for a selection control (`custom.pick_list_for_selection`): labels, help, groups, icons, NEVER the secret description. */
|
|
4730
|
-
pickListForSelection(args: {
|
|
4731
|
-
list_id: Uuid;
|
|
4732
|
-
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
4733
|
-
/**
|
|
4734
|
-
* PICK-LISTS: rename / describe a pick list and, with `items`, REPLACE its choices
|
|
4735
|
-
* (`custom.pick_list_update`; editor access). The replaced choices are archived, soft and restorable.
|
|
4736
|
-
*/
|
|
4737
|
-
pickListUpdate(args: {
|
|
4738
|
-
list_id: Uuid;
|
|
4739
|
-
list_name?: string | null;
|
|
4740
|
-
description?: string | null;
|
|
4741
|
-
items?: readonly PickListItemInput[] | null;
|
|
4742
|
-
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
4743
4674
|
/**
|
|
4744
4675
|
* How many records hold each choice of one choice column, keyed by the option's id
|
|
4745
4676
|
* (`custom.field_choice_usage`; counts only records the caller may see). What a column editor
|
|
@@ -6917,4 +6848,4 @@ declare function createRecordsClient(given: RecordsConfig): RecordsClient;
|
|
|
6917
6848
|
*/
|
|
6918
6849
|
declare function asWriteConflict(error: RecordsError, recordId: Uuid): WriteConflict | null;
|
|
6919
6850
|
|
|
6920
|
-
export { type
|
|
6851
|
+
export { type ChecklistSpec as $, ARCHIVE_LANES as A, type AutomationStep as B, type AutomationTested as C, type AutomationToken as D, type AutomationTrigger as E, type FieldDrift as F, type AutomationValue as G, type AutomationValues as H, type AutomationWeekday as I, type AutomationWhen as J, BUILT_KIND_WORD as K, CHOICE_NUDGES as L, type CaptureField as M, type CaptureFileRef as N, type CaptureOutcome as O, type CaptureQuestion as P, type CaptureSheetFace as Q, type RecordsClient as R, type CaptureSheetSummary as S, type TableArchiveProgress as T, type ChecklistDeclared as U, type ChecklistRequirement as V, type ChecklistRequirementKind as W, type ChecklistRoleSpec as X, type ChecklistRunStarted as Y, type ChecklistRunStep as Z, type ChecklistRunSummary as _, ARCHIVE_LANE_LABEL as a, type Enrichment as a$, type ChecklistStepCompleted as a0, type ChecklistStepSpec as a1, type ChecklistTemplateShape as a2, type ChecklistTemplateSummary as a3, type ChecklistTrigger as a4, type ChecklistTriggerKind as a5, type ChoiceCellBack as a6, type ChoiceLike as a7, type ChoiceNudge as a8, type ChoiceOption as a9, type DrillAdHocOp as aA, type DrillAnswer as aB, type DrillAnswerRow as aC, type DrillChartToken as aD, type DrillDeclaration as aE, type DrillDefinition as aF, type DrillDimension as aG, type DrillFinding as aH, type DrillGrain as aI, type DrillHaving as aJ, type DrillLane as aK, type DrillLevel as aL, type DrillMeasure as aM, type DrillMeasureOp as aN, type DrillMeasureWhereValue as aO, type DrillPath as aP, type DrillQuestion as aQ, type DrillRecords as aR, type DrillRowsPage as aS, type DrillSource as aT, type DrillView as aU, type EnrichAlternate as aV, type EnrichCell as aW, type EnrichDeclared as aX, type EnrichDueRow as aY, type EnrichRun as aZ, type EnrichSource as a_, type ChoiceRehome as aa, type ChoiceUsage as ab, type ChoicesRehomed as ac, type CommentThreadRead as ad, type CommentWritten as ae, type ConversationScope as af, type ConversationScopeContext as ag, type CustomFieldTableType as ah, DEFAULT_ARCHIVE_LANE as ai, DEFAULT_PAGE_SIZE as aj, DRILL_CHART_TOKENS as ak, DRILL_DESCRIPTION_MAX as al, DRILL_DOORS as am, DRILL_SCHEMA as an, type DataHomeTable as ao, type DecorationColor as ap, type DecorationPath as aq, type DecorationRule as ar, type DecorationRuleOp as as, type DecorationTarget as at, type DocRenderRow as au, type DocSignatureCheck as av, type DocSignatureRow as aw, type DocTemplateRow as ax, type DocToken as ay, type DocUnresolvedToken as az, ARCHIVE_LANE_MEANS as b, type PromotedPredicate as b$, type EnrichmentSummary as b0, type EntityBackLinkItem as b1, type EntityBackLinks as b2, type EntityFieldRights as b3, type EntityFieldValue as b4, type EntityFieldsAcross as b5, type EntityRecordMatch as b6, type EntityRecordRead as b7, type EntityRecordsFound as b8, type EntityRowWritten as b9, type InboundAddress as bA, type InboundDeclared as bB, type InboxCounts as bC, type InboxStateChange as bD, type IoExportPage as bE, type MigrationEntry as bF, type MigrationUndone as bG, type NewEntityFieldDeclaration as bH, type OutsideShareAnswer as bI, PIPELINE_RULE_KINDS as bJ, type ParentExtracted as bK, type Pipeline as bL, type PipelineColumn as bM, type PipelineDeclared as bN, type PipelineGate as bO, type PipelineGatePreview as bP, type PipelineMissingField as bQ, type PipelineMoveMany as bR, type PipelineMoveManyItem as bS, type PipelineMoveManyResult as bT, type PipelineMoveResult as bU, type PipelineMoveVerdict as bV, type PipelineRule as bW, type PipelineRuleKind as bX, type PipelineSpec as bY, type PipelineStage as bZ, type PipelineVerdict as b_, type EntityTableFacts as ba, type ExternalPrincipalCard as bb, type FieldDriftAspect as bc, type FieldHistoryEntry as bd, type FieldRetyped as be, type FormArchiveAnswer as bf, type FormulaParse as bg, type FormulaPreview as bh, type GridLayout as bi, type GridLayoutMode as bj, type GridRowHeight as bk, type HistoryActor as bl, type HistoryActorKind as bm, type HistoryChange as bn, type Home as bo, type ImportBatchResult as bp, type ImportColumnPlan as bq, type ImportColumnsDeclared as br, type ImportFinished as bs, type ImportOpened as bt, type ImportOutcome as bu, type ImportPlan as bv, type ImportPolicy as bw, type ImportProposal as bx, type ImportReport as by, type ImportRun as bz, type ActionRefusal as c, type TableRowCount as c$, type PublishBinding as c0, type PublishBindingKind as c1, type QueryPlan as c2, ROW_LABEL_FORMULA_MAX_LENGTH as c3, ROW_WEB_NOT_READY as c4, type RecordChangeAction as c5, type RecordComment as c6, type RecordEvent as c7, type RecordHeader as c8, type RecordHistoryEntry as c9, type StagePending as cA, type StagePendingOnBoard as cB, type StageRuleEnforcement as cC, type StageRuleOnFail as cD, type StageRuleWarning as cE, type SyncAutoRefresh as cF, type Table as cG, type TableCapacity as cH, type TableCopyInProgress as cI, type TableCopySpec as cJ, type TableDecorations as cK, type TableDuplicateProgress as cL, type TableDuplicated as cM, type TableFact as cN, type TableHome as cO, type TableHomeDestination as cP, type TableLevel as cQ, type TableLevelApproval as cR, type TableLevelFacts as cS, type TableLevelSet as cT, type TableListEntry as cU, type TableLiveLocation as cV, type TableMoved as cW, type TablePlacement as cX, type TablePlacementFact as cY, type TableReaderRule as cZ, type TableRestoreProgress as c_, type RecordQuery as ca, type RecordRowControls as cb, type RecordScopeComment as cc, type RecordScopeContext as cd, type RecordScopeField as ce, type RecordScopeHistoryEntry as cf, type RecordScopeRelation as cg, type RecordScopeWithheld as ch, type RecordSplit as ci, type RecordsMerged as cj, type RegisteredTable as ck, type ResolvedPublishBinding as cl, type ResolvedPublishBindingKind as cm, type RestorePreview as cn, type RestoreResult as co, type RetypeBehaviour as cp, type RetypePreview as cq, type RowAction as cr, type RowActionStep as cs, type RowDefaultsApplied as ct, SHOWN_TO_LABEL as cu, SHOWN_TO_VALUES as cv, SHOWN_TO_WHO_MAY_CHANGE as cw, STAGE_RULE_ENFORCEMENT as cx, STAGE_RULE_ON_FAIL as cy, type ShownTo as cz, type ActionRunResult as d, isTheChosen as d$, type TableRowDefaults as d0, type TableRowDefaultsPatch as d1, type TableRowLabel as d2, type TableSyncAnswer as d3, type TableSyncResult as d4, type TableSyncSettings as d5, type TableSyncSource as d6, type TableSyncSourceDocument as d7, type TableSyncSpec as d8, type TableWebhook as d9, type WorkSlotHold as dA, type WorkState as dB, type WorkTemplateNode as dC, type WorkTemplateRelation as dD, type WorkTurn as dE, actionRefusals as dF, archivedByLine as dG, archivedWhen as dH, asChoiceNudge as dI, asWriteConflict as dJ, automationWebhookUrl as dK, choiceSlug as dL, choiceValuesOf as dM, choicesOf as dN, clearsRowLabel as dO, createRecordsClient as dP, decideTypedChoice as dQ, declareDrillDefinition as dR, drillAnswerOf as dS, drillFindingKnob as dT, emptyArchiveLine as dU, exportPageXlsx as dV, holdsARetiredChoice as dW, intersectIds as dX, isArchiveLane as dY, isFoundation as dZ, isShownTo as d_, type TableWebhookDeclared as da, type TypedChoiceDecision as db, type ViewLayout as dc, type ViewOrderSet as dd, type WorkApprovalDecision as de, type WorkApprovalFiled as df, type WorkApprovalState as dg, type WorkApprover as dh, type WorkAssignment as di, type WorkAssignmentField as dj, type WorkChange as dk, type WorkDecideMany as dl, type WorkDecideManyItem as dm, type WorkDecideManyResult as dn, type WorkDecideVerdict as dp, type WorkDueState as dq, type WorkGraph as dr, type WorkInboxItem as ds, type WorkInboxKind as dt, type WorkInboxView as du, type WorkInstantiation as dv, type WorkListFlavour as dw, type WorkListItem as dx, type WorkOrigin as dy, type WorkRecordState as dz, type AdminTable as e, keptGroups as e0, keptOutOfSight as e1, keptTableHref as e2, levelHasShownTo as e3, looksLikeAnId as e4, mayDrag as e5, moveConsequence as e6, moveInOrder as e7, offeredAsContext as e8, optionKey as e9, optionLabel as ea, parseFieldDrift as eb, parseTableCopiesInProgress as ec, parseTableDuplicateProgress as ed, parseTableDuplicated as ee, parseTableHome as ef, parseTableMoved as eg, planQuery as eh, previewRetype as ei, previewRuleChange as ej, recordChangeTrigger as ek, recordSourceKey as el, recordSourceTable as em, recordsUseSentence as en, rehomeSentence as eo, removedChoicesInUse as ep, ruleThatRefuses as eq, rulesWithTopStar as er, sameDocument as es, scopeChip as et, sheetSyncSpec as eu, valueConverts as ev, withRowCounts as ew, withTableFacts as ex, withTablePlacement as ey, type AnonTokenBinding as f, type ArchiveLane as g, type ArchivedChecklistTemplate as h, type ArchivedDoorRow as i, type ArchivedForm as j, type ArchivedRow as k, type AsOf as l, type AutomationAction as m, type AutomationComparison as n, type AutomationDeclared as o, type AutomationFilter as p, type AutomationFlipped as q, type AutomationItem as r, type AutomationLastRun as s, type AutomationList as t, type AutomationRevision as u, type AutomationRevisions as v, type AutomationRun as w, type AutomationRunStatus as x, type AutomationRuns as y, type AutomationSpec as z };
|