need4deed-sdk 0.0.21 → 0.0.23

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.
@@ -1,3 +1,4 @@
1
+ import { Id } from "..";
1
2
  import { OptionId } from "./common";
2
3
  import { ApiLanguage } from "./language";
3
4
  import { VolunteerStateTypeType } from "./volunteer";
@@ -53,14 +54,14 @@ export interface Opportunity {
53
54
  last_edited_time_notion?: string;
54
55
  }
55
56
  export interface ApiOpportunityGetList {
57
+ id: Id;
56
58
  title: string;
57
59
  volunteerType: VolunteerStateTypeType;
58
60
  statusOpportunity: OpportunityStatusType;
61
+ }
62
+ export interface ApiOpportunityGet extends ApiOpportunityGetList {
59
63
  languages: ApiLanguage[];
60
64
  activities: string[];
61
65
  skills: string[];
62
66
  location: string[];
63
67
  }
64
- export interface AliOpportunityGet extends ApiOpportunityGetList {
65
- statusMatch: OpportunityMatchStatus;
66
- }
@@ -1,4 +1,4 @@
1
- import { DocumentStatusType, Id, VolunteerStateMatchType, VolunteerStateType } from "../core";
1
+ import { DocumentStatusType, Id } from "../core";
2
2
  import { OptionId } from "./common";
3
3
  import { ApiLanguage } from "./language";
4
4
  import { ApiOpportunityGetList } from "./opportunity";
@@ -68,6 +68,29 @@ export declare enum VolunteerStateCGCType {
68
68
  UPLOADED = "uploaded",
69
69
  MISSING = "missing"
70
70
  }
