@monarkmarkets/api-client 1.2.3 → 1.2.5

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
@@ -675,6 +675,51 @@ export declare class Client {
675
675
  */
676
676
  investorGET6(investorId: string, monarkStage: MonarkStage | undefined, exemptionsClaimed: ExemptionsClaimed[] | undefined, nameFilter: string | undefined, preIPOCompanyId: string | undefined, preIPOCompanyInvestmentId: string | undefined, page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder12 | undefined, sortBy: SortBy2 | undefined): Promise<PreIPOCompanySPVApiResponse>;
677
677
  protected processInvestorGET6(response: Response): Promise<PreIPOCompanySPVApiResponse>;
678
+ /**
679
+ * Gets all SPVs that have been approved.
680
+ * @param pageNumber (optional) Page number for pagination.
681
+ * @param pageSize (optional) Page size for pagination.
682
+ * @return Returns the list of approved SPVs.
683
+ */
684
+ spvs(pageNumber: number | undefined, pageSize: number | undefined): Promise<PreIPOCompanySPVApiResponse>;
685
+ protected processSpvs(response: Response): Promise<PreIPOCompanySPVApiResponse>;
686
+ /**
687
+ * Checks if a specific SPV has been approved.
688
+ * @param spvId ID of the SPV.
689
+ * @return Returns whether approval exists.
690
+ */
691
+ isApproved(spvId: string): Promise<boolean>;
692
+ protected processIsApproved(response: Response): Promise<boolean>;
693
+ /**
694
+ * Approves an SPV.
695
+ * @param spvId ID of the SPV.
696
+ * @param body (optional) Approval request containing optional notes.
697
+ * @return SPV successfully approved.
698
+ */
699
+ approve(spvId: string, body: CreatePreIPOCompanySPVPartnerApproval | undefined): Promise<boolean>;
700
+ protected processApprove(response: Response): Promise<boolean>;
701
+ /**
702
+ * Gets the approval record for a specific SPV.
703
+ * @param spvId ID of the SPV.
704
+ * @return Returns the approval record.
705
+ */
706
+ approval(spvId: string): Promise<PreIPOCompanySPVPartnerApproval>;
707
+ protected processApproval(response: Response): Promise<PreIPOCompanySPVPartnerApproval>;
708
+ /**
709
+ * Gets an approval record by Id.
710
+ * @return Returns an approval record.
711
+ */
712
+ preIpoCompanySpvPartnerApproval(approvalId: string): Promise<PreIPOCompanySPVPartnerApproval>;
713
+ protected processPreIpoCompanySpvPartnerApproval(response: Response): Promise<PreIPOCompanySPVPartnerApproval>;
714
+ /**
715
+ * Gets all approval records with optional filtering.
716
+ * @param pageNumber (optional) Page number for pagination.
717
+ * @param pageSize (optional) Page size for pagination.
718
+ * @param sortOrder (optional) Sort order for results.
719
+ * @return Returns the list of approval records.
720
+ */
721
+ preIpoCompanySpvPartnerApproval2(pageNumber: number | undefined, pageSize: number | undefined, sortOrder: SortOrder13 | undefined): Promise<PreIPOCompanySPVPartnerApprovalApiResponse>;
722
+ protected processPreIpoCompanySpvPartnerApproval2(response: Response): Promise<PreIPOCompanySPVPartnerApprovalApiResponse>;
678
723
  /**
679
724
  * @param body (optional)
680
725
  * @return Created
@@ -694,7 +739,7 @@ export declare class Client {
694
739
  * @param sortOrder (optional)
695
740
  * @return Returns the list of Questionnaires.
696
741
  */
697
- questionnaireGET(page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder13 | undefined): Promise<QuestionnaireApiResponse>;
742
+ questionnaireGET(page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder14 | undefined): Promise<QuestionnaireApiResponse>;
698
743
  protected processQuestionnaireGET(response: Response): Promise<QuestionnaireApiResponse>;
699
744
  /**
700
745
  * @return No Content
@@ -738,7 +783,7 @@ export declare class Client {
738
783
  * @param pageSize (optional) The maximum number of items to return in each page, defaults to 25.
739
784
  * @return OK
740
785
  */
741
- registeredFund2(searchTerm: string | undefined, sortOrder: SortOrder14 | undefined, page: number | undefined, pageSize: number | undefined): Promise<RegisteredFundApiResponse>;
786
+ registeredFund2(searchTerm: string | undefined, sortOrder: SortOrder15 | undefined, page: number | undefined, pageSize: number | undefined): Promise<RegisteredFundApiResponse>;
742
787
  protected processRegisteredFund2(response: Response): Promise<RegisteredFundApiResponse>;
743
788
  /**
744
789
  * Creates a new registered fund subscription.
@@ -756,7 +801,7 @@ export declare class Client {
756
801
  * @param sortOrder (optional) Sort order for results (default: Descending).
757
802
  * @return OK
758
803
  */
759
- registeredFundSubscriptionGET(registeredFundId: string | undefined, investorId: string | undefined, pageNumber: number | undefined, pageSize: number | undefined, sortOrder: SortOrder15 | undefined): Promise<RegisteredFundSubscriptionApiResponse>;
804
+ registeredFundSubscriptionGET(registeredFundId: string | undefined, investorId: string | undefined, pageNumber: number | undefined, pageSize: number | undefined, sortOrder: SortOrder16 | undefined): Promise<RegisteredFundSubscriptionApiResponse>;
760
805
  protected processRegisteredFundSubscriptionGET(response: Response): Promise<RegisteredFundSubscriptionApiResponse>;
761
806
  /**
762
807
  * Gets a subscription by ID.
@@ -838,7 +883,7 @@ export declare class Client {
838
883
  * @param sortOrder (optional) Order of which to sort the webhooks by. Default is Descending
839
884
  * @return Returns a list of Webhooks.
840
885
  */
841
- webhookGET(page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder16 | undefined): Promise<WebhookApiResponse>;
886
+ webhookGET(page: number | undefined, pageSize: number | undefined, sortOrder: SortOrder17 | undefined): Promise<WebhookApiResponse>;
842
887
  protected processWebhookGET(response: Response): Promise<WebhookApiResponse>;
843
888
  /**
844
889
  * Update a Webhook’s Information
@@ -873,7 +918,7 @@ export declare class Client {
873
918
  * @param pageSize (optional)
874
919
  * @return Returns a list of Webhook Events.
875
920
  */
876
- events(id: string, from: Date, to: Date, sortOrder: SortOrder17 | undefined, eventType: EventType | undefined, deliveryStatus: DeliveryStatus | undefined, page: number | undefined, pageSize: number | undefined): Promise<WebhookEventApiResponse>;
921
+ events(id: string, from: Date, to: Date, sortOrder: SortOrder18 | undefined, eventType: EventType | undefined, deliveryStatus: DeliveryStatus | undefined, page: number | undefined, pageSize: number | undefined): Promise<WebhookEventApiResponse>;
877
922
  protected processEvents(response: Response): Promise<WebhookEventApiResponse>;
878
923
  }
