import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../utils/index.js";
//#region src/plus/saasAttendance/settings/serve.ts
/**
* 获取时区列表
* @param params
* @returns
*/
const getTimezoneList = (params) => {
	return request.getRequest().get("/api/timezone:list", params, {
		isNocobase: true,
		headers: { "x-data-source": "pisell2" }
	});
};
/**
* 获取所有成员列表 (用于选择添加)
* GET: /tenant/account
*/
const getAllMembers = function() {
	var _ref = _asyncToGenerator(function* (params = {}) {
		return (yield request.getRequest().get("/tenant/account", _objectSpread2({}, params))).data;
	});
	return function getAllMembers() {
		return _ref.apply(this, arguments);
	};
}();
(function() {
	var _ref2 = _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
export { getAllMembers, getTimezoneList };
