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.4.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    = @('Add-NotionHeaderToBlock','New-NotionHeader','New-NotionTable','New-NotionTableRow','Add-NotionBlockToPage','Get-NotionBlock','Get-NotionBlockChildren','Remove-NotionBlock','Update-NotionBlock','Add-NotionDatabaseProperty','New-NotionDatabaseProperty','Remove-NotionDatabaseProperty','Add-NotionPageToDatabase','Edit-NotionDatabase','Get-NotionDatabase','Move-NotionDatabaseToArchive','New-NotionDatabase','Remove-NotionDatabase','Restore-NotionDatabase','Get-NotionPageProperty','Update-NotionPageProperty','Get-NotionPage','Get-NotionPageChildren','Move-NotionPageToArchive','New-NotionPage','Remove-NotionPage','Restore-NotionPage','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')

    # 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.4.0-preview0014] - 2025-05-29


### Added

- `.vscode/settings.json`: added `terminal.integrated.bracketedPasteMode` setting
- `build.yaml`: added `minibuild` task with steps for `Clean`, `Build_Module_ModuleBuilder`, and `Build_NestedModules_ModuleBuilder`
- `source/Classes/03_File/01_notion_file.ps1`:
  - Added static `Create` method to instantiate child objects based on file type
- `source/Classes/Block/RichText/01_Rich_Text.ps1`:
  - Added `ConvertFromObjects` method to convert arrays or single objects into `rich_text[]`
- `source/Classes/Block/04_Block.ps1`:
  - Improved error messages for unsupported and unknown block types with GitHub issue link and quoted block type
- `source/Classes/Block/05_Bookmark.ps1`:
  - Refactored constructors to support flexible input types and added `ConvertFromObject` method
- `source/Classes/Block/07_Bulleted_List_Item.ps1`:
  - Refactored constructors to use `ConvertFromObjects` and support flexible input
- `source/Classes/Block/08_Callout.ps1`:
  - Refactored constructors and added `ConvertFromObject` for emoji and rich text
- `source/Classes/Block/09_Child_Database.ps1`:
  - Used `ConvertFromObject` for `child_database_structure`
- `source/Classes/Block/10_Child_Page.ps1`:
  - Used `ConvertFromObject` for `child_page_structure`
- `source/Classes/Block/11_Code.ps1`:
  - Refactored constructors to use `ConvertFromObjects` and support caption
- `source/Classes/Block/15_Embed.ps1`:
  - Added support for `caption` and `ConvertFromObject` improvements
- `source/Classes/Block/16_Equation.ps1`:
  - Renamed constructors to match class name
- `source/Classes/Block/21_Image.ps1`:
  - Added support for `caption` and improved `ConvertFromObject`
- `source/Classes/Block/31_To_do.ps1`:
  - Refactored constructor to remove base call
- `source/Classes/Block/33_Video.ps1`:
  - Refactored constructors to use `Create` method and support caption
- `source/Classes/Emoji/01_emoji.ps1`:
  - Added `ConvertFromObject` method to handle strings and emoji objects
- `tests/Integration/Block/testpage.tests.ps1`:
  - Improved test logic for unsupported block types with specific error message checks

### Changed

- `RequiredModules.psd1`: switched to Pester Version 6
- Refactored multiple constructors across block classes to support more flexible input types and use `ConvertFromObjects` for consistency

### Fixed

- `source/Enum/01_notion_color.ps1`: added `default_backround` as a color (missing in documentation but available in API)
- `source/Classes/Block/32_Toggle.ps1`: fixed class `notion_toggle_block`
- `source/Classes/Block/33_Video.ps1`: fixed constructors to use `Create` method and correct file instantiation
- `source/Classes/Block/05_Bookmark.ps1`:
  - Fixed constructors
  - `bookmark_structure`: fixed constructor with two parameters to fully support `rich_text`
- `source/Classes/Block/07_Bulleted_List_Item.ps1`:
  - Fixed `rich_text` conversion in constructors
- `source/Classes/Block/08_Callout.ps1`:
  - Fixed constructors and emoji handling
- `source/Classes/Emoji/01_emoji.ps1`:
  - Fixed `ConvertFromObject` to handle strings and emoji objects


'


            # Prerelease string of this module
            Prerelease   = 'preview0014'

            # 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 = ''

}