@ai-matrx/records 0.79.1 → 0.80.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/app-table/index.cjs +31 -6
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +3 -3
- package/dist/app-table/index.d.ts +3 -3
- package/dist/app-table/index.js +31 -6
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-BcVOYKL1.d.ts → client-BbLzOf08.d.ts} +1 -1
- package/dist/{client-DHoI0qvP.d.cts → client-GhSH0bR7.d.cts} +1 -1
- package/dist/core/index.cjs +41 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +26 -5
- package/dist/core/index.d.ts +26 -5
- package/dist/core/index.js +41 -6
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +31 -6
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +31 -6
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-DM9mPkSc.d.cts → declareTable-Bb0eUtPF.d.cts} +2 -2
- package/dist/{declareTable-CDKHwyrF.d.ts → declareTable-D6mB7Va8.d.ts} +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +31 -6
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +6 -2
- package/dist/react/index.d.ts +6 -2
- package/dist/react/index.js +31 -6
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-wYO_qjK1.d.cts → table-kind-DptSVo_4.d.cts} +6 -2
- package/dist/{table-kind-Ct-nhoCZ.d.ts → table-kind-lHVdMZGy.d.ts} +6 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-lHVdMZGy.js';
|
|
2
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-B9znK2dw.js';
|
|
3
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-DJAvDExi.js';
|
|
4
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-DCaOJbhA.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DptSVo_4.cjs';
|
|
2
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-C_hNjbaR.cjs';
|
|
3
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-DCXU6k9i.cjs';
|
|
4
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-DCaOJbhA.cjs';
|
package/dist/core/index.cjs
CHANGED
|
@@ -163,6 +163,7 @@ __export(core_exports, {
|
|
|
163
163
|
fieldKindFor: () => fieldKindFor,
|
|
164
164
|
fieldKindOf: () => fieldKindOf,
|
|
165
165
|
forgetAllOps: () => forgetAllOps,
|
|
166
|
+
forgetPrimedTablePageBundles: () => forgetPrimedTablePageBundles,
|
|
166
167
|
hasQuietHours: () => hasQuietHours,
|
|
167
168
|
highestLevel: () => highestLevel,
|
|
168
169
|
holdsARetiredChoice: () => holdsARetiredChoice,
|
|
@@ -231,6 +232,7 @@ __export(core_exports, {
|
|
|
231
232
|
predictWriteRefusals: () => predictWriteRefusals,
|
|
232
233
|
previewRetype: () => previewRetype,
|
|
233
234
|
previewRuleChange: () => previewRuleChange,
|
|
235
|
+
primeTablePageBundle: () => primeTablePageBundle,
|
|
234
236
|
publicFormPath: () => publicFormPath,
|
|
235
237
|
rankTypedMatches: () => rankTypedMatches,
|
|
236
238
|
ratingMaxOf: () => ratingMaxOf,
|
|
@@ -267,6 +269,7 @@ __export(core_exports, {
|
|
|
267
269
|
tableKindMapping: () => tableKindMapping,
|
|
268
270
|
tableKindSlug: () => tableKindSlug,
|
|
269
271
|
tableRenderSchema: () => tableRenderSchema,
|
|
272
|
+
takePrimedTablePageBundle: () => takePrimedTablePageBundle,
|
|
270
273
|
toAoa: () => toAoa,
|
|
271
274
|
tokenFor: () => tokenFor,
|
|
272
275
|
twoDigitYear: () => twoDigitYear,
|
|
@@ -5101,6 +5104,31 @@ function tableRenderSchema(facts) {
|
|
|
5101
5104
|
return { kind: slug, fields: out };
|
|
5102
5105
|
}
|
|
5103
5106
|
|
|
5107
|
+
// src/core/primedBundle.ts
|
|
5108
|
+
var PRIMED_TTL_MS = 15e3;
|
|
5109
|
+
var REGISTRY = /* @__PURE__ */ Symbol.for("@ai-matrx/records/primed-table-page-bundles");
|
|
5110
|
+
function registry() {
|
|
5111
|
+
const g = globalThis;
|
|
5112
|
+
return g[REGISTRY] ??= /* @__PURE__ */ new Map();
|
|
5113
|
+
}
|
|
5114
|
+
var primedKey = (organizationId, tableId, viewId) => `${organizationId}|${tableId}|${viewId ?? ""}`;
|
|
5115
|
+
function primeTablePageBundle(input) {
|
|
5116
|
+
const answer = Promise.resolve(input.answer).catch((thrown) => ({ data: null, error: thrown }));
|
|
5117
|
+
registry().set(primedKey(input.organizationId, input.tableId, input.viewId), { answer, at: Date.now() });
|
|
5118
|
+
}
|
|
5119
|
+
function takePrimedTablePageBundle(organizationId, tableId, viewId) {
|
|
5120
|
+
if (!organizationId) return null;
|
|
5121
|
+
const key = primedKey(organizationId, tableId, viewId);
|
|
5122
|
+
const primed = registry();
|
|
5123
|
+
const held = primed.get(key);
|
|
5124
|
+
if (!held) return null;
|
|
5125
|
+
primed.delete(key);
|
|
5126
|
+
return Date.now() - held.at < PRIMED_TTL_MS ? held.answer : null;
|
|
5127
|
+
}
|
|
5128
|
+
function forgetPrimedTablePageBundles() {
|
|
5129
|
+
registry().clear();
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5104
5132
|
// src/core/keysetCursor.ts
|
|
5105
5133
|
function utf8ToBinary(text2) {
|
|
5106
5134
|
let out = "";
|
|
@@ -6050,13 +6078,20 @@ function createRecordsClient(given) {
|
|
|
6050
6078
|
}
|
|
6051
6079
|
async function fillBundle(tableId, viewId) {
|
|
6052
6080
|
try {
|
|
6053
|
-
const
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
)
|
|
6081
|
+
const view = typeof viewId === "string" ? viewId : null;
|
|
6082
|
+
const usable = (r) => r !== null && !r.error && r.data !== null && typeof r.data === "object" && Array.isArray(r.data.parts);
|
|
6083
|
+
const primedAnswer = takePrimedTablePageBundle(org, tableId, view);
|
|
6084
|
+
let response = primedAnswer ? await primedAnswer : null;
|
|
6085
|
+
if (!usable(response)) {
|
|
6086
|
+
response = await config.dataSource.rpc(
|
|
6087
|
+
"table_page_bundle",
|
|
6088
|
+
{ p_organization_id: org, p_table_id: tableId, p_view_id: view },
|
|
6089
|
+
{ schema }
|
|
6090
|
+
);
|
|
6091
|
+
}
|
|
6092
|
+
if (!usable(response)) return;
|
|
6058
6093
|
const answer = response.data;
|
|
6059
|
-
if (
|
|
6094
|
+
if (!answer || !Array.isArray(answer.parts)) return;
|
|
6060
6095
|
const now = Date.now();
|
|
6061
6096
|
for (const part of answer.parts) {
|
|
6062
6097
|
if (part.error !== void 0 || part.data === void 0) continue;
|