@monarkmarkets/api-client 1.1.113 → 1.1.114
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 +481 -0
- package/dist/Client.js +792 -0
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -455,6 +455,71 @@ export declare class Client {
|
|
|
455
455
|
*/
|
|
456
456
|
partner(): Promise<Partner>;
|
|
457
457
|
protected processPartner(response: Response): Promise<Partner>;
|
|
458
|
+
/**
|
|
459
|
+
* Gets a PMI feed pricing record by ID.
|
|
460
|
+
* @param id The PMI feed pricing ID.
|
|
461
|
+
* @param financialInstitutionId The financial institution ID.
|
|
462
|
+
* @return Returns the PmiFeedPricing with the specified Id.
|
|
463
|
+
*/
|
|
464
|
+
getPmiFeedPricingById(id: string, financialInstitutionId: string): Promise<PmiFeedPricing>;
|
|
465
|
+
protected processGetPmiFeedPricingById(response: Response): Promise<PmiFeedPricing>;
|
|
466
|
+
/**
|
|
467
|
+
* Gets all PMI feed pricing records with optional filtering.
|
|
468
|
+
* @param financialInstitutionId The financial institution ID.
|
|
469
|
+
* @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
|
|
470
|
+
* @param pmiId (optional) Optional filter by PMI Id.
|
|
471
|
+
* @param displayName (optional) Optional filter by Display Name.
|
|
472
|
+
* @param currency (optional) Optional filter by Currency (e.g., USD, EUR).
|
|
473
|
+
* @param fromDate (optional) Optional filter by minimum date (YYYY-MM-DD).
|
|
474
|
+
* @param toDate (optional) Optional filter by maximum date (YYYY-MM-DD).
|
|
475
|
+
* @param pageNumber (optional) Pagination page number.
|
|
476
|
+
* @param pageSize (optional) Pagination page size.
|
|
477
|
+
* @return Returns the list of PmiFeedPricing.
|
|
478
|
+
*/
|
|
479
|
+
getAllPmiFeedPricing(financialInstitutionId: string, preIPOCompanyId: string | undefined, pmiId: string | undefined, displayName: string | undefined, currency: string | undefined, fromDate: Date | undefined, toDate: Date | undefined, pageNumber: number | undefined, pageSize: number | undefined): Promise<PmiFeedPricingApiResponse>;
|
|
480
|
+
protected processGetAllPmiFeedPricing(response: Response): Promise<PmiFeedPricingApiResponse>;
|
|
481
|
+
/**
|
|
482
|
+
* Gets a PMI issuer record by ID.
|
|
483
|
+
* @param id The PMI issuer ID.
|
|
484
|
+
* @param financialInstitutionId The financial institution ID.
|
|
485
|
+
* @return Returns the PmiIssuer with the specified Id.
|
|
486
|
+
*/
|
|
487
|
+
getPmiIssuerById(id: string, financialInstitutionId: string): Promise<PmiIssuer>;
|
|
488
|
+
protected processGetPmiIssuerById(response: Response): Promise<PmiIssuer>;
|
|
489
|
+
/**
|
|
490
|
+
* Gets all PMI issuer records with optional filtering.
|
|
491
|
+
* @param financialInstitutionId The financial institution ID.
|
|
492
|
+
* @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
|
|
493
|
+
* @param infoId (optional) Optional filter by PMI Id.
|
|
494
|
+
* @param infoDisplayName (optional) Optional filter by Display Name.
|
|
495
|
+
* @param pageNumber (optional) Pagination page number.
|
|
496
|
+
* @param pageSize (optional) Pagination page size.
|
|
497
|
+
* @return Returns the list of PmiIssuer.
|
|
498
|
+
*/
|
|
499
|
+
getAllPmiIssuers(financialInstitutionId: string, preIPOCompanyId: string | undefined, infoId: string | undefined, infoDisplayName: string | undefined, pageNumber: number | undefined, pageSize: number | undefined): Promise<PmiIssuerApiResponse>;
|
|
500
|
+
protected processGetAllPmiIssuers(response: Response): Promise<PmiIssuerApiResponse>;
|
|
501
|
+
/**
|
|
502
|
+
* Gets a PMI valuation record by ID.
|
|
503
|
+
* @param id The PMI valuation ID.
|
|
504
|
+
* @param financialInstitutionId The financial institution ID.
|
|
505
|
+
* @return Returns the PmiValuation with the specified Id.
|
|
506
|
+
*/
|
|
507
|
+
getPmiValuationById(id: string, financialInstitutionId: string): Promise<PmiValuation>;
|
|
508
|
+
protected processGetPmiValuationById(response: Response): Promise<PmiValuation>;
|
|
509
|
+
/**
|
|
510
|
+
* Gets all PMI valuation records with optional filtering.
|
|
511
|
+
* @param financialInstitutionId The financial institution ID.
|
|
512
|
+
* @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
|
|
513
|
+
* @param pmiId (optional) Optional filter by PMI Id.
|
|
514
|
+
* @param displayName (optional) Optional filter by Display Name.
|
|
515
|
+
* @param fromDate (optional) Optional filter by minimum date (YYYY-MM-DD).
|
|
516
|
+
* @param toDate (optional) Optional filter by maximum date (YYYY-MM-DD).
|
|
517
|
+
* @param pageNumber (optional) Pagination page number.
|
|
518
|
+
* @param pageSize (optional) Pagination page size.
|
|
519
|
+
* @return Returns the list of PmiValuation.
|
|
520
|
+
*/
|
|
521
|
+
getAllPmiValuations(financialInstitutionId: string, preIPOCompanyId: string | undefined, pmiId: string | undefined, displayName: string | undefined, fromDate: Date | undefined, toDate: Date | undefined, pageNumber: number | undefined, pageSize: number | undefined): Promise<PmiValuationApiResponse>;
|
|
522
|
+
protected processGetAllPmiValuations(response: Response): Promise<PmiValuationApiResponse>;
|
|
458
523
|
/**
|
|
459
524
|
* Get a PreIPOCompany by Id
|
|
460
525
|
* @param id ID of the PreIPOCompany to find.
|
|
@@ -3426,6 +3491,422 @@ export interface IPartner {
|
|
|
3426
3491
|
all CRD numbers can be listed here. */
|
|
3427
3492
|
managerCRD?: string[] | undefined;
|
|
3428
3493
|
}
|
|
3494
|
+
/** Read model representing a PMI feed composite derived pricing record returned by the API. */
|
|
3495
|
+
export declare class PmiFeedPricing implements IPmiFeedPricing {
|
|
3496
|
+
/** Unique identifier of this record. */
|
|
3497
|
+
id: string;
|
|
3498
|
+
/** The unique ID of the PreIPOCompany associated with this record. */
|
|
3499
|
+
preIPOCompanyId: string;
|
|
3500
|
+
/** Date when data was updated by PMI. */
|
|
3501
|
+
pmiUpdatedAt?: Date | undefined;
|
|
3502
|
+
/** Unique ID given to each company by PMI - used as business key for upsert operations. */
|
|
3503
|
+
pmiId: string | undefined;
|
|
3504
|
+
/** Name commonly used by issuer. */
|
|
3505
|
+
displayName: string | undefined;
|
|
3506
|
+
/** Date of composite price. */
|
|
3507
|
+
date: Date;
|
|
3508
|
+
/** Composite price calculated from broker contributed data. */
|
|
3509
|
+
price?: number | undefined;
|
|
3510
|
+
derivedPrice?: number | undefined;
|
|
3511
|
+
/** Uses composite price when depth_90_day is 2+, otherwise uses derived price if available. */
|
|
3512
|
+
combinedPrice?: number | undefined;
|
|
3513
|
+
/** Composite price calculated from broker contributed data, unadjusted for splits. */
|
|
3514
|
+
unadjustedPrice?: number | undefined;
|
|
3515
|
+
unadjustedDerivedPrice?: number | undefined;
|
|
3516
|
+
/** Uses composite price when depth_90_day is 2+, otherwise uses derived price if available. Unadjusted for splits. */
|
|
3517
|
+
unadjustedCombinedPrice?: number | undefined;
|
|
3518
|
+
/** Number of transactions. */
|
|
3519
|
+
depth90Day?: number | undefined;
|
|
3520
|
+
/** Standard deviation within last 90 days of date or ingestion_date. */
|
|
3521
|
+
stdev90Day?: number | undefined;
|
|
3522
|
+
/** Standard deviation within last 5 days of date or ingestion_date. */
|
|
3523
|
+
stdevRecent5?: number | undefined;
|
|
3524
|
+
/** Volatility based on composite price within last 90 days of date or ingestion_date. */
|
|
3525
|
+
volatility90Day?: number | undefined;
|
|
3526
|
+
/** Volatility based on underlying contributions within last 90 days of date or ingestion_date. */
|
|
3527
|
+
underlyingVolatility90Day?: number | undefined;
|
|
3528
|
+
/** Total bid volume at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3529
|
+
bidVolume?: number | undefined;
|
|
3530
|
+
/** Total bid count at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3531
|
+
numberOfBids?: number | undefined;
|
|
3532
|
+
/** Total ask volume at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3533
|
+
askVolume?: number | undefined;
|
|
3534
|
+
/** Total ask count at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3535
|
+
numberOfAsks?: number | undefined;
|
|
3536
|
+
/** Total trade volume at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3537
|
+
tradeVolume?: number | undefined;
|
|
3538
|
+
/** Total trade count at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3539
|
+
numberOfTrades?: number | undefined;
|
|
3540
|
+
/** Type of currency such as EUR, AUD and USD. */
|
|
3541
|
+
currency?: string | undefined;
|
|
3542
|
+
constructor(data?: IPmiFeedPricing);
|
|
3543
|
+
init(_data?: any): void;
|
|
3544
|
+
static fromJS(data: any): PmiFeedPricing;
|
|
3545
|
+
toJSON(data?: any): any;
|
|
3546
|
+
}
|
|
3547
|
+
/** Read model representing a PMI feed composite derived pricing record returned by the API. */
|
|
3548
|
+
export interface IPmiFeedPricing {
|
|
3549
|
+
/** Unique identifier of this record. */
|
|
3550
|
+
id: string;
|
|
3551
|
+
/** The unique ID of the PreIPOCompany associated with this record. */
|
|
3552
|
+
preIPOCompanyId: string;
|
|
3553
|
+
/** Date when data was updated by PMI. */
|
|
3554
|
+
pmiUpdatedAt?: Date | undefined;
|
|
3555
|
+
/** Unique ID given to each company by PMI - used as business key for upsert operations. */
|
|
3556
|
+
pmiId: string | undefined;
|
|
3557
|
+
/** Name commonly used by issuer. */
|
|
3558
|
+
displayName: string | undefined;
|
|
3559
|
+
/** Date of composite price. */
|
|
3560
|
+
date: Date;
|
|
3561
|
+
/** Composite price calculated from broker contributed data. */
|
|
3562
|
+
price?: number | undefined;
|
|
3563
|
+
derivedPrice?: number | undefined;
|
|
3564
|
+
/** Uses composite price when depth_90_day is 2+, otherwise uses derived price if available. */
|
|
3565
|
+
combinedPrice?: number | undefined;
|
|
3566
|
+
/** Composite price calculated from broker contributed data, unadjusted for splits. */
|
|
3567
|
+
unadjustedPrice?: number | undefined;
|
|
3568
|
+
unadjustedDerivedPrice?: number | undefined;
|
|
3569
|
+
/** Uses composite price when depth_90_day is 2+, otherwise uses derived price if available. Unadjusted for splits. */
|
|
3570
|
+
unadjustedCombinedPrice?: number | undefined;
|
|
3571
|
+
/** Number of transactions. */
|
|
3572
|
+
depth90Day?: number | undefined;
|
|
3573
|
+
/** Standard deviation within last 90 days of date or ingestion_date. */
|
|
3574
|
+
stdev90Day?: number | undefined;
|
|
3575
|
+
/** Standard deviation within last 5 days of date or ingestion_date. */
|
|
3576
|
+
stdevRecent5?: number | undefined;
|
|
3577
|
+
/** Volatility based on composite price within last 90 days of date or ingestion_date. */
|
|
3578
|
+
volatility90Day?: number | undefined;
|
|
3579
|
+
/** Volatility based on underlying contributions within last 90 days of date or ingestion_date. */
|
|
3580
|
+
underlyingVolatility90Day?: number | undefined;
|
|
3581
|
+
/** Total bid volume at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3582
|
+
bidVolume?: number | undefined;
|
|
3583
|
+
/** Total bid count at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3584
|
+
numberOfBids?: number | undefined;
|
|
3585
|
+
/** Total ask volume at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3586
|
+
askVolume?: number | undefined;
|
|
3587
|
+
/** Total ask count at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3588
|
+
numberOfAsks?: number | undefined;
|
|
3589
|
+
/** Total trade volume at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3590
|
+
tradeVolume?: number | undefined;
|
|
3591
|
+
/** Total trade count at the end of month and if latest date then the last n days where n is the number of days in prior month. */
|
|
3592
|
+
numberOfTrades?: number | undefined;
|
|
3593
|
+
/** Type of currency such as EUR, AUD and USD. */
|
|
3594
|
+
currency?: string | undefined;
|
|
3595
|
+
}
|
|
3596
|
+
export declare class PmiFeedPricingApiResponse implements IPmiFeedPricingApiResponse {
|
|
3597
|
+
items?: PmiFeedPricing[] | undefined;
|
|
3598
|
+
pagination?: Pagination | undefined;
|
|
3599
|
+
constructor(data?: IPmiFeedPricingApiResponse);
|
|
3600
|
+
init(_data?: any): void;
|
|
3601
|
+
static fromJS(data: any): PmiFeedPricingApiResponse;
|
|
3602
|
+
toJSON(data?: any): any;
|
|
3603
|
+
}
|
|
3604
|
+
export interface IPmiFeedPricingApiResponse {
|
|
3605
|
+
items?: PmiFeedPricing[] | undefined;
|
|
3606
|
+
pagination?: Pagination | undefined;
|
|
3607
|
+
}
|
|
3608
|
+
/** Read model representing a PMI issuer record returned by the API. */
|
|
3609
|
+
export declare class PmiIssuer implements IPmiIssuer {
|
|
3610
|
+
/** Unique identifier of this record. */
|
|
3611
|
+
id: string;
|
|
3612
|
+
/** The unique ID of the PreIPOCompany associated with this record. */
|
|
3613
|
+
preIPOCompanyId: string;
|
|
3614
|
+
/** Date when data was updated by PMI. */
|
|
3615
|
+
pmiUpdatedAt?: Date | undefined;
|
|
3616
|
+
/** Unique ID given to each issuer by PMI - used as business key for upsert operations. */
|
|
3617
|
+
infoId: string | undefined;
|
|
3618
|
+
/** Name commonly used by issuer. */
|
|
3619
|
+
infoDisplayName: string | undefined;
|
|
3620
|
+
/** List of other names used by issuer (stored as JSON). */
|
|
3621
|
+
infoAksNamesJson?: string | undefined;
|
|
3622
|
+
/** Short description about the issuer. */
|
|
3623
|
+
infoDescription?: string | undefined;
|
|
3624
|
+
/** Website of the issuer. */
|
|
3625
|
+
infoUrl?: string | undefined;
|
|
3626
|
+
/** Headquarter address excluding the country. */
|
|
3627
|
+
infoHqAddress?: string | undefined;
|
|
3628
|
+
/** Country where headquarter is located. */
|
|
3629
|
+
infoHqCountry?: string | undefined;
|
|
3630
|
+
/** Year of incorporation or founding. */
|
|
3631
|
+
infoIncorporationDate?: number | undefined;
|
|
3632
|
+
/** Lower bound of number of employees. */
|
|
3633
|
+
infoNumberOfEmployees?: number | undefined;
|
|
3634
|
+
/** Share split date and ratio (stored as JSON list). */
|
|
3635
|
+
infoSplitsJson?: string | undefined;
|
|
3636
|
+
/** Dates the company went public, bankrupt, or was acquired (JSON list). */
|
|
3637
|
+
infoNotPrivateMarketDatesJson?: string | undefined;
|
|
3638
|
+
/** List of sectors the issuer falls into (JSON list). */
|
|
3639
|
+
infoSectorsJson?: string | undefined;
|
|
3640
|
+
/** Currency of the share pricing data collected. */
|
|
3641
|
+
infoCurrency?: string | undefined;
|
|
3642
|
+
/** Legal name of the issuer. */
|
|
3643
|
+
infoLegalName?: string | undefined;
|
|
3644
|
+
/** List of current CEOs (stored as JSON). */
|
|
3645
|
+
infoCeosJson?: string | undefined;
|
|
3646
|
+
/** Latest composite or derived price for the issuer. */
|
|
3647
|
+
pricePrice?: number | undefined;
|
|
3648
|
+
/** Whether the price is derived. */
|
|
3649
|
+
priceIsDerived?: boolean | undefined;
|
|
3650
|
+
/** Currency of the price. */
|
|
3651
|
+
priceCurrency?: string | undefined;
|
|
3652
|
+
/** Price year-to-date. */
|
|
3653
|
+
priceYtd?: number | undefined;
|
|
3654
|
+
/** ROI year-to-date. */
|
|
3655
|
+
priceYtdRoi?: number | undefined;
|
|
3656
|
+
/** Total bid volume within the last three months. */
|
|
3657
|
+
volumeThreeMonthsBid?: number | undefined;
|
|
3658
|
+
/** Total ask volume within the last three months. */
|
|
3659
|
+
volumeThreeMonthsAsk?: number | undefined;
|
|
3660
|
+
/** Total bid volume within the last six months. */
|
|
3661
|
+
volumeSixMonthsBid?: number | undefined;
|
|
3662
|
+
/** Total ask volume within the last six months. */
|
|
3663
|
+
volumeSixMonthsAsk?: number | undefined;
|
|
3664
|
+
/** Total year-to-date bid volume. */
|
|
3665
|
+
volumeYtdBid?: number | undefined;
|
|
3666
|
+
/** Total year-to-date ask volume. */
|
|
3667
|
+
volumeYtdAsk?: number | undefined;
|
|
3668
|
+
/** Total bid volume in the last year. */
|
|
3669
|
+
volumeYearBid?: number | undefined;
|
|
3670
|
+
/** Total ask volume in the last year. */
|
|
3671
|
+
volumeYearAsk?: number | undefined;
|
|
3672
|
+
/** Total bid volume in the last two years. */
|
|
3673
|
+
volumeTwoYearBid?: number | undefined;
|
|
3674
|
+
/** Total ask volume in the last two years. */
|
|
3675
|
+
volumeTwoYearAsk?: number | undefined;
|
|
3676
|
+
/** Current implied valuation based on latest filing. */
|
|
3677
|
+
valuationCurrentImpliedFiling?: number | undefined;
|
|
3678
|
+
/** Current implied valuation based on latest news. */
|
|
3679
|
+
valuationCurrentImpliedNews?: number | undefined;
|
|
3680
|
+
/** Date for current implied valuation. */
|
|
3681
|
+
valuationCurrentImpliedDate?: Date | undefined;
|
|
3682
|
+
/** Last round valuation from filings. */
|
|
3683
|
+
valuationLastRoundFiling?: number | undefined;
|
|
3684
|
+
/** Last round valuation from news. */
|
|
3685
|
+
valuationLastRoundNews?: number | undefined;
|
|
3686
|
+
/** Date for last round valuation. */
|
|
3687
|
+
valuationLastRoundDate?: Date | undefined;
|
|
3688
|
+
/** Share count from latest filing. */
|
|
3689
|
+
valuationShareCountFiling?: number | undefined;
|
|
3690
|
+
/** Share count from latest news. */
|
|
3691
|
+
valuationShareCountNews?: number | undefined;
|
|
3692
|
+
/** Date for share count data. */
|
|
3693
|
+
valuationShareCountDate?: Date | undefined;
|
|
3694
|
+
/** Share class of the last round. */
|
|
3695
|
+
valuationLastRoundShareClass?: string | undefined;
|
|
3696
|
+
/** Last round price per share. */
|
|
3697
|
+
valuationLastRoundPrice?: number | undefined;
|
|
3698
|
+
/** Change since last round in implied valuation. */
|
|
3699
|
+
valuationCurrentImpliedChangeSinceLastRound?: number | undefined;
|
|
3700
|
+
/** Latest revenue reported. */
|
|
3701
|
+
valuationLatestRevenue?: number | undefined;
|
|
3702
|
+
/** Percent change in latest revenue. */
|
|
3703
|
+
valuationLatestRevenuePercentChange?: number | undefined;
|
|
3704
|
+
/** Fiscal year of the latest revenue. */
|
|
3705
|
+
valuationLatestRevenueYear?: number | undefined;
|
|
3706
|
+
/** Currency of latest revenue. */
|
|
3707
|
+
valuationLatestRevenueCurrency?: string | undefined;
|
|
3708
|
+
/** Source of latest revenue data. */
|
|
3709
|
+
valuationLatestRevenueSource?: string | undefined;
|
|
3710
|
+
constructor(data?: IPmiIssuer);
|
|
3711
|
+
init(_data?: any): void;
|
|
3712
|
+
static fromJS(data: any): PmiIssuer;
|
|
3713
|
+
toJSON(data?: any): any;
|
|
3714
|
+
}
|
|
3715
|
+
/** Read model representing a PMI issuer record returned by the API. */
|
|
3716
|
+
export interface IPmiIssuer {
|
|
3717
|
+
/** Unique identifier of this record. */
|
|
3718
|
+
id: string;
|
|
3719
|
+
/** The unique ID of the PreIPOCompany associated with this record. */
|
|
3720
|
+
preIPOCompanyId: string;
|
|
3721
|
+
/** Date when data was updated by PMI. */
|
|
3722
|
+
pmiUpdatedAt?: Date | undefined;
|
|
3723
|
+
/** Unique ID given to each issuer by PMI - used as business key for upsert operations. */
|
|
3724
|
+
infoId: string | undefined;
|
|
3725
|
+
/** Name commonly used by issuer. */
|
|
3726
|
+
infoDisplayName: string | undefined;
|
|
3727
|
+
/** List of other names used by issuer (stored as JSON). */
|
|
3728
|
+
infoAksNamesJson?: string | undefined;
|
|
3729
|
+
/** Short description about the issuer. */
|
|
3730
|
+
infoDescription?: string | undefined;
|
|
3731
|
+
/** Website of the issuer. */
|
|
3732
|
+
infoUrl?: string | undefined;
|
|
3733
|
+
/** Headquarter address excluding the country. */
|
|
3734
|
+
infoHqAddress?: string | undefined;
|
|
3735
|
+
/** Country where headquarter is located. */
|
|
3736
|
+
infoHqCountry?: string | undefined;
|
|
3737
|
+
/** Year of incorporation or founding. */
|
|
3738
|
+
infoIncorporationDate?: number | undefined;
|
|
3739
|
+
/** Lower bound of number of employees. */
|
|
3740
|
+
infoNumberOfEmployees?: number | undefined;
|
|
3741
|
+
/** Share split date and ratio (stored as JSON list). */
|
|
3742
|
+
infoSplitsJson?: string | undefined;
|
|
3743
|
+
/** Dates the company went public, bankrupt, or was acquired (JSON list). */
|
|
3744
|
+
infoNotPrivateMarketDatesJson?: string | undefined;
|
|
3745
|
+
/** List of sectors the issuer falls into (JSON list). */
|
|
3746
|
+
infoSectorsJson?: string | undefined;
|
|
3747
|
+
/** Currency of the share pricing data collected. */
|
|
3748
|
+
infoCurrency?: string | undefined;
|
|
3749
|
+
/** Legal name of the issuer. */
|
|
3750
|
+
infoLegalName?: string | undefined;
|
|
3751
|
+
/** List of current CEOs (stored as JSON). */
|
|
3752
|
+
infoCeosJson?: string | undefined;
|
|
3753
|
+
/** Latest composite or derived price for the issuer. */
|
|
3754
|
+
pricePrice?: number | undefined;
|
|
3755
|
+
/** Whether the price is derived. */
|
|
3756
|
+
priceIsDerived?: boolean | undefined;
|
|
3757
|
+
/** Currency of the price. */
|
|
3758
|
+
priceCurrency?: string | undefined;
|
|
3759
|
+
/** Price year-to-date. */
|
|
3760
|
+
priceYtd?: number | undefined;
|
|
3761
|
+
/** ROI year-to-date. */
|
|
3762
|
+
priceYtdRoi?: number | undefined;
|
|
3763
|
+
/** Total bid volume within the last three months. */
|
|
3764
|
+
volumeThreeMonthsBid?: number | undefined;
|
|
3765
|
+
/** Total ask volume within the last three months. */
|
|
3766
|
+
volumeThreeMonthsAsk?: number | undefined;
|
|
3767
|
+
/** Total bid volume within the last six months. */
|
|
3768
|
+
volumeSixMonthsBid?: number | undefined;
|
|
3769
|
+
/** Total ask volume within the last six months. */
|
|
3770
|
+
volumeSixMonthsAsk?: number | undefined;
|
|
3771
|
+
/** Total year-to-date bid volume. */
|
|
3772
|
+
volumeYtdBid?: number | undefined;
|
|
3773
|
+
/** Total year-to-date ask volume. */
|
|
3774
|
+
volumeYtdAsk?: number | undefined;
|
|
3775
|
+
/** Total bid volume in the last year. */
|
|
3776
|
+
volumeYearBid?: number | undefined;
|
|
3777
|
+
/** Total ask volume in the last year. */
|
|
3778
|
+
volumeYearAsk?: number | undefined;
|
|
3779
|
+
/** Total bid volume in the last two years. */
|
|
3780
|
+
volumeTwoYearBid?: number | undefined;
|
|
3781
|
+
/** Total ask volume in the last two years. */
|
|
3782
|
+
volumeTwoYearAsk?: number | undefined;
|
|
3783
|
+
/** Current implied valuation based on latest filing. */
|
|
3784
|
+
valuationCurrentImpliedFiling?: number | undefined;
|
|
3785
|
+
/** Current implied valuation based on latest news. */
|
|
3786
|
+
valuationCurrentImpliedNews?: number | undefined;
|
|
3787
|
+
/** Date for current implied valuation. */
|
|
3788
|
+
valuationCurrentImpliedDate?: Date | undefined;
|
|
3789
|
+
/** Last round valuation from filings. */
|
|
3790
|
+
valuationLastRoundFiling?: number | undefined;
|
|
3791
|
+
/** Last round valuation from news. */
|
|
3792
|
+
valuationLastRoundNews?: number | undefined;
|
|
3793
|
+
/** Date for last round valuation. */
|
|
3794
|
+
valuationLastRoundDate?: Date | undefined;
|
|
3795
|
+
/** Share count from latest filing. */
|
|
3796
|
+
valuationShareCountFiling?: number | undefined;
|
|
3797
|
+
/** Share count from latest news. */
|
|
3798
|
+
valuationShareCountNews?: number | undefined;
|
|
3799
|
+
/** Date for share count data. */
|
|
3800
|
+
valuationShareCountDate?: Date | undefined;
|
|
3801
|
+
/** Share class of the last round. */
|
|
3802
|
+
valuationLastRoundShareClass?: string | undefined;
|
|
3803
|
+
/** Last round price per share. */
|
|
3804
|
+
valuationLastRoundPrice?: number | undefined;
|
|
3805
|
+
/** Change since last round in implied valuation. */
|
|
3806
|
+
valuationCurrentImpliedChangeSinceLastRound?: number | undefined;
|
|
3807
|
+
/** Latest revenue reported. */
|
|
3808
|
+
valuationLatestRevenue?: number | undefined;
|
|
3809
|
+
/** Percent change in latest revenue. */
|
|
3810
|
+
valuationLatestRevenuePercentChange?: number | undefined;
|
|
3811
|
+
/** Fiscal year of the latest revenue. */
|
|
3812
|
+
valuationLatestRevenueYear?: number | undefined;
|
|
3813
|
+
/** Currency of latest revenue. */
|
|
3814
|
+
valuationLatestRevenueCurrency?: string | undefined;
|
|
3815
|
+
/** Source of latest revenue data. */
|
|
3816
|
+
valuationLatestRevenueSource?: string | undefined;
|
|
3817
|
+
}
|
|
3818
|
+
export declare class PmiIssuerApiResponse implements IPmiIssuerApiResponse {
|
|
3819
|
+
items?: PmiIssuer[] | undefined;
|
|
3820
|
+
pagination?: Pagination | undefined;
|
|
3821
|
+
constructor(data?: IPmiIssuerApiResponse);
|
|
3822
|
+
init(_data?: any): void;
|
|
3823
|
+
static fromJS(data: any): PmiIssuerApiResponse;
|
|
3824
|
+
toJSON(data?: any): any;
|
|
3825
|
+
}
|
|
3826
|
+
export interface IPmiIssuerApiResponse {
|
|
3827
|
+
items?: PmiIssuer[] | undefined;
|
|
3828
|
+
pagination?: Pagination | undefined;
|
|
3829
|
+
}
|
|
3830
|
+
/** Read model representing a PMI valuation record returned by the API. */
|
|
3831
|
+
export declare class PmiValuation implements IPmiValuation {
|
|
3832
|
+
/** Unique identifier of this record. */
|
|
3833
|
+
id: string;
|
|
3834
|
+
/** The unique ID of the PreIPOCompany associated with this record. */
|
|
3835
|
+
preIPOCompanyId: string;
|
|
3836
|
+
/** Date when data was updated by PMI. */
|
|
3837
|
+
pmiUpdatedAt?: Date | undefined;
|
|
3838
|
+
/** Unique ID given to each issuer by PMI - used as business key for upsert operations. */
|
|
3839
|
+
pmiId: string | undefined;
|
|
3840
|
+
/** Name commonly used by issuer. */
|
|
3841
|
+
displayName: string | undefined;
|
|
3842
|
+
/** Date of funding round filing or PM Insight's implied valuation. */
|
|
3843
|
+
date: Date;
|
|
3844
|
+
/** Valuation in USD. */
|
|
3845
|
+
valuationUsd: number;
|
|
3846
|
+
/** The multiplier rate used to convert from base currency to USD (if base currency is non-USD). */
|
|
3847
|
+
currencyMultiplier?: number | undefined;
|
|
3848
|
+
/** Whether the valuation is for a funding round or implied using price (derived or composite),
|
|
3849
|
+
and funding round whether the share count used was from filing or news. */
|
|
3850
|
+
description?: string | undefined;
|
|
3851
|
+
/** The composite (depth 2+) or derived price (depth 1/0) used to produce the valuation, adjusted for splits. */
|
|
3852
|
+
splitAdjustedPriceUsd?: number | undefined;
|
|
3853
|
+
/** The share count used to produce the valuation, adjusted for splits. */
|
|
3854
|
+
splitAdjustedShareCount?: number | undefined;
|
|
3855
|
+
/** The composite (depth 2+) or derived price (depth 1/0) used to produce the valuation, not adjusted for splits. */
|
|
3856
|
+
unadjustedPriceUsd?: number | undefined;
|
|
3857
|
+
/** The share count used to produce the valuation, not adjusted for splits. */
|
|
3858
|
+
unadjustedShareCount?: number | undefined;
|
|
3859
|
+
/** The ratio of a share split, populating on the day a split occurs. */
|
|
3860
|
+
splitAtRatio?: number | undefined;
|
|
3861
|
+
constructor(data?: IPmiValuation);
|
|
3862
|
+
init(_data?: any): void;
|
|
3863
|
+
static fromJS(data: any): PmiValuation;
|
|
3864
|
+
toJSON(data?: any): any;
|
|
3865
|
+
}
|
|
3866
|
+
/** Read model representing a PMI valuation record returned by the API. */
|
|
3867
|
+
export interface IPmiValuation {
|
|
3868
|
+
/** Unique identifier of this record. */
|
|
3869
|
+
id: string;
|
|
3870
|
+
/** The unique ID of the PreIPOCompany associated with this record. */
|
|
3871
|
+
preIPOCompanyId: string;
|
|
3872
|
+
/** Date when data was updated by PMI. */
|
|
3873
|
+
pmiUpdatedAt?: Date | undefined;
|
|
3874
|
+
/** Unique ID given to each issuer by PMI - used as business key for upsert operations. */
|
|
3875
|
+
pmiId: string | undefined;
|
|
3876
|
+
/** Name commonly used by issuer. */
|
|
3877
|
+
displayName: string | undefined;
|
|
3878
|
+
/** Date of funding round filing or PM Insight's implied valuation. */
|
|
3879
|
+
date: Date;
|
|
3880
|
+
/** Valuation in USD. */
|
|
3881
|
+
valuationUsd: number;
|
|
3882
|
+
/** The multiplier rate used to convert from base currency to USD (if base currency is non-USD). */
|
|
3883
|
+
currencyMultiplier?: number | undefined;
|
|
3884
|
+
/** Whether the valuation is for a funding round or implied using price (derived or composite),
|
|
3885
|
+
and funding round whether the share count used was from filing or news. */
|
|
3886
|
+
description?: string | undefined;
|
|
3887
|
+
/** The composite (depth 2+) or derived price (depth 1/0) used to produce the valuation, adjusted for splits. */
|
|
3888
|
+
splitAdjustedPriceUsd?: number | undefined;
|
|
3889
|
+
/** The share count used to produce the valuation, adjusted for splits. */
|
|
3890
|
+
splitAdjustedShareCount?: number | undefined;
|
|
3891
|
+
/** The composite (depth 2+) or derived price (depth 1/0) used to produce the valuation, not adjusted for splits. */
|
|
3892
|
+
unadjustedPriceUsd?: number | undefined;
|
|
3893
|
+
/** The share count used to produce the valuation, not adjusted for splits. */
|
|
3894
|
+
unadjustedShareCount?: number | undefined;
|
|
3895
|
+
/** The ratio of a share split, populating on the day a split occurs. */
|
|
3896
|
+
splitAtRatio?: number | undefined;
|
|
3897
|
+
}
|
|
3898
|
+
export declare class PmiValuationApiResponse implements IPmiValuationApiResponse {
|
|
3899
|
+
items?: PmiValuation[] | undefined;
|
|
3900
|
+
pagination?: Pagination | undefined;
|
|
3901
|
+
constructor(data?: IPmiValuationApiResponse);
|
|
3902
|
+
init(_data?: any): void;
|
|
3903
|
+
static fromJS(data: any): PmiValuationApiResponse;
|
|
3904
|
+
toJSON(data?: any): any;
|
|
3905
|
+
}
|
|
3906
|
+
export interface IPmiValuationApiResponse {
|
|
3907
|
+
items?: PmiValuation[] | undefined;
|
|
3908
|
+
pagination?: Pagination | undefined;
|
|
3909
|
+
}
|
|
3429
3910
|
/** PreIPOCompany represents the public information we provide for a PreIPOCompany in the Primary Offering. */
|
|
3430
3911
|
export declare class PreIPOCompany implements IPreIPOCompany {
|
|
3431
3912
|
/** Unique ID associated with a PreIPOCompany. */
|
package/dist/Client.js
CHANGED
|
@@ -3142,6 +3142,439 @@ export class Client {
|
|
|
3142
3142
|
}
|
|
3143
3143
|
return Promise.resolve(null);
|
|
3144
3144
|
}
|
|
3145
|
+
/**
|
|
3146
|
+
* Gets a PMI feed pricing record by ID.
|
|
3147
|
+
* @param id The PMI feed pricing ID.
|
|
3148
|
+
* @param financialInstitutionId The financial institution ID.
|
|
3149
|
+
* @return Returns the PmiFeedPricing with the specified Id.
|
|
3150
|
+
*/
|
|
3151
|
+
getPmiFeedPricingById(id, financialInstitutionId) {
|
|
3152
|
+
let url_ = this.baseUrl + "/primary/v1/pmi/feed-pricing/{id}/financial-institution/{financialInstitutionId}";
|
|
3153
|
+
if (id === undefined || id === null)
|
|
3154
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3155
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3156
|
+
if (financialInstitutionId === undefined || financialInstitutionId === null)
|
|
3157
|
+
throw new Error("The parameter 'financialInstitutionId' must be defined.");
|
|
3158
|
+
url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
|
|
3159
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3160
|
+
let options_ = {
|
|
3161
|
+
method: "GET",
|
|
3162
|
+
headers: {
|
|
3163
|
+
"Accept": "application/json"
|
|
3164
|
+
}
|
|
3165
|
+
};
|
|
3166
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
3167
|
+
return this.processGetPmiFeedPricingById(_response);
|
|
3168
|
+
});
|
|
3169
|
+
}
|
|
3170
|
+
processGetPmiFeedPricingById(response) {
|
|
3171
|
+
const status = response.status;
|
|
3172
|
+
let _headers = {};
|
|
3173
|
+
if (response.headers && response.headers.forEach) {
|
|
3174
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3175
|
+
}
|
|
3176
|
+
;
|
|
3177
|
+
if (status === 200) {
|
|
3178
|
+
return response.text().then((_responseText) => {
|
|
3179
|
+
let result200 = null;
|
|
3180
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3181
|
+
result200 = PmiFeedPricing.fromJS(resultData200);
|
|
3182
|
+
return result200;
|
|
3183
|
+
});
|
|
3184
|
+
}
|
|
3185
|
+
else if (status === 404) {
|
|
3186
|
+
return response.text().then((_responseText) => {
|
|
3187
|
+
let result404 = null;
|
|
3188
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3189
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
3190
|
+
return throwException("PmiFeedPricing not found.", status, _responseText, _headers, result404);
|
|
3191
|
+
});
|
|
3192
|
+
}
|
|
3193
|
+
else if (status === 403) {
|
|
3194
|
+
return response.text().then((_responseText) => {
|
|
3195
|
+
let result403 = null;
|
|
3196
|
+
let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3197
|
+
result403 = ProblemDetails.fromJS(resultData403);
|
|
3198
|
+
return throwException("Access denied.", status, _responseText, _headers, result403);
|
|
3199
|
+
});
|
|
3200
|
+
}
|
|
3201
|
+
else if (status !== 200 && status !== 204) {
|
|
3202
|
+
return response.text().then((_responseText) => {
|
|
3203
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3204
|
+
});
|
|
3205
|
+
}
|
|
3206
|
+
return Promise.resolve(null);
|
|
3207
|
+
}
|
|
3208
|
+
/**
|
|
3209
|
+
* Gets all PMI feed pricing records with optional filtering.
|
|
3210
|
+
* @param financialInstitutionId The financial institution ID.
|
|
3211
|
+
* @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
|
|
3212
|
+
* @param pmiId (optional) Optional filter by PMI Id.
|
|
3213
|
+
* @param displayName (optional) Optional filter by Display Name.
|
|
3214
|
+
* @param currency (optional) Optional filter by Currency (e.g., USD, EUR).
|
|
3215
|
+
* @param fromDate (optional) Optional filter by minimum date (YYYY-MM-DD).
|
|
3216
|
+
* @param toDate (optional) Optional filter by maximum date (YYYY-MM-DD).
|
|
3217
|
+
* @param pageNumber (optional) Pagination page number.
|
|
3218
|
+
* @param pageSize (optional) Pagination page size.
|
|
3219
|
+
* @return Returns the list of PmiFeedPricing.
|
|
3220
|
+
*/
|
|
3221
|
+
getAllPmiFeedPricing(financialInstitutionId, preIPOCompanyId, pmiId, displayName, currency, fromDate, toDate, pageNumber, pageSize) {
|
|
3222
|
+
let url_ = this.baseUrl + "/primary/v1/pmi/feed-pricing/financial-institution/{financialInstitutionId}?";
|
|
3223
|
+
if (financialInstitutionId === undefined || financialInstitutionId === null)
|
|
3224
|
+
throw new Error("The parameter 'financialInstitutionId' must be defined.");
|
|
3225
|
+
url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
|
|
3226
|
+
if (preIPOCompanyId === null)
|
|
3227
|
+
throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
|
|
3228
|
+
else if (preIPOCompanyId !== undefined)
|
|
3229
|
+
url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
|
|
3230
|
+
if (pmiId === null)
|
|
3231
|
+
throw new Error("The parameter 'pmiId' cannot be null.");
|
|
3232
|
+
else if (pmiId !== undefined)
|
|
3233
|
+
url_ += "pmiId=" + encodeURIComponent("" + pmiId) + "&";
|
|
3234
|
+
if (displayName === null)
|
|
3235
|
+
throw new Error("The parameter 'displayName' cannot be null.");
|
|
3236
|
+
else if (displayName !== undefined)
|
|
3237
|
+
url_ += "displayName=" + encodeURIComponent("" + displayName) + "&";
|
|
3238
|
+
if (currency === null)
|
|
3239
|
+
throw new Error("The parameter 'currency' cannot be null.");
|
|
3240
|
+
else if (currency !== undefined)
|
|
3241
|
+
url_ += "currency=" + encodeURIComponent("" + currency) + "&";
|
|
3242
|
+
if (fromDate === null)
|
|
3243
|
+
throw new Error("The parameter 'fromDate' cannot be null.");
|
|
3244
|
+
else if (fromDate !== undefined)
|
|
3245
|
+
url_ += "fromDate=" + encodeURIComponent(fromDate ? "" + fromDate.toISOString() : "") + "&";
|
|
3246
|
+
if (toDate === null)
|
|
3247
|
+
throw new Error("The parameter 'toDate' cannot be null.");
|
|
3248
|
+
else if (toDate !== undefined)
|
|
3249
|
+
url_ += "toDate=" + encodeURIComponent(toDate ? "" + toDate.toISOString() : "") + "&";
|
|
3250
|
+
if (pageNumber === null)
|
|
3251
|
+
throw new Error("The parameter 'pageNumber' cannot be null.");
|
|
3252
|
+
else if (pageNumber !== undefined)
|
|
3253
|
+
url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
|
|
3254
|
+
if (pageSize === null)
|
|
3255
|
+
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
3256
|
+
else if (pageSize !== undefined)
|
|
3257
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
3258
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3259
|
+
let options_ = {
|
|
3260
|
+
method: "GET",
|
|
3261
|
+
headers: {
|
|
3262
|
+
"Accept": "application/json"
|
|
3263
|
+
}
|
|
3264
|
+
};
|
|
3265
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
3266
|
+
return this.processGetAllPmiFeedPricing(_response);
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3269
|
+
processGetAllPmiFeedPricing(response) {
|
|
3270
|
+
const status = response.status;
|
|
3271
|
+
let _headers = {};
|
|
3272
|
+
if (response.headers && response.headers.forEach) {
|
|
3273
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3274
|
+
}
|
|
3275
|
+
;
|
|
3276
|
+
if (status === 200) {
|
|
3277
|
+
return response.text().then((_responseText) => {
|
|
3278
|
+
let result200 = null;
|
|
3279
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3280
|
+
result200 = PmiFeedPricingApiResponse.fromJS(resultData200);
|
|
3281
|
+
return result200;
|
|
3282
|
+
});
|
|
3283
|
+
}
|
|
3284
|
+
else if (status === 403) {
|
|
3285
|
+
return response.text().then((_responseText) => {
|
|
3286
|
+
return throwException("Access denied.", status, _responseText, _headers);
|
|
3287
|
+
});
|
|
3288
|
+
}
|
|
3289
|
+
else if (status !== 200 && status !== 204) {
|
|
3290
|
+
return response.text().then((_responseText) => {
|
|
3291
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3292
|
+
});
|
|
3293
|
+
}
|
|
3294
|
+
return Promise.resolve(null);
|
|
3295
|
+
}
|
|
3296
|
+
/**
|
|
3297
|
+
* Gets a PMI issuer record by ID.
|
|
3298
|
+
* @param id The PMI issuer ID.
|
|
3299
|
+
* @param financialInstitutionId The financial institution ID.
|
|
3300
|
+
* @return Returns the PmiIssuer with the specified Id.
|
|
3301
|
+
*/
|
|
3302
|
+
getPmiIssuerById(id, financialInstitutionId) {
|
|
3303
|
+
let url_ = this.baseUrl + "/primary/v1/pmi/issuers/{id}/financial-institution/{financialInstitutionId}";
|
|
3304
|
+
if (id === undefined || id === null)
|
|
3305
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3306
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3307
|
+
if (financialInstitutionId === undefined || financialInstitutionId === null)
|
|
3308
|
+
throw new Error("The parameter 'financialInstitutionId' must be defined.");
|
|
3309
|
+
url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
|
|
3310
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3311
|
+
let options_ = {
|
|
3312
|
+
method: "GET",
|
|
3313
|
+
headers: {
|
|
3314
|
+
"Accept": "application/json"
|
|
3315
|
+
}
|
|
3316
|
+
};
|
|
3317
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
3318
|
+
return this.processGetPmiIssuerById(_response);
|
|
3319
|
+
});
|
|
3320
|
+
}
|
|
3321
|
+
processGetPmiIssuerById(response) {
|
|
3322
|
+
const status = response.status;
|
|
3323
|
+
let _headers = {};
|
|
3324
|
+
if (response.headers && response.headers.forEach) {
|
|
3325
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3326
|
+
}
|
|
3327
|
+
;
|
|
3328
|
+
if (status === 200) {
|
|
3329
|
+
return response.text().then((_responseText) => {
|
|
3330
|
+
let result200 = null;
|
|
3331
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3332
|
+
result200 = PmiIssuer.fromJS(resultData200);
|
|
3333
|
+
return result200;
|
|
3334
|
+
});
|
|
3335
|
+
}
|
|
3336
|
+
else if (status === 404) {
|
|
3337
|
+
return response.text().then((_responseText) => {
|
|
3338
|
+
let result404 = null;
|
|
3339
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3340
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
3341
|
+
return throwException("PmiIssuer not found.", status, _responseText, _headers, result404);
|
|
3342
|
+
});
|
|
3343
|
+
}
|
|
3344
|
+
else if (status === 403) {
|
|
3345
|
+
return response.text().then((_responseText) => {
|
|
3346
|
+
let result403 = null;
|
|
3347
|
+
let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3348
|
+
result403 = ProblemDetails.fromJS(resultData403);
|
|
3349
|
+
return throwException("Access denied.", status, _responseText, _headers, result403);
|
|
3350
|
+
});
|
|
3351
|
+
}
|
|
3352
|
+
else if (status !== 200 && status !== 204) {
|
|
3353
|
+
return response.text().then((_responseText) => {
|
|
3354
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3355
|
+
});
|
|
3356
|
+
}
|
|
3357
|
+
return Promise.resolve(null);
|
|
3358
|
+
}
|
|
3359
|
+
/**
|
|
3360
|
+
* Gets all PMI issuer records with optional filtering.
|
|
3361
|
+
* @param financialInstitutionId The financial institution ID.
|
|
3362
|
+
* @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
|
|
3363
|
+
* @param infoId (optional) Optional filter by PMI Id.
|
|
3364
|
+
* @param infoDisplayName (optional) Optional filter by Display Name.
|
|
3365
|
+
* @param pageNumber (optional) Pagination page number.
|
|
3366
|
+
* @param pageSize (optional) Pagination page size.
|
|
3367
|
+
* @return Returns the list of PmiIssuer.
|
|
3368
|
+
*/
|
|
3369
|
+
getAllPmiIssuers(financialInstitutionId, preIPOCompanyId, infoId, infoDisplayName, pageNumber, pageSize) {
|
|
3370
|
+
let url_ = this.baseUrl + "/primary/v1/pmi/issuers/financial-institution/{financialInstitutionId}?";
|
|
3371
|
+
if (financialInstitutionId === undefined || financialInstitutionId === null)
|
|
3372
|
+
throw new Error("The parameter 'financialInstitutionId' must be defined.");
|
|
3373
|
+
url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
|
|
3374
|
+
if (preIPOCompanyId === null)
|
|
3375
|
+
throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
|
|
3376
|
+
else if (preIPOCompanyId !== undefined)
|
|
3377
|
+
url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
|
|
3378
|
+
if (infoId === null)
|
|
3379
|
+
throw new Error("The parameter 'infoId' cannot be null.");
|
|
3380
|
+
else if (infoId !== undefined)
|
|
3381
|
+
url_ += "infoId=" + encodeURIComponent("" + infoId) + "&";
|
|
3382
|
+
if (infoDisplayName === null)
|
|
3383
|
+
throw new Error("The parameter 'infoDisplayName' cannot be null.");
|
|
3384
|
+
else if (infoDisplayName !== undefined)
|
|
3385
|
+
url_ += "infoDisplayName=" + encodeURIComponent("" + infoDisplayName) + "&";
|
|
3386
|
+
if (pageNumber === null)
|
|
3387
|
+
throw new Error("The parameter 'pageNumber' cannot be null.");
|
|
3388
|
+
else if (pageNumber !== undefined)
|
|
3389
|
+
url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
|
|
3390
|
+
if (pageSize === null)
|
|
3391
|
+
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
3392
|
+
else if (pageSize !== undefined)
|
|
3393
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
3394
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3395
|
+
let options_ = {
|
|
3396
|
+
method: "GET",
|
|
3397
|
+
headers: {
|
|
3398
|
+
"Accept": "application/json"
|
|
3399
|
+
}
|
|
3400
|
+
};
|
|
3401
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
3402
|
+
return this.processGetAllPmiIssuers(_response);
|
|
3403
|
+
});
|
|
3404
|
+
}
|
|
3405
|
+
processGetAllPmiIssuers(response) {
|
|
3406
|
+
const status = response.status;
|
|
3407
|
+
let _headers = {};
|
|
3408
|
+
if (response.headers && response.headers.forEach) {
|
|
3409
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3410
|
+
}
|
|
3411
|
+
;
|
|
3412
|
+
if (status === 200) {
|
|
3413
|
+
return response.text().then((_responseText) => {
|
|
3414
|
+
let result200 = null;
|
|
3415
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3416
|
+
result200 = PmiIssuerApiResponse.fromJS(resultData200);
|
|
3417
|
+
return result200;
|
|
3418
|
+
});
|
|
3419
|
+
}
|
|
3420
|
+
else if (status === 403) {
|
|
3421
|
+
return response.text().then((_responseText) => {
|
|
3422
|
+
return throwException("Access denied.", status, _responseText, _headers);
|
|
3423
|
+
});
|
|
3424
|
+
}
|
|
3425
|
+
else if (status !== 200 && status !== 204) {
|
|
3426
|
+
return response.text().then((_responseText) => {
|
|
3427
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3428
|
+
});
|
|
3429
|
+
}
|
|
3430
|
+
return Promise.resolve(null);
|
|
3431
|
+
}
|
|
3432
|
+
/**
|
|
3433
|
+
* Gets a PMI valuation record by ID.
|
|
3434
|
+
* @param id The PMI valuation ID.
|
|
3435
|
+
* @param financialInstitutionId The financial institution ID.
|
|
3436
|
+
* @return Returns the PmiValuation with the specified Id.
|
|
3437
|
+
*/
|
|
3438
|
+
getPmiValuationById(id, financialInstitutionId) {
|
|
3439
|
+
let url_ = this.baseUrl + "/primary/v1/pmi/valuations/{id}/financial-institution/{financialInstitutionId}";
|
|
3440
|
+
if (id === undefined || id === null)
|
|
3441
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3442
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3443
|
+
if (financialInstitutionId === undefined || financialInstitutionId === null)
|
|
3444
|
+
throw new Error("The parameter 'financialInstitutionId' must be defined.");
|
|
3445
|
+
url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
|
|
3446
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3447
|
+
let options_ = {
|
|
3448
|
+
method: "GET",
|
|
3449
|
+
headers: {
|
|
3450
|
+
"Accept": "application/json"
|
|
3451
|
+
}
|
|
3452
|
+
};
|
|
3453
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
3454
|
+
return this.processGetPmiValuationById(_response);
|
|
3455
|
+
});
|
|
3456
|
+
}
|
|
3457
|
+
processGetPmiValuationById(response) {
|
|
3458
|
+
const status = response.status;
|
|
3459
|
+
let _headers = {};
|
|
3460
|
+
if (response.headers && response.headers.forEach) {
|
|
3461
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3462
|
+
}
|
|
3463
|
+
;
|
|
3464
|
+
if (status === 200) {
|
|
3465
|
+
return response.text().then((_responseText) => {
|
|
3466
|
+
let result200 = null;
|
|
3467
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3468
|
+
result200 = PmiValuation.fromJS(resultData200);
|
|
3469
|
+
return result200;
|
|
3470
|
+
});
|
|
3471
|
+
}
|
|
3472
|
+
else if (status === 404) {
|
|
3473
|
+
return response.text().then((_responseText) => {
|
|
3474
|
+
let result404 = null;
|
|
3475
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3476
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
3477
|
+
return throwException("PmiValuation not found.", status, _responseText, _headers, result404);
|
|
3478
|
+
});
|
|
3479
|
+
}
|
|
3480
|
+
else if (status === 403) {
|
|
3481
|
+
return response.text().then((_responseText) => {
|
|
3482
|
+
let result403 = null;
|
|
3483
|
+
let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3484
|
+
result403 = ProblemDetails.fromJS(resultData403);
|
|
3485
|
+
return throwException("Access denied.", status, _responseText, _headers, result403);
|
|
3486
|
+
});
|
|
3487
|
+
}
|
|
3488
|
+
else if (status !== 200 && status !== 204) {
|
|
3489
|
+
return response.text().then((_responseText) => {
|
|
3490
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3491
|
+
});
|
|
3492
|
+
}
|
|
3493
|
+
return Promise.resolve(null);
|
|
3494
|
+
}
|
|
3495
|
+
/**
|
|
3496
|
+
* Gets all PMI valuation records with optional filtering.
|
|
3497
|
+
* @param financialInstitutionId The financial institution ID.
|
|
3498
|
+
* @param preIPOCompanyId (optional) Optional filter by PreIPO Company ID.
|
|
3499
|
+
* @param pmiId (optional) Optional filter by PMI Id.
|
|
3500
|
+
* @param displayName (optional) Optional filter by Display Name.
|
|
3501
|
+
* @param fromDate (optional) Optional filter by minimum date (YYYY-MM-DD).
|
|
3502
|
+
* @param toDate (optional) Optional filter by maximum date (YYYY-MM-DD).
|
|
3503
|
+
* @param pageNumber (optional) Pagination page number.
|
|
3504
|
+
* @param pageSize (optional) Pagination page size.
|
|
3505
|
+
* @return Returns the list of PmiValuation.
|
|
3506
|
+
*/
|
|
3507
|
+
getAllPmiValuations(financialInstitutionId, preIPOCompanyId, pmiId, displayName, fromDate, toDate, pageNumber, pageSize) {
|
|
3508
|
+
let url_ = this.baseUrl + "/primary/v1/pmi/valuations/financial-institution/{financialInstitutionId}?";
|
|
3509
|
+
if (financialInstitutionId === undefined || financialInstitutionId === null)
|
|
3510
|
+
throw new Error("The parameter 'financialInstitutionId' must be defined.");
|
|
3511
|
+
url_ = url_.replace("{financialInstitutionId}", encodeURIComponent("" + financialInstitutionId));
|
|
3512
|
+
if (preIPOCompanyId === null)
|
|
3513
|
+
throw new Error("The parameter 'preIPOCompanyId' cannot be null.");
|
|
3514
|
+
else if (preIPOCompanyId !== undefined)
|
|
3515
|
+
url_ += "preIPOCompanyId=" + encodeURIComponent("" + preIPOCompanyId) + "&";
|
|
3516
|
+
if (pmiId === null)
|
|
3517
|
+
throw new Error("The parameter 'pmiId' cannot be null.");
|
|
3518
|
+
else if (pmiId !== undefined)
|
|
3519
|
+
url_ += "pmiId=" + encodeURIComponent("" + pmiId) + "&";
|
|
3520
|
+
if (displayName === null)
|
|
3521
|
+
throw new Error("The parameter 'displayName' cannot be null.");
|
|
3522
|
+
else if (displayName !== undefined)
|
|
3523
|
+
url_ += "displayName=" + encodeURIComponent("" + displayName) + "&";
|
|
3524
|
+
if (fromDate === null)
|
|
3525
|
+
throw new Error("The parameter 'fromDate' cannot be null.");
|
|
3526
|
+
else if (fromDate !== undefined)
|
|
3527
|
+
url_ += "fromDate=" + encodeURIComponent(fromDate ? "" + fromDate.toISOString() : "") + "&";
|
|
3528
|
+
if (toDate === null)
|
|
3529
|
+
throw new Error("The parameter 'toDate' cannot be null.");
|
|
3530
|
+
else if (toDate !== undefined)
|
|
3531
|
+
url_ += "toDate=" + encodeURIComponent(toDate ? "" + toDate.toISOString() : "") + "&";
|
|
3532
|
+
if (pageNumber === null)
|
|
3533
|
+
throw new Error("The parameter 'pageNumber' cannot be null.");
|
|
3534
|
+
else if (pageNumber !== undefined)
|
|
3535
|
+
url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
|
|
3536
|
+
if (pageSize === null)
|
|
3537
|
+
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
3538
|
+
else if (pageSize !== undefined)
|
|
3539
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
3540
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3541
|
+
let options_ = {
|
|
3542
|
+
method: "GET",
|
|
3543
|
+
headers: {
|
|
3544
|
+
"Accept": "application/json"
|
|
3545
|
+
}
|
|
3546
|
+
};
|
|
3547
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
3548
|
+
return this.processGetAllPmiValuations(_response);
|
|
3549
|
+
});
|
|
3550
|
+
}
|
|
3551
|
+
processGetAllPmiValuations(response) {
|
|
3552
|
+
const status = response.status;
|
|
3553
|
+
let _headers = {};
|
|
3554
|
+
if (response.headers && response.headers.forEach) {
|
|
3555
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3556
|
+
}
|
|
3557
|
+
;
|
|
3558
|
+
if (status === 200) {
|
|
3559
|
+
return response.text().then((_responseText) => {
|
|
3560
|
+
let result200 = null;
|
|
3561
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3562
|
+
result200 = PmiValuationApiResponse.fromJS(resultData200);
|
|
3563
|
+
return result200;
|
|
3564
|
+
});
|
|
3565
|
+
}
|
|
3566
|
+
else if (status === 403) {
|
|
3567
|
+
return response.text().then((_responseText) => {
|
|
3568
|
+
return throwException("Access denied.", status, _responseText, _headers);
|
|
3569
|
+
});
|
|
3570
|
+
}
|
|
3571
|
+
else if (status !== 200 && status !== 204) {
|
|
3572
|
+
return response.text().then((_responseText) => {
|
|
3573
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3574
|
+
});
|
|
3575
|
+
}
|
|
3576
|
+
return Promise.resolve(null);
|
|
3577
|
+
}
|
|
3145
3578
|
/**
|
|
3146
3579
|
* Get a PreIPOCompany by Id
|
|
3147
3580
|
* @param id ID of the PreIPOCompany to find.
|
|
@@ -8192,6 +8625,365 @@ export class Partner {
|
|
|
8192
8625
|
return data;
|
|
8193
8626
|
}
|
|
8194
8627
|
}
|
|
8628
|
+
/** Read model representing a PMI feed composite derived pricing record returned by the API. */
|
|
8629
|
+
export class PmiFeedPricing {
|
|
8630
|
+
constructor(data) {
|
|
8631
|
+
if (data) {
|
|
8632
|
+
for (var property in data) {
|
|
8633
|
+
if (data.hasOwnProperty(property))
|
|
8634
|
+
this[property] = data[property];
|
|
8635
|
+
}
|
|
8636
|
+
}
|
|
8637
|
+
}
|
|
8638
|
+
init(_data) {
|
|
8639
|
+
if (_data) {
|
|
8640
|
+
this.id = _data["id"];
|
|
8641
|
+
this.preIPOCompanyId = _data["preIPOCompanyId"];
|
|
8642
|
+
this.pmiUpdatedAt = _data["pmiUpdatedAt"] ? new Date(_data["pmiUpdatedAt"].toString()) : undefined;
|
|
8643
|
+
this.pmiId = _data["pmiId"];
|
|
8644
|
+
this.displayName = _data["displayName"];
|
|
8645
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
8646
|
+
this.price = _data["price"];
|
|
8647
|
+
this.derivedPrice = _data["derivedPrice"];
|
|
8648
|
+
this.combinedPrice = _data["combinedPrice"];
|
|
8649
|
+
this.unadjustedPrice = _data["unadjustedPrice"];
|
|
8650
|
+
this.unadjustedDerivedPrice = _data["unadjustedDerivedPrice"];
|
|
8651
|
+
this.unadjustedCombinedPrice = _data["unadjustedCombinedPrice"];
|
|
8652
|
+
this.depth90Day = _data["depth90Day"];
|
|
8653
|
+
this.stdev90Day = _data["stdev90Day"];
|
|
8654
|
+
this.stdevRecent5 = _data["stdevRecent5"];
|
|
8655
|
+
this.volatility90Day = _data["volatility90Day"];
|
|
8656
|
+
this.underlyingVolatility90Day = _data["underlyingVolatility90Day"];
|
|
8657
|
+
this.bidVolume = _data["bidVolume"];
|
|
8658
|
+
this.numberOfBids = _data["numberOfBids"];
|
|
8659
|
+
this.askVolume = _data["askVolume"];
|
|
8660
|
+
this.numberOfAsks = _data["numberOfAsks"];
|
|
8661
|
+
this.tradeVolume = _data["tradeVolume"];
|
|
8662
|
+
this.numberOfTrades = _data["numberOfTrades"];
|
|
8663
|
+
this.currency = _data["currency"];
|
|
8664
|
+
}
|
|
8665
|
+
}
|
|
8666
|
+
static fromJS(data) {
|
|
8667
|
+
data = typeof data === 'object' ? data : {};
|
|
8668
|
+
let result = new PmiFeedPricing();
|
|
8669
|
+
result.init(data);
|
|
8670
|
+
return result;
|
|
8671
|
+
}
|
|
8672
|
+
toJSON(data) {
|
|
8673
|
+
data = typeof data === 'object' ? data : {};
|
|
8674
|
+
data["id"] = this.id;
|
|
8675
|
+
data["preIPOCompanyId"] = this.preIPOCompanyId;
|
|
8676
|
+
data["pmiUpdatedAt"] = this.pmiUpdatedAt ? this.pmiUpdatedAt.toISOString() : undefined;
|
|
8677
|
+
data["pmiId"] = this.pmiId;
|
|
8678
|
+
data["displayName"] = this.displayName;
|
|
8679
|
+
data["date"] = this.date ? formatDate(this.date) : undefined;
|
|
8680
|
+
data["price"] = this.price;
|
|
8681
|
+
data["derivedPrice"] = this.derivedPrice;
|
|
8682
|
+
data["combinedPrice"] = this.combinedPrice;
|
|
8683
|
+
data["unadjustedPrice"] = this.unadjustedPrice;
|
|
8684
|
+
data["unadjustedDerivedPrice"] = this.unadjustedDerivedPrice;
|
|
8685
|
+
data["unadjustedCombinedPrice"] = this.unadjustedCombinedPrice;
|
|
8686
|
+
data["depth90Day"] = this.depth90Day;
|
|
8687
|
+
data["stdev90Day"] = this.stdev90Day;
|
|
8688
|
+
data["stdevRecent5"] = this.stdevRecent5;
|
|
8689
|
+
data["volatility90Day"] = this.volatility90Day;
|
|
8690
|
+
data["underlyingVolatility90Day"] = this.underlyingVolatility90Day;
|
|
8691
|
+
data["bidVolume"] = this.bidVolume;
|
|
8692
|
+
data["numberOfBids"] = this.numberOfBids;
|
|
8693
|
+
data["askVolume"] = this.askVolume;
|
|
8694
|
+
data["numberOfAsks"] = this.numberOfAsks;
|
|
8695
|
+
data["tradeVolume"] = this.tradeVolume;
|
|
8696
|
+
data["numberOfTrades"] = this.numberOfTrades;
|
|
8697
|
+
data["currency"] = this.currency;
|
|
8698
|
+
return data;
|
|
8699
|
+
}
|
|
8700
|
+
}
|
|
8701
|
+
export class PmiFeedPricingApiResponse {
|
|
8702
|
+
constructor(data) {
|
|
8703
|
+
if (data) {
|
|
8704
|
+
for (var property in data) {
|
|
8705
|
+
if (data.hasOwnProperty(property))
|
|
8706
|
+
this[property] = data[property];
|
|
8707
|
+
}
|
|
8708
|
+
}
|
|
8709
|
+
}
|
|
8710
|
+
init(_data) {
|
|
8711
|
+
if (_data) {
|
|
8712
|
+
if (Array.isArray(_data["items"])) {
|
|
8713
|
+
this.items = [];
|
|
8714
|
+
for (let item of _data["items"])
|
|
8715
|
+
this.items.push(PmiFeedPricing.fromJS(item));
|
|
8716
|
+
}
|
|
8717
|
+
this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
|
|
8718
|
+
}
|
|
8719
|
+
}
|
|
8720
|
+
static fromJS(data) {
|
|
8721
|
+
data = typeof data === 'object' ? data : {};
|
|
8722
|
+
let result = new PmiFeedPricingApiResponse();
|
|
8723
|
+
result.init(data);
|
|
8724
|
+
return result;
|
|
8725
|
+
}
|
|
8726
|
+
toJSON(data) {
|
|
8727
|
+
data = typeof data === 'object' ? data : {};
|
|
8728
|
+
if (Array.isArray(this.items)) {
|
|
8729
|
+
data["items"] = [];
|
|
8730
|
+
for (let item of this.items)
|
|
8731
|
+
data["items"].push(item.toJSON());
|
|
8732
|
+
}
|
|
8733
|
+
data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
|
|
8734
|
+
return data;
|
|
8735
|
+
}
|
|
8736
|
+
}
|
|
8737
|
+
/** Read model representing a PMI issuer record returned by the API. */
|
|
8738
|
+
export class PmiIssuer {
|
|
8739
|
+
constructor(data) {
|
|
8740
|
+
if (data) {
|
|
8741
|
+
for (var property in data) {
|
|
8742
|
+
if (data.hasOwnProperty(property))
|
|
8743
|
+
this[property] = data[property];
|
|
8744
|
+
}
|
|
8745
|
+
}
|
|
8746
|
+
}
|
|
8747
|
+
init(_data) {
|
|
8748
|
+
if (_data) {
|
|
8749
|
+
this.id = _data["id"];
|
|
8750
|
+
this.preIPOCompanyId = _data["preIPOCompanyId"];
|
|
8751
|
+
this.pmiUpdatedAt = _data["pmiUpdatedAt"] ? new Date(_data["pmiUpdatedAt"].toString()) : undefined;
|
|
8752
|
+
this.infoId = _data["infoId"];
|
|
8753
|
+
this.infoDisplayName = _data["infoDisplayName"];
|
|
8754
|
+
this.infoAksNamesJson = _data["infoAksNamesJson"];
|
|
8755
|
+
this.infoDescription = _data["infoDescription"];
|
|
8756
|
+
this.infoUrl = _data["infoUrl"];
|
|
8757
|
+
this.infoHqAddress = _data["infoHqAddress"];
|
|
8758
|
+
this.infoHqCountry = _data["infoHqCountry"];
|
|
8759
|
+
this.infoIncorporationDate = _data["infoIncorporationDate"];
|
|
8760
|
+
this.infoNumberOfEmployees = _data["infoNumberOfEmployees"];
|
|
8761
|
+
this.infoSplitsJson = _data["infoSplitsJson"];
|
|
8762
|
+
this.infoNotPrivateMarketDatesJson = _data["infoNotPrivateMarketDatesJson"];
|
|
8763
|
+
this.infoSectorsJson = _data["infoSectorsJson"];
|
|
8764
|
+
this.infoCurrency = _data["infoCurrency"];
|
|
8765
|
+
this.infoLegalName = _data["infoLegalName"];
|
|
8766
|
+
this.infoCeosJson = _data["infoCeosJson"];
|
|
8767
|
+
this.pricePrice = _data["pricePrice"];
|
|
8768
|
+
this.priceIsDerived = _data["priceIsDerived"];
|
|
8769
|
+
this.priceCurrency = _data["priceCurrency"];
|
|
8770
|
+
this.priceYtd = _data["priceYtd"];
|
|
8771
|
+
this.priceYtdRoi = _data["priceYtdRoi"];
|
|
8772
|
+
this.volumeThreeMonthsBid = _data["volumeThreeMonthsBid"];
|
|
8773
|
+
this.volumeThreeMonthsAsk = _data["volumeThreeMonthsAsk"];
|
|
8774
|
+
this.volumeSixMonthsBid = _data["volumeSixMonthsBid"];
|
|
8775
|
+
this.volumeSixMonthsAsk = _data["volumeSixMonthsAsk"];
|
|
8776
|
+
this.volumeYtdBid = _data["volumeYtdBid"];
|
|
8777
|
+
this.volumeYtdAsk = _data["volumeYtdAsk"];
|
|
8778
|
+
this.volumeYearBid = _data["volumeYearBid"];
|
|
8779
|
+
this.volumeYearAsk = _data["volumeYearAsk"];
|
|
8780
|
+
this.volumeTwoYearBid = _data["volumeTwoYearBid"];
|
|
8781
|
+
this.volumeTwoYearAsk = _data["volumeTwoYearAsk"];
|
|
8782
|
+
this.valuationCurrentImpliedFiling = _data["valuationCurrentImpliedFiling"];
|
|
8783
|
+
this.valuationCurrentImpliedNews = _data["valuationCurrentImpliedNews"];
|
|
8784
|
+
this.valuationCurrentImpliedDate = _data["valuationCurrentImpliedDate"] ? new Date(_data["valuationCurrentImpliedDate"].toString()) : undefined;
|
|
8785
|
+
this.valuationLastRoundFiling = _data["valuationLastRoundFiling"];
|
|
8786
|
+
this.valuationLastRoundNews = _data["valuationLastRoundNews"];
|
|
8787
|
+
this.valuationLastRoundDate = _data["valuationLastRoundDate"] ? new Date(_data["valuationLastRoundDate"].toString()) : undefined;
|
|
8788
|
+
this.valuationShareCountFiling = _data["valuationShareCountFiling"];
|
|
8789
|
+
this.valuationShareCountNews = _data["valuationShareCountNews"];
|
|
8790
|
+
this.valuationShareCountDate = _data["valuationShareCountDate"] ? new Date(_data["valuationShareCountDate"].toString()) : undefined;
|
|
8791
|
+
this.valuationLastRoundShareClass = _data["valuationLastRoundShareClass"];
|
|
8792
|
+
this.valuationLastRoundPrice = _data["valuationLastRoundPrice"];
|
|
8793
|
+
this.valuationCurrentImpliedChangeSinceLastRound = _data["valuationCurrentImpliedChangeSinceLastRound"];
|
|
8794
|
+
this.valuationLatestRevenue = _data["valuationLatestRevenue"];
|
|
8795
|
+
this.valuationLatestRevenuePercentChange = _data["valuationLatestRevenuePercentChange"];
|
|
8796
|
+
this.valuationLatestRevenueYear = _data["valuationLatestRevenueYear"];
|
|
8797
|
+
this.valuationLatestRevenueCurrency = _data["valuationLatestRevenueCurrency"];
|
|
8798
|
+
this.valuationLatestRevenueSource = _data["valuationLatestRevenueSource"];
|
|
8799
|
+
}
|
|
8800
|
+
}
|
|
8801
|
+
static fromJS(data) {
|
|
8802
|
+
data = typeof data === 'object' ? data : {};
|
|
8803
|
+
let result = new PmiIssuer();
|
|
8804
|
+
result.init(data);
|
|
8805
|
+
return result;
|
|
8806
|
+
}
|
|
8807
|
+
toJSON(data) {
|
|
8808
|
+
data = typeof data === 'object' ? data : {};
|
|
8809
|
+
data["id"] = this.id;
|
|
8810
|
+
data["preIPOCompanyId"] = this.preIPOCompanyId;
|
|
8811
|
+
data["pmiUpdatedAt"] = this.pmiUpdatedAt ? this.pmiUpdatedAt.toISOString() : undefined;
|
|
8812
|
+
data["infoId"] = this.infoId;
|
|
8813
|
+
data["infoDisplayName"] = this.infoDisplayName;
|
|
8814
|
+
data["infoAksNamesJson"] = this.infoAksNamesJson;
|
|
8815
|
+
data["infoDescription"] = this.infoDescription;
|
|
8816
|
+
data["infoUrl"] = this.infoUrl;
|
|
8817
|
+
data["infoHqAddress"] = this.infoHqAddress;
|
|
8818
|
+
data["infoHqCountry"] = this.infoHqCountry;
|
|
8819
|
+
data["infoIncorporationDate"] = this.infoIncorporationDate;
|
|
8820
|
+
data["infoNumberOfEmployees"] = this.infoNumberOfEmployees;
|
|
8821
|
+
data["infoSplitsJson"] = this.infoSplitsJson;
|
|
8822
|
+
data["infoNotPrivateMarketDatesJson"] = this.infoNotPrivateMarketDatesJson;
|
|
8823
|
+
data["infoSectorsJson"] = this.infoSectorsJson;
|
|
8824
|
+
data["infoCurrency"] = this.infoCurrency;
|
|
8825
|
+
data["infoLegalName"] = this.infoLegalName;
|
|
8826
|
+
data["infoCeosJson"] = this.infoCeosJson;
|
|
8827
|
+
data["pricePrice"] = this.pricePrice;
|
|
8828
|
+
data["priceIsDerived"] = this.priceIsDerived;
|
|
8829
|
+
data["priceCurrency"] = this.priceCurrency;
|
|
8830
|
+
data["priceYtd"] = this.priceYtd;
|
|
8831
|
+
data["priceYtdRoi"] = this.priceYtdRoi;
|
|
8832
|
+
data["volumeThreeMonthsBid"] = this.volumeThreeMonthsBid;
|
|
8833
|
+
data["volumeThreeMonthsAsk"] = this.volumeThreeMonthsAsk;
|
|
8834
|
+
data["volumeSixMonthsBid"] = this.volumeSixMonthsBid;
|
|
8835
|
+
data["volumeSixMonthsAsk"] = this.volumeSixMonthsAsk;
|
|
8836
|
+
data["volumeYtdBid"] = this.volumeYtdBid;
|
|
8837
|
+
data["volumeYtdAsk"] = this.volumeYtdAsk;
|
|
8838
|
+
data["volumeYearBid"] = this.volumeYearBid;
|
|
8839
|
+
data["volumeYearAsk"] = this.volumeYearAsk;
|
|
8840
|
+
data["volumeTwoYearBid"] = this.volumeTwoYearBid;
|
|
8841
|
+
data["volumeTwoYearAsk"] = this.volumeTwoYearAsk;
|
|
8842
|
+
data["valuationCurrentImpliedFiling"] = this.valuationCurrentImpliedFiling;
|
|
8843
|
+
data["valuationCurrentImpliedNews"] = this.valuationCurrentImpliedNews;
|
|
8844
|
+
data["valuationCurrentImpliedDate"] = this.valuationCurrentImpliedDate ? formatDate(this.valuationCurrentImpliedDate) : undefined;
|
|
8845
|
+
data["valuationLastRoundFiling"] = this.valuationLastRoundFiling;
|
|
8846
|
+
data["valuationLastRoundNews"] = this.valuationLastRoundNews;
|
|
8847
|
+
data["valuationLastRoundDate"] = this.valuationLastRoundDate ? formatDate(this.valuationLastRoundDate) : undefined;
|
|
8848
|
+
data["valuationShareCountFiling"] = this.valuationShareCountFiling;
|
|
8849
|
+
data["valuationShareCountNews"] = this.valuationShareCountNews;
|
|
8850
|
+
data["valuationShareCountDate"] = this.valuationShareCountDate ? formatDate(this.valuationShareCountDate) : undefined;
|
|
8851
|
+
data["valuationLastRoundShareClass"] = this.valuationLastRoundShareClass;
|
|
8852
|
+
data["valuationLastRoundPrice"] = this.valuationLastRoundPrice;
|
|
8853
|
+
data["valuationCurrentImpliedChangeSinceLastRound"] = this.valuationCurrentImpliedChangeSinceLastRound;
|
|
8854
|
+
data["valuationLatestRevenue"] = this.valuationLatestRevenue;
|
|
8855
|
+
data["valuationLatestRevenuePercentChange"] = this.valuationLatestRevenuePercentChange;
|
|
8856
|
+
data["valuationLatestRevenueYear"] = this.valuationLatestRevenueYear;
|
|
8857
|
+
data["valuationLatestRevenueCurrency"] = this.valuationLatestRevenueCurrency;
|
|
8858
|
+
data["valuationLatestRevenueSource"] = this.valuationLatestRevenueSource;
|
|
8859
|
+
return data;
|
|
8860
|
+
}
|
|
8861
|
+
}
|
|
8862
|
+
export class PmiIssuerApiResponse {
|
|
8863
|
+
constructor(data) {
|
|
8864
|
+
if (data) {
|
|
8865
|
+
for (var property in data) {
|
|
8866
|
+
if (data.hasOwnProperty(property))
|
|
8867
|
+
this[property] = data[property];
|
|
8868
|
+
}
|
|
8869
|
+
}
|
|
8870
|
+
}
|
|
8871
|
+
init(_data) {
|
|
8872
|
+
if (_data) {
|
|
8873
|
+
if (Array.isArray(_data["items"])) {
|
|
8874
|
+
this.items = [];
|
|
8875
|
+
for (let item of _data["items"])
|
|
8876
|
+
this.items.push(PmiIssuer.fromJS(item));
|
|
8877
|
+
}
|
|
8878
|
+
this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
|
|
8879
|
+
}
|
|
8880
|
+
}
|
|
8881
|
+
static fromJS(data) {
|
|
8882
|
+
data = typeof data === 'object' ? data : {};
|
|
8883
|
+
let result = new PmiIssuerApiResponse();
|
|
8884
|
+
result.init(data);
|
|
8885
|
+
return result;
|
|
8886
|
+
}
|
|
8887
|
+
toJSON(data) {
|
|
8888
|
+
data = typeof data === 'object' ? data : {};
|
|
8889
|
+
if (Array.isArray(this.items)) {
|
|
8890
|
+
data["items"] = [];
|
|
8891
|
+
for (let item of this.items)
|
|
8892
|
+
data["items"].push(item.toJSON());
|
|
8893
|
+
}
|
|
8894
|
+
data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
|
|
8895
|
+
return data;
|
|
8896
|
+
}
|
|
8897
|
+
}
|
|
8898
|
+
/** Read model representing a PMI valuation record returned by the API. */
|
|
8899
|
+
export class PmiValuation {
|
|
8900
|
+
constructor(data) {
|
|
8901
|
+
if (data) {
|
|
8902
|
+
for (var property in data) {
|
|
8903
|
+
if (data.hasOwnProperty(property))
|
|
8904
|
+
this[property] = data[property];
|
|
8905
|
+
}
|
|
8906
|
+
}
|
|
8907
|
+
}
|
|
8908
|
+
init(_data) {
|
|
8909
|
+
if (_data) {
|
|
8910
|
+
this.id = _data["id"];
|
|
8911
|
+
this.preIPOCompanyId = _data["preIPOCompanyId"];
|
|
8912
|
+
this.pmiUpdatedAt = _data["pmiUpdatedAt"] ? new Date(_data["pmiUpdatedAt"].toString()) : undefined;
|
|
8913
|
+
this.pmiId = _data["pmiId"];
|
|
8914
|
+
this.displayName = _data["displayName"];
|
|
8915
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
8916
|
+
this.valuationUsd = _data["valuationUsd"];
|
|
8917
|
+
this.currencyMultiplier = _data["currencyMultiplier"];
|
|
8918
|
+
this.description = _data["description"];
|
|
8919
|
+
this.splitAdjustedPriceUsd = _data["splitAdjustedPriceUsd"];
|
|
8920
|
+
this.splitAdjustedShareCount = _data["splitAdjustedShareCount"];
|
|
8921
|
+
this.unadjustedPriceUsd = _data["unadjustedPriceUsd"];
|
|
8922
|
+
this.unadjustedShareCount = _data["unadjustedShareCount"];
|
|
8923
|
+
this.splitAtRatio = _data["splitAtRatio"];
|
|
8924
|
+
}
|
|
8925
|
+
}
|
|
8926
|
+
static fromJS(data) {
|
|
8927
|
+
data = typeof data === 'object' ? data : {};
|
|
8928
|
+
let result = new PmiValuation();
|
|
8929
|
+
result.init(data);
|
|
8930
|
+
return result;
|
|
8931
|
+
}
|
|
8932
|
+
toJSON(data) {
|
|
8933
|
+
data = typeof data === 'object' ? data : {};
|
|
8934
|
+
data["id"] = this.id;
|
|
8935
|
+
data["preIPOCompanyId"] = this.preIPOCompanyId;
|
|
8936
|
+
data["pmiUpdatedAt"] = this.pmiUpdatedAt ? this.pmiUpdatedAt.toISOString() : undefined;
|
|
8937
|
+
data["pmiId"] = this.pmiId;
|
|
8938
|
+
data["displayName"] = this.displayName;
|
|
8939
|
+
data["date"] = this.date ? formatDate(this.date) : undefined;
|
|
8940
|
+
data["valuationUsd"] = this.valuationUsd;
|
|
8941
|
+
data["currencyMultiplier"] = this.currencyMultiplier;
|
|
8942
|
+
data["description"] = this.description;
|
|
8943
|
+
data["splitAdjustedPriceUsd"] = this.splitAdjustedPriceUsd;
|
|
8944
|
+
data["splitAdjustedShareCount"] = this.splitAdjustedShareCount;
|
|
8945
|
+
data["unadjustedPriceUsd"] = this.unadjustedPriceUsd;
|
|
8946
|
+
data["unadjustedShareCount"] = this.unadjustedShareCount;
|
|
8947
|
+
data["splitAtRatio"] = this.splitAtRatio;
|
|
8948
|
+
return data;
|
|
8949
|
+
}
|
|
8950
|
+
}
|
|
8951
|
+
export class PmiValuationApiResponse {
|
|
8952
|
+
constructor(data) {
|
|
8953
|
+
if (data) {
|
|
8954
|
+
for (var property in data) {
|
|
8955
|
+
if (data.hasOwnProperty(property))
|
|
8956
|
+
this[property] = data[property];
|
|
8957
|
+
}
|
|
8958
|
+
}
|
|
8959
|
+
}
|
|
8960
|
+
init(_data) {
|
|
8961
|
+
if (_data) {
|
|
8962
|
+
if (Array.isArray(_data["items"])) {
|
|
8963
|
+
this.items = [];
|
|
8964
|
+
for (let item of _data["items"])
|
|
8965
|
+
this.items.push(PmiValuation.fromJS(item));
|
|
8966
|
+
}
|
|
8967
|
+
this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
|
|
8968
|
+
}
|
|
8969
|
+
}
|
|
8970
|
+
static fromJS(data) {
|
|
8971
|
+
data = typeof data === 'object' ? data : {};
|
|
8972
|
+
let result = new PmiValuationApiResponse();
|
|
8973
|
+
result.init(data);
|
|
8974
|
+
return result;
|
|
8975
|
+
}
|
|
8976
|
+
toJSON(data) {
|
|
8977
|
+
data = typeof data === 'object' ? data : {};
|
|
8978
|
+
if (Array.isArray(this.items)) {
|
|
8979
|
+
data["items"] = [];
|
|
8980
|
+
for (let item of this.items)
|
|
8981
|
+
data["items"].push(item.toJSON());
|
|
8982
|
+
}
|
|
8983
|
+
data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
|
|
8984
|
+
return data;
|
|
8985
|
+
}
|
|
8986
|
+
}
|
|
8195
8987
|
/** PreIPOCompany represents the public information we provide for a PreIPOCompany in the Primary Offering. */
|
|
8196
8988
|
export class PreIPOCompany {
|
|
8197
8989
|
constructor(data) {
|