@hubspot/api-client
Version:
NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files
33 lines (32 loc) • 3.21 kB
TypeScript
import { BaseAPIRequestFactory } from './baseapi';
import { Configuration } from '../configuration';
import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
import { BatchInputString } from '../models/BatchInputString';
import { BatchResponseContentFolder } from '../models/BatchResponseContentFolder';
import { BatchResponseContentFolderWithErrors } from '../models/BatchResponseContentFolderWithErrors';
import { CollectionResponseWithTotalContentFolderForwardPaging } from '../models/CollectionResponseWithTotalContentFolderForwardPaging';
import { CollectionResponseWithTotalContentFolderVersion } from '../models/CollectionResponseWithTotalContentFolderVersion';
import { ContentFolder } from '../models/ContentFolder';
import { ContentFolderVersion } from '../models/ContentFolderVersion';
export declare class FoldersApiRequestFactory extends BaseAPIRequestFactory {
archiveFolder(objectId: string, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
createFolder(contentFolder: ContentFolder, _options?: Configuration): Promise<RequestContext>;
getFolderById(objectId: string, archived?: boolean, property?: string, _options?: Configuration): Promise<RequestContext>;
getFolderPreviousVersion(objectId: string, revisionId: string, _options?: Configuration): Promise<RequestContext>;
getFolderPreviousVersions(objectId: string, after?: string, before?: string, limit?: number, _options?: Configuration): Promise<RequestContext>;
getFoldersPage(after?: string, archived?: boolean, createdAfter?: Date, createdAt?: Date, createdBefore?: Date, limit?: number, property?: string, sort?: Array<string>, updatedAfter?: Date, updatedAt?: Date, updatedBefore?: Date, _options?: Configuration): Promise<RequestContext>;
readFolders(batchInputString: BatchInputString, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
restoreFolderPreviousVersion(objectId: string, revisionId: string, _options?: Configuration): Promise<RequestContext>;
updateFolder(objectId: string, contentFolder: ContentFolder, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
}
export declare class FoldersApiResponseProcessor {
archiveFolderWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
createFolderWithHttpInfo(response: ResponseContext): Promise<HttpInfo<ContentFolder>>;
getFolderByIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<ContentFolder>>;
getFolderPreviousVersionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<ContentFolderVersion>>;
getFolderPreviousVersionsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CollectionResponseWithTotalContentFolderVersion>>;
getFoldersPageWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CollectionResponseWithTotalContentFolderForwardPaging>>;
readFoldersWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BatchResponseContentFolder | BatchResponseContentFolderWithErrors>>;
restoreFolderPreviousVersionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<ContentFolder>>;
updateFolderWithHttpInfo(response: ResponseContext): Promise<HttpInfo<ContentFolder>>;
}