@ai-matrx/records 0.80.4 → 0.80.8

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 (71) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +19 -0
  3. package/dist/app-table/index.cjs +88 -23
  4. package/dist/app-table/index.cjs.map +1 -1
  5. package/dist/app-table/index.d.cts +7 -7
  6. package/dist/app-table/index.d.ts +7 -7
  7. package/dist/app-table/index.js +88 -23
  8. package/dist/app-table/index.js.map +1 -1
  9. package/dist/{client-CB_Klj1P.d.ts → client-D1LTezMZ.d.ts} +5 -5
  10. package/dist/{client-D0yGEof4.d.cts → client-DLIKeBWF.d.cts} +5 -5
  11. package/dist/core/index.cjs +97 -31
  12. package/dist/core/index.cjs.map +1 -1
  13. package/dist/core/index.d.cts +21 -12
  14. package/dist/core/index.d.ts +21 -12
  15. package/dist/core/index.js +97 -31
  16. package/dist/core/index.js.map +1 -1
  17. package/dist/data/index.cjs +88 -23
  18. package/dist/data/index.cjs.map +1 -1
  19. package/dist/data/index.d.cts +6 -6
  20. package/dist/data/index.d.ts +6 -6
  21. package/dist/data/index.js +88 -23
  22. package/dist/data/index.js.map +1 -1
  23. package/dist/{declareTable-l7ktxN6p.d.cts → declareTable-02uao-5n.d.cts} +4 -4
  24. package/dist/{declareTable-DoYVueVF.d.ts → declareTable-C5FlIS0z.d.ts} +4 -4
  25. package/dist/{field-6UtYgFeu.d.ts → field-BIJiFPc0.d.ts} +1 -1
  26. package/dist/{field-DpJR_5Pe.d.cts → field-snQG2jMq.d.cts} +1 -1
  27. package/dist/index.cjs +2 -0
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +7 -7
  30. package/dist/index.d.ts +7 -7
  31. package/dist/index.js +2 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/memory/index.cjs +1 -0
  34. package/dist/memory/index.cjs.map +1 -1
  35. package/dist/memory/index.d.cts +6 -6
  36. package/dist/memory/index.d.ts +6 -6
  37. package/dist/memory/index.js +1 -0
  38. package/dist/memory/index.js.map +1 -1
  39. package/dist/{ports-CiEYhwi5.d.ts → ports-Y5gLbCXe.d.ts} +1 -1
  40. package/dist/{ports-CE7umTp-.d.cts → ports-y1QNfM80.d.cts} +1 -1
  41. package/dist/react/index.cjs +89 -27
  42. package/dist/react/index.cjs.map +1 -1
  43. package/dist/react/index.d.cts +6 -1
  44. package/dist/react/index.d.ts +6 -1
  45. package/dist/react/index.js +89 -27
  46. package/dist/react/index.js.map +1 -1
  47. package/dist/realtime/index.d.cts +2 -2
  48. package/dist/realtime/index.d.ts +2 -2
  49. package/dist/{record-CvqV8wyO.d.cts → record-1yDCn169.d.cts} +6 -1
  50. package/dist/{record-CvqV8wyO.d.ts → record-1yDCn169.d.ts} +6 -1
  51. package/dist/{subscription-CC0kgkwa.d.cts → subscription-B_WaT-kr.d.cts} +1 -1
  52. package/dist/{subscription-DjkuDMcX.d.ts → subscription-CUok1vAm.d.ts} +1 -1
  53. package/dist/{table-kind-FMYq3nCr.d.ts → table-kind-COmkYYkc.d.ts} +3 -3
  54. package/dist/{table-kind-DHpMEOHd.d.cts → table-kind-LodkBhCZ.d.cts} +3 -3
  55. package/dist/templates/index.cjs +3 -2
  56. package/dist/templates/index.cjs.map +1 -1
  57. package/dist/templates/index.d.cts +9 -9
  58. package/dist/templates/index.d.ts +9 -9
  59. package/dist/templates/index.js +3 -2
  60. package/dist/templates/index.js.map +1 -1
  61. package/dist/{types-DuceX7js.d.cts → types-BJGTxu3Y.d.cts} +2 -2
  62. package/dist/{types-BbCZJh1C.d.ts → types-C5-AaPa6.d.ts} +2 -2
  63. package/dist/{types-B4LF3sFx.d.ts → types-CU_Tn2Np.d.ts} +2 -2
  64. package/dist/{types-Flsf_KU5.d.cts → types-yBZLtxrZ.d.cts} +2 -2
  65. package/dist/use-cases/index.cjs.map +1 -1
  66. package/dist/use-cases/index.d.cts +5 -5
  67. package/dist/use-cases/index.d.ts +5 -5
  68. package/dist/use-cases/index.js.map +1 -1
  69. package/dist/{validate-EvZGkD96.d.cts → validate-CE6qpJIb.d.cts} +1 -1
  70. package/dist/{validate-DyVwSD74.d.ts → validate-Rz9djP6H.d.ts} +1 -1
  71. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-FMYq3nCr.js';
