@jealous-robot-dev/shared-types-responses 1.50.9 → 1.51.1

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.
@@ -11,11 +11,9 @@ export declare enum AuthRespErrors {
11
11
  INVALID_PASSWORD = "INVALID_PASSWORD",
12
12
  INVALID_FIRSTNAME = "INVALID_FIRSTNAME",
13
13
  INVALID_LASTNAME = "INVALID_LASTNAME",
14
- INVALID_USERNAME = "INVALID_USERNAME",
15
14
  INVALID_EMAIL = "INVALID_EMAIL",
16
15
  EMAIL_UNVIERIFIED = "EMAIL_UNVIERIFIED",
17
16
  EMAIL_IN_USE = "EMAIL_IN_USE",
18
17
  MISSING_PARAM = "MISSING_PARAM",
19
- USERNAME_IN_USE = "USERNAME_IN_USE",
20
18
  USER_NOT_FOUND = "USER_NOT_FOUND"
21
19
  }
@@ -16,11 +16,9 @@ var AuthRespErrors;
16
16
  AuthRespErrors["INVALID_PASSWORD"] = "INVALID_PASSWORD";
17
17
  AuthRespErrors["INVALID_FIRSTNAME"] = "INVALID_FIRSTNAME";
18
18
  AuthRespErrors["INVALID_LASTNAME"] = "INVALID_LASTNAME";
19
- AuthRespErrors["INVALID_USERNAME"] = "INVALID_USERNAME";
20
19
  AuthRespErrors["INVALID_EMAIL"] = "INVALID_EMAIL";
21
20
  AuthRespErrors["EMAIL_UNVIERIFIED"] = "EMAIL_UNVIERIFIED";
22
21
  AuthRespErrors["EMAIL_IN_USE"] = "EMAIL_IN_USE";
23
22
  AuthRespErrors["MISSING_PARAM"] = "MISSING_PARAM";
24
- AuthRespErrors["USERNAME_IN_USE"] = "USERNAME_IN_USE";
25
23
  AuthRespErrors["USER_NOT_FOUND"] = "USER_NOT_FOUND";
26
24
  })(AuthRespErrors = exports.AuthRespErrors || (exports.AuthRespErrors = {}));
