need4deed-sdk 0.0.172 → 0.0.174

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 = {}));
@@ -66,6 +66,8 @@ export interface AgentDetails {
66
66
  about: string;
67
67
  website?: Voidable<string>;
68
68
  address: string;
69
+ addressStreet?: Voidable<string>;
70
+ addressPostcode?: Voidable<string>;
69
71
  organizationType: AgentType;
70
72
  operator: string;
71
73
  services: Service[];
@@ -103,6 +105,7 @@ interface AgentGetList {
103
105
  unclaimed: boolean;
104
106
  lat: number | null;
105
107
  lon: number | null;
108
+ postcode: string | null;
106
109
  statusEngagement: AgentEngagementStatusType;
107
110
  }
108
111
  export type ApiAgentGetList = VoidableProps<AgentGetList, "district">;
@@ -147,6 +150,7 @@ export interface ApiAgentRegisterNew {
147
150
  addressPostcode?: string;
148
151
  languages?: number[];
149
152
  confirmSharedAddress?: boolean;
153
+ organizationId?: number;
150
154
  }
151
155
  export type ApiAgentRegister = {
152
156
  agentId: number;
@@ -192,4 +196,9 @@ export interface ApiAgentMembership {
192
196
  role: AgentRoleType;
193
197
  status: AgentMembershipStatus;
194
198
  }
199
+ export interface ApiAgentTagCandidate {
200
+ id: number;
201
+ title: string;
202
+ district: OptionById | null;
203
+ }
195
204
  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.172",
3
+ "version": "0.0.174",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",