@spaceinvoices/js-sdk 14.32.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/generated/files/files.d.cts +2 -3
  2. package/dist/generated/files/files.d.ts +2 -3
  3. package/dist/generated/model/createWebhookBody.d.cts +1 -1
  4. package/dist/generated/model/createWebhookBody.d.ts +1 -1
  5. package/dist/generated/model/createWebhookBodyEventsItem.d.cts +36 -0
  6. package/dist/generated/model/createWebhookBodyEventsItem.d.ts +36 -0
  7. package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +36 -0
  8. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +36 -0
  9. package/dist/generated/model/uploadExpenseAttachmentBody.d.cts +1 -1
  10. package/dist/generated/model/uploadExpenseAttachmentBody.d.ts +1 -1
  11. package/dist/generated/model/uploadFileBody.d.cts +1 -1
  12. package/dist/generated/model/uploadFileBody.d.ts +1 -1
  13. package/dist/generated/model/uploadFinaCertificateBody.d.cts +2 -2
  14. package/dist/generated/model/uploadFinaCertificateBody.d.ts +2 -2
  15. package/dist/generated/model/uploadFursCertificateBody.d.cts +2 -2
  16. package/dist/generated/model/uploadFursCertificateBody.d.ts +2 -2
  17. package/dist/generated/model/webhookResponseEventsItem.d.cts +36 -0
  18. package/dist/generated/model/webhookResponseEventsItem.d.ts +36 -0
  19. package/dist/generated/model/webhookWithSecretEventsItem.d.cts +36 -0
  20. package/dist/generated/model/webhookWithSecretEventsItem.d.ts +36 -0
  21. package/dist/generated/upload/upload.d.cts +4 -5
  22. package/dist/generated/upload/upload.d.ts +4 -5
  23. package/dist/generated-zod/expenses/expenses.d.cts +1 -1
  24. package/dist/generated-zod/expenses/expenses.d.ts +1 -1
  25. package/dist/generated-zod/files/files.d.cts +3 -4
  26. package/dist/generated-zod/files/files.d.ts +3 -4
  27. package/dist/generated-zod/fina-certificate/fina-certificate.d.cts +2 -2
  28. package/dist/generated-zod/fina-certificate/fina-certificate.d.ts +2 -2
  29. package/dist/generated-zod/furs-certificate/furs-certificate.d.cts +2 -2
  30. package/dist/generated-zod/furs-certificate/furs-certificate.d.ts +2 -2
  31. package/dist/generated-zod/upload/upload.d.cts +4 -5
  32. package/dist/generated-zod/upload/upload.d.ts +4 -5
  33. package/dist/generated-zod/webhooks/webhooks.d.cts +216 -0
  34. package/dist/generated-zod/webhooks/webhooks.d.ts +216 -0
  35. package/dist/index.cjs +3 -3
  36. package/dist/index.js +3 -3
  37. package/dist/sdk/index.cjs +1 -1
  38. package/dist/sdk/index.js +1 -1
  39. package/dist/sdk-runtime.cjs +1 -1
  40. package/dist/sdk-runtime.js +1 -1
  41. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- var Gd="x-spaceinvoices-client";function K(e){return {[Gd]:e}}var Md=125e3,h=null,$=false;function zd(e){h=e,e==null&&($=false);}function Kd(){$||($=true,console.warn("[space-invoices] setAccountId() fallback is deprecated for SDK instance requests. Pass accountId via the SDK constructor or per-call config instead."));}function $d(){return h}function Jd(){throw new Error("SDK not initialized. Call new SpaceInvoices() first.");}function jd(e){if(!e)return {};if(e instanceof Headers){let t={};return e.forEach((s,a)=>{t[a]=s;}),t}if(Array.isArray(e)){let t={};for(let[s,a]of e)t[s]=a;return t}return e}function Xd(e,t){if(t==null||t<=0)return {signal:e??void 0,cleanup:()=>{}};let s=new AbortController,a=()=>{s.abort(e?.reason);};if(e?.aborted)return a(),{signal:s.signal,cleanup:()=>{}};let n=setTimeout(()=>{s.abort(new Error(`SDK request timed out after ${t}ms`));},t),p=()=>{clearTimeout(n),e?.removeEventListener("abort",a);};return e?.addEventListener("abort",a,{once:true}),s.signal.addEventListener("abort",p,{once:true}),{signal:s.signal,cleanup:p}}async function r(e,t){let{timeoutMs:s,sdkConfig:a,...n}=t??{},p=a??Jd(),u=await Promise.resolve(p.getAccessToken()),y=`${p.baseUrl}${e}`,d={...jd(n.headers)};p.clientName&&Object.assign(d,K(p.clientName)),u&&(d.Authorization=`Bearer ${u}`);let l=d["x-account-id"]||d["X-Account-Id"]||p.accountId||null;!l&&h&&(a&&Kd(),l=h),l&&!d["x-account-id"]&&!d["X-Account-Id"]&&(d["x-account-id"]=l);let E=Xd(n.signal,s===void 0?p.requestTimeoutMs??Md:s);try{let R=await fetch(y,{...n,headers:d,signal:E.signal});R.status===401&&p.onUnauthorized&&p.onUnauthorized(R);let x,qd=R.headers.get("content-length"),m=R.headers.get("content-type"),Wd=R.headers.get("content-disposition");if(qd==="0"||R.status===204)x=void 0;else if(m?.includes("application/pdf")||m?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||m?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||m?.includes("text/csv")||m?.includes("application/octet-stream")||m?.includes("application/zip")||m?.includes("application/x-zip-compressed")||m?.includes("image/"))x=await R.blob();else if(m?.includes("application/xml")||m?.includes("text/xml"))x=Wd?.toLowerCase().includes("attachment")?await R.blob():await R.text();else if(m?.includes("text/html"))x=await R.text();else try{x=await R.json();}catch{x=void 0;}return {data:x,status:R.status,headers:R.headers}}finally{E.cleanup();}}var _d=()=>"/account-webhooks",Q=async(e,t)=>r(_d(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Yd=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/account-webhooks?${s}`:"/account-webhooks"},Z=async(e,t)=>r(Yd(e),{...t,method:"GET"}),Qd=e=>`/account-webhooks/${e}`,ee=async(e,t)=>r(Qd(e),{...t,method:"GET"}),Zd=e=>`/account-webhooks/${e}`,te=async(e,t,s)=>r(Zd(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),eR=e=>`/account-webhooks/${e}`,se=async(e,t)=>r(eR(e),{...t,method:"DELETE"}),tR=e=>`/account-webhooks/${e}/test`,re=async(e,t)=>r(tR(e),{...t,method:"POST"});var sR=e=>`/account-webhooks/${e}/rotate-secret`,oe=async(e,t)=>r(sR(e),{...t,method:"POST"});async function rR(e,t){return e(...t)}function ae(e){if(!e?.entity_id&&!e?.account_id&&!e?.request_id&&!e?.signal&&e?.timeoutMs===void 0&&!e?.sdkConfig)return;let t={};return (e.entity_id||e.account_id||e.request_id)&&(t.headers={...e.entity_id?{"x-entity-id":e.entity_id}:{},...e.account_id?{"x-account-id":e.account_id}:{},...e.request_id?{"X-Request-Id":e.request_id}:{}}),e.signal&&(t.signal=e.signal),e.timeoutMs!==void 0&&(t.timeoutMs=e.timeoutMs),e.sdkConfig&&(t.sdkConfig=e.sdkConfig),t}function o(e,t){let s=async(...n)=>{let p=n[n.length-1],u=p&&typeof p=="object"&&("entity_id"in p||"account_id"in p||"request_id"in p||"signal"in p||"timeoutMs"in p||"sdkConfig"in p||Object.keys(p).length===0),y,g;u?(y=n.slice(0,-1),g=ae(p)):y=[...n];let d=Math.max(0,e.length-1);for(;y.length<d;)y.push(void 0);y.push(g);let l=await rR(e,y);if(l.status>=200&&l.status<300)return l.data;let E=new Error(`API error: ${l.status}`);throw E.status=l.status,E.data=l.data,E};return t===void 0?s:Object.assign(((...n)=>{let p=[...n];return p[t]??={},s(...p)}),{__sdkOptionsIndex:t})}function c(e){return Object.assign(async s=>{let{entity_id:a,account_id:n,request_id:p,signal:u,timeoutMs:y,sdkConfig:g,...d}=s||{},l=ae({entity_id:a,account_id:n,request_id:p,signal:u,timeoutMs:y,sdkConfig:g}),E=await e(d,l);if(E.status===200)return E.data;let R=new Error(`API error: ${E.status}`);throw R.status=E.status,R.data=E.data,R},{__sdkListMethod:true})}function ne(e){return !!e&&typeof e=="object"&&("entity_id"in e||"account_id"in e||"request_id"in e||"signal"in e||"timeoutMs"in e||"sdkConfig"in e||Object.keys(e).length===0)}function i(e,t){let s=Object.entries(e).map(([a,n])=>typeof n!="function"?[a,n]:[a,(...p)=>{let u=t(),y=p[p.length-1],g=n;if(g.__sdkListMethod){let d=p[0];p[0]=d&&typeof d=="object"?{...d,sdkConfig:u}:{sdkConfig:u};}else if(typeof g.__sdkOptionsIndex=="number"){let d=p[g.__sdkOptionsIndex];p[g.__sdkOptionsIndex]=ne(d)?{...d,sdkConfig:u}:{sdkConfig:u};}else ne(y)?p[p.length-1]={...y,sdkConfig:u}:p.push({sdkConfig:u});return n(...p)}]);return Object.fromEntries(s)}var pe={create:o(Q,1),list:c(Z),get:o(ee,1),update:o(te,2),delete:o(se,1),testAccountWebhook:o(re,1),rotateAccountWebhookSecret:o(oe,1)};var oR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/employees?${s}`:"/employees"},P=async(e,t)=>r(oR(e),{...t,method:"GET"}),nR=()=>"/employees",S=async(e,t)=>r(nR(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),aR=e=>`/employees/${e}`,I=async(e,t)=>r(aR(e),{...t,method:"GET"}),pR=e=>`/employees/${e}`,f=async(e,t,s)=>r(pR(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),iR=e=>`/employees/${e}`,T=async(e,t)=>r(iR(e),{...t,method:"DELETE"}),cR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/employees/${e}/attendance?${a}`:`/employees/${e}/attendance`},b=async(e,t,s)=>r(cR(e,t),{...s,method:"GET"}),dR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/employees/${e}/attendance?${a}`:`/employees/${e}/attendance`},C=async(e,t,s,a)=>r(dR(e,s),{...a,method:"PUT",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(t)}),RR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/payroll/parameters?${s}`:"/payroll/parameters"},F=async(e,t)=>r(RR(e),{...t,method:"GET"}),uR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/payroll/parameters/history?${s}`:"/payroll/parameters/history"},O=async(e,t)=>r(uR(e),{...t,method:"GET"}),yR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/payroll/parameters/${e}?${a}`:`/payroll/parameters/${e}`},A=async(e,t,s,a)=>r(yR(e,s),{...a,method:"PUT",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(t)}),lR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/vat-returns/preview?${s}`:"/vat-returns/preview"},D=async(e,t)=>r(lR(e),{...t,method:"GET"}),gR=()=>"/vat-returns",k=async(e,t)=>r(gR(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ER=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/vat-returns?${s}`:"/vat-returns"},B=async(e,t)=>r(ER(e),{...t,method:"GET"}),mR=e=>`/vat-returns/${e}`,N=async(e,t)=>r(mR(e),{...t,method:"GET"}),xR=e=>`/vat-returns/${e}/recompute`,U=async(e,t)=>r(xR(e),{...t,method:"POST"}),vR=e=>`/vat-returns/${e}/approve`,w=async(e,t)=>r(vR(e),{...t,method:"POST"}),hR=e=>`/vat-returns/${e}/submit`,V=async(e,t,s)=>r(hR(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),PR=e=>`/vat-returns/${e}/reopen`,H=async(e,t)=>r(PR(e),{...t,method:"POST"}),SR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/vat-returns/${e}/export?${a}`:`/vat-returns/${e}/export`},L=async(e,t,s)=>r(SR(e,t),{...s,method:"GET"}),IR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/filings?${s}`:"/filings"},q=async(e,t)=>r(IR(e),{...t,method:"GET"}),fR=e=>`/filings/${e}/complete`,W=async(e,t,s)=>r(fR(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),TR=e=>`/filings/${e}/reopen`,G=async(e,t)=>r(TR(e),{...t,method:"POST"}),bR=e=>`/filings/${e}/dismiss`,M=async(e,t,s)=>r(bR(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),CR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/accounting/filings-calendar?${s}`:"/accounting/filings-calendar"},z=async(e,t)=>r(CR(e),{...t,method:"GET"}),FR=()=>"/ledger/accounts",ie=async e=>r(FR(),{...e,method:"GET"}),OR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/ledger/trial-balance?${s}`:"/ledger/trial-balance"},ce=async(e,t)=>r(OR(e),{...t,method:"GET"}),AR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/ledger/profit-and-loss?${s}`:"/ledger/profit-and-loss"},de=async(e,t)=>r(AR(e),{...t,method:"GET"}),DR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/ledger/balance-sheet?${s}`:"/ledger/balance-sheet"},Re=async(e,t)=>r(DR(e),{...t,method:"GET"}),kR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/ledger/entries?${s}`:"/ledger/entries"},ue=async(e,t)=>r(kR(e),{...t,method:"GET"}),BR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/journal-entries?${s}`:"/journal-entries"},ye=async(e,t)=>r(BR(e),{...t,method:"GET"}),NR=()=>"/journal-entries",le=async(e,t)=>r(NR(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),UR=e=>`/journal-entries/${e}`,ge=async(e,t)=>r(UR(e),{...t,method:"GET"}),wR=e=>`/journal-entries/${e}`,Ee=async(e,t,s)=>r(wR(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),VR=e=>`/journal-entries/${e}`,me=async(e,t)=>r(VR(e),{...t,method:"DELETE"}),HR=()=>"/vendor-tax-profiles",xe=async e=>r(HR(),{...e,method:"GET"}),LR=e=>`/vendor-tax-profiles/${e}`,ve=async(e,t,s)=>r(LR(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),qR=e=>`/us-tax-years/${e}`,he=async(e,t)=>r(qR(e),{...t,method:"GET"}),WR=e=>`/us-tax-years/${e}/export`,Pe=async(e,t)=>r(WR(e),{...t,method:"GET"});var Se={listEmployees:o(P,1),registerEmployee:o(S,1),getEmployee:o(I,1),modifyEmployee:o(f,2),archiveEmployee:o(T,1),getEmployeeAttendance:o(b,2),replaceEmployeeAttendance:o(C,3),resolvePayrollParameters:o(F,1),getPayrollParameterHistory:o(O,1),setPayrollParameterOverride:o(A,3),preview:o(D,1),draftVatReturn:o(k,1),listVatReturns:o(B,1),getVatReturn:o(N,1),recomputeVatReturn:o(U,1),approveVatReturn:o(w,1),submitVatReturn:o(V,2),reopenVatReturn:o(H,1),exportVatReturn:o(L,2),listFilings:o(q,1),completeFiling:o(W,2),reopenFiling:o(G,1),dismissFiling:o(M,2),listAccountFilingsCalendar:o(z,1),listLedgerAccounts:o(ie,0),getTrialBalance:o(ce,1),getProfitAndLossReport:o(de,1),getBalanceSheet:o(Re,1),listLedgerEntries:o(ue,1),listJournalEntries:o(ye,1),recordJournalEntry:o(le,1),getJournalEntry:o(ge,1),reviseJournalEntry:o(Ee,2),archiveJournalEntry:o(me,1),listVendorTaxProfiles:o(xe,0),setVendorTaxProfile:o(ve,2),getUsTaxYearWorksheet:o(he,1),exportUsTaxYearWorksheet:o(Pe,1)};var GR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/activities?${s}`:"/activities"},Ie=async(e,t)=>r(GR(e),{...t,method:"GET"});var fe={list:c(Ie)};var MR=e=>`/advance-invoices/${e}/nav/retry`,Te=async(e,t)=>r(MR(e),{...t,method:"POST"}),zR=e=>`/advance-invoices/${e}/nav/reconcile`,be=async(e,t)=>r(zR(e),{...t,method:"POST"}),KR=e=>`/advance-invoices/${e}/nav/annulment`,Ce=async(e,t,s)=>r(KR(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),$R=e=>`/advance-invoices/shareable/${e}`,Fe=async(e,t)=>r($R(e),{...t,method:"GET"}),JR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/advance-invoices/shareable/${e}/html?${a}`:`/advance-invoices/shareable/${e}/html`},Oe=async(e,t,s)=>r(JR(e,t),{...s,method:"GET"}),jR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/advance-invoices/shareable/${e}/pdf?${a}`:`/advance-invoices/shareable/${e}/pdf`},Ae=async(e,t,s)=>r(jR(e,t),{...s,method:"GET"}),XR=e=>`/advance-invoices/shareable/${e}/eslog`,De=async(e,t)=>r(XR(e),{...t,method:"GET"}),_R=()=>"/advance-invoices",ke=async(e,t)=>r(_R(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),YR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/advance-invoices?${s}`:"/advance-invoices"},Be=async(e,t)=>r(YR(e),{...t,method:"GET"}),QR=()=>"/advance-invoices/custom",Ne=async(e,t)=>r(QR(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ZR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/advance-invoices/${e}?${a}`:`/advance-invoices/${e}`},Ue=async(e,t,s)=>r(ZR(e,t),{...s,method:"GET"}),eu=e=>`/advance-invoices/${e}`,we=async(e,t,s)=>r(eu(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),tu=e=>`/advance-invoices/${e}/versions`,Ve=async(e,t)=>r(tu(e),{...t,method:"GET"}),su=(e,t)=>`/advance-invoices/${e}/versions/${t}`,He=async(e,t,s)=>r(su(e,t),{...s,method:"GET"}),ru=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/advance-invoices/render?${s}`:"/advance-invoices/render"},Le=async(e,t,s)=>r(ru(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),ou=e=>`/advance-invoices/${e}/void`,qe=async(e,t,s)=>r(ou(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var We={retryAdvanceInvoiceNav:o(Te,1),reconcileAdvanceInvoiceNav:o(be,1),annulAdvanceInvoiceNav:o(Ce,2),getShareableAdvanceInvoice:o(Fe,1),getShareableAdvanceInvoiceHtml:o(Oe,2),getShareableAdvanceInvoicePdf:o(Ae,2),getShareableAdvanceInvoiceEslog:o(De,1),create:o(ke,1),list:c(Be),createCustom:o(Ne,1),get:o(Ue,2),update:o(we,2),getVersions:o(Ve,1),getVersion:o(He,2),renderAdvanceInvoicePreview:o(Le,2),void:o(qe,2)};var nu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/business-units?${s}`:"/business-units"},Ge=async(e,t)=>r(nu(e),{...t,method:"GET"}),au=()=>"/business-units",Me=async(e,t)=>r(au(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),pu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/business-units/${e}?${a}`:`/business-units/${e}`},ze=async(e,t,s)=>r(pu(e,t),{...s,method:"GET"}),iu=e=>`/business-units/${e}`,Ke=async(e,t,s)=>r(iu(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),cu=e=>`/business-units/${e}`,$e=async(e,t)=>r(cu(e),{...t,method:"DELETE"});var Je={list:c(Ge),create:o(Me,1),get:o(ze,2),update:o(Ke,2),delete:o($e,1)};var du=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/company-registry/search?${s}`:"/company-registry/search"},je=async(e,t)=>r(du(e),{...t,method:"GET"}),Ru=()=>"/company-registry/countries",Xe=async e=>r(Ru(),{...e,method:"GET"});var _e={searchCompanyRegistry:o(je,1),list:o(Xe,0)};var uu=e=>`/credit-notes/${e}/nav/retry`,Ye=async(e,t)=>r(uu(e),{...t,method:"POST"}),yu=e=>`/credit-notes/${e}/nav/reconcile`,Qe=async(e,t)=>r(yu(e),{...t,method:"POST"}),lu=e=>`/credit-notes/${e}/nav/annulment`,Ze=async(e,t,s)=>r(lu(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),gu=e=>`/credit-notes/shareable/${e}`,et=async(e,t)=>r(gu(e),{...t,method:"GET"}),Eu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/credit-notes/shareable/${e}/html?${a}`:`/credit-notes/shareable/${e}/html`},tt=async(e,t,s)=>r(Eu(e,t),{...s,method:"GET"}),mu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/credit-notes/shareable/${e}/pdf?${a}`:`/credit-notes/shareable/${e}/pdf`},st=async(e,t,s)=>r(mu(e,t),{...s,method:"GET"}),xu=e=>`/credit-notes/shareable/${e}/eslog`,rt=async(e,t)=>r(xu(e),{...t,method:"GET"}),vu=e=>`/credit-notes/${e}/ksef/recover`,ot=async(e,t)=>r(vu(e),{...t,method:"POST"}),hu=e=>`/credit-notes/${e}/ksef`,nt=async(e,t)=>r(hu(e),{...t,method:"GET"}),Pu=e=>`/credit-notes/${e}/ksef/submit`,at=async(e,t)=>r(Pu(e),{...t,method:"POST"}),Su=e=>`/credit-notes/${e}/ksef/upo`,pt=async(e,t)=>r(Su(e),{...t,method:"GET"}),Iu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/credit-notes?${s}`:"/credit-notes"},it=async(e,t,s)=>r(Iu(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),fu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/credit-notes?${s}`:"/credit-notes"},ct=async(e,t)=>r(fu(e),{...t,method:"GET"}),Tu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/credit-notes/custom?${s}`:"/credit-notes/custom"},dt=async(e,t,s)=>r(Tu(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),bu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/credit-notes/${e}?${a}`:`/credit-notes/${e}`},Rt=async(e,t,s)=>r(bu(e,t),{...s,method:"GET"}),Cu=e=>`/credit-notes/${e}`,ut=async(e,t,s)=>r(Cu(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Fu=e=>`/credit-notes/${e}/xrechnung`,yt=async(e,t)=>r(Fu(e),{...t,method:"GET"}),Ou=e=>`/credit-notes/${e}/zugferd`,lt=async(e,t)=>r(Ou(e),{...t,method:"GET"}),Au=e=>`/credit-notes/${e}/versions`,gt=async(e,t)=>r(Au(e),{...t,method:"GET"}),Du=(e,t)=>`/credit-notes/${e}/versions/${t}`,Et=async(e,t,s)=>r(Du(e,t),{...s,method:"GET"}),ku=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/credit-notes/render?${s}`:"/credit-notes/render"},mt=async(e,t,s)=>r(ku(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),Bu=e=>`/credit-notes/${e}/fiscalize`,xt=async(e,t)=>r(Bu(e),{...t,method:"POST"}),Nu=e=>`/credit-notes/${e}/void`,vt=async(e,t,s)=>r(Nu(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});function ht(e){let t=o(e);function s(a,n,p){let u=n&&typeof n=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(d=>d in n),y=u?void 0:n,g=u?{...n,...p}:p;return t(a,y??{},g??{})}return Object.assign(s,{__sdkOptionsIndex:2})}var Pt={retryCreditNoteNav:o(Ye,1),reconcileCreditNoteNav:o(Qe,1),annulCreditNoteNav:o(Ze,2),getShareableCreditNote:o(et,1),getShareableCreditNoteHtml:o(tt,2),getShareableCreditNotePdf:o(st,2),getShareableCreditNoteEslog:o(rt,1),recoverCreditNoteFromKsef:o(ot,1),getCreditNoteKsefState:o(nt,1),submitCreditNoteToKsef:o(at,1),getCreditNoteKsefUpo:o(pt,1),create:ht(it),list:c(ct),createCustom:ht(dt),get:o(Rt,2),update:o(ut,2),downloadCreditNoteXRechnung:o(yt,1),downloadCreditNoteZugferd:o(lt,1),getVersions:o(gt,1),getVersion:o(Et,2),renderCreditNotePreview:o(mt,2),fiscalizeCreditNote:o(xt,1),void:o(vt,2)};var Uu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/currency/exchange-rate?${s}`:"/currency/exchange-rate"},St=async(e,t)=>r(Uu(e),{...t,method:"GET"});var It={getExchangeRate:o(St,1)};var wu=()=>"/customers",ft=async(e,t)=>r(wu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Vu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/customers?${s}`:"/customers"},Tt=async(e,t)=>r(Vu(e),{...t,method:"GET"}),Hu=e=>`/customers/${e}`,bt=async(e,t)=>r(Hu(e),{...t,method:"GET"}),Lu=e=>`/customers/${e}`,Ct=async(e,t,s)=>r(Lu(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),qu=e=>`/customers/${e}`,Ft=async(e,t)=>r(qu(e),{...t,method:"DELETE"}),Wu=e=>`/customers/${e}/restore`,Ot=async(e,t)=>r(Wu(e),{...t,method:"POST"}),Gu=e=>`/customers/${e}/permanent`,At=async(e,t)=>r(Gu(e),{...t,method:"DELETE"});var Dt={create:o(ft,1),list:c(Tt),get:o(bt,1),update:o(Ct,2),delete:o(Ft,1),restoreCustomer:o(Ot,1),permanentDeleteCustomer:o(At,1)};var Mu=e=>`/delivery-notes/shareable/${e}`,kt=async(e,t)=>r(Mu(e),{...t,method:"GET"}),zu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/delivery-notes/shareable/${e}/html?${a}`:`/delivery-notes/shareable/${e}/html`},Bt=async(e,t,s)=>r(zu(e,t),{...s,method:"GET"}),Ku=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/delivery-notes/shareable/${e}/pdf?${a}`:`/delivery-notes/shareable/${e}/pdf`},Nt=async(e,t,s)=>r(Ku(e,t),{...s,method:"GET"}),$u=()=>"/delivery-notes",Ut=async(e,t)=>r($u(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Ju=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/delivery-notes?${s}`:"/delivery-notes"},wt=async(e,t)=>r(Ju(e),{...t,method:"GET"}),ju=()=>"/delivery-notes/custom",Vt=async(e,t)=>r(ju(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Xu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/delivery-notes/${e}?${a}`:`/delivery-notes/${e}`},Ht=async(e,t,s)=>r(Xu(e,t),{...s,method:"GET"}),_u=e=>`/delivery-notes/${e}`,Lt=async(e,t,s)=>r(_u(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Yu=e=>`/delivery-notes/${e}/versions`,qt=async(e,t)=>r(Yu(e),{...t,method:"GET"}),Qu=(e,t)=>`/delivery-notes/${e}/versions/${t}`,Wt=async(e,t,s)=>r(Qu(e,t),{...s,method:"GET"}),Zu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/delivery-notes/render?${s}`:"/delivery-notes/render"},Gt=async(e,t,s)=>r(Zu(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),e0=e=>`/delivery-notes/${e}/void`,Mt=async(e,t,s)=>r(e0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),t0=e=>`/delivery-notes/${e}/sign`,zt=async(e,t,s)=>r(t0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),s0=e=>`/delivery-notes/${e}/quantities`,Kt=async(e,t,s)=>r(s0(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var $t={getShareableDeliveryNote:o(kt,1),getShareableDeliveryNoteHtml:o(Bt,2),getShareableDeliveryNotePdf:o(Nt,2),create:o(Ut,1),list:c(wt),createCustom:o(Vt,1),get:o(Ht,2),update:o(Lt,2),getVersions:o(qt,1),getVersion:o(Wt,2),renderDeliveryNotePreview:o(Gt,2),void:o(Mt,2),signDeliveryNote:o(zt,2),setDeliveryNoteQuantities:o(Kt,2)};var r0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/next-number?${s}`:"/documents/next-number"},Jt=async(e,t)=>r(r0(e),{...t,method:"GET"}),o0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/calculate?${s}`:"/documents/calculate"},jt=async(e,t,s)=>r(o0(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),n0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/finalize?${a}`:`/documents/${e}/finalize`},Xt=async(e,t,s,a)=>r(n0(e,s),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(t)}),a0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/fiscalize?${a}`:`/documents/${e}/fiscalize`},_t=async(e,t,s,a)=>r(a0(e,s),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(t)}),p0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/register-output?${a}`:`/documents/${e}/register-output`},Yt=async(e,t,s)=>r(p0(e,t),{...s,method:"POST"}),i0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}?${a}`:`/documents/${e}`},Qt=async(e,t,s)=>r(i0(e,t),{...s,method:"DELETE"}),c0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/restore?${a}`:`/documents/${e}/restore`},Zt=async(e,t,s)=>r(c0(e,t),{...s,method:"POST"}),d0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/permanent?${a}`:`/documents/${e}/permanent`},es=async(e,t,s)=>r(d0(e,t),{...s,method:"DELETE"}),R0=e=>`/documents/${e}/send`,ts=async(e,t,s)=>r(R0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),u0=e=>`/documents/${e}/share`,ss=async(e,t)=>r(u0(e),{...t,method:"POST"}),y0=e=>`/documents/${e}/share`,rs=async(e,t)=>r(y0(e),{...t,method:"GET"}),l0=e=>`/documents/${e}/share`,os=async(e,t)=>r(l0(e),{...t,method:"DELETE"});var J=o(_t,3);function g0(e){return !!e&&typeof e=="object"&&"type"in e}function j(e){return !!e&&typeof e=="object"&&("entity_id"in e||"account_id"in e||"request_id"in e||"signal"in e||"timeoutMs"in e||"sdkConfig"in e||Object.keys(e).length===0)}var E0=async(e,t,s,a)=>{if(j(t))return J(e,void 0,void 0,t);if(g0(t))return J(e,void 0,t,s);let n=j(s)?void 0:s,p=j(s)?s:a;return J(e,t,n,p)},ns={getNextNumber:o(Jt,1),calculateDocumentPreview:o(jt,2),finalizeDocument:o(Xt,3),fiscalizeDocument:E0,registerDocumentOutput:o(Yt,2),delete:o(Qt,2),restoreDocument:o(Zt,2),permanentDeleteDocument:o(es,2),sendDocument:o(ts,2),shareDocument:o(ss,1),getShareableId:o(rs,1),unshareDocument:o(os,1)};var m0=()=>"/e-invoicing/settings",as=async e=>r(m0(),{...e,method:"GET"}),x0=()=>"/e-invoicing/settings",ps=async(e,t)=>r(x0(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),v0=()=>"/e-invoicing/enrollment/sync",is=async e=>r(v0(),{...e,method:"POST"}),h0=()=>"/e-invoicing/enrollment/verification-link",cs=async e=>r(h0(),{...e,method:"POST"}),P0=()=>"/e-invoicing/enrollment/authorize",ds=async(e,t)=>r(P0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),S0=()=>"/e-invoicing/enrollment/disconnect",Rs=async e=>r(S0(),{...e,method:"POST"}),I0=()=>"/e-invoicing/france/directory/lookup",us=async(e,t)=>r(I0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),f0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/e-invoicing/received-documents?${s}`:"/e-invoicing/received-documents"},ys=async(e,t)=>r(f0(e),{...t,method:"GET"}),T0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/e-invoicing/received-documents/${e}/download?${a}`:`/e-invoicing/received-documents/${e}/download`},ls=async(e,t,s)=>r(T0(e,t),{...s,method:"GET"}),b0=e=>`/e-invoicing/received-documents/${e}/accept`,gs=async(e,t)=>r(b0(e),{...t,method:"POST"}),C0=e=>`/e-invoicing/received-documents/${e}/lifecycle`,Es=async(e,t,s)=>r(C0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),F0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/e-invoicing/reporting-records?${s}`:"/e-invoicing/reporting-records"},ms=async(e,t)=>r(F0(e),{...t,method:"GET"}),O0=e=>`/e-invoicing/reporting-records/${e}/retry`,xs=async(e,t)=>r(O0(e),{...t,method:"POST"}),A0=()=>"/e-invoicing/supplier",vs=async(e,t)=>r(A0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),D0=()=>"/e-invoicing/supplier",hs=async e=>r(D0(),{...e,method:"GET"});var k0=()=>"/e-invoicing/recipients/check",Ps=async(e,t)=>r(k0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),B0=()=>"/e-invoicing/customer-search",Ss=async(e,t)=>r(B0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),N0=e=>`/e-invoicing/documents/${e}/send`,Is=async(e,t,s)=>r(N0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),U0=(e,t)=>`/e-invoicing/send/${e}/${t}`,fs=async(e,t,s,a)=>r(U0(e,t),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(s)}),w0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/e-invoicing/submissions?${s}`:"/e-invoicing/submissions"},Ts=async(e,t)=>r(w0(e),{...t,method:"GET"}),V0=e=>`/e-invoicing/submissions/${e}`,X=async(e,t)=>r(V0(e),{...t,method:"GET"}),H0=e=>`/e-invoicing/submissions/${e}/retry`,_=async(e,t)=>r(H0(e),{...t,method:"POST"});var bs={getEInvoicingSubmission:o(X,1),retryEInvoicingSubmission:o(_,1),list:o(as,0),update:o(ps,1),syncEInvoicingEnrollment:o(is,0),create:o(cs,0),createEInvoicingEnrollmentAuthorization:o(ds,1),disconnectEInvoicingEnrollment:o(Rs,0),lookupFranceEInvoicingDirectory:o(us,1),listReceivedEInvoices:o(ys,1),downloadReceivedEInvoice:o(ls,2),acceptReceivedEInvoice:o(gs,1),sendReceivedEInvoiceLifecycle:o(Es,2),listFrenchEReportingRecords:o(ms,1),retryFrenchEReportingRecord:o(xs,1),registerEInvoicingSupplier:o(vs,1),getEInvoicingSupplier:o(hs,0),checkEInvoicingRecipient:o(Ps,1),searchEInvoicingCustomer:o(Ss,1),sendEInvoicingDocument:o(Is,2),sendEInvoice:o(fs,3),listEInvoicingSubmissions:o(Ts,1),get:o(X,1),retryEInvoicingSubmissionById:o(_,1)};var L0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/eslog/${e}/validate?${a}`:`/eslog/${e}/validate`},Cs=async(e,t,s)=>r(L0(e,t),{...s,method:"POST"}),q0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/eslog/${e}/download?${a}`:`/eslog/${e}/download`},Fs=async(e,t,s)=>r(q0(e,t),{...s,method:"GET"});var Os={validate:o(Cs,2),download:o(Fs,2)};var W0=()=>"/email/send",As=async(e,t)=>r(W0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var Ds={sendEmail:o(As,1)};var G0=e=>`/entities/${e}/nav`,ks=async(e,t)=>r(G0(e),{...t,method:"GET"}),M0=e=>`/entities/${e}/nav`,Bs=async(e,t,s)=>r(M0(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),z0=e=>`/entities/${e}/nav/credentials`,Ns=async(e,t,s)=>r(z0(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),K0=e=>`/entities/${e}/nav/credentials`,Us=async(e,t)=>r(K0(e),{...t,method:"DELETE"}),$0=e=>`/entities/${e}/nav/credentials/verify`,ws=async(e,t)=>r($0(e),{...t,method:"POST"}),J0=e=>`/entities/${e}/ksef`,Vs=async(e,t)=>r(J0(e),{...t,method:"GET"}),j0=e=>`/entities/${e}/ksef`,Hs=async(e,t,s)=>r(j0(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),X0=e=>`/entities/${e}/ksef/credentials`,Ls=async(e,t,s)=>r(X0(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),_0=e=>`/entities/${e}/ksef/credentials`,qs=async(e,t)=>r(_0(e),{...t,method:"DELETE"}),Y0=()=>"/entities",Ws=async(e,t)=>r(Y0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Q0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/entities?${s}`:"/entities"},Gs=async(e,t)=>r(Q0(e),{...t,method:"GET"}),Z0=e=>`/entities/${e}`,Ms=async(e,t)=>r(Z0(e),{...t,method:"GET"}),ey=e=>`/entities/${e}`,zs=async(e,t,s)=>r(ey(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),ty=e=>`/entities/${e}/enable`,Ks=async(e,t)=>r(ty(e),{...t,method:"POST"}),sy=e=>`/entities/${e}/disable`,$s=async(e,t)=>r(sy(e),{...t,method:"POST"}),ry=e=>`/entities/${e}/email-sender`,Js=async(e,t)=>r(ry(e),{...t,method:"GET"}),oy=e=>`/entities/${e}/email-sender`,js=async(e,t,s)=>r(oy(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),ny=e=>`/entities/${e}/email-sender`,Xs=async(e,t)=>r(ny(e),{...t,method:"DELETE"}),ay=e=>`/entities/${e}/email-sender/recheck`,_s=async(e,t)=>r(ay(e),{...t,method:"POST"});var Ys={retrieveEntityNavSettings:o(ks,1),modifyEntityNavSettings:o(Bs,2),storeEntityNavCredentials:o(Ns,2),removeEntityNavCredentials:o(Us,1),verifyEntityNavCredentials:o(ws,1),getEntityKsefSetup:o(Vs,1),putEntityKsefSettings:o(Hs,2),putEntityKsefCredential:o(Ls,2),removeEntityKsefCredential:o(qs,1),create:o(Ws,1),list:c(Gs),get:o(Ms,1),update:o(zs,2),enableEntity:o(Ks,1),disableEntity:o($s,1),getEntityEmailSender:o(Js,1),putEntityEmailSender:o(js,2),deleteEntityEmailSender:o(Xs),recheckEntityEmailSender:o(_s,1)};var py=()=>"/entities/api-keys",Qs=async e=>r(py(),{...e,method:"GET"}),iy=()=>"/entities/api-keys",Zs=async(e,t)=>r(iy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),cy=e=>`/entities/api-keys/${e}`,er=async(e,t)=>r(cy(e),{...t,method:"DELETE"}),dy=()=>"/entities/api-keys/revoke-integration",tr=async e=>r(dy(),{...e,method:"POST"});var sr={listEntityApiKeys:o(Qs,0),create:o(Zs,1),delete:o(er,1),revokeEntityApiKeyIntegration:o(tr,0)};var Ry=()=>"/entities/invitations",rr=async e=>r(Ry(),{...e,method:"GET"}),uy=e=>`/entities/invitations/${e}`,or=async(e,t)=>r(uy(e),{...t,method:"GET"}),yy=e=>`/entities/invitations/${e}`,nr=async(e,t)=>r(yy(e),{...t,method:"DELETE"}),ly=e=>`/entities/invitations/${e}/resend`,ar=async(e,t)=>r(ly(e),{...t,method:"POST"}),gy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/invitations/preview?${s}`:"/invitations/preview"},pr=async(e,t)=>r(gy(e),{...t,method:"GET"}),Ey=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/invitations/accept?${s}`:"/invitations/accept"},ir=async(e,t,s)=>r(Ey(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)});var cr={listEntityInvitations:o(rr,0),getEntityInvitation:o(or,1),cancelEntityInvitation:o(nr,1),resendEntityInvitation:o(ar,1),preview:o(pr,1),acceptEntityInvitation:o(ir,2)};var my=()=>"/stats/query",dr=async(e,t)=>r(my(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var Rr={queryEntityStats:o(dr,1)};var xy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/entities/users?${s}`:"/entities/users"},ur=async(e,t)=>r(xy(e),{...t,method:"GET"}),vy=()=>"/entities/users",yr=async(e,t)=>r(vy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),hy=()=>"/entities/users/access",lr=async e=>r(hy(),{...e,method:"GET"}),Py=e=>`/entities/users/${e}`,gr=async(e,t,s)=>r(Py(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Sy=e=>`/entities/users/${e}`,Er=async(e,t)=>r(Sy(e),{...t,method:"DELETE"}),Iy=e=>`/entities/users/${e}/token`,mr=async(e,t,s)=>r(Iy(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var xr={list:c(ur),addEntityUser:o(yr,1),getAccess:o(lr,0),update:o(gr,2),removeEntityUser:o(Er,1),generateEntityUserToken:o(mr,2)};var fy=e=>`/estimates/shareable/${e}`,vr=async(e,t)=>r(fy(e),{...t,method:"GET"}),Ty=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/estimates/shareable/${e}/html?${a}`:`/estimates/shareable/${e}/html`},hr=async(e,t,s)=>r(Ty(e,t),{...s,method:"GET"}),by=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/estimates/shareable/${e}/pdf?${a}`:`/estimates/shareable/${e}/pdf`},Pr=async(e,t,s)=>r(by(e,t),{...s,method:"GET"}),Cy=e=>`/estimates/shareable/${e}/eslog`,Sr=async(e,t)=>r(Cy(e),{...t,method:"GET"}),Fy=()=>"/estimates",Ir=async(e,t)=>r(Fy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Oy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/estimates?${s}`:"/estimates"},fr=async(e,t)=>r(Oy(e),{...t,method:"GET"}),Ay=()=>"/estimates/custom",Tr=async(e,t)=>r(Ay(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Dy=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/estimates/${e}?${a}`:`/estimates/${e}`},br=async(e,t,s)=>r(Dy(e,t),{...s,method:"GET"}),ky=e=>`/estimates/${e}`,Cr=async(e,t,s)=>r(ky(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),By=e=>`/estimates/${e}/versions`,Fr=async(e,t)=>r(By(e),{...t,method:"GET"}),Ny=(e,t)=>`/estimates/${e}/versions/${t}`,Or=async(e,t,s)=>r(Ny(e,t),{...s,method:"GET"}),Uy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/estimates/render?${s}`:"/estimates/render"},Ar=async(e,t,s)=>r(Uy(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)});var Dr={getShareableEstimate:o(vr,1),getShareableEstimateHtml:o(hr,2),getShareableEstimatePdf:o(Pr,2),getShareableEstimateEslog:o(Sr,1),create:o(Ir,1),list:c(fr),createCustom:o(Tr,1),get:o(br,2),update:o(Cr,2),getVersions:o(Fr,1),getVersion:o(Or,2),renderEstimatePreview:o(Ar,2)};var wy=()=>"/expenses",kr=async(e,t)=>r(wy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Vy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/expenses?${s}`:"/expenses"},Br=async(e,t)=>r(Vy(e),{...t,method:"GET"}),Hy=()=>"/expenses/custom",Nr=async(e,t)=>r(Hy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Ly=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/expenses/export?${s}`:"/expenses/export"},Ur=async(e,t)=>r(Ly(e),{...t,method:"GET"}),qy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/expenses/report?${s}`:"/expenses/report"},wr=async(e,t)=>r(qy(e),{...t,method:"GET"}),Wy=()=>"/expenses/recognition/settings",Vr=async e=>r(Wy(),{...e,method:"GET"}),Gy=()=>"/expenses/recognition/settings",Hr=async(e,t)=>r(Gy(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),My=()=>"/expenses/recognition/backfill",Lr=async(e,t)=>r(My(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),zy=()=>"/expenses/recognitions",qr=async(e,t)=>{let s=new FormData;return s.append("file",e.file),r(zy(),{...t,method:"POST",body:s})},Ky=e=>`/expenses/recognitions/${e}`,Wr=async(e,t)=>r(Ky(e),{...t,method:"GET"}),$y=e=>`/expenses/recognitions/${e}/retry`,Gr=async(e,t)=>r($y(e),{...t,method:"POST"}),Jy=()=>"/expenses/inbound-email",Mr=async e=>r(Jy(),{...e,method:"GET"}),jy=()=>"/expenses/inbound-email",zr=async e=>r(jy(),{...e,method:"POST"}),Xy=()=>"/expenses/inbound-email",Kr=async e=>r(Xy(),{...e,method:"DELETE"}),_y=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/expenses/inbound-email/messages?${s}`:"/expenses/inbound-email/messages"},$r=async(e,t)=>r(_y(e),{...t,method:"GET"}),Yy=()=>"/expenses/imports/shareable/preview",Jr=async(e,t)=>r(Yy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Qy=()=>"/expenses/imports/shareable",jr=async(e,t)=>r(Qy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Zy=e=>`/expenses/${e}/recognition`,Xr=async(e,t)=>r(Zy(e),{...t,method:"GET"}),el=e=>`/expenses/${e}`,_r=async(e,t)=>r(el(e),{...t,method:"GET"}),tl=e=>`/expenses/${e}`,Yr=async(e,t,s)=>r(tl(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),sl=e=>`/expenses/${e}`,Qr=async(e,t)=>r(sl(e),{...t,method:"DELETE"}),rl=e=>`/expenses/${e}/void`,Zr=async(e,t)=>r(rl(e),{...t,method:"POST"}),ol=e=>`/expenses/${e}/restore`,eo=async(e,t)=>r(ol(e),{...t,method:"POST"}),nl=e=>`/expenses/${e}/attachments`,to=async(e,t,s)=>{let a=new FormData;return t.file!==void 0&&a.append("file",t.file),r(nl(e),{...s,method:"POST",body:a})},al=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/expenses/${e}/attachments?${a}`:`/expenses/${e}/attachments`},so=async(e,t,s)=>r(al(e,t),{...s,method:"GET"}),pl=(e,t)=>`/expenses/${e}/attachments/${t}`,ro=async(e,t,s)=>r(pl(e,t),{...s,method:"DELETE"}),il=e=>`/expenses/${e}/payments`,oo=async(e,t)=>r(il(e),{...t,method:"GET"}),cl=e=>`/expenses/${e}/payments`,no=async(e,t,s)=>r(cl(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var ao={create:o(kr,1),list:c(Br),createCustom:o(Nr,1),exportExpenses:o(Ur,1),getExpenseCategoryReport:o(wr,1),getRecognitionSettings:o(Vr,0),updateRecognitionSettings:o(Hr,1),backfillExpenseRecognition:o(Lr,1),createRecognition:o(qr,1),getRecognition:o(Wr,1),retryRecognition:o(Gr,1),getExpenseInboundEmail:o(Mr,0),rotateExpenseInboundEmail:o(zr,0),disableExpenseInboundEmail:o(Kr,0),listExpenseInboundEmailMessages:o($r,1),previewImportFromShareableLink:o(Jr,1),importFromShareableLink:o(jr,1),getLatestRecognition:o(Xr,1),get:o(_r,1),update:o(Yr,2),delete:o(Qr,1),void:o(Zr,1),restoreExpense:o(eo,1),uploadExpenseAttachment:o(to,2),getExpenseAttachments:o(so,2),deleteExpenseAttachment:o(ro,2),getExpensePayments:o(oo,1),createExpensePayment:o(no,2)};var dl=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/export?${s}`:"/documents/export"},po=async(e,t)=>r(dl(e),{...t,method:"GET"}),Rl=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/export/sales-per-item?${s}`:"/documents/export/sales-per-item"},io=async(e,t)=>r(Rl(e),{...t,method:"GET"}),ul=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/export/inventory?${s}`:"/documents/export/inventory"},co=async(e,t)=>r(ul(e),{...t,method:"GET"}),yl=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/export/revenue-by-category?${s}`:"/documents/export/revenue-by-category"},Ro=async(e,t)=>r(yl(e),{...t,method:"GET"}),ll=()=>"/documents/export/pdf",uo=async(e,t)=>r(ll(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),gl=e=>`/documents/export/pdf/${e}`,yo=async(e,t)=>r(gl(e),{...t,method:"GET"}),El=e=>`/documents/export/pdf/${e}/download`,lo=async(e,t)=>r(El(e),{...t,method:"GET"}),ml=()=>"/documents/export/eslog",go=async(e,t)=>r(ml(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),xl=e=>`/documents/export/eslog/${e}`,Eo=async(e,t)=>r(xl(e),{...t,method:"GET"}),vl=e=>`/documents/export/eslog/${e}/download`,mo=async(e,t)=>r(vl(e),{...t,method:"GET"});var xo={exportDocuments:o(po,1),exportSalesPerItem:o(io,1),exportInventory:o(co,1),exportRevenueByCategory:o(Ro,1),startPdfExport:o(uo,1),getPdfStatus:o(yo,1),downloadPdfExport:o(lo,1),startEslogExport:o(go,1),getEslogStatus:o(Eo,1),downloadEslogExport:o(mo,1)};var hl=()=>"/files",vo=async(e,t)=>{let s=new FormData;return e.file!==void 0&&s.append("file",e.file),s.append("category",e.category),e.document_id!==void 0&&e.document_id!==null&&s.append("document_id",e.document_id),e.account_payable_id!==void 0&&s.append("account_payable_id",e.account_payable_id),e.business_unit_id!==void 0&&s.append("business_unit_id",e.business_unit_id),e.expense_id!==void 0&&s.append("expense_id",e.expense_id),r(hl(),{...t,method:"POST",body:s})},Pl=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/files?${s}`:"/files"},ho=async(e,t)=>r(Pl(e),{...t,method:"GET"}),Sl=e=>`/files/${e}`,Po=async(e,t)=>r(Sl(e),{...t,method:"GET"}),Il=e=>`/files/${e}`,So=async(e,t)=>r(Il(e),{...t,method:"DELETE"});var Io={uploadFile:o(vo,1),list:c(ho),get:o(Po,1),delete:o(So,1)};var fl=()=>"/fiscalization/fina/settings/certificate",fo=async(e,t)=>{let s=new FormData;return e.file!==void 0&&s.append("file",e.file),e.passphrase!==void 0&&s.append("passphrase",e.passphrase),r(fl(),{...t,method:"POST",body:s})},Tl=()=>"/fiscalization/fina/settings/certificate",To=async e=>r(Tl(),{...e,method:"GET"}),bl=()=>"/fiscalization/fina/settings/certificate",bo=async e=>r(bl(),{...e,method:"DELETE"});var Co={uploadFinaCertificate:o(fo,1),getFinaCertificate:o(To,0),delete:o(bo,0)};var Cl=e=>`/fiscalization/fina/premises/${e}/devices`,Fo=async(e,t)=>r(Cl(e),{...t,method:"GET"}),Fl=e=>`/fiscalization/fina/premises/${e}/devices`,Oo=async(e,t,s)=>r(Fl(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ol=e=>`/fiscalization/fina/devices/${e}`,Ao=async(e,t)=>r(Ol(e),{...t,method:"GET"}),Al=e=>`/fiscalization/fina/devices/${e}`,Do=async(e,t,s)=>r(Al(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Dl=e=>`/fiscalization/fina/devices/${e}`,ko=async(e,t)=>r(Dl(e),{...t,method:"DELETE"});var Bo={listFinaDevices:o(Fo,1),registerFinaDevice:o(Oo,2),getFinaDevice:o(Ao,1),update:o(Do,2),delete:o(ko,1)};var kl=()=>"/fiscalization/fina/premises",No=async e=>r(kl(),{...e,method:"GET"}),Bl=()=>"/fiscalization/fina/premises",Uo=async(e,t)=>r(Bl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Nl=e=>`/fiscalization/fina/premises/${e}`,wo=async(e,t)=>r(Nl(e),{...t,method:"GET"}),Ul=e=>`/fiscalization/fina/premises/${e}`,Vo=async(e,t,s)=>r(Ul(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),wl=e=>`/fiscalization/fina/premises/${e}`,Ho=async(e,t)=>r(wl(e),{...t,method:"DELETE"});var Lo={listFinaPremises:o(No,0),create:o(Uo,1),getFinaPremise:o(wo,1),update:o(Vo,2),delete:o(Ho,1)};var Vl=()=>"/fiscalization/fina/settings",qo=async e=>r(Vl(),{...e,method:"GET"}),Hl=()=>"/fiscalization/fina/settings",Wo=async(e,t)=>r(Hl(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var Go={list:o(qo,0),update:o(Wo,1)};var Ll=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/financial-categories?${s}`:"/financial-categories"},Mo=async(e,t)=>r(Ll(e),{...t,method:"GET"}),ql=()=>"/financial-categories",zo=async(e,t)=>r(ql(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Wl=e=>`/financial-categories/${e}`,Ko=async(e,t,s)=>r(Wl(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Gl=e=>`/financial-categories/${e}`,$o=async(e,t)=>r(Gl(e),{...t,method:"DELETE"}),Ml=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/financial-categories/revenue-summary?${s}`:"/financial-categories/revenue-summary"},Jo=async(e,t)=>r(Ml(e),{...t,method:"GET"}),zl=()=>"/financial-categories/document-items/batch",jo=async(e,t)=>r(zl(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Kl=e=>`/financial-categories/document-items/${e}`,Xo=async(e,t,s)=>r(Kl(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var _o={list:c(Mo),create:o(zo,1),update:o(Ko,2),delete:o($o,1),getRevenueByFinancialCategory:o(Jo,1),updateDocumentItemFinancialCategories:o(jo,1),updateDocumentItemFinancialCategory:o(Xo,2)};var $l=()=>"/fiscalization/furs/settings/certificate",Yo=async(e,t)=>{let s=new FormData;return e.file!==void 0&&s.append("file",e.file),e.passphrase!==void 0&&s.append("passphrase",e.passphrase),r($l(),{...t,method:"POST",body:s})},Jl=()=>"/fiscalization/furs/settings/certificate",Qo=async e=>r(Jl(),{...e,method:"GET"}),jl=()=>"/fiscalization/furs/settings/certificate",Zo=async e=>r(jl(),{...e,method:"DELETE"});var en={uploadFursCertificate:o(Yo,1),getFursCertificate:o(Qo,0),delete:o(Zo,0)};var Xl=e=>`/fiscalization/furs/premises/${e}/devices`,tn=async(e,t)=>r(Xl(e),{...t,method:"GET"}),_l=e=>`/fiscalization/furs/premises/${e}/devices`,sn=async(e,t,s)=>r(_l(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Yl=e=>`/fiscalization/furs/devices/${e}`,rn=async(e,t)=>r(Yl(e),{...t,method:"GET"}),Ql=e=>`/fiscalization/furs/devices/${e}`,on=async(e,t,s)=>r(Ql(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var nn={listFursElectronicDevices:o(tn,1),registerFursElectronicDevice:o(sn,2),getFursElectronicDevice:o(rn,1),update:o(on,2)};var Zl=()=>"/fiscalization/furs/internal-act/report.pdf",an=async e=>r(Zl(),{...e,method:"GET"}),eg=()=>"/fiscalization/furs/internal-act/report.docx",pn=async e=>r(eg(),{...e,method:"GET"});var cn={generateFursInternalActPdf:o(an,0),generateFursInternalActDocx:o(pn,0)};var tg=()=>"/fiscalization/furs/premises",dn=async e=>r(tg(),{...e,method:"GET"}),sg=e=>`/fiscalization/furs/premises/${e}`,Rn=async(e,t)=>r(sg(e),{...t,method:"GET"}),rg=e=>`/fiscalization/furs/premises/${e}`,un=async(e,t,s)=>r(rg(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),og=()=>"/fiscalization/furs/premises/real-estate",yn=async(e,t)=>r(og(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ng=()=>"/fiscalization/furs/premises/movable",ln=async(e,t)=>r(ng(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ag=e=>`/fiscalization/furs/premises/${e}/close`,gn=async(e,t)=>r(ag(e),{...t,method:"POST"});var En={listFursBusinessPremises:o(dn,0),getFursBusinessPremise:o(Rn,1),update:o(un,2),registerFursRealEstatePremise:o(yn,1),registerFursMovablePremise:o(ln,1),closeFursBusinessPremise:o(gn,1)};var pg=()=>"/fiscalization/furs/settings",mn=async e=>r(pg(),{...e,method:"GET"}),ig=()=>"/fiscalization/furs/settings",xn=async(e,t)=>r(ig(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var vn={list:o(mn,0),update:o(xn,1)};var cg=()=>"/health/live",hn=async e=>r(cg(),{...e,method:"GET"}),dg=()=>"/health/ready",Pn=async e=>r(dg(),{...e,method:"GET"}),Rg=()=>"/health",Sn=async e=>r(Rg(),{...e,method:"GET"});var In={livenessCheck:o(hn,0),readinessCheck:o(Pn,0),healthCheck:o(Sn,0)};var ug=e=>`/invoices/${e}/nav/retry`,fn=async(e,t)=>r(ug(e),{...t,method:"POST"}),yg=e=>`/invoices/${e}/nav/reconcile`,Tn=async(e,t)=>r(yg(e),{...t,method:"POST"}),lg=e=>`/invoices/${e}/nav/annulment`,bn=async(e,t,s)=>r(lg(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),gg=e=>`/invoices/shareable/${e}`,Cn=async(e,t)=>r(gg(e),{...t,method:"GET"}),Eg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/invoices/shareable/${e}/html?${a}`:`/invoices/shareable/${e}/html`},Fn=async(e,t,s)=>r(Eg(e,t),{...s,method:"GET"}),mg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/invoices/shareable/${e}/pdf?${a}`:`/invoices/shareable/${e}/pdf`},On=async(e,t,s)=>r(mg(e,t),{...s,method:"GET"}),xg=e=>`/invoices/shareable/${e}/eslog`,An=async(e,t)=>r(xg(e),{...t,method:"GET"}),vg=e=>`/invoices/${e}/ksef/recover`,Dn=async(e,t)=>r(vg(e),{...t,method:"POST"}),hg=e=>`/invoices/${e}/ksef`,kn=async(e,t)=>r(hg(e),{...t,method:"GET"}),Pg=e=>`/invoices/${e}/ksef/submit`,Bn=async(e,t)=>r(Pg(e),{...t,method:"POST"}),Sg=e=>`/invoices/${e}/ksef/upo`,Nn=async(e,t)=>r(Sg(e),{...t,method:"GET"}),Ig=()=>"/invoices",Un=async(e,t)=>r(Ig(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),fg=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/invoices?${s}`:"/invoices"},wn=async(e,t)=>r(fg(e),{...t,method:"GET"}),Tg=()=>"/invoices/custom",Vn=async(e,t)=>r(Tg(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),bg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/invoices/${e}?${a}`:`/invoices/${e}`},Hn=async(e,t,s)=>r(bg(e,t),{...s,method:"GET"}),Cg=e=>`/invoices/${e}`,Ln=async(e,t,s)=>r(Cg(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Fg=e=>`/invoices/${e}/credit-options`,qn=async(e,t)=>r(Fg(e),{...t,method:"GET"}),Og=e=>`/invoices/${e}/xrechnung`,Wn=async(e,t)=>r(Og(e),{...t,method:"GET"}),Ag=e=>`/invoices/${e}/zugferd`,Gn=async(e,t)=>r(Ag(e),{...t,method:"GET"}),Dg=e=>`/invoices/${e}/versions`,Mn=async(e,t)=>r(Dg(e),{...t,method:"GET"}),kg=(e,t)=>`/invoices/${e}/versions/${t}`,zn=async(e,t,s)=>r(kg(e,t),{...s,method:"GET"}),Bg=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/invoices/render?${s}`:"/invoices/render"},Kn=async(e,t,s)=>r(Bg(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),Ng=e=>`/invoices/${e}/void`,$n=async(e,t,s)=>r(Ng(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ug=e=>`/invoices/${e}/fiscalize`,Jn=async(e,t)=>r(Ug(e),{...t,method:"POST"}),wg=e=>`/invoices/${e}/change-buyer-oib`,jn=async(e,t,s)=>r(wg(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Vg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/html?${a}`:`/documents/${e}/html`},Xn=async(e,t,s)=>r(Vg(e,t),{...s,method:"GET"}),Hg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/pdf?${a}`:`/documents/${e}/pdf`},_n=async(e,t,s)=>r(Hg(e,t),{...s,method:"GET"});function Yn(e,t){let s=URL.createObjectURL(e),a=document.createElement("a");a.href=s,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(s);}var Qn=o(_n,2),Lg=Object.assign(async(e,t,s,a)=>{let n=await Qn(e,s,a);Yn(n,t);},{__sdkOptionsIndex:3}),Zn={retryInvoiceNav:o(fn,1),reconcileInvoiceNav:o(Tn,1),annulInvoiceNav:o(bn,2),getShareableInvoice:o(Cn,1),getShareableInvoiceHtml:o(Fn,2),getShareableInvoicePdf:o(On,2),getShareableInvoiceEslog:o(An,1),recoverInvoiceFromKsef:o(Dn,1),getInvoiceKsefState:o(kn,1),submitInvoiceToKsef:o(Bn,1),getInvoiceKsefUpo:o(Nn,1),create:o(Un,1),list:c(wn),createCustom:o(Vn,1),get:o(Hn,2),update:o(Ln,2),getCreditOptions:o(qn,1),downloadInvoiceXRechnung:o(Wn,1),downloadInvoiceZugferd:o(Gn,1),getVersions:o(Mn,1),getVersion:o(zn,2),renderInvoicePreview:o(Kn,2),void:o($n,2),fiscalizeInvoice:o(Jn,1),changeInvoiceBuyerOib:o(jn,2),renderHtml:o(Xn,2),renderPdf:Qn,downloadPdf:Lg};var qg=()=>"/items",ea=async(e,t)=>r(qg(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Wg=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/items?${s}`:"/items"},ta=async(e,t)=>r(Wg(e),{...t,method:"GET"}),Gg=()=>"/items/categories",sa=async e=>r(Gg(),{...e,method:"GET"}),Mg=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/items/import/template?${s}`:"/items/import/template"},ra=async(e,t)=>r(Mg(e),{...t,method:"GET"}),zg=()=>"/items/import/preview",oa=async(e,t)=>{let s=new FormData;return s.append("file",e.file),r(zg(),{...t,method:"POST",body:s})},Kg=()=>"/items/import",na=async(e,t)=>{let s=new FormData;return s.append("file",e.file),r(Kg(),{...t,method:"POST",body:s})},$g=e=>`/items/${e}`,aa=async(e,t,s)=>r($g(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Jg=e=>`/items/${e}`,pa=async(e,t)=>r(Jg(e),{...t,method:"DELETE"}),jg=e=>`/items/${e}/restore`,ia=async(e,t)=>r(jg(e),{...t,method:"POST"}),Xg=e=>`/items/${e}/permanent`,ca=async(e,t)=>r(Xg(e),{...t,method:"DELETE"}),_g=e=>`/items/${e}/inventory`,da=async(e,t)=>r(_g(e),{...t,method:"GET"}),Yg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/items/${e}/inventory/movements?${a}`:`/items/${e}/inventory/movements`},Ra=async(e,t,s)=>r(Yg(e,t),{...s,method:"GET"}),Qg=e=>`/items/${e}/inventory/movements`,ua=async(e,t,s)=>r(Qg(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Zg=(e,t)=>`/items/${e}/inventory/movements/${t}`,ya=async(e,t,s)=>r(Zg(e,t),{...s,method:"DELETE"});var la={create:o(ea,1),list:c(ta),categories:o(sa,0),getItemsImportTemplate:o(ra,1),preview:o(oa,1),importItems:o(na,1),update:o(aa,2),delete:o(pa,1),restoreItem:o(ia,1),permanentDeleteItem:o(ca,1),getItemInventory:o(da,1),getItemInventoryMovements:o(Ra,2),createItemInventoryMovement:o(ua,2),deleteItemInventoryMovement:o(ya,2)};var eE=()=>"/legacy-migration/auth",ga=async(e,t)=>r(eE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),tE=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/legacy-migration/organizations/${e}?${a}`:`/legacy-migration/organizations/${e}`},Ea=async(e,t,s)=>r(tE(e,t),{...s,method:"GET"}),sE=()=>"/legacy-migration/jobs",ma=async(e,t)=>r(sE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),rE=()=>"/legacy-migration/jobs",xa=async e=>r(rE(),{...e,method:"GET"}),oE=e=>`/legacy-migration/jobs/${e}`,va=async(e,t)=>r(oE(e),{...t,method:"GET"});var ha={legacyMigrationAuth:o(ga,1),getLegacyMigrationOrganization:o(Ea,2),create:o(ma,1),listMigrationJobs:o(xa,0),getMigrationJob:o(va,1)};var nE=()=>"/locale/detect",Pa=async e=>r(nE(),{...e,method:"GET"});var Sa={detectLocale:o(Pa,0)};var aE=()=>"/order-integrations/shopify/authorize",Ia=async(e,t)=>r(aE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),pE=()=>"/order-integrations/woocommerce/authorize",fa=async(e,t)=>r(pE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),iE=()=>"/order-integrations/magento/authorize",Ta=async(e,t)=>r(iE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),cE=e=>`/order-integrations/magento/authorizations/${e}`,ba=async(e,t)=>r(cE(e),{...t,method:"GET"}),dE=()=>"/order-integrations/shopify/resume-install",Ca=async(e,t)=>r(dE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),RE=e=>`/order-integrations/${e}/promote-shopify-billing`,Fa=async(e,t)=>r(RE(e),{...t,method:"POST"}),uE=e=>`/order-integrations/${e}/sync-shopify`,Oa=async(e,t,s)=>r(uE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),yE=e=>`/order-integrations/${e}/sync`,Aa=async(e,t,s)=>r(yE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),lE=()=>"/order-integrations/custom/connect",Da=async(e,t)=>r(lE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),gE=e=>`/order-integrations/${e}/custom/rotate-secret`,ka=async(e,t)=>r(gE(e),{...t,method:"POST"}),EE=e=>`/order-integrations/${e}/orders`,Ba=async(e,t,s)=>r(EE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),mE=()=>"/order-integrations",Na=async(e,t)=>r(mE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),xE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/order-integrations?${s}`:"/order-integrations"},Ua=async(e,t)=>r(xE(e),{...t,method:"GET"}),vE=e=>`/order-integrations/${e}`,wa=async(e,t)=>r(vE(e),{...t,method:"GET"}),hE=e=>`/order-integrations/${e}`,Va=async(e,t,s)=>r(hE(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),PE=e=>`/order-integrations/${e}`,Ha=async(e,t)=>r(PE(e),{...t,method:"DELETE"});var La={authorizeShopify:o(Ia,1),authorizeWooCommerce:o(fa,1),authorizeMagento:o(Ta,1),getMagentoAuthorization:o(ba,1),resumeShopifyInstall:o(Ca,1),promoteShopifyBilling:o(Fa,1),syncShopifyOrders:o(Oa,2),syncOrderIntegration:o(Aa,2),connectCustomStore:o(Da,1),rotateCustomStoreSecret:o(ka,1),pushCustomStoreOrder:o(Ba,2),create:o(Na,1),list:c(Ua),get:o(wa,1),update:o(Va,2),delete:o(Ha,1)};var SE=()=>"/orders",qa=async(e,t)=>r(SE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),IE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/orders?${s}`:"/orders"},Wa=async(e,t)=>r(IE(e),{...t,method:"GET"}),fE=e=>`/orders/${e}`,Ga=async(e,t)=>r(fE(e),{...t,method:"GET"}),TE=e=>`/orders/${e}`,Ma=async(e,t,s)=>r(TE(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),bE=e=>`/orders/${e}`,za=async(e,t)=>r(bE(e),{...t,method:"DELETE"}),CE=e=>`/orders/${e}/process`,Ka=async(e,t)=>r(CE(e),{...t,method:"POST"}),FE=e=>`/orders/${e}/cancel`,$a=async(e,t)=>r(FE(e),{...t,method:"POST"}),OE=e=>`/orders/${e}/reissue`,Ja=async(e,t)=>r(OE(e),{...t,method:"POST"});var ja={create:o(qa,1),list:c(Wa),get:o(Ga,1),update:o(Ma,2),delete:o(za,1),processOrder:o(Ka,1),cancelOrder:o($a,1),reissueOrder:o(Ja,1)};var AE=()=>"/payment-reminders/send",Xa=async(e,t)=>r(AE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),DE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/payment-reminders?${s}`:"/payment-reminders"},_a=async(e,t)=>r(DE(e),{...t,method:"GET"});var Ya={sendPaymentReminder:o(Xa,1),list:c(_a)};var kE=()=>"/payments",Qa=async(e,t)=>r(kE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),BE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/payments?${s}`:"/payments"},Za=async(e,t)=>r(BE(e),{...t,method:"GET"}),NE=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/payments/${e}?${a}`:`/payments/${e}`},ep=async(e,t,s)=>r(NE(e,t),{...s,method:"GET"}),UE=e=>`/payments/${e}`,tp=async(e,t,s)=>r(UE(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),wE=e=>`/payments/${e}`,sp=async(e,t)=>r(wE(e),{...t,method:"DELETE"}),VE=e=>`/payments/${e}/restore`,rp=async(e,t)=>r(VE(e),{...t,method:"POST"}),HE=e=>`/payments/${e}/permanent`,op=async(e,t)=>r(HE(e),{...t,method:"DELETE"}),LE=()=>"/bank-imports",np=async(e,t)=>{let s=new FormData;return s.append("file",e.file),e.source_format!==void 0&&e.source_format!==null&&s.append("source_format",e.source_format),e.column_mapping!==void 0&&e.column_mapping!==null&&s.append("column_mapping",e.column_mapping),e.ledger_account_code!==void 0&&e.ledger_account_code!==null&&s.append("ledger_account_code",e.ledger_account_code),e.account_iban!==void 0&&e.account_iban!==null&&s.append("account_iban",e.account_iban),r(LE(),{...t,method:"POST",body:s})},qE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/bank-imports?${s}`:"/bank-imports"},ap=async(e,t)=>r(qE(e),{...t,method:"GET"}),WE=e=>`/bank-imports/${e}`,pp=async(e,t)=>r(WE(e),{...t,method:"GET"}),GE=e=>`/bank-imports/${e}/summary`,ip=async(e,t)=>r(GE(e),{...t,method:"GET"}),ME=e=>`/bank-imports/${e}/match`,cp=async(e,t)=>r(ME(e),{...t,method:"POST"}),zE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/bank-transactions?${s}`:"/bank-transactions"},dp=async(e,t)=>r(zE(e),{...t,method:"GET"}),KE=e=>`/bank-transactions/${e}`,Rp=async(e,t)=>r(KE(e),{...t,method:"GET"}),$E=e=>`/bank-transactions/${e}/link`,up=async(e,t,s)=>r($E(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),JE=e=>`/bank-transactions/${e}/confirm-fee`,yp=async(e,t,s)=>r(JE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),jE=e=>`/bank-transactions/${e}/categorize`,lp=async(e,t,s)=>r(jE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),XE=e=>`/bank-transactions/${e}/ignore`,gp=async(e,t)=>r(XE(e),{...t,method:"POST"}),_E=e=>`/bank-transactions/${e}/unlink`,Ep=async(e,t)=>r(_E(e),{...t,method:"POST"});var mp={create:o(Qa,1),list:c(Za),get:o(ep,2),update:o(tp,2),delete:o(sp,1),restorePayment:o(rp,1),permanentDeletePayment:o(op,1),importBankStatement:o(np,1),listBankImports:o(ap,1),getBankImport:o(pp,1),getBankImportSummary:o(ip,1),rematchBankImport:o(cp,1),listBankTransactions:o(dp,1),getBankTransaction:o(Rp,1),linkBankTransaction:o(up,2),confirmBankTransactionFee:o(yp,2),categorizeBankTransaction:o(lp,2),ignoreBankTransaction:o(gp,1),unlinkBankTransaction:o(Ep,1)};var YE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/tables?${s}`:"/pos/tables"},xp=async(e,t)=>r(YE(e),{...t,method:"GET"}),QE=()=>"/pos/tables",vp=async(e,t)=>r(QE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ZE=e=>`/pos/tables/${e}`,hp=async(e,t,s)=>r(ZE(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),e4=e=>`/pos/tables/${e}`,Pp=async(e,t)=>r(e4(e),{...t,method:"DELETE"}),t4=e=>`/pos/tabs/${e}/items`,Sp=async(e,t,s)=>r(t4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),s4=e=>`/pos/tabs/${e}/claim`,Ip=async(e,t,s)=>r(s4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),r4=e=>`/pos/tabs/${e}/release`,fp=async(e,t,s)=>r(r4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),o4=e=>`/pos/tabs/${e}/close`,Tp=async(e,t,s)=>r(o4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),n4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/tabs?${s}`:"/pos/tabs"},bp=async(e,t)=>r(n4(e),{...t,method:"GET"}),a4=()=>"/pos/tabs",Cp=async(e,t)=>r(a4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),p4=e=>`/pos/tabs/${e}`,Fp=async(e,t)=>r(p4(e),{...t,method:"GET"}),i4=e=>`/pos/tabs/${e}`,Op=async(e,t,s)=>r(i4(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),c4=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/pos/tabs/${e}?${a}`:`/pos/tabs/${e}`},Ap=async(e,t,s)=>r(c4(e,t),{...s,method:"DELETE"}),d4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/reports/daily/export?${s}`:"/pos/reports/daily/export"},Dp=async(e,t)=>r(d4(e),{...t,method:"GET"}),R4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/reports/monthly/export?${s}`:"/pos/reports/monthly/export"},kp=async(e,t)=>r(R4(e),{...t,method:"GET"}),u4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/reports/daily?${s}`:"/pos/reports/daily"},Bp=async(e,t)=>r(u4(e),{...t,method:"GET"}),y4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/reports/monthly?${s}`:"/pos/reports/monthly"},Np=async(e,t)=>r(y4(e),{...t,method:"GET"}),l4=()=>"/pos/operators",Up=async e=>r(l4(),{...e,method:"GET"}),g4=()=>"/pos/operators/enrol",wp=async(e,t)=>r(g4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),E4=()=>"/pos/operators/switch",Vp=async(e,t)=>r(E4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),m4=e=>`/pos/operators/${e}/pin`,Hp=async(e,t,s)=>r(m4(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),x4=e=>`/pos/operators/${e}/pin`,Lp=async(e,t)=>r(x4(e),{...t,method:"DELETE"});var v4=o(Ap,2),qp={listTables:c(xp),createTable:o(vp,1),updateTable:o(hp,2),deleteTable:o(Pp,1),appendTabItems:o(Sp,2),claimTab:o(Ip,2),releaseTab:o(fp,2),closeTab:o(Tp,2),listTabs:c(bp),createTab:o(Cp,1),getTab:o(Fp,1),updateTab:o(Op,2),cancelTab:Object.assign((...e)=>v4(e[0],e[1]??{},e[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:o(Dp,1),exportPosMonthlyReport:o(kp,1),dailyReport:o(Bp,1),getPosMonthlyReport:o(Np,1),listOperators:o(Up,0),enrolPosOperator:o(wp,1),switchOperator:o(Vp,1),setOperatorPin:o(Hp,2),clearOperatorPin:o(Lp,1)};var h4=()=>"/fiscalization/pt/atcud-series",Wp=async(e,t)=>r(h4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),P4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/fiscalization/pt/atcud-series?${s}`:"/fiscalization/pt/atcud-series"},Gp=async(e,t)=>r(P4(e),{...t,method:"GET"}),S4=e=>`/fiscalization/pt/atcud-series/${e}`,Mp=async(e,t)=>r(S4(e),{...t,method:"GET"}),I4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/fiscalization/pt/atcud-series/active?${s}`:"/fiscalization/pt/atcud-series/active"},zp=async(e,t)=>r(I4(e),{...t,method:"POST"}),f4=e=>`/fiscalization/pt/atcud-series/${e}/retire`,Kp=async(e,t)=>r(f4(e),{...t,method:"POST"});var $p={create:o(Wp,1),list:c(Gp),get:o(Mp,1),getActive:o(zp,1),retirePtAtcudSeries:o(Kp,1)};var T4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/fiscalization/pt/saft/report?${s}`:"/fiscalization/pt/saft/report"},Jp=async(e,t)=>r(T4(e),{...t,method:"GET"});var jp={generateReport:o(Jp,1)};var b4=e=>`/purchase-orders/shareable/${e}`,Xp=async(e,t)=>r(b4(e),{...t,method:"GET"}),C4=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/purchase-orders/shareable/${e}/html?${a}`:`/purchase-orders/shareable/${e}/html`},_p=async(e,t,s)=>r(C4(e,t),{...s,method:"GET"}),F4=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/purchase-orders/shareable/${e}/pdf?${a}`:`/purchase-orders/shareable/${e}/pdf`},Yp=async(e,t,s)=>r(F4(e,t),{...s,method:"GET"}),O4=()=>"/purchase-orders",Qp=async(e,t)=>r(O4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),A4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/purchase-orders?${s}`:"/purchase-orders"},Zp=async(e,t)=>r(A4(e),{...t,method:"GET"}),D4=e=>`/purchase-orders/${e}`,ei=async(e,t)=>r(D4(e),{...t,method:"GET"}),k4=e=>`/purchase-orders/${e}`,ti=async(e,t,s)=>r(k4(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),B4=e=>`/purchase-orders/${e}/versions`,si=async(e,t)=>r(B4(e),{...t,method:"GET"}),N4=(e,t)=>`/purchase-orders/${e}/versions/${t}`,ri=async(e,t,s)=>r(N4(e,t),{...s,method:"GET"}),U4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/purchase-orders/render?${s}`:"/purchase-orders/render"},oi=async(e,t,s)=>r(U4(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),w4=e=>`/purchase-orders/${e}/void`,ni=async(e,t,s)=>r(w4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var ai={getShareablePurchaseOrder:o(Xp,1),getShareablePurchaseOrderHtml:o(_p,2),getShareablePurchaseOrderPdf:o(Yp,2),create:o(Qp,1),list:c(Zp),get:o(ei,1),update:o(ti,2),getVersions:o(si,1),getVersion:o(ri,2),renderPurchaseOrderPreview:o(oi,2),void:o(ni,2)};var V4=()=>"/recurring-invoices",pi=async(e,t)=>r(V4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),H4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/recurring-invoices?${s}`:"/recurring-invoices"},ii=async(e,t)=>r(H4(e),{...t,method:"GET"}),L4=e=>`/recurring-invoices/${e}`,ci=async(e,t)=>r(L4(e),{...t,method:"GET"}),q4=e=>`/recurring-invoices/${e}`,di=async(e,t,s)=>r(q4(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),W4=e=>`/recurring-invoices/${e}`,Ri=async(e,t)=>r(W4(e),{...t,method:"DELETE"}),G4=e=>`/recurring-invoices/${e}/restore`,ui=async(e,t)=>r(G4(e),{...t,method:"POST"}),M4=e=>`/recurring-invoices/${e}/permanent`,yi=async(e,t)=>r(M4(e),{...t,method:"DELETE"}),z4=e=>`/recurring-invoices/${e}/pause`,li=async(e,t)=>r(z4(e),{...t,method:"POST"}),K4=e=>`/recurring-invoices/${e}/resume`,gi=async(e,t)=>r(K4(e),{...t,method:"POST"}),$4=e=>`/recurring-invoices/${e}/trigger`,Ei=async(e,t)=>r($4(e),{...t,method:"POST"});var mi={create:o(pi,1),list:c(ii),get:o(ci,1),update:o(di,2),delete:o(Ri,1),restoreRecurringInvoice:o(ui,1),permanentDeleteRecurringInvoice:o(yi,1),pauseRecurringInvoice:o(li,1),resumeRecurringInvoice:o(gi,1),triggerRecurringInvoice:o(Ei,1)};var J4=()=>"/revenue-recognition/settings",xi=async e=>r(J4(),{...e,method:"GET"}),j4=()=>"/revenue-recognition/settings",vi=async(e,t)=>r(j4(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),X4=()=>"/revenue-recognition/backfill",hi=async(e,t)=>r(X4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),_4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/revenue-recognition/report?${s}`:"/revenue-recognition/report"},Pi=async(e,t)=>r(_4(e),{...t,method:"GET"}),Y4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/revenue-recognition/details?${s}`:"/revenue-recognition/details"},Si=async(e,t)=>r(Y4(e),{...t,method:"GET"}),Q4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/revenue-recognition/lines?${s}`:"/revenue-recognition/lines"},Ii=async(e,t)=>r(Q4(e),{...t,method:"GET"}),Z4=e=>`/revenue-recognition/documents/${e}`,fi=async(e,t)=>r(Z4(e),{...t,method:"GET"});var Ti={getSettings:o(xi,0),updateSettings:o(vi,1),backfill:o(hi,1),getReport:o(Pi,1),getDetails:o(Si,1),listLines:o(Ii,1),getDocumentSchedule:o(fi,1)};var em=()=>"/stripe-app/marketplace-authorize",bi=async(e,t)=>r(em(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),tm=()=>"/stripe-app/connect",Ci=async(e,t)=>r(tm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),sm=()=>"/stripe-app/entity-connection",Fi=async e=>r(sm(),{...e,method:"GET"}),rm=()=>"/stripe-app/entity-connection",Oi=async e=>r(rm(),{...e,method:"DELETE"}),om=()=>"/stripe-app/entity-settings",Ai=async e=>r(om(),{...e,method:"GET"}),nm=()=>"/stripe-app/entity-settings",Di=async(e,t)=>r(nm(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var ki={stripeAppMarketplaceAuthorize:o(bi,1),stripeAppConnect:o(Ci,1),stripeAppEntityGetConnection:o(Fi,0),stripeAppEntityDisconnect:o(Oi,0),stripeAppEntityGetSettings:o(Ai,0),stripeAppEntityUpdateSettings:o(Di,1)};var am=()=>"/subscriptions",Bi=async e=>r(am(),{...e,method:"GET"}),pm=()=>"/subscriptions/spending-limit",Ni=async(e,t)=>r(pm(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),im=()=>"/subscriptions/check-entity-limit",Ui=async e=>r(im(),{...e,method:"GET"});var wi={getCurrent:o(Bi,0),update:o(Ni,1),checkEntityLimit:o(Ui,0)};var cm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-rate-estimates/us?${s}`:"/tax-rate-estimates/us"},Vi=async(e,t)=>r(cm(e),{...t,method:"GET"});var Hi={listUsTaxRateEstimates:o(Vi,1)};var dm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/liability?${s}`:"/tax-reports/liability"},Li=async(e,t)=>r(dm(e),{...t,method:"GET"}),Rm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/payments?${s}`:"/tax-reports/payments"},qi=async(e,t)=>r(Rm(e),{...t,method:"GET"}),um=()=>"/tax-reports/payments",Wi=async(e,t)=>r(um(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ym=e=>`/tax-reports/payments/${e}`,Gi=async(e,t,s)=>r(ym(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),lm=e=>`/tax-reports/payments/${e}`,Mi=async(e,t)=>r(lm(e),{...t,method:"DELETE"}),gm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/eu/oss?${s}`:"/tax-reports/eu/oss"},zi=async(e,t)=>r(gm(e),{...t,method:"GET"}),Em=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/kir?${s}`:"/tax-reports/kir"},Ki=async(e,t)=>r(Em(e),{...t,method:"POST"}),mm=()=>"/tax-reports/si/profile",$i=async e=>r(mm(),{...e,method:"GET"}),xm=()=>"/tax-reports/si/profile",Ji=async(e,t)=>r(xm(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),vm=()=>"/tax-reports/si/yearly/normirani/review",ji=async(e,t)=>r(vm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),hm=()=>"/tax-reports/si/yearly/normirani/export",Xi=async(e,t)=>r(hm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Pm=()=>"/tax-reports/si/accounting/vod/export",_i=async(e,t)=>r(Pm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Sm=()=>"/tax-reports/si/accounting/minimax/export",Yi=async(e,t)=>r(Sm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Im=()=>"/tax-reports/si/accounting/vasco/export",Qi=async(e,t)=>r(Im(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),fm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/accounting/quickbooks/export?${s}`:"/tax-reports/accounting/quickbooks/export"},Zi=async(e,t)=>r(fm(e),{...t,method:"GET"});var ec={getTaxLiabilityReport:o(Li,1),list:c(qi),create:o(Wi,1),update:o(Gi,2),delete:o(Mi,1),getEuOssReport:o(zi,1),generateKirExport:o(Ki,1),getSloveniaTaxProfile:o($i,0),updateSloveniaTaxProfile:o(Ji,1),reviewSloveniaYearlyNormiraniReport:o(ji,1),exportSloveniaYearlyNormiraniReport:o(Xi,1),exportSloveniaVodXml:o(_i,1),exportSloveniaMinimaxXml:o(Yi,1),exportSloveniaVascoXml:o(Qi,1),exportQuickbooksCsv:o(Zi,1),listEmployees:o(P,1),registerEmployee:o(S,1),getEmployee:o(I,1),modifyEmployee:o(f,2),archiveEmployee:o(T,1),getEmployeeAttendance:o(b,2),replaceEmployeeAttendance:o(C,3),resolvePayrollParameters:o(F,1),getPayrollParameterHistory:o(O,1),setPayrollParameterOverride:o(A,3),preview:o(D,1),draftVatReturn:o(k,1),listVatReturns:o(B,1),getVatReturn:o(N,1),recomputeVatReturn:o(U,1),approveVatReturn:o(w,1),submitVatReturn:o(V,2),reopenVatReturn:o(H,1),exportVatReturn:o(L,2),listFilings:o(q,1),completeFiling:o(W,2),reopenFiling:o(G,1),dismissFiling:o(M,2),listAccountFilingsCalendar:o(z,1)};var Tm=()=>"/taxes",tc=async(e,t)=>r(Tm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),bm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/taxes?${s}`:"/taxes"},sc=async(e,t)=>r(bm(e),{...t,method:"GET"}),Cm=e=>`/taxes/${e}`,rc=async(e,t,s)=>r(Cm(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Fm=e=>`/taxes/${e}`,oc=async(e,t,s)=>r(Fm(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Om=e=>`/taxes/${e}`,nc=async(e,t)=>r(Om(e),{...t,method:"DELETE"}),Am=e=>`/taxes/${e}/restore`,ac=async(e,t)=>r(Am(e),{...t,method:"POST"}),Dm=e=>`/taxes/${e}/permanent`,pc=async(e,t)=>r(Dm(e),{...t,method:"DELETE"});var ic={create:o(tc,1),list:c(sc),update:o(rc,2),replaceTax:o(oc,2),delete:o(nc,1),restoreTax:o(ac,1),permanentDeleteTax:o(pc,1)};var km=()=>"/fiscalization/ticketbai/settings",cc=async e=>r(km(),{...e,method:"GET"}),Bm=()=>"/fiscalization/ticketbai/settings",dc=async(e,t)=>r(Bm(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Nm=()=>"/fiscalization/ticketbai/settings/certificate",Rc=async(e,t)=>{let s=new FormData;return s.append("file",e.file),s.append("passphrase",e.passphrase),r(Nm(),{...t,method:"POST",body:s})},Um=e=>`/fiscalization/ticketbai/records/${e}`,uc=async(e,t)=>r(Um(e),{...t,method:"GET"}),wm=e=>`/fiscalization/ticketbai/records/${e}/xml`,yc=async(e,t)=>r(wm(e),{...t,method:"GET"}),Vm=e=>`/fiscalization/ticketbai/records/${e}/retry`,lc=async(e,t)=>r(Vm(e),{...t,method:"POST"}),Hm=e=>`/fiscalization/ticketbai/records/${e}/reconcile`,gc=async(e,t)=>r(Hm(e),{...t,method:"POST"});var Ec={getSettings:o(cc,0),updateSettings:o(dc,1),uploadCertificate:o(Rc,1),getRecord:o(uc,1),downloadRecordXml:o(yc,1),retryRecord:o(lc,1),reconcileRecord:o(gc,1)};var Lm=()=>"/transaction-type/check",mc=async(e,t)=>r(Lm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var xc={checkTransactionType:o(mc,1)};var qm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/travel-orders?${s}`:"/travel-orders"},vc=async(e,t)=>r(qm(e),{...t,method:"GET"}),Wm=()=>"/travel-orders",hc=async(e,t)=>r(Wm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Gm=()=>"/travel-orders/preview",Pc=async(e,t)=>r(Gm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Mm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/travel-orders/render?${s}`:"/travel-orders/render"},Sc=async(e,t,s)=>r(Mm(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),zm=()=>"/travel-orders/route-distance",Ic=async(e,t)=>r(zm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Km=e=>`/travel-orders/${e}`,fc=async(e,t)=>r(Km(e),{...t,method:"GET"}),$m=e=>`/travel-orders/${e}`,Tc=async(e,t,s)=>r($m(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Jm=e=>`/travel-orders/${e}`,bc=async(e,t)=>r(Jm(e),{...t,method:"DELETE"}),jm=e=>`/travel-orders/${e}/approve`,Cc=async(e,t)=>r(jm(e),{...t,method:"POST"}),Xm=e=>`/travel-orders/${e}/settle`,Fc=async(e,t)=>r(Xm(e),{...t,method:"POST"}),_m=e=>`/travel-orders/${e}/reopen`,Oc=async(e,t,s)=>r(_m(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ym=e=>`/travel-orders/${e}/cancel`,Ac=async(e,t)=>r(Ym(e),{...t,method:"POST"}),Qm=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/travel-orders/${e}/pdf?${a}`:`/travel-orders/${e}/pdf`},Dc=async(e,t,s)=>r(Qm(e,t),{...s,method:"GET"}),Zm=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/travel-orders/${e}/html?${a}`:`/travel-orders/${e}/html`},kc=async(e,t,s)=>r(Zm(e,t),{...s,method:"GET"});var Bc={list:c(vc),create:o(hc,1),preview:o(Pc,1),renderTravelOrderPreview:o(Sc,2),calculateTravelOrderRouteDistance:o(Ic,1),get:o(fc,1),update:o(Tc,2),delete:o(bc,1),approveTravelOrder:o(Cc,1),settleTravelOrder:o(Fc,1),reopenTravelOrder:o(Oc,2),cancelTravelOrder:o(Ac,1),renderPdf:o(Dc,2),renderHtml:o(kc,2)};var Nc="https://eu.spaceinvoices.com";var ex=e=>`/documents/${e}/ujp`,Uc=async(e,t)=>r(ex(e),{...t,method:"GET"});var wc={download:o(Uc,1)};var tx=()=>"/upload/image",Vc=async(e,t)=>{let s=new FormData;return s.append("file",e.file),r(tx(),{...t,method:"POST",body:s})};var Hc={uploadImage:o(Vc,1)};var sx=()=>"/accounts/two-factor-policy",Lc=async e=>r(sx(),{...e,method:"GET"}),rx=()=>"/accounts/two-factor-policy",qc=async(e,t)=>r(rx(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ox=e=>`/entities/${e}/two-factor-policy`,Wc=async(e,t)=>r(ox(e),{...t,method:"GET"}),nx=e=>`/entities/${e}/two-factor-policy`,Gc=async(e,t,s)=>r(nx(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),ax=()=>"/users/two-factor/setup",Mc=async(e,t)=>r(ax(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),px=()=>"/users/two-factor/enable",zc=async(e,t)=>r(px(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ix=()=>"/users/me/two-factor",Kc=async e=>r(ix(),{...e,method:"GET"}),cx=()=>"/users/me/two-factor/setup",$c=async(e,t)=>r(cx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),dx=()=>"/users/me/two-factor/enable",Jc=async(e,t)=>r(dx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Rx=()=>"/users/me/two-factor/disable",jc=async(e,t)=>r(Rx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ux=()=>"/users/two-factor/verify",Xc=async(e,t)=>r(ux(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),yx=()=>"/users/login",_c=async(e,t)=>r(yx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),lx=()=>"/users/signup",Yc=async(e,t)=>r(lx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),gx=()=>"/users/password-reset",Qc=async(e,t)=>r(gx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Ex=()=>"/users/password-reset/confirm",Zc=async(e,t)=>r(Ex(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),mx=()=>"/users/me/accounts",ed=async e=>r(mx(),{...e,method:"GET"}),xx=()=>"/users/me",td=async e=>r(xx(),{...e,method:"GET"}),vx=()=>"/users/me",sd=async(e,t)=>r(vx(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),hx=()=>"/users/me/account-deletion",rd=async e=>r(hx(),{...e,method:"POST"}),Px=()=>"/users/me/settings/furs",od=async(e,t)=>r(Px(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Sx=()=>"/users/me/settings/fina",nd=async(e,t)=>r(Sx(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var ad={getAccountTwoFactorPolicy:o(Lc,0),updateAccountTwoFactorPolicy:o(qc,1),getEntityTwoFactorPolicy:o(Wc,1),updateEntityTwoFactorPolicy:o(Gc,2),setupRequiredTwoFactor:o(Mc,1),enableRequiredTwoFactor:o(zc,1),getTwoFactorConfiguration:o(Kc,0),setupTwoFactor:o($c,1),enableTwoFactor:o(Jc,1),disableTwoFactor:o(jc,1),verifyTwoFactor:o(Xc,1),login:o(_c,1),signup:o(Yc,1),requestPasswordReset:o(Qc,1),confirmPasswordReset:o(Zc,1),listMyAccounts:o(ed,0),getMe:o(td,0),update:o(sd,1),requestAccountDeletion:o(rd,0),updateFursSettings:o(od,1),updateFinaSettings:o(nd,1)};var Ix=()=>"/fiscalization/verifactu/settings",pd=async e=>r(Ix(),{...e,method:"GET"}),fx=()=>"/fiscalization/verifactu/settings",id=async(e,t)=>r(fx(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Tx=()=>"/fiscalization/verifactu/certificate",cd=async(e,t)=>{let s=new FormData;return s.append("file",e.file),s.append("passphrase",e.passphrase),r(Tx(),{...t,method:"POST",body:s})},bx=e=>`/fiscalization/verifactu/records/${e}`,dd=async(e,t)=>r(bx(e),{...t,method:"GET"}),Cx=e=>`/fiscalization/verifactu/records/${e}/retry`,Rd=async(e,t)=>r(Cx(e),{...t,method:"POST"}),Fx=e=>`/fiscalization/verifactu/records/${e}/correct`,ud=async(e,t,s)=>r(Fx(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ox=e=>`/fiscalization/verifactu/records/${e}/cancel`,yd=async(e,t,s)=>r(Ox(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var ld={getSettings:o(pd,0),updateSettings:o(id,1),uploadCertificate:o(cd,1),getEvidence:o(dd,1),retryRecord:o(Rd,1),correctRecord:o(ud,2),cancelRecord:o(yd,2)};var Ax=()=>"/vies/check",gd=async(e,t)=>r(Ax(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var Ed={checkVies:o(gd,1)};var Dx=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/warehouses?${s}`:"/warehouses"},md=async(e,t)=>r(Dx(e),{...t,method:"GET"}),kx=()=>"/warehouses",xd=async(e,t)=>r(kx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Bx=e=>`/warehouses/${e}`,vd=async(e,t)=>r(Bx(e),{...t,method:"GET"}),Nx=e=>`/warehouses/${e}`,hd=async(e,t,s)=>r(Nx(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ux=e=>`/warehouses/${e}`,Pd=async(e,t)=>r(Ux(e),{...t,method:"DELETE"});var Sd={list:c(md),create:o(xd,1),get:o(vd,1),update:o(hd,2),delete:o(Pd,1)};var wx=()=>"/webhooks",Id=async(e,t)=>r(wx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Vx=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/webhooks?${s}`:"/webhooks"},fd=async(e,t)=>r(Vx(e),{...t,method:"GET"}),Hx=e=>`/webhooks/${e}`,Td=async(e,t)=>r(Hx(e),{...t,method:"GET"}),Lx=e=>`/webhooks/${e}`,bd=async(e,t,s)=>r(Lx(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),qx=e=>`/webhooks/${e}`,Cd=async(e,t)=>r(qx(e),{...t,method:"DELETE"}),Wx=e=>`/webhooks/${e}/test`,Fd=async(e,t)=>r(Wx(e),{...t,method:"POST"});var Gx=e=>`/webhooks/${e}/rotate-secret`,Od=async(e,t)=>r(Gx(e),{...t,method:"POST"});var Ad={create:o(Id,1),list:c(fd),get:o(Td,1),update:o(bd,2),delete:o(Cd,1),testWebhook:o(Fd,1),rotateWebhookSecret:o(Od,1)};var Mx=()=>"/white-label-subscriptions",Dd=async e=>r(Mx(),{...e,method:"GET"}),zx=()=>"/white-label-subscriptions/plans",kd=async e=>r(zx(),{...e,method:"GET"}),Kx=e=>`/white-label-subscriptions/check-feature/${e}`,Bd=async(e,t)=>r(Kx(e),{...t,method:"GET"}),$x=e=>`/white-label-subscriptions/check-limit/${e}`,Nd=async(e,t)=>r($x(e),{...t,method:"GET"}),Jx=()=>"/white-label-subscriptions/billing-email",Ud=async(e,t)=>r(Jx(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var wd={getCurrentWLSubscription:o(Dd,0),list:o(kd,0),checkWLFeature:o(Bd,1),checkWLLimit:o(Nd,1),update:o(Ud,1)};var jx=()=>"/white-labels/current",Vd=async e=>r(jx(),{...e,method:"GET"}),Xx=()=>"/white-labels/me",Hd=async e=>r(Xx(),{...e,method:"GET"});var Ld={getCurrentWhiteLabel:o(Vd,0),getMyWhiteLabel:o(Hd,0)};var v=class{sdkConfig;accountWebhooks=i(pe,()=>this.sdkConfig);accounting=i(Se,()=>this.sdkConfig);activities=i(fe,()=>this.sdkConfig);advanceInvoices=i(We,()=>this.sdkConfig);businessUnits=i(Je,()=>this.sdkConfig);companyRegistry=i(_e,()=>this.sdkConfig);creditNotes=i(Pt,()=>this.sdkConfig);currency=i(It,()=>this.sdkConfig);customers=i(Dt,()=>this.sdkConfig);deliveryNotes=i($t,()=>this.sdkConfig);documents=i(ns,()=>this.sdkConfig);eInvoicing=i(bs,()=>this.sdkConfig);eSlog=i(Os,()=>this.sdkConfig);email=i(Ds,()=>this.sdkConfig);entities=i(Ys,()=>this.sdkConfig);entityApiKeys=i(sr,()=>this.sdkConfig);entityInvitations=i(cr,()=>this.sdkConfig);entityStats=i(Rr,()=>this.sdkConfig);entityUsers=i(xr,()=>this.sdkConfig);estimates=i(Dr,()=>this.sdkConfig);expenses=i(ao,()=>this.sdkConfig);exports=i(xo,()=>this.sdkConfig);files=i(Io,()=>this.sdkConfig);finaCertificate=i(Co,()=>this.sdkConfig);finaDevices=i(Bo,()=>this.sdkConfig);finaPremises=i(Lo,()=>this.sdkConfig);finaSettings=i(Go,()=>this.sdkConfig);financialCategories=i(_o,()=>this.sdkConfig);fursCertificate=i(en,()=>this.sdkConfig);fursDevices=i(nn,()=>this.sdkConfig);fursInternalAct=i(cn,()=>this.sdkConfig);fursPremises=i(En,()=>this.sdkConfig);fursSettings=i(vn,()=>this.sdkConfig);health=i(In,()=>this.sdkConfig);invoices=i(Zn,()=>this.sdkConfig);items=i(la,()=>this.sdkConfig);legacyMigration=i(ha,()=>this.sdkConfig);locale=i(Sa,()=>this.sdkConfig);orderIntegrations=i(La,()=>this.sdkConfig);orders=i(ja,()=>this.sdkConfig);paymentReminders=i(Ya,()=>this.sdkConfig);payments=i(mp,()=>this.sdkConfig);pointOfSale=i(qp,()=>this.sdkConfig);ptAtcudSeries=i($p,()=>this.sdkConfig);ptSafT=i(jp,()=>this.sdkConfig);purchaseOrders=i(ai,()=>this.sdkConfig);recurringInvoices=i(mi,()=>this.sdkConfig);revenueRecognition=i(Ti,()=>this.sdkConfig);stripeApp=i(ki,()=>this.sdkConfig);subscriptions=i(wi,()=>this.sdkConfig);taxRateEstimates=i(Hi,()=>this.sdkConfig);taxReports=i(ec,()=>this.sdkConfig);taxes=i(ic,()=>this.sdkConfig);ticketBai=i(Ec,()=>this.sdkConfig);transactionType=i(xc,()=>this.sdkConfig);travelOrders=i(Bc,()=>this.sdkConfig);ujp=i(wc,()=>this.sdkConfig);upload=i(Hc,()=>this.sdkConfig);users=i(ad,()=>this.sdkConfig);veriFactu=i(ld,()=>this.sdkConfig);vies=i(Ed,()=>this.sdkConfig);warehouses=i(Sd,()=>this.sdkConfig);webhooks=i(Ad,()=>this.sdkConfig);whiteLabelSubscriptions=i(wd,()=>this.sdkConfig);whiteLabels=i(Ld,()=>this.sdkConfig);constructor(t){let s=typeof t=="string"?{accessToken:t}:t,a=typeof s.accessToken=="function"?s.accessToken:()=>s.accessToken;this.sdkConfig={baseUrl:s.basePath??Nc,getAccessToken:a,clientName:s.clientName??"js-sdk",onUnauthorized:s.onUnauthorized,requestTimeoutMs:s.requestTimeoutMs,accountId:s.accountId??null};}};
1
+ var Gd="x-spaceinvoices-client";function K(e){return {[Gd]:e}}var Md=125e3,h=null,$=false;function zd(e){h=e,e==null&&($=false);}function Kd(){$||($=true,console.warn("[space-invoices] setAccountId() fallback is deprecated for SDK instance requests. Pass accountId via the SDK constructor or per-call config instead."));}function $d(){return h}function Jd(){throw new Error("SDK not initialized. Call new SpaceInvoices() first.");}function jd(e){if(!e)return {};if(e instanceof Headers){let t={};return e.forEach((s,a)=>{t[a]=s;}),t}if(Array.isArray(e)){let t={};for(let[s,a]of e)t[s]=a;return t}return e}function Xd(e,t){if(t==null||t<=0)return {signal:e??void 0,cleanup:()=>{}};let s=new AbortController,a=()=>{s.abort(e?.reason);};if(e?.aborted)return a(),{signal:s.signal,cleanup:()=>{}};let n=setTimeout(()=>{s.abort(new Error(`SDK request timed out after ${t}ms`));},t),p=()=>{clearTimeout(n),e?.removeEventListener("abort",a);};return e?.addEventListener("abort",a,{once:true}),s.signal.addEventListener("abort",p,{once:true}),{signal:s.signal,cleanup:p}}async function r(e,t){let{timeoutMs:s,sdkConfig:a,...n}=t??{},p=a??Jd(),u=await Promise.resolve(p.getAccessToken()),y=`${p.baseUrl}${e}`,d={...jd(n.headers)};p.clientName&&Object.assign(d,K(p.clientName)),u&&(d.Authorization=`Bearer ${u}`);let l=d["x-account-id"]||d["X-Account-Id"]||p.accountId||null;!l&&h&&(a&&Kd(),l=h),l&&!d["x-account-id"]&&!d["X-Account-Id"]&&(d["x-account-id"]=l);let E=Xd(n.signal,s===void 0?p.requestTimeoutMs??Md:s);try{let R=await fetch(y,{...n,headers:d,signal:E.signal});R.status===401&&p.onUnauthorized&&p.onUnauthorized(R);let x,qd=R.headers.get("content-length"),m=R.headers.get("content-type"),Wd=R.headers.get("content-disposition");if(qd==="0"||R.status===204)x=void 0;else if(m?.includes("application/pdf")||m?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||m?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||m?.includes("text/csv")||m?.includes("application/octet-stream")||m?.includes("application/zip")||m?.includes("application/x-zip-compressed")||m?.includes("image/"))x=await R.blob();else if(m?.includes("application/xml")||m?.includes("text/xml"))x=Wd?.toLowerCase().includes("attachment")?await R.blob():await R.text();else if(m?.includes("text/html"))x=await R.text();else try{x=await R.json();}catch{x=void 0;}return {data:x,status:R.status,headers:R.headers}}finally{E.cleanup();}}var _d=()=>"/account-webhooks",Q=async(e,t)=>r(_d(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Yd=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/account-webhooks?${s}`:"/account-webhooks"},Z=async(e,t)=>r(Yd(e),{...t,method:"GET"}),Qd=e=>`/account-webhooks/${e}`,ee=async(e,t)=>r(Qd(e),{...t,method:"GET"}),Zd=e=>`/account-webhooks/${e}`,te=async(e,t,s)=>r(Zd(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),eR=e=>`/account-webhooks/${e}`,se=async(e,t)=>r(eR(e),{...t,method:"DELETE"}),tR=e=>`/account-webhooks/${e}/test`,re=async(e,t)=>r(tR(e),{...t,method:"POST"});var sR=e=>`/account-webhooks/${e}/rotate-secret`,oe=async(e,t)=>r(sR(e),{...t,method:"POST"});async function rR(e,t){return e(...t)}function ae(e){if(!e?.entity_id&&!e?.account_id&&!e?.request_id&&!e?.signal&&e?.timeoutMs===void 0&&!e?.sdkConfig)return;let t={};return (e.entity_id||e.account_id||e.request_id)&&(t.headers={...e.entity_id?{"x-entity-id":e.entity_id}:{},...e.account_id?{"x-account-id":e.account_id}:{},...e.request_id?{"X-Request-Id":e.request_id}:{}}),e.signal&&(t.signal=e.signal),e.timeoutMs!==void 0&&(t.timeoutMs=e.timeoutMs),e.sdkConfig&&(t.sdkConfig=e.sdkConfig),t}function o(e,t){let s=async(...n)=>{let p=n[n.length-1],u=p&&typeof p=="object"&&("entity_id"in p||"account_id"in p||"request_id"in p||"signal"in p||"timeoutMs"in p||"sdkConfig"in p||Object.keys(p).length===0),y,g;u?(y=n.slice(0,-1),g=ae(p)):y=[...n];let d=Math.max(0,e.length-1);for(;y.length<d;)y.push(void 0);y.push(g);let l=await rR(e,y);if(l.status>=200&&l.status<300)return l.data;let E=new Error(`API error: ${l.status}`);throw E.status=l.status,E.data=l.data,E};return t===void 0?s:Object.assign(((...n)=>{let p=[...n];return p[t]??={},s(...p)}),{__sdkOptionsIndex:t})}function c(e){return Object.assign(async s=>{let{entity_id:a,account_id:n,request_id:p,signal:u,timeoutMs:y,sdkConfig:g,...d}=s||{},l=ae({entity_id:a,account_id:n,request_id:p,signal:u,timeoutMs:y,sdkConfig:g}),E=await e(d,l);if(E.status===200)return E.data;let R=new Error(`API error: ${E.status}`);throw R.status=E.status,R.data=E.data,R},{__sdkListMethod:true})}function ne(e){return !!e&&typeof e=="object"&&("entity_id"in e||"account_id"in e||"request_id"in e||"signal"in e||"timeoutMs"in e||"sdkConfig"in e||Object.keys(e).length===0)}function i(e,t){let s=Object.entries(e).map(([a,n])=>typeof n!="function"?[a,n]:[a,(...p)=>{let u=t(),y=p[p.length-1],g=n;if(g.__sdkListMethod){let d=p[0];p[0]=d&&typeof d=="object"?{...d,sdkConfig:u}:{sdkConfig:u};}else if(typeof g.__sdkOptionsIndex=="number"){let d=p[g.__sdkOptionsIndex];p[g.__sdkOptionsIndex]=ne(d)?{...d,sdkConfig:u}:{sdkConfig:u};}else ne(y)?p[p.length-1]={...y,sdkConfig:u}:p.push({sdkConfig:u});return n(...p)}]);return Object.fromEntries(s)}var pe={create:o(Q,1),list:c(Z),get:o(ee,1),update:o(te,2),delete:o(se,1),testAccountWebhook:o(re,1),rotateAccountWebhookSecret:o(oe,1)};var oR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/employees?${s}`:"/employees"},P=async(e,t)=>r(oR(e),{...t,method:"GET"}),nR=()=>"/employees",S=async(e,t)=>r(nR(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),aR=e=>`/employees/${e}`,I=async(e,t)=>r(aR(e),{...t,method:"GET"}),pR=e=>`/employees/${e}`,f=async(e,t,s)=>r(pR(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),iR=e=>`/employees/${e}`,T=async(e,t)=>r(iR(e),{...t,method:"DELETE"}),cR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/employees/${e}/attendance?${a}`:`/employees/${e}/attendance`},b=async(e,t,s)=>r(cR(e,t),{...s,method:"GET"}),dR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/employees/${e}/attendance?${a}`:`/employees/${e}/attendance`},C=async(e,t,s,a)=>r(dR(e,s),{...a,method:"PUT",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(t)}),RR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/payroll/parameters?${s}`:"/payroll/parameters"},F=async(e,t)=>r(RR(e),{...t,method:"GET"}),uR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/payroll/parameters/history?${s}`:"/payroll/parameters/history"},O=async(e,t)=>r(uR(e),{...t,method:"GET"}),yR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/payroll/parameters/${e}?${a}`:`/payroll/parameters/${e}`},A=async(e,t,s,a)=>r(yR(e,s),{...a,method:"PUT",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(t)}),lR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/vat-returns/preview?${s}`:"/vat-returns/preview"},D=async(e,t)=>r(lR(e),{...t,method:"GET"}),gR=()=>"/vat-returns",k=async(e,t)=>r(gR(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ER=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/vat-returns?${s}`:"/vat-returns"},B=async(e,t)=>r(ER(e),{...t,method:"GET"}),mR=e=>`/vat-returns/${e}`,N=async(e,t)=>r(mR(e),{...t,method:"GET"}),xR=e=>`/vat-returns/${e}/recompute`,U=async(e,t)=>r(xR(e),{...t,method:"POST"}),vR=e=>`/vat-returns/${e}/approve`,w=async(e,t)=>r(vR(e),{...t,method:"POST"}),hR=e=>`/vat-returns/${e}/submit`,V=async(e,t,s)=>r(hR(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),PR=e=>`/vat-returns/${e}/reopen`,H=async(e,t)=>r(PR(e),{...t,method:"POST"}),SR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/vat-returns/${e}/export?${a}`:`/vat-returns/${e}/export`},L=async(e,t,s)=>r(SR(e,t),{...s,method:"GET"}),IR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/filings?${s}`:"/filings"},q=async(e,t)=>r(IR(e),{...t,method:"GET"}),fR=e=>`/filings/${e}/complete`,W=async(e,t,s)=>r(fR(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),TR=e=>`/filings/${e}/reopen`,G=async(e,t)=>r(TR(e),{...t,method:"POST"}),bR=e=>`/filings/${e}/dismiss`,M=async(e,t,s)=>r(bR(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),CR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/accounting/filings-calendar?${s}`:"/accounting/filings-calendar"},z=async(e,t)=>r(CR(e),{...t,method:"GET"}),FR=()=>"/ledger/accounts",ie=async e=>r(FR(),{...e,method:"GET"}),OR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/ledger/trial-balance?${s}`:"/ledger/trial-balance"},ce=async(e,t)=>r(OR(e),{...t,method:"GET"}),AR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/ledger/profit-and-loss?${s}`:"/ledger/profit-and-loss"},de=async(e,t)=>r(AR(e),{...t,method:"GET"}),DR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/ledger/balance-sheet?${s}`:"/ledger/balance-sheet"},Re=async(e,t)=>r(DR(e),{...t,method:"GET"}),kR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/ledger/entries?${s}`:"/ledger/entries"},ue=async(e,t)=>r(kR(e),{...t,method:"GET"}),BR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/journal-entries?${s}`:"/journal-entries"},ye=async(e,t)=>r(BR(e),{...t,method:"GET"}),NR=()=>"/journal-entries",le=async(e,t)=>r(NR(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),UR=e=>`/journal-entries/${e}`,ge=async(e,t)=>r(UR(e),{...t,method:"GET"}),wR=e=>`/journal-entries/${e}`,Ee=async(e,t,s)=>r(wR(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),VR=e=>`/journal-entries/${e}`,me=async(e,t)=>r(VR(e),{...t,method:"DELETE"}),HR=()=>"/vendor-tax-profiles",xe=async e=>r(HR(),{...e,method:"GET"}),LR=e=>`/vendor-tax-profiles/${e}`,ve=async(e,t,s)=>r(LR(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),qR=e=>`/us-tax-years/${e}`,he=async(e,t)=>r(qR(e),{...t,method:"GET"}),WR=e=>`/us-tax-years/${e}/export`,Pe=async(e,t)=>r(WR(e),{...t,method:"GET"});var Se={listEmployees:o(P,1),registerEmployee:o(S,1),getEmployee:o(I,1),modifyEmployee:o(f,2),archiveEmployee:o(T,1),getEmployeeAttendance:o(b,2),replaceEmployeeAttendance:o(C,3),resolvePayrollParameters:o(F,1),getPayrollParameterHistory:o(O,1),setPayrollParameterOverride:o(A,3),preview:o(D,1),draftVatReturn:o(k,1),listVatReturns:o(B,1),getVatReturn:o(N,1),recomputeVatReturn:o(U,1),approveVatReturn:o(w,1),submitVatReturn:o(V,2),reopenVatReturn:o(H,1),exportVatReturn:o(L,2),listFilings:o(q,1),completeFiling:o(W,2),reopenFiling:o(G,1),dismissFiling:o(M,2),listAccountFilingsCalendar:o(z,1),listLedgerAccounts:o(ie,0),getTrialBalance:o(ce,1),getProfitAndLossReport:o(de,1),getBalanceSheet:o(Re,1),listLedgerEntries:o(ue,1),listJournalEntries:o(ye,1),recordJournalEntry:o(le,1),getJournalEntry:o(ge,1),reviseJournalEntry:o(Ee,2),archiveJournalEntry:o(me,1),listVendorTaxProfiles:o(xe,0),setVendorTaxProfile:o(ve,2),getUsTaxYearWorksheet:o(he,1),exportUsTaxYearWorksheet:o(Pe,1)};var GR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/activities?${s}`:"/activities"},Ie=async(e,t)=>r(GR(e),{...t,method:"GET"});var fe={list:c(Ie)};var MR=e=>`/advance-invoices/${e}/nav/retry`,Te=async(e,t)=>r(MR(e),{...t,method:"POST"}),zR=e=>`/advance-invoices/${e}/nav/reconcile`,be=async(e,t)=>r(zR(e),{...t,method:"POST"}),KR=e=>`/advance-invoices/${e}/nav/annulment`,Ce=async(e,t,s)=>r(KR(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),$R=e=>`/advance-invoices/shareable/${e}`,Fe=async(e,t)=>r($R(e),{...t,method:"GET"}),JR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/advance-invoices/shareable/${e}/html?${a}`:`/advance-invoices/shareable/${e}/html`},Oe=async(e,t,s)=>r(JR(e,t),{...s,method:"GET"}),jR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/advance-invoices/shareable/${e}/pdf?${a}`:`/advance-invoices/shareable/${e}/pdf`},Ae=async(e,t,s)=>r(jR(e,t),{...s,method:"GET"}),XR=e=>`/advance-invoices/shareable/${e}/eslog`,De=async(e,t)=>r(XR(e),{...t,method:"GET"}),_R=()=>"/advance-invoices",ke=async(e,t)=>r(_R(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),YR=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/advance-invoices?${s}`:"/advance-invoices"},Be=async(e,t)=>r(YR(e),{...t,method:"GET"}),QR=()=>"/advance-invoices/custom",Ne=async(e,t)=>r(QR(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ZR=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/advance-invoices/${e}?${a}`:`/advance-invoices/${e}`},Ue=async(e,t,s)=>r(ZR(e,t),{...s,method:"GET"}),eu=e=>`/advance-invoices/${e}`,we=async(e,t,s)=>r(eu(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),tu=e=>`/advance-invoices/${e}/versions`,Ve=async(e,t)=>r(tu(e),{...t,method:"GET"}),su=(e,t)=>`/advance-invoices/${e}/versions/${t}`,He=async(e,t,s)=>r(su(e,t),{...s,method:"GET"}),ru=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/advance-invoices/render?${s}`:"/advance-invoices/render"},Le=async(e,t,s)=>r(ru(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),ou=e=>`/advance-invoices/${e}/void`,qe=async(e,t,s)=>r(ou(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var We={retryAdvanceInvoiceNav:o(Te,1),reconcileAdvanceInvoiceNav:o(be,1),annulAdvanceInvoiceNav:o(Ce,2),getShareableAdvanceInvoice:o(Fe,1),getShareableAdvanceInvoiceHtml:o(Oe,2),getShareableAdvanceInvoicePdf:o(Ae,2),getShareableAdvanceInvoiceEslog:o(De,1),create:o(ke,1),list:c(Be),createCustom:o(Ne,1),get:o(Ue,2),update:o(we,2),getVersions:o(Ve,1),getVersion:o(He,2),renderAdvanceInvoicePreview:o(Le,2),void:o(qe,2)};var nu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/business-units?${s}`:"/business-units"},Ge=async(e,t)=>r(nu(e),{...t,method:"GET"}),au=()=>"/business-units",Me=async(e,t)=>r(au(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),pu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/business-units/${e}?${a}`:`/business-units/${e}`},ze=async(e,t,s)=>r(pu(e,t),{...s,method:"GET"}),iu=e=>`/business-units/${e}`,Ke=async(e,t,s)=>r(iu(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),cu=e=>`/business-units/${e}`,$e=async(e,t)=>r(cu(e),{...t,method:"DELETE"});var Je={list:c(Ge),create:o(Me,1),get:o(ze,2),update:o(Ke,2),delete:o($e,1)};var du=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/company-registry/search?${s}`:"/company-registry/search"},je=async(e,t)=>r(du(e),{...t,method:"GET"}),Ru=()=>"/company-registry/countries",Xe=async e=>r(Ru(),{...e,method:"GET"});var _e={searchCompanyRegistry:o(je,1),list:o(Xe,0)};var uu=e=>`/credit-notes/${e}/nav/retry`,Ye=async(e,t)=>r(uu(e),{...t,method:"POST"}),yu=e=>`/credit-notes/${e}/nav/reconcile`,Qe=async(e,t)=>r(yu(e),{...t,method:"POST"}),lu=e=>`/credit-notes/${e}/nav/annulment`,Ze=async(e,t,s)=>r(lu(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),gu=e=>`/credit-notes/shareable/${e}`,et=async(e,t)=>r(gu(e),{...t,method:"GET"}),Eu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/credit-notes/shareable/${e}/html?${a}`:`/credit-notes/shareable/${e}/html`},tt=async(e,t,s)=>r(Eu(e,t),{...s,method:"GET"}),mu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/credit-notes/shareable/${e}/pdf?${a}`:`/credit-notes/shareable/${e}/pdf`},st=async(e,t,s)=>r(mu(e,t),{...s,method:"GET"}),xu=e=>`/credit-notes/shareable/${e}/eslog`,rt=async(e,t)=>r(xu(e),{...t,method:"GET"}),vu=e=>`/credit-notes/${e}/ksef/recover`,ot=async(e,t)=>r(vu(e),{...t,method:"POST"}),hu=e=>`/credit-notes/${e}/ksef`,nt=async(e,t)=>r(hu(e),{...t,method:"GET"}),Pu=e=>`/credit-notes/${e}/ksef/submit`,at=async(e,t)=>r(Pu(e),{...t,method:"POST"}),Su=e=>`/credit-notes/${e}/ksef/upo`,pt=async(e,t)=>r(Su(e),{...t,method:"GET"}),Iu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/credit-notes?${s}`:"/credit-notes"},it=async(e,t,s)=>r(Iu(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),fu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/credit-notes?${s}`:"/credit-notes"},ct=async(e,t)=>r(fu(e),{...t,method:"GET"}),Tu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/credit-notes/custom?${s}`:"/credit-notes/custom"},dt=async(e,t,s)=>r(Tu(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),bu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/credit-notes/${e}?${a}`:`/credit-notes/${e}`},Rt=async(e,t,s)=>r(bu(e,t),{...s,method:"GET"}),Cu=e=>`/credit-notes/${e}`,ut=async(e,t,s)=>r(Cu(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Fu=e=>`/credit-notes/${e}/xrechnung`,yt=async(e,t)=>r(Fu(e),{...t,method:"GET"}),Ou=e=>`/credit-notes/${e}/zugferd`,lt=async(e,t)=>r(Ou(e),{...t,method:"GET"}),Au=e=>`/credit-notes/${e}/versions`,gt=async(e,t)=>r(Au(e),{...t,method:"GET"}),Du=(e,t)=>`/credit-notes/${e}/versions/${t}`,Et=async(e,t,s)=>r(Du(e,t),{...s,method:"GET"}),ku=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/credit-notes/render?${s}`:"/credit-notes/render"},mt=async(e,t,s)=>r(ku(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),Bu=e=>`/credit-notes/${e}/fiscalize`,xt=async(e,t)=>r(Bu(e),{...t,method:"POST"}),Nu=e=>`/credit-notes/${e}/void`,vt=async(e,t,s)=>r(Nu(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});function ht(e){let t=o(e);function s(a,n,p){let u=n&&typeof n=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(d=>d in n),y=u?void 0:n,g=u?{...n,...p}:p;return t(a,y??{},g??{})}return Object.assign(s,{__sdkOptionsIndex:2})}var Pt={retryCreditNoteNav:o(Ye,1),reconcileCreditNoteNav:o(Qe,1),annulCreditNoteNav:o(Ze,2),getShareableCreditNote:o(et,1),getShareableCreditNoteHtml:o(tt,2),getShareableCreditNotePdf:o(st,2),getShareableCreditNoteEslog:o(rt,1),recoverCreditNoteFromKsef:o(ot,1),getCreditNoteKsefState:o(nt,1),submitCreditNoteToKsef:o(at,1),getCreditNoteKsefUpo:o(pt,1),create:ht(it),list:c(ct),createCustom:ht(dt),get:o(Rt,2),update:o(ut,2),downloadCreditNoteXRechnung:o(yt,1),downloadCreditNoteZugferd:o(lt,1),getVersions:o(gt,1),getVersion:o(Et,2),renderCreditNotePreview:o(mt,2),fiscalizeCreditNote:o(xt,1),void:o(vt,2)};var Uu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/currency/exchange-rate?${s}`:"/currency/exchange-rate"},St=async(e,t)=>r(Uu(e),{...t,method:"GET"});var It={getExchangeRate:o(St,1)};var wu=()=>"/customers",ft=async(e,t)=>r(wu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Vu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/customers?${s}`:"/customers"},Tt=async(e,t)=>r(Vu(e),{...t,method:"GET"}),Hu=e=>`/customers/${e}`,bt=async(e,t)=>r(Hu(e),{...t,method:"GET"}),Lu=e=>`/customers/${e}`,Ct=async(e,t,s)=>r(Lu(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),qu=e=>`/customers/${e}`,Ft=async(e,t)=>r(qu(e),{...t,method:"DELETE"}),Wu=e=>`/customers/${e}/restore`,Ot=async(e,t)=>r(Wu(e),{...t,method:"POST"}),Gu=e=>`/customers/${e}/permanent`,At=async(e,t)=>r(Gu(e),{...t,method:"DELETE"});var Dt={create:o(ft,1),list:c(Tt),get:o(bt,1),update:o(Ct,2),delete:o(Ft,1),restoreCustomer:o(Ot,1),permanentDeleteCustomer:o(At,1)};var Mu=e=>`/delivery-notes/shareable/${e}`,kt=async(e,t)=>r(Mu(e),{...t,method:"GET"}),zu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/delivery-notes/shareable/${e}/html?${a}`:`/delivery-notes/shareable/${e}/html`},Bt=async(e,t,s)=>r(zu(e,t),{...s,method:"GET"}),Ku=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/delivery-notes/shareable/${e}/pdf?${a}`:`/delivery-notes/shareable/${e}/pdf`},Nt=async(e,t,s)=>r(Ku(e,t),{...s,method:"GET"}),$u=()=>"/delivery-notes",Ut=async(e,t)=>r($u(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Ju=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/delivery-notes?${s}`:"/delivery-notes"},wt=async(e,t)=>r(Ju(e),{...t,method:"GET"}),ju=()=>"/delivery-notes/custom",Vt=async(e,t)=>r(ju(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Xu=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/delivery-notes/${e}?${a}`:`/delivery-notes/${e}`},Ht=async(e,t,s)=>r(Xu(e,t),{...s,method:"GET"}),_u=e=>`/delivery-notes/${e}`,Lt=async(e,t,s)=>r(_u(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Yu=e=>`/delivery-notes/${e}/versions`,qt=async(e,t)=>r(Yu(e),{...t,method:"GET"}),Qu=(e,t)=>`/delivery-notes/${e}/versions/${t}`,Wt=async(e,t,s)=>r(Qu(e,t),{...s,method:"GET"}),Zu=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/delivery-notes/render?${s}`:"/delivery-notes/render"},Gt=async(e,t,s)=>r(Zu(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),e0=e=>`/delivery-notes/${e}/void`,Mt=async(e,t,s)=>r(e0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),t0=e=>`/delivery-notes/${e}/sign`,zt=async(e,t,s)=>r(t0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),s0=e=>`/delivery-notes/${e}/quantities`,Kt=async(e,t,s)=>r(s0(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var $t={getShareableDeliveryNote:o(kt,1),getShareableDeliveryNoteHtml:o(Bt,2),getShareableDeliveryNotePdf:o(Nt,2),create:o(Ut,1),list:c(wt),createCustom:o(Vt,1),get:o(Ht,2),update:o(Lt,2),getVersions:o(qt,1),getVersion:o(Wt,2),renderDeliveryNotePreview:o(Gt,2),void:o(Mt,2),signDeliveryNote:o(zt,2),setDeliveryNoteQuantities:o(Kt,2)};var r0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/next-number?${s}`:"/documents/next-number"},Jt=async(e,t)=>r(r0(e),{...t,method:"GET"}),o0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/calculate?${s}`:"/documents/calculate"},jt=async(e,t,s)=>r(o0(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),n0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/finalize?${a}`:`/documents/${e}/finalize`},Xt=async(e,t,s,a)=>r(n0(e,s),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(t)}),a0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/fiscalize?${a}`:`/documents/${e}/fiscalize`},_t=async(e,t,s,a)=>r(a0(e,s),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(t)}),p0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/register-output?${a}`:`/documents/${e}/register-output`},Yt=async(e,t,s)=>r(p0(e,t),{...s,method:"POST"}),i0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}?${a}`:`/documents/${e}`},Qt=async(e,t,s)=>r(i0(e,t),{...s,method:"DELETE"}),c0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/restore?${a}`:`/documents/${e}/restore`},Zt=async(e,t,s)=>r(c0(e,t),{...s,method:"POST"}),d0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/permanent?${a}`:`/documents/${e}/permanent`},es=async(e,t,s)=>r(d0(e,t),{...s,method:"DELETE"}),R0=e=>`/documents/${e}/send`,ts=async(e,t,s)=>r(R0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),u0=e=>`/documents/${e}/share`,ss=async(e,t)=>r(u0(e),{...t,method:"POST"}),y0=e=>`/documents/${e}/share`,rs=async(e,t)=>r(y0(e),{...t,method:"GET"}),l0=e=>`/documents/${e}/share`,os=async(e,t)=>r(l0(e),{...t,method:"DELETE"});var J=o(_t,3);function g0(e){return !!e&&typeof e=="object"&&"type"in e}function j(e){return !!e&&typeof e=="object"&&("entity_id"in e||"account_id"in e||"request_id"in e||"signal"in e||"timeoutMs"in e||"sdkConfig"in e||Object.keys(e).length===0)}var E0=async(e,t,s,a)=>{if(j(t))return J(e,void 0,void 0,t);if(g0(t))return J(e,void 0,t,s);let n=j(s)?void 0:s,p=j(s)?s:a;return J(e,t,n,p)},ns={getNextNumber:o(Jt,1),calculateDocumentPreview:o(jt,2),finalizeDocument:o(Xt,3),fiscalizeDocument:E0,registerDocumentOutput:o(Yt,2),delete:o(Qt,2),restoreDocument:o(Zt,2),permanentDeleteDocument:o(es,2),sendDocument:o(ts,2),shareDocument:o(ss,1),getShareableId:o(rs,1),unshareDocument:o(os,1)};var m0=()=>"/e-invoicing/settings",as=async e=>r(m0(),{...e,method:"GET"}),x0=()=>"/e-invoicing/settings",ps=async(e,t)=>r(x0(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),v0=()=>"/e-invoicing/enrollment/sync",is=async e=>r(v0(),{...e,method:"POST"}),h0=()=>"/e-invoicing/enrollment/verification-link",cs=async e=>r(h0(),{...e,method:"POST"}),P0=()=>"/e-invoicing/enrollment/authorize",ds=async(e,t)=>r(P0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),S0=()=>"/e-invoicing/enrollment/disconnect",Rs=async e=>r(S0(),{...e,method:"POST"}),I0=()=>"/e-invoicing/france/directory/lookup",us=async(e,t)=>r(I0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),f0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/e-invoicing/received-documents?${s}`:"/e-invoicing/received-documents"},ys=async(e,t)=>r(f0(e),{...t,method:"GET"}),T0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/e-invoicing/received-documents/${e}/download?${a}`:`/e-invoicing/received-documents/${e}/download`},ls=async(e,t,s)=>r(T0(e,t),{...s,method:"GET"}),b0=e=>`/e-invoicing/received-documents/${e}/accept`,gs=async(e,t)=>r(b0(e),{...t,method:"POST"}),C0=e=>`/e-invoicing/received-documents/${e}/lifecycle`,Es=async(e,t,s)=>r(C0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),F0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/e-invoicing/reporting-records?${s}`:"/e-invoicing/reporting-records"},ms=async(e,t)=>r(F0(e),{...t,method:"GET"}),O0=e=>`/e-invoicing/reporting-records/${e}/retry`,xs=async(e,t)=>r(O0(e),{...t,method:"POST"}),A0=()=>"/e-invoicing/supplier",vs=async(e,t)=>r(A0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),D0=()=>"/e-invoicing/supplier",hs=async e=>r(D0(),{...e,method:"GET"});var k0=()=>"/e-invoicing/recipients/check",Ps=async(e,t)=>r(k0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),B0=()=>"/e-invoicing/customer-search",Ss=async(e,t)=>r(B0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),N0=e=>`/e-invoicing/documents/${e}/send`,Is=async(e,t,s)=>r(N0(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),U0=(e,t)=>`/e-invoicing/send/${e}/${t}`,fs=async(e,t,s,a)=>r(U0(e,t),{...a,method:"POST",headers:{"Content-Type":"application/json",...a?.headers},body:JSON.stringify(s)}),w0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/e-invoicing/submissions?${s}`:"/e-invoicing/submissions"},Ts=async(e,t)=>r(w0(e),{...t,method:"GET"}),V0=e=>`/e-invoicing/submissions/${e}`,X=async(e,t)=>r(V0(e),{...t,method:"GET"}),H0=e=>`/e-invoicing/submissions/${e}/retry`,_=async(e,t)=>r(H0(e),{...t,method:"POST"});var bs={getEInvoicingSubmission:o(X,1),retryEInvoicingSubmission:o(_,1),list:o(as,0),update:o(ps,1),syncEInvoicingEnrollment:o(is,0),create:o(cs,0),createEInvoicingEnrollmentAuthorization:o(ds,1),disconnectEInvoicingEnrollment:o(Rs,0),lookupFranceEInvoicingDirectory:o(us,1),listReceivedEInvoices:o(ys,1),downloadReceivedEInvoice:o(ls,2),acceptReceivedEInvoice:o(gs,1),sendReceivedEInvoiceLifecycle:o(Es,2),listFrenchEReportingRecords:o(ms,1),retryFrenchEReportingRecord:o(xs,1),registerEInvoicingSupplier:o(vs,1),getEInvoicingSupplier:o(hs,0),checkEInvoicingRecipient:o(Ps,1),searchEInvoicingCustomer:o(Ss,1),sendEInvoicingDocument:o(Is,2),sendEInvoice:o(fs,3),listEInvoicingSubmissions:o(Ts,1),get:o(X,1),retryEInvoicingSubmissionById:o(_,1)};var L0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/eslog/${e}/validate?${a}`:`/eslog/${e}/validate`},Cs=async(e,t,s)=>r(L0(e,t),{...s,method:"POST"}),q0=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/eslog/${e}/download?${a}`:`/eslog/${e}/download`},Fs=async(e,t,s)=>r(q0(e,t),{...s,method:"GET"});var Os={validate:o(Cs,2),download:o(Fs,2)};var W0=()=>"/email/send",As=async(e,t)=>r(W0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var Ds={sendEmail:o(As,1)};var G0=e=>`/entities/${e}/nav`,ks=async(e,t)=>r(G0(e),{...t,method:"GET"}),M0=e=>`/entities/${e}/nav`,Bs=async(e,t,s)=>r(M0(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),z0=e=>`/entities/${e}/nav/credentials`,Ns=async(e,t,s)=>r(z0(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),K0=e=>`/entities/${e}/nav/credentials`,Us=async(e,t)=>r(K0(e),{...t,method:"DELETE"}),$0=e=>`/entities/${e}/nav/credentials/verify`,ws=async(e,t)=>r($0(e),{...t,method:"POST"}),J0=e=>`/entities/${e}/ksef`,Vs=async(e,t)=>r(J0(e),{...t,method:"GET"}),j0=e=>`/entities/${e}/ksef`,Hs=async(e,t,s)=>r(j0(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),X0=e=>`/entities/${e}/ksef/credentials`,Ls=async(e,t,s)=>r(X0(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),_0=e=>`/entities/${e}/ksef/credentials`,qs=async(e,t)=>r(_0(e),{...t,method:"DELETE"}),Y0=()=>"/entities",Ws=async(e,t)=>r(Y0(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Q0=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/entities?${s}`:"/entities"},Gs=async(e,t)=>r(Q0(e),{...t,method:"GET"}),Z0=e=>`/entities/${e}`,Ms=async(e,t)=>r(Z0(e),{...t,method:"GET"}),ey=e=>`/entities/${e}`,zs=async(e,t,s)=>r(ey(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),ty=e=>`/entities/${e}/enable`,Ks=async(e,t)=>r(ty(e),{...t,method:"POST"}),sy=e=>`/entities/${e}/disable`,$s=async(e,t)=>r(sy(e),{...t,method:"POST"}),ry=e=>`/entities/${e}/email-sender`,Js=async(e,t)=>r(ry(e),{...t,method:"GET"}),oy=e=>`/entities/${e}/email-sender`,js=async(e,t,s)=>r(oy(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),ny=e=>`/entities/${e}/email-sender`,Xs=async(e,t)=>r(ny(e),{...t,method:"DELETE"}),ay=e=>`/entities/${e}/email-sender/recheck`,_s=async(e,t)=>r(ay(e),{...t,method:"POST"});var Ys={retrieveEntityNavSettings:o(ks,1),modifyEntityNavSettings:o(Bs,2),storeEntityNavCredentials:o(Ns,2),removeEntityNavCredentials:o(Us,1),verifyEntityNavCredentials:o(ws,1),getEntityKsefSetup:o(Vs,1),putEntityKsefSettings:o(Hs,2),putEntityKsefCredential:o(Ls,2),removeEntityKsefCredential:o(qs,1),create:o(Ws,1),list:c(Gs),get:o(Ms,1),update:o(zs,2),enableEntity:o(Ks,1),disableEntity:o($s,1),getEntityEmailSender:o(Js,1),putEntityEmailSender:o(js,2),deleteEntityEmailSender:o(Xs),recheckEntityEmailSender:o(_s,1)};var py=()=>"/entities/api-keys",Qs=async e=>r(py(),{...e,method:"GET"}),iy=()=>"/entities/api-keys",Zs=async(e,t)=>r(iy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),cy=e=>`/entities/api-keys/${e}`,er=async(e,t)=>r(cy(e),{...t,method:"DELETE"}),dy=()=>"/entities/api-keys/revoke-integration",tr=async e=>r(dy(),{...e,method:"POST"});var sr={listEntityApiKeys:o(Qs,0),create:o(Zs,1),delete:o(er,1),revokeEntityApiKeyIntegration:o(tr,0)};var Ry=()=>"/entities/invitations",rr=async e=>r(Ry(),{...e,method:"GET"}),uy=e=>`/entities/invitations/${e}`,or=async(e,t)=>r(uy(e),{...t,method:"GET"}),yy=e=>`/entities/invitations/${e}`,nr=async(e,t)=>r(yy(e),{...t,method:"DELETE"}),ly=e=>`/entities/invitations/${e}/resend`,ar=async(e,t)=>r(ly(e),{...t,method:"POST"}),gy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/invitations/preview?${s}`:"/invitations/preview"},pr=async(e,t)=>r(gy(e),{...t,method:"GET"}),Ey=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/invitations/accept?${s}`:"/invitations/accept"},ir=async(e,t,s)=>r(Ey(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)});var cr={listEntityInvitations:o(rr,0),getEntityInvitation:o(or,1),cancelEntityInvitation:o(nr,1),resendEntityInvitation:o(ar,1),preview:o(pr,1),acceptEntityInvitation:o(ir,2)};var my=()=>"/stats/query",dr=async(e,t)=>r(my(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var Rr={queryEntityStats:o(dr,1)};var xy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/entities/users?${s}`:"/entities/users"},ur=async(e,t)=>r(xy(e),{...t,method:"GET"}),vy=()=>"/entities/users",yr=async(e,t)=>r(vy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),hy=()=>"/entities/users/access",lr=async e=>r(hy(),{...e,method:"GET"}),Py=e=>`/entities/users/${e}`,gr=async(e,t,s)=>r(Py(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Sy=e=>`/entities/users/${e}`,Er=async(e,t)=>r(Sy(e),{...t,method:"DELETE"}),Iy=e=>`/entities/users/${e}/token`,mr=async(e,t,s)=>r(Iy(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var xr={list:c(ur),addEntityUser:o(yr,1),getAccess:o(lr,0),update:o(gr,2),removeEntityUser:o(Er,1),generateEntityUserToken:o(mr,2)};var fy=e=>`/estimates/shareable/${e}`,vr=async(e,t)=>r(fy(e),{...t,method:"GET"}),Ty=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/estimates/shareable/${e}/html?${a}`:`/estimates/shareable/${e}/html`},hr=async(e,t,s)=>r(Ty(e,t),{...s,method:"GET"}),by=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/estimates/shareable/${e}/pdf?${a}`:`/estimates/shareable/${e}/pdf`},Pr=async(e,t,s)=>r(by(e,t),{...s,method:"GET"}),Cy=e=>`/estimates/shareable/${e}/eslog`,Sr=async(e,t)=>r(Cy(e),{...t,method:"GET"}),Fy=()=>"/estimates",Ir=async(e,t)=>r(Fy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Oy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/estimates?${s}`:"/estimates"},fr=async(e,t)=>r(Oy(e),{...t,method:"GET"}),Ay=()=>"/estimates/custom",Tr=async(e,t)=>r(Ay(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Dy=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/estimates/${e}?${a}`:`/estimates/${e}`},br=async(e,t,s)=>r(Dy(e,t),{...s,method:"GET"}),ky=e=>`/estimates/${e}`,Cr=async(e,t,s)=>r(ky(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),By=e=>`/estimates/${e}/versions`,Fr=async(e,t)=>r(By(e),{...t,method:"GET"}),Ny=(e,t)=>`/estimates/${e}/versions/${t}`,Or=async(e,t,s)=>r(Ny(e,t),{...s,method:"GET"}),Uy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/estimates/render?${s}`:"/estimates/render"},Ar=async(e,t,s)=>r(Uy(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)});var Dr={getShareableEstimate:o(vr,1),getShareableEstimateHtml:o(hr,2),getShareableEstimatePdf:o(Pr,2),getShareableEstimateEslog:o(Sr,1),create:o(Ir,1),list:c(fr),createCustom:o(Tr,1),get:o(br,2),update:o(Cr,2),getVersions:o(Fr,1),getVersion:o(Or,2),renderEstimatePreview:o(Ar,2)};var wy=()=>"/expenses",kr=async(e,t)=>r(wy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Vy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/expenses?${s}`:"/expenses"},Br=async(e,t)=>r(Vy(e),{...t,method:"GET"}),Hy=()=>"/expenses/custom",Nr=async(e,t)=>r(Hy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Ly=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/expenses/export?${s}`:"/expenses/export"},Ur=async(e,t)=>r(Ly(e),{...t,method:"GET"}),qy=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/expenses/report?${s}`:"/expenses/report"},wr=async(e,t)=>r(qy(e),{...t,method:"GET"}),Wy=()=>"/expenses/recognition/settings",Vr=async e=>r(Wy(),{...e,method:"GET"}),Gy=()=>"/expenses/recognition/settings",Hr=async(e,t)=>r(Gy(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),My=()=>"/expenses/recognition/backfill",Lr=async(e,t)=>r(My(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),zy=()=>"/expenses/recognitions",qr=async(e,t)=>{let s=new FormData;return s.append("file",e.file),r(zy(),{...t,method:"POST",body:s})},Ky=e=>`/expenses/recognitions/${e}`,Wr=async(e,t)=>r(Ky(e),{...t,method:"GET"}),$y=e=>`/expenses/recognitions/${e}/retry`,Gr=async(e,t)=>r($y(e),{...t,method:"POST"}),Jy=()=>"/expenses/inbound-email",Mr=async e=>r(Jy(),{...e,method:"GET"}),jy=()=>"/expenses/inbound-email",zr=async e=>r(jy(),{...e,method:"POST"}),Xy=()=>"/expenses/inbound-email",Kr=async e=>r(Xy(),{...e,method:"DELETE"}),_y=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/expenses/inbound-email/messages?${s}`:"/expenses/inbound-email/messages"},$r=async(e,t)=>r(_y(e),{...t,method:"GET"}),Yy=()=>"/expenses/imports/shareable/preview",Jr=async(e,t)=>r(Yy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Qy=()=>"/expenses/imports/shareable",jr=async(e,t)=>r(Qy(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Zy=e=>`/expenses/${e}/recognition`,Xr=async(e,t)=>r(Zy(e),{...t,method:"GET"}),el=e=>`/expenses/${e}`,_r=async(e,t)=>r(el(e),{...t,method:"GET"}),tl=e=>`/expenses/${e}`,Yr=async(e,t,s)=>r(tl(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),sl=e=>`/expenses/${e}`,Qr=async(e,t)=>r(sl(e),{...t,method:"DELETE"}),rl=e=>`/expenses/${e}/void`,Zr=async(e,t)=>r(rl(e),{...t,method:"POST"}),ol=e=>`/expenses/${e}/restore`,eo=async(e,t)=>r(ol(e),{...t,method:"POST"}),nl=e=>`/expenses/${e}/attachments`,to=async(e,t,s)=>{let a=new FormData;return a.append("file",t.file),r(nl(e),{...s,method:"POST",body:a})},al=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/expenses/${e}/attachments?${a}`:`/expenses/${e}/attachments`},so=async(e,t,s)=>r(al(e,t),{...s,method:"GET"}),pl=(e,t)=>`/expenses/${e}/attachments/${t}`,ro=async(e,t,s)=>r(pl(e,t),{...s,method:"DELETE"}),il=e=>`/expenses/${e}/payments`,oo=async(e,t)=>r(il(e),{...t,method:"GET"}),cl=e=>`/expenses/${e}/payments`,no=async(e,t,s)=>r(cl(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var ao={create:o(kr,1),list:c(Br),createCustom:o(Nr,1),exportExpenses:o(Ur,1),getExpenseCategoryReport:o(wr,1),getRecognitionSettings:o(Vr,0),updateRecognitionSettings:o(Hr,1),backfillExpenseRecognition:o(Lr,1),createRecognition:o(qr,1),getRecognition:o(Wr,1),retryRecognition:o(Gr,1),getExpenseInboundEmail:o(Mr,0),rotateExpenseInboundEmail:o(zr,0),disableExpenseInboundEmail:o(Kr,0),listExpenseInboundEmailMessages:o($r,1),previewImportFromShareableLink:o(Jr,1),importFromShareableLink:o(jr,1),getLatestRecognition:o(Xr,1),get:o(_r,1),update:o(Yr,2),delete:o(Qr,1),void:o(Zr,1),restoreExpense:o(eo,1),uploadExpenseAttachment:o(to,2),getExpenseAttachments:o(so,2),deleteExpenseAttachment:o(ro,2),getExpensePayments:o(oo,1),createExpensePayment:o(no,2)};var dl=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/export?${s}`:"/documents/export"},po=async(e,t)=>r(dl(e),{...t,method:"GET"}),Rl=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/export/sales-per-item?${s}`:"/documents/export/sales-per-item"},io=async(e,t)=>r(Rl(e),{...t,method:"GET"}),ul=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/export/inventory?${s}`:"/documents/export/inventory"},co=async(e,t)=>r(ul(e),{...t,method:"GET"}),yl=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/documents/export/revenue-by-category?${s}`:"/documents/export/revenue-by-category"},Ro=async(e,t)=>r(yl(e),{...t,method:"GET"}),ll=()=>"/documents/export/pdf",uo=async(e,t)=>r(ll(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),gl=e=>`/documents/export/pdf/${e}`,yo=async(e,t)=>r(gl(e),{...t,method:"GET"}),El=e=>`/documents/export/pdf/${e}/download`,lo=async(e,t)=>r(El(e),{...t,method:"GET"}),ml=()=>"/documents/export/eslog",go=async(e,t)=>r(ml(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),xl=e=>`/documents/export/eslog/${e}`,Eo=async(e,t)=>r(xl(e),{...t,method:"GET"}),vl=e=>`/documents/export/eslog/${e}/download`,mo=async(e,t)=>r(vl(e),{...t,method:"GET"});var xo={exportDocuments:o(po,1),exportSalesPerItem:o(io,1),exportInventory:o(co,1),exportRevenueByCategory:o(Ro,1),startPdfExport:o(uo,1),getPdfStatus:o(yo,1),downloadPdfExport:o(lo,1),startEslogExport:o(go,1),getEslogStatus:o(Eo,1),downloadEslogExport:o(mo,1)};var hl=()=>"/files",vo=async(e,t)=>{let s=new FormData;return s.append("file",e.file),s.append("category",e.category),e.document_id!==void 0&&e.document_id!==null&&s.append("document_id",e.document_id),e.account_payable_id!==void 0&&s.append("account_payable_id",e.account_payable_id),e.business_unit_id!==void 0&&s.append("business_unit_id",e.business_unit_id),e.expense_id!==void 0&&s.append("expense_id",e.expense_id),r(hl(),{...t,method:"POST",body:s})},Pl=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/files?${s}`:"/files"},ho=async(e,t)=>r(Pl(e),{...t,method:"GET"}),Sl=e=>`/files/${e}`,Po=async(e,t)=>r(Sl(e),{...t,method:"GET"}),Il=e=>`/files/${e}`,So=async(e,t)=>r(Il(e),{...t,method:"DELETE"});var Io={uploadFile:o(vo,1),list:c(ho),get:o(Po,1),delete:o(So,1)};var fl=()=>"/fiscalization/fina/settings/certificate",fo=async(e,t)=>{let s=new FormData;return s.append("file",e.file),s.append("passphrase",e.passphrase),r(fl(),{...t,method:"POST",body:s})},Tl=()=>"/fiscalization/fina/settings/certificate",To=async e=>r(Tl(),{...e,method:"GET"}),bl=()=>"/fiscalization/fina/settings/certificate",bo=async e=>r(bl(),{...e,method:"DELETE"});var Co={uploadFinaCertificate:o(fo,1),getFinaCertificate:o(To,0),delete:o(bo,0)};var Cl=e=>`/fiscalization/fina/premises/${e}/devices`,Fo=async(e,t)=>r(Cl(e),{...t,method:"GET"}),Fl=e=>`/fiscalization/fina/premises/${e}/devices`,Oo=async(e,t,s)=>r(Fl(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ol=e=>`/fiscalization/fina/devices/${e}`,Ao=async(e,t)=>r(Ol(e),{...t,method:"GET"}),Al=e=>`/fiscalization/fina/devices/${e}`,Do=async(e,t,s)=>r(Al(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Dl=e=>`/fiscalization/fina/devices/${e}`,ko=async(e,t)=>r(Dl(e),{...t,method:"DELETE"});var Bo={listFinaDevices:o(Fo,1),registerFinaDevice:o(Oo,2),getFinaDevice:o(Ao,1),update:o(Do,2),delete:o(ko,1)};var kl=()=>"/fiscalization/fina/premises",No=async e=>r(kl(),{...e,method:"GET"}),Bl=()=>"/fiscalization/fina/premises",Uo=async(e,t)=>r(Bl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Nl=e=>`/fiscalization/fina/premises/${e}`,wo=async(e,t)=>r(Nl(e),{...t,method:"GET"}),Ul=e=>`/fiscalization/fina/premises/${e}`,Vo=async(e,t,s)=>r(Ul(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),wl=e=>`/fiscalization/fina/premises/${e}`,Ho=async(e,t)=>r(wl(e),{...t,method:"DELETE"});var Lo={listFinaPremises:o(No,0),create:o(Uo,1),getFinaPremise:o(wo,1),update:o(Vo,2),delete:o(Ho,1)};var Vl=()=>"/fiscalization/fina/settings",qo=async e=>r(Vl(),{...e,method:"GET"}),Hl=()=>"/fiscalization/fina/settings",Wo=async(e,t)=>r(Hl(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var Go={list:o(qo,0),update:o(Wo,1)};var Ll=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/financial-categories?${s}`:"/financial-categories"},Mo=async(e,t)=>r(Ll(e),{...t,method:"GET"}),ql=()=>"/financial-categories",zo=async(e,t)=>r(ql(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Wl=e=>`/financial-categories/${e}`,Ko=async(e,t,s)=>r(Wl(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Gl=e=>`/financial-categories/${e}`,$o=async(e,t)=>r(Gl(e),{...t,method:"DELETE"}),Ml=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/financial-categories/revenue-summary?${s}`:"/financial-categories/revenue-summary"},Jo=async(e,t)=>r(Ml(e),{...t,method:"GET"}),zl=()=>"/financial-categories/document-items/batch",jo=async(e,t)=>r(zl(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Kl=e=>`/financial-categories/document-items/${e}`,Xo=async(e,t,s)=>r(Kl(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var _o={list:c(Mo),create:o(zo,1),update:o(Ko,2),delete:o($o,1),getRevenueByFinancialCategory:o(Jo,1),updateDocumentItemFinancialCategories:o(jo,1),updateDocumentItemFinancialCategory:o(Xo,2)};var $l=()=>"/fiscalization/furs/settings/certificate",Yo=async(e,t)=>{let s=new FormData;return s.append("file",e.file),s.append("passphrase",e.passphrase),r($l(),{...t,method:"POST",body:s})},Jl=()=>"/fiscalization/furs/settings/certificate",Qo=async e=>r(Jl(),{...e,method:"GET"}),jl=()=>"/fiscalization/furs/settings/certificate",Zo=async e=>r(jl(),{...e,method:"DELETE"});var en={uploadFursCertificate:o(Yo,1),getFursCertificate:o(Qo,0),delete:o(Zo,0)};var Xl=e=>`/fiscalization/furs/premises/${e}/devices`,tn=async(e,t)=>r(Xl(e),{...t,method:"GET"}),_l=e=>`/fiscalization/furs/premises/${e}/devices`,sn=async(e,t,s)=>r(_l(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Yl=e=>`/fiscalization/furs/devices/${e}`,rn=async(e,t)=>r(Yl(e),{...t,method:"GET"}),Ql=e=>`/fiscalization/furs/devices/${e}`,on=async(e,t,s)=>r(Ql(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var nn={listFursElectronicDevices:o(tn,1),registerFursElectronicDevice:o(sn,2),getFursElectronicDevice:o(rn,1),update:o(on,2)};var Zl=()=>"/fiscalization/furs/internal-act/report.pdf",an=async e=>r(Zl(),{...e,method:"GET"}),eg=()=>"/fiscalization/furs/internal-act/report.docx",pn=async e=>r(eg(),{...e,method:"GET"});var cn={generateFursInternalActPdf:o(an,0),generateFursInternalActDocx:o(pn,0)};var tg=()=>"/fiscalization/furs/premises",dn=async e=>r(tg(),{...e,method:"GET"}),sg=e=>`/fiscalization/furs/premises/${e}`,Rn=async(e,t)=>r(sg(e),{...t,method:"GET"}),rg=e=>`/fiscalization/furs/premises/${e}`,un=async(e,t,s)=>r(rg(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),og=()=>"/fiscalization/furs/premises/real-estate",yn=async(e,t)=>r(og(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ng=()=>"/fiscalization/furs/premises/movable",ln=async(e,t)=>r(ng(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ag=e=>`/fiscalization/furs/premises/${e}/close`,gn=async(e,t)=>r(ag(e),{...t,method:"POST"});var En={listFursBusinessPremises:o(dn,0),getFursBusinessPremise:o(Rn,1),update:o(un,2),registerFursRealEstatePremise:o(yn,1),registerFursMovablePremise:o(ln,1),closeFursBusinessPremise:o(gn,1)};var pg=()=>"/fiscalization/furs/settings",mn=async e=>r(pg(),{...e,method:"GET"}),ig=()=>"/fiscalization/furs/settings",xn=async(e,t)=>r(ig(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var vn={list:o(mn,0),update:o(xn,1)};var cg=()=>"/health/live",hn=async e=>r(cg(),{...e,method:"GET"}),dg=()=>"/health/ready",Pn=async e=>r(dg(),{...e,method:"GET"}),Rg=()=>"/health",Sn=async e=>r(Rg(),{...e,method:"GET"});var In={livenessCheck:o(hn,0),readinessCheck:o(Pn,0),healthCheck:o(Sn,0)};var ug=e=>`/invoices/${e}/nav/retry`,fn=async(e,t)=>r(ug(e),{...t,method:"POST"}),yg=e=>`/invoices/${e}/nav/reconcile`,Tn=async(e,t)=>r(yg(e),{...t,method:"POST"}),lg=e=>`/invoices/${e}/nav/annulment`,bn=async(e,t,s)=>r(lg(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),gg=e=>`/invoices/shareable/${e}`,Cn=async(e,t)=>r(gg(e),{...t,method:"GET"}),Eg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/invoices/shareable/${e}/html?${a}`:`/invoices/shareable/${e}/html`},Fn=async(e,t,s)=>r(Eg(e,t),{...s,method:"GET"}),mg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/invoices/shareable/${e}/pdf?${a}`:`/invoices/shareable/${e}/pdf`},On=async(e,t,s)=>r(mg(e,t),{...s,method:"GET"}),xg=e=>`/invoices/shareable/${e}/eslog`,An=async(e,t)=>r(xg(e),{...t,method:"GET"}),vg=e=>`/invoices/${e}/ksef/recover`,Dn=async(e,t)=>r(vg(e),{...t,method:"POST"}),hg=e=>`/invoices/${e}/ksef`,kn=async(e,t)=>r(hg(e),{...t,method:"GET"}),Pg=e=>`/invoices/${e}/ksef/submit`,Bn=async(e,t)=>r(Pg(e),{...t,method:"POST"}),Sg=e=>`/invoices/${e}/ksef/upo`,Nn=async(e,t)=>r(Sg(e),{...t,method:"GET"}),Ig=()=>"/invoices",Un=async(e,t)=>r(Ig(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),fg=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/invoices?${s}`:"/invoices"},wn=async(e,t)=>r(fg(e),{...t,method:"GET"}),Tg=()=>"/invoices/custom",Vn=async(e,t)=>r(Tg(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),bg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/invoices/${e}?${a}`:`/invoices/${e}`},Hn=async(e,t,s)=>r(bg(e,t),{...s,method:"GET"}),Cg=e=>`/invoices/${e}`,Ln=async(e,t,s)=>r(Cg(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Fg=e=>`/invoices/${e}/credit-options`,qn=async(e,t)=>r(Fg(e),{...t,method:"GET"}),Og=e=>`/invoices/${e}/xrechnung`,Wn=async(e,t)=>r(Og(e),{...t,method:"GET"}),Ag=e=>`/invoices/${e}/zugferd`,Gn=async(e,t)=>r(Ag(e),{...t,method:"GET"}),Dg=e=>`/invoices/${e}/versions`,Mn=async(e,t)=>r(Dg(e),{...t,method:"GET"}),kg=(e,t)=>`/invoices/${e}/versions/${t}`,zn=async(e,t,s)=>r(kg(e,t),{...s,method:"GET"}),Bg=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/invoices/render?${s}`:"/invoices/render"},Kn=async(e,t,s)=>r(Bg(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),Ng=e=>`/invoices/${e}/void`,$n=async(e,t,s)=>r(Ng(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ug=e=>`/invoices/${e}/fiscalize`,Jn=async(e,t)=>r(Ug(e),{...t,method:"POST"}),wg=e=>`/invoices/${e}/change-buyer-oib`,jn=async(e,t,s)=>r(wg(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Vg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/html?${a}`:`/documents/${e}/html`},Xn=async(e,t,s)=>r(Vg(e,t),{...s,method:"GET"}),Hg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/documents/${e}/pdf?${a}`:`/documents/${e}/pdf`},_n=async(e,t,s)=>r(Hg(e,t),{...s,method:"GET"});function Yn(e,t){let s=URL.createObjectURL(e),a=document.createElement("a");a.href=s,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(s);}var Qn=o(_n,2),Lg=Object.assign(async(e,t,s,a)=>{let n=await Qn(e,s,a);Yn(n,t);},{__sdkOptionsIndex:3}),Zn={retryInvoiceNav:o(fn,1),reconcileInvoiceNav:o(Tn,1),annulInvoiceNav:o(bn,2),getShareableInvoice:o(Cn,1),getShareableInvoiceHtml:o(Fn,2),getShareableInvoicePdf:o(On,2),getShareableInvoiceEslog:o(An,1),recoverInvoiceFromKsef:o(Dn,1),getInvoiceKsefState:o(kn,1),submitInvoiceToKsef:o(Bn,1),getInvoiceKsefUpo:o(Nn,1),create:o(Un,1),list:c(wn),createCustom:o(Vn,1),get:o(Hn,2),update:o(Ln,2),getCreditOptions:o(qn,1),downloadInvoiceXRechnung:o(Wn,1),downloadInvoiceZugferd:o(Gn,1),getVersions:o(Mn,1),getVersion:o(zn,2),renderInvoicePreview:o(Kn,2),void:o($n,2),fiscalizeInvoice:o(Jn,1),changeInvoiceBuyerOib:o(jn,2),renderHtml:o(Xn,2),renderPdf:Qn,downloadPdf:Lg};var qg=()=>"/items",ea=async(e,t)=>r(qg(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Wg=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/items?${s}`:"/items"},ta=async(e,t)=>r(Wg(e),{...t,method:"GET"}),Gg=()=>"/items/categories",sa=async e=>r(Gg(),{...e,method:"GET"}),Mg=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/items/import/template?${s}`:"/items/import/template"},ra=async(e,t)=>r(Mg(e),{...t,method:"GET"}),zg=()=>"/items/import/preview",oa=async(e,t)=>{let s=new FormData;return s.append("file",e.file),r(zg(),{...t,method:"POST",body:s})},Kg=()=>"/items/import",na=async(e,t)=>{let s=new FormData;return s.append("file",e.file),r(Kg(),{...t,method:"POST",body:s})},$g=e=>`/items/${e}`,aa=async(e,t,s)=>r($g(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Jg=e=>`/items/${e}`,pa=async(e,t)=>r(Jg(e),{...t,method:"DELETE"}),jg=e=>`/items/${e}/restore`,ia=async(e,t)=>r(jg(e),{...t,method:"POST"}),Xg=e=>`/items/${e}/permanent`,ca=async(e,t)=>r(Xg(e),{...t,method:"DELETE"}),_g=e=>`/items/${e}/inventory`,da=async(e,t)=>r(_g(e),{...t,method:"GET"}),Yg=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/items/${e}/inventory/movements?${a}`:`/items/${e}/inventory/movements`},Ra=async(e,t,s)=>r(Yg(e,t),{...s,method:"GET"}),Qg=e=>`/items/${e}/inventory/movements`,ua=async(e,t,s)=>r(Qg(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Zg=(e,t)=>`/items/${e}/inventory/movements/${t}`,ya=async(e,t,s)=>r(Zg(e,t),{...s,method:"DELETE"});var la={create:o(ea,1),list:c(ta),categories:o(sa,0),getItemsImportTemplate:o(ra,1),preview:o(oa,1),importItems:o(na,1),update:o(aa,2),delete:o(pa,1),restoreItem:o(ia,1),permanentDeleteItem:o(ca,1),getItemInventory:o(da,1),getItemInventoryMovements:o(Ra,2),createItemInventoryMovement:o(ua,2),deleteItemInventoryMovement:o(ya,2)};var eE=()=>"/legacy-migration/auth",ga=async(e,t)=>r(eE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),tE=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/legacy-migration/organizations/${e}?${a}`:`/legacy-migration/organizations/${e}`},Ea=async(e,t,s)=>r(tE(e,t),{...s,method:"GET"}),sE=()=>"/legacy-migration/jobs",ma=async(e,t)=>r(sE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),rE=()=>"/legacy-migration/jobs",xa=async e=>r(rE(),{...e,method:"GET"}),oE=e=>`/legacy-migration/jobs/${e}`,va=async(e,t)=>r(oE(e),{...t,method:"GET"});var ha={legacyMigrationAuth:o(ga,1),getLegacyMigrationOrganization:o(Ea,2),create:o(ma,1),listMigrationJobs:o(xa,0),getMigrationJob:o(va,1)};var nE=()=>"/locale/detect",Pa=async e=>r(nE(),{...e,method:"GET"});var Sa={detectLocale:o(Pa,0)};var aE=()=>"/order-integrations/shopify/authorize",Ia=async(e,t)=>r(aE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),pE=()=>"/order-integrations/woocommerce/authorize",fa=async(e,t)=>r(pE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),iE=()=>"/order-integrations/magento/authorize",Ta=async(e,t)=>r(iE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),cE=e=>`/order-integrations/magento/authorizations/${e}`,ba=async(e,t)=>r(cE(e),{...t,method:"GET"}),dE=()=>"/order-integrations/shopify/resume-install",Ca=async(e,t)=>r(dE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),RE=e=>`/order-integrations/${e}/promote-shopify-billing`,Fa=async(e,t)=>r(RE(e),{...t,method:"POST"}),uE=e=>`/order-integrations/${e}/sync-shopify`,Oa=async(e,t,s)=>r(uE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),yE=e=>`/order-integrations/${e}/sync`,Aa=async(e,t,s)=>r(yE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),lE=()=>"/order-integrations/custom/connect",Da=async(e,t)=>r(lE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),gE=e=>`/order-integrations/${e}/custom/rotate-secret`,ka=async(e,t)=>r(gE(e),{...t,method:"POST"}),EE=e=>`/order-integrations/${e}/orders`,Ba=async(e,t,s)=>r(EE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),mE=()=>"/order-integrations",Na=async(e,t)=>r(mE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),xE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/order-integrations?${s}`:"/order-integrations"},Ua=async(e,t)=>r(xE(e),{...t,method:"GET"}),vE=e=>`/order-integrations/${e}`,wa=async(e,t)=>r(vE(e),{...t,method:"GET"}),hE=e=>`/order-integrations/${e}`,Va=async(e,t,s)=>r(hE(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),PE=e=>`/order-integrations/${e}`,Ha=async(e,t)=>r(PE(e),{...t,method:"DELETE"});var La={authorizeShopify:o(Ia,1),authorizeWooCommerce:o(fa,1),authorizeMagento:o(Ta,1),getMagentoAuthorization:o(ba,1),resumeShopifyInstall:o(Ca,1),promoteShopifyBilling:o(Fa,1),syncShopifyOrders:o(Oa,2),syncOrderIntegration:o(Aa,2),connectCustomStore:o(Da,1),rotateCustomStoreSecret:o(ka,1),pushCustomStoreOrder:o(Ba,2),create:o(Na,1),list:c(Ua),get:o(wa,1),update:o(Va,2),delete:o(Ha,1)};var SE=()=>"/orders",qa=async(e,t)=>r(SE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),IE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/orders?${s}`:"/orders"},Wa=async(e,t)=>r(IE(e),{...t,method:"GET"}),fE=e=>`/orders/${e}`,Ga=async(e,t)=>r(fE(e),{...t,method:"GET"}),TE=e=>`/orders/${e}`,Ma=async(e,t,s)=>r(TE(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),bE=e=>`/orders/${e}`,za=async(e,t)=>r(bE(e),{...t,method:"DELETE"}),CE=e=>`/orders/${e}/process`,Ka=async(e,t)=>r(CE(e),{...t,method:"POST"}),FE=e=>`/orders/${e}/cancel`,$a=async(e,t)=>r(FE(e),{...t,method:"POST"}),OE=e=>`/orders/${e}/reissue`,Ja=async(e,t)=>r(OE(e),{...t,method:"POST"});var ja={create:o(qa,1),list:c(Wa),get:o(Ga,1),update:o(Ma,2),delete:o(za,1),processOrder:o(Ka,1),cancelOrder:o($a,1),reissueOrder:o(Ja,1)};var AE=()=>"/payment-reminders/send",Xa=async(e,t)=>r(AE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),DE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/payment-reminders?${s}`:"/payment-reminders"},_a=async(e,t)=>r(DE(e),{...t,method:"GET"});var Ya={sendPaymentReminder:o(Xa,1),list:c(_a)};var kE=()=>"/payments",Qa=async(e,t)=>r(kE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),BE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/payments?${s}`:"/payments"},Za=async(e,t)=>r(BE(e),{...t,method:"GET"}),NE=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/payments/${e}?${a}`:`/payments/${e}`},ep=async(e,t,s)=>r(NE(e,t),{...s,method:"GET"}),UE=e=>`/payments/${e}`,tp=async(e,t,s)=>r(UE(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),wE=e=>`/payments/${e}`,sp=async(e,t)=>r(wE(e),{...t,method:"DELETE"}),VE=e=>`/payments/${e}/restore`,rp=async(e,t)=>r(VE(e),{...t,method:"POST"}),HE=e=>`/payments/${e}/permanent`,op=async(e,t)=>r(HE(e),{...t,method:"DELETE"}),LE=()=>"/bank-imports",np=async(e,t)=>{let s=new FormData;return s.append("file",e.file),e.source_format!==void 0&&e.source_format!==null&&s.append("source_format",e.source_format),e.column_mapping!==void 0&&e.column_mapping!==null&&s.append("column_mapping",e.column_mapping),e.ledger_account_code!==void 0&&e.ledger_account_code!==null&&s.append("ledger_account_code",e.ledger_account_code),e.account_iban!==void 0&&e.account_iban!==null&&s.append("account_iban",e.account_iban),r(LE(),{...t,method:"POST",body:s})},qE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/bank-imports?${s}`:"/bank-imports"},ap=async(e,t)=>r(qE(e),{...t,method:"GET"}),WE=e=>`/bank-imports/${e}`,pp=async(e,t)=>r(WE(e),{...t,method:"GET"}),GE=e=>`/bank-imports/${e}/summary`,ip=async(e,t)=>r(GE(e),{...t,method:"GET"}),ME=e=>`/bank-imports/${e}/match`,cp=async(e,t)=>r(ME(e),{...t,method:"POST"}),zE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/bank-transactions?${s}`:"/bank-transactions"},dp=async(e,t)=>r(zE(e),{...t,method:"GET"}),KE=e=>`/bank-transactions/${e}`,Rp=async(e,t)=>r(KE(e),{...t,method:"GET"}),$E=e=>`/bank-transactions/${e}/link`,up=async(e,t,s)=>r($E(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),JE=e=>`/bank-transactions/${e}/confirm-fee`,yp=async(e,t,s)=>r(JE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),jE=e=>`/bank-transactions/${e}/categorize`,lp=async(e,t,s)=>r(jE(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),XE=e=>`/bank-transactions/${e}/ignore`,gp=async(e,t)=>r(XE(e),{...t,method:"POST"}),_E=e=>`/bank-transactions/${e}/unlink`,Ep=async(e,t)=>r(_E(e),{...t,method:"POST"});var mp={create:o(Qa,1),list:c(Za),get:o(ep,2),update:o(tp,2),delete:o(sp,1),restorePayment:o(rp,1),permanentDeletePayment:o(op,1),importBankStatement:o(np,1),listBankImports:o(ap,1),getBankImport:o(pp,1),getBankImportSummary:o(ip,1),rematchBankImport:o(cp,1),listBankTransactions:o(dp,1),getBankTransaction:o(Rp,1),linkBankTransaction:o(up,2),confirmBankTransactionFee:o(yp,2),categorizeBankTransaction:o(lp,2),ignoreBankTransaction:o(gp,1),unlinkBankTransaction:o(Ep,1)};var YE=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/tables?${s}`:"/pos/tables"},xp=async(e,t)=>r(YE(e),{...t,method:"GET"}),QE=()=>"/pos/tables",vp=async(e,t)=>r(QE(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ZE=e=>`/pos/tables/${e}`,hp=async(e,t,s)=>r(ZE(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),e4=e=>`/pos/tables/${e}`,Pp=async(e,t)=>r(e4(e),{...t,method:"DELETE"}),t4=e=>`/pos/tabs/${e}/items`,Sp=async(e,t,s)=>r(t4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),s4=e=>`/pos/tabs/${e}/claim`,Ip=async(e,t,s)=>r(s4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),r4=e=>`/pos/tabs/${e}/release`,fp=async(e,t,s)=>r(r4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),o4=e=>`/pos/tabs/${e}/close`,Tp=async(e,t,s)=>r(o4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),n4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/tabs?${s}`:"/pos/tabs"},bp=async(e,t)=>r(n4(e),{...t,method:"GET"}),a4=()=>"/pos/tabs",Cp=async(e,t)=>r(a4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),p4=e=>`/pos/tabs/${e}`,Fp=async(e,t)=>r(p4(e),{...t,method:"GET"}),i4=e=>`/pos/tabs/${e}`,Op=async(e,t,s)=>r(i4(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),c4=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/pos/tabs/${e}?${a}`:`/pos/tabs/${e}`},Ap=async(e,t,s)=>r(c4(e,t),{...s,method:"DELETE"}),d4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/reports/daily/export?${s}`:"/pos/reports/daily/export"},Dp=async(e,t)=>r(d4(e),{...t,method:"GET"}),R4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/reports/monthly/export?${s}`:"/pos/reports/monthly/export"},kp=async(e,t)=>r(R4(e),{...t,method:"GET"}),u4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/reports/daily?${s}`:"/pos/reports/daily"},Bp=async(e,t)=>r(u4(e),{...t,method:"GET"}),y4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/pos/reports/monthly?${s}`:"/pos/reports/monthly"},Np=async(e,t)=>r(y4(e),{...t,method:"GET"}),l4=()=>"/pos/operators",Up=async e=>r(l4(),{...e,method:"GET"}),g4=()=>"/pos/operators/enrol",wp=async(e,t)=>r(g4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),E4=()=>"/pos/operators/switch",Vp=async(e,t)=>r(E4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),m4=e=>`/pos/operators/${e}/pin`,Hp=async(e,t,s)=>r(m4(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),x4=e=>`/pos/operators/${e}/pin`,Lp=async(e,t)=>r(x4(e),{...t,method:"DELETE"});var v4=o(Ap,2),qp={listTables:c(xp),createTable:o(vp,1),updateTable:o(hp,2),deleteTable:o(Pp,1),appendTabItems:o(Sp,2),claimTab:o(Ip,2),releaseTab:o(fp,2),closeTab:o(Tp,2),listTabs:c(bp),createTab:o(Cp,1),getTab:o(Fp,1),updateTab:o(Op,2),cancelTab:Object.assign((...e)=>v4(e[0],e[1]??{},e[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:o(Dp,1),exportPosMonthlyReport:o(kp,1),dailyReport:o(Bp,1),getPosMonthlyReport:o(Np,1),listOperators:o(Up,0),enrolPosOperator:o(wp,1),switchOperator:o(Vp,1),setOperatorPin:o(Hp,2),clearOperatorPin:o(Lp,1)};var h4=()=>"/fiscalization/pt/atcud-series",Wp=async(e,t)=>r(h4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),P4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/fiscalization/pt/atcud-series?${s}`:"/fiscalization/pt/atcud-series"},Gp=async(e,t)=>r(P4(e),{...t,method:"GET"}),S4=e=>`/fiscalization/pt/atcud-series/${e}`,Mp=async(e,t)=>r(S4(e),{...t,method:"GET"}),I4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/fiscalization/pt/atcud-series/active?${s}`:"/fiscalization/pt/atcud-series/active"},zp=async(e,t)=>r(I4(e),{...t,method:"POST"}),f4=e=>`/fiscalization/pt/atcud-series/${e}/retire`,Kp=async(e,t)=>r(f4(e),{...t,method:"POST"});var $p={create:o(Wp,1),list:c(Gp),get:o(Mp,1),getActive:o(zp,1),retirePtAtcudSeries:o(Kp,1)};var T4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/fiscalization/pt/saft/report?${s}`:"/fiscalization/pt/saft/report"},Jp=async(e,t)=>r(T4(e),{...t,method:"GET"});var jp={generateReport:o(Jp,1)};var b4=e=>`/purchase-orders/shareable/${e}`,Xp=async(e,t)=>r(b4(e),{...t,method:"GET"}),C4=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/purchase-orders/shareable/${e}/html?${a}`:`/purchase-orders/shareable/${e}/html`},_p=async(e,t,s)=>r(C4(e,t),{...s,method:"GET"}),F4=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/purchase-orders/shareable/${e}/pdf?${a}`:`/purchase-orders/shareable/${e}/pdf`},Yp=async(e,t,s)=>r(F4(e,t),{...s,method:"GET"}),O4=()=>"/purchase-orders",Qp=async(e,t)=>r(O4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),A4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/purchase-orders?${s}`:"/purchase-orders"},Zp=async(e,t)=>r(A4(e),{...t,method:"GET"}),D4=e=>`/purchase-orders/${e}`,ei=async(e,t)=>r(D4(e),{...t,method:"GET"}),k4=e=>`/purchase-orders/${e}`,ti=async(e,t,s)=>r(k4(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),B4=e=>`/purchase-orders/${e}/versions`,si=async(e,t)=>r(B4(e),{...t,method:"GET"}),N4=(e,t)=>`/purchase-orders/${e}/versions/${t}`,ri=async(e,t,s)=>r(N4(e,t),{...s,method:"GET"}),U4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/purchase-orders/render?${s}`:"/purchase-orders/render"},oi=async(e,t,s)=>r(U4(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),w4=e=>`/purchase-orders/${e}/void`,ni=async(e,t,s)=>r(w4(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var ai={getShareablePurchaseOrder:o(Xp,1),getShareablePurchaseOrderHtml:o(_p,2),getShareablePurchaseOrderPdf:o(Yp,2),create:o(Qp,1),list:c(Zp),get:o(ei,1),update:o(ti,2),getVersions:o(si,1),getVersion:o(ri,2),renderPurchaseOrderPreview:o(oi,2),void:o(ni,2)};var V4=()=>"/recurring-invoices",pi=async(e,t)=>r(V4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),H4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/recurring-invoices?${s}`:"/recurring-invoices"},ii=async(e,t)=>r(H4(e),{...t,method:"GET"}),L4=e=>`/recurring-invoices/${e}`,ci=async(e,t)=>r(L4(e),{...t,method:"GET"}),q4=e=>`/recurring-invoices/${e}`,di=async(e,t,s)=>r(q4(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),W4=e=>`/recurring-invoices/${e}`,Ri=async(e,t)=>r(W4(e),{...t,method:"DELETE"}),G4=e=>`/recurring-invoices/${e}/restore`,ui=async(e,t)=>r(G4(e),{...t,method:"POST"}),M4=e=>`/recurring-invoices/${e}/permanent`,yi=async(e,t)=>r(M4(e),{...t,method:"DELETE"}),z4=e=>`/recurring-invoices/${e}/pause`,li=async(e,t)=>r(z4(e),{...t,method:"POST"}),K4=e=>`/recurring-invoices/${e}/resume`,gi=async(e,t)=>r(K4(e),{...t,method:"POST"}),$4=e=>`/recurring-invoices/${e}/trigger`,Ei=async(e,t)=>r($4(e),{...t,method:"POST"});var mi={create:o(pi,1),list:c(ii),get:o(ci,1),update:o(di,2),delete:o(Ri,1),restoreRecurringInvoice:o(ui,1),permanentDeleteRecurringInvoice:o(yi,1),pauseRecurringInvoice:o(li,1),resumeRecurringInvoice:o(gi,1),triggerRecurringInvoice:o(Ei,1)};var J4=()=>"/revenue-recognition/settings",xi=async e=>r(J4(),{...e,method:"GET"}),j4=()=>"/revenue-recognition/settings",vi=async(e,t)=>r(j4(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),X4=()=>"/revenue-recognition/backfill",hi=async(e,t)=>r(X4(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),_4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/revenue-recognition/report?${s}`:"/revenue-recognition/report"},Pi=async(e,t)=>r(_4(e),{...t,method:"GET"}),Y4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/revenue-recognition/details?${s}`:"/revenue-recognition/details"},Si=async(e,t)=>r(Y4(e),{...t,method:"GET"}),Q4=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/revenue-recognition/lines?${s}`:"/revenue-recognition/lines"},Ii=async(e,t)=>r(Q4(e),{...t,method:"GET"}),Z4=e=>`/revenue-recognition/documents/${e}`,fi=async(e,t)=>r(Z4(e),{...t,method:"GET"});var Ti={getSettings:o(xi,0),updateSettings:o(vi,1),backfill:o(hi,1),getReport:o(Pi,1),getDetails:o(Si,1),listLines:o(Ii,1),getDocumentSchedule:o(fi,1)};var em=()=>"/stripe-app/marketplace-authorize",bi=async(e,t)=>r(em(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),tm=()=>"/stripe-app/connect",Ci=async(e,t)=>r(tm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),sm=()=>"/stripe-app/entity-connection",Fi=async e=>r(sm(),{...e,method:"GET"}),rm=()=>"/stripe-app/entity-connection",Oi=async e=>r(rm(),{...e,method:"DELETE"}),om=()=>"/stripe-app/entity-settings",Ai=async e=>r(om(),{...e,method:"GET"}),nm=()=>"/stripe-app/entity-settings",Di=async(e,t)=>r(nm(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var ki={stripeAppMarketplaceAuthorize:o(bi,1),stripeAppConnect:o(Ci,1),stripeAppEntityGetConnection:o(Fi,0),stripeAppEntityDisconnect:o(Oi,0),stripeAppEntityGetSettings:o(Ai,0),stripeAppEntityUpdateSettings:o(Di,1)};var am=()=>"/subscriptions",Bi=async e=>r(am(),{...e,method:"GET"}),pm=()=>"/subscriptions/spending-limit",Ni=async(e,t)=>r(pm(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),im=()=>"/subscriptions/check-entity-limit",Ui=async e=>r(im(),{...e,method:"GET"});var wi={getCurrent:o(Bi,0),update:o(Ni,1),checkEntityLimit:o(Ui,0)};var cm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-rate-estimates/us?${s}`:"/tax-rate-estimates/us"},Vi=async(e,t)=>r(cm(e),{...t,method:"GET"});var Hi={listUsTaxRateEstimates:o(Vi,1)};var dm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/liability?${s}`:"/tax-reports/liability"},Li=async(e,t)=>r(dm(e),{...t,method:"GET"}),Rm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/payments?${s}`:"/tax-reports/payments"},qi=async(e,t)=>r(Rm(e),{...t,method:"GET"}),um=()=>"/tax-reports/payments",Wi=async(e,t)=>r(um(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ym=e=>`/tax-reports/payments/${e}`,Gi=async(e,t,s)=>r(ym(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),lm=e=>`/tax-reports/payments/${e}`,Mi=async(e,t)=>r(lm(e),{...t,method:"DELETE"}),gm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/eu/oss?${s}`:"/tax-reports/eu/oss"},zi=async(e,t)=>r(gm(e),{...t,method:"GET"}),Em=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/kir?${s}`:"/tax-reports/kir"},Ki=async(e,t)=>r(Em(e),{...t,method:"POST"}),mm=()=>"/tax-reports/si/profile",$i=async e=>r(mm(),{...e,method:"GET"}),xm=()=>"/tax-reports/si/profile",Ji=async(e,t)=>r(xm(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),vm=()=>"/tax-reports/si/yearly/normirani/review",ji=async(e,t)=>r(vm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),hm=()=>"/tax-reports/si/yearly/normirani/export",Xi=async(e,t)=>r(hm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Pm=()=>"/tax-reports/si/accounting/vod/export",_i=async(e,t)=>r(Pm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Sm=()=>"/tax-reports/si/accounting/minimax/export",Yi=async(e,t)=>r(Sm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Im=()=>"/tax-reports/si/accounting/vasco/export",Qi=async(e,t)=>r(Im(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),fm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/tax-reports/accounting/quickbooks/export?${s}`:"/tax-reports/accounting/quickbooks/export"},Zi=async(e,t)=>r(fm(e),{...t,method:"GET"});var ec={getTaxLiabilityReport:o(Li,1),list:c(qi),create:o(Wi,1),update:o(Gi,2),delete:o(Mi,1),getEuOssReport:o(zi,1),generateKirExport:o(Ki,1),getSloveniaTaxProfile:o($i,0),updateSloveniaTaxProfile:o(Ji,1),reviewSloveniaYearlyNormiraniReport:o(ji,1),exportSloveniaYearlyNormiraniReport:o(Xi,1),exportSloveniaVodXml:o(_i,1),exportSloveniaMinimaxXml:o(Yi,1),exportSloveniaVascoXml:o(Qi,1),exportQuickbooksCsv:o(Zi,1),listEmployees:o(P,1),registerEmployee:o(S,1),getEmployee:o(I,1),modifyEmployee:o(f,2),archiveEmployee:o(T,1),getEmployeeAttendance:o(b,2),replaceEmployeeAttendance:o(C,3),resolvePayrollParameters:o(F,1),getPayrollParameterHistory:o(O,1),setPayrollParameterOverride:o(A,3),preview:o(D,1),draftVatReturn:o(k,1),listVatReturns:o(B,1),getVatReturn:o(N,1),recomputeVatReturn:o(U,1),approveVatReturn:o(w,1),submitVatReturn:o(V,2),reopenVatReturn:o(H,1),exportVatReturn:o(L,2),listFilings:o(q,1),completeFiling:o(W,2),reopenFiling:o(G,1),dismissFiling:o(M,2),listAccountFilingsCalendar:o(z,1)};var Tm=()=>"/taxes",tc=async(e,t)=>r(Tm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),bm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/taxes?${s}`:"/taxes"},sc=async(e,t)=>r(bm(e),{...t,method:"GET"}),Cm=e=>`/taxes/${e}`,rc=async(e,t,s)=>r(Cm(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Fm=e=>`/taxes/${e}`,oc=async(e,t,s)=>r(Fm(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Om=e=>`/taxes/${e}`,nc=async(e,t)=>r(Om(e),{...t,method:"DELETE"}),Am=e=>`/taxes/${e}/restore`,ac=async(e,t)=>r(Am(e),{...t,method:"POST"}),Dm=e=>`/taxes/${e}/permanent`,pc=async(e,t)=>r(Dm(e),{...t,method:"DELETE"});var ic={create:o(tc,1),list:c(sc),update:o(rc,2),replaceTax:o(oc,2),delete:o(nc,1),restoreTax:o(ac,1),permanentDeleteTax:o(pc,1)};var km=()=>"/fiscalization/ticketbai/settings",cc=async e=>r(km(),{...e,method:"GET"}),Bm=()=>"/fiscalization/ticketbai/settings",dc=async(e,t)=>r(Bm(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Nm=()=>"/fiscalization/ticketbai/settings/certificate",Rc=async(e,t)=>{let s=new FormData;return s.append("file",e.file),s.append("passphrase",e.passphrase),r(Nm(),{...t,method:"POST",body:s})},Um=e=>`/fiscalization/ticketbai/records/${e}`,uc=async(e,t)=>r(Um(e),{...t,method:"GET"}),wm=e=>`/fiscalization/ticketbai/records/${e}/xml`,yc=async(e,t)=>r(wm(e),{...t,method:"GET"}),Vm=e=>`/fiscalization/ticketbai/records/${e}/retry`,lc=async(e,t)=>r(Vm(e),{...t,method:"POST"}),Hm=e=>`/fiscalization/ticketbai/records/${e}/reconcile`,gc=async(e,t)=>r(Hm(e),{...t,method:"POST"});var Ec={getSettings:o(cc,0),updateSettings:o(dc,1),uploadCertificate:o(Rc,1),getRecord:o(uc,1),downloadRecordXml:o(yc,1),retryRecord:o(lc,1),reconcileRecord:o(gc,1)};var Lm=()=>"/transaction-type/check",mc=async(e,t)=>r(Lm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var xc={checkTransactionType:o(mc,1)};var qm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/travel-orders?${s}`:"/travel-orders"},vc=async(e,t)=>r(qm(e),{...t,method:"GET"}),Wm=()=>"/travel-orders",hc=async(e,t)=>r(Wm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Gm=()=>"/travel-orders/preview",Pc=async(e,t)=>r(Gm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Mm=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/travel-orders/render?${s}`:"/travel-orders/render"},Sc=async(e,t,s)=>r(Mm(t),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(e)}),zm=()=>"/travel-orders/route-distance",Ic=async(e,t)=>r(zm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Km=e=>`/travel-orders/${e}`,fc=async(e,t)=>r(Km(e),{...t,method:"GET"}),$m=e=>`/travel-orders/${e}`,Tc=async(e,t,s)=>r($m(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Jm=e=>`/travel-orders/${e}`,bc=async(e,t)=>r(Jm(e),{...t,method:"DELETE"}),jm=e=>`/travel-orders/${e}/approve`,Cc=async(e,t)=>r(jm(e),{...t,method:"POST"}),Xm=e=>`/travel-orders/${e}/settle`,Fc=async(e,t)=>r(Xm(e),{...t,method:"POST"}),_m=e=>`/travel-orders/${e}/reopen`,Oc=async(e,t,s)=>r(_m(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ym=e=>`/travel-orders/${e}/cancel`,Ac=async(e,t)=>r(Ym(e),{...t,method:"POST"}),Qm=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/travel-orders/${e}/pdf?${a}`:`/travel-orders/${e}/pdf`},Dc=async(e,t,s)=>r(Qm(e,t),{...s,method:"GET"}),Zm=(e,t)=>{let s=new URLSearchParams;Object.entries(t||{}).forEach(([n,p])=>{p!==void 0&&s.append(n,p===null?"null":p.toString());});let a=s.toString();return a.length>0?`/travel-orders/${e}/html?${a}`:`/travel-orders/${e}/html`},kc=async(e,t,s)=>r(Zm(e,t),{...s,method:"GET"});var Bc={list:c(vc),create:o(hc,1),preview:o(Pc,1),renderTravelOrderPreview:o(Sc,2),calculateTravelOrderRouteDistance:o(Ic,1),get:o(fc,1),update:o(Tc,2),delete:o(bc,1),approveTravelOrder:o(Cc,1),settleTravelOrder:o(Fc,1),reopenTravelOrder:o(Oc,2),cancelTravelOrder:o(Ac,1),renderPdf:o(Dc,2),renderHtml:o(kc,2)};var Nc="https://eu.spaceinvoices.com";var ex=e=>`/documents/${e}/ujp`,Uc=async(e,t)=>r(ex(e),{...t,method:"GET"});var wc={download:o(Uc,1)};var tx=()=>"/upload/image",Vc=async(e,t)=>{let s=new FormData;return s.append("file",e.file),r(tx(),{...t,method:"POST",body:s})};var Hc={uploadImage:o(Vc,1)};var sx=()=>"/accounts/two-factor-policy",Lc=async e=>r(sx(),{...e,method:"GET"}),rx=()=>"/accounts/two-factor-policy",qc=async(e,t)=>r(rx(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ox=e=>`/entities/${e}/two-factor-policy`,Wc=async(e,t)=>r(ox(e),{...t,method:"GET"}),nx=e=>`/entities/${e}/two-factor-policy`,Gc=async(e,t,s)=>r(nx(e),{...s,method:"PUT",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),ax=()=>"/users/two-factor/setup",Mc=async(e,t)=>r(ax(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),px=()=>"/users/two-factor/enable",zc=async(e,t)=>r(px(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ix=()=>"/users/me/two-factor",Kc=async e=>r(ix(),{...e,method:"GET"}),cx=()=>"/users/me/two-factor/setup",$c=async(e,t)=>r(cx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),dx=()=>"/users/me/two-factor/enable",Jc=async(e,t)=>r(dx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Rx=()=>"/users/me/two-factor/disable",jc=async(e,t)=>r(Rx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),ux=()=>"/users/two-factor/verify",Xc=async(e,t)=>r(ux(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),yx=()=>"/users/login",_c=async(e,t)=>r(yx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),lx=()=>"/users/signup",Yc=async(e,t)=>r(lx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),gx=()=>"/users/password-reset",Qc=async(e,t)=>r(gx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Ex=()=>"/users/password-reset/confirm",Zc=async(e,t)=>r(Ex(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),mx=()=>"/users/me/accounts",ed=async e=>r(mx(),{...e,method:"GET"}),xx=()=>"/users/me",td=async e=>r(xx(),{...e,method:"GET"}),vx=()=>"/users/me",sd=async(e,t)=>r(vx(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),hx=()=>"/users/me/account-deletion",rd=async e=>r(hx(),{...e,method:"POST"}),Px=()=>"/users/me/settings/furs",od=async(e,t)=>r(Px(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Sx=()=>"/users/me/settings/fina",nd=async(e,t)=>r(Sx(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var ad={getAccountTwoFactorPolicy:o(Lc,0),updateAccountTwoFactorPolicy:o(qc,1),getEntityTwoFactorPolicy:o(Wc,1),updateEntityTwoFactorPolicy:o(Gc,2),setupRequiredTwoFactor:o(Mc,1),enableRequiredTwoFactor:o(zc,1),getTwoFactorConfiguration:o(Kc,0),setupTwoFactor:o($c,1),enableTwoFactor:o(Jc,1),disableTwoFactor:o(jc,1),verifyTwoFactor:o(Xc,1),login:o(_c,1),signup:o(Yc,1),requestPasswordReset:o(Qc,1),confirmPasswordReset:o(Zc,1),listMyAccounts:o(ed,0),getMe:o(td,0),update:o(sd,1),requestAccountDeletion:o(rd,0),updateFursSettings:o(od,1),updateFinaSettings:o(nd,1)};var Ix=()=>"/fiscalization/verifactu/settings",pd=async e=>r(Ix(),{...e,method:"GET"}),fx=()=>"/fiscalization/verifactu/settings",id=async(e,t)=>r(fx(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Tx=()=>"/fiscalization/verifactu/certificate",cd=async(e,t)=>{let s=new FormData;return s.append("file",e.file),s.append("passphrase",e.passphrase),r(Tx(),{...t,method:"POST",body:s})},bx=e=>`/fiscalization/verifactu/records/${e}`,dd=async(e,t)=>r(bx(e),{...t,method:"GET"}),Cx=e=>`/fiscalization/verifactu/records/${e}/retry`,Rd=async(e,t)=>r(Cx(e),{...t,method:"POST"}),Fx=e=>`/fiscalization/verifactu/records/${e}/correct`,ud=async(e,t,s)=>r(Fx(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ox=e=>`/fiscalization/verifactu/records/${e}/cancel`,yd=async(e,t,s)=>r(Ox(e),{...s,method:"POST",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)});var ld={getSettings:o(pd,0),updateSettings:o(id,1),uploadCertificate:o(cd,1),getEvidence:o(dd,1),retryRecord:o(Rd,1),correctRecord:o(ud,2),cancelRecord:o(yd,2)};var Ax=()=>"/vies/check",gd=async(e,t)=>r(Ax(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var Ed={checkVies:o(gd,1)};var Dx=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/warehouses?${s}`:"/warehouses"},md=async(e,t)=>r(Dx(e),{...t,method:"GET"}),kx=()=>"/warehouses",xd=async(e,t)=>r(kx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Bx=e=>`/warehouses/${e}`,vd=async(e,t)=>r(Bx(e),{...t,method:"GET"}),Nx=e=>`/warehouses/${e}`,hd=async(e,t,s)=>r(Nx(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),Ux=e=>`/warehouses/${e}`,Pd=async(e,t)=>r(Ux(e),{...t,method:"DELETE"});var Sd={list:c(md),create:o(xd,1),get:o(vd,1),update:o(hd,2),delete:o(Pd,1)};var wx=()=>"/webhooks",Id=async(e,t)=>r(wx(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),Vx=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([a,n])=>{n!==void 0&&t.append(a,n===null?"null":n.toString());});let s=t.toString();return s.length>0?`/webhooks?${s}`:"/webhooks"},fd=async(e,t)=>r(Vx(e),{...t,method:"GET"}),Hx=e=>`/webhooks/${e}`,Td=async(e,t)=>r(Hx(e),{...t,method:"GET"}),Lx=e=>`/webhooks/${e}`,bd=async(e,t,s)=>r(Lx(e),{...s,method:"PATCH",headers:{"Content-Type":"application/json",...s?.headers},body:JSON.stringify(t)}),qx=e=>`/webhooks/${e}`,Cd=async(e,t)=>r(qx(e),{...t,method:"DELETE"}),Wx=e=>`/webhooks/${e}/test`,Fd=async(e,t)=>r(Wx(e),{...t,method:"POST"});var Gx=e=>`/webhooks/${e}/rotate-secret`,Od=async(e,t)=>r(Gx(e),{...t,method:"POST"});var Ad={create:o(Id,1),list:c(fd),get:o(Td,1),update:o(bd,2),delete:o(Cd,1),testWebhook:o(Fd,1),rotateWebhookSecret:o(Od,1)};var Mx=()=>"/white-label-subscriptions",Dd=async e=>r(Mx(),{...e,method:"GET"}),zx=()=>"/white-label-subscriptions/plans",kd=async e=>r(zx(),{...e,method:"GET"}),Kx=e=>`/white-label-subscriptions/check-feature/${e}`,Bd=async(e,t)=>r(Kx(e),{...t,method:"GET"}),$x=e=>`/white-label-subscriptions/check-limit/${e}`,Nd=async(e,t)=>r($x(e),{...t,method:"GET"}),Jx=()=>"/white-label-subscriptions/billing-email",Ud=async(e,t)=>r(Jx(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)});var wd={getCurrentWLSubscription:o(Dd,0),list:o(kd,0),checkWLFeature:o(Bd,1),checkWLLimit:o(Nd,1),update:o(Ud,1)};var jx=()=>"/white-labels/current",Vd=async e=>r(jx(),{...e,method:"GET"}),Xx=()=>"/white-labels/me",Hd=async e=>r(Xx(),{...e,method:"GET"});var Ld={getCurrentWhiteLabel:o(Vd,0),getMyWhiteLabel:o(Hd,0)};var v=class{sdkConfig;accountWebhooks=i(pe,()=>this.sdkConfig);accounting=i(Se,()=>this.sdkConfig);activities=i(fe,()=>this.sdkConfig);advanceInvoices=i(We,()=>this.sdkConfig);businessUnits=i(Je,()=>this.sdkConfig);companyRegistry=i(_e,()=>this.sdkConfig);creditNotes=i(Pt,()=>this.sdkConfig);currency=i(It,()=>this.sdkConfig);customers=i(Dt,()=>this.sdkConfig);deliveryNotes=i($t,()=>this.sdkConfig);documents=i(ns,()=>this.sdkConfig);eInvoicing=i(bs,()=>this.sdkConfig);eSlog=i(Os,()=>this.sdkConfig);email=i(Ds,()=>this.sdkConfig);entities=i(Ys,()=>this.sdkConfig);entityApiKeys=i(sr,()=>this.sdkConfig);entityInvitations=i(cr,()=>this.sdkConfig);entityStats=i(Rr,()=>this.sdkConfig);entityUsers=i(xr,()=>this.sdkConfig);estimates=i(Dr,()=>this.sdkConfig);expenses=i(ao,()=>this.sdkConfig);exports=i(xo,()=>this.sdkConfig);files=i(Io,()=>this.sdkConfig);finaCertificate=i(Co,()=>this.sdkConfig);finaDevices=i(Bo,()=>this.sdkConfig);finaPremises=i(Lo,()=>this.sdkConfig);finaSettings=i(Go,()=>this.sdkConfig);financialCategories=i(_o,()=>this.sdkConfig);fursCertificate=i(en,()=>this.sdkConfig);fursDevices=i(nn,()=>this.sdkConfig);fursInternalAct=i(cn,()=>this.sdkConfig);fursPremises=i(En,()=>this.sdkConfig);fursSettings=i(vn,()=>this.sdkConfig);health=i(In,()=>this.sdkConfig);invoices=i(Zn,()=>this.sdkConfig);items=i(la,()=>this.sdkConfig);legacyMigration=i(ha,()=>this.sdkConfig);locale=i(Sa,()=>this.sdkConfig);orderIntegrations=i(La,()=>this.sdkConfig);orders=i(ja,()=>this.sdkConfig);paymentReminders=i(Ya,()=>this.sdkConfig);payments=i(mp,()=>this.sdkConfig);pointOfSale=i(qp,()=>this.sdkConfig);ptAtcudSeries=i($p,()=>this.sdkConfig);ptSafT=i(jp,()=>this.sdkConfig);purchaseOrders=i(ai,()=>this.sdkConfig);recurringInvoices=i(mi,()=>this.sdkConfig);revenueRecognition=i(Ti,()=>this.sdkConfig);stripeApp=i(ki,()=>this.sdkConfig);subscriptions=i(wi,()=>this.sdkConfig);taxRateEstimates=i(Hi,()=>this.sdkConfig);taxReports=i(ec,()=>this.sdkConfig);taxes=i(ic,()=>this.sdkConfig);ticketBai=i(Ec,()=>this.sdkConfig);transactionType=i(xc,()=>this.sdkConfig);travelOrders=i(Bc,()=>this.sdkConfig);ujp=i(wc,()=>this.sdkConfig);upload=i(Hc,()=>this.sdkConfig);users=i(ad,()=>this.sdkConfig);veriFactu=i(ld,()=>this.sdkConfig);vies=i(Ed,()=>this.sdkConfig);warehouses=i(Sd,()=>this.sdkConfig);webhooks=i(Ad,()=>this.sdkConfig);whiteLabelSubscriptions=i(wd,()=>this.sdkConfig);whiteLabels=i(Ld,()=>this.sdkConfig);constructor(t){let s=typeof t=="string"?{accessToken:t}:t,a=typeof s.accessToken=="function"?s.accessToken:()=>s.accessToken;this.sdkConfig={baseUrl:s.basePath??Nc,getAccessToken:a,clientName:s.clientName??"js-sdk",onUnauthorized:s.onUnauthorized,requestTimeoutMs:s.requestTimeoutMs,accountId:s.accountId??null};}};
2
2
  export{v as default,$d as getAccountId,K as getClientHeaders,zd as setAccountId};