@ai-matrx/records 0.98.7 → 0.98.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{table-kind-CboiMJuE.d.cts → client-9fzhCPD5.d.cts} +2771 -4
  3. package/dist/{table-kind-B4sdlvHf.d.ts → client-DcWZjmg2.d.ts} +2771 -4
  4. package/dist/core/index.cjs +154 -3
  5. package/dist/core/index.cjs.map +1 -1
  6. package/dist/core/index.d.cts +109 -18
  7. package/dist/core/index.d.ts +109 -18
  8. package/dist/core/index.js +154 -3
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/data/index.cjs +52 -0
  11. package/dist/data/index.cjs.map +1 -1
  12. package/dist/data/index.d.cts +11 -12
  13. package/dist/data/index.d.ts +11 -12
  14. package/dist/data/index.js +52 -0
  15. package/dist/data/index.js.map +1 -1
  16. package/dist/{declareTable-BIuPJ3Vj.d.ts → declareTable-B6ic3leL.d.ts} +3 -4
  17. package/dist/{declareTable-d-HxRmF0.d.cts → declareTable-_GwN-ERY.d.cts} +3 -4
  18. package/dist/{doors-Bx3Shs3z.d.cts → doors-Dm5q9H8Y.d.cts} +1 -1
  19. package/dist/{doors-BTifsjNv.d.ts → doors-t-Oc2l9E.d.ts} +1 -1
  20. package/dist/entity/index.d.cts +7 -7
  21. package/dist/entity/index.d.ts +7 -7
  22. package/dist/{field-CJtssH3q.d.ts → field-BIRNApm1.d.ts} +2 -2
  23. package/dist/{field-DoVl2I9K.d.cts → field-BLy8drjM.d.cts} +2 -2
  24. package/dist/forms/index.d.cts +3 -3
  25. package/dist/forms/index.d.ts +3 -3
  26. package/dist/index.cjs +45 -0
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +30 -13
  29. package/dist/index.d.ts +30 -13
  30. package/dist/index.js +45 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/memory/index.d.cts +7 -7
  33. package/dist/memory/index.d.ts +7 -7
  34. package/dist/{objectOrganization-Crk9gJUM.d.ts → objectOrganization-D5Ytjah7.d.ts} +1 -1
  35. package/dist/{objectOrganization-CUa6jjhV.d.cts → objectOrganization-zgpoUAH1.d.cts} +1 -1
  36. package/dist/{port-CRP5g9l9.d.cts → port-B9glCG2h.d.cts} +3 -3
  37. package/dist/{port-CtnELAJQ.d.ts → port-C-p-_lAu.d.ts} +3 -3
  38. package/dist/{portal-DW5NGBT0.d.ts → portal-B9HCNPTc.d.ts} +2 -2
  39. package/dist/{portal-C4N9ByaY.d.cts → portal-C_LgvDeh.d.cts} +2 -2
  40. package/dist/{ports-WwHHNwge.d.ts → ports-BE_5jz-c.d.ts} +2 -2
  41. package/dist/{ports-YIh9jrCZ.d.cts → ports-BIdYUS-C.d.cts} +2 -2
  42. package/dist/questions/index.d.cts +9 -10
  43. package/dist/questions/index.d.ts +9 -10
  44. package/dist/react/index.cjs +97 -0
  45. package/dist/react/index.cjs.map +1 -1
  46. package/dist/react/index.d.cts +86 -1
  47. package/dist/react/index.d.ts +86 -1
  48. package/dist/react/index.js +97 -0
  49. package/dist/react/index.js.map +1 -1
  50. package/dist/realtime/index.d.cts +3 -3
  51. package/dist/realtime/index.d.ts +3 -3
  52. package/dist/{record-CxGK1OEK.d.cts → record-BrJNCmH1.d.cts} +1 -1
  53. package/dist/{record-CxGK1OEK.d.ts → record-BrJNCmH1.d.ts} +1 -1
  54. package/dist/{relation-Dh-lCkkh.d.ts → relation-BxGXLRaG.d.ts} +3 -3
  55. package/dist/{relation-DSGhM3tO.d.cts → relation-R10qQyQU.d.cts} +3 -3
  56. package/dist/{rule-DQpC7WqT.d.cts → rule-BGtYd6Pf.d.cts} +2 -2
  57. package/dist/{rule-xNwJF6Qo.d.ts → rule-BtjrE42J.d.ts} +2 -2
  58. package/dist/scopes/index.d.cts +3 -3
  59. package/dist/scopes/index.d.ts +3 -3
  60. package/dist/search/index.d.cts +1 -1
  61. package/dist/search/index.d.ts +1 -1
  62. package/dist/setup/index.cjs +52 -0
  63. package/dist/setup/index.cjs.map +1 -1
  64. package/dist/setup/index.d.cts +12 -13
  65. package/dist/setup/index.d.ts +12 -13
  66. package/dist/setup/index.js +52 -0
  67. package/dist/setup/index.js.map +1 -1
  68. package/dist/{subscription-BVCn1PVe.d.cts → subscription-BEM4B4dR.d.cts} +3 -3
  69. package/dist/{subscription-DQzPVKBR.d.ts → subscription-Ca15Z7Gu.d.ts} +3 -3
  70. package/dist/templates/index.d.cts +10 -10
  71. package/dist/templates/index.d.ts +10 -10
  72. package/dist/typed-table/index.cjs +52 -0
  73. package/dist/typed-table/index.cjs.map +1 -1
  74. package/dist/typed-table/index.d.cts +10 -11
  75. package/dist/typed-table/index.d.ts +10 -11
  76. package/dist/typed-table/index.js +52 -0
  77. package/dist/typed-table/index.js.map +1 -1
  78. package/dist/{types-3lM5f6b0.d.cts → types-5ql9_q-o.d.cts} +2 -2
  79. package/dist/{types-04kFNi3-.d.ts → types-BALEbMc8.d.ts} +2 -2
  80. package/dist/{types-DKJO83lQ.d.cts → types-BhnjvJ8U.d.cts} +2 -2
  81. package/dist/{types-SUAmeBId.d.ts → types-CURw95qc.d.ts} +2 -2
  82. package/dist/{types-DKeGkHpE.d.cts → types-DRMeL0uW.d.cts} +2 -2
  83. package/dist/{types-DJVccwh0.d.ts → types-_odOqLOe.d.ts} +2 -2
  84. package/dist/use-cases/index.d.cts +5 -5
  85. package/dist/use-cases/index.d.ts +5 -5
  86. package/dist/{validate-BIJtP2KB.d.cts → validate-Cdtk0y18.d.cts} +1 -1
  87. package/dist/{validate--y-pPc-c.d.ts → validate-ChibJPPI.d.ts} +1 -1
  88. package/dist/views/index.d.cts +9 -10
  89. package/dist/views/index.d.ts +9 -10
  90. package/package.json +2 -2
  91. package/dist/client-C1B-MNzb.d.ts +0 -2704
  92. package/dist/client-D2jAgJNn.d.cts +0 -2704
