new SeasonTeamService()
Service for managing season teams and their members.
Methods
create(teamId, seasonId, MemberIds) → {Promise.<Object>}
Create a new season team.
Parameters:
| Name | Type | Description |
|---|---|---|
teamId | string | ID of the team |
seasonId | string | ID of the season |
MemberIds | Array | Array of member IDs to include in the team |
Returns:
Created season team
- Type:
- Promise.<Object>
importMembers(seasonTeamId, MemberIds) → {Promise.<Object>}
Import members into a season team.
Parameters:
| Name | Type | Description |
|---|---|---|
seasonTeamId | string | ID of the season team |
MemberIds | Array | Array of member IDs to import |
Returns:
Updated season team
- Type:
- Promise.<Object>
remove(seasonTeamId) → {Promise.<Object>}
Remove a season team by its ID.
Parameters:
| Name | Type | Description |
|---|---|---|
seasonTeamId | string | ID of the season team to remove |
Returns:
Response data
- Type:
- Promise.<Object>