sfdx-hardis 5.10.2-beta202412231619.0 → 5.10.2-beta202412280136.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/defaults/mkdocs/docs/stylesheets/extra.css +25 -0
  2. package/defaults/mkdocs/mkdocs.yml +4 -2
  3. package/defaults/mkdocs-project-doc/docs/javascripts/gtag.js +27 -0
  4. package/defaults/mkdocs-project-doc/docs/javascripts/tables.js +6 -0
  5. package/defaults/mkdocs-project-doc/docs/overrides/main.html +4 -0
  6. package/defaults/mkdocs-project-doc/docs/stylesheets/extra.css +33 -0
  7. package/defaults/mkdocs-project-doc/mkdocs.yml +46 -0
  8. package/lib/commands/hardis/doc/flow2markdown.js +6 -1
  9. package/lib/commands/hardis/doc/flow2markdown.js.map +1 -1
  10. package/lib/commands/hardis/doc/project2markdown.d.ts +6 -2
  11. package/lib/commands/hardis/doc/project2markdown.js +139 -42
  12. package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
  13. package/lib/common/metadata-utils/index.js +3 -2
  14. package/lib/common/metadata-utils/index.js.map +1 -1
  15. package/lib/common/utils/flowVisualiser/flowParser.d.ts +0 -7
  16. package/lib/common/utils/flowVisualiser/flowParser.js +150 -167
  17. package/lib/common/utils/flowVisualiser/flowParser.js.map +1 -1
  18. package/lib/common/utils/flowVisualiser/nodeFormatUtils.d.ts +14 -0
  19. package/lib/common/utils/flowVisualiser/nodeFormatUtils.js +339 -0
  20. package/lib/common/utils/flowVisualiser/nodeFormatUtils.js.map +1 -0
  21. package/lib/common/utils/flowVisualiser/renderConfig.d.ts +9 -3
  22. package/lib/common/utils/flowVisualiser/renderConfig.js +62 -56
  23. package/lib/common/utils/flowVisualiser/renderConfig.js.map +1 -1
  24. package/lib/common/utils/mermaidUtils.d.ts +3 -1
  25. package/lib/common/utils/mermaidUtils.js +124 -68
  26. package/lib/common/utils/mermaidUtils.js.map +1 -1
  27. package/oclif.lock +95 -3
  28. package/oclif.manifest.json +366 -358
  29. package/package.json +2 -1
@@ -349,6 +349,13 @@
349
349
  "multiple": false,
350
350
  "type": "option"
351
351
  },
