@monarkmarkets/api-client 1.3.40 → 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 +30 -5
- package/dist/Client.js +21 -1
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -1215,9 +1215,10 @@ export declare class Client {
|
|
|
1215
1215
|
* @param referenceId (optional) Optional: Filter by order reference ID.
|
|
1216
1216
|
* @param managerId (optional) Optional: Filter by manager ID. For SPVs, filters by Manager. For RegisteredFunds, filters by Fund Manager.
|
|
1217
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)
|
|
1218
1219
|
* @return OK
|
|
1219
1220
|
*/
|
|
1220
|
-
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): 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>;
|
|
1221
1222
|
protected processGetTransactions(response: Response): Promise<TransactionApiResponse>;
|
|
1222
1223
|
/**
|
|
1223
1224
|
* Update an existing transaction.
|
|
@@ -2308,7 +2309,11 @@ export declare class CreateTransaction implements ICreateTransaction {
|
|
|
2308
2309
|
/** ID of the Investor associated with this Order. */
|
|
2309
2310
|
investorId: string;
|
|
2310
2311
|
/** Describes the amount, in dollars, an Investor intends to invest into a Target. */
|
|
2311
|
-
amountReservedDollars
|
|
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;
|
|
2312
2317
|
/** The reference ID of an order submitted. */
|
|
2313
2318
|
referenceId?: string | undefined;
|
|
2314
2319
|
constructor(data?: ICreateTransaction);
|
|
@@ -2326,7 +2331,11 @@ export interface ICreateTransaction {
|
|
|
2326
2331
|
/** ID of the Investor associated with this Order. */
|
|
2327
2332
|
investorId: string;
|
|
2328
2333
|
/** Describes the amount, in dollars, an Investor intends to invest into a Target. */
|
|
2329
|
-
amountReservedDollars
|
|
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;
|
|
2330
2339
|
/** The reference ID of an order submitted. */
|
|
2331
2340
|
referenceId?: string | undefined;
|
|
2332
2341
|
}
|
|
@@ -7217,6 +7226,8 @@ export declare class Transaction implements ITransaction {
|
|
|
7217
7226
|
companyName?: string | undefined;
|
|
7218
7227
|
/** The reference ID of an order submitted. */
|
|
7219
7228
|
referenceId?: string | undefined;
|
|
7229
|
+
/** Indicates if this order is a full exit. */
|
|
7230
|
+
isFullExit?: boolean | undefined;
|
|
7220
7231
|
/** Optional list of documents associated with this transaction. */
|
|
7221
7232
|
documents?: DocumentV2[] | undefined;
|
|
7222
7233
|
constructor(data?: ITransaction);
|
|
@@ -7259,6 +7270,8 @@ export interface ITransaction {
|
|
|
7259
7270
|
companyName?: string | undefined;
|
|
7260
7271
|
/** The reference ID of an order submitted. */
|
|
7261
7272
|
referenceId?: string | undefined;
|
|
7273
|
+
/** Indicates if this order is a full exit. */
|
|
7274
|
+
isFullExit?: boolean | undefined;
|
|
7262
7275
|
/** Optional list of documents associated with this transaction. */
|
|
7263
7276
|
documents?: DocumentV2[] | undefined;
|
|
7264
7277
|
}
|
|
@@ -8226,7 +8239,11 @@ export declare class UpdateTransaction implements IUpdateTransaction {
|
|
|
8226
8239
|
/** ID of the Investor associated with this Order. */
|
|
8227
8240
|
investorId: string;
|
|
8228
8241
|
/** Describes the amount, in dollars, an Investor intends to invest into a Target. */
|
|
8229
|
-
amountReservedDollars
|
|
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;
|
|
8230
8247
|
/** ID of the Order to edit. */
|
|
8231
8248
|
id: string;
|
|
8232
8249
|
/** The type of asset being targeted with this Order. */
|
|
@@ -8244,7 +8261,11 @@ export interface IUpdateTransaction {
|
|
|
8244
8261
|
/** ID of the Investor associated with this Order. */
|
|
8245
8262
|
investorId: string;
|
|
8246
8263
|
/** Describes the amount, in dollars, an Investor intends to invest into a Target. */
|
|
8247
|
-
amountReservedDollars
|
|
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;
|
|
8248
8269
|
/** ID of the Order to edit. */
|
|
8249
8270
|
id: string;
|
|
8250
8271
|
/** The type of asset being targeted with this Order. */
|
|
@@ -8747,6 +8768,10 @@ export declare enum TargetAssetType {
|
|
|
8747
8768
|
RegisteredFund = "RegisteredFund",
|
|
8748
8769
|
PreIPOCompany = "PreIPOCompany"
|
|
8749
8770
|
}
|
|
8771
|
+
export declare enum Side {
|
|
8772
|
+
Subscription = "Subscription",
|
|
8773
|
+
Redemption = "Redemption"
|
|
8774
|
+
}
|
|
8750
8775
|
export declare enum TargetAssetType2 {
|
|
8751
8776
|
PreIPOCompanySPV = "PreIPOCompanySPV",
|
|
8752
8777
|
RegisteredFund = "RegisteredFund",
|
package/dist/Client.js
CHANGED
|
@@ -7749,9 +7749,10 @@ export class Client {
|
|
|
7749
7749
|
* @param referenceId (optional) Optional: Filter by order reference ID.
|
|
7750
7750
|
* @param managerId (optional) Optional: Filter by manager ID. For SPVs, filters by Manager. For RegisteredFunds, filters by Fund Manager.
|
|
7751
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)
|
|
7752
7753
|
* @return OK
|
|
7753
7754
|
*/
|
|
7754
|
-
getTransactions(targetAssetType, page, pageSize, targetId, investorId, status, referenceId, managerId, includeDocuments) {
|
|
7755
|
+
getTransactions(targetAssetType, page, pageSize, targetId, investorId, status, referenceId, managerId, includeDocuments, side) {
|
|
7755
7756
|
let url_ = this.baseUrl + "/primary/v2/transaction?";
|
|
7756
7757
|
if (targetAssetType === undefined || targetAssetType === null)
|
|
7757
7758
|
throw new globalThis.Error("The parameter 'targetAssetType' must be defined and cannot be null.");
|
|
@@ -7789,6 +7790,10 @@ export class Client {
|
|
|
7789
7790
|
throw new globalThis.Error("The parameter 'includeDocuments' cannot be null.");
|
|
7790
7791
|
else if (includeDocuments !== undefined)
|
|
7791
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) + "&";
|
|
7792
7797
|
url_ = url_.replace(/[?&]$/, "");
|
|
7793
7798
|
let options_ = {
|
|
7794
7799
|
method: "GET",
|
|
@@ -10337,6 +10342,8 @@ export class CreateTransaction {
|
|
|
10337
10342
|
this.side = _data["side"];
|
|
10338
10343
|
this.investorId = _data["investorId"];
|
|
10339
10344
|
this.amountReservedDollars = _data["amountReservedDollars"];
|
|
10345
|
+
this.amountShares = _data["amountShares"];
|
|
10346
|
+
this.isFullExit = _data["isFullExit"];
|
|
10340
10347
|
this.referenceId = _data["referenceId"];
|
|
10341
10348
|
}
|
|
10342
10349
|
}
|
|
@@ -10353,6 +10360,8 @@ export class CreateTransaction {
|
|
|
10353
10360
|
data["side"] = this.side;
|
|
10354
10361
|
data["investorId"] = this.investorId;
|
|
10355
10362
|
data["amountReservedDollars"] = this.amountReservedDollars;
|
|
10363
|
+
data["amountShares"] = this.amountShares;
|
|
10364
|
+
data["isFullExit"] = this.isFullExit;
|
|
10356
10365
|
data["referenceId"] = this.referenceId;
|
|
10357
10366
|
return data;
|
|
10358
10367
|
}
|
|
@@ -15929,6 +15938,7 @@ export class Transaction {
|
|
|
15929
15938
|
this.targetName = _data["targetName"];
|
|
15930
15939
|
this.companyName = _data["companyName"];
|
|
15931
15940
|
this.referenceId = _data["referenceId"];
|
|
15941
|
+
this.isFullExit = _data["isFullExit"];
|
|
15932
15942
|
if (Array.isArray(_data["documents"])) {
|
|
15933
15943
|
this.documents = [];
|
|
15934
15944
|
for (let item of _data["documents"])
|
|
@@ -15961,6 +15971,7 @@ export class Transaction {
|
|
|
15961
15971
|
data["targetName"] = this.targetName;
|
|
15962
15972
|
data["companyName"] = this.companyName;
|
|
15963
15973
|
data["referenceId"] = this.referenceId;
|
|
15974
|
+
data["isFullExit"] = this.isFullExit;
|
|
15964
15975
|
if (Array.isArray(this.documents)) {
|
|
15965
15976
|
data["documents"] = [];
|
|
15966
15977
|
for (let item of this.documents)
|
|
@@ -17066,6 +17077,8 @@ export class UpdateTransaction {
|
|
|
17066
17077
|
this.side = _data["side"];
|
|
17067
17078
|
this.investorId = _data["investorId"];
|
|
17068
17079
|
this.amountReservedDollars = _data["amountReservedDollars"];
|
|
17080
|
+
this.amountShares = _data["amountShares"];
|
|
17081
|
+
this.isFullExit = _data["isFullExit"];
|
|
17069
17082
|
this.id = _data["id"];
|
|
17070
17083
|
this.targetAssetType = _data["targetAssetType"];
|
|
17071
17084
|
}
|
|
@@ -17082,6 +17095,8 @@ export class UpdateTransaction {
|
|
|
17082
17095
|
data["side"] = this.side;
|
|
17083
17096
|
data["investorId"] = this.investorId;
|
|
17084
17097
|
data["amountReservedDollars"] = this.amountReservedDollars;
|
|
17098
|
+
data["amountShares"] = this.amountShares;
|
|
17099
|
+
data["isFullExit"] = this.isFullExit;
|
|
17085
17100
|
data["id"] = this.id;
|
|
17086
17101
|
data["targetAssetType"] = this.targetAssetType;
|
|
17087
17102
|
return data;
|
|
@@ -17724,6 +17739,11 @@ export var TargetAssetType;
|
|
|
17724
17739
|
TargetAssetType["RegisteredFund"] = "RegisteredFund";
|
|
17725
17740
|
TargetAssetType["PreIPOCompany"] = "PreIPOCompany";
|
|
17726
17741
|
})(TargetAssetType || (TargetAssetType = {}));
|
|
17742
|
+
export var Side;
|
|
17743
|
+
(function (Side) {
|
|
17744
|
+
Side["Subscription"] = "Subscription";
|
|
17745
|
+
Side["Redemption"] = "Redemption";
|
|
17746
|
+
})(Side || (Side = {}));
|
|
17727
17747
|
export var TargetAssetType2;
|
|
17728
17748
|
(function (TargetAssetType2) {
|
|
17729
17749
|
TargetAssetType2["PreIPOCompanySPV"] = "PreIPOCompanySPV";
|