@ai-matrx/records 0.76.19 → 0.77.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/app-table/index.cjs +81 -0
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +7 -7
- package/dist/app-table/index.d.ts +7 -7
- package/dist/app-table/index.js +81 -0
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-C8G7zUMQ.d.ts → client-BbzLb-sB.d.ts} +53 -5
- package/dist/{client-EaE4ta6p.d.cts → client-BcGGEpNi.d.cts} +53 -5
- package/dist/core/index.cjs +93 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +21 -11
- package/dist/core/index.d.ts +21 -11
- package/dist/core/index.js +93 -6
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +81 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +6 -6
- package/dist/data/index.d.ts +6 -6
- package/dist/data/index.js +81 -0
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-aoFu32Ca.d.cts → declareTable-COEPJpke.d.cts} +4 -4
- package/dist/{declareTable-3yW8GrJE.d.ts → declareTable-Dxq0Aega.d.ts} +4 -4
- package/dist/{field-DkB6Nods.d.cts → field-BTW7h7Wh.d.cts} +1 -1
- package/dist/{field-cWRPTM3U.d.ts → field-D7I9yck6.d.ts} +1 -1
- package/dist/index.cjs +26 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +26 -6
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +31 -0
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.d.cts +6 -6
- package/dist/memory/index.d.ts +6 -6
- package/dist/memory/index.js +31 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/{ports-C2_pOWrL.d.ts → ports-CaYEF1dG.d.ts} +1 -1
- package/dist/{ports-C83nhjoM.d.cts → ports-PpvsH1cQ.d.cts} +1 -1
- package/dist/react/index.cjs +93 -6
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +318 -14
- package/dist/react/index.d.ts +318 -14
- package/dist/react/index.js +93 -6
- package/dist/react/index.js.map +1 -1
- package/dist/realtime/index.d.cts +2 -2
- package/dist/realtime/index.d.ts +2 -2
- package/dist/{record-DVtXK-6L.d.cts → record-B7iwye2k.d.cts} +75 -13
- package/dist/{record-DVtXK-6L.d.ts → record-B7iwye2k.d.ts} +75 -13
- package/dist/{subscription-DxtZgyFR.d.ts → subscription-BWaRPLyo.d.ts} +60 -2
- package/dist/{subscription-vpnl6GxJ.d.cts → subscription-Br30ZwIt.d.cts} +60 -2
- package/dist/{table-kind-BtguhnRV.d.cts → table-kind-C5jsmotR.d.ts} +140 -4
- package/dist/{table-kind-DzyRtFNa.d.ts → table-kind-DrVhYZbX.d.cts} +140 -4
- package/dist/templates/index.cjs +14 -0
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +9 -9
- package/dist/templates/index.d.ts +9 -9
- package/dist/templates/index.js +14 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-y8GX3-QC.d.ts → types-DWZ5_3by.d.ts} +2 -2
- package/dist/{types-DWoJFBbr.d.cts → types-DYoWzHwJ.d.cts} +2 -2
- package/dist/{types-DqCWKOYh.d.ts → types-DrJLOqVi.d.ts} +2 -2
- package/dist/{types-X9P-cQd0.d.cts → types-LvxsZ6Zv.d.cts} +2 -2
- package/dist/use-cases/index.cjs.map +1 -1
- package/dist/use-cases/index.d.cts +5 -5
- package/dist/use-cases/index.d.ts +5 -5
- package/dist/use-cases/index.js.map +1 -1
- package/dist/{validate-CEE0ts9g.d.cts → validate-CRdXE73G.d.cts} +1 -1
- package/dist/{validate-d9QMYjBm.d.ts → validate-j0WQoC3C.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as
|
|
2
|
-
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, D as DashboardSummary,
|
|
3
|
-
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldProposal, T as TableProposal } from './field-
|
|
4
|
-
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-
|
|
5
|
-
import { a as RecordsConfig } from './ports-
|
|
1
|
+
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-C5jsmotR.js';
|
|
2
|
+
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-BWaRPLyo.js';
|
|
3
|
+
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldProposal, T as TableProposal } from './field-D7I9yck6.js';
|
|
4
|
+
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-B7iwye2k.js';
|
|
5
|
+
import { a as RecordsConfig } from './ports-CaYEF1dG.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* DOOR-8. As-of on EITHER clock, and they are different questions:
|
|
@@ -1072,6 +1072,21 @@ interface RecordsClient {
|
|
|
1072
1072
|
formLookOptions(args?: {
|
|
1073
1073
|
presentation?: Record<string, unknown> | null;
|
|
1074
1074
|
}): Promise<RecordsResult<FormLookOptions>>;
|
|
1075
|
+
/**
|
|
1076
|
+
* THE ROUTE THROUGH A DRAFT FORM (`custom.form_preview_route`, lane TYPEFORM-DUP): which questions
|
|
1077
|
+
* are asked given the answers so far (showIf AND logic jumps), the ending reached and the score —
|
|
1078
|
+
* the store's walk, the one the stranger's page and `custom.form_submit` read too.
|
|
1079
|
+
*/
|
|
1080
|
+
formPreviewRoute(args: {
|
|
1081
|
+
table_id: Uuid;
|
|
1082
|
+
questions: unknown[];
|
|
1083
|
+
endings?: unknown[] | null;
|
|
1084
|
+
values: Record<string, unknown>;
|
|
1085
|
+
}): Promise<RecordsResult<FormRoute>>;
|
|
1086
|
+
/** A form's results (`custom.form_results`): views, starts, completions, drop-off, answers. */
|
|
1087
|
+
formResults(args: {
|
|
1088
|
+
form_id: Uuid;
|
|
1089
|
+
}): Promise<RecordsResult<FormResults>>;
|
|
1075
1090
|
/**
|
|
1076
1091
|
* What the store makes of a file's columns, before anything is written.
|
|
1077
1092
|
* `columns` is `[{header, samples}]` — the first page of the file is plenty.
|
|
@@ -2374,6 +2389,39 @@ interface RecordsClient {
|
|
|
2374
2389
|
action_id: Uuid;
|
|
2375
2390
|
record_ids: Uuid[];
|
|
2376
2391
|
}): Promise<RecordsResult<ActionRunResult>>;
|
|
2392
|
+
/**
|
|
2393
|
+
* AUTOMATION-DOOR. Declare (or, with `automation_id`, replace) one automation on a Table — editor on the Table.
|
|
2394
|
+
* A spec the store refuses comes back as `data.ok === false` with `_errors`, one sentence per path.
|
|
2395
|
+
*/
|
|
2396
|
+
automationDeclare(args: {
|
|
2397
|
+
table_id: Uuid;
|
|
2398
|
+
spec: AutomationSpec;
|
|
2399
|
+
automation_id?: Uuid | null;
|
|
2400
|
+
}): Promise<RecordsResult<AutomationDeclared>>;
|
|
2401
|
+
/** AUTOMATION-DOOR. A Table's automations with their last run; archived ones only when asked. */
|
|
2402
|
+
automations(args: {
|
|
2403
|
+
table_id: Uuid;
|
|
2404
|
+
include_archived?: boolean;
|
|
2405
|
+
}): Promise<RecordsResult<AutomationList>>;
|
|
2406
|
+
/** AUTOMATION-DOOR. Archive one (it switches off and keeps its history). Editor on the Table. */
|
|
2407
|
+
automationArchive(args: {
|
|
2408
|
+
automation_id: Uuid;
|
|
2409
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2410
|
+
/** AUTOMATION-DOOR. Bring an archived one back (it stays off until `automationSetEnabled`). */
|
|
2411
|
+
automationRestore(args: {
|
|
2412
|
+
automation_id: Uuid;
|
|
2413
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2414
|
+
/** AUTOMATION-DOOR. Switch one on or off. */
|
|
2415
|
+
automationSetEnabled(args: {
|
|
2416
|
+
automation_id: Uuid;
|
|
2417
|
+
enabled: boolean;
|
|
2418
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2419
|
+
/** AUTOMATION-DOOR. Run history, newest first: status, the store's own sentence, every step. */
|
|
2420
|
+
automationRuns(args: {
|
|
2421
|
+
automation_id: Uuid;
|
|
2422
|
+
limit?: number;
|
|
2423
|
+
cursor?: string | null;
|
|
2424
|
+
}): Promise<RecordsResult<AutomationRuns>>;
|
|
2377
2425
|
/** G4. Send every change to this Table's records to an https webhook. Admin. The secret is shown once. */
|
|
2378
2426
|
tableWebhookDeclare(args: {
|
|
2379
2427
|
table_id: Uuid;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as
|
|
2
|
-
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, D as DashboardSummary,
|
|
3
|
-
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldProposal, T as TableProposal } from './field-
|
|
4
|
-
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-
|
|
5
|
-
import { a as RecordsConfig } from './ports-
|
|
1
|
+
import { R as RelationCoordinate, C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress, b as TableDuplicateProgress, c as TableDuplicated, d as TableCopyInProgress, A as ArchiveLane, e as ArchivedRow, f as Table, g as TableHome, h as TableMoved, i as ChoiceUsage, j as ChoiceRehome, k as ChoiceCellBack, l as ChoicesRehomed, m as TableCapacity, F as FieldDrift, n as FieldRetyped, o as RecordsMerged, M as MigrationUndone, p as RelationWordsManyArgs, q as RelationIcons, r as ReverseColumn, s as ReverseLinksManyArgs, t as ReverseLinks, S as SourceArchived, u as TableKindFacts, E as EntityTableFacts, v as EntityFieldsAcross, N as NewEntityFieldDeclaration, w as EntityFieldRights, x as EntityRecordRead, y as EntityBackLinks, z as EntityRowWritten, B as EntityRecordsFound, P as Pipeline, D as PipelineColumn, G as PipelineVerdict, H as PipelineMoveResult, I as PipelineMoveManyItem, J as PipelineMoveMany, K as PipelineSpec, L as PipelineDeclared, O as StageRuleOnFail, Q as StageRuleEnforcement, U as StagePending, V as StagePendingOnBoard, W as PipelineGate, X as PipelineGatePreview, Y as FormLookOptions, Z as ImportPlan, _ as ImportPolicy, $ as ImportOpened, a0 as ImportColumnsDeclared, a1 as ImportBatchResult, a2 as ImportFinished, a3 as ImportReport, a4 as ImportRun, a5 as InboundDeclared, a6 as InboundAddress, a7 as PortalSummary, a8 as PortalArchiveFilter, a9 as PortalArchiveAnswer, aa as FormArchiveAnswer, ab as ArchivedForm, ac as ArchivedChecklistTemplate, ad as TableRowDefaults, ae as TableRowDefaultsPatch, af as RowDefaultsApplied, ag as RecordRowControls, ah as PortalTableRef, ai as PortalCard, aj as PortalConfigInput, ak as PortalFormSpec, al as PortalFormAnswer, am as PortalInvitation, an as PortalRevocation, ao as PortalPreviewRow, ap as CaptureSheetSummary, aq as CaptureSheetFace, ar as CaptureFileRef, as as CaptureOutcome, at as EnrichmentSummary, au as EnrichDeclared, av as EnrichDueRow, aw as EnrichCell, ax as EnrichRun, ay as DrillSource, az as DrillDefinition, aA as DrillQuestion, aB as DrillAnswer, aC as DrillRowsPage, aD as DocToken, aE as DocUnresolvedToken, aF as DocTemplateRow, aG as DocRenderRow, aH as DocSignatureRow, aI as RecordHistoryEntry, aJ as RecordScopeContext, aK as ConversationScope, aL as ConversationScopeContext, aM as FieldHistoryEntry, aN as RestorePreview, aO as RestoreResult, aP as CommentThreadRead, aQ as CommentWritten, aR as AnonTokenBinding, aS as ChecklistSpec, aT as ChecklistDeclared, aU as ChecklistTemplateSummary, aV as ChecklistTemplateShape, aW as ChecklistRunStarted, aX as ChecklistRunStep, aY as ChecklistRunSummary, aZ as ChecklistStepCompleted, a_ as WorkState, a$ as WorkGraph, b0 as WorkInstantiation, b1 as WorkTurn, b2 as WorkAssignmentField, b3 as WorkSlotHold, b4 as WorkInboxView, b5 as WorkInboxItem, b6 as InboxStateChange, b7 as InboxCounts, b8 as WorkListFlavour, b9 as WorkListItem, ba as WorkAssignment, bb as WorkRecordState, bc as WorkApprover, bd as WorkChange, be as WorkApprovalFiled, bf as WorkApprovalDecision, bg as WorkDecideManyItem, bh as WorkDecideMany, bi as ExternalPrincipalCard, bj as PublishBinding, bk as ResolvedPublishBinding, bl as ResolvedPublishBindingKind, bm as MyLevel, bn as DecorationPath, bo as TableDecorations, bp as GridLayout, bq as FormulaParse, br as RowAction, bs as ActionRunResult, bt as AutomationSpec, bu as AutomationDeclared, bv as AutomationList, bw as AutomationFlipped, bx as AutomationRuns, by as RecordEvent, bz as TableWebhookDeclared, bA as TableWebhook, bB as IoExportPage, bC as TableListEntry, bD as DataHomeTable, bE as TableSyncSpec, bF as TableSyncResult, bG as TableRowCount, bH as RecordHeader, bI as OutsideShareAnswer, bJ as ViewOrderSet } from './table-kind-DrVhYZbX.cjs';
|
|
2
|
+
import { S as StoreFilter, F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults, D as DashboardSummary, e as DashboardBlock, R as RecordFilter, A as AggregateCompare, f as AggregateBucket, g as DashboardRunResult, h as StuckRow, i as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-Br30ZwIt.cjs';
|
|
3
|
+
import { b as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldProposal, T as TableProposal } from './field-BTW7h7Wh.cjs';
|
|
4
|
+
import { U as Uuid, f as Timestamp, g as RecordDocument, h as RecordsResult, i as RecordChange, j as RecordChangeResult, k as RecordGraphWritten, l as RecordRead, m as ReadRow, n as RecordPageSort, o as RecordPage, p as RecordKeysetPage, q as StoredRecord, r as RecordRevision, s as ReadValue, t as RecordsErrorCode, R as RecordsError, W as WriteConflict } from './record-B7iwye2k.cjs';
|
|
5
|
+
import { a as RecordsConfig } from './ports-PpvsH1cQ.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* DOOR-8. As-of on EITHER clock, and they are different questions:
|
|
@@ -1072,6 +1072,21 @@ interface RecordsClient {
|
|
|
1072
1072
|
formLookOptions(args?: {
|
|
1073
1073
|
presentation?: Record<string, unknown> | null;
|
|
1074
1074
|
}): Promise<RecordsResult<FormLookOptions>>;
|
|
1075
|
+
/**
|
|
1076
|
+
* THE ROUTE THROUGH A DRAFT FORM (`custom.form_preview_route`, lane TYPEFORM-DUP): which questions
|
|
1077
|
+
* are asked given the answers so far (showIf AND logic jumps), the ending reached and the score —
|
|
1078
|
+
* the store's walk, the one the stranger's page and `custom.form_submit` read too.
|
|
1079
|
+
*/
|
|
1080
|
+
formPreviewRoute(args: {
|
|
1081
|
+
table_id: Uuid;
|
|
1082
|
+
questions: unknown[];
|
|
1083
|
+
endings?: unknown[] | null;
|
|
1084
|
+
values: Record<string, unknown>;
|
|
1085
|
+
}): Promise<RecordsResult<FormRoute>>;
|
|
1086
|
+
/** A form's results (`custom.form_results`): views, starts, completions, drop-off, answers. */
|
|
1087
|
+
formResults(args: {
|
|
1088
|
+
form_id: Uuid;
|
|
1089
|
+
}): Promise<RecordsResult<FormResults>>;
|
|
1075
1090
|
/**
|
|
1076
1091
|
* What the store makes of a file's columns, before anything is written.
|
|
1077
1092
|
* `columns` is `[{header, samples}]` — the first page of the file is plenty.
|
|
@@ -2374,6 +2389,39 @@ interface RecordsClient {
|
|
|
2374
2389
|
action_id: Uuid;
|
|
2375
2390
|
record_ids: Uuid[];
|
|
2376
2391
|
}): Promise<RecordsResult<ActionRunResult>>;
|
|
2392
|
+
/**
|
|
2393
|
+
* AUTOMATION-DOOR. Declare (or, with `automation_id`, replace) one automation on a Table — editor on the Table.
|
|
2394
|
+
* A spec the store refuses comes back as `data.ok === false` with `_errors`, one sentence per path.
|
|
2395
|
+
*/
|
|
2396
|
+
automationDeclare(args: {
|
|
2397
|
+
table_id: Uuid;
|
|
2398
|
+
spec: AutomationSpec;
|
|
2399
|
+
automation_id?: Uuid | null;
|
|
2400
|
+
}): Promise<RecordsResult<AutomationDeclared>>;
|
|
2401
|
+
/** AUTOMATION-DOOR. A Table's automations with their last run; archived ones only when asked. */
|
|
2402
|
+
automations(args: {
|
|
2403
|
+
table_id: Uuid;
|
|
2404
|
+
include_archived?: boolean;
|
|
2405
|
+
}): Promise<RecordsResult<AutomationList>>;
|
|
2406
|
+
/** AUTOMATION-DOOR. Archive one (it switches off and keeps its history). Editor on the Table. */
|
|
2407
|
+
automationArchive(args: {
|
|
2408
|
+
automation_id: Uuid;
|
|
2409
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2410
|
+
/** AUTOMATION-DOOR. Bring an archived one back (it stays off until `automationSetEnabled`). */
|
|
2411
|
+
automationRestore(args: {
|
|
2412
|
+
automation_id: Uuid;
|
|
2413
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2414
|
+
/** AUTOMATION-DOOR. Switch one on or off. */
|
|
2415
|
+
automationSetEnabled(args: {
|
|
2416
|
+
automation_id: Uuid;
|
|
2417
|
+
enabled: boolean;
|
|
2418
|
+
}): Promise<RecordsResult<AutomationFlipped>>;
|
|
2419
|
+
/** AUTOMATION-DOOR. Run history, newest first: status, the store's own sentence, every step. */
|
|
2420
|
+
automationRuns(args: {
|
|
2421
|
+
automation_id: Uuid;
|
|
2422
|
+
limit?: number;
|
|
2423
|
+
cursor?: string | null;
|
|
2424
|
+
}): Promise<RecordsResult<AutomationRuns>>;
|
|
2377
2425
|
/** G4. Send every change to this Table's records to an https webhook. Admin. The secret is shown once. */
|
|
2378
2426
|
tableWebhookDeclare(args: {
|
|
2379
2427
|
table_id: Uuid;
|
package/dist/core/index.cjs
CHANGED
|
@@ -2664,6 +2664,12 @@ var STORE_DOORS = [
|
|
|
2664
2664
|
{ name: "assert_public_reader_names_a_public_table", args: "p_organization_id uuid, p_table_id uuid, p_door text", returns: "void", security: "definer" },
|
|
2665
2665
|
{ name: "assert_scope_door", args: "p_organization_id uuid, p_door text", returns: "void", security: "definer" },
|
|
2666
2666
|
{ name: "assert_store_door", args: "p_organization_id uuid, p_door text", returns: "void", security: "invoker" },
|
|
2667
|
+
{ name: "automation_archive", args: "p_organization_id uuid, p_automation_id uuid", returns: "jsonb", security: "definer" },
|
|
2668
|
+
{ name: "automation_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb, p_automation_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
2669
|
+
{ name: "automation_restore", args: "p_organization_id uuid, p_automation_id uuid", returns: "jsonb", security: "definer" },
|
|
2670
|
+
{ name: "automation_runs", args: "p_automation_id uuid, p_limit integer DEFAULT 50, p_cursor timestamp with time zone DEFAULT NULL::timestamp with time zone, p_organization_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
2671
|
+
{ name: "automation_set_enabled", args: "p_organization_id uuid, p_automation_id uuid, p_enabled boolean", returns: "jsonb", security: "definer" },
|
|
2672
|
+
{ name: "automations", args: "p_table_id uuid, p_organization_id uuid DEFAULT NULL::uuid, p_include_archived boolean DEFAULT false", returns: "jsonb", security: "definer" },
|
|
2667
2673
|
{ name: "autonumber_backfill", args: "p_organization_id uuid, p_field_id uuid", returns: "jsonb", security: "definer" },
|
|
2668
2674
|
{ name: "barcode_symbologies", args: "", returns: "text[]", security: "invoker" },
|
|
2669
2675
|
{ name: "booking_cancel", args: "p_booking_ref text, p_origin text DEFAULT NULL::text", returns: "TABLE(booking_ref text, record_id uuid, slot_key text, state text, message text)", security: "definer" },
|
|
@@ -2910,13 +2916,18 @@ var STORE_DOORS = [
|
|
|
2910
2916
|
{ name: "form_look_options", args: "p_organization_id uuid, p_presentation jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "definer" },
|
|
2911
2917
|
{ name: "form_notify", args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid", returns: "uuid", security: "invoker" },
|
|
2912
2918
|
{ name: "form_preview_asks", args: "p_organization_id uuid, p_table_id uuid, p_questions jsonb, p_values jsonb", returns: "TABLE(field_key text, asked boolean, decided boolean, said text)", security: "definer" },
|
|
2919
|
+
{ name: "form_preview_route", args: "p_organization_id uuid, p_table_id uuid, p_questions jsonb, p_endings jsonb, p_values jsonb", returns: "jsonb", security: "definer" },
|
|
2913
2920
|
{ name: "form_public", args: "p_form_id uuid", returns: "TABLE(form_id uuid, organization_id uuid, table_id uuid, title text, presentation jsonb, fields jsonb, honeypot_key text, state text, message text)", security: "definer" },
|
|
2914
2921
|
{ name: "form_public_asks", args: "p_form_id uuid, p_values jsonb, p_secret text DEFAULT NULL::text, p_origin text DEFAULT NULL::text", returns: "TABLE(field_key text, asked boolean, decided boolean, said text)", security: "definer" },
|
|
2922
|
+
{ name: "form_public_route", args: "p_form_id uuid, p_values jsonb", returns: "jsonb", security: "definer" },
|
|
2915
2923
|
{ name: "form_redirect_domains", args: "p_organization_id uuid", returns: "text[]", security: "invoker" },
|
|
2916
2924
|
{ name: "form_redirect_refusal", args: "p_organization_id uuid, p_url text", returns: "text", security: "invoker" },
|
|
2917
2925
|
{ name: "form_restore", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
2926
|
+
{ name: "form_results", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
2918
2927
|
{ name: "form_slug", args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid", returns: "text", security: "invoker" },
|
|
2919
2928
|
{ name: "form_submit", args: "p_form_id uuid, p_origin text, p_payload jsonb, p_bucket text, p_honeypot text DEFAULT NULL::text, p_client_key text DEFAULT NULL::text", returns: "TABLE(submission_id uuid, record_id uuid, state text, message text)", security: "definer" },
|
|
2929
|
+
{ name: "form_theme_options", args: "", returns: "jsonb", security: "invoker" },
|
|
2930
|
+
{ name: "form_visit", args: "p_form_id uuid, p_visit text, p_event text, p_field text DEFAULT NULL::text", returns: "text", security: "definer" },
|
|
2920
2931
|
{ name: "forms", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid", returns: "TABLE(form_id uuid, table_id uuid, title text, slug text, published_at timestamp with time zone, closed_at timestamp with time zone, submission_cap integer, responses bigint, in_table bigint, held bigint, rejected bigint, state text, quarantine_rule_id uuid, notify_rule_id uuid, presentation jsonb)", security: "definer" },
|
|
2921
2932
|
{ name: "forms_archived", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 100", returns: "TABLE(form_id uuid, table_id uuid, table_name text, kind text, title text, slug text, archived_at timestamp with time zone, archived_by uuid, table_archived boolean, can_restore boolean)", security: "definer" },
|
|
2922
2933
|
{ name: "formula_compile_sql", args: "p_organization_id uuid, p_expr jsonb, p_values_sql text", returns: "text", security: "invoker" },
|
|
@@ -3247,6 +3258,7 @@ var STORE_DOORS = [
|
|
|
3247
3258
|
{ name: "rollup_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb", returns: "jsonb", security: "invoker" },
|
|
3248
3259
|
{ name: "row_actions", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
3249
3260
|
{ name: "row_sits_in_a_personal_table", args: "p_type text, p_organization_id uuid, p_id uuid", returns: "boolean", security: "invoker" },
|
|
3261
|
+
{ name: "row_template_bodies", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(template_id uuid, body jsonb)", security: "definer" },
|
|
3250
3262
|
{ name: "row_template_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
3251
3263
|
{ name: "row_templates", args: "p_organization_id uuid, p_table_id uuid", returns: 'TABLE(template_id uuid, name text, table_id uuid, "values" jsonb, created_at timestamp with time zone, updated_at timestamp with time zone)', security: "definer" },
|
|
3252
3264
|
{ name: "rule_applies", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
@@ -3373,6 +3385,8 @@ var STORE_DOORS = [
|
|
|
3373
3385
|
{ name: "table_stage_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
3374
3386
|
{ name: "table_storage", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
|
|
3375
3387
|
{ name: "table_sync", args: "p_organization_id uuid, p_home_id uuid, p_spec jsonb", returns: "jsonb", security: "definer" },
|
|
3388
|
+
{ name: "table_template_declare", args: "p_org_id uuid, p_name text, p_description text, p_fields jsonb", returns: "uuid", security: "invoker" },
|
|
3389
|
+
{ name: "table_templates", args: "p_org_id uuid", returns: "jsonb", security: "definer" },
|
|
3376
3390
|
{ name: "table_transfer_owner", args: "p_table_id uuid, p_to_person uuid, p_reason text", returns: "jsonb", security: "definer" },
|
|
3377
3391
|
{ name: "table_type_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
3378
3392
|
{ name: "table_unique_rule_fields", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "invoker" },
|
|
@@ -3539,8 +3553,6 @@ var STORE_KNOBS = [
|
|
|
3539
3553
|
{ key: "provenance_retention_days", value: "30", type: "number" },
|
|
3540
3554
|
{ key: "row_action_steps_max", value: "60", type: "integer" },
|
|
3541
3555
|
{ key: "row_actions_max", value: "24", type: "integer" },
|
|
3542
|
-
{ key: "sandbox_expanded_frame_height_px", value: "20000", type: "integer" },
|
|
3543
|
-
{ key: "sandbox_frame_height_px", value: "4000", type: "integer" },
|
|
3544
3556
|
{ key: "sandbox_message_bytes", value: "65536", type: "integer" },
|
|
3545
3557
|
{ key: "sandbox_org_components", value: "true", type: "boolean" },
|
|
3546
3558
|
{ key: "scope_members_admitted", value: "true", type: "boolean" },
|
|
@@ -3563,12 +3575,12 @@ var STORE_REFUSAL_CODES = [
|
|
|
3563
3575
|
{ code: "22004", raised_by: "_entity_change_file,_entity_custom_fields_guard,_io_outbox_claim,_portal_config_judge,_share_write_person,_value_envelope,actor_word,agg_assert_key,agg_compare_windows,agg_sql,anon_capture,anon_token_issue,anon_write,assert_client_may_reach,assert_scope_door,booking_declare,capture_submit,checklist_declare,context_resolve,context_template_define,context_type_write,dashboard_block_normalize,dashboard_declare,dashboard_window_sql,doc_render_write,doc_sign,doc_signature_write,doc_template_save,enrich_land,enrich_normalize,entity_field_protect_arman_explicitly_approved,entity_row_propose,entity_row_write,external_history_event,external_rows,external_source_declare,external_stub_upsert,external_write_through,external_writes_set,field_history,form_declare,form_look_options,form_submit,home_add,inbox_snooze,io_comment_write,io_import_begin,io_infer_column,io_outbox_drain,io_outbox_release_claimed,io_outbox_subscribe,io_restore,migrate_choice_keys,migrate_purge,migrate_purge_hard,migrate_reclass,migrate_split,migrate_undo,organization_clear,organization_contents,pipeline_declare,pipeline_gate_preview,portal_declare,portal_form_submit,portal_invite,portal_principal_bind,provenance_retention_days,provenance_write,query_across_homes,query_by_coordinates,query_rollup,record_aggregate_as_of,record_delete,record_reparent,record_resolve,record_restore,record_update,record_upsert,record_write,record_write_graph,record_write_graph_superseding,record_write_many,relation_carry,relation_halves_repair,relation_own,row_template_declare,rule_declare,set_table_confidential_arman_explicitly_approved,share_grant,sign_request_create,sign_request_sign,subscription_declare,table_archive,table_archive_deliberately,table_declare,table_duplicate,table_move,table_restore,table_share_outside_grant,table_share_outside_invite,template_declare,value_restore,view_declare,view_designate,view_look_read,view_look_set,whole_value_complete,work_approval_decide,work_approval_request,work_template_declare" },
|
|
3564
3576
|
{ code: "22007", raised_by: "_template_date,agg_parse_moment,dashboard_window_sql" },
|
|
3565
3577
|
{ code: "22012", raised_by: "formula_eval,rule_eval,rule_sql_op" },
|
|
3566
|
-
{ code: "22023", raised_by: "_action_check,_booking_availability,
|
|
3567
|
-
{ code: "23503", raised_by: "_action_check,_booking_availability,_checklist_instantiate,_containment_guard,_ctx_store_value,_decorations_check,_display_spec_for,_field_document_for,_field_type_parity_guard,_pipeline_stage_key,_record_rule_uses,action_declare,action_run,agg_digest_assemble,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,autonumber_backfill,booking_cancel,booking_confirm,booking_declare,booking_hold,booking_reschedule,capture_publish,checklist_declare,checklist_steps_table,comment_write,dashboard_declare,delete_rule,doc_sign,doc_template_save,enrich_declare,enrich_due,enrich_land,form_declare,form_draft_save,form_submit,grid_layout,home_add,inbound_declare,inbound_mail_land,inbound_set,io_comment_write,io_import_begin,io_import_finish,io_import_report,io_import_rows,io_proposal_accept,migrate_demote,migrate_promote,migrate_purge_hard,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,read_records_in_view_order,read_records_page,record_applicability,record_reparent,record_write_graph_superseding,relation_carry,relation_own,resolve_first_match,row_template_declare,rule_applies,rule_declare,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_run,sign_request_create,subscription_mute,subscription_preview,table_decorate,table_dimensions_set,table_from_example,table_webhook_archive,table_webhook_declare,view_declare,view_designate,view_look_set,view_record_order_set,whole_value_complete,work_set_state,work_take_assignment,work_template_instantiate" },
|
|
3578
|
+
{ code: "22023", raised_by: "_action_check,_automation_fire,_booking_availability,_ctx_reference_value_holds,_ctx_store_scope,_ctx_table_template_field_holds,_ctx_tree_part,_decorations_check,_entity_change_file,_entity_custom_fields_guard,_form_flow_judge,_form_look_judge,_fx_date,_fx_num,_fx_regex,_fx_unit,_fxp_level,_fxp_resolve,_fxp_tokens,_portal_config_judge,_rule_eval_seated,_table_dimensions_check,_take_op_id,_template_bind,_value_envelope,_view_field_key,_view_key_value,_work_shape_guard,_write_via_mark,action_run,actor_word,agent_change_trust,agg_assert_key,agg_calendar,agg_compare_windows,agg_sql,anon_token_issue,booking_declare,containment_parent,context_scope_write,context_scopes,context_template_define,context_type_write,context_values,count_records_archived,dashboard_block_normalize,dashboard_run,dashboard_target_field_assert,dashboard_window_sql,data_home,data_home_changed_by,doc_render_body,doc_render_write,doc_signature_write,drill_resolve,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_back_links,entity_fields_across,entity_read_mask,entity_reference_rows,entity_reference_search,entity_reference_words,entity_row_write,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_access,field_history,field_update,form_declare,form_draft_save,form_visit,formula_eval,formula_parse,grid_layout_check,hub_changed_by,inbound_domain,inbox_snooze,io_export,io_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,list_portals,listed_predicate_sql,member_records_take_over,migrate_merge,migrate_reclass,my_levels,organization_clear,page_size,pick_list_create,pin_agent_cells,pipeline_move,pipeline_move_many,portal_declare,portal_form_submit,provenance_write,publish_bind,query_by_coordinates,query_rollup,query_rollup_sum,read_records_archived,read_records_in_view_order,read_records_keyset,read_records_page,record_aggregate_as_of,record_change_many,record_filter_sql,record_row_controls_set,record_search_sql,record_update,record_upsert,record_write_graph,record_write_graph_superseding,record_write_many,records_search,relation_carry,relation_names_match,row_template_declare,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_sql_op,scope_table_provision,share_grant,share_lane_set,sign_request_create,sign_request_sign,subscription_declare,table_archive_deliberately,table_ensure,table_find,table_from_example,table_move,table_row_defaults_set,table_rules,table_share_outside_grant,table_sync,table_template_declare,table_transfer_owner,table_webhook_declare,template_declare,template_from_tables,template_install_claim,template_install_note,template_upgrade,templates,view_declare,view_keys_check,view_look_set,view_record_order_set,visibility_as_of,where_lists_live,where_tables_live,work_approval_request,work_decide_many,work_inbox,work_list,work_slot_hold" },
|
|
3579
|
+
{ code: "23503", raised_by: "_action_check,_automation_fire,_automation_flip,_booking_availability,_checklist_instantiate,_containment_guard,_ctx_store_value,_decorations_check,_display_spec_for,_field_document_for,_field_type_parity_guard,_form_flow_judge,_pipeline_stage_key,_record_rule_uses,action_declare,action_run,agg_digest_assemble,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,automation_declare,automation_runs,automations,autonumber_backfill,booking_cancel,booking_confirm,booking_declare,booking_hold,booking_reschedule,capture_publish,checklist_declare,checklist_steps_table,comment_write,dashboard_declare,delete_rule,doc_sign,doc_template_save,enrich_declare,enrich_due,enrich_land,form_declare,form_draft_save,form_results,form_submit,grid_layout,home_add,inbound_declare,inbound_mail_land,inbound_set,io_comment_write,io_import_begin,io_import_finish,io_import_report,io_import_rows,io_proposal_accept,migrate_demote,migrate_promote,migrate_purge_hard,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,read_records_in_view_order,read_records_page,record_applicability,record_reparent,record_write_graph_superseding,relation_carry,relation_own,resolve_first_match,row_template_declare,rule_applies,rule_declare,rule_eval,rule_filter_node_sql,rule_members,rule_members_visible,rule_run,sign_request_create,subscription_mute,subscription_preview,table_decorate,table_dimensions_set,table_from_example,table_webhook_archive,table_webhook_declare,view_declare,view_designate,view_look_set,view_record_order_set,whole_value_complete,work_set_state,work_take_assignment,work_template_instantiate" },
|
|
3568
3580
|
{ code: "23505", raised_by: "_ctx_store_item,_ctx_store_scope,_ctx_store_type,_portal_config_judge,_share_write_person,_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,field_restore,field_update,form_restore,home_add,inbound_declare,io_proposal_accept,relation_carry,relation_own,relation_restore,sign_request_cancel,sign_request_create,table_share_outside_resend,work_approval_decide,work_slot_hold" },
|
|
3569
|
-
{ code: "23514", raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,
|
|
3581
|
+
{ code: "23514", raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_ctx_scope_parent_holds,_ctx_store_item,_ctx_table_template_field_holds,_ctx_value_fits_its_scope,_dated_values_guard,_derived_fields,_display_format_check,_display_spec_for,_entity_choice_keys,_entity_custom_fields_guard,_field_choices_save,_field_class_guard,_field_default_fitted,_field_document_for,_field_kind_shape_ok,_field_shape_guard,_field_type_parity_guard,_kind_value_ok,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_record_source_key_is_record,_relation_halves_agree,_relation_kernel_targets,_resolve_choice_words,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_columns_word_guard,_table_shape_guard,_undeclared_key_guard,_value_envelope,_with_display,_work_shape_guard,_workdoors_approval_guard,action_run,assert_columns_are_defined,assert_entity_is_organization_scoped,booking_declare,capture_publish,capture_sheet_declare,checklist_declare,checklist_step_complete,dashboard_restore,doc_sign,doc_signature_write,doc_template_restore,doc_template_save,entity_field_protect_arman_explicitly_approved,entity_field_retire,entity_field_update,entity_records_find,entity_table,entity_value_write,field_declare,field_restore,field_retire,field_update,field_update_rehoming_choices,form_restore,home_add,io_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_restore,record_update_adding_choices,record_upsert,record_write_graph,record_write_graph_superseding,relation_carry,relation_halves_repair,relation_own,relation_restore,rollup_value,row_template_declare,rule_restore,sign_request_create,sign_request_sign,status_groups_keyed,status_groups_of,table_from_example,table_restore,template_upgrade,validate_value_envelope,validate_values,whole_value_complete,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate" },
|
|
3570
3582
|
{ code: "40001", raised_by: "has_visibility_at,table_move,whole_value_complete" },
|
|
3571
|
-
{ code: "42501", raised_by: "_agent_change_gate,_context_copy_fence,_copy_evaluation_note,_copy_evaluation_reimage,_copy_in_progress_guard,_doc_render_immutable,_doc_signature_immutable,_entity_change_file,_entity_custom_fields_guard,_field_definition_write,_field_write_door,_io_outbox_server_only,_not_a_member_refusal,_portal_config_judge,_portal_principal_here,_read_record_with,_rule_definition_write,_share_write_person,_store_door,_table_dimensions_infer,_table_duplicate_step,_table_shape_guard,_template_call,_value_envelope,_workdoors_approval_guard,agent_change_trust,agent_table_claim,agg_fields_readable_assert,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_change,assert_client_may_open,assert_may_know_table,assert_organization_admin,assert_scope_door,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,context_item_archive,context_item_restore,context_item_write,context_resolve,context_scope_archive,context_scope_restore,context_scope_write,context_tags_set,context_type_archive,context_type_restore,context_type_write,conversation_scope_bind,conversation_scope_unbind,count_records_archived,dashboard_target_field_assert,doc_sign,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_row_propose,entity_row_write,entity_value_write,external_write_through,field_restore,form_declare,form_draft_save,form_public_asks,form_submit,inbound_mail_land,inbox_clear,inbox_snooze,inbox_unclear,inbox_unsnooze,io_comment_resolve,io_comment_write,io_import_begin,io_import_finish,io_restore,member_personal_tables,migrate_purge,migrate_purge_hard,migrate_purge_hard_request,migrate_reclass,my_levels,organization_clear,organization_contents,portal_declare,portal_form,portal_form_submit,portal_invitation,portal_invite,portal_invite_accept,portal_principal_bind,promote_table,protected_matches,query_visibility_parity,read_record,read_records,read_records_archived,read_records_by_ids,read_records_keyset,read_records_matching,read_records_page,record_delete,record_row_controls,record_table,record_write_graph,relation_halves_disagreements,relation_halves_repair,resolve_context,reverse_links_many,scope_table_provision,share_grant,subscription_mute,subscription_preview,table_archive_deliberately,table_copies_in_progress,table_duplicate,table_duplicate_continue,table_kind_facts,table_move,table_row_defaults_apply,table_row_defaults_set,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_sync,table_transfer_owner,table_webhook_declare,template_declare,template_install,template_upgrade,templates,view_declare,view_look_set,view_record_order_set,visibility_as_of,where_lists_live,where_tables_live,whole_value_complete,work_approval_decide,work_approval_read,work_approval_request,work_person" },
|
|
3583
|
+
{ code: "42501", raised_by: "_agent_change_gate,_context_copy_fence,_copy_evaluation_note,_copy_evaluation_reimage,_copy_in_progress_guard,_doc_render_immutable,_doc_signature_immutable,_entity_change_file,_entity_custom_fields_guard,_field_definition_write,_field_write_door,_io_outbox_server_only,_not_a_member_refusal,_portal_config_judge,_portal_principal_here,_read_record_with,_rule_definition_write,_share_write_person,_store_door,_table_dimensions_infer,_table_duplicate_step,_table_shape_guard,_template_call,_value_envelope,_workdoors_approval_guard,agent_change_trust,agent_table_claim,agg_fields_readable_assert,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_change,assert_client_may_open,assert_may_know_table,assert_organization_admin,assert_scope_door,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,context_item_archive,context_item_restore,context_item_write,context_resolve,context_scope_archive,context_scope_restore,context_scope_write,context_tags_set,context_type_archive,context_type_restore,context_type_write,conversation_scope_bind,conversation_scope_unbind,count_records_archived,dashboard_target_field_assert,doc_sign,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_row_propose,entity_row_write,entity_value_write,external_write_through,field_restore,form_declare,form_draft_save,form_public_asks,form_submit,inbound_mail_land,inbox_clear,inbox_snooze,inbox_unclear,inbox_unsnooze,io_comment_resolve,io_comment_write,io_import_begin,io_import_finish,io_restore,member_personal_tables,migrate_purge,migrate_purge_hard,migrate_purge_hard_request,migrate_reclass,my_levels,organization_clear,organization_contents,portal_declare,portal_form,portal_form_submit,portal_invitation,portal_invite,portal_invite_accept,portal_principal_bind,promote_table,protected_matches,query_visibility_parity,read_record,read_records,read_records_archived,read_records_by_ids,read_records_keyset,read_records_matching,read_records_page,record_delete,record_row_controls,record_table,record_write_graph,relation_halves_disagreements,relation_halves_repair,resolve_context,reverse_links_many,scope_table_provision,share_grant,subscription_mute,subscription_preview,table_archive_deliberately,table_copies_in_progress,table_duplicate,table_duplicate_continue,table_kind_facts,table_move,table_row_defaults_apply,table_row_defaults_set,table_share_outside_accept,table_share_outside_grant,table_share_outside_invite,table_share_outside_resend,table_sync,table_templates,table_transfer_owner,table_webhook_declare,template_declare,template_install,template_upgrade,templates,view_declare,view_look_set,view_record_order_set,visibility_as_of,where_lists_live,where_tables_live,whole_value_complete,work_approval_decide,work_approval_read,work_approval_request,work_person" },
|
|
3572
3584
|
{ code: "42703", raised_by: "entity_table,portal_declare" },
|
|
3573
3585
|
{ code: "42883", raised_by: "_template_call" },
|
|
3574
3586
|
{ code: "42P17", raised_by: "_field_reads_what_it_reads,far_value" },
|
|
@@ -3589,6 +3601,7 @@ var ENTITY_TOKENS = [
|
|
|
3589
3601
|
"access_delta_run",
|
|
3590
3602
|
"access_request",
|
|
3591
3603
|
"account_addon",
|
|
3604
|
+
"account_closure",
|
|
3592
3605
|
"acquisition_block",
|
|
3593
3606
|
"activity",
|
|
3594
3607
|
"admin_audit_log",
|
|
@@ -3628,6 +3641,7 @@ var ENTITY_TOKENS = [
|
|
|
3628
3641
|
"ai_usage_hourly_watermark",
|
|
3629
3642
|
"analysis_result",
|
|
3630
3643
|
"anon_form",
|
|
3644
|
+
"anon_form_visit",
|
|
3631
3645
|
"anon_function_birth_grandfather",
|
|
3632
3646
|
"anon_hit",
|
|
3633
3647
|
"anon_inbound",
|
|
@@ -4230,6 +4244,7 @@ var ENTITY_TOKENS = [
|
|
|
4230
4244
|
"oauth_handoff_claim",
|
|
4231
4245
|
"opinion_clusters",
|
|
4232
4246
|
"opinions",
|
|
4247
|
+
"ops_auth_lock_watchdog_log",
|
|
4233
4248
|
"ops_check_item",
|
|
4234
4249
|
"ops_check_run",
|
|
4235
4250
|
"ops_db_host_sample",
|
|
@@ -4272,6 +4287,7 @@ var ENTITY_TOKENS = [
|
|
|
4272
4287
|
"pdf_redaction_audit",
|
|
4273
4288
|
"pdf_redaction_key_escrow",
|
|
4274
4289
|
"permission_grant",
|
|
4290
|
+
"personal_data_column",
|
|
4275
4291
|
"plan_cms_fill_item",
|
|
4276
4292
|
"plan_cms_fill_job",
|
|
4277
4293
|
"plan_entity",
|
|
@@ -4337,6 +4353,10 @@ var ENTITY_TOKENS = [
|
|
|
4337
4353
|
"provision_spec_grandfather",
|
|
4338
4354
|
"provision_vocabulary",
|
|
4339
4355
|
"provlock_recall_visits_all8u5",
|
|
4356
|
+
"public_compat_wrapper",
|
|
4357
|
+
"public_placement_baseline",
|
|
4358
|
+
"public_placement_domain",
|
|
4359
|
+
"public_restore_permit",
|
|
4340
4360
|
"purpose",
|
|
4341
4361
|
"quiz_session",
|
|
4342
4362
|
"rag_ingest_run",
|
|
@@ -5454,6 +5474,10 @@ var DOORS = {
|
|
|
5454
5474
|
* organization wall and the caller's own rung on the Table — never `rule_eval` from a browser.
|
|
5455
5475
|
*/
|
|
5456
5476
|
formPreviewAsks: "form_preview_asks",
|
|
5477
|
+
/** TYPEFORM-DUP: the owner's preview of the whole route — jumps, ending, score (`custom._form_route`). */
|
|
5478
|
+
formPreviewRoute: "form_preview_route",
|
|
5479
|
+
/** TYPEFORM-DUP: views, starts, completions, drop-off and answers per question. */
|
|
5480
|
+
formResults: "form_results",
|
|
5457
5481
|
formLookOptions: "form_look_options",
|
|
5458
5482
|
// PRODUCTS row 14 — "let clients book a 30-minute consult". A booking page IS an
|
|
5459
5483
|
// `anon_form`, so it is opened and closed by `anonPublish` like any other; this is
|
|
@@ -5771,6 +5795,13 @@ var DOORS = {
|
|
|
5771
5795
|
actionDeclare: "action_declare",
|
|
5772
5796
|
rowActions: "row_actions",
|
|
5773
5797
|
actionRun: "action_run",
|
|
5798
|
+
// AUTOMATION-DOOR (2026-10-07) — automations on a table. See ../automation.ts.
|
|
5799
|
+
automationDeclare: "automation_declare",
|
|
5800
|
+
automations: "automations",
|
|
5801
|
+
automationArchive: "automation_archive",
|
|
5802
|
+
automationRestore: "automation_restore",
|
|
5803
|
+
automationSetEnabled: "automation_set_enabled",
|
|
5804
|
+
automationRuns: "automation_runs",
|
|
5774
5805
|
tableWebhookDeclare: "table_webhook_declare",
|
|
5775
5806
|
tableWebhooks: "table_webhooks",
|
|
5776
5807
|
tableWebhookArchive: "table_webhook_archive",
|
|
@@ -7364,6 +7395,20 @@ function createRecordsClient(given) {
|
|
|
7364
7395
|
"formPreviewAsks"
|
|
7365
7396
|
);
|
|
7366
7397
|
},
|
|
7398
|
+
async formPreviewRoute({ table_id, questions, endings, values }) {
|
|
7399
|
+
return callDoor(
|
|
7400
|
+
DOORS.formPreviewRoute,
|
|
7401
|
+
{ p_organization_id: org, p_table_id: table_id, p_questions: questions, p_endings: endings ?? [], p_values: values },
|
|
7402
|
+
"formPreviewRoute"
|
|
7403
|
+
);
|
|
7404
|
+
},
|
|
7405
|
+
async formResults({ form_id }) {
|
|
7406
|
+
return callDoor(
|
|
7407
|
+
DOORS.formResults,
|
|
7408
|
+
{ p_organization_id: org, p_form_id: form_id },
|
|
7409
|
+
"formResults"
|
|
7410
|
+
);
|
|
7411
|
+
},
|
|
7367
7412
|
async formLookOptions(args) {
|
|
7368
7413
|
return callDoor(
|
|
7369
7414
|
DOORS.formLookOptions,
|
|
@@ -9040,6 +9085,48 @@ function createRecordsClient(given) {
|
|
|
9040
9085
|
}
|
|
9041
9086
|
return result;
|
|
9042
9087
|
},
|
|
9088
|
+
async automationDeclare({ table_id, spec, automation_id }) {
|
|
9089
|
+
return callDoor(
|
|
9090
|
+
DOORS.automationDeclare,
|
|
9091
|
+
{ p_organization_id: org, p_table_id: table_id, p_spec: spec, p_automation_id: automation_id ?? null },
|
|
9092
|
+
"automationDeclare"
|
|
9093
|
+
);
|
|
9094
|
+
},
|
|
9095
|
+
async automations({ table_id, include_archived }) {
|
|
9096
|
+
return callDoor(
|
|
9097
|
+
DOORS.automations,
|
|
9098
|
+
{ p_table_id: table_id, p_organization_id: org, p_include_archived: include_archived ?? false },
|
|
9099
|
+
"automations"
|
|
9100
|
+
);
|
|
9101
|
+
},
|
|
9102
|
+
async automationArchive({ automation_id }) {
|
|
9103
|
+
return callDoor(
|
|
9104
|
+
DOORS.automationArchive,
|
|
9105
|
+
{ p_organization_id: org, p_automation_id: automation_id },
|
|
9106
|
+
"automationArchive"
|
|
9107
|
+
);
|
|
9108
|
+
},
|
|
9109
|
+
async automationRestore({ automation_id }) {
|
|
9110
|
+
return callDoor(
|
|
9111
|
+
DOORS.automationRestore,
|
|
9112
|
+
{ p_organization_id: org, p_automation_id: automation_id },
|
|
9113
|
+
"automationRestore"
|
|
9114
|
+
);
|
|
9115
|
+
},
|
|
9116
|
+
async automationSetEnabled({ automation_id, enabled }) {
|
|
9117
|
+
return callDoor(
|
|
9118
|
+
DOORS.automationSetEnabled,
|
|
9119
|
+
{ p_organization_id: org, p_automation_id: automation_id, p_enabled: enabled },
|
|
9120
|
+
"automationSetEnabled"
|
|
9121
|
+
);
|
|
9122
|
+
},
|
|
9123
|
+
async automationRuns({ automation_id, limit, cursor }) {
|
|
9124
|
+
return callDoor(
|
|
9125
|
+
DOORS.automationRuns,
|
|
9126
|
+
{ p_automation_id: automation_id, p_limit: limit ?? 50, p_cursor: cursor ?? null, p_organization_id: org },
|
|
9127
|
+
"automationRuns"
|
|
9128
|
+
);
|
|
9129
|
+
},
|
|
9043
9130
|
async tableWebhookDeclare({ table_id, target_url, events, description }) {
|
|
9044
9131
|
return callDoor(
|
|
9045
9132
|
DOORS.tableWebhookDeclare,
|