@orbis-systems/orbis-api-clients 0.7.7 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/aesmidas/index.d.ts +65 -48
  2. package/dist/aesmidas/index.d.ts.map +1 -1
  3. package/dist/aesmidas/index.esm.js +1 -1
  4. package/dist/aesmidas/index.esm.js.map +1 -1
  5. package/dist/aesmidas/index.js +1 -1
  6. package/dist/aesmidas/index.js.map +1 -1
  7. package/dist/bridgewise/index.d.ts +1348 -406
  8. package/dist/bridgewise/index.d.ts.map +1 -1
  9. package/dist/bridgewise/index.esm.js +1 -1
  10. package/dist/bridgewise/index.esm.js.map +1 -1
  11. package/dist/bridgewise/index.js +1 -1
  12. package/dist/bridgewise/index.js.map +1 -1
  13. package/dist/insight/index.d.ts +252 -227
  14. package/dist/insight/index.d.ts.map +1 -1
  15. package/dist/insight/index.esm.js +1 -1
  16. package/dist/insight/index.esm.js.map +1 -1
  17. package/dist/insight/index.js +1 -1
  18. package/dist/insight/index.js.map +1 -1
  19. package/dist/middleware/index.d.ts +34 -34
  20. package/dist/middleware/index.d.ts.map +1 -1
  21. package/dist/middleware/index.esm.js +1 -1
  22. package/dist/middleware/index.esm.js.map +1 -1
  23. package/dist/middleware/index.js +1 -1
  24. package/dist/middleware/index.js.map +1 -1
  25. package/dist/orbis/index.d.ts +154 -154
  26. package/dist/orbis/index.d.ts.map +1 -1
  27. package/dist/orbis/index.esm.js +1 -1
  28. package/dist/orbis/index.esm.js.map +1 -1
  29. package/dist/orbis/index.js +1 -1
  30. package/dist/orbis/index.js.map +1 -1
  31. package/dist/uma/index.d.ts +261 -259
  32. package/dist/uma/index.d.ts.map +1 -1
  33. package/dist/uma/index.esm.js +1 -1
  34. package/dist/uma/index.esm.js.map +1 -1
  35. package/dist/uma/index.js +1 -1
  36. package/dist/uma/index.js.map +1 -1
  37. package/dist/zerohash/index.d.ts.map +1 -1
  38. package/dist/zerohash/index.esm.js.map +1 -1
  39. package/dist/zerohash/index.js.map +1 -1
  40. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- var e,t,s,n,r,a,i,o,u,p,c,l,m,h,g,d,y,T,C,E,f,q,v,S,j,G,k,w,$,P,b=require("auto-bind"),_=require("async-mutex"),A=require("consola"),F=require("date-fns"),x=require("jwt-decode"),B=require("axios"),D=require("axios-better-stacktrace"),I=require("lodash");function R(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}function N(e,t,s,n){Object.defineProperty(e,t,{get:s,set:n,enumerable:!0,configurable:!0})}function W(e){return e&&e.__esModule?e.default:e}var M={};N(M,"BridgeWiseApi",()=>tt);class O{constructor(e){this.apiClient=e,W(b)(this)}getApiClient(){return this.apiClient}}var L=((e={}).Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e);class J{constructor(e){this.config=e,W(b)(this),this.storage=e.storage??sessionStorage,this.axiosInstance=W(B).create({...e.axiosConfig,baseURL:e.baseUrl,headers:{"Content-Type":"application/json",...e.axiosConfig?.headers}}),W(D)(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 n=e[s];for(let e of n instanceof Array?n:[n]){let n=e instanceof Blob||e instanceof File;t.append(s,n?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;(0,I.isNil)(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 n=(0,I.merge)(e.secure??this.config.defaultSecure??!0?await this.prepareAuthRequestConfig():{},t?{headers:{"Content-Type":t}}:{},e);try{let{data:e,status:t,statusText:s}=await this.axiosInstance.request(n);return{success:!0,data:e,status:t,statusText:s}}catch(s){let t={success:!1,status:-1,statusText:String(s),error:s};if((0,B.isAxiosError)(s)&&(this.config.onAxiosError?.(s),t.data=s.response?.data,t.status=s.response?.status??t.status,t.statusText=s.response?.statusText??t.statusText),this.config.onError?.(s),!this.config.handleError&&!e.handleError)throw s;return t}}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 H extends J{constructor(e){super(e),this.config=e,this.lock=new _.Mutex}getConfig(){return super.getConfig()}setRenewTokenCallback(e){this.renewTokenCallback=e}async prepareAuthRequestConfig(){if(this.config.axiosConfig?.withCredentials)return{};let{accessToken:e}=this.getAuthData()||{};if(!e)return(0,A.consola).warn("No access token found. Please set auth data after authorization."),{};if(!1!==this.config.autoRenewToken&&this.isTokenExpired(e))try{await this.lock.runExclusive(async()=>{this.config.debug&&(0,A.consola).debug("Token expired. Renewing…"),e=(await this.renewToken()).accessToken,this.lock.cancel()})}catch(t){if(t===_.E_CANCELED)e=this.getAuthData()?.accessToken;else throw t}return{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}}isTokenExpired(e){let t=(0,x.jwtDecode)(e);return!t.exp||(0,F.isBefore)((0,F.subMinutes)(1e3*t.exp,1),Date.now())}async renewToken(){let e=this.config.onRenewToken??this.renewTokenCallback;if(!e)throw Error("No renew token callback provided");let t=await e();return this.setAuthData(t),t}}var V={},K={};N(K,"BridgeWiseCompanyAlertSentiment",()=>z),N(K,"BridgeWiseCompanyAlertType",()=>U),N(K,"BridgeWiseForecastType",()=>Z),N(K,"BridgeWiseLanguageEnum",()=>Q),N(K,"BridgeWiseCompanyFilterType",()=>Y),N(K,"BridgeWiseCompositionTypeEnum",()=>X),N(K,"BridgeWiseImageExtensionEnum",()=>ee),N(K,"BridgeWiseLogoSizeEnum",()=>et),N(K,"BridgeWiseLogoTypeEnum",()=>es),N(K,"BridgeWiseCompanyNewsSortingEnum",()=>en),N(K,"BridgeWiseESGSectionTypeEnum",()=>er),N(K,"BridgeWiseEarningsCallRecapEnum",()=>ea),N(K,"BridgeWiseFundamentalParagraphSectionTypeEnum",()=>ei),N(K,"BridgeWiseNewsSentimentEnum",()=>eo),N(K,"BridgeWiseScoringMethodEnum",()=>eu),N(K,"BridgeWiseESGScoreGroup",()=>ep),N(K,"BridgeWiseFundamentalSectionTypeEnum",()=>ec),N(K,"BridgeWiseFundsSegmentParameterEnum",()=>el),N(K,"BridgeWisePeriodTypeEnum",()=>em),N(K,"BridgeWiseSectionTypeEnum",()=>eh),N(K,"BridgeWiseAnalysisTypeEnum",()=>eg),N(K,"BridgeWiseGlobalIndustryScoringEnum",()=>ed),N(K,"BridgeWiseScoreMethodology",()=>ey),N(K,"BridgeWiseEventTypeEnum",()=>eT),N(K,"BridgeWiseIdCheckConfigNameEnum",()=>eC),N(K,"BridgeWiseIdCheckConfigOperatorEnum",()=>eE),N(K,"BridgeWiseMarketDataConfigNameEnum",()=>ef),N(K,"BridgeWiseMarketDataConfigOperatorEnum",()=>eq),N(K,"BridgeWiseStockingFloatConfigOperatorEnum",()=>ev);var z=((t={}).Positive="positive",t.Negative="negative",t),U=((s={}).Fundamental="fundamental",s.Market="market",s),Z=((n={}).Esg="esg",n.KeyDevelopments="key_developments",n.News="news",n),Q=((r={}).ArSA="ar-SA",r.DeDE="de-DE",r.EnUS="en-US",r.EsES="es-ES",r.FrFR="fr-FR",r.HeIL="he-IL",r.NlNL="nl-NL",r.PtBR="pt-BR",r.TrTR="tr-TR",r.ZhCN="zh-CN",r.JaJP="ja-JP",r.KoKR="ko-KR",r.ThTH="th-TH",r.ZhHK="zh-HK",r),Y=((a={}).Countries="countries",a.GicsIndustry="gics_industry",a.GicsSector="gics_sector",a.Regions="regions",a.GicsGroup="gics_group",a.Currency="currency",a.Exchange="exchange",a.CsaIndustry="csa_industry",a.Benchmark="benchmark",a.Sponsor="sponsor",a.Sector="sector",a.ManagementStyle="management_style",a.Recommendation="recommendation",a.MarketCapEmphasis="market_cap_emphasis",a.Exposure="exposure",a.GeographyEmphasis="geography_emphasis",a.MarketBenchmark="market_benchmark",a.PrimaryBenchmark="primary_benchmark",a),X=((i={}).Stocks="stocks",i.Others="others",i),ee=((o={}).Png="png",o.Svg="svg",o.Jpg="jpg",o),et=((u={}).Original="original",u.Square="square",u),es=((p={}).Square="square",p.Horizontal="horizontal",p),en=((c={}).PublicationDate="publication_date",c.RelevancyScore="relevancy_score",c.SocialShares="social_shares",c),er=((l={}).Social="social",l.Environmental="environmental",l.Governance="governance",l.Summary="summary",l.Controversies="controversies",l.Transparency="transparency",l.Weaknesses="weaknesses",l),ea=((m={}).Highlights="highlights",m.Lowlights="lowlights",m),ei=((h={}).BalanceSheet="balance_sheet",h.IncomeStatement="income_statement",h.CashFlow="cash_flow",h.CompanyDescription="company_description",h.CompanyFundamentals="company_fundamentals",h.SummaryRecommendation="summary_recommendation",h),eo=((g={}).VeryNegative="Very Negative",g.Negative="Negative",g.Neutral="Neutral",g.Positive="Positive",g.VeryPositive="Very Positive",g.Invalid="Invalid",g),eu=((d={}).Global="global",d.Industry="industry",d.Country="country",d.Sector="sector",d),ep=((y={})[y.Value5=5]="Value5",y[y.Value4=4]="Value4",y[y.Value3=3]="Value3",y[y.Value2=2]="Value2",y[y.Value1=1]="Value1",y),ec=((T={}).BalanceSheet="balance_sheet",T.IncomeStatement="income_statement",T.CashFlow="cash_flow",T),el=((C={}).PeRatio="pe_ratio",C.PbRatio="pb_ratio",C.PsRatio="ps_ratio",C.NetDebtToEbitda="net_debt_to_ebitda",C.MarketCap="market_cap",C.Return1Y="return_1y",C.Roe="roe",C.RevenueGrowth="revenue_growth",C.SegmentStrength="segment_strength",C),em=((E={}).Quarterly="quarterly",E.Annually="annually",E.Last12Month="last_12_month",E),eh=((f={}).BalanceSheet="balance_sheet",f.IncomeStatement="income_statement",f.CashFlow="cash_flow",f.Social="social",f.Environmental="environmental",f.Governance="governance",f.Summary="summary",f.Probability="probability",f),eg=((q={}).Fundamental="fundamental",q.Esg="esg",q.PriceTarget="price_target",q.Technical="technical",q),ed=((v={}).Global="global",v.Industry="industry",v),ey=((S={}).Global="global",S.Industry="industry",S.Country="country",S.Sector="sector",S),eT=((j={}).PolicyThreshold="policy_threshold",j.InternalCoverage="internal_coverage",j.BwRecommendation="bw_recommendation",j),eC=((G={}).Index="index",G.Exchange="exchange",G.DomicileCountry="domicile_country",G.ExchangeCountry="exchange_country",G),eE=((k={}).Isin="isin",k.Notin="notin",k),ef=((w={}).MarketCap="market_cap",w.Volume="volume",w),eq=(($={}).Ge="ge",$.Le="le",$.Gt="gt",$.Lt="lt",$),ev=((P={}).Ge="ge",P.Le="le",P.Gt="gt",P.Lt="lt",P),eS={};N(eS,"Logos",()=>ej);class ej{constructor(e){this.apiClient=e,W(b)(this)}fetchLogos(e,t){return this.apiClient.request({...t,url:"/companies/logos",method:"GET",params:e,secure:!0,responseType:"json"})}fetchLogo(e,t){return this.apiClient.request({...t,url:`/companies/${e}/logos`,method:"GET",secure:!0,responseType:"json"})}}var eG={};N(eG,"CompanyMetadata",()=>ek);class ek{constructor(e){this.apiClient=e,W(b)(this)}getCompanies(e,t){return this.apiClient.request({...t,url:"/companies",method:"GET",params:e,secure:!0,responseType:"json"})}getCompany(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}`,method:"GET",params:t,secure:!0,responseType:"json"})}getIdentifierSearch(e,t){return this.apiClient.request({...t,url:"/identifier-search",method:"GET",params:e,secure:!0,responseType:"json"})}}var ew={};N(ew,"Activities",()=>e$);class e${constructor(e){this.apiClient=e,W(b)(this)}getCompanyAlerts(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/alerts`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyForecastsKeyDevelopment(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/key-developments`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eP={};N(eP,"EarningCalls",()=>eb);class eb{constructor(e){this.apiClient=e,W(b)(this)}getCompanyEarningsCalls(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/earnings-call`,method:"GET",params:t,secure:!0,responseType:"json"})}getEarningsCallsRecaps(e,t,s,n){return this.apiClient.request({...n,url:`/companies/${t}/earnings-call/${e}/recaps`,method:"GET",params:s,secure:!0,responseType:"json"})}}var e_={};N(e_,"EsgAnalysis",()=>eA);class eA{constructor(e){this.apiClient=e,W(b)(this)}getCompanyEsgAnalysis(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/esg-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyEsgParagraphs(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/esg-paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyEsgParameters(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/esg-parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyEsgSections(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/esg-sections`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyForecastsMsa(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/sustainability-incidents`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eF={};N(eF,"Forecasts",()=>ex);class ex{constructor(e){this.apiClient=e,W(b)(this)}getCompanyForecasts(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/forecasts`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eB={};N(eB,"FundamentalAnalysis",()=>eD);class eD{constructor(e){this.apiClient=e,W(b)(this)}getCompanyFundamentalAnalysis(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/fundamental-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyFundamentalParagraphs(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/fundamental-paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyFundamentalParameters(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/fundamental-parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyFundamentalSections(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/fundamental-sections`,method:"GET",params:t,secure:!0,responseType:"json"})}getTargetPrice(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/target-price`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eI={};N(eI,"ConsensusAnalysts",()=>eR);class eR{constructor(e){this.apiClient=e,W(b)(this)}getConsensusRatings(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/consensus-ratings`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eN={};N(eN,"CompanyMarketData",()=>eW);class eW{constructor(e){this.apiClient=e,W(b)(this)}getCompanyMarketData(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/market`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyMarketStatistics(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/market-statistics`,method:"GET",params:t,secure:!0,responseType:"json"})}getTradingItems(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/trading-items`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eM={};N(eM,"CompanyNews",()=>eO);class eO{constructor(e){this.apiClient=e,W(b)(this)}getCompanyNews(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/news`,method:"GET",params:t,secure:!0,responseType:"json"})}getAverageCompanyNewsSentiment(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/news-sentiment`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eL={};N(eL,"TechnicalAnalysis",()=>eJ);class eJ{constructor(e){this.apiClient=e,W(b)(this)}getCompanyTechnicalAnalysis(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/technical-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyTechnicalParagraphs(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/technical-paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyTechnicalParameters(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/technical-parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eH={};N(eH,"Metadata",()=>eV);class eV{constructor(e){this.apiClient=e,W(b)(this)}getCompanyFilters(e,t){return this.apiClient.request({...t,url:"/filters",method:"GET",params:e,secure:!0,responseType:"json"})}}var eK={};N(eK,"FundMetadata",()=>ez);class ez{constructor(e){this.apiClient=e,W(b)(this)}getFunds(e,t){return this.apiClient.request({...t,url:"/funds",method:"GET",params:e,secure:!0,responseType:"json"})}getFund(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eU={};N(eU,"FundAnalysis",()=>eZ);class eZ{constructor(e){this.apiClient=e,W(b)(this)}getFundAnalysis(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundsParagraphs(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundParameters(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundSections(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/sections`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eQ={};N(eQ,"Holdings",()=>eY);class eY{constructor(e){this.apiClient=e,W(b)(this)}getCompositions(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/compositions`,method:"GET",params:t,secure:!0,responseType:"json"})}getHoldingStatistics(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/holding-statistics`,method:"GET",params:t,secure:!0,responseType:"json"})}getHoldings(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/holdings`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eX={};N(eX,"FundEsgAnalysis",()=>e0);class e0{constructor(e){this.apiClient=e,W(b)(this)}getFundEsgAnalysis(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/esg-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e1={};N(e1,"FundMarketData",()=>e2);class e2{constructor(e){this.apiClient=e,W(b)(this)}getFundsMarketData(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/market`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundsMarketStatistics(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/market-statistics`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundTradingItems(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/trading-items`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e3={};N(e3,"Users",()=>e4);class e4{constructor(e){this.apiClient=e,W(b)(this)}authenticate(e,t){return this.apiClient.request({...t,url:"/users/authenticate",method:"POST",data:e,secure:!0,contentType:L.Json,responseType:"json"})}fetchClientDetails(e,t){return this.apiClient.request({...t,url:"/users/machine",method:"GET",secure:!0,headers:e,responseType:"json"})}}var e5={};N(e5,"SectorAnalysis",()=>e6);class e6{constructor(e){this.apiClient=e,W(b)(this)}getSectorAnalysis(e,t,s){return this.apiClient.request({...s,url:`/sectors/${e}/analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e7={};N(e7,"Segmentations",()=>e8);class e8{constructor(e){this.apiClient=e,W(b)(this)}getSegmentParameters(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/segment-parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}getSegment(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/segments`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e9={};N(e9,"Tenants",()=>te);class te{constructor(e){this.apiClient=e,W(b)(this)}fetchTenant(e,t){return this.apiClient.request({...t,url:`/tenants/${e}`,method:"GET",secure:!0,responseType:"json"})}getHistoricalPolicyChanges(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/historical-policy-changes`,method:"GET",params:t,secure:!0,responseType:"json"})}createTenantInvestmentPoliciesConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/investment-policies-config`,method:"POST",data:t,secure:!0,contentType:L.Json,responseType:"json"})}listTenantInvestmentPoliciesConfigs(e,t){return this.apiClient.request({...t,url:`/tenants/${e}/investment-policies-config`,method:"GET",secure:!0,responseType:"json"})}createTenantInvestmentPoliciesConfigBulk(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/investment-policies-config/bulk`,method:"POST",data:t,secure:!0,contentType:L.Json,responseType:"json"})}getTenantInvestmentPoliciesConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${t}/investment-policies-config/${e}`,method:"GET",secure:!0,responseType:"json"})}patchTenantInvestmentPoliciesConfig(e,t,s,n){return this.apiClient.request({...n,url:`/tenants/${t}/investment-policies-config/${e}`,method:"PATCH",data:s,secure:!0,contentType:L.Json,responseType:"json"})}deleteTenantInvestmentPoliciesConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${t}/investment-policies-config/${e}`,method:"DELETE",secure:!0,responseType:"json"})}createCognitoClientApplication(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/machine`,method:"POST",data:t,secure:!0,contentType:L.Json,responseType:"json"})}getRecommendations(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations`,method:"GET",params:t,secure:!0,responseType:"json"})}createTenantRecommendationsConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config`,method:"POST",data:t,secure:!0,contentType:L.Json,responseType:"json"})}createTenantRecommendationsConfigBulk(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config/bulk`,method:"POST",data:t,secure:!0,contentType:L.Json,responseType:"json"})}getTenantRecommendationsConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config/${t}`,method:"GET",secure:!0,responseType:"json"})}patchTenantRecommendationsConfig(e,t,s,n){return this.apiClient.request({...n,url:`/tenants/${e}/recommendations-config/${t}`,method:"PATCH",data:s,secure:!0,contentType:L.Json,responseType:"json"})}deleteTenantRecommendationsConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config/${t}`,method:"DELETE",secure:!0,responseType:"json"})}}R(V,K),R(V,eS),R(V,eG),R(V,ew),R(V,eP),R(V,e_),R(V,eF),R(V,eB),R(V,eI),R(V,eN),R(V,eM),R(V,eL),R(V,eH),R(V,eK),R(V,eU),R(V,eQ),R(V,eX),R(V,e1),R(V,e3),R(V,e5),R(V,e7),R(V,e9);class tt extends O{constructor(e){super(new H(e)),this.config=e,this.activities=new e$(this.apiClient),this.companyMarketData=new eW(this.apiClient),this.companyMetadata=new ek(this.apiClient),this.companyNews=new eO(this.apiClient),this.consensusAnalysts=new eR(this.apiClient),this.earningCalls=new eb(this.apiClient),this.esgAnalysis=new eA(this.apiClient),this.fundamentalAnalysis=new eD(this.apiClient),this.fundAnalysis=new eZ(this.apiClient),this.fundEsgAnalysis=new e0(this.apiClient),this.fundMarketData=new e2(this.apiClient),this.fundMetadata=new ez(this.apiClient),this.holdings=new eY(this.apiClient),this.logos=new ej(this.apiClient),this.metadata=new eV(this.apiClient),this.segmentations=new e8(this.apiClient),this.technicalAnalysis=new eJ(this.apiClient)}}R(module.exports,M),R(module.exports,V);
1
+ var e,t,s,n,r,a,i,o,u,p,c,l,h,m,d,g,y,T,C,E,f,q,v,j,G,S,w,$,k,P,b,A,B,F,x,I,_=require("auto-bind"),D=require("async-mutex"),W=require("consola"),R=require("date-fns"),N=require("jwt-decode"),M=require("axios"),O=require("axios-better-stacktrace"),L=require("lodash");function J(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}function H(e,t,s,n){Object.defineProperty(e,t,{get:s,set:n,enumerable:!0,configurable:!0})}function V(e){return e&&e.__esModule?e.default:e}var K={};H(K,"BridgeWiseApi",()=>tE);class z{constructor(e){this.apiClient=e,V(_)(this)}getApiClient(){return this.apiClient}}var U=((e={}).Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e);class Z{constructor(e){this.config=e,V(_)(this),this.storage=e.storage??sessionStorage,this.axiosInstance=V(M).create({...e.axiosConfig,baseURL:e.baseUrl,headers:{"Content-Type":"application/json",...e.axiosConfig?.headers}}),V(O)(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 n=e[s];for(let e of n instanceof Array?n:[n]){let n=e instanceof Blob||e instanceof File;t.append(s,n?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;(0,L.isNil)(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 n=(0,L.merge)(e.secure??this.config.defaultSecure??!0?await this.prepareAuthRequestConfig():{},t?{headers:{"Content-Type":t}}:{},e);try{let{data:e,status:t,statusText:s}=await this.axiosInstance.request(n);return{success:!0,data:e,status:t,statusText:s}}catch(s){let t={success:!1,status:-1,statusText:String(s),error:s};if((0,M.isAxiosError)(s)&&(this.config.onAxiosError?.(s),t.data=s.response?.data,t.status=s.response?.status??t.status,t.statusText=s.response?.statusText??t.statusText),this.config.onError?.(s),!this.config.handleError&&!e.handleError)throw s;return t}}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 Q extends Z{constructor(e){super(e),this.config=e,this.lock=new D.Mutex}getConfig(){return super.getConfig()}setRenewTokenCallback(e){this.renewTokenCallback=e}async prepareAuthRequestConfig(){if(this.config.axiosConfig?.withCredentials)return{};let{accessToken:e}=this.getAuthData()||{};if(!e)return(0,W.consola).warn("No access token found. Please set auth data after authorization."),{};if(!1!==this.config.autoRenewToken&&this.isTokenExpired(e))try{await this.lock.runExclusive(async()=>{this.config.debug&&(0,W.consola).debug("Token expired. Renewing…"),e=(await this.renewToken()).accessToken,this.lock.cancel()})}catch(t){if(t===D.E_CANCELED)e=this.getAuthData()?.accessToken;else throw t}return{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}}isTokenExpired(e){let t=(0,N.jwtDecode)(e);return!t.exp||(0,R.isBefore)((0,R.subMinutes)(1e3*t.exp,1),Date.now())}async renewToken(){let e=this.config.onRenewToken??this.renewTokenCallback;if(!e)throw Error("No renew token callback provided");let t=await e();return this.setAuthData(t),t}}var Y={},X={};H(X,"Bridget",()=>ee);class ee{constructor(e){this.apiClient=e,V(_)(this)}questionCreate(e,t){return this.apiClient.request({...t,url:"/bridget/v2/external/question",method:"POST",data:e,secure:!0,contentType:U.Json,responseType:"json"})}tenantsExportRetrieve(e,t,s){return this.apiClient.request({...s,url:`/bridget/v2/external/tenants/${e}/export`,method:"GET",params:t,secure:!0,responseType:"json"})}}var et={};H(et,"Bwc",()=>es);class es{constructor(e){this.apiClient=e,V(_)(this)}bulkdata(e,t){return this.apiClient.request({...t,url:`/bulkdata/${e}`,method:"GET",secure:!0,responseType:"json"})}investmentPolicy(e,t){return this.apiClient.request({...t,url:`/investment-policy/${e}`,method:"GET",secure:!0,responseType:"json"})}getAnalysis(e,t,s){return this.apiClient.request({...s,url:"/v2/analysis",method:"GET",params:e,secure:!0,headers:t,responseType:"json"})}getBusinessDescription(e,t,s){return this.apiClient.request({...s,url:"/v2/business-description",method:"GET",params:e,secure:!0,headers:t,responseType:"json"})}getFundamentalAnalysis(e,t,s){return this.apiClient.request({...s,url:"/v2/fundamental-analysis",method:"GET",params:e,secure:!0,headers:t,responseType:"json"})}getIndustryDescription(e,t,s){return this.apiClient.request({...s,url:"/v2/industry-description",method:"GET",params:e,secure:!0,headers:t,responseType:"json"})}getTechnicalAnalysis(e,t,s){return this.apiClient.request({...s,url:"/v2/technical-analysis",method:"GET",params:e,secure:!0,headers:t,responseType:"json"})}verifyCompanyExists(e,t){return this.apiClient.request({...t,url:"/v2/verify-company-exists",method:"GET",params:e,secure:!0,responseType:"json"})}}var en={};H(en,"BridgeWiseLanguageEnum",()=>er),H(en,"BridgeWiseStringBooleanEnum",()=>ea),H(en,"BridgeWiseCompanyAlertSentiment",()=>ei),H(en,"BridgeWiseCompanyAlertType",()=>eo),H(en,"BridgeWiseForecastType",()=>eu),H(en,"BridgeWiseCompanyFilterType",()=>ep),H(en,"BridgeWiseCompositionTypeEnum",()=>ec),H(en,"BridgeWiseImageExtensionEnum",()=>el),H(en,"BridgeWiseLogoSizeEnum",()=>eh),H(en,"BridgeWiseLogoTypeEnum",()=>em),H(en,"BridgeWiseCompanyNewsSortingEnum",()=>ed),H(en,"BridgeWiseESGSectionTypeEnum",()=>eg),H(en,"BridgeWiseEarningsCallRecapEnum",()=>ey),H(en,"BridgeWiseFundamentalParagraphSectionTypeEnum",()=>eT),H(en,"BridgeWiseNewsSentimentEnum",()=>eC),H(en,"BridgeWiseScoringMethodEnum",()=>eE),H(en,"BridgeWiseESGScoreGroup",()=>ef),H(en,"BridgeWiseFundamentalSectionTypeEnum",()=>eq),H(en,"BridgeWiseFundsSegmentParameterEnum",()=>ev),H(en,"BridgeWisePeriodTypeEnum",()=>ej),H(en,"BridgeWiseSectionTypeEnum",()=>eG),H(en,"BridgeWiseAnalysisTypeEnum",()=>eS),H(en,"BridgeWiseGlobalIndustryScoringEnum",()=>ew),H(en,"BridgeWiseScoreMethodology",()=>e$),H(en,"BridgeWiseEventTypeEnum",()=>ek),H(en,"BridgeWiseTenantIdentifierStatusEnum",()=>eP),H(en,"BridgeWiseIdCheckConfigNameEnum",()=>eb),H(en,"BridgeWiseIdCheckConfigOperatorEnum",()=>eA),H(en,"BridgeWiseMarketDataConfigNameEnum",()=>eB),H(en,"BridgeWiseMarketDataConfigOperatorEnum",()=>eF),H(en,"BridgeWiseStockingFloatConfigOperatorEnum",()=>ex),H(en,"BridgeWiseGetBusinessDescriptionParamsDateFormatEnum",()=>eI),H(en,"BridgeWiseGetFundamentalAnalysisParamsDateFormatEnum",()=>e_),H(en,"BridgeWiseGetIndustryDescriptionParamsDateFormatEnum",()=>eD),H(en,"BridgeWiseGetTechnicalAnalysisParamsDateFormatEnum",()=>eW);var er=((t={}).ArSA="ar-SA",t.DeDE="de-DE",t.EnUS="en-US",t.EsES="es-ES",t.FrFR="fr-FR",t.HeIL="he-IL",t.NlNL="nl-NL",t.PtBR="pt-BR",t.TrTR="tr-TR",t.ZhCN="zh-CN",t.JaJP="ja-JP",t.KoKR="ko-KR",t.ThTH="th-TH",t.ZhHK="zh-HK",t),ea=((s={}).True="true",s.False="false",s),ei=((n={}).Positive="positive",n.Negative="negative",n),eo=((r={}).Fundamental="fundamental",r.Market="market",r),eu=((a={}).Esg="esg",a.KeyDevelopments="key_developments",a.News="news",a),ep=((i={}).Countries="countries",i.GicsIndustry="gics_industry",i.GicsSector="gics_sector",i.Regions="regions",i.GicsGroup="gics_group",i.Currency="currency",i.Exchange="exchange",i.CsaIndustry="csa_industry",i.Benchmark="benchmark",i.Sponsor="sponsor",i.Sector="sector",i.ManagementStyle="management_style",i.Recommendation="recommendation",i.MarketCapEmphasis="market_cap_emphasis",i.Exposure="exposure",i.GeographyEmphasis="geography_emphasis",i.MarketBenchmark="market_benchmark",i.PrimaryBenchmark="primary_benchmark",i),ec=((o={}).Stocks="stocks",o.Others="others",o),el=((u={}).Png="png",u.Svg="svg",u.Jpg="jpg",u),eh=((p={}).Original="original",p.Square="square",p),em=((c={}).Square="square",c.Horizontal="horizontal",c),ed=((l={}).PublicationDate="publication_date",l.RelevancyScore="relevancy_score",l.SocialShares="social_shares",l),eg=((h={}).Social="social",h.Environmental="environmental",h.Governance="governance",h.Summary="summary",h.Controversies="controversies",h.Transparency="transparency",h.Weaknesses="weaknesses",h),ey=((m={}).Highlights="highlights",m.Lowlights="lowlights",m),eT=((d={}).BalanceSheet="balance_sheet",d.IncomeStatement="income_statement",d.CashFlow="cash_flow",d.CompanyDescription="company_description",d.CompanyFundamentals="company_fundamentals",d.SummaryRecommendation="summary_recommendation",d),eC=((g={}).VeryNegative="Very Negative",g.Negative="Negative",g.Neutral="Neutral",g.Positive="Positive",g.VeryPositive="Very Positive",g.Invalid="Invalid",g),eE=((y={}).Global="global",y.Industry="industry",y.Country="country",y.Sector="sector",y),ef=((T={})[T.Value5=5]="Value5",T[T.Value4=4]="Value4",T[T.Value3=3]="Value3",T[T.Value2=2]="Value2",T[T.Value1=1]="Value1",T),eq=((C={}).BalanceSheet="balance_sheet",C.IncomeStatement="income_statement",C.CashFlow="cash_flow",C),ev=((E={}).PeRatio="pe_ratio",E.PbRatio="pb_ratio",E.PsRatio="ps_ratio",E.NetDebtToEbitda="net_debt_to_ebitda",E.MarketCap="market_cap",E.Return1Y="return_1y",E.Roe="roe",E.RevenueGrowth="revenue_growth",E.SegmentStrength="segment_strength",E),ej=((f={}).Quarterly="quarterly",f.Annually="annually",f.Last12Month="last_12_month",f),eG=((q={}).BalanceSheet="balance_sheet",q.IncomeStatement="income_statement",q.CashFlow="cash_flow",q.Social="social",q.Environmental="environmental",q.Governance="governance",q.Summary="summary",q.Probability="probability",q),eS=((v={}).Fundamental="fundamental",v.Esg="esg",v.PriceTarget="price_target",v.Technical="technical",v),ew=((j={}).Global="global",j.Industry="industry",j),e$=((G={}).Global="global",G.Industry="industry",G.Country="country",G.Sector="sector",G.Specific="specific",G),ek=((S={}).PolicyThreshold="policy_threshold",S.InternalCoverage="internal_coverage",S.BwRecommendation="bw_recommendation",S),eP=((w={}).Active="active",w.Blacklisted="blacklisted",w),eb=(($={}).Index="index",$.Exchange="exchange",$.DomicileCountry="domicile_country",$.ExchangeCountry="exchange_country",$),eA=((k={}).Isin="isin",k.Notin="notin",k),eB=((P={}).MarketCap="market_cap",P.Volume="volume",P),eF=((b={}).Ge="ge",b.Le="le",b.Gt="gt",b.Lt="lt",b),ex=((A={}).Ge="ge",A.Le="le",A.Gt="gt",A.Lt="lt",A),eI=((B={}).Iso="iso",B.Epoch="epoch",B),e_=((F={}).Epoch="epoch",F.Iso="iso",F),eD=((x={}).Iso="iso",x.Epoch="epoch",x),eW=((I={}).Iso="iso",I.Epoch="epoch",I),eR={};H(eR,"CompanyMetadata",()=>eN);class eN{constructor(e){this.apiClient=e,V(_)(this)}getCompanies(e,t){return this.apiClient.request({...t,url:"/companies",method:"GET",params:e,secure:!0,responseType:"json"})}getCompany(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}`,method:"GET",params:t,secure:!0,responseType:"json"})}getIdentifierSearch(e,t){return this.apiClient.request({...t,url:"/identifier-search",method:"GET",params:e,secure:!0,responseType:"json"})}}var eM={};H(eM,"Activities",()=>eO);class eO{constructor(e){this.apiClient=e,V(_)(this)}getCompanyAlerts(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/alerts`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyForecastsKeyDevelopment(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/key-developments`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eL={};H(eL,"Logos",()=>eJ);class eJ{constructor(e){this.apiClient=e,V(_)(this)}fetchLogos(e,t){return this.apiClient.request({...t,url:"/companies/logos",method:"GET",params:e,secure:!0,responseType:"json"})}fetchLogo(e,t){return this.apiClient.request({...t,url:`/companies/${e}/logos`,method:"GET",secure:!0,responseType:"json"})}}var eH={};H(eH,"ConsensusAnalysts",()=>eV);class eV{constructor(e){this.apiClient=e,V(_)(this)}getConsensusRatings(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/consensus-ratings`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eK={};H(eK,"EarningCalls",()=>ez);class ez{constructor(e){this.apiClient=e,V(_)(this)}getCompanyEarningsCalls(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/earnings-call`,method:"GET",params:t,secure:!0,responseType:"json"})}getEarningsCallsRecaps(e,t,s,n){return this.apiClient.request({...n,url:`/companies/${t}/earnings-call/${e}/recaps`,method:"GET",params:s,secure:!0,responseType:"json"})}}var eU={};H(eU,"EsgAnalysis",()=>eZ);class eZ{constructor(e){this.apiClient=e,V(_)(this)}getCompanyEsgAnalysis(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/esg-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyEsgParagraphs(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/esg-paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyEsgParameters(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/esg-parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyEsgSections(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/esg-sections`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyForecastsMsa(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/sustainability-incidents`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eQ={};H(eQ,"Forecasts",()=>eY);class eY{constructor(e){this.apiClient=e,V(_)(this)}getCompanyForecasts(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/forecasts`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eX={};H(eX,"CompanyMarketData",()=>e0);class e0{constructor(e){this.apiClient=e,V(_)(this)}getCompanyMarketData(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/market`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyMarketStatistics(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/market-statistics`,method:"GET",params:t,secure:!0,responseType:"json"})}getTradingItems(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/trading-items`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e2={};H(e2,"FundamentalAnalysis",()=>e1);class e1{constructor(e){this.apiClient=e,V(_)(this)}getCompanyFundamentalAnalysis(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/fundamental-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyFundamentalParagraphs(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/fundamental-paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyFundamentalParameters(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/fundamental-parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyFundamentalSections(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/fundamental-sections`,method:"GET",params:t,secure:!0,responseType:"json"})}getTargetPrice(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/target-price`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e3={};H(e3,"CompanyNews",()=>e4);class e4{constructor(e){this.apiClient=e,V(_)(this)}getCompanyNews(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/news`,method:"GET",params:t,secure:!0,responseType:"json"})}getAverageCompanyNewsSentiment(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/news-sentiment`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e5={};H(e5,"TechnicalAnalysis",()=>e6);class e6{constructor(e){this.apiClient=e,V(_)(this)}getCompanyTechnicalAnalysis(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/technical-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyTechnicalParagraphs(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/technical-paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}getCompanyTechnicalParameters(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/technical-parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e7={};H(e7,"Metadata",()=>e8);class e8{constructor(e){this.apiClient=e,V(_)(this)}getCompanyFilters(e,t){return this.apiClient.request({...t,url:"/filters",method:"GET",params:e,secure:!0,responseType:"json"})}}var e9={};H(e9,"FundMetadata",()=>te);class te{constructor(e){this.apiClient=e,V(_)(this)}getFunds(e,t){return this.apiClient.request({...t,url:"/funds",method:"GET",params:e,secure:!0,responseType:"json"})}getFund(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}`,method:"GET",params:t,secure:!0,responseType:"json"})}}var tt={};H(tt,"FundAnalysis",()=>ts);class ts{constructor(e){this.apiClient=e,V(_)(this)}getFundAnalysis(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundsParagraphs(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundParameters(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundSections(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/sections`,method:"GET",params:t,secure:!0,responseType:"json"})}}var tn={};H(tn,"Holdings",()=>tr);class tr{constructor(e){this.apiClient=e,V(_)(this)}getCompositions(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/compositions`,method:"GET",params:t,secure:!0,responseType:"json"})}getHoldingStatistics(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/holding-statistics`,method:"GET",params:t,secure:!0,responseType:"json"})}getHoldings(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/holdings`,method:"GET",params:t,secure:!0,responseType:"json"})}}var ta={};H(ta,"SectorAnalysis",()=>ti);class ti{constructor(e){this.apiClient=e,V(_)(this)}getSectorAnalysis(e,t,s){return this.apiClient.request({...s,url:`/sectors/${e}/analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}}var to={};H(to,"Tenants",()=>tu);class tu{constructor(e){this.apiClient=e,V(_)(this)}fetchTenant(e,t){return this.apiClient.request({...t,url:`/tenants/${e}`,method:"GET",secure:!0,responseType:"json"})}getHistoricalPolicyChanges(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/historical-policy-changes`,method:"GET",params:t,secure:!0,responseType:"json"})}createTenantInvestmentPoliciesConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/investment-policies-config`,method:"POST",data:t,secure:!0,contentType:U.Json,responseType:"json"})}listTenantInvestmentPoliciesConfigs(e,t){return this.apiClient.request({...t,url:`/tenants/${e}/investment-policies-config`,method:"GET",secure:!0,responseType:"json"})}createTenantInvestmentPoliciesConfigBulk(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/investment-policies-config/bulk`,method:"POST",data:t,secure:!0,contentType:U.Json,responseType:"json"})}getTenantInvestmentPoliciesConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${t}/investment-policies-config/${e}`,method:"GET",secure:!0,responseType:"json"})}patchTenantInvestmentPoliciesConfig(e,t,s,n){return this.apiClient.request({...n,url:`/tenants/${t}/investment-policies-config/${e}`,method:"PATCH",data:s,secure:!0,contentType:U.Json,responseType:"json"})}deleteTenantInvestmentPoliciesConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${t}/investment-policies-config/${e}`,method:"DELETE",secure:!0,responseType:"json"})}createCognitoClientApplication(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/machine`,method:"POST",data:t,secure:!0,contentType:U.Json,responseType:"json"})}getRecommendations(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations`,method:"GET",params:t,secure:!0,responseType:"json"})}createTenantRecommendationsConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config`,method:"POST",data:t,secure:!0,contentType:U.Json,responseType:"json"})}createTenantRecommendationsConfigBulk(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config/bulk`,method:"POST",data:t,secure:!0,contentType:U.Json,responseType:"json"})}getTenantRecommendationsConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config/${t}`,method:"GET",secure:!0,responseType:"json"})}patchTenantRecommendationsConfig(e,t,s,n){return this.apiClient.request({...n,url:`/tenants/${e}/recommendations-config/${t}`,method:"PATCH",data:s,secure:!0,contentType:U.Json,responseType:"json"})}deleteTenantRecommendationsConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config/${t}`,method:"DELETE",secure:!0,responseType:"json"})}}var tp={};H(tp,"TenantIdentifiers",()=>tc);class tc{constructor(e){this.apiClient=e,V(_)(this)}getTenantIdentifiers(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/identifiers`,method:"GET",params:t,secure:!0,responseType:"json"})}createTenantIdentifier(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/identifiers`,method:"POST",data:t,secure:!0,contentType:U.Json,responseType:"json"})}updateTenantIdentifier(e,t,s,n){return this.apiClient.request({...n,url:`/tenants/${e}/identifiers/${t}`,method:"PATCH",data:s,secure:!0,contentType:U.Json,responseType:"json"})}deleteTenantIdentifier(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/identifiers/${t}`,method:"DELETE",secure:!0,responseType:"json"})}}var tl={};H(tl,"Users",()=>th);class th{constructor(e){this.apiClient=e,V(_)(this)}authenticate(e,t){return this.apiClient.request({...t,url:"/users/authenticate",method:"POST",data:e,secure:!0,contentType:U.Json,responseType:"json"})}fetchClientDetails(e,t){return this.apiClient.request({...t,url:"/users/machine",method:"GET",secure:!0,headers:e,responseType:"json"})}}var tm={};H(tm,"FundEsgAnalysis",()=>td);class td{constructor(e){this.apiClient=e,V(_)(this)}getFundEsgAnalysis(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/esg-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}}var tg={};H(tg,"Segmentations",()=>ty);class ty{constructor(e){this.apiClient=e,V(_)(this)}getSegmentParameters(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/segment-parameters`,method:"GET",params:t,secure:!0,responseType:"json"})}getSegment(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/segments`,method:"GET",params:t,secure:!0,responseType:"json"})}}var tT={};H(tT,"FundMarketData",()=>tC);class tC{constructor(e){this.apiClient=e,V(_)(this)}getFundsMarketData(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/market`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundsMarketStatistics(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/market-statistics`,method:"GET",params:t,secure:!0,responseType:"json"})}getFundTradingItems(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/trading-items`,method:"GET",params:t,secure:!0,responseType:"json"})}}J(Y,X),J(Y,et),J(Y,en),J(Y,eR),J(Y,eM),J(Y,eL),J(Y,eH),J(Y,eK),J(Y,eU),J(Y,eQ),J(Y,eX),J(Y,e2),J(Y,e3),J(Y,e5),J(Y,e7),J(Y,e9),J(Y,tt),J(Y,tn),J(Y,ta),J(Y,to),J(Y,tp),J(Y,tl),J(Y,tm),J(Y,tg),J(Y,tT);class tE extends z{constructor(e){super(new Q(e)),this.config=e,this.activities=new eO(this.apiClient),this.bridget=new ee(this.apiClient),this.bwc=new es(this.apiClient),this.companyMarketData=new e0(this.apiClient),this.companyMetadata=new eN(this.apiClient),this.companyNews=new e4(this.apiClient),this.consensusAnalysts=new eV(this.apiClient),this.earningCalls=new ez(this.apiClient),this.esgAnalysis=new eZ(this.apiClient),this.forecasts=new eY(this.apiClient),this.fundamentalAnalysis=new e1(this.apiClient),this.fundAnalysis=new ts(this.apiClient),this.fundEsgAnalysis=new td(this.apiClient),this.fundMarketData=new tC(this.apiClient),this.fundMetadata=new te(this.apiClient),this.holdings=new tr(this.apiClient),this.logos=new eJ(this.apiClient),this.metadata=new e8(this.apiClient),this.sectorAnalysis=new ti(this.apiClient),this.segmentations=new ty(this.apiClient),this.technicalAnalysis=new e6(this.apiClient),this.tenantIdentifiers=new tc(this.apiClient),this.tenants=new tu(this.apiClient),this.users=new th(this.apiClient)}}J(module.exports,K),J(module.exports,Y);
2
2
  //# sourceMappingURL=index.js.map