GroupApiClientInterface
Methods
changeGroupAvatarOrCover()
changeGroupAvatarOrCover(
id
,data
,config
?):Promise
<SCGroupType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | FormData |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCGroupType
>
Source
createGroup()
createGroup(
data
,config
?):Promise
<SCGroupType
>
Parameters
Parameter | Type |
---|---|
data | GroupCreateParams | FormData |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCGroupType
>
Source
getGroupFeed()
getGroupFeed(
id
,params
?,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
params ? | GroupFeedParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
getGroupInvitedUsers()
getGroupInvitedUsers(
id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
params ? | BaseGetParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getGroupMembers()
getGroupMembers(
id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
params ? | BaseGetParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getGroupSubscriptionStatus()
getGroupSubscriptionStatus(
id
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
getGroupSuggestedUsers()
getGroupSuggestedUsers(
id
,search
,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
search | string |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getGroupWaitingApprovalSubscribers()
getGroupWaitingApprovalSubscribers(
id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
params ? | BaseGetParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getGroupsSuggestedUsers()
getGroupsSuggestedUsers(
search
,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
Parameters
Parameter | Type |
---|---|
search | string |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getSpecificGroupInfo()
getSpecificGroupInfo(
id
,config
?):Promise
<SCGroupType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCGroupType
>
Source
getUserGroups()
getUserGroups(
params
?,config
?):Promise
<SCPaginatedResponse
<SCGroupType
>>
Parameters
Parameter | Type |
---|---|
params ? | BaseSearchParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCGroupType
>>
Source
getUserSubscribedGroups()
getUserSubscribedGroups(
id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCGroupType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
params ? | BaseSearchParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCGroupType
>>
Source
inviteOrAcceptGroupRequest()
inviteOrAcceptGroupRequest(
id
,data
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | object |
data.users | number [] |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
patchGroup()
patchGroup(
id
,data
,config
?):Promise
<SCGroupType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | SCGroupType |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCGroupType
>
Source
removeUserFromGroup()
removeUserFromGroup(
id
,user
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
user | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
searchGroups()
searchGroups(
params
?,config
?):Promise
<SCPaginatedResponse
<SCGroupType
>>
Parameters
Parameter | Type |
---|---|
params ? | BaseSearchParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCGroupType
>>
Source
subscribeToGroup()
subscribeToGroup(
id
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
unsubscribeFromGroup()
unsubscribeFromGroup(
id
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
updateGroup()
updateGroup(
id
,data
,config
?):Promise
<SCGroupType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | SCGroupType |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCGroupType
>