@ai-matrx/records 0.58.125 → 0.58.126
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 +6 -0
- package/dist/core/index.cjs +2 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +2 -1
- package/dist/core/index.js.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/react/index.cjs +4 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +14 -5
- package/dist/react/index.d.ts +14 -5
- package/dist/react/index.js +4 -3
- package/dist/react/index.js.map +1 -1
- package/dist/{types-BbOhrWxo.d.cts → types-C5r0-H2V.d.cts} +5 -0
- package/dist/{types-BbOhrWxo.d.ts → types-C5r0-H2V.d.ts} +5 -0
- package/dist/use-cases/index.d.cts +2 -2
- package/dist/use-cases/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as Uuid, T as Timestamp, w as ReadRow, q as RecordDocument, aY as TableType, aW as TableDisplay, aQ as StorageMode, aX as TableOrigin, S as StoredRecord, z as Field, av as ParityFieldType, aK as RuleNodeKind, aL as RuleUse, ag as HiddenFieldNotice, I as RecordsError, U as UseCase, X as Actor, K as PgError, aI as RelationFlavor, ar as OnDelete, aF as RelationBinding, aG as RelationCardinality, r as RecordsResult, ao as MergeFieldSource, an as MergeFieldSemanticType, am as MergeFieldModifier, as as OverridePolicy, a3 as Delivery, af as Freshness } from './types-
|
|
2
|
-
export { O as ABSENCE_REASONS, Q as ACTOR_VOCABULARY, V as AbsenceReason, Y as COMPUTE_ON, Z as CONTEXT_POLICIES, _ as ComputeOn, $ as ContextPolicy, a0 as DECLARABLE_FIELD_KINDS, a1 as DELIVERIES, a2 as DeclarableFieldKind, a4 as ENTITY_TOKENS, a5 as EntityToken, a6 as FIELD_SENSITIVITIES, a7 as FIELD_SOURCES, a8 as FRESHNESS, a9 as FieldBehavior, aa as FieldOptionEdit, A as FieldPatch, G as FieldProposal, ab as FieldRule, ac as FieldSensitivity, ad as FieldSource, J as FieldTypeWord, ae as ForbiddenEnvelopeWord, ah as KERNEL_TABLES, ai as KernelTableName, aj as MERGE_FIELD_MODIFIERS, ak as MERGE_FIELD_SEMANTIC_TYPES, al as MERGE_FIELD_SOURCES, C as NewFieldDeclaration, ap as ON_DELETE, aq as OVERRIDE_POLICIES, at as PARITY_FIELD_TYPES, au as PER_VALUE_ACCESS_WORDS, aw as ParityFieldTypeDescriptor, ax as PerValueAccessWord, M as PredictedRefusal, ay as ProvenancePointer, az as RELATION_BINDINGS, aA as RELATION_CARDINALITIES, aB as RELATION_FLAVORS, aC as RETIRED_ACTOR_WORDS, aD as RULE_NODE_KINDS, aE as RULE_USES, E as ReadValue, s as RecordChange, t as RecordChangeResult, u as RecordGraphWritten, y as RecordPage, x as RecordPageSort, v as RecordRead, D as RecordRevision, R as RecordsErrorCode, aH as RelationDisplay, aJ as RetiredActorWord, aM as STORAGE_MODES, aN as STORE_DOORS, aO as STORE_KNOBS, aP as STORE_REFUSAL_CODES, L as StaleWriteDetail, aR as StoreDoorName, aS as StoreRefusalCode, aT as TABLE_DISPLAYS, aU as TABLE_ORIGINS, aV as TABLE_TYPES, H as TableProposal, aZ as VALUE_ALTERNATE_KEYS, a_ as VALUE_ENVELOPE_KEYS, a$ as ValueAlternate, b0 as ValueAlternateKey, b1 as ValueEnvelope, b2 as ValueEnvelopeKey, b3 as ValueSource, W as WriteConflict, b4 as allowsOtherValues, b5 as err, b6 as isRecordsErr, b7 as ok } from './types-
|
|
1
|
+
import { p as Uuid, T as Timestamp, w as ReadRow, q as RecordDocument, aY as TableType, aW as TableDisplay, aQ as StorageMode, aX as TableOrigin, S as StoredRecord, z as Field, av as ParityFieldType, aK as RuleNodeKind, aL as RuleUse, ag as HiddenFieldNotice, I as RecordsError, U as UseCase, X as Actor, K as PgError, aI as RelationFlavor, ar as OnDelete, aF as RelationBinding, aG as RelationCardinality, r as RecordsResult, ao as MergeFieldSource, an as MergeFieldSemanticType, am as MergeFieldModifier, as as OverridePolicy, a3 as Delivery, af as Freshness } from './types-C5r0-H2V.cjs';
|
|
2
|
+
export { O as ABSENCE_REASONS, Q as ACTOR_VOCABULARY, V as AbsenceReason, Y as COMPUTE_ON, Z as CONTEXT_POLICIES, _ as ComputeOn, $ as ContextPolicy, a0 as DECLARABLE_FIELD_KINDS, a1 as DELIVERIES, a2 as DeclarableFieldKind, a4 as ENTITY_TOKENS, a5 as EntityToken, a6 as FIELD_SENSITIVITIES, a7 as FIELD_SOURCES, a8 as FRESHNESS, a9 as FieldBehavior, aa as FieldOptionEdit, A as FieldPatch, G as FieldProposal, ab as FieldRule, ac as FieldSensitivity, ad as FieldSource, J as FieldTypeWord, ae as ForbiddenEnvelopeWord, ah as KERNEL_TABLES, ai as KernelTableName, aj as MERGE_FIELD_MODIFIERS, ak as MERGE_FIELD_SEMANTIC_TYPES, al as MERGE_FIELD_SOURCES, C as NewFieldDeclaration, ap as ON_DELETE, aq as OVERRIDE_POLICIES, at as PARITY_FIELD_TYPES, au as PER_VALUE_ACCESS_WORDS, aw as ParityFieldTypeDescriptor, ax as PerValueAccessWord, M as PredictedRefusal, ay as ProvenancePointer, az as RELATION_BINDINGS, aA as RELATION_CARDINALITIES, aB as RELATION_FLAVORS, aC as RETIRED_ACTOR_WORDS, aD as RULE_NODE_KINDS, aE as RULE_USES, E as ReadValue, s as RecordChange, t as RecordChangeResult, u as RecordGraphWritten, y as RecordPage, x as RecordPageSort, v as RecordRead, D as RecordRevision, R as RecordsErrorCode, aH as RelationDisplay, aJ as RetiredActorWord, aM as STORAGE_MODES, aN as STORE_DOORS, aO as STORE_KNOBS, aP as STORE_REFUSAL_CODES, L as StaleWriteDetail, aR as StoreDoorName, aS as StoreRefusalCode, aT as TABLE_DISPLAYS, aU as TABLE_ORIGINS, aV as TABLE_TYPES, H as TableProposal, aZ as VALUE_ALTERNATE_KEYS, a_ as VALUE_ENVELOPE_KEYS, a$ as ValueAlternate, b0 as ValueAlternateKey, b1 as ValueEnvelope, b2 as ValueEnvelopeKey, b3 as ValueSource, W as WriteConflict, b4 as allowsOtherValues, b5 as err, b6 as isRecordsErr, b7 as ok } from './types-C5r0-H2V.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* THE TWO LANES THE ARCHIVED-ITEMS LAW NAMES (Arman, 2026-09-09) — the same
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as Uuid, T as Timestamp, w as ReadRow, q as RecordDocument, aY as TableType, aW as TableDisplay, aQ as StorageMode, aX as TableOrigin, S as StoredRecord, z as Field, av as ParityFieldType, aK as RuleNodeKind, aL as RuleUse, ag as HiddenFieldNotice, I as RecordsError, U as UseCase, X as Actor, K as PgError, aI as RelationFlavor, ar as OnDelete, aF as RelationBinding, aG as RelationCardinality, r as RecordsResult, ao as MergeFieldSource, an as MergeFieldSemanticType, am as MergeFieldModifier, as as OverridePolicy, a3 as Delivery, af as Freshness } from './types-
|
|
2
|
-
export { O as ABSENCE_REASONS, Q as ACTOR_VOCABULARY, V as AbsenceReason, Y as COMPUTE_ON, Z as CONTEXT_POLICIES, _ as ComputeOn, $ as ContextPolicy, a0 as DECLARABLE_FIELD_KINDS, a1 as DELIVERIES, a2 as DeclarableFieldKind, a4 as ENTITY_TOKENS, a5 as EntityToken, a6 as FIELD_SENSITIVITIES, a7 as FIELD_SOURCES, a8 as FRESHNESS, a9 as FieldBehavior, aa as FieldOptionEdit, A as FieldPatch, G as FieldProposal, ab as FieldRule, ac as FieldSensitivity, ad as FieldSource, J as FieldTypeWord, ae as ForbiddenEnvelopeWord, ah as KERNEL_TABLES, ai as KernelTableName, aj as MERGE_FIELD_MODIFIERS, ak as MERGE_FIELD_SEMANTIC_TYPES, al as MERGE_FIELD_SOURCES, C as NewFieldDeclaration, ap as ON_DELETE, aq as OVERRIDE_POLICIES, at as PARITY_FIELD_TYPES, au as PER_VALUE_ACCESS_WORDS, aw as ParityFieldTypeDescriptor, ax as PerValueAccessWord, M as PredictedRefusal, ay as ProvenancePointer, az as RELATION_BINDINGS, aA as RELATION_CARDINALITIES, aB as RELATION_FLAVORS, aC as RETIRED_ACTOR_WORDS, aD as RULE_NODE_KINDS, aE as RULE_USES, E as ReadValue, s as RecordChange, t as RecordChangeResult, u as RecordGraphWritten, y as RecordPage, x as RecordPageSort, v as RecordRead, D as RecordRevision, R as RecordsErrorCode, aH as RelationDisplay, aJ as RetiredActorWord, aM as STORAGE_MODES, aN as STORE_DOORS, aO as STORE_KNOBS, aP as STORE_REFUSAL_CODES, L as StaleWriteDetail, aR as StoreDoorName, aS as StoreRefusalCode, aT as TABLE_DISPLAYS, aU as TABLE_ORIGINS, aV as TABLE_TYPES, H as TableProposal, aZ as VALUE_ALTERNATE_KEYS, a_ as VALUE_ENVELOPE_KEYS, a$ as ValueAlternate, b0 as ValueAlternateKey, b1 as ValueEnvelope, b2 as ValueEnvelopeKey, b3 as ValueSource, W as WriteConflict, b4 as allowsOtherValues, b5 as err, b6 as isRecordsErr, b7 as ok } from './types-
|
|
1
|
+
import { p as Uuid, T as Timestamp, w as ReadRow, q as RecordDocument, aY as TableType, aW as TableDisplay, aQ as StorageMode, aX as TableOrigin, S as StoredRecord, z as Field, av as ParityFieldType, aK as RuleNodeKind, aL as RuleUse, ag as HiddenFieldNotice, I as RecordsError, U as UseCase, X as Actor, K as PgError, aI as RelationFlavor, ar as OnDelete, aF as RelationBinding, aG as RelationCardinality, r as RecordsResult, ao as MergeFieldSource, an as MergeFieldSemanticType, am as MergeFieldModifier, as as OverridePolicy, a3 as Delivery, af as Freshness } from './types-C5r0-H2V.js';
|
|
2
|
+
export { O as ABSENCE_REASONS, Q as ACTOR_VOCABULARY, V as AbsenceReason, Y as COMPUTE_ON, Z as CONTEXT_POLICIES, _ as ComputeOn, $ as ContextPolicy, a0 as DECLARABLE_FIELD_KINDS, a1 as DELIVERIES, a2 as DeclarableFieldKind, a4 as ENTITY_TOKENS, a5 as EntityToken, a6 as FIELD_SENSITIVITIES, a7 as FIELD_SOURCES, a8 as FRESHNESS, a9 as FieldBehavior, aa as FieldOptionEdit, A as FieldPatch, G as FieldProposal, ab as FieldRule, ac as FieldSensitivity, ad as FieldSource, J as FieldTypeWord, ae as ForbiddenEnvelopeWord, ah as KERNEL_TABLES, ai as KernelTableName, aj as MERGE_FIELD_MODIFIERS, ak as MERGE_FIELD_SEMANTIC_TYPES, al as MERGE_FIELD_SOURCES, C as NewFieldDeclaration, ap as ON_DELETE, aq as OVERRIDE_POLICIES, at as PARITY_FIELD_TYPES, au as PER_VALUE_ACCESS_WORDS, aw as ParityFieldTypeDescriptor, ax as PerValueAccessWord, M as PredictedRefusal, ay as ProvenancePointer, az as RELATION_BINDINGS, aA as RELATION_CARDINALITIES, aB as RELATION_FLAVORS, aC as RETIRED_ACTOR_WORDS, aD as RULE_NODE_KINDS, aE as RULE_USES, E as ReadValue, s as RecordChange, t as RecordChangeResult, u as RecordGraphWritten, y as RecordPage, x as RecordPageSort, v as RecordRead, D as RecordRevision, R as RecordsErrorCode, aH as RelationDisplay, aJ as RetiredActorWord, aM as STORAGE_MODES, aN as STORE_DOORS, aO as STORE_KNOBS, aP as STORE_REFUSAL_CODES, L as StaleWriteDetail, aR as StoreDoorName, aS as StoreRefusalCode, aT as TABLE_DISPLAYS, aU as TABLE_ORIGINS, aV as TABLE_TYPES, H as TableProposal, aZ as VALUE_ALTERNATE_KEYS, a_ as VALUE_ENVELOPE_KEYS, a$ as ValueAlternate, b0 as ValueAlternateKey, b1 as ValueEnvelope, b2 as ValueEnvelopeKey, b3 as ValueSource, W as WriteConflict, b4 as allowsOtherValues, b5 as err, b6 as isRecordsErr, b7 as ok } from './types-C5r0-H2V.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* THE TWO LANES THE ARCHIVED-ITEMS LAW NAMES (Arman, 2026-09-09) — the same
|
package/dist/react/index.cjs
CHANGED
|
@@ -40273,7 +40273,8 @@ function createRecordsClient(config) {
|
|
|
40273
40273
|
rows,
|
|
40274
40274
|
total: Number(answer?.total ?? 0),
|
|
40275
40275
|
limit: Number(answer?.limit ?? limit),
|
|
40276
|
-
offset: Number(answer?.offset ?? offset)
|
|
40276
|
+
offset: Number(answer?.offset ?? offset),
|
|
40277
|
+
sort_ignored: Array.isArray(answer?.sort_ignored) ? answer.sort_ignored.filter((k) => typeof k === "string") : []
|
|
40277
40278
|
});
|
|
40278
40279
|
},
|
|
40279
40280
|
async query(input) {
|
|
@@ -42820,7 +42821,7 @@ function useRecordPage(tableId, options = {}) {
|
|
|
42820
42821
|
const viewId = options.viewId ?? null;
|
|
42821
42822
|
const base = useAsync(
|
|
42822
42823
|
async (c) => {
|
|
42823
|
-
if (!tableId) return { ok: true, data: { rows: [], total: null } };
|
|
42824
|
+
if (!tableId) return { ok: true, data: { rows: [], total: null, sortIgnored: [] } };
|
|
42824
42825
|
const answered = await c.listPage({
|
|
42825
42826
|
table_id: tableId,
|
|
42826
42827
|
...filterKey === "{}" ? {} : { filter: options.filter },
|
|
@@ -42830,7 +42831,7 @@ function useRecordPage(tableId, options = {}) {
|
|
|
42830
42831
|
limit: pageSize,
|
|
42831
42832
|
offset: page * pageSize
|
|
42832
42833
|
});
|
|
42833
|
-
return answered.ok ? { ok: true, data: { rows: answered.data.rows, total: answered.data.total } } : answered;
|
|
42834
|
+
return answered.ok ? { ok: true, data: { rows: answered.data.rows, total: answered.data.total, sortIgnored: answered.data.sort_ignored ?? [] } } : answered;
|
|
42834
42835
|
},
|
|
42835
42836
|
[tableId, pageSize, page, filterKey, search, sortKey, viewId]
|
|
42836
42837
|
);
|