Skip to content

Commit

Permalink
So many changes... Too long for short message. RC5
Browse files Browse the repository at this point in the history
  • Loading branch information
homotechsual committed Jul 28, 2024
1 parent 0eb5e6c commit ddb7903
Show file tree
Hide file tree
Showing 251 changed files with 12,107 additions and 10,143 deletions.
35 changes: 18 additions & 17 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"cSpell.words": [
"Analyzer",
"commandlet",
"commandlets",
"Gavsto",
"Mikey",
"Organisation",
"Organisations",
"organisation",
"hashtable",
"pluralised",
"Homotechsual",
"pipelining",
"O'Toole"
],
"cSpell.language": "en-GB",
{
"cSpell.words": [
"Analyzer",
"commandlet",
"commandlets",
"Gavsto",
"hashtable",
"Homotechsual",
"Mikey",
"O'Toole",
"organisation",
"Organisation",
"Organisations",
"pipelining",
"pluralised",
"Whitelock"
],
"cSpell.language": "en-GB"
}
46 changes: 45 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,50 @@

Please note that backwards compatibility breaks are prefixed with `{"BC"}` (short for Breaking Change).

## 2024-07-26 - Version 2.0.0-RC5

* Add new commandlets:
* `Get-NinjaOneAutomations`
* `Get-NinjaOneNotificationChannels`
* `Get-NinjaOneCustomFieldsPolicyConditions`
* `Get-NinjaOneCustomFieldsPolicyCondition`
* `Get-NinjaOneWindowsEventConditions`
* `Get-NinjaOneWindowsEventCondition`
* `Get-NinjaOneTicketingUsers`
* `Get-NinjaOneKnowledgeBaseArticle`
* `Get-NinjaOneOrganisationKnowledgeBaseArticles`
* `Get-NinjaOneGlobalKnowledgeBaseArticles`
* `Get-NinjaOneKnowledgeBaseFolders`
* `Get-NinjaOneRelatedItemAttachment`
* `Get-NinjaOneRelatedItemAttachmentSignedURLs`
* `Get-NinjaOneCustomFieldSignedURLs`
* `Get-NinjaOneIntegrityCheckJobs`
* `New-NinjaOneCustomFieldsPolicyCondition`
* `New-NinjaOneWindowsEventPolicyCondition`
* `New-NinjaOneAttachmentRelation`
* `New-NinjaOneEntityRelation`
* `New-NinjaOneEntityRelations`
* `New-NinjaOneSecureRelation`
* `New-NinjaOneIntegrityCheckJob`
* `Remove-NinjaOneRelatedItem`
* `Remove-NinjaOneRelatedItems`
* `Remove-NinjaOneOrganisationDocument`
* `Remove-NinjaOnePolicyCondition`
* Remove deprecated commandlet:
* `Get-NinjaOneAttachment`
* Fix bug in `Set-NinjaOneOrganisationDocument`.
* Fix auth endpoints in `Connect-NinjaOne` to use the `ws/oauth` paths.
* Apply a round of fixes to `Get-NinjaOneSecrets`.
* Remove early exits for endpoints which don't support `client_credentials` authentication as NinjaOne has added a native descriptive error for this issue.
* Add `of` / `organisationFilter` parameter to the `Get-NinjaOneOrganisations` commandlet.
* Fix handling of `scopes` parameter on `Get-NinjaOneDeviceCustomFields`.
* Reformat all code to use tabs instead of spaces - largely driven by accessibility benefits of using tabs over spaces. I was, for many years, a "spaces > tabs" guy. Until I was pointed at [this article by Alexander Sandberg](https://alexandersandberg.com/articles/default-to-tabs-instead-of-spaces-for-an-accessible-first-environment/). It managed to convince me that the accessibility benefits of tabs outweighed my attachment to spaces. Our workspace file uses whatever tab width you have set in VSCode you can change this using `editor.tabSize` in your settings.
* Add many new aliases to try and stay as close to Ninja's "entity" naming as we can. For example, `Get-NinjaOneRoles` now has the alias `Get-NinjaOneDeviceRoles`.
* Add many new wrapper commands to provide commandlets named consistently with Ninja's entity naming where we've combined endpoints into a single commandlet for expediency.
* Remove entity exists validation from all commandlets, we will no longer test if a device exists before you try to get it's disks. This reduces the volume of calls we make and you will now see Ninja's 404 response being returned when the given device does not exist. This has been done to drastically reduce the number of API calls we were making.
* Reorganise source folder to match Ninja's API groupings.
* Remove the `-usageLimit` parameter from `New-NinjaOneInstaller`.

## 2024-02-18 - Version 2.0.0-RC4

* Change secret vault to use the SecretManagement module.
Expand Down Expand Up @@ -207,7 +251,7 @@ Please note that backwards compatibility breaks are prefixed with `{"BC"}` (shor

## 2022-10-28 - Version 1.6.0

* Fix multiple parameters which were incorrect set as mandatory
* Fix multiple parameters which were incorrectly set as mandatory

## 2022-10-26 - Version 1.5.0

Expand Down
128 changes: 64 additions & 64 deletions NinjaOne.code-workspace
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"editor.indentSize": "tabSize",
"editor.tabSize": 1,
"editor.detectIndentation": true,
"editor.autoIndent": "advanced",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"azure-pipelines.customSchemaFile": ".\\DevOps\\azurepipelines.schema.json",
"powershell.pester.useLegacyCodeLens": false,
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.useConstantStrings": true,
"powershell.codeFormatting.alignPropertyValuePairs": false,
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
"powershell.codeFormatting.autoCorrectAliases": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.useCorrectCasing": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.trimWhitespaceAroundPipe": false,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceBetweenParameters": false,
"powershell.codeFormatting.whitespaceInsideBrace": true,
"cSpell.words": [
"hashtable",
"homotechsual",
"Homotechsual",
"organisation",
"Organisation",
"pluralised"
],
"intelephense.format.braces": "k&r"
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell Attach to Host Process",
"type": "PowerShell",
"request": "attach",
"runspaceId": 1
},
{
"name": "PowerShell Attach Interactive Session Runspace",
"type": "PowerShell",
"request": "attach"
},
{
"name": "PowerShell: Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "${file}",
"cwd": "${file}"
}
]
}
{
"folders": [
{
"path": "."
}
],
"settings": {
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.autoIndent": "full",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"azure-pipelines.customSchemaFile": ".\\DevOps\\azurepipelines.schema.json",
"powershell.pester.useLegacyCodeLens": false,
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.useConstantStrings": true,
"powershell.codeFormatting.alignPropertyValuePairs": false,
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
"powershell.codeFormatting.autoCorrectAliases": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.useCorrectCasing": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.trimWhitespaceAroundPipe": false,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceBetweenParameters": false,
"powershell.codeFormatting.whitespaceInsideBrace": true,
"cSpell.words": [
"hashtable",
"homotechsual",
"Homotechsual",
"organisation",
"Organisation",
"pluralised",
"Whitelock"
],
"intelephense.format.braces": "k&r"
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell Attach to Host Process",
"type": "PowerShell",
"request": "attach",
"runspaceId": 1
},
{
"name": "PowerShell Attach Interactive Session Runspace",
"type": "PowerShell",
"request": "attach"
},
{
"name": "PowerShell: Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "${file}",
"cwd": "${file}"
}
]
}
}
Loading

0 comments on commit ddb7903

Please sign in to comment.