- updated dependencies versions:
- require
psr/log
1.4.0
→3.0.*
moneyphp/money
4.3.*
→4.5.*
- require-dev
monolog/monolog
2.9.*
→3.5.*
phpunit/phpunit
10.5.*
→11.0.*
- require
- ❗️add php 8.3, 8.2 support, drop 8.1 and 8.0 support
- add
Symfony\Component\Uid\Uuid
requirements - add contracts for bitrix24 applications based on bitrix24-php-sdk -
Bitrix24\SDK\Application\Contracts
, now addedBitrix24Account
- add service builder factory
- add method
Bitrix24\SDK\Core\Credentials\Scope::initFromString
- add method
Bitrix24\SDK\Application\ApplicationStatus::initFromString
- add system CRM multi-field type
Bitrix24\SDK\Services\CRM\Common\Result\SystemFields\Types\Phone
- add scope
user
,user_basic
,user_brief
,user.userfield
and services add scope user supportBitrix24\SDK\Services\User\Service\User::fields
- get user fieldsBitrix24\SDK\Services\User\Service\User::current
- get current userBitrix24\SDK\Services\User\Service\User::add
- add userBitrix24\SDK\Services\User\Service\User::get
- get userBitrix24\SDK\Services\User\Service\User::update
- update userBitrix24\SDK\Services\User\Service\User::search
- search users
- add method
\Bitrix24\SDK\Services\CRM\Contact\Service\Batch::update()
for batch update contacts - add crm item support
- add enum
DealStageSemanticId
- add Duplicate search support for
Bitrix24\SDK\Services\CRM\Duplicates\Service\Duplicate
- add
x-request-id
header support - add CRM multifields support header support
Email
Phone
Website
IM
- add Catalog scope services support
- ❗️Batch interface
BatchInterface
renamed toBitrix24\SDK\Core\Contracts\BatchOperationsInterface
- ❗
Bitrix24\SDK\Services\Telephony\Requests\Events
moved to separated namespaces:- from
Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallInit
toBitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallInit\OnVoximplantCallInit
- from
Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallStart
toBitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallStart\OnVoximplantCallStart
- from
Bitrix24\SDK\Services\Telephony\Requests\Events\OnExternalCallStart
toBitrix24\SDK\Services\Telephony\Requests\Events\OnExternalCallStart\OnExternalCallStart
- from
Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallEnd
toBitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallEnd\OnVoximplantCallEnd
- from
- ❗Changes in
Bitrix24\SDK\Application\Contracts\Bitrix24Account\Bitrix24AccountInterface
:- method
getContactPerson
renamed togetContactPersonId
- added method
getApplicationVersion
- added method
updateApplicationVersion
- added method
getApplicationScope
- added method
applicationInstalled
- added method
applicationUninstalled
- added method
markAsDeactivated
- added method
getBitrix24UserId
- removed method
markAccountAsDeleted
- changed method
markAsActive
- method
- ❗Changes in
Bitrix24\SDK\Application\Contracts\Bitrix24Account\Bitrix24AccountRepositoryInterface
:- method
saveAccount
renamed tosave
- method
deleteAccount
renamed todelete
- method
findAccountByMemberId
renamed tofindByMemberId
- method
getAccountByMemberId
renamed togetByMemberId
- method
findAccountByContactPersonId
renamed tofindByContactPersonId
- method
findAccountByDomainUrl
renamed tofindByDomainUrl
- add method
findAllActive
- add method
findAllDeactivated
- method
- fix typehint at ContactItemResult
- fix return types in DealCategoryItemResult
- fix add auth node in telephony voximplant events requests
- fix add helper metods isError for registerCallResult fortelephony
- fix add return type for crm multifields phone, email, im
- fix errors in
ShowFieldsDescriptionCommand
metadata reader CLI command - fix errors for
ApplicationProfile
with empty scope - fix errors in
Core
with auth attempt to non-exists portal
- move CLI entry point to
bin/console
- add new scope
Telephony
and services add Telephony support - add new scope
UserConsent
and services add UserConsent support - add new scope
Placements
and services add Placements support - add new scope
IMOpenLines
and services add IM Open Lines support - add in scope
CRM
new serviceLeads
in scope «CRM» add Leads support - add in scope
CRM
new serviceActivity
in scope «CRM» add Activity support - add in scope
CRM
for entity Deal methodServices\CRM\Deal\Service\Batch::update
batch update deals - add in scope
CRM
for entity Contact methodServices\CRM\Contact\Service\Batch::delete
batch delete contacts - add in scope
CRM
read models for activityServices\CRM\Activity\ReadModel
for activity types:EmailFetcher
,OpenLineFetcher
,VoximplantFetcher
,WebFormFetcher
- add in scope «Main» new
service
Events
add incoming events support - add support Application level events:
ONAPPINSTALL
andONAPPUNINSTALL
add incoming events support - add support Application level event:
PortalDomainUrlChangedEvent
- add method
Core\Batch::updateEntityItems
for update items in batch mode and integration test - add method to interface
Core\Contracts\BatchInterface::updateEntityItems
for update items in batch mode - add in scope
Placements
servicePlacement\Service\UserFieldType
for work with user fields embedding - add in scope
Telephony
add events:OnExternalCallBackStart
,OnExternalCallStart
,OnVoximplantCallEnd
,OnVoximplantCallEnd
,OnVoximplantCallInit
,OnVoximplantCallStart
see add telephony events - add
ApplicationStatus
with application status codes description - add fabric method
AccessToken::initFromPlacementRequest
when application init form placement request - add fabric method
ApplicationProfile::initFromArray
when application profile stored in ENV-variables - add
Bitrix24\SDK\Application\Requests\Placement\PlacementRequest
for application data from placements - add fabric method
Credentials::initFromPlacementRequest
when application init form placement request - add method
Services\Main\Service::getServerTime
returns current server time in the format YYYY-MM-DDThh:mm:ss±hh:mm. - add method
Services\Main\Service::getCurrentUserProfile
return basic Information about the current user without any scopes - add method
Services\Main\Service::getAccessName
returns access permission names. - add method
Services\Main\Service::checkUserAccess
Checks if the current user has at least one permission of those specified by the ACCESS parameter. - add method
Services\Main\Service::getMethodAffordability
Method returns 2 parameters - isExisting and isAvailable - add money type support by phpmoney
- add support fields
operating
andoperating_reset_at
atBitrix24\SDK\Core\Response\DTO\Time
datastructures
- update scope list расширить и актуализировать доступные скоупы
- bump
symfony/*
to6.*
version requirement. - method
Services\Main\Service::getAvailableMethods
marks as deprecated - method
Services\Main\Service::getAllMethods
marks as deprecated - method
Services\Main\Service::getMethodsByScope
marks as deprecated - ❗️fabric methods
Bitrix24\SDK\Core\Credentials
renamed and now are consistent:createFromWebhook
,createFromOAuth
,createFromPlacementRequest
❗️deleted unused class Bitrix24\SDK\Core\Response\DTO\ResponseDataCollection
*
❗️deleted redundant class Bitrix24\SDK\Core\Response\DTO\Result
- ❗️deleted method
CoreBuilder::withWebhookUrl
, use methodCoreBuilder::withCredentials
- add bugfix for batch method for reverse order queries
- fix type compatible errors for
Core\Result\AbstractItem
- fix error
in
NetworkTimingParser
, error in NetworkTimingsErrorInfo - fix error in
RenewedAccessToken
DTO, removeScope
enum UnknownScopeCodeException - in refresh token response
- add link to boosty.to/bitrix24-php-sdk for sponsoring development
- add «fast» batch-query without counting elements in result recordset Добавить поддержку выгрузки большого количества данных без подсчёта элементов -1
- add
Credentials
in CoreBuilder set credentials from core builder - add method
Core\Batch::deleteEntityItems
for delete items in batch mode and integration test - add integration test for read strategy
FilterWithBatchWithoutCountOrderTest
- add type check in method
Core\Batch::deleteEntityItems
- only integer id allowed - add interface
Core\Contracts\DeletedItemResultInterface
- add in scope «CRM»
Services\CRM\Deal\Service\Batch::delete
batch delete deals - add
symfony/stopwatch
component for integration tests - add
/Infrastructure/HttpClient/TransportLayer/NetworkTimingsParser
for parsecurl_info
network data structures for debug logs inBitrix24\SDK\Core\Response::__destruct()
- add
/Infrastructure/HttpClient/TransportLayer/ResponseInfoParser
for parsebitrix24_rest_api
timing info for debug logs inBitrix24\SDK\Core\Response::__destruct()
- add
Bitrix24\SDK\Core\BulkItemsReader
for data-intensive applications for bulk export data from Bitrix24, read strategies located in folderReadStrategies
, in services read model must use most effective read strategy. - add integration tests in GitHub Actions pipeline 🎉, now integration tests run on push on
dev-branch
- add incoming webhook for run integration tests
vendor-check.yml
from vendor CI\CD pipeline
- switch
symfony/http-client
to5.4.*
version requirement. - switch
symfony/http-client-contracts
to^2.5
version requirement. - switch
symfony/event-dispatcher
to5.4.*
version requirement. - switch
ramsey/uuid
to^4.2.3
version requirement. - switch
psr/log
to^1.1.4 || ^2.0 || ^3.0
version requirement.
- add method
countByFilter
for all related services, see issue Добавить для всех сущностей метод подсчёта количества элементов по фильтру #228 - add in scope «CRM» Userfield service and integration test
- add in scope «CRM» ContactUserfield service and integration test, see issue Добавить сервис по работе с юзерфилдами контакта #231
- add method getUserfieldByFieldName for
ContactItemResult
- add in scope «CRM» DealUserfield service and integration test, see issue Добавить сервис по работе с юзерфилдами cделки #232
- add method getUserfieldByFieldName for
DealItemResult
- add exception
UserfieldNotFoundException
- remove all
0.*
and1.*
code from2.*
branch
- update type definition for
ContactItemResult
, now return types will be cast to real types: DateTimeInterface, int, boolean etc
- switch
symfony/http-client
to5.3
version requirement. - switch
symfony/http-client-contracts
to^2.4
version requirement. - switch
symfony/event-dispatcher
to5.3.*
version requirement. - switch
ramsey/uuid
to^4.0
version requirement.
- add php8 version support
- change in scope «CRM» Product service and integration tests
- add
AddedItemIdResultInterface
for batch-queries result - add method
countByFilter
for CRM.Contact entity - fix method name in
ContactsResult
- add interface
ApiClientInterface
- bump phpunit version
- bump phpstan version
- remove Travis CI and migrate to Github Actions
- add unit-tests in independent github action
- add phpstan checks in independent github action
- add in scope «CRM» Contacts service and integration test
- add in scope «CRM» Contacts batch service and integration test
- add in scope «CRM» Products service and integration test
- add in scope «CRM» Settings service and integration test
- add in scope «CRM» DealCategoryStage service and integration test
- add in scope «CRM» DealProductRows service and integration test
- add in scope «CRM» DealContact service and integration test
- add in scope «IM» IM service and integration test
- add in default scope «Main» default service
- remove all v1 code
- migrate to Symfony HttpClient
- add documentation webhook auth type
- add OAuth 2.0 support
- add Events support
branch version 1.x – bugfix and security releases only
- add arguments in method
Bitrix24\Bizproc\Robot::add
for return results support
- remove in method,
processBatchCalls
remove callhandleBitrix24APILevelErrors
- remove php 5.x branch in travis config
- add
offset
parameter to entityCRM\Status\Status
in methodgetList
- add
offset
parameter to entityUser\User
in methodgetList
- add method
messageAdd
to entityBitrix24\Bitrix24
- add method
setEnabledSslVerify
to entityClasses\Im\Im
- add entity
Bitrix24\Bizproc\Provider
- add entity
Bitrix24\CRM\Lead\ProductRows
class to work with products - fix error in method
crm.company.update
- fix error in method
Bitrix24::getNewAccessToken
- fix error in method
Bizproc\Robot::add
- fix log level in method
Bitrix24::handleBitrix24APILevelErrors
- add support for
FaceTracker
entity - add presets for request timing information
- add all methods for sonetgroup
- add method
crm.contact.userfield.update
- add activities methods
- add exception
Bitrix24PortalRenamedException
- add a pair of fields for the Lead
- add requisite support
- add method update to deal\userfield entity
- add
Product\Property
support - add method
crm.product.delete
- add method
crm.product.fields
- add method
crm.product.property.types
- add method
crm.product.property.delete
- add methods for
\Bitrix24\CRM\Status
- add new placement presets for detail page
- add Callback for expired token. Fix pullrequest#63 by valga
- add method
update
in classBitrix24\CRM\Product
- increased curl time out
- add new scope
placement
in classBitrix24\Presets\Scope
- add batch calls method to bitrix24 api client interface
- add class
Bitrix24\Placement\Placement
- add preset
Bitrix24\Presets\Placement\Placement
with placement codes - add preset
Bitrix24\Presets\Placement\Fields
with placement fields
- add preset
Bitrix24\Presets\CRM\Product\ProductRowFields
- updated preset
Bitrix24\Presets\CRM\Contact\Fields
- updated preset
Bitrix24\Presets\CRM\Deal\Fields
- updated preset
Bitrix24\Presets\CRM\Lead\Fields
- add preset
Bitrix24\Presets\CRM\Product\Fields
- add method
add
in classBitrix24\CRM\Product
- add class
Bitrix24\CRM\Quote
see pr Added support for Quote API calls - add support http status 301 moved permanently in class
Bitrix24
see issue 301 Moved Permanently #49 - fixed bug in class
Bitrix24
see pr Issue in the isAccessTokenExpire method
- add new events in class
Bitrix24\Presets\Event\Event
see issue Add new bitrix24 events #44 - add new scope in class
Bitrix24\Presets\Scope
see issue Update scope presets class #47 - remove file with old deprecated exceptions see issue Move all exceptions in namespace «Exceptions» #46
- remove all exceptions in namespace
\Exceptions
see issue Move all exceptions in namespace «Exceptions» #46 - add class
Bitrix24\Exceptions\Bitrix24Exception
- add class
Bitrix24\Exceptions\Bitrix24IoException
- add class
Bitrix24\Exceptions\Bitrix24EmptyResponseException
- add class
Bitrix24\Exceptions\Bitrix24ApiException
- add class
Bitrix24\Exceptions\Bitrix24WrongClientException
- add class
Bitrix24\Exceptions\Bitrix24MethodNotFoundException
- add class
Bitrix24\Exceptions\Bitrix24TokenIsInvalidException
- add class
Bitrix24\Exceptions\Bitrix24TokenIsExpiredException
- add class
Bitrix24\Exceptions\Bitrix24PortalDeletedException
- add class
Bitrix24\Exceptions\Bitrix24PaymentRequiredException
- add class
Bitrix24\Exceptions\Bitrix24SecurityException
- updated class
Bitrix24\Bitrix24Exception
mark as deprecated - updated class
Bitrix24\Bitrix24IoException
mark as deprecated - updated class
Bitrix24\Bitrix24EmptyResponseException
mark as deprecated - updated class
Bitrix24\Bitrix24ApiException
mark as deprecated - updated class
Bitrix24\Bitrix24WrongClientException
mark as deprecated - updated class
Bitrix24\Bitrix24MethodNotFoundException
mark as deprecated - updated class
Bitrix24\Bitrix24TokenIsInvalid
mark as deprecated - updated class
Bitrix24\Bitrix24TokenIsExpired
mark as deprecated - updated class
Bitrix24\Bitrix24PortalDeleted
mark as deprecated - updated class
Bitrix24\Bitrix24SecurityException
mark as deprecated
- add exception class
Bitrix24EmptyResponseException
- in class
Bitrix24
add debug information for some error types - temporary remove calls to oauth.bitrix.info for methods
app.info
andapp.stat
see issue Fix errors after change REST API to support self hosted version #43
- fixed bug in class
Bitrix24
see issue Fix errors after change REST API to support self hosted version #43
- fixed bug in class
Bitrix24\Im\Notify
see issue ATTACH_ERROR for calls method im.notify for empty attach #42
- add
dev
branch in GitHub repo - fixed bug in class
Bitrix24\Im\Attach\Attach
, methodAttach::getAttachItems()
already return array
- add class
Bitrix24\Im\Attach\Item\Message
class implements work with string messages in attach item - add interface
Bitrix24\Presets\Im\iChatColor
with chat color presets - add phpUnit tests for items:
Bitrix24\Im\Attach\Item\Delimiter
Bitrix24\Im\Attach\Item\File
Bitrix24\Im\Attach\Item\Grid
Bitrix24\Im\Attach\Item\Image
Bitrix24\Im\Attach\Item\Link
Bitrix24\Im\Attach\Item\Message
Bitrix24\Im\Attach\Item\User
- fixed bug in class
Bitrix24\Im\Attach\Attach
- add exception class
Bitrix24PortalDeleted
and handle Bitrix24 portal deleted event. See issue Add support for deleted portals #40
- add class
Deal
- add class
LiveFeedMessage
- add task fields presets
- add
Bitrix24\CRM\Lead
entity - add some event fields in presets
- add
Bitrix24\CRM\Contact
entity - add class
Bitrix24\Task\ChecklistItem
- add class
Bitrix24\Task\CommentItem
- add class
Bitrix24\Task\ElapsedItem
- add class
Bitrix24\Task\Item
- add class
Bitrix24\Task\Items
- changed PHP version for Composer
- fixed bug in
Bitrix24\Presets\CRM\Lead
- fixed bug in class
Invoice
- remove class
Bitrix24\Task\TaskItems
- remove class
Bitrix24\Task\TaskItem
- add presets for user fields data type structure
- add method
Update
and predefined constants in classInvoice
- add protected method
handleBitrix24APILevelErrors
in a base class - add some presets for main entity
- add presets for entity
Lead
- add method get in class
Lead
- add class
IM
- add methods get and delete for invoice entity
- add presets for class
Contact
- add entity events
- add class
Invoice
in namespaceBitrix24\CRM
- fixed bug in Fix method isAccessTokenExpire
- add const
TOTAL
andRESULT
for classBitrix24\Presets\Main
- add class
Bitrix24\Presets\Users\Fields
for Bitrix24 users fields - add class
Bitrix24\Departments\Department
- add class
Bitrix24\Presets\Events
for Bitrix24 event codes - add class
Bitrix24\Presets\Uri
for Bitrix24 uri constants - add class
Bitrix24\Presets\Scope
for Bitrix24 scope constants - add class
Bitrix24\Application
- add class
Lead
- add class
Events
- add class
Contacts
- add a composer support
- fixed bug in main class, remove require_once instructions
- fixed bug in __construct in abstract class
Bitrix24Entity
- add security sign support in api-call
- add class
User
- add method «admin» — Check is current user admin
- add methods
getRedirectUri
andsetRedirectUri
, redirect uri arg support in methodgetNewAccessToken
- add a class
TaskItem
- add MIT-LICENSE
- add namespace support
- add classes of Bitrix24 parts: tasks, sonet
- add base class
Bitrix24Entity
- Initial release