@ai-matrx/records 0.52.0 → 0.54.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 +94 -0
- package/dist/core/index.cjs +26 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +45 -5
- package/dist/core/index.d.ts +45 -5
- package/dist/core/index.js +26 -0
- package/dist/core/index.js.map +1 -1
- package/dist/{field-xRstzLKK.d.cts → field-Ct7_iYEF.d.cts} +24 -0
- package/dist/{field-xRstzLKK.d.ts → field-Ct7_iYEF.d.ts} +24 -0
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -3
- package/dist/index.d.ts +48 -3
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +106 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +172 -2
- package/dist/react/index.d.ts +172 -2
- package/dist/react/index.js +106 -0
- package/dist/react/index.js.map +1 -1
- package/dist/use-cases/index.cjs.map +1 -1
- package/dist/use-cases/index.d.cts +1 -1
- package/dist/use-cases/index.d.ts +1 -1
- package/dist/use-cases/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2703,6 +2703,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
2703
2703
|
readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
|
|
2704
2704
|
readonly returns: "boolean";
|
|
2705
2705
|
readonly security: "invoker";
|
|
2706
|
+
}, {
|
|
2707
|
+
readonly name: "store_off_sentence";
|
|
2708
|
+
readonly args: "p_organization_id uuid";
|
|
2709
|
+
readonly returns: "text";
|
|
2710
|
+
readonly security: "invoker";
|
|
2706
2711
|
}, {
|
|
2707
2712
|
readonly name: "subscription_cadences";
|
|
2708
2713
|
readonly args: "p_organization_id uuid";
|
|
@@ -4177,6 +4182,25 @@ interface FieldPatch {
|
|
|
4177
4182
|
* them changed — a roll-up is always `read`.
|
|
4178
4183
|
*/
|
|
4179
4184
|
compute_on?: ComputeOn;
|
|
4185
|
+
/**
|
|
4186
|
+
* FLD-11 / REC-15. RE-AIMING A WORKED-OUT COLUMN: the expression, in the same
|
|
4187
|
+
* shape a Rule uses and read by the same evaluator — `{"op":"concat","args":
|
|
4188
|
+
* [{"field":"note"}]}`. Every `{"field": …}` in it names a live Field of this
|
|
4189
|
+
* organization, or `custom._field_document_for` refuses the whole patch by
|
|
4190
|
+
* name and writes nothing.
|
|
4191
|
+
*
|
|
4192
|
+
* `custom.field_update` carries this in its BEHAVIOUR arm — the arm a type
|
|
4193
|
+
* word opens — so send it WITH the word for what the column is
|
|
4194
|
+
* (`type: "formula"`, or `parity_type` / `plain`). The door's spec builder
|
|
4195
|
+
* reads `coalesce(p_patch -> 'expr', v_old -> 'config' -> 'expr')`, so a
|
|
4196
|
+
* re-type that does not carry one deliberately keeps the expression the
|
|
4197
|
+
* column already had; the settings arm has no `expr` key at all, so `expr`
|
|
4198
|
+
* alone is not a change this door makes. `STORE-TAILS-2` asked for the field
|
|
4199
|
+
* because the one client that needed to re-aim an existing formula had no
|
|
4200
|
+
* typed way to say it and reached for `custom.record_update`, which writes the
|
|
4201
|
+
* Field document under the guards rather than through them.
|
|
4202
|
+
*/
|
|
4203
|
+
expr?: Record<string, unknown>;
|
|
4180
4204
|
}
|
|
4181
4205
|
|
|
4182
4206
|
export { MERGE_FIELD_SEMANTIC_TYPES as $, ABSENCE_REASONS as A, DELIVERIES as B, type ComputeOn as C, DECLARABLE_FIELD_KINDS as D, type DeclarableFieldKind as E, type FieldTypeWord as F, type Delivery as G, ENTITY_TOKENS as H, type EntityToken as I, FIELD_SENSITIVITIES as J, FIELD_SOURCES as K, FRESHNESS as L, type FieldBehavior as M, type NewFieldDeclaration as N, type OnDelete as O, type PgError as P, type ForbiddenEnvelopeWord as Q, type RelationFlavor as R, type StorageMode as S, type TableType as T, type Uuid as U, type Freshness as V, type WriteConflict as W, type HiddenFieldNotice as X, KERNEL_TABLES as Y, type KernelTableName as Z, MERGE_FIELD_MODIFIERS as _, type TableDisplay as a, MERGE_FIELD_SOURCES as a0, type MergeFieldModifier as a1, type MergeFieldSemanticType as a2, type MergeFieldSource as a3, ON_DELETE as a4, OVERRIDE_POLICIES as a5, type OverridePolicy as a6, PARITY_FIELD_TYPES as a7, PER_VALUE_ACCESS_WORDS as a8, type ParityFieldType as a9, VALUE_ENVELOPE_KEYS as aA, type ValueAlternate as aB, type ValueAlternateKey as aC, type ValueEnvelope as aD, type ValueEnvelopeKey as aE, type ValueSource as aF, err as aG, isRecordsErr as aH, ok as aI, type ParityFieldTypeDescriptor as aa, type PerValueAccessWord as ab, type ProvenancePointer as ac, RELATION_BINDINGS as ad, RELATION_CARDINALITIES as ae, RELATION_FLAVORS as af, RETIRED_ACTOR_WORDS as ag, RULE_NODE_KINDS as ah, RULE_USES as ai, type RecordsErrorCode as aj, type RelationBinding as ak, type RelationDisplay as al, type RetiredActorWord as am, type RuleNodeKind as an, type RuleUse as ao, STORAGE_MODES as ap, STORE_DOORS as aq, STORE_KNOBS as ar, STORE_REFUSAL_CODES as as, type StoreDoorName as at, type StoreRefusalCode as au, TABLE_DISPLAYS as av, TABLE_ORIGINS as aw, TABLE_TYPES as ax, type TableOrigin as ay, VALUE_ALTERNATE_KEYS as az, type FieldSource as b, type FieldRule as c, type FieldSensitivity as d, type ContextPolicy as e, type RelationCardinality as f, type Timestamp as g, type RecordDocument as h, type RecordsResult as i, type RecordRead as j, type ReadRow as k, type Field as l, type StoredRecord as m, type FieldPatch as n, type RecordRevision as o, type ReadValue as p, type FieldProposal as q, type TableProposal as r, type RecordsError as s, type StaleWriteDetail as t, type PredictedRefusal as u, ACTOR_VOCABULARY as v, type AbsenceReason as w, type Actor as x, COMPUTE_ON as y, CONTEXT_POLICIES as z };
|
|
@@ -2703,6 +2703,11 @@ declare const STORE_DOORS: readonly [{
|
|
|
2703
2703
|
readonly args: "p_organization_id uuid DEFAULT NULL::uuid";
|
|
2704
2704
|
readonly returns: "boolean";
|
|
2705
2705
|
readonly security: "invoker";
|
|
2706
|
+
}, {
|
|
2707
|
+
readonly name: "store_off_sentence";
|
|
2708
|
+
readonly args: "p_organization_id uuid";
|
|
2709
|
+
readonly returns: "text";
|
|
2710
|
+
readonly security: "invoker";
|
|
2706
2711
|
}, {
|
|
2707
2712
|
readonly name: "subscription_cadences";
|
|
2708
2713
|
readonly args: "p_organization_id uuid";
|
|
@@ -4177,6 +4182,25 @@ interface FieldPatch {
|
|
|
4177
4182
|
* them changed — a roll-up is always `read`.
|
|
4178
4183
|
*/
|
|
4179
4184
|
compute_on?: ComputeOn;
|
|
4185
|
+
/**
|
|
4186
|
+
* FLD-11 / REC-15. RE-AIMING A WORKED-OUT COLUMN: the expression, in the same
|
|
4187
|
+
* shape a Rule uses and read by the same evaluator — `{"op":"concat","args":
|
|
4188
|
+
* [{"field":"note"}]}`. Every `{"field": …}` in it names a live Field of this
|
|
4189
|
+
* organization, or `custom._field_document_for` refuses the whole patch by
|
|
4190
|
+
* name and writes nothing.
|
|
4191
|
+
*
|
|
4192
|
+
* `custom.field_update` carries this in its BEHAVIOUR arm — the arm a type
|
|
4193
|
+
* word opens — so send it WITH the word for what the column is
|
|
4194
|
+
* (`type: "formula"`, or `parity_type` / `plain`). The door's spec builder
|
|
4195
|
+
* reads `coalesce(p_patch -> 'expr', v_old -> 'config' -> 'expr')`, so a
|
|
4196
|
+
* re-type that does not carry one deliberately keeps the expression the
|
|
4197
|
+
* column already had; the settings arm has no `expr` key at all, so `expr`
|
|
4198
|
+
* alone is not a change this door makes. `STORE-TAILS-2` asked for the field
|
|
4199
|
+
* because the one client that needed to re-aim an existing formula had no
|
|
4200
|
+
* typed way to say it and reached for `custom.record_update`, which writes the
|
|
4201
|
+
* Field document under the guards rather than through them.
|
|
4202
|
+
*/
|
|
4203
|
+
expr?: Record<string, unknown>;
|
|
4180
4204
|
}
|
|
4181
4205
|
|
|
4182
4206
|
export { MERGE_FIELD_SEMANTIC_TYPES as $, ABSENCE_REASONS as A, DELIVERIES as B, type ComputeOn as C, DECLARABLE_FIELD_KINDS as D, type DeclarableFieldKind as E, type FieldTypeWord as F, type Delivery as G, ENTITY_TOKENS as H, type EntityToken as I, FIELD_SENSITIVITIES as J, FIELD_SOURCES as K, FRESHNESS as L, type FieldBehavior as M, type NewFieldDeclaration as N, type OnDelete as O, type PgError as P, type ForbiddenEnvelopeWord as Q, type RelationFlavor as R, type StorageMode as S, type TableType as T, type Uuid as U, type Freshness as V, type WriteConflict as W, type HiddenFieldNotice as X, KERNEL_TABLES as Y, type KernelTableName as Z, MERGE_FIELD_MODIFIERS as _, type TableDisplay as a, MERGE_FIELD_SOURCES as a0, type MergeFieldModifier as a1, type MergeFieldSemanticType as a2, type MergeFieldSource as a3, ON_DELETE as a4, OVERRIDE_POLICIES as a5, type OverridePolicy as a6, PARITY_FIELD_TYPES as a7, PER_VALUE_ACCESS_WORDS as a8, type ParityFieldType as a9, VALUE_ENVELOPE_KEYS as aA, type ValueAlternate as aB, type ValueAlternateKey as aC, type ValueEnvelope as aD, type ValueEnvelopeKey as aE, type ValueSource as aF, err as aG, isRecordsErr as aH, ok as aI, type ParityFieldTypeDescriptor as aa, type PerValueAccessWord as ab, type ProvenancePointer as ac, RELATION_BINDINGS as ad, RELATION_CARDINALITIES as ae, RELATION_FLAVORS as af, RETIRED_ACTOR_WORDS as ag, RULE_NODE_KINDS as ah, RULE_USES as ai, type RecordsErrorCode as aj, type RelationBinding as ak, type RelationDisplay as al, type RetiredActorWord as am, type RuleNodeKind as an, type RuleUse as ao, STORAGE_MODES as ap, STORE_DOORS as aq, STORE_KNOBS as ar, STORE_REFUSAL_CODES as as, type StoreDoorName as at, type StoreRefusalCode as au, TABLE_DISPLAYS as av, TABLE_ORIGINS as aw, TABLE_TYPES as ax, type TableOrigin as ay, VALUE_ALTERNATE_KEYS as az, type FieldSource as b, type FieldRule as c, type FieldSensitivity as d, type ContextPolicy as e, type RelationCardinality as f, type Timestamp as g, type RecordDocument as h, type RecordsResult as i, type RecordRead as j, type ReadRow as k, type Field as l, type StoredRecord as m, type FieldPatch as n, type RecordRevision as o, type ReadValue as p, type FieldProposal as q, type TableProposal as r, type RecordsError as s, type StaleWriteDetail as t, type PredictedRefusal as u, ACTOR_VOCABULARY as v, type AbsenceReason as w, type Actor as x, COMPUTE_ON as y, CONTEXT_POLICIES as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1433,6 +1433,7 @@ var STORE_DOORS = [
|
|
|
1433
1433
|
{ name: "stamp_value_envelopes", args: "p_data jsonb, p_actor text, p_on_behalf_of text, p_at timestamp with time zone", returns: "jsonb", security: "invoker" },
|
|
1434
1434
|
{ name: "storage_modes", args: "", returns: "text[]", security: "invoker" },
|
|
1435
1435
|
{ name: "store_is_open", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "boolean", security: "invoker" },
|
|
1436
|
+
{ name: "store_off_sentence", args: "p_organization_id uuid", returns: "text", security: "invoker" },
|
|
1436
1437
|
{ name: "subscription_cadences", args: "p_organization_id uuid", returns: "text[]", security: "definer" },
|
|
1437
1438
|
{ name: "subscription_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
1438
1439
|
{ name: "subscription_mute", args: "p_organization_id uuid, p_rule_id uuid, p_muted boolean DEFAULT true", returns: "boolean", security: "definer" },
|