import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../../utils/index.js";
import { CONFIG } from "./shared.js";
//#region src/plus/saasDevice/devicePlanning/api/deviceModels.ts
const getDeviceTypes = function() {
	var _ref = _asyncToGenerator(function* (params) {
		const response = yield request.getRequest().get("/tenant/device/type/all", {
			with: params.with || [
				"activeModels",
				"activeModels.activeProfiles",
				"activeModels.brand"
			],
			kind: params.kind
		}, CONFIG);
		return (response === null || response === void 0 ? void 0 : response.data) || [];
	});
	return function getDeviceTypes(_x) {
		return _ref.apply(this, arguments);
	};
}();
const getDeviceBrands = function() {
	var _ref2 = _asyncToGenerator(function* () {
		const response = yield request.getRequest().get("/api/device_brand:list", {
			page: 1,
			pageSize: 20,
			filter: { $and: [{ $and: { deleted_at: { $is: null } } }] }
		}, {
			isNocobase: true,
			headers: { "x-data-source": "pisell2" }
		});
		return (response === null || response === void 0 ? void 0 : response.data) || [];
	});
	return function getDeviceBrands() {
		return _ref2.apply(this, arguments);
	};
}();
//#endregion
export { getDeviceBrands, getDeviceTypes };
