UNPKG

@datocms/cma-client

Version:
44 lines (43 loc) 2.06 kB
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 UploadSmartTag extends BaseResource { static readonly TYPE: "upload_smart_tag"; /** * List all automatically created upload tags * * Read more: https://www.datocms.com/docs/content-management-api/resources/upload-smart_tag/instances * * @throws {ApiError} * @throws {TimeoutError} */ list(queryParams?: SimpleSchemaTypes.UploadSmartTagInstancesHrefSchema): Promise<SimpleSchemaTypes.UploadSmartTagInstancesTargetSchema>; /** * List all automatically created upload tags * * Read more: https://www.datocms.com/docs/content-management-api/resources/upload-smart_tag/instances * * @throws {ApiError} * @throws {TimeoutError} */ rawList(queryParams?: SchemaTypes.UploadSmartTagInstancesHrefSchema): Promise<SchemaTypes.UploadSmartTagInstancesTargetSchema>; /** * Async iterator to auto-paginate over elements returned by list() * * Read more: https://www.datocms.com/docs/content-management-api/resources/upload-smart_tag/instances * * @throws {ApiError} * @throws {TimeoutError} */ listPagedIterator(queryParams?: Utils.OmitFromKnownKeys<SimpleSchemaTypes.UploadSmartTagInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<SimpleSchemaTypes.UploadSmartTag, void, unknown>; /** * Async iterator to auto-paginate over elements returned by rawList() * * Read more: https://www.datocms.com/docs/content-management-api/resources/upload-smart_tag/instances * * @throws {ApiError} * @throws {TimeoutError} */ rawListPagedIterator(queryParams?: Utils.OmitFromKnownKeys<SchemaTypes.UploadSmartTagInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<SchemaTypes.UploadSmartTag, void, unknown>; }