Skip to content

Latest commit

 

History

History
236 lines (130 loc) · 5.17 KB

CreateDocumentOptionalParams.md

File metadata and controls

236 lines (130 loc) · 5.17 KB

@affinda/affinda / Exports / CreateDocumentOptionalParams

Interface: CreateDocumentOptionalParams

Optional parameters.

Hierarchy

  • OperationOptions

    CreateDocumentOptionalParams

Table of contents

Properties

Properties

abortSignal

Optional abortSignal: AbortSignalLike

The signal which can be used to abort requests.

Inherited from

coreClient.OperationOptions.abortSignal


collection

Optional collection: string

Uniquely identify a collection.


compact

Optional compact: boolean

If true, the returned parse result (assuming wait is also true) will be a compact version of the full result.


customIdentifier

Optional customIdentifier: string

Specify a custom identifier for the document if you need one, not required to be unique.


data

Optional data: DocumentCreateData

Create resume or job description directly from data.


deleteAfterParse

Optional deleteAfterParse: boolean

If true, no data will be stored after parsing. Only compatible with requests where wait: True.


enableValidationTool

Optional enableValidationTool: boolean

If true, the document will be viewable in the Affinda Validation Tool. Set to False to optimize parsing speed.


expiryTime

Optional expiryTime: string

The date/time in ISO-8601 format when the document will be automatically deleted. Defaults to no expiry.


file

Optional file: RequestBodyType

File as binary data blob. Supported formats: PDF, DOC, DOCX, TXT, RTF, HTML, PNG, JPG, TIFF, ODT, XLS, XLSX, ZIP


fileName

Optional fileName: string

Optional filename of the file


identifier

Optional identifier: string

Deprecated in favor of customIdentifier.


language

Optional language: string

Language code in ISO 639-1 format. Must specify zh-cn or zh-tw for Chinese.


lowPriority

Optional lowPriority: boolean

Explicitly mark this document as low priority.


onResponse

Optional onResponse: RawResponseCallback

A function to be called each time a response is received from the server while performing the requested operation. May be called multiple times.

Inherited from

coreClient.OperationOptions.onResponse


regionBias

Optional regionBias: string

A JSON representation of the RegionBias object.


rejectDuplicates

Optional rejectDuplicates: boolean

If "true", parsing will fail when the uploaded document is duplicate of an existing document, no credits will be consumed. If "false", will parse the document normally whether its a duplicate or not. If not provided, will fallback to the workspace settings.


requestOptions

Optional requestOptions: OperationRequestOptions

Options used when creating and sending HTTP requests for this operation.

Inherited from

coreClient.OperationOptions.requestOptions


serializerOptions

Optional serializerOptions: SerializerOptions

Options to override serialization/de-serialization behavior.

Inherited from

coreClient.OperationOptions.serializerOptions


tracingOptions

Optional tracingOptions: OperationTracingOptions

Options used when tracing is enabled.

Inherited from

coreClient.OperationOptions.tracingOptions


url

Optional url: string

URL to download the document.


wait

Optional wait: string

If "true" (default), will return a response only after processing has completed. If "false", will return an empty data object which can be polled at the GET endpoint until processing is complete.


workspace

Optional workspace: string

Uniquely identify a workspace.