need4deed-sdk 0.0.19 → 0.0.21
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/comment.d.ts +8 -0
- package/dist/types/api/comment.js +2 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/index.js +1 -0
- package/dist/types/api/opportunity.d.ts +20 -1
- package/dist/types/api/opportunity.js +20 -1
- package/dist/types/api/time.d.ts +1 -0
- package/dist/types/api/volunteer.d.ts +32 -1
- package/dist/types/api/volunteer.js +35 -0
- package/dist/types/core.d.ts +0 -31
- package/dist/types/core.js +1 -37
- package/package.json +1 -1
package/dist/types/api/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./comment"), exports);
|
|
17
18
|
__exportStar(require("./common"), exports);
|
|
18
19
|
__exportStar(require("./event"), exports);
|
|
19
20
|
__exportStar(require("./language"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OptionId } from "./common";
|
|
2
2
|
import { ApiLanguage } from "./language";
|
|
3
|
+
import { VolunteerStateTypeType } from "./volunteer";
|
|
3
4
|
export declare enum OpportunityType {
|
|
4
5
|
GENERAL = "volunteering",
|
|
5
6
|
ACCOMPANYING = "accompanying"
|
|
@@ -9,6 +10,22 @@ export declare enum TranslatedIntoType {
|
|
|
9
10
|
ENGLISH_OK = "englishOk",
|
|
10
11
|
NO_TRANSLATION = "noTranslation"
|
|
11
12
|
}
|
|
13
|
+
export declare enum OpportunityStatusType {
|
|
14
|
+
NEW = "new",
|
|
15
|
+
ACTIVE = "active",
|
|
16
|
+
PAST = "past"
|
|
17
|
+
}
|
|
18
|
+
export declare enum OpportunityMatchStatus {
|
|
19
|
+
MATCHED = "matched",
|
|
20
|
+
NEED_REMATCH = "need_rematch",
|
|
21
|
+
UNMATCHED = "unmatched"
|
|
22
|
+
}
|
|
23
|
+
export declare enum OpportunityVolunteerStatusType {
|
|
24
|
+
SUGGESTED = "suggested",
|
|
25
|
+
MATCHED = "matched",
|
|
26
|
+
ACTIVE = "active",
|
|
27
|
+
PAST = "past"
|
|
28
|
+
}
|
|
12
29
|
export interface Opportunity {
|
|
13
30
|
title: string;
|
|
14
31
|
rac_email: string;
|
|
@@ -37,11 +54,13 @@ export interface Opportunity {
|
|
|
37
54
|
}
|
|
38
55
|
export interface ApiOpportunityGetList {
|
|
39
56
|
title: string;
|
|
40
|
-
|
|
57
|
+
volunteerType: VolunteerStateTypeType;
|
|
58
|
+
statusOpportunity: OpportunityStatusType;
|
|
41
59
|
languages: ApiLanguage[];
|
|
42
60
|
activities: string[];
|
|
43
61
|
skills: string[];
|
|
44
62
|
location: string[];
|
|
45
63
|
}
|
|
46
64
|
export interface AliOpportunityGet extends ApiOpportunityGetList {
|
|
65
|
+
statusMatch: OpportunityMatchStatus;
|
|
47
66
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TranslatedIntoType = exports.OpportunityType = void 0;
|
|
3
|
+
exports.OpportunityVolunteerStatusType = exports.OpportunityMatchStatus = exports.OpportunityStatusType = exports.TranslatedIntoType = exports.OpportunityType = void 0;
|
|
4
4
|
var OpportunityType;
|
|
5
5
|
(function (OpportunityType) {
|
|
6
6
|
OpportunityType["GENERAL"] = "volunteering";
|
|
@@ -12,3 +12,22 @@ var TranslatedIntoType;
|
|
|
12
12
|
TranslatedIntoType["ENGLISH_OK"] = "englishOk";
|
|
13
13
|
TranslatedIntoType["NO_TRANSLATION"] = "noTranslation";
|
|
14
14
|
})(TranslatedIntoType || (exports.TranslatedIntoType = TranslatedIntoType = {}));
|
|
15
|
+
var OpportunityStatusType;
|
|
16
|
+
(function (OpportunityStatusType) {
|
|
17
|
+
OpportunityStatusType["NEW"] = "new";
|
|
18
|
+
OpportunityStatusType["ACTIVE"] = "active";
|
|
19
|
+
OpportunityStatusType["PAST"] = "past";
|
|
20
|
+
})(OpportunityStatusType || (exports.OpportunityStatusType = OpportunityStatusType = {}));
|
|
21
|
+
var OpportunityMatchStatus;
|
|
22
|
+
(function (OpportunityMatchStatus) {
|
|
23
|
+
OpportunityMatchStatus["MATCHED"] = "matched";
|
|
24
|
+
OpportunityMatchStatus["NEED_REMATCH"] = "need_rematch";
|
|
25
|
+
OpportunityMatchStatus["UNMATCHED"] = "unmatched";
|
|
26
|
+
})(OpportunityMatchStatus || (exports.OpportunityMatchStatus = OpportunityMatchStatus = {}));
|
|
27
|
+
var OpportunityVolunteerStatusType;
|
|
28
|
+
(function (OpportunityVolunteerStatusType) {
|
|
29
|
+
OpportunityVolunteerStatusType["SUGGESTED"] = "suggested";
|
|
30
|
+
OpportunityVolunteerStatusType["MATCHED"] = "matched";
|
|
31
|
+
OpportunityVolunteerStatusType["ACTIVE"] = "active";
|
|
32
|
+
OpportunityVolunteerStatusType["PAST"] = "past";
|
|
33
|
+
})(OpportunityVolunteerStatusType || (exports.OpportunityVolunteerStatusType = OpportunityVolunteerStatusType = {}));
|
package/dist/types/api/time.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { DocumentStatusType, Id,
|
|
1
|
+
import { DocumentStatusType, Id, VolunteerStateMatchType, VolunteerStateType } from "../core";
|
|
2
2
|
import { OptionId } from "./common";
|
|
3
3
|
import { ApiLanguage } from "./language";
|
|
4
|
+
import { ApiOpportunityGetList } from "./opportunity";
|
|
4
5
|
import { OptionItem } from "./option";
|
|
5
6
|
import { ApiPersonGet } from "./person";
|
|
6
7
|
import { Availability, TimedText } from "./time";
|
|
@@ -38,6 +39,35 @@ export interface VolunteerFormData {
|
|
|
38
39
|
leadFrom: OptionId[];
|
|
39
40
|
comments: string;
|
|
40
41
|
}
|
|
42
|
+
export declare enum VolunteerStateEngagementType {
|
|
43
|
+
NEW = "new",
|
|
44
|
+
ACTIVE = "active",
|
|
45
|
+
AVAILABLE = "available",
|
|
46
|
+
TEMP_UNAVAILABLE = "temp-unavailable",
|
|
47
|
+
INACTIVE = "inactive",
|
|
48
|
+
UNRESPONSIVE = "unresponsive"
|
|
49
|
+
}
|
|
50
|
+
export declare enum VolunteerStateCommunicationType {
|
|
51
|
+
CALLED = "called",
|
|
52
|
+
EMAIL_SENT = "email-sent",
|
|
53
|
+
BRIEFED = "briefed",
|
|
54
|
+
TRIED_CALL = "tried-call",
|
|
55
|
+
NOT_RESPONDING = "not-responding"
|
|
56
|
+
}
|
|
57
|
+
export declare enum VolunteerStateAppreciationType {
|
|
58
|
+
T_SHIRT = "t-shirt",
|
|
59
|
+
BENEFIT_CARD = "benefit-card",
|
|
60
|
+
TOTE_BAG = "tote-bag"
|
|
61
|
+
}
|
|
62
|
+
export declare enum VolunteerStateTypeType {
|
|
63
|
+
ACCOMPANYING = "accompanying",
|
|
64
|
+
REGULAR = "regular",
|
|
65
|
+
EVENTS = "events"
|
|
66
|
+
}
|
|
67
|
+
export declare enum VolunteerStateCGCType {
|
|
68
|
+
UPLOADED = "uploaded",
|
|
69
|
+
MISSING = "missing"
|
|
70
|
+
}
|
|
41
71
|
export interface ApiVolunteerGetList {
|
|
42
72
|
id: number;
|
|
43
73
|
statusEngagement: VolunteerStateEngagementType;
|
|
@@ -68,6 +98,7 @@ export interface ApiVolunteerGet {
|
|
|
68
98
|
infoExperience: string;
|
|
69
99
|
timelineLogs: TimedText[];
|
|
70
100
|
comments: TimedText[];
|
|
101
|
+
opportunities: ApiOpportunityGetList[];
|
|
71
102
|
opportunitiesApplied: OptionItem[];
|
|
72
103
|
opportunitiesMatched: OptionItem[];
|
|
73
104
|
languages: ApiLanguage[];
|
|
@@ -1,2 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VolunteerStateCGCType = exports.VolunteerStateTypeType = exports.VolunteerStateAppreciationType = exports.VolunteerStateCommunicationType = exports.VolunteerStateEngagementType = void 0;
|
|
4
|
+
var VolunteerStateEngagementType;
|
|
5
|
+
(function (VolunteerStateEngagementType) {
|
|
6
|
+
VolunteerStateEngagementType["NEW"] = "new";
|
|
7
|
+
VolunteerStateEngagementType["ACTIVE"] = "active";
|
|
8
|
+
VolunteerStateEngagementType["AVAILABLE"] = "available";
|
|
9
|
+
VolunteerStateEngagementType["TEMP_UNAVAILABLE"] = "temp-unavailable";
|
|
10
|
+
VolunteerStateEngagementType["INACTIVE"] = "inactive";
|
|
11
|
+
VolunteerStateEngagementType["UNRESPONSIVE"] = "unresponsive";
|
|
12
|
+
})(VolunteerStateEngagementType || (exports.VolunteerStateEngagementType = VolunteerStateEngagementType = {}));
|
|
13
|
+
var VolunteerStateCommunicationType;
|
|
14
|
+
(function (VolunteerStateCommunicationType) {
|
|
15
|
+
VolunteerStateCommunicationType["CALLED"] = "called";
|
|
16
|
+
VolunteerStateCommunicationType["EMAIL_SENT"] = "email-sent";
|
|
17
|
+
VolunteerStateCommunicationType["BRIEFED"] = "briefed";
|
|
18
|
+
VolunteerStateCommunicationType["TRIED_CALL"] = "tried-call";
|
|
19
|
+
VolunteerStateCommunicationType["NOT_RESPONDING"] = "not-responding";
|
|
20
|
+
})(VolunteerStateCommunicationType || (exports.VolunteerStateCommunicationType = VolunteerStateCommunicationType = {}));
|
|
21
|
+
var VolunteerStateAppreciationType;
|
|
22
|
+
(function (VolunteerStateAppreciationType) {
|
|
23
|
+
VolunteerStateAppreciationType["T_SHIRT"] = "t-shirt";
|
|
24
|
+
VolunteerStateAppreciationType["BENEFIT_CARD"] = "benefit-card";
|
|
25
|
+
VolunteerStateAppreciationType["TOTE_BAG"] = "tote-bag";
|
|
26
|
+
})(VolunteerStateAppreciationType || (exports.VolunteerStateAppreciationType = VolunteerStateAppreciationType = {}));
|
|
27
|
+
var VolunteerStateTypeType;
|
|
28
|
+
(function (VolunteerStateTypeType) {
|
|
29
|
+
VolunteerStateTypeType["ACCOMPANYING"] = "accompanying";
|
|
30
|
+
VolunteerStateTypeType["REGULAR"] = "regular";
|
|
31
|
+
VolunteerStateTypeType["EVENTS"] = "events";
|
|
32
|
+
})(VolunteerStateTypeType || (exports.VolunteerStateTypeType = VolunteerStateTypeType = {}));
|
|
33
|
+
var VolunteerStateCGCType;
|
|
34
|
+
(function (VolunteerStateCGCType) {
|
|
35
|
+
VolunteerStateCGCType["UPLOADED"] = "uploaded";
|
|
36
|
+
VolunteerStateCGCType["MISSING"] = "missing";
|
|
37
|
+
})(VolunteerStateCGCType || (exports.VolunteerStateCGCType = VolunteerStateCGCType = {}));
|
package/dist/types/core.d.ts
CHANGED
|
@@ -53,43 +53,12 @@ export declare enum VolunteerStateType {
|
|
|
53
53
|
TEMP_INACTIVE = "Temp inactive",
|
|
54
54
|
INACTIVE = "Inactive"
|
|
55
55
|
}
|
|
56
|
-
export declare enum VolunteerStateEngagementType {
|
|
57
|
-
NEW = "new",
|
|
58
|
-
ACTIVE = "active",
|
|
59
|
-
AVAILABLE = "available",
|
|
60
|
-
TEMP_UNAVAILABLE = "temp-unavailable",
|
|
61
|
-
INACTIVE = "inactive",
|
|
62
|
-
UNRESPONSIVE = "unresponsive"
|
|
63
|
-
}
|
|
64
|
-
export declare enum VolunteerStateCommunicationType {
|
|
65
|
-
CALLED = "called",
|
|
66
|
-
EMAIL_SENT = "email-sent",
|
|
67
|
-
BRIEFED = "briefed",
|
|
68
|
-
TRIED_CALL = "tried-call",
|
|
69
|
-
NOT_RESPONDING = "not-responding"
|
|
70
|
-
}
|
|
71
|
-
export declare enum VolunteerStateAppreciationType {
|
|
72
|
-
T_SHIRT = "t-shirt",
|
|
73
|
-
BENEFIT_CARD = "benefit-card",
|
|
74
|
-
TOTE_BAG = "tote-bag"
|
|
75
|
-
}
|
|
76
|
-
export declare enum VolunteerStateTypeType {
|
|
77
|
-
ACCOMPANYING = "accompanying",
|
|
78
|
-
REGULAR = "regular",
|
|
79
|
-
EVENT = "event",
|
|
80
|
-
FESTIVAL = "festival",
|
|
81
|
-
WEEKEND_ONLY = "weekend-only"
|
|
82
|
-
}
|
|
83
56
|
export declare enum VolunteerStateMatchType {
|
|
84
57
|
NO_MATCHES = "no-matches",
|
|
85
58
|
PENDING_MATCH = "pending_match",
|
|
86
59
|
MATCHED = "matched",
|
|
87
60
|
NEEDS_REMATCH = "needs-rematch"
|
|
88
61
|
}
|
|
89
|
-
export declare enum VolunteerStateCGCType {
|
|
90
|
-
UPLOADED = "uploaded",
|
|
91
|
-
MISSING = "missing"
|
|
92
|
-
}
|
|
93
62
|
export declare enum SortOrder {
|
|
94
63
|
NewToOld = "new-old",
|
|
95
64
|
OldToNew = "old-new"
|
package/dist/types/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryParamsKeys = exports.EntityTableName = exports.QueryParams = exports.SortOrder = exports.
|
|
3
|
+
exports.QueryParamsKeys = exports.EntityTableName = exports.QueryParams = exports.SortOrder = exports.VolunteerStateMatchType = exports.VolunteerStateType = exports.TimedTextType = exports.DocumentStatusType = exports.HttpMethod = exports.LangPurpose = exports.LangProficiency = exports.Lang = void 0;
|
|
4
4
|
var Lang;
|
|
5
5
|
(function (Lang) {
|
|
6
6
|
Lang["EN"] = "en";
|
|
@@ -62,37 +62,6 @@ var VolunteerStateType;
|
|
|
62
62
|
VolunteerStateType["TEMP_INACTIVE"] = "Temp inactive";
|
|
63
63
|
VolunteerStateType["INACTIVE"] = "Inactive";
|
|
64
64
|
})(VolunteerStateType || (exports.VolunteerStateType = VolunteerStateType = {}));
|
|
65
|
-
var VolunteerStateEngagementType;
|
|
66
|
-
(function (VolunteerStateEngagementType) {
|
|
67
|
-
VolunteerStateEngagementType["NEW"] = "new";
|
|
68
|
-
VolunteerStateEngagementType["ACTIVE"] = "active";
|
|
69
|
-
VolunteerStateEngagementType["AVAILABLE"] = "available";
|
|
70
|
-
VolunteerStateEngagementType["TEMP_UNAVAILABLE"] = "temp-unavailable";
|
|
71
|
-
VolunteerStateEngagementType["INACTIVE"] = "inactive";
|
|
72
|
-
VolunteerStateEngagementType["UNRESPONSIVE"] = "unresponsive";
|
|
73
|
-
})(VolunteerStateEngagementType || (exports.VolunteerStateEngagementType = VolunteerStateEngagementType = {}));
|
|
74
|
-
var VolunteerStateCommunicationType;
|
|
75
|
-
(function (VolunteerStateCommunicationType) {
|
|
76
|
-
VolunteerStateCommunicationType["CALLED"] = "called";
|
|
77
|
-
VolunteerStateCommunicationType["EMAIL_SENT"] = "email-sent";
|
|
78
|
-
VolunteerStateCommunicationType["BRIEFED"] = "briefed";
|
|
79
|
-
VolunteerStateCommunicationType["TRIED_CALL"] = "tried-call";
|
|
80
|
-
VolunteerStateCommunicationType["NOT_RESPONDING"] = "not-responding";
|
|
81
|
-
})(VolunteerStateCommunicationType || (exports.VolunteerStateCommunicationType = VolunteerStateCommunicationType = {}));
|
|
82
|
-
var VolunteerStateAppreciationType;
|
|
83
|
-
(function (VolunteerStateAppreciationType) {
|
|
84
|
-
VolunteerStateAppreciationType["T_SHIRT"] = "t-shirt";
|
|
85
|
-
VolunteerStateAppreciationType["BENEFIT_CARD"] = "benefit-card";
|
|
86
|
-
VolunteerStateAppreciationType["TOTE_BAG"] = "tote-bag";
|
|
87
|
-
})(VolunteerStateAppreciationType || (exports.VolunteerStateAppreciationType = VolunteerStateAppreciationType = {}));
|
|
88
|
-
var VolunteerStateTypeType;
|
|
89
|
-
(function (VolunteerStateTypeType) {
|
|
90
|
-
VolunteerStateTypeType["ACCOMPANYING"] = "accompanying";
|
|
91
|
-
VolunteerStateTypeType["REGULAR"] = "regular";
|
|
92
|
-
VolunteerStateTypeType["EVENT"] = "event";
|
|
93
|
-
VolunteerStateTypeType["FESTIVAL"] = "festival";
|
|
94
|
-
VolunteerStateTypeType["WEEKEND_ONLY"] = "weekend-only";
|
|
95
|
-
})(VolunteerStateTypeType || (exports.VolunteerStateTypeType = VolunteerStateTypeType = {}));
|
|
96
65
|
var VolunteerStateMatchType;
|
|
97
66
|
(function (VolunteerStateMatchType) {
|
|
98
67
|
VolunteerStateMatchType["NO_MATCHES"] = "no-matches";
|
|
@@ -100,11 +69,6 @@ var VolunteerStateMatchType;
|
|
|
100
69
|
VolunteerStateMatchType["MATCHED"] = "matched";
|
|
101
70
|
VolunteerStateMatchType["NEEDS_REMATCH"] = "needs-rematch";
|
|
102
71
|
})(VolunteerStateMatchType || (exports.VolunteerStateMatchType = VolunteerStateMatchType = {}));
|
|
103
|
-
var VolunteerStateCGCType;
|
|
104
|
-
(function (VolunteerStateCGCType) {
|
|
105
|
-
VolunteerStateCGCType["UPLOADED"] = "uploaded";
|
|
106
|
-
VolunteerStateCGCType["MISSING"] = "missing";
|
|
107
|
-
})(VolunteerStateCGCType || (exports.VolunteerStateCGCType = VolunteerStateCGCType = {}));
|
|
108
72
|
var SortOrder;
|
|
109
73
|
(function (SortOrder) {
|
|
110
74
|
SortOrder["NewToOld"] = "new-old";
|