Add APIv4 CaseType entity
authorColeman Watts <coleman@civicrm.org>
Thu, 1 Apr 2021 22:41:23 +0000 (18:41 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 2 Apr 2021 18:49:51 +0000 (14:49 -0400)
commit96f09dda89038691c80d67e8a9c4fc13bb6c36d7
treee4c6cb6c1912c0b7ad5a7957442992964a8be1cf
parenta62d97f3cf51ff4ec0006823fe7a235edb66176e
Add APIv4 CaseType entity

The `definition` field requires special formatting; so this change
allows api fields to specify `output_formatters`, which are per-field
callback functions for altering the output of a `get` request.
13 files changed:
CRM/Case/BAO/CaseType.php
CRM/Case/DAO/CaseType.php
CRM/Upgrade/Incremental/sql/5.37.alpha1.mysql.tpl
Civi/Api4/CaseType.php [new file with mode: 0644]
Civi/Api4/Generic/BasicGetFieldsAction.php
Civi/Api4/Service/Spec/FieldSpec.php
Civi/Api4/Service/Spec/Provider/CaseTypeGetSpecProvider.php [new file with mode: 0644]
Civi/Api4/Utils/FormattingUtil.php
api/v3/CaseType.php
tests/phpunit/api/v4/DataSets/ConformanceTest.json
tests/phpunit/api/v4/Entity/ConformanceTest.php
tests/phpunit/api/v4/Service/TestCreationParameterProvider.php
xml/schema/Case/CaseType.xml