-
Notifications
You must be signed in to change notification settings - Fork 47
Feature/134-complete-scope-crm-vol-3 #136
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
Draft
ZoolanderX
wants to merge
10
commits into
bitrix24:dev
Choose a base branch
from
ZoolanderX:feature/134-complete-scope-crm-vol-3
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9ad7ee4
Add CRM Activity Services: Communication and Type
ZoolanderX 80e2de9
Add tests for Type Service, update CHANGELOG.md
ZoolanderX b4b8c17
Minor changes and tests coverage
ZoolanderX 7783a0b
Fix ActivityType and Communications tests
ZoolanderX 0857d52
Fix tests
ZoolanderX 0e9ff04
PhpCsFixer Fixes
ZoolanderX c84f6ce
Fix ActivityType class: remove phantom methods
ZoolanderX 3a0fae1
Rector Fixes
ZoolanderX ea69283
Fix PhpStan errors
ZoolanderX ac3bc09
Fixes from code review
ZoolanderX File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,4 +22,4 @@ enum ActivityContentType: int | |
| case plainText = 1; | ||
| case bbCode = 2; | ||
| case html = 3; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,4 +21,4 @@ enum ActivityDirectionType: int | |
| case default = 0; | ||
| case incoming = 1; | ||
| case outgoing = 2; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,4 +22,4 @@ enum ActivityNotifyType: int | |
| case minutes = 1; | ||
| case hours = 2; | ||
| case days = 3; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,4 +22,4 @@ enum ActivityPriority: int | |
| case low = 1; | ||
| case medium = 2; | ||
| case high = 3; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,4 +22,4 @@ enum ActivityStatus: int | |
| case waiting = 1; | ||
| case finished = 2; | ||
| case finishedAutomatically = 3; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,4 +25,4 @@ enum ActivityType: int | |
| case letter = 4; | ||
| case action = 5; | ||
| case userAction = 6; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,4 +32,4 @@ public function getActivities(): array | |
|
|
||
| return $res; | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * This file is part of the bitrix24-php-sdk package. | ||
| * | ||
| * © Gleb Starikov <[email protected]> | ||
| * | ||
| * For the full copyright and license information, please view the MIT-LICENSE.txt | ||
| * file that was distributed with this source code. | ||
| */ | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Bitrix24\SDK\Services\CRM\Activity\Result; | ||
|
|
||
| use Bitrix24\SDK\Services\CRM\Common\Result\AbstractCrmItem; | ||
|
|
||
| /** | ||
| * @see https://apidocs.bitrix24.com/api-reference/crm/timeline/activities/types/crm-activity-type-add.html | ||
| * | ||
| * @property-read string $TYPE_ID | ||
| * @property-read string $NAME | ||
| * @property-read string $IS_CONFIGURABLE_TYPE | ||
| * @property-read string $ICON_ID | ||
| */ | ||
| class ActivityTypeResult extends AbstractCrmItem | ||
| { | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * This file is part of the bitrix24-php-sdk package. | ||
| * | ||
| * © Gleb Starikov <[email protected]> | ||
| * | ||
| * For the full copyright and license information, please view the MIT-LICENSE.txt | ||
| * file that was distributed with this source code. | ||
| */ | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Bitrix24\SDK\Services\CRM\Activity\Result; | ||
|
|
||
| use Bitrix24\SDK\Core\Result\AbstractResult; | ||
| use Bitrix24\SDK\Core\Exceptions\BaseException; | ||
|
|
||
| /** | ||
| * @see https://apidocs.bitrix24.com/api-reference/crm/timeline/activities/types/crm-activity-type-add.html | ||
| * | ||
| * @property-read string $TYPE_ID | ||
| * @property-read string $NAME | ||
| * @property-read string $IS_CONFIGURABLE_TYPE | ||
| * @property-read int $ICON_ID | ||
| */ | ||
| class ActivityTypesResult extends AbstractResult | ||
| { | ||
| /** | ||
| * @return \Bitrix24\SDK\Services\CRM\Activity\Result\ActivityTypeResult[] | ||
| * @throws BaseException | ||
| */ | ||
| public function getActivityTypes(): array | ||
| { | ||
| $res = []; | ||
| foreach ($this->getCoreResponse()->getResponseData()->getResult() as $item) { | ||
| $res[] = new ActivityTypeResult($item); | ||
| } | ||
|
|
||
| return $res; | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
src/Services/CRM/Activity/Result/CommunicationItemResult.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * This file is part of the bitrix24-php-sdk package. | ||
| * | ||
| * © Gleb Starikov <[email protected]> | ||
| * | ||
| * For the full copyright and license information, please view the MIT-LICENSE.txt | ||
| * file that was distributed with this source code. | ||
| */ | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Bitrix24\SDK\Services\CRM\Activity\Result; | ||
|
|
||
| use Bitrix24\SDK\Services\CRM\Common\Result\AbstractCrmItem; | ||
|
|
||
| /** | ||
| * @see https://apidocs.bitrix24.ru/api-reference/crm/timeline/activities/activity-base/crm-activity-communication-fields.html | ||
| * | ||
| * @property-read int $ID | ||
| * @property-read int $ACTIVITY_ID | ||
| * @property-read int $ENTITY_ID | ||
| * @property-read int $ENTITY_TYPE_ID | ||
| * @property-read string $TYPE | ||
| * @property-read string $VALUE | ||
| */ | ||
| class CommunicationItemResult extends AbstractCrmItem | ||
| { | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZoolanderX add to CHANGELOG.md line - fix typehint errors in src/Services/CRM/Activity/Result/ActivityItemResult.php