need4deed-sdk 0.0.67 → 0.0.69
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.
- package/dist/types/api/agent.d.ts +12 -11
- package/dist/types/api/agent.js +10 -10
- package/dist/types/api/communication.d.ts +7 -4
- package/dist/types/api/communication.js +0 -1
- package/dist/types/api/opportunity.d.ts +12 -12
- package/dist/types/api/opportunity.js +12 -12
- package/dist/types/api/volunteer.d.ts +10 -10
- package/dist/types/api/volunteer.js +10 -10
- package/package.json +1 -1
|
@@ -29,15 +29,15 @@ export declare enum AgentRoleType {
|
|
|
29
29
|
OTHER = "other"
|
|
30
30
|
}
|
|
31
31
|
export declare enum AgentEngagementStatusType {
|
|
32
|
-
NEW = "new",
|
|
33
|
-
ACTIVE = "active",
|
|
34
|
-
UNRESPONSIVE = "unresponsive",
|
|
35
|
-
INACTIVE = "inactive"
|
|
32
|
+
NEW = "agent-new",
|
|
33
|
+
ACTIVE = "agent-active",
|
|
34
|
+
UNRESPONSIVE = "agent-unresponsive",
|
|
35
|
+
INACTIVE = "agent-inactive"
|
|
36
36
|
}
|
|
37
37
|
export declare enum AgentVolunteerSearchType {
|
|
38
|
-
SEARCHING = "searching",
|
|
39
|
-
NOT_NEEDED = "not-needed",
|
|
40
|
-
VOLUNTEERS_FOUND = "volunteers-found"
|
|
38
|
+
SEARCHING = "agent-searching",
|
|
39
|
+
NOT_NEEDED = "agent-not-needed",
|
|
40
|
+
VOLUNTEERS_FOUND = "agent-volunteers-found"
|
|
41
41
|
}
|
|
42
42
|
export declare enum AgentServiceType {
|
|
43
43
|
CHILDCARE = "childcare",
|
|
@@ -52,9 +52,9 @@ export declare enum AgentServiceType {
|
|
|
52
52
|
YOUTH = "youth"
|
|
53
53
|
}
|
|
54
54
|
export declare enum AgentTrustType {
|
|
55
|
-
HIGH = "high",
|
|
56
|
-
LOW = "low",
|
|
57
|
-
UNKNOWN = "unknown"
|
|
55
|
+
HIGH = "agent-high",
|
|
56
|
+
LOW = "agent-low",
|
|
57
|
+
UNKNOWN = "agent-unknown"
|
|
58
58
|
}
|
|
59
59
|
export interface AgentDetails {
|
|
60
60
|
about: string;
|
|
@@ -68,6 +68,7 @@ export interface AgentDetails {
|
|
|
68
68
|
export interface ApiRepresentativeGet extends ApiPersonGet {
|
|
69
69
|
role: AgentRoleType;
|
|
70
70
|
}
|
|
71
|
+
export type ApiRepresentativePatch = Partial<ApiRepresentativeGet>;
|
|
71
72
|
export interface ApiAgentGetList {
|
|
72
73
|
id: number;
|
|
73
74
|
title: string;
|
|
@@ -80,7 +81,7 @@ export interface ApiAgentGet extends ApiAgentGetList {
|
|
|
80
81
|
createdAt: Date;
|
|
81
82
|
updatedAt?: Date;
|
|
82
83
|
operator?: string;
|
|
83
|
-
|
|
84
|
+
representative?: ApiRepresentativeGet;
|
|
84
85
|
serviceType?: AgentServiceType[];
|
|
85
86
|
trustLevel: AgentTrustType;
|
|
86
87
|
statusEngagement: AgentEngagementStatusType;
|
package/dist/types/api/agent.js
CHANGED
|
@@ -32,16 +32,16 @@ var AgentRoleType;
|
|
|
32
32
|
})(AgentRoleType || (exports.AgentRoleType = AgentRoleType = {}));
|
|
33
33
|
var AgentEngagementStatusType;
|
|
34
34
|
(function (AgentEngagementStatusType) {
|
|
35
|
-
AgentEngagementStatusType["NEW"] = "new";
|
|
36
|
-
AgentEngagementStatusType["ACTIVE"] = "active";
|
|
37
|
-
AgentEngagementStatusType["UNRESPONSIVE"] = "unresponsive";
|
|
38
|
-
AgentEngagementStatusType["INACTIVE"] = "inactive";
|
|
35
|
+
AgentEngagementStatusType["NEW"] = "agent-new";
|
|
36
|
+
AgentEngagementStatusType["ACTIVE"] = "agent-active";
|
|
37
|
+
AgentEngagementStatusType["UNRESPONSIVE"] = "agent-unresponsive";
|
|
38
|
+
AgentEngagementStatusType["INACTIVE"] = "agent-inactive";
|
|
39
39
|
})(AgentEngagementStatusType || (exports.AgentEngagementStatusType = AgentEngagementStatusType = {}));
|
|
40
40
|
var AgentVolunteerSearchType;
|
|
41
41
|
(function (AgentVolunteerSearchType) {
|
|
42
|
-
AgentVolunteerSearchType["SEARCHING"] = "searching";
|
|
43
|
-
AgentVolunteerSearchType["NOT_NEEDED"] = "not-needed";
|
|
44
|
-
AgentVolunteerSearchType["VOLUNTEERS_FOUND"] = "volunteers-found";
|
|
42
|
+
AgentVolunteerSearchType["SEARCHING"] = "agent-searching";
|
|
43
|
+
AgentVolunteerSearchType["NOT_NEEDED"] = "agent-not-needed";
|
|
44
|
+
AgentVolunteerSearchType["VOLUNTEERS_FOUND"] = "agent-volunteers-found";
|
|
45
45
|
})(AgentVolunteerSearchType || (exports.AgentVolunteerSearchType = AgentVolunteerSearchType = {}));
|
|
46
46
|
var AgentServiceType;
|
|
47
47
|
(function (AgentServiceType) {
|
|
@@ -58,7 +58,7 @@ var AgentServiceType;
|
|
|
58
58
|
})(AgentServiceType || (exports.AgentServiceType = AgentServiceType = {}));
|
|
59
59
|
var AgentTrustType;
|
|
60
60
|
(function (AgentTrustType) {
|
|
61
|
-
AgentTrustType["HIGH"] = "high";
|
|
62
|
-
AgentTrustType["LOW"] = "low";
|
|
63
|
-
AgentTrustType["UNKNOWN"] = "unknown";
|
|
61
|
+
AgentTrustType["HIGH"] = "agent-high";
|
|
62
|
+
AgentTrustType["LOW"] = "agent-low";
|
|
63
|
+
AgentTrustType["UNKNOWN"] = "agent-unknown";
|
|
64
64
|
})(AgentTrustType || (exports.AgentTrustType = AgentTrustType = {}));
|
|
@@ -20,16 +20,19 @@ export declare enum CommunicationType {
|
|
|
20
20
|
STATUS_UPDATE = "status-update",
|
|
21
21
|
POST_FOLLOWUP = "post-match-followup"
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface ApiCommunicationPost {
|
|
24
24
|
contactType: ContactType;
|
|
25
25
|
contactMethod: ContactMethodType;
|
|
26
26
|
communicationType: CommunicationType;
|
|
27
27
|
date: Date;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type ApiCommunicationPatch = Partial<ApiCommunicationPost>;
|
|
30
|
+
export interface ApiCommunicationGet extends ApiCommunicationPost {
|
|
30
31
|
id: number;
|
|
31
|
-
volunteerId
|
|
32
|
+
volunteerId?: number;
|
|
33
|
+
agentId?: number;
|
|
32
34
|
userId: number;
|
|
33
35
|
}
|
|
34
|
-
export interface
|
|
36
|
+
export interface ApiVolunteerCommunicationPost extends ApiCommunicationPost {
|
|
35
37
|
}
|
|
38
|
+
export type ApiVolunteerCommunicationPatch = ApiCommunicationPatch;
|
|
@@ -21,22 +21,22 @@ export declare enum TranslatedIntoType {
|
|
|
21
21
|
NO_TRANSLATION = "noTranslation"
|
|
22
22
|
}
|
|
23
23
|
export declare enum OpportunityStatusType {
|
|
24
|
-
NEW = "new",
|
|
25
|
-
SEARCHING = "searching",
|
|
26
|
-
ACTIVE = "active",
|
|
27
|
-
PAST = "past"
|
|
24
|
+
NEW = "opp-new",
|
|
25
|
+
SEARCHING = "opp-searching",
|
|
26
|
+
ACTIVE = "opp-active",
|
|
27
|
+
PAST = "opp-past"
|
|
28
28
|
}
|
|
29
29
|
export declare enum OpportunityMatchStatus {
|
|
30
|
-
PENDING_MATCH = "pending-match",
|
|
31
|
-
MATCHED = "matched",
|
|
32
|
-
NEEDS_REMATCH = "needs-rematch",
|
|
33
|
-
UNMATCHED = "unmatched"
|
|
30
|
+
PENDING_MATCH = "opp-pending-match",
|
|
31
|
+
MATCHED = "opp-matched",
|
|
32
|
+
NEEDS_REMATCH = "opp-needs-rematch",
|
|
33
|
+
UNMATCHED = "opp-unmatched"
|
|
34
34
|
}
|
|
35
35
|
export declare enum OpportunityVolunteerStatusType {
|
|
36
|
-
PENDING = "pending",
|
|
37
|
-
MATCHED = "matched",
|
|
38
|
-
ACTIVE = "active",
|
|
39
|
-
PAST = "past"
|
|
36
|
+
PENDING = "opp-pending",
|
|
37
|
+
MATCHED = "opp-matched",
|
|
38
|
+
ACTIVE = "opp-active",
|
|
39
|
+
PAST = "opp-past"
|
|
40
40
|
}
|
|
41
41
|
export interface OpportunityFormData {
|
|
42
42
|
title: string;
|
|
@@ -22,22 +22,22 @@ var TranslatedIntoType;
|
|
|
22
22
|
})(TranslatedIntoType || (exports.TranslatedIntoType = TranslatedIntoType = {}));
|
|
23
23
|
var OpportunityStatusType;
|
|
24
24
|
(function (OpportunityStatusType) {
|
|
25
|
-
OpportunityStatusType["NEW"] = "new";
|
|
26
|
-
OpportunityStatusType["SEARCHING"] = "searching";
|
|
27
|
-
OpportunityStatusType["ACTIVE"] = "active";
|
|
28
|
-
OpportunityStatusType["PAST"] = "past";
|
|
25
|
+
OpportunityStatusType["NEW"] = "opp-new";
|
|
26
|
+
OpportunityStatusType["SEARCHING"] = "opp-searching";
|
|
27
|
+
OpportunityStatusType["ACTIVE"] = "opp-active";
|
|
28
|
+
OpportunityStatusType["PAST"] = "opp-past";
|
|
29
29
|
})(OpportunityStatusType || (exports.OpportunityStatusType = OpportunityStatusType = {}));
|
|
30
30
|
var OpportunityMatchStatus;
|
|
31
31
|
(function (OpportunityMatchStatus) {
|
|
32
|
-
OpportunityMatchStatus["PENDING_MATCH"] = "pending-match";
|
|
33
|
-
OpportunityMatchStatus["MATCHED"] = "matched";
|
|
34
|
-
OpportunityMatchStatus["NEEDS_REMATCH"] = "needs-rematch";
|
|
35
|
-
OpportunityMatchStatus["UNMATCHED"] = "unmatched";
|
|
32
|
+
OpportunityMatchStatus["PENDING_MATCH"] = "opp-pending-match";
|
|
33
|
+
OpportunityMatchStatus["MATCHED"] = "opp-matched";
|
|
34
|
+
OpportunityMatchStatus["NEEDS_REMATCH"] = "opp-needs-rematch";
|
|
35
|
+
OpportunityMatchStatus["UNMATCHED"] = "opp-unmatched";
|
|
36
36
|
})(OpportunityMatchStatus || (exports.OpportunityMatchStatus = OpportunityMatchStatus = {}));
|
|
37
37
|
var OpportunityVolunteerStatusType;
|
|
38
38
|
(function (OpportunityVolunteerStatusType) {
|
|
39
|
-
OpportunityVolunteerStatusType["PENDING"] = "pending";
|
|
40
|
-
OpportunityVolunteerStatusType["MATCHED"] = "matched";
|
|
41
|
-
OpportunityVolunteerStatusType["ACTIVE"] = "active";
|
|
42
|
-
OpportunityVolunteerStatusType["PAST"] = "past";
|
|
39
|
+
OpportunityVolunteerStatusType["PENDING"] = "opp-pending";
|
|
40
|
+
OpportunityVolunteerStatusType["MATCHED"] = "opp-matched";
|
|
41
|
+
OpportunityVolunteerStatusType["ACTIVE"] = "opp-active";
|
|
42
|
+
OpportunityVolunteerStatusType["PAST"] = "opp-past";
|
|
43
43
|
})(OpportunityVolunteerStatusType || (exports.OpportunityVolunteerStatusType = OpportunityVolunteerStatusType = {}));
|
|
@@ -60,12 +60,12 @@ export interface VolunteerFormData {
|
|
|
60
60
|
comments: string;
|
|
61
61
|
}
|
|
62
62
|
export declare enum VolunteerStateEngagementType {
|
|
63
|
-
NEW = "new",
|
|
64
|
-
ACTIVE = "active",
|
|
65
|
-
AVAILABLE = "available",
|
|
66
|
-
TEMP_UNAVAILABLE = "temp-unavailable",
|
|
67
|
-
INACTIVE = "inactive",
|
|
68
|
-
UNRESPONSIVE = "unresponsive"
|
|
63
|
+
NEW = "vol-new",
|
|
64
|
+
ACTIVE = "vol-active",
|
|
65
|
+
AVAILABLE = "vol-available",
|
|
66
|
+
TEMP_UNAVAILABLE = "vol-temp-unavailable",
|
|
67
|
+
INACTIVE = "vol-inactive",
|
|
68
|
+
UNRESPONSIVE = "vol-unresponsive"
|
|
69
69
|
}
|
|
70
70
|
export declare enum VolunteerStateCommunicationType {
|
|
71
71
|
CALLED = "called",
|
|
@@ -97,10 +97,10 @@ export declare enum VolunteerStateType {
|
|
|
97
97
|
INACTIVE = "Inactive"
|
|
98
98
|
}
|
|
99
99
|
export declare enum VolunteerStateMatchType {
|
|
100
|
-
NO_MATCHES = "no-matches",
|
|
101
|
-
PENDING_MATCH = "pending-match",
|
|
102
|
-
MATCHED = "matched",
|
|
103
|
-
NEEDS_REMATCH = "needs-rematch"
|
|
100
|
+
NO_MATCHES = "vol-no-matches",
|
|
101
|
+
PENDING_MATCH = "vol-pending-match",
|
|
102
|
+
MATCHED = "vol-matched",
|
|
103
|
+
NEEDS_REMATCH = "vol-needs-rematch"
|
|
104
104
|
}
|
|
105
105
|
export declare const VolunteerCommunicationType: typeof PreferredCommunicationType;
|
|
106
106
|
export type VolunteerCommunicationType = PreferredCommunicationType;
|
|
@@ -5,12 +5,12 @@ const person_1 = require("./person");
|
|
|
5
5
|
const profile_1 = require("./profile");
|
|
6
6
|
var VolunteerStateEngagementType;
|
|
7
7
|
(function (VolunteerStateEngagementType) {
|
|
8
|
-
VolunteerStateEngagementType["NEW"] = "new";
|
|
9
|
-
VolunteerStateEngagementType["ACTIVE"] = "active";
|
|
10
|
-
VolunteerStateEngagementType["AVAILABLE"] = "available";
|
|
11
|
-
VolunteerStateEngagementType["TEMP_UNAVAILABLE"] = "temp-unavailable";
|
|
12
|
-
VolunteerStateEngagementType["INACTIVE"] = "inactive";
|
|
13
|
-
VolunteerStateEngagementType["UNRESPONSIVE"] = "unresponsive";
|
|
8
|
+
VolunteerStateEngagementType["NEW"] = "vol-new";
|
|
9
|
+
VolunteerStateEngagementType["ACTIVE"] = "vol-active";
|
|
10
|
+
VolunteerStateEngagementType["AVAILABLE"] = "vol-available";
|
|
11
|
+
VolunteerStateEngagementType["TEMP_UNAVAILABLE"] = "vol-temp-unavailable";
|
|
12
|
+
VolunteerStateEngagementType["INACTIVE"] = "vol-inactive";
|
|
13
|
+
VolunteerStateEngagementType["UNRESPONSIVE"] = "vol-unresponsive";
|
|
14
14
|
})(VolunteerStateEngagementType || (exports.VolunteerStateEngagementType = VolunteerStateEngagementType = {}));
|
|
15
15
|
var VolunteerStateCommunicationType;
|
|
16
16
|
(function (VolunteerStateCommunicationType) {
|
|
@@ -46,9 +46,9 @@ var VolunteerStateType;
|
|
|
46
46
|
})(VolunteerStateType || (exports.VolunteerStateType = VolunteerStateType = {}));
|
|
47
47
|
var VolunteerStateMatchType;
|
|
48
48
|
(function (VolunteerStateMatchType) {
|
|
49
|
-
VolunteerStateMatchType["NO_MATCHES"] = "no-matches";
|
|
50
|
-
VolunteerStateMatchType["PENDING_MATCH"] = "pending-match";
|
|
51
|
-
VolunteerStateMatchType["MATCHED"] = "matched";
|
|
52
|
-
VolunteerStateMatchType["NEEDS_REMATCH"] = "needs-rematch";
|
|
49
|
+
VolunteerStateMatchType["NO_MATCHES"] = "vol-no-matches";
|
|
50
|
+
VolunteerStateMatchType["PENDING_MATCH"] = "vol-pending-match";
|
|
51
|
+
VolunteerStateMatchType["MATCHED"] = "vol-matched";
|
|
52
|
+
VolunteerStateMatchType["NEEDS_REMATCH"] = "vol-needs-rematch";
|
|
53
53
|
})(VolunteerStateMatchType || (exports.VolunteerStateMatchType = VolunteerStateMatchType = {}));
|
|
54
54
|
exports.VolunteerCommunicationType = person_1.PreferredCommunicationType;
|