@monarkmarkets/api-client 1.3.1 → 1.3.2

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
@@ -984,6 +984,90 @@ export declare class Client {
984
984
  */
985
985
  completeRegisteredFundSubscriptionAction(id: string, body: any | undefined): Promise<void>;
986
986
  protected processCompleteRegisteredFundSubscriptionAction(response: Response): Promise<void>;
987
+ /**
988
+ * Gets a SecondaryLink Evergreen Fund by ID.
989
+ * @param id The Evergreen Fund ID.
990
+ * @param financialInstitutionId The financial institution ID.
991
+ * @return Returns the EvergreenFund with the specified Id.
992
+ */
993
+ getSecondaryLinkEvergreenFundById(id: string, financialInstitutionId: string): Promise<EvergreenFund>;
994
+ protected processGetSecondaryLinkEvergreenFundById(response: Response): Promise<EvergreenFund>;
995
+ /**
996
+ * Gets all SecondaryLink Evergreen Funds with optional filtering and pagination.
997
+ * @param financialInstitutionId The financial institution ID.
998
+ * @param page (optional) Number of the page to retrieve.
999
+ Defaults to 1 if not specified.
1000
+ * @param pageSize (optional) Size of the page to retrieve.
1001
+ Defaults to 25 if not specified.
1002
+ * @param searchTerm (optional) Optional search term to filter by fund name or manager.
1003
+ * @param sortOrder (optional) Sort order (Ascending or Descending). Defaults to Descending.
1004
+ * @return Returns the list of EvergreenFund.
1005
+ */
1006
+ getAllSecondaryLinkEvergreenFunds(financialInstitutionId: string, page: number | undefined, pageSize: number | undefined, searchTerm: string | undefined, sortOrder: SortOrder18 | undefined): Promise<EvergreenFundApiResponse>;
1007
+ protected processGetAllSecondaryLinkEvergreenFunds(response: Response): Promise<EvergreenFundApiResponse>;
1008
+ /**
1009
+ * Gets a SecondaryLink Evergreen News record by ID.
1010
+ * @param id The Evergreen News ID.
1011
+ * @param financialInstitutionId The financial institution ID.
1012
+ * @return Returns the EvergreenNews with the specified Id.
1013
+ */
1014
+ getSecondaryLinkEvergreenNewsById(id: string, financialInstitutionId: string): Promise<EvergreenNews>;
1015
+ protected processGetSecondaryLinkEvergreenNewsById(response: Response): Promise<EvergreenNews>;
1016
+ /**
1017
+ * Gets all SecondaryLink Evergreen News with optional filtering and pagination.
1018
+ * @param financialInstitutionId The financial institution ID.
1019
+ * @param page (optional) Number of the page to retrieve.
1020
+ Defaults to 1 if not specified.
1021
+ * @param pageSize (optional) Size of the page to retrieve.
1022
+ Defaults to 25 if not specified.
1023
+ * @param searchTerm (optional) Optional search term to filter by fund name or title.
1024
+ * @param sortOrder (optional) Sort order (Ascending or Descending). Defaults to Descending.
1025
+ * @return Returns the list of EvergreenNews.
1026
+ */
1027
+ getAllSecondaryLinkEvergreenNews(financialInstitutionId: string, page: number | undefined, pageSize: number | undefined, searchTerm: string | undefined, sortOrder: SortOrder19 | undefined): Promise<EvergreenNewsApiResponse>;
1028
+ protected processGetAllSecondaryLinkEvergreenNews(response: Response): Promise<EvergreenNewsApiResponse>;
1029
+ /**
1030
+ * Gets a SecondaryLink Evergreen Returns record by ID.
1031
+ * @param id The Evergreen Returns ID.
1032
+ * @param financialInstitutionId The financial institution ID.
1033
+ * @return Returns the EvergreenReturns with the specified Id.
1034
+ */
1035
+ getSecondaryLinkEvergreenReturnsById(id: string, financialInstitutionId: string): Promise<EvergreenReturns>;
1036
+ protected processGetSecondaryLinkEvergreenReturnsById(response: Response): Promise<EvergreenReturns>;
1037
+ /**
1038
+ * Gets all SecondaryLink Evergreen Returns with optional filtering and pagination.
1039
+ * @param financialInstitutionId The financial institution ID.
1040
+ * @param page (optional) Number of the page to retrieve.
1041
+ Defaults to 1 if not specified.
1042
+ * @param pageSize (optional) Size of the page to retrieve.
1043
+ Defaults to 25 if not specified.
1044
+ * @param searchTerm (optional) Optional search term to filter by fund name.
1045
+ * @param sortOrder (optional) Sort order (Ascending or Descending). Defaults to Descending.
1046
+ * @return Returns the list of EvergreenReturns.
1047
+ */
1048
+ getAllSecondaryLinkEvergreenReturns(financialInstitutionId: string, page: number | undefined, pageSize: number | undefined, searchTerm: string | undefined, sortOrder: SortOrder20 | undefined): Promise<EvergreenReturnsApiResponse>;
1049
+ protected processGetAllSecondaryLinkEvergreenReturns(response: Response): Promise<EvergreenReturnsApiResponse>;
1050
+ /**
1051
+ * Gets a SecondaryLink Evergreen Share Classes record by ID.
1052
+ * @param id The Evergreen Share Classes ID.
1053
+ * @param financialInstitutionId The financial institution ID.
1054
+ * @return Returns the EvergreenShareClasses with the specified Id.
1055
+ */
1056
+ getSecondaryLinkEvergreenShareClassesById(id: string, financialInstitutionId: string): Promise<EvergreenShareClasses>;
1057
+ protected processGetSecondaryLinkEvergreenShareClassesById(response: Response): Promise<EvergreenShareClasses>;
1058
+ /**
1059
+ * Gets all SecondaryLink Evergreen Share Classes with optional filtering and pagination.
1060
+ * @param financialInstitutionId The financial institution ID.
1061
+ * @param page (optional) Number of the page to retrieve.
1062
+ Defaults to 1 if not specified.
1063
+ * @param pageSize (optional) Size of the page to retrieve.
1064
+ Defaults to 25 if not specified.
1065
+ * @param searchTerm (optional) Optional search term to filter by fund name or ticker.
1066
+ * @param sortOrder (optional) Sort order (Ascending or Descending). Defaults to Descending.
1067
+ * @return Returns the list of EvergreenShareClasses.
1068
+ */
1069
+ getAllSecondaryLinkEvergreenShareClasses(financialInstitutionId: string, page: number | undefined, pageSize: number | undefined, searchTerm: string | undefined, sortOrder: SortOrder21 | undefined): Promise<EvergreenShareClassesApiResponse>;
1070
+ protected processGetAllSecondaryLinkEvergreenShareClasses(response: Response): Promise<EvergreenShareClassesApiResponse>;
987
1071
  /**
988
1072
  * Get the API version
989
1073
  * @return Returns the API version
@@ -1006,7 +1090,7 @@ export declare class Client {
1006
1090
  * @param sortOrder (optional) Order of which to sort the webhooks by. Default is Descending
1007
1091
  * @return Returns a list of Webhooks.
1008
1092
  */
1009
- getAllWebhooks(page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder18 | undefined): Promise<WebhookApiResponse>;
1093
+ getAllWebhooks(page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder22 | undefined): Promise<WebhookApiResponse>;
1010
1094
  protected processGetAllWebhooks(response: Response): Promise<WebhookApiResponse>;
1011
1095
  /**
1012
1096
  * Update a Webhook’s Information
@@ -1043,7 +1127,7 @@ export declare class Client {
1043
1127
  * @param deliveryStatus (optional) Optional filter by delivery status.
1044
1128
  * @return Returns a list of Webhook Events.
1045
1129
  */
1046
- getAllWebhookEvents(id: string, from: Date, to: Date, page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder19 | undefined, eventType: EventType | undefined, deliveryStatus: DeliveryStatus | undefined): Promise<WebhookEventApiResponse>;
1130
+ getAllWebhookEvents(id: string, from: Date, to: Date, page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder23 | undefined, eventType: EventType | undefined, deliveryStatus: DeliveryStatus | undefined): Promise<WebhookEventApiResponse>;
1047
1131
  protected processGetAllWebhookEvents(response: Response): Promise<WebhookEventApiResponse>;
1048
1132
  }
