@monarkmarkets/api-client 1.3.52 → 1.3.54

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/Client.d.ts CHANGED
@@ -233,7 +233,10 @@ export declare class Client {
233
233
  * Get all IndicationOfInterests.
234
234
  * @param searchTerm (optional) Optional search term on the company/target name.
235
235
  * @param investorId (optional) Filter the returned IndicationOfInterests by an InvestorId.
236
+ * @param targetId (optional) Filter the returned IndicationOfInterests by a target ID.
236
237
  * @param targetAssetType (optional) Filter the returned IndicationOfInterests by the primary_offering_api_models.IndicationOfInterests.Enums.IndicationOfInterestTargetAssetType.
238
+ * @param advisorId (optional) Filter the returned IndicationOfInterests by an AdvisorId.
239
+ * @param isActive (optional) Filter the IndicationOfInterests by whether it is in the active state.
237
240
  * @param page (optional) Number of the page to retrieve.
238
241
  Defaults to 1 if not specified.
239
242
  * @param pageSize (optional) Size of the page to retrieve.
@@ -242,7 +245,7 @@ export declare class Client {
242
245
  * @param sortOrder (optional) Which direction to sort by.
243
246
  * @return Returns the list of IndicationOfInterest.
244
247
  */
245
- getAllIndicationOfInterestsV2(searchTerm: string | undefined, investorId: string | undefined, targetAssetType: TargetAssetType | undefined, page: number | undefined, pageSize: number | undefined, sortProperty: SortProperty2 | undefined, sortOrder: SortOrder6 | undefined): Promise<IndicationOfInterestV2ApiResponse>;
248
+ getAllIndicationOfInterestsV2(searchTerm: string | undefined, investorId: string | undefined, targetId: string | undefined, targetAssetType: TargetAssetType | undefined, advisorId: string | undefined, isActive: boolean | undefined, page: number | undefined, pageSize: number | undefined, sortProperty: SortProperty2 | undefined, sortOrder: SortOrder6 | undefined): Promise<IndicationOfInterestV2ApiResponse>;
246
249
  protected processGetAllIndicationOfInterestsV2(response: Response): Promise<IndicationOfInterestV2ApiResponse>;
247
250
  /**
248
251
  * Get an IndicationOfInterest by Id.
@@ -3482,6 +3485,8 @@ export declare class IndicationOfInterestV2 implements IIndicationOfInterestV2 {
3482
3485
  investorLastName?: string | undefined;
3483
3486
  /** The name of the target asset (for display purposes). */
3484
3487
  targetName?: string | undefined;
3488
+ /** Specifies whether the IOI is currently available. */
3489
+ isActive?: boolean;
3485
3490
  constructor(data?: IIndicationOfInterestV2);
3486
3491
  init(_data?: any): void;
3487
3492
  static fromJS(data: any): IndicationOfInterestV2;
@@ -3517,6 +3522,8 @@ export interface IIndicationOfInterestV2 {
3517
3522
  investorLastName?: string | undefined;
3518
3523
  /** The name of the target asset (for display purposes). */
3519
3524
  targetName?: string | undefined;
3525
+ /** Specifies whether the IOI is currently available. */
3526
+ isActive?: boolean;
3520
3527
  }
3521
3528
  export declare class IndicationOfInterestV2ApiResponse implements IIndicationOfInterestV2ApiResponse {
3522
3529
  items?: IndicationOfInterestV2[] | undefined;
@@ -7070,6 +7077,8 @@ export declare class RegisteredFund implements IRegisteredFund {
7070
7077
  website?: string | undefined;
7071
7078
  /** Symbol assigned to this registered fund */
7072
7079
  symbol?: string | undefined;
7080
+ /** ISIN or CUSIP identifier at the fund level. */
7081
+ isinOrCusip?: string | undefined;
7073
7082
  /** Link to logo for Registered Fund */
7074
7083
  logoUrl?: string | undefined;
7075
7084
  /** Current reported AUM of Registered Fund */
@@ -7152,6 +7161,8 @@ export interface IRegisteredFund {
7152
7161
  website?: string | undefined;
7153
7162
  /** Symbol assigned to this registered fund */
7154
7163
  symbol?: string | undefined;
7164
+ /** ISIN or CUSIP identifier at the fund level. */
7165
+ isinOrCusip?: string | undefined;
7155
7166
  /** Link to logo for Registered Fund */
7156
7167
  logoUrl?: string | undefined;
7157
7168
  /** Current reported AUM of Registered Fund */
@@ -8604,6 +8615,32 @@ export interface IUpdateWebhook {
8604
8615
  /** Flag to dictate if the webhook should be sent events. */
8605
8616
  isActive?: boolean;
8606
8617
  }
8618
+ export declare class ValidationProblemDetails implements IValidationProblemDetails {
8619
+ type?: string | undefined;
8620
+ title?: string | undefined;
8621
+ status?: number | undefined;
8622
+ detail?: string | undefined;
8623
+ instance?: string | undefined;
8624
+ errors?: {
8625
+ [key: string]: string[];
8626
+ } | undefined;
8627
+ [key: string]: any;
8628
+ constructor(data?: IValidationProblemDetails);
8629
+ init(_data?: any): void;
8630
+ static fromJS(data: any): ValidationProblemDetails;
8631
+ toJSON(data?: any): any;
8632
+ }
8633
+ export interface IValidationProblemDetails {
8634
+ type?: string | undefined;
8635
+ title?: string | undefined;
8636
+ status?: number | undefined;
8637
+ detail?: string | undefined;
8638
+ instance?: string | undefined;
8639
+ errors?: {
8640
+ [key: string]: string[];
8641
+ } | undefined;
8642
+ [key: string]: any;
8643
+ }
8607
8644
  /** Watchlist represents a user's subscription to future updates about a given company. */
8608
8645
  export declare class Watchlist implements IWatchlist {
8609
8646
  /** Unique ID associated with this watchlist item. */
package/dist/Client.js CHANGED
@@ -1433,7 +1433,10 @@ export class Client {
1433
1433
  * Get all IndicationOfInterests.
1434
1434
  * @param searchTerm (optional) Optional search term on the company/target name.
1435
1435
  * @param investorId (optional) Filter the returned IndicationOfInterests by an InvestorId.
1436
+ * @param targetId (optional) Filter the returned IndicationOfInterests by a target ID.
1436
1437
  * @param targetAssetType (optional) Filter the returned IndicationOfInterests by the primary_offering_api_models.IndicationOfInterests.Enums.IndicationOfInterestTargetAssetType.
1438
+ * @param advisorId (optional) Filter the returned IndicationOfInterests by an AdvisorId.
1439
+ * @param isActive (optional) Filter the IndicationOfInterests by whether it is in the active state.
1437
1440
  * @param page (optional) Number of the page to retrieve.
1438
1441
  Defaults to 1 if not specified.
1439
1442
  * @param pageSize (optional) Size of the page to retrieve.
@@ -1442,7 +1445,7 @@ export class Client {
1442
1445
  * @param sortOrder (optional) Which direction to sort by.
1443
1446
  * @return Returns the list of IndicationOfInterest.
1444
1447
  */
1445
- getAllIndicationOfInterestsV2(searchTerm, investorId, targetAssetType, page, pageSize, sortProperty, sortOrder) {
1448
+ getAllIndicationOfInterestsV2(searchTerm, investorId, targetId, targetAssetType, advisorId, isActive, page, pageSize, sortProperty, sortOrder) {
1446
1449
  let url_ = this.baseUrl + "/primary/v2/indication-of-interest?";
1447
1450
  if (searchTerm === null)
1448
1451
  throw new globalThis.Error("The parameter 'searchTerm' cannot be null.");
@@ -1452,10 +1455,22 @@ export class Client {
1452
1455
  throw new globalThis.Error("The parameter 'investorId' cannot be null.");
1453
1456
  else if (investorId !== undefined)
1454
1457
  url_ += "investorId=" + encodeURIComponent("" + investorId) + "&";
1458
+ if (targetId === null)
1459
+ throw new globalThis.Error("The parameter 'targetId' cannot be null.");
1460
+ else if (targetId !== undefined)
1461
+ url_ += "targetId=" + encodeURIComponent("" + targetId) + "&";
1455
1462
  if (targetAssetType === null)
1456
1463
  throw new globalThis.Error("The parameter 'targetAssetType' cannot be null.");
1457
1464
  else if (targetAssetType !== undefined)
1458
1465
  url_ += "targetAssetType=" + encodeURIComponent("" + targetAssetType) + "&";
1466
+ if (advisorId === null)
1467
+ throw new globalThis.Error("The parameter 'advisorId' cannot be null.");
1468
+ else if (advisorId !== undefined)
1469
+ url_ += "advisorId=" + encodeURIComponent("" + advisorId) + "&";
1470
+ if (isActive === null)
1471
+ throw new globalThis.Error("The parameter 'isActive' cannot be null.");
1472
+ else if (isActive !== undefined)
1473
+ url_ += "isActive=" + encodeURIComponent("" + isActive) + "&";
1459
1474
  if (page === null)
1460
1475
  throw new globalThis.Error("The parameter 'page' cannot be null.");
1461
1476
  else if (page !== undefined)
@@ -1498,6 +1513,14 @@ export class Client {
1498
1513
  return result200;
1499
1514
  });
1500
1515
  }
1516
+ else if (status === 400) {
1517
+ return response.text().then((_responseText) => {
1518
+ let result400 = null;
1519
+ let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1520
+ result400 = ValidationProblemDetails.fromJS(resultData400);
1521
+ return throwException("Bad Request", status, _responseText, _headers, result400);
1522
+ });
1523
+ }
1501
1524
  else if (status !== 200 && status !== 204) {
1502
1525
  return response.text().then((_responseText) => {
1503
1526
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12156,6 +12179,7 @@ export class IndicationOfInterestV2 {
12156
12179
  this.investorFirstName = _data["investorFirstName"];
12157
12180
  this.investorLastName = _data["investorLastName"];
12158
12181
  this.targetName = _data["targetName"];
12182
+ this.isActive = _data["isActive"];
12159
12183
  }
12160
12184
  }
12161
12185
  static fromJS(data) {
@@ -12180,6 +12204,7 @@ export class IndicationOfInterestV2 {
12180
12204
  data["investorFirstName"] = this.investorFirstName;
12181
12205
  data["investorLastName"] = this.investorLastName;
12182
12206
  data["targetName"] = this.targetName;
12207
+ data["isActive"] = this.isActive;
12183
12208
  return data;
12184
12209
  }
12185
12210
  }
@@ -16148,6 +16173,7 @@ export class RegisteredFund {
16148
16173
  this.cik = _data["cik"];
16149
16174
  this.website = _data["website"];
16150
16175
  this.symbol = _data["symbol"];
16176
+ this.isinOrCusip = _data["isinOrCusip"];
16151
16177
  this.logoUrl = _data["logoUrl"];
16152
16178
  this.aum = _data["aum"];
16153
16179
  this.currency = _data["currency"];
@@ -16207,6 +16233,7 @@ export class RegisteredFund {
16207
16233
  data["cik"] = this.cik;
16208
16234
  data["website"] = this.website;
16209
16235
  data["symbol"] = this.symbol;
16236
+ data["isinOrCusip"] = this.isinOrCusip;
16210
16237
  data["logoUrl"] = this.logoUrl;
16211
16238
  data["aum"] = this.aum;
16212
16239
  data["currency"] = this.currency;
@@ -17871,6 +17898,62 @@ export class UpdateWebhook {
17871
17898
  return data;
17872
17899
  }
17873
17900
  }
17901
+ export class ValidationProblemDetails {
17902
+ constructor(data) {
17903
+ if (data) {
17904
+ for (var property in data) {
17905
+ if (data.hasOwnProperty(property))
17906
+ this[property] = data[property];
17907
+ }
17908
+ }
17909
+ }
17910
+ init(_data) {
17911
+ if (_data) {
17912
+ for (var property in _data) {
17913
+ if (_data.hasOwnProperty(property))
17914
+ this[property] = _data[property];
17915
+ }
17916
+ this.type = _data["type"];
17917
+ this.title = _data["title"];
17918
+ this.status = _data["status"];
17919
+ this.detail = _data["detail"];
17920
+ this.instance = _data["instance"];
17921
+ if (_data["errors"]) {
17922
+ this.errors = {};
17923
+ for (let key in _data["errors"]) {
17924
+ if (_data["errors"].hasOwnProperty(key))
17925
+ this.errors[key] = _data["errors"][key] !== undefined ? _data["errors"][key] : [];
17926
+ }
17927
+ }
17928
+ }
17929
+ }
17930
+ static fromJS(data) {
17931
+ data = typeof data === 'object' ? data : {};
17932
+ let result = new ValidationProblemDetails();
17933
+ result.init(data);
17934
+ return result;
17935
+ }
17936
+ toJSON(data) {
17937
+ data = typeof data === 'object' ? data : {};
17938
+ for (var property in this) {
17939
+ if (this.hasOwnProperty(property))
17940
+ data[property] = this[property];
17941
+ }
17942
+ data["type"] = this.type;
17943
+ data["title"] = this.title;
17944
+ data["status"] = this.status;
17945
+ data["detail"] = this.detail;
17946
+ data["instance"] = this.instance;
17947
+ if (this.errors) {
17948
+ data["errors"] = {};
17949
+ for (let key in this.errors) {
17950
+ if (this.errors.hasOwnProperty(key))
17951
+ data["errors"][key] = this.errors[key];
17952
+ }
17953
+ }
17954
+ return data;
17955
+ }
17956
+ }
17874
17957
  /** Watchlist represents a user's subscription to future updates about a given company. */
17875
17958
  export class Watchlist {
17876
17959
  constructor(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monarkmarkets/api-client",
3
- "version": "1.3.52",
3
+ "version": "1.3.54",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",