Skip to content

Add ability to add custom suggests for userfields in IDE #18

@mesilov

Description

@mesilov

Description

Now SDK has annotated standard fields in result types.
https://github.com/bitrix24/b24phpsdk/blob/main/src/Services/CRM/Contact/Result/ContactItemResult.php#L25-L74

SDK needs an opportunity to add custom user-types for IDE suggests

image

Possible Solution

Use EventDispatcher for custom event OnReturnResultPrepeared to override container class for result.

Make examples for use cases

  • CustomTypes for Lead, Contact, SmartProcess (crm-item)
  • Example for event subscriber
  • Tests for corner-cases
  • Default loader for override class map ruleset

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions