var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/plus/saasDevice/devicePlanning/api/deviceModels.ts
var deviceModels_exports = {};
__export(deviceModels_exports, {
  getDeviceBrands: () => getDeviceBrands,
  getDeviceTypes: () => getDeviceTypes
});
module.exports = __toCommonJS(deviceModels_exports);
var import_utils = require("../../../../utils");
var import_shared = require("./shared");
var getDeviceTypes = async (params) => {
  const response = await import_utils.request.getRequest().get(
    "/tenant/device/type/all",
    {
      with: params.with || ["activeModels", "activeModels.activeProfiles", "activeModels.brand"],
      kind: params.kind
    },
    import_shared.CONFIG
  );
  return (response == null ? void 0 : response.data) || [];
};
var getDeviceBrands = async () => {
  const response = await import_utils.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 ? void 0 : response.data) || [];
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  getDeviceBrands,
  getDeviceTypes
});
