@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,263 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../../modules.md) / [investments/reason-to-rule](../index.md) / ReasonToRule
6
-
7
- # Class: ReasonToRule\<T, TR\>
8
-
9
- Defined in: [investments/reason-to-rule.ts:39](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L39)
10
-
11
- ## Type Parameters
12
-
13
- • **T** _extends_ [`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
14
-
15
- • **TR** _extends_ [`PurchaseRuleTypes`](../../../rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md) \| [`HoldRuleTypes`](../../../rules/hold-rule-types/enumerations/HoldRuleTypes.md)
16
-
17
- ## Implements
18
-
19
- - [`IReasonToRule`](../interfaces/IReasonToRule.md)\<`T`, `TR`\>
20
-
21
- ## Constructors
22
-
23
- ### new ReasonToRule()
24
-
25
- > **new ReasonToRule**\<`T`, `TR`\>(`investmentReason`, `propertyType`, `propertyKey`, `value`, `ruleType`?, `overrideUserResultEstimates`?): [`ReasonToRule`](ReasonToRule.md)\<`T`, `TR`\>
26
-
27
- Defined in: [investments/reason-to-rule.ts:44](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L44)
28
-
29
- #### Parameters
30
-
31
- ##### investmentReason
32
-
33
- [`InvestmentReasons`](../../investment-reasons/enumerations/InvestmentReasons.md)
34
-
35
- ##### propertyType
36
-
37
- [`PropertyType`](../../../properties/property-type/enumerations/PropertyType.md)
38
-
39
- ##### propertyKey
40
-
41
- keyof `T` & `string`
42
-
43
- ##### value
44
-
45
- `number`[]
46
-
47
- ##### ruleType?
48
-
49
- `TR`
50
-
51
- ##### overrideUserResultEstimates?
52
-
53
- [`UserResultEstimates`](../../user-result-estimates/type-aliases/UserResultEstimates.md)
54
-
55
- #### Returns
56
-
57
- [`ReasonToRule`](ReasonToRule.md)\<`T`, `TR`\>
58
-
59
- ## Properties
60
-
61
- ### investmentReason
62
-
63
- > **investmentReason**: [`InvestmentReasons`](../../investment-reasons/enumerations/InvestmentReasons.md)
64
-
65
- Defined in: [investments/reason-to-rule.ts:84](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L84)
66
-
67
- #### Implementation of
68
-
69
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`investmentReason`](../interfaces/IReasonToRule.md#investmentreason)
70
-
71
- ---
72
-
73
- ### propertyKey
74
-
75
- > **propertyKey**: keyof `T` & `string`
76
-
77
- Defined in: [investments/reason-to-rule.ts:129](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L129)
78
-
79
- #### Implementation of
80
-
81
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`propertyKey`](../interfaces/IReasonToRule.md#propertykey)
82
-
83
- ---
84
-
85
- ### propertyType
86
-
87
- > **propertyType**: [`PropertyType`](../../../properties/property-type/enumerations/PropertyType.md)
88
-
89
- Defined in: [investments/reason-to-rule.ts:130](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L130)
90
-
91
- #### Implementation of
92
-
93
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`propertyType`](../interfaces/IReasonToRule.md#propertytype-2)
94
-
95
- ---
96
-
97
- ### ruleType
98
-
99
- > **ruleType**: `TR`
100
-
101
- Defined in: [investments/reason-to-rule.ts:131](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L131)
102
-
103
- #### Implementation of
104
-
105
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`ruleType`](../interfaces/IReasonToRule.md#ruletype-4)
106
-
107
- ---
108
-
109
- ### values
110
-
111
- > **values**: `number`[]
112
-
113
- Defined in: [investments/reason-to-rule.ts:132](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L132)
114
-
115
- #### Implementation of
116
-
117
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`values`](../interfaces/IReasonToRule.md#values)
118
-
119
- ## Methods
120
-
121
- ### getValueAtIndex()
122
-
123
- > **getValueAtIndex**(`index`): `number`
124
-
125
- Defined in: [investments/reason-to-rule.ts:98](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L98)
126
-
127
- #### Parameters
128
-
129
- ##### index
130
-
131
- `number`
132
-
133
- #### Returns
134
-
135
- `number`
136
-
137
- #### Implementation of
138
-
139
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`getValueAtIndex`](../interfaces/IReasonToRule.md#getvalueatindex)
140
-
141
- ---
142
-
143
- ### isRuleAndPropertyTypeMatch()
144
-
145
- > **isRuleAndPropertyTypeMatch**(`propertyType`, `ruleType`): `boolean`
146
-
147
- Defined in: [investments/reason-to-rule.ts:86](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L86)
148
-
149
- #### Parameters
150
-
151
- ##### propertyType
152
-
153
- [`PropertyType`](../../../properties/property-type/enumerations/PropertyType.md)
154
-
155
- ##### ruleType
156
-
157
- `TR`
158
-
159
- #### Returns
160
-
161
- `boolean`
162
-
163
- #### Implementation of
164
-
165
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`isRuleAndPropertyTypeMatch`](../interfaces/IReasonToRule.md#isruleandpropertytypematch)
166
-
167
- ---
168
-
169
- ### isRuleMatch()
170
-
171
- > **isRuleMatch**(`ruleType`): `boolean`
172
-
173
- Defined in: [investments/reason-to-rule.ts:90](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L90)
174
-
175
- #### Parameters
176
-
177
- ##### ruleType
178
-
179
- `TR`
180
-
181
- #### Returns
182
-
183
- `boolean`
184
-
185
- #### Implementation of
186
-
187
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`isRuleMatch`](../interfaces/IReasonToRule.md#isrulematch)
188
-
189
- ---
190
-
191
- ### isRuleNone()
192
-
193
- > **isRuleNone**(): `boolean`
194
-
195
- Defined in: [investments/reason-to-rule.ts:94](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L94)
196
-
197
- #### Returns
198
-
199
- `boolean`
200
-
201
- #### Implementation of
202
-
203
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`isRuleNone`](../interfaces/IReasonToRule.md#isrulenone)
204
-
205
- ---
206
-
207
- ### isValueGreater()
208
-
209
- > **isValueGreater**\<`T2`\>(`rule`): `boolean`
210
-
211
- Defined in: [investments/reason-to-rule.ts:60](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L60)
212
-
213
- #### Type Parameters
214
-
215
- • **T2** _extends_ [`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
216
-
217
- #### Parameters
218
-
219
- ##### rule
220
-
221
- [`IReasonToRule`](../interfaces/IReasonToRule.md)\<`T2`, `TR`\>
222
-
223
- #### Returns
224
-
225
- `boolean`
226
-
227
- #### Implementation of
228
-
229
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`isValueGreater`](../interfaces/IReasonToRule.md#isvaluegreater)
230
-
231
- ---
232
-
233
- ### userResultEstimates()
234
-
235
- > **userResultEstimates**(`rental`, `holdRules`, `purchaseRules`, `date`): [`UserInvestResult`](../../user-invest-result/classes/UserInvestResult.md)[]
236
-
237
- Defined in: [investments/reason-to-rule.ts:106](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L106)
238
-
239
- #### Parameters
240
-
241
- ##### rental
242
-
243
- [`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
244
-
245
- ##### holdRules
246
-
247
- [`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`HoldRuleTypes`](../../../rules/hold-rule-types/enumerations/HoldRuleTypes.md)\>[]
248
-
249
- ##### purchaseRules
250
-
251
- [`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`PurchaseRuleTypes`](../../../rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md)\>[]
252
-
253
- ##### date
254
-
255
- `Date`
256
-
257
- #### Returns
258
-
259
- [`UserInvestResult`](../../user-invest-result/classes/UserInvestResult.md)[]
260
-
261
- #### Implementation of
262
-
263
- [`IReasonToRule`](../interfaces/IReasonToRule.md).[`userResultEstimates`](../interfaces/IReasonToRule.md#userresultestimates)
@@ -1,16 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../modules.md) / investments/reason-to-rule
6
-
7
- # investments/reason-to-rule
8
-
9
- ## Classes
10
-
11
- - [ReasonToRule](classes/ReasonToRule.md)
12
-
13
- ## Interfaces
14
-
15
- - [IReasonToRule](interfaces/IReasonToRule.md)
16
- - [IReasonToRuleMeta](interfaces/IReasonToRuleMeta.md)
@@ -1,189 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../../modules.md) / [investments/reason-to-rule](../index.md) / IReasonToRule
6
-
7
- # Interface: IReasonToRule\<T, TR\>
8
-
9
- Defined in: [investments/reason-to-rule.ts:15](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L15)
10
-
11
- ## Extends
12
-
13
- - [`IReasonToRuleMeta`](IReasonToRuleMeta.md)\<`TR`\>
14
-
15
- ## Type Parameters
16
-
17
- • **T** _extends_ [`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
18
-
19
- • **TR** _extends_ [`PurchaseRuleTypes`](../../../rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md) \| [`HoldRuleTypes`](../../../rules/hold-rule-types/enumerations/HoldRuleTypes.md)
20
-
21
- ## Properties
22
-
23
- ### investmentReason
24
-
25
- > **investmentReason**: [`InvestmentReasons`](../../investment-reasons/enumerations/InvestmentReasons.md)
26
-
27
- Defined in: [investments/reason-to-rule.ts:11](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L11)
28
-
29
- #### Inherited from
30
-
31
- [`IReasonToRuleMeta`](IReasonToRuleMeta.md).[`investmentReason`](IReasonToRuleMeta.md#investmentreason)
32
-
33
- ---
34
-
35
- ### isRuleAndPropertyTypeMatch()
36
-
37
- > **isRuleAndPropertyTypeMatch**: (`propertyType`, `ruleType`) => `boolean`
38
-
39
- Defined in: [investments/reason-to-rule.ts:21](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L21)
40
-
41
- #### Parameters
42
-
43
- ##### propertyType
44
-
45
- [`PropertyType`](../../../properties/property-type/enumerations/PropertyType.md)
46
-
47
- ##### ruleType
48
-
49
- `TR`
50
-
51
- #### Returns
52
-
53
- `boolean`
54
-
55
- ---
56
-
57
- ### isRuleMatch()
58
-
59
- > **isRuleMatch**: (`ruleType`) => `boolean`
60
-
61
- Defined in: [investments/reason-to-rule.ts:23](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L23)
62
-
63
- #### Parameters
64
-
65
- ##### ruleType
66
-
67
- `TR`
68
-
69
- #### Returns
70
-
71
- `boolean`
72
-
73
- ---
74
-
75
- ### propertyKey
76
-
77
- > **propertyKey**: keyof `T` & `string`
78
-
79
- Defined in: [investments/reason-to-rule.ts:18](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L18)
80
-
81
- ---
82
-
83
- ### propertyType
84
-
85
- > **propertyType**: [`PropertyType`](../../../properties/property-type/enumerations/PropertyType.md)
86
-
87
- Defined in: [investments/reason-to-rule.ts:17](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L17)
88
-
89
- ---
90
-
91
- ### ruleType?
92
-
93
- > `optional` **ruleType**: `TR`
94
-
95
- Defined in: [investments/reason-to-rule.ts:12](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L12)
96
-
97
- #### Inherited from
98
-
99
- [`IReasonToRuleMeta`](IReasonToRuleMeta.md).[`ruleType`](IReasonToRuleMeta.md#ruletype)
100
-
101
- ---
102
-
103
- ### values
104
-
105
- > **values**: `number`[]
106
-
107
- Defined in: [investments/reason-to-rule.ts:19](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L19)
108
-
109
- ## Methods
110
-
111
- ### getValueAtIndex()
112
-
113
- > **getValueAtIndex**(`index`): `number`
114
-
115
- Defined in: [investments/reason-to-rule.ts:27](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L27)
116
-
117
- #### Parameters
118
-
119
- ##### index
120
-
121
- `number`
122
-
123
- #### Returns
124
-
125
- `number`
126
-
127
- ---
128
-
129
- ### isRuleNone()
130
-
131
- > **isRuleNone**(): `boolean`
132
-
133
- Defined in: [investments/reason-to-rule.ts:25](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L25)
134
-
135
- #### Returns
136
-
137
- `boolean`
138
-
139
- ---
140
-
141
- ### isValueGreater()
142
-
143
- > **isValueGreater**\<`T2`\>(`rule`): `boolean`
144
-
145
- Defined in: [investments/reason-to-rule.ts:29](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L29)
146
-
147
- #### Type Parameters
148
-
149
- • **T2** _extends_ [`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
150
-
151
- #### Parameters
152
-
153
- ##### rule
154
-
155
- [`IReasonToRule`](IReasonToRule.md)\<`T2`, `TR`\>
156
-
157
- #### Returns
158
-
159
- `boolean`
160
-
161
- ---
162
-
163
- ### userResultEstimates()
164
-
165
- > **userResultEstimates**(`rental`, `holdRules`, `purchaseRules`, `date`): [`UserInvestResult`](../../user-invest-result/classes/UserInvestResult.md)[]
166
-
167
- Defined in: [investments/reason-to-rule.ts:31](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L31)
168
-
169
- #### Parameters
170
-
171
- ##### rental
172
-
173
- [`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
174
-
175
- ##### holdRules
176
-
177
- [`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`HoldRuleTypes`](../../../rules/hold-rule-types/enumerations/HoldRuleTypes.md)\>[]
178
-
179
- ##### purchaseRules
180
-
181
- [`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`PurchaseRuleTypes`](../../../rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md)\>[]
182
-
183
- ##### date
184
-
185
- `Date`
186
-
187
- #### Returns
188
-
189
- [`UserInvestResult`](../../user-invest-result/classes/UserInvestResult.md)[]
@@ -1,33 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../../modules.md) / [investments/reason-to-rule](../index.md) / IReasonToRuleMeta
6
-
7
- # Interface: IReasonToRuleMeta\<TR\>
8
-
9
- Defined in: [investments/reason-to-rule.ts:10](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L10)
10
-
11
- ## Extended by
12
-
13
- - [`IReasonToRule`](IReasonToRule.md)
14
-
15
- ## Type Parameters
16
-
17
- • **TR** _extends_ [`PurchaseRuleTypes`](../../../rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md) \| [`HoldRuleTypes`](../../../rules/hold-rule-types/enumerations/HoldRuleTypes.md)
18
-
19
- ## Properties
20
-
21
- ### investmentReason
22
-
23
- > **investmentReason**: [`InvestmentReasons`](../../investment-reasons/enumerations/InvestmentReasons.md)
24
-
25
- Defined in: [investments/reason-to-rule.ts:11](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L11)
26
-
27
- ---
28
-
29
- ### ruleType?
30
-
31
- > `optional` **ruleType**: `TR`
32
-
33
- Defined in: [investments/reason-to-rule.ts:12](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/reason-to-rule.ts#L12)
@@ -1,53 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../../modules.md) / [investments/rental-investor-validator](../index.md) / RentalInvestorValidator
6
-
7
- # Class: RentalInvestorValidator
8
-
9
- Defined in: [investments/rental-investor-validator.ts:8](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/rental-investor-validator.ts#L8)
10
-
11
- ## Implements
12
-
13
- - [`IRentalInvestorValidator`](../interfaces/IRentalInvestorValidator.md)
14
-
15
- ## Constructors
16
-
17
- ### new RentalInvestorValidator()
18
-
19
- > **new RentalInvestorValidator**(): [`RentalInvestorValidator`](RentalInvestorValidator.md)
20
-
21
- #### Returns
22
-
23
- [`RentalInvestorValidator`](RentalInvestorValidator.md)
24
-
25
- ## Properties
26
-
27
- ### results
28
-
29
- > **results**: [`IUserInvestResult`](../../user-invest-result/interfaces/IUserInvestResult.md)[] = `[]`
30
-
31
- Defined in: [investments/rental-investor-validator.ts:13](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/rental-investor-validator.ts#L13)
32
-
33
- #### Implementation of
34
-
35
- [`IRentalInvestorValidator`](../interfaces/IRentalInvestorValidator.md).[`results`](../interfaces/IRentalInvestorValidator.md#results)
36
-
37
- ## Accessors
38
-
39
- ### canInvest
40
-
41
- #### Get Signature
42
-
43
- > **get** **canInvest**(): `boolean`
44
-
45
- Defined in: [investments/rental-investor-validator.ts:9](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/rental-investor-validator.ts#L9)
46
-
47
- ##### Returns
48
-
49
- `boolean`
50
-
51
- #### Implementation of
52
-
53
- [`IRentalInvestorValidator`](../interfaces/IRentalInvestorValidator.md).[`canInvest`](../interfaces/IRentalInvestorValidator.md#caninvest)
@@ -1,15 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../modules.md) / investments/rental-investor-validator
6
-
7
- # investments/rental-investor-validator
8
-
9
- ## Classes
10
-
11
- - [RentalInvestorValidator](classes/RentalInvestorValidator.md)
12
-
13
- ## Interfaces
14
-
15
- - [IRentalInvestorValidator](interfaces/IRentalInvestorValidator.md)
@@ -1,25 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../../modules.md) / [investments/rental-investor-validator](../index.md) / IRentalInvestorValidator
6
-
7
- # Interface: IRentalInvestorValidator
8
-
9
- Defined in: [investments/rental-investor-validator.ts:3](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/rental-investor-validator.ts#L3)
10
-
11
- ## Properties
12
-
13
- ### canInvest
14
-
15
- > `readonly` **canInvest**: `boolean`
16
-
17
- Defined in: [investments/rental-investor-validator.ts:4](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/rental-investor-validator.ts#L4)
18
-
19
- ---
20
-
21
- ### results
22
-
23
- > **results**: [`IUserInvestResult`](../../user-invest-result/interfaces/IUserInvestResult.md)[]
24
-
25
- Defined in: [investments/rental-investor-validator.ts:5](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/rental-investor-validator.ts#L5)
@@ -1,65 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../../modules.md) / [investments/user-invest-result](../index.md) / UserInvestResult
6
-
7
- # Class: UserInvestResult
8
-
9
- Defined in: [investments/user-invest-result.ts:8](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/user-invest-result.ts#L8)
10
-
11
- ## Implements
12
-
13
- - [`IUserInvestResult`](../interfaces/IUserInvestResult.md)
14
-
15
- ## Constructors
16
-
17
- ### new UserInvestResult()
18
-
19
- > **new UserInvestResult**(`reason`, `message`): [`UserInvestResult`](UserInvestResult.md)
20
-
21
- Defined in: [investments/user-invest-result.ts:16](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/user-invest-result.ts#L16)
22
-
23
- #### Parameters
24
-
25
- ##### reason
26
-
27
- [`InvestmentReasons`](../../investment-reasons/enumerations/InvestmentReasons.md) = `InvestmentReasons.Unknown`
28
-
29
- ##### message
30
-
31
- `string` = `''`
32
-
33
- #### Returns
34
-
35
- [`UserInvestResult`](UserInvestResult.md)
36
-
37
- ## Properties
38
-
39
- ### investmentReason
40
-
41
- > **investmentReason**: [`InvestmentReasons`](../../investment-reasons/enumerations/InvestmentReasons.md)
42
-
43
- Defined in: [investments/user-invest-result.ts:14](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/user-invest-result.ts#L14)
44
-
45
- #### Implementation of
46
-
47
- [`IUserInvestResult`](../interfaces/IUserInvestResult.md).[`investmentReason`](../interfaces/IUserInvestResult.md#investmentreason)
48
-
49
- ## Accessors
50
-
51
- ### message
52
-
53
- #### Get Signature
54
-
55
- > **get** **message**(): `string`
56
-
57
- Defined in: [investments/user-invest-result.ts:9](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/investments/user-invest-result.ts#L9)
58
-
59
- ##### Returns
60
-
61
- `string`
62
-
63
- #### Implementation of
64
-
65
- [`IUserInvestResult`](../interfaces/IUserInvestResult.md).[`message`](../interfaces/IUserInvestResult.md#message)
@@ -1,15 +0,0 @@
1
- [**@cubedelement.com/realty-investor-timeline**](../../index.md)
2
-
3
- ---
4
-
5
- [@cubedelement.com/realty-investor-timeline](../../modules.md) / investments/user-invest-result
6
-
7
- # investments/user-invest-result
8
-
9
- ## Classes
10
-
11
- - [UserInvestResult](classes/UserInvestResult.md)
12
-
13
- ## Interfaces
14
-
15
- - [IUserInvestResult](interfaces/IUserInvestResult.md)