Notion.psd1
# # Module manifest for module 'Notion' # # Generated by: Thomas Subotitsch # # Generated on: 24.06.2024 # @{ # Script module or binary module file associated with this manifest. RootModule = 'Notion.psm1' # Version number of this module. ModuleVersion = '0.13.0' # Supported PSEditions # CompatiblePSEditions = @() # ID used to uniquely identify this module GUID = '6e2df8e9-be56-4be0-8c9b-fbc0af08d698' # Author of this module Author = 'Thomas Subotitsch, Fabian Franz Steiner' # Company or vendor of this module CompanyName = '' # Copyright statement for this module Copyright = '(c) Thomas Subotitsch, Fabian Franz Steiner. All rights reserved.' # Description of the functionality provided by this module Description = 'Module for interaction with Notion based on classes' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '7.0' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @() # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = @('New-NotionRichText','New-NotionRichTextAnnotation','New-NotionRichTextEquation','New-NotionRichTextText','New-NotionBookmarkBlock','New-NotionBreadcrumbBlock','New-NotionBulletedListItemBlock','New-NotionCalloutBlock','New-NotionChildPageBlock','New-NotionChildDatabaseBlock','New-NotionCodeBlock','New-NotionColumnBlock','New-NotionColumnListBlock','New-NotionDividerBlock','New-NotionEmbedBlock','New-NotionEquationBlock','New-NotionFileBlock','Add-NotionHeaderToBlock','New-NotionHeadingBlock','New-NotionImageBlock','New-NotionLinkPreviewBlock','New-NotionNumberedListItemBlock','New-NotionParagraphBlock','New-NotionPdfBlock','New-NotionQuoteBlock','New-NotionSyncedBlock','New-NotionTableBlock','New-NotionTableOfContentsBlock','New-NotionTableRowBlock','New-NotionToDoBlock','New-NotionToggleBlock','New-NotionVideoBlock','Add-NotionBlockToPage','Get-NotionBlock','Get-NotionBlockChildren','New-NotionBlock','Remove-NotionBlock','Update-NotionBlock','Add-NotionDatabaseProperty','New-NotionDatabaseProperty','Remove-NotionDatabaseProperty','Add-NotionDatabaseToParent','Add-NotionPageToDatabase','Edit-NotionDatabase','Get-NotionDatabase','Move-NotionDatabaseToArchive','New-NotionDatabase','Remove-NotionDatabase','Restore-NotionDatabase','New-NotionEmoji','New-NotionFile','Get-NotionPageProperty','Update-NotionPageProperty','Get-NotionPage','Get-NotionPageChildren','Move-NotionPageToArchive','New-NotionPage','Remove-NotionPage','Restore-NotionPage','New-NotionParent','Get-NotionUser','Connect-Notion','ConvertTo-NotionObject','Disconnect-Notion','Invoke-NotionApiCall','zz1_Type_Accelerator','zz2_Type_Accelerator') # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() # Variables to export from this module VariablesToExport = @() # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = @('Add-NotionHeaderToPage','Add-NotionHeadingToBlock','Add-NotionHeadingToPage','New-NotionHeading','New-NotionTextBlock') # DSC resources to export from this module DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = @('Notion', 'API', 'Classes') # A URL to the license for this module. # LicenseUri = '' # A URL to the main website for this project. ProjectUri = 'https://github.com/fasteiner/Notion' # A URL to an icon representing this module. IconUri = 'https://raw.githubusercontent.com/fasteiner/Notion/main/TSNotion.png' # ReleaseNotes of this module ReleaseNotes = '## [0.13.0] - 2025-09-25 ### Added - **tests/Unit/Public/Block/Bookmark/New-NotionBookmarkBlock.Tests.ps1** Introduced unit tests for `New-NotionBookmarkBlock`, covering default and captioned bookmark creation. - **tests/Unit/Public/Block/Breadcrumb/New-NotionBreadcrumbBlock.Tests.ps1** Added unit tests validating default behavior of breadcrumb block creation. - **tests/Unit/Public/Block/BulletedListItem/New-NotionBulletedListItemBlock.Tests.ps1** Introduced tests to verify text content and color for bulleted list items. - **tests/Unit/Public/Block/ChildDatabase/New-NotionChildDatabaseBlock.Tests.ps1** Added validation for empty and titled child database block generation. - **tests/Unit/Public/Block/ChildDatabase/ChildPage/New-NotionChildPageBlock.Tests.ps1** Implemented tests for verifying empty and titled child page block creation. - **tests/Unit/Public/Block/Code/New-NotionCodeBlock.Tests.ps1** Introduced unit tests for code block creation with various combinations of text, caption, and language. - **tests/Unit/Public/Block/Column/New-NotionColumnBlock.Tests.ps1**, **tests/Unit/Public/Block/ColumnList/New-NotionColumnListBlock.Tests.ps1** Added tests for verifying the default behavior of column and column list block generation. - **tests/Unit/Public/Block/Divider/New-NotionDividerBlock.Tests.ps1** Added validation for divider block construction. - **tests/Unit/Public/Block/Embed/New-NotionEmbedBlock.Tests.ps1** Added extensive test coverage for URL and caption handling in embed blocks. - **tests/Unit/Public/Block/Equation/New-NotionEquationBlock.Tests.ps1** Added unit tests verifying LaTeX expression parsing in equation blocks. - **tests/Unit/Public/Block/File/New-NotionFileBlock.Tests.ps1** Introduced tests for external, hosted, and file-object-based file block creation, including expiry handling. - **tests/Unit/Public/Block/Heading/New-NotionHeadingBlock.Tests.ps1** Renamed and relocated test under a structured directory. - **tests/Unit/Public/Block/Image/New-NotionImageBlock.Tests.ps1** Added support for image block testing from `notion_file` objects. - **tests/Unit/Public/Block/LinkPreview/New-NotionLinkPreviewBlock.Tests.ps1** Added test confirming that `link_preview` blocks cannot be manually created. - **tests/Unit/Public/Block/NumberedListItem/New-NotionNumberedListItemBlock.Tests.ps1** Added tests to verify rich text rendering in numbered list items. - **tests/Unit/Public/Block/Paragraph/New-NotionParagraphBlock.Tests.ps1** Implemented tests for default and colored paragraph content. - **tests/Unit/Public/Block/Pdf/New-NotionPdfBlock.Tests.ps1** Renamed and moved PDF block tests into structured folder. - **tests/Unit/Public/Block/Quote/New-NotionQuoteBlock.Tests.ps1** Added validation for quote blocks with content and color options. - **tests/Unit/Public/Block/Synced/New-NotionSyncedBlock.Tests.ps1** Added coverage for synced block creation. - **tests/Unit/Public/Block/Table/New-NotionTableBlock.Tests.ps1** Rewritten and expanded validation for table blocks, including headers, error handling, and hashtable inputs. - **tests/Unit/Public/Block/TableOfContents/New-NotionTableOfContentsBlock.Tests.ps1** Introduced default and color-specific table of contents creation tests. - **tests/Unit/Public/Block/TableRow/New-NotionTableRowBlock.Tests.ps1** Added tests verifying creation of table rows from flat cell content arrays. - **tests/Unit/Public/Block/ToDo/New-NotionToDoBlock.Tests.ps1** Extensive tests covering plain, checked, and color-variant to-do block creation. - **tests/Unit/Public/Block/Toggle/New-NotionToggleBlock.Tests.ps1** Implemented tests for toggle blocks including rich text and color validation. - **tests/Unit/Public/Block/Video/New-NotionVideoBlock.Tests.ps1** Renamed and organized video block tests into structured location. - **tests/Unit/Public/Block/New-NotionBlock.Tests.ps1** Added meta tests covering dynamic creation of multiple block types using `New-NotionBlock`. - **tests/Unit/Public/Block/\_RichText/New-NotionRichText.Tests.ps1** Comprehensive unit tests for rich text construction across multiple parameter sets. - **tests/Unit/Public/Block/\_RichText/New-NotionRichTextAnnotation.Tests.ps1** Added focused testing for annotation creation via object and flag-based inputs. ### Changed - **source/Classes/Block/RichText/01_Rich_Text.ps1** Minor formatting improvement to spacing in `switch` block for content type routing. - **source/Classes/Block/RichText/02_Rich_Text_Annotation.ps1** Improved readability, added verbose logging, and corrected default handling in `ConvertFromObject`. - **source/Classes/Block/RichText/Type/01_Rich_text_text.ps1** Introduced verbose output and ensured `plain_text` is assigned from the underlying text structure. - **source/Classes/Block/RichText/Type/03_Rich_text_equation.ps1** Implemented full support for `ConvertFromObject` logic and commented out unused `ToJson()` method stub. - **source/Classes/03_File/03_external_file.ps1**, **source/Classes/Block/23.1_File_block.ps1** Added `Write-Verbose` diagnostic logging for constructor calls. ### Fixed - **source/Classes/Block/05_Bookmark.ps1** Refactored `bookmark_structure` constructor to unify input parsing and ensure consistent caption/url handling. - **source/Classes/Block/11_Code.ps1** Fixed incorrect assignment of caption text to rich text; reordered constructor logic for correctness. - **source/Classes/Block/30_Table_Of_Contents.ps1** Ensured `color` property is always initialized to a valid default. - **source/Classes/Block/27.2_TableRow.ps1** Corrected debug output to reference actual dynamic cell count instead of fixed index. - **tests/Unit/Classes/Block/05_Bookmark.tests.ps1** Removed redundant assertion and corrected expected structure for caption verification. - **tests/Unit/Classes/Block/11_Code.tests.ps1** Corrected assertion expecting incorrect text in the caption field. - **tests/Unit/Classes/Block/30_Table_Of_Contents.tests.ps1** Updated type expectation to match new default structure initialization. - **tests/Unit/Classes/Database/DatabaseProperties/09_dp_formula.Tests.ps1** Adjusted tests to validate exception behavior when formula input is missing or malformed. - **All test files:** Applied `-DisableNameChecking` to all `Import-Module Pester` statements to suppress Pester warnings and improve compatibility. ' # Prerelease string of this module Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' } |