2
- import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-DjkuDMcX.js';
3
- import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldDuplicated, e as FieldProposal, T as TableProposal } from './field-6UtYgFeu.js';
4
- import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-CvqV8wyO.js';
5
- import { a as RecordsConfig } from './ports-CiEYhwi5.js';
1
+ import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-COmkYYkc.js';
2
+ import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-CUok1vAm.js';
3
+ import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldDuplicated, e as FieldProposal, T as TableProposal } from './field-BIJiFPc0.js';
4
+ import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-1yDCn169.js';
5
+ import { a as RecordsConfig } from './ports-Y5gLbCXe.js';
6
6
 
7
7
  /**
8
8
  * DOOR-8. As-of on EITHER clock, and they are different questions:
@@ -1,8 +1,8 @@
1
- import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-DHpMEOHd.cjs';
2
- import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-CC0kgkwa.cjs';
3
- import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldDuplicated, e as FieldProposal, T as TableProposal } from './field-DpJR_5Pe.cjs';
4
- import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-CvqV8wyO.cjs';
5
- import { a as RecordsConfig } from './ports-CE7umTp-.cjs';
1
+ import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-LodkBhCZ.cjs';
2
+ import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-B_WaT-kr.cjs';
3
+ import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldDuplicated, e as FieldProposal, T as TableProposal } from './field-snQG2jMq.cjs';
4
+ import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-1yDCn169.cjs';
5
+ import { a as RecordsConfig } from './ports-y1QNfM80.cjs';
6
6
 
7
7
  /**
8
8
  * DOOR-8. As-of on EITHER clock, and they are different questions:
@@ -232,6 +232,7 @@ __export(core_exports, {
232
232
  predictWriteRefusals: () => predictWriteRefusals,
233
233
  previewRetype: () => previewRetype,
234
234
  previewRuleChange: () => previewRuleChange,
235
+ primeRecordPageBundle: () => primeRecordPageBundle,
235
236
  primeTablePageBundle: () => primeTablePageBundle,
236
237
  publicFormPath: () => publicFormPath,
237
238
  rankTypedMatches: () => rankTypedMatches,
@@ -3203,6 +3204,7 @@ var STORE_DOORS = [
3203
3204
  { name: "record_filter_sql", args: "p_organization_id uuid, p_table_id uuid, p_filter jsonb", returns: "text", security: "invoker" },
3204
3205
  { name: "record_headers", args: "p_organization_id uuid, p_ids uuid[]", returns: "TABLE(id uuid, table_id uuid, created_at timestamp with time zone, updated_at timestamp with time zone, version integer, deleted_at timestamp with time zone, mine boolean, created_by uuid)", security: "definer" },
3205
3206
  { name: "record_history", args: "p_organization_id uuid, p_record_id uuid, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0", returns: "TABLE(version integer, occurred_at timestamp with time zone, operation text, operation_label text, actor jsonb, changes jsonb, migration_id uuid, undoable boolean)", security: "definer" },
3207
+ { name: "record_page_bundle", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
3206
3208
  { name: "record_platform_keys", args: "", returns: "text[]", security: "invoker" },
3207
3209
  { name: "record_relation_edges", args: "p_organization_id uuid, p_id uuid, p_table_id uuid, p_data_class text, p_data jsonb, p_deleted_at timestamp with time zone", returns: "TABLE(target_id uuid, edge_role text, field_id uuid, ord integer)", security: "invoker" },
3208
3210
  { name: "record_reparent", args: "p_organization_id uuid, p_record_id uuid, p_parent_id uuid", returns: "void", security: "definer" },
@@ -3613,6 +3615,7 @@ var ENTITY_TOKENS = [
3613
3615
  "access_shadow_log",
3614
3616
  "account_addon",
3615
3617
  "account_closure",
3618
+ "account_facts",
3616
3619
  "acquisition_block",
3617
3620
  "activity",
3618
3621
  "admin_audit_log",
@@ -5138,6 +5141,39 @@ function takePrimedTablePageBundle(organizationId, tableId, viewId) {
5138
5141
  function forgetPrimedTablePageBundles() {
5139
5142
  registry().clear();
5140
5143
  }
5144
+ function primeRecordPageBundle(input) {
5145
+ primeTablePageBundle({ organizationId: input.organizationId, tableId: `record:${input.recordId}`, answer: input.answer });
5146
+ }
5147
+
5148
+ // src/core/recordChanges.ts
5149
+ var listeners = /* @__PURE__ */ new Set();
5150
+ function announceRecordChanged(recordId) {
5151
+ for (const listener of [...listeners]) {
5152
+ try {
5153
+ listener(recordId);
5154
+ } catch (thrown) {
5155
+ console.error("[@ai-matrx/records] a record-change listener threw", thrown);
5156
+ }
5157
+ }
5158
+ }
5159
+ function onRecordChanged(listener) {
5160
+ listeners.add(listener);
5161
+ return () => listeners.delete(listener);
5162
+ }
5163
+ var tableListeners = /* @__PURE__ */ new Set();
5164
+ function announceTableStructureChanged(tableId) {
5165
+ for (const listener of [...tableListeners]) {
5166
+ try {
5167
+ listener(tableId);
5168
+ } catch (thrown) {
5169
+ console.error("[@ai-matrx/records] a table-structure listener threw", thrown);
5170
+ }
5171
+ }
5172
+ }
5173
+ function onTableStructureChanged(listener) {
5174
+ tableListeners.add(listener);
5175
+ return () => tableListeners.delete(listener);
5176
+ }
5141
5177
 
