@hubspot/api-client
Version:
NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files
72 lines (71 loc) • 6.87 kB
TypeScript
import { BaseAPIRequestFactory } from './baseapi';
import { Configuration } from '../configuration';
import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
import { AttachToLangPrimaryRequestVNext } from '../models/AttachToLangPrimaryRequestVNext';
import { BatchInputBlogPost } from '../models/BatchInputBlogPost';
import { BatchInputJsonNode } from '../models/BatchInputJsonNode';
import { BatchInputString } from '../models/BatchInputString';
import { BatchResponseBlogPost } from '../models/BatchResponseBlogPost';
import { BatchResponseBlogPostWithErrors } from '../models/BatchResponseBlogPostWithErrors';
import { BlogPost } from '../models/BlogPost';
import { BlogPostLanguageCloneRequestVNext } from '../models/BlogPostLanguageCloneRequestVNext';
import { CollectionResponseWithTotalBlogPostForwardPaging } from '../models/CollectionResponseWithTotalBlogPostForwardPaging';
import { CollectionResponseWithTotalVersionBlogPost } from '../models/CollectionResponseWithTotalVersionBlogPost';
import { ContentCloneRequestVNext } from '../models/ContentCloneRequestVNext';
import { ContentScheduleRequestVNext } from '../models/ContentScheduleRequestVNext';
import { DetachFromLangGroupRequestVNext } from '../models/DetachFromLangGroupRequestVNext';
import { SetNewLanguagePrimaryRequestVNext } from '../models/SetNewLanguagePrimaryRequestVNext';
import { UpdateLanguagesRequestVNext } from '../models/UpdateLanguagesRequestVNext';
import { VersionBlogPost } from '../models/VersionBlogPost';
export declare class BlogPostsApiRequestFactory extends BaseAPIRequestFactory {
archive(objectId: string, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
archiveBatch(batchInputString: BatchInputString, _options?: Configuration): Promise<RequestContext>;
attachToLangGroup(attachToLangPrimaryRequestVNext: AttachToLangPrimaryRequestVNext, _options?: Configuration): Promise<RequestContext>;
clone(contentCloneRequestVNext: ContentCloneRequestVNext, _options?: Configuration): Promise<RequestContext>;
create(blogPost: BlogPost, _options?: Configuration): Promise<RequestContext>;
createBatch(batchInputBlogPost: BatchInputBlogPost, _options?: Configuration): Promise<RequestContext>;
createLangVariation(blogPostLanguageCloneRequestVNext: BlogPostLanguageCloneRequestVNext, _options?: Configuration): Promise<RequestContext>;
detachFromLangGroup(detachFromLangGroupRequestVNext: DetachFromLangGroupRequestVNext, _options?: Configuration): Promise<RequestContext>;
getById(objectId: string, archived?: boolean, property?: string, _options?: Configuration): Promise<RequestContext>;
getDraftById(objectId: string, _options?: Configuration): Promise<RequestContext>;
getPage(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array<string>, after?: string, limit?: number, archived?: boolean, property?: string, _options?: Configuration): Promise<RequestContext>;
getPreviousVersion(objectId: string, revisionId: string, _options?: Configuration): Promise<RequestContext>;
getPreviousVersions(objectId: string, after?: string, before?: string, limit?: number, _options?: Configuration): Promise<RequestContext>;
pushLive(objectId: string, _options?: Configuration): Promise<RequestContext>;
readBatch(batchInputString: BatchInputString, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
resetDraft(objectId: string, _options?: Configuration): Promise<RequestContext>;
restorePreviousVersion(objectId: string, revisionId: string, _options?: Configuration): Promise<RequestContext>;
restorePreviousVersionToDraft(objectId: string, revisionId: number, _options?: Configuration): Promise<RequestContext>;
schedule(contentScheduleRequestVNext: ContentScheduleRequestVNext, _options?: Configuration): Promise<RequestContext>;
setLangPrimary(setNewLanguagePrimaryRequestVNext: SetNewLanguagePrimaryRequestVNext, _options?: Configuration): Promise<RequestContext>;
update(objectId: string, blogPost: BlogPost, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
updateBatch(batchInputJsonNode: BatchInputJsonNode, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
updateDraft(objectId: string, blogPost: BlogPost, _options?: Configuration): Promise<RequestContext>;
updateLangs(updateLanguagesRequestVNext: UpdateLanguagesRequestVNext, _options?: Configuration): Promise<RequestContext>;
}
export declare class BlogPostsApiResponseProcessor {
archiveWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
archiveBatchWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
attachToLangGroupWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
cloneWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
createWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
createBatchWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BatchResponseBlogPostWithErrors | BatchResponseBlogPost>>;
createLangVariationWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
detachFromLangGroupWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
getByIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
getDraftByIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
getPageWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CollectionResponseWithTotalBlogPostForwardPaging>>;
getPreviousVersionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<VersionBlogPost>>;
getPreviousVersionsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CollectionResponseWithTotalVersionBlogPost>>;
pushLiveWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
readBatchWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BatchResponseBlogPostWithErrors | BatchResponseBlogPost>>;
resetDraftWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
restorePreviousVersionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
restorePreviousVersionToDraftWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
scheduleWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
setLangPrimaryWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
updateWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
updateBatchWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BatchResponseBlogPostWithErrors | BatchResponseBlogPost>>;
updateDraftWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BlogPost>>;
updateLangsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
}