@trii/types 2.10.626 → 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.
@@ -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?: boolean;
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 = "upload",
41
- WEBHOOK = "webhook",
42
- FILESYSTEM = "filesystem",
43
- API = "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;
@@ -10,10 +10,10 @@ var EmbeddingStatus;
10
10
  })(EmbeddingStatus || (exports.EmbeddingStatus = EmbeddingStatus = {}));
11
11
  var DocumentSource;
12
12
  (function (DocumentSource) {
13
- DocumentSource["UPLOAD"] = "upload";
14
- DocumentSource["WEBHOOK"] = "webhook";
15
- DocumentSource["FILESYSTEM"] = "filesystem";
16
- DocumentSource["API"] = "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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.626",
3
+ "version": "2.10.627",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",