import { ListPage } from '../models/ListPage'; import { Searchable } from '../models/Searchable'; import { Sortable } from '../models/Sortable'; import { Filters } from '../models/Filters'; import { Team } from '../models/Team'; import { TeamTransfer } from '../models/TeamTransfer'; import { InviteUsernameRequest } from '../models/InviteUsernameRequest'; import { TeamMember } from '../models/TeamMember'; import { OrgAssignment } from '../models/OrgAssignment'; import { RequiredDeep } from '../models/RequiredDeep'; import { RequestOptions } from '../models/RequestOptions'; declare class Teams { /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * Search for a Portal team * * @param listOptions.search * @param listOptions.page * @param listOptions.pageSize * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Search(listOptions?: { search?: string; page?: number; pageSize?: number; }, requestOptions?: RequestOptions): Promise>>; /** * Get a list of teams you have access to * * @param listOptions.search * @param listOptions.page * @param listOptions.pageSize * @param listOptions.searchOn * @param listOptions.sortBy * @param listOptions.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???' * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ List(listOptions?: { search?: string; page?: number; pageSize?: number; searchOn?: Searchable<'Teams.List'>; sortBy?: Sortable<'Teams.List'>; filters?: Filters; }, requestOptions?: RequestOptions): Promise>>; /** * Get a single team * * @param id Unique identifier of the team * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Get(id: string, requestOptions?: RequestOptions): Promise>; /** * Create or update a single team * * @param id Unique identifier of the team * @param team Required fields: Id, Name * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Save(id: string, team: Team, requestOptions?: RequestOptions): Promise>; /** * Permanently delete a single team * * @param id Unique identifier of the team * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Delete(id: string, requestOptions?: RequestOptions): Promise; /** * Transfer a portal team you own to a member * * @param id Unique identifier of the portal team * @param teamTransfer * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Transfer(id: string, teamTransfer: TeamTransfer, requestOptions?: RequestOptions): Promise; /** * Invite a new member * * @param id Unique identifier of the team * @param inviteUsernameRequest * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ InviteMember(id: string, inviteUsernameRequest: InviteUsernameRequest, requestOptions?: RequestOptions): Promise>; /** * Get a list of contributors for a seller organization * * @param listOptions.search * @param listOptions.page * @param listOptions.pageSize * @param listOptions.searchOn * @param listOptions.sortBy * @param listOptions.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???' * @param id Unique identifier of the team * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ListMember(id: string, listOptions?: { search?: string; page?: number; pageSize?: number; searchOn?: Searchable<'Teams.ListMember'>; sortBy?: Sortable<'Teams.ListMember'>; filters?: Filters; }, requestOptions?: RequestOptions): Promise>>; /** * Get a single team member * * @param id Unique identifier of the team * @param username Unique identifier of the team member * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ GetMember(id: string, username: string, requestOptions?: RequestOptions): Promise>; /** * Update a team member * * @param id Unique identifier of the team * @param username Unique identifier of the team member * @param teamMember Required fields: Permissions * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ SaveMember(id: string, username: string, teamMember: TeamMember, requestOptions?: RequestOptions): Promise>; /** * Remove a team member from a team * * @param id Unique identifier of the team * @param username Unique identifier of the team member * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ DeleteMember(id: string, username: string, requestOptions?: RequestOptions): Promise; /** * Get a list of seller organizations assigned to a specific team * * @param listOptions.search * @param listOptions.page * @param listOptions.pageSize * @param listOptions.searchOn * @param listOptions.sortBy * @param listOptions.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???' * @param id Unique identifier of the team * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ListOrganizations(id: string, listOptions?: { search?: string; page?: number; pageSize?: number; searchOn?: Searchable<'Teams.ListOrganizations'>; sortBy?: Sortable<'Teams.ListOrganizations'>; filters?: Filters; }, requestOptions?: RequestOptions): Promise>>; } declare const _default: Teams; export default _default;