const require_runtime = require("../../_virtual/_rolldown/runtime.js");
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/components/ticketBooking/serve.ts
var serve_exports = /* @__PURE__ */ require_runtime.__exportAll({
	addNotesByOrder: () => addNotesByOrder,
	createBooking: () => createBooking,
	createEventBooking: () => createEventBooking,
	editBooking: () => editBooking,
	editBookingStatus: () => editBookingStatus,
	editEventBooking: () => editEventBooking,
	editNoteByOrder: () => editNoteByOrder,
	editOrderNote: () => editOrderNote,
	getAddonsByOrderId: () => getAddonsByOrderId,
	getBookingConfig: () => getBookingConfig,
	getBookingDetail: () => getBookingDetail,
	getBookingList2: () => getBookingList2,
	getClients: () => getClients,
	getClientsEs: () => getClientsEs,
	getDepositShow: () => getDepositShow,
	getEventBookingDetail: () => getEventBookingDetail,
	getFormRecords: () => getFormRecords,
	getForms: () => getForms,
	getNotesByOrder: () => getNotesByOrder,
	getOrderInfoByCode: () => getOrderInfoByCode,
	getPaymentList: () => getPaymentList,
	getPets: () => getPets,
	getPetsData: () => getPetsData,
	getProductList: () => getProductList,
	getProducts: () => getProducts,
	getRefundInfo: () => getRefundInfo,
	getResources: () => getResources,
	getServices: () => getServices,
	removeNoteByOrder: () => removeNoteByOrder,
	saveAddonsByOrderId: () => saveAddonsByOrderId,
	saveBookingFormData: () => saveBookingFormData,
	voidAppointment: () => voidAppointment
});
const prefix = "/shop";
/**
* @title: 获取客户列表
* @description: 获取客户列表
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getClients = function() {
	var _ref = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/customer/select-list", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getClients(_x) {
		return _ref.apply(this, arguments);
	};
}();
/**
* @title: 获取服务列表
* @description: 查询服务列表
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getServices = function() {
	var _ref2 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		const { _config } = params;
		let res = yield require_index.request.getRequest().post(prefix + "/product/query", params, _config);
		if (_config === null || _config === void 0 ? void 0 : _config.fullResult) return res;
		return res.data;
	});
	return function getServices(_x2) {
		return _ref2.apply(this, arguments);
	};
}();
/**
* @title: 获取资源列表
* @description: 资源列表
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getResources = function() {
	var _ref3 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/form/schedule", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getResources(_x3) {
		return _ref3.apply(this, arguments);
	};
}();
/**
* @title: 获取产品列表
* @description: 查询产品列表
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getProducts = function() {
	var _ref4 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().post(prefix + "/product/query", params);
		return data;
	});
	return function getProducts(_x4) {
		return _ref4.apply(this, arguments);
	};
}();
/**
* @title: 获取表单列表
* @description: 获取关联记录表单列表
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getForms = function() {
	var _ref5 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/form/relation/record", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getForms(_x5) {
		return _ref5.apply(this, arguments);
	};
}();
/**
* @title: 获取预约配置
* @description: 获取预约相关配置信息
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getBookingConfig = function() {
	var _ref6 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/core/board/management/config", require_objectSpread2._objectSpread2({ item_type: "appointment_booking" }, params), { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getBookingConfig(_x6) {
		return _ref6.apply(this, arguments);
	};
}();
/**
* @title: 获取宠物信息
* @description: 根据ID获取宠物信息
* @param {string} formId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getPets = function() {
	var _ref7 = require_asyncToGenerator._asyncToGenerator(function* (formId, params) {
		let { data } = yield require_index.request.getRequest().get(`/form/${formId}`, params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getPets(_x7, _x8) {
		return _ref7.apply(this, arguments);
	};
}();
/**
* @title: 获取宠物数据
* @description: 获取宠物数据
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getPetsData = function() {
	var _ref8 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/form/data/v1", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getPetsData(_x9) {
		return _ref8.apply(this, arguments);
	};
}();
/**
* @title: 创建预约
* @description: 创建新的预约记录
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const createBooking = function() {
	var _ref9 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().post(prefix + "/order/appointment", params);
		return data;
	});
	return function createBooking(_x10) {
		return _ref9.apply(this, arguments);
	};
}();
/**
* @title: 获取预约附加服务
* @description: 根据预约ID获取附加服务信息
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getAddonsByOrderId = function() {
	var _ref10 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().get(`${prefix}/order/appointment/addons/${bookingId}`, params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getAddonsByOrderId(_x11, _x12) {
		return _ref10.apply(this, arguments);
	};
}();
/**
* @title: 保存预约附加服务
* @description: 保存预约的附加服务信息
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const saveAddonsByOrderId = function() {
	var _ref11 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().put(`${prefix}/order/appointment/addons/${bookingId}`, params);
		return data;
	});
	return function saveAddonsByOrderId(_x13, _x14) {
		return _ref11.apply(this, arguments);
	};
}();
/**
* @title: 获取预约详情
* @description: 获取预约详细信息
* @param {number} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getBookingDetail = function() {
	var _ref12 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().get(`${prefix}/order/appointment/${bookingId}`, params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getBookingDetail(_x15, _x16) {
		return _ref12.apply(this, arguments);
	};
}();
/**
* @title: 编辑预约状态
* @description: 更新预约状态
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const editBookingStatus = function() {
	var _ref13 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().put(`${prefix}/schedule/booking/appointment-status/${bookingId}`, params);
		return data;
	});
	return function editBookingStatus(_x17, _x18) {
		return _ref13.apply(this, arguments);
	};
}();
/**
* @title: 编辑预约信息
* @description: 更新预约信息
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const editBooking = function() {
	var _ref14 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().put(`${prefix}/order/appointment/v1.1/${bookingId}`, params);
		return data;
	});
	return function editBooking(_x19, _x20) {
		return _ref14.apply(this, arguments);
	};
}();
/**
* @title: 获取预约备注
* @description: 获取预约相关备注信息
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getNotesByOrder = function() {
	var _ref15 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/schedule/event-note", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getNotesByOrder(_x21) {
		return _ref15.apply(this, arguments);
	};
}();
/**
* @title: 添加预约备注
* @description: 添加预约相关备注
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const addNotesByOrder = function() {
	var _ref16 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().post(prefix + "/schedule/event-note", params);
		return data;
	});
	return function addNotesByOrder(_x22) {
		return _ref16.apply(this, arguments);
	};
}();
/**
* @title: 编辑预约备注
* @description: 更新预约备注信息
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const editNoteByOrder = function() {
	var _ref17 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().put(`${prefix}/schedule/event-note/${bookingId}`, params);
		return data;
	});
	return function editNoteByOrder(_x23, _x24) {
		return _ref17.apply(this, arguments);
	};
}();
/**
* @title: 删除预约备注
* @description: 删除预约相关备注
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const removeNoteByOrder = function() {
	var _ref18 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().remove(`${prefix}/schedule/event-note/${bookingId}`, params);
		return data;
	});
	return function removeNoteByOrder(_x25, _x26) {
		return _ref18.apply(this, arguments);
	};
}();
/**
* @title: 保存预约表单数据
* @description: 保存预约相关的表单数据
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const saveBookingFormData = function() {
	var _ref19 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().post(prefix + "/form/relation/record/form", params);
		return data;
	});
	return function saveBookingFormData(_x27) {
		return _ref19.apply(this, arguments);
	};
}();
/**
* @title: 获取支付列表
* @description: 获取支付相关列表数据
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getPaymentList = function() {
	var _ref20 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/order/payment", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getPaymentList(_x28) {
		return _ref20.apply(this, arguments);
	};
}();
/**
* @title: 编辑订单备注
* @description: 更新订单备注信息
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const editOrderNote = function() {
	var _ref21 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().put(`${prefix}/order/order/${bookingId}/note`, params);
		return data;
	});
	return function editOrderNote(_x29, _x30) {
		return _ref21.apply(this, arguments);
	};
}();
/**
* @title: 获取退款信息
* @description: 获取退款相关信息
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getRefundInfo = function() {
	var _ref22 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().get(`${prefix}/order/refund-info/${bookingId}`, params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getRefundInfo(_x31, _x32) {
		return _ref22.apply(this, arguments);
	};
}();
/**
* @title: 创建活动预约
* @description: 创建新的活动预约记录
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const createEventBooking = function() {
	var _ref23 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().post(prefix + "/eventbookingv2/order", params);
		return data;
	});
	return function createEventBooking(_x33) {
		return _ref23.apply(this, arguments);
	};
}();
/**
* @title: 获取活动预约详情
* @description: 获取活动预约详细信息
* @param {number} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getEventBookingDetail = function() {
	var _ref24 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().get(`${prefix}/eventbookingv2/order/${bookingId}`, params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getEventBookingDetail(_x34, _x35) {
		return _ref24.apply(this, arguments);
	};
}();
/**
* @title: 编辑活动预约
* @description: 更新活动预约信息
* @param {string} bookingId
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const editEventBooking = function() {
	var _ref25 = require_asyncToGenerator._asyncToGenerator(function* (bookingId, params) {
		let { data } = yield require_index.request.getRequest().put(`${prefix}/eventbookingv2/order/${bookingId}`, params);
		return data;
	});
	return function editEventBooking(_x36, _x37) {
		return _ref25.apply(this, arguments);
	};
}();
/**
* @title: 获取定金显示配置
* @description: 获取定金相关显示配置
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getDepositShow = function() {
	var _ref26 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/metadata", require_objectSpread2._objectSpread2({ key: "bookingv2_deposit" }, params), { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getDepositShow(_x38) {
		return _ref26.apply(this, arguments);
	};
}();
/**
* @title: 获取表单记录
* @description: 获取表单记录数据
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getFormRecords = function() {
	var _ref27 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/form/records", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getFormRecords(_x39) {
		return _ref27.apply(this, arguments);
	};
}();
/**
* @title: 获取预约列表
* @description: 获取预约列表数据
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getBookingList2 = function() {
	var _ref28 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/schedule/booking", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getBookingList2(_x40) {
		return _ref28.apply(this, arguments);
	};
}();
/**
* @title: 获取订单信息
* @description: 根据机器码获取订单信息
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getOrderInfoByCode = function() {
	var _ref29 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/machinecode/order-info", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getOrderInfoByCode(_x41) {
		return _ref29.apply(this, arguments);
	};
}();
/**
* @title: 获取ES客户数据
* @description: 从ES获取客户数据
* @param {any} params
* @return {*}
* @Author: cong.shao
* @Date: 2025-04-24 16:28
*/
const getClientsEs = function() {
	var _ref30 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(prefix + "/customer/es/data", params, { cache: {
			mode: "remote_local",
			updateCache: true,
			type: "indexDB"
		} });
		return data;
	});
	return function getClientsEs(_x42) {
		return _ref30.apply(this, arguments);
	};
}();
/**
* 作废2.0预约订单
* @param order_id
*/
const voidAppointment = function() {
	var _ref31 = require_asyncToGenerator._asyncToGenerator(function* (order_id) {
		let { data } = yield require_index.request.getRequest().put(`/shop/order/void/appointment/${order_id}`, {});
		return data;
	});
	return function voidAppointment(_x43) {
		return _ref31.apply(this, arguments);
	};
}();
const getProductList = function() {
	var _ref32 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return yield require_index.request.getRequest().post(prefix + "/product/query", params, {});
	});
	return function getProductList(_x44) {
		return _ref32.apply(this, arguments);
	};
}();
//#endregion
exports.getBookingConfig = getBookingConfig;
exports.getBookingDetail = getBookingDetail;
exports.getBookingList2 = getBookingList2;
exports.getEventBookingDetail = getEventBookingDetail;
exports.getOrderInfoByCode = getOrderInfoByCode;
exports.getServices = getServices;
Object.defineProperty(exports, "serve_exports", {
	enumerable: true,
	get: function() {
		return serve_exports;
	}
});
