need4deed-sdk 0.0.61 → 0.0.63
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.
|
@@ -32,7 +32,7 @@ export declare enum OpportunityMatchStatus {
|
|
|
32
32
|
UNMATCHED = "unmatched"
|
|
33
33
|
}
|
|
34
34
|
export declare enum OpportunityVolunteerStatusType {
|
|
35
|
-
|
|
35
|
+
PENDING = "pending",
|
|
36
36
|
MATCHED = "matched",
|
|
37
37
|
ACTIVE = "active",
|
|
38
38
|
PAST = "past"
|
|
@@ -97,6 +97,7 @@ export interface ApiOpportunityAgent {
|
|
|
97
97
|
district: OptionById;
|
|
98
98
|
}
|
|
99
99
|
export interface ApiOpportunityContact {
|
|
100
|
+
id: number;
|
|
100
101
|
name: string;
|
|
101
102
|
phone: string;
|
|
102
103
|
email: string;
|
|
@@ -124,6 +125,32 @@ export interface ApiOpportunityGet extends ApiOpportunityGetList {
|
|
|
124
125
|
agent: ApiOpportunityAgent;
|
|
125
126
|
accompanyingDetails: ApiOpportunityAccompanyingDetails;
|
|
126
127
|
}
|
|
128
|
+
export type ApiOpportunityLean = Omit<ApiOpportunityGet, "comments">;
|
|
129
|
+
export type ApiOpportunityPatch = Partial<{
|
|
130
|
+
statusOpportunity: OpportunityStatusType;
|
|
131
|
+
numberVolunteers: number;
|
|
132
|
+
description: string;
|
|
133
|
+
contact: {
|
|
134
|
+
id: number;
|
|
135
|
+
name: string;
|
|
136
|
+
phone: string;
|
|
137
|
+
email: string;
|
|
138
|
+
waysToContact: PreferredCommunicationType[];
|
|
139
|
+
};
|
|
140
|
+
agent: {
|
|
141
|
+
name: string;
|
|
142
|
+
address: string;
|
|
143
|
+
district: string;
|
|
144
|
+
};
|
|
145
|
+
accompanyingDetails: {
|
|
146
|
+
appointmentAddress: string;
|
|
147
|
+
appointmentDate: string;
|
|
148
|
+
appointmentTime: string;
|
|
149
|
+
refugeeNumber: string;
|
|
150
|
+
refugeeName: string;
|
|
151
|
+
languagesToTranslate: TranslatedIntoType[];
|
|
152
|
+
};
|
|
153
|
+
}>;
|
|
127
154
|
export interface OpportunityVolunteer {
|
|
128
155
|
id: number;
|
|
129
156
|
status: OpportunityVolunteerStatusType;
|
|
@@ -36,7 +36,7 @@ var OpportunityMatchStatus;
|
|
|
36
36
|
})(OpportunityMatchStatus || (exports.OpportunityMatchStatus = OpportunityMatchStatus = {}));
|
|
37
37
|
var OpportunityVolunteerStatusType;
|
|
38
38
|
(function (OpportunityVolunteerStatusType) {
|
|
39
|
-
OpportunityVolunteerStatusType["
|
|
39
|
+
OpportunityVolunteerStatusType["PENDING"] = "pending";
|
|
40
40
|
OpportunityVolunteerStatusType["MATCHED"] = "matched";
|
|
41
41
|
OpportunityVolunteerStatusType["ACTIVE"] = "active";
|
|
42
42
|
OpportunityVolunteerStatusType["PAST"] = "past";
|