@orbis-systems/orbis-api-clients 0.4.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2727 @@
1
- import e from"auto-bind";import{consola as t}from"consola";import{jwtDecode as s}from"jwt-decode";import r,{isAxiosError as n}from"axios";import i from"axios-better-stacktrace";import{isNil as a,merge as u}from"lodash";function o(e,t,s,r){Object.defineProperty(e,t,{get:s,set:r,enumerable:!0,configurable:!0})}function p(e,t){return Object.keys(t).forEach(function(s){"default"===s||"__esModule"===s||Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[s]}})}),e}o({},"AesMidasApi",()=>Q);class l{constructor(t){this.apiClient=t,e(this)}getApiClient(){return this.apiClient}}var m,h=((m={}).Json="application/json",m.FormData="multipart/form-data",m.UrlEncoded="application/x-www-form-urlencoded",m.Text="text/plain",m);class c{constructor(t){this.config=t,e(this),this.storage=t.storage??sessionStorage,this.axiosInstance=r.create({baseURL:t.baseUrl,headers:{"Content-Type":"application/json",...t.defaultHeaders}}),i(this.axiosInstance)}stringifyFormItem(e){return"object"==typeof e&&null!==e?JSON.stringify(e):`${e}`}createFormData(e){return e instanceof FormData?e:Object.keys(e).reduce((t,s)=>{let r=e[s];for(let e of r instanceof Array?r:[r]){let r=e instanceof Blob||e instanceof File;t.append(s,r?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;a(s)||("multipart/form-data"===t&&"object"==typeof s&&(e.data=this.createFormData(s)),"text/plain"===t&&"string"!=typeof s&&(e.data=JSON.stringify(s)));let r=u(e.secure??this.config.defaultSecure?this.prepareAuthRequestConfig():{},t?{headers:{"Content-Type":t}}:{},e);try{let{data:e,status:t,statusText:s}=await this.axiosInstance.request(r);return{success:!0,data:e,status:t,statusText:s}}catch(t){if(!this.config.errorHandling)throw t;let e={success:!1,status:-1,statusText:String(t),error:t};return n(t)&&(this.config.onAxiosError?.(t),e.data=t.response?.data,e.status=t.response?.status??e.status,e.statusText=t.response?.statusText??e.statusText),this.config.onError?.(t),e}}get(e,t){return this.request({...t,method:"GET",url:e})}delete(e,t){return this.request({...t,method:"DELETE",url:e})}head(e,t){return this.request({...t,method:"HEAD",url:e})}options(e,t){return this.request({...t,method:"OPTIONS",url:e})}post(e,t,s){return this.request({...s,method:"POST",url:e,data:t})}put(e,t,s){return this.request({...s,method:"PUT",url:e,data:t})}patch(e,t,s){return this.request({...s,method:"PATCH",url:e,data:t})}getAxios(){return this.axiosInstance}setAuthData(e){this.storage.setItem(this.config.authDataStorageKey||"auth",JSON.stringify(e))}getAuthData(){let e=this.storage.getItem(this.config.authDataStorageKey||"auth");return e?JSON.parse(e):null}getConfig(){return this.config}}class d extends c{constructor(e){super(e),this.config=e}getConfig(){return super.getConfig()}prepareAuthRequestConfig(){let{accessToken:e}=this.getAuthData()||{};return e?{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}:(t.warn("No access token found. Please set auth data after authorization."),{})}scheduleTokenRenewal(e){let r;this.cancelTokenRenewal();let n=this.getAuthData();try{r=s(n?.accessToken||"")}catch(e){t.error(e)}if(!r||!r.exp){t.warn("Could not schedule token renewal: invalid expiration time");return}let i=1e3*r.exp-Date.now(),a=async()=>{let t=await e();this.setAuthData(t),this.scheduleTokenRenewal(e)};this.tokenRenewalTimeout=setTimeout(async()=>{try{await a()}catch(e){t.error("Failed to renew token. Retry in 10s",e),setTimeout(a,1e4)}},i-6e4)}cancelTokenRenewal(){clearTimeout(this.tokenRenewalTimeout)}}var T={},y={};o(y,"DataSource",()=>g);class g{constructor(t){this.apiClient=t,e(this)}getDataSourceList(e,t){return this.apiClient.request({...t,url:"/datasource/data-source-list",method:"GET",params:e,secure:!0,responseType:"json"})}getDataSource(e,t){return this.apiClient.request({...t,url:"/datasource/data-source",method:"GET",params:e,secure:!0,responseType:"json"})}postDataSource(e,t){return this.apiClient.request({...t,url:"/datasource/data-source",method:"POST",data:e,secure:!0,contentType:h.Json,responseType:"json"})}putDataSource(e,t,s){return this.apiClient.request({...s,url:"/datasource/data-source",method:"PUT",params:t,data:e,secure:!0,contentType:h.Json})}deleteDataSource(e,t){return this.apiClient.request({...t,url:"/datasource/data-source",method:"DELETE",params:e,secure:!0})}getDataSourceTallyCount(e){return this.apiClient.request({...e,url:"/datasource/data-source-tally-count",method:"GET",secure:!0,responseType:"json"})}postDataSourceTallyReport(e,t,s){return this.apiClient.request({...s,url:"/datasource/data-source-tally-report",method:"POST",params:t,data:e,secure:!0,contentType:h.Json,responseType:"json"})}}var q={};o(q,"Entitlement",()=>C);class C{constructor(t){this.apiClient=t,e(this)}getEntitlementList(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement-list",method:"GET",params:e,secure:!0,responseType:"json"})}getEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement",method:"GET",params:e,secure:!0,responseType:"json"})}postEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement",method:"POST",data:e,secure:!0,contentType:h.Json,responseType:"json"})}putEntitlement(e,t,s){return this.apiClient.request({...s,url:"/entitlement/entitlement",method:"PUT",params:t,data:e,secure:!0,contentType:h.Json})}deleteEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement",method:"DELETE",params:e,secure:!0})}getUserEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/user-entitlement",method:"GET",params:e,secure:!0,responseType:"json"})}getUserEntitlementList(e,t){return this.apiClient.request({...t,url:"/entitlement/user-entitlement-list",method:"GET",params:e,secure:!0,responseType:"json"})}getEntitlementUserList(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement-user-list",method:"GET",params:e,secure:!0,responseType:"json"})}getUserEntitlementHistory(e,t){return this.apiClient.request({...t,url:"/entitlement/user-entitlement-history",method:"GET",params:e,secure:!0,responseType:"json"})}putSignEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/sign-entitlement",method:"PUT",data:e,secure:!0,contentType:h.Json})}putUnsignEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/unsign-entitlement",method:"PUT",params:e,secure:!0})}getContractsCount(e,t){return this.apiClient.request({...t,url:"/entitlement/contracts-count",method:"GET",params:e,secure:!0,responseType:"json"})}postContractsReport(e,t,s){return this.apiClient.request({...s,url:"/entitlement/contracts-report",method:"POST",params:t,data:e,secure:!0,contentType:h.Json,responseType:"json"})}getFirmEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement",method:"GET",params:e,secure:!0,responseType:"json"})}postFirmEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement",method:"POST",data:e,secure:!0,contentType:h.Json,responseType:"json"})}putFirmEntitlement(e,t,s){return this.apiClient.request({...s,url:"/entitlement/firm-entitlement",method:"PUT",params:t,data:e,secure:!0,contentType:h.Json})}deleteFirmEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement",method:"DELETE",params:e,secure:!0})}getFirmEntitlementList(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement-list",method:"GET",params:e,secure:!0,responseType:"json"})}getEntitlementFirmList(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement-firm-list",method:"GET",params:e,secure:!0,responseType:"json"})}getFirmEntitlementHistory(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement-history",method:"GET",params:e,secure:!0,responseType:"json"})}}var f={};o(f,"File",()=>E);class E{constructor(t){this.apiClient=t,e(this)}postUpload(e,t){return this.apiClient.request({...t,url:"/file/upload",method:"POST",data:e,secure:!0,contentType:h.Json,responseType:"json"})}getDownload(e,t){return this.apiClient.request({...t,url:"/file/download",method:"GET",params:e,secure:!0,responseType:"json"})}}var j={};o(j,"Firm",()=>b);class b{constructor(t){this.apiClient=t,e(this)}getFirmList(e,t){return this.apiClient.request({...t,url:"/firm/firm-list",method:"GET",params:e,secure:!0,responseType:"json"})}getFirm(e,t){return this.apiClient.request({...t,url:"/firm/firm",method:"GET",params:e,secure:!0,responseType:"json"})}postFirm(e,t){return this.apiClient.request({...t,url:"/firm/firm",method:"POST",data:e,secure:!0,contentType:h.Json,responseType:"json"})}putFirm(e,t,s){return this.apiClient.request({...s,url:"/firm/firm",method:"PUT",params:t,data:e,secure:!0,contentType:h.Json})}getFirmDataAccess(e,t){return this.apiClient.request({...t,url:"/firm/firm-data-access",method:"GET",params:e,secure:!0,responseType:"json"})}getUmaFirmList(e){return this.apiClient.request({...e,url:"/firm/uma-firm-list",method:"GET",secure:!0,responseType:"json"})}getSystemFirmDefaultData(e){return this.apiClient.request({...e,url:"/firm/system-firm-default-data",method:"GET",secure:!0,responseType:"json"})}putSystemFirmDefaultData(e,t){return this.apiClient.request({...t,url:"/firm/system-firm-default-data",method:"PUT",data:e,secure:!0,contentType:h.Json})}getFirmDefaultData(e,t){return this.apiClient.request({...t,url:"/firm/firm-default-data",method:"GET",params:e,secure:!0,responseType:"json"})}postFirmDefaultData(e,t,s){return this.apiClient.request({...s,url:"/firm/firm-default-data",method:"POST",params:t,data:e,secure:!0,contentType:h.Json})}putFirmDefaultData(e,t,s){return this.apiClient.request({...s,url:"/firm/firm-default-data",method:"PUT",params:t,data:e,secure:!0,contentType:h.Json})}}var G={};o(G,"FundWebQuote",()=>S);class S{constructor(t){this.apiClient=t,e(this)}getFund(e,t){return this.apiClient.request({...t,url:"/fund/fund",method:"GET",params:e,secure:!0,responseType:"json"})}getFundList(e){return this.apiClient.request({...e,url:"/fund/fund-list",method:"GET",secure:!0,responseType:"json"})}}var U={};o(U,"Log",()=>D);class D{constructor(t){this.apiClient=t,e(this)}getDataQueryActionList(e){return this.apiClient.request({...e,url:"/log/data-query-action-list",method:"GET",secure:!0,responseType:"json"})}getDataQueryLogByAction(e,t){return this.apiClient.request({...t,url:"/log/data-query-log-by-action",method:"GET",params:e,secure:!0,responseType:"json"})}getDataQueryLogByDataSource(e,t){return this.apiClient.request({...t,url:"/log/data-query-log-by-data-source",method:"GET",params:e,secure:!0,responseType:"json"})}getSnapshotCount(e,t){return this.apiClient.request({...t,url:"/log/snapshot-count",method:"GET",params:e,secure:!0,responseType:"json"})}postSnapshotReport(e,t,s){return this.apiClient.request({...s,url:"/log/snapshot-report",method:"POST",params:t,data:e,secure:!0,contentType:h.Json,responseType:"json"})}getModificationActionList(e){return this.apiClient.request({...e,url:"/log/modification-action-list",method:"GET",secure:!0,responseType:"json"})}getModificationLogByAction(e,t){return this.apiClient.request({...t,url:"/log/modification-log-by-action",method:"GET",params:e,secure:!0,responseType:"json"})}}var P={};o(P,"Permission",()=>$);class ${constructor(t){this.apiClient=t,e(this)}postPermission(e,t){return this.apiClient.request({...t,url:"/permission/permission",method:"POST",data:e,secure:!0,contentType:h.Json})}getPermission(e,t){return this.apiClient.request({...t,url:"/permission/permission",method:"GET",params:e,secure:!0,responseType:"json"})}deletePermission(e,t){return this.apiClient.request({...t,url:"/permission/permission",method:"DELETE",params:e,secure:!0})}}var w={};o(w,"Quote",()=>x);class x{constructor(t){this.apiClient=t,e(this)}postSymbolSearch(e,t,s){return this.apiClient.request({...s,url:"/quote/symbol-search",method:"POST",params:t,data:e,secure:!0,contentType:h.Json,responseType:"json"})}getBestQuote(e,t){return this.apiClient.request({...t,url:"/quote/best-quote",method:"GET",params:e,secure:!0,responseType:"json"})}getNbboSnapshot(e,t){return this.apiClient.request({...t,url:"/quote/nbbo-snapshot",method:"GET",params:e,secure:!0,responseType:"json"})}getLevel1(e,t){return this.apiClient.request({...t,url:"/quote/level1",method:"GET",params:e,secure:!0,responseType:"json"})}getRegionQuotes(e,t){return this.apiClient.request({...t,url:"/quote/region-quotes",method:"GET",params:e,secure:!0,responseType:"json"})}getTimeSale(e,t){return this.apiClient.request({...t,url:"/quote/time-sale",method:"GET",params:e,secure:!0,responseType:"json"})}getLastTrade(e,t){return this.apiClient.request({...t,url:"/quote/last-trade",method:"GET",params:e,secure:!0,responseType:"json"})}getIntradayChart(e,t){return this.apiClient.request({...t,url:"/quote/intraday-chart",method:"GET",params:e,secure:!0,responseType:"json"})}getHistoricalDayChart(e,t){return this.apiClient.request({...t,url:"/quote/historical-day-chart",method:"GET",params:e,secure:!0,responseType:"json"})}getHistoricalMinuteChart(e,t){return this.apiClient.request({...t,url:"/quote/historical-minute-chart",method:"GET",params:e,secure:!0,responseType:"json"})}getTop20(e,t){return this.apiClient.request({...t,url:"/quote/top-20",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionChain(e,t){return this.apiClient.request({...t,url:"/quote/option-chain",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionChainWithPaging(e,t,s){return this.apiClient.request({...s,url:"/quote/option-chain-with-paging",method:"GET",params:t,data:e,secure:!0,contentType:h.Json,responseType:"json"})}getOptionLevel1(e,t){return this.apiClient.request({...t,url:"/quote/option-level1",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionLevel1WithGreek(e,t){return this.apiClient.request({...t,url:"/quote/option-level1-with-greek",method:"GET",params:e,secure:!0,responseType:"json"})}getEquiductLevel1(e,t){return this.apiClient.request({...t,url:"/quote/equiduct-level1",method:"GET",params:e,secure:!0,responseType:"json"})}getBonds(e,t){return this.apiClient.request({...t,url:"/quote/bonds",method:"GET",params:e,secure:!0,responseType:"json"})}getBondsSearch(e,t){return this.apiClient.request({...t,url:"/quote/bonds-search",method:"GET",params:e,secure:!0})}getMutualFunds(e,t){return this.apiClient.request({...t,url:"/quote/mutual-funds",method:"GET",params:e,secure:!0,responseType:"json"})}getQuoddEod(e,t){return this.apiClient.request({...t,url:"/quote/quodd-eod",method:"GET",params:e,secure:!0,responseType:"json"})}getQuoddDelay(e,t){return this.apiClient.request({...t,url:"/quote/quodd-delay",method:"GET",params:e,secure:!0,responseType:"json"})}getIceIsin(e,t){return this.apiClient.request({...t,url:"/quote/ice-isin",method:"GET",params:e,secure:!0,responseType:"json"})}getIceEod(e,t){return this.apiClient.request({...t,url:"/quote/ice-eod",method:"GET",params:e,secure:!0,responseType:"json"})}getFxRate(e,t){return this.apiClient.request({...t,url:"/quote/fx-rate",method:"GET",params:e,secure:!0,responseType:"json"})}getFxTable(e,t){return this.apiClient.request({...t,url:"/quote/fx-table",method:"GET",params:e,secure:!0,responseType:"json"})}}var F={};o(F,"QuotesReformat",()=>L);class L{constructor(t){this.apiClient=t,e(this)}getEquity(e,t){return this.apiClient.request({...t,url:"/quotes/equity",method:"GET",params:e,secure:!0,responseType:"json"})}getEquityIntraday(e,t){return this.apiClient.request({...t,url:"/quotes/equity/intraday",method:"GET",params:e,secure:!0,responseType:"json"})}getEquityHistorical(e,t){return this.apiClient.request({...t,url:"/quotes/equity/historical",method:"GET",params:e,secure:!0,responseType:"json"})}getSearch(e,t){return this.apiClient.request({...t,url:"/quotes/search",method:"GET",params:e,secure:!0})}getOption(e,t){return this.apiClient.request({...t,url:"/quotes/option",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionChain(e,t,s,r){return this.apiClient.request({...r,url:`/quotes/option/chain/${e}/${t}`,method:"GET",params:s,secure:!0,responseType:"json"})}getBonds(e,t){return this.apiClient.request({...t,url:"/quotes/bonds",method:"GET",params:e,secure:!0,responseType:"json"})}getBondsSearch(e,t){return this.apiClient.request({...t,url:"/quotes/bonds/search",method:"GET",params:e,secure:!0})}getQuotesReformat(e,t){return this.apiClient.request({...t,url:"/quotes/fx",method:"GET",params:e,secure:!0,responseType:"json"})}}var O={};o(O,"UmaTest",()=>J);class J{constructor(t){this.apiClient=t,e(this)}getRevokeUmaUser(e,t){return this.apiClient.request({...t,url:"/uma-test/revoke-uma-user",method:"GET",params:e,secure:!0})}getFirmList(e){return this.apiClient.request({...e,url:"/uma-test/firm-list",method:"GET",secure:!0,responseType:"json"})}getFirmListToLocal(e){return this.apiClient.request({...e,url:"/uma-test/firm-list-to-local",method:"GET",secure:!0})}getB2BUserById(e,t){return this.apiClient.request({...t,url:"/uma-test/b2b-user-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getB2BUserList(e){return this.apiClient.request({...e,url:"/uma-test/b2b-user-list",method:"GET",secure:!0,responseType:"json"})}getB2BUserListToLocal(e){return this.apiClient.request({...e,url:"/uma-test/b2b-user-list-to-local",method:"GET",secure:!0})}getB2CUserById(e,t){return this.apiClient.request({...t,url:"/uma-test/b2c-user-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getB2CUserList(e){return this.apiClient.request({...e,url:"/uma-test/b2c-user-list",method:"GET",secure:!0,responseType:"json"})}getB2CUserListToLocal(e){return this.apiClient.request({...e,url:"/uma-test/b2c-user-list-to-local",method:"GET",secure:!0})}}var B={};o(B,"User",()=>A);class A{constructor(t){this.apiClient=t,e(this)}postRegisterRegular(e,t){return this.apiClient.request({...t,url:"/user/register-regular",method:"POST",data:e,secure:!0,contentType:h.Json})}postRegisterAdmin(e,t){return this.apiClient.request({...t,url:"/user/register-admin",method:"POST",data:e,secure:!0,contentType:h.Json})}postRegisterManager(e,t){return this.apiClient.request({...t,url:"/user/register-manager",method:"POST",data:e,secure:!0,contentType:h.Json})}postRegisterUmaB2BUser(e,t){return this.apiClient.request({...t,url:"/user/register-uma-b2b-user",method:"POST",data:e,secure:!0,contentType:h.Json})}postRegisterUmaB2CUser(e,t){return this.apiClient.request({...t,url:"/user/register-uma-b2c-user",method:"POST",data:e,secure:!0,contentType:h.Json})}getUmaB2BUserList(e,t){return this.apiClient.request({...t,url:"/user/uma-b2b-user-list",method:"GET",params:e,secure:!0,responseType:"json"})}getUmaB2CUserList(e,t){return this.apiClient.request({...t,url:"/user/uma-b2c-user-list",method:"GET",params:e,secure:!0,responseType:"json"})}postLogin(e,t){return this.apiClient.request({...t,url:"/user/login",method:"POST",data:e,secure:!0,contentType:h.Json})}getLogout(e,t){return this.apiClient.request({...t,url:"/user/logout",method:"GET",params:e,secure:!0})}putPhoneNumber(e,t){return this.apiClient.request({...t,url:"/user/phone-number",method:"PUT",data:e,secure:!0,contentType:h.Json})}putEmail(e,t){return this.apiClient.request({...t,url:"/user/email",method:"PUT",data:e,secure:!0,contentType:h.Json})}putChangePassword(e,t){return this.apiClient.request({...t,url:"/user/change-password",method:"PUT",data:e,secure:!0,contentType:h.Json})}getResetUserPassword(e,t){return this.apiClient.request({...t,url:"/user/reset-user-password",method:"GET",params:e,secure:!0})}getUserNameById(e,t){return this.apiClient.request({...t,url:"/user/user-name-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getUserIdByName(e,t){return this.apiClient.request({...t,url:"/user/user-id-by-name",method:"GET",params:e,secure:!0,responseType:"json"})}getUserByName(e,t){return this.apiClient.request({...t,url:"/user/user-by-name",method:"GET",params:e,secure:!0,responseType:"json"})}getUsersById(e,t){return this.apiClient.request({...t,url:"/user/users-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}postUsersFuzzy(e,t,s){return this.apiClient.request({...s,url:"/user/users-fuzzy",method:"POST",params:t,data:e,secure:!0,contentType:h.Json,responseType:"json"})}getUsersByFirm(e,t){return this.apiClient.request({...t,url:"/user/users-by-firm",method:"GET",params:e,secure:!0,responseType:"json"})}postUsersByMultipleConditions(e,t,s){return this.apiClient.request({...s,url:"/user/users-by-multiple-conditions",method:"POST",params:t,data:e,secure:!0,contentType:h.Json,responseType:"json"})}postSuperAdmins(e,t){return this.apiClient.request({...t,url:"/user/super-admins",method:"POST",data:e,secure:!0,contentType:h.Json,responseType:"json"})}deleteUser(e,t){return this.apiClient.request({...t,url:"/user/user",method:"DELETE",params:e,secure:!0})}getUserRole(e,t){return this.apiClient.request({...t,url:"/user/user-role",method:"GET",params:e,secure:!0})}postUserInformation(e,t){return this.apiClient.request({...t,url:"/user/user-information",method:"POST",data:e,secure:!0,contentType:h.Json,responseType:"json"})}putUserInformation(e,t,s){return this.apiClient.request({...s,url:"/user/user-information",method:"PUT",params:t,data:e,secure:!0,contentType:h.Json})}getUserInformationById(e,t){return this.apiClient.request({...t,url:"/user/user-information-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getOccupationList(e){return this.apiClient.request({...e,url:"/user/occupation-list",method:"GET",secure:!0,responseType:"json"})}postUserDataConfig(e,t){return this.apiClient.request({...t,url:"/user/user-data-config",method:"POST",data:e,secure:!0,contentType:h.Json,responseType:"json"})}putUserDataConfig(e,t,s){return this.apiClient.request({...s,url:"/user/user-data-config",method:"PUT",params:t,data:e,secure:!0,contentType:h.Json})}getUserDataConfigById(e,t){return this.apiClient.request({...t,url:"/user/user-data-config-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getUserDataConfigByIdExtraInfo(e,t){return this.apiClient.request({...t,url:"/user/user-data-config-by-id-extra-info",method:"GET",params:e,secure:!0,responseType:"json"})}getUserDataConfigs(e,t){return this.apiClient.request({...t,url:"/user/user-data-configs",method:"GET",params:e,secure:!0,responseType:"json"})}getUserNeedSignAgreements(e,t){return this.apiClient.request({...t,url:"/user/user-need-sign-agreements",method:"GET",params:e,secure:!0,responseType:"json"})}getSessionAlive(e){return this.apiClient.request({...e,url:"/user/session-alive",method:"GET",secure:!0,responseType:"json"})}getTest(e){return this.apiClient.request({...e,url:"/user/Test",method:"GET",secure:!0,responseType:"json"})}}var R={};o(R,"WebSocket",()=>v);class v{constructor(t){this.apiClient=t,e(this)}getWebSocket(e){return this.apiClient.request({...e,url:"/ws",method:"GET",secure:!0})}}var I={};o(I,"WsStream",()=>k);class k{constructor(t){this.apiClient=t,e(this)}getStream(e){return this.apiClient.request({...e,url:"/stream",method:"GET",secure:!0})}}p(T,y),p(T,q),p(T,f),p(T,j),p(T,G),p(T,U),p(T,P),p(T,w),p(T,F),p(T,{}),p(T,O),p(T,B),p(T,R),p(T,I);class Q extends l{constructor(e){super(new d(e)),this.config=e,this.dataSource=new g(this.apiClient),this.entitlement=new C(this.apiClient),this.file=new E(this.apiClient),this.firm=new b(this.apiClient),this.fundWebQuote=new S(this.apiClient),this.log=new D(this.apiClient),this.permission=new $(this.apiClient),this.quote=new x(this.apiClient),this.quotesReformat=new L(this.apiClient),this.user=new A(this.apiClient),this.webSocket=new v(this.apiClient),this.wsStream=new k(this.apiClient)}}export{Q as AesMidasApi,g as DataSource,C as Entitlement,E as File,b as Firm,S as FundWebQuote,D as Log,$ as Permission,x as Quote,L as QuotesReformat,J as UmaTest,A as User,v as WebSocket,k as WsStream};
1
+ import $5CwE8$autobind from "auto-bind";
2
+ import {Mutex as $5CwE8$Mutex, E_CANCELED as $5CwE8$E_CANCELED} from "async-mutex";
3
+ import {consola as $5CwE8$consola} from "consola";
4
+ import {isBefore as $5CwE8$isBefore, subMinutes as $5CwE8$subMinutes} from "date-fns";
5
+ import {jwtDecode as $5CwE8$jwtDecode} from "jwt-decode";
6
+ import $5CwE8$axios, {isAxiosError as $5CwE8$isAxiosError} from "axios";
7
+ import $5CwE8$axiosbetterstacktrace from "axios-better-stacktrace";
8
+ import {isNil as $5CwE8$isNil, merge as $5CwE8$merge} from "lodash";
9
+
10
+
11
+ function $parcel$export(e, n, v, s) {
12
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
13
+ }
14
+
15
+ function $parcel$exportWildcard(dest, source) {
16
+ Object.keys(source).forEach(function(key) {
17
+ if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
18
+ return;
19
+ }
20
+
21
+ Object.defineProperty(dest, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return source[key];
25
+ }
26
+ });
27
+ });
28
+
29
+ return dest;
30
+ }
31
+ var $e27b116a6f94964e$exports = {};
32
+
33
+ $parcel$export($e27b116a6f94964e$exports, "AesMidasApi", () => $e27b116a6f94964e$export$fdc699bad85078d9);
34
+
35
+ class $001a7a5b1ca54b2d$export$3ad201792064a82b {
36
+ // request: ApiClient['request'];
37
+ // get: ApiClient['get'];
38
+ // delete: ApiClient['delete'];
39
+ // head: ApiClient['head'];
40
+ // options: ApiClient['options'];
41
+ // post: ApiClient['post'];
42
+ // put: ApiClient['put'];
43
+ // patch: ApiClient['patch'];
44
+ constructor(apiClient){
45
+ this.apiClient = apiClient;
46
+ (0, $5CwE8$autobind)(this);
47
+ // this.request = this.client.request;
48
+ // this.get = this.client.get;
49
+ // this.delete = this.client.delete;
50
+ // this.head = this.client.head;
51
+ // this.options = this.client.options;
52
+ // this.post = this.client.post;
53
+ // this.put = this.client.put;
54
+ // this.patch = this.client.patch;
55
+ // this.get = this.client.get;
56
+ }
57
+ getApiClient() {
58
+ return this.apiClient;
59
+ }
60
+ }
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ var $e176194f300187e4$export$e2e108cbe2e4f865 = /*#__PURE__*/ function(ContentType) {
72
+ ContentType["Json"] = "application/json";
73
+ ContentType["FormData"] = "multipart/form-data";
74
+ ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
75
+ ContentType["Text"] = "text/plain";
76
+ return ContentType;
77
+ }({});
78
+ class $e176194f300187e4$export$4f22f74eddb7716a {
79
+ constructor(config){
80
+ this.config = config;
81
+ (0, $5CwE8$autobind)(this);
82
+ this.storage = config.storage ?? sessionStorage;
83
+ this.axiosInstance = (0, $5CwE8$axios).create({
84
+ baseURL: config.baseUrl,
85
+ headers: {
86
+ 'Content-Type': 'application/json',
87
+ ...config.defaultHeaders
88
+ }
89
+ });
90
+ (0, $5CwE8$axiosbetterstacktrace)(this.axiosInstance);
91
+ }
92
+ stringifyFormItem(formItem) {
93
+ if (typeof formItem === 'object' && formItem !== null) return JSON.stringify(formItem);
94
+ else return `${formItem}`;
95
+ }
96
+ createFormData(input) {
97
+ if (input instanceof FormData) return input;
98
+ return Object.keys(input).reduce((formData, key)=>{
99
+ const property = input[key];
100
+ const propertyContent = property instanceof Array ? property : [
101
+ property
102
+ ];
103
+ for (const formItem of propertyContent){
104
+ const isFileType = formItem instanceof Blob || formItem instanceof File;
105
+ formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
106
+ }
107
+ return formData;
108
+ }, new FormData());
109
+ }
110
+ async request(requestConfig) {
111
+ const { contentType: contentType, data: data } = requestConfig;
112
+ if (!(0, $5CwE8$isNil)(data)) {
113
+ if (contentType === "multipart/form-data" && typeof data === 'object') requestConfig.data = this.createFormData(data);
114
+ if (contentType === "text/plain" && typeof data !== 'string') requestConfig.data = JSON.stringify(data);
115
+ }
116
+ const mergedConfig = (0, $5CwE8$merge)(requestConfig.secure ?? this.config.defaultSecure ?? true ? await this.prepareAuthRequestConfig() : {}, contentType ? {
117
+ headers: {
118
+ 'Content-Type': contentType
119
+ }
120
+ } : {}, requestConfig);
121
+ try {
122
+ const { data: data, status: status, statusText: statusText } = await this.axiosInstance.request(mergedConfig);
123
+ return {
124
+ success: true,
125
+ data: data,
126
+ status: status,
127
+ statusText: statusText
128
+ };
129
+ } catch (error) {
130
+ if (!this.config.handleError && !requestConfig.handleError) throw error;
131
+ const result = {
132
+ success: false,
133
+ status: -1,
134
+ statusText: String(error),
135
+ error: error
136
+ };
137
+ if ((0, $5CwE8$isAxiosError)(error)) {
138
+ this.config.onAxiosError?.(error);
139
+ result.data = error.response?.data;
140
+ result.status = error.response?.status ?? result.status;
141
+ result.statusText = error.response?.statusText ?? result.statusText;
142
+ }
143
+ this.config.onError?.(error);
144
+ return result;
145
+ }
146
+ }
147
+ get(url, config) {
148
+ return this.request({
149
+ ...config,
150
+ method: 'GET',
151
+ url: url
152
+ });
153
+ }
154
+ delete(url, config) {
155
+ return this.request({
156
+ ...config,
157
+ method: 'DELETE',
158
+ url: url
159
+ });
160
+ }
161
+ head(url, config) {
162
+ return this.request({
163
+ ...config,
164
+ method: 'HEAD',
165
+ url: url
166
+ });
167
+ }
168
+ options(url, config) {
169
+ return this.request({
170
+ ...config,
171
+ method: 'OPTIONS',
172
+ url: url
173
+ });
174
+ }
175
+ post(url, data, config) {
176
+ return this.request({
177
+ ...config,
178
+ method: 'POST',
179
+ url: url,
180
+ data: data
181
+ });
182
+ }
183
+ put(url, data, config) {
184
+ return this.request({
185
+ ...config,
186
+ method: 'PUT',
187
+ url: url,
188
+ data: data
189
+ });
190
+ }
191
+ patch(url, data, config) {
192
+ return this.request({
193
+ ...config,
194
+ method: 'PATCH',
195
+ url: url,
196
+ data: data
197
+ });
198
+ }
199
+ getAxios() {
200
+ return this.axiosInstance;
201
+ }
202
+ setAuthData(data) {
203
+ this.storage.setItem(this.config.authDataStorageKey || 'auth', JSON.stringify(data));
204
+ }
205
+ getAuthData() {
206
+ const data = this.storage.getItem(this.config.authDataStorageKey || 'auth');
207
+ return data ? JSON.parse(data) : null;
208
+ }
209
+ getConfig() {
210
+ return this.config;
211
+ }
212
+ }
213
+
214
+
215
+ class $584c124673bb843e$export$f280b732bbc5934b extends (0, $e176194f300187e4$export$4f22f74eddb7716a) {
216
+ constructor(config){
217
+ super(config), this.config = config, this.lock = new (0, $5CwE8$Mutex)();
218
+ }
219
+ getConfig() {
220
+ return super.getConfig();
221
+ }
222
+ setRenewTokenCallback(renewTokenCallback) {
223
+ this.renewTokenCallback = renewTokenCallback;
224
+ }
225
+ async prepareAuthRequestConfig() {
226
+ let { accessToken: accessToken } = this.getAuthData() || {};
227
+ if (!accessToken) {
228
+ (0, $5CwE8$consola).warn('No access token found. Please set auth data after authorization.');
229
+ return {};
230
+ }
231
+ if (this.config.autoRenewToken !== false && this.isTokenExpired(accessToken)) try {
232
+ await this.lock.runExclusive(async ()=>{
233
+ (0, $5CwE8$consola).info("Token expired. Renewing\u2026");
234
+ await this.renewToken();
235
+ this.lock.cancel();
236
+ });
237
+ } catch (error) {
238
+ if (error === (0, $5CwE8$E_CANCELED)) accessToken = this.getAuthData()?.accessToken;
239
+ else throw error;
240
+ }
241
+ return {
242
+ headers: {
243
+ Authorization: `${this.config.authSchema ?? 'Bearer'} ${accessToken}`
244
+ }
245
+ };
246
+ }
247
+ isTokenExpired(token) {
248
+ const payload = (0, $5CwE8$jwtDecode)(token);
249
+ if (!payload.exp) return true;
250
+ return (0, $5CwE8$isBefore)((0, $5CwE8$subMinutes)(payload.exp * 1000, 5), Date.now());
251
+ }
252
+ async renewToken() {
253
+ if (!this.renewTokenCallback) throw new Error('No renew token callback provided');
254
+ const authData = await this.renewTokenCallback();
255
+ this.setAuthData(authData);
256
+ }
257
+ }
258
+
259
+
260
+ var $40adcf017c67f573$exports = {};
261
+ var $22a5bbde33c0a998$exports = {};
262
+
263
+ $parcel$export($22a5bbde33c0a998$exports, "DataSource", () => $22a5bbde33c0a998$export$accd73d198d77d2f);
264
+ /* eslint-disable */ /* tslint:disable */ /*
265
+ * ---------------------------------------------------------------
266
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
267
+ * ## ##
268
+ * ## AUTHOR: acacode ##
269
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
270
+ * ---------------------------------------------------------------
271
+ */
272
+ /* eslint-disable */ /* tslint:disable */ /*
273
+ * ---------------------------------------------------------------
274
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
275
+ * ## ##
276
+ * ## AUTHOR: acacode ##
277
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
278
+ * ---------------------------------------------------------------
279
+ */
280
+
281
+
282
+ class $22a5bbde33c0a998$export$accd73d198d77d2f {
283
+ constructor(apiClient){
284
+ this.apiClient = apiClient;
285
+ (0, $5CwE8$autobind)(this);
286
+ }
287
+ /**
288
+ * @description All parameters are optional
289
+ * @tags DataSource
290
+ * @name GetDataSourceList
291
+ * @summary Query all DataSources in the whole system with optional filters - All users - available in Microservice, POST with pagination and sort
292
+ * @request GET:/api/datasource/data-source-list
293
+ * @secure
294
+ */ getDataSourceList(query, config) {
295
+ return this.apiClient.request({
296
+ ...config,
297
+ url: `/datasource/data-source-list`,
298
+ method: 'GET',
299
+ params: query,
300
+ secure: true,
301
+ responseType: 'json'
302
+ });
303
+ }
304
+ /**
305
+ * @tags DataSource
306
+ * @name GetDataSource
307
+ * @summary Query a specific DataSource by unique DataSource Name - All users - available in Microservice
308
+ * @request GET:/api/datasource/data-source
309
+ * @secure
310
+ */ getDataSource(query, config) {
311
+ return this.apiClient.request({
312
+ ...config,
313
+ url: `/datasource/data-source`,
314
+ method: 'GET',
315
+ params: query,
316
+ secure: true,
317
+ responseType: 'json'
318
+ });
319
+ }
320
+ /**
321
+ * @description Create a new DataSource with/without an existing Entitlement
322
+ * @tags DataSource
323
+ * @name PostDataSource
324
+ * @summary Create a new DataSource - Super admin - available in Microservice
325
+ * @request POST:/api/datasource/data-source
326
+ * @secure
327
+ */ postDataSource(data, config) {
328
+ return this.apiClient.request({
329
+ ...config,
330
+ url: `/datasource/data-source`,
331
+ method: 'POST',
332
+ data: data,
333
+ secure: true,
334
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
335
+ responseType: 'json'
336
+ });
337
+ }
338
+ /**
339
+ * @description If modification is Entitlement related, server will unsign old entitlement in firms and users
340
+ * @tags DataSource
341
+ * @name PutDataSource
342
+ * @summary Update an existing DataSource - Super admin - available in Microservice
343
+ * @request PUT:/api/datasource/data-source
344
+ * @secure
345
+ */ putDataSource(data, query, config) {
346
+ return this.apiClient.request({
347
+ ...config,
348
+ url: `/datasource/data-source`,
349
+ method: 'PUT',
350
+ params: query,
351
+ data: data,
352
+ secure: true,
353
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
354
+ });
355
+ }
356
+ /**
357
+ * @description !Caution! It will remove all related data setting and unsign all related entitlement in firms and users
358
+ * @tags DataSource
359
+ * @name DeleteDataSource
360
+ * @summary Delete an existing DataSource - Super admin - available in Microservice
361
+ * @request DELETE:/api/datasource/data-source
362
+ * @secure
363
+ */ deleteDataSource(query, config) {
364
+ return this.apiClient.request({
365
+ ...config,
366
+ url: `/datasource/data-source`,
367
+ method: 'DELETE',
368
+ params: query,
369
+ secure: true
370
+ });
371
+ }
372
+ /**
373
+ * @tags DataSource
374
+ * @name GetDataSourceTallyCount
375
+ * @summary For ViewTrade admin to generate data source tally report - Super admin - available in Microservice
376
+ * @request GET:/api/datasource/data-source-tally-count
377
+ * @secure
378
+ */ getDataSourceTallyCount(config) {
379
+ return this.apiClient.request({
380
+ ...config,
381
+ url: `/datasource/data-source-tally-count`,
382
+ method: 'GET',
383
+ secure: true,
384
+ responseType: 'json'
385
+ });
386
+ }
387
+ /**
388
+ * @tags DataSource
389
+ * @name PostDataSourceTallyReport
390
+ * @summary For ViewTrade admin to generate data source tally report with Pagination and Sort - Super admin - available in Microservice
391
+ * @request POST:/api/datasource/data-source-tally-report
392
+ * @secure
393
+ */ postDataSourceTallyReport(data, query, config) {
394
+ return this.apiClient.request({
395
+ ...config,
396
+ url: `/datasource/data-source-tally-report`,
397
+ method: 'POST',
398
+ params: query,
399
+ data: data,
400
+ secure: true,
401
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
402
+ responseType: 'json'
403
+ });
404
+ }
405
+ }
406
+
407
+
408
+ var $78eb44ae01cb99e8$exports = {};
409
+
410
+ $parcel$export($78eb44ae01cb99e8$exports, "Entitlement", () => $78eb44ae01cb99e8$export$7b20d168ba04011b);
411
+ /* eslint-disable */ /* tslint:disable */ /*
412
+ * ---------------------------------------------------------------
413
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
414
+ * ## ##
415
+ * ## AUTHOR: acacode ##
416
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
417
+ * ---------------------------------------------------------------
418
+ */
419
+
420
+ class $78eb44ae01cb99e8$export$7b20d168ba04011b {
421
+ constructor(apiClient){
422
+ this.apiClient = apiClient;
423
+ (0, $5CwE8$autobind)(this);
424
+ }
425
+ /**
426
+ * @description bitwise in Datasource: 1 UTP, 2 CTA, 3 CBOE1, 4 OPRA, 5 DJI, 6 SP500, 7 CAN, 8 SNAPSHOT
427
+ * @tags Entitlement
428
+ * @name GetEntitlementList
429
+ * @summary Query all available Entitlements(agreements) in the system - All users - available in Microservice, POST with pagination and sort
430
+ * @request GET:/api/entitlement/entitlement-list
431
+ * @secure
432
+ */ getEntitlementList(query, config) {
433
+ return this.apiClient.request({
434
+ ...config,
435
+ url: `/entitlement/entitlement-list`,
436
+ method: 'GET',
437
+ params: query,
438
+ secure: true,
439
+ responseType: 'json'
440
+ });
441
+ }
442
+ /**
443
+ * @tags Entitlement
444
+ * @name GetEntitlement
445
+ * @summary Query a specific Entitlement by unique EntitlementName - All users - available in Microservice
446
+ * @request GET:/api/entitlement/entitlement
447
+ * @secure
448
+ */ getEntitlement(query, config) {
449
+ return this.apiClient.request({
450
+ ...config,
451
+ url: `/entitlement/entitlement`,
452
+ method: 'GET',
453
+ params: query,
454
+ secure: true,
455
+ responseType: 'json'
456
+ });
457
+ }
458
+ /**
459
+ * @description Files can be uploaded along with entitlement. File ids can be left blank, server will generate and update file ids to the entitlement.
460
+ * @tags Entitlement
461
+ * @name PostEntitlement
462
+ * @summary Create a new Entitlement(Agreement) - Super admin - available in Microservice
463
+ * @request POST:/api/entitlement/entitlement
464
+ * @secure
465
+ */ postEntitlement(data, config) {
466
+ return this.apiClient.request({
467
+ ...config,
468
+ url: `/entitlement/entitlement`,
469
+ method: 'POST',
470
+ data: data,
471
+ secure: true,
472
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
473
+ responseType: 'json'
474
+ });
475
+ }
476
+ /**
477
+ * @tags Entitlement
478
+ * @name PutEntitlement
479
+ * @summary Update an existing Entitlement - Super admin - available in Microservice
480
+ * @request PUT:/api/entitlement/entitlement
481
+ * @secure
482
+ */ putEntitlement(data, query, config) {
483
+ return this.apiClient.request({
484
+ ...config,
485
+ url: `/entitlement/entitlement`,
486
+ method: 'PUT',
487
+ params: query,
488
+ data: data,
489
+ secure: true,
490
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
491
+ });
492
+ }
493
+ /**
494
+ * @description If an entitlement is being used in a datasource, it cannot be deleted.
495
+ * @tags Entitlement
496
+ * @name DeleteEntitlement
497
+ * @summary Delete an existing Entitlement - Super admin - available in Microservice
498
+ * @request DELETE:/api/entitlement/entitlement
499
+ * @secure
500
+ */ deleteEntitlement(query, config) {
501
+ return this.apiClient.request({
502
+ ...config,
503
+ url: `/entitlement/entitlement`,
504
+ method: 'DELETE',
505
+ params: query,
506
+ secure: true
507
+ });
508
+ }
509
+ /**
510
+ * @tags Entitlement
511
+ * @name GetUserEntitlement
512
+ * @summary Query a specific UserEntitlement by userid and eneitlement name - End user itself, or firm manager, or super admin - available in Microservice
513
+ * @request GET:/api/entitlement/user-entitlement
514
+ * @secure
515
+ */ getUserEntitlement(query, config) {
516
+ return this.apiClient.request({
517
+ ...config,
518
+ url: `/entitlement/user-entitlement`,
519
+ method: 'GET',
520
+ params: query,
521
+ secure: true,
522
+ responseType: 'json'
523
+ });
524
+ }
525
+ /**
526
+ * @tags Entitlement
527
+ * @name GetUserEntitlementList
528
+ * @summary Query all UserEntitlements for a specific user - End user itself, or firm manager, or super admin - available in Microservice, POST with pagination and sort
529
+ * @request GET:/api/entitlement/user-entitlement-list
530
+ * @secure
531
+ */ getUserEntitlementList(query, config) {
532
+ return this.apiClient.request({
533
+ ...config,
534
+ url: `/entitlement/user-entitlement-list`,
535
+ method: 'GET',
536
+ params: query,
537
+ secure: true,
538
+ responseType: 'json'
539
+ });
540
+ }
541
+ /**
542
+ * @tags Entitlement
543
+ * @name GetEntitlementUserList
544
+ * @summary Query all UserEntitlements for a specific Entitlement - Super admin - available in Microservice, POST with pagination and sort
545
+ * @request GET:/api/entitlement/entitlement-user-list
546
+ * @secure
547
+ */ getEntitlementUserList(query, config) {
548
+ return this.apiClient.request({
549
+ ...config,
550
+ url: `/entitlement/entitlement-user-list`,
551
+ method: 'GET',
552
+ params: query,
553
+ secure: true,
554
+ responseType: 'json'
555
+ });
556
+ }
557
+ /**
558
+ * @tags Entitlement
559
+ * @name GetUserEntitlementHistory
560
+ * @summary Query history for a UserEntitlement - Super admin - available in Microservice, POST with pagination and sort
561
+ * @request GET:/api/entitlement/user-entitlement-history
562
+ * @secure
563
+ */ getUserEntitlementHistory(query, config) {
564
+ return this.apiClient.request({
565
+ ...config,
566
+ url: `/entitlement/user-entitlement-history`,
567
+ method: 'GET',
568
+ params: query,
569
+ secure: true,
570
+ responseType: 'json'
571
+ });
572
+ }
573
+ /**
574
+ * @description Create a new UserEntitlement if not existing previously. Update UserEntitlement if already exists.
575
+ * @tags Entitlement
576
+ * @name PutSignEntitlement
577
+ * @summary Sign a UserEntitlement - All users - available in Microservice
578
+ * @request PUT:/api/entitlement/sign-entitlement
579
+ * @secure
580
+ */ putSignEntitlement(data, config) {
581
+ return this.apiClient.request({
582
+ ...config,
583
+ url: `/entitlement/sign-entitlement`,
584
+ method: 'PUT',
585
+ data: data,
586
+ secure: true,
587
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
588
+ });
589
+ }
590
+ /**
591
+ * @tags Entitlement
592
+ * @name PutUnsignEntitlement
593
+ * @summary Unsign a UserEntitlement - End user itself, or firm manager, or super admin - available in Microservice
594
+ * @request PUT:/api/entitlement/unsign-entitlement
595
+ * @secure
596
+ */ putUnsignEntitlement(query, config) {
597
+ return this.apiClient.request({
598
+ ...config,
599
+ url: `/entitlement/unsign-entitlement`,
600
+ method: 'PUT',
601
+ params: query,
602
+ secure: true
603
+ });
604
+ }
605
+ /**
606
+ * @tags Entitlement
607
+ * @name GetContractsCount
608
+ * @summary For ViewTrade admin to Get contract counts for a specific firm and entitlement - Super admin - available in Microservice
609
+ * @request GET:/api/entitlement/contracts-count
610
+ * @secure
611
+ */ getContractsCount(query, config) {
612
+ return this.apiClient.request({
613
+ ...config,
614
+ url: `/entitlement/contracts-count`,
615
+ method: 'GET',
616
+ params: query,
617
+ secure: true,
618
+ responseType: 'json'
619
+ });
620
+ }
621
+ /**
622
+ * @tags Entitlement
623
+ * @name PostContractsReport
624
+ * @summary For ViewTrade admin to generate contract counts report for a specific firm and entitlement with paginition and sort - Super admin - available in Microservice
625
+ * @request POST:/api/entitlement/contracts-report
626
+ * @secure
627
+ */ postContractsReport(data, query, config) {
628
+ return this.apiClient.request({
629
+ ...config,
630
+ url: `/entitlement/contracts-report`,
631
+ method: 'POST',
632
+ params: query,
633
+ data: data,
634
+ secure: true,
635
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
636
+ responseType: 'json'
637
+ });
638
+ }
639
+ /**
640
+ * @tags Entitlement
641
+ * @name GetFirmEntitlement
642
+ * @summary Query a specific FirmEntitlement - Firm manager, or super admin - available in Microservice
643
+ * @request GET:/api/entitlement/firm-entitlement
644
+ * @secure
645
+ */ getFirmEntitlement(query, config) {
646
+ return this.apiClient.request({
647
+ ...config,
648
+ url: `/entitlement/firm-entitlement`,
649
+ method: 'GET',
650
+ params: query,
651
+ secure: true,
652
+ responseType: 'json'
653
+ });
654
+ }
655
+ /**
656
+ * @tags Entitlement
657
+ * @name PostFirmEntitlement
658
+ * @summary Create a new FirmEntitlement - Super admin - available in Microservice
659
+ * @request POST:/api/entitlement/firm-entitlement
660
+ * @secure
661
+ */ postFirmEntitlement(data, config) {
662
+ return this.apiClient.request({
663
+ ...config,
664
+ url: `/entitlement/firm-entitlement`,
665
+ method: 'POST',
666
+ data: data,
667
+ secure: true,
668
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
669
+ responseType: 'json'
670
+ });
671
+ }
672
+ /**
673
+ * @description Firm must have relevant data setting if need to active a FirmEntitlement./n!Caution! If de-active a FirmEntitlement, it will unsign all UserEntitlements in this firm for the relevant entitlement.
674
+ * @tags Entitlement
675
+ * @name PutFirmEntitlement
676
+ * @summary Upadte an existing FirmEntitlement - Super admin - available in Microservice
677
+ * @request PUT:/api/entitlement/firm-entitlement
678
+ * @secure
679
+ */ putFirmEntitlement(data, query, config) {
680
+ return this.apiClient.request({
681
+ ...config,
682
+ url: `/entitlement/firm-entitlement`,
683
+ method: 'PUT',
684
+ params: query,
685
+ data: data,
686
+ secure: true,
687
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
688
+ });
689
+ }
690
+ /**
691
+ * @description !Caution! This action will unsign all UserEntitlements in this firm for the relevant entitlement.
692
+ * @tags Entitlement
693
+ * @name DeleteFirmEntitlement
694
+ * @summary Delete an existing FirmEntitlement - Super admin - available in Microservice
695
+ * @request DELETE:/api/entitlement/firm-entitlement
696
+ * @secure
697
+ */ deleteFirmEntitlement(query, config) {
698
+ return this.apiClient.request({
699
+ ...config,
700
+ url: `/entitlement/firm-entitlement`,
701
+ method: 'DELETE',
702
+ params: query,
703
+ secure: true
704
+ });
705
+ }
706
+ /**
707
+ * @tags Entitlement
708
+ * @name GetFirmEntitlementList
709
+ * @summary Query all FirmEntitlements for a specific firm - Firm manager, or super admin - available in Microservice, POST with pagination and sort
710
+ * @request GET:/api/entitlement/firm-entitlement-list
711
+ * @secure
712
+ */ getFirmEntitlementList(query, config) {
713
+ return this.apiClient.request({
714
+ ...config,
715
+ url: `/entitlement/firm-entitlement-list`,
716
+ method: 'GET',
717
+ params: query,
718
+ secure: true,
719
+ responseType: 'json'
720
+ });
721
+ }
722
+ /**
723
+ * @tags Entitlement
724
+ * @name GetEntitlementFirmList
725
+ * @summary Query all FirmEntitlements for a specific Entitlement - Super admin - available in Microservice, POST with pagination and sort
726
+ * @request GET:/api/entitlement/entitlement-firm-list
727
+ * @secure
728
+ */ getEntitlementFirmList(query, config) {
729
+ return this.apiClient.request({
730
+ ...config,
731
+ url: `/entitlement/entitlement-firm-list`,
732
+ method: 'GET',
733
+ params: query,
734
+ secure: true,
735
+ responseType: 'json'
736
+ });
737
+ }
738
+ /**
739
+ * @tags Entitlement
740
+ * @name GetFirmEntitlementHistory
741
+ * @summary Query history of a specific FirmEntitlement - Super admin - available in Microservice, POST with pagination and sort
742
+ * @request GET:/api/entitlement/firm-entitlement-history
743
+ * @secure
744
+ */ getFirmEntitlementHistory(query, config) {
745
+ return this.apiClient.request({
746
+ ...config,
747
+ url: `/entitlement/firm-entitlement-history`,
748
+ method: 'GET',
749
+ params: query,
750
+ secure: true,
751
+ responseType: 'json'
752
+ });
753
+ }
754
+ }
755
+
756
+
757
+ var $2b62f356558f69db$exports = {};
758
+
759
+ $parcel$export($2b62f356558f69db$exports, "File", () => $2b62f356558f69db$export$b6afa8811b7e644e);
760
+ /* eslint-disable */ /* tslint:disable */ /*
761
+ * ---------------------------------------------------------------
762
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
763
+ * ## ##
764
+ * ## AUTHOR: acacode ##
765
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
766
+ * ---------------------------------------------------------------
767
+ */
768
+
769
+ class $2b62f356558f69db$export$b6afa8811b7e644e {
770
+ constructor(apiClient){
771
+ this.apiClient = apiClient;
772
+ (0, $5CwE8$autobind)(this);
773
+ }
774
+ /**
775
+ * @tags File
776
+ * @name PostUpload
777
+ * @summary upload file - All users - available in Microservice
778
+ * @request POST:/api/file/upload
779
+ * @secure
780
+ */ postUpload(data, config) {
781
+ return this.apiClient.request({
782
+ ...config,
783
+ url: `/file/upload`,
784
+ method: 'POST',
785
+ data: data,
786
+ secure: true,
787
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
788
+ responseType: 'json'
789
+ });
790
+ }
791
+ /**
792
+ * @tags File
793
+ * @name GetDownload
794
+ * @summary download file by file id - All users - available in Microservice
795
+ * @request GET:/api/file/download
796
+ * @secure
797
+ */ getDownload(query, config) {
798
+ return this.apiClient.request({
799
+ ...config,
800
+ url: `/file/download`,
801
+ method: 'GET',
802
+ params: query,
803
+ secure: true,
804
+ responseType: 'json'
805
+ });
806
+ }
807
+ }
808
+
809
+
810
+ var $2b871481ea506907$exports = {};
811
+
812
+ $parcel$export($2b871481ea506907$exports, "Firm", () => $2b871481ea506907$export$b82695c11be95fff);
813
+ /* eslint-disable */ /* tslint:disable */ /*
814
+ * ---------------------------------------------------------------
815
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
816
+ * ## ##
817
+ * ## AUTHOR: acacode ##
818
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
819
+ * ---------------------------------------------------------------
820
+ */
821
+
822
+ class $2b871481ea506907$export$b82695c11be95fff {
823
+ constructor(apiClient){
824
+ this.apiClient = apiClient;
825
+ (0, $5CwE8$autobind)(this);
826
+ }
827
+ /**
828
+ * @description USEquity bitwise: 1 UTP(Nasdaq), 2 CBOE1, 3 BATS, 4 NYBQT, 5 UTP OTC, 6 CTA-A, 7 CTA-B
829
+ * @tags Firm
830
+ * @name GetFirmList
831
+ * @summary Query all Firms in the system - All users - available in Microservice, POST with pagination and sort
832
+ For Microservice: only return 'UMA' source firms
833
+ * @request GET:/api/firm/firm-list
834
+ * @secure
835
+ */ getFirmList(query, config) {
836
+ return this.apiClient.request({
837
+ ...config,
838
+ url: `/firm/firm-list`,
839
+ method: 'GET',
840
+ params: query,
841
+ secure: true,
842
+ responseType: 'json'
843
+ });
844
+ }
845
+ /**
846
+ * @tags Firm
847
+ * @name GetFirm
848
+ * @summary Query a specific Firm by firmid(short name) - All users - available in Microservice
849
+ * @request GET:/api/firm/firm
850
+ * @secure
851
+ */ getFirm(query, config) {
852
+ return this.apiClient.request({
853
+ ...config,
854
+ url: `/firm/firm`,
855
+ method: 'GET',
856
+ params: query,
857
+ secure: true,
858
+ responseType: 'json'
859
+ });
860
+ }
861
+ /**
862
+ * @tags Firm
863
+ * @name PostFirm
864
+ * @summary Create a new Firm - Super admin - available in Microservice
865
+ * @request POST:/api/firm/firm
866
+ * @secure
867
+ */ postFirm(data, config) {
868
+ return this.apiClient.request({
869
+ ...config,
870
+ url: `/firm/firm`,
871
+ method: 'POST',
872
+ data: data,
873
+ secure: true,
874
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
875
+ responseType: 'json'
876
+ });
877
+ }
878
+ /**
879
+ * @description !Caution! If remove any previous data source related settings, it will de-active relevant FirmEntitlement and unsign relevant UserEntitlements.
880
+ * @tags Firm
881
+ * @name PutFirm
882
+ * @summary Update an existing Firm setting - Super admin - available in Microservice
883
+ * @request PUT:/api/firm/firm
884
+ * @secure
885
+ */ putFirm(data, query, config) {
886
+ return this.apiClient.request({
887
+ ...config,
888
+ url: `/firm/firm`,
889
+ method: 'PUT',
890
+ params: query,
891
+ data: data,
892
+ secure: true,
893
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
894
+ });
895
+ }
896
+ /**
897
+ * @description Note: Return a Firm Entity, which has data sources that this firm can access combining FirmEntitlements information. Not the original Firm settings.
898
+ * @tags Firm
899
+ * @name GetFirmDataAccess
900
+ * @summary Get which data sources that a firm can access - All users - available in Microservice
901
+ * @request GET:/api/firm/firm-data-access
902
+ * @secure
903
+ */ getFirmDataAccess(query, config) {
904
+ return this.apiClient.request({
905
+ ...config,
906
+ url: `/firm/firm-data-access`,
907
+ method: 'GET',
908
+ params: query,
909
+ secure: true,
910
+ responseType: 'json'
911
+ });
912
+ }
913
+ /**
914
+ * @tags Firm
915
+ * @name GetUmaFirmList
916
+ * @summary Get all firms from UMA - Super admin - available in Microservice, POST with pagination and sort
917
+ * @request GET:/api/firm/uma-firm-list
918
+ * @secure
919
+ */ getUmaFirmList(config) {
920
+ return this.apiClient.request({
921
+ ...config,
922
+ url: `/firm/uma-firm-list`,
923
+ method: 'GET',
924
+ secure: true,
925
+ responseType: 'json'
926
+ });
927
+ }
928
+ /**
929
+ * @tags Firm
930
+ * @name GetSystemFirmDefaultData
931
+ * @summary Query system Firm Default Data Setting, which will be assigned to firm if not specified otherwise - All users - available in Microservice
932
+ * @request GET:/api/firm/system-firm-default-data
933
+ * @secure
934
+ */ getSystemFirmDefaultData(config) {
935
+ return this.apiClient.request({
936
+ ...config,
937
+ url: `/firm/system-firm-default-data`,
938
+ method: 'GET',
939
+ secure: true,
940
+ responseType: 'json'
941
+ });
942
+ }
943
+ /**
944
+ * @tags Firm
945
+ * @name PutSystemFirmDefaultData
946
+ * @summary Query system Firm Default Data Setting, which will be assigned to firm if not specified otherwise - Super admin - available in Microservice
947
+ * @request PUT:/api/firm/system-firm-default-data
948
+ * @secure
949
+ */ putSystemFirmDefaultData(data, config) {
950
+ return this.apiClient.request({
951
+ ...config,
952
+ url: `/firm/system-firm-default-data`,
953
+ method: 'PUT',
954
+ data: data,
955
+ secure: true,
956
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
957
+ });
958
+ }
959
+ /**
960
+ * @tags Firm
961
+ * @name GetFirmDefaultData
962
+ * @summary Query a specific Firm Default Data Setting by firmid(short name) - All users - available in Microservice
963
+ * @request GET:/api/firm/firm-default-data
964
+ * @secure
965
+ */ getFirmDefaultData(query, config) {
966
+ return this.apiClient.request({
967
+ ...config,
968
+ url: `/firm/firm-default-data`,
969
+ method: 'GET',
970
+ params: query,
971
+ secure: true,
972
+ responseType: 'json'
973
+ });
974
+ }
975
+ /**
976
+ * @description New default data must within firm data access availability
977
+ * @tags Firm
978
+ * @name PostFirmDefaultData
979
+ * @summary Create Firm Default Data setting for a specific firm - Firm manager, or super admin - available in Microservice
980
+ * @request POST:/api/firm/firm-default-data
981
+ * @secure
982
+ */ postFirmDefaultData(data, query, config) {
983
+ return this.apiClient.request({
984
+ ...config,
985
+ url: `/firm/firm-default-data`,
986
+ method: 'POST',
987
+ params: query,
988
+ data: data,
989
+ secure: true,
990
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
991
+ });
992
+ }
993
+ /**
994
+ * @description New default data must within firm data access availability
995
+ * @tags Firm
996
+ * @name PutFirmDefaultData
997
+ * @summary Update an existing Firm Default Data setting - Firm manager, or super admin - available in Microservice
998
+ * @request PUT:/api/firm/firm-default-data
999
+ * @secure
1000
+ */ putFirmDefaultData(data, query, config) {
1001
+ return this.apiClient.request({
1002
+ ...config,
1003
+ url: `/firm/firm-default-data`,
1004
+ method: 'PUT',
1005
+ params: query,
1006
+ data: data,
1007
+ secure: true,
1008
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1009
+ });
1010
+ }
1011
+ }
1012
+
1013
+
1014
+ var $6136999aea159e3b$exports = {};
1015
+
1016
+ $parcel$export($6136999aea159e3b$exports, "FundWebQuote", () => $6136999aea159e3b$export$3ddc46c765704011);
1017
+ /* eslint-disable */ /* tslint:disable */ /*
1018
+ * ---------------------------------------------------------------
1019
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1020
+ * ## ##
1021
+ * ## AUTHOR: acacode ##
1022
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1023
+ * ---------------------------------------------------------------
1024
+ */
1025
+ class $6136999aea159e3b$export$3ddc46c765704011 {
1026
+ constructor(apiClient){
1027
+ this.apiClient = apiClient;
1028
+ (0, $5CwE8$autobind)(this);
1029
+ }
1030
+ /**
1031
+ * @tags FundWebQuote
1032
+ * @name GetFund
1033
+ * @summary Get a specific fund data - Internal use only - available in Microservice
1034
+ * @request GET:/api/fund/fund
1035
+ * @secure
1036
+ */ getFund(query, config) {
1037
+ return this.apiClient.request({
1038
+ ...config,
1039
+ url: `/fund/fund`,
1040
+ method: 'GET',
1041
+ params: query,
1042
+ secure: true,
1043
+ responseType: 'json'
1044
+ });
1045
+ }
1046
+ /**
1047
+ * @tags FundWebQuote
1048
+ * @name GetFundList
1049
+ * @summary Get all availabe fund data - Internal use only - available in Microservice
1050
+ * @request GET:/api/fund/fund-list
1051
+ * @secure
1052
+ */ getFundList(config) {
1053
+ return this.apiClient.request({
1054
+ ...config,
1055
+ url: `/fund/fund-list`,
1056
+ method: 'GET',
1057
+ secure: true,
1058
+ responseType: 'json'
1059
+ });
1060
+ }
1061
+ }
1062
+
1063
+
1064
+ var $4941f64eb306d756$exports = {};
1065
+
1066
+ $parcel$export($4941f64eb306d756$exports, "Log", () => $4941f64eb306d756$export$ce30dbb46644d06c);
1067
+ /* eslint-disable */ /* tslint:disable */ /*
1068
+ * ---------------------------------------------------------------
1069
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1070
+ * ## ##
1071
+ * ## AUTHOR: acacode ##
1072
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1073
+ * ---------------------------------------------------------------
1074
+ */
1075
+
1076
+ class $4941f64eb306d756$export$ce30dbb46644d06c {
1077
+ constructor(apiClient){
1078
+ this.apiClient = apiClient;
1079
+ (0, $5CwE8$autobind)(this);
1080
+ }
1081
+ /**
1082
+ * @tags Log
1083
+ * @name GetDataQueryActionList
1084
+ * @summary Query all data query action list in the system - Super admin - available in Microservice
1085
+ * @request GET:/api/log/data-query-action-list
1086
+ * @secure
1087
+ */ getDataQueryActionList(config) {
1088
+ return this.apiClient.request({
1089
+ ...config,
1090
+ url: `/log/data-query-action-list`,
1091
+ method: 'GET',
1092
+ secure: true,
1093
+ responseType: 'json'
1094
+ });
1095
+ }
1096
+ /**
1097
+ * @tags Log
1098
+ * @name GetDataQueryLogByAction
1099
+ * @summary Query data query logs by a specific query and date range - Super admin - available in Microservice, POST with pagination and sort
1100
+ * @request GET:/api/log/data-query-log-by-action
1101
+ * @secure
1102
+ */ getDataQueryLogByAction(query, config) {
1103
+ return this.apiClient.request({
1104
+ ...config,
1105
+ url: `/log/data-query-log-by-action`,
1106
+ method: 'GET',
1107
+ params: query,
1108
+ secure: true,
1109
+ responseType: 'json'
1110
+ });
1111
+ }
1112
+ /**
1113
+ * @tags Log
1114
+ * @name GetDataQueryLogByDataSource
1115
+ * @summary Query data query logs by a specific data source and date range and return for report - Super admin - available in Microservice, POST with pagination and sort
1116
+ * @request GET:/api/log/data-query-log-by-data-source
1117
+ * @secure
1118
+ */ getDataQueryLogByDataSource(query, config) {
1119
+ return this.apiClient.request({
1120
+ ...config,
1121
+ url: `/log/data-query-log-by-data-source`,
1122
+ method: 'GET',
1123
+ params: query,
1124
+ secure: true,
1125
+ responseType: 'json'
1126
+ });
1127
+ }
1128
+ /**
1129
+ * @tags Log
1130
+ * @name GetSnapshotCount
1131
+ * @summary Query snapshot report counts - Super admin - available in Microservice
1132
+ * @request GET:/api/log/snapshot-count
1133
+ * @secure
1134
+ */ getSnapshotCount(query, config) {
1135
+ return this.apiClient.request({
1136
+ ...config,
1137
+ url: `/log/snapshot-count`,
1138
+ method: 'GET',
1139
+ params: query,
1140
+ secure: true,
1141
+ responseType: 'json'
1142
+ });
1143
+ }
1144
+ /**
1145
+ * @tags Log
1146
+ * @name PostSnapshotReport
1147
+ * @summary Query snapshot report for a specific firm and a sepcific exchange with Pagination and Sort - Super admin - available in Microservice
1148
+ * @request POST:/api/log/snapshot-report
1149
+ * @secure
1150
+ */ postSnapshotReport(data, query, config) {
1151
+ return this.apiClient.request({
1152
+ ...config,
1153
+ url: `/log/snapshot-report`,
1154
+ method: 'POST',
1155
+ params: query,
1156
+ data: data,
1157
+ secure: true,
1158
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
1159
+ responseType: 'json'
1160
+ });
1161
+ }
1162
+ /**
1163
+ * @tags Log
1164
+ * @name GetModificationActionList
1165
+ * @summary Query all modification actions list in the system - Super admin - available in Microservice
1166
+ * @request GET:/api/log/modification-action-list
1167
+ * @secure
1168
+ */ getModificationActionList(config) {
1169
+ return this.apiClient.request({
1170
+ ...config,
1171
+ url: `/log/modification-action-list`,
1172
+ method: 'GET',
1173
+ secure: true,
1174
+ responseType: 'json'
1175
+ });
1176
+ }
1177
+ /**
1178
+ * @tags Log
1179
+ * @name GetModificationLogByAction
1180
+ * @summary Query login/out and modification actions logs by a specific action and date range - Super admin - available in Microservice, POST with pagination and sort
1181
+ * @request GET:/api/log/modification-log-by-action
1182
+ * @secure
1183
+ */ getModificationLogByAction(query, config) {
1184
+ return this.apiClient.request({
1185
+ ...config,
1186
+ url: `/log/modification-log-by-action`,
1187
+ method: 'GET',
1188
+ params: query,
1189
+ secure: true,
1190
+ responseType: 'json'
1191
+ });
1192
+ }
1193
+ }
1194
+
1195
+
1196
+ var $f10477b1ab7c510c$exports = {};
1197
+
1198
+ $parcel$export($f10477b1ab7c510c$exports, "Permission", () => $f10477b1ab7c510c$export$a461eaf23bef603e);
1199
+ /* eslint-disable */ /* tslint:disable */ /*
1200
+ * ---------------------------------------------------------------
1201
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1202
+ * ## ##
1203
+ * ## AUTHOR: acacode ##
1204
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1205
+ * ---------------------------------------------------------------
1206
+ */
1207
+
1208
+ class $f10477b1ab7c510c$export$a461eaf23bef603e {
1209
+ constructor(apiClient){
1210
+ this.apiClient = apiClient;
1211
+ (0, $5CwE8$autobind)(this);
1212
+ }
1213
+ /**
1214
+ * @tags Permission
1215
+ * @name PostPermission
1216
+ * @summary Create permission for a user - Internal use only - Super admin - available in Microservice
1217
+ * @request POST:/api/permission/permission
1218
+ * @secure
1219
+ */ postPermission(data, config) {
1220
+ return this.apiClient.request({
1221
+ ...config,
1222
+ url: `/permission/permission`,
1223
+ method: 'POST',
1224
+ data: data,
1225
+ secure: true,
1226
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1227
+ });
1228
+ }
1229
+ /**
1230
+ * @tags Permission
1231
+ * @name GetPermission
1232
+ * @summary Get permission for a user - Internal use only - Super admin - available in Microservice
1233
+ * @request GET:/api/permission/permission
1234
+ * @secure
1235
+ */ getPermission(query, config) {
1236
+ return this.apiClient.request({
1237
+ ...config,
1238
+ url: `/permission/permission`,
1239
+ method: 'GET',
1240
+ params: query,
1241
+ secure: true,
1242
+ responseType: 'json'
1243
+ });
1244
+ }
1245
+ /**
1246
+ * @tags Permission
1247
+ * @name DeletePermission
1248
+ * @summary Delete permission for a user - Internal use only - Super admin - available in Microservice
1249
+ * @request DELETE:/api/permission/permission
1250
+ * @secure
1251
+ */ deletePermission(query, config) {
1252
+ return this.apiClient.request({
1253
+ ...config,
1254
+ url: `/permission/permission`,
1255
+ method: 'DELETE',
1256
+ params: query,
1257
+ secure: true
1258
+ });
1259
+ }
1260
+ }
1261
+
1262
+
1263
+ var $e3362299f3dca2a2$exports = {};
1264
+
1265
+ $parcel$export($e3362299f3dca2a2$exports, "Quote", () => $e3362299f3dca2a2$export$82b8d343c504672);
1266
+ /* eslint-disable */ /* tslint:disable */ /*
1267
+ * ---------------------------------------------------------------
1268
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1269
+ * ## ##
1270
+ * ## AUTHOR: acacode ##
1271
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1272
+ * ---------------------------------------------------------------
1273
+ */
1274
+
1275
+ class $e3362299f3dca2a2$export$82b8d343c504672 {
1276
+ constructor(apiClient){
1277
+ this.apiClient = apiClient;
1278
+ (0, $5CwE8$autobind)(this);
1279
+ }
1280
+ /**
1281
+ * @tags Quote
1282
+ * @name PostSymbolSearch
1283
+ * @summary Symbol screener - All users - available in Microservice version
1284
+ * @request POST:/api/quote/symbol-search
1285
+ * @secure
1286
+ */ postSymbolSearch(data, query, config) {
1287
+ return this.apiClient.request({
1288
+ ...config,
1289
+ url: `/quote/symbol-search`,
1290
+ method: 'POST',
1291
+ params: query,
1292
+ data: data,
1293
+ secure: true,
1294
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
1295
+ responseType: 'json'
1296
+ });
1297
+ }
1298
+ /**
1299
+ * @tags Quote
1300
+ * @name GetBestQuote
1301
+ * @summary Query Best Quote(Level 1 data) - All users - available in Microservice
1302
+ * @request GET:/api/quote/best-quote
1303
+ * @secure
1304
+ */ getBestQuote(query, config) {
1305
+ return this.apiClient.request({
1306
+ ...config,
1307
+ url: `/quote/best-quote`,
1308
+ method: 'GET',
1309
+ params: query,
1310
+ secure: true,
1311
+ responseType: 'json'
1312
+ });
1313
+ }
1314
+ /**
1315
+ * @tags Quote
1316
+ * @name GetNbboSnapshot
1317
+ * @summary Query NBBO Snapshot - All users - available in Microservice
1318
+ * @request GET:/api/quote/nbbo-snapshot
1319
+ * @secure
1320
+ */ getNbboSnapshot(query, config) {
1321
+ return this.apiClient.request({
1322
+ ...config,
1323
+ url: `/quote/nbbo-snapshot`,
1324
+ method: 'GET',
1325
+ params: query,
1326
+ secure: true,
1327
+ responseType: 'json'
1328
+ });
1329
+ }
1330
+ /**
1331
+ * @tags Quote
1332
+ * @name GetLevel1
1333
+ * @summary Query full Level 1 data - All users - available in Microservice
1334
+ * @request GET:/api/quote/level1
1335
+ * @secure
1336
+ */ getLevel1(query, config) {
1337
+ return this.apiClient.request({
1338
+ ...config,
1339
+ url: `/quote/level1`,
1340
+ method: 'GET',
1341
+ params: query,
1342
+ secure: true,
1343
+ responseType: 'json'
1344
+ });
1345
+ }
1346
+ /**
1347
+ * @tags Quote
1348
+ * @name GetRegionQuotes
1349
+ * @summary Query Region Quotes from Tick data - All users - available in Microservice
1350
+ * @request GET:/api/quote/region-quotes
1351
+ * @secure
1352
+ */ getRegionQuotes(query, config) {
1353
+ return this.apiClient.request({
1354
+ ...config,
1355
+ url: `/quote/region-quotes`,
1356
+ method: 'GET',
1357
+ params: query,
1358
+ secure: true,
1359
+ responseType: 'json'
1360
+ });
1361
+ }
1362
+ /**
1363
+ * @tags Quote
1364
+ * @name GetTimeSale
1365
+ * @summary Query TimeSale from Tick data - All users - available in Microservice
1366
+ * @request GET:/api/quote/time-sale
1367
+ * @secure
1368
+ */ getTimeSale(query, config) {
1369
+ return this.apiClient.request({
1370
+ ...config,
1371
+ url: `/quote/time-sale`,
1372
+ method: 'GET',
1373
+ params: query,
1374
+ secure: true,
1375
+ responseType: 'json'
1376
+ });
1377
+ }
1378
+ /**
1379
+ * @tags Quote
1380
+ * @name GetLastTrade
1381
+ * @summary Query Last Trade(Level 2 data) - All users - available in Microservice
1382
+ * @request GET:/api/quote/last-trade
1383
+ * @secure
1384
+ */ getLastTrade(query, config) {
1385
+ return this.apiClient.request({
1386
+ ...config,
1387
+ url: `/quote/last-trade`,
1388
+ method: 'GET',
1389
+ params: query,
1390
+ secure: true,
1391
+ responseType: 'json'
1392
+ });
1393
+ }
1394
+ /**
1395
+ * @tags Quote
1396
+ * @name GetIntradayChart
1397
+ * @summary Query intra-day Day Chart and Minute Chart - All users - available in Microservice
1398
+ * @request GET:/api/quote/intraday-chart
1399
+ * @secure
1400
+ */ getIntradayChart(query, config) {
1401
+ return this.apiClient.request({
1402
+ ...config,
1403
+ url: `/quote/intraday-chart`,
1404
+ method: 'GET',
1405
+ params: query,
1406
+ secure: true,
1407
+ responseType: 'json'
1408
+ });
1409
+ }
1410
+ /**
1411
+ * @tags Quote
1412
+ * @name GetHistoricalDayChart
1413
+ * @summary Query Historical Day Chart - All users - available in Microservice
1414
+ * @request GET:/api/quote/historical-day-chart
1415
+ * @secure
1416
+ */ getHistoricalDayChart(query, config) {
1417
+ return this.apiClient.request({
1418
+ ...config,
1419
+ url: `/quote/historical-day-chart`,
1420
+ method: 'GET',
1421
+ params: query,
1422
+ secure: true,
1423
+ responseType: 'json'
1424
+ });
1425
+ }
1426
+ /**
1427
+ * @tags Quote
1428
+ * @name GetHistoricalMinuteChart
1429
+ * @summary Query Historical Minute Chart - All users - available in Microservice
1430
+ * @request GET:/api/quote/historical-minute-chart
1431
+ * @secure
1432
+ */ getHistoricalMinuteChart(query, config) {
1433
+ return this.apiClient.request({
1434
+ ...config,
1435
+ url: `/quote/historical-minute-chart`,
1436
+ method: 'GET',
1437
+ params: query,
1438
+ secure: true,
1439
+ responseType: 'json'
1440
+ });
1441
+ }
1442
+ /**
1443
+ * @tags Quote
1444
+ * @name GetTop20
1445
+ * @summary Query Top20 data - All users - available in Microservice
1446
+ * @request GET:/api/quote/top-20
1447
+ * @secure
1448
+ */ getTop20(query, config) {
1449
+ return this.apiClient.request({
1450
+ ...config,
1451
+ url: `/quote/top-20`,
1452
+ method: 'GET',
1453
+ params: query,
1454
+ secure: true,
1455
+ responseType: 'json'
1456
+ });
1457
+ }
1458
+ /**
1459
+ * @tags Quote
1460
+ * @name GetOptionChainDates
1461
+ * @summary Query Option Chain dates - All users - available in Microservice
1462
+ * @request GET:/api/quote/option-chain-dates
1463
+ * @secure
1464
+ */ getOptionChainDates(query, config) {
1465
+ return this.apiClient.request({
1466
+ ...config,
1467
+ url: `/quote/option-chain-dates`,
1468
+ method: 'GET',
1469
+ params: query,
1470
+ secure: true,
1471
+ responseType: 'json'
1472
+ });
1473
+ }
1474
+ /**
1475
+ * @tags Quote
1476
+ * @name GetOptionChain
1477
+ * @summary Query Option Chain data - All users - available in Microservice
1478
+ * @request GET:/api/quote/option-chain
1479
+ * @secure
1480
+ */ getOptionChain(query, config) {
1481
+ return this.apiClient.request({
1482
+ ...config,
1483
+ url: `/quote/option-chain`,
1484
+ method: 'GET',
1485
+ params: query,
1486
+ secure: true,
1487
+ responseType: 'json'
1488
+ });
1489
+ }
1490
+ /**
1491
+ * @tags Quote
1492
+ * @name GetOptionLevel1
1493
+ * @summary Query Option Level 1 data - All users - available in Microservice
1494
+ * @request GET:/api/quote/option-level1
1495
+ * @secure
1496
+ */ getOptionLevel1(query, config) {
1497
+ return this.apiClient.request({
1498
+ ...config,
1499
+ url: `/quote/option-level1`,
1500
+ method: 'GET',
1501
+ params: query,
1502
+ secure: true,
1503
+ responseType: 'json'
1504
+ });
1505
+ }
1506
+ /**
1507
+ * @tags Quote
1508
+ * @name GetOptionLevel1WithGreek
1509
+ * @summary Query Option Level 1 data - All users - available in Microservice
1510
+ * @request GET:/api/quote/option-level1-with-greek
1511
+ * @secure
1512
+ */ getOptionLevel1WithGreek(query, config) {
1513
+ return this.apiClient.request({
1514
+ ...config,
1515
+ url: `/quote/option-level1-with-greek`,
1516
+ method: 'GET',
1517
+ params: query,
1518
+ secure: true,
1519
+ responseType: 'json'
1520
+ });
1521
+ }
1522
+ /**
1523
+ * @tags Quote
1524
+ * @name GetEquiductLevel1
1525
+ * @summary Query Equiduct Level 1 data - All users - available in Microservice
1526
+ * @request GET:/api/quote/equiduct-level1
1527
+ * @secure
1528
+ */ getEquiductLevel1(query, config) {
1529
+ return this.apiClient.request({
1530
+ ...config,
1531
+ url: `/quote/equiduct-level1`,
1532
+ method: 'GET',
1533
+ params: query,
1534
+ secure: true,
1535
+ responseType: 'json'
1536
+ });
1537
+ }
1538
+ /**
1539
+ * @tags Quote
1540
+ * @name GetBonds
1541
+ * @summary Query Bonds data - All users - available in Microservice
1542
+ * @request GET:/api/quote/bonds
1543
+ * @secure
1544
+ */ getBonds(query, config) {
1545
+ return this.apiClient.request({
1546
+ ...config,
1547
+ url: `/quote/bonds`,
1548
+ method: 'GET',
1549
+ params: query,
1550
+ secure: true,
1551
+ responseType: 'json'
1552
+ });
1553
+ }
1554
+ /**
1555
+ * @tags Quote
1556
+ * @name GetBondsSearch
1557
+ * @summary Search bonds - All users - available in Microservice
1558
+ * @request GET:/api/quote/bonds-search
1559
+ * @secure
1560
+ */ getBondsSearch(query, config) {
1561
+ return this.apiClient.request({
1562
+ ...config,
1563
+ url: `/quote/bonds-search`,
1564
+ method: 'GET',
1565
+ params: query,
1566
+ secure: true
1567
+ });
1568
+ }
1569
+ /**
1570
+ * @tags Quote
1571
+ * @name GetMutualFunds
1572
+ * @summary Query Mutual Funds data - All users - available in Microservice
1573
+ * @request GET:/api/quote/mutual-funds
1574
+ * @secure
1575
+ */ getMutualFunds(query, config) {
1576
+ return this.apiClient.request({
1577
+ ...config,
1578
+ url: `/quote/mutual-funds`,
1579
+ method: 'GET',
1580
+ params: query,
1581
+ secure: true,
1582
+ responseType: 'json'
1583
+ });
1584
+ }
1585
+ /**
1586
+ * @tags Quote
1587
+ * @name GetQuoddEod
1588
+ * @summary Query QUODD EOD data - All users - available in Microservice
1589
+ * @request GET:/api/quote/quodd-eod
1590
+ * @secure
1591
+ */ getQuoddEod(query, config) {
1592
+ return this.apiClient.request({
1593
+ ...config,
1594
+ url: `/quote/quodd-eod`,
1595
+ method: 'GET',
1596
+ params: query,
1597
+ secure: true,
1598
+ responseType: 'json'
1599
+ });
1600
+ }
1601
+ /**
1602
+ * @tags Quote
1603
+ * @name GetQuoddDelay
1604
+ * @summary Query QUODD Delay data - All users - available in Microservice
1605
+ * @request GET:/api/quote/quodd-delay
1606
+ * @secure
1607
+ */ getQuoddDelay(query, config) {
1608
+ return this.apiClient.request({
1609
+ ...config,
1610
+ url: `/quote/quodd-delay`,
1611
+ method: 'GET',
1612
+ params: query,
1613
+ secure: true,
1614
+ responseType: 'json'
1615
+ });
1616
+ }
1617
+ /**
1618
+ * @tags Quote
1619
+ * @name GetIceIsin
1620
+ * @summary Query ICE ISIN data - All users - available in Microservice
1621
+ * @request GET:/api/quote/ice-isin
1622
+ * @secure
1623
+ */ getIceIsin(query, config) {
1624
+ return this.apiClient.request({
1625
+ ...config,
1626
+ url: `/quote/ice-isin`,
1627
+ method: 'GET',
1628
+ params: query,
1629
+ secure: true,
1630
+ responseType: 'json'
1631
+ });
1632
+ }
1633
+ /**
1634
+ * @tags Quote
1635
+ * @name GetIceEod
1636
+ * @summary Query ICE EOD data - All users - available in Microservice
1637
+ * @request GET:/api/quote/ice-eod
1638
+ * @secure
1639
+ */ getIceEod(query, config) {
1640
+ return this.apiClient.request({
1641
+ ...config,
1642
+ url: `/quote/ice-eod`,
1643
+ method: 'GET',
1644
+ params: query,
1645
+ secure: true,
1646
+ responseType: 'json'
1647
+ });
1648
+ }
1649
+ /**
1650
+ * @tags Quote
1651
+ * @name GetFxRate
1652
+ * @summary Query Forex data with symbols - All users - available in Microservice
1653
+ * @request GET:/api/quote/fx-rate
1654
+ * @secure
1655
+ */ getFxRate(query, config) {
1656
+ return this.apiClient.request({
1657
+ ...config,
1658
+ url: `/quote/fx-rate`,
1659
+ method: 'GET',
1660
+ params: query,
1661
+ secure: true,
1662
+ responseType: 'json'
1663
+ });
1664
+ }
1665
+ /**
1666
+ * @tags Quote
1667
+ * @name GetFxTable
1668
+ * @summary Query Forex table for one currency - All users - available in Microservice
1669
+ * @request GET:/api/quote/fx-table
1670
+ * @secure
1671
+ */ getFxTable(query, config) {
1672
+ return this.apiClient.request({
1673
+ ...config,
1674
+ url: `/quote/fx-table`,
1675
+ method: 'GET',
1676
+ params: query,
1677
+ secure: true,
1678
+ responseType: 'json'
1679
+ });
1680
+ }
1681
+ }
1682
+
1683
+
1684
+ var $75957c5651a48db2$exports = {};
1685
+
1686
+ $parcel$export($75957c5651a48db2$exports, "QuotesReformat", () => $75957c5651a48db2$export$304305f55794ea0e);
1687
+ /* eslint-disable */ /* tslint:disable */ /*
1688
+ * ---------------------------------------------------------------
1689
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1690
+ * ## ##
1691
+ * ## AUTHOR: acacode ##
1692
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1693
+ * ---------------------------------------------------------------
1694
+ */
1695
+ class $75957c5651a48db2$export$304305f55794ea0e {
1696
+ constructor(apiClient){
1697
+ this.apiClient = apiClient;
1698
+ (0, $5CwE8$autobind)(this);
1699
+ }
1700
+ /**
1701
+ * @tags QuotesReformat
1702
+ * @name GetEquity
1703
+ * @summary Query full Level 1 data - All users - available in Microservice
1704
+ * @request GET:/api/quotes/equity
1705
+ * @secure
1706
+ */ getEquity(query, config) {
1707
+ return this.apiClient.request({
1708
+ ...config,
1709
+ url: `/quotes/equity`,
1710
+ method: 'GET',
1711
+ params: query,
1712
+ secure: true,
1713
+ responseType: 'json'
1714
+ });
1715
+ }
1716
+ /**
1717
+ * @tags QuotesReformat
1718
+ * @name GetEquityIntraday
1719
+ * @summary Query intra-day and historical Minute Chart. If no days range provided, it return intraday chart. rsiSpan is no supported. All Volume is raw Volume. - All users - available in Microservice
1720
+ * @request GET:/api/quotes/equity/intraday
1721
+ * @secure
1722
+ */ getEquityIntraday(query, config) {
1723
+ return this.apiClient.request({
1724
+ ...config,
1725
+ url: `/quotes/equity/intraday`,
1726
+ method: 'GET',
1727
+ params: query,
1728
+ secure: true,
1729
+ responseType: 'json'
1730
+ });
1731
+ }
1732
+ /**
1733
+ * @tags QuotesReformat
1734
+ * @name GetEquityHistorical
1735
+ * @summary Query Historical Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
1736
+ * @request GET:/api/quotes/equity/historical
1737
+ * @secure
1738
+ */ getEquityHistorical(query, config) {
1739
+ return this.apiClient.request({
1740
+ ...config,
1741
+ url: `/quotes/equity/historical`,
1742
+ method: 'GET',
1743
+ params: query,
1744
+ secure: true,
1745
+ responseType: 'json'
1746
+ });
1747
+ }
1748
+ /**
1749
+ * @tags QuotesReformat
1750
+ * @name GetSearch
1751
+ * @summary To search for a company and the exact ticker symbol is not known, use this endpoint for a string search. - All users - available in Microservice version
1752
+ * @request GET:/api/quotes/search
1753
+ * @secure
1754
+ */ getSearch(query, config) {
1755
+ return this.apiClient.request({
1756
+ ...config,
1757
+ url: `/quotes/search`,
1758
+ method: 'GET',
1759
+ params: query,
1760
+ secure: true
1761
+ });
1762
+ }
1763
+ /**
1764
+ * @tags QuotesReformat
1765
+ * @name GetOption
1766
+ * @summary Query Option Level 1 data - All users - available in Microservice
1767
+ * @request GET:/api/quotes/option
1768
+ * @secure
1769
+ */ getOption(query, config) {
1770
+ return this.apiClient.request({
1771
+ ...config,
1772
+ url: `/quotes/option`,
1773
+ method: 'GET',
1774
+ params: query,
1775
+ secure: true,
1776
+ responseType: 'json'
1777
+ });
1778
+ }
1779
+ /**
1780
+ * @tags QuotesReformat
1781
+ * @name GetOptionChainDates
1782
+ * @summary Query Option Chain dates - All users - available in Microservice
1783
+ * @request GET:/api/quotes/option/chain/dates/{symbol}
1784
+ * @secure
1785
+ */ getOptionChainDates(symbol, query, config) {
1786
+ return this.apiClient.request({
1787
+ ...config,
1788
+ url: `/quotes/option/chain/dates/${symbol}`,
1789
+ method: 'GET',
1790
+ params: query,
1791
+ secure: true,
1792
+ responseType: 'json'
1793
+ });
1794
+ }
1795
+ /**
1796
+ * @tags QuotesReformat
1797
+ * @name GetOptionChain
1798
+ * @summary Query Option Chain data - All users - available in Microservice
1799
+ * @request GET:/api/quotes/option/chain/{symbol}/{date}
1800
+ * @secure
1801
+ */ getOptionChain(symbol, date, query, config) {
1802
+ return this.apiClient.request({
1803
+ ...config,
1804
+ url: `/quotes/option/chain/${symbol}/${date}`,
1805
+ method: 'GET',
1806
+ params: query,
1807
+ secure: true,
1808
+ responseType: 'json'
1809
+ });
1810
+ }
1811
+ /**
1812
+ * @tags QuotesReformat
1813
+ * @name GetBonds
1814
+ * @summary Query Bonds data - All users - available in Microservice
1815
+ * @request GET:/api/quotes/bonds
1816
+ * @secure
1817
+ */ getBonds(query, config) {
1818
+ return this.apiClient.request({
1819
+ ...config,
1820
+ url: `/quotes/bonds`,
1821
+ method: 'GET',
1822
+ params: query,
1823
+ secure: true,
1824
+ responseType: 'json'
1825
+ });
1826
+ }
1827
+ /**
1828
+ * @tags QuotesReformat
1829
+ * @name GetBondsSearch
1830
+ * @summary Search bonds - All users - available in Microservice
1831
+ * @request GET:/api/quotes/bonds/search
1832
+ * @secure
1833
+ */ getBondsSearch(query, config) {
1834
+ return this.apiClient.request({
1835
+ ...config,
1836
+ url: `/quotes/bonds/search`,
1837
+ method: 'GET',
1838
+ params: query,
1839
+ secure: true
1840
+ });
1841
+ }
1842
+ /**
1843
+ * @tags QuotesReformat
1844
+ * @name GetQuotesReformat
1845
+ * @summary Query Forex rate - All users - available in Microservice
1846
+ * @request GET:/api/quotes/fx
1847
+ * @secure
1848
+ */ getQuotesReformat(query, config) {
1849
+ return this.apiClient.request({
1850
+ ...config,
1851
+ url: `/quotes/fx`,
1852
+ method: 'GET',
1853
+ params: query,
1854
+ secure: true,
1855
+ responseType: 'json'
1856
+ });
1857
+ }
1858
+ }
1859
+
1860
+
1861
+ var $b8ece52855abc819$exports = {};
1862
+ /* eslint-disable */ /* tslint:disable */ /*
1863
+ * ---------------------------------------------------------------
1864
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1865
+ * ## ##
1866
+ * ## AUTHOR: acacode ##
1867
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1868
+ * ---------------------------------------------------------------
1869
+ */
1870
+
1871
+ var $28fda0d8c4e23a26$exports = {};
1872
+
1873
+ $parcel$export($28fda0d8c4e23a26$exports, "UmaTest", () => $28fda0d8c4e23a26$export$51933dbbacfe440f);
1874
+ /* eslint-disable */ /* tslint:disable */ /*
1875
+ * ---------------------------------------------------------------
1876
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1877
+ * ## ##
1878
+ * ## AUTHOR: acacode ##
1879
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1880
+ * ---------------------------------------------------------------
1881
+ */
1882
+ class $28fda0d8c4e23a26$export$51933dbbacfe440f {
1883
+ constructor(apiClient){
1884
+ this.apiClient = apiClient;
1885
+ (0, $5CwE8$autobind)(this);
1886
+ }
1887
+ /**
1888
+ * @tags UMATest
1889
+ * @name GetRevokeUmaUser
1890
+ * @summary Test to revoke uma user - internal use only - Super admin - available in Microservice
1891
+ * @request GET:/api/uma-test/revoke-uma-user
1892
+ * @secure
1893
+ */ getRevokeUmaUser(query, config) {
1894
+ return this.apiClient.request({
1895
+ ...config,
1896
+ url: `/uma-test/revoke-uma-user`,
1897
+ method: 'GET',
1898
+ params: query,
1899
+ secure: true
1900
+ });
1901
+ }
1902
+ /**
1903
+ * @tags UMATest
1904
+ * @name GetFirmList
1905
+ * @summary Test to get all uma firms - internal use only - Super admin - available in Microservice
1906
+ * @request GET:/api/uma-test/firm-list
1907
+ * @secure
1908
+ */ getFirmList(config) {
1909
+ return this.apiClient.request({
1910
+ ...config,
1911
+ url: `/uma-test/firm-list`,
1912
+ method: 'GET',
1913
+ secure: true,
1914
+ responseType: 'json'
1915
+ });
1916
+ }
1917
+ /**
1918
+ * @tags UMATest
1919
+ * @name GetFirmListToLocal
1920
+ * @summary Import all uma firms to AES - internal use only - Super admin - available in Microservice
1921
+ * @request GET:/api/uma-test/firm-list-to-local
1922
+ * @secure
1923
+ */ getFirmListToLocal(config) {
1924
+ return this.apiClient.request({
1925
+ ...config,
1926
+ url: `/uma-test/firm-list-to-local`,
1927
+ method: 'GET',
1928
+ secure: true
1929
+ });
1930
+ }
1931
+ /**
1932
+ * @tags UMATest
1933
+ * @name GetB2BUserById
1934
+ * @summary Test to get uma b2b user by user_id - internal use only - Super admin - available in Microservice
1935
+ * @request GET:/api/uma-test/b2b-user-by-id
1936
+ * @secure
1937
+ */ getB2BUserById(query, config) {
1938
+ return this.apiClient.request({
1939
+ ...config,
1940
+ url: `/uma-test/b2b-user-by-id`,
1941
+ method: 'GET',
1942
+ params: query,
1943
+ secure: true,
1944
+ responseType: 'json'
1945
+ });
1946
+ }
1947
+ /**
1948
+ * @tags UMATest
1949
+ * @name GetB2BUserList
1950
+ * @summary Test to get all uma b2b users - internal use only - Super admin - available in Microservice
1951
+ * @request GET:/api/uma-test/b2b-user-list
1952
+ * @secure
1953
+ */ getB2BUserList(config) {
1954
+ return this.apiClient.request({
1955
+ ...config,
1956
+ url: `/uma-test/b2b-user-list`,
1957
+ method: 'GET',
1958
+ secure: true,
1959
+ responseType: 'json'
1960
+ });
1961
+ }
1962
+ /**
1963
+ * @tags UMATest
1964
+ * @name GetB2BUserListToLocal
1965
+ * @summary Import all uma b2b users to AES - internal use only - Super admin - available in Microservice
1966
+ * @request GET:/api/uma-test/b2b-user-list-to-local
1967
+ * @secure
1968
+ */ getB2BUserListToLocal(config) {
1969
+ return this.apiClient.request({
1970
+ ...config,
1971
+ url: `/uma-test/b2b-user-list-to-local`,
1972
+ method: 'GET',
1973
+ secure: true
1974
+ });
1975
+ }
1976
+ /**
1977
+ * @tags UMATest
1978
+ * @name GetB2CUserById
1979
+ * @summary Test to get uma b2c user by user_id - internal use only - Super admin - available in Microservice
1980
+ * @request GET:/api/uma-test/b2c-user-by-id
1981
+ * @secure
1982
+ */ getB2CUserById(query, config) {
1983
+ return this.apiClient.request({
1984
+ ...config,
1985
+ url: `/uma-test/b2c-user-by-id`,
1986
+ method: 'GET',
1987
+ params: query,
1988
+ secure: true,
1989
+ responseType: 'json'
1990
+ });
1991
+ }
1992
+ /**
1993
+ * @tags UMATest
1994
+ * @name GetB2CUserList
1995
+ * @summary Test to get all uma b2c users - internal use only - Super admin - available in Microservice
1996
+ * @request GET:/api/uma-test/b2c-user-list
1997
+ * @secure
1998
+ */ getB2CUserList(config) {
1999
+ return this.apiClient.request({
2000
+ ...config,
2001
+ url: `/uma-test/b2c-user-list`,
2002
+ method: 'GET',
2003
+ secure: true,
2004
+ responseType: 'json'
2005
+ });
2006
+ }
2007
+ /**
2008
+ * @tags UMATest
2009
+ * @name GetB2CUserListToLocal
2010
+ * @summary Import all uma b2c users to AES - internal use only - Super admin - available in Microservice
2011
+ * @request GET:/api/uma-test/b2c-user-list-to-local
2012
+ * @secure
2013
+ */ getB2CUserListToLocal(config) {
2014
+ return this.apiClient.request({
2015
+ ...config,
2016
+ url: `/uma-test/b2c-user-list-to-local`,
2017
+ method: 'GET',
2018
+ secure: true
2019
+ });
2020
+ }
2021
+ }
2022
+
2023
+
2024
+ var $d014cbaaab9ee483$exports = {};
2025
+
2026
+ $parcel$export($d014cbaaab9ee483$exports, "User", () => $d014cbaaab9ee483$export$1f44aaf2ec115b54);
2027
+ /* eslint-disable */ /* tslint:disable */ /*
2028
+ * ---------------------------------------------------------------
2029
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2030
+ * ## ##
2031
+ * ## AUTHOR: acacode ##
2032
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2033
+ * ---------------------------------------------------------------
2034
+ */
2035
+
2036
+ class $d014cbaaab9ee483$export$1f44aaf2ec115b54 {
2037
+ constructor(apiClient){
2038
+ this.apiClient = apiClient;
2039
+ (0, $5CwE8$autobind)(this);
2040
+ }
2041
+ /**
2042
+ * @tags User
2043
+ * @name PostRegisterRegular
2044
+ * @summary Create a new regular user - Firm manager, or super admin - Not available in Microservice
2045
+ * @request POST:/api/user/register-regular
2046
+ * @secure
2047
+ */ postRegisterRegular(data, config) {
2048
+ return this.apiClient.request({
2049
+ ...config,
2050
+ url: `/user/register-regular`,
2051
+ method: 'POST',
2052
+ data: data,
2053
+ secure: true,
2054
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2055
+ });
2056
+ }
2057
+ /**
2058
+ * @tags User
2059
+ * @name PostRegisterAdmin
2060
+ * @summary Create a new admin user - Super admin - Not available in Microservice
2061
+ * @request POST:/api/user/register-admin
2062
+ * @secure
2063
+ */ postRegisterAdmin(data, config) {
2064
+ return this.apiClient.request({
2065
+ ...config,
2066
+ url: `/user/register-admin`,
2067
+ method: 'POST',
2068
+ data: data,
2069
+ secure: true,
2070
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2071
+ });
2072
+ }
2073
+ /**
2074
+ * @tags User
2075
+ * @name PostRegisterManager
2076
+ * @summary Create a new firm manager user - Firm manager, or super admin - Not available in Microservice
2077
+ * @request POST:/api/user/register-manager
2078
+ * @secure
2079
+ */ postRegisterManager(data, config) {
2080
+ return this.apiClient.request({
2081
+ ...config,
2082
+ url: `/user/register-manager`,
2083
+ method: 'POST',
2084
+ data: data,
2085
+ secure: true,
2086
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2087
+ });
2088
+ }
2089
+ /**
2090
+ * @tags User
2091
+ * @name PostRegisterUmaB2BUser
2092
+ * @summary Create a new b2b user from UMA - Firm manager, or super admin - available in Microservice
2093
+ * @request POST:/api/user/register-uma-b2b-user
2094
+ * @secure
2095
+ */ postRegisterUmaB2BUser(data, config) {
2096
+ return this.apiClient.request({
2097
+ ...config,
2098
+ url: `/user/register-uma-b2b-user`,
2099
+ method: 'POST',
2100
+ data: data,
2101
+ secure: true,
2102
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2103
+ });
2104
+ }
2105
+ /**
2106
+ * @tags User
2107
+ * @name PostRegisterUmaB2CUser
2108
+ * @summary Create a new b2c user from UMA - Firm manager, or super admin - available in Microservice
2109
+ * @request POST:/api/user/register-uma-b2c-user
2110
+ * @secure
2111
+ */ postRegisterUmaB2CUser(data, config) {
2112
+ return this.apiClient.request({
2113
+ ...config,
2114
+ url: `/user/register-uma-b2c-user`,
2115
+ method: 'POST',
2116
+ data: data,
2117
+ secure: true,
2118
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2119
+ });
2120
+ }
2121
+ /**
2122
+ * @tags User
2123
+ * @name GetUmaB2BUserList
2124
+ * @summary Get UMA b2b users - Firm manager, or super admin - available in Microservice, POST with pagination and sort
2125
+ * @request GET:/api/user/uma-b2b-user-list
2126
+ * @secure
2127
+ */ getUmaB2BUserList(query, config) {
2128
+ return this.apiClient.request({
2129
+ ...config,
2130
+ url: `/user/uma-b2b-user-list`,
2131
+ method: 'GET',
2132
+ params: query,
2133
+ secure: true,
2134
+ responseType: 'json'
2135
+ });
2136
+ }
2137
+ /**
2138
+ * @tags User
2139
+ * @name GetUmaB2CUserList
2140
+ * @summary Get UMA b2c users - Firm manager, or super admin - available in Microservice, POST with pagination and sort
2141
+ * @request GET:/api/user/uma-b2c-user-list
2142
+ * @secure
2143
+ */ getUmaB2CUserList(query, config) {
2144
+ return this.apiClient.request({
2145
+ ...config,
2146
+ url: `/user/uma-b2c-user-list`,
2147
+ method: 'GET',
2148
+ params: query,
2149
+ secure: true,
2150
+ responseType: 'json'
2151
+ });
2152
+ }
2153
+ /**
2154
+ * @tags User
2155
+ * @name PostLogin
2156
+ * @summary all user login - All users - Not available in Microservice
2157
+ * @request POST:/api/user/login
2158
+ * @secure
2159
+ */ postLogin(data, config) {
2160
+ return this.apiClient.request({
2161
+ ...config,
2162
+ url: `/user/login`,
2163
+ method: 'POST',
2164
+ data: data,
2165
+ secure: true,
2166
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2167
+ });
2168
+ }
2169
+ /**
2170
+ * @description token will be revoked even not expired
2171
+ * @tags User
2172
+ * @name GetLogout
2173
+ * @summary logout with user id - All users - Not available in Microservice
2174
+ * @request GET:/api/user/logout
2175
+ * @secure
2176
+ */ getLogout(query, config) {
2177
+ return this.apiClient.request({
2178
+ ...config,
2179
+ url: `/user/logout`,
2180
+ method: 'GET',
2181
+ params: query,
2182
+ secure: true
2183
+ });
2184
+ }
2185
+ /**
2186
+ * @tags User
2187
+ * @name PutPhoneNumber
2188
+ * @summary update a user registered phone number - All users - Not available in Microservice
2189
+ * @request PUT:/api/user/phone-number
2190
+ * @secure
2191
+ */ putPhoneNumber(data, config) {
2192
+ return this.apiClient.request({
2193
+ ...config,
2194
+ url: `/user/phone-number`,
2195
+ method: 'PUT',
2196
+ data: data,
2197
+ secure: true,
2198
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2199
+ });
2200
+ }
2201
+ /**
2202
+ * @tags User
2203
+ * @name PutEmail
2204
+ * @summary update a user registered email - All users - Not available in Microservice
2205
+ * @request PUT:/api/user/email
2206
+ * @secure
2207
+ */ putEmail(data, config) {
2208
+ return this.apiClient.request({
2209
+ ...config,
2210
+ url: `/user/email`,
2211
+ method: 'PUT',
2212
+ data: data,
2213
+ secure: true,
2214
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2215
+ });
2216
+ }
2217
+ /**
2218
+ * @description It will check old passoword.
2219
+ * @tags User
2220
+ * @name PutChangePassword
2221
+ * @summary User change its own password - All users - Not available in Microservice
2222
+ * @request PUT:/api/user/change-password
2223
+ * @secure
2224
+ */ putChangePassword(data, config) {
2225
+ return this.apiClient.request({
2226
+ ...config,
2227
+ url: `/user/change-password`,
2228
+ method: 'PUT',
2229
+ data: data,
2230
+ secure: true,
2231
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2232
+ });
2233
+ }
2234
+ /**
2235
+ * @description For manager/admin user, it does not require old password.
2236
+ * @tags User
2237
+ * @name GetResetUserPassword
2238
+ * @summary Reset a user password - Firm manager, or super admin - Not available in Microservice
2239
+ * @request GET:/api/user/reset-user-password
2240
+ * @secure
2241
+ */ getResetUserPassword(query, config) {
2242
+ return this.apiClient.request({
2243
+ ...config,
2244
+ url: `/user/reset-user-password`,
2245
+ method: 'GET',
2246
+ params: query,
2247
+ secure: true
2248
+ });
2249
+ }
2250
+ /**
2251
+ * @tags User
2252
+ * @name GetUserNameById
2253
+ * @summary Get a user Name by a specific user Id - All users - Not available in Microservice
2254
+ * @request GET:/api/user/user-name-by-id
2255
+ * @secure
2256
+ */ getUserNameById(query, config) {
2257
+ return this.apiClient.request({
2258
+ ...config,
2259
+ url: `/user/user-name-by-id`,
2260
+ method: 'GET',
2261
+ params: query,
2262
+ secure: true,
2263
+ responseType: 'json'
2264
+ });
2265
+ }
2266
+ /**
2267
+ * @description User Name is unique in the system.
2268
+ * @tags User
2269
+ * @name GetUserIdByName
2270
+ * @summary Get a user Id by a specific user Name - All users - Not available in Microservice
2271
+ * @request GET:/api/user/user-id-by-name
2272
+ * @secure
2273
+ */ getUserIdByName(query, config) {
2274
+ return this.apiClient.request({
2275
+ ...config,
2276
+ url: `/user/user-id-by-name`,
2277
+ method: 'GET',
2278
+ params: query,
2279
+ secure: true,
2280
+ responseType: 'json'
2281
+ });
2282
+ }
2283
+ /**
2284
+ * @tags User
2285
+ * @name GetUserByName
2286
+ * @summary Search a user by an exactly user name - All users - Not available in Microservice
2287
+ * @request GET:/api/user/user-by-name
2288
+ * @secure
2289
+ */ getUserByName(query, config) {
2290
+ return this.apiClient.request({
2291
+ ...config,
2292
+ url: `/user/user-by-name`,
2293
+ method: 'GET',
2294
+ params: query,
2295
+ secure: true,
2296
+ responseType: 'json'
2297
+ });
2298
+ }
2299
+ /**
2300
+ * @tags User
2301
+ * @name GetUsersById
2302
+ * @summary Search users by exactly userids - All users - Not available in Microservice
2303
+ * @request GET:/api/user/users-by-id
2304
+ * @secure
2305
+ */ getUsersById(query, config) {
2306
+ return this.apiClient.request({
2307
+ ...config,
2308
+ url: `/user/users-by-id`,
2309
+ method: 'GET',
2310
+ params: query,
2311
+ secure: true,
2312
+ responseType: 'json'
2313
+ });
2314
+ }
2315
+ /**
2316
+ * @description It will return all users that user name contains the query string, no matter case.
2317
+ * @tags User
2318
+ * @name PostUsersFuzzy
2319
+ * @summary Search users which include a specific string with Pagination and Sort - All users - Not available in Microservice
2320
+ * @request POST:/api/user/users-fuzzy
2321
+ * @secure
2322
+ */ postUsersFuzzy(data, query, config) {
2323
+ return this.apiClient.request({
2324
+ ...config,
2325
+ url: `/user/users-fuzzy`,
2326
+ method: 'POST',
2327
+ params: query,
2328
+ data: data,
2329
+ secure: true,
2330
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2331
+ responseType: 'json'
2332
+ });
2333
+ }
2334
+ /**
2335
+ * @tags User
2336
+ * @name GetUsersByFirm
2337
+ * @summary Query all users in a specific firm - Firm manager, or super admin - Not available in Microservice
2338
+ * @request GET:/api/user/users-by-firm
2339
+ * @secure
2340
+ */ getUsersByFirm(query, config) {
2341
+ return this.apiClient.request({
2342
+ ...config,
2343
+ url: `/user/users-by-firm`,
2344
+ method: 'GET',
2345
+ params: query,
2346
+ secure: true,
2347
+ responseType: 'json'
2348
+ });
2349
+ }
2350
+ /**
2351
+ * @description All conditions are optional
2352
+ * @tags User
2353
+ * @name PostUsersByMultipleConditions
2354
+ * @summary Search Users by multiple conditions with Pagination and Sort - Firm manager, or super admin - available in Microservice
2355
+ For Microservice API:
2356
+ 1. No parameter 'user_name' and 'email'. Instead, it has parameter 'user_search', which will do fuzzy search on both user_name and email.
2357
+ 2. Only return 'UMA' source users
2358
+ * @request POST:/api/user/users-by-multiple-conditions
2359
+ * @secure
2360
+ */ postUsersByMultipleConditions(data, query, config) {
2361
+ return this.apiClient.request({
2362
+ ...config,
2363
+ url: `/user/users-by-multiple-conditions`,
2364
+ method: 'POST',
2365
+ params: query,
2366
+ data: data,
2367
+ secure: true,
2368
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2369
+ responseType: 'json'
2370
+ });
2371
+ }
2372
+ /**
2373
+ * @description Super admin is admin users in ViewTrade
2374
+ * @tags User
2375
+ * @name PostSuperAdmins
2376
+ * @summary Query all super admin users - Super admin - Not available in Microservice
2377
+ * @request POST:/api/user/super-admins
2378
+ * @secure
2379
+ */ postSuperAdmins(data, config) {
2380
+ return this.apiClient.request({
2381
+ ...config,
2382
+ url: `/user/super-admins`,
2383
+ method: 'POST',
2384
+ data: data,
2385
+ secure: true,
2386
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2387
+ responseType: 'json'
2388
+ });
2389
+ }
2390
+ /**
2391
+ * @description !Caution! It will delete the relevant user information, data configuration and unsign all UserEntitlements for this user.
2392
+ * @tags User
2393
+ * @name DeleteUser
2394
+ * @summary Delete an existing user - Super admin - Not available in Microservice
2395
+ * @request DELETE:/api/user/user
2396
+ * @secure
2397
+ */ deleteUser(query, config) {
2398
+ return this.apiClient.request({
2399
+ ...config,
2400
+ url: `/user/user`,
2401
+ method: 'DELETE',
2402
+ params: query,
2403
+ secure: true
2404
+ });
2405
+ }
2406
+ /**
2407
+ * @tags User
2408
+ * @name GetUserRole
2409
+ * @summary Search a user role by user Id - All users - Not available in Microservice
2410
+ * @request GET:/api/user/user-role
2411
+ * @secure
2412
+ */ getUserRole(query, config) {
2413
+ return this.apiClient.request({
2414
+ ...config,
2415
+ url: `/user/user-role`,
2416
+ method: 'GET',
2417
+ params: query,
2418
+ secure: true
2419
+ });
2420
+ }
2421
+ /**
2422
+ * @description When manager/admin create user information, it will not validate user information. When end user create user information, it will validate user information: - "FirstName is required and length is 1~255" - "LastName is required and length is 1~255" - "Street1 is required" - "City is required" - "State is required" - "ZipCode is required" - "Country is required" - "EmployStatus is required" - "LicenseNumber is required and length is 1~255 for professional user"
2423
+ * @tags User
2424
+ * @name PostUserInformation
2425
+ * @summary Create new user information - All users - available in Microservice
2426
+ * @request POST:/api/user/user-information
2427
+ * @secure
2428
+ */ postUserInformation(data, config) {
2429
+ return this.apiClient.request({
2430
+ ...config,
2431
+ url: `/user/user-information`,
2432
+ method: 'POST',
2433
+ data: data,
2434
+ secure: true,
2435
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2436
+ responseType: 'json'
2437
+ });
2438
+ }
2439
+ /**
2440
+ * @description When manager/admin create user information, it will not validate user information. When end user create user information, it will validate user information: - "FirstName is required and length is 1~255" - "LastName is required and length is 1~255" - "Street1 is required" - "City is required" - "State is required" - "ZipCode is required" - "Country is required" - "EmployStatus is required" - "LicenseNumber is required and length is 1~255 for professional user"
2441
+ * @tags User
2442
+ * @name PutUserInformation
2443
+ * @summary Update existing user information - All users - available in Microservice
2444
+ * @request PUT:/api/user/user-information
2445
+ * @secure
2446
+ */ putUserInformation(data, query, config) {
2447
+ return this.apiClient.request({
2448
+ ...config,
2449
+ url: `/user/user-information`,
2450
+ method: 'PUT',
2451
+ params: query,
2452
+ data: data,
2453
+ secure: true,
2454
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2455
+ });
2456
+ }
2457
+ /**
2458
+ * @tags User
2459
+ * @name GetUserInformationById
2460
+ * @summary Query a specific user information - All users - available in Microservice
2461
+ * @request GET:/api/user/user-information-by-id
2462
+ * @secure
2463
+ */ getUserInformationById(query, config) {
2464
+ return this.apiClient.request({
2465
+ ...config,
2466
+ url: `/user/user-information-by-id`,
2467
+ method: 'GET',
2468
+ params: query,
2469
+ secure: true,
2470
+ responseType: 'json'
2471
+ });
2472
+ }
2473
+ /**
2474
+ * @tags User
2475
+ * @name GetOccupationList
2476
+ * @summary Query occupation list that can be used in user information EmploymentFunction - All users - available in Microservice
2477
+ * @request GET:/api/user/occupation-list
2478
+ * @secure
2479
+ */ getOccupationList(config) {
2480
+ return this.apiClient.request({
2481
+ ...config,
2482
+ url: `/user/occupation-list`,
2483
+ method: 'GET',
2484
+ secure: true,
2485
+ responseType: 'json'
2486
+ });
2487
+ }
2488
+ /**
2489
+ * @description It will check if user firm has relevant data acess.
2490
+ * @tags User
2491
+ * @name PostUserDataConfig
2492
+ * @summary Create new user data configuration - Firm manager, or super admin - available in Microservice
2493
+ * @request POST:/api/user/user-data-config
2494
+ * @secure
2495
+ */ postUserDataConfig(data, config) {
2496
+ return this.apiClient.request({
2497
+ ...config,
2498
+ url: `/user/user-data-config`,
2499
+ method: 'POST',
2500
+ data: data,
2501
+ secure: true,
2502
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2503
+ responseType: 'json'
2504
+ });
2505
+ }
2506
+ /**
2507
+ * @description It will check if user firm has relevant data acess.
2508
+ * @tags User
2509
+ * @name PutUserDataConfig
2510
+ * @summary Update existing user data configuration - Firm manager, or super admin - available in Microservice
2511
+ * @request PUT:/api/user/user-data-config
2512
+ * @secure
2513
+ */ putUserDataConfig(data, query, config) {
2514
+ return this.apiClient.request({
2515
+ ...config,
2516
+ url: `/user/user-data-config`,
2517
+ method: 'PUT',
2518
+ params: query,
2519
+ data: data,
2520
+ secure: true,
2521
+ contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2522
+ });
2523
+ }
2524
+ /**
2525
+ * @description USEquity bitwise: 1 UTP(Nasdaq), 2 CBOE1, 3 BATS, 4 NYBQT, 5 UTP OTC, 6 CTA-A, 7 CTA-B
2526
+ * @tags User
2527
+ * @name GetUserDataConfigById
2528
+ * @summary Query a user data configuration by user Id - All users - available in Microservice
2529
+ * @request GET:/api/user/user-data-config-by-id
2530
+ * @secure
2531
+ */ getUserDataConfigById(query, config) {
2532
+ return this.apiClient.request({
2533
+ ...config,
2534
+ url: `/user/user-data-config-by-id`,
2535
+ method: 'GET',
2536
+ params: query,
2537
+ secure: true,
2538
+ responseType: 'json'
2539
+ });
2540
+ }
2541
+ /**
2542
+ * @tags User
2543
+ * @name GetUserDataConfigByIdExtraInfo
2544
+ * @summary Query a user data configuration by user Id - All users - available in Microservice
2545
+ * @request GET:/api/user/user-data-config-by-id-extra-info
2546
+ * @secure
2547
+ */ getUserDataConfigByIdExtraInfo(query, config) {
2548
+ return this.apiClient.request({
2549
+ ...config,
2550
+ url: `/user/user-data-config-by-id-extra-info`,
2551
+ method: 'GET',
2552
+ params: query,
2553
+ secure: true,
2554
+ responseType: 'json'
2555
+ });
2556
+ }
2557
+ /**
2558
+ * @tags User
2559
+ * @name GetUserDataConfigs
2560
+ * @summary Query user data configurations by user Ids - Firm manager or super admin - available in Microservice
2561
+ * @request GET:/api/user/user-data-configs
2562
+ * @secure
2563
+ */ getUserDataConfigs(query, config) {
2564
+ return this.apiClient.request({
2565
+ ...config,
2566
+ url: `/user/user-data-configs`,
2567
+ method: 'GET',
2568
+ params: query,
2569
+ secure: true,
2570
+ responseType: 'json'
2571
+ });
2572
+ }
2573
+ /**
2574
+ * @tags User
2575
+ * @name GetUserNeedSignAgreements
2576
+ * @summary Query which entitlements(agreements) a user need to sign(but not signed yet) by user name - All users - available in Microservice
2577
+ * @request GET:/api/user/user-need-sign-agreements
2578
+ * @secure
2579
+ */ getUserNeedSignAgreements(query, config) {
2580
+ return this.apiClient.request({
2581
+ ...config,
2582
+ url: `/user/user-need-sign-agreements`,
2583
+ method: 'GET',
2584
+ params: query,
2585
+ secure: true,
2586
+ responseType: 'json'
2587
+ });
2588
+ }
2589
+ /**
2590
+ * @tags User
2591
+ * @name GetSessionAlive
2592
+ * @summary Query if current user session is alive - All users - Not available in Microservice
2593
+ * @request GET:/api/user/session-alive
2594
+ * @secure
2595
+ */ getSessionAlive(config) {
2596
+ return this.apiClient.request({
2597
+ ...config,
2598
+ url: `/user/session-alive`,
2599
+ method: 'GET',
2600
+ secure: true,
2601
+ responseType: 'json'
2602
+ });
2603
+ }
2604
+ /**
2605
+ * @tags User
2606
+ * @name GetTest
2607
+ * @summary For system deployment user only - All users - available in Microservice
2608
+ * @request GET:/api/user/Test
2609
+ * @secure
2610
+ */ getTest(config) {
2611
+ return this.apiClient.request({
2612
+ ...config,
2613
+ url: `/user/Test`,
2614
+ method: 'GET',
2615
+ secure: true,
2616
+ responseType: 'json'
2617
+ });
2618
+ }
2619
+ }
2620
+
2621
+
2622
+ var $f6830e801aca4170$exports = {};
2623
+
2624
+ $parcel$export($f6830e801aca4170$exports, "WebSocket", () => $f6830e801aca4170$export$3909fb301d3dc8c9);
2625
+ /* eslint-disable */ /* tslint:disable */ /*
2626
+ * ---------------------------------------------------------------
2627
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2628
+ * ## ##
2629
+ * ## AUTHOR: acacode ##
2630
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2631
+ * ---------------------------------------------------------------
2632
+ */
2633
+ class $f6830e801aca4170$export$3909fb301d3dc8c9 {
2634
+ constructor(apiClient){
2635
+ this.apiClient = apiClient;
2636
+ (0, $5CwE8$autobind)(this);
2637
+ }
2638
+ /**
2639
+ * @tags WebSocket
2640
+ * @name GetWebSocket
2641
+ * @summary WebSocket endpoint - All users - available in Microservice
2642
+ * @request GET:/ws
2643
+ * @secure
2644
+ */ getWebSocket(config) {
2645
+ return this.apiClient.request({
2646
+ ...config,
2647
+ url: `/ws`,
2648
+ method: 'GET',
2649
+ secure: true
2650
+ });
2651
+ }
2652
+ }
2653
+
2654
+
2655
+ var $96dd70b953ac50aa$exports = {};
2656
+
2657
+ $parcel$export($96dd70b953ac50aa$exports, "WsStream", () => $96dd70b953ac50aa$export$4bc722fa18a49af3);
2658
+ /* eslint-disable */ /* tslint:disable */ /*
2659
+ * ---------------------------------------------------------------
2660
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2661
+ * ## ##
2662
+ * ## AUTHOR: acacode ##
2663
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2664
+ * ---------------------------------------------------------------
2665
+ */
2666
+ class $96dd70b953ac50aa$export$4bc722fa18a49af3 {
2667
+ constructor(apiClient){
2668
+ this.apiClient = apiClient;
2669
+ (0, $5CwE8$autobind)(this);
2670
+ }
2671
+ /**
2672
+ * @tags WsStream
2673
+ * @name GetStream
2674
+ * @summary ws stream endpoint - All users - available in Microservice
2675
+ * @request GET:/stream
2676
+ * @secure
2677
+ */ getStream(config) {
2678
+ return this.apiClient.request({
2679
+ ...config,
2680
+ url: `/stream`,
2681
+ method: 'GET',
2682
+ secure: true
2683
+ });
2684
+ }
2685
+ }
2686
+
2687
+
2688
+ $parcel$exportWildcard($40adcf017c67f573$exports, $22a5bbde33c0a998$exports);
2689
+ $parcel$exportWildcard($40adcf017c67f573$exports, $78eb44ae01cb99e8$exports);
2690
+ $parcel$exportWildcard($40adcf017c67f573$exports, $2b62f356558f69db$exports);
2691
+ $parcel$exportWildcard($40adcf017c67f573$exports, $2b871481ea506907$exports);
2692
+ $parcel$exportWildcard($40adcf017c67f573$exports, $6136999aea159e3b$exports);
2693
+ $parcel$exportWildcard($40adcf017c67f573$exports, $4941f64eb306d756$exports);
2694
+ $parcel$exportWildcard($40adcf017c67f573$exports, $f10477b1ab7c510c$exports);
2695
+ $parcel$exportWildcard($40adcf017c67f573$exports, $e3362299f3dca2a2$exports);
2696
+ $parcel$exportWildcard($40adcf017c67f573$exports, $75957c5651a48db2$exports);
2697
+ $parcel$exportWildcard($40adcf017c67f573$exports, $b8ece52855abc819$exports);
2698
+ $parcel$exportWildcard($40adcf017c67f573$exports, $28fda0d8c4e23a26$exports);
2699
+ $parcel$exportWildcard($40adcf017c67f573$exports, $d014cbaaab9ee483$exports);
2700
+ $parcel$exportWildcard($40adcf017c67f573$exports, $f6830e801aca4170$exports);
2701
+ $parcel$exportWildcard($40adcf017c67f573$exports, $96dd70b953ac50aa$exports);
2702
+
2703
+
2704
+ class $e27b116a6f94964e$export$fdc699bad85078d9 extends (0, $001a7a5b1ca54b2d$export$3ad201792064a82b) {
2705
+ constructor(config){
2706
+ super(new (0, $584c124673bb843e$export$f280b732bbc5934b)(config)), this.config = config;
2707
+ this.dataSource = new (0, $22a5bbde33c0a998$export$accd73d198d77d2f)(this.apiClient);
2708
+ this.entitlement = new (0, $78eb44ae01cb99e8$export$7b20d168ba04011b)(this.apiClient);
2709
+ this.file = new (0, $2b62f356558f69db$export$b6afa8811b7e644e)(this.apiClient);
2710
+ this.firm = new (0, $2b871481ea506907$export$b82695c11be95fff)(this.apiClient);
2711
+ this.fundWebQuote = new (0, $6136999aea159e3b$export$3ddc46c765704011)(this.apiClient);
2712
+ this.log = new (0, $4941f64eb306d756$export$ce30dbb46644d06c)(this.apiClient);
2713
+ this.permission = new (0, $f10477b1ab7c510c$export$a461eaf23bef603e)(this.apiClient);
2714
+ this.quote = new (0, $e3362299f3dca2a2$export$82b8d343c504672)(this.apiClient);
2715
+ this.quotesReformat = new (0, $75957c5651a48db2$export$304305f55794ea0e)(this.apiClient);
2716
+ this.user = new (0, $d014cbaaab9ee483$export$1f44aaf2ec115b54)(this.apiClient);
2717
+ this.webSocket = new (0, $f6830e801aca4170$export$3909fb301d3dc8c9)(this.apiClient);
2718
+ this.wsStream = new (0, $96dd70b953ac50aa$export$4bc722fa18a49af3)(this.apiClient);
2719
+ }
2720
+ }
2721
+
2722
+
2723
+
2724
+
2725
+
2726
+ export {$e27b116a6f94964e$export$fdc699bad85078d9 as AesMidasApi, $22a5bbde33c0a998$export$accd73d198d77d2f as DataSource, $78eb44ae01cb99e8$export$7b20d168ba04011b as Entitlement, $2b62f356558f69db$export$b6afa8811b7e644e as File, $2b871481ea506907$export$b82695c11be95fff as Firm, $6136999aea159e3b$export$3ddc46c765704011 as FundWebQuote, $4941f64eb306d756$export$ce30dbb46644d06c as Log, $f10477b1ab7c510c$export$a461eaf23bef603e as Permission, $e3362299f3dca2a2$export$82b8d343c504672 as Quote, $75957c5651a48db2$export$304305f55794ea0e as QuotesReformat, $28fda0d8c4e23a26$export$51933dbbacfe440f as UmaTest, $d014cbaaab9ee483$export$1f44aaf2ec115b54 as User, $f6830e801aca4170$export$3909fb301d3dc8c9 as WebSocket, $96dd70b953ac50aa$export$4bc722fa18a49af3 as WsStream};
2
2727
  //# sourceMappingURL=index.esm.js.map