@mbanq/core-sdk-js 0.5.0 → 0.5.2

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNKXRKPECjs = require('./chunk-NKXRKPEC.js');var C=t=>{let e=t.skipNotification&&"?skipNotification=true"||"",n=t.card.cardType==="CREDIT"?"creditcards":"cards",o={...t.payload,query:e,flag:t.flag};return{input:t,metadata:{commandName:"SendAuthorizationToCore",path:`/${n}/${t.card.internalCardId}/authorization${e}`,method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let s=await _chunkNKXRKPECjs.d.call(void 0, r);try{return await s.post(`/${n}/${t.card.internalCardId}/authorization${e}`,o)}catch(d){_chunkNKXRKPECjs.c.call(void 0, d)}}}},I= exports.b =t=>({input:t,metadata:{commandName:"UpdateCardID",path:`/clients/${t.clientId}`,method:"PUT"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let n=await _chunkNKXRKPECjs.d.call(void 0, e);try{await n.put(`/clients/${t.clientId}`,{businessCardIDURL:t.businessCardIDURL,businessCardIDQRCode:t.businessCardIDQRCode})}catch(o){_chunkNKXRKPECjs.c.call(void 0, o)}}});exports.a = C; exports.b = I;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKYBDTUPKjs = require('./chunk-KYBDTUPK.js');var C=t=>{let e=t.skipNotification&&"?skipNotification=true"||"",n=t.card.cardType==="CREDIT"?"creditcards":"cards",o={...t.payload,query:e,flag:t.flag};return{input:t,metadata:{commandName:"SendAuthorizationToCore",path:`/${n}/${t.card.internalCardId}/authorization${e}`,method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let s=await _chunkKYBDTUPKjs.d.call(void 0, r);try{return await s.post(`/${n}/${t.card.internalCardId}/authorization${e}`,o)}catch(d){_chunkKYBDTUPKjs.c.call(void 0, d)}}}},I= exports.b =t=>({input:t,metadata:{commandName:"UpdateCardID",path:`/clients/${t.clientId}`,method:"PUT"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let n=await _chunkKYBDTUPKjs.d.call(void 0, e);try{await n.put(`/clients/${t.clientId}`,{businessCardIDURL:t.businessCardIDURL,businessCardIDQRCode:t.businessCardIDQRCode})}catch(o){_chunkKYBDTUPKjs.c.call(void 0, o)}}});exports.a = C; exports.b = I;
@@ -1 +1 @@
1
- import{A as v,B as D,D as L,M as O,N as E,O as G,P as T,R as j,S as M,T as _,U as $,X as F,Y as H,a as I,r as b,s as h,t as R,u as q,w as U,x as A,y as B,z as P}from"./chunk-PEZBB7Q7.mjs";var x=m=>{let p=[];if(!m.baseUrl)p.push("baseUrl is required");else if(typeof m.baseUrl!="string")p.push("baseUrl must be a string");else try{new URL(m.baseUrl)}catch{p.push("baseUrl must be a valid URL")}return m.axiosConfig?.timeout!==void 0&&(typeof m.axiosConfig.timeout!="number"||m.axiosConfig.timeout<0)&&p.push("timeout must be a positive number"),p};var te=m=>{let p=x(m);if(p.length>0)throw I({message:`Invalid configuration: ${p.join(", ")}`,code:"invalid_config"});let C=async(o,t,n)=>{if(m.middlewares)for(let e of m.middlewares)o==="before"&&e.before?await e.before(t):o==="after"&&e.after?await e.after(t,n):o==="onError"&&e.onError&&await e.onError(t,n)},f={...m},a=async o=>{try{await C("before",o);let t=await o.execute(f);return await C("after",o,t),t}catch(t){throw await C("onError",o,t),t}},w=o=>{let t=o||f.tenantId;return{user:{getDetail:()=>{let n=H({tenantId:t});return{execute:async()=>a(n)}}},payment:{create:n=>{let e=b({payment:n,tenantId:t});return{execute:async()=>a(e)}},get:n=>{let e=h({id:n,tenantId:t});return{execute:async()=>a(e)}},update:(n,e)=>{let s=R({id:n,payment:e,tenantId:t});return{execute:async()=>a(s)}},delete:n=>{let e=U({id:n,tenantId:t});return{execute:async()=>a(e)}},list:()=>{let e=q({tenantId:t}).list(),s=u=>({where:u.where,limit:i=>{let d=u.limit(i);return s(d)},offset:i=>{let d=u.offset(i);return s(d)},all:()=>{let i=u.all();return s(i)},execute:async()=>{let i=u.execute();return a(i)}});return s(e)}},client:{create:n=>{let e=v({clientData:n,tenantId:t});return{execute:async()=>a(e)}},get:n=>{let e=A({clientId:n,tenantId:t});return{execute:async()=>a(e)}},update:(n,e)=>{let s=B({clientId:n,updates:e,tenantId:t});return{execute:async()=>a(s)}},updateDocumentRecord:(n,e)=>{let s=P({clientId:n,identifierId:e.id,updates:e,tenantId:t});return{execute:async()=>a(s)}},delete:n=>{let e=L({clientId:n,tenantId:t});return{execute:async()=>a(e)}},for:n=>{let e=parseInt(n,10),u=T({clientId:e,tenantId:t}).list(),d=$({clientId:e,tenantId:t}).list(),N=async()=>{let r=u.execute();return(await a(r))?.savingsAccounts||[]},y=r=>({where:c=>{let l=r.where?r.where(c):r;return{eq:Q=>{let g=l.eq?l.eq(Q):l;return{where:k=>y(g).where(k),list:()=>y(g)}}}},execute:async()=>{let c=r.execute();return a(c)}});return{accounts:{get:r=>({execute:async()=>{let c=O({id:r,tenantId:t});return a(c)}}),getFromList:r=>({execute:async()=>(await N()).find(l=>l.id===r)||null}),update:(r,c)=>{let l=E({clientId:e,accountId:r,updates:c,tenantId:t});return{execute:async()=>a(l)}},delete:r=>{let c=G({accountId:r,tenantId:t});return{execute:async()=>a(c)}},where:r=>y(u).where(r),list:()=>y(u)},recipients:{create:r=>{let c=M({clientId:e,recipient:r,tenantId:t});return{execute:async()=>a(c)}},get:r=>({execute:async()=>{let c=j({clientId:e,id:r,tenantId:t});return a(c)}}),update:(r,c)=>{let l=F({id:r,input:c,tenantId:t});return{execute:async()=>a(l)}},delete:r=>{let c=_({clientId:e,recipientId:r,tenantId:t});return{execute:async()=>a(c)}},where:r=>y(d).where(r),list:()=>y(d)}}},list:()=>{let e=D({tenantId:t}).list(),s=u=>({where:u.where,limit:i=>{let d=u.limit(i);return s(d)},offset:i=>{let d=u.offset(i);return s(d)},all:()=>{let i=u.all();return s(i)},execute:async()=>{let i=u.execute();return a(i)}});return s(e)}}}};return{setConfig:o=>{f=o},updateConfig:o=>{let t={...f,...o,axiosConfig:{...f.axiosConfig,...o.axiosConfig,headers:{...f.axiosConfig?.headers,...o.axiosConfig?.headers}}},n=x(t);if(n.length>0)throw I({message:`Invalid configuration: ${n.join(", ")}`,code:"invalid_config"});f=t},resetConfig:()=>{f=m},request:a,tenant:o=>w(o),...w()}};export{te as a};
1
+ import{A as v,B as D,D as L,M as O,N as E,O as G,P as T,R as j,S as M,T as _,U as $,X as F,Y as H,a as I,r as b,s as h,t as R,u as q,w as U,x as A,y as B,z as P}from"./chunk-X5UU2EKK.mjs";var x=m=>{let p=[];if(!m.baseUrl)p.push("baseUrl is required");else if(typeof m.baseUrl!="string")p.push("baseUrl must be a string");else try{new URL(m.baseUrl)}catch{p.push("baseUrl must be a valid URL")}return m.axiosConfig?.timeout!==void 0&&(typeof m.axiosConfig.timeout!="number"||m.axiosConfig.timeout<0)&&p.push("timeout must be a positive number"),p};var te=m=>{let p=x(m);if(p.length>0)throw I({message:`Invalid configuration: ${p.join(", ")}`,code:"invalid_config"});let C=async(o,t,n)=>{if(m.middlewares)for(let e of m.middlewares)o==="before"&&e.before?await e.before(t):o==="after"&&e.after?await e.after(t,n):o==="onError"&&e.onError&&await e.onError(t,n)},f={...m},a=async o=>{try{await C("before",o);let t=await o.execute(f);return await C("after",o,t),t}catch(t){throw await C("onError",o,t),t}},w=o=>{let t=o||f.tenantId;return{user:{getDetail:()=>{let n=H({tenantId:t});return{execute:async()=>a(n)}}},payment:{create:n=>{let e=b({payment:n,tenantId:t});return{execute:async()=>a(e)}},get:n=>{let e=h({id:n,tenantId:t});return{execute:async()=>a(e)}},update:(n,e)=>{let s=R({id:n,payment:e,tenantId:t});return{execute:async()=>a(s)}},delete:n=>{let e=U({id:n,tenantId:t});return{execute:async()=>a(e)}},list:()=>{let e=q({tenantId:t}).list(),s=u=>({where:u.where,limit:i=>{let d=u.limit(i);return s(d)},offset:i=>{let d=u.offset(i);return s(d)},all:()=>{let i=u.all();return s(i)},execute:async()=>{let i=u.execute();return a(i)}});return s(e)}},client:{create:n=>{let e=v({clientData:n,tenantId:t});return{execute:async()=>a(e)}},get:n=>{let e=A({clientId:n,tenantId:t});return{execute:async()=>a(e)}},update:(n,e)=>{let s=B({clientId:n,updates:e,tenantId:t});return{execute:async()=>a(s)}},updateDocumentRecord:(n,e)=>{let s=P({clientId:n,identifierId:e.id,updates:e,tenantId:t});return{execute:async()=>a(s)}},delete:n=>{let e=L({clientId:n,tenantId:t});return{execute:async()=>a(e)}},for:n=>{let e=parseInt(n,10),u=T({clientId:e,tenantId:t}).list(),d=$({clientId:e,tenantId:t}).list(),N=async()=>{let r=u.execute();return(await a(r))?.savingsAccounts||[]},y=r=>({where:c=>{let l=r.where?r.where(c):r;return{eq:Q=>{let g=l.eq?l.eq(Q):l;return{where:k=>y(g).where(k),list:()=>y(g)}}}},execute:async()=>{let c=r.execute();return a(c)}});return{accounts:{get:r=>({execute:async()=>{let c=O({id:r,tenantId:t});return a(c)}}),getFromList:r=>({execute:async()=>(await N()).find(l=>l.id===r)||null}),update:(r,c)=>{let l=E({clientId:e,accountId:r,updates:c,tenantId:t});return{execute:async()=>a(l)}},delete:r=>{let c=G({accountId:r,tenantId:t});return{execute:async()=>a(c)}},where:r=>y(u).where(r),list:()=>y(u)},recipients:{create:r=>{let c=M({clientId:e,recipient:r,tenantId:t});return{execute:async()=>a(c)}},get:r=>({execute:async()=>{let c=j({clientId:e,id:r,tenantId:t});return a(c)}}),update:(r,c)=>{let l=F({id:r,input:c,tenantId:t});return{execute:async()=>a(l)}},delete:r=>{let c=_({clientId:e,recipientId:r,tenantId:t});return{execute:async()=>a(c)}},where:r=>y(d).where(r),list:()=>y(d)}}},list:()=>{let e=D({tenantId:t}).list(),s=u=>({where:u.where,limit:i=>{let d=u.limit(i);return s(d)},offset:i=>{let d=u.offset(i);return s(d)},all:()=>{let i=u.all();return s(i)},execute:async()=>{let i=u.execute();return a(i)}});return s(e)}}}};return{setConfig:o=>{f=o},updateConfig:o=>{let t={...f,...o,axiosConfig:{...f.axiosConfig,...o.axiosConfig,headers:{...f.axiosConfig?.headers,...o.axiosConfig?.headers}}},n=x(t);if(n.length>0)throw I({message:`Invalid configuration: ${n.join(", ")}`,code:"invalid_config"});f=t},resetConfig:()=>{f=m},request:a,tenant:o=>w(o),...w()}};export{te as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkNKXRKPECjs = require('./chunk-NKXRKPEC.js');var x=m=>{let p=[];if(!m.baseUrl)p.push("baseUrl is required");else if(typeof m.baseUrl!="string")p.push("baseUrl must be a string");else try{new URL(m.baseUrl)}catch (e2){p.push("baseUrl must be a valid URL")}return _optionalChain([m, 'access', _2 => _2.axiosConfig, 'optionalAccess', _3 => _3.timeout])!==void 0&&(typeof m.axiosConfig.timeout!="number"||m.axiosConfig.timeout<0)&&p.push("timeout must be a positive number"),p};var te=m=>{let p=x(m);if(p.length>0)throw _chunkNKXRKPECjs.a.call(void 0, {message:`Invalid configuration: ${p.join(", ")}`,code:"invalid_config"});let C=async(o,t,n)=>{if(m.middlewares)for(let e of m.middlewares)o==="before"&&e.before?await e.before(t):o==="after"&&e.after?await e.after(t,n):o==="onError"&&e.onError&&await e.onError(t,n)},f={...m},a=async o=>{try{await C("before",o);let t=await o.execute(f);return await C("after",o,t),t}catch(t){throw await C("onError",o,t),t}},w=o=>{let t=o||f.tenantId;return{user:{getDetail:()=>{let n=_chunkNKXRKPECjs.Y.call(void 0, {tenantId:t});return{execute:async()=>a(n)}}},payment:{create:n=>{let e=_chunkNKXRKPECjs.r.call(void 0, {payment:n,tenantId:t});return{execute:async()=>a(e)}},get:n=>{let e=_chunkNKXRKPECjs.s.call(void 0, {id:n,tenantId:t});return{execute:async()=>a(e)}},update:(n,e)=>{let s=_chunkNKXRKPECjs.t.call(void 0, {id:n,payment:e,tenantId:t});return{execute:async()=>a(s)}},delete:n=>{let e=_chunkNKXRKPECjs.w.call(void 0, {id:n,tenantId:t});return{execute:async()=>a(e)}},list:()=>{let e=_chunkNKXRKPECjs.u.call(void 0, {tenantId:t}).list(),s=u=>({where:u.where,limit:i=>{let d=u.limit(i);return s(d)},offset:i=>{let d=u.offset(i);return s(d)},all:()=>{let i=u.all();return s(i)},execute:async()=>{let i=u.execute();return a(i)}});return s(e)}},client:{create:n=>{let e=_chunkNKXRKPECjs.A.call(void 0, {clientData:n,tenantId:t});return{execute:async()=>a(e)}},get:n=>{let e=_chunkNKXRKPECjs.x.call(void 0, {clientId:n,tenantId:t});return{execute:async()=>a(e)}},update:(n,e)=>{let s=_chunkNKXRKPECjs.y.call(void 0, {clientId:n,updates:e,tenantId:t});return{execute:async()=>a(s)}},updateDocumentRecord:(n,e)=>{let s=_chunkNKXRKPECjs.z.call(void 0, {clientId:n,identifierId:e.id,updates:e,tenantId:t});return{execute:async()=>a(s)}},delete:n=>{let e=_chunkNKXRKPECjs.D.call(void 0, {clientId:n,tenantId:t});return{execute:async()=>a(e)}},for:n=>{let e=parseInt(n,10),u=_chunkNKXRKPECjs.P.call(void 0, {clientId:e,tenantId:t}).list(),d=_chunkNKXRKPECjs.U.call(void 0, {clientId:e,tenantId:t}).list(),N=async()=>{let r=u.execute();returnawait _asyncOptionalChain([(await a(r)), 'optionalAccess', async _4 => _4.savingsAccounts])||[]},y=r=>({where:c=>{let l=r.where?r.where(c):r;return{eq:Q=>{let g=l.eq?l.eq(Q):l;return{where:k=>y(g).where(k),list:()=>y(g)}}}},execute:async()=>{let c=r.execute();return a(c)}});return{accounts:{get:r=>({execute:async()=>{let c=_chunkNKXRKPECjs.M.call(void 0, {id:r,tenantId:t});return a(c)}}),getFromList:r=>({execute:async()=>(await N()).find(l=>l.id===r)||null}),update:(r,c)=>{let l=_chunkNKXRKPECjs.N.call(void 0, {clientId:e,accountId:r,updates:c,tenantId:t});return{execute:async()=>a(l)}},delete:r=>{let c=_chunkNKXRKPECjs.O.call(void 0, {accountId:r,tenantId:t});return{execute:async()=>a(c)}},where:r=>y(u).where(r),list:()=>y(u)},recipients:{create:r=>{let c=_chunkNKXRKPECjs.S.call(void 0, {clientId:e,recipient:r,tenantId:t});return{execute:async()=>a(c)}},get:r=>({execute:async()=>{let c=_chunkNKXRKPECjs.R.call(void 0, {clientId:e,id:r,tenantId:t});return a(c)}}),update:(r,c)=>{let l=_chunkNKXRKPECjs.X.call(void 0, {id:r,input:c,tenantId:t});return{execute:async()=>a(l)}},delete:r=>{let c=_chunkNKXRKPECjs.T.call(void 0, {clientId:e,recipientId:r,tenantId:t});return{execute:async()=>a(c)}},where:r=>y(d).where(r),list:()=>y(d)}}},list:()=>{let e=_chunkNKXRKPECjs.B.call(void 0, {tenantId:t}).list(),s=u=>({where:u.where,limit:i=>{let d=u.limit(i);return s(d)},offset:i=>{let d=u.offset(i);return s(d)},all:()=>{let i=u.all();return s(i)},execute:async()=>{let i=u.execute();return a(i)}});return s(e)}}}};return{setConfig:o=>{f=o},updateConfig:o=>{let t={...f,...o,axiosConfig:{...f.axiosConfig,...o.axiosConfig,headers:{..._optionalChain([f, 'access', _5 => _5.axiosConfig, 'optionalAccess', _6 => _6.headers]),..._optionalChain([o, 'access', _7 => _7.axiosConfig, 'optionalAccess', _8 => _8.headers])}}},n=x(t);if(n.length>0)throw _chunkNKXRKPECjs.a.call(void 0, {message:`Invalid configuration: ${n.join(", ")}`,code:"invalid_config"});f=t},resetConfig:()=>{f=m},request:a,tenant:o=>w(o),...w()}};exports.a = te;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkKYBDTUPKjs = require('./chunk-KYBDTUPK.js');var x=m=>{let p=[];if(!m.baseUrl)p.push("baseUrl is required");else if(typeof m.baseUrl!="string")p.push("baseUrl must be a string");else try{new URL(m.baseUrl)}catch (e2){p.push("baseUrl must be a valid URL")}return _optionalChain([m, 'access', _2 => _2.axiosConfig, 'optionalAccess', _3 => _3.timeout])!==void 0&&(typeof m.axiosConfig.timeout!="number"||m.axiosConfig.timeout<0)&&p.push("timeout must be a positive number"),p};var te=m=>{let p=x(m);if(p.length>0)throw _chunkKYBDTUPKjs.a.call(void 0, {message:`Invalid configuration: ${p.join(", ")}`,code:"invalid_config"});let C=async(o,t,n)=>{if(m.middlewares)for(let e of m.middlewares)o==="before"&&e.before?await e.before(t):o==="after"&&e.after?await e.after(t,n):o==="onError"&&e.onError&&await e.onError(t,n)},f={...m},a=async o=>{try{await C("before",o);let t=await o.execute(f);return await C("after",o,t),t}catch(t){throw await C("onError",o,t),t}},w=o=>{let t=o||f.tenantId;return{user:{getDetail:()=>{let n=_chunkKYBDTUPKjs.Y.call(void 0, {tenantId:t});return{execute:async()=>a(n)}}},payment:{create:n=>{let e=_chunkKYBDTUPKjs.r.call(void 0, {payment:n,tenantId:t});return{execute:async()=>a(e)}},get:n=>{let e=_chunkKYBDTUPKjs.s.call(void 0, {id:n,tenantId:t});return{execute:async()=>a(e)}},update:(n,e)=>{let s=_chunkKYBDTUPKjs.t.call(void 0, {id:n,payment:e,tenantId:t});return{execute:async()=>a(s)}},delete:n=>{let e=_chunkKYBDTUPKjs.w.call(void 0, {id:n,tenantId:t});return{execute:async()=>a(e)}},list:()=>{let e=_chunkKYBDTUPKjs.u.call(void 0, {tenantId:t}).list(),s=u=>({where:u.where,limit:i=>{let d=u.limit(i);return s(d)},offset:i=>{let d=u.offset(i);return s(d)},all:()=>{let i=u.all();return s(i)},execute:async()=>{let i=u.execute();return a(i)}});return s(e)}},client:{create:n=>{let e=_chunkKYBDTUPKjs.A.call(void 0, {clientData:n,tenantId:t});return{execute:async()=>a(e)}},get:n=>{let e=_chunkKYBDTUPKjs.x.call(void 0, {clientId:n,tenantId:t});return{execute:async()=>a(e)}},update:(n,e)=>{let s=_chunkKYBDTUPKjs.y.call(void 0, {clientId:n,updates:e,tenantId:t});return{execute:async()=>a(s)}},updateDocumentRecord:(n,e)=>{let s=_chunkKYBDTUPKjs.z.call(void 0, {clientId:n,identifierId:e.id,updates:e,tenantId:t});return{execute:async()=>a(s)}},delete:n=>{let e=_chunkKYBDTUPKjs.D.call(void 0, {clientId:n,tenantId:t});return{execute:async()=>a(e)}},for:n=>{let e=parseInt(n,10),u=_chunkKYBDTUPKjs.P.call(void 0, {clientId:e,tenantId:t}).list(),d=_chunkKYBDTUPKjs.U.call(void 0, {clientId:e,tenantId:t}).list(),N=async()=>{let r=u.execute();returnawait _asyncOptionalChain([(await a(r)), 'optionalAccess', async _4 => _4.savingsAccounts])||[]},y=r=>({where:c=>{let l=r.where?r.where(c):r;return{eq:Q=>{let g=l.eq?l.eq(Q):l;return{where:k=>y(g).where(k),list:()=>y(g)}}}},execute:async()=>{let c=r.execute();return a(c)}});return{accounts:{get:r=>({execute:async()=>{let c=_chunkKYBDTUPKjs.M.call(void 0, {id:r,tenantId:t});return a(c)}}),getFromList:r=>({execute:async()=>(await N()).find(l=>l.id===r)||null}),update:(r,c)=>{let l=_chunkKYBDTUPKjs.N.call(void 0, {clientId:e,accountId:r,updates:c,tenantId:t});return{execute:async()=>a(l)}},delete:r=>{let c=_chunkKYBDTUPKjs.O.call(void 0, {accountId:r,tenantId:t});return{execute:async()=>a(c)}},where:r=>y(u).where(r),list:()=>y(u)},recipients:{create:r=>{let c=_chunkKYBDTUPKjs.S.call(void 0, {clientId:e,recipient:r,tenantId:t});return{execute:async()=>a(c)}},get:r=>({execute:async()=>{let c=_chunkKYBDTUPKjs.R.call(void 0, {clientId:e,id:r,tenantId:t});return a(c)}}),update:(r,c)=>{let l=_chunkKYBDTUPKjs.X.call(void 0, {id:r,input:c,tenantId:t});return{execute:async()=>a(l)}},delete:r=>{let c=_chunkKYBDTUPKjs.T.call(void 0, {clientId:e,recipientId:r,tenantId:t});return{execute:async()=>a(c)}},where:r=>y(d).where(r),list:()=>y(d)}}},list:()=>{let e=_chunkKYBDTUPKjs.B.call(void 0, {tenantId:t}).list(),s=u=>({where:u.where,limit:i=>{let d=u.limit(i);return s(d)},offset:i=>{let d=u.offset(i);return s(d)},all:()=>{let i=u.all();return s(i)},execute:async()=>{let i=u.execute();return a(i)}});return s(e)}}}};return{setConfig:o=>{f=o},updateConfig:o=>{let t={...f,...o,axiosConfig:{...f.axiosConfig,...o.axiosConfig,headers:{..._optionalChain([f, 'access', _5 => _5.axiosConfig, 'optionalAccess', _6 => _6.headers]),..._optionalChain([o, 'access', _7 => _7.axiosConfig, 'optionalAccess', _8 => _8.headers])}}},n=x(t);if(n.length>0)throw _chunkKYBDTUPKjs.a.call(void 0, {message:`Invalid configuration: ${n.join(", ")}`,code:"invalid_config"});f=t},resetConfig:()=>{f=m},request:a,tenant:o=>w(o),...w()}};exports.a = te;
@@ -29,4 +29,4 @@
29
29
  }
