@hiver/connector-agent 1.5.0 → 1.5.1-beta.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.
package/index.es.js CHANGED
@@ -42049,10 +42049,13 @@ const ul = (e) => {
42049
42049
  DELETE: "DELETE",
42050
42050
  PATCH: "PATCH",
42051
42051
  PUT: "PUT"
42052
- }, jY = async () => zo({
42053
- url: kY,
42054
- method: OY.GET
42055
- });
42052
+ }, jY = async ({ inboxIds: e, channelType: t }) => {
42053
+ const n = new URLSearchParams();
42054
+ return e.forEach((o) => n.append("inbox_ids", o)), n.append("channel_type", t), zo({
42055
+ url: `${kY}?${n.toString()}`,
42056
+ method: OY.GET
42057
+ });
42058
+ };
42056
42059
  export {
42057
42060
  NY as ConnectorCardList,
42058
42061
  jY as getMetaData,
package/index.umd.js CHANGED
@@ -3581,4 +3581,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3581
3581
  align-self: auto !important;
3582
3582
  margin-left: 12px;
3583
3583
  }
3584
- `,BY=({contactEmail:e="",baseUrls:t={},extraParams:n={},availableFeatures:o={}})=>v.jsx(EY,{children:v.jsxs(CY,{availableFeatures:o,extraParams:n,contactEmail:e,baseUrls:t,children:[v.jsx(dY,{isAdmin:n==null?void 0:n.isAdmin}),hn.createPortal(v.jsx(hY,{id:"toast-message",children:v.jsx(Bm,{position:"bottom-left",autoClose:5e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,draggable:!0,pauseOnHover:!0})}),document.body)]})}),mY="/v1/api"+"/templates/metadata",QY={GET:"GET",POST:"POST",DELETE:"DELETE",PATCH:"PATCH",PUT:"PUT"},bY=async()=>Lo({url:mY,method:QY.GET});zt.ConnectorCardList=BY,zt.getMetaData=bY,zt.setAppConfig=sD,zt.setAppUgId=AD,zt.setAppUserId=aD,Object.defineProperty(zt,Symbol.toStringTag,{value:"Module"})});
3584
+ `,BY=({contactEmail:e="",baseUrls:t={},extraParams:n={},availableFeatures:o={}})=>v.jsx(EY,{children:v.jsxs(CY,{availableFeatures:o,extraParams:n,contactEmail:e,baseUrls:t,children:[v.jsx(dY,{isAdmin:n==null?void 0:n.isAdmin}),hn.createPortal(v.jsx(hY,{id:"toast-message",children:v.jsx(Bm,{position:"bottom-left",autoClose:5e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,draggable:!0,pauseOnHover:!0})}),document.body)]})}),mY="/v1/api"+"/templates/metadata",QY={GET:"GET",POST:"POST",DELETE:"DELETE",PATCH:"PATCH",PUT:"PUT"},bY=async({inboxIds:e,channelType:t})=>{const n=new URLSearchParams;return e.forEach(o=>n.append("inbox_ids",o)),n.append("channel_type",t),Lo({url:`${mY}?${n.toString()}`,method:QY.GET})};zt.ConnectorCardList=BY,zt.getMetaData=bY,zt.setAppConfig=sD,zt.setAppUgId=AD,zt.setAppUserId=aD,Object.defineProperty(zt,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "1.5.0",
3
+ "version": "1.5.1-beta.0",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
7
7
  "files": [
8
8
  "*"
9
9
  ],
10
- "dependencies": {},
10
+ "dependencies": {
11
+ "@connector/utils": "0.0.1-beta.0"
12
+ },
11
13
  "devDependencies": {
12
14
  "msw": "^2.4.4",
13
15
  "react": "^18.3.1",