@cubedelement.com/realty-investor-timeline 5.5.1 → 5.7.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.
- package/CHANGELOG.md +14 -0
- package/dist/src/account/i-user-goal.d.ts +5 -0
- package/dist/src/account/user.d.ts +20 -1
- package/dist/src/account/user.js +21 -0
- package/dist/src/ledger/i-ledger-summary.d.ts +6 -0
- package/dist/src/ledger/ledger-collection.d.ts +6 -2
- package/dist/src/ledger/ledger-collection.js +40 -1
- package/dist/src/ledger/ledger-item.d.ts +17 -0
- package/dist/src/ledger/ledger-item.js +38 -0
- package/dist/src/time/default-has-met-goal-or-max-time.js +1 -1
- package/dist/src/time/looper.js +1 -1
- package/dist/src/utils/get-date-quarter.d.ts +9 -0
- package/dist/src/utils/get-date-quarter.js +9 -0
- package/package.json +1 -1
- package/.github/dependabot.yml +0 -10
- package/docs/_media/badge.svg +0 -1
- package/docs/account/i-user-goal/index.md +0 -11
- package/docs/account/i-user-goal/interfaces/IUserGoal.md +0 -47
- package/docs/account/i-user-investor-check/index.md +0 -11
- package/docs/account/i-user-investor-check/interfaces/IUserInvestorCheck.md +0 -206
- package/docs/account/index.md +0 -31
- package/docs/account/user/classes/User.md +0 -312
- package/docs/account/user/index.md +0 -15
- package/docs/account/user/interfaces/IUser.md +0 -282
- package/docs/caching/index.md +0 -19
- package/docs/caching/value-cache/classes/ValueCache.md +0 -194
- package/docs/caching/value-cache/index.md +0 -15
- package/docs/caching/value-cache/interfaces/IValueCache.md +0 -104
- package/docs/calculations/can-invest-by-user/functions/canInvestByUser.md +0 -35
- package/docs/calculations/can-invest-by-user/index.md +0 -11
- package/docs/calculations/cash-on-cash-return/functions/cashOnCashReturn.md +0 -29
- package/docs/calculations/cash-on-cash-return/index.md +0 -11
- package/docs/calculations/get-cost-down/functions/getCostDown.md +0 -27
- package/docs/calculations/get-cost-down/index.md +0 -11
- package/docs/calculations/get-cost-down-user-investment-results/functions/getCostDownUserInvestmentResults.md +0 -33
- package/docs/calculations/get-cost-down-user-investment-results/index.md +0 -11
- package/docs/calculations/get-equity-capture-amount/functions/getEquityCaptureAmount.md +0 -31
- package/docs/calculations/get-equity-capture-amount/index.md +0 -11
- package/docs/calculations/get-equity-capture-user-investment-results/functions/getEquityCaptureUserInvestmentResults.md +0 -33
- package/docs/calculations/get-equity-capture-user-investment-results/index.md +0 -11
- package/docs/calculations/get-investment-percent/functions/getInvestmentPercent.md +0 -27
- package/docs/calculations/get-investment-percent/index.md +0 -11
- package/docs/calculations/get-min-cost-down-by-rule/functions/getMinCostDownByRule.md +0 -25
- package/docs/calculations/get-min-cost-down-by-rule/index.md +0 -11
- package/docs/calculations/get-monthly-mortgage/functions/getMonthlyMortgage.md +0 -43
- package/docs/calculations/get-monthly-mortgage/index.md +0 -11
- package/docs/calculations/get-monthly-principal-interest-tax-interest/functions/getMonthlyPrincipalInterestTaxInterest.md +0 -43
- package/docs/calculations/get-monthly-principal-interest-tax-interest/index.md +0 -11
- package/docs/calculations/get-sell-price-estimate/functions/getSellPriceEstimate.md +0 -33
- package/docs/calculations/get-sell-price-estimate/index.md +0 -11
- package/docs/calculations/index.md +0 -73
- package/docs/calculations/return-on-capital-gain/functions/returnOnCapitalGain.md +0 -31
- package/docs/calculations/return-on-capital-gain/index.md +0 -11
- package/docs/formatters/currency/functions/default.md +0 -21
- package/docs/formatters/currency/index.md +0 -11
- package/docs/formatters/index.md +0 -7
- package/docs/generators/factory-passive-apartment/functions/generateRentalPassiveApartment.md +0 -35
- package/docs/generators/factory-passive-apartment/index.md +0 -11
- package/docs/generators/factory-single-family/functions/generateSingleFamily.md +0 -35
- package/docs/generators/factory-single-family/index.md +0 -11
- package/docs/generators/generate-property/index.md +0 -11
- package/docs/generators/generate-property/type-aliases/GenerateProperty.md +0 -37
- package/docs/generators/generic-generate-property/functions/genericGenerateProperty.md +0 -35
- package/docs/generators/generic-generate-property/index.md +0 -11
- package/docs/generators/i-property-entity-options/index.md +0 -11
- package/docs/generators/i-property-entity-options/interfaces/IPropertyEntityOptions.md +0 -113
- package/docs/generators/index.md +0 -49
- package/docs/generators/rental-generator/classes/RentalGenerator.md +0 -248
- package/docs/generators/rental-generator/index.md +0 -15
- package/docs/generators/rental-generator/interfaces/IRentalGenerator.md +0 -65
- package/docs/index/index.md +0 -487
- package/docs/index.md +0 -258
- package/docs/investments/index.md +0 -85
- package/docs/investments/investment-reasons/enumerations/InvestmentReasons.md +0 -119
- package/docs/investments/investment-reasons/index.md +0 -11
- package/docs/investments/investment-reasons-decorator/functions/InvestmentReasonForHoldRuleTypes.md +0 -25
- package/docs/investments/investment-reasons-decorator/functions/InvestmentReasonForPurchaseRuleTypes.md +0 -25
- package/docs/investments/investment-reasons-decorator/functions/getInvestmentReasons.md +0 -33
- package/docs/investments/investment-reasons-decorator/functions/getInvestmentReasonsForPurchaseTypes.md +0 -25
- package/docs/investments/investment-reasons-decorator/index.md +0 -18
- package/docs/investments/investment-reasons-decorator/type-aliases/PropertyDecoratorType.md +0 -29
- package/docs/investments/reason-to-rule/classes/ReasonToRule.md +0 -263
- package/docs/investments/reason-to-rule/index.md +0 -16
- package/docs/investments/reason-to-rule/interfaces/IReasonToRule.md +0 -189
- package/docs/investments/reason-to-rule/interfaces/IReasonToRuleMeta.md +0 -33
- package/docs/investments/rental-investor-validator/classes/RentalInvestorValidator.md +0 -53
- package/docs/investments/rental-investor-validator/index.md +0 -15
- package/docs/investments/rental-investor-validator/interfaces/IRentalInvestorValidator.md +0 -25
- package/docs/investments/user-invest-result/classes/UserInvestResult.md +0 -65
- package/docs/investments/user-invest-result/index.md +0 -15
- package/docs/investments/user-invest-result/interfaces/IUserInvestResult.md +0 -25
- package/docs/investments/user-result-estimates/index.md +0 -11
- package/docs/investments/user-result-estimates/type-aliases/UserResultEstimates.md +0 -33
- package/docs/ledger/i-ledger-summary/index.md +0 -11
- package/docs/ledger/i-ledger-summary/interfaces/ILedgerSummary.md +0 -57
- package/docs/ledger/index.md +0 -43
- package/docs/ledger/ledger-collection/classes/LedgerCollection.md +0 -425
- package/docs/ledger/ledger-collection/index.md +0 -19
- package/docs/ledger/ledger-collection/interfaces/ILedgerCollection.md +0 -313
- package/docs/ledger/ledger-collection/type-aliases/LedgerItemPredicate.md +0 -25
- package/docs/ledger/ledger-item/classes/LedgerItem.md +0 -211
- package/docs/ledger/ledger-item/index.md +0 -11
- package/docs/ledger/ledger-item-type/enumerations/LedgerItemType.md +0 -57
- package/docs/ledger/ledger-item-type/index.md +0 -11
- package/docs/loans/i-loan-settings/index.md +0 -11
- package/docs/loans/i-loan-settings/interfaces/ILoanSetting.md +0 -33
- package/docs/loans/index.md +0 -19
- package/docs/loans/loan-settings/enumerations/LoanSettings.md +0 -41
- package/docs/loans/loan-settings/index.md +0 -11
- package/docs/modules.md +0 -88
- package/docs/properties/i-entity-existence/index.md +0 -11
- package/docs/properties/i-entity-existence/interfaces/IEntityExistence.md +0 -33
- package/docs/properties/i-property-entity/index.md +0 -11
- package/docs/properties/i-property-entity/interfaces/IPropertyEntity.md +0 -159
- package/docs/properties/i-rental-property-entity/index.md +0 -11
- package/docs/properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md +0 -416
- package/docs/properties/index.md +0 -43
- package/docs/properties/property-sort/functions/default.md +0 -35
- package/docs/properties/property-sort/index.md +0 -11
- package/docs/properties/property-type/enumerations/PropertyType.md +0 -33
- package/docs/properties/property-type/index.md +0 -11
- package/docs/properties/rental-passive-apartment/classes/RentalPassiveApartment.md +0 -558
- package/docs/properties/rental-passive-apartment/index.md +0 -11
- package/docs/properties/rental-single-family/classes/RentalSingleFamily.md +0 -639
- package/docs/properties/rental-single-family/index.md +0 -11
- package/docs/rules/eval-type/index.md +0 -11
- package/docs/rules/eval-type/type-aliases/EvalType.md +0 -25
- package/docs/rules/eval-types/functions/AtLeastOrMore.md +0 -25
- package/docs/rules/eval-types/functions/NoMoreThan.md +0 -25
- package/docs/rules/eval-types/index.md +0 -12
- package/docs/rules/get-enum-type-by-value/functions/getEnumTypeByValue.md +0 -23
- package/docs/rules/get-enum-type-by-value/index.md +0 -11
- package/docs/rules/get-rules/functions/getRules.md +0 -27
- package/docs/rules/get-rules/index.md +0 -11
- package/docs/rules/hold-rule-types/enumerations/HoldRuleTypes.md +0 -49
- package/docs/rules/hold-rule-types/index.md +0 -11
- package/docs/rules/i-rule/index.md +0 -11
- package/docs/rules/i-rule/interfaces/IRule.md +0 -41
- package/docs/rules/index.md +0 -67
- package/docs/rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md +0 -78
- package/docs/rules/purchase-rule-types/index.md +0 -11
- package/docs/rules/rule-evaluation/classes/RuleEvaluation.md +0 -103
- package/docs/rules/rule-evaluation/index.md +0 -15
- package/docs/rules/rule-evaluation/interfaces/IRuleEvaluation.md +0 -73
- package/docs/time/default-has-met-goal-or-max-time/functions/defaultHasMetGoalOrMaxTime.md +0 -39
- package/docs/time/default-has-met-goal-or-max-time/index.md +0 -11
- package/docs/time/has-met-goal-or-max-time/index.md +0 -11
- package/docs/time/has-met-goal-or-max-time/type-aliases/HasMetGoalOrMaxTime.md +0 -39
- package/docs/time/i-historical-property/index.md +0 -11
- package/docs/time/i-historical-property/interfaces/IHistoricalProperty.md +0 -25
- package/docs/time/i-historical-reason/index.md +0 -11
- package/docs/time/i-historical-reason/interfaces/IHistoricalReason.md +0 -25
- package/docs/time/i-loop-options/index.md +0 -11
- package/docs/time/i-loop-options/interfaces/ILoopOptions.md +0 -71
- package/docs/time/i-loop-recursive-options/index.md +0 -11
- package/docs/time/i-loop-recursive-options/interfaces/ILoopRecursiveOptions.md +0 -33
- package/docs/time/index.md +0 -85
- package/docs/time/looper/functions/looper.md +0 -25
- package/docs/time/looper/index.md +0 -15
- package/docs/time/looper/type-aliases/LooperType.md +0 -25
- package/docs/time/movement/functions/movement.md +0 -27
- package/docs/time/movement/index.md +0 -11
- package/docs/time/simulate/functions/simulate.md +0 -23
- package/docs/time/simulate/index.md +0 -16
- package/docs/time/simulate/interfaces/IGenOptions.md +0 -163
- package/docs/time/simulate/interfaces/ISimulateOptions.md +0 -115
- package/docs/time/timeline/classes/Timeline.md +0 -175
- package/docs/time/timeline/index.md +0 -15
- package/docs/time/timeline/interfaces/ITimeline.md +0 -83
- package/docs/time/update-historical-rentals/functions/updateHistoricalRentals.md +0 -41
- package/docs/time/update-historical-rentals/index.md +0 -11
- package/docs/utils/data-are-same-date/functions/default.md +0 -25
- package/docs/utils/data-are-same-date/index.md +0 -11
- package/docs/utils/data-clone-date/functions/cloneDateUtc.md +0 -27
- package/docs/utils/data-clone-date/index.md +0 -11
- package/docs/utils/data-compare-date/functions/default.md +0 -28
- package/docs/utils/data-compare-date/index.md +0 -11
- package/docs/utils/data-number/functions/randomNumberBetween.md +0 -25
- package/docs/utils/data-number/index.md +0 -11
- package/docs/utils/data-property-entity/functions/randomPropertyEntity.md +0 -23
- package/docs/utils/data-property-entity/index.md +0 -15
- package/docs/utils/data-property-entity/type-aliases/RandomPropertyEntity.md +0 -21
- package/docs/utils/ensure/functions/ensureArray.md +0 -39
- package/docs/utils/ensure/index.md +0 -15
- package/docs/utils/ensure/type-aliases/EnsureArrayPredicate.md +0 -29
- package/docs/utils/index.md +0 -43
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [caching/value-cache](../index.md) / ValueCache
|
|
6
|
-
|
|
7
|
-
# Class: ValueCache\<T\>
|
|
8
|
-
|
|
9
|
-
Defined in: [caching/value-cache.ts:34](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L34)
|
|
10
|
-
|
|
11
|
-
## Type Parameters
|
|
12
|
-
|
|
13
|
-
• **T**
|
|
14
|
-
|
|
15
|
-
## Implements
|
|
16
|
-
|
|
17
|
-
- [`IValueCache`](../interfaces/IValueCache.md)\<`T`\>
|
|
18
|
-
|
|
19
|
-
## Constructors
|
|
20
|
-
|
|
21
|
-
### new ValueCache()
|
|
22
|
-
|
|
23
|
-
> **new ValueCache**\<`T`\>(`expireDate`, `defaultValue`, `renewalInMonths`): [`ValueCache`](ValueCache.md)\<`T`\>
|
|
24
|
-
|
|
25
|
-
Defined in: [caching/value-cache.ts:56](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L56)
|
|
26
|
-
|
|
27
|
-
#### Parameters
|
|
28
|
-
|
|
29
|
-
##### expireDate
|
|
30
|
-
|
|
31
|
-
`Date`
|
|
32
|
-
|
|
33
|
-
##### defaultValue
|
|
34
|
-
|
|
35
|
-
`T`[]
|
|
36
|
-
|
|
37
|
-
##### renewalInMonths
|
|
38
|
-
|
|
39
|
-
`number`
|
|
40
|
-
|
|
41
|
-
#### Returns
|
|
42
|
-
|
|
43
|
-
[`ValueCache`](ValueCache.md)\<`T`\>
|
|
44
|
-
|
|
45
|
-
## Properties
|
|
46
|
-
|
|
47
|
-
### \_value
|
|
48
|
-
|
|
49
|
-
> `protected` **\_value**: `T`[]
|
|
50
|
-
|
|
51
|
-
Defined in: [caching/value-cache.ts:106](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L106)
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
### renewalInMonths
|
|
56
|
-
|
|
57
|
-
> **renewalInMonths**: `number`
|
|
58
|
-
|
|
59
|
-
Defined in: [caching/value-cache.ts:35](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L35)
|
|
60
|
-
|
|
61
|
-
#### Implementation of
|
|
62
|
-
|
|
63
|
-
[`IValueCache`](../interfaces/IValueCache.md).[`renewalInMonths`](../interfaces/IValueCache.md#renewalinmonths)
|
|
64
|
-
|
|
65
|
-
## Accessors
|
|
66
|
-
|
|
67
|
-
### expireDate
|
|
68
|
-
|
|
69
|
-
#### Get Signature
|
|
70
|
-
|
|
71
|
-
> **get** **expireDate**(): `Date`
|
|
72
|
-
|
|
73
|
-
Defined in: [caching/value-cache.ts:37](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L37)
|
|
74
|
-
|
|
75
|
-
##### Returns
|
|
76
|
-
|
|
77
|
-
`Date`
|
|
78
|
-
|
|
79
|
-
#### Set Signature
|
|
80
|
-
|
|
81
|
-
> **set** **expireDate**(`value`): `void`
|
|
82
|
-
|
|
83
|
-
Defined in: [caching/value-cache.ts:41](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L41)
|
|
84
|
-
|
|
85
|
-
##### Parameters
|
|
86
|
-
|
|
87
|
-
###### value
|
|
88
|
-
|
|
89
|
-
`Date`
|
|
90
|
-
|
|
91
|
-
##### Returns
|
|
92
|
-
|
|
93
|
-
`void`
|
|
94
|
-
|
|
95
|
-
#### Implementation of
|
|
96
|
-
|
|
97
|
-
[`IValueCache`](../interfaces/IValueCache.md).[`expireDate`](../interfaces/IValueCache.md#expiredate)
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
### newDefault
|
|
102
|
-
|
|
103
|
-
#### Get Signature
|
|
104
|
-
|
|
105
|
-
> **get** **newDefault**(): `T`[]
|
|
106
|
-
|
|
107
|
-
Defined in: [caching/value-cache.ts:48](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L48)
|
|
108
|
-
|
|
109
|
-
##### Returns
|
|
110
|
-
|
|
111
|
-
`T`[]
|
|
112
|
-
|
|
113
|
-
#### Implementation of
|
|
114
|
-
|
|
115
|
-
[`IValueCache`](../interfaces/IValueCache.md).[`newDefault`](../interfaces/IValueCache.md#newdefault)
|
|
116
|
-
|
|
117
|
-
## Methods
|
|
118
|
-
|
|
119
|
-
### getValue()
|
|
120
|
-
|
|
121
|
-
> **getValue**(`currentTime`): `T`[]
|
|
122
|
-
|
|
123
|
-
Defined in: [caching/value-cache.ts:76](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L76)
|
|
124
|
-
|
|
125
|
-
if the cache is expired, then it will return the default value. otherwise
|
|
126
|
-
it will return the stored value
|
|
127
|
-
|
|
128
|
-
#### Parameters
|
|
129
|
-
|
|
130
|
-
##### currentTime
|
|
131
|
-
|
|
132
|
-
`Date`
|
|
133
|
-
|
|
134
|
-
#### Returns
|
|
135
|
-
|
|
136
|
-
`T`[]
|
|
137
|
-
|
|
138
|
-
#### Implementation of
|
|
139
|
-
|
|
140
|
-
[`IValueCache`](../interfaces/IValueCache.md).[`getValue`](../interfaces/IValueCache.md#getvalue)
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
### isCacheExpired()
|
|
145
|
-
|
|
146
|
-
> **isCacheExpired**(`currentDate`?): `boolean`
|
|
147
|
-
|
|
148
|
-
Defined in: [caching/value-cache.ts:94](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L94)
|
|
149
|
-
|
|
150
|
-
determines if the expiredDate is greater than
|
|
151
|
-
or equal to currentDate. if this is the case it
|
|
152
|
-
will be return true. Also if expiredDate is nothing,
|
|
153
|
-
then it will return true. Also if currentDate is null,
|
|
154
|
-
while expiredDate exists then it will be expired, aka true
|
|
155
|
-
|
|
156
|
-
#### Parameters
|
|
157
|
-
|
|
158
|
-
##### currentDate?
|
|
159
|
-
|
|
160
|
-
`Date`
|
|
161
|
-
|
|
162
|
-
#### Returns
|
|
163
|
-
|
|
164
|
-
`boolean`
|
|
165
|
-
|
|
166
|
-
#### Implementation of
|
|
167
|
-
|
|
168
|
-
[`IValueCache`](../interfaces/IValueCache.md).[`isCacheExpired`](../interfaces/IValueCache.md#iscacheexpired)
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
### setValue()
|
|
173
|
-
|
|
174
|
-
> **setValue**(`value`, `currentDate`): `void`
|
|
175
|
-
|
|
176
|
-
Defined in: [caching/value-cache.ts:63](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L63)
|
|
177
|
-
|
|
178
|
-
#### Parameters
|
|
179
|
-
|
|
180
|
-
##### value
|
|
181
|
-
|
|
182
|
-
`T`[]
|
|
183
|
-
|
|
184
|
-
##### currentDate
|
|
185
|
-
|
|
186
|
-
`Date`
|
|
187
|
-
|
|
188
|
-
#### Returns
|
|
189
|
-
|
|
190
|
-
`void`
|
|
191
|
-
|
|
192
|
-
#### Implementation of
|
|
193
|
-
|
|
194
|
-
[`IValueCache`](../interfaces/IValueCache.md).[`setValue`](../interfaces/IValueCache.md#setvalue)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / caching/value-cache
|
|
6
|
-
|
|
7
|
-
# caching/value-cache
|
|
8
|
-
|
|
9
|
-
## Classes
|
|
10
|
-
|
|
11
|
-
- [ValueCache](classes/ValueCache.md)
|
|
12
|
-
|
|
13
|
-
## Interfaces
|
|
14
|
-
|
|
15
|
-
- [IValueCache](interfaces/IValueCache.md)
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [caching/value-cache](../index.md) / IValueCache
|
|
6
|
-
|
|
7
|
-
# Interface: IValueCache\<T\>
|
|
8
|
-
|
|
9
|
-
Defined in: [caching/value-cache.ts:9](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L9)
|
|
10
|
-
|
|
11
|
-
## Type Parameters
|
|
12
|
-
|
|
13
|
-
• **T**
|
|
14
|
-
|
|
15
|
-
## Properties
|
|
16
|
-
|
|
17
|
-
### expireDate
|
|
18
|
-
|
|
19
|
-
> **expireDate**: `Date`
|
|
20
|
-
|
|
21
|
-
Defined in: [caching/value-cache.ts:11](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L11)
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
### newDefault
|
|
26
|
-
|
|
27
|
-
> `readonly` **newDefault**: `unknown`
|
|
28
|
-
|
|
29
|
-
Defined in: [caching/value-cache.ts:12](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L12)
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
### renewalInMonths
|
|
34
|
-
|
|
35
|
-
> **renewalInMonths**: `number`
|
|
36
|
-
|
|
37
|
-
Defined in: [caching/value-cache.ts:10](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L10)
|
|
38
|
-
|
|
39
|
-
## Methods
|
|
40
|
-
|
|
41
|
-
### getValue()
|
|
42
|
-
|
|
43
|
-
> **getValue**(`currentTime`): `T`[]
|
|
44
|
-
|
|
45
|
-
Defined in: [caching/value-cache.ts:20](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L20)
|
|
46
|
-
|
|
47
|
-
if the cache is expired, then it will return the default value. otherwise
|
|
48
|
-
it will return the stored value
|
|
49
|
-
|
|
50
|
-
#### Parameters
|
|
51
|
-
|
|
52
|
-
##### currentTime
|
|
53
|
-
|
|
54
|
-
`Date`
|
|
55
|
-
|
|
56
|
-
#### Returns
|
|
57
|
-
|
|
58
|
-
`T`[]
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
### isCacheExpired()
|
|
63
|
-
|
|
64
|
-
> **isCacheExpired**(`currentDate`?): `boolean`
|
|
65
|
-
|
|
66
|
-
Defined in: [caching/value-cache.ts:31](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L31)
|
|
67
|
-
|
|
68
|
-
determines if the expiredDate is greater than
|
|
69
|
-
or equal to currentDate. if this is the case it
|
|
70
|
-
will be return true. Also if expiredDate is nothing,
|
|
71
|
-
then it will return true. Also if currentDate is null,
|
|
72
|
-
while expiredDate exists then it will be expired, aka true
|
|
73
|
-
|
|
74
|
-
#### Parameters
|
|
75
|
-
|
|
76
|
-
##### currentDate?
|
|
77
|
-
|
|
78
|
-
`Date`
|
|
79
|
-
|
|
80
|
-
#### Returns
|
|
81
|
-
|
|
82
|
-
`boolean`
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
### setValue()
|
|
87
|
-
|
|
88
|
-
> **setValue**(`value`, `currentDate`): `void`
|
|
89
|
-
|
|
90
|
-
Defined in: [caching/value-cache.ts:14](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/caching/value-cache.ts#L14)
|
|
91
|
-
|
|
92
|
-
#### Parameters
|
|
93
|
-
|
|
94
|
-
##### value
|
|
95
|
-
|
|
96
|
-
`T`[]
|
|
97
|
-
|
|
98
|
-
##### currentDate
|
|
99
|
-
|
|
100
|
-
`Date`
|
|
101
|
-
|
|
102
|
-
#### Returns
|
|
103
|
-
|
|
104
|
-
`void`
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [calculations/can-invest-by-user](../index.md) / canInvestByUser
|
|
6
|
-
|
|
7
|
-
# Function: canInvestByUser()
|
|
8
|
-
|
|
9
|
-
> **canInvestByUser**(`rental`, `user`, `date`, `properties`): [`IRentalInvestorValidator`](../../../investments/rental-investor-validator/interfaces/IRentalInvestorValidator.md)
|
|
10
|
-
|
|
11
|
-
Defined in: [calculations/can-invest-by-user.ts:16](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/calculations/can-invest-by-user.ts#L16)
|
|
12
|
-
|
|
13
|
-
determines if a user can invest in a property.
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### rental
|
|
18
|
-
|
|
19
|
-
[`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
|
|
20
|
-
|
|
21
|
-
### user
|
|
22
|
-
|
|
23
|
-
[`IUserInvestorCheck`](../../../account/i-user-investor-check/interfaces/IUserInvestorCheck.md)
|
|
24
|
-
|
|
25
|
-
### date
|
|
26
|
-
|
|
27
|
-
`Date`
|
|
28
|
-
|
|
29
|
-
### properties
|
|
30
|
-
|
|
31
|
-
[`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)[]
|
|
32
|
-
|
|
33
|
-
## Returns
|
|
34
|
-
|
|
35
|
-
[`IRentalInvestorValidator`](../../../investments/rental-investor-validator/interfaces/IRentalInvestorValidator.md)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / calculations/can-invest-by-user
|
|
6
|
-
|
|
7
|
-
# calculations/can-invest-by-user
|
|
8
|
-
|
|
9
|
-
## Functions
|
|
10
|
-
|
|
11
|
-
- [canInvestByUser](functions/canInvestByUser.md)
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [calculations/cash-on-cash-return](../index.md) / cashOnCashReturn
|
|
6
|
-
|
|
7
|
-
# Function: cashOnCashReturn()
|
|
8
|
-
|
|
9
|
-
> **cashOnCashReturn**(`annualCashFlow`, `costDownPrice`): `number`
|
|
10
|
-
|
|
11
|
-
Defined in: [calculations/cash-on-cash-return.ts:9](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/calculations/cash-on-cash-return.ts#L9)
|
|
12
|
-
|
|
13
|
-
determines from the cash down you put on a property and the cash flow, it states how well you leveraged your money
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### annualCashFlow
|
|
18
|
-
|
|
19
|
-
`number`
|
|
20
|
-
|
|
21
|
-
### costDownPrice
|
|
22
|
-
|
|
23
|
-
`number`
|
|
24
|
-
|
|
25
|
-
## Returns
|
|
26
|
-
|
|
27
|
-
`number`
|
|
28
|
-
|
|
29
|
-
returns a percentage value XX.XX%
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / calculations/cash-on-cash-return
|
|
6
|
-
|
|
7
|
-
# calculations/cash-on-cash-return
|
|
8
|
-
|
|
9
|
-
## Functions
|
|
10
|
-
|
|
11
|
-
- [cashOnCashReturn](functions/cashOnCashReturn.md)
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [calculations/get-cost-down](../index.md) / getCostDown
|
|
6
|
-
|
|
7
|
-
# Function: getCostDown()
|
|
8
|
-
|
|
9
|
-
> **getCostDown**(`purchasePrice`, `costDownPercent`): `number`
|
|
10
|
-
|
|
11
|
-
Defined in: [calculations/get-cost-down.ts:8](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/calculations/get-cost-down.ts#L8)
|
|
12
|
-
|
|
13
|
-
returns the the total cash down for a single family home
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### purchasePrice
|
|
18
|
-
|
|
19
|
-
`number`
|
|
20
|
-
|
|
21
|
-
### costDownPercent
|
|
22
|
-
|
|
23
|
-
`number`
|
|
24
|
-
|
|
25
|
-
## Returns
|
|
26
|
-
|
|
27
|
-
`number`
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / calculations/get-cost-down
|
|
6
|
-
|
|
7
|
-
# calculations/get-cost-down
|
|
8
|
-
|
|
9
|
-
## Functions
|
|
10
|
-
|
|
11
|
-
- [getCostDown](functions/getCostDown.md)
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [calculations/get-cost-down-user-investment-results](../index.md) / getCostDownUserInvestmentResults
|
|
6
|
-
|
|
7
|
-
# Function: getCostDownUserInvestmentResults()
|
|
8
|
-
|
|
9
|
-
> **getCostDownUserInvestmentResults**(`rental`, `holdRules`, `purchaseRules`, `date`): [`UserInvestResult`](../../../investments/user-invest-result/classes/UserInvestResult.md)[]
|
|
10
|
-
|
|
11
|
-
Defined in: [calculations/get-cost-down-user-investment-results.ts:7](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/calculations/get-cost-down-user-investment-results.ts#L7)
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
### rental
|
|
16
|
-
|
|
17
|
-
[`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
|
|
18
|
-
|
|
19
|
-
### holdRules
|
|
20
|
-
|
|
21
|
-
[`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`HoldRuleTypes`](../../../rules/hold-rule-types/enumerations/HoldRuleTypes.md)\>[]
|
|
22
|
-
|
|
23
|
-
### purchaseRules
|
|
24
|
-
|
|
25
|
-
[`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`PurchaseRuleTypes`](../../../rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md)\>[]
|
|
26
|
-
|
|
27
|
-
### date
|
|
28
|
-
|
|
29
|
-
`Date`
|
|
30
|
-
|
|
31
|
-
## Returns
|
|
32
|
-
|
|
33
|
-
[`UserInvestResult`](../../../investments/user-invest-result/classes/UserInvestResult.md)[]
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / calculations/get-cost-down-user-investment-results
|
|
6
|
-
|
|
7
|
-
# calculations/get-cost-down-user-investment-results
|
|
8
|
-
|
|
9
|
-
## Functions
|
|
10
|
-
|
|
11
|
-
- [getCostDownUserInvestmentResults](functions/getCostDownUserInvestmentResults.md)
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [calculations/get-equity-capture-amount](../index.md) / getEquityCaptureAmount
|
|
6
|
-
|
|
7
|
-
# Function: getEquityCaptureAmount()
|
|
8
|
-
|
|
9
|
-
> **getEquityCaptureAmount**(`investmentPercent`, `purchasePrice`, `salePrice`): `number`
|
|
10
|
-
|
|
11
|
-
Defined in: [calculations/get-equity-capture-amount.ts:9](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/calculations/get-equity-capture-amount.ts#L9)
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
### investmentPercent
|
|
16
|
-
|
|
17
|
-
`number`
|
|
18
|
-
|
|
19
|
-
this is xx.xx% number
|
|
20
|
-
|
|
21
|
-
### purchasePrice
|
|
22
|
-
|
|
23
|
-
`number`
|
|
24
|
-
|
|
25
|
-
### salePrice
|
|
26
|
-
|
|
27
|
-
`number`
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`number`
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / calculations/get-equity-capture-amount
|
|
6
|
-
|
|
7
|
-
# calculations/get-equity-capture-amount
|
|
8
|
-
|
|
9
|
-
## Functions
|
|
10
|
-
|
|
11
|
-
- [getEquityCaptureAmount](functions/getEquityCaptureAmount.md)
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [calculations/get-equity-capture-user-investment-results](../index.md) / getEquityCaptureUserInvestmentResults
|
|
6
|
-
|
|
7
|
-
# Function: getEquityCaptureUserInvestmentResults()
|
|
8
|
-
|
|
9
|
-
> **getEquityCaptureUserInvestmentResults**(`rental`, `holdRules`, `purchaseRules`, `date`): [`UserInvestResult`](../../../investments/user-invest-result/classes/UserInvestResult.md)[]
|
|
10
|
-
|
|
11
|
-
Defined in: [calculations/get-equity-capture-user-investment-results.ts:12](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/calculations/get-equity-capture-user-investment-results.ts#L12)
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
### rental
|
|
16
|
-
|
|
17
|
-
[`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
|
|
18
|
-
|
|
19
|
-
### holdRules
|
|
20
|
-
|
|
21
|
-
[`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`HoldRuleTypes`](../../../rules/hold-rule-types/enumerations/HoldRuleTypes.md)\>[]
|
|
22
|
-
|
|
23
|
-
### purchaseRules
|
|
24
|
-
|
|
25
|
-
[`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`PurchaseRuleTypes`](../../../rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md)\>[]
|
|
26
|
-
|
|
27
|
-
### date
|
|
28
|
-
|
|
29
|
-
`Date`
|
|
30
|
-
|
|
31
|
-
## Returns
|
|
32
|
-
|
|
33
|
-
[`UserInvestResult`](../../../investments/user-invest-result/classes/UserInvestResult.md)[]
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / calculations/get-equity-capture-user-investment-results
|
|
6
|
-
|
|
7
|
-
# calculations/get-equity-capture-user-investment-results
|
|
8
|
-
|
|
9
|
-
## Functions
|
|
10
|
-
|
|
11
|
-
- [getEquityCaptureUserInvestmentResults](functions/getEquityCaptureUserInvestmentResults.md)
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [calculations/get-investment-percent](../index.md) / getInvestmentPercent
|
|
6
|
-
|
|
7
|
-
# Function: getInvestmentPercent()
|
|
8
|
-
|
|
9
|
-
> **getInvestmentPercent**(`costDown`, `purchasePrice`): `number`
|
|
10
|
-
|
|
11
|
-
Defined in: [calculations/get-investment-percent.ts:6](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/calculations/get-investment-percent.ts#L6)
|
|
12
|
-
|
|
13
|
-
returns a percentage number (none float like) xx.xx%
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### costDown
|
|
18
|
-
|
|
19
|
-
`number`
|
|
20
|
-
|
|
21
|
-
### purchasePrice
|
|
22
|
-
|
|
23
|
-
`number`
|
|
24
|
-
|
|
25
|
-
## Returns
|
|
26
|
-
|
|
27
|
-
`number`
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / calculations/get-investment-percent
|
|
6
|
-
|
|
7
|
-
# calculations/get-investment-percent
|
|
8
|
-
|
|
9
|
-
## Functions
|
|
10
|
-
|
|
11
|
-
- [getInvestmentPercent](functions/getInvestmentPercent.md)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../../modules.md) / [calculations/get-min-cost-down-by-rule](../index.md) / getMinCostDownByRule
|
|
6
|
-
|
|
7
|
-
# Function: getMinCostDownByRule()
|
|
8
|
-
|
|
9
|
-
> **getMinCostDownByRule**(`rental`, `purchaseRules`): `number`
|
|
10
|
-
|
|
11
|
-
Defined in: [calculations/get-min-cost-down-by-rule.ts:5](https://github.com/kvernon/realty-investor-timeline/blob/c7446a8a5576468ac5874a2dd8323180fa97a55b/src/calculations/get-min-cost-down-by-rule.ts#L5)
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
### rental
|
|
16
|
-
|
|
17
|
-
[`IRentalPropertyEntity`](../../../properties/i-rental-property-entity/interfaces/IRentalPropertyEntity.md)
|
|
18
|
-
|
|
19
|
-
### purchaseRules
|
|
20
|
-
|
|
21
|
-
[`IRuleEvaluation`](../../../rules/rule-evaluation/interfaces/IRuleEvaluation.md)\<[`PurchaseRuleTypes`](../../../rules/purchase-rule-types/enumerations/PurchaseRuleTypes.md)\>[]
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`number`
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[**@cubedelement.com/realty-investor-timeline**](../../index.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@cubedelement.com/realty-investor-timeline](../../modules.md) / calculations/get-min-cost-down-by-rule
|
|
6
|
-
|
|
7
|
-
# calculations/get-min-cost-down-by-rule
|
|
8
|
-
|
|
9
|
-
## Functions
|
|
10
|
-
|
|
11
|
-
- [getMinCostDownByRule](functions/getMinCostDownByRule.md)
|