sfdx-hardis 5.11.1-beta202501041352.0 → 5.13.1-beta202501052303.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": {
@@ -563,9 +563,23 @@
563
563
  "name": "skipauth",
564
564
  "allowNo": false,
565
565
  "type": "boolean"
566
+ },
567
+ "target-org": {
568
+ "aliases": [
569
+ "targetusername",
570
+ "u"
571
+ ],
572
+ "char": "o",
573
+ "deprecateAliases": true,
574
+ "name": "target-org",
575
+ "noCacheDefault": true,
576
+ "summary": "Username or alias of the target org.",
577
+ "hasDynamicHelp": true,
578
+ "multiple": false,
579
+ "type": "option"
566
580
  }
567
581
  },
568
- "hasDynamicHelp": false,
582
+ "hasDynamicHelp": true,
569
583
  "hiddenAliases": [],
570
584
  "id": "hardis:doc:packagexml2markdown",
571
585
  "pluginAlias": "sfdx-hardis",
@@ -596,7 +610,7 @@
596
610
  "hardis:doc:project2markdown": {
597
611
  "aliases": [],
598
612
  "args": {},
599
- "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**](https://www.python.org/downloads/) 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",
613
+ "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\nIf it is a sfdx-hardis CI/CD project, a diagram of the branches and orgs strategy will be generated.\n\n![](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-doc-branches-strategy.jpg)\n\nIf you have a complex strategy, you might need to input property **mergeTargets** in branch-scoped sfdx-hardis.yml file to have a correct diagram.\n\n## Doc HTML Pages\n\nTo read the documentation as HTML pages, run the following code (you need [**Python**](https://www.python.org/downloads/) 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",
600
614
  "examples": [
601
615
  "$ sf hardis:doc:project2markdown",
602
616
  "$ sf hardis:doc:project2markdown --with-history"
@@ -648,9 +662,23 @@
648
662
  "name": "skipauth",
649
663
  "allowNo": false,
650
664
  "type": "boolean"
665
+ },
666
+ "target-org": {
667
+ "aliases": [
668
+ "targetusername",
669
+ "u"
670
+ ],
671
+ "char": "o",
672
+ "deprecateAliases": true,
673
+ "name": "target-org",
674
+ "noCacheDefault": true,
675
+ "summary": "Username or alias of the target org.",
676
+ "hasDynamicHelp": true,
677
+ "multiple": false,
678
+ "type": "option"
651
679
  }
652
680
  },
653
- "hasDynamicHelp": false,
681
+ "hasDynamicHelp": true,
654
682
  "hiddenAliases": [],
655
683
  "id": "hardis:doc:project2markdown",
656
684
  "pluginAlias": "sfdx-hardis",
@@ -4990,12 +5018,15 @@
4990
5018
  "import:data:org:hardis"
4991
5019
  ]
4992
5020
  },
