need4deed-sdk 0.0.135 → 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.
|
@@ -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
|
-
organizationType:
|
|
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 {
|
|
@@ -89,7 +91,7 @@ export type ApiAgentContactPatch = Partial<ApiAgentContactPost>;
|
|
|
89
91
|
interface AgentGetList {
|
|
90
92
|
id: number;
|
|
91
93
|
title: string;
|
|
92
|
-
type:
|
|
94
|
+
type: AgentType;
|
|
93
95
|
volunteerSearch: AgentVolunteerSearchType;
|
|
94
96
|
trustLevel: AgentTrustType;
|
|
95
97
|
district: OptionById;
|
|
@@ -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,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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.
|
|
4
6
|
var AgentTypeKey;
|
|
5
7
|
(function (AgentTypeKey) {
|
|
6
8
|
AgentTypeKey["AE"] = "AE";
|
|
@@ -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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Id, Lang, VoidableProps, VoidableUndefined } from "..";
|
|
2
2
|
import { ApiOpportunityAccompanyingDetails } from "./accompanying";
|
|
3
|
-
import {
|
|
3
|
+
import { AgentType } from "./agent";
|
|
4
4
|
import { ApiComment } from "./comment";
|
|
5
5
|
import { OptionById, OptionId } from "./common";
|
|
6
6
|
import { ApiLanguage } from "./language";
|
|
@@ -145,7 +145,7 @@ export interface OpportunityCreateFormDataProps {
|
|
|
145
145
|
export type OpportunityFormDataWithAgentSubmitter = VoidableUndefined<OpportunityCreateFormDataProps>;
|
|
146
146
|
export interface ApiOpportunityAgent {
|
|
147
147
|
id: number;
|
|
148
|
-
type:
|
|
148
|
+
type: AgentType;
|
|
149
149
|
name: string;
|
|
150
150
|
address: string;
|
|
151
151
|
district: OptionById;
|
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 = {}));
|