@monarkmarkets/api-client 1.2.11 → 1.2.13

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.js CHANGED
@@ -129,13 +129,15 @@ export class Client {
129
129
  * @param registeredFundId (optional) RegisteredFundId to filter by.
130
130
  * @param registeredFundSubscriptionId (optional) RegisteredFundSubscriptionId to filter by.
131
131
  * @param documentType (optional) Type of document to filter by.
132
+ * @param page (optional) Number of the page to retrieve.
133
+ Defaults to 1 if not specified.
134
+ * @param pageSize (optional) Size of the page to retrieve.
135
+ Defaults to 25 if not specified.
132
136
  * @param exactMatch (optional) Only returns the items exactly matching the parameters given.
133
- * @param page (optional) Page number for pagination.
134
- * @param pageSize (optional) Number of items per page for pagination.
135
137
  * @param sortOrder (optional)
136
138
  * @return OK
137
139
  */
138
- document2(investorId, preIPOCompanyId, preIPOCompanySPVId, preIPOCompanyInvestmentId, investorSubscriptionId, registeredFundId, registeredFundSubscriptionId, documentType, exactMatch, page, pageSize, sortOrder) {
140
+ document2(investorId, preIPOCompanyId, preIPOCompanySPVId, preIPOCompanyInvestmentId, investorSubscriptionId, registeredFundId, registeredFundSubscriptionId, documentType, page, pageSize, exactMatch, sortOrder) {
139
141
  let url_ = this.baseUrl + "/primary/v1/document?";
140
142
  if (investorId === null)
141
143
  throw new Error("The parameter 'investorId' cannot be null.");
@@ -169,10 +171,6 @@ export class Client {
169
171
  throw new Error("The parameter 'documentType' cannot be null.");
170
172
  else if (documentType !== undefined)
171
173
  url_ += "documentType=" + encodeURIComponent("" + documentType) + "&";
172
- if (exactMatch === null)
173
- throw new Error("The parameter 'exactMatch' cannot be null.");
174
- else if (exactMatch !== undefined)
175
- url_ += "exactMatch=" + encodeURIComponent("" + exactMatch) + "&";
176
174
  if (page === null)
177
175
  throw new Error("The parameter 'page' cannot be null.");
178
176
  else if (page !== undefined)
@@ -181,6 +179,10 @@ export class Client {
181
179
  throw new Error("The parameter 'pageSize' cannot be null.");
182
180
  else if (pageSize !== undefined)
183
181
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
182
+ if (exactMatch === null)
183
+ throw new Error("The parameter 'exactMatch' cannot be null.");
184
+ else if (exactMatch !== undefined)
185
+ url_ += "exactMatch=" + encodeURIComponent("" + exactMatch) + "&";
184
186
  if (sortOrder === null)
185
187
  throw new Error("The parameter 'sortOrder' cannot be null.");
186
188
  else if (sortOrder !== undefined)
@@ -430,8 +432,10 @@ export class Client {
430
432
  }
431
433
  /**
432
434
  * Get all Financial Advisors for the authenticated partner's financial institutions.
433
- * @param page (optional) The page number for pagination.
434
- * @param pageSize (optional) The number of items per page.
435
+ * @param page (optional) Number of the page to retrieve.
436
+ Defaults to 1 if not specified.
437
+ * @param pageSize (optional) Size of the page to retrieve.
438
+ Defaults to 25 if not specified.
435
439
  * @param sortOrder (optional) The order in which to sort the financial advisors.
436
440
  * @param financialInstitutionId (optional) Optional filter by Financial Institution ID.
437
441
  * @return Returns the list of Financial Advisors.
@@ -591,18 +595,16 @@ export class Client {
591
595
  }
592
596
  /**
593
597
  * Get all Financial Institutions
598
+ * @param page (optional) Number of the page to retrieve.
599
+ Defaults to 1 if not specified.
600
+ * @param pageSize (optional) Size of the page to retrieve.
601
+ Defaults to 25 if not specified.
594
602
  * @param referenceId (optional) Optional reference Id to filter by.
595
- * @param page (optional)
596
- * @param pageSize (optional)
597
603
  * @param sortOrder (optional)
598
604
  * @return OK
599
605
  */
600
- financialInstitution2(referenceId, page, pageSize, sortOrder) {
606
+ financialInstitution2(page, pageSize, referenceId, sortOrder) {
601
607
  let url_ = this.baseUrl + "/primary/v1/financial-institution?";
602
- if (referenceId === null)
603
- throw new Error("The parameter 'referenceId' cannot be null.");
604
- else if (referenceId !== undefined)
605
- url_ += "referenceId=" + encodeURIComponent("" + referenceId) + "&";
606
608
  if (page === null)
607
609
  throw new Error("The parameter 'page' cannot be null.");
608
610
  else if (page !== undefined)
@@ -611,6 +613,10 @@ export class Client {
611
613
  throw new Error("The parameter 'pageSize' cannot be null.");
612
614
  else if (pageSize !== undefined)
613
615
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
616
+ if (referenceId === null)
617
+ throw new Error("The parameter 'referenceId' cannot be null.");
618
+ else if (referenceId !== undefined)
619
+ url_ += "referenceId=" + encodeURIComponent("" + referenceId) + "&";
614
620
  if (sortOrder === null)
615
621
  throw new Error("The parameter 'sortOrder' cannot be null.");
616
622
  else if (sortOrder !== undefined)
@@ -809,13 +815,15 @@ export class Client {
809
815
  * Get all IndicationOfInterests.
810
816
  * @param searchTerm (optional) Optional search term on the PreIPOCompany name.
811
817
  * @param investorId (optional) Filter the returned IndicationOfInterests by an InvestorId.
818
+ * @param page (optional) Number of the page to retrieve.
819
+ Defaults to 1 if not specified.
820
+ * @param pageSize (optional) Size of the page to retrieve.
821
+ Defaults to 25 if not specified.
812
822
  * @param sortProperty (optional) Which property to sort by.
813
823
  * @param sortOrder (optional) Which direction to sort by.
814
- * @param page (optional)
815
- * @param pageSize (optional)
816
824
  * @return Returns the list of IndicationOfInterest.
817
825
  */
818
- indicationOfInterestGET(searchTerm, investorId, sortProperty, sortOrder, page, pageSize) {
826
+ indicationOfInterestGET(searchTerm, investorId, page, pageSize, sortProperty, sortOrder) {
819
827
  let url_ = this.baseUrl + "/primary/v1/indication-of-interest?";
820
828
  if (searchTerm === null)
821
829
  throw new Error("The parameter 'searchTerm' cannot be null.");
@@ -825,14 +833,6 @@ export class Client {
825
833
  throw new Error("The parameter 'investorId' cannot be null.");
826
834
  else if (investorId !== undefined)
827
835
  url_ += "investorId=" + encodeURIComponent("" + investorId) + "&";
828
- if (sortProperty === null)
829
- throw new Error("The parameter 'sortProperty' cannot be null.");
830
- else if (sortProperty !== undefined)
831
- url_ += "sortProperty=" + encodeURIComponent("" + sortProperty) + "&";
832
- if (sortOrder === null)
833
- throw new Error("The parameter 'sortOrder' cannot be null.");
834
- else if (sortOrder !== undefined)
835
- url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
836
836
  if (page === null)
837
837
  throw new Error("The parameter 'page' cannot be null.");
838
838
  else if (page !== undefined)
@@ -841,6 +841,14 @@ export class Client {
841
841
  throw new Error("The parameter 'pageSize' cannot be null.");
842
842
  else if (pageSize !== undefined)
843
843
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
844
+ if (sortProperty === null)
845
+ throw new Error("The parameter 'sortProperty' cannot be null.");
846
+ else if (sortProperty !== undefined)
847
+ url_ += "sortProperty=" + encodeURIComponent("" + sortProperty) + "&";
848
+ if (sortOrder === null)
849
+ throw new Error("The parameter 'sortOrder' cannot be null.");
850
+ else if (sortOrder !== undefined)
851
+ url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
844
852
  url_ = url_.replace(/[?&]$/, "");
845
853
  let options_ = {
846
854
  method: "GET",
@@ -1083,8 +1091,10 @@ export class Client {
1083
1091
  }
1084
1092
  /**
1085
1093
  * Get all Investors.
1086
- * @param page (optional) The page number to retrieve (default is 1).
1087
- * @param pageSize (optional) The number of items per page (default is 25).
1094
+ * @param page (optional) Number of the page to retrieve.
1095
+ Defaults to 1 if not specified.
1096
+ * @param pageSize (optional) Size of the page to retrieve.
1097
+ Defaults to 25 if not specified.
1088
1098
  * @param sortOrder (optional) The sorting order, either ascending or descending (default is descending).
1089
1099
  * @param investorStatus (optional) Optional filter for the status of the investors.
1090
1100
  * @param financialInstitutionId (optional) Optional filter to get by the Financial Institution.
@@ -1606,23 +1616,33 @@ export class Client {
1606
1616
  /**
1607
1617
  * Get all InvestorSubscriptions.
1608
1618
  * @param preIpoCompanySpvId (optional) SPV to filter by.
1619
+ * @param page (optional) Number of the page to retrieve.
1620
+ Defaults to 1 if not specified.
1621
+ * @param pageSize (optional) Size of the page to retrieve.
1622
+ Defaults to 25 if not specified.
1609
1623
  * @param investorId (optional) Optional investorId to filter on.
1610
1624
  * @param status (optional) Optional subscription status to filter on.
1611
1625
  * @param preIPOCompanyName (optional) Optional Company Name to filter on.
1612
1626
  * @param preIPOCompanySPVName (optional) Optional SPV Name to filter on.
1613
1627
  * @param tradingSymbol (optional) Optional Trading Symbol to filter on.
1614
1628
  * @param orderReferenceId (optional)
1615
- * @param page (optional)
1616
- * @param pageSize (optional)
1617
1629
  * @param sortOrder (optional)
1618
1630
  * @return OK
1619
1631
  */
1620
- investorSubscriptionGET(preIpoCompanySpvId, investorId, status, preIPOCompanyName, preIPOCompanySPVName, tradingSymbol, orderReferenceId, page, pageSize, sortOrder) {
1632
+ investorSubscriptionGET(preIpoCompanySpvId, page, pageSize, investorId, status, preIPOCompanyName, preIPOCompanySPVName, tradingSymbol, orderReferenceId, sortOrder) {
1621
1633
  let url_ = this.baseUrl + "/primary/v1/investor-subscription?";
1622
1634
  if (preIpoCompanySpvId === null)
1623
1635
  throw new Error("The parameter 'preIpoCompanySpvId' cannot be null.");
1624
1636
  else if (preIpoCompanySpvId !== undefined)
1625
1637
  url_ += "preIpoCompanySpvId=" + encodeURIComponent("" + preIpoCompanySpvId) + "&";
1638
+ if (page === null)
1639
+ throw new Error("The parameter 'page' cannot be null.");
1640
+ else if (page !== undefined)
1641
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
1642
+ if (pageSize === null)
1643
+ throw new Error("The parameter 'pageSize' cannot be null.");
1644
+ else if (pageSize !== undefined)
1645
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
1626
1646
  if (investorId === null)
1627
1647
  throw new Error("The parameter 'investorId' cannot be null.");
1628
1648
  else if (investorId !== undefined)
@@ -1647,14 +1667,6 @@ export class Client {
1647
1667
  throw new Error("The parameter 'orderReferenceId' cannot be null.");
1648
1668
  else if (orderReferenceId !== undefined)
1649
1669
  url_ += "orderReferenceId=" + encodeURIComponent("" + orderReferenceId) + "&";
1650
- if (page === null)
1651
- throw new Error("The parameter 'page' cannot be null.");
1652
- else if (page !== undefined)
1653
- url_ += "page=" + encodeURIComponent("" + page) + "&";
1654
- if (pageSize === null)
1655
- throw new Error("The parameter 'pageSize' cannot be null.");
1656
- else if (pageSize !== undefined)
1657
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
1658
1670
  if (sortOrder === null)
1659
1671
  throw new Error("The parameter 'sortOrder' cannot be null.");
1660
1672
  else if (sortOrder !== undefined)
@@ -1906,17 +1918,21 @@ export class Client {
1906
1918
  /**
1907
1919
  * Signs an Existing Subscription.
1908
1920
  * @param id ID of subscription to sign.
1921
+ * @param body (optional)
1909
1922
  * @return OK
1910
1923
  */
1911
- sign2(id) {
1924
+ sign2(id, body) {
1912
1925
  let url_ = this.baseUrl + "/primary/v1/investor-subscription/{id}/sign";
1913
1926
  if (id === undefined || id === null)
1914
1927
  throw new Error("The parameter 'id' must be defined.");
1915
1928
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
1916
1929
  url_ = url_.replace(/[?&]$/, "");
1930
+ const content_ = JSON.stringify(body);
1917
1931
  let options_ = {
1932
+ body: content_,
1918
1933
  method: "POST",
1919
1934
  headers: {
1935
+ "Content-Type": "application/json",
1920
1936
  "Accept": "application/json"
1921
1937
  }
1922
1938
  };
@@ -2113,17 +2129,22 @@ export class Client {
2113
2129
  /**
2114
2130
  * Complete an InvestorSubscriptionAction.
2115
2131
  * @param id The ID of the InvestorSubscriptionAction to complete.
2132
+ * @param body (optional)
2116
2133
  * @return No Content
2117
2134
  */
2118
- complete(id) {
2135
+ complete(id, body) {
2119
2136
  let url_ = this.baseUrl + "/primary/v1/investor-subscription-action/{id}/complete";
2120
2137
  if (id === undefined || id === null)
2121
2138
  throw new Error("The parameter 'id' must be defined.");
2122
2139
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2123
2140
  url_ = url_.replace(/[?&]$/, "");
2141
+ const content_ = JSON.stringify(body);
2124
2142
  let options_ = {
2143
+ body: content_,
2125
2144
  method: "PUT",
2126
- headers: {}
2145
+ headers: {
2146
+ "Content-Type": "application/json",
2147
+ }
2127
2148
  };
2128
2149
  return this.http.fetch(url_, options_).then((_response) => {
2129
2150
  return this.processComplete(_response);
@@ -2222,20 +2243,30 @@ export class Client {
2222
2243
  /**
2223
2244
  * Retrieves all NPM 409A valuations for a specific financial institution.
2224
2245
  * @param financialInstitutionId The financial institution ID.
2246
+ * @param page (optional) Number of the page to retrieve.
2247
+ Defaults to 1 if not specified.
2248
+ * @param pageSize (optional) Size of the page to retrieve.
2249
+ Defaults to 25 if not specified.
2225
2250
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
2226
2251
  * @param npmTicker (optional) Optional filter by NPM ticker.
2227
2252
  * @param companyName (optional) Optional filter by company name.
2228
2253
  * @param observationDateFrom (optional) Optional filter by start date.
2229
2254
  * @param observationDateTo (optional) Optional filter by end date.
2230
- * @param pageNumber (optional) Page number for pagination.
2231
- * @param pageSize (optional) Page size for pagination.
2232
2255
  * @return Returns the list of Npm409AValuation.
2233
2256
  */
2234
- getAllNpm409AValuations(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, observationDateFrom, observationDateTo, pageNumber, pageSize) {
2257
+ getAllNpm409AValuations(financialInstitutionId, page, pageSize, preIPOCompanyId, npmTicker, companyName, observationDateFrom, observationDateTo) {
2235
2258
  let url_ = this.baseUrl + "/primary/v1/npm/tape-d-409-a-valuations/financial-institution/{financialInstitutionId}?";
2236
2259
  if (financialInstitutionId === undefined || financialInstitutionId === null)
2237
2260
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
2238
2261
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
2262
+ if (page === null)
2263
+ throw new Error("The parameter 'page' cannot be null.");
2264
+ else if (page !== undefined)
2265
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
2266
+ if (pageSize === null)
2267
+ throw new Error("The parameter 'pageSize' cannot be null.");
2268
+ else if (pageSize !== undefined)
2269
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2239
2270
  if (preIPOCompanyId === null)
2240
2271
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
2241
2272
  else if (preIPOCompanyId !== undefined)
@@ -2256,14 +2287,6 @@ export class Client {
2256
2287
  throw new Error("The parameter 'observationDateTo' cannot be null.");
2257
2288
  else if (observationDateTo !== undefined)
2258
2289
  url_ += "observationDateTo=" + encodeURIComponent(observationDateTo ? "" + observationDateTo.toISOString() : "") + "&";
2259
- if (pageNumber === null)
2260
- throw new Error("The parameter 'pageNumber' cannot be null.");
2261
- else if (pageNumber !== undefined)
2262
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
2263
- if (pageSize === null)
2264
- throw new Error("The parameter 'pageSize' cannot be null.");
2265
- else if (pageSize !== undefined)
2266
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2267
2290
  url_ = url_.replace(/[?&]$/, "");
2268
2291
  let options_ = {
2269
2292
  method: "GET",
@@ -2371,21 +2394,31 @@ export class Client {
2371
2394
  /**
2372
2395
  * Gets all NPM Bid and Offer Level records for a financial institution.
2373
2396
  * @param financialInstitutionId The financial institution ID.
2397
+ * @param page (optional) Number of the page to retrieve.
2398
+ Defaults to 1 if not specified.
2399
+ * @param pageSize (optional) Size of the page to retrieve.
2400
+ Defaults to 25 if not specified.
2374
2401
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
2375
2402
  * @param npmTicker (optional) Optional filter by NPM Ticker.
2376
2403
  * @param companyName (optional) Optional filter by company name.
2377
2404
  * @param orderType (optional) Optional filter by order type (Bid or Offer).
2378
2405
  * @param monthFrom (optional) Optional month from.
2379
2406
  * @param monthTo (optional) Optional month to.
2380
- * @param pageNumber (optional) Pagination page number.
2381
- * @param pageSize (optional) Pagination page size.
2382
2407
  * @return Returns the list of NpmBidAndOfferLevel.
2383
2408
  */
2384
- getAllNpmBidAndOfferLevels(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, orderType, monthFrom, monthTo, pageNumber, pageSize) {
2409
+ getAllNpmBidAndOfferLevels(financialInstitutionId, page, pageSize, preIPOCompanyId, npmTicker, companyName, orderType, monthFrom, monthTo) {
2385
2410
  let url_ = this.baseUrl + "/primary/v1/npm/tape-d-bid-and-offer-levels/financial-institution/{financialInstitutionId}?";
2386
2411
  if (financialInstitutionId === undefined || financialInstitutionId === null)
2387
2412
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
2388
2413
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
2414
+ if (page === null)
2415
+ throw new Error("The parameter 'page' cannot be null.");
2416
+ else if (page !== undefined)
2417
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
2418
+ if (pageSize === null)
2419
+ throw new Error("The parameter 'pageSize' cannot be null.");
2420
+ else if (pageSize !== undefined)
2421
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2389
2422
  if (preIPOCompanyId === null)
2390
2423
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
2391
2424
  else if (preIPOCompanyId !== undefined)
@@ -2410,14 +2443,6 @@ export class Client {
2410
2443
  throw new Error("The parameter 'monthTo' cannot be null.");
2411
2444
  else if (monthTo !== undefined)
2412
2445
  url_ += "monthTo=" + encodeURIComponent(monthTo ? "" + monthTo.toISOString() : "") + "&";
2413
- if (pageNumber === null)
2414
- throw new Error("The parameter 'pageNumber' cannot be null.");
2415
- else if (pageNumber !== undefined)
2416
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
2417
- if (pageSize === null)
2418
- throw new Error("The parameter 'pageSize' cannot be null.");
2419
- else if (pageSize !== undefined)
2420
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2421
2446
  url_ = url_.replace(/[?&]$/, "");
2422
2447
  let options_ = {
2423
2448
  method: "GET",
@@ -2525,20 +2550,30 @@ export class Client {
2525
2550
  /**
2526
2551
  * Gets all NPM Closed Trade Level records for a financial institution.
2527
2552
  * @param financialInstitutionId The financial institution ID.
2553
+ * @param page (optional) Number of the page to retrieve.
2554
+ Defaults to 1 if not specified.
2555
+ * @param pageSize (optional) Size of the page to retrieve.
2556
+ Defaults to 25 if not specified.
2528
2557
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
2529
2558
  * @param npmTicker (optional) Optional filter by NPM Ticker.
2530
2559
  * @param companyName (optional) Optional filter by company name.
2531
2560
  * @param monthFrom (optional) Optional month from.
2532
2561
  * @param monthTo (optional) Optional month to.
2533
- * @param pageNumber (optional) Pagination page number.
2534
- * @param pageSize (optional) Pagination page size.
2535
2562
  * @return Returns the list of NpmClosedTradeLevel.
2536
2563
  */
2537
- getAllNpmClosedTradeLevels(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, monthFrom, monthTo, pageNumber, pageSize) {
2564
+ getAllNpmClosedTradeLevels(financialInstitutionId, page, pageSize, preIPOCompanyId, npmTicker, companyName, monthFrom, monthTo) {
2538
2565
  let url_ = this.baseUrl + "/primary/v1/npm/tape-d-closed-trade-levels/financial-institution/{financialInstitutionId}?";
2539
2566
  if (financialInstitutionId === undefined || financialInstitutionId === null)
2540
2567
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
2541
2568
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
2569
+ if (page === null)
2570
+ throw new Error("The parameter 'page' cannot be null.");
2571
+ else if (page !== undefined)
2572
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
2573
+ if (pageSize === null)
2574
+ throw new Error("The parameter 'pageSize' cannot be null.");
2575
+ else if (pageSize !== undefined)
2576
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2542
2577
  if (preIPOCompanyId === null)
2543
2578
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
2544
2579
  else if (preIPOCompanyId !== undefined)
@@ -2559,14 +2594,6 @@ export class Client {
2559
2594
  throw new Error("The parameter 'monthTo' cannot be null.");
2560
2595
  else if (monthTo !== undefined)
2561
2596
  url_ += "monthTo=" + encodeURIComponent(monthTo ? "" + monthTo.toISOString() : "") + "&";
2562
- if (pageNumber === null)
2563
- throw new Error("The parameter 'pageNumber' cannot be null.");
2564
- else if (pageNumber !== undefined)
2565
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
2566
- if (pageSize === null)
2567
- throw new Error("The parameter 'pageSize' cannot be null.");
2568
- else if (pageSize !== undefined)
2569
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2570
2597
  url_ = url_.replace(/[?&]$/, "");
2571
2598
  let options_ = {
2572
2599
  method: "GET",
@@ -2671,20 +2698,30 @@ export class Client {
2671
2698
  /**
2672
2699
  * Gets all NPM Funding Round records for a financial institution.
2673
2700
  * @param financialInstitutionId The financial institution ID.
2701
+ * @param page (optional) Number of the page to retrieve.
2702
+ Defaults to 1 if not specified.
2703
+ * @param pageSize (optional) Size of the page to retrieve.
2704
+ Defaults to 25 if not specified.
2674
2705
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
2675
2706
  * @param npmTicker (optional) Optional filter by NPM Ticker.
2676
2707
  * @param companyName (optional) Optional filter by company name.
2677
2708
  * @param lastRoundName (optional) Optional filter by Last Round Name.
2678
2709
  * @param lastRoundValuation (optional) Optional filter by Last Round Valuation.
2679
- * @param pageNumber (optional) Pagination page number.
2680
- * @param pageSize (optional) Pagination page size.
2681
2710
  * @return Returns the list of NpmFundingRound.
2682
2711
  */
2683
- getAllNpmFundingRounds(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, lastRoundName, lastRoundValuation, pageNumber, pageSize) {
2712
+ getAllNpmFundingRounds(financialInstitutionId, page, pageSize, preIPOCompanyId, npmTicker, companyName, lastRoundName, lastRoundValuation) {
2684
2713
  let url_ = this.baseUrl + "/primary/v1/npm/tape-d-funding-rounds/financial-institution/{financialInstitutionId}?";
2685
2714
  if (financialInstitutionId === undefined || financialInstitutionId === null)
2686
2715
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
2687
2716
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
2717
+ if (page === null)
2718
+ throw new Error("The parameter 'page' cannot be null.");
2719
+ else if (page !== undefined)
2720
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
2721
+ if (pageSize === null)
2722
+ throw new Error("The parameter 'pageSize' cannot be null.");
2723
+ else if (pageSize !== undefined)
2724
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2688
2725
  if (preIPOCompanyId === null)
2689
2726
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
2690
2727
  else if (preIPOCompanyId !== undefined)
@@ -2705,14 +2742,6 @@ export class Client {
2705
2742
  throw new Error("The parameter 'lastRoundValuation' cannot be null.");
2706
2743
  else if (lastRoundValuation !== undefined)
2707
2744
  url_ += "lastRoundValuation=" + encodeURIComponent("" + lastRoundValuation) + "&";
2708
- if (pageNumber === null)
2709
- throw new Error("The parameter 'pageNumber' cannot be null.");
2710
- else if (pageNumber !== undefined)
2711
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
2712
- if (pageSize === null)
2713
- throw new Error("The parameter 'pageSize' cannot be null.");
2714
- else if (pageSize !== undefined)
2715
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2716
2745
  url_ = url_.replace(/[?&]$/, "");
2717
2746
  let options_ = {
2718
2747
  method: "GET",
@@ -2817,20 +2846,30 @@ export class Client {
2817
2846
  /**
2818
2847
  * Gets all NPM mutual fund marks for a specific financial institution.
2819
2848
  * @param financialInstitutionId The financial institution ID.
2849
+ * @param page (optional) Number of the page to retrieve.
2850
+ Defaults to 1 if not specified.
2851
+ * @param pageSize (optional) Size of the page to retrieve.
2852
+ Defaults to 25 if not specified.
2820
2853
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
2821
2854
  * @param npmTicker (optional) Optional filter by NPM ticker.
2822
2855
  * @param companyName (optional) Optional filter by company name.
2823
2856
  * @param filingDateFrom (optional) Optional filter by filing date from.
2824
2857
  * @param filingDateTo (optional) Optional filter by filing date to.
2825
- * @param pageNumber (optional) Page number for pagination.
2826
- * @param pageSize (optional) Page size for pagination.
2827
2858
  * @return Returns the list of NpmMutualFundMark.
2828
2859
  */
2829
- getAllNpmMutualFundMarks(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, filingDateFrom, filingDateTo, pageNumber, pageSize) {
2860
+ getAllNpmMutualFundMarks(financialInstitutionId, page, pageSize, preIPOCompanyId, npmTicker, companyName, filingDateFrom, filingDateTo) {
2830
2861
  let url_ = this.baseUrl + "/primary/v1/npm/tape-d-mutual-fund-marks/financial-institution/{financialInstitutionId}?";
2831
2862
  if (financialInstitutionId === undefined || financialInstitutionId === null)
2832
2863
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
2833
2864
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
2865
+ if (page === null)
2866
+ throw new Error("The parameter 'page' cannot be null.");
2867
+ else if (page !== undefined)
2868
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
2869
+ if (pageSize === null)
2870
+ throw new Error("The parameter 'pageSize' cannot be null.");
2871
+ else if (pageSize !== undefined)
2872
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2834
2873
  if (preIPOCompanyId === null)
2835
2874
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
2836
2875
  else if (preIPOCompanyId !== undefined)
@@ -2851,14 +2890,6 @@ export class Client {
2851
2890
  throw new Error("The parameter 'filingDateTo' cannot be null.");
2852
2891
  else if (filingDateTo !== undefined)
2853
2892
  url_ += "filingDateTo=" + encodeURIComponent(filingDateTo ? "" + filingDateTo.toISOString() : "") + "&";
2854
- if (pageNumber === null)
2855
- throw new Error("The parameter 'pageNumber' cannot be null.");
2856
- else if (pageNumber !== undefined)
2857
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
2858
- if (pageSize === null)
2859
- throw new Error("The parameter 'pageSize' cannot be null.");
2860
- else if (pageSize !== undefined)
2861
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2862
2893
  url_ = url_.replace(/[?&]$/, "");
2863
2894
  let options_ = {
2864
2895
  method: "GET",
@@ -2971,6 +3002,10 @@ export class Client {
2971
3002
  /**
2972
3003
  * Gets all NPM Tape D Basic records for a specific financial institution.
2973
3004
  * @param financialInstitutionId The financial institution ID.
3005
+ * @param page (optional) Number of the page to retrieve.
3006
+ Defaults to 1 if not specified.
3007
+ * @param pageSize (optional) Size of the page to retrieve.
3008
+ Defaults to 25 if not specified.
2974
3009
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
2975
3010
  * @param npmTicker (optional) Optional filter by NPM ticker.
2976
3011
  * @param companyName (optional) Optional filter by company name.
@@ -2978,15 +3013,21 @@ export class Client {
2978
3013
  * @param impliedValuationLowEstimateMax (optional) Optional maximum filter on low valuation.
2979
3014
  * @param dateFrom (optional) Optional start date filter.
2980
3015
  * @param dateTo (optional) Optional end date filter.
2981
- * @param pageNumber (optional) Pagination page number.
2982
- * @param pageSize (optional) Pagination page size.
2983
3016
  * @return Returns the list of NpmTapeDBasic.
2984
3017
  */
2985
- getAllNpmTapeDBasic(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, impliedValuationHighEstimateMin, impliedValuationLowEstimateMax, dateFrom, dateTo, pageNumber, pageSize) {
3018
+ getAllNpmTapeDBasic(financialInstitutionId, page, pageSize, preIPOCompanyId, npmTicker, companyName, impliedValuationHighEstimateMin, impliedValuationLowEstimateMax, dateFrom, dateTo) {
2986
3019
  let url_ = this.baseUrl + "/primary/v1/npm/tape-d-basic/financial-institution/{financialInstitutionId}?";
2987
3020
  if (financialInstitutionId === undefined || financialInstitutionId === null)
2988
3021
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
2989
3022
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
3023
+ if (page === null)
3024
+ throw new Error("The parameter 'page' cannot be null.");
3025
+ else if (page !== undefined)
3026
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
3027
+ if (pageSize === null)
3028
+ throw new Error("The parameter 'pageSize' cannot be null.");
3029
+ else if (pageSize !== undefined)
3030
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2990
3031
  if (preIPOCompanyId === null)
2991
3032
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
2992
3033
  else if (preIPOCompanyId !== undefined)
@@ -3015,14 +3056,6 @@ export class Client {
3015
3056
  throw new Error("The parameter 'dateTo' cannot be null.");
3016
3057
  else if (dateTo !== undefined)
3017
3058
  url_ += "dateTo=" + encodeURIComponent(dateTo ? "" + dateTo.toISOString() : "") + "&";
3018
- if (pageNumber === null)
3019
- throw new Error("The parameter 'pageNumber' cannot be null.");
3020
- else if (pageNumber !== undefined)
3021
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
3022
- if (pageSize === null)
3023
- throw new Error("The parameter 'pageSize' cannot be null.");
3024
- else if (pageSize !== undefined)
3025
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3026
3059
  url_ = url_.replace(/[?&]$/, "");
3027
3060
  let options_ = {
3028
3061
  method: "GET",
@@ -3130,21 +3163,31 @@ export class Client {
3130
3163
  /**
3131
3164
  * Gets all NPM Tape D Prices Full History records for a specific financial institution.
3132
3165
  * @param financialInstitutionId The financial institution ID.
3166
+ * @param page (optional) Number of the page to retrieve.
3167
+ Defaults to 1 if not specified.
3168
+ * @param pageSize (optional) Size of the page to retrieve.
3169
+ Defaults to 25 if not specified.
3133
3170
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
3134
3171
  * @param npmTicker (optional) Optional filter by NPM ticker.
3135
3172
  * @param companyName (optional) Optional filter by company name.
3136
3173
  * @param lastRoundValuation (optional) Optional valuation of Company at Last Round.
3137
3174
  * @param dateOfPricingFrom (optional) Optional filter by date of pricing from.
3138
3175
  * @param dateOfPricingTo (optional) Optional filter by date of pricing to.
3139
- * @param pageNumber (optional) Page number for pagination.
3140
- * @param pageSize (optional) Page size for pagination.
3141
3176
  * @return Returns the list of NpmTapeDPricesFullHistory.
3142
3177
  */
3143
- getAllNpmTapeDPricesFullHistory(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, lastRoundValuation, dateOfPricingFrom, dateOfPricingTo, pageNumber, pageSize) {
3178
+ getAllNpmTapeDPricesFullHistory(financialInstitutionId, page, pageSize, preIPOCompanyId, npmTicker, companyName, lastRoundValuation, dateOfPricingFrom, dateOfPricingTo) {
3144
3179
  let url_ = this.baseUrl + "/primary/v1/npm/tape-d-prices-full-history/financial-institution/{financialInstitutionId}?";
3145
3180
  if (financialInstitutionId === undefined || financialInstitutionId === null)
3146
3181
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
3147
3182
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
3183
+ if (page === null)
3184
+ throw new Error("The parameter 'page' cannot be null.");
3185
+ else if (page !== undefined)
3186
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
3187
+ if (pageSize === null)
3188
+ throw new Error("The parameter 'pageSize' cannot be null.");
3189
+ else if (pageSize !== undefined)
3190
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3148
3191
  if (preIPOCompanyId === null)
3149
3192
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
3150
3193
  else if (preIPOCompanyId !== undefined)
@@ -3169,14 +3212,6 @@ export class Client {
3169
3212
  throw new Error("The parameter 'dateOfPricingTo' cannot be null.");
3170
3213
  else if (dateOfPricingTo !== undefined)
3171
3214
  url_ += "dateOfPricingTo=" + encodeURIComponent(dateOfPricingTo ? "" + dateOfPricingTo.toISOString() : "") + "&";
3172
- if (pageNumber === null)
3173
- throw new Error("The parameter 'pageNumber' cannot be null.");
3174
- else if (pageNumber !== undefined)
3175
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
3176
- if (pageSize === null)
3177
- throw new Error("The parameter 'pageSize' cannot be null.");
3178
- else if (pageSize !== undefined)
3179
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3180
3215
  url_ = url_.replace(/[?&]$/, "");
3181
3216
  let options_ = {
3182
3217
  method: "GET",
@@ -3391,21 +3426,31 @@ export class Client {
3391
3426
  /**
3392
3427
  * Gets all PMI feed pricing records with optional filtering.
3393
3428
  * @param financialInstitutionId The financial institution ID.
3429
+ * @param page (optional) Number of the page to retrieve.
3430
+ Defaults to 1 if not specified.
3431
+ * @param pageSize (optional) Size of the page to retrieve.
3432
+ Defaults to 25 if not specified.
3394
3433
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
3395
3434
  * @param pmiId (optional) Optional filter by PMI Id.
3396
3435
  * @param displayName (optional) Optional filter by Display Name.
3397
3436
  * @param currency (optional) Optional filter by Currency (e.g., USD, EUR).
3398
3437
  * @param fromDate (optional) Optional filter by minimum date (YYYY-MM-DD).
3399
3438
  * @param toDate (optional) Optional filter by maximum date (YYYY-MM-DD).
3400
- * @param pageNumber (optional) Pagination page number.
3401
- * @param pageSize (optional) Pagination page size.
3402
3439
  * @return Returns the list of PmiFeedPricing.
3403
3440
  */
3404
- getAllPmiFeedPricing(financialInstitutionId, preIPOCompanyId, pmiId, displayName, currency, fromDate, toDate, pageNumber, pageSize) {
3441
+ getAllPmiFeedPricing(financialInstitutionId, page, pageSize, preIPOCompanyId, pmiId, displayName, currency, fromDate, toDate) {
3405
3442
  let url_ = this.baseUrl + "/primary/v1/pmi/feed-pricing/financial-institution/{financialInstitutionId}?";
3406
3443
  if (financialInstitutionId === undefined || financialInstitutionId === null)
3407
3444
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
3408
3445
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
3446
+ if (page === null)
3447
+ throw new Error("The parameter 'page' cannot be null.");
3448
+ else if (page !== undefined)
3449
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
3450
+ if (pageSize === null)
3451
+ throw new Error("The parameter 'pageSize' cannot be null.");
3452
+ else if (pageSize !== undefined)
3453
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3409
3454
  if (preIPOCompanyId === null)
3410
3455
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
3411
3456
  else if (preIPOCompanyId !== undefined)
@@ -3430,14 +3475,6 @@ export class Client {
3430
3475
  throw new Error("The parameter 'toDate' cannot be null.");
3431
3476
  else if (toDate !== undefined)
3432
3477
  url_ += "toDate=" + encodeURIComponent(toDate ? "" + toDate.toISOString() : "") + "&";
3433
- if (pageNumber === null)
3434
- throw new Error("The parameter 'pageNumber' cannot be null.");
3435
- else if (pageNumber !== undefined)
3436
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
3437
- if (pageSize === null)
3438
- throw new Error("The parameter 'pageSize' cannot be null.");
3439
- else if (pageSize !== undefined)
3440
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3441
3478
  url_ = url_.replace(/[?&]$/, "");
3442
3479
  let options_ = {
3443
3480
  method: "GET",
@@ -3542,18 +3579,28 @@ export class Client {
3542
3579
  /**
3543
3580
  * Gets all PMI issuer records with optional filtering.
3544
3581
  * @param financialInstitutionId The financial institution ID.
3582
+ * @param page (optional) Number of the page to retrieve.
3583
+ Defaults to 1 if not specified.
3584
+ * @param pageSize (optional) Size of the page to retrieve.
3585
+ Defaults to 25 if not specified.
3545
3586
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
3546
3587
  * @param infoId (optional) Optional filter by PMI Id.
3547
3588
  * @param infoDisplayName (optional) Optional filter by Display Name.
3548
- * @param pageNumber (optional) Pagination page number.
3549
- * @param pageSize (optional) Pagination page size.
3550
3589
  * @return Returns the list of PmiIssuer.
3551
3590
  */
3552
- getAllPmiIssuers(financialInstitutionId, preIPOCompanyId, infoId, infoDisplayName, pageNumber, pageSize) {
3591
+ getAllPmiIssuers(financialInstitutionId, page, pageSize, preIPOCompanyId, infoId, infoDisplayName) {
3553
3592
  let url_ = this.baseUrl + "/primary/v1/pmi/issuers/financial-institution/{financialInstitutionId}?";
3554
3593
  if (financialInstitutionId === undefined || financialInstitutionId === null)
3555
3594
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
3556
3595
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
3596
+ if (page === null)
3597
+ throw new Error("The parameter 'page' cannot be null.");
3598
+ else if (page !== undefined)
3599
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
3600
+ if (pageSize === null)
3601
+ throw new Error("The parameter 'pageSize' cannot be null.");
3602
+ else if (pageSize !== undefined)
3603
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3557
3604
  if (preIPOCompanyId === null)
3558
3605
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
3559
3606
  else if (preIPOCompanyId !== undefined)
@@ -3566,14 +3613,6 @@ export class Client {
3566
3613
  throw new Error("The parameter 'infoDisplayName' cannot be null.");
3567
3614
  else if (infoDisplayName !== undefined)
3568
3615
  url_ += "infoDisplayName=" + encodeURIComponent("" + infoDisplayName) + "&";
3569
- if (pageNumber === null)
3570
- throw new Error("The parameter 'pageNumber' cannot be null.");
3571
- else if (pageNumber !== undefined)
3572
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
3573
- if (pageSize === null)
3574
- throw new Error("The parameter 'pageSize' cannot be null.");
3575
- else if (pageSize !== undefined)
3576
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3577
3616
  url_ = url_.replace(/[?&]$/, "");
3578
3617
  let options_ = {
3579
3618
  method: "GET",
@@ -3678,20 +3717,30 @@ export class Client {
3678
3717
  /**
3679
3718
  * Gets all PMI valuation records with optional filtering.
3680
3719
  * @param financialInstitutionId The financial institution ID.
3720
+ * @param page (optional) Number of the page to retrieve.
3721
+ Defaults to 1 if not specified.
3722
+ * @param pageSize (optional) Size of the page to retrieve.
3723
+ Defaults to 25 if not specified.
3681
3724
  * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
3682
3725
  * @param pmiId (optional) Optional filter by PMI Id.
3683
3726
  * @param displayName (optional) Optional filter by Display Name.
3684
3727
  * @param fromDate (optional) Optional filter by minimum date (YYYY-MM-DD).
3685
3728
  * @param toDate (optional) Optional filter by maximum date (YYYY-MM-DD).
3686
- * @param pageNumber (optional) Pagination page number.
3687
- * @param pageSize (optional) Pagination page size.
3688
3729
  * @return Returns the list of PmiValuation.
3689
3730
  */
3690
- getAllPmiValuations(financialInstitutionId, preIPOCompanyId, pmiId, displayName, fromDate, toDate, pageNumber, pageSize) {
3731
+ getAllPmiValuations(financialInstitutionId, page, pageSize, preIPOCompanyId, pmiId, displayName, fromDate, toDate) {
3691
3732
  let url_ = this.baseUrl + "/primary/v1/pmi/valuations/financial-institution/{financialInstitutionId}?";
3692
3733
  if (financialInstitutionId === undefined || financialInstitutionId === null)
3693
3734
  throw new Error("The parameter 'financialInstitutionId' must be defined.");
3694
3735
  url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
3736
+ if (page === null)
3737
+ throw new Error("The parameter 'page' cannot be null.");
3738
+ else if (page !== undefined)
3739
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
3740
+ if (pageSize === null)
3741
+ throw new Error("The parameter 'pageSize' cannot be null.");
3742
+ else if (pageSize !== undefined)
3743
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3695
3744
  if (preIPOCompanyId === null)
3696
3745
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
3697
3746
  else if (preIPOCompanyId !== undefined)
@@ -3712,14 +3761,6 @@ export class Client {
3712
3761
  throw new Error("The parameter 'toDate' cannot be null.");
3713
3762
  else if (toDate !== undefined)
3714
3763
  url_ += "toDate=" + encodeURIComponent(toDate ? "" + toDate.toISOString() : "") + "&";
3715
- if (pageNumber === null)
3716
- throw new Error("The parameter 'pageNumber' cannot be null.");
3717
- else if (pageNumber !== undefined)
3718
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
3719
- if (pageSize === null)
3720
- throw new Error("The parameter 'pageSize' cannot be null.");
3721
- else if (pageSize !== undefined)
3722
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3723
3764
  url_ = url_.replace(/[?&]$/, "");
3724
3765
  let options_ = {
3725
3766
  method: "GET",
@@ -3819,6 +3860,10 @@ export class Client {
3819
3860
  }
3820
3861
  /**
3821
3862
  * Get all PreIPOCompanies.
3863
+ * @param page (optional) Number of the page to retrieve.
3864
+ Defaults to 1 if not specified.
3865
+ * @param pageSize (optional) Size of the page to retrieve.
3866
+ Defaults to 25 if not specified.
3822
3867
  * @param searchTerm (optional) Search term to filter results on based on 'Name' field
3823
3868
  * @param searchCategories (optional) List of categories to filter by.
3824
3869
  * @param sortBy (optional) Which property to sort the companies by.
@@ -3829,12 +3874,18 @@ export class Client {
3829
3874
  * @param maxTotalFunding (optional) Maximum total funding filter.
3830
3875
  * @param listingType (optional) Optional listing status filter.
3831
3876
  * @param isActive (optional) Optional active state filter.
3832
- * @param page (optional) Which page number to return.
3833
- * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
3834
3877
  * @return OK
3835
3878
  */
3836
- preIpoCompany2(searchTerm, searchCategories, sortBy, sortOrder, minLastValuation, maxLastValuation, minTotalFunding, maxTotalFunding, listingType, isActive, page, pageSize) {
3879
+ preIpoCompany2(page, pageSize, searchTerm, searchCategories, sortBy, sortOrder, minLastValuation, maxLastValuation, minTotalFunding, maxTotalFunding, listingType, isActive) {
3837
3880
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company?";
3881
+ if (page === null)
3882
+ throw new Error("The parameter 'page' cannot be null.");
3883
+ else if (page !== undefined)
3884
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
3885
+ if (pageSize === null)
3886
+ throw new Error("The parameter 'pageSize' cannot be null.");
3887
+ else if (pageSize !== undefined)
3888
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3838
3889
  if (searchTerm === null)
3839
3890
  throw new Error("The parameter 'searchTerm' cannot be null.");
3840
3891
  else if (searchTerm !== undefined)
@@ -3875,14 +3926,6 @@ export class Client {
3875
3926
  throw new Error("The parameter 'isActive' cannot be null.");
3876
3927
  else if (isActive !== undefined)
3877
3928
  url_ += "isActive=" + encodeURIComponent("" + isActive) + "&";
3878
- if (page === null)
3879
- throw new Error("The parameter 'page' cannot be null.");
3880
- else if (page !== undefined)
3881
- url_ += "page=" + encodeURIComponent("" + page) + "&";
3882
- if (pageSize === null)
3883
- throw new Error("The parameter 'pageSize' cannot be null.");
3884
- else if (pageSize !== undefined)
3885
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3886
3929
  url_ = url_.replace(/[?&]$/, "");
3887
3930
  let options_ = {
3888
3931
  method: "GET",
@@ -3936,14 +3979,16 @@ export class Client {
3936
3979
  * Bulk Download all PreIPOCompanies.
3937
3980
  * @param filterId (optional) Optional filter ID to narrow down the PreIPOCompanies.
3938
3981
  * @param filterBy (optional) Optional filter type to categorize the PreIPOCompanies (e.g., Company, Investment, Spv).
3982
+ * @param page (optional) Number of the page to retrieve.
3983
+ Defaults to 1 if not specified.
3984
+ * @param pageSize (optional) Size of the page to retrieve.
3985
+ Defaults to 25 if not specified.
3939
3986
  * @param includes (optional) Optional list of additional data to include with the response (e.g., News, Research, Investments).
3940
3987
  * @param listingType (optional) Optional listing status filter.
3941
3988
  * @param isActive (optional) Optional active state filter.
3942
- * @param page (optional) Page number for pagination, starting from 1.
3943
- * @param pageSize (optional) Number of items per page for pagination, Default = 25.
3944
3989
  * @return Returns the filtered and paginated list of detailed PreIPOCompanies.
3945
3990
  */
3946
- detailed(filterId, filterBy, includes, listingType, isActive, page, pageSize) {
3991
+ detailed(filterId, filterBy, page, pageSize, includes, listingType, isActive) {
3947
3992
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company/detailed?";
3948
3993
  if (filterId === null)
3949
3994
  throw new Error("The parameter 'filterId' cannot be null.");
@@ -3953,6 +3998,14 @@ export class Client {
3953
3998
  throw new Error("The parameter 'filterBy' cannot be null.");
3954
3999
  else if (filterBy !== undefined)
3955
4000
  url_ += "filterBy=" + encodeURIComponent("" + filterBy) + "&";
4001
+ if (page === null)
4002
+ throw new Error("The parameter 'page' cannot be null.");
4003
+ else if (page !== undefined)
4004
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
4005
+ if (pageSize === null)
4006
+ throw new Error("The parameter 'pageSize' cannot be null.");
4007
+ else if (pageSize !== undefined)
4008
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3956
4009
  if (includes === null)
3957
4010
  throw new Error("The parameter 'includes' cannot be null.");
3958
4011
  else if (includes !== undefined)
@@ -3965,14 +4018,6 @@ export class Client {
3965
4018
  throw new Error("The parameter 'isActive' cannot be null.");
3966
4019
  else if (isActive !== undefined)
3967
4020
  url_ += "isActive=" + encodeURIComponent("" + isActive) + "&";
3968
- if (page === null)
3969
- throw new Error("The parameter 'page' cannot be null.");
3970
- else if (page !== undefined)
3971
- url_ += "page=" + encodeURIComponent("" + page) + "&";
3972
- if (pageSize === null)
3973
- throw new Error("The parameter 'pageSize' cannot be null.");
3974
- else if (pageSize !== undefined)
3975
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3976
4021
  url_ = url_.replace(/[?&]$/, "");
3977
4022
  let options_ = {
3978
4023
  method: "GET",
@@ -4083,15 +4128,25 @@ export class Client {
4083
4128
  }
4084
4129
  /**
4085
4130
  * Get all PreIPOCompanyFundingRounds.
4131
+ * @param page (optional) Number of the page to retrieve.
4132
+ Defaults to 1 if not specified.
4133
+ * @param pageSize (optional) Size of the page to retrieve.
4134
+ Defaults to 25 if not specified.
4086
4135
  * @param preIPOCompanyId (optional) The PreIPOCompanyId to retrieve the news for.
4087
4136
  * @param searchTerm (optional) Search term to filter results on based on 'RoundName' field.
4088
4137
  * @param sortOrder (optional)
4089
- * @param page (optional) Which page number to return.
4090
- * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
4091
4138
  * @return OK
4092
4139
  */
4093
- preIpoCompanyFundingRound2(preIPOCompanyId, searchTerm, sortOrder, page, pageSize) {
4140
+ preIpoCompanyFundingRound2(page, pageSize, preIPOCompanyId, searchTerm, sortOrder) {
4094
4141
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-funding-round?";
4142
+ if (page === null)
4143
+ throw new Error("The parameter 'page' cannot be null.");
4144
+ else if (page !== undefined)
4145
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
4146
+ if (pageSize === null)
4147
+ throw new Error("The parameter 'pageSize' cannot be null.");
4148
+ else if (pageSize !== undefined)
4149
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4095
4150
  if (preIPOCompanyId === null)
4096
4151
  throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
4097
4152
  else if (preIPOCompanyId !== undefined)
@@ -4104,14 +4159,6 @@ export class Client {
4104
4159
  throw new Error("The parameter 'sortOrder' cannot be null.");
4105
4160
  else if (sortOrder !== undefined)
4106
4161
  url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
4107
- if (page === null)
4108
- throw new Error("The parameter 'page' cannot be null.");
4109
- else if (page !== undefined)
4110
- url_ += "page=" + encodeURIComponent("" + page) + "&";
4111
- if (pageSize === null)
4112
- throw new Error("The parameter 'pageSize' cannot be null.");
4113
- else if (pageSize !== undefined)
4114
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4115
4162
  url_ = url_.replace(/[?&]$/, "");
4116
4163
  let options_ = {
4117
4164
  method: "GET",
@@ -4228,13 +4275,15 @@ export class Client {
4228
4275
  * Get all PreIPOCompanyInvestments
4229
4276
  * @param investorId The investorId making the request
4230
4277
  * @param nameFilter (optional) Company name to filter by.
4278
+ * @param page (optional) Number of the page to retrieve.
4279
+ Defaults to 1 if not specified.
4280
+ * @param pageSize (optional) Size of the page to retrieve.
4281
+ Defaults to 25 if not specified.
4231
4282
  * @param preIpoCompanyId (optional) Company Id to filter by.
4232
- * @param page (optional) Page number to return.
4233
- * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
4234
4283
  * @param sortOrder (optional)
4235
4284
  * @return OK
4236
4285
  */
4237
- investorGET4(investorId, nameFilter, preIpoCompanyId, page, pageSize, sortOrder) {
4286
+ investorGET4(investorId, nameFilter, page, pageSize, preIpoCompanyId, sortOrder) {
4238
4287
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-investment/investor/{investorId}?";
4239
4288
  if (investorId === undefined || investorId === null)
4240
4289
  throw new Error("The parameter 'investorId' must be defined.");
@@ -4243,10 +4292,6 @@ export class Client {
4243
4292
  throw new Error("The parameter 'nameFilter' cannot be null.");
4244
4293
  else if (nameFilter !== undefined)
4245
4294
  url_ += "nameFilter=" + encodeURIComponent("" + nameFilter) + "&";
4246
- if (preIpoCompanyId === null)
4247
- throw new Error("The parameter 'preIpoCompanyId' cannot be null.");
4248
- else if (preIpoCompanyId !== undefined)
4249
- url_ += "preIpoCompanyId=" + encodeURIComponent("" + preIpoCompanyId) + "&";
4250
4295
  if (page === null)
4251
4296
  throw new Error("The parameter 'page' cannot be null.");
4252
4297
  else if (page !== undefined)
@@ -4255,6 +4300,10 @@ export class Client {
4255
4300
  throw new Error("The parameter 'pageSize' cannot be null.");
4256
4301
  else if (pageSize !== undefined)
4257
4302
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4303
+ if (preIpoCompanyId === null)
4304
+ throw new Error("The parameter 'preIpoCompanyId' cannot be null.");
4305
+ else if (preIpoCompanyId !== undefined)
4306
+ url_ += "preIpoCompanyId=" + encodeURIComponent("" + preIpoCompanyId) + "&";
4258
4307
  if (sortOrder === null)
4259
4308
  throw new Error("The parameter 'sortOrder' cannot be null.");
4260
4309
  else if (sortOrder !== undefined)
@@ -4370,22 +4419,20 @@ export class Client {
4370
4419
  /**
4371
4420
  * Get all PreIPOCompanyNews.
4372
4421
  * @param searchTerm (optional) Search term to filter results on based on 'Headline' field.
4422
+ * @param page (optional) Number of the page to retrieve.
4423
+ Defaults to 1 if not specified.
4424
+ * @param pageSize (optional) Size of the page to retrieve.
4425
+ Defaults to 25 if not specified.
4373
4426
  * @param preIPOCompanyId (optional) The PreIPOCompanyId to retrieve the news for.
4374
- * @param page (optional) Which page number to return.
4375
- * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
4376
4427
  * @param sortOrder (optional)
4377
4428
  * @return OK
4378
4429
  */
4379
- preIpoCompanyNews2(searchTerm, preIPOCompanyId, page, pageSize, sortOrder) {
4430
+ preIpoCompanyNews2(searchTerm, page, pageSize, preIPOCompanyId, sortOrder) {
4380
4431
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-news?";
4381
4432
  if (searchTerm === null)
4382
4433
  throw new Error("The parameter 'searchTerm' cannot be null.");
4383
4434
  else if (searchTerm !== undefined)
4384
4435
  url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
4385
- if (preIPOCompanyId === null)
4386
- throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
4387
- else if (preIPOCompanyId !== undefined)
4388
- url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
4389
4436
  if (page === null)
4390
4437
  throw new Error("The parameter 'page' cannot be null.");
4391
4438
  else if (page !== undefined)
@@ -4394,6 +4441,10 @@ export class Client {
4394
4441
  throw new Error("The parameter 'pageSize' cannot be null.");
4395
4442
  else if (pageSize !== undefined)
4396
4443
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4444
+ if (preIPOCompanyId === null)
4445
+ throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
4446
+ else if (preIPOCompanyId !== undefined)
4447
+ url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
4397
4448
  if (sortOrder === null)
4398
4449
  throw new Error("The parameter 'sortOrder' cannot be null.");
4399
4450
  else if (sortOrder !== undefined)
@@ -4508,25 +4559,19 @@ export class Client {
4508
4559
  }
4509
4560
  /**
4510
4561
  * Get all PreIPOCompanyResearch.
4562
+ * @param page (optional) Number of the page to retrieve.
4563
+ Defaults to 1 if not specified.
4564
+ * @param pageSize (optional) Size of the page to retrieve.
4565
+ Defaults to 25 if not specified.
4511
4566
  * @param searchTerm (optional) Search term to filter results on based on 'Title' field.
4512
4567
  * @param preIPOCompanyId (optional)
4513
- * @param page (optional) Which page number to return.
4514
- * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
4515
4568
  * @param sortOrder (optional)
4516
4569
  * @param researchType (optional)
4517
4570
  * @param relation (optional)
4518
4571
  * @return OK
4519
4572
  */
4520
- preIpoCompanyResearch2(searchTerm, preIPOCompanyId, page, pageSize, sortOrder, researchType, relation) {
4573
+ preIpoCompanyResearch2(page, pageSize, searchTerm, preIPOCompanyId, sortOrder, researchType, relation) {
4521
4574
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-research?";
4522
- if (searchTerm === null)
4523
- throw new Error("The parameter 'searchTerm' cannot be null.");
4524
- else if (searchTerm !== undefined)
4525
- url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
4526
- if (preIPOCompanyId === null)
4527
- throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
4528
- else if (preIPOCompanyId !== undefined)
4529
- url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
4530
4575
  if (page === null)
4531
4576
  throw new Error("The parameter 'page' cannot be null.");
4532
4577
  else if (page !== undefined)
@@ -4535,6 +4580,14 @@ export class Client {
4535
4580
  throw new Error("The parameter 'pageSize' cannot be null.");
4536
4581
  else if (pageSize !== undefined)
4537
4582
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4583
+ if (searchTerm === null)
4584
+ throw new Error("The parameter 'searchTerm' cannot be null.");
4585
+ else if (searchTerm !== undefined)
4586
+ url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
4587
+ if (preIPOCompanyId === null)
4588
+ throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
4589
+ else if (preIPOCompanyId !== undefined)
4590
+ url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
4538
4591
  if (sortOrder === null)
4539
4592
  throw new Error("The parameter 'sortOrder' cannot be null.");
4540
4593
  else if (sortOrder !== undefined)
@@ -4679,8 +4732,10 @@ export class Client {
4679
4732
  * @param nameFilter (optional) Optional param to filter returned spv's based on the company name.
4680
4733
  * @param preIPOCompanyId (optional) Optional param to only return spv's for the preIPOCompany.
4681
4734
  * @param preIPOCompanyInvestmentId (optional) Optional param to only return spv's for the preIPOCompanyInvestment.
4682
- * @param page (optional) Which page number to return.
4683
- * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
4735
+ * @param page (optional) Number of the page to retrieve.
4736
+ Defaults to 1 if not specified.
4737
+ * @param pageSize (optional) Size of the page to retrieve.
4738
+ Defaults to 25 if not specified.
4684
4739
  * @param sortOrder (optional)
4685
4740
  * @param sortBy (optional)
4686
4741
  * @return OK
@@ -4777,16 +4832,18 @@ export class Client {
4777
4832
  }
4778
4833
  /**
4779
4834
  * Gets all SPVs that have been approved.
4780
- * @param pageNumber (optional) Page number for pagination.
4781
- * @param pageSize (optional) Page size for pagination.
4835
+ * @param page (optional) Number of the page to retrieve.
4836
+ Defaults to 1 if not specified.
4837
+ * @param pageSize (optional) Size of the page to retrieve.
4838
+ Defaults to 25 if not specified.
4782
4839
  * @return Returns the list of approved SPVs.
4783
4840
  */
4784
- spvs(pageNumber, pageSize) {
4841
+ spvs(page, pageSize) {
4785
4842
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/partner/spvs?";
4786
- if (pageNumber === null)
4787
- throw new Error("The parameter 'pageNumber' cannot be null.");
4788
- else if (pageNumber !== undefined)
4789
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
4843
+ if (page === null)
4844
+ throw new Error("The parameter 'page' cannot be null.");
4845
+ else if (page !== undefined)
4846
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
4790
4847
  if (pageSize === null)
4791
4848
  throw new Error("The parameter 'pageSize' cannot be null.");
4792
4849
  else if (pageSize !== undefined)
@@ -5049,17 +5106,19 @@ export class Client {
5049
5106
  }
5050
5107
  /**
5051
5108
  * Gets all approval records with optional filtering.
5052
- * @param pageNumber (optional) Page number for pagination.
5053
- * @param pageSize (optional) Page size for pagination.
5109
+ * @param page (optional) Number of the page to retrieve.
5110
+ Defaults to 1 if not specified.
5111
+ * @param pageSize (optional) Size of the page to retrieve.
5112
+ Defaults to 25 if not specified.
5054
5113
  * @param sortOrder (optional) Sort order for results.
5055
5114
  * @return Returns the list of approval records.
5056
5115
  */
5057
- preIpoCompanySpvPartnerApproval2(pageNumber, pageSize, sortOrder) {
5116
+ preIpoCompanySpvPartnerApproval2(page, pageSize, sortOrder) {
5058
5117
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval?";
5059
- if (pageNumber === null)
5060
- throw new Error("The parameter 'pageNumber' cannot be null.");
5061
- else if (pageNumber !== undefined)
5062
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
5118
+ if (page === null)
5119
+ throw new Error("The parameter 'page' cannot be null.");
5120
+ else if (page !== undefined)
5121
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
5063
5122
  if (pageSize === null)
5064
5123
  throw new Error("The parameter 'pageSize' cannot be null.");
5065
5124
  else if (pageSize !== undefined)
@@ -5211,8 +5270,10 @@ export class Client {
5211
5270
  }
5212
5271
  /**
5213
5272
  * Get all Questionnaires
5214
- * @param page (optional)
5215
- * @param pageSize (optional)
5273
+ * @param page (optional) Number of the page to retrieve.
5274
+ Defaults to 1 if not specified.
5275
+ * @param pageSize (optional) Size of the page to retrieve.
5276
+ Defaults to 25 if not specified.
5216
5277
  * @param sortOrder (optional)
5217
5278
  * @return Returns the list of Questionnaires.
5218
5279
  */
@@ -5429,8 +5490,10 @@ export class Client {
5429
5490
  * Get all QuestionnaireAnswers.
5430
5491
  * @param investorId (optional) Optional filter by Investor ID.
5431
5492
  * @param questionnaireId (optional) Optional filter by Questionnaire ID.
5432
- * @param page (optional)
5433
- * @param pageSize (optional)
5493
+ * @param page (optional) Number of the page to retrieve.
5494
+ Defaults to 1 if not specified.
5495
+ * @param pageSize (optional) Size of the page to retrieve.
5496
+ Defaults to 25 if not specified.
5434
5497
  * @param sortOrder (optional)
5435
5498
  * @return Returns the list of Questionnaire.
5436
5499
  */
@@ -5598,22 +5661,16 @@ export class Client {
5598
5661
  }
5599
5662
  /**
5600
5663
  * Get all RegisteredFunds
5664
+ * @param page (optional) Number of the page to retrieve.
5665
+ Defaults to 1 if not specified.
5666
+ * @param pageSize (optional) Size of the page to retrieve.
5667
+ Defaults to 25 if not specified.
5601
5668
  * @param searchTerm (optional) Search term to filter results on based on 'Name' field
5602
5669
  * @param sortOrder (optional) Which way to sort order, defaults to Descending.
5603
- * @param page (optional) Which page number to return.
5604
- * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
5605
5670
  * @return OK
5606
5671
  */
5607
- registeredFund2(searchTerm, sortOrder, page, pageSize) {
5672
+ registeredFund2(page, pageSize, searchTerm, sortOrder) {
5608
5673
  let url_ = this.baseUrl + "/primary/v1/registered-fund?";
5609
- if (searchTerm === null)
5610
- throw new Error("The parameter 'searchTerm' cannot be null.");
5611
- else if (searchTerm !== undefined)
5612
- url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
5613
- if (sortOrder === null)
5614
- throw new Error("The parameter 'sortOrder' cannot be null.");
5615
- else if (sortOrder !== undefined)
5616
- url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
5617
5674
  if (page === null)
5618
5675
  throw new Error("The parameter 'page' cannot be null.");
5619
5676
  else if (page !== undefined)
@@ -5622,6 +5679,14 @@ export class Client {
5622
5679
  throw new Error("The parameter 'pageSize' cannot be null.");
5623
5680
  else if (pageSize !== undefined)
5624
5681
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
5682
+ if (searchTerm === null)
5683
+ throw new Error("The parameter 'searchTerm' cannot be null.");
5684
+ else if (searchTerm !== undefined)
5685
+ url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
5686
+ if (sortOrder === null)
5687
+ throw new Error("The parameter 'sortOrder' cannot be null.");
5688
+ else if (sortOrder !== undefined)
5689
+ url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
5625
5690
  url_ = url_.replace(/[?&]$/, "");
5626
5691
  let options_ = {
5627
5692
  method: "GET",
@@ -5724,15 +5789,25 @@ export class Client {
5724
5789
  }
5725
5790
  /**
5726
5791
  * Gets all registered fund subscriptions with optional filtering.
5792
+ * @param page (optional) Number of the page to retrieve.
5793
+ Defaults to 1 if not specified.
5794
+ * @param pageSize (optional) Size of the page to retrieve.
5795
+ Defaults to 25 if not specified.
5727
5796
  * @param registeredFundId (optional) Optional registered fund ID to filter subscriptions.
5728
5797
  * @param investorId (optional) Optional investor ID to filter subscriptions.
5729
- * @param pageNumber (optional) Page number for pagination (default: 1).
5730
- * @param pageSize (optional) Page size for pagination (default: 25).
5731
5798
  * @param sortOrder (optional) Sort order for results (default: Descending).
5732
5799
  * @return OK
5733
5800
  */
5734
- registeredFundSubscriptionGET(registeredFundId, investorId, pageNumber, pageSize, sortOrder) {
5801
+ registeredFundSubscriptionGET(page, pageSize, registeredFundId, investorId, sortOrder) {
5735
5802
  let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription?";
5803
+ if (page === null)
5804
+ throw new Error("The parameter 'page' cannot be null.");
5805
+ else if (page !== undefined)
5806
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
5807
+ if (pageSize === null)
5808
+ throw new Error("The parameter 'pageSize' cannot be null.");
5809
+ else if (pageSize !== undefined)
5810
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
5736
5811
  if (registeredFundId === null)
5737
5812
  throw new Error("The parameter 'registeredFundId' cannot be null.");
5738
5813
  else if (registeredFundId !== undefined)
@@ -5741,14 +5816,6 @@ export class Client {
5741
5816
  throw new Error("The parameter 'investorId' cannot be null.");
5742
5817
  else if (investorId !== undefined)
5743
5818
  url_ += "investorId=" + encodeURIComponent("" + investorId) + "&";
5744
- if (pageNumber === null)
5745
- throw new Error("The parameter 'pageNumber' cannot be null.");
5746
- else if (pageNumber !== undefined)
5747
- url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
5748
- if (pageSize === null)
5749
- throw new Error("The parameter 'pageSize' cannot be null.");
5750
- else if (pageSize !== undefined)
5751
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
5752
5819
  if (sortOrder === null)
5753
5820
  throw new Error("The parameter 'sortOrder' cannot be null.");
5754
5821
  else if (sortOrder !== undefined)
@@ -5856,17 +5923,21 @@ export class Client {
5856
5923
  /**
5857
5924
  * Generates a preview of the subscription document with filled data.
5858
5925
  * @param id The subscription ID.
5926
+ * @param body (optional)
5859
5927
  * @return OK
5860
5928
  */
5861
- preview(id) {
5929
+ preview(id, body) {
5862
5930
  let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription/{id}/preview";
5863
5931
  if (id === undefined || id === null)
5864
5932
  throw new Error("The parameter 'id' must be defined.");
5865
5933
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5866
5934
  url_ = url_.replace(/[?&]$/, "");
5935
+ const content_ = JSON.stringify(body);
5867
5936
  let options_ = {
5937
+ body: content_,
5868
5938
  method: "POST",
5869
5939
  headers: {
5940
+ "Content-Type": "application/json",
5870
5941
  "Accept": "application/json"
5871
5942
  }
5872
5943
  };
@@ -6222,17 +6293,22 @@ export class Client {
6222
6293
  /**
6223
6294
  * Complete a RegisteredFundSubscriptionAction.
6224
6295
  * @param id The ID of the RegisteredFundSubscriptionAction to complete.
6296
+ * @param body (optional)
6225
6297
  * @return No Content
6226
6298
  */
6227
- complete2(id) {
6299
+ complete2(id, body) {
6228
6300
  let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription-action/{id}/complete";
6229
6301
  if (id === undefined || id === null)
6230
6302
  throw new Error("The parameter 'id' must be defined.");
6231
6303
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6232
6304
  url_ = url_.replace(/[?&]$/, "");
6305
+ const content_ = JSON.stringify(body);
6233
6306
  let options_ = {
6307
+ body: content_,
6234
6308
  method: "PUT",
6235
- headers: {}
6309
+ headers: {
6310
+ "Content-Type": "application/json",
6311
+ }
6236
6312
  };
6237
6313
  return this.http.fetch(url_, options_).then((_response) => {
6238
6314
  return this.processComplete2(_response);
@@ -6357,8 +6433,10 @@ export class Client {
6357
6433
  }
6358
6434
  /**
6359
6435
  * Get all Webhooks
6360
- * @param page (optional) Page number to return.
6361
- * @param pageSize (optional) The number of items to return.
6436
+ * @param page (optional) Number of the page to retrieve.
6437
+ Defaults to 1 if not specified.
6438
+ * @param pageSize (optional) Size of the page to retrieve.
6439
+ Defaults to 25 if not specified.
6362
6440
  * @param sortOrder (optional) Order of which to sort the webhooks by. Default is Descending
6363
6441
  * @return Returns a list of Webhooks.
6364
6442
  */
@@ -6592,14 +6670,16 @@ export class Client {
6592
6670
  * @param id The Webhook's ID.
6593
6671
  * @param from Filters events so that only events from this datetime is returned.
6594
6672
  * @param to Filters events so that only events to this datetime is returned.
6673
+ * @param page (optional) Number of the page to retrieve.
6674
+ Defaults to 1 if not specified.
6675
+ * @param pageSize (optional) Size of the page to retrieve.
6676
+ Defaults to 25 if not specified.
6595
6677
  * @param sortOrder (optional) Order of which to sort the events by. Default is Descending.
6596
6678
  * @param eventType (optional) Optional filter by event type.
6597
6679
  * @param deliveryStatus (optional) Optional filter by delivery status.
6598
- * @param page (optional) The page number to return.
6599
- * @param pageSize (optional)
6600
6680
  * @return Returns a list of Webhook Events.
6601
6681
  */
6602
- events(id, from, to, sortOrder, eventType, deliveryStatus, page, pageSize) {
6682
+ events(id, from, to, page, pageSize, sortOrder, eventType, deliveryStatus) {
6603
6683
  let url_ = this.baseUrl + "/primary/v1/webhook/{id}/events?";
6604
6684
  if (id === undefined || id === null)
6605
6685
  throw new Error("The parameter 'id' must be defined.");
@@ -6612,6 +6692,14 @@ export class Client {
6612
6692
  throw new Error("The parameter 'to' must be defined and cannot be null.");
6613
6693
  else
6614
6694
  url_ += "to=" + encodeURIComponent(to ? "" + to.toISOString() : "") + "&";
6695
+ if (page === null)
6696
+ throw new Error("The parameter 'page' cannot be null.");
6697
+ else if (page !== undefined)
6698
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
6699
+ if (pageSize === null)
6700
+ throw new Error("The parameter 'pageSize' cannot be null.");
6701
+ else if (pageSize !== undefined)
6702
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
6615
6703
  if (sortOrder === null)
6616
6704
  throw new Error("The parameter 'sortOrder' cannot be null.");
6617
6705
  else if (sortOrder !== undefined)
@@ -6624,14 +6712,6 @@ export class Client {
6624
6712
  throw new Error("The parameter 'deliveryStatus' cannot be null.");
6625
6713
  else if (deliveryStatus !== undefined)
6626
6714
  url_ += "deliveryStatus=" + encodeURIComponent("" + deliveryStatus) + "&";
6627
- if (page === null)
6628
- throw new Error("The parameter 'page' cannot be null.");
6629
- else if (page !== undefined)
6630
- url_ += "page=" + encodeURIComponent("" + page) + "&";
6631
- if (pageSize === null)
6632
- throw new Error("The parameter 'pageSize' cannot be null.");
6633
- else if (pageSize !== undefined)
6634
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
6635
6715
  url_ = url_.replace(/[?&]$/, "");
6636
6716
  let options_ = {
6637
6717
  method: "GET",
@@ -10399,6 +10479,34 @@ export class Pagination {
10399
10479
  return data;
10400
10480
  }
10401
10481
  }
10482
+ export class PaginationSize {
10483
+ constructor(data) {
10484
+ if (data) {
10485
+ for (var property in data) {
10486
+ if (data.hasOwnProperty(property))
10487
+ this[property] = data[property];
10488
+ }
10489
+ }
10490
+ }
10491
+ init(_data) {
10492
+ if (_data) {
10493
+ this.page = _data["page"];
10494
+ this.pageSize = _data["pageSize"];
10495
+ }
10496
+ }
10497
+ static fromJS(data) {
10498
+ data = typeof data === 'object' ? data : {};
10499
+ let result = new PaginationSize();
10500
+ result.init(data);
10501
+ return result;
10502
+ }
10503
+ toJSON(data) {
10504
+ data = typeof data === 'object' ? data : {};
10505
+ data["page"] = this.page;
10506
+ data["pageSize"] = this.pageSize;
10507
+ return data;
10508
+ }
10509
+ }
10402
10510
  export class ParameterInfo {
10403
10511
  constructor(data) {
10404
10512
  if (data) {