Skip to main content

LegalPageApiClient

Contains all the endpoints needed to manage legal pages.

Constructors

Constructor

new LegalPageApiClient(): LegalPageApiClient

Returns

LegalPageApiClient

Methods

ackLegalPage()

static ackLegalPage(id, accept?, config?): Promise<SCLegalPageAckType>

Parameters

ParameterTypeDescription
idstring | number
accept?string | numberAccept or not accept a legal page, valid values are: ('true', 'on', '1').
config?AxiosRequestConfig

Returns

Promise<SCLegalPageAckType>


getAllLastRevisionsOfLegalPages()

static getAllLastRevisionsOfLegalPages(config?): Promise<SCLegalPageType[]>

This endpoint retrieves all last revisions of legal pages.

Parameters

ParameterType
config?AxiosRequestConfig

Returns

Promise<SCLegalPageType[]>


getAllRevisionsOfLegalPage()

static getAllRevisionsOfLegalPage(policy, config?): Promise<SCPaginatedResponse<SCLegalPageType>>

This endpoint retrieves all revisions of a legal page.

Parameters

ParameterTypeDescription
policystring
config?AxiosRequestConfig

Returns

Promise<SCPaginatedResponse<SCLegalPageType>>


getLastRevisionOfLegalPage()

static getLastRevisionOfLegalPage(policy, config?): Promise<SCLegalPageType>

This endpoint retrieves last revision of a legal page.

Parameters

ParameterTypeDescription
policystring
config?AxiosRequestConfig

Returns

Promise<SCLegalPageType>


getLegalPages()

static getLegalPages(params?, config?): Promise<SCPaginatedResponse<SCLegalPageType>>

This endpoint retrieves all legal pages.

Parameters

ParameterTypeDescription
params?LegalPageFilterParams
config?AxiosRequestConfig

Returns

Promise<SCPaginatedResponse<SCLegalPageType>>


getSpecificLegalPage()

static getSpecificLegalPage(id, config?): Promise<SCLegalPageType>

This endpoint retrieves a specific legal page.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig

Returns

Promise<SCLegalPageType>


getSpecificUserAck()

static getSpecificUserAck(id, config?): Promise<SCLegalPageAckType>

This endpoint retrieves a specific user ack.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig

Returns

Promise<SCLegalPageAckType>


searchLegalPages()

static searchLegalPages(params?, config?): Promise<SCPaginatedResponse<SCLegalPageType>>

This endpoint performs search of a Legal Page.

Parameters

ParameterTypeDescription
params?LegalPageFilterParams
config?AxiosRequestConfig

Returns

Promise<SCPaginatedResponse<SCLegalPageType>>


userAckList()

static userAckList(config?): Promise<SCLegalPageAckType[]>

This endpoint retrieves all user acks.

Parameters

ParameterType
config?AxiosRequestConfig

Returns

Promise<SCLegalPageAckType[]>