1049
1133
  /** Represents the version information of the API */
@@ -2184,6 +2268,230 @@ export interface IEventInfo {
2184
2268
  isMulticast?: boolean;
2185
2269
  eventHandlerType?: Type | undefined;
2186
2270
  }
2271
+ /** Represents an evergreen fund. */
2272
+ export declare class EvergreenFund implements IEvergreenFund {
2273
+ /** Unique identification number for Evergreen Fund */
2274
+ id: string;
2275
+ /** Official name of the Evergreen Fund */
2276
+ fundName: string | undefined;
2277
+ /** Manager of the Evergreen Fund */
2278
+ manager: string | undefined;
2279
+ /** Year of inception for the Evergreen Fund */
2280
+ inception?: number;
2281
+ /** Deal type focus of the Evergreen Fund */
2282
+ dealTypeFocus?: string | undefined;
2283
+ /** Strategy focus of the Evergreen Fund */
2284
+ strategyFocus?: string | undefined;
2285
+ /** Management fee charged by the Evergreen Fund */
2286
+ managementFee?: number;
2287
+ /** Type of the Evergreen Fund */
2288
+ fundType?: string | undefined;
2289
+ /** Registration status of the Evergreen Fund */
2290
+ registration?: string | undefined;
2291
+ /** Frequency at which repurchases occur */
2292
+ repurchaseFrequency?: string | undefined;
2293
+ /** Frequency at which subscriptions occur */
2294
+ subscriptionFrequency?: string | undefined;
2295
+ constructor(data?: IEvergreenFund);
2296
+ init(_data?: any): void;
2297
+ static fromJS(data: any): EvergreenFund;
2298
+ toJSON(data?: any): any;
2299
+ }
2300
+ /** Represents an evergreen fund. */
2301
+ export interface IEvergreenFund {
2302
+ /** Unique identification number for Evergreen Fund */
2303
+ id: string;
2304
+ /** Official name of the Evergreen Fund */
2305
+ fundName: string | undefined;
2306
+ /** Manager of the Evergreen Fund */
2307
+ manager: string | undefined;
2308
+ /** Year of inception for the Evergreen Fund */
2309
+ inception?: number;
2310
+ /** Deal type focus of the Evergreen Fund */
2311
+ dealTypeFocus?: string | undefined;
2312
+ /** Strategy focus of the Evergreen Fund */
2313
+ strategyFocus?: string | undefined;
2314
+ /** Management fee charged by the Evergreen Fund */
2315
+ managementFee?: number;
2316
+ /** Type of the Evergreen Fund */
2317
+ fundType?: string | undefined;
2318
+ /** Registration status of the Evergreen Fund */
2319
+ registration?: string | undefined;
2320
+ /** Frequency at which repurchases occur */
2321
+ repurchaseFrequency?: string | undefined;
2322
+ /** Frequency at which subscriptions occur */
2323
+ subscriptionFrequency?: string | undefined;
2324
+ }
2325
+ export declare class EvergreenFundApiResponse implements IEvergreenFundApiResponse {
2326
+ items?: EvergreenFund[] | undefined;
2327
+ pagination?: Pagination | undefined;
2328
+ constructor(data?: IEvergreenFundApiResponse);
2329
+ init(_data?: any): void;
2330
+ static fromJS(data: any): EvergreenFundApiResponse;
2331
+ toJSON(data?: any): any;
2332
+ }
2333
+ export interface IEvergreenFundApiResponse {
2334
+ items?: EvergreenFund[] | undefined;
2335
+ pagination?: Pagination | undefined;
2336
+ }
2337
+ /** Represents news data for an evergreen fund. */
2338
+ export declare class EvergreenNews implements IEvergreenNews {
2339
+ /** Unique identification number for Evergreen News */
2340
+ id: string;
2341
+ /** ID of the associated Evergreen Fund (optional) */
2342
+ evergreenFundId?: string | undefined;
2343
+ /** Name of the fund */
2344
+ fundName: string | undefined;
2345
+ /** Title of the news article */
2346
+ title: string | undefined;
2347
+ /** Short description or subtitle (strap line) */
2348
+ strap: string | undefined;
2349
+ /** URL link to the full article */
2350
+ url: string | undefined;
2351
+ /** Full article content */
2352
+ article: string | undefined;
2353
+ /** Date the article was published */
2354
+ publishDate?: Date;
2355
+ constructor(data?: IEvergreenNews);
2356
+ init(_data?: any): void;
2357
+ static fromJS(data: any): EvergreenNews;
2358
+ toJSON(data?: any): any;
2359
+ }
2360
+ /** Represents news data for an evergreen fund. */
2361
+ export interface IEvergreenNews {
2362
+ /** Unique identification number for Evergreen News */
2363
+ id: string;
2364
+ /** ID of the associated Evergreen Fund (optional) */
2365
+ evergreenFundId?: string | undefined;
2366
+ /** Name of the fund */
2367
+ fundName: string | undefined;
2368
+ /** Title of the news article */
2369
+ title: string | undefined;
2370
+ /** Short description or subtitle (strap line) */
2371
+ strap: string | undefined;
2372
+ /** URL link to the full article */
2373
+ url: string | undefined;
2374
+ /** Full article content */
2375
+ article: string | undefined;
2376
+ /** Date the article was published */
2377
+ publishDate?: Date;
2378
+ }
2379
+ export declare class EvergreenNewsApiResponse implements IEvergreenNewsApiResponse {
2380
+ items?: EvergreenNews[] | undefined;
2381
+ pagination?: Pagination | undefined;
2382
+ constructor(data?: IEvergreenNewsApiResponse);
2383
+ init(_data?: any): void;
2384
+ static fromJS(data: any): EvergreenNewsApiResponse;
2385
+ toJSON(data?: any): any;
2386
+ }
2387
+ export interface IEvergreenNewsApiResponse {
2388
+ items?: EvergreenNews[] | undefined;
2389
+ pagination?: Pagination | undefined;
2390
+ }
2391
+ /** Represents returns data for an evergreen fund. */
2392
+ export declare class EvergreenReturns implements IEvergreenReturns {
2393
+ /** Unique identification number for Evergreen Returns */
2394
+ id: string;
2395
+ /** ID of the associated Evergreen Fund (optional) */
2396
+ evergreenFundId?: string | undefined;
2397
+ /** Name of the fund */
2398
+ fundName: string | undefined;
2399
+ /** Returns since inception (as percentage) */
2400
+ sinceInception?: number;
2401
+ /** One year returns (as percentage) */
2402
+ oneYear?: number;
2403
+ constructor(data?: IEvergreenReturns);
2404
+ init(_data?: any): void;
2405
+ static fromJS(data: any): EvergreenReturns;
2406
+ toJSON(data?: any): any;
2407
+ }
2408
+ /** Represents returns data for an evergreen fund. */
2409
+ export interface IEvergreenReturns {
2410
+ /** Unique identification number for Evergreen Returns */
2411
+ id: string;
2412
+ /** ID of the associated Evergreen Fund (optional) */
2413
+ evergreenFundId?: string | undefined;
2414
+ /** Name of the fund */
2415
+ fundName: string | undefined;
2416
+ /** Returns since inception (as percentage) */
2417
+ sinceInception?: number;
2418
+ /** One year returns (as percentage) */
2419
+ oneYear?: number;
2420
+ }
2421
+ export declare class EvergreenReturnsApiResponse implements IEvergreenReturnsApiResponse {
2422
+ items?: EvergreenReturns[] | undefined;
2423
+ pagination?: Pagination | undefined;
2424
+ constructor(data?: IEvergreenReturnsApiResponse);
2425
+ init(_data?: any): void;
2426
+ static fromJS(data: any): EvergreenReturnsApiResponse;
2427
+ toJSON(data?: any): any;
2428
+ }
2429
+ export interface IEvergreenReturnsApiResponse {
2430
+ items?: EvergreenReturns[] | undefined;
2431
+ pagination?: Pagination | undefined;
2432
+ }
2433
+ /** Represents share class data for an evergreen fund. */
2434
+ export declare class EvergreenShareClasses implements IEvergreenShareClasses {
2435
+ /** Unique identification number for Evergreen Share Classes */
2436
+ id: string;
2437
+ /** ID of the associated Evergreen Fund (optional) */
2438
+ evergreenFundId?: string | undefined;
2439
+ /** Name of the fund */
2440
+ fundName: string | undefined;
2441
+ /** Share class ticker symbol */
2442
+ shareClassTicker: string | undefined;
2443
+ /** Minimum initial investment size */
2444
+ minInvestmentSize?: number;
2445
+ /** Minimum subsequent investment amount */
2446
+ minSubsequentInvestment?: number;
2447
+ /** Sales load percentage or amount */
2448
+ salesLoad?: number;
2449
+ /** Distribution and servicing fee (12b-1 fee) */
2450
+ distributionAndServicingFee?: number;
2451
+ /** Early repurchase or redemption fee */
2452
+ earlyRepurchaseOrRedemptionFee?: number;
2453
+ /** Status of the share class (e.g., Active, Inactive, Closed) */
2454
+ status: string | undefined;
2455
+ constructor(data?: IEvergreenShareClasses);
2456
+ init(_data?: any): void;
2457
+ static fromJS(data: any): EvergreenShareClasses;
2458
+ toJSON(data?: any): any;
2459
+ }
2460
+ /** Represents share class data for an evergreen fund. */
2461
+ export interface IEvergreenShareClasses {
2462
+ /** Unique identification number for Evergreen Share Classes */
2463
+ id: string;
2464
+ /** ID of the associated Evergreen Fund (optional) */
2465
+ evergreenFundId?: string | undefined;
2466
+ /** Name of the fund */
2467
+ fundName: string | undefined;
2468
+ /** Share class ticker symbol */
2469
+ shareClassTicker: string | undefined;
2470
+ /** Minimum initial investment size */
2471
+ minInvestmentSize?: number;
2472
+ /** Minimum subsequent investment amount */
2473
+ minSubsequentInvestment?: number;
2474
+ /** Sales load percentage or amount */
2475
+ salesLoad?: number;
2476
+ /** Distribution and servicing fee (12b-1 fee) */
2477
+ distributionAndServicingFee?: number;
2478
+ /** Early repurchase or redemption fee */
2479
+ earlyRepurchaseOrRedemptionFee?: number;
2480
+ /** Status of the share class (e.g., Active, Inactive, Closed) */
2481
+ status: string | undefined;
2482
+ }
2483
+ export declare class EvergreenShareClassesApiResponse implements IEvergreenShareClassesApiResponse {
2484
+ items?: EvergreenShareClasses[] | undefined;
2485
+ pagination?: Pagination | undefined;
2486
+ constructor(data?: IEvergreenShareClassesApiResponse);
2487
+ init(_data?: any): void;
2488
+ static fromJS(data: any): EvergreenShareClassesApiResponse;
2489
+ toJSON(data?: any): any;
2490
+ }
2491
+ export interface IEvergreenShareClassesApiResponse {
2492
+ items?: EvergreenShareClasses[] | undefined;
2493
+ pagination?: Pagination | undefined;
2494
+ }
2187
2495
  /** Represents a fee structure that can be associated with either a registered fund or a share class. */