@@ -35,7 +35,6 @@ export interface ViewEventHostData {
35
35
  linkedin?: string;
36
36
  firstname?: string;
37
37
  lastname?: string;
38
- username?: string;
39
38
  instagram?: string;
40
39
  has_gold_badge?: boolean;
41
40
  cancellation_rate?: number;
@@ -57,7 +56,8 @@ export interface ViewEventReview {
57
56
  author: {
58
57
  UID: string;
59
58
  ppu: string;
60
- username: string;
59
+ lastname: string;
60
+ firstname: string;
61
61
  };
62
62
  written_at: number;
63
63
  comment: string;
@@ -14,7 +14,6 @@ export interface UserInEvent {
14
14
  UID: string;
15
15
  ppu: string;
16
16
  lastname: string;
17
- username: string;
18
17
  firstname: string;
19
18
  has_gold_badge?: boolean;
20
19
  }
@@ -23,7 +23,8 @@ export interface LiveRoomStandartSessionResponse {
23
23
  UID: string;
24
24
  ppu: string;
25
25
  is_new: boolean;
26
- username: string;
26
+ lastname: string;
27
+ firstname: string;
27
28
  role: LiveRoomParticipRole;
28
29
  };
29
30
  prefs: {
@@ -4,20 +4,19 @@ import { QueryResponse } from './common';
4
4
  import { UrgentEvent } from '..';
5
5
  export interface MainUserData {
6
6
  UID: string;
7
+ ppu: string;
7
8
  email: string;
8
- username: string;
9
- firstname: string;
10
9
  lastname: string;
11
- ppu: string;
10
+ firstname: string;
12
11
  is_admin: boolean;
13
12
  member_since: number;
14
13
  is_verified: boolean;
15
- unread_messages_count: number;
16
- auth_instrument: AuthenticationProviders;
17
- new_notifications_count: number;
18
- impression_for?: string;
19
14
  is_organiser: boolean;
15
+ impression_for?: string;
20
16
  urgent_event?: UrgentEvent;
17
+ unread_messages_count: number;
18
+ new_notifications_count: number;
19
+ auth_instrument: AuthenticationProviders;
21
20
  }
22
21
  export interface API {
23
22
  googleOAuthClient: string;
@@ -4,7 +4,6 @@ export interface MessengerUser {
4
4
  ppu: string;
5
5
  UID: string;
6
6
  gb?: boolean;
7
- username: string;
8
7
  lastname: string;
9
8
  firstname: string;
10
9
  available: boolean;
@@ -14,7 +13,6 @@ export interface ShortMessengerUser {
14
13
  ppu: string;
15
14
  UID: string;
16
15
  gb?: boolean;
17
- username: string;
18
16
  lastname: string;
19
17
  firstname: string;
20
18
  available: boolean;
@@ -45,7 +43,6 @@ export interface ConvRelation {
45
43
  ppu: string;
46
44
  conv_id: string;
47
45
  lastname: string;
48
- username: string;
49
46
  firstname: string;
50
47
  }
51
48
  export interface FileUploadParams {
@@ -3,10 +3,9 @@ import { ShortConversation } from './conversations';
3
3
  import { QueryResponse } from '../common';
4
4
  export interface StartConversation {
5
5
  UID: string;
6
- username: string;
7
- firstname: string;
8
- lastname: string;
9
6
  ppu: string;
7
+ lastname: string;
8
+ firstname: string;
10
9
  }
11
10
  export interface UserInboxData {
12
11
  conversations: ShortConversation[];
@@ -1,7 +1,6 @@
1
1
  import { SearchbarPhrases } from "@jealous-robot-dev/shared-phrases";
2
2
  import { QueryResponse } from "../common";
3
3
  export interface SearchUser {
4
- username: string;
5
4
  firstname: string;
6
5
  lastname: string;
7
6
  ppu: string;
@@ -8,21 +8,20 @@ export interface CountableItems<ItemType> {
8
8
  data: ItemType[];
9
9
  }
10
10
  export interface UserProfileData {
11
- firstname: string;
12
- lastname: string;
13
- username: string;
14
- email?: string;
15
11
  ppu: string;
16
12
  UID: string;
13
+ email?: string;
14
+ isHost: boolean;
15
+ lastname: string;
16
+ joinedIn: number;
17
+ firstname: string;
18
+ review_count?: number;
19
+ isCurrentUser: boolean;
20
+ isAbleToContact: boolean;
17
21
  average_raiting?: number;
18
- birthday?: PersonalInfoBirthday;
19
22
  has_gold_badge?: boolean;
20
- review_count?: number;
21
23
  languagesSpoken: string[];
22
- joinedIn: number;
23
- isAbleToContact: boolean;
24
- isCurrentUser: boolean;
25
- isHost: boolean;
24
+ birthday?: PersonalInfoBirthday;
26
25
  [ProfileInfoFiels.WORK]?: string;
27
26
  [ProfileInfoFiels.ABOUT]?: string;
28
27
  [ProfileInfoFiels.LANGS]?: string;
@@ -2,7 +2,6 @@ export interface UserInSearch {
2
2
  UID: string;
3
3
  firstname: string;
4
4
  lastname: string;
5
- username: string;
6
5
  raiting?: number;
7
6
  review_count?: number;
8
7
  languages_spoken: string[];
@@ -7,10 +7,9 @@ export interface PersonalInfoBirthday {
7
7
  day: string;
8
8
  }
9
9
  export interface UserPersonalInfo {
10
- username: string;
11
- firstname: string;
12
- lastname: string;
13
10
  email: string;
11
+ lastname: string;
12
+ firstname: string;
14
13
  gender: Sex | null;
15
14
  birthday: PersonalInfoBirthday | null;
16
15
  }
@@ -28,7 +28,6 @@ export interface UserSecurity {
28
28
  }
29
29
  export interface BlockedUser {
30
30
  UID: string;
31
- username: string;
32
31
  firstname: string;
33
32
  lastname: string;
34
33
  ppu: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.50.9",
4
- "description": "DropHR common types of API responses",
3
+ "version": "1.51.1",
4
+ "description": "Meetle common types of API responses",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
7
7
  "files": [
@@ -24,7 +24,7 @@
24
24
  "typescript": "^3.8.3"
25
25
  },
26
26
  "dependencies": {
27
- "@jealous-robot-dev/drophr-common": "^1.14.9",
28
- "@jealous-robot-dev/shared-phrases": "^1.14.1"
27
+ "@jealous-robot-dev/drophr-common": "^1.15.0",
28
+ "@jealous-robot-dev/shared-phrases": "^1.14.2"
29
29
  }
30
- }
30
+ }
@@ -1,39 +0,0 @@
1
- export declare enum Pages {
2
- NOTIFICATIONS = "notifications",
3
- MESSENGER = "messenger",
4
- PROFILE = "profile",
5
- EVENT_MANAGER = "event-manager",
6
- SCHEDULE = "schedule",
7
- HOST = "host",
8
- EXPLORER = "explorer",
9
- USER_SETTINGS = "user-settings",
10
- PERFORMANCE = "performance",
11
- PAYMENT_HISTORY = "payment-history",
12
- COLLECTIONS = "collections",
13
- INVITE = "invite",
14
- IMPRESSIONS = "impressions",
15
- HOST_AN_EVENT = "host-an-event",
16
- BECOME_A_HOST = "become-a-host",
17
- VISITING_EVENTS = "visiting-events",
18
- LOGIN_OR_SIGNUP = "login-or-signup",
19
- FORGOT_PASSWORD = "forgot-password",
20
- RESET_PASSWORD = "reset-password",
21
- VIEW_EVENT = "view-event",
22
- CHECKOUT = "checkout",
23
- SEARCH_TAGS = "search-tags",
24
- SEARCH_USERS = "search-users",
25
- SEARCH_EVENTS = "search-events",
26
- VERIFY_DEVICE = "verify-device",
27
- PERSONAL_REFUND = "personal-refund",
28
- MAIL_CANCELLATION = "mail-cancellation",
29
- BOOKING_CANCLLEATION = "booking-cancellation",
30
- BOOKING_RESULT = "booking-result",
31
- CUSTOMER_JOIN = "customer-join",
32
- HOST_JOIN = "host-join",
33
- HELP = "help"
34
- }
35
- export declare enum DropWebEnv {
36
- DEVELOPMENT = "development",
37
- CI = "ci",
38
- PRODUCTION = "production"
39
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DropWebEnv = exports.Pages = void 0;
4
- var Pages;
5
- (function (Pages) {
6
- Pages["NOTIFICATIONS"] = "notifications";
7
- Pages["MESSENGER"] = "messenger";
8
- Pages["PROFILE"] = "profile";
9
- Pages["EVENT_MANAGER"] = "event-manager";
10
- Pages["SCHEDULE"] = "schedule";
11
- Pages["HOST"] = "host";
12
- Pages["EXPLORER"] = "explorer";
13
- Pages["USER_SETTINGS"] = "user-settings";
14
- Pages["PERFORMANCE"] = "performance";
15
- Pages["PAYMENT_HISTORY"] = "payment-history";
16
- Pages["COLLECTIONS"] = "collections";
17
- Pages["INVITE"] = "invite";
18
- Pages["IMPRESSIONS"] = "impressions";
19
- Pages["HOST_AN_EVENT"] = "host-an-event";
20
- Pages["BECOME_A_HOST"] = "become-a-host";
21
- Pages["VISITING_EVENTS"] = "visiting-events";
22
- Pages["LOGIN_OR_SIGNUP"] = "login-or-signup";
23
- Pages["FORGOT_PASSWORD"] = "forgot-password";
24
- Pages["RESET_PASSWORD"] = "reset-password";
25
- Pages["VIEW_EVENT"] = "view-event";
26
- Pages["CHECKOUT"] = "checkout";
27
- Pages["SEARCH_TAGS"] = "search-tags";
28
- Pages["SEARCH_USERS"] = "search-users";
29
- Pages["SEARCH_EVENTS"] = "search-events";
30
- Pages["VERIFY_DEVICE"] = "verify-device";
31
- Pages["PERSONAL_REFUND"] = "personal-refund";
32
- Pages["MAIL_CANCELLATION"] = "mail-cancellation";
33
- Pages["BOOKING_CANCLLEATION"] = "booking-cancellation";
34
- Pages["BOOKING_RESULT"] = "booking-result";
35
- Pages["CUSTOMER_JOIN"] = "customer-join";
36
- Pages["HOST_JOIN"] = "host-join";
37
- Pages["HELP"] = "help";
38
- })(Pages = exports.Pages || (exports.Pages = {}));
39
- var DropWebEnv;
40
- (function (DropWebEnv) {
41
- DropWebEnv["DEVELOPMENT"] = "development";
42
- DropWebEnv["CI"] = "ci";
43
- DropWebEnv["PRODUCTION"] = "production";
44
- })(DropWebEnv = exports.DropWebEnv || (exports.DropWebEnv = {}));