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.10.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-NotionBookmarkBlock','New-NotionBreadcrumbBlock','New-NotionBulletedListItemBlock','New-NotionCalloutBlock','New-NotionChildPageBlock','New-NotionChildDatabaseBlock','New-NotionPdfBlock','New-NotionVideoBlock','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-NotionQuoteBlock','New-NotionSyncedBlock','New-NotionTableBlock','New-NotionTableOfContentsBlock','New-NotionTableRowBlock','New-NotionToDoBlock','New-NotionToggleBlock','Add-NotionBlockToPage','Get-NotionBlock','Get-NotionBlockChildren','New-NotionBlock','Remove-NotionBlock','Update-NotionBlock','Add-NotionDatabaseProperty','New-NotionDatabaseProperty','Remove-NotionDatabaseProperty','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.10.0] - 2025-06-27 ### Added - **`.devcontainer/setup.ps1`** - Added logic to ensure the `.dotnet/tools` directory is prepended to `$env:PATH` if not already present, improving the reliability of dotnet tool availability in devcontainers. - **`GitVersion.yml`** - Updated the `hotfix` branch regex to also match `bugfix` prefixes, enhancing support for multiple fix naming conventions. - **`source/Private/Invoke-TransposeTable.ps1`** - Introduced `Invoke-TransposeTable`, a utility function that transposes a 2D array. Useful for converting row-major to column-major formats. - **`source/Public/Block/Image/New-NotionImageBlock.ps1`** - Implemented `New-NotionImageBlock` to construct a `notion_image_block` from a file input. - **`tests/Integration/Block/table.tests.ps1`** - Added integration tests verifying creation of table blocks with structured content. - **`tests/QA/ModulePrefix.Tests.ps1`** - Introduced QA test to enforce module function naming conventions using `Verb-PrefixFunctionName` pattern. - **`tests/Unit/Classes/Block/27.99_Table.tests.ps1`** - Added comprehensive unit tests for `Table_structure` and `notion_table_block` classes, covering constructors, methods, and conversion behavior. - **`tests/Unit/Private/Invoke-TransposeTable.Tests.ps1`** - Introduced unit tests for `Invoke-TransposeTable`, validating matrix transposition and error handling for invalid input. - **`tests/Unit/Public/Block/New-NotionTableBlock.Tests.ps1`** - Added extensive unit tests for `New-NotionTableBlock`, validating behavior across input types, flags, and edge cases. ### Changed - **`source/Classes/Block/21_Image.ps1`** - Enhanced `notion_image_block.ConvertFromObject` to handle both `notion_file` objects and plain objects, improving robustness. - **`source/Classes/Block/27.2_TableRow.ps1`** - Updated `TableRow_structure.ConvertFromObject` to short-circuit if input is already a `TableRow_structure` instance, avoiding unnecessary processing. - **`source/Classes/Block/27.99_Table.ps1`** - Modified `addRow` and `addRows` to set `has_children` flag when adding rows, ensuring block state consistency. - **`source/Public/Block/_RichText/New-NotionRichText.ps1`** - Updated the `Annotations` parameter to inherit defaults from parent object when unspecified. - **`tests/Integration/Block/callout.tests.ps1`** - Adjusted emoji and color properties of callout blocks to align with expected test results. - **`tests/Unit/Classes/Page/PageProperties/pp_checkbox.Tests.ps1`** - Fixed path resolution logic to correct import of project resources. - **`tests/Unit/Classes/Parent/parent.Tests.ps1`** - Improved error handling for invalid parent types in `notion_parent.ConvertFromObject`. ### Fixed - **`source/Public/Block/Table/New-NotionTableBlock.ps1`** - Renamed function from `New-NotionTable` to `New-NotionTableBlock` and significantly refactored its logic to support structured inputs (e.g., hashtables). - Corrected behavior for handling column and row headers. - Added support for optional pivoting of data and validation of inputs. - **`source/Public/Block/TableRow/New-NotionTableRowBlock.ps1`** - Renamed function from `New-NotionTableRow` to `New-NotionTableRowBlock` and updated references to match, ensuring correct module export and functionality. ' # 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 = '' } |