2188
2496
  export declare class FeeStructure implements IFeeStructure {
2189
2497
  /** Unique ID of the fee structure. */
@@ -7460,6 +7768,22 @@ export declare enum SortOrder19 {
7460
7768
  Ascending = "Ascending",
7461
7769
  Descending = "Descending"
7462
7770
  }
7771
+ export declare enum SortOrder20 {
7772
+ Ascending = "Ascending",
7773
+ Descending = "Descending"
7774
+ }
7775
+ export declare enum SortOrder21 {
7776
+ Ascending = "Ascending",
7777
+ Descending = "Descending"
7778
+ }
7779
+ export declare enum SortOrder22 {
7780
+ Ascending = "Ascending",
7781
+ Descending = "Descending"
7782
+ }
7783
+ export declare enum SortOrder23 {
7784
+ Ascending = "Ascending",
7785
+ Descending = "Descending"
7786
+ }
7463
7787
  export declare enum EventType {
7464
7788
  PreIPOCompany = "PreIPOCompany",
7465
7789
  PreIPOCompanyInvestment = "PreIPOCompanyInvestment",
@@ -7468,7 +7792,10 @@ export declare enum EventType {
7468
7792
  Document = "Document",
7469
7793
  InvestorSubscriptionAction = "InvestorSubscriptionAction",
7470
7794
  SubscriptionStatus = "SubscriptionStatus",
7471
- RegisteredFundSubscriptionStatus = "RegisteredFundSubscriptionStatus"
7795
+ RegisteredFundSubscriptionStatus = "RegisteredFundSubscriptionStatus",
7796
+ PreIPOCompanySPVUpdate = "PreIPOCompanySPVUpdate",
7797
+ PreIPOCompanySPVDocumentUpdate = "PreIPOCompanySPVDocumentUpdate",
7798
+ PreIPOCompanySPVSubscriptionActionDefinitionUpdate = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate"
7472
7799
  }
7473
7800
  export declare enum DeliveryStatus {
7474
7801
  Pending = "Pending",
@@ -8453,7 +8780,10 @@ export declare enum WebhookEventEventType {
8453
8780
  Document = "Document",
8454
8781
  InvestorSubscriptionAction = "InvestorSubscriptionAction",
8455
8782
  SubscriptionStatus = "SubscriptionStatus",
8456
- RegisteredFundSubscriptionStatus = "RegisteredFundSubscriptionStatus"
8783
+ RegisteredFundSubscriptionStatus = "RegisteredFundSubscriptionStatus",
8784
+ PreIPOCompanySPVUpdate = "PreIPOCompanySPVUpdate",
8785
+ PreIPOCompanySPVDocumentUpdate = "PreIPOCompanySPVDocumentUpdate",
8786
+ PreIPOCompanySPVSubscriptionActionDefinitionUpdate = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate"
8457
8787
  }
8458
8788
  export interface FileResponse {
8459
8789
  data: Blob;
package/dist/Client.js CHANGED
@@ -6564,6 +6564,550 @@ export class Client {
6564
6564
  }
6565
6565
  return Promise.resolve(null);
6566
6566
  }
6567
+ /**
6568
+ * Gets a SecondaryLink Evergreen Fund by ID.
6569
+ * @param id The Evergreen Fund ID.
6570
+ * @param financialInstitutionId The financial institution ID.
6571
+ * @return Returns the EvergreenFund with the specified Id.
6572
+ */
6573
+ getSecondaryLinkEvergreenFundById(id, financialInstitutionId) {
6574
+ let url_ = this.baseUrl + "/primary/v1/secondarylink/evergreen-funds/{id}/financial-institution/{financialInstitutionId}";
6575
+ if (id === undefined || id === null)
6576
+ throw new Error("The parameter 'id' must be defined.");
6577
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6578
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
6579
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
6580
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
6581
+ url_ = url_.replace(/[?&]$/, "");
6582
+ let options_ = {
6583
+ method: "GET",
6584
+ headers: {
6585
+ "Accept": "application/json"
6586
+ }
6587
+ };
6588
+ return this.http.fetch(url_, options_).then((_response) => {
6589
+ return this.processGetSecondaryLinkEvergreenFundById(_response);
6590
+ });
6591
+ }
6592
+ processGetSecondaryLinkEvergreenFundById(response) {
6593
+ const status = response.status;
6594
+ let _headers = {};
6595
+ if (response.headers && response.headers.forEach) {
6596
+ response.headers.forEach((v, k) => _headers[k] = v);
6597
+ }
6598
+ ;
6599
+ if (status === 200) {
6600
+ return response.text().then((_responseText) => {
6601
+ let result200 = null;
6602
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6603
+ result200 = EvergreenFund.fromJS(resultData200);
6604
+ return result200;
6605
+ });
6606
+ }
6607
+ else if (status === 404) {
6608
+ return response.text().then((_responseText) => {
6609
+ let result404 = null;
6610
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6611
+ result404 = ProblemDetails.fromJS(resultData404);
6612
+ return throwException("EvergreenFund not found.", status, _responseText, _headers, result404);
6613
+ });
6614
+ }
6615
+ else if (status === 403) {
6616
+ return response.text().then((_responseText) => {
6617
+ let result403 = null;
6618
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6619
+ result403 = ProblemDetails.fromJS(resultData403);
6620
+ return throwException("Access denied.", status, _responseText, _headers, result403);
6621
+ });
6622
+ }
6623
+ else if (status !== 200 && status !== 204) {
6624
+ return response.text().then((_responseText) => {
6625
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6626
+ });
6627
+ }
6628
+ return Promise.resolve(null);
6629
+ }
6630
+ /**
6631
+ * Gets all SecondaryLink Evergreen Funds with optional filtering and pagination.
6632
+ * @param financialInstitutionId The financial institution ID.
6633
+ * @param page (optional) Number of the page to retrieve.
6634
+ Defaults to 1 if not specified.
6635
+ * @param pageSize (optional) Size of the page to retrieve.
6636
+ Defaults to 25 if not specified.
6637
+ * @param searchTerm (optional) Optional search term to filter by fund name or manager.
6638
+ * @param sortOrder (optional) Sort order (Ascending or Descending). Defaults to Descending.
6639
+ * @return Returns the list of EvergreenFund.
6640
+ */
6641
+ getAllSecondaryLinkEvergreenFunds(financialInstitutionId, page, pageSize, searchTerm, sortOrder) {
6642
+ let url_ = this.baseUrl + "/primary/v1/secondarylink/evergreen-funds/financial-institution/{financialInstitutionId}?";
6643
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
6644
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
6645
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
6646
+ if (page === null)
6647
+ throw new Error("The parameter 'page' cannot be null.");
6648
+ else if (page !== undefined)
6649
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
6650
+ if (pageSize === null)
6651
+ throw new Error("The parameter 'pageSize' cannot be null.");
6652
+ else if (pageSize !== undefined)
6653
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
6654
+ if (searchTerm === null)
6655
+ throw new Error("The parameter 'searchTerm' cannot be null.");
6656
+ else if (searchTerm !== undefined)
6657
+ url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
6658
+ if (sortOrder === null)
6659
+ throw new Error("The parameter 'sortOrder' cannot be null.");
6660
+ else if (sortOrder !== undefined)
6661
+ url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
6662
+ url_ = url_.replace(/[?&]$/, "");
6663
+ let options_ = {
6664
+ method: "GET",
6665
+ headers: {
6666
+ "Accept": "application/json"
6667
+ }
6668
+ };
6669
+ return this.http.fetch(url_, options_).then((_response) => {
6670
+ return this.processGetAllSecondaryLinkEvergreenFunds(_response);
6671
+ });
6672
+ }
6673
+ processGetAllSecondaryLinkEvergreenFunds(response) {
6674
+ const status = response.status;
6675
+ let _headers = {};
6676
+ if (response.headers && response.headers.forEach) {
6677
+ response.headers.forEach((v, k) => _headers[k] = v);
6678
+ }
6679
+ ;
6680
+ if (status === 200) {
6681
+ return response.text().then((_responseText) => {
6682
+ let result200 = null;
6683
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6684
+ result200 = EvergreenFundApiResponse.fromJS(resultData200);
6685
+ return result200;
6686
+ });
6687
+ }
6688
+ else if (status === 403) {
6689
+ return response.text().then((_responseText) => {
6690
+ let result403 = null;
6691
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6692
+ result403 = ProblemDetails.fromJS(resultData403);
6693
+ return throwException("Access denied.", status, _responseText, _headers, result403);
6694
+ });
6695
+ }
6696
+ else if (status !== 200 && status !== 204) {
6697
+ return response.text().then((_responseText) => {
6698
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6699
+ });
6700
+ }
6701
+ return Promise.resolve(null);
6702
+ }
6703
+ /**
6704
+ * Gets a SecondaryLink Evergreen News record by ID.
6705
+ * @param id The Evergreen News ID.
6706
+ * @param financialInstitutionId The financial institution ID.
6707
+ * @return Returns the EvergreenNews with the specified Id.
6708
+ */
6709
+ getSecondaryLinkEvergreenNewsById(id, financialInstitutionId) {
6710
+ let url_ = this.baseUrl + "/primary/v1/secondarylink/evergreen-news/{id}/financial-institution/{financialInstitutionId}";
6711
+ if (id === undefined || id === null)
6712
+ throw new Error("The parameter 'id' must be defined.");
6713
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6714
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
6715
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
6716
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
6717
+ url_ = url_.replace(/[?&]$/, "");
6718
+ let options_ = {
6719
+ method: "GET",
6720
+ headers: {
6721
+ "Accept": "application/json"
6722
+ }
6723
+ };
6724
+ return this.http.fetch(url_, options_).then((_response) => {
6725
+ return this.processGetSecondaryLinkEvergreenNewsById(_response);
6726
+ });
6727
+ }
6728
+ processGetSecondaryLinkEvergreenNewsById(response) {
6729
+ const status = response.status;
6730
+ let _headers = {};
6731
+ if (response.headers && response.headers.forEach) {
6732
+ response.headers.forEach((v, k) => _headers[k] = v);
6733
+ }
6734
+ ;
6735
+ if (status === 200) {
6736
+ return response.text().then((_responseText) => {
6737
+ let result200 = null;
6738
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6739
+ result200 = EvergreenNews.fromJS(resultData200);
6740
+ return result200;
6741
+ });
6742
+ }
6743
+ else if (status === 404) {
6744
+ return response.text().then((_responseText) => {
6745
+ let result404 = null;
6746
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6747
+ result404 = ProblemDetails.fromJS(resultData404);
6748
+ return throwException("EvergreenNews not found.", status, _responseText, _headers, result404);
6749
+ });
6750
+ }
6751
+ else if (status === 403) {
6752
+ return response.text().then((_responseText) => {
6753
+ let result403 = null;
6754
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6755
+ result403 = ProblemDetails.fromJS(resultData403);
6756
+ return throwException("Access denied.", status, _responseText, _headers, result403);
6757
+ });
6758
+ }
6759
+ else if (status !== 200 && status !== 204) {
6760
+ return response.text().then((_responseText) => {
6761
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6762
+ });
6763
+ }
6764
+ return Promise.resolve(null);
6765
+ }
6766
+ /**
6767
+ * Gets all SecondaryLink Evergreen News with optional filtering and pagination.
6768
+ * @param financialInstitutionId The financial institution ID.
6769
+ * @param page (optional) Number of the page to retrieve.
6770
+ Defaults to 1 if not specified.
6771
+ * @param pageSize (optional) Size of the page to retrieve.
6772
+ Defaults to 25 if not specified.
6773
+ * @param searchTerm (optional) Optional search term to filter by fund name or title.
6774
+ * @param sortOrder (optional) Sort order (Ascending or Descending). Defaults to Descending.
6775
+ * @return Returns the list of EvergreenNews.
6776
+ */
6777
+ getAllSecondaryLinkEvergreenNews(financialInstitutionId, page, pageSize, searchTerm, sortOrder) {
6778
+ let url_ = this.baseUrl + "/primary/v1/secondarylink/evergreen-news/financial-institution/{financialInstitutionId}?";
6779
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
6780
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
6781
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
6782
+ if (page === null)
6783
+ throw new Error("The parameter 'page' cannot be null.");
6784
+ else if (page !== undefined)
6785
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
6786
+ if (pageSize === null)
6787
+ throw new Error("The parameter 'pageSize' cannot be null.");
6788
+ else if (pageSize !== undefined)
6789
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
6790
+ if (searchTerm === null)
6791
+ throw new Error("The parameter 'searchTerm' cannot be null.");
6792
+ else if (searchTerm !== undefined)
6793
+ url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
6794
+ if (sortOrder === null)
6795
+ throw new Error("The parameter 'sortOrder' cannot be null.");
6796
+ else if (sortOrder !== undefined)
6797
+ url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
6798
+ url_ = url_.replace(/[?&]$/, "");
6799
+ let options_ = {
6800
+ method: "GET",
6801
+ headers: {
6802
+ "Accept": "application/json"
6803
+ }
6804
+ };
6805
+ return this.http.fetch(url_, options_).then((_response) => {
6806
+ return this.processGetAllSecondaryLinkEvergreenNews(_response);
6807
+ });
6808
+ }
6809
+ processGetAllSecondaryLinkEvergreenNews(response) {
6810
+ const status = response.status;
6811
+ let _headers = {};
6812
+ if (response.headers && response.headers.forEach) {
6813
+ response.headers.forEach((v, k) => _headers[k] = v);
6814
+ }
6815
+ ;
6816
+ if (status === 200) {
6817
+ return response.text().then((_responseText) => {
6818
+ let result200 = null;
6819
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6820
+ result200 = EvergreenNewsApiResponse.fromJS(resultData200);
6821
+ return result200;
6822
+ });
6823
+ }
6824
+ else if (status === 403) {
6825
+ return response.text().then((_responseText) => {
6826
+ let result403 = null;
6827
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6828
+ result403 = ProblemDetails.fromJS(resultData403);
6829
+ return throwException("Access denied.", status, _responseText, _headers, result403);
6830
+ });
6831
+ }
6832
+ else if (status !== 200 && status !== 204) {
6833
+ return response.text().then((_responseText) => {
6834
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6835
+ });
6836
+ }
6837
+ return Promise.resolve(null);
6838
+ }
6839
+ /**
6840
+ * Gets a SecondaryLink Evergreen Returns record by ID.
6841
+ * @param id The Evergreen Returns ID.
6842
+ * @param financialInstitutionId The financial institution ID.
6843
+ * @return Returns the EvergreenReturns with the specified Id.
6844
+ */
6845
+ getSecondaryLinkEvergreenReturnsById(id, financialInstitutionId) {
6846
+ let url_ = this.baseUrl + "/primary/v1/secondarylink/evergreen-returns/{id}/financial-institution/{financialInstitutionId}";
6847
+ if (id === undefined || id === null)
6848
+ throw new Error("The parameter 'id' must be defined.");
6849
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6850
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
6851
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
6852
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
6853
+ url_ = url_.replace(/[?&]$/, "");
6854
+ let options_ = {
6855
+ method: "GET",
6856
+ headers: {
6857
+ "Accept": "application/json"
6858
+ }
6859
+ };
6860
+ return this.http.fetch(url_, options_).then((_response) => {
6861
+ return this.processGetSecondaryLinkEvergreenReturnsById(_response);
6862
+ });
6863
+ }
6864
+ processGetSecondaryLinkEvergreenReturnsById(response) {
6865
+ const status = response.status;
6866
+ let _headers = {};
6867
+ if (response.headers && response.headers.forEach) {
6868
+ response.headers.forEach((v, k) => _headers[k] = v);
6869
+ }
6870
+ ;
6871
+ if (status === 200) {
6872
+ return response.text().then((_responseText) => {
6873
+ let result200 = null;
6874
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6875
+ result200 = EvergreenReturns.fromJS(resultData200);
6876
+ return result200;
6877
+ });
6878
+ }
6879
+ else if (status === 404) {
6880
+ return response.text().then((_responseText) => {
6881
+ let result404 = null;
6882
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6883
+ result404 = ProblemDetails.fromJS(resultData404);
6884
+ return throwException("EvergreenReturns not found.", status, _responseText, _headers, result404);
6885
+ });
6886
+ }
6887
+ else if (status === 403) {
6888
+ return response.text().then((_responseText) => {
6889
+ let result403 = null;
6890
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6891
+ result403 = ProblemDetails.fromJS(resultData403);
6892
+ return throwException("Access denied.", status, _responseText, _headers, result403);
6893
+ });
6894
+ }
6895
+ else if (status !== 200 && status !== 204) {
6896
+ return response.text().then((_responseText) => {
6897
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6898
+ });
6899
+ }
6900
+ return Promise.resolve(null);
6901
+ }
6902
+ /**
6903
+ * Gets all SecondaryLink Evergreen Returns with optional filtering and pagination.
6904
+ * @param financialInstitutionId The financial institution ID.
6905
+ * @param page (optional) Number of the page to retrieve.
6906
+ Defaults to 1 if not specified.
6907
+ * @param pageSize (optional) Size of the page to retrieve.
6908
+ Defaults to 25 if not specified.
6909
+ * @param searchTerm (optional) Optional search term to filter by fund name.
6910
+ * @param sortOrder (optional) Sort order (Ascending or Descending). Defaults to Descending.
6911
+ * @return Returns the list of EvergreenReturns.
6912
+ */
6913
+ getAllSecondaryLinkEvergreenReturns(financialInstitutionId, page, pageSize, searchTerm, sortOrder) {
6914
+ let url_ = this.baseUrl + "/primary/v1/secondarylink/evergreen-returns/financial-institution/{financialInstitutionId}?";
6915
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
6916
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
6917
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
6918
+ if (page === null)
6919
+ throw new Error("The parameter 'page' cannot be null.");
6920
+ else if (page !== undefined)
6921
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
6922
+ if (pageSize === null)
6923
+ throw new Error("The parameter 'pageSize' cannot be null.");
6924
+ else if (pageSize !== undefined)
6925
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
6926
+ if (searchTerm === null)
6927
+ throw new Error("The parameter 'searchTerm' cannot be null.");
6928
+ else if (searchTerm !== undefined)
6929
+ url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
6930
+ if (sortOrder === null)
6931
+ throw new Error("The parameter 'sortOrder' cannot be null.");
6932
+ else if (sortOrder !== undefined)
6933
+ url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
6934
+ url_ = url_.replace(/[?&]$/, "");
6935
+ let options_ = {
6936
+ method: "GET",
6937
+ headers: {
6938
+ "Accept": "application/json"
6939
+ }
6940
+ };
6941
+ return this.http.fetch(url_, options_).then((_response) => {
6942
+ return this.processGetAllSecondaryLinkEvergreenReturns(_response);
6943
+ });
6944
+ }
6945
+ processGetAllSecondaryLinkEvergreenReturns(response) {
6946
+ const status = response.status;
6947
+ let _headers = {};
6948
+ if (response.headers && response.headers.forEach) {
6949
+ response.headers.forEach((v, k) => _headers[k] = v);
6950
+ }
6951
+ ;
6952
+ if (status === 200) {
6953
+ return response.text().then((_responseText) => {
6954
+ let result200 = null;
6955
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6956
+ result200 = EvergreenReturnsApiResponse.fromJS(resultData200);
6957
+ return result200;
6958
+ });
6959
+ }
6960
+ else if (status === 403) {
6961
+ return response.text().then((_responseText) => {
6962
+ let result403 = null;
6963
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6964
+ result403 = ProblemDetails.fromJS(resultData403);
6965
+ return throwException("Access denied.", status, _responseText, _headers, result403);
6966
+ });
6967
+ }
6968
+ else if (status !== 200 && status !== 204) {
6969
+ return response.text().then((_responseText) => {
6970
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6971
+ });
6972
+ }
6973
+ return Promise.resolve(null);
6974
+ }
6975
+ /**
6976
+ * Gets a SecondaryLink Evergreen Share Classes record by ID.
6977
+ * @param id The Evergreen Share Classes ID.
6978
+ * @param financialInstitutionId The financial institution ID.
6979
+ * @return Returns the EvergreenShareClasses with the specified Id.
6980
+ */
6981
+ getSecondaryLinkEvergreenShareClassesById(id, financialInstitutionId) {
6982
+ let url_ = this.baseUrl + "/primary/v1/secondarylink/evergreen-share-classes/{id}/financial-institution/{financialInstitutionId}";
6983
+ if (id === undefined || id === null)
6984
+ throw new Error("The parameter 'id' must be defined.");
6985
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6986
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
6987
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
6988
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
6989
+ url_ = url_.replace(/[?&]$/, "");
6990
+ let options_ = {
6991
+ method: "GET",
6992
+ headers: {
6993
+ "Accept": "application/json"
6994
+ }
6995
+ };
6996
+ return this.http.fetch(url_, options_).then((_response) => {
6997
+ return this.processGetSecondaryLinkEvergreenShareClassesById(_response);
6998
+ });
6999
+ }
7000
+ processGetSecondaryLinkEvergreenShareClassesById(response) {
7001
+ const status = response.status;
7002
+ let _headers = {};
7003
+ if (response.headers && response.headers.forEach) {
7004
+ response.headers.forEach((v, k) => _headers[k] = v);
7005
+ }
7006
+ ;
7007
+ if (status === 200) {
7008
+ return response.text().then((_responseText) => {
7009
+ let result200 = null;
7010
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7011
+ result200 = EvergreenShareClasses.fromJS(resultData200);
7012
+ return result200;
7013
+ });
7014
+ }
7015
+ else if (status === 404) {
7016
+ return response.text().then((_responseText) => {
7017
+ let result404 = null;
7018
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7019
+ result404 = ProblemDetails.fromJS(resultData404);
7020
+ return throwException("EvergreenShareClasses not found.", status, _responseText, _headers, result404);
7021
+ });
7022
+ }
7023
+ else if (status === 403) {
7024
+ return response.text().then((_responseText) => {
7025
+ let result403 = null;
7026
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7027
+ result403 = ProblemDetails.fromJS(resultData403);
7028
+ return throwException("Access denied.", status, _responseText, _headers, result403);
7029
+ });
7030
+ }
7031
+ else if (status !== 200 && status !== 204) {
7032
+ return response.text().then((_responseText) => {
7033
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7034
+ });
7035
+ }
7036
+ return Promise.resolve(null);
7037
+ }
7038
+ /**
7039
+ * Gets all SecondaryLink Evergreen Share Classes with optional filtering and pagination.
7040
+ * @param financialInstitutionId The financial institution ID.
7041
+ * @param page (optional) Number of the page to retrieve.
7042
+ Defaults to 1 if not specified.
7043
+ * @param pageSize (optional) Size of the page to retrieve.
7044
+ Defaults to 25 if not specified.
7045
+ * @param searchTerm (optional) Optional search term to filter by fund name or ticker.
7046
+ * @param sortOrder (optional) Sort order (Ascending or Descending). Defaults to Descending.
7047
+ * @return Returns the list of EvergreenShareClasses.
7048
+ */
7049
+ getAllSecondaryLinkEvergreenShareClasses(financialInstitutionId, page, pageSize, searchTerm, sortOrder) {
7050
+ let url_ = this.baseUrl + "/primary/v1/secondarylink/evergreen-share-classes/financial-institution/{financialInstitutionId}?";
7051
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
7052
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
7053
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
7054
+ if (page === null)
7055
+ throw new Error("The parameter 'page' cannot be null.");
7056
+ else if (page !== undefined)
7057
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
7058
+ if (pageSize === null)
7059
+ throw new Error("The parameter 'pageSize' cannot be null.");
7060
+ else if (pageSize !== undefined)
7061
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
7062
+ if (searchTerm === null)
7063
+ throw new Error("The parameter 'searchTerm' cannot be null.");
7064
+ else if (searchTerm !== undefined)
7065
+ url_ += "searchTerm=" + encodeURIComponent("" + searchTerm) + "&";
7066
+ if (sortOrder === null)
7067
+ throw new Error("The parameter 'sortOrder' cannot be null.");
7068
+ else if (sortOrder !== undefined)
7069
+ url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
7070
+ url_ = url_.replace(/[?&]$/, "");
7071
+ let options_ = {
7072
+ method: "GET",
7073
+ headers: {
7074
+ "Accept": "application/json"
7075
+ }
7076
+ };
7077
+ return this.http.fetch(url_, options_).then((_response) => {
7078
+ return this.processGetAllSecondaryLinkEvergreenShareClasses(_response);
7079
+ });
7080
+ }
7081
+ processGetAllSecondaryLinkEvergreenShareClasses(response) {
7082
+ const status = response.status;
7083
+ let _headers = {};
7084
+ if (response.headers && response.headers.forEach) {
7085
+ response.headers.forEach((v, k) => _headers[k] = v);
7086
+ }
7087
+ ;
7088
+ if (status === 200) {
7089
+ return response.text().then((_responseText) => {
7090
+ let result200 = null;
7091
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7092
+ result200 = EvergreenShareClassesApiResponse.fromJS(resultData200);
7093
+ return result200;
7094
+ });
7095
+ }
7096
+ else if (status === 403) {
7097
+ return response.text().then((_responseText) => {
7098
+ let result403 = null;
7099
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7100
+ result403 = ProblemDetails.fromJS(resultData403);
7101
+ return throwException("Access denied.", status, _responseText, _headers, result403);
7102
+ });
7103
+ }
7104
+ else if (status !== 200 && status !== 204) {
7105
+ return response.text().then((_responseText) => {
7106
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7107
+ });
7108
+ }
7109
+ return Promise.resolve(null);
7110
+ }
6567
7111
  /**
6568
7112
  * Get the API version
6569
7113
  * @return Returns the API version
@@ -8422,6 +8966,318 @@ export class EventInfo {
8422
8966
  return data;
8423
8967
  }
8424
8968
  }
8969
+ /** Represents an evergreen fund. */
8970
+ export class EvergreenFund {
8971
+ constructor(data) {
8972
+ if (data) {
8973
+ for (var property in data) {
8974
+ if (data.hasOwnProperty(property))
8975
+ this[property] = data[property];
8976
+ }
8977
+ }
8978
+ }
8979
+ init(_data) {
8980
+ if (_data) {
8981
+ this.id = _data["id"];
8982
+ this.fundName = _data["fundName"];
8983
+ this.manager = _data["manager"];
8984
+ this.inception = _data["inception"];
8985
+ this.dealTypeFocus = _data["dealTypeFocus"];
8986
+ this.strategyFocus = _data["strategyFocus"];
8987
+ this.managementFee = _data["managementFee"];
8988
+ this.fundType = _data["fundType"];
8989
+ this.registration = _data["registration"];
8990
+ this.repurchaseFrequency = _data["repurchaseFrequency"];
8991
+ this.subscriptionFrequency = _data["subscriptionFrequency"];
8992
+ }
8993
+ }
8994
+ static fromJS(data) {
8995
+ data = typeof data === 'object' ? data : {};
8996
+ let result = new EvergreenFund();
8997
+ result.init(data);
8998
+ return result;
8999
+ }
9000
+ toJSON(data) {
9001
+ data = typeof data === 'object' ? data : {};
9002
+ data["id"] = this.id;
9003
+ data["fundName"] = this.fundName;
9004
+ data["manager"] = this.manager;
9005
+ data["inception"] = this.inception;
9006
+ data["dealTypeFocus"] = this.dealTypeFocus;
9007
+ data["strategyFocus"] = this.strategyFocus;
9008
+ data["managementFee"] = this.managementFee;
9009
+ data["fundType"] = this.fundType;
9010
+ data["registration"] = this.registration;
9011
+ data["repurchaseFrequency"] = this.repurchaseFrequency;
9012
+ data["subscriptionFrequency"] = this.subscriptionFrequency;
9013
+ return data;
9014
+ }
9015
+ }
9016
+ export class EvergreenFundApiResponse {
9017
+ constructor(data) {
9018
+ if (data) {
9019
+ for (var property in data) {
9020
+ if (data.hasOwnProperty(property))
9021
+ this[property] = data[property];
9022
+ }
9023
+ }
9024
+ }
9025
+ init(_data) {
9026
+ if (_data) {
9027
+ if (Array.isArray(_data["items"])) {
9028
+ this.items = [];
9029
+ for (let item of _data["items"])
9030
+ this.items.push(EvergreenFund.fromJS(item));
9031
+ }
9032
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
9033
+ }
9034
+ }
9035
+ static fromJS(data) {
9036
+ data = typeof data === 'object' ? data : {};
9037
+ let result = new EvergreenFundApiResponse();
9038
+ result.init(data);
9039
+ return result;
9040
+ }
9041
+ toJSON(data) {
9042
+ data = typeof data === 'object' ? data : {};
9043
+ if (Array.isArray(this.items)) {
9044
+ data["items"] = [];
9045
+ for (let item of this.items)
9046
+ data["items"].push(item.toJSON());
9047
+ }
9048
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
9049
+ return data;
9050
+ }
9051
+ }
9052
+ /** Represents news data for an evergreen fund. */
9053
+ export class EvergreenNews {
9054
+ constructor(data) {
9055
+ if (data) {
9056
+ for (var property in data) {
9057
+ if (data.hasOwnProperty(property))
9058
+ this[property] = data[property];
9059
+ }
9060
+ }
9061
+ }
9062
+ init(_data) {
9063
+ if (_data) {
9064
+ this.id = _data["id"];
9065
+ this.evergreenFundId = _data["evergreenFundId"];
9066
+ this.fundName = _data["fundName"];
9067
+ this.title = _data["title"];
9068
+ this.strap = _data["strap"];
9069
+ this.url = _data["url"];
9070
+ this.article = _data["article"];
9071
+ this.publishDate = _data["publishDate"] ? new Date(_data["publishDate"].toString()) : undefined;
9072
+ }
9073
+ }
9074
+ static fromJS(data) {
9075
+ data = typeof data === 'object' ? data : {};
9076
+ let result = new EvergreenNews();
9077
+ result.init(data);
9078
+ return result;
9079
+ }
9080
+ toJSON(data) {
9081
+ data = typeof data === 'object' ? data : {};
9082
+ data["id"] = this.id;
9083
+ data["evergreenFundId"] = this.evergreenFundId;
9084
+ data["fundName"] = this.fundName;
9085
+ data["title"] = this.title;
9086
+ data["strap"] = this.strap;
9087
+ data["url"] = this.url;
9088
+ data["article"] = this.article;
9089
+ data["publishDate"] = this.publishDate ? formatDate(this.publishDate) : undefined;
9090
+ return data;
9091
+ }
9092
+ }
9093
+ export class EvergreenNewsApiResponse {
9094
+ constructor(data) {
9095
+ if (data) {
9096
+ for (var property in data) {
9097
+ if (data.hasOwnProperty(property))
9098
+ this[property] = data[property];
9099
+ }
9100
+ }
9101
+ }
9102
+ init(_data) {
9103
+ if (_data) {
9104
+ if (Array.isArray(_data["items"])) {
9105
+ this.items = [];
9106
+ for (let item of _data["items"])
9107
+ this.items.push(EvergreenNews.fromJS(item));
9108
+ }
9109
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
9110
+ }
9111
+ }
9112
+ static fromJS(data) {
9113
+ data = typeof data === 'object' ? data : {};
9114
+ let result = new EvergreenNewsApiResponse();
9115
+ result.init(data);
9116
+ return result;
9117
+ }
9118
+ toJSON(data) {
9119
+ data = typeof data === 'object' ? data : {};
9120
+ if (Array.isArray(this.items)) {
9121
+ data["items"] = [];
9122
+ for (let item of this.items)
9123
+ data["items"].push(item.toJSON());
9124
+ }
9125
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
9126
+ return data;
9127
+ }
9128
+ }
9129
+ /** Represents returns data for an evergreen fund. */
9130
+ export class EvergreenReturns {
9131
+ constructor(data) {
9132
+ if (data) {
9133
+ for (var property in data) {
9134
+ if (data.hasOwnProperty(property))
9135
+ this[property] = data[property];
9136
+ }
9137
+ }
9138
+ }
9139
+ init(_data) {
9140
+ if (_data) {
9141
+ this.id = _data["id"];
9142
+ this.evergreenFundId = _data["evergreenFundId"];
9143
+ this.fundName = _data["fundName"];
9144
+ this.sinceInception = _data["sinceInception"];
9145
+ this.oneYear = _data["oneYear"];
9146
+ }
9147
+ }
9148
+ static fromJS(data) {
9149
+ data = typeof data === 'object' ? data : {};
9150
+ let result = new EvergreenReturns();
9151
+ result.init(data);
9152
+ return result;
9153
+ }
9154
+ toJSON(data) {
9155
+ data = typeof data === 'object' ? data : {};
9156
+ data["id"] = this.id;
9157
+ data["evergreenFundId"] = this.evergreenFundId;
9158
+ data["fundName"] = this.fundName;
9159
+ data["sinceInception"] = this.sinceInception;
9160
+ data["oneYear"] = this.oneYear;
9161
+ return data;
9162
+ }
9163
+ }
9164
+ export class EvergreenReturnsApiResponse {
9165
+ constructor(data) {
9166
+ if (data) {
9167
+ for (var property in data) {
9168
+ if (data.hasOwnProperty(property))
9169
+ this[property] = data[property];
9170
+ }
9171
+ }
9172
+ }
9173
+ init(_data) {
9174
+ if (_data) {
9175
+ if (Array.isArray(_data["items"])) {
9176
+ this.items = [];
9177
+ for (let item of _data["items"])
9178
+ this.items.push(EvergreenReturns.fromJS(item));
9179
+ }
9180
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
9181
+ }
9182
+ }
9183
+ static fromJS(data) {
9184
+ data = typeof data === 'object' ? data : {};
9185
+ let result = new EvergreenReturnsApiResponse();
9186
+ result.init(data);
9187
+ return result;
9188
+ }
9189
+ toJSON(data) {
9190
+ data = typeof data === 'object' ? data : {};
9191
+ if (Array.isArray(this.items)) {
9192
+ data["items"] = [];
9193
+ for (let item of this.items)
9194
+ data["items"].push(item.toJSON());
9195
+ }
9196
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
9197
+ return data;
9198
+ }
9199
+ }
9200
+ /** Represents share class data for an evergreen fund. */
9201
+ export class EvergreenShareClasses {
9202
+ constructor(data) {
9203
+ if (data) {
9204
+ for (var property in data) {
9205
+ if (data.hasOwnProperty(property))
9206
+ this[property] = data[property];
9207
+ }
9208
+ }
9209
+ }
9210
+ init(_data) {
9211
+ if (_data) {
9212
+ this.id = _data["id"];
9213
+ this.evergreenFundId = _data["evergreenFundId"];
9214
+ this.fundName = _data["fundName"];
9215
+ this.shareClassTicker = _data["shareClassTicker"];
9216
+ this.minInvestmentSize = _data["minInvestmentSize"];
9217
+ this.minSubsequentInvestment = _data["minSubsequentInvestment"];
9218
+ this.salesLoad = _data["salesLoad"];
9219
+ this.distributionAndServicingFee = _data["distributionAndServicingFee"];
9220
+ this.earlyRepurchaseOrRedemptionFee = _data["earlyRepurchaseOrRedemptionFee"];
9221
+ this.status = _data["status"];
9222
+ }
9223
+ }
9224
+ static fromJS(data) {
9225
+ data = typeof data === 'object' ? data : {};
9226
+ let result = new EvergreenShareClasses();
9227
+ result.init(data);
9228
+ return result;
9229
+ }
9230
+ toJSON(data) {
9231
+ data = typeof data === 'object' ? data : {};
9232
+ data["id"] = this.id;
9233
+ data["evergreenFundId"] = this.evergreenFundId;
9234
+ data["fundName"] = this.fundName;
9235
+ data["shareClassTicker"] = this.shareClassTicker;
9236
+ data["minInvestmentSize"] = this.minInvestmentSize;
9237
+ data["minSubsequentInvestment"] = this.minSubsequentInvestment;
9238
+ data["salesLoad"] = this.salesLoad;
9239
+ data["distributionAndServicingFee"] = this.distributionAndServicingFee;
9240
+ data["earlyRepurchaseOrRedemptionFee"] = this.earlyRepurchaseOrRedemptionFee;
9241
+ data["status"] = this.status;
9242
+ return data;
9243
+ }
9244
+ }
9245
+ export class EvergreenShareClassesApiResponse {
9246
+ constructor(data) {
9247
+ if (data) {
9248
+ for (var property in data) {
9249
+ if (data.hasOwnProperty(property))
9250
+ this[property] = data[property];
9251
+ }
9252
+ }
9253
+ }
9254
+ init(_data) {
9255
+ if (_data) {
9256
+ if (Array.isArray(_data["items"])) {
9257
+ this.items = [];
9258
+ for (let item of _data["items"])
9259
+ this.items.push(EvergreenShareClasses.fromJS(item));
9260
+ }
9261
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
9262
+ }
9263
+ }
9264
+ static fromJS(data) {
9265
+ data = typeof data === 'object' ? data : {};
9266
+ let result = new EvergreenShareClassesApiResponse();
9267
+ result.init(data);
9268
+ return result;
9269
+ }
9270
+ toJSON(data) {
9271
+ data = typeof data === 'object' ? data : {};
9272
+ if (Array.isArray(this.items)) {
9273
+ data["items"] = [];
9274
+ for (let item of this.items)
9275
+ data["items"].push(item.toJSON());
9276
+ }
9277
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
9278
+ return data;
9279
+ }
9280
+ }
8425
9281
  /** Represents a fee structure that can be associated with either a registered fund or a share class. */
8426
9282
  export class FeeStructure {
8427
9283
  constructor(data) {
@@ -14389,6 +15245,26 @@ export var SortOrder19;
14389
15245
  SortOrder19["Ascending"] = "Ascending";
14390
15246
  SortOrder19["Descending"] = "Descending";
14391
15247
  })(SortOrder19 || (SortOrder19 = {}));
15248
+ export var SortOrder20;
15249
+ (function (SortOrder20) {
15250
+ SortOrder20["Ascending"] = "Ascending";
15251
+ SortOrder20["Descending"] = "Descending";
15252
+ })(SortOrder20 || (SortOrder20 = {}));
15253
+ export var SortOrder21;
15254
+ (function (SortOrder21) {
15255
+ SortOrder21["Ascending"] = "Ascending";
15256
+ SortOrder21["Descending"] = "Descending";
15257
+ })(SortOrder21 || (SortOrder21 = {}));
15258
+ export var SortOrder22;
15259
+ (function (SortOrder22) {
15260
+ SortOrder22["Ascending"] = "Ascending";
15261
+ SortOrder22["Descending"] = "Descending";
15262
+ })(SortOrder22 || (SortOrder22 = {}));
15263
+ export var SortOrder23;
15264
+ (function (SortOrder23) {
15265
+ SortOrder23["Ascending"] = "Ascending";
15266
+ SortOrder23["Descending"] = "Descending";
15267
+ })(SortOrder23 || (SortOrder23 = {}));
14392
15268
  export var EventType;
14393
15269
  (function (EventType) {
14394
15270
  EventType["PreIPOCompany"] = "PreIPOCompany";
@@ -14399,6 +15275,9 @@ export var EventType;
14399
15275
  EventType["InvestorSubscriptionAction"] = "InvestorSubscriptionAction";
14400
15276
  EventType["SubscriptionStatus"] = "SubscriptionStatus";
14401
15277
  EventType["RegisteredFundSubscriptionStatus"] = "RegisteredFundSubscriptionStatus";
15278
+ EventType["PreIPOCompanySPVUpdate"] = "PreIPOCompanySPVUpdate";
15279
+ EventType["PreIPOCompanySPVDocumentUpdate"] = "PreIPOCompanySPVDocumentUpdate";
15280
+ EventType["PreIPOCompanySPVSubscriptionActionDefinitionUpdate"] = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate";
14402
15281
  })(EventType || (EventType = {}));
14403
15282
  export var DeliveryStatus;
14404
15283
  (function (DeliveryStatus) {
@@ -15474,6 +16353,9 @@ export var WebhookEventEventType;
15474
16353
  WebhookEventEventType["InvestorSubscriptionAction"] = "InvestorSubscriptionAction";
15475
16354
  WebhookEventEventType["SubscriptionStatus"] = "SubscriptionStatus";
15476
16355
  WebhookEventEventType["RegisteredFundSubscriptionStatus"] = "RegisteredFundSubscriptionStatus";
16356
+ WebhookEventEventType["PreIPOCompanySPVUpdate"] = "PreIPOCompanySPVUpdate";
16357
+ WebhookEventEventType["PreIPOCompanySPVDocumentUpdate"] = "PreIPOCompanySPVDocumentUpdate";
16358
+ WebhookEventEventType["PreIPOCompanySPVSubscriptionActionDefinitionUpdate"] = "PreIPOCompanySPVSubscriptionActionDefinitionUpdate";
15477
16359
  })(WebhookEventEventType || (WebhookEventEventType = {}));
15478
16360
  function formatDate(d) {
15479
16361
  return d.getFullYear() + '-' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monarkmarkets/api-client",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",