@thatopen/services 0.16.1 → 0.18.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.
@@ -39,6 +39,13 @@ async function main() {
39
39
  const hidden2 = await client.createHiddenFile(hiddenBlob2, parentId);
40
40
  console.log(`Created hidden file 2: [${hidden2.hiddenFileId}]`);
41
41
 
42
+ // --- Tags ---
43
+ // The tag is optional on upload; a batch upload applies one tag to every file in it.
44
+ // Filtering by tag returns that tag's files in creation order.
45
+ const tagged = await client.createHiddenFile(hiddenBlob1, parentId, 'example:tagged');
46
+ const taggedList = await client.getHiddenFilesByParent(parentId, 'example:tagged');
47
+ console.log(`\nHidden files tagged 'example:tagged': ${taggedList.length} (first: [${tagged.hiddenFileId}] tag=${taggedList[0]?.tag})`);
48
+
42
49
  // --- Get ---
43
50
  const fetched = await client.getHiddenFile(hidden1.hiddenFileId);
44
51
  console.log(`\nHidden file 1 detail:`);