@ai-matrx/records 0.26.0 → 0.28.0
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 +51 -0
- package/dist/core/index.cjs +79 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +50 -3
- package/dist/core/index.d.ts +50 -3
- package/dist/core/index.js +79 -0
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +189 -4
- package/dist/index.d.ts +189 -4
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +79 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +229 -4
- package/dist/react/index.d.ts +229 -4
- package/dist/react/index.js +79 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, FormSummary, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, CaptureSheetSummary, CaptureSheetFace, CaptureFileRef, CaptureOutcome, EnrichmentSummary, EnrichDeclared, EnrichDueRow, EnrichCell, EnrichRun, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, SubscriptionSpec, DigestPreview, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, ReadValue, AnonTokenBinding, ChecklistSpec, ChecklistDeclared, ChecklistTemplateSummary, ChecklistTemplateShape, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistStepCompleted, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.cjs';
|
|
2
|
-
export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, AggregateWindow, COMPUTE_ON, CONTEXT_POLICIES, CaptureField, CaptureQuestion, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChecklistRequirement, ChecklistRequirementKind, ChecklistRoleSpec, ChecklistStepSpec, ChecklistTrigger, ChecklistTriggerKind, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EnrichAlternate, EnrichSource, Enrichment, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, PortalPrincipal, PortalTableExposure, ProvenancePointer, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, QuietHours, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, memoryStore, mintClientKey, ok, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.cjs';
|
|
1
|
+
import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, Pipeline, PipelineColumn, PipelineVerdict, PipelineSpec, PipelineDeclared, FormSummary, BookingSummary, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, CaptureSheetSummary, CaptureSheetFace, CaptureFileRef, CaptureOutcome, EnrichmentSummary, EnrichDeclared, EnrichDueRow, EnrichCell, EnrichRun, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, SubscriptionSpec, DigestPreview, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, ReadValue, AnonTokenBinding, ChecklistSpec, ChecklistDeclared, ChecklistTemplateSummary, ChecklistTemplateShape, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistStepCompleted, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.cjs';
|
|
2
|
+
export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, AggregateWindow, COMPUTE_ON, CONTEXT_POLICIES, CaptureField, CaptureQuestion, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChecklistRequirement, ChecklistRequirementKind, ChecklistRoleSpec, ChecklistStepSpec, ChecklistTrigger, ChecklistTriggerKind, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EnrichAlternate, EnrichSource, Enrichment, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, PipelineMissingField, PipelineRule, PipelineRuleKind, PipelineStage, PortalPrincipal, PortalTableExposure, ProvenancePointer, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, QuietHours, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, bookingPath, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isRecordsErr, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, ok, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DOOR-8. As-of on EITHER clock, and they are different questions:
|
|
@@ -229,6 +229,37 @@ interface RecordsClient {
|
|
|
229
229
|
fieldKernelId(): Promise<RecordsResult<Uuid>>;
|
|
230
230
|
ruleKernelId(): Promise<RecordsResult<Uuid>>;
|
|
231
231
|
/** Every record the Rule says is a member. A saved view's list is this, not a filter a screen ran. */
|
|
232
|
+
/** PRODUCTS row 7 — the whole board: its stage column, its stages in the declared
|
|
233
|
+
* order, and every Rule WITH the sentence it says when it refuses. */
|
|
234
|
+
pipelineRead(args: {
|
|
235
|
+
table_id: Uuid;
|
|
236
|
+
}): Promise<RecordsResult<Pipeline>>;
|
|
237
|
+
/** The store's own count and total per column, over what this person may see. */
|
|
238
|
+
pipelineBoard(args: {
|
|
239
|
+
table_id: Uuid;
|
|
240
|
+
measure?: string | null;
|
|
241
|
+
}): Promise<RecordsResult<PipelineColumn[]>>;
|
|
242
|
+
/** Whether this card may go to that column — asked BEFORE the finger lets go. */
|
|
243
|
+
pipelineTransitionRefusal(args: {
|
|
244
|
+
record_id: Uuid;
|
|
245
|
+
to: string;
|
|
246
|
+
}): Promise<RecordsResult<PipelineVerdict>>;
|
|
247
|
+
/** Move a record to a stage. An ORDINARY record write, judged by the same Rules. */
|
|
248
|
+
pipelineMove(args: {
|
|
249
|
+
record_id: Uuid;
|
|
250
|
+
to: string;
|
|
251
|
+
also?: Record<string, unknown>;
|
|
252
|
+
expected_version?: number | null;
|
|
253
|
+
}): Promise<RecordsResult<unknown>>;
|
|
254
|
+
/** Declare (or re-state) a pipeline: the stage column and its transition Rules. */
|
|
255
|
+
pipelineDeclare(args: {
|
|
256
|
+
table_id: Uuid;
|
|
257
|
+
spec: PipelineSpec;
|
|
258
|
+
}): Promise<RecordsResult<PipelineDeclared>>;
|
|
259
|
+
/** Which column of this table holds its stage, or null when it is not a board. */
|
|
260
|
+
tableStageField(args: {
|
|
261
|
+
table_id: Uuid;
|
|
262
|
+
}): Promise<RecordsResult<string | null>>;
|
|
232
263
|
ruleMembers(args: {
|
|
233
264
|
rule_id: Uuid;
|
|
234
265
|
}): Promise<RecordsResult<StoredRecord[]>>;
|
|
@@ -260,6 +291,15 @@ interface RecordsClient {
|
|
|
260
291
|
forms(args?: {
|
|
261
292
|
table_id?: Uuid | null;
|
|
262
293
|
}): Promise<RecordsResult<FormSummary[]>>;
|
|
294
|
+
/**
|
|
295
|
+
* THIS ORGANIZATION'S BOOKING PAGES (PRODUCTS row 14), with the numbers that make
|
|
296
|
+
* the list worth opening: how many are booked, cancelled, still ahead, and how many
|
|
297
|
+
* slots somebody is holding right now. A booking page is an `anon_form`, so it is
|
|
298
|
+
* opened and closed with `anonPublish` exactly as a form is.
|
|
299
|
+
*/
|
|
300
|
+
bookings(args?: {
|
|
301
|
+
table_id?: Uuid | null;
|
|
302
|
+
}): Promise<RecordsResult<BookingSummary[]>>;
|
|
263
303
|
/** Create or re-state one form. A question naming no Field of that Table is refused BY NAME. */
|
|
264
304
|
formDeclare(args: {
|
|
265
305
|
table_id: Uuid;
|
|
@@ -1222,12 +1262,19 @@ declare const DOORS: {
|
|
|
1222
1262
|
readonly fieldKernelId: "field_kernel_id";
|
|
1223
1263
|
readonly ruleKernelId: "rule_kernel_id";
|
|
1224
1264
|
readonly tableKernelId: "table_kernel_id";
|
|
1265
|
+
readonly pipelineDeclare: "pipeline_declare";
|
|
1266
|
+
readonly pipelineRead: "pipeline_read";
|
|
1267
|
+
readonly pipelineBoard: "pipeline_board";
|
|
1268
|
+
readonly pipelineTransitionRefusal: "pipeline_transition_refusal";
|
|
1269
|
+
readonly pipelineMove: "pipeline_move";
|
|
1270
|
+
readonly tableStageField: "table_stage_field";
|
|
1225
1271
|
readonly ruleMembers: "rule_members";
|
|
1226
1272
|
readonly ruleMembership: "rule_membership";
|
|
1227
1273
|
readonly ruleRun: "rule_run";
|
|
1228
1274
|
readonly ruleEval: "rule_eval";
|
|
1229
1275
|
readonly forms: "forms";
|
|
1230
1276
|
readonly formDeclare: "form_declare";
|
|
1277
|
+
readonly bookings: "bookings";
|
|
1231
1278
|
readonly importPlan: "io_import_plan";
|
|
1232
1279
|
readonly importBegin: "io_import_begin";
|
|
1233
1280
|
readonly importRows: "io_import_rows";
|
|
@@ -1473,4 +1520,4 @@ declare function parseCsv(text: string): string[][];
|
|
|
1473
1520
|
declare function importCsv(text: string): ParsedImport;
|
|
1474
1521
|
declare function importXlsx(bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
|
|
1475
1522
|
|
|
1476
|
-
export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, CaptureFileRef, CaptureOutcome, CaptureSheetFace, CaptureSheetSummary, ChecklistDeclared, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistSpec, ChecklistStepCompleted, ChecklistTemplateShape, ChecklistTemplateSummary, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DigestPreview, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EnrichCell, EnrichDeclared, EnrichDueRow, EnrichRun, EnrichmentSummary, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldHistoryEntry, FieldPatch, FieldProposal, FormSummary, ImportBatchResult, ImportFinished, ImportOpened, ImportPlan, ImportPolicy, ImportReport, ImportRun, InboundAddress, InboundDeclared, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, MySubscription, NewEntityFieldDeclaration, NewFieldDeclaration, type ParsedImport, PgError, PortalCard, PortalInvitation, PortalPreviewRow, PortalRevocation, PortalSummary, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, RecordHistoryEntry, type RecordQuery, RecordRead, RecordRevision, RecordScopeContext, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, RestorePreview, RestoreResult, StaleWriteDetail, StoredRecord, StuckRow, Subscription, SubscriptionSpec, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkApprovalDecision, WorkApprovalFiled, WorkApprover, WorkAssignment, WorkAssignmentField, WorkChange, WorkGraph, WorkInboxItem, WorkInstantiation, WorkListFlavour, WorkListItem, WorkRecordState, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
|
|
1523
|
+
export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, BookingSummary, CaptureFileRef, CaptureOutcome, CaptureSheetFace, CaptureSheetSummary, ChecklistDeclared, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistSpec, ChecklistStepCompleted, ChecklistTemplateShape, ChecklistTemplateSummary, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DigestPreview, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EnrichCell, EnrichDeclared, EnrichDueRow, EnrichRun, EnrichmentSummary, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldHistoryEntry, FieldPatch, FieldProposal, FormSummary, ImportBatchResult, ImportFinished, ImportOpened, ImportPlan, ImportPolicy, ImportReport, ImportRun, InboundAddress, InboundDeclared, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, MySubscription, NewEntityFieldDeclaration, NewFieldDeclaration, type ParsedImport, PgError, Pipeline, PipelineColumn, PipelineDeclared, PipelineSpec, PipelineVerdict, PortalCard, PortalInvitation, PortalPreviewRow, PortalRevocation, PortalSummary, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, RecordHistoryEntry, type RecordQuery, RecordRead, RecordRevision, RecordScopeContext, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, RestorePreview, RestoreResult, StaleWriteDetail, StoredRecord, StuckRow, Subscription, SubscriptionSpec, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkApprovalDecision, WorkApprovalFiled, WorkApprover, WorkAssignment, WorkAssignmentField, WorkChange, WorkGraph, WorkInboxItem, WorkInstantiation, WorkListFlavour, WorkListItem, WorkRecordState, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, FormSummary, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, CaptureSheetSummary, CaptureSheetFace, CaptureFileRef, CaptureOutcome, EnrichmentSummary, EnrichDeclared, EnrichDueRow, EnrichCell, EnrichRun, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, SubscriptionSpec, DigestPreview, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, ReadValue, AnonTokenBinding, ChecklistSpec, ChecklistDeclared, ChecklistTemplateSummary, ChecklistTemplateShape, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistStepCompleted, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.js';
|
|
2
|
-
export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, AggregateWindow, COMPUTE_ON, CONTEXT_POLICIES, CaptureField, CaptureQuestion, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChecklistRequirement, ChecklistRequirementKind, ChecklistRoleSpec, ChecklistStepSpec, ChecklistTrigger, ChecklistTriggerKind, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EnrichAlternate, EnrichSource, Enrichment, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, PortalPrincipal, PortalTableExposure, ProvenancePointer, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, QuietHours, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, memoryStore, mintClientKey, ok, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.js';
|
|
1
|
+
import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, EntityTableFacts, NewEntityFieldDeclaration, EntityFieldRights, EntityRecordRead, EntityRecordsFound, Pipeline, PipelineColumn, PipelineVerdict, PipelineSpec, PipelineDeclared, FormSummary, BookingSummary, ImportPlan, ImportPolicy, ImportOpened, ImportBatchResult, ImportFinished, ImportReport, ImportRun, InboundDeclared, InboundAddress, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, CaptureSheetSummary, CaptureSheetFace, CaptureFileRef, CaptureOutcome, EnrichmentSummary, EnrichDeclared, EnrichDueRow, EnrichCell, EnrichRun, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, SubscriptionSpec, DigestPreview, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, ReadValue, AnonTokenBinding, ChecklistSpec, ChecklistDeclared, ChecklistTemplateSummary, ChecklistTemplateShape, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistStepCompleted, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, WorkInboxItem, WorkListFlavour, WorkListItem, WorkAssignment, WorkRecordState, WorkApprover, WorkChange, WorkApprovalFiled, WorkApprovalDecision, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.js';
|
|
2
|
+
export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, AggregateWindow, COMPUTE_ON, CONTEXT_POLICIES, CaptureField, CaptureQuestion, CaptureQueue, CaptureQueueCounts, CaptureQueueOptions, CaptureQueuePorts, CaptureQueueStore, CaptureSyncReport, ChecklistRequirement, ChecklistRequirementKind, ChecklistRoleSpec, ChecklistStepSpec, ChecklistTrigger, ChecklistTriggerKind, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EnrichAlternate, EnrichSource, Enrichment, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, HistoryActor, HistoryActorKind, HistoryChange, Home, ImportColumnPlan, ImportOutcome, ImportProposal, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, PipelineMissingField, PipelineRule, PipelineRuleKind, PipelineStage, PortalPrincipal, PortalTableExposure, ProvenancePointer, QueuedCapture, QueuedCaptureFile, QueuedCaptureState, QuietHours, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordComment, RecordScopeComment, RecordScopeField, RecordScopeHistoryEntry, RecordScopeRelation, RecordScopeWithheld, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkDueState, WorkInboxKind, WorkOrigin, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, bookingPath, choiceSlug, choiceValuesOf, choicesOf, err, highestLevel, holdsARetiredChoice, indexedDbStore, isDecided, isRecordsErr, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, ok, openCaptureQueue, optionKey, optionLabel, portalPath, publicFormPath, scopeChip } from '../index.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DOOR-8. As-of on EITHER clock, and they are different questions:
|
|
@@ -229,6 +229,37 @@ interface RecordsClient {
|
|
|
229
229
|
fieldKernelId(): Promise<RecordsResult<Uuid>>;
|
|
230
230
|
ruleKernelId(): Promise<RecordsResult<Uuid>>;
|
|
231
231
|
/** Every record the Rule says is a member. A saved view's list is this, not a filter a screen ran. */
|
|
232
|
+
/** PRODUCTS row 7 — the whole board: its stage column, its stages in the declared
|
|
233
|
+
* order, and every Rule WITH the sentence it says when it refuses. */
|
|
234
|
+
pipelineRead(args: {
|
|
235
|
+
table_id: Uuid;
|
|
236
|
+
}): Promise<RecordsResult<Pipeline>>;
|
|
237
|
+
/** The store's own count and total per column, over what this person may see. */
|
|
238
|
+
pipelineBoard(args: {
|
|
239
|
+
table_id: Uuid;
|
|
240
|
+
measure?: string | null;
|
|
241
|
+
}): Promise<RecordsResult<PipelineColumn[]>>;
|
|
242
|
+
/** Whether this card may go to that column — asked BEFORE the finger lets go. */
|
|
243
|
+
pipelineTransitionRefusal(args: {
|
|
244
|
+
record_id: Uuid;
|
|
245
|
+
to: string;
|
|
246
|
+
}): Promise<RecordsResult<PipelineVerdict>>;
|
|
247
|
+
/** Move a record to a stage. An ORDINARY record write, judged by the same Rules. */
|
|
248
|
+
pipelineMove(args: {
|
|
249
|
+
record_id: Uuid;
|
|
250
|
+
to: string;
|
|
251
|
+
also?: Record<string, unknown>;
|
|
252
|
+
expected_version?: number | null;
|
|
253
|
+
}): Promise<RecordsResult<unknown>>;
|
|
254
|
+
/** Declare (or re-state) a pipeline: the stage column and its transition Rules. */
|
|
255
|
+
pipelineDeclare(args: {
|
|
256
|
+
table_id: Uuid;
|
|
257
|
+
spec: PipelineSpec;
|
|
258
|
+
}): Promise<RecordsResult<PipelineDeclared>>;
|
|
259
|
+
/** Which column of this table holds its stage, or null when it is not a board. */
|
|
260
|
+
tableStageField(args: {
|
|
261
|
+
table_id: Uuid;
|
|
262
|
+
}): Promise<RecordsResult<string | null>>;
|
|
232
263
|
ruleMembers(args: {
|
|
233
264
|
rule_id: Uuid;
|
|
234
265
|
}): Promise<RecordsResult<StoredRecord[]>>;
|
|
@@ -260,6 +291,15 @@ interface RecordsClient {
|
|
|
260
291
|
forms(args?: {
|
|
261
292
|
table_id?: Uuid | null;
|
|
262
293
|
}): Promise<RecordsResult<FormSummary[]>>;
|
|
294
|
+
/**
|
|
295
|
+
* THIS ORGANIZATION'S BOOKING PAGES (PRODUCTS row 14), with the numbers that make
|
|
296
|
+
* the list worth opening: how many are booked, cancelled, still ahead, and how many
|
|
297
|
+
* slots somebody is holding right now. A booking page is an `anon_form`, so it is
|
|
298
|
+
* opened and closed with `anonPublish` exactly as a form is.
|
|
299
|
+
*/
|
|
300
|
+
bookings(args?: {
|
|
301
|
+
table_id?: Uuid | null;
|
|
302
|
+
}): Promise<RecordsResult<BookingSummary[]>>;
|
|
263
303
|
/** Create or re-state one form. A question naming no Field of that Table is refused BY NAME. */
|
|
264
304
|
formDeclare(args: {
|
|
265
305
|
table_id: Uuid;
|
|
@@ -1222,12 +1262,19 @@ declare const DOORS: {
|
|
|
1222
1262
|
readonly fieldKernelId: "field_kernel_id";
|
|
1223
1263
|
readonly ruleKernelId: "rule_kernel_id";
|
|
1224
1264
|
readonly tableKernelId: "table_kernel_id";
|
|
1265
|
+
readonly pipelineDeclare: "pipeline_declare";
|
|
1266
|
+
readonly pipelineRead: "pipeline_read";
|
|
1267
|
+
readonly pipelineBoard: "pipeline_board";
|
|
1268
|
+
readonly pipelineTransitionRefusal: "pipeline_transition_refusal";
|
|
1269
|
+
readonly pipelineMove: "pipeline_move";
|
|
1270
|
+
readonly tableStageField: "table_stage_field";
|
|
1225
1271
|
readonly ruleMembers: "rule_members";
|
|
1226
1272
|
readonly ruleMembership: "rule_membership";
|
|
1227
1273
|
readonly ruleRun: "rule_run";
|
|
1228
1274
|
readonly ruleEval: "rule_eval";
|
|
1229
1275
|
readonly forms: "forms";
|
|
1230
1276
|
readonly formDeclare: "form_declare";
|
|
1277
|
+
readonly bookings: "bookings";
|
|
1231
1278
|
readonly importPlan: "io_import_plan";
|
|
1232
1279
|
readonly importBegin: "io_import_begin";
|
|
1233
1280
|
readonly importRows: "io_import_rows";
|
|
@@ -1473,4 +1520,4 @@ declare function parseCsv(text: string): string[][];
|
|
|
1473
1520
|
declare function importCsv(text: string): ParsedImport;
|
|
1474
1521
|
declare function importXlsx(bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
|
|
1475
1522
|
|
|
1476
|
-
export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, CaptureFileRef, CaptureOutcome, CaptureSheetFace, CaptureSheetSummary, ChecklistDeclared, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistSpec, ChecklistStepCompleted, ChecklistTemplateShape, ChecklistTemplateSummary, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DigestPreview, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EnrichCell, EnrichDeclared, EnrichDueRow, EnrichRun, EnrichmentSummary, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldHistoryEntry, FieldPatch, FieldProposal, FormSummary, ImportBatchResult, ImportFinished, ImportOpened, ImportPlan, ImportPolicy, ImportReport, ImportRun, InboundAddress, InboundDeclared, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, MySubscription, NewEntityFieldDeclaration, NewFieldDeclaration, type ParsedImport, PgError, PortalCard, PortalInvitation, PortalPreviewRow, PortalRevocation, PortalSummary, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, RecordHistoryEntry, type RecordQuery, RecordRead, RecordRevision, RecordScopeContext, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, RestorePreview, RestoreResult, StaleWriteDetail, StoredRecord, StuckRow, Subscription, SubscriptionSpec, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkApprovalDecision, WorkApprovalFiled, WorkApprover, WorkAssignment, WorkAssignmentField, WorkChange, WorkGraph, WorkInboxItem, WorkInstantiation, WorkListFlavour, WorkListItem, WorkRecordState, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
|
|
1523
|
+
export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, BookingSummary, CaptureFileRef, CaptureOutcome, CaptureSheetFace, CaptureSheetSummary, ChecklistDeclared, ChecklistRunStarted, ChecklistRunStep, ChecklistRunSummary, ChecklistSpec, ChecklistStepCompleted, ChecklistTemplateShape, ChecklistTemplateSummary, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DigestPreview, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EnrichCell, EnrichDeclared, EnrichDueRow, EnrichRun, EnrichmentSummary, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldHistoryEntry, FieldPatch, FieldProposal, FormSummary, ImportBatchResult, ImportFinished, ImportOpened, ImportPlan, ImportPolicy, ImportReport, ImportRun, InboundAddress, InboundDeclared, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, MySubscription, NewEntityFieldDeclaration, NewFieldDeclaration, type ParsedImport, PgError, Pipeline, PipelineColumn, PipelineDeclared, PipelineSpec, PipelineVerdict, PortalCard, PortalInvitation, PortalPreviewRow, PortalRevocation, PortalSummary, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, RecordHistoryEntry, type RecordQuery, RecordRead, RecordRevision, RecordScopeContext, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, RestorePreview, RestoreResult, StaleWriteDetail, StoredRecord, StuckRow, Subscription, SubscriptionSpec, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkApprovalDecision, WorkApprovalFiled, WorkApprover, WorkAssignment, WorkAssignmentField, WorkChange, WorkGraph, WorkInboxItem, WorkInstantiation, WorkListFlavour, WorkListItem, WorkRecordState, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
|
package/dist/core/index.js
CHANGED
|
@@ -124,7 +124,16 @@ function looksLikeAnId(value) {
|
|
|
124
124
|
return typeof value === "string" && UUID.test(value);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
// src/pipeline.ts
|
|
128
|
+
var PIPELINE_RULE_KINDS = ["moves", "requires", "who", "limit", "entry"];
|
|
129
|
+
function mayDrag(level) {
|
|
130
|
+
return level === "editor" || level === "admin" || level === "owner";
|
|
131
|
+
}
|
|
132
|
+
|
|
127
133
|
// src/rule.ts
|
|
134
|
+
function bookingPath(formId) {
|
|
135
|
+
return `/b/${formId}`;
|
|
136
|
+
}
|
|
128
137
|
function publicFormPath(formId) {
|
|
129
138
|
return `/f/${formId}`;
|
|
130
139
|
}
|
|
@@ -2236,6 +2245,12 @@ var DOORS = {
|
|
|
2236
2245
|
tableKernelId: "table_kernel_id",
|
|
2237
2246
|
// A saved view references its membership Rule, and the STORE decides who is
|
|
2238
2247
|
// in it — the screen never re-implements the predicate.
|
|
2248
|
+
pipelineDeclare: "pipeline_declare",
|
|
2249
|
+
pipelineRead: "pipeline_read",
|
|
2250
|
+
pipelineBoard: "pipeline_board",
|
|
2251
|
+
pipelineTransitionRefusal: "pipeline_transition_refusal",
|
|
2252
|
+
pipelineMove: "pipeline_move",
|
|
2253
|
+
tableStageField: "table_stage_field",
|
|
2239
2254
|
ruleMembers: "rule_members",
|
|
2240
2255
|
ruleMembership: "rule_membership",
|
|
2241
2256
|
ruleRun: "rule_run",
|
|
@@ -2251,6 +2266,12 @@ var DOORS = {
|
|
|
2251
2266
|
// are server-lane doors and a browser never calls them.
|
|
2252
2267
|
forms: "forms",
|
|
2253
2268
|
formDeclare: "form_declare",
|
|
2269
|
+
// PRODUCTS row 14 — "let clients book a 30-minute consult". A booking page IS an
|
|
2270
|
+
// `anon_form`, so it is opened and closed by `anonPublish` like any other; this is
|
|
2271
|
+
// the owner's list of them with the numbers that make it worth opening. The
|
|
2272
|
+
// VISITOR's three (`booking_public`, `booking_hold`, `booking_confirm`) are
|
|
2273
|
+
// deliberately absent: they are server-lane and a browser never calls them.
|
|
2274
|
+
bookings: "bookings",
|
|
2254
2275
|
// PRODUCTS row 9 — "pull my spreadsheet in". W4-IO built `io_import_open` and
|
|
2255
2276
|
// `io_import_rows`; lane IMPORT gave a run an IDENTITY (the file's sha-256, so
|
|
2256
2277
|
// a re-import doubles nothing), a duplicate key, a policy, per-row outcomes
|
|
@@ -3035,6 +3056,54 @@ function createRecordsClient(config) {
|
|
|
3035
3056
|
async ruleKernelId() {
|
|
3036
3057
|
return callDoor(DOORS.ruleKernelId, {}, "ruleKernelId");
|
|
3037
3058
|
},
|
|
3059
|
+
async pipelineRead({ table_id }) {
|
|
3060
|
+
return callDoor(
|
|
3061
|
+
DOORS.pipelineRead,
|
|
3062
|
+
{ p_organization_id: org, p_table_id: table_id },
|
|
3063
|
+
"pipelineRead"
|
|
3064
|
+
);
|
|
3065
|
+
},
|
|
3066
|
+
async pipelineBoard({ table_id, measure }) {
|
|
3067
|
+
return callDoor(
|
|
3068
|
+
DOORS.pipelineBoard,
|
|
3069
|
+
{ p_organization_id: org, p_table_id: table_id, p_measure: measure ?? null },
|
|
3070
|
+
"pipelineBoard"
|
|
3071
|
+
);
|
|
3072
|
+
},
|
|
3073
|
+
async pipelineTransitionRefusal({ record_id, to }) {
|
|
3074
|
+
return callDoor(
|
|
3075
|
+
DOORS.pipelineTransitionRefusal,
|
|
3076
|
+
{ p_organization_id: org, p_record_id: record_id, p_to: to },
|
|
3077
|
+
"pipelineTransitionRefusal"
|
|
3078
|
+
);
|
|
3079
|
+
},
|
|
3080
|
+
async pipelineMove({ record_id, to, also, expected_version }) {
|
|
3081
|
+
return callDoor(
|
|
3082
|
+
DOORS.pipelineMove,
|
|
3083
|
+
{
|
|
3084
|
+
p_organization_id: org,
|
|
3085
|
+
p_record_id: record_id,
|
|
3086
|
+
p_to: to,
|
|
3087
|
+
p_also: also ?? {},
|
|
3088
|
+
p_expected_version: expected_version ?? null
|
|
3089
|
+
},
|
|
3090
|
+
"pipelineMove"
|
|
3091
|
+
);
|
|
3092
|
+
},
|
|
3093
|
+
async pipelineDeclare({ table_id, spec }) {
|
|
3094
|
+
return callDoor(
|
|
3095
|
+
DOORS.pipelineDeclare,
|
|
3096
|
+
{ p_organization_id: org, p_table_id: table_id, p_spec: spec },
|
|
3097
|
+
"pipelineDeclare"
|
|
3098
|
+
);
|
|
3099
|
+
},
|
|
3100
|
+
async tableStageField({ table_id }) {
|
|
3101
|
+
return callDoor(
|
|
3102
|
+
DOORS.tableStageField,
|
|
3103
|
+
{ p_organization_id: org, p_table_id: table_id },
|
|
3104
|
+
"tableStageField"
|
|
3105
|
+
);
|
|
3106
|
+
},
|
|
3038
3107
|
async ruleMembers({ rule_id }) {
|
|
3039
3108
|
return callDoor(
|
|
3040
3109
|
DOORS.ruleMembers,
|
|
@@ -3056,6 +3125,13 @@ function createRecordsClient(config) {
|
|
|
3056
3125
|
"forms"
|
|
3057
3126
|
);
|
|
3058
3127
|
},
|
|
3128
|
+
async bookings(args) {
|
|
3129
|
+
return callDoor(
|
|
3130
|
+
DOORS.bookings,
|
|
3131
|
+
{ p_organization_id: org, p_table_id: args?.table_id ?? null },
|
|
3132
|
+
"bookings"
|
|
3133
|
+
);
|
|
3134
|
+
},
|
|
3059
3135
|
async formDeclare(args) {
|
|
3060
3136
|
return callDoor(
|
|
3061
3137
|
DOORS.formDeclare,
|
|
@@ -4764,6 +4840,7 @@ export {
|
|
|
4764
4840
|
PARITY_FIELD_TYPES,
|
|
4765
4841
|
PERMISSION_LEVELS,
|
|
4766
4842
|
PER_VALUE_ACCESS_WORDS,
|
|
4843
|
+
PIPELINE_RULE_KINDS,
|
|
4767
4844
|
REFUSALS_WORTH_REPEATING,
|
|
4768
4845
|
RELATION_BINDINGS,
|
|
4769
4846
|
RELATION_CARDINALITIES,
|
|
@@ -4783,6 +4860,7 @@ export {
|
|
|
4783
4860
|
asPermissionLevel,
|
|
4784
4861
|
asWriteConflict,
|
|
4785
4862
|
atLeast,
|
|
4863
|
+
bookingPath,
|
|
4786
4864
|
cellText,
|
|
4787
4865
|
choiceSlug,
|
|
4788
4866
|
choiceValuesOf,
|
|
@@ -4805,6 +4883,7 @@ export {
|
|
|
4805
4883
|
isTheChosen,
|
|
4806
4884
|
looksLikeAnId,
|
|
4807
4885
|
mapPgError,
|
|
4886
|
+
mayDrag,
|
|
4808
4887
|
measureKey,
|
|
4809
4888
|
memoryStore,
|
|
4810
4889
|
mintClientKey,
|