@orbis-systems/orbis-api-clients 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/aesmidas/index.d.ts +356 -167
  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 +11752 -5935
  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/index.d.ts +3 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.esm.js +1 -1
  16. package/dist/index.esm.js.map +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/insight/index.d.ts +134 -3
  20. package/dist/insight/index.d.ts.map +1 -1
  21. package/dist/insight/index.esm.js +1 -1
  22. package/dist/insight/index.esm.js.map +1 -1
  23. package/dist/insight/index.js +1 -1
  24. package/dist/insight/index.js.map +1 -1
  25. package/dist/middleware/index.d.ts +197 -51
  26. package/dist/middleware/index.d.ts.map +1 -1
  27. package/dist/middleware/index.esm.js +1 -1
  28. package/dist/middleware/index.esm.js.map +1 -1
  29. package/dist/middleware/index.js +1 -1
  30. package/dist/middleware/index.js.map +1 -1
  31. package/dist/orbis/index.d.ts +59 -51
  32. package/dist/orbis/index.d.ts.map +1 -1
  33. package/dist/orbis/index.esm.js +1 -1
  34. package/dist/orbis/index.esm.js.map +1 -1
  35. package/dist/orbis/index.js +1 -1
  36. package/dist/orbis/index.js.map +1 -1
  37. package/dist/uma/index.d.ts +923 -90
  38. package/dist/uma/index.d.ts.map +1 -1
  39. package/dist/uma/index.esm.js +1 -1
  40. package/dist/uma/index.esm.js.map +1 -1
  41. package/dist/uma/index.js +1 -1
  42. package/dist/uma/index.js.map +1 -1
  43. package/package.json +157 -157
@@ -1,4 +1,4 @@
1
- import { AxiosError, AxiosInstance, AxiosRequestConfig, HttpStatusCode } from "axios";
1
+ import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponseHeaders, HttpStatusCode } from "axios";
2
2
  enum CaseFormat {
3
3
  Camel = "camel",
4
4
  Snake = "snake",
@@ -44,12 +44,14 @@ type SuccessClientResponse<Data = unknown, RawData = unknown> = ResponseStatus &
44
44
  success: true;
45
45
  data: Data;
46
46
  rawData: RawData;
47
+ headers: AxiosResponseHeaders;
47
48
  };
48
49
  type ErrorClientResponse = ResponseStatus & {
49
50
  success: false;
50
51
  data?: any;
51
52
  rawData?: any;
52
53
  error: unknown;
54
+ headers?: AxiosResponseHeaders;
53
55
  };
54
56
  type ClientResponse<Data = unknown, HandleError extends boolean = boolean, Format extends CaseFormat = CaseFormat.Original> = HandleError extends true ? SuccessClientResponse<TransformData<Data, Format>, Data> | ErrorClientResponse : SuccessClientResponse<TransformData<Data, Format>, Data>;
