@salesforce/plugin-org 2.2.24 → 2.3.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/README.md +4 -0
- package/lib/commands/force/org/clone.d.ts +21 -9
- package/lib/commands/force/org/clone.js +52 -83
- package/lib/commands/force/org/clone.js.map +1 -1
- package/lib/commands/force/org/create.d.ts +27 -12
- package/lib/commands/force/org/create.js +87 -106
- package/lib/commands/force/org/create.js.map +1 -1
- package/lib/commands/force/org/delete.d.ts +14 -7
- package/lib/commands/force/org/delete.js +26 -16
- package/lib/commands/force/org/delete.js.map +1 -1
- package/lib/commands/force/org/status.d.ts +18 -6
- package/lib/commands/force/org/status.js +43 -37
- package/lib/commands/force/org/status.js.map +1 -1
- package/lib/commands/org/create/sandbox.d.ts +40 -0
- package/lib/commands/org/create/sandbox.js +245 -0
- package/lib/commands/org/create/sandbox.js.map +1 -0
- package/lib/commands/org/create/scratch.d.ts +30 -0
- package/lib/commands/org/create/scratch.js +183 -0
- package/lib/commands/org/create/scratch.js.map +1 -0
- package/lib/commands/org/delete/sandbox.d.ts +18 -0
- package/lib/commands/org/delete/sandbox.js +59 -0
- package/lib/commands/org/delete/sandbox.js.map +1 -0
- package/lib/commands/org/delete/scratch.d.ts +18 -0
- package/lib/commands/org/delete/scratch.js +52 -0
- package/lib/commands/org/delete/scratch.js.map +1 -0
- package/lib/commands/org/display.d.ts +20 -0
- package/lib/commands/{force/org → org}/display.js +38 -27
- package/lib/commands/org/display.js.map +1 -0
- package/lib/commands/org/list.d.ts +26 -0
- package/lib/commands/org/list.js +192 -0
- package/lib/commands/org/list.js.map +1 -0
- package/lib/commands/org/open.d.ts +25 -0
- package/lib/commands/{force/org → org}/open.js +47 -33
- package/lib/commands/org/open.js.map +1 -0
- package/lib/commands/org/resume/sandbox.d.ts +26 -0
- package/lib/commands/org/resume/sandbox.js +199 -0
- package/lib/commands/org/resume/sandbox.js.map +1 -0
- package/lib/commands/org/resume/scratch.d.ts +14 -0
- package/lib/commands/org/resume/scratch.js +61 -0
- package/lib/commands/org/resume/scratch.js.map +1 -0
- package/lib/shared/orgHighlighter.d.ts +2 -2
- package/lib/shared/orgHighlighter.js +7 -5
- package/lib/shared/orgHighlighter.js.map +1 -1
- package/lib/shared/orgHooks.d.ts +24 -0
- package/lib/shared/orgHooks.js +9 -0
- package/lib/shared/orgHooks.js.map +1 -0
- package/lib/shared/orgListUtil.d.ts +15 -25
- package/lib/shared/orgListUtil.js +71 -81
- package/lib/shared/orgListUtil.js.map +1 -1
- package/lib/shared/orgTypes.d.ts +39 -11
- package/lib/shared/sandboxCommandBase.d.ts +33 -0
- package/lib/shared/sandboxCommandBase.js +168 -0
- package/lib/shared/sandboxCommandBase.js.map +1 -0
- package/lib/shared/sandboxProgress.d.ts +28 -0
- package/lib/shared/sandboxProgress.js +104 -0
- package/lib/shared/sandboxProgress.js.map +1 -0
- package/lib/shared/sandboxReporter.d.ts +1 -1
- package/lib/shared/sandboxRequest.d.ts +9 -0
- package/lib/shared/sandboxRequest.js +58 -0
- package/lib/shared/sandboxRequest.js.map +1 -0
- package/lib/shared/scratchOrgOutput.d.ts +9 -0
- package/lib/shared/scratchOrgOutput.js +47 -0
- package/lib/shared/scratchOrgOutput.js.map +1 -0
- package/lib/shared/stagedProgress.d.ts +33 -0
- package/lib/shared/stagedProgress.js +98 -0
- package/lib/shared/stagedProgress.js.map +1 -0
- package/lib/shared/timeUtils.d.ts +10 -0
- package/lib/shared/timeUtils.js +37 -0
- package/lib/shared/timeUtils.js.map +1 -0
- package/lib/shared/utils.d.ts +1 -1
- package/lib/shared/utils.js.map +1 -1
- package/messages/clone.md +67 -0
- package/messages/create.md +125 -0
- package/messages/create.sandbox.md +123 -0
- package/messages/create_scratch.md +109 -0
- package/messages/delete.md +47 -0
- package/messages/delete_sandbox.md +46 -0
- package/messages/delete_scratch.md +42 -0
- package/messages/display.md +33 -0
- package/messages/list.md +65 -0
- package/messages/messages.md +81 -0
- package/messages/open.md +63 -0
- package/messages/resume.sandbox.md +71 -0
- package/messages/resume_scratch.md +41 -0
- package/messages/sandboxbase.md +17 -0
- package/messages/status.md +33 -0
- package/oclif.manifest.json +1191 -1
- package/package.json +136 -26
- package/lib/commands/force/org/display.d.ts +0 -11
- package/lib/commands/force/org/display.js.map +0 -1
- package/lib/commands/force/org/list.d.ts +0 -15
- package/lib/commands/force/org/list.js +0 -191
- package/lib/commands/force/org/list.js.map +0 -1
- package/lib/commands/force/org/open.d.ts +0 -15
- package/lib/commands/force/org/open.js.map +0 -1
- package/messages/clone.json +0 -24
- package/messages/create.json +0 -37
- package/messages/delete.json +0 -13
- package/messages/display.json +0 -11
- package/messages/list.json +0 -19
- package/messages/messages.json +0 -24
- package/messages/open.json +0 -19
- package/messages/status.json +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/force/org/create.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/force/org/create.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,iEAQqC;AACrC,2CAiB0B;AAC1B,mEAAsE;AACtE,qEAAkE;AAElE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAW3E,MAAa,MAAO,SAAQ,2BAAuB;IAAnD;;QA0EU,YAAO,GAAuC,EAAE,CAAC;IAyL3D,CAAC;IAtLQ,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEvD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,IAAA,8BAAY,EAAC,IAAI,E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,CAAC,oBAAoB,CAAC;QAClD,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACX,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,OAAO,CAAC;QACnB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;KAC5C,CAAC;CACH,CAAC"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type DeleteResult = {
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
export type DeleteResult = {
|
|
3
3
|
orgId: string;
|
|
4
4
|
username: string;
|
|
5
5
|
};
|
|
6
|
-
export declare class Delete extends
|
|
7
|
-
static readonly
|
|
8
|
-
static readonly supportsDevhubUsername = true;
|
|
6
|
+
export declare class Delete extends SfCommand<DeleteResult> {
|
|
7
|
+
static readonly summary: string;
|
|
9
8
|
static readonly description: string;
|
|
10
9
|
static readonly examples: string[];
|
|
11
|
-
static
|
|
10
|
+
static state: string;
|
|
11
|
+
static deprecationOptions: {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
static readonly flags: {
|
|
15
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
|
+
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
|
+
'no-prompt': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
19
|
+
};
|
|
12
20
|
run(): Promise<DeleteResult>;
|
|
13
21
|
}
|
|
14
|
-
export {};
|
|
@@ -7,25 +7,27 @@ exports.Delete = void 0;
|
|
|
7
7
|
* Licensed under the BSD 3-Clause license.
|
|
8
8
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
11
|
-
const command_1 = require("@salesforce/command");
|
|
10
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
12
11
|
const core_1 = require("@salesforce/core");
|
|
13
12
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
13
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'delete');
|
|
15
|
-
class Delete extends
|
|
14
|
+
class Delete extends sf_plugins_core_1.SfCommand {
|
|
16
15
|
async run() {
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
16
|
+
const { flags } = await this.parse(Delete);
|
|
17
|
+
const username = flags['target-org'].getUsername() ?? 'unknown username';
|
|
18
|
+
const orgId = flags['target-org'].getOrgId();
|
|
19
|
+
// the connection version can be set before using it to isSandbox and delete
|
|
20
|
+
flags['target-org'].getConnection(flags['api-version']);
|
|
21
|
+
const isSandbox = await flags['target-org'].isSandbox();
|
|
20
22
|
// read the config file for the org to be deleted, if it has a PROD_ORG_USERNAME entry, it's a sandbox
|
|
21
23
|
// we either need permission to proceed without a prompt OR get the user to confirm
|
|
22
|
-
if (
|
|
23
|
-
(await this.
|
|
24
|
+
if (flags['no-prompt'] ||
|
|
25
|
+
(await this.confirm(messages.getMessage('confirmDelete', [isSandbox ? 'sandbox' : 'scratch', username])))) {
|
|
24
26
|
let alreadyDeleted = false;
|
|
25
27
|
let successMessageKey = 'commandSandboxSuccess';
|
|
26
28
|
try {
|
|
27
29
|
// will determine if it's a scratch org or sandbox and will delete from the appropriate parent org (DevHub or Production)
|
|
28
|
-
await
|
|
30
|
+
await flags['target-org'].delete();
|
|
29
31
|
}
|
|
30
32
|
catch (e) {
|
|
31
33
|
if (e instanceof Error && e.name === 'ScratchOrgNotFound') {
|
|
@@ -38,7 +40,7 @@ class Delete extends command_1.SfdxCommand {
|
|
|
38
40
|
throw e;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
|
-
this.
|
|
43
|
+
this.log(isSandbox
|
|
42
44
|
? messages.getMessage(successMessageKey, [username])
|
|
43
45
|
: messages.getMessage(alreadyDeleted ? 'deleteOrgConfigOnlyCommandSuccess' : 'deleteOrgCommandSuccess', [
|
|
44
46
|
username,
|
|
@@ -48,14 +50,22 @@ class Delete extends command_1.SfdxCommand {
|
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
exports.Delete = Delete;
|
|
51
|
-
Delete.
|
|
52
|
-
Delete.supportsDevhubUsername = true;
|
|
53
|
+
Delete.summary = messages.getMessage('summary');
|
|
53
54
|
Delete.description = messages.getMessage('description');
|
|
54
|
-
Delete.examples = messages.
|
|
55
|
-
Delete.
|
|
56
|
-
|
|
55
|
+
Delete.examples = messages.getMessages('examples');
|
|
56
|
+
Delete.state = 'deprecated';
|
|
57
|
+
Delete.deprecationOptions = {
|
|
58
|
+
message: messages.getMessage('deprecation'),
|
|
59
|
+
};
|
|
60
|
+
Delete.flags = {
|
|
61
|
+
'target-org': sf_plugins_core_1.requiredOrgFlagWithDeprecations,
|
|
62
|
+
'api-version': sf_plugins_core_1.orgApiVersionFlagWithDeprecations,
|
|
63
|
+
'no-prompt': sf_plugins_core_1.Flags.boolean({
|
|
57
64
|
char: 'p',
|
|
58
|
-
|
|
65
|
+
summary: messages.getMessage('flags.noprompt'),
|
|
66
|
+
deprecateAliases: true,
|
|
67
|
+
aliases: ['noprompt'],
|
|
59
68
|
}),
|
|
69
|
+
loglevel: sf_plugins_core_1.loglevel,
|
|
60
70
|
};
|
|
61
71
|
//# sourceMappingURL=delete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/commands/force/org/delete.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRo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and } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { SandboxProcessObject } from '@salesforce/core';
|
|
3
|
-
export declare class OrgStatusCommand extends
|
|
4
|
-
static readonly
|
|
3
|
+
export declare class OrgStatusCommand extends SfCommand<SandboxProcessObject> {
|
|
4
|
+
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
6
|
-
static readonly
|
|
7
|
-
static
|
|
8
|
-
static
|
|
6
|
+
static readonly examples: string[];
|
|
7
|
+
static state: string;
|
|
8
|
+
static deprecationOptions: {
|
|
9
|
+
to: string;
|
|
10
|
+
version: string;
|
|
11
|
+
};
|
|
12
|
+
static readonly flags: {
|
|
13
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
14
|
+
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
|
+
sandboxname: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
|
+
setdefaultusername: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
setalias: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
18
|
+
wait: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/kit").Duration | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
19
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
20
|
+
};
|
|
9
21
|
run(): Promise<SandboxProcessObject>;
|
|
10
22
|
}
|
|
@@ -7,81 +7,87 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.OrgStatusCommand = void 0;
|
|
10
|
-
const
|
|
11
|
-
const command_1 = require("@salesforce/command");
|
|
10
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
12
11
|
const core_1 = require("@salesforce/core");
|
|
13
|
-
const kit_1 = require("@salesforce/kit");
|
|
14
12
|
const sandboxReporter_1 = require("../../../shared/sandboxReporter");
|
|
15
13
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
14
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'status');
|
|
17
|
-
class OrgStatusCommand extends
|
|
15
|
+
class OrgStatusCommand extends sf_plugins_core_1.SfCommand {
|
|
18
16
|
async run() {
|
|
19
|
-
|
|
17
|
+
const { flags } = await this.parse(OrgStatusCommand);
|
|
18
|
+
flags['target-org'].getConnection(flags['api-version']);
|
|
19
|
+
const logger = await core_1.Logger.child(this.constructor.name);
|
|
20
|
+
logger.debug('Status started with args %s ', flags);
|
|
20
21
|
const lifecycle = core_1.Lifecycle.getInstance();
|
|
21
|
-
|
|
22
|
-
lifecycle.on(core_1.SandboxEvents.EVENT_STATUS, async (results) => {
|
|
23
|
-
this.ux.log(sandboxReporter_1.SandboxReporter.sandboxProgress(results));
|
|
24
|
-
});
|
|
22
|
+
lifecycle.on(core_1.SandboxEvents.EVENT_STATUS, async (results) => Promise.resolve(this.log(sandboxReporter_1.SandboxReporter.sandboxProgress(results))));
|
|
25
23
|
lifecycle.on(core_1.SandboxEvents.EVENT_RESULT, async (results) => {
|
|
26
24
|
const resultMsg = `Sandbox ${results.sandboxProcessObj.SandboxName}(${results.sandboxProcessObj.Id}) is ready for use.`;
|
|
27
|
-
this.
|
|
25
|
+
this.log(resultMsg);
|
|
28
26
|
const { data } = sandboxReporter_1.SandboxReporter.logSandboxProcessResult(results);
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
27
|
+
this.styledHeader('Sandbox Org Status');
|
|
28
|
+
this.table(data, {
|
|
31
29
|
key: { header: 'Name' },
|
|
32
30
|
value: { header: 'Value' },
|
|
33
31
|
});
|
|
34
32
|
if (results.sandboxRes?.authUserName) {
|
|
35
|
-
if (
|
|
33
|
+
if (flags.setalias) {
|
|
36
34
|
const stateAggregator = await core_1.StateAggregator.getInstance();
|
|
37
|
-
stateAggregator.aliases.set(
|
|
35
|
+
stateAggregator.aliases.set(flags.setalias, results.sandboxRes.authUserName);
|
|
38
36
|
await stateAggregator.aliases.write();
|
|
39
|
-
|
|
37
|
+
logger.debug('Set Alias: %s result: %s', flags.setalias, results.sandboxRes.authUserName);
|
|
40
38
|
}
|
|
41
|
-
if (
|
|
39
|
+
if (flags.setdefaultusername) {
|
|
42
40
|
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
43
41
|
globalConfig.set(core_1.OrgConfigProperties.TARGET_ORG, results.sandboxRes.authUserName);
|
|
44
42
|
const result = await globalConfig.write();
|
|
45
|
-
|
|
43
|
+
logger.debug('Set defaultUsername: %s result: %s', flags.setdefaultusername, result);
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
});
|
|
49
|
-
|
|
50
|
-
const results = await
|
|
51
|
-
wait:
|
|
47
|
+
logger.debug('Calling auth for SandboxName args: %s ', flags.sandboxname);
|
|
48
|
+
const results = await flags['target-org'].sandboxStatus(flags.sandboxname, {
|
|
49
|
+
wait: flags.wait,
|
|
52
50
|
});
|
|
53
|
-
|
|
51
|
+
logger.debug('Results for auth call: %s ', results);
|
|
54
52
|
if (!results) {
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
53
|
+
this.styledHeader('Sandbox Org Creation Status');
|
|
54
|
+
this.log('No SandboxProcess Result Found');
|
|
57
55
|
}
|
|
58
56
|
return results;
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
exports.OrgStatusCommand = OrgStatusCommand;
|
|
62
|
-
OrgStatusCommand.
|
|
60
|
+
OrgStatusCommand.summary = messages.getMessage('summary');
|
|
63
61
|
OrgStatusCommand.description = messages.getMessage('description');
|
|
64
|
-
OrgStatusCommand.
|
|
65
|
-
OrgStatusCommand.
|
|
66
|
-
OrgStatusCommand.
|
|
67
|
-
|
|
62
|
+
OrgStatusCommand.examples = messages.getMessages('examples');
|
|
63
|
+
OrgStatusCommand.state = 'deprecated';
|
|
64
|
+
OrgStatusCommand.deprecationOptions = {
|
|
65
|
+
to: 'org:resume:sandbox',
|
|
66
|
+
version: '60.0',
|
|
67
|
+
};
|
|
68
|
+
OrgStatusCommand.flags = {
|
|
69
|
+
'target-org': sf_plugins_core_1.requiredOrgFlagWithDeprecations,
|
|
70
|
+
'api-version': sf_plugins_core_1.orgApiVersionFlagWithDeprecations,
|
|
71
|
+
sandboxname: sf_plugins_core_1.Flags.string({
|
|
68
72
|
char: 'n',
|
|
69
|
-
|
|
73
|
+
summary: messages.getMessage('flags.sandboxname'),
|
|
70
74
|
required: true,
|
|
71
75
|
}),
|
|
72
|
-
setdefaultusername:
|
|
76
|
+
setdefaultusername: sf_plugins_core_1.Flags.boolean({
|
|
73
77
|
char: 's',
|
|
74
|
-
|
|
78
|
+
summary: messages.getMessage('flags.setdefaultusername'),
|
|
75
79
|
}),
|
|
76
|
-
setalias:
|
|
80
|
+
setalias: sf_plugins_core_1.Flags.string({
|
|
77
81
|
char: 'a',
|
|
78
|
-
|
|
82
|
+
summary: messages.getMessage('flags.setalias'),
|
|
79
83
|
}),
|
|
80
|
-
wait:
|
|
84
|
+
wait: sf_plugins_core_1.Flags.duration({
|
|
85
|
+
unit: 'minutes',
|
|
81
86
|
char: 'w',
|
|
82
|
-
|
|
83
|
-
min:
|
|
84
|
-
|
|
87
|
+
summary: messages.getMessage('flags.wait'),
|
|
88
|
+
min: 2,
|
|
89
|
+
defaultValue: 6,
|
|
85
90
|
}),
|
|
91
|
+
loglevel: sf_plugins_core_1.loglevel,
|
|
86
92
|
};
|
|
87
93
|
//# sourceMappingURL=status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../src/commands/force/org/status.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,
|
|
1
|
+
{"version":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Q,CAAC,UAAU,CAAC,YAAY,CAAC;QAC1C,GAAG,EAAE,CAAC;QACN,YAAY,EAAE,CAAC;KAChB,CAAC;IACF,QAAQ,EAAR,0BAAQ;CACT,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SandboxProcessObject } from '@salesforce/core';
|
|
2
|
+
import * as Interfaces from '@oclif/core/lib/interfaces';
|
|
3
|
+
import { SandboxCommandBase } from '../../../shared/sandboxCommandBase';
|
|
4
|
+
export declare enum SandboxLicenseType {
|
|
5
|
+
developer = "Developer",
|
|
6
|
+
developerPro = "Developer_Pro",
|
|
7
|
+
partial = "Partial",
|
|
8
|
+
full = "Full"
|
|
9
|
+
}
|
|
10
|
+
export default class CreateSandbox extends SandboxCommandBase<SandboxProcessObject> {
|
|
11
|
+
static summary: string;
|
|
12
|
+
static description: string;
|
|
13
|
+
static examples: string[];
|
|
14
|
+
static readonly aliases: string[];
|
|
15
|
+
static readonly deprecateAliases = true;
|
|
16
|
+
static flags: {
|
|
17
|
+
'definition-file': Interfaces.OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
18
|
+
'set-default': Interfaces.BooleanFlag<boolean>;
|
|
19
|
+
alias: Interfaces.OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
20
|
+
wait: Interfaces.OptionFlag<import("@salesforce/kit").Duration | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
21
|
+
'poll-interval': Interfaces.OptionFlag<import("@salesforce/kit").Duration | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
22
|
+
async: Interfaces.BooleanFlag<boolean>;
|
|
23
|
+
name: Interfaces.OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
24
|
+
clone: Interfaces.OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
25
|
+
'license-type': Interfaces.OptionFlag<SandboxLicenseType, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
26
|
+
'target-org': Interfaces.OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
27
|
+
'no-prompt': Interfaces.BooleanFlag<boolean>;
|
|
28
|
+
'no-track-source': Interfaces.BooleanFlag<boolean>;
|
|
29
|
+
};
|
|
30
|
+
static readonly state = "beta";
|
|
31
|
+
private flags;
|
|
32
|
+
run(): Promise<SandboxProcessObject>;
|
|
33
|
+
protected getCheckSandboxStatusParams(): string[];
|
|
34
|
+
private createSandboxRequest;
|
|
35
|
+
private createSandbox;
|
|
36
|
+
private initSandboxProcessData;
|
|
37
|
+
private confirmSandboxReq;
|
|
38
|
+
private validateFlags;
|
|
39
|
+
private getSourceId;
|
|
40
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SandboxLicenseType = void 0;
|
|
10
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
11
|
+
const core_1 = require("@salesforce/core");
|
|
12
|
+
const sandboxRequest_1 = require("../../../shared/sandboxRequest");
|
|
13
|
+
const sandboxCommandBase_1 = require("../../../shared/sandboxCommandBase");
|
|
14
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
15
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'create.sandbox');
|
|
16
|
+
var SandboxLicenseType;
|
|
17
|
+
(function (SandboxLicenseType) {
|
|
18
|
+
SandboxLicenseType["developer"] = "Developer";
|
|
19
|
+
SandboxLicenseType["developerPro"] = "Developer_Pro";
|
|
20
|
+
SandboxLicenseType["partial"] = "Partial";
|
|
21
|
+
SandboxLicenseType["full"] = "Full";
|
|
22
|
+
})(SandboxLicenseType = exports.SandboxLicenseType || (exports.SandboxLicenseType = {}));
|
|
23
|
+
const getLicenseTypes = () => Object.values(SandboxLicenseType);
|
|
24
|
+
class CreateSandbox extends sandboxCommandBase_1.SandboxCommandBase {
|
|
25
|
+
async run() {
|
|
26
|
+
this.sandboxRequestConfig = await this.getSandboxRequestConfig();
|
|
27
|
+
this.flags = (await this.parse(CreateSandbox)).flags;
|
|
28
|
+
this.debug('Create started with args %s ', this.flags);
|
|
29
|
+
this.validateFlags();
|
|
30
|
+
return this.createSandbox();
|
|
31
|
+
}
|
|
32
|
+
getCheckSandboxStatusParams() {
|
|
33
|
+
return [
|
|
34
|
+
this.config.bin,
|
|
35
|
+
...(this.latestSandboxProgressObj ? [this.latestSandboxProgressObj.Id] : []),
|
|
36
|
+
this.flags['target-org'].getUsername(),
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
async createSandboxRequest() {
|
|
40
|
+
// reuse the existing sandbox request generator, with this command's flags as the varargs
|
|
41
|
+
const { sandboxReq } = await (0, sandboxRequest_1.createSandboxRequest)(false, this.flags['definition-file'], undefined, {
|
|
42
|
+
...(this.flags.name ? { SandboxName: this.flags.name } : {}),
|
|
43
|
+
...(!this.flags.clone && this.flags['license-type'] ? { LicenseType: this.flags['license-type'] } : {}),
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
...sandboxReq,
|
|
47
|
+
...(this.flags.clone ? { SourceId: await this.getSourceId() } : {}),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
async createSandbox() {
|
|
51
|
+
const lifecycle = core_1.Lifecycle.getInstance();
|
|
52
|
+
this.registerLifecycleListeners(lifecycle, {
|
|
53
|
+
isAsync: this.flags.async,
|
|
54
|
+
setDefault: this.flags['set-default'],
|
|
55
|
+
alias: this.flags.alias,
|
|
56
|
+
prodOrg: this.flags['target-org'],
|
|
57
|
+
tracksSource: this.flags['no-track-source'] === true ? false : undefined,
|
|
58
|
+
});
|
|
59
|
+
const sandboxReq = await this.createSandboxRequest();
|
|
60
|
+
await this.confirmSandboxReq({ ...sandboxReq, ...(this.flags.clone ? { CloneSource: this.flags.clone } : {}) });
|
|
61
|
+
this.initSandboxProcessData(sandboxReq);
|
|
62
|
+
if (!this.flags.async) {
|
|
63
|
+
this.spinner.start('Sandbox Create');
|
|
64
|
+
}
|
|
65
|
+
this.debug('Calling create with SandboxRequest: %s ', sandboxReq);
|
|
66
|
+
try {
|
|
67
|
+
const sandboxProcessObject = await this.flags['target-org'].createSandbox(sandboxReq, {
|
|
68
|
+
wait: this.flags.wait,
|
|
69
|
+
interval: this.flags['poll-interval'],
|
|
70
|
+
async: this.flags.async,
|
|
71
|
+
});
|
|
72
|
+
this.latestSandboxProgressObj = sandboxProcessObject;
|
|
73
|
+
this.saveSandboxProgressConfig();
|
|
74
|
+
if (this.flags.async) {
|
|
75
|
+
process.exitCode = 68;
|
|
76
|
+
}
|
|
77
|
+
return sandboxProcessObject;
|
|
78
|
+
}
|
|
79
|
+
catch (err) {
|
|
80
|
+
this.spinner.stop();
|
|
81
|
+
if (this.pollingTimeOut && this.latestSandboxProgressObj) {
|
|
82
|
+
void lifecycle.emit(core_1.SandboxEvents.EVENT_ASYNC_RESULT, undefined);
|
|
83
|
+
process.exitCode = 68;
|
|
84
|
+
return this.latestSandboxProgressObj;
|
|
85
|
+
}
|
|
86
|
+
else if (err instanceof core_1.SfError &&
|
|
87
|
+
err.name === 'SandboxCreateNotCompleteError' &&
|
|
88
|
+
this.latestSandboxProgressObj) {
|
|
89
|
+
void lifecycle.emit(core_1.SandboxEvents.EVENT_ASYNC_RESULT, undefined);
|
|
90
|
+
process.exitCode = 68;
|
|
91
|
+
return this.latestSandboxProgressObj;
|
|
92
|
+
}
|
|
93
|
+
throw err;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
initSandboxProcessData(sandboxReq) {
|
|
97
|
+
this.sandboxRequestData = {
|
|
98
|
+
...this.sandboxRequestData,
|
|
99
|
+
alias: this.flags.alias,
|
|
100
|
+
setDefault: this.flags['set-default'],
|
|
101
|
+
prodOrgUsername: this.flags['target-org'].getUsername(),
|
|
102
|
+
sandboxProcessObject: {
|
|
103
|
+
SandboxName: sandboxReq.SandboxName,
|
|
104
|
+
},
|
|
105
|
+
sandboxRequest: sandboxReq,
|
|
106
|
+
tracksSource: this.flags['no-track-source'] === true ? false : undefined,
|
|
107
|
+
};
|
|
108
|
+
this.saveSandboxProgressConfig();
|
|
109
|
+
}
|
|
110
|
+
async confirmSandboxReq(sandboxReq) {
|
|
111
|
+
if (this.flags['no-prompt'] || this.jsonEnabled())
|
|
112
|
+
return;
|
|
113
|
+
const columns = {
|
|
114
|
+
key: { header: 'Field' },
|
|
115
|
+
value: { header: 'Value' },
|
|
116
|
+
};
|
|
117
|
+
const data = Object.entries(sandboxReq).map(([key, value]) => ({ key, value }));
|
|
118
|
+
this.styledHeader('Config Sandbox Request');
|
|
119
|
+
this.table(data, columns, {});
|
|
120
|
+
const configurationCorrect = await this.timedPrompt([
|
|
121
|
+
{
|
|
122
|
+
name: 'continue',
|
|
123
|
+
type: 'confirm',
|
|
124
|
+
message: messages.getMessage('isConfigurationOk'),
|
|
125
|
+
},
|
|
126
|
+
], 10000);
|
|
127
|
+
if (!configurationCorrect.continue) {
|
|
128
|
+
throw messages.createError('error.UserNotSatisfiedWithSandboxConfig');
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
validateFlags() {
|
|
132
|
+
if (!this.flags['poll-interval'] || !this.flags.wait) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (this.flags['poll-interval'].seconds > this.flags.wait.seconds) {
|
|
136
|
+
throw messages.createError('error.pollIntervalGreaterThanWait', [
|
|
137
|
+
this.flags['poll-interval'].seconds,
|
|
138
|
+
this.flags.wait.seconds,
|
|
139
|
+
]);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
async getSourceId() {
|
|
143
|
+
if (!this.flags.clone) {
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
146
|
+
try {
|
|
147
|
+
const sourceOrg = await this.flags['target-org'].querySandboxProcessBySandboxName(this.flags.clone);
|
|
148
|
+
return sourceOrg.SandboxInfoId;
|
|
149
|
+
}
|
|
150
|
+
catch (err) {
|
|
151
|
+
throw messages.createError('error.noCloneSource', [this.flags.clone], [], err);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.default = CreateSandbox;
|
|
156
|
+
CreateSandbox.summary = messages.getMessage('summary');
|
|
157
|
+
CreateSandbox.description = messages.getMessage('description');
|
|
158
|
+
CreateSandbox.examples = messages.getMessages('examples');
|
|
159
|
+
CreateSandbox.aliases = ['env:create:sandbox'];
|
|
160
|
+
CreateSandbox.deprecateAliases = true;
|
|
161
|
+
CreateSandbox.flags = {
|
|
162
|
+
// needs to change when new flags are available
|
|
163
|
+
'definition-file': sf_plugins_core_1.Flags.file({
|
|
164
|
+
exists: true,
|
|
165
|
+
char: 'f',
|
|
166
|
+
summary: messages.getMessage('flags.definitionFile.summary'),
|
|
167
|
+
description: messages.getMessage('flags.definitionFile.description'),
|
|
168
|
+
exclusive: ['name', 'license-type'],
|
|
169
|
+
}),
|
|
170
|
+
'set-default': sf_plugins_core_1.Flags.boolean({
|
|
171
|
+
char: 's',
|
|
172
|
+
summary: messages.getMessage('flags.setDefault.summary'),
|
|
173
|
+
}),
|
|
174
|
+
alias: sf_plugins_core_1.Flags.string({
|
|
175
|
+
char: 'a',
|
|
176
|
+
summary: messages.getMessage('flags.alias.summary'),
|
|
177
|
+
description: messages.getMessage('flags.alias.description'),
|
|
178
|
+
}),
|
|
179
|
+
wait: sf_plugins_core_1.Flags.duration({
|
|
180
|
+
char: 'w',
|
|
181
|
+
summary: messages.getMessage('flags.wait.summary'),
|
|
182
|
+
description: messages.getMessage('flags.wait.description'),
|
|
183
|
+
min: 1,
|
|
184
|
+
unit: 'minutes',
|
|
185
|
+
defaultValue: 30,
|
|
186
|
+
helpValue: '<minutes>',
|
|
187
|
+
exclusive: ['async'],
|
|
188
|
+
}),
|
|
189
|
+
'poll-interval': sf_plugins_core_1.Flags.duration({
|
|
190
|
+
char: 'i',
|
|
191
|
+
summary: messages.getMessage('flags.poll-interval.summary'),
|
|
192
|
+
min: 15,
|
|
193
|
+
unit: 'seconds',
|
|
194
|
+
defaultValue: 30,
|
|
195
|
+
helpValue: '<seconds>',
|
|
196
|
+
exclusive: ['async'],
|
|
197
|
+
}),
|
|
198
|
+
async: sf_plugins_core_1.Flags.boolean({
|
|
199
|
+
summary: messages.getMessage('flags.async.summary'),
|
|
200
|
+
description: messages.getMessage('flags.async.description'),
|
|
201
|
+
exclusive: ['wait', 'poll-interval'],
|
|
202
|
+
}),
|
|
203
|
+
name: sf_plugins_core_1.Flags.string({
|
|
204
|
+
char: 'n',
|
|
205
|
+
summary: messages.getMessage('flags.name.summary'),
|
|
206
|
+
description: messages.getMessage('flags.name.description'),
|
|
207
|
+
exclusive: ['definition-file'],
|
|
208
|
+
parse: (name) => {
|
|
209
|
+
if (name.length > 10) {
|
|
210
|
+
throw messages.createError('error.SandboxNameLength', [name]);
|
|
211
|
+
}
|
|
212
|
+
return Promise.resolve(name);
|
|
213
|
+
},
|
|
214
|
+
}),
|
|
215
|
+
clone: sf_plugins_core_1.Flags.string({
|
|
216
|
+
char: 'c',
|
|
217
|
+
summary: messages.getMessage('flags.clone.summary'),
|
|
218
|
+
description: messages.getMessage('flags.clone.description'),
|
|
219
|
+
exclusive: ['license-type'],
|
|
220
|
+
}),
|
|
221
|
+
'license-type': sf_plugins_core_1.Flags.custom({
|
|
222
|
+
options: getLicenseTypes(),
|
|
223
|
+
})({
|
|
224
|
+
char: 'l',
|
|
225
|
+
summary: messages.getMessage('flags.licenseType.summary'),
|
|
226
|
+
exclusive: ['definition-file', 'clone'],
|
|
227
|
+
default: SandboxLicenseType.developer,
|
|
228
|
+
}),
|
|
229
|
+
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
230
|
+
char: 'o',
|
|
231
|
+
summary: messages.getMessage('flags.targetOrg.summary'),
|
|
232
|
+
description: messages.getMessage('flags.targetOrg.description'),
|
|
233
|
+
required: true,
|
|
234
|
+
}),
|
|
235
|
+
'no-prompt': sf_plugins_core_1.Flags.boolean({
|
|
236
|
+
summary: messages.getMessage('flags.noPrompt.summary'),
|
|
237
|
+
}),
|
|
238
|
+
'no-track-source': sf_plugins_core_1.Flags.boolean({
|
|
239
|
+
summary: messages.getMessage('flags.no-track-source.summary'),
|
|
240
|
+
description: messages.getMessage('flags.no-track-source.description'),
|
|
241
|
+
allowNo: false,
|
|
242
|
+
}),
|
|
243
|
+
};
|
|
244
|
+
CreateSandbox.state = 'beta';
|
|
245
|
+
//# sourceMappingURL=sandbox.js.map
|