Circle V2 API Docs
Preparing search index...
@repo/trpc
routers/teams/index
teamsRouter
Variable teamsRouter
Const
teamsRouter
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
addTeamMembers
:
MutationProcedure
<
{
input
:
{
profileIds
:
string
[]
;
teamId
:
string
}
;
meta
:
object
;
output
:
{
created_at
:
DbDate
;
id
:
UserTeamId
;
profile_id
:
string
&
{
__brand
:
"ProfileId"
}
;
team_id
:
string
&
{
__brand
:
"TeamId"
}
;
user_entity_id
:
number
|
null
;
user_id
:
string
&
{
__brand
:
"UserId"
}
|
null
;
}
[]
;
}
,
>
;
createTeam
:
MutationProcedure
<
{
input
:
{
memberIds
:
string
[]
;
name
:
string
}
;
meta
:
object
;
output
:
{
created_at
:
DbDate
;
created_by
:
string
|
null
;
entity_id
:
number
|
null
;
id
:
TeamId
;
name
:
string
|
null
;
}
;
}
,
>
;
listTeams
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
{
created_at
:
string
;
id
:
TeamId
;
members
:
{
email
:
string
|
null
;
first_name
:
string
|
null
;
id
:
ProfileId
;
last_name
:
string
|
null
;
role_name
:
string
|
null
;
}
[]
;
name
:
string
|
null
;
}
[]
;
}
,
>
;
removeTeamMember
:
MutationProcedure
<
{
input
:
{
profileId
:
string
;
teamId
:
string
}
;
meta
:
object
;
output
:
{
created_at
:
DbDate
;
id
:
UserTeamId
;
profile_id
:
string
&
{
__brand
:
"ProfileId"
}
;
team_id
:
string
&
{
__brand
:
"TeamId"
}
;
user_entity_id
:
number
|
null
;
user_id
:
string
&
{
__brand
:
"UserId"
}
|
null
;
}
;
}
,
>
;
}
,
>
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...