@casomoltd/nhs-pay 0.34.0 → 0.35.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/README.md +3 -3
- package/dist/additional-pension.d.ts +6 -4
- package/dist/additional-pension.js +22 -18
- package/dist/additional-pension.js.map +1 -1
- package/dist/circulars/ni-hsc-afc-06-2025.d.ts +1 -1
- package/dist/circulars/ni-hsc-afc-06-2025.js +1 -1
- package/dist/dates.d.ts +9 -5
- package/dist/dates.js.map +1 -1
- package/dist/errors.d.ts +58 -45
- package/dist/errors.js +63 -52
- package/dist/errors.js.map +1 -1
- package/dist/factor-basis.d.ts +95 -106
- package/dist/factor-basis.js +97 -108
- package/dist/factor-basis.js.map +1 -1
- package/dist/gad/additional-pension-0-703-2026-07-08.d.ts +185 -0
- package/dist/gad/additional-pension-0-703-2026-07-08.js +89 -0
- package/dist/gad/{additional-pension-0-703-2023-10-03.js.map → additional-pension-0-703-2026-07-08.js.map} +1 -1
- package/dist/gad/additional-pension-0-712-2026-07-08.d.ts +34 -0
- package/dist/gad/additional-pension-0-712-2026-07-08.js +172 -0
- package/dist/gad/additional-pension-0-712-2026-07-08.js.map +1 -0
- package/dist/gad/additional-pension-0-713-2026-07-08.d.ts +34 -0
- package/dist/gad/additional-pension-0-713-2026-07-08.js +175 -0
- package/dist/gad/additional-pension-0-713-2026-07-08.js.map +1 -0
- package/dist/gad/additional-pension-0-714-2026-07-08.d.ts +34 -0
- package/dist/gad/additional-pension-0-714-2026-07-08.js +178 -0
- package/dist/gad/additional-pension-0-714-2026-07-08.js.map +1 -0
- package/dist/gad/additional-pension-0-715-2026-07-08.d.ts +34 -0
- package/dist/gad/additional-pension-0-715-2026-07-08.js +181 -0
- package/dist/gad/additional-pension-0-715-2026-07-08.js.map +1 -0
- package/dist/gad/additional-pension-0-716-2026-07-08.d.ts +34 -0
- package/dist/gad/additional-pension-0-716-2026-07-08.js +172 -0
- package/dist/gad/additional-pension-0-716-2026-07-08.js.map +1 -0
- package/dist/gad/additional-pension-0-717-2026-07-08.d.ts +34 -0
- package/dist/gad/additional-pension-0-717-2026-07-08.js +175 -0
- package/dist/gad/additional-pension-0-717-2026-07-08.js.map +1 -0
- package/dist/gad/additional-pension-0-718-2026-07-08.d.ts +34 -0
- package/dist/gad/additional-pension-0-718-2026-07-08.js +178 -0
- package/dist/gad/additional-pension-0-718-2026-07-08.js.map +1 -0
- package/dist/gad/additional-pension-0-719-2026-07-08.d.ts +34 -0
- package/dist/gad/additional-pension-0-719-2026-07-08.js +181 -0
- package/dist/gad/additional-pension-0-719-2026-07-08.js.map +1 -0
- package/dist/gad/additional-pension-table.d.ts +4 -11
- package/dist/gad/additional-pension-table.js.map +1 -1
- package/dist/gad/erf-0-420-2026-07-08.d.ts +51 -0
- package/dist/gad/erf-0-420-2026-07-08.js +83 -0
- package/dist/gad/erf-0-420-2026-07-08.js.map +1 -0
- package/dist/gad/erf-1-401-2026-07-08.d.ts +42 -0
- package/dist/gad/erf-1-401-2026-07-08.js +67 -0
- package/dist/gad/erf-1-401-2026-07-08.js.map +1 -0
- package/dist/gad/erf-1-402-2026-07-08.d.ts +43 -0
- package/dist/gad/erf-1-402-2026-07-08.js +78 -0
- package/dist/gad/erf-1-402-2026-07-08.js.map +1 -0
- package/dist/gad/erf-1-407-2026-07-08.d.ts +42 -0
- package/dist/gad/erf-1-407-2026-07-08.js +67 -0
- package/dist/gad/erf-1-407-2026-07-08.js.map +1 -0
- package/dist/gad/factor-set.d.ts +54 -0
- package/dist/gad/factor-set.js +83 -0
- package/dist/gad/factor-set.js.map +1 -0
- package/dist/gad/factor-table.d.ts +31 -20
- package/dist/gad/factor-table.js +67 -37
- package/dist/gad/factor-table.js.map +1 -1
- package/dist/gad/lrf-0-421-2026-07-08.d.ts +46 -0
- package/dist/gad/lrf-0-421-2026-07-08.js +72 -0
- package/dist/gad/lrf-0-421-2026-07-08.js.map +1 -0
- package/dist/gad/lrf-0-422-2026-07-08.d.ts +43 -0
- package/dist/gad/lrf-0-422-2026-07-08.js +69 -0
- package/dist/gad/{lrf-0-422-2023-06-30.js.map → lrf-0-422-2026-07-08.js.map} +1 -1
- package/dist/gad/lrf-2-416-2026-07-08.d.ts +41 -0
- package/dist/gad/lrf-2-416-2026-07-08.js +66 -0
- package/dist/gad/lrf-2-416-2026-07-08.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/pension-projection.d.ts +30 -44
- package/dist/pension-projection.js +37 -61
- package/dist/pension-projection.js.map +1 -1
- package/dist/sections/section-1995.d.ts +6 -6
- package/dist/sections/section-1995.js +34 -27
- package/dist/sections/section-1995.js.map +1 -1
- package/dist/sections/section-2008.d.ts +4 -4
- package/dist/sections/section-2008.js +19 -23
- package/dist/sections/section-2008.js.map +1 -1
- package/dist/sections/section-2015.d.ts +7 -7
- package/dist/sections/section-2015.js +3 -7
- package/dist/sections/section-2015.js.map +1 -1
- package/package.json +1 -1
- package/dist/gad/additional-pension-0-703-2023-10-03.d.ts +0 -180
- package/dist/gad/additional-pension-0-703-2023-10-03.js +0 -87
- package/dist/gad/additional-pension-0-712-2023-10-03.d.ts +0 -35
- package/dist/gad/additional-pension-0-712-2023-10-03.js +0 -170
- package/dist/gad/additional-pension-0-712-2023-10-03.js.map +0 -1
- package/dist/gad/additional-pension-0-713-2023-10-03.d.ts +0 -35
- package/dist/gad/additional-pension-0-713-2023-10-03.js +0 -173
- package/dist/gad/additional-pension-0-713-2023-10-03.js.map +0 -1
- package/dist/gad/additional-pension-0-714-2023-10-03.d.ts +0 -35
- package/dist/gad/additional-pension-0-714-2023-10-03.js +0 -176
- package/dist/gad/additional-pension-0-714-2023-10-03.js.map +0 -1
- package/dist/gad/additional-pension-0-715-2023-10-03.d.ts +0 -35
- package/dist/gad/additional-pension-0-715-2023-10-03.js +0 -179
- package/dist/gad/additional-pension-0-715-2023-10-03.js.map +0 -1
- package/dist/gad/additional-pension-0-716-2023-10-03.d.ts +0 -35
- package/dist/gad/additional-pension-0-716-2023-10-03.js +0 -170
- package/dist/gad/additional-pension-0-716-2023-10-03.js.map +0 -1
- package/dist/gad/additional-pension-0-717-2023-10-03.d.ts +0 -35
- package/dist/gad/additional-pension-0-717-2023-10-03.js +0 -173
- package/dist/gad/additional-pension-0-717-2023-10-03.js.map +0 -1
- package/dist/gad/additional-pension-0-718-2023-10-03.d.ts +0 -35
- package/dist/gad/additional-pension-0-718-2023-10-03.js +0 -176
- package/dist/gad/additional-pension-0-718-2023-10-03.js.map +0 -1
- package/dist/gad/additional-pension-0-719-2023-10-03.d.ts +0 -35
- package/dist/gad/additional-pension-0-719-2023-10-03.js +0 -179
- package/dist/gad/additional-pension-0-719-2023-10-03.js.map +0 -1
- package/dist/gad/erf-1-401-2023-06-30.d.ts +0 -47
- package/dist/gad/erf-1-401-2023-06-30.js +0 -73
- package/dist/gad/erf-1-401-2023-06-30.js.map +0 -1
- package/dist/gad/erf-1-402-2023-06-30.d.ts +0 -48
- package/dist/gad/erf-1-402-2023-06-30.js +0 -84
- package/dist/gad/erf-1-402-2023-06-30.js.map +0 -1
- package/dist/gad/erf-1-407-2023-06-30.d.ts +0 -47
- package/dist/gad/erf-1-407-2023-06-30.js +0 -73
- package/dist/gad/erf-1-407-2023-06-30.js.map +0 -1
- package/dist/gad/erf-2023-06-30.d.ts +0 -72
- package/dist/gad/erf-2023-06-30.js +0 -105
- package/dist/gad/erf-2023-06-30.js.map +0 -1
- package/dist/gad/lrf-0-422-2023-06-30.d.ts +0 -45
- package/dist/gad/lrf-0-422-2023-06-30.js +0 -70
- package/dist/gad/lrf-2-416-2023-06-30.d.ts +0 -46
- package/dist/gad/lrf-2-416-2023-06-30.js +0 -72
- package/dist/gad/lrf-2-416-2023-06-30.js.map +0 -1
- package/dist/gad/lrf-2023-06-30.d.ts +0 -72
- package/dist/gad/lrf-2023-06-30.js +0 -99
- package/dist/gad/lrf-2023-06-30.js.map +0 -1
package/README.md
CHANGED
|
@@ -207,7 +207,7 @@ const projection = projectPension({
|
|
|
207
207
|
assumedCpi: 0.02,
|
|
208
208
|
});
|
|
209
209
|
console.log(projection.annualPension); // after ERF/LRF
|
|
210
|
-
console.log(projection.
|
|
210
|
+
console.log(projection.drawnTable?.kind); // 'erf'
|
|
211
211
|
console.log(projection.curve); // chart-ready points
|
|
212
212
|
|
|
213
213
|
// Commutation takes the whole {nominal, real, asAt} figure, not
|
|
@@ -241,7 +241,7 @@ Why that name is left as it is, and what moves where when it changes: [*The two
|
|
|
241
241
|
|
|
242
242
|
There is **one limit per ruler, and no single flag**, because the two can genuinely disagree: `real` is the model run at zero CPI while the allowance is carried forward at CPI, so around the crossover the allowance binds in today's money while the scheme limb still binds in cash. Show the limit belonging to the ruler on screen. See [*The two caps on tax-free cash*](docs/how-it-works.md#the-two-caps-on-tax-free-cash).
|
|
243
243
|
|
|
244
|
-
Without a statement figure, `kind: 'estimation'` accrues from a `joinDate` instead. ERF/LRF factors are transcribed verbatim from the GAD consolidated factor workbook (
|
|
244
|
+
Without a statement figure, `kind: 'estimation'` accrues from a `joinDate` instead. ERF/LRF factors are transcribed verbatim from the GAD consolidated factor workbook (the 2026 factor review set, issued 8 July 2026) with GAD's own rounding rules; a retirement date beyond the printed tables throws `RetirementFactorOutOfRange`.
|
|
245
245
|
|
|
246
246
|
## How it works
|
|
247
247
|
|
|
@@ -276,7 +276,7 @@ Cross-checked for England against [NHSPRB 39th Report (2026)][nhsprb-39], Table
|
|
|
276
276
|
| 2015 Section accrual rate, NPA | NHSBSA 2015 Members' Guide (V13) |
|
|
277
277
|
| 1995 and 2008 Sections' denominators, pay measures, lump sum | SI 1995/300 and SI 2008/653, as [`how-it-works.md`](docs/how-it-works.md) cites them |
|
|
278
278
|
| McCloud remedy eligibility and window | Public Service Pensions and Judicial Offices Act 2022 ss.1–2; rollback by SI 2023/985 |
|
|
279
|
-
| ERF / LRF factors: 0-420, 0-421, 1-401, 1-402, 1-407, 2-416 | GAD NHS EW consolidated factor workbook |
|
|
279
|
+
| ERF / LRF factors: 0-420, 0-421, 0-422, 1-401, 1-402, 1-407, 2-416 | GAD NHS EW consolidated factor workbook |
|
|
280
280
|
| Promotional pay index | GAD, summary of the 2020 valuation assumptions, page 3 |
|
|
281
281
|
| Commutation rate (£12 : £1) | NHSBSA Key Notes — 2015 Scheme Estimates (V2) |
|
|
282
282
|
| Permitted maximum (lowest of three limbs) | [Sch 29 Finance Act 2004 para 2][sch29] |
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
* NHSBSA's additional pension factsheet (the limit and the unit) — see
|
|
17
17
|
* docs/source-archive.md.
|
|
18
18
|
*/
|
|
19
|
-
import type { AdditionalPensionCover
|
|
19
|
+
import type { AdditionalPensionCover } from './gad/additional-pension-table.js';
|
|
20
|
+
import type { GadTableProvenance } from './gad/factor-table.js';
|
|
20
21
|
/** The unit additional pension is bought in, a year, per
|
|
21
22
|
* `AP_FACTSHEET_2026`. */
|
|
22
23
|
export declare const ADDITIONAL_PENSION_UNIT = 250;
|
|
@@ -58,7 +59,7 @@ export interface AdditionalPensionPurchase {
|
|
|
58
59
|
/** The lump sum, or each monthly instalment, in pounds and pence. */
|
|
59
60
|
readonly cost: number;
|
|
60
61
|
/** The table the price was read from. */
|
|
61
|
-
readonly table:
|
|
62
|
+
readonly table: GadTableProvenance;
|
|
62
63
|
}
|
|
63
64
|
/**
|
|
64
65
|
* The price of buying `annual` a year of additional pension, as a lump
|
|
@@ -68,8 +69,9 @@ export interface AdditionalPensionPurchase {
|
|
|
68
69
|
* Pension Age, from their date of birth.
|
|
69
70
|
*
|
|
70
71
|
* Refused, by code: an amount off the £250 unit or over the limit, an
|
|
71
|
-
* election outside the dates the
|
|
72
|
-
*
|
|
72
|
+
* election outside the dates the limit holds for, or an age or period
|
|
73
|
+
* the table does not print. The tables are GAD's current issue and
|
|
74
|
+
* price an election on any date.
|
|
73
75
|
*/
|
|
74
76
|
export declare function additionalPensionCost(input: {
|
|
75
77
|
readonly annual: number;
|
|
@@ -19,15 +19,16 @@
|
|
|
19
19
|
import { periodInYearsMonths } from './dates.js';
|
|
20
20
|
import { ADDITIONAL_PENSION_REFUSALS, AdditionalPensionUnavailable, invariant, } from './errors.js';
|
|
21
21
|
import { FACTOR_APPLIES } from './factor-basis.js';
|
|
22
|
-
import { AP_0_703 } from './gad/additional-pension-0-703-
|
|
23
|
-
import { AP_0_712 } from './gad/additional-pension-0-712-
|
|
24
|
-
import { AP_0_713 } from './gad/additional-pension-0-713-
|
|
25
|
-
import { AP_0_714 } from './gad/additional-pension-0-714-
|
|
26
|
-
import { AP_0_715 } from './gad/additional-pension-0-715-
|
|
27
|
-
import { AP_0_716 } from './gad/additional-pension-0-716-
|
|
28
|
-
import { AP_0_717 } from './gad/additional-pension-0-717-
|
|
29
|
-
import { AP_0_718 } from './gad/additional-pension-0-718-
|
|
30
|
-
import { AP_0_719 } from './gad/additional-pension-0-719-
|
|
22
|
+
import { AP_0_703 } from './gad/additional-pension-0-703-2026-07-08.js';
|
|
23
|
+
import { AP_0_712 } from './gad/additional-pension-0-712-2026-07-08.js';
|
|
24
|
+
import { AP_0_713 } from './gad/additional-pension-0-713-2026-07-08.js';
|
|
25
|
+
import { AP_0_714 } from './gad/additional-pension-0-714-2026-07-08.js';
|
|
26
|
+
import { AP_0_715 } from './gad/additional-pension-0-715-2026-07-08.js';
|
|
27
|
+
import { AP_0_716 } from './gad/additional-pension-0-716-2026-07-08.js';
|
|
28
|
+
import { AP_0_717 } from './gad/additional-pension-0-717-2026-07-08.js';
|
|
29
|
+
import { AP_0_718 } from './gad/additional-pension-0-718-2026-07-08.js';
|
|
30
|
+
import { AP_0_719 } from './gad/additional-pension-0-719-2026-07-08.js';
|
|
31
|
+
import { oneIssue } from './gad/factor-table.js';
|
|
31
32
|
import { isoDate, isoToDate } from './iso-date.js';
|
|
32
33
|
import { normalPensionAge } from './pension/ages.js';
|
|
33
34
|
import { inflationFactor, TODAYS_MONEY_CPI } from './pension/prices.js';
|
|
@@ -71,9 +72,9 @@ const INSTALMENT_TABLES = [
|
|
|
71
72
|
AP_0_712, AP_0_713, AP_0_714, AP_0_715,
|
|
72
73
|
AP_0_716, AP_0_717, AP_0_718, AP_0_719,
|
|
73
74
|
];
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
// Every table the price can read is one issue, GAD's current one,
|
|
76
|
+
// checked at load to share one in-use date.
|
|
77
|
+
oneIssue([AP_0_703, ...INSTALMENT_TABLES]);
|
|
77
78
|
/**
|
|
78
79
|
* The price of buying `annual` a year of additional pension, as a lump
|
|
79
80
|
* sum or monthly instalments, read from GAD's tables at the member's age
|
|
@@ -82,8 +83,9 @@ const PRICED_FROM = new Date(Math.max(isoToDate(AP_0_703.provenance.implemented)
|
|
|
82
83
|
* Pension Age, from their date of birth.
|
|
83
84
|
*
|
|
84
85
|
* Refused, by code: an amount off the £250 unit or over the limit, an
|
|
85
|
-
* election outside the dates the
|
|
86
|
-
*
|
|
86
|
+
* election outside the dates the limit holds for, or an age or period
|
|
87
|
+
* the table does not print. The tables are GAD's current issue and
|
|
88
|
+
* price an election on any date.
|
|
87
89
|
*/
|
|
88
90
|
export function additionalPensionCost(input) {
|
|
89
91
|
const { annual, cover, payment, election, dateOfBirth } = input;
|
|
@@ -151,7 +153,7 @@ export function additionalPensionToBuy(input) {
|
|
|
151
153
|
return annual;
|
|
152
154
|
}
|
|
153
155
|
/** Refuse a purchase no table prices: an amount off the unit or over the
|
|
154
|
-
* limit, or an election outside the dates the
|
|
156
|
+
* limit, or an election outside the dates the limit holds for. */
|
|
155
157
|
function refuseUnpriced(annual, election) {
|
|
156
158
|
const wholeUnits = annual > 0 && annual % ADDITIONAL_PENSION_UNIT === 0;
|
|
157
159
|
if (!wholeUnits) {
|
|
@@ -162,10 +164,12 @@ function refuseUnpriced(annual, election) {
|
|
|
162
164
|
refuse('overLimit', `£${annual} a year is over the `
|
|
163
165
|
+ `£${ADDITIONAL_PENSION_LIMIT.annual} limit`);
|
|
164
166
|
}
|
|
165
|
-
|
|
167
|
+
// The tables are GAD's current issue and price any election; the
|
|
168
|
+
// limit holds only between its own dates.
|
|
169
|
+
const outsideLimitDates = election < isoToDate(ADDITIONAL_PENSION_LIMIT.from)
|
|
166
170
|
|| election >= isoToDate(ADDITIONAL_PENSION_LIMIT.until);
|
|
167
|
-
if (
|
|
168
|
-
refuse('outsideDates', `no
|
|
171
|
+
if (outsideLimitDates) {
|
|
172
|
+
refuse('outsideDates', `no limit held for an election on `
|
|
169
173
|
+ election.toDateString());
|
|
170
174
|
}
|
|
171
175
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"additional-pension.js","sourceRoot":"","sources":["../src/additional-pension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"additional-pension.js","sourceRoot":"","sources":["../src/additional-pension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;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ChD,IAAI,wBAAwB,CAAC,MAAM,QAAQ,CAAC,CAAC;IACnD,CAAC;IACD,iEAAiE;IACjE,0CAA0C;IAC1C,MAAM,iBAAiB,GACrB,QAAQ,GAAG,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC;WAChD,QAAQ,IAAI,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;IAC3D,IAAI,iBAAiB,EAAE,CAAC;QACtB,MAAM,CAAC,cAAc,EAAE,mCAAmC;cACtD,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC;AAED;kBACkB;AAClB,SAAS,OAAO,CACd,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAiB,EAC5C,GAAW;IAEX,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxD,OAAO,KAAK,IAAI,MAAM,CAAC,cAAc,EAAE,GAAG,IAAI,2BAA2B,GAAG,EAAE,CAAC,CAAC;AAClF,CAAC;AAED,mEAAmE;AACnE,SAAS,MAAM,CACb,IAA8C,EAC9C,MAAc;IAEd,MAAM,IAAI,4BAA4B,CAAC,2BAA2B,CAAC,IAAI,CAAC,EACtE,MAAM,CAAC,CAAC;AACZ,CAAC;AAED,wDAAwD;AACxD,SAAS,YAAY,CAAC,MAAc;IAClC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,eAAe,CAAC,GAAG,eAAe,CAAC;AAChE,CAAC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* proceed with 3.3% on 12 February 2026 (#sa-53), deliverable only
|
|
15
15
|
* "when clear about my budgetary position", and as at the most recent
|
|
16
16
|
* Assembly answer (AQW
|
|
17
|
-
* 49635/22-27, 15 July 2026) he "cannot" pay it "until I have clarity
|
|
17
|
+
* 49635/22-27, 15 July 2026, #sa-69) he "cannot" pay it "until I have clarity
|
|
18
18
|
* on my Department's budget". HSC staff are still on these rates.
|
|
19
19
|
*
|
|
20
20
|
* **Bands 1 and 2 have NO progression columns.** The circular prints
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* proceed with 3.3% on 12 February 2026 (#sa-53), deliverable only
|
|
15
15
|
* "when clear about my budgetary position", and as at the most recent
|
|
16
16
|
* Assembly answer (AQW
|
|
17
|
-
* 49635/22-27, 15 July 2026) he "cannot" pay it "until I have clarity
|
|
17
|
+
* 49635/22-27, 15 July 2026, #sa-69) he "cannot" pay it "until I have clarity
|
|
18
18
|
* on my Department's budget". HSC staff are still on these rates.
|
|
19
19
|
*
|
|
20
20
|
* **Bands 1 and 2 have NO progression columns.** The circular prints
|
package/dist/dates.d.ts
CHANGED
|
@@ -22,6 +22,14 @@
|
|
|
22
22
|
* dev-only test oracle (tests/period-oracle.test.ts). Migrate to
|
|
23
23
|
* it when Node ships Temporal unflagged.
|
|
24
24
|
*/
|
|
25
|
+
/** A calendar period, or an age, in complete years and months plus the
|
|
26
|
+
* days beyond the last whole month: what a GAD factor table is read
|
|
27
|
+
* at. */
|
|
28
|
+
export interface Period {
|
|
29
|
+
readonly years: number;
|
|
30
|
+
readonly months: number;
|
|
31
|
+
readonly days: number;
|
|
32
|
+
}
|
|
25
33
|
/** Months in a year, and in a scheme year. */
|
|
26
34
|
export declare const MONTHS_PER_YEAR = 12;
|
|
27
35
|
/**
|
|
@@ -34,11 +42,7 @@ export declare const MONTHS_PER_YEAR = 12;
|
|
|
34
42
|
* period with negative days for a month-end date would silently
|
|
35
43
|
* defeat the ERF round-up downstream.
|
|
36
44
|
*/
|
|
37
|
-
export declare function periodInYearsMonths(from: Date, to: Date):
|
|
38
|
-
years: number;
|
|
39
|
-
months: number;
|
|
40
|
-
days: number;
|
|
41
|
-
};
|
|
45
|
+
export declare function periodInYearsMonths(from: Date, to: Date): Period;
|
|
42
46
|
/**
|
|
43
47
|
* Months from `from` to `to`, a part month of at least 16 days
|
|
44
48
|
* counting as one: the scheme's count for a leaver's final year and
|
package/dist/dates.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dates.js","sourceRoot":"","sources":["../src/dates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"dates.js","sourceRoot":"","sources":["../src/dates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAWtC,8CAA8C;AAC9C,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAElC,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,2EAA2E;AAC3E,MAAM,UAAU,GACd,aAAa,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,aAAa,CAAC;AACxE;+DAC+D;AAC/D,MAAM,aAAa,GAAG,MAAM,CAAC;AAC7B,MAAM,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC;AAC/C;8CAC8C;AAC9C,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAU,EACV,EAAQ;IAER;;;;;;;;qCAQiC;IACjC,SAAS,CACP,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAC7B,mCAAmC,CACpC,CAAC;IACF,SAAS,CACP,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CA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;IAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC;AAClE,CAAC;AAED;6CAC6C;AAC7C,SAAS,gBAAgB,CAAC,IAAU,EAAE,CAAS;IAC7C,MAAM,OAAO,GAAG,IAAI,IAAI,CACtB,IAAI,CAAC,WAAW,EAAE,EAClB,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,EACvB,CAAC,CACF,CAAC,OAAO,EAAE,CAAC;IACZ,OAAO,IAAI,IAAI,CACb,IAAI,CAAC,WAAW,EAAE,EAClB,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,EACnB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,CAAC,CAClC,CAAC;AACJ,CAAC"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -15,8 +15,11 @@
|
|
|
15
15
|
* it throws a bare Error to fail loud in tests and pages.
|
|
16
16
|
*/
|
|
17
17
|
import type { Nation, PayYear, TaxYear } from '@casomoltd/paye-calc';
|
|
18
|
-
import type { FactorProvenance, FactorTableIndex } from './gad/factor-table.js';
|
|
19
|
-
/** A span, or an age, to the month: how a GAD table is keyed.
|
|
18
|
+
import type { FactorProvenance, FactorTableIndex, FactorTableKind } from './gad/factor-table.js';
|
|
19
|
+
/** A span, or an age, to the month: how a GAD table is keyed. It is
|
|
20
|
+
* `Period` (`dates.ts`) without its days on purpose: a table's rows
|
|
21
|
+
* and columns stop at the month, so the position a lookup fell at and
|
|
22
|
+
* the last one printed have no days to carry. */
|
|
20
23
|
interface YearsMonths {
|
|
21
24
|
readonly years: number;
|
|
22
25
|
readonly months: number;
|
|
@@ -64,16 +67,25 @@ export declare class PensionTiersUnavailable extends Error {
|
|
|
64
67
|
* published, so callers with free date inputs catch it by type rather
|
|
65
68
|
* than matching message text.
|
|
66
69
|
*
|
|
67
|
-
* `
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
70
|
+
* `provenance` and `kind` are the table's own: a consumer cites the
|
|
71
|
+
* table the drawing ran off from them, and says from `kind` which side
|
|
72
|
+
* of the pension age it fell. `tableRef` and `guidanceRef` are the
|
|
73
|
+
* provenance's, kept for the message text; `tableRef` names the table
|
|
74
|
+
* and `guidanceRef` alone does not, because the guidance numbers each
|
|
75
|
+
* scheme's tables from 1 and so `ERF1` is both 0-420 and 1-401.
|
|
76
|
+
* `years`, `months` and the bounds are a PERIOD from the pension age on
|
|
77
|
+
* a period table and the member's AGE on an age table, which `keyedBy`
|
|
78
|
+
* says.
|
|
72
79
|
*/
|
|
73
80
|
export declare class RetirementFactorOutOfRange extends Error {
|
|
74
|
-
/**
|
|
81
|
+
/** The citation of the table the drawing ran off: the same object
|
|
82
|
+
* every factor read from that table carries. */
|
|
83
|
+
readonly provenance: FactorProvenance;
|
|
84
|
+
/** The table's kind: `erf` early, `lrf` late. */
|
|
85
|
+
readonly kind: FactorTableKind;
|
|
86
|
+
/** The provenance's name in the governing guidance, e.g. 'ERF1' */
|
|
75
87
|
readonly guidanceRef: string;
|
|
76
|
-
/**
|
|
88
|
+
/** The provenance's GAD table reference, e.g. '0-420': unique, where
|
|
77
89
|
* `guidanceRef` is not. */
|
|
78
90
|
readonly tableRef: string;
|
|
79
91
|
readonly keyedBy: FactorTableIndex;
|
|
@@ -81,8 +93,9 @@ export declare class RetirementFactorOutOfRange extends Error {
|
|
|
81
93
|
readonly months: number;
|
|
82
94
|
readonly maxYears: number;
|
|
83
95
|
readonly maxMonths: number;
|
|
84
|
-
constructor({ provenance, index, at, max }: {
|
|
96
|
+
constructor({ provenance, kind, index, at, max }: {
|
|
85
97
|
readonly provenance: FactorProvenance;
|
|
98
|
+
readonly kind: FactorTableKind;
|
|
86
99
|
readonly index: FactorTableIndex;
|
|
87
100
|
/** Where the drawing fell, and the furthest the table prints. */
|
|
88
101
|
readonly at: YearsMonths;
|
|
@@ -128,19 +141,6 @@ export declare class PayPathUnavailable extends Error {
|
|
|
128
141
|
readonly reason: string;
|
|
129
142
|
constructor(reason: string);
|
|
130
143
|
}
|
|
131
|
-
/** What {@link BenefitNotModelled} refuses, as a closed set a
|
|
132
|
-
* consumer can branch on. Each is deferred, and each names the issue
|
|
133
|
-
* that carries what a build would take. */
|
|
134
|
-
export declare const NOT_MODELLED: {
|
|
135
|
-
readonly breakInService: "break-in-service";
|
|
136
|
-
readonly bothLegacySections: "both-legacy-sections";
|
|
137
|
-
readonly no2015Section: "no-2015-section";
|
|
138
|
-
readonly remedyMemberLeftEarly: "remedy-member-left-before-2022";
|
|
139
|
-
readonly statementBeforeRollback: "statement-before-rollback";
|
|
140
|
-
readonly preservedDrawnEarly: "preserved-benefits-drawn-early";
|
|
141
|
-
readonly partTimeLegacy: "part-time-legacy-service";
|
|
142
|
-
};
|
|
143
|
-
export type NotModelled = (typeof NOT_MODELLED)[keyof typeof NOT_MODELLED];
|
|
144
144
|
/**
|
|
145
145
|
* A benefit the library can name but has not modelled, refused rather
|
|
146
146
|
* than priced on an assumption nobody would see. `code` says which, so
|
|
@@ -151,17 +151,6 @@ export declare class BenefitNotModelled extends Error {
|
|
|
151
151
|
readonly code: NotModelled;
|
|
152
152
|
constructor(code: NotModelled, detail: string);
|
|
153
153
|
}
|
|
154
|
-
/** What a {@link BeforeStatement} refused, as a closed set a consumer can
|
|
155
|
-
* branch on. */
|
|
156
|
-
export declare const STATEMENT_READS: {
|
|
157
|
-
/** A leaving, which a walk would never reach. */
|
|
158
|
-
readonly leaving: "leaving";
|
|
159
|
-
/** The balance held on a date. */
|
|
160
|
-
readonly balance: "balance";
|
|
161
|
-
/** The close of a scheme year. */
|
|
162
|
-
readonly yearClose: "year-close";
|
|
163
|
-
};
|
|
164
|
-
export type StatementRead = (typeof STATEMENT_READS)[keyof typeof STATEMENT_READS];
|
|
165
154
|
/**
|
|
166
155
|
* A read of a member's 2015 Section balance on a date before their
|
|
167
156
|
* statement's 31 March, or a leaving before it. Not a build to come: a
|
|
@@ -185,6 +174,40 @@ export declare class BeforeStatement extends Error {
|
|
|
185
174
|
/** The statement's 31 March. */
|
|
186
175
|
statementDate: Date);
|
|
187
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* An additional pension purchase the published tables do not price, or
|
|
179
|
+
* the scheme's rules do not allow. Refused rather than extrapolated,
|
|
180
|
+
* because an extrapolated factor is a price nobody has published; `code`
|
|
181
|
+
* says which, so a consumer can tell a member what to change.
|
|
182
|
+
*/
|
|
183
|
+
export declare class AdditionalPensionUnavailable extends Error {
|
|
184
|
+
readonly code: AdditionalPensionRefusal;
|
|
185
|
+
constructor(code: AdditionalPensionRefusal, detail: string);
|
|
186
|
+
}
|
|
187
|
+
/** What {@link BenefitNotModelled} refuses, as a closed set a
|
|
188
|
+
* consumer can branch on. Each is deferred, and each names the issue
|
|
189
|
+
* that carries what a build would take. */
|
|
190
|
+
export declare const NOT_MODELLED: {
|
|
191
|
+
readonly breakInService: "break-in-service";
|
|
192
|
+
readonly bothLegacySections: "both-legacy-sections";
|
|
193
|
+
readonly no2015Section: "no-2015-section";
|
|
194
|
+
readonly remedyMemberLeftEarly: "remedy-member-left-before-2022";
|
|
195
|
+
readonly statementBeforeRollback: "statement-before-rollback";
|
|
196
|
+
readonly preservedDrawnEarly: "preserved-benefits-drawn-early";
|
|
197
|
+
readonly partTimeLegacy: "part-time-legacy-service";
|
|
198
|
+
};
|
|
199
|
+
export type NotModelled = (typeof NOT_MODELLED)[keyof typeof NOT_MODELLED];
|
|
200
|
+
/** What a {@link BeforeStatement} refused, as a closed set a consumer can
|
|
201
|
+
* branch on. */
|
|
202
|
+
export declare const STATEMENT_READS: {
|
|
203
|
+
/** A leaving, which a walk would never reach. */
|
|
204
|
+
readonly leaving: "leaving";
|
|
205
|
+
/** The balance held on a date. */
|
|
206
|
+
readonly balance: "balance";
|
|
207
|
+
/** The close of a scheme year. */
|
|
208
|
+
readonly yearClose: "year-close";
|
|
209
|
+
};
|
|
210
|
+
export type StatementRead = (typeof STATEMENT_READS)[keyof typeof STATEMENT_READS];
|
|
188
211
|
/** Why an additional pension purchase is refused, as a closed set a
|
|
189
212
|
* consumer can branch on. */
|
|
190
213
|
export declare const ADDITIONAL_PENSION_REFUSALS: {
|
|
@@ -194,23 +217,13 @@ export declare const ADDITIONAL_PENSION_REFUSALS: {
|
|
|
194
217
|
readonly overLimit: "over-limit";
|
|
195
218
|
/** An age or payment period the table does not print. */
|
|
196
219
|
readonly outsideTable: "outside-table";
|
|
197
|
-
/** An election outside the dates the
|
|
220
|
+
/** An election outside the dates the purchase limit holds for. */
|
|
198
221
|
readonly outsideDates: "outside-dates";
|
|
199
222
|
/** A member who leaves before drawing: deferred growth is not
|
|
200
223
|
* modelled. */
|
|
201
224
|
readonly leftBeforeDrawing: "left-before-drawing";
|
|
202
225
|
};
|
|
203
226
|
export type AdditionalPensionRefusal = (typeof ADDITIONAL_PENSION_REFUSALS)[keyof typeof ADDITIONAL_PENSION_REFUSALS];
|
|
204
|
-
/**
|
|
205
|
-
* An additional pension purchase the published tables do not price, or
|
|
206
|
-
* the scheme's rules do not allow. Refused rather than extrapolated,
|
|
207
|
-
* because an extrapolated factor is a price nobody has published; `code`
|
|
208
|
-
* says which, so a consumer can tell a member what to change.
|
|
209
|
-
*/
|
|
210
|
-
export declare class AdditionalPensionUnavailable extends Error {
|
|
211
|
-
readonly code: AdditionalPensionRefusal;
|
|
212
|
-
constructor(code: AdditionalPensionRefusal, detail: string);
|
|
213
|
-
}
|
|
214
227
|
/**
|
|
215
228
|
* Whether a read on `on` falls before the first date a statement answers,
|
|
216
229
|
* and so is one {@link BeforeStatement} refuses. `answersFrom` is that date,
|
package/dist/errors.js
CHANGED
|
@@ -65,16 +65,25 @@ export class PensionTiersUnavailable extends Error {
|
|
|
65
65
|
* published, so callers with free date inputs catch it by type rather
|
|
66
66
|
* than matching message text.
|
|
67
67
|
*
|
|
68
|
-
* `
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
68
|
+
* `provenance` and `kind` are the table's own: a consumer cites the
|
|
69
|
+
* table the drawing ran off from them, and says from `kind` which side
|
|
70
|
+
* of the pension age it fell. `tableRef` and `guidanceRef` are the
|
|
71
|
+
* provenance's, kept for the message text; `tableRef` names the table
|
|
72
|
+
* and `guidanceRef` alone does not, because the guidance numbers each
|
|
73
|
+
* scheme's tables from 1 and so `ERF1` is both 0-420 and 1-401.
|
|
74
|
+
* `years`, `months` and the bounds are a PERIOD from the pension age on
|
|
75
|
+
* a period table and the member's AGE on an age table, which `keyedBy`
|
|
76
|
+
* says.
|
|
73
77
|
*/
|
|
74
78
|
export class RetirementFactorOutOfRange extends Error {
|
|
75
|
-
/**
|
|
79
|
+
/** The citation of the table the drawing ran off: the same object
|
|
80
|
+
* every factor read from that table carries. */
|
|
81
|
+
provenance;
|
|
82
|
+
/** The table's kind: `erf` early, `lrf` late. */
|
|
83
|
+
kind;
|
|
84
|
+
/** The provenance's name in the governing guidance, e.g. 'ERF1' */
|
|
76
85
|
guidanceRef;
|
|
77
|
-
/**
|
|
86
|
+
/** The provenance's GAD table reference, e.g. '0-420': unique, where
|
|
78
87
|
* `guidanceRef` is not. */
|
|
79
88
|
tableRef;
|
|
80
89
|
keyedBy;
|
|
@@ -82,7 +91,7 @@ export class RetirementFactorOutOfRange extends Error {
|
|
|
82
91
|
months;
|
|
83
92
|
maxYears;
|
|
84
93
|
maxMonths;
|
|
85
|
-
constructor({ provenance, index, at, max }) {
|
|
94
|
+
constructor({ provenance, kind, index, at, max }) {
|
|
86
95
|
const { tableRef, guidanceRef } = provenance;
|
|
87
96
|
super(index.by === 'period'
|
|
88
97
|
? `${tableRef} (${guidanceRef}) out of range: ${at.years}yr `
|
|
@@ -91,6 +100,8 @@ export class RetirementFactorOutOfRange extends Error {
|
|
|
91
100
|
+ `is outside ${index.firstAge}yr 0mo to `
|
|
92
101
|
+ `${max.years}yr ${max.months}mo`);
|
|
93
102
|
this.name = 'RetirementFactorOutOfRange';
|
|
103
|
+
this.provenance = provenance;
|
|
104
|
+
this.kind = kind;
|
|
94
105
|
this.guidanceRef = guidanceRef;
|
|
95
106
|
this.tableRef = tableRef;
|
|
96
107
|
this.keyedBy = index;
|
|
@@ -155,25 +166,6 @@ export class PayPathUnavailable extends Error {
|
|
|
155
166
|
this.name = 'PayPathUnavailable';
|
|
156
167
|
}
|
|
157
168
|
}
|
|
158
|
-
/** What {@link BenefitNotModelled} refuses, as a closed set a
|
|
159
|
-
* consumer can branch on. Each is deferred, and each names the issue
|
|
160
|
-
* that carries what a build would take. */
|
|
161
|
-
export const NOT_MODELLED = {
|
|
162
|
-
// https://github.com/casomoltd/nhs-pay/issues/16
|
|
163
|
-
breakInService: 'break-in-service',
|
|
164
|
-
// https://github.com/casomoltd/nhs-pay/issues/16
|
|
165
|
-
bothLegacySections: 'both-legacy-sections',
|
|
166
|
-
// https://github.com/casomoltd/nhs-pay/issues/19
|
|
167
|
-
no2015Section: 'no-2015-section',
|
|
168
|
-
// https://github.com/casomoltd/nhs-pay/issues/19
|
|
169
|
-
remedyMemberLeftEarly: 'remedy-member-left-before-2022',
|
|
170
|
-
// https://github.com/casomoltd/nhs-pay/issues/20
|
|
171
|
-
statementBeforeRollback: 'statement-before-rollback',
|
|
172
|
-
// https://github.com/casomoltd/nhs-pay/issues/18
|
|
173
|
-
preservedDrawnEarly: 'preserved-benefits-drawn-early',
|
|
174
|
-
// https://github.com/casomoltd/nhs-pay/issues/26
|
|
175
|
-
partTimeLegacy: 'part-time-legacy-service',
|
|
176
|
-
};
|
|
177
169
|
/**
|
|
178
170
|
* A benefit the library can name but has not modelled, refused rather
|
|
179
171
|
* than priced on an assumption nobody would see. `code` says which, so
|
|
@@ -188,16 +180,6 @@ export class BenefitNotModelled extends Error {
|
|
|
188
180
|
this.name = 'BenefitNotModelled';
|
|
189
181
|
}
|
|
190
182
|
}
|
|
191
|
-
/** What a {@link BeforeStatement} refused, as a closed set a consumer can
|
|
192
|
-
* branch on. */
|
|
193
|
-
export const STATEMENT_READS = {
|
|
194
|
-
/** A leaving, which a walk would never reach. */
|
|
195
|
-
leaving: 'leaving',
|
|
196
|
-
/** The balance held on a date. */
|
|
197
|
-
balance: 'balance',
|
|
198
|
-
/** The close of a scheme year. */
|
|
199
|
-
yearClose: 'year-close',
|
|
200
|
-
};
|
|
201
183
|
/**
|
|
202
184
|
* A read of a member's 2015 Section balance on a date before their
|
|
203
185
|
* statement's 31 March, or a leaving before it. Not a build to come: a
|
|
@@ -229,21 +211,6 @@ export class BeforeStatement extends Error {
|
|
|
229
211
|
this.name = 'BeforeStatement';
|
|
230
212
|
}
|
|
231
213
|
}
|
|
232
|
-
/** Why an additional pension purchase is refused, as a closed set a
|
|
233
|
-
* consumer can branch on. */
|
|
234
|
-
export const ADDITIONAL_PENSION_REFUSALS = {
|
|
235
|
-
/** Not a whole number of £250 units. */
|
|
236
|
-
offUnit: 'off-unit',
|
|
237
|
-
/** More than the limit a member may buy. */
|
|
238
|
-
overLimit: 'over-limit',
|
|
239
|
-
/** An age or payment period the table does not print. */
|
|
240
|
-
outsideTable: 'outside-table',
|
|
241
|
-
/** An election outside the dates the tables and the limit hold for. */
|
|
242
|
-
outsideDates: 'outside-dates',
|
|
243
|
-
/** A member who leaves before drawing: deferred growth is not
|
|
244
|
-
* modelled. */
|
|
245
|
-
leftBeforeDrawing: 'left-before-drawing',
|
|
246
|
-
};
|
|
247
214
|
/**
|
|
248
215
|
* An additional pension purchase the published tables do not price, or
|
|
249
216
|
* the scheme's rules do not allow. Refused rather than extrapolated,
|
|
@@ -258,6 +225,50 @@ export class AdditionalPensionUnavailable extends Error {
|
|
|
258
225
|
this.name = 'AdditionalPensionUnavailable';
|
|
259
226
|
}
|
|
260
227
|
}
|
|
228
|
+
/** What {@link BenefitNotModelled} refuses, as a closed set a
|
|
229
|
+
* consumer can branch on. Each is deferred, and each names the issue
|
|
230
|
+
* that carries what a build would take. */
|
|
231
|
+
export const NOT_MODELLED = {
|
|
232
|
+
// https://github.com/casomoltd/nhs-pay/issues/16
|
|
233
|
+
breakInService: 'break-in-service',
|
|
234
|
+
// https://github.com/casomoltd/nhs-pay/issues/16
|
|
235
|
+
bothLegacySections: 'both-legacy-sections',
|
|
236
|
+
// https://github.com/casomoltd/nhs-pay/issues/19
|
|
237
|
+
no2015Section: 'no-2015-section',
|
|
238
|
+
// https://github.com/casomoltd/nhs-pay/issues/19
|
|
239
|
+
remedyMemberLeftEarly: 'remedy-member-left-before-2022',
|
|
240
|
+
// https://github.com/casomoltd/nhs-pay/issues/20
|
|
241
|
+
statementBeforeRollback: 'statement-before-rollback',
|
|
242
|
+
// https://github.com/casomoltd/nhs-pay/issues/18
|
|
243
|
+
preservedDrawnEarly: 'preserved-benefits-drawn-early',
|
|
244
|
+
// https://github.com/casomoltd/nhs-pay/issues/26
|
|
245
|
+
partTimeLegacy: 'part-time-legacy-service',
|
|
246
|
+
};
|
|
247
|
+
/** What a {@link BeforeStatement} refused, as a closed set a consumer can
|
|
248
|
+
* branch on. */
|
|
249
|
+
export const STATEMENT_READS = {
|
|
250
|
+
/** A leaving, which a walk would never reach. */
|
|
251
|
+
leaving: 'leaving',
|
|
252
|
+
/** The balance held on a date. */
|
|
253
|
+
balance: 'balance',
|
|
254
|
+
/** The close of a scheme year. */
|
|
255
|
+
yearClose: 'year-close',
|
|
256
|
+
};
|
|
257
|
+
/** Why an additional pension purchase is refused, as a closed set a
|
|
258
|
+
* consumer can branch on. */
|
|
259
|
+
export const ADDITIONAL_PENSION_REFUSALS = {
|
|
260
|
+
/** Not a whole number of £250 units. */
|
|
261
|
+
offUnit: 'off-unit',
|
|
262
|
+
/** More than the limit a member may buy. */
|
|
263
|
+
overLimit: 'over-limit',
|
|
264
|
+
/** An age or payment period the table does not print. */
|
|
265
|
+
outsideTable: 'outside-table',
|
|
266
|
+
/** An election outside the dates the purchase limit holds for. */
|
|
267
|
+
outsideDates: 'outside-dates',
|
|
268
|
+
/** A member who leaves before drawing: deferred growth is not
|
|
269
|
+
* modelled. */
|
|
270
|
+
leftBeforeDrawing: 'left-before-drawing',
|
|
271
|
+
};
|
|
261
272
|
/**
|
|
262
273
|
* Whether a read on `on` falls before the first date a statement answers,
|
|
263
274
|
* and so is one {@link BeforeStatement} refuses. `answersFrom` is that date,
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAkBH;;;;;GAKG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAE9B;IAIA;IACA;IAEA;IARX,YACW,MAAc;IACvB;;8CAE0C;IACjC,IAAa,EACb,OAAgB;IACzB,6DAA6D;IACpD,UAAmB;QAE5B,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;QAT9C,WAAM,GAAN,MAAM,CAAQ;QAId,SAAI,GAAJ,IAAI,CAAS;QACb,YAAO,GAAP,OAAO,CAAS;QAEhB,eAAU,GAAV,UAAU,CAAS;QAG5B,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAErC;IACA;IAFX,YACW,IAAa,EACb,MAAc;QAEvB,KAAK,CACH,sCAAsC,MAAM,IAAI,IAAI,EAAE,CACvD,CAAC;QALO,SAAI,GAAJ,IAAI,CAAS;QACb,WAAM,GAAN,MAAM,CAAQ;QAKvB,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,0BAA2B,SAA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