From 32343e19ca274bf8177122711365ff2fd58f2f73 Mon Sep 17 00:00:00 2001 From: enxtur Date: Wed, 2 Oct 2024 17:57:13 +0800 Subject: [PATCH 1/2] HPC-9772: Add `focusLocationId` to `planVersion` model --- src/db/models/planVersion.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db/models/planVersion.ts b/src/db/models/planVersion.ts index bfcd2d1..d093fcb 100644 --- a/src/db/models/planVersion.ts +++ b/src/db/models/planVersion.ts @@ -4,6 +4,7 @@ import { brandedType } from '../../util/io-ts'; import type { Brand } from '../../util/types'; import { DATE } from '../util/datatypes'; import { defineLegacyVersionedModel } from '../util/legacy-versioned-model'; +import { LOCATION_ID } from './location'; import { PLAN_ID } from './plan'; import { PLAN_REPORTING_PERIOD_ID } from './planReportingPeriod'; @@ -59,6 +60,7 @@ export default defineLegacyVersionedModel({ type: PLAN_VERSION_CLUSTER_SELECTION_TYPE, }, pdfPublishDate: { kind: 'checked', type: DATE }, + focusLocationId: { kind: 'branded-integer', brand: LOCATION_ID }, }, accidentallyOptional: { shortName: { kind: 'checked', type: t.string }, From 425335c6d70f2ab029a5be9cf1ab9a2f1b0b08df Mon Sep 17 00:00:00 2001 From: enxtur Date: Mon, 11 Nov 2024 21:14:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20Bump=20version=20to=20`v10.2?= =?UTF-8?q?.0`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 90edb5c..e69215d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@unocha/hpc-api-core", - "version": "10.1.2", + "version": "10.2.0", "description": "Core libraries supporting HPC.Tools API Backend", "license": "Apache-2.0", "private": false,