@trii/types 2.10.625 → 2.10.627
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/Docs/Document.d.ts +5 -7
- package/dist/Docs/Document.js +4 -4
- package/dist/Docs/Store.d.ts +7 -1
- package/dist/Docs/Store.js +8 -1
- package/package.json +1 -1
package/dist/Docs/Document.d.ts
CHANGED
|
@@ -16,11 +16,9 @@ export interface Document {
|
|
|
16
16
|
chars: number | 0;
|
|
17
17
|
embeddingStatus?: EmbeddingStatus | EmbeddingStatus.PENDING;
|
|
18
18
|
indexingError?: string | null;
|
|
19
|
-
portalPublished
|
|
19
|
+
portalPublished: boolean;
|
|
20
20
|
portalSlug?: string | null;
|
|
21
21
|
portalLastPublishedAt?: Date | null;
|
|
22
|
-
version?: number | 1;
|
|
23
|
-
previousVersionId?: string | null;
|
|
24
22
|
source?: DocumentSource | DocumentSource.UPLOAD;
|
|
25
23
|
sourceId?: string | null;
|
|
26
24
|
createdAt: Date;
|
|
@@ -37,10 +35,10 @@ export declare enum EmbeddingStatus {
|
|
|
37
35
|
ERROR = 3
|
|
38
36
|
}
|
|
39
37
|
export declare enum DocumentSource {
|
|
40
|
-
UPLOAD =
|
|
41
|
-
WEBHOOK =
|
|
42
|
-
FILESYSTEM =
|
|
43
|
-
API =
|
|
38
|
+
UPLOAD = 1,
|
|
39
|
+
WEBHOOK = 2,
|
|
40
|
+
FILESYSTEM = 3,
|
|
41
|
+
API = 4
|
|
44
42
|
}
|
|
45
43
|
export interface IndexingConfig {
|
|
46
44
|
type: DocumentSplitterType | DocumentSplitterType.characterTextSplitter;
|
package/dist/Docs/Document.js
CHANGED
|
@@ -10,10 +10,10 @@ var EmbeddingStatus;
|
|
|
10
10
|
})(EmbeddingStatus || (exports.EmbeddingStatus = EmbeddingStatus = {}));
|
|
11
11
|
var DocumentSource;
|
|
12
12
|
(function (DocumentSource) {
|
|
13
|
-
DocumentSource["UPLOAD"] = "
|
|
14
|
-
DocumentSource["WEBHOOK"] = "
|
|
15
|
-
DocumentSource["FILESYSTEM"] = "
|
|
16
|
-
DocumentSource["API"] = "
|
|
13
|
+
DocumentSource[DocumentSource["UPLOAD"] = 1] = "UPLOAD";
|
|
14
|
+
DocumentSource[DocumentSource["WEBHOOK"] = 2] = "WEBHOOK";
|
|
15
|
+
DocumentSource[DocumentSource["FILESYSTEM"] = 3] = "FILESYSTEM";
|
|
16
|
+
DocumentSource[DocumentSource["API"] = 4] = "API";
|
|
17
17
|
})(DocumentSource || (exports.DocumentSource = DocumentSource = {}));
|
|
18
18
|
var DocumentSplitterType;
|
|
19
19
|
(function (DocumentSplitterType) {
|
package/dist/Docs/Store.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Store {
|
|
|
9
9
|
knowledgePortalEnabled: boolean;
|
|
10
10
|
knowledgePortalIsPublic: boolean;
|
|
11
11
|
knowledgePortalUrl?: string | null;
|
|
12
|
-
knowledgePortalStatus
|
|
12
|
+
knowledgePortalStatus: PortalStatus | PortalStatus.INACTIVE;
|
|
13
13
|
knowledgePortalLastPublishedAt?: Date | null;
|
|
14
14
|
createdAt: Date;
|
|
15
15
|
createdBy: string;
|
|
@@ -18,6 +18,12 @@ export interface Store {
|
|
|
18
18
|
deletedAt?: Date | null;
|
|
19
19
|
deletedBy?: string | null;
|
|
20
20
|
}
|
|
21
|
+
export declare enum PortalStatus {
|
|
22
|
+
INACTIVE = 0,
|
|
23
|
+
PENDING = 1,
|
|
24
|
+
READY = 2,
|
|
25
|
+
ERROR = 3
|
|
26
|
+
}
|
|
21
27
|
export declare enum StoreStatus {
|
|
22
28
|
EMPTY = 0,
|
|
23
29
|
ACTIVE = 1,
|
package/dist/Docs/Store.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StoreStatus = void 0;
|
|
3
|
+
exports.StoreStatus = exports.PortalStatus = void 0;
|
|
4
|
+
var PortalStatus;
|
|
5
|
+
(function (PortalStatus) {
|
|
6
|
+
PortalStatus[PortalStatus["INACTIVE"] = 0] = "INACTIVE";
|
|
7
|
+
PortalStatus[PortalStatus["PENDING"] = 1] = "PENDING";
|
|
8
|
+
PortalStatus[PortalStatus["READY"] = 2] = "READY";
|
|
9
|
+
PortalStatus[PortalStatus["ERROR"] = 3] = "ERROR";
|
|
10
|
+
})(PortalStatus || (exports.PortalStatus = PortalStatus = {}));
|
|
4
11
|
var StoreStatus;
|
|
5
12
|
(function (StoreStatus) {
|
|
6
13
|
StoreStatus[StoreStatus["EMPTY"] = 0] = "EMPTY";
|