@monarkmarkets/api-client 1.1.96 → 1.1.98
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 +138 -6
- package/dist/Client.js +294 -4
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -291,6 +291,28 @@ export declare class Client {
|
|
|
291
291
|
*/
|
|
292
292
|
complete(id: string): Promise<void>;
|
|
293
293
|
protected processComplete(response: Response): Promise<void>;
|
|
294
|
+
/**
|
|
295
|
+
* Gets a NPM mutual fund mark by ID for a specific financial institution.
|
|
296
|
+
* @param id The NPM mutual fund mark ID.
|
|
297
|
+
* @param financialInstitutionId The financial institution ID.
|
|
298
|
+
* @return OK
|
|
299
|
+
*/
|
|
300
|
+
getNpmMutualFundMarkById(id: string, financialInstitutionId: string): Promise<NpmMutualFundMark>;
|
|
301
|
+
protected processGetNpmMutualFundMarkById(response: Response): Promise<NpmMutualFundMark>;
|
|
302
|
+
/**
|
|
303
|
+
* Gets all NPM mutual fund marks for a specific financial institution.
|
|
304
|
+
* @param financialInstitutionId The financial institution ID.
|
|
305
|
+
* @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
|
|
306
|
+
* @param npmTicker (optional) Optional filter by NPM ticker.
|
|
307
|
+
* @param companyName (optional) Optional filter by company name.
|
|
308
|
+
* @param filingDateFrom (optional) Optional filter by filing date from.
|
|
309
|
+
* @param filingDateTo (optional) Optional filter by filing date to.
|
|
310
|
+
* @param pageNumber (optional) Page number for pagination.
|
|
311
|
+
* @param pageSize (optional) Page size for pagination.
|
|
312
|
+
* @return OK
|
|
313
|
+
*/
|
|
314
|
+
getAllNpmMutualFundMarks(financialInstitutionId: string, preIPOCompanyId: string | undefined, npmTicker: string | undefined, companyName: string | undefined, filingDateFrom: Date | undefined, filingDateTo: Date | undefined, pageNumber: number | undefined, pageSize: number | undefined): Promise<NpmMutualFundMarkApiResponse>;
|
|
315
|
+
protected processGetAllNpmMutualFundMarks(response: Response): Promise<NpmMutualFundMarkApiResponse>;
|
|
294
316
|
/**
|
|
295
317
|
* Get the Partner of the authenticated user.
|
|
296
318
|
* @return Returns the Partner with the specified Id.
|
|
@@ -747,6 +769,8 @@ If not provided, the default Financial Institution for the Partner will be used.
|
|
|
747
769
|
investorReferenceId: string;
|
|
748
770
|
/** Type of the Investor. */
|
|
749
771
|
type?: CreateInvestorType;
|
|
772
|
+
/** Optional Investor Pii, to create the complete investor in 1 call. */
|
|
773
|
+
pii?: InvestorPii | undefined;
|
|
750
774
|
constructor(data?: ICreateInvestor);
|
|
751
775
|
init(_data?: any): void;
|
|
752
776
|
static fromJS(data: any): CreateInvestor;
|
|
@@ -763,6 +787,8 @@ If not provided, the default Financial Institution for the Partner will be used.
|
|
|
763
787
|
investorReferenceId: string;
|
|
764
788
|
/** Type of the Investor. */
|
|
765
789
|
type?: CreateInvestorType;
|
|
790
|
+
/** Optional Investor Pii, to create the complete investor in 1 call. */
|
|
791
|
+
pii?: InvestorPii | undefined;
|
|
766
792
|
}
|
|
767
793
|
export declare class CreateInvestorSubscription implements ICreateInvestorSubscription {
|
|
768
794
|
/** The SPV ID that this Subscription relates to. */
|
|
@@ -1852,6 +1878,22 @@ export interface IInvestorApiResponse {
|
|
|
1852
1878
|
items?: Investor[] | undefined;
|
|
1853
1879
|
pagination?: Pagination | undefined;
|
|
1854
1880
|
}
|
|
1881
|
+
export declare class InvestorPii implements IInvestorPii {
|
|
1882
|
+
/** Information about the individual investor if this Investor is of that type. */
|
|
1883
|
+
individualInvestor?: ModifyIndividualInvestor | undefined;
|
|
1884
|
+
/** Information about the entity investor if this Investor is of that type. */
|
|
1885
|
+
entityInvestor?: UpdateEntityInvestor | undefined;
|
|
1886
|
+
constructor(data?: IInvestorPii);
|
|
1887
|
+
init(_data?: any): void;
|
|
1888
|
+
static fromJS(data: any): InvestorPii;
|
|
1889
|
+
toJSON(data?: any): any;
|
|
1890
|
+
}
|
|
1891
|
+
export interface IInvestorPii {
|
|
1892
|
+
/** Information about the individual investor if this Investor is of that type. */
|
|
1893
|
+
individualInvestor?: ModifyIndividualInvestor | undefined;
|
|
1894
|
+
/** Information about the entity investor if this Investor is of that type. */
|
|
1895
|
+
entityInvestor?: UpdateEntityInvestor | undefined;
|
|
1896
|
+
}
|
|
1855
1897
|
export declare class InvestorSubscription implements IInvestorSubscription {
|
|
1856
1898
|
/** Unique ID associated with an InvestorSubscription. */
|
|
1857
1899
|
id?: string;
|
|
@@ -2174,6 +2216,96 @@ export interface INAVReport {
|
|
|
2174
2216
|
/** Net Asset Value as of the reported date */
|
|
2175
2217
|
nav: number;
|
|
2176
2218
|
}
|
|
2219
|
+
/** Represents a NPM mutual fund mark (NPM/MFM). */
|
|
2220
|
+
export declare class NpmMutualFundMark implements INpmMutualFundMark {
|
|
2221
|
+
/** Unique identification number for NPM mutual fund mark. */
|
|
2222
|
+
id: string;
|
|
2223
|
+
/** The unique ID of the PreIPOCompany associated with a NPM mutual fund mark. */
|
|
2224
|
+
preIPOCompanyId: string;
|
|
2225
|
+
/** Unique NPM mutual fund mark ID. */
|
|
2226
|
+
recordId: number;
|
|
2227
|
+
/** Name of Company. */
|
|
2228
|
+
companyName: string | undefined;
|
|
2229
|
+
/** NPM Ticker. */
|
|
2230
|
+
npmTicker: string | undefined;
|
|
2231
|
+
/** Mutual Fund Parent Entity. */
|
|
2232
|
+
parentEntity?: string | undefined;
|
|
2233
|
+
/** Mutual Fund Series Name. */
|
|
2234
|
+
mutualFundName?: string | undefined;
|
|
2235
|
+
/** Type of Asset Owned by Fund. */
|
|
2236
|
+
assetType?: string | undefined;
|
|
2237
|
+
/** Date Mark was filed (YYYY-MM-DD). */
|
|
2238
|
+
filingDate: Date;
|
|
2239
|
+
/** Reporting Period of Mark (YYYY-MM-DD). */
|
|
2240
|
+
reportingPeriod?: Date | undefined;
|
|
2241
|
+
/** Price Per Share. */
|
|
2242
|
+
pricePerShare?: string | undefined;
|
|
2243
|
+
/** Premium or Discount in Price Per Share relative to last round of capital raise. */
|
|
2244
|
+
premiumOrDiscount?: number | undefined;
|
|
2245
|
+
/** Implied Valuation of Company. */
|
|
2246
|
+
impliedValuation?: number | undefined;
|
|
2247
|
+
/** Name of Last Round. */
|
|
2248
|
+
lastRoundName?: string | undefined;
|
|
2249
|
+
/** Last Round Price Per Share. */
|
|
2250
|
+
lastRoundPricePerShare?: number | undefined;
|
|
2251
|
+
/** Valuation of Company as of Last Round. */
|
|
2252
|
+
lastRoundValuation?: number | undefined;
|
|
2253
|
+
/** Date of Last Round (YYYY-MM-DD). */
|
|
2254
|
+
lastRoundDateOfValuation?: Date | undefined;
|
|
2255
|
+
constructor(data?: INpmMutualFundMark);
|
|
2256
|
+
init(_data?: any): void;
|
|
2257
|
+
static fromJS(data: any): NpmMutualFundMark;
|
|
2258
|
+
toJSON(data?: any): any;
|
|
2259
|
+
}
|
|
2260
|
+
/** Represents a NPM mutual fund mark (NPM/MFM). */
|
|
2261
|
+
export interface INpmMutualFundMark {
|
|
2262
|
+
/** Unique identification number for NPM mutual fund mark. */
|
|
2263
|
+
id: string;
|
|
2264
|
+
/** The unique ID of the PreIPOCompany associated with a NPM mutual fund mark. */
|
|
2265
|
+
preIPOCompanyId: string;
|
|
2266
|
+
/** Unique NPM mutual fund mark ID. */
|
|
2267
|
+
recordId: number;
|
|
2268
|
+
/** Name of Company. */
|
|
2269
|
+
companyName: string | undefined;
|
|
2270
|
+
/** NPM Ticker. */
|
|
2271
|
+
npmTicker: string | undefined;
|
|
2272
|
+
/** Mutual Fund Parent Entity. */
|
|
2273
|
+
parentEntity?: string | undefined;
|
|
2274
|
+
/** Mutual Fund Series Name. */
|
|
2275
|
+
mutualFundName?: string | undefined;
|
|
2276
|
+
/** Type of Asset Owned by Fund. */
|
|
2277
|
+
assetType?: string | undefined;
|
|
2278
|
+
/** Date Mark was filed (YYYY-MM-DD). */
|
|
2279
|
+
filingDate: Date;
|
|
2280
|
+
/** Reporting Period of Mark (YYYY-MM-DD). */
|
|
2281
|
+
reportingPeriod?: Date | undefined;
|
|
2282
|
+
/** Price Per Share. */
|
|
2283
|
+
pricePerShare?: string | undefined;
|
|
2284
|
+
/** Premium or Discount in Price Per Share relative to last round of capital raise. */
|
|
2285
|
+
premiumOrDiscount?: number | undefined;
|
|
2286
|
+
/** Implied Valuation of Company. */
|
|
2287
|
+
impliedValuation?: number | undefined;
|
|
2288
|
+
/** Name of Last Round. */
|
|
2289
|
+
lastRoundName?: string | undefined;
|
|
2290
|
+
/** Last Round Price Per Share. */
|
|
2291
|
+
lastRoundPricePerShare?: number | undefined;
|
|
2292
|
+
/** Valuation of Company as of Last Round. */
|
|
2293
|
+
lastRoundValuation?: number | undefined;
|
|
2294
|
+
/** Date of Last Round (YYYY-MM-DD). */
|
|
2295
|
+
lastRoundDateOfValuation?: Date | undefined;
|
|
2296
|
+
}
|
|
2297
|
+
export declare class NpmMutualFundMarkApiResponse implements INpmMutualFundMarkApiResponse {
|
|
2298
|
+
items?: NpmMutualFundMark[] | undefined;
|
|
2299
|
+
pagination?: Pagination | undefined;
|
|
2300
|
+
constructor(data?: INpmMutualFundMarkApiResponse);
|
|
2301
|
+
init(_data?: any): void;
|
|
2302
|
+
static fromJS(data: any): NpmMutualFundMarkApiResponse;
|
|
2303
|
+
toJSON(data?: any): any;
|
|
2304
|
+
}
|
|
2305
|
+
export interface INpmMutualFundMarkApiResponse {
|
|
2306
|
+
items?: NpmMutualFundMark[] | undefined;
|
|
2307
|
+
pagination?: Pagination | undefined;
|
|
2308
|
+
}
|
|
2177
2309
|
export declare class Pagination implements IPagination {
|
|
2178
2310
|
totalRecords?: number;
|
|
2179
2311
|
totalPages?: number;
|
|
@@ -3766,13 +3898,13 @@ https://github.com/country-regions/country-region-data/blob/master/data.json for
|
|
|
3766
3898
|
}
|
|
3767
3899
|
/** Create Investor represnts the information required to create the investor in the primary offering. */
|
|
3768
3900
|
export declare class UpdateInvestor implements IUpdateInvestor {
|
|
3769
|
-
id: string;
|
|
3770
|
-
/** Represents the unique ID provided by a Partner, used to identify an Investor. */
|
|
3771
|
-
investorReferenceId: string;
|
|
3772
3901
|
/** Information about the individual investor if this Investor is of that type. */
|
|
3773
3902
|
individualInvestor?: ModifyIndividualInvestor | undefined;
|
|
3774
3903
|
/** Information about the entity investor if this Investor is of that type. */
|
|
3775
3904
|
entityInvestor?: UpdateEntityInvestor | undefined;
|
|
3905
|
+
id: string;
|
|
3906
|
+
/** Represents the unique ID provided by a Partner, used to identify an Investor. */
|
|
3907
|
+
investorReferenceId?: string | undefined;
|
|
3776
3908
|
/** The Financial Advisor ID associated with the Investor. */
|
|
3777
3909
|
financialAdvisorId?: string | undefined;
|
|
3778
3910
|
constructor(data?: IUpdateInvestor);
|
|
@@ -3782,13 +3914,13 @@ export declare class UpdateInvestor implements IUpdateInvestor {
|
|
|
3782
3914
|
}
|
|
3783
3915
|
/** Create Investor represnts the information required to create the investor in the primary offering. */
|
|
3784
3916
|
export interface IUpdateInvestor {
|
|
3785
|
-
id: string;
|
|
3786
|
-
/** Represents the unique ID provided by a Partner, used to identify an Investor. */
|
|
3787
|
-
investorReferenceId: string;
|
|
3788
3917
|
/** Information about the individual investor if this Investor is of that type. */
|
|
3789
3918
|
individualInvestor?: ModifyIndividualInvestor | undefined;
|
|
3790
3919
|
/** Information about the entity investor if this Investor is of that type. */
|
|
3791
3920
|
entityInvestor?: UpdateEntityInvestor | undefined;
|
|
3921
|
+
id: string;
|
|
3922
|
+
/** Represents the unique ID provided by a Partner, used to identify an Investor. */
|
|
3923
|
+
investorReferenceId?: string | undefined;
|
|
3792
3924
|
/** The Financial Advisor ID associated with the Investor. */
|
|
3793
3925
|
financialAdvisorId?: string | undefined;
|
|
3794
3926
|
}
|
package/dist/Client.js
CHANGED
|
@@ -2033,6 +2033,171 @@ export class Client {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
return Promise.resolve(null);
|
|
2035
2035
|
}
|
|
2036
|
+
/**
|
|
2037
|
+
* Gets a NPM mutual fund mark by ID for a specific financial institution.
|
|
2038
|
+
* @param id The NPM mutual fund mark ID.
|
|
2039
|
+
* @param financialInstitutionId The financial institution ID.
|
|
2040
|
+
* @return OK
|
|
2041
|
+
*/
|
|
2042
|
+
getNpmMutualFundMarkById(id, financialInstitutionId) {
|
|
2043
|
+
let url_ = this.baseUrl + "/primary/v1/npm/tape-d-mutual-fund-marks/{id}/financial-institution/{financialInstitutionId}";
|
|
2044
|
+
if (id === undefined || id === null)
|
|
2045
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
2046
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2047
|
+
if (financialInstitutionId === undefined || financialInstitutionId === null)
|
|
2048
|
+
throw new Error("The parameter 'financialInstitutionId' must be defined.");
|
|
2049
|
+
url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
|
|
2050
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2051
|
+
let options_ = {
|
|
2052
|
+
method: "GET",
|
|
2053
|
+
headers: {
|
|
2054
|
+
"Accept": "application/json"
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
2058
|
+
return this.processGetNpmMutualFundMarkById(_response);
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
processGetNpmMutualFundMarkById(response) {
|
|
2062
|
+
const status = response.status;
|
|
2063
|
+
let _headers = {};
|
|
2064
|
+
if (response.headers && response.headers.forEach) {
|
|
2065
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2066
|
+
}
|
|
2067
|
+
;
|
|
2068
|
+
if (status === 200) {
|
|
2069
|
+
return response.text().then((_responseText) => {
|
|
2070
|
+
let result200 = null;
|
|
2071
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2072
|
+
result200 = NpmMutualFundMark.fromJS(resultData200);
|
|
2073
|
+
return result200;
|
|
2074
|
+
});
|
|
2075
|
+
}
|
|
2076
|
+
else if (status === 400) {
|
|
2077
|
+
return response.text().then((_responseText) => {
|
|
2078
|
+
let result400 = null;
|
|
2079
|
+
let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2080
|
+
result400 = ProblemDetails.fromJS(resultData400);
|
|
2081
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
2082
|
+
});
|
|
2083
|
+
}
|
|
2084
|
+
else if (status === 404) {
|
|
2085
|
+
return response.text().then((_responseText) => {
|
|
2086
|
+
let result404 = null;
|
|
2087
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2088
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
2089
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
2092
|
+
else if (status === 403) {
|
|
2093
|
+
return response.text().then((_responseText) => {
|
|
2094
|
+
let result403 = null;
|
|
2095
|
+
let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2096
|
+
result403 = ProblemDetails.fromJS(resultData403);
|
|
2097
|
+
return throwException("Forbidden", status, _responseText, _headers, result403);
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
else if (status !== 200 && status !== 204) {
|
|
2101
|
+
return response.text().then((_responseText) => {
|
|
2102
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2103
|
+
});
|
|
2104
|
+
}
|
|
2105
|
+
return Promise.resolve(null);
|
|
2106
|
+
}
|
|
2107
|
+
/**
|
|
2108
|
+
* Gets all NPM mutual fund marks for a specific financial institution.
|
|
2109
|
+
* @param financialInstitutionId The financial institution ID.
|
|
2110
|
+
* @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
|
|
2111
|
+
* @param npmTicker (optional) Optional filter by NPM ticker.
|
|
2112
|
+
* @param companyName (optional) Optional filter by company name.
|
|
2113
|
+
* @param filingDateFrom (optional) Optional filter by filing date from.
|
|
2114
|
+
* @param filingDateTo (optional) Optional filter by filing date to.
|
|
2115
|
+
* @param pageNumber (optional) Page number for pagination.
|
|
2116
|
+
* @param pageSize (optional) Page size for pagination.
|
|
2117
|
+
* @return OK
|
|
2118
|
+
*/
|
|
2119
|
+
getAllNpmMutualFundMarks(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, filingDateFrom, filingDateTo, pageNumber, pageSize) {
|
|
2120
|
+
let url_ = this.baseUrl + "/primary/v1/npm/tape-d-mutual-fund-marks/financial-institution/{financialInstitutionId}?";
|
|
2121
|
+
if (financialInstitutionId === undefined || financialInstitutionId === null)
|
|
2122
|
+
throw new Error("The parameter 'financialInstitutionId' must be defined.");
|
|
2123
|
+
url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
|
|
2124
|
+
if (preIPOCompanyId === null)
|
|
2125
|
+
throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
|
|
2126
|
+
else if (preIPOCompanyId !== undefined)
|
|
2127
|
+
url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
|
|
2128
|
+
if (npmTicker === null)
|
|
2129
|
+
throw new Error("The parameter 'npmTicker' cannot be null.");
|
|
2130
|
+
else if (npmTicker !== undefined)
|
|
2131
|
+
url_ += "npmTicker=" + encodeURIComponent("" + npmTicker) + "&";
|
|
2132
|
+
if (companyName === null)
|
|
2133
|
+
throw new Error("The parameter 'companyName' cannot be null.");
|
|
2134
|
+
else if (companyName !== undefined)
|
|
2135
|
+
url_ += "companyName=" + encodeURIComponent("" + companyName) + "&";
|
|
2136
|
+
if (filingDateFrom === null)
|
|
2137
|
+
throw new Error("The parameter 'filingDateFrom' cannot be null.");
|
|
2138
|
+
else if (filingDateFrom !== undefined)
|
|
2139
|
+
url_ += "filingDateFrom=" + encodeURIComponent(filingDateFrom ? "" + filingDateFrom.toISOString() : "") + "&";
|
|
2140
|
+
if (filingDateTo === null)
|
|
2141
|
+
throw new Error("The parameter 'filingDateTo' cannot be null.");
|
|
2142
|
+
else if (filingDateTo !== undefined)
|
|
2143
|
+
url_ += "filingDateTo=" + encodeURIComponent(filingDateTo ? "" + filingDateTo.toISOString() : "") + "&";
|
|
2144
|
+
if (pageNumber === null)
|
|
2145
|
+
throw new Error("The parameter 'pageNumber' cannot be null.");
|
|
2146
|
+
else if (pageNumber !== undefined)
|
|
2147
|
+
url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
|
|
2148
|
+
if (pageSize === null)
|
|
2149
|
+
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
2150
|
+
else if (pageSize !== undefined)
|
|
2151
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
2152
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2153
|
+
let options_ = {
|
|
2154
|
+
method: "GET",
|
|
2155
|
+
headers: {
|
|
2156
|
+
"Accept": "application/json"
|
|
2157
|
+
}
|
|
2158
|
+
};
|
|
2159
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
2160
|
+
return this.processGetAllNpmMutualFundMarks(_response);
|
|
2161
|
+
});
|
|
2162
|
+
}
|
|
2163
|
+
processGetAllNpmMutualFundMarks(response) {
|
|
2164
|
+
const status = response.status;
|
|
2165
|
+
let _headers = {};
|
|
2166
|
+
if (response.headers && response.headers.forEach) {
|
|
2167
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2168
|
+
}
|
|
2169
|
+
;
|
|
2170
|
+
if (status === 200) {
|
|
2171
|
+
return response.text().then((_responseText) => {
|
|
2172
|
+
let result200 = null;
|
|
2173
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2174
|
+
result200 = NpmMutualFundMarkApiResponse.fromJS(resultData200);
|
|
2175
|
+
return result200;
|
|
2176
|
+
});
|
|
2177
|
+
}
|
|
2178
|
+
else if (status === 400) {
|
|
2179
|
+
return response.text().then((_responseText) => {
|
|
2180
|
+
let result400 = null;
|
|
2181
|
+
let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2182
|
+
result400 = ProblemDetails.fromJS(resultData400);
|
|
2183
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
2184
|
+
});
|
|
2185
|
+
}
|
|
2186
|
+
else if (status === 404) {
|
|
2187
|
+
return response.text().then((_responseText) => {
|
|
2188
|
+
let result404 = null;
|
|
2189
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2190
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
2191
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2192
|
+
});
|
|
2193
|
+
}
|
|
2194
|
+
else if (status !== 200 && status !== 204) {
|
|
2195
|
+
return response.text().then((_responseText) => {
|
|
2196
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2197
|
+
});
|
|
2198
|
+
}
|
|
2199
|
+
return Promise.resolve(null);
|
|
2200
|
+
}
|
|
2036
2201
|
/**
|
|
2037
2202
|
* Get the Partner of the authenticated user.
|
|
2038
2203
|
* @return Returns the Partner with the specified Id.
|
|
@@ -4401,6 +4566,7 @@ export class CreateInvestor {
|
|
|
4401
4566
|
this.financialAdvisorId = _data["financialAdvisorId"];
|
|
4402
4567
|
this.investorReferenceId = _data["investorReferenceId"];
|
|
4403
4568
|
this.type = _data["type"];
|
|
4569
|
+
this.pii = _data["pii"] ? InvestorPii.fromJS(_data["pii"]) : undefined;
|
|
4404
4570
|
}
|
|
4405
4571
|
}
|
|
4406
4572
|
static fromJS(data) {
|
|
@@ -4415,6 +4581,7 @@ export class CreateInvestor {
|
|
|
4415
4581
|
data["financialAdvisorId"] = this.financialAdvisorId;
|
|
4416
4582
|
data["investorReferenceId"] = this.investorReferenceId;
|
|
4417
4583
|
data["type"] = this.type;
|
|
4584
|
+
data["pii"] = this.pii ? this.pii.toJSON() : undefined;
|
|
4418
4585
|
return data;
|
|
4419
4586
|
}
|
|
4420
4587
|
}
|
|
@@ -5427,6 +5594,34 @@ export class InvestorApiResponse {
|
|
|
5427
5594
|
return data;
|
|
5428
5595
|
}
|
|
5429
5596
|
}
|
|
5597
|
+
export class InvestorPii {
|
|
5598
|
+
constructor(data) {
|
|
5599
|
+
if (data) {
|
|
5600
|
+
for (var property in data) {
|
|
5601
|
+
if (data.hasOwnProperty(property))
|
|
5602
|
+
this[property] = data[property];
|
|
5603
|
+
}
|
|
5604
|
+
}
|
|
5605
|
+
}
|
|
5606
|
+
init(_data) {
|
|
5607
|
+
if (_data) {
|
|
5608
|
+
this.individualInvestor = _data["individualInvestor"] ? ModifyIndividualInvestor.fromJS(_data["individualInvestor"]) : undefined;
|
|
5609
|
+
this.entityInvestor = _data["entityInvestor"] ? UpdateEntityInvestor.fromJS(_data["entityInvestor"]) : undefined;
|
|
5610
|
+
}
|
|
5611
|
+
}
|
|
5612
|
+
static fromJS(data) {
|
|
5613
|
+
data = typeof data === 'object' ? data : {};
|
|
5614
|
+
let result = new InvestorPii();
|
|
5615
|
+
result.init(data);
|
|
5616
|
+
return result;
|
|
5617
|
+
}
|
|
5618
|
+
toJSON(data) {
|
|
5619
|
+
data = typeof data === 'object' ? data : {};
|
|
5620
|
+
data["individualInvestor"] = this.individualInvestor ? this.individualInvestor.toJSON() : undefined;
|
|
5621
|
+
data["entityInvestor"] = this.entityInvestor ? this.entityInvestor.toJSON() : undefined;
|
|
5622
|
+
return data;
|
|
5623
|
+
}
|
|
5624
|
+
}
|
|
5430
5625
|
export class InvestorSubscription {
|
|
5431
5626
|
constructor(data) {
|
|
5432
5627
|
if (data) {
|
|
@@ -5735,6 +5930,101 @@ export class NAVReport {
|
|
|
5735
5930
|
return data;
|
|
5736
5931
|
}
|
|
5737
5932
|
}
|
|
5933
|
+
/** Represents a NPM mutual fund mark (NPM/MFM). */
|
|
5934
|
+
export class NpmMutualFundMark {
|
|
5935
|
+
constructor(data) {
|
|
5936
|
+
if (data) {
|
|
5937
|
+
for (var property in data) {
|
|
5938
|
+
if (data.hasOwnProperty(property))
|
|
5939
|
+
this[property] = data[property];
|
|
5940
|
+
}
|
|
5941
|
+
}
|
|
5942
|
+
}
|
|
5943
|
+
init(_data) {
|
|
5944
|
+
if (_data) {
|
|
5945
|
+
this.id = _data["id"];
|
|
5946
|
+
this.preIPOCompanyId = _data["preIPOCompanyId"];
|
|
5947
|
+
this.recordId = _data["recordId"];
|
|
5948
|
+
this.companyName = _data["companyName"];
|
|
5949
|
+
this.npmTicker = _data["npmTicker"];
|
|
5950
|
+
this.parentEntity = _data["parentEntity"];
|
|
5951
|
+
this.mutualFundName = _data["mutualFundName"];
|
|
5952
|
+
this.assetType = _data["assetType"];
|
|
5953
|
+
this.filingDate = _data["filingDate"] ? new Date(_data["filingDate"].toString()) : undefined;
|
|
5954
|
+
this.reportingPeriod = _data["reportingPeriod"] ? new Date(_data["reportingPeriod"].toString()) : undefined;
|
|
5955
|
+
this.pricePerShare = _data["pricePerShare"];
|
|
5956
|
+
this.premiumOrDiscount = _data["premiumOrDiscount"];
|
|
5957
|
+
this.impliedValuation = _data["impliedValuation"];
|
|
5958
|
+
this.lastRoundName = _data["lastRoundName"];
|
|
5959
|
+
this.lastRoundPricePerShare = _data["lastRoundPricePerShare"];
|
|
5960
|
+
this.lastRoundValuation = _data["lastRoundValuation"];
|
|
5961
|
+
this.lastRoundDateOfValuation = _data["lastRoundDateOfValuation"] ? new Date(_data["lastRoundDateOfValuation"].toString()) : undefined;
|
|
5962
|
+
}
|
|
5963
|
+
}
|
|
5964
|
+
static fromJS(data) {
|
|
5965
|
+
data = typeof data === 'object' ? data : {};
|
|
5966
|
+
let result = new NpmMutualFundMark();
|
|
5967
|
+
result.init(data);
|
|
5968
|
+
return result;
|
|
5969
|
+
}
|
|
5970
|
+
toJSON(data) {
|
|
5971
|
+
data = typeof data === 'object' ? data : {};
|
|
5972
|
+
data["id"] = this.id;
|
|
5973
|
+
data["preIPOCompanyId"] = this.preIPOCompanyId;
|
|
5974
|
+
data["recordId"] = this.recordId;
|
|
5975
|
+
data["companyName"] = this.companyName;
|
|
5976
|
+
data["npmTicker"] = this.npmTicker;
|
|
5977
|
+
data["parentEntity"] = this.parentEntity;
|
|
5978
|
+
data["mutualFundName"] = this.mutualFundName;
|
|
5979
|
+
data["assetType"] = this.assetType;
|
|
5980
|
+
data["filingDate"] = this.filingDate ? formatDate(this.filingDate) : undefined;
|
|
5981
|
+
data["reportingPeriod"] = this.reportingPeriod ? formatDate(this.reportingPeriod) : undefined;
|
|
5982
|
+
data["pricePerShare"] = this.pricePerShare;
|
|
5983
|
+
data["premiumOrDiscount"] = this.premiumOrDiscount;
|
|
5984
|
+
data["impliedValuation"] = this.impliedValuation;
|
|
5985
|
+
data["lastRoundName"] = this.lastRoundName;
|
|
5986
|
+
data["lastRoundPricePerShare"] = this.lastRoundPricePerShare;
|
|
5987
|
+
data["lastRoundValuation"] = this.lastRoundValuation;
|
|
5988
|
+
data["lastRoundDateOfValuation"] = this.lastRoundDateOfValuation ? formatDate(this.lastRoundDateOfValuation) : undefined;
|
|
5989
|
+
return data;
|
|
5990
|
+
}
|
|
5991
|
+
}
|
|
5992
|
+
export class NpmMutualFundMarkApiResponse {
|
|
5993
|
+
constructor(data) {
|
|
5994
|
+
if (data) {
|
|
5995
|
+
for (var property in data) {
|
|
5996
|
+
if (data.hasOwnProperty(property))
|
|
5997
|
+
this[property] = data[property];
|
|
5998
|
+
}
|
|
5999
|
+
}
|
|
6000
|
+
}
|
|
6001
|
+
init(_data) {
|
|
6002
|
+
if (_data) {
|
|
6003
|
+
if (Array.isArray(_data["items"])) {
|
|
6004
|
+
this.items = [];
|
|
6005
|
+
for (let item of _data["items"])
|
|
6006
|
+
this.items.push(NpmMutualFundMark.fromJS(item));
|
|
6007
|
+
}
|
|
6008
|
+
this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
|
|
6009
|
+
}
|
|
6010
|
+
}
|
|
6011
|
+
static fromJS(data) {
|
|
6012
|
+
data = typeof data === 'object' ? data : {};
|
|
6013
|
+
let result = new NpmMutualFundMarkApiResponse();
|
|
6014
|
+
result.init(data);
|
|
6015
|
+
return result;
|
|
6016
|
+
}
|
|
6017
|
+
toJSON(data) {
|
|
6018
|
+
data = typeof data === 'object' ? data : {};
|
|
6019
|
+
if (Array.isArray(this.items)) {
|
|
6020
|
+
data["items"] = [];
|
|
6021
|
+
for (let item of this.items)
|
|
6022
|
+
data["items"].push(item.toJSON());
|
|
6023
|
+
}
|
|
6024
|
+
data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
|
|
6025
|
+
return data;
|
|
6026
|
+
}
|
|
6027
|
+
}
|
|
5738
6028
|
export class Pagination {
|
|
5739
6029
|
constructor(data) {
|
|
5740
6030
|
if (data) {
|
|
@@ -7465,10 +7755,10 @@ export class UpdateInvestor {
|
|
|
7465
7755
|
}
|
|
7466
7756
|
init(_data) {
|
|
7467
7757
|
if (_data) {
|
|
7468
|
-
this.id = _data["id"];
|
|
7469
|
-
this.investorReferenceId = _data["investorReferenceId"];
|
|
7470
7758
|
this.individualInvestor = _data["individualInvestor"] ? ModifyIndividualInvestor.fromJS(_data["individualInvestor"]) : undefined;
|
|
7471
7759
|
this.entityInvestor = _data["entityInvestor"] ? UpdateEntityInvestor.fromJS(_data["entityInvestor"]) : undefined;
|
|
7760
|
+
this.id = _data["id"];
|
|
7761
|
+
this.investorReferenceId = _data["investorReferenceId"];
|
|
7472
7762
|
this.financialAdvisorId = _data["financialAdvisorId"];
|
|
7473
7763
|
}
|
|
7474
7764
|
}
|
|
@@ -7480,10 +7770,10 @@ export class UpdateInvestor {
|
|
|
7480
7770
|
}
|
|
7481
7771
|
toJSON(data) {
|
|
7482
7772
|
data = typeof data === 'object' ? data : {};
|
|
7483
|
-
data["id"] = this.id;
|
|
7484
|
-
data["investorReferenceId"] = this.investorReferenceId;
|
|
7485
7773
|
data["individualInvestor"] = this.individualInvestor ? this.individualInvestor.toJSON() : undefined;
|
|
7486
7774
|
data["entityInvestor"] = this.entityInvestor ? this.entityInvestor.toJSON() : undefined;
|
|
7775
|
+
data["id"] = this.id;
|
|
7776
|
+
data["investorReferenceId"] = this.investorReferenceId;
|
|
7487
7777
|
data["financialAdvisorId"] = this.financialAdvisorId;
|
|
7488
7778
|
return data;
|
|
7489
7779
|
}
|