30
30
  }
31
31
  }
32
- `,dr= exports.X =e=>{let a=qe({command:sn,variables:{id:e.id,input:e.input},operationName:"updateRecipient",tenantId:e.tenantId});return{input:e,metadata:{commandName:"UpdateRecipientGQL",path:"/graphql",method:"POST"},execute:a.execute}};var qe=e=>({input:e,metadata:{commandName:e.operationName||"GraphQL",path:"/graphql",method:"POST"},execute:async a=>{e.tenantId&&(a.tenantId=e.tenantId);let i=await m(a),o=a.graphqlPath||"/graphql";try{let p=typeof e.command=="string"?e.command:_graphql.print.call(void 0, e.command),{data:d}=await i.post(o,{query:p,variables:e.variables,operationName:e.operationName});if(_optionalChain([d, 'access', _26 => _26.errors, 'optionalAccess', _27 => _27.length]))throw y({message:d.errors[0].message,code:"graphql_error",originalError:d.errors[0]});if(!d.data)throw y({message:"No data returned from GraphQL query",code:"graphql_no_data"});return d.data}catch(p){throw p.name==="CommandError"?p:y({message:p.message,code:"graphql_request_failed",originalError:p})}}});var Cr=e=>({input:e||{},metadata:{commandName:"GetUserDetail",path:"/v1/userdetails",method:"GET"},execute:async a=>{_optionalChain([e, 'optionalAccess', _28 => _28.tenantId])&&(a.tenantId=e.tenantId);let i=await m(a);try{return(await i.post("/v1/userdetails")).data}catch(o){u(o)}}});exports.a = y; exports.b = ln; exports.c = u; exports.d = m; exports.e = _; exports.f = S; exports.g = R; exports.h = v; exports.i = L; exports.j = ct; exports.k = In; exports.l = pt; exports.m = mt; exports.n = ut; exports.o = yt; exports.p = gt; exports.q = Rn; exports.r = Bn; exports.s = jn; exports.t = zn; exports.u = $n; exports.v = _n; exports.w = Gn; exports.x = ga; exports.y = fa; exports.z = ba; exports.A = ha; exports.B = Ca; exports.C = Ia; exports.D = Ra; exports.E = Wt; exports.F = Aa; exports.G = Ht; exports.H = Da; exports.I = Yt; exports.J = Ea; exports.K = Xt; exports.L = Pa; exports.M = Fa; exports.N = Ua; exports.O = Ba; exports.P = ja; exports.Q = za; exports.R = ar; exports.S = rr; exports.T = ir; exports.U = or; exports.V = sr; exports.W = qe; exports.X = dr; exports.Y = Cr;
32
+ `,dr= exports.X =e=>{let a=qe({command:sn,variables:{id:e.id,input:e.input},operationName:"updateRecipient",tenantId:e.tenantId});return{input:e,metadata:{commandName:"UpdateRecipientGQL",path:"/graphql",method:"POST"},execute:a.execute}};var qe=e=>({input:e,metadata:{commandName:e.operationName||"GraphQL",path:"/graphql",method:"POST"},execute:async a=>{e.tenantId&&(a.tenantId=e.tenantId);let i=await m(a),o=a.graphqlPath||"/graphql";try{let p=typeof e.command=="string"?e.command:_graphql.print.call(void 0, e.command),{data:d}=await i.post(o,{query:p,variables:e.variables,operationName:e.operationName});if(_optionalChain([d, 'access', _26 => _26.errors, 'optionalAccess', _27 => _27.length]))throw y({message:d.errors[0].message,code:"graphql_error",originalError:d.errors[0]});if(!d.data)throw y({message:"No data returned from GraphQL query",code:"graphql_no_data"});return d.data}catch(p){throw p.name==="CommandError"?p:y({message:p.message,code:"graphql_request_failed",originalError:p})}}});var Cr=e=>({input:e||{},metadata:{commandName:"GetUserDetail",path:"/v1/userdetails",method:"GET"},execute:async a=>{_optionalChain([e, 'optionalAccess', _28 => _28.tenantId])&&(a.tenantId=e.tenantId);let i=await m(a);try{return(await i.get("/v1/userdetails")).data}catch(o){u(o)}}});exports.a = y; exports.b = ln; exports.c = u; exports.d = m; exports.e = _; exports.f = S; exports.g = R; exports.h = v; exports.i = L; exports.j = ct; exports.k = In; exports.l = pt; exports.m = mt; exports.n = ut; exports.o = yt; exports.p = gt; exports.q = Rn; exports.r = Bn; exports.s = jn; exports.t = zn; exports.u = $n; exports.v = _n; exports.w = Gn; exports.x = ga; exports.y = fa; exports.z = ba; exports.A = ha; exports.B = Ca; exports.C = Ia; exports.D = Ra; exports.E = Wt; exports.F = Aa; exports.G = Ht; exports.H = Da; exports.I = Yt; exports.J = Ea; exports.K = Xt; exports.L = Pa; exports.M = Fa; exports.N = Ua; exports.O = Ba; exports.P = ja; exports.Q = za; exports.R = ar; exports.S = rr; exports.T = ir; exports.U = or; exports.V = sr; exports.W = qe; exports.X = dr; exports.Y = Cr;
@@ -1 +1 @@
1
- import{c as a,d as i}from"./chunk-PEZBB7Q7.mjs";var C=t=>{let e=t.skipNotification&&"?skipNotification=true"||"",n=t.card.cardType==="CREDIT"?"creditcards":"cards",o={...t.payload,query:e,flag:t.flag};return{input:t,metadata:{commandName:"SendAuthorizationToCore",path:`/${n}/${t.card.internalCardId}/authorization${e}`,method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let s=await i(r);try{return await s.post(`/${n}/${t.card.internalCardId}/authorization${e}`,o)}catch(d){a(d)}}}},I=t=>({input:t,metadata:{commandName:"UpdateCardID",path:`/clients/${t.clientId}`,method:"PUT"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let n=await i(e);try{await n.put(`/clients/${t.clientId}`,{businessCardIDURL:t.businessCardIDURL,businessCardIDQRCode:t.businessCardIDQRCode})}catch(o){a(o)}}});export{C as a,I as b};
1
+ import{c as a,d as i}from"./chunk-X5UU2EKK.mjs";var C=t=>{let e=t.skipNotification&&"?skipNotification=true"||"",n=t.card.cardType==="CREDIT"?"creditcards":"cards",o={...t.payload,query:e,flag:t.flag};return{input:t,metadata:{commandName:"SendAuthorizationToCore",path:`/${n}/${t.card.internalCardId}/authorization${e}`,method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let s=await i(r);try{return await s.post(`/${n}/${t.card.internalCardId}/authorization${e}`,o)}catch(d){a(d)}}}},I=t=>({input:t,metadata:{commandName:"UpdateCardID",path:`/clients/${t.clientId}`,method:"PUT"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let n=await i(e);try{await n.put(`/clients/${t.clientId}`,{businessCardIDURL:t.businessCardIDURL,businessCardIDQRCode:t.businessCardIDQRCode})}catch(o){a(o)}}});export{C as a,I as b};
@@ -29,4 +29,4 @@ import Ue from"axios";var y=({message:e,statusCode:a,code:i,requestId:o,original
29
29
  }
30
30
  }