5142
5178
  // src/core/keysetCursor.ts
5143
5179
  function utf8ToBinary(text2) {
@@ -5948,36 +5984,6 @@ function asRecordsDataSource(source) {
5948
5984
  return source;
5949
5985
  }
5950
5986
 
5951
- // src/core/recordChanges.ts
5952
- var listeners = /* @__PURE__ */ new Set();
5953
- function announceRecordChanged(recordId) {
5954
- for (const listener of [...listeners]) {
5955
- try {
5956
- listener(recordId);
5957
- } catch (thrown) {
5958
- console.error("[@ai-matrx/records] a record-change listener threw", thrown);
5959
- }
5960
- }
5961
- }
5962
- function onRecordChanged(listener) {
5963
- listeners.add(listener);
5964
- return () => listeners.delete(listener);
5965
- }
5966
- var tableListeners = /* @__PURE__ */ new Set();
5967
- function announceTableStructureChanged(tableId) {
5968
- for (const listener of [...tableListeners]) {
5969
- try {
5970
- listener(tableId);
5971
- } catch (thrown) {
5972
- console.error("[@ai-matrx/records] a table-structure listener threw", thrown);
5973
- }
5974
- }
5975
- }
5976
- function onTableStructureChanged(listener) {
5977
- tableListeners.add(listener);
5978
- return () => tableListeners.delete(listener);
5979
- }
5980
-
5981
5987
  // src/core/query.ts
5982
5988
  var DEFAULT_PAGE_SIZE = 50;
5983
5989
  function planQuery(query) {
@@ -6112,8 +6118,68 @@ function createRecordsClient(given) {
6112
6118
  } catch {
6113
6119
  }
6114
6120
  }
6121
+ const RECORD_OPENERS = /* @__PURE__ */ new Set(["read_record", "record_row_controls", "record_history", "comment_thread", "computed_provenance"]);
6122
+ const recordFlights = /* @__PURE__ */ new Map();
6123
+ const recordAsked = /* @__PURE__ */ new Map();
6124
+ let recordChangesHeard = false;
6125
+ function bundleRecordOf(door, args) {
6126
+ if (RECORD_OPENERS.has(door)) return typeof args["p_record_id"] === "string" ? args["p_record_id"] : null;
6127
+ const ids = args["p_ids"];
6128
+ const one = Array.isArray(ids) && ids.length === 1 && typeof ids[0] === "string" ? ids[0] : null;
6129
+ if (door === "record_headers") return one;
6130
+ if (door === "my_levels" && args["p_type"] === "record") return one;
6131
+ return null;
6132
+ }
6133
+ async function fillRecordBundle(recordId) {
6134
+ if (!recordChangesHeard) {
6135
+ recordChangesHeard = true;
6136
+ onRecordChanged((changed) => {
6137
+ recordAsked.delete(changed);
6138
+ for (const key of [...bundleParts.keys()]) if (key.includes(changed)) bundleParts.delete(key);
6139
+ });
6140
+ }
6141
+ try {
6142
+ const usable = (r) => r !== null && !r.error && r.data !== null && typeof r.data === "object" && Array.isArray(r.data.parts);
6143
+ const primedAnswer = takePrimedTablePageBundle(org, `record:${recordId}`, null);
6144
+ let response = primedAnswer ? await primedAnswer : null;
6145
+ if (!usable(response)) {
6146
+ response = await config.dataSource.rpc("record_page_bundle", { p_organization_id: org, p_record_id: recordId }, { schema });
6147
+ }
6148
+ if (!usable(response)) return;
6149
+ const now = Date.now();
6150
+ for (const part of response.data.parts) {
6151
+ if (part.error !== void 0 || part.data === void 0) continue;
6152
+ bundleParts.set(bundleKey(part.door, part.args), { data: part.data, at: now });
6153
+ }
6154
+ } catch {
6155
+ }
6156
+ }
6157
+ async function fromRecordBundle(door, args) {
6158
+ if (!doorReady(config, "record_page_bundle")) return void 0;
6159
+ const recordId = bundleRecordOf(door, args);
6160
+ if (!recordId) return void 0;
6161
+ const opener = RECORD_OPENERS.has(door);
6162
+ if (!opener && !recordFlights.has(recordId) && !recordAsked.has(recordId)) return void 0;
6163
+ const asked = recordAsked.get(recordId);
6164
+ const fresh = asked !== void 0 && Date.now() - asked < BUNDLE_TTL_MS;
6165
+ if (!fresh && opener) {
6166
+ recordAsked.set(recordId, Date.now());
6167
+ const flight2 = fillRecordBundle(recordId).finally(() => recordFlights.delete(recordId));
6168
+ recordFlights.set(recordId, flight2);
6169
+ }
6170
+ const flight = recordFlights.get(recordId);
6171
+ if (flight) await flight;
6172
+ const key = bundleKey(door, args);
6173
+ const held = bundleParts.get(key);
6174
+ if (!held) return opener ? null : void 0;
6175
+ bundleParts.delete(key);
6176
+ return Date.now() - held.at < BUNDLE_TTL_MS ? { data: held.data } : null;
6177
+ }
6115
6178
  async function fromBundle(door, args) {
6116
- if (!config.dataSource.opensInOneCall || !doorReady(config, "table_page_bundle")) return null;
6179
+ if (!config.dataSource.opensInOneCall) return null;
6180
+ const fromRecord = await fromRecordBundle(door, args);
6181
+ if (fromRecord !== void 0) return fromRecord;
6182
+ if (!doorReady(config, "table_page_bundle")) return null;
6117
6183
  const tableId = bundleTableOf(door, args);
6118
6184
  if (tableId) {
6119
6185
  const asked = bundleAsked.get(tableId);