UNPKG

@datocms/cma-client

Version:
43 lines (42 loc) 1.73 kB
import BaseResource from '../../BaseResource'; import type * as SchemaTypes from '../SchemaTypes'; import type * as SimpleSchemaTypes from '../SimpleSchemaTypes'; export default class ScheduledUnpublishing extends BaseResource { static readonly TYPE: "scheduled_unpublishing"; /** * Create a new scheduled unpublishing * * Read more: https://www.datocms.com/docs/content-management-api/resources/scheduled-unpublishing/create * * @throws {ApiError} * @throws {TimeoutError} */ create(itemId: string | SimpleSchemaTypes.ItemData, body: SimpleSchemaTypes.ScheduledUnpublishingCreateSchema): Promise<SimpleSchemaTypes.ScheduledUnpublishing>; /** * Create a new scheduled unpublishing * * Read more: https://www.datocms.com/docs/content-management-api/resources/scheduled-unpublishing/create * * @throws {ApiError} * @throws {TimeoutError} */ rawCreate(itemId: string, body: SchemaTypes.ScheduledUnpublishingCreateSchema): Promise<SchemaTypes.ScheduledUnpublishingCreateTargetSchema>; /** * Delete a scheduled unpublishing * * Read more: https://www.datocms.com/docs/content-management-api/resources/scheduled-unpublishing/destroy * * @throws {ApiError} * @throws {TimeoutError} */ destroy(itemId: string | SimpleSchemaTypes.ItemData): Promise<SimpleSchemaTypes.Item>; /** * Delete a scheduled unpublishing * * Read more: https://www.datocms.com/docs/content-management-api/resources/scheduled-unpublishing/destroy * * @throws {ApiError} * @throws {TimeoutError} */ rawDestroy(itemId: string): Promise<SchemaTypes.ScheduledUnpublishingDestroyTargetSchema>; }