@qaecy/cue-sdk 0.0.40 → 0.0.44
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/README.md +23 -0
- package/browser.js +7473 -6895
- package/{document-filter-Ccb84D3H.js → document-filter-Cj0Yql1C.js} +1422 -844
- package/index.d.ts +5 -1
- package/index.js +28 -26
- package/lib/api.d.ts +18 -3
- package/lib/cue.d.ts +2 -2
- package/lib/data-sources.d.ts +77 -11
- package/lib/document-filter.d.ts +1 -1
- package/lib/documents.d.ts +1 -1
- package/lib/entities.d.ts +1 -1
- package/lib/gis-sources.d.ts +57 -0
- package/lib/llm-tools.d.ts +83 -0
- package/lib/models.d.ts +34 -0
- package/lib/project-view.d.ts +10 -2
- package/lib/schema.d.ts +29 -1
- package/lib/semantic-template.d.ts +63 -0
- package/lib/sync.d.ts +7 -0
- package/node.js +26 -24
- package/package.json +1 -1
- package/variables.d.ts +5 -5
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CueAuth } from './auth';
|
|
2
|
+
export interface MutationResult {
|
|
3
|
+
message: string;
|
|
4
|
+
success: boolean;
|
|
5
|
+
insertCount?: number;
|
|
6
|
+
iri?: string;
|
|
7
|
+
errorCode?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BatchMutationResult {
|
|
10
|
+
results: MutationResult[];
|
|
11
|
+
successCount: number;
|
|
12
|
+
failureCount: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ContentCategoryInput {
|
|
15
|
+
value: string;
|
|
16
|
+
namespace: [string, string];
|
|
17
|
+
description: string;
|
|
18
|
+
parent?: string;
|
|
19
|
+
regex?: string;
|
|
20
|
+
enum?: string[];
|
|
21
|
+
enumNamespace?: [string, string];
|
|
22
|
+
label?: Record<string, string>;
|
|
23
|
+
definition?: Record<string, string>;
|
|
24
|
+
comment?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface EntityCategoryInput extends ContentCategoryInput {
|
|
27
|
+
document_type_constraints?: string[];
|
|
28
|
+
}
|
|
29
|
+
/** `type` is not part of the input — the server always sets it to `object_property`. */
|
|
30
|
+
export interface EntityRelationshipInput extends EntityCategoryInput {
|
|
31
|
+
sources: string[];
|
|
32
|
+
targets: string[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Client for writers-commands' semantic-template CRUD endpoints — persists a
|
|
36
|
+
* project's custom extraction/classification schema (content categories,
|
|
37
|
+
* entity categories, entity relationships) and reloads the project's
|
|
38
|
+
* `databases-cue` schema graph after every mutation.
|
|
39
|
+
*
|
|
40
|
+
* Exposed as `cue.api.semanticTemplate`.
|
|
41
|
+
*/
|
|
42
|
+
export declare class CueSemanticTemplate {
|
|
43
|
+
private readonly _auth;
|
|
44
|
+
private readonly _gatewayUrl;
|
|
45
|
+
constructor(_auth: CueAuth, _gatewayUrl: string);
|
|
46
|
+
createContentCategory(projectId: string, item: ContentCategoryInput): Promise<MutationResult>;
|
|
47
|
+
createContentCategoryBatch(projectId: string, items: ContentCategoryInput[]): Promise<BatchMutationResult>;
|
|
48
|
+
deleteContentCategory(projectId: string, value: string): Promise<MutationResult>;
|
|
49
|
+
deleteContentCategoryBatch(projectId: string, values: string[]): Promise<BatchMutationResult>;
|
|
50
|
+
createEntityCategory(projectId: string, item: EntityCategoryInput): Promise<MutationResult>;
|
|
51
|
+
createEntityCategoryBatch(projectId: string, items: EntityCategoryInput[]): Promise<BatchMutationResult>;
|
|
52
|
+
deleteEntityCategory(projectId: string, value: string): Promise<MutationResult>;
|
|
53
|
+
deleteEntityCategoryBatch(projectId: string, values: string[]): Promise<BatchMutationResult>;
|
|
54
|
+
createEntityRelationship(projectId: string, item: EntityRelationshipInput): Promise<MutationResult>;
|
|
55
|
+
createEntityRelationshipBatch(projectId: string, items: EntityRelationshipInput[]): Promise<BatchMutationResult>;
|
|
56
|
+
deleteEntityRelationship(projectId: string, value: string): Promise<MutationResult>;
|
|
57
|
+
deleteEntityRelationshipBatch(projectId: string, values: string[]): Promise<BatchMutationResult>;
|
|
58
|
+
/** Re-pushes the project's currently stored template into its `databases-cue` schema graph, without mutating it. */
|
|
59
|
+
reloadSchema(projectId: string): Promise<MutationResult>;
|
|
60
|
+
private _post;
|
|
61
|
+
private _delete;
|
|
62
|
+
private _errorMessage;
|
|
63
|
+
}
|
package/lib/sync.d.ts
CHANGED
|
@@ -26,6 +26,13 @@ export declare class CueSyncApi {
|
|
|
26
26
|
private _pendingSpaceId;
|
|
27
27
|
private _flushTimer;
|
|
28
28
|
private _legacy;
|
|
29
|
+
/**
|
|
30
|
+
* `projectSettings.gzipEnabled` per space, populated once by
|
|
31
|
+
* `initBrowserSync` so `syncBrowserFile` (called once per dropped file,
|
|
32
|
+
* often dozens concurrently) doesn't re-fetch the project over the gateway
|
|
33
|
+
* on every single file.
|
|
34
|
+
*/
|
|
35
|
+
private readonly _gzipEnabledBySpace;
|
|
29
36
|
constructor(_auth: CueAuth, _projects: CueProjects, _blob: CueBlobStorage, _gatewayUrl: string);
|
|
30
37
|
/** @internal Injected by CueApi after construction to avoid circular dependency. */
|
|
31
38
|
_bindApi(api: CueApi): void;
|
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
|
|
1
|
+
import { C as s } from "./document-filter-Cj0Yql1C.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 l, j as P, k as R, 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 T, v as y, w as G, x as N, y as _, z as b, A as q, D as v, E as w, F as B, G as F, H as L, I as O, R as k, S as z, J as H, K as J } from "./document-filter-Cj0Yql1C.js";
|
|
3
3
|
class C extends s {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
super(e);
|
|
@@ -16,32 +16,34 @@ export {
|
|
|
16
16
|
m as CueCache,
|
|
17
17
|
E as CueContexts,
|
|
18
18
|
A as CueCurrency,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
l as CueDataSources,
|
|
20
|
+
P as CueDmsApi,
|
|
21
|
+
R 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
|
-
|
|
29
|
+
f as CuePrivileges,
|
|
30
|
+
h as CueProcessingApi,
|
|
31
|
+
I as CueProfile,
|
|
32
|
+
T as CueProjectDocuments,
|
|
32
33
|
y as CueProjectEntities,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
G as CueProjectSchema,
|
|
35
|
+
N as CueProjectView,
|
|
35
36
|
_ as CueProjects,
|
|
36
37
|
b as CueRequestError,
|
|
37
|
-
q as
|
|
38
|
-
v as
|
|
39
|
-
w as
|
|
40
|
-
B as
|
|
41
|
-
F as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
q as CueSemanticTemplate,
|
|
39
|
+
v as CueSignUp,
|
|
40
|
+
w as CueSignal,
|
|
41
|
+
B as CueStorage,
|
|
42
|
+
F as CueSyncApi,
|
|
43
|
+
L as CueTables,
|
|
44
|
+
O as CueUserSettings,
|
|
45
|
+
k as REQUIRED_ROLES,
|
|
46
|
+
z as SUPPORTED_CURRENCIES,
|
|
47
|
+
H as configureScanWasm,
|
|
48
|
+
J as cueComputed
|
|
47
49
|
};
|
package/package.json
CHANGED
package/variables.d.ts
CHANGED
|
@@ -87,11 +87,11 @@ export declare const ENDPOINT_INDEX_AVAILABLE_FILTERS = "/index/available-filter
|
|
|
87
87
|
export declare const ENDPOINT_FUSEKI_QUERY = "/triplestore/query";
|
|
88
88
|
export declare const ENDPOINT_FUSEKI_UPDATE = "/triplestore/update";
|
|
89
89
|
export declare const ENDPOINT_FUSEKI_SHACL = "/triplestore/shacl";
|
|
90
|
-
export declare const ENDPOINT_QLEVER_QUERY = "/
|
|
91
|
-
export declare const ENDPOINT_QLEVER_UPDATE = "/
|
|
92
|
-
export declare const ENDPOINT_QLEVER_SHACL = "/
|
|
93
|
-
export declare const ENDPOINT_QLEVER_ADMIN_REBUILD = "/
|
|
94
|
-
export declare const ENDPOINT_QLEVER_ADMIN_STATS_REFRESH = "/
|
|
90
|
+
export declare const ENDPOINT_QLEVER_QUERY = "/cue/qlever/query";
|
|
91
|
+
export declare const ENDPOINT_QLEVER_UPDATE = "/cue/qlever/update";
|
|
92
|
+
export declare const ENDPOINT_QLEVER_SHACL = "/cue/qlever/shacl";
|
|
93
|
+
export declare const ENDPOINT_QLEVER_ADMIN_REBUILD = "/cue/qlever/admin/rebuild";
|
|
94
|
+
export declare const ENDPOINT_QLEVER_ADMIN_STATS_REFRESH = "/cue/admin/stats/refresh";
|
|
95
95
|
export declare const ENDPOINT_FSS_BATCH = "/commands/file-system-structure/batch";
|
|
96
96
|
export declare const ENDPOINT_DMS_SYNC_PROVIDERS = "/commands/dms-sync/providers";
|
|
97
97
|
export declare const ENDPOINT_DMS_SYNC_PREVIEW: (providerId: string) => string;
|