@ai-matrx/records 0.99.14 → 0.99.16
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 +11 -0
- package/dist/{client-BhrN1XK2.d.cts → client-D8vzRl-L.d.cts} +2 -83
- package/dist/{client-BTUMagai.d.ts → client-DuoWeGcM.d.ts} +2 -83
- package/dist/core/index.cjs +6 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -3
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.js +6 -6
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +6 -6
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +2 -1
- package/dist/data/index.d.ts +2 -1
- package/dist/data/index.js +6 -6
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-D8Mq6wNq.d.ts → declareTable-DO8U62Pf.d.ts} +1 -1
- package/dist/{declareTable-BU3IURyS.d.cts → declareTable-T0LWvfIO.d.cts} +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/questions/index.d.cts +2 -1
- package/dist/questions/index.d.ts +2 -1
- package/dist/react/index.cjs +20 -20
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +18 -18
- package/dist/react/index.js.map +1 -1
- package/dist/scopes/index.cjs +2 -2
- package/dist/scopes/index.cjs.map +1 -1
- package/dist/scopes/index.js +2 -2
- package/dist/scopes/index.js.map +1 -1
- package/dist/setup/index.cjs +8 -8
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +2 -1
- package/dist/setup/index.d.ts +2 -1
- package/dist/setup/index.js +8 -8
- package/dist/setup/index.js.map +1 -1
- package/dist/table-kind/index.cjs +421 -0
- package/dist/table-kind/index.cjs.map +1 -0
- package/dist/table-kind/index.d.cts +83 -0
- package/dist/table-kind/index.d.ts +83 -0
- package/dist/table-kind/index.js +400 -0
- package/dist/table-kind/index.js.map +1 -0
- package/dist/typed-table/index.cjs +3 -3
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +3 -2
- package/dist/typed-table/index.d.ts +3 -2
- package/dist/typed-table/index.js +3 -3
- package/dist/typed-table/index.js.map +1 -1
- package/dist/views/index.d.cts +2 -1
- package/dist/views/index.d.ts +2 -1
- package/package.json +12 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FieldDrift, R as RecordsClient } from './client-
|
|
1
|
+
import { F as FieldDrift, R as RecordsClient } from './client-DuoWeGcM.js';
|
|
2
2
|
import { a as FieldTypeWord, N as NewFieldDeclaration } from './field-0bRLy9ZN.js';
|
|
3
3
|
import { U as Uuid, a as RecordsError } from './record-CVPaFMLQ.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FieldDrift, R as RecordsClient } from './client-
|
|
1
|
+
import { F as FieldDrift, R as RecordsClient } from './client-D8vzRl-L.cjs';
|
|
2
2
|
import { a as FieldTypeWord, N as NewFieldDeclaration } from './field-Cw0kIDaG.cjs';
|
|
3
3
|
import { U as Uuid, a as RecordsError } from './record-CVPaFMLQ.cjs';
|
|
4
4
|
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { U as Uuid, $ as MergeFieldSource, _ as MergeFieldSemanticType, Z as MergeFieldModifier, a2 as OverridePolicy, B as Delivery, h as Timestamp, M as Freshness, n as RecordDocument, R as RecordsResult } from './record-CVPaFMLQ.cjs';
|
|
2
2
|
export { t as ABSENCE_REASONS, u as ACTOR_VOCABULARY, v as AbsenceReason, A as Actor, w as COMPUTE_ON, x as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, y as DECLARABLE_FIELD_KINDS, z as DELIVERIES, D as DeclarableFieldKind, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, H as HiddenFieldNotice, N as KERNEL_TABLES, Q as KernelTableName, V as KeysetRow, W as MERGE_FIELD_MODIFIERS, X as MERGE_FIELD_SEMANTIC_TYPES, Y as MERGE_FIELD_SOURCES, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, P as PgError, r as PredictedRefusal, a6 as ProvenancePointer, a7 as RELATION_BINDINGS, a8 as RELATION_CARDINALITIES, a9 as RELATION_FLAVORS, aa as RETIRED_ACTOR_WORDS, ab as RULE_NODE_KINDS, ac as RULE_USES, l as ReadRow, s as ReadValue, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, a as RecordsError, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, ak as RetiredActorWord, i as RuleNodeKind, j as RuleUse, al as STORAGE_MODES, am as STORE_DOORS, an as STORE_KNOBS, ao as STORE_REFUSAL_CODES, q as StaleWriteDetail, S as StorageMode, ap as StoreDoorName, aq as StoreRefusalCode, ar as StoredRecord, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, b as TableDisplay, av as TableOrigin, T as TableType, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from './record-CVPaFMLQ.cjs';
|
|
3
|
-
import {
|
|
4
|
-
export { A as ARCHIVE_LANES,
|
|
3
|
+
import { J as CaptureFileRef, K as CaptureOutcome, R as RecordsClient } from './client-D8vzRl-L.cjs';
|
|
4
|
+
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, d as ActionRefusal, e as ActionRunResult, f as AdminTable, g as AnonTokenBinding, h as ArchiveLane, i as ArchivedChecklistTemplate, j as ArchivedDoorRow, k as ArchivedForm, l as ArchivedRow, n as AutomationAction, o as AutomationDeclared, p as AutomationFilter, q as AutomationFlipped, r as AutomationItem, s as AutomationLastRun, t as AutomationList, u as AutomationRun, v as AutomationRunStatus, w as AutomationRuns, x as AutomationSpec, y as AutomationStep, z as AutomationTested, B as AutomationTrigger, C as AutomationValue, D as AutomationValues, E as AutomationWeekday, G as BUILT_KIND_WORD, H as CHOICE_NUDGES, I as CaptureField, L as CaptureQuestion, M as CaptureSheetFace, N as CaptureSheetSummary, O as ChecklistDeclared, P as ChecklistRequirement, Q as ChecklistRequirementKind, S as ChecklistRoleSpec, U as ChecklistRunStarted, V as ChecklistRunStep, W as ChecklistRunSummary, X as ChecklistSpec, Y as ChecklistStepCompleted, Z as ChecklistStepSpec, _ as ChecklistTemplateShape, $ as ChecklistTemplateSummary, a0 as ChecklistTrigger, a1 as ChecklistTriggerKind, a2 as ChoiceCellBack, a3 as ChoiceLike, a4 as ChoiceNudge, a5 as ChoiceOption, a6 as ChoiceRehome, a7 as ChoiceUsage, a8 as ChoicesRehomed, a9 as CommentThreadRead, aa as CommentWritten, ab as ConversationScope, ac as ConversationScopeContext, ad as CustomFieldTableType, ae as DEFAULT_ARCHIVE_LANE, ag as DRILL_CHART_TOKENS, ah as DRILL_DESCRIPTION_MAX, ai as DRILL_DOORS, aj as DRILL_SCHEMA, ak as DataHomeTable, al as DecorationColor, am as DecorationPath, an as DecorationRule, ao as DecorationRuleOp, ap as DecorationTarget, aq as DocRenderRow, ar as DocSignatureCheck, as as DocSignatureRow, at as DocTemplateRow, au as DocToken, av as DocUnresolvedToken, aw as DrillAdHocOp, ax as DrillAnswer, ay as DrillAnswerRow, az as DrillChartToken, aA as DrillDeclaration, aB as DrillDefinition, aC as DrillDimension, aD as DrillFinding, aE as DrillGrain, aF as DrillHaving, aG as DrillLane, aH as DrillLevel, aI as DrillMeasure, aJ as DrillMeasureOp, aK as DrillMeasureWhereValue, aL as DrillPath, aM as DrillQuestion, aN as DrillRecords, aO as DrillRowsPage, aP as DrillSource, aQ as DrillView, aR as EnrichAlternate, aS as EnrichCell, aT as EnrichDeclared, aU as EnrichDueRow, aV as EnrichRun, aW as EnrichSource, aX as Enrichment, aY as EnrichmentSummary, aZ as EntityBackLinkItem, a_ as EntityBackLinks, a$ as EntityFieldRights, b0 as EntityFieldValue, b1 as EntityFieldsAcross, b2 as EntityRecordMatch, b3 as EntityRecordRead, b4 as EntityRecordsFound, b5 as EntityRowWritten, b6 as EntityTableFacts, b7 as ExternalPrincipalCard, F as FieldDrift, b8 as FieldDriftAspect, b9 as FieldHistoryEntry, ba as FieldRetyped, bb as FormArchiveAnswer, bc as FormulaParse, bd as FormulaPreview, be as GridLayout, bf as GridLayoutMode, bg as GridRowHeight, bh as HistoryActor, bi as HistoryActorKind, bj as HistoryChange, bk as Home, bl as ImportBatchResult, bm as ImportColumnPlan, bn as ImportColumnsDeclared, bo as ImportFinished, bp as ImportOpened, bq as ImportOutcome, br as ImportPlan, bs as ImportPolicy, bt as ImportProposal, bu as ImportReport, bv as ImportRun, bw as InboundAddress, bx as InboundDeclared, by as InboxCounts, bz as InboxStateChange, bA as IoExportPage, bB as MigrationEntry, bC as MigrationUndone, bD as NewEntityFieldDeclaration, bE as OutsideShareAnswer, bF as PIPELINE_RULE_KINDS, bG as ParentExtracted, bH as PickListDocument, bI as PickListItem, bJ as PickListItemInput, bK as Pipeline, bL as PipelineColumn, bM as PipelineDeclared, bN as PipelineGate, bO as PipelineGatePreview, bP as PipelineMissingField, bQ as PipelineMoveMany, bR as PipelineMoveManyItem, bS as PipelineMoveManyResult, bT as PipelineMoveResult, bU as PipelineMoveVerdict, bV as PipelineRule, bW as PipelineRuleKind, bX as PipelineSpec, bY as PipelineStage, bZ as PipelineVerdict, b$ as PublishBinding, c0 as PublishBindingKind, c2 as ROW_LABEL_FORMULA_MAX_LENGTH, c3 as ROW_WEB_NOT_READY, c4 as RecordChangeAction, c5 as RecordComment, c6 as RecordEvent, c7 as RecordHeader, c8 as RecordHistoryEntry, ca as RecordRowControls, cb as RecordScopeComment, cc as RecordScopeContext, cd as RecordScopeField, ce as RecordScopeHistoryEntry, cf as RecordScopeRelation, cg as RecordScopeWithheld, ch as RecordSplit, ci as RecordsMerged, cj as RegisteredTable, ck as ResolvedPublishBinding, cl as ResolvedPublishBindingKind, cm as RestorePreview, cn as RestoreResult, co as RetypeBehaviour, cp as RetypePreview, cq as RowAction, cr as RowActionStep, cs as RowDefaultsApplied, ct as SHOWN_TO_LABEL, cu as SHOWN_TO_VALUES, cv as SHOWN_TO_WHO_MAY_CHANGE, cw as STAGE_RULE_ENFORCEMENT, cx as STAGE_RULE_ON_FAIL, cy as ShownTo, cz as StagePending, cA as StagePendingOnBoard, cB as StageRuleEnforcement, cC as StageRuleOnFail, cD as StageRuleWarning, cE as SyncAutoRefresh, cF as Table, T as TableArchiveProgress, cG as TableCapacity, cH as TableCopyInProgress, cI as TableCopySpec, cJ as TableDecorations, cK as TableDuplicateProgress, cL as TableDuplicated, cN as TableHome, cO as TableHomeDestination, cP as TableLevel, cQ as TableLevelApproval, cR as TableLevelFacts, cS as TableLevelSet, cT as TableListEntry, cV as TableMoved, cW as TablePlacement, cX as TablePlacementFact, cY as TableReaderRule, cZ as TableRestoreProgress, c_ as TableRowCount, c$ as TableRowDefaults, d0 as TableRowDefaultsPatch, d1 as TableRowLabel, d2 as TableSyncAnswer, d3 as TableSyncResult, d4 as TableSyncSettings, d5 as TableSyncSource, d6 as TableSyncSourceDocument, d7 as TableSyncSpec, d8 as TableWebhook, d9 as TableWebhookDeclared, da as TypedChoiceDecision, db as ViewLayout, dc as ViewOrderSet, dd as WorkApprovalDecision, de as WorkApprovalFiled, df as WorkApprovalState, dg as WorkApprover, dh as WorkAssignment, di as WorkAssignmentField, dj as WorkChange, dk as WorkDecideMany, dl as WorkDecideManyItem, dm as WorkDecideManyResult, dn as WorkDecideVerdict, dp as WorkDueState, dq as WorkGraph, dr as WorkInboxItem, ds as WorkInboxKind, dt as WorkInboxView, du as WorkInstantiation, dv as WorkListFlavour, dw as WorkListItem, dx as WorkOrigin, dy as WorkRecordState, dz as WorkSlotHold, dA as WorkState, dB as WorkTemplateNode, dC as WorkTemplateRelation, dD as WorkTurn, dE as actionRefusals, dF as archivedByLine, dG as archivedWhen, dH as asChoiceNudge, dJ as choiceSlug, dK as choiceValuesOf, dL as choicesOf, dM as clearsRowLabel, dO as decideTypedChoice, dP as declareDrillDefinition, dQ as drillAnswerOf, dR as drillFindingKnob, dS as emptyArchiveLine, dT as exportPageXlsx, dU as holdsARetiredChoice, dX as isArchiveLane, dY as isFoundation, dZ as isShownTo, d_ as isTheChosen, d$ as keptGroups, e0 as keptOutOfSight, e1 as keptTableHref, e2 as levelHasShownTo, e3 as looksLikeAnId, e4 as mayDrag, e5 as moveConsequence, e6 as moveInOrder, e7 as offeredAsContext, e8 as optionKey, e9 as optionLabel, ea as parseFieldDrift, eb as parseTableCopiesInProgress, ec as parseTableDuplicateProgress, ed as parseTableDuplicated, ee as parseTableHome, ef as parseTableMoved, eh as previewRetype, ei as previewRuleChange, ej as recordChangeTrigger, ek as recordSourceKey, el as recordSourceTable, em as recordsUseSentence, en as rehomeSentence, eo as removedChoicesInUse, ep as ruleThatRefuses, eq as rulesWithTopStar, er as sameDocument, es as scopeChip, et as sheetSyncSpec, eu as valueConverts, ev as withRowCounts, ex as withTablePlacement } from './client-D8vzRl-L.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, d as RecordsDataSource, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from './ports-D2_BQmR-.cjs';
|
|
6
6
|
import { m as CoercibleField } from './field-Cw0kIDaG.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, n as FIELD_KINDS, F as Field, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from './field-Cw0kIDaG.cjs';
|
|
@@ -10,6 +10,7 @@ export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, a as PORTAL_A
|
|
|
10
10
|
export { A as AggregateBucket, e as AggregateCompare, f as AggregateCompareKind, g as AggregateCompareWindows, h as AggregateDelta, b as AggregateFilter, i as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, k as AggregateWindow, l as DashboardBlock, D as DashboardBlockKind, m as DashboardBlockResult, n as DashboardRunResult, o as DashboardSummary, p as DashboardTarget, q as DashboardTargetBase, r as DashboardTargetOp, s as DashboardTargetResult, t as DashboardTotals, u as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, v as RowTemplateRow, w as SavedViewColorBy, x as SavedViewDefinition, y as SavedViewLayout, d as SavedViewRow, z as SavedViewSpecIn, B as StoreFilter, C as StuckRow, E as Subscription, F as SubscriptionBlock, S as SubscriptionCadence, G as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from './subscription-8ioEsmOU.cjs';
|
|
11
11
|
export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as REVERSE_LINKS_PAGE_MAX, c as REVERSE_LINKS_RECORDS_PER_CALL, d as Relation, e as RelationCarries, f as RelationCoordinate, g as RelationIcons, h as RelationProperties, i as RelationTarget, j as RelationWordsManyArgs, k as ReverseColumn, l as ReverseLink, m as ReverseLinks, n as ReverseLinksFieldsArgs, o as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from './relation-B6JqOI0b.cjs';
|
|
12
12
|
export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from './objectOrganization-61jOlh2H.cjs';
|
|
13
|
+
export { TABLE_KIND_PREFIX, TableKindFacts, TableRenderSchema, TableSchemaMode, fieldKindOf, isTableKind, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema } from './table-kind/index.cjs';
|
|
13
14
|
import './doors-BW2oHt5K.cjs';
|
|
14
15
|
|
|
15
16
|
type WithFormat = CoercibleField & {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { U as Uuid, $ as MergeFieldSource, _ as MergeFieldSemanticType, Z as MergeFieldModifier, a2 as OverridePolicy, B as Delivery, h as Timestamp, M as Freshness, n as RecordDocument, R as RecordsResult } from './record-CVPaFMLQ.js';
|
|
2
2
|
export { t as ABSENCE_REASONS, u as ACTOR_VOCABULARY, v as AbsenceReason, A as Actor, w as COMPUTE_ON, x as CONTEXT_POLICIES, C as ComputeOn, d as ContextPolicy, y as DECLARABLE_FIELD_KINDS, z as DELIVERIES, D as DeclarableFieldKind, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, L as ForbiddenEnvelopeWord, H as HiddenFieldNotice, N as KERNEL_TABLES, Q as KernelTableName, V as KeysetRow, W as MERGE_FIELD_MODIFIERS, X as MERGE_FIELD_SEMANTIC_TYPES, Y as MERGE_FIELD_SOURCES, a0 as ON_DELETE, a1 as OVERRIDE_POLICIES, O as OnDelete, a3 as PARITY_FIELD_TYPES, a4 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a5 as PerValueAccessWord, P as PgError, r as PredictedRefusal, a6 as ProvenancePointer, a7 as RELATION_BINDINGS, a8 as RELATION_CARDINALITIES, a9 as RELATION_FLAVORS, aa as RETIRED_ACTOR_WORDS, ab as RULE_NODE_KINDS, ac as RULE_USES, l as ReadRow, s as ReadValue, ad as RecordChange, ae as RecordChangeResult, af as RecordGraphWritten, ag as RecordKeysetPage, ah as RecordPage, k as RecordPageSort, ai as RecordRead, aj as RecordRevision, a as RecordsError, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, ak as RetiredActorWord, i as RuleNodeKind, j as RuleUse, al as STORAGE_MODES, am as STORE_DOORS, an as STORE_KNOBS, ao as STORE_REFUSAL_CODES, q as StaleWriteDetail, S as StorageMode, ap as StoreDoorName, aq as StoreRefusalCode, ar as StoredRecord, as as TABLE_DISPLAYS, at as TABLE_ORIGINS, au as TABLE_TYPES, b as TableDisplay, av as TableOrigin, T as TableType, aw as VALUE_ALTERNATE_KEYS, ax as VALUE_ENVELOPE_KEYS, ay as ValueAlternate, az as ValueAlternateKey, aA as ValueEnvelope, aB as ValueEnvelopeKey, aC as ValueSource, aD as WriteConflict, aE as err, aF as isLockedStub, aG as isRecordsErr, aH as ok, aI as splitLockedRows, aJ as unwrapRecords } from './record-CVPaFMLQ.js';
|
|
3
|
-
import {
|
|
4
|
-
export { A as ARCHIVE_LANES,
|
|
3
|
+
import { J as CaptureFileRef, K as CaptureOutcome, R as RecordsClient } from './client-DuoWeGcM.js';
|
|
4
|
+
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, d as ActionRefusal, e as ActionRunResult, f as AdminTable, g as AnonTokenBinding, h as ArchiveLane, i as ArchivedChecklistTemplate, j as ArchivedDoorRow, k as ArchivedForm, l as ArchivedRow, n as AutomationAction, o as AutomationDeclared, p as AutomationFilter, q as AutomationFlipped, r as AutomationItem, s as AutomationLastRun, t as AutomationList, u as AutomationRun, v as AutomationRunStatus, w as AutomationRuns, x as AutomationSpec, y as AutomationStep, z as AutomationTested, B as AutomationTrigger, C as AutomationValue, D as AutomationValues, E as AutomationWeekday, G as BUILT_KIND_WORD, H as CHOICE_NUDGES, I as CaptureField, L as CaptureQuestion, M as CaptureSheetFace, N as CaptureSheetSummary, O as ChecklistDeclared, P as ChecklistRequirement, Q as ChecklistRequirementKind, S as ChecklistRoleSpec, U as ChecklistRunStarted, V as ChecklistRunStep, W as ChecklistRunSummary, X as ChecklistSpec, Y as ChecklistStepCompleted, Z as ChecklistStepSpec, _ as ChecklistTemplateShape, $ as ChecklistTemplateSummary, a0 as ChecklistTrigger, a1 as ChecklistTriggerKind, a2 as ChoiceCellBack, a3 as ChoiceLike, a4 as ChoiceNudge, a5 as ChoiceOption, a6 as ChoiceRehome, a7 as ChoiceUsage, a8 as ChoicesRehomed, a9 as CommentThreadRead, aa as CommentWritten, ab as ConversationScope, ac as ConversationScopeContext, ad as CustomFieldTableType, ae as DEFAULT_ARCHIVE_LANE, ag as DRILL_CHART_TOKENS, ah as DRILL_DESCRIPTION_MAX, ai as DRILL_DOORS, aj as DRILL_SCHEMA, ak as DataHomeTable, al as DecorationColor, am as DecorationPath, an as DecorationRule, ao as DecorationRuleOp, ap as DecorationTarget, aq as DocRenderRow, ar as DocSignatureCheck, as as DocSignatureRow, at as DocTemplateRow, au as DocToken, av as DocUnresolvedToken, aw as DrillAdHocOp, ax as DrillAnswer, ay as DrillAnswerRow, az as DrillChartToken, aA as DrillDeclaration, aB as DrillDefinition, aC as DrillDimension, aD as DrillFinding, aE as DrillGrain, aF as DrillHaving, aG as DrillLane, aH as DrillLevel, aI as DrillMeasure, aJ as DrillMeasureOp, aK as DrillMeasureWhereValue, aL as DrillPath, aM as DrillQuestion, aN as DrillRecords, aO as DrillRowsPage, aP as DrillSource, aQ as DrillView, aR as EnrichAlternate, aS as EnrichCell, aT as EnrichDeclared, aU as EnrichDueRow, aV as EnrichRun, aW as EnrichSource, aX as Enrichment, aY as EnrichmentSummary, aZ as EntityBackLinkItem, a_ as EntityBackLinks, a$ as EntityFieldRights, b0 as EntityFieldValue, b1 as EntityFieldsAcross, b2 as EntityRecordMatch, b3 as EntityRecordRead, b4 as EntityRecordsFound, b5 as EntityRowWritten, b6 as EntityTableFacts, b7 as ExternalPrincipalCard, F as FieldDrift, b8 as FieldDriftAspect, b9 as FieldHistoryEntry, ba as FieldRetyped, bb as FormArchiveAnswer, bc as FormulaParse, bd as FormulaPreview, be as GridLayout, bf as GridLayoutMode, bg as GridRowHeight, bh as HistoryActor, bi as HistoryActorKind, bj as HistoryChange, bk as Home, bl as ImportBatchResult, bm as ImportColumnPlan, bn as ImportColumnsDeclared, bo as ImportFinished, bp as ImportOpened, bq as ImportOutcome, br as ImportPlan, bs as ImportPolicy, bt as ImportProposal, bu as ImportReport, bv as ImportRun, bw as InboundAddress, bx as InboundDeclared, by as InboxCounts, bz as InboxStateChange, bA as IoExportPage, bB as MigrationEntry, bC as MigrationUndone, bD as NewEntityFieldDeclaration, bE as OutsideShareAnswer, bF as PIPELINE_RULE_KINDS, bG as ParentExtracted, bH as PickListDocument, bI as PickListItem, bJ as PickListItemInput, bK as Pipeline, bL as PipelineColumn, bM as PipelineDeclared, bN as PipelineGate, bO as PipelineGatePreview, bP as PipelineMissingField, bQ as PipelineMoveMany, bR as PipelineMoveManyItem, bS as PipelineMoveManyResult, bT as PipelineMoveResult, bU as PipelineMoveVerdict, bV as PipelineRule, bW as PipelineRuleKind, bX as PipelineSpec, bY as PipelineStage, bZ as PipelineVerdict, b$ as PublishBinding, c0 as PublishBindingKind, c2 as ROW_LABEL_FORMULA_MAX_LENGTH, c3 as ROW_WEB_NOT_READY, c4 as RecordChangeAction, c5 as RecordComment, c6 as RecordEvent, c7 as RecordHeader, c8 as RecordHistoryEntry, ca as RecordRowControls, cb as RecordScopeComment, cc as RecordScopeContext, cd as RecordScopeField, ce as RecordScopeHistoryEntry, cf as RecordScopeRelation, cg as RecordScopeWithheld, ch as RecordSplit, ci as RecordsMerged, cj as RegisteredTable, ck as ResolvedPublishBinding, cl as ResolvedPublishBindingKind, cm as RestorePreview, cn as RestoreResult, co as RetypeBehaviour, cp as RetypePreview, cq as RowAction, cr as RowActionStep, cs as RowDefaultsApplied, ct as SHOWN_TO_LABEL, cu as SHOWN_TO_VALUES, cv as SHOWN_TO_WHO_MAY_CHANGE, cw as STAGE_RULE_ENFORCEMENT, cx as STAGE_RULE_ON_FAIL, cy as ShownTo, cz as StagePending, cA as StagePendingOnBoard, cB as StageRuleEnforcement, cC as StageRuleOnFail, cD as StageRuleWarning, cE as SyncAutoRefresh, cF as Table, T as TableArchiveProgress, cG as TableCapacity, cH as TableCopyInProgress, cI as TableCopySpec, cJ as TableDecorations, cK as TableDuplicateProgress, cL as TableDuplicated, cN as TableHome, cO as TableHomeDestination, cP as TableLevel, cQ as TableLevelApproval, cR as TableLevelFacts, cS as TableLevelSet, cT as TableListEntry, cV as TableMoved, cW as TablePlacement, cX as TablePlacementFact, cY as TableReaderRule, cZ as TableRestoreProgress, c_ as TableRowCount, c$ as TableRowDefaults, d0 as TableRowDefaultsPatch, d1 as TableRowLabel, d2 as TableSyncAnswer, d3 as TableSyncResult, d4 as TableSyncSettings, d5 as TableSyncSource, d6 as TableSyncSourceDocument, d7 as TableSyncSpec, d8 as TableWebhook, d9 as TableWebhookDeclared, da as TypedChoiceDecision, db as ViewLayout, dc as ViewOrderSet, dd as WorkApprovalDecision, de as WorkApprovalFiled, df as WorkApprovalState, dg as WorkApprover, dh as WorkAssignment, di as WorkAssignmentField, dj as WorkChange, dk as WorkDecideMany, dl as WorkDecideManyItem, dm as WorkDecideManyResult, dn as WorkDecideVerdict, dp as WorkDueState, dq as WorkGraph, dr as WorkInboxItem, ds as WorkInboxKind, dt as WorkInboxView, du as WorkInstantiation, dv as WorkListFlavour, dw as WorkListItem, dx as WorkOrigin, dy as WorkRecordState, dz as WorkSlotHold, dA as WorkState, dB as WorkTemplateNode, dC as WorkTemplateRelation, dD as WorkTurn, dE as actionRefusals, dF as archivedByLine, dG as archivedWhen, dH as asChoiceNudge, dJ as choiceSlug, dK as choiceValuesOf, dL as choicesOf, dM as clearsRowLabel, dO as decideTypedChoice, dP as declareDrillDefinition, dQ as drillAnswerOf, dR as drillFindingKnob, dS as emptyArchiveLine, dT as exportPageXlsx, dU as holdsARetiredChoice, dX as isArchiveLane, dY as isFoundation, dZ as isShownTo, d_ as isTheChosen, d$ as keptGroups, e0 as keptOutOfSight, e1 as keptTableHref, e2 as levelHasShownTo, e3 as looksLikeAnId, e4 as mayDrag, e5 as moveConsequence, e6 as moveInOrder, e7 as offeredAsContext, e8 as optionKey, e9 as optionLabel, ea as parseFieldDrift, eb as parseTableCopiesInProgress, ec as parseTableDuplicateProgress, ed as parseTableDuplicated, ee as parseTableHome, ef as parseTableMoved, eh as previewRetype, ei as previewRuleChange, ej as recordChangeTrigger, ek as recordSourceKey, el as recordSourceTable, em as recordsUseSentence, en as rehomeSentence, eo as removedChoicesInUse, ep as ruleThatRefuses, eq as rulesWithTopStar, er as sameDocument, es as scopeChip, et as sheetSyncSpec, eu as valueConverts, ev as withRowCounts, ex as withTablePlacement } from './client-DuoWeGcM.js';
|
|
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, d as RecordsDataSource, c as RecordsErrorSink, i as RecordsFilter, R as RecordsRealtimePort, j as RecordsResolverPort, k as RecordsResponse, l as RecordsTableQuery, b as RowAgentPort, f as RowAgentTarget, m as asPermissionLevel, n as atLeast, o as createOpLedger, p as defaultOpLedger, q as forgetAllOps, r as highestLevel, s as isOwnOp, t as mintOpId, u as rememberedOpCount } from './ports-DopjYwYG.js';
|
|
6
6
|
import { m as CoercibleField } from './field-0bRLy9ZN.js';
|
|
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, n as FIELD_KINDS, F as Field, o as FieldDuplicated, p as FieldKind, q as FieldOptionEdit, r as FieldPatch, s as FieldProposal, b as FieldRule, a as FieldTypeWord, K as KernelTargets, t as NEWER_FIELD_KINDS, u as NOT_A_MEMBER_WORDS, N as NewFieldDeclaration, v as NewerFieldKind, P as ParityFieldTypeDescriptor, w as PersonStamp, R as RelationDisplay, x as RelationNameIndex, y as RelationNameMatch, z as RelationNamesAnswer, S as STATUS_GROUPS, D as STATUS_GROUP_WORDS, E as SYSTEM_WRITER_WORDS, G as StatusGroup, T as TableProposal, H as addressFromText, I as addressMapUrl, J as addressText, L as allowsOtherValues, M as buttonNeeds, O as buttonOf, Q as buttonUrlPlaceholders, U as coerceTypedAnswer, V as coerceTypedAnswers, W as coercionLabel, X as durationText, Y as entityReferenceKindsOf, Z as fieldKindFor, _ as isAddressValue, $ as isButtonField, a0 as isEntityReferenceConfig, a1 as isPersonStamp, a2 as newerKindExportWords, a3 as newerKindOf, a4 as newerKindWords, a5 as personStampText, a6 as ratingMaxOf, a7 as readTypedDuration, a8 as relationNameIndexOf, a9 as relationNameKey, aa as relationNamesIn, ab as richTextPlain, ac as safeLinkHref, ad as splitListCell, ae as statusGroupOf } from './field-0bRLy9ZN.js';
|
|
@@ -10,6 +10,7 @@ export { D as DEFAULT_PORTAL_ARCHIVE_FILTER, F as FormLookOptions, a as PORTAL_A
|
|
|
10
10
|
export { A as AggregateBucket, e as AggregateCompare, f as AggregateCompareKind, g as AggregateCompareWindows, h as AggregateDelta, b as AggregateFilter, i as AggregateGroupValue, c as AggregateMeasure, a as AggregateOperation, j as AggregateRow, k as AggregateWindow, l as DashboardBlock, D as DashboardBlockKind, m as DashboardBlockResult, n as DashboardRunResult, o as DashboardSummary, p as DashboardTarget, q as DashboardTargetBase, r as DashboardTargetOp, s as DashboardTargetResult, t as DashboardTotals, u as DigestPreview, M as MySubscription, Q as QuietHours, R as RecordFilter, v as RowTemplateRow, w as SavedViewColorBy, x as SavedViewDefinition, y as SavedViewLayout, d as SavedViewRow, z as SavedViewSpecIn, B as StoreFilter, C as StuckRow, E as Subscription, F as SubscriptionBlock, S as SubscriptionCadence, G as SubscriptionSpec, H as callersTimeZone, I as hasQuietHours, J as isRuleFilter, K as liftWithheld, L as measureKey, N as stableFilterKey, O as withCallersClock } from './subscription-BUggri40.js';
|
|
11
11
|
export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as REVERSE_LINKS_PAGE_MAX, c as REVERSE_LINKS_RECORDS_PER_CALL, d as Relation, e as RelationCarries, f as RelationCoordinate, g as RelationIcons, h as RelationProperties, i as RelationTarget, j as RelationWordsManyArgs, k as ReverseColumn, l as ReverseLink, m as ReverseLinks, n as ReverseLinksFieldsArgs, o as ReverseLinksManyArgs, S as SourceArchived, p as entityReferenceKinds, q as entityReferenceSearch, r as entityReferenceWords, s as entityRefsOf, t as entityRefsToWrite, u as isReverseField, v as sourceArchivedOf } from './relation-BhUQJAOi.js';
|
|
12
12
|
export { a as ObjectKind, O as ObjectOrganizationAnswer, R as RecordOrganizationPort, W as WHERE_ID_OPENS_DOOR, r as readObjectOrganizationAnswer, b as resolveObjectOrganization, w as whereIdOpensPort } from './objectOrganization-tPXgAo39.js';
|
|
13
|
+
export { TABLE_KIND_PREFIX, TableKindFacts, TableRenderSchema, TableSchemaMode, fieldKindOf, isTableKind, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema } from './table-kind/index.js';
|
|
13
14
|
import './doors-CiCqbOu_.js';
|
|
14
15
|
|
|
15
16
|
type WithFormat = CoercibleField & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AggregateBucket } from '../subscription-8ioEsmOU.cjs';
|
|
2
|
-
import { R as RecordsClient } from '../client-
|
|
2
|
+
import { R as RecordsClient } from '../client-D8vzRl-L.cjs';
|
|
3
3
|
import { F as Field } from '../field-Cw0kIDaG.cjs';
|
|
4
4
|
import { H as HiddenFieldNotice, U as Uuid, R as RecordsResult } from '../record-CVPaFMLQ.cjs';
|
|
5
5
|
import { R as RuleExpression } from '../rule-ZSckB2NY.cjs';
|
|
@@ -7,6 +7,7 @@ import '../relation-B6JqOI0b.cjs';
|
|
|
7
7
|
import '../ports-D2_BQmR-.cjs';
|
|
8
8
|
import '../doors-BW2oHt5K.cjs';
|
|
9
9
|
import '../portal-CYg30IWl.cjs';
|
|
10
|
+
import '../table-kind/index.cjs';
|
|
10
11
|
|
|
11
12
|
type QuestionOp = "count" | "sum" | "avg" | "min" | "max";
|
|
12
13
|
declare const QUESTION_OPS: readonly QuestionOp[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AggregateBucket } from '../subscription-BUggri40.js';
|
|
2
|
-
import { R as RecordsClient } from '../client-
|
|
2
|
+
import { R as RecordsClient } from '../client-DuoWeGcM.js';
|
|
3
3
|
import { F as Field } from '../field-0bRLy9ZN.js';
|
|
4
4
|
import { H as HiddenFieldNotice, U as Uuid, R as RecordsResult } from '../record-CVPaFMLQ.js';
|
|
5
5
|
import { R as RuleExpression } from '../rule-BwLz0-40.js';
|
|
@@ -7,6 +7,7 @@ import '../relation-BhUQJAOi.js';
|
|
|
7
7
|
import '../ports-DopjYwYG.js';
|
|
8
8
|
import '../doors-CiCqbOu_.js';
|
|
9
9
|
import '../portal-6E1E9651.js';
|
|
10
|
+
import '../table-kind/index.js';
|
|
10
11
|
|
|
11
12
|
type QuestionOp = "count" | "sum" | "avg" | "min" | "max";
|
|
12
13
|
declare const QUESTION_OPS: readonly QuestionOp[];
|
package/dist/react/index.cjs
CHANGED
|
@@ -899,6 +899,7 @@ function rememberedOpCount() {
|
|
|
899
899
|
var SYSTEM_CONTEXT_TYPE_ID = "__system__";
|
|
900
900
|
|
|
901
901
|
// src/scopes/codec.ts
|
|
902
|
+
var import_uuid2 = require("@ai-matrx/kit/uuid");
|
|
902
903
|
var str = (v, fallback = "") => typeof v === "string" ? v : fallback;
|
|
903
904
|
var strOrNull = (v) => typeof v === "string" ? v : null;
|
|
904
905
|
var num = (v, fallback = 0) => {
|
|
@@ -1114,7 +1115,6 @@ function systemContextFieldFromStore(row, index) {
|
|
|
1114
1115
|
item_class: strOrNull(row.item_class)
|
|
1115
1116
|
};
|
|
1116
1117
|
}
|
|
1117
|
-
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1118
1118
|
function referencesOf(row) {
|
|
1119
1119
|
const v = row.value;
|
|
1120
1120
|
const list = Array.isArray(v) ? v : v == null ? [] : [v];
|
|
@@ -1124,7 +1124,7 @@ function referencesOf(row) {
|
|
|
1124
1124
|
const out = [];
|
|
1125
1125
|
for (const el of list) {
|
|
1126
1126
|
let ref = null;
|
|
1127
|
-
if (typeof el === "string" &&
|
|
1127
|
+
if (typeof el === "string" && (0, import_uuid2.isUuidShape)(el)) ref = { id: el, type: toFile ? "file" : "scope" };
|
|
1128
1128
|
else if (el && typeof el === "object" && typeof el.id === "string") {
|
|
1129
1129
|
const token = String(el.token ?? "");
|
|
1130
1130
|
const own = el.label;
|
|
@@ -1611,7 +1611,7 @@ function createScopeDoors(call) {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
|
|
1613
1613
|
// src/choice.ts
|
|
1614
|
-
var
|
|
1614
|
+
var import_uuid3 = require("@ai-matrx/kit/uuid");
|
|
1615
1615
|
function optionKey(option) {
|
|
1616
1616
|
const stored = option.metadata?.["option_key"];
|
|
1617
1617
|
if (typeof stored === "string" && stored.trim() !== "") return stored;
|
|
@@ -1650,7 +1650,7 @@ function holdsARetiredChoice(document, fieldKeyOrId) {
|
|
|
1650
1650
|
return choicesOf(document, fieldKeyOrId).some((c) => c.retired === true);
|
|
1651
1651
|
}
|
|
1652
1652
|
function looksLikeAnId(value) {
|
|
1653
|
-
return typeof value === "string" && (0,
|
|
1653
|
+
return typeof value === "string" && (0, import_uuid3.isUuidShape)(value);
|
|
1654
1654
|
}
|
|
1655
1655
|
var CHOICE_NUDGES = ["ask", "always_add", "never_add"];
|
|
1656
1656
|
function asChoiceNudge(value) {
|
|
@@ -11008,7 +11008,7 @@ async function archiveTableRow(client, table, rowId) {
|
|
|
11008
11008
|
}
|
|
11009
11009
|
|
|
11010
11010
|
// src/data/table-port.ts
|
|
11011
|
-
var
|
|
11011
|
+
var import_uuid5 = require("@ai-matrx/kit/uuid");
|
|
11012
11012
|
|
|
11013
11013
|
// src/button.ts
|
|
11014
11014
|
var BUTTON_DOES = ["open_url", "run_action", "run_automation"];
|
|
@@ -11461,7 +11461,7 @@ function readTypedNumber(raw) {
|
|
|
11461
11461
|
}
|
|
11462
11462
|
|
|
11463
11463
|
// src/coerce.ts
|
|
11464
|
-
var
|
|
11464
|
+
var import_uuid4 = require("@ai-matrx/kit/uuid");
|
|
11465
11465
|
var FIELD_KINDS = [
|
|
11466
11466
|
"attachment",
|
|
11467
11467
|
"checkbox",
|
|
@@ -11542,7 +11542,7 @@ function relationNamesIn(field2, text2) {
|
|
|
11542
11542
|
const t = text2.trim();
|
|
11543
11543
|
if (t === "") return [];
|
|
11544
11544
|
const parts = field2.multi ? splitListCell(t) : [t];
|
|
11545
|
-
return parts.filter((p) => !(0,
|
|
11545
|
+
return parts.filter((p) => !(0, import_uuid4.isUuidShape)(p));
|
|
11546
11546
|
}
|
|
11547
11547
|
var MONEY_SYMBOLS = { $: "USD", "\u20AC": "EUR", "\xA3": "GBP", "\u20B9": "INR", "\u20A9": "KRW", "\u20AA": "ILS", "\u20BA": "TRY", "\u20BD": "RUB" };
|
|
11548
11548
|
function columnCurrency(unit) {
|
|
@@ -11704,12 +11704,12 @@ function coerceTypedAnswer(field2, raw, opts = {}) {
|
|
|
11704
11704
|
// value and not a refusal; the store, not this mirror, decides whether the
|
|
11705
11705
|
// id is somebody here.
|
|
11706
11706
|
case "member":
|
|
11707
|
-
if ((0,
|
|
11707
|
+
if ((0, import_uuid4.isUuidShape)(text2)) return { value: text2.toLowerCase() };
|
|
11708
11708
|
return {
|
|
11709
11709
|
refusal: `${label} names a person in this organization, so it is chosen rather than typed. Open it and pick them.`
|
|
11710
11710
|
};
|
|
11711
11711
|
case "attachment":
|
|
11712
|
-
if ((0,
|
|
11712
|
+
if ((0, import_uuid4.isUuidShape)(text2)) return { value: text2.toLowerCase() };
|
|
11713
11713
|
return {
|
|
11714
11714
|
refusal: `${label} holds a file, which cannot arrive as typed-in text. Open it and attach the file.`
|
|
11715
11715
|
};
|
|
@@ -11720,7 +11720,7 @@ function coerceTypedAnswer(field2, raw, opts = {}) {
|
|
|
11720
11720
|
const none = [];
|
|
11721
11721
|
const many = [];
|
|
11722
11722
|
for (const part of parts) {
|
|
11723
|
-
if ((0,
|
|
11723
|
+
if ((0, import_uuid4.isUuidShape)(part)) {
|
|
11724
11724
|
if (!ids.includes(part.toLowerCase())) ids.push(part.toLowerCase());
|
|
11725
11725
|
continue;
|
|
11726
11726
|
}
|
|
@@ -11754,7 +11754,7 @@ function coerceTypedAnswer(field2, raw, opts = {}) {
|
|
|
11754
11754
|
const [maybeToken, maybeId] = text2.includes(":") ? text2.split(/:(.*)/s, 2) : ["", text2];
|
|
11755
11755
|
const token = (maybeToken ?? "").trim().toLowerCase() || (allowed.length === 1 ? allowed[0] : "");
|
|
11756
11756
|
const id = (maybeId ?? "").trim();
|
|
11757
|
-
if (token && (0,
|
|
11757
|
+
if (token && (0, import_uuid4.isUuidShape)(id)) {
|
|
11758
11758
|
const ref = { token, id: id.toLowerCase() };
|
|
11759
11759
|
return { value: field2.multi ? [ref] : ref };
|
|
11760
11760
|
}
|
|
@@ -11995,7 +11995,7 @@ function entityRefsOf2(value, kinds) {
|
|
|
11995
11995
|
const out = [];
|
|
11996
11996
|
for (const item2 of items) {
|
|
11997
11997
|
const id = typeof item2 === "string" ? item2 : item2 && typeof item2 === "object" ? item2.id : null;
|
|
11998
|
-
if (typeof id !== "string" || !(0,
|
|
11998
|
+
if (typeof id !== "string" || !(0, import_uuid5.isUuidShape)(id)) continue;
|
|
11999
11999
|
const raw = item2 && typeof item2 === "object" ? item2.token : null;
|
|
12000
12000
|
const token = typeof raw === "string" && raw && raw !== CUSTOM_ROW_TOKEN ? raw : kinds[0];
|
|
12001
12001
|
if (token) out.push({ token, id });
|
|
@@ -12007,7 +12007,7 @@ function relationIdsOf(value) {
|
|
|
12007
12007
|
const out = [];
|
|
12008
12008
|
for (const item2 of items) {
|
|
12009
12009
|
const id = typeof item2 === "string" ? item2 : item2 && typeof item2 === "object" ? item2.id : null;
|
|
12010
|
-
if (typeof id === "string" && (0,
|
|
12010
|
+
if (typeof id === "string" && (0, import_uuid5.isUuidShape)(id)) out.push(id);
|
|
12011
12011
|
}
|
|
12012
12012
|
return out;
|
|
12013
12013
|
}
|
|
@@ -12104,7 +12104,7 @@ function createTableDataPort({ client, aliases }) {
|
|
|
12104
12104
|
async function getRow(alias, id) {
|
|
12105
12105
|
const binding = bindingOf(alias);
|
|
12106
12106
|
if (!binding) return noSuchAlias(alias);
|
|
12107
|
-
if (!(0,
|
|
12107
|
+
if (!(0, import_uuid5.isUuidShape)(id)) return refuse2("invalid_argument", `"${String(id)}" is not a row id.`);
|
|
12108
12108
|
const shape = await shapeOf(alias, binding);
|
|
12109
12109
|
if (!shape.ok) return shape;
|
|
12110
12110
|
const read = await readByIds(binding, [id]);
|
|
@@ -12353,7 +12353,7 @@ function useStoreTable(table, options = {}) {
|
|
|
12353
12353
|
}
|
|
12354
12354
|
|
|
12355
12355
|
// src/typed-table/graduate.ts
|
|
12356
|
-
var
|
|
12356
|
+
var import_uuid6 = require("@ai-matrx/kit/uuid");
|
|
12357
12357
|
var TO_CUSTOM_FIELDS = "custom_fields";
|
|
12358
12358
|
var TO_ASSOCIATION = "association";
|
|
12359
12359
|
var GRADUATION_BASE_COLUMNS = [
|
|
@@ -12415,7 +12415,7 @@ function graduationProblems(fields, graduation) {
|
|
|
12415
12415
|
}
|
|
12416
12416
|
function idsOf(value) {
|
|
12417
12417
|
const list = Array.isArray(value) ? value : value === null || value === void 0 ? [] : [value];
|
|
12418
|
-
return list.filter((v) => typeof v === "string" && (0,
|
|
12418
|
+
return list.filter((v) => typeof v === "string" && (0, import_uuid6.isUuidShape)(v));
|
|
12419
12419
|
}
|
|
12420
12420
|
function graduatedRow(fields, graduation, snapshot) {
|
|
12421
12421
|
const row = {
|
|
@@ -12908,7 +12908,7 @@ function allowsOtherValues(field2) {
|
|
|
12908
12908
|
}
|
|
12909
12909
|
|
|
12910
12910
|
// src/retype.ts
|
|
12911
|
-
var
|
|
12911
|
+
var import_uuid7 = require("@ai-matrx/kit/uuid");
|
|
12912
12912
|
var TRUE_WORDS2 = /* @__PURE__ */ new Set(["true", "t", "yes", "y", "1", "on", "x", "\u2713", "\u2714"]);
|
|
12913
12913
|
var FALSE_WORDS2 = /* @__PURE__ */ new Set(["false", "f", "no", "n", "0", "off", "\u2610"]);
|
|
12914
12914
|
function valueConverts(to, value) {
|
|
@@ -12929,7 +12929,7 @@ function valueConverts(to, value) {
|
|
|
12929
12929
|
return text2.trim() !== "" && /^[+-]?(\d+\.?\d*|\.\d+)(e[+-]?\d+)?$/i.test(text2.trim());
|
|
12930
12930
|
case "list":
|
|
12931
12931
|
case "relation":
|
|
12932
|
-
return typeof value === "string" && (0,
|
|
12932
|
+
return typeof value === "string" && (0, import_uuid7.isUuidShape)(text2);
|
|
12933
12933
|
default:
|
|
12934
12934
|
return false;
|
|
12935
12935
|
}
|
|
@@ -13467,7 +13467,7 @@ function scopeChip(scope) {
|
|
|
13467
13467
|
}
|
|
13468
13468
|
|
|
13469
13469
|
// src/table-kind.ts
|
|
13470
|
-
var
|
|
13470
|
+
var import_uuid8 = require("@ai-matrx/kit/uuid");
|
|
13471
13471
|
|
|
13472
13472
|
// src/table-kind-mapping.json
|
|
13473
13473
|
var table_kind_mapping_default = {
|
|
@@ -13553,7 +13553,7 @@ function tableKindMapping() {
|
|
|
13553
13553
|
return M;
|
|
13554
13554
|
}
|
|
13555
13555
|
function isTableKind(slug) {
|
|
13556
|
-
return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && (0,
|
|
13556
|
+
return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && (0, import_uuid8.isLowercaseUuidShape)(slug.slice(TABLE_KIND_PREFIX.length));
|
|
13557
13557
|
}
|
|
13558
13558
|
function tableKindSlug(tableId) {
|
|
13559
13559
|
const slug = `${TABLE_KIND_PREFIX}${String(tableId).trim().toLowerCase()}`;
|