python-alfresco-api 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_alfresco_api/__init__.py +43 -0
- python_alfresco_api/auth_util.py +103 -0
- python_alfresco_api/client_factory.py +111 -0
- python_alfresco_api/clients/__init__.py +1 -0
- python_alfresco_api/clients/auth_client.py +85 -0
- python_alfresco_api/clients/core_client.py +85 -0
- python_alfresco_api/clients/discovery_client.py +85 -0
- python_alfresco_api/clients/model_client.py +85 -0
- python_alfresco_api/clients/search_client.py +85 -0
- python_alfresco_api/clients/search_sql_client.py +85 -0
- python_alfresco_api/clients/workflow_client.py +85 -0
- python_alfresco_api/events/__init__.py +15 -0
- python_alfresco_api/events/event_client.py +268 -0
- python_alfresco_api/events/models.py +35 -0
- python_alfresco_api/examples/basic_usage.py +52 -0
- python_alfresco_api/examples/llm_integration.py +155 -0
- python_alfresco_api/models/__init__.py +45 -0
- python_alfresco_api/models/alfresco_auth_models.py +42 -0
- python_alfresco_api/models/alfresco_core_models.py +1288 -0
- python_alfresco_api/models/alfresco_discovery_models.py +84 -0
- python_alfresco_api/models/alfresco_model_models.py +161 -0
- python_alfresco_api/models/alfresco_search_models.py +720 -0
- python_alfresco_api/models/alfresco_search_sql_models.py +91 -0
- python_alfresco_api/models/alfresco_workflow_models.py +357 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/create_ticket.py +236 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/delete_ticket.py +91 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/validate_ticket.py +171 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/__init__.py +19 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket.py +68 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket_body.py +68 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/valid_ticket.py +59 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/valid_ticket_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_core_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_core_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/action_details.py +172 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/action_exec.py +384 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/list_actions.py +261 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/node_actions.py +277 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/activities/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/activities/list_activities_for_person.py +263 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/delete_audit_entries_for_audit_app.py +148 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/delete_audit_entry.py +122 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/get_audit_app.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/get_audit_entry.py +227 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_apps.py +256 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_entries_for_audit_app.py +372 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_entries_for_node.py +329 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/update_audit_app.py +259 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/create_comment.py +414 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/delete_comment.py +112 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/list_comments.py +229 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/update_comment.py +232 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/create_favorite.py +443 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/create_site_favorite.py +407 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/delete_favorite.py +112 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/delete_site_favorite.py +120 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/get_favorite.py +229 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/get_favorite_site.py +137 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/list_favorite_sites_for_person.py +150 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/list_favorites.py +419 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/create_group.py +285 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/create_group_membership.py +255 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/delete_group.py +138 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/delete_group_membership.py +130 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/get_group.py +227 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_group_memberships.py +331 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_group_memberships_for_person.py +447 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_groups.py +487 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/update_group.py +254 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/get_network.py +189 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/get_network_for_person.py +210 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/list_networks_for_person.py +230 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/copy_node.py +285 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_association.py +410 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_node.py +1327 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_secondary_child_association.py +410 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_association.py +149 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_node.py +162 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_secondary_child_association.py +145 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/get_node.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_node_children.py +440 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_parents.py +290 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_secondary_children.py +286 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_source_associations.py +237 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_target_associations.py +237 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/lock_node.py +374 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/move_node.py +281 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/unlock_node.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/update_node.py +477 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/update_node_content.py +363 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/create_person.py +298 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/delete_avatar_image.py +115 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/get_person.py +197 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/list_people.py +292 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/request_password_reset.py +153 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/reset_password.py +139 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/update_avatar_image.py +144 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/update_person.py +327 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/get_preference.py +213 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/list_preferences.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/probes/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/probes/get_probe.py +196 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_nodes.py +380 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_people.py +296 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_sites.py +181 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/create_rating.py +216 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/delete_rating.py +110 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/get_rating.py +205 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/list_ratings.py +222 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/create_rendition.py +165 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/get_rendition.py +191 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/list_renditions.py +247 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/create_shared_link.py +440 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/delete_shared_link.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/email_shared_link.py +187 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/get_shared_link.py +208 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/get_shared_link_rendition.py +208 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/list_shared_link_renditions.py +195 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/list_shared_links.py +271 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/approve_site_membership_request.py +130 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site.py +202 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_group_membership.py +415 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_membership.py +423 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_membership_request_for_person.py +247 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site.py +122 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_group_membership.py +114 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership.py +114 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership_for_person.py +112 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership_request_for_person.py +112 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site.py +155 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_container.py +202 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_group_membership.py +210 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership.py +210 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_for_person.py +110 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_request_for_person.py +129 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_requests.py +176 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_containers.py +222 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_groups.py +230 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_membership_requests_for_person.py +142 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_memberships.py +237 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_memberships_for_person.py +225 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_sites.py +236 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/reject_site_membership_request.py +130 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site.py +147 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_group_membership.py +257 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_membership.py +265 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_membership_request_for_person.py +146 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/create_tag_for_node.py +411 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/delete_tag_from_node.py +110 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/get_tag.py +189 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/list_tags.py +233 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/list_tags_for_node.py +225 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/update_tag.py +213 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/delete_deleted_node.py +109 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/get_archived_node_rendition.py +191 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/get_deleted_node.py +203 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/list_deleted_node_renditions.py +247 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/list_deleted_nodes.py +234 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/restore_deleted_node.py +270 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/create_version_rendition.py +172 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/delete_version.py +140 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/get_version.py +191 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/get_version_rendition.py +204 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/list_version_history.py +264 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/list_version_renditions.py +260 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/revert_version.py +252 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/__init__.py +391 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_body_exec.py +92 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_body_exec_params.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition.py +130 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_list.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_list_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_exec_result.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_exec_result_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_parameter_definition.py +95 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity.py +137 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_activity_summary.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_entry.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_body.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_info.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app.py +97 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_body_update.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_values.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/capabilities.py +77 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_body.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_info.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/client_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment.py +139 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/company.py +122 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint.py +110 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint_parameters.py +57 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint_parameters_additional_property.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/content_info.py +88 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/definition.py +76 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node.py +298 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node_body_restore.py +68 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_nodes_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_nodes_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/direct_access_url_body_create.py +77 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download.py +113 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_body_create.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_status.py +12 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite.py +114 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_body_create.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_body_create_target.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_entry.py +66 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_properties.py +47 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site_body_create.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_target.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group.py +99 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_body_create.py +80 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_body_update.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member.py +77 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_member_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_membership_body_create.py +69 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_membership_body_create_member_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/network_quota.py +78 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node.py +282 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association.py +300 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_paging_list.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_copy.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create.py +256 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create_association.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock_lifetime.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_move.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_update.py +121 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_update_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association.py +300 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_paging_list.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_paging_list.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/pagination.py +103 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/password_reset_body.py +75 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/path_element.py +88 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/path_info.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permission_element.py +85 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permission_element_access_status.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permissions_body.py +84 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permissions_info.py +114 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person.py +289 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_create.py +244 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_create_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_update.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_update_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network.py +150 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_entry.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_subscription_level.py +10 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference.py +71 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/probe_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/probe_entry_entry.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/property_.py +158 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating.py +106 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_aggregate.py +68 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_body.py +70 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_body_id.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_entry.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition.py +98 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_body_create.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_status.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/revert_body.py +68 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link.py +269 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_body_create.py +79 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_body_email.py +88 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_properties.py +47 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_create.py +88 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_create_visibility.py +10 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_update.py +85 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_update_visibility.py +10 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group.py +83 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_approval_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_create.py +69 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_create_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_update.py +61 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_update_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_rejection_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_request_body_create.py +91 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_request_body_update.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_role_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag.py +78 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/user_info.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version.py +174 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_core_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/discovery/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/discovery/get_repository_information.py +145 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/__init__.py +25 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/discovery_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/entitlements_info.py +86 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/license_info.py +117 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/module_info.py +131 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/repository_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/repository_info.py +132 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/status_info.py +83 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/version_info.py +107 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_model_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_model_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/get_aspect.py +103 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/list_aspects.py +256 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/get_type.py +103 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/list_types.py +270 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/__init__.py +27 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class.py +189 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class_association.py +135 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class_association_source.py +95 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint.py +110 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint_parameters.py +57 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint_parameters_additional_property.py +44 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/model.py +97 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/pagination.py +103 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/property_.py +158 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_model_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_search_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_search_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_search_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/search/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/search/search.py +1451 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/__init__.py +125 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/content_info.py +95 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket.py +151 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_bucket_info.py +87 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_display.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_facets_item.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_facet_response.py +93 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_metric.py +82 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_metric_value.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/node.py +237 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/node_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/pagination.py +100 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/path_element.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/path_info.py +93 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults.py +126 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults_default_fts_field_operator.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults_default_fts_operator.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field.py +172 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field_method.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field_sort.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_fields.py +79 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_intervals.py +97 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_intervals_intervals_item.py +93 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_queries_item.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_set.py +98 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_filter_queries_item.py +72 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_highlight.py +143 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_highlight_fields_item.py +104 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_include_item.py +13 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_limits.py +71 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_localization.py +73 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_pagination.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_pivot.py +82 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_query.py +89 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_query_language.py +10 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_range.py +139 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_scope.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_scope_locations.py +10 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_sort_definition_item.py +87 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_sort_definition_item_type.py +10 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_spellcheck.py +61 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_stats.py +202 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_templates_item.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/response_consistency.py +60 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets.py +84 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets_buckets_item.py +99 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets_buckets_item_display.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_node.py +305 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context.py +181 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_facet_queries_item.py +77 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_spellcheck_item.py +78 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_spellcheck_item_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_paging.py +73 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_paging_list.py +111 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_row_entry.py +66 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_entry.py +85 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_entry_highlight_item.py +71 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_request.py +452 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/user_info.py +67 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/sql/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/sql/search.py +751 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/__init__.py +23 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/docs_item.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/pagination.py +100 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/solr_result_set.py +77 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_paging.py +73 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_row_entry.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_search_request.py +108 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/delete_deployment.py +105 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/get_deployment.py +213 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/list_deployments.py +230 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition.py +205 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition_image.py +188 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition_start_form_model.py +201 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/list_process_definitions.py +264 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process.py +385 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_item.py +365 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_variable.py +202 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_variables.py +381 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process.py +101 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process_item.py +108 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process_variable.py +108 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/get_process.py +229 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_process_items.py +262 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_process_variables.py +262 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_processes.py +284 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/create_task_item.py +365 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/create_task_variables.py +378 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/delete_task_item.py +108 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/delete_task_variable.py +110 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/get_task.py +229 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/get_task_form_model.py +238 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_candidates.py +222 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_items.py +262 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_variables.py +277 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_tasks.py +276 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_tasks_for_process.py +281 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/update_task.py +830 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/update_task_variable.py +202 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/__init__.py +95 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate.py +77 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_candidate_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/company.py +122 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment.py +116 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_entry.py +90 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item.py +195 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_body.py +60 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/pagination.py +102 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/person.py +236 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process.py +171 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_body.py +82 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_body_variable.py +78 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition.py +136 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_entry.py +74 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_entry.py +84 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task.py +244 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_body.py +147 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_body_state.py +11 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model.py +116 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_state.py +11 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable.py +87 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_body.py +78 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/types.py +54 -0
- python_alfresco_api/tests/__init__.py +1 -0
- python_alfresco_api/tests/test_basic.py +115 -0
- python_alfresco_api-1.0.0.dist-info/METADATA +795 -0
- python_alfresco_api-1.0.0.dist-info/RECORD +635 -0
- python_alfresco_api-1.0.0.dist-info/WHEEL +4 -0
- python_alfresco_api-1.0.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,1451 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.result_set_paging import ResultSetPaging
|
|
9
|
+
from ...models.search_request import SearchRequest
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
*,
|
|
15
|
+
body: SearchRequest,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
headers: dict[str, Any] = {}
|
|
18
|
+
|
|
19
|
+
_kwargs: dict[str, Any] = {
|
|
20
|
+
"method": "post",
|
|
21
|
+
"url": "/search",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
_kwargs["json"] = body.to_dict()
|
|
25
|
+
|
|
26
|
+
headers["Content-Type"] = "application/json"
|
|
27
|
+
|
|
28
|
+
_kwargs["headers"] = headers
|
|
29
|
+
return _kwargs
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _parse_response(
|
|
33
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
34
|
+
) -> Optional[ResultSetPaging]:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = ResultSetPaging.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_200
|
|
39
|
+
if client.raise_on_unexpected_status:
|
|
40
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
41
|
+
else:
|
|
42
|
+
return None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _build_response(
|
|
46
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
47
|
+
) -> Response[ResultSetPaging]:
|
|
48
|
+
return Response(
|
|
49
|
+
status_code=HTTPStatus(response.status_code),
|
|
50
|
+
content=response.content,
|
|
51
|
+
headers=response.headers,
|
|
52
|
+
parsed=_parse_response(client=client, response=response),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def sync_detailed(
|
|
57
|
+
*,
|
|
58
|
+
client: Union[AuthenticatedClient, Client],
|
|
59
|
+
body: SearchRequest,
|
|
60
|
+
) -> Response[ResultSetPaging]:
|
|
61
|
+
r"""Searches Alfresco
|
|
62
|
+
|
|
63
|
+
**Note**: this endpoint is available in Alfresco 5.2 and newer versions.
|
|
64
|
+
|
|
65
|
+
**You specify all the parameters in this API in a JSON body**, URL parameters are not supported.
|
|
66
|
+
A basic query looks like this:
|
|
67
|
+
|
|
68
|
+
```JSON
|
|
69
|
+
{
|
|
70
|
+
\"query\": {
|
|
71
|
+
\"query\": \"foo\"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Note:** These are the minimum possible query parameters.
|
|
77
|
+
|
|
78
|
+
The default search language is **afts** ([Alfresco Full Text
|
|
79
|
+
Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify
|
|
80
|
+
**cmis**, and **lucene**.
|
|
81
|
+
|
|
82
|
+
A basic CMIS query looks like this:
|
|
83
|
+
|
|
84
|
+
```JSON
|
|
85
|
+
{
|
|
86
|
+
\"query\": {
|
|
87
|
+
\"query\": \"select * from cmis:folder\",
|
|
88
|
+
\"language\": \"cmis\"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
By default, **results are limited to the first 100.**
|
|
94
|
+
Results can be restricted using \"paging\". For example:
|
|
95
|
+
```JSON
|
|
96
|
+
\"paging\": {
|
|
97
|
+
\"maxItems\": \"50\",
|
|
98
|
+
\"skipCount\": \"28\"
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
This example would ensure that results are **limited by Final Size**, skipping the first 28 results
|
|
102
|
+
and returning the next 50.
|
|
103
|
+
|
|
104
|
+
Alternatively, you can limit the results by using the **limits JSON body parameter**. For example,
|
|
105
|
+
```JSON
|
|
106
|
+
\"limits\": {
|
|
107
|
+
\"permissionEvaluationTime\": 20000,
|
|
108
|
+
\"permissionEvaluationCount\": 2000
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
You can use the **include JSON body parameter** to return additional information.
|
|
113
|
+
This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
|
|
114
|
+
```JSON
|
|
115
|
+
\"include\": [\"aspectNames\", \"properties\", \"isLink\"]
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
You can use the **fields JSON body parameter** to restrict the fields returned within a response if,
|
|
119
|
+
for example, you want to save on overall bandwidth.
|
|
120
|
+
This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
|
|
121
|
+
```JSON
|
|
122
|
+
\"fields\": [\"id\", \"name\", \"search\"]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
You can sort the results using the **sort JSON body parameter**, for example:
|
|
126
|
+
```JSON
|
|
127
|
+
\"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}]
|
|
128
|
+
```
|
|
129
|
+
**Note:** the **sort** parameter is not supported for CMIS queries.
|
|
130
|
+
|
|
131
|
+
By default, search uses the **\"nodes\" location**, which is the **content store known as
|
|
132
|
+
workspace://SpacesStore**.
|
|
133
|
+
To change the scope to another location you can use the **locations JSON body parameter**.
|
|
134
|
+
You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example:
|
|
135
|
+
```JSON
|
|
136
|
+
\"scope\": {
|
|
137
|
+
\"locations\": [\"deleted-nodes\"]
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
You can specify templates using the **templates JSON body parameter**, for example:
|
|
141
|
+
```JSON
|
|
142
|
+
\"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"},
|
|
143
|
+
{\"name\": \"mytemplate\",\"template\": \"%cm:content\"}]
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Note: Spell checking only works on Search Services (Solr 6) if you have already enabled
|
|
147
|
+
suggestions.**
|
|
148
|
+
|
|
149
|
+
For **spell checking** you can use a query like this:
|
|
150
|
+
```JSON
|
|
151
|
+
{
|
|
152
|
+
\"query\": {
|
|
153
|
+
\"query\": \"cm:title:alfrezco\"
|
|
154
|
+
},
|
|
155
|
+
\"spellcheck\": {\"query\": \"alfrezco\"}
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
If you are already specifying \"userQuery\" then the following may be easier and produces the same
|
|
160
|
+
result :
|
|
161
|
+
```JSON
|
|
162
|
+
{
|
|
163
|
+
\"query\": {
|
|
164
|
+
\"query\": \"cm:title:alfrezco\",
|
|
165
|
+
\"userQuery\": \"alfrezco\"
|
|
166
|
+
},
|
|
167
|
+
\"spellcheck\": {}
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The spellcheck response includes a spellCheck context like this:
|
|
172
|
+
```JSON
|
|
173
|
+
\"context\": {
|
|
174
|
+
\"spellCheck\": {
|
|
175
|
+
\"type\": \"searchInsteadFor\",
|
|
176
|
+
\"suggestions\": [\"alfresco\"]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
To specify defaults, you use a **defaults JSON body parameter**, for example:
|
|
182
|
+
```JSON
|
|
183
|
+
\"defaults\": {
|
|
184
|
+
\"textAttributes\": [
|
|
185
|
+
\"cm:content\", \"cm:name\"
|
|
186
|
+
],
|
|
187
|
+
\"defaultFTSOperator\": \"AND\",
|
|
188
|
+
\"defaultFTSFieldOperator\": \"OR\",
|
|
189
|
+
\"namespace\": \"cm\",
|
|
190
|
+
\"defaultFieldName\": \"PATH\"
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
You can specify several filter queries using the **filterQueries JSON body parameter**, for example:
|
|
195
|
+
```JSON
|
|
196
|
+
\"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}]
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
You can specify several facet queries using the **facetQueries JSON body parameter**, for example:
|
|
200
|
+
```JSON
|
|
201
|
+
\"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}]
|
|
202
|
+
```
|
|
203
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet query.
|
|
204
|
+
```JSON
|
|
205
|
+
\"context\": {
|
|
206
|
+
\"facetQueries\": [
|
|
207
|
+
{\"label\": \"CreatedThisYear\",\"count\": 3}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
A complete query for facetting via the content.size field looks this:
|
|
213
|
+
```JSON
|
|
214
|
+
{
|
|
215
|
+
\"query\": {
|
|
216
|
+
\"query\": \"presentation\",
|
|
217
|
+
\"language\": \"afts\"
|
|
218
|
+
},
|
|
219
|
+
\"facetQueries\": [
|
|
220
|
+
{\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"},
|
|
221
|
+
{\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"},
|
|
222
|
+
{\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"},
|
|
223
|
+
{\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"},
|
|
224
|
+
{\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"},
|
|
225
|
+
{\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"}
|
|
226
|
+
],
|
|
227
|
+
\"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]}
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet query.
|
|
232
|
+
```JSON
|
|
233
|
+
\"context\": {
|
|
234
|
+
\"facetQueries\": [
|
|
235
|
+
{ \"label\": \"small\",\"count\": 2 },
|
|
236
|
+
{ \"label\": \"large\",\"count\": 0 },
|
|
237
|
+
{ \"label\": \"xtra small\",\"count\": 5 },
|
|
238
|
+
{ \"label\": \"xtra large\",\"count\": 56},
|
|
239
|
+
{ \"label\": \"medium\",\"count\": 4 },
|
|
240
|
+
{ \"label\": \"XX large\", \"count\": 1 }
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
You can specify several facet fields using the **facetFields JSON body parameter**, for example:
|
|
246
|
+
```JSON
|
|
247
|
+
\"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\",
|
|
248
|
+
\"mincount\": 1}]}
|
|
249
|
+
```
|
|
250
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet field.
|
|
251
|
+
```JSON
|
|
252
|
+
\"context\": {
|
|
253
|
+
\"facetsFields\": [
|
|
254
|
+
{ \"label\": \"creator\",
|
|
255
|
+
\"buckets\": [
|
|
256
|
+
{ \"label\": \"System\", \"count\": 75 },
|
|
257
|
+
{ \"label\": \"mjackson\", \"count\": 5 }
|
|
258
|
+
]},
|
|
259
|
+
{ \"label\": \"modifier\",
|
|
260
|
+
\"buckets\": [
|
|
261
|
+
{ \"label\": \"System\", \"count\": 72 },
|
|
262
|
+
{ \"label\": \"mjackson\", \"count\": 5 },
|
|
263
|
+
{ \"label\": \"admin\", \"count\": 3 }
|
|
264
|
+
]}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Grouping facet queries that go together can be done by specifying the group label in the fact
|
|
270
|
+
queries as follow:
|
|
271
|
+
```JSON
|
|
272
|
+
{
|
|
273
|
+
\"query\": {
|
|
274
|
+
\"query\": \"presentation\"
|
|
275
|
+
},
|
|
276
|
+
\"facetQueries\": [
|
|
277
|
+
{\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"},
|
|
278
|
+
{\"query\": \"content.size:[102400 TO 1048576]\", \"label\":
|
|
279
|
+
\"medium\",\"group\":\"foo\"},
|
|
280
|
+
{\"query\": \"content.size:[1048576 TO 16777216]\", \"label\":
|
|
281
|
+
\"large\",\"group\":\"foo\"}
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
```
|
|
285
|
+
The above query returns the results a faceted field grouped under the label foo:
|
|
286
|
+
```JSON
|
|
287
|
+
{
|
|
288
|
+
\"context\": {\"facetsFields\": [{
|
|
289
|
+
\"label\": \"foo\",
|
|
290
|
+
\"buckets\": [
|
|
291
|
+
{
|
|
292
|
+
\"count\": 109,
|
|
293
|
+
\"label\": \"small\",
|
|
294
|
+
\"filterQuery\": \"content.size:[0 TO 102400]\"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
\"count\": 0,
|
|
298
|
+
\"label\": \"large\",
|
|
299
|
+
\"filterQuery\": \"content.size:[1048576 TO 16777216]\"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
\"count\": 0,
|
|
303
|
+
\"label\": \"medium\",
|
|
304
|
+
\"filterQuery\": \"content.size:[102400 TO 1048576]\"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
}]
|
|
308
|
+
}
|
|
309
|
+
```
|
|
310
|
+
Range Faceting is supported by the **ranges JSON body parameter**, for example:
|
|
311
|
+
```JSON
|
|
312
|
+
{
|
|
313
|
+
\"query\": {
|
|
314
|
+
\"query\": \"presentation\"
|
|
315
|
+
},
|
|
316
|
+
\"ranges\": [
|
|
317
|
+
{
|
|
318
|
+
\"field\": \"content.size\",
|
|
319
|
+
\"start\": \"0\",
|
|
320
|
+
\"end\": \"100\",
|
|
321
|
+
\"gap\": \"20\",
|
|
322
|
+
\"hardend\": true
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
\"field\": \"created\",
|
|
326
|
+
\"start\": \"2015-09-29T10:45:15.729Z\",
|
|
327
|
+
\"end\": \"2016-09-29T10:45:15.729Z\",
|
|
328
|
+
\"gap\": \"+100DAY\"
|
|
329
|
+
}]
|
|
330
|
+
}
|
|
331
|
+
```
|
|
332
|
+
An example query for **search highlighting** could look like this:
|
|
333
|
+
```JSON
|
|
334
|
+
{
|
|
335
|
+
\"query\": {
|
|
336
|
+
\"query\": \"description:workflow\",
|
|
337
|
+
\"userQuery\":\"workflow\"
|
|
338
|
+
},
|
|
339
|
+
\"highlight\": {
|
|
340
|
+
\"prefix\": \"¿\",
|
|
341
|
+
\"postfix\": \"?\",
|
|
342
|
+
\"mergeContiguous\": true,
|
|
343
|
+
\"fields\": [
|
|
344
|
+
{
|
|
345
|
+
\"field\": \"cm:title\"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
\"field\": \"description\",
|
|
349
|
+
\"prefix\": \"(\",
|
|
350
|
+
\"postfix\": \")\"
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
```
|
|
357
|
+
The example above changes the highlighting prefix and postfix from the default `<em>` for all fields
|
|
358
|
+
to ¿? and just for the \"description\" field to ().
|
|
359
|
+
The hightlight information is added in each node entry response; here is an example partial
|
|
360
|
+
response:
|
|
361
|
+
```
|
|
362
|
+
\"entry\": {
|
|
363
|
+
\"createdAt\": \"2016-10-12T15:24:31.202+0000\",
|
|
364
|
+
\"isFolder\": true,
|
|
365
|
+
\"search\": {
|
|
366
|
+
\"score\": 1,
|
|
367
|
+
\"highlight\": [
|
|
368
|
+
{
|
|
369
|
+
\"field\": \"cm:title\",
|
|
370
|
+
\"snippets\": [
|
|
371
|
+
\"Customized ¿Workflow? Process Definitions\"
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
\"field\": \"description\",
|
|
376
|
+
\"snippets\": [
|
|
377
|
+
\"Customized (Workflow) Process Definitions\"
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
```
|
|
383
|
+
**Note**: after the migration to Swagger UI 3, this API definition was triggering some warnings,
|
|
384
|
+
more info in [this StackOverflow Q&A](https://stackoverflow.com/q/65584131/1654265).
|
|
385
|
+
|
|
386
|
+
Args:
|
|
387
|
+
body (SearchRequest):
|
|
388
|
+
|
|
389
|
+
Raises:
|
|
390
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
391
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
392
|
+
|
|
393
|
+
Returns:
|
|
394
|
+
Response[ResultSetPaging]
|
|
395
|
+
"""
|
|
396
|
+
|
|
397
|
+
kwargs = _get_kwargs(
|
|
398
|
+
body=body,
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
response = client.get_httpx_client().request(
|
|
402
|
+
**kwargs,
|
|
403
|
+
)
|
|
404
|
+
|
|
405
|
+
return _build_response(client=client, response=response)
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
def sync(
|
|
409
|
+
*,
|
|
410
|
+
client: Union[AuthenticatedClient, Client],
|
|
411
|
+
body: SearchRequest,
|
|
412
|
+
) -> Optional[ResultSetPaging]:
|
|
413
|
+
r"""Searches Alfresco
|
|
414
|
+
|
|
415
|
+
**Note**: this endpoint is available in Alfresco 5.2 and newer versions.
|
|
416
|
+
|
|
417
|
+
**You specify all the parameters in this API in a JSON body**, URL parameters are not supported.
|
|
418
|
+
A basic query looks like this:
|
|
419
|
+
|
|
420
|
+
```JSON
|
|
421
|
+
{
|
|
422
|
+
\"query\": {
|
|
423
|
+
\"query\": \"foo\"
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
**Note:** These are the minimum possible query parameters.
|
|
429
|
+
|
|
430
|
+
The default search language is **afts** ([Alfresco Full Text
|
|
431
|
+
Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify
|
|
432
|
+
**cmis**, and **lucene**.
|
|
433
|
+
|
|
434
|
+
A basic CMIS query looks like this:
|
|
435
|
+
|
|
436
|
+
```JSON
|
|
437
|
+
{
|
|
438
|
+
\"query\": {
|
|
439
|
+
\"query\": \"select * from cmis:folder\",
|
|
440
|
+
\"language\": \"cmis\"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
By default, **results are limited to the first 100.**
|
|
446
|
+
Results can be restricted using \"paging\". For example:
|
|
447
|
+
```JSON
|
|
448
|
+
\"paging\": {
|
|
449
|
+
\"maxItems\": \"50\",
|
|
450
|
+
\"skipCount\": \"28\"
|
|
451
|
+
}
|
|
452
|
+
```
|
|
453
|
+
This example would ensure that results are **limited by Final Size**, skipping the first 28 results
|
|
454
|
+
and returning the next 50.
|
|
455
|
+
|
|
456
|
+
Alternatively, you can limit the results by using the **limits JSON body parameter**. For example,
|
|
457
|
+
```JSON
|
|
458
|
+
\"limits\": {
|
|
459
|
+
\"permissionEvaluationTime\": 20000,
|
|
460
|
+
\"permissionEvaluationCount\": 2000
|
|
461
|
+
}
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
You can use the **include JSON body parameter** to return additional information.
|
|
465
|
+
This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
|
|
466
|
+
```JSON
|
|
467
|
+
\"include\": [\"aspectNames\", \"properties\", \"isLink\"]
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
You can use the **fields JSON body parameter** to restrict the fields returned within a response if,
|
|
471
|
+
for example, you want to save on overall bandwidth.
|
|
472
|
+
This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
|
|
473
|
+
```JSON
|
|
474
|
+
\"fields\": [\"id\", \"name\", \"search\"]
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
You can sort the results using the **sort JSON body parameter**, for example:
|
|
478
|
+
```JSON
|
|
479
|
+
\"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}]
|
|
480
|
+
```
|
|
481
|
+
**Note:** the **sort** parameter is not supported for CMIS queries.
|
|
482
|
+
|
|
483
|
+
By default, search uses the **\"nodes\" location**, which is the **content store known as
|
|
484
|
+
workspace://SpacesStore**.
|
|
485
|
+
To change the scope to another location you can use the **locations JSON body parameter**.
|
|
486
|
+
You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example:
|
|
487
|
+
```JSON
|
|
488
|
+
\"scope\": {
|
|
489
|
+
\"locations\": [\"deleted-nodes\"]
|
|
490
|
+
}
|
|
491
|
+
```
|
|
492
|
+
You can specify templates using the **templates JSON body parameter**, for example:
|
|
493
|
+
```JSON
|
|
494
|
+
\"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"},
|
|
495
|
+
{\"name\": \"mytemplate\",\"template\": \"%cm:content\"}]
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
**Note: Spell checking only works on Search Services (Solr 6) if you have already enabled
|
|
499
|
+
suggestions.**
|
|
500
|
+
|
|
501
|
+
For **spell checking** you can use a query like this:
|
|
502
|
+
```JSON
|
|
503
|
+
{
|
|
504
|
+
\"query\": {
|
|
505
|
+
\"query\": \"cm:title:alfrezco\"
|
|
506
|
+
},
|
|
507
|
+
\"spellcheck\": {\"query\": \"alfrezco\"}
|
|
508
|
+
}
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
If you are already specifying \"userQuery\" then the following may be easier and produces the same
|
|
512
|
+
result :
|
|
513
|
+
```JSON
|
|
514
|
+
{
|
|
515
|
+
\"query\": {
|
|
516
|
+
\"query\": \"cm:title:alfrezco\",
|
|
517
|
+
\"userQuery\": \"alfrezco\"
|
|
518
|
+
},
|
|
519
|
+
\"spellcheck\": {}
|
|
520
|
+
}
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
The spellcheck response includes a spellCheck context like this:
|
|
524
|
+
```JSON
|
|
525
|
+
\"context\": {
|
|
526
|
+
\"spellCheck\": {
|
|
527
|
+
\"type\": \"searchInsteadFor\",
|
|
528
|
+
\"suggestions\": [\"alfresco\"]
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
To specify defaults, you use a **defaults JSON body parameter**, for example:
|
|
534
|
+
```JSON
|
|
535
|
+
\"defaults\": {
|
|
536
|
+
\"textAttributes\": [
|
|
537
|
+
\"cm:content\", \"cm:name\"
|
|
538
|
+
],
|
|
539
|
+
\"defaultFTSOperator\": \"AND\",
|
|
540
|
+
\"defaultFTSFieldOperator\": \"OR\",
|
|
541
|
+
\"namespace\": \"cm\",
|
|
542
|
+
\"defaultFieldName\": \"PATH\"
|
|
543
|
+
}
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
You can specify several filter queries using the **filterQueries JSON body parameter**, for example:
|
|
547
|
+
```JSON
|
|
548
|
+
\"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}]
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
You can specify several facet queries using the **facetQueries JSON body parameter**, for example:
|
|
552
|
+
```JSON
|
|
553
|
+
\"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}]
|
|
554
|
+
```
|
|
555
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet query.
|
|
556
|
+
```JSON
|
|
557
|
+
\"context\": {
|
|
558
|
+
\"facetQueries\": [
|
|
559
|
+
{\"label\": \"CreatedThisYear\",\"count\": 3}
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
A complete query for facetting via the content.size field looks this:
|
|
565
|
+
```JSON
|
|
566
|
+
{
|
|
567
|
+
\"query\": {
|
|
568
|
+
\"query\": \"presentation\",
|
|
569
|
+
\"language\": \"afts\"
|
|
570
|
+
},
|
|
571
|
+
\"facetQueries\": [
|
|
572
|
+
{\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"},
|
|
573
|
+
{\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"},
|
|
574
|
+
{\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"},
|
|
575
|
+
{\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"},
|
|
576
|
+
{\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"},
|
|
577
|
+
{\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"}
|
|
578
|
+
],
|
|
579
|
+
\"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]}
|
|
580
|
+
}
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet query.
|
|
584
|
+
```JSON
|
|
585
|
+
\"context\": {
|
|
586
|
+
\"facetQueries\": [
|
|
587
|
+
{ \"label\": \"small\",\"count\": 2 },
|
|
588
|
+
{ \"label\": \"large\",\"count\": 0 },
|
|
589
|
+
{ \"label\": \"xtra small\",\"count\": 5 },
|
|
590
|
+
{ \"label\": \"xtra large\",\"count\": 56},
|
|
591
|
+
{ \"label\": \"medium\",\"count\": 4 },
|
|
592
|
+
{ \"label\": \"XX large\", \"count\": 1 }
|
|
593
|
+
]
|
|
594
|
+
},
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
You can specify several facet fields using the **facetFields JSON body parameter**, for example:
|
|
598
|
+
```JSON
|
|
599
|
+
\"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\",
|
|
600
|
+
\"mincount\": 1}]}
|
|
601
|
+
```
|
|
602
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet field.
|
|
603
|
+
```JSON
|
|
604
|
+
\"context\": {
|
|
605
|
+
\"facetsFields\": [
|
|
606
|
+
{ \"label\": \"creator\",
|
|
607
|
+
\"buckets\": [
|
|
608
|
+
{ \"label\": \"System\", \"count\": 75 },
|
|
609
|
+
{ \"label\": \"mjackson\", \"count\": 5 }
|
|
610
|
+
]},
|
|
611
|
+
{ \"label\": \"modifier\",
|
|
612
|
+
\"buckets\": [
|
|
613
|
+
{ \"label\": \"System\", \"count\": 72 },
|
|
614
|
+
{ \"label\": \"mjackson\", \"count\": 5 },
|
|
615
|
+
{ \"label\": \"admin\", \"count\": 3 }
|
|
616
|
+
]}
|
|
617
|
+
]
|
|
618
|
+
},
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
Grouping facet queries that go together can be done by specifying the group label in the fact
|
|
622
|
+
queries as follow:
|
|
623
|
+
```JSON
|
|
624
|
+
{
|
|
625
|
+
\"query\": {
|
|
626
|
+
\"query\": \"presentation\"
|
|
627
|
+
},
|
|
628
|
+
\"facetQueries\": [
|
|
629
|
+
{\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"},
|
|
630
|
+
{\"query\": \"content.size:[102400 TO 1048576]\", \"label\":
|
|
631
|
+
\"medium\",\"group\":\"foo\"},
|
|
632
|
+
{\"query\": \"content.size:[1048576 TO 16777216]\", \"label\":
|
|
633
|
+
\"large\",\"group\":\"foo\"}
|
|
634
|
+
]
|
|
635
|
+
}
|
|
636
|
+
```
|
|
637
|
+
The above query returns the results a faceted field grouped under the label foo:
|
|
638
|
+
```JSON
|
|
639
|
+
{
|
|
640
|
+
\"context\": {\"facetsFields\": [{
|
|
641
|
+
\"label\": \"foo\",
|
|
642
|
+
\"buckets\": [
|
|
643
|
+
{
|
|
644
|
+
\"count\": 109,
|
|
645
|
+
\"label\": \"small\",
|
|
646
|
+
\"filterQuery\": \"content.size:[0 TO 102400]\"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
\"count\": 0,
|
|
650
|
+
\"label\": \"large\",
|
|
651
|
+
\"filterQuery\": \"content.size:[1048576 TO 16777216]\"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
\"count\": 0,
|
|
655
|
+
\"label\": \"medium\",
|
|
656
|
+
\"filterQuery\": \"content.size:[102400 TO 1048576]\"
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
}]
|
|
660
|
+
}
|
|
661
|
+
```
|
|
662
|
+
Range Faceting is supported by the **ranges JSON body parameter**, for example:
|
|
663
|
+
```JSON
|
|
664
|
+
{
|
|
665
|
+
\"query\": {
|
|
666
|
+
\"query\": \"presentation\"
|
|
667
|
+
},
|
|
668
|
+
\"ranges\": [
|
|
669
|
+
{
|
|
670
|
+
\"field\": \"content.size\",
|
|
671
|
+
\"start\": \"0\",
|
|
672
|
+
\"end\": \"100\",
|
|
673
|
+
\"gap\": \"20\",
|
|
674
|
+
\"hardend\": true
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
\"field\": \"created\",
|
|
678
|
+
\"start\": \"2015-09-29T10:45:15.729Z\",
|
|
679
|
+
\"end\": \"2016-09-29T10:45:15.729Z\",
|
|
680
|
+
\"gap\": \"+100DAY\"
|
|
681
|
+
}]
|
|
682
|
+
}
|
|
683
|
+
```
|
|
684
|
+
An example query for **search highlighting** could look like this:
|
|
685
|
+
```JSON
|
|
686
|
+
{
|
|
687
|
+
\"query\": {
|
|
688
|
+
\"query\": \"description:workflow\",
|
|
689
|
+
\"userQuery\":\"workflow\"
|
|
690
|
+
},
|
|
691
|
+
\"highlight\": {
|
|
692
|
+
\"prefix\": \"¿\",
|
|
693
|
+
\"postfix\": \"?\",
|
|
694
|
+
\"mergeContiguous\": true,
|
|
695
|
+
\"fields\": [
|
|
696
|
+
{
|
|
697
|
+
\"field\": \"cm:title\"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
\"field\": \"description\",
|
|
701
|
+
\"prefix\": \"(\",
|
|
702
|
+
\"postfix\": \")\"
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
]
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
```
|
|
709
|
+
The example above changes the highlighting prefix and postfix from the default `<em>` for all fields
|
|
710
|
+
to ¿? and just for the \"description\" field to ().
|
|
711
|
+
The hightlight information is added in each node entry response; here is an example partial
|
|
712
|
+
response:
|
|
713
|
+
```
|
|
714
|
+
\"entry\": {
|
|
715
|
+
\"createdAt\": \"2016-10-12T15:24:31.202+0000\",
|
|
716
|
+
\"isFolder\": true,
|
|
717
|
+
\"search\": {
|
|
718
|
+
\"score\": 1,
|
|
719
|
+
\"highlight\": [
|
|
720
|
+
{
|
|
721
|
+
\"field\": \"cm:title\",
|
|
722
|
+
\"snippets\": [
|
|
723
|
+
\"Customized ¿Workflow? Process Definitions\"
|
|
724
|
+
]
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
\"field\": \"description\",
|
|
728
|
+
\"snippets\": [
|
|
729
|
+
\"Customized (Workflow) Process Definitions\"
|
|
730
|
+
]
|
|
731
|
+
}
|
|
732
|
+
]
|
|
733
|
+
},
|
|
734
|
+
```
|
|
735
|
+
**Note**: after the migration to Swagger UI 3, this API definition was triggering some warnings,
|
|
736
|
+
more info in [this StackOverflow Q&A](https://stackoverflow.com/q/65584131/1654265).
|
|
737
|
+
|
|
738
|
+
Args:
|
|
739
|
+
body (SearchRequest):
|
|
740
|
+
|
|
741
|
+
Raises:
|
|
742
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
743
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
744
|
+
|
|
745
|
+
Returns:
|
|
746
|
+
ResultSetPaging
|
|
747
|
+
"""
|
|
748
|
+
|
|
749
|
+
return sync_detailed(
|
|
750
|
+
client=client,
|
|
751
|
+
body=body,
|
|
752
|
+
).parsed
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
async def asyncio_detailed(
|
|
756
|
+
*,
|
|
757
|
+
client: Union[AuthenticatedClient, Client],
|
|
758
|
+
body: SearchRequest,
|
|
759
|
+
) -> Response[ResultSetPaging]:
|
|
760
|
+
r"""Searches Alfresco
|
|
761
|
+
|
|
762
|
+
**Note**: this endpoint is available in Alfresco 5.2 and newer versions.
|
|
763
|
+
|
|
764
|
+
**You specify all the parameters in this API in a JSON body**, URL parameters are not supported.
|
|
765
|
+
A basic query looks like this:
|
|
766
|
+
|
|
767
|
+
```JSON
|
|
768
|
+
{
|
|
769
|
+
\"query\": {
|
|
770
|
+
\"query\": \"foo\"
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
```
|
|
774
|
+
|
|
775
|
+
**Note:** These are the minimum possible query parameters.
|
|
776
|
+
|
|
777
|
+
The default search language is **afts** ([Alfresco Full Text
|
|
778
|
+
Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify
|
|
779
|
+
**cmis**, and **lucene**.
|
|
780
|
+
|
|
781
|
+
A basic CMIS query looks like this:
|
|
782
|
+
|
|
783
|
+
```JSON
|
|
784
|
+
{
|
|
785
|
+
\"query\": {
|
|
786
|
+
\"query\": \"select * from cmis:folder\",
|
|
787
|
+
\"language\": \"cmis\"
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
```
|
|
791
|
+
|
|
792
|
+
By default, **results are limited to the first 100.**
|
|
793
|
+
Results can be restricted using \"paging\". For example:
|
|
794
|
+
```JSON
|
|
795
|
+
\"paging\": {
|
|
796
|
+
\"maxItems\": \"50\",
|
|
797
|
+
\"skipCount\": \"28\"
|
|
798
|
+
}
|
|
799
|
+
```
|
|
800
|
+
This example would ensure that results are **limited by Final Size**, skipping the first 28 results
|
|
801
|
+
and returning the next 50.
|
|
802
|
+
|
|
803
|
+
Alternatively, you can limit the results by using the **limits JSON body parameter**. For example,
|
|
804
|
+
```JSON
|
|
805
|
+
\"limits\": {
|
|
806
|
+
\"permissionEvaluationTime\": 20000,
|
|
807
|
+
\"permissionEvaluationCount\": 2000
|
|
808
|
+
}
|
|
809
|
+
```
|
|
810
|
+
|
|
811
|
+
You can use the **include JSON body parameter** to return additional information.
|
|
812
|
+
This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
|
|
813
|
+
```JSON
|
|
814
|
+
\"include\": [\"aspectNames\", \"properties\", \"isLink\"]
|
|
815
|
+
```
|
|
816
|
+
|
|
817
|
+
You can use the **fields JSON body parameter** to restrict the fields returned within a response if,
|
|
818
|
+
for example, you want to save on overall bandwidth.
|
|
819
|
+
This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
|
|
820
|
+
```JSON
|
|
821
|
+
\"fields\": [\"id\", \"name\", \"search\"]
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
You can sort the results using the **sort JSON body parameter**, for example:
|
|
825
|
+
```JSON
|
|
826
|
+
\"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}]
|
|
827
|
+
```
|
|
828
|
+
**Note:** the **sort** parameter is not supported for CMIS queries.
|
|
829
|
+
|
|
830
|
+
By default, search uses the **\"nodes\" location**, which is the **content store known as
|
|
831
|
+
workspace://SpacesStore**.
|
|
832
|
+
To change the scope to another location you can use the **locations JSON body parameter**.
|
|
833
|
+
You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example:
|
|
834
|
+
```JSON
|
|
835
|
+
\"scope\": {
|
|
836
|
+
\"locations\": [\"deleted-nodes\"]
|
|
837
|
+
}
|
|
838
|
+
```
|
|
839
|
+
You can specify templates using the **templates JSON body parameter**, for example:
|
|
840
|
+
```JSON
|
|
841
|
+
\"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"},
|
|
842
|
+
{\"name\": \"mytemplate\",\"template\": \"%cm:content\"}]
|
|
843
|
+
```
|
|
844
|
+
|
|
845
|
+
**Note: Spell checking only works on Search Services (Solr 6) if you have already enabled
|
|
846
|
+
suggestions.**
|
|
847
|
+
|
|
848
|
+
For **spell checking** you can use a query like this:
|
|
849
|
+
```JSON
|
|
850
|
+
{
|
|
851
|
+
\"query\": {
|
|
852
|
+
\"query\": \"cm:title:alfrezco\"
|
|
853
|
+
},
|
|
854
|
+
\"spellcheck\": {\"query\": \"alfrezco\"}
|
|
855
|
+
}
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
If you are already specifying \"userQuery\" then the following may be easier and produces the same
|
|
859
|
+
result :
|
|
860
|
+
```JSON
|
|
861
|
+
{
|
|
862
|
+
\"query\": {
|
|
863
|
+
\"query\": \"cm:title:alfrezco\",
|
|
864
|
+
\"userQuery\": \"alfrezco\"
|
|
865
|
+
},
|
|
866
|
+
\"spellcheck\": {}
|
|
867
|
+
}
|
|
868
|
+
```
|
|
869
|
+
|
|
870
|
+
The spellcheck response includes a spellCheck context like this:
|
|
871
|
+
```JSON
|
|
872
|
+
\"context\": {
|
|
873
|
+
\"spellCheck\": {
|
|
874
|
+
\"type\": \"searchInsteadFor\",
|
|
875
|
+
\"suggestions\": [\"alfresco\"]
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
To specify defaults, you use a **defaults JSON body parameter**, for example:
|
|
881
|
+
```JSON
|
|
882
|
+
\"defaults\": {
|
|
883
|
+
\"textAttributes\": [
|
|
884
|
+
\"cm:content\", \"cm:name\"
|
|
885
|
+
],
|
|
886
|
+
\"defaultFTSOperator\": \"AND\",
|
|
887
|
+
\"defaultFTSFieldOperator\": \"OR\",
|
|
888
|
+
\"namespace\": \"cm\",
|
|
889
|
+
\"defaultFieldName\": \"PATH\"
|
|
890
|
+
}
|
|
891
|
+
```
|
|
892
|
+
|
|
893
|
+
You can specify several filter queries using the **filterQueries JSON body parameter**, for example:
|
|
894
|
+
```JSON
|
|
895
|
+
\"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}]
|
|
896
|
+
```
|
|
897
|
+
|
|
898
|
+
You can specify several facet queries using the **facetQueries JSON body parameter**, for example:
|
|
899
|
+
```JSON
|
|
900
|
+
\"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}]
|
|
901
|
+
```
|
|
902
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet query.
|
|
903
|
+
```JSON
|
|
904
|
+
\"context\": {
|
|
905
|
+
\"facetQueries\": [
|
|
906
|
+
{\"label\": \"CreatedThisYear\",\"count\": 3}
|
|
907
|
+
]
|
|
908
|
+
},
|
|
909
|
+
```
|
|
910
|
+
|
|
911
|
+
A complete query for facetting via the content.size field looks this:
|
|
912
|
+
```JSON
|
|
913
|
+
{
|
|
914
|
+
\"query\": {
|
|
915
|
+
\"query\": \"presentation\",
|
|
916
|
+
\"language\": \"afts\"
|
|
917
|
+
},
|
|
918
|
+
\"facetQueries\": [
|
|
919
|
+
{\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"},
|
|
920
|
+
{\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"},
|
|
921
|
+
{\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"},
|
|
922
|
+
{\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"},
|
|
923
|
+
{\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"},
|
|
924
|
+
{\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"}
|
|
925
|
+
],
|
|
926
|
+
\"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]}
|
|
927
|
+
}
|
|
928
|
+
```
|
|
929
|
+
|
|
930
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet query.
|
|
931
|
+
```JSON
|
|
932
|
+
\"context\": {
|
|
933
|
+
\"facetQueries\": [
|
|
934
|
+
{ \"label\": \"small\",\"count\": 2 },
|
|
935
|
+
{ \"label\": \"large\",\"count\": 0 },
|
|
936
|
+
{ \"label\": \"xtra small\",\"count\": 5 },
|
|
937
|
+
{ \"label\": \"xtra large\",\"count\": 56},
|
|
938
|
+
{ \"label\": \"medium\",\"count\": 4 },
|
|
939
|
+
{ \"label\": \"XX large\", \"count\": 1 }
|
|
940
|
+
]
|
|
941
|
+
},
|
|
942
|
+
```
|
|
943
|
+
|
|
944
|
+
You can specify several facet fields using the **facetFields JSON body parameter**, for example:
|
|
945
|
+
```JSON
|
|
946
|
+
\"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\",
|
|
947
|
+
\"mincount\": 1}]}
|
|
948
|
+
```
|
|
949
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet field.
|
|
950
|
+
```JSON
|
|
951
|
+
\"context\": {
|
|
952
|
+
\"facetsFields\": [
|
|
953
|
+
{ \"label\": \"creator\",
|
|
954
|
+
\"buckets\": [
|
|
955
|
+
{ \"label\": \"System\", \"count\": 75 },
|
|
956
|
+
{ \"label\": \"mjackson\", \"count\": 5 }
|
|
957
|
+
]},
|
|
958
|
+
{ \"label\": \"modifier\",
|
|
959
|
+
\"buckets\": [
|
|
960
|
+
{ \"label\": \"System\", \"count\": 72 },
|
|
961
|
+
{ \"label\": \"mjackson\", \"count\": 5 },
|
|
962
|
+
{ \"label\": \"admin\", \"count\": 3 }
|
|
963
|
+
]}
|
|
964
|
+
]
|
|
965
|
+
},
|
|
966
|
+
```
|
|
967
|
+
|
|
968
|
+
Grouping facet queries that go together can be done by specifying the group label in the fact
|
|
969
|
+
queries as follow:
|
|
970
|
+
```JSON
|
|
971
|
+
{
|
|
972
|
+
\"query\": {
|
|
973
|
+
\"query\": \"presentation\"
|
|
974
|
+
},
|
|
975
|
+
\"facetQueries\": [
|
|
976
|
+
{\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"},
|
|
977
|
+
{\"query\": \"content.size:[102400 TO 1048576]\", \"label\":
|
|
978
|
+
\"medium\",\"group\":\"foo\"},
|
|
979
|
+
{\"query\": \"content.size:[1048576 TO 16777216]\", \"label\":
|
|
980
|
+
\"large\",\"group\":\"foo\"}
|
|
981
|
+
]
|
|
982
|
+
}
|
|
983
|
+
```
|
|
984
|
+
The above query returns the results a faceted field grouped under the label foo:
|
|
985
|
+
```JSON
|
|
986
|
+
{
|
|
987
|
+
\"context\": {\"facetsFields\": [{
|
|
988
|
+
\"label\": \"foo\",
|
|
989
|
+
\"buckets\": [
|
|
990
|
+
{
|
|
991
|
+
\"count\": 109,
|
|
992
|
+
\"label\": \"small\",
|
|
993
|
+
\"filterQuery\": \"content.size:[0 TO 102400]\"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
\"count\": 0,
|
|
997
|
+
\"label\": \"large\",
|
|
998
|
+
\"filterQuery\": \"content.size:[1048576 TO 16777216]\"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
\"count\": 0,
|
|
1002
|
+
\"label\": \"medium\",
|
|
1003
|
+
\"filterQuery\": \"content.size:[102400 TO 1048576]\"
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
}]
|
|
1007
|
+
}
|
|
1008
|
+
```
|
|
1009
|
+
Range Faceting is supported by the **ranges JSON body parameter**, for example:
|
|
1010
|
+
```JSON
|
|
1011
|
+
{
|
|
1012
|
+
\"query\": {
|
|
1013
|
+
\"query\": \"presentation\"
|
|
1014
|
+
},
|
|
1015
|
+
\"ranges\": [
|
|
1016
|
+
{
|
|
1017
|
+
\"field\": \"content.size\",
|
|
1018
|
+
\"start\": \"0\",
|
|
1019
|
+
\"end\": \"100\",
|
|
1020
|
+
\"gap\": \"20\",
|
|
1021
|
+
\"hardend\": true
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
\"field\": \"created\",
|
|
1025
|
+
\"start\": \"2015-09-29T10:45:15.729Z\",
|
|
1026
|
+
\"end\": \"2016-09-29T10:45:15.729Z\",
|
|
1027
|
+
\"gap\": \"+100DAY\"
|
|
1028
|
+
}]
|
|
1029
|
+
}
|
|
1030
|
+
```
|
|
1031
|
+
An example query for **search highlighting** could look like this:
|
|
1032
|
+
```JSON
|
|
1033
|
+
{
|
|
1034
|
+
\"query\": {
|
|
1035
|
+
\"query\": \"description:workflow\",
|
|
1036
|
+
\"userQuery\":\"workflow\"
|
|
1037
|
+
},
|
|
1038
|
+
\"highlight\": {
|
|
1039
|
+
\"prefix\": \"¿\",
|
|
1040
|
+
\"postfix\": \"?\",
|
|
1041
|
+
\"mergeContiguous\": true,
|
|
1042
|
+
\"fields\": [
|
|
1043
|
+
{
|
|
1044
|
+
\"field\": \"cm:title\"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
\"field\": \"description\",
|
|
1048
|
+
\"prefix\": \"(\",
|
|
1049
|
+
\"postfix\": \")\"
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
]
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
```
|
|
1056
|
+
The example above changes the highlighting prefix and postfix from the default `<em>` for all fields
|
|
1057
|
+
to ¿? and just for the \"description\" field to ().
|
|
1058
|
+
The hightlight information is added in each node entry response; here is an example partial
|
|
1059
|
+
response:
|
|
1060
|
+
```
|
|
1061
|
+
\"entry\": {
|
|
1062
|
+
\"createdAt\": \"2016-10-12T15:24:31.202+0000\",
|
|
1063
|
+
\"isFolder\": true,
|
|
1064
|
+
\"search\": {
|
|
1065
|
+
\"score\": 1,
|
|
1066
|
+
\"highlight\": [
|
|
1067
|
+
{
|
|
1068
|
+
\"field\": \"cm:title\",
|
|
1069
|
+
\"snippets\": [
|
|
1070
|
+
\"Customized ¿Workflow? Process Definitions\"
|
|
1071
|
+
]
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
\"field\": \"description\",
|
|
1075
|
+
\"snippets\": [
|
|
1076
|
+
\"Customized (Workflow) Process Definitions\"
|
|
1077
|
+
]
|
|
1078
|
+
}
|
|
1079
|
+
]
|
|
1080
|
+
},
|
|
1081
|
+
```
|
|
1082
|
+
**Note**: after the migration to Swagger UI 3, this API definition was triggering some warnings,
|
|
1083
|
+
more info in [this StackOverflow Q&A](https://stackoverflow.com/q/65584131/1654265).
|
|
1084
|
+
|
|
1085
|
+
Args:
|
|
1086
|
+
body (SearchRequest):
|
|
1087
|
+
|
|
1088
|
+
Raises:
|
|
1089
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
1090
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
1091
|
+
|
|
1092
|
+
Returns:
|
|
1093
|
+
Response[ResultSetPaging]
|
|
1094
|
+
"""
|
|
1095
|
+
|
|
1096
|
+
kwargs = _get_kwargs(
|
|
1097
|
+
body=body,
|
|
1098
|
+
)
|
|
1099
|
+
|
|
1100
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
1101
|
+
|
|
1102
|
+
return _build_response(client=client, response=response)
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
async def asyncio(
|
|
1106
|
+
*,
|
|
1107
|
+
client: Union[AuthenticatedClient, Client],
|
|
1108
|
+
body: SearchRequest,
|
|
1109
|
+
) -> Optional[ResultSetPaging]:
|
|
1110
|
+
r"""Searches Alfresco
|
|
1111
|
+
|
|
1112
|
+
**Note**: this endpoint is available in Alfresco 5.2 and newer versions.
|
|
1113
|
+
|
|
1114
|
+
**You specify all the parameters in this API in a JSON body**, URL parameters are not supported.
|
|
1115
|
+
A basic query looks like this:
|
|
1116
|
+
|
|
1117
|
+
```JSON
|
|
1118
|
+
{
|
|
1119
|
+
\"query\": {
|
|
1120
|
+
\"query\": \"foo\"
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
```
|
|
1124
|
+
|
|
1125
|
+
**Note:** These are the minimum possible query parameters.
|
|
1126
|
+
|
|
1127
|
+
The default search language is **afts** ([Alfresco Full Text
|
|
1128
|
+
Search](http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-intro.html)), but you can also specify
|
|
1129
|
+
**cmis**, and **lucene**.
|
|
1130
|
+
|
|
1131
|
+
A basic CMIS query looks like this:
|
|
1132
|
+
|
|
1133
|
+
```JSON
|
|
1134
|
+
{
|
|
1135
|
+
\"query\": {
|
|
1136
|
+
\"query\": \"select * from cmis:folder\",
|
|
1137
|
+
\"language\": \"cmis\"
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
```
|
|
1141
|
+
|
|
1142
|
+
By default, **results are limited to the first 100.**
|
|
1143
|
+
Results can be restricted using \"paging\". For example:
|
|
1144
|
+
```JSON
|
|
1145
|
+
\"paging\": {
|
|
1146
|
+
\"maxItems\": \"50\",
|
|
1147
|
+
\"skipCount\": \"28\"
|
|
1148
|
+
}
|
|
1149
|
+
```
|
|
1150
|
+
This example would ensure that results are **limited by Final Size**, skipping the first 28 results
|
|
1151
|
+
and returning the next 50.
|
|
1152
|
+
|
|
1153
|
+
Alternatively, you can limit the results by using the **limits JSON body parameter**. For example,
|
|
1154
|
+
```JSON
|
|
1155
|
+
\"limits\": {
|
|
1156
|
+
\"permissionEvaluationTime\": 20000,
|
|
1157
|
+
\"permissionEvaluationCount\": 2000
|
|
1158
|
+
}
|
|
1159
|
+
```
|
|
1160
|
+
|
|
1161
|
+
You can use the **include JSON body parameter** to return additional information.
|
|
1162
|
+
This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
|
|
1163
|
+
```JSON
|
|
1164
|
+
\"include\": [\"aspectNames\", \"properties\", \"isLink\"]
|
|
1165
|
+
```
|
|
1166
|
+
|
|
1167
|
+
You can use the **fields JSON body parameter** to restrict the fields returned within a response if,
|
|
1168
|
+
for example, you want to save on overall bandwidth.
|
|
1169
|
+
This works in the same way as in the /nodes/{nodeId}/children method in the core API. For example:
|
|
1170
|
+
```JSON
|
|
1171
|
+
\"fields\": [\"id\", \"name\", \"search\"]
|
|
1172
|
+
```
|
|
1173
|
+
|
|
1174
|
+
You can sort the results using the **sort JSON body parameter**, for example:
|
|
1175
|
+
```JSON
|
|
1176
|
+
\"sort\": [{\"type\":\"FIELD\", \"field\":\"cm:description\", \"ascending\":\"true\"}]
|
|
1177
|
+
```
|
|
1178
|
+
**Note:** the **sort** parameter is not supported for CMIS queries.
|
|
1179
|
+
|
|
1180
|
+
By default, search uses the **\"nodes\" location**, which is the **content store known as
|
|
1181
|
+
workspace://SpacesStore**.
|
|
1182
|
+
To change the scope to another location you can use the **locations JSON body parameter**.
|
|
1183
|
+
You can specify either **nodes** (the default), **versions** or **deleted-nodes**. For example:
|
|
1184
|
+
```JSON
|
|
1185
|
+
\"scope\": {
|
|
1186
|
+
\"locations\": [\"deleted-nodes\"]
|
|
1187
|
+
}
|
|
1188
|
+
```
|
|
1189
|
+
You can specify templates using the **templates JSON body parameter**, for example:
|
|
1190
|
+
```JSON
|
|
1191
|
+
\"templates\": [{\"name\": \"_PERSON\",\"template\": \"|%firstName OR |%lastName OR |%userName\"},
|
|
1192
|
+
{\"name\": \"mytemplate\",\"template\": \"%cm:content\"}]
|
|
1193
|
+
```
|
|
1194
|
+
|
|
1195
|
+
**Note: Spell checking only works on Search Services (Solr 6) if you have already enabled
|
|
1196
|
+
suggestions.**
|
|
1197
|
+
|
|
1198
|
+
For **spell checking** you can use a query like this:
|
|
1199
|
+
```JSON
|
|
1200
|
+
{
|
|
1201
|
+
\"query\": {
|
|
1202
|
+
\"query\": \"cm:title:alfrezco\"
|
|
1203
|
+
},
|
|
1204
|
+
\"spellcheck\": {\"query\": \"alfrezco\"}
|
|
1205
|
+
}
|
|
1206
|
+
```
|
|
1207
|
+
|
|
1208
|
+
If you are already specifying \"userQuery\" then the following may be easier and produces the same
|
|
1209
|
+
result :
|
|
1210
|
+
```JSON
|
|
1211
|
+
{
|
|
1212
|
+
\"query\": {
|
|
1213
|
+
\"query\": \"cm:title:alfrezco\",
|
|
1214
|
+
\"userQuery\": \"alfrezco\"
|
|
1215
|
+
},
|
|
1216
|
+
\"spellcheck\": {}
|
|
1217
|
+
}
|
|
1218
|
+
```
|
|
1219
|
+
|
|
1220
|
+
The spellcheck response includes a spellCheck context like this:
|
|
1221
|
+
```JSON
|
|
1222
|
+
\"context\": {
|
|
1223
|
+
\"spellCheck\": {
|
|
1224
|
+
\"type\": \"searchInsteadFor\",
|
|
1225
|
+
\"suggestions\": [\"alfresco\"]
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
```
|
|
1229
|
+
|
|
1230
|
+
To specify defaults, you use a **defaults JSON body parameter**, for example:
|
|
1231
|
+
```JSON
|
|
1232
|
+
\"defaults\": {
|
|
1233
|
+
\"textAttributes\": [
|
|
1234
|
+
\"cm:content\", \"cm:name\"
|
|
1235
|
+
],
|
|
1236
|
+
\"defaultFTSOperator\": \"AND\",
|
|
1237
|
+
\"defaultFTSFieldOperator\": \"OR\",
|
|
1238
|
+
\"namespace\": \"cm\",
|
|
1239
|
+
\"defaultFieldName\": \"PATH\"
|
|
1240
|
+
}
|
|
1241
|
+
```
|
|
1242
|
+
|
|
1243
|
+
You can specify several filter queries using the **filterQueries JSON body parameter**, for example:
|
|
1244
|
+
```JSON
|
|
1245
|
+
\"filterQueries\": [{\"query\": \"TYPE:'cm:folder'\"},{\"query\": \"cm:creator:mjackson\"}]
|
|
1246
|
+
```
|
|
1247
|
+
|
|
1248
|
+
You can specify several facet queries using the **facetQueries JSON body parameter**, for example:
|
|
1249
|
+
```JSON
|
|
1250
|
+
\"facetQueries\": [{\"query\": \"created:2016\",\"label\": \"CreatedThisYear\"}]
|
|
1251
|
+
```
|
|
1252
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet query.
|
|
1253
|
+
```JSON
|
|
1254
|
+
\"context\": {
|
|
1255
|
+
\"facetQueries\": [
|
|
1256
|
+
{\"label\": \"CreatedThisYear\",\"count\": 3}
|
|
1257
|
+
]
|
|
1258
|
+
},
|
|
1259
|
+
```
|
|
1260
|
+
|
|
1261
|
+
A complete query for facetting via the content.size field looks this:
|
|
1262
|
+
```JSON
|
|
1263
|
+
{
|
|
1264
|
+
\"query\": {
|
|
1265
|
+
\"query\": \"presentation\",
|
|
1266
|
+
\"language\": \"afts\"
|
|
1267
|
+
},
|
|
1268
|
+
\"facetQueries\": [
|
|
1269
|
+
{\"query\": \"content.size:[0 TO 10240]\", \"label\": \"xtra small\"},
|
|
1270
|
+
{\"query\": \"content.size:[10240 TO 102400]\", \"label\": \"small\"},
|
|
1271
|
+
{\"query\": \"content.size:[102400 TO 1048576]\", \"label\": \"medium\"},
|
|
1272
|
+
{\"query\": \"content.size:[1048576 TO 16777216]\", \"label\": \"large\"},
|
|
1273
|
+
{\"query\": \"content.size:[16777216 TO 134217728]\", \"label\": \"xtra large\"},
|
|
1274
|
+
{\"query\": \"content.size:[134217728 TO MAX]\", \"label\": \"XX large\"}
|
|
1275
|
+
],
|
|
1276
|
+
\"facetFields\": {\"facets\": [{\"field\": \"'content.size'\"}]}
|
|
1277
|
+
}
|
|
1278
|
+
```
|
|
1279
|
+
|
|
1280
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet query.
|
|
1281
|
+
```JSON
|
|
1282
|
+
\"context\": {
|
|
1283
|
+
\"facetQueries\": [
|
|
1284
|
+
{ \"label\": \"small\",\"count\": 2 },
|
|
1285
|
+
{ \"label\": \"large\",\"count\": 0 },
|
|
1286
|
+
{ \"label\": \"xtra small\",\"count\": 5 },
|
|
1287
|
+
{ \"label\": \"xtra large\",\"count\": 56},
|
|
1288
|
+
{ \"label\": \"medium\",\"count\": 4 },
|
|
1289
|
+
{ \"label\": \"XX large\", \"count\": 1 }
|
|
1290
|
+
]
|
|
1291
|
+
},
|
|
1292
|
+
```
|
|
1293
|
+
|
|
1294
|
+
You can specify several facet fields using the **facetFields JSON body parameter**, for example:
|
|
1295
|
+
```JSON
|
|
1296
|
+
\"facetFields\": {\"facets\": [{\"field\": \"creator\", \"mincount\": 1}, {\"field\": \"modifier\",
|
|
1297
|
+
\"mincount\": 1}]}
|
|
1298
|
+
```
|
|
1299
|
+
The response will contain a matching \"context\" section, the \"label\" will match the facet field.
|
|
1300
|
+
```JSON
|
|
1301
|
+
\"context\": {
|
|
1302
|
+
\"facetsFields\": [
|
|
1303
|
+
{ \"label\": \"creator\",
|
|
1304
|
+
\"buckets\": [
|
|
1305
|
+
{ \"label\": \"System\", \"count\": 75 },
|
|
1306
|
+
{ \"label\": \"mjackson\", \"count\": 5 }
|
|
1307
|
+
]},
|
|
1308
|
+
{ \"label\": \"modifier\",
|
|
1309
|
+
\"buckets\": [
|
|
1310
|
+
{ \"label\": \"System\", \"count\": 72 },
|
|
1311
|
+
{ \"label\": \"mjackson\", \"count\": 5 },
|
|
1312
|
+
{ \"label\": \"admin\", \"count\": 3 }
|
|
1313
|
+
]}
|
|
1314
|
+
]
|
|
1315
|
+
},
|
|
1316
|
+
```
|
|
1317
|
+
|
|
1318
|
+
Grouping facet queries that go together can be done by specifying the group label in the fact
|
|
1319
|
+
queries as follow:
|
|
1320
|
+
```JSON
|
|
1321
|
+
{
|
|
1322
|
+
\"query\": {
|
|
1323
|
+
\"query\": \"presentation\"
|
|
1324
|
+
},
|
|
1325
|
+
\"facetQueries\": [
|
|
1326
|
+
{\"query\": \"content.size:[0 TO 102400]\", \"label\": \"small\", \"group\":\"foo\"},
|
|
1327
|
+
{\"query\": \"content.size:[102400 TO 1048576]\", \"label\":
|
|
1328
|
+
\"medium\",\"group\":\"foo\"},
|
|
1329
|
+
{\"query\": \"content.size:[1048576 TO 16777216]\", \"label\":
|
|
1330
|
+
\"large\",\"group\":\"foo\"}
|
|
1331
|
+
]
|
|
1332
|
+
}
|
|
1333
|
+
```
|
|
1334
|
+
The above query returns the results a faceted field grouped under the label foo:
|
|
1335
|
+
```JSON
|
|
1336
|
+
{
|
|
1337
|
+
\"context\": {\"facetsFields\": [{
|
|
1338
|
+
\"label\": \"foo\",
|
|
1339
|
+
\"buckets\": [
|
|
1340
|
+
{
|
|
1341
|
+
\"count\": 109,
|
|
1342
|
+
\"label\": \"small\",
|
|
1343
|
+
\"filterQuery\": \"content.size:[0 TO 102400]\"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
\"count\": 0,
|
|
1347
|
+
\"label\": \"large\",
|
|
1348
|
+
\"filterQuery\": \"content.size:[1048576 TO 16777216]\"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
\"count\": 0,
|
|
1352
|
+
\"label\": \"medium\",
|
|
1353
|
+
\"filterQuery\": \"content.size:[102400 TO 1048576]\"
|
|
1354
|
+
}
|
|
1355
|
+
]
|
|
1356
|
+
}]
|
|
1357
|
+
}
|
|
1358
|
+
```
|
|
1359
|
+
Range Faceting is supported by the **ranges JSON body parameter**, for example:
|
|
1360
|
+
```JSON
|
|
1361
|
+
{
|
|
1362
|
+
\"query\": {
|
|
1363
|
+
\"query\": \"presentation\"
|
|
1364
|
+
},
|
|
1365
|
+
\"ranges\": [
|
|
1366
|
+
{
|
|
1367
|
+
\"field\": \"content.size\",
|
|
1368
|
+
\"start\": \"0\",
|
|
1369
|
+
\"end\": \"100\",
|
|
1370
|
+
\"gap\": \"20\",
|
|
1371
|
+
\"hardend\": true
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
\"field\": \"created\",
|
|
1375
|
+
\"start\": \"2015-09-29T10:45:15.729Z\",
|
|
1376
|
+
\"end\": \"2016-09-29T10:45:15.729Z\",
|
|
1377
|
+
\"gap\": \"+100DAY\"
|
|
1378
|
+
}]
|
|
1379
|
+
}
|
|
1380
|
+
```
|
|
1381
|
+
An example query for **search highlighting** could look like this:
|
|
1382
|
+
```JSON
|
|
1383
|
+
{
|
|
1384
|
+
\"query\": {
|
|
1385
|
+
\"query\": \"description:workflow\",
|
|
1386
|
+
\"userQuery\":\"workflow\"
|
|
1387
|
+
},
|
|
1388
|
+
\"highlight\": {
|
|
1389
|
+
\"prefix\": \"¿\",
|
|
1390
|
+
\"postfix\": \"?\",
|
|
1391
|
+
\"mergeContiguous\": true,
|
|
1392
|
+
\"fields\": [
|
|
1393
|
+
{
|
|
1394
|
+
\"field\": \"cm:title\"
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
\"field\": \"description\",
|
|
1398
|
+
\"prefix\": \"(\",
|
|
1399
|
+
\"postfix\": \")\"
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
]
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
```
|
|
1406
|
+
The example above changes the highlighting prefix and postfix from the default `<em>` for all fields
|
|
1407
|
+
to ¿? and just for the \"description\" field to ().
|
|
1408
|
+
The hightlight information is added in each node entry response; here is an example partial
|
|
1409
|
+
response:
|
|
1410
|
+
```
|
|
1411
|
+
\"entry\": {
|
|
1412
|
+
\"createdAt\": \"2016-10-12T15:24:31.202+0000\",
|
|
1413
|
+
\"isFolder\": true,
|
|
1414
|
+
\"search\": {
|
|
1415
|
+
\"score\": 1,
|
|
1416
|
+
\"highlight\": [
|
|
1417
|
+
{
|
|
1418
|
+
\"field\": \"cm:title\",
|
|
1419
|
+
\"snippets\": [
|
|
1420
|
+
\"Customized ¿Workflow? Process Definitions\"
|
|
1421
|
+
]
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
\"field\": \"description\",
|
|
1425
|
+
\"snippets\": [
|
|
1426
|
+
\"Customized (Workflow) Process Definitions\"
|
|
1427
|
+
]
|
|
1428
|
+
}
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
```
|
|
1432
|
+
**Note**: after the migration to Swagger UI 3, this API definition was triggering some warnings,
|
|
1433
|
+
more info in [this StackOverflow Q&A](https://stackoverflow.com/q/65584131/1654265).
|
|
1434
|
+
|
|
1435
|
+
Args:
|
|
1436
|
+
body (SearchRequest):
|
|
1437
|
+
|
|
1438
|
+
Raises:
|
|
1439
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
1440
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
1441
|
+
|
|
1442
|
+
Returns:
|
|
1443
|
+
ResultSetPaging
|
|
1444
|
+
"""
|
|
1445
|
+
|
|
1446
|
+
return (
|
|
1447
|
+
await asyncio_detailed(
|
|
1448
|
+
client=client,
|
|
1449
|
+
body=body,
|
|
1450
|
+
)
|
|
1451
|
+
).parsed
|