import { APIResource } from "../../../core/resource.js"; import { APIPromise } from "../../../core/api-promise.js"; import { RequestOptions } from "../../../internal/request-options.js"; /** * Saved custom object list views visible to the requester */ export declare class Default extends APIResource { /** * Replaces the company-wide default for this object with an accessible shared view * identified by view_api_name, or supply null to clear it. The response confirms * the resulting view_api_name. Repeating the same request leaves the same default * selected. To undo the change, submit the previous view_api_name or null. This * does not change the view definition or records. Uses existing Custom Object read * consent. Native permissions require ownership for private views and * manage-object access for shared views, sharing, and company defaults. * Object-read consent does not authorize schema or record writes. * * @example SDK usage * ```ts * const _default = * await client.customObjects.listViews.default.update( * 'custom_object_api_name', * { view_api_name: 'view_api_name' }, * ); * ``` * * @example HTTP * Representative request and response shapes. * ``` * PUT /custom-objects/{custom_object_api_name}/list-views/default/ HTTP/1.1 * Host: rest.ripplingapis.com * Content-Type: application/json * Accept: application/json * Rippling-Api-Version: 2024-08-01 * * { * "view_api_name": "view_api_name" * } * * HTTP/1.1 200 OK * Content-Type: application/json * * { * "view_api_name": "string" * } * ``` */ update(customObjectAPIName: string, body: DefaultUpdateParams, options?: RequestOptions): APIPromise; } /** * The shared saved view to use as a Custom Object's company default, or null to * clear it. */ export interface DefaultUpdateResponse { /** * Shared view API name; null clears the company default. */ view_api_name: string | null; } export interface DefaultUpdateParams { /** * Shared view API name; null clears the company default. */ view_api_name: string | null; } export declare namespace Default { export { type DefaultUpdateResponse as DefaultUpdateResponse, type DefaultUpdateParams as DefaultUpdateParams, }; } //# sourceMappingURL=default.d.ts.map