@monarkmarkets/api-client 1.3.27 → 1.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Client.js CHANGED
@@ -390,6 +390,7 @@ export class Client {
390
390
  * @param preIPOCompanyInvestmentId (optional) PreIPOCompanyInvestmentId to filter by.
391
391
  * @param transactionId (optional) TransactionId to filter by (InvestorSubscription or RegisteredFundSubscription).
392
392
  * @param registeredFundId (optional) RegisteredFundId to filter by.
393
+ * @param managerId (optional) Manager ID to filter by. Filters documents that third party managers should see.
393
394
  * @param documentType (optional) Type of document to filter by.
394
395
  * @param page (optional) Number of the page to retrieve.
395
396
  Defaults to 1 if not specified.
@@ -399,7 +400,7 @@ export class Client {
399
400
  * @param sortOrder (optional) Sort order for results.
400
401
  * @return OK
401
402
  */
402
- getAllDocumentsV2(investorId, preIPOCompanyId, preIPOCompanySPVId, preIPOCompanyInvestmentId, transactionId, registeredFundId, documentType, page, pageSize, exactMatch, sortOrder) {
403
+ getAllDocumentsV2(investorId, preIPOCompanyId, preIPOCompanySPVId, preIPOCompanyInvestmentId, transactionId, registeredFundId, managerId, documentType, page, pageSize, exactMatch, sortOrder) {
403
404
  let url_ = this.baseUrl + "/primary/v2/document?";
404
405
  if (investorId === null)
405
406
  throw new globalThis.Error("The parameter 'investorId' cannot be null.");
@@ -425,6 +426,10 @@ export class Client {
425
426
  throw new globalThis.Error("The parameter 'registeredFundId' cannot be null.");
426
427
  else if (registeredFundId !== undefined)
427
428
  url_ += "registeredFundId=" + encodeURIComponent("" + registeredFundId) + "&";
429
+ if (managerId === null)
430
+ throw new globalThis.Error("The parameter 'managerId' cannot be null.");
431
+ else if (managerId !== undefined)
432
+ url_ += "managerId=" + encodeURIComponent("" + managerId) + "&";
428
433
  if (documentType === null)
429
434
  throw new globalThis.Error("The parameter 'documentType' cannot be null.");
430
435
  else if (documentType !== undefined)
@@ -3862,11 +3867,439 @@ export class Client {
3862
3867
  return Promise.resolve(null);
3863
3868
  }
3864
3869
  /**
3865
- * Get the Partner of the authenticated user.
3866
- * @return Returns the Partner with the specified Id.
3870
+ * Get the Partner of the authenticated user.
3871
+ * @return Returns the Partner with the specified Id.
3872
+ */
3873
+ getPartner() {
3874
+ let url_ = this.baseUrl + "/primary/v1/partner";
3875
+ url_ = url_.replace(/[?&]$/, "");
3876
+ let options_ = {
3877
+ method: "GET",
3878
+ headers: {
3879
+ "Accept": "application/json"
3880
+ }
3881
+ };
3882
+ return this.http.fetch(url_, options_).then((_response) => {
3883
+ return this.processGetPartner(_response);
3884
+ });
3885
+ }
3886
+ processGetPartner(response) {
3887
+ const status = response.status;
3888
+ let _headers = {};
3889
+ if (response.headers && response.headers.forEach) {
3890
+ response.headers.forEach((v, k) => _headers[k] = v);
3891
+ }
3892
+ ;
3893
+ if (status === 200) {
3894
+ return response.text().then((_responseText) => {
3895
+ let result200 = null;
3896
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3897
+ result200 = Partner.fromJS(resultData200);
3898
+ return result200;
3899
+ });
3900
+ }
3901
+ else if (status === 404) {
3902
+ return response.text().then((_responseText) => {
3903
+ let result404 = null;
3904
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3905
+ result404 = ProblemDetails.fromJS(resultData404);
3906
+ return throwException("Partner not found.", status, _responseText, _headers, result404);
3907
+ });
3908
+ }
3909
+ else if (status !== 200 && status !== 204) {
3910
+ return response.text().then((_responseText) => {
3911
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3912
+ });
3913
+ }
3914
+ return Promise.resolve(null);
3915
+ }
3916
+ /**
3917
+ * Gets all targets of a specific type that have been approved.
3918
+ * @param targetType (optional) Type of the target entities to retrieve (PreIPOCompanySPV, RegisteredFund, etc.).
3919
+ * @param page (optional) Number of the page to retrieve.
3920
+ Defaults to 1 if not specified.
3921
+ * @param pageSize (optional) Size of the page to retrieve.
3922
+ Defaults to 25 if not specified.
3923
+ * @return Returns the list of approved target IDs.
3924
+ */
3925
+ getPartnerApprovedTargets(targetType, page, pageSize) {
3926
+ let url_ = this.baseUrl + "/primary/v2/partner-approval/partner/targets?";
3927
+ if (targetType === null)
3928
+ throw new globalThis.Error("The parameter 'targetType' cannot be null.");
3929
+ else if (targetType !== undefined)
3930
+ url_ += "targetType=" + encodeURIComponent("" + targetType) + "&";
3931
+ if (page === null)
3932
+ throw new globalThis.Error("The parameter 'page' cannot be null.");
3933
+ else if (page !== undefined)
3934
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
3935
+ if (pageSize === null)
3936
+ throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
3937
+ else if (pageSize !== undefined)
3938
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3939
+ url_ = url_.replace(/[?&]$/, "");
3940
+ let options_ = {
3941
+ method: "GET",
3942
+ headers: {
3943
+ "Accept": "application/json"
3944
+ }
3945
+ };
3946
+ return this.http.fetch(url_, options_).then((_response) => {
3947
+ return this.processGetPartnerApprovedTargets(_response);
3948
+ });
3949
+ }
3950
+ processGetPartnerApprovedTargets(response) {
3951
+ const status = response.status;
3952
+ let _headers = {};
3953
+ if (response.headers && response.headers.forEach) {
3954
+ response.headers.forEach((v, k) => _headers[k] = v);
3955
+ }
3956
+ ;
3957
+ if (status === 200) {
3958
+ return response.text().then((_responseText) => {
3959
+ let result200 = null;
3960
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3961
+ result200 = GuidApiResponse.fromJS(resultData200);
3962
+ return result200;
3963
+ });
3964
+ }
3965
+ else if (status === 404) {
3966
+ return response.text().then((_responseText) => {
3967
+ let result404 = null;
3968
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3969
+ result404 = ProblemDetails.fromJS(resultData404);
3970
+ return throwException("Partner not found.", status, _responseText, _headers, result404);
3971
+ });
3972
+ }
3973
+ else if (status !== 200 && status !== 204) {
3974
+ return response.text().then((_responseText) => {
3975
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3976
+ });
3977
+ }
3978
+ return Promise.resolve(null);
3979
+ }
3980
+ /**
3981
+ * Gets all approved targets for the authenticated Partner with full target objects included, optionally filtered by target type.
3982
+ * @param page (optional) Number of the page to retrieve.
3983
+ Defaults to 1 if not specified.
3984
+ * @param pageSize (optional) Size of the page to retrieve.
3985
+ Defaults to 25 if not specified.
3986
+ * @param targetType (optional) Optional target type to filter by (PreIPOCompanySPV, RegisteredFund, etc.). If not provided, returns all types.
3987
+ * @return Returns the approved targets with full objects.
3988
+ */
3989
+ getPartnerApprovedTargetsWithObjects(page, pageSize, targetType) {
3990
+ let url_ = this.baseUrl + "/primary/v2/partner-approval/partner/targets/expanded?";
3991
+ if (page === null)
3992
+ throw new globalThis.Error("The parameter 'page' cannot be null.");
3993
+ else if (page !== undefined)
3994
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
3995
+ if (pageSize === null)
3996
+ throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
3997
+ else if (pageSize !== undefined)
3998
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
3999
+ if (targetType === null)
4000
+ throw new globalThis.Error("The parameter 'targetType' cannot be null.");
4001
+ else if (targetType !== undefined)
4002
+ url_ += "targetType=" + encodeURIComponent("" + targetType) + "&";
4003
+ url_ = url_.replace(/[?&]$/, "");
4004
+ let options_ = {
4005
+ method: "GET",
4006
+ headers: {
4007
+ "Accept": "application/json"
4008
+ }
4009
+ };
4010
+ return this.http.fetch(url_, options_).then((_response) => {
4011
+ return this.processGetPartnerApprovedTargetsWithObjects(_response);
4012
+ });
4013
+ }
4014
+ processGetPartnerApprovedTargetsWithObjects(response) {
4015
+ const status = response.status;
4016
+ let _headers = {};
4017
+ if (response.headers && response.headers.forEach) {
4018
+ response.headers.forEach((v, k) => _headers[k] = v);
4019
+ }
4020
+ ;
4021
+ if (status === 200) {
4022
+ return response.text().then((_responseText) => {
4023
+ let result200 = null;
4024
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4025
+ result200 = PartnerApprovalWithTargets.fromJS(resultData200);
4026
+ return result200;
4027
+ });
4028
+ }
4029
+ else if (status === 404) {
4030
+ return response.text().then((_responseText) => {
4031
+ let result404 = null;
4032
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4033
+ result404 = ProblemDetails.fromJS(resultData404);
4034
+ return throwException("Partner not found.", status, _responseText, _headers, result404);
4035
+ });
4036
+ }
4037
+ else if (status !== 200 && status !== 204) {
4038
+ return response.text().then((_responseText) => {
4039
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4040
+ });
4041
+ }
4042
+ return Promise.resolve(null);
4043
+ }
4044
+ /**
4045
+ * Checks if a specific target has been approved.
4046
+ * @param targetId ID of the target entity.
4047
+ * @param targetType (optional) Type of the target entity.
4048
+ * @return Returns whether approval exists.
4049
+ */
4050
+ isTargetApproved(targetId, targetType) {
4051
+ let url_ = this.baseUrl + "/primary/v2/partner-approval/target/{targetId}/is-approved?";
4052
+ if (targetId === undefined || targetId === null)
4053
+ throw new globalThis.Error("The parameter 'targetId' must be defined.");
4054
+ url_ = url_.replace("{targetId}", encodeURIComponent("" + targetId));
4055
+ if (targetType === null)
4056
+ throw new globalThis.Error("The parameter 'targetType' cannot be null.");
4057
+ else if (targetType !== undefined)
4058
+ url_ += "targetType=" + encodeURIComponent("" + targetType) + "&";
4059
+ url_ = url_.replace(/[?&]$/, "");
4060
+ let options_ = {
4061
+ method: "GET",
4062
+ headers: {
4063
+ "Accept": "application/json"
4064
+ }
4065
+ };
4066
+ return this.http.fetch(url_, options_).then((_response) => {
4067
+ return this.processIsTargetApproved(_response);
4068
+ });
4069
+ }
4070
+ processIsTargetApproved(response) {
4071
+ const status = response.status;
4072
+ let _headers = {};
4073
+ if (response.headers && response.headers.forEach) {
4074
+ response.headers.forEach((v, k) => _headers[k] = v);
4075
+ }
4076
+ ;
4077
+ if (status === 200) {
4078
+ return response.text().then((_responseText) => {
4079
+ let result200 = null;
4080
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4081
+ result200 = resultData200 !== undefined ? resultData200 : null;
4082
+ return result200;
4083
+ });
4084
+ }
4085
+ else if (status === 404) {
4086
+ return response.text().then((_responseText) => {
4087
+ let result404 = null;
4088
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4089
+ result404 = ProblemDetails.fromJS(resultData404);
4090
+ return throwException("Target or Partner not found.", status, _responseText, _headers, result404);
4091
+ });
4092
+ }
4093
+ else if (status !== 200 && status !== 204) {
4094
+ return response.text().then((_responseText) => {
4095
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4096
+ });
4097
+ }
4098
+ return Promise.resolve(null);
4099
+ }
4100
+ /**
4101
+ * Approves a target.
4102
+ * @param targetId ID of the target entity.
4103
+ * @param targetType (optional) Type of the target entity.
4104
+ * @param body (optional) Approval request containing optional notes.
4105
+ * @return Target successfully approved.
4106
+ */
4107
+ approveTarget(targetId, targetType, body) {
4108
+ let url_ = this.baseUrl + "/primary/v2/partner-approval/target/{targetId}/approve?";
4109
+ if (targetId === undefined || targetId === null)
4110
+ throw new globalThis.Error("The parameter 'targetId' must be defined.");
4111
+ url_ = url_.replace("{targetId}", encodeURIComponent("" + targetId));
4112
+ if (targetType === null)
4113
+ throw new globalThis.Error("The parameter 'targetType' cannot be null.");
4114
+ else if (targetType !== undefined)
4115
+ url_ += "targetType=" + encodeURIComponent("" + targetType) + "&";
4116
+ url_ = url_.replace(/[?&]$/, "");
4117
+ const content_ = JSON.stringify(body);
4118
+ let options_ = {
4119
+ body: content_,
4120
+ method: "PUT",
4121
+ headers: {
4122
+ "Content-Type": "application/json",
4123
+ "Accept": "application/json"
4124
+ }
4125
+ };
4126
+ return this.http.fetch(url_, options_).then((_response) => {
4127
+ return this.processApproveTarget(_response);
4128
+ });
4129
+ }
4130
+ processApproveTarget(response) {
4131
+ const status = response.status;
4132
+ let _headers = {};
4133
+ if (response.headers && response.headers.forEach) {
4134
+ response.headers.forEach((v, k) => _headers[k] = v);
4135
+ }
4136
+ ;
4137
+ if (status === 200) {
4138
+ return response.text().then((_responseText) => {
4139
+ let result200 = null;
4140
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4141
+ result200 = resultData200 !== undefined ? resultData200 : null;
4142
+ return result200;
4143
+ });
4144
+ }
4145
+ else if (status === 400) {
4146
+ return response.text().then((_responseText) => {
4147
+ let result400 = null;
4148
+ let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4149
+ result400 = ProblemDetails.fromJS(resultData400);
4150
+ return throwException("Bad request if required fields are missing.", status, _responseText, _headers, result400);
4151
+ });
4152
+ }
4153
+ else if (status === 404) {
4154
+ return response.text().then((_responseText) => {
4155
+ let result404 = null;
4156
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4157
+ result404 = ProblemDetails.fromJS(resultData404);
4158
+ return throwException("Target not found.", status, _responseText, _headers, result404);
4159
+ });
4160
+ }
4161
+ else if (status !== 200 && status !== 204) {
4162
+ return response.text().then((_responseText) => {
4163
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4164
+ });
4165
+ }
4166
+ return Promise.resolve(null);
4167
+ }
4168
+ /**
4169
+ * Gets the approval record for a specific target.
4170
+ * @param targetId ID of the target entity.
4171
+ * @param targetType (optional) Type of the target entity.
4172
+ * @return Returns the approval record.
4173
+ */
4174
+ getPartnerTargetApproval(targetId, targetType) {
4175
+ let url_ = this.baseUrl + "/primary/v2/partner-approval/target/{targetId}/approval?";
4176
+ if (targetId === undefined || targetId === null)
4177
+ throw new globalThis.Error("The parameter 'targetId' must be defined.");
4178
+ url_ = url_.replace("{targetId}", encodeURIComponent("" + targetId));
4179
+ if (targetType === null)
4180
+ throw new globalThis.Error("The parameter 'targetType' cannot be null.");
4181
+ else if (targetType !== undefined)
4182
+ url_ += "targetType=" + encodeURIComponent("" + targetType) + "&";
4183
+ url_ = url_.replace(/[?&]$/, "");
4184
+ let options_ = {
4185
+ method: "GET",
4186
+ headers: {
4187
+ "Accept": "application/json"
4188
+ }
4189
+ };
4190
+ return this.http.fetch(url_, options_).then((_response) => {
4191
+ return this.processGetPartnerTargetApproval(_response);
4192
+ });
4193
+ }
4194
+ processGetPartnerTargetApproval(response) {
4195
+ const status = response.status;
4196
+ let _headers = {};
4197
+ if (response.headers && response.headers.forEach) {
4198
+ response.headers.forEach((v, k) => _headers[k] = v);
4199
+ }
4200
+ ;
4201
+ if (status === 200) {
4202
+ return response.text().then((_responseText) => {
4203
+ let result200 = null;
4204
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4205
+ result200 = PartnerApproval.fromJS(resultData200);
4206
+ return result200;
4207
+ });
4208
+ }
4209
+ else if (status === 404) {
4210
+ return response.text().then((_responseText) => {
4211
+ let result404 = null;
4212
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4213
+ result404 = ProblemDetails.fromJS(resultData404);
4214
+ return throwException("Target not found.", status, _responseText, _headers, result404);
4215
+ });
4216
+ }
4217
+ else if (status !== 200 && status !== 204) {
4218
+ return response.text().then((_responseText) => {
4219
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4220
+ });
4221
+ }
4222
+ return Promise.resolve(null);
4223
+ }
4224
+ /**
4225
+ * Gets an approval record by Id.
4226
+ * @param approvalId ID of the approval record.
4227
+ * @return Returns an approval record.
4228
+ */
4229
+ getPartnerTargetApprovalById(approvalId) {
4230
+ let url_ = this.baseUrl + "/primary/v2/partner-approval/{approvalId}";
4231
+ if (approvalId === undefined || approvalId === null)
4232
+ throw new globalThis.Error("The parameter 'approvalId' must be defined.");
4233
+ url_ = url_.replace("{approvalId}", encodeURIComponent("" + approvalId));
4234
+ url_ = url_.replace(/[?&]$/, "");
4235
+ let options_ = {
4236
+ method: "GET",
4237
+ headers: {
4238
+ "Accept": "application/json"
4239
+ }
4240
+ };
4241
+ return this.http.fetch(url_, options_).then((_response) => {
4242
+ return this.processGetPartnerTargetApprovalById(_response);
4243
+ });
4244
+ }
4245
+ processGetPartnerTargetApprovalById(response) {
4246
+ const status = response.status;
4247
+ let _headers = {};
4248
+ if (response.headers && response.headers.forEach) {
4249
+ response.headers.forEach((v, k) => _headers[k] = v);
4250
+ }
4251
+ ;
4252
+ if (status === 200) {
4253
+ return response.text().then((_responseText) => {
4254
+ let result200 = null;
4255
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4256
+ result200 = PartnerApproval.fromJS(resultData200);
4257
+ return result200;
4258
+ });
4259
+ }
4260
+ else if (status === 404) {
4261
+ return response.text().then((_responseText) => {
4262
+ let result404 = null;
4263
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4264
+ result404 = ProblemDetails.fromJS(resultData404);
4265
+ return throwException("Not Found", status, _responseText, _headers, result404);
4266
+ });
4267
+ }
4268
+ else if (status !== 200 && status !== 204) {
4269
+ return response.text().then((_responseText) => {
4270
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4271
+ });
4272
+ }
4273
+ return Promise.resolve(null);
4274
+ }
4275
+ /**
4276
+ * Gets all approval records with optional filtering.
4277
+ * @param page (optional) Number of the page to retrieve.
4278
+ Defaults to 1 if not specified.
4279
+ * @param pageSize (optional) Size of the page to retrieve.
4280
+ Defaults to 25 if not specified.
4281
+ * @param targetType (optional) Optional target type to filter by.
4282
+ * @param sortOrder (optional) Sort order for results.
4283
+ * @return Returns the list of approval records.
3867
4284
  */
3868
- getPartner() {
3869
- let url_ = this.baseUrl + "/primary/v1/partner";
4285
+ getAllPartnerTargetApprovals(page, pageSize, targetType, sortOrder) {
4286
+ let url_ = this.baseUrl + "/primary/v2/partner-approval?";
4287
+ if (page === null)
4288
+ throw new globalThis.Error("The parameter 'page' cannot be null.");
4289
+ else if (page !== undefined)
4290
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
4291
+ if (pageSize === null)
4292
+ throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
4293
+ else if (pageSize !== undefined)
4294
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4295
+ if (targetType === null)
4296
+ throw new globalThis.Error("The parameter 'targetType' cannot be null.");
4297
+ else if (targetType !== undefined)
4298
+ url_ += "targetType=" + encodeURIComponent("" + targetType) + "&";
4299
+ if (sortOrder === null)
4300
+ throw new globalThis.Error("The parameter 'sortOrder' cannot be null.");
4301
+ else if (sortOrder !== undefined)
4302
+ url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
3870
4303
  url_ = url_.replace(/[?&]$/, "");
3871
4304
  let options_ = {
3872
4305
  method: "GET",
@@ -3875,10 +4308,10 @@ export class Client {
3875
4308
  }
3876
4309
  };
3877
4310
  return this.http.fetch(url_, options_).then((_response) => {
3878
- return this.processGetPartner(_response);
4311
+ return this.processGetAllPartnerTargetApprovals(_response);
3879
4312
  });
3880
4313
  }
3881
- processGetPartner(response) {
4314
+ processGetAllPartnerTargetApprovals(response) {
3882
4315
  const status = response.status;
3883
4316
  let _headers = {};
3884
4317
  if (response.headers && response.headers.forEach) {
@@ -3889,18 +4322,10 @@ export class Client {
3889
4322
  return response.text().then((_responseText) => {
3890
4323
  let result200 = null;
3891
4324
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3892
- result200 = Partner.fromJS(resultData200);
4325
+ result200 = PartnerApprovalApiResponse.fromJS(resultData200);
3893
4326
  return result200;
3894
4327
  });
3895
4328
  }
3896
- else if (status === 404) {
3897
- return response.text().then((_responseText) => {
3898
- let result404 = null;
3899
- let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3900
- result404 = ProblemDetails.fromJS(resultData404);
3901
- return throwException("Partner not found.", status, _responseText, _headers, result404);
3902
- });
3903
- }
3904
4329
  else if (status !== 200 && status !== 204) {
3905
4330
  return response.text().then((_responseText) => {
3906
4331
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -5719,6 +6144,7 @@ export class Client {
5719
6144
  * @param pageSize (optional) Size of the page to retrieve.
5720
6145
  Defaults to 25 if not specified.
5721
6146
  * @return Returns the list of approved SPVs.
6147
+ * @deprecated
5722
6148
  */
5723
6149
  getPartnerApprovedSPVs(page, pageSize) {
5724
6150
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/partner/spvs?";
@@ -5775,6 +6201,7 @@ export class Client {
5775
6201
  * Checks if a specific SPV has been approved.
5776
6202
  * @param spvId ID of the SPV.
5777
6203
  * @return Returns whether approval exists.
6204
+ * @deprecated
5778
6205
  */
5779
6206
  isSpvApproved(spvId) {
5780
6207
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/is-approved";
@@ -5827,6 +6254,7 @@ export class Client {
5827
6254
  * @param spvId ID of the SPV.
5828
6255
  * @param body (optional) Approval request containing optional notes.
5829
6256
  * @return SPV successfully approved.
6257
+ * @deprecated
5830
6258
  */
5831
6259
  approveSpv(spvId, body) {
5832
6260
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/approve";
@@ -5889,6 +6317,7 @@ export class Client {
5889
6317
  * Gets the approval record for a specific SPV.
5890
6318
  * @param spvId ID of the SPV.
5891
6319
  * @return Returns the approval record.
6320
+ * @deprecated
5892
6321
  */
5893
6322
  getPartnerSpvApproval(spvId) {
5894
6323
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/approval";
@@ -5939,6 +6368,7 @@ export class Client {
5939
6368
  /**
5940
6369
  * Gets an approval record by Id.
5941
6370
  * @return Returns an approval record.
6371
+ * @deprecated
5942
6372
  */
5943
6373
  getPartnerSpvApprovalById(approvalId) {
5944
6374
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/{approvalId}";
@@ -5994,6 +6424,7 @@ export class Client {
5994
6424
  Defaults to 25 if not specified.
5995
6425
  * @param sortOrder (optional) Sort order for results.
5996
6426
  * @return Returns the list of approval records.
6427
+ * @deprecated
5997
6428
  */
5998
6429
  getAllPartnerSpvApprovals(page, pageSize, sortOrder) {
5999
6430
  let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval?";
@@ -9298,6 +9729,33 @@ export class CreateInvestorSubscription {
9298
9729
  return data;
9299
9730
  }
9300
9731
  }
9732
+ /** Request model for creating or updating a Partner approval. */
9733
+ export class CreatePartnerApproval {
9734
+ constructor(data) {
9735
+ if (data) {
9736
+ for (var property in data) {
9737
+ if (data.hasOwnProperty(property))
9738
+ this[property] = data[property];
9739
+ }
9740
+ }
9741
+ }
9742
+ init(_data) {
9743
+ if (_data) {
9744
+ this.notes = _data["notes"];
9745
+ }
9746
+ }
9747
+ static fromJS(data) {
9748
+ data = typeof data === 'object' ? data : {};
9749
+ let result = new CreatePartnerApproval();
9750
+ result.init(data);
9751
+ return result;
9752
+ }
9753
+ toJSON(data) {
9754
+ data = typeof data === 'object' ? data : {};
9755
+ data["notes"] = this.notes;
9756
+ return data;
9757
+ }
9758
+ }
9301
9759
  export class CreatePreIPOCompanySPVPartnerApproval {
9302
9760
  constructor(data) {
9303
9761
  if (data) {
@@ -10640,6 +11098,42 @@ export class FundManager {
10640
11098
  return data;
10641
11099
  }
10642
11100
  }
11101
+ export class GuidApiResponse {
11102
+ constructor(data) {
11103
+ if (data) {
11104
+ for (var property in data) {
11105
+ if (data.hasOwnProperty(property))
11106
+ this[property] = data[property];
11107
+ }
11108
+ }
11109
+ }
11110
+ init(_data) {
11111
+ if (_data) {
11112
+ if (Array.isArray(_data["items"])) {
11113
+ this.items = [];
11114
+ for (let item of _data["items"])
11115
+ this.items.push(item);
11116
+ }
11117
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
11118
+ }
11119
+ }
11120
+ static fromJS(data) {
11121
+ data = typeof data === 'object' ? data : {};
11122
+ let result = new GuidApiResponse();
11123
+ result.init(data);
11124
+ return result;
11125
+ }
11126
+ toJSON(data) {
11127
+ data = typeof data === 'object' ? data : {};
11128
+ if (Array.isArray(this.items)) {
11129
+ data["items"] = [];
11130
+ for (let item of this.items)
11131
+ data["items"].push(item);
11132
+ }
11133
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
11134
+ return data;
11135
+ }
11136
+ }
10643
11137
  export class ICustomAttributeProvider {
10644
11138
  constructor(data) {
10645
11139
  if (data) {
@@ -12776,6 +13270,13 @@ export class Partner {
12776
13270
  this.name = _data["name"];
12777
13271
  this.partnerType = _data["partnerType"];
12778
13272
  this.legalEntityName = _data["legalEntityName"];
13273
+ this.primaryPhoneCountryCode = _data["primaryPhoneCountryCode"];
13274
+ this.primaryPhone = _data["primaryPhone"];
13275
+ this.street1 = _data["street1"];
13276
+ this.street2 = _data["street2"];
13277
+ this.city = _data["city"];
13278
+ this.state = _data["state"];
13279
+ this.zipCode = _data["zipCode"];
12779
13280
  this.countryCode = _data["countryCode"];
12780
13281
  this.website = _data["website"];
12781
13282
  if (Array.isArray(_data["executiveTeam"])) {
@@ -12810,6 +13311,13 @@ export class Partner {
12810
13311
  data["name"] = this.name;
12811
13312
  data["partnerType"] = this.partnerType;
12812
13313
  data["legalEntityName"] = this.legalEntityName;
13314
+ data["primaryPhoneCountryCode"] = this.primaryPhoneCountryCode;
13315
+ data["primaryPhone"] = this.primaryPhone;
13316
+ data["street1"] = this.street1;
13317
+ data["street2"] = this.street2;
13318
+ data["city"] = this.city;
13319
+ data["state"] = this.state;
13320
+ data["zipCode"] = this.zipCode;
12813
13321
  data["countryCode"] = this.countryCode;
12814
13322
  data["website"] = this.website;
12815
13323
  if (Array.isArray(this.executiveTeam)) {
@@ -12833,6 +13341,130 @@ export class Partner {
12833
13341
  return data;
12834
13342
  }
12835
13343
  }
13344
+ /** Represents approval control mapping between targets (SPVs, Funds, etc.) and Partners. */
13345
+ export class PartnerApproval {
13346
+ constructor(data) {
13347
+ if (data) {
13348
+ for (var property in data) {
13349
+ if (data.hasOwnProperty(property))
13350
+ this[property] = data[property];
13351
+ }
13352
+ }
13353
+ }
13354
+ init(_data) {
13355
+ if (_data) {
13356
+ this.id = _data["id"];
13357
+ this.targetId = _data["targetId"];
13358
+ this.targetType = _data["targetType"];
13359
+ this.partnerId = _data["partnerId"];
13360
+ this.isApproved = _data["isApproved"];
13361
+ this.notes = _data["notes"];
13362
+ this.createdAt = _data["createdAt"] ? new Date(_data["createdAt"].toString()) : undefined;
13363
+ this.updatedAt = _data["updatedAt"] ? new Date(_data["updatedAt"].toString()) : undefined;
13364
+ }
13365
+ }
13366
+ static fromJS(data) {
13367
+ data = typeof data === 'object' ? data : {};
13368
+ let result = new PartnerApproval();
13369
+ result.init(data);
13370
+ return result;
13371
+ }
13372
+ toJSON(data) {
13373
+ data = typeof data === 'object' ? data : {};
13374
+ data["id"] = this.id;
13375
+ data["targetId"] = this.targetId;
13376
+ data["targetType"] = this.targetType;
13377
+ data["partnerId"] = this.partnerId;
13378
+ data["isApproved"] = this.isApproved;
13379
+ data["notes"] = this.notes;
13380
+ data["createdAt"] = this.createdAt ? this.createdAt.toISOString() : undefined;
13381
+ data["updatedAt"] = this.updatedAt ? this.updatedAt.toISOString() : undefined;
13382
+ return data;
13383
+ }
13384
+ }
13385
+ export class PartnerApprovalApiResponse {
13386
+ constructor(data) {
13387
+ if (data) {
13388
+ for (var property in data) {
13389
+ if (data.hasOwnProperty(property))
13390
+ this[property] = data[property];
13391
+ }
13392
+ }
13393
+ }
13394
+ init(_data) {
13395
+ if (_data) {
13396
+ if (Array.isArray(_data["items"])) {
13397
+ this.items = [];
13398
+ for (let item of _data["items"])
13399
+ this.items.push(PartnerApproval.fromJS(item));
13400
+ }
13401
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
13402
+ }
13403
+ }
13404
+ static fromJS(data) {
13405
+ data = typeof data === 'object' ? data : {};
13406
+ let result = new PartnerApprovalApiResponse();
13407
+ result.init(data);
13408
+ return result;
13409
+ }
13410
+ toJSON(data) {
13411
+ data = typeof data === 'object' ? data : {};
13412
+ if (Array.isArray(this.items)) {
13413
+ data["items"] = [];
13414
+ for (let item of this.items)
13415
+ data["items"].push(item ? item.toJSON() : undefined);
13416
+ }
13417
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
13418
+ return data;
13419
+ }
13420
+ }
13421
+ /** Partner approval information with included target objects. */
13422
+ export class PartnerApprovalWithTargets {
13423
+ constructor(data) {
13424
+ if (data) {
13425
+ for (var property in data) {
13426
+ if (data.hasOwnProperty(property))
13427
+ this[property] = data[property];
13428
+ }
13429
+ }
13430
+ }
13431
+ init(_data) {
13432
+ if (_data) {
13433
+ if (Array.isArray(_data["preIPOCompanySPVs"])) {
13434
+ this.preIPOCompanySPVs = [];
13435
+ for (let item of _data["preIPOCompanySPVs"])
13436
+ this.preIPOCompanySPVs.push(PreIPOCompanySPV.fromJS(item));
13437
+ }
13438
+ if (Array.isArray(_data["registeredFunds"])) {
13439
+ this.registeredFunds = [];
13440
+ for (let item of _data["registeredFunds"])
13441
+ this.registeredFunds.push(RegisteredFund.fromJS(item));
13442
+ }
13443
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
13444
+ }
13445
+ }
13446
+ static fromJS(data) {
13447
+ data = typeof data === 'object' ? data : {};
13448
+ let result = new PartnerApprovalWithTargets();
13449
+ result.init(data);
13450
+ return result;
13451
+ }
13452
+ toJSON(data) {
13453
+ data = typeof data === 'object' ? data : {};
13454
+ if (Array.isArray(this.preIPOCompanySPVs)) {
13455
+ data["preIPOCompanySPVs"] = [];
13456
+ for (let item of this.preIPOCompanySPVs)
13457
+ data["preIPOCompanySPVs"].push(item ? item.toJSON() : undefined);
13458
+ }
13459
+ if (Array.isArray(this.registeredFunds)) {
13460
+ data["registeredFunds"] = [];
13461
+ for (let item of this.registeredFunds)
13462
+ data["registeredFunds"].push(item ? item.toJSON() : undefined);
13463
+ }
13464
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
13465
+ return data;
13466
+ }
13467
+ }
12836
13468
  /** Read model representing a PMI feed composite derived pricing record returned by the API. */
12837
13469
  export class PmiFeedPricing {
12838
13470
  constructor(data) {
@@ -14965,6 +15597,7 @@ export class TransactionAction {
14965
15597
  this.type = _data["type"];
14966
15598
  this.responsibleParty = _data["responsibleParty"];
14967
15599
  this.actionText = _data["actionText"];
15600
+ this.markdownText = _data["markdownText"];
14968
15601
  }
14969
15602
  }
14970
15603
  static fromJS(data) {
@@ -14984,6 +15617,7 @@ export class TransactionAction {
14984
15617
  data["type"] = this.type;
14985
15618
  data["responsibleParty"] = this.responsibleParty;
14986
15619
  data["actionText"] = this.actionText;
15620
+ data["markdownText"] = this.markdownText;
14987
15621
  return data;
14988
15622
  }
14989
15623
  }
@@ -16461,6 +17095,45 @@ export var SortOrder8;
16461
17095
  SortOrder8["Ascending"] = "Ascending";
16462
17096
  SortOrder8["Descending"] = "Descending";
16463
17097
  })(SortOrder8 || (SortOrder8 = {}));
17098
+ /** Defines the types of targets that can have Partner approval control. */
17099
+ export var TargetType;
17100
+ (function (TargetType) {
17101
+ TargetType["PreIPOCompanySPV"] = "PreIPOCompanySPV";
17102
+ TargetType["RegisteredFund"] = "RegisteredFund";
17103
+ })(TargetType || (TargetType = {}));
17104
+ export var TargetType2;
17105
+ (function (TargetType2) {
17106
+ TargetType2["PreIPOCompanySPV"] = "PreIPOCompanySPV";
17107
+ TargetType2["RegisteredFund"] = "RegisteredFund";
17108
+ })(TargetType2 || (TargetType2 = {}));
17109
+ /** Defines the types of targets that can have Partner approval control. */
17110
+ export var TargetType3;
17111
+ (function (TargetType3) {
17112
+ TargetType3["PreIPOCompanySPV"] = "PreIPOCompanySPV";
17113
+ TargetType3["RegisteredFund"] = "RegisteredFund";
17114
+ })(TargetType3 || (TargetType3 = {}));
17115
+ /** Defines the types of targets that can have Partner approval control. */
17116
+ export var TargetType4;
17117
+ (function (TargetType4) {
17118
+ TargetType4["PreIPOCompanySPV"] = "PreIPOCompanySPV";
17119
+ TargetType4["RegisteredFund"] = "RegisteredFund";
17120
+ })(TargetType4 || (TargetType4 = {}));
17121
+ /** Defines the types of targets that can have Partner approval control. */
17122
+ export var TargetType5;
17123
+ (function (TargetType5) {
17124
+ TargetType5["PreIPOCompanySPV"] = "PreIPOCompanySPV";
17125
+ TargetType5["RegisteredFund"] = "RegisteredFund";
17126
+ })(TargetType5 || (TargetType5 = {}));
17127
+ export var TargetType6;
17128
+ (function (TargetType6) {
17129
+ TargetType6["PreIPOCompanySPV"] = "PreIPOCompanySPV";
17130
+ TargetType6["RegisteredFund"] = "RegisteredFund";
17131
+ })(TargetType6 || (TargetType6 = {}));
17132
+ export var SortOrder9;
17133
+ (function (SortOrder9) {
17134
+ SortOrder9["Ascending"] = "Ascending";
17135
+ SortOrder9["Descending"] = "Descending";
17136
+ })(SortOrder9 || (SortOrder9 = {}));
16464
17137
  export var SortBy;
16465
17138
  (function (SortBy) {
16466
17139
  SortBy["UpdatedAt"] = "UpdatedAt";
@@ -16468,11 +17141,11 @@ export var SortBy;
16468
17141
  SortBy["LastValuation"] = "LastValuation";
16469
17142
  SortBy["TotalFunding"] = "TotalFunding";
16470
17143
  })(SortBy || (SortBy = {}));
16471
- export var SortOrder9;
16472
- (function (SortOrder9) {
16473
- SortOrder9["Ascending"] = "Ascending";
16474
- SortOrder9["Descending"] = "Descending";
16475
- })(SortOrder9 || (SortOrder9 = {}));
17144
+ export var SortOrder10;
17145
+ (function (SortOrder10) {
17146
+ SortOrder10["Ascending"] = "Ascending";
17147
+ SortOrder10["Descending"] = "Descending";
17148
+ })(SortOrder10 || (SortOrder10 = {}));
16476
17149
  export var FilterBy;
16477
17150
  (function (FilterBy) {
16478
17151
  FilterBy["Company"] = "Company";
@@ -16487,11 +17160,6 @@ export var Includes;
16487
17160
  Includes["Investments"] = "Investments";
16488
17161
  Includes["Spvs"] = "Spvs";
16489
17162
  })(Includes || (Includes = {}));
16490
- export var SortOrder10;
16491
- (function (SortOrder10) {
16492
- SortOrder10["Ascending"] = "Ascending";
16493
- SortOrder10["Descending"] = "Descending";
16494
- })(SortOrder10 || (SortOrder10 = {}));
16495
17163
  export var SortOrder11;
16496
17164
  (function (SortOrder11) {
16497
17165
  SortOrder11["Ascending"] = "Ascending";
@@ -16507,6 +17175,11 @@ export var SortOrder13;
16507
17175
  SortOrder13["Ascending"] = "Ascending";
16508
17176
  SortOrder13["Descending"] = "Descending";
16509
17177
  })(SortOrder13 || (SortOrder13 = {}));
17178
+ export var SortOrder14;
17179
+ (function (SortOrder14) {
17180
+ SortOrder14["Ascending"] = "Ascending";
17181
+ SortOrder14["Descending"] = "Descending";
17182
+ })(SortOrder14 || (SortOrder14 = {}));
16510
17183
  export var ResearchType;
16511
17184
  (function (ResearchType) {
16512
17185
  ResearchType["INTERVIEW"] = "INTERVIEW";
@@ -16562,11 +17235,11 @@ export var ExemptionsClaimed;
16562
17235
  ExemptionsClaimed["SECURITIES_ACT_SECTION_3_c_14"] = "SECURITIES_ACT_SECTION_3_c_14";
16563
17236
  ExemptionsClaimed["Reg_S"] = "Reg_S";
16564
17237
  })(ExemptionsClaimed || (ExemptionsClaimed = {}));
16565
- export var SortOrder14;
16566
- (function (SortOrder14) {
16567
- SortOrder14["Ascending"] = "Ascending";
16568
- SortOrder14["Descending"] = "Descending";
16569
- })(SortOrder14 || (SortOrder14 = {}));
17238
+ export var SortOrder15;
17239
+ (function (SortOrder15) {
17240
+ SortOrder15["Ascending"] = "Ascending";
17241
+ SortOrder15["Descending"] = "Descending";
17242
+ })(SortOrder15 || (SortOrder15 = {}));
16570
17243
  export var SortBy2;
16571
17244
  (function (SortBy2) {
16572
17245
  SortBy2["UpdatedAt"] = "UpdatedAt";
@@ -16578,11 +17251,6 @@ export var SortBy2;
16578
17251
  SortBy2["Valuation"] = "Valuation";
16579
17252
  SortBy2["MinCommitmentAmount"] = "MinCommitmentAmount";
16580
17253
  })(SortBy2 || (SortBy2 = {}));
16581
- export var SortOrder15;
16582
- (function (SortOrder15) {
16583
- SortOrder15["Ascending"] = "Ascending";
16584
- SortOrder15["Descending"] = "Descending";
16585
- })(SortOrder15 || (SortOrder15 = {}));
16586
17254
  export var SortOrder16;
16587
17255
  (function (SortOrder16) {
16588
17256
  SortOrder16["Ascending"] = "Ascending";
@@ -16618,6 +17286,11 @@ export var SortOrder22;
16618
17286
  SortOrder22["Ascending"] = "Ascending";
16619
17287
  SortOrder22["Descending"] = "Descending";
16620
17288
  })(SortOrder22 || (SortOrder22 = {}));
17289
+ export var SortOrder23;
17290
+ (function (SortOrder23) {
17291
+ SortOrder23["Ascending"] = "Ascending";
17292
+ SortOrder23["Descending"] = "Descending";
17293
+ })(SortOrder23 || (SortOrder23 = {}));
16621
17294
  export var TargetAssetType;
16622
17295
  (function (TargetAssetType) {
16623
17296
  TargetAssetType["PreIPOCompanySPV"] = "PreIPOCompanySPV";
@@ -16642,16 +17315,16 @@ export var TargetAssetType4;
16642
17315
  TargetAssetType4["RegisteredFund"] = "RegisteredFund";
16643
17316
  TargetAssetType4["PreIPOCompany"] = "PreIPOCompany";
16644
17317
  })(TargetAssetType4 || (TargetAssetType4 = {}));
16645
- export var SortOrder23;
16646
- (function (SortOrder23) {
16647
- SortOrder23["Ascending"] = "Ascending";
16648
- SortOrder23["Descending"] = "Descending";
16649
- })(SortOrder23 || (SortOrder23 = {}));
16650
17318
  export var SortOrder24;
16651
17319
  (function (SortOrder24) {
16652
17320
  SortOrder24["Ascending"] = "Ascending";
16653
17321
  SortOrder24["Descending"] = "Descending";
16654
17322
  })(SortOrder24 || (SortOrder24 = {}));
17323
+ export var SortOrder25;
17324
+ (function (SortOrder25) {
17325
+ SortOrder25["Ascending"] = "Ascending";
17326
+ SortOrder25["Descending"] = "Descending";
17327
+ })(SortOrder25 || (SortOrder25 = {}));
16655
17328
  export var EventType;
16656
17329
  (function (EventType) {
16657
17330
  EventType["PreIPOCompany"] = "PreIPOCompany";
@@ -17369,6 +18042,11 @@ export var PartnerRegistration;
17369
18042
  PartnerRegistration["EXEMPT_REPORTING_ADVISOR"] = "EXEMPT_REPORTING_ADVISOR";
17370
18043
  PartnerRegistration["RIA"] = "RIA";
17371
18044
  })(PartnerRegistration || (PartnerRegistration = {}));
18045
+ export var PartnerApprovalTargetType;
18046
+ (function (PartnerApprovalTargetType) {
18047
+ PartnerApprovalTargetType["PreIPOCompanySPV"] = "PreIPOCompanySPV";
18048
+ PartnerApprovalTargetType["RegisteredFund"] = "RegisteredFund";
18049
+ })(PartnerApprovalTargetType || (PartnerApprovalTargetType = {}));
17372
18050
  export var PreIPOCompanyType;
17373
18051
  (function (PreIPOCompanyType) {
17374
18052
  PreIPOCompanyType["SOLE_PROPRIETOR"] = "SOLE_PROPRIETOR";
@@ -17779,6 +18457,7 @@ export var TransactionActionType;
17779
18457
  TransactionActionType["DocumentAcknowledge"] = "DocumentAcknowledge";
17780
18458
  TransactionActionType["TextAcknowledge"] = "TextAcknowledge";
17781
18459
  TransactionActionType["Questionnaire"] = "Questionnaire";
18460
+ TransactionActionType["ViewDisclosure"] = "ViewDisclosure";
17782
18461
  })(TransactionActionType || (TransactionActionType = {}));
17783
18462
  export var TransactionActionResponsibleParty;
17784
18463
  (function (TransactionActionResponsibleParty) {