need4deed-sdk 0.0.134 → 0.0.136
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 +10 -9
- package/dist/types/api/agent.js +18 -14
- package/dist/types/core.d.ts +2 -0
- package/dist/types/core.js +2 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { OptionById } from "./common";
|
|
|
4
4
|
import { ApiLanguage } from "./language";
|
|
5
5
|
import { OptionItem } from "./option";
|
|
6
6
|
import { ApiPersonGet, ApiPersonPatch } from "./person";
|
|
7
|
-
export declare enum
|
|
7
|
+
export declare enum AgentTypeKey {
|
|
8
8
|
AE = "AE",
|
|
9
9
|
GU1 = "GU1",
|
|
10
10
|
GU2 = "GU2",
|
|
@@ -58,13 +58,15 @@ export declare enum AgentTrustType {
|
|
|
58
58
|
LOW = "agent-low",
|
|
59
59
|
UNKNOWN = "agent-unknown"
|
|
60
60
|
}
|
|
61
|
+
export type AgentType = OptionById;
|
|
62
|
+
export type Service = OptionById;
|
|
61
63
|
export interface AgentDetails {
|
|
62
64
|
about: string;
|
|
63
65
|
website?: Voidable<string>;
|
|
64
66
|
address: string;
|
|
65
67
|
organizationType: AgentType;
|
|
66
68
|
operator: string;
|
|
67
|
-
services:
|
|
69
|
+
services: Service[];
|
|
68
70
|
clientLanguages: OptionItem[];
|
|
69
71
|
}
|
|
70
72
|
export interface ApiRepresentativeGet extends ApiPersonGet {
|
|
@@ -104,36 +106,35 @@ interface AgentGet extends AgentGetList {
|
|
|
104
106
|
operator: string;
|
|
105
107
|
representative: ApiRepresentativeGet;
|
|
106
108
|
contacts: ApiAgentMembership[];
|
|
107
|
-
|
|
109
|
+
services: Service[];
|
|
108
110
|
statusEngagement: AgentEngagementStatusType;
|
|
109
111
|
agentDetails: AgentDetails;
|
|
110
112
|
comments: ApiComment[];
|
|
111
113
|
languages: ApiLanguage[];
|
|
112
114
|
}
|
|
113
|
-
export type ApiAgentGet = VoidableProps<AgentGet, "district" | "operator" | "representative" | "
|
|
115
|
+
export type ApiAgentGet = VoidableProps<AgentGet, "district" | "operator" | "representative" | "services" | "updatedAt">;
|
|
114
116
|
interface AgentPatch {
|
|
115
117
|
title: string;
|
|
116
|
-
|
|
118
|
+
typeId: number;
|
|
117
119
|
volunteerSearch: AgentVolunteerSearchType;
|
|
118
120
|
trustLevel: AgentTrustType;
|
|
119
|
-
serviceType: AgentServiceType[];
|
|
120
121
|
statusEngagement: AgentEngagementStatusType;
|
|
121
122
|
about: string;
|
|
122
123
|
website: string;
|
|
123
124
|
addressStreet: string;
|
|
124
125
|
addressPostcode: string;
|
|
125
126
|
statusSearch: AgentVolunteerSearchType;
|
|
126
|
-
|
|
127
|
+
serviceIds: number[];
|
|
127
128
|
languages: OptionById[];
|
|
128
129
|
districtId: number;
|
|
129
130
|
}
|
|
130
131
|
export type ApiAgentPatch = VoidableProps<AgentPatch>;
|
|
131
132
|
export interface ApiAgentRegisterNew {
|
|
132
133
|
title: string;
|
|
133
|
-
|
|
134
|
+
typeId?: number;
|
|
134
135
|
info?: string;
|
|
135
136
|
website?: string;
|
|
136
|
-
|
|
137
|
+
serviceIds?: number[];
|
|
137
138
|
addressStreet?: string;
|
|
138
139
|
addressPostcode?: string;
|
|
139
140
|
districtId?: number;
|
package/dist/types/api/agent.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentMembershipStatus = exports.AgentTrustType = exports.AgentServiceType = exports.AgentVolunteerSearchType = exports.AgentEngagementStatusType = exports.AgentRoleType = exports.AgentOperatorType = exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
exports.AgentMembershipStatus = exports.AgentTrustType = exports.AgentServiceType = exports.AgentVolunteerSearchType = exports.AgentEngagementStatusType = exports.AgentRoleType = exports.AgentOperatorType = exports.AgentTypeKey = void 0;
|
|
4
|
+
// Canonical seed values for the `agent_type` reference table (see AgentType
|
|
5
|
+
// below) — not used directly in any API contract.
|
|
6
|
+
var AgentTypeKey;
|
|
7
|
+
(function (AgentTypeKey) {
|
|
8
|
+
AgentTypeKey["AE"] = "AE";
|
|
9
|
+
AgentTypeKey["GU1"] = "GU1";
|
|
10
|
+
AgentTypeKey["GU2"] = "GU2";
|
|
11
|
+
AgentTypeKey["GU2_PLUS"] = "GU2+";
|
|
12
|
+
AgentTypeKey["GU3"] = "GU3";
|
|
13
|
+
AgentTypeKey["NU"] = "NU";
|
|
14
|
+
AgentTypeKey["ASOG"] = "ASOG";
|
|
15
|
+
AgentTypeKey["COUNSELING_CENTER"] = "counseling-center";
|
|
16
|
+
AgentTypeKey["TANDEM"] = "tandem";
|
|
17
|
+
AgentTypeKey["MULTIPLE_SOCIAL_SUPPORT"] = "multiple-social-support";
|
|
18
|
+
})(AgentTypeKey || (exports.AgentTypeKey = AgentTypeKey = {}));
|
|
17
19
|
var AgentOperatorType;
|
|
18
20
|
(function (AgentOperatorType) {
|
|
19
21
|
AgentOperatorType["ORGANIZATION"] = "organization";
|
|
@@ -43,6 +45,8 @@ var AgentVolunteerSearchType;
|
|
|
43
45
|
AgentVolunteerSearchType["NOT_NEEDED"] = "agent-not-needed";
|
|
44
46
|
AgentVolunteerSearchType["VOLUNTEERS_FOUND"] = "agent-volunteers-found";
|
|
45
47
|
})(AgentVolunteerSearchType || (exports.AgentVolunteerSearchType = AgentVolunteerSearchType = {}));
|
|
48
|
+
// Canonical seed values for the `service` reference table (see Service
|
|
49
|
+
// below) — not used directly in any API contract.
|
|
46
50
|
var AgentServiceType;
|
|
47
51
|
(function (AgentServiceType) {
|
|
48
52
|
AgentServiceType["CHILDCARE"] = "childcare";
|
package/dist/types/core.d.ts
CHANGED
|
@@ -55,12 +55,14 @@ export declare enum EntityTableName {
|
|
|
55
55
|
NONE = "none",
|
|
56
56
|
ACTIVITY = "activity",
|
|
57
57
|
AGENT = "agent",
|
|
58
|
+
AGENT_TYPE = "agent_type",
|
|
58
59
|
CATEGORY = "category",
|
|
59
60
|
COMMENT = "comment",
|
|
60
61
|
DISTRICT = "district",
|
|
61
62
|
LANGUAGE = "language",
|
|
62
63
|
LEAD = "lead_from",
|
|
63
64
|
OPPORTUNITY = "opportunity",
|
|
65
|
+
SERVICE = "service",
|
|
64
66
|
SKILL = "skill",
|
|
65
67
|
VOLUNTEER = "volunteer"
|
|
66
68
|
}
|
package/dist/types/core.js
CHANGED
|
@@ -65,12 +65,14 @@ var EntityTableName;
|
|
|
65
65
|
EntityTableName["NONE"] = "none";
|
|
66
66
|
EntityTableName["ACTIVITY"] = "activity";
|
|
67
67
|
EntityTableName["AGENT"] = "agent";
|
|
68
|
+
EntityTableName["AGENT_TYPE"] = "agent_type";
|
|
68
69
|
EntityTableName["CATEGORY"] = "category";
|
|
69
70
|
EntityTableName["COMMENT"] = "comment";
|
|
70
71
|
EntityTableName["DISTRICT"] = "district";
|
|
71
72
|
EntityTableName["LANGUAGE"] = "language";
|
|
72
73
|
EntityTableName["LEAD"] = "lead_from";
|
|
73
74
|
EntityTableName["OPPORTUNITY"] = "opportunity";
|
|
75
|
+
EntityTableName["SERVICE"] = "service";
|
|
74
76
|
EntityTableName["SKILL"] = "skill";
|
|
75
77
|
EntityTableName["VOLUNTEER"] = "volunteer";
|
|
76
78
|
})(EntityTableName || (exports.EntityTableName = EntityTableName = {}));
|