@ai-matrx/records 0.99.31 → 0.99.33
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 +21 -0
- package/dist/{client-Dthx26hr.d.ts → client-CSfkP7Xf.d.ts} +11 -80
- package/dist/{client-B7KEs9hi.d.cts → client-jKf1Z-kp.d.cts} +11 -80
- package/dist/core/index.cjs +149 -105
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +18 -359
- package/dist/core/index.d.ts +18 -359
- 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 +12 -11
- package/dist/data/index.d.ts +12 -11
- package/dist/data/index.js +280 -236
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-CvBu5dTJ.d.ts → declareTable-0emxEewn.d.ts} +3 -3
- package/dist/{declareTable-enQs2N0E.d.cts → declareTable-800bwUn3.d.cts} +3 -3
- 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-KbjyhBW-.d.cts → doors-BgjRUdxw.d.cts} +14 -2
- package/dist/{doors-C2-sFvAk.d.ts → doors-D7_jEKtg.d.ts} +14 -2
- package/dist/entity/index.d.cts +7 -7
- package/dist/entity/index.d.ts +7 -7
- package/dist/{field-ppX29ddi.d.cts → field-B8loYt-A.d.cts} +1 -1
- package/dist/{field-BHlhq24W.d.ts → field-DaE90BZ7.d.ts} +1 -1
- package/dist/forms/index.d.cts +3 -3
- package/dist/forms/index.d.ts +3 -3
- package/dist/index.d.cts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/memory/index.d.cts +7 -7
- package/dist/memory/index.d.ts +7 -7
- package/dist/{objectOrganization-Cu73SBxH.d.cts → objectOrganization-B5YFGVUB.d.cts} +2 -2
- package/dist/{objectOrganization-DtR3lWG2.d.ts → objectOrganization-DozoVIxS.d.ts} +2 -2
- package/dist/pickListDoors-C-_eAEGL.d.cts +135 -0
- package/dist/pickListDoors-DgWVnNRI.d.ts +135 -0
- package/dist/{port-Bk7TG0aE.d.ts → port-D6wepPvr.d.ts} +3 -3
- package/dist/{port-rqQEGhew.d.cts → port-O-UdH1HS.d.cts} +3 -3
- package/dist/{portal-DmxuUr2f.d.ts → portal-CAssJHRZ.d.ts} +1 -1
- package/dist/{portal-ffH13fsE.d.cts → portal-L_mN8l9P.d.cts} +1 -1
- package/dist/{ports-BCNNghmf.d.ts → ports-CmmvR8OI.d.ts} +2 -2
- package/dist/{ports-iATV-A2v.d.cts → ports-alv3bgKY.d.cts} +2 -2
- package/dist/questions/index.d.cts +10 -9
- package/dist/questions/index.d.ts +10 -9
- 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/realtime/index.d.cts +3 -3
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-C8q21jjB.d.cts → record-CTgSgWe3.d.cts} +1 -1
- package/dist/{record-C8q21jjB.d.ts → record-CTgSgWe3.d.ts} +1 -1
- package/dist/{relation-Bwp8iuei.d.cts → relation-BjjjXyqn.d.cts} +2 -2
- package/dist/{relation-Bsjwkn6N.d.ts → relation-T4biacnz.d.ts} +2 -2
- package/dist/results/index.cjs +245 -0
- package/dist/results/index.cjs.map +1 -0
- package/dist/results/index.d.cts +24 -0
- package/dist/results/index.d.ts +24 -0
- package/dist/results/index.js +222 -0
- package/dist/results/index.js.map +1 -0
- package/dist/{rule-BQwUtKk5.d.cts → rule-49jO7lN-.d.cts} +1 -1
- package/dist/{rule-cGqclk_0.d.ts → rule-DzNj0QvN.d.ts} +1 -1
- package/dist/scopes/index.cjs +7 -0
- package/dist/scopes/index.cjs.map +1 -1
- package/dist/scopes/index.d.cts +3 -3
- package/dist/scopes/index.d.ts +3 -3
- package/dist/scopes/index.js +7 -0
- package/dist/scopes/index.js.map +1 -1
- package/dist/search/index.d.cts +1 -1
- package/dist/search/index.d.ts +1 -1
- package/dist/setup/index.cjs +289 -245
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +13 -12
- package/dist/setup/index.d.ts +13 -12
- package/dist/setup/index.js +289 -245
- package/dist/setup/index.js.map +1 -1
- package/dist/{subscription-eNzL9scc.d.ts → subscription-Bp1RSb6p.d.ts} +2 -2
- package/dist/{subscription-Ba8RKtPA.d.cts → subscription-CuaGi3lC.d.cts} +2 -2
- package/dist/table-logic-BPquabNN.d.ts +328 -0
- package/dist/table-logic-CTh6lwaq.d.cts +328 -0
- package/dist/templates/index.d.cts +10 -10
- package/dist/templates/index.d.ts +10 -10
- package/dist/typed-table/index.cjs +280 -236
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +11 -10
- package/dist/typed-table/index.d.ts +11 -10
- package/dist/typed-table/index.js +280 -236
- package/dist/typed-table/index.js.map +1 -1
- package/dist/{types-C4XCuv8O.d.cts → types-B54BeQzf.d.cts} +2 -2
- package/dist/{types-BlzdL4Vd.d.cts → types-BWfL38XJ.d.cts} +2 -2
- package/dist/{types-BBR2NGqj.d.ts → types-BZcYXFK3.d.ts} +2 -2
- package/dist/{types-EKwXJfxY.d.cts → types-Bztv0-pH.d.cts} +2 -2
- package/dist/{types-CmkHpvll.d.ts → types-CjGuR5ks.d.ts} +2 -2
- package/dist/{types-CrkzINrb.d.ts → types-bN7dG2ji.d.ts} +2 -2
- package/dist/use-cases/index.d.cts +5 -5
- package/dist/use-cases/index.d.ts +5 -5
- package/dist/{validate-BKeBAVSi.d.cts → validate-8VBa2xIU.d.cts} +1 -1
- package/dist/{validate-BB6DWgCP.d.ts → validate-xBnply7J.d.ts} +1 -1
- package/dist/views/index.d.cts +10 -9
- package/dist/views/index.d.ts +10 -9
- package/package.json +24 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as Uuid, D as DeclarableFieldKind, o as FieldBehavior, p as ParityFieldType, c as FieldSensitivity, d as ContextPolicy, C as ComputeOn, O as OnDelete, F as FieldSource, h as Timestamp } from './record-
|
|
1
|
+
import { U as Uuid, D as DeclarableFieldKind, o as FieldBehavior, p as ParityFieldType, c as FieldSensitivity, d as ContextPolicy, C as ComputeOn, O as OnDelete, F as FieldSource, h as Timestamp } from './record-CTgSgWe3.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* EVERYTHING THIS FILE NEEDS TO KNOW ABOUT A FIELD, AND NOTHING ELSE.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as Uuid, D as DeclarableFieldKind, o as FieldBehavior, p as ParityFieldType, c as FieldSensitivity, d as ContextPolicy, C as ComputeOn, O as OnDelete, F as FieldSource, h as Timestamp } from './record-
|
|
1
|
+
import { U as Uuid, D as DeclarableFieldKind, o as FieldBehavior, p as ParityFieldType, c as FieldSensitivity, d as ContextPolicy, C as ComputeOn, O as OnDelete, F as FieldSource, h as Timestamp } from './record-CTgSgWe3.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* EVERYTHING THIS FILE NEEDS TO KNOW ABOUT A FIELD, AND NOTHING ELSE.
|
package/dist/forms/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PortalAccent } from '../portal-
|
|
2
|
-
import { F as FormSummary, R as RuleExpression } from '../rule-
|
|
3
|
-
import { U as Uuid } from '../record-
|
|
1
|
+
import { P as PortalAccent } from '../portal-L_mN8l9P.cjs';
|
|
2
|
+
import { F as FormSummary, R as RuleExpression } from '../rule-49jO7lN-.cjs';
|
|
3
|
+
import { U as Uuid } from '../record-CTgSgWe3.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* THE WORDS FOR EACH STATE, SAID ONCE, FOR EVERY SCREEN THAT SHOWS A FORM.
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PortalAccent } from '../portal-
|
|
2
|
-
import { F as FormSummary, R as RuleExpression } from '../rule-
|
|
3
|
-
import { U as Uuid } from '../record-
|
|
1
|
+
import { P as PortalAccent } from '../portal-CAssJHRZ.js';
|
|
2
|
+
import { F as FormSummary, R as RuleExpression } from '../rule-DzNj0QvN.js';
|
|
3
|
+
import { U as Uuid } from '../record-CTgSgWe3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* THE WORDS FOR EACH STATE, SAID ONCE, FOR EVERY SCREEN THAT SHOWS A FORM.
|
package/dist/index.d.cts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { U as Uuid, R as RecordsResult,
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS,
|
|
5
|
-
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, d as RecordsDataSource, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from './ports-
|
|
6
|
-
import { m as CoercibleField } from './field-
|
|
7
|
-
export { A as ADDRESS_PARTS, c as AGENT_WRITER_WORDS, d as AddressPart, e as AddressValue, B as BARCODE_SYMBOLOGIES, f as BUTTON_DOES, g as ButtonDoes, h as ButtonPressed, i as ButtonSettings, C as ChoiceOptions, j as CoerceOptions, k as Coerced, l as CoercedAnswers, n as FIELD_KINDS, F as Field, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from './field-
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export { a as
|
|
1
|
+
import { U as Uuid, R as RecordsResult, $ as MergeFieldSource, _ as MergeFieldSemanticType, Z as MergeFieldModifier, a2 as OverridePolicy, z as Delivery, h as Timestamp, M as Freshness, n as RecordDocument } from './record-CTgSgWe3.cjs';
|
|
2
|
+
export { s as ABSENCE_REASONS, t as ACTOR_VOCABULARY, u as AbsenceReason, A as Actor, v as COMPUTE_ON, w as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, x as DECLARABLE_FIELD_KINDS, y as DELIVERIES, D as DeclarableFieldKind, E as ENTITY_TOKENS, B as EntityToken, G as FIELD_SENSITIVITIES, I as FIELD_SOURCES, J as FORMULA_NODE_RESULTS, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, H as HiddenFieldNotice, N as KERNEL_TABLES, Q as KernelTableName, V as KeysetRow, W as MERGE_FIELD_MODIFIERS, X as MERGE_FIELD_SEMANTIC_TYPES, Y as MERGE_FIELD_SOURCES, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, P as PgError, q as PredictedRefusal, a6 as ProvenancePointer, a7 as RELATION_BINDINGS, a8 as RELATION_CARDINALITIES, a9 as RELATION_FLAVORS, aa as RETIRED_ACTOR_WORDS, ab as RULE_NODE_KINDS, ac as RULE_USES, l as ReadRow, r as ReadValue, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, a as RecordsError, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, ak as RetiredActorWord, i as RuleNodeKind, j as RuleUse, al as STORAGE_MODES, am as STORE_DOORS, an as STORE_KNOBS, ao as STORE_REFUSAL_CODES, ap as StaleWriteDetail, S as StorageMode, aq as StoreDoorName, ar as StoreRefusalCode, as as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, b as TableDisplay, aw as TableOrigin, T as TableType, ax as VALUE_ALTERNATE_KEYS, ay as VALUE_ENVELOPE_KEYS, az as ValueAlternate, aA as ValueAlternateKey, aB as ValueEnvelope, aC as ValueEnvelopeKey, aD as ValueSource, aE as WriteConflict, aF as err, aG as isLockedStub, aH as isRecordsErr, aI as ok, aJ as splitLockedRows, aK as unwrapRecords } from './record-CTgSgWe3.cjs';
|
|
3
|
+
import { cL as TableDuplicateProgress, cM as TableDuplicated, N as CaptureFileRef, O as CaptureOutcome, R as RecordsClient } from './client-jKf1Z-kp.cjs';
|
|
4
|
+
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, c as ActionRefusal, d as ActionRunResult, e as AdminTable, f as AnonTokenBinding, g as ArchiveLane, h as ArchivedChecklistTemplate, i as ArchivedDoorRow, j as ArchivedForm, k as ArchivedRow, m as AutomationAction, n as AutomationComparison, o as AutomationDeclared, p as AutomationFilter, q as AutomationFlipped, r as AutomationItem, s as AutomationLastRun, t as AutomationList, u as AutomationRevision, v as AutomationRevisions, w as AutomationRun, x as AutomationRunStatus, y as AutomationRuns, z as AutomationSpec, B as AutomationStep, C as AutomationTested, D as AutomationToken, E as AutomationTrigger, G as AutomationValue, H as AutomationValues, I as AutomationWeekday, J as AutomationWhen, K as BUILT_KIND_WORD, L as CHOICE_NUDGES, M as CaptureField, P as CaptureQuestion, Q as CaptureSheetFace, S as CaptureSheetSummary, U as ChecklistDeclared, V as ChecklistRequirement, W as ChecklistRequirementKind, X as ChecklistRoleSpec, Y as ChecklistRunStarted, Z as ChecklistRunStep, _ as ChecklistRunSummary, $ as ChecklistSpec, a0 as ChecklistStepCompleted, a1 as ChecklistStepSpec, a2 as ChecklistTemplateShape, a3 as ChecklistTemplateSummary, a4 as ChecklistTrigger, a5 as ChecklistTriggerKind, a6 as ChoiceCellBack, a7 as ChoiceLike, a8 as ChoiceNudge, a9 as ChoiceOption, aa as ChoiceRehome, ab as ChoiceUsage, ac as ChoicesRehomed, ad as CommentThreadRead, ae as CommentWritten, af as ConversationScope, ag as ConversationScopeContext, ah as CustomFieldTableType, ai as DEFAULT_ARCHIVE_LANE, ak as DRILL_CHART_TOKENS, al as DRILL_DESCRIPTION_MAX, am as DRILL_DOORS, an as DRILL_SCHEMA, ao as DataHomeTable, ap as DecorationColor, aq as DecorationPath, ar as DecorationRule, as as DecorationRuleOp, at as DecorationTarget, au as DocRenderRow, av as DocSignatureCheck, aw as DocSignatureRow, ax as DocTemplateRow, ay as DocToken, az as DocUnresolvedToken, aA as DrillAdHocOp, aB as DrillAnswer, aC as DrillAnswerRow, aD as DrillChartToken, aE as DrillDeclaration, aF as DrillDefinition, aG as DrillDimension, aH as DrillFinding, aI as DrillGrain, aJ as DrillHaving, aK as DrillLane, aL as DrillLevel, aM as DrillMeasure, aN as DrillMeasureOp, aO as DrillMeasureWhereValue, aP as DrillPath, aQ as DrillQuestion, aR as DrillRecords, aS as DrillRowsPage, aT as DrillSource, aU as DrillView, aV as EnrichAlternate, aW as EnrichCell, aX as EnrichDeclared, aY as EnrichDueRow, aZ as EnrichRun, a_ as EnrichSource, a$ as Enrichment, b0 as EnrichmentSummary, b1 as EntityBackLinkItem, b2 as EntityBackLinks, b3 as EntityFieldRights, b4 as EntityFieldValue, b5 as EntityFieldsAcross, b6 as EntityRecordMatch, b7 as EntityRecordRead, b8 as EntityRecordsFound, b9 as EntityRowWritten, ba as EntityTableFacts, bb as ExternalPrincipalCard, F as FieldDrift, bc as FieldDriftAspect, bd as FieldHistoryEntry, be as FieldRetyped, bf as FormArchiveAnswer, bg as FormulaParse, bh as FormulaPreview, bi as GridLayout, bj as GridLayoutMode, bk as GridRowHeight, bl as HistoryActor, bm as HistoryActorKind, bn as HistoryChange, bo as Home, bp as ImportBatchResult, bq as ImportColumnPlan, br as ImportColumnsDeclared, bs as ImportFinished, bt as ImportOpened, bu as ImportOutcome, bv as ImportPlan, bw as ImportPolicy, bx as ImportProposal, by as ImportReport, bz as ImportRun, bA as InboundAddress, bB as InboundDeclared, bC as InboxCounts, bD as InboxStateChange, bE as IoExportPage, bF as MigrationEntry, bG as MigrationUndone, bH as NewEntityFieldDeclaration, bI as OutsideShareAnswer, bJ as PIPELINE_RULE_KINDS, bK as ParentExtracted, bL as Pipeline, bM as PipelineColumn, bN as PipelineDeclared, bO as PipelineGate, bP as PipelineGatePreview, bQ as PipelineMissingField, bR as PipelineMoveMany, bS as PipelineMoveManyItem, bT as PipelineMoveManyResult, bU as PipelineMoveResult, bV as PipelineMoveVerdict, bW as PipelineRule, bX as PipelineRuleKind, bY as PipelineSpec, bZ as PipelineStage, b_ as PipelineVerdict, c0 as PublishBinding, c1 as PublishBindingKind, c3 as ROW_LABEL_FORMULA_MAX_LENGTH, c4 as ROW_WEB_NOT_READY, c5 as RecordChangeAction, c6 as RecordComment, c7 as RecordEvent, c8 as RecordHeader, c9 as RecordHistoryEntry, cb as RecordRowControls, cc as RecordScopeComment, cd as RecordScopeContext, ce as RecordScopeField, cf as RecordScopeHistoryEntry, cg as RecordScopeRelation, ch as RecordScopeWithheld, ci as RecordSplit, cj as RecordsMerged, ck as RegisteredTable, cl as ResolvedPublishBinding, cm as ResolvedPublishBindingKind, cn as RestorePreview, co as RestoreResult, cp as RetypeBehaviour, cq as RetypePreview, cr as RowAction, cs as RowActionStep, ct as RowDefaultsApplied, cu as SHOWN_TO_LABEL, cv as SHOWN_TO_VALUES, cw as SHOWN_TO_WHO_MAY_CHANGE, cx as STAGE_RULE_ENFORCEMENT, cy as STAGE_RULE_ON_FAIL, cz as ShownTo, cA as StagePending, cB as StagePendingOnBoard, cC as StageRuleEnforcement, cD as StageRuleOnFail, cE as StageRuleWarning, cF as SyncAutoRefresh, cG as Table, T as TableArchiveProgress, cH as TableCapacity, cI as TableCopyInProgress, cJ as TableCopySpec, cK as TableDecorations, cO as TableHome, cP as TableHomeDestination, cQ as TableLevel, cR as TableLevelApproval, cS as TableLevelFacts, cT as TableLevelSet, cU as TableListEntry, cW as TableMoved, cX as TablePlacement, cY as TablePlacementFact, cZ as TableReaderRule, c_ as TableRestoreProgress, c$ as TableRowCount, d0 as TableRowDefaults, d1 as TableRowDefaultsPatch, d2 as TableRowLabel, d3 as TableSyncAnswer, d4 as TableSyncResult, d5 as TableSyncSettings, d6 as TableSyncSource, d7 as TableSyncSourceDocument, d8 as TableSyncSpec, d9 as TableWebhook, da as TableWebhookDeclared, db as TypedChoiceDecision, dc as ViewLayout, dd as ViewOrderSet, de as WorkApprovalDecision, df as WorkApprovalFiled, dg as WorkApprovalState, dh as WorkApprover, di as WorkAssignment, dj as WorkAssignmentField, dk as WorkChange, dl as WorkDecideMany, dm as WorkDecideManyItem, dn as WorkDecideManyResult, dp as WorkDecideVerdict, dq as WorkDueState, dr as WorkGraph, ds as WorkInboxItem, dt as WorkInboxKind, du as WorkInboxView, dv as WorkInstantiation, dw as WorkListFlavour, dx as WorkListItem, dy as WorkOrigin, dz as WorkRecordState, dA as WorkSlotHold, dB as WorkState, dC as WorkTemplateNode, dD as WorkTemplateRelation, dE as WorkTurn, dF as actionRefusals, dG as archivedByLine, dH as archivedWhen, dI as asChoiceNudge, dK as automationWebhookUrl, dL as choiceSlug, dM as choiceValuesOf, dN as choicesOf, dO as clearsRowLabel, dQ as decideTypedChoice, dR as declareDrillDefinition, dS as drillAnswerOf, dT as drillFindingKnob, dU as emptyArchiveLine, dV as exportPageXlsx, dW as holdsARetiredChoice, dY as isArchiveLane, dZ as isFoundation, d_ as isShownTo, d$ as isTheChosen, e0 as keptGroups, e1 as keptOutOfSight, e2 as keptTableHref, e3 as levelHasShownTo, e4 as looksLikeAnId, e5 as mayDrag, e6 as moveConsequence, e7 as moveInOrder, e8 as offeredAsContext, e9 as optionKey, ea as optionLabel, eb as parseFieldDrift, ec as parseTableCopiesInProgress, ed as parseTableDuplicateProgress, ee as parseTableDuplicated, ef as parseTableHome, eg as parseTableMoved, ei as previewRetype, ej as previewRuleChange, ek as recordChangeTrigger, el as recordSourceKey, em as recordSourceTable, en as recordsUseSentence, eo as rehomeSentence, ep as removedChoicesInUse, eq as ruleThatRefuses, er as rulesWithTopStar, es as sameDocument, et as scopeChip, eu as sheetSyncSpec, ev as valueConverts, ew as withRowCounts, ey as withTablePlacement } from './client-jKf1Z-kp.cjs';
|
|
5
|
+
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, d as RecordsDataSource, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from './ports-alv3bgKY.cjs';
|
|
6
|
+
import { m as CoercibleField } from './field-B8loYt-A.cjs';
|
|
7
|
+
export { A as ADDRESS_PARTS, c as AGENT_WRITER_WORDS, d as AddressPart, e as AddressValue, B as BARCODE_SYMBOLOGIES, f as BUTTON_DOES, g as ButtonDoes, h as ButtonPressed, i as ButtonSettings, C as ChoiceOptions, j as CoerceOptions, k as Coerced, l as CoercedAnswers, n as FIELD_KINDS, F as Field, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from './field-B8loYt-A.cjs';
|
|
8
|
+
export { h as PickListDocument, j as PickListItem, k as PickListItemInput } from './pickListDoors-C-_eAEGL.cjs';
|
|
9
|
+
export { B as BookingAvailability, a as BookingDeclared, b as BookingSummary, c as BookingWindow, d as FormResults, e as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from './rule-49jO7lN-.cjs';
|
|
10
|
+
export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, a as PORTAL_ACCENTS, b as PORTAL_ARCHIVE_FILTERS, P as PortalAccent, c as PortalArchiveAnswer, d as PortalArchiveFilter, e as PortalCard, f as PortalConfig, g as PortalConfigInput, h as PortalFooterLink, i as PortalFormAnswer, j as PortalFormInput, k as PortalFormRef, l as PortalFormSpec, m as PortalInvitation, n as PortalPreviewRow, o as PortalPrincipal, p as PortalRevocation, q as PortalStage, r as PortalStyle, s as PortalStyleInput, t as PortalSummary, u as PortalTableExposure, v as PortalTableRef, w as PublicPicture, x as emptyPortalArchiveLine, y as isPortalAccent, z as isPortalArchiveFilter, A as portalArchiveConsequence, B as portalConfirmLine, C as portalPath, E as portalTitleTypedBack } from './portal-L_mN8l9P.cjs';
|
|
11
|
+
export { A as AggregateBucket, e as AggregateCompare, f as AggregateCompareKind, g as AggregateCompareWindows, h as AggregateDelta, b as AggregateFilter, i as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, k as AggregateWindow, l as DashboardBlock, D as DashboardBlockKind, m as DashboardBlockResult, n as DashboardRunResult, o as DashboardSummary, p as DashboardTarget, q as DashboardTargetBase, r as DashboardTargetOp, s as DashboardTargetResult, t as DashboardTotals, u as DigestPreview, I as InterfaceRead, v as InterfaceRows, w as InterfaceRowsField, M as MySubscription, Q as QuietHours, R as RecordFilter, x as RowTemplateRow, y as SavedViewColorBy, z as SavedViewDefinition, B as SavedViewLayout, d as SavedViewRow, C as SavedViewSpecIn, E as StoreFilter, F as StuckRow, G as Subscription, H as SubscriptionBlock, S as SubscriptionCadence, J as SubscriptionSpec, K as callersTimeZone, L as hasQuietHours, N as isRuleFilter, O as liftWithheld, P as measureKey, T as stableFilterKey, U as withCallersClock } from './subscription-CuaGi3lC.cjs';
|
|
12
|
+
export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as REVERSE_LINKS_PAGE_MAX, c as REVERSE_LINKS_RECORDS_PER_CALL, d as Relation, e as RelationCarries, f as RelationCoordinate, g as RelationIcons, h as RelationProperties, i as RelationTarget, j as RelationWordsManyArgs, k as ReverseColumn, l as ReverseLink, m as ReverseLinks, n as ReverseLinksFieldsArgs, o as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from './relation-BjjjXyqn.cjs';
|
|
13
|
+
export { O as ObjectKind, a as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from './objectOrganization-B5YFGVUB.cjs';
|
|
13
14
|
export { TABLE_KIND_PREFIX, TableKindFacts, TableRenderSchema, TableSchemaMode, fieldKindOf, isTableKind, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema } from './table-kind/index.cjs';
|
|
14
|
-
import './doors-
|
|
15
|
+
import './doors-BgjRUdxw.cjs';
|
|
15
16
|
|
|
16
17
|
type WithFormat = CoercibleField & {
|
|
17
18
|
display_format?: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { U as Uuid, R as RecordsResult,
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS,
|
|
5
|
-
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, d as RecordsDataSource, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from './ports-
|
|
6
|
-
import { m as CoercibleField } from './field-
|
|
7
|
-
export { A as ADDRESS_PARTS, c as AGENT_WRITER_WORDS, d as AddressPart, e as AddressValue, B as BARCODE_SYMBOLOGIES, f as BUTTON_DOES, g as ButtonDoes, h as ButtonPressed, i as ButtonSettings, C as ChoiceOptions, j as CoerceOptions, k as Coerced, l as CoercedAnswers, n as FIELD_KINDS, F as Field, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from './field-
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export { a as
|
|
1
|
+
import { U as Uuid, R as RecordsResult, $ as MergeFieldSource, _ as MergeFieldSemanticType, Z as MergeFieldModifier, a2 as OverridePolicy, z as Delivery, h as Timestamp, M as Freshness, n as RecordDocument } from './record-CTgSgWe3.js';
|
|
2
|
+
export { s as ABSENCE_REASONS, t as ACTOR_VOCABULARY, u as AbsenceReason, A as Actor, v as COMPUTE_ON, w as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, x as DECLARABLE_FIELD_KINDS, y as DELIVERIES, D as DeclarableFieldKind, E as ENTITY_TOKENS, B as EntityToken, G as FIELD_SENSITIVITIES, I as FIELD_SOURCES, J as FORMULA_NODE_RESULTS, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, H as HiddenFieldNotice, N as KERNEL_TABLES, Q as KernelTableName, V as KeysetRow, W as MERGE_FIELD_MODIFIERS, X as MERGE_FIELD_SEMANTIC_TYPES, Y as MERGE_FIELD_SOURCES, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, P as PgError, q as PredictedRefusal, a6 as ProvenancePointer, a7 as RELATION_BINDINGS, a8 as RELATION_CARDINALITIES, a9 as RELATION_FLAVORS, aa as RETIRED_ACTOR_WORDS, ab as RULE_NODE_KINDS, ac as RULE_USES, l as ReadRow, r as ReadValue, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, a as RecordsError, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, ak as RetiredActorWord, i as RuleNodeKind, j as RuleUse, al as STORAGE_MODES, am as STORE_DOORS, an as STORE_KNOBS, ao as STORE_REFUSAL_CODES, ap as StaleWriteDetail, S as StorageMode, aq as StoreDoorName, ar as StoreRefusalCode, as as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, b as TableDisplay, aw as TableOrigin, T as TableType, ax as VALUE_ALTERNATE_KEYS, ay as VALUE_ENVELOPE_KEYS, az as ValueAlternate, aA as ValueAlternateKey, aB as ValueEnvelope, aC as ValueEnvelopeKey, aD as ValueSource, aE as WriteConflict, aF as err, aG as isLockedStub, aH as isRecordsErr, aI as ok, aJ as splitLockedRows, aK as unwrapRecords } from './record-CTgSgWe3.js';
|
|
3
|
+
import { cL as TableDuplicateProgress, cM as TableDuplicated, N as CaptureFileRef, O as CaptureOutcome, R as RecordsClient } from './client-CSfkP7Xf.js';
|
|
4
|
+
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, c as ActionRefusal, d as ActionRunResult, e as AdminTable, f as AnonTokenBinding, g as ArchiveLane, h as ArchivedChecklistTemplate, i as ArchivedDoorRow, j as ArchivedForm, k as ArchivedRow, m as AutomationAction, n as AutomationComparison, o as AutomationDeclared, p as AutomationFilter, q as AutomationFlipped, r as AutomationItem, s as AutomationLastRun, t as AutomationList, u as AutomationRevision, v as AutomationRevisions, w as AutomationRun, x as AutomationRunStatus, y as AutomationRuns, z as AutomationSpec, B as AutomationStep, C as AutomationTested, D as AutomationToken, E as AutomationTrigger, G as AutomationValue, H as AutomationValues, I as AutomationWeekday, J as AutomationWhen, K as BUILT_KIND_WORD, L as CHOICE_NUDGES, M as CaptureField, P as CaptureQuestion, Q as CaptureSheetFace, S as CaptureSheetSummary, U as ChecklistDeclared, V as ChecklistRequirement, W as ChecklistRequirementKind, X as ChecklistRoleSpec, Y as ChecklistRunStarted, Z as ChecklistRunStep, _ as ChecklistRunSummary, $ as ChecklistSpec, a0 as ChecklistStepCompleted, a1 as ChecklistStepSpec, a2 as ChecklistTemplateShape, a3 as ChecklistTemplateSummary, a4 as ChecklistTrigger, a5 as ChecklistTriggerKind, a6 as ChoiceCellBack, a7 as ChoiceLike, a8 as ChoiceNudge, a9 as ChoiceOption, aa as ChoiceRehome, ab as ChoiceUsage, ac as ChoicesRehomed, ad as CommentThreadRead, ae as CommentWritten, af as ConversationScope, ag as ConversationScopeContext, ah as CustomFieldTableType, ai as DEFAULT_ARCHIVE_LANE, ak as DRILL_CHART_TOKENS, al as DRILL_DESCRIPTION_MAX, am as DRILL_DOORS, an as DRILL_SCHEMA, ao as DataHomeTable, ap as DecorationColor, aq as DecorationPath, ar as DecorationRule, as as DecorationRuleOp, at as DecorationTarget, au as DocRenderRow, av as DocSignatureCheck, aw as DocSignatureRow, ax as DocTemplateRow, ay as DocToken, az as DocUnresolvedToken, aA as DrillAdHocOp, aB as DrillAnswer, aC as DrillAnswerRow, aD as DrillChartToken, aE as DrillDeclaration, aF as DrillDefinition, aG as DrillDimension, aH as DrillFinding, aI as DrillGrain, aJ as DrillHaving, aK as DrillLane, aL as DrillLevel, aM as DrillMeasure, aN as DrillMeasureOp, aO as DrillMeasureWhereValue, aP as DrillPath, aQ as DrillQuestion, aR as DrillRecords, aS as DrillRowsPage, aT as DrillSource, aU as DrillView, aV as EnrichAlternate, aW as EnrichCell, aX as EnrichDeclared, aY as EnrichDueRow, aZ as EnrichRun, a_ as EnrichSource, a$ as Enrichment, b0 as EnrichmentSummary, b1 as EntityBackLinkItem, b2 as EntityBackLinks, b3 as EntityFieldRights, b4 as EntityFieldValue, b5 as EntityFieldsAcross, b6 as EntityRecordMatch, b7 as EntityRecordRead, b8 as EntityRecordsFound, b9 as EntityRowWritten, ba as EntityTableFacts, bb as ExternalPrincipalCard, F as FieldDrift, bc as FieldDriftAspect, bd as FieldHistoryEntry, be as FieldRetyped, bf as FormArchiveAnswer, bg as FormulaParse, bh as FormulaPreview, bi as GridLayout, bj as GridLayoutMode, bk as GridRowHeight, bl as HistoryActor, bm as HistoryActorKind, bn as HistoryChange, bo as Home, bp as ImportBatchResult, bq as ImportColumnPlan, br as ImportColumnsDeclared, bs as ImportFinished, bt as ImportOpened, bu as ImportOutcome, bv as ImportPlan, bw as ImportPolicy, bx as ImportProposal, by as ImportReport, bz as ImportRun, bA as InboundAddress, bB as InboundDeclared, bC as InboxCounts, bD as InboxStateChange, bE as IoExportPage, bF as MigrationEntry, bG as MigrationUndone, bH as NewEntityFieldDeclaration, bI as OutsideShareAnswer, bJ as PIPELINE_RULE_KINDS, bK as ParentExtracted, bL as Pipeline, bM as PipelineColumn, bN as PipelineDeclared, bO as PipelineGate, bP as PipelineGatePreview, bQ as PipelineMissingField, bR as PipelineMoveMany, bS as PipelineMoveManyItem, bT as PipelineMoveManyResult, bU as PipelineMoveResult, bV as PipelineMoveVerdict, bW as PipelineRule, bX as PipelineRuleKind, bY as PipelineSpec, bZ as PipelineStage, b_ as PipelineVerdict, c0 as PublishBinding, c1 as PublishBindingKind, c3 as ROW_LABEL_FORMULA_MAX_LENGTH, c4 as ROW_WEB_NOT_READY, c5 as RecordChangeAction, c6 as RecordComment, c7 as RecordEvent, c8 as RecordHeader, c9 as RecordHistoryEntry, cb as RecordRowControls, cc as RecordScopeComment, cd as RecordScopeContext, ce as RecordScopeField, cf as RecordScopeHistoryEntry, cg as RecordScopeRelation, ch as RecordScopeWithheld, ci as RecordSplit, cj as RecordsMerged, ck as RegisteredTable, cl as ResolvedPublishBinding, cm as ResolvedPublishBindingKind, cn as RestorePreview, co as RestoreResult, cp as RetypeBehaviour, cq as RetypePreview, cr as RowAction, cs as RowActionStep, ct as RowDefaultsApplied, cu as SHOWN_TO_LABEL, cv as SHOWN_TO_VALUES, cw as SHOWN_TO_WHO_MAY_CHANGE, cx as STAGE_RULE_ENFORCEMENT, cy as STAGE_RULE_ON_FAIL, cz as ShownTo, cA as StagePending, cB as StagePendingOnBoard, cC as StageRuleEnforcement, cD as StageRuleOnFail, cE as StageRuleWarning, cF as SyncAutoRefresh, cG as Table, T as TableArchiveProgress, cH as TableCapacity, cI as TableCopyInProgress, cJ as TableCopySpec, cK as TableDecorations, cO as TableHome, cP as TableHomeDestination, cQ as TableLevel, cR as TableLevelApproval, cS as TableLevelFacts, cT as TableLevelSet, cU as TableListEntry, cW as TableMoved, cX as TablePlacement, cY as TablePlacementFact, cZ as TableReaderRule, c_ as TableRestoreProgress, c$ as TableRowCount, d0 as TableRowDefaults, d1 as TableRowDefaultsPatch, d2 as TableRowLabel, d3 as TableSyncAnswer, d4 as TableSyncResult, d5 as TableSyncSettings, d6 as TableSyncSource, d7 as TableSyncSourceDocument, d8 as TableSyncSpec, d9 as TableWebhook, da as TableWebhookDeclared, db as TypedChoiceDecision, dc as ViewLayout, dd as ViewOrderSet, de as WorkApprovalDecision, df as WorkApprovalFiled, dg as WorkApprovalState, dh as WorkApprover, di as WorkAssignment, dj as WorkAssignmentField, dk as WorkChange, dl as WorkDecideMany, dm as WorkDecideManyItem, dn as WorkDecideManyResult, dp as WorkDecideVerdict, dq as WorkDueState, dr as WorkGraph, ds as WorkInboxItem, dt as WorkInboxKind, du as WorkInboxView, dv as WorkInstantiation, dw as WorkListFlavour, dx as WorkListItem, dy as WorkOrigin, dz as WorkRecordState, dA as WorkSlotHold, dB as WorkState, dC as WorkTemplateNode, dD as WorkTemplateRelation, dE as WorkTurn, dF as actionRefusals, dG as archivedByLine, dH as archivedWhen, dI as asChoiceNudge, dK as automationWebhookUrl, dL as choiceSlug, dM as choiceValuesOf, dN as choicesOf, dO as clearsRowLabel, dQ as decideTypedChoice, dR as declareDrillDefinition, dS as drillAnswerOf, dT as drillFindingKnob, dU as emptyArchiveLine, dV as exportPageXlsx, dW as holdsARetiredChoice, dY as isArchiveLane, dZ as isFoundation, d_ as isShownTo, d$ as isTheChosen, e0 as keptGroups, e1 as keptOutOfSight, e2 as keptTableHref, e3 as levelHasShownTo, e4 as looksLikeAnId, e5 as mayDrag, e6 as moveConsequence, e7 as moveInOrder, e8 as offeredAsContext, e9 as optionKey, ea as optionLabel, eb as parseFieldDrift, ec as parseTableCopiesInProgress, ed as parseTableDuplicateProgress, ee as parseTableDuplicated, ef as parseTableHome, eg as parseTableMoved, ei as previewRetype, ej as previewRuleChange, ek as recordChangeTrigger, el as recordSourceKey, em as recordSourceTable, en as recordsUseSentence, eo as rehomeSentence, ep as removedChoicesInUse, eq as ruleThatRefuses, er as rulesWithTopStar, es as sameDocument, et as scopeChip, eu as sheetSyncSpec, ev as valueConverts, ew as withRowCounts, ey as withTablePlacement } from './client-CSfkP7Xf.js';
|
|
5
|
+
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, d as RecordsDataSource, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from './ports-CmmvR8OI.js';
|
|
6
|
+
import { m as CoercibleField } from './field-DaE90BZ7.js';
|
|
7
|
+
export { A as ADDRESS_PARTS, c as AGENT_WRITER_WORDS, d as AddressPart, e as AddressValue, B as BARCODE_SYMBOLOGIES, f as BUTTON_DOES, g as ButtonDoes, h as ButtonPressed, i as ButtonSettings, C as ChoiceOptions, j as CoerceOptions, k as Coerced, l as CoercedAnswers, n as FIELD_KINDS, F as Field, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from './field-DaE90BZ7.js';
|
|
8
|
+
export { h as PickListDocument, j as PickListItem, k as PickListItemInput } from './pickListDoors-DgWVnNRI.js';
|
|
9
|
+
export { B as BookingAvailability, a as BookingDeclared, b as BookingSummary, c as BookingWindow, d as FormResults, e as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from './rule-DzNj0QvN.js';
|
|
10
|
+
export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, a as PORTAL_ACCENTS, b as PORTAL_ARCHIVE_FILTERS, P as PortalAccent, c as PortalArchiveAnswer, d as PortalArchiveFilter, e as PortalCard, f as PortalConfig, g as PortalConfigInput, h as PortalFooterLink, i as PortalFormAnswer, j as PortalFormInput, k as PortalFormRef, l as PortalFormSpec, m as PortalInvitation, n as PortalPreviewRow, o as PortalPrincipal, p as PortalRevocation, q as PortalStage, r as PortalStyle, s as PortalStyleInput, t as PortalSummary, u as PortalTableExposure, v as PortalTableRef, w as PublicPicture, x as emptyPortalArchiveLine, y as isPortalAccent, z as isPortalArchiveFilter, A as portalArchiveConsequence, B as portalConfirmLine, C as portalPath, E as portalTitleTypedBack } from './portal-CAssJHRZ.js';
|
|
11
|
+
export { A as AggregateBucket, e as AggregateCompare, f as AggregateCompareKind, g as AggregateCompareWindows, h as AggregateDelta, b as AggregateFilter, i as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, k as AggregateWindow, l as DashboardBlock, D as DashboardBlockKind, m as DashboardBlockResult, n as DashboardRunResult, o as DashboardSummary, p as DashboardTarget, q as DashboardTargetBase, r as DashboardTargetOp, s as DashboardTargetResult, t as DashboardTotals, u as DigestPreview, I as InterfaceRead, v as InterfaceRows, w as InterfaceRowsField, M as MySubscription, Q as QuietHours, R as RecordFilter, x as RowTemplateRow, y as SavedViewColorBy, z as SavedViewDefinition, B as SavedViewLayout, d as SavedViewRow, C as SavedViewSpecIn, E as StoreFilter, F as StuckRow, G as Subscription, H as SubscriptionBlock, S as SubscriptionCadence, J as SubscriptionSpec, K as callersTimeZone, L as hasQuietHours, N as isRuleFilter, O as liftWithheld, P as measureKey, T as stableFilterKey, U as withCallersClock } from './subscription-Bp1RSb6p.js';
|
|
12
|
+
export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as REVERSE_LINKS_PAGE_MAX, c as REVERSE_LINKS_RECORDS_PER_CALL, d as Relation, e as RelationCarries, f as RelationCoordinate, g as RelationIcons, h as RelationProperties, i as RelationTarget, j as RelationWordsManyArgs, k as ReverseColumn, l as ReverseLink, m as ReverseLinks, n as ReverseLinksFieldsArgs, o as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from './relation-T4biacnz.js';
|
|
13
|
+
export { O as ObjectKind, a as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from './objectOrganization-DozoVIxS.js';
|
|
13
14
|
export { TABLE_KIND_PREFIX, TableKindFacts, TableRenderSchema, TableSchemaMode, fieldKindOf, isTableKind, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema } from './table-kind/index.js';
|
|
14
|
-
import './doors-
|
|
15
|
+
import './doors-D7_jEKtg.js';
|
|
15
16
|
|
|
16
17
|
type WithFormat = CoercibleField & {
|
|
17
18
|
display_format?: unknown;
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as RecordsDataSource, a as RecordsConfig } from '../ports-
|
|
2
|
-
import { T as TemplateSpec } from '../types-
|
|
3
|
-
import { P as PgError } from '../record-
|
|
4
|
-
import '../field-
|
|
5
|
-
import '../subscription-
|
|
6
|
-
import '../rule-
|
|
7
|
-
import '../types-
|
|
1
|
+
import { d as RecordsDataSource, a as RecordsConfig } from '../ports-alv3bgKY.cjs';
|
|
2
|
+
import { T as TemplateSpec } from '../types-BWfL38XJ.cjs';
|
|
3
|
+
import { P as PgError } from '../record-CTgSgWe3.cjs';
|
|
4
|
+
import '../field-B8loYt-A.cjs';
|
|
5
|
+
import '../subscription-CuaGi3lC.cjs';
|
|
6
|
+
import '../rule-49jO7lN-.cjs';
|
|
7
|
+
import '../types-Bztv0-pH.cjs';
|
|
8
8
|
|
|
9
9
|
type Json$1 = Record<string, unknown>;
|
|
10
10
|
/** One presented column, exactly as `platform.drill_describe(...).api.columns[]` says it. */
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as RecordsDataSource, a as RecordsConfig } from '../ports-
|
|
2
|
-
import { T as TemplateSpec } from '../types-
|
|
3
|
-
import { P as PgError } from '../record-
|
|
4
|
-
import '../field-
|
|
5
|
-
import '../subscription-
|
|
6
|
-
import '../rule-
|
|
7
|
-
import '../types-
|
|
1
|
+
import { d as RecordsDataSource, a as RecordsConfig } from '../ports-CmmvR8OI.js';
|
|
2
|
+
import { T as TemplateSpec } from '../types-BZcYXFK3.js';
|
|
3
|
+
import { P as PgError } from '../record-CTgSgWe3.js';
|
|
4
|
+
import '../field-DaE90BZ7.js';
|
|
5
|
+
import '../subscription-Bp1RSb6p.js';
|
|
6
|
+
import '../rule-DzNj0QvN.js';
|
|
7
|
+
import '../types-CjGuR5ks.js';
|
|
8
8
|
|
|
9
9
|
type Json$1 = Record<string, unknown>;
|
|
10
10
|
/** One presented column, exactly as `platform.drill_describe(...).api.columns[]` says it. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as RecordsDataSource } from './ports-
|
|
1
|
+
import { d as RecordsDataSource } from './ports-alv3bgKY.cjs';
|
|
2
2
|
|
|
3
3
|
/** What kind of object the id is, as `custom.where_id_opens` names it — carried as the door's own word. */
|
|
4
4
|
type ObjectKind = string;
|
|
@@ -42,4 +42,4 @@ declare function readObjectOrganizationAnswer(answered: {
|
|
|
42
42
|
/** The default port: one `custom.where_id_opens` call per ask, nothing kept. */
|
|
43
43
|
declare function whereIdOpensPort(dataSource: Pick<RecordsDataSource, "rpc">): RecordOrganizationPort;
|
|
44
44
|
|
|
45
|
-
export { type
|
|
45
|
+
export { type ObjectKind as O, type RecordOrganizationPort as R, WHERE_ID_OPENS_DOOR as W, type ObjectOrganizationAnswer as a, resolveObjectOrganization as b, readObjectOrganizationAnswer as r, whereIdOpensPort as w };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as RecordsDataSource } from './ports-
|
|
1
|
+
import { d as RecordsDataSource } from './ports-CmmvR8OI.js';
|
|
2
2
|
|
|
3
3
|
/** What kind of object the id is, as `custom.where_id_opens` names it — carried as the door's own word. */
|
|
4
4
|
type ObjectKind = string;
|
|
@@ -42,4 +42,4 @@ declare function readObjectOrganizationAnswer(answered: {
|
|
|
42
42
|
/** The default port: one `custom.where_id_opens` call per ask, nothing kept. */
|
|
43
43
|
declare function whereIdOpensPort(dataSource: Pick<RecordsDataSource, "rpc">): RecordOrganizationPort;
|
|
44
44
|
|
|
45
|
-
export { type
|
|
45
|
+
export { type ObjectKind as O, type RecordOrganizationPort as R, WHERE_ID_OPENS_DOOR as W, type ObjectOrganizationAnswer as a, resolveObjectOrganization as b, readObjectOrganizationAnswer as r, whereIdOpensPort as w };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { m as RecordsErrorCode, R as RecordsResult, a as RecordsError, U as Uuid } from './record-CTgSgWe3.cjs';
|
|
2
|
+
import { d as RecordsDataSource, c as RecordsErrorSink } from './ports-alv3bgKY.cjs';
|
|
3
|
+
|
|
4
|
+
/** One choice as the detail / selection documents hand it back. */
|
|
5
|
+
interface PickListItem {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
/** Never present on the selection read: that read is the one a non-owner may see. */
|
|
9
|
+
description?: string | null;
|
|
10
|
+
help_text?: string | null;
|
|
11
|
+
group_name?: string | null;
|
|
12
|
+
icon_name?: string | null;
|
|
13
|
+
}
|
|
14
|
+
/** A pick list as `pick_list_get` / `pick_list_for_selection` / `pick_list_update` answer it. */
|
|
15
|
+
interface PickListDocument {
|
|
16
|
+
id?: string;
|
|
17
|
+
list_id?: string;
|
|
18
|
+
list_name?: string;
|
|
19
|
+
description?: string | null;
|
|
20
|
+
organization_id?: string | null;
|
|
21
|
+
/** The choices in order (the update door answers this flat shape). */
|
|
22
|
+
items?: PickListItem[];
|
|
23
|
+
/** The choices by group (the read doors answer this shape). */
|
|
24
|
+
items_grouped?: Record<string, PickListItem[]>;
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
}
|
|
27
|
+
/** One choice to write when a list's choices are replaced. Either casing of each key is read by the door. */
|
|
28
|
+
interface PickListItemInput {
|
|
29
|
+
label: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
help_text?: string;
|
|
32
|
+
group_name?: string;
|
|
33
|
+
icon?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** The schema every door of the record store lives in, unless the host's config says otherwise. */
|
|
37
|
+
declare const DEFAULT_DOOR_SCHEMA = "custom";
|
|
38
|
+
/** An argument object as one stable string: keys sorted at every depth (PAGE-BUNDLE's match key). */
|
|
39
|
+
declare function canonicalArgs(value: unknown): string;
|
|
40
|
+
/**
|
|
41
|
+
* 🚨 A REFUSAL IS NOT AN APP ERROR (lane RECORDS-UI-FIX, guide re-walk 2026-09-23).
|
|
42
|
+
*
|
|
43
|
+
* A person typing `-3` into a column that takes "at least 0" is the store WORKING: the
|
|
44
|
+
* rule said no, the screen said so in the one notice, and the person fixed it. The default
|
|
45
|
+
* sink printed every one of those through `console.error`, and the app's error capture
|
|
46
|
+
* (matrx-frontend `lib/diagnostics/globalErrorCapture.ts`) counts every `console.error` —
|
|
47
|
+
* so one refused value lit a red "2 errors" pill in the corner, telling an admin the
|
|
48
|
+
* product had failed when a person had simply been told no.
|
|
49
|
+
*
|
|
50
|
+
* These are the codes a PERSON causes by what they typed or when they typed it; each one
|
|
51
|
+
* is already drawn on the screen that asked. They are still said (`console.info`), never
|
|
52
|
+
* silenced. Everything else — a door, the store switched off, a timeout, a class this
|
|
53
|
+
* package did not recognise — is a failure of the system and stays `console.error`.
|
|
54
|
+
*/
|
|
55
|
+
declare const A_PERSONS_REFUSAL: ReadonlySet<RecordsErrorCode>;
|
|
56
|
+
declare function isAPersonsRefusal(code: RecordsErrorCode | string): boolean;
|
|
57
|
+
/** The host's error sink, or the default one: the store's own words, naming where it happened. */
|
|
58
|
+
declare function recordsErrorSink(onError: RecordsErrorSink | undefined): RecordsErrorSink;
|
|
59
|
+
/** The refusal a missing door gets. It always says who owes it (`owedBy`, when a lane claims it). */
|
|
60
|
+
declare function doorAbsentRefusal(name: string, owedBy?: string): RecordsError;
|
|
61
|
+
/**
|
|
62
|
+
* What the server render already asked as this person, for this exact door and arguments — or null.
|
|
63
|
+
* A write (or a look write) empties what is primed instead, and is never answered from it.
|
|
64
|
+
*/
|
|
65
|
+
declare function primedDoorAnswer(door: string, args: Record<string, unknown>): {
|
|
66
|
+
data: unknown;
|
|
67
|
+
} | null;
|
|
68
|
+
/** One door call: the door's name, its arguments, and where the caller is (for the refusal). */
|
|
69
|
+
type DoorCall = <T>(door: string, args: Record<string, unknown>, where: string,
|
|
70
|
+
/**
|
|
71
|
+
* `quiet`: this refusal is an ANSWER the caller already draws (a door that says "not yours" to a
|
|
72
|
+
* person who only has table-level access), not a failure of the system. It is returned to the
|
|
73
|
+
* caller and said once with `console.info` - never through the error sink, which lights the
|
|
74
|
+
* error badge. Everything else about the call is unchanged.
|
|
75
|
+
*/
|
|
76
|
+
opts?: {
|
|
77
|
+
quiet?: boolean;
|
|
78
|
+
}) => Promise<RecordsResult<T>>;
|
|
79
|
+
interface DoorCallOptions {
|
|
80
|
+
/** The store's data seam (`asRecordsDataSource(supabase)`). */
|
|
81
|
+
dataSource: RecordsDataSource;
|
|
82
|
+
/** Defaults to `custom`. */
|
|
83
|
+
schema?: string;
|
|
84
|
+
/** The host's error sink (defaults to `recordsErrorSink(undefined)`). */
|
|
85
|
+
onError?: RecordsErrorSink;
|
|
86
|
+
/**
|
|
87
|
+
* MAY THIS DOOR BE ASKED AT ALL (the full client's generated catalogue). False refuses with
|
|
88
|
+
* `absent(door)` and asks nobody. Absent ⇒ every door is asked, and a store that answers "no such
|
|
89
|
+
* function" (PostgREST's PGRST202 or Postgres's 42883) is refused `door_absent` all the same.
|
|
90
|
+
*/
|
|
91
|
+
doorReady?: (door: string) => boolean;
|
|
92
|
+
/** The refusal a missing door gets (defaults to `doorAbsentRefusal(door)`). */
|
|
93
|
+
absent?: (door: string) => RecordsError;
|
|
94
|
+
/** An answer this page already holds for the exact call (the full client's page bundle), else null. */
|
|
95
|
+
held?: (door: string, args: Record<string, unknown>) => Promise<{
|
|
96
|
+
data: unknown;
|
|
97
|
+
} | null | undefined>;
|
|
98
|
+
/** A write landed: drop what this page still holds of it (the full client's page bundle). */
|
|
99
|
+
wrote?: (door: string, args: Record<string, unknown>) => void;
|
|
100
|
+
}
|
|
101
|
+
/** Build the one door call over a data source. Every records client, light or full, asks through this. */
|
|
102
|
+
declare function createDoorCall(options: DoorCallOptions): DoorCall;
|
|
103
|
+
|
|
104
|
+
interface PickListDoors {
|
|
105
|
+
/**
|
|
106
|
+
* PICK-LISTS: a pick list with its choices, grouped (`custom.pick_list_get`; viewer access on the list).
|
|
107
|
+
* The list is read by its own id; its organization is the list's own, never the client's.
|
|
108
|
+
*/
|
|
109
|
+
pickListGet(args: {
|
|
110
|
+
list_id: Uuid;
|
|
111
|
+
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
112
|
+
/** PICK-LISTS: a pick list for a selection control (`custom.pick_list_for_selection`): labels, help, groups, icons, NEVER the secret description. */
|
|
113
|
+
pickListForSelection(args: {
|
|
114
|
+
list_id: Uuid;
|
|
115
|
+
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
116
|
+
/**
|
|
117
|
+
* PICK-LISTS: rename / describe a pick list and, with `items`, REPLACE its choices
|
|
118
|
+
* (`custom.pick_list_update`; editor access). The replaced choices are archived, soft and restorable.
|
|
119
|
+
*/
|
|
120
|
+
pickListUpdate(args: {
|
|
121
|
+
list_id: Uuid;
|
|
122
|
+
list_name?: string | null;
|
|
123
|
+
description?: string | null;
|
|
124
|
+
items?: readonly PickListItemInput[] | null;
|
|
125
|
+
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
126
|
+
}
|
|
127
|
+
/** The door names (guard: each is in the generated catalogue — `door-call-entry.test.ts`). */
|
|
128
|
+
declare const PICK_LIST_DOORS: {
|
|
129
|
+
readonly pickListGet: "pick_list_get";
|
|
130
|
+
readonly pickListForSelection: "pick_list_for_selection";
|
|
131
|
+
readonly pickListUpdate: "pick_list_update";
|
|
132
|
+
};
|
|
133
|
+
declare function createPickListDoors(callDoor: DoorCall): PickListDoors;
|
|
134
|
+
|
|
135
|
+
export { A_PERSONS_REFUSAL as A, type DoorCallOptions as D, type PickListDoors as P, type DoorCall as a, DEFAULT_DOOR_SCHEMA as b, PICK_LIST_DOORS as c, canonicalArgs as d, createDoorCall as e, createPickListDoors as f, doorAbsentRefusal as g, type PickListDocument as h, isAPersonsRefusal as i, type PickListItem as j, type PickListItemInput as k, primedDoorAnswer as p, recordsErrorSink as r };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { m as RecordsErrorCode, R as RecordsResult, a as RecordsError, U as Uuid } from './record-CTgSgWe3.js';
|
|
2
|
+
import { d as RecordsDataSource, c as RecordsErrorSink } from './ports-CmmvR8OI.js';
|
|
3
|
+
|
|
4
|
+
/** One choice as the detail / selection documents hand it back. */
|
|
5
|
+
interface PickListItem {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
/** Never present on the selection read: that read is the one a non-owner may see. */
|
|
9
|
+
description?: string | null;
|
|
10
|
+
help_text?: string | null;
|
|
11
|
+
group_name?: string | null;
|
|
12
|
+
icon_name?: string | null;
|
|
13
|
+
}
|
|
14
|
+
/** A pick list as `pick_list_get` / `pick_list_for_selection` / `pick_list_update` answer it. */
|
|
15
|
+
interface PickListDocument {
|
|
16
|
+
id?: string;
|
|
17
|
+
list_id?: string;
|
|
18
|
+
list_name?: string;
|
|
19
|
+
description?: string | null;
|
|
20
|
+
organization_id?: string | null;
|
|
21
|
+
/** The choices in order (the update door answers this flat shape). */
|
|
22
|
+
items?: PickListItem[];
|
|
23
|
+
/** The choices by group (the read doors answer this shape). */
|
|
24
|
+
items_grouped?: Record<string, PickListItem[]>;
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
}
|
|
27
|
+
/** One choice to write when a list's choices are replaced. Either casing of each key is read by the door. */
|
|
28
|
+
interface PickListItemInput {
|
|
29
|
+
label: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
help_text?: string;
|
|
32
|
+
group_name?: string;
|
|
33
|
+
icon?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** The schema every door of the record store lives in, unless the host's config says otherwise. */
|
|
37
|
+
declare const DEFAULT_DOOR_SCHEMA = "custom";
|
|
38
|
+
/** An argument object as one stable string: keys sorted at every depth (PAGE-BUNDLE's match key). */
|
|
39
|
+
declare function canonicalArgs(value: unknown): string;
|
|
40
|
+
/**
|
|
41
|
+
* 🚨 A REFUSAL IS NOT AN APP ERROR (lane RECORDS-UI-FIX, guide re-walk 2026-09-23).
|
|
42
|
+
*
|
|
43
|
+
* A person typing `-3` into a column that takes "at least 0" is the store WORKING: the
|
|
44
|
+
* rule said no, the screen said so in the one notice, and the person fixed it. The default
|
|
45
|
+
* sink printed every one of those through `console.error`, and the app's error capture
|
|
46
|
+
* (matrx-frontend `lib/diagnostics/globalErrorCapture.ts`) counts every `console.error` —
|
|
47
|
+
* so one refused value lit a red "2 errors" pill in the corner, telling an admin the
|
|
48
|
+
* product had failed when a person had simply been told no.
|
|
49
|
+
*
|
|
50
|
+
* These are the codes a PERSON causes by what they typed or when they typed it; each one
|
|
51
|
+
* is already drawn on the screen that asked. They are still said (`console.info`), never
|
|
52
|
+
* silenced. Everything else — a door, the store switched off, a timeout, a class this
|
|
53
|
+
* package did not recognise — is a failure of the system and stays `console.error`.
|
|
54
|
+
*/
|
|
55
|
+
declare const A_PERSONS_REFUSAL: ReadonlySet<RecordsErrorCode>;
|
|
56
|
+
declare function isAPersonsRefusal(code: RecordsErrorCode | string): boolean;
|
|
57
|
+
/** The host's error sink, or the default one: the store's own words, naming where it happened. */
|
|
58
|
+
declare function recordsErrorSink(onError: RecordsErrorSink | undefined): RecordsErrorSink;
|
|
59
|
+
/** The refusal a missing door gets. It always says who owes it (`owedBy`, when a lane claims it). */
|
|
60
|
+
declare function doorAbsentRefusal(name: string, owedBy?: string): RecordsError;
|
|
61
|
+
/**
|
|
62
|
+
* What the server render already asked as this person, for this exact door and arguments — or null.
|
|
63
|
+
* A write (or a look write) empties what is primed instead, and is never answered from it.
|
|
64
|
+
*/
|
|
65
|
+
declare function primedDoorAnswer(door: string, args: Record<string, unknown>): {
|
|
66
|
+
data: unknown;
|
|
67
|
+
} | null;
|
|
68
|
+
/** One door call: the door's name, its arguments, and where the caller is (for the refusal). */
|
|
69
|
+
type DoorCall = <T>(door: string, args: Record<string, unknown>, where: string,
|
|
70
|
+
/**
|
|
71
|
+
* `quiet`: this refusal is an ANSWER the caller already draws (a door that says "not yours" to a
|
|
72
|
+
* person who only has table-level access), not a failure of the system. It is returned to the
|
|
73
|
+
* caller and said once with `console.info` - never through the error sink, which lights the
|
|
74
|
+
* error badge. Everything else about the call is unchanged.
|
|
75
|
+
*/
|
|
76
|
+
opts?: {
|
|
77
|
+
quiet?: boolean;
|
|
78
|
+
}) => Promise<RecordsResult<T>>;
|
|
79
|
+
interface DoorCallOptions {
|
|
80
|
+
/** The store's data seam (`asRecordsDataSource(supabase)`). */
|
|
81
|
+
dataSource: RecordsDataSource;
|
|
82
|
+
/** Defaults to `custom`. */
|
|
83
|
+
schema?: string;
|
|
84
|
+
/** The host's error sink (defaults to `recordsErrorSink(undefined)`). */
|
|
85
|
+
onError?: RecordsErrorSink;
|
|
86
|
+
/**
|
|
87
|
+
* MAY THIS DOOR BE ASKED AT ALL (the full client's generated catalogue). False refuses with
|
|
88
|
+
* `absent(door)` and asks nobody. Absent ⇒ every door is asked, and a store that answers "no such
|
|
89
|
+
* function" (PostgREST's PGRST202 or Postgres's 42883) is refused `door_absent` all the same.
|
|
90
|
+
*/
|
|
91
|
+
doorReady?: (door: string) => boolean;
|
|
92
|
+
/** The refusal a missing door gets (defaults to `doorAbsentRefusal(door)`). */
|
|
93
|
+
absent?: (door: string) => RecordsError;
|
|
94
|
+
/** An answer this page already holds for the exact call (the full client's page bundle), else null. */
|
|
95
|
+
held?: (door: string, args: Record<string, unknown>) => Promise<{
|
|
96
|
+
data: unknown;
|
|
97
|
+
} | null | undefined>;
|
|
98
|
+
/** A write landed: drop what this page still holds of it (the full client's page bundle). */
|
|
99
|
+
wrote?: (door: string, args: Record<string, unknown>) => void;
|
|
100
|
+
}
|
|
101
|
+
/** Build the one door call over a data source. Every records client, light or full, asks through this. */
|
|
102
|
+
declare function createDoorCall(options: DoorCallOptions): DoorCall;
|
|
103
|
+
|
|
104
|
+
interface PickListDoors {
|
|
105
|
+
/**
|
|
106
|
+
* PICK-LISTS: a pick list with its choices, grouped (`custom.pick_list_get`; viewer access on the list).
|
|
107
|
+
* The list is read by its own id; its organization is the list's own, never the client's.
|
|
108
|
+
*/
|
|
109
|
+
pickListGet(args: {
|
|
110
|
+
list_id: Uuid;
|
|
111
|
+
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
112
|
+
/** PICK-LISTS: a pick list for a selection control (`custom.pick_list_for_selection`): labels, help, groups, icons, NEVER the secret description. */
|
|
113
|
+
pickListForSelection(args: {
|
|
114
|
+
list_id: Uuid;
|
|
115
|
+
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
116
|
+
/**
|
|
117
|
+
* PICK-LISTS: rename / describe a pick list and, with `items`, REPLACE its choices
|
|
118
|
+
* (`custom.pick_list_update`; editor access). The replaced choices are archived, soft and restorable.
|
|
119
|
+
*/
|
|
120
|
+
pickListUpdate(args: {
|
|
121
|
+
list_id: Uuid;
|
|
122
|
+
list_name?: string | null;
|
|
123
|
+
description?: string | null;
|
|
124
|
+
items?: readonly PickListItemInput[] | null;
|
|
125
|
+
}): Promise<RecordsResult<PickListDocument | null>>;
|
|
126
|
+
}
|
|
127
|
+
/** The door names (guard: each is in the generated catalogue — `door-call-entry.test.ts`). */
|
|
128
|
+
declare const PICK_LIST_DOORS: {
|
|
129
|
+
readonly pickListGet: "pick_list_get";
|
|
130
|
+
readonly pickListForSelection: "pick_list_for_selection";
|
|
131
|
+
readonly pickListUpdate: "pick_list_update";
|
|
132
|
+
};
|
|
133
|
+
declare function createPickListDoors(callDoor: DoorCall): PickListDoors;
|
|
134
|
+
|
|
135
|
+
export { A_PERSONS_REFUSAL as A, type DoorCallOptions as D, type PickListDoors as P, type DoorCall as a, DEFAULT_DOOR_SCHEMA as b, PICK_LIST_DOORS as c, canonicalArgs as d, createDoorCall as e, createPickListDoors as f, doorAbsentRefusal as g, type PickListDocument as h, isAPersonsRefusal as i, type PickListItem as j, type PickListItemInput as k, primedDoorAnswer as p, recordsErrorSink as r };
|