@hubspot/api-client
Version:
NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files
35 lines (34 loc) • 2.97 kB
TypeScript
import { BaseAPIRequestFactory } from './baseapi';
import { Configuration } from '../configuration';
import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
import { CollectionResponseWithTotalPageForwardPaging } from '../models/CollectionResponseWithTotalPageForwardPaging';
import { ContentCloneRequestVNext } from '../models/ContentCloneRequestVNext';
import { ContentScheduleRequestVNext } from '../models/ContentScheduleRequestVNext';
import { Page } from '../models/Page';
import { SetNewLanguagePrimaryRequestVNext } from '../models/SetNewLanguagePrimaryRequestVNext';
export declare class WebsitePagesApiRequestFactory extends BaseAPIRequestFactory {
archive(objectId: string, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
clone(contentCloneRequestVNext: ContentCloneRequestVNext, _options?: Configuration): Promise<RequestContext>;
create(page: Page, _options?: Configuration): Promise<RequestContext>;
getById(objectId: string, archived?: boolean, property?: string, _options?: Configuration): Promise<RequestContext>;
getDraftById(objectId: string, _options?: Configuration): Promise<RequestContext>;
getPage(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>;
pushLive(objectId: string, _options?: Configuration): Promise<RequestContext>;
schedule(contentScheduleRequestVNext: ContentScheduleRequestVNext, _options?: Configuration): Promise<RequestContext>;
setLangPrimary(setNewLanguagePrimaryRequestVNext: SetNewLanguagePrimaryRequestVNext, _options?: Configuration): Promise<RequestContext>;
update(objectId: string, page: Page, archived?: boolean, _options?: Configuration): Promise<RequestContext>;
updateDraft(objectId: string, page: Page, _options?: Configuration): Promise<RequestContext>;
}
export declare class WebsitePagesApiResponseProcessor {
archiveWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
cloneWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Page>>;
createWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Page>>;
getByIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Page>>;
getDraftByIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Page>>;
getPageWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CollectionResponseWithTotalPageForwardPaging>>;
pushLiveWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
scheduleWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
setLangPrimaryWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
updateWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Page>>;
updateDraftWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Page>>;
}