package/dist/index.d.cts CHANGED
@@ -1,15 +1,16 @@
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-CxGK1OEK.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, aJ as unwrapRecords } from './record-CxGK1OEK.cjs';
3
- import { ab as CaptureFileRef, ac as CaptureOutcome } from './table-kind-CboiMJuE.cjs';
4
- export { bv as ARCHIVE_LANES, bw as ARCHIVE_LANE_LABEL, bx as ARCHIVE_LANE_MEANS, by as ActionRefusal, bc as ActionRunResult, bo as AdminTable, aB as AnonTokenBinding, A as ArchiveLane, a4 as ArchivedChecklistTemplate, bz as ArchivedDoorRow, a3 as ArchivedForm, e as ArchivedRow, bA as AutomationAction, be as AutomationDeclared, bB as AutomationFilter, bg as AutomationFlipped, bC as AutomationItem, bD as AutomationLastRun, bf as AutomationList, bE as AutomationRun, bF as AutomationRunStatus, bh as AutomationRuns, bd as AutomationSpec, bG as AutomationStep, bH as AutomationTrigger, bI as AutomationValue, bJ as AutomationValues, bK as AutomationWeekday, bL as BUILT_KIND_WORD, bM as CHOICE_NUDGES, bN as CaptureField, bO as CaptureQuestion, aa as CaptureSheetFace, a9 as CaptureSheetSummary, aD as ChecklistDeclared, bP as ChecklistRequirement, bQ as ChecklistRequirementKind, bR as ChecklistRoleSpec, aG as ChecklistRunStarted, aH as ChecklistRunStep, aI as ChecklistRunSummary, aC as ChecklistSpec, aJ as ChecklistStepCompleted, bS as ChecklistStepSpec, aF as ChecklistTemplateShape, aE as ChecklistTemplateSummary, bT as ChecklistTrigger, bU as ChecklistTriggerKind, k as ChoiceCellBack, bV as ChoiceLike, C as ChoiceNudge, bW as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, az as CommentThreadRead, aA as CommentWritten, au as ConversationScope, av as ConversationScopeContext, bX as CustomFieldTableType, bY as DEFAULT_ARCHIVE_LANE, bZ as DRILL_CHART_TOKENS, b_ as DRILL_DESCRIPTION_MAX, b$ as DRILL_DOORS, c0 as DRILL_SCHEMA, bn as DataHomeTable, c1 as DecorationColor, b6 as DecorationPath, c2 as DecorationRule, c3 as DecorationRuleOp, c4 as DecorationTarget, aq as DocRenderRow, c5 as DocSignatureCheck, ar as DocSignatureRow, ap as DocTemplateRow, an as DocToken, ao as DocUnresolvedToken, c6 as DrillAdHocOp, al as DrillAnswer, c7 as DrillAnswerRow, c8 as DrillChartToken, c9 as DrillDeclaration, aj as DrillDefinition, ca as DrillDimension, cb as DrillFinding, cc as DrillGrain, cd as DrillHaving, ce as DrillLane, cf as DrillLevel, cg as DrillMeasure, ch as DrillMeasureOp, ci as DrillMeasureWhereValue, cj as DrillPath, ak as DrillQuestion, ck as DrillRecords, am as DrillRowsPage, ai as DrillSource, cl as DrillView, cm as EnrichAlternate, ag as EnrichCell, ae as EnrichDeclared, af as EnrichDueRow, ah as EnrichRun, cn as EnrichSource, co as Enrichment, ad as EnrichmentSummary, cp as EntityBackLinkItem, v as EntityBackLinks, t as EntityFieldRights, cq as EntityFieldValue, s as EntityFieldsAcross, cr as EntityRecordMatch, u as EntityRecordRead, x as EntityRecordsFound, w as EntityRowWritten, E as EntityTableFacts, b2 as ExternalPrincipalCard, F as FieldDrift, cs as FieldDriftAspect, aw as FieldHistoryEntry, n as FieldRetyped, a2 as FormArchiveAnswer, b9 as FormulaParse, ba as FormulaPreview, b8 as GridLayout, ct as GridLayoutMode, cu as GridRowHeight, cv as HistoryActor, cw as HistoryActorKind, cx as HistoryChange, cy as Home, Y as ImportBatchResult, cz as ImportColumnPlan, X as ImportColumnsDeclared, Z as ImportFinished, W as ImportOpened, cA as ImportOutcome, U as ImportPlan, V as ImportPolicy, cB 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, bt as OutsideShareAnswer, cC as PIPELINE_RULE_KINDS, P as Pipeline, y as PipelineColumn, I as PipelineDeclared, O as PipelineGate, Q as PipelineGatePreview, cD as PipelineMissingField, G as PipelineMoveMany, D as PipelineMoveManyItem, cE as PipelineMoveManyResult, B as PipelineMoveResult, cF as PipelineMoveVerdict, cG as PipelineRule, cH as PipelineRuleKind, H as PipelineSpec, cI as PipelineStage, z as PipelineVerdict, b3 as PublishBinding, cJ as PublishBindingKind, cK as ROW_WEB_NOT_READY, cL as RecordChangeAction, cM as RecordComment, bi as RecordEvent, bs as RecordHeader, as as RecordHistoryEntry, a8 as RecordRowControls, cN as RecordScopeComment, at as RecordScopeContext, cO as RecordScopeField, cP as RecordScopeHistoryEntry, cQ as RecordScopeRelation, cR as RecordScopeWithheld, R as RecordsMerged, cS as RegisteredTable, b4 as ResolvedPublishBinding, b5 as ResolvedPublishBindingKind, ax as RestorePreview, ay as RestoreResult, cT as RetypeBehaviour, cU as RetypePreview, bb as RowAction, cV as RowActionStep, a7 as RowDefaultsApplied, cW as SHOWN_TO_LABEL, cX as SHOWN_TO_VALUES, cY as SHOWN_TO_WHO_MAY_CHANGE, cZ as STAGE_RULE_ENFORCEMENT, c_ as STAGE_RULE_ON_FAIL, c$ as ShownTo, K as StagePending, L as StagePendingOnBoard, J as StageRuleEnforcement, S as StageRuleOnFail, d0 as StageRuleWarning, d1 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, d2 as TableHomeDestination, o as TableKindFacts, d3 as TableLevel, d4 as TableLevelApproval, p as TableLevelFacts, r as TableLevelSet, bm as TableListEntry, h as TableMoved, d5 as TablePlacement, d6 as TablePlacementFact, q as TableReaderRule, d7 as TableRenderSchema, a as TableRestoreProgress, br as TableRowCount, a5 as TableRowDefaults, a6 as TableRowDefaultsPatch, d8 as TableSchemaMode, bq as TableSyncResult, d9 as TableSyncSource, bp as TableSyncSpec, bk as TableWebhook, bj as TableWebhookDeclared, da as TypedChoiceDecision, db as ViewLayout, bu as ViewOrderSet, a$ as WorkApprovalDecision, a_ as WorkApprovalFiled, dc as WorkApprovalState, aY as WorkApprover, aW as WorkAssignment, aO as WorkAssignmentField, aZ as WorkChange, b1 as WorkDecideMany, b0 as WorkDecideManyItem, dd as WorkDecideManyResult, de as WorkDecideVerdict, df as WorkDueState, aL as WorkGraph, aR as WorkInboxItem, dg as WorkInboxKind, aQ as WorkInboxView, aM as WorkInstantiation, aU as WorkListFlavour, aV as WorkListItem, dh as WorkOrigin, aX as WorkRecordState, aP as WorkSlotHold, aK as WorkState, di as WorkTemplateNode, dj as WorkTemplateRelation, aN as WorkTurn, dk as actionRefusals, dl as archivedByLine, dm as archivedWhen, dn as asChoiceNudge, dp as choiceSlug, dq as choiceValuesOf, dr as choicesOf, ds as decideTypedChoice, dt as declareDrillDefinition, du as drillAnswerOf, dv as drillFindingKnob, dw as emptyArchiveLine, dx as exportPageXlsx, dy as fieldKindOf, dz as holdsARetiredChoice, dA as isArchiveLane, dB as isFoundation, dC as isShownTo, dD as isTableKind, dE as isTheChosen, dF as keptGroups, dG as keptOutOfSight, dH as keptTableHref, dI as levelHasShownTo, dJ as looksLikeAnId, dK as mayDrag, dL as moveConsequence, dM as moveInOrder, dN as offeredAsContext, dO as optionKey, dP as optionLabel, dQ as parseFieldDrift, dR as parseTableCopiesInProgress, dS as parseTableDuplicateProgress, dT as parseTableDuplicated, dU as parseTableHome, dV as parseTableMoved, dW as previewRetype, dX as previewRuleChange, dY as recordChangeTrigger, dZ as recordSourceKey, d_ as recordSourceTable, d$ as recordsUseSentence, e0 as rehomeSentence, e1 as removedChoicesInUse, e2 as ruleThatRefuses, e3 as rulesWithTopStar, e4 as sameDocument, e5 as scopeChip, e6 as sheetSyncSpec, e7 as tableIdOf, e8 as tableJsonSchema, e9 as tableKindMapping, ea as tableKindSlug, eb as tableRenderSchema, ec as valueConverts, ed as withRowCounts, ee as withTablePlacement } from './table-kind-CboiMJuE.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-YIh9jrCZ.cjs';
6
- import { p as CoercibleField } from './field-DoVl2I9K.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, F as Field, d as FieldDuplicated, r as FieldKind, s as FieldOptionEdit, c as FieldPatch, e as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, 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-DoVl2I9K.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-DQpC7WqT.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-C4N9ByaY.cjs';
10
- export { A as AggregateBucket, g as AggregateCompare, q as AggregateCompareKind, r as AggregateCompareWindows, s as AggregateDelta, b as AggregateFilter, t as AggregateGroupValue, c 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-BVCn1PVe.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-DSGhM3tO.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-CUa6jjhV.cjs';
1
+ import { U as Uuid, $ as MergeFieldSource, _ as MergeFieldSemanticType, Z as MergeFieldModifier, a2 as OverridePolicy, B as Delivery, h as Timestamp, M as Freshness, n as RecordDocument, R as RecordsResult } from './record-BrJNCmH1.cjs';
2
+ export { t as ABSENCE_REASONS, u as ACTOR_VOCABULARY, v as AbsenceReason, A as Actor, w as COMPUTE_ON, x as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, y as DECLARABLE_FIELD_KINDS, z as DELIVERIES, D as DeclarableFieldKind, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, H as HiddenFieldNotice, N as KERNEL_TABLES, Q as KernelTableName, V as KeysetRow, W as MERGE_FIELD_MODIFIERS, X as MERGE_FIELD_SEMANTIC_TYPES, Y as MERGE_FIELD_SOURCES, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, P as PgError, r as PredictedRefusal, a6 as ProvenancePointer, a7 as RELATION_BINDINGS, a8 as RELATION_CARDINALITIES, a9 as RELATION_FLAVORS, aa as RETIRED_ACTOR_WORDS, ab as RULE_NODE_KINDS, ac as RULE_USES, l as ReadRow, s as ReadValue, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, a as RecordsError, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, ak as RetiredActorWord, i as RuleNodeKind, j as RuleUse, al as STORAGE_MODES, am as STORE_DOORS, an as STORE_KNOBS, ao as STORE_REFUSAL_CODES, q as StaleWriteDetail, S as StorageMode, ap as StoreDoorName, aq as StoreRefusalCode, ar as StoredRecord, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, b as TableDisplay, av as TableOrigin, T as TableType, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from './record-BrJNCmH1.cjs';
3
+ import { J as CaptureFileRef, K as CaptureOutcome, R as RecordsClient } from './client-9fzhCPD5.cjs';
4
+ export { A as ARCHIVE_LANES, b as ARCHIVE_LANE_LABEL, c as ARCHIVE_LANE_MEANS, e as ActionRefusal, f as ActionRunResult, g as AdminTable, h as AnonTokenBinding, i as ArchiveLane, j as ArchivedChecklistTemplate, k as ArchivedDoorRow, l as ArchivedForm, m as ArchivedRow, o as AutomationAction, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRun, w as AutomationRunStatus, x as AutomationRuns, y as AutomationSpec, z as AutomationStep, B as AutomationTrigger, C as AutomationValue, D as AutomationValues, E as AutomationWeekday, G as BUILT_KIND_WORD, H as CHOICE_NUDGES, I as CaptureField, L as CaptureQuestion, M as CaptureSheetFace, N as CaptureSheetSummary, O as ChecklistDeclared, P as ChecklistRequirement, Q as ChecklistRequirementKind, S as ChecklistRoleSpec, U as ChecklistRunStarted, V as ChecklistRunStep, W as ChecklistRunSummary, X as ChecklistSpec, Y as ChecklistStepCompleted, Z as ChecklistStepSpec, _ as ChecklistTemplateShape, $ as ChecklistTemplateSummary, a0 as ChecklistTrigger, a1 as ChecklistTriggerKind, a2 as ChoiceCellBack, a3 as ChoiceLike, a4 as ChoiceNudge, a5 as ChoiceOption, a6 as ChoiceRehome, a7 as ChoiceUsage, a8 as ChoicesRehomed, a9 as CommentThreadRead, aa as CommentWritten, ab as ConversationScope, ac as ConversationScopeContext, ad as CustomFieldTableType, ae as DEFAULT_ARCHIVE_LANE, ag as DRILL_CHART_TOKENS, ah as DRILL_DESCRIPTION_MAX, ai as DRILL_DOORS, aj as DRILL_SCHEMA, ak as DataHomeTable, al as DecorationColor, am as DecorationPath, an as DecorationRule, ao as DecorationRuleOp, ap as DecorationTarget, aq as DocRenderRow, ar as DocSignatureCheck, as as DocSignatureRow, at as DocTemplateRow, au as DocToken, av as DocUnresolvedToken, aw as DrillAdHocOp, ax as DrillAnswer, ay as DrillAnswerRow, az as DrillChartToken, aA as DrillDeclaration, aB as DrillDefinition, aC as DrillDimension, aD as DrillFinding, aE as DrillGrain, aF as DrillHaving, aG as DrillLane, aH as DrillLevel, aI as DrillMeasure, aJ as DrillMeasureOp, aK as DrillMeasureWhereValue, aL as DrillPath, aM as DrillQuestion, aN as DrillRecords, aO as DrillRowsPage, aP as DrillSource, aQ as DrillView, aR as EnrichAlternate, aS as EnrichCell, aT as EnrichDeclared, aU as EnrichDueRow, aV as EnrichRun, aW as EnrichSource, aX as Enrichment, aY as EnrichmentSummary, aZ as EntityBackLinkItem, a_ as EntityBackLinks, a$ as EntityFieldRights, b0 as EntityFieldValue, b1 as EntityFieldsAcross, b2 as EntityRecordMatch, b3 as EntityRecordRead, b4 as EntityRecordsFound, b5 as EntityRowWritten, b6 as EntityTableFacts, b7 as ExternalPrincipalCard, F as FieldDrift, b8 as FieldDriftAspect, b9 as FieldHistoryEntry, ba as FieldRetyped, bb as FormArchiveAnswer, bc as FormulaParse, bd as FormulaPreview, be as GridLayout, bf as GridLayoutMode, bg as GridRowHeight, bh as HistoryActor, bi as HistoryActorKind, bj as HistoryChange, bk as Home, bl as ImportBatchResult, bm as ImportColumnPlan, bn as ImportColumnsDeclared, bo as ImportFinished, bp as ImportOpened, bq as ImportOutcome, br as ImportPlan, bs as ImportPolicy, bt as ImportProposal, bu as ImportReport, bv as ImportRun, bw as InboundAddress, bx as InboundDeclared, by as InboxCounts, bz as InboxStateChange, bA as IoExportPage, bB as MigrationEntry, bC as MigrationUndone, bD as NewEntityFieldDeclaration, bE as OutsideShareAnswer, bF as PIPELINE_RULE_KINDS, bG as ParentExtracted, bH as Pipeline, bI as PipelineColumn, bJ as PipelineDeclared, bK as PipelineGate, bL as PipelineGatePreview, bM as PipelineMissingField, bN as PipelineMoveMany, bO as PipelineMoveManyItem, bP as PipelineMoveManyResult, bQ as PipelineMoveResult, bR as PipelineMoveVerdict, bS as PipelineRule, bT as PipelineRuleKind, bU as PipelineSpec, bV as PipelineStage, bW as PipelineVerdict, bY as PublishBinding, bZ as PublishBindingKind, b$ as ROW_WEB_NOT_READY, c0 as RecordChangeAction, c1 as RecordComment, c2 as RecordEvent, c3 as RecordHeader, c4 as RecordHistoryEntry, c6 as RecordRowControls, c7 as RecordScopeComment, c8 as RecordScopeContext, c9 as RecordScopeField, ca as RecordScopeHistoryEntry, cb as RecordScopeRelation, cc as RecordScopeWithheld, cd as RecordSplit, ce as RecordsMerged, cf as RegisteredTable, cg as ResolvedPublishBinding, ch as ResolvedPublishBindingKind, ci as RestorePreview, cj as RestoreResult, ck as RetypeBehaviour, cl as RetypePreview, cm as RowAction, cn as RowActionStep, co as RowDefaultsApplied, cp as SHOWN_TO_LABEL, cq as SHOWN_TO_VALUES, cr as SHOWN_TO_WHO_MAY_CHANGE, cs as STAGE_RULE_ENFORCEMENT, ct as STAGE_RULE_ON_FAIL, cu as ShownTo, cv as StagePending, cw as StagePendingOnBoard, cx as StageRuleEnforcement, cy as StageRuleOnFail, cz as StageRuleWarning, cA as TABLE_KIND_PREFIX, cB as Table, T as TableArchiveProgress, cC as TableCapacity, cD as TableCopyInProgress, cE as TableDecorations, cF as TableDuplicateProgress, cG as TableDuplicated, cI as TableHome, cJ as TableHomeDestination, a as TableKindFacts, cK as TableLevel, cL as TableLevelApproval, cM as TableLevelFacts, cN as TableLevelSet, cO as TableListEntry, cQ as TableMoved, cR as TablePlacement, cS as TablePlacementFact, cT as TableReaderRule, cU as TableRenderSchema, cV as TableRestoreProgress, cW as TableRowCount, cX as TableRowDefaults, cY as TableRowDefaultsPatch, cZ as TableSchemaMode, c_ as TableSyncResult, c$ as TableSyncSource, d0 as TableSyncSpec, d1 as TableWebhook, d2 as TableWebhookDeclared, d3 as TypedChoiceDecision, d4 as ViewLayout, d5 as ViewOrderSet, d6 as WorkApprovalDecision, d7 as WorkApprovalFiled, d8 as WorkApprovalState, d9 as WorkApprover, da as WorkAssignment, db as WorkAssignmentField, dc as WorkChange, dd as WorkDecideMany, de as WorkDecideManyItem, df as WorkDecideManyResult, dg as WorkDecideVerdict, dh as WorkDueState, di as WorkGraph, dj as WorkInboxItem, dk as WorkInboxKind, dl as WorkInboxView, dm as WorkInstantiation, dn as WorkListFlavour, dp as WorkListItem, dq as WorkOrigin, dr as WorkRecordState, ds as WorkSlotHold, dt as WorkState, du as WorkTemplateNode, dv as WorkTemplateRelation, dw as WorkTurn, dx as actionRefusals, dy as archivedByLine, dz as archivedWhen, dA as asChoiceNudge, dC as choiceSlug, dD as choiceValuesOf, dE as choicesOf, dG as decideTypedChoice, dH as declareDrillDefinition, dI as drillAnswerOf, dJ as drillFindingKnob, dK as emptyArchiveLine, dL as exportPageXlsx, dM as fieldKindOf, dN as holdsARetiredChoice, dQ as isArchiveLane, dR as isFoundation, dS as isShownTo, dT as isTableKind, dU as isTheChosen, dV as keptGroups, dW as keptOutOfSight, dX as keptTableHref, dY as levelHasShownTo, dZ as looksLikeAnId, d_ as mayDrag, d$ as moveConsequence, e0 as moveInOrder, e1 as offeredAsContext, e2 as optionKey, e3 as optionLabel, e4 as parseFieldDrift, e5 as parseTableCopiesInProgress, e6 as parseTableDuplicateProgress, e7 as parseTableDuplicated, e8 as parseTableHome, e9 as parseTableMoved, eb as previewRetype, ec as previewRuleChange, ed as recordChangeTrigger, ee as recordSourceKey, ef as recordSourceTable, eg as recordsUseSentence, eh as rehomeSentence, ei as removedChoicesInUse, ej as ruleThatRefuses, ek as rulesWithTopStar, el as sameDocument, em as scopeChip, en as sheetSyncSpec, eo as tableIdOf, ep as tableJsonSchema, eq as tableKindMapping, er as tableKindSlug, es as tableRenderSchema, et as valueConverts, eu as withRowCounts, ew as withTablePlacement } from './client-9fzhCPD5.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-BIdYUS-C.cjs';
6
+ import { m as CoercibleField } from './field-BLy8drjM.cjs';
7
+ export { A as ADDRESS_PARTS, c as AGENT_WRITER_WORDS, d as AddressPart, e as AddressValue, B as BARCODE_SYMBOLOGIES, f as BUTTON_DOES, g as ButtonDoes, h as ButtonPressed, i as ButtonSettings, C as ChoiceOptions, j as CoerceOptions, k as Coerced, l as CoercedAnswers, n as FIELD_KINDS, F as Field, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from './field-BLy8drjM.cjs';
8
+ export { B as BookingAvailability, a as BookingDeclared, b as BookingSummary, c as BookingWindow, d as FormResults, e as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from './rule-BGtYd6Pf.cjs';
9
+ export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, a as PORTAL_ACCENTS, b as PORTAL_ARCHIVE_FILTERS, P as PortalAccent, c as PortalArchiveAnswer, d as PortalArchiveFilter, e as PortalCard, f as PortalConfig, g as PortalConfigInput, h as PortalFooterLink, i as PortalFormAnswer, j as PortalFormInput, k as PortalFormRef, l as PortalFormSpec, m as PortalInvitation, n as PortalPreviewRow, o as PortalPrincipal, p as PortalRevocation, q as PortalStage, r as PortalStyle, s as PortalStyleInput, t as PortalSummary, u as PortalTableExposure, v as PortalTableRef, w as PublicPicture, x as emptyPortalArchiveLine, y as isPortalAccent, z as isPortalArchiveFilter, A as portalArchiveConsequence, B as portalConfirmLine, C as portalPath, E as portalTitleTypedBack } from './portal-C_LgvDeh.cjs';
10
+ export { A as AggregateBucket, e as AggregateCompare, f as AggregateCompareKind, g as AggregateCompareWindows, h as AggregateDelta, b as AggregateFilter, i as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, k as AggregateWindow, l as DashboardBlock, D as DashboardBlockKind, m as DashboardBlockResult, n as DashboardRunResult, o as DashboardSummary, p as DashboardTarget, q as DashboardTargetBase, r as DashboardTargetOp, s as DashboardTargetResult, t as DashboardTotals, u as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, v as RowTemplateRow, w as SavedViewColorBy, x as SavedViewDefinition, y as SavedViewLayout, d as SavedViewRow, z as SavedViewSpecIn, B as StoreFilter, C as StuckRow, E as Subscription, F as SubscriptionBlock, S as SubscriptionCadence, G as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from './subscription-BEM4B4dR.cjs';
11
+ export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as REVERSE_LINKS_PAGE_MAX, c as REVERSE_LINKS_RECORDS_PER_CALL, d as Relation, e as RelationCarries, f as RelationCoordinate, g as RelationIcons, h as RelationProperties, i as RelationTarget, j as RelationWordsManyArgs, k as ReverseColumn, l as ReverseLink, m as ReverseLinks, n as ReverseLinksFieldsArgs, o as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from './relation-R10qQyQU.cjs';
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-zgpoUAH1.cjs';
13
+ import './doors-Dm5q9H8Y.cjs';
13
14
 
14
15
  type WithFormat = CoercibleField & {
15
16
  display_format?: unknown;
@@ -404,4 +405,20 @@ type MergeFieldResolution = {
404
405
  reason: string;
405
406
  };
406
407
 
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 };
408
+ interface ChooseAlternateArgs {
409
+ record_id: Uuid;
410
+ field_key: string;
411
+ /** Position in the field's `alternates` list as the record holds it. */
412
+ alternate_index: number;
413
+ }
414
+ /** The patch that makes alternate `alternate_index` of `field_key` the value. Pure; exported for tests. */
415
+ declare function alternatePatch(document: RecordDocument, field_key: string, alternate_index: number): {
416
+ ok: true;
417
+ patch: Record<string, unknown>;
418
+ } | {
419
+ ok: false;
420
+ message: string;
421
+ };
422
+ declare function chooseAlternate(client: Pick<RecordsClient, "recordRead" | "recordUpdate">, { record_id, field_key, alternate_index }: ChooseAlternateArgs): Promise<RecordsResult<number>>;
423
+
424
+ export { CaptureFileRef, CaptureOutcome, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSyncReport, type ChooseAlternateArgs, 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, RecordDocument, RecordsResult, type ResolutionTriple, Timestamp, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, Uuid, alternatePatch, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, chooseAlternate, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,16 @@
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-CxGK1OEK.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, aJ as unwrapRecords } from './record-CxGK1OEK.js';
3
- import { ab as CaptureFileRef, ac as CaptureOutcome } from './table-kind-B4sdlvHf.js';
4
- export { bv as ARCHIVE_LANES, bw as ARCHIVE_LANE_LABEL, bx as ARCHIVE_LANE_MEANS, by as ActionRefusal, bc as ActionRunResult, bo as AdminTable, aB as AnonTokenBinding, A as ArchiveLane, a4 as ArchivedChecklistTemplate, bz as ArchivedDoorRow, a3 as ArchivedForm, e as ArchivedRow, bA as AutomationAction, be as AutomationDeclared, bB as AutomationFilter, bg as AutomationFlipped, bC as AutomationItem, bD as AutomationLastRun, bf as AutomationList, bE as AutomationRun, bF as AutomationRunStatus, bh as AutomationRuns, bd as AutomationSpec, bG as AutomationStep, bH as AutomationTrigger, bI as AutomationValue, bJ as AutomationValues, bK as AutomationWeekday, bL as BUILT_KIND_WORD, bM as CHOICE_NUDGES, bN as CaptureField, bO as CaptureQuestion, aa as CaptureSheetFace, a9 as CaptureSheetSummary, aD as ChecklistDeclared, bP as ChecklistRequirement, bQ as ChecklistRequirementKind, bR as ChecklistRoleSpec, aG as ChecklistRunStarted, aH as ChecklistRunStep, aI as ChecklistRunSummary, aC as ChecklistSpec, aJ as ChecklistStepCompleted, bS as ChecklistStepSpec, aF as ChecklistTemplateShape, aE as ChecklistTemplateSummary, bT as ChecklistTrigger, bU as ChecklistTriggerKind, k as ChoiceCellBack, bV as ChoiceLike, C as ChoiceNudge, bW as ChoiceOption, j as ChoiceRehome, i as ChoiceUsage, l as ChoicesRehomed, az as CommentThreadRead, aA as CommentWritten, au as ConversationScope, av as ConversationScopeContext, bX as CustomFieldTableType, bY as DEFAULT_ARCHIVE_LANE, bZ as DRILL_CHART_TOKENS, b_ as DRILL_DESCRIPTION_MAX, b$ as DRILL_DOORS, c0 as DRILL_SCHEMA, bn as DataHomeTable, c1 as DecorationColor, b6 as DecorationPath, c2 as DecorationRule, c3 as DecorationRuleOp, c4 as DecorationTarget, aq as DocRenderRow, c5 as DocSignatureCheck, ar as DocSignatureRow, ap as DocTemplateRow, an as DocToken, ao as DocUnresolvedToken, c6 as DrillAdHocOp, al as DrillAnswer, c7 as DrillAnswerRow, c8 as DrillChartToken, c9 as DrillDeclaration, aj as DrillDefinition, ca as DrillDimension, cb as DrillFinding, cc as DrillGrain, cd as DrillHaving, ce as DrillLane, cf as DrillLevel, cg as DrillMeasure, ch as DrillMeasureOp, ci as DrillMeasureWhereValue, cj as DrillPath, ak as DrillQuestion, ck as DrillRecords, am as DrillRowsPage, ai as DrillSource, cl as DrillView, cm as EnrichAlternate, ag as EnrichCell, ae as EnrichDeclared, af as EnrichDueRow, ah as EnrichRun, cn as EnrichSource, co as Enrichment, ad as EnrichmentSummary, cp as EntityBackLinkItem, v as EntityBackLinks, t as EntityFieldRights, cq as EntityFieldValue, s as EntityFieldsAcross, cr as EntityRecordMatch, u as EntityRecordRead, x as EntityRecordsFound, w as EntityRowWritten, E as EntityTableFacts, b2 as ExternalPrincipalCard, F as FieldDrift, cs as FieldDriftAspect, aw as FieldHistoryEntry, n as FieldRetyped, a2 as FormArchiveAnswer, b9 as FormulaParse, ba as FormulaPreview, b8 as GridLayout, ct as GridLayoutMode, cu as GridRowHeight, cv as HistoryActor, cw as HistoryActorKind, cx as HistoryChange, cy as Home, Y as ImportBatchResult, cz as ImportColumnPlan, X as ImportColumnsDeclared, Z as ImportFinished, W as ImportOpened, cA as ImportOutcome, U as ImportPlan, V as ImportPolicy, cB 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, bt as OutsideShareAnswer, cC as PIPELINE_RULE_KINDS, P as Pipeline, y as PipelineColumn, I as PipelineDeclared, O as PipelineGate, Q as PipelineGatePreview, cD as PipelineMissingField, G as PipelineMoveMany, D as PipelineMoveManyItem, cE as PipelineMoveManyResult, B as PipelineMoveResult, cF as PipelineMoveVerdict, cG as PipelineRule, cH as PipelineRuleKind, H as PipelineSpec, cI as PipelineStage, z as PipelineVerdict, b3 as PublishBinding, cJ as PublishBindingKind, cK as ROW_WEB_NOT_READY, cL as RecordChangeAction, cM as RecordComment, bi as RecordEvent, bs as RecordHeader, as as RecordHistoryEntry, a8 as RecordRowControls, cN as RecordScopeComment, at as RecordScopeContext, cO as RecordScopeField, cP as RecordScopeHistoryEntry, cQ as RecordScopeRelation, cR as RecordScopeWithheld, R as RecordsMerged, cS as RegisteredTable, b4 as ResolvedPublishBinding, b5 as ResolvedPublishBindingKind, ax as RestorePreview, ay as RestoreResult, cT as RetypeBehaviour, cU as RetypePreview, bb as RowAction, cV as RowActionStep, a7 as RowDefaultsApplied, cW as SHOWN_TO_LABEL, cX as SHOWN_TO_VALUES, cY as SHOWN_TO_WHO_MAY_CHANGE, cZ as STAGE_RULE_ENFORCEMENT, c_ as STAGE_RULE_ON_FAIL, c$ as ShownTo, K as StagePending, L as StagePendingOnBoard, J as StageRuleEnforcement, S as StageRuleOnFail, d0 as StageRuleWarning, d1 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, d2 as TableHomeDestination, o as TableKindFacts, d3 as TableLevel, d4 as TableLevelApproval, p as TableLevelFacts, r as TableLevelSet, bm as TableListEntry, h as TableMoved, d5 as TablePlacement, d6 as TablePlacementFact, q as TableReaderRule, d7 as TableRenderSchema, a as TableRestoreProgress, br as TableRowCount, a5 as TableRowDefaults, a6 as TableRowDefaultsPatch, d8 as TableSchemaMode, bq as TableSyncResult, d9 as TableSyncSource, bp as TableSyncSpec, bk as TableWebhook, bj as TableWebhookDeclared, da as TypedChoiceDecision, db as ViewLayout, bu as ViewOrderSet, a$ as WorkApprovalDecision, a_ as WorkApprovalFiled, dc as WorkApprovalState, aY as WorkApprover, aW as WorkAssignment, aO as WorkAssignmentField, aZ as WorkChange, b1 as WorkDecideMany, b0 as WorkDecideManyItem, dd as WorkDecideManyResult, de as WorkDecideVerdict, df as WorkDueState, aL as WorkGraph, aR as WorkInboxItem, dg as WorkInboxKind, aQ as WorkInboxView, aM as WorkInstantiation, aU as WorkListFlavour, aV as WorkListItem, dh as WorkOrigin, aX as WorkRecordState, aP as WorkSlotHold, aK as WorkState, di as WorkTemplateNode, dj as WorkTemplateRelation, aN as WorkTurn, dk as actionRefusals, dl as archivedByLine, dm as archivedWhen, dn as asChoiceNudge, dp as choiceSlug, dq as choiceValuesOf, dr as choicesOf, ds as decideTypedChoice, dt as declareDrillDefinition, du as drillAnswerOf, dv as drillFindingKnob, dw as emptyArchiveLine, dx as exportPageXlsx, dy as fieldKindOf, dz as holdsARetiredChoice, dA as isArchiveLane, dB as isFoundation, dC as isShownTo, dD as isTableKind, dE as isTheChosen, dF as keptGroups, dG as keptOutOfSight, dH as keptTableHref, dI as levelHasShownTo, dJ as looksLikeAnId, dK as mayDrag, dL as moveConsequence, dM as moveInOrder, dN as offeredAsContext, dO as optionKey, dP as optionLabel, dQ as parseFieldDrift, dR as parseTableCopiesInProgress, dS as parseTableDuplicateProgress, dT as parseTableDuplicated, dU as parseTableHome, dV as parseTableMoved, dW as previewRetype, dX as previewRuleChange, dY as recordChangeTrigger, dZ as recordSourceKey, d_ as recordSourceTable, d$ as recordsUseSentence, e0 as rehomeSentence, e1 as removedChoicesInUse, e2 as ruleThatRefuses, e3 as rulesWithTopStar, e4 as sameDocument, e5 as scopeChip, e6 as sheetSyncSpec, e7 as tableIdOf, e8 as tableJsonSchema, e9 as tableKindMapping, ea as tableKindSlug, eb as tableRenderSchema, ec as valueConverts, ed as withRowCounts, ee as withTablePlacement } from './table-kind-B4sdlvHf.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-WwHHNwge.js';
6
- import { p as CoercibleField } from './field-CJtssH3q.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, F as Field, d as FieldDuplicated, r as FieldKind, s as FieldOptionEdit, c as FieldPatch, e as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, 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-CJtssH3q.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-xNwJF6Qo.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-DW5NGBT0.js';
10
- export { A as AggregateBucket, g as AggregateCompare, q as AggregateCompareKind, r as AggregateCompareWindows, s as AggregateDelta, b as AggregateFilter, t as AggregateGroupValue, c 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-DQzPVKBR.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-Dh-lCkkh.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-Crk9gJUM.js';
1
+ import { U as Uuid, $ as MergeFieldSource, _ as MergeFieldSemanticType, Z as MergeFieldModifier, a2 as OverridePolicy, B as Delivery, h as Timestamp, M as Freshness, n as RecordDocument, R as RecordsResult } from './record-BrJNCmH1.js';
2
+ export { t as ABSENCE_REASONS, u as ACTOR_VOCABULARY, v as AbsenceReason, A as Actor, w as COMPUTE_ON, x as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, y as DECLARABLE_FIELD_KINDS, z as DELIVERIES, D as DeclarableFieldKind, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, H as HiddenFieldNotice, N as KERNEL_TABLES, Q as KernelTableName, V as KeysetRow, W as MERGE_FIELD_MODIFIERS, X as MERGE_FIELD_SEMANTIC_TYPES, Y as MERGE_FIELD_SOURCES, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, P as PgError, r as PredictedRefusal, a6 as ProvenancePointer, a7 as RELATION_BINDINGS, a8 as RELATION_CARDINALITIES, a9 as RELATION_FLAVORS, aa as RETIRED_ACTOR_WORDS, ab as RULE_NODE_KINDS, ac as RULE_USES, l as ReadRow, s as ReadValue, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, a as RecordsError, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, ak as RetiredActorWord, i as RuleNodeKind, j as RuleUse, al as STORAGE_MODES, am as STORE_DOORS, an as STORE_KNOBS, ao as STORE_REFUSAL_CODES, q as StaleWriteDetail, S as StorageMode, ap as StoreDoorName, aq as StoreRefusalCode, ar as StoredRecord, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, b as TableDisplay, av as TableOrigin, T as TableType, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from './record-BrJNCmH1.js';
3
+ import { J as CaptureFileRef, K as CaptureOutcome, R as RecordsClient } from './client-DcWZjmg2.js';
4
+ export { A as ARCHIVE_LANES, b as ARCHIVE_LANE_LABEL, c as ARCHIVE_LANE_MEANS, e as ActionRefusal, f as ActionRunResult, g as AdminTable, h as AnonTokenBinding, i as ArchiveLane, j as ArchivedChecklistTemplate, k as ArchivedDoorRow, l as ArchivedForm, m as ArchivedRow, o as AutomationAction, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRun, w as AutomationRunStatus, x as AutomationRuns, y as AutomationSpec, z as AutomationStep, B as AutomationTrigger, C as AutomationValue, D as AutomationValues, E as AutomationWeekday, G as BUILT_KIND_WORD, H as CHOICE_NUDGES, I as CaptureField, L as CaptureQuestion, M as CaptureSheetFace, N as CaptureSheetSummary, O as ChecklistDeclared, P as ChecklistRequirement, Q as ChecklistRequirementKind, S as ChecklistRoleSpec, U as ChecklistRunStarted, V as ChecklistRunStep, W as ChecklistRunSummary, X as ChecklistSpec, Y as ChecklistStepCompleted, Z as ChecklistStepSpec, _ as ChecklistTemplateShape, $ as ChecklistTemplateSummary, a0 as ChecklistTrigger, a1 as ChecklistTriggerKind, a2 as ChoiceCellBack, a3 as ChoiceLike, a4 as ChoiceNudge, a5 as ChoiceOption, a6 as ChoiceRehome, a7 as ChoiceUsage, a8 as ChoicesRehomed, a9 as CommentThreadRead, aa as CommentWritten, ab as ConversationScope, ac as ConversationScopeContext, ad as CustomFieldTableType, ae as DEFAULT_ARCHIVE_LANE, ag as DRILL_CHART_TOKENS, ah as DRILL_DESCRIPTION_MAX, ai as DRILL_DOORS, aj as DRILL_SCHEMA, ak as DataHomeTable, al as DecorationColor, am as DecorationPath, an as DecorationRule, ao as DecorationRuleOp, ap as DecorationTarget, aq as DocRenderRow, ar as DocSignatureCheck, as as DocSignatureRow, at as DocTemplateRow, au as DocToken, av as DocUnresolvedToken, aw as DrillAdHocOp, ax as DrillAnswer, ay as DrillAnswerRow, az as DrillChartToken, aA as DrillDeclaration, aB as DrillDefinition, aC as DrillDimension, aD as DrillFinding, aE as DrillGrain, aF as DrillHaving, aG as DrillLane, aH as DrillLevel, aI as DrillMeasure, aJ as DrillMeasureOp, aK as DrillMeasureWhereValue, aL as DrillPath, aM as DrillQuestion, aN as DrillRecords, aO as DrillRowsPage, aP as DrillSource, aQ as DrillView, aR as EnrichAlternate, aS as EnrichCell, aT as EnrichDeclared, aU as EnrichDueRow, aV as EnrichRun, aW as EnrichSource, aX as Enrichment, aY as EnrichmentSummary, aZ as EntityBackLinkItem, a_ as EntityBackLinks, a$ as EntityFieldRights, b0 as EntityFieldValue, b1 as EntityFieldsAcross, b2 as EntityRecordMatch, b3 as EntityRecordRead, b4 as EntityRecordsFound, b5 as EntityRowWritten, b6 as EntityTableFacts, b7 as ExternalPrincipalCard, F as FieldDrift, b8 as FieldDriftAspect, b9 as FieldHistoryEntry, ba as FieldRetyped, bb as FormArchiveAnswer, bc as FormulaParse, bd as FormulaPreview, be as GridLayout, bf as GridLayoutMode, bg as GridRowHeight, bh as HistoryActor, bi as HistoryActorKind, bj as HistoryChange, bk as Home, bl as ImportBatchResult, bm as ImportColumnPlan, bn as ImportColumnsDeclared, bo as ImportFinished, bp as ImportOpened, bq as ImportOutcome, br as ImportPlan, bs as ImportPolicy, bt as ImportProposal, bu as ImportReport, bv as ImportRun, bw as InboundAddress, bx as InboundDeclared, by as InboxCounts, bz as InboxStateChange, bA as IoExportPage, bB as MigrationEntry, bC as MigrationUndone, bD as NewEntityFieldDeclaration, bE as OutsideShareAnswer, bF as PIPELINE_RULE_KINDS, bG as ParentExtracted, bH as Pipeline, bI as PipelineColumn, bJ as PipelineDeclared, bK as PipelineGate, bL as PipelineGatePreview, bM as PipelineMissingField, bN as PipelineMoveMany, bO as PipelineMoveManyItem, bP as PipelineMoveManyResult, bQ as PipelineMoveResult, bR as PipelineMoveVerdict, bS as PipelineRule, bT as PipelineRuleKind, bU as PipelineSpec, bV as PipelineStage, bW as PipelineVerdict, bY as PublishBinding, bZ as PublishBindingKind, b$ as ROW_WEB_NOT_READY, c0 as RecordChangeAction, c1 as RecordComment, c2 as RecordEvent, c3 as RecordHeader, c4 as RecordHistoryEntry, c6 as RecordRowControls, c7 as RecordScopeComment, c8 as RecordScopeContext, c9 as RecordScopeField, ca as RecordScopeHistoryEntry, cb as RecordScopeRelation, cc as RecordScopeWithheld, cd as RecordSplit, ce as RecordsMerged, cf as RegisteredTable, cg as ResolvedPublishBinding, ch as ResolvedPublishBindingKind, ci as RestorePreview, cj as RestoreResult, ck as RetypeBehaviour, cl as RetypePreview, cm as RowAction, cn as RowActionStep, co as RowDefaultsApplied, cp as SHOWN_TO_LABEL, cq as SHOWN_TO_VALUES, cr as SHOWN_TO_WHO_MAY_CHANGE, cs as STAGE_RULE_ENFORCEMENT, ct as STAGE_RULE_ON_FAIL, cu as ShownTo, cv as StagePending, cw as StagePendingOnBoard, cx as StageRuleEnforcement, cy as StageRuleOnFail, cz as StageRuleWarning, cA as TABLE_KIND_PREFIX, cB as Table, T as TableArchiveProgress, cC as TableCapacity, cD as TableCopyInProgress, cE as TableDecorations, cF as TableDuplicateProgress, cG as TableDuplicated, cI as TableHome, cJ as TableHomeDestination, a as TableKindFacts, cK as TableLevel, cL as TableLevelApproval, cM as TableLevelFacts, cN as TableLevelSet, cO as TableListEntry, cQ as TableMoved, cR as TablePlacement, cS as TablePlacementFact, cT as TableReaderRule, cU as TableRenderSchema, cV as TableRestoreProgress, cW as TableRowCount, cX as TableRowDefaults, cY as TableRowDefaultsPatch, cZ as TableSchemaMode, c_ as TableSyncResult, c$ as TableSyncSource, d0 as TableSyncSpec, d1 as TableWebhook, d2 as TableWebhookDeclared, d3 as TypedChoiceDecision, d4 as ViewLayout, d5 as ViewOrderSet, d6 as WorkApprovalDecision, d7 as WorkApprovalFiled, d8 as WorkApprovalState, d9 as WorkApprover, da as WorkAssignment, db as WorkAssignmentField, dc as WorkChange, dd as WorkDecideMany, de as WorkDecideManyItem, df as WorkDecideManyResult, dg as WorkDecideVerdict, dh as WorkDueState, di as WorkGraph, dj as WorkInboxItem, dk as WorkInboxKind, dl as WorkInboxView, dm as WorkInstantiation, dn as WorkListFlavour, dp as WorkListItem, dq as WorkOrigin, dr as WorkRecordState, ds as WorkSlotHold, dt as WorkState, du as WorkTemplateNode, dv as WorkTemplateRelation, dw as WorkTurn, dx as actionRefusals, dy as archivedByLine, dz as archivedWhen, dA as asChoiceNudge, dC as choiceSlug, dD as choiceValuesOf, dE as choicesOf, dG as decideTypedChoice, dH as declareDrillDefinition, dI as drillAnswerOf, dJ as drillFindingKnob, dK as emptyArchiveLine, dL as exportPageXlsx, dM as fieldKindOf, dN as holdsARetiredChoice, dQ as isArchiveLane, dR as isFoundation, dS as isShownTo, dT as isTableKind, dU as isTheChosen, dV as keptGroups, dW as keptOutOfSight, dX as keptTableHref, dY as levelHasShownTo, dZ as looksLikeAnId, d_ as mayDrag, d$ as moveConsequence, e0 as moveInOrder, e1 as offeredAsContext, e2 as optionKey, e3 as optionLabel, e4 as parseFieldDrift, e5 as parseTableCopiesInProgress, e6 as parseTableDuplicateProgress, e7 as parseTableDuplicated, e8 as parseTableHome, e9 as parseTableMoved, eb as previewRetype, ec as previewRuleChange, ed as recordChangeTrigger, ee as recordSourceKey, ef as recordSourceTable, eg as recordsUseSentence, eh as rehomeSentence, ei as removedChoicesInUse, ej as ruleThatRefuses, ek as rulesWithTopStar, el as sameDocument, em as scopeChip, en as sheetSyncSpec, eo as tableIdOf, ep as tableJsonSchema, eq as tableKindMapping, er as tableKindSlug, es as tableRenderSchema, et as valueConverts, eu as withRowCounts, ew as withTablePlacement } from './client-DcWZjmg2.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-BE_5jz-c.js';
6
+ import { m as CoercibleField } from './field-BIRNApm1.js';
7
+ export { A as ADDRESS_PARTS, c as AGENT_WRITER_WORDS, d as AddressPart, e as AddressValue, B as BARCODE_SYMBOLOGIES, f as BUTTON_DOES, g as ButtonDoes, h as ButtonPressed, i as ButtonSettings, C as ChoiceOptions, j as CoerceOptions, k as Coerced, l as CoercedAnswers, n as FIELD_KINDS, F as Field, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from './field-BIRNApm1.js';
8
+ export { B as BookingAvailability, a as BookingDeclared, b as BookingSummary, c as BookingWindow, d as FormResults, e as FormRoute, F as FormSummary, f as Rule, g as RuleAnswer, R as RuleExpression, h as bookingPath, p as publicFormPath } from './rule-BtjrE42J.js';
9
+ export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, a as PORTAL_ACCENTS, b as PORTAL_ARCHIVE_FILTERS, P as PortalAccent, c as PortalArchiveAnswer, d as PortalArchiveFilter, e as PortalCard, f as PortalConfig, g as PortalConfigInput, h as PortalFooterLink, i as PortalFormAnswer, j as PortalFormInput, k as PortalFormRef, l as PortalFormSpec, m as PortalInvitation, n as PortalPreviewRow, o as PortalPrincipal, p as PortalRevocation, q as PortalStage, r as PortalStyle, s as PortalStyleInput, t as PortalSummary, u as PortalTableExposure, v as PortalTableRef, w as PublicPicture, x as emptyPortalArchiveLine, y as isPortalAccent, z as isPortalArchiveFilter, A as portalArchiveConsequence, B as portalConfirmLine, C as portalPath, E as portalTitleTypedBack } from './portal-B9HCNPTc.js';
10
+ export { A as AggregateBucket, e as AggregateCompare, f as AggregateCompareKind, g as AggregateCompareWindows, h as AggregateDelta, b as AggregateFilter, i as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, k as AggregateWindow, l as DashboardBlock, D as DashboardBlockKind, m as DashboardBlockResult, n as DashboardRunResult, o as DashboardSummary, p as DashboardTarget, q as DashboardTargetBase, r as DashboardTargetOp, s as DashboardTargetResult, t as DashboardTotals, u as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, v as RowTemplateRow, w as SavedViewColorBy, x as SavedViewDefinition, y as SavedViewLayout, d as SavedViewRow, z as SavedViewSpecIn, B as StoreFilter, C as StuckRow, E as Subscription, F as SubscriptionBlock, S as SubscriptionCadence, G as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from './subscription-Ca15Z7Gu.js';
11
+ export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as REVERSE_LINKS_PAGE_MAX, c as REVERSE_LINKS_RECORDS_PER_CALL, d as Relation, e as RelationCarries, f as RelationCoordinate, g as RelationIcons, h as RelationProperties, i as RelationTarget, j as RelationWordsManyArgs, k as ReverseColumn, l as ReverseLink, m as ReverseLinks, n as ReverseLinksFieldsArgs, o as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from './relation-BxGXLRaG.js';
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-D5Ytjah7.js';
13
+ import './doors-t-Oc2l9E.js';
13
14
 
14
15
  type WithFormat = CoercibleField & {
15
16
  display_format?: unknown;
@@ -404,4 +405,20 @@ type MergeFieldResolution = {
404
405
  reason: string;
405
406
  };
406
407
 
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 };
408
+ interface ChooseAlternateArgs {
409
+ record_id: Uuid;
410
+ field_key: string;
411
+ /** Position in the field's `alternates` list as the record holds it. */
412
+ alternate_index: number;
413
+ }
414
+ /** The patch that makes alternate `alternate_index` of `field_key` the value. Pure; exported for tests. */
415
+ declare function alternatePatch(document: RecordDocument, field_key: string, alternate_index: number): {
416
+ ok: true;
417
+ patch: Record<string, unknown>;
418
+ } | {
419
+ ok: false;
420
+ message: string;
421
+ };
422
+ declare function chooseAlternate(client: Pick<RecordsClient, "recordRead" | "recordUpdate">, { record_id, field_key, alternate_index }: ChooseAlternateArgs): Promise<RecordsResult<number>>;
423
+
424
+ export { CaptureFileRef, CaptureOutcome, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSyncReport, type ChooseAlternateArgs, 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, RecordDocument, RecordsResult, type ResolutionTriple, Timestamp, type TypedDate, type TypedMatchScore, type TypedNumber, type TypedTime, Uuid, alternatePatch, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, chooseAlternate, filterWithAutonumber, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, twoDigitYear, typedDateText, typedMatchScore, typedTimeText };
package/dist/index.js CHANGED
@@ -5092,6 +5092,49 @@ function tableRenderSchema(facts) {
5092
5092
  }
5093
5093
  return { kind: slug, fields: out };
5094
5094
  }
5095
+
5096
+ // src/alternates.ts
5097
+ function refuse(code, message, hint) {
5098
+ return { ok: false, error: { code, message, hint, ours: true } };
5099
+ }
5100
+ function alternatePatch(document, field_key, alternate_index) {
5101
+ const block = document._values ?? {};
5102
+ const envelope = block[field_key];
5103
+ const alternates = Array.isArray(envelope?.alternates) ? envelope.alternates : [];
5104
+ const chosen = alternates[alternate_index];
5105
+ if (!envelope || !chosen) return { ok: false, message: "That other value is no longer on this record." };
5106
+ const kept = alternates.filter((_, i) => i !== alternate_index);
5107
+ const current = document[field_key];
5108
+ const next = [...kept];
5109
+ if (current !== null && current !== void 0) {
5110
+ const taken = new Set(kept.map((a) => a.rank));
5111
+ let rank = 1;
5112
+ while (taken.has(rank)) rank += 1;
5113
+ next.push({ value: current, ...envelope.src ? { src: envelope.src } : {}, rank });
5114
+ }
5115
+ const { ver: _ver, actor: _actor, at: _at, on_behalf_of: _on, absent: _absent, alternates: _alts, src: _src, ...rest } = envelope;
5116
+ const changed = { ...rest, ...chosen.src ? { src: chosen.src } : {} };
5117
+ if (next.length > 0) changed["alternates"] = next;
5118
+ return {
5119
+ ok: true,
5120
+ patch: {
5121
+ [field_key]: chosen.value,
5122
+ // THE WHOLE BLOCK — every other field's envelope and alternates travel with it.
5123
+ _values: { ...block, [field_key]: changed }
5124
+ }
5125
+ };
5126
+ }
5127
+ async function chooseAlternate(client, { record_id, field_key, alternate_index }) {
5128
+ const read = await client.recordRead({ record_id, withVersion: true });
5129
+ if (!read.ok) return read;
5130
+ const version = read.data.version;
5131
+ if (version === null || version === void 0) {
5132
+ return refuse("stale_read", "Nothing was saved: this record's latest changes could not be checked.", "Reload, then try again.");
5133
+ }
5134
+ const built = alternatePatch(read.data.document, field_key, alternate_index);
5135
+ if (!built.ok) return refuse("not_found", built.message, "Reload, then look again.");
5136
+ return client.recordUpdate({ record_id, patch: built.patch, expectedVersion: version });
5137
+ }
5095
5138
  export {
5096
5139
  ABSENCE_REASONS,
5097
5140
  ACTOR_VOCABULARY,
@@ -5167,6 +5210,7 @@ export {
5167
5210
  addressMapUrl,
5168
5211
  addressText,
5169
5212
  allowsOtherValues,
5213
+ alternatePatch,
5170
5214
  archivedByLine,
5171
5215
  archivedWhen,
5172
5216
  asChoiceNudge,
@@ -5184,6 +5228,7 @@ export {
5184
5228
  choiceSlug,
5185
5229
  choiceValuesOf,
5186
5230
  choicesOf,
5231
+ chooseAlternate,
5187
5232
  coerceTypedAnswer,
5188
5233
  coerceTypedAnswers,
5189
5234
  coercionLabel,