need4deed-sdk 0.0.118 → 0.0.119

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.
@@ -80,6 +80,7 @@ interface AgentGetList {
80
80
  district: OptionById;
81
81
  activeVolunteers: number;
82
82
  email: string;
83
+ numOpportunities: number;
83
84
  numActiveVolunteers: number;
84
85
  }
85
86
  export type ApiAgentGetList = VoidableProps<AgentGetList, "district">;
@@ -19,12 +19,7 @@ export declare enum CommunicationType {
19
19
  FIRST_INQUIRY = "first-inquiry-sent",
20
20
  OPPORTUNITY_LIST = "opportunity-list-sent",
21
21
  STATUS_UPDATE = "status-update",
22
- POST_FOLLOWUP = "post-match-followup",
23
- MATCHED = "matched",
24
- ACCOMPANYING_NOT_FOUND = "accompanying-not-found",
25
- ACCOMPANYING_MATCHED = "accompanying-matched",
26
- OPPORTUNITY_UPDATED = "opportunity-updated",
27
- OPPORTUNITY_CONFIRMATION = "opportunity-confirmation"
22
+ POST_FOLLOWUP = "post-match-followup"
28
23
  }
29
24
  export interface ApiCommunicationPost {
30
25
  contactType: ContactType;
@@ -37,8 +32,7 @@ export interface ApiCommunicationGet extends ApiCommunicationPost {
37
32
  id: number;
38
33
  volunteerId?: number;
39
34
  agentId?: number;
40
- opportunityId?: number;
41
- userId?: number;
35
+ userId: number;
42
36
  }
43
37
  export interface ApiVolunteerCommunicationPost extends ApiCommunicationPost {
44
38
  }
@@ -26,9 +26,4 @@ var CommunicationType;
26
26
  CommunicationType["OPPORTUNITY_LIST"] = "opportunity-list-sent";
27
27
  CommunicationType["STATUS_UPDATE"] = "status-update";
28
28
  CommunicationType["POST_FOLLOWUP"] = "post-match-followup";
29
- CommunicationType["MATCHED"] = "matched";
30
- CommunicationType["ACCOMPANYING_NOT_FOUND"] = "accompanying-not-found";
31
- CommunicationType["ACCOMPANYING_MATCHED"] = "accompanying-matched";
32
- CommunicationType["OPPORTUNITY_UPDATED"] = "opportunity-updated";
33
- CommunicationType["OPPORTUNITY_CONFIRMATION"] = "opportunity-confirmation";
34
29
  })(CommunicationType || (exports.CommunicationType = CommunicationType = {}));
@@ -203,7 +203,7 @@ export interface ApiAgentOpportunityVolunteer {
203
203
  * One of an agent's opportunities with the volunteers linked to it. Response
204
204
  * item of `GET /agent/:id/opportunity-linked`.
205
205
  */
206
- export interface ApiAgentOpportunity {
206
+ export interface ApiAgentOpportunity extends Pick<ApiOpportunityGetList, "volunteerType" | "languages" | "activities" | "availability" | "location" | "district"> {
207
207
  id: Id;
208
208
  title: string;
209
209
  statusOpportunity: OpportunityStatusType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.118",
3
+ "version": "0.0.119",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",