diff --git a/.gitignore b/.gitignore index db25e57..549de13 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,7 @@ todo.md # Ignore Release directory generated by local builds Output/ Test*.xml - +enhancements.md ####### # Excerpts from https://www.gitignore.io diff --git a/FreshservicePS/FreshservicePS.psm1 b/FreshservicePS/FreshservicePS.psm1 index 9fbdaac..4c38f1d 100644 --- a/FreshservicePS/FreshservicePS.psm1 +++ b/FreshservicePS/FreshservicePS.psm1 @@ -12,9 +12,12 @@ else { } # Dot source public/private functions -$public = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Public/*.ps1') -Recurse -ErrorAction Stop) -$private = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Private/*.ps1') -Recurse -ErrorAction Stop) -foreach ($import in @($public + $private)) { +# $public = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Public/*.ps1') -Recurse -ErrorAction Stop) +# $private = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Private/*.ps1') -Recurse -ErrorAction Stop) + +$FunctionFiles = $("$PSScriptRoot\Public\","$PSScriptRoot\Private\")| Get-Childitem -File -Recurse -Include "*.ps1" -ErrorAction SilentlyContinue + +foreach ($import in $FunctionFiles) { try { . $import.FullName if ($import.BaseName -like '*FreshService*') { @@ -34,8 +37,8 @@ if (Test-Path -Path $FreshServiceConfigPath) { Where-Object -FilterScript {$_.Default -eq $true} if ($defaultConnection) { - Write-Warning -Message ('*** Automatically connecting to default Freshservice tenant {0}. ***' -f $defaultConnection.Tenant) - Connect-Freshservice -Name $defaultConnection.Name -NoBanner + Write-Warning -Message ('*** Automatically connecting to default Freshservice tenant {0}. ***' -f ($defaultConnection | Select-Object -First 1 -ExpandProperty Tenant)) + Connect-Freshservice -Name ($defaultConnection | Select-Object -First 1 -ExpandProperty Name) -NoBanner } } else { diff --git a/FreshservicePS/Public/Add-FreshServiceAgentGroupMember.ps1 b/FreshservicePS/Public/Agent_Groups/Add-FreshServiceAgentGroupMember.ps1 similarity index 100% rename from FreshservicePS/Public/Add-FreshServiceAgentGroupMember.ps1 rename to FreshservicePS/Public/Agent_Groups/Add-FreshServiceAgentGroupMember.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceAgentGroup.ps1 b/FreshservicePS/Public/Agent_Groups/Get-FreshServiceAgentGroup.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceAgentGroup.ps1 rename to FreshservicePS/Public/Agent_Groups/Get-FreshServiceAgentGroup.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceAgentGroupMember.ps1 b/FreshservicePS/Public/Agent_Groups/Get-FreshServiceAgentGroupMember.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceAgentGroupMember.ps1 rename to FreshservicePS/Public/Agent_Groups/Get-FreshServiceAgentGroupMember.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceAgentGroup.ps1 b/FreshservicePS/Public/Agent_Groups/New-FreshServiceAgentGroup.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceAgentGroup.ps1 rename to FreshservicePS/Public/Agent_Groups/New-FreshServiceAgentGroup.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceAgentGroup.ps1 b/FreshservicePS/Public/Agent_Groups/Remove-FreshServiceAgentGroup.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceAgentGroup.ps1 rename to FreshservicePS/Public/Agent_Groups/Remove-FreshServiceAgentGroup.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceAgentGroupMember.ps1 b/FreshservicePS/Public/Agent_Groups/Remove-FreshServiceAgentGroupMember.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceAgentGroupMember.ps1 rename to FreshservicePS/Public/Agent_Groups/Remove-FreshServiceAgentGroupMember.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceAgentGroup.ps1 b/FreshservicePS/Public/Agent_Groups/Set-FreshServiceAgentGroup.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceAgentGroup.ps1 rename to FreshservicePS/Public/Agent_Groups/Set-FreshServiceAgentGroup.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceAgentRole.ps1 b/FreshservicePS/Public/Agent_Roles/Get-FreshServiceAgentRole.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceAgentRole.ps1 rename to FreshservicePS/Public/Agent_Roles/Get-FreshServiceAgentRole.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceAgentRoleConfig.ps1 b/FreshservicePS/Public/Agent_Roles/New-FreshServiceAgentRoleConfig.ps1 similarity index 87% rename from FreshservicePS/Public/New-FreshServiceAgentRoleConfig.ps1 rename to FreshservicePS/Public/Agent_Roles/New-FreshServiceAgentRoleConfig.ps1 index a254469..75541d7 100644 --- a/FreshservicePS/Public/New-FreshServiceAgentRoleConfig.ps1 +++ b/FreshservicePS/Public/Agent_Roles/New-FreshServiceAgentRoleConfig.ps1 @@ -26,6 +26,9 @@ .PARAMETER groups Unique IDs of Groups in which the permissions granted by the role applies. Mandatory only when the assignment_scope is specified_groups, and should be ignored otherwise. +.PARAMETER workspace_id + Workspace ID to assign permissions. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account. + .EXAMPLE $newFreshServiceAgentRoleConfigSplat1 = @{ role_id = 21000150301 #IT Ops Agent - Get-FreshServiceAgentRole @@ -75,7 +78,14 @@ function New-FreshServiceAgentRoleConfig { Mandatory = $false, HelpMessage = 'Unique IDs of Groups in which the permissions granted by the role applies. Mandatory only when the assignment_scope is specified_groups, and should be ignored otherwise.' )] - [long[]]$groups + [long[]]$groups, + [Parameter( + Mandatory = $false, + HelpMessage = 'Workspace id is applicable only for accounts with Workspaces feature enabled.', + ParameterSetName = 'default', + Position = 0 + )] + [int]$workspace_id ) begin { diff --git a/FreshservicePS/Public/Get-FreshServiceAgent.ps1 b/FreshservicePS/Public/Agents/Get-FreshServiceAgent.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceAgent.ps1 rename to FreshservicePS/Public/Agents/Get-FreshServiceAgent.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceAgent.ps1 b/FreshservicePS/Public/Agents/New-FreshServiceAgent.ps1 similarity index 97% rename from FreshservicePS/Public/New-FreshServiceAgent.ps1 rename to FreshservicePS/Public/Agents/New-FreshServiceAgent.ps1 index 31e6128..3582596 100644 --- a/FreshservicePS/Public/New-FreshServiceAgent.ps1 +++ b/FreshservicePS/Public/Agents/New-FreshServiceAgent.ps1 @@ -82,6 +82,9 @@ .PARAMETER custom_fields Key-value pair containing the names and values of the (custom) agent fields. +.PARAMETER workspace_ids + Workspace Ids the agent will be a member of. + .EXAMPLE $newFreshServiceAgentRoleConfigSplat1 = @{ role_id = 21000150301 #IT Ops Agent - Get-FreshServiceAgentRole diff --git a/FreshservicePS/Public/Remove-FreshServiceAgent.ps1 b/FreshservicePS/Public/Agents/Remove-FreshServiceAgent.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceAgent.ps1 rename to FreshservicePS/Public/Agents/Remove-FreshServiceAgent.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceAgent.ps1 b/FreshservicePS/Public/Agents/Set-FreshServiceAgent.ps1 similarity index 97% rename from FreshservicePS/Public/Set-FreshServiceAgent.ps1 rename to FreshservicePS/Public/Agents/Set-FreshServiceAgent.ps1 index 4e9f9a8..a41e812 100644 --- a/FreshservicePS/Public/Set-FreshServiceAgent.ps1 +++ b/FreshservicePS/Public/Agents/Set-FreshServiceAgent.ps1 @@ -77,6 +77,9 @@ Each individual role is a hash in the roles array that contains the attributes.role_id: Unique ID of the role assigned"assignment_scope: The scope in which the agent can use the permissions granted by this role. Possible values include entire_helpdesk (all plans) +.PARAMETER license_type + The type of license, IT or Business. + .PARAMETER signature Signature of the agent in HTML format. @@ -89,6 +92,9 @@ .PARAMETER reactivate This operation allows you to reactivate a particular deactivated requester. +.PARAMETER workspace_ids + Workspace Ids the agent will be a member of. + .EXAMPLE Set-FreshServiceAgent -Id 21001392937 -scoreboard_level_id 2 -address '123 Anywhere Ln' diff --git a/FreshservicePS/Public/Get-FreshServiceAnnouncement.ps1 b/FreshservicePS/Public/Announcements/Get-FreshServiceAnnouncement.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceAnnouncement.ps1 rename to FreshservicePS/Public/Announcements/Get-FreshServiceAnnouncement.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceAnnouncement.ps1 b/FreshservicePS/Public/Announcements/New-FreshServiceAnnouncement.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceAnnouncement.ps1 rename to FreshservicePS/Public/Announcements/New-FreshServiceAnnouncement.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceAnnouncement.ps1 b/FreshservicePS/Public/Announcements/Remove-FreshServiceAnnouncement.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceAnnouncement.ps1 rename to FreshservicePS/Public/Announcements/Remove-FreshServiceAnnouncement.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceAnnouncement.ps1 b/FreshservicePS/Public/Announcements/Set-FreshServiceAnnouncement.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceAnnouncement.ps1 rename to FreshservicePS/Public/Announcements/Set-FreshServiceAnnouncement.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceAssetType.ps1 b/FreshservicePS/Public/AssetTypes/Get-FreshServiceAssetType.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceAssetType.ps1 rename to FreshservicePS/Public/AssetTypes/Get-FreshServiceAssetType.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceAssetType.ps1 b/FreshservicePS/Public/AssetTypes/New-FreshServiceAssetType.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceAssetType.ps1 rename to FreshservicePS/Public/AssetTypes/New-FreshServiceAssetType.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceAssetType.ps1 b/FreshservicePS/Public/AssetTypes/Remove-FreshServiceAssetType.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceAssetType.ps1 rename to FreshservicePS/Public/AssetTypes/Remove-FreshServiceAssetType.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceAssetType.ps1 b/FreshservicePS/Public/AssetTypes/Set-FreshServiceAssetType.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceAssetType.ps1 rename to FreshservicePS/Public/AssetTypes/Set-FreshServiceAssetType.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceAsset.ps1 b/FreshservicePS/Public/Assets/Get-FreshServiceAsset.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceAsset.ps1 rename to FreshservicePS/Public/Assets/Get-FreshServiceAsset.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceAsset.ps1 b/FreshservicePS/Public/Assets/New-FreshServiceAsset.ps1 similarity index 95% rename from FreshservicePS/Public/New-FreshServiceAsset.ps1 rename to FreshservicePS/Public/Assets/New-FreshServiceAsset.ps1 index ace912e..5b4de95 100644 --- a/FreshservicePS/Public/New-FreshServiceAsset.ps1 +++ b/FreshservicePS/Public/Assets/New-FreshServiceAsset.ps1 @@ -51,6 +51,9 @@ IMPORTANT: These type fields vary on every Freshservice tenant and are represented by the layer id. See Get-FreshServiceAssetType. +.PARAMETER workspace_id + Workspace ID to create asset. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account. + .EXAMPLE New-FreshServiceAsset -name 'Laptop123' -description 'Apple Laptop' -asset_type_id 21000855304 -type_fields @{product_21000855267 = 21000056898;asset_state_21000855267 = 'In Use'} diff --git a/FreshservicePS/Public/Remove-FreshServiceAsset.ps1 b/FreshservicePS/Public/Assets/Remove-FreshServiceAsset.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceAsset.ps1 rename to FreshservicePS/Public/Assets/Remove-FreshServiceAsset.ps1 diff --git a/FreshservicePS/Public/Restore-FreshServiceAsset.ps1 b/FreshservicePS/Public/Assets/Restore-FreshServiceAsset.ps1 similarity index 100% rename from FreshservicePS/Public/Restore-FreshServiceAsset.ps1 rename to FreshservicePS/Public/Assets/Restore-FreshServiceAsset.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceAsset.ps1 b/FreshservicePS/Public/Assets/Set-FreshServiceAsset.ps1 similarity index 95% rename from FreshservicePS/Public/Set-FreshServiceAsset.ps1 rename to FreshservicePS/Public/Assets/Set-FreshServiceAsset.ps1 index 6509bfe..48eaffc 100644 --- a/FreshservicePS/Public/Set-FreshServiceAsset.ps1 +++ b/FreshservicePS/Public/Assets/Set-FreshServiceAsset.ps1 @@ -49,6 +49,9 @@ .PARAMETER type_fields Key-value pair containing the names and values of the asset type fields. +.PARAMETER workspace_id + Workspace ID to move asset. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account. + .EXAMPLE Set-FreshServiceAsset -display_id 1 -description 'Updated description' diff --git a/FreshservicePS/Public/Invoke-FreshServiceAuditLogExport.ps1 b/FreshservicePS/Public/Audit_Logs/Invoke-FreshServiceAuditLogExport.ps1 similarity index 100% rename from FreshservicePS/Public/Invoke-FreshServiceAuditLogExport.ps1 rename to FreshservicePS/Public/Audit_Logs/Invoke-FreshServiceAuditLogExport.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceBusinessHour.ps1 b/FreshservicePS/Public/Business_Hours/Get-FreshServiceBusinessHour.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceBusinessHour.ps1 rename to FreshservicePS/Public/Business_Hours/Get-FreshServiceBusinessHour.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceCannedResponse.ps1 b/FreshservicePS/Public/Canned_Responses/Get-FreshServiceCannedResponse.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceCannedResponse.ps1 rename to FreshservicePS/Public/Canned_Responses/Get-FreshServiceCannedResponse.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceCannedResponseFolder.ps1 b/FreshservicePS/Public/Canned_Responses/Get-FreshServiceCannedResponseFolder.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceCannedResponseFolder.ps1 rename to FreshservicePS/Public/Canned_Responses/Get-FreshServiceCannedResponseFolder.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceChange.ps1 b/FreshservicePS/Public/Changes/Get-FreshServiceChange.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceChange.ps1 rename to FreshservicePS/Public/Changes/Get-FreshServiceChange.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceChange.ps1 b/FreshservicePS/Public/Changes/New-FreshServiceChange.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceChange.ps1 rename to FreshservicePS/Public/Changes/New-FreshServiceChange.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceChange.ps1 b/FreshservicePS/Public/Changes/Remove-FreshServiceChange.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceChange.ps1 rename to FreshservicePS/Public/Changes/Remove-FreshServiceChange.ps1 diff --git a/FreshservicePS/Public/Restore-FreshServiceChange.ps1 b/FreshservicePS/Public/Changes/Restore-FreshServiceChange.ps1 similarity index 100% rename from FreshservicePS/Public/Restore-FreshServiceChange.ps1 rename to FreshservicePS/Public/Changes/Restore-FreshServiceChange.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceChange.ps1 b/FreshservicePS/Public/Changes/Set-FreshServiceChange.ps1 similarity index 96% rename from FreshservicePS/Public/Set-FreshServiceChange.ps1 rename to FreshservicePS/Public/Changes/Set-FreshServiceChange.ps1 index a4ccbb5..15e8f9a 100644 --- a/FreshservicePS/Public/Set-FreshServiceChange.ps1 +++ b/FreshservicePS/Public/Changes/Set-FreshServiceChange.ps1 @@ -355,10 +355,10 @@ function Set-FreshServiceChange { })] [System.IO.FileInfo[]]$attachments, [Parameter( - Mandatory = $true, + Mandatory = $false, HelpMessage = 'Workspace ID to move Change. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account.', ValueFromPipelineByPropertyName = $true, - ParameterSetName = 'workspace', + ParameterSetName = 'default', Position = 1 )] [int]$workspace_id diff --git a/FreshservicePS/Public/Connect-FreshService.ps1 b/FreshservicePS/Public/Connection/Connect-FreshService.ps1 similarity index 100% rename from FreshservicePS/Public/Connect-FreshService.ps1 rename to FreshservicePS/Public/Connection/Connect-FreshService.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceConnection.ps1 b/FreshservicePS/Public/Connection/Get-FreshServiceConnection.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceConnection.ps1 rename to FreshservicePS/Public/Connection/Get-FreshServiceConnection.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceInfo.ps1 b/FreshservicePS/Public/Connection/Get-FreshServiceInfo.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceInfo.ps1 rename to FreshservicePS/Public/Connection/Get-FreshServiceInfo.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceConnection.ps1 b/FreshservicePS/Public/Connection/New-FreshServiceConnection.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceConnection.ps1 rename to FreshservicePS/Public/Connection/New-FreshServiceConnection.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceConnection.ps1 b/FreshservicePS/Public/Connection/Remove-FreshServiceConnection.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceConnection.ps1 rename to FreshservicePS/Public/Connection/Remove-FreshServiceConnection.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceConnection.ps1 b/FreshservicePS/Public/Connection/Set-FreshServiceConnection.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceConnection.ps1 rename to FreshservicePS/Public/Connection/Set-FreshServiceConnection.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceContract.ps1 b/FreshservicePS/Public/Contract/Get-FreshServiceContract.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceContract.ps1 rename to FreshservicePS/Public/Contract/Get-FreshServiceContract.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceContractType.ps1 b/FreshservicePS/Public/Contract/Get-FreshServiceContractType.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceContractType.ps1 rename to FreshservicePS/Public/Contract/Get-FreshServiceContractType.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceContract.ps1 b/FreshservicePS/Public/Contract/New-FreshServiceContract.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceContract.ps1 rename to FreshservicePS/Public/Contract/New-FreshServiceContract.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceContractItem.ps1 b/FreshservicePS/Public/Contract/New-FreshServiceContractItem.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceContractItem.ps1 rename to FreshservicePS/Public/Contract/New-FreshServiceContractItem.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceContract.ps1 b/FreshservicePS/Public/Contract/Set-FreshServiceContract.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceContract.ps1 rename to FreshservicePS/Public/Contract/Set-FreshServiceContract.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceConversation.ps1 b/FreshservicePS/Public/Conversations/Get-FreshServiceConversation.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceConversation.ps1 rename to FreshservicePS/Public/Conversations/Get-FreshServiceConversation.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceConversation.ps1 b/FreshservicePS/Public/Conversations/New-FreshServiceConversation.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceConversation.ps1 rename to FreshservicePS/Public/Conversations/New-FreshServiceConversation.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceConversation.ps1 b/FreshservicePS/Public/Conversations/Remove-FreshServiceConversation.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceConversation.ps1 rename to FreshservicePS/Public/Conversations/Remove-FreshServiceConversation.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceConversation.ps1 b/FreshservicePS/Public/Conversations/Set-FreshServiceConversation.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceConversation.ps1 rename to FreshservicePS/Public/Conversations/Set-FreshServiceConversation.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceCustomObject.ps1 b/FreshservicePS/Public/Custom_Objects/Get-FreshServiceCustomObject.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceCustomObject.ps1 rename to FreshservicePS/Public/Custom_Objects/Get-FreshServiceCustomObject.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceCustomObjectRecord.ps1 b/FreshservicePS/Public/Custom_Objects/Get-FreshServiceCustomObjectRecord.ps1 similarity index 96% rename from FreshservicePS/Public/Get-FreshServiceCustomObjectRecord.ps1 rename to FreshservicePS/Public/Custom_Objects/Get-FreshServiceCustomObjectRecord.ps1 index 22b76ac..55987d9 100644 --- a/FreshservicePS/Public/Get-FreshServiceCustomObjectRecord.ps1 +++ b/FreshservicePS/Public/Custom_Objects/Get-FreshServiceCustomObjectRecord.ps1 @@ -20,7 +20,7 @@ Note: Important! This filter requires spaces between the key\value pairs. Using category_dd1:'Hardware' will fail, the API requires the spacing category_dd1 : 'Hardware'. .PARAMETER sort_field - Name of the object field\header to be used for sorting the records. + Name of the object field\header to be used for sorting the records. .PARAMETER sort_order Order of sorting the records (ASC or DESC). diff --git a/FreshservicePS/Public/New-FreshServiceCustomObjectRecord.ps1 b/FreshservicePS/Public/Custom_Objects/New-FreshServiceCustomObjectRecord.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceCustomObjectRecord.ps1 rename to FreshservicePS/Public/Custom_Objects/New-FreshServiceCustomObjectRecord.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceCustomObjectRecord.ps1 b/FreshservicePS/Public/Custom_Objects/Remove-FreshServiceCustomObjectRecord.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceCustomObjectRecord.ps1 rename to FreshservicePS/Public/Custom_Objects/Remove-FreshServiceCustomObjectRecord.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceCustomObjectRecord.ps1 b/FreshservicePS/Public/Custom_Objects/Set-FreshServiceCustomObjectRecord.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceCustomObjectRecord.ps1 rename to FreshservicePS/Public/Custom_Objects/Set-FreshServiceCustomObjectRecord.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceDepartment.ps1 b/FreshservicePS/Public/Departments/Get-FreshServiceDepartment.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceDepartment.ps1 rename to FreshservicePS/Public/Departments/Get-FreshServiceDepartment.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceDepartment.ps1 b/FreshservicePS/Public/Departments/New-FreshServiceDepartment.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceDepartment.ps1 rename to FreshservicePS/Public/Departments/New-FreshServiceDepartment.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceDepartment.ps1 b/FreshservicePS/Public/Departments/Remove-FreshServiceDepartment.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceDepartment.ps1 rename to FreshservicePS/Public/Departments/Remove-FreshServiceDepartment.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceDepartment.ps1 b/FreshservicePS/Public/Departments/Set-FreshServiceDepartment.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceDepartment.ps1 rename to FreshservicePS/Public/Departments/Set-FreshServiceDepartment.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceLocation.ps1 b/FreshservicePS/Public/Locations/Get-FreshServiceLocation.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceLocation.ps1 rename to FreshservicePS/Public/Locations/Get-FreshServiceLocation.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceLocation.ps1 b/FreshservicePS/Public/Locations/New-FreshServiceLocation.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceLocation.ps1 rename to FreshservicePS/Public/Locations/New-FreshServiceLocation.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceLocation.ps1 b/FreshservicePS/Public/Locations/Remove-FreshServiceLocation.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceLocation.ps1 rename to FreshservicePS/Public/Locations/Remove-FreshServiceLocation.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceLocation.ps1 b/FreshservicePS/Public/Locations/Set-FreshServiceLocation.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceLocation.ps1 rename to FreshservicePS/Public/Locations/Set-FreshServiceLocation.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceOnboardingRequest.ps1 b/FreshservicePS/Public/Onboarding_Requests/Get-FreshServiceOnboardingRequest.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceOnboardingRequest.ps1 rename to FreshservicePS/Public/Onboarding_Requests/Get-FreshServiceOnboardingRequest.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceProblem.ps1 b/FreshservicePS/Public/Problems/Get-FreshServiceProblem.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceProblem.ps1 rename to FreshservicePS/Public/Problems/Get-FreshServiceProblem.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceProblem.ps1 b/FreshservicePS/Public/Problems/New-FreshServiceProblem.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceProblem.ps1 rename to FreshservicePS/Public/Problems/New-FreshServiceProblem.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceProblem.ps1 b/FreshservicePS/Public/Problems/Remove-FreshServiceProblem.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceProblem.ps1 rename to FreshservicePS/Public/Problems/Remove-FreshServiceProblem.ps1 diff --git a/FreshservicePS/Public/Restore-FreshServiceProblem.ps1 b/FreshservicePS/Public/Problems/Restore-FreshServiceProblem.ps1 similarity index 100% rename from FreshservicePS/Public/Restore-FreshServiceProblem.ps1 rename to FreshservicePS/Public/Problems/Restore-FreshServiceProblem.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceProblem.ps1 b/FreshservicePS/Public/Problems/Set-FreshServiceProblem.ps1 similarity index 96% rename from FreshservicePS/Public/Set-FreshServiceProblem.ps1 rename to FreshservicePS/Public/Problems/Set-FreshServiceProblem.ps1 index 528417f..eca1b8f 100644 --- a/FreshservicePS/Public/Set-FreshServiceProblem.ps1 +++ b/FreshservicePS/Public/Problems/Set-FreshServiceProblem.ps1 @@ -325,10 +325,10 @@ function Set-FreshServiceProblem { )] [string]$problem_impact, [Parameter( - Mandatory = $true, + Mandatory = $false, HelpMessage = 'Workspace ID to move Problem. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account.', ValueFromPipelineByPropertyName = $true, - ParameterSetName = 'workspace', + ParameterSetName = 'default', Position = 1 )] [int]$workspace_id diff --git a/FreshservicePS/Public/Get-FreshServiceProduct.ps1 b/FreshservicePS/Public/Products/Get-FreshServiceProduct.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceProduct.ps1 rename to FreshservicePS/Public/Products/Get-FreshServiceProduct.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceProduct.ps1 b/FreshservicePS/Public/Products/New-FreshServiceProduct.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceProduct.ps1 rename to FreshservicePS/Public/Products/New-FreshServiceProduct.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceProduct.ps1 b/FreshservicePS/Public/Products/Remove-FreshServiceProduct.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceProduct.ps1 rename to FreshservicePS/Public/Products/Remove-FreshServiceProduct.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceProduct.ps1 b/FreshservicePS/Public/Products/Set-FreshServiceProduct.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceProduct.ps1 rename to FreshservicePS/Public/Products/Set-FreshServiceProduct.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceProject.ps1 b/FreshservicePS/Public/Projects/Get-FreshServiceProject.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceProject.ps1 rename to FreshservicePS/Public/Projects/Get-FreshServiceProject.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceProjectTask.ps1 b/FreshservicePS/Public/Projects/Get-FreshServiceProjectTask.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceProjectTask.ps1 rename to FreshservicePS/Public/Projects/Get-FreshServiceProjectTask.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceProject.ps1 b/FreshservicePS/Public/Projects/New-FreshServiceProject.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceProject.ps1 rename to FreshservicePS/Public/Projects/New-FreshServiceProject.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceProjectTask.ps1 b/FreshservicePS/Public/Projects/New-FreshServiceProjectTask.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceProjectTask.ps1 rename to FreshservicePS/Public/Projects/New-FreshServiceProjectTask.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceProject.ps1 b/FreshservicePS/Public/Projects/Remove-FreshServiceProject.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceProject.ps1 rename to FreshservicePS/Public/Projects/Remove-FreshServiceProject.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceProjectTask.ps1 b/FreshservicePS/Public/Projects/Remove-FreshServiceProjectTask.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceProjectTask.ps1 rename to FreshservicePS/Public/Projects/Remove-FreshServiceProjectTask.ps1 diff --git a/FreshservicePS/Public/Restore-FreshServiceProject.ps1 b/FreshservicePS/Public/Projects/Restore-FreshServiceProject.ps1 similarity index 100% rename from FreshservicePS/Public/Restore-FreshServiceProject.ps1 rename to FreshservicePS/Public/Projects/Restore-FreshServiceProject.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceProject.ps1 b/FreshservicePS/Public/Projects/Set-FreshServiceProject.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceProject.ps1 rename to FreshservicePS/Public/Projects/Set-FreshServiceProject.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceProjectTask.ps1 b/FreshservicePS/Public/Projects/Set-FreshServiceProjectTask.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceProjectTask.ps1 rename to FreshservicePS/Public/Projects/Set-FreshServiceProjectTask.ps1 diff --git a/FreshservicePS/Public/Get-FreshServicePurchaseOrder.ps1 b/FreshservicePS/Public/PurchaseOrders/Get-FreshServicePurchaseOrder.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServicePurchaseOrder.ps1 rename to FreshservicePS/Public/PurchaseOrders/Get-FreshServicePurchaseOrder.ps1 diff --git a/FreshservicePS/Public/New-FreshServicePurchaseItem.ps1 b/FreshservicePS/Public/PurchaseOrders/New-FreshServicePurchaseItem.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServicePurchaseItem.ps1 rename to FreshservicePS/Public/PurchaseOrders/New-FreshServicePurchaseItem.ps1 diff --git a/FreshservicePS/Public/New-FreshServicePurchaseOrder.ps1 b/FreshservicePS/Public/PurchaseOrders/New-FreshServicePurchaseOrder.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServicePurchaseOrder.ps1 rename to FreshservicePS/Public/PurchaseOrders/New-FreshServicePurchaseOrder.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServicePurchaseOrder.ps1 b/FreshservicePS/Public/PurchaseOrders/Remove-FreshServicePurchaseOrder.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServicePurchaseOrder.ps1 rename to FreshservicePS/Public/PurchaseOrders/Remove-FreshServicePurchaseOrder.ps1 diff --git a/FreshservicePS/Public/Set-FreshServicePurchaseOrder.ps1 b/FreshservicePS/Public/PurchaseOrders/Set-FreshServicePurchaseOrder.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServicePurchaseOrder.ps1 rename to FreshservicePS/Public/PurchaseOrders/Set-FreshServicePurchaseOrder.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceBackgroundJob.ps1 b/FreshservicePS/Public/Relationships/Get-FreshServiceBackgroundJob.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceBackgroundJob.ps1 rename to FreshservicePS/Public/Relationships/Get-FreshServiceBackgroundJob.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceRelationship.ps1 b/FreshservicePS/Public/Relationships/Get-FreshServiceRelationship.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceRelationship.ps1 rename to FreshservicePS/Public/Relationships/Get-FreshServiceRelationship.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceRelationshipType.ps1 b/FreshservicePS/Public/Relationships/Get-FreshServiceRelationshipType.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceRelationshipType.ps1 rename to FreshservicePS/Public/Relationships/Get-FreshServiceRelationshipType.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceRelationship.ps1 b/FreshservicePS/Public/Relationships/New-FreshServiceRelationship.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceRelationship.ps1 rename to FreshservicePS/Public/Relationships/New-FreshServiceRelationship.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceRelationshipItem.ps1 b/FreshservicePS/Public/Relationships/New-FreshServiceRelationshipItem.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceRelationshipItem.ps1 rename to FreshservicePS/Public/Relationships/New-FreshServiceRelationshipItem.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceRelationship.ps1 b/FreshservicePS/Public/Relationships/Remove-FreshServiceRelationship.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceRelationship.ps1 rename to FreshservicePS/Public/Relationships/Remove-FreshServiceRelationship.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceRelease.ps1 b/FreshservicePS/Public/Releases/Get-FreshServiceRelease.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceRelease.ps1 rename to FreshservicePS/Public/Releases/Get-FreshServiceRelease.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceRelease.ps1 b/FreshservicePS/Public/Releases/New-FreshServiceRelease.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceRelease.ps1 rename to FreshservicePS/Public/Releases/New-FreshServiceRelease.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceRelease.ps1 b/FreshservicePS/Public/Releases/Remove-FreshServiceRelease.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceRelease.ps1 rename to FreshservicePS/Public/Releases/Remove-FreshServiceRelease.ps1 diff --git a/FreshservicePS/Public/Restore-FreshServiceRelease.ps1 b/FreshservicePS/Public/Releases/Restore-FreshServiceRelease.ps1 similarity index 100% rename from FreshservicePS/Public/Restore-FreshServiceRelease.ps1 rename to FreshservicePS/Public/Releases/Restore-FreshServiceRelease.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceRelease.ps1 b/FreshservicePS/Public/Releases/Set-FreshServiceRelease.ps1 similarity index 96% rename from FreshservicePS/Public/Set-FreshServiceRelease.ps1 rename to FreshservicePS/Public/Releases/Set-FreshServiceRelease.ps1 index 8478030..abc65c5 100644 --- a/FreshservicePS/Public/Set-FreshServiceRelease.ps1 +++ b/FreshservicePS/Public/Releases/Set-FreshServiceRelease.ps1 @@ -315,10 +315,10 @@ function Set-FreshServiceRelease { )] [string]$test_plan, [Parameter( - Mandatory = $true, + Mandatory = $false, HelpMessage = 'Workspace ID to move Change. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account.', ValueFromPipelineByPropertyName = $true, - ParameterSetName = 'workspace', + ParameterSetName = 'default', Position = 1 )] [int]$workspace_id diff --git a/FreshservicePS/Public/Add-FreshServiceRequesterGroupMember.ps1 b/FreshservicePS/Public/Requester_Groups/Add-FreshServiceRequesterGroupMember.ps1 similarity index 100% rename from FreshservicePS/Public/Add-FreshServiceRequesterGroupMember.ps1 rename to FreshservicePS/Public/Requester_Groups/Add-FreshServiceRequesterGroupMember.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceRequesterGroup.ps1 b/FreshservicePS/Public/Requester_Groups/Get-FreshServiceRequesterGroup.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceRequesterGroup.ps1 rename to FreshservicePS/Public/Requester_Groups/Get-FreshServiceRequesterGroup.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceRequesterGroupMember.ps1 b/FreshservicePS/Public/Requester_Groups/Get-FreshServiceRequesterGroupMember.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceRequesterGroupMember.ps1 rename to FreshservicePS/Public/Requester_Groups/Get-FreshServiceRequesterGroupMember.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceRequesterGroup.ps1 b/FreshservicePS/Public/Requester_Groups/New-FreshServiceRequesterGroup.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceRequesterGroup.ps1 rename to FreshservicePS/Public/Requester_Groups/New-FreshServiceRequesterGroup.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceRequesterGroup.ps1 b/FreshservicePS/Public/Requester_Groups/Remove-FreshServiceRequesterGroup.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceRequesterGroup.ps1 rename to FreshservicePS/Public/Requester_Groups/Remove-FreshServiceRequesterGroup.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceRequesterGroupMember.ps1 b/FreshservicePS/Public/Requester_Groups/Remove-FreshServiceRequesterGroupMember.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceRequesterGroupMember.ps1 rename to FreshservicePS/Public/Requester_Groups/Remove-FreshServiceRequesterGroupMember.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceRequester.ps1 b/FreshservicePS/Public/Requesters/Get-FreshServiceRequester.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceRequester.ps1 rename to FreshservicePS/Public/Requesters/Get-FreshServiceRequester.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceRequester.ps1 b/FreshservicePS/Public/Requesters/New-FreshServiceRequester.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceRequester.ps1 rename to FreshservicePS/Public/Requesters/New-FreshServiceRequester.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceRequester.ps1 b/FreshservicePS/Public/Requesters/Remove-FreshServiceRequester.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceRequester.ps1 rename to FreshservicePS/Public/Requesters/Remove-FreshServiceRequester.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceRequester.ps1 b/FreshservicePS/Public/Requesters/Set-FreshServiceRequester.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceRequester.ps1 rename to FreshservicePS/Public/Requesters/Set-FreshServiceRequester.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceRequesterGroup.ps1 b/FreshservicePS/Public/Requesters/Set-FreshServiceRequesterGroup.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceRequesterGroup.ps1 rename to FreshservicePS/Public/Requesters/Set-FreshServiceRequesterGroup.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceSLAPolicy.ps1 b/FreshservicePS/Public/SLA_Policies/Get-FreshServiceSLAPolicy.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceSLAPolicy.ps1 rename to FreshservicePS/Public/SLA_Policies/Get-FreshServiceSLAPolicy.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceCatalogCategory.ps1 b/FreshservicePS/Public/Service_Catalog/Get-FreshServiceCatalogCategory.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceCatalogCategory.ps1 rename to FreshservicePS/Public/Service_Catalog/Get-FreshServiceCatalogCategory.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceCatalogItem.ps1 b/FreshservicePS/Public/Service_Catalog/Get-FreshServiceCatalogItem.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceCatalogItem.ps1 rename to FreshservicePS/Public/Service_Catalog/Get-FreshServiceCatalogItem.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceRequestApproval.ps1 b/FreshservicePS/Public/Service_Catalog/Get-FreshServiceRequestApproval.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceRequestApproval.ps1 rename to FreshservicePS/Public/Service_Catalog/Get-FreshServiceRequestApproval.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceSoftware.ps1 b/FreshservicePS/Public/Software/Get-FreshServiceSoftware.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceSoftware.ps1 rename to FreshservicePS/Public/Software/Get-FreshServiceSoftware.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceSoftwareInstallation.ps1 b/FreshservicePS/Public/Software/Get-FreshServiceSoftwareInstallation.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceSoftwareInstallation.ps1 rename to FreshservicePS/Public/Software/Get-FreshServiceSoftwareInstallation.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceSoftwareUser.ps1 b/FreshservicePS/Public/Software/Get-FreshServiceSoftwareUser.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceSoftwareUser.ps1 rename to FreshservicePS/Public/Software/Get-FreshServiceSoftwareUser.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceSoftware.ps1 b/FreshservicePS/Public/Software/New-FreshServiceSoftware.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceSoftware.ps1 rename to FreshservicePS/Public/Software/New-FreshServiceSoftware.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceSoftwareInstallation.ps1 b/FreshservicePS/Public/Software/New-FreshServiceSoftwareInstallation.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceSoftwareInstallation.ps1 rename to FreshservicePS/Public/Software/New-FreshServiceSoftwareInstallation.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceSoftwareUser.ps1 b/FreshservicePS/Public/Software/New-FreshServiceSoftwareUser.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceSoftwareUser.ps1 rename to FreshservicePS/Public/Software/New-FreshServiceSoftwareUser.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceSoftware.ps1 b/FreshservicePS/Public/Software/Remove-FreshServiceSoftware.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceSoftware.ps1 rename to FreshservicePS/Public/Software/Remove-FreshServiceSoftware.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceSoftwareInstallation.ps1 b/FreshservicePS/Public/Software/Remove-FreshServiceSoftwareInstallation.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceSoftwareInstallation.ps1 rename to FreshservicePS/Public/Software/Remove-FreshServiceSoftwareInstallation.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceSoftwareUser.ps1 b/FreshservicePS/Public/Software/Remove-FreshServiceSoftwareUser.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceSoftwareUser.ps1 rename to FreshservicePS/Public/Software/Remove-FreshServiceSoftwareUser.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceSoftware.ps1 b/FreshservicePS/Public/Software/Set-FreshServiceSoftware.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceSoftware.ps1 rename to FreshservicePS/Public/Software/Set-FreshServiceSoftware.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceSoftwareUser.ps1 b/FreshservicePS/Public/Software/Set-FreshServiceSoftwareUser.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceSoftwareUser.ps1 rename to FreshservicePS/Public/Software/Set-FreshServiceSoftwareUser.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceSolutionArticle.ps1 b/FreshservicePS/Public/Solution_Article/Get-FreshServiceSolutionArticle.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceSolutionArticle.ps1 rename to FreshservicePS/Public/Solution_Article/Get-FreshServiceSolutionArticle.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceSolutionArticle.ps1 b/FreshservicePS/Public/Solution_Article/New-FreshServiceSolutionArticle.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceSolutionArticle.ps1 rename to FreshservicePS/Public/Solution_Article/New-FreshServiceSolutionArticle.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceSolutionArticle.ps1 b/FreshservicePS/Public/Solution_Article/Remove-FreshServiceSolutionArticle.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceSolutionArticle.ps1 rename to FreshservicePS/Public/Solution_Article/Remove-FreshServiceSolutionArticle.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceSolutionArticle.ps1 b/FreshservicePS/Public/Solution_Article/Set-FreshServiceSolutionArticle.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceSolutionArticle.ps1 rename to FreshservicePS/Public/Solution_Article/Set-FreshServiceSolutionArticle.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceSolutionCategory.ps1 b/FreshservicePS/Public/Solution_Category/Get-FreshServiceSolutionCategory.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceSolutionCategory.ps1 rename to FreshservicePS/Public/Solution_Category/Get-FreshServiceSolutionCategory.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceSolutionCategory.ps1 b/FreshservicePS/Public/Solution_Category/New-FreshServiceSolutionCategory.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceSolutionCategory.ps1 rename to FreshservicePS/Public/Solution_Category/New-FreshServiceSolutionCategory.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceSolutionCategory.ps1 b/FreshservicePS/Public/Solution_Category/Remove-FreshServiceSolutionCategory.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceSolutionCategory.ps1 rename to FreshservicePS/Public/Solution_Category/Remove-FreshServiceSolutionCategory.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceSolutionCategory.ps1 b/FreshservicePS/Public/Solution_Category/Set-FreshServiceSolutionCategory.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceSolutionCategory.ps1 rename to FreshservicePS/Public/Solution_Category/Set-FreshServiceSolutionCategory.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceSolutionFolder.ps1 b/FreshservicePS/Public/Solution_Folder/Get-FreshServiceSolutionFolder.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceSolutionFolder.ps1 rename to FreshservicePS/Public/Solution_Folder/Get-FreshServiceSolutionFolder.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceSolutionFolder.ps1 b/FreshservicePS/Public/Solution_Folder/New-FreshServiceSolutionFolder.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceSolutionFolder.ps1 rename to FreshservicePS/Public/Solution_Folder/New-FreshServiceSolutionFolder.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceSolutionFolder.ps1 b/FreshservicePS/Public/Solution_Folder/Remove-FreshServiceSolutionFolder.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceSolutionFolder.ps1 rename to FreshservicePS/Public/Solution_Folder/Remove-FreshServiceSolutionFolder.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceSolutionFolder.ps1 b/FreshservicePS/Public/Solution_Folder/Set-FreshServiceSolutionFolder.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceSolutionFolder.ps1 rename to FreshservicePS/Public/Solution_Folder/Set-FreshServiceSolutionFolder.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceNote.ps1 b/FreshservicePS/Public/Tickets/Get-FreshServiceNote.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceNote.ps1 rename to FreshservicePS/Public/Tickets/Get-FreshServiceNote.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceRequestedItem.ps1 b/FreshservicePS/Public/Tickets/Get-FreshServiceRequestedItem.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceRequestedItem.ps1 rename to FreshservicePS/Public/Tickets/Get-FreshServiceRequestedItem.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceTask.ps1 b/FreshservicePS/Public/Tickets/Get-FreshServiceTask.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceTask.ps1 rename to FreshservicePS/Public/Tickets/Get-FreshServiceTask.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceTicket.ps1 b/FreshservicePS/Public/Tickets/Get-FreshServiceTicket.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceTicket.ps1 rename to FreshservicePS/Public/Tickets/Get-FreshServiceTicket.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceTimeEntry.ps1 b/FreshservicePS/Public/Tickets/Get-FreshServiceTimeEntry.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceTimeEntry.ps1 rename to FreshservicePS/Public/Tickets/Get-FreshServiceTimeEntry.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceNote.ps1 b/FreshservicePS/Public/Tickets/New-FreshServiceNote.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceNote.ps1 rename to FreshservicePS/Public/Tickets/New-FreshServiceNote.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceOnboardingRequest.ps1 b/FreshservicePS/Public/Tickets/New-FreshServiceOnboardingRequest.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceOnboardingRequest.ps1 rename to FreshservicePS/Public/Tickets/New-FreshServiceOnboardingRequest.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceRequest.ps1 b/FreshservicePS/Public/Tickets/New-FreshServiceRequest.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceRequest.ps1 rename to FreshservicePS/Public/Tickets/New-FreshServiceRequest.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceRequestApproval.ps1 b/FreshservicePS/Public/Tickets/New-FreshServiceRequestApproval.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceRequestApproval.ps1 rename to FreshservicePS/Public/Tickets/New-FreshServiceRequestApproval.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceTask.ps1 b/FreshservicePS/Public/Tickets/New-FreshServiceTask.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceTask.ps1 rename to FreshservicePS/Public/Tickets/New-FreshServiceTask.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceTicket.ps1 b/FreshservicePS/Public/Tickets/New-FreshServiceTicket.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceTicket.ps1 rename to FreshservicePS/Public/Tickets/New-FreshServiceTicket.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceTicketSource.ps1 b/FreshservicePS/Public/Tickets/New-FreshServiceTicketSource.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceTicketSource.ps1 rename to FreshservicePS/Public/Tickets/New-FreshServiceTicketSource.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceTimeEntry.ps1 b/FreshservicePS/Public/Tickets/New-FreshServiceTimeEntry.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceTimeEntry.ps1 rename to FreshservicePS/Public/Tickets/New-FreshServiceTimeEntry.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceNote.ps1 b/FreshservicePS/Public/Tickets/Remove-FreshServiceNote.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceNote.ps1 rename to FreshservicePS/Public/Tickets/Remove-FreshServiceNote.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceTask.ps1 b/FreshservicePS/Public/Tickets/Remove-FreshServiceTask.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceTask.ps1 rename to FreshservicePS/Public/Tickets/Remove-FreshServiceTask.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceTicket.ps1 b/FreshservicePS/Public/Tickets/Remove-FreshServiceTicket.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceTicket.ps1 rename to FreshservicePS/Public/Tickets/Remove-FreshServiceTicket.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceTimeEntry.ps1 b/FreshservicePS/Public/Tickets/Remove-FreshServiceTimeEntry.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceTimeEntry.ps1 rename to FreshservicePS/Public/Tickets/Remove-FreshServiceTimeEntry.ps1 diff --git a/FreshservicePS/Public/Restore-FreshServiceTicket.ps1 b/FreshservicePS/Public/Tickets/Restore-FreshServiceTicket.ps1 similarity index 100% rename from FreshservicePS/Public/Restore-FreshServiceTicket.ps1 rename to FreshservicePS/Public/Tickets/Restore-FreshServiceTicket.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceNote.ps1 b/FreshservicePS/Public/Tickets/Set-FreshServiceNote.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceNote.ps1 rename to FreshservicePS/Public/Tickets/Set-FreshServiceNote.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceRequestApproval.ps1 b/FreshservicePS/Public/Tickets/Set-FreshServiceRequestApproval.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceRequestApproval.ps1 rename to FreshservicePS/Public/Tickets/Set-FreshServiceRequestApproval.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceRequestedItem.ps1 b/FreshservicePS/Public/Tickets/Set-FreshServiceRequestedItem.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceRequestedItem.ps1 rename to FreshservicePS/Public/Tickets/Set-FreshServiceRequestedItem.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceTask.ps1 b/FreshservicePS/Public/Tickets/Set-FreshServiceTask.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceTask.ps1 rename to FreshservicePS/Public/Tickets/Set-FreshServiceTask.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceTicket.ps1 b/FreshservicePS/Public/Tickets/Set-FreshServiceTicket.ps1 similarity index 97% rename from FreshservicePS/Public/Set-FreshServiceTicket.ps1 rename to FreshservicePS/Public/Tickets/Set-FreshServiceTicket.ps1 index f1da10e..8ffe197 100644 --- a/FreshservicePS/Public/Set-FreshServiceTicket.ps1 +++ b/FreshservicePS/Public/Tickets/Set-FreshServiceTicket.ps1 @@ -178,7 +178,7 @@ function Set-FreshServiceTicket { )] [long]$id, [Parameter( - Mandatory = $true, + Mandatory = $false, HelpMessage = 'Workspace ID to move ticket. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account.', ValueFromPipelineByPropertyName = $true )] diff --git a/FreshservicePS/Public/Set-FreshServiceTimeEntry.ps1 b/FreshservicePS/Public/Tickets/Set-FreshServiceTimeEntry.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceTimeEntry.ps1 rename to FreshservicePS/Public/Tickets/Set-FreshServiceTimeEntry.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceVendor.ps1 b/FreshservicePS/Public/Vendors/Get-FreshServiceVendor.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceVendor.ps1 rename to FreshservicePS/Public/Vendors/Get-FreshServiceVendor.ps1 diff --git a/FreshservicePS/Public/New-FreshServiceVendor.ps1 b/FreshservicePS/Public/Vendors/New-FreshServiceVendor.ps1 similarity index 100% rename from FreshservicePS/Public/New-FreshServiceVendor.ps1 rename to FreshservicePS/Public/Vendors/New-FreshServiceVendor.ps1 diff --git a/FreshservicePS/Public/Remove-FreshServiceVendor.ps1 b/FreshservicePS/Public/Vendors/Remove-FreshServiceVendor.ps1 similarity index 100% rename from FreshservicePS/Public/Remove-FreshServiceVendor.ps1 rename to FreshservicePS/Public/Vendors/Remove-FreshServiceVendor.ps1 diff --git a/FreshservicePS/Public/Set-FreshServiceVendor.ps1 b/FreshservicePS/Public/Vendors/Set-FreshServiceVendor.ps1 similarity index 100% rename from FreshservicePS/Public/Set-FreshServiceVendor.ps1 rename to FreshservicePS/Public/Vendors/Set-FreshServiceVendor.ps1 diff --git a/FreshservicePS/Public/Get-FreshServiceWorkspace.ps1 b/FreshservicePS/Public/Workspaces/Get-FreshServiceWorkspace.ps1 similarity index 100% rename from FreshservicePS/Public/Get-FreshServiceWorkspace.ps1 rename to FreshservicePS/Public/Workspaces/Get-FreshServiceWorkspace.ps1 diff --git a/docs/en-US/Get-FreshServiceAsset.md b/docs/en-US/Get-FreshServiceAsset.md index e4463a8..214390e 100644 --- a/docs/en-US/Get-FreshServiceAsset.md +++ b/docs/en-US/Get-FreshServiceAsset.md @@ -14,8 +14,7 @@ Returns a Freshservice Asset. ### default (Default) ``` -Get-FreshServiceAsset [[-workspace_id] ] [-IncludeTypeFields] [[-per_page] ] [[-page] ] - [] +Get-FreshServiceAsset [-IncludeTypeFields] [[-per_page] ] [[-page] ] [] ``` ### relationships @@ -267,25 +266,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -workspace_id -Workspace id filter is applicable only for accounts with Workspaces feature enabled. Providing a Workspace_id will return tickets from a specific workspace. - -If the workspace_id(s) parameter is NOT provided, data will only be returned for the Default\Primary Workspace. -If the workspace_id(s) parameter is provided, data will be returned from the specified Workspaces. -If the workspace_id value is 0, data will be returned from all workspaces (the user has access to), with only global level fields. - -```yaml -Type: Int32[] -Parameter Sets: default -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -filter Custom filters supported by the api can be found here: https://api.freshservice.com/#filter_assets. The filter is automatically url encoded at runtime. diff --git a/docs/en-US/Get-FreshServiceBusinessHour.md b/docs/en-US/Get-FreshServiceBusinessHour.md index 761a412..a5b45ce 100644 --- a/docs/en-US/Get-FreshServiceBusinessHour.md +++ b/docs/en-US/Get-FreshServiceBusinessHour.md @@ -14,8 +14,7 @@ Returns a Freshservice Business Hours. ### default (Default) ``` -Get-FreshServiceBusinessHour [[-workspace_id] ] [[-per_page] ] [[-page] ] - [] +Get-FreshServiceBusinessHour [[-per_page] ] [[-page] ] [] ``` ### id @@ -85,25 +84,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -workspace_id -Workspace id filter is applicable only for accounts with Workspaces feature enabled. Providing a Workspace_id will return tickets from a specific workspace. - -If the workspace_id(s) parameter is NOT provided, data will only be returned for the Default\Primary Workspace. -If the workspace_id(s) parameter is provided, data will be returned from the specified Workspaces. -If the workspace_id value is 0, data will be returned from all workspaces (the user has access to), with only global level fields. - -```yaml -Type: Int32[] -Parameter Sets: default -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -per_page Number of records to return per page during pagination. Maximum of 100 records. @@ -114,7 +94,7 @@ Parameter Sets: default Aliases: Required: False -Position: 2 +Position: 1 Default value: 100 Accept pipeline input: False Accept wildcard characters: False @@ -129,7 +109,7 @@ Parameter Sets: default Aliases: Required: False -Position: 3 +Position: 2 Default value: 1 Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/en-US/Get-FreshServiceCatalogCategory.md b/docs/en-US/Get-FreshServiceCatalogCategory.md index 459f827..c3b3f2c 100644 --- a/docs/en-US/Get-FreshServiceCatalogCategory.md +++ b/docs/en-US/Get-FreshServiceCatalogCategory.md @@ -14,8 +14,7 @@ Returns a Freshservice Service Catalog Category. ### default (Default) ``` -Get-FreshServiceCatalogCategory [[-workspace_id] ] [[-per_page] ] [[-page] ] - [] +Get-FreshServiceCatalogCategory [[-per_page] ] [[-page] ] [] ``` ### Id @@ -96,25 +95,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -workspace_id -Workspace id filter is applicable only for accounts with Workspaces feature enabled. Providing a Workspace_id will return tickets from a specific workspace. - -If the workspace_id(s) parameter is NOT provided, data will only be returned for the Default\Primary Workspace. -If the workspace_id(s) parameter is provided, data will be returned from the specified Workspaces. -If the workspace_id value is 0, data will be returned from all workspaces (the user has access to), with only global level fields. - -```yaml -Type: Int32[] -Parameter Sets: default -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -per_page Number of records to return per page during pagination. Maximum of 100 records. @@ -125,7 +105,7 @@ Parameter Sets: default Aliases: Required: False -Position: 2 +Position: 3 Default value: 100 Accept pipeline input: False Accept wildcard characters: False @@ -140,7 +120,7 @@ Parameter Sets: default Aliases: Required: False -Position: 3 +Position: 4 Default value: 1 Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/en-US/Get-FreshServiceCatalogItem.md b/docs/en-US/Get-FreshServiceCatalogItem.md index 415dc03..a4b6ef8 100644 --- a/docs/en-US/Get-FreshServiceCatalogItem.md +++ b/docs/en-US/Get-FreshServiceCatalogItem.md @@ -14,8 +14,7 @@ Returns a Freshservice Service Catalog Item. ### default (Default) ``` -Get-FreshServiceCatalogItem [[-workspace_id] ] [[-per_page] ] [[-page] ] - [] +Get-FreshServiceCatalogItem [[-per_page] ] [[-page] ] [] ``` ### id @@ -192,25 +191,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -workspace_id -Workspace id filter is applicable only for accounts with Workspaces feature enabled. Providing a Workspace_id will return tickets from a specific workspace. - -If the workspace_id(s) parameter is NOT provided, data will only be returned for the Default\Primary Workspace. -If the workspace_id(s) parameter is provided, data will be returned from the specified Workspaces. -If the workspace_id value is 0, data will be returned from all workspaces (the user has access to), with only global level fields. - -```yaml -Type: Int32[] -Parameter Sets: default -Aliases: - -Required: False -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -per_page Number of records to return per page during pagination. Maximum of 100 records. @@ -221,7 +201,7 @@ Parameter Sets: default Aliases: Required: False -Position: 2 +Position: 3 Default value: 100 Accept pipeline input: False Accept wildcard characters: False @@ -236,7 +216,7 @@ Parameter Sets: default Aliases: Required: False -Position: 3 +Position: 4 Default value: 1 Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/en-US/Get-FreshServiceChange.md b/docs/en-US/Get-FreshServiceChange.md index 63c1e0f..a3e49ce 100644 --- a/docs/en-US/Get-FreshServiceChange.md +++ b/docs/en-US/Get-FreshServiceChange.md @@ -14,8 +14,8 @@ Returns a Freshservice Change. ### default (Default) ``` -Get-FreshServiceChange [[-workspace_id] ] [[-updated_since] ] [[-include] ] - [[-per_page] ] [[-page] ] [] +Get-FreshServiceChange [[-updated_since] ] [[-include] ] [[-per_page] ] + [[-page] ] [] ``` ### id @@ -356,25 +356,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -workspace_id -Workspace id filter is applicable only for accounts with Workspaces feature enabled. Providing a Workspace_id will return tickets from a specific workspace. - -If the workspace_id(s) parameter is NOT provided, data will only be returned for the Default\Primary Workspace. -If the workspace_id(s) parameter is provided, data will be returned from the specified Workspaces. -If the workspace_id value is 0, data will be returned from all workspaces (the user has access to), with only global level fields. - -```yaml -Type: Int32 -Parameter Sets: default -Aliases: - -Required: False -Position: 1 -Default value: 0 -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -updated_since Filter to return changes updated since a provided date and time. @@ -384,7 +365,7 @@ Parameter Sets: default Aliases: UpdateSince Required: False -Position: 2 +Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -403,7 +384,7 @@ Parameter Sets: default, id, predefined_filter Aliases: Required: False -Position: 3 +Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -450,7 +431,7 @@ Parameter Sets: default, predefined_filter Aliases: Required: False -Position: 4 +Position: 3 Default value: 100 Accept pipeline input: False Accept wildcard characters: False @@ -465,7 +446,7 @@ Parameter Sets: default, predefined_filter Aliases: Required: False -Position: 5 +Position: 4 Default value: 1 Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/en-US/Get-FreshServiceCustomObject.md b/docs/en-US/Get-FreshServiceCustomObject.md index 7359144..67764cf 100644 --- a/docs/en-US/Get-FreshServiceCustomObject.md +++ b/docs/en-US/Get-FreshServiceCustomObject.md @@ -14,8 +14,7 @@ Returns a Freshservice Custom Object. ### default (Default) ``` -Get-FreshServiceCustomObject [[-workspace_id] ] [[-per_page] ] [[-page] ] - [] +Get-FreshServiceCustomObject [[-per_page] ] [[-page] ] [] ``` ### id @@ -87,25 +86,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -workspace_id -Workspace id filter is applicable only for accounts with Workspaces feature enabled. Providing a Workspace_id will return tickets from a specific workspace. - -If the workspace_id(s) parameter is NOT provided, data will only be returned for the Default\Primary Workspace. -If the workspace_id(s) parameter is provided, data will be returned from the specified Workspaces. -If the workspace_id value is 0, data will be returned from all workspaces (the user has access to), with only global level fields. - -```yaml -Type: Int32 -Parameter Sets: default -Aliases: - -Required: False -Position: 1 -Default value: 0 -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -per_page Number of records to return per page during pagination. Maximum of 100 records. @@ -116,7 +96,7 @@ Parameter Sets: default Aliases: Required: False -Position: 2 +Position: 1 Default value: 100 Accept pipeline input: False Accept wildcard characters: False @@ -131,7 +111,7 @@ Parameter Sets: default Aliases: Required: False -Position: 3 +Position: 2 Default value: 1 Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/en-US/Get-FreshServiceCustomObjectRecord.md b/docs/en-US/Get-FreshServiceCustomObjectRecord.md index 4a6f520..aeecca8 100644 --- a/docs/en-US/Get-FreshServiceCustomObjectRecord.md +++ b/docs/en-US/Get-FreshServiceCustomObjectRecord.md @@ -14,14 +14,12 @@ Returns a Freshservice Custom Object Record. ### default (Default) ``` -Get-FreshServiceCustomObjectRecord [-custom_object_id] [[-per_page] ] [[-page] ] - [] +Get-FreshServiceCustomObjectRecord [[-per_page] ] [[-page] ] [] ``` -### filter +### id ``` -Get-FreshServiceCustomObjectRecord [-custom_object_id] [[-per_page] ] [[-page] ] - [] +Get-FreshServiceCustomObjectRecord [-custom_object_id] [] ``` ## DESCRIPTION @@ -73,7 +71,7 @@ Unique id of the Custom Object. ```yaml Type: Int64 -Parameter Sets: (All) +Parameter Sets: id Aliases: id Required: True @@ -89,11 +87,11 @@ Maximum of 100 records. ```yaml Type: Int32 -Parameter Sets: (All) +Parameter Sets: default Aliases: Required: False -Position: 5 +Position: 1 Default value: 100 Accept pipeline input: False Accept wildcard characters: False @@ -104,11 +102,11 @@ The page number to retrieve during pagination. ```yaml Type: Int32 -Parameter Sets: (All) +Parameter Sets: default Aliases: Required: False -Position: 6 +Position: 2 Default value: 1 Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/en-US/Get-FreshServiceProblem.md b/docs/en-US/Get-FreshServiceProblem.md index ed124cd..923cdf3 100644 --- a/docs/en-US/Get-FreshServiceProblem.md +++ b/docs/en-US/Get-FreshServiceProblem.md @@ -14,17 +14,17 @@ Returns a Freshservice Problem. ### default (Default) ``` -Get-FreshServiceProblem [-workspace_id ] [[-per_page] ] [[-page] ] [] +Get-FreshServiceProblem [[-per_page] ] [[-page] ] [] ``` ### id ``` -Get-FreshServiceProblem [-id] [-workspace_id ] [] +Get-FreshServiceProblem [-id] [] ``` ### Form ``` -Get-FreshServiceProblem [-workspace_id ] [-fields] [] +Get-FreshServiceProblem [-fields] [] ``` ## DESCRIPTION @@ -193,21 +193,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -workspace_id -Workspace ID of the Problem. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account. - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: 0 -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -fields View all the built-in and custom fields for Problem. diff --git a/docs/en-US/Get-FreshServiceSolutionCategory.md b/docs/en-US/Get-FreshServiceSolutionCategory.md index 37b9a11..0c8335e 100644 --- a/docs/en-US/Get-FreshServiceSolutionCategory.md +++ b/docs/en-US/Get-FreshServiceSolutionCategory.md @@ -13,8 +13,7 @@ Returns a Freshservice Solution Category. ## SYNTAX ``` -Get-FreshServiceSolutionCategory [[-Id] ] [[-workspace_id] ] [[-per_page] ] - [[-page] ] [] +Get-FreshServiceSolutionCategory [[-Id] ] [[-per_page] ] [[-page] ] [] ``` ## DESCRIPTION @@ -105,25 +104,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -workspace_id -Workspace id filter is applicable only for accounts with Workspaces feature enabled. Providing a Workspace_id will return tickets from a specific workspace. - -If the workspace_id(s) parameter is NOT provided, data will only be returned for the Default\Primary Workspace. -If the workspace_id(s) parameter is provided, data will be returned from the specified Workspaces. -If the workspace_id value is 0, data will be returned from all workspaces (the user has access to), with only global level fields. - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: 2 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -per_page Number of records to return per page during pagination. Maximum of 100 records. @@ -134,7 +114,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 3 +Position: 2 Default value: 100 Accept pipeline input: False Accept wildcard characters: False @@ -149,7 +129,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 4 +Position: 3 Default value: 1 Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/en-US/Get-FreshServiceTicket.md b/docs/en-US/Get-FreshServiceTicket.md index fa8770c..f6538e3 100644 --- a/docs/en-US/Get-FreshServiceTicket.md +++ b/docs/en-US/Get-FreshServiceTicket.md @@ -14,7 +14,7 @@ Returns a Freshservice ticket. ### default (Default) ``` -Get-FreshServiceTicket [[-workspace_id] ] [[-updated_since] ] [[-include_global] ] +Get-FreshServiceTicket [[-workspace_id] ] [[-updated_since] ] [[-include_global] ] [[-predefined_filter] ] [[-requester_id] ] [[-email] ] [[-type] ] [[-per_page] ] [[-page] ] [] ``` @@ -596,7 +596,7 @@ Workspace id is applicable only for accounts with Workspaces feature enabled. The value 1 for workspace_id will return tickets from all workspaces, with only global level fields. ```yaml -Type: Int32[] +Type: Int64 Parameter Sets: default Aliases: diff --git a/docs/en-US/Get-FreshServiceWorkspace.md b/docs/en-US/Get-FreshServiceWorkspace.md new file mode 100644 index 0000000..90f7f27 --- /dev/null +++ b/docs/en-US/Get-FreshServiceWorkspace.md @@ -0,0 +1,139 @@ +--- +external help file: FreshservicePS-help.xml +Module Name: FreshservicePS +online version: +schema: 2.0.0 +--- + +# Get-FreshServiceWorkspace + +## SYNOPSIS +Returns a Freshservice Workspace. + +## SYNTAX + +### default (Default) +``` +Get-FreshServiceWorkspace [-per_page ] [-page ] [] +``` + +### id +``` +Get-FreshServiceWorkspace [-Id] [] +``` + +## DESCRIPTION +Returns a Freshservice Workspace via REST API. + +https://api.freshservice.com/#view_a_workspace + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-FreshServiceWorkspace +``` + +created_at : 7/25/2023 1:25:30 PM +description : +id : 2 +logo : +name : My Team +primary : True +restricted : False +state : 1 +template_name : it +updated_at : 7/25/2023 1:25:30 PM + +created_at : 8/25/2023 8:58:25 PM +description : +id : 3 +logo : https://tenant.attachments.freshservice.com/data/helpdesk/attachments/production/21019153239/original/it.png?Expires=1697659317&Signature=gEfmrtaiQWqSCQFvyPGRezeoz9z~rrtZQ5yoNb3ssaCiFlFLJKGAzqXhftFD8v4vk-WQn6gZXVNtbuj + a0kVOof0p0D2p3ojHX7xNqzVmtWrIqozOcwmohDKz8ZFqZ3oD0pGclO4Qy9KxPGmMW4nJ09aI7eUG7QH76gmxN-C4biqwE2w1QVkg1cjrNXT-3iMPs18ZEb3e1OsfKhHg7fnX2oSlYsZnR0oTLpSFvOUndKdklRMpMq7xQeL4X-VbV~9thZrJ8CEkwyBomhdUxz0jiN4Lpo6~2gR0kqmMvh999Q + H0RFlXb25UOWilCK6VAxHKUpwO29H0qsKLe5GFa5Gz~Q__&Key-Pair-Id=APKAIPHBXWY2KT5RCMPQ +name : IT Custom +primary : False +restricted : False +state : 1 +template_name : it +updated_at : 8/25/2023 8:59:09 PM + +Returns all Freshservice Workspaces. + +### EXAMPLE 2 +``` +Get-FreshServiceWorkspace -id 2 +``` + +created_at : 7/25/2023 1:25:30 PM +description : +id : 2 +logo : +name : My Team +primary : True +restricted : False +state : 1 +template_name : it +updated_at : 7/25/2023 1:25:30 PM + +Return a Freshservice Workspace by Id. + +## PARAMETERS + +### -Id +Unique id of the FreshService Workspace. + +```yaml +Type: Int32 +Parameter Sets: id +Aliases: + +Required: True +Position: 1 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -per_page +Number of records to return per page during pagination. +Maximum of 100 records. + +```yaml +Type: Int32 +Parameter Sets: default +Aliases: + +Required: False +Position: Named +Default value: 100 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -page +The page number to retrieve during pagination. + +```yaml +Type: Int32 +Parameter Sets: default +Aliases: + +Required: False +Position: Named +Default value: 1 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES +This module was developed and tested with Freshservice REST API v2. + +## RELATED LINKS diff --git a/docs/en-US/New-FreshServiceAgent.md b/docs/en-US/New-FreshServiceAgent.md index 1fdc724..6c4b982 100644 --- a/docs/en-US/New-FreshServiceAgent.md +++ b/docs/en-US/New-FreshServiceAgent.md @@ -19,8 +19,7 @@ New-FreshServiceAgent [-first_name] [[-last_name] ] [[-occasion [[-reporting_manager_id] ] [[-address] ] [[-time_zone] ] [[-time_format] ] [[-language] ] [[-location_id] ] [[-background_information] ] [[-scoreboard_level_id] ] [[-member_of] ] [[-observer_of] ] [-roles] - [[-license_type] ] [[-signature] ] [[-custom_fields] ] [[-workspace_ids] ] - [-WhatIf] [-Confirm] [] + [[-signature] ] [[-custom_fields] ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -426,21 +425,6 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -license_type -The type of license, IT or Business. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 21 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -signature Signature of the agent in HTML format. @@ -450,7 +434,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 22 +Position: 21 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False @@ -465,22 +449,7 @@ Parameter Sets: (All) Aliases: CustomFields Required: False -Position: 23 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -workspace_ids -Workspace Ids - -```yaml -Type: Int32[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: 24 +Position: 22 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False diff --git a/docs/en-US/New-FreshServiceAsset.md b/docs/en-US/New-FreshServiceAsset.md index 83fd825..ca61cc9 100644 --- a/docs/en-US/New-FreshServiceAsset.md +++ b/docs/en-US/New-FreshServiceAsset.md @@ -16,8 +16,7 @@ Creates Freshservice asset. New-FreshServiceAsset [-name] [[-description] ] [-asset_type_id] [[-asset_tag] ] [[-impact] ] [[-usage_type] ] [[-user_id] ] [[-location_id] ] [[-department_id] ] [[-agent_id] ] [[-group_id] ] - [[-assigned_on] ] [[-type_fields] ] [[-workspace_id] ] [-WhatIf] [-Confirm] - [] + [[-assigned_on] ] [[-type_fields] ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -102,7 +101,7 @@ Aliases: Required: True Position: 3 Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -117,7 +116,7 @@ Aliases: Required: False Position: 4 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -132,7 +131,7 @@ Aliases: Required: False Position: 5 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -147,7 +146,7 @@ Aliases: Required: False Position: 6 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -162,7 +161,7 @@ Aliases: Required: False Position: 7 Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -177,7 +176,7 @@ Aliases: Required: False Position: 8 Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -192,7 +191,7 @@ Aliases: Required: False Position: 9 Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -207,7 +206,7 @@ Aliases: Required: False Position: 10 Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -222,7 +221,7 @@ Aliases: Required: False Position: 11 Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -237,7 +236,7 @@ Aliases: Required: False Position: 12 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -259,22 +258,7 @@ Aliases: Required: False Position: 13 Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -workspace_id -Workspace ID for the Asset. The attribute is applicable only for accounts with the Workspaces feature enabled. The default value is the ID of the primary workspace of the account. - -```yaml -Type: Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: 14 -Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/docs/en-US/New-FreshServiceChange.md b/docs/en-US/New-FreshServiceChange.md index c9895c6..9727967 100644 --- a/docs/en-US/New-FreshServiceChange.md +++ b/docs/en-US/New-FreshServiceChange.md @@ -13,7 +13,7 @@ Returns a Freshservice change. ## SYNTAX ``` -New-FreshServiceChange [[-workspace_id] ] [[-agent_id] ] [[-description] ] +New-FreshServiceChange [[-workspace_id] ] [[-agent_id] ] [[-description] ] [-requester_id] [[-group_id] ] [[-priority] ] [[-impact] ] [[-status] ] [[-risk] ] [[-change_type] ] [[-approval_status] ] [[-planned_start_date] ] [[-planned_end_date] ] [[-subject] ] [[-department_id] ] [[-category] ] @@ -44,7 +44,7 @@ The attribute is applicable only for accounts with the 'Workspaces' feature enab The default value is the ID of the primary workspace of the account. ```yaml -Type: Int32 +Type: Int64 Parameter Sets: (All) Aliases: diff --git a/docs/en-US/New-FreshServiceConnection.md b/docs/en-US/New-FreshServiceConnection.md index 5eb376c..e690644 100644 --- a/docs/en-US/New-FreshServiceConnection.md +++ b/docs/en-US/New-FreshServiceConnection.md @@ -13,8 +13,8 @@ Creates a new Freshservice connection. ## SYNTAX ``` -New-FreshServiceConnection [[-Name] ] [-ApiKey] [-Tenant] [[-EmailAddress] ] - [[-Environment] ] [-Default] [-WhatIf] [-Confirm] [] +New-FreshServiceConnection [-Name] [-ApiKey] [-Tenant] [[-EmailAddress] ] + [[-Environment] ] [[-Default] ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -57,7 +57,7 @@ Type: String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: 1 Default value: None Accept pipeline input: False @@ -138,12 +138,12 @@ Setting Default to $true will automatically connect to this tenant during module If no default is set, Connect-FreshService will need to be executed after module import to establish variables. ```yaml -Type: SwitchParameter +Type: Boolean Parameter Sets: (All) Aliases: Required: False -Position: Named +Position: 6 Default value: False Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/en-US/New-FreshServiceProblem.md b/docs/en-US/New-FreshServiceProblem.md index 1b3f2de..56dd775 100644 --- a/docs/en-US/New-FreshServiceProblem.md +++ b/docs/en-US/New-FreshServiceProblem.md @@ -13,7 +13,7 @@ Creates a new Freshservice Problem. ## SYNTAX ``` -New-FreshServiceProblem [[-workspace_id] ] [[-agent_id] ] [-requester_id] +New-FreshServiceProblem [[-workspace_id] ] [[-agent_id] ] [-requester_id] [[-group_id] ] [-description] [[-priority] ] [-status] [-impact] [[-known_error] ] [-subject] [-due_by] [[-department_id] ] [[-category] ] [[-sub_category] ] [[-item_category] ] [[-custom_fields] ] @@ -66,7 +66,7 @@ The attribute is applicable only for accounts with the 'Workspaces' feature enab The default value is the ID of the primary workspace of the account. ```yaml -Type: Int32 +Type: Int64 Parameter Sets: (All) Aliases: diff --git a/docs/en-US/New-FreshServiceRequester.md b/docs/en-US/New-FreshServiceRequester.md index 8188b72..72ce550 100644 --- a/docs/en-US/New-FreshServiceRequester.md +++ b/docs/en-US/New-FreshServiceRequester.md @@ -13,14 +13,14 @@ Returns a Freshservice ticket. ## SYNTAX ``` -New-FreshServiceRequester [[-external_id] ] [-first_name] [[-last_name] ] +New-FreshServiceRequester [-external_id] [-first_name] [[-last_name] ] [[-job_title] ] [[-primary_email] ] [[-secondary_emails] ] [[-work_phone_number] ] [[-mobile_phone_number] ] [[-department_ids] ] [[-can_see_all_changes_from_associated_departments] ] - [[-can_see_all_tickets_from_associated_departments] ] [[-reporting_manager_id] ] + [[-can_see_all_tickets_from_associated_departments] ] [[-reporting_manager_id] ] [[-address] ] [[-time_zone] ] [[-time_format] ] [[-language] ] - [[-location_id] ] [[-background_information] ] [[-custom_fields] ] [-WhatIf] - [-Confirm] [] + [[-location_id] ] [[-background_information] ] [[-custom_fields] ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -71,12 +71,12 @@ External Id of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: ExternalId +Aliases: -Required: False +Required: True Position: 1 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -86,12 +86,12 @@ First name of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: FirstName +Aliases: Required: True Position: 2 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -101,12 +101,12 @@ Last name of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: LastName +Aliases: Required: False Position: 3 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -116,12 +116,12 @@ Job title of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: JobTitle +Aliases: Required: False Position: 4 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -131,12 +131,12 @@ Primary email address of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: Email, PrimaryEmail +Aliases: Required: False Position: 5 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -151,7 +151,7 @@ Aliases: Required: False Position: 6 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -161,12 +161,12 @@ Work phone number of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: WorkNumber, WorkPhone, WorkPhoneNumber +Aliases: Required: False Position: 7 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -176,12 +176,12 @@ Mobile phone number of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: MobileNumber, MobilePhone, MobilePhoneNumber +Aliases: Required: False Position: 8 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -191,12 +191,12 @@ Unique IDs of the departments associated with the requester. ```yaml Type: Int64[] Parameter Sets: (All) -Aliases: DepartmentId +Aliases: Required: False Position: 9 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -211,7 +211,7 @@ Aliases: Required: False Position: 10 Default value: False -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -226,7 +226,7 @@ Aliases: Required: False Position: 11 Default value: False -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -234,14 +234,14 @@ Accept wildcard characters: False User ID of the requester's reporting manager. ```yaml -Type: Int64 +Type: Int32 Parameter Sets: (All) -Aliases: ManagerId +Aliases: Required: False Position: 12 Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -256,7 +256,7 @@ Aliases: Required: False Position: 13 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -266,12 +266,12 @@ Time zone of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: TimeZone +Aliases: Required: False Position: 14 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -281,12 +281,12 @@ Time format for the requester.Possible values:12h (12 hour format)24h (24 hour f ```yaml Type: String Parameter Sets: (All) -Aliases: TimeFormat +Aliases: Required: False Position: 15 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -302,7 +302,7 @@ Aliases: Required: False Position: 16 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -310,14 +310,14 @@ Accept wildcard characters: False Unique ID of the location associated with the requester. ```yaml -Type: Int64 +Type: Int32 Parameter Sets: (All) -Aliases: LocationId +Aliases: Required: False Position: 17 Default value: 0 -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -327,12 +327,12 @@ Background information of the requester. ```yaml Type: String Parameter Sets: (All) -Aliases: Background +Aliases: Required: False Position: 18 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -340,14 +340,14 @@ Accept wildcard characters: False Key-value pair containing the names and values of the (custom) requester fields. ```yaml -Type: Hashtable +Type: Object Parameter Sets: (All) Aliases: Required: False Position: 19 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/docs/en-US/Set-FreshServiceRequester.md b/docs/en-US/Set-FreshServiceRequester.md index 7f8187d..ed6f851 100644 --- a/docs/en-US/Set-FreshServiceRequester.md +++ b/docs/en-US/Set-FreshServiceRequester.md @@ -14,11 +14,11 @@ Updates a Freshservice Requester. ### default (Default) ``` -Set-FreshServiceRequester -id [-external_id ] [-first_name ] [-last_name ] - [-job_title ] [-primary_email ] [-secondary_emails ] [-work_phone_number ] +Set-FreshServiceRequester -id [-first_name ] [-last_name ] [-job_title ] + [-primary_email ] [-secondary_emails ] [-work_phone_number ] [-mobile_phone_number ] [-department_ids ] - [-can_see_all_tickets_from_associated_departments ] [-reporting_manager_id ] - [-address ] [-time_zone ] [-time_format ] [-language ] [-location_id ] + [-can_see_all_tickets_from_associated_departments ] [-reporting_manager_id ] + [-address ] [-time_zone ] [-time_format ] [-language ] [-location_id ] [-background_information ] [-custom_fields ] [-WhatIf] [-Confirm] [] ``` @@ -170,28 +170,13 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -external_id -External Id of the requester. - -```yaml -Type: String -Parameter Sets: default -Aliases: ExternalId - -Required: False -Position: Named -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - ### -first_name First name of the requester. ```yaml Type: String Parameter Sets: default -Aliases: FirstName +Aliases: Required: False Position: Named @@ -206,7 +191,7 @@ Last name of the requester. ```yaml Type: String Parameter Sets: default -Aliases: LastName +Aliases: Required: False Position: Named @@ -221,7 +206,7 @@ Job title of the requester. ```yaml Type: String Parameter Sets: default -Aliases: JobTitle +Aliases: Required: False Position: Named @@ -236,7 +221,7 @@ Primary email address of the requester. ```yaml Type: String Parameter Sets: default -Aliases: Email, PrimaryEmail +Aliases: Required: False Position: Named @@ -266,7 +251,7 @@ Work phone number of the requester. ```yaml Type: String Parameter Sets: default -Aliases: WorkNumber, WorkPhone, WorkPhoneNumber +Aliases: Required: False Position: Named @@ -281,7 +266,7 @@ Mobile phone number of the requester. ```yaml Type: String Parameter Sets: default -Aliases: MobileNumber, MobilePhone, MobilePhoneNumber +Aliases: Required: False Position: Named @@ -296,7 +281,7 @@ Unique IDs of the departments associated with the requester ```yaml Type: Int64[] Parameter Sets: default -Aliases: DepartmentId +Aliases: Required: False Position: Named @@ -328,9 +313,9 @@ Accept wildcard characters: False User ID of the requester's reporting manager. ```yaml -Type: Int64 +Type: Int32 Parameter Sets: default -Aliases: ManagerId +Aliases: Required: False Position: Named @@ -361,7 +346,7 @@ Read more here. ```yaml Type: String Parameter Sets: default -Aliases: TimeZone +Aliases: Required: False Position: Named @@ -376,7 +361,7 @@ Time format for the requester.Possible values:12h (12 hour format)24h (24 hour f ```yaml Type: String Parameter Sets: default -Aliases: TimeFormat +Aliases: Required: False Position: Named @@ -406,9 +391,9 @@ Accept wildcard characters: False Unique ID of the location associated with the requester. ```yaml -Type: Int64 +Type: Int32 Parameter Sets: default -Aliases: LocationId +Aliases: Required: False Position: Named @@ -423,7 +408,7 @@ Background information of the requester. ```yaml Type: String Parameter Sets: default -Aliases: Background +Aliases: Required: False Position: Named diff --git a/tests/Agent_Groups.Tests.ps1 b/tests/Agent_Groups.Tests.ps1 index df7e243..21721b5 100644 --- a/tests/Agent_Groups.Tests.ps1 +++ b/tests/Agent_Groups.Tests.ps1 @@ -35,13 +35,10 @@ Describe "Agent Groups" { 'unassigned_for', 'business_hours_id', 'auto_ticket_assign', - 'restricted', - 'approval_required', # 'ocs_schedule_id', - 'agent_ids', + 'workspace_id', 'members', - 'observers', - 'leaders') + 'observers') It "Object schema Contains property <_>" -ForEach $properties -Tag "Agent Group" { $newFSAgentGroup.PSObject.Properties.Name | Should -Contain $_ diff --git a/tests/Agents.Tests.ps1 b/tests/Agents.Tests.ps1 index 855617b..8347569 100644 --- a/tests/Agents.Tests.ps1 +++ b/tests/Agents.Tests.ps1 @@ -9,14 +9,15 @@ Describe "Agents" { Where-Object -FilterScript {$_.name -eq 'SD Agent'} | Select-Object -ExpandProperty id - $groups = Get-FreshServiceAgentGroup | - Where-Object -FilterScript {$_.name -like '*Incident Team'} | - Select-Object -ExpandProperty Id + # $groups = Get-FreshServiceAgentGroup | + # Where-Object -FilterScript {$_.name -like '*Incident Team'} | + # Select-Object -ExpandProperty Id $newFreshServiceAgentRoleConfigSplat = @{ role_id = $role_id - assignment_scope = 'specified_groups' - groups = $groups + assignment_scope = 'entire_helpdesk' + # groups = $groups + workspace_id = 3 } $newAgtRole = New-FreshServiceAgentRoleConfig @newFreshServiceAgentRoleConfigSplat @@ -29,6 +30,7 @@ Describe "Agents" { background_information = 'Awesome helpdesk training' roles = $newAgtRole time_zone = 'Eastern Time (US & Canada)' + workspace_ids = 3 scoreboard_level_id = 3 } @@ -101,10 +103,10 @@ Describe "Agents" { } Context "Set" { - It "Set-FreshServiceAgent should change the -scoreboard_level_id of agent to 3" -Tag "Agent" { - Set-FreshServiceAgent -id $newFSAgent.Id -scoreboard_level_id 3 | - Select-Object -ExpandProperty scoreboard_level_id | - Should -Be 3 + It "Set-FreshServiceAgent should change the -mobile_phone_number of agent to 1234" -Tag "Agent" { + Set-FreshServiceAgent -id $newFSAgent.Id -mobile_phone_number 1234 | + Select-Object -ExpandProperty mobile_phone_number | + Should -Be 1234 } } diff --git a/tests/Workspaces.Tests.ps1 b/tests/Workspaces.Tests.ps1 new file mode 100644 index 0000000..cd00042 --- /dev/null +++ b/tests/Workspaces.Tests.ps1 @@ -0,0 +1,23 @@ + +Describe "Workspaces" { + InModuleScope FreshservicePS { + BeforeDiscovery { + Connect-Freshservice -Name ItsFine_Prod -NoBanner + $Script:workspace_test_guid = New-Guid + } + Context "View and List" { + It "Get-FreshServiceWorkspace should return data" -Tag "Workspaces" { + $Script:bizHours = Get-FreshServiceWorkspace + $bizHours | Should -Not -BeNullOrEmpty + } + It "Get-FreshServiceWorkspace -id should return the test Workspaces" -Tag "Workspaces" { + $bizHour = Get-FreshServiceWorkspace -id $bizHours[0].id + $bizHour | Should -Not -BeNullOrEmpty + } + It "Get-FreshServiceWorkspace -id should throw on bad id" -Tag "Workspaces" { + {Get-FreshServiceWorkspace -id $workspace_test_guid} | + Should -Throw + } + } + } +} diff --git a/todo.md b/todo.md index 2bd6053..439eadb 100644 --- a/todo.md +++ b/todo.md @@ -4,3 +4,5 @@ - [ ] Get-FreshserviceAsset -Filter does not support paging with per_page. Assets returned with rel_link for paging, but default page size of 30? - [ ] Add Search Service Items functionality +- [ ] Get-FreshserviceCustomObjectRecord -Filter does not support paging with link or incrementing page +- [ ] Wrapper functions for Attachments. Download capabilities.