import { APIResource } from "../core/resource.mjs"; import * as BusinessPartnersAPI from "./business-partners.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { PageCursorURL, PagePromise } from "../core/pagination.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; /** * Teams at the company */ export declare class Teams extends APIResource { /** * A list of teams. * * - Requires: `API Tier 1` * - Expandable fields: `parent` * - Sortable fields: `id`, `created_at`, `updated_at` */ list(query?: TeamListParams | null | undefined, options?: RequestOptions): PagePromise; /** * Retrieve a specific team */ retrieve(id: string, query?: TeamRetrieveParams | null | undefined, options?: RequestOptions): APIPromise; } export type TeamsPageCursorURL = PageCursorURL; export interface Team { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * The name of the team. */ name: string; /** * Record update date */ updated_at: string; /** * The parent team * * Expandable field */ parent?: Team; /** * The parent team */ parent_id?: string; } /** * Meta information for the response. */ export interface TeamRetrieveResponse extends BusinessPartnersAPI.Meta, Team { } export interface TeamListParams { cursor?: string; expand?: string; order_by?: string; } export interface TeamRetrieveParams { expand?: string; } export declare namespace Teams { export { type Team as Team, type TeamRetrieveResponse as TeamRetrieveResponse, type TeamsPageCursorURL as TeamsPageCursorURL, type TeamListParams as TeamListParams, type TeamRetrieveParams as TeamRetrieveParams, }; } //# sourceMappingURL=teams.d.mts.map