31
31
  }
32
- `,dr=e=>{let a=qe({command:sn,variables:{id:e.id,input:e.input},operationName:"updateRecipient",tenantId:e.tenantId});return{input:e,metadata:{commandName:"UpdateRecipientGQL",path:"/graphql",method:"POST"},execute:a.execute}};var qe=e=>({input:e,metadata:{commandName:e.operationName||"GraphQL",path:"/graphql",method:"POST"},execute:async a=>{e.tenantId&&(a.tenantId=e.tenantId);let i=await m(a),o=a.graphqlPath||"/graphql";try{let p=typeof e.command=="string"?e.command:cn(e.command),{data:d}=await i.post(o,{query:p,variables:e.variables,operationName:e.operationName});if(d.errors?.length)throw y({message:d.errors[0].message,code:"graphql_error",originalError:d.errors[0]});if(!d.data)throw y({message:"No data returned from GraphQL query",code:"graphql_no_data"});return d.data}catch(p){throw p.name==="CommandError"?p:y({message:p.message,code:"graphql_request_failed",originalError:p})}}});var Cr=e=>({input:e||{},metadata:{commandName:"GetUserDetail",path:"/v1/userdetails",method:"GET"},execute:async a=>{e?.tenantId&&(a.tenantId=e.tenantId);let i=await m(a);try{return(await i.post("/v1/userdetails")).data}catch(o){u(o)}}});export{y as a,ln as b,u as c,m as d,_ as e,S as f,R as g,v as h,L as i,ct as j,In as k,pt as l,mt as m,ut as n,yt as o,gt as p,Rn as q,Bn as r,jn as s,zn as t,$n as u,_n as v,Gn as w,ga as x,fa as y,ba as z,ha as A,Ca as B,Ia as C,Ra as D,Wt as E,Aa as F,Ht as G,Da as H,Yt as I,Ea as J,Xt as K,Pa as L,Fa as M,Ua as N,Ba as O,ja as P,za as Q,ar as R,rr as S,ir as T,or as U,sr as V,qe as W,dr as X,Cr as Y};
32
+ `,dr=e=>{let a=qe({command:sn,variables:{id:e.id,input:e.input},operationName:"updateRecipient",tenantId:e.tenantId});return{input:e,metadata:{commandName:"UpdateRecipientGQL",path:"/graphql",method:"POST"},execute:a.execute}};var qe=e=>({input:e,metadata:{commandName:e.operationName||"GraphQL",path:"/graphql",method:"POST"},execute:async a=>{e.tenantId&&(a.tenantId=e.tenantId);let i=await m(a),o=a.graphqlPath||"/graphql";try{let p=typeof e.command=="string"?e.command:cn(e.command),{data:d}=await i.post(o,{query:p,variables:e.variables,operationName:e.operationName});if(d.errors?.length)throw y({message:d.errors[0].message,code:"graphql_error",originalError:d.errors[0]});if(!d.data)throw y({message:"No data returned from GraphQL query",code:"graphql_no_data"});return d.data}catch(p){throw p.name==="CommandError"?p:y({message:p.message,code:"graphql_request_failed",originalError:p})}}});var Cr=e=>({input:e||{},metadata:{commandName:"GetUserDetail",path:"/v1/userdetails",method:"GET"},execute:async a=>{e?.tenantId&&(a.tenantId=e.tenantId);let i=await m(a);try{return(await i.get("/v1/userdetails")).data}catch(o){u(o)}}});export{y as a,ln as b,u as c,m as d,_ as e,S as f,R as g,v as h,L as i,ct as j,In as k,pt as l,mt as m,ut as n,yt as o,gt as p,Rn as q,Bn as r,jn as s,zn as t,$n as u,_n as v,Gn as w,ga as x,fa as y,ba as z,ha as A,Ca as B,Ia as C,Ra as D,Wt as E,Aa as F,Ht as G,Da as H,Yt as I,Ea as J,Xt as K,Pa as L,Fa as M,Ua as N,Ba as O,ja as P,za as Q,ar as R,rr as S,ir as T,or as U,sr as V,qe as W,dr as X,Cr as Y};
@@ -1,4 +1,4 @@
1
- import { C as Config, b as CreatePaymentInput, U as UpdatePaymentInput, D as CreateClientRequest, E as UpdateClientRequest, F as ProcessOutput, G as UpdateClientIdentifierRequest, z as UpdateAccountRequest, H as CreateRecipientRequest, I as UpdateRecipientRequest, R as Recipient, a as Command } from '../client-CHyhpYj2.mjs';
1
+ import { C as Config, b as CreatePaymentInput, U as UpdatePaymentInput, D as CreateClientRequest, E as UpdateClientRequest, F as ProcessOutput, G as UpdateClientIdentifierRequest, z as UpdateAccountRequest, H as CreateRecipientRequest, I as UpdateRecipientRequest, R as Recipient, a as Command } from '../client-Cx8h8Q3_.mjs';
2
2
  import * as z from 'zod';
3
3
  import 'graphql';
4
4
  import 'axios';
