need4deed-sdk 0.0.103 → 0.0.105

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.
@@ -140,6 +140,11 @@ export interface ApiAgentTitleConflict {
140
140
  conflict: "title";
141
141
  agentId: number;
142
142
  }
143
+ export interface ApiAgentAddressConflict {
144
+ conflict: "address";
145
+ agentId: number;
146
+ }
147
+ export type ApiAgentRegisterConflict = ApiAgentTitleConflict | ApiAgentAddressConflict;
143
148
  export interface ApiAgentMembership {
144
149
  id: number;
145
150
  agentId: number;
@@ -178,3 +178,28 @@ export interface OpportunityVolunteer {
178
178
  export interface ApiOpportunityVolunteerGet extends OpportunityVolunteer {
179
179
  title: string;
180
180
  }
181
+ /**
182
+ * A volunteer linked to an opportunity, as surfaced on an agent's opportunity
183
+ * list. Person fields (`name`, `avatarUrl`) are PII-masked per caller role by
184
+ * the API, so they may be absent or redacted.
185
+ */
186
+ export interface ApiAgentOpportunityVolunteer {
187
+ id: number;
188
+ volunteerId: number;
189
+ status: OpportunityVolunteerStatusType;
190
+ name?: string;
191
+ avatarUrl?: string;
192
+ }
193
+ /**
194
+ * One of an agent's opportunities with the volunteers linked to it. Response
195
+ * item of `GET /agent/:id/opportunity-linked`.
196
+ */
197
+ export interface ApiAgentOpportunity {
198
+ id: Id;
199
+ title: string;
200
+ statusOpportunity: OpportunityStatusType;
201
+ statusMatch: OpportunityMatchStatusType;
202
+ numberOfVolunteers: number;
203
+ createdAt: Date;
204
+ volunteers: ApiAgentOpportunityVolunteer[];
205
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.103",
3
+ "version": "0.0.105",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",