From 3d4347dc3637493012b687648f1fd650af280891 Mon Sep 17 00:00:00 2001 From: arturasmckwcz Date: Thu, 11 Sep 2025 09:34:36 +0000 Subject: [PATCH 1/3] fix: remove unnecessary undefined --- src/types/api/volunteer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/api/volunteer.ts b/src/types/api/volunteer.ts index 1f8d360..c93361a 100644 --- a/src/types/api/volunteer.ts +++ b/src/types/api/volunteer.ts @@ -24,7 +24,7 @@ export interface Volunteer { } export interface VolunteerFormData { - opportunityId?: Id | undefined; + opportunityId?: Id; fullName: string; phone: string; email: string; @@ -41,6 +41,7 @@ export interface VolunteerFormData { } export interface ApiVolunteerGetList { + id: number; name: string; languages: ApiLanguage[]; availability: Availability[]; From 4805495408dbd76cd68a54b037d43200abd73be1 Mon Sep 17 00:00:00 2001 From: arturasmckwcz Date: Fri, 12 Sep 2025 10:56:21 +0000 Subject: [PATCH 2/3] update time --- src/types/api/time.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/types/api/time.ts b/src/types/api/time.ts index 4e562b9..8c15ba7 100644 --- a/src/types/api/time.ts +++ b/src/types/api/time.ts @@ -16,8 +16,14 @@ export enum ByDay { SU = "Sunday", } -export type Occasionally = "occasionally"; -export type OccasionalDays = "weekends" | "weekdays"; +export enum Occasionally { + OCCASIONALLY = "occasionally", +} + +export enum OccasionalType { + WEEKENDS = "weekends", + WEEKDAYS = "weekdays", +} export enum Hour { H00 = "0:00", @@ -47,20 +53,13 @@ export enum Hour { H24 = "24:00", } -export type Daytime = [Hour, Hour] | OccasionalDays; +export type Daytime = [Hour, Hour] | [OccasionalType]; export interface Availability { day: ByDay | Occasionally; daytime: Daytime; } -export enum OccasionalType { - UNDEFINED = "undefined", - WEEKENDS = "weekends", - WEEKDAYS = "weekdays", - OCCASIONALLY = "occasionally", -} - export interface TimedText { date: Date; text: string; From 3e4cfe9f00576aa7be068991a97595e388acacdc Mon Sep 17 00:00:00 2001 From: arturasmckwcz Date: Fri, 12 Sep 2025 11:11:03 +0000 Subject: [PATCH 3/3] update actions script --- .github/workflows/publish.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 392fd1a..a93631c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,7 @@ name: Publish on Merge to Main on: - push: - branches: - - main + workflow_dispatch: jobs: publish: @@ -22,11 +20,7 @@ jobs: - name: Install dependencies run: yarn install --immutable - - name: Get version from package.json - id: get_version - run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT - - name: Publish to npm - run: yarn publish --non-interactive --new-version ${{ steps.get_version.outputs.PACKAGE_VERSION }} + run: yarn publish --non-interactive env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}