Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 172 additions & 2 deletions angular/packages/extract/src/lib/proxy/generate-proxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,23 @@
"typeSimple": "Dignite.Extract.Documents.DocumentDto"
}
},
{
"name": "AllowDuplicateAsync",
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"returnValue": {
"type": "Dignite.Extract.Documents.DocumentDto",
"typeSimple": "Dignite.Extract.Documents.DocumentDto"
}
},
{
"name": "RetryPipelineAsync",
"parametersOnMethod": [
Expand Down Expand Up @@ -2015,6 +2032,44 @@
"authorizeDatas": [],
"implementFrom": "Dignite.Extract.Documents.IDocumentAppService"
},
"AllowDuplicateAsyncById": {
"uniqueName": "AllowDuplicateAsyncById",
"name": "AllowDuplicateAsync",
"httpMethod": "POST",
"url": "api/extract/documents/{id}/review/allow-duplicate",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "Dignite.Extract.Documents.DocumentDto",
"typeSimple": "Dignite.Extract.Documents.DocumentDto"
},
"allowAnonymous": null,
"authorizeDatas": [],
"implementFrom": "Dignite.Extract.Documents.IDocumentAppService"
},
"RetryPipelineAsyncByIdAndInput": {
"uniqueName": "RetryPipelineAsyncByIdAndInput",
"name": "RetryPipelineAsync",
Expand Down Expand Up @@ -7465,13 +7520,15 @@
"None",
"UnresolvedClassification",
"MissingRequiredFields",
"SegmentationIncomplete"
"SegmentationIncomplete",
"DuplicateSuspected"
],
"enumValues": [
0,
1,
2,
4
4,
8
],
"genericArguments": null,
"properties": null
Expand Down Expand Up @@ -7811,6 +7868,67 @@
}
]
},
"Dignite.Extract.Documents.DuplicateCandidateDto": {
"baseType": null,
"isEnum": false,
"enumNames": null,
"enumValues": null,
"genericArguments": null,
"properties": [
{
"name": "Id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isRequired": false,
"minLength": null,
"maxLength": null,
"minimum": null,
"maximum": null,
"regex": null,
"isNullable": false
},
{
"name": "Title",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false,
"minLength": null,
"maxLength": null,
"minimum": null,
"maximum": null,
"regex": null,
"isNullable": true
},
{
"name": "FileName",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false,
"minLength": null,
"maxLength": null,
"minimum": null,
"maximum": null,
"regex": null,
"isNullable": true
},
{
"name": "CreationTime",
"jsonName": null,
"type": "System.DateTime",
"typeSimple": "string",
"isRequired": false,
"minLength": null,
"maxLength": null,
"minimum": null,
"maximum": null,
"regex": null,
"isNullable": false
}
]
},
"Dignite.Extract.Documents.Exports.CreateExportTemplateDto": {
"baseType": null,
"isEnum": false,
Expand Down Expand Up @@ -8288,6 +8406,19 @@
"maximum": null,
"regex": null,
"isNullable": false
},
{
"name": "IsUniqueKey",
"jsonName": null,
"type": "System.Boolean",
"typeSimple": "boolean",
"isRequired": false,
"minLength": null,
"maxLength": null,
"minimum": null,
"maximum": null,
"regex": null,
"isNullable": false
}
]
},
Expand Down Expand Up @@ -8545,6 +8676,19 @@
"maximum": null,
"regex": null,
"isNullable": false
},
{
"name": "IsUniqueKey",
"jsonName": null,
"type": "System.Boolean",
"typeSimple": "boolean",
"isRequired": false,
"minLength": null,
"maxLength": null,
"minimum": null,
"maximum": null,
"regex": null,
"isNullable": false
}
]
},
Expand Down Expand Up @@ -8680,6 +8824,19 @@
"maximum": null,
"regex": null,
"isNullable": false
},
{
"name": "IsUniqueKey",
"jsonName": null,
"type": "System.Boolean",
"typeSimple": "boolean",
"isRequired": false,
"minLength": null,
"maxLength": null,
"minimum": null,
"maximum": null,
"regex": null,
"isNullable": false
}
]
},
Expand Down Expand Up @@ -9327,6 +9484,19 @@
"maximum": null,
"regex": null,
"isNullable": true
},
{
"name": "DuplicateCandidates",
"jsonName": null,
"type": "[Dignite.Extract.Documents.DuplicateCandidateDto]",
"typeSimple": "[Dignite.Extract.Documents.DuplicateCandidateDto]",
"isRequired": false,
"minLength": null,
"maxLength": null,
"minimum": null,
"maximum": null,
"regex": null,
"isNullable": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import type { ConfirmClassificationInput, DocumentDto, DocumentListItemDto, GetD
export class DocumentService {
private restService = inject(RestService);
apiName = 'Default';


allowDuplicate = (id: string, config?: Partial<Rest.Config>) =>
this.restService.request<any, DocumentDto>({
method: 'POST',
url: `/api/extract/documents/${id}/review/allow-duplicate`,
},
{ apiName: this.apiName,...config });


confirmClassification = (id: string, input: ConfirmClassificationInput, config?: Partial<Rest.Config>) =>
this.restService.request<any, DocumentDto>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
"Document:Pipelines": "Pipeline Runs",
"Document:Pipeline:text-extraction": "Text Extraction",
"Document:Pipeline:classification": "Classification",
"Document:Pipeline:field-extraction": "Field Extraction",
"Document:Pipeline:Attempt": "Attempt",
"Document:Pipeline:Status:Pending": "Pending",
"Document:Pipeline:Status:Running": "Running",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"Document:Pipelines": "流水线运行",
"Document:Pipeline:text-extraction": "文本提取",
"Document:Pipeline:classification": "分类",
"Document:Pipeline:field-extraction": "字段抽取",
"Document:Pipeline:Attempt": "尝试",
"Document:Pipeline:Status:Pending": "待执行",
"Document:Pipeline:Status:Running": "执行中",
Expand Down Expand Up @@ -117,7 +118,7 @@
"Document:Rerecognize:Confirm": "让 AI 重新分类该文档?将在现有文本上重跑自动分类并重新抽取字段,套用最新的类型与字段说明。这会覆盖当前的文档类型(含人工确认的结果)以及人工修改过的字段值;若 AI 不再有把握,文档会退回待人工审核队列、并清空已抽取字段直到重新分类完成。不会重新扫描原始文件。",
"Document:RerecognizeQueued": "已开始重新分类,状态稍后刷新。",
"Document:RerecognizeFailed": "无法启动重新分类。",
"Document:ReextractFields": "仅重抽字段",
"Document:ReextractFields": "重抽字段",
"Document:ReextractFieldsInProgress": "重抽字段中…",
"Document:ReextractFields:Confirm": "在现有分类上仅重新抽取该文档的类型绑定字段?只重跑字段抽取(不重排分类、不重新 OCR),会覆盖当前字段值(含人工校正过的值)。文档类型不变。",
"Document:ReextractFieldsQueued": "已开始重抽字段,状态稍后刷新。",
Expand Down
Loading