From 2814fbc77e71b2cfc671e3e161ac0a8f189be058 Mon Sep 17 00:00:00 2001 From: Emil Placheta Date: Thu, 19 Mar 2026 15:52:29 +0000 Subject: [PATCH] feat(nsip): add sourceSystem enum to to nsip-document schema (idas-498) --- docs/nsip-document.md | 1 + schemas/nsip-document.schema.json | 10 +++++++++- src/enums.cjs | 1 + src/enums.d.ts | 1 + src/enums.js | 1 + src/index.cjs | 1 + src/schemas.d.ts | 9 ++++++++- 7 files changed, 22 insertions(+), 2 deletions(-) diff --git a/docs/nsip-document.md b/docs/nsip-document.md index c859912..1ada09a 100644 --- a/docs/nsip-document.md +++ b/docs/nsip-document.md @@ -672,6 +672,7 @@ The location of the published document. Only applicable to documents which are p | :--------------------------- | :---------- | | `"back-office-appeals"` | | | `"back-office-applications"` | | +| `"dco-portal"` | | | `"horizon"` | | | `"ni_file"` | | | `"sharepoint"` | | diff --git a/schemas/nsip-document.schema.json b/schemas/nsip-document.schema.json index 4ba09db..d749aee 100644 --- a/schemas/nsip-document.schema.json +++ b/schemas/nsip-document.schema.json @@ -172,7 +172,15 @@ }, "sourceSystem": { "type": ["string", "null"], - "enum": ["back-office-appeals", "back-office-applications", "horizon", "ni_file", "sharepoint", null] + "enum": [ + "back-office-appeals", + "back-office-applications", + "dco-portal", + "horizon", + "ni_file", + "sharepoint", + null + ] }, "origin": { "type": ["string", "null"], diff --git a/src/enums.cjs b/src/enums.cjs index ce983ea..5808fde 100644 --- a/src/enums.cjs +++ b/src/enums.cjs @@ -695,6 +695,7 @@ const NSIP_SECURITY_CLASSIFICATION = Object.freeze({ const NSIP_SOURCE_SYSTEM = Object.freeze({ BACK_OFFICE_APPEALS: 'back-office-appeals', BACK_OFFICE_APPLICATIONS: 'back-office-applications', + DCO_PORTAL: 'dco-portal', HORIZON: 'horizon', NI_FILE: 'ni_file', SHAREPOINT: 'sharepoint', diff --git a/src/enums.d.ts b/src/enums.d.ts index 4efda86..3a5c437 100644 --- a/src/enums.d.ts +++ b/src/enums.d.ts @@ -693,6 +693,7 @@ export const NSIP_SECURITY_CLASSIFICATION = { export const NSIP_SOURCE_SYSTEM = { BACK_OFFICE_APPEALS: 'back-office-appeals', BACK_OFFICE_APPLICATIONS: 'back-office-applications', + DCO_PORTAL: 'dco-portal', HORIZON: 'horizon', NI_FILE: 'ni_file', SHAREPOINT: 'sharepoint', diff --git a/src/enums.js b/src/enums.js index 0e4b930..2cad80f 100644 --- a/src/enums.js +++ b/src/enums.js @@ -693,6 +693,7 @@ export const NSIP_SECURITY_CLASSIFICATION = Object.freeze({ export const NSIP_SOURCE_SYSTEM = Object.freeze({ BACK_OFFICE_APPEALS: 'back-office-appeals', BACK_OFFICE_APPLICATIONS: 'back-office-applications', + DCO_PORTAL: 'dco-portal', HORIZON: 'horizon', NI_FILE: 'ni_file', SHAREPOINT: 'sharepoint', diff --git a/src/index.cjs b/src/index.cjs index cc2b932..f8ba658 100644 --- a/src/index.cjs +++ b/src/index.cjs @@ -776,6 +776,7 @@ const NSIP_SECURITY_CLASSIFICATION = Object.freeze({ const NSIP_SOURCE_SYSTEM = Object.freeze({ BACK_OFFICE_APPEALS: 'back-office-appeals', BACK_OFFICE_APPLICATIONS: 'back-office-applications', + DCO_PORTAL: 'dco-portal', HORIZON: 'horizon', NI_FILE: 'ni_file', SHAREPOINT: 'sharepoint', diff --git a/src/schemas.d.ts b/src/schemas.d.ts index 6f453d1..9c8fe25 100644 --- a/src/schemas.d.ts +++ b/src/schemas.d.ts @@ -2176,7 +2176,14 @@ export interface NSIPDocument { datePublished: string | null; documentType: string | null; securityClassification: 'public' | 'official' | 'secret' | 'top-secret' | null; - sourceSystem: 'back-office-appeals' | 'back-office-applications' | 'horizon' | 'ni_file' | 'sharepoint' | null; + sourceSystem: + | 'back-office-appeals' + | 'back-office-applications' + | 'dco-portal' + | 'horizon' + | 'ni_file' + | 'sharepoint' + | null; origin: 'pins' | 'citizen' | 'lpa' | 'ogd' | null; owner: string | null; /**