WikiContainer.types.ps1xml

<?xml version="1.0" encoding="utf-8"?>
<Types>
    <Type>
        <Name>WikiContainer</Name>
        <Members>
            <PropertySet>
                <Name>DefaultDisplayPropertySet</Name>
                <ReferencedProperties>
                    <Name>Page</Name>
                    <Name>Properties</Name>
                    <Name>Labels</Name>
                </ReferencedProperties>
            </PropertySet>
 
            <ScriptProperty>
                <Name>Name</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.Container)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>ProductLinks</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.Product | Select-LinkCard )</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>Type</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.Type)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>Framework</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.'Main frameworks' | Select-VersionLinkCard)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>Dependencies</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.'Frameworks &amp; libraries' | Select-VersionLinkCard )</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>Authentication</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.'Authentication' | Select-LinkCard )</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>Authorization</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.'Authorization' | Select-LinkCard )</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>FrameworkBody</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.'Main frameworks')</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>DependenciesBody</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.'Frameworks &amp; libraries')</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>AuthenticationBody</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.'Authentication')</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>AuthorizationBody</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties.'Authorization')</GetScriptBlock>
            </ScriptProperty>
 
            <ScriptProperty>
                <Name>AllProperties</Name>
                <GetScriptBlock>($this.GetPageProperties('container').Properties)</GetScriptBlock>
            </ScriptProperty>
 
            <ScriptProperty>
                <Name>ArtifactType</Name>
                <GetScriptBlock>($this.GetType().Name)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageID</Name>
                <GetScriptBlock>($this.Page.ID)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageTitle</Name>
                <GetScriptBlock>($this.Page.Title)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageBody</Name>
                <GetScriptBlock>($this.Page.Body)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageSpaceKey</Name>
                <GetScriptBlock>($this.Page.Space.Key)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageSpace</Name>
                <GetScriptBlock>($this.Page.Space.Name)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageVersion</Name>
                <GetScriptBlock>($this.Page.Version.Number)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageLastUpdated</Name>
                <GetScriptBlock>($this.Page.Version.When)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageUri</Name>
                <GetScriptBlock>([uri]::new($this.Page.URL))</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageEditUri</Name>
                <GetScriptBlock>([uri]::new($this.Page.URL -replace '/(\d+)$','/edit-v2/$1'))</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>PageAncestors</Name>
                <GetScriptBlock>($this.Page.Ancestors)</GetScriptBlock>
            </ScriptProperty>
        </Members>
    </Type>
</Types>