From 00ce9ef2cee3aa281430f576f5bb484b24308618 Mon Sep 17 00:00:00 2001 From: arturasmckwcz Date: Wed, 22 Apr 2026 13:32:47 +0000 Subject: [PATCH 1/9] update: move accompanying details to list --- src/types/api/accompanying.ts | 2 +- src/types/api/opportunity.ts | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/types/api/accompanying.ts b/src/types/api/accompanying.ts index 5d1a5fc..4ae9dce 100644 --- a/src/types/api/accompanying.ts +++ b/src/types/api/accompanying.ts @@ -6,5 +6,5 @@ export interface ApiOpportunityAccompanyingDetails { appointmentTime?: string; refugeeNumber?: string; refugeeName?: string; - languageToTranslate?: string; + languageToTranslate?: number; } diff --git a/src/types/api/opportunity.ts b/src/types/api/opportunity.ts index d0f0968..f190542 100644 --- a/src/types/api/opportunity.ts +++ b/src/types/api/opportunity.ts @@ -125,6 +125,7 @@ export interface ApiOpportunityGetList { activities: OptionById[]; languages: ApiLanguage[]; availability: ApiAvailability[]; + accompanyingDetails: ApiOpportunityAccompanyingDetails; } export interface ApiOpportunityGet extends ApiOpportunityGetList { @@ -136,7 +137,6 @@ export interface ApiOpportunityGet extends ApiOpportunityGetList { comments: ApiComment[]; contact: ApiOpportunityContact; agent: ApiOpportunityAgent; - accompanyingDetails: ApiOpportunityAccompanyingDetails; } export type ApiOpportunityLean = Omit; @@ -162,14 +162,7 @@ export type ApiOpportunityPatch = Partial<{ address: string; district: string; }; - accompanyingDetails: { - appointmentAddress: string; - appointmentDate: string; - appointmentTime: string; - refugeeNumber: string; - refugeeName: string; - languagesToTranslate: number; - }; + accompanyingDetails: ApiOpportunityAccompanyingDetails; }>; export interface OpportunityVolunteer { From ef7153db3d90b52a7e7794ca5e1c39e5c62a8d57 Mon Sep 17 00:00:00 2001 From: arturasmckwcz Date: Wed, 22 Apr 2026 13:34:29 +0000 Subject: [PATCH 2/9] v0.0.77 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e1dccb0..ff0ed98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "need4deed-sdk", - "version": "0.0.75", + "version": "0.0.77", "description": "Need4Deed.org SDK", "type": "commonjs", "main": "dist/index.js", From 7ef5e7651b8a09b45f81976fc23e22141449c535 Mon Sep 17 00:00:00 2001 From: arturasmckwcz Date: Mon, 27 Apr 2026 09:58:49 +0000 Subject: [PATCH 3/9] add: inactive to opportunity status --- src/types/api/opportunity.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/api/opportunity.ts b/src/types/api/opportunity.ts index f190542..ffd4751 100644 --- a/src/types/api/opportunity.ts +++ b/src/types/api/opportunity.ts @@ -27,6 +27,7 @@ export enum OpportunityStatusType { NEW = "opp-new", SEARCHING = "opp-searching", ACTIVE = "opp-active", + INACTIVE = "opp-inactive", PAST = "opp-past", } From 1e864a145b200c261c2b869097830b591a3bb3e3 Mon Sep 17 00:00:00 2001 From: arturasmckwcz Date: Mon, 27 Apr 2026 09:59:02 +0000 Subject: [PATCH 4/9] v0.0.78 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ff0ed98..7ff5982 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "need4deed-sdk", - "version": "0.0.77", + "version": "0.0.78", "description": "Need4Deed.org SDK", "type": "commonjs", "main": "dist/index.js", From 632f41a705a992d1223f0db9a04b343b7ce2f491 Mon Sep 17 00:00:00 2001 From: nadavosa Date: Mon, 27 Apr 2026 12:09:42 +0200 Subject: [PATCH 5/9] feat: add OpportunityMatchStatusType and statusMatch to ApiOpportunityGetList Closes #88 Co-Authored-By: Claude Sonnet 4.6 --- src/types/api/opportunity.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/types/api/opportunity.ts b/src/types/api/opportunity.ts index ffd4751..f348be8 100644 --- a/src/types/api/opportunity.ts +++ b/src/types/api/opportunity.ts @@ -38,6 +38,13 @@ export enum OpportunityMatchStatus { UNMATCHED = "opp-unmatched", } +export enum OpportunityMatchStatusType { + NO_MATCHES = "vol-no-matches", + PENDING_MATCH = "vol-pending-match", + MATCHED = "vol-matched", + PAST = "vol-past", +} + export enum OpportunityVolunteerStatusType { PENDING = "opp-pending", MATCHED = "opp-matched", @@ -122,6 +129,7 @@ export interface ApiOpportunityGetList { category: OptionById; volunteerType: VolunteerStateTypeType; statusOpportunity: OpportunityStatusType; + statusMatch: OpportunityMatchStatusType; createdAt: Date; activities: OptionById[]; languages: ApiLanguage[]; From 5b67685f2b46fdc15acae9f5ccc31253826de49b Mon Sep 17 00:00:00 2001 From: Arturas Mickiewicz Date: Wed, 29 Apr 2026 11:01:22 +0200 Subject: [PATCH 6/9] add: value to match state --- src/types/api/volunteer.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/types/api/volunteer.ts b/src/types/api/volunteer.ts index a9213ab..cf54b12 100644 --- a/src/types/api/volunteer.ts +++ b/src/types/api/volunteer.ts @@ -1,11 +1,7 @@ import { DocumentStatusType, Id } from "../core"; import { OptionById, OptionId } from "./common"; import { ApiLanguage } from "./language"; -import { - ApiOpportunityGetList, - OpportunityVolunteerStatusType, - OpportunityVolunteer, -} from "./opportunity"; +import { ApiOpportunityGetList, OpportunityVolunteer } from "./opportunity"; import { OptionItem } from "./option"; import { ApiPersonGet, PreferredCommunicationType } from "./person"; import { ProfileVolunteeringType } from "./profile"; @@ -115,6 +111,7 @@ export enum VolunteerStateMatchType { PENDING_MATCH = "vol-pending-match", MATCHED = "vol-matched", NEEDS_REMATCH = "vol-needs-rematch", + PAST = "vol-past", } export const VolunteerCommunicationType = PreferredCommunicationType; From 91c94dd99b1cb8fe8977e71058264ba5677bfa36 Mon Sep 17 00:00:00 2001 From: Arturas Mickiewicz Date: Wed, 29 Apr 2026 11:02:25 +0200 Subject: [PATCH 7/9] v0.0.79 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ff5982..ab575b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "need4deed-sdk", - "version": "0.0.78", + "version": "0.0.79", "description": "Need4Deed.org SDK", "type": "commonjs", "main": "dist/index.js", From a004f74004133928c8ba03bddf34841f87650dad Mon Sep 17 00:00:00 2001 From: Arturas Mickiewicz Date: Wed, 29 Apr 2026 12:39:18 +0200 Subject: [PATCH 8/9] fix: type naming and values --- src/types/api/opportunity.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/types/api/opportunity.ts b/src/types/api/opportunity.ts index f348be8..87dcda7 100644 --- a/src/types/api/opportunity.ts +++ b/src/types/api/opportunity.ts @@ -31,14 +31,16 @@ export enum OpportunityStatusType { PAST = "opp-past", } -export enum OpportunityMatchStatus { - PENDING_MATCH = "opp-pending-match", - MATCHED = "opp-matched", - NEEDS_REMATCH = "opp-needs-rematch", - UNMATCHED = "opp-unmatched", +export enum OpportunityMatchStatusType { + PENDING_MATCH = "opp-vol-pending-match", + NO_MATCHES = "opp-vol-no-matches", + MATCHED = "opp-vol-matched", + NEEDS_REMATCH = "opp-vol-needs-rematch", + UNMATCHED = "opp-vol-unmatched", + PAST = "opp-vol-past", } -export enum OpportunityMatchStatusType { +export enum OpportunityMatchStatus { NO_MATCHES = "vol-no-matches", PENDING_MATCH = "vol-pending-match", MATCHED = "vol-matched", From 5a49733f500318ee7be000361e5d9367546b0b6e Mon Sep 17 00:00:00 2001 From: Arturas Mickiewicz Date: Wed, 29 Apr 2026 12:39:34 +0200 Subject: [PATCH 9/9] v0.0.80 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ab575b2..47a4811 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "need4deed-sdk", - "version": "0.0.79", + "version": "0.0.80", "description": "Need4Deed.org SDK", "type": "commonjs", "main": "dist/index.js",