@ai-matrx/records 0.84.5 → 0.84.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/app-table/index.cjs +36 -0
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +3 -3
- package/dist/app-table/index.d.ts +3 -3
- package/dist/app-table/index.js +36 -0
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-TU-nvgcF.d.ts → client-Cx2JV38-.d.ts} +7 -1
- package/dist/{client-CesQciPd.d.cts → client-xErw4ZgF.d.cts} +7 -1
- package/dist/core/index.cjs +36 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +5 -4
- package/dist/core/index.d.ts +5 -4
- package/dist/core/index.js +36 -0
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +36 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +36 -0
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-COXYIOiT.d.ts → declareTable-CYzGWD5K.d.ts} +2 -2
- package/dist/{declareTable-B9sr2E0h.d.cts → declareTable-G-H3AK48.d.cts} +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +46 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +16 -1
- package/dist/react/index.d.ts +16 -1
- package/dist/react/index.js +46 -1
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-C5T-DOdc.d.ts → table-kind-B_qYmQJG.d.ts} +10 -1
- package/dist/{table-kind-B4vIKJVM.d.cts → table-kind-KMjVs-rk.d.cts} +10 -1
- package/package.json +3 -3
package/dist/core/index.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { R as RecordsError, h as RecordsResult, P as PgError, y as StaleWriteDetail, g as RecordDocument, z as PredictedRefusal, s as ReadValue, U as Uuid } from '../record-1yDCn169.cjs';
|
|
2
2
|
export { B as ABSENCE_REASONS, E as ACTOR_VOCABULARY, G as AbsenceReason, A as Actor, I as COMPUTE_ON, J as CONTEXT_POLICIES, C as ComputeOn, c as ContextPolicy, K as DECLARABLE_FIELD_KINDS, L as DELIVERIES, D as DeclarableFieldKind, M as Delivery, N as ENTITY_TOKENS, Q as EntityToken, V as FIELD_SENSITIVITIES, X as FIELD_SOURCES, Y as FRESHNESS, u as FieldBehavior, b as FieldSensitivity, F as FieldSource, Z as ForbiddenEnvelopeWord, _ as Freshness, H as HiddenFieldNotice, $ as KERNEL_TABLES, a0 as KernelTableName, a1 as KeysetRow, a2 as MERGE_FIELD_MODIFIERS, a3 as MERGE_FIELD_SEMANTIC_TYPES, a4 as MERGE_FIELD_SOURCES, a5 as MergeFieldModifier, a6 as MergeFieldSemanticType, a7 as MergeFieldSource, a8 as ON_DELETE, a9 as OVERRIDE_POLICIES, O as OnDelete, aa as OverridePolicy, ab as PARITY_FIELD_TYPES, ac as PER_VALUE_ACCESS_WORDS, v as ParityFieldType, ad as PerValueAccessWord, ae as ProvenancePointer, af as RELATION_BINDINGS, ag as RELATION_CARDINALITIES, ah as RELATION_FLAVORS, ai as RETIRED_ACTOR_WORDS, aj as RULE_NODE_KINDS, ak as RULE_USES, m as ReadRow, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, p as RecordKeysetPage, o as RecordPage, n as RecordPageSort, l as RecordRead, r as RecordRevision, t as RecordsErrorCode, al as RelationBinding, e as RelationCardinality, d as RelationFlavor, am as RetiredActorWord, w as RuleNodeKind, x as RuleUse, an as STORAGE_MODES, ao as STORE_DOORS, ap as STORE_KNOBS, aq as STORE_REFUSAL_CODES, S as StorageMode, ar as StoreDoorName, as as StoreRefusalCode, q as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, a as TableDisplay, aw as TableOrigin, T as TableType, f as Timestamp, 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, W as WriteConflict, aE as err, aF as isRecordsErr, aG as ok } from '../record-1yDCn169.cjs';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { v as TableKindFacts } from '../table-kind-KMjVs-rk.cjs';
|
|
4
|
+
export { bM as ARCHIVE_LANES, bN as ARCHIVE_LANE_LABEL, bO as ARCHIVE_LANE_MEANS, bP as ActionRefusal, bt as ActionRunResult, aS as AnonTokenBinding, A as ArchiveLane, ad as ArchivedChecklistTemplate, bQ as ArchivedDoorRow, ac as ArchivedForm, e as ArchivedRow, bR as AutomationAction, bv as AutomationDeclared, bS as AutomationFilter, bx as AutomationFlipped, bT as AutomationItem, bU as AutomationLastRun, bw as AutomationList, bV as AutomationRun, bW as AutomationRunStatus, by as AutomationRuns, bu as AutomationSpec, bX as AutomationStep, bY as AutomationTrigger, bZ as AutomationValue, b_ as AutomationValues, b$ as BUILT_KIND_WORD, c0 as CHOICE_NUDGES, c1 as CaptureField, as as CaptureFileRef, at as CaptureOutcome, c2 as CaptureQuestion, ar as CaptureSheetFace, aq as CaptureSheetSummary, aU as ChecklistDeclared, c3 as ChecklistRequirement, c4 as ChecklistRequirementKind, c5 as ChecklistRoleSpec, aX as ChecklistRunStarted, aY as ChecklistRunStep, aZ as ChecklistRunSummary, aT as ChecklistSpec, a_ as ChecklistStepCompleted, c6 as ChecklistStepSpec, aW as ChecklistTemplateShape, aV as ChecklistTemplateSummary, c7 as ChecklistTrigger, c8 as ChecklistTriggerKind, k as ChoiceCellBack, c9 as ChoiceLike, C as ChoiceNudge, ca as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, aQ as CommentThreadRead, aR as CommentWritten, aL as ConversationScope, aM as ConversationScopeContext, cb as CustomFieldTableType, cc as DEFAULT_ARCHIVE_LANE, cd as DEFAULT_PORTAL_ARCHIVE_FILTER, ce as DRILL_CHART_TOKENS, cf as DRILL_DESCRIPTION_MAX, cg as DRILL_DOORS, ch as DRILL_SCHEMA, bE as DataHomeTable, ci as DecorationColor, bo as DecorationPath, cj as DecorationRule, ck as DecorationRuleOp, cl as DecorationTarget, aH as DocRenderRow, cm as DocSignatureCheck, aI as DocSignatureRow, aG as DocTemplateRow, aE as DocToken, aF as DocUnresolvedToken, cn as DrillAdHocOp, aC as DrillAnswer, co as DrillAnswerRow, cp as DrillChartToken, cq as DrillDeclaration, aA as DrillDefinition, cr as DrillDimension, cs as DrillFinding, ct as DrillGrain, cu as DrillHaving, cv as DrillLane, cw as DrillLevel, cx as DrillMeasure, cy as DrillMeasureOp, cz as DrillMeasureWhereValue, cA as DrillPath, aB as DrillQuestion, cB as DrillRecords, aD as DrillRowsPage, az as DrillSource, cC as DrillView, cD as EnrichAlternate, ax as EnrichCell, av as EnrichDeclared, aw as EnrichDueRow, ay as EnrichRun, cE as EnrichSource, cF as Enrichment, au as EnrichmentSummary, cG as EntityBackLinkItem, z as EntityBackLinks, x as EntityFieldRights, cH as EntityFieldValue, w as EntityFieldsAcross, cI as EntityRecordMatch, y as EntityRecordRead, D as EntityRecordsFound, cJ as EntityRef, bL as EntityRefWithWords, cK as EntityReferenceKind, B as EntityRowWritten, E as EntityTableFacts, bj as ExternalPrincipalCard, F as FieldDrift, cL as FieldDriftAspect, aN as FieldHistoryEntry, n as FieldRetyped, ab as FormArchiveAnswer, Z as FormLookOptions, br as FormulaParse, bq as GridLayout, cM as GridLayoutMode, cN as GridRowHeight, cO as HistoryActor, cP as HistoryActorKind, cQ as HistoryChange, cR as Home, a2 as ImportBatchResult, cS as ImportColumnPlan, a1 as ImportColumnsDeclared, a3 as ImportFinished, a0 as ImportOpened, cT as ImportOutcome, _ as ImportPlan, $ as ImportPolicy, cU as ImportProposal, a4 as ImportReport, a5 as ImportRun, a7 as InboundAddress, a6 as InboundDeclared, b8 as InboxCounts, b7 as InboxStateChange, bC as IoExportPage, M as MigrationUndone, bn as MyLevel, N as NewEntityFieldDeclaration, bJ as OutsideShareAnswer, cV as PERMISSION_LEVELS, cW as PIPELINE_RULE_KINDS, cX as PORTAL_ACCENTS, cY as PORTAL_ARCHIVE_FILTERS, cZ as PermissionLevel, P as Pipeline, G as PipelineColumn, O as PipelineDeclared, X as PipelineGate, Y as PipelineGatePreview, c_ as PipelineMissingField, K as PipelineMoveMany, J as PipelineMoveManyItem, c$ as PipelineMoveManyResult, I as PipelineMoveResult, d0 as PipelineMoveVerdict, d1 as PipelineRule, d2 as PipelineRuleKind, L as PipelineSpec, d3 as PipelineStage, H as PipelineVerdict, d4 as PortalAccent, aa as PortalArchiveAnswer, a9 as PortalArchiveFilter, aj as PortalCard, d5 as PortalConfig, ak as PortalConfigInput, d6 as PortalFooterLink, am as PortalFormAnswer, d7 as PortalFormInput, d8 as PortalFormRef, al as PortalFormSpec, an as PortalInvitation, ap as PortalPreviewRow, d9 as PortalPrincipal, ao as PortalRevocation, da as PortalStage, db as PortalStyle, dc as PortalStyleInput, a8 as PortalSummary, dd as PortalTableExposure, ai as PortalTableRef, de as PublicPicture, bk as PublishBinding, df as PublishBindingKind, dg as REVERSE_LINKS_PAGE_MAX, dh as REVERSE_LINKS_RECORDS_PER_CALL, di as ROW_WEB_NOT_READY, dj as RecordChangeAction, dk as RecordComment, bz as RecordEvent, bI as RecordHeader, aJ as RecordHistoryEntry, ah as RecordRowControls, dl as RecordScopeComment, aK as RecordScopeContext, dm as RecordScopeField, dn as RecordScopeHistoryEntry, dp as RecordScopeRelation, dq as RecordScopeWithheld, o as RecordsMerged, dr as RegisteredTable, ds as Relation, dt as RelationCarries, R as RelationCoordinate, q as RelationIcons, du as RelationProperties, dv as RelationTarget, p as RelationWordsManyArgs, bl as ResolvedPublishBinding, bm as ResolvedPublishBindingKind, aO as RestorePreview, aP as RestoreResult, dw as RetypeBehaviour, dx as RetypePreview, r as ReverseColumn, dy as ReverseLink, t as ReverseLinks, u as ReverseLinksFieldsArgs, s as ReverseLinksManyArgs, bs as RowAction, dz as RowActionStep, ag as RowDefaultsApplied, dA as SHOWN_TO_LABEL, dB as SHOWN_TO_VALUES, dC as SHOWN_TO_WHO_MAY_CHANGE, dD as STAGE_RULE_ENFORCEMENT, dE as STAGE_RULE_ON_FAIL, dF as ShownTo, S as SourceArchived, V as StagePending, W as StagePendingOnBoard, U as StageRuleEnforcement, Q as StageRuleOnFail, dG as StageRuleWarning, dH as TABLE_KIND_PREFIX, f as Table, T as TableArchiveProgress, m as TableCapacity, d as TableCopyInProgress, bp as TableDecorations, b as TableDuplicateProgress, c as TableDuplicated, g as TableHome, dI as TableHomeDestination, bD as TableListEntry, h as TableMoved, dJ as TablePlacement, dK as TablePlacementFact, dL as TableRenderSchema, a as TableRestoreProgress, bH as TableRowCount, ae as TableRowDefaults, af as TableRowDefaultsPatch, dM as TableSchemaMode, bG as TableSyncResult, dN as TableSyncSource, bF as TableSyncSpec, bB as TableWebhook, bA as TableWebhookDeclared, dO as TypedChoiceDecision, dP as ViewLayout, bK as ViewOrderSet, bg as WorkApprovalDecision, bf as WorkApprovalFiled, dQ as WorkApprovalState, bd as WorkApprover, bb as WorkAssignment, b3 as WorkAssignmentField, be as WorkChange, bi as WorkDecideMany, bh as WorkDecideManyItem, dR as WorkDecideManyResult, dS as WorkDecideVerdict, dT as WorkDueState, b0 as WorkGraph, b6 as WorkInboxItem, dU as WorkInboxKind, b5 as WorkInboxView, b1 as WorkInstantiation, b9 as WorkListFlavour, ba as WorkListItem, dV as WorkOrigin, bc as WorkRecordState, b4 as WorkSlotHold, a$ as WorkState, dW as WorkTemplateNode, dX as WorkTemplateRelation, b2 as WorkTurn, dY as actionRefusals, dZ as archivedByLine, d_ as archivedWhen, d$ as asChoiceNudge, e0 as asPermissionLevel, e1 as atLeast, e2 as choiceSlug, e3 as choiceValuesOf, e4 as choicesOf, e5 as decideTypedChoice, e6 as declareDrillDefinition, e7 as drillAnswerOf, e8 as drillFindingKnob, e9 as emptyArchiveLine, ea as emptyPortalArchiveLine, eb as entityReferenceKinds, ec as entityReferenceSearch, ed as entityReferenceWords, ee as entityRefsOf, ef as entityRefsToWrite, eg as exportPageXlsx, eh as fieldKindOf, ei as highestLevel, ej as holdsARetiredChoice, ek as isArchiveLane, el as isFoundation, em as isPortalAccent, en as isPortalArchiveFilter, eo as isShownTo, ep as isTableKind, eq as isTheChosen, er as keptGroups, es as keptOutOfSight, et as keptTableHref, eu as looksLikeAnId, ev as mayDrag, ew as moveConsequence, ex as moveInOrder, ey as offeredAsContext, ez as optionKey, eA as optionLabel, eB as parseFieldDrift, eC as parseTableCopiesInProgress, eD as parseTableDuplicateProgress, eE as parseTableDuplicated, eF as parseTableHome, eG as parseTableMoved, eH as portalArchiveConsequence, eI as portalConfirmLine, eJ as portalPath, eK as portalTitleTypedBack, eL as previewRetype, eM as previewRuleChange, eN as recordChangeTrigger, eO as recordSourceKey, eP as recordSourceTable, eQ as recordsUseSentence, eR as rehomeSentence, eS as removedChoicesInUse, eT as ruleThatRefuses, eU as rulesWithTopStar, eV as sameDocument, eW as scopeChip, eX as sheetSyncSpec, eY as sourceArchivedOf, eZ as tableIdOf, e_ as tableJsonSchema, e$ as tableKindMapping, f0 as tableKindSlug, f1 as tableRenderSchema, f2 as valueConverts, f3 as withRowCounts, f4 as withTablePlacement } from '../table-kind-KMjVs-rk.cjs';
|
|
5
5
|
import { b as Field } from '../field-snQG2jMq.cjs';
|
|
6
6
|
export { A as ADDRESS_PARTS, f as AGENT_WRITER_WORDS, g as AddressPart, h as AddressValue, B as BARCODE_SYMBOLOGIES, C as ChoiceOptions, i as CoerceOptions, j as Coerced, k as CoercedAnswers, l as CoercibleField, m as FIELD_KINDS, d as FieldDuplicated, n as FieldKind, o as FieldOptionEdit, c as FieldPatch, e as FieldProposal, a as FieldRule, F as FieldTypeWord, K as KernelTargets, p as NEWER_FIELD_KINDS, q as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, r as NewerFieldKind, P as ParityFieldTypeDescriptor, s as PersonStamp, t as RelationDisplay, u as RelationNameIndex, v as RelationNameMatch, R as RelationNamesAnswer, S as STATUS_GROUPS, w as STATUS_GROUP_WORDS, x as SYSTEM_WRITER_WORDS, y as StatusGroup, T as TableProposal, z as addressFromText, D as addressMapUrl, E as addressText, G as allowsOtherValues, H as coerceTypedAnswer, I as coerceTypedAnswers, J as coercionLabel, L as durationText, M as entityReferenceKindsOf, O as fieldKindFor, Q as isAddressValue, U as isEntityReferenceConfig, V as isPersonStamp, W as newerKindExportWords, X as newerKindOf, Y as newerKindWords, Z as personStampText, _ as ratingMaxOf, $ as readTypedDuration, a0 as relationNameIndexOf, a1 as relationNameKey, a2 as relationNamesIn, a3 as richTextPlain, a4 as safeLinkHref, a5 as splitListCell, a6 as statusGroupOf } from '../field-snQG2jMq.cjs';
|
|
7
7
|
export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, forgetAllOps, indexedDbStore, isDecided, isOwnOp, localeDateOrder, memoryStore, mintClientKey, mintOpId, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, rememberedOpCount, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.cjs';
|
|
8
8
|
export { f as AggregateBucket, A as AggregateCompare, v as AggregateCompareKind, w as AggregateCompareWindows, x as AggregateDelta, r as AggregateFilter, y as AggregateGroupValue, i as AggregateMeasure, q as AggregateOperation, j as AggregateRow, z as AggregateWindow, a as BookingAvailability, b as BookingDeclared, B as BookingSummary, C as BookingWindow, e as DashboardBlock, s as DashboardBlockKind, E as DashboardBlockResult, g as DashboardRunResult, D as DashboardSummary, G as DashboardTarget, H as DashboardTargetBase, I as DashboardTargetOp, J as DashboardTargetResult, K as DashboardTotals, m as DigestPreview, d as FormResults, c as FormRoute, F as FormSummary, M as MySubscription, Q as QuietHours, R as RecordFilter, p as RowTemplateRow, L as Rule, N as RuleAnswer, u as RuleExpression, O as SavedViewColorBy, P as SavedViewDefinition, T as SavedViewLayout, n as SavedViewRow, o as SavedViewSpecIn, S as StoreFilter, h as StuckRow, k as Subscription, U as SubscriptionBlock, t as SubscriptionCadence, l as SubscriptionSpec, V as bookingPath, W as callersTimeZone, X as hasQuietHours, Y as isRuleFilter, Z as liftWithheld, _ as measureKey, $ as publicFormPath, a0 as stableFilterKey, a1 as withCallersClock } from '../subscription-B_WaT-kr.cjs';
|
|
9
9
|
import { b as RecordsDataSource } from '../ports-y1QNfM80.cjs';
|
|
10
10
|
export { c as RecordsActor, d as RecordsChangeSink, a as RecordsConfig, e as RecordsErrorSink, f as RecordsFilter, R as RecordsRealtimePort, g as RecordsResolverPort, h as RecordsResponse, i as RecordsTableQuery } from '../ports-y1QNfM80.cjs';
|
|
11
|
-
export { A as A_PERSONS_REFUSAL, a as AsOf, D as DEFAULT_PAGE_SIZE, P as PromotedPredicate, Q as QueryPlan, b as RecordQuery, R as RecordsClient, T as TableFact, c as TableLiveLocation, d as asWriteConflict, e as createRecordsClient, i as intersectIds, f as isAPersonsRefusal, p as planQuery, w as withTableFacts } from '../client-
|
|
12
|
-
export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-
|
|
11
|
+
export { A as A_PERSONS_REFUSAL, a as AsOf, D as DEFAULT_PAGE_SIZE, P as PromotedPredicate, Q as QueryPlan, b as RecordQuery, R as RecordsClient, T as TableFact, c as TableLiveLocation, d as asWriteConflict, e as createRecordsClient, i as intersectIds, f as isAPersonsRefusal, p as planQuery, w as withTableFacts } from '../client-xErw4ZgF.cjs';
|
|
12
|
+
export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-G-H3AK48.cjs';
|
|
13
13
|
|
|
14
14
|
declare function doorExists(name: string): boolean;
|
|
15
15
|
/**
|
|
@@ -92,6 +92,7 @@ declare const DOORS: {
|
|
|
92
92
|
readonly relationNamesMatch: "relation_names_match";
|
|
93
93
|
readonly reverseColumns: "reverse_columns";
|
|
94
94
|
readonly reverseLinksMany: "reverse_links_many";
|
|
95
|
+
readonly reverseLinksManyFields: "reverse_links_many_fields";
|
|
95
96
|
readonly homeAdd: "home_add";
|
|
96
97
|
readonly recordReparent: "record_reparent";
|
|
97
98
|
readonly containmentChain: "containment_chain";
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { R as RecordsError, h as RecordsResult, P as PgError, y as StaleWriteDetail, g as RecordDocument, z as PredictedRefusal, s as ReadValue, U as Uuid } from '../record-1yDCn169.js';
|
|
2
2
|
export { B as ABSENCE_REASONS, E as ACTOR_VOCABULARY, G as AbsenceReason, A as Actor, I as COMPUTE_ON, J as CONTEXT_POLICIES, C as ComputeOn, c as ContextPolicy, K as DECLARABLE_FIELD_KINDS, L as DELIVERIES, D as DeclarableFieldKind, M as Delivery, N as ENTITY_TOKENS, Q as EntityToken, V as FIELD_SENSITIVITIES, X as FIELD_SOURCES, Y as FRESHNESS, u as FieldBehavior, b as FieldSensitivity, F as FieldSource, Z as ForbiddenEnvelopeWord, _ as Freshness, H as HiddenFieldNotice, $ as KERNEL_TABLES, a0 as KernelTableName, a1 as KeysetRow, a2 as MERGE_FIELD_MODIFIERS, a3 as MERGE_FIELD_SEMANTIC_TYPES, a4 as MERGE_FIELD_SOURCES, a5 as MergeFieldModifier, a6 as MergeFieldSemanticType, a7 as MergeFieldSource, a8 as ON_DELETE, a9 as OVERRIDE_POLICIES, O as OnDelete, aa as OverridePolicy, ab as PARITY_FIELD_TYPES, ac as PER_VALUE_ACCESS_WORDS, v as ParityFieldType, ad as PerValueAccessWord, ae as ProvenancePointer, af as RELATION_BINDINGS, ag as RELATION_CARDINALITIES, ah as RELATION_FLAVORS, ai as RETIRED_ACTOR_WORDS, aj as RULE_NODE_KINDS, ak as RULE_USES, m as ReadRow, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, p as RecordKeysetPage, o as RecordPage, n as RecordPageSort, l as RecordRead, r as RecordRevision, t as RecordsErrorCode, al as RelationBinding, e as RelationCardinality, d as RelationFlavor, am as RetiredActorWord, w as RuleNodeKind, x as RuleUse, an as STORAGE_MODES, ao as STORE_DOORS, ap as STORE_KNOBS, aq as STORE_REFUSAL_CODES, S as StorageMode, ar as StoreDoorName, as as StoreRefusalCode, q as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, a as TableDisplay, aw as TableOrigin, T as TableType, f as Timestamp, 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, W as WriteConflict, aE as err, aF as isRecordsErr, aG as ok } from '../record-1yDCn169.js';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { v as TableKindFacts } from '../table-kind-B_qYmQJG.js';
|
|
4
|
+
export { bM as ARCHIVE_LANES, bN as ARCHIVE_LANE_LABEL, bO as ARCHIVE_LANE_MEANS, bP as ActionRefusal, bt as ActionRunResult, aS as AnonTokenBinding, A as ArchiveLane, ad as ArchivedChecklistTemplate, bQ as ArchivedDoorRow, ac as ArchivedForm, e as ArchivedRow, bR as AutomationAction, bv as AutomationDeclared, bS as AutomationFilter, bx as AutomationFlipped, bT as AutomationItem, bU as AutomationLastRun, bw as AutomationList, bV as AutomationRun, bW as AutomationRunStatus, by as AutomationRuns, bu as AutomationSpec, bX as AutomationStep, bY as AutomationTrigger, bZ as AutomationValue, b_ as AutomationValues, b$ as BUILT_KIND_WORD, c0 as CHOICE_NUDGES, c1 as CaptureField, as as CaptureFileRef, at as CaptureOutcome, c2 as CaptureQuestion, ar as CaptureSheetFace, aq as CaptureSheetSummary, aU as ChecklistDeclared, c3 as ChecklistRequirement, c4 as ChecklistRequirementKind, c5 as ChecklistRoleSpec, aX as ChecklistRunStarted, aY as ChecklistRunStep, aZ as ChecklistRunSummary, aT as ChecklistSpec, a_ as ChecklistStepCompleted, c6 as ChecklistStepSpec, aW as ChecklistTemplateShape, aV as ChecklistTemplateSummary, c7 as ChecklistTrigger, c8 as ChecklistTriggerKind, k as ChoiceCellBack, c9 as ChoiceLike, C as ChoiceNudge, ca as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, aQ as CommentThreadRead, aR as CommentWritten, aL as ConversationScope, aM as ConversationScopeContext, cb as CustomFieldTableType, cc as DEFAULT_ARCHIVE_LANE, cd as DEFAULT_PORTAL_ARCHIVE_FILTER, ce as DRILL_CHART_TOKENS, cf as DRILL_DESCRIPTION_MAX, cg as DRILL_DOORS, ch as DRILL_SCHEMA, bE as DataHomeTable, ci as DecorationColor, bo as DecorationPath, cj as DecorationRule, ck as DecorationRuleOp, cl as DecorationTarget, aH as DocRenderRow, cm as DocSignatureCheck, aI as DocSignatureRow, aG as DocTemplateRow, aE as DocToken, aF as DocUnresolvedToken, cn as DrillAdHocOp, aC as DrillAnswer, co as DrillAnswerRow, cp as DrillChartToken, cq as DrillDeclaration, aA as DrillDefinition, cr as DrillDimension, cs as DrillFinding, ct as DrillGrain, cu as DrillHaving, cv as DrillLane, cw as DrillLevel, cx as DrillMeasure, cy as DrillMeasureOp, cz as DrillMeasureWhereValue, cA as DrillPath, aB as DrillQuestion, cB as DrillRecords, aD as DrillRowsPage, az as DrillSource, cC as DrillView, cD as EnrichAlternate, ax as EnrichCell, av as EnrichDeclared, aw as EnrichDueRow, ay as EnrichRun, cE as EnrichSource, cF as Enrichment, au as EnrichmentSummary, cG as EntityBackLinkItem, z as EntityBackLinks, x as EntityFieldRights, cH as EntityFieldValue, w as EntityFieldsAcross, cI as EntityRecordMatch, y as EntityRecordRead, D as EntityRecordsFound, cJ as EntityRef, bL as EntityRefWithWords, cK as EntityReferenceKind, B as EntityRowWritten, E as EntityTableFacts, bj as ExternalPrincipalCard, F as FieldDrift, cL as FieldDriftAspect, aN as FieldHistoryEntry, n as FieldRetyped, ab as FormArchiveAnswer, Z as FormLookOptions, br as FormulaParse, bq as GridLayout, cM as GridLayoutMode, cN as GridRowHeight, cO as HistoryActor, cP as HistoryActorKind, cQ as HistoryChange, cR as Home, a2 as ImportBatchResult, cS as ImportColumnPlan, a1 as ImportColumnsDeclared, a3 as ImportFinished, a0 as ImportOpened, cT as ImportOutcome, _ as ImportPlan, $ as ImportPolicy, cU as ImportProposal, a4 as ImportReport, a5 as ImportRun, a7 as InboundAddress, a6 as InboundDeclared, b8 as InboxCounts, b7 as InboxStateChange, bC as IoExportPage, M as MigrationUndone, bn as MyLevel, N as NewEntityFieldDeclaration, bJ as OutsideShareAnswer, cV as PERMISSION_LEVELS, cW as PIPELINE_RULE_KINDS, cX as PORTAL_ACCENTS, cY as PORTAL_ARCHIVE_FILTERS, cZ as PermissionLevel, P as Pipeline, G as PipelineColumn, O as PipelineDeclared, X as PipelineGate, Y as PipelineGatePreview, c_ as PipelineMissingField, K as PipelineMoveMany, J as PipelineMoveManyItem, c$ as PipelineMoveManyResult, I as PipelineMoveResult, d0 as PipelineMoveVerdict, d1 as PipelineRule, d2 as PipelineRuleKind, L as PipelineSpec, d3 as PipelineStage, H as PipelineVerdict, d4 as PortalAccent, aa as PortalArchiveAnswer, a9 as PortalArchiveFilter, aj as PortalCard, d5 as PortalConfig, ak as PortalConfigInput, d6 as PortalFooterLink, am as PortalFormAnswer, d7 as PortalFormInput, d8 as PortalFormRef, al as PortalFormSpec, an as PortalInvitation, ap as PortalPreviewRow, d9 as PortalPrincipal, ao as PortalRevocation, da as PortalStage, db as PortalStyle, dc as PortalStyleInput, a8 as PortalSummary, dd as PortalTableExposure, ai as PortalTableRef, de as PublicPicture, bk as PublishBinding, df as PublishBindingKind, dg as REVERSE_LINKS_PAGE_MAX, dh as REVERSE_LINKS_RECORDS_PER_CALL, di as ROW_WEB_NOT_READY, dj as RecordChangeAction, dk as RecordComment, bz as RecordEvent, bI as RecordHeader, aJ as RecordHistoryEntry, ah as RecordRowControls, dl as RecordScopeComment, aK as RecordScopeContext, dm as RecordScopeField, dn as RecordScopeHistoryEntry, dp as RecordScopeRelation, dq as RecordScopeWithheld, o as RecordsMerged, dr as RegisteredTable, ds as Relation, dt as RelationCarries, R as RelationCoordinate, q as RelationIcons, du as RelationProperties, dv as RelationTarget, p as RelationWordsManyArgs, bl as ResolvedPublishBinding, bm as ResolvedPublishBindingKind, aO as RestorePreview, aP as RestoreResult, dw as RetypeBehaviour, dx as RetypePreview, r as ReverseColumn, dy as ReverseLink, t as ReverseLinks, u as ReverseLinksFieldsArgs, s as ReverseLinksManyArgs, bs as RowAction, dz as RowActionStep, ag as RowDefaultsApplied, dA as SHOWN_TO_LABEL, dB as SHOWN_TO_VALUES, dC as SHOWN_TO_WHO_MAY_CHANGE, dD as STAGE_RULE_ENFORCEMENT, dE as STAGE_RULE_ON_FAIL, dF as ShownTo, S as SourceArchived, V as StagePending, W as StagePendingOnBoard, U as StageRuleEnforcement, Q as StageRuleOnFail, dG as StageRuleWarning, dH as TABLE_KIND_PREFIX, f as Table, T as TableArchiveProgress, m as TableCapacity, d as TableCopyInProgress, bp as TableDecorations, b as TableDuplicateProgress, c as TableDuplicated, g as TableHome, dI as TableHomeDestination, bD as TableListEntry, h as TableMoved, dJ as TablePlacement, dK as TablePlacementFact, dL as TableRenderSchema, a as TableRestoreProgress, bH as TableRowCount, ae as TableRowDefaults, af as TableRowDefaultsPatch, dM as TableSchemaMode, bG as TableSyncResult, dN as TableSyncSource, bF as TableSyncSpec, bB as TableWebhook, bA as TableWebhookDeclared, dO as TypedChoiceDecision, dP as ViewLayout, bK as ViewOrderSet, bg as WorkApprovalDecision, bf as WorkApprovalFiled, dQ as WorkApprovalState, bd as WorkApprover, bb as WorkAssignment, b3 as WorkAssignmentField, be as WorkChange, bi as WorkDecideMany, bh as WorkDecideManyItem, dR as WorkDecideManyResult, dS as WorkDecideVerdict, dT as WorkDueState, b0 as WorkGraph, b6 as WorkInboxItem, dU as WorkInboxKind, b5 as WorkInboxView, b1 as WorkInstantiation, b9 as WorkListFlavour, ba as WorkListItem, dV as WorkOrigin, bc as WorkRecordState, b4 as WorkSlotHold, a$ as WorkState, dW as WorkTemplateNode, dX as WorkTemplateRelation, b2 as WorkTurn, dY as actionRefusals, dZ as archivedByLine, d_ as archivedWhen, d$ as asChoiceNudge, e0 as asPermissionLevel, e1 as atLeast, e2 as choiceSlug, e3 as choiceValuesOf, e4 as choicesOf, e5 as decideTypedChoice, e6 as declareDrillDefinition, e7 as drillAnswerOf, e8 as drillFindingKnob, e9 as emptyArchiveLine, ea as emptyPortalArchiveLine, eb as entityReferenceKinds, ec as entityReferenceSearch, ed as entityReferenceWords, ee as entityRefsOf, ef as entityRefsToWrite, eg as exportPageXlsx, eh as fieldKindOf, ei as highestLevel, ej as holdsARetiredChoice, ek as isArchiveLane, el as isFoundation, em as isPortalAccent, en as isPortalArchiveFilter, eo as isShownTo, ep as isTableKind, eq as isTheChosen, er as keptGroups, es as keptOutOfSight, et as keptTableHref, eu as looksLikeAnId, ev as mayDrag, ew as moveConsequence, ex as moveInOrder, ey as offeredAsContext, ez as optionKey, eA as optionLabel, eB as parseFieldDrift, eC as parseTableCopiesInProgress, eD as parseTableDuplicateProgress, eE as parseTableDuplicated, eF as parseTableHome, eG as parseTableMoved, eH as portalArchiveConsequence, eI as portalConfirmLine, eJ as portalPath, eK as portalTitleTypedBack, eL as previewRetype, eM as previewRuleChange, eN as recordChangeTrigger, eO as recordSourceKey, eP as recordSourceTable, eQ as recordsUseSentence, eR as rehomeSentence, eS as removedChoicesInUse, eT as ruleThatRefuses, eU as rulesWithTopStar, eV as sameDocument, eW as scopeChip, eX as sheetSyncSpec, eY as sourceArchivedOf, eZ as tableIdOf, e_ as tableJsonSchema, e$ as tableKindMapping, f0 as tableKindSlug, f1 as tableRenderSchema, f2 as valueConverts, f3 as withRowCounts, f4 as withTablePlacement } from '../table-kind-B_qYmQJG.js';
|
|
5
5
|
import { b as Field } from '../field-BIJiFPc0.js';
|
|
6
6
|
export { A as ADDRESS_PARTS, f as AGENT_WRITER_WORDS, g as AddressPart, h as AddressValue, B as BARCODE_SYMBOLOGIES, C as ChoiceOptions, i as CoerceOptions, j as Coerced, k as CoercedAnswers, l as CoercibleField, m as FIELD_KINDS, d as FieldDuplicated, n as FieldKind, o as FieldOptionEdit, c as FieldPatch, e as FieldProposal, a as FieldRule, F as FieldTypeWord, K as KernelTargets, p as NEWER_FIELD_KINDS, q as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, r as NewerFieldKind, P as ParityFieldTypeDescriptor, s as PersonStamp, t as RelationDisplay, u as RelationNameIndex, v as RelationNameMatch, R as RelationNamesAnswer, S as STATUS_GROUPS, w as STATUS_GROUP_WORDS, x as SYSTEM_WRITER_WORDS, y as StatusGroup, T as TableProposal, z as addressFromText, D as addressMapUrl, E as addressText, G as allowsOtherValues, H as coerceTypedAnswer, I as coerceTypedAnswers, J as coercionLabel, L as durationText, M as entityReferenceKindsOf, O as fieldKindFor, Q as isAddressValue, U as isEntityReferenceConfig, V as isPersonStamp, W as newerKindExportWords, X as newerKindOf, Y as newerKindWords, Z as personStampText, _ as ratingMaxOf, $ as readTypedDuration, a0 as relationNameIndexOf, a1 as relationNameKey, a2 as relationNamesIn, a3 as richTextPlain, a4 as safeLinkHref, a5 as splitListCell, a6 as statusGroupOf } from '../field-BIJiFPc0.js';
|
|
7
7
|
export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, forgetAllOps, indexedDbStore, isDecided, isOwnOp, localeDateOrder, memoryStore, mintClientKey, mintOpId, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, rememberedOpCount, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.js';
|
|
8
8
|
export { f as AggregateBucket, A as AggregateCompare, v as AggregateCompareKind, w as AggregateCompareWindows, x as AggregateDelta, r as AggregateFilter, y as AggregateGroupValue, i as AggregateMeasure, q as AggregateOperation, j as AggregateRow, z as AggregateWindow, a as BookingAvailability, b as BookingDeclared, B as BookingSummary, C as BookingWindow, e as DashboardBlock, s as DashboardBlockKind, E as DashboardBlockResult, g as DashboardRunResult, D as DashboardSummary, G as DashboardTarget, H as DashboardTargetBase, I as DashboardTargetOp, J as DashboardTargetResult, K as DashboardTotals, m as DigestPreview, d as FormResults, c as FormRoute, F as FormSummary, M as MySubscription, Q as QuietHours, R as RecordFilter, p as RowTemplateRow, L as Rule, N as RuleAnswer, u as RuleExpression, O as SavedViewColorBy, P as SavedViewDefinition, T as SavedViewLayout, n as SavedViewRow, o as SavedViewSpecIn, S as StoreFilter, h as StuckRow, k as Subscription, U as SubscriptionBlock, t as SubscriptionCadence, l as SubscriptionSpec, V as bookingPath, W as callersTimeZone, X as hasQuietHours, Y as isRuleFilter, Z as liftWithheld, _ as measureKey, $ as publicFormPath, a0 as stableFilterKey, a1 as withCallersClock } from '../subscription-CUok1vAm.js';
|
|
9
9
|
import { b as RecordsDataSource } from '../ports-Y5gLbCXe.js';
|
|
10
10
|
export { c as RecordsActor, d as RecordsChangeSink, a as RecordsConfig, e as RecordsErrorSink, f as RecordsFilter, R as RecordsRealtimePort, g as RecordsResolverPort, h as RecordsResponse, i as RecordsTableQuery } from '../ports-Y5gLbCXe.js';
|
|
11
|
-
export { A as A_PERSONS_REFUSAL, a as AsOf, D as DEFAULT_PAGE_SIZE, P as PromotedPredicate, Q as QueryPlan, b as RecordQuery, R as RecordsClient, T as TableFact, c as TableLiveLocation, d as asWriteConflict, e as createRecordsClient, i as intersectIds, f as isAPersonsRefusal, p as planQuery, w as withTableFacts } from '../client-
|
|
12
|
-
export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-
|
|
11
|
+
export { A as A_PERSONS_REFUSAL, a as AsOf, D as DEFAULT_PAGE_SIZE, P as PromotedPredicate, Q as QueryPlan, b as RecordQuery, R as RecordsClient, T as TableFact, c as TableLiveLocation, d as asWriteConflict, e as createRecordsClient, i as intersectIds, f as isAPersonsRefusal, p as planQuery, w as withTableFacts } from '../client-Cx2JV38-.js';
|
|
12
|
+
export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-CYzGWD5K.js';
|
|
13
13
|
|
|
14
14
|
declare function doorExists(name: string): boolean;
|
|
15
15
|
/**
|
|
@@ -92,6 +92,7 @@ declare const DOORS: {
|
|
|
92
92
|
readonly relationNamesMatch: "relation_names_match";
|
|
93
93
|
readonly reverseColumns: "reverse_columns";
|
|
94
94
|
readonly reverseLinksMany: "reverse_links_many";
|
|
95
|
+
readonly reverseLinksManyFields: "reverse_links_many_fields";
|
|
95
96
|
readonly homeAdd: "home_add";
|
|
96
97
|
readonly recordReparent: "record_reparent";
|
|
97
98
|
readonly containmentChain: "containment_chain";
|
package/dist/core/index.js
CHANGED
|
@@ -5030,6 +5030,10 @@ var OWED_BY = {
|
|
|
5030
5030
|
// clone; they reach the main database when the chair applies them, after
|
|
5031
5031
|
// visionreach_w4_a_the_store_asks_before_an_agent_changes_a_table.sql (its field_declare body).
|
|
5032
5032
|
reverse_columns: "VIEWS-AND-FIELDS BL \u2014 matrx-frontend migrations/campaign/viewsfields_bl_a_link_shows_on_both_tables.sql (chair's production apply)",
|
|
5033
|
+
// SEED-ENTITY (2026-10-08): the same links through SEVERAL reverse columns in one call; applied to production
|
|
5034
|
+
// through the ledgered runner. Until `pnpm records:generate` lists it, `reverseLinksFields` asks it as an owed door
|
|
5035
|
+
// and a store without it answers `door_absent` (the caller falls back to one call per column).
|
|
5036
|
+
reverse_links_many_fields: "SEED-ENTITY \u2014 matrx-frontend migrations/campaign/seedentity_reverse_links_many_fields.sql (applied 2026-10-08)",
|
|
5033
5037
|
reverse_links_many: "VIEWS-AND-FIELDS BL \u2014 matrx-frontend migrations/campaign/viewsfields_bl_a_link_shows_on_both_tables.sql (chair's production apply)",
|
|
5034
5038
|
// Live on Matrx Main since 2026-10-06 (applied through the Supabase MCP); STORE_DOORS lists it at the
|
|
5035
5039
|
// next `pnpm records:generate`, until then `listKeyset` asks it as an owed door.
|
|
@@ -5270,6 +5274,7 @@ var DOORS = {
|
|
|
5270
5274
|
// links through one of them. Called through `owedDoor` until `pnpm records:generate` lists them.
|
|
5271
5275
|
reverseColumns: "reverse_columns",
|
|
5272
5276
|
reverseLinksMany: "reverse_links_many",
|
|
5277
|
+
reverseLinksManyFields: "reverse_links_many_fields",
|
|
5273
5278
|
homeAdd: "home_add",
|
|
5274
5279
|
recordReparent: "record_reparent",
|
|
5275
5280
|
containmentChain: "containment_chain",
|
|
@@ -7152,6 +7157,37 @@ function createRecordsClient(given) {
|
|
|
7152
7157
|
}
|
|
7153
7158
|
return ok(out);
|
|
7154
7159
|
},
|
|
7160
|
+
async reverseLinksFields(args) {
|
|
7161
|
+
const ids = [...new Set(args.record_ids.filter((id) => typeof id === "string" && id.length > 0))];
|
|
7162
|
+
const fieldIds = [...new Set(args.source_field_ids)];
|
|
7163
|
+
const out = Object.fromEntries(fieldIds.map((id) => [id, {}]));
|
|
7164
|
+
for (let f = 0; f < fieldIds.length || f === 0; f += 20) {
|
|
7165
|
+
for (let at = 0; at < ids.length; at += REVERSE_LINKS_RECORDS_PER_CALL) {
|
|
7166
|
+
const result = await owedDoor(
|
|
7167
|
+
DOORS.reverseLinksManyFields,
|
|
7168
|
+
{
|
|
7169
|
+
p_organization_id: org,
|
|
7170
|
+
p_table_id: args.table_id,
|
|
7171
|
+
p_field_ids: fieldIds.slice(f, f + 20),
|
|
7172
|
+
p_record_ids: ids.slice(at, at + REVERSE_LINKS_RECORDS_PER_CALL),
|
|
7173
|
+
p_limit: args.limit ?? 10,
|
|
7174
|
+
p_offset: args.offset ?? 0
|
|
7175
|
+
},
|
|
7176
|
+
"reverseLinksFields"
|
|
7177
|
+
);
|
|
7178
|
+
if (!result.ok) return result;
|
|
7179
|
+
for (const row of result.data ?? []) {
|
|
7180
|
+
if (!row?.record_id || !row.field_id) continue;
|
|
7181
|
+
(out[row.field_id] ??= {})[row.record_id] = {
|
|
7182
|
+
total: typeof row.total === "number" ? row.total : 0,
|
|
7183
|
+
links: Array.isArray(row.links) ? row.links : []
|
|
7184
|
+
};
|
|
7185
|
+
}
|
|
7186
|
+
}
|
|
7187
|
+
if (fieldIds.length === 0) break;
|
|
7188
|
+
}
|
|
7189
|
+
return ok(out);
|
|
7190
|
+
},
|
|
7155
7191
|
async relationNamesMatch(args) {
|
|
7156
7192
|
const distinct = [];
|
|
7157
7193
|
const seen = /* @__PURE__ */ new Set();
|