need4deed-sdk 0.0.173 → 0.0.175

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,10 +1,12 @@
1
1
  export declare enum Endpoint {
2
2
  OPPORTUNITY = "/opportunity",
3
+ OPPORTUNITY_OTHER = "/opportunity/other",
3
4
  EVENT = "/event",
4
5
  TESTIMONIAL = "/testimonial",
5
6
  VOLUNTEER = "/volunteer",
6
7
  OPTION = "/option",
7
8
  AGENT = "/agent",
9
+ AGENT_TAG_CANDIDATES = "/agent/tag-candidates",
8
10
  REGISTER = "/register",
9
11
  STATISTICS = "/statistics"
10
12
  }
@@ -4,11 +4,13 @@ exports.Endpoint = void 0;
4
4
  var Endpoint;
5
5
  (function (Endpoint) {
6
6
  Endpoint["OPPORTUNITY"] = "/opportunity";
7
+ Endpoint["OPPORTUNITY_OTHER"] = "/opportunity/other";
7
8
  Endpoint["EVENT"] = "/event";
8
9
  Endpoint["TESTIMONIAL"] = "/testimonial";
9
10
  Endpoint["VOLUNTEER"] = "/volunteer";
10
11
  Endpoint["OPTION"] = "/option";
11
12
  Endpoint["AGENT"] = "/agent";
13
+ Endpoint["AGENT_TAG_CANDIDATES"] = "/agent/tag-candidates";
12
14
  Endpoint["REGISTER"] = "/register";
13
15
  Endpoint["STATISTICS"] = "/statistics";
14
16
  })(Endpoint || (exports.Endpoint = Endpoint = {}));
@@ -105,6 +105,7 @@ interface AgentGetList {
105
105
  unclaimed: boolean;
106
106
  lat: number | null;
107
107
  lon: number | null;
108
+ postcode: string | null;
108
109
  statusEngagement: AgentEngagementStatusType;
109
110
  }
110
111
  export type ApiAgentGetList = VoidableProps<AgentGetList, "district">;
@@ -149,6 +150,7 @@ export interface ApiAgentRegisterNew {
149
150
  addressPostcode?: string;
150
151
  languages?: number[];
151
152
  confirmSharedAddress?: boolean;
153
+ organizationId?: number;
152
154
  }
153
155
  export type ApiAgentRegister = {
154
156
  agentId: number;
@@ -175,10 +177,12 @@ export interface ApiAgentCreateResponse {
175
177
  export interface ApiAgentTitleConflict {
176
178
  conflict: "title";
177
179
  agentId: number;
180
+ agentTitle?: string;
178
181
  }
179
182
  export interface ApiAgentAddressConflict {
180
183
  conflict: "address";
181
184
  agentId: number;
185
+ agentTitle?: string;
182
186
  }
183
187
  export interface ApiAgentAlreadyRegisteredConflict {
184
188
  conflict: "registered";
@@ -194,4 +198,9 @@ export interface ApiAgentMembership {
194
198
  role: AgentRoleType;
195
199
  status: AgentMembershipStatus;
196
200
  }
201
+ export interface ApiAgentTagCandidate {
202
+ id: number;
203
+ title: string;
204
+ district: OptionById | null;
205
+ }
197
206
  export {};
@@ -174,6 +174,7 @@ export interface ApiOpportunityGetList {
174
174
  volunteerNames?: string[];
175
175
  lat: number | null;
176
176
  lon: number | null;
177
+ postcode: string | null;
177
178
  originalLanguage?: Lang;
178
179
  }
179
180
  export interface ApiOpportunityGet extends ApiOpportunityGetList {
@@ -240,3 +241,9 @@ export interface ApiAgentOpportunity extends Pick<ApiOpportunityGetList, "volunt
240
241
  createdAt: Date;
241
242
  volunteers: ApiAgentOpportunityVolunteer[];
242
243
  }
244
+ export interface ApiOpportunityOtherGetList {
245
+ id: Id;
246
+ title: string;
247
+ district: OptionById | null;
248
+ createdAt: Date;
249
+ }
@@ -5,6 +5,10 @@ export interface ApiPostPerson {
5
5
  fullName: string;
6
6
  avatarUrl?: string;
7
7
  }
8
+ export interface ApiPostAgent {
9
+ id: number;
10
+ title: string;
11
+ }
8
12
  export interface ApiPostLinkedOpportunity {
9
13
  id: number;
10
14
  title: string;
@@ -15,6 +19,7 @@ export interface ApiPostGet {
15
19
  author: ApiPostPerson;
16
20
  agentId: number | null;
17
21
  taggedPersons: ApiPostPerson[];
22
+ taggedAgents: ApiPostAgent[];
18
23
  linkedOpportunities: ApiPostLinkedOpportunity[];
19
24
  replyCount: number;
20
25
  reactions: ApiPostReactionSummary[];
@@ -31,6 +36,7 @@ export interface ApiPostListQuery {
31
36
  export interface ApiPostPost {
32
37
  text: string;
33
38
  taggedPersonIds?: number[];
39
+ taggedAgentIds?: number[];
34
40
  linkedOpportunityIds?: number[];
35
41
  }
36
42
  export type ApiPostPatch = VoidableProps<ApiPostPost>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.173",
3
+ "version": "0.0.175",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",