@monarkmarkets/api-client 1.1.122 → 1.1.124

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
@@ -5,6 +5,12 @@ export declare class Client {
5
5
  constructor(baseUrl?: string, http?: {
6
6
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
7
7
  });
8
+ /**
9
+ * @param body (optional)
10
+ * @return OK
11
+ */
12
+ normalize(body: NormalizeAddressRequest | undefined): Promise<NormalizeAddressResponse>;
13
+ protected processNormalize(response: Response): Promise<NormalizeAddressResponse>;
8
14
  /**
9
15
  * Get a Document by ID.
10
16
  * @param id The Document ID for the document to retrieve.
@@ -522,7 +528,7 @@ export declare class Client {
522
528
  getAllPmiValuations(financialInstitutionId: string, preIPOCompanyId: string | undefined, pmiId: string | undefined, displayName: string | undefined, fromDate: Date | undefined, toDate: Date | undefined, pageNumber: number | undefined, pageSize: number | undefined): Promise<PmiValuationApiResponse>;
523
529
  protected processGetAllPmiValuations(response: Response): Promise<PmiValuationApiResponse>;
524
530
  /**
525
- * Get a PreIPOCompany by Id
531
+ * Get a PreIPOCompany by Id.
526
532
  * @param id ID of the PreIPOCompany to find.
527
533
  * @return Returns the PreIPOCompany with the specified Id.
528
534
  */
@@ -538,19 +544,24 @@ export declare class Client {
538
544
  * @param maxLastValuation (optional) Maximum last valuation filter.
539
545
  * @param minTotalFunding (optional) Minimum total funding filter.
540
546
  * @param maxTotalFunding (optional) Maximum total funding filter.
547
+ * @param listingType (optional) Optional listing status filter.
548
+ * @param isActive (optional) Optional active state filter.
541
549
  * @param page (optional) Which page number to return.
542
550
  * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
543
551
  * @return OK
544
552
  */
545
- preIpoCompany2(searchTerm: string | undefined, searchCategories: string[] | undefined, sortBy: SortBy | undefined, sortOrder: SortOrder7 | undefined, minLastValuation: number | undefined, maxLastValuation: number | undefined, minTotalFunding: number | undefined, maxTotalFunding: number | undefined, page: number | undefined, pageSize: number | undefined): Promise<PreIPOCompanyApiResponse>;
553
+ preIpoCompany2(searchTerm: string | undefined, searchCategories: string[] | undefined, sortBy: SortBy | undefined, sortOrder: SortOrder7 | undefined, minLastValuation: number | undefined, maxLastValuation: number | undefined, minTotalFunding: number | undefined, maxTotalFunding: number | undefined, listingType: string | undefined, isActive: boolean | undefined, page: number | undefined, pageSize: number | undefined): Promise<PreIPOCompanyApiResponse>;
546
554
  protected processPreIpoCompany2(response: Response): Promise<PreIPOCompanyApiResponse>;
547
555
  /**
548
- * @param includes (optional)
549
- * @param page (optional)
550
- * @param pageSize (optional)
556
+ * Get all PreIPOCompanies with extra details.
557
+ * @param includes (optional) List of elements to include in the result.
558
+ * @param listingType (optional) Optional listing status filter.
559
+ * @param isActive (optional) Optional active state filter.
560
+ * @param page (optional) Which page number to return.
561
+ * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
551
562
  * @return OK
552
563
  */
553
- detailed(includes: Includes[] | undefined, page: number | undefined, pageSize: number | undefined): Promise<BulkPreIPOCompanyApiResponse>;
564
+ detailed(includes: Includes[] | undefined, listingType: string | undefined, isActive: boolean | undefined, page: number | undefined, pageSize: number | undefined): Promise<BulkPreIPOCompanyApiResponse>;
554
565
  protected processDetailed(response: Response): Promise<BulkPreIPOCompanyApiResponse>;
555
566
  /**
556
567
  * Get the PreIPOCompanyFundingRound by the specified Id.
@@ -2923,6 +2934,44 @@ export interface INAVReport {
2923
2934
  /** Net Asset Value as of the reported date */
2924
2935
  nav: number;
2925
2936
  }
2937
+ export declare class NormalizeAddressRequest implements INormalizeAddressRequest {
2938
+ street1?: string | undefined;
2939
+ city?: string | undefined;
2940
+ zipCode?: string | undefined;
2941
+ country: string;
2942
+ state?: string | undefined;
2943
+ hint?: string | undefined;
2944
+ constructor(data?: INormalizeAddressRequest);
2945
+ init(_data?: any): void;
2946
+ static fromJS(data: any): NormalizeAddressRequest;
2947
+ toJSON(data?: any): any;
2948
+ }
2949
+ export interface INormalizeAddressRequest {
2950
+ street1?: string | undefined;
2951
+ city?: string | undefined;
2952
+ zipCode?: string | undefined;
2953
+ country: string;
2954
+ state?: string | undefined;
2955
+ hint?: string | undefined;
2956
+ }
2957
+ export declare class NormalizeAddressResponse implements INormalizeAddressResponse {
2958
+ countryCode?: string | undefined;
2959
+ stateCode?: string | undefined;
2960
+ countryName?: string | undefined;
2961
+ stateName?: string | undefined;
2962
+ confidence?: number;
2963
+ constructor(data?: INormalizeAddressResponse);
2964
+ init(_data?: any): void;
2965
+ static fromJS(data: any): NormalizeAddressResponse;
2966
+ toJSON(data?: any): any;
2967
+ }
2968
+ export interface INormalizeAddressResponse {
2969
+ countryCode?: string | undefined;
2970
+ stateCode?: string | undefined;
2971
+ countryName?: string | undefined;
2972
+ stateName?: string | undefined;
2973
+ confidence?: number;
2974
+ }
2926
2975
  /** Represents a 409A valuation (NPM/FMV). */
2927
2976
  export declare class Npm409AValuation implements INpm409AValuation {
2928
2977
  /** Unique identification number for the 409A valuation. */
package/dist/Client.js CHANGED
@@ -12,6 +12,61 @@ export class Client {
12
12
  this.http = http ? http : window;
13
13
  this.baseUrl = baseUrl ?? "";
14
14
  }
15
+ /**
16
+ * @param body (optional)
17
+ * @return OK
18
+ */
19
+ normalize(body) {
20
+ let url_ = this.baseUrl + "/primary/v1/address/normalize";
21
+ url_ = url_.replace(/[?&]$/, "");
22
+ const content_ = JSON.stringify(body);
23
+ let options_ = {
24
+ body: content_,
25
+ method: "POST",
26
+ headers: {
27
+ "Content-Type": "application/json",
28
+ "Accept": "application/json"
29
+ }
30
+ };
31
+ return this.http.fetch(url_, options_).then((_response) => {
32
+ return this.processNormalize(_response);
33
+ });
34
+ }
35
+ processNormalize(response) {
36
+ const status = response.status;
37
+ let _headers = {};
38
+ if (response.headers && response.headers.forEach) {
39
+ response.headers.forEach((v, k) => _headers[k] = v);
40
+ }
41
+ ;
42
+ if (status === 200) {
43
+ return response.text().then((_responseText) => {
44
+ let result200 = null;
45
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
46
+ result200 = NormalizeAddressResponse.fromJS(resultData200);
47
+ return result200;
48
+ });
49
+ }
50
+ else if (status === 400) {
51
+ return response.text().then((_responseText) => {
52
+ let result400 = null;
53
+ let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
54
+ result400 = ProblemDetails.fromJS(resultData400);
55
+ return throwException("Bad Request", status, _responseText, _headers, result400);
56
+ });
57
+ }
58
+ else if (status === 500) {
59
+ return response.text().then((_responseText) => {
60
+ return throwException("Internal Server Error", status, _responseText, _headers);
61
+ });
62
+ }
63
+ else if (status !== 200 && status !== 204) {
64
+ return response.text().then((_responseText) => {
65
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
66
+ });
67
+ }
68
+ return Promise.resolve(null);
69
+ }
15
70
  /**
16
71
  * Get a Document by ID.
17
72
  * @param id The Document ID for the document to retrieve.
@@ -3581,7 +3636,7 @@ export class Client {
3581
3636
  return Promise.resolve(null);
3582
3637
  }
3583
3638
  /**
3584
- * Get a PreIPOCompany by Id
3639
+ * Get a PreIPOCompany by Id.
3585
3640
  * @param id ID of the PreIPOCompany to find.
3586
3641
  * @return Returns the PreIPOCompany with the specified Id.
3587
3642
  */
@@ -3649,11 +3704,13 @@ export class Client {
3649
3704
  * @param maxLastValuation (optional) Maximum last valuation filter.
3650
3705
  * @param minTotalFunding (optional) Minimum total funding filter.
3651
3706
  * @param maxTotalFunding (optional) Maximum total funding filter.
3707
+ * @param listingType (optional) Optional listing status filter.
3708
+ * @param isActive (optional) Optional active state filter.
3652
3709
  * @param page (optional) Which page number to return.
3653
3710
  * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
3654
3711
  * @return OK
3655
3712
  */
3656
- preIpoCompany2(searchTerm, searchCategories, sortBy, sortOrder, minLastValuation, maxLastValuation, minTotalFunding, maxTotalFunding, page, pageSize) {
3713
+ preIpoCompany2(searchTerm, searchCategories, sortBy, sortOrder, minLastValuation, maxLastValuation, minTotalFunding, maxTotalFunding, listingType, isActive, page, pageSize) {
3657
3714
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company?";
3658
3715
  if (searchTerm === null)
3659
3716
  throw new Error("The parameter 'searchTerm' cannot be null.");
@@ -3687,6 +3744,14 @@ export class Client {
3687
3744
  throw new Error("The parameter 'maxTotalFunding' cannot be null.");
3688
3745
  else if (maxTotalFunding !== undefined)
3689
3746
  url_ += "maxTotalFunding=" + encodeURIComponent("" + maxTotalFunding) + "&";
3747
+ if (listingType === null)
3748
+ throw new Error("The parameter 'listingType' cannot be null.");
3749
+ else if (listingType !== undefined)
3750
+ url_ += "listingType=" + encodeURIComponent("" + listingType) + "&";
3751
+ if (isActive === null)
3752
+ throw new Error("The parameter 'isActive' cannot be null.");
3753
+ else if (isActive !== undefined)
3754
+ url_ += "isActive=" + encodeURIComponent("" + isActive) + "&";
3690
3755
  if (page === null)
3691
3756
  throw new Error("The parameter 'page' cannot be null.");
3692
3757
  else if (page !== undefined)
@@ -3745,17 +3810,28 @@ export class Client {
3745
3810
  return Promise.resolve(null);
3746
3811
  }
3747
3812
  /**
3748
- * @param includes (optional)
3749
- * @param page (optional)
3750
- * @param pageSize (optional)
3813
+ * Get all PreIPOCompanies with extra details.
3814
+ * @param includes (optional) List of elements to include in the result.
3815
+ * @param listingType (optional) Optional listing status filter.
3816
+ * @param isActive (optional) Optional active state filter.
3817
+ * @param page (optional) Which page number to return.
3818
+ * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
3751
3819
  * @return OK
3752
3820
  */
3753
- detailed(includes, page, pageSize) {
3821
+ detailed(includes, listingType, isActive, page, pageSize) {
3754
3822
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company/detailed?";
3755
3823
  if (includes === null)
3756
3824
  throw new Error("The parameter 'includes' cannot be null.");
3757
3825
  else if (includes !== undefined)
3758
3826
  includes && includes.forEach(item => { url_ += "includes=" + encodeURIComponent("" + item) + "&"; });
3827
+ if (listingType === null)
3828
+ throw new Error("The parameter 'listingType' cannot be null.");
3829
+ else if (listingType !== undefined)
3830
+ url_ += "listingType=" + encodeURIComponent("" + listingType) + "&";
3831
+ if (isActive === null)
3832
+ throw new Error("The parameter 'isActive' cannot be null.");
3833
+ else if (isActive !== undefined)
3834
+ url_ += "isActive=" + encodeURIComponent("" + isActive) + "&";
3759
3835
  if (page === null)
3760
3836
  throw new Error("The parameter 'page' cannot be null.");
3761
3837
  else if (page !== undefined)
@@ -8153,6 +8229,76 @@ export class NAVReport {
8153
8229
  return data;
8154
8230
  }
8155
8231
  }
8232
+ export class NormalizeAddressRequest {
8233
+ constructor(data) {
8234
+ if (data) {
8235
+ for (var property in data) {
8236
+ if (data.hasOwnProperty(property))
8237
+ this[property] = data[property];
8238
+ }
8239
+ }
8240
+ }
8241
+ init(_data) {
8242
+ if (_data) {
8243
+ this.street1 = _data["street1"];
8244
+ this.city = _data["city"];
8245
+ this.zipCode = _data["zipCode"];
8246
+ this.country = _data["country"];
8247
+ this.state = _data["state"];
8248
+ this.hint = _data["hint"];
8249
+ }
8250
+ }
8251
+ static fromJS(data) {
8252
+ data = typeof data === 'object' ? data : {};
8253
+ let result = new NormalizeAddressRequest();
8254
+ result.init(data);
8255
+ return result;
8256
+ }
8257
+ toJSON(data) {
8258
+ data = typeof data === 'object' ? data : {};
8259
+ data["street1"] = this.street1;
8260
+ data["city"] = this.city;
8261
+ data["zipCode"] = this.zipCode;
8262
+ data["country"] = this.country;
8263
+ data["state"] = this.state;
8264
+ data["hint"] = this.hint;
8265
+ return data;
8266
+ }
8267
+ }
8268
+ export class NormalizeAddressResponse {
8269
+ constructor(data) {
8270
+ if (data) {
8271
+ for (var property in data) {
8272
+ if (data.hasOwnProperty(property))
8273
+ this[property] = data[property];
8274
+ }
8275
+ }
8276
+ }
8277
+ init(_data) {
8278
+ if (_data) {
8279
+ this.countryCode = _data["countryCode"];
8280
+ this.stateCode = _data["stateCode"];
8281
+ this.countryName = _data["countryName"];
8282
+ this.stateName = _data["stateName"];
8283
+ this.confidence = _data["confidence"];
8284
+ }
8285
+ }
8286
+ static fromJS(data) {
8287
+ data = typeof data === 'object' ? data : {};
8288
+ let result = new NormalizeAddressResponse();
8289
+ result.init(data);
8290
+ return result;
8291
+ }
8292
+ toJSON(data) {
8293
+ data = typeof data === 'object' ? data : {};
8294
+ data["countryCode"] = this.countryCode;
8295
+ data["stateCode"] = this.stateCode;
8296
+ data["countryName"] = this.countryName;
8297
+ data["stateName"] = this.stateName;
8298
+ data["confidence"] = this.confidence;
8299
+ return data;
8300
+ }
8301
+ }
8156
8302
  /** Represents a 409A valuation (NPM/FMV). */
8157
8303
  export class Npm409AValuation {
8158
8304
  constructor(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monarkmarkets/api-client",
3
- "version": "1.1.122",
3
+ "version": "1.1.124",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",