import{b as t}from"./p-CTyRvZ3_.js";const o="/customer-custom-field-configs";async function s(s,e){const{data:a,status:r}=await t(s).get(`${o}/customer`,{params:e});if(r.toString().startsWith("20"))return a;throw new Error("Failed to getCustomerCustomFieldConfigsCustomer")}const e="/customer-custom-fields";async function a(o,s){const{data:a,status:r}=await t(o).post(e,s);if(r.toString().startsWith("20"))return a;throw new Error("Failed to postCustomerCustomField")}async function r(o,s){const{data:a,status:r}=await t(o).patch(e,s);if(r.toString().startsWith("20"))return a;throw new Error("Failed to patchCustomerCustomField")}const n="/customer-comment";async function u(o,s){const{data:e,status:a}=await t(o).get(n,{params:s});if(a.toString().startsWith("20"))return e;throw new Error("Failed to getCustomerComment")}async function i(o,s){const{data:e,status:a}=await t(o).post(n,s);if(a.toString().startsWith("20"))return e;throw new Error("Failed to postCustomerComment")}async function m(o,s){const{data:e,status:a}=await t(o).patch(n,s);if(a.toString().startsWith("20"))return e;throw new Error("Failed to patchCustomerComment")}async function C(o,s){const{data:e,status:a}=await t(o).delete(n,{data:s});if(a.toString().startsWith("20"))return e;throw new Error("Failed to deleteCustomerComment")}const c="/customer-reply-comment";async function d(o,s){const{data:e,status:a}=await t(o).post(c,s);if(a.toString().startsWith("20"))return e;throw new Error("Failed to postCustomerCommentReply")}async function f(o,s){const{data:e,status:a}=await t(o).patch(c,s);if(a.toString().startsWith("20"))return e;throw new Error("Failed to patchCustomerCommentReply")}async function w(o,s){const{data:e,status:a}=await t(o).delete(c,{data:s});if(a.toString().startsWith("20"))return e;throw new Error("Failed to deleteCustomerCommentReply")}const l="/customer-tag-configs";async function g(o,s){const{data:e,status:a}=await t(o).post(l,s.data);if(a.toString().startsWith("20"))return e;throw new Error("Failed to postCustomerTagConfigs")}var p=Object.freeze({__proto__:null,deleteCustomerComment:C,deleteCustomerCommentReply:w,deleteCustomerCustomFieldConfigs:async function(s,e){const{data:a,status:r}=await t(s).delete(o,{data:e});if(r.toString().startsWith("20"))return a;throw new Error("Failed to deleteCustomerCustomFieldConfigs")},deleteCustomerTagConfigs:async function(o,s){const{data:e,status:a}=await t(o).delete(l,{data:s.data});if(a.toString().startsWith("20"))return e;throw new Error("Failed to deleteCustomerTagConfigs")},getCustomerComment:u,getCustomerCommentLog:async function(o,s){const{data:e,status:a}=await t(o).get("/customer-comment-log",{params:s});if(a.toString().startsWith("20"))return e;throw new Error("Failed to getCustomerCommentLog")},getCustomerCustomField:async function(o,s){const{data:a,status:r}=await t(o).get(e,{params:s});if(r.toString().startsWith("20"))return a;throw new Error("Failed to getCustomerCustomField")},getCustomerCustomFieldConfigs:async function(s,e){const{data:a,status:r}=await t(s).get(o,{params:e});if(r.toString().startsWith("20"))return a;throw new Error("Failed to getCustomerCustomFieldConfigs")},getCustomerCustomFieldConfigsCustomer:s,getCustomerTagConfigs:async function(o,s){const{data:e,status:a}=await t(o).get(l,{params:s});if(a.toString().startsWith("20"))return e;throw new Error("Failed to getCustomerTagConfigs")},patchCustomerComment:m,patchCustomerCommentReply:f,patchCustomerCustomField:r,patchCustomerCustomFieldConfigs:async function(s,e){const{data:a,status:r}=await t(s).patch(o,e);if(r.toString().startsWith("20"))return a;throw new Error("Failed to patchCustomerCustomFieldConfigs")},postCustomerComment:i,postCustomerCommentReply:d,postCustomerCustomField:a,postCustomerCustomFieldConfigs:async function(s,e){const{data:a,status:r}=await t(s).post(o,e);if(r.toString().startsWith("20"))return a;throw new Error("Failed to postCustomerCustomFieldConfigs")},postCustomerTagConfigs:g,putCustomerCustomFieldConfigsOrder:async function(s,e){const{data:a,status:r}=await t(s).put(`${o}/order`,e);if(r.toString().startsWith("20"))return a;throw new Error("Failed to putCustomerCustomFieldConfigsOrder")}});export{m as a,d as b,p as c,i as d,w as e,C as f,u as g,s as h,r as i,a as j,g as k,f as p}