@monarkmarkets/api-client 1.3.53 → 1.3.55

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,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.
@@ -3173,10 +3175,28 @@ export declare class FinancialAdvisor implements IFinancialAdvisor {
3173
3175
  middleName?: string | undefined;
3174
3176
  /** Financial advisor last name. */
3175
3177
  lastName: string | undefined;
3178
+ /** Financial advisor mailing address. */
3179
+ mailingAddress: string | undefined;
3180
+ /** Financial advisor mailing city. */
3181
+ mailingCity: string | undefined;
3182
+ /** Financial advisor mailing state. */
3183
+ mailingState: string | undefined;
3184
+ /** Financial advisor mailing zip code. */
3185
+ mailingZipCode: string | undefined;
3176
3186
  /** Financial advisor mailing country code. */
3177
3187
  mailingCountryCode: string | undefined;
3178
3188
  /** Financial Advisor branch number. */
3179
3189
  branchNumber?: string | undefined;
3190
+ /** Financial advisor phone country code. */
3191
+ phoneCountryCode: string | undefined;
3192
+ /** Financial advisor phone number. */
3193
+ phoneNumber: string | undefined;
3194
+ /** Financial advisor phone number extension. */
3195
+ phoneExtension?: string | undefined;
3196
+ /** Financial advisor email address. */
3197
+ emailAddress?: string | undefined;
3198
+ /** Financial advisor fax number. */
3199
+ fax?: string | undefined;
3180
3200
  /** Prefix for the Financial Advisor. */
3181
3201
  prefix: string | undefined;
3182
3202
  /** Financial advisor broker. */
@@ -3202,10 +3222,28 @@ export interface IFinancialAdvisor {
3202
3222
  middleName?: string | undefined;
3203
3223
  /** Financial advisor last name. */
3204
3224
  lastName: string | undefined;
3225
+ /** Financial advisor mailing address. */
3226
+ mailingAddress: string | undefined;
3227
+ /** Financial advisor mailing city. */
3228
+ mailingCity: string | undefined;
3229
+ /** Financial advisor mailing state. */
3230
+ mailingState: string | undefined;
3231
+ /** Financial advisor mailing zip code. */
3232
+ mailingZipCode: string | undefined;
3205
3233
  /** Financial advisor mailing country code. */
3206
3234
  mailingCountryCode: string | undefined;
3207
3235
  /** Financial Advisor branch number. */
3208
3236
  branchNumber?: string | undefined;
3237
+ /** Financial advisor phone country code. */
3238
+ phoneCountryCode: string | undefined;
3239
+ /** Financial advisor phone number. */
3240
+ phoneNumber: string | undefined;
3241
+ /** Financial advisor phone number extension. */
3242
+ phoneExtension?: string | undefined;
3243
+ /** Financial advisor email address. */
3244
+ emailAddress?: string | undefined;
3245
+ /** Financial advisor fax number. */
3246
+ fax?: string | undefined;
3209
3247
  /** Prefix for the Financial Advisor. */
3210
3248
  prefix: string | undefined;
3211
3249
  /** Financial advisor broker. */
@@ -7075,6 +7113,8 @@ export declare class RegisteredFund implements IRegisteredFund {
7075
7113
  website?: string | undefined;
7076
7114
  /** Symbol assigned to this registered fund */
7077
7115
  symbol?: string | undefined;
7116
+ /** ISIN or CUSIP identifier at the fund level. */
7117
+ isinOrCusip?: string | undefined;
7078
7118
  /** Link to logo for Registered Fund */
7079
7119
  logoUrl?: string | undefined;
7080
7120
  /** Current reported AUM of Registered Fund */
@@ -7157,6 +7197,8 @@ export interface IRegisteredFund {
7157
7197
  website?: string | undefined;
7158
7198
  /** Symbol assigned to this registered fund */
7159
7199
  symbol?: string | undefined;
7200
+ /** ISIN or CUSIP identifier at the fund level. */
7201
+ isinOrCusip?: string | undefined;
7160
7202
  /** Link to logo for Registered Fund */
7161
7203
  logoUrl?: string | undefined;
7162
7204
  /** Current reported AUM of Registered Fund */
@@ -8609,6 +8651,32 @@ export interface IUpdateWebhook {
8609
8651
  /** Flag to dictate if the webhook should be sent events. */
8610
8652
  isActive?: boolean;
8611
8653
  }
8654
+ export declare class ValidationProblemDetails implements IValidationProblemDetails {
8655
+ type?: string | undefined;
8656
+ title?: string | undefined;
8657
+ status?: number | undefined;
8658
+ detail?: string | undefined;
8659
+ instance?: string | undefined;
8660
+ errors?: {
8661
+ [key: string]: string[];
8662
+ } | undefined;
8663
+ [key: string]: any;
8664
+ constructor(data?: IValidationProblemDetails);
8665
+ init(_data?: any): void;
8666
+ static fromJS(data: any): ValidationProblemDetails;
8667
+ toJSON(data?: any): any;
8668
+ }
8669
+ export interface IValidationProblemDetails {
8670
+ type?: string | undefined;
8671
+ title?: string | undefined;
8672
+ status?: number | undefined;
8673
+ detail?: string | undefined;
8674
+ instance?: string | undefined;
8675
+ errors?: {
8676
+ [key: string]: string[];
8677
+ } | undefined;
8678
+ [key: string]: any;
8679
+ }
8612
8680
  /** Watchlist represents a user's subscription to future updates about a given company. */
8613
8681
  export declare class Watchlist implements IWatchlist {
8614
8682
  /** Unique ID associated with this watchlist item. */
@@ -9151,7 +9219,10 @@ export declare enum EventType {
9151
9219
  RegisteredFundTransactionStatus = "RegisteredFundTransactionStatus",
9152
9220
  PreIPOCompanySPVUpdate = "PreIPOCompanySPVUpdate",
9153
9221
  PreIPOCompanySPVDocumentUpdate = "PreIPOCompanySPVDocumentUpdate",
9154
- PreIPOCompanySPVSubscriptionActionDefinitionUpdate = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate"
9222
+ PreIPOCompanySPVSubscriptionActionDefinitionUpdate = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate",
9223
+ ProspectiveOfferingAccessGained = "ProspectiveOfferingAccessGained",
9224
+ ProspectiveOfferingAccessLost = "ProspectiveOfferingAccessLost",
9225
+ IndicationOfInterestClosed = "IndicationOfInterestClosed"
9155
9226
  }
9156
9227
  export declare enum DeliveryStatus {
9157
9228
  Pending = "Pending",
@@ -10378,7 +10449,10 @@ export declare enum WebhookEventEventType {
10378
10449
  RegisteredFundTransactionStatus = "RegisteredFundTransactionStatus",
10379
10450
  PreIPOCompanySPVUpdate = "PreIPOCompanySPVUpdate",
10380
10451
  PreIPOCompanySPVDocumentUpdate = "PreIPOCompanySPVDocumentUpdate",
10381
- PreIPOCompanySPVSubscriptionActionDefinitionUpdate = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate"
10452
+ PreIPOCompanySPVSubscriptionActionDefinitionUpdate = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate",
10453
+ ProspectiveOfferingAccessGained = "ProspectiveOfferingAccessGained",
10454
+ ProspectiveOfferingAccessLost = "ProspectiveOfferingAccessLost",
10455
+ IndicationOfInterestClosed = "IndicationOfInterestClosed"
10382
10456
  }
10383
10457
  export interface FileResponse {
10384
10458
  data: Blob;
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);
@@ -11789,8 +11807,17 @@ export class FinancialAdvisor {
11789
11807
  this.firstName = _data["firstName"];
11790
11808
  this.middleName = _data["middleName"];
11791
11809
  this.lastName = _data["lastName"];
11810
+ this.mailingAddress = _data["mailingAddress"];
11811
+ this.mailingCity = _data["mailingCity"];
11812
+ this.mailingState = _data["mailingState"];
11813
+ this.mailingZipCode = _data["mailingZipCode"];
11792
11814
  this.mailingCountryCode = _data["mailingCountryCode"];
11793
11815
  this.branchNumber = _data["branchNumber"];
11816
+ this.phoneCountryCode = _data["phoneCountryCode"];
11817
+ this.phoneNumber = _data["phoneNumber"];
11818
+ this.phoneExtension = _data["phoneExtension"];
11819
+ this.emailAddress = _data["emailAddress"];
11820
+ this.fax = _data["fax"];
11794
11821
  this.prefix = _data["prefix"];
11795
11822
  this.broker = _data["broker"];
11796
11823
  }
@@ -11810,8 +11837,17 @@ export class FinancialAdvisor {
11810
11837
  data["firstName"] = this.firstName;
11811
11838
  data["middleName"] = this.middleName;
11812
11839
  data["lastName"] = this.lastName;
11840
+ data["mailingAddress"] = this.mailingAddress;
11841
+ data["mailingCity"] = this.mailingCity;
11842
+ data["mailingState"] = this.mailingState;
11843
+ data["mailingZipCode"] = this.mailingZipCode;
11813
11844
  data["mailingCountryCode"] = this.mailingCountryCode;
11814
11845
  data["branchNumber"] = this.branchNumber;
11846
+ data["phoneCountryCode"] = this.phoneCountryCode;
11847
+ data["phoneNumber"] = this.phoneNumber;
11848
+ data["phoneExtension"] = this.phoneExtension;
11849
+ data["emailAddress"] = this.emailAddress;
11850
+ data["fax"] = this.fax;
11815
11851
  data["prefix"] = this.prefix;
11816
11852
  data["broker"] = this.broker;
11817
11853
  return data;
@@ -16155,6 +16191,7 @@ export class RegisteredFund {
16155
16191
  this.cik = _data["cik"];
16156
16192
  this.website = _data["website"];
16157
16193
  this.symbol = _data["symbol"];
16194
+ this.isinOrCusip = _data["isinOrCusip"];
16158
16195
  this.logoUrl = _data["logoUrl"];
16159
16196
  this.aum = _data["aum"];
16160
16197
  this.currency = _data["currency"];
@@ -16214,6 +16251,7 @@ export class RegisteredFund {
16214
16251
  data["cik"] = this.cik;
16215
16252
  data["website"] = this.website;
16216
16253
  data["symbol"] = this.symbol;
16254
+ data["isinOrCusip"] = this.isinOrCusip;
16217
16255
  data["logoUrl"] = this.logoUrl;
16218
16256
  data["aum"] = this.aum;
16219
16257
  data["currency"] = this.currency;
@@ -17878,6 +17916,62 @@ export class UpdateWebhook {
17878
17916
  return data;
17879
17917
  }
17880
17918
  }
17919
+ export class ValidationProblemDetails {
17920
+ constructor(data) {
17921
+ if (data) {
17922
+ for (var property in data) {
17923
+ if (data.hasOwnProperty(property))
17924
+ this[property] = data[property];
17925
+ }
17926
+ }
17927
+ }
17928
+ init(_data) {
17929
+ if (_data) {
17930
+ for (var property in _data) {
17931
+ if (_data.hasOwnProperty(property))
17932
+ this[property] = _data[property];
17933
+ }
17934
+ this.type = _data["type"];
17935
+ this.title = _data["title"];
17936
+ this.status = _data["status"];
17937
+ this.detail = _data["detail"];
17938
+ this.instance = _data["instance"];
17939
+ if (_data["errors"]) {
17940
+ this.errors = {};
17941
+ for (let key in _data["errors"]) {
17942
+ if (_data["errors"].hasOwnProperty(key))
17943
+ this.errors[key] = _data["errors"][key] !== undefined ? _data["errors"][key] : [];
17944
+ }
17945
+ }
17946
+ }
17947
+ }
17948
+ static fromJS(data) {
17949
+ data = typeof data === 'object' ? data : {};
17950
+ let result = new ValidationProblemDetails();
17951
+ result.init(data);
17952
+ return result;
17953
+ }
17954
+ toJSON(data) {
17955
+ data = typeof data === 'object' ? data : {};
17956
+ for (var property in this) {
17957
+ if (this.hasOwnProperty(property))
17958
+ data[property] = this[property];
17959
+ }
17960
+ data["type"] = this.type;
17961
+ data["title"] = this.title;
17962
+ data["status"] = this.status;
17963
+ data["detail"] = this.detail;
17964
+ data["instance"] = this.instance;
17965
+ if (this.errors) {
17966
+ data["errors"] = {};
17967
+ for (let key in this.errors) {
17968
+ if (this.errors.hasOwnProperty(key))
17969
+ data["errors"][key] = this.errors[key];
17970
+ }
17971
+ }
17972
+ return data;
17973
+ }
17974
+ }
17881
17975
  /** Watchlist represents a user's subscription to future updates about a given company. */
17882
17976
  export class Watchlist {
17883
17977
  constructor(data) {
@@ -18561,6 +18655,9 @@ export var EventType;
18561
18655
  EventType["PreIPOCompanySPVUpdate"] = "PreIPOCompanySPVUpdate";
18562
18656
  EventType["PreIPOCompanySPVDocumentUpdate"] = "PreIPOCompanySPVDocumentUpdate";
18563
18657
  EventType["PreIPOCompanySPVSubscriptionActionDefinitionUpdate"] = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate";
18658
+ EventType["ProspectiveOfferingAccessGained"] = "ProspectiveOfferingAccessGained";
18659
+ EventType["ProspectiveOfferingAccessLost"] = "ProspectiveOfferingAccessLost";
18660
+ EventType["IndicationOfInterestClosed"] = "IndicationOfInterestClosed";
18564
18661
  })(EventType || (EventType = {}));
18565
18662
  export var DeliveryStatus;
18566
18663
  (function (DeliveryStatus) {
@@ -19903,6 +20000,9 @@ export var WebhookEventEventType;
19903
20000
  WebhookEventEventType["PreIPOCompanySPVUpdate"] = "PreIPOCompanySPVUpdate";
19904
20001
  WebhookEventEventType["PreIPOCompanySPVDocumentUpdate"] = "PreIPOCompanySPVDocumentUpdate";
19905
20002
  WebhookEventEventType["PreIPOCompanySPVSubscriptionActionDefinitionUpdate"] = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate";
20003
+ WebhookEventEventType["ProspectiveOfferingAccessGained"] = "ProspectiveOfferingAccessGained";
20004
+ WebhookEventEventType["ProspectiveOfferingAccessLost"] = "ProspectiveOfferingAccessLost";
20005
+ WebhookEventEventType["IndicationOfInterestClosed"] = "IndicationOfInterestClosed";
19906
20006
  })(WebhookEventEventType || (WebhookEventEventType = {}));
19907
20007
  function formatDate(d) {
19908
20008
  return d.getFullYear() + '-' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monarkmarkets/api-client",
3
- "version": "1.3.53",
3
+ "version": "1.3.55",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",