@monarkmarkets/api-client 1.3.39 → 1.3.41

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
@@ -918,11 +918,12 @@ export declare class Client {
918
918
  Defaults to 1 if not specified.
919
919
  * @param pageSize (optional) Size of the page to retrieve.
920
920
  Defaults to 25 if not specified.
921
+ * @param includeDocuments (optional) Optional flag to include associated documents.
921
922
  * @param sortOrder (optional)
922
923
  * @param sortBy (optional)
923
924
  * @return OK
924
925
  */
925
- getAllPreIPOCompanySPVs(investorId: string, monarkStage: MonarkStage | undefined, exemptionsClaimed: ExemptionsClaimed[] | undefined, nameFilter: string | undefined, preIPOCompanyId: string | undefined, preIPOCompanyInvestmentId: string | undefined, isApproved: boolean | undefined, page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder15 | undefined, sortBy: SortBy2 | undefined): Promise<PreIPOCompanySPVApiResponse>;
926
+ getAllPreIPOCompanySPVs(investorId: string, monarkStage: MonarkStage | undefined, exemptionsClaimed: ExemptionsClaimed[] | undefined, nameFilter: string | undefined, preIPOCompanyId: string | undefined, preIPOCompanyInvestmentId: string | undefined, isApproved: boolean | undefined, page: number | undefined, pageSize: number | undefined, includeDocuments: boolean | undefined, sortOrder: SortOrder15 | undefined, sortBy: SortBy2 | undefined): Promise<PreIPOCompanySPVApiResponse>;
926
927
  protected processGetAllPreIPOCompanySPVs(response: Response): Promise<PreIPOCompanySPVApiResponse>;
927
928
  /**
928
929
  * Gets all Financial Institutions that have access to a specific SPV
@@ -1095,9 +1096,10 @@ export declare class Client {
1095
1096
  * @param sortOrder (optional) Which way to sort order, defaults to Descending.
1096
1097
  * @param financialInstitutionId (optional) Optional financial institution ID for access control.
1097
1098
  * @param assetClass (optional) Optional asset class to filter registered funds by asset class.
1099
+ * @param includeDocuments (optional) Optional flag to include associated documents.
1098
1100
  * @return OK
1099
1101
  */
1100
- getAllRegisteredFunds(page: number | undefined, pageSize: number | undefined, searchTerm: string | undefined, sortOrder: SortOrder19 | undefined, financialInstitutionId: string | undefined, assetClass: string | undefined): Promise<RegisteredFundApiResponse>;
1102
+ getAllRegisteredFunds(page: number | undefined, pageSize: number | undefined, searchTerm: string | undefined, sortOrder: SortOrder19 | undefined, financialInstitutionId: string | undefined, assetClass: string | undefined, includeDocuments: boolean | undefined): Promise<RegisteredFundApiResponse>;
1101
1103
  protected processGetAllRegisteredFunds(response: Response): Promise<RegisteredFundApiResponse>;
1102
1104
  /**
1103
1105
  * Gets a SecondaryLink Evergreen Fund by ID.
@@ -1212,9 +1214,11 @@ export declare class Client {
1212
1214
  * @param status (optional) Optional: Filter by order status.
1213
1215
  * @param referenceId (optional) Optional: Filter by order reference ID.
1214
1216
  * @param managerId (optional) Optional: Filter by manager ID. For SPVs, filters by Manager. For RegisteredFunds, filters by Fund Manager.
1217
+ * @param includeDocuments (optional) Optional flag to include associated documents.
1218
+ * @param side (optional) Optional: Filter by transaction side. (Currently only supported for registered funds)
1215
1219
  * @return OK
1216
1220
  */
1217
- getTransactions(targetAssetType: TargetAssetType, page: number | undefined, pageSize: number | undefined, targetId: string | undefined, investorId: string | undefined, status: string | undefined, referenceId: string | undefined, managerId: string | undefined): Promise<TransactionApiResponse>;
1221
+ getTransactions(targetAssetType: TargetAssetType, page: number | undefined, pageSize: number | undefined, targetId: string | undefined, investorId: string | undefined, status: string | undefined, referenceId: string | undefined, managerId: string | undefined, includeDocuments: boolean | undefined, side: Side | undefined): Promise<TransactionApiResponse>;
1218
1222
  protected processGetTransactions(response: Response): Promise<TransactionApiResponse>;
1219
1223
  /**
1220
1224
  * Update an existing transaction.
@@ -1239,18 +1243,20 @@ export declare class Client {
1239
1243
  Defaults to 1 if not specified.
1240
1244
  * @param pageSize (optional) Size of the page to retrieve.
1241
1245
  Defaults to 25 if not specified.
1246
+ * @param includeDocuments (optional) Optional flag to include associated documents.
1242
1247
  * @return OK
1243
1248
  */
1244
- getTransactionsByInvestor(investorId: string, targetAssetType: TargetAssetType2 | undefined, page: number | undefined, pageSize: number | undefined): Promise<TransactionApiResponse>;
1249
+ getTransactionsByInvestor(investorId: string, targetAssetType: TargetAssetType2 | undefined, page: number | undefined, pageSize: number | undefined, includeDocuments: boolean | undefined): Promise<TransactionApiResponse>;
1245
1250
  protected processGetTransactionsByInvestor(response: Response): Promise<TransactionApiResponse>;
1246
1251
  /**
1247
1252
  * Get a specific transaction for an investor by target ID.
1248
1253
  * @param investorId The investor ID.
1249
1254
  * @param targetId The target ID (SPV ID, Fund ID, etc.).
1250
1255
  * @param targetAssetType (optional) Required: The asset type (PreIPOCompanySPV or RegisteredFund).
1256
+ * @param includeDocuments (optional) Optional flag to include associated documents.
1251
1257
  * @return OK
1252
1258
  */
1253
- getTransactionByInvestorAndTargetId(investorId: string, targetId: string, targetAssetType: TargetAssetType3 | undefined): Promise<Transaction>;
1259
+ getTransactionByInvestorAndTargetId(investorId: string, targetId: string, targetAssetType: TargetAssetType3 | undefined, includeDocuments: boolean | undefined): Promise<Transaction>;
1254
1260
  protected processGetTransactionByInvestorAndTargetId(response: Response): Promise<Transaction>;
1255
1261
  /**
1256
1262
  * Update a transaction's reference ID.
@@ -1296,6 +1302,57 @@ export declare class Client {
1296
1302
  */
1297
1303
  getVersion(): Promise<ApiVersion>;
1298
1304
  protected processGetVersion(response: Response): Promise<ApiVersion>;
1305
+ /**
1306
+ * Create or update a watchlist item.
1307
+ * @param body (optional) Watchlist item creation/update information.
1308
+ * @return The watchlist item was updated (already existed).
1309
+ */
1310
+ createOrUpdate(body: CreateWatchlist | undefined): Promise<Watchlist>;
1311
+ protected processCreateOrUpdate(response: Response): Promise<Watchlist>;
1312
+ /**
1313
+ * Get all watchlist items with optional filters.
1314
+ * @param investorId (optional) Optional investor ID to filter watchlist items.
1315
+ * @param advisorId (optional) Optional advisor ID to filter watchlist items.
1316
+ * @param targetId (optional) Optional target asset ID to filter watchlist items.
1317
+ * @param targetAssetType (optional) Optional target asset type to filter watchlist items.
1318
+ * @param pageNumber (optional) Page number for pagination (default: 1).
1319
+ * @param pageSize (optional) Page size for pagination (default: 25).
1320
+ * @return Returns the paginated list of watchlist items.
1321
+ */
1322
+ getAll(investorId: string | undefined, advisorId: string | undefined, targetId: string | undefined, targetAssetType: TargetAssetType5 | undefined, pageNumber: number | undefined, pageSize: number | undefined): Promise<WatchlistApiResponse>;
1323
+ protected processGetAll(response: Response): Promise<WatchlistApiResponse>;
1324
+ /**
1325
+ * Get a watchlist item by investor ID and target ID.
1326
+ * @param investorId The investor ID.
1327
+ * @param targetId The target asset ID.
1328
+ * @return Returns the watchlist item.
1329
+ */
1330
+ getByInvestorAndTarget(investorId: string, targetId: string): Promise<Watchlist>;
1331
+ protected processGetByInvestorAndTarget(response: Response): Promise<Watchlist>;
1332
+ /**
1333
+ * Delete a watchlist item by investor ID and target ID.
1334
+ * @param investorId The investor ID.
1335
+ * @param targetId The target asset ID.
1336
+ * @return Watchlist item deleted successfully.
1337
+ */
1338
+ delete(investorId: string, targetId: string): Promise<void>;
1339
+ protected processDelete(response: Response): Promise<void>;
1340
+ /**
1341
+ * Get a watchlist item by advisor ID and target ID.
1342
+ * @param advisorId The advisor ID.
1343
+ * @param targetId The target asset ID.
1344
+ * @return Returns the watchlist item.
1345
+ */
1346
+ getByAdvisorAndTarget(advisorId: string, targetId: string): Promise<Watchlist>;
1347
+ protected processGetByAdvisorAndTarget(response: Response): Promise<Watchlist>;
1348
+ /**
1349
+ * Delete a watchlist item by advisor ID and target ID.
1350
+ * @param advisorId The advisor ID.
1351
+ * @param targetId The target asset ID.
1352
+ * @return Watchlist item deleted successfully.
1353
+ */
1354
+ deleteByAdvisor(advisorId: string, targetId: string): Promise<void>;
1355
+ protected processDeleteByAdvisor(response: Response): Promise<void>;
1299
1356
  /**
1300
1357
  * Create a Webhook
1301
1358
  * @param body (optional) Create Webhook information.
@@ -2252,7 +2309,11 @@ export declare class CreateTransaction implements ICreateTransaction {
2252
2309
  /** ID of the Investor associated with this Order. */
2253
2310
  investorId: string;
2254
2311
  /** Describes the amount, in dollars, an Investor intends to invest into a Target. */
2255
- amountReservedDollars: number;
2312
+ amountReservedDollars?: number | undefined;
2313
+ /** Described the amount, in shares, an investor can redeem from a Target. */
2314
+ amountShares?: number | undefined;
2315
+ /** Describes whether the transaction is a full exit in terms of redemption. */
2316
+ isFullExit?: boolean | undefined;
2256
2317
  /** The reference ID of an order submitted. */
2257
2318
  referenceId?: string | undefined;
2258
2319
  constructor(data?: ICreateTransaction);
@@ -2270,10 +2331,40 @@ export interface ICreateTransaction {
2270
2331
  /** ID of the Investor associated with this Order. */
2271
2332
  investorId: string;
2272
2333
  /** Describes the amount, in dollars, an Investor intends to invest into a Target. */
2273
- amountReservedDollars: number;
2334
+ amountReservedDollars?: number | undefined;
2335
+ /** Described the amount, in shares, an investor can redeem from a Target. */
2336
+ amountShares?: number | undefined;
2337
+ /** Describes whether the transaction is a full exit in terms of redemption. */
2338
+ isFullExit?: boolean | undefined;
2274
2339
  /** The reference ID of an order submitted. */
2275
2340
  referenceId?: string | undefined;
2276
2341
  }
2342
+ /** CreateWatchlist represents the request to create or update a watchlist item. */
2343
+ export declare class CreateWatchlist implements ICreateWatchlist {
2344
+ /** Represents the unique ID, provided by Monark, associated with the Investor who is adding this item to their watchlist. */
2345
+ investorId?: string | undefined;
2346
+ /** Represents the unique ID, provided by Monark, associated with the Financial Advisor who is adding this item to their watchlist. */
2347
+ advisorId?: string | undefined;
2348
+ /** The unique ID of the target asset (company, fund, etc.) that the watchlist item is for. */
2349
+ targetId: string;
2350
+ /** The asset type of the target being watched (PreIPOCompany, PreIPOCompanySPV, RegisteredFund, etc.) */
2351
+ targetAssetType?: CreateWatchlistTargetAssetType;
2352
+ constructor(data?: ICreateWatchlist);
2353
+ init(_data?: any): void;
2354
+ static fromJS(data: any): CreateWatchlist;
2355
+ toJSON(data?: any): any;
2356
+ }
2357
+ /** CreateWatchlist represents the request to create or update a watchlist item. */
2358
+ export interface ICreateWatchlist {
2359
+ /** Represents the unique ID, provided by Monark, associated with the Investor who is adding this item to their watchlist. */
2360
+ investorId?: string | undefined;
2361
+ /** Represents the unique ID, provided by Monark, associated with the Financial Advisor who is adding this item to their watchlist. */
2362
+ advisorId?: string | undefined;
2363
+ /** The unique ID of the target asset (company, fund, etc.) that the watchlist item is for. */
2364
+ targetId: string;
2365
+ /** The asset type of the target being watched (PreIPOCompany, PreIPOCompanySPV, RegisteredFund, etc.) */
2366
+ targetAssetType?: CreateWatchlistTargetAssetType;
2367
+ }
2277
2368
  export declare class CreateWebhook implements ICreateWebhook {
2278
2369
  /** The delivery url for the webhook */
2279
2370
  url: string;
@@ -7135,6 +7226,8 @@ export declare class Transaction implements ITransaction {
7135
7226
  companyName?: string | undefined;
7136
7227
  /** The reference ID of an order submitted. */
7137
7228
  referenceId?: string | undefined;
7229
+ /** Indicates if this order is a full exit. */
7230
+ isFullExit?: boolean | undefined;
7138
7231
  /** Optional list of documents associated with this transaction. */
7139
7232
  documents?: DocumentV2[] | undefined;
7140
7233
  constructor(data?: ITransaction);
@@ -7177,6 +7270,8 @@ export interface ITransaction {
7177
7270
  companyName?: string | undefined;
7178
7271
  /** The reference ID of an order submitted. */
7179
7272
  referenceId?: string | undefined;
7273
+ /** Indicates if this order is a full exit. */
7274
+ isFullExit?: boolean | undefined;
7180
7275
  /** Optional list of documents associated with this transaction. */
7181
7276
  documents?: DocumentV2[] | undefined;
7182
7277
  }
@@ -8144,7 +8239,11 @@ export declare class UpdateTransaction implements IUpdateTransaction {
8144
8239
  /** ID of the Investor associated with this Order. */
8145
8240
  investorId: string;
8146
8241
  /** Describes the amount, in dollars, an Investor intends to invest into a Target. */
8147
- amountReservedDollars: number;
8242
+ amountReservedDollars?: number | undefined;
8243
+ /** Described the amount, in shares, an investor can redeem from a Target. */
8244
+ amountShares?: number | undefined;
8245
+ /** Describes whether the transaction is a full exit in terms of redemption. */
8246
+ isFullExit?: boolean | undefined;
8148
8247
  /** ID of the Order to edit. */
8149
8248
  id: string;
8150
8249
  /** The type of asset being targeted with this Order. */
@@ -8162,7 +8261,11 @@ export interface IUpdateTransaction {
8162
8261
  /** ID of the Investor associated with this Order. */
8163
8262
  investorId: string;
8164
8263
  /** Describes the amount, in dollars, an Investor intends to invest into a Target. */
8165
- amountReservedDollars: number;
8264
+ amountReservedDollars?: number | undefined;
8265
+ /** Described the amount, in shares, an investor can redeem from a Target. */
8266
+ amountShares?: number | undefined;
8267
+ /** Describes whether the transaction is a full exit in terms of redemption. */
8268
+ isFullExit?: boolean | undefined;
8166
8269
  /** ID of the Order to edit. */
8167
8270
  id: string;
8168
8271
  /** The type of asset being targeted with this Order. */
@@ -8214,6 +8317,52 @@ export interface IUpdateWebhook {
8214
8317
  /** Flag to dictate if the webhook should be sent events. */
8215
8318
  isActive?: boolean;
8216
8319
  }
8320
+ /** Watchlist represents a user's subscription to future updates about a given company. */
8321
+ export declare class Watchlist implements IWatchlist {
8322
+ /** Unique ID associated with this watchlist item. */
8323
+ id?: string;
8324
+ /** Represents the unique ID, provided by Monark, associated with the Investor who added this item to their watchlist. */
8325
+ investorId?: string | undefined;
8326
+ /** Represents the unique ID, provided by Monark, associated with the Financial Advisor who added this item to their watchlist. */
8327
+ advisorId?: string | undefined;
8328
+ /** The unique ID of the target asset (company, fund, etc.) that the watchlist item is for. */
8329
+ targetId?: string;
8330
+ /** The asset type of the target being watched (PreIPOCompany, PreIPOCompanySPV, RegisteredFund, etc.) */
8331
+ targetAssetType?: WatchlistTargetAssetType;
8332
+ /** The name of the target asset (for display purposes). */
8333
+ targetName?: string | undefined;
8334
+ constructor(data?: IWatchlist);
8335
+ init(_data?: any): void;
8336
+ static fromJS(data: any): Watchlist;
8337
+ toJSON(data?: any): any;
8338
+ }
8339
+ /** Watchlist represents a user's subscription to future updates about a given company. */
8340
+ export interface IWatchlist {
8341
+ /** Unique ID associated with this watchlist item. */
8342
+ id?: string;
8343
+ /** Represents the unique ID, provided by Monark, associated with the Investor who added this item to their watchlist. */
8344
+ investorId?: string | undefined;
8345
+ /** Represents the unique ID, provided by Monark, associated with the Financial Advisor who added this item to their watchlist. */
8346
+ advisorId?: string | undefined;
8347
+ /** The unique ID of the target asset (company, fund, etc.) that the watchlist item is for. */
8348
+ targetId?: string;
8349
+ /** The asset type of the target being watched (PreIPOCompany, PreIPOCompanySPV, RegisteredFund, etc.) */
8350
+ targetAssetType?: WatchlistTargetAssetType;
8351
+ /** The name of the target asset (for display purposes). */
8352
+ targetName?: string | undefined;
8353
+ }
8354
+ export declare class WatchlistApiResponse implements IWatchlistApiResponse {
8355
+ items?: Watchlist[] | undefined;
8356
+ pagination?: Pagination | undefined;
8357
+ constructor(data?: IWatchlistApiResponse);
8358
+ init(_data?: any): void;
8359
+ static fromJS(data: any): WatchlistApiResponse;
8360
+ toJSON(data?: any): any;
8361
+ }
8362
+ export interface IWatchlistApiResponse {
8363
+ items?: Watchlist[] | undefined;
8364
+ pagination?: Pagination | undefined;
8365
+ }
8217
8366
  export declare class Webhook implements IWebhook {
8218
8367
  /** Unique ID associated with a Webhook. */
8219
8368
  id?: string;
@@ -8619,6 +8768,10 @@ export declare enum TargetAssetType {
8619
8768
  RegisteredFund = "RegisteredFund",
8620
8769
  PreIPOCompany = "PreIPOCompany"
8621
8770
  }
8771
+ export declare enum Side {
8772
+ Subscription = "Subscription",
8773
+ Redemption = "Redemption"
8774
+ }
8622
8775
  export declare enum TargetAssetType2 {
8623
8776
  PreIPOCompanySPV = "PreIPOCompanySPV",
8624
8777
  RegisteredFund = "RegisteredFund",
@@ -8634,6 +8787,11 @@ export declare enum TargetAssetType4 {
8634
8787
  RegisteredFund = "RegisteredFund",
8635
8788
  PreIPOCompany = "PreIPOCompany"
8636
8789
  }
8790
+ export declare enum TargetAssetType5 {
8791
+ PreIPOCompanySPV = "PreIPOCompanySPV",
8792
+ RegisteredFund = "RegisteredFund",
8793
+ PreIPOCompany = "PreIPOCompany"
8794
+ }
8637
8795
  export declare enum SortOrder24 {
8638
8796
  Ascending = "Ascending",
8639
8797
  Descending = "Descending"
@@ -8816,6 +8974,11 @@ export declare enum CreateTransactionSide {
8816
8974
  Subscription = "Subscription",
8817
8975
  Redemption = "Redemption"
8818
8976
  }
8977
+ export declare enum CreateWatchlistTargetAssetType {
8978
+ PreIPOCompanySPV = "PreIPOCompanySPV",
8979
+ RegisteredFund = "RegisteredFund",
8980
+ PreIPOCompany = "PreIPOCompany"
8981
+ }
8819
8982
  export declare enum DocumentType3 {
8820
8983
  BUSINESS_FORMATION = "BUSINESS_FORMATION",
8821
8984
  CERTIFICATE_OF_FORMATION = "CERTIFICATE_OF_FORMATION",
@@ -9836,6 +9999,11 @@ export declare enum UpdateTransactionReferenceTargetAssetType {
9836
9999
  RegisteredFund = "RegisteredFund",
9837
10000
  PreIPOCompany = "PreIPOCompany"
9838
10001
  }
10002
+ export declare enum WatchlistTargetAssetType {
10003
+ PreIPOCompanySPV = "PreIPOCompanySPV",
10004
+ RegisteredFund = "RegisteredFund",
10005
+ PreIPOCompany = "PreIPOCompany"
10006
+ }
9839
10007
  export declare enum WebhookEventDeliveryStatus {
9840
10008
  Pending = "Pending",
9841
10009
  Delivered = "Delivered",
package/dist/Client.js CHANGED
@@ -5851,11 +5851,12 @@ export class Client {
5851
5851
  Defaults to 1 if not specified.
5852
5852
  * @param pageSize (optional) Size of the page to retrieve.
5853
5853
  Defaults to 25 if not specified.
5854
+ * @param includeDocuments (optional) Optional flag to include associated documents.
5854
5855
  * @param sortOrder (optional)
5855
5856
  * @param sortBy (optional)
5856
5857
  * @return OK
5857
5858
  */
5858
- getAllPreIPOCompanySPVs(investorId, monarkStage, exemptionsClaimed, nameFilter, preIPOCompanyId, preIPOCompanyInvestmentId, isApproved, page, pageSize, sortOrder, sortBy) {
5859
+ getAllPreIPOCompanySPVs(investorId, monarkStage, exemptionsClaimed, nameFilter, preIPOCompanyId, preIPOCompanyInvestmentId, isApproved, page, pageSize, includeDocuments, sortOrder, sortBy) {
5859
5860
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv/investor/{investorId}?";
5860
5861
  if (investorId === undefined || investorId === null)
5861
5862
  throw new globalThis.Error("The parameter 'investorId' must be defined.");
@@ -5892,6 +5893,10 @@ export class Client {
5892
5893
  throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
5893
5894
  else if (pageSize !== undefined)
5894
5895
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
5896
+ if (includeDocuments === null)
5897
+ throw new globalThis.Error("The parameter 'includeDocuments' cannot be null.");
5898
+ else if (includeDocuments !== undefined)
5899
+ url_ += "includeDocuments=" + encodeURIComponent("" + includeDocuments) + "&";
5895
5900
  if (sortOrder === null)
5896
5901
  throw new globalThis.Error("The parameter 'sortOrder' cannot be null.");
5897
5902
  else if (sortOrder !== undefined)
@@ -6996,9 +7001,10 @@ export class Client {
6996
7001
  * @param sortOrder (optional) Which way to sort order, defaults to Descending.
6997
7002
  * @param financialInstitutionId (optional) Optional financial institution ID for access control.
6998
7003
  * @param assetClass (optional) Optional asset class to filter registered funds by asset class.
7004
+ * @param includeDocuments (optional) Optional flag to include associated documents.
6999
7005
  * @return OK
7000
7006
  */
7001
- getAllRegisteredFunds(page, pageSize, searchTerm, sortOrder, financialInstitutionId, assetClass) {
7007
+ getAllRegisteredFunds(page, pageSize, searchTerm, sortOrder, financialInstitutionId, assetClass, includeDocuments) {
7002
7008
  let url_ = this.baseUrl + "/primary/v1/registered-fund?";
7003
7009
  if (page === null)
7004
7010
  throw new globalThis.Error("The parameter 'page' cannot be null.");
@@ -7024,6 +7030,10 @@ export class Client {
7024
7030
  throw new globalThis.Error("The parameter 'assetClass' cannot be null.");
7025
7031
  else if (assetClass !== undefined)
7026
7032
  url_ += "assetClass=" + encodeURIComponent("" + assetClass) + "&";
7033
+ if (includeDocuments === null)
7034
+ throw new globalThis.Error("The parameter 'includeDocuments' cannot be null.");
7035
+ else if (includeDocuments !== undefined)
7036
+ url_ += "includeDocuments=" + encodeURIComponent("" + includeDocuments) + "&";
7027
7037
  url_ = url_.replace(/[?&]$/, "");
7028
7038
  let options_ = {
7029
7039
  method: "GET",
@@ -7738,9 +7748,11 @@ export class Client {
7738
7748
  * @param status (optional) Optional: Filter by order status.
7739
7749
  * @param referenceId (optional) Optional: Filter by order reference ID.
7740
7750
  * @param managerId (optional) Optional: Filter by manager ID. For SPVs, filters by Manager. For RegisteredFunds, filters by Fund Manager.
7751
+ * @param includeDocuments (optional) Optional flag to include associated documents.
7752
+ * @param side (optional) Optional: Filter by transaction side. (Currently only supported for registered funds)
7741
7753
  * @return OK
7742
7754
  */
7743
- getTransactions(targetAssetType, page, pageSize, targetId, investorId, status, referenceId, managerId) {
7755
+ getTransactions(targetAssetType, page, pageSize, targetId, investorId, status, referenceId, managerId, includeDocuments, side) {
7744
7756
  let url_ = this.baseUrl + "/primary/v2/transaction?";
7745
7757
  if (targetAssetType === undefined || targetAssetType === null)
7746
7758
  throw new globalThis.Error("The parameter 'targetAssetType' must be defined and cannot be null.");
@@ -7774,6 +7786,14 @@ export class Client {
7774
7786
  throw new globalThis.Error("The parameter 'managerId' cannot be null.");
7775
7787
  else if (managerId !== undefined)
7776
7788
  url_ += "managerId=" + encodeURIComponent("" + managerId) + "&";
7789
+ if (includeDocuments === null)
7790
+ throw new globalThis.Error("The parameter 'includeDocuments' cannot be null.");
7791
+ else if (includeDocuments !== undefined)
7792
+ url_ += "includeDocuments=" + encodeURIComponent("" + includeDocuments) + "&";
7793
+ if (side === null)
7794
+ throw new globalThis.Error("The parameter 'side' cannot be null.");
7795
+ else if (side !== undefined)
7796
+ url_ += "side=" + encodeURIComponent("" + side) + "&";
7777
7797
  url_ = url_.replace(/[?&]$/, "");
7778
7798
  let options_ = {
7779
7799
  method: "GET",
@@ -7962,9 +7982,10 @@ export class Client {
7962
7982
  Defaults to 1 if not specified.
7963
7983
  * @param pageSize (optional) Size of the page to retrieve.
7964
7984
  Defaults to 25 if not specified.
7985
+ * @param includeDocuments (optional) Optional flag to include associated documents.
7965
7986
  * @return OK
7966
7987
  */
7967
- getTransactionsByInvestor(investorId, targetAssetType, page, pageSize) {
7988
+ getTransactionsByInvestor(investorId, targetAssetType, page, pageSize, includeDocuments) {
7968
7989
  let url_ = this.baseUrl + "/primary/v2/transaction/investor/{investorId}?";
7969
7990
  if (investorId === undefined || investorId === null)
7970
7991
  throw new globalThis.Error("The parameter 'investorId' must be defined.");
@@ -7981,6 +8002,10 @@ export class Client {
7981
8002
  throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
7982
8003
  else if (pageSize !== undefined)
7983
8004
  url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
8005
+ if (includeDocuments === null)
8006
+ throw new globalThis.Error("The parameter 'includeDocuments' cannot be null.");
8007
+ else if (includeDocuments !== undefined)
8008
+ url_ += "includeDocuments=" + encodeURIComponent("" + includeDocuments) + "&";
7984
8009
  url_ = url_.replace(/[?&]$/, "");
7985
8010
  let options_ = {
7986
8011
  method: "GET",
@@ -8035,9 +8060,10 @@ export class Client {
8035
8060
  * @param investorId The investor ID.
8036
8061
  * @param targetId The target ID (SPV ID, Fund ID, etc.).
8037
8062
  * @param targetAssetType (optional) Required: The asset type (PreIPOCompanySPV or RegisteredFund).
8063
+ * @param includeDocuments (optional) Optional flag to include associated documents.
8038
8064
  * @return OK
8039
8065
  */
8040
- getTransactionByInvestorAndTargetId(investorId, targetId, targetAssetType) {
8066
+ getTransactionByInvestorAndTargetId(investorId, targetId, targetAssetType, includeDocuments) {
8041
8067
  let url_ = this.baseUrl + "/primary/v2/transaction/investor/{investorId}/target/{targetId}?";
8042
8068
  if (investorId === undefined || investorId === null)
8043
8069
  throw new globalThis.Error("The parameter 'investorId' must be defined.");
@@ -8049,6 +8075,10 @@ export class Client {
8049
8075
  throw new globalThis.Error("The parameter 'targetAssetType' cannot be null.");
8050
8076
  else if (targetAssetType !== undefined)
8051
8077
  url_ += "targetAssetType=" + encodeURIComponent("" + targetAssetType) + "&";
8078
+ if (includeDocuments === null)
8079
+ throw new globalThis.Error("The parameter 'includeDocuments' cannot be null.");
8080
+ else if (includeDocuments !== undefined)
8081
+ url_ += "includeDocuments=" + encodeURIComponent("" + includeDocuments) + "&";
8052
8082
  url_ = url_.replace(/[?&]$/, "");
8053
8083
  let options_ = {
8054
8084
  method: "GET",
@@ -8448,6 +8478,352 @@ export class Client {
8448
8478
  }
8449
8479
  return Promise.resolve(null);
8450
8480
  }
8481
+ /**
8482
+ * Create or update a watchlist item.
8483
+ * @param body (optional) Watchlist item creation/update information.
8484
+ * @return The watchlist item was updated (already existed).
8485
+ */
8486
+ createOrUpdate(body) {
8487
+ let url_ = this.baseUrl + "/primary/v1/watchlist";
8488
+ url_ = url_.replace(/[?&]$/, "");
8489
+ const content_ = JSON.stringify(body);
8490
+ let options_ = {
8491
+ body: content_,
8492
+ method: "POST",
8493
+ headers: {
8494
+ "Content-Type": "application/json",
8495
+ "Accept": "application/json"
8496
+ }
8497
+ };
8498
+ return this.http.fetch(url_, options_).then((_response) => {
8499
+ return this.processCreateOrUpdate(_response);
8500
+ });
8501
+ }
8502
+ processCreateOrUpdate(response) {
8503
+ const status = response.status;
8504
+ let _headers = {};
8505
+ if (response.headers && response.headers.forEach) {
8506
+ response.headers.forEach((v, k) => _headers[k] = v);
8507
+ }
8508
+ ;
8509
+ if (status === 200) {
8510
+ return response.text().then((_responseText) => {
8511
+ let result200 = null;
8512
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8513
+ result200 = Watchlist.fromJS(resultData200);
8514
+ return result200;
8515
+ });
8516
+ }
8517
+ else if (status === 201) {
8518
+ return response.text().then((_responseText) => {
8519
+ let result201 = null;
8520
+ let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8521
+ result201 = Watchlist.fromJS(resultData201);
8522
+ return result201;
8523
+ });
8524
+ }
8525
+ else if (status === 400) {
8526
+ return response.text().then((_responseText) => {
8527
+ let result400 = null;
8528
+ let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8529
+ result400 = ProblemDetails.fromJS(resultData400);
8530
+ return throwException("Bad request if required fields are missing.", status, _responseText, _headers, result400);
8531
+ });
8532
+ }
8533
+ else if (status === 404) {
8534
+ return response.text().then((_responseText) => {
8535
+ let result404 = null;
8536
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8537
+ result404 = ProblemDetails.fromJS(resultData404);
8538
+ return throwException("Target asset or investor/advisor not found.", status, _responseText, _headers, result404);
8539
+ });
8540
+ }
8541
+ else if (status !== 200 && status !== 204) {
8542
+ return response.text().then((_responseText) => {
8543
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8544
+ });
8545
+ }
8546
+ return Promise.resolve(null);
8547
+ }
8548
+ /**
8549
+ * Get all watchlist items with optional filters.
8550
+ * @param investorId (optional) Optional investor ID to filter watchlist items.
8551
+ * @param advisorId (optional) Optional advisor ID to filter watchlist items.
8552
+ * @param targetId (optional) Optional target asset ID to filter watchlist items.
8553
+ * @param targetAssetType (optional) Optional target asset type to filter watchlist items.
8554
+ * @param pageNumber (optional) Page number for pagination (default: 1).
8555
+ * @param pageSize (optional) Page size for pagination (default: 25).
8556
+ * @return Returns the paginated list of watchlist items.
8557
+ */
8558
+ getAll(investorId, advisorId, targetId, targetAssetType, pageNumber, pageSize) {
8559
+ let url_ = this.baseUrl + "/primary/v1/watchlist?";
8560
+ if (investorId === null)
8561
+ throw new globalThis.Error("The parameter 'investorId' cannot be null.");
8562
+ else if (investorId !== undefined)
8563
+ url_ += "investorId=" + encodeURIComponent("" + investorId) + "&";
8564
+ if (advisorId === null)
8565
+ throw new globalThis.Error("The parameter 'advisorId' cannot be null.");
8566
+ else if (advisorId !== undefined)
8567
+ url_ += "advisorId=" + encodeURIComponent("" + advisorId) + "&";
8568
+ if (targetId === null)
8569
+ throw new globalThis.Error("The parameter 'targetId' cannot be null.");
8570
+ else if (targetId !== undefined)
8571
+ url_ += "targetId=" + encodeURIComponent("" + targetId) + "&";
8572
+ if (targetAssetType === null)
8573
+ throw new globalThis.Error("The parameter 'targetAssetType' cannot be null.");
8574
+ else if (targetAssetType !== undefined)
8575
+ url_ += "targetAssetType=" + encodeURIComponent("" + targetAssetType) + "&";
8576
+ if (pageNumber === null)
8577
+ throw new globalThis.Error("The parameter 'pageNumber' cannot be null.");
8578
+ else if (pageNumber !== undefined)
8579
+ url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
8580
+ if (pageSize === null)
8581
+ throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
8582
+ else if (pageSize !== undefined)
8583
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
8584
+ url_ = url_.replace(/[?&]$/, "");
8585
+ let options_ = {
8586
+ method: "GET",
8587
+ headers: {
8588
+ "Accept": "application/json"
8589
+ }
8590
+ };
8591
+ return this.http.fetch(url_, options_).then((_response) => {
8592
+ return this.processGetAll(_response);
8593
+ });
8594
+ }
8595
+ processGetAll(response) {
8596
+ const status = response.status;
8597
+ let _headers = {};
8598
+ if (response.headers && response.headers.forEach) {
8599
+ response.headers.forEach((v, k) => _headers[k] = v);
8600
+ }
8601
+ ;
8602
+ if (status === 200) {
8603
+ return response.text().then((_responseText) => {
8604
+ let result200 = null;
8605
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8606
+ result200 = WatchlistApiResponse.fromJS(resultData200);
8607
+ return result200;
8608
+ });
8609
+ }
8610
+ else if (status !== 200 && status !== 204) {
8611
+ return response.text().then((_responseText) => {
8612
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8613
+ });
8614
+ }
8615
+ return Promise.resolve(null);
8616
+ }
8617
+ /**
8618
+ * Get a watchlist item by investor ID and target ID.
8619
+ * @param investorId The investor ID.
8620
+ * @param targetId The target asset ID.
8621
+ * @return Returns the watchlist item.
8622
+ */
8623
+ getByInvestorAndTarget(investorId, targetId) {
8624
+ let url_ = this.baseUrl + "/primary/v1/watchlist/investorId/{investorId}/targetId/{targetId}";
8625
+ if (investorId === undefined || investorId === null)
8626
+ throw new globalThis.Error("The parameter 'investorId' must be defined.");
8627
+ url_ = url_.replace("{investorId}", encodeURIComponent("" + investorId));
8628
+ if (targetId === undefined || targetId === null)
8629
+ throw new globalThis.Error("The parameter 'targetId' must be defined.");
8630
+ url_ = url_.replace("{targetId}", encodeURIComponent("" + targetId));
8631
+ url_ = url_.replace(/[?&]$/, "");
8632
+ let options_ = {
8633
+ method: "GET",
8634
+ headers: {
8635
+ "Accept": "application/json"
8636
+ }
8637
+ };
8638
+ return this.http.fetch(url_, options_).then((_response) => {
8639
+ return this.processGetByInvestorAndTarget(_response);
8640
+ });
8641
+ }
8642
+ processGetByInvestorAndTarget(response) {
8643
+ const status = response.status;
8644
+ let _headers = {};
8645
+ if (response.headers && response.headers.forEach) {
8646
+ response.headers.forEach((v, k) => _headers[k] = v);
8647
+ }
8648
+ ;
8649
+ if (status === 200) {
8650
+ return response.text().then((_responseText) => {
8651
+ let result200 = null;
8652
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8653
+ result200 = Watchlist.fromJS(resultData200);
8654
+ return result200;
8655
+ });
8656
+ }
8657
+ else if (status === 404) {
8658
+ return response.text().then((_responseText) => {
8659
+ let result404 = null;
8660
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8661
+ result404 = ProblemDetails.fromJS(resultData404);
8662
+ return throwException("Watchlist item not found.", status, _responseText, _headers, result404);
8663
+ });
8664
+ }
8665
+ else if (status !== 200 && status !== 204) {
8666
+ return response.text().then((_responseText) => {
8667
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8668
+ });
8669
+ }
8670
+ return Promise.resolve(null);
8671
+ }
8672
+ /**
8673
+ * Delete a watchlist item by investor ID and target ID.
8674
+ * @param investorId The investor ID.
8675
+ * @param targetId The target asset ID.
8676
+ * @return Watchlist item deleted successfully.
8677
+ */
8678
+ delete(investorId, targetId) {
8679
+ let url_ = this.baseUrl + "/primary/v1/watchlist/investorId/{investorId}/targetId/{targetId}";
8680
+ if (investorId === undefined || investorId === null)
8681
+ throw new globalThis.Error("The parameter 'investorId' must be defined.");
8682
+ url_ = url_.replace("{investorId}", encodeURIComponent("" + investorId));
8683
+ if (targetId === undefined || targetId === null)
8684
+ throw new globalThis.Error("The parameter 'targetId' must be defined.");
8685
+ url_ = url_.replace("{targetId}", encodeURIComponent("" + targetId));
8686
+ url_ = url_.replace(/[?&]$/, "");
8687
+ let options_ = {
8688
+ method: "DELETE",
8689
+ headers: {}
8690
+ };
8691
+ return this.http.fetch(url_, options_).then((_response) => {
8692
+ return this.processDelete(_response);
8693
+ });
8694
+ }
8695
+ processDelete(response) {
8696
+ const status = response.status;
8697
+ let _headers = {};
8698
+ if (response.headers && response.headers.forEach) {
8699
+ response.headers.forEach((v, k) => _headers[k] = v);
8700
+ }
8701
+ ;
8702
+ if (status === 204) {
8703
+ return response.text().then((_responseText) => {
8704
+ return;
8705
+ });
8706
+ }
8707
+ else if (status === 404) {
8708
+ return response.text().then((_responseText) => {
8709
+ let result404 = null;
8710
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8711
+ result404 = ProblemDetails.fromJS(resultData404);
8712
+ return throwException("Watchlist item not found.", status, _responseText, _headers, result404);
8713
+ });
8714
+ }
8715
+ else if (status !== 200 && status !== 204) {
8716
+ return response.text().then((_responseText) => {
8717
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8718
+ });
8719
+ }
8720
+ return Promise.resolve(null);
8721
+ }
8722
+ /**
8723
+ * Get a watchlist item by advisor ID and target ID.
8724
+ * @param advisorId The advisor ID.
8725
+ * @param targetId The target asset ID.
8726
+ * @return Returns the watchlist item.
8727
+ */
8728
+ getByAdvisorAndTarget(advisorId, targetId) {
8729
+ let url_ = this.baseUrl + "/primary/v1/watchlist/advisorId/{advisorId}/targetId/{targetId}";
8730
+ if (advisorId === undefined || advisorId === null)
8731
+ throw new globalThis.Error("The parameter 'advisorId' must be defined.");
8732
+ url_ = url_.replace("{advisorId}", encodeURIComponent("" + advisorId));
8733
+ if (targetId === undefined || targetId === null)
8734
+ throw new globalThis.Error("The parameter 'targetId' must be defined.");
8735
+ url_ = url_.replace("{targetId}", encodeURIComponent("" + targetId));
8736
+ url_ = url_.replace(/[?&]$/, "");
8737
+ let options_ = {
8738
+ method: "GET",
8739
+ headers: {
8740
+ "Accept": "application/json"
8741
+ }
8742
+ };
8743
+ return this.http.fetch(url_, options_).then((_response) => {
8744
+ return this.processGetByAdvisorAndTarget(_response);
8745
+ });
8746
+ }
8747
+ processGetByAdvisorAndTarget(response) {
8748
+ const status = response.status;
8749
+ let _headers = {};
8750
+ if (response.headers && response.headers.forEach) {
8751
+ response.headers.forEach((v, k) => _headers[k] = v);
8752
+ }
8753
+ ;
8754
+ if (status === 200) {
8755
+ return response.text().then((_responseText) => {
8756
+ let result200 = null;
8757
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8758
+ result200 = Watchlist.fromJS(resultData200);
8759
+ return result200;
8760
+ });
8761
+ }
8762
+ else if (status === 404) {
8763
+ return response.text().then((_responseText) => {
8764
+ let result404 = null;
8765
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8766
+ result404 = ProblemDetails.fromJS(resultData404);
8767
+ return throwException("Watchlist item not found.", status, _responseText, _headers, result404);
8768
+ });
8769
+ }
8770
+ else if (status !== 200 && status !== 204) {
8771
+ return response.text().then((_responseText) => {
8772
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8773
+ });
8774
+ }
8775
+ return Promise.resolve(null);
8776
+ }
8777
+ /**
8778
+ * Delete a watchlist item by advisor ID and target ID.
8779
+ * @param advisorId The advisor ID.
8780
+ * @param targetId The target asset ID.
8781
+ * @return Watchlist item deleted successfully.
8782
+ */
8783
+ deleteByAdvisor(advisorId, targetId) {
8784
+ let url_ = this.baseUrl + "/primary/v1/watchlist/advisorId/{advisorId}/targetId/{targetId}";
8785
+ if (advisorId === undefined || advisorId === null)
8786
+ throw new globalThis.Error("The parameter 'advisorId' must be defined.");
8787
+ url_ = url_.replace("{advisorId}", encodeURIComponent("" + advisorId));
8788
+ if (targetId === undefined || targetId === null)
8789
+ throw new globalThis.Error("The parameter 'targetId' must be defined.");
8790
+ url_ = url_.replace("{targetId}", encodeURIComponent("" + targetId));
8791
+ url_ = url_.replace(/[?&]$/, "");
8792
+ let options_ = {
8793
+ method: "DELETE",
8794
+ headers: {}
8795
+ };
8796
+ return this.http.fetch(url_, options_).then((_response) => {
8797
+ return this.processDeleteByAdvisor(_response);
8798
+ });
8799
+ }
8800
+ processDeleteByAdvisor(response) {
8801
+ const status = response.status;
8802
+ let _headers = {};
8803
+ if (response.headers && response.headers.forEach) {
8804
+ response.headers.forEach((v, k) => _headers[k] = v);
8805
+ }
8806
+ ;
8807
+ if (status === 204) {
8808
+ return response.text().then((_responseText) => {
8809
+ return;
8810
+ });
8811
+ }
8812
+ else if (status === 404) {
8813
+ return response.text().then((_responseText) => {
8814
+ let result404 = null;
8815
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8816
+ result404 = ProblemDetails.fromJS(resultData404);
8817
+ return throwException("Watchlist item not found.", status, _responseText, _headers, result404);
8818
+ });
8819
+ }
8820
+ else if (status !== 200 && status !== 204) {
8821
+ return response.text().then((_responseText) => {
8822
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8823
+ });
8824
+ }
8825
+ return Promise.resolve(null);
8826
+ }
8451
8827
  /**
8452
8828
  * Create a Webhook
8453
8829
  * @param body (optional) Create Webhook information.
@@ -9966,6 +10342,8 @@ export class CreateTransaction {
9966
10342
  this.side = _data["side"];
9967
10343
  this.investorId = _data["investorId"];
9968
10344
  this.amountReservedDollars = _data["amountReservedDollars"];
10345
+ this.amountShares = _data["amountShares"];
10346
+ this.isFullExit = _data["isFullExit"];
9969
10347
  this.referenceId = _data["referenceId"];
9970
10348
  }
9971
10349
  }
@@ -9982,10 +10360,45 @@ export class CreateTransaction {
9982
10360
  data["side"] = this.side;
9983
10361
  data["investorId"] = this.investorId;
9984
10362
  data["amountReservedDollars"] = this.amountReservedDollars;
10363
+ data["amountShares"] = this.amountShares;
10364
+ data["isFullExit"] = this.isFullExit;
9985
10365
  data["referenceId"] = this.referenceId;
9986
10366
  return data;
9987
10367
  }
9988
10368
  }
10369
+ /** CreateWatchlist represents the request to create or update a watchlist item. */
10370
+ export class CreateWatchlist {
10371
+ constructor(data) {
10372
+ if (data) {
10373
+ for (var property in data) {
10374
+ if (data.hasOwnProperty(property))
10375
+ this[property] = data[property];
10376
+ }
10377
+ }
10378
+ }
10379
+ init(_data) {
10380
+ if (_data) {
10381
+ this.investorId = _data["investorId"];
10382
+ this.advisorId = _data["advisorId"];
10383
+ this.targetId = _data["targetId"];
10384
+ this.targetAssetType = _data["targetAssetType"];
10385
+ }
10386
+ }
10387
+ static fromJS(data) {
10388
+ data = typeof data === 'object' ? data : {};
10389
+ let result = new CreateWatchlist();
10390
+ result.init(data);
10391
+ return result;
10392
+ }
10393
+ toJSON(data) {
10394
+ data = typeof data === 'object' ? data : {};
10395
+ data["investorId"] = this.investorId;
10396
+ data["advisorId"] = this.advisorId;
10397
+ data["targetId"] = this.targetId;
10398
+ data["targetAssetType"] = this.targetAssetType;
10399
+ return data;
10400
+ }
10401
+ }
9989
10402
  export class CreateWebhook {
9990
10403
  constructor(data) {
9991
10404
  if (data) {
@@ -15525,6 +15938,7 @@ export class Transaction {
15525
15938
  this.targetName = _data["targetName"];
15526
15939
  this.companyName = _data["companyName"];
15527
15940
  this.referenceId = _data["referenceId"];
15941
+ this.isFullExit = _data["isFullExit"];
15528
15942
  if (Array.isArray(_data["documents"])) {
15529
15943
  this.documents = [];
15530
15944
  for (let item of _data["documents"])
@@ -15557,6 +15971,7 @@ export class Transaction {
15557
15971
  data["targetName"] = this.targetName;
15558
15972
  data["companyName"] = this.companyName;
15559
15973
  data["referenceId"] = this.referenceId;
15974
+ data["isFullExit"] = this.isFullExit;
15560
15975
  if (Array.isArray(this.documents)) {
15561
15976
  data["documents"] = [];
15562
15977
  for (let item of this.documents)
@@ -16662,6 +17077,8 @@ export class UpdateTransaction {
16662
17077
  this.side = _data["side"];
16663
17078
  this.investorId = _data["investorId"];
16664
17079
  this.amountReservedDollars = _data["amountReservedDollars"];
17080
+ this.amountShares = _data["amountShares"];
17081
+ this.isFullExit = _data["isFullExit"];
16665
17082
  this.id = _data["id"];
16666
17083
  this.targetAssetType = _data["targetAssetType"];
16667
17084
  }
@@ -16678,6 +17095,8 @@ export class UpdateTransaction {
16678
17095
  data["side"] = this.side;
16679
17096
  data["investorId"] = this.investorId;
16680
17097
  data["amountReservedDollars"] = this.amountReservedDollars;
17098
+ data["amountShares"] = this.amountShares;
17099
+ data["isFullExit"] = this.isFullExit;
16681
17100
  data["id"] = this.id;
16682
17101
  data["targetAssetType"] = this.targetAssetType;
16683
17102
  return data;
@@ -16746,6 +17165,79 @@ export class UpdateWebhook {
16746
17165
  return data;
16747
17166
  }
16748
17167
  }
17168
+ /** Watchlist represents a user's subscription to future updates about a given company. */
17169
+ export class Watchlist {
17170
+ constructor(data) {
17171
+ if (data) {
17172
+ for (var property in data) {
17173
+ if (data.hasOwnProperty(property))
17174
+ this[property] = data[property];
17175
+ }
17176
+ }
17177
+ }
17178
+ init(_data) {
17179
+ if (_data) {
17180
+ this.id = _data["id"];
17181
+ this.investorId = _data["investorId"];
17182
+ this.advisorId = _data["advisorId"];
17183
+ this.targetId = _data["targetId"];
17184
+ this.targetAssetType = _data["targetAssetType"];
17185
+ this.targetName = _data["targetName"];
17186
+ }
17187
+ }
17188
+ static fromJS(data) {
17189
+ data = typeof data === 'object' ? data : {};
17190
+ let result = new Watchlist();
17191
+ result.init(data);
17192
+ return result;
17193
+ }
17194
+ toJSON(data) {
17195
+ data = typeof data === 'object' ? data : {};
17196
+ data["id"] = this.id;
17197
+ data["investorId"] = this.investorId;
17198
+ data["advisorId"] = this.advisorId;
17199
+ data["targetId"] = this.targetId;
17200
+ data["targetAssetType"] = this.targetAssetType;
17201
+ data["targetName"] = this.targetName;
17202
+ return data;
17203
+ }
17204
+ }
17205
+ export class WatchlistApiResponse {
17206
+ constructor(data) {
17207
+ if (data) {
17208
+ for (var property in data) {
17209
+ if (data.hasOwnProperty(property))
17210
+ this[property] = data[property];
17211
+ }
17212
+ }
17213
+ }
17214
+ init(_data) {
17215
+ if (_data) {
17216
+ if (Array.isArray(_data["items"])) {
17217
+ this.items = [];
17218
+ for (let item of _data["items"])
17219
+ this.items.push(Watchlist.fromJS(item));
17220
+ }
17221
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
17222
+ }
17223
+ }
17224
+ static fromJS(data) {
17225
+ data = typeof data === 'object' ? data : {};
17226
+ let result = new WatchlistApiResponse();
17227
+ result.init(data);
17228
+ return result;
17229
+ }
17230
+ toJSON(data) {
17231
+ data = typeof data === 'object' ? data : {};
17232
+ if (Array.isArray(this.items)) {
17233
+ data["items"] = [];
17234
+ for (let item of this.items)
17235
+ data["items"].push(item ? item.toJSON() : undefined);
17236
+ }
17237
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
17238
+ return data;
17239
+ }
17240
+ }
16749
17241
  export class Webhook {
16750
17242
  constructor(data) {
16751
17243
  if (data) {
@@ -17247,6 +17739,11 @@ export var TargetAssetType;
17247
17739
  TargetAssetType["RegisteredFund"] = "RegisteredFund";
17248
17740
  TargetAssetType["PreIPOCompany"] = "PreIPOCompany";
17249
17741
  })(TargetAssetType || (TargetAssetType = {}));
17742
+ export var Side;
17743
+ (function (Side) {
17744
+ Side["Subscription"] = "Subscription";
17745
+ Side["Redemption"] = "Redemption";
17746
+ })(Side || (Side = {}));
17250
17747
  export var TargetAssetType2;
17251
17748
  (function (TargetAssetType2) {
17252
17749
  TargetAssetType2["PreIPOCompanySPV"] = "PreIPOCompanySPV";
@@ -17265,6 +17762,12 @@ export var TargetAssetType4;
17265
17762
  TargetAssetType4["RegisteredFund"] = "RegisteredFund";
17266
17763
  TargetAssetType4["PreIPOCompany"] = "PreIPOCompany";
17267
17764
  })(TargetAssetType4 || (TargetAssetType4 = {}));
17765
+ export var TargetAssetType5;
17766
+ (function (TargetAssetType5) {
17767
+ TargetAssetType5["PreIPOCompanySPV"] = "PreIPOCompanySPV";
17768
+ TargetAssetType5["RegisteredFund"] = "RegisteredFund";
17769
+ TargetAssetType5["PreIPOCompany"] = "PreIPOCompany";
17770
+ })(TargetAssetType5 || (TargetAssetType5 = {}));
17268
17771
  export var SortOrder24;
17269
17772
  (function (SortOrder24) {
17270
17773
  SortOrder24["Ascending"] = "Ascending";
@@ -17465,6 +17968,12 @@ export var CreateTransactionSide;
17465
17968
  CreateTransactionSide["Subscription"] = "Subscription";
17466
17969
  CreateTransactionSide["Redemption"] = "Redemption";
17467
17970
  })(CreateTransactionSide || (CreateTransactionSide = {}));
17971
+ export var CreateWatchlistTargetAssetType;
17972
+ (function (CreateWatchlistTargetAssetType) {
17973
+ CreateWatchlistTargetAssetType["PreIPOCompanySPV"] = "PreIPOCompanySPV";
17974
+ CreateWatchlistTargetAssetType["RegisteredFund"] = "RegisteredFund";
17975
+ CreateWatchlistTargetAssetType["PreIPOCompany"] = "PreIPOCompany";
17976
+ })(CreateWatchlistTargetAssetType || (CreateWatchlistTargetAssetType = {}));
17468
17977
  export var DocumentType3;
17469
17978
  (function (DocumentType3) {
17470
17979
  DocumentType3["BUSINESS_FORMATION"] = "BUSINESS_FORMATION";
@@ -18578,6 +19087,12 @@ export var UpdateTransactionReferenceTargetAssetType;
18578
19087
  UpdateTransactionReferenceTargetAssetType["RegisteredFund"] = "RegisteredFund";
18579
19088
  UpdateTransactionReferenceTargetAssetType["PreIPOCompany"] = "PreIPOCompany";
18580
19089
  })(UpdateTransactionReferenceTargetAssetType || (UpdateTransactionReferenceTargetAssetType = {}));
19090
+ export var WatchlistTargetAssetType;
19091
+ (function (WatchlistTargetAssetType) {
19092
+ WatchlistTargetAssetType["PreIPOCompanySPV"] = "PreIPOCompanySPV";
19093
+ WatchlistTargetAssetType["RegisteredFund"] = "RegisteredFund";
19094
+ WatchlistTargetAssetType["PreIPOCompany"] = "PreIPOCompany";
19095
+ })(WatchlistTargetAssetType || (WatchlistTargetAssetType = {}));
18581
19096
  export var WebhookEventDeliveryStatus;
18582
19097
  (function (WebhookEventDeliveryStatus) {
18583
19098
  WebhookEventDeliveryStatus["Pending"] = "Pending";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monarkmarkets/api-client",
3
- "version": "1.3.39",
3
+ "version": "1.3.41",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",