71
+ export declare enum VolunteerStateType {
72
+ NEW = "New",
73
+ OPPORTUNITY_SENT = "Opportunity sent",
74
+ MATCHED = "Matched",
75
+ ACTIVE_REGULAR = "Active regular",
76
+ ACTIVE_ACCOMPANY = "Active accompany",
77
+ ACTIVE_FEST = "Active fest",
78
+ TO_REMATCH = "To rematch",
79
+ TEMP_INACTIVE = "Temp inactive",
80
+ INACTIVE = "Inactive"
81
+ }
82
+ export declare enum VolunteerStateMatchType {
83
+ NO_MATCHES = "no-matches",
84
+ PENDING_MATCH = "pending_match",
85
+ MATCHED = "matched",
86
+ NEEDS_REMATCH = "needs-rematch"
87
+ }
88
+ export declare enum VolunteerCommunicationType {
89
+ EMAIL = "email",
90
+ MOBILE_PHONE = "mobilePhone",
91
+ WHATSAPP = "whatsapp",
92
+ TELEGRAM = "telegram"
93
+ }
71
94
  export interface ApiVolunteerGetList {
72
95
  id: number;
73
96
  statusEngagement: VolunteerStateEngagementType;
@@ -90,6 +113,7 @@ export interface ApiVolunteerGet {
90
113
  statusType: VolunteerStateTypeType;
91
114
  statusMatch: VolunteerStateMatchType;
92
115
  statusCgcProcess: VolunteerStateCGCType;
116
+ preferredCommunicationType: VolunteerCommunicationType;
93
117
  createdAt: Date;
94
118
  updatedAt: Date;
95
119
  goodConductCertificate: DocumentStatusType;
@@ -1,6 +1,6 @@
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;
3
+ exports.VolunteerCommunicationType = exports.VolunteerStateMatchType = exports.VolunteerStateType = exports.VolunteerStateCGCType = exports.VolunteerStateTypeType = exports.VolunteerStateAppreciationType = exports.VolunteerStateCommunicationType = exports.VolunteerStateEngagementType = void 0;
4
4
  var VolunteerStateEngagementType;
5
5
  (function (VolunteerStateEngagementType) {
6
6
  VolunteerStateEngagementType["NEW"] = "new";
@@ -35,3 +35,29 @@ var VolunteerStateCGCType;
35
35
  VolunteerStateCGCType["UPLOADED"] = "uploaded";
36
36
  VolunteerStateCGCType["MISSING"] = "missing";
37
37
  })(VolunteerStateCGCType || (exports.VolunteerStateCGCType = VolunteerStateCGCType = {}));
38
+ var VolunteerStateType;
39
+ (function (VolunteerStateType) {
40
+ VolunteerStateType["NEW"] = "New";
41
+ VolunteerStateType["OPPORTUNITY_SENT"] = "Opportunity sent";
42
+ VolunteerStateType["MATCHED"] = "Matched";
43
+ VolunteerStateType["ACTIVE_REGULAR"] = "Active regular";
44
+ VolunteerStateType["ACTIVE_ACCOMPANY"] = "Active accompany";
45
+ VolunteerStateType["ACTIVE_FEST"] = "Active fest";
46
+ VolunteerStateType["TO_REMATCH"] = "To rematch";
47
+ VolunteerStateType["TEMP_INACTIVE"] = "Temp inactive";
48
+ VolunteerStateType["INACTIVE"] = "Inactive";
49
+ })(VolunteerStateType || (exports.VolunteerStateType = VolunteerStateType = {}));
50
+ var VolunteerStateMatchType;
51
+ (function (VolunteerStateMatchType) {
52
+ VolunteerStateMatchType["NO_MATCHES"] = "no-matches";
53
+ VolunteerStateMatchType["PENDING_MATCH"] = "pending_match";
54
+ VolunteerStateMatchType["MATCHED"] = "matched";
55
+ VolunteerStateMatchType["NEEDS_REMATCH"] = "needs-rematch";
56
+ })(VolunteerStateMatchType || (exports.VolunteerStateMatchType = VolunteerStateMatchType = {}));
57
+ var VolunteerCommunicationType;
58
+ (function (VolunteerCommunicationType) {
59
+ VolunteerCommunicationType["EMAIL"] = "email";
60
+ VolunteerCommunicationType["MOBILE_PHONE"] = "mobilePhone";
61
+ VolunteerCommunicationType["WHATSAPP"] = "whatsapp";
62
+ VolunteerCommunicationType["TELEGRAM"] = "telegram";
63
+ })(VolunteerCommunicationType || (exports.VolunteerCommunicationType = VolunteerCommunicationType = {}));
@@ -42,23 +42,6 @@ export declare enum TimedTextType {
42
42
  MATCHING = "matching"
43
43
  }
44
44
  export type Id = string | number;
45
- export declare enum VolunteerStateType {
46
- NEW = "New",
47
- OPPORTUNITY_SENT = "Opportunity sent",
48
- MATCHED = "Matched",
49
- ACTIVE_REGULAR = "Active regular",
50
- ACTIVE_ACCOMPANY = "Active accompany",
51
- ACTIVE_FEST = "Active fest",
52
- TO_REMATCH = "To rematch",
53
- TEMP_INACTIVE = "Temp inactive",
54
- INACTIVE = "Inactive"
55
- }
56
- export declare enum VolunteerStateMatchType {
57
- NO_MATCHES = "no-matches",
58
- PENDING_MATCH = "pending_match",
59
- MATCHED = "matched",
60
- NEEDS_REMATCH = "needs-rematch"
61
- }
62
45
  export declare enum SortOrder {
63
46
  NewToOld = "new-old",
64
47
  OldToNew = "old-new"
@@ -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.VolunteerStateMatchType = exports.VolunteerStateType = exports.TimedTextType = exports.DocumentStatusType = exports.HttpMethod = exports.LangPurpose = exports.LangProficiency = exports.Lang = void 0;
3
+ exports.QueryParamsKeys = exports.EntityTableName = exports.QueryParams = exports.SortOrder = 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";
@@ -50,25 +50,6 @@ var TimedTextType;
50
50
  TimedTextType["STATUS"] = "status";
51
51
  TimedTextType["MATCHING"] = "matching";
52
52
  })(TimedTextType || (exports.TimedTextType = TimedTextType = {}));
53
- var VolunteerStateType;
54
- (function (VolunteerStateType) {
55
- VolunteerStateType["NEW"] = "New";
56
- VolunteerStateType["OPPORTUNITY_SENT"] = "Opportunity sent";
57
- VolunteerStateType["MATCHED"] = "Matched";
58
- VolunteerStateType["ACTIVE_REGULAR"] = "Active regular";
59
- VolunteerStateType["ACTIVE_ACCOMPANY"] = "Active accompany";
60
- VolunteerStateType["ACTIVE_FEST"] = "Active fest";
61
- VolunteerStateType["TO_REMATCH"] = "To rematch";
62
- VolunteerStateType["TEMP_INACTIVE"] = "Temp inactive";
63
- VolunteerStateType["INACTIVE"] = "Inactive";
64
- })(VolunteerStateType || (exports.VolunteerStateType = VolunteerStateType = {}));
65
- var VolunteerStateMatchType;
66
- (function (VolunteerStateMatchType) {
67
- VolunteerStateMatchType["NO_MATCHES"] = "no-matches";
68
- VolunteerStateMatchType["PENDING_MATCH"] = "pending_match";
69
- VolunteerStateMatchType["MATCHED"] = "matched";
70
- VolunteerStateMatchType["NEEDS_REMATCH"] = "needs-rematch";
71
- })(VolunteerStateMatchType || (exports.VolunteerStateMatchType = VolunteerStateMatchType = {}));
72
53
  var SortOrder;
73
54
  (function (SortOrder) {
74
55
  SortOrder["NewToOld"] = "new-old";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",