import { z } from 'zod';
import { globalOptionsZod } from '../../../../Command.js';
import { odata } from '../../../../utils/odata.js';
import GraphCommand from '../../../base/GraphCommand.js';
import commands from '../../commands.js';
export const options = z.strictObject({ ...globalOptionsZod.shape });
class EntraGroupSettingListCommand extends GraphCommand {
    get name() {
        return commands.GROUPSETTING_LIST;
    }
    get description() {
        return 'Lists Entra group settings';
    }
    defaultProperties() {
        return ['id', 'displayName'];
    }
    get schema() {
        return options;
    }
    async commandAction(logger) {
        try {
            const groupSettings = await odata.getAllItems(`${this.resource}/v1.0/groupSettings`);
            await logger.log(groupSettings);
        }
        catch (err) {
            this.handleRejectedODataJsonPromise(err);
        }
    }
}
export default new EntraGroupSettingListCommand();
//# sourceMappingURL=groupsetting-list.js.map