@jealous-robot-dev/shared-types-responses 1.47.6 → 1.47.8
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.
@@ -4,9 +4,10 @@ export declare enum URGENT_EVENT_TYPE {
|
|
4
4
|
EVENT_TO_VISIT = "event to visit"
|
5
5
|
}
|
6
6
|
export interface UrgentEvent {
|
7
|
+
type: URGENT_EVENT_TYPE;
|
8
|
+
actual_at: number;
|
7
9
|
event_id: string;
|
8
10
|
sid: string;
|
9
|
-
type: URGENT_EVENT_TYPE;
|
10
11
|
}
|
11
12
|
export interface UrgentEventData {
|
12
13
|
name: string;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { ProfileInfoFiels } from '@jealous-robot-dev/drophr-common';
|
2
|
+
import { ProfilePhrases } from '@jealous-robot-dev/shared-phrases';
|
2
3
|
import { ConciseEventData, EventReview } from '../events/events';
|
3
4
|
import { PersonalInfoBirthday } from '../user-settings';
|
4
5
|
import { QueryResponse } from '../common';
|
@@ -7,19 +8,12 @@ export interface CountableItems<ItemType> {
|
|
7
8
|
data: ItemType[];
|
8
9
|
}
|
9
10
|
export interface UserProfileData {
|
10
|
-
username: string;
|
11
11
|
firstname: string;
|
12
12
|
lastname: string;
|
13
|
+
username: string;
|
13
14
|
email?: string;
|
14
15
|
ppu: string;
|
15
16
|
UID: string;
|
16
|
-
work?: string;
|
17
|
-
about?: string;
|
18
|
-
location?: string;
|
19
|
-
linkedin?: string;
|
20
|
-
instagram?: string;
|
21
|
-
twiterUsername?: string;
|
22
|
-
website?: string;
|
23
17
|
average_raiting?: number;
|
24
18
|
birthday?: PersonalInfoBirthday;
|
25
19
|
has_gold_badge?: boolean;
|
@@ -29,6 +23,9 @@ export interface UserProfileData {
|
|
29
23
|
isAbleToContact: boolean;
|
30
24
|
isCurrentUser: boolean;
|
31
25
|
isHost: boolean;
|
26
|
+
fields: {
|
27
|
+
[key in ProfileInfoFiels]: string;
|
28
|
+
};
|
32
29
|
}
|
33
30
|
export interface UserEventsInProfile {
|
34
31
|
events: ConciseEventData[];
|
@@ -44,5 +41,5 @@ export declare enum ProfileShowResponses {
|
|
44
41
|
BAD_REQUEST = "BAD_REQUEST",
|
45
42
|
PLEASE_LOGIN = "PLEASE_LOGIN"
|
46
43
|
}
|
47
|
-
export interface UserProfileResponse extends QueryResponse<UserProfileData,
|
44
|
+
export interface UserProfileResponse extends QueryResponse<UserProfileData, ProfilePhrases> {
|
48
45
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jealous-robot-dev/shared-types-responses",
|
3
|
-
"version": "1.47.
|
3
|
+
"version": "1.47.8",
|
4
4
|
"description": "DropHR common types of API responses",
|
5
5
|
"main": "build/index.js",
|
6
6
|
"types": "build/index.d.ts",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"typescript": "^3.8.3"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@jealous-robot-dev/drophr-common": "^1.
|
28
|
-
"@jealous-robot-dev/shared-phrases": "^1.
|
27
|
+
"@jealous-robot-dev/drophr-common": "^1.13.3",
|
28
|
+
"@jealous-robot-dev/shared-phrases": "^1.13.0"
|
29
29
|
}
|
30
30
|
}
|