UNPKG

@ordino.ai/cli

Version:
19 lines (16 loc) 551 B
import { serviceFactory } from "../config/service-factory"; import { OnBoardTeamCommand, Team } from "../models/models"; export const teamService = { getAllTeams: async (partnerId: string): Promise<Team[]> => { const response = await serviceFactory .getTeamServiceAxios() .get(`/${partnerId}`); return response.data; }, createTeam: async (command: OnBoardTeamCommand): Promise<Team> => { const response = await serviceFactory .getTeamServiceAxios() .post("/new", command); return response.data; }, };