@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/index.d.cts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { U as Uuid, a8 as MergeFieldSource, a7 as MergeFieldSemanticType, a6 as MergeFieldModifier, ab as OverridePolicy, N as Delivery,
|
|
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 { ab as CaptureFileRef, ac as CaptureOutcome } from './table-kind-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export { g as
|
|
11
|
-
export {
|
|
1
|
+
import { U as Uuid, a8 as MergeFieldSource, a7 as MergeFieldSemanticType, a6 as MergeFieldModifier, ab as OverridePolicy, N as Delivery, h as Timestamp, $ as Freshness } 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, 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, 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, a9 as ON_DELETE, aa as OVERRIDE_POLICIES, O as OnDelete, ac as PARITY_FIELD_TYPES, ad as PER_VALUE_ACCESS_WORDS, y as ParityFieldType, ae as PerValueAccessWord, P as PgError, B as PredictedRefusal, 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, w as ReadValue, m as RecordChange, n as RecordChangeResult, l as RecordDocument, o as RecordGraphWritten, t as RecordKeysetPage, s as RecordPage, r as RecordPageSort, p as RecordRead, v as RecordRevision, a as RecordsError, k as RecordsErrorCode, R as RecordsResult, 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, z as StaleWriteDetail, 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, 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 { ab as CaptureFileRef, ac as CaptureOutcome } 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, 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, o as TableKindFacts, 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
|
+
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, d as RecordsDataSource, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from './ports-9BQ3zo2y.cjs';
|
|
6
|
+
import { p as CoercibleField } from './field-6rwt4ejZ.cjs';
|
|
7
|
+
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, q as FIELD_KINDS, b as Field, 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';
|
|
8
|
+
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';
|
|
9
|
+
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';
|
|
10
|
+
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';
|
|
11
|
+
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';
|
|
12
|
+
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';
|
|
12
13
|
|
|
13
14
|
type WithFormat = CoercibleField & {
|
|
14
15
|
display_format?: unknown;
|
|
@@ -403,25 +404,4 @@ type MergeFieldResolution = {
|
|
|
403
404
|
reason: string;
|
|
404
405
|
};
|
|
405
406
|
|
|
406
|
-
|
|
407
|
-
* Mint the id for one client operation and remember it as ours.
|
|
408
|
-
*
|
|
409
|
-
* ONE CALL IS ONE OPERATION. A fifty-row paste through `recordWriteMany` is ONE op id, because
|
|
410
|
-
* the store announces one statement once — and it REFUSES a batch carrying two different ones
|
|
411
|
-
* by name, for exactly that reason.
|
|
412
|
-
*/
|
|
413
|
-
declare function mintOpId(): Uuid;
|
|
414
|
-
/**
|
|
415
|
-
* Is this notice the echo of a write this browser made?
|
|
416
|
-
*
|
|
417
|
-
* `undefined`/`null` is NOT ours and never has been: a notice with no `op_id` came from a
|
|
418
|
-
* server-side write, an agent tool, another client, or a store older than this mechanism —
|
|
419
|
-
* all of which are changes this browser has not seen and must read.
|
|
420
|
-
*/
|
|
421
|
-
declare function isOwnOp(opId: string | null | undefined): boolean;
|
|
422
|
-
/** Test seam: forget everything. Never called by product code. */
|
|
423
|
-
declare function forgetAllOps(): void;
|
|
424
|
-
/** Test seam: how many operations are currently remembered. */
|
|
425
|
-
declare function rememberedOpCount(): number;
|
|
426
|
-
|
|
427
|
-
export { CaptureFileRef, CaptureOutcome, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSyncReport, CoercibleField, Delivery, Freshness, type MergeField, MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, type MergeFieldTransform, type MissingBehavior, OverridePolicy, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, REFUSALS_WORTH_REPEATING, type ResolutionTriple, Timestamp, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, Uuid, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, forgetAllOps, indexedDbStore, isAutonumberField, isDecided, isOwnOp, localeDateOrder, memoryStore, mintClientKey, mintOpId, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, rememberedOpCount, twoDigitYear, typedDateText, typedMatchScore, typedTimeText };
|
|
407
|
+
export { CaptureFileRef, CaptureOutcome, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSyncReport, CoercibleField, Delivery, Freshness, type MergeField, MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, type MergeFieldTransform, type MissingBehavior, OverridePolicy, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, REFUSALS_WORTH_REPEATING, type ResolutionTriple, Timestamp, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, Uuid, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { U as Uuid, a8 as MergeFieldSource, a7 as MergeFieldSemanticType, a6 as MergeFieldModifier, ab as OverridePolicy, N as Delivery,
|
|
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 { ab as CaptureFileRef, ac as CaptureOutcome } from './table-kind-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export { g as
|
|
11
|
-
export {
|
|
1
|
+
import { U as Uuid, a8 as MergeFieldSource, a7 as MergeFieldSemanticType, a6 as MergeFieldModifier, ab as OverridePolicy, N as Delivery, h as Timestamp, $ as Freshness } 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, 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, 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, a9 as ON_DELETE, aa as OVERRIDE_POLICIES, O as OnDelete, ac as PARITY_FIELD_TYPES, ad as PER_VALUE_ACCESS_WORDS, y as ParityFieldType, ae as PerValueAccessWord, P as PgError, B as PredictedRefusal, 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, w as ReadValue, m as RecordChange, n as RecordChangeResult, l as RecordDocument, o as RecordGraphWritten, t as RecordKeysetPage, s as RecordPage, r as RecordPageSort, p as RecordRead, v as RecordRevision, a as RecordsError, k as RecordsErrorCode, R as RecordsResult, 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, z as StaleWriteDetail, 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, 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 { ab as CaptureFileRef, ac as CaptureOutcome } 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, 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, o as TableKindFacts, 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
|
+
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, d as RecordsDataSource, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from './ports-DYWE1ENo.js';
|
|
6
|
+
import { p as CoercibleField } from './field-B-WaVZnS.js';
|
|
7
|
+
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, q as FIELD_KINDS, b as Field, 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';
|
|
8
|
+
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';
|
|
9
|
+
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';
|
|
10
|
+
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';
|
|
11
|
+
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';
|
|
12
|
+
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';
|
|
12
13
|
|
|
13
14
|
type WithFormat = CoercibleField & {
|
|
14
15
|
display_format?: unknown;
|
|
@@ -403,25 +404,4 @@ type MergeFieldResolution = {
|
|
|
403
404
|
reason: string;
|
|
404
405
|
};
|
|
405
406
|
|
|
406
|
-
|
|
407
|
-
* Mint the id for one client operation and remember it as ours.
|
|
408
|
-
*
|
|
409
|
-
* ONE CALL IS ONE OPERATION. A fifty-row paste through `recordWriteMany` is ONE op id, because
|
|
410
|
-
* the store announces one statement once — and it REFUSES a batch carrying two different ones
|
|
411
|
-
* by name, for exactly that reason.
|
|
412
|
-
*/
|
|
413
|
-
declare function mintOpId(): Uuid;
|
|
414
|
-
/**
|
|
415
|
-
* Is this notice the echo of a write this browser made?
|
|
416
|
-
*
|
|
417
|
-
* `undefined`/`null` is NOT ours and never has been: a notice with no `op_id` came from a
|
|
418
|
-
* server-side write, an agent tool, another client, or a store older than this mechanism —
|
|
419
|
-
* all of which are changes this browser has not seen and must read.
|
|
420
|
-
*/
|
|
421
|
-
declare function isOwnOp(opId: string | null | undefined): boolean;
|
|
422
|
-
/** Test seam: forget everything. Never called by product code. */
|
|
423
|
-
declare function forgetAllOps(): void;
|
|
424
|
-
/** Test seam: how many operations are currently remembered. */
|
|
425
|
-
declare function rememberedOpCount(): number;
|
|
426
|
-
|
|
427
|
-
export { CaptureFileRef, CaptureOutcome, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSyncReport, CoercibleField, Delivery, Freshness, type MergeField, MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, type MergeFieldTransform, type MissingBehavior, OverridePolicy, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, REFUSALS_WORTH_REPEATING, type ResolutionTriple, Timestamp, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, Uuid, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, forgetAllOps, indexedDbStore, isAutonumberField, isDecided, isOwnOp, localeDateOrder, memoryStore, mintClientKey, mintOpId, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, rememberedOpCount, twoDigitYear, typedDateText, typedMatchScore, typedTimeText };
|
|
407
|
+
export { CaptureFileRef, CaptureOutcome, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSyncReport, CoercibleField, Delivery, Freshness, type MergeField, MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, type MergeFieldTransform, type MissingBehavior, OverridePolicy, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, REFUSALS_WORTH_REPEATING, type ResolutionTriple, Timestamp, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, Uuid, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText };
|
package/dist/index.js
CHANGED
|
@@ -2231,44 +2231,105 @@ function sourceArchivedOf(value) {
|
|
|
2231
2231
|
return out;
|
|
2232
2232
|
}
|
|
2233
2233
|
|
|
2234
|
+
// src/objectOrganization.ts
|
|
2235
|
+
var WHERE_ID_OPENS_DOOR = "where_id_opens";
|
|
2236
|
+
function doorIsAbsent(error) {
|
|
2237
|
+
if (error.code === "PGRST202" || error.code === "42883") return true;
|
|
2238
|
+
return /could not find the function/i.test(error.message ?? "");
|
|
2239
|
+
}
|
|
2240
|
+
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.";
|
|
2241
|
+
async function resolveObjectOrganization(dataSource, id) {
|
|
2242
|
+
let answered;
|
|
2243
|
+
try {
|
|
2244
|
+
answered = await dataSource.rpc(WHERE_ID_OPENS_DOOR, { p_id: id }, { schema: "custom" });
|
|
2245
|
+
} catch (thrown) {
|
|
2246
|
+
return { state: "unavailable", why: thrown instanceof Error ? thrown.message : "The record store did not answer." };
|
|
2247
|
+
}
|
|
2248
|
+
return readObjectOrganizationAnswer(answered, id);
|
|
2249
|
+
}
|
|
2250
|
+
function readObjectOrganizationAnswer(answered, id) {
|
|
2251
|
+
if (answered.error) {
|
|
2252
|
+
if (doorIsAbsent(answered.error)) {
|
|
2253
|
+
console.warn(`[@ai-matrx/records] ${DOOR_ABSENT_WHY}`);
|
|
2254
|
+
return { state: "unavailable", why: DOOR_ABSENT_WHY };
|
|
2255
|
+
}
|
|
2256
|
+
return { state: "unavailable", why: answered.error.message ?? "The record store refused to say where this is." };
|
|
2257
|
+
}
|
|
2258
|
+
const row = answered.data;
|
|
2259
|
+
if (row === null || row === void 0) return { state: "not-given" };
|
|
2260
|
+
if (typeof row !== "object" || typeof row.organization_id !== "string" || typeof row.kind !== "string") {
|
|
2261
|
+
return { state: "unavailable", why: "The record store answered something this page cannot read." };
|
|
2262
|
+
}
|
|
2263
|
+
return {
|
|
2264
|
+
state: "found",
|
|
2265
|
+
organizationId: row.organization_id,
|
|
2266
|
+
kind: row.kind,
|
|
2267
|
+
path: typeof row.path === "string" ? row.path : null,
|
|
2268
|
+
live: row.live !== false,
|
|
2269
|
+
resolvedId: typeof row.resolved_id === "string" ? row.resolved_id : id
|
|
2270
|
+
};
|
|
2271
|
+
}
|
|
2272
|
+
function whereIdOpensPort(dataSource) {
|
|
2273
|
+
return { organizationOf: (id) => resolveObjectOrganization(dataSource, id) };
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2234
2276
|
// src/ops.ts
|
|
2235
2277
|
import { globalSlot } from "@ai-matrx/kit/global-slot";
|
|
2236
2278
|
var REMEMBER_MS = 3e4;
|
|
2237
2279
|
var REMEMBER_MAX = 500;
|
|
2238
|
-
|
|
2239
|
-
function trim(now) {
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2280
|
+
function ledgerOver(ours) {
|
|
2281
|
+
function trim(now) {
|
|
2282
|
+
for (const [id, at] of ours) {
|
|
2283
|
+
if (now - at <= REMEMBER_MS) break;
|
|
2284
|
+
ours.delete(id);
|
|
2285
|
+
}
|
|
2286
|
+
while (ours.size > REMEMBER_MAX) {
|
|
2287
|
+
const oldest = ours.keys().next();
|
|
2288
|
+
if (oldest.done === true) break;
|
|
2289
|
+
ours.delete(oldest.value);
|
|
2290
|
+
}
|
|
2248
2291
|
}
|
|
2292
|
+
return {
|
|
2293
|
+
mint() {
|
|
2294
|
+
const id = crypto.randomUUID();
|
|
2295
|
+
const now = Date.now();
|
|
2296
|
+
ours.set(id, now);
|
|
2297
|
+
trim(now);
|
|
2298
|
+
return id;
|
|
2299
|
+
},
|
|
2300
|
+
isOwn(opId) {
|
|
2301
|
+
if (!opId) return false;
|
|
2302
|
+
const at = ours.get(opId);
|
|
2303
|
+
if (at === void 0) return false;
|
|
2304
|
+
if (Date.now() - at > REMEMBER_MS) {
|
|
2305
|
+
ours.delete(opId);
|
|
2306
|
+
return false;
|
|
2307
|
+
}
|
|
2308
|
+
return true;
|
|
2309
|
+
},
|
|
2310
|
+
clear() {
|
|
2311
|
+
ours.clear();
|
|
2312
|
+
},
|
|
2313
|
+
get size() {
|
|
2314
|
+
return ours.size;
|
|
2315
|
+
}
|
|
2316
|
+
};
|
|
2317
|
+
}
|
|
2318
|
+
function createOpLedger() {
|
|
2319
|
+
return ledgerOver(/* @__PURE__ */ new Map());
|
|
2249
2320
|
}
|
|
2321
|
+
var defaultOpLedger = ledgerOver(globalSlot("ai-matrx.records.op-ledger", () => /* @__PURE__ */ new Map()));
|
|
2250
2322
|
function mintOpId() {
|
|
2251
|
-
|
|
2252
|
-
const now = Date.now();
|
|
2253
|
-
ours.set(id, now);
|
|
2254
|
-
trim(now);
|
|
2255
|
-
return id;
|
|
2323
|
+
return defaultOpLedger.mint();
|
|
2256
2324
|
}
|
|
2257
2325
|
function isOwnOp(opId) {
|
|
2258
|
-
|
|
2259
|
-
const at = ours.get(opId);
|
|
2260
|
-
if (at === void 0) return false;
|
|
2261
|
-
if (Date.now() - at > REMEMBER_MS) {
|
|
2262
|
-
ours.delete(opId);
|
|
2263
|
-
return false;
|
|
2264
|
-
}
|
|
2265
|
-
return true;
|
|
2326
|
+
return defaultOpLedger.isOwn(opId);
|
|
2266
2327
|
}
|
|
2267
2328
|
function forgetAllOps() {
|
|
2268
|
-
|
|
2329
|
+
defaultOpLedger.clear();
|
|
2269
2330
|
}
|
|
2270
2331
|
function rememberedOpCount() {
|
|
2271
|
-
return
|
|
2332
|
+
return defaultOpLedger.size;
|
|
2272
2333
|
}
|
|
2273
2334
|
|
|
2274
2335
|
// src/store.generated.ts
|
|
@@ -5044,6 +5105,7 @@ export {
|
|
|
5044
5105
|
TABLE_TYPES,
|
|
5045
5106
|
VALUE_ALTERNATE_KEYS,
|
|
5046
5107
|
VALUE_ENVELOPE_KEYS,
|
|
5108
|
+
WHERE_ID_OPENS_DOOR,
|
|
5047
5109
|
actionRefusals,
|
|
5048
5110
|
addressFromText,
|
|
5049
5111
|
addressMapUrl,
|
|
@@ -5069,8 +5131,10 @@ export {
|
|
|
5069
5131
|
coerceTypedAnswer,
|
|
5070
5132
|
coerceTypedAnswers,
|
|
5071
5133
|
coercionLabel,
|
|
5134
|
+
createOpLedger,
|
|
5072
5135
|
decideTypedChoice,
|
|
5073
5136
|
declareDrillDefinition,
|
|
5137
|
+
defaultOpLedger,
|
|
5074
5138
|
drillAnswerOf,
|
|
5075
5139
|
drillFindingKnob,
|
|
5076
5140
|
durationText,
|
|
@@ -5148,6 +5212,7 @@ export {
|
|
|
5148
5212
|
publicFormPath,
|
|
5149
5213
|
rankTypedMatches,
|
|
5150
5214
|
ratingMaxOf,
|
|
5215
|
+
readObjectOrganizationAnswer,
|
|
5151
5216
|
readTypedDate,
|
|
5152
5217
|
readTypedDuration,
|
|
5153
5218
|
readTypedNumber,
|
|
@@ -5162,6 +5227,7 @@ export {
|
|
|
5162
5227
|
relationNamesIn,
|
|
5163
5228
|
rememberedOpCount,
|
|
5164
5229
|
removedChoicesInUse,
|
|
5230
|
+
resolveObjectOrganization,
|
|
5165
5231
|
richTextPlain,
|
|
5166
5232
|
ruleThatRefuses,
|
|
5167
5233
|
rulesWithTopStar,
|
|
@@ -5184,6 +5250,7 @@ export {
|
|
|
5184
5250
|
typedMatchScore,
|
|
5185
5251
|
typedTimeText,
|
|
5186
5252
|
valueConverts,
|
|
5253
|
+
whereIdOpensPort,
|
|
5187
5254
|
withCallersClock,
|
|
5188
5255
|
withRowCounts,
|
|
5189
5256
|
withTablePlacement
|