Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
->in(__DIR__ . '/src/Services/CRM/Documentgenerator/Numerator/')
->in(__DIR__ . '/src/Services/CRM/Documentgenerator/Document/')
->in(__DIR__ . '/src/Services/CRM/Documentgenerator/Template/')
->in(__DIR__ . '/src/Services/Documentgenerator/')
->in(__DIR__ . '/src/Services/Entity/Section/')
->in(__DIR__ . '/src/Services/Department/')
->in(__DIR__ . '/src/Services/Paysystem/')
Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,51 @@

### Added

- Added service `Services\Documentgenerator\Role` with support for `documentgenerator.role.*` methods,
see [documentgenerator.role.* methods](https://apidocs.bitrix24.com/api-reference/document-generator/role/index.html) ([#489](https://github.com/bitrix24/b24phpsdk/issues/489)):
- `add` creates a new role, with batch calls support
- `list` gets the list of roles, with batch calls support
- `update` updates an existing role, with batch calls support
- `delete` deletes a role, with batch calls support
- `get` gets information about the role by its identifier (includes permissions)
- `fillAccesses` completely replaces the role-to-access-code binding map
- `count` counts roles
- Added service `Services\Documentgenerator\Region` with support for `documentgenerator.region.*` methods,
see [documentgenerator.region.* methods](https://apidocs.bitrix24.com/api-reference/document-generator/region/index.html) ([#489](https://github.com/bitrix24/b24phpsdk/issues/489)):
- `add` creates a new region, with batch calls support
- `list` gets the list of regions, with batch calls support
- `update` updates an existing region, with batch calls support
- `delete` deletes a region, with batch calls support
- `get` gets information about the region by its identifier
- `count` counts regions
- Added service `Services\Documentgenerator\Numerator` with support for `documentgenerator.numerator.*` methods,
see [documentgenerator.numerator.* methods](https://apidocs.bitrix24.com/api-reference/document-generator/numerators/index.html) ([#489](https://github.com/bitrix24/b24phpsdk/issues/489)):
- `add` creates a new numerator, with batch calls support
- `list` gets the list of numerators, with batch calls support
- `update` updates an existing numerator, with batch calls support
- `delete` deletes a numerator, with batch calls support
- `get` gets information about the numerator by its identifier
- `count` counts numerators
- Added service `Services\Documentgenerator\Template` with support for `documentgenerator.template.*` methods,
see [documentgenerator.template.* methods](https://apidocs.bitrix24.com/api-reference/document-generator/templates/index.html) ([#489](https://github.com/bitrix24/b24phpsdk/issues/489)):
- `add` creates a new template, with batch calls support
- `list` gets the list of templates, with batch calls support
- `update` updates an existing template, with batch calls support
- `delete` deletes a template, with batch calls support
- `get` gets information about the template by its identifier
- `getFields` returns the description of template fields
- `count` counts templates
- Added service `Services\Documentgenerator\Document` with support for `documentgenerator.document.*` methods,
see [documentgenerator.document.* methods](https://apidocs.bitrix24.com/api-reference/document-generator/index.html) ([#489](https://github.com/bitrix24/b24phpsdk/issues/489)):
- `add` creates a new document based on a template and data provider, with batch calls support
- `list` gets the list of documents, with batch calls support
- `update` updates an existing document, with batch calls support
- `delete` deletes a document, with batch calls support
- `get` gets information about the document by its identifier
- `getFields` returns the description of document fields
- `enablePublicUrl` enables or disables public URL for a document
- `count` counts documents

- Added service `Services\Landing\Site\Service\Site` with support methods,
see [landing.site.* methods](https://github.com/bitrix24/b24phpsdk/issues/267):
- `add` adds a site
Expand Down
56 changes: 56 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,62 @@ test-integration-landing-role:
test-integration-landing-repowidget:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_landing_repowidget

.PHONY: integration_tests_scope_documentgenerator
integration_tests_scope_documentgenerator:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_scope_documentgenerator

.PHONY: integration_tests_documentgenerator_document
integration_tests_documentgenerator_document:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_document

.PHONY: integration_tests_documentgenerator_template
integration_tests_documentgenerator_template:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_template

.PHONY: integration_tests_documentgenerator_template_service
integration_tests_documentgenerator_template_service:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_template_service

.PHONY: integration_tests_documentgenerator_template_annotations
integration_tests_documentgenerator_template_annotations:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_template_annotations

.PHONY: integration_tests_documentgenerator_numerator
integration_tests_documentgenerator_numerator:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_numerator

.PHONY: integration_tests_documentgenerator_numerator_service
integration_tests_documentgenerator_numerator_service:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_numerator_service

.PHONY: integration_tests_documentgenerator_numerator_annotations
integration_tests_documentgenerator_numerator_annotations:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_numerator_annotations

.PHONY: integration_tests_documentgenerator_region
integration_tests_documentgenerator_region:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_region

.PHONY: integration_tests_documentgenerator_region_service
integration_tests_documentgenerator_region_service:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_region_service

.PHONY: integration_tests_documentgenerator_region_annotations
integration_tests_documentgenerator_region_annotations:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_region_annotations

.PHONY: integration_tests_documentgenerator_role
integration_tests_documentgenerator_role:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_role

.PHONY: integration_tests_documentgenerator_role_service
integration_tests_documentgenerator_role_service:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_role_service

.PHONY: integration_tests_documentgenerator_role_annotations
integration_tests_documentgenerator_role_annotations:
docker compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_documentgenerator_role_annotations

# work dev environment
.PHONY: php-dev-server-up
php-dev-server-up:
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ parameters:
- tests/Integration/Services/CRM/Documentgenerator/Document
- tests/Integration/Services/CRM/Documentgenerator/Template
- tests/Integration/Services/Landing
- tests/Integration/Services/Documentgenerator
excludePaths:
- tests/Integration/Services/CRM/Requisites/Service/RequisiteUserfieldUseCaseTest.php
- tests/Integration/Services/CRM/Status
Expand Down
42 changes: 42 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,48 @@
<testsuite name="integration_tests_crm_documentgenerator_template">
<directory>./tests/Integration/Services/CRM/Documentgenerator/Template/</directory>
</testsuite>
<testsuite name="integration_tests_scope_documentgenerator">
<directory>./tests/Integration/Services/Documentgenerator/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_document">
<directory>./tests/Integration/Services/Documentgenerator/Document/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_template">
<directory>./tests/Integration/Services/Documentgenerator/Template/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_template_service">
<directory>./tests/Integration/Services/Documentgenerator/Template/Service/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_template_annotations">
<file>./tests/Integration/Services/Documentgenerator/Template/Result/TemplateItemResultAnnotationsTest.php</file>
</testsuite>
<testsuite name="integration_tests_documentgenerator_numerator">
<directory>./tests/Integration/Services/Documentgenerator/Numerator/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_numerator_service">
<directory>./tests/Integration/Services/Documentgenerator/Numerator/Service/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_numerator_annotations">
<file>./tests/Integration/Services/Documentgenerator/Numerator/Result/NumeratorItemResultAnnotationsTest.php</file>
</testsuite>
<testsuite name="integration_tests_documentgenerator_region">
<directory>./tests/Integration/Services/Documentgenerator/Region/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_region_service">
<directory>./tests/Integration/Services/Documentgenerator/Region/Service/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_region_annotations">
<file>./tests/Integration/Services/Documentgenerator/Region/Result/RegionItemResultAnnotationsTest.php</file>
</testsuite>
<testsuite name="integration_tests_documentgenerator_role">
<directory>./tests/Integration/Services/Documentgenerator/Role/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_role_service">
<directory>./tests/Integration/Services/Documentgenerator/Role/Service/</directory>
</testsuite>
<testsuite name="integration_tests_documentgenerator_role_annotations">
<file>./tests/Integration/Services/Documentgenerator/Role/Result/RoleItemResultAnnotationsTest.php</file>
</testsuite>
<testsuite name="integration_tests_scope_sonet_group">
<directory>./tests/Integration/Services/SonetGroup/</directory>
</testsuite>
Expand Down
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
__DIR__ . '/tests/Integration/Services/CRM/Documentgenerator/Template',
__DIR__ . '/src/Services/Landing',
__DIR__ . '/tests/Integration/Services/Landing',
__DIR__ . '/src/Services/Documentgenerator',
__DIR__ . '/tests/Integration/Services/Documentgenerator',
__DIR__ . '/tests/Unit/',
])
->withCache(cacheDirectory: __DIR__ . '/var/.cache/rector')
Expand Down
Loading
Loading