@ai-matrx/records 0.55.1 → 0.56.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 +29 -0
- package/dist/core/index.cjs +2409 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +103 -5
- package/dist/core/index.d.ts +103 -5
- package/dist/core/index.js +2416 -0
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +100 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +219 -4
- package/dist/index.d.ts +219 -4
- package/dist/index.js +90 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +2419 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +626 -2
- package/dist/react/index.d.ts +626 -2
- package/dist/react/index.js +2415 -0
- package/dist/react/index.js.map +1 -1
- package/dist/{field-Dr7Ugek4.d.cts → types-RxnWzAWZ.d.cts} +335 -1
- package/dist/{field-Dr7Ugek4.d.ts → types-RxnWzAWZ.d.ts} +335 -1
- package/dist/use-cases/index.d.cts +3 -336
- package/dist/use-cases/index.d.ts +3 -336
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -5658,7 +5658,9 @@ declare function portalTitleTypedBack(typed: string, title: string): boolean;
|
|
|
5658
5658
|
declare function emptyPortalArchiveLine(): string;
|
|
5659
5659
|
|
|
5660
5660
|
/** The measures the store offers. Asked of `custom.agg_operations()` at run time too. */
|
|
5661
|
-
type AggregateOperation = "count" | "sum" | "avg" | "min" | "max"
|
|
5661
|
+
type AggregateOperation = "count" | "sum" | "avg" | "min" | "max"
|
|
5662
|
+
/** GRID-PRIMITIVES G1: the summary bar's other four. Blank = no value, JSON null or "". */
|
|
5663
|
+
| "median" | "filled" | "empty" | "unique";
|
|
5662
5664
|
/** The periods a date Field can be bucketed into (`custom.agg_buckets()`). */
|
|
5663
5665
|
type AggregateBucket = "day" | "week" | "month" | "quarter" | "year";
|
|
5664
5666
|
/**
|
|
@@ -5729,6 +5731,543 @@ declare function measureKey(measure: AggregateMeasure): string;
|
|
|
5729
5731
|
*/
|
|
5730
5732
|
declare function stableFilterKey(filter: RecordFilter | null | undefined): string;
|
|
5731
5733
|
|
|
5734
|
+
/**
|
|
5735
|
+
* Who the data belongs to. A test organization is created under this name — the
|
|
5736
|
+
* owner's law #4: every organization, table, record, form, portal, dashboard,
|
|
5737
|
+
* document, checklist, booking page, capture sheet, subscription, pipeline and
|
|
5738
|
+
* enrichment created for a test carries the use case's own name. Cleanup finds
|
|
5739
|
+
* a test organization by `cleanupTag` in its settings, NEVER by a junk name.
|
|
5740
|
+
*/
|
|
5741
|
+
interface BusinessIdentity {
|
|
5742
|
+
/** "Harbor Dental Group" — what goes on the organization, the invoice, the screenshot. */
|
|
5743
|
+
name: string;
|
|
5744
|
+
/** "Harbor Dental Group, PLLC" — used on documents that need the legal entity. */
|
|
5745
|
+
legalName?: string;
|
|
5746
|
+
/** One line a stranger would understand: "A six-chair family dental practice." */
|
|
5747
|
+
describes: string;
|
|
5748
|
+
/** Plausible and synthesized. Never a real business's real address. */
|
|
5749
|
+
address: PostalAddress;
|
|
5750
|
+
/** Synthesized, E.164-shaped or the local convention the document uses. */
|
|
5751
|
+
phone: string;
|
|
5752
|
+
/**
|
|
5753
|
+
* Synthesized. NOT a `.example` domain — those read as fake on a screenshot.
|
|
5754
|
+
* Optional, because the law welcomes personal-life use cases and a household
|
|
5755
|
+
* renovation or a family recipe collection genuinely has no website.
|
|
5756
|
+
*/
|
|
5757
|
+
website?: string;
|
|
5758
|
+
/** Synthesized mailbox on the same domain: "frontdesk@harbordentalgroup.com". */
|
|
5759
|
+
email: string;
|
|
5760
|
+
/** IANA zone, so dates in the rows make sense together. */
|
|
5761
|
+
timezone: string;
|
|
5762
|
+
}
|
|
5763
|
+
interface PostalAddress {
|
|
5764
|
+
line1: string;
|
|
5765
|
+
line2?: string;
|
|
5766
|
+
city: string;
|
|
5767
|
+
/** State, province or region, in the country's own convention. */
|
|
5768
|
+
region: string;
|
|
5769
|
+
postalCode: string;
|
|
5770
|
+
/** ISO 3166-1 alpha-2. */
|
|
5771
|
+
country: string;
|
|
5772
|
+
}
|
|
5773
|
+
/**
|
|
5774
|
+
* One table of the business, in the words the practitioner uses. `token` is the
|
|
5775
|
+
* slug the store addresses it by; `name` is what a person reads.
|
|
5776
|
+
*/
|
|
5777
|
+
interface UseCaseTable {
|
|
5778
|
+
/** snake_case, singular, the practitioner's noun: "patient", "work_order". */
|
|
5779
|
+
token: string;
|
|
5780
|
+
/** "Patients", "Work orders". */
|
|
5781
|
+
name: string;
|
|
5782
|
+
labelSingular: string;
|
|
5783
|
+
labelPlural: string;
|
|
5784
|
+
/** REC-32. One of the seven, closed. Most business tables are `entity`. */
|
|
5785
|
+
type: TableType;
|
|
5786
|
+
display: TableDisplay;
|
|
5787
|
+
/** REC-4. `light` is the whole document; `heavy` is indexed on write. */
|
|
5788
|
+
weight: StorageMode;
|
|
5789
|
+
ordered: boolean;
|
|
5790
|
+
/** A lucide icon name, so the screen is not a wall of identical rows. */
|
|
5791
|
+
icon?: string;
|
|
5792
|
+
/** REC-2. The field key whose value titles a record. Must be a declared field. */
|
|
5793
|
+
titleField: string;
|
|
5794
|
+
/** What this table is FOR, in the practitioner's words. */
|
|
5795
|
+
describes: string;
|
|
5796
|
+
fields: UseCaseField[];
|
|
5797
|
+
/** The seed rows. Enough that the screen looks like a working business. */
|
|
5798
|
+
rows: UseCaseRow[];
|
|
5799
|
+
}
|
|
5800
|
+
/**
|
|
5801
|
+
* One field. `parityType` is the word a person picks in the UI and it must be
|
|
5802
|
+
* one the store resolves — any parity type the store ships, any behaviour they
|
|
5803
|
+
* are made of, or one of the plain synonyms (see `FieldTypeWord`). The set is
|
|
5804
|
+
* `RESOLVABLE_FIELD_TYPE_WORDS`, derived from the registry; never a count or a
|
|
5805
|
+
* list typed out here.
|
|
5806
|
+
*/
|
|
5807
|
+
interface UseCaseField {
|
|
5808
|
+
/** snake_case, the practitioner's own name for it: "date_of_birth", "po_number". */
|
|
5809
|
+
key: string;
|
|
5810
|
+
/** "Date of birth", "PO number". Sentence case, the way the form reads. */
|
|
5811
|
+
label: string;
|
|
5812
|
+
parityType: FieldTypeWord;
|
|
5813
|
+
/** FLD-2. The shape of the value, never a second behaviour. */
|
|
5814
|
+
multi?: boolean;
|
|
5815
|
+
/** FLD-2. The values carry their own dates. */
|
|
5816
|
+
dated?: boolean;
|
|
5817
|
+
required?: boolean;
|
|
5818
|
+
/** FLD-N-1. The unit CHANGES THE MEANING and lives on the field: "USD", "lb", "mi". */
|
|
5819
|
+
unit?: string | null;
|
|
5820
|
+
/** "currency", "percent", "email", "phone", "url", "date". Never decoration. */
|
|
5821
|
+
format?: string | null;
|
|
5822
|
+
/** FLD-7. Where the values come from. Defaults to `manual`. */
|
|
5823
|
+
source?: FieldSource;
|
|
5824
|
+
/** FLD-9. A formula says whether it computes on read or on write. */
|
|
5825
|
+
computeOn?: ComputeOn;
|
|
5826
|
+
/** FLD-3. Validation rules the store will enforce. */
|
|
5827
|
+
rules?: FieldRule[];
|
|
5828
|
+
/**
|
|
5829
|
+
* For `select` / `multi_select`: the REAL lifecycle words of this business,
|
|
5830
|
+
* in the order they actually happen. "Scheduled, Confirmed, Seen, No-show" —
|
|
5831
|
+
* never "Option A, Option B".
|
|
5832
|
+
*/
|
|
5833
|
+
choices?: string[];
|
|
5834
|
+
/** For a relation field: the `token` of the table it points at. */
|
|
5835
|
+
relationTarget?: string;
|
|
5836
|
+
relationMax?: number;
|
|
5837
|
+
/** AGT-7. The ceiling a merge field's delivery can never widen. */
|
|
5838
|
+
sensitivity: FieldSensitivity;
|
|
5839
|
+
/** FLD-12. Whether an agent may see this field's values at all. */
|
|
5840
|
+
contextPolicy: ContextPolicy;
|
|
5841
|
+
/** What the practitioner would be told about this field, if anything. */
|
|
5842
|
+
help?: string;
|
|
5843
|
+
}
|
|
5844
|
+
/**
|
|
5845
|
+
* One row of seed data.
|
|
5846
|
+
*
|
|
5847
|
+
* `key` is a stable LOCAL id (not a UUID): relationships across tables point at
|
|
5848
|
+
* it, so a template is readable and a seeder can resolve the graph in one pass
|
|
5849
|
+
* without inventing identifiers. Use a meaningful slug — "patient-rivera-m",
|
|
5850
|
+
* not "row-7".
|
|
5851
|
+
*/
|
|
5852
|
+
interface UseCaseRow {
|
|
5853
|
+
key: string;
|
|
5854
|
+
/**
|
|
5855
|
+
* Keyed by the table's field keys. A relation field's value is the `key` (or
|
|
5856
|
+
* an array of keys) of rows in the target table.
|
|
5857
|
+
*/
|
|
5858
|
+
values: Record<string, unknown>;
|
|
5859
|
+
}
|
|
5860
|
+
/**
|
|
5861
|
+
* REL-1…REL-9. The domain truth, stated once: "an invoice belongs to the job it
|
|
5862
|
+
* bills, and a job belongs to the client who asked for it."
|
|
5863
|
+
*
|
|
5864
|
+
* The field side carries `relationTarget`; this is the declaration a seeder
|
|
5865
|
+
* reads, because it also carries the flavour, the cardinality, what happens to
|
|
5866
|
+
* the far side on delete, and the reverse name.
|
|
5867
|
+
*/
|
|
5868
|
+
interface UseCaseRelationship {
|
|
5869
|
+
/** One sentence of domain truth. Not "links A to B". */
|
|
5870
|
+
describes: string;
|
|
5871
|
+
/** The table that HOLDS the relation field. */
|
|
5872
|
+
fromTable: string;
|
|
5873
|
+
/** The field key on `fromTable`. Must be declared and must be a relation. */
|
|
5874
|
+
fromField: string;
|
|
5875
|
+
/** The `token` of the table it points at. */
|
|
5876
|
+
toTable: string;
|
|
5877
|
+
/** REL-1. Ownership is one fact, stored once, read from the field's side. */
|
|
5878
|
+
flavor: RelationFlavor;
|
|
5879
|
+
/** REL-7. */
|
|
5880
|
+
cardinality: RelationCardinality;
|
|
5881
|
+
/** REL-2. What happens to the far side, separate from flavour. */
|
|
5882
|
+
onDelete: OnDelete;
|
|
5883
|
+
/** REL-9. The reverse, visible from both ends, and NOT a second field. */
|
|
5884
|
+
inverseKey: string;
|
|
5885
|
+
}
|
|
5886
|
+
/** Who is allowed to open a form. */
|
|
5887
|
+
type FormAudience = "public" | "member" | "staff";
|
|
5888
|
+
/**
|
|
5889
|
+
* A form a practitioner in this business would actually put in front of someone
|
|
5890
|
+
* — "the Harbor Dental new-patient intake", never "Test Form 1".
|
|
5891
|
+
*/
|
|
5892
|
+
interface UseCaseForm {
|
|
5893
|
+
token: string;
|
|
5894
|
+
name: string;
|
|
5895
|
+
/** What it is for, and who fills it in. */
|
|
5896
|
+
describes: string;
|
|
5897
|
+
audience: FormAudience;
|
|
5898
|
+
/** The table a submission becomes a record of. */
|
|
5899
|
+
table: string;
|
|
5900
|
+
fields: UseCaseFormField[];
|
|
5901
|
+
submitLabel: string;
|
|
5902
|
+
/** What the person sees after they submit. Real words, not "Success!". */
|
|
5903
|
+
confirmation: string;
|
|
5904
|
+
}
|
|
5905
|
+
interface UseCaseFormField {
|
|
5906
|
+
/** A field key on the form's table. */
|
|
5907
|
+
fieldKey: string;
|
|
5908
|
+
/** Override the field's own label when the form asks it differently. */
|
|
5909
|
+
label?: string;
|
|
5910
|
+
required?: boolean;
|
|
5911
|
+
/** The helper line under the input, if a practitioner would want one. */
|
|
5912
|
+
help?: string;
|
|
5913
|
+
}
|
|
5914
|
+
/**
|
|
5915
|
+
* The real lifecycle a record moves through in this business, in order. A
|
|
5916
|
+
* pipeline's stages are the words the staff say out loud.
|
|
5917
|
+
*/
|
|
5918
|
+
interface UseCasePipeline {
|
|
5919
|
+
token: string;
|
|
5920
|
+
name: string;
|
|
5921
|
+
describes: string;
|
|
5922
|
+
/** The table whose records move through it. */
|
|
5923
|
+
table: string;
|
|
5924
|
+
/** The `select` field that holds the current stage. */
|
|
5925
|
+
stageField: string;
|
|
5926
|
+
stages: UseCasePipelineStage[];
|
|
5927
|
+
}
|
|
5928
|
+
interface UseCasePipelineStage {
|
|
5929
|
+
/** Must appear in the stage field's `choices`. */
|
|
5930
|
+
key: string;
|
|
5931
|
+
label: string;
|
|
5932
|
+
/** What is true of a record sitting here, and what moves it on. */
|
|
5933
|
+
describes: string;
|
|
5934
|
+
/** Roughly how long a record sits here, so a board looks believable. */
|
|
5935
|
+
typicalDurationDays?: number;
|
|
5936
|
+
}
|
|
5937
|
+
/**
|
|
5938
|
+
* The question the owner of this business actually asks a dashboard on Monday
|
|
5939
|
+
* morning — "how much have we invoiced this month that hasn't been paid?" —
|
|
5940
|
+
* plus how it is answered from the tables above.
|
|
5941
|
+
*/
|
|
5942
|
+
interface UseCaseDashboardQuestion {
|
|
5943
|
+
/** The question in the practitioner's own words, ending in a question mark. */
|
|
5944
|
+
question: string;
|
|
5945
|
+
/** Why they care. What they DO differently depending on the answer. */
|
|
5946
|
+
whyItMatters: string;
|
|
5947
|
+
table: string;
|
|
5948
|
+
aggregate: "count" | "sum" | "avg" | "min" | "max";
|
|
5949
|
+
/** The field aggregated. Omitted only for `count`. */
|
|
5950
|
+
of?: string;
|
|
5951
|
+
groupBy?: string;
|
|
5952
|
+
/** A plain-language filter: "status is Unpaid and due_date is before today". */
|
|
5953
|
+
filter?: string;
|
|
5954
|
+
/** What the number IS: "USD", "days", "appointments". */
|
|
5955
|
+
answerUnit: string;
|
|
5956
|
+
}
|
|
5957
|
+
/**
|
|
5958
|
+
* A document this business really sends. The body carries merge fields in
|
|
5959
|
+
* `{{double_brace}}` form; every one of them is declared below and resolves to a
|
|
5960
|
+
* field on the document's table (or a stated literal).
|
|
5961
|
+
*/
|
|
5962
|
+
interface UseCaseDocumentTemplate {
|
|
5963
|
+
token: string;
|
|
5964
|
+
name: string;
|
|
5965
|
+
describes: string;
|
|
5966
|
+
table: string;
|
|
5967
|
+
/** The subject or title line, merge fields allowed. */
|
|
5968
|
+
title: string;
|
|
5969
|
+
/** The body. Real prose this business would send, merge fields inline. */
|
|
5970
|
+
body: string;
|
|
5971
|
+
mergeFields: UseCaseMergeField[];
|
|
5972
|
+
}
|
|
5973
|
+
interface UseCaseMergeField {
|
|
5974
|
+
/** The token inside `{{ }}` in the body. */
|
|
5975
|
+
key: string;
|
|
5976
|
+
/**
|
|
5977
|
+
* The field key it reads, on the document's table — or, when it is not a
|
|
5978
|
+
* field, the word `business` (from `BusinessIdentity`) or `today`.
|
|
5979
|
+
*/
|
|
5980
|
+
from: string;
|
|
5981
|
+
describes: string;
|
|
5982
|
+
}
|
|
5983
|
+
/** How a notification reaches someone. */
|
|
5984
|
+
type NotificationChannel = "email" | "sms" | "in_app";
|
|
5985
|
+
/**
|
|
5986
|
+
* The one automatic message this business would genuinely want — the thing a
|
|
5987
|
+
* practitioner sets up on day one and never turns off.
|
|
5988
|
+
*/
|
|
5989
|
+
interface UseCaseNotificationRule {
|
|
5990
|
+
token: string;
|
|
5991
|
+
name: string;
|
|
5992
|
+
describes: string;
|
|
5993
|
+
when: UseCaseNotificationTrigger;
|
|
5994
|
+
/** Who it goes to, in the business's own words: "the assigned hygienist". */
|
|
5995
|
+
audience: string;
|
|
5996
|
+
channel: NotificationChannel;
|
|
5997
|
+
/** The actual message. Merge fields allowed, same convention as documents. */
|
|
5998
|
+
message: string;
|
|
5999
|
+
}
|
|
6000
|
+
interface UseCaseNotificationTrigger {
|
|
6001
|
+
table: string;
|
|
6002
|
+
event: "created" | "updated" | "stage_entered" | "due" | "overdue";
|
|
6003
|
+
/** For `stage_entered`: the stage key. */
|
|
6004
|
+
stage?: string;
|
|
6005
|
+
/** For `due` / `overdue`: the date field watched. */
|
|
6006
|
+
field?: string;
|
|
6007
|
+
/** For `due`: how many days ahead it fires. */
|
|
6008
|
+
daysBefore?: number;
|
|
6009
|
+
}
|
|
6010
|
+
/**
|
|
6011
|
+
* Where the shape and the values came from. `synthesized` means a person wrote
|
|
6012
|
+
* plausible values out of domain knowledge; `public-data` means the numbers or
|
|
6013
|
+
* names were derived from a genuinely public dataset, which is named.
|
|
6014
|
+
*
|
|
6015
|
+
* Either way the law holds: no real person, no real customer, no production row.
|
|
6016
|
+
*/
|
|
6017
|
+
interface UseCaseProvenance {
|
|
6018
|
+
kind: "synthesized" | "public-data";
|
|
6019
|
+
/** Named when `kind` is `public-data`. */
|
|
6020
|
+
source?: string;
|
|
6021
|
+
/** Who or what wrote this file, and when. */
|
|
6022
|
+
authoredBy: string;
|
|
6023
|
+
authoredOn: string;
|
|
6024
|
+
/**
|
|
6025
|
+
* The affirmation, carried in the data so a reviewer can see it: every person,
|
|
6026
|
+
* address, phone and mailbox here is invented and belongs to nobody.
|
|
6027
|
+
*/
|
|
6028
|
+
noRealPeople: true;
|
|
6029
|
+
}
|
|
6030
|
+
/** One real business, and everything a test, seed, demo or screenshot needs of it. */
|
|
6031
|
+
interface UseCase {
|
|
6032
|
+
/** kebab-case and unique: "harbor-dental-new-patient-intake". */
|
|
6033
|
+
id: string;
|
|
6034
|
+
/**
|
|
6035
|
+
* THE SENTENCE. Who the user is, what business they run, and what job this
|
|
6036
|
+
* exact feature does for them — one sentence, at the top, before anything
|
|
6037
|
+
* else. This is the first thing the law asks for and the validator checks it.
|
|
6038
|
+
*/
|
|
6039
|
+
useCase: string;
|
|
6040
|
+
/** The industry, for rotation: "Dentistry", "Property management". */
|
|
6041
|
+
industry: string;
|
|
6042
|
+
business: BusinessIdentity;
|
|
6043
|
+
/**
|
|
6044
|
+
* The tag written into a test organization's settings so cleanup can find it.
|
|
6045
|
+
* Cleanup finds test data by THIS, never by a junk name.
|
|
6046
|
+
*/
|
|
6047
|
+
cleanupTag: string;
|
|
6048
|
+
tables: UseCaseTable[];
|
|
6049
|
+
relationships: UseCaseRelationship[];
|
|
6050
|
+
form: UseCaseForm;
|
|
6051
|
+
pipeline: UseCasePipeline;
|
|
6052
|
+
dashboardQuestion: UseCaseDashboardQuestion;
|
|
6053
|
+
documentTemplate: UseCaseDocumentTemplate;
|
|
6054
|
+
notificationRule: UseCaseNotificationRule;
|
|
6055
|
+
provenance: UseCaseProvenance;
|
|
6056
|
+
}
|
|
6057
|
+
|
|
6058
|
+
/** `custom.decoration_colors()` — the palette, in the order an uncolored choice takes. */
|
|
6059
|
+
type DecorationColor = "slate" | "green" | "amber" | "red" | "blue" | "violet" | "teal";
|
|
6060
|
+
/** `custom.decoration_rule_ops()` — the tests a color rule may ask. */
|
|
6061
|
+
type DecorationRuleOp = "is" | "is_not" | "contains" | "is_empty" | "not_empty" | "is_true" | "is_false" | "gt" | "gte" | "lt" | "lte";
|
|
6062
|
+
type DecorationTarget = "row" | "cell";
|
|
6063
|
+
interface DecorationRule {
|
|
6064
|
+
/** Given by the store when omitted; keep it to edit the rule in place. */
|
|
6065
|
+
id?: string;
|
|
6066
|
+
/** The Field id the rule reads. */
|
|
6067
|
+
field: Uuid;
|
|
6068
|
+
op: DecorationRuleOp;
|
|
6069
|
+
/** Compared as text for is / is_not / contains, as a number for gt / gte / lt / lte. */
|
|
6070
|
+
value?: string | number;
|
|
6071
|
+
color: DecorationColor;
|
|
6072
|
+
target: DecorationTarget;
|
|
6073
|
+
}
|
|
6074
|
+
interface TableDecorations {
|
|
6075
|
+
version: 1;
|
|
6076
|
+
colors: DecorationColor[];
|
|
6077
|
+
rule_ops: Array<{
|
|
6078
|
+
op: DecorationRuleOp;
|
|
6079
|
+
takes_value: boolean;
|
|
6080
|
+
label: string;
|
|
6081
|
+
}>;
|
|
6082
|
+
color_by?: {
|
|
6083
|
+
field: Uuid;
|
|
6084
|
+
target: DecorationTarget;
|
|
6085
|
+
};
|
|
6086
|
+
rules: DecorationRule[];
|
|
6087
|
+
/** Hand highlights: record id → color. */
|
|
6088
|
+
rows: Record<Uuid, DecorationColor>;
|
|
6089
|
+
/** Hand highlights: Field id → color. */
|
|
6090
|
+
columns: Record<Uuid, DecorationColor>;
|
|
6091
|
+
/** Hand highlights: record id → Field id → color. */
|
|
6092
|
+
cells: Record<Uuid, Record<Uuid, DecorationColor>>;
|
|
6093
|
+
/** What stopped painting because its column is gone — said, never silently dropped. */
|
|
6094
|
+
stale: Array<{
|
|
6095
|
+
part: string;
|
|
6096
|
+
field?: Uuid;
|
|
6097
|
+
rule_id?: string;
|
|
6098
|
+
record_id?: Uuid;
|
|
6099
|
+
says: string;
|
|
6100
|
+
}>;
|
|
6101
|
+
}
|
|
6102
|
+
/**
|
|
6103
|
+
* ONE LEAF of a Table's colors — the older door's own path shape
|
|
6104
|
+
* (`public.udt_set_table_style`), so two people highlighting two rows never overwrite each other.
|
|
6105
|
+
*/
|
|
6106
|
+
type DecorationPath = ["color_by"] | ["rules"] | ["rows", Uuid] | ["columns", Uuid] | ["cells", Uuid, Uuid];
|
|
6107
|
+
type GridLayoutMode = "auto" | "fit" | "scroll";
|
|
6108
|
+
type GridRowHeight = "compact" | "normal" | "tall";
|
|
6109
|
+
/** A saved view's own layout, kept at `definition.layout` (custom.view_declare judges it). */
|
|
6110
|
+
interface ViewLayout {
|
|
6111
|
+
mode?: GridLayoutMode;
|
|
6112
|
+
row_height?: GridRowHeight;
|
|
6113
|
+
freeze_first_column?: boolean;
|
|
6114
|
+
wrap?: boolean;
|
|
6115
|
+
/** Field id → pixels, 60–1200. */
|
|
6116
|
+
widths?: Record<Uuid, number>;
|
|
6117
|
+
}
|
|
6118
|
+
interface GridLayout {
|
|
6119
|
+
layout: Required<Omit<ViewLayout, "widths">> & {
|
|
6120
|
+
fit_max_columns: number;
|
|
6121
|
+
widths?: Record<Uuid, number>;
|
|
6122
|
+
};
|
|
6123
|
+
/** Where each choice came from. */
|
|
6124
|
+
source: Record<string, "platform" | "organization" | "view">;
|
|
6125
|
+
view_id: Uuid | null;
|
|
6126
|
+
/** A stored choice the grid cannot honour, named. */
|
|
6127
|
+
refused: Array<{
|
|
6128
|
+
from: "organization" | "view";
|
|
6129
|
+
choice: string;
|
|
6130
|
+
value: unknown;
|
|
6131
|
+
says: string;
|
|
6132
|
+
}>;
|
|
6133
|
+
}
|
|
6134
|
+
type RowActionStep = {
|
|
6135
|
+
field: Uuid;
|
|
6136
|
+
set: "value";
|
|
6137
|
+
value: unknown;
|
|
6138
|
+
} | {
|
|
6139
|
+
field: Uuid;
|
|
6140
|
+
set: "clear";
|
|
6141
|
+
}
|
|
6142
|
+
/** Worked out by the store on each record: the older grid's formula text, or an expression. */
|
|
6143
|
+
| {
|
|
6144
|
+
field: Uuid;
|
|
6145
|
+
set: "compute";
|
|
6146
|
+
formula_text?: string;
|
|
6147
|
+
expr?: Record<string, unknown>;
|
|
6148
|
+
};
|
|
6149
|
+
interface RowAction {
|
|
6150
|
+
/** Given by the store when omitted. */
|
|
6151
|
+
id?: Uuid;
|
|
6152
|
+
name: string;
|
|
6153
|
+
kind?: "update" | "agent";
|
|
6154
|
+
color?: DecorationColor | null;
|
|
6155
|
+
icon?: string;
|
|
6156
|
+
/** Ask before running. */
|
|
6157
|
+
confirm?: boolean;
|
|
6158
|
+
steps?: RowActionStep[];
|
|
6159
|
+
/** `agent` only: what the record chat opens with. */
|
|
6160
|
+
prompt?: string;
|
|
6161
|
+
/** On read: whether custom.action_run can run it. */
|
|
6162
|
+
runnable?: boolean;
|
|
6163
|
+
}
|
|
6164
|
+
interface ActionRunResult {
|
|
6165
|
+
action_id: Uuid;
|
|
6166
|
+
action: string;
|
|
6167
|
+
table_id: Uuid;
|
|
6168
|
+
ran: number;
|
|
6169
|
+
records: Array<{
|
|
6170
|
+
record_id: Uuid;
|
|
6171
|
+
version: number;
|
|
6172
|
+
}>;
|
|
6173
|
+
}
|
|
6174
|
+
/** One record (and, when it can be named, one field) that refused a row action. */
|
|
6175
|
+
interface ActionRefusal {
|
|
6176
|
+
record_id: Uuid;
|
|
6177
|
+
record: string | null;
|
|
6178
|
+
field_id: Uuid | null;
|
|
6179
|
+
field: string | null;
|
|
6180
|
+
code?: string;
|
|
6181
|
+
says: string;
|
|
6182
|
+
}
|
|
6183
|
+
/**
|
|
6184
|
+
* Every refusal of an action run, read off the store's refusal. A run that any record refused
|
|
6185
|
+
* changed NOTHING; this is the list a screen shows so the person can fix those and run again.
|
|
6186
|
+
*/
|
|
6187
|
+
declare function actionRefusals(error: RecordsError): ActionRefusal[];
|
|
6188
|
+
type FormulaParse = {
|
|
6189
|
+
ok: true;
|
|
6190
|
+
text: string;
|
|
6191
|
+
/** The store's expression shape — what `config.expr` holds. */
|
|
6192
|
+
expr: Record<string, unknown>;
|
|
6193
|
+
references: Array<{
|
|
6194
|
+
name: string;
|
|
6195
|
+
field_id: Uuid;
|
|
6196
|
+
}>;
|
|
6197
|
+
result_type: "number" | "text" | "boolean" | "date" | "unknown";
|
|
6198
|
+
} | {
|
|
6199
|
+
ok: false;
|
|
6200
|
+
text: string;
|
|
6201
|
+
error: string;
|
|
6202
|
+
position: number;
|
|
6203
|
+
};
|
|
6204
|
+
type RecordEvent = "record.created" | "record.updated" | "record.archived" | "record.restored" | "record.purged";
|
|
6205
|
+
interface TableWebhookDeclared {
|
|
6206
|
+
webhook_id: Uuid;
|
|
6207
|
+
table_id: Uuid;
|
|
6208
|
+
target_url: string;
|
|
6209
|
+
events: RecordEvent[];
|
|
6210
|
+
/** Shown this once: X-Matrx-Signature is sha256=HMAC-SHA256(secret, body). */
|
|
6211
|
+
secret: string;
|
|
6212
|
+
says: string;
|
|
6213
|
+
}
|
|
6214
|
+
interface TableWebhook {
|
|
6215
|
+
webhook_id: Uuid;
|
|
6216
|
+
target_url: string;
|
|
6217
|
+
description: string | null;
|
|
6218
|
+
events: RecordEvent[] | null;
|
|
6219
|
+
is_active: boolean;
|
|
6220
|
+
last_attempt_at: string | null;
|
|
6221
|
+
last_success_at: string | null;
|
|
6222
|
+
consecutive_failures: number;
|
|
6223
|
+
owner_id: Uuid;
|
|
6224
|
+
created_at: string;
|
|
6225
|
+
}
|
|
6226
|
+
/** What `custom.table_from_example` builds from. */
|
|
6227
|
+
interface ExampleSpec {
|
|
6228
|
+
business: string;
|
|
6229
|
+
tables: Array<Record<string, unknown>>;
|
|
6230
|
+
}
|
|
6231
|
+
interface ExampleBuilt {
|
|
6232
|
+
business: string;
|
|
6233
|
+
tables: Array<{
|
|
6234
|
+
token: string;
|
|
6235
|
+
table_id: Uuid;
|
|
6236
|
+
name: string;
|
|
6237
|
+
records?: number;
|
|
6238
|
+
note?: string;
|
|
6239
|
+
}>;
|
|
6240
|
+
says: string;
|
|
6241
|
+
}
|
|
6242
|
+
/**
|
|
6243
|
+
* ONE REAL USE CASE → the example door's spec. The use case is validated by this package's own
|
|
6244
|
+
* suite (`use-cases/validate.ts`); the door refuses placeholder names again as a second line.
|
|
6245
|
+
*/
|
|
6246
|
+
declare function exampleSpec(useCase: UseCase): ExampleSpec;
|
|
6247
|
+
/** One page of `custom.io_export`: exactly what the read door serves this person. */
|
|
6248
|
+
interface IoExportPage {
|
|
6249
|
+
table_id: Uuid;
|
|
6250
|
+
token: string;
|
|
6251
|
+
columns: string[];
|
|
6252
|
+
rows: Array<Record<string, unknown>>;
|
|
6253
|
+
/** A column the store withheld from this reader, with the store's reason. */
|
|
6254
|
+
withheld: Record<string, unknown>;
|
|
6255
|
+
page: {
|
|
6256
|
+
requested: number;
|
|
6257
|
+
returned: number;
|
|
6258
|
+
ceiling: number;
|
|
6259
|
+
next: number | null;
|
|
6260
|
+
};
|
|
6261
|
+
choices: unknown;
|
|
6262
|
+
}
|
|
6263
|
+
/**
|
|
6264
|
+
* THE .XLSX OF AN EXPORT PAGE. Numbers stay numbers and booleans stay booleans in the sheet; a
|
|
6265
|
+
* column the store withheld is NAMED on a second sheet with the store's reason, so a person
|
|
6266
|
+
* never mistakes a withheld column for an empty one. `labels` maps a column key to its header
|
|
6267
|
+
* (the Field's label); a key with no label is its own header.
|
|
6268
|
+
*/
|
|
6269
|
+
declare function exportPageXlsx(page: IoExportPage, labels?: Record<string, string>, sheetLabel?: string): Promise<Uint8Array>;
|
|
6270
|
+
|
|
5732
6271
|
/** The seven shapes a block can take, exactly as `custom.dashboard_kinds()` answers. */
|
|
5733
6272
|
type DashboardBlockKind = "number" | "bar" | "column" | "line" | "donut" | "table" | "stuck";
|
|
5734
6273
|
/**
|
|
@@ -8982,6 +9521,91 @@ interface RecordsClient {
|
|
|
8982
9521
|
ids: Uuid[];
|
|
8983
9522
|
subject?: "record";
|
|
8984
9523
|
}): Promise<RecordsResult<MyLevel[]>>;
|
|
9524
|
+
/** G1. Write ONE leaf of a Table's colors, or clear it with `null`. Editor on the Table. */
|
|
9525
|
+
tableDecorate(args: {
|
|
9526
|
+
table_id: Uuid;
|
|
9527
|
+
path: DecorationPath;
|
|
9528
|
+
value: unknown;
|
|
9529
|
+
}): Promise<RecordsResult<TableDecorations>>;
|
|
9530
|
+
/** G1. A Table's colors as a screen paints them, with what went stale named. */
|
|
9531
|
+
tableDecorations(args: {
|
|
9532
|
+
table_id: Uuid;
|
|
9533
|
+
}): Promise<RecordsResult<TableDecorations>>;
|
|
9534
|
+
/** G1. The layout a grid opens with: platform → organization knob → the view's own. */
|
|
9535
|
+
gridLayout(args: {
|
|
9536
|
+
table_id: Uuid;
|
|
9537
|
+
view_id?: Uuid | null;
|
|
9538
|
+
}): Promise<RecordsResult<GridLayout>>;
|
|
9539
|
+
/** G3. The older grid's formula text → the store's expression. Never refuses a typo: answers ok:false. */
|
|
9540
|
+
formulaParse(args: {
|
|
9541
|
+
table_id: Uuid;
|
|
9542
|
+
text: string;
|
|
9543
|
+
}): Promise<RecordsResult<FormulaParse>>;
|
|
9544
|
+
/** G2. Declare a Table's row actions — the whole list. Editor on the Table. */
|
|
9545
|
+
actionDeclare(args: {
|
|
9546
|
+
table_id: Uuid;
|
|
9547
|
+
actions: RowAction[];
|
|
9548
|
+
}): Promise<RecordsResult<RowAction[]>>;
|
|
9549
|
+
/** G2. A Table's row actions, each saying whether it can run here. */
|
|
9550
|
+
rowActions(args: {
|
|
9551
|
+
table_id: Uuid;
|
|
9552
|
+
}): Promise<RecordsResult<{
|
|
9553
|
+
actions: RowAction[];
|
|
9554
|
+
stale: unknown[];
|
|
9555
|
+
}>>;
|
|
9556
|
+
/**
|
|
9557
|
+
* G2. Run one action on a selection, in ONE transaction. A refusal changed NOTHING; read
|
|
9558
|
+
* every record and field that refused with `actionRefusals(result.error)`.
|
|
9559
|
+
*/
|
|
9560
|
+
actionRun(args: {
|
|
9561
|
+
action_id: Uuid;
|
|
9562
|
+
record_ids: Uuid[];
|
|
9563
|
+
}): Promise<RecordsResult<ActionRunResult>>;
|
|
9564
|
+
/** G4. Send every change to this Table's records to an https webhook. Admin. The secret is shown once. */
|
|
9565
|
+
tableWebhookDeclare(args: {
|
|
9566
|
+
table_id: Uuid;
|
|
9567
|
+
target_url: string;
|
|
9568
|
+
events?: RecordEvent[] | null;
|
|
9569
|
+
description?: string | null;
|
|
9570
|
+
}): Promise<RecordsResult<TableWebhookDeclared>>;
|
|
9571
|
+
/** G4. The webhooks a Table sends to, with their delivery health — never the secret. */
|
|
9572
|
+
tableWebhooks(args: {
|
|
9573
|
+
table_id: Uuid;
|
|
9574
|
+
}): Promise<RecordsResult<TableWebhook[]>>;
|
|
9575
|
+
/** G4. Switch one off. It is never deleted. */
|
|
9576
|
+
tableWebhookArchive(args: {
|
|
9577
|
+
webhook_id: Uuid;
|
|
9578
|
+
}): Promise<RecordsResult<boolean>>;
|
|
9579
|
+
/**
|
|
9580
|
+
* G5. Build one real use case's tables here, rows and relations included, in one
|
|
9581
|
+
* transaction. `useCaseId` is one of `useCaseIds()` from `@ai-matrx/records/use-cases`.
|
|
9582
|
+
*/
|
|
9583
|
+
tableFromExample(args: {
|
|
9584
|
+
home_id: Uuid;
|
|
9585
|
+
useCaseId: string;
|
|
9586
|
+
}): Promise<RecordsResult<ExampleBuilt>>;
|
|
9587
|
+
/** G5. Number the records an autonumber column found already there, in creation order. */
|
|
9588
|
+
autonumberBackfill(args: {
|
|
9589
|
+
field_id: Uuid;
|
|
9590
|
+
}): Promise<RecordsResult<{
|
|
9591
|
+
numbered: number;
|
|
9592
|
+
highest: number | null;
|
|
9593
|
+
says: string;
|
|
9594
|
+
}>>;
|
|
9595
|
+
/** G5. One page of the export door — exactly the rows and columns the read door serves this person. */
|
|
9596
|
+
ioExport(args: {
|
|
9597
|
+
table_id: Uuid;
|
|
9598
|
+
columns?: string[] | null;
|
|
9599
|
+
limit?: number;
|
|
9600
|
+
}): Promise<RecordsResult<IoExportPage>>;
|
|
9601
|
+
/** G5. That page as an .xlsx; a withheld column is named on its own sheet. */
|
|
9602
|
+
exportXlsx(args: {
|
|
9603
|
+
table_id: Uuid;
|
|
9604
|
+
columns?: string[] | null;
|
|
9605
|
+
limit?: number;
|
|
9606
|
+
labels?: Record<string, string>;
|
|
9607
|
+
sheetLabel?: string;
|
|
9608
|
+
}): Promise<RecordsResult<Uint8Array>>;
|
|
8985
9609
|
}
|
|
8986
9610
|
|
|
8987
9611
|
/**
|
|
@@ -9319,4 +9943,4 @@ declare function useFieldMutation(): UseFieldMutation;
|
|
|
9319
9943
|
*/
|
|
9320
9944
|
declare function useMergeField(key: string | null, state?: Record<string, unknown>): MergeFieldResolution | null;
|
|
9321
9945
|
|
|
9322
|
-
export { ABSENCE_REASONS, ACTOR_VOCABULARY, ARCHIVE_LANES, ARCHIVE_LANE_LABEL, ARCHIVE_LANE_MEANS, type AbsenceReason, type Actor, type AggregateBucket, type AggregateFilter, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, type ArchiveLane, type ArchivedDoorRow, type ArchivedRow, type BookingAvailability, type BookingDeclared, type BookingSummary, type BookingWindow, COMPUTE_ON, CONTEXT_POLICIES, type CaptureField, type CaptureFileRef, type CaptureOutcome, type CaptureQuestion, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSheetFace, type CaptureSheetSummary, type CaptureSyncReport, type ChecklistDeclared, type ChecklistRequirement, type ChecklistRequirementKind, type ChecklistRoleSpec, type ChecklistRunStarted, type ChecklistRunStep, type ChecklistRunSummary, type ChecklistSpec, type ChecklistStepCompleted, type ChecklistStepSpec, type ChecklistTemplateShape, type ChecklistTemplateSummary, type ChecklistTrigger, type ChecklistTriggerKind, type ChoiceOption, type ChoiceOptions, type CoerceOptions, type Coerced, type CoercedAnswers, type CoercibleField, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DECLARABLE_FIELD_KINDS, DEFAULT_ARCHIVE_LANE, DEFAULT_PORTAL_ARCHIVE_FILTER, DELIVERIES, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type DeclarableFieldKind, type Delivery, type DigestPreview, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityFieldRights, type EntityFieldValue, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityTableFacts, type EntityToken, type ExternalPrincipalCard, FIELD_KINDS, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldHistoryEntry, type FieldKind, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormSummary, type Freshness, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportColumnsDeclared, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, KERNEL_TABLES, type KernelTableName, type KernelTargets, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, type MergeField, type MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, type MergeFieldSemanticType, type MergeFieldSource, type MergeFieldTransform, type MissingBehavior, type MyLevel, type MySubscription, type NewEntityFieldDeclaration, type NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, PORTAL_ARCHIVE_FILTERS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PgError, type Pipeline, type PipelineColumn, type PipelineDeclared, type PipelineGate, type PipelineGatePreview, type PipelineMissingField, type PipelineMoveResult, type PipelineRule, type PipelineRuleKind, type PipelineSpec, type PipelineStage, type PipelineVerdict, type PortalArchiveAnswer, type PortalArchiveFilter, type PortalCard, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalSummary, type PortalTableExposure, type PortalTableRef, type PredictedRefusal, type ProvenancePointer, type PublishBinding, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, type QuietHours, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordComment, type RecordDocument, type RecordFilter, type RecordGraphWritten, type RecordHistoryEntry, type RecordRead, type RecordRevision, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsChangeSink, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, RecordsProvider, type RecordsProviderProps, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationDisplay, type RelationDisplaySpec, type RelationFlavor, type RelationProperties, type RelationStore, type RelationTarget, type RelationWordsManyArgs, type ResolutionTriple, type ResolvedPublishBinding, type RestorePreview, type RestoreResult, type RetiredActorWord, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, STAGE_RULE_ENFORCEMENT, STAGE_RULE_ON_FAIL, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, type SavedViewRow, type SavedViewSpecIn, type StagePending, type StagePendingOnBoard, type StageRuleEnforcement, type StageRuleOnFail, type StageRuleWarning, type StaleWriteDetail, type StorageMode, type StoreDoorName, type StoreRefusalCode, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, type SubscriptionSpec, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, type Table, type TableArchiveProgress, type TableCapacity, type TableDisplay, type TableOrigin, type TableProposal, type TableType, type Timestamp, type UseEntityFieldMutation, type UseFieldMutation, type UseRecordMutation, type UseRecordsOptions, type UseRecordsState, type UseTableArchive, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, archivedByLine, archivedWhen, asPermissionLevel, atLeast, bookingPath, choiceSlug, choiceValuesOf, choicesOf, coerceTypedAnswer, coerceTypedAnswers, coercionLabel, emptyArchiveLine, emptyPortalArchiveLine, err, fieldKindFor, forgetAllOps, highestLevel, holdsARetiredChoice, indexedDbStore, isArchiveLane, isDecided, isOwnOp, isPortalArchiveFilter, isRecordsErr, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, mintOpId, ok, openCaptureQueue, optionKey, optionLabel, portalArchiveConsequence, portalConfirmLine, portalPath, portalTitleTypedBack, publicFormPath, rememberedOpCount, sameDocument, scopeChip, stableFilterKey, tableShapeChanged, useEntityFieldMutation, useEntityFieldRights, useEntityFields, useEntityRecord, useEntityTable, useFieldMutation, useFields, useMergeField, useMyLevel, useMyLevels, useOptionalRecordsClient, useRecord, useRecordMutation, useRecords, useRecordsActor, useRecordsClient, useTable, useTableArchive, useTables };
|
|
9946
|
+
export { ABSENCE_REASONS, ACTOR_VOCABULARY, ARCHIVE_LANES, ARCHIVE_LANE_LABEL, ARCHIVE_LANE_MEANS, type AbsenceReason, type ActionRefusal, type ActionRunResult, type Actor, type AggregateBucket, type AggregateFilter, type AggregateMeasure, type AggregateOperation, type AggregateRow, type AggregateWindow, type AnonTokenBinding, type ArchiveLane, type ArchivedDoorRow, type ArchivedRow, type BookingAvailability, type BookingDeclared, type BookingSummary, type BookingWindow, COMPUTE_ON, CONTEXT_POLICIES, type CaptureField, type CaptureFileRef, type CaptureOutcome, type CaptureQuestion, type CaptureQueue, type CaptureQueueCounts, type CaptureQueueOptions, type CaptureQueuePorts, type CaptureQueueStore, type CaptureSheetFace, type CaptureSheetSummary, type CaptureSyncReport, type ChecklistDeclared, type ChecklistRequirement, type ChecklistRequirementKind, type ChecklistRoleSpec, type ChecklistRunStarted, type ChecklistRunStep, type ChecklistRunSummary, type ChecklistSpec, type ChecklistStepCompleted, type ChecklistStepSpec, type ChecklistTemplateShape, type ChecklistTemplateSummary, type ChecklistTrigger, type ChecklistTriggerKind, type ChoiceOption, type ChoiceOptions, type CoerceOptions, type Coerced, type CoercedAnswers, type CoercibleField, type CommentThreadRead, type CommentWritten, type ComputeOn, type ContextPolicy, type ConversationScope, type ConversationScopeContext, type CustomFieldTableType, DECLARABLE_FIELD_KINDS, DEFAULT_ARCHIVE_LANE, DEFAULT_PORTAL_ARCHIVE_FILTER, DELIVERIES, type DashboardBlock, type DashboardBlockKind, type DashboardBlockResult, type DashboardRunResult, type DashboardSummary, type DeclarableFieldKind, type DecorationColor, type DecorationPath, type DecorationRule, type DecorationRuleOp, type DecorationTarget, type Delivery, type DigestPreview, type DocRenderRow, type DocSignatureCheck, type DocSignatureRow, type DocTemplateRow, type DocToken, type DocUnresolvedToken, ENTITY_TOKENS, type EnrichAlternate, type EnrichCell, type EnrichDeclared, type EnrichDueRow, type EnrichRun, type EnrichSource, type Enrichment, type EnrichmentSummary, type EntityFieldRights, type EntityFieldValue, type EntityRecordMatch, type EntityRecordRead, type EntityRecordsFound, type EntityTableFacts, type EntityToken, type ExampleBuilt, type ExampleSpec, type ExternalPrincipalCard, FIELD_KINDS, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, type Field, type FieldBehavior, type FieldHistoryEntry, type FieldKind, type FieldPatch, type FieldProposal, type FieldRule, type FieldSensitivity, type FieldSource, type FieldTypeWord, type ForbiddenEnvelopeWord, type FormSummary, type FormulaParse, type Freshness, type GridLayout, type GridLayoutMode, type GridRowHeight, type HiddenFieldNotice, type HistoryActor, type HistoryActorKind, type HistoryChange, type Home, type ImportBatchResult, type ImportColumnPlan, type ImportColumnsDeclared, type ImportFinished, type ImportOpened, type ImportOutcome, type ImportPlan, type ImportPolicy, type ImportProposal, type ImportReport, type ImportRun, type InboundAddress, type InboundDeclared, type IoExportPage, KERNEL_TABLES, type KernelTableName, type KernelTargets, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, type MergeField, type MergeFieldModifier, type MergeFieldProvenance, type MergeFieldResolution, type MergeFieldSemanticType, type MergeFieldSource, type MergeFieldTransform, type MissingBehavior, type MyLevel, type MySubscription, type NewEntityFieldDeclaration, type NewFieldDeclaration, ON_DELETE, OVERRIDE_POLICIES, type OnDelete, type OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, PIPELINE_RULE_KINDS, PORTAL_ARCHIVE_FILTERS, type ParityFieldType, type ParityFieldTypeDescriptor, type PerValueAccessWord, type PermissionLevel, type PgError, type Pipeline, type PipelineColumn, type PipelineDeclared, type PipelineGate, type PipelineGatePreview, type PipelineMissingField, type PipelineMoveResult, type PipelineRule, type PipelineRuleKind, type PipelineSpec, type PipelineStage, type PipelineVerdict, type PortalArchiveAnswer, type PortalArchiveFilter, type PortalCard, type PortalInvitation, type PortalPreviewRow, type PortalPrincipal, type PortalRevocation, type PortalSummary, type PortalTableExposure, type PortalTableRef, type PredictedRefusal, type ProvenancePointer, type PublishBinding, type QueuedCapture, type QueuedCaptureFile, type QueuedCaptureState, type QuietHours, REFUSALS_WORTH_REPEATING, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, type ReadRow, type ReadValue, type RecordComment, type RecordDocument, type RecordEvent, type RecordFilter, type RecordGraphWritten, type RecordHistoryEntry, type RecordRead, type RecordRevision, type RecordScopeComment, type RecordScopeContext, type RecordScopeField, type RecordScopeHistoryEntry, type RecordScopeRelation, type RecordScopeWithheld, type RecordsActor, type RecordsChangeSink, type RecordsConfig, type RecordsDataSource, type RecordsError, type RecordsErrorCode, type RecordsErrorSink, type RecordsFilter, RecordsProvider, type RecordsProviderProps, type RecordsRealtimePort, type RecordsResolverPort, type RecordsResponse, type RecordsResult, type RecordsTableQuery, type RegisteredTable, type Relation, type RelationBinding, type RelationCardinality, type RelationCarries, type RelationCoordinate, type RelationDisplay, type RelationDisplaySpec, type RelationFlavor, type RelationProperties, type RelationStore, type RelationTarget, type RelationWordsManyArgs, type ResolutionTriple, type ResolvedPublishBinding, type RestorePreview, type RestoreResult, type RetiredActorWord, type RowAction, type RowActionStep, type Rule, type RuleAnswer, type RuleExpression, type RuleNodeKind, type RuleUse, STAGE_RULE_ENFORCEMENT, STAGE_RULE_ON_FAIL, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, type SavedViewRow, type SavedViewSpecIn, type StagePending, type StagePendingOnBoard, type StageRuleEnforcement, type StageRuleOnFail, type StageRuleWarning, type StaleWriteDetail, type StorageMode, type StoreDoorName, type StoreRefusalCode, type StoredRecord, type StuckRow, type Subscription, type SubscriptionBlock, type SubscriptionCadence, type SubscriptionSpec, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, type Table, type TableArchiveProgress, type TableCapacity, type TableDecorations, type TableDisplay, type TableOrigin, type TableProposal, type TableType, type TableWebhook, type TableWebhookDeclared, type Timestamp, type UseEntityFieldMutation, type UseFieldMutation, type UseRecordMutation, type UseRecordsOptions, type UseRecordsState, type UseTableArchive, type Uuid, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, type ValueAlternate, type ValueAlternateKey, type ValueEnvelope, type ValueEnvelopeKey, type ValueSource, type ViewLayout, type WorkApprovalDecision, type WorkApprovalFiled, type WorkApprover, type WorkAssignment, type WorkAssignmentField, type WorkChange, type WorkDueState, type WorkGraph, type WorkInboxItem, type WorkInboxKind, type WorkInstantiation, type WorkListFlavour, type WorkListItem, type WorkOrigin, type WorkRecordState, type WorkSlotHold, type WorkState, type WorkTemplateNode, type WorkTemplateRelation, type WorkTurn, type WriteConflict, actionRefusals, archivedByLine, archivedWhen, asPermissionLevel, atLeast, bookingPath, choiceSlug, choiceValuesOf, choicesOf, coerceTypedAnswer, coerceTypedAnswers, coercionLabel, emptyArchiveLine, emptyPortalArchiveLine, err, exampleSpec, exportPageXlsx, fieldKindFor, forgetAllOps, highestLevel, holdsARetiredChoice, indexedDbStore, isArchiveLane, isDecided, isOwnOp, isPortalArchiveFilter, isRecordsErr, isTheChosen, looksLikeAnId, mayDrag, measureKey, memoryStore, mintClientKey, mintOpId, ok, openCaptureQueue, optionKey, optionLabel, portalArchiveConsequence, portalConfirmLine, portalPath, portalTitleTypedBack, publicFormPath, rememberedOpCount, sameDocument, scopeChip, stableFilterKey, tableShapeChanged, useEntityFieldMutation, useEntityFieldRights, useEntityFields, useEntityRecord, useEntityTable, useFieldMutation, useFields, useMergeField, useMyLevel, useMyLevels, useOptionalRecordsClient, useRecord, useRecordMutation, useRecords, useRecordsActor, useRecordsClient, useTable, useTableArchive, useTables };
|