Skip to content

Releases: HubSpot/hubspot-api-nodejs

12.0.1

23 Sep 16:20
18c7c38
Compare
Choose a tag to compare

Fixed build errors.

12.0.0

23 Sep 08:53
31e3a83
Compare
Choose a tag to compare

CMS

  • Changed type from string to laguages enum in cms/blogs/blog_posts/models/AttachToLangPrimaryRequestVNext::language.
  • Added parameter campaignName to cms/blogs/blog_posts/models/ContentLanguageVariation.
  • Added parameter breakpointStyles to cms/blogs/blog_posts/models/Styles.
  • Added parameter name to cms.hubdb.rowsApi.cloneDraftTableRow().
  • Added parameter archived to cms.hubdb.rowsApi.getDraftTableRowById() and cms.hubdb.rowsApi.getTableRow().
  • Added parameters offset and archived to cms.hubdb.rowsApi.getTableRows() and cms.hubdb.rowsApi.readDraftTableRows().
  • Changed the response object type from CollectionResponseWithTotalHubDbTableRowV3ForwardPaging to UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3 for cms.hubdb.rowsApi.getTableRows() and cms.hubdb.rowsApi.readDraftTableRows().
  • Changed parameter batchInputString: BatchInputString to batchInputHubDbTableRowBatchCloneRequest: BatchInputHubDbTableRowBatchCloneRequest in cms.hubdb.rowsApi.cloneDraftTableRow().
  • Added parameter contentType before archived parameter to cms.hubdb.tablesApi.getAllTables().
  • Changed parameters from tableIdOrName: string, includeForeignIds?: boolean, archived?: boolean to tableIdOrName: string, isGetLocalizedSchema?: boolean, archived?: boolean, includeForeignIds?: boolean of cms.hubdb.tablesApi.getDraftTableDetailsById() and cms.hubdb.tablesApi.getTableDetails().
  • Changed parameters from tableIdOrName: string, hubDbTableV3Request: HubDbTableV3Request, includeForeignIds?: boolean, archived?: boolean to tableIdOrName: string, hubDbTableV3Request: HubDbTableV3Request, isGetLocalizedSchema?: boolean, archived?: boolean, includeForeignIds?: boolean of cms.hubdb.tablesApi.updateDraftTable().
  • Added parameters createdByUserId, updatedBy, updatedByUserId, createdAt, createdBy and updatedAt to cms/hubdb/models/Column and cms/hubdb/models/Option.
  • Added the parameter isHubspotDefined to cms/hubdb/models/HubDbTableCloneRequest.
  • Removed cms.source_code.ExtractApi.extractByPath() method.
  • Added doAsync() and getAsyncStatus() methods to cms.source_code.ExtractApi.
  • Removed cms.source_code.sourceCodeExtractApi.

