@ai-matrx/records 0.92.2 → 0.93.0
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 +37 -0
- package/dist/{client-Dzd8gtAo.d.ts → client-DsPuWFp0.d.ts} +8 -8
- package/dist/{client-Cn3odIIB.d.cts → client-EyD3rS0T.d.cts} +8 -8
- package/dist/core/index.cjs +101 -32
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +16 -15
- package/dist/core/index.d.ts +16 -15
- package/dist/core/index.js +101 -32
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +46 -24
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +11 -11
- package/dist/data/index.d.ts +11 -11
- package/dist/data/index.js +46 -24
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-CrL6AZKB.d.cts → declareTable-Bkk_Ewib.d.cts} +4 -4
- package/dist/{declareTable-ZRW5EsTQ.d.ts → declareTable-kL5qZoTe.d.ts} +4 -4
- package/dist/entity/index.cjs +43 -29
- package/dist/entity/index.cjs.map +1 -1
- package/dist/entity/index.d.cts +7 -6
- package/dist/entity/index.d.ts +7 -6
- package/dist/entity/index.js +43 -29
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/react.cjs +43 -29
- package/dist/entity/react.cjs.map +1 -1
- package/dist/entity/react.js +43 -29
- package/dist/entity/react.js.map +1 -1
- package/dist/{field-CCY1rG9l.d.cts → field-6rwt4ejZ.d.cts} +1 -1
- package/dist/{field-enufS5ry.d.ts → field-B-WaVZnS.d.ts} +1 -1
- package/dist/forms/index.d.cts +3 -3
- package/dist/forms/index.d.ts +3 -3
- package/dist/index.cjs +92 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -33
- package/dist/index.d.ts +13 -33
- package/dist/index.js +92 -25
- 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-BII_K3Gm.d.ts +45 -0
- package/dist/objectOrganization-DfjDQtDb.d.cts +45 -0
- package/dist/{port-C54ykAOv.d.ts → port--acgmxh5.d.ts} +5 -2
- package/dist/{port-Drioh9al.d.cts → port-Cx76dq-X.d.cts} +5 -2
- package/dist/{portal-DRdmZ-xv.d.cts → portal-9sRr6cpG.d.cts} +1 -1
- package/dist/{portal-or_f7BkT.d.ts → portal-BDAqsGkg.d.ts} +1 -1
- package/dist/{ports-s0D2jvqn.d.cts → ports-9BQ3zo2y.d.cts} +108 -2
- package/dist/{ports-BeOgjwYl.d.ts → ports-DYWE1ENo.d.ts} +108 -2
- package/dist/react/index.cjs +101 -32
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +1463 -1363
- package/dist/react/index.d.ts +1463 -1363
- package/dist/react/index.js +101 -32
- package/dist/react/index.js.map +1 -1
- package/dist/realtime/index.cjs +43 -13
- package/dist/realtime/index.cjs.map +1 -1
- package/dist/realtime/index.d.cts +9 -3
- package/dist/realtime/index.d.ts +9 -3
- package/dist/realtime/index.js +43 -13
- package/dist/realtime/index.js.map +1 -1
- package/dist/{record-BwCf9wKW.d.cts → record-DmmeuUrC.d.cts} +1 -1
- package/dist/{record-BwCf9wKW.d.ts → record-DmmeuUrC.d.ts} +1 -1
- package/dist/{relation-eLMgv_dV.d.ts → relation-Op1M67le.d.ts} +2 -2
- package/dist/{relation-8vAWCa67.d.cts → relation-qrb2NbHf.d.cts} +2 -2
- package/dist/{rule-wHI5B0Ka.d.cts → rule-CeHg1sy1.d.cts} +1 -1
- package/dist/{rule-D9yNiorf.d.ts → rule-tN2lxvJ1.d.ts} +1 -1
- package/dist/search/index.d.cts +1 -1
- package/dist/search/index.d.ts +1 -1
- package/dist/setup/index.cjs +117 -42
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +25 -11
- package/dist/setup/index.d.ts +25 -11
- package/dist/setup/index.js +117 -42
- package/dist/setup/index.js.map +1 -1
- package/dist/{subscription-CdoI-UaB.d.cts → subscription-Drbxn-9Z.d.cts} +3 -3
- package/dist/{subscription-BynsG1K6.d.ts → subscription-hdTaRrfK.d.ts} +3 -3
- package/dist/{table-kind-i3lZJa3f.d.ts → table-kind-BZkvzBgc.d.ts} +4 -29
- package/dist/{table-kind-DzctQ7dO.d.cts → table-kind-C-hZxDN7.d.cts} +4 -29
- package/dist/templates/index.d.cts +10 -10
- package/dist/templates/index.d.ts +10 -10
- package/dist/typed-table/index.cjs +46 -24
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +10 -10
- package/dist/typed-table/index.d.ts +10 -10
- package/dist/typed-table/index.js +46 -24
- package/dist/typed-table/index.js.map +1 -1
- package/dist/{types-BvL_oKFl.d.ts → types-BauAeFW8.d.ts} +2 -2
- package/dist/{types-DAFP6XFe.d.cts → types-CBmUdBT0.d.cts} +2 -2
- package/dist/{types-BKYEeFt4.d.cts → types-Dek9owBe.d.cts} +2 -2
- package/dist/{types-D8qdG3Lg.d.cts → types-DsgXrESm.d.cts} +2 -2
- package/dist/{types-cpKY7Pjb.d.ts → types-HVgWcZDY.d.ts} +2 -2
- package/dist/{types-DYzXhD7j.d.ts → types-hrw-Eff1.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-DfNMxjmU.d.cts → validate-B_iUeyh2.d.cts} +1 -1
- package/dist/{validate-DbvAParj.d.ts → validate-w-HGGTf-.d.ts} +1 -1
- package/dist/views/index.cjs +438 -0
- package/dist/views/index.cjs.map +1 -0
- package/dist/views/index.d.cts +401 -0
- package/dist/views/index.d.ts +401 -0
- package/dist/views/index.js +415 -0
- package/dist/views/index.js.map +1 -0
- package/package.json +13 -3
package/dist/core/index.d.cts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { a as RecordsError, R as RecordsResult, P as PgError, z as StaleWriteDetail, l as RecordDocument, B as PredictedRefusal, w as ReadValue, U as Uuid } from '../record-
|
|
2
|
-
export { E as ABSENCE_REASONS, G as ACTOR_VOCABULARY, I as AbsenceReason, A as Actor, J as COMPUTE_ON, K as CONTEXT_POLICIES, C as ComputeOn,
|
|
3
|
-
import { o as TableKindFacts } from '../table-kind-
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
1
|
+
import { a as RecordsError, R as RecordsResult, P as PgError, z as StaleWriteDetail, l as RecordDocument, B as PredictedRefusal, w as ReadValue, U as Uuid } from '../record-DmmeuUrC.cjs';
|
|
2
|
+
export { E as ABSENCE_REASONS, G as ACTOR_VOCABULARY, I as AbsenceReason, A as Actor, J as COMPUTE_ON, K as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, L as DECLARABLE_FIELD_KINDS, M as DELIVERIES, D as DeclarableFieldKind, N as Delivery, Q as ENTITY_TOKENS, V as EntityToken, X as FIELD_SENSITIVITIES, Y as FIELD_SOURCES, Z as FRESHNESS, x as FieldBehavior, c as FieldSensitivity, F as FieldSource, _ as ForbiddenEnvelopeWord, $ as Freshness, H as HiddenFieldNotice, a0 as KERNEL_TABLES, a1 as KernelTableName, a2 as KeysetRow, a3 as MERGE_FIELD_MODIFIERS, a4 as MERGE_FIELD_SEMANTIC_TYPES, a5 as MERGE_FIELD_SOURCES, a6 as MergeFieldModifier, a7 as MergeFieldSemanticType, a8 as MergeFieldSource, a9 as ON_DELETE, aa as OVERRIDE_POLICIES, O as OnDelete, ab as OverridePolicy, ac as PARITY_FIELD_TYPES, ad as PER_VALUE_ACCESS_WORDS, y as ParityFieldType, ae as PerValueAccessWord, af as ProvenancePointer, ag as RELATION_BINDINGS, ah as RELATION_CARDINALITIES, ai as RELATION_FLAVORS, aj as RETIRED_ACTOR_WORDS, ak as RULE_NODE_KINDS, al as RULE_USES, q as ReadRow, m as RecordChange, n as RecordChangeResult, o as RecordGraphWritten, t as RecordKeysetPage, s as RecordPage, r as RecordPageSort, p as RecordRead, v as RecordRevision, k as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, am as RetiredActorWord, i as RuleNodeKind, j 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, u as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, b as TableDisplay, aw as TableOrigin, T as TableType, h 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 isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows } from '../record-DmmeuUrC.cjs';
|
|
3
|
+
import { o as TableKindFacts } from '../table-kind-C-hZxDN7.cjs';
|
|
4
|
+
export { bu as ARCHIVE_LANES, bv as ARCHIVE_LANE_LABEL, bw as ARCHIVE_LANE_MEANS, bx as ActionRefusal, bc as ActionRunResult, aB as AnonTokenBinding, A as ArchiveLane, a4 as ArchivedChecklistTemplate, by as ArchivedDoorRow, a3 as ArchivedForm, e as ArchivedRow, bz as AutomationAction, be as AutomationDeclared, bA as AutomationFilter, bg as AutomationFlipped, bB as AutomationItem, bC as AutomationLastRun, bf as AutomationList, bD as AutomationRun, bE as AutomationRunStatus, bh as AutomationRuns, bd as AutomationSpec, bF as AutomationStep, bG as AutomationTrigger, bH as AutomationValue, bI as AutomationValues, bJ as BUILT_KIND_WORD, bK as CHOICE_NUDGES, bL as CaptureField, ab as CaptureFileRef, ac as CaptureOutcome, bM as CaptureQuestion, aa as CaptureSheetFace, a9 as CaptureSheetSummary, aD as ChecklistDeclared, bN as ChecklistRequirement, bO as ChecklistRequirementKind, bP as ChecklistRoleSpec, aG as ChecklistRunStarted, aH as ChecklistRunStep, aI as ChecklistRunSummary, aC as ChecklistSpec, aJ as ChecklistStepCompleted, bQ as ChecklistStepSpec, aF as ChecklistTemplateShape, aE as ChecklistTemplateSummary, bR as ChecklistTrigger, bS as ChecklistTriggerKind, k as ChoiceCellBack, bT as ChoiceLike, C as ChoiceNudge, bU as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, az as CommentThreadRead, aA as CommentWritten, au as ConversationScope, av as ConversationScopeContext, bV as CustomFieldTableType, bW as DEFAULT_ARCHIVE_LANE, bX as DRILL_CHART_TOKENS, bY as DRILL_DESCRIPTION_MAX, bZ as DRILL_DOORS, b_ as DRILL_SCHEMA, bn as DataHomeTable, b$ as DecorationColor, b6 as DecorationPath, c0 as DecorationRule, c1 as DecorationRuleOp, c2 as DecorationTarget, aq as DocRenderRow, c3 as DocSignatureCheck, ar as DocSignatureRow, ap as DocTemplateRow, an as DocToken, ao as DocUnresolvedToken, c4 as DrillAdHocOp, al as DrillAnswer, c5 as DrillAnswerRow, c6 as DrillChartToken, c7 as DrillDeclaration, aj as DrillDefinition, c8 as DrillDimension, c9 as DrillFinding, ca as DrillGrain, cb as DrillHaving, cc as DrillLane, cd as DrillLevel, ce as DrillMeasure, cf as DrillMeasureOp, cg as DrillMeasureWhereValue, ch as DrillPath, ak as DrillQuestion, ci as DrillRecords, am as DrillRowsPage, ai as DrillSource, cj as DrillView, ck as EnrichAlternate, ag as EnrichCell, ae as EnrichDeclared, af as EnrichDueRow, ah as EnrichRun, cl as EnrichSource, cm as Enrichment, ad as EnrichmentSummary, cn as EntityBackLinkItem, v as EntityBackLinks, t as EntityFieldRights, co as EntityFieldValue, s as EntityFieldsAcross, cp as EntityRecordMatch, u as EntityRecordRead, x as EntityRecordsFound, w as EntityRowWritten, E as EntityTableFacts, b2 as ExternalPrincipalCard, F as FieldDrift, cq as FieldDriftAspect, aw as FieldHistoryEntry, n as FieldRetyped, a2 as FormArchiveAnswer, b9 as FormulaParse, ba as FormulaPreview, b8 as GridLayout, cr as GridLayoutMode, cs as GridRowHeight, ct as HistoryActor, cu as HistoryActorKind, cv as HistoryChange, cw as Home, Y as ImportBatchResult, cx as ImportColumnPlan, X as ImportColumnsDeclared, Z as ImportFinished, W as ImportOpened, cy as ImportOutcome, U as ImportPlan, V as ImportPolicy, cz as ImportProposal, _ as ImportReport, $ as ImportRun, a1 as InboundAddress, a0 as InboundDeclared, aT as InboxCounts, aS as InboxStateChange, bl as IoExportPage, M as MigrationUndone, N as NewEntityFieldDeclaration, bs as OutsideShareAnswer, cA as PIPELINE_RULE_KINDS, P as Pipeline, y as PipelineColumn, I as PipelineDeclared, O as PipelineGate, Q as PipelineGatePreview, cB as PipelineMissingField, G as PipelineMoveMany, D as PipelineMoveManyItem, cC as PipelineMoveManyResult, B as PipelineMoveResult, cD as PipelineMoveVerdict, cE as PipelineRule, cF as PipelineRuleKind, H as PipelineSpec, cG as PipelineStage, z as PipelineVerdict, b3 as PublishBinding, cH as PublishBindingKind, cI as ROW_WEB_NOT_READY, cJ as RecordChangeAction, cK as RecordComment, bi as RecordEvent, br as RecordHeader, as as RecordHistoryEntry, a8 as RecordRowControls, cL as RecordScopeComment, at as RecordScopeContext, cM as RecordScopeField, cN as RecordScopeHistoryEntry, cO as RecordScopeRelation, cP as RecordScopeWithheld, R as RecordsMerged, cQ as RegisteredTable, b4 as ResolvedPublishBinding, b5 as ResolvedPublishBindingKind, ax as RestorePreview, ay as RestoreResult, cR as RetypeBehaviour, cS as RetypePreview, bb as RowAction, cT as RowActionStep, a7 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, K as StagePending, L as StagePendingOnBoard, J as StageRuleEnforcement, S as StageRuleOnFail, c_ as StageRuleWarning, c$ as TABLE_KIND_PREFIX, f as Table, T as TableArchiveProgress, m as TableCapacity, d as TableCopyInProgress, b7 as TableDecorations, b as TableDuplicateProgress, c as TableDuplicated, g as TableHome, d0 as TableHomeDestination, d1 as TableLevel, d2 as TableLevelApproval, p as TableLevelFacts, r as TableLevelSet, bm as TableListEntry, h as TableMoved, d3 as TablePlacement, d4 as TablePlacementFact, q as TableReaderRule, d5 as TableRenderSchema, a as TableRestoreProgress, bq as TableRowCount, a5 as TableRowDefaults, a6 as TableRowDefaultsPatch, d6 as TableSchemaMode, bp as TableSyncResult, d7 as TableSyncSource, bo as TableSyncSpec, bk as TableWebhook, bj as TableWebhookDeclared, d8 as TypedChoiceDecision, d9 as ViewLayout, bt as ViewOrderSet, a$ as WorkApprovalDecision, a_ as WorkApprovalFiled, da as WorkApprovalState, aY as WorkApprover, aW as WorkAssignment, aO as WorkAssignmentField, aZ as WorkChange, b1 as WorkDecideMany, b0 as WorkDecideManyItem, db as WorkDecideManyResult, dc as WorkDecideVerdict, dd as WorkDueState, aL as WorkGraph, aR as WorkInboxItem, de as WorkInboxKind, aQ as WorkInboxView, aM as WorkInstantiation, aU as WorkListFlavour, aV as WorkListItem, df as WorkOrigin, aX as WorkRecordState, aP as WorkSlotHold, aK as WorkState, dg as WorkTemplateNode, dh as WorkTemplateRelation, aN as WorkTurn, di as actionRefusals, dj as archivedByLine, dk as archivedWhen, dl as asChoiceNudge, dm as choiceSlug, dn as choiceValuesOf, dp as choicesOf, dq as decideTypedChoice, dr as declareDrillDefinition, ds as drillAnswerOf, dt as drillFindingKnob, du as emptyArchiveLine, dv as exportPageXlsx, dw as fieldKindOf, dx as holdsARetiredChoice, dy as isArchiveLane, dz as isFoundation, dA as isShownTo, dB as isTableKind, dC as isTheChosen, dD as keptGroups, dE as keptOutOfSight, dF as keptTableHref, dG as levelHasShownTo, dH as looksLikeAnId, dI as mayDrag, dJ as moveConsequence, dK as moveInOrder, dL as offeredAsContext, dM as optionKey, dN as optionLabel, dO as parseFieldDrift, dP as parseTableCopiesInProgress, dQ as parseTableDuplicateProgress, dR as parseTableDuplicated, dS as parseTableHome, dT as parseTableMoved, dU as previewRetype, dV as previewRuleChange, dW as recordChangeTrigger, dX as recordSourceKey, dY as recordSourceTable, dZ as recordsUseSentence, d_ as rehomeSentence, d$ as removedChoicesInUse, e0 as ruleThatRefuses, e1 as rulesWithTopStar, e2 as sameDocument, e3 as scopeChip, e4 as sheetSyncSpec, e5 as tableIdOf, e6 as tableJsonSchema, e7 as tableKindMapping, e8 as tableKindSlug, e9 as tableRenderSchema, ea as valueConverts, eb as withRowCounts, ec as withTablePlacement } from '../table-kind-C-hZxDN7.cjs';
|
|
5
|
+
import { d as RecordsDataSource } from '../ports-9BQ3zo2y.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-9BQ3zo2y.cjs';
|
|
7
|
+
import { b as Field } from '../field-6rwt4ejZ.cjs';
|
|
8
|
+
export { A as ADDRESS_PARTS, f as AGENT_WRITER_WORDS, g as AddressPart, h as AddressValue, i as BARCODE_SYMBOLOGIES, j as BUTTON_DOES, k as ButtonDoes, B as ButtonPressed, l as ButtonSettings, C as ChoiceOptions, m as CoerceOptions, n as Coerced, o as CoercedAnswers, p as CoercibleField, q as FIELD_KINDS, d as FieldDuplicated, r as FieldKind, s as FieldOptionEdit, c as FieldPatch, e as FieldProposal, a as FieldRule, F 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, x as RelationDisplay, y as RelationNameIndex, z as RelationNameMatch, R 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-6rwt4ejZ.cjs';
|
|
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 { a as BookingAvailability, b as BookingDeclared, B as BookingSummary, e as BookingWindow, d as FormResults, c as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from '../rule-CeHg1sy1.cjs';
|
|
11
|
+
export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, l as PORTAL_ACCENTS, m as PORTAL_ARCHIVE_FILTERS, k as PortalAccent, b as PortalArchiveAnswer, a as PortalArchiveFilter, d as PortalCard, n as PortalConfig, e as PortalConfigInput, o as PortalFooterLink, g as PortalFormAnswer, p as PortalFormInput, q as PortalFormRef, f as PortalFormSpec, h as PortalInvitation, j as PortalPreviewRow, r as PortalPrincipal, i as PortalRevocation, s as PortalStage, t as PortalStyle, u as PortalStyleInput, P as PortalSummary, v as PortalTableExposure, c 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-9sRr6cpG.cjs';
|
|
12
|
+
export { c as AggregateBucket, h as AggregateCompare, q as AggregateCompareKind, r as AggregateCompareWindows, s as AggregateDelta, a as AggregateFilter, t as AggregateGroupValue, b as AggregateMeasure, A as AggregateOperation, k as AggregateRow, u as AggregateWindow, g as DashboardBlock, D as DashboardBlockKind, v as DashboardBlockResult, i as DashboardRunResult, f as DashboardSummary, w as DashboardTarget, x as DashboardTargetBase, y as DashboardTargetOp, z as DashboardTargetResult, B as DashboardTotals, n as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, p as RowTemplateRow, C as SavedViewColorBy, E as SavedViewDefinition, F as SavedViewLayout, d as SavedViewRow, o as SavedViewSpecIn, e as StoreFilter, j as StuckRow, l as Subscription, G as SubscriptionBlock, S as SubscriptionCadence, m 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-Drbxn-9Z.cjs';
|
|
13
|
+
export { g as EntityRef, E as EntityRefWithWords, h as EntityReferenceKind, i as REVERSE_LINKS_PAGE_MAX, j as REVERSE_LINKS_RECORDS_PER_CALL, k as Relation, l as RelationCarries, R as RelationCoordinate, b as RelationIcons, m as RelationProperties, n as RelationTarget, a as RelationWordsManyArgs, c as ReverseColumn, o as ReverseLink, e as ReverseLinks, f as ReverseLinksFieldsArgs, d 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-qrb2NbHf.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-DfjDQtDb.cjs';
|
|
15
|
+
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-EyD3rS0T.cjs';
|
|
16
|
+
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-Bkk_Ewib.cjs';
|
|
16
17
|
|
|
17
18
|
declare function doorExists(name: string): boolean;
|
|
18
19
|
/**
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { a as RecordsError, R as RecordsResult, P as PgError, z as StaleWriteDetail, l as RecordDocument, B as PredictedRefusal, w as ReadValue, U as Uuid } from '../record-
|
|
2
|
-
export { E as ABSENCE_REASONS, G as ACTOR_VOCABULARY, I as AbsenceReason, A as Actor, J as COMPUTE_ON, K as CONTEXT_POLICIES, C as ComputeOn,
|
|
3
|
-
import { o as TableKindFacts } from '../table-kind-
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
1
|
+
import { a as RecordsError, R as RecordsResult, P as PgError, z as StaleWriteDetail, l as RecordDocument, B as PredictedRefusal, w as ReadValue, U as Uuid } from '../record-DmmeuUrC.js';
|
|
2
|
+
export { E as ABSENCE_REASONS, G as ACTOR_VOCABULARY, I as AbsenceReason, A as Actor, J as COMPUTE_ON, K as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, L as DECLARABLE_FIELD_KINDS, M as DELIVERIES, D as DeclarableFieldKind, N as Delivery, Q as ENTITY_TOKENS, V as EntityToken, X as FIELD_SENSITIVITIES, Y as FIELD_SOURCES, Z as FRESHNESS, x as FieldBehavior, c as FieldSensitivity, F as FieldSource, _ as ForbiddenEnvelopeWord, $ as Freshness, H as HiddenFieldNotice, a0 as KERNEL_TABLES, a1 as KernelTableName, a2 as KeysetRow, a3 as MERGE_FIELD_MODIFIERS, a4 as MERGE_FIELD_SEMANTIC_TYPES, a5 as MERGE_FIELD_SOURCES, a6 as MergeFieldModifier, a7 as MergeFieldSemanticType, a8 as MergeFieldSource, a9 as ON_DELETE, aa as OVERRIDE_POLICIES, O as OnDelete, ab as OverridePolicy, ac as PARITY_FIELD_TYPES, ad as PER_VALUE_ACCESS_WORDS, y as ParityFieldType, ae as PerValueAccessWord, af as ProvenancePointer, ag as RELATION_BINDINGS, ah as RELATION_CARDINALITIES, ai as RELATION_FLAVORS, aj as RETIRED_ACTOR_WORDS, ak as RULE_NODE_KINDS, al as RULE_USES, q as ReadRow, m as RecordChange, n as RecordChangeResult, o as RecordGraphWritten, t as RecordKeysetPage, s as RecordPage, r as RecordPageSort, p as RecordRead, v as RecordRevision, k as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, am as RetiredActorWord, i as RuleNodeKind, j 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, u as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, b as TableDisplay, aw as TableOrigin, T as TableType, h 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 isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows } from '../record-DmmeuUrC.js';
|
|
3
|
+
import { o as TableKindFacts } from '../table-kind-BZkvzBgc.js';
|
|
4
|
+
export { bu as ARCHIVE_LANES, bv as ARCHIVE_LANE_LABEL, bw as ARCHIVE_LANE_MEANS, bx as ActionRefusal, bc as ActionRunResult, aB as AnonTokenBinding, A as ArchiveLane, a4 as ArchivedChecklistTemplate, by as ArchivedDoorRow, a3 as ArchivedForm, e as ArchivedRow, bz as AutomationAction, be as AutomationDeclared, bA as AutomationFilter, bg as AutomationFlipped, bB as AutomationItem, bC as AutomationLastRun, bf as AutomationList, bD as AutomationRun, bE as AutomationRunStatus, bh as AutomationRuns, bd as AutomationSpec, bF as AutomationStep, bG as AutomationTrigger, bH as AutomationValue, bI as AutomationValues, bJ as BUILT_KIND_WORD, bK as CHOICE_NUDGES, bL as CaptureField, ab as CaptureFileRef, ac as CaptureOutcome, bM as CaptureQuestion, aa as CaptureSheetFace, a9 as CaptureSheetSummary, aD as ChecklistDeclared, bN as ChecklistRequirement, bO as ChecklistRequirementKind, bP as ChecklistRoleSpec, aG as ChecklistRunStarted, aH as ChecklistRunStep, aI as ChecklistRunSummary, aC as ChecklistSpec, aJ as ChecklistStepCompleted, bQ as ChecklistStepSpec, aF as ChecklistTemplateShape, aE as ChecklistTemplateSummary, bR as ChecklistTrigger, bS as ChecklistTriggerKind, k as ChoiceCellBack, bT as ChoiceLike, C as ChoiceNudge, bU as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, az as CommentThreadRead, aA as CommentWritten, au as ConversationScope, av as ConversationScopeContext, bV as CustomFieldTableType, bW as DEFAULT_ARCHIVE_LANE, bX as DRILL_CHART_TOKENS, bY as DRILL_DESCRIPTION_MAX, bZ as DRILL_DOORS, b_ as DRILL_SCHEMA, bn as DataHomeTable, b$ as DecorationColor, b6 as DecorationPath, c0 as DecorationRule, c1 as DecorationRuleOp, c2 as DecorationTarget, aq as DocRenderRow, c3 as DocSignatureCheck, ar as DocSignatureRow, ap as DocTemplateRow, an as DocToken, ao as DocUnresolvedToken, c4 as DrillAdHocOp, al as DrillAnswer, c5 as DrillAnswerRow, c6 as DrillChartToken, c7 as DrillDeclaration, aj as DrillDefinition, c8 as DrillDimension, c9 as DrillFinding, ca as DrillGrain, cb as DrillHaving, cc as DrillLane, cd as DrillLevel, ce as DrillMeasure, cf as DrillMeasureOp, cg as DrillMeasureWhereValue, ch as DrillPath, ak as DrillQuestion, ci as DrillRecords, am as DrillRowsPage, ai as DrillSource, cj as DrillView, ck as EnrichAlternate, ag as EnrichCell, ae as EnrichDeclared, af as EnrichDueRow, ah as EnrichRun, cl as EnrichSource, cm as Enrichment, ad as EnrichmentSummary, cn as EntityBackLinkItem, v as EntityBackLinks, t as EntityFieldRights, co as EntityFieldValue, s as EntityFieldsAcross, cp as EntityRecordMatch, u as EntityRecordRead, x as EntityRecordsFound, w as EntityRowWritten, E as EntityTableFacts, b2 as ExternalPrincipalCard, F as FieldDrift, cq as FieldDriftAspect, aw as FieldHistoryEntry, n as FieldRetyped, a2 as FormArchiveAnswer, b9 as FormulaParse, ba as FormulaPreview, b8 as GridLayout, cr as GridLayoutMode, cs as GridRowHeight, ct as HistoryActor, cu as HistoryActorKind, cv as HistoryChange, cw as Home, Y as ImportBatchResult, cx as ImportColumnPlan, X as ImportColumnsDeclared, Z as ImportFinished, W as ImportOpened, cy as ImportOutcome, U as ImportPlan, V as ImportPolicy, cz as ImportProposal, _ as ImportReport, $ as ImportRun, a1 as InboundAddress, a0 as InboundDeclared, aT as InboxCounts, aS as InboxStateChange, bl as IoExportPage, M as MigrationUndone, N as NewEntityFieldDeclaration, bs as OutsideShareAnswer, cA as PIPELINE_RULE_KINDS, P as Pipeline, y as PipelineColumn, I as PipelineDeclared, O as PipelineGate, Q as PipelineGatePreview, cB as PipelineMissingField, G as PipelineMoveMany, D as PipelineMoveManyItem, cC as PipelineMoveManyResult, B as PipelineMoveResult, cD as PipelineMoveVerdict, cE as PipelineRule, cF as PipelineRuleKind, H as PipelineSpec, cG as PipelineStage, z as PipelineVerdict, b3 as PublishBinding, cH as PublishBindingKind, cI as ROW_WEB_NOT_READY, cJ as RecordChangeAction, cK as RecordComment, bi as RecordEvent, br as RecordHeader, as as RecordHistoryEntry, a8 as RecordRowControls, cL as RecordScopeComment, at as RecordScopeContext, cM as RecordScopeField, cN as RecordScopeHistoryEntry, cO as RecordScopeRelation, cP as RecordScopeWithheld, R as RecordsMerged, cQ as RegisteredTable, b4 as ResolvedPublishBinding, b5 as ResolvedPublishBindingKind, ax as RestorePreview, ay as RestoreResult, cR as RetypeBehaviour, cS as RetypePreview, bb as RowAction, cT as RowActionStep, a7 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, K as StagePending, L as StagePendingOnBoard, J as StageRuleEnforcement, S as StageRuleOnFail, c_ as StageRuleWarning, c$ as TABLE_KIND_PREFIX, f as Table, T as TableArchiveProgress, m as TableCapacity, d as TableCopyInProgress, b7 as TableDecorations, b as TableDuplicateProgress, c as TableDuplicated, g as TableHome, d0 as TableHomeDestination, d1 as TableLevel, d2 as TableLevelApproval, p as TableLevelFacts, r as TableLevelSet, bm as TableListEntry, h as TableMoved, d3 as TablePlacement, d4 as TablePlacementFact, q as TableReaderRule, d5 as TableRenderSchema, a as TableRestoreProgress, bq as TableRowCount, a5 as TableRowDefaults, a6 as TableRowDefaultsPatch, d6 as TableSchemaMode, bp as TableSyncResult, d7 as TableSyncSource, bo as TableSyncSpec, bk as TableWebhook, bj as TableWebhookDeclared, d8 as TypedChoiceDecision, d9 as ViewLayout, bt as ViewOrderSet, a$ as WorkApprovalDecision, a_ as WorkApprovalFiled, da as WorkApprovalState, aY as WorkApprover, aW as WorkAssignment, aO as WorkAssignmentField, aZ as WorkChange, b1 as WorkDecideMany, b0 as WorkDecideManyItem, db as WorkDecideManyResult, dc as WorkDecideVerdict, dd as WorkDueState, aL as WorkGraph, aR as WorkInboxItem, de as WorkInboxKind, aQ as WorkInboxView, aM as WorkInstantiation, aU as WorkListFlavour, aV as WorkListItem, df as WorkOrigin, aX as WorkRecordState, aP as WorkSlotHold, aK as WorkState, dg as WorkTemplateNode, dh as WorkTemplateRelation, aN as WorkTurn, di as actionRefusals, dj as archivedByLine, dk as archivedWhen, dl as asChoiceNudge, dm as choiceSlug, dn as choiceValuesOf, dp as choicesOf, dq as decideTypedChoice, dr as declareDrillDefinition, ds as drillAnswerOf, dt as drillFindingKnob, du as emptyArchiveLine, dv as exportPageXlsx, dw as fieldKindOf, dx as holdsARetiredChoice, dy as isArchiveLane, dz as isFoundation, dA as isShownTo, dB as isTableKind, dC as isTheChosen, dD as keptGroups, dE as keptOutOfSight, dF as keptTableHref, dG as levelHasShownTo, dH as looksLikeAnId, dI as mayDrag, dJ as moveConsequence, dK as moveInOrder, dL as offeredAsContext, dM as optionKey, dN as optionLabel, dO as parseFieldDrift, dP as parseTableCopiesInProgress, dQ as parseTableDuplicateProgress, dR as parseTableDuplicated, dS as parseTableHome, dT as parseTableMoved, dU as previewRetype, dV as previewRuleChange, dW as recordChangeTrigger, dX as recordSourceKey, dY as recordSourceTable, dZ as recordsUseSentence, d_ as rehomeSentence, d$ as removedChoicesInUse, e0 as ruleThatRefuses, e1 as rulesWithTopStar, e2 as sameDocument, e3 as scopeChip, e4 as sheetSyncSpec, e5 as tableIdOf, e6 as tableJsonSchema, e7 as tableKindMapping, e8 as tableKindSlug, e9 as tableRenderSchema, ea as valueConverts, eb as withRowCounts, ec as withTablePlacement } from '../table-kind-BZkvzBgc.js';
|
|
5
|
+
import { d as RecordsDataSource } from '../ports-DYWE1ENo.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-DYWE1ENo.js';
|
|
7
|
+
import { b as Field } from '../field-B-WaVZnS.js';
|
|
8
|
+
export { A as ADDRESS_PARTS, f as AGENT_WRITER_WORDS, g as AddressPart, h as AddressValue, i as BARCODE_SYMBOLOGIES, j as BUTTON_DOES, k as ButtonDoes, B as ButtonPressed, l as ButtonSettings, C as ChoiceOptions, m as CoerceOptions, n as Coerced, o as CoercedAnswers, p as CoercibleField, q as FIELD_KINDS, d as FieldDuplicated, r as FieldKind, s as FieldOptionEdit, c as FieldPatch, e as FieldProposal, a as FieldRule, F 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, x as RelationDisplay, y as RelationNameIndex, z as RelationNameMatch, R 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-B-WaVZnS.js';
|
|
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 { a as BookingAvailability, b as BookingDeclared, B as BookingSummary, e as BookingWindow, d as FormResults, c as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from '../rule-tN2lxvJ1.js';
|
|
11
|
+
export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, l as PORTAL_ACCENTS, m as PORTAL_ARCHIVE_FILTERS, k as PortalAccent, b as PortalArchiveAnswer, a as PortalArchiveFilter, d as PortalCard, n as PortalConfig, e as PortalConfigInput, o as PortalFooterLink, g as PortalFormAnswer, p as PortalFormInput, q as PortalFormRef, f as PortalFormSpec, h as PortalInvitation, j as PortalPreviewRow, r as PortalPrincipal, i as PortalRevocation, s as PortalStage, t as PortalStyle, u as PortalStyleInput, P as PortalSummary, v as PortalTableExposure, c 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-BDAqsGkg.js';
|
|
12
|
+
export { c as AggregateBucket, h as AggregateCompare, q as AggregateCompareKind, r as AggregateCompareWindows, s as AggregateDelta, a as AggregateFilter, t as AggregateGroupValue, b as AggregateMeasure, A as AggregateOperation, k as AggregateRow, u as AggregateWindow, g as DashboardBlock, D as DashboardBlockKind, v as DashboardBlockResult, i as DashboardRunResult, f as DashboardSummary, w as DashboardTarget, x as DashboardTargetBase, y as DashboardTargetOp, z as DashboardTargetResult, B as DashboardTotals, n as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, p as RowTemplateRow, C as SavedViewColorBy, E as SavedViewDefinition, F as SavedViewLayout, d as SavedViewRow, o as SavedViewSpecIn, e as StoreFilter, j as StuckRow, l as Subscription, G as SubscriptionBlock, S as SubscriptionCadence, m 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-hdTaRrfK.js';
|
|
13
|
+
export { g as EntityRef, E as EntityRefWithWords, h as EntityReferenceKind, i as REVERSE_LINKS_PAGE_MAX, j as REVERSE_LINKS_RECORDS_PER_CALL, k as Relation, l as RelationCarries, R as RelationCoordinate, b as RelationIcons, m as RelationProperties, n as RelationTarget, a as RelationWordsManyArgs, c as ReverseColumn, o as ReverseLink, e as ReverseLinks, f as ReverseLinksFieldsArgs, d 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-Op1M67le.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-BII_K3Gm.js';
|
|
15
|
+
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-DsPuWFp0.js';
|
|
16
|
+
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-kL5qZoTe.js';
|
|
16
17
|
|
|
17
18
|
declare function doorExists(name: string): boolean;
|
|
18
19
|
/**
|
package/dist/core/index.js
CHANGED
|
@@ -2248,44 +2248,105 @@ function sourceArchivedOf(value) {
|
|
|
2248
2248
|
return out;
|
|
2249
2249
|
}
|
|
2250
2250
|
|
|
2251
|
+
// src/objectOrganization.ts
|
|
2252
|
+
var WHERE_ID_OPENS_DOOR = "where_id_opens";
|
|
2253
|
+
function doorIsAbsent(error) {
|
|
2254
|
+
if (error.code === "PGRST202" || error.code === "42883") return true;
|
|
2255
|
+
return /could not find the function/i.test(error.message ?? "");
|
|
2256
|
+
}
|
|
2257
|
+
var DOOR_ABSENT_WHY = "custom.where_id_opens is missing from this database, so this page cannot tell which organization the record lives in and holds instead of guessing. Remedy: the chair applies migrations/campaign/openbyid_one_address_opens_any_id.sql and openbyid_the_resolver_can_be_reached.sql.";
|
|
2258
|
+
async function resolveObjectOrganization(dataSource, id) {
|
|
2259
|
+
let answered;
|
|
2260
|
+
try {
|
|
2261
|
+
answered = await dataSource.rpc(WHERE_ID_OPENS_DOOR, { p_id: id }, { schema: "custom" });
|
|
2262
|
+
} catch (thrown) {
|
|
2263
|
+
return { state: "unavailable", why: thrown instanceof Error ? thrown.message : "The record store did not answer." };
|
|
2264
|
+
}
|
|
2265
|
+
return readObjectOrganizationAnswer(answered, id);
|
|
2266
|
+
}
|
|
2267
|
+
function readObjectOrganizationAnswer(answered, id) {
|
|
2268
|
+
if (answered.error) {
|
|
2269
|
+
if (doorIsAbsent(answered.error)) {
|
|
2270
|
+
console.warn(`[@ai-matrx/records] ${DOOR_ABSENT_WHY}`);
|
|
2271
|
+
return { state: "unavailable", why: DOOR_ABSENT_WHY };
|
|
2272
|
+
}
|
|
2273
|
+
return { state: "unavailable", why: answered.error.message ?? "The record store refused to say where this is." };
|
|
2274
|
+
}
|
|
2275
|
+
const row = answered.data;
|
|
2276
|
+
if (row === null || row === void 0) return { state: "not-given" };
|
|
2277
|
+
if (typeof row !== "object" || typeof row.organization_id !== "string" || typeof row.kind !== "string") {
|
|
2278
|
+
return { state: "unavailable", why: "The record store answered something this page cannot read." };
|
|
2279
|
+
}
|
|
2280
|
+
return {
|
|
2281
|
+
state: "found",
|
|
2282
|
+
organizationId: row.organization_id,
|
|
2283
|
+
kind: row.kind,
|
|
2284
|
+
path: typeof row.path === "string" ? row.path : null,
|
|
2285
|
+
live: row.live !== false,
|
|
2286
|
+
resolvedId: typeof row.resolved_id === "string" ? row.resolved_id : id
|
|
2287
|
+
};
|
|
2288
|
+
}
|
|
2289
|
+
function whereIdOpensPort(dataSource) {
|
|
2290
|
+
return { organizationOf: (id) => resolveObjectOrganization(dataSource, id) };
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2251
2293
|
// src/ops.ts
|
|
2252
2294
|
import { globalSlot } from "@ai-matrx/kit/global-slot";
|
|
2253
2295
|
var REMEMBER_MS = 3e4;
|
|
2254
2296
|
var REMEMBER_MAX = 500;
|
|
2255
|
-
|
|
2256
|
-
function trim(now) {
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2297
|
+
function ledgerOver(ours) {
|
|
2298
|
+
function trim(now) {
|
|
2299
|
+
for (const [id, at] of ours) {
|
|
2300
|
+
if (now - at <= REMEMBER_MS) break;
|
|
2301
|
+
ours.delete(id);
|
|
2302
|
+
}
|
|
2303
|
+
while (ours.size > REMEMBER_MAX) {
|
|
2304
|
+
const oldest = ours.keys().next();
|
|
2305
|
+
if (oldest.done === true) break;
|
|
2306
|
+
ours.delete(oldest.value);
|
|
2307
|
+
}
|
|
2265
2308
|
}
|
|
2309
|
+
return {
|
|
2310
|
+
mint() {
|
|
2311
|
+
const id = crypto.randomUUID();
|
|
2312
|
+
const now = Date.now();
|
|
2313
|
+
ours.set(id, now);
|
|
2314
|
+
trim(now);
|
|
2315
|
+
return id;
|
|
2316
|
+
},
|
|
2317
|
+
isOwn(opId) {
|
|
2318
|
+
if (!opId) return false;
|
|
2319
|
+
const at = ours.get(opId);
|
|
2320
|
+
if (at === void 0) return false;
|
|
2321
|
+
if (Date.now() - at > REMEMBER_MS) {
|
|
2322
|
+
ours.delete(opId);
|
|
2323
|
+
return false;
|
|
2324
|
+
}
|
|
2325
|
+
return true;
|
|
2326
|
+
},
|
|
2327
|
+
clear() {
|
|
2328
|
+
ours.clear();
|
|
2329
|
+
},
|
|
2330
|
+
get size() {
|
|
2331
|
+
return ours.size;
|
|
2332
|
+
}
|
|
2333
|
+
};
|
|
2334
|
+
}
|
|
2335
|
+
function createOpLedger() {
|
|
2336
|
+
return ledgerOver(/* @__PURE__ */ new Map());
|
|
2266
2337
|
}
|
|
2338
|
+
var defaultOpLedger = ledgerOver(globalSlot("ai-matrx.records.op-ledger", () => /* @__PURE__ */ new Map()));
|
|
2267
2339
|
function mintOpId() {
|
|
2268
|
-
|
|
2269
|
-
const now = Date.now();
|
|
2270
|
-
ours.set(id, now);
|
|
2271
|
-
trim(now);
|
|
2272
|
-
return id;
|
|
2340
|
+
return defaultOpLedger.mint();
|
|
2273
2341
|
}
|
|
2274
2342
|
function isOwnOp(opId) {
|
|
2275
|
-
|
|
2276
|
-
const at = ours.get(opId);
|
|
2277
|
-
if (at === void 0) return false;
|
|
2278
|
-
if (Date.now() - at > REMEMBER_MS) {
|
|
2279
|
-
ours.delete(opId);
|
|
2280
|
-
return false;
|
|
2281
|
-
}
|
|
2282
|
-
return true;
|
|
2343
|
+
return defaultOpLedger.isOwn(opId);
|
|
2283
2344
|
}
|
|
2284
2345
|
function forgetAllOps() {
|
|
2285
|
-
|
|
2346
|
+
defaultOpLedger.clear();
|
|
2286
2347
|
}
|
|
2287
2348
|
function rememberedOpCount() {
|
|
2288
|
-
return
|
|
2349
|
+
return defaultOpLedger.size;
|
|
2289
2350
|
}
|
|
2290
2351
|
|
|
2291
2352
|
// src/store.generated.ts
|
|
@@ -6005,6 +6066,8 @@ function createRecordsClient(given) {
|
|
|
6005
6066
|
const config = { ...given, dataSource: asRecordsDataSource(given.dataSource) };
|
|
6006
6067
|
const schema = config.schema ?? DEFAULT_SCHEMA;
|
|
6007
6068
|
const org = config.organizationId;
|
|
6069
|
+
const ledger = config.opLedger ?? defaultOpLedger;
|
|
6070
|
+
const mintOp = () => ledger.mint();
|
|
6008
6071
|
const scream = sink(config);
|
|
6009
6072
|
const BUNDLE_TTL_MS = 1e4;
|
|
6010
6073
|
const BUNDLE_OPENERS = /* @__PURE__ */ new Set(["applicable_fields", "views", "view_look_read", "table_decorations", "row_actions", "reverse_columns", "record_change_actions", "grid_layout", "io_imports"]);
|
|
@@ -6391,14 +6454,14 @@ function createRecordsClient(given) {
|
|
|
6391
6454
|
async recordWrite({ table_id, data }) {
|
|
6392
6455
|
const result = await callDoor(
|
|
6393
6456
|
DOORS.recordWrite,
|
|
6394
|
-
{ p_organization_id: org, p_table_id: table_id, p_data: { ...data, _op_id:
|
|
6457
|
+
{ p_organization_id: org, p_table_id: table_id, p_data: { ...data, _op_id: mintOp() } },
|
|
6395
6458
|
"recordWrite"
|
|
6396
6459
|
);
|
|
6397
6460
|
if (result.ok && typeof result.data === "string") announceRecordChanged(result.data);
|
|
6398
6461
|
return result;
|
|
6399
6462
|
},
|
|
6400
6463
|
async recordWriteMany({ table_id, rows: rows2, ids }) {
|
|
6401
|
-
const opId =
|
|
6464
|
+
const opId = mintOp();
|
|
6402
6465
|
return callDoor(
|
|
6403
6466
|
DOORS.recordWriteMany,
|
|
6404
6467
|
{
|
|
@@ -6411,7 +6474,7 @@ function createRecordsClient(given) {
|
|
|
6411
6474
|
);
|
|
6412
6475
|
},
|
|
6413
6476
|
async recordChangeMany({ table_id, changes }) {
|
|
6414
|
-
const opId =
|
|
6477
|
+
const opId = mintOp();
|
|
6415
6478
|
const result = await callDoor(
|
|
6416
6479
|
DOORS.recordChangeMany,
|
|
6417
6480
|
{
|
|
@@ -6434,7 +6497,7 @@ function createRecordsClient(given) {
|
|
|
6434
6497
|
return result;
|
|
6435
6498
|
},
|
|
6436
6499
|
async recordWriteGraph({ table_id, parent, children, edges }) {
|
|
6437
|
-
const opId =
|
|
6500
|
+
const opId = mintOp();
|
|
6438
6501
|
return callDoor(
|
|
6439
6502
|
DOORS.recordWriteGraph,
|
|
6440
6503
|
{
|
|
@@ -6458,7 +6521,7 @@ function createRecordsClient(given) {
|
|
|
6458
6521
|
{
|
|
6459
6522
|
p_organization_id: org,
|
|
6460
6523
|
p_record_id: record_id,
|
|
6461
|
-
p_patch: { ...patch, _op_id:
|
|
6524
|
+
p_patch: { ...patch, _op_id: mintOp() },
|
|
6462
6525
|
...expectedVersion === void 0 ? {} : { p_expected_version: expectedVersion }
|
|
6463
6526
|
},
|
|
6464
6527
|
"recordUpdate"
|
|
@@ -6472,7 +6535,7 @@ function createRecordsClient(given) {
|
|
|
6472
6535
|
{
|
|
6473
6536
|
p_organization_id: org,
|
|
6474
6537
|
p_record_id: record_id,
|
|
6475
|
-
p_patch: { ...patch, _op_id:
|
|
6538
|
+
p_patch: { ...patch, _op_id: mintOp() },
|
|
6476
6539
|
p_add: add,
|
|
6477
6540
|
...expectedVersion === void 0 ? {} : { p_expected_version: expectedVersion }
|
|
6478
6541
|
},
|
|
@@ -7497,7 +7560,7 @@ function createRecordsClient(given) {
|
|
|
7497
7560
|
p_table_id: table_id,
|
|
7498
7561
|
p_key: keys,
|
|
7499
7562
|
// The op id rides the envelope, as `recordWrite` / `recordUpdate` send it; each door takes it off.
|
|
7500
|
-
p_data: { ...data, _op_id:
|
|
7563
|
+
p_data: { ...data, _op_id: mintOp() },
|
|
7501
7564
|
...expectedVersion === void 0 ? {} : { p_expected_version: expectedVersion }
|
|
7502
7565
|
},
|
|
7503
7566
|
"recordUpsert"
|
|
@@ -10490,6 +10553,7 @@ export {
|
|
|
10490
10553
|
TABLE_TYPES,
|
|
10491
10554
|
VALUE_ALTERNATE_KEYS,
|
|
10492
10555
|
VALUE_ENVELOPE_KEYS,
|
|
10556
|
+
WHERE_ID_OPENS_DOOR,
|
|
10493
10557
|
WHOLE_VALUE_SOURCE_KIND,
|
|
10494
10558
|
actionRefusals,
|
|
10495
10559
|
addFields,
|
|
@@ -10524,10 +10588,12 @@ export {
|
|
|
10524
10588
|
coerceTypedAnswer,
|
|
10525
10589
|
coerceTypedAnswers,
|
|
10526
10590
|
coercionLabel,
|
|
10591
|
+
createOpLedger,
|
|
10527
10592
|
createRecordsClient,
|
|
10528
10593
|
decideTypedChoice,
|
|
10529
10594
|
declareDrillDefinition,
|
|
10530
10595
|
declareTable,
|
|
10596
|
+
defaultOpLedger,
|
|
10531
10597
|
doorAbsent,
|
|
10532
10598
|
doorCensus,
|
|
10533
10599
|
doorExists,
|
|
@@ -10638,6 +10704,7 @@ export {
|
|
|
10638
10704
|
publicFormPath,
|
|
10639
10705
|
rankTypedMatches,
|
|
10640
10706
|
ratingMaxOf,
|
|
10707
|
+
readObjectOrganizationAnswer,
|
|
10641
10708
|
readTypedDate,
|
|
10642
10709
|
readTypedDuration,
|
|
10643
10710
|
readTypedNumber,
|
|
@@ -10653,6 +10720,7 @@ export {
|
|
|
10653
10720
|
relationNamesIn,
|
|
10654
10721
|
rememberedOpCount,
|
|
10655
10722
|
removedChoicesInUse,
|
|
10723
|
+
resolveObjectOrganization,
|
|
10656
10724
|
richTextPlain,
|
|
10657
10725
|
ruleThatRefuses,
|
|
10658
10726
|
rulesWithTopStar,
|
|
@@ -10685,6 +10753,7 @@ export {
|
|
|
10685
10753
|
typedTimeText,
|
|
10686
10754
|
valueConverts,
|
|
10687
10755
|
valuesAreUnconfirmed,
|
|
10756
|
+
whereIdOpensPort,
|
|
10688
10757
|
wholeValueNotRead,
|
|
10689
10758
|
wholeValueOf,
|
|
10690
10759
|
wholeValueOfRead,
|