diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b787c3d..10e204bb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,27 @@ 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/13.0.1...HEAD) +## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.2.0...HEAD) + +## [13.2.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.2.0) - 2025-12-17 + +### Updates + +- Updated `ObjectType` enum. + +## [13.1.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.1) - 2025-11-17 + +### Fixes + +- Fixed typing in `ObjectTypeIDs` enum. + +## [13.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0) - 2025-11-13 + +### Updates + +- Added `ObjectTypeIDs` enum. +- Updated `AssociationTypes` enum. +- Updated `crm()->obects()` API client. ## [13.0.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.1) - 2025-05-13 @@ -982,7 +1002,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 25. getSubscriptions => getAll (webhooks()->subscriptionsApi()) 26. updateSubscription => update (webhooks()->subscriptionsApi()) -[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.0.1...HEAD +[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.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 @@ -1045,3 +1065,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [13.0.0beta.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0beta.1 [13.0.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0 [13.0.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.1 +[13.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0 +[13.1.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.1 +[13.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.2.0 diff --git a/README.md b/README.md index 7f0350e3a..94d41ebf4 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ $hubspot->crm()->contacts()->basicApi()->archive($contactId); #### Get custom objects page ```php -$hubspot->crm()->objects()->basicApi()->getPage(HubSpot\Crm\ObjectType::CONTACTS) +$hubspot->crm()->objects()->basicApi()->getPage($objectType) ``` #### File uploading diff --git a/composer.json b/composer.json index 771323e9a..b6eada958 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "hubspot/api-client", - "version": "13.0.1", + "version": "13.2.0", "description": "Hubspot API client", "keywords": [ "hubspot", @@ -32,8 +32,8 @@ }, "autoload": { "psr-4": { - "HubSpot\\Client\\" : "codegen/", - "HubSpot\\" : "lib/", + "HubSpot\\Client\\": "codegen/", + "HubSpot\\": "lib/", "Hubspot\\Tests\\": "tests/" } } diff --git a/lib/Crm/ObjectType.php b/lib/Crm/ObjectType.php index 25f740aa5..7ab68b416 100644 --- a/lib/Crm/ObjectType.php +++ b/lib/Crm/ObjectType.php @@ -4,11 +4,27 @@ class ObjectType { - public const CONTACTS = 'contacts'; public const COMPANIES = 'companies'; + public const CONTACTS = 'contacts'; public const DEALS = 'deals'; + public const TICKETS = 'tickets'; + public const APPOINTMENTS = 'appointments'; + public const CALLS = 'calls'; + public const COMMUNICATIONS = 'communications'; + public const COURSES = 'courses'; + public const EMAILS = 'emails'; + public const FEEDBACK_SUBMISSIONS = 'feedback_submissions'; + public const INVOICES = 'invoices'; + public const LEADS = 'leads'; public const LINE_ITEMS = 'line_items'; + public const MEETINGS = 'meetings'; + public const NOTES = 'notes'; + public const ORDERS = 'order'; + public const PAYMENTS = 'commerce_payments'; + public const POSTAL_MAIL = 'postal_mail'; public const PRODUCTS = 'products'; - public const TICKETS = 'tickets'; public const QUOTES = 'quotes'; + public const SUBSCRIPTIONS = 'subscriptions'; + public const TASKS = 'tasks'; + public const USERS = 'users'; } diff --git a/lib/Enums/ObjectTypeIDs.php b/lib/Enums/ObjectTypeIDs.php new file mode 100644 index 000000000..ce0ff8dde --- /dev/null +++ b/lib/Enums/ObjectTypeIDs.php @@ -0,0 +1,33 @@ +