@edifice.io/aiwiki-node-client 0.1.0-snapshot.20261112145213 → 0.2.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.
- package/dist/index.js +1109 -1069
- package/dist/index.umd.cjs +11 -11
- package/dist/nats/client.d.ts +22 -3
- package/dist/nats/client.d.ts.map +1 -1
- package/package.json +2 -3
package/dist/nats/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContentRequest, ContentTransformRequest, CourseHierarchy, CourseResponse, FileCheckRequest, FileCheckResponse, JobAccepted, MessageReceived } from '@edifice.io/aiwiki-node-api';
|
|
2
2
|
import { NatsConnection } from '@nats-io/nats-core';
|
|
3
3
|
export interface RequestOptions {
|
|
4
4
|
timeout?: number;
|
|
@@ -8,8 +8,27 @@ export declare class AiwikiNatsServiceClient {
|
|
|
8
8
|
private readonly natsConnection;
|
|
9
9
|
private readonly defaultTimeout;
|
|
10
10
|
constructor(natsConnection: NatsConnection);
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Tells whether a PDF can be turned into a wiki, before any generation.
|
|
13
|
+
*/
|
|
14
|
+
checkFile(request: FileCheckRequest, platformId?: string, options?: RequestOptions): Promise<FileCheckResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Starts the generation of a wiki from a description of its subject.
|
|
17
|
+
*/
|
|
18
|
+
createWiki(request: ContentRequest, platformId?: string, options?: RequestOptions): Promise<JobAccepted>;
|
|
19
|
+
/**
|
|
20
|
+
* Starts the generation of a wiki from a PDF. The PDF is checked first : the job is refused, with a reason, when it
|
|
21
|
+
* cannot be used.
|
|
22
|
+
*/
|
|
23
|
+
transformWiki(request: ContentTransformRequest, platformId?: string, options?: RequestOptions): Promise<JobAccepted>;
|
|
24
|
+
/**
|
|
25
|
+
* Receives the content of one generated page of a wiki.
|
|
26
|
+
*/
|
|
27
|
+
updateWikiContent(request: CourseResponse, pfId: string, platformId?: string, options?: RequestOptions): Promise<MessageReceived>;
|
|
28
|
+
/**
|
|
29
|
+
* Receives the structure of a generated wiki : its pages, without their content.
|
|
30
|
+
*/
|
|
31
|
+
updateWikiStructure(request: CourseHierarchy, pfId: string, platformId?: string, options?: RequestOptions): Promise<MessageReceived>;
|
|
13
32
|
private extractResponse;
|
|
14
33
|
private toNatsOptions;
|
|
15
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/nats/client.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/nats/client.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGnE,OAAO,KAAK,EAAE,cAAc,EAA6C,MAAM,oBAAoB,CAAC;AAGpG,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,CAAA;CAC9C;AAED,qBAAa,uBAAuB;IAItB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAF3C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;gBAEX,cAAc,EAAE,cAAc;IAM3D;;OAEG;IACG,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAgBzH;;OAEG;IACG,UAAU,CAAC,OAAO,EAAE,cAAc,EAAE,UAAU,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;IAgBlH;;;OAGG;IACG,aAAa,CAAC,OAAO,EAAE,uBAAuB,EAAE,UAAU,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;IAgB9H;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAgB3I;;OAEG;IACG,mBAAmB,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAgB9I,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,aAAa;CAmBtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/aiwiki-node-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Clients to interact with aiwiki-nats-service",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@edifice.io/aiwiki-node-api": "0.
|
|
32
|
-
"@edifice.io/common-node": "0.1.0-snapshot.20261112145213",
|
|
31
|
+
"@edifice.io/aiwiki-node-api": "0.2.0",
|
|
33
32
|
"@nats-io/transport-node": "3.2.0",
|
|
34
33
|
"@nats-io/nats-core": "3.2.0"
|
|
35
34
|
},
|