need4deed-sdk 0.0.60 → 0.0.61
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.
|
@@ -124,3 +124,13 @@ export interface ApiOpportunityGet extends ApiOpportunityGetList {
|
|
|
124
124
|
agent: ApiOpportunityAgent;
|
|
125
125
|
accompanyingDetails: ApiOpportunityAccompanyingDetails;
|
|
126
126
|
}
|
|
127
|
+
export interface OpportunityVolunteer {
|
|
128
|
+
id: number;
|
|
129
|
+
status: OpportunityVolunteerStatusType;
|
|
130
|
+
opportunityId: number;
|
|
131
|
+
volunteerId: number;
|
|
132
|
+
updatedAt: Date;
|
|
133
|
+
}
|
|
134
|
+
export interface ApiOpportunityVolunteerGet extends OpportunityVolunteer {
|
|
135
|
+
title: string;
|
|
136
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DocumentStatusType, Id } from "../core";
|
|
2
2
|
import { OptionById, OptionId } from "./common";
|
|
3
3
|
import { ApiLanguage } from "./language";
|
|
4
|
-
import { ApiOpportunityGetList,
|
|
4
|
+
import { ApiOpportunityGetList, OpportunityVolunteer } from "./opportunity";
|
|
5
5
|
import { OptionItem } from "./option";
|
|
6
6
|
import { ApiPersonGet, PreferredCommunicationType } from "./person";
|
|
7
7
|
import { ProfileVolunteeringType } from "./profile";
|
|
@@ -146,13 +146,16 @@ export interface ApiVolunteerGet {
|
|
|
146
146
|
}
|
|
147
147
|
export interface VolunteerPatchBodyData extends Partial<ApiVolunteerGet> {
|
|
148
148
|
}
|
|
149
|
-
export interface
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
export interface ApiVolunteerOpportunityGet extends OpportunityVolunteer {
|
|
150
|
+
name: string;
|
|
151
|
+
avatarUrl: string;
|
|
152
|
+
volunteeringType: ProfileVolunteeringType;
|
|
153
|
+
engagement: VolunteerStateEngagementType;
|
|
154
|
+
languages: ApiLanguage[];
|
|
155
|
+
availability: ApiAvailability[];
|
|
156
|
+
activities: OptionItem[];
|
|
157
|
+
skills: OptionItem[];
|
|
158
|
+
locations: OptionItem[];
|
|
156
159
|
}
|
|
157
160
|
export interface ApiVolunteerOpportunityGetList extends ApiOpportunityGetList {
|
|
158
161
|
languages: ApiLanguage[];
|
package/dist/types/core.d.ts
CHANGED
|
@@ -54,12 +54,14 @@ export declare enum QueryParams {
|
|
|
54
54
|
export declare enum EntityTableName {
|
|
55
55
|
NONE = "none",
|
|
56
56
|
ACTIVITY = "activity",
|
|
57
|
-
|
|
57
|
+
AGENT = "agent",
|
|
58
58
|
CATEGORY = "comment",
|
|
59
59
|
COMMENT = "category",
|
|
60
|
+
DISTRICT = "district",
|
|
60
61
|
LANGUAGE = "language",
|
|
61
62
|
LEAD = "lead_from",
|
|
62
|
-
|
|
63
|
+
OPPORTUNITY = "opportunity",
|
|
64
|
+
SKILL = "skill",
|
|
63
65
|
VOLUNTEER = "volunteer"
|
|
64
66
|
}
|
|
65
67
|
export declare enum QueryParamsKeys {
|
package/dist/types/core.js
CHANGED
|
@@ -64,12 +64,14 @@ var EntityTableName;
|
|
|
64
64
|
(function (EntityTableName) {
|
|
65
65
|
EntityTableName["NONE"] = "none";
|
|
66
66
|
EntityTableName["ACTIVITY"] = "activity";
|
|
67
|
-
EntityTableName["
|
|
67
|
+
EntityTableName["AGENT"] = "agent";
|
|
68
68
|
EntityTableName["CATEGORY"] = "comment";
|
|
69
69
|
EntityTableName["COMMENT"] = "category";
|
|
70
|
+
EntityTableName["DISTRICT"] = "district";
|
|
70
71
|
EntityTableName["LANGUAGE"] = "language";
|
|
71
72
|
EntityTableName["LEAD"] = "lead_from";
|
|
72
|
-
EntityTableName["
|
|
73
|
+
EntityTableName["OPPORTUNITY"] = "opportunity";
|
|
74
|
+
EntityTableName["SKILL"] = "skill";
|
|
73
75
|
EntityTableName["VOLUNTEER"] = "volunteer";
|
|
74
76
|
})(EntityTableName || (exports.EntityTableName = EntityTableName = {}));
|
|
75
77
|
var QueryParamsKeys;
|