@@ -7,12 +7,12 @@ declare const createClient: (initialConfig: Config) => {
7
7
  user: {
8
8
  getDetail: () => {
9
9
  execute: () => Promise<{
10
- officeId: number;
11
- officeName: string;
12
10
  username: string;
13
11
  userId: number;
14
12
  accessToken: string;
15
13
  authenticated: boolean;
14
+ officeId: number;
15
+ officeName: string;
16
16
  roles: {
17
17
  name: string;
18
18
  id: number;
@@ -644,12 +644,12 @@ declare const createClient: (initialConfig: Config) => {
644
644
  user: {
645
645
  getDetail: () => {
646
646
  execute: () => Promise<{
647
- officeId: number;
648
- officeName: string;
649
647
  username: string;
650
648
  userId: number;
651
649
  accessToken: string;
652
650
  authenticated: boolean;
651
+ officeId: number;
652
+ officeName: string;
653
653
  roles: {
654
654
  name: string;
655
655
  id: number;
@@ -1,4 +1,4 @@
1
- import { C as Config, b as CreatePaymentInput, U as UpdatePaymentInput, D as CreateClientRequest, E as UpdateClientRequest, F as ProcessOutput, G as UpdateClientIdentifierRequest, z as UpdateAccountRequest, H as CreateRecipientRequest, I as UpdateRecipientRequest, R as Recipient, a as Command } from '../client-CHyhpYj2.js';
1
+ import { C as Config, b as CreatePaymentInput, U as UpdatePaymentInput, D as CreateClientRequest, E as UpdateClientRequest, F as ProcessOutput, G as UpdateClientIdentifierRequest, z as UpdateAccountRequest, H as CreateRecipientRequest, I as UpdateRecipientRequest, R as Recipient, a as Command } from '../client-Cx8h8Q3_.js';
2
2
  import * as z from 'zod';
3
3
  import 'graphql';
4
4
  import 'axios';
@@ -7,12 +7,12 @@ declare const createClient: (initialConfig: Config) => {
7
7
  user: {
8
8
  getDetail: () => {
9
9
  execute: () => Promise<{
10
- officeId: number;
11
- officeName: string;
12
10
  username: string;
13
11
  userId: number;
14
12
  accessToken: string;
15
13
  authenticated: boolean;
14
+ officeId: number;
15
+ officeName: string;
16
16
  roles: {
17
17
  name: string;
18
18
  id: number;
@@ -644,12 +644,12 @@ declare const createClient: (initialConfig: Config) => {
644
644
  user: {
645
645
  getDetail: () => {
646
646
  execute: () => Promise<{
647
- officeId: number;
648
- officeName: string;
649
647
  username: string;
650
648
  userId: number;
651
649
  accessToken: string;
652
650
  authenticated: boolean;
651
+ officeId: number;
652
+ officeName: string;
653
653
  roles: {
654
654
  name: string;
655
655
  id: number;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHUUKIV67js = require('../chunk-HUUKIV67.js');require('../chunk-NKXRKPEC.js');exports.createClient = _chunkHUUKIV67js.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEZM3WQ4Gjs = require('../chunk-EZM3WQ4G.js');require('../chunk-KYBDTUPK.js');exports.createClient = _chunkEZM3WQ4Gjs.a;
@@ -1 +1 @@
1
- import{a}from"../chunk-ICLPMQUX.mjs";import"../chunk-PEZBB7Q7.mjs";export{a as createClient};
1
+ import{a}from"../chunk-EFJCWTJG.mjs";import"../chunk-X5UU2EKK.mjs";export{a as createClient};
@@ -1,5 +1,5 @@
1
- export { f as CreateClient, C as CreatePayment, k as DeleteAccount, D as DeleteClient, n as DeletePayment, h as GetAccount, i as GetAccountsOfClient, c as GetClient, g as GetClients, G as GetPayment, a as GetPayments, m as GetUserDetail, l as GraphQL, L as ListAccountsOfClient, S as SendAuthorizationToCore, j as UpdateAccount, b as UpdateCardID, d as UpdateClient, e as UpdateClientIdentifier, U as UpdatePayment } from '../user-D60hmfvO.mjs';
2
- import { I as UpdateRecipientRequest, a as Command, R as Recipient, J as PaymentRail, F as ProcessOutput, K as MarkAsReturnInput, T as Transfer, N as GetTransferInput, O as UpdateTraceNumbersInput, Q as CreateTransferInput, V as CreateTransferOutput, H as CreateRecipientRequest, W as RecipientRequest, X as Recipients } from '../client-CHyhpYj2.mjs';
1
+ export { f as CreateClient, C as CreatePayment, k as DeleteAccount, D as DeleteClient, q as DeletePayment, h as GetAccount, i as GetAccountsOfClient, c as GetClient, g as GetClients, G as GetPayment, a as GetPayments, m as GetUserDetail, l as GraphQL, L as ListAccountsOfClient, S as SendAuthorizationToCore, j as UpdateAccount, b as UpdateCardID, d as UpdateClient, e as UpdateClientIdentifier, U as UpdatePayment } from '../user-hULJGPTk.mjs';
2
+ import { I as UpdateRecipientRequest, a as Command, R as Recipient, J as PaymentRail, F as ProcessOutput, K as MarkAsReturnInput, T as Transfer, N as GetTransferInput, O as UpdateTraceNumbersInput, Q as CreateTransferInput, V as CreateTransferOutput, H as CreateRecipientRequest, W as RecipientRequest, X as Recipients } from '../client-Cx8h8Q3_.mjs';
3
3
  import 'zod';
4
4
  import 'graphql';
5
5
  import 'axios';
@@ -1,5 +1,5 @@
1
- export { f as CreateClient, C as CreatePayment, k as DeleteAccount, D as DeleteClient, n as DeletePayment, h as GetAccount, i as GetAccountsOfClient, c as GetClient, g as GetClients, G as GetPayment, a as GetPayments, m as GetUserDetail, l as GraphQL, L as ListAccountsOfClient, S as SendAuthorizationToCore, j as UpdateAccount, b as UpdateCardID, d as UpdateClient, e as UpdateClientIdentifier, U as UpdatePayment } from '../user-DgjDSbhD.js';
2
- import { I as UpdateRecipientRequest, a as Command, R as Recipient, J as PaymentRail, F as ProcessOutput, K as MarkAsReturnInput, T as Transfer, N as GetTransferInput, O as UpdateTraceNumbersInput, Q as CreateTransferInput, V as CreateTransferOutput, H as CreateRecipientRequest, W as RecipientRequest, X as Recipients } from '../client-CHyhpYj2.js';
1
+ export { f as CreateClient, C as CreatePayment, k as DeleteAccount, D as DeleteClient, q as DeletePayment, h as GetAccount, i as GetAccountsOfClient, c as GetClient, g as GetClients, G as GetPayment, a as GetPayments, m as GetUserDetail, l as GraphQL, L as ListAccountsOfClient, S as SendAuthorizationToCore, j as UpdateAccount, b as UpdateCardID, d as UpdateClient, e as UpdateClientIdentifier, U as UpdatePayment } from '../user-B5Xv2ZQp.js';
2
+ import { I as UpdateRecipientRequest, a as Command, R as Recipient, J as PaymentRail, F as ProcessOutput, K as MarkAsReturnInput, T as Transfer, N as GetTransferInput, O as UpdateTraceNumbersInput, Q as CreateTransferInput, V as CreateTransferOutput, H as CreateRecipientRequest, W as RecipientRequest, X as Recipients } from '../client-Cx8h8Q3_.js';
3
3
  import 'zod';
4
4
  import 'graphql';
5
5
  import 'axios';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkZJN6HYOWjs = require('../chunk-ZJN6HYOW.js');var _chunkNKXRKPECjs = require('../chunk-NKXRKPEC.js');var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);var _momenttimezone = require('moment-timezone'); var _momenttimezone2 = _interopRequireDefault(_momenttimezone);var p=(t=new Date,e=!1,r=_nullishCoalesce(process.env.TIMEZONE, () => ("Europe/Berlin")))=>_momenttimezone2.default.call(void 0, t.getTime()).tz(r).utc(!e);var z=t=>({input:t,metadata:{commandName:"CreateTransfer",path:"/v1/transfers",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkNKXRKPECjs.d.call(void 0, e);try{return(await r.post("/v1/transfers",t.transfer)).data}catch(n){_chunkNKXRKPECjs.c.call(void 0, n)}}}),B= exports.GetTransfer =t=>({input:t,metadata:{commandName:"GetTransfer",path:`/v1/transfers/${t.id}`,method:"GET"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkNKXRKPECjs.d.call(void 0, e);try{return(await r.get(`/v1/transfers/${t.id}`)).data}catch(n){_chunkNKXRKPECjs.c.call(void 0, n)}}}),H= exports.GetTransfers =t=>{let e={paymentType:t.paymentType||"ACH",status:t.transferStatus||"EXECUTION_SCHEDULED",toExecuteDate:t.executedAt||p().toISOString(!0).slice(0,10),locale:"en",dateFormat:"yyyy-MM-dd",associateClientData:!0,originatedBy:"us",accountType:t.accountType};return{input:t,metadata:{commandName:"GetTransfers",path:"/v1/transfers",method:"GET"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await _chunkNKXRKPECjs.d.call(void 0, r),a=[],u=t.queryLimit||200,c=0,i=0,I={...e,limit:u,offset:c};try{do{let d=await n.get("/v1/transfers",{params:I}),{totalFilteredRecords:f,pageItems:C}=d.data;a.push(...C),i=f,c+=u}while(c<i);return a}catch(d){_chunkNKXRKPECjs.c.call(void 0, d)}}}},Q= exports.MarkAsSuccess =t=>{let e={...t,paymentType:t.paymentType||"ACH"};return{input:t,metadata:{commandName:"MarkAsSuccess",path:"/v1/external-transfers?command=MARK_AS_SUCCESS",method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await _chunkNKXRKPECjs.d.call(void 0, r);try{return(await n.post("/v1/external-transfers?command=MARK_AS_SUCCESS",e)).data}catch(a){_chunkNKXRKPECjs.c.call(void 0, a)}}}},Z= exports.MarkAsProcessing =t=>({input:t,metadata:{commandName:"MarkAsProcessing",path:"/v1/external-transfers?command=MARK_AS_PROCESSING",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkNKXRKPECjs.d.call(void 0, e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_PROCESSING",t)).data}catch(n){_chunkNKXRKPECjs.c.call(void 0, n)}}}),X= exports.MarkAsReturned =t=>({input:t,metadata:{commandName:"MarkAsReturned",path:"/v1/external-transfers?command=MARK_AS_RETURN",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkNKXRKPECjs.d.call(void 0, e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_RETURN",{...t})).data}catch(n){_chunkNKXRKPECjs.c.call(void 0, n)}}}),j= exports.LogFailTransfer =t=>{let e={...t.payload};return{input:t,metadata:{commandName:"LogFailTransfer",path:"/v1/external-transfers?command=LOG_FAILURE",method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await _chunkNKXRKPECjs.d.call(void 0, r);try{return(await n.post("/v1/external-transfers?command=LOG_FAILURE",e)).data}catch(a){throw _axios2.default.isAxiosError(a)?_chunkNKXRKPECjs.a.call(void 0, {message:"LogFailTransfer command failed",statusCode:_optionalChain([a, 'access', _2 => _2.response, 'optionalAccess', _3 => _3.status]),code:a.code,requestId:_optionalChain([a, 'access', _4 => _4.response, 'optionalAccess', _5 => _5.headers, 'optionalAccess', _6 => _6["x-request-id"]]),originalError:a}):a}}}},J= exports.MarkAsFail =t=>({input:t,metadata:{commandName:"MarkAsFail",path:"/v1/external-transfers?command=MARK_AS_FAIL",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkNKXRKPECjs.d.call(void 0, e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_FAIL",t)).data}catch(n){_chunkNKXRKPECjs.c.call(void 0, n)}}}),V= exports.UpdateTraceNumber =t=>{let e={traceNumbers:t.traceNumbers};return{input:t,metadata:{commandName:"UpdateTraceNumber",path:`/v1/external-transfers/${t.externalId}`,method:"PUT"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await _chunkNKXRKPECjs.d.call(void 0, r);try{return(await n.put(`/v1/external-transfers/${t.externalId}`,e)).data}catch(a){_chunkNKXRKPECjs.c.call(void 0, a)}}}};var W=t=>({input:t,metadata:{commandName:t.commandName||"CustomUpdate",path:t.url,method:"PUT"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkNKXRKPECjs.d.call(void 0, e);try{return(await r.put(t.url,{...t.updates},{params:t.params})).data}catch(n){_chunkNKXRKPECjs.c.call(void 0, n)}}}),Y= exports.CustomCreate =t=>({input:t,metadata:{commandName:t.commandName||"CustomCreate",path:t.url,method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkNKXRKPECjs.d.call(void 0, e);try{return(await r.post(t.url,t.data,{params:t.params})).data}catch(n){_chunkNKXRKPECjs.c.call(void 0, n)}}}),tt= exports.CustomGet =t=>({input:t,metadata:{commandName:t.commandName||"CustomGet",path:t.url,method:"GET"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkNKXRKPECjs.d.call(void 0, e);try{return(await r.get(t.url,{params:t.params})).data}catch(n){_chunkNKXRKPECjs.c.call(void 0, n)}}});exports.CreateClient = _chunkNKXRKPECjs.A; exports.CreatePayment = _chunkNKXRKPECjs.r; exports.CreateRecipient = _chunkNKXRKPECjs.S; exports.CreateTransfer = z; exports.CustomCreate = Y; exports.CustomGet = tt; exports.CustomUpdate = W; exports.DeleteAccount = _chunkNKXRKPECjs.O; exports.DeleteClient = _chunkNKXRKPECjs.D; exports.DeletePayment = _chunkNKXRKPECjs.w; exports.DeleteRecipient = _chunkNKXRKPECjs.T; exports.GetAccount = _chunkNKXRKPECjs.M; exports.GetAccountsOfClient = _chunkNKXRKPECjs.Q; exports.GetClient = _chunkNKXRKPECjs.x; exports.GetClients = _chunkNKXRKPECjs.C; exports.GetPayment = _chunkNKXRKPECjs.s; exports.GetPayments = _chunkNKXRKPECjs.v; exports.GetRecipient = _chunkNKXRKPECjs.R; exports.GetRecipients = _chunkNKXRKPECjs.V; exports.GetTransfer = B; exports.GetTransfers = H; exports.GetUserDetail = _chunkNKXRKPECjs.Y; exports.GraphQL = _chunkNKXRKPECjs.W; exports.ListAccountsOfClient = _chunkNKXRKPECjs.P; exports.LogFailTransfer = j; exports.MarkAsFail = J; exports.MarkAsProcessing = Z; exports.MarkAsReturned = X; exports.MarkAsSuccess = Q; exports.SendAuthorizationToCore = _chunkZJN6HYOWjs.a; exports.UpdateAccount = _chunkNKXRKPECjs.N; exports.UpdateCardID = _chunkZJN6HYOWjs.b; exports.UpdateClient = _chunkNKXRKPECjs.y; exports.UpdateClientIdentifier = _chunkNKXRKPECjs.z; exports.UpdatePayment = _chunkNKXRKPECjs.t; exports.UpdateRecipient = _chunkNKXRKPECjs.X; exports.UpdateTraceNumber = V;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk62FPM434js = require('../chunk-62FPM434.js');var _chunkKYBDTUPKjs = require('../chunk-KYBDTUPK.js');var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);var _momenttimezone = require('moment-timezone'); var _momenttimezone2 = _interopRequireDefault(_momenttimezone);var p=(t=new Date,e=!1,r=_nullishCoalesce(process.env.TIMEZONE, () => ("Europe/Berlin")))=>_momenttimezone2.default.call(void 0, t.getTime()).tz(r).utc(!e);var z=t=>({input:t,metadata:{commandName:"CreateTransfer",path:"/v1/transfers",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkKYBDTUPKjs.d.call(void 0, e);try{return(await r.post("/v1/transfers",t.transfer)).data}catch(n){_chunkKYBDTUPKjs.c.call(void 0, n)}}}),B= exports.GetTransfer =t=>({input:t,metadata:{commandName:"GetTransfer",path:`/v1/transfers/${t.id}`,method:"GET"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkKYBDTUPKjs.d.call(void 0, e);try{return(await r.get(`/v1/transfers/${t.id}`)).data}catch(n){_chunkKYBDTUPKjs.c.call(void 0, n)}}}),H= exports.GetTransfers =t=>{let e={paymentType:t.paymentType||"ACH",status:t.transferStatus||"EXECUTION_SCHEDULED",toExecuteDate:t.executedAt||p().toISOString(!0).slice(0,10),locale:"en",dateFormat:"yyyy-MM-dd",associateClientData:!0,originatedBy:"us",accountType:t.accountType};return{input:t,metadata:{commandName:"GetTransfers",path:"/v1/transfers",method:"GET"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await _chunkKYBDTUPKjs.d.call(void 0, r),a=[],u=t.queryLimit||200,c=0,i=0,I={...e,limit:u,offset:c};try{do{let d=await n.get("/v1/transfers",{params:I}),{totalFilteredRecords:f,pageItems:C}=d.data;a.push(...C),i=f,c+=u}while(c<i);return a}catch(d){_chunkKYBDTUPKjs.c.call(void 0, d)}}}},Q= exports.MarkAsSuccess =t=>{let e={...t,paymentType:t.paymentType||"ACH"};return{input:t,metadata:{commandName:"MarkAsSuccess",path:"/v1/external-transfers?command=MARK_AS_SUCCESS",method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await _chunkKYBDTUPKjs.d.call(void 0, r);try{return(await n.post("/v1/external-transfers?command=MARK_AS_SUCCESS",e)).data}catch(a){_chunkKYBDTUPKjs.c.call(void 0, a)}}}},Z= exports.MarkAsProcessing =t=>({input:t,metadata:{commandName:"MarkAsProcessing",path:"/v1/external-transfers?command=MARK_AS_PROCESSING",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkKYBDTUPKjs.d.call(void 0, e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_PROCESSING",t)).data}catch(n){_chunkKYBDTUPKjs.c.call(void 0, n)}}}),X= exports.MarkAsReturned =t=>({input:t,metadata:{commandName:"MarkAsReturned",path:"/v1/external-transfers?command=MARK_AS_RETURN",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkKYBDTUPKjs.d.call(void 0, e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_RETURN",{...t})).data}catch(n){_chunkKYBDTUPKjs.c.call(void 0, n)}}}),j= exports.LogFailTransfer =t=>{let e={...t.payload};return{input:t,metadata:{commandName:"LogFailTransfer",path:"/v1/external-transfers?command=LOG_FAILURE",method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await _chunkKYBDTUPKjs.d.call(void 0, r);try{return(await n.post("/v1/external-transfers?command=LOG_FAILURE",e)).data}catch(a){throw _axios2.default.isAxiosError(a)?_chunkKYBDTUPKjs.a.call(void 0, {message:"LogFailTransfer command failed",statusCode:_optionalChain([a, 'access', _2 => _2.response, 'optionalAccess', _3 => _3.status]),code:a.code,requestId:_optionalChain([a, 'access', _4 => _4.response, 'optionalAccess', _5 => _5.headers, 'optionalAccess', _6 => _6["x-request-id"]]),originalError:a}):a}}}},J= exports.MarkAsFail =t=>({input:t,metadata:{commandName:"MarkAsFail",path:"/v1/external-transfers?command=MARK_AS_FAIL",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkKYBDTUPKjs.d.call(void 0, e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_FAIL",t)).data}catch(n){_chunkKYBDTUPKjs.c.call(void 0, n)}}}),V= exports.UpdateTraceNumber =t=>{let e={traceNumbers:t.traceNumbers};return{input:t,metadata:{commandName:"UpdateTraceNumber",path:`/v1/external-transfers/${t.externalId}`,method:"PUT"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await _chunkKYBDTUPKjs.d.call(void 0, r);try{return(await n.put(`/v1/external-transfers/${t.externalId}`,e)).data}catch(a){_chunkKYBDTUPKjs.c.call(void 0, a)}}}};var W=t=>({input:t,metadata:{commandName:t.commandName||"CustomUpdate",path:t.url,method:"PUT"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkKYBDTUPKjs.d.call(void 0, e);try{return(await r.put(t.url,{...t.updates},{params:t.params})).data}catch(n){_chunkKYBDTUPKjs.c.call(void 0, n)}}}),Y= exports.CustomCreate =t=>({input:t,metadata:{commandName:t.commandName||"CustomCreate",path:t.url,method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkKYBDTUPKjs.d.call(void 0, e);try{return(await r.post(t.url,t.data,{params:t.params})).data}catch(n){_chunkKYBDTUPKjs.c.call(void 0, n)}}}),tt= exports.CustomGet =t=>({input:t,metadata:{commandName:t.commandName||"CustomGet",path:t.url,method:"GET"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await _chunkKYBDTUPKjs.d.call(void 0, e);try{return(await r.get(t.url,{params:t.params})).data}catch(n){_chunkKYBDTUPKjs.c.call(void 0, n)}}});exports.CreateClient = _chunkKYBDTUPKjs.A; exports.CreatePayment = _chunkKYBDTUPKjs.r; exports.CreateRecipient = _chunkKYBDTUPKjs.S; exports.CreateTransfer = z; exports.CustomCreate = Y; exports.CustomGet = tt; exports.CustomUpdate = W; exports.DeleteAccount = _chunkKYBDTUPKjs.O; exports.DeleteClient = _chunkKYBDTUPKjs.D; exports.DeletePayment = _chunkKYBDTUPKjs.w; exports.DeleteRecipient = _chunkKYBDTUPKjs.T; exports.GetAccount = _chunkKYBDTUPKjs.M; exports.GetAccountsOfClient = _chunkKYBDTUPKjs.Q; exports.GetClient = _chunkKYBDTUPKjs.x; exports.GetClients = _chunkKYBDTUPKjs.C; exports.GetPayment = _chunkKYBDTUPKjs.s; exports.GetPayments = _chunkKYBDTUPKjs.v; exports.GetRecipient = _chunkKYBDTUPKjs.R; exports.GetRecipients = _chunkKYBDTUPKjs.V; exports.GetTransfer = B; exports.GetTransfers = H; exports.GetUserDetail = _chunkKYBDTUPKjs.Y; exports.GraphQL = _chunkKYBDTUPKjs.W; exports.ListAccountsOfClient = _chunkKYBDTUPKjs.P; exports.LogFailTransfer = j; exports.MarkAsFail = J; exports.MarkAsProcessing = Z; exports.MarkAsReturned = X; exports.MarkAsSuccess = Q; exports.SendAuthorizationToCore = _chunk62FPM434js.a; exports.UpdateAccount = _chunkKYBDTUPKjs.N; exports.UpdateCardID = _chunk62FPM434js.b; exports.UpdateClient = _chunkKYBDTUPKjs.y; exports.UpdateClientIdentifier = _chunkKYBDTUPKjs.z; exports.UpdatePayment = _chunkKYBDTUPKjs.t; exports.UpdateRecipient = _chunkKYBDTUPKjs.X; exports.UpdateTraceNumber = V;
@@ -1 +1 @@
1
- import{a as F,b as K}from"../chunk-VKDW7GQQ.mjs";import{A as R,C as O,D as S,M as G,N as w,O as N,P as U,Q as M,R as E,S as v,T as _,V as D,W as b,X as k,Y as L,a as m,c as o,d as s,r as l,s as x,t as y,v as T,w as g,x as h,y as A,z as P}from"../chunk-PEZBB7Q7.mjs";import $ from"axios";import q from"moment-timezone";var p=(t=new Date,e=!1,r=process.env.TIMEZONE??"Europe/Berlin")=>q(t.getTime()).tz(r).utc(!e);var z=t=>({input:t,metadata:{commandName:"CreateTransfer",path:"/v1/transfers",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post("/v1/transfers",t.transfer)).data}catch(n){o(n)}}}),B=t=>({input:t,metadata:{commandName:"GetTransfer",path:`/v1/transfers/${t.id}`,method:"GET"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.get(`/v1/transfers/${t.id}`)).data}catch(n){o(n)}}}),H=t=>{let e={paymentType:t.paymentType||"ACH",status:t.transferStatus||"EXECUTION_SCHEDULED",toExecuteDate:t.executedAt||p().toISOString(!0).slice(0,10),locale:"en",dateFormat:"yyyy-MM-dd",associateClientData:!0,originatedBy:"us",accountType:t.accountType};return{input:t,metadata:{commandName:"GetTransfers",path:"/v1/transfers",method:"GET"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await s(r),a=[],u=t.queryLimit||200,c=0,i=0,I={...e,limit:u,offset:c};try{do{let d=await n.get("/v1/transfers",{params:I}),{totalFilteredRecords:f,pageItems:C}=d.data;a.push(...C),i=f,c+=u}while(c<i);return a}catch(d){o(d)}}}},Q=t=>{let e={...t,paymentType:t.paymentType||"ACH"};return{input:t,metadata:{commandName:"MarkAsSuccess",path:"/v1/external-transfers?command=MARK_AS_SUCCESS",method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await s(r);try{return(await n.post("/v1/external-transfers?command=MARK_AS_SUCCESS",e)).data}catch(a){o(a)}}}},Z=t=>({input:t,metadata:{commandName:"MarkAsProcessing",path:"/v1/external-transfers?command=MARK_AS_PROCESSING",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_PROCESSING",t)).data}catch(n){o(n)}}}),X=t=>({input:t,metadata:{commandName:"MarkAsReturned",path:"/v1/external-transfers?command=MARK_AS_RETURN",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_RETURN",{...t})).data}catch(n){o(n)}}}),j=t=>{let e={...t.payload};return{input:t,metadata:{commandName:"LogFailTransfer",path:"/v1/external-transfers?command=LOG_FAILURE",method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await s(r);try{return(await n.post("/v1/external-transfers?command=LOG_FAILURE",e)).data}catch(a){throw $.isAxiosError(a)?m({message:"LogFailTransfer command failed",statusCode:a.response?.status,code:a.code,requestId:a.response?.headers?.["x-request-id"],originalError:a}):a}}}},J=t=>({input:t,metadata:{commandName:"MarkAsFail",path:"/v1/external-transfers?command=MARK_AS_FAIL",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_FAIL",t)).data}catch(n){o(n)}}}),V=t=>{let e={traceNumbers:t.traceNumbers};return{input:t,metadata:{commandName:"UpdateTraceNumber",path:`/v1/external-transfers/${t.externalId}`,method:"PUT"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await s(r);try{return(await n.put(`/v1/external-transfers/${t.externalId}`,e)).data}catch(a){o(a)}}}};var W=t=>({input:t,metadata:{commandName:t.commandName||"CustomUpdate",path:t.url,method:"PUT"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.put(t.url,{...t.updates},{params:t.params})).data}catch(n){o(n)}}}),Y=t=>({input:t,metadata:{commandName:t.commandName||"CustomCreate",path:t.url,method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post(t.url,t.data,{params:t.params})).data}catch(n){o(n)}}}),tt=t=>({input:t,metadata:{commandName:t.commandName||"CustomGet",path:t.url,method:"GET"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.get(t.url,{params:t.params})).data}catch(n){o(n)}}});export{R as CreateClient,l as CreatePayment,v as CreateRecipient,z as CreateTransfer,Y as CustomCreate,tt as CustomGet,W as CustomUpdate,N as DeleteAccount,S as DeleteClient,g as DeletePayment,_ as DeleteRecipient,G as GetAccount,M as GetAccountsOfClient,h as GetClient,O as GetClients,x as GetPayment,T as GetPayments,E as GetRecipient,D as GetRecipients,B as GetTransfer,H as GetTransfers,L as GetUserDetail,b as GraphQL,U as ListAccountsOfClient,j as LogFailTransfer,J as MarkAsFail,Z as MarkAsProcessing,X as MarkAsReturned,Q as MarkAsSuccess,F as SendAuthorizationToCore,w as UpdateAccount,K as UpdateCardID,A as UpdateClient,P as UpdateClientIdentifier,y as UpdatePayment,k as UpdateRecipient,V as UpdateTraceNumber};
1
+ import{a as F,b as K}from"../chunk-TUGSCLOB.mjs";import{A as R,C as O,D as S,M as G,N as w,O as N,P as U,Q as M,R as E,S as v,T as _,V as D,W as b,X as k,Y as L,a as m,c as o,d as s,r as l,s as x,t as y,v as T,w as g,x as h,y as A,z as P}from"../chunk-X5UU2EKK.mjs";import $ from"axios";import q from"moment-timezone";var p=(t=new Date,e=!1,r=process.env.TIMEZONE??"Europe/Berlin")=>q(t.getTime()).tz(r).utc(!e);var z=t=>({input:t,metadata:{commandName:"CreateTransfer",path:"/v1/transfers",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post("/v1/transfers",t.transfer)).data}catch(n){o(n)}}}),B=t=>({input:t,metadata:{commandName:"GetTransfer",path:`/v1/transfers/${t.id}`,method:"GET"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.get(`/v1/transfers/${t.id}`)).data}catch(n){o(n)}}}),H=t=>{let e={paymentType:t.paymentType||"ACH",status:t.transferStatus||"EXECUTION_SCHEDULED",toExecuteDate:t.executedAt||p().toISOString(!0).slice(0,10),locale:"en",dateFormat:"yyyy-MM-dd",associateClientData:!0,originatedBy:"us",accountType:t.accountType};return{input:t,metadata:{commandName:"GetTransfers",path:"/v1/transfers",method:"GET"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await s(r),a=[],u=t.queryLimit||200,c=0,i=0,I={...e,limit:u,offset:c};try{do{let d=await n.get("/v1/transfers",{params:I}),{totalFilteredRecords:f,pageItems:C}=d.data;a.push(...C),i=f,c+=u}while(c<i);return a}catch(d){o(d)}}}},Q=t=>{let e={...t,paymentType:t.paymentType||"ACH"};return{input:t,metadata:{commandName:"MarkAsSuccess",path:"/v1/external-transfers?command=MARK_AS_SUCCESS",method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await s(r);try{return(await n.post("/v1/external-transfers?command=MARK_AS_SUCCESS",e)).data}catch(a){o(a)}}}},Z=t=>({input:t,metadata:{commandName:"MarkAsProcessing",path:"/v1/external-transfers?command=MARK_AS_PROCESSING",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_PROCESSING",t)).data}catch(n){o(n)}}}),X=t=>({input:t,metadata:{commandName:"MarkAsReturned",path:"/v1/external-transfers?command=MARK_AS_RETURN",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_RETURN",{...t})).data}catch(n){o(n)}}}),j=t=>{let e={...t.payload};return{input:t,metadata:{commandName:"LogFailTransfer",path:"/v1/external-transfers?command=LOG_FAILURE",method:"POST"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await s(r);try{return(await n.post("/v1/external-transfers?command=LOG_FAILURE",e)).data}catch(a){throw $.isAxiosError(a)?m({message:"LogFailTransfer command failed",statusCode:a.response?.status,code:a.code,requestId:a.response?.headers?.["x-request-id"],originalError:a}):a}}}},J=t=>({input:t,metadata:{commandName:"MarkAsFail",path:"/v1/external-transfers?command=MARK_AS_FAIL",method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post("/v1/external-transfers?command=MARK_AS_FAIL",t)).data}catch(n){o(n)}}}),V=t=>{let e={traceNumbers:t.traceNumbers};return{input:t,metadata:{commandName:"UpdateTraceNumber",path:`/v1/external-transfers/${t.externalId}`,method:"PUT"},execute:async r=>{t.tenantId&&(r.tenantId=t.tenantId);let n=await s(r);try{return(await n.put(`/v1/external-transfers/${t.externalId}`,e)).data}catch(a){o(a)}}}};var W=t=>({input:t,metadata:{commandName:t.commandName||"CustomUpdate",path:t.url,method:"PUT"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.put(t.url,{...t.updates},{params:t.params})).data}catch(n){o(n)}}}),Y=t=>({input:t,metadata:{commandName:t.commandName||"CustomCreate",path:t.url,method:"POST"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.post(t.url,t.data,{params:t.params})).data}catch(n){o(n)}}}),tt=t=>({input:t,metadata:{commandName:t.commandName||"CustomGet",path:t.url,method:"GET"},execute:async e=>{t.tenantId&&(e.tenantId=t.tenantId);let r=await s(e);try{return(await r.get(t.url,{params:t.params})).data}catch(n){o(n)}}});export{R as CreateClient,l as CreatePayment,v as CreateRecipient,z as CreateTransfer,Y as CustomCreate,tt as CustomGet,W as CustomUpdate,N as DeleteAccount,S as DeleteClient,g as DeletePayment,_ as DeleteRecipient,G as GetAccount,M as GetAccountsOfClient,h as GetClient,O as GetClients,x as GetPayment,T as GetPayments,E as GetRecipient,D as GetRecipients,B as GetTransfer,H as GetTransfers,L as GetUserDetail,b as GraphQL,U as ListAccountsOfClient,j as LogFailTransfer,J as MarkAsFail,Z as MarkAsProcessing,X as MarkAsReturned,Q as MarkAsSuccess,F as SendAuthorizationToCore,w as UpdateAccount,K as UpdateCardID,A as UpdateClient,P as UpdateClientIdentifier,y as UpdatePayment,k as UpdateRecipient,V as UpdateTraceNumber};
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { createClient } from './client/index.mjs';
2
- export { f as CreateClient, C as CreatePayment, k as DeleteAccount, D as DeleteClient, h as GetAccount, i as GetAccountsOfClient, c as GetClient, g as GetClients, G as GetPayment, a as GetPayments, m as GetUserDetail, l as GraphQL, L as ListAccountsOfClient, S as SendAuthorizationToCore, j as UpdateAccount, b as UpdateCardID, d as UpdateClient, e as UpdateClientIdentifier, U as UpdatePayment } from './user-D60hmfvO.mjs';
3
- import { M as Middleware } from './client-CHyhpYj2.mjs';
4
- export { a as Command, C as Config, b as CreatePaymentInput, r as CreatePaymentInputShape, l as CreatePaymentInputZod, L as ListAccountsOfClientResponseShape, w as ListAccountsOfClientResponseZod, x as ListAccountsRequestShape, y as ListAccountsRequestZod, P as Payment, i as PaymentFilterKeyZod, p as PaymentFilterShape, g as PaymentFilters, o as PaymentFiltersZod, e as PaymentRailType, j as PaymentRailZod, c as PaymentResponse, n as PaymentResponseZod, q as PaymentShape, d as PaymentStatus, h as PaymentStatusZod, f as PaymentType, k as PaymentTypeZod, v as SavingAccount, u as SavingAccountShape, t as SavingAccountZod, S as SortOrderZod, z as UpdateAccountRequest, B as UpdateAccountRequestShape, A as UpdateAccountRequestZod, U as UpdatePaymentInput, s as UpdatePaymentInputShape, m as UpdatePaymentInputZod } from './client-CHyhpYj2.mjs';
2
+ export { f as CreateClient, C as CreatePayment, k as DeleteAccount, D as DeleteClient, h as GetAccount, i as GetAccountsOfClient, c as GetClient, g as GetClients, G as GetPayment, a as GetPayments, m as GetUserDetail, l as GraphQL, L as ListAccountsOfClient, S as SendAuthorizationToCore, j as UpdateAccount, b as UpdateCardID, d as UpdateClient, e as UpdateClientIdentifier, U as UpdatePayment, n as UserDetail, o as UserDetailSchema, p as UserDetailShape } from './user-hULJGPTk.mjs';
3
+ import { M as Middleware } from './client-Cx8h8Q3_.mjs';
4
+ export { a as Command, C as Config, b as CreatePaymentInput, r as CreatePaymentInputShape, l as CreatePaymentInputZod, L as ListAccountsOfClientResponseShape, w as ListAccountsOfClientResponseZod, x as ListAccountsRequestShape, y as ListAccountsRequestZod, P as Payment, i as PaymentFilterKeyZod, p as PaymentFilterShape, g as PaymentFilters, o as PaymentFiltersZod, e as PaymentRailType, j as PaymentRailZod, c as PaymentResponse, n as PaymentResponseZod, q as PaymentShape, d as PaymentStatus, h as PaymentStatusZod, f as PaymentType, k as PaymentTypeZod, v as SavingAccount, u as SavingAccountShape, t as SavingAccountZod, S as SortOrderZod, z as UpdateAccountRequest, B as UpdateAccountRequestShape, A as UpdateAccountRequestZod, U as UpdatePaymentInput, s as UpdatePaymentInputShape, m as UpdatePaymentInputZod } from './client-Cx8h8Q3_.mjs';
5
5
  import 'zod';
