@orbis-systems/orbis-api-clients 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aesmidas/index.d.ts +157 -33
- package/dist/aesmidas/index.d.ts.map +1 -1
- package/dist/aesmidas/index.esm.js +1 -1
- package/dist/aesmidas/index.esm.js.map +1 -1
- package/dist/aesmidas/index.js +1 -1
- package/dist/aesmidas/index.js.map +1 -1
- package/dist/bridgewise/index.d.ts +118 -118
- package/dist/bridgewise/index.d.ts.map +1 -1
- package/dist/bridgewise/index.esm.js +1 -1
- package/dist/bridgewise/index.esm.js.map +1 -1
- package/dist/bridgewise/index.js +1 -1
- package/dist/bridgewise/index.js.map +1 -1
- package/dist/insight/index.d.ts +92 -89
- package/dist/insight/index.d.ts.map +1 -1
- package/dist/insight/index.esm.js +1 -1
- package/dist/insight/index.esm.js.map +1 -1
- package/dist/insight/index.js +1 -1
- package/dist/insight/index.js.map +1 -1
- package/dist/middleware/index.d.ts +108 -108
- package/dist/middleware/index.d.ts.map +1 -1
- package/dist/middleware/index.esm.js +1 -1
- package/dist/middleware/index.esm.js.map +1 -1
- package/dist/middleware/index.js +1 -1
- package/dist/middleware/index.js.map +1 -1
- package/dist/orbis/index.d.ts +809 -809
- package/dist/orbis/index.d.ts.map +1 -1
- package/dist/orbis/index.esm.js +1 -1
- package/dist/orbis/index.esm.js.map +1 -1
- package/dist/orbis/index.js +1 -1
- package/dist/orbis/index.js.map +1 -1
- package/dist/uma/index.d.ts +365 -365
- package/dist/uma/index.d.ts.map +1 -1
- package/dist/uma/index.esm.js +1 -1
- package/dist/uma/index.esm.js.map +1 -1
- package/dist/uma/index.js +1 -1
- package/dist/uma/index.js.map +1 -1
- package/dist/zerohash/index.d.ts +107 -107
- package/dist/zerohash/index.d.ts.map +1 -1
- package/dist/zerohash/index.esm.js +1 -1
- package/dist/zerohash/index.esm.js.map +1 -1
- package/dist/zerohash/index.js +1 -1
- package/dist/zerohash/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"auto-bind";import{Mutex as t,E_CANCELED as s}from"async-mutex";import{consola as a}from"consola";import{isBefore as n,subMinutes as r}from"date-fns";import{jwtDecode as i}from"jwt-decode";import o,{isAxiosError as c}from"axios";import p from"axios-better-stacktrace";import{isNil as u,merge as l}from"lodash";function m(e,t,s,a){Object.defineProperty(e,t,{get:s,set:a,enumerable:!0,configurable:!0})}function d(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}m({},"BridgeWiseApi",()=>ta);class h{constructor(t){this.apiClient=t,e(this)}getApiClient(){return this.apiClient}}var g,y,C,$,T,f,E,b,x,S,v,B,q,k,G,j,w,W,F,A,P,_,D,I,M,N,R,O,L,J,H,V=((g={}).Json="application/json",g.FormData="multipart/form-data",g.UrlEncoded="application/x-www-form-urlencoded",g.Text="text/plain",g);class K{constructor(t){this.config=t,e(this),this.storage=t.storage??sessionStorage,this.axiosInstance=o.create({...t.axiosConfig,baseURL:t.baseUrl,headers:{"Content-Type":"application/json",...t.axiosConfig?.headers}}),p(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 a=e[s];for(let e of a instanceof Array?a:[a]){let a=e instanceof Blob||e instanceof File;t.append(s,a?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;u(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 a=l(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(a);return{success:!0,data:e,status:t,statusText:s}}catch(s){let t={success:!1,status:-1,statusText:String(s),error:s};if(c(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 z extends K{constructor(e){super(e),this.config=e,this.lock=new t}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 a.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&&a.debug("Token expired. Renewing…"),e=(await this.renewToken()).accessToken,this.lock.cancel()})}catch(t){if(t===s)e=this.getAuthData()?.accessToken;else throw t}return{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}}isTokenExpired(e){let t=i(e);return!t.exp||n(r(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 U={},Z={};m(Z,"BridgeWiseCompanyAlertSentiment",()=>Q),m(Z,"BridgeWiseCompanyAlertType",()=>Y),m(Z,"BridgeWiseForecastType",()=>X),m(Z,"BridgeWiseLanguageEnum",()=>ee),m(Z,"BridgeWiseCompanyFilterType",()=>et),m(Z,"BridgeWiseCompositionTypeEnum",()=>es),m(Z,"BridgeWiseImageExtensionEnum",()=>ea),m(Z,"BridgeWiseLogoSizeEnum",()=>en),m(Z,"BridgeWiseLogoTypeEnum",()=>er),m(Z,"BridgeWiseStringBooleanEnum",()=>ei),m(Z,"BridgeWiseCompanyNewsSortingEnum",()=>eo),m(Z,"BridgeWiseESGSectionTypeEnum",()=>ec),m(Z,"BridgeWiseEarningsCallRecapEnum",()=>ep),m(Z,"BridgeWiseFundamentalParagraphSectionTypeEnum",()=>eu),m(Z,"BridgeWiseNewsSentimentEnum",()=>el),m(Z,"BridgeWiseScoringMethodEnum",()=>em),m(Z,"BridgeWiseESGScoreGroup",()=>ed),m(Z,"BridgeWiseFundamentalSectionTypeEnum",()=>eh),m(Z,"BridgeWiseFundsSegmentParameterEnum",()=>eg),m(Z,"BridgeWisePeriodTypeEnum",()=>ey),m(Z,"BridgeWiseSectionTypeEnum",()=>eC),m(Z,"BridgeWiseAnalysisTypeEnum",()=>e$),m(Z,"BridgeWiseGlobalIndustryScoringEnum",()=>eT),m(Z,"BridgeWiseScoreMethodology",()=>ef),m(Z,"BridgeWiseEventTypeEnum",()=>eE),m(Z,"BridgeWiseIdCheckConfigNameEnum",()=>eb),m(Z,"BridgeWiseIdCheckConfigOperatorEnum",()=>ex),m(Z,"BridgeWiseMarketDataConfigNameEnum",()=>eS),m(Z,"BridgeWiseMarketDataConfigOperatorEnum",()=>ev),m(Z,"BridgeWiseStockingFloatConfigOperatorEnum",()=>eB);var Q=((y={}).Positive="positive",y.Negative="negative",y),Y=((C={}).Fundamental="fundamental",C.Market="market",C),X=(($={}).Esg="esg",$.KeyDevelopments="key_developments",$.News="news",$),ee=((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),et=((f={}).Countries="countries",f.GicsIndustry="gics_industry",f.GicsSector="gics_sector",f.Regions="regions",f.GicsGroup="gics_group",f.Currency="currency",f.Exchange="exchange",f.CsaIndustry="csa_industry",f.Benchmark="benchmark",f.Sponsor="sponsor",f.Sector="sector",f.ManagementStyle="management_style",f.Recommendation="recommendation",f.MarketCapEmphasis="market_cap_emphasis",f.Exposure="exposure",f.GeographyEmphasis="geography_emphasis",f.MarketBenchmark="market_benchmark",f.PrimaryBenchmark="primary_benchmark",f),es=((E={}).Stocks="stocks",E.Others="others",E),ea=((b={}).Png="png",b.Svg="svg",b.Jpg="jpg",b),en=((x={}).Original="original",x.Square="square",x),er=((S={}).Square="square",S.Horizontal="horizontal",S),ei=((v={}).True="true",v.False="false",v),eo=((B={}).PublicationDate="publication_date",B.RelevancyScore="relevancy_score",B.SocialShares="social_shares",B),ec=((q={}).Social="social",q.Environmental="environmental",q.Governance="governance",q.Summary="summary",q.Controversies="controversies",q.Transparency="transparency",q.Weaknesses="weaknesses",q),ep=((k={}).Highlights="highlights",k.Lowlights="lowlights",k),eu=((G={}).BalanceSheet="balance_sheet",G.IncomeStatement="income_statement",G.CashFlow="cash_flow",G.CompanyDescription="company_description",G.CompanyFundamentals="company_fundamentals",G.SummaryRecommendation="summary_recommendation",G),el=((j={}).VeryNegative="Very Negative",j.Negative="Negative",j.Neutral="Neutral",j.Positive="Positive",j.VeryPositive="Very Positive",j.Invalid="Invalid",j),em=((w={}).Global="global",w.Industry="industry",w.Country="country",w.Sector="sector",w),ed=((W={})[W.Value5=5]="Value5",W[W.Value4=4]="Value4",W[W.Value3=3]="Value3",W[W.Value2=2]="Value2",W[W.Value1=1]="Value1",W),eh=((F={}).BalanceSheet="balance_sheet",F.IncomeStatement="income_statement",F.CashFlow="cash_flow",F),eg=((A={}).PeRatio="pe_ratio",A.PbRatio="pb_ratio",A.PsRatio="ps_ratio",A.NetDebtToEbitda="net_debt_to_ebitda",A.MarketCap="market_cap",A.Return1Y="return_1y",A.Roe="roe",A.RevenueGrowth="revenue_growth",A.SegmentStrength="segment_strength",A),ey=((P={}).Quarterly="quarterly",P.Annually="annually",P.Last12Month="last_12_month",P),eC=((_={}).BalanceSheet="balance_sheet",_.IncomeStatement="income_statement",_.CashFlow="cash_flow",_.Social="social",_.Environmental="environmental",_.Governance="governance",_.Summary="summary",_.Probability="probability",_),e$=((D={}).Fundamental="fundamental",D.Esg="esg",D.PriceTarget="price_target",D.Technical="technical",D),eT=((I={}).Global="global",I.Industry="industry",I),ef=((M={}).Global="global",M.Industry="industry",M.Country="country",M.Sector="sector",M),eE=((N={}).PolicyThreshold="policy_threshold",N.InternalCoverage="internal_coverage",N.BwRecommendation="bw_recommendation",N),eb=((R={}).Index="index",R.Exchange="exchange",R.DomicileCountry="domicile_country",R.ExchangeCountry="exchange_country",R),ex=((O={}).Isin="isin",O.Notin="notin",O),eS=((L={}).MarketCap="market_cap",L.Volume="volume",L),ev=((J={}).Ge="ge",J.Le="le",J.Gt="gt",J.Lt="lt",J),eB=((H={}).Ge="ge",H.Le="le",H.Gt="gt",H.Lt="lt",H),eq={};m(eq,"CompanyMetadata",()=>ek);class ek{constructor(t){this.apiClient=t,e(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 eG={};m(eG,"Logos",()=>ej);class ej{constructor(t){this.apiClient=t,e(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 ew={};m(ew,"Activities",()=>eW);class eW{constructor(t){this.apiClient=t,e(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 eF={};m(eF,"ConsensusAnalysts",()=>eA);class eA{constructor(t){this.apiClient=t,e(this)}getConsensusRatings(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/consensus-ratings`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eP={};m(eP,"EarningCalls",()=>e_);class e_{constructor(t){this.apiClient=t,e(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,a){return this.apiClient.request({...a,url:`/companies/${t}/earnings-call/${e}/recaps`,method:"GET",params:s,secure:!0,responseType:"json"})}}var eD={};m(eD,"EsgAnalysis",()=>eI);class eI{constructor(t){this.apiClient=t,e(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 eM={};m(eM,"Forecasts",()=>eN);class eN{constructor(t){this.apiClient=t,e(this)}getCompanyForecasts(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/forecasts`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eR={};m(eR,"FundamentalAnalysis",()=>eO);class eO{constructor(t){this.apiClient=t,e(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 eL={};m(eL,"CompanyMarketData",()=>eJ);class eJ{constructor(t){this.apiClient=t,e(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 eH={};m(eH,"CompanyNews",()=>eV);class eV{constructor(t){this.apiClient=t,e(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 eK={};m(eK,"TechnicalAnalysis",()=>ez);class ez{constructor(t){this.apiClient=t,e(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 eU={};m(eU,"Metadata",()=>eZ);class eZ{constructor(t){this.apiClient=t,e(this)}getCompanyFilters(e,t){return this.apiClient.request({...t,url:"/filters",method:"GET",params:e,secure:!0,responseType:"json"})}}var eQ={};m(eQ,"FundMetadata",()=>eY);class eY{constructor(t){this.apiClient=t,e(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 eX={};m(eX,"FundAnalysis",()=>e0);class e0{constructor(t){this.apiClient=t,e(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 e4={};m(e4,"Holdings",()=>e5);class e5{constructor(t){this.apiClient=t,e(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 e1={};m(e1,"FundEsgAnalysis",()=>e7);class e7{constructor(t){this.apiClient=t,e(this)}getFundEsgAnalysis(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/esg-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e8={};m(e8,"FundMarketData",()=>e9);class e9{constructor(t){this.apiClient=t,e(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"})}}var e6={};m(e6,"Users",()=>e2);class e2{constructor(t){this.apiClient=t,e(this)}authenticate(e,t){return this.apiClient.request({...t,url:"/users/authenticate",method:"POST",data:e,secure:!0,contentType:V.Json,responseType:"json"})}fetchClientDetails(e,t){return this.apiClient.request({...t,url:"/users/machine",method:"GET",secure:!0,headers:e,responseType:"json"})}}var e3={};m(e3,"Tenants",()=>te);class te{constructor(t){this.apiClient=t,e(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:V.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:V.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,a){return this.apiClient.request({...a,url:`/tenants/${t}/investment-policies-config/${e}`,method:"PATCH",data:s,secure:!0,contentType:V.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:V.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:V.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:V.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,a){return this.apiClient.request({...a,url:`/tenants/${e}/recommendations-config/${t}`,method:"PATCH",data:s,secure:!0,contentType:V.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 tt={};m(tt,"Segmentations",()=>ts);class ts{constructor(t){this.apiClient=t,e(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"})}}d(U,Z),d(U,eq),d(U,eG),d(U,ew),d(U,eF),d(U,eP),d(U,eD),d(U,eM),d(U,eR),d(U,eL),d(U,eH),d(U,eK),d(U,eU),d(U,eQ),d(U,eX),d(U,e4),d(U,e1),d(U,e8),d(U,e6),d(U,e3),d(U,tt);class ta extends h{constructor(e){super(new z(e)),this.config=e,this.activities=new eW(this.apiClient),this.companyMarketData=new eJ(this.apiClient),this.companyMetadata=new ek(this.apiClient),this.companyNews=new eV(this.apiClient),this.consensusAnalysts=new eA(this.apiClient),this.earningCalls=new e_(this.apiClient),this.esgAnalysis=new eI(this.apiClient),this.fundamentalAnalysis=new eO(this.apiClient),this.fundAnalysis=new e0(this.apiClient),this.fundEsgAnalysis=new e7(this.apiClient),this.fundMarketData=new e9(this.apiClient),this.fundMetadata=new eY(this.apiClient),this.holdings=new e5(this.apiClient),this.logos=new ej(this.apiClient),this.metadata=new eZ(this.apiClient),this.segmentations=new ts(this.apiClient),this.technicalAnalysis=new ez(this.apiClient)}}export{ta as BridgeWiseApi,Q as BridgeWiseCompanyAlertSentiment,Y as BridgeWiseCompanyAlertType,X as BridgeWiseForecastType,ee as BridgeWiseLanguageEnum,et as BridgeWiseCompanyFilterType,es as BridgeWiseCompositionTypeEnum,ea as BridgeWiseImageExtensionEnum,en as BridgeWiseLogoSizeEnum,er as BridgeWiseLogoTypeEnum,ei as BridgeWiseStringBooleanEnum,eo as BridgeWiseCompanyNewsSortingEnum,ec as BridgeWiseESGSectionTypeEnum,ep as BridgeWiseEarningsCallRecapEnum,eu as BridgeWiseFundamentalParagraphSectionTypeEnum,el as BridgeWiseNewsSentimentEnum,em as BridgeWiseScoringMethodEnum,ed as BridgeWiseESGScoreGroup,eh as BridgeWiseFundamentalSectionTypeEnum,eg as BridgeWiseFundsSegmentParameterEnum,ey as BridgeWisePeriodTypeEnum,eC as BridgeWiseSectionTypeEnum,e$ as BridgeWiseAnalysisTypeEnum,eT as BridgeWiseGlobalIndustryScoringEnum,ef as BridgeWiseScoreMethodology,eE as BridgeWiseEventTypeEnum,eb as BridgeWiseIdCheckConfigNameEnum,ex as BridgeWiseIdCheckConfigOperatorEnum,eS as BridgeWiseMarketDataConfigNameEnum,ev as BridgeWiseMarketDataConfigOperatorEnum,eB as BridgeWiseStockingFloatConfigOperatorEnum,ek as CompanyMetadata,ej as Logos,eW as Activities,eA as ConsensusAnalysts,e_ as EarningCalls,eI as EsgAnalysis,eN as Forecasts,eO as FundamentalAnalysis,eJ as CompanyMarketData,eV as CompanyNews,ez as TechnicalAnalysis,eZ as Metadata,eY as FundMetadata,e0 as FundAnalysis,e5 as Holdings,e7 as FundEsgAnalysis,e9 as FundMarketData,e2 as Users,te as Tenants,ts as Segmentations};
|
|
1
|
+
import e from"auto-bind";import{Mutex as t,E_CANCELED as s}from"async-mutex";import{consola as a}from"consola";import{isBefore as n,subMinutes as r}from"date-fns";import{jwtDecode as i}from"jwt-decode";import o,{isAxiosError as c}from"axios";import p from"axios-better-stacktrace";import{isNil as u,merge as l}from"lodash";function m(e,t,s,a){Object.defineProperty(e,t,{get:s,set:a,enumerable:!0,configurable:!0})}function d(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}m({},"BridgeWiseApi",()=>ta);class h{constructor(t){this.apiClient=t,e(this)}getApiClient(){return this.apiClient}}var g,y,C,$,T,f,E,b,x,S,v,B,q,k,G,j,w,W,F,A,P,_,D,I,M,N,R,O,L,J,H,V=((g={}).Json="application/json",g.FormData="multipart/form-data",g.UrlEncoded="application/x-www-form-urlencoded",g.Text="text/plain",g);class K{constructor(t){this.config=t,e(this),this.storage=t.storage??sessionStorage,this.axiosInstance=o.create({...t.axiosConfig,baseURL:t.baseUrl,headers:{"Content-Type":"application/json",...t.axiosConfig?.headers}}),p(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 a=e[s];for(let e of a instanceof Array?a:[a]){let a=e instanceof Blob||e instanceof File;t.append(s,a?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;u(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 a=l(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(a);return{success:!0,data:e,status:t,statusText:s}}catch(s){let t={success:!1,status:-1,statusText:String(s),error:s};if(c(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 z extends K{constructor(e){super(e),this.config=e,this.lock=new t}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 a.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&&a.debug("Token expired. Renewing…"),e=(await this.renewToken()).accessToken,this.lock.cancel()})}catch(t){if(t===s)e=this.getAuthData()?.accessToken;else throw t}return{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}}isTokenExpired(e){let t=i(e);return!t.exp||n(r(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 U={},Z={};m(Z,"Logos",()=>Q);class Q{constructor(t){this.apiClient=t,e(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 Y={};m(Y,"CompanyMetadata",()=>X);class X{constructor(t){this.apiClient=t,e(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 ee={};m(ee,"Activities",()=>et);class et{constructor(t){this.apiClient=t,e(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 es={};m(es,"BridgeWiseCompanyAlertSentiment",()=>ea),m(es,"BridgeWiseCompanyAlertType",()=>en),m(es,"BridgeWiseForecastType",()=>er),m(es,"BridgeWiseLanguageEnum",()=>ei),m(es,"BridgeWiseCompanyFilterType",()=>eo),m(es,"BridgeWiseCompositionTypeEnum",()=>ec),m(es,"BridgeWiseImageExtensionEnum",()=>ep),m(es,"BridgeWiseLogoSizeEnum",()=>eu),m(es,"BridgeWiseLogoTypeEnum",()=>el),m(es,"BridgeWiseStringBooleanEnum",()=>em),m(es,"BridgeWiseCompanyNewsSortingEnum",()=>ed),m(es,"BridgeWiseESGSectionTypeEnum",()=>eh),m(es,"BridgeWiseEarningsCallRecapEnum",()=>eg),m(es,"BridgeWiseFundamentalParagraphSectionTypeEnum",()=>ey),m(es,"BridgeWiseNewsSentimentEnum",()=>eC),m(es,"BridgeWiseScoringMethodEnum",()=>e$),m(es,"BridgeWiseESGScoreGroup",()=>eT),m(es,"BridgeWiseFundamentalSectionTypeEnum",()=>ef),m(es,"BridgeWiseFundsSegmentParameterEnum",()=>eE),m(es,"BridgeWisePeriodTypeEnum",()=>eb),m(es,"BridgeWiseSectionTypeEnum",()=>ex),m(es,"BridgeWiseAnalysisTypeEnum",()=>eS),m(es,"BridgeWiseGlobalIndustryScoringEnum",()=>ev),m(es,"BridgeWiseScoreMethodology",()=>eB),m(es,"BridgeWiseEventTypeEnum",()=>eq),m(es,"BridgeWiseIdCheckConfigNameEnum",()=>ek),m(es,"BridgeWiseIdCheckConfigOperatorEnum",()=>eG),m(es,"BridgeWiseMarketDataConfigNameEnum",()=>ej),m(es,"BridgeWiseMarketDataConfigOperatorEnum",()=>ew),m(es,"BridgeWiseStockingFloatConfigOperatorEnum",()=>eW);var ea=((y={}).Positive="positive",y.Negative="negative",y),en=((C={}).Fundamental="fundamental",C.Market="market",C),er=(($={}).Esg="esg",$.KeyDevelopments="key_developments",$.News="news",$),ei=((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),eo=((f={}).Countries="countries",f.GicsIndustry="gics_industry",f.GicsSector="gics_sector",f.Regions="regions",f.GicsGroup="gics_group",f.Currency="currency",f.Exchange="exchange",f.CsaIndustry="csa_industry",f.Benchmark="benchmark",f.Sponsor="sponsor",f.Sector="sector",f.ManagementStyle="management_style",f.Recommendation="recommendation",f.MarketCapEmphasis="market_cap_emphasis",f.Exposure="exposure",f.GeographyEmphasis="geography_emphasis",f.MarketBenchmark="market_benchmark",f.PrimaryBenchmark="primary_benchmark",f),ec=((E={}).Stocks="stocks",E.Others="others",E),ep=((b={}).Png="png",b.Svg="svg",b.Jpg="jpg",b),eu=((x={}).Original="original",x.Square="square",x),el=((S={}).Square="square",S.Horizontal="horizontal",S),em=((v={}).True="true",v.False="false",v),ed=((B={}).PublicationDate="publication_date",B.RelevancyScore="relevancy_score",B.SocialShares="social_shares",B),eh=((q={}).Social="social",q.Environmental="environmental",q.Governance="governance",q.Summary="summary",q.Controversies="controversies",q.Transparency="transparency",q.Weaknesses="weaknesses",q),eg=((k={}).Highlights="highlights",k.Lowlights="lowlights",k),ey=((G={}).BalanceSheet="balance_sheet",G.IncomeStatement="income_statement",G.CashFlow="cash_flow",G.CompanyDescription="company_description",G.CompanyFundamentals="company_fundamentals",G.SummaryRecommendation="summary_recommendation",G),eC=((j={}).VeryNegative="Very Negative",j.Negative="Negative",j.Neutral="Neutral",j.Positive="Positive",j.VeryPositive="Very Positive",j.Invalid="Invalid",j),e$=((w={}).Global="global",w.Industry="industry",w.Country="country",w.Sector="sector",w),eT=((W={})[W.Value5=5]="Value5",W[W.Value4=4]="Value4",W[W.Value3=3]="Value3",W[W.Value2=2]="Value2",W[W.Value1=1]="Value1",W),ef=((F={}).BalanceSheet="balance_sheet",F.IncomeStatement="income_statement",F.CashFlow="cash_flow",F),eE=((A={}).PeRatio="pe_ratio",A.PbRatio="pb_ratio",A.PsRatio="ps_ratio",A.NetDebtToEbitda="net_debt_to_ebitda",A.MarketCap="market_cap",A.Return1Y="return_1y",A.Roe="roe",A.RevenueGrowth="revenue_growth",A.SegmentStrength="segment_strength",A),eb=((P={}).Quarterly="quarterly",P.Annually="annually",P.Last12Month="last_12_month",P),ex=((_={}).BalanceSheet="balance_sheet",_.IncomeStatement="income_statement",_.CashFlow="cash_flow",_.Social="social",_.Environmental="environmental",_.Governance="governance",_.Summary="summary",_.Probability="probability",_),eS=((D={}).Fundamental="fundamental",D.Esg="esg",D.PriceTarget="price_target",D.Technical="technical",D),ev=((I={}).Global="global",I.Industry="industry",I),eB=((M={}).Global="global",M.Industry="industry",M.Country="country",M.Sector="sector",M),eq=((N={}).PolicyThreshold="policy_threshold",N.InternalCoverage="internal_coverage",N.BwRecommendation="bw_recommendation",N),ek=((R={}).Index="index",R.Exchange="exchange",R.DomicileCountry="domicile_country",R.ExchangeCountry="exchange_country",R),eG=((O={}).Isin="isin",O.Notin="notin",O),ej=((L={}).MarketCap="market_cap",L.Volume="volume",L),ew=((J={}).Ge="ge",J.Le="le",J.Gt="gt",J.Lt="lt",J),eW=((H={}).Ge="ge",H.Le="le",H.Gt="gt",H.Lt="lt",H),eF={};m(eF,"ConsensusAnalysts",()=>eA);class eA{constructor(t){this.apiClient=t,e(this)}getConsensusRatings(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/consensus-ratings`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eP={};m(eP,"EarningCalls",()=>e_);class e_{constructor(t){this.apiClient=t,e(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,a){return this.apiClient.request({...a,url:`/companies/${t}/earnings-call/${e}/recaps`,method:"GET",params:s,secure:!0,responseType:"json"})}}var eD={};m(eD,"EsgAnalysis",()=>eI);class eI{constructor(t){this.apiClient=t,e(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 eM={};m(eM,"Forecasts",()=>eN);class eN{constructor(t){this.apiClient=t,e(this)}getCompanyForecasts(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/forecasts`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eR={};m(eR,"FundamentalAnalysis",()=>eO);class eO{constructor(t){this.apiClient=t,e(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 eL={};m(eL,"CompanyMarketData",()=>eJ);class eJ{constructor(t){this.apiClient=t,e(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 eH={};m(eH,"CompanyNews",()=>eV);class eV{constructor(t){this.apiClient=t,e(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 eK={};m(eK,"TechnicalAnalysis",()=>ez);class ez{constructor(t){this.apiClient=t,e(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 eU={};m(eU,"Metadata",()=>eZ);class eZ{constructor(t){this.apiClient=t,e(this)}getCompanyFilters(e,t){return this.apiClient.request({...t,url:"/filters",method:"GET",params:e,secure:!0,responseType:"json"})}}var eQ={};m(eQ,"FundMetadata",()=>eY);class eY{constructor(t){this.apiClient=t,e(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 eX={};m(eX,"FundAnalysis",()=>e0);class e0{constructor(t){this.apiClient=t,e(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 e4={};m(e4,"Holdings",()=>e5);class e5{constructor(t){this.apiClient=t,e(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 e1={};m(e1,"FundEsgAnalysis",()=>e7);class e7{constructor(t){this.apiClient=t,e(this)}getFundEsgAnalysis(e,t,s){return this.apiClient.request({...s,url:`/funds/${e}/esg-analysis`,method:"GET",params:t,secure:!0,responseType:"json"})}}var e8={};m(e8,"Segmentations",()=>e9);class e9{constructor(t){this.apiClient=t,e(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 e6={};m(e6,"Users",()=>e2);class e2{constructor(t){this.apiClient=t,e(this)}authenticate(e,t){return this.apiClient.request({...t,url:"/users/authenticate",method:"POST",data:e,secure:!0,contentType:V.Json,responseType:"json"})}fetchClientDetails(e,t){return this.apiClient.request({...t,url:"/users/machine",method:"GET",secure:!0,headers:e,responseType:"json"})}}var e3={};m(e3,"Tenants",()=>te);class te{constructor(t){this.apiClient=t,e(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:V.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:V.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,a){return this.apiClient.request({...a,url:`/tenants/${t}/investment-policies-config/${e}`,method:"PATCH",data:s,secure:!0,contentType:V.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:V.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:V.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:V.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,a){return this.apiClient.request({...a,url:`/tenants/${e}/recommendations-config/${t}`,method:"PATCH",data:s,secure:!0,contentType:V.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 tt={};m(tt,"FundMarketData",()=>ts);class ts{constructor(t){this.apiClient=t,e(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"})}}d(U,Z),d(U,Y),d(U,ee),d(U,es),d(U,eF),d(U,eP),d(U,eD),d(U,eM),d(U,eR),d(U,eL),d(U,eH),d(U,eK),d(U,eU),d(U,eQ),d(U,eX),d(U,e4),d(U,e1),d(U,e8),d(U,e6),d(U,e3),d(U,tt);class ta extends h{constructor(e){super(new z(e)),this.config=e,this.activities=new et(this.apiClient),this.companyMarketData=new eJ(this.apiClient),this.companyMetadata=new X(this.apiClient),this.companyNews=new eV(this.apiClient),this.consensusAnalysts=new eA(this.apiClient),this.earningCalls=new e_(this.apiClient),this.esgAnalysis=new eI(this.apiClient),this.fundamentalAnalysis=new eO(this.apiClient),this.fundAnalysis=new e0(this.apiClient),this.fundEsgAnalysis=new e7(this.apiClient),this.fundMarketData=new ts(this.apiClient),this.fundMetadata=new eY(this.apiClient),this.holdings=new e5(this.apiClient),this.logos=new Q(this.apiClient),this.metadata=new eZ(this.apiClient),this.segmentations=new e9(this.apiClient),this.technicalAnalysis=new ez(this.apiClient)}}export{ta as BridgeWiseApi,Q as Logos,X as CompanyMetadata,et as Activities,ea as BridgeWiseCompanyAlertSentiment,en as BridgeWiseCompanyAlertType,er as BridgeWiseForecastType,ei as BridgeWiseLanguageEnum,eo as BridgeWiseCompanyFilterType,ec as BridgeWiseCompositionTypeEnum,ep as BridgeWiseImageExtensionEnum,eu as BridgeWiseLogoSizeEnum,el as BridgeWiseLogoTypeEnum,em as BridgeWiseStringBooleanEnum,ed as BridgeWiseCompanyNewsSortingEnum,eh as BridgeWiseESGSectionTypeEnum,eg as BridgeWiseEarningsCallRecapEnum,ey as BridgeWiseFundamentalParagraphSectionTypeEnum,eC as BridgeWiseNewsSentimentEnum,e$ as BridgeWiseScoringMethodEnum,eT as BridgeWiseESGScoreGroup,ef as BridgeWiseFundamentalSectionTypeEnum,eE as BridgeWiseFundsSegmentParameterEnum,eb as BridgeWisePeriodTypeEnum,ex as BridgeWiseSectionTypeEnum,eS as BridgeWiseAnalysisTypeEnum,ev as BridgeWiseGlobalIndustryScoringEnum,eB as BridgeWiseScoreMethodology,eq as BridgeWiseEventTypeEnum,ek as BridgeWiseIdCheckConfigNameEnum,eG as BridgeWiseIdCheckConfigOperatorEnum,ej as BridgeWiseMarketDataConfigNameEnum,ew as BridgeWiseMarketDataConfigOperatorEnum,eW as BridgeWiseStockingFloatConfigOperatorEnum,eA as ConsensusAnalysts,e_ as EarningCalls,eI as EsgAnalysis,eN as Forecasts,eO as FundamentalAnalysis,eJ as CompanyMarketData,eV as CompanyNews,ez as TechnicalAnalysis,eZ as Metadata,eY as FundMetadata,e0 as FundAnalysis,e5 as Holdings,e7 as FundEsgAnalysis,e9 as Segmentations,e2 as Users,te as Tenants,ts as FundMarketData};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|