@ai-matrx/records 0.87.32 → 0.92.1
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 +100 -0
- package/README.md +115 -0
- package/dist/{client-E0VQ0NPO.d.ts → client-Cn3odIIB.d.cts} +10 -5
- package/dist/{client-C3ZZNfGH.d.cts → client-Dzd8gtAo.d.ts} +10 -5
- package/dist/core/index.cjs +28 -10
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +23 -12
- package/dist/core/index.d.ts +23 -12
- package/dist/core/index.js +28 -10
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +22 -10
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +12 -142
- package/dist/data/index.d.ts +12 -142
- package/dist/data/index.js +22 -10
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-BK3zufr7.d.cts → declareTable-CrL6AZKB.d.cts} +4 -4
- package/dist/{declareTable-B12XybRp.d.ts → declareTable-ZRW5EsTQ.d.ts} +4 -4
- package/dist/entity/index.cjs +984 -0
- package/dist/entity/index.cjs.map +1 -0
- package/dist/entity/index.d.cts +36 -0
- package/dist/entity/index.d.ts +36 -0
- package/dist/entity/index.js +964 -0
- package/dist/entity/index.js.map +1 -0
- package/dist/entity/react.cjs +1024 -0
- package/dist/entity/react.cjs.map +1 -0
- package/dist/entity/react.d.cts +511 -0
- package/dist/entity/react.d.ts +511 -0
- package/dist/entity/react.js +1015 -0
- package/dist/entity/react.js.map +1 -0
- package/dist/{field-BanTVGK2.d.cts → field-CCY1rG9l.d.cts} +1 -1
- package/dist/{field-BPABOJ2Y.d.ts → field-enufS5ry.d.ts} +1 -1
- package/dist/forms/index.cjs +984 -0
- package/dist/forms/index.cjs.map +1 -0
- package/dist/forms/index.d.cts +333 -0
- package/dist/forms/index.d.ts +333 -0
- package/dist/forms/index.js +961 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/memory/index.d.cts +7 -6
- package/dist/memory/index.d.ts +7 -6
- package/dist/port-C54ykAOv.d.ts +301 -0
- package/dist/port-Drioh9al.d.cts +301 -0
- package/dist/portal-DRdmZ-xv.d.cts +331 -0
- package/dist/portal-or_f7BkT.d.ts +331 -0
- package/dist/{ports-TMWX-t9l.d.ts → ports-BeOgjwYl.d.ts} +2 -2
- package/dist/{ports-D8-iuY1P.d.cts → ports-s0D2jvqn.d.cts} +2 -2
- package/dist/react/index.cjs +58 -526
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +16 -1
- package/dist/react/index.d.ts +16 -1
- package/dist/react/index.js +55 -530
- package/dist/react/index.js.map +1 -1
- package/dist/realtime/index.d.cts +2 -2
- package/dist/realtime/index.d.ts +2 -2
- package/dist/{record-DpB2QgAZ.d.cts → record-BwCf9wKW.d.cts} +7 -1
- package/dist/{record-DpB2QgAZ.d.ts → record-BwCf9wKW.d.ts} +7 -1
- package/dist/relation-8vAWCa67.d.cts +230 -0
- package/dist/relation-eLMgv_dV.d.ts +230 -0
- package/dist/rule-D9yNiorf.d.ts +250 -0
- package/dist/rule-wHI5B0Ka.d.cts +250 -0
- package/dist/search/index.cjs +283 -0
- package/dist/search/index.cjs.map +1 -0
- package/dist/search/index.d.cts +44 -0
- package/dist/search/index.d.ts +44 -0
- package/dist/search/index.js +260 -0
- package/dist/search/index.js.map +1 -0
- package/dist/setup/index.cjs +6854 -0
- package/dist/setup/index.cjs.map +1 -0
- package/dist/setup/index.d.cts +87 -0
- package/dist/setup/index.d.ts +87 -0
- package/dist/setup/index.js +6829 -0
- package/dist/setup/index.js.map +1 -0
- package/dist/{subscription-D7KQBHXN.d.ts → subscription-BynsG1K6.d.ts} +3 -249
- package/dist/{subscription-BD9DnJxX.d.cts → subscription-CdoI-UaB.d.cts} +3 -249
- package/dist/{table-kind-BZu8mtND.d.cts → table-kind-DzctQ7dO.d.cts} +3 -558
- package/dist/{table-kind-xKxTHtrV.d.ts → table-kind-i3lZJa3f.d.ts} +3 -558
- package/dist/templates/index.d.cts +10 -9
- package/dist/templates/index.d.ts +10 -9
- package/dist/typed-table/index.cjs +22 -10
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +10 -7
- package/dist/typed-table/index.d.ts +10 -7
- package/dist/typed-table/index.js +22 -10
- package/dist/typed-table/index.js.map +1 -1
- package/dist/types-BKYEeFt4.d.cts +139 -0
- package/dist/{types-Dv61jStB.d.ts → types-BvL_oKFl.d.ts} +2 -2
- package/dist/{types-CLP5H4Wk.d.cts → types-D8qdG3Lg.d.cts} +2 -2
- package/dist/{types-C2uspRtf.d.cts → types-DAFP6XFe.d.cts} +2 -2
- package/dist/{types-DmPkWQic.d.ts → types-DYzXhD7j.d.ts} +2 -2
- package/dist/types-cpKY7Pjb.d.ts +139 -0
- package/dist/use-cases/index.d.cts +5 -5
- package/dist/use-cases/index.d.ts +5 -5
- package/dist/{validate-CWVToe1T.d.ts → validate-DbvAParj.d.ts} +1 -1
- package/dist/{validate-DEB_mn4Y.d.cts → validate-DfNMxjmU.d.cts} +1 -1
- package/dist/versions/index.cjs +375 -0
- package/dist/versions/index.cjs.map +1 -0
- package/dist/versions/index.d.cts +160 -0
- package/dist/versions/index.d.ts +160 -0
- package/dist/versions/index.js +353 -0
- package/dist/versions/index.js.map +1 -0
- package/package.json +62 -2
package/dist/core/index.d.cts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { b as Field } from '../field-
|
|
6
|
-
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-
|
|
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-BwCf9wKW.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, j 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, i 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, c as RelationBinding, d as RelationCardinality, b as RelationFlavor, am as RetiredActorWord, e as RuleNodeKind, f 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, h as TableDisplay, aw as TableOrigin, g as TableType, T 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-BwCf9wKW.cjs';
|
|
3
|
+
import { o as TableKindFacts } from '../table-kind-DzctQ7dO.cjs';
|
|
4
|
+
export { bv as ARCHIVE_LANES, bw as ARCHIVE_LANE_LABEL, bx as ARCHIVE_LANE_MEANS, by as ActionRefusal, bd as ActionRunResult, aB as AnonTokenBinding, A as ArchiveLane, a4 as ArchivedChecklistTemplate, bz as ArchivedDoorRow, a3 as ArchivedForm, e as ArchivedRow, bA as AutomationAction, bf as AutomationDeclared, bB as AutomationFilter, bh as AutomationFlipped, bC as AutomationItem, bD as AutomationLastRun, bg as AutomationList, bE as AutomationRun, bF as AutomationRunStatus, bi as AutomationRuns, be as AutomationSpec, bG as AutomationStep, bH as AutomationTrigger, bI as AutomationValue, bJ as AutomationValues, bK as BUILT_KIND_WORD, bL as CHOICE_NUDGES, bM as CaptureField, ab as CaptureFileRef, ac as CaptureOutcome, bN as CaptureQuestion, aa as CaptureSheetFace, a9 as CaptureSheetSummary, aD as ChecklistDeclared, bO as ChecklistRequirement, bP as ChecklistRequirementKind, bQ as ChecklistRoleSpec, aG as ChecklistRunStarted, aH as ChecklistRunStep, aI as ChecklistRunSummary, aC as ChecklistSpec, aJ as ChecklistStepCompleted, bR as ChecklistStepSpec, aF as ChecklistTemplateShape, aE as ChecklistTemplateSummary, bS as ChecklistTrigger, bT as ChecklistTriggerKind, k as ChoiceCellBack, bU as ChoiceLike, C as ChoiceNudge, bV as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, az as CommentThreadRead, aA as CommentWritten, au as ConversationScope, av as ConversationScopeContext, bW as CustomFieldTableType, bX as DEFAULT_ARCHIVE_LANE, bY as DRILL_CHART_TOKENS, bZ as DRILL_DESCRIPTION_MAX, b_ as DRILL_DOORS, b$ as DRILL_SCHEMA, bo as DataHomeTable, c0 as DecorationColor, b7 as DecorationPath, c1 as DecorationRule, c2 as DecorationRuleOp, c3 as DecorationTarget, aq as DocRenderRow, c4 as DocSignatureCheck, ar as DocSignatureRow, ap as DocTemplateRow, an as DocToken, ao as DocUnresolvedToken, c5 as DrillAdHocOp, al as DrillAnswer, c6 as DrillAnswerRow, c7 as DrillChartToken, c8 as DrillDeclaration, aj as DrillDefinition, c9 as DrillDimension, ca as DrillFinding, cb as DrillGrain, cc as DrillHaving, cd as DrillLane, ce as DrillLevel, cf as DrillMeasure, cg as DrillMeasureOp, ch as DrillMeasureWhereValue, ci as DrillPath, ak as DrillQuestion, cj as DrillRecords, am as DrillRowsPage, ai as DrillSource, ck as DrillView, cl as EnrichAlternate, ag as EnrichCell, ae as EnrichDeclared, af as EnrichDueRow, ah as EnrichRun, cm as EnrichSource, cn as Enrichment, ad as EnrichmentSummary, co as EntityBackLinkItem, v as EntityBackLinks, t as EntityFieldRights, cp as EntityFieldValue, s as EntityFieldsAcross, cq as EntityRecordMatch, u as EntityRecordRead, x as EntityRecordsFound, w as EntityRowWritten, E as EntityTableFacts, b2 as ExternalPrincipalCard, F as FieldDrift, cr as FieldDriftAspect, aw as FieldHistoryEntry, n as FieldRetyped, a2 as FormArchiveAnswer, ba as FormulaParse, bb as FormulaPreview, b9 as GridLayout, cs as GridLayoutMode, ct as GridRowHeight, cu as HistoryActor, cv as HistoryActorKind, cw as HistoryChange, cx as Home, Y as ImportBatchResult, cy as ImportColumnPlan, X as ImportColumnsDeclared, Z as ImportFinished, W as ImportOpened, cz as ImportOutcome, U as ImportPlan, V as ImportPolicy, cA as ImportProposal, _ as ImportReport, $ as ImportRun, a1 as InboundAddress, a0 as InboundDeclared, aT as InboxCounts, aS as InboxStateChange, bm as IoExportPage, M as MigrationUndone, b6 as MyLevel, N as NewEntityFieldDeclaration, bt as OutsideShareAnswer, cB as PERMISSION_LEVELS, cC as PIPELINE_RULE_KINDS, cD as PermissionLevel, P as Pipeline, y as PipelineColumn, I as PipelineDeclared, O as PipelineGate, Q as PipelineGatePreview, cE as PipelineMissingField, G as PipelineMoveMany, D as PipelineMoveManyItem, cF as PipelineMoveManyResult, B as PipelineMoveResult, cG as PipelineMoveVerdict, cH as PipelineRule, cI as PipelineRuleKind, H as PipelineSpec, cJ as PipelineStage, z as PipelineVerdict, b3 as PublishBinding, cK as PublishBindingKind, cL as ROW_WEB_NOT_READY, cM as RecordChangeAction, cN as RecordComment, bj as RecordEvent, bs as RecordHeader, as as RecordHistoryEntry, a8 as RecordRowControls, cO as RecordScopeComment, at as RecordScopeContext, cP as RecordScopeField, cQ as RecordScopeHistoryEntry, cR as RecordScopeRelation, cS as RecordScopeWithheld, R as RecordsMerged, cT as RegisteredTable, b4 as ResolvedPublishBinding, b5 as ResolvedPublishBindingKind, ax as RestorePreview, ay as RestoreResult, cU as RetypeBehaviour, cV as RetypePreview, bc as RowAction, cW as RowActionStep, a7 as RowDefaultsApplied, cX as SHOWN_TO_LABEL, cY as SHOWN_TO_VALUES, cZ as SHOWN_TO_WHO_MAY_CHANGE, c_ as STAGE_RULE_ENFORCEMENT, c$ as STAGE_RULE_ON_FAIL, d0 as ShownTo, K as StagePending, L as StagePendingOnBoard, J as StageRuleEnforcement, S as StageRuleOnFail, d1 as StageRuleWarning, d2 as TABLE_KIND_PREFIX, f as Table, T as TableArchiveProgress, m as TableCapacity, d as TableCopyInProgress, b8 as TableDecorations, b as TableDuplicateProgress, c as TableDuplicated, g as TableHome, d3 as TableHomeDestination, d4 as TableLevel, d5 as TableLevelApproval, p as TableLevelFacts, r as TableLevelSet, bn as TableListEntry, h as TableMoved, d6 as TablePlacement, d7 as TablePlacementFact, q as TableReaderRule, d8 as TableRenderSchema, a as TableRestoreProgress, br as TableRowCount, a5 as TableRowDefaults, a6 as TableRowDefaultsPatch, d9 as TableSchemaMode, bq as TableSyncResult, da as TableSyncSource, bp as TableSyncSpec, bl as TableWebhook, bk as TableWebhookDeclared, db as TypedChoiceDecision, dc as ViewLayout, bu as ViewOrderSet, a$ as WorkApprovalDecision, a_ as WorkApprovalFiled, dd as WorkApprovalState, aY as WorkApprover, aW as WorkAssignment, aO as WorkAssignmentField, aZ as WorkChange, b1 as WorkDecideMany, b0 as WorkDecideManyItem, de as WorkDecideManyResult, df as WorkDecideVerdict, dg as WorkDueState, aL as WorkGraph, aR as WorkInboxItem, dh as WorkInboxKind, aQ as WorkInboxView, aM as WorkInstantiation, aU as WorkListFlavour, aV as WorkListItem, di as WorkOrigin, aX as WorkRecordState, aP as WorkSlotHold, aK as WorkState, dj as WorkTemplateNode, dk as WorkTemplateRelation, aN as WorkTurn, dl as actionRefusals, dm as archivedByLine, dn as archivedWhen, dp as asChoiceNudge, dq as asPermissionLevel, dr as atLeast, ds as choiceSlug, dt as choiceValuesOf, du as choicesOf, dv as decideTypedChoice, dw as declareDrillDefinition, dx as drillAnswerOf, dy as drillFindingKnob, dz as emptyArchiveLine, dA as exportPageXlsx, dB as fieldKindOf, dC as highestLevel, dD as holdsARetiredChoice, dE as isArchiveLane, dF as isFoundation, dG as isShownTo, dH as isTableKind, dI as isTheChosen, dJ as keptGroups, dK as keptOutOfSight, dL as keptTableHref, dM as levelHasShownTo, dN as looksLikeAnId, dO as mayDrag, dP as moveConsequence, dQ as moveInOrder, dR as offeredAsContext, dS as optionKey, dT as optionLabel, dU as parseFieldDrift, dV as parseTableCopiesInProgress, dW as parseTableDuplicateProgress, dX as parseTableDuplicated, dY as parseTableHome, dZ as parseTableMoved, d_ as previewRetype, d$ as previewRuleChange, e0 as recordChangeTrigger, e1 as recordSourceKey, e2 as recordSourceTable, e3 as recordsUseSentence, e4 as rehomeSentence, e5 as removedChoicesInUse, e6 as ruleThatRefuses, e7 as rulesWithTopStar, e8 as sameDocument, e9 as scopeChip, ea as sheetSyncSpec, eb as tableIdOf, ec as tableJsonSchema, ed as tableKindMapping, ee as tableKindSlug, ef as tableRenderSchema, eg as valueConverts, eh as withRowCounts, ei as withTablePlacement } from '../table-kind-DzctQ7dO.cjs';
|
|
5
|
+
import { b as Field } from '../field-CCY1rG9l.cjs';
|
|
6
|
+
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-CCY1rG9l.cjs';
|
|
7
7
|
export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, forgetAllOps, indexedDbStore, isAutonumberField, isDecided, isOwnOp, localeDateOrder, memoryStore, mintClientKey, mintOpId, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, rememberedOpCount, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.cjs';
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
export { c as
|
|
11
|
-
export {
|
|
12
|
-
|
|
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-wHI5B0Ka.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-DRdmZ-xv.cjs';
|
|
10
|
+
export { c as AggregateBucket, g as AggregateCompare, q as AggregateCompareKind, r as AggregateCompareWindows, s as AggregateDelta, a as AggregateFilter, t as AggregateGroupValue, b as AggregateMeasure, A as AggregateOperation, j as AggregateRow, u as AggregateWindow, f as DashboardBlock, D as DashboardBlockKind, v as DashboardBlockResult, h as DashboardRunResult, e as DashboardSummary, w as DashboardTarget, x as DashboardTargetBase, y as DashboardTargetOp, z as DashboardTargetResult, B as DashboardTotals, m as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, p as RowTemplateRow, C as SavedViewColorBy, E as SavedViewDefinition, F as SavedViewLayout, n as SavedViewRow, o as SavedViewSpecIn, d as StoreFilter, i as StuckRow, k as Subscription, G as SubscriptionBlock, S as SubscriptionCadence, l 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-CdoI-UaB.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-8vAWCa67.cjs';
|
|
12
|
+
import { c as RecordsDataSource } from '../ports-s0D2jvqn.cjs';
|
|
13
|
+
export { e as RecordsActor, d as RecordsChangeSink, a as RecordsConfig, b as RecordsErrorSink, f as RecordsFilter, R as RecordsRealtimePort, g as RecordsResolverPort, h as RecordsResponse, i as RecordsTableQuery } from '../ports-s0D2jvqn.cjs';
|
|
14
|
+
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-Cn3odIIB.cjs';
|
|
15
|
+
export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-CrL6AZKB.cjs';
|
|
13
16
|
|
|
14
17
|
declare function doorExists(name: string): boolean;
|
|
15
18
|
/**
|
|
@@ -577,6 +580,14 @@ declare const MAPPED_SQLSTATES: string[];
|
|
|
577
580
|
declare function mapPgError(error: PgError, where: string): RecordsError;
|
|
578
581
|
/** Pull the conflict out of a `stale_write`, when the store sent one. */
|
|
579
582
|
declare function staleWriteDetail(error: RecordsError): StaleWriteDetail | null;
|
|
583
|
+
/**
|
|
584
|
+
* HONEST-REFUSALS 1 — a member of an ARCHIVED organization is refused with the store's own sentence
|
|
585
|
+
* ("This organization is archived, …") and DETAIL `organization_archived:<organization id>`. The sentence
|
|
586
|
+
* and the restore hint ride `message` and `hint` verbatim like every refusal; this reads the organization out
|
|
587
|
+
* so a screen can offer "Restore" (the owner's `iam.organization_restore` door) instead of a dead end.
|
|
588
|
+
* Null for every other refusal, including the non-member's "You are not a member of that organization".
|
|
589
|
+
*/
|
|
590
|
+
declare function archivedOrganizationId(error: RecordsError): string | null;
|
|
580
591
|
|
|
581
592
|
/** The published defaults, which are also what the store falls back to when it cannot read a knob. */
|
|
582
593
|
declare const DEFAULT_VALUE_MAX_BYTES = 100000;
|
|
@@ -737,4 +748,4 @@ declare function seededDataSource(index: Map<string, unknown>): {
|
|
|
737
748
|
missed: () => boolean;
|
|
738
749
|
};
|
|
739
750
|
|
|
740
|
-
export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, MAPPED_SQLSTATES, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, StaleWriteDetail, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, asRecordsDataSource, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, mapPgError, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, staleWriteDetail, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
|
|
751
|
+
export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, MAPPED_SQLSTATES, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, StaleWriteDetail, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, archivedOrganizationId, asRecordsDataSource, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, mapPgError, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, staleWriteDetail, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { b as Field } from '../field-
|
|
6
|
-
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-
|
|
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-BwCf9wKW.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, j 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, i 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, c as RelationBinding, d as RelationCardinality, b as RelationFlavor, am as RetiredActorWord, e as RuleNodeKind, f 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, h as TableDisplay, aw as TableOrigin, g as TableType, T 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-BwCf9wKW.js';
|
|
3
|
+
import { o as TableKindFacts } from '../table-kind-i3lZJa3f.js';
|
|
4
|
+
export { bv as ARCHIVE_LANES, bw as ARCHIVE_LANE_LABEL, bx as ARCHIVE_LANE_MEANS, by as ActionRefusal, bd as ActionRunResult, aB as AnonTokenBinding, A as ArchiveLane, a4 as ArchivedChecklistTemplate, bz as ArchivedDoorRow, a3 as ArchivedForm, e as ArchivedRow, bA as AutomationAction, bf as AutomationDeclared, bB as AutomationFilter, bh as AutomationFlipped, bC as AutomationItem, bD as AutomationLastRun, bg as AutomationList, bE as AutomationRun, bF as AutomationRunStatus, bi as AutomationRuns, be as AutomationSpec, bG as AutomationStep, bH as AutomationTrigger, bI as AutomationValue, bJ as AutomationValues, bK as BUILT_KIND_WORD, bL as CHOICE_NUDGES, bM as CaptureField, ab as CaptureFileRef, ac as CaptureOutcome, bN as CaptureQuestion, aa as CaptureSheetFace, a9 as CaptureSheetSummary, aD as ChecklistDeclared, bO as ChecklistRequirement, bP as ChecklistRequirementKind, bQ as ChecklistRoleSpec, aG as ChecklistRunStarted, aH as ChecklistRunStep, aI as ChecklistRunSummary, aC as ChecklistSpec, aJ as ChecklistStepCompleted, bR as ChecklistStepSpec, aF as ChecklistTemplateShape, aE as ChecklistTemplateSummary, bS as ChecklistTrigger, bT as ChecklistTriggerKind, k as ChoiceCellBack, bU as ChoiceLike, C as ChoiceNudge, bV as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, az as CommentThreadRead, aA as CommentWritten, au as ConversationScope, av as ConversationScopeContext, bW as CustomFieldTableType, bX as DEFAULT_ARCHIVE_LANE, bY as DRILL_CHART_TOKENS, bZ as DRILL_DESCRIPTION_MAX, b_ as DRILL_DOORS, b$ as DRILL_SCHEMA, bo as DataHomeTable, c0 as DecorationColor, b7 as DecorationPath, c1 as DecorationRule, c2 as DecorationRuleOp, c3 as DecorationTarget, aq as DocRenderRow, c4 as DocSignatureCheck, ar as DocSignatureRow, ap as DocTemplateRow, an as DocToken, ao as DocUnresolvedToken, c5 as DrillAdHocOp, al as DrillAnswer, c6 as DrillAnswerRow, c7 as DrillChartToken, c8 as DrillDeclaration, aj as DrillDefinition, c9 as DrillDimension, ca as DrillFinding, cb as DrillGrain, cc as DrillHaving, cd as DrillLane, ce as DrillLevel, cf as DrillMeasure, cg as DrillMeasureOp, ch as DrillMeasureWhereValue, ci as DrillPath, ak as DrillQuestion, cj as DrillRecords, am as DrillRowsPage, ai as DrillSource, ck as DrillView, cl as EnrichAlternate, ag as EnrichCell, ae as EnrichDeclared, af as EnrichDueRow, ah as EnrichRun, cm as EnrichSource, cn as Enrichment, ad as EnrichmentSummary, co as EntityBackLinkItem, v as EntityBackLinks, t as EntityFieldRights, cp as EntityFieldValue, s as EntityFieldsAcross, cq as EntityRecordMatch, u as EntityRecordRead, x as EntityRecordsFound, w as EntityRowWritten, E as EntityTableFacts, b2 as ExternalPrincipalCard, F as FieldDrift, cr as FieldDriftAspect, aw as FieldHistoryEntry, n as FieldRetyped, a2 as FormArchiveAnswer, ba as FormulaParse, bb as FormulaPreview, b9 as GridLayout, cs as GridLayoutMode, ct as GridRowHeight, cu as HistoryActor, cv as HistoryActorKind, cw as HistoryChange, cx as Home, Y as ImportBatchResult, cy as ImportColumnPlan, X as ImportColumnsDeclared, Z as ImportFinished, W as ImportOpened, cz as ImportOutcome, U as ImportPlan, V as ImportPolicy, cA as ImportProposal, _ as ImportReport, $ as ImportRun, a1 as InboundAddress, a0 as InboundDeclared, aT as InboxCounts, aS as InboxStateChange, bm as IoExportPage, M as MigrationUndone, b6 as MyLevel, N as NewEntityFieldDeclaration, bt as OutsideShareAnswer, cB as PERMISSION_LEVELS, cC as PIPELINE_RULE_KINDS, cD as PermissionLevel, P as Pipeline, y as PipelineColumn, I as PipelineDeclared, O as PipelineGate, Q as PipelineGatePreview, cE as PipelineMissingField, G as PipelineMoveMany, D as PipelineMoveManyItem, cF as PipelineMoveManyResult, B as PipelineMoveResult, cG as PipelineMoveVerdict, cH as PipelineRule, cI as PipelineRuleKind, H as PipelineSpec, cJ as PipelineStage, z as PipelineVerdict, b3 as PublishBinding, cK as PublishBindingKind, cL as ROW_WEB_NOT_READY, cM as RecordChangeAction, cN as RecordComment, bj as RecordEvent, bs as RecordHeader, as as RecordHistoryEntry, a8 as RecordRowControls, cO as RecordScopeComment, at as RecordScopeContext, cP as RecordScopeField, cQ as RecordScopeHistoryEntry, cR as RecordScopeRelation, cS as RecordScopeWithheld, R as RecordsMerged, cT as RegisteredTable, b4 as ResolvedPublishBinding, b5 as ResolvedPublishBindingKind, ax as RestorePreview, ay as RestoreResult, cU as RetypeBehaviour, cV as RetypePreview, bc as RowAction, cW as RowActionStep, a7 as RowDefaultsApplied, cX as SHOWN_TO_LABEL, cY as SHOWN_TO_VALUES, cZ as SHOWN_TO_WHO_MAY_CHANGE, c_ as STAGE_RULE_ENFORCEMENT, c$ as STAGE_RULE_ON_FAIL, d0 as ShownTo, K as StagePending, L as StagePendingOnBoard, J as StageRuleEnforcement, S as StageRuleOnFail, d1 as StageRuleWarning, d2 as TABLE_KIND_PREFIX, f as Table, T as TableArchiveProgress, m as TableCapacity, d as TableCopyInProgress, b8 as TableDecorations, b as TableDuplicateProgress, c as TableDuplicated, g as TableHome, d3 as TableHomeDestination, d4 as TableLevel, d5 as TableLevelApproval, p as TableLevelFacts, r as TableLevelSet, bn as TableListEntry, h as TableMoved, d6 as TablePlacement, d7 as TablePlacementFact, q as TableReaderRule, d8 as TableRenderSchema, a as TableRestoreProgress, br as TableRowCount, a5 as TableRowDefaults, a6 as TableRowDefaultsPatch, d9 as TableSchemaMode, bq as TableSyncResult, da as TableSyncSource, bp as TableSyncSpec, bl as TableWebhook, bk as TableWebhookDeclared, db as TypedChoiceDecision, dc as ViewLayout, bu as ViewOrderSet, a$ as WorkApprovalDecision, a_ as WorkApprovalFiled, dd as WorkApprovalState, aY as WorkApprover, aW as WorkAssignment, aO as WorkAssignmentField, aZ as WorkChange, b1 as WorkDecideMany, b0 as WorkDecideManyItem, de as WorkDecideManyResult, df as WorkDecideVerdict, dg as WorkDueState, aL as WorkGraph, aR as WorkInboxItem, dh as WorkInboxKind, aQ as WorkInboxView, aM as WorkInstantiation, aU as WorkListFlavour, aV as WorkListItem, di as WorkOrigin, aX as WorkRecordState, aP as WorkSlotHold, aK as WorkState, dj as WorkTemplateNode, dk as WorkTemplateRelation, aN as WorkTurn, dl as actionRefusals, dm as archivedByLine, dn as archivedWhen, dp as asChoiceNudge, dq as asPermissionLevel, dr as atLeast, ds as choiceSlug, dt as choiceValuesOf, du as choicesOf, dv as decideTypedChoice, dw as declareDrillDefinition, dx as drillAnswerOf, dy as drillFindingKnob, dz as emptyArchiveLine, dA as exportPageXlsx, dB as fieldKindOf, dC as highestLevel, dD as holdsARetiredChoice, dE as isArchiveLane, dF as isFoundation, dG as isShownTo, dH as isTableKind, dI as isTheChosen, dJ as keptGroups, dK as keptOutOfSight, dL as keptTableHref, dM as levelHasShownTo, dN as looksLikeAnId, dO as mayDrag, dP as moveConsequence, dQ as moveInOrder, dR as offeredAsContext, dS as optionKey, dT as optionLabel, dU as parseFieldDrift, dV as parseTableCopiesInProgress, dW as parseTableDuplicateProgress, dX as parseTableDuplicated, dY as parseTableHome, dZ as parseTableMoved, d_ as previewRetype, d$ as previewRuleChange, e0 as recordChangeTrigger, e1 as recordSourceKey, e2 as recordSourceTable, e3 as recordsUseSentence, e4 as rehomeSentence, e5 as removedChoicesInUse, e6 as ruleThatRefuses, e7 as rulesWithTopStar, e8 as sameDocument, e9 as scopeChip, ea as sheetSyncSpec, eb as tableIdOf, ec as tableJsonSchema, ed as tableKindMapping, ee as tableKindSlug, ef as tableRenderSchema, eg as valueConverts, eh as withRowCounts, ei as withTablePlacement } from '../table-kind-i3lZJa3f.js';
|
|
5
|
+
import { b as Field } from '../field-enufS5ry.js';
|
|
6
|
+
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-enufS5ry.js';
|
|
7
7
|
export { CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, filterWithAutonumber, forgetAllOps, indexedDbStore, isAutonumberField, isDecided, isOwnOp, localeDateOrder, memoryStore, mintClientKey, mintOpId, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, rememberedOpCount, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.js';
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
export { c as
|
|
11
|
-
export {
|
|
12
|
-
|
|
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-D9yNiorf.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-or_f7BkT.js';
|
|
10
|
+
export { c as AggregateBucket, g as AggregateCompare, q as AggregateCompareKind, r as AggregateCompareWindows, s as AggregateDelta, a as AggregateFilter, t as AggregateGroupValue, b as AggregateMeasure, A as AggregateOperation, j as AggregateRow, u as AggregateWindow, f as DashboardBlock, D as DashboardBlockKind, v as DashboardBlockResult, h as DashboardRunResult, e as DashboardSummary, w as DashboardTarget, x as DashboardTargetBase, y as DashboardTargetOp, z as DashboardTargetResult, B as DashboardTotals, m as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, p as RowTemplateRow, C as SavedViewColorBy, E as SavedViewDefinition, F as SavedViewLayout, n as SavedViewRow, o as SavedViewSpecIn, d as StoreFilter, i as StuckRow, k as Subscription, G as SubscriptionBlock, S as SubscriptionCadence, l 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-BynsG1K6.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-eLMgv_dV.js';
|
|
12
|
+
import { c as RecordsDataSource } from '../ports-BeOgjwYl.js';
|
|
13
|
+
export { e as RecordsActor, d as RecordsChangeSink, a as RecordsConfig, b as RecordsErrorSink, f as RecordsFilter, R as RecordsRealtimePort, g as RecordsResolverPort, h as RecordsResponse, i as RecordsTableQuery } from '../ports-BeOgjwYl.js';
|
|
14
|
+
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-Dzd8gtAo.js';
|
|
15
|
+
export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-ZRW5EsTQ.js';
|
|
13
16
|
|
|
14
17
|
declare function doorExists(name: string): boolean;
|
|
15
18
|
/**
|
|
@@ -577,6 +580,14 @@ declare const MAPPED_SQLSTATES: string[];
|
|
|
577
580
|
declare function mapPgError(error: PgError, where: string): RecordsError;
|
|
578
581
|
/** Pull the conflict out of a `stale_write`, when the store sent one. */
|
|
579
582
|
declare function staleWriteDetail(error: RecordsError): StaleWriteDetail | null;
|
|
583
|
+
/**
|
|
584
|
+
* HONEST-REFUSALS 1 — a member of an ARCHIVED organization is refused with the store's own sentence
|
|
585
|
+
* ("This organization is archived, …") and DETAIL `organization_archived:<organization id>`. The sentence
|
|
586
|
+
* and the restore hint ride `message` and `hint` verbatim like every refusal; this reads the organization out
|
|
587
|
+
* so a screen can offer "Restore" (the owner's `iam.organization_restore` door) instead of a dead end.
|
|
588
|
+
* Null for every other refusal, including the non-member's "You are not a member of that organization".
|
|
589
|
+
*/
|
|
590
|
+
declare function archivedOrganizationId(error: RecordsError): string | null;
|
|
580
591
|
|
|
581
592
|
/** The published defaults, which are also what the store falls back to when it cannot read a knob. */
|
|
582
593
|
declare const DEFAULT_VALUE_MAX_BYTES = 100000;
|
|
@@ -737,4 +748,4 @@ declare function seededDataSource(index: Map<string, unknown>): {
|
|
|
737
748
|
missed: () => boolean;
|
|
738
749
|
};
|
|
739
750
|
|
|
740
|
-
export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, MAPPED_SQLSTATES, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, StaleWriteDetail, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, asRecordsDataSource, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, mapPgError, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, staleWriteDetail, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
|
|
751
|
+
export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, MAPPED_SQLSTATES, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, StaleWriteDetail, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, archivedOrganizationId, asRecordsDataSource, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, mapPgError, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, staleWriteDetail, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
|
package/dist/core/index.js
CHANGED
|
@@ -1309,9 +1309,18 @@ function stableFilterKey(filter) {
|
|
|
1309
1309
|
return `{${parts.join(",")}}`;
|
|
1310
1310
|
}
|
|
1311
1311
|
function liftWithheld(rows2) {
|
|
1312
|
+
let shared;
|
|
1313
|
+
for (const row of rows2) {
|
|
1314
|
+
const m = (row.measures ?? {})["_withheld"];
|
|
1315
|
+
if (m !== void 0 && m !== null && typeof m === "object") {
|
|
1316
|
+
shared = m;
|
|
1317
|
+
break;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1312
1320
|
return rows2.map((row) => {
|
|
1313
1321
|
const measures = row.measures ?? {};
|
|
1314
|
-
const
|
|
1322
|
+
const own = measures["_withheld"];
|
|
1323
|
+
const marker = own !== void 0 && own !== null && typeof own === "object" ? own : shared;
|
|
1315
1324
|
const rowCount = row.row_count ?? 0;
|
|
1316
1325
|
if (marker === void 0 || marker === null || typeof marker !== "object") {
|
|
1317
1326
|
return rowCount === row.row_count ? row : { ...row, row_count: rowCount };
|
|
@@ -2154,6 +2163,11 @@ function staleWriteDetail(error) {
|
|
|
2154
2163
|
contested_fields: detail.contested_fields ?? {}
|
|
2155
2164
|
};
|
|
2156
2165
|
}
|
|
2166
|
+
function archivedOrganizationId(error) {
|
|
2167
|
+
if (error.code !== "door" || typeof error.detail !== "string") return null;
|
|
2168
|
+
const m = /^organization_archived:([0-9a-f-]{36})$/i.exec(error.detail.trim());
|
|
2169
|
+
return m ? m[1] : null;
|
|
2170
|
+
}
|
|
2157
2171
|
|
|
2158
2172
|
// src/relation.ts
|
|
2159
2173
|
import { isUuidShape as isUuidShape4 } from "@ai-matrx/kit/uuid";
|
|
@@ -6565,24 +6579,27 @@ function createRecordsClient(given) {
|
|
|
6565
6579
|
if (!pass.ok) return pass;
|
|
6566
6580
|
return carryOnCopy(pass.data, onProgress);
|
|
6567
6581
|
},
|
|
6568
|
-
async recordRead({ record_id, withComputed = false, organization_id }) {
|
|
6582
|
+
async recordRead({ record_id, withComputed = false, withVersion = false, organization_id }) {
|
|
6569
6583
|
if (organization_id && organization_id !== org) {
|
|
6570
|
-
return clientFor(organization_id).recordRead({ record_id, withComputed, organization_id });
|
|
6584
|
+
return clientFor(organization_id).recordRead({ record_id, withComputed, withVersion, organization_id });
|
|
6571
6585
|
}
|
|
6572
6586
|
if (readOrgs(organization_id).length > 1) {
|
|
6573
6587
|
return openInOwnOrg(
|
|
6574
6588
|
record_id,
|
|
6575
6589
|
organization_id,
|
|
6576
|
-
(sub) => sub.recordRead({ record_id, withComputed, organization_id: sub.config.organizationId }),
|
|
6590
|
+
(sub) => sub.recordRead({ record_id, withComputed, withVersion, organization_id: sub.config.organizationId }),
|
|
6577
6591
|
() => true
|
|
6578
6592
|
);
|
|
6579
6593
|
}
|
|
6580
|
-
const door = await
|
|
6581
|
-
DOORS.readRecord,
|
|
6582
|
-
|
|
6583
|
-
"recordRead"
|
|
6584
|
-
|
|
6594
|
+
const [door, header] = await Promise.all([
|
|
6595
|
+
callDoor(DOORS.readRecord, { p_organization_id: org, p_record_id: record_id }, "recordRead"),
|
|
6596
|
+
// A version that cannot be read never takes the record away: it comes back as null.
|
|
6597
|
+
withVersion ? callDoor(DOORS.recordHeaders, { p_organization_id: org, p_ids: [record_id] }, "recordRead.version").catch(
|
|
6598
|
+
() => null
|
|
6599
|
+
) : Promise.resolve(null)
|
|
6600
|
+
]);
|
|
6585
6601
|
if (!door.ok) return err(door.error);
|
|
6602
|
+
const version = header && header.ok ? header.data?.find((h) => h.id === record_id)?.version ?? null : null;
|
|
6586
6603
|
const { document, hidden } = unfold(door.data);
|
|
6587
6604
|
let computed = [];
|
|
6588
6605
|
let computedUnavailable = null;
|
|
@@ -6595,7 +6612,7 @@ function createRecordsClient(given) {
|
|
|
6595
6612
|
if (provenance.ok) computed = provenance.data ?? [];
|
|
6596
6613
|
else computedUnavailable = provenance.error;
|
|
6597
6614
|
}
|
|
6598
|
-
return ok({ record_id, document, hidden, computed, computedUnavailable });
|
|
6615
|
+
return ok({ record_id, document, hidden, computed, computedUnavailable, ...withVersion ? { version } : {} });
|
|
6599
6616
|
},
|
|
6600
6617
|
async listByIds({ table_id, ids }) {
|
|
6601
6618
|
if (ids.length === 0) return ok([]);
|
|
@@ -10483,6 +10500,7 @@ export {
|
|
|
10483
10500
|
announceRecordChanged,
|
|
10484
10501
|
announceTableStructureChanged,
|
|
10485
10502
|
archivedByLine,
|
|
10503
|
+
archivedOrganizationId,
|
|
10486
10504
|
archivedWhen,
|
|
10487
10505
|
asChoiceNudge,
|
|
10488
10506
|
asPermissionLevel,
|