UNPKG

1.21 kBJavaScriptView Raw
1"use strict";
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 */
8Object.defineProperty(exports, "__esModule", { value: true });
9exports.OrgUsersConfig = void 0;
10const configFile_1 = require("./configFile");
11/**
12 * A config file that stores usernames for an org.
13 */
14class OrgUsersConfig extends configFile_1.ConfigFile {
15 /**
16 * Constructor.
17 * **Do not directly construct instances of this class -- use {@link OrgUsersConfig.create} instead.**
18 *
19 * @param options The options for the class instance
20 * @ignore
21 */
22 constructor(options) {
23 super(options);
24 }
25 /**
26 * Gets the config options for a given org ID.
27 *
28 * @param orgId The orgId. Generally this org would have multiple users configured.
29 */
30 static getOptions(orgId) {
31 return {
32 isGlobal: true,
33 isState: true,
34 filename: `${orgId}.json`,
35 orgId,
36 };
37 }
38}
39exports.OrgUsersConfig = OrgUsersConfig;
40//# sourceMappingURL=orgUsersConfig.js.map
\No newline at end of file