@salesforce/core
Version:
Core libraries to interact with SFDX projects, orgs, and APIs.
51 lines • 1.67 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.OrgUsersConfig = void 0;
const global_1 = require("../global");
const configFile_1 = require("./configFile");
/**
* A config file that stores usernames for an org.
*/
class OrgUsersConfig extends configFile_1.ConfigFile {
/**
* Constructor.
* **Do not directly construct instances of this class -- use {@link OrgUsersConfig.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}.json`,
orgId,
stateFolder: global_1.Global.SFDX_STATE_FOLDER,
};
}
}
exports.OrgUsersConfig = OrgUsersConfig;
//# sourceMappingURL=orgUsersConfig.js.map