4993
- "hardis:org:files:export": {
5021
+ "hardis:org:diagnose:audittrail": {
4994
5022
  "aliases": [],
4995
5023
  "args": {},
4996
- "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",
5024
+ "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",
4997
5025
  "examples": [
4998
- "$ sf hardis:org:files:export"
5026
+ "$ sf hardis:org:diagnose:audittrail",
5027
+ "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
5028
+ "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
5029
+ "$ sf hardis:org:diagnose:audittrail --lastndays 5"
4999
5030
  ],
5000
5031
  "flags": {
5001
5032
  "json": {
@@ -5013,37 +5044,26 @@
5013
5044
  "multiple": false,
5014
5045
  "type": "option"
5015
5046
  },
5016
- "path": {
5017
- "char": "p",
5018
- "description": "Path to the file export project",
5019
- "name": "path",
5020
- "hasDynamicHelp": false,
5021
- "multiple": false,
5022
- "type": "option"
5023
- },
5024
- "chunksize": {
5025
- "char": "c",
5026
- "description": "Number of records to add in a chunk before it is processed",
5027
- "name": "chunksize",
5028
- "default": 1000,
5047
+ "excludeusers": {
5048
+ "char": "e",
5049
+ "description": "Comma-separated list of usernames to exclude",
5050
+ "name": "excludeusers",
5029
5051
  "hasDynamicHelp": false,
5030
5052
  "multiple": false,
5031
5053
  "type": "option"
5032
5054
  },
5033
- "polltimeout": {
5055
+ "lastndays": {
5034
5056
  "char": "t",
5035
- "description": "Timeout in MS for Bulk API calls",
5036
- "name": "polltimeout",
5037
- "default": 300000,
5057
+ "description": "Number of days to extract from today (included)",
5058
+ "name": "lastndays",
5038
5059
  "hasDynamicHelp": false,
5039
5060
  "multiple": false,
5040
5061
  "type": "option"
5041
5062
  },
5042
- "startchunknumber": {
5043
- "char": "s",
5044
- "description": "Chunk number to start from",
5045
- "name": "startchunknumber",
5046
- "default": 0,
5063
+ "outputfile": {
5064
+ "char": "f",
5065
+ "description": "Force the path and name of output report file. Must end with .csv",
5066
+ "name": "outputfile",
5047
5067
  "hasDynamicHelp": false,
5048
5068
  "multiple": false,
5049
5069
  "type": "option"
@@ -5086,13 +5106,13 @@
5086
5106
  },
5087
5107
  "hasDynamicHelp": true,
5088
5108
  "hiddenAliases": [],
5089
- "id": "hardis:org:files:export",
5109
+ "id": "hardis:org:diagnose:audittrail",
5090
5110
  "pluginAlias": "sfdx-hardis",
5091
5111
  "pluginName": "sfdx-hardis",
5092
5112
  "pluginType": "core",
5093
5113
  "strict": true,
5094
5114
  "enableJsonFlag": true,
5095
- "title": "Export files",
5115
+ "title": "Diagnose content of Setup Audit Trail",
5096
5116
  "requiresProject": false,
5097
5117
  "isESM": true,
5098
5118
  "relativePath": [
@@ -5100,43 +5120,43 @@
5100
5120
  "commands",
5101
5121
  "hardis",
5102
5122
  "org",
5103
- "files",
5104
- "export.js"
5123
+ "diagnose",
5124
+ "audittrail.js"
5105
5125
  ],
5106
5126
  "aliasPermutations": [],
5107
5127
  "permutations": [
5108
- "hardis:org:files:export",
5109
- "org:hardis:files:export",
5110
- "org:files:hardis:export",
5111
- "org:files:export:hardis",
5112
- "hardis:files:org:export",
5113
- "files:hardis:org:export",
5114
- "files:org:hardis:export",
5115
- "files:org:export:hardis",
5116
- "hardis:files:export:org",
5117
- "files:hardis:export:org",
5118
- "files:export:hardis:org",
5119
- "files:export:org:hardis",
5120
- "hardis:org:export:files",
5121
- "org:hardis:export:files",
5122
- "org:export:hardis:files",
5123
- "org:export:files:hardis",
5124
- "hardis:export:org:files",
5125
- "export:hardis:org:files",
5126
- "export:org:hardis:files",
5127
- "export:org:files:hardis",
5128
- "hardis:export:files:org",
5129
- "export:hardis:files:org",
5130
- "export:files:hardis:org",
5131
- "export:files:org:hardis"
5128
+ "hardis:org:diagnose:audittrail",
5129
+ "org:hardis:diagnose:audittrail",
5130
+ "org:diagnose:hardis:audittrail",
5131
+ "org:diagnose:audittrail:hardis",
5132
+ "hardis:diagnose:org:audittrail",
5133
+ "diagnose:hardis:org:audittrail",
5134
+ "diagnose:org:hardis:audittrail",
5135
+ "diagnose:org:audittrail:hardis",
5136
+ "hardis:diagnose:audittrail:org",
5137
+ "diagnose:hardis:audittrail:org",
5138
+ "diagnose:audittrail:hardis:org",
5139
+ "diagnose:audittrail:org:hardis",
5140
+ "hardis:org:audittrail:diagnose",
5141
+ "org:hardis:audittrail:diagnose",
5142
+ "org:audittrail:hardis:diagnose",
5143
+ "org:audittrail:diagnose:hardis",
5144
+ "hardis:audittrail:org:diagnose",
5145
+ "audittrail:hardis:org:diagnose",
5146
+ "audittrail:org:hardis:diagnose",
5147
+ "audittrail:org:diagnose:hardis",
5148
+ "hardis:audittrail:diagnose:org",
5149
+ "audittrail:hardis:diagnose:org",
5150
+ "audittrail:diagnose:hardis:org",
5151
+ "audittrail:diagnose:org:hardis"
5132
5152
  ]
5133
5153
  },
5134
- "hardis:org:files:import": {
5154
+ "hardis:org:diagnose:instanceupgrade": {
5135
5155
  "aliases": [],
5136
5156
  "args": {},
5137
- "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",
5157
+ "description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
5138
5158
  "examples": [
5139
- "$ sf hardis:org:files:import"
5159
+ "$ sf hardis:org:diagnose:instanceupgrade"
5140
5160
  ],
5141
5161
  "flags": {
5142
5162
  "json": {
@@ -5154,21 +5174,6 @@
5154
5174
  "multiple": false,
5155
5175
  "type": "option"
5156
5176
  },
5157
- "path": {
5158
- "char": "p",
5159
- "description": "Path to the file export project",
5160
- "name": "path",
5161
- "hasDynamicHelp": false,
5162
- "multiple": false,
5163
- "type": "option"
5164
- },
5165
- "overwrite": {
5166
- "char": "f",
5167
- "description": "Override existing files (doubles the number of API calls)",
5168
- "name": "overwrite",
5169
- "allowNo": false,
5170
- "type": "boolean"
5171
- },
5172
5177
  "debug": {
5173
5178
  "char": "d",
5174
5179
  "description": "Activate debug mode (more logs)",
@@ -5207,13 +5212,13 @@
5207
5212
  },
5208
5213
  "hasDynamicHelp": true,
5209
5214
  "hiddenAliases": [],
5210
- "id": "hardis:org:files:import",
5215
+ "id": "hardis:org:diagnose:instanceupgrade",
5211
5216
  "pluginAlias": "sfdx-hardis",
5212
5217
  "pluginName": "sfdx-hardis",
5213
5218
  "pluginType": "core",
5214
5219
  "strict": true,
5215
5220
  "enableJsonFlag": true,
5216
- "title": "Import files",
5221
+ "title": "Get Instance Upgrade date",
5217
5222
  "requiresProject": false,
5218
5223
  "isESM": true,
5219
5224
  "relativePath": [
@@ -5221,247 +5226,8 @@
5221
5226
  "commands",
5222
5227
  "hardis",
5223
5228
  "org",
5224
- "files",
5225
- "import.js"
5226
- ],
5227
- "aliasPermutations": [],
5228
- "permutations": [
5229
- "hardis:org:files:import",
5230
- "org:hardis:files:import",
5231
- "org:files:hardis:import",
5232
- "org:files:import:hardis",
5233
- "hardis:files:org:import",
5234
- "files:hardis:org:import",
5235
- "files:org:hardis:import",
5236
- "files:org:import:hardis",
5237
- "hardis:files:import:org",
5238
- "files:hardis:import:org",
5239
- "files:import:hardis:org",
5240
- "files:import:org:hardis",
5241
- "hardis:org:import:files",
5242
- "org:hardis:import:files",
5243
- "org:import:hardis:files",
5244
- "org:import:files:hardis",
5245
- "hardis:import:org:files",
5246
- "import:hardis:org:files",
5247
- "import:org:hardis:files",
5248
- "import:org:files:hardis",
5249
- "hardis:import:files:org",
5250
- "import:hardis:files:org",
5251
- "import:files:hardis:org",
5252
- "import:files:org:hardis"
5253
- ]
5254
- },
5255
- "hardis:org:diagnose:audittrail": {
5256
- "aliases": [],
5257
- "args": {},
5258
- "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",
5259
- "examples": [
5260
- "$ sf hardis:org:diagnose:audittrail",
5261
- "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
5262
- "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
5263
- "$ sf hardis:org:diagnose:audittrail --lastndays 5"
5264
- ],
5265
- "flags": {
5266
- "json": {
5267
- "description": "Format output as json.",
5268
- "helpGroup": "GLOBAL",
5269
- "name": "json",
5270
- "allowNo": false,
5271
- "type": "boolean"
5272
- },
5273
- "flags-dir": {
5274
- "helpGroup": "GLOBAL",
5275
- "name": "flags-dir",
5276
- "summary": "Import flag values from a directory.",
5277
- "hasDynamicHelp": false,
5278
- "multiple": false,
5279
- "type": "option"
5280
- },
5281
- "excludeusers": {
5282
- "char": "e",
5283
- "description": "Comma-separated list of usernames to exclude",
5284
- "name": "excludeusers",
5285
- "hasDynamicHelp": false,
5286
- "multiple": false,
5287
- "type": "option"
5288
- },
5289
- "lastndays": {
5290
- "char": "t",
5291
- "description": "Number of days to extract from today (included)",
5292
- "name": "lastndays",
5293
- "hasDynamicHelp": false,
5294
- "multiple": false,
5295
- "type": "option"
5296
- },
5297
- "outputfile": {
5298
- "char": "f",
5299
- "description": "Force the path and name of output report file. Must end with .csv",
5300
- "name": "outputfile",
5301
- "hasDynamicHelp": false,
5302
- "multiple": false,
5303
- "type": "option"
5304
- },
5305
- "debug": {
5306
- "char": "d",
5307
- "description": "Activate debug mode (more logs)",
5308
- "name": "debug",
5309
- "allowNo": false,
5310
- "type": "boolean"
5311
- },
5312
- "websocket": {
5313
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5314
- "name": "websocket",
5315
- "hasDynamicHelp": false,
5316
- "multiple": false,
5317
- "type": "option"
5318
- },
5319
- "skipauth": {
5320
- "description": "Skip authentication check when a default username is required",
5321
- "name": "skipauth",
5322
- "allowNo": false,
5323
- "type": "boolean"
5324
- },
5325
- "target-org": {
5326
- "aliases": [
5327
- "targetusername",
5328
- "u"
5329
- ],
5330
- "char": "o",
5331
- "deprecateAliases": true,
5332
- "name": "target-org",
5333
- "noCacheDefault": true,
5334
- "required": true,
5335
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
5336
- "hasDynamicHelp": true,
5337
- "multiple": false,
5338
- "type": "option"
5339
- }
5340
- },
5341
- "hasDynamicHelp": true,
5342
- "hiddenAliases": [],
5343
- "id": "hardis:org:diagnose:audittrail",
5344
- "pluginAlias": "sfdx-hardis",
5345
- "pluginName": "sfdx-hardis",
5346
- "pluginType": "core",
5347
- "strict": true,
5348
- "enableJsonFlag": true,
5349
- "title": "Diagnose content of Setup Audit Trail",
5350
- "requiresProject": false,
5351
- "isESM": true,
5352
- "relativePath": [
5353
- "lib",
5354
- "commands",
5355
- "hardis",
5356
- "org",
5357
- "diagnose",
5358
- "audittrail.js"
5359
- ],
5360
- "aliasPermutations": [],
5361
- "permutations": [
5362
- "hardis:org:diagnose:audittrail",
5363
- "org:hardis:diagnose:audittrail",
5364
- "org:diagnose:hardis:audittrail",
5365
- "org:diagnose:audittrail:hardis",
5366
- "hardis:diagnose:org:audittrail",
5367
- "diagnose:hardis:org:audittrail",
5368
- "diagnose:org:hardis:audittrail",
5369
- "diagnose:org:audittrail:hardis",
5370
- "hardis:diagnose:audittrail:org",
5371
- "diagnose:hardis:audittrail:org",
5372
- "diagnose:audittrail:hardis:org",
5373
- "diagnose:audittrail:org:hardis",
5374
- "hardis:org:audittrail:diagnose",
5375
- "org:hardis:audittrail:diagnose",
5376
- "org:audittrail:hardis:diagnose",
5377
- "org:audittrail:diagnose:hardis",
5378
- "hardis:audittrail:org:diagnose",
5379
- "audittrail:hardis:org:diagnose",
5380
- "audittrail:org:hardis:diagnose",
5381
- "audittrail:org:diagnose:hardis",
5382
- "hardis:audittrail:diagnose:org",
5383
- "audittrail:hardis:diagnose:org",
5384
- "audittrail:diagnose:hardis:org",
5385
- "audittrail:diagnose:org:hardis"
5386
- ]
5387
- },
5388
- "hardis:org:diagnose:instanceupgrade": {
5389
- "aliases": [],
5390
- "args": {},
5391
- "description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
5392
- "examples": [
5393
- "$ sf hardis:org:diagnose:instanceupgrade"
5394
- ],
5395
- "flags": {
5396
- "json": {
5397
- "description": "Format output as json.",
5398
- "helpGroup": "GLOBAL",
5399
- "name": "json",
5400
- "allowNo": false,
5401
- "type": "boolean"
5402
- },
5403
- "flags-dir": {
5404
- "helpGroup": "GLOBAL",
5405
- "name": "flags-dir",
5406
- "summary": "Import flag values from a directory.",
5407
- "hasDynamicHelp": false,
5408
- "multiple": false,
5409
- "type": "option"
5410
- },
5411
- "debug": {
5412
- "char": "d",
5413
- "description": "Activate debug mode (more logs)",
5414
- "name": "debug",
5415
- "allowNo": false,
5416
- "type": "boolean"
5417
- },
5418
- "websocket": {
5419
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5420
- "name": "websocket",
5421
- "hasDynamicHelp": false,
5422
- "multiple": false,
5423
- "type": "option"
5424
- },
5425
- "skipauth": {
5426
- "description": "Skip authentication check when a default username is required",
5427
- "name": "skipauth",
5428
- "allowNo": false,
5429
- "type": "boolean"
5430
- },
5431
- "target-org": {
5432
- "aliases": [
5433
- "targetusername",
5434
- "u"
5435
- ],
5436
- "char": "o",
5437
- "deprecateAliases": true,
5438
- "name": "target-org",
5439
- "noCacheDefault": true,
5440
- "required": true,
5441
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
5442
- "hasDynamicHelp": true,
5443
- "multiple": false,
5444
- "type": "option"
5445
- }
5446
- },
5447
- "hasDynamicHelp": true,
5448
- "hiddenAliases": [],
5449
- "id": "hardis:org:diagnose:instanceupgrade",
5450
- "pluginAlias": "sfdx-hardis",
5451
- "pluginName": "sfdx-hardis",
5452
- "pluginType": "core",
5453
- "strict": true,
5454
- "enableJsonFlag": true,
5455
- "title": "Get Instance Upgrade date",
5456
- "requiresProject": false,
5457
- "isESM": true,
5458
- "relativePath": [
5459
- "lib",
5460
- "commands",
5461
- "hardis",
5462
- "org",
5463
- "diagnose",
5464
- "instanceupgrade.js"
5229
+ "diagnose",
5230
+ "instanceupgrade.js"
5465
5231
  ],
5466
5232
  "aliasPermutations": [],
5467
5233
  "permutations": [
@@ -6401,6 +6167,268 @@
6401
6167
  "unusedusers:diagnose:org:hardis"
6402
6168
  ]
6403
6169
  },
6170
+ "hardis:org:files:export": {
6171
+ "aliases": [],
6172
+ "args": {},
6173
+ "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",
6174
+ "examples": [
6175
+ "$ sf hardis:org:files:export"
6176
+ ],
6177
+ "flags": {
6178
+ "json": {
6179
+ "description": "Format output as json.",
6180
+ "helpGroup": "GLOBAL",
6181
+ "name": "json",
6182
+ "allowNo": false,
6183
+ "type": "boolean"
6184
+ },
6185
+ "flags-dir": {
6186
+ "helpGroup": "GLOBAL",
6187
+ "name": "flags-dir",
6188
+ "summary": "Import flag values from a directory.",
6189
+ "hasDynamicHelp": false,
6190
+ "multiple": false,
6191
+ "type": "option"
6192
+ },
6193
+ "path": {
6194
+ "char": "p",
6195
+ "description": "Path to the file export project",
6196
+ "name": "path",
6197
+ "hasDynamicHelp": false,
6198
+ "multiple": false,
6199
+ "type": "option"
6200
+ },
6201
+ "chunksize": {
6202
+ "char": "c",
6203
+ "description": "Number of records to add in a chunk before it is processed",
6204
+ "name": "chunksize",
6205
+ "default": 1000,
6206
+ "hasDynamicHelp": false,
6207
+ "multiple": false,
6208
+ "type": "option"
6209
+ },
6210
+ "polltimeout": {
6211
+ "char": "t",
6212
+ "description": "Timeout in MS for Bulk API calls",
6213
+ "name": "polltimeout",
6214
+ "default": 300000,
6215
+ "hasDynamicHelp": false,
6216
+ "multiple": false,
6217
+ "type": "option"
6218
+ },
6219
+ "startchunknumber": {
6220
+ "char": "s",
6221
+ "description": "Chunk number to start from",
6222
+ "name": "startchunknumber",
6223
+ "default": 0,
6224
+ "hasDynamicHelp": false,
6225
+ "multiple": false,
6226
+ "type": "option"
6227
+ },
6228
+ "debug": {
6229
+ "char": "d",
6230
+ "description": "Activate debug mode (more logs)",
6231
+ "name": "debug",
6232
+ "allowNo": false,
6233
+ "type": "boolean"
6234
+ },
6235
+ "websocket": {
6236
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
6237
+ "name": "websocket",
6238
+ "hasDynamicHelp": false,
6239
+ "multiple": false,
6240
+ "type": "option"
6241
+ },
6242
+ "skipauth": {
6243
+ "description": "Skip authentication check when a default username is required",
6244
+ "name": "skipauth",
6245
+ "allowNo": false,
6246
+ "type": "boolean"
6247
+ },
6248
+ "target-org": {
6249
+ "aliases": [
6250
+ "targetusername",
6251
+ "u"
6252
+ ],
6253
+ "char": "o",
6254
+ "deprecateAliases": true,
6255
+ "name": "target-org",
6256
+ "noCacheDefault": true,
6257
+ "required": true,
6258
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
6259
+ "hasDynamicHelp": true,
6260
+ "multiple": false,
6261
+ "type": "option"
6262
+ }
6263
+ },
6264
+ "hasDynamicHelp": true,
6265
+ "hiddenAliases": [],
6266
+ "id": "hardis:org:files:export",
6267
+ "pluginAlias": "sfdx-hardis",
6268
+ "pluginName": "sfdx-hardis",
6269
+ "pluginType": "core",
6270
+ "strict": true,
6271
+ "enableJsonFlag": true,
6272
+ "title": "Export files",
6273
+ "requiresProject": false,
6274
+ "isESM": true,
6275
+ "relativePath": [
6276
+ "lib",
6277
+ "commands",
6278
+ "hardis",
6279
+ "org",
6280
+ "files",
6281
+ "export.js"
6282
+ ],
6283
+ "aliasPermutations": [],
6284
+ "permutations": [
6285
+ "hardis:org:files:export",
6286
+ "org:hardis:files:export",
6287
+ "org:files:hardis:export",
6288
+ "org:files:export:hardis",
6289
+ "hardis:files:org:export",
6290
+ "files:hardis:org:export",
6291
+ "files:org:hardis:export",
6292
+ "files:org:export:hardis",
6293
+ "hardis:files:export:org",
6294
+ "files:hardis:export:org",
6295
+ "files:export:hardis:org",
6296
+ "files:export:org:hardis",
6297
+ "hardis:org:export:files",
6298
+ "org:hardis:export:files",
6299
+ "org:export:hardis:files",
6300
+ "org:export:files:hardis",
6301
+ "hardis:export:org:files",
6302
+ "export:hardis:org:files",
6303
+ "export:org:hardis:files",
6304
+ "export:org:files:hardis",
6305
+ "hardis:export:files:org",
6306
+ "export:hardis:files:org",
6307
+ "export:files:hardis:org",
6308
+ "export:files:org:hardis"
6309
+ ]
6310
+ },
6311
+ "hardis:org:files:import": {
6312
+ "aliases": [],
6313
+ "args": {},
6314
+ "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",
6315
+ "examples": [
6316
+ "$ sf hardis:org:files:import"
6317
+ ],
6318
+ "flags": {
6319
+ "json": {
6320
+ "description": "Format output as json.",
6321
+ "helpGroup": "GLOBAL",
6322
+ "name": "json",
6323
+ "allowNo": false,
6324
+ "type": "boolean"
6325
+ },
6326
+ "flags-dir": {
6327
+ "helpGroup": "GLOBAL",
6328
+ "name": "flags-dir",
6329
+ "summary": "Import flag values from a directory.",
6330
+ "hasDynamicHelp": false,
6331
+ "multiple": false,
6332
+ "type": "option"
6333
+ },
6334
+ "path": {
6335
+ "char": "p",
6336
+ "description": "Path to the file export project",
6337
+ "name": "path",
6338
+ "hasDynamicHelp": false,
6339
+ "multiple": false,
6340
+ "type": "option"
6341
+ },
6342
+ "overwrite": {
6343
+ "char": "f",
6344
+ "description": "Override existing files (doubles the number of API calls)",
6345
+ "name": "overwrite",
6346
+ "allowNo": false,
6347
+ "type": "boolean"
6348
+ },
6349
+ "debug": {
6350
+ "char": "d",
6351
+ "description": "Activate debug mode (more logs)",
6352
+ "name": "debug",
6353
+ "allowNo": false,
6354
+ "type": "boolean"
6355
+ },
6356
+ "websocket": {
6357
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
6358
+ "name": "websocket",
6359
+ "hasDynamicHelp": false,
6360
+ "multiple": false,
6361
+ "type": "option"
6362
+ },
6363
+ "skipauth": {
6364
+ "description": "Skip authentication check when a default username is required",
6365
+ "name": "skipauth",
6366
+ "allowNo": false,
6367
+ "type": "boolean"
6368
+ },
6369
+ "target-org": {
6370
+ "aliases": [
6371
+ "targetusername",
6372
+ "u"
6373
+ ],
6374
+ "char": "o",
6375
+ "deprecateAliases": true,
6376
+ "name": "target-org",
6377
+ "noCacheDefault": true,
6378
+ "required": true,
6379
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
6380
+ "hasDynamicHelp": true,
6381
+ "multiple": false,
6382
+ "type": "option"
6383
+ }
6384
+ },
6385
+ "hasDynamicHelp": true,
6386
+ "hiddenAliases": [],
6387
+ "id": "hardis:org:files:import",
6388
+ "pluginAlias": "sfdx-hardis",
6389
+ "pluginName": "sfdx-hardis",
6390
+ "pluginType": "core",
6391
+ "strict": true,
6392
+ "enableJsonFlag": true,
6393
+ "title": "Import files",
6394
+ "requiresProject": false,
6395
+ "isESM": true,
6396
+ "relativePath": [
6397
+ "lib",
6398
+ "commands",
6399
+ "hardis",
6400
+ "org",
6401
+ "files",
6402
+ "import.js"
6403
+ ],
6404
+ "aliasPermutations": [],
6405
+ "permutations": [
6406
+ "hardis:org:files:import",
6407
+ "org:hardis:files:import",
6408
+ "org:files:hardis:import",
6409
+ "org:files:import:hardis",
6410
+ "hardis:files:org:import",
6411
+ "files:hardis:org:import",
6412
+ "files:org:hardis:import",
6413
+ "files:org:import:hardis",
6414
+ "hardis:files:import:org",
6415
+ "files:hardis:import:org",
6416
+ "files:import:hardis:org",
6417
+ "files:import:org:hardis",
6418
+ "hardis:org:import:files",
6419
+ "org:hardis:import:files",
6420
+ "org:import:hardis:files",
6421
+ "org:import:files:hardis",
6422
+ "hardis:import:org:files",
6423
+ "import:hardis:org:files",
6424
+ "import:org:hardis:files",
6425
+ "import:org:files:hardis",
6426
+ "hardis:import:files:org",
6427
+ "import:hardis:files:org",
6428
+ "import:files:hardis:org",
6429
+ "import:files:org:hardis"
6430
+ ]
6431
+ },
6404
6432
  "hardis:org:fix:listviewmine": {
6405
6433
  "aliases": [],
6406
6434
  "args": {},
@@ -14140,5 +14168,5 @@
14140
14168
  ]
14141
14169
  }
14142
14170
  },
14143
- "version": "5.11.1-beta202501041352.0"
14171
+ "version": "5.13.1-beta202501052303.0"
14144
14172
  }