ptal-api
Advanced tools
+6
-4
| Metadata-Version: 2.1 | ||
| Name: ptal-api | ||
| Version: 1.0.0a20 | ||
| Version: 1.0.0a21 | ||
| Summary: TALISMAN API adapter | ||
| Author: Evgeny Bechkalo | ||
| Author-email: bechkalo@ispras.ru | ||
| Requires-Python: >=3.8,<4.0 | ||
| Maintainer: Matvey Zvantsov | ||
| Maintainer-email: zvancov.mu@ispras.ru | ||
| Requires-Python: >=3.10,<4.0 | ||
| Classifier: Development Status :: 3 - Alpha | ||
@@ -12,7 +14,7 @@ Classifier: Intended Audience :: Developers | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: Programming Language :: Python :: 3.8 | ||
| Classifier: Programming Language :: Python :: 3.9 | ||
| Classifier: Programming Language :: Python :: 3.10 | ||
| Classifier: Programming Language :: Python :: 3.11 | ||
| Classifier: Programming Language :: Python :: 3.12 | ||
| Classifier: Programming Language :: Python :: 3.13 | ||
| Classifier: Programming Language :: Python :: 3.14 | ||
| Requires-Dist: click (>=8.1.3) | ||
@@ -19,0 +21,0 @@ Requires-Dist: deprecation (>=2.1.0,<3.0.0) |
@@ -18,3 +18,3 @@ import sgqlc.types | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('Group', 'Personal') | ||
| __choices__ = ('Personal', 'Role') | ||
@@ -53,2 +53,7 @@ | ||
| class SortDirection(sgqlc.types.Enum): | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('ascending', 'descending') | ||
| String = sgqlc.types.String | ||
@@ -60,22 +65,52 @@ | ||
| class UserAction(sgqlc.types.Enum): | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('create', 'delete', 'markup', 'read', 'work') | ||
| class UserActivityAction(sgqlc.types.Enum): | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('createConcept', 'createDocument', 'createLink', 'deleteConcept', 'deleteDocument', 'deleteLink', 'markupDocument', 'readConcept', 'readDocument', 'updateConcept', 'updateDocument', 'updateLink') | ||
| class UserActivityEntityType(sgqlc.types.Enum): | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('concept', 'document', 'link') | ||
| class UserActivitySearchType(sgqlc.types.Enum): | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('conceptRegistry', 'crawler', 'documentRegistry', 'externalSearch') | ||
| class UserActivitySorting(sgqlc.types.Enum): | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('createdAt',) | ||
| class UserHistoryGrouping(sgqlc.types.Enum): | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('daily', 'none') | ||
| class UserSearchHistorySorting(sgqlc.types.Enum): | ||
| __schema__ = auth_api_schema | ||
| __choices__ = ('createdAt',) | ||
| ######################################################################## | ||
| # Input Objects | ||
| ######################################################################## | ||
| class AddUserGroupMembersParams(sgqlc.types.Input): | ||
| class AddUserActivityInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('group_ids', 'user_ids') | ||
| group_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='groupIds') | ||
| user_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='userIds') | ||
| __field_names__ = ('entity_ids', 'entity_type', 'metadata', 'user_action') | ||
| entity_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='entityIds') | ||
| entity_type = sgqlc.types.Field(sgqlc.types.non_null(UserActivityEntityType), graphql_name='entityType') | ||
| metadata = sgqlc.types.Field(String, graphql_name='metadata') | ||
| user_action = sgqlc.types.Field(sgqlc.types.non_null(UserAction), graphql_name='userAction') | ||
| class AttributeFilterSettings(sgqlc.types.Input): | ||
| class AddUserGroupInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('id', 'name') | ||
| id = sgqlc.types.Field(String, graphql_name='id') | ||
| name = sgqlc.types.Field(String, graphql_name='name') | ||
| class CreateUserGroupParams(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('description', 'name') | ||
@@ -86,6 +121,13 @@ description = sgqlc.types.Field(String, graphql_name='description') | ||
| class CreateUserParams(sgqlc.types.Input): | ||
| class AddUserGroupMembersInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('group_ids', 'user_ids') | ||
| group_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='groupIds') | ||
| user_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='userIds') | ||
| class AddUserInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('access_level_id', 'email', 'enabled', 'fathers_name', 'first_name', 'last_name', 'login', 'receive_notifications', 'receive_telegram_notifications', 'telegram_chat_id') | ||
| access_level_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='accessLevelID') | ||
| access_level_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='accessLevelId') | ||
| email = sgqlc.types.Field(String, graphql_name='email') | ||
@@ -102,9 +144,45 @@ enabled = sgqlc.types.Field(Boolean, graphql_name='enabled') | ||
| class DeleteUserGroupMemberParams(sgqlc.types.Input): | ||
| class AddUserRoleAssignmentsInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('group_id', 'user_id') | ||
| group_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='groupId') | ||
| user_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='userId') | ||
| __field_names__ = ('role_ids', 'user_ids') | ||
| role_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='roleIds') | ||
| user_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='userIds') | ||
| class AddUserRoleInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('description', 'name') | ||
| description = sgqlc.types.Field(String, graphql_name='description') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| class AddUserSearchHistoryInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('search_string', 'search_type') | ||
| search_string = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='searchString') | ||
| search_type = sgqlc.types.Field(sgqlc.types.non_null(UserActivitySearchType), graphql_name='searchType') | ||
| class AttributeFilterSettings(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('description', 'input_value', 'name') | ||
| description = sgqlc.types.Field(String, graphql_name='description') | ||
| input_value = sgqlc.types.Field(String, graphql_name='inputValue') | ||
| name = sgqlc.types.Field(String, graphql_name='name') | ||
| class DeleteUserGroupMembersInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('group_ids', 'user_ids') | ||
| group_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='groupIds') | ||
| user_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='userIds') | ||
| class DeleteUserRoleAssignmentsInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('role_ids', 'user_ids') | ||
| role_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='roleIds') | ||
| user_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='userIds') | ||
| class PolicyParameterInputGQL(sgqlc.types.Input): | ||
@@ -136,5 +214,6 @@ __schema__ = auth_api_schema | ||
| class UpdateCurrentUserParams(sgqlc.types.Input): | ||
| class UpdateCurrentUserInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('email', 'fathers_name', 'first_name', 'last_name', 'password', 'receive_notifications', 'receive_telegram_notifications', 'telegram_chat_id') | ||
| __field_names__ = ('current_password', 'email', 'fathers_name', 'first_name', 'last_name', 'receive_notifications', 'receive_telegram_notifications', 'telegram_chat_id') | ||
| current_password = sgqlc.types.Field(String, graphql_name='currentPassword') | ||
| email = sgqlc.types.Field(String, graphql_name='email') | ||
@@ -144,3 +223,2 @@ fathers_name = sgqlc.types.Field(String, graphql_name='fathersName') | ||
| last_name = sgqlc.types.Field(String, graphql_name='lastName') | ||
| password = sgqlc.types.Field(String, graphql_name='password') | ||
| receive_notifications = sgqlc.types.Field(Boolean, graphql_name='receiveNotifications') | ||
@@ -151,3 +229,3 @@ receive_telegram_notifications = sgqlc.types.Field(Boolean, graphql_name='receiveTelegramNotifications') | ||
| class UpdateUserGroupParams(sgqlc.types.Input): | ||
| class UpdateUserGroupInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
@@ -159,6 +237,6 @@ __field_names__ = ('description', 'name') | ||
| class UpdateUserParams(sgqlc.types.Input): | ||
| class UpdateUserInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('access_level_id', 'email', 'enabled', 'fathers_name', 'first_name', 'last_name', 'receive_notifications', 'receive_telegram_notifications', 'telegram_chat_id') | ||
| access_level_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='accessLevelID') | ||
| access_level_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='accessLevelId') | ||
| email = sgqlc.types.Field(String, graphql_name='email') | ||
@@ -174,6 +252,22 @@ enabled = sgqlc.types.Field(Boolean, graphql_name='enabled') | ||
| class UpdateUserRoleInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('description', 'name') | ||
| description = sgqlc.types.Field(String, graphql_name='description') | ||
| name = sgqlc.types.Field(String, graphql_name='name') | ||
| class UserActivityFilterSettings(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('created_at', 'entity_ids', 'entity_type_ids', 'history_grouping') | ||
| created_at = sgqlc.types.Field(TimestampInterval, graphql_name='createdAt') | ||
| entity_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='entityIds') | ||
| entity_type_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='entityTypeIds') | ||
| history_grouping = sgqlc.types.Field(UserHistoryGrouping, graphql_name='historyGrouping') | ||
| class UserAttributeInput(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('id', 'json_value') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| json_value = sgqlc.types.Field(sgqlc.types.non_null(JSON), graphql_name='jsonValue') | ||
@@ -184,5 +278,5 @@ | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('creation_date', 'creator', 'email', 'enabled', 'fathers_name', 'first_name', 'group_ids', 'last_name', 'last_updater', 'login', 'query', 'show_system_users', 'update_date', 'user_id') | ||
| creation_date = sgqlc.types.Field(TimestampInterval, graphql_name='creationDate') | ||
| creator = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='creator') | ||
| __field_names__ = ('created_at', 'creators', 'email', 'enabled', 'fathers_name', 'first_name', 'group_ids', 'input_value', 'last_name', 'login', 'role_ids', 'show_system_users', 'updated_at', 'updaters', 'user_id') | ||
| created_at = sgqlc.types.Field(TimestampInterval, graphql_name='createdAt') | ||
| creators = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='creators') | ||
| email = sgqlc.types.Field(String, graphql_name='email') | ||
@@ -193,8 +287,9 @@ enabled = sgqlc.types.Field(Boolean, graphql_name='enabled') | ||
| group_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='groupIds') | ||
| input_value = sgqlc.types.Field(String, graphql_name='inputValue') | ||
| last_name = sgqlc.types.Field(String, graphql_name='lastName') | ||
| last_updater = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='lastUpdater') | ||
| login = sgqlc.types.Field(String, graphql_name='login') | ||
| query = sgqlc.types.Field(String, graphql_name='query') | ||
| role_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='roleIds') | ||
| show_system_users = sgqlc.types.Field(Boolean, graphql_name='showSystemUsers') | ||
| update_date = sgqlc.types.Field(TimestampInterval, graphql_name='updateDate') | ||
| updated_at = sgqlc.types.Field(TimestampInterval, graphql_name='updatedAt') | ||
| updaters = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='updaters') | ||
| user_id = sgqlc.types.Field(ID, graphql_name='userId') | ||
@@ -205,14 +300,36 @@ | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('creation_date', 'creator', 'description', 'last_updater', 'name', 'query', 'update_date', 'user_ids') | ||
| creation_date = sgqlc.types.Field(TimestampInterval, graphql_name='creationDate') | ||
| creator = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='creator') | ||
| __field_names__ = ('created_at', 'creators', 'description', 'input_value', 'name', 'updated_at', 'updaters', 'user_group_id') | ||
| created_at = sgqlc.types.Field(TimestampInterval, graphql_name='createdAt') | ||
| creators = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='creators') | ||
| description = sgqlc.types.Field(String, graphql_name='description') | ||
| last_updater = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='lastUpdater') | ||
| input_value = sgqlc.types.Field(String, graphql_name='inputValue') | ||
| name = sgqlc.types.Field(String, graphql_name='name') | ||
| query = sgqlc.types.Field(String, graphql_name='query') | ||
| update_date = sgqlc.types.Field(TimestampInterval, graphql_name='updateDate') | ||
| user_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='userIds') | ||
| updated_at = sgqlc.types.Field(TimestampInterval, graphql_name='updatedAt') | ||
| updaters = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='updaters') | ||
| user_group_id = sgqlc.types.Field(ID, graphql_name='userGroupId') | ||
| class UserRoleFilterSettings(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('created_at', 'creators', 'description', 'input_value', 'name', 'updated_at', 'updaters', 'user_role_id') | ||
| created_at = sgqlc.types.Field(TimestampInterval, graphql_name='createdAt') | ||
| creators = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='creators') | ||
| description = sgqlc.types.Field(String, graphql_name='description') | ||
| input_value = sgqlc.types.Field(String, graphql_name='inputValue') | ||
| name = sgqlc.types.Field(String, graphql_name='name') | ||
| updated_at = sgqlc.types.Field(TimestampInterval, graphql_name='updatedAt') | ||
| updaters = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='updaters') | ||
| user_role_id = sgqlc.types.Field(ID, graphql_name='userRoleId') | ||
| class UserSearchHistoryFilterSettings(sgqlc.types.Input): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('created_at', 'history_grouping', 'search_string', 'search_type') | ||
| created_at = sgqlc.types.Field(TimestampInterval, graphql_name='createdAt') | ||
| history_grouping = sgqlc.types.Field(UserHistoryGrouping, graphql_name='historyGrouping') | ||
| search_string = sgqlc.types.Field(String, graphql_name='searchString') | ||
| search_type = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(UserActivitySearchType)), graphql_name='searchType') | ||
| ######################################################################## | ||
@@ -240,4 +357,5 @@ # Output Objects and Interfaces | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('id', 'name', 'params_schema', 'value_type') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id') | ||
| __field_names__ = ('description', 'id', 'name', 'params_schema', 'value_type') | ||
| description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='description') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
@@ -267,9 +385,47 @@ params_schema = sgqlc.types.Field(sgqlc.types.non_null('ParamsSchema'), graphql_name='paramsSchema') | ||
| class ConflictsState(sgqlc.types.Type): | ||
| class Concept(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('group_conflicts', 'user_conflicts') | ||
| group_conflicts = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Boolean)), graphql_name='groupConflicts') | ||
| user_conflicts = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Boolean)), graphql_name='userConflicts') | ||
| __field_names__ = ('concept_type', 'id', 'name') | ||
| concept_type = sgqlc.types.Field(sgqlc.types.non_null('ConceptType'), graphql_name='conceptType') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| class ConceptLink(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('id', 'link_type', 'name') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| link_type = sgqlc.types.Field(sgqlc.types.non_null('ConceptLinkType'), graphql_name='linkType') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| class ConceptLinkType(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('id', 'name') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| class ConceptType(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('id', 'name') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| class Document(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('document_type', 'id', 'name') | ||
| document_type = sgqlc.types.Field(sgqlc.types.non_null('DocumentType'), graphql_name='documentType') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| class DocumentType(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('id', 'name') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| class DoubleListValue(sgqlc.types.Type): | ||
@@ -301,3 +457,3 @@ __schema__ = auth_api_schema | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('add_policy', 'add_user', 'add_user_group', 'add_user_group_members', 'delete_kvstore_item', 'delete_policy', 'delete_user', 'delete_user_group', 'delete_user_group_members', 'set_kvstore_item', 'update_current_user', 'update_current_user_password', 'update_user', 'update_user_activity', 'update_user_attributes', 'update_user_group', 'update_user_group_attributes', 'update_user_password') | ||
| __field_names__ = ('add_policy', 'add_user', 'add_user_activity', 'add_user_group', 'add_user_group_members', 'add_user_role', 'add_user_role_assignments', 'add_user_search_history', 'delete_kvstore_item', 'delete_policy', 'delete_user', 'delete_user_group', 'delete_user_group_members', 'delete_user_role', 'delete_user_role_assignments', 'set_kvstore_item', 'update_current_user', 'update_current_user_password', 'update_user', 'update_user_activity', 'update_user_attributes', 'update_user_group', 'update_user_password', 'update_user_role', 'update_user_role_attributes') | ||
| add_policy = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='addPolicy', args=sgqlc.types.ArgDict(( | ||
@@ -307,14 +463,30 @@ ('policy_params', sgqlc.types.Arg(sgqlc.types.non_null(SecurityPolicyArg), graphql_name='policyParams', default=None)), | ||
| ) | ||
| add_user = sgqlc.types.Field('User', graphql_name='addUser', args=sgqlc.types.ArgDict(( | ||
| ('create_user_params', sgqlc.types.Arg(sgqlc.types.non_null(CreateUserParams), graphql_name='createUserParams', default=None)), | ||
| add_user = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='addUser', args=sgqlc.types.ArgDict(( | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddUserInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| add_user_activity = sgqlc.types.Field(sgqlc.types.non_null('State'), graphql_name='addUserActivity', args=sgqlc.types.ArgDict(( | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddUserActivityInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| add_user_group = sgqlc.types.Field('UserGroup', graphql_name='addUserGroup', args=sgqlc.types.ArgDict(( | ||
| ('create_user_group_params', sgqlc.types.Arg(sgqlc.types.non_null(CreateUserGroupParams), graphql_name='createUserGroupParams', default=None)), | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddUserGroupInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| add_user_group_members = sgqlc.types.Field(sgqlc.types.non_null('StateWithError'), graphql_name='addUserGroupMembers', args=sgqlc.types.ArgDict(( | ||
| ('add_user_group_members_params', sgqlc.types.Arg(sgqlc.types.non_null(AddUserGroupMembersParams), graphql_name='addUserGroupMembersParams', default=None)), | ||
| add_user_group_members = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='addUserGroupMembers', args=sgqlc.types.ArgDict(( | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddUserGroupMembersInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| add_user_role = sgqlc.types.Field('UserRole', graphql_name='addUserRole', args=sgqlc.types.ArgDict(( | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddUserRoleInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| add_user_role_assignments = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='addUserRoleAssignments', args=sgqlc.types.ArgDict(( | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddUserRoleAssignmentsInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| add_user_search_history = sgqlc.types.Field(sgqlc.types.non_null('State'), graphql_name='addUserSearchHistory', args=sgqlc.types.ArgDict(( | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddUserSearchHistoryInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| delete_kvstore_item = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='deleteKVStoreItem', args=sgqlc.types.ArgDict(( | ||
@@ -337,5 +509,13 @@ ('key', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='key', default=None)), | ||
| delete_user_group_members = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='deleteUserGroupMembers', args=sgqlc.types.ArgDict(( | ||
| ('delete_user_group_member_params', sgqlc.types.Arg(sgqlc.types.non_null(DeleteUserGroupMemberParams), graphql_name='deleteUserGroupMemberParams', default=None)), | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(DeleteUserGroupMembersInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| delete_user_role = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='deleteUserRole', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
| delete_user_role_assignments = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='deleteUserRoleAssignments', args=sgqlc.types.ArgDict(( | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(DeleteUserRoleAssignmentsInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| set_kvstore_item = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='setKVStoreItem', args=sgqlc.types.ArgDict(( | ||
@@ -347,3 +527,3 @@ ('key', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='key', default=None)), | ||
| update_current_user = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='updateCurrentUser', args=sgqlc.types.ArgDict(( | ||
| ('update_current_user_params', sgqlc.types.Arg(sgqlc.types.non_null(UpdateCurrentUserParams), graphql_name='updateCurrentUserParams', default=None)), | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(UpdateCurrentUserInput), graphql_name='input', default=None)), | ||
| )) | ||
@@ -356,5 +536,5 @@ ) | ||
| ) | ||
| update_user = sgqlc.types.Field('User', graphql_name='updateUser', args=sgqlc.types.ArgDict(( | ||
| update_user = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='updateUser', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| ('update_user_params', sgqlc.types.Arg(sgqlc.types.non_null(UpdateUserParams), graphql_name='updateUserParams', default=None)), | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(UpdateUserInput), graphql_name='input', default=None)), | ||
| )) | ||
@@ -367,3 +547,3 @@ ) | ||
| ) | ||
| update_user_attributes = sgqlc.types.Field(sgqlc.types.non_null('UserWithError'), graphql_name='updateUserAttributes', args=sgqlc.types.ArgDict(( | ||
| update_user_attributes = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='updateUserAttributes', args=sgqlc.types.ArgDict(( | ||
| ('attributes', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserAttributeInput))), graphql_name='attributes', default=None)), | ||
@@ -375,15 +555,20 @@ ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| ('update_user_group_params', sgqlc.types.Arg(sgqlc.types.non_null(UpdateUserGroupParams), graphql_name='updateUserGroupParams', default=None)), | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(UpdateUserGroupInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| update_user_group_attributes = sgqlc.types.Field(sgqlc.types.non_null('UserGroupWithError'), graphql_name='updateUserGroupAttributes', args=sgqlc.types.ArgDict(( | ||
| ('attributes', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserAttributeInput))), graphql_name='attributes', default=None)), | ||
| update_user_password = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='updateUserPassword', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| ('password', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='password', default=None)), | ||
| )) | ||
| ) | ||
| update_user_password = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='updateUserPassword', args=sgqlc.types.ArgDict(( | ||
| update_user_role = sgqlc.types.Field(sgqlc.types.non_null('UserRole'), graphql_name='updateUserRole', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| ('password', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='password', default=None)), | ||
| ('input', sgqlc.types.Arg(sgqlc.types.non_null(UpdateUserRoleInput), graphql_name='input', default=None)), | ||
| )) | ||
| ) | ||
| update_user_role_attributes = sgqlc.types.Field(sgqlc.types.non_null('UserRole'), graphql_name='updateUserRoleAttributes', args=sgqlc.types.ArgDict(( | ||
| ('attributes', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserAttributeInput))), graphql_name='attributes', default=None)), | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
@@ -407,3 +592,3 @@ | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('current_user', 'get_kvstore_item', 'list_policy', 'pagination_attribute', 'pagination_user', 'pagination_user_group', 'refresh_token', 'token_exchange', 'user', 'user_by_login', 'user_group', 'user_idlist', 'user_idlist_sys', 'user_sys') | ||
| __field_names__ = ('current_user', 'get_kvstore_item', 'list_policy', 'pagination_attribute', 'pagination_user', 'pagination_user_activity', 'pagination_user_group', 'pagination_user_role', 'pagination_user_search_history', 'refresh_token', 'token_exchange', 'user', 'user_by_internal_id', 'user_by_login', 'user_group', 'user_group_by_internal_id', 'user_idlist', 'user_idlist_sys', 'user_role', 'user_role_by_internal_id', 'user_sys') | ||
| current_user = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='currentUser') | ||
@@ -419,6 +604,5 @@ get_kvstore_item = sgqlc.types.Field(String, graphql_name='getKVStoreItem', args=sgqlc.types.ArgDict(( | ||
| pagination_attribute = sgqlc.types.Field(sgqlc.types.non_null(AttributePagination), graphql_name='paginationAttribute', args=sgqlc.types.ArgDict(( | ||
| ('attribute_filter_settings', sgqlc.types.Arg(sgqlc.types.non_null(AttributeFilterSettings), graphql_name='attributeFilterSettings', default=None)), | ||
| ('filter_settings', sgqlc.types.Arg(sgqlc.types.non_null(AttributeFilterSettings), graphql_name='filterSettings', default=None)), | ||
| ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=20)), | ||
| ('offset', sgqlc.types.Arg(Int, graphql_name='offset', default=0)), | ||
| ('query', sgqlc.types.Arg(String, graphql_name='query', default=None)), | ||
| )) | ||
@@ -432,2 +616,10 @@ ) | ||
| ) | ||
| pagination_user_activity = sgqlc.types.Field(sgqlc.types.non_null('UserActivityPagination'), graphql_name='paginationUserActivity', args=sgqlc.types.ArgDict(( | ||
| ('direction', sgqlc.types.Arg(SortDirection, graphql_name='direction', default='descending')), | ||
| ('filter_settings', sgqlc.types.Arg(sgqlc.types.non_null(UserActivityFilterSettings), graphql_name='filterSettings', default=None)), | ||
| ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=20)), | ||
| ('offset', sgqlc.types.Arg(Int, graphql_name='offset', default=0)), | ||
| ('sort_field', sgqlc.types.Arg(UserActivitySorting, graphql_name='sortField', default='createdAt')), | ||
| )) | ||
| ) | ||
| pagination_user_group = sgqlc.types.Field(sgqlc.types.non_null('UserGroupPagination'), graphql_name='paginationUserGroup', args=sgqlc.types.ArgDict(( | ||
@@ -439,14 +631,32 @@ ('filter_settings', sgqlc.types.Arg(sgqlc.types.non_null(UserGroupFilterSettings), graphql_name='filterSettings', default=None)), | ||
| ) | ||
| refresh_token = sgqlc.types.Field('Token', graphql_name='refreshToken', args=sgqlc.types.ArgDict(( | ||
| pagination_user_role = sgqlc.types.Field(sgqlc.types.non_null('UserRolePagination'), graphql_name='paginationUserRole', args=sgqlc.types.ArgDict(( | ||
| ('filter_settings', sgqlc.types.Arg(sgqlc.types.non_null(UserRoleFilterSettings), graphql_name='filterSettings', default=None)), | ||
| ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=20)), | ||
| ('offset', sgqlc.types.Arg(Int, graphql_name='offset', default=0)), | ||
| )) | ||
| ) | ||
| pagination_user_search_history = sgqlc.types.Field(sgqlc.types.non_null('UserSearchHistoryPagination'), graphql_name='paginationUserSearchHistory', args=sgqlc.types.ArgDict(( | ||
| ('direction', sgqlc.types.Arg(SortDirection, graphql_name='direction', default='descending')), | ||
| ('filter_settings', sgqlc.types.Arg(sgqlc.types.non_null(UserSearchHistoryFilterSettings), graphql_name='filterSettings', default=None)), | ||
| ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=20)), | ||
| ('offset', sgqlc.types.Arg(Int, graphql_name='offset', default=0)), | ||
| ('sort_field', sgqlc.types.Arg(UserSearchHistorySorting, graphql_name='sortField', default='createdAt')), | ||
| )) | ||
| ) | ||
| refresh_token = sgqlc.types.Field(sgqlc.types.non_null('Token'), graphql_name='refreshToken', args=sgqlc.types.ArgDict(( | ||
| ('refresh_token', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='refreshToken', default=None)), | ||
| )) | ||
| ) | ||
| token_exchange = sgqlc.types.Field('Token', graphql_name='tokenExchange', args=sgqlc.types.ArgDict(( | ||
| token_exchange = sgqlc.types.Field(sgqlc.types.non_null('Token'), graphql_name='tokenExchange', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
| user = sgqlc.types.Field('User', graphql_name='user', args=sgqlc.types.ArgDict(( | ||
| user = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='user', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
| user_by_internal_id = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='userByInternalId', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
| user_by_login = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='userByLogin', args=sgqlc.types.ArgDict(( | ||
@@ -461,2 +671,6 @@ ('password', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='password', default=None)), | ||
| ) | ||
| user_group_by_internal_id = sgqlc.types.Field(sgqlc.types.non_null('UserGroup'), graphql_name='userGroupByInternalId', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
| user_idlist = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of('User')), graphql_name='userIDList', args=sgqlc.types.ArgDict(( | ||
@@ -466,10 +680,18 @@ ('ids', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='ids', default=None)), | ||
| ) | ||
| user_idlist_sys = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of('User')), graphql_name='userIDListSys', args=sgqlc.types.ArgDict(( | ||
| user_idlist_sys = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('User'))), graphql_name='userIDListSys', args=sgqlc.types.ArgDict(( | ||
| ('ids', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name='ids', default=None)), | ||
| )) | ||
| ) | ||
| user_sys = sgqlc.types.Field('User', graphql_name='userSys', args=sgqlc.types.ArgDict(( | ||
| user_role = sgqlc.types.Field(sgqlc.types.non_null('UserRole'), graphql_name='userRole', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
| user_role_by_internal_id = sgqlc.types.Field(sgqlc.types.non_null('UserRole'), graphql_name='userRoleByInternalId', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
| user_sys = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='userSys', args=sgqlc.types.ArgDict(( | ||
| ('id', sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name='id', default=None)), | ||
| )) | ||
| ) | ||
@@ -489,7 +711,6 @@ | ||
| class StateWithError(sgqlc.types.Type): | ||
| class State(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('info', 'state') | ||
| info = sgqlc.types.Field(sgqlc.types.non_null(ConflictsState), graphql_name='info') | ||
| state = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='state') | ||
| __field_names__ = ('is_success',) | ||
| is_success = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isSuccess') | ||
@@ -518,7 +739,25 @@ | ||
| class UserActivity(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('entity', 'id', 'metadata', 'system_registration_date', 'user_action') | ||
| entity = sgqlc.types.Field(sgqlc.types.non_null('UserActivityEntity'), graphql_name='entity') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| metadata = sgqlc.types.Field(String, graphql_name='metadata') | ||
| system_registration_date = sgqlc.types.Field(sgqlc.types.non_null(UnixTime), graphql_name='systemRegistrationDate') | ||
| user_action = sgqlc.types.Field(sgqlc.types.non_null(UserActivityAction), graphql_name='userAction') | ||
| class UserActivityPagination(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('list_user_activity', 'total') | ||
| list_user_activity = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserActivity))), graphql_name='listUserActivity') | ||
| total = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='total') | ||
| class UserAttribute(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('attribute_source', 'id', 'json_value', 'name', 'value') | ||
| __field_names__ = ('attribute_source', 'description', 'id', 'json_value', 'name', 'value') | ||
| attribute_source = sgqlc.types.Field(sgqlc.types.non_null(AttributeSource), graphql_name='attributeSource') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id') | ||
| description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='description') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| json_value = sgqlc.types.Field(sgqlc.types.non_null(JSON), graphql_name='jsonValue') | ||
@@ -542,13 +781,7 @@ name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| class UserGroupWithError(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('info', 'user_group') | ||
| info = sgqlc.types.Field(sgqlc.types.non_null(ConflictsState), graphql_name='info') | ||
| user_group = sgqlc.types.Field(sgqlc.types.non_null('UserGroup'), graphql_name='userGroup') | ||
| class UserMetrics(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('count_group',) | ||
| __field_names__ = ('count_group', 'count_role') | ||
| count_group = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='countGroup') | ||
| count_role = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='countRole') | ||
@@ -563,19 +796,38 @@ | ||
| class UserWithError(sgqlc.types.Type): | ||
| class UserRoleMetrics(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('info', 'user') | ||
| info = sgqlc.types.Field(sgqlc.types.non_null(ConflictsState), graphql_name='info') | ||
| user = sgqlc.types.Field(sgqlc.types.non_null('User'), graphql_name='user') | ||
| __field_names__ = ('count_user',) | ||
| count_user = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='countUser') | ||
| class UserRolePagination(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('list_user_role', 'total') | ||
| list_user_role = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('UserRole'))), graphql_name='listUserRole') | ||
| total = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='total') | ||
| class UserSearchHistory(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('id', 'search_string', 'search_type', 'system_registration_date') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| search_string = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='searchString') | ||
| search_type = sgqlc.types.Field(sgqlc.types.non_null(UserActivitySearchType), graphql_name='searchType') | ||
| system_registration_date = sgqlc.types.Field(sgqlc.types.non_null(UnixTime), graphql_name='systemRegistrationDate') | ||
| class UserSearchHistoryPagination(sgqlc.types.Type): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('list_user_search_history', 'total') | ||
| list_user_search_history = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserSearchHistory))), graphql_name='listUserSearchHistory') | ||
| total = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='total') | ||
| class User(sgqlc.types.Type, RecordInterface): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('access_level', 'allowed_functions', 'attributes', 'email', 'enabled', 'fathers_name', 'first_name', 'id', 'is_admin', 'last_name', 'list_user_group', 'login', 'metrics', 'name', 'receive_notifications', 'receive_telegram_notifications', 'telegram_chat_id') | ||
| __field_names__ = ('access_level', 'allowed_functions', 'attributes', 'created_at', 'email', 'enabled', 'fathers_name', 'first_name', 'id', 'is_admin', 'last_name', 'list_user_group', 'list_user_role', 'login', 'metrics', 'name', 'receive_notifications', 'receive_telegram_notifications', 'telegram_chat_id', 'updated_at') | ||
| access_level = sgqlc.types.Field(sgqlc.types.non_null(AccessLevel), graphql_name='accessLevel') | ||
| allowed_functions = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(AllowedFunctionsEnum))), graphql_name='allowedFunctions') | ||
| attributes = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserAttribute))), graphql_name='attributes', args=sgqlc.types.ArgDict(( | ||
| ('is_request_from_front', sgqlc.types.Arg(Boolean, graphql_name='isRequestFromFront', default=True)), | ||
| ('show_default', sgqlc.types.Arg(Boolean, graphql_name='showDefault', default=False)), | ||
| )) | ||
| ) | ||
| attributes = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserAttribute))), graphql_name='attributes') | ||
| created_at = sgqlc.types.Field(sgqlc.types.non_null(UnixTime), graphql_name='createdAt') | ||
| email = sgqlc.types.Field(String, graphql_name='email') | ||
@@ -589,2 +841,3 @@ enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='enabled') | ||
| list_user_group = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('UserGroup'))), graphql_name='listUserGroup') | ||
| list_user_role = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('UserRole'))), graphql_name='listUserRole') | ||
| login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='login') | ||
@@ -596,2 +849,3 @@ metrics = sgqlc.types.Field(sgqlc.types.non_null(UserMetrics), graphql_name='metrics') | ||
| telegram_chat_id = sgqlc.types.Field(Long, graphql_name='telegramChatId') | ||
| updated_at = sgqlc.types.Field(UnixTime, graphql_name='updatedAt') | ||
@@ -601,4 +855,4 @@ | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('attributes', 'description', 'id', 'list_user', 'metrics', 'name') | ||
| attributes = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserAttribute))), graphql_name='attributes') | ||
| __field_names__ = ('created_at', 'description', 'id', 'list_user', 'metrics', 'name', 'updated_at') | ||
| created_at = sgqlc.types.Field(sgqlc.types.non_null(UnixTime), graphql_name='createdAt') | ||
| description = sgqlc.types.Field(String, graphql_name='description') | ||
@@ -609,5 +863,18 @@ id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| updated_at = sgqlc.types.Field(UnixTime, graphql_name='updatedAt') | ||
| class UserRole(sgqlc.types.Type, RecordInterface): | ||
| __schema__ = auth_api_schema | ||
| __field_names__ = ('attributes', 'created_at', 'description', 'id', 'metrics', 'name', 'updated_at') | ||
| attributes = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(UserAttribute))), graphql_name='attributes') | ||
| created_at = sgqlc.types.Field(sgqlc.types.non_null(UnixTime), graphql_name='createdAt') | ||
| description = sgqlc.types.Field(String, graphql_name='description') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| metrics = sgqlc.types.Field(sgqlc.types.non_null(UserRoleMetrics), graphql_name='metrics') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
| updated_at = sgqlc.types.Field(UnixTime, graphql_name='updatedAt') | ||
| ######################################################################## | ||
@@ -621,3 +888,8 @@ # Unions | ||
| class UserActivityEntity(sgqlc.types.Union): | ||
| __schema__ = auth_api_schema | ||
| __types__ = (Concept, ConceptLink, Document) | ||
| ######################################################################## | ||
@@ -624,0 +896,0 @@ # Schema Entry Points |
| To generate schema following commands should be run: | ||
| 1. Get introspection (you can also get it from gitlab introspection job artifacts) | ||
| 1. | ||
| * Get introspection (you can also get it from gitlab introspection job artifacts) | ||
@@ -8,2 +9,5 @@ ```bash | ||
| ``` | ||
| * Or use `https://transform.tools/graphql-to-introspection-json` to transform GraphQL schema to introspection.json | ||
| 2. Generate code | ||
@@ -10,0 +14,0 @@ |
@@ -27,10 +27,6 @@ import sgqlc.types | ||
| __schema__ = translator_api_schema | ||
| __field_names__ = ('id', 'iso6391', 'iso6392', 'iso6392b', 'iso6392t', 'iso6393', 'iso6395', 'name', 'russian_name', 'english_name', 'target_languages') | ||
| __field_names__ = ('id', 'iso6391', 'iso6392', 'name', 'russian_name', 'english_name', 'target_languages') | ||
| id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='id') | ||
| iso6391 = sgqlc.types.Field(String, graphql_name='iso6391') | ||
| iso6392 = sgqlc.types.Field(String, graphql_name='iso6392') | ||
| iso6392b = sgqlc.types.Field(String, graphql_name='iso6392b') | ||
| iso6392t = sgqlc.types.Field(String, graphql_name='iso6392t') | ||
| iso6393 = sgqlc.types.Field(String, graphql_name='iso6393') | ||
| iso6395 = sgqlc.types.Field(String, graphql_name='iso6395') | ||
| name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') | ||
@@ -37,0 +33,0 @@ russian_name = sgqlc.types.Field(String, graphql_name='russianName') |
+7
-4
| [tool.poetry] | ||
| name = "ptal-api" | ||
| version = "1.0.0a20" | ||
| version = "1.0.0a21" | ||
| description = "TALISMAN API adapter" | ||
| authors = ["Evgeny Bechkalo <bechkalo@ispras.ru>", "Ivan Medvedev <medvedev.iv@ispras.ru>", "Alexey Isakov <isakov@ispras.ru>"] | ||
| maintainers = ["Matvey Zvantsov <zvancov.mu@ispras.ru>"] | ||
| readme = "README.md" | ||
@@ -11,5 +12,7 @@ packages = [{include = "ptal_api"}] | ||
| 'Programming Language :: Python :: 3', | ||
| 'Programming Language :: Python :: 3.8', | ||
| 'Programming Language :: Python :: 3.9', | ||
| 'Programming Language :: Python :: 3.10', | ||
| 'Programming Language :: Python :: 3.11', | ||
| 'Programming Language :: Python :: 3.12', | ||
| 'Programming Language :: Python :: 3.13', | ||
| 'Programming Language :: Python :: 3.14', | ||
| 'Intended Audience :: Developers', | ||
@@ -24,3 +27,3 @@ 'Operating System :: OS Independent', | ||
| [tool.poetry.dependencies] | ||
| python = "^3.8" | ||
| python = "^3.10" | ||
| sgqlc = ">=16.3" | ||
@@ -27,0 +30,0 @@ python-keycloak = ">=2.6.0" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
1077514
6.31%15881
5.04%