Zum Hauptinhalt springen

Client

Constructors​

Constructor​

new Client(): Client

Returns​

Client

Properties​

token​

token: string

Methods​

authorize()​

authorize(token): this

Authorize Client by given token provided by One Unity.

Parameters​

token​

string

Given token provided by One Unity

Returns​

this

Returns the client instance for chaining.


readout()​

readout(): ReadoutService

Analyse given files.

With this approach, a response is received immediately with a task ID that represents the analysis process at Insiders. With this ID the extracted information has to be fetched later. The runtime of this request is very short, but the analysis depends on the number of documents.

Returns​

ReadoutService

Returns the client instance for chaining.


taskService()​

taskService<T>(): TaskService<T>

Capsules the rest api of data rai

Type Parameters​

T​

T

Returns​

TaskService<T>

Returns the client instance for chaining.


masterData()​

masterData<TMapping>(repository): MasterDataService<TMapping>

Use the master data service by given repository.

Type Parameters​

TMapping​

TMapping extends MasterDataServiceMapping

Parameters​

repository​

MasterDataServiceRepository

The repository where the data should be modified/stored.

Returns​

MasterDataService<TMapping>

a new MasterDataService instance


provideRecipients()​

provideRecipients(rows): MasterDataService<RecipientMasterDataServiceMapping>

Use the recipient master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<RecipientMasterDataServiceMapping>

a new MasterDataService instance


provideVendors()​

provideVendors(rows): MasterDataService<VendorMasterDataServiceMapping>

Use the vendor master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<VendorMasterDataServiceMapping>

a new MasterDataService instance


provideOrderItems()​

provideOrderItems(rows): MasterDataService<OrderItemMasterDataServiceMapping>

Use the order items master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<OrderItemMasterDataServiceMapping>

a new MasterDataService instance


provideArticleVariants()​

provideArticleVariants(rows): MasterDataService<ArticleVariantMasterDataServiceMapping>

Use the article variants master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<ArticleVariantMasterDataServiceMapping>

a new MasterDataService instance


provideArticles()​

provideArticles(rows): MasterDataService<ArticleMasterDataServiceMapping>

Use the articles master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<ArticleMasterDataServiceMapping>

a new MasterDataService instance


provideCompanies()​

provideCompanies(rows): MasterDataService<CompanyMasterDataServiceMapping>

Use the company master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<CompanyMasterDataServiceMapping>

a new MasterDataService instance


provideCustomerSpecificArticles()​

provideCustomerSpecificArticles(rows): MasterDataService<CustomerSpecificArticleMasterDataServiceMapping>

Use the customer specific article master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<CustomerSpecificArticleMasterDataServiceMapping>

a new MasterDataService instance


provideDimensions()​

provideDimensions(rows): MasterDataService<DimensionMasterDataServiceMapping>

Use the dimension master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<DimensionMasterDataServiceMapping>

a new MasterDataService instance


provideGoodsRecipients()​

provideGoodsRecipients(rows): MasterDataService<GoodsRecipientMasterDataServiceMapping>

Use the goods recipients master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<GoodsRecipientMasterDataServiceMapping>

a new MasterDataService instance


provideInvoiceRecipients()​

provideInvoiceRecipients(rows): MasterDataService<InvoiceRecipientMasterDataServiceMapping>

Use the invoice recipients master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<InvoiceRecipientMasterDataServiceMapping>

a new MasterDataService instance


provideOrderers()​

provideOrderers(rows): MasterDataService<OrdererMasterDataServiceMapping>

Use the orderers master data service

Parameters​

rows​

MasterDataServiceData

Returns​

MasterDataService<OrdererMasterDataServiceMapping>

a new MasterDataService instance