Skip to main content

EventApiClient

Contains all the endpoints needed to manage events.

Constructors

new EventApiClient()

new EventApiClient(): EventApiClient

Returns

EventApiClient

Methods

changeEventCover()

static changeEventCover(id, data, config?): Promise<SCEventType>

This endpoint changes the event avatar

Parameters

ParameterTypeDescription
idstring | number
dataFormData
config?AxiosRequestConfig<any>

Returns

Promise<SCEventType>

Source

services/event/index.ts:211


createEvent()

static createEvent(data, config?): Promise<SCEventType>

This endpoint creates an event.

Parameters

ParameterTypeDescription
dataEventCreateParams | FormData
config?AxiosRequestConfig<any>

Returns

Promise<SCEventType>

Source

services/event/index.ts:173


deleteEvent()

static deleteEvent(id, config?): Promise<any>

This endpoint deletes an event.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:201


getEventFeed()

static getEventFeed(id, params?, config?): Promise<any>

This endpoint performs events search

Parameters

ParameterTypeDescription
idstring | number
params?EventFeedParams
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:163


getEventInvitedUsers()

static getEventInvitedUsers(id, params?, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint returns a list of invited users.

Parameters

ParameterTypeDescription
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/event/index.ts:275


getEventMembers()

static getEventMembers(id, params?, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint returns all subscribers of a specific event.

Parameters

ParameterTypeDescription
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/event/index.ts:220


getEventRelated()

static getEventRelated(id, params?, config?): Promise <SCPaginatedResponse<SCEventType>>

This endpoint returns all events related of a specific event.

Parameters

ParameterTypeDescription
idstring | number
params?EventRelatedParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCEventType>>

Source

services/event/index.ts:398


getEventSubscriptionStatus()

static getEventSubscriptionStatus(id, config?): Promise<any>

This endpoint retrieves the event subscription status.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:357


getEventSuggestedUsers()

static getEventSuggestedUsers(id, search, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint returns a list of suggested users to invite to the event.

Parameters

ParameterTypeDescription
idstring | number
searchstring
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/event/index.ts:248


getEventWaitingApprovalSubscribers()

static getEventWaitingApprovalSubscribers(id, params?, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint returns all waiting approval subscribers

Parameters

ParameterTypeDescription
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/event/index.ts:230


getEventsSuggestedUsers()

static getEventsSuggestedUsers(search, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint returns a list of suggested users to invite to the events.

Parameters

ParameterTypeDescription
searchstring
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/event/index.ts:261


getSpecificEventInfo()

static getSpecificEventInfo(id, config?): Promise<SCEventType>

This endpoint retrieves a specific event.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCEventType>

Source

services/event/index.ts:153


getUserCreatedEvents()

static getUserCreatedEvents(params?, config?): Promise <SCPaginatedResponse<SCEventType>>

This endpoint returns all events cretaed by a specific event.

Parameters

ParameterTypeDescription
params?EventRelatedParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCEventType>>

Source

services/event/index.ts:133


getUserEvents()

static getUserEvents(params?, config?): Promise <SCPaginatedResponse<SCEventType>>

This endpoint retrieves all the events of the logged-in user.

Parameters

ParameterTypeDescription
params?EventUserParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCEventType>>

Source

services/event/index.ts:103


getUserSubscribedEvents()

static getUserSubscribedEvents(id, params?, config?): Promise <SCPaginatedResponse<SCEventType>>

This endpoint retrieves a specific user events.

Parameters

ParameterTypeDescription
idstring | number
params?BaseSearchParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCEventType>>

Source

services/event/index.ts:114


getUsersGoingToEvent()

static getUsersGoingToEvent(id, params?, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint returns a list of users attending the event.

Parameters

ParameterTypeDescription
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/event/index.ts:286


getUsersNotGoingToEvent()

static getUsersNotGoingToEvent(id, params?, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint returns a list of users not attending the event.

Parameters

ParameterTypeDescription
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/event/index.ts:297


goToEvent()

static goToEvent(id, config?): Promise<any>

This endpoint allows to attend an event

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:365


hideEvent()

static hideEvent(id, config?): Promise<any>

This endpoint hide a specific event.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:415


inviteOrAcceptEventRequest()

static inviteOrAcceptEventRequest(id, data, config?): Promise<any>

This endpoint allows to invite or accept an event invite.

Parameters

ParameterTypeDescription
idstring | number
dataobject
data.usersnumber[]-
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:330


notGoingToEvent()

static notGoingToEvent(id, config?): Promise<any>

This endpoint allows to not attend an event

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:381


patchEvent()

static patchEvent(id, data, config?): Promise<SCEventType>

This endpoint patches an event.

Parameters

ParameterTypeDescription
idstring | number
dataSCEventType
config?AxiosRequestConfig<any>

Returns

Promise<SCEventType>

Source

services/event/index.ts:193


removeGoingToEvent()

static removeGoingToEvent(id, config?): Promise<any>

This endpoint allows to remove an event participation

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:373


removeInviteEvent()

static removeInviteEvent(id, data, config?): Promise<any>

This endpoint allows to remove invites.

Parameters

ParameterTypeDescription
idstring | number
dataobject
data.usersnumber[]-
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:344


removeNotGoingToEvent()

static removeNotGoingToEvent(id, config?): Promise<any>

This endpoint allows to remove the event not attending

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:389


searchEvents()

static searchEvents(params?, config?): Promise <SCPaginatedResponse<SCEventType>>

This endpoint performs events search

Parameters

ParameterTypeDescription
params?EventSearchParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCEventType>>

Source

services/event/index.ts:143


showEvent()

static showEvent(id, config?): Promise<any>

This endpoint show a specific event.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:407


subscribeToEvent()

static subscribeToEvent(id, config?): Promise<any>

This endpoint subscribes to an event.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:311


unsubscribeFromEvent()

static unsubscribeFromEvent(id, config?): Promise<any>

This endpoint unsubscribes from an event.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/event/index.ts:320


updateEvent()

static updateEvent(id, data, config?): Promise<SCEventType>

This endpoint updates an event.

Parameters

ParameterTypeDescription
idstring | number
dataSCEventType
config?AxiosRequestConfig<any>

Returns

Promise<SCEventType>

Source

services/event/index.ts:183