@neuralinnovations/dataisland-sdk 0.0.1-dev77 → 0.0.1-dev78
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/package.json +1 -1
- package/dist/src/storages/queryFlows/queryFlows.d.ts +1 -2
- package/dist/src/storages/queryFlows/queryFlows.d.ts.map +1 -1
- package/dist/src/storages/queryFlows/queryFlows.impl.d.ts +1 -2
- package/dist/src/storages/queryFlows/queryFlows.impl.d.ts.map +1 -1
- package/dist/src/storages/queryFlows/queryFlows.impl.js +5 -5
- package/dist/src/storages/queryFlows/queryFlows.impl.js.map +1 -1
- package/dist/src/storages/queryFlows/queryFlows.js.map +1 -1
- package/package.json +1 -1
- package/src/storages/queryFlows/queryFlows.impl.ts +5 -6
- package/src/storages/queryFlows/queryFlows.ts +1 -2
package/dist/package.json
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { EventDispatcher } from "../../events";
|
2
2
|
import { QueryFlow } from "./queryFlow";
|
3
3
|
import { WorkspaceId } from "../workspaces/workspaces";
|
4
|
-
import { FileId } from "../files/file";
|
5
4
|
import { UploadFile } from "../files/files";
|
6
5
|
/**
|
7
6
|
* Query flow id.
|
@@ -16,7 +15,7 @@ export declare enum QueryFlowsEvent {
|
|
16
15
|
}
|
17
16
|
export declare abstract class QueryFlows extends EventDispatcher<QueryFlowsEvent, QueryFlow> {
|
18
17
|
abstract get collection(): QueryFlow[];
|
19
|
-
abstract create(name: string, workspaceId: WorkspaceId,
|
18
|
+
abstract create(name: string, workspaceId: WorkspaceId, file: UploadFile, table: UploadFile): Promise<FlowId>;
|
20
19
|
abstract delete(id: FlowId): Promise<void>;
|
21
20
|
}
|
22
21
|
//# sourceMappingURL=queryFlows.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queryFlows.d.ts","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"queryFlows.d.ts","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAA;AAGzC;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAE3B;;GAEG;AACH,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,8BAAsB,UAAW,SAAQ,eAAe,CACtD,eAAe,EACf,SAAS,CACV;IAEC,QAAQ,KAAK,UAAU,IAAI,SAAS,EAAE,CAAA;IAEtC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAI,OAAO,CAAC,MAAM,CAAC;IAE9G,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAE3C"}
|
@@ -3,7 +3,6 @@ import { FlowId, QueryFlows } from "./queryFlows";
|
|
3
3
|
import { QueryFlow } from "./queryFlow";
|
4
4
|
import { OrganizationImpl } from "../organizations/organization.impl";
|
5
5
|
import { WorkspaceId } from "../workspaces/workspaces";
|
6
|
-
import { FileId } from "../files/file";
|
7
6
|
import { UploadFile } from "../files/files";
|
8
7
|
export declare class QueryFlowsImpl extends QueryFlows {
|
9
8
|
readonly organization: OrganizationImpl;
|
@@ -12,7 +11,7 @@ export declare class QueryFlowsImpl extends QueryFlows {
|
|
12
11
|
constructor(organization: OrganizationImpl, context: Context);
|
13
12
|
init(): Promise<void>;
|
14
13
|
get collection(): QueryFlow[];
|
15
|
-
create(name: string, workspaceId: WorkspaceId,
|
14
|
+
create(name: string, workspaceId: WorkspaceId, file: UploadFile, table: UploadFile): Promise<FlowId>;
|
16
15
|
delete(id: FlowId): Promise<void>;
|
17
16
|
}
|
18
17
|
//# sourceMappingURL=queryFlows.impl.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queryFlows.impl.d.ts","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,MAAM,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAA;AAChE,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAA;AAGnE,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAA;AAMpD,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"queryFlows.impl.d.ts","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,MAAM,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAA;AAChE,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAA;AAGnE,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAA;AAMpD,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAA;AAGzC,qBAAa,cAAe,SAAQ,UAAU;aAK1B,YAAY,EAAE,gBAAgB;aAC9B,OAAO,EAAE,OAAO;IAJlC,OAAO,CAAC,WAAW,CAAkB;gBAGnB,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,OAAO;IAI5B,IAAI;IAmCV,IAAI,UAAU,IAAI,SAAS,EAAE,CAE5B;IAEK,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAI,OAAO,CAAC,MAAM,CAAC;IAoDrG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAoCxC"}
|
@@ -41,7 +41,7 @@ class QueryFlowsImpl extends queryFlows_1.QueryFlows {
|
|
41
41
|
get collection() {
|
42
42
|
return this._collection;
|
43
43
|
}
|
44
|
-
async create(name, workspaceId,
|
44
|
+
async create(name, workspaceId, file, table) {
|
45
45
|
var _a;
|
46
46
|
if (name === undefined || name === null || name.trim() === "") {
|
47
47
|
throw new Error("Name is required, must be not empty");
|
@@ -49,19 +49,19 @@ class QueryFlowsImpl extends queryFlows_1.QueryFlows {
|
|
49
49
|
if (workspaceId === undefined || workspaceId === null || workspaceId.trim() === "") {
|
50
50
|
throw new Error("WorkspaceId is required, must be not empty");
|
51
51
|
}
|
52
|
-
if (fileId === undefined || fileId === null || fileId.trim() === "") {
|
53
|
-
throw new Error("FileId is required, must be not empty");
|
54
|
-
}
|
55
52
|
if (file === undefined || file === null) {
|
56
53
|
throw new Error("Create query flow, file is undefined or null");
|
57
54
|
}
|
55
|
+
if (table === undefined || table === null) {
|
56
|
+
throw new Error("Create query flow, table is undefined or null");
|
57
|
+
}
|
58
58
|
// form data to send
|
59
59
|
const form = new FormData();
|
60
60
|
form.append("organizationId", this.organization.id);
|
61
61
|
form.append("workspaceId", workspaceId);
|
62
|
-
form.append("fileId", fileId);
|
63
62
|
form.append("name", name);
|
64
63
|
form.append("file", file, file.name);
|
64
|
+
form.append("tableFile", table, table.name);
|
65
65
|
// send request to the server
|
66
66
|
const response = await ((_a = this.context
|
67
67
|
.resolve(rpcService_1.RpcService)) === null || _a === void 0 ? void 0 : _a.requestBuilder("api/v1/QueryFlows").sendPostFormData(form));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queryFlows.impl.js","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.impl.ts"],"names":[],"mappings":";;;AAEA,6CAAgE;AAGhE,0DAAoD;AACpD,gEAA0D;AAM1D,qDAA8C;
|
1
|
+
{"version":3,"file":"queryFlows.impl.js","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.impl.ts"],"names":[],"mappings":";;;AAEA,6CAAgE;AAGhE,0DAAoD;AACpD,gEAA0D;AAM1D,qDAA8C;AAI9C,MAAa,cAAe,SAAQ,uBAAU;IAI5C,YACkB,YAA8B,EAC9B,OAAgB;QAChC,KAAK,EAAE,CAAA;QAFS,iBAAY,GAAZ,YAAY,CAAkB;QAC9B,YAAO,GAAP,OAAO,CAAS;QAJ1B,gBAAW,GAAgB,EAAE,CAAA;IAMrC,CAAC;IAED,KAAK,CAAC,IAAI;;QACR,MAAM,QAAQ,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,OAAO;aAChC,OAAO,CAAC,uBAAU,CAAC,0CAClB,cAAc,CAAC,wBAAwB,EACxC,WAAW,CAAC,gBAAgB,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,EAClD,OAAO,EAAE,CAAA,CAAA;QAEZ,wBAAwB;QACxB,IAAI,6BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnC,MAAM,6BAAa,CAAC,UAAU,CAAC,uCAAuC,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;QACzG,CAAC;QAED,yCAAyC;QACzC,MAAM,KAAK,GAAI,CAAC,MAAM,QAAS,CAAC,IAAI,EAAE,CAA2B;aAC9D,OAAO,CAAA;QAEV,wCAAwC;QACxC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,kCAAkC;YAClC,MAA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C,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;QAEzD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,cAAc,EAAE,eAAe,CAAC,CAAA;QAClD,CAAC;QAED,oCAAoC;QACpC,MAAM,QAAQ,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,OAAO;aAChC,OAAO,CAAC,uBAAU,CAAC,0CAClB,cAAc,CAAC,mBAAmB,EACnC,WAAW,CAAC,QAAQ,EAAE,EAAE,EACxB,UAAU,EAAE,CAAA,CAAA;QAEf,wBAAwB;QACxB,IAAI,6BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnC,MAAM,6BAAa,CAAC,UAAU,CAC5B,+BAA+B,EAAE,qBAAqB,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAC5E,QAAQ,CACT,CAAA;QACH,CAAC;QAED,wCAAwC;QACxC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QAC5C,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,cAAc,EAAE,eAAe,CAAC,CAAA;QAClD,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QAEjC,iBAAiB;QACjB,IAAI,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,4BAAe,CAAC,OAAO;YAC7B,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CAEF;AAzID,wCAyIC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queryFlows.js","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;
|
1
|
+
{"version":3,"file":"queryFlows.js","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAW5C;;GAEG;AACH,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,MAAsB,UAAW,SAAQ,wBAGxC;CAQA;AAXD,gCAWC"}
|
package/package.json
CHANGED
@@ -11,7 +11,6 @@ import {
|
|
11
11
|
QueryFlowResponse
|
12
12
|
} from "../../dto/queryFlowResponse"
|
13
13
|
import {QueryFlowImpl} from "./queryFlow.impl"
|
14
|
-
import {FileId} from "../files/file"
|
15
14
|
import {UploadFile} from "../files/files"
|
16
15
|
|
17
16
|
|
@@ -64,27 +63,27 @@ export class QueryFlowsImpl extends QueryFlows {
|
|
64
63
|
return this._collection
|
65
64
|
}
|
66
65
|
|
67
|
-
async create(name: string, workspaceId: WorkspaceId,
|
66
|
+
async create(name: string, workspaceId: WorkspaceId, file: UploadFile, table: UploadFile ): Promise<FlowId> {
|
68
67
|
if (name === undefined || name === null || name.trim() === "") {
|
69
68
|
throw new Error("Name is required, must be not empty")
|
70
69
|
}
|
71
70
|
if (workspaceId === undefined || workspaceId === null || workspaceId.trim() === "") {
|
72
71
|
throw new Error("WorkspaceId is required, must be not empty")
|
73
72
|
}
|
74
|
-
if (fileId === undefined || fileId === null || fileId.trim() === "") {
|
75
|
-
throw new Error("FileId is required, must be not empty")
|
76
|
-
}
|
77
73
|
if (file === undefined || file === null) {
|
78
74
|
throw new Error("Create query flow, file is undefined or null")
|
79
75
|
}
|
76
|
+
if (table === undefined || table === null) {
|
77
|
+
throw new Error("Create query flow, table is undefined or null")
|
78
|
+
}
|
80
79
|
|
81
80
|
// form data to send
|
82
81
|
const form = new FormData()
|
83
82
|
form.append("organizationId", this.organization.id)
|
84
83
|
form.append("workspaceId", workspaceId)
|
85
|
-
form.append("fileId", fileId)
|
86
84
|
form.append("name", name)
|
87
85
|
form.append("file", file, file.name)
|
86
|
+
form.append("tableFile", table, table.name)
|
88
87
|
|
89
88
|
// send request to the server
|
90
89
|
const response = await this.context
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import {EventDispatcher} from "../../events"
|
2
2
|
import {QueryFlow} from "./queryFlow"
|
3
3
|
import {WorkspaceId} from "../workspaces/workspaces"
|
4
|
-
import {FileId} from "../files/file"
|
5
4
|
import {UploadFile} from "../files/files"
|
6
5
|
|
7
6
|
|
@@ -25,7 +24,7 @@ export abstract class QueryFlows extends EventDispatcher<
|
|
25
24
|
|
26
25
|
abstract get collection(): QueryFlow[]
|
27
26
|
|
28
|
-
abstract create(name: string, workspaceId: WorkspaceId,
|
27
|
+
abstract create(name: string, workspaceId: WorkspaceId, file: UploadFile, table: UploadFile ): Promise<FlowId>
|
29
28
|
|
30
29
|
abstract delete(id: FlowId): Promise<void>
|
31
30
|
|