@salesforce/plugin-org 2.8.0 → 2.8.1
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/lib/commands/org/create/sandbox.d.ts +2 -7
- package/lib/commands/org/create/sandbox.js +2 -10
- package/lib/commands/org/create/sandbox.js.map +1 -1
- package/lib/shared/orgTypes.d.ts +6 -0
- package/lib/shared/orgTypes.js +8 -0
- package/lib/shared/orgTypes.js.map +1 -1
- package/lib/shared/sandboxRequest.js +2 -2
- package/lib/shared/sandboxRequest.js.map +1 -1
- package/messages/clone.md +0 -4
- package/messages/create.md +0 -4
- package/oclif.manifest.json +1 -2
- package/package.json +8 -8
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { SandboxProcessObject } from '@salesforce/core';
|
|
2
2
|
import * as Interfaces from '@oclif/core/lib/interfaces';
|
|
3
3
|
import { SandboxCommandBase } from '../../../shared/sandboxCommandBase';
|
|
4
|
-
|
|
5
|
-
developer = "Developer",
|
|
6
|
-
developerPro = "Developer_Pro",
|
|
7
|
-
partial = "Partial",
|
|
8
|
-
full = "Full"
|
|
9
|
-
}
|
|
4
|
+
import { SandboxLicenseType } from '../../../shared/orgTypes';
|
|
10
5
|
export default class CreateSandbox extends SandboxCommandBase<SandboxProcessObject> {
|
|
11
6
|
static summary: string;
|
|
12
7
|
static description: string;
|
|
@@ -22,7 +17,7 @@ export default class CreateSandbox extends SandboxCommandBase<SandboxProcessObje
|
|
|
22
17
|
async: Interfaces.BooleanFlag<boolean>;
|
|
23
18
|
name: Interfaces.OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
24
19
|
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>;
|
|
20
|
+
'license-type': Interfaces.OptionFlag<SandboxLicenseType | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
26
21
|
'target-org': Interfaces.OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
27
22
|
'no-prompt': Interfaces.BooleanFlag<boolean>;
|
|
28
23
|
'no-track-source': Interfaces.BooleanFlag<boolean>;
|
|
@@ -6,21 +6,14 @@
|
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.SandboxLicenseType = void 0;
|
|
10
9
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
11
10
|
const core_1 = require("@salesforce/core");
|
|
12
11
|
const sandboxRequest_1 = require("../../../shared/sandboxRequest");
|
|
13
12
|
const sandboxCommandBase_1 = require("../../../shared/sandboxCommandBase");
|
|
13
|
+
const orgTypes_1 = require("../../../shared/orgTypes");
|
|
14
14
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
15
15
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'create.sandbox');
|
|
16
|
-
|
|
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);
|
|
16
|
+
const getLicenseTypes = () => Object.values(orgTypes_1.SandboxLicenseType);
|
|
24
17
|
class CreateSandbox extends sandboxCommandBase_1.SandboxCommandBase {
|
|
25
18
|
async run() {
|
|
26
19
|
this.sandboxRequestConfig = await this.getSandboxRequestConfig();
|
|
@@ -228,7 +221,6 @@ CreateSandbox.flags = {
|
|
|
228
221
|
char: 'l',
|
|
229
222
|
summary: messages.getMessage('flags.licenseType.summary'),
|
|
230
223
|
exclusive: ['definition-file', 'clone'],
|
|
231
|
-
default: SandboxLicenseType.developer,
|
|
232
224
|
}),
|
|
233
225
|
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
234
226
|
char: 'o',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../../src/commands/org/create/sandbox.ts"],"names":[],"mappings":";AAAA;;;;;GAKG
|
|
1
|
+
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../../src/commands/org/create/sandbox.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,iEAAoD;AACpD,2CAAqH;AAGrH,mEAAsE;AACtE,2EAAwE;AACxE,uDAA8D;AAE9D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AAEnF,MAAM,eAAe,GAAG,GAAa,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,6BAAkB,CAAC,CAAC;AAI1E,MAAqB,aAAc,SAAQ,uCAAwC;IA2F1E,KAAK,CAAC,GAAG;QACd,IAAI,CAAC,oBAAoB,GAAG,MAAM,IAAI,CAAC,uBAAuB,EAAE,CAAC;QACjE,IAAI,CAAC,KAAK,GAAG,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;QACrD,IAAI,CAAC,KAAK,CAAC,8BAA8B,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACvD,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAES,2BAA2B;QACnC,OAAO;YACL,IAAI,CAAC,MAAM,CAAC,GAAG;YACf,GAAG,CAAC,IAAI,CAAC,wBAA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AAI;KACf,CAAC;IACF,WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;KACvD,CAAC;IACF,iBAAiB,EAAE,uBAAK,CAAC,OAAO,CAAC;QAC/B,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,+BAA+B,CAAC;QAC7D,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,mCAAmC,CAAC;QACrE,OAAO,EAAE,KAAK;KACf,CAAC;CACH,CAAC"}
|
package/lib/shared/orgTypes.d.ts
CHANGED
package/lib/shared/orgTypes.js
CHANGED
|
@@ -6,4 +6,12 @@
|
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SandboxLicenseType = void 0;
|
|
10
|
+
var SandboxLicenseType;
|
|
11
|
+
(function (SandboxLicenseType) {
|
|
12
|
+
SandboxLicenseType["developer"] = "Developer";
|
|
13
|
+
SandboxLicenseType["developerPro"] = "Developer_Pro";
|
|
14
|
+
SandboxLicenseType["partial"] = "Partial";
|
|
15
|
+
SandboxLicenseType["full"] = "Full";
|
|
16
|
+
})(SandboxLicenseType = exports.SandboxLicenseType || (exports.SandboxLicenseType = {}));
|
|
9
17
|
//# sourceMappingURL=orgTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orgTypes.js","sourceRoot":"","sources":["../../src/shared/orgTypes.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
1
|
+
{"version":3,"file":"orgTypes.js","sourceRoot":"","sources":["../../src/shared/orgTypes.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAgGH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,oDAA8B,CAAA;IAC9B,yCAAmB,CAAA;IACnB,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B"}
|
|
@@ -10,8 +10,8 @@ exports.createSandboxRequest = exports.generateSboxName = void 0;
|
|
|
10
10
|
const fs = require("fs");
|
|
11
11
|
const core_1 = require("@salesforce/core");
|
|
12
12
|
const utils_1 = require("./utils");
|
|
13
|
+
const orgTypes_1 = require("./orgTypes");
|
|
13
14
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'create');
|
|
15
15
|
const cloneMessages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'clone');
|
|
16
16
|
const generateSboxName = async () => {
|
|
17
17
|
// sandbox names are 10 chars or less, a radix of 36 = [a-z][0-9]
|
|
@@ -49,7 +49,7 @@ async function createSandboxRequest(isClone = false, definitionFile, logger, pro
|
|
|
49
49
|
}
|
|
50
50
|
else {
|
|
51
51
|
if (!sandboxReq.LicenseType) {
|
|
52
|
-
|
|
52
|
+
return { sandboxReq: { ...sandboxReq, LicenseType: orgTypes_1.SandboxLicenseType.developer } };
|
|
53
53
|
}
|
|
54
54
|
return { sandboxReq };
|
|
55
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandboxRequest.js","sourceRoot":"","sources":["../../src/shared/sandboxRequest.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,2CAAwF;AACxF,mCAAuC;
|
|
1
|
+
{"version":3,"file":"sandboxRequest.js","sourceRoot":"","sources":["../../src/shared/sandboxRequest.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,2CAAwF;AACxF,mCAAuC;AACvC,yCAAgD;AAEhD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,aAAa,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;AAExE,MAAM,gBA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AE,UAAU,CAAC,CAAC;IAElF,IAAI,OAAO,EAAE;QACX,IAAI,CAAC,iBAAiB,EAAE;YACtB,wEAAwE;YACxE,MAAM,IAAI,cAAO,CACf,aAAa,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAC3E,aAAa,CAAC,UAAU,CAAC,gCAAgC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAClF,CAAC;SACH;QACD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC;KAC1D;SAAM;QACL,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE;YAC3B,OAAO,EAAE,UAAU,EAAE,EAAE,GAAG,UAAU,EAAE,WAAW,EAAE,6BAAkB,CAAC,SAAS,EAAE,EAAE,CAAC;SACrF;QACD,OAAO,EAAE,UAAU,EAAE,CAAC;KACvB;AACH,CAAC;AA5CD,oDA4CC"}
|
package/messages/clone.md
CHANGED
|
@@ -46,10 +46,6 @@ Sets the streaming client socket timeout, in minutes. If the streaming client so
|
|
|
46
46
|
|
|
47
47
|
The sandbox org cloning process %s is in progress. Run "sfdx force:org:status -n %s" to check for status. If the org is ready, checking the status also logs the requesting user in to the sandbox org and authorizes the org for use with Salesforce CLI.
|
|
48
48
|
|
|
49
|
-
# missingLicenseType
|
|
50
|
-
|
|
51
|
-
The sandbox license type is required, but you didn't provide a value. Specify the license type in the sandbox definition file with the "licenseType" option, or specify the option as a name-value pair at the command-line. See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm for more information.
|
|
52
|
-
|
|
53
49
|
# commandOrganizationTypeNotSupport
|
|
54
50
|
|
|
55
51
|
The only supported org type is: %s
|
package/messages/create.md
CHANGED
|
@@ -104,10 +104,6 @@ The sandbox org creation process %s is in progress. Run "sfdx force:org:status -
|
|
|
104
104
|
|
|
105
105
|
This command requires a username. Specify it with the -u parameter or with the "sfdx config:set defaultusername=<username>" command.
|
|
106
106
|
|
|
107
|
-
# missingLicenseType
|
|
108
|
-
|
|
109
|
-
The sandbox license type is required, but you didn't provide a value. Specify the license type in the sandbox definition file with the "licenseType" option, or specify the option as a name-value pair at the command-line. See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm for more information.
|
|
110
|
-
|
|
111
107
|
# dnsTimeout
|
|
112
108
|
|
|
113
109
|
The sandbox was successfully created and authenticated. However, the sandbox DNS records aren't ready yet and so the sandbox may not be available. Run "org:list" and check if the sandbox is listed correctly. If it isn't listed, run "force:org:status" to view its status and, if necessary, authenticate to it again. If this issue happens frequently, try setting the SFDX_DNS_TIMEOUT environment variable to a larger number; the default value is 3 seconds.
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.8.
|
|
2
|
+
"version": "2.8.1",
|
|
3
3
|
"commands": {
|
|
4
4
|
"org:display": {
|
|
5
5
|
"id": "org:display",
|
|
@@ -821,7 +821,6 @@
|
|
|
821
821
|
"definition-file",
|
|
822
822
|
"clone"
|
|
823
823
|
],
|
|
824
|
-
"default": "Developer",
|
|
825
824
|
"deprecateAliases": true
|
|
826
825
|
},
|
|
827
826
|
"target-org": {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "Commands to interact with Salesforce orgs",
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@oclif/core": "^2.8.
|
|
10
|
-
"@salesforce/core": "^3.
|
|
9
|
+
"@oclif/core": "^2.8.4",
|
|
10
|
+
"@salesforce/core": "^3.36.0",
|
|
11
11
|
"@salesforce/kit": "^1.9.2",
|
|
12
|
-
"@salesforce/sf-plugins-core": "^2.
|
|
13
|
-
"@salesforce/source-deploy-retrieve": "^8.0.
|
|
12
|
+
"@salesforce/sf-plugins-core": "^2.4.0",
|
|
13
|
+
"@salesforce/source-deploy-retrieve": "^8.0.5",
|
|
14
14
|
"open": "^8.4.2",
|
|
15
15
|
"tslib": "^2"
|
|
16
16
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"eslint-plugin-header": "^3.0.0",
|
|
37
37
|
"eslint-plugin-import": "2.27.5",
|
|
38
38
|
"eslint-plugin-jsdoc": "^40.0.3",
|
|
39
|
-
"eslint-plugin-sf-plugin": "^1.
|
|
39
|
+
"eslint-plugin-sf-plugin": "^1.15.1",
|
|
40
40
|
"husky": "^7.0.4",
|
|
41
41
|
"mocha": "^10.2.0",
|
|
42
42
|
"moment": "^2.29.1",
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
"sfdx": {
|
|
238
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.8.
|
|
239
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.8.
|
|
238
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.8.1.crt",
|
|
239
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.8.1.sig"
|
|
240
240
|
}
|
|
241
241
|
}
|