@datocms/cma-client
Version:
JS client for DatoCMS REST Content Management API
62 lines (61 loc) • 2.58 kB
TypeScript
import * as Utils from '@datocms/rest-client-utils';
import BaseResource from '../../BaseResource';
import type * as SchemaTypes from '../SchemaTypes';
import type * as SimpleSchemaTypes from '../SimpleSchemaTypes';
export default class BuildEvent extends BaseResource {
static readonly TYPE: "build_event";
/**
* List all deploy events
*
* Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/instances
*
* @throws {ApiError}
* @throws {TimeoutError}
*/
list(queryParams?: SimpleSchemaTypes.BuildEventInstancesHrefSchema): Promise<SimpleSchemaTypes.BuildEventInstancesTargetSchema>;
/**
* List all deploy events
*
* Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/instances
*
* @throws {ApiError}
* @throws {TimeoutError}
*/
rawList(queryParams?: SchemaTypes.BuildEventInstancesHrefSchema): Promise<SchemaTypes.BuildEventInstancesTargetSchema>;
/**
* Async iterator to auto-paginate over elements returned by list()
*
* Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/instances
*
* @throws {ApiError}
* @throws {TimeoutError}
*/
listPagedIterator(queryParams?: Utils.OmitFromKnownKeys<SimpleSchemaTypes.BuildEventInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<SimpleSchemaTypes.BuildEvent, void, unknown>;
/**
* Async iterator to auto-paginate over elements returned by rawList()
*
* Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/instances
*
* @throws {ApiError}
* @throws {TimeoutError}
*/
rawListPagedIterator(queryParams?: Utils.OmitFromKnownKeys<SchemaTypes.BuildEventInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<SchemaTypes.BuildEvent, void, unknown>;
/**
* Retrieve a deploy event
*
* Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/self
*
* @throws {ApiError}
* @throws {TimeoutError}
*/
find(buildEventId: string | SimpleSchemaTypes.BuildEventData): Promise<SimpleSchemaTypes.BuildEvent>;
/**
* Retrieve a deploy event
*
* Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/self
*
* @throws {ApiError}
* @throws {TimeoutError}
*/
rawFind(buildEventId: string): Promise<SchemaTypes.BuildEventSelfTargetSchema>;
}