Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitrix24-php-sdk beta-1 #368

Merged
merged 132 commits into from
Feb 18, 2024
Merged

bitrix24-php-sdk beta-1 #368

merged 132 commits into from
Feb 18, 2024

Conversation

mesilov
Copy link
Owner

@mesilov mesilov commented Feb 18, 2024

Added

  • ❗️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
    added Bitrix24Account
  • 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 support
    • Bitrix24\SDK\Services\User\Service\User::fields - get user fields
    • Bitrix24\SDK\Services\User\Service\User::current - get current user
    • Bitrix24\SDK\Services\User\Service\User::add - add user
    • Bitrix24\SDK\Services\User\Service\User::get - get user
    • Bitrix24\SDK\Services\User\Service\User::update - update user
    • Bitrix24\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

Changed

  • ❗️Batch interface BatchInterface renamed
    to Bitrix24\SDK\Core\Contracts\BatchOperationsInterface
  • Bitrix24\SDK\Services\Telephony\Requests\Events moved to separated namespaces:
    • from Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallInit
      to Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallInit\OnVoximplantCallInit
    • from Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallStart
      to Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallStart\OnVoximplantCallStart
    • from Bitrix24\SDK\Services\Telephony\Requests\Events\OnExternalCallStart
      to Bitrix24\SDK\Services\Telephony\Requests\Events\OnExternalCallStart\OnExternalCallStart
    • from Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallEnd
      to Bitrix24\SDK\Services\Telephony\Requests\Events\OnVoximplantCallEnd\OnVoximplantCallEnd
  • ❗Changes in Bitrix24\SDK\Application\Contracts\Bitrix24Account\Bitrix24AccountInterface:
    • method getContactPerson renamed to getContactPersonId
    • 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
  • ❗Changes in Bitrix24\SDK\Application\Contracts\Bitrix24Account\Bitrix24AccountRepositoryInterface:
    • method saveAccount renamed to save
    • method deleteAccount renamed to delete
    • method findAccountByMemberId renamed to findByMemberId
    • method getAccountByMemberId renamed to getByMemberId
    • method findAccountByContactPersonId renamed to findByContactPersonId
    • method findAccountByDomainUrl renamed to findByDomainUrl
    • add method findAllActive
    • add method findAllDeactivated

Bugfix

etc

  • move CLI entry point to bin/console

KarlsonComplete and others added 30 commits July 22, 2022 17:48
-and edit
 NetworkTimingsParser.php
-added a test to check the operation of products and transactions between themselves
- the test works with the help of services
-add improvements to the method DEAL_PRODUCT_ROW so that it can use the currency
… это путем замены области видимости с private на protected в DealProductRowItemResult.php.(Так можно делать ?)
- edit method in DealProductRows.php(work)
- edit test (delete testBatch)
…(Теперь в тестах можем и указывать валюту или не указывать).

- убрал лишние методы
- поправил тесты
- добавил в AbstractCrmItem.php остальные поля связанные с деньгами.
The Request ID parameter is now included in query strings in addition to the header field for improved tracking. This change was made to accommodate for the current version of the Bitrix24 API that does not use Request ID from headers. A corresponding `getQueryStringParameterName` method was also added to the `RequestIdGeneratorInterface`.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Add Request ID to query string parameters
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
add windows platforms in unit-tests
# Conflicts:
#	CHANGELOG.md
#	src/Core/Batch.php
#	src/Services/CRM/Common/Result/AbstractCrmItem.php
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
…ifields

338 fix return type for crm multifields
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
New classes related to Catalog scope services have been created and integrated into the existing structure. This includes product-related result classes `ProductResult`, `ProductsResult`, `ProductItemResult` and service classes `Product` and `Batch`. Additionally, a `CatalogServiceBuilder` is added to construct the catalog service, and a `ProductType` enumeration has been defined to set product types. The commit also includes an update in the `CHANGELOG.md`.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Updated workflow configurations to support both Ubuntu and Windows OS. The changes cover PHPUnit tests, PHPStan, Vendor integration, and Integration tests by adding matrix-operating-system variables. These modifications also include updates in the supported PHP versions, and disabling the "fail-fast" strategy to ensure tests across all OS complete before reporting.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
This commit updates the PHP version requirement in composer.json to allow either 8.2.* or 8.3.*, reflecting its compatibility with both. Moreover, the README file has been significantly refactored, removing unnecessary content, correcting a typo, and reorganizing the architecture section.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
This update adds new catalog service-related functions in the CatalogServiceBuilder file and introduces several methods for product service. These methods include functions to add, delete, and retrieve products. Additionally, several integration tests have been introduced to ensure the correct functioning of these new methods. Also, an example phpstan static analyzer command's been added to Makefile, and PHP requirement has been adjusted to support PHP 8.2. Plus, the README file has been refactored for clarity and better organization.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
The data provider methods used in various test cases have been changed to static. This change was applied to "CredentialsTest", "ApplicationStatusTest", "ApplicationProfileTest", "DefaultRequestIdGeneratorTest", and "TimeTest". An additional command has also been added to the Makefile for running unit tests.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Constants in DefaultRequestIdGenerator were refactored to remove 'string' and 'array' type declarations. These changes conform to PHP constants declaration rules, which do not require type specification.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
The constant CRM_USERFIELD_PREFIX in the AbstractCrmItem class has been updated to remove the 'string' type declaration, in accordance with PHP's constants declaration rules which do not require specifying the type.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
The constant CRM_USERFIELD_PREFIX in the AbstractCatalogItem class has been updated to remove the 'string' type declaration, keeping in line with PHP's convention for declaring constants which does not require specifying the type.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
The release date for version 2.0-beta.1 in the CHANGELOG.md file has been updated. Additionally, the PHP support information has also been changed to reflect the added support for PHP 8.2 and 8.3, and the removal of support for PHP 8.0 and 8.1.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
bitrix24-php-sdk beta 1 build
@mesilov mesilov added 2.x issue related with 2.x sdk version 💰 sponsored задача оплачена labels Feb 18, 2024
@mesilov mesilov added this to the 2.x-core milestone Feb 18, 2024
@mesilov mesilov merged commit eda95ae into master Feb 18, 2024
16 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x issue related with 2.x sdk version 💰 sponsored задача оплачена
Projects
None yet
2 participants