sfdx-deliverability-access 0.0.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.
- package/LICENSE.md +21 -0
- package/README.md +38 -0
- package/lib/commands/deliverability/access.d.ts +25 -0
- package/lib/commands/deliverability/access.js +100 -0
- package/lib/commands/deliverability/access.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -0
- package/messages/org.json +10 -0
- package/oclif.manifest.json +1 -0
- package/package.json +88 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Max Goldfarb
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
sfdx-deliverability-access
|
|
3
|
+
======================
|
|
4
|
+
## `sfdx deliverability:access [-l <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
5
|
+
|
|
6
|
+
This SFDX Plugin was created to set Email Deliverability Access Level for an org easily and quickly. This project uses Selenium, Webdriver and headless browsing to open Setup in the target org and set Email Deliverability Access Level to the desired value.
|
|
7
|
+
```
|
|
8
|
+
USAGE
|
|
9
|
+
$ sfdx deliverability:access [-l <string>] [-u <string>] [--json] [--loglevel
|
|
10
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
11
|
+
|
|
12
|
+
OPTIONS
|
|
13
|
+
-l, --level=level
|
|
14
|
+
No access: None, none, n, 0
|
|
15
|
+
System email only: System, system, s, 1
|
|
16
|
+
All email: All, all, a, 2)
|
|
17
|
+
|
|
18
|
+
-u, --user=user
|
|
19
|
+
Username or alias for the target org; overrides default target org
|
|
20
|
+
|
|
21
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
22
|
+
[default: warn] logging level for this command invocation
|
|
23
|
+
|
|
24
|
+
EXAMPLES
|
|
25
|
+
sfdx deliverability:access --level All
|
|
26
|
+
sfdx deliverability:access --level None
|
|
27
|
+
sfdx deliverability:access --level System
|
|
28
|
+
sfdx deliverability:access --level a -u gfarb@github.com
|
|
29
|
+
```
|
|
30
|
+
## Version History
|
|
31
|
+
|
|
32
|
+
* 0.1
|
|
33
|
+
|
|
34
|
+
* Initial Release
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
This project is licensed under the MIT License - see the LICENSE.md file for details
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
+
export interface JsonResponse {
|
|
3
|
+
status: number;
|
|
4
|
+
result: Result;
|
|
5
|
+
}
|
|
6
|
+
export interface Result {
|
|
7
|
+
orgId: string;
|
|
8
|
+
url: string;
|
|
9
|
+
username: string;
|
|
10
|
+
}
|
|
11
|
+
export default class Access extends SfdxCommand {
|
|
12
|
+
static description: string;
|
|
13
|
+
static examples: string[];
|
|
14
|
+
static args: {
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
protected static flagsConfig: {
|
|
18
|
+
level: flags.Discriminated<flags.String>;
|
|
19
|
+
user: flags.Discriminated<flags.String>;
|
|
20
|
+
};
|
|
21
|
+
protected static requiresProject: boolean;
|
|
22
|
+
run(): Promise<void>;
|
|
23
|
+
private parseOrgData;
|
|
24
|
+
private toggleDeliverability;
|
|
25
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const os = require("os");
|
|
4
|
+
const child_process_1 = require("child_process");
|
|
5
|
+
const command_1 = require("@salesforce/command");
|
|
6
|
+
const core_1 = require("@salesforce/core");
|
|
7
|
+
const webdriver = require("selenium-webdriver");
|
|
8
|
+
const chrome = require("selenium-webdriver/chrome");
|
|
9
|
+
const until = require("selenium-webdriver/lib/until");
|
|
10
|
+
require('chromedriver');
|
|
11
|
+
const accessValuesMap = new Map([
|
|
12
|
+
['none', '0'],
|
|
13
|
+
['n', '0'],
|
|
14
|
+
['0', '0'],
|
|
15
|
+
['system', '1'],
|
|
16
|
+
['s', '1'],
|
|
17
|
+
['1', '1'],
|
|
18
|
+
['all', '2'],
|
|
19
|
+
['a', '2'],
|
|
20
|
+
['2', '2'],
|
|
21
|
+
]);
|
|
22
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
23
|
+
const messages = core_1.Messages.loadMessages('sfdx-deliverability-access', 'org');
|
|
24
|
+
class Access extends command_1.SfdxCommand {
|
|
25
|
+
async run() {
|
|
26
|
+
this.ux.startSpinner('Attempting to set Email Deliverability Access Level');
|
|
27
|
+
const accessLevel = this.flags.level;
|
|
28
|
+
const childElementIndex = String(accessValuesMap.get(accessLevel.toLowerCase()));
|
|
29
|
+
if (Number(childElementIndex) > -1 && Number(childElementIndex) < 3) {
|
|
30
|
+
const accessUrl = await this.parseOrgData(String(this.flags.user));
|
|
31
|
+
void this.toggleDeliverability(accessUrl, childElementIndex);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.ux.stopSpinner('Access Level could not be set');
|
|
35
|
+
throw new core_1.SfdxError(`${accessLevel} is not a valid value for the Level flag.`, 'Invalid value for Level flag');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
parseOrgData(user) {
|
|
39
|
+
return new Promise((resolve) => {
|
|
40
|
+
const orgDataCommand = (user === null || user === void 0 ? void 0 : user.length) > 0 ? `sfdx force:org:open -r --json -u ${user}` : 'sfdx force:org:open -r --json';
|
|
41
|
+
(0, child_process_1.exec)(orgDataCommand, (error, stdout, stderr) => {
|
|
42
|
+
if (error) {
|
|
43
|
+
this.ux.stopSpinner('Access Level could not be set');
|
|
44
|
+
throw new core_1.SfdxError(error.message, error.name);
|
|
45
|
+
}
|
|
46
|
+
if (stderr) {
|
|
47
|
+
this.ux.stopSpinner('Access Level could not be set');
|
|
48
|
+
throw new core_1.SfdxError(stderr, 'sfdx force:org:open');
|
|
49
|
+
}
|
|
50
|
+
if (stdout) {
|
|
51
|
+
const response = JSON.parse(stdout);
|
|
52
|
+
resolve(response.result.url.replace('my.salesforce', 'lightning.force') +
|
|
53
|
+
'&retURL=/lightning/setup/OrgEmailSettings/home');
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
async toggleDeliverability(accessUrl, childElementIndex) {
|
|
59
|
+
const options = new chrome.Options();
|
|
60
|
+
// .addArguments('--no-sandbox')
|
|
61
|
+
// .addArguments('--disable-dev-shm-usage')
|
|
62
|
+
// .addArguments('--headless');
|
|
63
|
+
const driver = await new webdriver.Builder().forBrowser('chrome').setChromeOptions(options).build();
|
|
64
|
+
try {
|
|
65
|
+
await driver.manage().setTimeouts({ implicit: 30000, pageLoad: 30000, script: 30000 });
|
|
66
|
+
await driver.get(accessUrl);
|
|
67
|
+
await driver.wait(until.titleIs('Deliverability | Salesforce'), 30000);
|
|
68
|
+
await driver.sleep(3000);
|
|
69
|
+
await driver.switchTo().frame(0);
|
|
70
|
+
const scriptToSetAccessLevel = `document.getElementsByClassName('pbSubsection')[0].children[0].children[0].children[0].children[0].children[0].children[${childElementIndex}].selected=true`;
|
|
71
|
+
await driver.executeScript(scriptToSetAccessLevel);
|
|
72
|
+
await driver.findElement(webdriver.By.id('thePage:theForm:editBlock:buttons:saveBtn')).click();
|
|
73
|
+
await driver.sleep(1000);
|
|
74
|
+
this.ux.stopSpinner('Email Deliverability Access Level has been set!');
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
this.ux.stopSpinner('Access Level could not be set');
|
|
78
|
+
this.ux.log(`The following error occurred:\n${String(error)}`);
|
|
79
|
+
}
|
|
80
|
+
finally {
|
|
81
|
+
await driver.quit();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.default = Access;
|
|
86
|
+
Access.description = messages.getMessage('commandDescription');
|
|
87
|
+
Access.examples = messages.getMessage('examples').split(os.EOL);
|
|
88
|
+
Access.args = [{ name: 'file' }];
|
|
89
|
+
Access.flagsConfig = {
|
|
90
|
+
level: command_1.flags.string({
|
|
91
|
+
char: 'l',
|
|
92
|
+
description: messages.getMessage('levelFlagDescription'),
|
|
93
|
+
}),
|
|
94
|
+
user: command_1.flags.string({
|
|
95
|
+
char: 'u',
|
|
96
|
+
description: messages.getMessage('userFlagDescription'),
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
Access.requiresProject = false;
|
|
100
|
+
//# sourceMappingURL=access.js.map
|
|
@@ -0,0 +1 @@
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C,EAAE,CAAC,CAAC;SAChE;gBAAS;YACR,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;SACrB;IACH,CAAC;;AAhFH,yBAiFC;AAhFe,kBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,eAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAEzD,WAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AAEvB,kBAAW,GAAG;IAC7B,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KACzD,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;KACxD,CAAC;CACH,CAAC;AAEe,sBAAe,GAAG,KAAK,CAAC"}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commandDescription": "Set Email Deliverability Access Level for an org.",
|
|
3
|
+
"userFlagDescription": "Username or alias for the target org; overrides default target org",
|
|
4
|
+
"levelFlagDescription": "No access: None, none, n, 0\nSystem email only: System, system, s, 1\nAll email: All, all, a, 2",
|
|
5
|
+
"examples": [
|
|
6
|
+
"sfdx deliverability:access --level All",
|
|
7
|
+
"sfdx deliverability:access --level None",
|
|
8
|
+
"sfdx deliverability:access --level System"
|
|
9
|
+
]
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"0.0.0","commands":{"deliverability:access":{"id":"deliverability:access","description":"Set Email Deliverability Access Level for an org.","usage":"<%= command.id %> [-l <string>] [-u <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-deliverability-access","pluginType":"core","aliases":[],"examples":["sfdx deliverability:access --level All","sfdx deliverability:access --level None","sfdx deliverability:access --level System"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"level":{"name":"level","type":"option","char":"l","description":"No access: None, none, n, 0\nSystem email only: System, system, s, 1\nAll email: All, all, a, 2"},"user":{"name":"user","type":"option","char":"u","description":"Username or alias for the target org; overrides default target org"}},"args":[{"name":"file"}]}}}
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sfdx-deliverability-access",
|
|
3
|
+
"description": "email deliv",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"author": "gfarb @gfarb",
|
|
6
|
+
"bugs": "https://github.com/gfarb/sfdx-deliverability-access/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@oclif/command": "^1",
|
|
9
|
+
"@oclif/config": "^1",
|
|
10
|
+
"@oclif/errors": "^1",
|
|
11
|
+
"@salesforce/command": "^4",
|
|
12
|
+
"@salesforce/core": "^2",
|
|
13
|
+
"chromedriver": "^99.0.0",
|
|
14
|
+
"selenium-webdriver": "^4.1.1",
|
|
15
|
+
"tslib": "^2"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@oclif/dev-cli": "^1",
|
|
19
|
+
"@oclif/plugin-help": "^3",
|
|
20
|
+
"@oclif/test": "^1",
|
|
21
|
+
"@salesforce/dev-config": "^2",
|
|
22
|
+
"@salesforce/dev-scripts": "^0",
|
|
23
|
+
"@salesforce/prettier-config": "^0",
|
|
24
|
+
"@salesforce/ts-sinon": "^1",
|
|
25
|
+
"@types/chai": "^4",
|
|
26
|
+
"@types/jsforce": "^1.9.29",
|
|
27
|
+
"@types/mocha": "^8",
|
|
28
|
+
"@types/selenium-webdriver": "^4.0.18",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^4",
|
|
30
|
+
"@typescript-eslint/parser": "^4",
|
|
31
|
+
"chai": "^4",
|
|
32
|
+
"eslint": "^7",
|
|
33
|
+
"eslint-config-oclif": "^3.1",
|
|
34
|
+
"eslint-config-prettier": "^8",
|
|
35
|
+
"eslint-config-salesforce": "^0",
|
|
36
|
+
"eslint-config-salesforce-typescript": "^0",
|
|
37
|
+
"eslint-plugin-header": "^3",
|
|
38
|
+
"eslint-plugin-import": "^2",
|
|
39
|
+
"eslint-plugin-jsdoc": "^35",
|
|
40
|
+
"eslint-plugin-prettier": "^3",
|
|
41
|
+
"eslint-plugin-typescript": "^0",
|
|
42
|
+
"globby": "^11",
|
|
43
|
+
"husky": "^4",
|
|
44
|
+
"mocha": "^8",
|
|
45
|
+
"nyc": "^15",
|
|
46
|
+
"prettier": "^2",
|
|
47
|
+
"pretty-quick": "^3",
|
|
48
|
+
"sinon": "10.0.0",
|
|
49
|
+
"ts-node": "^10",
|
|
50
|
+
"typescript": "4"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=12.0.0"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"/lib",
|
|
57
|
+
"/messages",
|
|
58
|
+
"/npm-shrinkwrap.json",
|
|
59
|
+
"/oclif.manifest.json"
|
|
60
|
+
],
|
|
61
|
+
"homepage": "https://github.com/gfarb/sfdx-deliverability-access",
|
|
62
|
+
"keywords": [
|
|
63
|
+
"sfdx-plugin"
|
|
64
|
+
],
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"oclif": {
|
|
67
|
+
"commands": "./lib/commands",
|
|
68
|
+
"bin": "sfdx",
|
|
69
|
+
"topics": {
|
|
70
|
+
"hello": {
|
|
71
|
+
"description": "Commands to say hello."
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"devPlugins": [
|
|
75
|
+
"@oclif/plugin-help"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"repository": "gfarb/sfdx-deliverability-access",
|
|
79
|
+
"scripts": {
|
|
80
|
+
"build": "tsc -p .",
|
|
81
|
+
"lint": "eslint src/**/*.ts test/**/*.ts",
|
|
82
|
+
"postpack": "rm -f oclif.manifest.json",
|
|
83
|
+
"posttest": "eslint src/**/*.ts test/**/*.ts",
|
|
84
|
+
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
|
|
85
|
+
"test": "nyc --extension .ts --require ts-node/register mocha --forbid-only \"test/**/*.test.ts\"",
|
|
86
|
+
"version": "oclif-dev readme && git add README.md"
|
|
87
|
+
}
|
|
88
|
+
}
|