@cubedelement.com/realty-investor-timeline 5.5.0 → 5.6.0

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.
Files changed (187) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/src/account/i-user-goal.d.ts +5 -0
  3. package/dist/src/account/user.d.ts +20 -1
  4. package/dist/src/account/user.js +21 -0
  5. package/dist/src/caching/value-cache.js +3 -1
  6. package/dist/src/ledger/ledger-collection.d.ts +4 -0
  7. package/dist/src/ledger/ledger-collection.js +44 -1
  8. package/dist/src/ledger/ledger-item.d.ts +5 -0
  9. package/dist/src/ledger/ledger-item.js +19 -0
  10. package/dist/src/time/default-has-met-goal-or-max-time.js +1 -1
  11. package/dist/src/time/looper.js +1 -1
  12. package/dist/src/utils/data-clone-date.js +1 -1
  13. package/dist/src/utils/get-date-quarter.d.ts +1 -0
  14. package/dist/src/utils/get-date-quarter.js +5 -0
  15. package/package.json +1 -1
  16. package/.github/dependabot.yml +0 -10
  17. package/docs/_media/badge.svg +0 -1
  18. package/docs/account/i-user-goal/index.md +0 -11
  19. package/docs/account/i-user-goal/interfaces/IUserGoal.md +0 -47
  20. package/docs/account/i-user-investor-check/index.md +0 -11
  21. package/docs/account/i-user-investor-check/interfaces/IUserInvestorCheck.md +0 -206
  22. package/docs/account/index.md +0 -31
  23. package/docs/account/user/classes/User.md +0 -312
  24. package/docs/account/user/index.md +0 -15
  25. package/docs/account/user/interfaces/IUser.md +0 -282
  26. package/docs/caching/index.md +0 -19
  27. package/docs/caching/value-cache/classes/ValueCache.md +0 -194
  28. package/docs/caching/value-cache/index.md +0 -15
  29. package/docs/caching/value-cache/interfaces/IValueCache.md +0 -104
  30. package/docs/calculations/can-invest-by-user/functions/canInvestByUser.md +0 -35
  31. package/docs/calculations/can-invest-by-user/index.md +0 -11
  32. package/docs/calculations/cash-on-cash-return/functions/cashOnCashReturn.md +0 -29
  33. package/docs/calculations/cash-on-cash-return/index.md +0 -11
  34. package/docs/calculations/get-cost-down/functions/getCostDown.md +0 -27
  35. package/docs/calculations/get-cost-down/index.md +0 -11
  36. package/docs/calculations/get-cost-down-user-investment-results/functions/getCostDownUserInvestmentResults.md +0 -33
  37. package/docs/calculations/get-cost-down-user-investment-results/index.md +0 -11
  38. package/docs/calculations/get-equity-capture-amount/functions/getEquityCaptureAmount.md +0 -31
  39. package/docs/calculations/get-equity-capture-amount/index.md +0 -11
  40. package/docs/calculations/get-equity-capture-user-investment-results/functions/getEquityCaptureUserInvestmentResults.md +0 -33
  41. package/docs/calculations/get-equity-capture-user-investment-results/index.md +0 -11
  42. package/docs/calculations/get-investment-percent/functions/getInvestmentPercent.md +0 -27
  43. package/docs/calculations/get-investment-percent/index.md +0 -11
  44. package/docs/calculations/get-min-cost-down-by-rule/functions/getMinCostDownByRule.md +0 -25
  45. package/docs/calculations/get-min-cost-down-by-rule/index.md +0 -11
  46. package/docs/calculations/get-monthly-mortgage/functions/getMonthlyMortgage.md +0 -43
  47. package/docs/calculations/get-monthly-mortgage/index.md +0 -11
  48. package/docs/calculations/get-monthly-principal-interest-tax-interest/functions/getMonthlyPrincipalInterestTaxInterest.md +0 -43
  49. package/docs/calculations/get-monthly-principal-interest-tax-interest/index.md +0 -11
  50. package/docs/calculations/get-sell-price-estimate/functions/getSellPriceEstimate.md +0 -33
  51. package/docs/calculations/get-sell-price-estimate/index.md +0 -11
  52. package/docs/calculations/index.md +0 -73
  53. package/docs/calculations/return-on-capital-gain/functions/returnOnCapitalGain.md +0 -31
  54. package/docs/calculations/return-on-capital-gain/index.md +0 -11
  55. package/docs/formatters/currency/functions/default.md +0 -21
  56. package/docs/formatters/currency/index.md +0 -11
  57. package/docs/formatters/index.md +0 -7
  58. package/docs/generators/factory-passive-apartment/functions/generateRentalPassiveApartment.md +0 -35
  59. package/docs/generators/factory-passive-apartment/index.md +0 -11
  60. package/docs/generators/factory-single-family/functions/generateSingleFamily.md +0 -35
  61. package/docs/generators/factory-single-family/index.md +0 -11
  62. package/docs/generators/generate-property/index.md +0 -11
  63. package/docs/generators/generate-property/type-aliases/GenerateProperty.md +0 -37
  64. package/docs/generators/generic-generate-property/functions/genericGenerateProperty.md +0 -35
  65. package/docs/generators/generic-generate-property/index.md +0 -11
  66. package/docs/generators/i-property-entity-options/index.md +0 -11
  67. package/docs/generators/i-property-entity-options/interfaces/IPropertyEntityOptions.md +0 -113
  68. package/docs/generators/index.md +0 -49
  69. package/docs/generators/rental-generator/classes/RentalGenerator.md +0 -248
  70. package/docs/generators/rental-generator/index.md +0 -15
  71. package/docs/generators/rental-generator/interfaces/IRentalGenerator.md +0 -65
  72. package/docs/index/index.md +0 -487
  73. package/docs/index.md +0 -258
  74. package/docs/investments/index.md +0 -85
  75. package/docs/investments/investment-reasons/enumerations/InvestmentReasons.md +0 -119
  76. package/docs/investments/investment-reasons/index.md +0 -11
  77. package/docs/investments/investment-reasons-decorator/functions/InvestmentReasonForHoldRuleTypes.md +0 -25
  78. package/docs/investments/investment-reasons-decorator/functions/InvestmentReasonForPurchaseRuleTypes.md +0 -25
  79. package/docs/investments/investment-reasons-decorator/functions/getInvestmentReasons.md +0 -33
  80. package/docs/investments/investment-reasons-decorator/functions/getInvestmentReasonsForPurchaseTypes.md +0 -25
  81. package/docs/investments/investment-reasons-decorator/index.md +0 -18
  82. package/docs/investments/investment-reasons-decorator/type-aliases/PropertyDecoratorType.md +0 -29
  83. package/docs/investments/reason-to-rule/classes/ReasonToRule.md +0 -263
  84. package/docs/investments/reason-to-rule/index.md +0 -16
  85. package/docs/investments/reason-to-rule/interfaces/IReasonToRule.md +0 -189
  86. package/docs/investments/reason-to-rule/interfaces/IReasonToRuleMeta.md +0 -33
  87. package/docs/investments/rental-investor-validator/classes/RentalInvestorValidator.md +0 -53
  88. package/docs/investments/rental-investor-validator/index.md +0 -15
  89. package/docs/investments/rental-investor-validator/interfaces/IRentalInvestorValidator.md +0 -25
  90. package/docs/investments/user-invest-result/classes/UserInvestResult.md +0 -65
  91. package/docs/investments/user-invest-result/index.md +0 -15
  92. package/docs/investments/user-invest-result/interfaces/IUserInvestResult.md +0 -25
  93. package/docs/investments/user-result-estimates/index.md +0 -11
  94. package/docs/investments/user-result-estimates/type-aliases/UserResultEstimates.md +0 -33
  95. package/docs/ledger/i-ledger-summary/index.md +0 -11
  96. package/docs/ledger/i-ledger-summary/interfaces/ILedgerSummary.md +0 -57
  97. package/docs/ledger/index.md +0 -43
  98. package/docs/ledger/ledger-collection/classes/LedgerCollection.md +0 -425
  99. package/docs/ledger/ledger-collection/index.md +0 -19
  100. package/docs/ledger/ledger-collection/interfaces/ILedgerCollection.md +0 -313
  101. package/docs/ledger/ledger-collection/type-aliases/LedgerItemPredicate.md +0 -25
  102. package/docs/ledger/ledger-item/classes/LedgerItem.md +0 -211
  103. package/docs/ledger/ledger-item/index.md +0 -11
  104. package/docs/ledger/ledger-item-type/enumerations/LedgerItemType.md +0 -57
  105. package/docs/ledger/ledger-item-type/index.md +0 -11
  106. package/docs/loans/i-loan-settings/index.md +0 -11
  107. package/docs/loans/i-loan-settings/interfaces/ILoanSetting.md +0 -33
  108. package/docs/loans/index.md +0 -19
  109. package/docs/loans/loan-settings/enumerations/LoanSettings.md +0 -41
  110. package/docs/loans/loan-settings/index.md +0 -11
  111. package/docs/modules.md +0 -88
  112. package/docs/properties/i-entity-existence/index.md +0 -11
  113. package/docs/properties/i-entity-existence/interfaces/IEntityExistence.md +0 -33
  114. package/docs/properties/i-property-entity/index.md +0 -11
  115. package/docs/properties/i-property-entity/interfaces/IPropertyEntity.md +0 -159
  116. package/docs/properties/i-rental-property-entity/index.md +0 -11
  117. package/docs/properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md +0 -416
  118. package/docs/properties/index.md +0 -43
  119. package/docs/properties/property-sort/functions/default.md +0 -35
  120. package/docs/properties/property-sort/index.md +0 -11
  121. package/docs/properties/property-type/enumerations/PropertyType.md +0 -33
  122. package/docs/properties/property-type/index.md +0 -11
  123. package/docs/properties/rental-passive-apartment/classes/RentalPassiveApartment.md +0 -558
  124. package/docs/properties/rental-passive-apartment/index.md +0 -11
  125. package/docs/properties/rental-single-family/classes/RentalSingleFamily.md +0 -639
  126. package/docs/properties/rental-single-family/index.md +0 -11
  127. package/docs/rules/eval-type/index.md +0 -11
  128. package/docs/rules/eval-type/type-aliases/EvalType.md +0 -25
  129. package/docs/rules/eval-types/functions/AtLeastOrMore.md +0 -25
  130. package/docs/rules/eval-types/functions/NoMoreThan.md +0 -25
  131. package/docs/rules/eval-types/index.md +0 -12
  132. package/docs/rules/get-enum-type-by-value/functions/getEnumTypeByValue.md +0 -23
  133. package/docs/rules/get-enum-type-by-value/index.md +0 -11
  134. package/docs/rules/get-rules/functions/getRules.md +0 -27
  135. package/docs/rules/get-rules/index.md +0 -11
  136. package/docs/rules/hold-rule-types/enumerations/HoldRuleTypes.md +0 -49
  137. package/docs/rules/hold-rule-types/index.md +0 -11
  138. package/docs/rules/i-rule/index.md +0 -11
  139. package/docs/rules/i-rule/interfaces/IRule.md +0 -41
  140. package/docs/rules/index.md +0 -67
  141. package/docs/rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md +0 -78
  142. package/docs/rules/purchase-rule-types/index.md +0 -11
  143. package/docs/rules/rule-evaluation/classes/RuleEvaluation.md +0 -103
  144. package/docs/rules/rule-evaluation/index.md +0 -15
  145. package/docs/rules/rule-evaluation/interfaces/IRuleEvaluation.md +0 -73
  146. package/docs/time/default-has-met-goal-or-max-time/functions/defaultHasMetGoalOrMaxTime.md +0 -39
  147. package/docs/time/default-has-met-goal-or-max-time/index.md +0 -11
  148. package/docs/time/has-met-goal-or-max-time/index.md +0 -11
  149. package/docs/time/has-met-goal-or-max-time/type-aliases/HasMetGoalOrMaxTime.md +0 -39
  150. package/docs/time/i-historical-property/index.md +0 -11
  151. package/docs/time/i-historical-property/interfaces/IHistoricalProperty.md +0 -25
  152. package/docs/time/i-historical-reason/index.md +0 -11
  153. package/docs/time/i-historical-reason/interfaces/IHistoricalReason.md +0 -25
  154. package/docs/time/i-loop-options/index.md +0 -11
  155. package/docs/time/i-loop-options/interfaces/ILoopOptions.md +0 -71
  156. package/docs/time/i-loop-recursive-options/index.md +0 -11
  157. package/docs/time/i-loop-recursive-options/interfaces/ILoopRecursiveOptions.md +0 -33
  158. package/docs/time/index.md +0 -85
  159. package/docs/time/looper/functions/looper.md +0 -25
  160. package/docs/time/looper/index.md +0 -15
  161. package/docs/time/looper/type-aliases/LooperType.md +0 -25
  162. package/docs/time/movement/functions/movement.md +0 -27
  163. package/docs/time/movement/index.md +0 -11
  164. package/docs/time/simulate/functions/simulate.md +0 -23
  165. package/docs/time/simulate/index.md +0 -16
  166. package/docs/time/simulate/interfaces/IGenOptions.md +0 -163
  167. package/docs/time/simulate/interfaces/ISimulateOptions.md +0 -115
  168. package/docs/time/timeline/classes/Timeline.md +0 -175
  169. package/docs/time/timeline/index.md +0 -15
  170. package/docs/time/timeline/interfaces/ITimeline.md +0 -83
  171. package/docs/time/update-historical-rentals/functions/updateHistoricalRentals.md +0 -41
  172. package/docs/time/update-historical-rentals/index.md +0 -11
  173. package/docs/utils/data-are-same-date/functions/default.md +0 -25
  174. package/docs/utils/data-are-same-date/index.md +0 -11
  175. package/docs/utils/data-clone-date/functions/cloneDateUtc.md +0 -27
  176. package/docs/utils/data-clone-date/index.md +0 -11
  177. package/docs/utils/data-compare-date/functions/default.md +0 -28
  178. package/docs/utils/data-compare-date/index.md +0 -11
  179. package/docs/utils/data-number/functions/randomNumberBetween.md +0 -25
  180. package/docs/utils/data-number/index.md +0 -11
  181. package/docs/utils/data-property-entity/functions/randomPropertyEntity.md +0 -23
  182. package/docs/utils/data-property-entity/index.md +0 -15
  183. package/docs/utils/data-property-entity/type-aliases/RandomPropertyEntity.md +0 -21
  184. package/docs/utils/ensure/functions/ensureArray.md +0 -39
  185. package/docs/utils/ensure/index.md +0 -15
  186. package/docs/utils/ensure/type-aliases/EnsureArrayPredicate.md +0 -29
  187. package/docs/utils/index.md +0 -43
