@monarkmarkets/api-client 1.1.98 → 1.1.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Client.d.ts CHANGED
@@ -292,7 +292,7 @@ export declare class Client {
292
292
  complete(id: string): Promise<void>;
293
293
  protected processComplete(response: Response): Promise<void>;
294
294
  /**
295
- * Gets a NPM mutual fund mark by ID for a specific financial institution.
295
+ * Gets an NPM mutual fund mark by ID for a specific financial institution.
296
296
  * @param id The NPM mutual fund mark ID.
297
297
  * @param financialInstitutionId The financial institution ID.
298
298
  * @return OK
@@ -313,6 +313,29 @@ export declare class Client {
313
313
  */
314
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
315
  protected processGetAllNpmMutualFundMarks(response: Response): Promise<NpmMutualFundMarkApiResponse>;
316
+ /**
317
+ * Gets an NPM Tape D Prices Full History record by ID for a specific financial institution.
318
+ * @param id The NPM Tape D Prices Full History record ID.
319
+ * @param financialInstitutionId The financial institution ID.
320
+ * @return OK
321
+ */
322
+ getNpmTapeDPricesFullHistoryById(id: string, financialInstitutionId: string): Promise<NpmTapeDPricesFullHistory>;
323
+ protected processGetNpmTapeDPricesFullHistoryById(response: Response): Promise<NpmTapeDPricesFullHistory>;
324
+ /**
325
+ * Gets all NPM Tape D Prices Full History records for a specific financial institution.
326
+ * @param financialInstitutionId The financial institution ID.
327
+ * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
328
+ * @param npmTicker (optional) Optional filter by NPM ticker.
329
+ * @param companyName (optional) Optional filter by company name.
330
+ * @param lastRoundValuation (optional) Optional valuation of Company at Last Round.
331
+ * @param dateOfPricingFrom (optional) Optional filter by date of pricing from.
332
+ * @param dateOfPricingTo (optional) Optional filter by date of pricing to.
333
+ * @param pageNumber (optional) Page number for pagination.
334
+ * @param pageSize (optional) Page size for pagination.
335
+ * @return OK
336
+ */
337
+ getAllNpmTapeDPricesFullHistory(financialInstitutionId: string, preIPOCompanyId: string | undefined, npmTicker: string | undefined, companyName: string | undefined, lastRoundValuation: number | undefined, dateOfPricingFrom: Date | undefined, dateOfPricingTo: Date | undefined, pageNumber: number | undefined, pageSize: number | undefined): Promise<NpmTapeDPricesFullHistoryApiResponse>;
338
+ protected processGetAllNpmTapeDPricesFullHistory(response: Response): Promise<NpmTapeDPricesFullHistoryApiResponse>;
316
339
  /**
317
340
  * Get the Partner of the authenticated user.
318
341
  * @return Returns the Partner with the specified Id.
@@ -2216,11 +2239,11 @@ export interface INAVReport {
2216
2239
  /** Net Asset Value as of the reported date */
2217
2240
  nav: number;
2218
2241
  }
