@neuralinnovations/dataisland-sdk 0.0.1-dev72 → 0.0.1-dev74
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 +4 -3
- package/dist/package.json +1 -1
- package/dist/src/dto/apiKeyResponse.d.ts +6 -1
- package/dist/src/dto/apiKeyResponse.d.ts.map +1 -1
- package/dist/src/dto/queryFlowResponse.d.ts +19 -0
- package/dist/src/dto/queryFlowResponse.d.ts.map +1 -0
- package/dist/src/dto/queryFlowResponse.js +10 -0
- package/dist/src/dto/queryFlowResponse.js.map +1 -0
- package/dist/src/dto/workspacesResponse.d.ts +14 -4
- package/dist/src/dto/workspacesResponse.d.ts.map +1 -1
- package/dist/src/dto/workspacesResponse.js +11 -1
- package/dist/src/dto/workspacesResponse.js.map +1 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/storages/files/file.d.ts +8 -8
- package/dist/src/storages/files/file.d.ts.map +1 -1
- package/dist/src/storages/files/file.impl.d.ts +5 -6
- package/dist/src/storages/files/file.impl.d.ts.map +1 -1
- package/dist/src/storages/files/file.impl.js +8 -34
- package/dist/src/storages/files/file.impl.js.map +1 -1
- package/dist/src/storages/files/file.js +1 -7
- package/dist/src/storages/files/file.js.map +1 -1
- package/dist/src/storages/files/files.impl.d.ts +2 -0
- package/dist/src/storages/files/files.impl.d.ts.map +1 -1
- package/dist/src/storages/files/files.impl.js +31 -0
- package/dist/src/storages/files/files.impl.js.map +1 -1
- package/dist/src/storages/organizations/organization.d.ts +5 -0
- package/dist/src/storages/organizations/organization.d.ts.map +1 -1
- package/dist/src/storages/organizations/organization.impl.d.ts +3 -0
- package/dist/src/storages/organizations/organization.impl.d.ts.map +1 -1
- package/dist/src/storages/organizations/organization.impl.js +7 -1
- package/dist/src/storages/organizations/organization.impl.js.map +1 -1
- package/dist/src/storages/organizations/organization.js.map +1 -1
- package/dist/src/storages/queryFlows/queryFlow.d.ts +12 -0
- package/dist/src/storages/queryFlows/queryFlow.d.ts.map +1 -0
- package/dist/src/storages/queryFlows/queryFlow.impl.d.ts +16 -0
- package/dist/src/storages/queryFlows/queryFlow.impl.d.ts.map +1 -0
- package/dist/src/storages/queryFlows/queryFlow.impl.js +59 -0
- package/dist/src/storages/queryFlows/queryFlow.impl.js.map +1 -0
- package/dist/src/storages/queryFlows/queryFlow.js +12 -0
- package/dist/src/storages/queryFlows/queryFlow.js.map +1 -0
- package/dist/src/storages/queryFlows/queryFlows.d.ts +22 -0
- package/dist/src/storages/queryFlows/queryFlows.d.ts.map +1 -0
- package/dist/src/storages/queryFlows/queryFlows.impl.d.ts +18 -0
- package/dist/src/storages/queryFlows/queryFlows.impl.d.ts.map +1 -0
- package/dist/src/storages/queryFlows/queryFlows.impl.js +108 -0
- package/dist/src/storages/queryFlows/queryFlows.impl.js.map +1 -0
- package/dist/src/storages/queryFlows/queryFlows.js +16 -0
- package/dist/src/storages/queryFlows/queryFlows.js.map +1 -0
- package/package.json +1 -1
- package/src/dto/apiKeyResponse.ts +7 -1
- package/src/dto/queryFlowResponse.ts +27 -0
- package/src/dto/workspacesResponse.ts +16 -4
- package/src/index.ts +4 -1
- package/src/storages/files/file.impl.ts +10 -46
- package/src/storages/files/file.ts +13 -9
- package/src/storages/files/files.impl.ts +47 -2
- package/src/storages/organizations/organization.impl.ts +10 -1
- package/src/storages/organizations/organization.ts +6 -0
- package/src/storages/queryFlows/queryFlow.impl.ts +74 -0
- package/src/storages/queryFlows/queryFlow.ts +20 -0
- package/src/storages/queryFlows/queryFlows.impl.ts +151 -0
- package/src/storages/queryFlows/queryFlows.ts +32 -0
package/README.md
CHANGED
@@ -158,14 +158,15 @@ Default file upload example:
|
|
158
158
|
const file = await workspace.files.upload([file])
|
159
159
|
```
|
160
160
|
|
161
|
-
The file uploading process always takes some time, so you can track its uploading status using subscription for files UPDATED event. Status tracking starts with "status" property of file. It can be
|
161
|
+
The file uploading process always takes some time, so you can track its uploading status using subscription for files UPDATED event. Status tracking starts with "status" property of file. It can be on various stages, including: None , WAITING_CONVERTING, CONVERTING, WAITING_PROCESSING, PROCESSING, ERROR and DONE. Remember to check file status before making a subscription, because it could be already DONE or ERROR. Also remember to always call "Query" method after files uploading. This method will be described below, and helps update pages and list info.
|
162
162
|
|
163
163
|
```
|
164
|
-
if (file.status
|
164
|
+
if (file.status > FileProcessingStage.PROCESSING) {
|
165
165
|
// Show results
|
166
166
|
} else {
|
167
167
|
file.subscribe((event) => {
|
168
|
-
|
168
|
+
// Change current view depends on file status changes, and unsibcsribe on DONE or ERROR
|
169
|
+
const status = event.data.status
|
169
170
|
})
|
170
171
|
}
|
171
172
|
```
|
package/dist/package.json
CHANGED
@@ -14,6 +14,11 @@ export interface OrganizationApiKey {
|
|
14
14
|
tokensCreated: number;
|
15
15
|
createdAt: number;
|
16
16
|
lastTokenCreatedAt: number;
|
17
|
-
|
17
|
+
accessGroupInfo: AccessGroupInfo[];
|
18
|
+
}
|
19
|
+
export interface AccessGroupInfo {
|
20
|
+
id: string;
|
21
|
+
name: string;
|
22
|
+
type: number;
|
18
23
|
}
|
19
24
|
//# sourceMappingURL=apiKeyResponse.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"apiKeyResponse.d.ts","sourceRoot":"","sources":["../../../src/dto/apiKeyResponse.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,kBAAkB,CAAA;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,kBAAkB,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,
|
1
|
+
{"version":3,"file":"apiKeyResponse.d.ts","sourceRoot":"","sources":["../../../src/dto/apiKeyResponse.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,kBAAkB,CAAA;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,kBAAkB,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,eAAe,EAAE,eAAe,EAAE,CAAA;CACnC;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare enum QueryFlowStatus {
|
2
|
+
IN_PROGRESS = 0,
|
3
|
+
ERROR = 1,
|
4
|
+
DONE = 100
|
5
|
+
}
|
6
|
+
export interface QueryFlowResult {
|
7
|
+
fileUrl: string;
|
8
|
+
}
|
9
|
+
export interface QueryFlowDto {
|
10
|
+
state: QueryFlowStatus;
|
11
|
+
result: QueryFlowResult;
|
12
|
+
}
|
13
|
+
export interface QueryFlowListResponse {
|
14
|
+
flowIds: string[];
|
15
|
+
}
|
16
|
+
export interface QueryFlowResponse {
|
17
|
+
flowId: string;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=queryFlowResponse.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queryFlowResponse.d.ts","sourceRoot":"","sources":["../../../src/dto/queryFlowResponse.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe;IACzB,WAAW,IAAI;IACf,KAAK,IAAI;IACT,IAAI,MAAM;CACX;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;CAChB;AAGD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,eAAe,CAAA;CACxB;AAGD,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAGD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;CACf"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QueryFlowStatus = void 0;
|
4
|
+
var QueryFlowStatus;
|
5
|
+
(function (QueryFlowStatus) {
|
6
|
+
QueryFlowStatus[QueryFlowStatus["IN_PROGRESS"] = 0] = "IN_PROGRESS";
|
7
|
+
QueryFlowStatus[QueryFlowStatus["ERROR"] = 1] = "ERROR";
|
8
|
+
QueryFlowStatus[QueryFlowStatus["DONE"] = 100] = "DONE";
|
9
|
+
})(QueryFlowStatus || (exports.QueryFlowStatus = QueryFlowStatus = {}));
|
10
|
+
//# sourceMappingURL=queryFlowResponse.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queryFlowResponse.js","sourceRoot":"","sources":["../../../src/dto/queryFlowResponse.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,mEAAe,CAAA;IACf,uDAAS,CAAA;IACT,uDAAU,CAAA;AACZ,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
@@ -17,11 +17,18 @@ export interface FileUrlDto {
|
|
17
17
|
url: string;
|
18
18
|
previewUrl: string;
|
19
19
|
}
|
20
|
+
export declare enum FileProcessingStage {
|
21
|
+
None = 0,
|
22
|
+
WAITING_CONVERTING = 10,
|
23
|
+
CONVERTING = 11,
|
24
|
+
WAITING_PROCESSING = 20,
|
25
|
+
PROCESSING = 21,
|
26
|
+
ERROR = 99,
|
27
|
+
DONE = 100
|
28
|
+
}
|
20
29
|
export interface FileProgressDto {
|
21
30
|
file_id: FileId;
|
22
|
-
|
23
|
-
completed_parts_count: number;
|
24
|
-
success: boolean;
|
31
|
+
stage: FileProcessingStage;
|
25
32
|
error?: string;
|
26
33
|
}
|
27
34
|
export interface FileDto {
|
@@ -36,7 +43,10 @@ export interface FileDto {
|
|
36
43
|
hash: string;
|
37
44
|
organizationId: string;
|
38
45
|
workspaceId: string;
|
39
|
-
|
46
|
+
stage: FileProcessingStage;
|
47
|
+
}
|
48
|
+
export interface FilesBatchFetchResponse {
|
49
|
+
progress: FileProgressDto[];
|
40
50
|
}
|
41
51
|
export declare class MetadataDto {
|
42
52
|
key: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workspacesResponse.d.ts","sourceRoot":"","sources":["../../../src/dto/workspacesResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAE/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,WAAW,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,mBAAmB,CAAA;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,YAAY,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,
|
1
|
+
{"version":3,"file":"workspacesResponse.d.ts","sourceRoot":"","sources":["../../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AAuB;IACtC,QAAQ,EAAE,eAAe,EAAE,CAAA;CAC5B;AAED,qBAAa,WAAW;IACf,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;gBAER,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAIvC;AAGD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,oBAAY,YAAY;IACtB,IAAI,IAAI;IACR,YAAY,IAAI;IAChB,SAAS,IAAI;IACb,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,IAAI;IACR,IAAI,IAAI;CACT"}
|
@@ -1,6 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ResourceType = exports.MetadataDto = void 0;
|
3
|
+
exports.ResourceType = exports.MetadataDto = exports.FileProcessingStage = void 0;
|
4
|
+
var FileProcessingStage;
|
5
|
+
(function (FileProcessingStage) {
|
6
|
+
FileProcessingStage[FileProcessingStage["None"] = 0] = "None";
|
7
|
+
FileProcessingStage[FileProcessingStage["WAITING_CONVERTING"] = 10] = "WAITING_CONVERTING";
|
8
|
+
FileProcessingStage[FileProcessingStage["CONVERTING"] = 11] = "CONVERTING";
|
9
|
+
FileProcessingStage[FileProcessingStage["WAITING_PROCESSING"] = 20] = "WAITING_PROCESSING";
|
10
|
+
FileProcessingStage[FileProcessingStage["PROCESSING"] = 21] = "PROCESSING";
|
11
|
+
FileProcessingStage[FileProcessingStage["ERROR"] = 99] = "ERROR";
|
12
|
+
FileProcessingStage[FileProcessingStage["DONE"] = 100] = "DONE";
|
13
|
+
})(FileProcessingStage || (exports.FileProcessingStage = FileProcessingStage = {}));
|
4
14
|
class MetadataDto {
|
5
15
|
constructor(key, value) {
|
6
16
|
this.key = key;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workspacesResponse.js","sourceRoot":"","sources":["../../../src/dto/workspacesResponse.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"workspacesResponse.js","sourceRoot":"","sources":["../../../src/dto/workspacesResponse.ts"],"names":[],"mappings":";;;AAwBA,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,6DAAQ,CAAA;IACR,0FAAuB,CAAA;IACvB,0EAAe,CAAA;IACf,0FAAuB,CAAA;IACvB,0EAAe,CAAA;IACf,gEAAU,CAAA;IACV,+DAAU,CAAA;AACZ,CAAC,EARW,mBAAmB,mCAAnB,mBAAmB,QAQ9B;AA2BD,MAAa,WAAW;IAItB,YAAY,GAAW,EAAE,KAAa;QACpC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;CACF;AARD,kCAQC;AAmBD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+CAAQ,CAAA;IACR,+DAAgB,CAAA;IAChB,yDAAa,CAAA;IACb,+CAAQ,CAAA;IACR,iDAAS,CAAA;IACT,+CAAQ,CAAA;IACR,+CAAQ,CAAA;AACV,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB"}
|
package/dist/src/index.d.ts
CHANGED
@@ -16,6 +16,7 @@ export * from "./dto/userInfoResponse";
|
|
16
16
|
export * from "./dto/workspacesResponse";
|
17
17
|
export * from "./dto/invitesResponse";
|
18
18
|
export * from "./dto/apiKeyResponse";
|
19
|
+
export * from "./dto/queryFlowResponse";
|
19
20
|
export * from "./events";
|
20
21
|
export * from "./middleware";
|
21
22
|
export * from "./storages/chats/answer";
|
@@ -30,9 +31,11 @@ export * from "./storages/organizations/organizations";
|
|
30
31
|
export * from "./storages/user/userProfile";
|
31
32
|
export * from "./storages/workspaces/workspace";
|
32
33
|
export * from "./storages/workspaces/workspaces";
|
34
|
+
export * from "./storages/queryFlows/queryFlow";
|
35
|
+
export * from "./storages/queryFlows/queryFlows";
|
33
36
|
export { OrganizationId, Organizations, OrganizationsEvent } from "./storages/organizations/organizations";
|
34
37
|
export { WorkspaceId, Workspaces, WorkspacesEvent } from "./storages/workspaces/workspaces";
|
35
|
-
export { FileId, File
|
38
|
+
export { FileId, File } from "./storages/files/file";
|
36
39
|
export { UploadFile, Files, FilesEvent } from "./storages/files/files";
|
37
40
|
export { Group, GroupEvent, GroupId } from "./storages/groups/group";
|
38
41
|
export { AnswerId, Answer, StepId, AnswerEvent } from "./storages/chats/answer";
|
package/dist/src/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAu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AI,aAAa,EAAE,CAErD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,aAAa,CACjC,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,GAC7C,OAAO,CAAC,aAAa,CAAC,CAuBxB"}
|
package/dist/src/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.dataIslandApp = exports.dataIslandInstances = exports.DEFAULT_HOST = exports.DEFAULT_NAME = exports.SDK_VERSION = exports.LimitActionType = exports.OrderState = exports.isEmptyNullOrUndefined = exports.isNullOrUndefined = exports.AnswerEvent = exports.Answer = exports.GroupEvent = exports.Group = exports.FilesEvent = exports.Files = exports.
|
3
|
+
exports.dataIslandApp = exports.dataIslandInstances = exports.DEFAULT_HOST = exports.DEFAULT_NAME = exports.SDK_VERSION = exports.LimitActionType = exports.OrderState = exports.isEmptyNullOrUndefined = exports.isNullOrUndefined = exports.AnswerEvent = exports.Answer = exports.GroupEvent = exports.Group = exports.FilesEvent = exports.Files = exports.File = exports.WorkspacesEvent = exports.Workspaces = exports.OrganizationsEvent = exports.Organizations = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const package_json_1 = require("../package.json");
|
6
6
|
const createApp_impl_1 = require("./internal/createApp.impl");
|
@@ -20,6 +20,7 @@ tslib_1.__exportStar(require("./dto/userInfoResponse"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./dto/workspacesResponse"), exports);
|
21
21
|
tslib_1.__exportStar(require("./dto/invitesResponse"), exports);
|
22
22
|
tslib_1.__exportStar(require("./dto/apiKeyResponse"), exports);
|
23
|
+
tslib_1.__exportStar(require("./dto/queryFlowResponse"), exports);
|
23
24
|
tslib_1.__exportStar(require("./events"), exports);
|
24
25
|
tslib_1.__exportStar(require("./middleware"), exports);
|
25
26
|
tslib_1.__exportStar(require("./storages/chats/answer"), exports);
|
@@ -34,6 +35,8 @@ tslib_1.__exportStar(require("./storages/organizations/organizations"), exports)
|
|
34
35
|
tslib_1.__exportStar(require("./storages/user/userProfile"), exports);
|
35
36
|
tslib_1.__exportStar(require("./storages/workspaces/workspace"), exports);
|
36
37
|
tslib_1.__exportStar(require("./storages/workspaces/workspaces"), exports);
|
38
|
+
tslib_1.__exportStar(require("./storages/queryFlows/queryFlow"), exports);
|
39
|
+
tslib_1.__exportStar(require("./storages/queryFlows/queryFlows"), exports);
|
37
40
|
var organizations_1 = require("./storages/organizations/organizations");
|
38
41
|
Object.defineProperty(exports, "Organizations", { enumerable: true, get: function () { return organizations_1.Organizations; } });
|
39
42
|
Object.defineProperty(exports, "OrganizationsEvent", { enumerable: true, get: function () { return organizations_1.OrganizationsEvent; } });
|
@@ -42,7 +45,6 @@ Object.defineProperty(exports, "Workspaces", { enumerable: true, get: function (
|
|
42
45
|
Object.defineProperty(exports, "WorkspacesEvent", { enumerable: true, get: function () { return workspaces_1.WorkspacesEvent; } });
|
43
46
|
var file_1 = require("./storages/files/file");
|
44
47
|
Object.defineProperty(exports, "File", { enumerable: true, get: function () { return file_1.File; } });
|
45
|
-
Object.defineProperty(exports, "FileStatus", { enumerable: true, get: function () { return file_1.FileStatus; } });
|
46
48
|
var files_1 = require("./storages/files/files");
|
47
49
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
48
50
|
Object.defineProperty(exports, "FilesEvent", { enumerable: true, get: function () { return files_1.FilesEvent; } });
|
package/dist/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,kDAAyC;AACzC,8DAAsD;AAItD,uDAA4B;AAC5B,oDAAyB;AACzB,wDAA6B;AAC7B,0DAA+B;AAC/B,uDAA4B;AAC5B,oEAAyC;AACzC,6DAAkC;AAClC,kEAAuC;AACvC,mEA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C3C,CAAC,CAAC;aACD,KAAK,CAAC,MAAM,CAAC,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,UAAU,MAAM,EAAE,CAAC,CAAA;YACjC,aAAa,CAAC,MAAM,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,oBAAY,CAAC,CAAA;QAC5C,CAAC,CAAC,CAAA;QACJ,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;IACrC,CAAC;SAAM,CAAC;QACN,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CACb,cAAc,IAAI,mDAAmD,CACtE,CAAA;QACH,CAAC;IACH,CAAC;IACD,OAAO,MAAM,UAAU,CAAA;AACzB,CAAC;AA1BD,sCA0BC"}
|
@@ -1,12 +1,7 @@
|
|
1
|
-
import { FileProgressDto, MetadataDto } from "../../dto/workspacesResponse";
|
1
|
+
import { FileProcessingStage, FileProgressDto, MetadataDto } from "../../dto/workspacesResponse";
|
2
2
|
import { EventDispatcher } from "../../events";
|
3
3
|
import { FilesEvent } from "./files";
|
4
4
|
export type FileId = string;
|
5
|
-
export declare enum FileStatus {
|
6
|
-
UPLOADING = "uploading",
|
7
|
-
SUCCESS = "success",
|
8
|
-
FAILED = "failed"
|
9
|
-
}
|
10
5
|
/**
|
11
6
|
* File.
|
12
7
|
*/
|
@@ -38,11 +33,11 @@ export declare abstract class File extends EventDispatcher<FilesEvent, File> {
|
|
38
33
|
/**
|
39
34
|
* File uploading progress
|
40
35
|
*/
|
41
|
-
abstract get progress(): FileProgressDto;
|
36
|
+
abstract get progress(): FileProgressDto | undefined;
|
42
37
|
/**
|
43
38
|
* File uploading status
|
44
39
|
*/
|
45
|
-
abstract get status():
|
40
|
+
abstract get status(): FileProcessingStage;
|
46
41
|
/**
|
47
42
|
* Get temporary url.
|
48
43
|
*/
|
@@ -55,5 +50,10 @@ export declare abstract class File extends EventDispatcher<FilesEvent, File> {
|
|
55
50
|
* Update file.
|
56
51
|
*/
|
57
52
|
abstract update(name: string, metadata: MetadataDto[], description?: string): Promise<void>;
|
53
|
+
/**
|
54
|
+
* Update file status
|
55
|
+
* @param progress
|
56
|
+
*/
|
57
|
+
abstract updateStatus(progress: FileProgressDto): void;
|
58
58
|
}
|
59
59
|
//# sourceMappingURL=file.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/storages/files/file.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/storages/files/file.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,WAAW,EACZ,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAE3B;;GAEG;AACH,8BAAsB,IAAK,SAAQ,eAAe,CAChD,UAAU,EACV,IAAI,CACL;IACC;;OAEG;IACH,QAAQ,KAAK,EAAE,IAAI,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAA;IAE3B;;OAEG;IACH,QAAQ,KAAK,WAAW,IAAI,MAAM,CAAA;IAElC;;OAEG;IACH,QAAQ,KAAK,QAAQ,IAAI,WAAW,EAAE,CAAA;IAEtC;;OAEG;IACH,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAA;IAEhC;;OAEG;IACH,QAAQ,KAAK,UAAU,IAAI,MAAM,CAAA;IAEjC;;OAEG;IACH,QAAQ,KAAK,QAAQ,IAAI,eAAe,GAAG,SAAS,CAAA;IAEpD;;OAEG;IACH,QAAQ,KAAK,MAAM,IAAI,mBAAmB,CAAA;IAE1C;;OAEG;IACH,QAAQ,KAAK,GAAG,IAAI,MAAM,CAAA;IAE1B;;OAEG;IACH,QAAQ,KAAK,UAAU,IAAI,MAAM,CAAA;IAEjC;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3F;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;CACvD"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Context } from "../../context";
|
2
2
|
import { Disposable } from "../../disposable";
|
3
|
-
import { FileDto, FileProgressDto, MetadataDto } from "../../dto/workspacesResponse";
|
4
|
-
import { File
|
3
|
+
import { FileDto, FileProcessingStage, FileProgressDto, MetadataDto } from "../../dto/workspacesResponse";
|
4
|
+
import { File } from "./file";
|
5
5
|
export declare class FileImpl extends File implements Disposable {
|
6
6
|
private readonly context;
|
7
7
|
private _isDisposed;
|
@@ -19,10 +19,9 @@ export declare class FileImpl extends File implements Disposable {
|
|
19
19
|
get modifiedAt(): number;
|
20
20
|
get url(): string;
|
21
21
|
get previewUrl(): string;
|
22
|
-
get
|
23
|
-
get
|
24
|
-
|
25
|
-
updateStatus(): Promise<void>;
|
22
|
+
get status(): FileProcessingStage;
|
23
|
+
get progress(): FileProgressDto | undefined;
|
24
|
+
updateStatus(progress: FileProgressDto): void;
|
26
25
|
update(name: string, metadata: MetadataDto[], description?: string): Promise<void>;
|
27
26
|
}
|
28
27
|
//# sourceMappingURL=file.impl.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"file.impl.d.ts","sourceRoot":"","sources":["../../../../src/storages/files/file.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EACL,OAAO,
|
1
|
+
{"version":3,"file":"file.impl.d.ts","sourceRoot":"","sources":["../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require("../../services/responseUtils");
|
6
6
|
const file_1 = require("./file");
|
7
7
|
const files_1 = require("./files");
|
8
|
-
const utils_1 = require("../../utils/utils");
|
9
8
|
class FileImpl extends file_1.File {
|
10
9
|
constructor(context) {
|
11
10
|
super();
|
@@ -14,7 +13,6 @@ class FileImpl extends file_1.File {
|
|
14
13
|
}
|
15
14
|
async initFrom(file) {
|
16
15
|
this._content = file;
|
17
|
-
await this.updateStatus();
|
18
16
|
return this;
|
19
17
|
}
|
20
18
|
get isDisposed() {
|
@@ -59,46 +57,22 @@ class FileImpl extends file_1.File {
|
|
59
57
|
var _a;
|
60
58
|
return (_a = this._content) === null || _a === void 0 ? void 0 : _a.previewUrl;
|
61
59
|
}
|
62
|
-
get progress() {
|
63
|
-
return this._progress;
|
64
|
-
}
|
65
60
|
get status() {
|
66
|
-
|
67
|
-
|
68
|
-
return file_1.FileStatus.UPLOADING;
|
69
|
-
}
|
70
|
-
else if (this._progress.success) {
|
71
|
-
return file_1.FileStatus.SUCCESS;
|
72
|
-
}
|
73
|
-
else {
|
74
|
-
return file_1.FileStatus.FAILED;
|
75
|
-
}
|
61
|
+
var _a;
|
62
|
+
return (_a = this._content) === null || _a === void 0 ? void 0 : _a.stage;
|
76
63
|
}
|
77
|
-
|
78
|
-
|
79
|
-
setTimeout(async () => await this.updateStatus(), 2000);
|
80
|
-
}
|
64
|
+
get progress() {
|
65
|
+
return this._progress;
|
81
66
|
}
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
.
|
86
|
-
if (responseUtils_1.ResponseUtils.isFail(response)) {
|
87
|
-
await responseUtils_1.ResponseUtils.throwError(`Failed to get file ${this.id}`, response);
|
88
|
-
}
|
89
|
-
const prev_progress = this._progress;
|
90
|
-
this._progress = (await response.json()).progress;
|
91
|
-
if ((0, utils_1.isNullOrUndefined)(prev_progress) ||
|
92
|
-
(!(0, utils_1.isNullOrUndefined)(this.progress.success) && this.progress.completed_parts_count > prev_progress.completed_parts_count) ||
|
93
|
-
this.status === file_1.FileStatus.SUCCESS ||
|
94
|
-
this.status === file_1.FileStatus.FAILED) {
|
95
|
-
// dispatch event, file updated
|
67
|
+
updateStatus(progress) {
|
68
|
+
if (this._content) {
|
69
|
+
this._progress = progress;
|
70
|
+
this._content.stage = this._progress.stage;
|
96
71
|
this.dispatch({
|
97
72
|
type: files_1.FilesEvent.UPDATED,
|
98
73
|
data: this
|
99
74
|
});
|
100
75
|
}
|
101
|
-
this.fetchAfter();
|
102
76
|
}
|
103
77
|
async update(name, metadata, description) {
|
104
78
|
var _a;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"file.impl.js","sourceRoot":"","sources":["../../../../src/storages/files/file.impl.ts"],"names":[],"mappings":";;;AAOA,0DAAoD;AACpD,gEAA0D;AAC1D,
|
1
|
+
{"version":3,"file":"file.impl.js","sourceRoot":"","sources":["../../../../src/storages/files/file.impl.ts"],"names":[],"mappings":";;;AAOA,0DAAoD;AACpD,gEAA0D;AAC1D,iCAA2B;AAC3B,mCAAkC;AAElC,MAAa,QAAS,SAAQ,WAAI;IAKhC,YAA6B,OAAgB;QAC3C,KAAK,EAAE,CAAA;QADoB,YAAO,GAAP,OAAO,CAAS;QAJrC,gBAAW,GAAY,KAAK,CAAA;IAMpC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,IAAa;QAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QAEpB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;IAED,OAAO;QACL,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;IACzB,CAAC;IAED,IAAI,EAAE;;QACJ,OAAe,MAAA,IAAI,CAAC,QAAQ,0CAAE,EAAE,CAAA;IAClC,CAAC;IAED,IAAI,IAAI;;QACN,OAAe,MAAA,IAAI,CAAC,QAAQ,0CAAE,IAAI,CAAA;IACpC,CAAC;IAED,IAAI,WAAW;;QACb,OAAe,MAAA,I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AAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAA;QACxC,CAAC;QAED,IAAI,IAAI,KAAK,SAAS,IAAI,QAAQ,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACvF,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;QACxE,CAAC;QAED,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;QAE/C,MAAM,QAAQ,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,OAAO;aAChC,OAAO,CAAC,uBAAU,CAAC,0CAClB,cAAc,CAAC,cAAc,EAC9B,WAAW,CAAC;YACX,MAAM,EAAE,IAAI,CAAC,EAAE;YACf,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,IAAI,CAAC,WAAW;YAC5C,QAAQ,EAAE,cAAc;SACzB,CAAC,CAAA,CAAA;QAEJ,IAAI,6BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnC,MAAM,6BAAa,CAAC,UAAU,CAAC,uBAAuB,EAAE,QAAQ,CAAC,CAAA;QACnE,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,CAAC,MAAM,QAAS,CAAC,IAAI,EAEnC,CAAA,CAAC,IAAe,CAAA;QAElB,IAAI,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,kBAAU,CAAC,OAAO;YACxB,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF;AAjHD,4BAiHC"}
|
@@ -1,13 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.File =
|
3
|
+
exports.File = void 0;
|
4
4
|
const events_1 = require("../../events");
|
5
|
-
var FileStatus;
|
6
|
-
(function (FileStatus) {
|
7
|
-
FileStatus["UPLOADING"] = "uploading";
|
8
|
-
FileStatus["SUCCESS"] = "success";
|
9
|
-
FileStatus["FAILED"] = "failed";
|
10
|
-
})(FileStatus || (exports.FileStatus = FileStatus = {}));
|
11
5
|
/**
|
12
6
|
* File.
|
13
7
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../src/storages/files/file.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../src/storages/files/file.ts"],"names":[],"mappings":";;;AAKA,yCAA8C;AAK9C;;GAEG;AACH,MAAsB,IAAK,SAAQ,wBAGlC;CA6DA;AAhED,oBAgEC"}
|
@@ -8,10 +8,12 @@ export declare class FilesImpl extends Files {
|
|
8
8
|
private readonly context;
|
9
9
|
constructor(workspace: WorkspaceImpl, context: Context);
|
10
10
|
filesList?: FilesPage;
|
11
|
+
private _fetchList;
|
11
12
|
upload(files: UploadFile[]): Promise<File[]>;
|
12
13
|
get(fileId: string): Promise<File>;
|
13
14
|
delete(ids: string[]): Promise<void>;
|
14
15
|
query(query: string, page: number, limit: number): Promise<FilesPage>;
|
16
|
+
internalFetchQuery(): Promise<void>;
|
15
17
|
internalGetFile(id: string): Promise<File>;
|
16
18
|
/**
|
17
19
|
* Delete file.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.impl.d.ts","sourceRoot":"","sources":["../../../../src/storages/files/files.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;
|
1
|
+
{"version":3,"file":"files.impl.d.ts","sourceRoot":"","sources":["../../../../src/storages/files/files.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAQvC,OAAO,EAAE,KAAK,EAAc,UAAU,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAE5D,OAAO,EAAC,IAAI,EAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAIvC,qBAAa,SAAU,SAAQ,KAAK;IAEhC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,OAAO;IAM5B,SAAS,CAAC,EAAE,SAAS,CAAA;IAE5B,OAAO,CAAC,UAAU,CAAe;IAE3B,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAW5C,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAQrE,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IA8BnC,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BhD;;;OAGG;IACG,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAuCjD,aAAa,CACjB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,SAAS,CAAC;IAwEf,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC;CA4ClE"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.FilesImpl = void 0;
|
4
|
+
const workspacesResponse_1 = require("../../dto/workspacesResponse");
|
4
5
|
const rpcService_1 = require("../../services/rpcService");
|
5
6
|
const file_impl_1 = require("./file.impl");
|
6
7
|
const files_1 = require("./files");
|
@@ -12,6 +13,7 @@ class FilesImpl extends files_1.Files {
|
|
12
13
|
super();
|
13
14
|
this.workspace = workspace;
|
14
15
|
this.context = context;
|
16
|
+
this._fetchList = [];
|
15
17
|
}
|
16
18
|
async upload(files) {
|
17
19
|
const loaded_files = [];
|
@@ -35,6 +37,28 @@ class FilesImpl extends files_1.Files {
|
|
35
37
|
//----------------------------------------------------------------------------
|
36
38
|
// INTERNALS
|
37
39
|
//----------------------------------------------------------------------------
|
40
|
+
async internalFetchQuery() {
|
41
|
+
var _a, _b, _c;
|
42
|
+
const response = await ((_a = this.context
|
43
|
+
.resolve(rpcService_1.RpcService)) === null || _a === void 0 ? void 0 : _a.requestBuilder("api/v1/Files/fetch/batch").searchParam("organizationId", this.workspace.organization.id).searchParam("fileIds", this._fetchList.join(",")).sendGet());
|
44
|
+
if (responseUtils_1.ResponseUtils.isFail(response)) {
|
45
|
+
await responseUtils_1.ResponseUtils.throwError(`Failed to fetch files for org ${this.workspace.organization.id} and workspace ${this.workspace.id}`, response);
|
46
|
+
}
|
47
|
+
const progress = (await response.json());
|
48
|
+
for (const prg of progress.progress) {
|
49
|
+
const file = (_c = (_b = this.filesList) === null || _b === void 0 ? void 0 : _b.files) === null || _c === void 0 ? void 0 : _c.find(fl => fl.id == prg.file_id);
|
50
|
+
if (file) {
|
51
|
+
file.updateStatus(prg);
|
52
|
+
if (file.status > workspacesResponse_1.FileProcessingStage.PROCESSING) {
|
53
|
+
const index = this._fetchList.indexOf(file.id);
|
54
|
+
this._fetchList.splice(index, 1);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
if (this._fetchList.length != 0) {
|
59
|
+
setTimeout(async () => await this.internalFetchQuery(), 2000);
|
60
|
+
}
|
61
|
+
}
|
38
62
|
async internalGetFile(id) {
|
39
63
|
var _a;
|
40
64
|
if (id === undefined || id === null) {
|
@@ -111,6 +135,7 @@ class FilesImpl extends files_1.Files {
|
|
111
135
|
if (responseUtils_1.ResponseUtils.isFail(response)) {
|
112
136
|
await responseUtils_1.ResponseUtils.throwError(`Files fetch query:${query}, page:${page}, limit:${limit}, failed`, response);
|
113
137
|
}
|
138
|
+
this._fetchList = [];
|
114
139
|
// parse files from the server's response
|
115
140
|
const files = (await response.json());
|
116
141
|
// create files list
|
@@ -124,9 +149,15 @@ class FilesImpl extends files_1.Files {
|
|
124
149
|
const file = await new file_impl_1.FileImpl(this.context).initFrom(fl);
|
125
150
|
// add file to the collection
|
126
151
|
filesList.files.push(file);
|
152
|
+
if (file.status <= workspacesResponse_1.FileProcessingStage.PROCESSING) {
|
153
|
+
this._fetchList.push(file.id);
|
154
|
+
}
|
127
155
|
}
|
128
156
|
// set files list
|
129
157
|
this.filesList = filesList;
|
158
|
+
if (this._fetchList.length != 0) {
|
159
|
+
setTimeout(async () => await this.internalFetchQuery(), 2000);
|
160
|
+
}
|
130
161
|
return filesList;
|
131
162
|
}
|
132
163
|
async internalUpload(file) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.impl.js","sourceRoot":"","sources":["../../../../src/storages/files/files.impl.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"files.impl.js","sourceRoot":"","sources":["../../../../src/storages/files/files.impl.ts"],"names":[],"mappings":";;;AACA,qEAIqC;AACrC,0DAAsD;AACtD,2CAAsC;AACtC,mCAAuD;AAEvD,gEAA4D;AAG5D,qDAAgD;AAChD,iDAAiD;AAEjD,MAAa,SAAU,SAAQ,aAAK;IAClC,YACmB,SAAwB,EACxB,OAAgB;QAEjC,KAAK,EAAE,CAAA;QAHU,cAAS,GAAT,SAAS,CAAe;QACxB,YAAO,GAAP,OAAO,CAAS;QAQ3B,eAAU,GAAa,EAAE,CAAA;IALjC,CAAC;IAOD,KAAK,CAAC,MAAM,CAAC,KAAmB;QAC9B,MAAM,YAAY,GAAG,EAAE,CAAA;QACvB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,C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AAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnC,IAAI,MAAM,6BAAa,CAAC,cAAc,EAAE,EAAC,CAAC;gBACxC,OAAO,SAAS,CAAA;YAClB,CAAC;YAED,MAAM,6BAAa,CAAC,UAAU,CAAC,eAAe,IAAI,CAAC,IAAI,EAAE,EAAE,QAAQ,CAAC,CAAA;QACtE,CAAC;QAED,wCAAwC;QACxC,MAAM,MAAM,GAAG,CAAC,MAAM,QAAS,CAAC,IAAI,EAAwB,CAAA,CAAC,IAAe,CAAA;QAE5E,6BAA6B;QAC7B,MAAM,QAAQ,GAAG,IAAI,oBAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAE3C,MAAM,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QAE/B,6BAA6B;QAC7B,IAAI,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,IAAI,EAAE,QAAQ;SACf,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF;AAvQD,8BAuQC"}
|
@@ -12,6 +12,7 @@ import { QuizData } from "../../dto/quizResponse";
|
|
12
12
|
import { InviteResponse } from "../../dto/invitesResponse";
|
13
13
|
import { OrganizationApiKey } from "../../dto/apiKeyResponse";
|
14
14
|
import { UploadFile } from "../files/files";
|
15
|
+
import { QueryFlows } from "../queryFlows/queryFlows";
|
15
16
|
/**
|
16
17
|
* Organization event.
|
17
18
|
*/
|
@@ -50,6 +51,10 @@ export declare abstract class Organization extends EventDispatcher<OrganizationE
|
|
50
51
|
* Groups.
|
51
52
|
*/
|
52
53
|
abstract get accessGroups(): Groups;
|
54
|
+
/**
|
55
|
+
* Query flows
|
56
|
+
*/
|
57
|
+
abstract get queryFlows(): QueryFlows;
|
53
58
|
/**
|
54
59
|
* Get organization members
|
55
60
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../../src/storages/organizations/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,uBAAuB,EACxB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAA;
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../../src/storages/organizations/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,uBAAuB,EACxB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAA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