@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.
@@ -11360,7 +11360,9 @@ interface RecordsClient {
11360
11360
  * wherever a grid, board, list or picker resolves more than one chip: the
11361
11361
  * per-id lane is what made a page of relation cells a page of requests.
11362
11362
  */
11363
- relationWordsMany(args: RelationWordsManyArgs): Promise<RecordsResult<Record<string, string>>>;
11363
+ relationWordsMany(args: RelationWordsManyArgs): Promise<RecordsResult<Record<string, string>> & {
11364
+ archived?: readonly string[];
11365
+ }>;
11364
11366
  /** Take a field off a table. Refuses the title field, the last field, and one another field reads through. */
11365
11367
  fieldRetire(args: {
11366
11368
  field_id: Uuid;
@@ -11360,7 +11360,9 @@ interface RecordsClient {
11360
11360
  * wherever a grid, board, list or picker resolves more than one chip: the
11361
11361
  * per-id lane is what made a page of relation cells a page of requests.
11362
11362
  */
11363
- relationWordsMany(args: RelationWordsManyArgs): Promise<RecordsResult<Record<string, string>>>;
11363
+ relationWordsMany(args: RelationWordsManyArgs): Promise<RecordsResult<Record<string, string>> & {
11364
+ archived?: readonly string[];
11365
+ }>;
11364
11366
  /** Take a field off a table. Refuses the title field, the last field, and one another field reads through. */
11365
11367
  fieldRetire(args: {
11366
11368
  field_id: Uuid;
@@ -40458,11 +40458,13 @@ function createRecordsClient(config) {
40458
40458
  );
40459
40459
  if (!result.ok) return result;
40460
40460
  const map = {};
40461
+ const archived = [];
40461
40462
  for (const row of result.data ?? []) {
40462
40463
  const id = row?.record_id ?? row?.row_id;
40463
40464
  if (id && typeof row.words === "string") map[id] = row.words;
40465
+ if (id && row.archived === true) archived.push(id);
40464
40466
  }
40465
- return { ok: true, data: map };
40467
+ return { ok: true, data: map, archived };
40466
40468
  },
40467
40469
  async tableDeclare({ spec, homeId }) {
40468
40470
  return callDoor(