6
6
  import 'graphql';
7
7
  import 'axios';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { createClient } from './client/index.js';
2
- export { f as CreateClient, C as CreatePayment, k as DeleteAccount, D as DeleteClient, h as GetAccount, i as GetAccountsOfClient, c as GetClient, g as GetClients, G as GetPayment, a as GetPayments, m as GetUserDetail, l as GraphQL, L as ListAccountsOfClient, S as SendAuthorizationToCore, j as UpdateAccount, b as UpdateCardID, d as UpdateClient, e as UpdateClientIdentifier, U as UpdatePayment } from './user-DgjDSbhD.js';
3
- import { M as Middleware } from './client-CHyhpYj2.js';
4
- export { a as Command, C as Config, b as CreatePaymentInput, r as CreatePaymentInputShape, l as CreatePaymentInputZod, L as ListAccountsOfClientResponseShape, w as ListAccountsOfClientResponseZod, x as ListAccountsRequestShape, y as ListAccountsRequestZod, P as Payment, i as PaymentFilterKeyZod, p as PaymentFilterShape, g as PaymentFilters, o as PaymentFiltersZod, e as PaymentRailType, j as PaymentRailZod, c as PaymentResponse, n as PaymentResponseZod, q as PaymentShape, d as PaymentStatus, h as PaymentStatusZod, f as PaymentType, k as PaymentTypeZod, v as SavingAccount, u as SavingAccountShape, t as SavingAccountZod, S as SortOrderZod, z as UpdateAccountRequest, B as UpdateAccountRequestShape, A as UpdateAccountRequestZod, U as UpdatePaymentInput, s as UpdatePaymentInputShape, m as UpdatePaymentInputZod } from './client-CHyhpYj2.js';
2
+ export { f as CreateClient, C as CreatePayment, k as DeleteAccount, D as DeleteClient, h as GetAccount, i as GetAccountsOfClient, c as GetClient, g as GetClients, G as GetPayment, a as GetPayments, m as GetUserDetail, l as GraphQL, L as ListAccountsOfClient, S as SendAuthorizationToCore, j as UpdateAccount, b as UpdateCardID, d as UpdateClient, e as UpdateClientIdentifier, U as UpdatePayment, n as UserDetail, o as UserDetailSchema, p as UserDetailShape } from './user-B5Xv2ZQp.js';
3
+ import { M as Middleware } from './client-Cx8h8Q3_.js';
4
+ export { a as Command, C as Config, b as CreatePaymentInput, r as CreatePaymentInputShape, l as CreatePaymentInputZod, L as ListAccountsOfClientResponseShape, w as ListAccountsOfClientResponseZod, x as ListAccountsRequestShape, y as ListAccountsRequestZod, P as Payment, i as PaymentFilterKeyZod, p as PaymentFilterShape, g as PaymentFilters, o as PaymentFiltersZod, e as PaymentRailType, j as PaymentRailZod, c as PaymentResponse, n as PaymentResponseZod, q as PaymentShape, d as PaymentStatus, h as PaymentStatusZod, f as PaymentType, k as PaymentTypeZod, v as SavingAccount, u as SavingAccountShape, t as SavingAccountZod, S as SortOrderZod, z as UpdateAccountRequest, B as UpdateAccountRequestShape, A as UpdateAccountRequestZod, U as UpdatePaymentInput, s as UpdatePaymentInputShape, m as UpdatePaymentInputZod } from './client-Cx8h8Q3_.js';
5
5
  import 'zod';
