import { APIResource } from "../../core/resource.mjs"; import * as FieldsAPI from "./fields.mjs"; import { CustomObjectField, CustomObjectFieldsPageCursorURL, FieldCreateParams, FieldUpdateParams, Fields } from "./fields.mjs"; import * as RecordsAPI from "./records.mjs"; import { CustomObjectDataRow, CustomObjectDataRowsPageCursorURL, RecordBulkCreateParams, RecordBulkCreateResponse, RecordBulkDeleteParams, RecordBulkUpdateParams, RecordBulkUpdateResponse, RecordCreateParams, RecordCreateResponse, RecordQueryParams, RecordQueryResponse, RecordUpdateParams, RecordUpdateResponse, Records } from "./records.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { PageCursorURL, PagePromise } from "../../core/pagination.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; /** * Custom objects defined by the company */ export declare class CustomObjects extends APIResource { fields: FieldsAPI.Fields; records: RecordsAPI.Records; /** * A list of custom objects. * * - Requires: `API Tier 1` */ list(options?: RequestOptions): PagePromise; /** * Create a new custom object. */ create(body?: CustomObjectCreateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Retrieve a specific custom object. */ retrieve(customObjectAPIName: string, options?: RequestOptions): APIPromise; /** * Update a specific custom object. */ update(customObjectAPIName: string, body?: CustomObjectUpdateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Delete a custom object. */ delete(customObjectAPIName: string, options?: RequestOptions): APIPromise; } export type CustomObjectsPageCursorURL = PageCursorURL; export interface CustomObject { /** * Identifier field */ id: string; /** * The category of the custom object */ category_id: string; /** * Record creation date */ created_at: string; /** * Whether to record the history of the custom object */ enable_history: boolean; /** * The name of the custom object */ name: string; /** * The plural label of the custom object */ plural_label: string; /** * Record update date */ updated_at: string; /** * The api name of the custom object */ api_name?: string; /** * The description of the custom object */ description?: string; /** * The id of the package which the custom object belongs to */ managed_package_install_id?: string; /** * The native category of the custom object if belongs to */ native_category_id?: string; /** * The id of the owner for the custom object */ owner_id?: string; } export interface CustomObjectCreateParams { /** * The category that this custom object belongs to. */ category?: string; /** * A description of the custom object. */ description?: string; /** * The name of the custom object. */ name?: string; } export interface CustomObjectUpdateParams { /** * The category that this custom object belongs to. */ category?: string; /** * A description of the custom object. */ description?: string; /** * The name of the custom object. */ name?: string; /** * The role that owns this custom object. */ owner_role?: string; /** * The plural label for the custom object. */ plural_label?: string; } export declare namespace CustomObjects { export { type CustomObject as CustomObject, type CustomObjectsPageCursorURL as CustomObjectsPageCursorURL, type CustomObjectCreateParams as CustomObjectCreateParams, type CustomObjectUpdateParams as CustomObjectUpdateParams, }; export { Fields as Fields, type CustomObjectField as CustomObjectField, type CustomObjectFieldsPageCursorURL as CustomObjectFieldsPageCursorURL, type FieldCreateParams as FieldCreateParams, type FieldUpdateParams as FieldUpdateParams, }; export { Records as Records, type CustomObjectDataRow as CustomObjectDataRow, type RecordCreateResponse as RecordCreateResponse, type RecordQueryResponse as RecordQueryResponse, type RecordUpdateResponse as RecordUpdateResponse, type RecordBulkCreateResponse as RecordBulkCreateResponse, type RecordBulkUpdateResponse as RecordBulkUpdateResponse, type CustomObjectDataRowsPageCursorURL as CustomObjectDataRowsPageCursorURL, type RecordCreateParams as RecordCreateParams, type RecordQueryParams as RecordQueryParams, type RecordUpdateParams as RecordUpdateParams, type RecordBulkCreateParams as RecordBulkCreateParams, type RecordBulkUpdateParams as RecordBulkUpdateParams, type RecordBulkDeleteParams as RecordBulkDeleteParams, }; } //# sourceMappingURL=custom-objects.d.mts.map