@ai-matrx/records 0.98.8 → 0.98.9
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/{table-kind-CboiMJuE.d.cts → client-9fzhCPD5.d.cts} +2771 -4
- package/dist/{table-kind-B4sdlvHf.d.ts → client-DcWZjmg2.d.ts} +2771 -4
- package/dist/core/index.cjs +100 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +19 -17
- package/dist/core/index.d.ts +19 -17
- package/dist/core/index.js +100 -3
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +52 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +11 -12
- package/dist/data/index.d.ts +11 -12
- package/dist/data/index.js +52 -0
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-BIuPJ3Vj.d.ts → declareTable-B6ic3leL.d.ts} +3 -4
- package/dist/{declareTable-d-HxRmF0.d.cts → declareTable-_GwN-ERY.d.cts} +3 -4
- package/dist/{doors-Bx3Shs3z.d.cts → doors-Dm5q9H8Y.d.cts} +1 -1
- package/dist/{doors-BTifsjNv.d.ts → doors-t-Oc2l9E.d.ts} +1 -1
- package/dist/entity/index.d.cts +7 -7
- package/dist/entity/index.d.ts +7 -7
- package/dist/{field-CJtssH3q.d.ts → field-BIRNApm1.d.ts} +2 -2
- package/dist/{field-DoVl2I9K.d.cts → field-BLy8drjM.d.cts} +2 -2
- package/dist/forms/index.d.cts +3 -3
- package/dist/forms/index.d.ts +3 -3
- package/dist/index.cjs +45 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -13
- package/dist/index.d.ts +30 -13
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/dist/memory/index.d.cts +7 -7
- package/dist/memory/index.d.ts +7 -7
- package/dist/{objectOrganization-Crk9gJUM.d.ts → objectOrganization-D5Ytjah7.d.ts} +1 -1
- package/dist/{objectOrganization-CUa6jjhV.d.cts → objectOrganization-zgpoUAH1.d.cts} +1 -1
- package/dist/{port-CRP5g9l9.d.cts → port-B9glCG2h.d.cts} +3 -3
- package/dist/{port-CtnELAJQ.d.ts → port-C-p-_lAu.d.ts} +3 -3
- package/dist/{portal-DW5NGBT0.d.ts → portal-B9HCNPTc.d.ts} +2 -2
- package/dist/{portal-C4N9ByaY.d.cts → portal-C_LgvDeh.d.cts} +2 -2
- package/dist/{ports-WwHHNwge.d.ts → ports-BE_5jz-c.d.ts} +2 -2
- package/dist/{ports-YIh9jrCZ.d.cts → ports-BIdYUS-C.d.cts} +2 -2
- package/dist/questions/index.d.cts +9 -10
- package/dist/questions/index.d.ts +9 -10
- package/dist/react/index.cjs +97 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +86 -1
- package/dist/react/index.d.ts +86 -1
- package/dist/react/index.js +97 -0
- 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-CxGK1OEK.d.cts → record-BrJNCmH1.d.cts} +1 -1
- package/dist/{record-CxGK1OEK.d.ts → record-BrJNCmH1.d.ts} +1 -1
- package/dist/{relation-Dh-lCkkh.d.ts → relation-BxGXLRaG.d.ts} +3 -3
- package/dist/{relation-DSGhM3tO.d.cts → relation-R10qQyQU.d.cts} +3 -3
- package/dist/{rule-DQpC7WqT.d.cts → rule-BGtYd6Pf.d.cts} +2 -2
- package/dist/{rule-xNwJF6Qo.d.ts → rule-BtjrE42J.d.ts} +2 -2
- package/dist/scopes/index.d.cts +3 -3
- package/dist/scopes/index.d.ts +3 -3
- package/dist/search/index.d.cts +1 -1
- package/dist/search/index.d.ts +1 -1
- package/dist/setup/index.cjs +52 -0
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +12 -13
- package/dist/setup/index.d.ts +12 -13
- package/dist/setup/index.js +52 -0
- package/dist/setup/index.js.map +1 -1
- package/dist/{subscription-BVCn1PVe.d.cts → subscription-BEM4B4dR.d.cts} +3 -3
- package/dist/{subscription-DQzPVKBR.d.ts → subscription-Ca15Z7Gu.d.ts} +3 -3
- package/dist/templates/index.d.cts +10 -10
- package/dist/templates/index.d.ts +10 -10
- package/dist/typed-table/index.cjs +52 -0
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +10 -11
- package/dist/typed-table/index.d.ts +10 -11
- package/dist/typed-table/index.js +52 -0
- package/dist/typed-table/index.js.map +1 -1
- package/dist/{types-3lM5f6b0.d.cts → types-5ql9_q-o.d.cts} +2 -2
- package/dist/{types-04kFNi3-.d.ts → types-BALEbMc8.d.ts} +2 -2
- package/dist/{types-DKJO83lQ.d.cts → types-BhnjvJ8U.d.cts} +2 -2
- package/dist/{types-SUAmeBId.d.ts → types-CURw95qc.d.ts} +2 -2
- package/dist/{types-DKeGkHpE.d.cts → types-DRMeL0uW.d.cts} +2 -2
- package/dist/{types-DJVccwh0.d.ts → types-_odOqLOe.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-BIJtP2KB.d.cts → validate-Cdtk0y18.d.cts} +1 -1
- package/dist/{validate--y-pPc-c.d.ts → validate-ChibJPPI.d.ts} +1 -1
- package/dist/views/index.d.cts +9 -10
- package/dist/views/index.d.ts +9 -10
- package/package.json +3 -3
- package/dist/client-C1B-MNzb.d.ts +0 -2704
- package/dist/client-D2jAgJNn.d.cts +0 -2704
package/dist/core/index.d.cts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { a as RecordsError, R as RecordsResult, P as PgError,
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { d as RecordsDataSource } from '../ports-
|
|
6
|
-
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, 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-
|
|
7
|
-
import { F as Field } from '../field-
|
|
8
|
-
export { A as ADDRESS_PARTS,
|
|
9
|
-
export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.cjs';
|
|
10
|
-
export {
|
|
11
|
-
export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions,
|
|
12
|
-
export { A as AggregateBucket,
|
|
13
|
-
export {
|
|
14
|
-
export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-
|
|
15
|
-
export {
|
|
16
|
-
|
|
17
|
-
import '../doors-Bx3Shs3z.cjs';
|
|
1
|
+
import { a as RecordsError, R as RecordsResult, P as PgError, q as StaleWriteDetail, n as RecordDocument, r as PredictedRefusal, s as ReadValue, U as Uuid } from '../record-BrJNCmH1.cjs';
|
|
2
|
+
export { t as ABSENCE_REASONS, u as ACTOR_VOCABULARY, v as AbsenceReason, A as Actor, w as COMPUTE_ON, x as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, y as DECLARABLE_FIELD_KINDS, z as DELIVERIES, D as DeclarableFieldKind, B as Delivery, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, M as Freshness, 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, Z as MergeFieldModifier, _ as MergeFieldSemanticType, $ as MergeFieldSource, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a2 as OverridePolicy, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, 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, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, 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, S as StorageMode, ap as StoreDoorName, aq as StoreRefusalCode, ar as StoredRecord, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, b as TableDisplay, av as TableOrigin, T as TableType, h as Timestamp, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from '../record-BrJNCmH1.cjs';
|
|
3
|
+
import { a as TableKindFacts } from '../client-9fzhCPD5.cjs';
|
|
4
|
+
export { A as ARCHIVE_LANES, b as ARCHIVE_LANE_LABEL, c as ARCHIVE_LANE_MEANS, d as A_PERSONS_REFUSAL, e as ActionRefusal, f as ActionRunResult, g as AdminTable, h as AnonTokenBinding, i as ArchiveLane, j as ArchivedChecklistTemplate, k as ArchivedDoorRow, l as ArchivedForm, m as ArchivedRow, n as AsOf, o as AutomationAction, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRun, w as AutomationRunStatus, x as AutomationRuns, y as AutomationSpec, z as AutomationStep, B as AutomationTrigger, C as AutomationValue, D as AutomationValues, E as AutomationWeekday, G as BUILT_KIND_WORD, H as CHOICE_NUDGES, I as CaptureField, J as CaptureFileRef, K as CaptureOutcome, L as CaptureQuestion, M as CaptureSheetFace, N as CaptureSheetSummary, O as ChecklistDeclared, P as ChecklistRequirement, Q as ChecklistRequirementKind, S as ChecklistRoleSpec, U as ChecklistRunStarted, V as ChecklistRunStep, W as ChecklistRunSummary, X as ChecklistSpec, Y as ChecklistStepCompleted, Z as ChecklistStepSpec, _ as ChecklistTemplateShape, $ as ChecklistTemplateSummary, a0 as ChecklistTrigger, a1 as ChecklistTriggerKind, a2 as ChoiceCellBack, a3 as ChoiceLike, a4 as ChoiceNudge, a5 as ChoiceOption, a6 as ChoiceRehome, a7 as ChoiceUsage, a8 as ChoicesRehomed, a9 as CommentThreadRead, aa as CommentWritten, ab as ConversationScope, ac as ConversationScopeContext, ad as CustomFieldTableType, ae as DEFAULT_ARCHIVE_LANE, af as DEFAULT_PAGE_SIZE, ag as DRILL_CHART_TOKENS, ah as DRILL_DESCRIPTION_MAX, ai as DRILL_DOORS, aj as DRILL_SCHEMA, ak as DataHomeTable, al as DecorationColor, am as DecorationPath, an as DecorationRule, ao as DecorationRuleOp, ap as DecorationTarget, aq as DocRenderRow, ar as DocSignatureCheck, as as DocSignatureRow, at as DocTemplateRow, au as DocToken, av as DocUnresolvedToken, aw as DrillAdHocOp, ax as DrillAnswer, ay as DrillAnswerRow, az as DrillChartToken, aA as DrillDeclaration, aB as DrillDefinition, aC as DrillDimension, aD as DrillFinding, aE as DrillGrain, aF as DrillHaving, aG as DrillLane, aH as DrillLevel, aI as DrillMeasure, aJ as DrillMeasureOp, aK as DrillMeasureWhereValue, aL as DrillPath, aM as DrillQuestion, aN as DrillRecords, aO as DrillRowsPage, aP as DrillSource, aQ as DrillView, aR as EnrichAlternate, aS as EnrichCell, aT as EnrichDeclared, aU as EnrichDueRow, aV as EnrichRun, aW as EnrichSource, aX as Enrichment, aY as EnrichmentSummary, aZ as EntityBackLinkItem, a_ as EntityBackLinks, a$ as EntityFieldRights, b0 as EntityFieldValue, b1 as EntityFieldsAcross, b2 as EntityRecordMatch, b3 as EntityRecordRead, b4 as EntityRecordsFound, b5 as EntityRowWritten, b6 as EntityTableFacts, b7 as ExternalPrincipalCard, F as FieldDrift, b8 as FieldDriftAspect, b9 as FieldHistoryEntry, ba as FieldRetyped, bb as FormArchiveAnswer, bc as FormulaParse, bd as FormulaPreview, be as GridLayout, bf as GridLayoutMode, bg as GridRowHeight, bh as HistoryActor, bi as HistoryActorKind, bj as HistoryChange, bk as Home, bl as ImportBatchResult, bm as ImportColumnPlan, bn as ImportColumnsDeclared, bo as ImportFinished, bp as ImportOpened, bq as ImportOutcome, br as ImportPlan, bs as ImportPolicy, bt as ImportProposal, bu as ImportReport, bv as ImportRun, bw as InboundAddress, bx as InboundDeclared, by as InboxCounts, bz as InboxStateChange, bA as IoExportPage, bB as MigrationEntry, bC as MigrationUndone, bD as NewEntityFieldDeclaration, bE as OutsideShareAnswer, bF as PIPELINE_RULE_KINDS, bG as ParentExtracted, bH as Pipeline, bI as PipelineColumn, bJ as PipelineDeclared, bK as PipelineGate, bL as PipelineGatePreview, bM as PipelineMissingField, bN as PipelineMoveMany, bO as PipelineMoveManyItem, bP as PipelineMoveManyResult, bQ as PipelineMoveResult, bR as PipelineMoveVerdict, bS as PipelineRule, bT as PipelineRuleKind, bU as PipelineSpec, bV as PipelineStage, bW as PipelineVerdict, bX as PromotedPredicate, bY as PublishBinding, bZ as PublishBindingKind, b_ as QueryPlan, b$ as ROW_WEB_NOT_READY, c0 as RecordChangeAction, c1 as RecordComment, c2 as RecordEvent, c3 as RecordHeader, c4 as RecordHistoryEntry, c5 as RecordQuery, c6 as RecordRowControls, c7 as RecordScopeComment, c8 as RecordScopeContext, c9 as RecordScopeField, ca as RecordScopeHistoryEntry, cb as RecordScopeRelation, cc as RecordScopeWithheld, cd as RecordSplit, R as RecordsClient, ce as RecordsMerged, cf as RegisteredTable, cg as ResolvedPublishBinding, ch as ResolvedPublishBindingKind, ci as RestorePreview, cj as RestoreResult, ck as RetypeBehaviour, cl as RetypePreview, cm as RowAction, cn as RowActionStep, co as RowDefaultsApplied, cp as SHOWN_TO_LABEL, cq as SHOWN_TO_VALUES, cr as SHOWN_TO_WHO_MAY_CHANGE, cs as STAGE_RULE_ENFORCEMENT, ct as STAGE_RULE_ON_FAIL, cu as ShownTo, cv as StagePending, cw as StagePendingOnBoard, cx as StageRuleEnforcement, cy as StageRuleOnFail, cz as StageRuleWarning, cA as TABLE_KIND_PREFIX, cB as Table, T as TableArchiveProgress, cC as TableCapacity, cD as TableCopyInProgress, cE as TableDecorations, cF as TableDuplicateProgress, cG as TableDuplicated, cH as TableFact, cI as TableHome, cJ as TableHomeDestination, cK as TableLevel, cL as TableLevelApproval, cM as TableLevelFacts, cN as TableLevelSet, cO as TableListEntry, cP as TableLiveLocation, cQ as TableMoved, cR as TablePlacement, cS as TablePlacementFact, cT as TableReaderRule, cU as TableRenderSchema, cV as TableRestoreProgress, cW as TableRowCount, cX as TableRowDefaults, cY as TableRowDefaultsPatch, cZ as TableSchemaMode, c_ as TableSyncResult, c$ as TableSyncSource, d0 as TableSyncSpec, d1 as TableWebhook, d2 as TableWebhookDeclared, d3 as TypedChoiceDecision, d4 as ViewLayout, d5 as ViewOrderSet, d6 as WorkApprovalDecision, d7 as WorkApprovalFiled, d8 as WorkApprovalState, d9 as WorkApprover, da as WorkAssignment, db as WorkAssignmentField, dc as WorkChange, dd as WorkDecideMany, de as WorkDecideManyItem, df as WorkDecideManyResult, dg as WorkDecideVerdict, dh as WorkDueState, di as WorkGraph, dj as WorkInboxItem, dk as WorkInboxKind, dl as WorkInboxView, dm as WorkInstantiation, dn as WorkListFlavour, dp as WorkListItem, dq as WorkOrigin, dr as WorkRecordState, ds as WorkSlotHold, dt as WorkState, du as WorkTemplateNode, dv as WorkTemplateRelation, dw as WorkTurn, dx as actionRefusals, dy as archivedByLine, dz as archivedWhen, dA as asChoiceNudge, dB as asWriteConflict, dC as choiceSlug, dD as choiceValuesOf, dE as choicesOf, dF as createRecordsClient, dG as decideTypedChoice, dH as declareDrillDefinition, dI as drillAnswerOf, dJ as drillFindingKnob, dK as emptyArchiveLine, dL as exportPageXlsx, dM as fieldKindOf, dN as holdsARetiredChoice, dO as intersectIds, dP as isAPersonsRefusal, dQ as isArchiveLane, dR as isFoundation, dS as isShownTo, dT as isTableKind, dU as isTheChosen, dV as keptGroups, dW as keptOutOfSight, dX as keptTableHref, dY as levelHasShownTo, dZ as looksLikeAnId, d_ as mayDrag, d$ as moveConsequence, e0 as moveInOrder, e1 as offeredAsContext, e2 as optionKey, e3 as optionLabel, e4 as parseFieldDrift, e5 as parseTableCopiesInProgress, e6 as parseTableDuplicateProgress, e7 as parseTableDuplicated, e8 as parseTableHome, e9 as parseTableMoved, ea as planQuery, eb as previewRetype, ec as previewRuleChange, ed as recordChangeTrigger, ee as recordSourceKey, ef as recordSourceTable, eg as recordsUseSentence, eh as rehomeSentence, ei as removedChoicesInUse, ej as ruleThatRefuses, ek as rulesWithTopStar, el as sameDocument, em as scopeChip, en as sheetSyncSpec, eo as tableIdOf, ep as tableJsonSchema, eq as tableKindMapping, er as tableKindSlug, es as tableRenderSchema, et as valueConverts, eu as withRowCounts, ev as withTableFacts, ew as withTablePlacement } from '../client-9fzhCPD5.cjs';
|
|
5
|
+
import { d as RecordsDataSource } from '../ports-BIdYUS-C.cjs';
|
|
6
|
+
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, 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-BIdYUS-C.cjs';
|
|
7
|
+
import { F as Field } from '../field-BLy8drjM.cjs';
|
|
8
|
+
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, m as CoercibleField, n as FIELD_KINDS, 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-BLy8drjM.cjs';
|
|
9
|
+
export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChooseAlternateArgs, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, alternatePatch, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, chooseAlternate, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.cjs';
|
|
10
|
+
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-BGtYd6Pf.cjs';
|
|
11
|
+
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-C_LgvDeh.cjs';
|
|
12
|
+
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, M as MySubscription, Q as QuietHours, R as RecordFilter, v as RowTemplateRow, w as SavedViewColorBy, x as SavedViewDefinition, y as SavedViewLayout, d as SavedViewRow, z as SavedViewSpecIn, B as StoreFilter, C as StuckRow, E as Subscription, F as SubscriptionBlock, S as SubscriptionCadence, G as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from '../subscription-BEM4B4dR.cjs';
|
|
13
|
+
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-R10qQyQU.cjs';
|
|
14
|
+
export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-zgpoUAH1.cjs';
|
|
15
|
+
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-_GwN-ERY.cjs';
|
|
16
|
+
import '../doors-Dm5q9H8Y.cjs';
|
|
18
17
|
|
|
19
18
|
declare function doorExists(name: string): boolean;
|
|
20
19
|
/**
|
|
@@ -53,6 +52,9 @@ declare const DOORS: {
|
|
|
53
52
|
readonly migrateRetype: "migrate_retype";
|
|
54
53
|
readonly migrateMerge: "migrate_merge";
|
|
55
54
|
readonly migrateUndo: "migrate_undo";
|
|
55
|
+
readonly migrateSplit: "migrate_split";
|
|
56
|
+
readonly migrateExtractParent: "migrate_extract_parent";
|
|
57
|
+
readonly migrations: "migrations";
|
|
56
58
|
readonly recordValues: "record_values";
|
|
57
59
|
readonly recordValuesVersioned: "record_values_versioned";
|
|
58
60
|
readonly valueRead: "value_read";
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { a as RecordsError, R as RecordsResult, P as PgError,
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { d as RecordsDataSource } from '../ports-
|
|
6
|
-
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, 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-
|
|
7
|
-
import { F as Field } from '../field-
|
|
8
|
-
export { A as ADDRESS_PARTS,
|
|
9
|
-
export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.js';
|
|
10
|
-
export {
|
|
11
|
-
export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions,
|
|
12
|
-
export { A as AggregateBucket,
|
|
13
|
-
export {
|
|
14
|
-
export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-
|
|
15
|
-
export {
|
|
16
|
-
|
|
17
|
-
import '../doors-BTifsjNv.js';
|
|
1
|
+
import { a as RecordsError, R as RecordsResult, P as PgError, q as StaleWriteDetail, n as RecordDocument, r as PredictedRefusal, s as ReadValue, U as Uuid } from '../record-BrJNCmH1.js';
|
|
2
|
+
export { t as ABSENCE_REASONS, u as ACTOR_VOCABULARY, v as AbsenceReason, A as Actor, w as COMPUTE_ON, x as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, y as DECLARABLE_FIELD_KINDS, z as DELIVERIES, D as DeclarableFieldKind, B as Delivery, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, M as Freshness, 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, Z as MergeFieldModifier, _ as MergeFieldSemanticType, $ as MergeFieldSource, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a2 as OverridePolicy, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, 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, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, 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, S as StorageMode, ap as StoreDoorName, aq as StoreRefusalCode, ar as StoredRecord, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, b as TableDisplay, av as TableOrigin, T as TableType, h as Timestamp, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from '../record-BrJNCmH1.js';
|
|
3
|
+
import { a as TableKindFacts } from '../client-DcWZjmg2.js';
|
|
4
|
+
export { A as ARCHIVE_LANES, b as ARCHIVE_LANE_LABEL, c as ARCHIVE_LANE_MEANS, d as A_PERSONS_REFUSAL, e as ActionRefusal, f as ActionRunResult, g as AdminTable, h as AnonTokenBinding, i as ArchiveLane, j as ArchivedChecklistTemplate, k as ArchivedDoorRow, l as ArchivedForm, m as ArchivedRow, n as AsOf, o as AutomationAction, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRun, w as AutomationRunStatus, x as AutomationRuns, y as AutomationSpec, z as AutomationStep, B as AutomationTrigger, C as AutomationValue, D as AutomationValues, E as AutomationWeekday, G as BUILT_KIND_WORD, H as CHOICE_NUDGES, I as CaptureField, J as CaptureFileRef, K as CaptureOutcome, L as CaptureQuestion, M as CaptureSheetFace, N as CaptureSheetSummary, O as ChecklistDeclared, P as ChecklistRequirement, Q as ChecklistRequirementKind, S as ChecklistRoleSpec, U as ChecklistRunStarted, V as ChecklistRunStep, W as ChecklistRunSummary, X as ChecklistSpec, Y as ChecklistStepCompleted, Z as ChecklistStepSpec, _ as ChecklistTemplateShape, $ as ChecklistTemplateSummary, a0 as ChecklistTrigger, a1 as ChecklistTriggerKind, a2 as ChoiceCellBack, a3 as ChoiceLike, a4 as ChoiceNudge, a5 as ChoiceOption, a6 as ChoiceRehome, a7 as ChoiceUsage, a8 as ChoicesRehomed, a9 as CommentThreadRead, aa as CommentWritten, ab as ConversationScope, ac as ConversationScopeContext, ad as CustomFieldTableType, ae as DEFAULT_ARCHIVE_LANE, af as DEFAULT_PAGE_SIZE, ag as DRILL_CHART_TOKENS, ah as DRILL_DESCRIPTION_MAX, ai as DRILL_DOORS, aj as DRILL_SCHEMA, ak as DataHomeTable, al as DecorationColor, am as DecorationPath, an as DecorationRule, ao as DecorationRuleOp, ap as DecorationTarget, aq as DocRenderRow, ar as DocSignatureCheck, as as DocSignatureRow, at as DocTemplateRow, au as DocToken, av as DocUnresolvedToken, aw as DrillAdHocOp, ax as DrillAnswer, ay as DrillAnswerRow, az as DrillChartToken, aA as DrillDeclaration, aB as DrillDefinition, aC as DrillDimension, aD as DrillFinding, aE as DrillGrain, aF as DrillHaving, aG as DrillLane, aH as DrillLevel, aI as DrillMeasure, aJ as DrillMeasureOp, aK as DrillMeasureWhereValue, aL as DrillPath, aM as DrillQuestion, aN as DrillRecords, aO as DrillRowsPage, aP as DrillSource, aQ as DrillView, aR as EnrichAlternate, aS as EnrichCell, aT as EnrichDeclared, aU as EnrichDueRow, aV as EnrichRun, aW as EnrichSource, aX as Enrichment, aY as EnrichmentSummary, aZ as EntityBackLinkItem, a_ as EntityBackLinks, a$ as EntityFieldRights, b0 as EntityFieldValue, b1 as EntityFieldsAcross, b2 as EntityRecordMatch, b3 as EntityRecordRead, b4 as EntityRecordsFound, b5 as EntityRowWritten, b6 as EntityTableFacts, b7 as ExternalPrincipalCard, F as FieldDrift, b8 as FieldDriftAspect, b9 as FieldHistoryEntry, ba as FieldRetyped, bb as FormArchiveAnswer, bc as FormulaParse, bd as FormulaPreview, be as GridLayout, bf as GridLayoutMode, bg as GridRowHeight, bh as HistoryActor, bi as HistoryActorKind, bj as HistoryChange, bk as Home, bl as ImportBatchResult, bm as ImportColumnPlan, bn as ImportColumnsDeclared, bo as ImportFinished, bp as ImportOpened, bq as ImportOutcome, br as ImportPlan, bs as ImportPolicy, bt as ImportProposal, bu as ImportReport, bv as ImportRun, bw as InboundAddress, bx as InboundDeclared, by as InboxCounts, bz as InboxStateChange, bA as IoExportPage, bB as MigrationEntry, bC as MigrationUndone, bD as NewEntityFieldDeclaration, bE as OutsideShareAnswer, bF as PIPELINE_RULE_KINDS, bG as ParentExtracted, bH as Pipeline, bI as PipelineColumn, bJ as PipelineDeclared, bK as PipelineGate, bL as PipelineGatePreview, bM as PipelineMissingField, bN as PipelineMoveMany, bO as PipelineMoveManyItem, bP as PipelineMoveManyResult, bQ as PipelineMoveResult, bR as PipelineMoveVerdict, bS as PipelineRule, bT as PipelineRuleKind, bU as PipelineSpec, bV as PipelineStage, bW as PipelineVerdict, bX as PromotedPredicate, bY as PublishBinding, bZ as PublishBindingKind, b_ as QueryPlan, b$ as ROW_WEB_NOT_READY, c0 as RecordChangeAction, c1 as RecordComment, c2 as RecordEvent, c3 as RecordHeader, c4 as RecordHistoryEntry, c5 as RecordQuery, c6 as RecordRowControls, c7 as RecordScopeComment, c8 as RecordScopeContext, c9 as RecordScopeField, ca as RecordScopeHistoryEntry, cb as RecordScopeRelation, cc as RecordScopeWithheld, cd as RecordSplit, R as RecordsClient, ce as RecordsMerged, cf as RegisteredTable, cg as ResolvedPublishBinding, ch as ResolvedPublishBindingKind, ci as RestorePreview, cj as RestoreResult, ck as RetypeBehaviour, cl as RetypePreview, cm as RowAction, cn as RowActionStep, co as RowDefaultsApplied, cp as SHOWN_TO_LABEL, cq as SHOWN_TO_VALUES, cr as SHOWN_TO_WHO_MAY_CHANGE, cs as STAGE_RULE_ENFORCEMENT, ct as STAGE_RULE_ON_FAIL, cu as ShownTo, cv as StagePending, cw as StagePendingOnBoard, cx as StageRuleEnforcement, cy as StageRuleOnFail, cz as StageRuleWarning, cA as TABLE_KIND_PREFIX, cB as Table, T as TableArchiveProgress, cC as TableCapacity, cD as TableCopyInProgress, cE as TableDecorations, cF as TableDuplicateProgress, cG as TableDuplicated, cH as TableFact, cI as TableHome, cJ as TableHomeDestination, cK as TableLevel, cL as TableLevelApproval, cM as TableLevelFacts, cN as TableLevelSet, cO as TableListEntry, cP as TableLiveLocation, cQ as TableMoved, cR as TablePlacement, cS as TablePlacementFact, cT as TableReaderRule, cU as TableRenderSchema, cV as TableRestoreProgress, cW as TableRowCount, cX as TableRowDefaults, cY as TableRowDefaultsPatch, cZ as TableSchemaMode, c_ as TableSyncResult, c$ as TableSyncSource, d0 as TableSyncSpec, d1 as TableWebhook, d2 as TableWebhookDeclared, d3 as TypedChoiceDecision, d4 as ViewLayout, d5 as ViewOrderSet, d6 as WorkApprovalDecision, d7 as WorkApprovalFiled, d8 as WorkApprovalState, d9 as WorkApprover, da as WorkAssignment, db as WorkAssignmentField, dc as WorkChange, dd as WorkDecideMany, de as WorkDecideManyItem, df as WorkDecideManyResult, dg as WorkDecideVerdict, dh as WorkDueState, di as WorkGraph, dj as WorkInboxItem, dk as WorkInboxKind, dl as WorkInboxView, dm as WorkInstantiation, dn as WorkListFlavour, dp as WorkListItem, dq as WorkOrigin, dr as WorkRecordState, ds as WorkSlotHold, dt as WorkState, du as WorkTemplateNode, dv as WorkTemplateRelation, dw as WorkTurn, dx as actionRefusals, dy as archivedByLine, dz as archivedWhen, dA as asChoiceNudge, dB as asWriteConflict, dC as choiceSlug, dD as choiceValuesOf, dE as choicesOf, dF as createRecordsClient, dG as decideTypedChoice, dH as declareDrillDefinition, dI as drillAnswerOf, dJ as drillFindingKnob, dK as emptyArchiveLine, dL as exportPageXlsx, dM as fieldKindOf, dN as holdsARetiredChoice, dO as intersectIds, dP as isAPersonsRefusal, dQ as isArchiveLane, dR as isFoundation, dS as isShownTo, dT as isTableKind, dU as isTheChosen, dV as keptGroups, dW as keptOutOfSight, dX as keptTableHref, dY as levelHasShownTo, dZ as looksLikeAnId, d_ as mayDrag, d$ as moveConsequence, e0 as moveInOrder, e1 as offeredAsContext, e2 as optionKey, e3 as optionLabel, e4 as parseFieldDrift, e5 as parseTableCopiesInProgress, e6 as parseTableDuplicateProgress, e7 as parseTableDuplicated, e8 as parseTableHome, e9 as parseTableMoved, ea as planQuery, eb as previewRetype, ec as previewRuleChange, ed as recordChangeTrigger, ee as recordSourceKey, ef as recordSourceTable, eg as recordsUseSentence, eh as rehomeSentence, ei as removedChoicesInUse, ej as ruleThatRefuses, ek as rulesWithTopStar, el as sameDocument, em as scopeChip, en as sheetSyncSpec, eo as tableIdOf, ep as tableJsonSchema, eq as tableKindMapping, er as tableKindSlug, es as tableRenderSchema, et as valueConverts, eu as withRowCounts, ev as withTableFacts, ew as withTablePlacement } from '../client-DcWZjmg2.js';
|
|
5
|
+
import { d as RecordsDataSource } from '../ports-BE_5jz-c.js';
|
|
6
|
+
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, 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-BE_5jz-c.js';
|
|
7
|
+
import { F as Field } from '../field-BIRNApm1.js';
|
|
8
|
+
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, m as CoercibleField, n as FIELD_KINDS, 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-BIRNApm1.js';
|
|
9
|
+
export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChooseAlternateArgs, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, alternatePatch, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, chooseAlternate, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.js';
|
|
10
|
+
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-BtjrE42J.js';
|
|
11
|
+
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-B9HCNPTc.js';
|
|
12
|
+
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, M as MySubscription, Q as QuietHours, R as RecordFilter, v as RowTemplateRow, w as SavedViewColorBy, x as SavedViewDefinition, y as SavedViewLayout, d as SavedViewRow, z as SavedViewSpecIn, B as StoreFilter, C as StuckRow, E as Subscription, F as SubscriptionBlock, S as SubscriptionCadence, G as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from '../subscription-Ca15Z7Gu.js';
|
|
13
|
+
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-BxGXLRaG.js';
|
|
14
|
+
export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-D5Ytjah7.js';
|
|
15
|
+
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-B6ic3leL.js';
|
|
16
|
+
import '../doors-t-Oc2l9E.js';
|
|
18
17
|
|
|
19
18
|
declare function doorExists(name: string): boolean;
|
|
20
19
|
/**
|
|
@@ -53,6 +52,9 @@ declare const DOORS: {
|
|
|
53
52
|
readonly migrateRetype: "migrate_retype";
|
|
54
53
|
readonly migrateMerge: "migrate_merge";
|
|
55
54
|
readonly migrateUndo: "migrate_undo";
|
|
55
|
+
readonly migrateSplit: "migrate_split";
|
|
56
|
+
readonly migrateExtractParent: "migrate_extract_parent";
|
|
57
|
+
readonly migrations: "migrations";
|
|
56
58
|
readonly recordValues: "record_values";
|
|
57
59
|
readonly recordValuesVersioned: "record_values_versioned";
|
|
58
60
|
readonly valueRead: "value_read";
|
package/dist/core/index.js
CHANGED
|
@@ -5127,6 +5127,49 @@ function tableRenderSchema(facts) {
|
|
|
5127
5127
|
return { kind: slug, fields: out };
|
|
5128
5128
|
}
|
|
5129
5129
|
|
|
5130
|
+
// src/alternates.ts
|
|
5131
|
+
function refuse(code, message, hint) {
|
|
5132
|
+
return { ok: false, error: { code, message, hint, ours: true } };
|
|
5133
|
+
}
|
|
5134
|
+
function alternatePatch(document, field_key, alternate_index) {
|
|
5135
|
+
const block = document._values ?? {};
|
|
5136
|
+
const envelope = block[field_key];
|
|
5137
|
+
const alternates = Array.isArray(envelope?.alternates) ? envelope.alternates : [];
|
|
5138
|
+
const chosen = alternates[alternate_index];
|
|
5139
|
+
if (!envelope || !chosen) return { ok: false, message: "That other value is no longer on this record." };
|
|
5140
|
+
const kept = alternates.filter((_, i) => i !== alternate_index);
|
|
5141
|
+
const current = document[field_key];
|
|
5142
|
+
const next = [...kept];
|
|
5143
|
+
if (current !== null && current !== void 0) {
|
|
5144
|
+
const taken = new Set(kept.map((a) => a.rank));
|
|
5145
|
+
let rank = 1;
|
|
5146
|
+
while (taken.has(rank)) rank += 1;
|
|
5147
|
+
next.push({ value: current, ...envelope.src ? { src: envelope.src } : {}, rank });
|
|
5148
|
+
}
|
|
5149
|
+
const { ver: _ver, actor: _actor, at: _at, on_behalf_of: _on, absent: _absent, alternates: _alts, src: _src, ...rest } = envelope;
|
|
5150
|
+
const changed = { ...rest, ...chosen.src ? { src: chosen.src } : {} };
|
|
5151
|
+
if (next.length > 0) changed["alternates"] = next;
|
|
5152
|
+
return {
|
|
5153
|
+
ok: true,
|
|
5154
|
+
patch: {
|
|
5155
|
+
[field_key]: chosen.value,
|
|
5156
|
+
// THE WHOLE BLOCK — every other field's envelope and alternates travel with it.
|
|
5157
|
+
_values: { ...block, [field_key]: changed }
|
|
5158
|
+
}
|
|
5159
|
+
};
|
|
5160
|
+
}
|
|
5161
|
+
async function chooseAlternate(client, { record_id, field_key, alternate_index }) {
|
|
5162
|
+
const read = await client.recordRead({ record_id, withVersion: true });
|
|
5163
|
+
if (!read.ok) return read;
|
|
5164
|
+
const version = read.data.version;
|
|
5165
|
+
if (version === null || version === void 0) {
|
|
5166
|
+
return refuse("stale_read", "Nothing was saved: this record's latest changes could not be checked.", "Reload, then try again.");
|
|
5167
|
+
}
|
|
5168
|
+
const built = alternatePatch(read.data.document, field_key, alternate_index);
|
|
5169
|
+
if (!built.ok) return refuse("not_found", built.message, "Reload, then look again.");
|
|
5170
|
+
return client.recordUpdate({ record_id, patch: built.patch, expectedVersion: version });
|
|
5171
|
+
}
|
|
5172
|
+
|
|
5130
5173
|
// src/core/primedBundle.ts
|
|
5131
5174
|
var PRIMED_TTL_MS = 15e3;
|
|
5132
5175
|
var REGISTRY = /* @__PURE__ */ Symbol.for("@ai-matrx/records/primed-table-page-bundles");
|
|
@@ -6161,6 +6204,14 @@ var DOORS = {
|
|
|
6161
6204
|
// archived and aliased), and put any recorded Migration back.
|
|
6162
6205
|
migrateMerge: "migrate_merge",
|
|
6163
6206
|
migrateUndo: "migrate_undo",
|
|
6207
|
+
// CORE-VISION (2026-10-10): the structural Migrations a person runs on ONE record from its menu.
|
|
6208
|
+
// Split moves the named values to a new record of the same Table (the original keeps its id);
|
|
6209
|
+
// extract parent copies the named values up into a new record of another Table and puts this
|
|
6210
|
+
// record under it. Both answer a `migration_id` that `migrateUndo` takes. `migrations` lists
|
|
6211
|
+
// the Migration log for one target, newest first.
|
|
6212
|
+
migrateSplit: "migrate_split",
|
|
6213
|
+
migrateExtractParent: "migrate_extract_parent",
|
|
6214
|
+
migrations: "migrations",
|
|
6164
6215
|
recordValues: "record_values",
|
|
6165
6216
|
recordValuesVersioned: "record_values_versioned",
|
|
6166
6217
|
valueRead: "value_read",
|
|
@@ -6715,7 +6766,7 @@ function doorCensus() {
|
|
|
6715
6766
|
}
|
|
6716
6767
|
|
|
6717
6768
|
// src/core/supabase.ts
|
|
6718
|
-
function
|
|
6769
|
+
function refuse2(code, message, hint) {
|
|
6719
6770
|
return { data: null, error: { code, message, hint, details: "" } };
|
|
6720
6771
|
}
|
|
6721
6772
|
function supabaseDataSource(client) {
|
|
@@ -6728,7 +6779,7 @@ function supabaseDataSource(client) {
|
|
|
6728
6779
|
rpc(fn, args, options) {
|
|
6729
6780
|
if (!hasSchema) {
|
|
6730
6781
|
return Promise.resolve(
|
|
6731
|
-
|
|
6782
|
+
refuse2(
|
|
6732
6783
|
"data_source_unbound",
|
|
6733
6784
|
`The records client was given something that is not a supabase client: it has no schema() method, so the door ${fn} cannot be called in the schema it lives in.`,
|
|
6734
6785
|
"Pass a supabase-js v2 client (createClient(...)) to supabaseDataSource()."
|
|
@@ -6738,7 +6789,7 @@ function supabaseDataSource(client) {
|
|
|
6738
6789
|
const name = options?.schema;
|
|
6739
6790
|
if (!name) {
|
|
6740
6791
|
return Promise.resolve(
|
|
6741
|
-
|
|
6792
|
+
refuse2(
|
|
6742
6793
|
"schema_unsaid",
|
|
6743
6794
|
`The door ${fn} was called without saying which schema it lives in. Every door of this store is custom.${fn} and every trust door is iam.${fn}; an unqualified call reaches PostgREST's default profile (public) and is refused there.`,
|
|
6744
6795
|
"This is a bug in the caller, not in your data: /core says the schema on every call."
|
|
@@ -8089,6 +8140,49 @@ function createRecordsClient(given) {
|
|
|
8089
8140
|
}
|
|
8090
8141
|
return result;
|
|
8091
8142
|
},
|
|
8143
|
+
async migrateSplit({ record_id, moved_keys, note }) {
|
|
8144
|
+
const result = await callDoor(
|
|
8145
|
+
DOORS.migrateSplit,
|
|
8146
|
+
{ p_organization_id: org, p_record_id: record_id, p_moved_keys: moved_keys, p_note: note ?? null },
|
|
8147
|
+
"migrateSplit"
|
|
8148
|
+
);
|
|
8149
|
+
if (result.ok) {
|
|
8150
|
+
announceRecordChanged(record_id);
|
|
8151
|
+
announceRecordChanged(result.data.new_record);
|
|
8152
|
+
}
|
|
8153
|
+
return result;
|
|
8154
|
+
},
|
|
8155
|
+
async migrateExtractParent({ record_id, parent_table_id, moved_keys, note }) {
|
|
8156
|
+
const result = await callDoor(
|
|
8157
|
+
DOORS.migrateExtractParent,
|
|
8158
|
+
{ p_organization_id: org, p_id: record_id, p_parent_table_id: parent_table_id, p_moved_keys: moved_keys, p_note: note ?? null },
|
|
8159
|
+
"migrateExtractParent"
|
|
8160
|
+
);
|
|
8161
|
+
if (result.ok) {
|
|
8162
|
+
announceRecordChanged(record_id);
|
|
8163
|
+
announceRecordChanged(result.data.parent);
|
|
8164
|
+
}
|
|
8165
|
+
return result;
|
|
8166
|
+
},
|
|
8167
|
+
async migrations({ target_id, limit }) {
|
|
8168
|
+
return callDoor(
|
|
8169
|
+
DOORS.migrations,
|
|
8170
|
+
{ p_organization_id: org, p_target_id: target_id ?? null, p_limit: limit ?? 100 },
|
|
8171
|
+
"migrations"
|
|
8172
|
+
);
|
|
8173
|
+
},
|
|
8174
|
+
async recordAsOf({ record_id, recorded_at, world_on }) {
|
|
8175
|
+
return callDoor(
|
|
8176
|
+
DOORS.queryRecordAsOf,
|
|
8177
|
+
{
|
|
8178
|
+
p_organization_id: org,
|
|
8179
|
+
p_record_id: record_id,
|
|
8180
|
+
...recorded_at ? { p_recorded_at: recorded_at } : {},
|
|
8181
|
+
...world_on ? { p_world_on: world_on.slice(0, 10) } : {}
|
|
8182
|
+
},
|
|
8183
|
+
"recordAsOf"
|
|
8184
|
+
);
|
|
8185
|
+
},
|
|
8092
8186
|
async migrateUndo({ migration_id }) {
|
|
8093
8187
|
const result = await callDoor(
|
|
8094
8188
|
DOORS.migrateUndo,
|
|
@@ -8096,6 +8190,7 @@ function createRecordsClient(given) {
|
|
|
8096
8190
|
"migrateUndo"
|
|
8097
8191
|
);
|
|
8098
8192
|
if (result.ok && result.data.record_id) announceRecordChanged(result.data.record_id);
|
|
8193
|
+
if (result.ok && result.data.removed) announceRecordChanged(result.data.removed);
|
|
8099
8194
|
return result;
|
|
8100
8195
|
},
|
|
8101
8196
|
async fieldUpdate({ field_id, patch }) {
|
|
@@ -11418,6 +11513,7 @@ export {
|
|
|
11418
11513
|
addressMapUrl,
|
|
11419
11514
|
addressText,
|
|
11420
11515
|
allowsOtherValues,
|
|
11516
|
+
alternatePatch,
|
|
11421
11517
|
announceRecordChanged,
|
|
11422
11518
|
announceTableStructureChanged,
|
|
11423
11519
|
archivedByLine,
|
|
@@ -11442,6 +11538,7 @@ export {
|
|
|
11442
11538
|
choiceSlug,
|
|
11443
11539
|
choiceValuesOf,
|
|
11444
11540
|
choicesOf,
|
|
11541
|
+
chooseAlternate,
|
|
11445
11542
|
coerceTypedAnswer,
|
|
11446
11543
|
coerceTypedAnswers,
|
|
11447
11544
|
coercionLabel,
|