@ai-matrx/records 0.16.0 → 0.20.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 +156 -0
- package/dist/core/index.cjs +483 -31
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +249 -6
- package/dist/core/index.d.ts +249 -6
- package/dist/core/index.js +483 -31
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +117 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +950 -12
- package/dist/index.d.ts +950 -12
- package/dist/index.js +117 -11
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +483 -31
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +1167 -15
- package/dist/react/index.d.ts +1167 -15
- package/dist/react/index.js +483 -31
- 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, PortalSummary, PortalCard, PortalInvitation, PortalRevocation, PortalPreviewRow, DashboardSummary, DashboardBlock, AggregateFilter, DashboardRunResult, StuckRow, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, ReadValue, AnonTokenBinding, 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, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityFieldValue, EntityRecordMatch, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, FieldTypeWord, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, Home, 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, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, 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, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, optionKey, optionLabel, portalPath, publicFormPath } from '../index.cjs';
|
|
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, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, MySubscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, RecordHistoryEntry, RecordScopeContext, ConversationScope, ConversationScopeContext, FieldHistoryEntry, RestorePreview, RestoreResult, CommentThreadRead, CommentWritten, ReadValue, AnonTokenBinding, 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, ChoiceOption, ComputeOn, ContextPolicy, CustomFieldTableType, DELIVERIES, DashboardBlockKind, DashboardBlockResult, Delivery, DocSignatureCheck, ENTITY_TOKENS, 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, 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, isRecordsErr, isTheChosen, looksLikeAnId, measureKey, ok, 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:
|
|
@@ -272,6 +272,95 @@ interface RecordsClient {
|
|
|
272
272
|
form_id?: Uuid | null;
|
|
273
273
|
slug?: string | null;
|
|
274
274
|
}): Promise<RecordsResult<Uuid>>;
|
|
275
|
+
/**
|
|
276
|
+
* What the store makes of a file's columns, before anything is written.
|
|
277
|
+
* `columns` is `[{header, samples}]` — the first page of the file is plenty.
|
|
278
|
+
*/
|
|
279
|
+
importPlan(args: {
|
|
280
|
+
table_id: Uuid;
|
|
281
|
+
columns: Array<{
|
|
282
|
+
header: string;
|
|
283
|
+
samples: unknown[];
|
|
284
|
+
}>;
|
|
285
|
+
}): Promise<RecordsResult<ImportPlan>>;
|
|
286
|
+
/**
|
|
287
|
+
* Open a run. `file_hash` is the run's IDENTITY: the same bytes into the same
|
|
288
|
+
* table a second time answer the FIRST run with `already: true` and write
|
|
289
|
+
* nothing, so a re-import doubles nothing. `force` re-opens deliberately.
|
|
290
|
+
*/
|
|
291
|
+
importBegin(args: {
|
|
292
|
+
table_id: Uuid;
|
|
293
|
+
format?: "csv" | "xlsx";
|
|
294
|
+
source_name?: string | null;
|
|
295
|
+
source_columns?: unknown[];
|
|
296
|
+
file_hash?: string | null;
|
|
297
|
+
policy?: ImportPolicy;
|
|
298
|
+
/** A Field key. A row whose value for it is already here is a duplicate. */
|
|
299
|
+
dedupe_key?: string | null;
|
|
300
|
+
file_bytes?: number | null;
|
|
301
|
+
force?: boolean;
|
|
302
|
+
}): Promise<RecordsResult<ImportOpened>>;
|
|
303
|
+
/**
|
|
304
|
+
* One BATCH of rows. Every row is written through the ONE write door inside
|
|
305
|
+
* its own subtransaction, so a refused row leaves nothing behind and never
|
|
306
|
+
* costs the rows before it. Send a few hundred at a time.
|
|
307
|
+
*/
|
|
308
|
+
importRows(args: {
|
|
309
|
+
import_id: Uuid;
|
|
310
|
+
rows: Array<Record<string, unknown>>;
|
|
311
|
+
/** Header -> Field key. A header that already spells a key needs no entry. */
|
|
312
|
+
mapping?: Record<string, string>;
|
|
313
|
+
}): Promise<RecordsResult<ImportBatchResult>>;
|
|
314
|
+
/**
|
|
315
|
+
* Close the run and decide the columns the file had and the table did not:
|
|
316
|
+
* `propose` (the ONE approvals inbox, and the only choice a non-admin has),
|
|
317
|
+
* `create` (an admin adds them outright) or `ignore`.
|
|
318
|
+
*/
|
|
319
|
+
importFinish(args: {
|
|
320
|
+
import_id: Uuid;
|
|
321
|
+
unmapped?: "propose" | "create" | "ignore";
|
|
322
|
+
}): Promise<RecordsResult<ImportFinished>>;
|
|
323
|
+
/** The refused rows, or the ones already here, WITH the source row on each. */
|
|
324
|
+
importReport(args: {
|
|
325
|
+
import_id: Uuid;
|
|
326
|
+
state?: "refused" | "duplicate";
|
|
327
|
+
limit?: number;
|
|
328
|
+
offset?: number;
|
|
329
|
+
}): Promise<RecordsResult<ImportReport>>;
|
|
330
|
+
/** This organization's import runs, newest first. How you find yesterday's. */
|
|
331
|
+
imports(args?: {
|
|
332
|
+
table_id?: Uuid | null;
|
|
333
|
+
limit?: number;
|
|
334
|
+
}): Promise<RecordsResult<ImportRun[]>>;
|
|
335
|
+
/**
|
|
336
|
+
* Forget the RECEIPT for a file so the same bytes can be imported again
|
|
337
|
+
* deliberately. Never touches the records that import wrote.
|
|
338
|
+
*/
|
|
339
|
+
importForget(args: {
|
|
340
|
+
import_id: Uuid;
|
|
341
|
+
}): Promise<RecordsResult<boolean>>;
|
|
342
|
+
/**
|
|
343
|
+
* Give a table its own address. The answer carries `mail_route`: the one
|
|
344
|
+
* sentence saying what has to exist in DNS before anything arrives. Show it
|
|
345
|
+
* wherever the address is shown — an address that silently swallows mail is
|
|
346
|
+
* the failure this whole door is against.
|
|
347
|
+
*/
|
|
348
|
+
inboundDeclare(args: {
|
|
349
|
+
table_id: Uuid;
|
|
350
|
+
label?: string | null;
|
|
351
|
+
}): Promise<RecordsResult<InboundDeclared>>;
|
|
352
|
+
inboundAddresses(args?: {
|
|
353
|
+
table_id?: Uuid | null;
|
|
354
|
+
}): Promise<RecordsResult<InboundAddress[]>>;
|
|
355
|
+
inboundSet(args: {
|
|
356
|
+
inbound_id: Uuid;
|
|
357
|
+
enabled: boolean;
|
|
358
|
+
}): Promise<RecordsResult<{
|
|
359
|
+
inbound_id: Uuid;
|
|
360
|
+
address: string;
|
|
361
|
+
enabled: boolean;
|
|
362
|
+
message: string;
|
|
363
|
+
}>>;
|
|
275
364
|
/** Every portal over this organization the caller may know about, with its numbers. */
|
|
276
365
|
portals(): Promise<RecordsResult<PortalSummary[]>>;
|
|
277
366
|
/** ONE portal in full: what it shows, and who it was opened to. */
|
|
@@ -405,6 +494,14 @@ interface RecordsClient {
|
|
|
405
494
|
}): Promise<RecordsResult<Subscription[]>>;
|
|
406
495
|
/** The cadences the store itself offers. Asked, never hardcoded in a picker. */
|
|
407
496
|
aggSubscriptionCadences(): Promise<RecordsResult<string[]>>;
|
|
497
|
+
/**
|
|
498
|
+
* The same cadences, through the door a PERSON may call.
|
|
499
|
+
* `aggSubscriptionCadences` is the notifier's own and holds no client grant,
|
|
500
|
+
* so a screen that asked for it was refused and fell back to a list typed
|
|
501
|
+
* into the picker — which drifts from what the digest runner honours. This
|
|
502
|
+
* one delegates to the same array, so there is exactly one list.
|
|
503
|
+
*/
|
|
504
|
+
subscriptionCadences(): Promise<RecordsResult<string[]>>;
|
|
408
505
|
/**
|
|
409
506
|
* WHAT THIS PERSON IS BEING TOLD ABOUT, and what they may switch off.
|
|
410
507
|
*
|
|
@@ -459,15 +556,23 @@ interface RecordsClient {
|
|
|
459
556
|
docSignatureIntact(args: {
|
|
460
557
|
signature_id: Uuid;
|
|
461
558
|
}): Promise<RecordsResult<unknown>>;
|
|
462
|
-
/** Every template that renders one Table. */
|
|
559
|
+
/** Every template that renders one Table. Viewer on the Table. */
|
|
463
560
|
docTemplates(args: {
|
|
464
561
|
table_id: Uuid;
|
|
465
562
|
}): Promise<RecordsResult<DocTemplateRow[]>>;
|
|
466
|
-
/**
|
|
563
|
+
/**
|
|
564
|
+
* Retire one template. EDITOR on the Table it renders, because a template is
|
|
565
|
+
* that Table's wording. Documents already rendered keep their frozen bytes
|
|
566
|
+
* and their seals, so this can never invalidate a signature.
|
|
567
|
+
*/
|
|
568
|
+
docTemplateDelete(args: {
|
|
569
|
+
template_id: Uuid;
|
|
570
|
+
}): Promise<RecordsResult<boolean>>;
|
|
571
|
+
/** Every frozen render of one record, newest first. Viewer on the record. */
|
|
467
572
|
docRenders(args: {
|
|
468
573
|
record_id: Uuid;
|
|
469
574
|
}): Promise<RecordsResult<DocRenderRow[]>>;
|
|
470
|
-
/** Every signature on one record. */
|
|
575
|
+
/** Every signature on one record. Viewer on the record. */
|
|
471
576
|
docSignatures(args: {
|
|
472
577
|
record_id: Uuid;
|
|
473
578
|
}): Promise<RecordsResult<DocSignatureRow[]>>;
|
|
@@ -480,6 +585,115 @@ interface RecordsClient {
|
|
|
480
585
|
revisions(args: {
|
|
481
586
|
record_id: Uuid;
|
|
482
587
|
}): Promise<RecordsResult<RecordRevision[]>>;
|
|
588
|
+
/**
|
|
589
|
+
* PRODUCTS row 4. One record's version list, newest first: who (a person, or
|
|
590
|
+
* an agent AND the person it acted for), when, the operation in the word
|
|
591
|
+
* somebody used, and every field that moved with its before, its after, the
|
|
592
|
+
* Rule version that produced a derived value and its source pointer. Viewer
|
|
593
|
+
* on the record — reading how something got to be the way it is is reading.
|
|
594
|
+
*/
|
|
595
|
+
recordHistory(args: {
|
|
596
|
+
record_id: Uuid;
|
|
597
|
+
limit?: number;
|
|
598
|
+
offset?: number;
|
|
599
|
+
}): Promise<RecordsResult<RecordHistoryEntry[]>>;
|
|
600
|
+
/**
|
|
601
|
+
* AGT-N-9 — EVERYTHING A CHAT OPENED ON THIS RECORD MAY KNOW, IN ONE ROUND TRIP.
|
|
602
|
+
*
|
|
603
|
+
* The Fields with their `(record, field, value version)` triples, the relations one hop
|
|
604
|
+
* out, the history, the comments and the Table's other records — assembled INSIDE the
|
|
605
|
+
* database, every piece through the read door, under this person's own field-level
|
|
606
|
+
* security. A Field the store masks comes back in `withheld` with the store's own
|
|
607
|
+
* sentence and no value; a Field the organization keeps out of conversations comes back
|
|
608
|
+
* there too, saying which of the two it is.
|
|
609
|
+
*/
|
|
610
|
+
recordScopeContext(args: {
|
|
611
|
+
record_id: Uuid;
|
|
612
|
+
relations?: number;
|
|
613
|
+
history?: number;
|
|
614
|
+
siblings?: number;
|
|
615
|
+
}): Promise<RecordsResult<RecordScopeContext>>;
|
|
616
|
+
/** What is this conversation about? */
|
|
617
|
+
conversationScope(args: {
|
|
618
|
+
conversation_id: Uuid;
|
|
619
|
+
}): Promise<RecordsResult<ConversationScope>>;
|
|
620
|
+
/** Point a conversation at one record. Refused unless this person may open it. */
|
|
621
|
+
conversationScopeBind(args: {
|
|
622
|
+
conversation_id: Uuid;
|
|
623
|
+
record_id: Uuid;
|
|
624
|
+
}): Promise<RecordsResult<ConversationScope>>;
|
|
625
|
+
/** This conversation is no longer about a particular record. */
|
|
626
|
+
conversationScopeUnbind(args: {
|
|
627
|
+
conversation_id: Uuid;
|
|
628
|
+
}): Promise<RecordsResult<ConversationScope>>;
|
|
629
|
+
/** The binding AND the context of a bound conversation, in one round trip. */
|
|
630
|
+
conversationScopeContext(args: {
|
|
631
|
+
conversation_id: Uuid;
|
|
632
|
+
relations?: number;
|
|
633
|
+
history?: number;
|
|
634
|
+
siblings?: number;
|
|
635
|
+
}): Promise<RecordsResult<ConversationScopeContext>>;
|
|
636
|
+
/**
|
|
637
|
+
* "Who changed the price on ANY record?" One column's history across a whole
|
|
638
|
+
* Table, narrowed to the records this person may see by a predicate in the
|
|
639
|
+
* same statement. A column that names no Field is refused BY NAME, never
|
|
640
|
+
* answered empty.
|
|
641
|
+
*/
|
|
642
|
+
fieldHistory(args: {
|
|
643
|
+
table_id: Uuid;
|
|
644
|
+
field_key: string;
|
|
645
|
+
limit?: number;
|
|
646
|
+
offset?: number;
|
|
647
|
+
record_id?: Uuid;
|
|
648
|
+
}): Promise<RecordsResult<FieldHistoryEntry[]>>;
|
|
649
|
+
/**
|
|
650
|
+
* WHAT A RESTORE WOULD CHANGE, BEFORE IT DOES. Editor on the record: this is
|
|
651
|
+
* the first half of an act, and somebody who may not perform it is not shown
|
|
652
|
+
* its preview. Pass `field_key` for one column.
|
|
653
|
+
*/
|
|
654
|
+
restorePreview(args: {
|
|
655
|
+
record_id: Uuid;
|
|
656
|
+
version: number;
|
|
657
|
+
field_key?: string;
|
|
658
|
+
}): Promise<RecordsResult<RestorePreview>>;
|
|
659
|
+
/** Put the whole record back to a version, as a NEW version. Editor. */
|
|
660
|
+
restoreVersion(args: {
|
|
661
|
+
record_id: Uuid;
|
|
662
|
+
version: number;
|
|
663
|
+
}): Promise<RecordsResult<RestoreResult>>;
|
|
664
|
+
/** Put ONE column back to what it said at a version, as a NEW version (HIS-N-2). Editor. */
|
|
665
|
+
valueRestore(args: {
|
|
666
|
+
record_id: Uuid;
|
|
667
|
+
field_key: string;
|
|
668
|
+
version: number;
|
|
669
|
+
}): Promise<RecordsResult<RestoreResult>>;
|
|
670
|
+
/**
|
|
671
|
+
* SCR-18. The record's comment thread with everybody named, plus what THIS
|
|
672
|
+
* person may do in it — decided by the store, in the same call, so a screen
|
|
673
|
+
* never draws a composer the write door will refuse.
|
|
674
|
+
*/
|
|
675
|
+
commentThread(args: {
|
|
676
|
+
record_id: Uuid;
|
|
677
|
+
include_resolved?: boolean;
|
|
678
|
+
}): Promise<RecordsResult<CommentThreadRead>>;
|
|
679
|
+
/**
|
|
680
|
+
* Write a comment at the `commenter` rung, optionally naming people. A
|
|
681
|
+
* mention is a reference and not a regex over the body: the ids come from the
|
|
682
|
+
* picker and the store refuses one who is not in the organization, or who
|
|
683
|
+
* cannot open the record — because that notification would be a dead end.
|
|
684
|
+
*/
|
|
685
|
+
commentWrite(args: {
|
|
686
|
+
record_id: Uuid;
|
|
687
|
+
body: string;
|
|
688
|
+
field_key?: string;
|
|
689
|
+
parent_comment_id?: Uuid;
|
|
690
|
+
mentions?: Uuid[];
|
|
691
|
+
}): Promise<RecordsResult<CommentWritten>>;
|
|
692
|
+
/** Resolve (or re-open) a thread. `commenter` — resolution is not a delete. */
|
|
693
|
+
commentResolve(args: {
|
|
694
|
+
comment_id: Uuid;
|
|
695
|
+
resolved?: boolean;
|
|
696
|
+
}): Promise<RecordsResult<boolean>>;
|
|
483
697
|
/**
|
|
484
698
|
* Every value of one record WITH its envelope — its own version, who wrote
|
|
485
699
|
* it, who they were acting for and when. The timeline IS the record (REC-19);
|
|
@@ -843,6 +1057,17 @@ declare const DOORS: {
|
|
|
843
1057
|
readonly ruleEval: "rule_eval";
|
|
844
1058
|
readonly forms: "forms";
|
|
845
1059
|
readonly formDeclare: "form_declare";
|
|
1060
|
+
readonly importPlan: "io_import_plan";
|
|
1061
|
+
readonly importBegin: "io_import_begin";
|
|
1062
|
+
readonly importRows: "io_import_rows";
|
|
1063
|
+
readonly importFinish: "io_import_finish";
|
|
1064
|
+
readonly importReport: "io_import_report";
|
|
1065
|
+
readonly imports: "io_imports";
|
|
1066
|
+
readonly importForget: "io_import_forget";
|
|
1067
|
+
readonly inferColumn: "io_infer_column";
|
|
1068
|
+
readonly inboundDeclare: "inbound_declare";
|
|
1069
|
+
readonly inboundAddresses: "inbound_addresses";
|
|
1070
|
+
readonly inboundSet: "inbound_set";
|
|
846
1071
|
readonly portals: "portals";
|
|
847
1072
|
readonly portalCard: "portal_card";
|
|
848
1073
|
readonly portalDeclare: "portal_declare";
|
|
@@ -854,6 +1079,19 @@ declare const DOORS: {
|
|
|
854
1079
|
readonly dashboardRun: "dashboard_run";
|
|
855
1080
|
readonly dashboardStuck: "dashboard_stuck";
|
|
856
1081
|
readonly dashboardDelete: "dashboard_delete";
|
|
1082
|
+
readonly recordHistory: "record_history";
|
|
1083
|
+
readonly fieldHistory: "field_history";
|
|
1084
|
+
readonly restorePreview: "record_restore_preview";
|
|
1085
|
+
readonly restoreVersion: "record_restore_version";
|
|
1086
|
+
readonly valueRestore: "value_restore";
|
|
1087
|
+
readonly recordScopeContext: "record_scope_context";
|
|
1088
|
+
readonly conversationScope: "conversation_scope";
|
|
1089
|
+
readonly conversationScopeBind: "conversation_scope_bind";
|
|
1090
|
+
readonly conversationScopeUnbind: "conversation_scope_unbind";
|
|
1091
|
+
readonly conversationScopeContext: "conversation_scope_context";
|
|
1092
|
+
readonly commentThread: "comment_thread";
|
|
1093
|
+
readonly commentWrite: "comment_write";
|
|
1094
|
+
readonly commentResolve: "io_comment_resolve";
|
|
857
1095
|
readonly recordAggregate: "record_aggregate";
|
|
858
1096
|
readonly aggOperations: "agg_operations";
|
|
859
1097
|
readonly aggBuckets: "agg_buckets";
|
|
@@ -861,6 +1099,7 @@ declare const DOORS: {
|
|
|
861
1099
|
readonly aggSubscriptionCadences: "agg_subscription_cadences";
|
|
862
1100
|
readonly subscriptions: "subscriptions";
|
|
863
1101
|
readonly subscriptionMute: "subscription_mute";
|
|
1102
|
+
readonly subscriptionCadences: "subscription_cadences";
|
|
864
1103
|
readonly docTemplateSave: "doc_template_save";
|
|
865
1104
|
readonly docRenderBody: "doc_render_body";
|
|
866
1105
|
readonly docRenderDocument: "doc_render_document";
|
|
@@ -868,6 +1107,10 @@ declare const DOORS: {
|
|
|
868
1107
|
readonly docUnresolvedTokens: "doc_unresolved_tokens";
|
|
869
1108
|
readonly docSign: "doc_sign";
|
|
870
1109
|
readonly docSignatureIntact: "doc_signature_intact";
|
|
1110
|
+
readonly docTemplates: "doc_templates";
|
|
1111
|
+
readonly docTemplateDelete: "doc_template_delete";
|
|
1112
|
+
readonly docRenders: "doc_renders";
|
|
1113
|
+
readonly docSignatures: "doc_signatures";
|
|
871
1114
|
readonly anonTokenIssue: "anon_token_issue";
|
|
872
1115
|
readonly anonTokenVerify: "anon_token_verify";
|
|
873
1116
|
readonly anonTokenRevoke: "anon_token_revoke";
|
|
@@ -1026,4 +1269,4 @@ declare function parseCsv(text: string): string[][];
|
|
|
1026
1269
|
declare function importCsv(fields: Field[], text: string): ParsedImport;
|
|
1027
1270
|
declare function importXlsx(fields: Field[], bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
|
|
1028
1271
|
|
|
1029
|
-
export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, EntityFieldRights, EntityRecordRead, EntityRecordsFound, EntityTableFacts, type ExportRow, ExternalPrincipalCard, Field, FieldPatch, FieldProposal, FormSummary, 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, type RecordQuery, RecordRead, RecordRevision, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, StaleWriteDetail, StoredRecord, StuckRow, Subscription, 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 };
|
|
1272
|
+
export { AggregateBucket, AggregateFilter, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, CommentThreadRead, CommentWritten, ConversationScope, ConversationScopeContext, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DashboardBlock, DashboardRunResult, DashboardSummary, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, 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, 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 };
|