@qaecy/cue-sdk 0.0.18 → 0.0.25

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-D52ik-Oy.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/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-D52ik-Oy.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-D52ik-Oy.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.18",
3
+ "version": "0.0.25",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",