need4deed-sdk 0.0.200 → 0.0.201
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.
|
@@ -205,4 +205,36 @@ export interface ApiVolunteerRegisterNew {
|
|
|
205
205
|
export interface ApiVolunteerSuggestionRequestPost {
|
|
206
206
|
opportunityId: number;
|
|
207
207
|
}
|
|
208
|
+
export declare const VOLUNTEER_IMPORT_MAX_ROWS = 500;
|
|
209
|
+
export interface ApiVolunteerImportRow {
|
|
210
|
+
firstName: string;
|
|
211
|
+
lastName?: string;
|
|
212
|
+
email: string;
|
|
213
|
+
phone?: string;
|
|
214
|
+
postcode: string;
|
|
215
|
+
}
|
|
216
|
+
/** POST /agent/:id/volunteer-import (admin): the NGO's existing volunteers, created owned by that NGO. Any invalid row rejects the whole import; dryRun reports without writing. */
|
|
217
|
+
export interface ApiVolunteerImportPost {
|
|
218
|
+
rows: ApiVolunteerImportRow[];
|
|
219
|
+
dryRun?: boolean;
|
|
220
|
+
}
|
|
221
|
+
export type VolunteerImportOutcome = "created" | "skipped" | "invalid";
|
|
222
|
+
export type VolunteerImportSkipReason = "already-volunteer" | "duplicate-in-import";
|
|
223
|
+
export interface ApiVolunteerImportRowResult {
|
|
224
|
+
/** 0-based index into rows */
|
|
225
|
+
row: number;
|
|
226
|
+
email: string;
|
|
227
|
+
outcome: VolunteerImportOutcome;
|
|
228
|
+
skipReason?: VolunteerImportSkipReason;
|
|
229
|
+
errors?: string[];
|
|
230
|
+
/** set once written; absent on a dry run */
|
|
231
|
+
volunteerId?: number;
|
|
232
|
+
}
|
|
233
|
+
export interface ApiVolunteerImportResult {
|
|
234
|
+
dryRun: boolean;
|
|
235
|
+
created: number;
|
|
236
|
+
skipped: number;
|
|
237
|
+
invalid: number;
|
|
238
|
+
rows: ApiVolunteerImportRowResult[];
|
|
239
|
+
}
|
|
208
240
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VolunteerCommunicationType = exports.VolunteerStateMatchType = exports.VolunteerStateType = exports.VolunteerStateCGCType = exports.VolunteerStateTypeType = exports.VolunteerStateAppreciationType = exports.VolunteerStateCommunicationType = exports.VolunteerStateEngagementType = void 0;
|
|
3
|
+
exports.VOLUNTEER_IMPORT_MAX_ROWS = exports.VolunteerCommunicationType = exports.VolunteerStateMatchType = exports.VolunteerStateType = exports.VolunteerStateCGCType = exports.VolunteerStateTypeType = exports.VolunteerStateAppreciationType = exports.VolunteerStateCommunicationType = exports.VolunteerStateEngagementType = void 0;
|
|
4
4
|
const person_1 = require("./person");
|
|
5
5
|
const profile_1 = require("./profile");
|
|
6
6
|
var VolunteerStateEngagementType;
|
|
@@ -57,3 +57,4 @@ var VolunteerStateMatchType;
|
|
|
57
57
|
VolunteerStateMatchType["PAST"] = "vol-past";
|
|
58
58
|
})(VolunteerStateMatchType || (exports.VolunteerStateMatchType = VolunteerStateMatchType = {}));
|
|
59
59
|
exports.VolunteerCommunicationType = person_1.PreferredCommunicationType;
|
|
60
|
+
exports.VOLUNTEER_IMPORT_MAX_ROWS = 500;
|