Skip to content

Commit bf1cb0c

Browse files
authored
Merge pull request #96 from bitrix24/dev
publish 1.3.0 release
2 parents 67d8b0c + a1b2922 commit bf1cb0c

File tree

125 files changed

+6555
-757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+6555
-757
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
/composer.lock export-ignore
99
/phpunit.xml.dist export-ignore
1010
/rector.php export-ignore
11-
/Makefile export-ignore
11+
/Makefile export-ignore
12+
/var/

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/license-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: "composer update --no-interaction --no-progress --no-suggest"
3939

4040
- name: "composer-license-checker"
41-
run: "make lint-allowed-licenses"
41+
run: "vendor/bin/composer-license-checker"
4242

4343
- name: "is allowed licenses check succeeded"
4444
if: ${{ success() }}

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: "composer update --no-interaction --no-progress --no-suggest"
3939

4040
- name: "PhpCsFixer"
41-
run: "make lint-cs-fixer"
41+
run: "vendor/bin/php-cs-fixer check --verbose --diff"
4242

4343
- name: "is PhpCsFixer check succeeded"
4444
if: ${{ success() }}

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: "composer update --no-interaction --no-progress --no-suggest"
3939

4040
- name: "PHPStan"
41-
run: "make lint-phpstan"
41+
run: "vendor/bin/phpstan --memory-limit=2G analyse -vvv"
4242

4343
- name: "is PHPStan check succeeded"
4444
if: ${{ success() }}

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
composer update ${{ env.COMPOSER_FLAGS }}
3838
3939
- name: "run Rector"
40-
run: "make lint-rector"
40+
run: "vendor/bin/rector process --dry-run"
4141

4242
- name: "is Rector check succeeded"
4343
if: ${{ success() }}

.php-cs-fixer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
$finder = Finder::create()
88
->in(__DIR__ . '/src/Infrastructure/Console/Commands/')
9+
->in(__DIR__ . '/src/Services/CRM/VatRates/')
10+
->in(__DIR__ . '/src/Services/CRM/Contact/')
11+
->in(__DIR__ . '/src/Services/CRM/Requisites/')
912
->name('*.php')
1013
->exclude(['vendor', 'storage', 'docker', 'docs']) // Exclude directories
1114
->ignoreDotFiles(true)

CHANGELOG.md

Lines changed: 124 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,129 @@
11
# b24-php-sdk change log
22

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+
3127
## 1.2.0 – 2024.12.7
4128

5129
### Added
@@ -180,15 +304,6 @@ Coverage percentage: 16.83% 🚀
180304
Supported in bitrix24-php-sdk methods with batch wrapper count: 22
181305
```
182306

183-
<!--
184-
## Unreleased
185-
### Added
186-
### Changed
187-
### Removed
188-
### Fixed
189-
### Security
190-
-->
191-
192307
## 1.1.0 – 2024.09.25
193308

194309
### Added

0 commit comments

Comments
 (0)