@qaecy/cue-sdk 0.0.40 → 0.0.41
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/browser.js +5036 -4824
- package/{document-filter-Ccb84D3H.js → document-filter-C0-xdpqp.js} +1155 -943
- package/index.d.ts +2 -0
- package/index.js +16 -15
- package/lib/api.d.ts +4 -0
- package/lib/gis-sources.d.ts +57 -0
- package/node.js +16 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export { CueLlmTools } from './lib/llm-tools';
|
|
|
44
44
|
export type { GenerateWranglingSchemaRequest, GenerateWranglingSchemaResponse } from './lib/llm-tools';
|
|
45
45
|
export { CueDataSources } from './lib/data-sources';
|
|
46
46
|
export type { DataSourceRecord, XToRdfConfig, RmlXToRdfConfig, GraphXToRdfConfig, TypeMappingConfiguration, UploadDataSourceMode, UploadDataSourceResult, } from './lib/data-sources';
|
|
47
|
+
export { CueGisSources } from './lib/gis-sources';
|
|
48
|
+
export type { GisSourceRecord, GisSourceUploadFormat, GisSourceCrs } from './lib/gis-sources';
|
|
47
49
|
export { CueContexts } from './lib/contexts';
|
|
48
50
|
export type { ContextDoc, ContextItem, McpContext } from './lib/models';
|
|
49
51
|
export { CueAppData } from './lib/app-data';
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as a, C as u, a as C, b as t, c as r, d as i, e as o, f as c, g as n, h as p, i as S, j as E, k as A, l as m, m as P, n as R, o as g, p as l, q as D, r as j, s as U, t as x, u as d, v as f, w as h, x as I, y, z as
|
|
1
|
+
import { B as a, C as u, a as C, b as t, c as r, d as i, e as o, f as c, g as n, h as p, i as S, j as E, k as A, l as m, m as P, n as R, o as g, p as l, q as D, r as j, s as U, t as x, u as d, v as f, w as h, x as I, y, z as G, A as T, D as _, E as b, F as q, G as v, H as w, R as B, S as F, I as L, J as N } from "./document-filter-C0-xdpqp.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BASE_CURRENCY,
|
|
4
4
|
u as Cue,
|
|
@@ -15,18 +15,19 @@ export {
|
|
|
15
15
|
A as CueDocumentFilter,
|
|
16
16
|
m as CueExtraction,
|
|
17
17
|
P as CueGis,
|
|
18
|
-
R as
|
|
19
|
-
g as
|
|
20
|
-
l as
|
|
21
|
-
D as
|
|
22
|
-
j as
|
|
23
|
-
U as
|
|
24
|
-
x as
|
|
25
|
-
d as
|
|
26
|
-
f as
|
|
27
|
-
h as
|
|
28
|
-
I as
|
|
29
|
-
y as
|
|
18
|
+
R as CueGisSources,
|
|
19
|
+
g as CueIndexApi,
|
|
20
|
+
l as CueLlmTools,
|
|
21
|
+
D as CueMcp,
|
|
22
|
+
j as CuePrivileges,
|
|
23
|
+
U as CueProcessingApi,
|
|
24
|
+
x as CueProfile,
|
|
25
|
+
d as CueProjectDocuments,
|
|
26
|
+
f as CueProjectEntities,
|
|
27
|
+
h as CueProjectSchema,
|
|
28
|
+
I as CueProjectView,
|
|
29
|
+
y as CueProjects,
|
|
30
|
+
G as CueRequestError,
|
|
30
31
|
T as CueSignUp,
|
|
31
32
|
_ as CueSignal,
|
|
32
33
|
b as CueStorage,
|
|
@@ -35,6 +36,6 @@ export {
|
|
|
35
36
|
w as CueUserSettings,
|
|
36
37
|
B as REQUIRED_ROLES,
|
|
37
38
|
F as SUPPORTED_CURRENCIES,
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
L as configureScanWasm,
|
|
40
|
+
N as cueComputed
|
|
40
41
|
};
|
package/lib/api.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { CueProcessingApi } from './processing';
|
|
|
14
14
|
import { CueDmsApi } from './dms';
|
|
15
15
|
import { CueLlmTools } from './llm-tools';
|
|
16
16
|
import { CueDataSources } from './data-sources';
|
|
17
|
+
import { CueGisSources } from './gis-sources';
|
|
17
18
|
export declare class CueApi {
|
|
18
19
|
private readonly _auth;
|
|
19
20
|
private readonly _gatewayUrl;
|
|
@@ -42,6 +43,9 @@ export declare class CueApi {
|
|
|
42
43
|
readonly llmTools: CueLlmTools;
|
|
43
44
|
/** Project-scoped data sources — reusable raw-data-to-RDF pipelines writing into their own named graph. */
|
|
44
45
|
readonly dataSources: CueDataSources;
|
|
46
|
+
/** Project-scoped GIS sources — user-uploaded GeoJSON/KML/Shapefile feature sets, returned by
|
|
47
|
+
* `cue.gis` under the 'custom' category alongside every other GIS category. */
|
|
48
|
+
readonly gisSources: CueGisSources;
|
|
45
49
|
/** Active language used for language-sensitive SPARQL queries across all project classes. */
|
|
46
50
|
language: string;
|
|
47
51
|
/** Updates the active language. All project classes (`CueProjectSchema`, `CueProjectDocuments`, `CueProjectEntities`) read this at query time. */
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { FeatureCollection } from 'geojson';
|
|
2
|
+
import { CueAuth } from './auth';
|
|
3
|
+
export type GisSourceUploadFormat = 'geojson' | 'kml' | 'shapefile-zip';
|
|
4
|
+
/** `'auto'` (the default) detects LV95/LV03 from a GeoJSON legacy `crs` member or a Shapefile's
|
|
5
|
+
* `.prj` sidecar — pass an explicit value when a file lacks that information altogether. KML is
|
|
6
|
+
* always WGS84 per spec and never reprojected either way. */
|
|
7
|
+
export type GisSourceCrs = 'auto' | 'WGS84' | 'LV95' | 'LV03';
|
|
8
|
+
export interface GisSourceRecord {
|
|
9
|
+
id: string;
|
|
10
|
+
projectId: string;
|
|
11
|
+
name: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
updatedBy: string;
|
|
16
|
+
/** `featureCollection.features.length`, cached at upload time. */
|
|
17
|
+
featureCount: number;
|
|
18
|
+
/** WGS84 [west, south, east, north], or null when the source has no features. */
|
|
19
|
+
bbox: [number, number, number, number] | null;
|
|
20
|
+
/** The format originally uploaded — display-only, `featureCollection` below is always WGS84. */
|
|
21
|
+
sourceFormat: GisSourceUploadFormat;
|
|
22
|
+
/** The CRS resolution that was actually applied — display-only, same reason as `sourceFormat`. */
|
|
23
|
+
sourceCrs: GisSourceCrs;
|
|
24
|
+
/** Canonical WGS84 GeoJSON — the actual feature data, same shape used everywhere else in the
|
|
25
|
+
* GIS pipeline (see `cue.gis`). */
|
|
26
|
+
featureCollection: FeatureCollection;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Client for project-scoped GIS sources — user-uploaded GeoJSON/KML/Shapefile feature sets that
|
|
30
|
+
* are stored on the project and returned by `cue.gis` under the `'custom'` category, alongside
|
|
31
|
+
* every other (WFS-backed) category. Reprojection to WGS84 (from LV95/LV03) happens server-side
|
|
32
|
+
* at upload time — `featureCollection` is always WGS84.
|
|
33
|
+
*
|
|
34
|
+
* Mutations (create/update/delete) go through writers-commands and require the syncer role;
|
|
35
|
+
* reads (list/get) go through data-views.
|
|
36
|
+
*
|
|
37
|
+
* Exposed as `cue.api.gisSources`.
|
|
38
|
+
*/
|
|
39
|
+
export declare class CueGisSources {
|
|
40
|
+
private readonly _auth;
|
|
41
|
+
private readonly _gatewayUrl;
|
|
42
|
+
constructor(_auth: CueAuth, _gatewayUrl: string);
|
|
43
|
+
listGisSources(projectId: string): Promise<GisSourceRecord[]>;
|
|
44
|
+
getGisSource(projectId: string, id: string): Promise<GisSourceRecord>;
|
|
45
|
+
/** `filename`'s extension (`.geojson`/`.json`/`.kml`/`.zip`) tells the server which parser to
|
|
46
|
+
* use — pass it explicitly since `file` may not carry a usable `name` (e.g. a `Blob`). */
|
|
47
|
+
createGisSource(projectId: string, name: string, file: Blob, filename: string, crs?: GisSourceCrs): Promise<GisSourceRecord>;
|
|
48
|
+
/** Omitting `file` renames the source without touching its stored features. */
|
|
49
|
+
updateGisSource(projectId: string, id: string, updates: {
|
|
50
|
+
name?: string;
|
|
51
|
+
file?: Blob;
|
|
52
|
+
filename?: string;
|
|
53
|
+
crs?: GisSourceCrs;
|
|
54
|
+
}): Promise<GisSourceRecord>;
|
|
55
|
+
deleteGisSource(projectId: string, id: string): Promise<void>;
|
|
56
|
+
private _errorMessage;
|
|
57
|
+
}
|
package/node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as s } from "./document-filter-
|
|
2
|
-
import { B as o, a as c, b as i, c as n, d as p, e as S, f as m, g as E, h as A, i as P, j as R, k as l, l as g, m as D, n as x, o as d, p as j, q as U, r as f, s as h, t as I, u as y, v as
|
|
1
|
+
import { C as s } from "./document-filter-C0-xdpqp.js";
|
|
2
|
+
import { B as o, a as c, b as i, c as n, d as p, e as S, f as m, g as E, h as A, i as P, j as R, k as l, l as g, m as D, n as x, o as d, p as j, q as U, r as f, s as h, t as I, u as y, v as G, w as N, x as T, y as _, z as b, A as q, D as v, E as w, F as B, G as F, H as L, R as O, S as k, I as z, J as H } from "./document-filter-C0-xdpqp.js";
|
|
3
3
|
class C extends s {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
super(e);
|
|
@@ -21,15 +21,16 @@ export {
|
|
|
21
21
|
l as CueDocumentFilter,
|
|
22
22
|
g as CueExtraction,
|
|
23
23
|
D as CueGis,
|
|
24
|
-
x as
|
|
25
|
-
d as
|
|
26
|
-
j as
|
|
24
|
+
x as CueGisSources,
|
|
25
|
+
d as CueIndexApi,
|
|
26
|
+
j as CueLlmTools,
|
|
27
|
+
U as CueMcp,
|
|
27
28
|
C as CueNode,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
f as CuePrivileges,
|
|
30
|
+
h as CueProcessingApi,
|
|
31
|
+
I as CueProfile,
|
|
32
|
+
y as CueProjectDocuments,
|
|
33
|
+
G as CueProjectEntities,
|
|
33
34
|
N as CueProjectSchema,
|
|
34
35
|
T as CueProjectView,
|
|
35
36
|
_ as CueProjects,
|
|
@@ -39,9 +40,9 @@ export {
|
|
|
39
40
|
w as CueStorage,
|
|
40
41
|
B as CueSyncApi,
|
|
41
42
|
F as CueTables,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
L as CueUserSettings,
|
|
44
|
+
O as REQUIRED_ROLES,
|
|
45
|
+
k as SUPPORTED_CURRENCIES,
|
|
46
|
+
z as configureScanWasm,
|
|
47
|
+
H as cueComputed
|
|
47
48
|
};
|