better-notion 1.9.1__tar.gz → 1.9.3__tar.gz
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.
- {better_notion-1.9.1 → better_notion-1.9.3}/PKG-INFO +1 -1
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_cli.py +25 -25
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_sdk/models.py +1 -1
- {better_notion-1.9.1 → better_notion-1.9.3}/pyproject.toml +1 -1
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_agents_sdk_managers.py +9 -6
- {better_notion-1.9.1 → better_notion-1.9.3}/.gitignore +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/LICENSE +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/README.md +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/client.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/collections/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/collections/blocks.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/collections/comments.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/collections/databases.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/collections/pages.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/collections/users.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/entities/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/entities/block.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/entities/comment.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/entities/database.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/entities/page.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/entities/user.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/errors.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/oauth.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/base.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/checkbox.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/date.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/email.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/number.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/phone.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/relation.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/rich_text.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/select.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/title.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/properties/url.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/utils/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_api/utils/pagination.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/async_typer.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/auth.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/blocks.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/comments.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/config.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/databases.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/pages.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/plugins.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/search.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/update.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/users.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/commands/workspace.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/config.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/display.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/docs/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/docs/base.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/docs/formatters.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/docs/registry.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/errors.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/main.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/markdown.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/response.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_cli/utils/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/base/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/base/entity.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/cache/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/cache/cache.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/client.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/managers/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/managers/block_manager.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/managers/comment_manager.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/managers/database_manager.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/managers/page_manager.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/managers/user_manager.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/block.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/audio.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/bookmark.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/breadcrumb.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/bullet.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/callout.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/code.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/column.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/column_list.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/divider.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/embed.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/equation.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/file.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/heading.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/image.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/numbered.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/paragraph.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/pdf.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/quote.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/synced_block.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/table.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/table_row.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/template.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/todo.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/toggle.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/video.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/comment.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/database.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/page.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/user.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/parents/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/plugins.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/properties/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/properties/formula.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/properties/parsers.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/properties/relation.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/query/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/query/database_query.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/query/filter_translator.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/base.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/loader.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_schema.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_sdk/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_sdk/managers.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_sdk/plugin.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/productivity.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/state.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/auth.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/dependency_resolver.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/metadata.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/project_context.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/rbac.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/schemas.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/state_machine.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/workspace.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/helpers.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/retry.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/validators.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/base/test_entity.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/cache/test_cache.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/models/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/models/blocks/test_advanced_blocks.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/models/test_block.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/models/test_database.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/models/test_database_bug.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/models/test_page.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/models/test_user.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/properties/test_formula.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/properties/test_parsers.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/properties/test_relation.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/query/test_database_query.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/query/test_filter_translator.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/test_client.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/test_comment.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/test_auth.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/test_dependency_resolver.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/test_plugin.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/test_project_context.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/test_rbac.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/test_schemas.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/test_state_machine.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/agents/test_workspace.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/test_async_typer.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/test_config.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/test_display.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/test_errors.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/test_main.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/test_pages_commands.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/test_response.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/cli/test_update.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/conftest.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/integration/conftest.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/integration/test_blocks.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/integration/test_databases.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/integration/test_pages.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/integration/test_search.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/integration/test_users.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_agents_cli.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_agents_sdk_integration.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_agents_sdk_models.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_base.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_loader.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_marketplace.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_plugin_commands_state.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_productivity_plugin.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/plugins/test_state.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/sdk/__init__.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/sdk/test_plugin_system.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/test_metadata.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/test_schema_command.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/unit/test_client.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/unit/test_collections.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/unit/test_entities.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/unit/test_errors.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/unit/test_helpers.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/unit/test_properties.py +0 -0
- {better_notion-1.9.1 → better_notion-1.9.3}/tests/utils/test_retry.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: better-notion
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.3
|
|
4
4
|
Summary: A high-level Python SDK for the Notion API with developer experience in mind.
|
|
5
5
|
Project-URL: Homepage, https://github.com/nesalia-inc/better-notion
|
|
6
6
|
Project-URL: Documentation, https://github.com/nesalia-inc/better-notion#readme
|
|
@@ -1007,30 +1007,30 @@ def ideas_create(
|
|
|
1007
1007
|
|
|
1008
1008
|
# Create idea in Notion
|
|
1009
1009
|
properties = {
|
|
1010
|
-
"
|
|
1011
|
-
"
|
|
1012
|
-
"
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
1010
|
+
"Title": {"title": [{"text": {"content": title}}]},
|
|
1011
|
+
"Project": {"relation": [{"id": project_id}]},
|
|
1012
|
+
"Category": {"select": {"name": category}},
|
|
1013
|
+
"Status": {"select": {"name": "Proposed"}},
|
|
1014
|
+
"Effort Estimate": {"select": {"name": effort_estimate}},
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
1017
|
if description:
|
|
1018
|
-
properties["
|
|
1018
|
+
properties["Description"] = {
|
|
1019
1019
|
"rich_text": [{"text": {"content": description}}]
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
1022
|
if proposed_solution:
|
|
1023
|
-
properties["
|
|
1023
|
+
properties["Proposed Solution"] = {
|
|
1024
1024
|
"rich_text": [{"text": {"content": proposed_solution}}]
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
1027
|
if benefits:
|
|
1028
|
-
properties["
|
|
1028
|
+
properties["Benefits"] = {
|
|
1029
1029
|
"rich_text": [{"text": {"content": benefits}}]
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
1032
|
if context:
|
|
1033
|
-
properties["
|
|
1033
|
+
properties["Context"] = {
|
|
1034
1034
|
"rich_text": [{"text": {"content": context}}]
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
@@ -1312,25 +1312,25 @@ def work_issues_create(
|
|
|
1312
1312
|
|
|
1313
1313
|
# Create issue in Notion
|
|
1314
1314
|
properties = {
|
|
1315
|
-
"
|
|
1316
|
-
"
|
|
1317
|
-
"
|
|
1318
|
-
"
|
|
1319
|
-
"
|
|
1315
|
+
"Title": {"title": [{"text": {"content": title}}]},
|
|
1316
|
+
"Project": {"relation": [{"id": project_id}]},
|
|
1317
|
+
"Type": {"select": {"name": type}},
|
|
1318
|
+
"Severity": {"select": {"name": severity}},
|
|
1319
|
+
"Status": {"select": {"name": "Open"}},
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
if description:
|
|
1323
|
-
properties["
|
|
1323
|
+
properties["Description"] = {
|
|
1324
1324
|
"rich_text": [{"text": {"content": description}}]
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
1327
|
if context:
|
|
1328
|
-
properties["
|
|
1328
|
+
properties["Context"] = {
|
|
1329
1329
|
"rich_text": [{"text": {"content": context}}]
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
1332
|
if task_id:
|
|
1333
|
-
properties["
|
|
1333
|
+
properties["Task"] = {"relation": [{"id": task_id}]}
|
|
1334
1334
|
|
|
1335
1335
|
response = await client._api._request(
|
|
1336
1336
|
"POST",
|
|
@@ -1568,21 +1568,21 @@ def incidents_create(
|
|
|
1568
1568
|
from datetime import datetime, timezone
|
|
1569
1569
|
|
|
1570
1570
|
properties = {
|
|
1571
|
-
"
|
|
1572
|
-
"
|
|
1573
|
-
"
|
|
1574
|
-
"
|
|
1575
|
-
"
|
|
1576
|
-
"
|
|
1571
|
+
"Title": {"title": [{"text": {"content": title}}]},
|
|
1572
|
+
"Project": {"relation": [{"id": project_id}]},
|
|
1573
|
+
"Severity": {"select": {"name": severity}},
|
|
1574
|
+
"Type": {"select": {"name": type}},
|
|
1575
|
+
"Status": {"select": {"name": "Active"}},
|
|
1576
|
+
"Discovery Date": {
|
|
1577
1577
|
"date": {"start": datetime.now(timezone.utc).isoformat()}
|
|
1578
1578
|
},
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
1581
|
if affected_version_id:
|
|
1582
|
-
properties["
|
|
1582
|
+
properties["Affected Version"] = {"relation": [{"id": affected_version_id}]}
|
|
1583
1583
|
|
|
1584
1584
|
if root_cause:
|
|
1585
|
-
properties["
|
|
1585
|
+
properties["Root Cause"] = {
|
|
1586
1586
|
"rich_text": [{"text": {"content": root_cause}}]
|
|
1587
1587
|
}
|
|
1588
1588
|
|
{better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_sdk/models.py
RENAMED
|
@@ -75,7 +75,7 @@ class DatabasePageEntityMixin:
|
|
|
75
75
|
from better_notion._sdk.models.block import Block
|
|
76
76
|
|
|
77
77
|
async def _get_blocks(offset: str | None = None) -> dict[str, Any]:
|
|
78
|
-
return await self._client._request(
|
|
78
|
+
return await self._client._api._request(
|
|
79
79
|
"GET",
|
|
80
80
|
f"/blocks/{self.id}/children",
|
|
81
81
|
params={"start_cursor": offset} if offset else None
|
|
@@ -279,7 +279,7 @@ class TestIdeaManager:
|
|
|
279
279
|
"""Test listing ideas with filters."""
|
|
280
280
|
mock_client._workspace_config = {"Ideas": "db-123"}
|
|
281
281
|
|
|
282
|
-
mock_client._api.
|
|
282
|
+
mock_client._api._request.return_value = {
|
|
283
283
|
"results": [
|
|
284
284
|
{
|
|
285
285
|
"id": "idea-1",
|
|
@@ -306,7 +306,7 @@ class TestIdeaManager:
|
|
|
306
306
|
"""Test getting a batch of ideas for review."""
|
|
307
307
|
mock_client._workspace_config = {"Ideas": "db-123"}
|
|
308
308
|
|
|
309
|
-
mock_client._api.
|
|
309
|
+
mock_client._api._request.return_value = {
|
|
310
310
|
"results": [
|
|
311
311
|
{
|
|
312
312
|
"id": "idea-1",
|
|
@@ -353,7 +353,7 @@ class TestWorkIssueManager:
|
|
|
353
353
|
"""Test listing work issues with filters."""
|
|
354
354
|
mock_client._workspace_config = {"Work Issues": "db-123"}
|
|
355
355
|
|
|
356
|
-
mock_client._api.
|
|
356
|
+
mock_client._api._request.return_value = {
|
|
357
357
|
"results": [
|
|
358
358
|
{
|
|
359
359
|
"id": "issue-1",
|
|
@@ -381,7 +381,7 @@ class TestWorkIssueManager:
|
|
|
381
381
|
"""Test finding blocking issues."""
|
|
382
382
|
mock_client._workspace_config = {"Work Issues": "db-123"}
|
|
383
383
|
|
|
384
|
-
mock_client._api.
|
|
384
|
+
mock_client._api._request.return_value = {
|
|
385
385
|
"results": [
|
|
386
386
|
{
|
|
387
387
|
"id": "issue-1",
|
|
@@ -428,7 +428,7 @@ class TestIncidentManager:
|
|
|
428
428
|
"""Test listing incidents with filters."""
|
|
429
429
|
mock_client._workspace_config = {"Incidents": "db-123"}
|
|
430
430
|
|
|
431
|
-
mock_client._api.
|
|
431
|
+
mock_client._api._request.return_value = {
|
|
432
432
|
"results": [
|
|
433
433
|
{
|
|
434
434
|
"id": "incident-1",
|
|
@@ -457,12 +457,15 @@ class TestIncidentManager:
|
|
|
457
457
|
@pytest.fixture
|
|
458
458
|
def mock_client():
|
|
459
459
|
"""Create a mock NotionClient."""
|
|
460
|
-
from unittest.mock import MagicMock
|
|
460
|
+
from unittest.mock import AsyncMock, MagicMock
|
|
461
461
|
|
|
462
462
|
from better_notion._sdk.client import NotionClient
|
|
463
463
|
|
|
464
464
|
client = MagicMock(spec=NotionClient)
|
|
465
465
|
client._api = MagicMock()
|
|
466
|
+
client._api.databases = MagicMock()
|
|
467
|
+
client._api.databases.query = AsyncMock(return_value={"results": []})
|
|
468
|
+
client._api._request = AsyncMock(return_value={"results": []})
|
|
466
469
|
client._workspace_config = {}
|
|
467
470
|
client._plugin_caches = {}
|
|
468
471
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{better_notion-1.9.1 → better_notion-1.9.3}/better_notion/_sdk/models/blocks/synced_block.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_sdk/__init__.py
RENAMED
|
File without changes
|
{better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_sdk/managers.py
RENAMED
|
File without changes
|
{better_notion-1.9.1 → better_notion-1.9.3}/better_notion/plugins/official/agents_sdk/plugin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{better_notion-1.9.1 → better_notion-1.9.3}/better_notion/utils/agents/dependency_resolver.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{better_notion-1.9.1 → better_notion-1.9.3}/tests/_sdk/models/blocks/test_advanced_blocks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|