Added
- Added service
CRM\Company\Service
with support methods, see add crm.company.* methods:get
get company by idadd
add new company with batch supportdelete
delete company by id with batch supportlist
get list of companies with batch supportupdate
update companies with batch supportcountByFilter
count companies count with filter
- Added service
CRM\Company\Service\CompanyUserfield
with support methods, see add crm.company.* methods:add
add userfield to companyget
get userfield to companylist
list userfieldsdelete
delete userfieldupdate
update userfield
- Added service
CRM\Company\Service\CompanyCompanyContact
with support methods, see add crm.company.* methods:fields
get fiels for company contact connectionsetItems
set contacts related with companyget
get contacts related to companydeleteItems
delete all relations for companyadd
add contact relation with companydelete
delete contact relation with company
- Added service
CRM\Company\Service\CompanyDetailsConfiguration
with support methods, see add crm.company.* methods:getPersonal
method retrieves the settings of company cards for personal usergetGeneral
method retrieves the settings of company cards for all usersresetPersonal
method reset for item user settingsresetGeneral
method reset all card settings for all userssetPersonal
method set card configurationsetGeneral
method set card configuration for all companysetForceCommonConfigForAll
method set common detail form for All Users
- Added support for events:
OnCrmCompanyAdd
OnCrmCompanyDelete
OnCrmCompanyUpdate
OnCrmCompanyUserFieldAdd
OnCrmCompanyUserFieldDelete
OnCrmCompanyUserFieldSetEnumValues
OnCrmCompanyUserFieldUpdate
- Added service
CRM\Enum\Service\Enum
with support methods:activityStatus
activityNotifyType
activityPriority
activityDirection
activityType
addressType
contentType
orderOwnerTypes
settingsMode
fields
ownerType
- Added enums:
Bitrix24\SDK\Services\CRM\Enum\AddressType
Bitrix24\SDK\Services\CRM\Enum\ContentType
Bitrix24\SDK\Services\CRM\Enum\CrmSettingsMode
- Added methods for filtration entity fields in
Bitrix24\SDK\Core\Fields\FieldsFilter
:Bitrix24\SDK\Core\Fields\FieldsFilter::filterUserFields
Bitrix24\SDK\Core\Fields\FieldsFilter::filterSmartProcessFields
- Added method
Bitrix24AccountRepositoryInterface::findByApplicationToken
in contracts for
support «Delete Application» use case - Added
Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Exceptions\MultipleBitrix24AccountsFoundException
- Added nullable comments in events
Bitrix24AccountBlockedEvent
andBitrix24AccountUnblockedEvent
,
see add comment to events. - Add result type
Bitrix24\SDK\Services\CRM\Common\Result\SystemFields\Types\File
- Add exception
Bitrix24\SDK\Core\Exceptions\ItemNotFoundException
- In
ApiLevelErrorHandler
added processing API responseerror_not_found
error code. - Added fields for
Bitrix24\SDK\Services\CRM\Deal\Result\DealItemResult
:int|null $ASSIGNED_BY_ID
array|null $CONTACT_IDS
int|null $CREATED_BY_ID
CarbonImmutable $DATE_CREATE
CarbonImmutable $DATE_MODIFY
int|null $LAST_ACTIVITY_BY
CarbonImmutable $LAST_ACTIVITY_TIME
int|null $MODIFY_BY_ID
int|null $MOVED_BY_ID
CarbonImmutable $MOVED_TIME
- Added service
Bitrix24\SDK\Services\CRM\Userfield\Service\UserfieldConstraints
for check userfield naming rules. - Developer experience: added example
/examples/local-app-workflows
for demonstrate work
with workflows. - Developer experience: added cli make command
make dev-show-fields-description
for show typehints for methods arguments from bitrix24 types from *.fields method - Developer experience: added in CI pipeline check for allowed licenses in composer package dependencies: only MIT,
BSD-3-Clause, Apache. - Developer experience: added in CI pipeline unit-tests on Windows Server 2022 in GitHub actions and updated
installation instructions for Windows-based systems. - Developer experience: start move make commands to docker
- Developer experience: added attribute
Bitrix24\SDK\Attributes\ApiServiceBuilderMetadata
for document service builders per scope - Developer experience: added trait with asserts
Bitrix24\SDK\Tests\CustomAssertions\CustomBitrix24Assertions
for additional checks in php-unit with methods:assertBitrix24AllResultItemFieldsAnnotated
- for check phpdoc annotations and result of*.fields
commandassertBitrix24AllResultItemFieldsHasValidTypeAnnotation
- for check phpdoc annotations and bitrix24 custom types
mapping
- Developer experience: added file
.gitattributes
with config to export data when you use composer flags
--prefer-source
and--prefer-dist
- Developer experience: start use PhpCsFixer in some project folders.
Changed
- Added nullable argument
bitrix24UserId
in methodBitrix24AccountRepositoryInterface::findByMemberId
in contracts
for support use case «RenewAuthToken» - Developer experience: moved CLI-command
GenerateCoverageDocumentationCommand
to namespace
Bitrix24\SDK\Infrastructure\Console\Commands\Documentation
Fixed
- Fixed errors in
Bitrix24\SDK\Services\Workflows\Common\WorkflowDocumentId
, see parsing errors. - Fixed the problem with mismatch Deals fields in API and SDK, see Increasing code coverage with annotations.
- Fixed error in
Bitrix24\SDK\Core\Fields\FieldsFilter::filterSystemFields
, see filtration errors. - Fixed error in contract tests design, see bitrix24AccountRepositoryInterface has problem with contract tests design - can't add flusher.
- Fixed error in bitrix24 account contract test data provider, see incorrect data in data provider.
- ❗️BC Fixed typehints and return types in
ActivityItemResult
,ContactItemResult
, see wrong type hints in ActivityItemResult - Fixed error in method
Bitrix24\SDK\Core\Fields\FieldsFilter::filterSystemFields
for product user fields case. - ❗️BC Fixed typehints and return types in
Bitrix24\SDK\Services\CRM\Lead\Result\LeadItemResult
see wrong typehints in LeadItemResult:CURRENCY_ID
string
→Currency|null
OPPORTUNITY
string
→Money|null
IS_MANUAL_OPPORTUNITY
string
→bool|null
OPENED
string
→bool|null
HAS_PHONE
string
→bool|null
HAS_EMAIL
string
→bool|null
HAS_IMOL
string
→bool|null
ASSIGNED_BY_ID
string
→int|null
CREATED_BY_ID
string
→int|null
MODIFY_BY_ID
string
→int|null
MOVED_BY_ID
string
→int|null
DATE_CREATE
string
→CarbonImmutable|null
DATE_MODIFY
string
→CarbonImmutable|null
MOVED_TIME
string
→CarbonImmutable|null
COMPANY_ID
string
→int|null
CONTACT_ID
string
→int|null
CONTACT_IDS
string
→array|null
IS_RETURN_CUSTOMER
string
→bool|null
DATE_CLOSED
string
→CarbonImmutable|null
LAST_ACTIVITY_BY
string
→int|null
LAST_ACTIVITY_TIME
string
→CarbonImmutable|null
- ❗️BC Fixed typehints and return types in
Bitrix24\SDK\Services\CRM\Product\Result\ProductItemResult
:PRICE
string
→Money
CURRENCY_ID
string
→Currency
ACTIVE
string
→bool
VAT_INCLUDED
string
→bool
DATE_CREATE
string
→CarbonImmutable
TIMESTAMP_X
string
→CarbonImmutable
- ❗️BC Fixed typehints and return types in
Bitrix24\SDK\Services\CRM\Userfield\Result\AbstractUserfieldItemResult
:ID
string
→int
SORT
string
→int
MULTIPLE
string
→bool
MANDATORY
string
→bool
SHOW_FILTER
string
→bool
SHOW_IN_LIST
string
→bool
EDIT_IN_LIST
string
→bool
IS_SEARCHABLE
string
→bool
Deprecated
- Deprecated class
RemoteEventsFabric
useRemoteEventsFactory
- Deprecated class
ApplicationLifeCycleEventsFabric
useApplicationLifeCycleEventsFactory
- Deprecated class
TelephonyEventsFabric
useTelephonyEventsFactory
Statistics
Bitrix24 API-methods count: 1135
Supported in bitrix24-php-sdk methods count: 191
Coverage percentage: 16.83% 🚀
Supported in bitrix24-php-sdk methods with batch wrapper count: 22
Contributors
- NEW @ZoolanderX made their first contribution in #67
- @mesilov publish this release