@ai-matrx/records 0.99.32 → 0.99.33
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 +16 -1
- package/dist/{client-CrwedBYU.d.ts → client-CSfkP7Xf.d.ts} +5 -74
- package/dist/{client-D1EwyWfh.d.cts → client-jKf1Z-kp.d.cts} +5 -74
- package/dist/core/index.cjs +149 -105
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +9 -331
- package/dist/core/index.d.ts +9 -331
- package/dist/core/index.js +149 -105
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +280 -236
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +3 -2
- package/dist/data/index.d.ts +3 -2
- package/dist/data/index.js +280 -236
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-CC5rTTIA.d.ts → declareTable-0emxEewn.d.ts} +1 -1
- package/dist/{declareTable-BIIt0Wqt.d.cts → declareTable-800bwUn3.d.cts} +1 -1
- package/dist/door-call/index.cjs +1287 -0
- package/dist/door-call/index.cjs.map +1 -0
- package/dist/door-call/index.d.cts +20 -0
- package/dist/door-call/index.d.ts +20 -0
- package/dist/door-call/index.js +1264 -0
- package/dist/door-call/index.js.map +1 -0
- package/dist/{doors-D1yAs0a0.d.cts → doors-BgjRUdxw.d.cts} +13 -1
- package/dist/{doors-D2z3kH2i.d.ts → doors-D7_jEKtg.d.ts} +13 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/{objectOrganization-DazBoDAq.d.cts → objectOrganization-B5YFGVUB.d.cts} +1 -1
- package/dist/{objectOrganization-D1ox3gUx.d.ts → objectOrganization-DozoVIxS.d.ts} +1 -1
- package/dist/pickListDoors-C-_eAEGL.d.cts +135 -0
- package/dist/pickListDoors-DgWVnNRI.d.ts +135 -0
- package/dist/questions/index.d.cts +3 -2
- package/dist/questions/index.d.ts +3 -2
- package/dist/react/index.cjs +363 -319
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +37 -22
- package/dist/react/index.d.ts +37 -22
- package/dist/react/index.js +363 -319
- package/dist/react/index.js.map +1 -1
- package/dist/scopes/index.cjs +7 -0
- package/dist/scopes/index.cjs.map +1 -1
- package/dist/scopes/index.d.cts +2 -2
- package/dist/scopes/index.d.ts +2 -2
- package/dist/scopes/index.js +7 -0
- package/dist/scopes/index.js.map +1 -1
- package/dist/setup/index.cjs +289 -245
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +4 -3
- package/dist/setup/index.d.ts +4 -3
- package/dist/setup/index.js +289 -245
- package/dist/setup/index.js.map +1 -1
- package/dist/table-logic-BPquabNN.d.ts +328 -0
- package/dist/table-logic-CTh6lwaq.d.cts +328 -0
- package/dist/typed-table/index.cjs +280 -236
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +4 -3
- package/dist/typed-table/index.d.ts +4 -3
- package/dist/typed-table/index.js +280 -236
- package/dist/typed-table/index.js.map +1 -1
- package/dist/views/index.d.cts +3 -2
- package/dist/views/index.d.ts +3 -2
- package/package.json +13 -3
package/dist/core/index.d.cts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { a as RecordsError, R as RecordsResult,
|
|
2
|
-
export { s as ABSENCE_REASONS, t as ACTOR_VOCABULARY, u as AbsenceReason, A as Actor, v as COMPUTE_ON, w as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, x as DECLARABLE_FIELD_KINDS, y as DELIVERIES, D as DeclarableFieldKind, z as Delivery, E as ENTITY_TOKENS, B as EntityToken, G as FIELD_SENSITIVITIES, I as FIELD_SOURCES, J as FORMULA_NODE_RESULTS, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, M as Freshness, 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, Z as MergeFieldModifier, _ as MergeFieldSemanticType, $ as MergeFieldSource, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a2 as OverridePolicy, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, 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, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, 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, ap as StaleWriteDetail, S as StorageMode, aq as StoreDoorName, ar as StoreRefusalCode, as as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, b as TableDisplay, aw as TableOrigin, T as TableType, h as Timestamp, ax as VALUE_ALTERNATE_KEYS, ay as VALUE_ENVELOPE_KEYS, az as ValueAlternate, aA as ValueAlternateKey, aB as ValueEnvelope, aC as ValueEnvelopeKey, aD as ValueSource, aE as WriteConflict, aF as err, aG as isLockedStub, aH as isRecordsErr, aI as ok, aJ as splitLockedRows, aK as unwrapRecords } from '../record-CTgSgWe3.cjs';
|
|
3
|
-
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, c as
|
|
1
|
+
import { a as RecordsError, R as RecordsResult, n as RecordDocument, q as PredictedRefusal, r as ReadValue, U as Uuid } from '../record-CTgSgWe3.cjs';
|
|
2
|
+
export { s as ABSENCE_REASONS, t as ACTOR_VOCABULARY, u as AbsenceReason, A as Actor, v as COMPUTE_ON, w as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, x as DECLARABLE_FIELD_KINDS, y as DELIVERIES, D as DeclarableFieldKind, z as Delivery, E as ENTITY_TOKENS, B as EntityToken, G as FIELD_SENSITIVITIES, I as FIELD_SOURCES, J as FORMULA_NODE_RESULTS, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, M as Freshness, 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, Z as MergeFieldModifier, _ as MergeFieldSemanticType, $ as MergeFieldSource, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a2 as OverridePolicy, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, P as PgError, 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, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, 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, ap as StaleWriteDetail, S as StorageMode, aq as StoreDoorName, ar as StoreRefusalCode, as as StoredRecord, at as TABLE_DISPLAYS, au as TABLE_ORIGINS, av as TABLE_TYPES, b as TableDisplay, aw as TableOrigin, T as TableType, h as Timestamp, ax as VALUE_ALTERNATE_KEYS, ay as VALUE_ENVELOPE_KEYS, az as ValueAlternate, aA as ValueAlternateKey, aB as ValueEnvelope, aC as ValueEnvelopeKey, aD as ValueSource, aE as WriteConflict, aF as err, aG as isLockedStub, aH as isRecordsErr, aI as ok, aJ as splitLockedRows, aK as unwrapRecords } from '../record-CTgSgWe3.cjs';
|
|
3
|
+
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, c as ActionRefusal, d as ActionRunResult, e as AdminTable, f as AnonTokenBinding, g as ArchiveLane, h as ArchivedChecklistTemplate, i as ArchivedDoorRow, j as ArchivedForm, k as ArchivedRow, l as AsOf, m as AutomationAction, n as AutomationComparison, o as AutomationDeclared, p as AutomationFilter, q as AutomationFlipped, r as AutomationItem, s as AutomationLastRun, t as AutomationList, u as AutomationRevision, v as AutomationRevisions, w as AutomationRun, x as AutomationRunStatus, y as AutomationRuns, z as AutomationSpec, B as AutomationStep, C as AutomationTested, D as AutomationToken, E as AutomationTrigger, G as AutomationValue, H as AutomationValues, I as AutomationWeekday, J as AutomationWhen, K as BUILT_KIND_WORD, L as CHOICE_NUDGES, M as CaptureField, N as CaptureFileRef, O as CaptureOutcome, P as CaptureQuestion, Q as CaptureSheetFace, S as CaptureSheetSummary, U as ChecklistDeclared, V as ChecklistRequirement, W as ChecklistRequirementKind, X as ChecklistRoleSpec, Y as ChecklistRunStarted, Z as ChecklistRunStep, _ as ChecklistRunSummary, $ as ChecklistSpec, a0 as ChecklistStepCompleted, a1 as ChecklistStepSpec, a2 as ChecklistTemplateShape, a3 as ChecklistTemplateSummary, a4 as ChecklistTrigger, a5 as ChecklistTriggerKind, a6 as ChoiceCellBack, a7 as ChoiceLike, a8 as ChoiceNudge, a9 as ChoiceOption, aa as ChoiceRehome, ab as ChoiceUsage, ac as ChoicesRehomed, ad as CommentThreadRead, ae as CommentWritten, af as ConversationScope, ag as ConversationScopeContext, ah as CustomFieldTableType, ai as DEFAULT_ARCHIVE_LANE, aj as DEFAULT_PAGE_SIZE, ak as DRILL_CHART_TOKENS, al as DRILL_DESCRIPTION_MAX, am as DRILL_DOORS, an as DRILL_SCHEMA, ao as DataHomeTable, ap as DecorationColor, aq as DecorationPath, ar as DecorationRule, as as DecorationRuleOp, at as DecorationTarget, au as DocRenderRow, av as DocSignatureCheck, aw as DocSignatureRow, ax as DocTemplateRow, ay as DocToken, az as DocUnresolvedToken, aA as DrillAdHocOp, aB as DrillAnswer, aC as DrillAnswerRow, aD as DrillChartToken, aE as DrillDeclaration, aF as DrillDefinition, aG as DrillDimension, aH as DrillFinding, aI as DrillGrain, aJ as DrillHaving, aK as DrillLane, aL as DrillLevel, aM as DrillMeasure, aN as DrillMeasureOp, aO as DrillMeasureWhereValue, aP as DrillPath, aQ as DrillQuestion, aR as DrillRecords, aS as DrillRowsPage, aT as DrillSource, aU as DrillView, aV as EnrichAlternate, aW as EnrichCell, aX as EnrichDeclared, aY as EnrichDueRow, aZ as EnrichRun, a_ as EnrichSource, a$ as Enrichment, b0 as EnrichmentSummary, b1 as EntityBackLinkItem, b2 as EntityBackLinks, b3 as EntityFieldRights, b4 as EntityFieldValue, b5 as EntityFieldsAcross, b6 as EntityRecordMatch, b7 as EntityRecordRead, b8 as EntityRecordsFound, b9 as EntityRowWritten, ba as EntityTableFacts, bb as ExternalPrincipalCard, F as FieldDrift, bc as FieldDriftAspect, bd as FieldHistoryEntry, be as FieldRetyped, bf as FormArchiveAnswer, bg as FormulaParse, bh as FormulaPreview, bi as GridLayout, bj as GridLayoutMode, bk as GridRowHeight, bl as HistoryActor, bm as HistoryActorKind, bn as HistoryChange, bo as Home, bp as ImportBatchResult, bq as ImportColumnPlan, br as ImportColumnsDeclared, bs as ImportFinished, bt as ImportOpened, bu as ImportOutcome, bv as ImportPlan, bw as ImportPolicy, bx as ImportProposal, by as ImportReport, bz as ImportRun, bA as InboundAddress, bB as InboundDeclared, bC as InboxCounts, bD as InboxStateChange, bE as IoExportPage, bF as MigrationEntry, bG as MigrationUndone, bH as NewEntityFieldDeclaration, bI as OutsideShareAnswer, bJ as PIPELINE_RULE_KINDS, bK as ParentExtracted, bL as Pipeline, bM as PipelineColumn, bN as PipelineDeclared, bO as PipelineGate, bP as PipelineGatePreview, bQ as PipelineMissingField, bR as PipelineMoveMany, bS as PipelineMoveManyItem, bT as PipelineMoveManyResult, bU as PipelineMoveResult, bV as PipelineMoveVerdict, bW as PipelineRule, bX as PipelineRuleKind, bY as PipelineSpec, bZ as PipelineStage, b_ as PipelineVerdict, b$ as PromotedPredicate, c0 as PublishBinding, c1 as PublishBindingKind, c2 as QueryPlan, c3 as ROW_LABEL_FORMULA_MAX_LENGTH, c4 as ROW_WEB_NOT_READY, c5 as RecordChangeAction, c6 as RecordComment, c7 as RecordEvent, c8 as RecordHeader, c9 as RecordHistoryEntry, ca as RecordQuery, cb as RecordRowControls, cc as RecordScopeComment, cd as RecordScopeContext, ce as RecordScopeField, cf as RecordScopeHistoryEntry, cg as RecordScopeRelation, ch as RecordScopeWithheld, ci as RecordSplit, R as RecordsClient, cj as RecordsMerged, ck as RegisteredTable, cl as ResolvedPublishBinding, cm as ResolvedPublishBindingKind, cn as RestorePreview, co as RestoreResult, cp as RetypeBehaviour, cq as RetypePreview, cr as RowAction, cs as RowActionStep, ct as RowDefaultsApplied, cu as SHOWN_TO_LABEL, cv as SHOWN_TO_VALUES, cw as SHOWN_TO_WHO_MAY_CHANGE, cx as STAGE_RULE_ENFORCEMENT, cy as STAGE_RULE_ON_FAIL, cz as ShownTo, cA as StagePending, cB as StagePendingOnBoard, cC as StageRuleEnforcement, cD as StageRuleOnFail, cE as StageRuleWarning, cF as SyncAutoRefresh, cG as Table, T as TableArchiveProgress, cH as TableCapacity, cI as TableCopyInProgress, cJ as TableCopySpec, cK as TableDecorations, cL as TableDuplicateProgress, cM as TableDuplicated, cN as TableFact, cO as TableHome, cP as TableHomeDestination, cQ as TableLevel, cR as TableLevelApproval, cS as TableLevelFacts, cT as TableLevelSet, cU as TableListEntry, cV as TableLiveLocation, cW as TableMoved, cX as TablePlacement, cY as TablePlacementFact, cZ as TableReaderRule, c_ as TableRestoreProgress, c$ as TableRowCount, d0 as TableRowDefaults, d1 as TableRowDefaultsPatch, d2 as TableRowLabel, d3 as TableSyncAnswer, d4 as TableSyncResult, d5 as TableSyncSettings, d6 as TableSyncSource, d7 as TableSyncSourceDocument, d8 as TableSyncSpec, d9 as TableWebhook, da as TableWebhookDeclared, db as TypedChoiceDecision, dc as ViewLayout, dd as ViewOrderSet, de as WorkApprovalDecision, df as WorkApprovalFiled, dg as WorkApprovalState, dh as WorkApprover, di as WorkAssignment, dj as WorkAssignmentField, dk as WorkChange, dl as WorkDecideMany, dm as WorkDecideManyItem, dn as WorkDecideManyResult, dp as WorkDecideVerdict, dq as WorkDueState, dr as WorkGraph, ds as WorkInboxItem, dt as WorkInboxKind, du as WorkInboxView, dv as WorkInstantiation, dw as WorkListFlavour, dx as WorkListItem, dy as WorkOrigin, dz as WorkRecordState, dA as WorkSlotHold, dB as WorkState, dC as WorkTemplateNode, dD as WorkTemplateRelation, dE as WorkTurn, dF as actionRefusals, dG as archivedByLine, dH as archivedWhen, dI as asChoiceNudge, dJ as asWriteConflict, dK as automationWebhookUrl, dL as choiceSlug, dM as choiceValuesOf, dN as choicesOf, dO as clearsRowLabel, dP as createRecordsClient, dQ as decideTypedChoice, dR as declareDrillDefinition, dS as drillAnswerOf, dT as drillFindingKnob, dU as emptyArchiveLine, dV as exportPageXlsx, dW as holdsARetiredChoice, dX as intersectIds, dY as isArchiveLane, dZ as isFoundation, d_ as isShownTo, d$ as isTheChosen, e0 as keptGroups, e1 as keptOutOfSight, e2 as keptTableHref, e3 as levelHasShownTo, e4 as looksLikeAnId, e5 as mayDrag, e6 as moveConsequence, e7 as moveInOrder, e8 as offeredAsContext, e9 as optionKey, ea as optionLabel, eb as parseFieldDrift, ec as parseTableCopiesInProgress, ed as parseTableDuplicateProgress, ee as parseTableDuplicated, ef as parseTableHome, eg as parseTableMoved, eh as planQuery, ei as previewRetype, ej as previewRuleChange, ek as recordChangeTrigger, el as recordSourceKey, em as recordSourceTable, en as recordsUseSentence, eo as rehomeSentence, ep as removedChoicesInUse, eq as ruleThatRefuses, er as rulesWithTopStar, es as sameDocument, et as scopeChip, eu as sheetSyncSpec, ev as valueConverts, ew as withRowCounts, ex as withTableFacts, ey as withTablePlacement } from '../client-jKf1Z-kp.cjs';
|
|
4
4
|
import { d as RecordsDataSource } from '../ports-alv3bgKY.cjs';
|
|
5
5
|
export { M as MyLevel, O as OpLedger, P as PERMISSION_LEVELS, g as PermissionLevel, h as RecordsActor, e as RecordsChangeSink, a as RecordsConfig, 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-alv3bgKY.cjs';
|
|
6
6
|
import { F as Field } from '../field-B8loYt-A.cjs';
|
|
7
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, m as CoercibleField, n as FIELD_KINDS, 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-B8loYt-A.cjs';
|
|
8
|
+
export { A as A_PERSONS_REFUSAL, h as PickListDocument, j as PickListItem, k as PickListItemInput, i as isAPersonsRefusal } from '../pickListDoors-C-_eAEGL.cjs';
|
|
8
9
|
export { BaseCopied, BaseCopyProgress, BaseCopyResult, BasePort, BaseSnapshotRecord, BaseTable, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChooseAlternateArgs, MergeField, MergeFieldProvenance, MergeFieldResolution, MergeFieldTransform, MissingBehavior, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, REFUSALS_WORTH_REPEATING, ResolutionTriple, TypedDate, TypedMatchScore, TypedNumber, TypedTime, alternatePatch, autonumberJoin, autonumberPrefixOf, autonumberSearchOf, autonumberWords, baseCopyName, chooseAlternate, duplicateBase, filterWithAutonumber, idsOfCopies, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, pointAtCopies, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, restoreSnapshot, restoredBaseName, snapshotBase, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.cjs';
|
|
9
10
|
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-49jO7lN-.cjs';
|
|
10
11
|
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-L_mN8l9P.cjs';
|
|
11
12
|
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, I as InterfaceRead, v as InterfaceRows, w as InterfaceRowsField, M as MySubscription, Q as QuietHours, R as RecordFilter, x as RowTemplateRow, y as SavedViewColorBy, z as SavedViewDefinition, B as SavedViewLayout, d as SavedViewRow, C as SavedViewSpecIn, E as StoreFilter, F as StuckRow, G as Subscription, H as SubscriptionBlock, S as SubscriptionCadence, J as SubscriptionSpec, K as callersTimeZone, L as hasQuietHours, N as isRuleFilter, O as liftWithheld, P as measureKey, T as stableFilterKey, U as withCallersClock } from '../subscription-CuaGi3lC.cjs';
|
|
12
13
|
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-BjjjXyqn.cjs';
|
|
13
|
-
export {
|
|
14
|
+
export { O as ObjectKind, a as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from '../objectOrganization-B5YFGVUB.cjs';
|
|
14
15
|
import { TableKindFacts } from '../table-kind/index.cjs';
|
|
15
16
|
export { TABLE_KIND_PREFIX, TableRenderSchema, TableSchemaMode, fieldKindOf, isTableKind, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema } from '../table-kind/index.cjs';
|
|
16
|
-
export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-
|
|
17
|
+
export { D as DEFAULT_FIELDS, a as DeclareResult, E as EnsureResult, N as NewFieldSpec, b as NewTableSpec, c as addFields, d as declareTable, e as ensureTable, f as fieldDeclarationFor, t as tokenFor } from '../declareTable-800bwUn3.cjs';
|
|
18
|
+
export { o as BulkCellOp, p as BulkDeleteOp, q as BulkInsertOp, r as BulkMergeOp, t as BulkOp, B as BulkOpError, a as BulkOpResult, u as BulkUpdateOp, v as BulkWriteResponse, D as DatasetField, w as DatasetRow, F as FieldDataType, J as Json, S as STORE_SCHEMA, b as ServiceErr, c as ServiceOk, d as ServiceResult, e as StoreCaller, f as StoreDoorAnswer, g as StoreDoorError, h as StoreDoors, i as SupabaseLike, j as asRecordsDataSource, k as describeBulkFailures, x as inferDataType, l as isBulkOpError, m as isServiceFailure, y as sanitizeFieldName, s as storeDoors, n as supabaseDataSource, z as validateFieldName } from '../table-logic-CTh6lwaq.cjs';
|
|
17
19
|
export { MAPPED_SQLSTATES, archivedOrganizationId, mapPgError, mapThrownError, staleWriteDetail } from '../results/index.cjs';
|
|
18
|
-
import '../doors-
|
|
20
|
+
import '../doors-BgjRUdxw.cjs';
|
|
19
21
|
|
|
20
22
|
declare function doorExists(name: string): boolean;
|
|
21
23
|
/**
|
|
@@ -547,143 +549,6 @@ declare function primeDoorAnswer(key: string, data: unknown, at: number): void;
|
|
|
547
549
|
*/
|
|
548
550
|
declare function dropPrimedDoorAnswers(doors?: readonly string[]): void;
|
|
549
551
|
|
|
550
|
-
/**
|
|
551
|
-
* The structural shape of the supabase client this adapter needs. Deliberately
|
|
552
|
-
* NOT `SupabaseClient<Database>`: a generated `Database` type makes
|
|
553
|
-
* `schema().from().select()` enormous, and a host app that passed its typed
|
|
554
|
-
* client in got `TS2589: Type instantiation is excessively deep and possibly
|
|
555
|
-
* infinite` in its own build (matrx-frontend, 2026-09-18, on all three campaign
|
|
556
|
-
* routes at once). The cast lives here, once, where it is explained.
|
|
557
|
-
*/
|
|
558
|
-
interface SupabaseLike {
|
|
559
|
-
schema(name: string): {
|
|
560
|
-
rpc(fn: string, args?: Record<string, unknown>): PromiseLike<{
|
|
561
|
-
data: unknown;
|
|
562
|
-
error: PgError | null;
|
|
563
|
-
}>;
|
|
564
|
-
from(table: string): unknown;
|
|
565
|
-
};
|
|
566
|
-
}
|
|
567
|
-
/**
|
|
568
|
-
* Bind a supabase-js client (or anything with the same `schema(name).rpc()`
|
|
569
|
-
* shape) as this package's data seam.
|
|
570
|
-
*
|
|
571
|
-
* Two things never happen here, both of them loudly:
|
|
572
|
-
*
|
|
573
|
-
* - A call with NO schema is never sent. It is refused by name, because
|
|
574
|
-
* sending it would reach `public` and get the store's PGRST202 several
|
|
575
|
-
* layers away from the mistake.
|
|
576
|
-
* - A client with no `.schema()` is never used. supabase-js has had it since
|
|
577
|
-
* v2.0; a host that binds something else is told exactly what is missing
|
|
578
|
-
* instead of throwing `undefined is not a function` inside a render.
|
|
579
|
-
*/
|
|
580
|
-
declare function supabaseDataSource(client: object): RecordsDataSource;
|
|
581
|
-
/**
|
|
582
|
-
* WHAT `createRecordsClient` DOES WITH WHATEVER IT IS HANDED (lane PLATFORM-APP-DATA, 2026-10-02).
|
|
583
|
-
*
|
|
584
|
-
* The README has always shown `dataSource: supabase` — a PLAIN supabase-js client — and that
|
|
585
|
-
* exact line answered every call "Could not find the function public.table_kernel_id" (PGRST202),
|
|
586
|
-
* because supabase-js's own `rpc()` drops the `{ schema }` option in silence (see the header).
|
|
587
|
-
* Measured on the clone as admin@admin.com, 2026-10-02. The example is now true:
|
|
588
|
-
*
|
|
589
|
-
* - Already bound by `supabaseDataSource` → used as it is.
|
|
590
|
-
* - A supabase-js client (it has `schema()`, `from()` and an `auth` client) → bound here, once.
|
|
591
|
-
* - Nothing callable at all (no `rpc()`) → bound here too, so every call is REFUSED by name with
|
|
592
|
-
* the remedy (`data_source_unbound`) instead of throwing `rpc is not a function` in a render.
|
|
593
|
-
* - Anything else that has its own `rpc(fn, args, { schema })` — a host's adapter, a test
|
|
594
|
-
* double — is the host's own data seam and is used as it is: it promised to honour `schema`.
|
|
595
|
-
*/
|
|
596
|
-
declare function asRecordsDataSource(source: unknown): RecordsDataSource;
|
|
597
|
-
|
|
598
|
-
/** The schema every door of the record store lives in. The only place an app-facing string says it. */
|
|
599
|
-
declare const STORE_SCHEMA = "custom";
|
|
600
|
-
/** What a door refused with, as PostgREST gave it. */
|
|
601
|
-
interface StoreDoorError {
|
|
602
|
-
message: string;
|
|
603
|
-
code?: string | null;
|
|
604
|
-
hint?: string | null;
|
|
605
|
-
details?: string | null;
|
|
606
|
-
}
|
|
607
|
-
interface StoreDoorAnswer<T = unknown> {
|
|
608
|
-
data: T | null;
|
|
609
|
-
error: StoreDoorError | null;
|
|
610
|
-
}
|
|
611
|
-
/** The bare caller: the same `rpc(fn, args)` shape the hand-written layers declared. */
|
|
612
|
-
interface StoreCaller {
|
|
613
|
-
rpc(fn: string, args?: Record<string, unknown>): PromiseLike<{
|
|
614
|
-
data: unknown;
|
|
615
|
-
error: StoreDoorError | null;
|
|
616
|
-
}>;
|
|
617
|
-
}
|
|
618
|
-
/** The named doors an app calls most. Every member is a thin call over `rpc`; nothing is added to the answer. */
|
|
619
|
-
interface StoreDoors extends StoreCaller {
|
|
620
|
-
/** `custom.where_id_opens(p_id)` — which organization an object lives in. `data` is null when it is not given to the caller; the error is plain JSON (it streams to a browser as is). */
|
|
621
|
-
whereIdOpens(id: string): PromiseLike<{
|
|
622
|
-
data: unknown;
|
|
623
|
-
error: {
|
|
624
|
-
code: string | null;
|
|
625
|
-
message: string;
|
|
626
|
-
} | null;
|
|
627
|
-
}>;
|
|
628
|
-
/** `custom.table_kernel_id()` — the id of the store's Table kernel (a constant of the store). */
|
|
629
|
-
tableKernelId(): PromiseLike<StoreDoorAnswer<string>>;
|
|
630
|
-
/** `custom.read_records_by_ids` — the records of `ids` the caller may read in `tableId`, in `organizationId`. */
|
|
631
|
-
readRecordsByIds(organizationId: string, tableId: string, ids: readonly string[]): PromiseLike<StoreDoorAnswer>;
|
|
632
|
-
/** `custom.read_records_page` — one page; `args` are the door's own named arguments. */
|
|
633
|
-
readRecordsPage(args: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
|
|
634
|
-
/** `custom.record_table` — the table a record lives in. */
|
|
635
|
-
recordTable(organizationId: string, recordId: string): PromiseLike<StoreDoorAnswer<string>>;
|
|
636
|
-
/** `custom.applicable_fields` — the fields of a table. */
|
|
637
|
-
applicableFields(organizationId: string, tableId: string): PromiseLike<StoreDoorAnswer>;
|
|
638
|
-
/** `custom.field_declare` — declare one field on a table. */
|
|
639
|
-
fieldDeclare(organizationId: string, tableId: string, spec: Record<string, unknown>): PromiseLike<StoreDoorAnswer<string>>;
|
|
640
|
-
/** `custom.record_update` — patch a record's values. */
|
|
641
|
-
recordUpdate(organizationId: string, recordId: string, patch: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
|
|
642
|
-
/** `custom.entity_reference_words` — the labels of `{token,id}` refs, withheld when the caller may not open them. */
|
|
643
|
-
entityReferenceWords(organizationId: string, refs: ReadonlyArray<{
|
|
644
|
-
token: string;
|
|
645
|
-
id: string;
|
|
646
|
-
}>): PromiseLike<StoreDoorAnswer>;
|
|
647
|
-
/** `custom.templates` — the catalogue (one page of cards for `filter`). */
|
|
648
|
-
templates(filter: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
|
|
649
|
-
/** `custom.template_from_tables` — draft a template spec from existing tables. */
|
|
650
|
-
templateFromTables(args: {
|
|
651
|
-
organizationId: string;
|
|
652
|
-
tableIds: readonly string[];
|
|
653
|
-
includeRows: boolean;
|
|
654
|
-
rowsPerTable: number;
|
|
655
|
-
}): PromiseLike<StoreDoorAnswer>;
|
|
656
|
-
/** `custom.template_declare` — declare a template (`scope` is `"org"` for an organization's own). */
|
|
657
|
-
templateDeclare(scope: string, spec: Record<string, unknown>): PromiseLike<StoreDoorAnswer>;
|
|
658
|
-
/** `custom.template_keep` — keep a one-off template in the organization's own. */
|
|
659
|
-
templateKeep(templateId: string): PromiseLike<StoreDoorAnswer>;
|
|
660
|
-
/** `custom.template_archive` — archive (or, with `restore`, bring back) an organization's own template. */
|
|
661
|
-
templateArchive(templateId: string, restore?: boolean): PromiseLike<StoreDoorAnswer>;
|
|
662
|
-
/** `custom.template_install_claim` — the host step's lease on one install step. */
|
|
663
|
-
templateInstallClaim(args: {
|
|
664
|
-
organizationId: string;
|
|
665
|
-
installId: string;
|
|
666
|
-
kind: string;
|
|
667
|
-
label: string;
|
|
668
|
-
sourceId?: string | null;
|
|
669
|
-
leaseSeconds: number;
|
|
670
|
-
}): PromiseLike<StoreDoorAnswer>;
|
|
671
|
-
/** `custom.template_install_note` — record the thing a host step made. */
|
|
672
|
-
templateInstallNote(args: {
|
|
673
|
-
organizationId: string;
|
|
674
|
-
installId: string;
|
|
675
|
-
kind: string;
|
|
676
|
-
id: string;
|
|
677
|
-
label: string;
|
|
678
|
-
}): PromiseLike<StoreDoorAnswer>;
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* Bind a supabase-js client (browser, server session, anon, or service-role) to the store's
|
|
682
|
-
* doors. A client with no `schema()` is refused by name on every call (`data_source_unbound`), never
|
|
683
|
-
* a thrown `undefined is not a function` in a render.
|
|
684
|
-
*/
|
|
685
|
-
declare function storeDoors(client: unknown): StoreDoors;
|
|
686
|
-
|
|
687
552
|
/** The published defaults, which are also what the store falls back to when it cannot read a knob. */
|
|
688
553
|
declare const DEFAULT_VALUE_MAX_BYTES = 100000;
|
|
689
554
|
declare const DEFAULT_DOCUMENT_MAX_BYTES = 1048576;
|
|
@@ -849,191 +714,4 @@ declare function seededDataSource(index: Map<string, unknown>): {
|
|
|
849
714
|
missed: () => boolean;
|
|
850
715
|
};
|
|
851
716
|
|
|
852
|
-
|
|
853
|
-
type Json = unknown;
|
|
854
|
-
/** `public.field_data_type`. */
|
|
855
|
-
type FieldDataType = "string" | "number" | "integer" | "boolean" | "date" | "datetime" | "json" | "array";
|
|
856
|
-
/** A column as the grid draws it. */
|
|
857
|
-
type DatasetField = {
|
|
858
|
-
id: string;
|
|
859
|
-
table_id: string;
|
|
860
|
-
field_name: string;
|
|
861
|
-
display_name: string;
|
|
862
|
-
data_type: FieldDataType;
|
|
863
|
-
field_order: number;
|
|
864
|
-
is_required: boolean;
|
|
865
|
-
is_public: boolean;
|
|
866
|
-
default_value: Json | null;
|
|
867
|
-
validation_rules: Json | null;
|
|
868
|
-
metadata: Json;
|
|
869
|
-
custom_fields: Json;
|
|
870
|
-
organization_id: string;
|
|
871
|
-
user_id: string;
|
|
872
|
-
created_at: string;
|
|
873
|
-
created_by: string | null;
|
|
874
|
-
updated_at: string;
|
|
875
|
-
updated_by: string | null;
|
|
876
|
-
deleted_at: string | null;
|
|
877
|
-
version: number;
|
|
878
|
-
};
|
|
879
|
-
/** A row as the grid holds it. */
|
|
880
|
-
type DatasetRow = {
|
|
881
|
-
id: string;
|
|
882
|
-
table_id: string;
|
|
883
|
-
data: Json;
|
|
884
|
-
metadata: Json;
|
|
885
|
-
custom_fields: Json;
|
|
886
|
-
is_public: boolean;
|
|
887
|
-
organization_id: string;
|
|
888
|
-
user_id: string;
|
|
889
|
-
source_row_ref: string | null;
|
|
890
|
-
created_at: string;
|
|
891
|
-
created_by: string | null;
|
|
892
|
-
updated_at: string;
|
|
893
|
-
updated_by: string | null;
|
|
894
|
-
deleted_at: string | null;
|
|
895
|
-
version: number;
|
|
896
|
-
};
|
|
897
|
-
type BulkInsertOp = {
|
|
898
|
-
op: "insert";
|
|
899
|
-
data: Record<string, unknown>;
|
|
900
|
-
};
|
|
901
|
-
type BulkUpdateOp = {
|
|
902
|
-
op: "update";
|
|
903
|
-
row_id: string;
|
|
904
|
-
/** REPLACES the row's data wholesale. Keys not in `data` are dropped. */
|
|
905
|
-
data: Record<string, unknown>;
|
|
906
|
-
/**
|
|
907
|
-
* The version the person saw this row at, when the caller holds it (an undo carries the version its
|
|
908
|
-
* own write produced). Absent = the seam's ledger of the rows it drew (`lib/records/record-versions.ts`).
|
|
909
|
-
*/
|
|
910
|
-
expected_version?: number | null;
|
|
911
|
-
};
|
|
912
|
-
type BulkMergeOp = {
|
|
913
|
-
op: "merge";
|
|
914
|
-
row_id: string;
|
|
915
|
-
/**
|
|
916
|
-
* Partial update — `data = existing_data || patch`. Keys in `data` overwrite
|
|
917
|
-
* the row's matching keys; keys absent from `data` are preserved. Use this
|
|
918
|
-
* when sending only changed fields.
|
|
919
|
-
*/
|
|
920
|
-
data: Record<string, unknown>;
|
|
921
|
-
/**
|
|
922
|
-
* The version the person saw this row at, when the caller holds it (an undo carries the version its
|
|
923
|
-
* own write produced). Absent = the seam's ledger of the rows it drew (`lib/records/record-versions.ts`).
|
|
924
|
-
*/
|
|
925
|
-
expected_version?: number | null;
|
|
926
|
-
};
|
|
927
|
-
type BulkCellOp = {
|
|
928
|
-
op: "cell";
|
|
929
|
-
row_id: string;
|
|
930
|
-
field_name: string;
|
|
931
|
-
value: unknown;
|
|
932
|
-
/**
|
|
933
|
-
* The version the person saw this row at, when the caller holds it (an undo carries the version its
|
|
934
|
-
* own write produced). Absent = the seam's ledger of the rows it drew (`lib/records/record-versions.ts`).
|
|
935
|
-
*/
|
|
936
|
-
expected_version?: number | null;
|
|
937
|
-
};
|
|
938
|
-
type BulkDeleteOp = {
|
|
939
|
-
op: "delete";
|
|
940
|
-
row_id: string;
|
|
941
|
-
};
|
|
942
|
-
type BulkOp = BulkInsertOp | BulkUpdateOp | BulkMergeOp | BulkCellOp | BulkDeleteOp;
|
|
943
|
-
/**
|
|
944
|
-
* Per-op result envelope returned inside `bulkWrite`'s `results[]`.
|
|
945
|
-
*
|
|
946
|
-
* Note: insert / update / cell / delete that succeed return the full row.
|
|
947
|
-
* Update / cell / delete against a row that is gone return `row_not_found`;
|
|
948
|
-
* update / cell / merge against a row that is in Trash return `row_in_trash`
|
|
949
|
-
* (with the server's own sentence in `message`). Both are soft failures — the
|
|
950
|
-
* rest of the batch continues. Inserts that fail RAISE and abort the batch.
|
|
951
|
-
*/
|
|
952
|
-
type BulkOpError = {
|
|
953
|
-
error: "row_not_found" | "row_in_trash";
|
|
954
|
-
row_id: string;
|
|
955
|
-
message?: string;
|
|
956
|
-
};
|
|
957
|
-
type BulkOpResult = DatasetRow | BulkOpError;
|
|
958
|
-
/**
|
|
959
|
-
* Narrow a bulk-write result slot to the error variant.
|
|
960
|
-
* Successful results carry the full DatasetRow shape (no discriminator key
|
|
961
|
-
* on the success side, so consumers narrow via this guard).
|
|
962
|
-
*/
|
|
963
|
-
declare function isBulkOpError(r: BulkOpResult): r is BulkOpError;
|
|
964
|
-
/**
|
|
965
|
-
* One plain sentence for the rows a batch could not change — the ONE wording
|
|
966
|
-
* every bulk surface uses. A row in Trash is named as such (it can be restored),
|
|
967
|
-
* never reported as "could not be found".
|
|
968
|
-
*/
|
|
969
|
-
declare function describeBulkFailures(failed: BulkOpError[]): string;
|
|
970
|
-
type BulkWriteResponse = {
|
|
971
|
-
table_id: string;
|
|
972
|
-
count: number;
|
|
973
|
-
results: BulkOpResult[];
|
|
974
|
-
};
|
|
975
|
-
type ServiceOk<T> = {
|
|
976
|
-
success: true;
|
|
977
|
-
data: T;
|
|
978
|
-
};
|
|
979
|
-
/**
|
|
980
|
-
* THE STORE'S OWN REFUSAL, kept whole (lane FIX-15, 2026-09-23).
|
|
981
|
-
*
|
|
982
|
-
* `error` is `PostgrestError.message` and nothing else, so a refusal written as
|
|
983
|
-
* three parts — what happened, what the column is, what to do instead — reached
|
|
984
|
-
* the screen as one third of itself, and the other two thirds (DETAIL and HINT)
|
|
985
|
-
* were thrown away in this envelope. On production a name typed into a relation
|
|
986
|
-
* column was refused by the store with a perfectly good sentence
|
|
987
|
-
* and the person saw nothing usable.
|
|
988
|
-
*
|
|
989
|
-
* `refusal` carries the whole thing in the shape every Matrx screen already
|
|
990
|
-
* knows how to draw (`RefusalNotice` / `RefusalLine` from `@ai-matrx/records-ui`,
|
|
991
|
-
* which run it through `plainWords` so no machine identity is ever printed at a
|
|
992
|
-
* person). `error` stays exactly what it was for the callers that print a line.
|
|
993
|
-
*/
|
|
994
|
-
type ServiceErr = {
|
|
995
|
-
success: false;
|
|
996
|
-
error: string;
|
|
997
|
-
refusal?: RecordsError;
|
|
998
|
-
};
|
|
999
|
-
type ServiceResult<T> = ServiceOk<T> | ServiceErr;
|
|
1000
|
-
/**
|
|
1001
|
-
* Narrow a ServiceResult to the failure variant. Use instead of `!result.success`
|
|
1002
|
-
* inside generic functions where TS's narrow through `Promise<ServiceResult<T>>`
|
|
1003
|
-
* sometimes fails to discriminate the union members reliably.
|
|
1004
|
-
*/
|
|
1005
|
-
declare function isServiceFailure<T>(r: ServiceResult<T>): r is ServiceErr;
|
|
1006
|
-
/**
|
|
1007
|
-
* Infer a table column's data type for a single value. Used by both the
|
|
1008
|
-
* CSV/Excel import path and the JSON-to-table path. The returned strings
|
|
1009
|
-
* align with `VALID_DATA_TYPES` in `table-utils.ts`.
|
|
1010
|
-
*/
|
|
1011
|
-
declare function inferDataType(value: unknown): string;
|
|
1012
|
-
/**
|
|
1013
|
-
* Sanitize a display name into a valid field name
|
|
1014
|
-
* Converts to lowercase, replaces special chars with underscores, follows snake_case
|
|
1015
|
-
*
|
|
1016
|
-
* @param displayName - The user-entered display name
|
|
1017
|
-
* @returns Sanitized field name in snake_case format
|
|
1018
|
-
*
|
|
1019
|
-
* @example
|
|
1020
|
-
* sanitizeFieldName("Total Revenue") // returns "total_revenue"
|
|
1021
|
-
* sanitizeFieldName("Price ($)") // returns "price"
|
|
1022
|
-
* sanitizeFieldName("2024 Sales") // returns "_2024_sales"
|
|
1023
|
-
*/
|
|
1024
|
-
declare function sanitizeFieldName(displayName: string): string;
|
|
1025
|
-
/**
|
|
1026
|
-
* Validate that a field name follows the required format
|
|
1027
|
-
* Must start with lowercase letter, contain only lowercase letters, numbers, and underscores
|
|
1028
|
-
*
|
|
1029
|
-
* @param fieldName - The field name to validate
|
|
1030
|
-
* @returns true if valid, false otherwise
|
|
1031
|
-
*
|
|
1032
|
-
* @example
|
|
1033
|
-
* validateFieldName("total_revenue") // returns true
|
|
1034
|
-
* validateFieldName("Total Revenue") // returns false
|
|
1035
|
-
* validateFieldName("123_sales") // returns false
|
|
1036
|
-
*/
|
|
1037
|
-
declare function validateFieldName(fieldName: string): boolean;
|
|
1038
|
-
|
|
1039
|
-
export { type BlockOutcome, type BulkCellOp, type BulkDeleteOp, type BulkInsertOp, type BulkMergeOp, type BulkOp, type BulkOpError, type BulkOpResult, type BulkUpdateOp, type BulkWriteResponse, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DatasetField, type DatasetRow, type DoorKey, type ExportRow, Field, type FieldDataType, type Json, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PgError, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, STORE_SCHEMA, type ServiceErr, type ServiceOk, type ServiceResult, type StoreCaller, type StoreDoorAnswer, type StoreDoorError, type StoreDoors, type SupabaseLike, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, asRecordsDataSource, blockLandedInStore, cellText, describeBulkFailures, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportMarkdown, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, inferDataType, isBulkOpError, isRecordRemoved, isServiceFailure, landingOutcomesFor, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, sanitizeFieldName, seedIndex, seedKey, seededDataSource, storeDoors, supabaseDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, validateFieldName, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
|
|
717
|
+
export { type BlockOutcome, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_VALUE_MAX_BYTES, DOORS, type DoorKey, type ExportRow, Field, LANDING_SOURCE_TYPE, LANDING_TARGET_TYPES, type Landing, type LandingBlock, type LandingOutcomes, type LandingState, type LandingStore, type MirrorLimits, OUTPUT_KEPT_KEY, PRIMED_DOOR_TTL_MS, PRODUCED_BY_LABEL, type ParsedImport, PredictedRefusal, type PrimedBundleAnswer, type ReadFileText, ReadValue, RecordDocument, RecordsDataSource, RecordsError, RecordsResult, type RecordsSeed, type RecordsSeedAnswer, TableKindFacts, Uuid, WHOLE_VALUE_SOURCE_KIND, type WholeValuePointer, announceRecordChanged, announceTableStructureChanged, blockLandedInStore, cellText, doorAbsent, doorCensus, doorExists, doorReady, dropPrimedDoorAnswers, exportCellText, exportCsv, exportMarkdown, exportXlsx, forgetPrimedTablePageBundles, importCsv, importXlsx, isRecordRemoved, landingOutcomesFor, markRecordRemoved, markRecordRestored, onRecordChanged, onTableStructureChanged, outcomeForBlock, outputIsKept, parseCsv, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, primeDoorAnswer, primeRecordPageBundle, primeTablePageBundle, recordingDataSource, seedIndex, seedKey, seededDataSource, tableKindFacts, takePrimedTablePageBundle, toAoa, valuesAreUnconfirmed, wholeValueNotRead, wholeValueOf, wholeValueOfRead, wholeValueSize, withWholeValues };
|