import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { PageCursorURL, PagePromise } from "../core/pagination.js"; import { RequestOptions } from "../internal/request-options.js"; /** * Object Categories defined by the company */ export declare class ObjectCategories extends APIResource { /** * A list of object categories. * * - Requires: `API Tier 1` */ list(options?: RequestOptions): PagePromise; /** * Create a new object category. */ create(body?: ObjectCategoryCreateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Retrieve a specific object category. */ retrieve(id: string, options?: RequestOptions): APIPromise; /** * Update a specific object category. */ update(id: string, body?: ObjectCategoryUpdateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Delete an object category. */ delete(id: string, options?: RequestOptions): APIPromise; } export type ObjectCategoriesPageCursorURL = PageCursorURL; export interface ObjectCategory { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * The name of the Custom Category */ name: string; /** * Record update date */ updated_at: string; /** * The description of the Custom Category */ description?: string; } export interface ObjectCategoryCreateParams { /** * A description of the category. */ description?: string; /** * The name of the category. */ name?: string; } export interface ObjectCategoryUpdateParams { /** * A description of the category. */ description?: string; /** * The name of the category. */ name?: string; } export declare namespace ObjectCategories { export { type ObjectCategory as ObjectCategory, type ObjectCategoriesPageCursorURL as ObjectCategoriesPageCursorURL, type ObjectCategoryCreateParams as ObjectCategoryCreateParams, type ObjectCategoryUpdateParams as ObjectCategoryUpdateParams, }; } //# sourceMappingURL=object-categories.d.ts.map