@ballistix.digital/types-waardering-tool-react 0.13.51 → 0.13.52

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.
@@ -11,7 +11,9 @@ export declare class DcfValuationDto extends DcfValuationDto_base {
11
11
  terminalValueGrowthRate: number;
12
12
  futureCapex?: number;
13
13
  restatedNbkb: boolean;
14
- restatedNbkbRatio?: number;
14
+ restatedNbkbByValue: boolean;
15
+ restatedNbkbRatio?: number | null;
16
+ restatedNbkbValue?: number | null;
15
17
  riskFreeRate: number;
16
18
  marketRiskPremium?: number;
17
19
  unleveredMarketBeta?: number;
@@ -68,10 +68,38 @@ __decorate([
68
68
  __metadata("design:type", Boolean)
69
69
  ], DcfValuationDto.prototype, "restatedNbkb", void 0);
70
70
  __decorate([
71
- (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
71
+ (0, nestjs_1.ApiProperty)({
72
+ type: Boolean,
73
+ required: true,
74
+ description: 'Which field the valuator picked to restate by: true for ' +
75
+ 'restatedNbkbValue, false for restatedNbkbRatio.',
76
+ }),
77
+ (0, class_transformer_1.Expose)(),
78
+ __metadata("design:type", Boolean)
79
+ ], DcfValuationDto.prototype, "restatedNbkbByValue", void 0);
80
+ __decorate([
81
+ (0, nestjs_1.ApiProperty)({
82
+ type: Number,
83
+ required: false,
84
+ nullable: true,
85
+ description: 'As stored: only set when restatedNbkbByValue is false. Read the ' +
86
+ 'live pair (whichever this valuation restated by, and its derived ' +
87
+ 'counterpart) from the dcfNbkbRestatement embed instead.',
88
+ }),
72
89
  (0, class_transformer_1.Expose)(),
73
90
  __metadata("design:type", Number)
74
91
  ], DcfValuationDto.prototype, "restatedNbkbRatio", void 0);
92
+ __decorate([
93
+ (0, nestjs_1.ApiProperty)({
94
+ type: Number,
95
+ required: false,
96
+ nullable: true,
97
+ description: 'As stored, in euro cents: only set when restatedNbkbByValue is ' +
98
+ 'true. Read the live pair from the dcfNbkbRestatement embed instead.',
99
+ }),
100
+ (0, class_transformer_1.Expose)(),
101
+ __metadata("design:type", Number)
102
+ ], DcfValuationDto.prototype, "restatedNbkbValue", void 0);
75
103
  __decorate([
76
104
  (0, nestjs_1.ApiProperty)({ type: Number, required: true }),
77
105
  (0, class_transformer_1.Expose)(),
@@ -4,6 +4,7 @@ import { DcfProjectionDto } from './view/dcfProjection.dto';
4
4
  import { DcfResultDto } from './view/dcfResult.dto';
5
5
  import { DcfNbkbDto } from './view/dcfNbkb.dto';
6
6
  import { DcfNbkbCorrectionTotalDto } from './view/dcfNbkbCorrectionTotal.dto';
7
+ import { DcfNbkbRestatementDto } from './view/dcfNbkbRestatement.dto';
7
8
  import { DcfFixedAssetDto } from '../dcfFixedAsset/dcfFixedAsset.dto';
8
9
  import { DcfHistoricalInvestmentDto } from '../dcfHistoricalInvestment/dcfHistoricalInvestment.dto';
9
10
  import { DcfNonCashIncomeDto } from '../dcfNonCashIncome/dcfNonCashIncome.dto';
@@ -12,6 +13,7 @@ export declare class DcfValuationEmbeddedDto {
12
13
  valuation?: ValuationDto;
13
14
  projections?: DcfProjectionDto[];
14
15
  result?: DcfResultDto;
16
+ dcfNbkbRestatement?: DcfNbkbRestatementDto;
15
17
  dcfNbkbs?: DcfNbkbDto[];
16
18
  dcfNbkbCorrectionTotals?: DcfNbkbCorrectionTotalDto[];
17
19
  dcfFixedAssets?: DcfFixedAssetDto[];
@@ -18,6 +18,7 @@ const dcfProjection_dto_1 = require("./view/dcfProjection.dto");
18
18
  const dcfResult_dto_1 = require("./view/dcfResult.dto");
19
19
  const dcfNbkb_dto_1 = require("./view/dcfNbkb.dto");
20
20
  const dcfNbkbCorrectionTotal_dto_1 = require("./view/dcfNbkbCorrectionTotal.dto");
21
+ const dcfNbkbRestatement_dto_1 = require("./view/dcfNbkbRestatement.dto");
21
22
  const dcfFixedAsset_dto_1 = require("../dcfFixedAsset/dcfFixedAsset.dto");
22
23
  const dcfHistoricalInvestment_dto_1 = require("../dcfHistoricalInvestment/dcfHistoricalInvestment.dto");
23
24
  const dcfNonCashIncome_dto_1 = require("../dcfNonCashIncome/dcfNonCashIncome.dto");
@@ -43,6 +44,12 @@ __decorate([
43
44
  (0, class_transformer_1.Expose)(),
44
45
  __metadata("design:type", dcfResult_dto_1.DcfResultDto)
45
46
  ], DcfValuationEmbeddedDto.prototype, "result", void 0);
47
+ __decorate([
48
+ (0, nestjs_1.ApiProperty)({ type: () => dcfNbkbRestatement_dto_1.DcfNbkbRestatementDto, required: false }),
49
+ (0, class_transformer_1.Type)(() => dcfNbkbRestatement_dto_1.DcfNbkbRestatementDto),
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", dcfNbkbRestatement_dto_1.DcfNbkbRestatementDto)
52
+ ], DcfValuationEmbeddedDto.prototype, "dcfNbkbRestatement", void 0);
46
53
  __decorate([
47
54
  (0, nestjs_1.ApiProperty)({ type: () => [dcfNbkb_dto_1.DcfNbkbDto], required: false }),
48
55
  (0, class_transformer_1.Type)(() => dcfNbkb_dto_1.DcfNbkbDto),
@@ -8,7 +8,9 @@ export declare class UpdateDcfValuationDto {
8
8
  terminalValueGrowthRate?: number;
9
9
  futureCapex?: number;
10
10
  restatedNbkb?: boolean;
11
- restatedNbkbRatio?: number;
11
+ restatedNbkbByValue?: boolean;
12
+ restatedNbkbRatio?: number | null;
13
+ restatedNbkbValue?: number | null;
12
14
  riskFreeRate?: number;
13
15
  marketRiskPremium?: number;
14
16
  unleveredMarketBeta?: number;
@@ -80,12 +80,45 @@ __decorate([
80
80
  __metadata("design:type", Boolean)
81
81
  ], UpdateDcfValuationDto.prototype, "restatedNbkb", void 0);
82
82
  __decorate([
83
- (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
83
+ (0, nestjs_1.ApiProperty)({
84
+ type: Boolean,
85
+ required: false,
86
+ description: 'Which field to restate by: true for restatedNbkbValue, false for ' +
87
+ 'restatedNbkbRatio. Lets the frontend pick the field before typing a figure into it.',
88
+ }),
89
+ (0, class_validator_1.IsBoolean)(),
90
+ (0, class_validator_1.IsOptional)(),
91
+ (0, class_transformer_1.Expose)(),
92
+ __metadata("design:type", Boolean)
93
+ ], UpdateDcfValuationDto.prototype, "restatedNbkbByValue", void 0);
94
+ __decorate([
95
+ (0, nestjs_1.ApiProperty)({
96
+ type: Number,
97
+ required: false,
98
+ nullable: true,
99
+ description: 'The restated NBKB ratio. Pass null to clear it. Mutually exclusive ' +
100
+ 'with restatedNbkbValue: submitting both as a concrete figure is rejected.',
101
+ }),
84
102
  (0, class_validator_1.IsNumber)(),
85
103
  (0, class_validator_1.IsOptional)(),
86
104
  (0, class_transformer_1.Expose)(),
87
105
  __metadata("design:type", Number)
88
106
  ], UpdateDcfValuationDto.prototype, "restatedNbkbRatio", void 0);
107
+ __decorate([
108
+ (0, nestjs_1.ApiProperty)({
109
+ type: Number,
110
+ required: false,
111
+ nullable: true,
112
+ description: 'The restated NBKB bedrag, in euro cents. Pass null to clear it. ' +
113
+ 'Mutually exclusive with restatedNbkbRatio: submitting both as a ' +
114
+ 'concrete figure is rejected. Read the derived counterpart from the ' +
115
+ 'dcfNbkbRestatement embed, computed live against the current revenue.',
116
+ }),
117
+ (0, class_validator_1.IsInt)(),
118
+ (0, class_validator_1.IsOptional)(),
119
+ (0, class_transformer_1.Expose)(),
120
+ __metadata("design:type", Number)
121
+ ], UpdateDcfValuationDto.prototype, "restatedNbkbValue", void 0);
89
122
  __decorate([
90
123
  (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
91
124
  (0, class_validator_1.IsNumber)(),
@@ -0,0 +1,8 @@
1
+ declare const DcfNbkbRestatementDto_base: import("../../generic/baseView.dto").BaseViewDtoType<any>;
2
+ export declare class DcfNbkbRestatementDto extends DcfNbkbRestatementDto_base {
3
+ id: string;
4
+ restatedNbkbRatio?: number | null;
5
+ restatedNbkbValue?: number | null;
6
+ restatedNbkbByValue?: boolean | null;
7
+ }
8
+ export {};
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DcfNbkbRestatementDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const nestjs_1 = require("../../../nestjs");
15
+ const baseView_dto_1 = require("../../generic/baseView.dto");
16
+ class DcfNbkbRestatementDto extends (0, baseView_dto_1.BaseViewDto)() {
17
+ }
18
+ exports.DcfNbkbRestatementDto = DcfNbkbRestatementDto;
19
+ __decorate([
20
+ (0, nestjs_1.ApiProperty)({ type: String, required: true, format: 'uuid' }),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], DcfNbkbRestatementDto.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, nestjs_1.ApiProperty)({ type: Number, required: false, nullable: true }),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Number)
28
+ ], DcfNbkbRestatementDto.prototype, "restatedNbkbRatio", void 0);
29
+ __decorate([
30
+ (0, nestjs_1.ApiProperty)({ type: Number, required: false, nullable: true }),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", Number)
33
+ ], DcfNbkbRestatementDto.prototype, "restatedNbkbValue", void 0);
34
+ __decorate([
35
+ (0, nestjs_1.ApiProperty)({
36
+ type: Boolean,
37
+ required: false,
38
+ nullable: true,
39
+ description: 'Which field the valuator picked to restate by: true for ' +
40
+ 'restatedNbkbValue, false for restatedNbkbRatio, null while the ' +
41
+ 'valuation does not restate its NBKB.',
42
+ }),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", Boolean)
45
+ ], DcfNbkbRestatementDto.prototype, "restatedNbkbByValue", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ballistix.digital/types-waardering-tool-react",
3
- "version": "0.13.51",
3
+ "version": "0.13.52",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build": "tsc"