@dignite/vault-extract 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.
Files changed (39) hide show
  1. package/README.md +17 -0
  2. package/fesm2022/dignite-vault-extract-config.mjs +82 -0
  3. package/fesm2022/dignite-vault-extract-config.mjs.map +1 -0
  4. package/fesm2022/dignite-vault-extract-documents-cabinet-list.component-Ch0gpSCc.mjs +184 -0
  5. package/fesm2022/dignite-vault-extract-documents-cabinet-list.component-Ch0gpSCc.mjs.map +1 -0
  6. package/fesm2022/dignite-vault-extract-documents-content-type-DjCs-s4E.mjs +115 -0
  7. package/fesm2022/dignite-vault-extract-documents-content-type-DjCs-s4E.mjs.map +1 -0
  8. package/fesm2022/dignite-vault-extract-documents-document-detail.component-DHs42DWJ.mjs +1146 -0
  9. package/fesm2022/dignite-vault-extract-documents-document-detail.component-DHs42DWJ.mjs.map +1 -0
  10. package/fesm2022/dignite-vault-extract-documents-document-file-preview.component-CStXf8v9.mjs +72 -0
  11. package/fesm2022/dignite-vault-extract-documents-document-file-preview.component-CStXf8v9.mjs.map +1 -0
  12. package/fesm2022/dignite-vault-extract-documents-document-list.component-jThR5cct.mjs +642 -0
  13. package/fesm2022/dignite-vault-extract-documents-document-list.component-jThR5cct.mjs.map +1 -0
  14. package/fesm2022/dignite-vault-extract-documents-document-overview.component-BHUUUIVr.mjs +318 -0
  15. package/fesm2022/dignite-vault-extract-documents-document-overview.component-BHUUUIVr.mjs.map +1 -0
  16. package/fesm2022/dignite-vault-extract-documents-document-recycle-bin.component-dqeBrw22.mjs +178 -0
  17. package/fesm2022/dignite-vault-extract-documents-document-recycle-bin.component-dqeBrw22.mjs.map +1 -0
  18. package/fesm2022/dignite-vault-extract-documents-document-type-list.component-C8kXFJGb.mjs +464 -0
  19. package/fesm2022/dignite-vault-extract-documents-document-type-list.component-C8kXFJGb.mjs.map +1 -0
  20. package/fesm2022/dignite-vault-extract-documents-export-template-list.component-DlmZFFF1.mjs +361 -0
  21. package/fesm2022/dignite-vault-extract-documents-export-template-list.component-DlmZFFF1.mjs.map +1 -0
  22. package/fesm2022/dignite-vault-extract-documents-extensible-table-DkLXuoWo.mjs +53 -0
  23. package/fesm2022/dignite-vault-extract-documents-extensible-table-DkLXuoWo.mjs.map +1 -0
  24. package/fesm2022/dignite-vault-extract-documents-field-definition-list.component-ClmWkRun.mjs +530 -0
  25. package/fesm2022/dignite-vault-extract-documents-field-definition-list.component-ClmWkRun.mjs.map +1 -0
  26. package/fesm2022/dignite-vault-extract-documents-field-reextraction-modal.component-D7OOycv9.mjs +163 -0
  27. package/fesm2022/dignite-vault-extract-documents-field-reextraction-modal.component-D7OOycv9.mjs.map +1 -0
  28. package/fesm2022/dignite-vault-extract-documents-format-bytes-Cd3QwfQZ.mjs +19 -0
  29. package/fesm2022/dignite-vault-extract-documents-format-bytes-Cd3QwfQZ.mjs.map +1 -0
  30. package/fesm2022/dignite-vault-extract-documents-format-field-value-Xjb8lwzA.mjs +22 -0
  31. package/fesm2022/dignite-vault-extract-documents-format-field-value-Xjb8lwzA.mjs.map +1 -0
  32. package/fesm2022/dignite-vault-extract-documents.mjs +71 -0
  33. package/fesm2022/dignite-vault-extract-documents.mjs.map +1 -0
  34. package/fesm2022/dignite-vault-extract.mjs +522 -0
  35. package/fesm2022/dignite-vault-extract.mjs.map +1 -0
  36. package/package.json +38 -0
  37. package/types/dignite-vault-extract-config.d.ts +5 -0
  38. package/types/dignite-vault-extract-documents.d.ts +5 -0
  39. package/types/dignite-vault-extract.d.ts +521 -0
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@dignite/vault-extract",
3
+ "version": "0.2.0",
4
+ "description": "Angular UI library for Dignite Vault Extract — the IDP channel layer that converts documents into Markdown, metadata, and structured fields.",
5
+ "author": "Dignite",
6
+ "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dignite-projects/vault-extract"
10
+ },
11
+ "dependencies": {
12
+ "@abp/ng.core": "~10.2.0",
13
+ "@abp/ng.theme.shared": "~10.2.0",
14
+ "marked": "^18.0.0",
15
+ "tslib": "^2.1.0"
16
+ },
17
+ "module": "fesm2022/dignite-vault-extract.mjs",
18
+ "typings": "types/dignite-vault-extract.d.ts",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./types/dignite-vault-extract.d.ts",
25
+ "default": "./fesm2022/dignite-vault-extract.mjs"
26
+ },
27
+ "./config": {
28
+ "types": "./types/dignite-vault-extract-config.d.ts",
29
+ "default": "./fesm2022/dignite-vault-extract-config.mjs"
30
+ },
31
+ "./documents": {
32
+ "types": "./types/dignite-vault-extract-documents.d.ts",
33
+ "default": "./fesm2022/dignite-vault-extract-documents.mjs"
34
+ }
35
+ },
36
+ "sideEffects": false,
37
+ "type": "module"
38
+ }
@@ -0,0 +1,5 @@
1
+ import { EnvironmentProviders } from '@angular/core';
2
+
3
+ declare function provideExtract(): EnvironmentProviders;
4
+
5
+ export { provideExtract };
@@ -0,0 +1,5 @@
1
+ import { Routes } from '@angular/router';
2
+
3
+ declare const DOCUMENTS_ROUTES: Routes;
4
+
5
+ export { DOCUMENTS_ROUTES };
@@ -0,0 +1,521 @@
1
+ import * as rxjs from 'rxjs';
2
+ import { Observable } from 'rxjs';
3
+ import * as _abp_ng_core from '@abp/ng.core';
4
+ import { EntityDto, PagedAndSortedResultRequestDto, Rest, PagedResultDto, ExtensibleObject } from '@abp/ng.core';
5
+ import * as i0 from '@angular/core';
6
+
7
+ declare const EXTRACT_PERMISSIONS: {
8
+ readonly Documents: {
9
+ readonly Default: "VaultExtract.Documents";
10
+ readonly Upload: "VaultExtract.Documents.Upload";
11
+ readonly Delete: "VaultExtract.Documents.Delete";
12
+ readonly PermanentDelete: "VaultExtract.Documents.PermanentDelete";
13
+ readonly Restore: "VaultExtract.Documents.Restore";
14
+ readonly Export: "VaultExtract.Documents.Export";
15
+ readonly ConfirmClassification: "VaultExtract.Documents.ConfirmClassification";
16
+ readonly Pipelines: {
17
+ readonly Default: "VaultExtract.Documents.Pipelines";
18
+ readonly Retry: "VaultExtract.Documents.Pipelines.Retry";
19
+ };
20
+ readonly Reprocessing: {
21
+ readonly Default: "VaultExtract.Documents.Reprocessing";
22
+ readonly FieldExtraction: "VaultExtract.Documents.Reprocessing.FieldExtraction";
23
+ readonly Reclassification: "VaultExtract.Documents.Reprocessing.Reclassification";
24
+ };
25
+ readonly Templates: {
26
+ readonly Default: "VaultExtract.Documents.Templates";
27
+ readonly Create: "VaultExtract.Documents.Templates.Create";
28
+ readonly Update: "VaultExtract.Documents.Templates.Update";
29
+ readonly Delete: "VaultExtract.Documents.Templates.Delete";
30
+ };
31
+ };
32
+ readonly Cabinets: {
33
+ readonly Default: "VaultExtract.Cabinets";
34
+ readonly Create: "VaultExtract.Cabinets.Create";
35
+ readonly Update: "VaultExtract.Cabinets.Update";
36
+ readonly Delete: "VaultExtract.Cabinets.Delete";
37
+ };
38
+ readonly DocumentTypes: {
39
+ readonly Default: "VaultExtract.DocumentTypes";
40
+ readonly Create: "VaultExtract.DocumentTypes.Create";
41
+ readonly Update: "VaultExtract.DocumentTypes.Update";
42
+ readonly Delete: "VaultExtract.DocumentTypes.Delete";
43
+ };
44
+ readonly FieldDefinitions: {
45
+ readonly Default: "VaultExtract.FieldDefinitions";
46
+ readonly Create: "VaultExtract.FieldDefinitions.Create";
47
+ readonly Update: "VaultExtract.FieldDefinitions.Update";
48
+ readonly Delete: "VaultExtract.FieldDefinitions.Delete";
49
+ };
50
+ };
51
+
52
+ declare enum DocumentLifecycleStatus {
53
+ Uploaded = 10,
54
+ Processing = 20,
55
+ Ready = 30,
56
+ Failed = 99
57
+ }
58
+ declare const documentLifecycleStatusOptions: _abp_ng_core.ABP.Option<typeof DocumentLifecycleStatus>[];
59
+
60
+ declare enum DocumentReviewDisposition {
61
+ NotReviewed = 0,
62
+ Confirmed = 20,
63
+ Rejected = 30
64
+ }
65
+ declare const documentReviewDispositionOptions: _abp_ng_core.ABP.Option<typeof DocumentReviewDisposition>[];
66
+
67
+ declare enum DocumentReviewReasons {
68
+ None = 0,
69
+ UnresolvedClassification = 1,
70
+ MissingRequiredFields = 2,
71
+ SegmentationIncomplete = 4,
72
+ DuplicateSuspected = 8
73
+ }
74
+ declare const documentReviewReasonsOptions: _abp_ng_core.ABP.Option<typeof DocumentReviewReasons>[];
75
+
76
+ interface IRemoteStreamContent {
77
+ fileName?: string | null;
78
+ contentType?: string;
79
+ contentLength?: number | null;
80
+ }
81
+
82
+ interface ConfirmClassificationInput {
83
+ documentTypeId: string;
84
+ }
85
+ interface DocumentDto extends EntityDto<string> {
86
+ tenantId?: string | null;
87
+ fileOrigin?: FileOriginDto;
88
+ cabinetId?: string | null;
89
+ originDocumentId?: string | null;
90
+ isContainer?: boolean;
91
+ documentTypeCode?: string | null;
92
+ lifecycleStatus?: DocumentLifecycleStatus;
93
+ reviewDisposition?: DocumentReviewDisposition;
94
+ reviewReasons?: DocumentReviewReasons;
95
+ requiresReview?: boolean;
96
+ reviewReasonDetails?: ReviewReasonDetailDto[] | null;
97
+ rejectionReason?: string | null;
98
+ classificationConfidence?: number;
99
+ title?: string | null;
100
+ markdown?: string | null;
101
+ language?: string | null;
102
+ extractionIsComplete?: boolean;
103
+ extractionIncompleteReason?: string | null;
104
+ extractedFields?: Record<string, any> | null;
105
+ creationTime?: string;
106
+ }
107
+ interface DocumentFieldFilter {
108
+ name: string | null;
109
+ value?: string | null;
110
+ min?: string | null;
111
+ max?: string | null;
112
+ }
113
+ interface DocumentListItemDto extends EntityDto<string> {
114
+ tenantId?: string | null;
115
+ fileOrigin?: FileOriginDto;
116
+ cabinetId?: string | null;
117
+ originDocumentId?: string | null;
118
+ isContainer?: boolean;
119
+ documentTypeCode?: string | null;
120
+ lifecycleStatus?: DocumentLifecycleStatus;
121
+ reviewDisposition?: DocumentReviewDisposition;
122
+ reviewReasons?: DocumentReviewReasons;
123
+ requiresReview?: boolean;
124
+ classificationConfidence?: number;
125
+ title?: string | null;
126
+ creationTime?: string;
127
+ deletionTime?: string | null;
128
+ extractedFields?: Record<string, any> | null;
129
+ }
130
+ interface DocumentStatisticsDto {
131
+ totalCount?: number;
132
+ uploadedCount?: number;
133
+ processingCount?: number;
134
+ readyCount?: number;
135
+ failedCount?: number;
136
+ needsReviewCount?: number;
137
+ totalStorageBytes?: number;
138
+ }
139
+ interface DuplicateCandidateDto {
140
+ id?: string;
141
+ title?: string | null;
142
+ fileName?: string | null;
143
+ creationTime?: string;
144
+ }
145
+ interface FileOriginDto {
146
+ uploadedByUserName?: string;
147
+ originalFileName?: string | null;
148
+ contentType?: string;
149
+ fileSize?: number;
150
+ }
151
+ interface GetDocumentListInput extends PagedAndSortedResultRequestDto {
152
+ lifecycleStatus?: DocumentLifecycleStatus | null;
153
+ documentTypeCode?: string | null;
154
+ reviewDisposition?: DocumentReviewDisposition | null;
155
+ hasReviewReasons?: boolean | null;
156
+ isDeleted?: boolean | null;
157
+ cabinetId?: string | null;
158
+ originDocumentId?: string | null;
159
+ fieldFilters?: DocumentFieldFilter[] | null;
160
+ }
161
+ interface ReclassifyDocumentInput {
162
+ documentTypeId: string;
163
+ }
164
+ interface RejectReviewInput {
165
+ reason: string;
166
+ }
167
+ interface RetryPipelineInput {
168
+ pipelineCode: string;
169
+ }
170
+ interface ReviewReasonDetailDto {
171
+ reason?: DocumentReviewReasons;
172
+ isBlocking?: boolean;
173
+ missingFieldNames?: string[] | null;
174
+ duplicateCandidates?: DuplicateCandidateDto[] | null;
175
+ }
176
+ interface UpdateDocumentCabinetInput {
177
+ cabinetId?: string | null;
178
+ }
179
+ interface UpdateExtractedFieldsInput {
180
+ fields?: Record<string, any>;
181
+ }
182
+ interface UploadDocumentInput {
183
+ file: IRemoteStreamContent;
184
+ cabinetId?: string | null;
185
+ }
186
+
187
+ /**
188
+ * Hand-written, proxy-external upload wrapper.
189
+ *
190
+ * Lives OUTSIDE `proxy/` so it survives `nx g @abp/ng.schematics:proxy-add` regeneration
191
+ * (the generator overwrites everything under proxy/ — see proxy/README.md).
192
+ *
193
+ * Why not the generated `DocumentService.upload`? The schematic emits
194
+ * `body: input.file` typed as `IRemoteStreamContent` (a metadata-only shape:
195
+ * fileName/contentType/contentLength — no actual bytes) plus `cabinetId` as a query
196
+ * param. That does not match the backend's multipart contract (form fields `File` +
197
+ * `CabinetId`). File upload is the one endpoint the schematic can't express faithfully,
198
+ * so we keep the known-good FormData call here.
199
+ */
200
+ declare class DocumentUploadService {
201
+ private readonly rest;
202
+ private readonly apiName;
203
+ upload: (file: File, cabinetId?: string) => Observable<DocumentDto>;
204
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentUploadService, never>;
205
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentUploadService>;
206
+ }
207
+
208
+ declare class DocumentService {
209
+ private restService;
210
+ apiName: string;
211
+ allowDuplicate: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentDto>;
212
+ confirmClassification: (id: string, input: ConfirmClassificationInput, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentDto>;
213
+ delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
214
+ get: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentDto>;
215
+ getBlob: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<Blob>;
216
+ getList: (input: GetDocumentListInput, config?: Partial<Rest.Config>) => rxjs.Observable<PagedResultDto<DocumentListItemDto>>;
217
+ permanentDelete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
218
+ reclassify: (id: string, input: ReclassifyDocumentInput, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentDto>;
219
+ reextractFields: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
220
+ rejectReview: (id: string, input: RejectReviewInput, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentDto>;
221
+ rerecognize: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
222
+ restore: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
223
+ retryPipeline: (id: string, input: RetryPipelineInput, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
224
+ updateCabinet: (id: string, input: UpdateDocumentCabinetInput, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentDto>;
225
+ updateExtractedFields: (id: string, input: UpdateExtractedFieldsInput, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentDto>;
226
+ upload: (input: UploadDocumentInput, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentDto>;
227
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
228
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
229
+ }
230
+
231
+ declare class DocumentStatisticsService {
232
+ private restService;
233
+ apiName: string;
234
+ get: (config?: Partial<Rest.Config>) => rxjs.Observable<DocumentStatisticsDto>;
235
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStatisticsService, never>;
236
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentStatisticsService>;
237
+ }
238
+
239
+ interface CabinetDto extends EntityDto<string> {
240
+ tenantId?: string | null;
241
+ name?: string;
242
+ description?: string | null;
243
+ }
244
+ interface CreateCabinetDto {
245
+ name: string;
246
+ description?: string | null;
247
+ }
248
+ interface UpdateCabinetDto {
249
+ name: string;
250
+ description?: string | null;
251
+ }
252
+
253
+ declare class CabinetService {
254
+ private restService;
255
+ apiName: string;
256
+ create: (input: CreateCabinetDto, config?: Partial<Rest.Config>) => rxjs.Observable<CabinetDto>;
257
+ delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
258
+ getList: (config?: Partial<Rest.Config>) => rxjs.Observable<CabinetDto[]>;
259
+ update: (id: string, input: UpdateCabinetDto, config?: Partial<Rest.Config>) => rxjs.Observable<CabinetDto>;
260
+ static ɵfac: i0.ɵɵFactoryDeclaration<CabinetService, never>;
261
+ static ɵprov: i0.ɵɵInjectableDeclaration<CabinetService>;
262
+ }
263
+
264
+ interface CreateDocumentTypeDto {
265
+ typeCode: string;
266
+ displayName: string;
267
+ description?: string | null;
268
+ confidenceThreshold?: number;
269
+ priority?: number;
270
+ }
271
+ interface DocumentTypeDto extends EntityDto<string> {
272
+ tenantId?: string | null;
273
+ typeCode?: string;
274
+ displayName?: string;
275
+ description?: string | null;
276
+ confidenceThreshold?: number;
277
+ priority?: number;
278
+ }
279
+ interface UpdateDocumentTypeDto {
280
+ typeCode: string;
281
+ displayName: string;
282
+ description?: string | null;
283
+ confidenceThreshold?: number;
284
+ priority?: number;
285
+ }
286
+
287
+ declare class DocumentTypeService {
288
+ private restService;
289
+ apiName: string;
290
+ create: (input: CreateDocumentTypeDto, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentTypeDto>;
291
+ delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
292
+ getDeleted: (config?: Partial<Rest.Config>) => rxjs.Observable<DocumentTypeDto[]>;
293
+ getVisible: (config?: Partial<Rest.Config>) => rxjs.Observable<DocumentTypeDto[]>;
294
+ restore: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentTypeDto>;
295
+ update: (id: string, input: UpdateDocumentTypeDto, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentTypeDto>;
296
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTypeService, never>;
297
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentTypeService>;
298
+ }
299
+
300
+ declare enum ExportFormat {
301
+ Csv = 0,
302
+ Xlsx = 1
303
+ }
304
+ declare const exportFormatOptions: _abp_ng_core.ABP.Option<typeof ExportFormat>[];
305
+
306
+ interface CreateExportTemplateDto {
307
+ name: string;
308
+ format?: ExportFormat;
309
+ documentTypeId: string;
310
+ columns: ExportColumnInput[];
311
+ }
312
+ interface ExportColumnDto {
313
+ fieldDefinitionId?: string;
314
+ order?: number;
315
+ }
316
+ interface ExportColumnInput {
317
+ fieldDefinitionId: string;
318
+ order?: number;
319
+ }
320
+ interface ExportDocumentsInput {
321
+ templateId?: string;
322
+ documentIds?: string[] | null;
323
+ lifecycleStatus?: DocumentLifecycleStatus | null;
324
+ cabinetId?: string | null;
325
+ creationTimeMin?: string | null;
326
+ creationTimeMax?: string | null;
327
+ }
328
+ interface ExportTemplateDto extends EntityDto<string> {
329
+ tenantId?: string | null;
330
+ name?: string;
331
+ format?: ExportFormat;
332
+ documentTypeId?: string;
333
+ columns?: ExportColumnDto[];
334
+ }
335
+ interface UpdateExportTemplateDto {
336
+ name: string;
337
+ format?: ExportFormat;
338
+ documentTypeId: string;
339
+ columns: ExportColumnInput[];
340
+ }
341
+
342
+ declare class ExportTemplateService {
343
+ private restService;
344
+ apiName: string;
345
+ create: (input: CreateExportTemplateDto, config?: Partial<Rest.Config>) => rxjs.Observable<ExportTemplateDto>;
346
+ delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
347
+ export: (input: ExportDocumentsInput, config?: Partial<Rest.Config>) => rxjs.Observable<Blob>;
348
+ get: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<ExportTemplateDto>;
349
+ getList: (config?: Partial<Rest.Config>) => rxjs.Observable<ExportTemplateDto[]>;
350
+ update: (id: string, input: UpdateExportTemplateDto, config?: Partial<Rest.Config>) => rxjs.Observable<ExportTemplateDto>;
351
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExportTemplateService, never>;
352
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExportTemplateService>;
353
+ }
354
+
355
+ declare enum FieldDataType {
356
+ Text = 0,
357
+ Number = 1,
358
+ Boolean = 2,
359
+ Date = 3,
360
+ DateTime = 4,
361
+ LongText = 5
362
+ }
363
+ declare const fieldDataTypeOptions: _abp_ng_core.ABP.Option<typeof FieldDataType>[];
364
+
365
+ interface CreateFieldDefinitionDto {
366
+ documentTypeId: string;
367
+ name: string;
368
+ displayName: string;
369
+ prompt?: string | null;
370
+ dataType?: FieldDataType;
371
+ displayOrder?: number;
372
+ isRequired?: boolean;
373
+ allowMultiple?: boolean;
374
+ isUniqueKey?: boolean;
375
+ }
376
+ interface DraftFieldDefinitionInput {
377
+ prompt: string;
378
+ forNewField?: boolean;
379
+ }
380
+ interface FieldDefinitionDraftDto {
381
+ displayName?: string;
382
+ name?: string;
383
+ dataType?: FieldDataType;
384
+ isRequired?: boolean;
385
+ allowMultiple?: boolean;
386
+ }
387
+ interface FieldDefinitionDto extends EntityDto<string> {
388
+ tenantId?: string | null;
389
+ documentTypeId?: string;
390
+ name?: string;
391
+ displayName?: string;
392
+ prompt?: string | null;
393
+ dataType?: FieldDataType;
394
+ displayOrder?: number;
395
+ isRequired?: boolean;
396
+ allowMultiple?: boolean;
397
+ isUniqueKey?: boolean;
398
+ }
399
+ interface GetFieldDefinitionListInput {
400
+ documentTypeId?: string | null;
401
+ onlyDeleted?: boolean;
402
+ }
403
+ interface UpdateFieldDefinitionDto {
404
+ name: string;
405
+ displayName: string;
406
+ prompt?: string | null;
407
+ dataType?: FieldDataType;
408
+ displayOrder?: number;
409
+ isRequired?: boolean;
410
+ allowMultiple?: boolean;
411
+ isUniqueKey?: boolean;
412
+ }
413
+
414
+ declare class FieldDefinitionService {
415
+ private restService;
416
+ apiName: string;
417
+ create: (input: CreateFieldDefinitionDto, config?: Partial<Rest.Config>) => rxjs.Observable<FieldDefinitionDto>;
418
+ delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
419
+ getList: (input: GetFieldDefinitionListInput, config?: Partial<Rest.Config>) => rxjs.Observable<FieldDefinitionDto[]>;
420
+ restore: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<FieldDefinitionDto>;
421
+ update: (id: string, input: UpdateFieldDefinitionDto, config?: Partial<Rest.Config>) => rxjs.Observable<FieldDefinitionDto>;
422
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldDefinitionService, never>;
423
+ static ɵprov: i0.ɵɵInjectableDeclaration<FieldDefinitionService>;
424
+ }
425
+
426
+ declare class FieldDraftSuggestionService {
427
+ private restService;
428
+ apiName: string;
429
+ draft: (input: DraftFieldDefinitionInput, cancellationToken: any, config?: Partial<Rest.Config>) => rxjs.Observable<FieldDefinitionDraftDto>;
430
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldDraftSuggestionService, never>;
431
+ static ɵprov: i0.ɵɵInjectableDeclaration<FieldDraftSuggestionService>;
432
+ }
433
+
434
+ declare enum PipelineRunStatus {
435
+ Pending = 10,
436
+ Running = 20,
437
+ Succeeded = 30,
438
+ Failed = 90,
439
+ Skipped = 95
440
+ }
441
+ declare const pipelineRunStatusOptions: _abp_ng_core.ABP.Option<typeof PipelineRunStatus>[];
442
+
443
+ interface DocumentPipelineRunDto extends ExtensibleObject {
444
+ id?: string;
445
+ documentId?: string;
446
+ pipelineCode?: string;
447
+ status?: PipelineRunStatus;
448
+ attemptNumber?: number;
449
+ startedAt?: string;
450
+ completedAt?: string | null;
451
+ statusMessage?: string | null;
452
+ candidates?: PipelineRunCandidate[] | null;
453
+ }
454
+ interface PipelineRunCandidate {
455
+ typeCode?: string;
456
+ confidenceScore?: number;
457
+ }
458
+
459
+ declare class DocumentPipelineRunService {
460
+ private restService;
461
+ apiName: string;
462
+ getList: (documentId: string, config?: Partial<Rest.Config>) => rxjs.Observable<DocumentPipelineRunDto[]>;
463
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPipelineRunService, never>;
464
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentPipelineRunService>;
465
+ }
466
+
467
+ declare enum ReclassificationScope {
468
+ OnlyCurrentType = 0,
469
+ AllDocuments = 10,
470
+ PendingReviewQueue = 20
471
+ }
472
+ declare const reclassificationScopeOptions: _abp_ng_core.ABP.Option<typeof ReclassificationScope>[];
473
+
474
+ interface FieldReextractionPreviewDto {
475
+ documentTypeId?: string;
476
+ documentCount?: number;
477
+ fieldNames?: string[];
478
+ }
479
+ interface ReclassificationPreviewDto {
480
+ documentCount?: number;
481
+ }
482
+ interface ReclassificationScopeInput {
483
+ scope: ReclassificationScope;
484
+ documentTypeId?: string | null;
485
+ includeManuallyConfirmed?: boolean;
486
+ }
487
+ interface ReprocessingStartResultDto {
488
+ estimatedDocumentCount?: number;
489
+ }
490
+ interface StartFieldReextractionInput {
491
+ documentTypeId: string;
492
+ }
493
+
494
+ declare class DocumentReprocessingService {
495
+ private restService;
496
+ apiName: string;
497
+ previewFieldExtraction: (documentTypeId: string, config?: Partial<Rest.Config>) => rxjs.Observable<FieldReextractionPreviewDto>;
498
+ previewReclassification: (input: ReclassificationScopeInput, config?: Partial<Rest.Config>) => rxjs.Observable<ReclassificationPreviewDto>;
499
+ startFieldExtraction: (input: StartFieldReextractionInput, config?: Partial<Rest.Config>) => rxjs.Observable<ReprocessingStartResultDto>;
500
+ startReclassification: (input: ReclassificationScopeInput, config?: Partial<Rest.Config>) => rxjs.Observable<ReprocessingStartResultDto>;
501
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentReprocessingService, never>;
502
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentReprocessingService>;
503
+ }
504
+
505
+ interface SlugSuggestionDto {
506
+ slug?: string;
507
+ }
508
+ interface SuggestSlugInput {
509
+ label: string;
510
+ }
511
+
512
+ declare class SlugSuggestionService {
513
+ private restService;
514
+ apiName: string;
515
+ suggest: (input: SuggestSlugInput, cancellationToken: any, config?: Partial<Rest.Config>) => rxjs.Observable<SlugSuggestionDto>;
516
+ static ɵfac: i0.ɵɵFactoryDeclaration<SlugSuggestionService, never>;
517
+ static ɵprov: i0.ɵɵInjectableDeclaration<SlugSuggestionService>;
518
+ }
519
+
520
+ export { CabinetService, DocumentLifecycleStatus, DocumentPipelineRunService, DocumentReprocessingService, DocumentReviewDisposition, DocumentReviewReasons, DocumentService, DocumentStatisticsService, DocumentTypeService, DocumentUploadService, EXTRACT_PERMISSIONS, ExportFormat, ExportTemplateService, FieldDataType, FieldDefinitionService, FieldDraftSuggestionService, PipelineRunStatus, ReclassificationScope, SlugSuggestionService, documentLifecycleStatusOptions, documentReviewDispositionOptions, documentReviewReasonsOptions, exportFormatOptions, fieldDataTypeOptions, pipelineRunStatusOptions, reclassificationScopeOptions };
521
+ export type { CabinetDto, ConfirmClassificationInput, CreateCabinetDto, CreateDocumentTypeDto, CreateExportTemplateDto, CreateFieldDefinitionDto, DocumentDto, DocumentFieldFilter, DocumentListItemDto, DocumentPipelineRunDto, DocumentStatisticsDto, DocumentTypeDto, DraftFieldDefinitionInput, DuplicateCandidateDto, ExportColumnDto, ExportColumnInput, ExportDocumentsInput, ExportTemplateDto, FieldDefinitionDraftDto, FieldDefinitionDto, FieldReextractionPreviewDto, FileOriginDto, GetDocumentListInput, GetFieldDefinitionListInput, IRemoteStreamContent, PipelineRunCandidate, ReclassificationPreviewDto, ReclassificationScopeInput, ReclassifyDocumentInput, RejectReviewInput, ReprocessingStartResultDto, RetryPipelineInput, ReviewReasonDetailDto, SlugSuggestionDto, StartFieldReextractionInput, SuggestSlugInput, UpdateCabinetDto, UpdateDocumentCabinetInput, UpdateDocumentTypeDto, UpdateExportTemplateDto, UpdateExtractedFieldsInput, UpdateFieldDefinitionDto, UploadDocumentInput };