need4deed-sdk 0.0.139 → 0.0.141

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.
@@ -34,7 +34,9 @@ export declare enum AgentEngagementStatusType {
34
34
  NEW = "agent-new",
35
35
  ACTIVE = "agent-active",
36
36
  UNRESPONSIVE = "agent-unresponsive",
37
- INACTIVE = "agent-inactive"
37
+ INACTIVE = "agent-inactive",
38
+ INCONTACT = "agent-incontact",
39
+ TRIED_TO_CONTACT = "agent-tried-to-contact"
38
40
  }
39
41
  export declare enum AgentVolunteerSearchType {
40
42
  SEARCHING = "agent-searching",
@@ -127,6 +129,7 @@ interface AgentPatch {
127
129
  serviceIds: number[];
128
130
  languages: OptionById[];
129
131
  districtId: number;
132
+ organizationId: number;
130
133
  }
131
134
  export type ApiAgentPatch = VoidableProps<AgentPatch>;
132
135
  export interface ApiAgentRegisterNew {
@@ -38,6 +38,8 @@ var AgentEngagementStatusType;
38
38
  AgentEngagementStatusType["ACTIVE"] = "agent-active";
39
39
  AgentEngagementStatusType["UNRESPONSIVE"] = "agent-unresponsive";
40
40
  AgentEngagementStatusType["INACTIVE"] = "agent-inactive";
41
+ AgentEngagementStatusType["INCONTACT"] = "agent-incontact";
42
+ AgentEngagementStatusType["TRIED_TO_CONTACT"] = "agent-tried-to-contact";
41
43
  })(AgentEngagementStatusType || (exports.AgentEngagementStatusType = AgentEngagementStatusType = {}));
42
44
  var AgentVolunteerSearchType;
43
45
  (function (AgentVolunteerSearchType) {
@@ -197,6 +197,7 @@ export type ApiOpportunityPatch = VoidableProps<{
197
197
  statusOpportunity: OpportunityStatusType;
198
198
  numberVolunteers: number;
199
199
  description: string;
200
+ volunteerType: VolunteerStateTypeType;
200
201
  languagesMain: OptionItem[];
201
202
  languagesResidents: OptionItem[];
202
203
  activities: OptionItem[];
@@ -6,3 +6,4 @@ export interface ApiOrganizationGet {
6
6
  address: ApiAddress;
7
7
  }
8
8
  export type ApiOrganizationPatch = Partial<ApiOrganizationGet>;
9
+ export type ApiOrganizationGetList = Pick<ApiOrganizationGet, "id" | "title">;
@@ -19,6 +19,10 @@ export interface ApiUserPost {
19
19
  lastName?: string;
20
20
  };
21
21
  }
22
+ export interface ApiAgentMembershipSummary {
23
+ agentId: number;
24
+ agentTitle: string;
25
+ }
22
26
  interface UserGet {
23
27
  id: number;
24
28
  personId: number;
@@ -31,6 +35,7 @@ interface UserGet {
31
35
  isoCode: string;
32
36
  timezone: string;
33
37
  agentId?: number;
38
+ agentMemberships?: ApiAgentMembershipSummary[];
34
39
  }
35
40
  export type ApiUserGet = VoidableProps<UserGet, "avatarUrl" | "personId">;
36
41
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.139",
3
+ "version": "0.0.141",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",