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

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.
@@ -73,7 +73,15 @@ __decorate([
73
73
  __metadata("design:type", Number)
74
74
  ], CreateDcfValuationDto.prototype, "futureCapex", void 0);
75
75
  __decorate([
76
- (0, nestjs_1.ApiProperty)({ type: Boolean, required: false }),
76
+ (0, nestjs_1.ApiProperty)({
77
+ type: Boolean,
78
+ required: false,
79
+ description: "Turns the restatement of the last historical year's NBKB on " +
80
+ '(true) or off (false, the default). While false the DCF uses that ' +
81
+ "year's own NBKB and restatedNbkbRatio is ignored. Not the same as " +
82
+ 'restatedNbkbByValue, which only picks the field the restatement ' +
83
+ 'reads and is set through PATCH.',
84
+ }),
77
85
  (0, class_validator_1.IsBoolean)(),
78
86
  (0, class_validator_1.IsOptional)(),
79
87
  (0, class_transformer_1.Expose)(),
@@ -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;
@@ -63,15 +63,53 @@ __decorate([
63
63
  __metadata("design:type", Number)
64
64
  ], DcfValuationDto.prototype, "futureCapex", void 0);
65
65
  __decorate([
66
- (0, nestjs_1.ApiProperty)({ type: Boolean, required: true }),
66
+ (0, nestjs_1.ApiProperty)({
67
+ type: Boolean,
68
+ required: true,
69
+ description: "Whether the last historical year's NBKB is restated. False: the " +
70
+ "DCF uses that year's own NBKB and restatedNbkbByValue, " +
71
+ 'restatedNbkbRatio and restatedNbkbValue are ignored. True: ' +
72
+ 'restatedNbkbByValue names which of the two stored figures replaces ' +
73
+ 'it. Not the same as restatedNbkbByValue: this flag turns restating ' +
74
+ 'on or off, that one only picks the field.',
75
+ }),
67
76
  (0, class_transformer_1.Expose)(),
68
77
  __metadata("design:type", Boolean)
69
78
  ], DcfValuationDto.prototype, "restatedNbkb", void 0);
70
79
  __decorate([
71
- (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
80
+ (0, nestjs_1.ApiProperty)({
81
+ type: Boolean,
82
+ required: true,
83
+ description: 'Which field the valuator picked to restate by: true for ' +
84
+ 'restatedNbkbValue, false for restatedNbkbRatio. Has no effect ' +
85
+ 'while restatedNbkb is false.',
86
+ }),
87
+ (0, class_transformer_1.Expose)(),
88
+ __metadata("design:type", Boolean)
89
+ ], DcfValuationDto.prototype, "restatedNbkbByValue", void 0);
90
+ __decorate([
91
+ (0, nestjs_1.ApiProperty)({
92
+ type: Number,
93
+ required: false,
94
+ nullable: true,
95
+ description: 'As stored: only set when restatedNbkbByValue is false. Read the ' +
96
+ 'live pair (whichever this valuation restated by, and its derived ' +
97
+ 'counterpart) from the dcfNbkbRestatement embed instead.',
98
+ }),
72
99
  (0, class_transformer_1.Expose)(),
73
100
  __metadata("design:type", Number)
74
101
  ], DcfValuationDto.prototype, "restatedNbkbRatio", void 0);
102
+ __decorate([
103
+ (0, nestjs_1.ApiProperty)({
104
+ type: Number,
105
+ required: false,
106
+ nullable: true,
107
+ description: 'As stored, in euro cents: only set when restatedNbkbByValue is ' +
108
+ 'true. Read the live pair from the dcfNbkbRestatement embed instead.',
109
+ }),
110
+ (0, class_transformer_1.Expose)(),
111
+ __metadata("design:type", Number)
112
+ ], DcfValuationDto.prototype, "restatedNbkbValue", void 0);
75
113
  __decorate([
76
114
  (0, nestjs_1.ApiProperty)({ type: Number, required: true }),
77
115
  (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;
@@ -73,19 +73,61 @@ __decorate([
73
73
  __metadata("design:type", Number)
74
74
  ], UpdateDcfValuationDto.prototype, "futureCapex", void 0);
75
75
  __decorate([
76
- (0, nestjs_1.ApiProperty)({ type: Boolean, required: false }),
76
+ (0, nestjs_1.ApiProperty)({
77
+ type: Boolean,
78
+ required: false,
79
+ description: "Turns the restatement of the last historical year's NBKB on or " +
80
+ "off. While false the DCF uses that year's own NBKB and " +
81
+ 'restatedNbkbByValue, restatedNbkbRatio and restatedNbkbValue are ' +
82
+ 'kept but ignored. Not the same as restatedNbkbByValue: this flag ' +
83
+ 'turns restating on or off, that one only picks the field.',
84
+ }),
77
85
  (0, class_validator_1.IsBoolean)(),
78
86
  (0, class_validator_1.IsOptional)(),
79
87
  (0, class_transformer_1.Expose)(),
80
88
  __metadata("design:type", Boolean)
81
89
  ], UpdateDcfValuationDto.prototype, "restatedNbkb", void 0);
82
90
  __decorate([
83
- (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
91
+ (0, nestjs_1.ApiProperty)({
92
+ type: Boolean,
93
+ required: false,
94
+ description: 'Which field to restate by: true for restatedNbkbValue, false for ' +
95
+ 'restatedNbkbRatio. Lets the frontend pick the field before typing ' +
96
+ 'a figure into it. Has no effect while restatedNbkb is false.',
97
+ }),
98
+ (0, class_validator_1.IsBoolean)(),
99
+ (0, class_validator_1.IsOptional)(),
100
+ (0, class_transformer_1.Expose)(),
101
+ __metadata("design:type", Boolean)
102
+ ], UpdateDcfValuationDto.prototype, "restatedNbkbByValue", void 0);
103
+ __decorate([
104
+ (0, nestjs_1.ApiProperty)({
105
+ type: Number,
106
+ required: false,
107
+ nullable: true,
108
+ description: 'The restated NBKB ratio. Pass null to clear it. Mutually exclusive ' +
109
+ 'with restatedNbkbValue: submitting both as a concrete figure is rejected.',
110
+ }),
84
111
  (0, class_validator_1.IsNumber)(),
85
112
  (0, class_validator_1.IsOptional)(),
86
113
  (0, class_transformer_1.Expose)(),
87
114
  __metadata("design:type", Number)
88
115
  ], UpdateDcfValuationDto.prototype, "restatedNbkbRatio", void 0);
116
+ __decorate([
117
+ (0, nestjs_1.ApiProperty)({
118
+ type: Number,
119
+ required: false,
120
+ nullable: true,
121
+ description: 'The restated NBKB bedrag, in euro cents. Pass null to clear it. ' +
122
+ 'Mutually exclusive with restatedNbkbRatio: submitting both as a ' +
123
+ 'concrete figure is rejected. Read the derived counterpart from the ' +
124
+ 'dcfNbkbRestatement embed, computed live against the current revenue.',
125
+ }),
126
+ (0, class_validator_1.IsInt)(),
127
+ (0, class_validator_1.IsOptional)(),
128
+ (0, class_transformer_1.Expose)(),
129
+ __metadata("design:type", Number)
130
+ ], UpdateDcfValuationDto.prototype, "restatedNbkbValue", void 0);
89
131
  __decorate([
90
132
  (0, nestjs_1.ApiProperty)({ type: Number, required: false }),
91
133
  (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.53",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build": "tsc"