55
57
  declare abstract class BaseClient<HandleError extends boolean = boolean, Format extends CaseFormat = CaseFormat.Original, AuthData = unknown> {
@@ -101,6 +103,39 @@ export enum InsightTrendingType {
101
103
  TrendingTypeBestRated = "best-rated",
102
104
  TrendingTypeWorstRated = "worst-rated"
103
105
  }
106
+ export enum InsightTiprankNewsOrderBy {
107
+ TiprankNewsOrderByDate = "date",
108
+ TiprankNewsOrderByLastUpdateDate = "last_update_date"
109
+ }
110
+ export enum InsightTiprankNewsLang {
111
+ TiprankNewsLangEN = "en",
112
+ TiprankNewsLangHE = "he",
113
+ TiprankNewsLangES = "es",
114
+ TiprankNewsLangJP = "jp"
115
+ }
116
+ export enum InsightTiprankNewsCountry {
117
+ TiprankNewsCountryUS = "US",
118
+ TiprankNewsCountryCanada = "Canada",
119
+ TiprankNewsCountryUK = "UK",
120
+ TiprankNewsCountryGlobal = "Global",
121
+ TiprankNewsCountryGermany = "Germany",
122
+ TiprankNewsCountrySpain = "Spain",
123
+ TiprankNewsCountryFrance = "France",
124
+ TiprankNewsCountryItaly = "Italy",
125
+ TiprankNewsCountryIsrael = "Israel",
126
+ TiprankNewsCountryAustralia = "Australia",
127
+ TiprankNewsCountrySingapore = "Singapore",
128
+ TiprankNewsCountryEuroZone = "EuroZone",
129
+ TiprankNewsCountryJapan = "Japan",
130
+ TiprankNewsCountryHongKong = "HongKong"
131
+ }
132
+ export enum InsightTiprankNewsCategory {
133
+ TiprankNewsCategoryNews = "news",
134
+ TiprankNewsCategoryArticle = "article",
135
+ /** spelled as in TipRank API */
136
+ TiprankNewsCategoryCompanyAnnouncements = "company-announcments",
137
+ TiprankNewsCategoryTheFly = "the-fly"
138
+ }
104
139
  export enum InsightPeriodType {
105
140
  PeriodDay = "day",
106
141
  PeriodWeek = "week",
@@ -848,10 +883,18 @@ export interface InsightEarningReleasesRequest {
848
883
  exchanges?: string[];
849
884
  /** @example true */
850
885
  load_quotes?: boolean;
886
+ /** in millions */
887
+ market_cap?: InsightLessAndMore;
888
+ /** Allowed fields: symbol, market_cap, exchange, quarter, time, date */
889
+ order?: InsightOrdering;
851
890
  /** Paging is required if LoadQuotes is true */
852
891
  paging?: InsightPaging;
892
+ /** @example "confirmed" */
893
+ status?: InsightEarningReleasesRequestStatusEnum;
853
894
  /** @example ["AAPL","GOOGL"] */
854
895
  symbols?: string[];
896
+ /** @example ["Before Market Open","After Market Close"] */
897
+ time?: string[];
855
898
  }
856
899
  export interface InsightEarningReleasesResponse {
857
900
  /** @example 10 */
@@ -1191,6 +1234,7 @@ export interface InsightFundScreenerRequest {
1191
1234
  leverage?: InsightFundScreenerRequestLeverageEnum;
1192
1235
  market_cap?: InsightLessAndMore;
1193
1236
  paging: InsightPaging;
1237
+ search?: InsightSearch;
1194
1238
  sectors?: InsightSectorFilter[];
1195
1239
  sponsors?: string[];
1196
1240
  }
@@ -4126,6 +4170,12 @@ export interface InsightScreenerPreset {
4126
4170
  preset_name: string;
4127
4171
  updated_at: string;
4128
4172
  }
4173
+ export interface InsightSearch {
4174
+ /** @example "name" */
4175
+ field: string;
4176
+ /** @example "technology" */
4177
+ query: string;
4178
+ }
4129
4179
  export interface InsightSearchArticleRequest {
4130
4180
  /** @example "eng" */
4131
4181
  language: string;
@@ -4442,6 +4492,70 @@ export interface InsightTimeRangeFilter {
4442
4492
  */
4443
4493
  start_time: number;
4444
4494
  }
4495
+ export interface InsightTiprankNewsArticle {
4496
+ author: InsightTiprankNewsAuthor;
4497
+ category: InsightTiprankNewsTopic;
4498
+ content: string;
4499
+ date: string;
4500
+ description: string;
4501
+ id: string;
4502
+ image: InsightTiprankNewsImage;
4503
+ last_modified: string;
4504
+ link: string;
4505
+ modified: boolean;
4506
+ slug: string;
4507
+ source: string;
4508
+ story_highlights: string;
4509
+ thumbnail: InsightTiprankNewsImage;
4510
+ tickers: string[];
4511
+ title: string;
4512
+ topics: InsightTiprankNewsTopic[];
4513
+ }
4514
+ export interface InsightTiprankNewsArticlesResponse {
4515
+ data: InsightTiprankNewsArticle[];
4516
+ disclaimer: string;
4517
+ }
4518
+ export interface InsightTiprankNewsAuthor {
4519
+ bio: string;
4520
+ image: InsightTiprankNewsImage;
4521
+ linkedin: string;
4522
+ name: string;
4523
+ slug: string;
4524
+ source: string;
4525
+ topics: any[];
4526
+ type: string;
4527
+ }
4528
+ export interface InsightTiprankNewsImage {
4529
+ height: number;
4530
+ src: string;
4531
+ width: number;
4532
+ }
4533
+ export interface InsightTiprankNewsRequest {
4534
+ /** Posts by categories Enums(news, article, company-announcments, the-fly) (OPTIONAL) */
4535
+ categories?: InsightTiprankNewsCategory[];
4536
+ /** Posts by specific countries Enums(US, Canada, UK, Global, Germany, Spain, France, Italy, Israel, Australia, Singapore, EuroZone, Japan, HongKong) (OPTIONAL) */
4537
+ countries?: InsightTiprankNewsCountry[];
4538
+ /** Exclude links from the post (OPTIONAL) */
4539
+ exclude_links?: boolean;
4540
+ /** Posts by post ids (OPTIONAL) */
4541
+ ids?: string[];
4542
+ /** Include additional content for each post (OPTIONAL) */
4543
+ include_content?: boolean;
4544
+ /** The language of the content Enums(en, he, es, jp) (OPTIONAL) */
4545
+ lang?: InsightTiprankNewsLang;
4546
+ /** Number of posts to pull (OPTIONAL) */
4547
+ num?: number;
4548
+ /** Field used to sort results in descending order Enums(date, last_update_date) (OPTIONAL) */
4549
+ order_by?: InsightTiprankNewsOrderBy;
4550
+ /** Posts by post slugs (OPTIONAL) */
4551
+ slugs?: string[];
4552
+ /** Posts by ticker symbols (OPTIONAL) */
4553
+ tickers?: string[];
4554
+ }
4555
+ export interface InsightTiprankNewsTopic {
4556
+ slug: string;
4557
+ title: string;
4558
+ }
4445
4559
  export interface InsightTiprankQuote {
4446
4560
  ask_px: number;
4447
4561
  ask_sz: number;
@@ -4781,6 +4895,11 @@ export enum InsightCryptoLogoConvertedRequestConversionEnum {
4781
4895
  SquareStrictOrNormal = "square_strict_or_normal",
4782
4896
  BestMatch = "best_match"
4783
4897
  }
4898
+ /** @example "confirmed" */
4899
+ export enum InsightEarningReleasesRequestStatusEnum {
4900
+ Estimated = "estimated",
4901
+ Confirmed = "confirmed"
4902
+ }
4784
4903
  /** @example "ETF" */
4785
4904
  export enum InsightFundScreenerRequestFundTypeEnum {
4786
4905
  ANY = "ANY",
@@ -5290,6 +5409,8 @@ export class Earnings<HandleError extends boolean = boolean, Format extends Case
5290
5409
  * @example ""NYSE,NAS""
5291
5410
  */
5292
5411
  exchanges?: string[];
5412
+ /** Filter by status - estimated/confirmed */
5413
+ status?: string;
5293
5414
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<Record<string, number>, HandleError, Format>>;
5294
5415
  /**
5295
5416
  * @description get earnings release dates for symbols
@@ -5675,7 +5796,7 @@ export class Funds<HandleError extends boolean = boolean, Format extends CaseFor
5675
5796
  category?: string;
5676
5797
  /** Asset class id */
5677
5798
  asset_class?: string;
5678
- /** Leverage ratios to filter by */
5799
+ /** Leverage ratios to filter by; whole numbers (e.g. 0,1,2) match the leverage category, decimal values (e.g. 1.5) match the exact leverage ratio */
5679
5800
  leverage_ratios?: number[];
5680
5801
  /** Whether to include inverse ETFs */
5681
5802
  inverse?: boolean;
@@ -5725,7 +5846,7 @@ export class Funds<HandleError extends boolean = boolean, Format extends CaseFor
5725
5846
  category?: string;
5726
5847
  /** Asset class id */
5727
5848
  asset_class?: string;
5728
- /** Leverage ratios to filter by */
5849
+ /** Leverage ratios to filter by; whole numbers (e.g. 0,1,2) match the leverage category, decimal values (e.g. 1.5) match the exact leverage ratio */
5729
5850
  leverage_ratios?: number[];
5730
5851
  /** Whether to include inverse ETFs */
5731
5852
  inverse?: boolean;
@@ -7198,6 +7319,15 @@ export class TipRank<HandleError extends boolean = boolean, Format extends CaseF
7198
7319
  * @secure
7199
7320
  */
7200
7321
  tiprankLiveFeed(filter: InsightLiveFeedRequest, config?: RequestConfig<HandleError>): Promise<ClientResponse<InsightLiveFeedResponse[], HandleError, Format>>;
7322
+ /**
7323
+ * @description Returns the latest market-moving news about publicly traded companies and their stocks.
7324
+ * @tags TipRank
7325
+ * @name TiprankNews
7326
+ * @summary Get tiprank News
7327
+ * @request POST:/tipranks/news
7328
+ * @secure
7329
+ */
7330
+ tiprankNews(filter: InsightTiprankNewsRequest, config?: RequestConfig<HandleError>): Promise<ClientResponse<InsightTiprankNewsArticlesResponse, HandleError, Format>>;
7201
7331
  /**
7202
7332
  * @description Returns the latest news articles on the stock and their sentiment (bullish / neutral or bearish).
7203
7333
  * @tags TipRank
@@ -7348,6 +7478,7 @@ export class UsageTracking<HandleError extends boolean = boolean, Format extends
7348
7478
  * @name GetUsageData
7349
7479
  * @summary get insight usage data
7350
7480
  * @request POST:/tracking/usage
7481
+ * @deprecated
7351
7482
  * @secure
7352
7483
  */
7353
7484
  getUsageData(filter: InsightGetUsageDataRequest, config?: RequestConfig<HandleError>): Promise<ClientResponse<InsightUsageDataEntry[], HandleError, Format>>;