@ai-matrx/records 0.93.6 → 0.94.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 +14 -0
- package/dist/data/index.cjs +17 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +17 -0
- package/dist/data/index.js.map +1 -1
- package/dist/data/react.cjs +16 -3
- package/dist/data/react.cjs.map +1 -1
- package/dist/data/react.d.cts +10 -0
- package/dist/data/react.d.ts +10 -0
- package/dist/data/react.js +16 -3
- package/dist/data/react.js.map +1 -1
- package/dist/entity/index.cjs +1 -1
- package/dist/entity/index.cjs.map +1 -1
- package/dist/entity/index.d.cts +3 -3
- package/dist/entity/index.d.ts +3 -3
- package/dist/entity/index.js +1 -1
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/react.cjs +1 -1
- package/dist/entity/react.cjs.map +1 -1
- package/dist/entity/react.d.cts +10 -0
- package/dist/entity/react.d.ts +10 -0
- package/dist/entity/react.js +1 -1
- package/dist/entity/react.js.map +1 -1
- package/dist/first-page/index.d.cts +6 -0
- package/dist/first-page/index.d.ts +6 -0
- package/dist/{port-DyZ0GfxE.d.ts → port-BNXXJINy.d.ts} +1 -1
- package/dist/{port-B3UeC536.d.cts → port-CEf9hsW4.d.cts} +1 -1
- package/dist/react/index.cjs +17 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +17 -0
- package/dist/react/index.js.map +1 -1
- package/dist/setup/index.cjs +1 -1
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +2 -2
- package/dist/setup/index.d.ts +2 -2
- package/dist/setup/index.js +1 -1
- package/dist/setup/index.js.map +1 -1
- package/dist/{types-DB4J-zIt.d.ts → types-Du4Q9Rvi.d.ts} +10 -0
- package/dist/{types-Bg1q6qwq.d.cts → types-Dxc8Pt7Y.d.cts} +10 -0
- package/package.json +4 -4
package/dist/entity/react.d.ts
CHANGED
|
@@ -171,6 +171,10 @@ interface Row {
|
|
|
171
171
|
_organization_id: Uuid;
|
|
172
172
|
/** On a platform row only: the organization's custom fields (a real column may be named `custom`). */
|
|
173
173
|
_custom?: Record<string, unknown>;
|
|
174
|
+
/** On a row read with `archived: true`: when it was archived (ISO). */
|
|
175
|
+
_archived_at?: string;
|
|
176
|
+
/** On a row read with `archived: true`: who archived it, or null when the store cannot say. */
|
|
177
|
+
_archived_by_name?: string | null;
|
|
174
178
|
[key: string]: unknown;
|
|
175
179
|
}
|
|
176
180
|
/** §0. What a write carries, keyed by `Column.key`; `_custom` on platform sources. */
|
|
@@ -197,6 +201,12 @@ interface Query {
|
|
|
197
201
|
lane?: Lane;
|
|
198
202
|
/** A filter, never a lock. Default "all". */
|
|
199
203
|
org?: Uuid | "all";
|
|
204
|
+
/**
|
|
205
|
+
* THE ARCHIVE (the archived-items law): `true` answers the rows that were archived instead of the live
|
|
206
|
+
* ones, newest-archived first, each carrying `_archived_at` and `_archived_by_name`, so a screen can offer
|
|
207
|
+
* Restore. The archive door takes no `where` / `search` / `sort`: they are not applied to it.
|
|
208
|
+
*/
|
|
209
|
+
archived?: boolean;
|
|
200
210
|
}
|
|
201
211
|
/** §4. One page; `cursor` is null on the last one. */
|
|
202
212
|
interface Page {
|
package/dist/entity/react.js
CHANGED
|
@@ -841,7 +841,7 @@ function createEntityDataPort(options) {
|
|
|
841
841
|
}
|
|
842
842
|
const wire = toWire(q, customKeys);
|
|
843
843
|
if (binding.organizationId) wire.scope = { ...wire.scope, organization_id: binding.organizationId };
|
|
844
|
-
const answer = await client.list({ token: binding.token, ...wire, after: cursor ?? null });
|
|
844
|
+
const answer = await client.list({ token: binding.token, ...wire, after: cursor ?? null, ...q.archived === true ? { archived: "archived" } : {} });
|
|
845
845
|
if (!answer.ok) return answer;
|
|
846
846
|
const { data } = answer;
|
|
847
847
|
if (data.sort_ignored.length > 0) {
|