need4deed-sdk 0.0.117 → 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 = {}));
@@ -11,6 +11,7 @@ export * from "./language";
11
11
  export * from "./location";
12
12
  export * from "./opportunity";
13
13
  export * from "./option";
14
+ export * from "./post";
14
15
  export * from "./organization";
15
16
  export * from "./person";
16
17
  export * from "./profile";
@@ -27,6 +27,7 @@ __exportStar(require("./language"), exports);
27
27
  __exportStar(require("./location"), exports);
28
28
  __exportStar(require("./opportunity"), exports);
29
29
  __exportStar(require("./option"), exports);
30
+ __exportStar(require("./post"), exports);
30
31
  __exportStar(require("./organization"), exports);
31
32
  __exportStar(require("./person"), exports);
32
33
  __exportStar(require("./profile"), exports);
@@ -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;
@@ -0,0 +1,25 @@
1
+ import { VoidableProps } from "../utils";
2
+ export interface ApiPostPerson {
3
+ id: number;
4
+ fullName: string;
5
+ avatarUrl?: string;
6
+ }
7
+ export interface ApiPostLinkedOpportunity {
8
+ id: number;
9
+ title: string;
10
+ }
11
+ export interface ApiPostGet {
12
+ id: number;
13
+ text: string;
14
+ author: ApiPostPerson;
15
+ agentId: number | null;
16
+ taggedPersons: ApiPostPerson[];
17
+ linkedOpportunities: ApiPostLinkedOpportunity[];
18
+ createdAt: Date;
19
+ }
20
+ export interface ApiPostPost {
21
+ text: string;
22
+ taggedPersonIds?: number[];
23
+ linkedOpportunityIds?: number[];
24
+ }
25
+ export type ApiPostPatch = VoidableProps<ApiPostPost>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.117",
3
+ "version": "0.0.119",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",