11.0.0
ksvirkou-hubspot
released this
06 Mar 13:15
·
109 commits
to master
since this release
Major change for SDK
- Update Php version >=7.4
Automation Action client
- Changed type of
$extension_action_definition_input
input param fromExtensionActionDefinition
toPublicActionDefinition
inautomation()->actions()->definitionsApi()->create()
. - Renamed and changed type the third input param of
automation()->actions()->definitionsApi()->update()
fromExtensionActionDefinitionPatch $extension_action_definition_patch
toPublicActionDefinition $public_action_definition_patch
. - Changed the return type from
ExtensionActionDefinition|Error
toPublicActionDefinition|Error
ofcreate()
,getById()
andupdate()
methods ofautomation()->actions()->definitionsApi()
. - Changed the return type from
CollectionResponseExtensionActionDefinitionForwardPaging|Error
toCollectionResponsePublicActionDefinitionForwardPaging|Error
ofgetPage()
method ofautomation()->actions()->definitionsApi()
. - Changed the return type from
ActionFunctionIdentifier|Error
toPublicActionFunctionIdentifier|Error
ofcreateOrReplaceByFunctionType()
andcreateOrReplace()
methods ofautomation()->actions()->functionsApi()
. - Changed the return type from
ActionFunction|Error
toPublicActionFunction|Error
ofgetByFunctionType()
andgetById()
methods ofautomation()->actions()->functionsApi()
. - Changed the return type from
CollectionResponseActionFunctionIdentifierNoPaging|Error
toCollectionResponsePublicActionFunctionIdentifierNoPaging|Error
ofgetPage()
method ofautomation()->actions()->functionsApi()
. - Changed the return type from
ActionRevision|Error
toPublicActionRevision|Error
ofgetById()
method ofautomation()->actions()->revisionsApi()
. - Changed the return type from
CollectionResponseActionRevisionForwardPaging|Error
toCollectionResponsePublicActionRevisionForwardPaging|Error
ofgetPage()
method ofautomation()->actions()->revisionsApi()
. - Added
automation_field_type
param toHubSpot\Client\Automation\Actions\Model\InputFieldDefinition
. - Added new params to
HubSpot\Client\Automation\Actions\Model\FieldTypeDefinition
:
'help_text' => 'string',
'name' => 'string',
'description' => 'string',
'external_options_reference_type' => 'string',
'label' => 'string',
'type' => 'string',
'field_type' => 'string',
'options_url' => 'string',
'external_options' => 'bool'
CMS clients
- Changed the order of input params from
$object_id = null, $user_id = null, $after = null, $before = null, $sort = null, $event_type = null, $limit = null, $object_type = null
to$user_id = null, $event_type = null, $object_type = null, $object_id = null, $after = null, $before = null, $limit = null, $sort = null
incms()->auditLogs()->auditLogsApi()->getPage()
. - Removed params
scope_to_scope_group_pks
,trial_scopes
andtrial_scope_to_scope_group_pks
fromHubSpot\Client\Auth\OAuth\Model\AccessTokenInfoResponse
. - Added
prev
param toHubSpot\Client\Cms\AuditLogs\Model\Paging
. - Added
property
param togetById()
andgetPage()
methods ofcms()->blogs()->authors()->blogAuthorsApi()
,cms()->blogs()->blogPosts()->blogPostsApi()
andcms()->blogs()->tags()->blogTagsApi()
. - Change return type from
Error
tovoid
ofattachToLangGroup()
,detachFromLangGroup()
andupdateLangs()
methods ofcms()->blogs()->authors()->blogAuthorsApi()
,cms()->blogs()->blogPosts()->blogPostsApi()
andcms()->blogs()->tags()->blogTagsApi()
. - Removed languages constants from
AttachToLangPrimaryRequestVNext
andUpdateLanguagesRequestVNext
objects for all CMS blogs clients. - Changed type from
object
tostring
inStandardError:category
for all CMS blogs clients. - Removed background position's constants from
HubSpot\Client\Cms\Blogs\BlogPosts\Model\BackgroundImage
. - Changed type from
int
tostring
inHubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3BatchUpdateRequest:id
. - Renamed method
get()
todownload()
ofcms()->sourceCode()->contentApi()
. - Renamed method
replace()
tocreateOrUpdate()
ofcms()->sourceCode()->contentApi()
. - Added param
properties
tocms()->sourceCode()->metadataApi()->get()
. - Added param
hash
toHubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata
.
CRM Associations and Objects clients
Note
Please note that CRM Objects includes: companies, contacts, deals, line items, all CRM objects crm->objects()
, products, quotes and tickets
- Changed type of
$object_id
and$to_object_id
params fromint
tostring
incrm()->associations()->v4()->basicApi()->archive()
. - Changed type of
$object_id
and$to_object_id
params fromint
tostring
incrm()->associations()->v4()->basicApi()->create()
. - Changed type of
$from_object_id
and$to_object_id
params fromint
tostring
incrm()->associations()->v4()->basicApi()->createDefault()
. - Changed type of
$object_id
param fromint
tostring
incrm()->associations()->v4()->basicApi()->getPage()
. - Changed type from
StandardError1[]
toStandardError[]
inHubSpot\Client\Crm\Associations\v4\Model\BatchResponsePublicDefaultAssociation:errors
. - Changed type of
to_object_id
andfrom_object_id
params fromint
tostring
inHubSpot\Client\Crm\Associations\v4\Model\LabelsBetweenObjectPair
. - Changed type from
int
tostring
inHubSpot\Client\Crm\Associations\v4\Model\MultiAssociatedObjectWithLabel:to_object_id
. - Changed type from
ErrorCategory
tostring
inHubSpot\Client\Crm\Associations\v4\Model\StandardError:category
. - Renamed method
delete()
toarchive()
ofcrm()->associations()->v4()->schema()->definitionsApi()
. - Added param
inverseLabel
toHubSpot\Client\Crm\Associations\v4\Model\PublicAssociationDefinitionCreateRequest
andHubSpot\Client\Crm\Associations\v4\Model\PublicAssociationDefinitionUpdateRequest
. - Changed type from
ErrorCategory
tostring
inHubSpot\Client\Crm\Associations\Model\StandardError:category
. - Changed type from
int
tostring
inPublicObjectSearchRequest:after
in all CRM objects clients. - Added param
id_property
toSimplePublicObjectBatchInput
in all CRM objects clients. - Removed
crm()->objects()->associationsApi()
. - Renamed param from
$postal_mail
to$postal_mail_id
inarchive()
,getById()
andupdate()
ofcrm()->objects()->postalMail()->basicApi()
.
Added APIs to CRM Objects clients
crm()->companies()->gdprApi()
API.crm()->deals()->gdprApi()
API.crm()->line_items()->gdprApi()
API.crm()->objects()->calls()->gdprApi()
API.crm()->objects()->communications()->gdprApi()
API.crm()->objects()->emails()->gdprApi()
API.crm()->objects()->feedbackSubmissions()->gdprApi()
API.crm()->objects()->meetings()->gdprApi()
API.crm()->objects()->notes()->gdprApi()
API.crm()->objects()->postalMail.gdprApi()
API.crm()->objects()->tasks()->gdprApi()
API.crm()->products()->gdprApi()
API.crm()->quotes()->gdprApi()
API.crm()->tickets()->gdprApi()
API.
The other CRM clients
- Changed the order of input params from
$app_id, $card_id
to$card_id, $app_id
incrm()->extensions()->cards()->cardsApi()->archive()
. - Changed the return type from
CardResponse|Error
toPublicCardResponse|Error
ofcreate()
,getById()
andupdate()
methods ofcrm()->extensions()->cards()->cardsApi()
. - Changed the return type from
CardListResponse|Error
toPublicCardListResponse|Error
ofgetAll()
method ofcrm()->extensions()->cards()->cardsApi()
. - Changed the order of input params from
$app_id, $card_id
to$card_id, $app_id
incrm()->extensions()->cards()->cardsApi()->getById()
. - Changed the order of input params from
$app_id, $card_id, $card_patch_request
to$card_id, $app_id, $card_patch_request
incrm()->extensions()->cards()->cardsApi()->update()
. - Added
serverless_function
andcard_type
params toHubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBody
andHubSpot\Client\Crm\Extensions\Cards\Model\CardFetchBodyPatch
. - Added
NAME_MARKETING_EVENTS
const toHubSpot\Client\Crm\Extensions\Cards\Model\CardObjectTypeBody
. - Added
audit_history
param toHubSpot\Client\Crm\Extensions\Cards\Model\PublicCardResponse
. - Added
fetch_accounts_uri
param toHubSpot\Client\Crm\Extensions\Videoconferencing\Model\ExternalSettings
. - Added
import_template
andimport_source
params toHubSpot\Client\Crm\Imports\Model\PublicImportResponse
. - Renamed method
delete()
toremove()
ofcrm()->lists()->listsApi()
. - Renamed method
deleteAll()
toremoveAll()
ofcrm()->lists()->listsApi()
. - Added param
$validate_deal_stage_usages_before_delete
tocrm()->pipelines()->pipelinesApi()->archive()
,crm()->pipelines()->pipelinesApi()->replace()
andcrm()->pipelines()->pipelinesApi()->update()
. - Added
write_permissions
param toHubSpot\Client\Crm\Pipelines\Model\PipelineStage
. - Added
description
param toHubSpot\Client\Crm\Schemas\Model\ObjectSchema
,HubSpot\Client\Crm\Schemas\Model\ObjectSchemaEgg
,HubSpot\Client\Crm\Schemas\Model\ObjectTypeDefinition
andHubSpot\Client\Crm\Schemas\Model\ObjectTypeDefinitionPatch
. - Added
option_sort_strategy
,show_currency_symbol
,form_field
,referenced_object_type
,text_display_hint
,searchable_in_global_search
andnumber_display_hint
params toHubSpot\Client\Crm\Schemas\Model\ObjectTypePropertyCreate
. - Added
calculation_formula
param toHubSpot\Client\Crm\Schemas\Model\Property
. - Changed the return type from
BatchResponseTimelineEventResponse|BatchResponseTimelineEventResponseWithErrors|Error
tovoid
ofcreateBatch()
method ofcrm()-timeline()->eventsApi()
. - Changed type from
ErrorCategory
tostring
inHubSpot\Client\Crm\Timeline\Model\StandardError:category
. - Removed
hapikey
fromcrm()->extensions()->videoconferencing()
API client. - Added
crm()->extensions()->calling()->recordingSettingsApi()
API.
Marketing clients
- Added
marketing()->events()->basicApi()
API. - Added
marketing()->events()->batchApi()
API. - Moved method
archive
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->basicApi()
. - Moved method
create
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->basicApi()
. - Moved method
doCancel
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->basicApi()
. - Moved method
getById
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->basicApi()
. - Moved method
replace
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->basicApi()
. - Moved method
update
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->basicApi()
. - Moved and rename method
archiveBatch => archive
frommarketing()->events()->marketingEventsExternalApi()->archiveBatch()
tomarketing()->events()->batchApi()->archive()
. - Moved method
doUpsert
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->batchApi()
. - Moved method
doEmailUpsertById
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->subscriberStateChanges()
. - Moved method
doUpsertById
frommarketing()->events()->marketingEventsExternalApi()
tomarketing()->events()->subscriberStateChanges
. - Renamed
marketing()->events()->settingsExternalApi()
=>marketing()->events()->settingsApi()
. - Added
is_large_value
param toHubSpot\Client\Marketing\Events\Model\PropertyValue
. - Changed type from
ErrorCategory
tostring
inHubSpot\Client\Marketing\Events\Model\StandardError:category
. - Changed type from
object
toHubSpotFormDefinitionAllOfLegalConsentOptions
inHubSpot\Client\Marketing\Forms\Model\CollectionResponseFormDefinitionBaseForwardPagingResultsInner:legal_consent_options
,HubSpot\Client\Marketing\Forms\Model\FormDefinitionBase:legal_consent_options
,HubSpot\Client\Marketing\Forms\Model\FormDefinitionCreateRequestBase:legal_consent_options
,HubSpot\Client\Marketing\Forms\Model\HubSpotFormDefinition:legal_consent_options
andHubSpot\Client\Marketing\Forms\Model\HubSpotFormDefinitionCreateRequest:legal_consent_options
. - Added
lifecycle_stages
param toHubSpot\Client\Marketing\Forms\Model\HubSpotFormConfiguration
.
Events, Files and Settings clients
- Changed input params from
$occurred_after = null, $occurred_before = null, $object_type = null, $object_id = null, $event_type = null, $after = null, $before = null, $limit = null, $sort = null
to$object_type = null, $event_type = null, $occurred_after = null, $occurred_before = null, $object_id = null, $index_table_name = null, $index_specific_metadata = null, $after = null, $before = null, $limit = null, $sort = null, $object_property_propname = null, $property_propname = null, $id = null
inevents()->eventsApi()->getPage()
. - Added
prev
param toHubSpot\Client\Events\Model\Paging
. - Renamed
behavioralEventsTrackingApi
API tocustomEventDataApi
inevents()->send()
API client. - Added method
getMetadata()
tofiles()->filesApi()
. - Added
expires_at
param toHubSpot\Client\Files\Model\File
andHubSpot\Client\Files\Model\FileUpdateInput
. - Changed type from
ErrorCategory
tostring
inHubSpot\Client\Files\Model\StandardError:category
. - Added
role_ids
,send_welcome_email
andsuper_admin
params toHubSpot\Client\Settings\Users\Model\PublicUser
.