Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 94f43ba

Browse files
authored
Merge pull request #399 from mesilov/feature/390-prepare-publish-2-0
Update CHANGELOG.md for new target release date
2 parents f67bc8a + 17532dc commit 94f43ba

File tree

560 files changed

+8490
-2276
lines changed

Some content is hidden

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

560 files changed

+8490
-2276
lines changed

CHANGELOG.md

Lines changed: 62 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# bitrix24-php-sdk change log
22

3-
## 2.0-beta.3 — 1.07.2024
3+
## 2.0-beta.3 — 15.08.2024
44

55
### Added
66

@@ -10,6 +10,7 @@
1010
* `symfony/filesystem` version `^6 || ^7`
1111
* `symfony/mime` version `^6 || ^7`
1212
* `nesbot/carbon` version `3.3.*`
13+
* `mesilov/moneyphp-percentage` version `0.2.*`
1314
* add scope `bizproc` and [services](https://github.com/mesilov/bitrix24-php-sdk/issues/376) for work with workflows:
1415
* `Activity` – service for work with application activities:
1516
* `add` – adds new activity to a workflow
@@ -44,7 +45,7 @@
4445
* add `Bitrix24\SDK\Infrastructure\Filesystem\Base64Encoder` for work with base64 encoding
4546
* add `Bitrix24\SDK\Core\Exceptions\FileNotFoundException` if file not found
4647
* add `Bitrix24\SDK\Core\Exceptions\MethodConfirmWaitingException` if api call waiting for confirm
47-
* add `Bitrix24\SDK\Core\Exceptions\UserNotFoundOrIsNotActiveException` exception if user not found, or it is not active
48+
* add `Bitrix24\SDK\Core\Exceptions\UserNotFoundOrIsNotActiveException` exception if user not found, or it is not active
4849
* add `Bitrix24\SDK\Core\Result\UserInterfaceDialogCallResult` result of call UI
4950
* add `Bitrix24\SDK\Core\Result\EmptyResult` empty result
5051
* add `IncomingRobotRequest` wrapper for data from crm-robot request
@@ -54,13 +55,25 @@
5455
* add method `Bitrix24\SDK\Application\Requests\Events\AbstractEventRequest::getAuth` - get event auth token
5556
* add method `Bitrix24\SDK\Application\Requests\Events\EventAuthItem` - event auth token
5657
* add method `Bitrix24\SDK\Application\Requests\Events\EventInterface` - for event fabrics
57-
* add method `Bitrix24\SDK\Infrastructure\Filesystem\Base64Encoder::encodeCallRecord(string $filename): string` - for work with call records
58+
* add method `Bitrix24\SDK\Infrastructure\Filesystem\Base64Encoder::encodeCallRecord(string $filename): string` - for
59+
work with call records
5860
* add class `Bitrix24\SDK\Services\Main\Service\EventManager` - improve DX for work with events lifecycle bind or unbind
5961
* add method `Bitrix24\SDK\Services\Main\Common\EventHandlerMetadata` - improve DX for work with install events
60-
* improve DX - add [Rector](https://github.com/rectorphp/rector) for improve code quality and speed up releases cycle
62+
* add enum `Bitrix24\SDK\Services\CRM\Common\Result\DiscountType`
63+
* add exception `Bitrix24\SDK\Core\Exceptions\WrongAuthTypeException` – if you use wrong auth type.
64+
* add class fields filter `Bitrix24\SDK\Core\Fields\FieldsFilter` for fields filtration in result array.
65+
* improve DX – add [Rector](https://github.com/rectorphp/rector) for improve code quality and speed up releases cycle
66+
* improve DX – add attributes for generate documentation and calculate methods coverage.
67+
* command for generate documentation
68+
```shell
69+
php bin/console b24:util:generate-coverage-documentation
70+
```
71+
* improve DX – add [internal documentation](/docs/EN/documentation.md).
6172

6273
### Changed
74+
6375
* ❗️ migrate from `ramsey/uuid` to `symfony/uid`
76+
* ❗️ migrate from `DateTimeImmutable` to `CarbonImmutable` from [carbon](https://github.com/briannesbitt/carbon)
6477
* ❗️ refactor `Bitrix24\SDK\Application\Contracts`:
6578

6679
* ❗️ update scope `telephony`, scope fully rewritten
@@ -95,34 +108,52 @@
95108
* `get` - method returns user settings
96109
* `Voices` - work with voximplant tts voices
97110
* `get` - method returns all voximplant voices
98-
* `Line` - work with voximplant sip lines
99-
* `outgoingSipSet` - method sets the selected SIP line as an outgoing line by default.
100-
* `get` - returns list of all of the available outgoing lines
101-
* `outgoingGet` - returns the currently selected line as an outgoing line by default.
102-
* `outgoingSet` - sets the selected line as an outgoing line by default.
103-
* `InfoCall` - work with voximplant info call functional
104-
* `startWithText` - method performs the call to the specified number with automatic voiceover of specified
105-
text
106-
* `startWithSound` - method makes a call to the specified number with playback of .mp3 format file by URL.
107-
* `Url` - work with links for browsing telephony scope pages
108-
* `get` - returns a set of links for browsing telephony scope pages.
111+
* `Line` - work with voximplant sip lines
112+
* `outgoingSipSet` - method sets the selected SIP line as an outgoing line by default.
113+
* `get` - returns list of all of the available outgoing lines
114+
* `outgoingGet` - returns the currently selected line as an outgoing line by default.
115+
* `outgoingSet` - sets the selected line as an outgoing line by default.
116+
* `InfoCall` - work with voximplant info call functional
117+
* `startWithText` - method performs the call to the specified number with automatic voiceover of
118+
specified
119+
text
120+
* `startWithSound` - method makes a call to the specified number with playback of .mp3 format file by
121+
URL.
122+
* `Url` - work with links for browsing telephony scope pages
123+
* `get` - returns a set of links for browsing telephony scope pages.
109124
* add events with payload and `TelephonyEventsFabric`:
110-
* `OnExternalCallBackStart` - It is called when a visitor fills out a CRM form for callback. Your application shall be selected in the form settings as the line that to be used for a callback.
111-
* `OnExternalCallStart` - The event handler is called whenever a user clicks a phone number in CRM object to initiate an outbound call.
112-
* `OnVoximplantCallEnd` - The event is raised when conversation ends (history entry).
113-
* `OnVoximplantCallInit` - The event is raised when a call is being initialized (regarding the entry or start of an outbound call).
114-
* `OnVoximplantCallStart` - The event is raised when a conversation starts (operator responds to an inbound call; call recipient responds to an outbound call).
125+
* `OnExternalCallBackStart` - It is called when a visitor fills out a CRM form for callback. Your application
126+
shall be selected in the form settings as the line that to be used for a callback.
127+
* `OnExternalCallStart` - The event handler is called whenever a user clicks a phone number in CRM object to
128+
initiate an outbound call.
129+
* `OnVoximplantCallEnd` - The event is raised when conversation ends (history entry).
130+
* `OnVoximplantCallInit` - The event is raised when a call is being initialized (regarding the entry or start of
131+
an outbound call).
132+
* `OnVoximplantCallStart` - The event is raised when a conversation starts (operator responds to an inbound
133+
call; call recipient responds to an outbound call).
115134
* add `TranscriptMessage` – data structure for transcript message item
116135
* add `TranscriptMessageSide` – enum for describe side of diarization
117136
* add `CallType` – call types enum
118137
* add `CrmEntityType` – crm entity type enum
119138
* add `PbxType` – pbx type enum
120139
* add `SipRegistrationStatus` – pbx sip line registration status
121-
* change signature `Bitrix24\SDK\Core\Credentials\AccessToken::getRefreshToken()?string;` - add nullable option for event tokens
140+
* ❗️ update scope `im`, add service `Notify`:
141+
* `fromSystem` - Sending system notification
142+
* `fromPersonal` - Sending personal notification
143+
* `delete` – Deleting notification
144+
* `markAsRead` - Cancels notification for read messages.
145+
* `markMessagesAsRead` – "Read" the list of notifications, excluding CONFIRM notification type.
146+
* `markMessagesAsUnread` – "Unread" the list of notifications, excluding CONFIRM notification type.
147+
* `confirm` – Interaction with notification buttons
148+
* `answer` – Response to notification, supporting quick reply
149+
* change signature `Bitrix24\SDK\Core\Credentials\AccessToken::getRefreshToken()?string;` - add nullable option for
150+
event tokens
122151
* change signature `Bitrix24\SDK\Core\Commands\Command::getName():?string` renamed to `getId():string`
123-
152+
* add fields and change return types in `Bitrix24\SDK\Services\CRM\Deal\Result\DealProductRowItemResult`
153+
* change typehints in `Bitrix24\SDK\Services\CRM\Activity\Service\Activity::add`
124154

125155
### Deleted
156+
126157
* remove class `Bitrix24\SDK\Application\Requests\Events\OnApplicationInstall\Auth`
127158
* remove class `Bitrix24\SDK\Application\Requests\Events\OnApplicationUninstall\Auth`
128159
* remove method `Bitrix24\SDK\Core\Response\Response::__destruct`
@@ -132,9 +163,9 @@
132163

133164
### Bugfix
134165

135-
* fix [typehint for Bitrix24 User entity with field ID](https://github.com/mesilov/bitrix24-php-sdk/issues/382)
136-
* fix [default arguments for Bitrix24 User get method](https://github.com/mesilov/bitrix24-php-sdk/issues/381)
137-
* fix [limit argument not worked in batch list and read model](https://github.com/mesilov/bitrix24-php-sdk/issues/389)
166+
* fix [typehint for Bitrix24 User entity with field ID](https://github.com/mesilov/bitrix24-php-sdk/issues/382)
167+
* fix [default arguments for Bitrix24 User get method](https://github.com/mesilov/bitrix24-php-sdk/issues/381)
168+
* fix [limit argument not worked in batch list and read model](https://github.com/mesilov/bitrix24-php-sdk/issues/389)
138169

139170
## 2.0-beta.2 — 1.04.2024
140171

@@ -220,7 +251,8 @@
220251
* fix [typehint at ContactItemResult](https://github.com/mesilov/bitrix24-php-sdk/issues/320)
221252
* fix [return types in DealCategoryItemResult](https://github.com/mesilov/bitrix24-php-sdk/issues/322)
222253
* fix [add auth node in telephony voximplant events requests](https://github.com/mesilov/bitrix24-php-sdk/issues/331)
223-
* fix [add helper metods isError for registerCallResult fortelephony](https://github.com/mesilov/bitrix24-php-sdk/issues/335)
254+
*
255+
fix [add helper metods isError for registerCallResult fortelephony](https://github.com/mesilov/bitrix24-php-sdk/issues/335)
224256
* fix [add return type for crm multifields phone, email, im](https://github.com/mesilov/bitrix24-php-sdk/issues/338)
225257
* fix errors in `ShowFieldsDescriptionCommand` metadata reader CLI command
226258
* fix errors for `ApplicationProfile` with empty scope
@@ -294,11 +326,13 @@
294326
, `createFromPlacementRequest`
295327
*
296328

297-
❗️deleted [unused class](https://github.com/mesilov/bitrix24-php-sdk/issues/303) `Bitrix24\SDK\Core\Response\DTO\ResponseDataCollection`
329+
❗️deleted [unused class](https://github.com/mesilov/bitrix24-php-sdk/issues/303)
330+
`Bitrix24\SDK\Core\Response\DTO\ResponseDataCollection`
298331

299332
*
300333

301-
❗️deleted [redundant class](https://github.com/mesilov/bitrix24-php-sdk/issues/303) `Bitrix24\SDK\Core\Response\DTO\Result`
334+
❗️deleted [redundant class](https://github.com/mesilov/bitrix24-php-sdk/issues/303)
335+
`Bitrix24\SDK\Core\Response\DTO\Result`
302336

303337
* ❗️deleted [method](https://github.com/mesilov/bitrix24-php-sdk/issues/303) `CoreBuilder::withWebhookUrl`, use
304338
method `CoreBuilder::withCredentials`

MIT-LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2022 Maxim Mesilov
1+
Copyright 2024 Maksim Mesilov
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,37 @@
1+
# This file is part of the bitrix24-php-sdk package.
2+
#
3+
# © Maksim Mesilov <mesilov.maxim@gmail.com>
4+
#
5+
# For the full copyright and license information, please view the MIT-LICENSE.txt
6+
# file that was distributed with this source code.
7+
18
default:
29
@echo "make needs target:"
310
@egrep -e '^\S+' ./Makefile | grep -v default | sed -r 's/://' | sed -r 's/^/ - /'
411

12+
# load default and personal env-variables
13+
ENV := $(PWD)/tests/.env
14+
ENV_LOCAL := $(PWD)/tests/.env.local
15+
include $(ENV)
16+
include $(ENV_LOCAL)
17+
18+
debug-show-env:
19+
@echo BITRIX24_WEBHOOK $(BITRIX24_WEBHOOK)
20+
@echo DOCUMENTATION_DEFAULT_TARGET_BRANCH $(DOCUMENTATION_DEFAULT_TARGET_BRANCH)
21+
22+
# build documentation
23+
build-documentation:
24+
php bin/console b24:util:generate-coverage-documentation --webhook=$(BITRIX24_WEBHOOK) --repository-url=https://github.com/mesilov/bitrix24-php-sdk --repository-branch=$(DOCUMENTATION_DEFAULT_TARGET_BRANCH) --file=docs/EN/Services/bitrix24-php-sdk-methods.md
25+
26+
# linters
527
lint-phpstan:
628
vendor/bin/phpstan --memory-limit=1G analyse
729
lint-rector:
830
vendor/bin/rector process --dry-run
931
lint-rector-fix:
1032
vendor/bin/rector process
1133

34+
# unit tests
1235
test-unit:
1336
vendor/bin/phpunit --testsuite unit_tests --display-warnings
1437

@@ -17,7 +40,15 @@ test-integration-scope-telephony:
1740
vendor/bin/phpunit --testsuite integration_tests_scope_telephony
1841
test-integration-scope-workflows:
1942
vendor/bin/phpunit --testsuite integration_tests_scope_workflows
43+
test-integration-scope-im:
44+
vendor/bin/phpunit --testsuite integration_tests_scope_im
45+
test-integration-scope-placement:
46+
vendor/bin/phpunit --testsuite integration_tests_scope_placement
47+
test-integration-scope-im-open-lines:
48+
vendor/bin/phpunit --testsuite integration_tests_scope_im_open_lines
2049
test-integration-scope-user:
2150
vendor/bin/phpunit --testsuite integration_tests_scope_user
51+
test-integration-scope-user-consent:
52+
vendor/bin/phpunit --testsuite integration_tests_scope_user_consent
2253
test-integration-core:
2354
vendor/bin/phpunit --testsuite integration_tests_core

0 commit comments

Comments
 (0)