need4deed-sdk 0.0.52 → 0.0.53
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/dist/types/api/agent.d.ts +77 -3
- package/dist/types/api/agent.js +49 -6
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/index.js +1 -0
- package/dist/types/api/language.d.ts +2 -0
- package/dist/types/api/location.d.ts +8 -0
- package/dist/types/api/organization.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,11 +1,85 @@
|
|
|
1
|
+
import { ApiComment } from "./comment";
|
|
2
|
+
import { ApiLanguage } from "./language";
|
|
3
|
+
import { ApiAddress, ApiDistrict } from "./location";
|
|
1
4
|
import { ApiOrganizationGet } from "./organization";
|
|
2
5
|
import { ApiPersonGet } from "./person";
|
|
3
6
|
export declare enum AgentType {
|
|
4
7
|
RAC = "rac",
|
|
5
8
|
NGO = "ngo"
|
|
6
9
|
}
|
|
7
|
-
export
|
|
10
|
+
export declare enum AgentOperatorType {
|
|
11
|
+
ORGANIZATION = "organization",
|
|
12
|
+
PERSON = "person"
|
|
13
|
+
}
|
|
14
|
+
export declare enum AgentRoleType {
|
|
15
|
+
SOCIAL_WORKER = "social-worker",
|
|
16
|
+
VOLUNTEER_COORDINATOR = "volunteer-coordinator",
|
|
17
|
+
MANAGER = "manager",
|
|
18
|
+
PROJECT_COORDINATOR = "project-coordinator",
|
|
19
|
+
PSYCHOLOGIST = "psychologist",
|
|
20
|
+
PROJECT_STAFF = "project-staff",
|
|
21
|
+
CHILDCARE_WORKER = "childcare-worker",
|
|
22
|
+
OTHER = "other"
|
|
23
|
+
}
|
|
24
|
+
export declare enum AgentEngagementStatusType {
|
|
25
|
+
NEW = "new",
|
|
26
|
+
ACTIVE = "active",
|
|
27
|
+
UNRESPONSIVE = "unresponsive",
|
|
28
|
+
INACTIVE = "inactive"
|
|
29
|
+
}
|
|
30
|
+
export declare enum AgentVolunteerSearchType {
|
|
31
|
+
SEARCHING = "searching",
|
|
32
|
+
NOT_NEEDED = "not-needed",
|
|
33
|
+
VOLUNTEERS_FOUND = "volunteers-found"
|
|
34
|
+
}
|
|
35
|
+
export declare enum AgentServiceType {
|
|
36
|
+
CHILDCARE = "childcare",
|
|
37
|
+
WELFARE = "welfare",
|
|
38
|
+
CONSULTATION = "consultation",
|
|
39
|
+
VOLUNTARY_SUPPORT = "voluntary-support",
|
|
40
|
+
TANDEM = "tandem",
|
|
41
|
+
SPORT = "sport",
|
|
42
|
+
TUTORING = "tutoring",
|
|
43
|
+
REFUGEE_ACCOMMODATION = "refugee-accommodation",
|
|
44
|
+
JOB_COACHING = "job-coaching",
|
|
45
|
+
YOUTH = "youth"
|
|
46
|
+
}
|
|
47
|
+
export declare enum AgentTrustType {
|
|
48
|
+
HIGH = "high",
|
|
49
|
+
LOW = "low",
|
|
50
|
+
UNKNOWN = "unknown"
|
|
51
|
+
}
|
|
52
|
+
export interface AgentDetails {
|
|
53
|
+
about: string;
|
|
54
|
+
website?: string;
|
|
55
|
+
address: string;
|
|
56
|
+
organizationType: AgentType;
|
|
57
|
+
operator: string;
|
|
58
|
+
services: string;
|
|
59
|
+
clientLanguages: ApiLanguage[];
|
|
60
|
+
}
|
|
61
|
+
export interface ApiRepresentativeGet extends ApiPersonGet {
|
|
62
|
+
role: AgentRoleType;
|
|
63
|
+
landline: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ApiAgentGetList {
|
|
66
|
+
id: number;
|
|
67
|
+
title: string;
|
|
8
68
|
type: AgentType;
|
|
9
|
-
|
|
10
|
-
|
|
69
|
+
operatorType?: AgentOperatorType;
|
|
70
|
+
operatorId?: number;
|
|
71
|
+
address?: ApiAddress;
|
|
72
|
+
district?: ApiDistrict;
|
|
73
|
+
}
|
|
74
|
+
export interface ApiAgentGet extends ApiAgentGetList {
|
|
75
|
+
createdAt: Date;
|
|
76
|
+
updatedAt?: Date;
|
|
77
|
+
operator?: ApiOrganizationGet;
|
|
78
|
+
representatives?: ApiRepresentativeGet[];
|
|
79
|
+
serviceType?: AgentServiceType[];
|
|
80
|
+
trustLevel: AgentTrustType;
|
|
81
|
+
statusEngagement: AgentEngagementStatusType;
|
|
82
|
+
volunteerSearch: AgentVolunteerSearchType;
|
|
83
|
+
comments: ApiComment[];
|
|
84
|
+
agentDetails: AgentDetails;
|
|
11
85
|
}
|
package/dist/types/api/agent.js
CHANGED
|
@@ -1,8 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(
|
|
3
|
+
exports.AgentTrustType = exports.AgentServiceType = exports.AgentVolunteerSearchType = exports.AgentEngagementStatusType = exports.AgentRoleType = exports.AgentOperatorType = void 0;
|
|
4
|
+
var AgentOperatorType;
|
|
5
|
+
(function (AgentOperatorType) {
|
|
6
|
+
AgentOperatorType["ORGANIZATION"] = "organization";
|
|
7
|
+
AgentOperatorType["PERSON"] = "person";
|
|
8
|
+
})(AgentOperatorType || (exports.AgentOperatorType = AgentOperatorType = {}));
|
|
9
|
+
var AgentRoleType;
|
|
10
|
+
(function (AgentRoleType) {
|
|
11
|
+
AgentRoleType["SOCIAL_WORKER"] = "social-worker";
|
|
12
|
+
AgentRoleType["VOLUNTEER_COORDINATOR"] = "volunteer-coordinator";
|
|
13
|
+
AgentRoleType["MANAGER"] = "manager";
|
|
14
|
+
AgentRoleType["PROJECT_COORDINATOR"] = "project-coordinator";
|
|
15
|
+
AgentRoleType["PSYCHOLOGIST"] = "psychologist";
|
|
16
|
+
AgentRoleType["PROJECT_STAFF"] = "project-staff";
|
|
17
|
+
AgentRoleType["CHILDCARE_WORKER"] = "childcare-worker";
|
|
18
|
+
AgentRoleType["OTHER"] = "other";
|
|
19
|
+
})(AgentRoleType || (exports.AgentRoleType = AgentRoleType = {}));
|
|
20
|
+
var AgentEngagementStatusType;
|
|
21
|
+
(function (AgentEngagementStatusType) {
|
|
22
|
+
AgentEngagementStatusType["NEW"] = "new";
|
|
23
|
+
AgentEngagementStatusType["ACTIVE"] = "active";
|
|
24
|
+
AgentEngagementStatusType["UNRESPONSIVE"] = "unresponsive";
|
|
25
|
+
AgentEngagementStatusType["INACTIVE"] = "inactive";
|
|
26
|
+
})(AgentEngagementStatusType || (exports.AgentEngagementStatusType = AgentEngagementStatusType = {}));
|
|
27
|
+
var AgentVolunteerSearchType;
|
|
28
|
+
(function (AgentVolunteerSearchType) {
|
|
29
|
+
AgentVolunteerSearchType["SEARCHING"] = "searching";
|
|
30
|
+
AgentVolunteerSearchType["NOT_NEEDED"] = "not-needed";
|
|
31
|
+
AgentVolunteerSearchType["VOLUNTEERS_FOUND"] = "volunteers-found";
|
|
32
|
+
})(AgentVolunteerSearchType || (exports.AgentVolunteerSearchType = AgentVolunteerSearchType = {}));
|
|
33
|
+
var AgentServiceType;
|
|
34
|
+
(function (AgentServiceType) {
|
|
35
|
+
AgentServiceType["CHILDCARE"] = "childcare";
|
|
36
|
+
AgentServiceType["WELFARE"] = "welfare";
|
|
37
|
+
AgentServiceType["CONSULTATION"] = "consultation";
|
|
38
|
+
AgentServiceType["VOLUNTARY_SUPPORT"] = "voluntary-support";
|
|
39
|
+
AgentServiceType["TANDEM"] = "tandem";
|
|
40
|
+
AgentServiceType["SPORT"] = "sport";
|
|
41
|
+
AgentServiceType["TUTORING"] = "tutoring";
|
|
42
|
+
AgentServiceType["REFUGEE_ACCOMMODATION"] = "refugee-accommodation";
|
|
43
|
+
AgentServiceType["JOB_COACHING"] = "job-coaching";
|
|
44
|
+
AgentServiceType["YOUTH"] = "youth";
|
|
45
|
+
})(AgentServiceType || (exports.AgentServiceType = AgentServiceType = {}));
|
|
46
|
+
var AgentTrustType;
|
|
47
|
+
(function (AgentTrustType) {
|
|
48
|
+
AgentTrustType["HIGH"] = "high";
|
|
49
|
+
AgentTrustType["LOW"] = "low";
|
|
50
|
+
AgentTrustType["UNKNOWN"] = "unknown";
|
|
51
|
+
})(AgentTrustType || (exports.AgentTrustType = AgentTrustType = {}));
|
package/dist/types/api/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __exportStar(require("./location"), exports);
|
|
|
26
26
|
__exportStar(require("./new_api"), exports);
|
|
27
27
|
__exportStar(require("./opportunity"), exports);
|
|
28
28
|
__exportStar(require("./option"), exports);
|
|
29
|
+
__exportStar(require("./organization"), exports);
|
|
29
30
|
__exportStar(require("./person"), exports);
|
|
30
31
|
__exportStar(require("./profile"), exports);
|
|
31
32
|
__exportStar(require("./testimonial"), exports);
|
|
@@ -4,12 +4,18 @@ export interface Address {
|
|
|
4
4
|
city: string;
|
|
5
5
|
postcode: Postcode;
|
|
6
6
|
}
|
|
7
|
+
export interface ApiAddress extends Address {
|
|
8
|
+
}
|
|
9
|
+
export interface ApiAddressGet extends Address {
|
|
10
|
+
}
|
|
7
11
|
export interface Postcode {
|
|
8
12
|
id: number;
|
|
9
13
|
code: string;
|
|
10
14
|
latitude: number;
|
|
11
15
|
longitude: number;
|
|
12
16
|
}
|
|
17
|
+
export interface ApiPostcode extends Postcode {
|
|
18
|
+
}
|
|
13
19
|
export declare enum LocationType {
|
|
14
20
|
ADDRESS = "address",
|
|
15
21
|
DISTRICT = "district",
|
|
@@ -27,3 +33,5 @@ export interface District {
|
|
|
27
33
|
title: string;
|
|
28
34
|
postcodes: Postcode[];
|
|
29
35
|
}
|
|
36
|
+
export interface ApiDistrict extends District {
|
|
37
|
+
}
|