UNPKG

@hubspot/api-client

Version:

NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files

21 lines (20 loc) 3.04 kB
import { BaseAPIRequestFactory } from './baseapi'; import { Configuration } from '../configuration'; import { RequestContext, ResponseContext, HttpInfo } from '../http/http'; import { AggregateEmailStatistics } from '../models/AggregateEmailStatistics'; import { CollectionResponseWithTotalEmailStatisticInterval } from '../models/CollectionResponseWithTotalEmailStatisticInterval'; import { CollectionResponseWithTotalPublicEmail } from '../models/CollectionResponseWithTotalPublicEmail'; import { EmailCreateRequest } from '../models/EmailCreateRequest'; import { PublicEmail } from '../models/PublicEmail'; export declare class BasicApiRequestFactory extends BaseAPIRequestFactory { getEmailsList(emailIds?: Array<number>, endTimestamp?: Date, property?: string, startTimestamp?: Date, _options?: Configuration): Promise<RequestContext>; getHistogram(emailIds?: Array<number>, endTimestamp?: Date, interval?: 'DAY' | 'HOUR' | 'MINUTE' | 'MONTH' | 'QUARTER' | 'QUARTER_HOUR' | 'SECOND' | 'WEEK' | 'YEAR', startTimestamp?: Date, _options?: Configuration): Promise<RequestContext>; marketingV3Emails(after?: string, archived?: boolean, campaign?: string, createdAfter?: Date, createdAt?: Date, createdBefore?: Date, includedProperties?: Array<string>, includeStats?: boolean, isPublished?: boolean, limit?: number, marketingCampaignNames?: boolean, publishedAfter?: Date, publishedAt?: Date, publishedBefore?: Date, sort?: Array<string>, type?: 'AB_EMAIL' | 'AUTOMATED_AB_EMAIL' | 'AUTOMATED_EMAIL' | 'BATCH_EMAIL' | 'BLOG_EMAIL' | 'BLOG_EMAIL_CHILD' | 'FEEDBACK_CES_EMAIL' | 'FEEDBACK_CUSTOM_EMAIL' | 'FEEDBACK_CUSTOM_SURVEY_EMAIL' | 'FEEDBACK_NPS_EMAIL' | 'FOLLOWUP_EMAIL' | 'LEADFLOW_EMAIL' | 'LOCALTIME_EMAIL' | 'MANAGE_PREFERENCES_EMAIL' | 'MARKETING_SINGLE_SEND_API' | 'MEMBERSHIP_EMAIL_VERIFICATION_EMAIL' | 'MEMBERSHIP_FOLLOW_UP_EMAIL' | 'MEMBERSHIP_OTP_LOGIN_EMAIL' | 'MEMBERSHIP_PASSWORD_RESET_EMAIL' | 'MEMBERSHIP_PASSWORD_SAVED_EMAIL' | 'MEMBERSHIP_PASSWORDLESS_AUTH_EMAIL' | 'MEMBERSHIP_REGISTRATION_EMAIL' | 'MEMBERSHIP_REGISTRATION_FOLLOW_UP_EMAIL' | 'MEMBERSHIP_VERIFICATION_EMAIL' | 'OPTIN_EMAIL' | 'OPTIN_FOLLOWUP_EMAIL' | 'RESUBSCRIBE_EMAIL' | 'RSS_EMAIL' | 'RSS_EMAIL_CHILD' | 'SINGLE_SEND_API' | 'SMTP_TOKEN' | 'TICKET_EMAIL', updatedAfter?: Date, updatedAt?: Date, updatedBefore?: Date, variantStats?: boolean, workflowNames?: boolean, _options?: Configuration): Promise<RequestContext>; marketingV3Emails_1(emailCreateRequest: EmailCreateRequest, _options?: Configuration): Promise<RequestContext>; } export declare class BasicApiResponseProcessor { getEmailsListWithHttpInfo(response: ResponseContext): Promise<HttpInfo<AggregateEmailStatistics>>; getHistogramWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CollectionResponseWithTotalEmailStatisticInterval>>; marketingV3EmailsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CollectionResponseWithTotalPublicEmail>>; marketingV3Emails_1WithHttpInfo(response: ResponseContext): Promise<HttpInfo<PublicEmail>>; }