{ "version": 3, "sources": ["src/app/dashboard/assets/GpAssetReqRes.model.ts", "src/app/services/gp/gp-asset-data.service.ts"], "sourcesContent": ["import {HoldingFileReqRes} from 'src/app/dashboard/shared/holding/HoldingFileReqRes.model';\nimport {ProjectedPerformance} from 'src/app/shared/models/ProjectedPerformance.model';\nimport {LenderInformation} from 'src/app/shared/models/LenderInformation.model';\nimport {CurrencyModel} from 'src/app/shared/models/CurrencyModel';\nimport InvestmentType from 'src/app/shared/enums/InvestmentType.enum';\nimport AreaUnit from 'src/app/shared/enums/AreaUnit.enum';\nimport {ProjectBudget} from 'src/app/shared/models/ProjectBudget.model';\nimport {GpFundReqRes} from '../funds/GpFundReqRes.model';\nimport InvestmentSecurityType from 'src/app/shared/enums/InvestmentSecurityType.enum';\nimport {GpHoldingListItemReqRes} from '../shared/holding/GpHoldingListItem.model';\nimport {GpHolding} from '../shared/holding/GpHolding.model';\nimport { CommitmentsEnabled } from 'src/app/shared/enums/CommitmentsEnabled.enum';\nimport { OwnershipCalculationType } from 'src/app/shared/enums/OwnershipCalculationType.enum';\nimport { LpOwnershipVisibility } from 'src/app/shared/enums/LpOwnershipVisibility.enum';\n\nexport class GpAssetListItemReqRes extends GpHoldingListItemReqRes {\n public email: string;\n public isCollectDeposists: boolean;\n public canSetAsPrivate: boolean;\n public attachments: HoldingFileReqRes[];\n\n // Front only property:\n public isExampleAsset = false;\n\n public percentsFunded: number;\n public fundraisingTargetAmount: number;\n public initialCurrency: CurrencyModel;\n public estimatedClosingDate: Date;\n}\n\nexport class GpAssetReqRes extends GpHolding {\n public isCollectDeposists: boolean;\n public canSetAsPrivate: boolean;\n\n // Front only property:\n public isExampleAsset = false;\n\n public investmentType: InvestmentType;\n public investmentTypeOther: string;\n public legalName: string;\n\n public areaUnits: AreaUnit;\n public lotSizeArea: number;\n public stories: number;\n public residentialUnits: number;\n public retailUnits: number;\n public rooms: number;\n public grossBuildingArea: number;\n public residentialNetSellableArea: number;\n public retailNetSellableArea: number;\n public numberOfSites: number;\n\n public projectedPerformance: ProjectedPerformance;\n public lenderInformation: LenderInformation;\n\n public projectBudgetOriginal: ProjectBudget;\n public projectBudgetUpdated: ProjectBudget;\n\n public fundId: number;\n public fund: GpFundReqRes;\n\n public initialSecurityType: InvestmentSecurityType;\n\n // #region Cumulative information:\n\n public plannedCostsToDate: number;\n public actualCostsToDate: number;\n\n public outstandingLoanAmountToDate: number;\n\n public gpEquityFromTotalEquity: number;\n public estimatedMarketValue: number;\n\n public constructionStartDate: Date;\n public constructionEndDate: Date;\n\n public cumulativeProjectedPerformance: ProjectedPerformance;\n // #endregion\n\n public initialCurrency: CurrencyModel;\n public initialCurrencyId: number;\n\n\n public commitmentsEnabled: CommitmentsEnabled;\n public ownershipCalculationType: OwnershipCalculationType;\n public lpOwnershipVisibility: LpOwnershipVisibility;\n public displayCommitments: boolean;\n}\n\n", "import { inject, Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, map, retryWhen, shareReplay, tap } from 'rxjs/operators';\n\nimport { AssetPollingReqRes } from 'src/app/dashboard/assets/AssetPollingReqRes.model';\nimport { AssetAndFundraisingReqRes } from 'src/app/dashboard/assets/components/create-asset/AssetAndFundraisingRequest';\nimport { GpAssetListItemReqRes, GpAssetReqRes } from 'src/app/dashboard/assets/GpAssetReqRes.model';\nimport { GpHoldingListItemReqRes } from 'src/app/dashboard/shared/holding/GpHoldingListItem.model';\nimport { HttpService } from 'src/app/services/http.service';\nimport AssetOrderBy from 'src/app/shared/enums/AssetOrderBy.enum';\nimport { CustomFieldsGroupNameType } from 'src/app/shared/enums/CustomFieldsType.enum';\nimport HoldingDiscriminator from 'src/app/shared/enums/HoldingDiscriminator.enum';\nimport HoldingStatus from 'src/app/shared/enums/HoldingStatus.enum';\nimport HTTP_STATUS_CODES from 'src/app/shared/enums/HttpStatusCodesEnum';\nimport { GpAssetOverviewItemReqRes } from '../../dashboard/assets/GpAssetOverviewItemReqRes';\nimport { IdValue } from '../../shared/models/IdValue.model';\nimport { RoutingService } from '../routing.service';\n\n@Injectable()\nexport class GpAssetDataService {\n private readonly ASSET_BASE_ENDPOINT = 'gp/assets';\n private readonly CREATE_ASSET_ENDPOINT = this.ASSET_BASE_ENDPOINT;\n private readonly discriminator = HoldingDiscriminator.Asset;\n\n private readonly http: HttpService = inject(HttpService);\n private readonly router: Router = inject(Router);\n private readonly routingService: RoutingService = inject(RoutingService);\n\n getAssetsList(orderBy: AssetOrderBy = AssetOrderBy.CreatedDateNewerFirst): Observable {\n return this.http.getTyped(`${this.ASSET_BASE_ENDPOINT}?orderBy=${orderBy}`).pipe(\n map(assets => assets.map(asset =>\n ({...asset, discriminator: this.discriminator}))),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n getDealsList(orderBy: AssetOrderBy = AssetOrderBy.NameAsc): Observable {\n return this.http.getTyped(`${this.ASSET_BASE_ENDPOINT}/overview?orderBy=${orderBy}`).pipe(\n map(assets => assets?.map(asset =>\n ({...asset, discriminator: this.discriminator}))),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n getDealsBalances(): Observable[]> {\n return this.http.getTyped[]>(`${this.ASSET_BASE_ENDPOINT}/overview/balances`).pipe(\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n detectChanges(assetId: number, fundraisingId: number, distributionId: number, changedSince: Date): Observable {\n const pollRequest = {\n fundraisingId,\n distributionId,\n changedSince\n };\n\n return this.http\n .postTyped(`${this.ASSET_BASE_ENDPOINT}/${assetId}/detectChanges`, pollRequest)\n .pipe(\n map(response => {\n return response ? ({\n ...response,\n assetDetails: this.addDiscriminatorToAsset(response.assetDetails)\n }) : null}),\n retryWhen(error =>\n error.pipe(\n tap(err => {\n if (err.status !== 0) { // When Azure app service reaches timeout (230 seconds) error received with 0 status\n throw error;\n }\n })\n )),\n catchError(err => {\n // if (err.status === 0) {\n // console.log('detect changes request has failed');\n // return this.detectChanges(assetId, fundraisingId, changedSince);\n // }\n // else\n if (err.status === HTTP_STATUS_CODES.NOT_FOUND) {\n // if asset polling (initial fundraising): return to assets list\n if (fundraisingId === 0) {\n this.router.navigateByUrl(this.routingService.gpAssetsPage);\n } else {\n this.router.navigateByUrl(this.routingService.gpAssetPage(assetId));\n }\n }\n return throwError(() => err);\n })\n );\n }\n\n getAssetById(assetId: number): Observable {\n const url = `${this.ASSET_BASE_ENDPOINT}/${assetId}`;\n return this.http.getTyped(url).pipe(\n map(asset => this.addDiscriminatorToAsset(asset)),\n shareReplay());\n }\n\n createAsset(model: AssetAndFundraisingReqRes): Observable {\n return this.http.postTyped(this.CREATE_ASSET_ENDPOINT, model).pipe(\n map(response => this.addDiscriminatorToAssetAndFundraising(response)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n createFundAsset(model: GpAssetReqRes): Observable {\n return this.http.postTyped(`${this.CREATE_ASSET_ENDPOINT}/fund-asset`, model).pipe(\n map(asset => this.addDiscriminatorToAsset(asset)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n createDraftAsset(model: GpAssetReqRes): Observable {\n return this.http.postTyped(`${this.CREATE_ASSET_ENDPOINT}/draft`, model).pipe(\n map(asset => this.addDiscriminatorToAsset(asset)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n updateAsset(assetId: number, model: AssetAndFundraisingReqRes, skipNotification = false): Observable {\n return this.http.putTyped(`${this.ASSET_BASE_ENDPOINT}/${assetId}?skipNotification=${skipNotification}`, model).pipe(\n map(response => this.addDiscriminatorToAssetAndFundraising(response)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n updateFundAsset(assetId: number, model: GpAssetReqRes, skipNotification = false): Observable {\n return this.http.putTyped(`${this.ASSET_BASE_ENDPOINT}/fund-asset/${assetId}?skipNotification=${skipNotification}`, model).pipe(\n map(asset => this.addDiscriminatorToAsset(asset)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n updateAssetVisibility(model: GpAssetOverviewItemReqRes): Observable {\n return this.http.putTyped(`${this.ASSET_BASE_ENDPOINT}/visibility`, model).pipe(\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n updateDraftAsset(assetId: number, model: GpAssetReqRes): Observable {\n return this.http.putTyped(`${this.ASSET_BASE_ENDPOINT}/draft/${assetId}`, model).pipe(\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n /** Create the initial fundraising and move the asset to fundraising status */\n moveAssetToFundraising(assetId: number, model: AssetAndFundraisingReqRes): Observable {\n return this.http.postTyped(`${this.ASSET_BASE_ENDPOINT}/${assetId}/move-to-fundraising`, model).pipe(\n map(response => this.addDiscriminatorToAssetAndFundraising(response)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n moveAssetToUnderManagement(assetId: number, model: AssetAndFundraisingReqRes): Observable {\n return this.http.patchTyped(`${this.ASSET_BASE_ENDPOINT}/${assetId}/move-to-under-management`, model).pipe(\n map(response => this.addDiscriminatorToAssetAndFundraising(response)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n moveFundraisingToCompleted(assetId: number, model: AssetAndFundraisingReqRes): Observable {\n return this.http.patchTyped(`${this.ASSET_BASE_ENDPOINT}/${assetId}/move-fundraising-to-completed`, model).pipe(\n map(response => this.addDiscriminatorToAssetAndFundraising(response)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n updateStatus(assetId: number, holdingStatus: HoldingStatus, draftSendEmailsWhenMovingToUnderManagement = false) {\n const model = new GpAssetReqRes();\n model.id = assetId;\n model.status = holdingStatus;\n return this.http.putTyped(\n `${this.ASSET_BASE_ENDPOINT}/${assetId}/status?sendEmails=${draftSendEmailsWhenMovingToUnderManagement}`, model)\n .pipe(\n map(asset => this.addDiscriminatorToAsset(asset)),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n deleteAsset(assetId: number) {\n return this.http.deleteTyped(`${this.ASSET_BASE_ENDPOINT}/${assetId}`).pipe(\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n isAssetNameExists(assetName: string, assetIdToExclude: number = 0) {\n assetName = assetName.trim();\n const url = `${this.ASSET_BASE_ENDPOINT}/asset-name-exists-check`;\n return this.http.postTyped(url, {assetName, assetIdToExclude}).pipe(shareReplay(1));\n }\n\n getCustomFieldsSuggestions(groupNames: Array): Observable<{[key in CustomFieldsGroupNameType]: Array<{name: string}>}> { \n return this.http.getTyped(`custom-fields/name-suggestions?entityType=Asset&groupNames=${groupNames.join(',')}`).pipe(\n map(response => response?.groupSuggestions),\n catchError(err => {\n return throwError(() => err);\n })\n );\n }\n\n private addDiscriminatorToAsset(asset: GpHoldingListItemReqRes) {\n return {...asset, discriminator: this.discriminator} as GpAssetReqRes;\n }\n\n private addDiscriminatorToAssetAndFundraising(assetAndFundraising: AssetAndFundraisingReqRes) {\n return {\n ...assetAndFundraising,\n asset: this.addDiscriminatorToAsset(assetAndFundraising.asset)\n } as AssetAndFundraisingReqRes;\n }\n}\n"], "mappings": "4PA8BM,IAAOA,EAAP,cAA6BC,CAAS,CAA5CC,aAAA,qBAKS,KAAAC,eAAiB,EAoD1B,GCnEA,IAAaC,GAAkB,IAAA,CAAzB,IAAOA,EAAP,MAAOA,CAAkB,CAD/BC,aAAA,CAEmB,KAAAC,oBAAsB,YACtB,KAAAC,sBAAwB,KAAKD,oBAC7B,KAAAE,cAAgBC,EAAqBC,MAErC,KAAAC,KAAoBC,EAAOC,CAAW,EACtC,KAAAC,OAAiBF,EAAOG,CAAM,EAC9B,KAAAC,eAAiCJ,EAAOK,CAAc,EAEvEC,cAAcC,EAAwBC,EAAaC,sBAAqB,CACtE,OAAO,KAAKV,KAAKW,SAAkC,GAAG,KAAKhB,mBAAmB,YAAYa,CAAO,EAAE,EAAEI,KACnGC,EAAIC,GAAUA,EAAOD,IAA2BE,GAC7CC,EAAAC,EAAA,GAAIF,GAAJ,CAAWlB,cAAe,KAAKA,aAAa,EAAE,CAAC,EAClDqB,EAAWC,GACFC,EAAW,IAAMD,CAAG,CAC5B,CAAC,CAEN,CAEAE,aAAab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ASSET_BASE_ENDPOINT", "CREATE_ASSET_ENDPOINT", "discriminator", "HoldingDiscriminator", "Asset", "http", "inject", "HttpService", "router", "Router", "routingService", "RoutingService", "getAssetsList", "orderBy", "AssetOrderBy", "CreatedDateNewerFirst", "getTyped", "pipe", "map", "assets", "asset", "__spreadProps", "__spreadValues", "catchError", "err", "throwError", "getDealsList", "NameAsc", "getDealsBalances", "detectChanges", "assetId", "fundraisingId", "distributionId", "changedSince", "pollRequest", "postTyped", "response", "assetDetails", "addDiscriminatorToAsset", "retryWhen", "error", "tap", "status", "navigateByUrl", "gpAssetsPage", "gpAssetPage", "getAssetById", "url", "shareReplay", "createAsset", "model", "addDiscriminatorToAssetAndFundraising", "createFundAsset", "createDraftAsset", "updateAsset", "skipNotification", "putTyped", "updateFundAsset", "updateAssetVisibility", "updateDraftAsset", "moveAssetToFundraising", "moveAssetToUnderManagement", "patchTyped", "moveFundraisingToCompleted", "updateStatus", "holdingStatus", "draftSendEmailsWhenMovingToUnderManagement", "GpAssetReqRes", "id", "deleteAsset", "deleteTyped", "isAssetNameExists", "assetName", "assetIdToExclude", "trim", "getCustomFieldsSuggestions", "groupNames", "join", "groupSuggestions", "assetAndFundraising", "factory", "\u0275fac", "_GpAssetDataService"] }