@ai-matrx/records 0.99.28 → 0.99.29
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 +7 -0
- package/dist/{client-B7LYr-aE.d.cts → client-B7KEs9hi.d.cts} +10 -0
- package/dist/{client-m4soDpHA.d.ts → client-Dthx26hr.d.ts} +10 -0
- package/dist/core/index.cjs +76 -10
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +76 -10
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +12 -1
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.js +12 -1
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-D5Zs-SjU.d.ts → declareTable-CvBu5dTJ.d.ts} +1 -1
- package/dist/{declareTable-Bnrzv-Bg.d.cts → declareTable-enQs2N0E.d.cts} +1 -1
- package/dist/first-page/index.d.cts +2 -0
- package/dist/first-page/index.d.ts +2 -0
- package/dist/index.cjs +64 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -3
- package/dist/index.d.ts +29 -3
- package/dist/index.js +64 -9
- package/dist/index.js.map +1 -1
- package/dist/questions/index.d.cts +1 -1
- package/dist/questions/index.d.ts +1 -1
- package/dist/react/index.cjs +78 -12
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +37 -1
- package/dist/react/index.d.ts +37 -1
- package/dist/react/index.js +78 -12
- package/dist/react/index.js.map +1 -1
- package/dist/setup/index.cjs +12 -1
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +1 -1
- package/dist/setup/index.d.ts +1 -1
- package/dist/setup/index.js +12 -1
- package/dist/setup/index.js.map +1 -1
- package/dist/typed-table/index.cjs +12 -1
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +2 -2
- package/dist/typed-table/index.d.ts +2 -2
- package/dist/typed-table/index.js +12 -1
- package/dist/typed-table/index.js.map +1 -1
- package/dist/views/index.d.cts +1 -1
- package/dist/views/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/core/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as RecordsError, R as RecordsResult, P as PgError, q as StaleWriteDetail, n as RecordDocument, r as PredictedRefusal, s as ReadValue, U as Uuid } from '../record-C8q21jjB.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, B as Delivery, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FORMULA_NODE_RESULTS, L as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, M as ForbiddenEnvelopeWord, N as Freshness, H as HiddenFieldNotice, Q as KERNEL_TABLES, V as KernelTableName, W as KeysetRow, X as MERGE_FIELD_MODIFIERS, Y as MERGE_FIELD_SEMANTIC_TYPES, Z as MERGE_FIELD_SOURCES, _ as MergeFieldModifier, $ as MergeFieldSemanticType, a0 as MergeFieldSource, a1 as ON_DELETE, a2 as OVERRIDE_POLICIES, O as OnDelete, a3 as OverridePolicy, a4 as PARITY_FIELD_TYPES, a5 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a6 as PerValueAccessWord, a7 as ProvenancePointer, a8 as RELATION_BINDINGS, a9 as RELATION_CARDINALITIES, aa as RELATION_FLAVORS, ab as RETIRED_ACTOR_WORDS, ac as RULE_NODE_KINDS, ad as RULE_USES, l as ReadRow, ae as RecordChange, af as RecordChangeResult, ag as RecordGraphWritten, ah as RecordKeysetPage, ai as RecordPage, k as RecordPageSort, aj as RecordRead, ak as RecordRevision, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, al as RetiredActorWord, i as RuleNodeKind, j as RuleUse, am as STORAGE_MODES, an as STORE_DOORS, ao as STORE_KNOBS, ap as STORE_REFUSAL_CODES, 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-C8q21jjB.cjs';
|
|
3
|
-
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, c as A_PERSONS_REFUSAL, 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, m as AsOf, n as AutomationAction, o as AutomationComparison, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRevision, w as AutomationRevisions, x as AutomationRun, y as AutomationRunStatus, z as AutomationRuns, B as AutomationSpec, C as AutomationStep, D as AutomationTested, E as AutomationToken, G as AutomationTrigger, H as AutomationValue, I as AutomationValues, J as AutomationWeekday, K as AutomationWhen, L as BUILT_KIND_WORD, M as CHOICE_NUDGES, N as CaptureField, O as CaptureFileRef, P as CaptureOutcome, Q as CaptureQuestion, S as CaptureSheetFace, U as CaptureSheetSummary, V as ChecklistDeclared, W as ChecklistRequirement, X as ChecklistRequirementKind, Y as ChecklistRoleSpec, Z as ChecklistRunStarted, _ as ChecklistRunStep, $ as ChecklistRunSummary, a0 as ChecklistSpec, a1 as ChecklistStepCompleted, a2 as ChecklistStepSpec, a3 as ChecklistTemplateShape, a4 as ChecklistTemplateSummary, a5 as ChecklistTrigger, a6 as ChecklistTriggerKind, a7 as ChoiceCellBack, a8 as ChoiceLike, a9 as ChoiceNudge, aa as ChoiceOption, ab as ChoiceRehome, ac as ChoiceUsage, ad as ChoicesRehomed, ae as CommentThreadRead, af as CommentWritten, ag as ConversationScope, ah as ConversationScopeContext, ai as CustomFieldTableType, aj as DEFAULT_ARCHIVE_LANE, ak as DEFAULT_PAGE_SIZE, al as DRILL_CHART_TOKENS, am as DRILL_DESCRIPTION_MAX, an as DRILL_DOORS, ao as DRILL_SCHEMA, ap as DataHomeTable, aq as DecorationColor, ar as DecorationPath, as as DecorationRule, at as DecorationRuleOp, au as DecorationTarget, av as DocRenderRow, aw as DocSignatureCheck, ax as DocSignatureRow, ay as DocTemplateRow, az as DocToken, aA as DocUnresolvedToken, aB as DrillAdHocOp, aC as DrillAnswer, aD as DrillAnswerRow, aE as DrillChartToken, aF as DrillDeclaration, aG as DrillDefinition, aH as DrillDimension, aI as DrillFinding, aJ as DrillGrain, aK as DrillHaving, aL as DrillLane, aM as DrillLevel, aN as DrillMeasure, aO as DrillMeasureOp, aP as DrillMeasureWhereValue, aQ as DrillPath, aR as DrillQuestion, aS as DrillRecords, aT as DrillRowsPage, aU as DrillSource, aV as DrillView, aW as EnrichAlternate, aX as EnrichCell, aY as EnrichDeclared, aZ as EnrichDueRow, a_ as EnrichRun, a$ as EnrichSource, b0 as Enrichment, b1 as EnrichmentSummary, b2 as EntityBackLinkItem, b3 as EntityBackLinks, b4 as EntityFieldRights, b5 as EntityFieldValue, b6 as EntityFieldsAcross, b7 as EntityRecordMatch, b8 as EntityRecordRead, b9 as EntityRecordsFound, ba as EntityRowWritten, bb as EntityTableFacts, bc as ExternalPrincipalCard, F as FieldDrift, bd as FieldDriftAspect, be as FieldHistoryEntry, bf as FieldRetyped, bg as FormArchiveAnswer, bh as FormulaParse, bi as FormulaPreview, bj as GridLayout, bk as GridLayoutMode, bl as GridRowHeight, bm as HistoryActor, bn as HistoryActorKind, bo as HistoryChange, bp as Home, bq as ImportBatchResult, br as ImportColumnPlan, bs as ImportColumnsDeclared, bt as ImportFinished, bu as ImportOpened, bv as ImportOutcome, bw as ImportPlan, bx as ImportPolicy, by as ImportProposal, bz as ImportReport, bA as ImportRun, bB as InboundAddress, bC as InboundDeclared, bD as InboxCounts, bE as InboxStateChange, bF as IoExportPage, bG as MigrationEntry, bH as MigrationUndone, bI as NewEntityFieldDeclaration, bJ as OutsideShareAnswer, bK as PIPELINE_RULE_KINDS, bL as ParentExtracted, bM as PickListDocument, bN as PickListItem, bO as PickListItemInput, bP as Pipeline, bQ as PipelineColumn, bR as PipelineDeclared, bS as PipelineGate, bT as PipelineGatePreview, bU as PipelineMissingField, bV as PipelineMoveMany, bW as PipelineMoveManyItem, bX as PipelineMoveManyResult, bY as PipelineMoveResult, bZ as PipelineMoveVerdict, b_ as PipelineRule, b$ as PipelineRuleKind, c0 as PipelineSpec, c1 as PipelineStage, c2 as PipelineVerdict, c3 as PromotedPredicate, c4 as PublishBinding, c5 as PublishBindingKind, c6 as QueryPlan, c7 as ROW_LABEL_FORMULA_MAX_LENGTH, c8 as ROW_WEB_NOT_READY, c9 as RecordChangeAction, ca as RecordComment, cb as RecordEvent, cc as RecordHeader, cd as RecordHistoryEntry, ce as RecordQuery, cf as RecordRowControls, cg as RecordScopeComment, ch as RecordScopeContext, ci as RecordScopeField, cj as RecordScopeHistoryEntry, ck as RecordScopeRelation, cl as RecordScopeWithheld, cm as RecordSplit, R as RecordsClient, cn as RecordsMerged, co as RegisteredTable, cp as ResolvedPublishBinding, cq as ResolvedPublishBindingKind, cr as RestorePreview, cs as RestoreResult, ct as RetypeBehaviour, cu as RetypePreview, cv as RowAction, cw as RowActionStep, cx as RowDefaultsApplied, cy as SHOWN_TO_LABEL, cz as SHOWN_TO_VALUES, cA as SHOWN_TO_WHO_MAY_CHANGE, cB as STAGE_RULE_ENFORCEMENT, cC as STAGE_RULE_ON_FAIL, cD as ShownTo, cE as StagePending, cF as StagePendingOnBoard, cG as StageRuleEnforcement, cH as StageRuleOnFail, cI as StageRuleWarning, cJ as SyncAutoRefresh, cK as Table, T as TableArchiveProgress, cL as TableCapacity, cM as TableCopyInProgress, cN as TableCopySpec, cO as TableDecorations, cP as TableDuplicateProgress, cQ as TableDuplicated, cR as TableFact, cS as TableHome, cT as TableHomeDestination, cU as TableLevel, cV as TableLevelApproval, cW as TableLevelFacts, cX as TableLevelSet, cY as TableListEntry, cZ as TableLiveLocation, c_ as TableMoved, c$ as TablePlacement, d0 as TablePlacementFact, d1 as TableReaderRule, d2 as TableRestoreProgress, d3 as TableRowCount, d4 as TableRowDefaults, d5 as TableRowDefaultsPatch, d6 as TableRowLabel, d7 as TableSyncAnswer, d8 as TableSyncResult, d9 as TableSyncSettings, da as TableSyncSource, db as TableSyncSourceDocument, dc as TableSyncSpec, dd as TableWebhook, de as TableWebhookDeclared, df as TypedChoiceDecision, dg as ViewLayout, dh as ViewOrderSet, di as WorkApprovalDecision, dj as WorkApprovalFiled, dk as WorkApprovalState, dl as WorkApprover, dm as WorkAssignment, dn as WorkAssignmentField, dp as WorkChange, dq as WorkDecideMany, dr as WorkDecideManyItem, ds as WorkDecideManyResult, dt as WorkDecideVerdict, du as WorkDueState, dv as WorkGraph, dw as WorkInboxItem, dx as WorkInboxKind, dy as WorkInboxView, dz as WorkInstantiation, dA as WorkListFlavour, dB as WorkListItem, dC as WorkOrigin, dD as WorkRecordState, dE as WorkSlotHold, dF as WorkState, dG as WorkTemplateNode, dH as WorkTemplateRelation, dI as WorkTurn, dJ as actionRefusals, dK as archivedByLine, dL as archivedWhen, dM as asChoiceNudge, dN as asWriteConflict, dO as automationWebhookUrl, dP as choiceSlug, dQ as choiceValuesOf, dR as choicesOf, dS as clearsRowLabel, dT as createRecordsClient, dU as decideTypedChoice, dV as declareDrillDefinition, dW as drillAnswerOf, dX as drillFindingKnob, dY as emptyArchiveLine, dZ as exportPageXlsx, d_ as holdsARetiredChoice, d$ as intersectIds, e0 as isAPersonsRefusal, e1 as isArchiveLane, e2 as isFoundation, e3 as isShownTo, e4 as isTheChosen, e5 as keptGroups, e6 as keptOutOfSight, e7 as keptTableHref, e8 as levelHasShownTo, e9 as looksLikeAnId, ea as mayDrag, eb as moveConsequence, ec as moveInOrder, ed as offeredAsContext, ee as optionKey, ef as optionLabel, eg as parseFieldDrift, eh as parseTableCopiesInProgress, ei as parseTableDuplicateProgress, ej as parseTableDuplicated, ek as parseTableHome, el as parseTableMoved, em as planQuery, en as previewRetype, eo as previewRuleChange, ep as recordChangeTrigger, eq as recordSourceKey, er as recordSourceTable, es as recordsUseSentence, et as rehomeSentence, eu as removedChoicesInUse, ev as ruleThatRefuses, ew as rulesWithTopStar, ex as sameDocument, ey as scopeChip, ez as sheetSyncSpec, eA as valueConverts, eB as withRowCounts, eC as withTableFacts, eD as withTablePlacement } from '../client-
|
|
3
|
+
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, c as A_PERSONS_REFUSAL, 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, m as AsOf, n as AutomationAction, o as AutomationComparison, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRevision, w as AutomationRevisions, x as AutomationRun, y as AutomationRunStatus, z as AutomationRuns, B as AutomationSpec, C as AutomationStep, D as AutomationTested, E as AutomationToken, G as AutomationTrigger, H as AutomationValue, I as AutomationValues, J as AutomationWeekday, K as AutomationWhen, L as BUILT_KIND_WORD, M as CHOICE_NUDGES, N as CaptureField, O as CaptureFileRef, P as CaptureOutcome, Q as CaptureQuestion, S as CaptureSheetFace, U as CaptureSheetSummary, V as ChecklistDeclared, W as ChecklistRequirement, X as ChecklistRequirementKind, Y as ChecklistRoleSpec, Z as ChecklistRunStarted, _ as ChecklistRunStep, $ as ChecklistRunSummary, a0 as ChecklistSpec, a1 as ChecklistStepCompleted, a2 as ChecklistStepSpec, a3 as ChecklistTemplateShape, a4 as ChecklistTemplateSummary, a5 as ChecklistTrigger, a6 as ChecklistTriggerKind, a7 as ChoiceCellBack, a8 as ChoiceLike, a9 as ChoiceNudge, aa as ChoiceOption, ab as ChoiceRehome, ac as ChoiceUsage, ad as ChoicesRehomed, ae as CommentThreadRead, af as CommentWritten, ag as ConversationScope, ah as ConversationScopeContext, ai as CustomFieldTableType, aj as DEFAULT_ARCHIVE_LANE, ak as DEFAULT_PAGE_SIZE, al as DRILL_CHART_TOKENS, am as DRILL_DESCRIPTION_MAX, an as DRILL_DOORS, ao as DRILL_SCHEMA, ap as DataHomeTable, aq as DecorationColor, ar as DecorationPath, as as DecorationRule, at as DecorationRuleOp, au as DecorationTarget, av as DocRenderRow, aw as DocSignatureCheck, ax as DocSignatureRow, ay as DocTemplateRow, az as DocToken, aA as DocUnresolvedToken, aB as DrillAdHocOp, aC as DrillAnswer, aD as DrillAnswerRow, aE as DrillChartToken, aF as DrillDeclaration, aG as DrillDefinition, aH as DrillDimension, aI as DrillFinding, aJ as DrillGrain, aK as DrillHaving, aL as DrillLane, aM as DrillLevel, aN as DrillMeasure, aO as DrillMeasureOp, aP as DrillMeasureWhereValue, aQ as DrillPath, aR as DrillQuestion, aS as DrillRecords, aT as DrillRowsPage, aU as DrillSource, aV as DrillView, aW as EnrichAlternate, aX as EnrichCell, aY as EnrichDeclared, aZ as EnrichDueRow, a_ as EnrichRun, a$ as EnrichSource, b0 as Enrichment, b1 as EnrichmentSummary, b2 as EntityBackLinkItem, b3 as EntityBackLinks, b4 as EntityFieldRights, b5 as EntityFieldValue, b6 as EntityFieldsAcross, b7 as EntityRecordMatch, b8 as EntityRecordRead, b9 as EntityRecordsFound, ba as EntityRowWritten, bb as EntityTableFacts, bc as ExternalPrincipalCard, F as FieldDrift, bd as FieldDriftAspect, be as FieldHistoryEntry, bf as FieldRetyped, bg as FormArchiveAnswer, bh as FormulaParse, bi as FormulaPreview, bj as GridLayout, bk as GridLayoutMode, bl as GridRowHeight, bm as HistoryActor, bn as HistoryActorKind, bo as HistoryChange, bp as Home, bq as ImportBatchResult, br as ImportColumnPlan, bs as ImportColumnsDeclared, bt as ImportFinished, bu as ImportOpened, bv as ImportOutcome, bw as ImportPlan, bx as ImportPolicy, by as ImportProposal, bz as ImportReport, bA as ImportRun, bB as InboundAddress, bC as InboundDeclared, bD as InboxCounts, bE as InboxStateChange, bF as IoExportPage, bG as MigrationEntry, bH as MigrationUndone, bI as NewEntityFieldDeclaration, bJ as OutsideShareAnswer, bK as PIPELINE_RULE_KINDS, bL as ParentExtracted, bM as PickListDocument, bN as PickListItem, bO as PickListItemInput, bP as Pipeline, bQ as PipelineColumn, bR as PipelineDeclared, bS as PipelineGate, bT as PipelineGatePreview, bU as PipelineMissingField, bV as PipelineMoveMany, bW as PipelineMoveManyItem, bX as PipelineMoveManyResult, bY as PipelineMoveResult, bZ as PipelineMoveVerdict, b_ as PipelineRule, b$ as PipelineRuleKind, c0 as PipelineSpec, c1 as PipelineStage, c2 as PipelineVerdict, c3 as PromotedPredicate, c4 as PublishBinding, c5 as PublishBindingKind, c6 as QueryPlan, c7 as ROW_LABEL_FORMULA_MAX_LENGTH, c8 as ROW_WEB_NOT_READY, c9 as RecordChangeAction, ca as RecordComment, cb as RecordEvent, cc as RecordHeader, cd as RecordHistoryEntry, ce as RecordQuery, cf as RecordRowControls, cg as RecordScopeComment, ch as RecordScopeContext, ci as RecordScopeField, cj as RecordScopeHistoryEntry, ck as RecordScopeRelation, cl as RecordScopeWithheld, cm as RecordSplit, R as RecordsClient, cn as RecordsMerged, co as RegisteredTable, cp as ResolvedPublishBinding, cq as ResolvedPublishBindingKind, cr as RestorePreview, cs as RestoreResult, ct as RetypeBehaviour, cu as RetypePreview, cv as RowAction, cw as RowActionStep, cx as RowDefaultsApplied, cy as SHOWN_TO_LABEL, cz as SHOWN_TO_VALUES, cA as SHOWN_TO_WHO_MAY_CHANGE, cB as STAGE_RULE_ENFORCEMENT, cC as STAGE_RULE_ON_FAIL, cD as ShownTo, cE as StagePending, cF as StagePendingOnBoard, cG as StageRuleEnforcement, cH as StageRuleOnFail, cI as StageRuleWarning, cJ as SyncAutoRefresh, cK as Table, T as TableArchiveProgress, cL as TableCapacity, cM as TableCopyInProgress, cN as TableCopySpec, cO as TableDecorations, cP as TableDuplicateProgress, cQ as TableDuplicated, cR as TableFact, cS as TableHome, cT as TableHomeDestination, cU as TableLevel, cV as TableLevelApproval, cW as TableLevelFacts, cX as TableLevelSet, cY as TableListEntry, cZ as TableLiveLocation, c_ as TableMoved, c$ as TablePlacement, d0 as TablePlacementFact, d1 as TableReaderRule, d2 as TableRestoreProgress, d3 as TableRowCount, d4 as TableRowDefaults, d5 as TableRowDefaultsPatch, d6 as TableRowLabel, d7 as TableSyncAnswer, d8 as TableSyncResult, d9 as TableSyncSettings, da as TableSyncSource, db as TableSyncSourceDocument, dc as TableSyncSpec, dd as TableWebhook, de as TableWebhookDeclared, df as TypedChoiceDecision, dg as ViewLayout, dh as ViewOrderSet, di as WorkApprovalDecision, dj as WorkApprovalFiled, dk as WorkApprovalState, dl as WorkApprover, dm as WorkAssignment, dn as WorkAssignmentField, dp as WorkChange, dq as WorkDecideMany, dr as WorkDecideManyItem, ds as WorkDecideManyResult, dt as WorkDecideVerdict, du as WorkDueState, dv as WorkGraph, dw as WorkInboxItem, dx as WorkInboxKind, dy as WorkInboxView, dz as WorkInstantiation, dA as WorkListFlavour, dB as WorkListItem, dC as WorkOrigin, dD as WorkRecordState, dE as WorkSlotHold, dF as WorkState, dG as WorkTemplateNode, dH as WorkTemplateRelation, dI as WorkTurn, dJ as actionRefusals, dK as archivedByLine, dL as archivedWhen, dM as asChoiceNudge, dN as asWriteConflict, dO as automationWebhookUrl, dP as choiceSlug, dQ as choiceValuesOf, dR as choicesOf, dS as clearsRowLabel, dT as createRecordsClient, dU as decideTypedChoice, dV as declareDrillDefinition, dW as drillAnswerOf, dX as drillFindingKnob, dY as emptyArchiveLine, dZ as exportPageXlsx, d_ as holdsARetiredChoice, d$ as intersectIds, e0 as isAPersonsRefusal, e1 as isArchiveLane, e2 as isFoundation, e3 as isShownTo, e4 as isTheChosen, e5 as keptGroups, e6 as keptOutOfSight, e7 as keptTableHref, e8 as levelHasShownTo, e9 as looksLikeAnId, ea as mayDrag, eb as moveConsequence, ec as moveInOrder, ed as offeredAsContext, ee as optionKey, ef as optionLabel, eg as parseFieldDrift, eh as parseTableCopiesInProgress, ei as parseTableDuplicateProgress, ej as parseTableDuplicated, ek as parseTableHome, el as parseTableMoved, em as planQuery, en as previewRetype, eo as previewRuleChange, ep as recordChangeTrigger, eq as recordSourceKey, er as recordSourceTable, es as recordsUseSentence, et as rehomeSentence, eu as removedChoicesInUse, ev as ruleThatRefuses, ew as rulesWithTopStar, ex as sameDocument, ey as scopeChip, ez as sheetSyncSpec, eA as valueConverts, eB as withRowCounts, eC as withTableFacts, eD as withTablePlacement } from '../client-B7KEs9hi.cjs';
|
|
4
4
|
import { d as RecordsDataSource } from '../ports-iATV-A2v.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-iATV-A2v.cjs';
|
|
6
6
|
import { F as Field } from '../field-ppX29ddi.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-ppX29ddi.cjs';
|
|
8
|
-
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, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, pointAtCopies, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, restoreSnapshot, snapshotBase, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.cjs';
|
|
8
|
+
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
9
|
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-BQwUtKk5.cjs';
|
|
10
10
|
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-ffH13fsE.cjs';
|
|
11
11
|
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-Ba8RKtPA.cjs';
|
|
@@ -13,7 +13,7 @@ export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as
|
|
|
13
13
|
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-Cu73SBxH.cjs';
|
|
14
14
|
import { TableKindFacts } from '../table-kind/index.cjs';
|
|
15
15
|
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-
|
|
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-enQs2N0E.cjs';
|
|
17
17
|
import '../doors-KbjyhBW-.cjs';
|
|
18
18
|
|
|
19
19
|
declare function doorExists(name: string): boolean;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as RecordsError, R as RecordsResult, P as PgError, q as StaleWriteDetail, n as RecordDocument, r as PredictedRefusal, s as ReadValue, U as Uuid } from '../record-C8q21jjB.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, B as Delivery, E as ENTITY_TOKENS, G as EntityToken, I as FIELD_SENSITIVITIES, J as FIELD_SOURCES, K as FORMULA_NODE_RESULTS, L as FRESHNESS, o as FieldBehavior, c as FieldSensitivity, F as FieldSource, M as ForbiddenEnvelopeWord, N as Freshness, H as HiddenFieldNotice, Q as KERNEL_TABLES, V as KernelTableName, W as KeysetRow, X as MERGE_FIELD_MODIFIERS, Y as MERGE_FIELD_SEMANTIC_TYPES, Z as MERGE_FIELD_SOURCES, _ as MergeFieldModifier, $ as MergeFieldSemanticType, a0 as MergeFieldSource, a1 as ON_DELETE, a2 as OVERRIDE_POLICIES, O as OnDelete, a3 as OverridePolicy, a4 as PARITY_FIELD_TYPES, a5 as PER_VALUE_ACCESS_WORDS, p as ParityFieldType, a6 as PerValueAccessWord, a7 as ProvenancePointer, a8 as RELATION_BINDINGS, a9 as RELATION_CARDINALITIES, aa as RELATION_FLAVORS, ab as RETIRED_ACTOR_WORDS, ac as RULE_NODE_KINDS, ad as RULE_USES, l as ReadRow, ae as RecordChange, af as RecordChangeResult, ag as RecordGraphWritten, ah as RecordKeysetPage, ai as RecordPage, k as RecordPageSort, aj as RecordRead, ak as RecordRevision, m as RecordsErrorCode, g as RelationBinding, f as RelationCardinality, e as RelationFlavor, al as RetiredActorWord, i as RuleNodeKind, j as RuleUse, am as STORAGE_MODES, an as STORE_DOORS, ao as STORE_KNOBS, ap as STORE_REFUSAL_CODES, 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-C8q21jjB.js';
|
|
3
|
-
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, c as A_PERSONS_REFUSAL, 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, m as AsOf, n as AutomationAction, o as AutomationComparison, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRevision, w as AutomationRevisions, x as AutomationRun, y as AutomationRunStatus, z as AutomationRuns, B as AutomationSpec, C as AutomationStep, D as AutomationTested, E as AutomationToken, G as AutomationTrigger, H as AutomationValue, I as AutomationValues, J as AutomationWeekday, K as AutomationWhen, L as BUILT_KIND_WORD, M as CHOICE_NUDGES, N as CaptureField, O as CaptureFileRef, P as CaptureOutcome, Q as CaptureQuestion, S as CaptureSheetFace, U as CaptureSheetSummary, V as ChecklistDeclared, W as ChecklistRequirement, X as ChecklistRequirementKind, Y as ChecklistRoleSpec, Z as ChecklistRunStarted, _ as ChecklistRunStep, $ as ChecklistRunSummary, a0 as ChecklistSpec, a1 as ChecklistStepCompleted, a2 as ChecklistStepSpec, a3 as ChecklistTemplateShape, a4 as ChecklistTemplateSummary, a5 as ChecklistTrigger, a6 as ChecklistTriggerKind, a7 as ChoiceCellBack, a8 as ChoiceLike, a9 as ChoiceNudge, aa as ChoiceOption, ab as ChoiceRehome, ac as ChoiceUsage, ad as ChoicesRehomed, ae as CommentThreadRead, af as CommentWritten, ag as ConversationScope, ah as ConversationScopeContext, ai as CustomFieldTableType, aj as DEFAULT_ARCHIVE_LANE, ak as DEFAULT_PAGE_SIZE, al as DRILL_CHART_TOKENS, am as DRILL_DESCRIPTION_MAX, an as DRILL_DOORS, ao as DRILL_SCHEMA, ap as DataHomeTable, aq as DecorationColor, ar as DecorationPath, as as DecorationRule, at as DecorationRuleOp, au as DecorationTarget, av as DocRenderRow, aw as DocSignatureCheck, ax as DocSignatureRow, ay as DocTemplateRow, az as DocToken, aA as DocUnresolvedToken, aB as DrillAdHocOp, aC as DrillAnswer, aD as DrillAnswerRow, aE as DrillChartToken, aF as DrillDeclaration, aG as DrillDefinition, aH as DrillDimension, aI as DrillFinding, aJ as DrillGrain, aK as DrillHaving, aL as DrillLane, aM as DrillLevel, aN as DrillMeasure, aO as DrillMeasureOp, aP as DrillMeasureWhereValue, aQ as DrillPath, aR as DrillQuestion, aS as DrillRecords, aT as DrillRowsPage, aU as DrillSource, aV as DrillView, aW as EnrichAlternate, aX as EnrichCell, aY as EnrichDeclared, aZ as EnrichDueRow, a_ as EnrichRun, a$ as EnrichSource, b0 as Enrichment, b1 as EnrichmentSummary, b2 as EntityBackLinkItem, b3 as EntityBackLinks, b4 as EntityFieldRights, b5 as EntityFieldValue, b6 as EntityFieldsAcross, b7 as EntityRecordMatch, b8 as EntityRecordRead, b9 as EntityRecordsFound, ba as EntityRowWritten, bb as EntityTableFacts, bc as ExternalPrincipalCard, F as FieldDrift, bd as FieldDriftAspect, be as FieldHistoryEntry, bf as FieldRetyped, bg as FormArchiveAnswer, bh as FormulaParse, bi as FormulaPreview, bj as GridLayout, bk as GridLayoutMode, bl as GridRowHeight, bm as HistoryActor, bn as HistoryActorKind, bo as HistoryChange, bp as Home, bq as ImportBatchResult, br as ImportColumnPlan, bs as ImportColumnsDeclared, bt as ImportFinished, bu as ImportOpened, bv as ImportOutcome, bw as ImportPlan, bx as ImportPolicy, by as ImportProposal, bz as ImportReport, bA as ImportRun, bB as InboundAddress, bC as InboundDeclared, bD as InboxCounts, bE as InboxStateChange, bF as IoExportPage, bG as MigrationEntry, bH as MigrationUndone, bI as NewEntityFieldDeclaration, bJ as OutsideShareAnswer, bK as PIPELINE_RULE_KINDS, bL as ParentExtracted, bM as PickListDocument, bN as PickListItem, bO as PickListItemInput, bP as Pipeline, bQ as PipelineColumn, bR as PipelineDeclared, bS as PipelineGate, bT as PipelineGatePreview, bU as PipelineMissingField, bV as PipelineMoveMany, bW as PipelineMoveManyItem, bX as PipelineMoveManyResult, bY as PipelineMoveResult, bZ as PipelineMoveVerdict, b_ as PipelineRule, b$ as PipelineRuleKind, c0 as PipelineSpec, c1 as PipelineStage, c2 as PipelineVerdict, c3 as PromotedPredicate, c4 as PublishBinding, c5 as PublishBindingKind, c6 as QueryPlan, c7 as ROW_LABEL_FORMULA_MAX_LENGTH, c8 as ROW_WEB_NOT_READY, c9 as RecordChangeAction, ca as RecordComment, cb as RecordEvent, cc as RecordHeader, cd as RecordHistoryEntry, ce as RecordQuery, cf as RecordRowControls, cg as RecordScopeComment, ch as RecordScopeContext, ci as RecordScopeField, cj as RecordScopeHistoryEntry, ck as RecordScopeRelation, cl as RecordScopeWithheld, cm as RecordSplit, R as RecordsClient, cn as RecordsMerged, co as RegisteredTable, cp as ResolvedPublishBinding, cq as ResolvedPublishBindingKind, cr as RestorePreview, cs as RestoreResult, ct as RetypeBehaviour, cu as RetypePreview, cv as RowAction, cw as RowActionStep, cx as RowDefaultsApplied, cy as SHOWN_TO_LABEL, cz as SHOWN_TO_VALUES, cA as SHOWN_TO_WHO_MAY_CHANGE, cB as STAGE_RULE_ENFORCEMENT, cC as STAGE_RULE_ON_FAIL, cD as ShownTo, cE as StagePending, cF as StagePendingOnBoard, cG as StageRuleEnforcement, cH as StageRuleOnFail, cI as StageRuleWarning, cJ as SyncAutoRefresh, cK as Table, T as TableArchiveProgress, cL as TableCapacity, cM as TableCopyInProgress, cN as TableCopySpec, cO as TableDecorations, cP as TableDuplicateProgress, cQ as TableDuplicated, cR as TableFact, cS as TableHome, cT as TableHomeDestination, cU as TableLevel, cV as TableLevelApproval, cW as TableLevelFacts, cX as TableLevelSet, cY as TableListEntry, cZ as TableLiveLocation, c_ as TableMoved, c$ as TablePlacement, d0 as TablePlacementFact, d1 as TableReaderRule, d2 as TableRestoreProgress, d3 as TableRowCount, d4 as TableRowDefaults, d5 as TableRowDefaultsPatch, d6 as TableRowLabel, d7 as TableSyncAnswer, d8 as TableSyncResult, d9 as TableSyncSettings, da as TableSyncSource, db as TableSyncSourceDocument, dc as TableSyncSpec, dd as TableWebhook, de as TableWebhookDeclared, df as TypedChoiceDecision, dg as ViewLayout, dh as ViewOrderSet, di as WorkApprovalDecision, dj as WorkApprovalFiled, dk as WorkApprovalState, dl as WorkApprover, dm as WorkAssignment, dn as WorkAssignmentField, dp as WorkChange, dq as WorkDecideMany, dr as WorkDecideManyItem, ds as WorkDecideManyResult, dt as WorkDecideVerdict, du as WorkDueState, dv as WorkGraph, dw as WorkInboxItem, dx as WorkInboxKind, dy as WorkInboxView, dz as WorkInstantiation, dA as WorkListFlavour, dB as WorkListItem, dC as WorkOrigin, dD as WorkRecordState, dE as WorkSlotHold, dF as WorkState, dG as WorkTemplateNode, dH as WorkTemplateRelation, dI as WorkTurn, dJ as actionRefusals, dK as archivedByLine, dL as archivedWhen, dM as asChoiceNudge, dN as asWriteConflict, dO as automationWebhookUrl, dP as choiceSlug, dQ as choiceValuesOf, dR as choicesOf, dS as clearsRowLabel, dT as createRecordsClient, dU as decideTypedChoice, dV as declareDrillDefinition, dW as drillAnswerOf, dX as drillFindingKnob, dY as emptyArchiveLine, dZ as exportPageXlsx, d_ as holdsARetiredChoice, d$ as intersectIds, e0 as isAPersonsRefusal, e1 as isArchiveLane, e2 as isFoundation, e3 as isShownTo, e4 as isTheChosen, e5 as keptGroups, e6 as keptOutOfSight, e7 as keptTableHref, e8 as levelHasShownTo, e9 as looksLikeAnId, ea as mayDrag, eb as moveConsequence, ec as moveInOrder, ed as offeredAsContext, ee as optionKey, ef as optionLabel, eg as parseFieldDrift, eh as parseTableCopiesInProgress, ei as parseTableDuplicateProgress, ej as parseTableDuplicated, ek as parseTableHome, el as parseTableMoved, em as planQuery, en as previewRetype, eo as previewRuleChange, ep as recordChangeTrigger, eq as recordSourceKey, er as recordSourceTable, es as recordsUseSentence, et as rehomeSentence, eu as removedChoicesInUse, ev as ruleThatRefuses, ew as rulesWithTopStar, ex as sameDocument, ey as scopeChip, ez as sheetSyncSpec, eA as valueConverts, eB as withRowCounts, eC as withTableFacts, eD as withTablePlacement } from '../client-
|
|
3
|
+
export { A as ARCHIVE_LANES, a as ARCHIVE_LANE_LABEL, b as ARCHIVE_LANE_MEANS, c as A_PERSONS_REFUSAL, 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, m as AsOf, n as AutomationAction, o as AutomationComparison, p as AutomationDeclared, q as AutomationFilter, r as AutomationFlipped, s as AutomationItem, t as AutomationLastRun, u as AutomationList, v as AutomationRevision, w as AutomationRevisions, x as AutomationRun, y as AutomationRunStatus, z as AutomationRuns, B as AutomationSpec, C as AutomationStep, D as AutomationTested, E as AutomationToken, G as AutomationTrigger, H as AutomationValue, I as AutomationValues, J as AutomationWeekday, K as AutomationWhen, L as BUILT_KIND_WORD, M as CHOICE_NUDGES, N as CaptureField, O as CaptureFileRef, P as CaptureOutcome, Q as CaptureQuestion, S as CaptureSheetFace, U as CaptureSheetSummary, V as ChecklistDeclared, W as ChecklistRequirement, X as ChecklistRequirementKind, Y as ChecklistRoleSpec, Z as ChecklistRunStarted, _ as ChecklistRunStep, $ as ChecklistRunSummary, a0 as ChecklistSpec, a1 as ChecklistStepCompleted, a2 as ChecklistStepSpec, a3 as ChecklistTemplateShape, a4 as ChecklistTemplateSummary, a5 as ChecklistTrigger, a6 as ChecklistTriggerKind, a7 as ChoiceCellBack, a8 as ChoiceLike, a9 as ChoiceNudge, aa as ChoiceOption, ab as ChoiceRehome, ac as ChoiceUsage, ad as ChoicesRehomed, ae as CommentThreadRead, af as CommentWritten, ag as ConversationScope, ah as ConversationScopeContext, ai as CustomFieldTableType, aj as DEFAULT_ARCHIVE_LANE, ak as DEFAULT_PAGE_SIZE, al as DRILL_CHART_TOKENS, am as DRILL_DESCRIPTION_MAX, an as DRILL_DOORS, ao as DRILL_SCHEMA, ap as DataHomeTable, aq as DecorationColor, ar as DecorationPath, as as DecorationRule, at as DecorationRuleOp, au as DecorationTarget, av as DocRenderRow, aw as DocSignatureCheck, ax as DocSignatureRow, ay as DocTemplateRow, az as DocToken, aA as DocUnresolvedToken, aB as DrillAdHocOp, aC as DrillAnswer, aD as DrillAnswerRow, aE as DrillChartToken, aF as DrillDeclaration, aG as DrillDefinition, aH as DrillDimension, aI as DrillFinding, aJ as DrillGrain, aK as DrillHaving, aL as DrillLane, aM as DrillLevel, aN as DrillMeasure, aO as DrillMeasureOp, aP as DrillMeasureWhereValue, aQ as DrillPath, aR as DrillQuestion, aS as DrillRecords, aT as DrillRowsPage, aU as DrillSource, aV as DrillView, aW as EnrichAlternate, aX as EnrichCell, aY as EnrichDeclared, aZ as EnrichDueRow, a_ as EnrichRun, a$ as EnrichSource, b0 as Enrichment, b1 as EnrichmentSummary, b2 as EntityBackLinkItem, b3 as EntityBackLinks, b4 as EntityFieldRights, b5 as EntityFieldValue, b6 as EntityFieldsAcross, b7 as EntityRecordMatch, b8 as EntityRecordRead, b9 as EntityRecordsFound, ba as EntityRowWritten, bb as EntityTableFacts, bc as ExternalPrincipalCard, F as FieldDrift, bd as FieldDriftAspect, be as FieldHistoryEntry, bf as FieldRetyped, bg as FormArchiveAnswer, bh as FormulaParse, bi as FormulaPreview, bj as GridLayout, bk as GridLayoutMode, bl as GridRowHeight, bm as HistoryActor, bn as HistoryActorKind, bo as HistoryChange, bp as Home, bq as ImportBatchResult, br as ImportColumnPlan, bs as ImportColumnsDeclared, bt as ImportFinished, bu as ImportOpened, bv as ImportOutcome, bw as ImportPlan, bx as ImportPolicy, by as ImportProposal, bz as ImportReport, bA as ImportRun, bB as InboundAddress, bC as InboundDeclared, bD as InboxCounts, bE as InboxStateChange, bF as IoExportPage, bG as MigrationEntry, bH as MigrationUndone, bI as NewEntityFieldDeclaration, bJ as OutsideShareAnswer, bK as PIPELINE_RULE_KINDS, bL as ParentExtracted, bM as PickListDocument, bN as PickListItem, bO as PickListItemInput, bP as Pipeline, bQ as PipelineColumn, bR as PipelineDeclared, bS as PipelineGate, bT as PipelineGatePreview, bU as PipelineMissingField, bV as PipelineMoveMany, bW as PipelineMoveManyItem, bX as PipelineMoveManyResult, bY as PipelineMoveResult, bZ as PipelineMoveVerdict, b_ as PipelineRule, b$ as PipelineRuleKind, c0 as PipelineSpec, c1 as PipelineStage, c2 as PipelineVerdict, c3 as PromotedPredicate, c4 as PublishBinding, c5 as PublishBindingKind, c6 as QueryPlan, c7 as ROW_LABEL_FORMULA_MAX_LENGTH, c8 as ROW_WEB_NOT_READY, c9 as RecordChangeAction, ca as RecordComment, cb as RecordEvent, cc as RecordHeader, cd as RecordHistoryEntry, ce as RecordQuery, cf as RecordRowControls, cg as RecordScopeComment, ch as RecordScopeContext, ci as RecordScopeField, cj as RecordScopeHistoryEntry, ck as RecordScopeRelation, cl as RecordScopeWithheld, cm as RecordSplit, R as RecordsClient, cn as RecordsMerged, co as RegisteredTable, cp as ResolvedPublishBinding, cq as ResolvedPublishBindingKind, cr as RestorePreview, cs as RestoreResult, ct as RetypeBehaviour, cu as RetypePreview, cv as RowAction, cw as RowActionStep, cx as RowDefaultsApplied, cy as SHOWN_TO_LABEL, cz as SHOWN_TO_VALUES, cA as SHOWN_TO_WHO_MAY_CHANGE, cB as STAGE_RULE_ENFORCEMENT, cC as STAGE_RULE_ON_FAIL, cD as ShownTo, cE as StagePending, cF as StagePendingOnBoard, cG as StageRuleEnforcement, cH as StageRuleOnFail, cI as StageRuleWarning, cJ as SyncAutoRefresh, cK as Table, T as TableArchiveProgress, cL as TableCapacity, cM as TableCopyInProgress, cN as TableCopySpec, cO as TableDecorations, cP as TableDuplicateProgress, cQ as TableDuplicated, cR as TableFact, cS as TableHome, cT as TableHomeDestination, cU as TableLevel, cV as TableLevelApproval, cW as TableLevelFacts, cX as TableLevelSet, cY as TableListEntry, cZ as TableLiveLocation, c_ as TableMoved, c$ as TablePlacement, d0 as TablePlacementFact, d1 as TableReaderRule, d2 as TableRestoreProgress, d3 as TableRowCount, d4 as TableRowDefaults, d5 as TableRowDefaultsPatch, d6 as TableRowLabel, d7 as TableSyncAnswer, d8 as TableSyncResult, d9 as TableSyncSettings, da as TableSyncSource, db as TableSyncSourceDocument, dc as TableSyncSpec, dd as TableWebhook, de as TableWebhookDeclared, df as TypedChoiceDecision, dg as ViewLayout, dh as ViewOrderSet, di as WorkApprovalDecision, dj as WorkApprovalFiled, dk as WorkApprovalState, dl as WorkApprover, dm as WorkAssignment, dn as WorkAssignmentField, dp as WorkChange, dq as WorkDecideMany, dr as WorkDecideManyItem, ds as WorkDecideManyResult, dt as WorkDecideVerdict, du as WorkDueState, dv as WorkGraph, dw as WorkInboxItem, dx as WorkInboxKind, dy as WorkInboxView, dz as WorkInstantiation, dA as WorkListFlavour, dB as WorkListItem, dC as WorkOrigin, dD as WorkRecordState, dE as WorkSlotHold, dF as WorkState, dG as WorkTemplateNode, dH as WorkTemplateRelation, dI as WorkTurn, dJ as actionRefusals, dK as archivedByLine, dL as archivedWhen, dM as asChoiceNudge, dN as asWriteConflict, dO as automationWebhookUrl, dP as choiceSlug, dQ as choiceValuesOf, dR as choicesOf, dS as clearsRowLabel, dT as createRecordsClient, dU as decideTypedChoice, dV as declareDrillDefinition, dW as drillAnswerOf, dX as drillFindingKnob, dY as emptyArchiveLine, dZ as exportPageXlsx, d_ as holdsARetiredChoice, d$ as intersectIds, e0 as isAPersonsRefusal, e1 as isArchiveLane, e2 as isFoundation, e3 as isShownTo, e4 as isTheChosen, e5 as keptGroups, e6 as keptOutOfSight, e7 as keptTableHref, e8 as levelHasShownTo, e9 as looksLikeAnId, ea as mayDrag, eb as moveConsequence, ec as moveInOrder, ed as offeredAsContext, ee as optionKey, ef as optionLabel, eg as parseFieldDrift, eh as parseTableCopiesInProgress, ei as parseTableDuplicateProgress, ej as parseTableDuplicated, ek as parseTableHome, el as parseTableMoved, em as planQuery, en as previewRetype, eo as previewRuleChange, ep as recordChangeTrigger, eq as recordSourceKey, er as recordSourceTable, es as recordsUseSentence, et as rehomeSentence, eu as removedChoicesInUse, ev as ruleThatRefuses, ew as rulesWithTopStar, ex as sameDocument, ey as scopeChip, ez as sheetSyncSpec, eA as valueConverts, eB as withRowCounts, eC as withTableFacts, eD as withTablePlacement } from '../client-Dthx26hr.js';
|
|
4
4
|
import { d as RecordsDataSource } from '../ports-BCNNghmf.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, 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-BCNNghmf.js';
|
|
6
6
|
import { F as Field } from '../field-BHlhq24W.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, 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-BHlhq24W.js';
|
|
8
|
-
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, indexedDbStore, isAutonumberField, isDecided, localeDateOrder, memoryStore, mintClientKey, openCaptureQueue, pointAtCopies, rankTypedMatches, readTypedDate, readTypedNumber, readTypedTime, restoreSnapshot, snapshotBase, twoDigitYear, typedDateText, typedMatchScore, typedTimeText } from '../index.js';
|
|
8
|
+
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.js';
|
|
9
9
|
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-cGqclk_0.js';
|
|
10
10
|
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-DmxuUr2f.js';
|
|
11
11
|
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-eNzL9scc.js';
|
|
@@ -13,7 +13,7 @@ export { a as EntityRef, E as EntityRefWithWords, b as EntityReferenceKind, R as
|
|
|
13
13
|
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-DtR3lWG2.js';
|
|
14
14
|
import { TableKindFacts } from '../table-kind/index.js';
|
|
15
15
|
export { TABLE_KIND_PREFIX, TableRenderSchema, TableSchemaMode, fieldKindOf, isTableKind, tableIdOf, tableJsonSchema, tableKindMapping, tableKindSlug, tableRenderSchema } from '../table-kind/index.js';
|
|
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-
|
|
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-CvBu5dTJ.js';
|
|
17
17
|
import '../doors-C2-sFvAk.js';
|
|
18
18
|
|
|
19
19
|
declare function doorExists(name: string): boolean;
|
package/dist/core/index.js
CHANGED
|
@@ -1700,6 +1700,9 @@ function moveConsequence(home, to) {
|
|
|
1700
1700
|
function baseCopyName(name) {
|
|
1701
1701
|
return `${name.trim() || "Base"} (copy)`;
|
|
1702
1702
|
}
|
|
1703
|
+
function restoredBaseName(name, on) {
|
|
1704
|
+
return `${name.trim() || "Base"} (restored ${on})`;
|
|
1705
|
+
}
|
|
1703
1706
|
async function duplicateBase(port, args) {
|
|
1704
1707
|
const made = [];
|
|
1705
1708
|
const pairs = {};
|
|
@@ -1719,10 +1722,21 @@ async function duplicateBase(port, args) {
|
|
|
1719
1722
|
}
|
|
1720
1723
|
const fin = args.tables.length > 1 ? await port.finish({ organizationId: args.organizationId, pairs }) : null;
|
|
1721
1724
|
if (fin && !fin.ok) return { ok: false, error: fin.error, stoppedAt: args.tables[args.tables.length - 1], made };
|
|
1725
|
+
let homeId = null;
|
|
1726
|
+
if (args.homeName && port.createHome && port.moveInto) {
|
|
1727
|
+
const home = await port.createHome(args.homeName);
|
|
1728
|
+
if (!home.ok) return { ok: false, error: home.error, stoppedAt: args.tables[args.tables.length - 1], made };
|
|
1729
|
+
homeId = home.data;
|
|
1730
|
+
for (const m of made) {
|
|
1731
|
+
const moved = await port.moveInto(m.copy.id, homeId);
|
|
1732
|
+
if (!moved.ok) return { ok: false, error: moved.error, stoppedAt: m.from, made };
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1722
1735
|
const extras = await copyExtras(port, args.tables, pairs);
|
|
1723
1736
|
return {
|
|
1724
1737
|
ok: true,
|
|
1725
1738
|
data: {
|
|
1739
|
+
homeId,
|
|
1726
1740
|
pairs,
|
|
1727
1741
|
tables: made,
|
|
1728
1742
|
relinkedColumns: fin?.ok ? fin.data.relinked_columns : 0,
|
|
@@ -1737,10 +1751,47 @@ function pointAtCopies(doc, pairs) {
|
|
|
1737
1751
|
for (const [from, to] of Object.entries(pairs)) text2 = text2.split(from).join(to);
|
|
1738
1752
|
return JSON.parse(text2);
|
|
1739
1753
|
}
|
|
1754
|
+
function sentence(error) {
|
|
1755
|
+
const m = error?.message;
|
|
1756
|
+
return typeof m === "string" && m ? m : "the store gave no reason.";
|
|
1757
|
+
}
|
|
1758
|
+
function refusedSentence(data) {
|
|
1759
|
+
const errors = data?._errors;
|
|
1760
|
+
const lines = errors ? Object.entries(errors).map(([path, why]) => `${path}: ${why}`) : [];
|
|
1761
|
+
return lines.length ? lines.join("; ") : "the store gave no reason.";
|
|
1762
|
+
}
|
|
1763
|
+
async function idsOfCopies(port, pairs) {
|
|
1764
|
+
const ids = { ...pairs };
|
|
1765
|
+
if (!port.fieldsOf && !port.viewsOf) return ids;
|
|
1766
|
+
for (const [from, to] of Object.entries(pairs)) {
|
|
1767
|
+
if (port.fieldsOf) {
|
|
1768
|
+
const [a, b] = await Promise.all([port.fieldsOf(from), port.fieldsOf(to)]);
|
|
1769
|
+
if (a.ok && b.ok) {
|
|
1770
|
+
const byKey = new Map(b.data.map((f) => [f.key, f.id]));
|
|
1771
|
+
for (const f of a.data) {
|
|
1772
|
+
const n = byKey.get(f.key);
|
|
1773
|
+
if (n && n !== f.id) ids[f.id] = n;
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
if (port.viewsOf) {
|
|
1778
|
+
const [a, b] = await Promise.all([port.viewsOf(from), port.viewsOf(to)]);
|
|
1779
|
+
if (a.ok && b.ok) {
|
|
1780
|
+
const byName = new Map(b.data.map((v) => [v.name, v.id]));
|
|
1781
|
+
for (const v of a.data) {
|
|
1782
|
+
const n = byName.get(v.name);
|
|
1783
|
+
if (n && n !== v.id) ids[v.id] = n;
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
return ids;
|
|
1789
|
+
}
|
|
1740
1790
|
async function copyExtras(port, tables, pairs) {
|
|
1741
1791
|
let automations = 0;
|
|
1742
1792
|
let pages = 0;
|
|
1743
1793
|
const extrasRefused = [];
|
|
1794
|
+
const ids = await idsOfCopies(port, pairs);
|
|
1744
1795
|
for (const t of tables) {
|
|
1745
1796
|
const copy = pairs[t.id];
|
|
1746
1797
|
if (!copy) continue;
|
|
@@ -1748,13 +1799,14 @@ async function copyExtras(port, tables, pairs) {
|
|
|
1748
1799
|
const list = await port.automations(t.id);
|
|
1749
1800
|
if (list.ok) {
|
|
1750
1801
|
for (const a of list.data.automations) {
|
|
1751
|
-
const made = await port.automationDeclare({ table_id: copy, spec: pointAtCopies(a.spec,
|
|
1802
|
+
const made = await port.automationDeclare({ table_id: copy, spec: pointAtCopies(a.spec, ids) });
|
|
1752
1803
|
if (made.ok && made.data.ok && made.data.automation_id) {
|
|
1753
|
-
await port.automationSetEnabled?.({ automation_id: made.data.automation_id, enabled: false });
|
|
1754
|
-
|
|
1755
|
-
|
|
1804
|
+
const off = await port.automationSetEnabled?.({ automation_id: made.data.automation_id, enabled: false });
|
|
1805
|
+
if (off && !off.ok) extrasRefused.push(`Automation "${a.name}" on ${t.name} was copied but could not be switched off: ${sentence(off.error)}`);
|
|
1806
|
+
else automations += 1;
|
|
1807
|
+
} else extrasRefused.push(`Automation "${a.name}" on ${t.name} was not copied: ${made.ok ? refusedSentence(made.data) : sentence(made.error)}`);
|
|
1756
1808
|
}
|
|
1757
|
-
}
|
|
1809
|
+
} else extrasRefused.push(`The automations of ${t.name} could not be read: ${sentence(list.error)}`);
|
|
1758
1810
|
}
|
|
1759
1811
|
if (port.dashboards && port.dashboardDeclare) {
|
|
1760
1812
|
const list = await port.dashboards(t.id);
|
|
@@ -1763,13 +1815,13 @@ async function copyExtras(port, tables, pairs) {
|
|
|
1763
1815
|
const made = await port.dashboardDeclare({
|
|
1764
1816
|
table_id: copy,
|
|
1765
1817
|
name: d.name,
|
|
1766
|
-
blocks: pointAtCopies(d.blocks,
|
|
1767
|
-
presentation: pointAtCopies(d.presentation,
|
|
1818
|
+
blocks: pointAtCopies(d.blocks, ids),
|
|
1819
|
+
presentation: pointAtCopies(d.presentation, ids)
|
|
1768
1820
|
});
|
|
1769
1821
|
if (made.ok) pages += 1;
|
|
1770
|
-
else extrasRefused.push(`Page "${d.name}" on ${t.name} was not copied
|
|
1822
|
+
else extrasRefused.push(`Page "${d.name}" on ${t.name} was not copied: ${sentence(made.error)}`);
|
|
1771
1823
|
}
|
|
1772
|
-
}
|
|
1824
|
+
} else extrasRefused.push(`The pages of ${t.name} could not be read: ${sentence(list.error)}`);
|
|
1773
1825
|
}
|
|
1774
1826
|
}
|
|
1775
1827
|
return { automations, pages, extrasRefused };
|
|
@@ -1808,6 +1860,7 @@ async function restoreSnapshot(port, args) {
|
|
|
1808
1860
|
tables: sources,
|
|
1809
1861
|
withRecords: true,
|
|
1810
1862
|
nameFor: (t) => `${byCopy.get(t.id) ?? t.name} (restored)`,
|
|
1863
|
+
homeName: restoredBaseName(args.baseName ?? "Base", args.restoredOn ?? (/* @__PURE__ */ new Date()).toLocaleDateString()),
|
|
1811
1864
|
...args.onProgress ? { onProgress: args.onProgress } : {}
|
|
1812
1865
|
});
|
|
1813
1866
|
for (const s of sources) await port.archive?.(s.id);
|
|
@@ -7874,6 +7927,15 @@ function createRecordsClient(given) {
|
|
|
7874
7927
|
}
|
|
7875
7928
|
return result;
|
|
7876
7929
|
},
|
|
7930
|
+
async recordReparent({ record_id, parent_id }) {
|
|
7931
|
+
const result = await callDoor(
|
|
7932
|
+
DOORS.recordReparent,
|
|
7933
|
+
{ p_organization_id: org, p_record_id: record_id, p_parent_id: parent_id },
|
|
7934
|
+
"recordReparent"
|
|
7935
|
+
);
|
|
7936
|
+
if (result.ok) announceRecordChanged(record_id);
|
|
7937
|
+
return result;
|
|
7938
|
+
},
|
|
7877
7939
|
async recordRestore({ record_id }) {
|
|
7878
7940
|
const result = await callDoor(
|
|
7879
7941
|
DOORS.recordRestore,
|
|
@@ -8421,7 +8483,9 @@ function createRecordsClient(given) {
|
|
|
8421
8483
|
}
|
|
8422
8484
|
const tables = read.map((row) => {
|
|
8423
8485
|
const { document } = unfold(row.document);
|
|
8424
|
-
|
|
8486
|
+
const doc = document;
|
|
8487
|
+
const home = typeof doc.home_id === "string" ? doc.home_id : typeof doc.parent_id === "string" ? doc.parent_id : null;
|
|
8488
|
+
return { ...doc, home_id: home, id: row.id, organization_id: org };
|
|
8425
8489
|
});
|
|
8426
8490
|
tables.sort((a, b) => (a.name ?? "").localeCompare(b.name ?? ""));
|
|
8427
8491
|
return ok(tables);
|
|
@@ -12158,6 +12222,7 @@ export {
|
|
|
12158
12222
|
hasQuietHours,
|
|
12159
12223
|
highestLevel,
|
|
12160
12224
|
holdsARetiredChoice,
|
|
12225
|
+
idsOfCopies,
|
|
12161
12226
|
importCsv,
|
|
12162
12227
|
importXlsx,
|
|
12163
12228
|
indexedDbStore,
|
|
@@ -12257,6 +12322,7 @@ export {
|
|
|
12257
12322
|
removedChoicesInUse,
|
|
12258
12323
|
resolveObjectOrganization,
|
|
12259
12324
|
restoreSnapshot,
|
|
12325
|
+
restoredBaseName,
|
|
12260
12326
|
richTextPlain,
|
|
12261
12327
|
ruleThatRefuses,
|
|
12262
12328
|
rulesWithTopStar,
|