@qaecy/cue-sdk 0.0.17 → 0.0.24

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as s, a as u, b as C, c as i, d as t, e as c, f as o, g as r, h as l, i as n, j as P, k as j, l as m, m as S, n as g, o as h, R as p, p as R, q as f, s as E } from "./cue-yUoyoy61.js";
1
+ import { C as s, a as u, b as C, c as i, d as t, e as c, f as o, g as r, h as l, i as n, j as P, k as j, l as m, m as S, n as g, o as h, R as p, p as R, q as f, s as E } from "./cue-ztX7FTFH.js";
2
2
  export {
3
3
  s as Cue,
4
4
  u as CueApi,
package/lib/cue.d.ts CHANGED
@@ -35,6 +35,7 @@ export declare class Cue {
35
35
  protected _storageRaw: FirebaseStorage;
36
36
  protected _storageProcessed: FirebaseStorage;
37
37
  private _gis;
38
+ private readonly _projectDocuments;
38
39
  /**
39
40
  * Reactive GIS service. Lazily constructed on first access.
40
41
  *
@@ -90,6 +90,16 @@ export declare class CueProjectDocuments {
90
90
  * ```
91
91
  */
92
92
  fetchDocumentData(uuids: string[]): Promise<Record<string, DocumentInfo>>;
93
+ /**
94
+ * Fetches a lightweight document metadata shape (id/path/suffix/size) for
95
+ * the given UUIDs and merges the results into `documentInfoMap`.
96
+ *
97
+ * This is useful for list/table contexts that do not need language-tagged
98
+ * fields (`subject`, `summary`) or category/tag enrichment.
99
+ *
100
+ * UUIDs already present in `documentInfoMap` are skipped.
101
+ */
102
+ fetchDocumentDataSimple(uuids: string[]): Promise<Record<string, DocumentInfo>>;
93
103
  /**
94
104
  * Returns the alternative representations of the given document UUID.
95
105
  *
@@ -115,6 +125,9 @@ export declare class CueProjectDocuments {
115
125
  /** Executes the document-info SPARQL query for the given UUIDs, merges results
116
126
  * into `documentInfoMap`, and returns the newly fetched entries. */
117
127
  private _fetchDocumentInfoBatch;
128
+ /** Executes a reduced document-info query (id/path/suffix/size only), merges
129
+ * into `documentInfoMap`, and returns newly fetched entries. */
130
+ private _fetchSimpleDocumentInfoBatch;
118
131
  private _fetchDocumentsBySuffix;
119
132
  private _buildDocumentsBySuffixQuery;
120
133
  private _runDocumentsBySuffixQuery;
package/lib/models.d.ts CHANGED
@@ -376,6 +376,9 @@ export interface DocumentInfo {
376
376
  subject?: string;
377
377
  summary?: string;
378
378
  providerId?: string;
379
+ /** Full storage path in the processed bucket (e.g. `{projectId}/fragments/{uuid}.fragments`).
380
+ * Only present on alternative representations that carry a `qcy:remoteRelativePath`. */
381
+ remoteRelativePath?: string;
379
382
  }
380
383
  /** Count + total size for a group of documents (e.g. grouped by suffix or category). */
381
384
  export interface DocumentSummary {
package/lib/storage.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FirebaseStorage } from 'firebase/storage';
1
+ import { CueBlobStorage } from 'js-databases';
2
2
  export type StorageBucket = 'raw' | 'processed';
3
3
  /**
4
4
  * Provides document download URL resolution against the Cue Firebase Storage buckets.
@@ -9,9 +9,8 @@ export type StorageBucket = 'raw' | 'processed';
9
9
  * ```
10
10
  */
11
11
  export declare class CueStorage {
12
- private readonly _storageRaw;
13
- private readonly _storageProcessed;
14
- constructor(_storageRaw: FirebaseStorage, _storageProcessed: FirebaseStorage);
12
+ private readonly _blob;
13
+ constructor(_blob: CueBlobStorage);
15
14
  /**
16
15
  * Returns a Firebase authenticated download URL for a document stored in Cue.
17
16
  *
@@ -23,4 +22,15 @@ export declare class CueStorage {
23
22
  * @param bucket - `'raw'` (default, original uploads) or `'processed'` (derived artefacts).
24
23
  */
25
24
  getDownloadUrl(projectId: string, uuid: string, suffix: string, bucket?: StorageBucket): Promise<string>;
25
+ /**
26
+ * Returns a Firebase authenticated download URL for an alternative representation
27
+ * using its full `qcy:remoteRelativePath` stored in the processed bucket.
28
+ *
29
+ * Use this instead of `getDownloadUrl` when the document info was obtained via
30
+ * `fetchAlternativeRepresentations` and carries a `remoteRelativePath`.
31
+ *
32
+ * @param remoteRelativePath - The full path in the processed bucket,
33
+ * e.g. `{projectId}/fragments/{uuid}.fragments`.
34
+ */
35
+ getAltRepDownloadUrl(remoteRelativePath: string): Promise<string>;
26
36
  }
package/node.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as h, B as l, r as _, t as S, u as E, n as m, v as P, a as d } from "./cue-yUoyoy61.js";
2
- import { b as j, c as y, d as I, e as K, f as L, g as v, h as x, i as H, j as N, k as O, l as D, m as G, o as W, R as k, p as q, q as Q, s as V } from "./cue-yUoyoy61.js";
1
+ import { C as h, B as l, r as _, t as S, u as E, n as m, v as P, a as d } from "./cue-ztX7FTFH.js";
2
+ import { b as j, c as y, d as I, e as K, f as L, g as v, h as x, i as H, j as N, k as O, l as D, m as G, o as W, R as k, p as q, q as Q, s as V } from "./cue-ztX7FTFH.js";
3
3
  import { getStorage as e, connectStorageEmulator as b } from "firebase/storage";
4
4
  import "firebase/firestore";
5
5
  class A extends h {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qaecy/cue-sdk",
3
- "version": "0.0.17",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",