need4deed-sdk 0.0.183 → 0.0.185

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.
@@ -15,3 +15,9 @@ export interface ApiDocumentGet {
15
15
  export interface ApiVolunteerApplicationEmailPost {
16
16
  sentAt: Date;
17
17
  }
18
+ export type ApplicationEmailFailureReason = "attachment-unavailable" | "email-invalid" | "send-failed";
19
+ export interface ApiVolunteerApplicationEmailError {
20
+ error: string;
21
+ message: string;
22
+ reason: ApplicationEmailFailureReason;
23
+ }
@@ -226,6 +226,17 @@ export interface OpportunityVolunteer {
226
226
  export interface ApiOpportunityVolunteerGet extends OpportunityVolunteer {
227
227
  title: string;
228
228
  }
229
+ export declare const EMAIL_NOTE_MAX_LENGTH = 1000;
230
+ export interface ApiOpportunityVolunteerPost {
231
+ opportunityId: number;
232
+ volunteerId: number;
233
+ status: OpportunityVolunteerStatusType;
234
+ emailNote?: string;
235
+ }
236
+ export interface ApiOpportunityVolunteerPatch {
237
+ status: OpportunityVolunteerStatusType;
238
+ emailNote?: string;
239
+ }
229
240
  export interface ApiAgentOpportunityVolunteer {
230
241
  id: number;
231
242
  volunteerId: number;
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.OpportunityVolunteerStatusType = exports.OpportunityMatchStatus = exports.OpportunitySortField = exports.OpportunityMatchStatusType = exports.OpportunityStatusType = exports.TranslatedIntoType = exports.OpportunityLegacyType = exports.OpportunityType = exports.REGULAR_ACCOMPANYING = void 0;
14
+ exports.EMAIL_NOTE_MAX_LENGTH = exports.OpportunityVolunteerStatusType = exports.OpportunityMatchStatus = exports.OpportunitySortField = exports.OpportunityMatchStatusType = exports.OpportunityStatusType = exports.TranslatedIntoType = exports.OpportunityLegacyType = exports.OpportunityType = exports.REGULAR_ACCOMPANYING = void 0;
15
15
  const profile_1 = require("./profile");
16
16
  exports.REGULAR_ACCOMPANYING = profile_1.ProfileVolunteeringType.REGULAR_ACCOMPANYING, exports.OpportunityType = __rest(profile_1.ProfileVolunteeringType, ["REGULAR_ACCOMPANYING"]);
17
17
  var OpportunityLegacyType;
@@ -61,3 +61,4 @@ var OpportunityVolunteerStatusType;
61
61
  OpportunityVolunteerStatusType["ACTIVE"] = "opp-active";
62
62
  OpportunityVolunteerStatusType["PAST"] = "opp-past";
63
63
  })(OpportunityVolunteerStatusType || (exports.OpportunityVolunteerStatusType = OpportunityVolunteerStatusType = {}));
64
+ exports.EMAIL_NOTE_MAX_LENGTH = 1000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.183",
3
+ "version": "0.0.185",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",