@monarkmarkets/api-client 1.3.16 → 1.3.18

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
@@ -962,9 +962,10 @@ export declare class Client {
962
962
  /**
963
963
  * Get a Questionnaire by Id
964
964
  * @param id ID of the Questionnaire to find.
965
+ * @param investorId (optional) Optional investor ID to filter questions based on Investor details.
965
966
  * @return Returns the Questionnaire with the specified Id.
966
967
  */
967
- getQuestionnaireById(id: string): Promise<Questionnaire>;
968
+ getQuestionnaireById(id: string, investorId: string | undefined): Promise<Questionnaire>;
968
969
  protected processGetQuestionnaireById(response: Response): Promise<Questionnaire>;
969
970
  /**
970
971
  * Create a QuestionnaireAnswer
@@ -1111,14 +1112,14 @@ export declare class Client {
1111
1112
  getAllSecondaryLinkEvergreenShareClasses(financialInstitutionId: string, page: number | undefined, pageSize: number | undefined, searchTerm: string | undefined, sortOrder: SortOrder22 | undefined, fundName: string | undefined, evergreenFundId: string | undefined): Promise<EvergreenShareClassesApiResponse>;
1112
1113
  protected processGetAllSecondaryLinkEvergreenShareClasses(response: Response): Promise<EvergreenShareClassesApiResponse>;
1113
1114
  /**
1114
- * Create a new order (subscription or redemption).
1115
- * @param body (optional)
1115
+ * Create a new transaction (subscription or redemption).
1116
+ * @param body (optional) Order creation properties.
1116
1117
  * @return Created
1117
1118
  */
1118
1119
  createTransaction(body: CreateTransaction | undefined): Promise<Transaction>;
1119
1120
  protected processCreateTransaction(response: Response): Promise<Transaction>;
1120
1121
  /**
1121
- * Get all orders for a specific asset type with optional filtering.
1122
+ * Get all transactions.
1122
1123
  * @param targetAssetType Required: The asset type (PreIPOCompanySPV or RegisteredFund).
1123
1124
  * @param page (optional) Number of the page to retrieve.
1124
1125
  Defaults to 1 if not specified.
@@ -1133,15 +1134,15 @@ export declare class Client {
1133
1134
  getTransactions(targetAssetType: TargetAssetType, page: number | undefined, pageSize: number | undefined, targetId: string | undefined, investorId: string | undefined, status: string | undefined, referenceId: string | undefined): Promise<TransactionApiResponse>;
1134
1135
  protected processGetTransactions(response: Response): Promise<TransactionApiResponse>;
1135
1136
  /**
1136
- * Update an existing order.
1137
- * @param body (optional)
1137
+ * Update an existing transaction.
1138
+ * @param body (optional) The transaction update properties.
1138
1139
  * @return OK
1139
1140
  */
1140
1141
  updateTransaction(body: UpdateTransaction | undefined): Promise<Transaction>;
1141
1142
  protected processUpdateTransaction(response: Response): Promise<Transaction>;
1142
1143
  /**
1143
- * Get an order by ID.
1144
- * @param id The order ID.
1144
+ * Get a transaction by ID.
1145
+ * @param id The transaction ID.
1145
1146
  * @param includeDocuments (optional) Optional flag to include associated documents.
1146
1147
  * @return OK
1147
1148
  */
@@ -1908,7 +1909,9 @@ export interface ICreateIndicationOfInterest {
1908
1909
  /** CreateIndicationOfInterestV2 represents the v2 request to create a generic IOI supporting multiple asset types. */
1909
1910
  export declare class CreateIndicationOfInterestV2 implements ICreateIndicationOfInterestV2 {
1910
1911
  /** Represents the unique ID, provided by Monark, associated with the Investor submitting an IOI, investing in an SPV, or taking any action in the secondary market. */
1911
- investorId?: string;
1912
+ investorId?: string | undefined;
1913
+ /** Represents the unique ID, provided by Monark, associated with the Financial Advisor submitting an IOI on behalf of their clients. */
1914
+ advisorId?: string | undefined;
1912
1915
  /** The unique ID of the target asset (company, fund, etc.) that the IoI request is for. */
1913
1916
  targetId?: string;
1914
1917
  /** The asset type of the target being invested in (PreIPOCompany, PrivateCompany, etc.) */
@@ -1927,7 +1930,9 @@ export declare class CreateIndicationOfInterestV2 implements ICreateIndicationOf
1927
1930
  /** CreateIndicationOfInterestV2 represents the v2 request to create a generic IOI supporting multiple asset types. */
1928
1931
  export interface ICreateIndicationOfInterestV2 {
1929
1932
  /** Represents the unique ID, provided by Monark, associated with the Investor submitting an IOI, investing in an SPV, or taking any action in the secondary market. */
1930
- investorId?: string;
1933
+ investorId?: string | undefined;
1934
+ /** Represents the unique ID, provided by Monark, associated with the Financial Advisor submitting an IOI on behalf of their clients. */
1935
+ advisorId?: string | undefined;
1931
1936
  /** The unique ID of the target asset (company, fund, etc.) that the IoI request is for. */
1932
1937
  targetId?: string;
1933
1938
  /** The asset type of the target being invested in (PreIPOCompany, PrivateCompany, etc.) */
@@ -3154,7 +3159,9 @@ export declare class IndicationOfInterestV2 implements IIndicationOfInterestV2 {
3154
3159
  /** Unique ID associated with an IOI. */
3155
3160
  id?: string;
3156
3161
  /** Represents the unique ID, provided by Monark, associated with the Investor submitting an IOI, investing in an SPV, or taking any action in the secondary market. */
3157
- investorId?: string;
3162
+ investorId?: string | undefined;
3163
+ /** Represents the unique ID, provided by Monark, associated with the Financial Advisor submitting an IOI on behalf of their clients. */
3164
+ advisorId?: string | undefined;
3158
3165
  /** The unique ID of the target asset (company, fund, etc.) that the IoI request is for. */
3159
3166
  targetId?: string;
3160
3167
  /** The asset type of the target being invested in (PreIPOCompany, PrivateCompany, etc.) */
@@ -3187,7 +3194,9 @@ export interface IIndicationOfInterestV2 {
3187
3194
  /** Unique ID associated with an IOI. */
3188
3195
  id?: string;
3189
3196
  /** Represents the unique ID, provided by Monark, associated with the Investor submitting an IOI, investing in an SPV, or taking any action in the secondary market. */
3190
- investorId?: string;
3197
+ investorId?: string | undefined;
3198
+ /** Represents the unique ID, provided by Monark, associated with the Financial Advisor submitting an IOI on behalf of their clients. */
3199
+ advisorId?: string | undefined;
3191
3200
  /** The unique ID of the target asset (company, fund, etc.) that the IoI request is for. */
3192
3201
  targetId?: string;
3193
3202
  /** The asset type of the target being invested in (PreIPOCompany, PrivateCompany, etc.) */
@@ -6441,6 +6450,8 @@ export interface IQuestionnaireQuestion {
6441
6450
  export declare class QuestionnaireQuestionAnswer implements IQuestionnaireQuestionAnswer {
6442
6451
  /** Unique ID associated with a Questionnaire question answer pairing. */
6443
6452
  id?: string;
6453
+ /** The questionId of the question being answered. */
6454
+ questionId?: string;
6444
6455
  /** Text of the question asked. */
6445
6456
  questionText: string | undefined;
6446
6457
  /** Explanation of the question asked. */
@@ -6464,6 +6475,8 @@ export declare class QuestionnaireQuestionAnswer implements IQuestionnaireQuesti
6464
6475
  export interface IQuestionnaireQuestionAnswer {
6465
6476
  /** Unique ID associated with a Questionnaire question answer pairing. */
6466
6477
  id?: string;
6478
+ /** The questionId of the question being answered. */
6479
+ questionId?: string;
6467
6480
  /** Text of the question asked. */
6468
6481
  questionText: string | undefined;
6469
6482
  /** Explanation of the question asked. */
@@ -9453,7 +9466,8 @@ export declare enum TransactionActionStatus {
9453
9466
  export declare enum TransactionActionType {
9454
9467
  DocumentSign = "DocumentSign",
9455
9468
  DocumentAcknowledge = "DocumentAcknowledge",
9456
- TextAcknowledge = "TextAcknowledge"
9469
+ TextAcknowledge = "TextAcknowledge",
9470
+ Questionnaire = "Questionnaire"
9457
9471
  }
9458
9472
  export declare enum TransactionActionResponsibleParty {
9459
9473
  Partner = "Partner",
package/dist/Client.js CHANGED
@@ -6217,13 +6217,18 @@ export class Client {
6217
6217
  /**
6218
6218
  * Get a Questionnaire by Id
6219
6219
  * @param id ID of the Questionnaire to find.
6220
+ * @param investorId (optional) Optional investor ID to filter questions based on Investor details.
6220
6221
  * @return Returns the Questionnaire with the specified Id.
6221
6222
  */
6222
- getQuestionnaireById(id) {
6223
- let url_ = this.baseUrl + "/primary/v1/questionnaire/{id}";
6223
+ getQuestionnaireById(id, investorId) {
6224
+ let url_ = this.baseUrl + "/primary/v1/questionnaire/{id}?";
6224
6225
  if (id === undefined || id === null)
6225
6226
  throw new globalThis.Error("The parameter 'id' must be defined.");
6226
6227
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
6228
+ if (investorId === null)
6229
+ throw new globalThis.Error("The parameter 'investorId' cannot be null.");
6230
+ else if (investorId !== undefined)
6231
+ url_ += "investorId=" + encodeURIComponent("" + investorId) + "&";
6227
6232
  url_ = url_.replace(/[?&]$/, "");
6228
6233
  let options_ = {
6229
6234
  method: "GET",
@@ -7176,8 +7181,8 @@ export class Client {
7176
7181
  return Promise.resolve(null);
7177
7182
  }
7178
7183
  /**
7179
- * Create a new order (subscription or redemption).
7180
- * @param body (optional)
7184
+ * Create a new transaction (subscription or redemption).
7185
+ * @param body (optional) Order creation properties.
7181
7186
  * @return Created
7182
7187
  */
7183
7188
  createTransaction(body) {
@@ -7235,7 +7240,7 @@ export class Client {
7235
7240
  return Promise.resolve(null);
7236
7241
  }
7237
7242
  /**
7238
- * Get all orders for a specific asset type with optional filtering.
7243
+ * Get all transactions.
7239
7244
  * @param targetAssetType Required: The asset type (PreIPOCompanySPV or RegisteredFund).
7240
7245
  * @param page (optional) Number of the page to retrieve.
7241
7246
  Defaults to 1 if not specified.
@@ -7327,8 +7332,8 @@ export class Client {
7327
7332
  return Promise.resolve(null);
7328
7333
  }
7329
7334
  /**
7330
- * Update an existing order.
7331
- * @param body (optional)
7335
+ * Update an existing transaction.
7336
+ * @param body (optional) The transaction update properties.
7332
7337
  * @return OK
7333
7338
  */
7334
7339
  updateTransaction(body) {
@@ -7394,8 +7399,8 @@ export class Client {
7394
7399
  return Promise.resolve(null);
7395
7400
  }
7396
7401
  /**
7397
- * Get an order by ID.
7398
- * @param id The order ID.
7402
+ * Get a transaction by ID.
7403
+ * @param id The transaction ID.
7399
7404
  * @param includeDocuments (optional) Optional flag to include associated documents.
7400
7405
  * @return OK
7401
7406
  */
@@ -9021,6 +9026,7 @@ export class CreateIndicationOfInterestV2 {
9021
9026
  init(_data) {
9022
9027
  if (_data) {
9023
9028
  this.investorId = _data["investorId"];
9029
+ this.advisorId = _data["advisorId"];
9024
9030
  this.targetId = _data["targetId"];
9025
9031
  this.targetAssetType = _data["targetAssetType"];
9026
9032
  this.numberOfClients = _data["numberOfClients"];
@@ -9037,6 +9043,7 @@ export class CreateIndicationOfInterestV2 {
9037
9043
  toJSON(data) {
9038
9044
  data = typeof data === 'object' ? data : {};
9039
9045
  data["investorId"] = this.investorId;
9046
+ data["advisorId"] = this.advisorId;
9040
9047
  data["targetId"] = this.targetId;
9041
9048
  data["targetAssetType"] = this.targetAssetType;
9042
9049
  data["numberOfClients"] = this.numberOfClients;
@@ -10615,6 +10622,7 @@ export class IndicationOfInterestV2 {
10615
10622
  if (_data) {
10616
10623
  this.id = _data["id"];
10617
10624
  this.investorId = _data["investorId"];
10625
+ this.advisorId = _data["advisorId"];
10618
10626
  this.targetId = _data["targetId"];
10619
10627
  this.targetAssetType = _data["targetAssetType"];
10620
10628
  this.numberOfClients = _data["numberOfClients"];
@@ -10638,6 +10646,7 @@ export class IndicationOfInterestV2 {
10638
10646
  data = typeof data === 'object' ? data : {};
10639
10647
  data["id"] = this.id;
10640
10648
  data["investorId"] = this.investorId;
10649
+ data["advisorId"] = this.advisorId;
10641
10650
  data["targetId"] = this.targetId;
10642
10651
  data["targetAssetType"] = this.targetAssetType;
10643
10652
  data["numberOfClients"] = this.numberOfClients;
@@ -14217,6 +14226,7 @@ export class QuestionnaireQuestionAnswer {
14217
14226
  init(_data) {
14218
14227
  if (_data) {
14219
14228
  this.id = _data["id"];
14229
+ this.questionId = _data["questionId"];
14220
14230
  this.questionText = _data["questionText"];
14221
14231
  this.questionExplanation = _data["questionExplanation"];
14222
14232
  this.questionFormat = _data["questionFormat"];
@@ -14239,6 +14249,7 @@ export class QuestionnaireQuestionAnswer {
14239
14249
  toJSON(data) {
14240
14250
  data = typeof data === 'object' ? data : {};
14241
14251
  data["id"] = this.id;
14252
+ data["questionId"] = this.questionId;
14242
14253
  data["questionText"] = this.questionText;
14243
14254
  data["questionExplanation"] = this.questionExplanation;
14244
14255
  data["questionFormat"] = this.questionFormat;
@@ -17621,6 +17632,7 @@ export var TransactionActionType;
17621
17632
  TransactionActionType["DocumentSign"] = "DocumentSign";
17622
17633
  TransactionActionType["DocumentAcknowledge"] = "DocumentAcknowledge";
17623
17634
  TransactionActionType["TextAcknowledge"] = "TextAcknowledge";
17635
+ TransactionActionType["Questionnaire"] = "Questionnaire";
17624
17636
  })(TransactionActionType || (TransactionActionType = {}));
17625
17637
  export var TransactionActionResponsibleParty;
17626
17638
  (function (TransactionActionResponsibleParty) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monarkmarkets/api-client",
3
- "version": "1.3.16",
3
+ "version": "1.3.18",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,6 +27,6 @@
27
27
  "typescript": "5.9.3"
28
28
  },
29
29
  "dependencies": {
30
- "nswag": "14.6.2"
30
+ "nswag": "14.6.3"
31
31
  }
32
32
  }