const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_asyncToGenerator = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
const require_index = require("../../../utils/index.js");
//#region src/plus/saasAttendance/settings/serve.ts
/**
* 获取时区列表
* @param params
* @returns
*/
const getTimezoneList = (params) => {
	return require_index.request.getRequest().get("/api/timezone:list", params, {
		isNocobase: true,
		headers: { "x-data-source": "pisell2" }
	});
};
/**
* 获取所有成员列表 (用于选择添加)
* GET: /tenant/account
*/
const getAllMembers = function() {
	var _ref = require_asyncToGenerator._asyncToGenerator(function* (params = {}) {
		return (yield require_index.request.getRequest().get("/tenant/account", require_objectSpread2._objectSpread2({}, params))).data;
	});
	return function getAllMembers() {
		return _ref.apply(this, arguments);
	};
}();
(function() {
	var _ref2 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return { data: params.ids.map((id) => ({
			id,
			name: `成员${id}`,
			email: `member${id}@example.com`
		})) };
	});
	return function getGroupMembers(_x) {
		return _ref2.apply(this, arguments);
	};
})();
//#endregion
exports.getAllMembers = getAllMembers;
exports.getTimezoneList = getTimezoneList;