2219
- /** Represents a NPM mutual fund mark (NPM/MFM). */
2242
+ /** Represents an NPM mutual fund mark (NPM/MFM). */
2220
2243
  export declare class NpmMutualFundMark implements INpmMutualFundMark {
2221
2244
  /** Unique identification number for NPM mutual fund mark. */
2222
2245
  id: string;
2223
- /** The unique ID of the PreIPOCompany associated with a NPM mutual fund mark. */
2246
+ /** The unique ID of the PreIPOCompany associated with an NPM mutual fund mark. */
2224
2247
  preIPOCompanyId: string;
2225
2248
  /** Unique NPM mutual fund mark ID. */
2226
2249
  recordId: number;
@@ -2257,11 +2280,11 @@ export declare class NpmMutualFundMark implements INpmMutualFundMark {
2257
2280
  static fromJS(data: any): NpmMutualFundMark;
2258
2281
  toJSON(data?: any): any;
2259
2282
  }
2260
- /** Represents a NPM mutual fund mark (NPM/MFM). */
2283
+ /** Represents an NPM mutual fund mark (NPM/MFM). */
2261
2284
  export interface INpmMutualFundMark {
2262
2285
  /** Unique identification number for NPM mutual fund mark. */
2263
2286
  id: string;
2264
- /** The unique ID of the PreIPOCompany associated with a NPM mutual fund mark. */
2287
+ /** The unique ID of the PreIPOCompany associated with an NPM mutual fund mark. */
2265
2288
  preIPOCompanyId: string;
2266
2289
  /** Unique NPM mutual fund mark ID. */
2267
2290
  recordId: number;
@@ -2306,6 +2329,126 @@ export interface INpmMutualFundMarkApiResponse {
2306
2329
  items?: NpmMutualFundMark[] | undefined;
2307
2330
  pagination?: Pagination | undefined;
2308
2331
  }
2332
+ /** Represents an NPM Tape D Prices Full History record (NPM/TAPED). Contains historical Tape D price estimates with confidence intervals and comparisons to last funding rounds. Tape D prices provide algorithmic valuation estimates based on secondary market trading data and comparable company analysis. */
2333
+ export declare class NpmTapeDPricesFullHistory implements INpmTapeDPricesFullHistory {
2334
+ /** Unique identification number for NPM Tape D prices full history record. */
2335
+ id: string;
2336
+ /** The unique ID of the PreIPOCompany associated with the Tape D price record. */
2337
+ preIPOCompanyId: string;
2338
+ /** Name of Company. */
2339
+ companyName: string | undefined;
2340
+ /** Unique Company ID. */
2341
+ npmTicker: string | undefined;
2342
+ /** Date of Tape D Price Estimate (YYYY-MM-DD). */
2343
+ dateOfPricing: Date;
2344
+ /** Tape D Price Estimate per share.
2345
+ This is the primary algorithmic valuation estimate for the company's share price. */
2346
+ pricePerShareEstimate: number;
2347
+ /** Tape D Implied Valuation of the company.
2348
+ Total company valuation based on the price per share estimate. */
2349
+ impliedValuationEstimate?: number | undefined;
2350
+ /** Premium or Discount of Tape D Price Estimate relative to last funding round.
2351
+ Positive values indicate premium, negative values indicate discount. */
2352
+ discountPremiumEstimate?: number | undefined;
2353
+ /** Low Estimate of Tape D Price (95% Confidence Interval) per share.
2354
+ Lower bound of the confidence interval for price estimation. */
2355
+ pricePerShareLow?: number | undefined;
2356
+ /** Implied Valuation of Low Estimate.
2357
+ Total company valuation based on the low estimate price per share. */
2358
+ impliedValuationLow?: number | undefined;
2359
+ /** Premium or Discount of Low Estimate vs Last Round.
2360
+ Comparison of low estimate to last funding round price. */
2361
+ discountPremiumLow?: number | undefined;
2362
+ /** High Estimate of Tape D Price (95% Confidence Interval) per share.
2363
+ Upper bound of the confidence interval for price estimation. */
2364
+ pricePerShareHigh?: number | undefined;
2365
+ /** Implied Valuation of High Estimate.
2366
+ Total company valuation based on the high estimate price per share. */
2367
+ impliedValuationHigh?: number | undefined;
2368
+ /** Premium or Discount of High Estimate vs Last Round.
2369
+ Comparison of high estimate to last funding round price. */
2370
+ discountPremiumHigh?: number | undefined;
2371
+ /** Last Round Price Per Share used for comparison.
2372
+ Reference price from the company's most recent funding round. */
2373
+ lastRoundPricePerShare?: number | undefined;
2374
+ /** Valuation of Company at Last Round.
2375
+ Company valuation from the most recent funding round. */
2376
+ lastRoundValuation?: number | undefined;
2377
+ /** Date of Last Round (YYYY-MM-DD).
2378
+ Date when the last funding round occurred. */
2379
+ lastRoundDateOfValuation?: Date | undefined;
2380
+ /** Name Of Last Round funding event.
2381
+ Description or series name of the last funding round (e.g., "Series A", "Series B"). */
2382
+ lastRoundName?: string | undefined;
2383
+ constructor(data?: INpmTapeDPricesFullHistory);
2384
+ init(_data?: any): void;
2385
+ static fromJS(data: any): NpmTapeDPricesFullHistory;
2386
+ toJSON(data?: any): any;
2387
+ }
2388
+ /** Represents an NPM Tape D Prices Full History record (NPM/TAPED). Contains historical Tape D price estimates with confidence intervals and comparisons to last funding rounds. Tape D prices provide algorithmic valuation estimates based on secondary market trading data and comparable company analysis. */
2389
+ export interface INpmTapeDPricesFullHistory {
2390
+ /** Unique identification number for NPM Tape D prices full history record. */
2391
+ id: string;
2392
+ /** The unique ID of the PreIPOCompany associated with the Tape D price record. */
2393
+ preIPOCompanyId: string;
2394
+ /** Name of Company. */
2395
+ companyName: string | undefined;
2396
+ /** Unique Company ID. */
2397
+ npmTicker: string | undefined;
2398
+ /** Date of Tape D Price Estimate (YYYY-MM-DD). */
2399
+ dateOfPricing: Date;
2400
+ /** Tape D Price Estimate per share.
2401
+ This is the primary algorithmic valuation estimate for the company's share price. */
2402
+ pricePerShareEstimate: number;
2403
+ /** Tape D Implied Valuation of the company.
2404
+ Total company valuation based on the price per share estimate. */
2405
+ impliedValuationEstimate?: number | undefined;
2406
+ /** Premium or Discount of Tape D Price Estimate relative to last funding round.
2407
+ Positive values indicate premium, negative values indicate discount. */
2408
+ discountPremiumEstimate?: number | undefined;
2409
+ /** Low Estimate of Tape D Price (95% Confidence Interval) per share.
2410
+ Lower bound of the confidence interval for price estimation. */
2411
+ pricePerShareLow?: number | undefined;
2412
+ /** Implied Valuation of Low Estimate.
2413
+ Total company valuation based on the low estimate price per share. */
2414
+ impliedValuationLow?: number | undefined;
2415
+ /** Premium or Discount of Low Estimate vs Last Round.
2416
+ Comparison of low estimate to last funding round price. */
2417
+ discountPremiumLow?: number | undefined;
2418
+ /** High Estimate of Tape D Price (95% Confidence Interval) per share.
2419
+ Upper bound of the confidence interval for price estimation. */
2420
+ pricePerShareHigh?: number | undefined;
2421
+ /** Implied Valuation of High Estimate.
2422
+ Total company valuation based on the high estimate price per share. */
2423
+ impliedValuationHigh?: number | undefined;
2424
+ /** Premium or Discount of High Estimate vs Last Round.
2425
+ Comparison of high estimate to last funding round price. */
2426
+ discountPremiumHigh?: number | undefined;
2427
+ /** Last Round Price Per Share used for comparison.
2428
+ Reference price from the company's most recent funding round. */
2429
+ lastRoundPricePerShare?: number | undefined;
2430
+ /** Valuation of Company at Last Round.
2431
+ Company valuation from the most recent funding round. */
2432
+ lastRoundValuation?: number | undefined;
2433
+ /** Date of Last Round (YYYY-MM-DD).
2434
+ Date when the last funding round occurred. */
2435
+ lastRoundDateOfValuation?: Date | undefined;
2436
+ /** Name Of Last Round funding event.
2437
+ Description or series name of the last funding round (e.g., "Series A", "Series B"). */
2438
+ lastRoundName?: string | undefined;
2439
+ }
2440
+ export declare class NpmTapeDPricesFullHistoryApiResponse implements INpmTapeDPricesFullHistoryApiResponse {
2441
+ items?: NpmTapeDPricesFullHistory[] | undefined;
2442
+ pagination?: Pagination | undefined;
2443
+ constructor(data?: INpmTapeDPricesFullHistoryApiResponse);
2444
+ init(_data?: any): void;
2445
+ static fromJS(data: any): NpmTapeDPricesFullHistoryApiResponse;
2446
+ toJSON(data?: any): any;
2447
+ }
2448
+ export interface INpmTapeDPricesFullHistoryApiResponse {
2449
+ items?: NpmTapeDPricesFullHistory[] | undefined;
2450
+ pagination?: Pagination | undefined;
2451
+ }
2309
2452
  export declare class Pagination implements IPagination {
2310
2453
  totalRecords?: number;
2311
2454
  totalPages?: number;
package/dist/Client.js CHANGED
@@ -2034,7 +2034,7 @@ export class Client {
2034
2034
  return Promise.resolve(null);
2035
2035
  }
2036
2036
  /**
2037
- * Gets a NPM mutual fund mark by ID for a specific financial institution.
2037
+ * Gets an NPM mutual fund mark by ID for a specific financial institution.
2038
2038
  * @param id The NPM mutual fund mark ID.
2039
2039
  * @param financialInstitutionId The financial institution ID.
2040
2040
  * @return OK
@@ -2198,6 +2198,176 @@ export class Client {
2198
2198
  }
2199
2199
  return Promise.resolve(null);
2200
2200
  }
2201
+ /**
2202
+ * Gets an NPM Tape D Prices Full History record by ID for a specific financial institution.
2203
+ * @param id The NPM Tape D Prices Full History record ID.
2204
+ * @param financialInstitutionId The financial institution ID.
2205
+ * @return OK
2206
+ */
2207
+ getNpmTapeDPricesFullHistoryById(id, financialInstitutionId) {
2208
+ let url_ = this.baseUrl + "/primary/v1/npm/tape-d-prices-full-history/{id}/financial-institution/{financialInstitutionId}";
2209
+ if (id === undefined || id === null)
2210
+ throw new Error("The parameter 'id' must be defined.");
2211
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2212
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
2213
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
2214
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
2215
+ url_ = url_.replace(/[?&]$/, "");
2216
+ let options_ = {
2217
+ method: "GET",
2218
+ headers: {
2219
+ "Accept": "application/json"
2220
+ }
2221
+ };
2222
+ return this.http.fetch(url_, options_).then((_response) => {
2223
+ return this.processGetNpmTapeDPricesFullHistoryById(_response);
2224
+ });
2225
+ }
2226
+ processGetNpmTapeDPricesFullHistoryById(response) {
2227
+ const status = response.status;
2228
+ let _headers = {};
2229
+ if (response.headers && response.headers.forEach) {
2230
+ response.headers.forEach((v, k) => _headers[k] = v);
2231
+ }
2232
+ ;
2233
+ if (status === 200) {
2234
+ return response.text().then((_responseText) => {
2235
+ let result200 = null;
2236
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2237
+ result200 = NpmTapeDPricesFullHistory.fromJS(resultData200);
2238
+ return result200;
2239
+ });
2240
+ }
2241
+ else if (status === 400) {
2242
+ return response.text().then((_responseText) => {
2243
+ let result400 = null;
2244
+ let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2245
+ result400 = ProblemDetails.fromJS(resultData400);
2246
+ return throwException("Bad Request", status, _responseText, _headers, result400);
2247
+ });
2248
+ }
2249
+ else if (status === 404) {
2250
+ return response.text().then((_responseText) => {
2251
+ let result404 = null;
2252
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2253
+ result404 = ProblemDetails.fromJS(resultData404);
2254
+ return throwException("Not Found", status, _responseText, _headers, result404);
2255
+ });
2256
+ }
2257
+ else if (status === 403) {
2258
+ return response.text().then((_responseText) => {
2259
+ let result403 = null;
2260
+ let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2261
+ result403 = ProblemDetails.fromJS(resultData403);
2262
+ return throwException("Forbidden", status, _responseText, _headers, result403);
2263
+ });
2264
+ }
2265
+ else if (status !== 200 && status !== 204) {
2266
+ return response.text().then((_responseText) => {
2267
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2268
+ });
2269
+ }
2270
+ return Promise.resolve(null);
2271
+ }
2272
+ /**
2273
+ * Gets all NPM Tape D Prices Full History records for a specific financial institution.
2274
+ * @param financialInstitutionId The financial institution ID.
2275
+ * @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
2276
+ * @param npmTicker (optional) Optional filter by NPM ticker.
2277
+ * @param companyName (optional) Optional filter by company name.
2278
+ * @param lastRoundValuation (optional) Optional valuation of Company at Last Round.
2279
+ * @param dateOfPricingFrom (optional) Optional filter by date of pricing from.
2280
+ * @param dateOfPricingTo (optional) Optional filter by date of pricing to.
2281
+ * @param pageNumber (optional) Page number for pagination.
2282
+ * @param pageSize (optional) Page size for pagination.
2283
+ * @return OK
2284
+ */
2285
+ getAllNpmTapeDPricesFullHistory(financialInstitutionId, preIPOCompanyId, npmTicker, companyName, lastRoundValuation, dateOfPricingFrom, dateOfPricingTo, pageNumber, pageSize) {
2286
+ let url_ = this.baseUrl + "/primary/v1/npm/tape-d-prices-full-history/financial-institution/{financialInstitutionId}?";
2287
+ if (financialInstitutionId === undefined || financialInstitutionId === null)
2288
+ throw new Error("The parameter 'financialInstitutionId' must be defined.");
2289
+ url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
2290
+ if (preIPOCompanyId === null)
2291
+ throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
2292
+ else if (preIPOCompanyId !== undefined)
2293
+ url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
2294
+ if (npmTicker === null)
2295
+ throw new Error("The parameter 'npmTicker' cannot be null.");
2296
+ else if (npmTicker !== undefined)
2297
+ url_ += "npmTicker=" + encodeURIComponent("" + npmTicker) + "&";
2298
+ if (companyName === null)
2299
+ throw new Error("The parameter 'companyName' cannot be null.");
2300
+ else if (companyName !== undefined)
2301
+ url_ += "companyName=" + encodeURIComponent("" + companyName) + "&";
2302
+ if (lastRoundValuation === null)
2303
+ throw new Error("The parameter 'lastRoundValuation' cannot be null.");
2304
+ else if (lastRoundValuation !== undefined)
2305
+ url_ += "lastRoundValuation=" + encodeURIComponent("" + lastRoundValuation) + "&";
2306
+ if (dateOfPricingFrom === null)
2307
+ throw new Error("The parameter 'dateOfPricingFrom' cannot be null.");
2308
+ else if (dateOfPricingFrom !== undefined)
2309
+ url_ += "dateOfPricingFrom=" + encodeURIComponent(dateOfPricingFrom ? "" + dateOfPricingFrom.toISOString() : "") + "&";
2310
+ if (dateOfPricingTo === null)
2311
+ throw new Error("The parameter 'dateOfPricingTo' cannot be null.");
2312
+ else if (dateOfPricingTo !== undefined)
2313
+ url_ += "dateOfPricingTo=" + encodeURIComponent(dateOfPricingTo ? "" + dateOfPricingTo.toISOString() : "") + "&";
2314
+ if (pageNumber === null)
2315
+ throw new Error("The parameter 'pageNumber' cannot be null.");
2316
+ else if (pageNumber !== undefined)
2317
+ url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
2318
+ if (pageSize === null)
2319
+ throw new Error("The parameter 'pageSize' cannot be null.");
2320
+ else if (pageSize !== undefined)
2321
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
2322
+ url_ = url_.replace(/[?&]$/, "");
2323
+ let options_ = {
2324
+ method: "GET",
2325
+ headers: {
2326
+ "Accept": "application/json"
2327
+ }
2328
+ };
2329
+ return this.http.fetch(url_, options_).then((_response) => {
2330
+ return this.processGetAllNpmTapeDPricesFullHistory(_response);
2331
+ });
2332
+ }
2333
+ processGetAllNpmTapeDPricesFullHistory(response) {
2334
+ const status = response.status;
2335
+ let _headers = {};
2336
+ if (response.headers && response.headers.forEach) {
2337
+ response.headers.forEach((v, k) => _headers[k] = v);
2338
+ }
2339
+ ;
2340
+ if (status === 200) {
2341
+ return response.text().then((_responseText) => {
2342
+ let result200 = null;
2343
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2344
+ result200 = NpmTapeDPricesFullHistoryApiResponse.fromJS(resultData200);
2345
+ return result200;
2346
+ });
2347
+ }
2348
+ else if (status === 400) {
2349
+ return response.text().then((_responseText) => {
2350
+ let result400 = null;
2351
+ let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2352
+ result400 = ProblemDetails.fromJS(resultData400);
2353
+ return throwException("Bad Request", status, _responseText, _headers, result400);
2354
+ });
2355
+ }
2356
+ else if (status === 404) {
2357
+ return response.text().then((_responseText) => {
2358
+ let result404 = null;
2359
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2360
+ result404 = ProblemDetails.fromJS(resultData404);
2361
+ return throwException("Not Found", status, _responseText, _headers, result404);
2362
+ });
2363
+ }
2364
+ else if (status !== 200 && status !== 204) {
2365
+ return response.text().then((_responseText) => {
2366
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2367
+ });
2368
+ }
2369
+ return Promise.resolve(null);
2370
+ }
2201
2371
  /**
2202
2372
  * Get the Partner of the authenticated user.
2203
2373
  * @return Returns the Partner with the specified Id.
@@ -5930,7 +6100,7 @@ export class NAVReport {
5930
6100
  return data;
5931
6101
  }
5932
6102
  }
5933
- /** Represents a NPM mutual fund mark (NPM/MFM). */
6103
+ /** Represents an NPM mutual fund mark (NPM/MFM). */
5934
6104
  export class NpmMutualFundMark {
5935
6105
  constructor(data) {
5936
6106
  if (data) {
@@ -6025,6 +6195,103 @@ export class NpmMutualFundMarkApiResponse {
6025
6195
  return data;
6026
6196
  }
6027
6197
  }
6198
+ /** Represents an NPM Tape D Prices Full History record (NPM/TAPED). Contains historical Tape D price estimates with confidence intervals and comparisons to last funding rounds. Tape D prices provide algorithmic valuation estimates based on secondary market trading data and comparable company analysis. */
6199
+ export class NpmTapeDPricesFullHistory {
6200
+ constructor(data) {
6201
+ if (data) {
6202
+ for (var property in data) {
6203
+ if (data.hasOwnProperty(property))
6204
+ this[property] = data[property];
6205
+ }
6206
+ }
6207
+ }
6208
+ init(_data) {
6209
+ if (_data) {
6210
+ this.id = _data["id"];
6211
+ this.preIPOCompanyId = _data["preIPOCompanyId"];
6212
+ this.companyName = _data["companyName"];
6213
+ this.npmTicker = _data["npmTicker"];
6214
+ this.dateOfPricing = _data["dateOfPricing"] ? new Date(_data["dateOfPricing"].toString()) : undefined;
6215
+ this.pricePerShareEstimate = _data["pricePerShareEstimate"];
6216
+ this.impliedValuationEstimate = _data["impliedValuationEstimate"];
6217
+ this.discountPremiumEstimate = _data["discountPremiumEstimate"];
6218
+ this.pricePerShareLow = _data["pricePerShareLow"];
6219
+ this.impliedValuationLow = _data["impliedValuationLow"];
6220
+ this.discountPremiumLow = _data["discountPremiumLow"];
6221
+ this.pricePerShareHigh = _data["pricePerShareHigh"];
6222
+ this.impliedValuationHigh = _data["impliedValuationHigh"];
6223
+ this.discountPremiumHigh = _data["discountPremiumHigh"];
6224
+ this.lastRoundPricePerShare = _data["lastRoundPricePerShare"];
6225
+ this.lastRoundValuation = _data["lastRoundValuation"];
6226
+ this.lastRoundDateOfValuation = _data["lastRoundDateOfValuation"] ? new Date(_data["lastRoundDateOfValuation"].toString()) : undefined;
6227
+ this.lastRoundName = _data["lastRoundName"];
6228
+ }
6229
+ }
6230
+ static fromJS(data) {
6231
+ data = typeof data === 'object' ? data : {};
6232
+ let result = new NpmTapeDPricesFullHistory();
6233
+ result.init(data);
6234
+ return result;
6235
+ }
6236
+ toJSON(data) {
6237
+ data = typeof data === 'object' ? data : {};
6238
+ data["id"] = this.id;
6239
+ data["preIPOCompanyId"] = this.preIPOCompanyId;
6240
+ data["companyName"] = this.companyName;
6241
+ data["npmTicker"] = this.npmTicker;
6242
+ data["dateOfPricing"] = this.dateOfPricing ? formatDate(this.dateOfPricing) : undefined;
6243
+ data["pricePerShareEstimate"] = this.pricePerShareEstimate;
6244
+ data["impliedValuationEstimate"] = this.impliedValuationEstimate;
6245
+ data["discountPremiumEstimate"] = this.discountPremiumEstimate;
6246
+ data["pricePerShareLow"] = this.pricePerShareLow;
6247
+ data["impliedValuationLow"] = this.impliedValuationLow;
6248
+ data["discountPremiumLow"] = this.discountPremiumLow;
6249
+ data["pricePerShareHigh"] = this.pricePerShareHigh;
6250
+ data["impliedValuationHigh"] = this.impliedValuationHigh;
6251
+ data["discountPremiumHigh"] = this.discountPremiumHigh;
6252
+ data["lastRoundPricePerShare"] = this.lastRoundPricePerShare;
6253
+ data["lastRoundValuation"] = this.lastRoundValuation;
6254
+ data["lastRoundDateOfValuation"] = this.lastRoundDateOfValuation ? formatDate(this.lastRoundDateOfValuation) : undefined;
6255
+ data["lastRoundName"] = this.lastRoundName;
6256
+ return data;
6257
+ }
6258
+ }
6259
+ export class NpmTapeDPricesFullHistoryApiResponse {
6260
+ constructor(data) {
6261
+ if (data) {
6262
+ for (var property in data) {
6263
+ if (data.hasOwnProperty(property))
6264
+ this[property] = data[property];
6265
+ }
6266
+ }
6267
+ }
6268
+ init(_data) {
6269
+ if (_data) {
6270
+ if (Array.isArray(_data["items"])) {
6271
+ this.items = [];
6272
+ for (let item of _data["items"])
6273
+ this.items.push(NpmTapeDPricesFullHistory.fromJS(item));
6274
+ }
6275
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
6276
+ }
6277
+ }
6278
+ static fromJS(data) {
6279
+ data = typeof data === 'object' ? data : {};
6280
+ let result = new NpmTapeDPricesFullHistoryApiResponse();
6281
+ result.init(data);
6282
+ return result;
6283
+ }
6284
+ toJSON(data) {
6285
+ data = typeof data === 'object' ? data : {};
6286
+ if (Array.isArray(this.items)) {
6287
+ data["items"] = [];
6288
+ for (let item of this.items)
6289
+ data["items"].push(item.toJSON());
6290
+ }
6291
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
6292
+ return data;
6293
+ }
6294
+ }
6028
6295
  export class Pagination {
6029
6296
  constructor(data) {
6030
6297
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monarkmarkets/api-client",
3
- "version": "1.1.98",
3
+ "version": "1.1.100",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",