6
6
  import 'graphql';
7
7
  import 'axios';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHUUKIV67js = require('./chunk-HUUKIV67.js');var _chunkZJN6HYOWjs = require('./chunk-ZJN6HYOW.js');var _chunkNKXRKPECjs = require('./chunk-NKXRKPEC.js');var j=(t=console)=>({before:async e=>{t.info(`Executing ${e.metadata.commandName}`,{input:e.input,metadata:e.metadata})},after:async(e,a)=>{t.info(`Completed ${e.metadata.commandName}`,{response:a,metadata:e.metadata})},onError:async(e,a)=>{t.error(`Error in ${e.metadata.commandName}`,{error:a,input:e.input,metadata:e.metadata})}});var B=t=>({before:async e=>{t.incrementCounter(`${e.metadata.commandName}_started`)},after:async e=>{t.incrementCounter(`${e.metadata.commandName}_completed`)},onError:async(e,a)=>{t.incrementCounter(`${e.metadata.commandName}_error`),t.recordError&&typeof t.recordError=="function"&&t.recordError(a)}});exports.CreateClient = _chunkNKXRKPECjs.A; exports.CreatePayment = _chunkNKXRKPECjs.r; exports.CreatePaymentInputShape = _chunkNKXRKPECjs.m; exports.CreatePaymentInputZod = _chunkNKXRKPECjs.n; exports.DeleteAccount = _chunkNKXRKPECjs.O; exports.DeleteClient = _chunkNKXRKPECjs.D; exports.GetAccount = _chunkNKXRKPECjs.M; exports.GetAccountsOfClient = _chunkNKXRKPECjs.Q; exports.GetClient = _chunkNKXRKPECjs.x; exports.GetClients = _chunkNKXRKPECjs.C; exports.GetPayment = _chunkNKXRKPECjs.s; exports.GetPayments = _chunkNKXRKPECjs.v; exports.GetUserDetail = _chunkNKXRKPECjs.Y; exports.GraphQL = _chunkNKXRKPECjs.W; exports.ListAccountsOfClient = _chunkNKXRKPECjs.P; exports.ListAccountsOfClientResponseShape = _chunkNKXRKPECjs.G; exports.ListAccountsOfClientResponseZod = _chunkNKXRKPECjs.H; exports.ListAccountsRequestShape = _chunkNKXRKPECjs.I; exports.ListAccountsRequestZod = _chunkNKXRKPECjs.J; exports.PaymentFilterKeyZod = _chunkNKXRKPECjs.e; exports.PaymentFilterShape = _chunkNKXRKPECjs.j; exports.PaymentFiltersZod = _chunkNKXRKPECjs.k; exports.PaymentRailZod = _chunkNKXRKPECjs.g; exports.PaymentResponseZod = _chunkNKXRKPECjs.q; exports.PaymentShape = _chunkNKXRKPECjs.l; exports.PaymentStatusZod = _chunkNKXRKPECjs.f; exports.PaymentTypeZod = _chunkNKXRKPECjs.h; exports.SavingAccountShape = _chunkNKXRKPECjs.E; exports.SavingAccountZod = _chunkNKXRKPECjs.F; exports.SendAuthorizationToCore = _chunkZJN6HYOWjs.a; exports.SortOrderZod = _chunkNKXRKPECjs.i; exports.UpdateAccount = _chunkNKXRKPECjs.N; exports.UpdateAccountRequestShape = _chunkNKXRKPECjs.K; exports.UpdateAccountRequestZod = _chunkNKXRKPECjs.L; exports.UpdateCardID = _chunkZJN6HYOWjs.b; exports.UpdateClient = _chunkNKXRKPECjs.y; exports.UpdateClientIdentifier = _chunkNKXRKPECjs.z; exports.UpdatePayment = _chunkNKXRKPECjs.t; exports.UpdatePaymentInputShape = _chunkNKXRKPECjs.o; exports.UpdatePaymentInputZod = _chunkNKXRKPECjs.p; exports.createClient = _chunkHUUKIV67js.a; exports.createCommandError = _chunkNKXRKPECjs.a; exports.createLoggingMiddleware = j; exports.createMetricsMiddleware = B; exports.isCommandError = _chunkNKXRKPECjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEZM3WQ4Gjs = require('./chunk-EZM3WQ4G.js');var _chunk62FPM434js = require('./chunk-62FPM434.js');var _chunkKYBDTUPKjs = require('./chunk-KYBDTUPK.js');var H=(a=console)=>({before:async t=>{a.info(`Executing ${t.metadata.commandName}`,{input:t.input,metadata:t.metadata})},after:async(t,r)=>{a.info(`Completed ${t.metadata.commandName}`,{response:r,metadata:t.metadata})},onError:async(t,r)=>{a.error(`Error in ${t.metadata.commandName}`,{error:r,input:t.input,metadata:t.metadata})}});var J=a=>({before:async t=>{a.incrementCounter(`${t.metadata.commandName}_started`)},after:async t=>{a.incrementCounter(`${t.metadata.commandName}_completed`)},onError:async(t,r)=>{a.incrementCounter(`${t.metadata.commandName}_error`),a.recordError&&typeof a.recordError=="function"&&a.recordError(r)}});var _zod = require('zod');var V=_zod.z.object({id:_zod.z.number(),name:_zod.z.string(),description:_zod.z.string(),disabled:_zod.z.boolean(),isSelfService:_zod.z.boolean(),position:_zod.z.number()}),o= exports.UserDetailShape ={username:_zod.z.string(),userId:_zod.z.number(),accessToken:_zod.z.string(),authenticated:_zod.z.boolean(),officeId:_zod.z.number(),officeName:_zod.z.string(),roles:_zod.z.array(V),permissions:_zod.z.array(_zod.z.string()),shouldRenewPassword:_zod.z.boolean(),isTwoFactorAuthenticationRequired:_zod.z.boolean(),isSelfServiceUser:_zod.z.boolean()},W= exports.UserDetailSchema =_zod.z.object(o);exports.CreateClient = _chunkKYBDTUPKjs.A; exports.CreatePayment = _chunkKYBDTUPKjs.r; exports.CreatePaymentInputShape = _chunkKYBDTUPKjs.m; exports.CreatePaymentInputZod = _chunkKYBDTUPKjs.n; exports.DeleteAccount = _chunkKYBDTUPKjs.O; exports.DeleteClient = _chunkKYBDTUPKjs.D; exports.GetAccount = _chunkKYBDTUPKjs.M; exports.GetAccountsOfClient = _chunkKYBDTUPKjs.Q; exports.GetClient = _chunkKYBDTUPKjs.x; exports.GetClients = _chunkKYBDTUPKjs.C; exports.GetPayment = _chunkKYBDTUPKjs.s; exports.GetPayments = _chunkKYBDTUPKjs.v; exports.GetUserDetail = _chunkKYBDTUPKjs.Y; exports.GraphQL = _chunkKYBDTUPKjs.W; exports.ListAccountsOfClient = _chunkKYBDTUPKjs.P; exports.ListAccountsOfClientResponseShape = _chunkKYBDTUPKjs.G; exports.ListAccountsOfClientResponseZod = _chunkKYBDTUPKjs.H; exports.ListAccountsRequestShape = _chunkKYBDTUPKjs.I; exports.ListAccountsRequestZod = _chunkKYBDTUPKjs.J; exports.PaymentFilterKeyZod = _chunkKYBDTUPKjs.e; exports.PaymentFilterShape = _chunkKYBDTUPKjs.j; exports.PaymentFiltersZod = _chunkKYBDTUPKjs.k; exports.PaymentRailZod = _chunkKYBDTUPKjs.g; exports.PaymentResponseZod = _chunkKYBDTUPKjs.q; exports.PaymentShape = _chunkKYBDTUPKjs.l; exports.PaymentStatusZod = _chunkKYBDTUPKjs.f; exports.PaymentTypeZod = _chunkKYBDTUPKjs.h; exports.SavingAccountShape = _chunkKYBDTUPKjs.E; exports.SavingAccountZod = _chunkKYBDTUPKjs.F; exports.SendAuthorizationToCore = _chunk62FPM434js.a; exports.SortOrderZod = _chunkKYBDTUPKjs.i; exports.UpdateAccount = _chunkKYBDTUPKjs.N; exports.UpdateAccountRequestShape = _chunkKYBDTUPKjs.K; exports.UpdateAccountRequestZod = _chunkKYBDTUPKjs.L; exports.UpdateCardID = _chunk62FPM434js.b; exports.UpdateClient = _chunkKYBDTUPKjs.y; exports.UpdateClientIdentifier = _chunkKYBDTUPKjs.z; exports.UpdatePayment = _chunkKYBDTUPKjs.t; exports.UpdatePaymentInputShape = _chunkKYBDTUPKjs.o; exports.UpdatePaymentInputZod = _chunkKYBDTUPKjs.p; exports.UserDetailSchema = W; exports.UserDetailShape = o; exports.createClient = _chunkEZM3WQ4Gjs.a; exports.createCommandError = _chunkKYBDTUPKjs.a; exports.createLoggingMiddleware = H; exports.createMetricsMiddleware = J; exports.isCommandError = _chunkKYBDTUPKjs.b;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{a as K}from"./chunk-ICLPMQUX.mjs";import{a as z,b as Q}from"./chunk-VKDW7GQQ.mjs";import{A as M,C as U,D as L,E as Z,F as E,G as v,H as I,I as G,J as q,K as N,L as O,M as F,N as $,O as T,P as k,Q as D,W as _,Y as b,a as r,b as n,e as o,f as m,g as s,h as c,i as p,j as i,k as d,l as y,m as u,n as f,o as l,p as P,q as S,r as g,s as C,t as h,v as A,x,y as R,z as w}from"./chunk-PEZBB7Q7.mjs";var j=(t=console)=>({before:async e=>{t.info(`Executing ${e.metadata.commandName}`,{input:e.input,metadata:e.metadata})},after:async(e,a)=>{t.info(`Completed ${e.metadata.commandName}`,{response:a,metadata:e.metadata})},onError:async(e,a)=>{t.error(`Error in ${e.metadata.commandName}`,{error:a,input:e.input,metadata:e.metadata})}});var B=t=>({before:async e=>{t.incrementCounter(`${e.metadata.commandName}_started`)},after:async e=>{t.incrementCounter(`${e.metadata.commandName}_completed`)},onError:async(e,a)=>{t.incrementCounter(`${e.metadata.commandName}_error`),t.recordError&&typeof t.recordError=="function"&&t.recordError(a)}});export{M as CreateClient,g as CreatePayment,u as CreatePaymentInputShape,f as CreatePaymentInputZod,T as DeleteAccount,L as DeleteClient,F as GetAccount,D as GetAccountsOfClient,x as GetClient,U as GetClients,C as GetPayment,A as GetPayments,b as GetUserDetail,_ as GraphQL,k as ListAccountsOfClient,v as ListAccountsOfClientResponseShape,I as ListAccountsOfClientResponseZod,G as ListAccountsRequestShape,q as ListAccountsRequestZod,o as PaymentFilterKeyZod,i as PaymentFilterShape,d as PaymentFiltersZod,s as PaymentRailZod,S as PaymentResponseZod,y as PaymentShape,m as PaymentStatusZod,c as PaymentTypeZod,Z as SavingAccountShape,E as SavingAccountZod,z as SendAuthorizationToCore,p as SortOrderZod,$ as UpdateAccount,N as UpdateAccountRequestShape,O as UpdateAccountRequestZod,Q as UpdateCardID,R as UpdateClient,w as UpdateClientIdentifier,h as UpdatePayment,l as UpdatePaymentInputShape,P as UpdatePaymentInputZod,K as createClient,r as createCommandError,j as createLoggingMiddleware,B as createMetricsMiddleware,n as isCommandError};
