@casomoltd/nhs-pay 0.32.0 → 0.33.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 +23 -21
- package/dist/afc-scales.d.ts +43 -10
- package/dist/afc-scales.js +50 -16
- package/dist/afc-scales.js.map +1 -1
- package/dist/allowances.js +11 -11
- package/dist/allowances.js.map +1 -1
- package/dist/award.d.ts +3 -3
- package/dist/award.js +21 -21
- package/dist/award.js.map +1 -1
- package/dist/circulars/england-md-1-2026-r2.d.ts +13 -0
- package/dist/circulars/england-md-1-2026-r2.js +13 -0
- package/dist/circulars/england-md-1-2026-r2.js.map +1 -1
- package/dist/circulars/ni-hsc-tc8-05-2025.d.ts +22 -0
- package/dist/circulars/ni-hsc-tc8-05-2025.js +22 -0
- package/dist/circulars/ni-hsc-tc8-05-2025.js.map +1 -1
- package/dist/circulars/scotland-pcs-dd-2025-01.d.ts +20 -0
- package/dist/circulars/scotland-pcs-dd-2025-01.js +20 -0
- package/dist/circulars/scotland-pcs-dd-2025-01.js.map +1 -1
- package/dist/circulars/scotland-pcs-dd-2026-01.d.ts +19 -0
- package/dist/circulars/scotland-pcs-dd-2026-01.js +30 -10
- package/dist/circulars/scotland-pcs-dd-2026-01.js.map +1 -1
- package/dist/circulars/scotland-pcs-dd-2026-02.d.ts +10 -0
- package/dist/circulars/scotland-pcs-dd-2026-02.js +10 -0
- package/dist/circulars/scotland-pcs-dd-2026-02.js.map +1 -1
- package/dist/circulars/wales-mdw-01-2025.d.ts +17 -0
- package/dist/circulars/wales-mdw-01-2025.js +17 -0
- package/dist/circulars/wales-mdw-01-2025.js.map +1 -1
- package/dist/circulars/wales-mdw-01-2026.d.ts +20 -0
- package/dist/circulars/wales-mdw-01-2026.js +20 -0
- package/dist/circulars/wales-mdw-01-2026.js.map +1 -1
- package/dist/commutation.js +3 -2
- package/dist/commutation.js.map +1 -1
- package/dist/dental-grades.d.ts +25 -0
- package/dist/dental-grades.js +25 -0
- package/dist/dental-grades.js.map +1 -0
- package/dist/dental-scales.d.ts +5 -21
- package/dist/dental-scales.js +73 -72
- package/dist/dental-scales.js.map +1 -1
- package/dist/format.js +3 -2
- package/dist/format.js.map +1 -1
- package/dist/hcas-pcts.d.ts +1 -1
- package/dist/hcas-zone.d.ts +23 -0
- package/dist/hcas-zone.js +17 -0
- package/dist/hcas-zone.js.map +1 -0
- package/dist/hcas.d.ts +26 -18
- package/dist/hcas.js +45 -24
- package/dist/hcas.js.map +1 -1
- package/dist/index.d.ts +23 -14
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/dist/medical-grades.d.ts +33 -0
- package/dist/medical-grades.js +33 -0
- package/dist/medical-grades.js.map +1 -0
- package/dist/medical-scales.d.ts +10 -33
- package/dist/medical-scales.js +104 -158
- package/dist/medical-scales.js.map +1 -1
- package/dist/member/input-period.d.ts +18 -5
- package/dist/member/input-period.js +24 -13
- package/dist/member/input-period.js.map +1 -1
- package/dist/pay-round.js +3 -3
- package/dist/pay-round.js.map +1 -1
- package/dist/pay-year.d.ts +17 -0
- package/dist/pay-year.js +20 -0
- package/dist/pay-year.js.map +1 -0
- package/dist/pension/ledger.d.ts +7 -0
- package/dist/pension/ledger.js +18 -11
- package/dist/pension/ledger.js.map +1 -1
- package/dist/pension.js +2 -1
- package/dist/pension.js.map +1 -1
- package/dist/post.d.ts +20 -21
- package/dist/post.js +54 -53
- package/dist/post.js.map +1 -1
- package/dist/published/england-afc.d.ts +29 -0
- package/dist/published/england-afc.js +142 -0
- package/dist/published/england-afc.js.map +1 -0
- package/dist/published/hcas-zones.d.ts +18 -0
- package/dist/published/hcas-zones.js +46 -0
- package/dist/published/hcas-zones.js.map +1 -0
- package/dist/published/wales-living-wage.d.ts +36 -0
- package/dist/published/wales-living-wage.js +30 -0
- package/dist/published/wales-living-wage.js.map +1 -0
- package/dist/regions.d.ts +25 -14
- package/dist/regions.js +61 -71
- package/dist/regions.js.map +1 -1
- package/dist/resolver.d.ts +46 -41
- package/dist/resolver.js +70 -142
- package/dist/resolver.js.map +1 -1
- package/dist/role.d.ts +3 -3
- package/dist/scale-point.d.ts +11 -7
- package/dist/scale-point.js +29 -1
- package/dist/scale-point.js.map +1 -1
- package/dist/scale-tables.d.ts +42 -60
- package/dist/scale-tables.js +65 -105
- package/dist/scale-tables.js.map +1 -1
- package/dist/scale-translators.d.ts +90 -0
- package/dist/scale-translators.js +97 -0
- package/dist/scale-translators.js.map +1 -0
- package/dist/scales.d.ts +138 -101
- package/dist/scales.js +221 -457
- package/dist/scales.js.map +1 -1
- package/dist/sources.d.ts +8 -12
- package/dist/sources.js +9 -15
- package/dist/sources.js.map +1 -1
- package/dist/take-home.js +1 -2
- package/dist/take-home.js.map +1 -1
- package/dist/values.d.ts +10 -3
- package/dist/values.js +11 -4
- package/dist/values.js.map +1 -1
- package/dist/working-week.d.ts +23 -8
- package/dist/working-week.js +55 -25
- package/dist/working-week.js.map +1 -1
- package/package.json +3 -3
- package/dist/bands.d.ts +0 -63
- package/dist/bands.js +0 -78
- package/dist/bands.js.map +0 -1
package/dist/scales.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scales.js","sourceRoot":"","sources":["../src/scales.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"scales.js","sourceRoot":"","sources":["../src/scales.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAKH,OAAO,EACL,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,gBAAgB,EAAE,SAAS,EAAC,MAAM,aAAa,CAAC;AAExD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAC,aAAa,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AAM,IAAI,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;IAC1C,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/sources.d.ts
CHANGED
|
@@ -61,11 +61,9 @@ export declare const AFC_WALES_2026: DocumentSource;
|
|
|
61
61
|
* staff in 2026/27, explicitly subject to his budgetary position; no
|
|
62
62
|
* HSC pay circular implementing it had been issued as at 3 Sep 2026.
|
|
63
63
|
* Every other row is a settled acceptance or an implementing circular.
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* on this row, and revisit the decision if a second conditional award
|
|
68
|
-
* ever appears.
|
|
64
|
+
* The distinction is not carried as a field: the caveat's only use is
|
|
65
|
+
* wording on a page, and presentation copy is the consumer's. Re-check
|
|
66
|
+
* for an implementing circular before relying on this row.
|
|
69
67
|
*
|
|
70
68
|
* It is NOT the source of any scale. NI has published no 2026-27 pay
|
|
71
69
|
* table, so `afcScaleSource` has no 2026-27 row for it and
|
|
@@ -115,7 +113,7 @@ export declare const AFC_W_02_2026: DocumentSource;
|
|
|
115
113
|
* ladder — the third of `DocumentSource`'s kinds. It carries
|
|
116
114
|
* the hourly floor in its Action paragraph and the annual floor in
|
|
117
115
|
* its own spine-point table, and neither derives from the other, so
|
|
118
|
-
* both are transcribed from it in `
|
|
116
|
+
* both are transcribed from it in `published/wales-living-wage.ts`.
|
|
119
117
|
*
|
|
120
118
|
* `issued` is the date on the letter's face, 6 January 2026, not the
|
|
121
119
|
* 1 April its rates take effect.
|
|
@@ -138,12 +136,10 @@ export declare const AFC_SCOTLAND: DocumentSource;
|
|
|
138
136
|
* The circular that sets NHS Scotland's full-time week to 36 hours
|
|
139
137
|
* from 1 April 2026.
|
|
140
138
|
*
|
|
141
|
-
* A CONDITIONS circular, not a scales one, which is why
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* before this record existed a consumer page carried its url as a
|
|
146
|
-
* hand-typed string constant.
|
|
139
|
+
* A CONDITIONS circular, not a scales one, which is why no AfC scale year
|
|
140
|
+
* cites it: it moves no salary. It is held because it is the
|
|
141
|
+
* instrument the hourly rates and `hoursPerYear` are computed on: it
|
|
142
|
+
* sets the week.
|
|
147
143
|
*
|
|
148
144
|
* Cited rather than the policy paper it is often confused with:
|
|
149
145
|
* gov.scot's Fairer Scotland Duty assessment describes the reduction
|
package/dist/sources.js
CHANGED
|
@@ -116,11 +116,9 @@ export const AFC_WALES_2026 = new DocumentSource({
|
|
|
116
116
|
* staff in 2026/27, explicitly subject to his budgetary position; no
|
|
117
117
|
* HSC pay circular implementing it had been issued as at 3 Sep 2026.
|
|
118
118
|
* Every other row is a settled acceptance or an implementing circular.
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* on this row, and revisit the decision if a second conditional award
|
|
123
|
-
* ever appears.
|
|
119
|
+
* The distinction is not carried as a field: the caveat's only use is
|
|
120
|
+
* wording on a page, and presentation copy is the consumer's. Re-check
|
|
121
|
+
* for an implementing circular before relying on this row.
|
|
124
122
|
*
|
|
125
123
|
* It is NOT the source of any scale. NI has published no 2026-27 pay
|
|
126
124
|
* table, so `afcScaleSource` has no 2026-27 row for it and
|
|
@@ -218,7 +216,7 @@ export const AFC_W_02_2026 = new DocumentSource({
|
|
|
218
216
|
* ladder — the third of `DocumentSource`'s kinds. It carries
|
|
219
217
|
* the hourly floor in its Action paragraph and the annual floor in
|
|
220
218
|
* its own spine-point table, and neither derives from the other, so
|
|
221
|
-
* both are transcribed from it in `
|
|
219
|
+
* both are transcribed from it in `published/wales-living-wage.ts`.
|
|
222
220
|
*
|
|
223
221
|
* `issued` is the date on the letter's face, 6 January 2026, not the
|
|
224
222
|
* 1 April its rates take effect.
|
|
@@ -260,9 +258,7 @@ export const AFC_SCOTLAND = new DocumentSource({
|
|
|
260
258
|
// adjustment was paid the March after the calendar year. So the
|
|
261
259
|
// next instrument to touch these figures is due around March
|
|
262
260
|
// 2027, ahead of the 2027-28 round. Dating this at the annual
|
|
263
|
-
// cycle would
|
|
264
|
-
// restatement — which is exactly how the 4.25% column stayed on
|
|
265
|
-
// the site for a year.
|
|
261
|
+
// cycle would treat the figures as current through a restatement.
|
|
266
262
|
nextExpected: isoDate('2027-03-01'),
|
|
267
263
|
nextExpectedReason: 'a possible restatement under the settlement\'s inflation '
|
|
268
264
|
+ 'guarantee, once CPI for calendar 2026 is confirmed',
|
|
@@ -271,12 +267,10 @@ export const AFC_SCOTLAND = new DocumentSource({
|
|
|
271
267
|
* The circular that sets NHS Scotland's full-time week to 36 hours
|
|
272
268
|
* from 1 April 2026.
|
|
273
269
|
*
|
|
274
|
-
* A CONDITIONS circular, not a scales one, which is why
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
* before this record existed a consumer page carried its url as a
|
|
279
|
-
* hand-typed string constant.
|
|
270
|
+
* A CONDITIONS circular, not a scales one, which is why no AfC scale year
|
|
271
|
+
* cites it: it moves no salary. It is held because it is the
|
|
272
|
+
* instrument the hourly rates and `hoursPerYear` are computed on: it
|
|
273
|
+
* sets the week.
|
|
280
274
|
*
|
|
281
275
|
* Cited rather than the policy paper it is often confused with:
|
|
282
276
|
* gov.scot's Fairer Scotland Duty assessment describes the reduction
|
package/dist/sources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAEtC,oDAAoD;AAEpD;;;6BAG6B;AAC7B,MAAM,CAAC,MAAM,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;IACpB,SAAS,EAAE,+CAA+C;IAC1D,GAAG,EAAE,yEAAyE;IAC9E,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;CAChC,CAAC,CAAC"}
|
package/dist/take-home.js
CHANGED
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
import { TakeHomePay, GrossAnnual, NO_PENSION, PensionBasis, PensionPercent, getTaxYearConfig, payAt, } from '@casomoltd/paye-calc';
|
|
23
23
|
import { invariant } from './errors.js';
|
|
24
|
-
|
|
25
|
-
const PER_CENT = 100;
|
|
24
|
+
import { PER_CENT } from './values.js';
|
|
26
25
|
/**
|
|
27
26
|
* The take-home pay of an NHS post. Its `annualAllowance()` has no
|
|
28
27
|
* scheme pension input: a year's input is a member's, read from
|
package/dist/take-home.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"take-home.js","sourceRoot":"","sources":["../src/take-home.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,KAAK,GACN,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"take-home.js","sourceRoot":"","sources":["../src/take-home.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,KAAK,GACN,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAerC;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CACzB,MAAc,EACd,WAAmB,EACnB,OAAgB,EAChB,SAAoB,EACpB,UA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CAAC,KAAK,EACvE,8DAA8D;cAC1D,yDAAyD;cACzD,mDAAmD;cACnD,qBAAqB,CAC1B,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/values.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Small shared
|
|
3
|
-
*
|
|
4
|
-
* that would otherwise travel
|
|
2
|
+
* Small shared values used across the pay-scale and
|
|
3
|
+
* pension layers: the per-cent unit, and value objects, a
|
|
4
|
+
* named home for paired fields that would otherwise travel
|
|
5
|
+
* as loose primitives.
|
|
5
6
|
*
|
|
6
7
|
* Deferred: this local shape stands until paye-calc owns a
|
|
7
8
|
* shared Range/MinMax value object. When it does, re-point
|
|
8
9
|
* SalaryRange and PensionTier at it rather than keep a
|
|
9
10
|
* parallel interval type.
|
|
10
11
|
*/
|
|
12
|
+
/** Per cent: a rate stated per 100. */
|
|
13
|
+
export declare const PER_CENT = 100;
|
|
11
14
|
/**
|
|
12
15
|
* A closed salary interval. `max` may be Infinity for an
|
|
13
16
|
* open-topped band (e.g. the top pension tier).
|
|
@@ -16,3 +19,7 @@ export interface SalaryRange {
|
|
|
16
19
|
readonly min: number;
|
|
17
20
|
readonly max: number;
|
|
18
21
|
}
|
|
22
|
+
/** The range a scale's points span, lowest salary to highest. */
|
|
23
|
+
export declare function salaryRangeOf(points: readonly {
|
|
24
|
+
readonly salary: number;
|
|
25
|
+
}[]): SalaryRange;
|
package/dist/values.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Small shared
|
|
3
|
-
*
|
|
4
|
-
* that would otherwise travel
|
|
2
|
+
* Small shared values used across the pay-scale and
|
|
3
|
+
* pension layers: the per-cent unit, and value objects, a
|
|
4
|
+
* named home for paired fields that would otherwise travel
|
|
5
|
+
* as loose primitives.
|
|
5
6
|
*
|
|
6
7
|
* Deferred: this local shape stands until paye-calc owns a
|
|
7
8
|
* shared Range/MinMax value object. When it does, re-point
|
|
8
9
|
* SalaryRange and PensionTier at it rather than keep a
|
|
9
10
|
* parallel interval type.
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
+
/** Per cent: a rate stated per 100. */
|
|
13
|
+
export const PER_CENT = 100;
|
|
14
|
+
/** The range a scale's points span, lowest salary to highest. */
|
|
15
|
+
export function salaryRangeOf(points) {
|
|
16
|
+
const salaries = points.map((p) => p.salary);
|
|
17
|
+
return { min: Math.min(...salaries), max: Math.max(...salaries) };
|
|
18
|
+
}
|
|
12
19
|
//# sourceMappingURL=values.js.map
|
package/dist/values.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.js","sourceRoot":"","sources":["../src/values.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"values.js","sourceRoot":"","sources":["../src/values.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,uCAAuC;AACvC,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC;AAW5B,iEAAiE;AACjE,MAAM,UAAU,aAAa,CAC3B,MAA4C;IAE5C,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,OAAO,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,EAAC,CAAC;AAClE,CAAC"}
|
package/dist/working-week.d.ts
CHANGED
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
* - Scotland, 36 hours from 1 April 2026: the same circular's 2026-27
|
|
14
14
|
* Annex B prints its rates on a 36-hour week, the week
|
|
15
15
|
* `AFC_SCOTLAND_36_HOUR_WEEK` (PCS(AFC)2026/2, in `sources.ts`) sets.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Every nation's week is held for 2025-26 and 2026-27 only, the years
|
|
17
|
+
* these sources are read for; any other year throws rather than serve a
|
|
18
|
+
* figure nobody has checked.
|
|
18
19
|
* See docs/source-archive.md.
|
|
19
20
|
*/
|
|
20
|
-
import type { Nation, PayYear
|
|
21
|
+
import type { Nation, PayYear } from '@casomoltd/paye-calc';
|
|
21
22
|
/**
|
|
22
23
|
* The full-time AfC week a pay round's scale is built on: the week its
|
|
23
24
|
* circular divides by. A member paid on last year's round is on last
|
|
@@ -25,12 +26,14 @@ import type { Nation, PayYear, TaxYear } from '@casomoltd/paye-calc';
|
|
|
25
26
|
*/
|
|
26
27
|
export declare function afcWeeklyHours(year: PayYear, nation: Nation): number;
|
|
27
28
|
/**
|
|
28
|
-
* The full-time AfC week in force
|
|
29
|
-
*
|
|
30
|
-
* 36 hours did in 2026
|
|
31
|
-
*
|
|
29
|
+
* The full-time AfC week in force on a date, whatever round a nation is
|
|
30
|
+
* paying on. Keyed by date because a week changes on 1 April, by the
|
|
31
|
+
* calendar, as Scotland's 36 hours did in 2026: that is neither a tax
|
|
32
|
+
* year's boundary (6 April) nor a pay round's, which can run late. It
|
|
33
|
+
* differs from `afcWeeklyHours` only for a nation still paying an earlier
|
|
34
|
+
* round.
|
|
32
35
|
*/
|
|
33
|
-
export declare function afcWeekInForce(
|
|
36
|
+
export declare function afcWeekInForce(on: Date, nation: Nation): number;
|
|
34
37
|
/**
|
|
35
38
|
* Hours in a year at a given week: the divisor for an hourly rate.
|
|
36
39
|
*
|
|
@@ -41,3 +44,15 @@ export declare function afcWeekInForce(year: TaxYear, nation: Nation): number;
|
|
|
41
44
|
* ignore them. `tests/working-week.test.ts` pins it.
|
|
42
45
|
*/
|
|
43
46
|
export declare function hoursPerYear(weeklyHours: number): number;
|
|
47
|
+
/**
|
|
48
|
+
* Annualise an hourly rate at given weekly hours.
|
|
49
|
+
*
|
|
50
|
+
* `weeklyHours` is required: the standard week varies by
|
|
51
|
+
* nation and year (`afcWeeklyHours`), so defaulting it
|
|
52
|
+
* would silently return an rUK answer for a Scottish rate.
|
|
53
|
+
* Pass `afcWeeklyHours(year, nation)`.
|
|
54
|
+
*
|
|
55
|
+
* The inverse of dividing by `hoursPerYear`, which it reads, so the two
|
|
56
|
+
* agree up to the rounding of the hourly rate and of the result.
|
|
57
|
+
*/
|
|
58
|
+
export declare function annualiseHourly(hourly: number, weeklyHours: number): number;
|
package/dist/working-week.js
CHANGED
|
@@ -13,17 +13,22 @@
|
|
|
13
13
|
* - Scotland, 36 hours from 1 April 2026: the same circular's 2026-27
|
|
14
14
|
* Annex B prints its rates on a 36-hour week, the week
|
|
15
15
|
* `AFC_SCOTLAND_36_HOUR_WEEK` (PCS(AFC)2026/2, in `sources.ts`) sets.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Every nation's week is held for 2025-26 and 2026-27 only, the years
|
|
17
|
+
* these sources are read for; any other year throws rather than serve a
|
|
18
|
+
* figure nobody has checked.
|
|
18
19
|
* See docs/source-archive.md.
|
|
19
20
|
*/
|
|
20
21
|
import { NATION_KEYS } from '@casomoltd/paye-calc';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
import { schemeYearOfPayYear } from './pay-year.js';
|
|
23
|
+
import { schemeYearEndFor } from './pension/scheme-year.js';
|
|
24
|
+
/** The handbook's week, everywhere but Scotland (#sa-41). */
|
|
25
|
+
const HANDBOOK_WEEK = 37.5;
|
|
26
|
+
/** Each nation's week, for the years a source sets it, keyed by the
|
|
27
|
+
* scheme year (1 April to 31 March) it holds over. A year outside it
|
|
28
|
+
* throws rather than assume the week held still. */
|
|
29
|
+
const AFC_WEEK = {
|
|
30
|
+
2026: withHandbookWeek({ scotland: 37 }), // 2025-26
|
|
31
|
+
2027: withHandbookWeek({ scotland: 36 }), // 2026-27
|
|
27
32
|
};
|
|
28
33
|
// A year of weeks as payroll counts it: 365 days over 7.
|
|
29
34
|
const DAYS_PER_YEAR = 365;
|
|
@@ -34,26 +39,18 @@ const DAYS_PER_WEEK = 7;
|
|
|
34
39
|
* year's week.
|
|
35
40
|
*/
|
|
36
41
|
export function afcWeeklyHours(year, nation) {
|
|
37
|
-
return weekFor(year, nation);
|
|
42
|
+
return weekFor(schemeYearOfPayYear(year), nation);
|
|
38
43
|
}
|
|
39
44
|
/**
|
|
40
|
-
* The full-time AfC week in force
|
|
41
|
-
*
|
|
42
|
-
* 36 hours did in 2026
|
|
43
|
-
*
|
|
45
|
+
* The full-time AfC week in force on a date, whatever round a nation is
|
|
46
|
+
* paying on. Keyed by date because a week changes on 1 April, by the
|
|
47
|
+
* calendar, as Scotland's 36 hours did in 2026: that is neither a tax
|
|
48
|
+
* year's boundary (6 April) nor a pay round's, which can run late. It
|
|
49
|
+
* differs from `afcWeeklyHours` only for a nation still paying an earlier
|
|
50
|
+
* round.
|
|
44
51
|
*/
|
|
45
|
-
export function afcWeekInForce(
|
|
46
|
-
return weekFor(
|
|
47
|
-
}
|
|
48
|
-
/** The week for a year's label, whichever question asks it. */
|
|
49
|
-
function weekFor(label, nation) {
|
|
50
|
-
if (nation !== NATION_KEYS.scotland)
|
|
51
|
-
return FULL_TIME_WEEK;
|
|
52
|
-
const week = SCOTLAND_WEEK[label];
|
|
53
|
-
if (week === undefined) {
|
|
54
|
-
throw new RangeError(`No sourced AfC week for Scotland in ${label}`);
|
|
55
|
-
}
|
|
56
|
-
return week;
|
|
52
|
+
export function afcWeekInForce(on, nation) {
|
|
53
|
+
return weekFor(schemeYearEndFor(on), nation);
|
|
57
54
|
}
|
|
58
55
|
/**
|
|
59
56
|
* Hours in a year at a given week: the divisor for an hourly rate.
|
|
@@ -67,4 +64,37 @@ function weekFor(label, nation) {
|
|
|
67
64
|
export function hoursPerYear(weeklyHours) {
|
|
68
65
|
return (weeklyHours * DAYS_PER_YEAR) / DAYS_PER_WEEK;
|
|
69
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Annualise an hourly rate at given weekly hours.
|
|
69
|
+
*
|
|
70
|
+
* `weeklyHours` is required: the standard week varies by
|
|
71
|
+
* nation and year (`afcWeeklyHours`), so defaulting it
|
|
72
|
+
* would silently return an rUK answer for a Scottish rate.
|
|
73
|
+
* Pass `afcWeeklyHours(year, nation)`.
|
|
74
|
+
*
|
|
75
|
+
* The inverse of dividing by `hoursPerYear`, which it reads, so the two
|
|
76
|
+
* agree up to the rounding of the hourly rate and of the result.
|
|
77
|
+
*/
|
|
78
|
+
export function annualiseHourly(hourly, weeklyHours) {
|
|
79
|
+
return Math.round(hourly * hoursPerYear(weeklyHours));
|
|
80
|
+
}
|
|
81
|
+
/** The week over the scheme year (1 April to 31 March) ending in `end`,
|
|
82
|
+
* whichever question asks it. */
|
|
83
|
+
function weekFor(end, nation) {
|
|
84
|
+
const weeks = AFC_WEEK[end];
|
|
85
|
+
if (weeks === undefined) {
|
|
86
|
+
throw new RangeError(`No sourced AfC week for the year to 31 March ${end}`);
|
|
87
|
+
}
|
|
88
|
+
return weeks[nation];
|
|
89
|
+
}
|
|
90
|
+
/** One scheme year's weeks: the handbook's in England, Wales and Northern
|
|
91
|
+
* Ireland, and Scotland's own. */
|
|
92
|
+
function withHandbookWeek({ scotland }) {
|
|
93
|
+
return {
|
|
94
|
+
[NATION_KEYS.england]: HANDBOOK_WEEK,
|
|
95
|
+
[NATION_KEYS.wales]: HANDBOOK_WEEK,
|
|
96
|
+
[NATION_KEYS.northernIreland]: HANDBOOK_WEEK,
|
|
97
|
+
[NATION_KEYS.scotland]: scotland,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
70
100
|
//# sourceMappingURL=working-week.js.map
|
package/dist/working-week.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"working-week.js","sourceRoot":"","sources":["../src/working-week.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"working-week.js","sourceRoot":"","sources":["../src/working-week.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAm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C5B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,UAAU,CAAC,gDAAgD,GAAG,EAAE,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;AACvB,CAAC;AAED;mCACmC;AACnC,SAAS,gBAAgB,CACvB,EAAC,QAAQ,EAA8B;IAEvC,OAAO;QACL,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,aAAa;QACpC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,aAAa;QAClC,CAAC,WAAW,CAAC,eAAe,CAAC,EAAE,aAAa;QAC5C,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ;KACjC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casomoltd/nhs-pay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.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.18.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@casomoltd/paye-calc": "^0.
|
|
73
|
+
"@casomoltd/paye-calc": "^0.18.0",
|
|
74
74
|
"@casomoltd/tooling": "^0.37.0",
|
|
75
75
|
"@commitlint/cli": "^20.0.0",
|
|
76
76
|
"@js-temporal/polyfill": "^0.5.1",
|
package/dist/bands.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Merge layer — joins each AfC band id with its
|
|
3
|
-
* year-specific salary points and the year's pension
|
|
4
|
-
* tiers.
|
|
5
|
-
*
|
|
6
|
-
* Presentation copy (labels, slugs, role descriptions)
|
|
7
|
-
* is a consumer's concern and lives there, not in this
|
|
8
|
-
* domain library.
|
|
9
|
-
*/
|
|
10
|
-
import type { PayYear, Nation } from '@casomoltd/paye-calc';
|
|
11
|
-
import type { AfcBandId, HcasZones } from './scales.js';
|
|
12
|
-
import type { PayLadder, SteppedPoint } from './scale-point.js';
|
|
13
|
-
import type { DocumentSource } from './document-source.js';
|
|
14
|
-
import type { SalaryRange } from './values.js';
|
|
15
|
-
export interface AfcBandMeta {
|
|
16
|
-
band: AfcBandId;
|
|
17
|
-
points: SteppedPoint[];
|
|
18
|
-
salary: SalaryRange;
|
|
19
|
-
/** The document that publishes these figures for this nation and
|
|
20
|
-
* year — the same value across a nation's bands, because one
|
|
21
|
-
* circular publishes the whole ladder. Carried per band anyway so a
|
|
22
|
-
* consumer reads a scale's source the same way whichever family it
|
|
23
|
-
* is rendering; medical and dental genuinely differ per grade. */
|
|
24
|
-
source: DocumentSource;
|
|
25
|
-
}
|
|
26
|
-
export interface AfcScaleData {
|
|
27
|
-
bands: AfcBandMeta[];
|
|
28
|
-
hcas: HcasZones;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The AfC PAY year England, Scotland and Wales are currently on.
|
|
32
|
-
*
|
|
33
|
-
* Typed as a `PayYear`, not left as a bare literal. An unbranded
|
|
34
|
-
* literal assigns to `TaxYear` and `PayYear` alike, so every consumer
|
|
35
|
-
* passing this into a tax-year parameter compiled silently — and
|
|
36
|
-
* several did, reading pension tiers and tax bands at a pay year.
|
|
37
|
-
* Annotating it turns that whole class into compile errors.
|
|
38
|
-
*
|
|
39
|
-
* NOT a site-wide "current year": Northern Ireland is a round behind.
|
|
40
|
-
* A consumer resolving figures for a reader's nation wants
|
|
41
|
-
* `latestAfcYear(nation)`; a consumer applying deductions wants
|
|
42
|
-
* `CURRENT_TAX_YEAR` from paye-calc.
|
|
43
|
-
*/
|
|
44
|
-
export declare const AFC_CURRENT_YEAR: PayYear;
|
|
45
|
-
/** The previous AfC pay year, for a year-on-year comparison. */
|
|
46
|
-
export declare const AFC_PREVIOUS_YEAR: PayYear;
|
|
47
|
-
/** Load AFC scale data — synchronous, no file I/O.
|
|
48
|
-
* Scotland and Wales each publish their own ladder; Northern
|
|
49
|
-
* Ireland adopts England's. Every figure is transcribed from the
|
|
50
|
-
* nation's own instrument, so no nation's scale is computed from
|
|
51
|
-
* another's. `year` and `nation` are both required — the accessor
|
|
52
|
-
* never defaults a locale, since a forgotten `nation` would
|
|
53
|
-
* silently return England figures for every region (the exact bug
|
|
54
|
-
* this signature prevents). */
|
|
55
|
-
export declare function getAfcScales(year: PayYear, nation: Nation): AfcScaleData;
|
|
56
|
-
/**
|
|
57
|
-
* The point labelled `label` on an AfC band, with the band's points, for
|
|
58
|
-
* a pay year and nation, read from {@link getAfcScales}. Throws
|
|
59
|
-
* `ScaleUnavailable` where the year and nation publish no scale or the
|
|
60
|
-
* band has no such point, and `AmbiguousScalePoint` where the label names
|
|
61
|
-
* more than one, so a caller never prices a point it did not ask for.
|
|
62
|
-
*/
|
|
63
|
-
export declare function afcPointOf(year: PayYear, nation: Nation, band: AfcBandId, label: string): PayLadder;
|
package/dist/bands.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Merge layer — joins each AfC band id with its
|
|
3
|
-
* year-specific salary points and the year's pension
|
|
4
|
-
* tiers.
|
|
5
|
-
*
|
|
6
|
-
* Presentation copy (labels, slugs, role descriptions)
|
|
7
|
-
* is a consumer's concern and lives there, not in this
|
|
8
|
-
* domain library.
|
|
9
|
-
*/
|
|
10
|
-
import { TAX_YEARS } from '@casomoltd/paye-calc';
|
|
11
|
-
import { AFC_BAND_IDS, afcScaleSource, getScalesForYear, } from './scales.js';
|
|
12
|
-
import { AmbiguousScalePoint, ScaleUnavailable } from './errors.js';
|
|
13
|
-
/**
|
|
14
|
-
* The AfC PAY year England, Scotland and Wales are currently on.
|
|
15
|
-
*
|
|
16
|
-
* Typed as a `PayYear`, not left as a bare literal. An unbranded
|
|
17
|
-
* literal assigns to `TaxYear` and `PayYear` alike, so every consumer
|
|
18
|
-
* passing this into a tax-year parameter compiled silently — and
|
|
19
|
-
* several did, reading pension tiers and tax bands at a pay year.
|
|
20
|
-
* Annotating it turns that whole class into compile errors.
|
|
21
|
-
*
|
|
22
|
-
* NOT a site-wide "current year": Northern Ireland is a round behind.
|
|
23
|
-
* A consumer resolving figures for a reader's nation wants
|
|
24
|
-
* `latestAfcYear(nation)`; a consumer applying deductions wants
|
|
25
|
-
* `CURRENT_TAX_YEAR` from paye-calc.
|
|
26
|
-
*/
|
|
27
|
-
export const AFC_CURRENT_YEAR = TAX_YEARS.Y2026_27;
|
|
28
|
-
/** The previous AfC pay year, for a year-on-year comparison. */
|
|
29
|
-
export const AFC_PREVIOUS_YEAR = TAX_YEARS.Y2025_26;
|
|
30
|
-
/** Load AFC scale data — synchronous, no file I/O.
|
|
31
|
-
* Scotland and Wales each publish their own ladder; Northern
|
|
32
|
-
* Ireland adopts England's. Every figure is transcribed from the
|
|
33
|
-
* nation's own instrument, so no nation's scale is computed from
|
|
34
|
-
* another's. `year` and `nation` are both required — the accessor
|
|
35
|
-
* never defaults a locale, since a forgotten `nation` would
|
|
36
|
-
* silently return England figures for every region (the exact bug
|
|
37
|
-
* this signature prevents). */
|
|
38
|
-
export function getAfcScales(year, nation) {
|
|
39
|
-
const scaleYear = getScalesForYear(year, nation);
|
|
40
|
-
const source = afcScaleSource(year, nation);
|
|
41
|
-
const bands = AFC_BAND_IDS.map((band) => {
|
|
42
|
-
const points = scaleYear.scales[band];
|
|
43
|
-
const salaries = points.map((p) => p.salary);
|
|
44
|
-
return {
|
|
45
|
-
band,
|
|
46
|
-
points,
|
|
47
|
-
salary: {
|
|
48
|
-
min: Math.min(...salaries),
|
|
49
|
-
max: Math.max(...salaries),
|
|
50
|
-
},
|
|
51
|
-
source,
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return {
|
|
55
|
-
bands,
|
|
56
|
-
hcas: scaleYear.hcas,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* The point labelled `label` on an AfC band, with the band's points, for
|
|
61
|
-
* a pay year and nation, read from {@link getAfcScales}. Throws
|
|
62
|
-
* `ScaleUnavailable` where the year and nation publish no scale or the
|
|
63
|
-
* band has no such point, and `AmbiguousScalePoint` where the label names
|
|
64
|
-
* more than one, so a caller never prices a point it did not ask for.
|
|
65
|
-
*/
|
|
66
|
-
export function afcPointOf(year, nation, band, label) {
|
|
67
|
-
const found = getAfcScales(year, nation).bands.find((b) => b.band === band);
|
|
68
|
-
const matches = found?.points.filter((p) => p.label === label) ?? [];
|
|
69
|
-
const current = matches.at(0);
|
|
70
|
-
if (found === undefined || current === undefined) {
|
|
71
|
-
throw new ScaleUnavailable(nation, year, band, label);
|
|
72
|
-
}
|
|
73
|
-
if (matches.length > 1) {
|
|
74
|
-
throw new AmbiguousScalePoint(band, label, matches.length);
|
|
75
|
-
}
|
|
76
|
-
return { points: found.points, current };
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=bands.js.map
|
package/dist/bands.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bands.js","sourceRoot":"","sources":["../src/bands.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAM/C,OAAO,EACL,YAAY,EACZ,cAAc,EACd,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAC,mBAAmB,EAAE,gBAAgB,EAAC,MAAM,aAAa,CAAC;AA0BlE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAY,SAAS,CAAC,QAAQ,CAAC;AAE5D,gEAAgE;AAChE,MAAM,CAAC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