need4deed-sdk 0.0.99 → 0.0.100
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/user.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Lang } from "../core";
|
|
1
2
|
import { VoidableProps } from "../utils";
|
|
2
3
|
export declare enum UserRole {
|
|
3
4
|
USER = "user",
|
|
@@ -6,6 +7,18 @@ export declare enum UserRole {
|
|
|
6
7
|
VOLUNTEER = "volunteer",
|
|
7
8
|
ADMIN = "admin"
|
|
8
9
|
}
|
|
10
|
+
export interface ApiUserPost {
|
|
11
|
+
email: string;
|
|
12
|
+
password: string;
|
|
13
|
+
role: UserRole;
|
|
14
|
+
language: Lang;
|
|
15
|
+
person: {
|
|
16
|
+
id?: number;
|
|
17
|
+
firstName?: string;
|
|
18
|
+
middleName?: string;
|
|
19
|
+
lastName?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
9
22
|
interface UserGet {
|
|
10
23
|
id: number;
|
|
11
24
|
personId: number;
|
|
@@ -159,7 +159,6 @@ export interface ApiVolunteerOpportunityGet extends OpportunityVolunteer {
|
|
|
159
159
|
avatarUrl: string;
|
|
160
160
|
volunteeringType: ProfileVolunteeringType;
|
|
161
161
|
engagement: VolunteerStateEngagementType;
|
|
162
|
-
communication: VolunteerStateCommunicationType;
|
|
163
162
|
languages: ApiLanguage[];
|
|
164
163
|
availability: ApiAvailability[];
|
|
165
164
|
activities: OptionItem[];
|