@casomoltd/nhs-pay 0.27.0 → 0.28.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/dist/additional-pension.js +56 -32
- package/dist/additional-pension.js.map +1 -1
- package/dist/dates.d.ts +2 -0
- package/dist/dates.js +17 -3
- package/dist/dates.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/iso-date.d.ts +4 -9
- package/dist/iso-date.js +10 -11
- package/dist/iso-date.js.map +1 -1
- package/dist/member/benefits.d.ts +11 -0
- package/dist/member/benefits.js +179 -0
- package/dist/member/benefits.js.map +1 -0
- package/dist/member/index.d.ts +9 -0
- package/dist/member/index.js +9 -0
- package/dist/member/index.js.map +1 -0
- package/dist/member/service.d.ts +65 -0
- package/dist/member/service.js +166 -0
- package/dist/member/service.js.map +1 -0
- package/dist/{member-benefits.d.ts → member/types.d.ts} +30 -41
- package/dist/member/types.js +46 -0
- package/dist/member/types.js.map +1 -0
- package/dist/member/valuation.d.ts +67 -0
- package/dist/member/valuation.js +157 -0
- package/dist/member/valuation.js.map +1 -0
- package/dist/pension/ages.d.ts +64 -31
- package/dist/pension/ages.js +66 -38
- package/dist/pension/ages.js.map +1 -1
- package/dist/sources.d.ts +13 -1
- package/dist/sources.js +25 -1
- package/dist/sources.js.map +1 -1
- package/package.json +3 -3
- package/dist/member-benefits.js +0 -462
- package/dist/member-benefits.js.map +0 -1
package/dist/pension/ages.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The ages a member's NHS pension turns on: each section's pension age, the
|
|
3
|
-
* 2015
|
|
4
|
-
* to draw, from when they first joined.
|
|
3
|
+
* 2015 Section's from their date of birth, and the earliest age they can choose
|
|
4
|
+
* to draw, from when they first joined and when they draw.
|
|
5
5
|
*
|
|
6
|
-
* NORMAL PENSION AGE in the 2015
|
|
6
|
+
* NORMAL PENSION AGE in the 2015 Section = the member's State Pension age, with
|
|
7
7
|
* a floor of 65 (NHSBSA 2015 Members' Guide V13, May 2024, archived as SA-38 in
|
|
8
8
|
* docs/source-archive.md). The SPA timetable is legislated — Pensions Acts
|
|
9
|
-
* 1995/2007/2011/2014 — and reproduced in
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* 1995/2007/2011/2014 — and reproduced in DWP's "State Pension age timetables",
|
|
10
|
+
* archived as SA-62 in docs/source-archive.md (last updated 15 May 2014; the
|
|
11
|
+
* legislated dates have not changed since — the 2023 SPA review left them as
|
|
12
|
+
* enacted).
|
|
13
13
|
*
|
|
14
14
|
* Whole years only. The Acts phase each rise through narrow transitional birth
|
|
15
15
|
* cohorts whose exact SPA is 65/66/67 plus some months; `normalPensionAge`
|
|
@@ -28,45 +28,78 @@ import type { IsoDate } from '../iso-date.js';
|
|
|
28
28
|
/**
|
|
29
29
|
* The fixed pension ages the legacy sections' factors are measured from,
|
|
30
30
|
* named for the section that sets each: DHSC_PETITION_779519, archived as SA-59
|
|
31
|
-
* in docs/source-archive.md
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* in docs/source-archive.md, states "The Normal Pension Age in the NHS Pension
|
|
32
|
+
* Scheme is 60 in the 1995 Section, 65 in the 2008 Section". The factor tables
|
|
33
|
+
* are keyed by pension age, and these are the only two a legacy benefit has;
|
|
34
|
+
* the 2015 Section's is the member's own normal pension age.
|
|
34
35
|
*/
|
|
35
36
|
export declare const LEGACY_PENSION_AGES: {
|
|
36
37
|
readonly section1995: 60;
|
|
37
38
|
readonly section2008: 65;
|
|
38
39
|
};
|
|
39
|
-
/** The
|
|
40
|
-
*
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
*
|
|
44
|
-
*
|
|
40
|
+
/** The age from which the scheme gave every member a right to draw: 55 at
|
|
41
|
+
* the latest, in the 1995 and 2008 Sections and the 2015 Section alike.
|
|
42
|
+
* DHSC's petition response (DHSC_PETITION_779519, archived as SA-59 in
|
|
43
|
+
* docs/source-archive.md) and SPPA's NHS Circular 2025/09 (SA-61) say so.
|
|
44
|
+
* It is the right paye-calc's `minimumPensionAgeFor` protects through the
|
|
45
|
+
* 2028 rise, and so the age an earlier joiner keeps. A lower age kept from
|
|
46
|
+
* 2006 or 2010 is not modelled; what that costs is in
|
|
47
|
+
* docs/how-it-works.md#minimum-pension-age. */
|
|
45
48
|
export declare const MPA_KEPT_AGE = 55;
|
|
49
|
+
/** The last day a member can have first joined and hold that right
|
|
50
|
+
* immediately before paye-calc's `protectedPensionAgeCutoff()`: the day
|
|
51
|
+
* before it. For a caller to show; the rule itself compares against the
|
|
52
|
+
* cut-off. */
|
|
53
|
+
export declare const MPA_RISE_JOINED_AFTER: IsoDate;
|
|
46
54
|
/**
|
|
47
|
-
* Normal pension age for a 2015
|
|
55
|
+
* Normal pension age for a 2015 Section member born on
|
|
48
56
|
* `dateOfBirth`, in whole years (see the module header for the
|
|
49
57
|
* transitional-cohort rounding).
|
|
50
58
|
*/
|
|
51
59
|
export declare function normalPensionAge(dateOfBirth: Date): number;
|
|
60
|
+
/** The two dates a member's minimum pension age turns on, besides the day
|
|
61
|
+
* they draw: when they were born, and when they first joined the scheme. */
|
|
62
|
+
export interface JoiningHistory {
|
|
63
|
+
readonly born: IsoDate;
|
|
64
|
+
readonly firstJoined: IsoDate;
|
|
65
|
+
}
|
|
52
66
|
/**
|
|
53
|
-
* The earliest age a member can choose to draw a pension
|
|
54
|
-
* ill health. It depends on two dates:
|
|
67
|
+
* The earliest age a member can choose to draw a pension on `drawing`, other
|
|
68
|
+
* than through ill health. It depends on two dates:
|
|
55
69
|
*
|
|
56
|
-
* - **When they first joined.**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
70
|
+
* - **When they first joined.** The law (Finance Act 2004 Sch 36 para 23ZB,
|
|
71
|
+
* through paye-calc's `minimumPensionAgeFor`) keeps a protected pension age
|
|
72
|
+
* for a member who held a right to draw before 57 immediately before its
|
|
73
|
+
* cut-off. The scheme gave every member that right from 55
|
|
74
|
+
* (`MPA_KEPT_AGE`), so this is anyone in it by `MPA_RISE_JOINED_AFTER`.
|
|
75
|
+
* SPPA's NHS Circular 2025/09 (SA-61) keeps it across opting out and
|
|
76
|
+
* rejoining (Annex A Q9), and a later period's date would tell a
|
|
77
|
+
* long-serving member 57, so this reads their FIRST joining.
|
|
61
78
|
* - **When they draw.** Only for a member the rise reaches, and only before it
|
|
62
|
-
* takes effect: until 6 April 2028 the law's minimum is still 55
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
*
|
|
79
|
+
* takes effect: until 6 April 2028 the law's minimum is still 55.
|
|
80
|
+
*/
|
|
81
|
+
export declare function memberMinimumPensionAge(history: JoiningHistory, drawing: IsoDate): number;
|
|
82
|
+
/**
|
|
83
|
+
* Whether a member may draw their pension on `drawing`, other than through
|
|
84
|
+
* ill health: on or after the birthday at which they reach their minimum
|
|
85
|
+
* pension age on that day. An age is reached on the birthday, as `npaDate`
|
|
86
|
+
* counts it. A caller walking the ages asks it of each drawing day.
|
|
67
87
|
*/
|
|
68
|
-
export declare function
|
|
88
|
+
export declare function mayDrawOn(history: JoiningHistory, drawing: IsoDate): boolean;
|
|
89
|
+
/** A member's minimum pension age on a drawing day, and whether they have
|
|
90
|
+
* reached it by then. */
|
|
91
|
+
interface DrawingTest {
|
|
92
|
+
readonly minimumAge: number;
|
|
93
|
+
readonly mayDraw: boolean;
|
|
94
|
+
}
|
|
95
|
+
/** The one place the minimum pension age is applied to a drawing: both
|
|
96
|
+
* answers at once, for a caller that refuses a drawing and names the age. */
|
|
97
|
+
export declare function drawingTest({ born, firstJoined }: JoiningHistory, drawing: IsoDate): DrawingTest;
|
|
98
|
+
/** The first day of a member's earliest period: the joining the minimum
|
|
99
|
+
* pension age reads. */
|
|
100
|
+
export declare function firstJoinedOf(member: {
|
|
69
101
|
readonly service: readonly {
|
|
70
102
|
readonly joined: IsoDate;
|
|
71
103
|
}[];
|
|
72
|
-
}
|
|
104
|
+
}): IsoDate;
|
|
105
|
+
export {};
|
package/dist/pension/ages.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The ages a member's NHS pension turns on: each section's pension age, the
|
|
3
|
-
* 2015
|
|
4
|
-
* to draw, from when they first joined.
|
|
3
|
+
* 2015 Section's from their date of birth, and the earliest age they can choose
|
|
4
|
+
* to draw, from when they first joined and when they draw.
|
|
5
5
|
*
|
|
6
|
-
* NORMAL PENSION AGE in the 2015
|
|
6
|
+
* NORMAL PENSION AGE in the 2015 Section = the member's State Pension age, with
|
|
7
7
|
* a floor of 65 (NHSBSA 2015 Members' Guide V13, May 2024, archived as SA-38 in
|
|
8
8
|
* docs/source-archive.md). The SPA timetable is legislated — Pensions Acts
|
|
9
|
-
* 1995/2007/2011/2014 — and reproduced in
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* 1995/2007/2011/2014 — and reproduced in DWP's "State Pension age timetables",
|
|
10
|
+
* archived as SA-62 in docs/source-archive.md (last updated 15 May 2014; the
|
|
11
|
+
* legislated dates have not changed since — the 2023 SPA review left them as
|
|
12
|
+
* enacted).
|
|
13
13
|
*
|
|
14
14
|
* Whole years only. The Acts phase each rise through narrow transitional birth
|
|
15
15
|
* cohorts whose exact SPA is 65/66/67 plus some months; `normalPensionAge`
|
|
@@ -24,30 +24,38 @@
|
|
|
24
24
|
* keeps. The rule, its source and what it leaves out are in
|
|
25
25
|
* docs/how-it-works.md#minimum-pension-age.
|
|
26
26
|
*/
|
|
27
|
-
import {
|
|
28
|
-
import { earliest } from '../dates.js';
|
|
27
|
+
import { minimumPensionAgeFor, protectedPensionAgeCutoff, } from '@casomoltd/paye-calc';
|
|
28
|
+
import { dayBefore, earliest, npaDate } from '../dates.js';
|
|
29
29
|
import { invariant } from '../errors.js';
|
|
30
|
-
import { isoDate, isoToDate } from '../iso-date.js';
|
|
30
|
+
import { isoDate, isoDateOf, isoToDate } from '../iso-date.js';
|
|
31
31
|
/**
|
|
32
32
|
* The fixed pension ages the legacy sections' factors are measured from,
|
|
33
33
|
* named for the section that sets each: DHSC_PETITION_779519, archived as SA-59
|
|
34
|
-
* in docs/source-archive.md
|
|
35
|
-
*
|
|
36
|
-
*
|
|
34
|
+
* in docs/source-archive.md, states "The Normal Pension Age in the NHS Pension
|
|
35
|
+
* Scheme is 60 in the 1995 Section, 65 in the 2008 Section". The factor tables
|
|
36
|
+
* are keyed by pension age, and these are the only two a legacy benefit has;
|
|
37
|
+
* the 2015 Section's is the member's own normal pension age.
|
|
37
38
|
*/
|
|
38
39
|
export const LEGACY_PENSION_AGES = {
|
|
39
40
|
section1995: 60,
|
|
40
41
|
section2008: 65,
|
|
41
42
|
};
|
|
42
|
-
/** The
|
|
43
|
-
*
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
*
|
|
43
|
+
/** The age from which the scheme gave every member a right to draw: 55 at
|
|
44
|
+
* the latest, in the 1995 and 2008 Sections and the 2015 Section alike.
|
|
45
|
+
* DHSC's petition response (DHSC_PETITION_779519, archived as SA-59 in
|
|
46
|
+
* docs/source-archive.md) and SPPA's NHS Circular 2025/09 (SA-61) say so.
|
|
47
|
+
* It is the right paye-calc's `minimumPensionAgeFor` protects through the
|
|
48
|
+
* 2028 rise, and so the age an earlier joiner keeps. A lower age kept from
|
|
49
|
+
* 2006 or 2010 is not modelled; what that costs is in
|
|
50
|
+
* docs/how-it-works.md#minimum-pension-age. */
|
|
48
51
|
export const MPA_KEPT_AGE = 55;
|
|
52
|
+
/** The last day a member can have first joined and hold that right
|
|
53
|
+
* immediately before paye-calc's `protectedPensionAgeCutoff()`: the day
|
|
54
|
+
* before it. For a caller to show; the rule itself compares against the
|
|
55
|
+
* cut-off. */
|
|
56
|
+
export const MPA_RISE_JOINED_AFTER = isoDateOf(dayBefore(protectedPensionAgeCutoff()));
|
|
49
57
|
/**
|
|
50
|
-
* 2015
|
|
58
|
+
* 2015 Section floor (Members' Guide V13). Everyone born before
|
|
51
59
|
* the first band below has SPA ≤ 65 (women's pre-equalisation
|
|
52
60
|
* SPA was lower still), so the floor is their NPA.
|
|
53
61
|
*/
|
|
@@ -69,7 +77,7 @@ const SPA_BANDS = [
|
|
|
69
77
|
{ from: isoToDate(isoDate('1977-04-06')), npa: 68 },
|
|
70
78
|
];
|
|
71
79
|
/**
|
|
72
|
-
* Normal pension age for a 2015
|
|
80
|
+
* Normal pension age for a 2015 Section member born on
|
|
73
81
|
* `dateOfBirth`, in whole years (see the module header for the
|
|
74
82
|
* transitional-cohort rounding).
|
|
75
83
|
*/
|
|
@@ -83,28 +91,48 @@ export function normalPensionAge(dateOfBirth) {
|
|
|
83
91
|
return npa;
|
|
84
92
|
}
|
|
85
93
|
/**
|
|
86
|
-
* The earliest age a member can choose to draw a pension
|
|
87
|
-
* ill health. It depends on two dates:
|
|
94
|
+
* The earliest age a member can choose to draw a pension on `drawing`, other
|
|
95
|
+
* than through ill health. It depends on two dates:
|
|
88
96
|
*
|
|
89
|
-
* - **When they first joined.**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
97
|
+
* - **When they first joined.** The law (Finance Act 2004 Sch 36 para 23ZB,
|
|
98
|
+
* through paye-calc's `minimumPensionAgeFor`) keeps a protected pension age
|
|
99
|
+
* for a member who held a right to draw before 57 immediately before its
|
|
100
|
+
* cut-off. The scheme gave every member that right from 55
|
|
101
|
+
* (`MPA_KEPT_AGE`), so this is anyone in it by `MPA_RISE_JOINED_AFTER`.
|
|
102
|
+
* SPPA's NHS Circular 2025/09 (SA-61) keeps it across opting out and
|
|
103
|
+
* rejoining (Annex A Q9), and a later period's date would tell a
|
|
104
|
+
* long-serving member 57, so this reads their FIRST joining.
|
|
94
105
|
* - **When they draw.** Only for a member the rise reaches, and only before it
|
|
95
|
-
* takes effect: until 6 April 2028 the law's minimum is still 55
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
* takes effect: until 6 April 2028 the law's minimum is still 55.
|
|
107
|
+
*/
|
|
108
|
+
export function memberMinimumPensionAge(history, drawing) {
|
|
109
|
+
return drawingTest(history, drawing).minimumAge;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Whether a member may draw their pension on `drawing`, other than through
|
|
113
|
+
* ill health: on or after the birthday at which they reach their minimum
|
|
114
|
+
* pension age on that day. An age is reached on the birthday, as `npaDate`
|
|
115
|
+
* counts it. A caller walking the ages asks it of each drawing day.
|
|
100
116
|
*/
|
|
101
|
-
export function
|
|
117
|
+
export function mayDrawOn(history, drawing) {
|
|
118
|
+
return drawingTest(history, drawing).mayDraw;
|
|
119
|
+
}
|
|
120
|
+
/** The one place the minimum pension age is applied to a drawing: both
|
|
121
|
+
* answers at once, for a caller that refuses a drawing and names the age. */
|
|
122
|
+
export function drawingTest({ born, firstJoined }, drawing) {
|
|
123
|
+
const on = isoToDate(drawing);
|
|
124
|
+
const minimumAge = minimumPensionAgeFor({
|
|
125
|
+
rightFromAge: MPA_KEPT_AGE,
|
|
126
|
+
heldBeforeCutoff: isoToDate(firstJoined) < protectedPensionAgeCutoff(),
|
|
127
|
+
}, on);
|
|
128
|
+
return { minimumAge, mayDraw: on >= npaDate(isoToDate(born), minimumAge) };
|
|
129
|
+
}
|
|
130
|
+
/** The first day of a member's earliest period: the joining the minimum
|
|
131
|
+
* pension age reads. */
|
|
132
|
+
export function firstJoinedOf(member) {
|
|
102
133
|
if (member.service.length === 0) {
|
|
103
134
|
throw new RangeError('member: no service declared');
|
|
104
135
|
}
|
|
105
|
-
|
|
106
|
-
const law = minimumPensionAge(drawingOn);
|
|
107
|
-
const reached = firstJoined > isoToDate(MPA_RISE_JOINED_AFTER);
|
|
108
|
-
return reached ? law : Math.min(MPA_KEPT_AGE, law);
|
|
136
|
+
return isoDateOf(earliest(...member.service.map((p) => isoToDate(p.joined))));
|
|
109
137
|
}
|
|
110
138
|
//# sourceMappingURL=ages.js.map
|
package/dist/pension/ages.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ages.js","sourceRoot":"","sources":["../../src/pension/ages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"ages.js","sourceRoot":"","sources":["../../src/pension/ages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAC,MAAM,aAAa,CAAC;AACzD,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAG7D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;CACP,CAAC;AAEX;;;;;;;gDAOgD;AAChD,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B;;;eAGe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,CAC5C,SAAS,CAAC,yBAAyB,EAAE,CAAC,CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;;;;;GAUG;AACH,MAAM,SAAS,GAAG;IAChB,EAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAC;IACjD,EAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAC;IACjD,EAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,YAA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MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,UAAU,CAAC,6BAA6B,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,SAAS,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,CAAC"}
|
package/dist/sources.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* allowance — so a second copy of its url or issue date is a second
|
|
8
8
|
* copy that can fall out of step with the first.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Five kinds live here and the difference is load-bearing:
|
|
11
11
|
*
|
|
12
12
|
* - **Award instruments** — what a nation ACCEPTED. A written
|
|
13
13
|
* ministerial statement, a gov.scot news page, a Welsh written
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
* - **Allowance letters** — what sets a cash allowance per session.
|
|
18
18
|
* - **Scheme statements** — what an issuer says of a scheme: a factsheet,
|
|
19
19
|
* or a government response, which says so where it cites no instrument.
|
|
20
|
+
* - **Legislation** — an Act's own provision, where the rule a figure
|
|
21
|
+
* turns on is the statute's rather than the scheme's.
|
|
20
22
|
*
|
|
21
23
|
* They diverge in every nation. England's 2026-27 medical award was
|
|
22
24
|
* enacted by HCWS1462 on parliament.uk while its salaries are printed
|
|
@@ -200,6 +202,16 @@ export declare const HSC_TC8_05_2025: DocumentSource;
|
|
|
200
202
|
/** DHSC on who the 2028 rise in the minimum age reaches; archived as SA-59 in
|
|
201
203
|
* docs/source-archive.md. A petition response that cites no instrument. */
|
|
202
204
|
export declare const DHSC_PETITION_779519: DocumentSource;
|
|
205
|
+
/** The Scottish scheme's own statement of who keeps 55; archived as SA-61 in
|
|
206
|
+
* docs/source-archive.md, the version with paragraph 9 updated. */
|
|
207
|
+
export declare const SPPA_NHS_CIRCULAR_2025_09: DocumentSource;
|
|
203
208
|
/** The additional pension limit and unit; archived as SA-58 in
|
|
204
209
|
* docs/source-archive.md. */
|
|
205
210
|
export declare const AP_FACTSHEET_2026: DocumentSource;
|
|
211
|
+
/** The protected pension age kept through the 2028 rise in the minimum age:
|
|
212
|
+
* Finance Act 2004 Sch 36 para 23ZB, inserted by Finance Act 2022 s.10(5)
|
|
213
|
+
* (Royal Assent 24 February 2022); archived as SA-60 in docs/source-archive.md.
|
|
214
|
+
* paye-calc's `minimumPensionAgeFor` models the rule, and
|
|
215
|
+
* `memberMinimumPensionAge` applies it to the scheme's right from 55. Held
|
|
216
|
+
* here because paye-calc keeps no source records. */
|
|
217
|
+
export declare const FA2004_SCH36_PARA_23ZB: DocumentSource;
|
package/dist/sources.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* allowance — so a second copy of its url or issue date is a second
|
|
8
8
|
* copy that can fall out of step with the first.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Five kinds live here and the difference is load-bearing:
|
|
11
11
|
*
|
|
12
12
|
* - **Award instruments** — what a nation ACCEPTED. A written
|
|
13
13
|
* ministerial statement, a gov.scot news page, a Welsh written
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
* - **Allowance letters** — what sets a cash allowance per session.
|
|
18
18
|
* - **Scheme statements** — what an issuer says of a scheme: a factsheet,
|
|
19
19
|
* or a government response, which says so where it cites no instrument.
|
|
20
|
+
* - **Legislation** — an Act's own provision, where the rule a figure
|
|
21
|
+
* turns on is the statute's rather than the scheme's.
|
|
20
22
|
*
|
|
21
23
|
* They diverge in every nation. England's 2026-27 medical award was
|
|
22
24
|
* enacted by HCWS1462 on parliament.uk while its salaries are printed
|
|
@@ -404,6 +406,15 @@ export const DHSC_PETITION_779519 = new DocumentSource({
|
|
|
404
406
|
url: 'https://petition.parliament.uk/petitions/779519?reveal_response=yes',
|
|
405
407
|
issued: isoDate('2026-10-19'),
|
|
406
408
|
});
|
|
409
|
+
/** The Scottish scheme's own statement of who keeps 55; archived as SA-61 in
|
|
410
|
+
* docs/source-archive.md, the version with paragraph 9 updated. */
|
|
411
|
+
export const SPPA_NHS_CIRCULAR_2025_09 = new DocumentSource({
|
|
412
|
+
issuer: 'the Scottish Public Pensions Agency',
|
|
413
|
+
reference: 'NHS Circular 2025/09, Increase to the normal minimum pension age',
|
|
414
|
+
url: 'https://pensions.gov.scot/sites/default/files/2025-07/NHS_Circular_2025-09'
|
|
415
|
+
+ '_Increase_to_the_normal_minimum_pension_age_from_6_April_2028.pdf',
|
|
416
|
+
issued: isoDate('2025-11-04'),
|
|
417
|
+
});
|
|
407
418
|
/** The additional pension limit and unit; archived as SA-58 in
|
|
408
419
|
* docs/source-archive.md. */
|
|
409
420
|
export const AP_FACTSHEET_2026 = new DocumentSource({
|
|
@@ -417,4 +428,17 @@ export const AP_FACTSHEET_2026 = new DocumentSource({
|
|
|
417
428
|
// expected each April.
|
|
418
429
|
nextExpected: isoDate('2027-04-01'),
|
|
419
430
|
});
|
|
431
|
+
// ── Legislation ───────────────────────────────────
|
|
432
|
+
/** The protected pension age kept through the 2028 rise in the minimum age:
|
|
433
|
+
* Finance Act 2004 Sch 36 para 23ZB, inserted by Finance Act 2022 s.10(5)
|
|
434
|
+
* (Royal Assent 24 February 2022); archived as SA-60 in docs/source-archive.md.
|
|
435
|
+
* paye-calc's `minimumPensionAgeFor` models the rule, and
|
|
436
|
+
* `memberMinimumPensionAge` applies it to the scheme's right from 55. Held
|
|
437
|
+
* here because paye-calc keeps no source records. */
|
|
438
|
+
export const FA2004_SCH36_PARA_23ZB = new DocumentSource({
|
|
439
|
+
issuer: 'Parliament',
|
|
440
|
+
reference: 'Finance Act 2004, Schedule 36, paragraph 23ZB',
|
|
441
|
+
url: 'https://www.legislation.gov.uk/ukpga/2004/12/schedule/36/paragraph/23ZB',
|
|
442
|
+
issued: isoDate('2022-02-24'),
|
|
443
|
+
});
|
|
420
444
|
//# sourceMappingURL=sources.js.map
|
package/dist/sources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAEtC,oDAAoD;AAEpD;;;6BAG6B;AAC7B,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,cAAc,CAAC;IAC9C,MAAM,EAAE,mBAAmB;IAC3B,SAAS,EAAE,wCAAwC;IACnD,GAAG,EAAE,+DAA+D;UAChE,6BAA6B;IACjC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;IAC7B,2DAA2D;IAC3D,oCAAoC;IACpC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,cAAc,CAAC;IAC5C,MAAM,EAAE,sBAAsB;IAC9B,SAAS,EAAE,2CAA2C;IACtD,GAAG,EAAE,uBAAuB;UACxB,qEAAqE;IACzE,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,cAAc,CAAC;IAC/C,MAAM,EAAE,yBAAyB;IACjC,SAAS,EAAE,gBAAgB;IAC3B,GAAG,EAAE,2CAA2C;IAChD,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;CACtC,CAAC,CAAC;AAEH,oDAAoD;AAEpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,cAAc,CAAC;IAC/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,CAAC;AAEH;8BAC8B;AAC9B,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,cAAc,CAAC;IAChD,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,oDAAoD;IAC/D,GAAG,EAAE,uDAAuD;UACxD,oDAAoD;UACpD,0BAA0B;IAC9B,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;IAC7B,gEAAgE;IAChE,uBAAuB;IACvB,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;CACtC,CAAC,CAAC;AAEH,qDAAqD;AAErD;;;;;sDAKsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,cAAc,CAAC;IACrD,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,+CAA+C;IAC1D,GAAG,EAAE,yEAAyE;IAC9E,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;CAChC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casomoltd/nhs-pay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "NHS pay scales and take-home pay, and a member's NHS pension across the 1995, 2008 and 2015 Sections",
|
|
5
5
|
"homepage": "https://casomo.co.uk",
|
|
6
6
|
"bugs": "https://github.com/casomoltd/nhs-pay/issues",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"provenance": true
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@casomoltd/paye-calc": ">=0.
|
|
70
|
+
"@casomoltd/paye-calc": ">=0.12.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@casomoltd/paye-calc": "^0.
|
|
73
|
+
"@casomoltd/paye-calc": "^0.12.0",
|
|
74
74
|
"@casomoltd/tooling": "^0.37.0",
|
|
75
75
|
"@commitlint/cli": "^20.0.0",
|
|
76
76
|
"@js-temporal/polyfill": "^0.5.1",
|