879
924
  /** Represents the version information of the API */
@@ -1123,6 +1168,12 @@ export declare class BulkPreIPOCompanySPV implements IBulkPreIPOCompanySPV {
1123
1168
  investorFeePerShare?: number | undefined;
1124
1169
  /** The total amount per share that an Investor will pay, including fees, when they invest in an SPV. */
1125
1170
  allInPricePerShare?: number | undefined;
1171
+ /** The admin fee associated with this SPV, if the fund admin expense is not being paid out of the management fee. If the fund admin expense is being paid out of the management fee, leave this blank. */
1172
+ fundAdminExpense?: number | undefined;
1173
+ /** The total expense reserve associated with this SPV, if the expense reserve is not being paid out of the admin expense. If the fund admin expense is being paid out of the management fee, leave this blank. */
1174
+ expenseReserve?: number | undefined;
1175
+ /** Flag that describes whether the holdback expenses will be passed through to investors */
1176
+ holdbackEnabled?: boolean;
1126
1177
  /** The base documents associated with the SPV (Optional). */
1127
1178
  documents?: Document[] | undefined;
1128
1179
  /** SPV account ID. */
@@ -1135,6 +1186,8 @@ export declare class BulkPreIPOCompanySPV implements IBulkPreIPOCompanySPV {
1135
1186
  coManagers?: Partner[] | undefined;
1136
1187
  /** Optional carry interest. */
1137
1188
  carry?: number | undefined;
1189
+ /** Estimated go live date of the SPV. If the exact go live date is not known, an estimate will be provided. */
1190
+ goLiveDate?: Date | undefined;
1138
1191
  /** List of allowed financial institution IDs for this SPV. */
1139
1192
  allowedFinancialInstitutions?: string[] | undefined;
1140
1193
  constructor(data?: IBulkPreIPOCompanySPV);
@@ -1201,6 +1254,12 @@ export interface IBulkPreIPOCompanySPV {
1201
1254
  investorFeePerShare?: number | undefined;
1202
1255
  /** The total amount per share that an Investor will pay, including fees, when they invest in an SPV. */
1203
1256
  allInPricePerShare?: number | undefined;
1257
+ /** The admin fee associated with this SPV, if the fund admin expense is not being paid out of the management fee. If the fund admin expense is being paid out of the management fee, leave this blank. */
1258
+ fundAdminExpense?: number | undefined;
1259
+ /** The total expense reserve associated with this SPV, if the expense reserve is not being paid out of the admin expense. If the fund admin expense is being paid out of the management fee, leave this blank. */
1260
+ expenseReserve?: number | undefined;
1261
+ /** Flag that describes whether the holdback expenses will be passed through to investors */
1262
+ holdbackEnabled?: boolean;
1204
1263
  /** The base documents associated with the SPV (Optional). */
1205
1264
  documents?: Document[] | undefined;
1206
1265
  /** SPV account ID. */
@@ -1213,6 +1272,8 @@ export interface IBulkPreIPOCompanySPV {
1213
1272
  coManagers?: Partner[] | undefined;
1214
1273
  /** Optional carry interest. */
1215
1274
  carry?: number | undefined;
1275
+ /** Estimated go live date of the SPV. If the exact go live date is not known, an estimate will be provided. */
1276
+ goLiveDate?: Date | undefined;
1216
1277
  /** List of allowed financial institution IDs for this SPV. */
1217
1278
  allowedFinancialInstitutions?: string[] | undefined;
1218
1279
  }
@@ -1412,6 +1473,16 @@ export interface ICreateInvestorSubscription {
1412
1473
  /** The reference ID of an order submitted. */
1413
1474
  orderReferenceId?: string | undefined;
1414
1475
  }
1476
+ export declare class CreatePreIPOCompanySPVPartnerApproval implements ICreatePreIPOCompanySPVPartnerApproval {
1477
+ notes?: string | undefined;
1478
+ constructor(data?: ICreatePreIPOCompanySPVPartnerApproval);
1479
+ init(_data?: any): void;
1480
+ static fromJS(data: any): CreatePreIPOCompanySPVPartnerApproval;
1481
+ toJSON(data?: any): any;
1482
+ }
1483
+ export interface ICreatePreIPOCompanySPVPartnerApproval {
1484
+ notes?: string | undefined;
1485
+ }
1415
1486
  /** Create Questionnaire allows the creation of a questionaire with the primary offerring. */
1416
1487
  export declare class CreateQuestionnaire implements ICreateQuestionnaire {
1417
1488
  /** Name of Questionnaire. */
@@ -2609,6 +2680,10 @@ export declare class InvestorSubscription implements IInvestorSubscription {
2609
2680
  partnerName?: string | undefined;
2610
2681
  /** The investor name for this subscription */
2611
2682
  investorName?: string | undefined;
2683
+ /** The Name of the SPV associated with this subscription. */
2684
+ spvName?: string | undefined;
2685
+ /** The Name of the Company associated with the SPV of this subscription. */
2686
+ companyName?: string | undefined;
2612
2687
  /** The reference ID of an order submitted. */
2613
2688
  orderReferenceId?: string | undefined;
2614
2689
  constructor(data?: IInvestorSubscription);
@@ -2637,6 +2712,10 @@ export interface IInvestorSubscription {
2637
2712
  partnerName?: string | undefined;
2638
2713
  /** The investor name for this subscription */
2639
2714
  investorName?: string | undefined;
2715
+ /** The Name of the SPV associated with this subscription. */
2716
+ spvName?: string | undefined;
2717
+ /** The Name of the Company associated with the SPV of this subscription. */
2718
+ companyName?: string | undefined;
2640
2719
  /** The reference ID of an order submitted. */
2641
2720
  orderReferenceId?: string | undefined;
2642
2721
  }
@@ -4596,6 +4675,12 @@ export declare class PreIPOCompanySPV implements IPreIPOCompanySPV {
4596
4675
  investorFeePerShare?: number | undefined;
4597
4676
  /** The total amount per share that an Investor will pay, including fees, when they invest in an SPV. */
4598
4677
  allInPricePerShare?: number | undefined;
4678
+ /** The admin fee associated with this SPV, if the fund admin expense is not being paid out of the management fee. If the fund admin expense is being paid out of the management fee, leave this blank. */
4679
+ fundAdminExpense?: number | undefined;
4680
+ /** The total expense reserve associated with this SPV, if the expense reserve is not being paid out of the admin expense. If the fund admin expense is being paid out of the management fee, leave this blank. */
4681
+ expenseReserve?: number | undefined;
4682
+ /** Flag that describes whether the holdback expenses will be passed through to investors */
4683
+ holdbackEnabled?: boolean;
4599
4684
  /** The base documents associated with the SPV (Optional). */
4600
4685
  documents?: Document[] | undefined;
4601
4686
  /** SPV account ID. */
@@ -4608,6 +4693,8 @@ export declare class PreIPOCompanySPV implements IPreIPOCompanySPV {
4608
4693
  coManagers?: Partner[] | undefined;
4609
4694
  /** Optional carry interest. */
4610
4695
  carry?: number | undefined;
4696
+ /** Estimated go live date of the SPV. If the exact go live date is not known, an estimate will be provided. */
4697
+ goLiveDate?: Date | undefined;
4611
4698
  constructor(data?: IPreIPOCompanySPV);
4612
4699
  init(_data?: any): void;
4613
4700
  static fromJS(data: any): PreIPOCompanySPV;
@@ -4673,6 +4760,12 @@ export interface IPreIPOCompanySPV {
4673
4760
  investorFeePerShare?: number | undefined;
4674
4761
  /** The total amount per share that an Investor will pay, including fees, when they invest in an SPV. */
4675
4762
  allInPricePerShare?: number | undefined;
4763
+ /** The admin fee associated with this SPV, if the fund admin expense is not being paid out of the management fee. If the fund admin expense is being paid out of the management fee, leave this blank. */
4764
+ fundAdminExpense?: number | undefined;
4765
+ /** The total expense reserve associated with this SPV, if the expense reserve is not being paid out of the admin expense. If the fund admin expense is being paid out of the management fee, leave this blank. */
4766
+ expenseReserve?: number | undefined;
4767
+ /** Flag that describes whether the holdback expenses will be passed through to investors */
4768
+ holdbackEnabled?: boolean;
4676
4769
  /** The base documents associated with the SPV (Optional). */
4677
4770
  documents?: Document[] | undefined;
4678
4771
  /** SPV account ID. */
@@ -4685,6 +4778,8 @@ export interface IPreIPOCompanySPV {
4685
4778
  coManagers?: Partner[] | undefined;
4686
4779
  /** Optional carry interest. */
4687
4780
  carry?: number | undefined;
4781
+ /** Estimated go live date of the SPV. If the exact go live date is not known, an estimate will be provided. */
4782
+ goLiveDate?: Date | undefined;
4688
4783
  }
4689
4784
  export declare class PreIPOCompanySPVApiResponse implements IPreIPOCompanySPVApiResponse {
4690
4785
  items?: PreIPOCompanySPV[] | undefined;
@@ -4698,6 +4793,40 @@ export interface IPreIPOCompanySPVApiResponse {
4698
4793
  items?: PreIPOCompanySPV[] | undefined;
4699
4794
  pagination?: Pagination | undefined;
4700
4795
  }
4796
+ export declare class PreIPOCompanySPVPartnerApproval implements IPreIPOCompanySPVPartnerApproval {
4797
+ id?: string;
4798
+ preIPOCompanySPVId?: string;
4799
+ partnerId?: string;
4800
+ isApproved?: boolean;
4801
+ notes?: string | undefined;
4802
+ createdAt?: Date;
4803
+ updatedAt?: Date | undefined;
4804
+ constructor(data?: IPreIPOCompanySPVPartnerApproval);
4805
+ init(_data?: any): void;
4806
+ static fromJS(data: any): PreIPOCompanySPVPartnerApproval;
4807
+ toJSON(data?: any): any;
4808
+ }
4809
+ export interface IPreIPOCompanySPVPartnerApproval {
4810
+ id?: string;
4811
+ preIPOCompanySPVId?: string;
4812
+ partnerId?: string;
4813
+ isApproved?: boolean;
4814
+ notes?: string | undefined;
4815
+ createdAt?: Date;
4816
+ updatedAt?: Date | undefined;
4817
+ }
4818
+ export declare class PreIPOCompanySPVPartnerApprovalApiResponse implements IPreIPOCompanySPVPartnerApprovalApiResponse {
4819
+ items?: PreIPOCompanySPVPartnerApproval[] | undefined;
4820
+ pagination?: Pagination | undefined;
4821
+ constructor(data?: IPreIPOCompanySPVPartnerApprovalApiResponse);
4822
+ init(_data?: any): void;
4823
+ static fromJS(data: any): PreIPOCompanySPVPartnerApprovalApiResponse;
4824
+ toJSON(data?: any): any;
4825
+ }
4826
+ export interface IPreIPOCompanySPVPartnerApprovalApiResponse {
4827
+ items?: PreIPOCompanySPVPartnerApproval[] | undefined;
4828
+ pagination?: Pagination | undefined;
4829
+ }
4701
4830
  export declare class ProblemDetails implements IProblemDetails {
4702
4831
  type?: string | undefined;
4703
4832
  title?: string | undefined;
@@ -6160,17 +6289,21 @@ export declare enum SortOrder15 {
6160
6289
  Ascending = "Ascending",
6161
6290
  Descending = "Descending"
6162
6291
  }
6292
+ export declare enum SortOrder16 {
6293
+ Ascending = "Ascending",
6294
+ Descending = "Descending"
6295
+ }
6163
6296
  export declare enum ResponsibleParty {
6164
6297
  Partner = "Partner",
6165
6298
  Monark = "Monark",
6166
6299
  Investor = "Investor",
6167
6300
  Advisor = "Advisor"
6168
6301
  }
6169
- export declare enum SortOrder16 {
6302
+ export declare enum SortOrder17 {
6170
6303
  Ascending = "Ascending",
6171
6304
  Descending = "Descending"
6172
6305
  }
6173
- export declare enum SortOrder17 {
6306
+ export declare enum SortOrder18 {
6174
6307
  Ascending = "Ascending",
6175
6308
  Descending = "Descending"
6176
6309
  }
package/dist/Client.js CHANGED
@@ -4714,6 +4714,332 @@ export class Client {
4714
4714
  }
4715
4715
  return Promise.resolve(null);
4716
4716
  }
4717
+ /**
4718
+ * Gets all SPVs that have been approved.
4719
+ * @param pageNumber (optional) Page number for pagination.
4720
+ * @param pageSize (optional) Page size for pagination.
4721
+ * @return Returns the list of approved SPVs.
4722
+ */
4723
+ spvs(pageNumber, pageSize) {
4724
+ let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/partner/spvs?";
4725
+ if (pageNumber === null)
4726
+ throw new Error("The parameter 'pageNumber' cannot be null.");
4727
+ else if (pageNumber !== undefined)
4728
+ url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
4729
+ if (pageSize === null)
4730
+ throw new Error("The parameter 'pageSize' cannot be null.");
4731
+ else if (pageSize !== undefined)
4732
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
4733
+ url_ = url_.replace(/[?&]$/, "");
4734
+ let options_ = {
4735
+ method: "GET",
4736
+ headers: {
4737
+ "Accept": "application/json"
4738
+ }
4739
+ };
4740
+ return this.http.fetch(url_, options_).then((_response) => {
4741
+ return this.processSpvs(_response);
4742
+ });
4743
+ }
4744
+ processSpvs(response) {
4745
+ const status = response.status;
4746
+ let _headers = {};
4747
+ if (response.headers && response.headers.forEach) {
4748
+ response.headers.forEach((v, k) => _headers[k] = v);
4749
+ }
4750
+ ;
4751
+ if (status === 200) {
4752
+ return response.text().then((_responseText) => {
4753
+ let result200 = null;
4754
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4755
+ result200 = PreIPOCompanySPVApiResponse.fromJS(resultData200);
4756
+ return result200;
4757
+ });
4758
+ }
4759
+ else if (status === 404) {
4760
+ return response.text().then((_responseText) => {
4761
+ let result404 = null;
4762
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4763
+ result404 = ProblemDetails.fromJS(resultData404);
4764
+ return throwException("Partner not found.", status, _responseText, _headers, result404);
4765
+ });
4766
+ }
4767
+ else if (status !== 200 && status !== 204) {
4768
+ return response.text().then((_responseText) => {
4769
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4770
+ });
4771
+ }
4772
+ return Promise.resolve(null);
4773
+ }
4774
+ /**
4775
+ * Checks if a specific SPV has been approved.
4776
+ * @param spvId ID of the SPV.
4777
+ * @return Returns whether approval exists.
4778
+ */
4779
+ isApproved(spvId) {
4780
+ let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/is-approved";
4781
+ if (spvId === undefined || spvId === null)
4782
+ throw new Error("The parameter 'spvId' must be defined.");
4783
+ url_ = url_.replace("{spvId}", encodeURIComponent("" + spvId));
4784
+ url_ = url_.replace(/[?&]$/, "");
4785
+ let options_ = {
4786
+ method: "GET",
4787
+ headers: {
4788
+ "Accept": "application/json"
4789
+ }
4790
+ };
4791
+ return this.http.fetch(url_, options_).then((_response) => {
4792
+ return this.processIsApproved(_response);
4793
+ });
4794
+ }
4795
+ processIsApproved(response) {
4796
+ const status = response.status;
4797
+ let _headers = {};
4798
+ if (response.headers && response.headers.forEach) {
4799
+ response.headers.forEach((v, k) => _headers[k] = v);
4800
+ }
4801
+ ;
4802
+ if (status === 200) {
4803
+ return response.text().then((_responseText) => {
4804
+ let result200 = null;
4805
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4806
+ result200 = resultData200 !== undefined ? resultData200 : null;
4807
+ return result200;
4808
+ });
4809
+ }
4810
+ else if (status === 404) {
4811
+ return response.text().then((_responseText) => {
4812
+ let result404 = null;
4813
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4814
+ result404 = ProblemDetails.fromJS(resultData404);
4815
+ return throwException("SPV or Partner not found.", status, _responseText, _headers, result404);
4816
+ });
4817
+ }
4818
+ else if (status !== 200 && status !== 204) {
4819
+ return response.text().then((_responseText) => {
4820
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4821
+ });
4822
+ }
4823
+ return Promise.resolve(null);
4824
+ }
4825
+ /**
4826
+ * Approves an SPV.
4827
+ * @param spvId ID of the SPV.
4828
+ * @param body (optional) Approval request containing optional notes.
4829
+ * @return SPV successfully approved.
4830
+ */
4831
+ approve(spvId, body) {
4832
+ let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/approve";
4833
+ if (spvId === undefined || spvId === null)
4834
+ throw new Error("The parameter 'spvId' must be defined.");
4835
+ url_ = url_.replace("{spvId}", encodeURIComponent("" + spvId));
4836
+ url_ = url_.replace(/[?&]$/, "");
4837
+ const content_ = JSON.stringify(body);
4838
+ let options_ = {
4839
+ body: content_,
4840
+ method: "PUT",
4841
+ headers: {
4842
+ "Content-Type": "application/json",
4843
+ "Accept": "application/json"
4844
+ }
4845
+ };
4846
+ return this.http.fetch(url_, options_).then((_response) => {
4847
+ return this.processApprove(_response);
4848
+ });
4849
+ }
4850
+ processApprove(response) {
4851
+ const status = response.status;
4852
+ let _headers = {};
4853
+ if (response.headers && response.headers.forEach) {
4854
+ response.headers.forEach((v, k) => _headers[k] = v);
4855
+ }
4856
+ ;
4857
+ if (status === 200) {
4858
+ return response.text().then((_responseText) => {
4859
+ let result200 = null;
4860
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4861
+ result200 = resultData200 !== undefined ? resultData200 : null;
4862
+ return result200;
4863
+ });
4864
+ }
4865
+ else if (status === 400) {
4866
+ return response.text().then((_responseText) => {
4867
+ let result400 = null;
4868
+ let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4869
+ result400 = ProblemDetails.fromJS(resultData400);
4870
+ return throwException("Bad request if required fields are missing.", status, _responseText, _headers, result400);
4871
+ });
4872
+ }
4873
+ else if (status === 404) {
4874
+ return response.text().then((_responseText) => {
4875
+ let result404 = null;
4876
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4877
+ result404 = ProblemDetails.fromJS(resultData404);
4878
+ return throwException("SPV not found.", status, _responseText, _headers, result404);
4879
+ });
4880
+ }
4881
+ else if (status !== 200 && status !== 204) {
4882
+ return response.text().then((_responseText) => {
4883
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4884
+ });
4885
+ }
4886
+ return Promise.resolve(null);
4887
+ }
4888
+ /**
4889
+ * Gets the approval record for a specific SPV.
4890
+ * @param spvId ID of the SPV.
4891
+ * @return Returns the approval record.
4892
+ */
4893
+ approval(spvId) {
4894
+ let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/spv/{spvId}/approval";
4895
+ if (spvId === undefined || spvId === null)
4896
+ throw new Error("The parameter 'spvId' must be defined.");
4897
+ url_ = url_.replace("{spvId}", encodeURIComponent("" + spvId));
4898
+ url_ = url_.replace(/[?&]$/, "");
4899
+ let options_ = {
4900
+ method: "GET",
4901
+ headers: {
4902
+ "Accept": "application/json"
4903
+ }
4904
+ };
4905
+ return this.http.fetch(url_, options_).then((_response) => {
4906
+ return this.processApproval(_response);
4907
+ });
4908
+ }
4909
+ processApproval(response) {
4910
+ const status = response.status;
4911
+ let _headers = {};
4912
+ if (response.headers && response.headers.forEach) {
4913
+ response.headers.forEach((v, k) => _headers[k] = v);
4914
+ }
4915
+ ;
4916
+ if (status === 200) {
4917
+ return response.text().then((_responseText) => {
4918
+ let result200 = null;
4919
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4920
+ result200 = PreIPOCompanySPVPartnerApproval.fromJS(resultData200);
4921
+ return result200;
4922
+ });
4923
+ }
4924
+ else if (status === 404) {
4925
+ return response.text().then((_responseText) => {
4926
+ let result404 = null;
4927
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4928
+ result404 = ProblemDetails.fromJS(resultData404);
4929
+ return throwException("SPV not found.", status, _responseText, _headers, result404);
4930
+ });
4931
+ }
4932
+ else if (status !== 200 && status !== 204) {
4933
+ return response.text().then((_responseText) => {
4934
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4935
+ });
4936
+ }
4937
+ return Promise.resolve(null);
4938
+ }
4939
+ /**
4940
+ * Gets an approval record by Id.
4941
+ * @return Returns an approval record.
4942
+ */
4943
+ preIpoCompanySpvPartnerApproval(approvalId) {
4944
+ let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval/{approvalId}";
4945
+ if (approvalId === undefined || approvalId === null)
4946
+ throw new Error("The parameter 'approvalId' must be defined.");
4947
+ url_ = url_.replace("{approvalId}", encodeURIComponent("" + approvalId));
4948
+ url_ = url_.replace(/[?&]$/, "");
4949
+ let options_ = {
4950
+ method: "GET",
4951
+ headers: {
4952
+ "Accept": "application/json"
4953
+ }
4954
+ };
4955
+ return this.http.fetch(url_, options_).then((_response) => {
4956
+ return this.processPreIpoCompanySpvPartnerApproval(_response);
4957
+ });
4958
+ }
4959
+ processPreIpoCompanySpvPartnerApproval(response) {
4960
+ const status = response.status;
4961
+ let _headers = {};
4962
+ if (response.headers && response.headers.forEach) {
4963
+ response.headers.forEach((v, k) => _headers[k] = v);
4964
+ }
4965
+ ;
4966
+ if (status === 404) {
4967
+ return response.text().then((_responseText) => {
4968
+ let result404 = null;
4969
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4970
+ result404 = ProblemDetails.fromJS(resultData404);
4971
+ return throwException("Not Found", status, _responseText, _headers, result404);
4972
+ });
4973
+ }
4974
+ else if (status === 200) {
4975
+ return response.text().then((_responseText) => {
4976
+ let result200 = null;
4977
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4978
+ result200 = PreIPOCompanySPVPartnerApproval.fromJS(resultData200);
4979
+ return result200;
4980
+ });
4981
+ }
4982
+ else if (status !== 200 && status !== 204) {
4983
+ return response.text().then((_responseText) => {
4984
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4985
+ });
4986
+ }
4987
+ return Promise.resolve(null);
4988
+ }
4989
+ /**
4990
+ * Gets all approval records with optional filtering.
4991
+ * @param pageNumber (optional) Page number for pagination.
4992
+ * @param pageSize (optional) Page size for pagination.
4993
+ * @param sortOrder (optional) Sort order for results.
4994
+ * @return Returns the list of approval records.
4995
+ */
4996
+ preIpoCompanySpvPartnerApproval2(pageNumber, pageSize, sortOrder) {
4997
+ let url_ = this.baseUrl + "/primary/v1/pre-ipo-company-spv-partner-approval?";
4998
+ if (pageNumber === null)
4999
+ throw new Error("The parameter 'pageNumber' cannot be null.");
5000
+ else if (pageNumber !== undefined)
5001
+ url_ += "pageNumber=" + encodeURIComponent("" + pageNumber) + "&";
5002
+ if (pageSize === null)
5003
+ throw new Error("The parameter 'pageSize' cannot be null.");
5004
+ else if (pageSize !== undefined)
5005
+ url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
5006
+ if (sortOrder === null)
5007
+ throw new Error("The parameter 'sortOrder' cannot be null.");
5008
+ else if (sortOrder !== undefined)
5009
+ url_ += "sortOrder=" + encodeURIComponent("" + sortOrder) + "&";
5010
+ url_ = url_.replace(/[?&]$/, "");
5011
+ let options_ = {
5012
+ method: "GET",
5013
+ headers: {
5014
+ "Accept": "application/json"
5015
+ }
5016
+ };
5017
+ return this.http.fetch(url_, options_).then((_response) => {
5018
+ return this.processPreIpoCompanySpvPartnerApproval2(_response);
5019
+ });
5020
+ }
5021
+ processPreIpoCompanySpvPartnerApproval2(response) {
5022
+ const status = response.status;
5023
+ let _headers = {};
5024
+ if (response.headers && response.headers.forEach) {
5025
+ response.headers.forEach((v, k) => _headers[k] = v);
5026
+ }
5027
+ ;
5028
+ if (status === 200) {
5029
+ return response.text().then((_responseText) => {
5030
+ let result200 = null;
5031
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5032
+ result200 = PreIPOCompanySPVPartnerApprovalApiResponse.fromJS(resultData200);
5033
+ return result200;
5034
+ });
5035
+ }
5036
+ else if (status !== 200 && status !== 204) {
5037
+ return response.text().then((_responseText) => {
5038
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5039
+ });
5040
+ }
5041
+ return Promise.resolve(null);
5042
+ }
4717
5043
  /**
4718
5044
  * @param body (optional)
4719
5045
  * @return Created
@@ -6525,6 +6851,9 @@ export class BulkPreIPOCompanySPV {
6525
6851
  this.investorPricePerShare = _data["investorPricePerShare"];
6526
6852
  this.investorFeePerShare = _data["investorFeePerShare"];
6527
6853
  this.allInPricePerShare = _data["allInPricePerShare"];
6854
+ this.fundAdminExpense = _data["fundAdminExpense"];
6855
+ this.expenseReserve = _data["expenseReserve"];
6856
+ this.holdbackEnabled = _data["holdbackEnabled"];
6528
6857
  if (Array.isArray(_data["documents"])) {
6529
6858
  this.documents = [];
6530
6859
  for (let item of _data["documents"])
@@ -6539,6 +6868,7 @@ export class BulkPreIPOCompanySPV {
6539
6868
  this.coManagers.push(Partner.fromJS(item));
6540
6869
  }
6541
6870
  this.carry = _data["carry"];
6871
+ this.goLiveDate = _data["goLiveDate"] ? new Date(_data["goLiveDate"].toString()) : undefined;
6542
6872
  if (Array.isArray(_data["allowedFinancialInstitutions"])) {
6543
6873
  this.allowedFinancialInstitutions = [];
6544
6874
  for (let item of _data["allowedFinancialInstitutions"])
@@ -6591,6 +6921,9 @@ export class BulkPreIPOCompanySPV {
6591
6921
  data["investorPricePerShare"] = this.investorPricePerShare;
6592
6922
  data["investorFeePerShare"] = this.investorFeePerShare;
6593
6923
  data["allInPricePerShare"] = this.allInPricePerShare;
6924
+ data["fundAdminExpense"] = this.fundAdminExpense;
6925
+ data["expenseReserve"] = this.expenseReserve;
6926
+ data["holdbackEnabled"] = this.holdbackEnabled;
6594
6927
  if (Array.isArray(this.documents)) {
6595
6928
  data["documents"] = [];
6596
6929
  for (let item of this.documents)
@@ -6605,6 +6938,7 @@ export class BulkPreIPOCompanySPV {
6605
6938
  data["coManagers"].push(item.toJSON());
6606
6939
  }
6607
6940
  data["carry"] = this.carry;
6941
+ data["goLiveDate"] = this.goLiveDate ? formatDate(this.goLiveDate) : undefined;
6608
6942
  if (Array.isArray(this.allowedFinancialInstitutions)) {
6609
6943
  data["allowedFinancialInstitutions"] = [];
6610
6944
  for (let item of this.allowedFinancialInstitutions)
@@ -6839,6 +7173,32 @@ export class CreateInvestorSubscription {
6839
7173
  return data;
6840
7174
  }
6841
7175
  }
7176
+ export class CreatePreIPOCompanySPVPartnerApproval {
7177
+ constructor(data) {
7178
+ if (data) {
7179
+ for (var property in data) {
7180
+ if (data.hasOwnProperty(property))
7181
+ this[property] = data[property];
7182
+ }
7183
+ }
7184
+ }
7185
+ init(_data) {
7186
+ if (_data) {
7187
+ this.notes = _data["notes"];
7188
+ }
7189
+ }
7190
+ static fromJS(data) {
7191
+ data = typeof data === 'object' ? data : {};
7192
+ let result = new CreatePreIPOCompanySPVPartnerApproval();
7193
+ result.init(data);
7194
+ return result;
7195
+ }
7196
+ toJSON(data) {
7197
+ data = typeof data === 'object' ? data : {};
7198
+ data["notes"] = this.notes;
7199
+ return data;
7200
+ }
7201
+ }
6842
7202
  /** Create Questionnaire allows the creation of a questionaire with the primary offerring. */
6843
7203
  export class CreateQuestionnaire {
6844
7204
  constructor(data) {
@@ -7972,6 +8332,8 @@ export class InvestorSubscription {
7972
8332
  this.updatedAt = _data["updatedAt"] ? new Date(_data["updatedAt"].toString()) : undefined;
7973
8333
  this.partnerName = _data["partnerName"];
7974
8334
  this.investorName = _data["investorName"];
8335
+ this.spvName = _data["spvName"];
8336
+ this.companyName = _data["companyName"];
7975
8337
  this.orderReferenceId = _data["orderReferenceId"];
7976
8338
  }
7977
8339
  }
@@ -7993,6 +8355,8 @@ export class InvestorSubscription {
7993
8355
  data["updatedAt"] = this.updatedAt ? this.updatedAt.toISOString() : undefined;
7994
8356
  data["partnerName"] = this.partnerName;
7995
8357
  data["investorName"] = this.investorName;
8358
+ data["spvName"] = this.spvName;
8359
+ data["companyName"] = this.companyName;
7996
8360
  data["orderReferenceId"] = this.orderReferenceId;
7997
8361
  return data;
7998
8362
  }
@@ -10092,6 +10456,9 @@ export class PreIPOCompanySPV {
10092
10456
  this.investorPricePerShare = _data["investorPricePerShare"];
10093
10457
  this.investorFeePerShare = _data["investorFeePerShare"];
10094
10458
  this.allInPricePerShare = _data["allInPricePerShare"];
10459
+ this.fundAdminExpense = _data["fundAdminExpense"];
10460
+ this.expenseReserve = _data["expenseReserve"];
10461
+ this.holdbackEnabled = _data["holdbackEnabled"];
10095
10462
  if (Array.isArray(_data["documents"])) {
10096
10463
  this.documents = [];
10097
10464
  for (let item of _data["documents"])
@@ -10106,6 +10473,7 @@ export class PreIPOCompanySPV {
10106
10473
  this.coManagers.push(Partner.fromJS(item));
10107
10474
  }
10108
10475
  this.carry = _data["carry"];
10476
+ this.goLiveDate = _data["goLiveDate"] ? new Date(_data["goLiveDate"].toString()) : undefined;
10109
10477
  }
10110
10478
  }
10111
10479
  static fromJS(data) {
@@ -10153,6 +10521,9 @@ export class PreIPOCompanySPV {
10153
10521
  data["investorPricePerShare"] = this.investorPricePerShare;
10154
10522
  data["investorFeePerShare"] = this.investorFeePerShare;
10155
10523
  data["allInPricePerShare"] = this.allInPricePerShare;
10524
+ data["fundAdminExpense"] = this.fundAdminExpense;
10525
+ data["expenseReserve"] = this.expenseReserve;
10526
+ data["holdbackEnabled"] = this.holdbackEnabled;
10156
10527
  if (Array.isArray(this.documents)) {
10157
10528
  data["documents"] = [];
10158
10529
  for (let item of this.documents)
@@ -10167,6 +10538,7 @@ export class PreIPOCompanySPV {
10167
10538
  data["coManagers"].push(item.toJSON());
10168
10539
  }
10169
10540
  data["carry"] = this.carry;
10541
+ data["goLiveDate"] = this.goLiveDate ? formatDate(this.goLiveDate) : undefined;
10170
10542
  return data;
10171
10543
  }
10172
10544
  }
@@ -10206,6 +10578,80 @@ export class PreIPOCompanySPVApiResponse {
10206
10578
  return data;
10207
10579
  }
10208
10580
  }
10581
+ export class PreIPOCompanySPVPartnerApproval {
10582
+ constructor(data) {
10583
+ if (data) {
10584
+ for (var property in data) {
10585
+ if (data.hasOwnProperty(property))
10586
+ this[property] = data[property];
10587
+ }
10588
+ }
10589
+ }
10590
+ init(_data) {
10591
+ if (_data) {
10592
+ this.id = _data["id"];
10593
+ this.preIPOCompanySPVId = _data["preIPOCompanySPVId"];
10594
+ this.partnerId = _data["partnerId"];
10595
+ this.isApproved = _data["isApproved"];
10596
+ this.notes = _data["notes"];
10597
+ this.createdAt = _data["createdAt"] ? new Date(_data["createdAt"].toString()) : undefined;
10598
+ this.updatedAt = _data["updatedAt"] ? new Date(_data["updatedAt"].toString()) : undefined;
10599
+ }
10600
+ }
10601
+ static fromJS(data) {
10602
+ data = typeof data === 'object' ? data : {};
10603
+ let result = new PreIPOCompanySPVPartnerApproval();
10604
+ result.init(data);
10605
+ return result;
10606
+ }
10607
+ toJSON(data) {
10608
+ data = typeof data === 'object' ? data : {};
10609
+ data["id"] = this.id;
10610
+ data["preIPOCompanySPVId"] = this.preIPOCompanySPVId;
10611
+ data["partnerId"] = this.partnerId;
10612
+ data["isApproved"] = this.isApproved;
10613
+ data["notes"] = this.notes;
10614
+ data["createdAt"] = this.createdAt ? this.createdAt.toISOString() : undefined;
10615
+ data["updatedAt"] = this.updatedAt ? this.updatedAt.toISOString() : undefined;
10616
+ return data;
10617
+ }
10618
+ }
10619
+ export class PreIPOCompanySPVPartnerApprovalApiResponse {
10620
+ constructor(data) {
10621
+ if (data) {
10622
+ for (var property in data) {
10623
+ if (data.hasOwnProperty(property))
10624
+ this[property] = data[property];
10625
+ }
10626
+ }
10627
+ }
10628
+ init(_data) {
10629
+ if (_data) {
10630
+ if (Array.isArray(_data["items"])) {
10631
+ this.items = [];
10632
+ for (let item of _data["items"])
10633
+ this.items.push(PreIPOCompanySPVPartnerApproval.fromJS(item));
10634
+ }
10635
+ this.pagination = _data["pagination"] ? Pagination.fromJS(_data["pagination"]) : undefined;
10636
+ }
10637
+ }
10638
+ static fromJS(data) {
10639
+ data = typeof data === 'object' ? data : {};
10640
+ let result = new PreIPOCompanySPVPartnerApprovalApiResponse();
10641
+ result.init(data);
10642
+ return result;
10643
+ }
10644
+ toJSON(data) {
10645
+ data = typeof data === 'object' ? data : {};
10646
+ if (Array.isArray(this.items)) {
10647
+ data["items"] = [];
10648
+ for (let item of this.items)
10649
+ data["items"].push(item.toJSON());
10650
+ }
10651
+ data["pagination"] = this.pagination ? this.pagination.toJSON() : undefined;
10652
+ return data;
10653
+ }
10654
+ }
10209
10655
  export class ProblemDetails {
10210
10656
  constructor(data) {
10211
10657
  if (data) {
@@ -11842,6 +12288,11 @@ export var SortOrder15;
11842
12288
  SortOrder15["Ascending"] = "Ascending";
11843
12289
  SortOrder15["Descending"] = "Descending";
11844
12290
  })(SortOrder15 || (SortOrder15 = {}));
12291
+ export var SortOrder16;
12292
+ (function (SortOrder16) {
12293
+ SortOrder16["Ascending"] = "Ascending";
12294
+ SortOrder16["Descending"] = "Descending";
12295
+ })(SortOrder16 || (SortOrder16 = {}));
11845
12296
  export var ResponsibleParty;
11846
12297
  (function (ResponsibleParty) {
11847
12298
  ResponsibleParty["Partner"] = "Partner";
@@ -11849,16 +12300,16 @@ export var ResponsibleParty;
11849
12300
  ResponsibleParty["Investor"] = "Investor";
11850
12301
  ResponsibleParty["Advisor"] = "Advisor";
11851
12302
  })(ResponsibleParty || (ResponsibleParty = {}));
11852
- export var SortOrder16;
11853
- (function (SortOrder16) {
11854
- SortOrder16["Ascending"] = "Ascending";
11855
- SortOrder16["Descending"] = "Descending";
11856
- })(SortOrder16 || (SortOrder16 = {}));
11857
12303
  export var SortOrder17;
11858
12304
  (function (SortOrder17) {
11859
12305
  SortOrder17["Ascending"] = "Ascending";
11860
12306
  SortOrder17["Descending"] = "Descending";
11861
12307
  })(SortOrder17 || (SortOrder17 = {}));
12308
+ export var SortOrder18;
12309
+ (function (SortOrder18) {
12310
+ SortOrder18["Ascending"] = "Ascending";
12311
+ SortOrder18["Descending"] = "Descending";
12312
+ })(SortOrder18 || (SortOrder18 = {}));
11862
12313
  export var EventType;
11863
12314
  (function (EventType) {
11864
12315
  EventType["PreIPOCompany"] = "PreIPOCompany";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monarkmarkets/api-client",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",