import { ListPage } from '../models/ListPage'; import { AssetForDelivery } from '../models/AssetForDelivery'; import { Document } from '../models/Document'; import { RequiredDeep } from '../models/RequiredDeep'; import { ListArgs } from '../models/ListArgs'; export default class CatalogContents { private impersonating; /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * @param catalogID ID of the catalog. * @param options.search Word or phrase to search for. * @param options.searchOn Comma-delimited list of fields to search on. * @param options.sortBy Comma-delimited list of fields to sort by. * @param options.page Page of results to return. Default: 1 * @param options.pageSize Number of results to return per page. Default: 20, max: 100. * @param options.filters An object whose keys match the model, and the values are the values to filter by * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ ListAssets(catalogID: string, options?: ListArgs, accessToken?: string): Promise>>; /** * @param catalogID ID of the catalog. * @param assetID ID of the asset. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ SaveAssetAssignment(catalogID: string, assetID: string, accessToken?: string): Promise; /** * @param catalogID ID of the catalog. * @param assetID ID of the asset. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ DeleteAssetAssignment(catalogID: string, assetID: string, accessToken?: string): Promise; /** * @param catalogID ID of the catalog. * @param assetID ID of the asset. * @param listOrderWithinType List order within type of the catalog content. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ MoveAssetAssignment(catalogID: string, assetID: string, listOrderWithinType: number, accessToken?: string): Promise; /** * @param catalogID ID of the catalog. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ GetFirstImage(catalogID: string, accessToken?: string): Promise; /** * @param catalogID ID of the catalog. * @param schemaID ID of the schema. * @param options.search Word or phrase to search for. * @param options.searchOn Comma-delimited list of fields to search on. * @param options.sortBy Comma-delimited list of fields to sort by. * @param options.page Page of results to return. Default: 1 * @param options.pageSize Number of results to return per page. Default: 20, max: 100. * @param options.filters An object whose keys match the model, and the values are the values to filter by * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ ListDocuments(catalogID: string, schemaID: string, options?: ListArgs, accessToken?: string): Promise>>; /** * @param catalogID ID of the catalog. * @param schemaID ID of the schema. * @param documentID ID of the document. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ SaveDocumentAssignment(catalogID: string, schemaID: string, documentID: string, accessToken?: string): Promise; /** * @param catalogID ID of the catalog. * @param schemaID ID of the schema. * @param documentID ID of the document. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ DeleteDocumentAssignment(catalogID: string, schemaID: string, documentID: string, accessToken?: string): Promise; /** * @description * enables impersonation by calling the subsequent method with the stored impersonation token * * @example * CatalogContents.As().List() // lists CatalogContents using the impersonated users' token */ As(): this; }