|
1 | 1 | # bitrix24-php-sdk change log
|
2 | 2 |
|
3 |
| -## 2.0-beta.3 — 1.07.2024 |
| 3 | +## 2.0-beta.3 — 15.08.2024 |
4 | 4 |
|
5 | 5 | ### Added
|
6 | 6 |
|
|
10 | 10 | * `symfony/filesystem` version `^6 || ^7`
|
11 | 11 | * `symfony/mime` version `^6 || ^7`
|
12 | 12 | * `nesbot/carbon` version `3.3.*`
|
| 13 | + * `mesilov/moneyphp-percentage` version `0.2.*` |
13 | 14 | * add scope `bizproc` and [services](https://github.com/mesilov/bitrix24-php-sdk/issues/376) for work with workflows:
|
14 | 15 | * `Activity` – service for work with application activities:
|
15 | 16 | * `add` – adds new activity to a workflow
|
|
44 | 45 | * add `Bitrix24\SDK\Infrastructure\Filesystem\Base64Encoder` for work with base64 encoding
|
45 | 46 | * add `Bitrix24\SDK\Core\Exceptions\FileNotFoundException` if file not found
|
46 | 47 | * 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 |
48 | 49 | * add `Bitrix24\SDK\Core\Result\UserInterfaceDialogCallResult` result of call UI
|
49 | 50 | * add `Bitrix24\SDK\Core\Result\EmptyResult` empty result
|
50 | 51 | * add `IncomingRobotRequest` wrapper for data from crm-robot request
|
|
54 | 55 | * add method `Bitrix24\SDK\Application\Requests\Events\AbstractEventRequest::getAuth` - get event auth token
|
55 | 56 | * add method `Bitrix24\SDK\Application\Requests\Events\EventAuthItem` - event auth token
|
56 | 57 | * 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 |
58 | 60 | * add class `Bitrix24\SDK\Services\Main\Service\EventManager` - improve DX for work with events lifecycle bind or unbind
|
59 | 61 | * 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). |
61 | 72 |
|
62 | 73 | ### Changed
|
| 74 | + |
63 | 75 | * ❗️ migrate from `ramsey/uuid` to `symfony/uid`
|
| 76 | +* ❗️ migrate from `DateTimeImmutable` to `CarbonImmutable` from [carbon](https://github.com/briannesbitt/carbon) |
64 | 77 | * ❗️ refactor `Bitrix24\SDK\Application\Contracts`:
|
65 | 78 |
|
66 | 79 | * ❗️ update scope `telephony`, scope fully rewritten
|
|
95 | 108 | * `get` - method returns user settings
|
96 | 109 | * `Voices` - work with voximplant tts voices
|
97 | 110 | * `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. |
109 | 124 | * 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). |
115 | 134 | * add `TranscriptMessage` – data structure for transcript message item
|
116 | 135 | * add `TranscriptMessageSide` – enum for describe side of diarization
|
117 | 136 | * add `CallType` – call types enum
|
118 | 137 | * add `CrmEntityType` – crm entity type enum
|
119 | 138 | * add `PbxType` – pbx type enum
|
120 | 139 | * 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 |
122 | 151 | * 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` |
124 | 154 |
|
125 | 155 | ### Deleted
|
| 156 | + |
126 | 157 | * remove class `Bitrix24\SDK\Application\Requests\Events\OnApplicationInstall\Auth`
|
127 | 158 | * remove class `Bitrix24\SDK\Application\Requests\Events\OnApplicationUninstall\Auth`
|
128 | 159 | * remove method `Bitrix24\SDK\Core\Response\Response::__destruct`
|
|
132 | 163 |
|
133 | 164 | ### Bugfix
|
134 | 165 |
|
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) |
138 | 169 |
|
139 | 170 | ## 2.0-beta.2 — 1.04.2024
|
140 | 171 |
|
|
220 | 251 | * fix [typehint at ContactItemResult](https://github.com/mesilov/bitrix24-php-sdk/issues/320)
|
221 | 252 | * fix [return types in DealCategoryItemResult](https://github.com/mesilov/bitrix24-php-sdk/issues/322)
|
222 | 253 | * 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) |
224 | 256 | * fix [add return type for crm multifields phone, email, im](https://github.com/mesilov/bitrix24-php-sdk/issues/338)
|
225 | 257 | * fix errors in `ShowFieldsDescriptionCommand` metadata reader CLI command
|
226 | 258 | * fix errors for `ApplicationProfile` with empty scope
|
|
294 | 326 | , `createFromPlacementRequest`
|
295 | 327 | *
|
296 | 328 |
|
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` |
298 | 331 |
|
299 | 332 | *
|
300 | 333 |
|
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` |
302 | 336 |
|
303 | 337 | * ❗️deleted [method](https://github.com/mesilov/bitrix24-php-sdk/issues/303) `CoreBuilder::withWebhookUrl`, use
|
304 | 338 | method `CoreBuilder::withCredentials`
|
|
0 commit comments