1
+ import{a as K}from"./chunk-EFJCWTJG.mjs";import{a as Q,b as B}from"./chunk-TUGSCLOB.mjs";import{A as M,C as L,D as Z,E as v,F as E,G as I,H as D,I as q,J as G,K as N,L as F,M as O,N as T,O as $,P as k,Q as z,W as _,Y as j,a as n,b as s,e as i,f as m,g as c,h as p,i as d,j as u,k as y,l,m as f,n as S,o as g,p as P,q as h,r as C,s as x,t as A,v as U,x as R,y as w,z as b}from"./chunk-X5UU2EKK.mjs";var H=(a=console)=>({before:async t=>{a.info(`Executing ${t.metadata.commandName}`,{input:t.input,metadata:t.metadata})},after:async(t,r)=>{a.info(`Completed ${t.metadata.commandName}`,{response:r,metadata:t.metadata})},onError:async(t,r)=>{a.error(`Error in ${t.metadata.commandName}`,{error:r,input:t.input,metadata:t.metadata})}});var J=a=>({before:async t=>{a.incrementCounter(`${t.metadata.commandName}_started`)},after:async t=>{a.incrementCounter(`${t.metadata.commandName}_completed`)},onError:async(t,r)=>{a.incrementCounter(`${t.metadata.commandName}_error`),a.recordError&&typeof a.recordError=="function"&&a.recordError(r)}});import{z as e}from"zod";var V=e.object({id:e.number(),name:e.string(),description:e.string(),disabled:e.boolean(),isSelfService:e.boolean(),position:e.number()}),o={username:e.string(),userId:e.number(),accessToken:e.string(),authenticated:e.boolean(),officeId:e.number(),officeName:e.string(),roles:e.array(V),permissions:e.array(e.string()),shouldRenewPassword:e.boolean(),isTwoFactorAuthenticationRequired:e.boolean(),isSelfServiceUser:e.boolean()},W=e.object(o);export{M as CreateClient,C as CreatePayment,f as CreatePaymentInputShape,S as CreatePaymentInputZod,$ as DeleteAccount,Z as DeleteClient,O as GetAccount,z as GetAccountsOfClient,R as GetClient,L as GetClients,x as GetPayment,U as GetPayments,j as GetUserDetail,_ as GraphQL,k as ListAccountsOfClient,I as ListAccountsOfClientResponseShape,D as ListAccountsOfClientResponseZod,q as ListAccountsRequestShape,G as ListAccountsRequestZod,i as PaymentFilterKeyZod,u as PaymentFilterShape,y as PaymentFiltersZod,c as PaymentRailZod,h as PaymentResponseZod,l as PaymentShape,m as PaymentStatusZod,p as PaymentTypeZod,v as SavingAccountShape,E as SavingAccountZod,Q as SendAuthorizationToCore,d as SortOrderZod,T as UpdateAccount,N as UpdateAccountRequestShape,F as UpdateAccountRequestZod,B as UpdateCardID,w as UpdateClient,b as UpdateClientIdentifier,A as UpdatePayment,g as UpdatePaymentInputShape,P as UpdatePaymentInputZod,W as UserDetailSchema,o as UserDetailShape,K as createClient,n as createCommandError,H as createLoggingMiddleware,J as createMetricsMiddleware,s as isCommandError};
@@ -1,6 +1,114 @@
1
- import { b as CreatePaymentInput, a as Command, Y as ProcessOutput, P as Payment, U as UpdatePaymentInput, g as PaymentFilters, c as PaymentResponse, E as UpdateClientRequest, F as ProcessOutput$1, G as UpdateClientIdentifierRequest, Z as UpdateClientIdentifierResponse, D as CreateClientRequest, _ as CreateClientResponse, $ as ListClientsRequest, a0 as ListClientsResponse, v as SavingAccount, a1 as ListAccountsOfClientRequest, z as UpdateAccountRequest, a2 as GraphQLRequest } from './client-CHyhpYj2.mjs';
1
+ import { b as CreatePaymentInput, a as Command, Y as ProcessOutput, P as Payment, U as UpdatePaymentInput, g as PaymentFilters, c as PaymentResponse, E as UpdateClientRequest, F as ProcessOutput$1, G as UpdateClientIdentifierRequest, Z as UpdateClientIdentifierResponse, D as CreateClientRequest, _ as CreateClientResponse, $ as ListClientsRequest, a0 as ListClientsResponse, v as SavingAccount, a1 as ListAccountsOfClientRequest, z as UpdateAccountRequest, a2 as GraphQLRequest } from './client-Cx8h8Q3_.js';
2
2
  import { z } from 'zod';
3
3
 