@@ -1,639 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../../modules.md) / [properties/rental-single-family](../index.md) / RentalSingleFamily
6
-
7
- # Class: RentalSingleFamily
8
-
9
- Defined in: [properties/rental-single-family.ts:25](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L25)
10
-
11
- ## Implements
12
-
13
- - [`IEntityExistence`](../../i-entity-existence/interfaces/IEntityExistence.md)
14
- - [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
15
-
16
- ## Constructors
17
-
18
- ### new RentalSingleFamily()
19
-
20
- > **new RentalSingleFamily**(): [`RentalSingleFamily`](RentalSingleFamily.md)
21
-
22
- #### Returns
23
-
24
- [`RentalSingleFamily`](RentalSingleFamily.md)
25
-
26
- ## Properties
27
-
28
- ### \_soldDate
29
-
30
- > **\_soldDate**: `Date`
31
-
32
- Defined in: [properties/rental-single-family.ts:186](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L186)
33
-
34
- the date this property was sold where you no longer receive investment cash
35
-
36
- ---
37
-
38
- ### address
39
-
40
- > **address**: `string`
41
-
42
- Defined in: [properties/rental-single-family.ts:36](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L36)
43
-
44
- address of property
45
-
46
- #### Implementation of
47
-
48
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`address`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#address)
49
-
50
- ---
51
-
52
- ### availableEndDate
53
-
54
- > **availableEndDate**: `Date`
55
-
56
- Defined in: [properties/rental-single-family.ts:45](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L45)
57
-
58
- date which property was removed from the timeline.. think of it like someone else purchased this property
59
-
60
- #### Implementation of
61
-
62
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`availableEndDate`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#availableenddate)
63
-
64
- ---
65
-
66
- ### availableStartDate
67
-
68
- > **availableStartDate**: `Date`
69
-
70
- Defined in: [properties/rental-single-family.ts:40](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L40)
71
-
72
- date which property was generated or was available for purchase
73
-
74
- #### Implementation of
75
-
76
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`availableStartDate`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#availablestartdate)
77
-
78
- ---
79
-
80
- ### cashDownPercent
81
-
82
- > **cashDownPercent**: `number`
83
-
84
- Defined in: [properties/rental-single-family.ts:113](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L113)
85
-
86
- the percent down on the property xx out of 100, or 23% as an example
87
-
88
- ---
89
-
90
- ### equityCapturePercent
91
-
92
- > **equityCapturePercent**: `number`
93
-
94
- Defined in: [properties/rental-single-family.ts:150](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L150)
95
-
96
- this can be between 10 - 20%
97
-
98
- #### Implementation of
99
-
100
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`equityCapturePercent`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#equitycapturepercent)
101
-
102
- ---
103
-
104
- ### id
105
-
106
- > **id**: `string`
107
-
108
- Defined in: [properties/rental-single-family.ts:31](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L31)
109
-
110
- unique identifier
111
-
112
- #### Implementation of
113
-
114
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`id`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#id)
115
-
116
- ---
117
-
118
- ### minSellYears
119
-
120
- > **minSellYears**: `number` = `0`
121
-
122
- Defined in: [properties/rental-single-family.ts:205](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L205)
123
-
124
- number of years to hold the property before being sold, default is 0. and this is used to calculated the [minSellDate](RentalSingleFamily.md#minselldate)
125
-
126
- #### Implementation of
127
-
128
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`minSellYears`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#minsellyears)
129
-
130
- ---
131
-
132
- ### monthlyPrincipalInterestTaxInterest
133
-
134
- > **monthlyPrincipalInterestTaxInterest**: `number`
135
-
136
- Defined in: [properties/rental-single-family.ts:108](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L108)
137
-
138
- the project monthly payment
139
-
140
- ---
141
-
142
- ### propertyType
143
-
144
- > `readonly` **propertyType**: [`PropertyType`](../../property-type/enumerations/PropertyType.md) = `PropertyType.SingleFamily`
145
-
146
- Defined in: [properties/rental-single-family.ts:26](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L26)
147
-
148
- used when evaluating rules
149
-
150
- #### Implementation of
151
-
152
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`propertyType`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#propertytype)
153
-
154
- ---
155
-
156
- ### purchasePrice
157
-
158
- > **purchasePrice**: `number`
159
-
160
- Defined in: [properties/rental-single-family.ts:90](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L90)
161
-
162
- At the time of purchase the ARV of the property
163
-
164
- #### Implementation of
165
-
166
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`purchasePrice`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#purchaseprice)
167
-
168
- ---
169
-
170
- ### rawCashFlow
171
-
172
- > **rawCashFlow**: `number`
173
-
174
- Defined in: [properties/rental-single-family.ts:276](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L276)
175
-
176
- the cashOnCash return
177
-
178
- #### Implementation of
179
-
180
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`rawCashFlow`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#rawcashflow)
181
-
182
- ---
183
-
184
- ### sellPriceAppreciationPercent
185
-
186
- > **sellPriceAppreciationPercent**: `number` = `4`
187
-
188
- Defined in: [properties/rental-single-family.ts:95](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L95)
189
-
190
- the percent at which the property's value grows, for the US it spans from 4% (2019) to 14.5% (2021), this will default to 4
191
-
192
- #### Implementation of
193
-
194
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`sellPriceAppreciationPercent`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#sellpriceappreciationpercent)
195
-
196
- ## Accessors
197
-
198
- ### costDownPrice
199
-
200
- #### Get Signature
201
-
202
- > **get** **costDownPrice**(): `number`
203
-
204
- Defined in: [properties/rental-single-family.ts:119](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L119)
205
-
206
- it's the purchase down
207
-
208
- ##### Returns
209
-
210
- `number`
211
-
212
- it's the purchase down
213
-
214
- #### Implementation of
215
-
216
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`costDownPrice`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#costdownprice)
217
-
218
- ---
219
-
220
- ### estimatedCashOnCashReturn
221
-
222
- #### Get Signature
223
-
224
- > **get** **estimatedCashOnCashReturn**(): `number`
225
-
226
- Defined in: [properties/rental-single-family.ts:294](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L294)
227
-
228
- ##### Returns
229
-
230
- `number`
231
-
232
- #### Implementation of
233
-
234
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`estimatedCashOnCashReturn`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#estimatedcashoncashreturn)
235
-
236
- ---
237
-
238
- ### estimatedReturnOnCapitalGain
239
-
240
- #### Get Signature
241
-
242
- > **get** **estimatedReturnOnCapitalGain**(): `number`
243
-
244
- Defined in: [properties/rental-single-family.ts:302](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L302)
245
-
246
- ##### Returns
247
-
248
- `number`
249
-
250
- #### Implementation of
251
-
252
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`estimatedReturnOnCapitalGain`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#estimatedreturnoncapitalgain)
253
-
254
- ---
255
-
256
- ### isOwned
257
-
258
- #### Get Signature
259
-
260
- > **get** **isOwned**(): `boolean`
261
-
262
- Defined in: [properties/rental-single-family.ts:62](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L62)
263
-
264
- looks at [wasPurchased](RentalSingleFamily.md#waspurchased) and checks if [soldDate](RentalSingleFamily.md#solddate) is `undefined` or `null`
265
-
266
- ##### Returns
267
-
268
- `boolean`
269
-
270
- #### Implementation of
271
-
272
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`isOwned`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#isowned)
273
-
274
- ---
275
-
276
- ### minSellDate
277
-
278
- #### Get Signature
279
-
280
- > **get** **minSellDate**(): `Date`
281
-
282
- Defined in: [properties/rental-single-family.ts:222](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L222)
283
-
284
- projects when you can sell this property using [purchaseDate](RentalSingleFamily.md#purchasedate) and [minSellYears](RentalSingleFamily.md#minsellyears)
285
-
286
- ##### Returns
287
-
288
- `Date`
289
-
290
- ---
291
-
292
- ### offeredInvestmentAmounts
293
-
294
- #### Get Signature
295
-
296
- > **get** **offeredInvestmentAmounts**(): `number`[]
297
-
298
- Defined in: [properties/rental-single-family.ts:130](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L130)
299
-
300
- a range of amounts that the user can invest for the property: typically this is the [costDownPrice](RentalSingleFamily.md#costdownprice)
301
-
302
- ##### Returns
303
-
304
- `number`[]
305
-
306
- #### Implementation of
307
-
308
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`offeredInvestmentAmounts`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#offeredinvestmentamounts)
309
-
310
- ---
311
-
312
- ### purchaseDate
313
-
314
- #### Get Signature
315
-
316
- > **get** **purchaseDate**(): `Date`
317
-
318
- Defined in: [properties/rental-single-family.ts:179](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L179)
319
-
320
- the date this property was acquired, and you receive investment cash
321
-
322
- ##### Returns
323
-
324
- `Date`
325
-
326
- #### Set Signature
327
-
328
- > **set** **purchaseDate**(`value`): `void`
329
-
330
- Defined in: [properties/rental-single-family.ts:172](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L172)
331
-
332
- the date this property was acquired, and you receive investment cash
333
-
334
- ##### Parameters
335
-
336
- ###### value
337
-
338
- `Date`
339
-
340
- ##### Returns
341
-
342
- `void`
343
-
344
- #### Implementation of
345
-
346
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`purchaseDate`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#purchasedate)
347
-
348
- ---
349
-
350
- ### rawEstimatedAnnualCashFlow
351
-
352
- #### Get Signature
353
-
354
- > **get** **rawEstimatedAnnualCashFlow**(): `number`
355
-
356
- Defined in: [properties/rental-single-family.ts:286](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L286)
357
-
358
- the estimated annual cashFlow return
359
-
360
- ##### Returns
361
-
362
- `number`
363
-
364
- #### Implementation of
365
-
366
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`rawEstimatedAnnualCashFlow`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#rawestimatedannualcashflow)
367
-
368
- ---
369
-
370
- ### soldDate
371
-
372
- #### Get Signature
373
-
374
- > **get** **soldDate**(): `Date`
375
-
376
- Defined in: [properties/rental-single-family.ts:198](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L198)
377
-
378
- the date this property was sold where you no longer receive investment cash
379
-
380
- ##### Returns
381
-
382
- `Date`
383
-
384
- #### Set Signature
385
-
386
- > **set** **soldDate**(`value`): `void`
387
-
388
- Defined in: [properties/rental-single-family.ts:191](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L191)
389
-
390
- the date this property was sold where you no longer receive investment cash
391
-
392
- ##### Parameters
393
-
394
- ###### value
395
-
396
- `Date`
397
-
398
- ##### Returns
399
-
400
- `void`
401
-
402
- #### Implementation of
403
-
404
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`soldDate`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#solddate)
405
-
406
- ---
407
-
408
- ### wasPurchased
409
-
410
- #### Get Signature
411
-
412
- > **get** **wasPurchased**(): `boolean`
413
-
414
- Defined in: [properties/rental-single-family.ts:69](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L69)
415
-
416
- a check to see if the property was purchased
417
-
418
- ##### Returns
419
-
420
- `boolean`
421
-
422
- #### Implementation of
423
-
424
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`wasPurchased`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#waspurchased)
425
-
426
- ## Methods
427
-
428
- ### canInvestByUser()
429
-
430
- > **canInvestByUser**(`user`, `date`, `properties`): [`IRentalInvestorValidator`](../../../investments/rental-investor-validator/interfaces/IRentalInvestorValidator.md)
431
-
432
- Defined in: [properties/rental-single-family.ts:79](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L79)
433
-
434
- get a user, and other owned properties, to determine if a user can invest
435
-
436
- #### Parameters
437
-
438
- ##### user
439
-
440
- [`IUserInvestorCheck`](../../../account/i-user-investor-check/interfaces/IUserInvestorCheck.md)
441
-
442
- ##### date
443
-
444
- `Date`
445
-
446
- ##### properties
447
-
448
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md)[]
449
-
450
- #### Returns
451
-
452
- [`IRentalInvestorValidator`](../../../investments/rental-investor-validator/interfaces/IRentalInvestorValidator.md)
453
-
454
- #### Implementation of
455
-
456
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`canInvestByUser`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#caninvestbyuser)
457
-
458
- ---
459
-
460
- ### canSell()
461
-
462
- > **canSell**(`today`): `boolean`
463
-
464
- Defined in: [properties/rental-single-family.ts:211](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L211)
465
-
466
- looks at [isOwned](RentalSingleFamily.md#isowned) and also compares dates to see if the property can sell;
467
-
468
- #### Parameters
469
-
470
- ##### today
471
-
472
- `Date`
473
-
474
- #### Returns
475
-
476
- `boolean`
477
-
478
- #### Implementation of
479
-
480
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`canSell`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#cansell)
481
-
482
- ---
483
-
484
- ### clone()
485
-
486
- > **clone**(): [`RentalSingleFamily`](RentalSingleFamily.md)
487
-
488
- Defined in: [properties/rental-single-family.ts:272](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L272)
489
-
490
- make a copy
491
-
492
- #### Returns
493
-
494
- [`RentalSingleFamily`](RentalSingleFamily.md)
495
-
496
- #### Implementation of
497
-
498
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`clone`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#clone)
499
-
500
- ---
501
-
502
- ### getCashFlowByDate()
503
-
504
- > **getCashFlowByDate**(`today`): `number`
505
-
506
- Defined in: [properties/rental-single-family.ts:233](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L233)
507
-
508
- 1. you must have purchased this home
509
- 2. this home must not have been sold
510
-
511
- #### Parameters
512
-
513
- ##### today
514
-
515
- `Date`
516
-
517
- #### Returns
518
-
519
- `number`
520
-
521
- #### Implementation of
522
-
523
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`getCashFlowByDate`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#getcashflowbydate)
524
-
525
- ---
526
-
527
- ### getEquityFromSell()
528
-
529
- > **getEquityFromSell**(`today`): `number`
530
-
531
- Defined in: [properties/rental-single-family.ts:138](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L138)
532
-
533
- Determines the equity of a sale by date. Note: [soldDate](RentalSingleFamily.md#solddate) must be populated and today and it must match
534
-
535
- #### Parameters
536
-
537
- ##### today
538
-
539
- `Date`
540
-
541
- #### Returns
542
-
543
- `number`
544
-
545
- #### Implementation of
546
-
547
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`getEquityFromSell`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#getequityfromsell)
548
-
549
- ---
550
-
551
- ### getEstimatedMonthlyCashFlow()
552
-
553
- > **getEstimatedMonthlyCashFlow**(`today`): `number`
554
-
555
- Defined in: [properties/rental-single-family.ts:249](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L249)
556
-
557
- universal method to determine cash flow on a monthly basis
558
-
559
- #### Parameters
560
-
561
- ##### today
562
-
563
- `Date`
564
-
565
- #### Returns
566
-
567
- `number`
568
-
569
- #### Implementation of
570
-
571
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`getEstimatedMonthlyCashFlow`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#getestimatedmonthlycashflow)
572
-
573
- ---
574
-
575
- ### getExpensesByDate()
576
-
577
- > **getExpensesByDate**(`today`): `number`
578
-
579
- Defined in: [properties/rental-single-family.ts:257](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L257)
580
-
581
- used to determine what the cost of property is per month. If no purchase date or it has a sold date, then 0, otherwise there is an amount
582
-
583
- #### Parameters
584
-
585
- ##### today
586
-
587
- `Date`
588
-
589
- #### Returns
590
-
591
- `number`
592
-
593
- #### Implementation of
594
-
595
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`getExpensesByDate`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#getexpensesbydate)
596
-
597
- ---
598
-
599
- ### isAvailableByDate()
600
-
601
- > **isAvailableByDate**(`today`): `boolean`
602
-
603
- Defined in: [properties/rental-single-family.ts:51](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L51)
604
-
605
- used to compare [availableStartDate](RentalSingleFamily.md#availablestartdate), [today](RentalSingleFamily.md#today-5), and [availableEndDate](RentalSingleFamily.md#availableenddate),
606
-
607
- #### Parameters
608
-
609
- ##### today
610
-
611
- `Date`
612
-
613
- #### Returns
614
-
615
- `boolean`
616
-
617
- #### Implementation of
618
-
619
- [`IRentalPropertyEntity`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md).[`isAvailableByDate`](../../i-rental-property-entity/interfaces/IRentalPropertyEntity.md#isavailablebydate)
620
-
621
- ---
622
-
623
- ### sellPriceByDate()
624
-
625
- > **sellPriceByDate**(`today`): `number`
626
-
627
- Defined in: [properties/rental-single-family.ts:101](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/properties/rental-single-family.ts#L101)
628
-
629
- lame way to apply [sellPriceAppreciationPercent](RentalSingleFamily.md#sellpriceappreciationpercent) to rolling over the years the property was owned
630
-
631
- #### Parameters
632
-
633
- ##### today
634
-
635
- `Date`
636
-
637
- #### Returns
638
-
639
- `number`
@@ -1,11 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../modules.md) / properties/rental-single-family
6
-
7
- # properties/rental-single-family
8
-
9
- ## Classes
10
-
11
- - [RentalSingleFamily](classes/RentalSingleFamily.md)
@@ -1,11 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../modules.md) / rules/eval-type
6
-
7
- # rules/eval-type
8
-
9
- ## Type Aliases
10
-
11
- - [EvalType](type-aliases/EvalType.md)
@@ -1,25 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../../modules.md) / [rules/eval-type](../index.md) / EvalType
6
-
7
- # Type Alias: EvalType()
8
-
9
- > **EvalType**: (`value1`, `value2`) => `boolean`
10
-
11
- Defined in: [rules/eval-type.ts:1](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/rules/eval-type.ts#L1)
12
-
13
- ## Parameters
14
-
15
- ### value1
16
-
17
- `number`
18
-
19
- ### value2
20
-
21
- `number`
22
-
23
- ## Returns
24
-
25
- `boolean`