352
+ "with-history": {
353
+ "char": "d",
354
+ "description": "Activate debug mode (more logs)",
355
+ "name": "with-history",
356
+ "allowNo": false,
357
+ "type": "boolean"
358
+ },
352
359
  "debug": {
353
360
  "char": "d",
354
361
  "description": "Activate debug mode (more logs)",
@@ -490,7 +497,7 @@
490
497
  "hardis:doc:project2markdown": {
491
498
  "aliases": [],
492
499
  "args": {},
493
- "description": "Generates a markdown documentation from a SFDX project\n\n- Package.xml files\n- Source Packages\n- sfdx-hardis configuration\n- Installed packages\n\nCan work on any sfdx project, no need for it to be a sfdx-hardis flavored one.\n\nGenerates markdown files will be written in **docs** folder (except README.md where a link to doc index is added)\n\nTo generate Flow documentations, this command requires @mermaid-js/mermaid-cli\n\n- Run `npm install @mermaid-js/mermaid-cli --global` if puppeteer works in your environment\n- It can also be run as a docker image\n\nBoth modes will be tried by default, but you can also force one of them by defining environment variable `MERMAID_MODES=docker` or `MERMAID_MODES=cli`\n\n_sfdx-hardis docker image is alpine-based and does not succeed to run mermaid/puppeteer: if you can help, please submit a PR !_\n\n![Screenshot flow doc](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-flow-doc.jpg)\n\n![Screenshot project documentation](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-project-doc.jpg)\n\n![Screenshot project documentation](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-project-doc-2.jpg)\n",
500
+ "description": "Generates a markdown documentation from a SFDX project\n\n- Package.xml files\n- Source Packages\n- sfdx-hardis configuration\n- Installed packages\n\nCan work on any sfdx project, no need for it to be a sfdx-hardis flavored one.\n\nGenerates markdown files will be written in **docs** folder (except README.md where a link to doc index is added)\n\nTo generate Flow documentations, this command requires @mermaid-js/mermaid-cli\n\n- Run `npm install @mermaid-js/mermaid-cli --global` if puppeteer works in your environment\n- It can also be run as a docker image\n\nBoth modes will be tried by default, but you can also force one of them by defining environment variable `MERMAID_MODES=docker` or `MERMAID_MODES=cli`\n\n_sfdx-hardis docker image is alpine-based and does not succeed to run mermaid/puppeteer: if you can help, please submit a PR !_\n\n![Screenshot flow doc](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-flow-doc.jpg)\n\n![Screenshot project documentation](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-project-doc.jpg)\n\n![Screenshot project documentation](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-project-doc-2.jpg)\n\n## Doc HTML Pages\n\nTo read the documentation as HTML pages, run the following code (you need python on your computer)\n\n```python\npip install mkdocs-material mdx_truly_sane_lists\nmkdocs serve\n```\n\nTo just generate HTML pages that you can host anywhere, run `mkdocs build`\n\n",
494
501
  "examples": [
495
502
  "$ sf hardis:doc:project2markdown"
496
503
  ],
@@ -546,6 +553,7 @@
546
553
  "strict": true,
547
554
  "enableJsonFlag": true,
548
555
  "title": "SFDX Project to Markdown",
556
+ "htmlInstructions": "## Doc HTML Pages\n\nTo read the documentation as HTML pages, run the following code (you need python on your computer)\n\n```python\npip install mkdocs-material mdx_truly_sane_lists\nmkdocs serve\n```\n\nTo just generate HTML pages that you can host anywhere, run `mkdocs build`\n",
549
557
  "requiresProject": true,
550
558
  "isESM": true,
551
559
  "relativePath": [
@@ -4876,12 +4884,15 @@
4876
4884
  "import:data:org:hardis"
4877
4885
  ]
4878
4886
  },
4879
- "hardis:org:files:export": {
4887
+ "hardis:org:diagnose:audittrail": {
4880
4888
  "aliases": [],
4881
4889
  "args": {},
4882
- "description": "Export file attachments from a Salesforce org\n\nSee article below\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
4890
+ "description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\n\nRegular setup actions performed in major orgs are filtered.\n\n- \"\"\n - createScratchOrg\n - changedsenderemail\n - deleteScratchOrg\n - loginasgrantedtopartnerbt\n- Certificate and Key Management\n - insertCertificate\n- Custom App Licenses\n - addeduserpackagelicense\n - granteduserpackagelicense\n- Customer Portal\n - createdcustomersuccessuser\n- Currency\n - updateddatedexchrate\n- Data Management\n - queueMembership\n- Email Administration\n - dkimRotationPreparationSuccessful\n - dkimRotationSuccessful\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\n - deactivateduser\n - deleteAuthenticatorPairing\n - deleteTwoFactorInfo2\n - deleteTwoFactorTempCode\n - frozeuser\n - insertAuthenticatorPairing\n - insertTwoFactorInfo2\n - insertTwoFactorTempCode\n - lightningloginenroll\n - PermSetAssign\n - PermSetGroupAssign\n - PermSetGroupUnassign\n - PermSetLicenseAssign\n - PermSetUnassign\n - PermSetLicenseUnassign\n - registeredUserPhoneNumber\n - resetpassword\n - suOrgAdminLogin\n - suOrgAdminLogout\n - unfrozeuser\n - useremailchangesent\n- Mobile Administration\n - assigneduserstomobileconfig\n- Reporting Snapshots\n - createdReportJob\n - deletedReportJob\n- Sandboxes\n - DeleteSandbox\n\nBy default, deployment user defined in .sfdx-hardis.yml targetUsername property will be excluded.\n\nYou can define additional users to exclude in .sfdx-hardis.yml **monitoringExcludeUsernames** property.\n\nYou can also add more sections / actions considered as not suspect using property **monitoringAllowedSectionsActions**\n\nExample:\n\n```yaml\nmonitoringExcludeUsernames:\n - deploymentuser@cloudity.com\n - marketingcloud@cloudity.com\n - integration-user@cloudity.com\n\nmonitoringAllowedSectionsActions:\n \"Some section\": [] // Will ignore all actions from such section\n \"Some other section\": [\"actionType1\",\"actionType2\",\"actionType3\"] // Will ignore only those 3 actions from section \"Some other section\". Other actions in the same section will be considered as suspect.\n```\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-suspect-audit-trail/) and can output Grafana, Slack and MsTeams Notifications.\n",
4883
4891
  "examples": [
4884
- "$ sf hardis:org:files:export"
4892
+ "$ sf hardis:org:diagnose:audittrail",
4893
+ "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
4894
+ "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
4895
+ "$ sf hardis:org:diagnose:audittrail --lastndays 5"
4885
4896
  ],
4886
4897
  "flags": {
4887
4898
  "json": {
@@ -4899,37 +4910,26 @@
4899
4910
  "multiple": false,
4900
4911
  "type": "option"
4901
4912
  },
4902
- "path": {
4903
- "char": "p",
4904
- "description": "Path to the file export project",
4905
- "name": "path",
4906
- "hasDynamicHelp": false,
4907
- "multiple": false,
4908
- "type": "option"
4909
- },
4910
- "chunksize": {
4911
- "char": "c",
4912
- "description": "Number of records to add in a chunk before it is processed",
4913
- "name": "chunksize",
4914
- "default": 1000,
4913
+ "excludeusers": {
4914
+ "char": "e",
4915
+ "description": "Comma-separated list of usernames to exclude",
4916
+ "name": "excludeusers",
4915
4917
  "hasDynamicHelp": false,
4916
4918
  "multiple": false,
4917
4919
  "type": "option"
4918
4920
  },
4919
- "polltimeout": {
4921
+ "lastndays": {
4920
4922
  "char": "t",
4921
- "description": "Timeout in MS for Bulk API calls",
4922
- "name": "polltimeout",
4923
- "default": 300000,
4923
+ "description": "Number of days to extract from today (included)",
4924
+ "name": "lastndays",
4924
4925
  "hasDynamicHelp": false,
4925
4926
  "multiple": false,
4926
4927
  "type": "option"
4927
4928
  },
4928
- "startchunknumber": {
4929
- "char": "s",
4930
- "description": "Chunk number to start from",
4931
- "name": "startchunknumber",
4932
- "default": 0,
4929
+ "outputfile": {
4930
+ "char": "f",
4931
+ "description": "Force the path and name of output report file. Must end with .csv",
4932
+ "name": "outputfile",
4933
4933
  "hasDynamicHelp": false,
4934
4934
  "multiple": false,
4935
4935
  "type": "option"
@@ -4972,13 +4972,13 @@
4972
4972
  },
4973
4973
  "hasDynamicHelp": true,
4974
4974
  "hiddenAliases": [],
4975
- "id": "hardis:org:files:export",
4975
+ "id": "hardis:org:diagnose:audittrail",
4976
4976
  "pluginAlias": "sfdx-hardis",
4977
4977
  "pluginName": "sfdx-hardis",
4978
4978
  "pluginType": "core",
4979
4979
  "strict": true,
4980
4980
  "enableJsonFlag": true,
4981
- "title": "Export files",
4981
+ "title": "Diagnose content of Setup Audit Trail",
4982
4982
  "requiresProject": false,
4983
4983
  "isESM": true,
4984
4984
  "relativePath": [
@@ -4986,43 +4986,43 @@
4986
4986
  "commands",
4987
4987
  "hardis",
4988
4988
  "org",
4989
- "files",
4990
- "export.js"
4989
+ "diagnose",
4990
+ "audittrail.js"
4991
4991
  ],
4992
4992
  "aliasPermutations": [],
4993
4993
  "permutations": [
4994
- "hardis:org:files:export",
4995
- "org:hardis:files:export",
4996
- "org:files:hardis:export",
4997
- "org:files:export:hardis",
4998
- "hardis:files:org:export",
4999
- "files:hardis:org:export",
5000
- "files:org:hardis:export",
5001
- "files:org:export:hardis",
5002
- "hardis:files:export:org",
5003
- "files:hardis:export:org",
5004
- "files:export:hardis:org",
5005
- "files:export:org:hardis",
5006
- "hardis:org:export:files",
5007
- "org:hardis:export:files",
5008
- "org:export:hardis:files",
5009
- "org:export:files:hardis",
5010
- "hardis:export:org:files",
5011
- "export:hardis:org:files",
5012
- "export:org:hardis:files",
5013
- "export:org:files:hardis",
5014
- "hardis:export:files:org",
5015
- "export:hardis:files:org",
5016
- "export:files:hardis:org",
5017
- "export:files:org:hardis"
4994
+ "hardis:org:diagnose:audittrail",
4995
+ "org:hardis:diagnose:audittrail",
4996
+ "org:diagnose:hardis:audittrail",
4997
+ "org:diagnose:audittrail:hardis",
4998
+ "hardis:diagnose:org:audittrail",
4999
+ "diagnose:hardis:org:audittrail",
5000
+ "diagnose:org:hardis:audittrail",
5001
+ "diagnose:org:audittrail:hardis",
5002
+ "hardis:diagnose:audittrail:org",
5003
+ "diagnose:hardis:audittrail:org",
5004
+ "diagnose:audittrail:hardis:org",
5005
+ "diagnose:audittrail:org:hardis",
5006
+ "hardis:org:audittrail:diagnose",
5007
+ "org:hardis:audittrail:diagnose",
5008
+ "org:audittrail:hardis:diagnose",
5009
+ "org:audittrail:diagnose:hardis",
5010
+ "hardis:audittrail:org:diagnose",
5011
+ "audittrail:hardis:org:diagnose",
5012
+ "audittrail:org:hardis:diagnose",
5013
+ "audittrail:org:diagnose:hardis",
5014
+ "hardis:audittrail:diagnose:org",
5015
+ "audittrail:hardis:diagnose:org",
5016
+ "audittrail:diagnose:hardis:org",
5017
+ "audittrail:diagnose:org:hardis"
5018
5018
  ]
5019
5019
  },
5020
- "hardis:org:files:import": {
5020
+ "hardis:org:diagnose:instanceupgrade": {
5021
5021
  "aliases": [],
5022
5022
  "args": {},
5023
- "description": "Import file attachments into a Salesforce org\n\nSee article below to see how to Export them.\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
5023
+ "description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
5024
5024
  "examples": [
5025
- "$ sf hardis:org:files:import"
5025
+ "$ sf hardis:org:diagnose:instanceupgrade"
5026
5026
  ],
5027
5027
  "flags": {
5028
5028
  "json": {
@@ -5040,21 +5040,6 @@
5040
5040
  "multiple": false,
5041
5041
  "type": "option"
5042
5042
  },
5043
- "path": {
5044
- "char": "p",
5045
- "description": "Path to the file export project",
5046
- "name": "path",
5047
- "hasDynamicHelp": false,
5048
- "multiple": false,
5049
- "type": "option"
5050
- },
5051
- "overwrite": {
5052
- "char": "f",
5053
- "description": "Override existing files (doubles the number of API calls)",
5054
- "name": "overwrite",
5055
- "allowNo": false,
5056
- "type": "boolean"
5057
- },
5058
5043
  "debug": {
5059
5044
  "char": "d",
5060
5045
  "description": "Activate debug mode (more logs)",
@@ -5093,13 +5078,13 @@
5093
5078
  },
5094
5079
  "hasDynamicHelp": true,
5095
5080
  "hiddenAliases": [],
5096
- "id": "hardis:org:files:import",
5081
+ "id": "hardis:org:diagnose:instanceupgrade",
5097
5082
  "pluginAlias": "sfdx-hardis",
5098
5083
  "pluginName": "sfdx-hardis",
5099
5084
  "pluginType": "core",
5100
5085
  "strict": true,
5101
5086
  "enableJsonFlag": true,
5102
- "title": "Import files",
5087
+ "title": "Get Instance Upgrade date",
5103
5088
  "requiresProject": false,
5104
5089
  "isESM": true,
5105
5090
  "relativePath": [
@@ -5107,46 +5092,46 @@
5107
5092
  "commands",
5108
5093
  "hardis",
5109
5094
  "org",
5110
- "files",
5111
- "import.js"
5095
+ "diagnose",
5096
+ "instanceupgrade.js"
5112
5097
  ],
5113
5098
  "aliasPermutations": [],
5114
5099
  "permutations": [
5115
- "hardis:org:files:import",
5116
- "org:hardis:files:import",
5117
- "org:files:hardis:import",
5118
- "org:files:import:hardis",
5119
- "hardis:files:org:import",
5120
- "files:hardis:org:import",
5121
- "files:org:hardis:import",
5122
- "files:org:import:hardis",
5123
- "hardis:files:import:org",
5124
- "files:hardis:import:org",
5125
- "files:import:hardis:org",
5126
- "files:import:org:hardis",
5127
- "hardis:org:import:files",
5128
- "org:hardis:import:files",
5129
- "org:import:hardis:files",
5130
- "org:import:files:hardis",
5131
- "hardis:import:org:files",
5132
- "import:hardis:org:files",
5133
- "import:org:hardis:files",
5134
- "import:org:files:hardis",
5135
- "hardis:import:files:org",
5136
- "import:hardis:files:org",
5137
- "import:files:hardis:org",
5138
- "import:files:org:hardis"
5100
+ "hardis:org:diagnose:instanceupgrade",
5101
+ "org:hardis:diagnose:instanceupgrade",
5102
+ "org:diagnose:hardis:instanceupgrade",
5103
+ "org:diagnose:instanceupgrade:hardis",
5104
+ "hardis:diagnose:org:instanceupgrade",
5105
+ "diagnose:hardis:org:instanceupgrade",
5106
+ "diagnose:org:hardis:instanceupgrade",
5107
+ "diagnose:org:instanceupgrade:hardis",
5108
+ "hardis:diagnose:instanceupgrade:org",
5109
+ "diagnose:hardis:instanceupgrade:org",
5110
+ "diagnose:instanceupgrade:hardis:org",
5111
+ "diagnose:instanceupgrade:org:hardis",
5112
+ "hardis:org:instanceupgrade:diagnose",
5113
+ "org:hardis:instanceupgrade:diagnose",
5114
+ "org:instanceupgrade:hardis:diagnose",
5115
+ "org:instanceupgrade:diagnose:hardis",
5116
+ "hardis:instanceupgrade:org:diagnose",
5117
+ "instanceupgrade:hardis:org:diagnose",
5118
+ "instanceupgrade:org:hardis:diagnose",
5119
+ "instanceupgrade:org:diagnose:hardis",
5120
+ "hardis:instanceupgrade:diagnose:org",
5121
+ "instanceupgrade:hardis:diagnose:org",
5122
+ "instanceupgrade:diagnose:hardis:org",
5123
+ "instanceupgrade:diagnose:org:hardis"
5139
5124
  ]
5140
5125
  },
5141
- "hardis:org:diagnose:audittrail": {
5126
+ "hardis:org:diagnose:legacyapi": {
5142
5127
  "aliases": [],
5143
5128
  "args": {},
5144
- "description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\n\nRegular setup actions performed in major orgs are filtered.\n\n- \"\"\n - createScratchOrg\n - changedsenderemail\n - deleteScratchOrg\n - loginasgrantedtopartnerbt\n- Certificate and Key Management\n - insertCertificate\n- Custom App Licenses\n - addeduserpackagelicense\n - granteduserpackagelicense\n- Customer Portal\n - createdcustomersuccessuser\n- Currency\n - updateddatedexchrate\n- Data Management\n - queueMembership\n- Email Administration\n - dkimRotationPreparationSuccessful\n - dkimRotationSuccessful\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\n - deactivateduser\n - deleteAuthenticatorPairing\n - deleteTwoFactorInfo2\n - deleteTwoFactorTempCode\n - frozeuser\n - insertAuthenticatorPairing\n - insertTwoFactorInfo2\n - insertTwoFactorTempCode\n - lightningloginenroll\n - PermSetAssign\n - PermSetGroupAssign\n - PermSetGroupUnassign\n - PermSetLicenseAssign\n - PermSetUnassign\n - PermSetLicenseUnassign\n - registeredUserPhoneNumber\n - resetpassword\n - suOrgAdminLogin\n - suOrgAdminLogout\n - unfrozeuser\n - useremailchangesent\n- Mobile Administration\n - assigneduserstomobileconfig\n- Reporting Snapshots\n - createdReportJob\n - deletedReportJob\n- Sandboxes\n - DeleteSandbox\n\nBy default, deployment user defined in .sfdx-hardis.yml targetUsername property will be excluded.\n\nYou can define additional users to exclude in .sfdx-hardis.yml **monitoringExcludeUsernames** property.\n\nYou can also add more sections / actions considered as not suspect using property **monitoringAllowedSectionsActions**\n\nExample:\n\n```yaml\nmonitoringExcludeUsernames:\n - deploymentuser@cloudity.com\n - marketingcloud@cloudity.com\n - integration-user@cloudity.com\n\nmonitoringAllowedSectionsActions:\n \"Some section\": [] // Will ignore all actions from such section\n \"Some other section\": [\"actionType1\",\"actionType2\",\"actionType3\"] // Will ignore only those 3 actions from section \"Some other section\". Other actions in the same section will be considered as suspect.\n```\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-suspect-audit-trail/) and can output Grafana, Slack and MsTeams Notifications.\n",
5129
+ "description": "Checks if an org uses retired or someday retired API version\n\n\nSee article below\n\n[![Handle Salesforce API versions Deprecation like a pro](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-deprecated-api.jpg)](https://nicolas.vuillamy.fr/handle-salesforce-api-versions-deprecation-like-a-pro-335065f52238)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-deprecated-api-calls/) and can output Grafana, Slack and MsTeams Notifications.\n",
5145
5130
  "examples": [
5146
- "$ sf hardis:org:diagnose:audittrail",
5147
- "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
5148
- "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
5149
- "$ sf hardis:org:diagnose:audittrail --lastndays 5"
5131
+ "$ sf hardis:org:diagnose:legacyapi",
5132
+ "$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
5133
+ "$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
5134
+ "$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
5150
5135
  ],
5151
5136
  "flags": {
5152
5137
  "json": {
@@ -5164,18 +5149,20 @@
5164
5149
  "multiple": false,
5165
5150
  "type": "option"
5166
5151
  },
5167
- "excludeusers": {
5152
+ "eventtype": {
5168
5153
  "char": "e",
5169
- "description": "Comma-separated list of usernames to exclude",
5170
- "name": "excludeusers",
5154
+ "description": "Type of EventLogFile event to analyze",
5155
+ "name": "eventtype",
5156
+ "default": "ApiTotalUsage",
5171
5157
  "hasDynamicHelp": false,
5172
5158
  "multiple": false,
5173
5159
  "type": "option"
5174
5160
  },
5175
- "lastndays": {
5176
- "char": "t",
5177
- "description": "Number of days to extract from today (included)",
5178
- "name": "lastndays",
5161
+ "limit": {
5162
+ "char": "l",
5163
+ "description": "Number of latest EventLogFile events to analyze",
5164
+ "name": "limit",
5165
+ "default": 999,
5179
5166
  "hasDynamicHelp": false,
5180
5167
  "multiple": false,
5181
5168
  "type": "option"
@@ -5226,13 +5213,13 @@
5226
5213
  },
5227
5214
  "hasDynamicHelp": true,
5228
5215
  "hiddenAliases": [],
5229
- "id": "hardis:org:diagnose:audittrail",
5216
+ "id": "hardis:org:diagnose:legacyapi",
5230
5217
  "pluginAlias": "sfdx-hardis",
5231
5218
  "pluginName": "sfdx-hardis",
5232
5219
  "pluginType": "core",
5233
5220
  "strict": true,
5234
5221
  "enableJsonFlag": true,
5235
- "title": "Diagnose content of Setup Audit Trail",
5222
+ "title": "Check for legacy API use",
5236
5223
  "requiresProject": false,
5237
5224
  "isESM": true,
5238
5225
  "relativePath": [
@@ -5241,248 +5228,7 @@
5241
5228
  "hardis",
5242
5229
  "org",
5243
5230
  "diagnose",
5244
- "audittrail.js"
5245
- ],
5246
- "aliasPermutations": [],
5247
- "permutations": [
5248
- "hardis:org:diagnose:audittrail",
5249
- "org:hardis:diagnose:audittrail",
5250
- "org:diagnose:hardis:audittrail",
5251
- "org:diagnose:audittrail:hardis",
5252
- "hardis:diagnose:org:audittrail",
5253
- "diagnose:hardis:org:audittrail",
5254
- "diagnose:org:hardis:audittrail",
5255
- "diagnose:org:audittrail:hardis",
5256
- "hardis:diagnose:audittrail:org",
5257
- "diagnose:hardis:audittrail:org",
5258
- "diagnose:audittrail:hardis:org",
5259
- "diagnose:audittrail:org:hardis",
5260
- "hardis:org:audittrail:diagnose",
5261
- "org:hardis:audittrail:diagnose",
5262
- "org:audittrail:hardis:diagnose",
5263
- "org:audittrail:diagnose:hardis",
5264
- "hardis:audittrail:org:diagnose",
5265
- "audittrail:hardis:org:diagnose",
5266
- "audittrail:org:hardis:diagnose",
5267
- "audittrail:org:diagnose:hardis",
5268
- "hardis:audittrail:diagnose:org",
5269
- "audittrail:hardis:diagnose:org",
5270
- "audittrail:diagnose:hardis:org",
5271
- "audittrail:diagnose:org:hardis"
5272
- ]
5273
- },
5274
- "hardis:org:diagnose:instanceupgrade": {
5275
- "aliases": [],
5276
- "args": {},
5277
- "description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
5278
- "examples": [
5279
- "$ sf hardis:org:diagnose:instanceupgrade"
5280
- ],
5281
- "flags": {
5282
- "json": {
5283
- "description": "Format output as json.",
5284
- "helpGroup": "GLOBAL",
5285
- "name": "json",
5286
- "allowNo": false,
5287
- "type": "boolean"
5288
- },
5289
- "flags-dir": {
5290
- "helpGroup": "GLOBAL",
5291
- "name": "flags-dir",
5292
- "summary": "Import flag values from a directory.",
5293
- "hasDynamicHelp": false,
5294
- "multiple": false,
5295
- "type": "option"
5296
- },
5297
- "debug": {
5298
- "char": "d",
5299
- "description": "Activate debug mode (more logs)",
5300
- "name": "debug",
5301
- "allowNo": false,
5302
- "type": "boolean"
5303
- },
5304
- "websocket": {
5305
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5306
- "name": "websocket",
5307
- "hasDynamicHelp": false,
5308
- "multiple": false,
5309
- "type": "option"
5310
- },
5311
- "skipauth": {
5312
- "description": "Skip authentication check when a default username is required",
5313
- "name": "skipauth",
5314
- "allowNo": false,
5315
- "type": "boolean"
5316
- },
5317
- "target-org": {
5318
- "aliases": [
5319
- "targetusername",
5320
- "u"
5321
- ],
5322
- "char": "o",
5323
- "deprecateAliases": true,
5324
- "name": "target-org",
5325
- "noCacheDefault": true,
5326
- "required": true,
5327
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
5328
- "hasDynamicHelp": true,
5329
- "multiple": false,
5330
- "type": "option"
5331
- }
5332
- },
5333
- "hasDynamicHelp": true,
5334
- "hiddenAliases": [],
5335
- "id": "hardis:org:diagnose:instanceupgrade",
5336
- "pluginAlias": "sfdx-hardis",
5337
- "pluginName": "sfdx-hardis",
5338
- "pluginType": "core",
5339
- "strict": true,
5340
- "enableJsonFlag": true,
5341
- "title": "Get Instance Upgrade date",
5342
- "requiresProject": false,
5343
- "isESM": true,
5344
- "relativePath": [
5345
- "lib",
5346
- "commands",
5347
- "hardis",
5348
- "org",
5349
- "diagnose",
5350
- "instanceupgrade.js"
5351
- ],
5352
- "aliasPermutations": [],
5353
- "permutations": [
5354
- "hardis:org:diagnose:instanceupgrade",
5355
- "org:hardis:diagnose:instanceupgrade",
5356
- "org:diagnose:hardis:instanceupgrade",
5357
- "org:diagnose:instanceupgrade:hardis",
5358
- "hardis:diagnose:org:instanceupgrade",
5359
- "diagnose:hardis:org:instanceupgrade",
5360
- "diagnose:org:hardis:instanceupgrade",
5361
- "diagnose:org:instanceupgrade:hardis",
5362
- "hardis:diagnose:instanceupgrade:org",
5363
- "diagnose:hardis:instanceupgrade:org",
5364
- "diagnose:instanceupgrade:hardis:org",
5365
- "diagnose:instanceupgrade:org:hardis",
5366
- "hardis:org:instanceupgrade:diagnose",
5367
- "org:hardis:instanceupgrade:diagnose",
5368
- "org:instanceupgrade:hardis:diagnose",
5369
- "org:instanceupgrade:diagnose:hardis",
5370
- "hardis:instanceupgrade:org:diagnose",
5371
- "instanceupgrade:hardis:org:diagnose",
5372
- "instanceupgrade:org:hardis:diagnose",
5373
- "instanceupgrade:org:diagnose:hardis",
5374
- "hardis:instanceupgrade:diagnose:org",
5375
- "instanceupgrade:hardis:diagnose:org",
5376
- "instanceupgrade:diagnose:hardis:org",
5377
- "instanceupgrade:diagnose:org:hardis"
5378
- ]
5379
- },
5380
- "hardis:org:diagnose:legacyapi": {
5381
- "aliases": [],
5382
- "args": {},
5383
- "description": "Checks if an org uses retired or someday retired API version\n\n\nSee article below\n\n[![Handle Salesforce API versions Deprecation like a pro](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-deprecated-api.jpg)](https://nicolas.vuillamy.fr/handle-salesforce-api-versions-deprecation-like-a-pro-335065f52238)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-deprecated-api-calls/) and can output Grafana, Slack and MsTeams Notifications.\n",
5384
- "examples": [
5385
- "$ sf hardis:org:diagnose:legacyapi",
5386
- "$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
5387
- "$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
5388
- "$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
5389
- ],
5390
- "flags": {
5391
- "json": {
5392
- "description": "Format output as json.",
5393
- "helpGroup": "GLOBAL",
5394
- "name": "json",
5395
- "allowNo": false,
5396
- "type": "boolean"
5397
- },
5398
- "flags-dir": {
5399
- "helpGroup": "GLOBAL",
5400
- "name": "flags-dir",
5401
- "summary": "Import flag values from a directory.",
5402
- "hasDynamicHelp": false,
5403
- "multiple": false,
5404
- "type": "option"
5405
- },
5406
- "eventtype": {
5407
- "char": "e",
5408
- "description": "Type of EventLogFile event to analyze",
5409
- "name": "eventtype",
5410
- "default": "ApiTotalUsage",
5411
- "hasDynamicHelp": false,
5412
- "multiple": false,
5413
- "type": "option"
5414
- },
5415
- "limit": {
5416
- "char": "l",
5417
- "description": "Number of latest EventLogFile events to analyze",
5418
- "name": "limit",
5419
- "default": 999,
5420
- "hasDynamicHelp": false,
5421
- "multiple": false,
5422
- "type": "option"
5423
- },
5424
- "outputfile": {
5425
- "char": "f",
5426
- "description": "Force the path and name of output report file. Must end with .csv",
5427
- "name": "outputfile",
5428
- "hasDynamicHelp": false,
5429
- "multiple": false,
5430
- "type": "option"
5431
- },
5432
- "debug": {
5433
- "char": "d",
5434
- "description": "Activate debug mode (more logs)",
5435
- "name": "debug",
5436
- "allowNo": false,
5437
- "type": "boolean"
5438
- },
5439
- "websocket": {
5440
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5441
- "name": "websocket",
5442
- "hasDynamicHelp": false,
5443
- "multiple": false,
5444
- "type": "option"
5445
- },
5446
- "skipauth": {
5447
- "description": "Skip authentication check when a default username is required",
5448
- "name": "skipauth",
5449
- "allowNo": false,
5450
- "type": "boolean"
5451
- },
5452
- "target-org": {
5453
- "aliases": [
5454
- "targetusername",
5455
- "u"
5456
- ],
5457
- "char": "o",
5458
- "deprecateAliases": true,
5459
- "name": "target-org",
5460
- "noCacheDefault": true,
5461
- "required": true,
5462
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
5463
- "hasDynamicHelp": true,
5464
- "multiple": false,
5465
- "type": "option"
5466
- }
5467
- },
5468
- "hasDynamicHelp": true,
5469
- "hiddenAliases": [],
5470
- "id": "hardis:org:diagnose:legacyapi",
5471
- "pluginAlias": "sfdx-hardis",
5472
- "pluginName": "sfdx-hardis",
5473
- "pluginType": "core",
5474
- "strict": true,
5475
- "enableJsonFlag": true,
5476
- "title": "Check for legacy API use",
5477
- "requiresProject": false,
5478
- "isESM": true,
5479
- "relativePath": [
5480
- "lib",
5481
- "commands",
5482
- "hardis",
5483
- "org",
5484
- "diagnose",
5485
- "legacyapi.js"
5231
+ "legacyapi.js"
5486
5232
  ],
5487
5233
  "aliasPermutations": [],
5488
5234
  "permutations": [
@@ -6287,6 +6033,268 @@
6287
6033
  "unusedusers:diagnose:org:hardis"
6288
6034
  ]
6289
6035
  },
6036
+ "hardis:org:files:export": {
6037
+ "aliases": [],
6038
+ "args": {},
6039
+ "description": "Export file attachments from a Salesforce org\n\nSee article below\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
6040
+ "examples": [
6041
+ "$ sf hardis:org:files:export"
6042
+ ],
6043
+ "flags": {
6044
+ "json": {
6045
+ "description": "Format output as json.",
6046
+ "helpGroup": "GLOBAL",
6047
+ "name": "json",
6048
+ "allowNo": false,
6049
+ "type": "boolean"
6050
+ },
6051
+ "flags-dir": {
6052
+ "helpGroup": "GLOBAL",
6053
+ "name": "flags-dir",
6054
+ "summary": "Import flag values from a directory.",
6055
+ "hasDynamicHelp": false,
6056
+ "multiple": false,
6057
+ "type": "option"
6058
+ },
6059
+ "path": {
6060
+ "char": "p",
6061
+ "description": "Path to the file export project",
6062
+ "name": "path",
6063
+ "hasDynamicHelp": false,
6064
+ "multiple": false,
6065
+ "type": "option"
6066
+ },
6067
+ "chunksize": {
6068
+ "char": "c",
6069
+ "description": "Number of records to add in a chunk before it is processed",
6070
+ "name": "chunksize",
6071
+ "default": 1000,
6072
+ "hasDynamicHelp": false,
6073
+ "multiple": false,
6074
+ "type": "option"
6075
+ },
6076
+ "polltimeout": {
6077
+ "char": "t",
6078
+ "description": "Timeout in MS for Bulk API calls",
6079
+ "name": "polltimeout",
6080
+ "default": 300000,
6081
+ "hasDynamicHelp": false,
6082
+ "multiple": false,
6083
+ "type": "option"
6084
+ },
6085
+ "startchunknumber": {
6086
+ "char": "s",
6087
+ "description": "Chunk number to start from",
6088
+ "name": "startchunknumber",
6089
+ "default": 0,
6090
+ "hasDynamicHelp": false,
6091
+ "multiple": false,
6092
+ "type": "option"
6093
+ },
6094
+ "debug": {
6095
+ "char": "d",
6096
+ "description": "Activate debug mode (more logs)",
6097
+ "name": "debug",
6098
+ "allowNo": false,
6099
+ "type": "boolean"
6100
+ },
6101
+ "websocket": {
6102
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
6103
+ "name": "websocket",
6104
+ "hasDynamicHelp": false,
6105
+ "multiple": false,
6106
+ "type": "option"
6107
+ },
6108
+ "skipauth": {
6109
+ "description": "Skip authentication check when a default username is required",
6110
+ "name": "skipauth",
6111
+ "allowNo": false,
6112
+ "type": "boolean"
6113
+ },
6114
+ "target-org": {
6115
+ "aliases": [
6116
+ "targetusername",
6117
+ "u"
6118
+ ],
6119
+ "char": "o",
6120
+ "deprecateAliases": true,
6121
+ "name": "target-org",
6122
+ "noCacheDefault": true,
6123
+ "required": true,
6124
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
6125
+ "hasDynamicHelp": true,
6126
+ "multiple": false,
6127
+ "type": "option"
6128
+ }
6129
+ },
6130
+ "hasDynamicHelp": true,
6131
+ "hiddenAliases": [],
6132
+ "id": "hardis:org:files:export",
6133
+ "pluginAlias": "sfdx-hardis",
6134
+ "pluginName": "sfdx-hardis",
6135
+ "pluginType": "core",
6136
+ "strict": true,
6137
+ "enableJsonFlag": true,
6138
+ "title": "Export files",
6139
+ "requiresProject": false,
6140
+ "isESM": true,
6141
+ "relativePath": [
6142
+ "lib",
6143
+ "commands",
6144
+ "hardis",
6145
+ "org",
6146
+ "files",
6147
+ "export.js"
6148
+ ],
6149
+ "aliasPermutations": [],
6150
+ "permutations": [
6151
+ "hardis:org:files:export",
6152
+ "org:hardis:files:export",
6153
+ "org:files:hardis:export",
6154
+ "org:files:export:hardis",
6155
+ "hardis:files:org:export",
6156
+ "files:hardis:org:export",
6157
+ "files:org:hardis:export",
6158
+ "files:org:export:hardis",
6159
+ "hardis:files:export:org",
6160
+ "files:hardis:export:org",
6161
+ "files:export:hardis:org",
6162
+ "files:export:org:hardis",
6163
+ "hardis:org:export:files",
6164
+ "org:hardis:export:files",
6165
+ "org:export:hardis:files",
6166
+ "org:export:files:hardis",
6167
+ "hardis:export:org:files",
6168
+ "export:hardis:org:files",
6169
+ "export:org:hardis:files",
6170
+ "export:org:files:hardis",
6171
+ "hardis:export:files:org",
6172
+ "export:hardis:files:org",
6173
+ "export:files:hardis:org",
6174
+ "export:files:org:hardis"
6175
+ ]
6176
+ },
6177
+ "hardis:org:files:import": {
6178
+ "aliases": [],
6179
+ "args": {},
6180
+ "description": "Import file attachments into a Salesforce org\n\nSee article below to see how to Export them.\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
6181
+ "examples": [
6182
+ "$ sf hardis:org:files:import"
6183
+ ],
6184
+ "flags": {
6185
+ "json": {
6186
+ "description": "Format output as json.",
6187
+ "helpGroup": "GLOBAL",
6188
+ "name": "json",
6189
+ "allowNo": false,
6190
+ "type": "boolean"
6191
+ },
6192
+ "flags-dir": {
6193
+ "helpGroup": "GLOBAL",
6194
+ "name": "flags-dir",
6195
+ "summary": "Import flag values from a directory.",
6196
+ "hasDynamicHelp": false,
6197
+ "multiple": false,
6198
+ "type": "option"
6199
+ },
6200
+ "path": {
6201
+ "char": "p",
6202
+ "description": "Path to the file export project",
6203
+ "name": "path",
6204
+ "hasDynamicHelp": false,
6205
+ "multiple": false,
6206
+ "type": "option"
6207
+ },
6208
+ "overwrite": {
6209
+ "char": "f",
6210
+ "description": "Override existing files (doubles the number of API calls)",
6211
+ "name": "overwrite",
6212
+ "allowNo": false,
6213
+ "type": "boolean"
6214
+ },
6215
+ "debug": {
6216
+ "char": "d",
6217
+ "description": "Activate debug mode (more logs)",
6218
+ "name": "debug",
6219
+ "allowNo": false,
6220
+ "type": "boolean"
6221
+ },
6222
+ "websocket": {
6223
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
6224
+ "name": "websocket",
6225
+ "hasDynamicHelp": false,
6226
+ "multiple": false,
6227
+ "type": "option"
6228
+ },
6229
+ "skipauth": {
6230
+ "description": "Skip authentication check when a default username is required",
6231
+ "name": "skipauth",
6232
+ "allowNo": false,
6233
+ "type": "boolean"
6234
+ },
6235
+ "target-org": {
6236
+ "aliases": [
6237
+ "targetusername",
6238
+ "u"
6239
+ ],
6240
+ "char": "o",
6241
+ "deprecateAliases": true,
6242
+ "name": "target-org",
6243
+ "noCacheDefault": true,
6244
+ "required": true,
6245
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
6246
+ "hasDynamicHelp": true,
6247
+ "multiple": false,
6248
+ "type": "option"
6249
+ }
6250
+ },
6251
+ "hasDynamicHelp": true,
6252
+ "hiddenAliases": [],
6253
+ "id": "hardis:org:files:import",
6254
+ "pluginAlias": "sfdx-hardis",
6255
+ "pluginName": "sfdx-hardis",
6256
+ "pluginType": "core",
6257
+ "strict": true,
6258
+ "enableJsonFlag": true,
6259
+ "title": "Import files",
6260
+ "requiresProject": false,
6261
+ "isESM": true,
6262
+ "relativePath": [
6263
+ "lib",
6264
+ "commands",
6265
+ "hardis",
6266
+ "org",
6267
+ "files",
6268
+ "import.js"
6269
+ ],
6270
+ "aliasPermutations": [],
6271
+ "permutations": [
6272
+ "hardis:org:files:import",
6273
+ "org:hardis:files:import",
6274
+ "org:files:hardis:import",
6275
+ "org:files:import:hardis",
6276
+ "hardis:files:org:import",
6277
+ "files:hardis:org:import",
6278
+ "files:org:hardis:import",
6279
+ "files:org:import:hardis",
6280
+ "hardis:files:import:org",
6281
+ "files:hardis:import:org",
6282
+ "files:import:hardis:org",
6283
+ "files:import:org:hardis",
6284
+ "hardis:org:import:files",
6285
+ "org:hardis:import:files",
6286
+ "org:import:hardis:files",
6287
+ "org:import:files:hardis",
6288
+ "hardis:import:org:files",
6289
+ "import:hardis:org:files",
6290
+ "import:org:hardis:files",
6291
+ "import:org:files:hardis",
6292
+ "hardis:import:files:org",
6293
+ "import:hardis:files:org",
6294
+ "import:files:hardis:org",
6295
+ "import:files:org:hardis"
6296
+ ]
6297
+ },
6290
6298
  "hardis:org:fix:listviewmine": {
6291
6299
  "aliases": [],
6292
6300
  "args": {},
@@ -13870,5 +13878,5 @@
13870
13878
  ]
13871
13879
  }
13872
13880
  },
13873
- "version": "5.10.2-beta202412231619.0"
13881
+ "version": "5.10.2-beta202412280136.0"
13874
13882
  }