sfdx-hardis 5.10.2-beta202412302338.0 → 5.10.2-beta202412310846.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.
@@ -57,12 +57,12 @@
57
57
  "world:hello"
58
58
  ]
59
59
  },
60
- "hardis:auth:login": {
60
+ "hardis:cache:clear": {
61
61
  "aliases": [],
62
62
  "args": {},
63
- "description": "Login to salesforce org",
63
+ "description": "Clear cache generated by sfdx-hardis",
64
64
  "examples": [
65
- "$ sf hardis:auth:login"
65
+ "$ sf hardis:cache:clear"
66
66
  ],
67
67
  "flags": {
68
68
  "json": {
@@ -80,28 +80,6 @@
80
80
  "multiple": false,
81
81
  "type": "option"
82
82
  },
83
- "instanceurl": {
84
- "char": "r",
85
- "description": "URL of org instance",
86
- "name": "instanceurl",
87
- "hasDynamicHelp": false,
88
- "multiple": false,
89
- "type": "option"
90
- },
91
- "devhub": {
92
- "char": "h",
93
- "description": "Also connect associated DevHub",
94
- "name": "devhub",
95
- "allowNo": false,
96
- "type": "boolean"
97
- },
98
- "scratchorg": {
99
- "char": "s",
100
- "description": "Scratch org",
101
- "name": "scratchorg",
102
- "allowNo": false,
103
- "type": "boolean"
104
- },
105
83
  "debug": {
106
84
  "char": "d",
107
85
  "description": "Activate debug mode (more logs)",
@@ -125,38 +103,38 @@
125
103
  },
126
104
  "hasDynamicHelp": false,
127
105
  "hiddenAliases": [],
128
- "id": "hardis:auth:login",
106
+ "id": "hardis:cache:clear",
129
107
  "pluginAlias": "sfdx-hardis",
130
108
  "pluginName": "sfdx-hardis",
131
109
  "pluginType": "core",
132
110
  "strict": true,
133
111
  "enableJsonFlag": true,
134
- "title": "Login",
112
+ "title": "Clear sfdx-hardis cache",
135
113
  "requiresProject": false,
136
114
  "isESM": true,
137
115
  "relativePath": [
138
116
  "lib",
139
117
  "commands",
140
118
  "hardis",
141
- "auth",
142
- "login.js"
119
+ "cache",
120
+ "clear.js"
143
121
  ],
144
122
  "aliasPermutations": [],
145
123
  "permutations": [
146
- "hardis:auth:login",
147
- "auth:hardis:login",
148
- "auth:login:hardis",
149
- "hardis:login:auth",
150
- "login:hardis:auth",
151
- "login:auth:hardis"
124
+ "hardis:cache:clear",
125
+ "cache:hardis:clear",
126
+ "cache:clear:hardis",
127
+ "hardis:clear:cache",
128
+ "clear:hardis:cache",
129
+ "clear:cache:hardis"
152
130
  ]
153
131
  },
154
- "hardis:cache:clear": {
132
+ "hardis:auth:login": {
155
133
  "aliases": [],
156
134
  "args": {},
157
- "description": "Clear cache generated by sfdx-hardis",
135
+ "description": "Login to salesforce org",
158
136
  "examples": [
159
- "$ sf hardis:cache:clear"
137
+ "$ sf hardis:auth:login"
160
138
  ],
161
139
  "flags": {
162
140
  "json": {
@@ -174,6 +152,28 @@
174
152
  "multiple": false,
175
153
  "type": "option"
176
154
  },
155
+ "instanceurl": {
156
+ "char": "r",
157
+ "description": "URL of org instance",
158
+ "name": "instanceurl",
159
+ "hasDynamicHelp": false,
160
+ "multiple": false,
161
+ "type": "option"
162
+ },
163
+ "devhub": {
164
+ "char": "h",
165
+ "description": "Also connect associated DevHub",
166
+ "name": "devhub",
167
+ "allowNo": false,
168
+ "type": "boolean"
169
+ },
170
+ "scratchorg": {
171
+ "char": "s",
172
+ "description": "Scratch org",
173
+ "name": "scratchorg",
174
+ "allowNo": false,
175
+ "type": "boolean"
176
+ },
177
177
  "debug": {
178
178
  "char": "d",
179
179
  "description": "Activate debug mode (more logs)",
@@ -197,30 +197,30 @@
197
197
  },
198
198
  "hasDynamicHelp": false,
199
199
  "hiddenAliases": [],
200
- "id": "hardis:cache:clear",
200
+ "id": "hardis:auth:login",
201
201
  "pluginAlias": "sfdx-hardis",
202
202
  "pluginName": "sfdx-hardis",
203
203
  "pluginType": "core",
204
204
  "strict": true,
205
205
  "enableJsonFlag": true,
206
- "title": "Clear sfdx-hardis cache",
206
+ "title": "Login",
207
207
  "requiresProject": false,
208
208
  "isESM": true,
209
209
  "relativePath": [
210
210
  "lib",
211
211
  "commands",
212
212
  "hardis",
213
- "cache",
214
- "clear.js"
213
+ "auth",
214
+ "login.js"
215
215
  ],
216
216
  "aliasPermutations": [],
217
217
  "permutations": [
218
- "hardis:cache:clear",
219
- "cache:hardis:clear",
220
- "cache:clear:hardis",
221
- "hardis:clear:cache",
222
- "clear:hardis:cache",
223
- "clear:cache:hardis"
218
+ "hardis:auth:login",
219
+ "auth:hardis:login",
220
+ "auth:login:hardis",
221
+ "hardis:login:auth",
222
+ "login:hardis:auth",
223
+ "login:auth:hardis"
224
224
  ]
225
225
  },
226
226
  "hardis:config:get": {
@@ -496,9 +496,10 @@
496
496
  "hardis:doc:project2markdown": {
497
497
  "aliases": [],
498
498
  "args": {},
499
- "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",
499
+ "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 read Flow documentations if your markdown reader doesn't handle MermaidJS syntax, this command could require @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\nIf Flow history doc always display a single state, you probably need to update your workflow configuration:\n\n- on Gitlab: Env variable [`GIT_FETCH_EXTRA_FLAGS: --depth 10000`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.gitlab-ci.yml#L11)\n- on GitHub: [`fetch-depth: 0`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.github/workflows/org-monitoring.yml#L58)\n- on Azure: [`fetchDepth: \"0\"`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/azure-pipelines.yml#L39)\n- on Bitbucket: [`step: clone: depth: full`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/bitbucket-pipelines.yml#L18)\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",
500
500
  "examples": [
501
- "$ sf hardis:doc:project2markdown"
501
+ "$ sf hardis:doc:project2markdown",
502
+ "$ sf hardis:doc:project2markdown --with-history"
502
503
  ],
503
504
  "flags": {
504
505
  "json": {
@@ -4889,12 +4890,15 @@
4889
4890
  "import:data:org:hardis"
4890
4891
  ]
4891
4892
  },
4892
- "hardis:org:files:export": {
4893
+ "hardis:org:diagnose:audittrail": {
4893
4894
  "aliases": [],
4894
4895
  "args": {},
4895
- "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",
4896
+ "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",
4896
4897
  "examples": [
4897
- "$ sf hardis:org:files:export"
4898
+ "$ sf hardis:org:diagnose:audittrail",
4899
+ "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
4900
+ "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
4901
+ "$ sf hardis:org:diagnose:audittrail --lastndays 5"
4898
4902
  ],
4899
4903
  "flags": {
4900
4904
  "json": {
@@ -4912,37 +4916,26 @@
4912
4916
  "multiple": false,
4913
4917
  "type": "option"
4914
4918
  },
4915
- "path": {
4916
- "char": "p",
4917
- "description": "Path to the file export project",
4918
- "name": "path",
4919
- "hasDynamicHelp": false,
4920
- "multiple": false,
4921
- "type": "option"
4922
- },
4923
- "chunksize": {
4924
- "char": "c",
4925
- "description": "Number of records to add in a chunk before it is processed",
4926
- "name": "chunksize",
4927
- "default": 1000,
4919
+ "excludeusers": {
4920
+ "char": "e",
4921
+ "description": "Comma-separated list of usernames to exclude",
4922
+ "name": "excludeusers",
4928
4923
  "hasDynamicHelp": false,
4929
4924
  "multiple": false,
4930
4925
  "type": "option"
4931
4926
  },
4932
- "polltimeout": {
4927
+ "lastndays": {
4933
4928
  "char": "t",
4934
- "description": "Timeout in MS for Bulk API calls",
4935
- "name": "polltimeout",
4936
- "default": 300000,
4929
+ "description": "Number of days to extract from today (included)",
4930
+ "name": "lastndays",
4937
4931
  "hasDynamicHelp": false,
4938
4932
  "multiple": false,
4939
4933
  "type": "option"
4940
4934
  },
4941
- "startchunknumber": {
4942
- "char": "s",
4943
- "description": "Chunk number to start from",
4944
- "name": "startchunknumber",
4945
- "default": 0,
4935
+ "outputfile": {
4936
+ "char": "f",
4937
+ "description": "Force the path and name of output report file. Must end with .csv",
4938
+ "name": "outputfile",
4946
4939
  "hasDynamicHelp": false,
4947
4940
  "multiple": false,
4948
4941
  "type": "option"
@@ -4985,13 +4978,13 @@
4985
4978
  },
4986
4979
  "hasDynamicHelp": true,
4987
4980
  "hiddenAliases": [],
4988
- "id": "hardis:org:files:export",
4981
+ "id": "hardis:org:diagnose:audittrail",
4989
4982
  "pluginAlias": "sfdx-hardis",
4990
4983
  "pluginName": "sfdx-hardis",
4991
4984
  "pluginType": "core",
4992
4985
  "strict": true,
4993
4986
  "enableJsonFlag": true,
4994
- "title": "Export files",
4987
+ "title": "Diagnose content of Setup Audit Trail",
4995
4988
  "requiresProject": false,
4996
4989
  "isESM": true,
4997
4990
  "relativePath": [
@@ -4999,43 +4992,43 @@
4999
4992
  "commands",
5000
4993
  "hardis",
5001
4994
  "org",
5002
- "files",
5003
- "export.js"
4995
+ "diagnose",
4996
+ "audittrail.js"
5004
4997
  ],
5005
4998
  "aliasPermutations": [],
5006
4999
  "permutations": [
5007
- "hardis:org:files:export",
5008
- "org:hardis:files:export",
5009
- "org:files:hardis:export",
5010
- "org:files:export:hardis",
5011
- "hardis:files:org:export",
5012
- "files:hardis:org:export",
5013
- "files:org:hardis:export",
5014
- "files:org:export:hardis",
5015
- "hardis:files:export:org",
5016
- "files:hardis:export:org",
5017
- "files:export:hardis:org",
5018
- "files:export:org:hardis",
5019
- "hardis:org:export:files",
5020
- "org:hardis:export:files",
5021
- "org:export:hardis:files",
5022
- "org:export:files:hardis",
5023
- "hardis:export:org:files",
5024
- "export:hardis:org:files",
5025
- "export:org:hardis:files",
5026
- "export:org:files:hardis",
5027
- "hardis:export:files:org",
5028
- "export:hardis:files:org",
5029
- "export:files:hardis:org",
5030
- "export:files:org:hardis"
5000
+ "hardis:org:diagnose:audittrail",
5001
+ "org:hardis:diagnose:audittrail",
5002
+ "org:diagnose:hardis:audittrail",
5003
+ "org:diagnose:audittrail:hardis",
5004
+ "hardis:diagnose:org:audittrail",
5005
+ "diagnose:hardis:org:audittrail",
5006
+ "diagnose:org:hardis:audittrail",
5007
+ "diagnose:org:audittrail:hardis",
5008
+ "hardis:diagnose:audittrail:org",
5009
+ "diagnose:hardis:audittrail:org",
5010
+ "diagnose:audittrail:hardis:org",
5011
+ "diagnose:audittrail:org:hardis",
5012
+ "hardis:org:audittrail:diagnose",
5013
+ "org:hardis:audittrail:diagnose",
5014
+ "org:audittrail:hardis:diagnose",
5015
+ "org:audittrail:diagnose:hardis",
5016
+ "hardis:audittrail:org:diagnose",
5017
+ "audittrail:hardis:org:diagnose",
5018
+ "audittrail:org:hardis:diagnose",
5019
+ "audittrail:org:diagnose:hardis",
5020
+ "hardis:audittrail:diagnose:org",
5021
+ "audittrail:hardis:diagnose:org",
5022
+ "audittrail:diagnose:hardis:org",
5023
+ "audittrail:diagnose:org:hardis"
5031
5024
  ]
5032
5025
  },
5033
- "hardis:org:files:import": {
5026
+ "hardis:org:diagnose:instanceupgrade": {
5034
5027
  "aliases": [],
5035
5028
  "args": {},
5036
- "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",
5029
+ "description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
5037
5030
  "examples": [
5038
- "$ sf hardis:org:files:import"
5031
+ "$ sf hardis:org:diagnose:instanceupgrade"
5039
5032
  ],
5040
5033
  "flags": {
5041
5034
  "json": {
@@ -5053,21 +5046,6 @@
5053
5046
  "multiple": false,
5054
5047
  "type": "option"
5055
5048
  },
5056
- "path": {
5057
- "char": "p",
5058
- "description": "Path to the file export project",
5059
- "name": "path",
5060
- "hasDynamicHelp": false,
5061
- "multiple": false,
5062
- "type": "option"
5063
- },
5064
- "overwrite": {
5065
- "char": "f",
5066
- "description": "Override existing files (doubles the number of API calls)",
5067
- "name": "overwrite",
5068
- "allowNo": false,
5069
- "type": "boolean"
5070
- },
5071
5049
  "debug": {
5072
5050
  "char": "d",
5073
5051
  "description": "Activate debug mode (more logs)",
@@ -5106,13 +5084,13 @@
5106
5084
  },
5107
5085
  "hasDynamicHelp": true,
5108
5086
  "hiddenAliases": [],
5109
- "id": "hardis:org:files:import",
5087
+ "id": "hardis:org:diagnose:instanceupgrade",
5110
5088
  "pluginAlias": "sfdx-hardis",
5111
5089
  "pluginName": "sfdx-hardis",
5112
5090
  "pluginType": "core",
5113
5091
  "strict": true,
5114
5092
  "enableJsonFlag": true,
5115
- "title": "Import files",
5093
+ "title": "Get Instance Upgrade date",
5116
5094
  "requiresProject": false,
5117
5095
  "isESM": true,
5118
5096
  "relativePath": [
@@ -5120,247 +5098,8 @@
5120
5098
  "commands",
5121
5099
  "hardis",
5122
5100
  "org",
5123
- "files",
5124
- "import.js"
5125
- ],
5126
- "aliasPermutations": [],
5127
- "permutations": [
5128
- "hardis:org:files:import",
5129
- "org:hardis:files:import",
5130
- "org:files:hardis:import",
5131
- "org:files:import:hardis",
5132
- "hardis:files:org:import",
5133
- "files:hardis:org:import",
5134
- "files:org:hardis:import",
5135
- "files:org:import:hardis",
5136
- "hardis:files:import:org",
5137
- "files:hardis:import:org",
5138
- "files:import:hardis:org",
5139
- "files:import:org:hardis",
5140
- "hardis:org:import:files",
5141
- "org:hardis:import:files",
5142
- "org:import:hardis:files",
5143
- "org:import:files:hardis",
5144
- "hardis:import:org:files",
5145
- "import:hardis:org:files",
5146
- "import:org:hardis:files",
5147
- "import:org:files:hardis",
5148
- "hardis:import:files:org",
5149
- "import:hardis:files:org",
5150
- "import:files:hardis:org",
5151
- "import:files:org:hardis"
5152
- ]
5153
- },
5154
- "hardis:org:diagnose:audittrail": {
5155
- "aliases": [],
5156
- "args": {},
5157
- "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",
5158
- "examples": [
5159
- "$ sf hardis:org:diagnose:audittrail",
5160
- "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
5161
- "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
5162
- "$ sf hardis:org:diagnose:audittrail --lastndays 5"
5163
- ],
5164
- "flags": {
5165
- "json": {
5166
- "description": "Format output as json.",
5167
- "helpGroup": "GLOBAL",
5168
- "name": "json",
5169
- "allowNo": false,
5170
- "type": "boolean"
5171
- },
5172
- "flags-dir": {
5173
- "helpGroup": "GLOBAL",
5174
- "name": "flags-dir",
5175
- "summary": "Import flag values from a directory.",
5176
- "hasDynamicHelp": false,
5177
- "multiple": false,
5178
- "type": "option"
5179
- },
5180
- "excludeusers": {
5181
- "char": "e",
5182
- "description": "Comma-separated list of usernames to exclude",
5183
- "name": "excludeusers",
5184
- "hasDynamicHelp": false,
5185
- "multiple": false,
5186
- "type": "option"
5187
- },
5188
- "lastndays": {
5189
- "char": "t",
5190
- "description": "Number of days to extract from today (included)",
5191
- "name": "lastndays",
5192
- "hasDynamicHelp": false,
5193
- "multiple": false,
5194
- "type": "option"
5195
- },
5196
- "outputfile": {
5197
- "char": "f",
5198
- "description": "Force the path and name of output report file. Must end with .csv",
5199
- "name": "outputfile",
5200
- "hasDynamicHelp": false,
5201
- "multiple": false,
5202
- "type": "option"
5203
- },
5204
- "debug": {
5205
- "char": "d",
5206
- "description": "Activate debug mode (more logs)",
5207
- "name": "debug",
5208
- "allowNo": false,
5209
- "type": "boolean"
5210
- },
5211
- "websocket": {
5212
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5213
- "name": "websocket",
5214
- "hasDynamicHelp": false,
5215
- "multiple": false,
5216
- "type": "option"
5217
- },
5218
- "skipauth": {
5219
- "description": "Skip authentication check when a default username is required",
5220
- "name": "skipauth",
5221
- "allowNo": false,
5222
- "type": "boolean"
5223
- },
5224
- "target-org": {
5225
- "aliases": [
5226
- "targetusername",
5227
- "u"
5228
- ],
5229
- "char": "o",
5230
- "deprecateAliases": true,
5231
- "name": "target-org",
5232
- "noCacheDefault": true,
5233
- "required": true,
5234
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
5235
- "hasDynamicHelp": true,
5236
- "multiple": false,
5237
- "type": "option"
5238
- }
5239
- },
5240
- "hasDynamicHelp": true,
5241
- "hiddenAliases": [],
5242
- "id": "hardis:org:diagnose:audittrail",
5243
- "pluginAlias": "sfdx-hardis",
5244
- "pluginName": "sfdx-hardis",
5245
- "pluginType": "core",
5246
- "strict": true,
5247
- "enableJsonFlag": true,
5248
- "title": "Diagnose content of Setup Audit Trail",
5249
- "requiresProject": false,
5250
- "isESM": true,
5251
- "relativePath": [
5252
- "lib",
5253
- "commands",
5254
- "hardis",
5255
- "org",
5256
- "diagnose",
5257
- "audittrail.js"
5258
- ],
5259
- "aliasPermutations": [],
5260
- "permutations": [
5261
- "hardis:org:diagnose:audittrail",
5262
- "org:hardis:diagnose:audittrail",
5263
- "org:diagnose:hardis:audittrail",
5264
- "org:diagnose:audittrail:hardis",
5265
- "hardis:diagnose:org:audittrail",
5266
- "diagnose:hardis:org:audittrail",
5267
- "diagnose:org:hardis:audittrail",
5268
- "diagnose:org:audittrail:hardis",
5269
- "hardis:diagnose:audittrail:org",
5270
- "diagnose:hardis:audittrail:org",
5271
- "diagnose:audittrail:hardis:org",
5272
- "diagnose:audittrail:org:hardis",
5273
- "hardis:org:audittrail:diagnose",
5274
- "org:hardis:audittrail:diagnose",
5275
- "org:audittrail:hardis:diagnose",
5276
- "org:audittrail:diagnose:hardis",
5277
- "hardis:audittrail:org:diagnose",
5278
- "audittrail:hardis:org:diagnose",
5279
- "audittrail:org:hardis:diagnose",
5280
- "audittrail:org:diagnose:hardis",
5281
- "hardis:audittrail:diagnose:org",
5282
- "audittrail:hardis:diagnose:org",
5283
- "audittrail:diagnose:hardis:org",
5284
- "audittrail:diagnose:org:hardis"
5285
- ]
5286
- },
5287
- "hardis:org:diagnose:instanceupgrade": {
5288
- "aliases": [],
5289
- "args": {},
5290
- "description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
5291
- "examples": [
5292
- "$ sf hardis:org:diagnose:instanceupgrade"
5293
- ],
5294
- "flags": {
5295
- "json": {
5296
- "description": "Format output as json.",
5297
- "helpGroup": "GLOBAL",
5298
- "name": "json",
5299
- "allowNo": false,
5300
- "type": "boolean"
5301
- },
5302
- "flags-dir": {
5303
- "helpGroup": "GLOBAL",
5304
- "name": "flags-dir",
5305
- "summary": "Import flag values from a directory.",
5306
- "hasDynamicHelp": false,
5307
- "multiple": false,
5308
- "type": "option"
5309
- },
5310
- "debug": {
5311
- "char": "d",
5312
- "description": "Activate debug mode (more logs)",
5313
- "name": "debug",
5314
- "allowNo": false,
5315
- "type": "boolean"
5316
- },
5317
- "websocket": {
5318
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5319
- "name": "websocket",
5320
- "hasDynamicHelp": false,
5321
- "multiple": false,
5322
- "type": "option"
5323
- },
5324
- "skipauth": {
5325
- "description": "Skip authentication check when a default username is required",
5326
- "name": "skipauth",
5327
- "allowNo": false,
5328
- "type": "boolean"
5329
- },
5330
- "target-org": {
5331
- "aliases": [
5332
- "targetusername",
5333
- "u"
5334
- ],
5335
- "char": "o",
5336
- "deprecateAliases": true,
5337
- "name": "target-org",
5338
- "noCacheDefault": true,
5339
- "required": true,
5340
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
5341
- "hasDynamicHelp": true,
5342
- "multiple": false,
5343
- "type": "option"
5344
- }
5345
- },
5346
- "hasDynamicHelp": true,
5347
- "hiddenAliases": [],
5348
- "id": "hardis:org:diagnose:instanceupgrade",
5349
- "pluginAlias": "sfdx-hardis",
5350
- "pluginName": "sfdx-hardis",
5351
- "pluginType": "core",
5352
- "strict": true,
5353
- "enableJsonFlag": true,
5354
- "title": "Get Instance Upgrade date",
5355
- "requiresProject": false,
5356
- "isESM": true,
5357
- "relativePath": [
5358
- "lib",
5359
- "commands",
5360
- "hardis",
5361
- "org",
5362
- "diagnose",
5363
- "instanceupgrade.js"
5101
+ "diagnose",
5102
+ "instanceupgrade.js"
5364
5103
  ],
5365
5104
  "aliasPermutations": [],
5366
5105
  "permutations": [
@@ -6300,6 +6039,268 @@
6300
6039
  "unusedusers:diagnose:org:hardis"
6301
6040
  ]
6302
6041
  },
6042
+ "hardis:org:files:export": {
6043
+ "aliases": [],
6044
+ "args": {},
6045
+ "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",
6046
+ "examples": [
6047
+ "$ sf hardis:org:files:export"
6048
+ ],
6049
+ "flags": {
6050
+ "json": {
6051
+ "description": "Format output as json.",
6052
+ "helpGroup": "GLOBAL",
6053
+ "name": "json",
6054
+ "allowNo": false,
6055
+ "type": "boolean"
6056
+ },
6057
+ "flags-dir": {
6058
+ "helpGroup": "GLOBAL",
6059
+ "name": "flags-dir",
6060
+ "summary": "Import flag values from a directory.",
6061
+ "hasDynamicHelp": false,
6062
+ "multiple": false,
6063
+ "type": "option"
6064
+ },
6065
+ "path": {
6066
+ "char": "p",
6067
+ "description": "Path to the file export project",
6068
+ "name": "path",
6069
+ "hasDynamicHelp": false,
6070
+ "multiple": false,
6071
+ "type": "option"
6072
+ },
6073
+ "chunksize": {
6074
+ "char": "c",
6075
+ "description": "Number of records to add in a chunk before it is processed",
6076
+ "name": "chunksize",
6077
+ "default": 1000,
6078
+ "hasDynamicHelp": false,
6079
+ "multiple": false,
6080
+ "type": "option"
6081
+ },
6082
+ "polltimeout": {
6083
+ "char": "t",
6084
+ "description": "Timeout in MS for Bulk API calls",
6085
+ "name": "polltimeout",
6086
+ "default": 300000,
6087
+ "hasDynamicHelp": false,
6088
+ "multiple": false,
6089
+ "type": "option"
6090
+ },
6091
+ "startchunknumber": {
6092
+ "char": "s",
6093
+ "description": "Chunk number to start from",
6094
+ "name": "startchunknumber",
6095
+ "default": 0,
6096
+ "hasDynamicHelp": false,
6097
+ "multiple": false,
6098
+ "type": "option"
6099
+ },
6100
+ "debug": {
6101
+ "char": "d",
6102
+ "description": "Activate debug mode (more logs)",
6103
+ "name": "debug",
6104
+ "allowNo": false,
6105
+ "type": "boolean"
6106
+ },
6107
+ "websocket": {
6108
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
6109
+ "name": "websocket",
6110
+ "hasDynamicHelp": false,
6111
+ "multiple": false,
6112
+ "type": "option"
6113
+ },
6114
+ "skipauth": {
6115
+ "description": "Skip authentication check when a default username is required",
6116
+ "name": "skipauth",
6117
+ "allowNo": false,
6118
+ "type": "boolean"
6119
+ },
6120
+ "target-org": {
6121
+ "aliases": [
6122
+ "targetusername",
6123
+ "u"
6124
+ ],
6125
+ "char": "o",
6126
+ "deprecateAliases": true,
6127
+ "name": "target-org",
6128
+ "noCacheDefault": true,
6129
+ "required": true,
6130
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
6131
+ "hasDynamicHelp": true,
6132
+ "multiple": false,
6133
+ "type": "option"
6134
+ }
6135
+ },
6136
+ "hasDynamicHelp": true,
6137
+ "hiddenAliases": [],
6138
+ "id": "hardis:org:files:export",
6139
+ "pluginAlias": "sfdx-hardis",
6140
+ "pluginName": "sfdx-hardis",
6141
+ "pluginType": "core",
6142
+ "strict": true,
6143
+ "enableJsonFlag": true,
6144
+ "title": "Export files",
6145
+ "requiresProject": false,
6146
+ "isESM": true,
6147
+ "relativePath": [
6148
+ "lib",
6149
+ "commands",
6150
+ "hardis",
6151
+ "org",
6152
+ "files",
6153
+ "export.js"
6154
+ ],
6155
+ "aliasPermutations": [],
6156
+ "permutations": [
6157
+ "hardis:org:files:export",
6158
+ "org:hardis:files:export",
6159
+ "org:files:hardis:export",
6160
+ "org:files:export:hardis",
6161
+ "hardis:files:org:export",
6162
+ "files:hardis:org:export",
6163
+ "files:org:hardis:export",
6164
+ "files:org:export:hardis",
6165
+ "hardis:files:export:org",
6166
+ "files:hardis:export:org",
6167
+ "files:export:hardis:org",
6168
+ "files:export:org:hardis",
6169
+ "hardis:org:export:files",
6170
+ "org:hardis:export:files",
6171
+ "org:export:hardis:files",
6172
+ "org:export:files:hardis",
6173
+ "hardis:export:org:files",
6174
+ "export:hardis:org:files",
6175
+ "export:org:hardis:files",
6176
+ "export:org:files:hardis",
6177
+ "hardis:export:files:org",
6178
+ "export:hardis:files:org",
6179
+ "export:files:hardis:org",
6180
+ "export:files:org:hardis"
6181
+ ]
6182
+ },
6183
+ "hardis:org:files:import": {
6184
+ "aliases": [],
6185
+ "args": {},
6186
+ "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",
6187
+ "examples": [
6188
+ "$ sf hardis:org:files:import"
6189
+ ],
6190
+ "flags": {
6191
+ "json": {
6192
+ "description": "Format output as json.",
6193
+ "helpGroup": "GLOBAL",
6194
+ "name": "json",
6195
+ "allowNo": false,
6196
+ "type": "boolean"
6197
+ },
6198
+ "flags-dir": {
6199
+ "helpGroup": "GLOBAL",
6200
+ "name": "flags-dir",
6201
+ "summary": "Import flag values from a directory.",
6202
+ "hasDynamicHelp": false,
6203
+ "multiple": false,
6204
+ "type": "option"
6205
+ },
6206
+ "path": {
6207
+ "char": "p",
6208
+ "description": "Path to the file export project",
6209
+ "name": "path",
6210
+ "hasDynamicHelp": false,
6211
+ "multiple": false,
6212
+ "type": "option"
6213
+ },
6214
+ "overwrite": {
6215
+ "char": "f",
6216
+ "description": "Override existing files (doubles the number of API calls)",
6217
+ "name": "overwrite",
6218
+ "allowNo": false,
6219
+ "type": "boolean"
6220
+ },
6221
+ "debug": {
6222
+ "char": "d",
6223
+ "description": "Activate debug mode (more logs)",
6224
+ "name": "debug",
6225
+ "allowNo": false,
6226
+ "type": "boolean"
6227
+ },
6228
+ "websocket": {
6229
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
6230
+ "name": "websocket",
6231
+ "hasDynamicHelp": false,
6232
+ "multiple": false,
6233
+ "type": "option"
6234
+ },
6235
+ "skipauth": {
6236
+ "description": "Skip authentication check when a default username is required",
6237
+ "name": "skipauth",
6238
+ "allowNo": false,
6239
+ "type": "boolean"
6240
+ },
6241
+ "target-org": {
6242
+ "aliases": [
6243
+ "targetusername",
6244
+ "u"
6245
+ ],
6246
+ "char": "o",
6247
+ "deprecateAliases": true,
6248
+ "name": "target-org",
6249
+ "noCacheDefault": true,
6250
+ "required": true,
6251
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
6252
+ "hasDynamicHelp": true,
6253
+ "multiple": false,
6254
+ "type": "option"
6255
+ }
6256
+ },
6257
+ "hasDynamicHelp": true,
6258
+ "hiddenAliases": [],
6259
+ "id": "hardis:org:files:import",
6260
+ "pluginAlias": "sfdx-hardis",
6261
+ "pluginName": "sfdx-hardis",
6262
+ "pluginType": "core",
6263
+ "strict": true,
6264
+ "enableJsonFlag": true,
6265
+ "title": "Import files",
6266
+ "requiresProject": false,
6267
+ "isESM": true,
6268
+ "relativePath": [
6269
+ "lib",
6270
+ "commands",
6271
+ "hardis",
6272
+ "org",
6273
+ "files",
6274
+ "import.js"
6275
+ ],
6276
+ "aliasPermutations": [],
6277
+ "permutations": [
6278
+ "hardis:org:files:import",
6279
+ "org:hardis:files:import",
6280
+ "org:files:hardis:import",
6281
+ "org:files:import:hardis",
6282
+ "hardis:files:org:import",
6283
+ "files:hardis:org:import",
6284
+ "files:org:hardis:import",
6285
+ "files:org:import:hardis",
6286
+ "hardis:files:import:org",
6287
+ "files:hardis:import:org",
6288
+ "files:import:hardis:org",
6289
+ "files:import:org:hardis",
6290
+ "hardis:org:import:files",
6291
+ "org:hardis:import:files",
6292
+ "org:import:hardis:files",
6293
+ "org:import:files:hardis",
6294
+ "hardis:import:org:files",
6295
+ "import:hardis:org:files",
6296
+ "import:org:hardis:files",
6297
+ "import:org:files:hardis",
6298
+ "hardis:import:files:org",
6299
+ "import:hardis:files:org",
6300
+ "import:files:hardis:org",
6301
+ "import:files:org:hardis"
6302
+ ]
6303
+ },
6303
6304
  "hardis:org:fix:listviewmine": {
6304
6305
  "aliases": [],
6305
6306
  "args": {},
@@ -6732,7 +6733,7 @@
6732
6733
  "hardis:org:monitor:backup": {
6733
6734
  "aliases": [],
6734
6735
  "args": {},
6735
- "description": "Retrieve sfdx sources in the context of a monitoring backup\n\nThe command exists in 2 modes: filtered(default & recommended) and full.\n\n## Filtered mode (default, better performances)\n\nAutomatically skips metadatas from installed packages with namespace. \n\nYou can remove more metadata types from backup, especially in case you have too many metadatas and that provokes a crash, using:\n\n- Manual update of `manifest/package-skip-items.xml` config file (then commit & push in the same branch)\n\n- Environment variable MONITORING_BACKUP_SKIP_METADATA_TYPES (example: `MONITORING_BACKUP_SKIP_METADATA_TYPES=CustomLabel,StaticResource,Translation`): that will be applied to all monitoring branches.\n\n## Full mode\n\nActivate it with **--full** parameter, or variable MONITORING_BACKUP_MODE_FULL=true\n\nIgnores filters (namespaces items & manifest/package-skip-items.xm) to retrieve ALL metadatas, including those you might not care about (reports, translations...)\n\nAs we can retrieve only 10000 files by call, the list of all metadatas will be chunked to make multiple calls (and take more time than filtered mode)\n\n## In CI/CD\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-metadata-backup/) and can output Grafana, Slack and MsTeams Notifications.\n\n## Documentation\n\n[Doc generation (including visual flows)](https://sfdx-hardis.cloudity.com/hardis/doc/project2markdown/) is triggered at the end of the command.\n",
6736
+ "description": "Retrieve sfdx sources in the context of a monitoring backup\n\nThe command exists in 2 modes: filtered(default & recommended) and full.\n\n## Filtered mode (default, better performances)\n\nAutomatically skips metadatas from installed packages with namespace. \n\nYou can remove more metadata types from backup, especially in case you have too many metadatas and that provokes a crash, using:\n\n- Manual update of `manifest/package-skip-items.xml` config file (then commit & push in the same branch)\n\n- Environment variable MONITORING_BACKUP_SKIP_METADATA_TYPES (example: `MONITORING_BACKUP_SKIP_METADATA_TYPES=CustomLabel,StaticResource,Translation`): that will be applied to all monitoring branches.\n\n## Full mode\n\nActivate it with **--full** parameter, or variable MONITORING_BACKUP_MODE_FULL=true\n\nIgnores filters (namespaces items & manifest/package-skip-items.xm) to retrieve ALL metadatas, including those you might not care about (reports, translations...)\n\nAs we can retrieve only 10000 files by call, the list of all metadatas will be chunked to make multiple calls (and take more time than filtered mode)\n\n## In CI/CD\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-metadata-backup/) and can output Grafana, Slack and MsTeams Notifications.\n\n## Documentation\n\n[Doc generation (including visual flows)](https://sfdx-hardis.cloudity.com/hardis/doc/project2markdown/) is triggered at the end of the command.\n\nIf Flow history doc always display a single state, you probably need to update your workflow configuration:\n\n- on Gitlab: Env variable [`GIT_FETCH_EXTRA_FLAGS: --depth 10000`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.gitlab-ci.yml#L11)\n- on GitHub: [`fetch-depth: 0`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.github/workflows/org-monitoring.yml#L58)\n- on Azure: [`fetchDepth: \"0\"`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/azure-pipelines.yml#L39)\n- on Bitbucket: [`step: clone: depth: full`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/bitbucket-pipelines.yml#L18)\n",
6736
6737
  "examples": [
6737
6738
  "$ sf hardis:org:monitor:backup",
6738
6739
  "$ sf hardis:org:monitor:backup --full"
@@ -13883,5 +13884,5 @@
13883
13884
  ]
13884
13885
  }
13885
13886
  },
13886
- "version": "5.10.2-beta202412302338.0"
13887
+ "version": "5.10.2-beta202412310846.0"
13887
13888
  }