1 | ;
|
2 | /*
|
3 | * Copyright (c) 2020, 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.SandboxOrgConfig = void 0;
|
10 | const global_1 = require("../global");
|
11 | const configFile_1 = require("./configFile");
|
12 | /**
|
13 | * A config file that stores usernames for an org.
|
14 | */
|
15 | class SandboxOrgConfig extends configFile_1.ConfigFile {
|
16 | /**
|
17 | * Constructor.
|
18 | * **Do not directly construct instances of this class -- use {@link SandboxConfig.create} instead.**
|
19 | *
|
20 | * @param options The options for the class instance
|
21 | * @ignore
|
22 | */
|
23 | constructor(options) {
|
24 | super(options);
|
25 | }
|
26 | /**
|
27 | * Gets the config options for a given org ID.
|
28 | *
|
29 | * @param orgId The orgId. Generally this org would have multiple users configured.
|
30 | */
|
31 | static getOptions(orgId) {
|
32 | return {
|
33 | isGlobal: true,
|
34 | isState: true,
|
35 | filename: `${orgId}.sandbox.json`,
|
36 | orgId,
|
37 | stateFolder: global_1.Global.SFDX_STATE_FOLDER,
|
38 | };
|
39 | }
|
40 | }
|
41 | exports.SandboxOrgConfig = SandboxOrgConfig;
|
42 | (function (SandboxOrgConfig) {
|
43 | let Fields;
|
44 | (function (Fields) {
|
45 | /**
|
46 | * The username of the user who created the sandbox.
|
47 | */
|
48 | Fields["PROD_ORG_USERNAME"] = "prodOrgUsername";
|
49 | })(Fields = SandboxOrgConfig.Fields || (SandboxOrgConfig.Fields = {}));
|
50 | })(SandboxOrgConfig = exports.SandboxOrgConfig || (exports.SandboxOrgConfig = {}));
|
51 | //# sourceMappingURL=sandboxOrgConfig.js.map |
\ | No newline at end of file |