4
+ declare const UserDetailShape: {
5
+ username: z.ZodString;
6
+ userId: z.ZodNumber;
7
+ accessToken: z.ZodString;
8
+ authenticated: z.ZodBoolean;
9
+ officeId: z.ZodNumber;
10
+ officeName: z.ZodString;
11
+ roles: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNumber;
13
+ name: z.ZodString;
14
+ description: z.ZodString;
15
+ disabled: z.ZodBoolean;
16
+ isSelfService: z.ZodBoolean;
17
+ position: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ name: string;
20
+ id: number;
21
+ description: string;
22
+ disabled: boolean;
23
+ isSelfService: boolean;
24
+ position: number;
25
+ }, {
26
+ name: string;
27
+ id: number;
28
+ description: string;
29
+ disabled: boolean;
30
+ isSelfService: boolean;
31
+ position: number;
32
+ }>, "many">;
33
+ permissions: z.ZodArray<z.ZodString, "many">;
34
+ shouldRenewPassword: z.ZodBoolean;
35
+ isTwoFactorAuthenticationRequired: z.ZodBoolean;
36
+ isSelfServiceUser: z.ZodBoolean;
37
+ };
38
+ declare const UserDetailSchema: z.ZodObject<{
39
+ username: z.ZodString;
40
+ userId: z.ZodNumber;
41
+ accessToken: z.ZodString;
42
+ authenticated: z.ZodBoolean;
43
+ officeId: z.ZodNumber;
44
+ officeName: z.ZodString;
45
+ roles: z.ZodArray<z.ZodObject<{
46
+ id: z.ZodNumber;
47
+ name: z.ZodString;
48
+ description: z.ZodString;
49
+ disabled: z.ZodBoolean;
50
+ isSelfService: z.ZodBoolean;
51
+ position: z.ZodNumber;
52
+ }, "strip", z.ZodTypeAny, {
53
+ name: string;
54
+ id: number;
55
+ description: string;
56
+ disabled: boolean;
57
+ isSelfService: boolean;
58
+ position: number;
59
+ }, {
60
+ name: string;
61
+ id: number;
62
+ description: string;
63
+ disabled: boolean;
64
+ isSelfService: boolean;
65
+ position: number;
66
+ }>, "many">;
67
+ permissions: z.ZodArray<z.ZodString, "many">;
68
+ shouldRenewPassword: z.ZodBoolean;
69
+ isTwoFactorAuthenticationRequired: z.ZodBoolean;
70
+ isSelfServiceUser: z.ZodBoolean;
71
+ }, "strip", z.ZodTypeAny, {
72
+ username: string;
73
+ userId: number;
74
+ accessToken: string;
75
+ authenticated: boolean;
76
+ officeId: number;
77
+ officeName: string;
78
+ roles: {
79
+ name: string;
80
+ id: number;
81
+ description: string;
82
+ disabled: boolean;
83
+ isSelfService: boolean;
84
+ position: number;
85
+ }[];
86
+ permissions: string[];
87
+ shouldRenewPassword: boolean;
88
+ isTwoFactorAuthenticationRequired: boolean;
89
+ isSelfServiceUser: boolean;
90
+ }, {
91
+ username: string;
92
+ userId: number;
93
+ accessToken: string;
94
+ authenticated: boolean;
95
+ officeId: number;
96
+ officeName: string;
97
+ roles: {
98
+ name: string;
99
+ id: number;
100
+ description: string;
101
+ disabled: boolean;
102
+ isSelfService: boolean;
103
+ position: number;
104
+ }[];
105
+ permissions: string[];
106
+ shouldRenewPassword: boolean;
107
+ isTwoFactorAuthenticationRequired: boolean;
108
+ isSelfServiceUser: boolean;
109
+ }>;
110
+ type UserDetail = z.infer<typeof UserDetailSchema>;
111
+
4
112
  declare const CreatePayment: (params: {
5
113
  payment: CreatePaymentInput;
6
114
  tenantId?: string;
@@ -174,84 +282,10 @@ declare const GetAccountsOfClient: (clientId: number, params: ListAccountsOfClie
174
282
 
175
283
  declare const GraphQL: (request: GraphQLRequest) => Command<GraphQLRequest, any>;
176
284
 
177
- declare const UserDetailSchema: z.ZodObject<{
178
- username: z.ZodString;
179
- userId: z.ZodNumber;
180
- accessToken: z.ZodString;
181
- authenticated: z.ZodBoolean;
182
- officeId: z.ZodNumber;
183
- officeName: z.ZodString;
184
- roles: z.ZodArray<z.ZodObject<{
185
- id: z.ZodNumber;
186
- name: z.ZodString;
187
- description: z.ZodString;
188
- disabled: z.ZodBoolean;
189
- isSelfService: z.ZodBoolean;
190
- position: z.ZodNumber;
191
- }, "strip", z.ZodTypeAny, {
192
- name: string;
193
- id: number;
194
- description: string;
195
- disabled: boolean;
196
- isSelfService: boolean;
197
- position: number;
198
- }, {
199
- name: string;
200
- id: number;
201
- description: string;
202
- disabled: boolean;
203
- isSelfService: boolean;
204
- position: number;
205
- }>, "many">;
206
- permissions: z.ZodArray<z.ZodString, "many">;
207
- shouldRenewPassword: z.ZodBoolean;
208
- isTwoFactorAuthenticationRequired: z.ZodBoolean;
209
- isSelfServiceUser: z.ZodBoolean;
210
- }, "strip", z.ZodTypeAny, {
211
- officeId: number;
212
- officeName: string;
213
- username: string;
214
- userId: number;
215
- accessToken: string;
216
- authenticated: boolean;
217
- roles: {
218
- name: string;
219
- id: number;
220
- description: string;
221
- disabled: boolean;
222
- isSelfService: boolean;
223
- position: number;
224
- }[];
225
- permissions: string[];
226
- shouldRenewPassword: boolean;
227
- isTwoFactorAuthenticationRequired: boolean;
228
- isSelfServiceUser: boolean;
229
- }, {
230
- officeId: number;
231
- officeName: string;
232
- username: string;
233
- userId: number;
234
- accessToken: string;
235
- authenticated: boolean;
236
- roles: {
237
- name: string;
238
- id: number;
239
- description: string;
240
- disabled: boolean;
241
- isSelfService: boolean;
242
- position: number;
243
- }[];
244
- permissions: string[];
245
- shouldRenewPassword: boolean;
246
- isTwoFactorAuthenticationRequired: boolean;
247
- isSelfServiceUser: boolean;
248
- }>;
249
- type UserDetail = z.infer<typeof UserDetailSchema>;
250
-
251
285
  declare const GetUserDetail: (params?: {
252
286
  tenantId?: string;
253
287
  }) => Command<{
254
288
  tenantId?: string;
255
289
  }, UserDetail>;
256
290
 
257
- export { CreatePayment as C, DeleteClient as D, GetPayment as G, ListAccountsOfClient as L, SendAuthorizationToCore as S, UpdatePayment as U, GetPayments as a, UpdateCardID as b, GetClient as c, UpdateClient as d, UpdateClientIdentifier as e, CreateClient as f, GetClients as g, GetAccount as h, GetAccountsOfClient as i, UpdateAccount as j, DeleteAccount as k, GraphQL as l, GetUserDetail as m, DeletePayment as n };
291
+ export { CreatePayment as C, DeleteClient as D, GetPayment as G, ListAccountsOfClient as L, SendAuthorizationToCore as S, UpdatePayment as U, GetPayments as a, UpdateCardID as b, GetClient as c, UpdateClient as d, UpdateClientIdentifier as e, CreateClient as f, GetClients as g, GetAccount as h, GetAccountsOfClient as i, UpdateAccount as j, DeleteAccount as k, GraphQL as l, GetUserDetail as m, type UserDetail as n, UserDetailSchema as o, UserDetailShape as p, DeletePayment as q };
@@ -1,6 +1,114 @@
1
- import { b as CreatePaymentInput, a as Command, Y as ProcessOutput, P as Payment, U as UpdatePaymentInput, g as PaymentFilters, c as PaymentResponse, E as UpdateClientRequest, F as ProcessOutput$1, G as UpdateClientIdentifierRequest, Z as UpdateClientIdentifierResponse, D as CreateClientRequest, _ as CreateClientResponse, $ as ListClientsRequest, a0 as ListClientsResponse, v as SavingAccount, a1 as ListAccountsOfClientRequest, z as UpdateAccountRequest, a2 as GraphQLRequest } from './client-CHyhpYj2.js';
1
+ import { b as CreatePaymentInput, a as Command, Y as ProcessOutput, P as Payment, U as UpdatePaymentInput, g as PaymentFilters, c as PaymentResponse, E as UpdateClientRequest, F as ProcessOutput$1, G as UpdateClientIdentifierRequest, Z as UpdateClientIdentifierResponse, D as CreateClientRequest, _ as CreateClientResponse, $ as ListClientsRequest, a0 as ListClientsResponse, v as SavingAccount, a1 as ListAccountsOfClientRequest, z as UpdateAccountRequest, a2 as GraphQLRequest } from './client-Cx8h8Q3_.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
+ declare const UserDetailShape: {
5
+ username: z.ZodString;
6
+ userId: z.ZodNumber;
7
+ accessToken: z.ZodString;
8
+ authenticated: z.ZodBoolean;
9
+ officeId: z.ZodNumber;
10
+ officeName: z.ZodString;
11
+ roles: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNumber;
13
+ name: z.ZodString;
14
+ description: z.ZodString;
15
+ disabled: z.ZodBoolean;
16
+ isSelfService: z.ZodBoolean;
17
+ position: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ name: string;
20
+ id: number;
21
+ description: string;
22
+ disabled: boolean;
23
+ isSelfService: boolean;
24
+ position: number;
25
+ }, {
26
+ name: string;
27
+ id: number;
28
+ description: string;
29
+ disabled: boolean;
30
+ isSelfService: boolean;
31
+ position: number;
32
+ }>, "many">;
33
+ permissions: z.ZodArray<z.ZodString, "many">;
34
+ shouldRenewPassword: z.ZodBoolean;
35
+ isTwoFactorAuthenticationRequired: z.ZodBoolean;
36
+ isSelfServiceUser: z.ZodBoolean;
37
+ };
38
+ declare const UserDetailSchema: z.ZodObject<{
39
+ username: z.ZodString;
40
+ userId: z.ZodNumber;
41
+ accessToken: z.ZodString;
42
+ authenticated: z.ZodBoolean;
43
+ officeId: z.ZodNumber;
44
+ officeName: z.ZodString;
45
+ roles: z.ZodArray<z.ZodObject<{
46
+ id: z.ZodNumber;
47
+ name: z.ZodString;
48
+ description: z.ZodString;
49
+ disabled: z.ZodBoolean;
50
+ isSelfService: z.ZodBoolean;
51
+ position: z.ZodNumber;
52
+ }, "strip", z.ZodTypeAny, {
53
+ name: string;
54
+ id: number;
55
+ description: string;
56
+ disabled: boolean;
57
+ isSelfService: boolean;
58
+ position: number;
59
+ }, {
60
+ name: string;
61
+ id: number;
62
+ description: string;
63
+ disabled: boolean;
64
+ isSelfService: boolean;
65
+ position: number;
66
+ }>, "many">;
67
+ permissions: z.ZodArray<z.ZodString, "many">;
68
+ shouldRenewPassword: z.ZodBoolean;
69
+ isTwoFactorAuthenticationRequired: z.ZodBoolean;
70
+ isSelfServiceUser: z.ZodBoolean;
71
+ }, "strip", z.ZodTypeAny, {
72
+ username: string;
73
+ userId: number;
74
+ accessToken: string;
75
+ authenticated: boolean;
76
+ officeId: number;
77
+ officeName: string;
78
+ roles: {
79
+ name: string;
80
+ id: number;
81
+ description: string;
82
+ disabled: boolean;
83
+ isSelfService: boolean;
84
+ position: number;
85
+ }[];
86
+ permissions: string[];
87
+ shouldRenewPassword: boolean;
88
+ isTwoFactorAuthenticationRequired: boolean;
89
+ isSelfServiceUser: boolean;
90
+ }, {
91
+ username: string;
92
+ userId: number;
93
+ accessToken: string;
94
+ authenticated: boolean;
95
+ officeId: number;
96
+ officeName: string;
97
+ roles: {
98
+ name: string;
99
+ id: number;
100
+ description: string;
101
+ disabled: boolean;
102
+ isSelfService: boolean;
103
+ position: number;
104
+ }[];
105
+ permissions: string[];
106
+ shouldRenewPassword: boolean;
107
+ isTwoFactorAuthenticationRequired: boolean;
108
+ isSelfServiceUser: boolean;
109
+ }>;
110
+ type UserDetail = z.infer<typeof UserDetailSchema>;
111
+
4
112
  declare const CreatePayment: (params: {
5
113
  payment: CreatePaymentInput;
6
114
  tenantId?: string;
@@ -174,84 +282,10 @@ declare const GetAccountsOfClient: (clientId: number, params: ListAccountsOfClie
174
282
 
175
283
  declare const GraphQL: (request: GraphQLRequest) => Command<GraphQLRequest, any>;
176
284
 
177
- declare const UserDetailSchema: z.ZodObject<{
178
- username: z.ZodString;
179
- userId: z.ZodNumber;
180
- accessToken: z.ZodString;
181
- authenticated: z.ZodBoolean;
182
- officeId: z.ZodNumber;
183
- officeName: z.ZodString;
184
- roles: z.ZodArray<z.ZodObject<{
185
- id: z.ZodNumber;
186
- name: z.ZodString;
187
- description: z.ZodString;
188
- disabled: z.ZodBoolean;
189
- isSelfService: z.ZodBoolean;
190
- position: z.ZodNumber;
191
- }, "strip", z.ZodTypeAny, {
192
- name: string;
193
- id: number;
194
- description: string;
195
- disabled: boolean;
196
- isSelfService: boolean;
197
- position: number;
198
- }, {
199
- name: string;
200
- id: number;
201
- description: string;
202
- disabled: boolean;
203
- isSelfService: boolean;
204
- position: number;
205
- }>, "many">;
206
- permissions: z.ZodArray<z.ZodString, "many">;
207
- shouldRenewPassword: z.ZodBoolean;
208
- isTwoFactorAuthenticationRequired: z.ZodBoolean;
209
- isSelfServiceUser: z.ZodBoolean;
210
- }, "strip", z.ZodTypeAny, {
211
- officeId: number;
212
- officeName: string;
213
- username: string;
214
- userId: number;
215
- accessToken: string;
216
- authenticated: boolean;
217
- roles: {
218
- name: string;
219
- id: number;
220
- description: string;
221
- disabled: boolean;
222
- isSelfService: boolean;
223
- position: number;
224
- }[];
225
- permissions: string[];
226
- shouldRenewPassword: boolean;
227
- isTwoFactorAuthenticationRequired: boolean;
228
- isSelfServiceUser: boolean;
229
- }, {
230
- officeId: number;
231
- officeName: string;
232
- username: string;
233
- userId: number;
234
- accessToken: string;
235
- authenticated: boolean;
236
- roles: {
237
- name: string;
238
- id: number;
239
- description: string;
240
- disabled: boolean;
241
- isSelfService: boolean;
242
- position: number;
243
- }[];
244
- permissions: string[];
245
- shouldRenewPassword: boolean;
246
- isTwoFactorAuthenticationRequired: boolean;
247
- isSelfServiceUser: boolean;
248
- }>;
249
- type UserDetail = z.infer<typeof UserDetailSchema>;
250
-
251
285
  declare const GetUserDetail: (params?: {
252
286
  tenantId?: string;
253
287
  }) => Command<{
254
288
  tenantId?: string;
255
289
  }, UserDetail>;
256
290
 
257
- export { CreatePayment as C, DeleteClient as D, GetPayment as G, ListAccountsOfClient as L, SendAuthorizationToCore as S, UpdatePayment as U, GetPayments as a, UpdateCardID as b, GetClient as c, UpdateClient as d, UpdateClientIdentifier as e, CreateClient as f, GetClients as g, GetAccount as h, GetAccountsOfClient as i, UpdateAccount as j, DeleteAccount as k, GraphQL as l, GetUserDetail as m, DeletePayment as n };
291
+ export { CreatePayment as C, DeleteClient as D, GetPayment as G, ListAccountsOfClient as L, SendAuthorizationToCore as S, UpdatePayment as U, GetPayments as a, UpdateCardID as b, GetClient as c, UpdateClient as d, UpdateClientIdentifier as e, CreateClient as f, GetClients as g, GetAccount as h, GetAccountsOfClient as i, UpdateAccount as j, DeleteAccount as k, GraphQL as l, GetUserDetail as m, type UserDetail as n, UserDetailSchema as o, UserDetailShape as p, DeletePayment as q };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbanq/core-sdk-js",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "A comprehensive JavaScript SDK for interacting with the Mbanq payment API. Features type-safe payment operations, multi-tenant support, and Zod validation.",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -7294,11 +7294,11 @@ declare const ListClientsRequestSchema: z__default.ZodObject<{
7294
7294
  limit?: number | undefined;
7295
7295
  offset?: number | undefined;
7296
7296
  tenantId?: string | undefined;
7297
+ officeId?: number | undefined;
7297
7298
  firstname?: string | undefined;
7298
7299
  lastname?: string | undefined;
7299
7300
  displayName?: string | undefined;
7300
7301
  mobileNo?: string | undefined;
7301
- officeId?: number | undefined;
7302
7302
  orphansOnly?: boolean | undefined;
7303
7303
  clientStatus?: string | undefined;
7304
7304
  createdStartDate?: string | undefined;
@@ -7314,11 +7314,11 @@ declare const ListClientsRequestSchema: z__default.ZodObject<{
7314
7314
  limit?: number | undefined;
7315
7315
  offset?: number | undefined;
7316
7316
  tenantId?: string | undefined;
7317
+ officeId?: number | undefined;
7317
7318
  firstname?: string | undefined;
7318
7319
  lastname?: string | undefined;
7319
7320
  displayName?: string | undefined;
7320
7321
  mobileNo?: string | undefined;
7321
- officeId?: number | undefined;
7322
7322
  orphansOnly?: boolean | undefined;
7323
7323
  clientStatus?: string | undefined;
7324
7324
  createdStartDate?: string | undefined;
@@ -7294,11 +7294,11 @@ declare const ListClientsRequestSchema: z__default.ZodObject<{
7294
7294
  limit?: number | undefined;
7295
7295
  offset?: number | undefined;
7296
7296
  tenantId?: string | undefined;
7297
+ officeId?: number | undefined;
7297
7298
  firstname?: string | undefined;
7298
7299
  lastname?: string | undefined;
7299
7300
  displayName?: string | undefined;
7300
7301
  mobileNo?: string | undefined;
7301
- officeId?: number | undefined;
7302
7302
  orphansOnly?: boolean | undefined;
7303
7303
  clientStatus?: string | undefined;
7304
7304
  createdStartDate?: string | undefined;
@@ -7314,11 +7314,11 @@ declare const ListClientsRequestSchema: z__default.ZodObject<{
7314
7314
  limit?: number | undefined;
7315
7315
  offset?: number | undefined;
7316
7316
  tenantId?: string | undefined;
7317
+ officeId?: number | undefined;
7317
7318
  firstname?: string | undefined;
7318
7319
  lastname?: string | undefined;
7319
7320
  displayName?: string | undefined;
7320
7321
  mobileNo?: string | undefined;
7321
- officeId?: number | undefined;
7322
7322
  orphansOnly?: boolean | undefined;
7323
7323
  clientStatus?: string | undefined;
7324
7324
  createdStartDate?: string | undefined;