need4deed-sdk 0.0.85 → 0.0.86

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/README.md CHANGED
@@ -1 +1,3 @@
1
- # sdk
1
+ # sdk
2
+
3
+ Shared types for need4deed.org
@@ -11,7 +11,8 @@ export declare enum ContactMethodType {
11
11
  WHATSAPP = "whatsapp",
12
12
  SIGNAL = "signal",
13
13
  SMS = "sms",
14
- VOICENOTE = "voicenote"
14
+ VOICENOTE = "voicenote",
15
+ VIDEO_CALL = "video-call"
15
16
  }
16
17
  export declare enum CommunicationType {
17
18
  BRIEF = "briefed",
@@ -17,6 +17,7 @@ var ContactMethodType;
17
17
  ContactMethodType["SIGNAL"] = "signal";
18
18
  ContactMethodType["SMS"] = "sms";
19
19
  ContactMethodType["VOICENOTE"] = "voicenote";
20
+ ContactMethodType["VIDEO_CALL"] = "video-call";
20
21
  })(ContactMethodType || (exports.ContactMethodType = ContactMethodType = {}));
21
22
  var CommunicationType;
22
23
  (function (CommunicationType) {
@@ -102,6 +102,7 @@ export interface OpportunityLegacyFormData {
102
102
  language: `${Lang}`;
103
103
  }
104
104
  export interface ApiOpportunityAgent {
105
+ id: number;
105
106
  type: AgentType;
106
107
  name: string;
107
108
  address: string;
@@ -156,9 +157,13 @@ export type ApiOpportunityPatch = Partial<{
156
157
  waysToContact: PreferredCommunicationType[];
157
158
  };
158
159
  agent: {
159
- name: string;
160
- address: string;
161
- district: string;
160
+ id?: number;
161
+ /** @deprecated free-text in-place edit; use `id` to re-link. BE only applies `name`. */
162
+ name?: string;
163
+ /** @deprecated not persisted by the backend */
164
+ address?: string;
165
+ /** @deprecated not persisted by the backend */
166
+ district?: string;
162
167
  };
163
168
  accompanyingDetails: ApiOpportunityAccompanyingDetails;
164
169
  }>;
@@ -3,7 +3,8 @@ export declare enum PreferredCommunicationType {
3
3
  EMAIL = "email",
4
4
  MOBILE_PHONE = "mobilePhone",
5
5
  WHATSAPP = "whatsapp",
6
- TELEGRAM = "telegram"
6
+ TELEGRAM = "telegram",
7
+ SMS = "sms"
7
8
  }
8
9
  export interface ApiPersonGet {
9
10
  id: number;
@@ -7,4 +7,5 @@ var PreferredCommunicationType;
7
7
  PreferredCommunicationType["MOBILE_PHONE"] = "mobilePhone";
8
8
  PreferredCommunicationType["WHATSAPP"] = "whatsapp";
9
9
  PreferredCommunicationType["TELEGRAM"] = "telegram";
10
+ PreferredCommunicationType["SMS"] = "sms";
10
11
  })(PreferredCommunicationType || (exports.PreferredCommunicationType = PreferredCommunicationType = {}));
@@ -109,6 +109,8 @@ export interface ApiVolunteerGetList {
109
109
  id: number;
110
110
  statusEngagement: VolunteerStateEngagementType;
111
111
  statusType: VolunteerStateTypeType;
112
+ statusMatch?: VolunteerStateMatchType;
113
+ statusCommunication?: VolunteerStateCommunicationType;
112
114
  name: string;
113
115
  avatarUrl: string;
114
116
  languages: ApiLanguage[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",