Skip to content

Add ChatMessageField service for tasks.task.chat.message.field.*#400

Merged
mesilov merged 6 commits intov3-devfrom
feature/397-add-task-chat-fields
Mar 25, 2026
Merged

Add ChatMessageField service for tasks.task.chat.message.field.*#400
mesilov merged 6 commits intov3-devfrom
feature/397-add-task-chat-fields

Conversation

@mesilov
Copy link
Copy Markdown
Collaborator

@mesilov mesilov commented Mar 24, 2026

  • Implemented support for Bitrix24 REST API methods tasks.task.chat.message.field.get and tasks.task.chat.message.field.list in API v3.
  • Introduced ChatMessageField service with get() and list() methods in TaskServiceBuilder.
  • Added result classes ChatMessageFieldResult, ChatMessageFieldsResult, and ChatMessageFieldItemResult for handling API responses.
  • Updated CHANGELOG.md, Makefile targets, PHPUnit configuration, and added unit and integration tests for the new service.
Q A
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #397
License MIT

…support

- Implemented support for Bitrix24 REST API methods `tasks.task.chat.message.field.get` and `tasks.task.chat.message.field.list` in API v3.
- Introduced `ChatMessageField` service with `get()` and `list()` methods in `TaskServiceBuilder`.
- Added result classes `ChatMessageFieldResult`, `ChatMessageFieldsResult`, and `ChatMessageFieldItemResult` for handling API responses.
- Updated `CHANGELOG.md`, Makefile targets, PHPUnit configuration, and added unit and integration tests for the new service.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
@mesilov mesilov self-assigned this Mar 24, 2026
mesilov added 5 commits March 25, 2026 11:34
…te field annotations

- Introduced `ChatMessageFieldItemResultTest` to ensure all fields are properly annotated and match raw API response.
- Utilized `CustomBitrix24Assertions` for field verification in integration scenarios.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
…annotations

- Introduced `CustomBitrix24AssertionsTest` to ensure fields of `AbstractItem` match their annotated types.
- Implemented `assertBitrix24ResultItemFieldsTypeCastMatchAnnotations()` to enforce type consistency.
- Added test cases for matching types, nullable types, and invalid types with detailed assertions.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
… type annotations and magic getter type casting

- Extended `phpunit.xml.dist` to include `ChatMessageFieldItemResultTest` in the integration suite.
- Updated `CHANGELOG.md` with details about the new test coverage.
- Added tests to ensure all fields are properly annotated and magic getters return values with correct type casting.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Signed-off-by: mesilov <mesilov.maxim@gmail.com>
…hpsdk` repository

- Introduced `.claude/skills/b24phpsdk-maintainer/SKILL.md` to guide maintainers on handling GitHub issues.
- Updated `CHANGELOG.md` with details of the new skill addition.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
@mesilov mesilov linked an issue Mar 25, 2026 that may be closed by this pull request
@mesilov mesilov added this to the 3.1.0 milestone Mar 25, 2026
@mesilov mesilov merged commit 48e7da0 into v3-dev Mar 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature in SDK]: add task chat message fetcher service

1 participant