Files
kefu/deploy/knowledge-v2-20260916/payload/admin-web/apps/web-antd/dist/js/archive-PnuNQRb2.js
T
2026-09-21 10:34:06 +08:00

1 line
2.0 KiB
JavaScript

import{i as e}from"./store-DWy_0h89.js";function t(e){let t=new URLSearchParams;Object.entries(e).forEach(([e,n])=>{n!==``&&t.set(e,String(n))});let n=t.toString();return n?`?${n}`:``}function n(n=0,r){return e.get(`/archive/stats${t({account_id:n})}`,{signal:r})}function r(n=50,r=``,i=0,a){return e.get(`/archive/conversations${t({account_id:i,cursor:r,limit:n})}`,{signal:a})}function i(n,r=100,i=``,a=0,o){return e.get(`/archive/conversations/${encodeURIComponent(n)}/messages${t({account_id:a,cursor:i,limit:r})}`,{signal:o})}function a(n,r=900,i=0,a){return e.post(`/archive/media/access-urls${t({account_id:i})}`,{expires:r,media_ids:n},{signal:a})}function o(t){return e.get(`/archive/storage`,{signal:t})}function s(t){return e.put(`/archive/storage`,t)}function c(){return e.post(`/archive/storage/test`)}function l(n=100,r=0,i){return e.get(`/archive/media${t({account_id:r,limit:n})}`,{signal:i})}function u(n=100,r=``,i=0,a){return e.get(`/archive/people${t({account_id:i,keyword:r,limit:n})}`,{signal:a})}function d(n,r=0){return e.get(`/archive/people/${encodeURIComponent(n)}${t({account_id:r})}`)}function f(n,r,i=0){return e.post(`/archive/people/${encodeURIComponent(n)}/identities${t({account_id:i})}`,r)}function p(n,r,i=1,a=20){return e.get(`/archive/patients/search${t({account_id:r,keyword:n,page_no:i,page_size:a})}`)}function m(n,r,i){return e.put(`/archive/people/${encodeURIComponent(n)}/patient-bindings${t({account_id:i})}`,r)}function h(n,r,i){return e.delete(`/archive/people/${encodeURIComponent(n)}/patient-bindings/${encodeURIComponent(r)}${t({account_id:i})}`)}function g(n,r=0){return e.post(`/archive/exports${t({account_id:r})}`,n)}function _(n=100,r=0,i){return e.get(`/archive/exports${t({account_id:r,limit:n})}`,{signal:i})}function v(n,r=0){return e.download(`/archive/export-files/${encodeURIComponent(n)}/download${t({account_id:r})}`)}export{h as _,r as a,a as c,d,n as f,c as g,p as h,v as i,i as l,s as m,m as n,_ as o,o as p,g as r,l as s,f as t,u};