From 6c05940653df070de469e4b949aa546db591edc2 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Thu, 10 Apr 2025 18:13:42 +0300 Subject: [PATCH 1/6] CMS Blog Post changes --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c92d386..3a8bb5b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/12.1.0...HEAD) +## [13.0.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0-beta) - 2024-04-17 + +### CMS Blog posts + +- Moved methods `archive`, `callClone`, `create`, `getById`, `pushLive`, `resetDraft`, `schedule`, `update` and `updateDraft` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->basicApi()`. +- Moved and renamed methods `archiveBatch` => `archive`, `createBatch` => `create`, `readBatch` => `read` and `updateBatch` => `update` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->batchApi()`. +- Moved methods `attachToLangGroup`, `createLangVariation`, `detachFromLangGroup`, `setLangPrimary` and `updateLangs` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->multiLanguageApi()`. + ## [12.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/12.1.0) - 2024-04-08 ## Updated From 4039eb73e8c87efd1e6be4a8f490662cae279e67 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 16 Apr 2025 16:20:35 +0300 Subject: [PATCH 2/6] Updated changelog --- CHANGELOG.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a8bb5b2..b2b4f213 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,12 +9,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [13.0.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0-beta) - 2024-04-17 -### CMS Blog posts +### CMS - Moved methods `archive`, `callClone`, `create`, `getById`, `pushLive`, `resetDraft`, `schedule`, `update` and `updateDraft` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->basicApi()`. - Moved and renamed methods `archiveBatch` => `archive`, `createBatch` => `create`, `readBatch` => `read` and `updateBatch` => `update` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->batchApi()`. - Moved methods `attachToLangGroup`, `createLangVariation`, `detachFromLangGroup`, `setLangPrimary` and `updateLangs` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->multiLanguageApi()`. +### Events + +- Renamed `events()->send()->customEventDataApi()` to `events()->send()->basicApi()`. +- Added `events()->send()->batchApi()` API. + +### Marketing + +- Renamed `marketing()->events()->attendanceSubscriberStateChangesApi()` to `marketing()->events()->addEventAttendeesApi()`. +- Added new methods `recordByContactId()` and `recordByEmail()` to `marketing()->events()->addEventAttendeesApi()`. +- Added `marketing()->events()->batchApi()` API. +- Moved and renamed methods `batchArchive` => `archive` and `batchUpsert` => `create` from `marketing()->events()->basicApi()` to `marketing()->events()->batchApi()`. +- Added new methods `archiveByObjectId()`, `getAll()`, `getByObjectId()` and `updateByObjectId()` to `marketing()->events()->basicApi()`. +- Moved methods `cancel` and `complete` from `marketing()->events()->basicApi()` to `marketing()->events()->changePropertyApi()`. +- Added `marketing()->events()->identifiersApi()` API. +- Moved method `doSearch()` from `marketing()->events()->basicApi()` to `marketing()->events()->identifiersApi()`. +- Renamed `marketing()->events()->participantStateApi()` to `marketing()->events()->retrieveParticipantStateApi()`. +- Changed the response object type from `\HubSpot\Client\Marketing\Events\Model\CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging|\HubSpot\Client\Marketing\Events\Model\Error` to `\HubSpot\Client\Marketing\Events\Model\CollectionResponseSearchPublicResponseWrapperNoPaging|\HubSpot\Client\Marketing\Events\Model\Error` for `marketing()->events()->identifiersApi()->doSearch()`. +- Added new property `object_id` to `HubSpot\Client\Marketing\Events\Model\MarketingEventDefaultResponse`, `HubSpot\Client\Marketing\Events\Model\MarketingEventPublicDefaultResponse` and `HubSpot\Client\Marketing\Events\Model\MarketingEventPublicReadResponse`. + +### Files + +- Changed options order and added new options from `files()->filesApi()->doSearch($properties = null, $after = null, $before = null, $limit = null, $sort = null, $id = null, $created_at = null, $created_at_lte = null, $created_at_gte = null, $updated_at = null, $updated_at_lte = null, $updated_at_gte = null, $name = null, $path = null, $parent_folder_id = null, $size = null, $height = null, $width = null, $encoding = null, $type = null, $extension = null, $url = null, $is_usable_in_content = null, $allows_anonymous_access = null)` to `files()->filesApi()->doSearch($properties = null, $after = null, $before = null, $limit = null, $sort = null, $ids = null, $id_lte = null, $id_gte = null, $created_at = null, $created_at_lte = null, $created_at_gte = null, $updated_at = null, $updated_at_lte = null, $updated_at_gte = null, $name = null, $path = null, $parent_folder_ids = null, $size = null, $size_lte = null, $size_gte = null, $height = null, $height_lte = null, $height_gte = null, $width = null, $width_lte = null, $width_gte = null, $encoding = null, $type = null, $extension = null, $url = null, $is_usable_in_content = null, $allows_anonymous_access = null, $file_md5 = null, $expires_at = null, $expires_at_lte = null, $expires_at_gte = null)`. + + + ## [12.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/12.1.0) - 2024-04-08 ## Updated From 5d0f8a98ae7b55176874f032147f16df7fad5206 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Thu, 17 Apr 2025 15:23:12 +0300 Subject: [PATCH 3/6] Changelog: Chenges in CRM Companies, Contacts and Deals --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2b4f213..8d41b7fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Moved and renamed methods `archiveBatch` => `archive`, `createBatch` => `create`, `readBatch` => `read` and `updateBatch` => `update` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->batchApi()`. - Moved methods `attachToLangGroup`, `createLangVariation`, `detachFromLangGroup`, `setLangPrimary` and `updateLangs` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->multiLanguageApi()`. +### CRM Associations + +- Added `crm()->associations()->v4()->schema()->definitionConfigurationsApi()` API. +- Renamed method `crm()->associations()->v4()->schema()->definitionsApi()->archive()` to `crm()->associations()->v4()->schema()->definitionsApi()->remove()`. + +### CRM + +- Moved method `merge()` from `crm()->companies()->mergeApi()` to `crm()->companies()->basicApi()`. +- Removed `crm()->companies()->mergeApi()` API. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Companies\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Companies\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->companies()->batchApi()->create()`. +- Made `association_category` and `association_type_id` properties required in `HubSpot\Client\Crm\Companies\Model\AssociationSpec`, `HubSpot\Client\Crm\Contacts\Model\AssociationSpec`, `HubSpot\Client\Crm\Deals\Model\AssociationSpec` +- Made `types` and `to` properties required in `HubSpot\Client\Crm\Companies\Model\PublicAssociationsForObject`, `HubSpot\Client\Crm\Contacts\Model\PublicAssociationsForObject`, `HubSpot\Client\Crm\Deals\Model\PublicAssociationsForObject`. +- Made `id` property required in `HubSpot\Client\Crm\Companies\Model\PublicObjectId`, `HubSpot\Client\Crm\Contacts\Model\PublicObjectId`, `HubSpot\Client\Crm\Deals\Model\PublicObjectId` +- Added property `object_write_trace_id` to `HubSpot\Client\Crm\Companies\Model\SimplePublicObject`, `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Companies\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObject`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicUpsertObject`,`HubSpot\Client\Crm\Deals\Model\SimplePublicObject`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Deals\Model\SimplePublicUpsertObject`, +- Removed property `object_write_trace_id` from `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectInputForCreate`. +- Moved method `merge()` from `crm()->contacts()->mergeApi()` to `crm()->contacts()->basicApi()`. +- Removed `crm()->contacts()->mergeApi()` API. +- Moved method `purge()` from `crm()->contacts()->GDPRApi()` to `crm()->contacts()->basicApi()`. +- Removed `crm()->contacts()->GDPRApi()` API. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Contacts\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Contacts\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->contacts()->batchApi()->create()`. +- Moved method `merge()` from `crm()->deals()->mergeApi()` to `crm()->deals()->basicApi()`. +- Removed `crm()->deals()->mergeApi()` API. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Deals\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Deals\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->deals()->batchApi()->create()`. + ### Events - Renamed `events()->send()->customEventDataApi()` to `events()->send()->basicApi()`. From 1f0de817d1506ab1fbfb776f0c168b81f04e8b62 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 23 Apr 2025 16:25:27 +0300 Subject: [PATCH 4/6] Update changelog --- CHANGELOG.md | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d41b7fd..2e88c00b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,12 +15,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Moved and renamed methods `archiveBatch` => `archive`, `createBatch` => `create`, `readBatch` => `read` and `updateBatch` => `update` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->batchApi()`. - Moved methods `attachToLangGroup`, `createLangVariation`, `detachFromLangGroup`, `setLangPrimary` and `updateLangs` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->multiLanguageApi()`. -### CRM Associations +### CRM - Added `crm()->associations()->v4()->schema()->definitionConfigurationsApi()` API. - Renamed method `crm()->associations()->v4()->schema()->definitionsApi()->archive()` to `crm()->associations()->v4()->schema()->definitionsApi()->remove()`. +- Added `crm()->extensions()->calling()->channelConnectionSettingsApi()` API. +- Added properties `uses_remote` and `uses_calling_window` to `HubSpot\Client\Crm\Extensions\Calling\Model\SettingsPatchRequest`, `HubSpot\Client\Crm\Extensions\Calling\Model\SettingsRequest` and `HubSpot\Client\Crm\Extensions\Calling\Model\SettingsResponse`. +- Added options `include_error_message` and `include_row_data` to `crm()->imports()->publicImportsApi()->getErrors()`. +- Added property `contains_encrypted_properties` to `HubSpot\Client\Crm\Imports\Model\ImportRowCore`. +- Added properties `invalid_property_value`, `error_message` and `invalid_value_to_display` to `HubSpot\Client\Crm\Imports\Model\PublicImportError`. +- Added property `mapped_object_type_ids` to `HubSpot\Client\Crm\Imports\Model\PublicImportResponse`. -### CRM +### CRM objects - Moved method `merge()` from `crm()->companies()->mergeApi()` to `crm()->companies()->basicApi()`. - Removed `crm()->companies()->mergeApi()` API. @@ -28,8 +34,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Made `association_category` and `association_type_id` properties required in `HubSpot\Client\Crm\Companies\Model\AssociationSpec`, `HubSpot\Client\Crm\Contacts\Model\AssociationSpec`, `HubSpot\Client\Crm\Deals\Model\AssociationSpec` - Made `types` and `to` properties required in `HubSpot\Client\Crm\Companies\Model\PublicAssociationsForObject`, `HubSpot\Client\Crm\Contacts\Model\PublicAssociationsForObject`, `HubSpot\Client\Crm\Deals\Model\PublicAssociationsForObject`. - Made `id` property required in `HubSpot\Client\Crm\Companies\Model\PublicObjectId`, `HubSpot\Client\Crm\Contacts\Model\PublicObjectId`, `HubSpot\Client\Crm\Deals\Model\PublicObjectId` -- Added property `object_write_trace_id` to `HubSpot\Client\Crm\Companies\Model\SimplePublicObject`, `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Companies\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObject`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicUpsertObject`,`HubSpot\Client\Crm\Deals\Model\SimplePublicObject`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Deals\Model\SimplePublicUpsertObject`, -- Removed property `object_write_trace_id` from `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectInputForCreate`. +- Added property `object_write_trace_id` to `HubSpot\Client\Crm\Companies\Model\SimplePublicObject`, `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Companies\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObject`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicUpsertObject`,`HubSpot\Client\Crm\Deals\Model\SimplePublicObject`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Deals\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\LineItems\Model\SimplePublicObject`, `HubSpot\Client\Crm\LineItems\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\LineItems\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\Quotes\Model\SimplePublicObject`, `HubSpot\Client\Crm\Quotes\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Quotes\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\Objects\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\Objects\Calls\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Calls\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Calls\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\Objects\Communications\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Communications\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Communications\Model\SimplePublicUpsertObject`, `HubSpot\Client\Crm\Objects\Emails\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Emails\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Emails\Model\SimplePublicUpsertObject`, +`HubSpot\Client\Crm\Objects\FeedbackSubmissions\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\FeedbackSubmissions\Model\SimplePublicObjectWithAssociations`, +`HubSpot\Client\Crm\Objects\Leads\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Leads\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Leads\Model\SimplePublicUpsertObject`, +`HubSpot\Client\Crm\Objects\Goals\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Goals\Model\SimplePublicObjectWithAssociations`, +`HubSpot\Client\Crm\Objects\Meetings\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Meetings\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Meetings\Model\SimplePublicUpsertObject`, +`HubSpot\Client\Crm\Objects\Notes\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Notes\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Notes\Model\SimplePublicUpsertObject`, +`HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicUpsertObject`, +`HubSpot\Client\Crm\Objects\Tasks\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Tasks\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Tasks\Model\SimplePublicUpsertObject`, +`HubSpot\Client\Crm\Objects\Taxes\Model\SimplePublicObject`, `HubSpot\Client\Crm\Objects\Taxes\Model\SimplePublicObjectWithAssociations`, `HubSpot\Client\Crm\Objects\Taxes\Model\SimplePublicUpsertObject`, +`HubSpot\Client\Crm\Products\Model\SimplePublicObject`, `HubSpot\Client\Crm\Products\Model\SimplePublicObjectWithAssociations` and `HubSpot\Client\Crm\Products\Model\SimplePublicUpsertObject`. +- Removed property `object_write_trace_id` from `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Companies\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Deals\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\LineItems\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\LineItems\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Quotes\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Quotes\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Calls\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Calls\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Communications\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Communications\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Emails\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Emails\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Leads\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Leads\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Meetings\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Meetings\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Notes\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Notes\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Tasks\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Tasks\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Objects\Taxes\Model\SimplePublicObjectInput`, `HubSpot\Client\Crm\Objects\Taxes\Model\SimplePublicObjectInputForCreate`, `HubSpot\Client\Crm\Products\Model\SimplePublicObjectInput` and `HubSpot\Client\Crm\Products\Model\SimplePublicObjectInputForCreate`. - Moved method `merge()` from `crm()->contacts()->mergeApi()` to `crm()->contacts()->basicApi()`. - Removed `crm()->contacts()->mergeApi()` API. - Moved method `purge()` from `crm()->contacts()->GDPRApi()` to `crm()->contacts()->basicApi()`. @@ -38,6 +53,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Moved method `merge()` from `crm()->deals()->mergeApi()` to `crm()->deals()->basicApi()`. - Removed `crm()->deals()->mergeApi()` API. - Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Deals\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Deals\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->deals()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\LineItems\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\LineItems\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->lineItems()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Quotes\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Quotes\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->quotes()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\Calls\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\Calls\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->calls()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\Emails\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\Emails\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->emails()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\Leads\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\Leads\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->leads()->batchApi()->create()`. +- Added methods `archive()`, `create()` and `update()` to `crm()->objects()->goals()->basicApi()`. +- Added methods `archive()`, `create()`, `upsert()` and `update()` to `crm()->objects()->goals()->batchApi()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\Meetings\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\Meetings\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->meetings()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\Notes\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\Notes\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->notes()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\PostalMail\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\PostalMail\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->postalMail()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\Tasks\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\Tasks\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->tasks()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Objects\Taxes\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Objects\Taxes\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->objects()->taxes()->batchApi()->create()`. +- Changed option type `batch_input_simple_public_object_input_for_create: HubSpot\Client\Crm\Products\Model\BatchInputSimplePublicObjectInputForCreate` to `batch_input_simple_public_object_batch_input_for_create: HubSpot\Client\Crm\Products\Model\BatchInputSimplePublicObjectBatchInputForCreate` in `crm()->products()->batchApi()->create()`. ### Events From e9d8a4b1802ea6d8db1c3091f542f756b335681c Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 25 Apr 2025 11:19:39 +0300 Subject: [PATCH 5/6] Update changelog --- CHANGELOG.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e88c00b..e65ed4d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,15 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/12.1.0...HEAD) +## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/12.2.0...HEAD) -## [13.0.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0-beta) - 2024-04-17 +## [13.0.0-beta](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0-beta) - 2024-04-28 ### CMS - Moved methods `archive`, `callClone`, `create`, `getById`, `pushLive`, `resetDraft`, `schedule`, `update` and `updateDraft` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->basicApi()`. - Moved and renamed methods `archiveBatch` => `archive`, `createBatch` => `create`, `readBatch` => `read` and `updateBatch` => `update` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->batchApi()`. - Moved methods `attachToLangGroup`, `createLangVariation`, `detachFromLangGroup`, `setLangPrimary` and `updateLangs` from `cms()->blogs()->blogPostsApi()` to `cms()->blogs()->multiLanguageApi()`. +- Removed `cms()->perfomance()` API client. ### CRM @@ -73,7 +74,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Renamed `events()->send()->customEventDataApi()` to `events()->send()->basicApi()`. - Added `events()->send()->batchApi()` API. -### Marketing +### Marketing Events - Renamed `marketing()->events()->attendanceSubscriberStateChangesApi()` to `marketing()->events()->addEventAttendeesApi()`. - Added new methods `recordByContactId()` and `recordByEmail()` to `marketing()->events()->addEventAttendeesApi()`. @@ -89,9 +90,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Files -- Changed options order and added new options from `files()->filesApi()->doSearch($properties = null, $after = null, $before = null, $limit = null, $sort = null, $id = null, $created_at = null, $created_at_lte = null, $created_at_gte = null, $updated_at = null, $updated_at_lte = null, $updated_at_gte = null, $name = null, $path = null, $parent_folder_id = null, $size = null, $height = null, $width = null, $encoding = null, $type = null, $extension = null, $url = null, $is_usable_in_content = null, $allows_anonymous_access = null)` to `files()->filesApi()->doSearch($properties = null, $after = null, $before = null, $limit = null, $sort = null, $ids = null, $id_lte = null, $id_gte = null, $created_at = null, $created_at_lte = null, $created_at_gte = null, $updated_at = null, $updated_at_lte = null, $updated_at_gte = null, $name = null, $path = null, $parent_folder_ids = null, $size = null, $size_lte = null, $size_gte = null, $height = null, $height_lte = null, $height_gte = null, $width = null, $width_lte = null, $width_gte = null, $encoding = null, $type = null, $extension = null, $url = null, $is_usable_in_content = null, $allows_anonymous_access = null, $file_md5 = null, $expires_at = null, $expires_at_lte = null, $expires_at_gte = null)`. +- Changed incomining parameters list in `files()->filesApi()->doSearch()`. +- Renamed method `archiveGDPR()` to `delete()` in `files.filesApi`. +- Renamed method `updateProperties()` to `updatePropertiesRecursively()` in `files.foldersApi`. +- Added new method `updateProperties()` to `files.foldersApi`. +- Changed incomining parameters list in `files()->foldersApi()->doSearch()`. +- Added properties `source_group` and `file_md5` to `HubSpot\Client\Files\Model\File`. +- Added property `clear_expires` to `HubSpot\Client\Files\Model\FileUpdateInput`. +- Changed property type from `expires_at:int` to `expires_at:\DateTime` in `HubSpot\Client\Files\Model\FileUpdateInput`. +- Added property `expires_at` to `HubSpot\Client\Files\Model\ImportFromUrlInput`. +- Removed property `id` from `HubSpot\Client\Files\Model\FolderUpdateInput`. +## [12.2.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/12.2.0) - 2025-04-28 +## Updated + +- Marked `cms()->performance()` API client as deprecated. ## [12.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/12.1.0) - 2024-04-08 @@ -941,7 +955,7 @@ ListAssociationsApi 25. getSubscriptions => getAll (webhooks()->subscriptionsApi()) 26. updateSubscription => update (webhooks()->subscriptionsApi()) -[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/12.1.0...HEAD +[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/12.2.0...HEAD [1.0.0-beta]: https://github.com/HubSpot/hubspot-api-php/releases/tag/v1.0.0-beta [1.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.1.0 [1.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.2.0 @@ -1000,3 +1014,5 @@ ListAssociationsApi [11.3.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/11.3.0 [12.0.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/12.0.0 [12.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/12.1.0 +[12.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/12.2.0 +[13.0.0-beta]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0-beta From e67c25861add19edd11735dfa76677f43ff7bdc6 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 25 Apr 2025 12:02:05 +0300 Subject: [PATCH 6/6] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b1b52063..0a4b692c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "hubspot/api-client", - "version": "12.1.0", + "version": "13.0.0-beta", "description": "Hubspot API client", "keywords": [ "hubspot",