CRM

  • Added crm.associassociations.v4.reportApi.
  • Added parameter idProperty to crm.companies.basicApi.getById(), crm.companies.basicApi.update(), crm.deals.basicApi.getById(), crm.deals.basicApi.update().
  • Added method upsert to crm.companies.batchApi, crm.contacts.batchApi, crm.deals.batchApi, crm.line_items.batchApi, crm.objects.batchApi, crm.objects.calls.batchApi, crm.objects.communications.batchApi, crm.objects.emails.batchApi, crm.objects.meetings.batchApi, crm.objects.notes.batchApi, crm.objects.postal_mail.batchApi, crm.objects.tasks.batchApi, crm.objects.taxes.batchApi, crm.products.batchApi, crm.quotes.batchApi, crm.tickets.batchApi
  • Removed crm.companies.GDPRApi, crm.deals.GDPRApi, crm.line_items.GDPRApi, crm.objects.GDPRApi, crm.objects.calls.GDPRApi, crm.objects.communications.GDPRApi, crm.objects.emails.GDPRApi, crm.objects.feedback_submissions.GDPRApi, crm.objects.goals.GDPRApi, crm.objects.meetings.GDPRApi, crm.objects.notes.GDPRApi, crm.objects.postal_mail.GDPRApi, crm.objects.tasks.GDPRApi, crm.objects.taxes.GDPRApi, crm.products.GDPRApi, crm.quotes.GDPRApi, crm.tickets.GDPRApi
  • Removed crm.line_items.publicObjectApi, crm.objects.publicObjectApi, crm.objects.calls.publicObjectApi, crm.objects.communications.publicObjectApi, crm.objects.emails.publicObjectApi, crm.objects.feedback_submissions.publicObjectApi, crm.objects.goals.publicObjectApi, crm.objects.meetings.publicObjectApi, crm.objects.notes.publicObjectApi, crm.objects.postal_mail.publicObjectApi, crm.objects.tasks.publicObjectApi, crm.objects.taxes.publicObjectApi, crm.products.publicObjectApi, crm.quotes.publicObjectApi
  • Renamed publicObjectApi to mergeApi in crm.companies, crm.contacts, crm.deals and crm.tickets.
  • Made associationCategory and associationTypeId parameters nullable in crm/companies/models/AssociationSpec, crm/contacts/models/AssociationSpec, crm/deals/models/AssociationSpec, crm/tickets/models/AssociationSpec.
  • Made types and to parameters nullable in crm/companies/models/PublicAssociationsForObject, crm/contacts/models/PublicAssociationsForObject, crm/deals/models/PublicAssociationsForObject, crm/tickets/models/PublicAssociationsForObject.
  • Made id parameter nullable in crm/companies/models/PublicObjectId, crm/contacts/models/PublicObjectId, crm/deals/models/PublicObjectId and crm/tickets/models/PublicObjectId.
  • Made limit, after, sorts, properties and filterGroups parameters nullable in crm/companies/models/PublicObjectSearchRequest, crm/contacts/models/PublicObjectSearchRequest, crm/deals/models/PublicObjectSearchRequest, crm/line_items/models/PublicObjectSearchRequest, crm/objects/models/PublicObjectSearchRequest, crm/objects/calls/models/PublicObjectSearchRequest, crm/objects/communications/models/PublicObjectSearchRequest, crm/objects/emails/models/PublicObjectSearchRequest, crm/objects/feedback_submissions/models/PublicObjectSearchRequest, crm/objects/goals/models/PublicObjectSearchRequest, crm/objects/leads/models/PublicObjectSearchRequest, crm/objects/postal_mail/models/PublicObjectSearchRequest, crm/objects/tasks/models/PublicObjectSearchRequest, crm/objects/taxes/models/PublicObjectSearchRequest, crm/products/models/PublicObjectSearchRequest, crm/quotes/models/PublicObjectSearchRequest and crm/tickets/models/PublicObjectSearchRequest.
  • Added parameter objectWriteTraceId to crm/companies/models/SimplePublicObjectBatchInput, crm/companies/models/SimplePublicObjectInput, crm/companies/models/SimplePublicObjectInputForCreate, crm/contacts/models/SimplePublicObjectBatchInput, crm/contacts/models/SimplePublicObjectInput, crm/contacts/models/SimplePublicObjectInputForCreate, crm/deals/models/SimplePublicObjectBatchInput, crm/deals/models/SimplePublicObjectInput, crm/deals/models/SimplePublicObjectInputForCreate, crm/line_items/models/SimplePublicObjectBatchInput, crm/line_items/models/SimplePublicObjectInput, crm/line_items/models/SimplePublicObjectInputForCreate, crm/objects/models/SimplePublicObjectBatchInput, crm/objects/models/SimplePublicObjectInput, crm/objects/models/SimplePublicObjectInputForCreate, crm/objects/calls/models/SimplePublicObjectBatchInput, crm/objects/calls/models/SimplePublicObjectInput, crm/objects/calls/models/SimplePublicObjectInputForCreate,crm/objects/communications/models/SimplePublicObjectBatchInput, crm/objects/communications/models/SimplePublicObjectInput, crm/objects/communications/models/SimplePublicObjectInputForCreate, crm/objects/emails/models/SimplePublicObjectBatchInput, crm/objects/emails/models/SimplePublicObjectInput, crm/objects/emails/models/SimplePublicObjectInputForCreate, crm/objects/leads/models/SimplePublicObjectBatchInput, crm/objects/leads/models/SimplePublicObjectInput, crm/objects/leads/models/SimplePublicObjectInputForCreate, crm/objects/leads/models/SimplePublicObjectBatchInputUpsert, crm/objects/meetings/models/SimplePublicObjectBatchInput, crm/objects/meetings/models/SimplePublicObjectInput, crm/objects/meetings/models/SimplePublicObjectInputForCreate, crm/objects/notes/models/SimplePublicObjectBatchInput, crm/objects/notes/models/SimplePublicObjectInput, crm/objects/notes/models/SimplePublicObjectInputForCreate, crm/objects/postal_mail/models/SimplePublicObjectBatchInput, crm/objects/postal_mail/models/SimplePublicObjectInput, crm/objects/postal_mail/models/SimplePublicObjectInputForCreate, crm/objects/tasks/models/SimplePublicObjectBatchInput, crm/objects/tasks/models/SimplePublicObjectInput, crm/objects/tasks/models/SimplePublicObjectInputForCreate, crm/objects/taxes/models/SimplePublicObjectBatchInput, crm/objects/taxes/models/SimplePublicObjectInput, crm/objects/taxes/models/SimplePublicObjectInputForCreate, crm/products/models/SimplePublicObjectBatchInput, crm/products/models/SimplePublicObjectInput, crm/products/models/SimplePublicObjectInputForCreate, crm/quotes/models/SimplePublicObjectBatchInput, crm/quotes/models/SimplePublicObjectInput, crm/quotes/models/SimplePublicObjectInputForCreate, crm/tickets/models/SimplePublicObjectBatchInput, crm/tickets/models/SimplePublicObjectInput and crm/tickets/models/SimplePublicObjectInputForCreate.
  • Made associations parameter nullable in crm/companies/models/SimplePublicObjectInputForCreate, crm/contacts/models/SimplePublicObjectInputForCreate, crm/deals/models/SimplePublicObjectInputForCreate and crm/tickets/models/SimplePublicObjectInputForCreate.
  • Removed crm.extensions.accounting API client.
  • Added method markAsReady to crm.extensions.calling.recordingSettingsApi.
  • Added parameter supportsInboundCalling to crm/extensions/calling/models/SettingsPatchRequest, crm/extensions/calling/models/SettingsRequest and crm/extensions/calling/models/SettingsResponse.
  • Added parameters userIdIncludingInactive and type to crm/owners/models/PublicOwner.
  • Removed archive, create and update methods from crm.objects.feedback_submissions.basicApi, crm.objects.feedback_submissions.batchApi, crm.objects.goals.basicApi and crm.objects.goals.batchApi.
  • Changed response object type BatchResponseSimplePublicObject | BatchResponseSimplePublicObjectWithErrors to BatchResponseSimplePublicUpsertObjectWithErrors | BatchResponseSimplePublicUpsertObject of crm.objects.leads.rowsApi.upsert().
  • Removed crm.schemas.PublicObjectSchemasApi.
  • Added parameters createdByUserId and updatedByUserId to `crm/schemas/models/ObjectSche...
Read more

11.2.0

14 Aug 09:38
ef4b193
Compare
Choose a tag to compare

Changes:

  • Added crm()->objects()->leads() api client

10.2.1

01 Apr 08:41
1aee1d1
Compare
Choose a tag to compare

Fixed automation.actions.functionsApi.createOrReplaceByFunctionType() method.

11.1.0

29 Feb 09:42
bfaa106
Compare
Choose a tag to compare

Added param idProperty to SimplePublicObjectBatchInput in all CRM clients.

11.0.0

13 Feb 08:27
9704e87
Compare
Choose a tag to compare

Non-breaking changes

  • Added param 'inverseLabel'?: string to crm/associations/v4/schema/models/PublicAssociationDefinitionCreateRequest and crm/associations/v4/schema/models/PublicAssociationDefinitionUpdateRequest.
  • Added new association types to enums/AssociationTypes.

Breaking changes

  • crm.associations.v4.basicApi.archive(objectType: string, objectId: number, toObjectType: string, toObjectId: number, _options?: Configuration) => crm.associations.v4.basicApi.archive(objectType: string, objectId: string, toObjectType: string, toObjectId: string, _options?: Configuration)
  • crm.associations.v4.basicApi.create(objectType: string, objectId: number, toObjectType: string, toObjectId: number, associationSpec: Array<AssociationSpec>, _options?: Configuration): Promise<LabelsBetweenObjectPair1> => crm.associations.v4.basicApi.create(objectType: string, objectId: string, toObjectType: string, toObjectId: string, associationSpec: Array<AssociationSpec>, _options?: Configuration): Promise<LabelsBetweenObjectPair>
  • crm.associations.v4.basicApi.createDefault(fromObjectType: string, fromObjectId: number, toObjectType: string, toObjectId: number, _options?: Configuration) => crm.associations.v4.basicApi.createDefault(fromObjectType: string, fromObjectId: string, toObjectType: string, toObjectId: string, _options?: Configuration)
  • crm.associations.v4.basicApi.getPage(objectType: string, objectId: number, toObjectType: string, after?: string, limit?: number, _options?: Configuration) => crm.associations.v4.basicApi.getPage(objectType: string, objectId: string, toObjectType: string, after?: string, limit?: number, _options?: Configuration)
  • Cnange type from number to string in crm/associations/v4/models/MultiAssociatedObjectWithLabel::toObjectId.

11.0.0-beta.0

31 Jan 13:22
5b36537
Compare
Choose a tag to compare

Non-breaking changes

  • crm.companies.gdprApi API client.
  • crm.deals.gdprApi API client.
  • crm.extensions.calling.recordingSettingsApi API client.
  • crm.line_items.gdprApi API client.
  • crm.objects.calls.gdprApi API client.
  • crm.objects.communications.gdprApi API client.
  • crm.objects.emails.gdprApi API client.
  • crm.objects.feedbackSubmissions.gdprApi API client.
  • crm.objects.meetings.gdprApi API client.
  • crm.objects.notes.gdprApi API client.
  • crm.objects.postalMail.gdprApi API client.
  • crm.objects.tasks.gdprApi API client.
  • crm.products.gdprApi API client.
  • crm.quotes.gdprApi API client.
  • crm.tickets.gdprApi API client.
  • Added new function type POST_ACTION_EXECUTION to all methods of automation.actions.functionsApi.

Breaking changes

  • automation.actions.definitionsAPI.create(appId: number, extensionActionDefinitionInput: ExtensionActionDefinitionInput):Promise<ExtensionActionDefinition> => automation.actions.definitionsAPI.create(appId: number, publicActionDefinitionEgg: PublicActionDefinitionEgg):Promise<PublicActionDefinition>.
  • automation.actions.definitionsAPI.getById():Promise<ExtensionActionDefinition> => automation.actions.definitionsAPI.getById():Promise<PublicActionDefinition>.
  • automation.actions.definitionsAPI.update(definitionId: string, appId: number, extensionActionDefinitionPatch: ExtensionActionDefinitionPatch):Promise<ExtensionActionDefinition> => automation.actions.definitionsAPI.update(definitionId: string, appId: number, publicActionDefinitionPatch: PublicActionDefinitionPatch):Promise<PublicActionDefinition>.
  • automation.actions.definitionsAPI.getPage():Promise<CollectionResponseExtensionActionDefinitionForwardPaging> => automation.actions.definitionsAPI.getPage():Promise<CollectionResponsePublicActionDefinitionForwardPaging>.
  • automation.actions.functionsApi.createOrReplace():Promise<ActionFunctionIdentifier> => automation.actions.functionsApi.createOrReplace():Promise<PublicActionFunctionIdentifier >.
  • automation.actions.functionsApi.createOrReplaceByFunctionType():Promise<ActionFunctionIdentifier> => automation.actions.functionsApi.createOrReplaceByFunctionType():Promise<PublicActionFunctionIdentifier >.
  • automation.actions.functionsApi.getByFunctionType():Promise<ActionFunction> => automation.actions.functionsApi.getByFunctionType():Promise<PublicActionFunction>.
  • automation.actions.functionsApi.getById():Promise<ActionFunction> => automation.actions.functionsApi.getById():Promise<PublicActionFunction>.
  • automation.actions.functionsApi.getPage():Promise<CollectionResponseActionFunctionIdentifierNoPaging> => automation.actions.functionsApi.getPage():Promise<CollectionResponsePublicActionFunctionIdentifierNoPaging>.
  • automation.actions.revisionsApi.getById():Promise<ActionRevision> => automation.actions.revisionsApi.getById():Promise<PublicActionRevision>.
  • automation.actions.revisionsApi.getPage():Promise<CollectionResponseActionRevisionForwardPaging> => automation.actions.revisionsApi.getPage():Promise<CollectionResponsePublicActionRevisionForwardPaging>.
  • Added param property to cms.blogs.authors.blogAuthorsApi.getById().
  • Added param property to cms.blogs.authors.blogAuthorsApi.getPage().
  • Changed type from laguages enum to string in cms/blogs/authors/models/AttachToLangPrimaryRequestVNext::language and cms/blogs/authors/models/AttachToLangPrimaryRequestVNext::primaryLanguage.
  • Added param property to cms.blogs.blogPosts.blogPostsApi.getById().
  • Added param property to cms.blogs.blogPosts.blogPostsApi.getPage().
  • Changed type from laguages enum to string in cms/blogs/blog_posts/models/AttachToLangPrimaryRequestVNext::language and cms/blogs/blog_posts/models/AttachToLangPrimaryRequestVNext::primaryLanguage.
  • Cnange type from SideOrCornerVerticalSideEnum to string in cms/blogs/blog_posts/models/SideOrCorner::verticalSide.
  • Cnange type from SideOrCornerHorizontalSideEnum to string in cms/blogs/blog_posts/models/SideOrCorner::horizontalSide.
  • Cnange type from StylesVerticalAlignmentEnum to string in cms/blogs/blog_posts/models/Styles::verticalAlignment.
  • Cnange type from StylesFlexboxPositioningEnum to string in cms/blogs/blog_posts/models/Styles::flexboxPositioning.
  • Added param property to cms.blogs.tags.blogTagsApi.getById().
  • Added param property to cms.blogs.tags.blogTagsApi.getPage().
  • Changed type from laguages enum to string in cms/blogs/tags/models/AttachToLangPrimaryRequestVNext::language and cms/blogs/tags/models/AttachToLangPrimaryRequestVNext::primaryLanguage.
  • Cnange type from ErrorCategory to string in crm/associations/models/StandardError::category.
  • crm.associations.v4.basicApi.create(): Promise<LabelsBetweenObjectPair> => crm.associations.v4.basicApi.create(): Promise<LabelsBetweenObjectPair1>
  • Cnange type from ErrorCategory to string in crm/associations/v4/models/StandardError::category.
  • Rename crm.associations.v4.schema.definitionsApi._delete() => crm.associations.v4.schema.definitionsApi.archive().
  • Removed crm.objects.associationsApi.
  • Cnange type from number to string in PublicObjectSearchRequest::after in all CRM clients.
  • crm.objects.postalMail.basicApi.archive(postalMail: string, _options?: Configuration) => crm.objects.postalMail.basicApi.archive(postalMailId: string, _options?: Configuration).
  • crm.objects.postalMail.basicApi.getById(postalMail: string, properties?: Array<string>, propertiesWithHistory?: Array<string>, associations?: Array<string>, archived?: boolean, idProperty?: string, _options?: Configuration) => crm.objects.postalMail.basicApi.getById(postalMailId: string, properties?: Array<string>, propertiesWithHistory?: Array<string>, associations?: Array<string>, archived?: boolean, idProperty?: string, _options?: Configuration).
  • crm.objects.postalMail.basicApi.update(postalMail: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: Configuration) => crm.objects.postalMail.basicApi.update(postalMailId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: Configuration).
  • Added param validateDealStageUsagesBeforeDelete to cms.pipelines.pipelinesApi.archive(), cms.pipelines.pipelinesApi.replace() and cms.pipelines.pipelinesApi.update().
  • events.eventsApi.getPage(occurredAfter?: Date, occurredBefore?: Date, objectType?: string, objectId?: number, eventType?: string, after?: string, before?: string, limit?: number, sort?: Array<string>, _options?: Configuration) => events.eventsApi.getPage(objectType?: string, eventType?: string, occurredAfter?: Date, occurredBefore?: Date, objectId?: number, indexTableName?: string, indexSpecificMetadata?: string, after?: string, before?: string, limit?: number, sort?: Array<string>, objectPropertyPropname?: any, propertyPropname?: any, id?: Array<string>, _options?: Configuration)
  • Rewrite all enums from type to enum.
export type Enum = "OPTION1" | "OPTION2";
// =>
export enum Enum {
    Option1 = 'OPTION1',
    Option2 = 'OPTION2'
}

10.2.0

13 Dec 14:53
6e33fac
Compare
Choose a tag to compare

Added:

  • cms.pages Api client.
  • crm.lists Api client.
  • crm.objects.goals Api client.
  • crm.objects.taxes Api client.
  • events.send Api client.
  • settings.businessUnits Api client.

10.1.0

13 Dec 12:27
be3e896
Compare
Choose a tag to compare

Added marketing.forms Api client.

10.0.0

25 Sep 09:25
2c67c28
Compare
Choose a tag to compare

Updated

  • cms.auditLogs.auditLogsApi.getPage(objectId?: Array<string>, userId?: Array<string>, after?: string, before?: string, sort?: Array<string>, eventType?: Array<string>, limit?: number, objectType?: Array<string>, _options?: Configuration) => cms.auditLogs.auditLogsApi.getPage(userId?: Array<string>, eventType?: Array<string>, objectType?: Array<string>, objectId?: Array<string>, after?: string, before?: string, limit?: number, sort?: Array<string>, _options?: Configuration)
  • Cnange type from number to string in cms/hubdb/models/HubDbTableRowV3BatchUpdateRequest.id.
  • Nullable startDatetime, endDatetime and totalRequestTime in cms/performance/models/PerformanceView.
  • Rename cms.sourceCode.contentApi.get() => cms.sourceCode.contentApi.download()
  • Rename cms.sourceCode.contentApi.replace() => cms.sourceCode.contentApi.createOrUpdate()
  • crm.timeline.eventsApi.createBatch() BatchResponseTimelineEventResponse | BatchResponseTimelineEventResponseWithErrors => crm.timeline.eventsApi.createBatch() BatchResponseTimelineEventResponse | void | BatchResponseTimelineEventResponseWithErrors
  • Cnange type from ErrorCategory to string in crm/timeline/models/StandardError::category.
  • Nullable options in crm/timeline/models/TimelineEventTemplateToken and codegen/crm/timeline/models/TimelineEventTemplateTokenUpdateRequest.
  • Required links in files/models/FolderUpdateTaskLocator and files/models/ImportFromUrlTaskLocator.
  • Nullable duplicateValidationStrategy, duplicateValidationScope and overwrite in files/models/ImportFromUrlInput.
  • Cnange type from ErrorCategory to string in files/models/StandardError::category.
  • Move method archive from marketing.events.marketingEventsExternalApi to marketing.events.basicApi.
  • Move method create from marketing.events.marketingEventsExternalApi to marketing.events.basicApi.
  • Move method doCancel from marketing.events.marketingEventsExternalApi to marketing.events.basicApi.
  • Move method getById from marketing.events.marketingEventsExternalApi to marketing.events.basicApi.
  • Move method replace from marketing.events.marketingEventsExternalApi to marketing.events.basicApi.
  • Move method update from marketing.events.marketingEventsExternalApi to marketing.events.basicApi.
  • Move method archiveBatch from marketing.events.marketingEventsExternalApi to marketing.events.batchApi.
  • Move method doUpsert from marketing.events.marketingEventsExternalApi to marketing.events.batchApi.
  • Move method doEmailUpsertById from marketing.events.marketingEventsExternalApi to marketing.events.subscriberStateChanges.
  • Move method doUpsertById from marketing.events.marketingEventsExternalApi to marketing.events.subscriberStateChanges.
  • Rename marketing.events.settingsExternalApi => marketing.events.settingsApi
  • Cnange type from ErrorCategory to string in marketing/events/models/StandardError::category.

Added

  • Added param prev to cms/audit_logs/models/PreviousPage.
  • Added param properties to cms.sourceCode.metadataApi.get().
  • Added param hash to cms/source_code/models/AssetFileMetadata.
  • Added method getMetadata to files.filesApi.
  • Added param expiresAt to files/models/FileUpdateInput and files/models/ModelFile.
  • Added params roleIds, sendWelcomeEmail and superAdmin to settings/users/models/PublicUser