Skip to main content

Class: PersonConsentsApi

Types.PersonConsentsApi

Hierarchy​

Constructors​

constructor​

• new PersonConsentsApi(configuration?)

Parameters​

NameTypeDefault value
configurationConfigurationDefaultConfig

Inherited from​

BaseAPI.constructor

Methods​

deleteConsentGdpr​

▸ deleteConsentGdpr(requestParameters?, initOverrides?): Promise<void>

Removes the specified GDPR consent, or all consents. Remove GDPR consent of current user

Parameters​

NameType
requestParametersDeleteConsentGdprRequest
initOverrides?RequestInit | InitOverrideFunction

Returns​

Promise<void>


deleteConsentGdprRaw​

▸ deleteConsentGdprRaw(requestParameters, initOverrides?): Promise<ApiResponse<void>>

Removes the specified GDPR consent, or all consents. Remove GDPR consent of current user

Parameters​

NameType
requestParametersDeleteConsentGdprRequest
initOverrides?RequestInit | InitOverrideFunction

Returns​

Promise<ApiResponse<void>>


getConsentGdpr​

▸ getConsentGdpr(requestParameters?, initOverrides?): Promise<GetConsentGdpr200Response>

Returns the GDPR consent levels and timestamp for current person, if it exists. Get GDPR consent of current user

Parameters​

NameType
requestParametersGetConsentGdprRequest
initOverrides?RequestInit | InitOverrideFunction

Returns​

Promise<GetConsentGdpr200Response>


getConsentGdprRaw​

▸ getConsentGdprRaw(requestParameters, initOverrides?): Promise<ApiResponse<GetConsentGdpr200Response>>

Returns the GDPR consent levels and timestamp for current person, if it exists. Get GDPR consent of current user

Parameters​

NameType
requestParametersGetConsentGdprRequest
initOverrides?RequestInit | InitOverrideFunction

Returns​

Promise<ApiResponse<GetConsentGdpr200Response>>


postConsentGdpr​

▸ postConsentGdpr(requestParameters, initOverrides?): Promise<PutConsentGdpr200Response>

Stores the GDPR consent levels and timestamp. Returns the consent levels and the timestamp at which the consent information was received. This will overwrite existing GDPR consent levels for the specified person. The consent levels indicate the types of data classes the person has allowed during their use of your services, in accordance with GDPR. Store GDPR consent of current user

Parameters​

NameType
requestParametersPostConsentGdprRequest
initOverrides?RequestInit | InitOverrideFunction

Returns​

Promise<PutConsentGdpr200Response>


postConsentGdprRaw​

▸ postConsentGdprRaw(requestParameters, initOverrides?): Promise<ApiResponse<PutConsentGdpr200Response>>

Stores the GDPR consent levels and timestamp. Returns the consent levels and the timestamp at which the consent information was received. This will overwrite existing GDPR consent levels for the specified person. The consent levels indicate the types of data classes the person has allowed during their use of your services, in accordance with GDPR. Store GDPR consent of current user

Parameters​

NameType
requestParametersPostConsentGdprRequest
initOverrides?RequestInit | InitOverrideFunction

Returns​

Promise<ApiResponse<PutConsentGdpr200Response>>


putConsentGdpr​

▸ putConsentGdpr(requestParameters, initOverrides?): Promise<PutConsentGdpr200Response>

Stores the GDPR consent levels and timestamp. Returns the consent levels and the timestamp at which the consent information was received. This will overwrite existing GDPR consent levels for the specified person. The consent levels indicate the types of data classes the person has allowed during their use of your services, in accordance with GDPR. Set GDPR consent of current user

Parameters​

NameType
requestParametersPutConsentGdprRequest
initOverrides?RequestInit | InitOverrideFunction

Returns​

Promise<PutConsentGdpr200Response>


putConsentGdprRaw​

▸ putConsentGdprRaw(requestParameters, initOverrides?): Promise<ApiResponse<PutConsentGdpr200Response>>

Stores the GDPR consent levels and timestamp. Returns the consent levels and the timestamp at which the consent information was received. This will overwrite existing GDPR consent levels for the specified person. The consent levels indicate the types of data classes the person has allowed during their use of your services, in accordance with GDPR. Set GDPR consent of current user

Parameters​

NameType
requestParametersPutConsentGdprRequest
initOverrides?RequestInit | InitOverrideFunction

Returns​

Promise<ApiResponse<PutConsentGdpr200Response>>


withMiddleware​

▸ withMiddleware<T>(this, ...middlewares): T

Type parameters​

NameType
Textends BaseAPI<T>

Parameters​

NameType
thisT
...middlewaresMiddleware[]

Returns​

T

Inherited from​

BaseAPI.withMiddleware


withPostMiddleware​

▸ withPostMiddleware<T>(this, ...postMiddlewares): T

Type parameters​

NameType
Textends BaseAPI<T>

Parameters​

NameType
thisT
...postMiddlewares(undefined | (context: ResponseContext) => Promise<void | Response>)[]

Returns​

T

Inherited from​

BaseAPI.withPostMiddleware


withPreMiddleware​

▸ withPreMiddleware<T>(this, ...preMiddlewares): T

Type parameters​

NameType
Textends BaseAPI<T>

Parameters​

NameType
thisT
...preMiddlewares(undefined | (context: RequestContext) => Promise<void | FetchParams>)[]

Returns​

T

Inherited from​

BaseAPI.withPreMiddleware