|
1 | 1 | # b24-php-sdk change log
|
2 | 2 |
|
| 3 | +## 1.3.0 – 2025.04.23 |
| 4 | + |
| 5 | +### Added |
| 6 | + |
| 7 | +- Added **PHP 8.4** [support](https://github.com/bitrix24/b24phpsdk/issues/120) 🚀 |
| 8 | +- Added method `Bitrix24\SDK\Services\Main\Service::guardValidateCurrentAuthToken` for validate current auth token with |
| 9 | + api-call `app.info` on vendor OAUTH server. |
| 10 | +- Added support new scope `entity` |
| 11 | +- Added service `Services\Entity\Service\Item` with support methods, |
| 12 | + see [fix entity.item.* methods](https://github.com/bitrix24/b24phpsdk/issues/53): |
| 13 | + - `get` get item, with batch calls support |
| 14 | + - `add` add new item, with batch calls support |
| 15 | + - `delete` delete item, with batch calls support |
| 16 | + - `update` update item, with batch calls support |
| 17 | +- Added service `Services\Entity\Service\Entity` with support methods, |
| 18 | + see [fix entity.* methods](https://github.com/bitrix24/b24phpsdk/issues/53): |
| 19 | + - `get` get entity |
| 20 | + - `add` add new entity |
| 21 | + - `delete` delete entity |
| 22 | + - `update` update entity |
| 23 | + - `rights` get or change access permissions |
| 24 | +- Added new application scope nodes `humanresources.hcmlink` and `sign.b2e` |
| 25 | +- Added method `Bitrix24\SDK\Core\Credentials\Scope::contains` for check is current scope code contains in scope, for |
| 26 | + task «[split cli commands](https://github.com/bitrix24/b24phpsdk/issues/92)» |
| 27 | +- Added method `Bitrix24\SDK\Core\Credentials\Scope::getAvailableScopeCodes` returned all available scope codes, for |
| 28 | + task «[split cli commands](https://github.com/bitrix24/b24phpsdk/issues/92)» |
| 29 | +- Added service `Services\CRM\VatRates\Service\Vat` with support methods, |
| 30 | + see [add crm.vat.* methods](https://github.com/bitrix24/b24phpsdk/issues/20): |
| 31 | + - `get` get vat rate by id |
| 32 | + - `add` add new vat rate |
| 33 | + - `delete` delete vat rate |
| 34 | + - `list` get list of vat rates |
| 35 | + - `update` update vat rate |
| 36 | +- Added service `Services\CRM\Contact\Service\ContactCompany` with support methods, |
| 37 | + see [crm.contact.company.* methods](https://github.com/bitrix24/b24phpsdk/issues/20): |
| 38 | + - `fields` get fields for contact with company connection |
| 39 | + - `setItems` set companies related with contact |
| 40 | + - `get` get companies related with contact |
| 41 | + - `deleteItems` delete all relations for contact |
| 42 | + - `add` add company relation with contact |
| 43 | + - `delete` delete company relation with contact |
| 44 | +- Added service `Services\CRM\Requisites\Service\Requisite` with support methods, |
| 45 | + see [crm.requisite.* methods](https://github.com/bitrix24/b24phpsdk/issues/20): |
| 46 | + - `fields` get fields for requisite item |
| 47 | + - `list` get requisites list |
| 48 | + - `get` returns a requisite by the requisite id |
| 49 | + - `add` add requisite |
| 50 | + - `delete` delete requisite and related objects |
| 51 | + - `update` delete requisite |
| 52 | +- Added service `Services\CRM\Requisites\Service\RequisitePreset` with support methods, |
| 53 | + see [crm.requisite.preset.* methods](https://github.com/bitrix24/b24phpsdk/issues/20): |
| 54 | + - `fields` get fields for requisite item |
| 55 | + - `list` get requisites list |
| 56 | + - `get` returns a requisite by the requisite id |
| 57 | + - `add` add requisite |
| 58 | + - `countries` get countries list |
| 59 | + - `delete` delete requisite and related objects |
| 60 | + - `update` delete requisite |
| 61 | +- Added batch service `Bitrix24\SDK\Services\User\Service\Batch` |
| 62 | + with [support methods](https://github.com/bitrix24/b24phpsdk/issues/103): |
| 63 | + - `add` add (invite) users |
| 64 | + - `get` get users list |
| 65 | +Added service `Services\AI\Engine\Service\Engine` with support methods: |
| 66 | + - `ai.engine.register` - method registers an engine and updates it upon subsequent calls |
| 67 | + - `ai.engine.list` - get the list of ai services |
| 68 | + - `ai.engine.unregister` - Delete registered ai service |
| 69 | +Added class `Bitrix24\SDK\Core\Exceptions\LogicException` for logic exceptions |
| 70 | +- Developer experience: added cli command `b24-dev:show-sdk-coverage-statistics` for show actual SDK coverage for |
| 71 | + REST-API, see task «[split cli commands](https://github.com/bitrix24/b24phpsdk/issues/92)» |
| 72 | +- Developer experience: added class `Bitrix24\SDK\Deprecations\DeprecatedMethods` with list of |
| 73 | + all [deprecated methods](https://github.com/bitrix24/b24phpsdk/issues/97) |
| 74 | +- Developer experience: commands from makefile now run inside docker container `php-cli` |
| 75 | +- Developer experience: added cache folder in phpstan config |
| 76 | +- Developer experience: added article «[How to Contribute to Bitrix24 PHP SDK](docs/EN/Development/how-to-contribute.md)» |
| 77 | +### Changed |
| 78 | + |
| 79 | +- Added nullable argument `$scope` in method `Bitrix24\SDK\Attributes\Services::getSupportedInSdkApiMethods`, |
| 80 | + for task «[split cli commands](https://github.com/bitrix24/b24phpsdk/issues/92)» |
| 81 | +- Added class `Bitrix24\SDK\Core\Exceptions\LogicException` for logic exceptions, |
| 82 | + for task «[fix contract tests](https://github.com/bitrix24/b24phpsdk/issues/129)» |
| 83 | +- Changed method signature `Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity::updateApplicationVersion`, for |
| 84 | + task «[add bitrixUserId and AuthToken](https://github.com/bitrix24/b24phpsdk/issues/115)» |
| 85 | +- Developer experience: webhook example moved to |
| 86 | + repository [bitrix24/b24sdk-examples](https://github.com/bitrix24/b24sdk-examples/tree/main/php/quick-start/simple/02-work-with-webhook) |
| 87 | + |
| 88 | +### Fixed |
| 89 | + |
| 90 | +- Fixed errors in `Bitrix24\SDK\Core\Batch` for method |
| 91 | + `user.get`, [see details](https://github.com/bitrix24/b24phpsdk/issues/103) |
| 92 | +- Fixed errors in `Bitrix24\SDK\Core\Batch` for methods `entity.item.get` and |
| 93 | + `entity.item.update`, [see details](https://github.com/bitrix24/b24phpsdk/issues/53) |
| 94 | +- Fixed errors in `Bitrix24\SDK\Core\ApiClient` for methods with strict arguments |
| 95 | + order, [see details](https://github.com/bitrix24/b24phpsdk/issues/101) |
| 96 | +- Fixed errors in `ApplicationInstallationRepositoryInterfaceTest` for work with storage [see details](https://github.com/bitrix24/b24phpsdk/issues/123) |
| 97 | +- Fixed errors in `Bitrix24AccountInterfaceTest`, remove some [arguments in constructor](https://github.com/bitrix24/b24phpsdk/issues/141) |
| 98 | + |
| 99 | +### Security |
| 100 | + |
| 101 | +- Added method `Bitrix24\SDK\Services\Main\Service::guardValidateCurrentAuthToken` for validate current auth token with |
| 102 | + api-call `app.info` on vendor OAUTH server. You can validate incoming tokens from placements and events |
| 103 | + |
| 104 | +### Removed |
| 105 | + |
| 106 | +- Developer experience: removed example webhook-error-handling, see |
| 107 | + example [02-work-with-webhook](https://github.com/bitrix24/b24sdk-examples/tree/main/php/quick-start/simple/02-work-with-webhook) |
| 108 | + |
| 109 | +### Statistics |
| 110 | + |
| 111 | +``` |
| 112 | +Bitrix24 API-methods count: 1146 |
| 113 | +Supported in bitrix24-php-sdk methods count: 227 |
| 114 | +Coverage percentage: 19.81% 🚀 |
| 115 | +Supported in bitrix24-php-sdk methods with batch wrapper count: 29 |
| 116 | +``` |
| 117 | + |
| 118 | +<!-- |
| 119 | +## Unreleased |
| 120 | +### Added |
| 121 | +### Changed |
| 122 | +### Removed |
| 123 | +### Fixed |
| 124 | +### Security |
| 125 | +--> |
| 126 | + |
3 | 127 | ## 1.2.0 – 2024.12.7
|
4 | 128 |
|
5 | 129 | ### Added
|
@@ -180,15 +304,6 @@ Coverage percentage: 16.83% 🚀
|
180 | 304 | Supported in bitrix24-php-sdk methods with batch wrapper count: 22
|
181 | 305 | ```
|
182 | 306 |
|
183 |
| -<!-- |
184 |
| -## Unreleased |
185 |
| -### Added |
186 |
| -### Changed |
187 |
| -### Removed |
188 |
| -### Fixed |
189 |
| -### Security |
190 |
| ---> |
191 |
| - |
192 | 307 | ## 1.1.0 – 2024.09.25
|
193 | 308 |
|
194 | 309 | ### Added
|
|
0 commit comments