Skip to content

Latest commit

 

History

History
164 lines (96 loc) · 3.67 KB

_widget_contract_myts_.mytshostservice.md

File metadata and controls

164 lines (96 loc) · 3.67 KB

@talentsoft-opensource/integration-widget-contract > "widget-contract-myts" > MyTSHostService

Interface: MyTSHostService

This interface represents the data and services offered by the Talentsoft host

Hierarchy

MyTSHostService

Index

Properties


Properties

getUrlForCurrentContext

● getUrlForCurrentContext: function

Defined in widget-contract-myts.ts:45

warning This method is deprecated and should not be used.

Type declaration

▸(url: string): Promise<string>

Parameters:

Name Type
url string

Returns: Promise<string>


loadData

● loadData: function

Defined in widget-contract-myts.ts:29

warning This method is deprecated and should not be used.

Type declaration

▸(): Promise<any[]>

Returns: Promise<any[]>


openUrlInCurrentTab

● openUrlInCurrentTab: function

Defined in widget-contract-myts.ts:41

This method allows to create an autoconnect link and open it in the current tab.

Type declaration

▸(url: string): void

Parameters:

Name Type
url string

Returns: void


openUrlInNewTab

● openUrlInNewTab: function

Defined in widget-contract-myts.ts:37

This method allows to create an autoconnect link and open it in a new tab.

Type declaration

▸(url: string): void

Parameters:

Name Type
url string

Returns: void


requestExternalResource

● requestExternalResource: function

Defined in widget-contract-myts.ts:49

This methods allows to send an authentified request to an external resource.

Type declaration

▸(options: RequestOptions): Promise<HttpResponse>

Parameters:

Name Type
options RequestOptions

Returns: Promise<HttpResponse>


setDataIsLoaded

● setDataIsLoaded: function

Defined in widget-contract-myts.ts:33

This method must be called when the widget is ready to be displayed to the user.

Type declaration

▸(): void

Returns: void


getPreloadedResources

● getPreloadedResources: function

Defined in widget-contract-myts.ts:79

This method allows to retrieve customized resources by the client if he has done so, or resources given by the partner if not. The client can customize labels. His customizations will only be available to him. If the language used is not available among the given resources, the default resources are taken from "default.json".

Type declaration

▸(): void

Returns: Promise<Record<string, string>>