@monarkmarkets/api-client 1.2.18 → 1.2.19
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 +181 -172
- package/dist/Client.js +334 -258
- package/package.json +1 -1
package/dist/Client.js
CHANGED
|
@@ -17,7 +17,7 @@ export class Client {
|
|
|
17
17
|
* @param body (optional) Address information to normalize.
|
|
18
18
|
* @return Normalized address returned.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
normalizeAddress(body) {
|
|
21
21
|
let url_ = this.baseUrl + "/primary/v1/address/normalize";
|
|
22
22
|
url_ = url_.replace(/[?&]$/, "");
|
|
23
23
|
const content_ = JSON.stringify(body);
|
|
@@ -30,10 +30,10 @@ export class Client {
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
33
|
-
return this.
|
|
33
|
+
return this.processNormalizeAddress(_response);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
processNormalizeAddress(response) {
|
|
37
37
|
const status = response.status;
|
|
38
38
|
let _headers = {};
|
|
39
39
|
if (response.headers && response.headers.forEach) {
|
|
@@ -73,7 +73,7 @@ export class Client {
|
|
|
73
73
|
* @param id The Document ID for the document to retrieve.
|
|
74
74
|
* @return OK
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
getDocumentById(id) {
|
|
77
77
|
let url_ = this.baseUrl + "/primary/v1/document/{id}";
|
|
78
78
|
if (id === undefined || id === null)
|
|
79
79
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -86,10 +86,10 @@ export class Client {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
89
|
-
return this.
|
|
89
|
+
return this.processGetDocumentById(_response);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
processGetDocumentById(response) {
|
|
93
93
|
const status = response.status;
|
|
94
94
|
let _headers = {};
|
|
95
95
|
if (response.headers && response.headers.forEach) {
|
|
@@ -137,7 +137,7 @@ export class Client {
|
|
|
137
137
|
* @param sortOrder (optional)
|
|
138
138
|
* @return OK
|
|
139
139
|
*/
|
|
140
|
-
|
|
140
|
+
getAllDocuments(investorId, preIPOCompanyId, preIPOCompanySPVId, preIPOCompanyInvestmentId, investorSubscriptionId, registeredFundId, registeredFundSubscriptionId, documentType, page, pageSize, exactMatch, sortOrder) {
|
|
141
141
|
let url_ = this.baseUrl + "/primary/v1/document?";
|
|
142
142
|
if (investorId === null)
|
|
143
143
|
throw new Error("The parameter 'investorId' cannot be null.");
|
|
@@ -195,10 +195,10 @@ export class Client {
|
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
198
|
-
return this.
|
|
198
|
+
return this.processGetAllDocuments(_response);
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
processGetAllDocuments(response) {
|
|
202
202
|
const status = response.status;
|
|
203
203
|
let _headers = {};
|
|
204
204
|
if (response.headers && response.headers.forEach) {
|
|
@@ -226,7 +226,7 @@ export class Client {
|
|
|
226
226
|
* @param body (optional) Data about the signing.
|
|
227
227
|
* @return No Content
|
|
228
228
|
*/
|
|
229
|
-
|
|
229
|
+
signDocument(id, body) {
|
|
230
230
|
let url_ = this.baseUrl + "/primary/v1/document/{id}/sign";
|
|
231
231
|
if (id === undefined || id === null)
|
|
232
232
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -241,10 +241,10 @@ export class Client {
|
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
243
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
244
|
-
return this.
|
|
244
|
+
return this.processSignDocument(_response);
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
processSignDocument(response) {
|
|
248
248
|
const status = response.status;
|
|
249
249
|
let _headers = {};
|
|
250
250
|
if (response.headers && response.headers.forEach) {
|
|
@@ -276,7 +276,7 @@ export class Client {
|
|
|
276
276
|
* @param id The Document ID for the document to download.
|
|
277
277
|
* @param token The secure token required to access the document.
|
|
278
278
|
*/
|
|
279
|
-
|
|
279
|
+
downloadDocument(id, token) {
|
|
280
280
|
let url_ = this.baseUrl + "/primary/v1/document/{id}/download/{token}";
|
|
281
281
|
if (id === undefined || id === null)
|
|
282
282
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -290,10 +290,10 @@ export class Client {
|
|
|
290
290
|
headers: {}
|
|
291
291
|
};
|
|
292
292
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
293
|
-
return this.
|
|
293
|
+
return this.processDownloadDocument(_response);
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
|
|
296
|
+
processDownloadDocument(response) {
|
|
297
297
|
const status = response.status;
|
|
298
298
|
let _headers = {};
|
|
299
299
|
if (response.headers && response.headers.forEach) {
|
|
@@ -333,7 +333,7 @@ export class Client {
|
|
|
333
333
|
* @param body (optional) create Financial Advisor information.
|
|
334
334
|
* @return The newly created Financial Advisor.
|
|
335
335
|
*/
|
|
336
|
-
|
|
336
|
+
createFinancialAdvisor(body) {
|
|
337
337
|
let url_ = this.baseUrl + "/primary/v1/financial-advisor";
|
|
338
338
|
url_ = url_.replace(/[?&]$/, "");
|
|
339
339
|
const content_ = JSON.stringify(body);
|
|
@@ -346,10 +346,10 @@ export class Client {
|
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
348
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
349
|
-
return this.
|
|
349
|
+
return this.processCreateFinancialAdvisor(_response);
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
|
-
|
|
352
|
+
processCreateFinancialAdvisor(response) {
|
|
353
353
|
const status = response.status;
|
|
354
354
|
let _headers = {};
|
|
355
355
|
if (response.headers && response.headers.forEach) {
|
|
@@ -384,7 +384,7 @@ export class Client {
|
|
|
384
384
|
* @param body (optional) update Financial Advisor information.
|
|
385
385
|
* @return The updated Financial Advisor.
|
|
386
386
|
*/
|
|
387
|
-
|
|
387
|
+
updateFinancialAdvisor(body) {
|
|
388
388
|
let url_ = this.baseUrl + "/primary/v1/financial-advisor";
|
|
389
389
|
url_ = url_.replace(/[?&]$/, "");
|
|
390
390
|
const content_ = JSON.stringify(body);
|
|
@@ -397,10 +397,10 @@ export class Client {
|
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
399
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
400
|
-
return this.
|
|
400
|
+
return this.processUpdateFinancialAdvisor(_response);
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
|
|
403
|
+
processUpdateFinancialAdvisor(response) {
|
|
404
404
|
const status = response.status;
|
|
405
405
|
let _headers = {};
|
|
406
406
|
if (response.headers && response.headers.forEach) {
|
|
@@ -440,7 +440,7 @@ export class Client {
|
|
|
440
440
|
* @param financialInstitutionId (optional) Optional filter by Financial Institution ID.
|
|
441
441
|
* @return Returns the list of Financial Advisors.
|
|
442
442
|
*/
|
|
443
|
-
|
|
443
|
+
getAllFinancialAdvisors(page, pageSize, sortOrder, financialInstitutionId) {
|
|
444
444
|
let url_ = this.baseUrl + "/primary/v1/financial-advisor?";
|
|
445
445
|
if (page === null)
|
|
446
446
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -466,10 +466,10 @@ export class Client {
|
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
468
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
469
|
-
return this.
|
|
469
|
+
return this.processGetAllFinancialAdvisors(_response);
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
|
|
472
|
+
processGetAllFinancialAdvisors(response) {
|
|
473
473
|
const status = response.status;
|
|
474
474
|
let _headers = {};
|
|
475
475
|
if (response.headers && response.headers.forEach) {
|
|
@@ -496,7 +496,7 @@ export class Client {
|
|
|
496
496
|
* @param id Id of the Financial Advisor to find.
|
|
497
497
|
* @return Returns the Financial Advisor with the specified Id.
|
|
498
498
|
*/
|
|
499
|
-
|
|
499
|
+
getFinancialAdvisorById(id) {
|
|
500
500
|
let url_ = this.baseUrl + "/primary/v1/financial-advisor/{id}";
|
|
501
501
|
if (id === undefined || id === null)
|
|
502
502
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -509,10 +509,10 @@ export class Client {
|
|
|
509
509
|
}
|
|
510
510
|
};
|
|
511
511
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
512
|
-
return this.
|
|
512
|
+
return this.processGetFinancialAdvisorById(_response);
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
|
|
515
|
+
processGetFinancialAdvisorById(response) {
|
|
516
516
|
const status = response.status;
|
|
517
517
|
let _headers = {};
|
|
518
518
|
if (response.headers && response.headers.forEach) {
|
|
@@ -547,7 +547,7 @@ export class Client {
|
|
|
547
547
|
* @param id ID of the Financial Institution to retrieve.
|
|
548
548
|
* @return OK
|
|
549
549
|
*/
|
|
550
|
-
|
|
550
|
+
getFinancialInstitutionById(id) {
|
|
551
551
|
let url_ = this.baseUrl + "/primary/v1/financial-institution/{id}";
|
|
552
552
|
if (id === undefined || id === null)
|
|
553
553
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -560,10 +560,10 @@ export class Client {
|
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
562
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
563
|
-
return this.
|
|
563
|
+
return this.processGetFinancialInstitutionById(_response);
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
|
|
566
|
+
processGetFinancialInstitutionById(response) {
|
|
567
567
|
const status = response.status;
|
|
568
568
|
let _headers = {};
|
|
569
569
|
if (response.headers && response.headers.forEach) {
|
|
@@ -603,7 +603,7 @@ export class Client {
|
|
|
603
603
|
* @param sortOrder (optional)
|
|
604
604
|
* @return OK
|
|
605
605
|
*/
|
|
606
|
-
|
|
606
|
+
getAllFinancialInstitutions(page, pageSize, referenceId, sortOrder) {
|
|
607
607
|
let url_ = this.baseUrl + "/primary/v1/financial-institution?";
|
|
608
608
|
if (page === null)
|
|
609
609
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -629,10 +629,10 @@ export class Client {
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
632
|
-
return this.
|
|
632
|
+
return this.processGetAllFinancialInstitutions(_response);
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
|
-
|
|
635
|
+
processGetAllFinancialInstitutions(response) {
|
|
636
636
|
const status = response.status;
|
|
637
637
|
let _headers = {};
|
|
638
638
|
if (response.headers && response.headers.forEach) {
|
|
@@ -659,7 +659,7 @@ export class Client {
|
|
|
659
659
|
* @param body (optional) The request containing the updated reference information.
|
|
660
660
|
* @return No Content
|
|
661
661
|
*/
|
|
662
|
-
|
|
662
|
+
updateFinancialInstitutionReferenceId(body) {
|
|
663
663
|
let url_ = this.baseUrl + "/primary/v1/financial-institution/reference";
|
|
664
664
|
url_ = url_.replace(/[?&]$/, "");
|
|
665
665
|
const content_ = JSON.stringify(body);
|
|
@@ -671,10 +671,10 @@ export class Client {
|
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
673
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
674
|
-
return this.
|
|
674
|
+
return this.processUpdateFinancialInstitutionReferenceId(_response);
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
|
|
677
|
+
processUpdateFinancialInstitutionReferenceId(response) {
|
|
678
678
|
const status = response.status;
|
|
679
679
|
let _headers = {};
|
|
680
680
|
if (response.headers && response.headers.forEach) {
|
|
@@ -706,7 +706,7 @@ export class Client {
|
|
|
706
706
|
* @param body (optional) create IndicationOfInterest information.
|
|
707
707
|
* @return The newly created IndicationOfInterest.
|
|
708
708
|
*/
|
|
709
|
-
|
|
709
|
+
createIndicationOfInterest(body) {
|
|
710
710
|
let url_ = this.baseUrl + "/primary/v1/indication-of-interest";
|
|
711
711
|
url_ = url_.replace(/[?&]$/, "");
|
|
712
712
|
const content_ = JSON.stringify(body);
|
|
@@ -719,10 +719,10 @@ export class Client {
|
|
|
719
719
|
}
|
|
720
720
|
};
|
|
721
721
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
722
|
-
return this.
|
|
722
|
+
return this.processCreateIndicationOfInterest(_response);
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
|
-
|
|
725
|
+
processCreateIndicationOfInterest(response) {
|
|
726
726
|
const status = response.status;
|
|
727
727
|
let _headers = {};
|
|
728
728
|
if (response.headers && response.headers.forEach) {
|
|
@@ -757,7 +757,7 @@ export class Client {
|
|
|
757
757
|
* @param body (optional) Update Indication of Interest information.
|
|
758
758
|
* @return The updated Indication of Interest.
|
|
759
759
|
*/
|
|
760
|
-
|
|
760
|
+
updateIndicationOfInterest(body) {
|
|
761
761
|
let url_ = this.baseUrl + "/primary/v1/indication-of-interest";
|
|
762
762
|
url_ = url_.replace(/[?&]$/, "");
|
|
763
763
|
const content_ = JSON.stringify(body);
|
|
@@ -770,10 +770,10 @@ export class Client {
|
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
773
|
-
return this.
|
|
773
|
+
return this.processUpdateIndicationOfInterest(_response);
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
|
|
776
|
+
processUpdateIndicationOfInterest(response) {
|
|
777
777
|
const status = response.status;
|
|
778
778
|
let _headers = {};
|
|
779
779
|
if (response.headers && response.headers.forEach) {
|
|
@@ -823,7 +823,7 @@ export class Client {
|
|
|
823
823
|
* @param sortOrder (optional) Which direction to sort by.
|
|
824
824
|
* @return Returns the list of IndicationOfInterest.
|
|
825
825
|
*/
|
|
826
|
-
|
|
826
|
+
getAllIndicationOfInterests(searchTerm, investorId, page, pageSize, sortProperty, sortOrder) {
|
|
827
827
|
let url_ = this.baseUrl + "/primary/v1/indication-of-interest?";
|
|
828
828
|
if (searchTerm === null)
|
|
829
829
|
throw new Error("The parameter 'searchTerm' cannot be null.");
|
|
@@ -857,10 +857,10 @@ export class Client {
|
|
|
857
857
|
}
|
|
858
858
|
};
|
|
859
859
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
860
|
-
return this.
|
|
860
|
+
return this.processGetAllIndicationOfInterests(_response);
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
|
-
|
|
863
|
+
processGetAllIndicationOfInterests(response) {
|
|
864
864
|
const status = response.status;
|
|
865
865
|
let _headers = {};
|
|
866
866
|
if (response.headers && response.headers.forEach) {
|
|
@@ -887,7 +887,7 @@ export class Client {
|
|
|
887
887
|
* @param id The ID of the Indication of Interest to delete.
|
|
888
888
|
* @return The Indication of Interest was successfully deleted.
|
|
889
889
|
*/
|
|
890
|
-
|
|
890
|
+
deleteIndicationOfInterest(id) {
|
|
891
891
|
let url_ = this.baseUrl + "/primary/v1/indication-of-interest/{id}";
|
|
892
892
|
if (id === undefined || id === null)
|
|
893
893
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -898,10 +898,10 @@ export class Client {
|
|
|
898
898
|
headers: {}
|
|
899
899
|
};
|
|
900
900
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
901
|
-
return this.
|
|
901
|
+
return this.processDeleteIndicationOfInterest(_response);
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
|
|
904
|
+
processDeleteIndicationOfInterest(response) {
|
|
905
905
|
const status = response.status;
|
|
906
906
|
let _headers = {};
|
|
907
907
|
if (response.headers && response.headers.forEach) {
|
|
@@ -933,7 +933,7 @@ export class Client {
|
|
|
933
933
|
* @param id Unique ID of the IOI to find.
|
|
934
934
|
* @return Returns the IndicationOfInterest with the specified Id.
|
|
935
935
|
*/
|
|
936
|
-
|
|
936
|
+
getIndicationOfInterestById(id) {
|
|
937
937
|
let url_ = this.baseUrl + "/primary/v1/indication-of-interest/{id}";
|
|
938
938
|
if (id === undefined || id === null)
|
|
939
939
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -946,10 +946,10 @@ export class Client {
|
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
948
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
949
|
-
return this.
|
|
949
|
+
return this.processGetIndicationOfInterestById(_response);
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
|
-
|
|
952
|
+
processGetIndicationOfInterestById(response) {
|
|
953
953
|
const status = response.status;
|
|
954
954
|
let _headers = {};
|
|
955
955
|
if (response.headers && response.headers.forEach) {
|
|
@@ -984,7 +984,7 @@ export class Client {
|
|
|
984
984
|
* @param body (optional) create Investor information.
|
|
985
985
|
* @return The created Investor.
|
|
986
986
|
*/
|
|
987
|
-
|
|
987
|
+
createInvestor(body) {
|
|
988
988
|
let url_ = this.baseUrl + "/primary/v1/investor";
|
|
989
989
|
url_ = url_.replace(/[?&]$/, "");
|
|
990
990
|
const content_ = JSON.stringify(body);
|
|
@@ -997,10 +997,10 @@ export class Client {
|
|
|
997
997
|
}
|
|
998
998
|
};
|
|
999
999
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1000
|
-
return this.
|
|
1000
|
+
return this.processCreateInvestor(_response);
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
|
|
1003
|
+
processCreateInvestor(response) {
|
|
1004
1004
|
const status = response.status;
|
|
1005
1005
|
let _headers = {};
|
|
1006
1006
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1035,7 +1035,7 @@ export class Client {
|
|
|
1035
1035
|
* @param body (optional) Update Investor Request.
|
|
1036
1036
|
* @return The Updated Investor.
|
|
1037
1037
|
*/
|
|
1038
|
-
|
|
1038
|
+
updateInvestor(body) {
|
|
1039
1039
|
let url_ = this.baseUrl + "/primary/v1/investor";
|
|
1040
1040
|
url_ = url_.replace(/[?&]$/, "");
|
|
1041
1041
|
const content_ = JSON.stringify(body);
|
|
@@ -1048,10 +1048,10 @@ export class Client {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
};
|
|
1050
1050
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1051
|
-
return this.
|
|
1051
|
+
return this.processUpdateInvestor(_response);
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
|
-
|
|
1054
|
+
processUpdateInvestor(response) {
|
|
1055
1055
|
const status = response.status;
|
|
1056
1056
|
let _headers = {};
|
|
1057
1057
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1100,7 +1100,7 @@ export class Client {
|
|
|
1100
1100
|
* @param financialInstitutionId (optional) Optional filter to get by the Financial Institution.
|
|
1101
1101
|
* @return Returns the paginated list of Investors.
|
|
1102
1102
|
*/
|
|
1103
|
-
|
|
1103
|
+
getAllInvestors(page, pageSize, sortOrder, investorStatus, financialInstitutionId) {
|
|
1104
1104
|
let url_ = this.baseUrl + "/primary/v1/investor?";
|
|
1105
1105
|
if (page === null)
|
|
1106
1106
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -1130,10 +1130,10 @@ export class Client {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
1132
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1133
|
-
return this.
|
|
1133
|
+
return this.processGetAllInvestors(_response);
|
|
1134
1134
|
});
|
|
1135
1135
|
}
|
|
1136
|
-
|
|
1136
|
+
processGetAllInvestors(response) {
|
|
1137
1137
|
const status = response.status;
|
|
1138
1138
|
let _headers = {};
|
|
1139
1139
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1168,7 +1168,7 @@ export class Client {
|
|
|
1168
1168
|
* @param body (optional) M:primary_offering_web_api.Controllers.InvestorController.UpdateInvestorAccreditation(primary_offering_api_models.Investors.UpdateInvestorAccreditation,System.Threading.CancellationToken) from body.
|
|
1169
1169
|
* @return No Content
|
|
1170
1170
|
*/
|
|
1171
|
-
|
|
1171
|
+
updateInvestorAccreditation(body) {
|
|
1172
1172
|
let url_ = this.baseUrl + "/primary/v1/investor/accreditation";
|
|
1173
1173
|
url_ = url_.replace(/[?&]$/, "");
|
|
1174
1174
|
const content_ = JSON.stringify(body);
|
|
@@ -1180,10 +1180,10 @@ export class Client {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
};
|
|
1182
1182
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1183
|
-
return this.
|
|
1183
|
+
return this.processUpdateInvestorAccreditation(_response);
|
|
1184
1184
|
});
|
|
1185
1185
|
}
|
|
1186
|
-
|
|
1186
|
+
processUpdateInvestorAccreditation(response) {
|
|
1187
1187
|
const status = response.status;
|
|
1188
1188
|
let _headers = {};
|
|
1189
1189
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1215,7 +1215,7 @@ export class Client {
|
|
|
1215
1215
|
* @param id ID of the Investor to find.
|
|
1216
1216
|
* @return Returns the Investor with the specified ID.
|
|
1217
1217
|
*/
|
|
1218
|
-
|
|
1218
|
+
getInvestorById(id) {
|
|
1219
1219
|
let url_ = this.baseUrl + "/primary/v1/investor/{id}";
|
|
1220
1220
|
if (id === undefined || id === null)
|
|
1221
1221
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -1228,10 +1228,10 @@ export class Client {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
};
|
|
1230
1230
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1231
|
-
return this.
|
|
1231
|
+
return this.processGetInvestorById(_response);
|
|
1232
1232
|
});
|
|
1233
1233
|
}
|
|
1234
|
-
|
|
1234
|
+
processGetInvestorById(response) {
|
|
1235
1235
|
const status = response.status;
|
|
1236
1236
|
let _headers = {};
|
|
1237
1237
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1274,7 +1274,7 @@ export class Client {
|
|
|
1274
1274
|
* @param investorReferenceId InvestorReferenceId of the Investor to find.
|
|
1275
1275
|
* @return Returns the Investor with the specified InvestorReference.
|
|
1276
1276
|
*/
|
|
1277
|
-
|
|
1277
|
+
getInvestorByInvestorReference(investorReferenceId) {
|
|
1278
1278
|
let url_ = this.baseUrl + "/primary/v1/investor/by-reference/{investorReferenceId}";
|
|
1279
1279
|
if (investorReferenceId === undefined || investorReferenceId === null)
|
|
1280
1280
|
throw new Error("The parameter 'investorReferenceId' must be defined.");
|
|
@@ -1287,10 +1287,10 @@ export class Client {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
1289
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1290
|
-
return this.
|
|
1290
|
+
return this.processGetInvestorByInvestorReference(_response);
|
|
1291
1291
|
});
|
|
1292
1292
|
}
|
|
1293
|
-
|
|
1293
|
+
processGetInvestorByInvestorReference(response) {
|
|
1294
1294
|
const status = response.status;
|
|
1295
1295
|
let _headers = {};
|
|
1296
1296
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1325,7 +1325,7 @@ export class Client {
|
|
|
1325
1325
|
* @param investorId ID of the investor to get individual entity investors for.
|
|
1326
1326
|
* @return Returns the list of individual entity investors.
|
|
1327
1327
|
*/
|
|
1328
|
-
|
|
1328
|
+
getIndividualEntityInvestors(investorId) {
|
|
1329
1329
|
let url_ = this.baseUrl + "/primary/v1/investor/{investorId}/individual-entity-investor";
|
|
1330
1330
|
if (investorId === undefined || investorId === null)
|
|
1331
1331
|
throw new Error("The parameter 'investorId' must be defined.");
|
|
@@ -1338,10 +1338,10 @@ export class Client {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
};
|
|
1340
1340
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1341
|
-
return this.
|
|
1341
|
+
return this.processGetIndividualEntityInvestors(_response);
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
|
-
|
|
1344
|
+
processGetIndividualEntityInvestors(response) {
|
|
1345
1345
|
const status = response.status;
|
|
1346
1346
|
let _headers = {};
|
|
1347
1347
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1375,7 +1375,7 @@ export class Client {
|
|
|
1375
1375
|
* @param body (optional)
|
|
1376
1376
|
* @return OK
|
|
1377
1377
|
*/
|
|
1378
|
-
|
|
1378
|
+
createIndividualEntityInvestor(investorId, body) {
|
|
1379
1379
|
let url_ = this.baseUrl + "/primary/v1/investor/{investorId}/individual-entity-investor";
|
|
1380
1380
|
if (investorId === undefined || investorId === null)
|
|
1381
1381
|
throw new Error("The parameter 'investorId' must be defined.");
|
|
@@ -1391,10 +1391,10 @@ export class Client {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
1393
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1394
|
-
return this.
|
|
1394
|
+
return this.processCreateIndividualEntityInvestor(_response);
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
|
-
|
|
1397
|
+
processCreateIndividualEntityInvestor(response) {
|
|
1398
1398
|
const status = response.status;
|
|
1399
1399
|
let _headers = {};
|
|
1400
1400
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1442,7 +1442,7 @@ export class Client {
|
|
|
1442
1442
|
* @param body (optional)
|
|
1443
1443
|
* @return The Updated Investor.
|
|
1444
1444
|
*/
|
|
1445
|
-
|
|
1445
|
+
updateIndividualEntityInvestor(investorId, body) {
|
|
1446
1446
|
let url_ = this.baseUrl + "/primary/v1/investor/{investorId}/individual-entity-investor";
|
|
1447
1447
|
if (investorId === undefined || investorId === null)
|
|
1448
1448
|
throw new Error("The parameter 'investorId' must be defined.");
|
|
@@ -1458,10 +1458,10 @@ export class Client {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
};
|
|
1460
1460
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1461
|
-
return this.
|
|
1461
|
+
return this.processUpdateIndividualEntityInvestor(_response);
|
|
1462
1462
|
});
|
|
1463
1463
|
}
|
|
1464
|
-
|
|
1464
|
+
processUpdateIndividualEntityInvestor(response) {
|
|
1465
1465
|
const status = response.status;
|
|
1466
1466
|
let _headers = {};
|
|
1467
1467
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1510,7 +1510,7 @@ export class Client {
|
|
|
1510
1510
|
* @param id ID of the UBO to delete.
|
|
1511
1511
|
* @return No Content
|
|
1512
1512
|
*/
|
|
1513
|
-
|
|
1513
|
+
deleteIndividualEntityInvestor(investorId, id) {
|
|
1514
1514
|
let url_ = this.baseUrl + "/primary/v1/investor/{investorId}/individual-entity-investor/{id}";
|
|
1515
1515
|
if (investorId === undefined || investorId === null)
|
|
1516
1516
|
throw new Error("The parameter 'investorId' must be defined.");
|
|
@@ -1524,10 +1524,10 @@ export class Client {
|
|
|
1524
1524
|
headers: {}
|
|
1525
1525
|
};
|
|
1526
1526
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1527
|
-
return this.
|
|
1527
|
+
return this.processDeleteIndividualEntityInvestor(_response);
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
|
-
|
|
1530
|
+
processDeleteIndividualEntityInvestor(response) {
|
|
1531
1531
|
const status = response.status;
|
|
1532
1532
|
let _headers = {};
|
|
1533
1533
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1567,7 +1567,7 @@ export class Client {
|
|
|
1567
1567
|
* @param body (optional) Investor Subscription Properties.
|
|
1568
1568
|
* @return Created
|
|
1569
1569
|
*/
|
|
1570
|
-
|
|
1570
|
+
createInvestorSubscription(body) {
|
|
1571
1571
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription";
|
|
1572
1572
|
url_ = url_.replace(/[?&]$/, "");
|
|
1573
1573
|
const content_ = JSON.stringify(body);
|
|
@@ -1580,10 +1580,10 @@ export class Client {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
};
|
|
1582
1582
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1583
|
-
return this.
|
|
1583
|
+
return this.processCreateInvestorSubscription(_response);
|
|
1584
1584
|
});
|
|
1585
1585
|
}
|
|
1586
|
-
|
|
1586
|
+
processCreateInvestorSubscription(response) {
|
|
1587
1587
|
const status = response.status;
|
|
1588
1588
|
let _headers = {};
|
|
1589
1589
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1629,7 +1629,7 @@ export class Client {
|
|
|
1629
1629
|
* @param sortOrder (optional)
|
|
1630
1630
|
* @return OK
|
|
1631
1631
|
*/
|
|
1632
|
-
|
|
1632
|
+
getAllSubscriptions(preIpoCompanySpvId, page, pageSize, investorId, status, preIPOCompanyName, preIPOCompanySPVName, tradingSymbol, orderReferenceId, sortOrder) {
|
|
1633
1633
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription?";
|
|
1634
1634
|
if (preIpoCompanySpvId === null)
|
|
1635
1635
|
throw new Error("The parameter 'preIpoCompanySpvId' cannot be null.");
|
|
@@ -1679,10 +1679,10 @@ export class Client {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
};
|
|
1681
1681
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1682
|
-
return this.
|
|
1682
|
+
return this.processGetAllSubscriptions(_response);
|
|
1683
1683
|
});
|
|
1684
1684
|
}
|
|
1685
|
-
|
|
1685
|
+
processGetAllSubscriptions(response) {
|
|
1686
1686
|
const status = response.status;
|
|
1687
1687
|
let _headers = {};
|
|
1688
1688
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1709,7 +1709,7 @@ export class Client {
|
|
|
1709
1709
|
* @param body (optional) The request containing the updated order reference information.
|
|
1710
1710
|
* @return No Content
|
|
1711
1711
|
*/
|
|
1712
|
-
|
|
1712
|
+
updateInvestorSubscription(body) {
|
|
1713
1713
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription";
|
|
1714
1714
|
url_ = url_.replace(/[?&]$/, "");
|
|
1715
1715
|
const content_ = JSON.stringify(body);
|
|
@@ -1721,10 +1721,10 @@ export class Client {
|
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
1723
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1724
|
-
return this.
|
|
1724
|
+
return this.processUpdateInvestorSubscription(_response);
|
|
1725
1725
|
});
|
|
1726
1726
|
}
|
|
1727
|
-
|
|
1727
|
+
processUpdateInvestorSubscription(response) {
|
|
1728
1728
|
const status = response.status;
|
|
1729
1729
|
let _headers = {};
|
|
1730
1730
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1757,7 +1757,7 @@ export class Client {
|
|
|
1757
1757
|
* @param spvId Filter InvestorSubscription by SPV ID.
|
|
1758
1758
|
* @return OK
|
|
1759
1759
|
*/
|
|
1760
|
-
|
|
1760
|
+
getInvestorSubscriptionByInvestorAndSpv(investorId, spvId) {
|
|
1761
1761
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription/investor/{investorId}/pre-ipo-company-spv/{spvId}";
|
|
1762
1762
|
if (investorId === undefined || investorId === null)
|
|
1763
1763
|
throw new Error("The parameter 'investorId' must be defined.");
|
|
@@ -1773,10 +1773,10 @@ export class Client {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
1775
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1776
|
-
return this.
|
|
1776
|
+
return this.processGetInvestorSubscriptionByInvestorAndSpv(_response);
|
|
1777
1777
|
});
|
|
1778
1778
|
}
|
|
1779
|
-
|
|
1779
|
+
processGetInvestorSubscriptionByInvestorAndSpv(response) {
|
|
1780
1780
|
const status = response.status;
|
|
1781
1781
|
let _headers = {};
|
|
1782
1782
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1811,7 +1811,7 @@ export class Client {
|
|
|
1811
1811
|
* @param investorId Filter InvestorSubscriptions by Investor ID.
|
|
1812
1812
|
* @return OK
|
|
1813
1813
|
*/
|
|
1814
|
-
|
|
1814
|
+
getInvestorSubscriptionsByInvestor(investorId) {
|
|
1815
1815
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription/investor/{investorId}";
|
|
1816
1816
|
if (investorId === undefined || investorId === null)
|
|
1817
1817
|
throw new Error("The parameter 'investorId' must be defined.");
|
|
@@ -1824,10 +1824,10 @@ export class Client {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
};
|
|
1826
1826
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1827
|
-
return this.
|
|
1827
|
+
return this.processGetInvestorSubscriptionsByInvestor(_response);
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
|
-
|
|
1830
|
+
processGetInvestorSubscriptionsByInvestor(response) {
|
|
1831
1831
|
const status = response.status;
|
|
1832
1832
|
let _headers = {};
|
|
1833
1833
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1869,7 +1869,7 @@ export class Client {
|
|
|
1869
1869
|
* @param id ID of the InvestorSubscription to find.
|
|
1870
1870
|
* @return OK
|
|
1871
1871
|
*/
|
|
1872
|
-
|
|
1872
|
+
getInvestorSubscriptionById(id) {
|
|
1873
1873
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription/{id}";
|
|
1874
1874
|
if (id === undefined || id === null)
|
|
1875
1875
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -1882,10 +1882,10 @@ export class Client {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
};
|
|
1884
1884
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1885
|
-
return this.
|
|
1885
|
+
return this.processGetInvestorSubscriptionById(_response);
|
|
1886
1886
|
});
|
|
1887
1887
|
}
|
|
1888
|
-
|
|
1888
|
+
processGetInvestorSubscriptionById(response) {
|
|
1889
1889
|
const status = response.status;
|
|
1890
1890
|
let _headers = {};
|
|
1891
1891
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1921,7 +1921,7 @@ export class Client {
|
|
|
1921
1921
|
* @param body (optional)
|
|
1922
1922
|
* @return OK
|
|
1923
1923
|
*/
|
|
1924
|
-
|
|
1924
|
+
signInvestorSubscription(id, body) {
|
|
1925
1925
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription/{id}/sign";
|
|
1926
1926
|
if (id === undefined || id === null)
|
|
1927
1927
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -1937,10 +1937,10 @@ export class Client {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
};
|
|
1939
1939
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1940
|
-
return this.
|
|
1940
|
+
return this.processSignInvestorSubscription(_response);
|
|
1941
1941
|
});
|
|
1942
1942
|
}
|
|
1943
|
-
|
|
1943
|
+
processSignInvestorSubscription(response) {
|
|
1944
1944
|
const status = response.status;
|
|
1945
1945
|
let _headers = {};
|
|
1946
1946
|
if (response.headers && response.headers.forEach) {
|
|
@@ -1975,7 +1975,7 @@ export class Client {
|
|
|
1975
1975
|
* @param body (optional) The request containing the updated order reference information.
|
|
1976
1976
|
* @return No Content
|
|
1977
1977
|
*/
|
|
1978
|
-
|
|
1978
|
+
updateInvestorSubscriptionOrderReference(body) {
|
|
1979
1979
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription/order-reference";
|
|
1980
1980
|
url_ = url_.replace(/[?&]$/, "");
|
|
1981
1981
|
const content_ = JSON.stringify(body);
|
|
@@ -1987,10 +1987,10 @@ export class Client {
|
|
|
1987
1987
|
}
|
|
1988
1988
|
};
|
|
1989
1989
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
1990
|
-
return this.
|
|
1990
|
+
return this.processUpdateInvestorSubscriptionOrderReference(_response);
|
|
1991
1991
|
});
|
|
1992
1992
|
}
|
|
1993
|
-
|
|
1993
|
+
processUpdateInvestorSubscriptionOrderReference(response) {
|
|
1994
1994
|
const status = response.status;
|
|
1995
1995
|
let _headers = {};
|
|
1996
1996
|
if (response.headers && response.headers.forEach) {
|
|
@@ -2022,7 +2022,7 @@ export class Client {
|
|
|
2022
2022
|
* @param investorSubscriptionId The ID of the InvestorSubscription to get the actions for.
|
|
2023
2023
|
* @return OK
|
|
2024
2024
|
*/
|
|
2025
|
-
|
|
2025
|
+
getAllInvestorSubscriptionActions(investorSubscriptionId) {
|
|
2026
2026
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription-action/investor-subscription/{investorSubscriptionId}";
|
|
2027
2027
|
if (investorSubscriptionId === undefined || investorSubscriptionId === null)
|
|
2028
2028
|
throw new Error("The parameter 'investorSubscriptionId' must be defined.");
|
|
@@ -2035,10 +2035,10 @@ export class Client {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
};
|
|
2037
2037
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
2038
|
-
return this.
|
|
2038
|
+
return this.processGetAllInvestorSubscriptionActions(_response);
|
|
2039
2039
|
});
|
|
2040
2040
|
}
|
|
2041
|
-
|
|
2041
|
+
processGetAllInvestorSubscriptionActions(response) {
|
|
2042
2042
|
const status = response.status;
|
|
2043
2043
|
let _headers = {};
|
|
2044
2044
|
if (response.headers && response.headers.forEach) {
|
|
@@ -2080,7 +2080,7 @@ export class Client {
|
|
|
2080
2080
|
* @param id ID of the InvestorSubscriptionAction to find.
|
|
2081
2081
|
* @return OK
|
|
2082
2082
|
*/
|
|
2083
|
-
|
|
2083
|
+
getInvestorSubscriptionActionById(id) {
|
|
2084
2084
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription-action/{id}";
|
|
2085
2085
|
if (id === undefined || id === null)
|
|
2086
2086
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -2093,10 +2093,10 @@ export class Client {
|
|
|
2093
2093
|
}
|
|
2094
2094
|
};
|
|
2095
2095
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
2096
|
-
return this.
|
|
2096
|
+
return this.processGetInvestorSubscriptionActionById(_response);
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
2099
|
-
|
|
2099
|
+
processGetInvestorSubscriptionActionById(response) {
|
|
2100
2100
|
const status = response.status;
|
|
2101
2101
|
let _headers = {};
|
|
2102
2102
|
if (response.headers && response.headers.forEach) {
|
|
@@ -2132,7 +2132,7 @@ export class Client {
|
|
|
2132
2132
|
* @param body (optional)
|
|
2133
2133
|
* @return No Content
|
|
2134
2134
|
*/
|
|
2135
|
-
|
|
2135
|
+
completeInvestorSubscriptionAction(id, body) {
|
|
2136
2136
|
let url_ = this.baseUrl + "/primary/v1/investor-subscription-action/{id}/complete";
|
|
2137
2137
|
if (id === undefined || id === null)
|
|
2138
2138
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -2147,10 +2147,10 @@ export class Client {
|
|
|
2147
2147
|
}
|
|
2148
2148
|
};
|
|
2149
2149
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
2150
|
-
return this.
|
|
2150
|
+
return this.processCompleteInvestorSubscriptionAction(_response);
|
|
2151
2151
|
});
|
|
2152
2152
|
}
|
|
2153
|
-
|
|
2153
|
+
processCompleteInvestorSubscriptionAction(response) {
|
|
2154
2154
|
const status = response.status;
|
|
2155
2155
|
let _headers = {};
|
|
2156
2156
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3257,7 +3257,7 @@ export class Client {
|
|
|
3257
3257
|
* Get the Partner of the authenticated user.
|
|
3258
3258
|
* @return Returns the Partner with the specified Id.
|
|
3259
3259
|
*/
|
|
3260
|
-
|
|
3260
|
+
getPartner() {
|
|
3261
3261
|
let url_ = this.baseUrl + "/primary/v1/partner";
|
|
3262
3262
|
url_ = url_.replace(/[?&]$/, "");
|
|
3263
3263
|
let options_ = {
|
|
@@ -3267,10 +3267,10 @@ export class Client {
|
|
|
3267
3267
|
}
|
|
3268
3268
|
};
|
|
3269
3269
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
3270
|
-
return this.
|
|
3270
|
+
return this.processGetPartner(_response);
|
|
3271
3271
|
});
|
|
3272
3272
|
}
|
|
3273
|
-
|
|
3273
|
+
processGetPartner(response) {
|
|
3274
3274
|
const status = response.status;
|
|
3275
3275
|
let _headers = {};
|
|
3276
3276
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3306,7 +3306,7 @@ export class Client {
|
|
|
3306
3306
|
* @param body (optional) The mapping fields and their values that are to be merged into the template.
|
|
3307
3307
|
* @return OK
|
|
3308
3308
|
*/
|
|
3309
|
-
|
|
3309
|
+
generatePdfDocument(id, body) {
|
|
3310
3310
|
let url_ = this.baseUrl + "/primary/v1/pdf-document/generate-document/{id}";
|
|
3311
3311
|
if (id === undefined || id === null)
|
|
3312
3312
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -3322,10 +3322,10 @@ export class Client {
|
|
|
3322
3322
|
}
|
|
3323
3323
|
};
|
|
3324
3324
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
3325
|
-
return this.
|
|
3325
|
+
return this.processGeneratePdfDocument(_response);
|
|
3326
3326
|
});
|
|
3327
3327
|
}
|
|
3328
|
-
|
|
3328
|
+
processGeneratePdfDocument(response) {
|
|
3329
3329
|
const status = response.status;
|
|
3330
3330
|
let _headers = {};
|
|
3331
3331
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3804,7 +3804,7 @@ export class Client {
|
|
|
3804
3804
|
* @param id ID of the PreIPOCompany to find.
|
|
3805
3805
|
* @return Returns the PreIPOCompany with the specified Id.
|
|
3806
3806
|
*/
|
|
3807
|
-
|
|
3807
|
+
getPreIPOCompanyById(id) {
|
|
3808
3808
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company/{id}";
|
|
3809
3809
|
if (id === undefined || id === null)
|
|
3810
3810
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -3817,10 +3817,10 @@ export class Client {
|
|
|
3817
3817
|
}
|
|
3818
3818
|
};
|
|
3819
3819
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
3820
|
-
return this.
|
|
3820
|
+
return this.processGetPreIPOCompanyById(_response);
|
|
3821
3821
|
});
|
|
3822
3822
|
}
|
|
3823
|
-
|
|
3823
|
+
processGetPreIPOCompanyById(response) {
|
|
3824
3824
|
const status = response.status;
|
|
3825
3825
|
let _headers = {};
|
|
3826
3826
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3876,7 +3876,7 @@ export class Client {
|
|
|
3876
3876
|
* @param isActive (optional) Optional active state filter.
|
|
3877
3877
|
* @return OK
|
|
3878
3878
|
*/
|
|
3879
|
-
|
|
3879
|
+
getAllPreIPOCompanies(page, pageSize, searchTerm, searchCategories, sortBy, sortOrder, minLastValuation, maxLastValuation, minTotalFunding, maxTotalFunding, listingType, isActive) {
|
|
3880
3880
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company?";
|
|
3881
3881
|
if (page === null)
|
|
3882
3882
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -3934,10 +3934,10 @@ export class Client {
|
|
|
3934
3934
|
}
|
|
3935
3935
|
};
|
|
3936
3936
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
3937
|
-
return this.
|
|
3937
|
+
return this.processGetAllPreIPOCompanies(_response);
|
|
3938
3938
|
});
|
|
3939
3939
|
}
|
|
3940
|
-
|
|
3940
|
+
processGetAllPreIPOCompanies(response) {
|
|
3941
3941
|
const status = response.status;
|
|
3942
3942
|
let _headers = {};
|
|
3943
3943
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3988,7 +3988,7 @@ export class Client {
|
|
|
3988
3988
|
* @param isActive (optional) Optional active state filter.
|
|
3989
3989
|
* @return Returns the filtered and paginated list of detailed PreIPOCompanies.
|
|
3990
3990
|
*/
|
|
3991
|
-
|
|
3991
|
+
getAllDetailedPreIPOCompanies(filterId, filterBy, page, pageSize, includes, listingType, isActive) {
|
|
3992
3992
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company/detailed?";
|
|
3993
3993
|
if (filterId === null)
|
|
3994
3994
|
throw new Error("The parameter 'filterId' cannot be null.");
|
|
@@ -4026,10 +4026,10 @@ export class Client {
|
|
|
4026
4026
|
}
|
|
4027
4027
|
};
|
|
4028
4028
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4029
|
-
return this.
|
|
4029
|
+
return this.processGetAllDetailedPreIPOCompanies(_response);
|
|
4030
4030
|
});
|
|
4031
4031
|
}
|
|
4032
|
-
|
|
4032
|
+
processGetAllDetailedPreIPOCompanies(response) {
|
|
4033
4033
|
const status = response.status;
|
|
4034
4034
|
let _headers = {};
|
|
4035
4035
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4072,7 +4072,7 @@ export class Client {
|
|
|
4072
4072
|
* @param id ID of the PreIPOCompanyFundingRound to find.
|
|
4073
4073
|
* @return Returns the PreIPOCompanyFundingRound with the specified Id.
|
|
4074
4074
|
*/
|
|
4075
|
-
|
|
4075
|
+
getPreIPOCompanyFundingRoundById(id) {
|
|
4076
4076
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-funding-round/{id}";
|
|
4077
4077
|
if (id === undefined || id === null)
|
|
4078
4078
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -4085,10 +4085,10 @@ export class Client {
|
|
|
4085
4085
|
}
|
|
4086
4086
|
};
|
|
4087
4087
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4088
|
-
return this.
|
|
4088
|
+
return this.processGetPreIPOCompanyFundingRoundById(_response);
|
|
4089
4089
|
});
|
|
4090
4090
|
}
|
|
4091
|
-
|
|
4091
|
+
processGetPreIPOCompanyFundingRoundById(response) {
|
|
4092
4092
|
const status = response.status;
|
|
4093
4093
|
let _headers = {};
|
|
4094
4094
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4137,7 +4137,7 @@ export class Client {
|
|
|
4137
4137
|
* @param sortOrder (optional)
|
|
4138
4138
|
* @return OK
|
|
4139
4139
|
*/
|
|
4140
|
-
|
|
4140
|
+
getAllPreIPOCompanyFundingRounds(page, pageSize, preIPOCompanyId, searchTerm, sortOrder) {
|
|
4141
4141
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-funding-round?";
|
|
4142
4142
|
if (page === null)
|
|
4143
4143
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -4167,10 +4167,10 @@ export class Client {
|
|
|
4167
4167
|
}
|
|
4168
4168
|
};
|
|
4169
4169
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4170
|
-
return this.
|
|
4170
|
+
return this.processGetAllPreIPOCompanyFundingRounds(_response);
|
|
4171
4171
|
});
|
|
4172
4172
|
}
|
|
4173
|
-
|
|
4173
|
+
processGetAllPreIPOCompanyFundingRounds(response) {
|
|
4174
4174
|
const status = response.status;
|
|
4175
4175
|
let _headers = {};
|
|
4176
4176
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4214,7 +4214,7 @@ export class Client {
|
|
|
4214
4214
|
* @param investorId The investorId making the request
|
|
4215
4215
|
* @return Returns the PreIPOCompanyInvestment with the specified Id.
|
|
4216
4216
|
*/
|
|
4217
|
-
|
|
4217
|
+
getPreIPOCompanyInvestmentById(id, investorId) {
|
|
4218
4218
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-investment/{id}/investor/{investorId}";
|
|
4219
4219
|
if (id === undefined || id === null)
|
|
4220
4220
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -4230,10 +4230,10 @@ export class Client {
|
|
|
4230
4230
|
}
|
|
4231
4231
|
};
|
|
4232
4232
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4233
|
-
return this.
|
|
4233
|
+
return this.processGetPreIPOCompanyInvestmentById(_response);
|
|
4234
4234
|
});
|
|
4235
4235
|
}
|
|
4236
|
-
|
|
4236
|
+
processGetPreIPOCompanyInvestmentById(response) {
|
|
4237
4237
|
const status = response.status;
|
|
4238
4238
|
let _headers = {};
|
|
4239
4239
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4283,7 +4283,7 @@ export class Client {
|
|
|
4283
4283
|
* @param sortOrder (optional)
|
|
4284
4284
|
* @return OK
|
|
4285
4285
|
*/
|
|
4286
|
-
|
|
4286
|
+
getAllPreIPOCompanyInvestments(investorId, nameFilter, page, pageSize, preIpoCompanyId, sortOrder) {
|
|
4287
4287
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-investment/investor/{investorId}?";
|
|
4288
4288
|
if (investorId === undefined || investorId === null)
|
|
4289
4289
|
throw new Error("The parameter 'investorId' must be defined.");
|
|
@@ -4316,10 +4316,10 @@ export class Client {
|
|
|
4316
4316
|
}
|
|
4317
4317
|
};
|
|
4318
4318
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4319
|
-
return this.
|
|
4319
|
+
return this.processGetAllPreIPOCompanyInvestments(_response);
|
|
4320
4320
|
});
|
|
4321
4321
|
}
|
|
4322
|
-
|
|
4322
|
+
processGetAllPreIPOCompanyInvestments(response) {
|
|
4323
4323
|
const status = response.status;
|
|
4324
4324
|
let _headers = {};
|
|
4325
4325
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4362,7 +4362,7 @@ export class Client {
|
|
|
4362
4362
|
* @param id ID of the PreIPOCompanyNews to find.
|
|
4363
4363
|
* @return Returns the PreIPOCompanyNews with the specified Id.
|
|
4364
4364
|
*/
|
|
4365
|
-
|
|
4365
|
+
getPreIPOCompanyNewsById(id) {
|
|
4366
4366
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-news/{id}";
|
|
4367
4367
|
if (id === undefined || id === null)
|
|
4368
4368
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -4375,10 +4375,10 @@ export class Client {
|
|
|
4375
4375
|
}
|
|
4376
4376
|
};
|
|
4377
4377
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4378
|
-
return this.
|
|
4378
|
+
return this.processGetPreIPOCompanyNewsById(_response);
|
|
4379
4379
|
});
|
|
4380
4380
|
}
|
|
4381
|
-
|
|
4381
|
+
processGetPreIPOCompanyNewsById(response) {
|
|
4382
4382
|
const status = response.status;
|
|
4383
4383
|
let _headers = {};
|
|
4384
4384
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4427,7 +4427,7 @@ export class Client {
|
|
|
4427
4427
|
* @param sortOrder (optional)
|
|
4428
4428
|
* @return OK
|
|
4429
4429
|
*/
|
|
4430
|
-
|
|
4430
|
+
getAllPreIPOCompanyNews(searchTerm, page, pageSize, preIPOCompanyId, sortOrder) {
|
|
4431
4431
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-news?";
|
|
4432
4432
|
if (searchTerm === null)
|
|
4433
4433
|
throw new Error("The parameter 'searchTerm' cannot be null.");
|
|
@@ -4457,10 +4457,10 @@ export class Client {
|
|
|
4457
4457
|
}
|
|
4458
4458
|
};
|
|
4459
4459
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4460
|
-
return this.
|
|
4460
|
+
return this.processGetAllPreIPOCompanyNews(_response);
|
|
4461
4461
|
});
|
|
4462
4462
|
}
|
|
4463
|
-
|
|
4463
|
+
processGetAllPreIPOCompanyNews(response) {
|
|
4464
4464
|
const status = response.status;
|
|
4465
4465
|
let _headers = {};
|
|
4466
4466
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4503,7 +4503,7 @@ export class Client {
|
|
|
4503
4503
|
* @param id ID of the PreIPOCompanyResearch to find.
|
|
4504
4504
|
* @return Returns the PreIPOCompanyResearch with the specified Id.
|
|
4505
4505
|
*/
|
|
4506
|
-
|
|
4506
|
+
getPreIPOCompanyResearchById(id) {
|
|
4507
4507
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-research/{id}";
|
|
4508
4508
|
if (id === undefined || id === null)
|
|
4509
4509
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -4516,10 +4516,10 @@ export class Client {
|
|
|
4516
4516
|
}
|
|
4517
4517
|
};
|
|
4518
4518
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4519
|
-
return this.
|
|
4519
|
+
return this.processGetPreIPOCompanyResearchById(_response);
|
|
4520
4520
|
});
|
|
4521
4521
|
}
|
|
4522
|
-
|
|
4522
|
+
processGetPreIPOCompanyResearchById(response) {
|
|
4523
4523
|
const status = response.status;
|
|
4524
4524
|
let _headers = {};
|
|
4525
4525
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4570,7 +4570,7 @@ export class Client {
|
|
|
4570
4570
|
* @param relation (optional)
|
|
4571
4571
|
* @return OK
|
|
4572
4572
|
*/
|
|
4573
|
-
|
|
4573
|
+
getPreIPOCompanyResearchAll(page, pageSize, searchTerm, preIPOCompanyId, sortOrder, researchType, relation) {
|
|
4574
4574
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-research?";
|
|
4575
4575
|
if (page === null)
|
|
4576
4576
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -4608,10 +4608,10 @@ export class Client {
|
|
|
4608
4608
|
}
|
|
4609
4609
|
};
|
|
4610
4610
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4611
|
-
return this.
|
|
4611
|
+
return this.processGetPreIPOCompanyResearchAll(_response);
|
|
4612
4612
|
});
|
|
4613
4613
|
}
|
|
4614
|
-
|
|
4614
|
+
processGetPreIPOCompanyResearchAll(response) {
|
|
4615
4615
|
const status = response.status;
|
|
4616
4616
|
let _headers = {};
|
|
4617
4617
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4656,7 +4656,7 @@ export class Client {
|
|
|
4656
4656
|
* @param includeDocuments (optional) Returns specific documents associated with an SPV.
|
|
4657
4657
|
* @return Returns the PreIPOCompanySPV with the specified Id.
|
|
4658
4658
|
*/
|
|
4659
|
-
|
|
4659
|
+
getPreIPOCompanySPVById(id, investorId, includeDocuments) {
|
|
4660
4660
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv/{id}/investor/{investorId}?";
|
|
4661
4661
|
if (id === undefined || id === null)
|
|
4662
4662
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -4676,10 +4676,86 @@ export class Client {
|
|
|
4676
4676
|
}
|
|
4677
4677
|
};
|
|
4678
4678
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4679
|
-
return this.
|
|
4679
|
+
return this.processGetPreIPOCompanySPVById(_response);
|
|
4680
4680
|
});
|
|
4681
4681
|
}
|
|
4682
|
-
|
|
4682
|
+
processGetPreIPOCompanySPVById(response) {
|
|
4683
|
+
const status = response.status;
|
|
4684
|
+
let _headers = {};
|
|
4685
|
+
if (response.headers && response.headers.forEach) {
|
|
4686
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4687
|
+
}
|
|
4688
|
+
;
|
|
4689
|
+
if (status === 200) {
|
|
4690
|
+
return response.text().then((_responseText) => {
|
|
4691
|
+
let result200 = null;
|
|
4692
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4693
|
+
result200 = PreIPOCompanySPV.fromJS(resultData200);
|
|
4694
|
+
return result200;
|
|
4695
|
+
});
|
|
4696
|
+
}
|
|
4697
|
+
else if (status === 400) {
|
|
4698
|
+
return response.text().then((_responseText) => {
|
|
4699
|
+
let result400 = null;
|
|
4700
|
+
let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4701
|
+
result400 = ProblemDetails.fromJS(resultData400);
|
|
4702
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
4703
|
+
});
|
|
4704
|
+
}
|
|
4705
|
+
else if (status === 404) {
|
|
4706
|
+
return response.text().then((_responseText) => {
|
|
4707
|
+
let result404 = null;
|
|
4708
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4709
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
4710
|
+
return throwException("PreIPOCompanySPV not found.", status, _responseText, _headers, result404);
|
|
4711
|
+
});
|
|
4712
|
+
}
|
|
4713
|
+
else if (status === 403) {
|
|
4714
|
+
return response.text().then((_responseText) => {
|
|
4715
|
+
let result403 = null;
|
|
4716
|
+
let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4717
|
+
result403 = ProblemDetails.fromJS(resultData403);
|
|
4718
|
+
return throwException("Investor cannot access SPV\'s.", status, _responseText, _headers, result403);
|
|
4719
|
+
});
|
|
4720
|
+
}
|
|
4721
|
+
else if (status !== 200 && status !== 204) {
|
|
4722
|
+
return response.text().then((_responseText) => {
|
|
4723
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4724
|
+
});
|
|
4725
|
+
}
|
|
4726
|
+
return Promise.resolve(null);
|
|
4727
|
+
}
|
|
4728
|
+
/**
|
|
4729
|
+
* Get a PreIPOCompanySPV by Cusip
|
|
4730
|
+
* @param cusip Cusip of the PreIPOCompanySPV to find.
|
|
4731
|
+
* @param investorId Investor that the SPV's are being retrieved for.
|
|
4732
|
+
* @param includeDocuments (optional) Returns specific documents associated with an SPV.
|
|
4733
|
+
* @return Returns the PreIPOCompanySPV with the specified Cusip.
|
|
4734
|
+
*/
|
|
4735
|
+
getPreIPOCompanySPVByCusip(cusip, investorId, includeDocuments) {
|
|
4736
|
+
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv/cusip/{cusip}/investor/{investorId}?";
|
|
4737
|
+
if (cusip === undefined || cusip === null)
|
|
4738
|
+
throw new Error("The parameter 'cusip' must be defined.");
|
|
4739
|
+
url_ = url_.replace("{cusip}", encodeURIComponent("" + cusip));
|
|
4740
|
+
if (investorId === undefined || investorId === null)
|
|
4741
|
+
throw new Error("The parameter 'investorId' must be defined.");
|
|
4742
|
+
url_ = url_.replace("{investorId}", encodeURIComponent("" + investorId));
|
|
4743
|
+
if (includeDocuments === null)
|
|
4744
|
+
throw new Error("The parameter 'includeDocuments' cannot be null.");
|
|
4745
|
+
else if (includeDocuments !== undefined)
|
|
4746
|
+
url_ += "includeDocuments=" + encodeURIComponent("" + includeDocuments) + "&";
|
|
4747
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4748
|
+
let options_ = {
|
|
4749
|
+
method: "GET",
|
|
4750
|
+
headers: {
|
|
4751
|
+
"Accept": "application/json"
|
|
4752
|
+
}
|
|
4753
|
+
};
|
|
4754
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
4755
|
+
return this.processGetPreIPOCompanySPVByCusip(_response);
|
|
4756
|
+
});
|
|
4757
|
+
}
|
|
4758
|
+
processGetPreIPOCompanySPVByCusip(response) {
|
|
4683
4759
|
const status = response.status;
|
|
4684
4760
|
let _headers = {};
|
|
4685
4761
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4740,7 +4816,7 @@ export class Client {
|
|
|
4740
4816
|
* @param sortBy (optional)
|
|
4741
4817
|
* @return OK
|
|
4742
4818
|
*/
|
|
4743
|
-
|
|
4819
|
+
getAllPreIPOCompanySPVs(investorId, monarkStage, exemptionsClaimed, nameFilter, preIPOCompanyId, preIPOCompanyInvestmentId, page, pageSize, sortOrder, sortBy) {
|
|
4744
4820
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv/investor/{investorId}?";
|
|
4745
4821
|
if (investorId === undefined || investorId === null)
|
|
4746
4822
|
throw new Error("The parameter 'investorId' must be defined.");
|
|
@@ -4789,10 +4865,10 @@ export class Client {
|
|
|
4789
4865
|
}
|
|
4790
4866
|
};
|
|
4791
4867
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4792
|
-
return this.
|
|
4868
|
+
return this.processGetAllPreIPOCompanySPVs(_response);
|
|
4793
4869
|
});
|
|
4794
4870
|
}
|
|
4795
|
-
|
|
4871
|
+
processGetAllPreIPOCompanySPVs(response) {
|
|
4796
4872
|
const status = response.status;
|
|
4797
4873
|
let _headers = {};
|
|
4798
4874
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4838,7 +4914,7 @@ export class Client {
|
|
|
4838
4914
|
Defaults to 25 if not specified.
|
|
4839
4915
|
* @return Returns the list of approved SPVs.
|
|
4840
4916
|
*/
|
|
4841
|
-
|
|
4917
|
+
getPartnerApprovedSPVs(page, pageSize) {
|
|
4842
4918
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/partner/spvs?";
|
|
4843
4919
|
if (page === null)
|
|
4844
4920
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -4856,10 +4932,10 @@ export class Client {
|
|
|
4856
4932
|
}
|
|
4857
4933
|
};
|
|
4858
4934
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4859
|
-
return this.
|
|
4935
|
+
return this.processGetPartnerApprovedSPVs(_response);
|
|
4860
4936
|
});
|
|
4861
4937
|
}
|
|
4862
|
-
|
|
4938
|
+
processGetPartnerApprovedSPVs(response) {
|
|
4863
4939
|
const status = response.status;
|
|
4864
4940
|
let _headers = {};
|
|
4865
4941
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4894,7 +4970,7 @@ export class Client {
|
|
|
4894
4970
|
* @param spvId ID of the SPV.
|
|
4895
4971
|
* @return Returns whether approval exists.
|
|
4896
4972
|
*/
|
|
4897
|
-
|
|
4973
|
+
isSpvApproved(spvId) {
|
|
4898
4974
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/is-approved";
|
|
4899
4975
|
if (spvId === undefined || spvId === null)
|
|
4900
4976
|
throw new Error("The parameter 'spvId' must be defined.");
|
|
@@ -4907,10 +4983,10 @@ export class Client {
|
|
|
4907
4983
|
}
|
|
4908
4984
|
};
|
|
4909
4985
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4910
|
-
return this.
|
|
4986
|
+
return this.processIsSpvApproved(_response);
|
|
4911
4987
|
});
|
|
4912
4988
|
}
|
|
4913
|
-
|
|
4989
|
+
processIsSpvApproved(response) {
|
|
4914
4990
|
const status = response.status;
|
|
4915
4991
|
let _headers = {};
|
|
4916
4992
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4946,7 +5022,7 @@ export class Client {
|
|
|
4946
5022
|
* @param body (optional) Approval request containing optional notes.
|
|
4947
5023
|
* @return SPV successfully approved.
|
|
4948
5024
|
*/
|
|
4949
|
-
|
|
5025
|
+
approveSpv(spvId, body) {
|
|
4950
5026
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/approve";
|
|
4951
5027
|
if (spvId === undefined || spvId === null)
|
|
4952
5028
|
throw new Error("The parameter 'spvId' must be defined.");
|
|
@@ -4962,10 +5038,10 @@ export class Client {
|
|
|
4962
5038
|
}
|
|
4963
5039
|
};
|
|
4964
5040
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
4965
|
-
return this.
|
|
5041
|
+
return this.processApproveSpv(_response);
|
|
4966
5042
|
});
|
|
4967
5043
|
}
|
|
4968
|
-
|
|
5044
|
+
processApproveSpv(response) {
|
|
4969
5045
|
const status = response.status;
|
|
4970
5046
|
let _headers = {};
|
|
4971
5047
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5008,7 +5084,7 @@ export class Client {
|
|
|
5008
5084
|
* @param spvId ID of the SPV.
|
|
5009
5085
|
* @return Returns the approval record.
|
|
5010
5086
|
*/
|
|
5011
|
-
|
|
5087
|
+
getPartnerSpvApproval(spvId) {
|
|
5012
5088
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/approval";
|
|
5013
5089
|
if (spvId === undefined || spvId === null)
|
|
5014
5090
|
throw new Error("The parameter 'spvId' must be defined.");
|
|
@@ -5021,10 +5097,10 @@ export class Client {
|
|
|
5021
5097
|
}
|
|
5022
5098
|
};
|
|
5023
5099
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5024
|
-
return this.
|
|
5100
|
+
return this.processGetPartnerSpvApproval(_response);
|
|
5025
5101
|
});
|
|
5026
5102
|
}
|
|
5027
|
-
|
|
5103
|
+
processGetPartnerSpvApproval(response) {
|
|
5028
5104
|
const status = response.status;
|
|
5029
5105
|
let _headers = {};
|
|
5030
5106
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5058,7 +5134,7 @@ export class Client {
|
|
|
5058
5134
|
* Gets an approval record by Id.
|
|
5059
5135
|
* @return Returns an approval record.
|
|
5060
5136
|
*/
|
|
5061
|
-
|
|
5137
|
+
getPartnerSpvApprovalById(approvalId) {
|
|
5062
5138
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/{approvalId}";
|
|
5063
5139
|
if (approvalId === undefined || approvalId === null)
|
|
5064
5140
|
throw new Error("The parameter 'approvalId' must be defined.");
|
|
@@ -5071,10 +5147,10 @@ export class Client {
|
|
|
5071
5147
|
}
|
|
5072
5148
|
};
|
|
5073
5149
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5074
|
-
return this.
|
|
5150
|
+
return this.processGetPartnerSpvApprovalById(_response);
|
|
5075
5151
|
});
|
|
5076
5152
|
}
|
|
5077
|
-
|
|
5153
|
+
processGetPartnerSpvApprovalById(response) {
|
|
5078
5154
|
const status = response.status;
|
|
5079
5155
|
let _headers = {};
|
|
5080
5156
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5113,7 +5189,7 @@ export class Client {
|
|
|
5113
5189
|
* @param sortOrder (optional) Sort order for results.
|
|
5114
5190
|
* @return Returns the list of approval records.
|
|
5115
5191
|
*/
|
|
5116
|
-
|
|
5192
|
+
getAllPartnerSpvApprovals(page, pageSize, sortOrder) {
|
|
5117
5193
|
let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval?";
|
|
5118
5194
|
if (page === null)
|
|
5119
5195
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -5135,10 +5211,10 @@ export class Client {
|
|
|
5135
5211
|
}
|
|
5136
5212
|
};
|
|
5137
5213
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5138
|
-
return this.
|
|
5214
|
+
return this.processGetAllPartnerSpvApprovals(_response);
|
|
5139
5215
|
});
|
|
5140
5216
|
}
|
|
5141
|
-
|
|
5217
|
+
processGetAllPartnerSpvApprovals(response) {
|
|
5142
5218
|
const status = response.status;
|
|
5143
5219
|
let _headers = {};
|
|
5144
5220
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5164,7 +5240,7 @@ export class Client {
|
|
|
5164
5240
|
* @param body (optional)
|
|
5165
5241
|
* @return Created
|
|
5166
5242
|
*/
|
|
5167
|
-
|
|
5243
|
+
createQuestionnaire(body) {
|
|
5168
5244
|
let url_ = this.baseUrl + "/primary/v1/questionnaire";
|
|
5169
5245
|
url_ = url_.replace(/[?&]$/, "");
|
|
5170
5246
|
const content_ = JSON.stringify(body);
|
|
@@ -5177,10 +5253,10 @@ export class Client {
|
|
|
5177
5253
|
}
|
|
5178
5254
|
};
|
|
5179
5255
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5180
|
-
return this.
|
|
5256
|
+
return this.processCreateQuestionnaire(_response);
|
|
5181
5257
|
});
|
|
5182
5258
|
}
|
|
5183
|
-
|
|
5259
|
+
processCreateQuestionnaire(response) {
|
|
5184
5260
|
const status = response.status;
|
|
5185
5261
|
let _headers = {};
|
|
5186
5262
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5214,7 +5290,7 @@ export class Client {
|
|
|
5214
5290
|
* @param body (optional)
|
|
5215
5291
|
* @return OK
|
|
5216
5292
|
*/
|
|
5217
|
-
|
|
5293
|
+
updateQuestionnaire(body) {
|
|
5218
5294
|
let url_ = this.baseUrl + "/primary/v1/questionnaire";
|
|
5219
5295
|
url_ = url_.replace(/[?&]$/, "");
|
|
5220
5296
|
const content_ = JSON.stringify(body);
|
|
@@ -5227,10 +5303,10 @@ export class Client {
|
|
|
5227
5303
|
}
|
|
5228
5304
|
};
|
|
5229
5305
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5230
|
-
return this.
|
|
5306
|
+
return this.processUpdateQuestionnaire(_response);
|
|
5231
5307
|
});
|
|
5232
5308
|
}
|
|
5233
|
-
|
|
5309
|
+
processUpdateQuestionnaire(response) {
|
|
5234
5310
|
const status = response.status;
|
|
5235
5311
|
let _headers = {};
|
|
5236
5312
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5277,7 +5353,7 @@ export class Client {
|
|
|
5277
5353
|
* @param sortOrder (optional)
|
|
5278
5354
|
* @return Returns the list of Questionnaires.
|
|
5279
5355
|
*/
|
|
5280
|
-
|
|
5356
|
+
getAllQuestionnaires(page, pageSize, sortOrder) {
|
|
5281
5357
|
let url_ = this.baseUrl + "/primary/v1/questionnaire?";
|
|
5282
5358
|
if (page === null)
|
|
5283
5359
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -5299,10 +5375,10 @@ export class Client {
|
|
|
5299
5375
|
}
|
|
5300
5376
|
};
|
|
5301
5377
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5302
|
-
return this.
|
|
5378
|
+
return this.processGetAllQuestionnaires(_response);
|
|
5303
5379
|
});
|
|
5304
5380
|
}
|
|
5305
|
-
|
|
5381
|
+
processGetAllQuestionnaires(response) {
|
|
5306
5382
|
const status = response.status;
|
|
5307
5383
|
let _headers = {};
|
|
5308
5384
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5343,7 +5419,7 @@ export class Client {
|
|
|
5343
5419
|
/**
|
|
5344
5420
|
* @return No Content
|
|
5345
5421
|
*/
|
|
5346
|
-
|
|
5422
|
+
deleteQuestionnaire(id) {
|
|
5347
5423
|
let url_ = this.baseUrl + "/primary/v1/questionnaire/{id}";
|
|
5348
5424
|
if (id === undefined || id === null)
|
|
5349
5425
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -5354,10 +5430,10 @@ export class Client {
|
|
|
5354
5430
|
headers: {}
|
|
5355
5431
|
};
|
|
5356
5432
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5357
|
-
return this.
|
|
5433
|
+
return this.processDeleteQuestionnaire(_response);
|
|
5358
5434
|
});
|
|
5359
5435
|
}
|
|
5360
|
-
|
|
5436
|
+
processDeleteQuestionnaire(response) {
|
|
5361
5437
|
const status = response.status;
|
|
5362
5438
|
let _headers = {};
|
|
5363
5439
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5389,7 +5465,7 @@ export class Client {
|
|
|
5389
5465
|
* @param id ID of the Questionnaire to find.
|
|
5390
5466
|
* @return Returns the Questionnaire with the specified Id.
|
|
5391
5467
|
*/
|
|
5392
|
-
|
|
5468
|
+
getQuestionnaireById(id) {
|
|
5393
5469
|
let url_ = this.baseUrl + "/primary/v1/questionnaire/{id}";
|
|
5394
5470
|
if (id === undefined || id === null)
|
|
5395
5471
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -5402,10 +5478,10 @@ export class Client {
|
|
|
5402
5478
|
}
|
|
5403
5479
|
};
|
|
5404
5480
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5405
|
-
return this.
|
|
5481
|
+
return this.processGetQuestionnaireById(_response);
|
|
5406
5482
|
});
|
|
5407
5483
|
}
|
|
5408
|
-
|
|
5484
|
+
processGetQuestionnaireById(response) {
|
|
5409
5485
|
const status = response.status;
|
|
5410
5486
|
let _headers = {};
|
|
5411
5487
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5440,7 +5516,7 @@ export class Client {
|
|
|
5440
5516
|
* @param body (optional) create QuestionnaireAnswer information.
|
|
5441
5517
|
* @return The newly created QuestionnaireAnswer.
|
|
5442
5518
|
*/
|
|
5443
|
-
|
|
5519
|
+
createQuestionnaireAnswer(body) {
|
|
5444
5520
|
let url_ = this.baseUrl + "/primary/v1/questionnaire-answer";
|
|
5445
5521
|
url_ = url_.replace(/[?&]$/, "");
|
|
5446
5522
|
const content_ = JSON.stringify(body);
|
|
@@ -5453,10 +5529,10 @@ export class Client {
|
|
|
5453
5529
|
}
|
|
5454
5530
|
};
|
|
5455
5531
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5456
|
-
return this.
|
|
5532
|
+
return this.processCreateQuestionnaireAnswer(_response);
|
|
5457
5533
|
});
|
|
5458
5534
|
}
|
|
5459
|
-
|
|
5535
|
+
processCreateQuestionnaireAnswer(response) {
|
|
5460
5536
|
const status = response.status;
|
|
5461
5537
|
let _headers = {};
|
|
5462
5538
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5497,7 +5573,7 @@ export class Client {
|
|
|
5497
5573
|
* @param sortOrder (optional)
|
|
5498
5574
|
* @return Returns the list of Questionnaire.
|
|
5499
5575
|
*/
|
|
5500
|
-
|
|
5576
|
+
getAllQuestionnaireAnswers(investorId, questionnaireId, page, pageSize, sortOrder) {
|
|
5501
5577
|
let url_ = this.baseUrl + "/primary/v1/questionnaire-answer?";
|
|
5502
5578
|
if (investorId === null)
|
|
5503
5579
|
throw new Error("The parameter 'investorId' cannot be null.");
|
|
@@ -5527,10 +5603,10 @@ export class Client {
|
|
|
5527
5603
|
}
|
|
5528
5604
|
};
|
|
5529
5605
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5530
|
-
return this.
|
|
5606
|
+
return this.processGetAllQuestionnaireAnswers(_response);
|
|
5531
5607
|
});
|
|
5532
5608
|
}
|
|
5533
|
-
|
|
5609
|
+
processGetAllQuestionnaireAnswers(response) {
|
|
5534
5610
|
const status = response.status;
|
|
5535
5611
|
let _headers = {};
|
|
5536
5612
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5557,7 +5633,7 @@ export class Client {
|
|
|
5557
5633
|
* @param id ID of the QuestionnaireAnswer to find.
|
|
5558
5634
|
* @return Returns the QuestionnaireAnswer with the specified Id.
|
|
5559
5635
|
*/
|
|
5560
|
-
|
|
5636
|
+
getQuestionnaireAnswerById(id) {
|
|
5561
5637
|
let url_ = this.baseUrl + "/primary/v1/questionnaire-answer/{id}";
|
|
5562
5638
|
if (id === undefined || id === null)
|
|
5563
5639
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -5570,10 +5646,10 @@ export class Client {
|
|
|
5570
5646
|
}
|
|
5571
5647
|
};
|
|
5572
5648
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5573
|
-
return this.
|
|
5649
|
+
return this.processGetQuestionnaireAnswerById(_response);
|
|
5574
5650
|
});
|
|
5575
5651
|
}
|
|
5576
|
-
|
|
5652
|
+
processGetQuestionnaireAnswerById(response) {
|
|
5577
5653
|
const status = response.status;
|
|
5578
5654
|
let _headers = {};
|
|
5579
5655
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5609,7 +5685,7 @@ export class Client {
|
|
|
5609
5685
|
* @param includeDocuments (optional) Return associated documents
|
|
5610
5686
|
* @return Returns the RegisteredFund with the specified Id.
|
|
5611
5687
|
*/
|
|
5612
|
-
|
|
5688
|
+
getRegisteredFundById(id, includeDocuments) {
|
|
5613
5689
|
let url_ = this.baseUrl + "/primary/v1/registered-fund/{id}?";
|
|
5614
5690
|
if (id === undefined || id === null)
|
|
5615
5691
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -5626,10 +5702,10 @@ export class Client {
|
|
|
5626
5702
|
}
|
|
5627
5703
|
};
|
|
5628
5704
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5629
|
-
return this.
|
|
5705
|
+
return this.processGetRegisteredFundById(_response);
|
|
5630
5706
|
});
|
|
5631
5707
|
}
|
|
5632
|
-
|
|
5708
|
+
processGetRegisteredFundById(response) {
|
|
5633
5709
|
const status = response.status;
|
|
5634
5710
|
let _headers = {};
|
|
5635
5711
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5669,7 +5745,7 @@ export class Client {
|
|
|
5669
5745
|
* @param sortOrder (optional) Which way to sort order, defaults to Descending.
|
|
5670
5746
|
* @return OK
|
|
5671
5747
|
*/
|
|
5672
|
-
|
|
5748
|
+
getAllRegisteredFunds(page, pageSize, searchTerm, sortOrder) {
|
|
5673
5749
|
let url_ = this.baseUrl + "/primary/v1/registered-fund?";
|
|
5674
5750
|
if (page === null)
|
|
5675
5751
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -5695,10 +5771,10 @@ export class Client {
|
|
|
5695
5771
|
}
|
|
5696
5772
|
};
|
|
5697
5773
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5698
|
-
return this.
|
|
5774
|
+
return this.processGetAllRegisteredFunds(_response);
|
|
5699
5775
|
});
|
|
5700
5776
|
}
|
|
5701
|
-
|
|
5777
|
+
processGetAllRegisteredFunds(response) {
|
|
5702
5778
|
const status = response.status;
|
|
5703
5779
|
let _headers = {};
|
|
5704
5780
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5741,7 +5817,7 @@ export class Client {
|
|
|
5741
5817
|
* @param body (optional) The subscription creation request.
|
|
5742
5818
|
* @return Created
|
|
5743
5819
|
*/
|
|
5744
|
-
|
|
5820
|
+
createRegisteredFundSubscription(body) {
|
|
5745
5821
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription";
|
|
5746
5822
|
url_ = url_.replace(/[?&]$/, "");
|
|
5747
5823
|
const content_ = JSON.stringify(body);
|
|
@@ -5754,10 +5830,10 @@ export class Client {
|
|
|
5754
5830
|
}
|
|
5755
5831
|
};
|
|
5756
5832
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5757
|
-
return this.
|
|
5833
|
+
return this.processCreateRegisteredFundSubscription(_response);
|
|
5758
5834
|
});
|
|
5759
5835
|
}
|
|
5760
|
-
|
|
5836
|
+
processCreateRegisteredFundSubscription(response) {
|
|
5761
5837
|
const status = response.status;
|
|
5762
5838
|
let _headers = {};
|
|
5763
5839
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5798,7 +5874,7 @@ export class Client {
|
|
|
5798
5874
|
* @param sortOrder (optional) Sort order for results (default: Descending).
|
|
5799
5875
|
* @return OK
|
|
5800
5876
|
*/
|
|
5801
|
-
|
|
5877
|
+
getAllRegisteredFundSubscriptions(page, pageSize, registeredFundId, investorId, sortOrder) {
|
|
5802
5878
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription?";
|
|
5803
5879
|
if (page === null)
|
|
5804
5880
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -5828,10 +5904,10 @@ export class Client {
|
|
|
5828
5904
|
}
|
|
5829
5905
|
};
|
|
5830
5906
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5831
|
-
return this.
|
|
5907
|
+
return this.processGetAllRegisteredFundSubscriptions(_response);
|
|
5832
5908
|
});
|
|
5833
5909
|
}
|
|
5834
|
-
|
|
5910
|
+
processGetAllRegisteredFundSubscriptions(response) {
|
|
5835
5911
|
const status = response.status;
|
|
5836
5912
|
let _headers = {};
|
|
5837
5913
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5866,7 +5942,7 @@ export class Client {
|
|
|
5866
5942
|
* @param id The subscription ID.
|
|
5867
5943
|
* @return OK
|
|
5868
5944
|
*/
|
|
5869
|
-
|
|
5945
|
+
getRegisteredFundSubscriptionById(id) {
|
|
5870
5946
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription/{id}";
|
|
5871
5947
|
if (id === undefined || id === null)
|
|
5872
5948
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -5879,10 +5955,10 @@ export class Client {
|
|
|
5879
5955
|
}
|
|
5880
5956
|
};
|
|
5881
5957
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5882
|
-
return this.
|
|
5958
|
+
return this.processGetRegisteredFundSubscriptionById(_response);
|
|
5883
5959
|
});
|
|
5884
5960
|
}
|
|
5885
|
-
|
|
5961
|
+
processGetRegisteredFundSubscriptionById(response) {
|
|
5886
5962
|
const status = response.status;
|
|
5887
5963
|
let _headers = {};
|
|
5888
5964
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5926,7 +6002,7 @@ export class Client {
|
|
|
5926
6002
|
* @param body (optional)
|
|
5927
6003
|
* @return OK
|
|
5928
6004
|
*/
|
|
5929
|
-
|
|
6005
|
+
generateRegisteredFundSubscriptionPreview(id, body) {
|
|
5930
6006
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription/{id}/preview";
|
|
5931
6007
|
if (id === undefined || id === null)
|
|
5932
6008
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -5942,10 +6018,10 @@ export class Client {
|
|
|
5942
6018
|
}
|
|
5943
6019
|
};
|
|
5944
6020
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
5945
|
-
return this.
|
|
6021
|
+
return this.processGenerateRegisteredFundSubscriptionPreview(_response);
|
|
5946
6022
|
});
|
|
5947
6023
|
}
|
|
5948
|
-
|
|
6024
|
+
processGenerateRegisteredFundSubscriptionPreview(response) {
|
|
5949
6025
|
const status = response.status;
|
|
5950
6026
|
let _headers = {};
|
|
5951
6027
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5986,7 +6062,7 @@ export class Client {
|
|
|
5986
6062
|
* @param body (optional) The signature request.
|
|
5987
6063
|
* @return OK
|
|
5988
6064
|
*/
|
|
5989
|
-
|
|
6065
|
+
signRegisteredFundSubscriptionByInvestor(id, body) {
|
|
5990
6066
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription/{id}/sign-investor";
|
|
5991
6067
|
if (id === undefined || id === null)
|
|
5992
6068
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -6002,10 +6078,10 @@ export class Client {
|
|
|
6002
6078
|
}
|
|
6003
6079
|
};
|
|
6004
6080
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6005
|
-
return this.
|
|
6081
|
+
return this.processSignRegisteredFundSubscriptionByInvestor(_response);
|
|
6006
6082
|
});
|
|
6007
6083
|
}
|
|
6008
|
-
|
|
6084
|
+
processSignRegisteredFundSubscriptionByInvestor(response) {
|
|
6009
6085
|
const status = response.status;
|
|
6010
6086
|
let _headers = {};
|
|
6011
6087
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6049,7 +6125,7 @@ export class Client {
|
|
|
6049
6125
|
* @param body (optional) The signature request.
|
|
6050
6126
|
* @return OK
|
|
6051
6127
|
*/
|
|
6052
|
-
|
|
6128
|
+
signRegisteredFundSubscriptionByAdvisor(id, body) {
|
|
6053
6129
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription/{id}/sign-advisor";
|
|
6054
6130
|
if (id === undefined || id === null)
|
|
6055
6131
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -6065,10 +6141,10 @@ export class Client {
|
|
|
6065
6141
|
}
|
|
6066
6142
|
};
|
|
6067
6143
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6068
|
-
return this.
|
|
6144
|
+
return this.processSignRegisteredFundSubscriptionByAdvisor(_response);
|
|
6069
6145
|
});
|
|
6070
6146
|
}
|
|
6071
|
-
|
|
6147
|
+
processSignRegisteredFundSubscriptionByAdvisor(response) {
|
|
6072
6148
|
const status = response.status;
|
|
6073
6149
|
let _headers = {};
|
|
6074
6150
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6112,7 +6188,7 @@ export class Client {
|
|
|
6112
6188
|
* @param id The subscription ID.
|
|
6113
6189
|
* @return OK
|
|
6114
6190
|
*/
|
|
6115
|
-
|
|
6191
|
+
getRegisteredFundSubscriptionDocument(id) {
|
|
6116
6192
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription/{id}/document";
|
|
6117
6193
|
if (id === undefined || id === null)
|
|
6118
6194
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -6125,10 +6201,10 @@ export class Client {
|
|
|
6125
6201
|
}
|
|
6126
6202
|
};
|
|
6127
6203
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6128
|
-
return this.
|
|
6204
|
+
return this.processGetRegisteredFundSubscriptionDocument(_response);
|
|
6129
6205
|
});
|
|
6130
6206
|
}
|
|
6131
|
-
|
|
6207
|
+
processGetRegisteredFundSubscriptionDocument(response) {
|
|
6132
6208
|
const status = response.status;
|
|
6133
6209
|
let _headers = {};
|
|
6134
6210
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6182,7 +6258,7 @@ export class Client {
|
|
|
6182
6258
|
* @param responsibleParty (optional) Optional filter by responsible party.
|
|
6183
6259
|
* @return OK
|
|
6184
6260
|
*/
|
|
6185
|
-
|
|
6261
|
+
getAllRegisteredFundSubscriptionActions(registeredFundSubscriptionId, responsibleParty) {
|
|
6186
6262
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription-action/registered-fund-subscription/{registeredFundSubscriptionId}?";
|
|
6187
6263
|
if (registeredFundSubscriptionId === undefined || registeredFundSubscriptionId === null)
|
|
6188
6264
|
throw new Error("The parameter 'registeredFundSubscriptionId' must be defined.");
|
|
@@ -6199,10 +6275,10 @@ export class Client {
|
|
|
6199
6275
|
}
|
|
6200
6276
|
};
|
|
6201
6277
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6202
|
-
return this.
|
|
6278
|
+
return this.processGetAllRegisteredFundSubscriptionActions(_response);
|
|
6203
6279
|
});
|
|
6204
6280
|
}
|
|
6205
|
-
|
|
6281
|
+
processGetAllRegisteredFundSubscriptionActions(response) {
|
|
6206
6282
|
const status = response.status;
|
|
6207
6283
|
let _headers = {};
|
|
6208
6284
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6244,7 +6320,7 @@ export class Client {
|
|
|
6244
6320
|
* @param id ID of the RegisteredFundSubscriptionAction to find.
|
|
6245
6321
|
* @return OK
|
|
6246
6322
|
*/
|
|
6247
|
-
|
|
6323
|
+
getRegisteredFundSubscriptionActionById(id) {
|
|
6248
6324
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription-action/{id}";
|
|
6249
6325
|
if (id === undefined || id === null)
|
|
6250
6326
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -6257,10 +6333,10 @@ export class Client {
|
|
|
6257
6333
|
}
|
|
6258
6334
|
};
|
|
6259
6335
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6260
|
-
return this.
|
|
6336
|
+
return this.processGetRegisteredFundSubscriptionActionById(_response);
|
|
6261
6337
|
});
|
|
6262
6338
|
}
|
|
6263
|
-
|
|
6339
|
+
processGetRegisteredFundSubscriptionActionById(response) {
|
|
6264
6340
|
const status = response.status;
|
|
6265
6341
|
let _headers = {};
|
|
6266
6342
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6296,7 +6372,7 @@ export class Client {
|
|
|
6296
6372
|
* @param body (optional)
|
|
6297
6373
|
* @return No Content
|
|
6298
6374
|
*/
|
|
6299
|
-
|
|
6375
|
+
completeRegisteredFundSubscriptionAction(id, body) {
|
|
6300
6376
|
let url_ = this.baseUrl + "/primary/v1/registered-fund-subscription-action/{id}/complete";
|
|
6301
6377
|
if (id === undefined || id === null)
|
|
6302
6378
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -6311,10 +6387,10 @@ export class Client {
|
|
|
6311
6387
|
}
|
|
6312
6388
|
};
|
|
6313
6389
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6314
|
-
return this.
|
|
6390
|
+
return this.processCompleteRegisteredFundSubscriptionAction(_response);
|
|
6315
6391
|
});
|
|
6316
6392
|
}
|
|
6317
|
-
|
|
6393
|
+
processCompleteRegisteredFundSubscriptionAction(response) {
|
|
6318
6394
|
const status = response.status;
|
|
6319
6395
|
let _headers = {};
|
|
6320
6396
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6345,7 +6421,7 @@ export class Client {
|
|
|
6345
6421
|
* Get the API version
|
|
6346
6422
|
* @return Returns the API version
|
|
6347
6423
|
*/
|
|
6348
|
-
|
|
6424
|
+
getVersion() {
|
|
6349
6425
|
let url_ = this.baseUrl + "/primary/v1/version";
|
|
6350
6426
|
url_ = url_.replace(/[?&]$/, "");
|
|
6351
6427
|
let options_ = {
|
|
@@ -6355,10 +6431,10 @@ export class Client {
|
|
|
6355
6431
|
}
|
|
6356
6432
|
};
|
|
6357
6433
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6358
|
-
return this.
|
|
6434
|
+
return this.processGetVersion(_response);
|
|
6359
6435
|
});
|
|
6360
6436
|
}
|
|
6361
|
-
|
|
6437
|
+
processGetVersion(response) {
|
|
6362
6438
|
const status = response.status;
|
|
6363
6439
|
let _headers = {};
|
|
6364
6440
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6385,7 +6461,7 @@ export class Client {
|
|
|
6385
6461
|
* @param body (optional) Create Webhook information.
|
|
6386
6462
|
* @return The newly created Webhook.
|
|
6387
6463
|
*/
|
|
6388
|
-
|
|
6464
|
+
createWebhook(body) {
|
|
6389
6465
|
let url_ = this.baseUrl + "/primary/v1/webhook";
|
|
6390
6466
|
url_ = url_.replace(/[?&]$/, "");
|
|
6391
6467
|
const content_ = JSON.stringify(body);
|
|
@@ -6398,10 +6474,10 @@ export class Client {
|
|
|
6398
6474
|
}
|
|
6399
6475
|
};
|
|
6400
6476
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6401
|
-
return this.
|
|
6477
|
+
return this.processCreateWebhook(_response);
|
|
6402
6478
|
});
|
|
6403
6479
|
}
|
|
6404
|
-
|
|
6480
|
+
processCreateWebhook(response) {
|
|
6405
6481
|
const status = response.status;
|
|
6406
6482
|
let _headers = {};
|
|
6407
6483
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6440,7 +6516,7 @@ export class Client {
|
|
|
6440
6516
|
* @param sortOrder (optional) Order of which to sort the webhooks by. Default is Descending
|
|
6441
6517
|
* @return Returns a list of Webhooks.
|
|
6442
6518
|
*/
|
|
6443
|
-
|
|
6519
|
+
getAllWebhooks(page, pageSize, sortOrder) {
|
|
6444
6520
|
let url_ = this.baseUrl + "/primary/v1/webhook?";
|
|
6445
6521
|
if (page === null)
|
|
6446
6522
|
throw new Error("The parameter 'page' cannot be null.");
|
|
@@ -6462,10 +6538,10 @@ export class Client {
|
|
|
6462
6538
|
}
|
|
6463
6539
|
};
|
|
6464
6540
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6465
|
-
return this.
|
|
6541
|
+
return this.processGetAllWebhooks(_response);
|
|
6466
6542
|
});
|
|
6467
6543
|
}
|
|
6468
|
-
|
|
6544
|
+
processGetAllWebhooks(response) {
|
|
6469
6545
|
const status = response.status;
|
|
6470
6546
|
let _headers = {};
|
|
6471
6547
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6505,7 +6581,7 @@ export class Client {
|
|
|
6505
6581
|
* @param body (optional) Update Webhook Request.
|
|
6506
6582
|
* @return The Updated Webhook.
|
|
6507
6583
|
*/
|
|
6508
|
-
|
|
6584
|
+
updateWebhook(body) {
|
|
6509
6585
|
let url_ = this.baseUrl + "/primary/v1/webhook";
|
|
6510
6586
|
url_ = url_.replace(/[?&]$/, "");
|
|
6511
6587
|
const content_ = JSON.stringify(body);
|
|
@@ -6517,10 +6593,10 @@ export class Client {
|
|
|
6517
6593
|
}
|
|
6518
6594
|
};
|
|
6519
6595
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6520
|
-
return this.
|
|
6596
|
+
return this.processUpdateWebhook(_response);
|
|
6521
6597
|
});
|
|
6522
6598
|
}
|
|
6523
|
-
|
|
6599
|
+
processUpdateWebhook(response) {
|
|
6524
6600
|
const status = response.status;
|
|
6525
6601
|
let _headers = {};
|
|
6526
6602
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6560,7 +6636,7 @@ export class Client {
|
|
|
6560
6636
|
* @param id Id of the webhook to get.
|
|
6561
6637
|
* @return Returns the Webhook with the specified Id.
|
|
6562
6638
|
*/
|
|
6563
|
-
|
|
6639
|
+
getWebhookById(id) {
|
|
6564
6640
|
let url_ = this.baseUrl + "/primary/v1/webhook/{id}";
|
|
6565
6641
|
if (id === undefined || id === null)
|
|
6566
6642
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -6573,10 +6649,10 @@ export class Client {
|
|
|
6573
6649
|
}
|
|
6574
6650
|
};
|
|
6575
6651
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6576
|
-
return this.
|
|
6652
|
+
return this.processGetWebhookById(_response);
|
|
6577
6653
|
});
|
|
6578
6654
|
}
|
|
6579
|
-
|
|
6655
|
+
processGetWebhookById(response) {
|
|
6580
6656
|
const status = response.status;
|
|
6581
6657
|
let _headers = {};
|
|
6582
6658
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6611,7 +6687,7 @@ export class Client {
|
|
|
6611
6687
|
* @param id The Webhooks ID.
|
|
6612
6688
|
* @return The Webhook was deleted.
|
|
6613
6689
|
*/
|
|
6614
|
-
|
|
6690
|
+
deleteWebhook(id) {
|
|
6615
6691
|
let url_ = this.baseUrl + "/primary/v1/webhook/{id}";
|
|
6616
6692
|
if (id === undefined || id === null)
|
|
6617
6693
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -6622,10 +6698,10 @@ export class Client {
|
|
|
6622
6698
|
headers: {}
|
|
6623
6699
|
};
|
|
6624
6700
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6625
|
-
return this.
|
|
6701
|
+
return this.processDeleteWebhook(_response);
|
|
6626
6702
|
});
|
|
6627
6703
|
}
|
|
6628
|
-
|
|
6704
|
+
processDeleteWebhook(response) {
|
|
6629
6705
|
const status = response.status;
|
|
6630
6706
|
let _headers = {};
|
|
6631
6707
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6679,7 +6755,7 @@ export class Client {
|
|
|
6679
6755
|
* @param deliveryStatus (optional) Optional filter by delivery status.
|
|
6680
6756
|
* @return Returns a list of Webhook Events.
|
|
6681
6757
|
*/
|
|
6682
|
-
|
|
6758
|
+
getAllWebhookEvents(id, from, to, page, pageSize, sortOrder, eventType, deliveryStatus) {
|
|
6683
6759
|
let url_ = this.baseUrl + "/primary/v1/webhook/{id}/events?";
|
|
6684
6760
|
if (id === undefined || id === null)
|
|
6685
6761
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -6720,10 +6796,10 @@ export class Client {
|
|
|
6720
6796
|
}
|
|
6721
6797
|
};
|
|
6722
6798
|
return this.http.fetch(url_, options_).then((_response) => {
|
|
6723
|
-
return this.
|
|
6799
|
+
return this.processGetAllWebhookEvents(_response);
|
|
6724
6800
|
});
|
|
6725
6801
|
}
|
|
6726
|
-
|
|
6802
|
+
processGetAllWebhookEvents(response) {
|
|
6727
6803
|
const status = response.status;
|
|
6728
6804
|
let _headers = {};
|
|
6729
6805
|
if (response.headers && response.headers.forEach) {
|