@salesforce/core
Version:
Core libraries to interact with SFDX projects, orgs, and APIs.
60 lines • 2.06 kB
JavaScript
;
/*
* Copyright 2026, Salesforce, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.SandboxOrgConfig = void 0;
const global_1 = require("../global");
const configFile_1 = require("./configFile");
/**
* A config file that stores usernames for an org.
*/
class SandboxOrgConfig extends configFile_1.ConfigFile {
/**
* Constructor.
* **Do not directly construct instances of this class -- use {@link SandboxConfig.create} instead.**
*
* @param options The options for the class instance
* @ignore
*/
constructor(options) {
super(options);
}
/**
* Gets the config options for a given org ID.
*
* @param orgId The orgId. Generally this org would have multiple users configured.
*/
static getOptions(orgId) {
return {
isGlobal: true,
isState: true,
filename: `${orgId}.sandbox.json`,
orgId,
stateFolder: global_1.Global.SFDX_STATE_FOLDER,
};
}
}
exports.SandboxOrgConfig = SandboxOrgConfig;
(function (SandboxOrgConfig) {
let Fields;
(function (Fields) {
/**
* The username of the user who created the sandbox.
*/
Fields["PROD_ORG_USERNAME"] = "prodOrgUsername";
})(Fields = SandboxOrgConfig.Fields || (SandboxOrgConfig.Fields = {}));
})(SandboxOrgConfig || (exports.SandboxOrgConfig = SandboxOrgConfig = {}));
//# sourceMappingURL=sandboxOrgConfig.js.map