@monarkmarkets/api-client 1.3.53 → 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 +33 -1
- package/dist/Client.js +77 -1
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -233,7 +233,9 @@ 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.
|
|
237
239
|
* @param isActive (optional) Filter the IndicationOfInterests by whether it is in the active state.
|
|
238
240
|
* @param page (optional) Number of the page to retrieve.
|
|
239
241
|
Defaults to 1 if not specified.
|
|
@@ -243,7 +245,7 @@ export declare class Client {
|
|
|
243
245
|
* @param sortOrder (optional) Which direction to sort by.
|
|
244
246
|
* @return Returns the list of IndicationOfInterest.
|
|
245
247
|
*/
|
|
246
|
-
getAllIndicationOfInterestsV2(searchTerm: string | undefined, investorId: string | undefined, targetAssetType: TargetAssetType | undefined, isActive: boolean | 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>;
|
|
247
249
|
protected processGetAllIndicationOfInterestsV2(response: Response): Promise<IndicationOfInterestV2ApiResponse>;
|
|
248
250
|
/**
|
|
249
251
|
* Get an IndicationOfInterest by Id.
|
|
@@ -7075,6 +7077,8 @@ export declare class RegisteredFund implements IRegisteredFund {
|
|
|
7075
7077
|
website?: string | undefined;
|
|
7076
7078
|
/** Symbol assigned to this registered fund */
|
|
7077
7079
|
symbol?: string | undefined;
|
|
7080
|
+
/** ISIN or CUSIP identifier at the fund level. */
|
|
7081
|
+
isinOrCusip?: string | undefined;
|
|
7078
7082
|
/** Link to logo for Registered Fund */
|
|
7079
7083
|
logoUrl?: string | undefined;
|
|
7080
7084
|
/** Current reported AUM of Registered Fund */
|
|
@@ -7157,6 +7161,8 @@ export interface IRegisteredFund {
|
|
|
7157
7161
|
website?: string | undefined;
|
|
7158
7162
|
/** Symbol assigned to this registered fund */
|
|
7159
7163
|
symbol?: string | undefined;
|
|
7164
|
+
/** ISIN or CUSIP identifier at the fund level. */
|
|
7165
|
+
isinOrCusip?: string | undefined;
|
|
7160
7166
|
/** Link to logo for Registered Fund */
|
|
7161
7167
|
logoUrl?: string | undefined;
|
|
7162
7168
|
/** Current reported AUM of Registered Fund */
|
|
@@ -8609,6 +8615,32 @@ export interface IUpdateWebhook {
|
|
|
8609
8615
|
/** Flag to dictate if the webhook should be sent events. */
|
|
8610
8616
|
isActive?: boolean;
|
|
8611
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
|
+
}
|
|
8612
8644
|
/** Watchlist represents a user's subscription to future updates about a given company. */
|
|
8613
8645
|
export declare class Watchlist implements IWatchlist {
|
|
8614
8646
|
/** Unique ID associated with this watchlist item. */
|
package/dist/Client.js
CHANGED
|
@@ -1433,7 +1433,9 @@ 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.
|
|
1437
1439
|
* @param isActive (optional) Filter the IndicationOfInterests by whether it is in the active state.
|
|
1438
1440
|
* @param page (optional) Number of the page to retrieve.
|
|
1439
1441
|
Defaults to 1 if not specified.
|
|
@@ -1443,7 +1445,7 @@ export class Client {
|
|
|
1443
1445
|
* @param sortOrder (optional) Which direction to sort by.
|
|
1444
1446
|
* @return Returns the list of IndicationOfInterest.
|
|
1445
1447
|
*/
|
|
1446
|
-
getAllIndicationOfInterestsV2(searchTerm, investorId, targetAssetType, isActive, page, pageSize, sortProperty, sortOrder) {
|
|
1448
|
+
getAllIndicationOfInterestsV2(searchTerm, investorId, targetId, targetAssetType, advisorId, isActive, page, pageSize, sortProperty, sortOrder) {
|
|
1447
1449
|
let url_ = this.baseUrl + "/primary/v2/indication-of-interest?";
|
|
1448
1450
|
if (searchTerm === null)
|
|
1449
1451
|
throw new globalThis.Error("The parameter 'searchTerm' cannot be null.");
|
|
@@ -1453,10 +1455,18 @@ export class Client {
|
|
|
1453
1455
|
throw new globalThis.Error("The parameter 'investorId' cannot be null.");
|
|
1454
1456
|
else if (investorId !== undefined)
|
|
1455
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) + "&";
|
|
1456
1462
|
if (targetAssetType === null)
|
|
1457
1463
|
throw new globalThis.Error("The parameter 'targetAssetType' cannot be null.");
|
|
1458
1464
|
else if (targetAssetType !== undefined)
|
|
1459
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) + "&";
|
|
1460
1470
|
if (isActive === null)
|
|
1461
1471
|
throw new globalThis.Error("The parameter 'isActive' cannot be null.");
|
|
1462
1472
|
else if (isActive !== undefined)
|
|
@@ -1503,6 +1513,14 @@ export class Client {
|
|
|
1503
1513
|
return result200;
|
|
1504
1514
|
});
|
|
1505
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
|
+
}
|
|
1506
1524
|
else if (status !== 200 && status !== 204) {
|
|
1507
1525
|
return response.text().then((_responseText) => {
|
|
1508
1526
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -16155,6 +16173,7 @@ export class RegisteredFund {
|
|
|
16155
16173
|
this.cik = _data["cik"];
|
|
16156
16174
|
this.website = _data["website"];
|
|
16157
16175
|
this.symbol = _data["symbol"];
|
|
16176
|
+
this.isinOrCusip = _data["isinOrCusip"];
|
|
16158
16177
|
this.logoUrl = _data["logoUrl"];
|
|
16159
16178
|
this.aum = _data["aum"];
|
|
16160
16179
|
this.currency = _data["currency"];
|
|
@@ -16214,6 +16233,7 @@ export class RegisteredFund {
|
|
|
16214
16233
|
data["cik"] = this.cik;
|
|
16215
16234
|
data["website"] = this.website;
|
|
16216
16235
|
data["symbol"] = this.symbol;
|
|
16236
|
+
data["isinOrCusip"] = this.isinOrCusip;
|
|
16217
16237
|
data["logoUrl"] = this.logoUrl;
|
|
16218
16238
|
data["aum"] = this.aum;
|
|
16219
16239
|
data["currency"] = this.currency;
|
|
@@ -17878,6 +17898,62 @@ export class UpdateWebhook {
|
|
|
17878
17898
|
return data;
|
|
17879
17899
|
}
|
|
17880
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
|
+
}
|
|
17881
17957
|
/** Watchlist represents a user's subscription to future updates about a given company. */
|
|
17882
17958
|
export class Watchlist {
|
|
17883
17959
|
constructor(data) {
|