@orbis-systems/orbis-api-clients 0.6.10 → 0.6.11
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 +672 -775
- 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 +238 -77
- 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 +315 -298
- 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 +34 -34
- 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 +383 -363
- 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 +364 -328
- 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/package.json +1 -1
package/dist/bridgewise/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e,t,s,n,r,a,i,o,u,c,p,l,m,h,g,d,y,T,C,E,f,q,S,v,k,j,w,G,$,P,b,_,x=require("auto-bind"),B=require("async-mutex"),F=require("consola"),A=require("date-fns"),I=require("jwt-decode"),D=require("axios"),R=require("axios-better-stacktrace"),W=require("lodash");function N(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 M(e,t,s,n){Object.defineProperty(e,t,{get:s,set:n,enumerable:!0,configurable:!0})}function O(e){return e&&e.__esModule?e.default:e}var L={};M(L,"BridgeWiseApi",()=>e9);class J{constructor(e){this.apiClient=e,O(x)(this)}getApiClient(){return this.apiClient}}var H=((e={}).Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e);class V{constructor(e){this.config=e,O(x)(this),this.storage=e.storage??sessionStorage,this.axiosInstance=O(D).create({...e.axiosConfig,baseURL:e.baseUrl,headers:{"Content-Type":"application/json",...e.axiosConfig?.headers}}),O(R)(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,W.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,W.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,D.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 K extends V{constructor(e){super(e),this.config=e,this.lock=new B.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,F.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,F.consola).debug("Token expired. Renewing…"),e=(await this.renewToken()).accessToken,this.lock.cancel()})}catch(t){if(t===B.E_CANCELED)e=this.getAuthData()?.accessToken;else throw t}return{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}}isTokenExpired(e){let t=(0,I.jwtDecode)(e);return!t.exp||(0,A.isBefore)((0,A.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 z={},U={};M(U,"CompanyMetadata",()=>Z);class Z{constructor(e){this.apiClient=e,O(x)(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 Q={};M(Q,"BridgeWiseCompanyAlertSentiment",()=>Y),M(Q,"BridgeWiseCompanyAlertType",()=>X),M(Q,"BridgeWiseForecastType",()=>ee),M(Q,"BridgeWiseLanguageEnum",()=>et),M(Q,"BridgeWiseCompanyFilterType",()=>es),M(Q,"BridgeWiseCompositionTypeEnum",()=>en),M(Q,"BridgeWiseIdentifierTypeEnum",()=>er),M(Q,"BridgeWiseImageExtensionEnum",()=>ea),M(Q,"BridgeWiseLogoSizeEnum",()=>ei),M(Q,"BridgeWiseLogoTypeEnum",()=>eo),M(Q,"BridgeWiseStringBooleanEnum",()=>eu),M(Q,"BridgeWiseCompanyNewsSortingEnum",()=>ec),M(Q,"BridgeWiseESGSectionTypeEnum",()=>ep),M(Q,"BridgeWiseEarningsCallRecapEnum",()=>el),M(Q,"BridgeWiseFundamentalParagraphSectionTypeEnum",()=>em),M(Q,"BridgeWiseNewsSentimentEnum",()=>eh),M(Q,"BridgeWiseScoringMethodEnum",()=>eg),M(Q,"BridgeWiseESGScoreGroup",()=>ed),M(Q,"BridgeWiseFundamentalSectionTypeEnum",()=>ey),M(Q,"BridgeWiseFundsSegmentParameterEnum",()=>eT),M(Q,"BridgeWisePeriodTypeEnum",()=>eC),M(Q,"BridgeWiseSectionTypeEnum",()=>eE),M(Q,"BridgeWiseAnalysisTypeEnum",()=>ef),M(Q,"BridgeWiseGlobalIndustryScoringEnum",()=>eq),M(Q,"BridgeWiseScoreMethodology",()=>eS),M(Q,"BridgeWiseEventTypeEnum",()=>ev),M(Q,"BridgeWiseIdCheckConfigNameEnum",()=>ek),M(Q,"BridgeWiseIdCheckConfigOperatorEnum",()=>ej),M(Q,"BridgeWiseMarketDataConfigNameEnum",()=>ew),M(Q,"BridgeWiseMarketDataConfigOperatorEnum",()=>eG),M(Q,"BridgeWiseStockingFloatConfigOperatorEnum",()=>e$);var Y=((t={}).Positive="positive",t.Negative="negative",t),X=((s={}).Fundamental="fundamental",s.Market="market",s),ee=((n={}).Esg="esg",n.KeyDevelopments="key_developments",n.News="news",n),et=((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),es=((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),en=((i={}).Stocks="stocks",i.Others="others",i),er=((o={}).TickerExchange="ticker_exchange",o.Isin="isin",o),ea=((u={}).Png="png",u.Svg="svg",u.Jpg="jpg",u),ei=((c={}).Original="original",c.Square="square",c),eo=((p={}).Square="square",p.Horizontal="horizontal",p),eu=((l={}).True="true",l.False="false",l),ec=((m={}).PublicationDate="publication_date",m.RelevancyScore="relevancy_score",m.SocialShares="social_shares",m),ep=((h={}).Social="social",h.Environmental="environmental",h.Governance="governance",h.Summary="summary",h.Controversies="controversies",h.Transparency="transparency",h.Weaknesses="weaknesses",h),el=((g={}).Highlights="highlights",g.Lowlights="lowlights",g),em=((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),eh=((y={}).VeryNegative="Very Negative",y.Negative="Negative",y.Neutral="Neutral",y.Positive="Positive",y.VeryPositive="Very Positive",y.Invalid="Invalid",y),eg=((T={}).Global="global",T.Industry="industry",T.Country="country",T.Sector="sector",T),ed=((C={})[C.Value5=5]="Value5",C[C.Value4=4]="Value4",C[C.Value3=3]="Value3",C[C.Value2=2]="Value2",C[C.Value1=1]="Value1",C),ey=((E={}).BalanceSheet="balance_sheet",E.IncomeStatement="income_statement",E.CashFlow="cash_flow",E),eT=((f={}).PeRatio="pe_ratio",f.PbRatio="pb_ratio",f.PsRatio="ps_ratio",f.NetDebtToEbitda="net_debt_to_ebitda",f.MarketCap="market_cap",f.Return1Y="return_1y",f.Roe="roe",f.RevenueGrowth="revenue_growth",f.SegmentStrength="segment_strength",f),eC=((q={}).Quarterly="quarterly",q.Annually="annually",q.Last12Month="last_12_month",q),eE=((S={}).BalanceSheet="balance_sheet",S.IncomeStatement="income_statement",S.CashFlow="cash_flow",S.Social="social",S.Environmental="environmental",S.Governance="governance",S.Summary="summary",S.Probability="probability",S),ef=((v={}).Fundamental="fundamental",v.Esg="esg",v.PriceTarget="price_target",v.Technical="technical",v),eq=((k={}).Global="global",k.Industry="industry",k),eS=((j={}).Global="global",j.Industry="industry",j.Country="country",j.Sector="sector",j),ev=((w={}).PolicyThreshold="policy_threshold",w.InternalCoverage="internal_coverage",w.BwRecommendation="bw_recommendation",w),ek=((G={}).Index="index",G.Exchange="exchange",G.DomicileCountry="domicile_country",G.ExchangeCountry="exchange_country",G),ej=(($={}).Isin="isin",$.Notin="notin",$),ew=((P={}).MarketCap="market_cap",P.Volume="volume",P),eG=((b={}).Ge="ge",b.Le="le",b.Gt="gt",b.Lt="lt",b),e$=((_={}).Ge="ge",_.Le="le",_.Gt="gt",_.Lt="lt",_),eP={};M(eP,"Logos",()=>eb);class eb{constructor(e){this.apiClient=e,O(x)(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 e_={};M(e_,"Activities",()=>ex);class ex{constructor(e){this.apiClient=e,O(x)(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 eB={};M(eB,"EarningCalls",()=>eF);class eF{constructor(e){this.apiClient=e,O(x)(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 eA={};M(eA,"EsgAnalysis",()=>eI);class eI{constructor(e){this.apiClient=e,O(x)(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 eD={};M(eD,"Forecasts",()=>eR);class eR{constructor(e){this.apiClient=e,O(x)(this)}getCompanyForecasts(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/forecasts`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eW={};M(eW,"FundamentalAnalysis",()=>eN);class eN{constructor(e){this.apiClient=e,O(x)(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 eM={};M(eM,"CompanyMarketData",()=>eO);class eO{constructor(e){this.apiClient=e,O(x)(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 eL={};M(eL,"CompanyNews",()=>eJ);class eJ{constructor(e){this.apiClient=e,O(x)(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 eH={};M(eH,"TechnicalAnalysis",()=>eV);class eV{constructor(e){this.apiClient=e,O(x)(this)}getCompanyTechnicalParagraphs(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/technical-paragraphs`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eK={};M(eK,"Metadata",()=>ez);class ez{constructor(e){this.apiClient=e,O(x)(this)}getCompanyFilters(e,t){return this.apiClient.request({...t,url:"/filters",method:"GET",params:e,secure:!0,responseType:"json"})}}var eU={};M(eU,"FundMetadata",()=>eZ);class eZ{constructor(e){this.apiClient=e,O(x)(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 eQ={};M(eQ,"FundAnalysis",()=>eY);class eY{constructor(e){this.apiClient=e,O(x)(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 eX={};M(eX,"Holdings",()=>e0);class e0{constructor(e){this.apiClient=e,O(x)(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,"Segmentations",()=>e2);class e2{constructor(e){this.apiClient=e,O(x)(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 e3={};M(e3,"FundMarketData",()=>e4);class e4{constructor(e){this.apiClient=e,O(x)(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 e5={};M(e5,"Users",()=>e6);class e6{constructor(e){this.apiClient=e,O(x)(this)}authenticate(e,t){return this.apiClient.request({...t,url:"/users/authenticate",method:"POST",data:e,secure:!0,contentType:H.Json,responseType:"json"})}fetchClientDetails(e,t){return this.apiClient.request({...t,url:"/users/machine",method:"GET",secure:!0,headers:e,responseType:"json"})}}var e7={};M(e7,"Tenants",()=>e8);class e8{constructor(e){this.apiClient=e,O(x)(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:H.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:H.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:H.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:H.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:H.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:H.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:H.Json,responseType:"json"})}deleteTenantRecommendationsConfig(e,t,s){return this.apiClient.request({...s,url:`/tenants/${e}/recommendations-config/${t}`,method:"DELETE",secure:!0,responseType:"json"})}}N(z,U),N(z,Q),N(z,eP),N(z,e_),N(z,eB),N(z,eA),N(z,eD),N(z,eW),N(z,eM),N(z,eL),N(z,eH),N(z,eK),N(z,eU),N(z,eQ),N(z,eX),N(z,e1),N(z,e3),N(z,e5),N(z,e7);class e9 extends J{constructor(e){super(new K(e)),this.config=e,this.activities=new ex(this.apiClient),this.companyMarketData=new eO(this.apiClient),this.companyMetadata=new Z(this.apiClient),this.companyNews=new eJ(this.apiClient),this.earningCalls=new eF(this.apiClient),this.esgAnalysis=new eI(this.apiClient),this.fundamentalAnalysis=new eN(this.apiClient),this.fundAnalysis=new eY(this.apiClient),this.fundMarketData=new e4(this.apiClient),this.fundMetadata=new eZ(this.apiClient),this.holdings=new e0(this.apiClient),this.logos=new eb(this.apiClient),this.metadata=new ez(this.apiClient),this.segmentations=new e2(this.apiClient),this.technicalAnalysis=new eV(this.apiClient)}}N(module.exports,L),N(module.exports,z);
|
|
1
|
+
var e,t,s,n,r,a,i,o,u,c,p,l,m,h,g,d,y,T,C,E,f,q,S,v,j,k,G,w,$,P,b,_,x=require("auto-bind"),B=require("async-mutex"),F=require("consola"),A=require("date-fns"),I=require("jwt-decode"),D=require("axios"),R=require("axios-better-stacktrace"),W=require("lodash");function N(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 M(e,t,s,n){Object.defineProperty(e,t,{get:s,set:n,enumerable:!0,configurable:!0})}function O(e){return e&&e.__esModule?e.default:e}var L={};M(L,"BridgeWiseApi",()=>e9);class J{constructor(e){this.apiClient=e,O(x)(this)}getApiClient(){return this.apiClient}}var H=((e={}).Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e);class V{constructor(e){this.config=e,O(x)(this),this.storage=e.storage??sessionStorage,this.axiosInstance=O(D).create({...e.axiosConfig,baseURL:e.baseUrl,headers:{"Content-Type":"application/json",...e.axiosConfig?.headers}}),O(R)(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,W.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,W.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,D.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 K extends V{constructor(e){super(e),this.config=e,this.lock=new B.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,F.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,F.consola).debug("Token expired. Renewing…"),e=(await this.renewToken()).accessToken,this.lock.cancel()})}catch(t){if(t===B.E_CANCELED)e=this.getAuthData()?.accessToken;else throw t}return{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}}isTokenExpired(e){let t=(0,I.jwtDecode)(e);return!t.exp||(0,A.isBefore)((0,A.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 z={},U={};M(U,"CompanyMetadata",()=>Z);class Z{constructor(e){this.apiClient=e,O(x)(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 Q={};M(Q,"BridgeWiseCompanyAlertSentiment",()=>Y),M(Q,"BridgeWiseCompanyAlertType",()=>X),M(Q,"BridgeWiseForecastType",()=>ee),M(Q,"BridgeWiseLanguageEnum",()=>et),M(Q,"BridgeWiseCompanyFilterType",()=>es),M(Q,"BridgeWiseCompositionTypeEnum",()=>en),M(Q,"BridgeWiseIdentifierTypeEnum",()=>er),M(Q,"BridgeWiseImageExtensionEnum",()=>ea),M(Q,"BridgeWiseLogoSizeEnum",()=>ei),M(Q,"BridgeWiseLogoTypeEnum",()=>eo),M(Q,"BridgeWiseStringBooleanEnum",()=>eu),M(Q,"BridgeWiseCompanyNewsSortingEnum",()=>ec),M(Q,"BridgeWiseESGSectionTypeEnum",()=>ep),M(Q,"BridgeWiseEarningsCallRecapEnum",()=>el),M(Q,"BridgeWiseFundamentalParagraphSectionTypeEnum",()=>em),M(Q,"BridgeWiseNewsSentimentEnum",()=>eh),M(Q,"BridgeWiseScoringMethodEnum",()=>eg),M(Q,"BridgeWiseESGScoreGroup",()=>ed),M(Q,"BridgeWiseFundamentalSectionTypeEnum",()=>ey),M(Q,"BridgeWiseFundsSegmentParameterEnum",()=>eT),M(Q,"BridgeWisePeriodTypeEnum",()=>eC),M(Q,"BridgeWiseSectionTypeEnum",()=>eE),M(Q,"BridgeWiseAnalysisTypeEnum",()=>ef),M(Q,"BridgeWiseGlobalIndustryScoringEnum",()=>eq),M(Q,"BridgeWiseScoreMethodology",()=>eS),M(Q,"BridgeWiseEventTypeEnum",()=>ev),M(Q,"BridgeWiseIdCheckConfigNameEnum",()=>ej),M(Q,"BridgeWiseIdCheckConfigOperatorEnum",()=>ek),M(Q,"BridgeWiseMarketDataConfigNameEnum",()=>eG),M(Q,"BridgeWiseMarketDataConfigOperatorEnum",()=>ew),M(Q,"BridgeWiseStockingFloatConfigOperatorEnum",()=>e$);var Y=((t={}).Positive="positive",t.Negative="negative",t),X=((s={}).Fundamental="fundamental",s.Market="market",s),ee=((n={}).Esg="esg",n.KeyDevelopments="key_developments",n.News="news",n),et=((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),es=((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),en=((i={}).Stocks="stocks",i.Others="others",i),er=((o={}).TickerExchange="ticker_exchange",o.Isin="isin",o),ea=((u={}).Png="png",u.Svg="svg",u.Jpg="jpg",u),ei=((c={}).Original="original",c.Square="square",c),eo=((p={}).Square="square",p.Horizontal="horizontal",p),eu=((l={}).True="true",l.False="false",l),ec=((m={}).PublicationDate="publication_date",m.RelevancyScore="relevancy_score",m.SocialShares="social_shares",m),ep=((h={}).Social="social",h.Environmental="environmental",h.Governance="governance",h.Summary="summary",h.Controversies="controversies",h.Transparency="transparency",h.Weaknesses="weaknesses",h),el=((g={}).Highlights="highlights",g.Lowlights="lowlights",g),em=((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),eh=((y={}).VeryNegative="Very Negative",y.Negative="Negative",y.Neutral="Neutral",y.Positive="Positive",y.VeryPositive="Very Positive",y.Invalid="Invalid",y),eg=((T={}).Global="global",T.Industry="industry",T.Country="country",T.Sector="sector",T),ed=((C={})[C.Value5=5]="Value5",C[C.Value4=4]="Value4",C[C.Value3=3]="Value3",C[C.Value2=2]="Value2",C[C.Value1=1]="Value1",C),ey=((E={}).BalanceSheet="balance_sheet",E.IncomeStatement="income_statement",E.CashFlow="cash_flow",E),eT=((f={}).PeRatio="pe_ratio",f.PbRatio="pb_ratio",f.PsRatio="ps_ratio",f.NetDebtToEbitda="net_debt_to_ebitda",f.MarketCap="market_cap",f.Return1Y="return_1y",f.Roe="roe",f.RevenueGrowth="revenue_growth",f.SegmentStrength="segment_strength",f),eC=((q={}).Quarterly="quarterly",q.Annually="annually",q.Last12Month="last_12_month",q),eE=((S={}).BalanceSheet="balance_sheet",S.IncomeStatement="income_statement",S.CashFlow="cash_flow",S.Social="social",S.Environmental="environmental",S.Governance="governance",S.Summary="summary",S.Probability="probability",S),ef=((v={}).Fundamental="fundamental",v.Esg="esg",v.PriceTarget="price_target",v.Technical="technical",v),eq=((j={}).Global="global",j.Industry="industry",j),eS=((k={}).Global="global",k.Industry="industry",k.Country="country",k.Sector="sector",k),ev=((G={}).PolicyThreshold="policy_threshold",G.InternalCoverage="internal_coverage",G.BwRecommendation="bw_recommendation",G),ej=((w={}).Index="index",w.Exchange="exchange",w.DomicileCountry="domicile_country",w.ExchangeCountry="exchange_country",w),ek=(($={}).Isin="isin",$.Notin="notin",$),eG=((P={}).MarketCap="market_cap",P.Volume="volume",P),ew=((b={}).Ge="ge",b.Le="le",b.Gt="gt",b.Lt="lt",b),e$=((_={}).Ge="ge",_.Le="le",_.Gt="gt",_.Lt="lt",_),eP={};M(eP,"Logos",()=>eb);class eb{constructor(e){this.apiClient=e,O(x)(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 e_={};M(e_,"Activities",()=>ex);class ex{constructor(e){this.apiClient=e,O(x)(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 eB={};M(eB,"EarningCalls",()=>eF);class eF{constructor(e){this.apiClient=e,O(x)(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 eA={};M(eA,"EsgAnalysis",()=>eI);class eI{constructor(e){this.apiClient=e,O(x)(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 eD={};M(eD,"Forecasts",()=>eR);class eR{constructor(e){this.apiClient=e,O(x)(this)}getCompanyForecasts(e,t,s){return this.apiClient.request({...s,url:`/companies/${e}/forecasts`,method:"GET",params:t,secure:!0,responseType:"json"})}}var eW={};M(eW,"FundamentalAnalysis",()=>eN);class eN{constructor(e){this.apiClient=e,O(x)(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 eM={};M(eM,"CompanyMarketData",()=>eO);class eO{constructor(e){this.apiClient=e,O(x)(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 eL={};M(eL,"CompanyNews",()=>eJ);class eJ{constructor(e){this.apiClient=e,O(x)(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 eH={};M(eH,"TechnicalAnalysis",()=>eV);class eV{constructor(e){this.apiClient=e,O(x)(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 eK={};M(eK,"Metadata",()=>ez);class ez{constructor(e){this.apiClient=e,O(x)(this)}getCompanyFilters(e,t){return this.apiClient.request({...t,url:"/filters",method:"GET",params:e,secure:!0,responseType:"json"})}}var eU={};M(eU,"FundMetadata",()=>eZ);class eZ{constructor(e){this.apiClient=e,O(x)(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 eQ={};M(eQ,"FundAnalysis",()=>eY);class eY{constructor(e){this.apiClient=e,O(x)(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 eX={};M(eX,"Holdings",()=>e0);class e0{constructor(e){this.apiClient=e,O(x)(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,"FundMarketData",()=>e2);class e2{constructor(e){this.apiClient=e,O(x)(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 e3={};M(e3,"Segmentations",()=>e4);class e4{constructor(e){this.apiClient=e,O(x)(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 e5={};M(e5,"Tenants",()=>e6);class e6{constructor(e){this.apiClient=e,O(x)(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:H.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:H.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:H.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:H.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:H.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:H.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:H.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 e7={};M(e7,"Users",()=>e8);class e8{constructor(e){this.apiClient=e,O(x)(this)}authenticate(e,t){return this.apiClient.request({...t,url:"/users/authenticate",method:"POST",data:e,secure:!0,contentType:H.Json,responseType:"json"})}fetchClientDetails(e,t){return this.apiClient.request({...t,url:"/users/machine",method:"GET",secure:!0,headers:e,responseType:"json"})}}N(z,U),N(z,Q),N(z,eP),N(z,e_),N(z,eB),N(z,eA),N(z,eD),N(z,eW),N(z,eM),N(z,eL),N(z,eH),N(z,eK),N(z,eU),N(z,eQ),N(z,eX),N(z,e1),N(z,e3),N(z,e5),N(z,e7);class e9 extends J{constructor(e){super(new K(e)),this.config=e,this.activities=new ex(this.apiClient),this.companyMarketData=new eO(this.apiClient),this.companyMetadata=new Z(this.apiClient),this.companyNews=new eJ(this.apiClient),this.earningCalls=new eF(this.apiClient),this.esgAnalysis=new eI(this.apiClient),this.fundamentalAnalysis=new eN(this.apiClient),this.fundAnalysis=new eY(this.apiClient),this.fundMarketData=new e2(this.apiClient),this.fundMetadata=new eZ(this.apiClient),this.holdings=new e0(this.apiClient),this.logos=new eb(this.apiClient),this.metadata=new ez(this.apiClient),this.segmentations=new e4(this.apiClient),this.technicalAnalysis=new eV(this.apiClient)}}N(module.exports,L),N(module.exports,z);
|
|
2
2
|
//# sourceMappingURL=index.js.map
|