@ai-matrx/records 0.58.122 → 0.58.123
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 +3 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +3 -1
- package/dist/core/index.d.ts +3 -1
- package/dist/core/index.js +3 -1
- package/dist/core/index.js.map +1 -1
- package/dist/react/index.cjs +3 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +3 -1
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.js +3 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.d.cts
CHANGED
|
@@ -550,7 +550,9 @@ interface RecordsClient {
|
|
|
550
550
|
* wherever a grid, board, list or picker resolves more than one chip: the
|
|
551
551
|
* per-id lane is what made a page of relation cells a page of requests.
|
|
552
552
|
*/
|
|
553
|
-
relationWordsMany(args: RelationWordsManyArgs): Promise<RecordsResult<Record<string, string
|
|
553
|
+
relationWordsMany(args: RelationWordsManyArgs): Promise<RecordsResult<Record<string, string>> & {
|
|
554
|
+
archived?: readonly string[];
|
|
555
|
+
}>;
|
|
554
556
|
/** Take a field off a table. Refuses the title field, the last field, and one another field reads through. */
|
|
555
557
|
fieldRetire(args: {
|
|
556
558
|
field_id: Uuid;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -550,7 +550,9 @@ interface RecordsClient {
|
|
|
550
550
|
* wherever a grid, board, list or picker resolves more than one chip: the
|
|
551
551
|
* per-id lane is what made a page of relation cells a page of requests.
|
|
552
552
|
*/
|
|
553
|
-
relationWordsMany(args: RelationWordsManyArgs): Promise<RecordsResult<Record<string, string
|
|
553
|
+
relationWordsMany(args: RelationWordsManyArgs): Promise<RecordsResult<Record<string, string>> & {
|
|
554
|
+
archived?: readonly string[];
|
|
555
|
+
}>;
|
|
554
556
|
/** Take a field off a table. Refuses the title field, the last field, and one another field reads through. */
|
|
555
557
|
fieldRetire(args: {
|
|
556
558
|
field_id: Uuid;
|
package/dist/core/index.js
CHANGED
|
@@ -41515,11 +41515,13 @@ function createRecordsClient(config) {
|
|
|
41515
41515
|
);
|
|
41516
41516
|
if (!result.ok) return result;
|
|
41517
41517
|
const map = {};
|
|
41518
|
+
const archived = [];
|
|
41518
41519
|
for (const row of result.data ?? []) {
|
|
41519
41520
|
const id = row?.record_id ?? row?.row_id;
|
|
41520
41521
|
if (id && typeof row.words === "string") map[id] = row.words;
|
|
41522
|
+
if (id && row.archived === true) archived.push(id);
|
|
41521
41523
|
}
|
|
41522
|
-
return { ok: true, data: map };
|
|
41524
|
+
return { ok: true, data: map, archived };
|
|
41523
41525
|
},
|
|
41524
41526
|
async tableDeclare({ spec, homeId }) {
|
|
41525
41527
|
return callDoor(
|