@jealous-robot-dev/shared-types-responses 1.57.4 → 1.57.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,13 +20,16 @@ export declare enum UserPreferences {
20
20
  THEME = "THEME"
21
21
  }
22
22
  export declare enum Languages {
23
- BENGAL = "Bengali",
24
23
  DANISH = "Dansk",
25
24
  GERMAN = "Deutsch",
26
25
  ENGLISH = "English",
27
26
  SPANISH = "Espa\u00F1ol",
28
27
  FRENCH = "Fran\u00E7ais",
29
28
  HINDI = "Hindi",
29
+ LITHUANIAN = "Lietuvi\u0173",
30
+ ESTONIAN = "Eesti",
31
+ CZECH = "\u010Ce\u0161tina",
32
+ LATVIAN = "Latvie\u0161u",
30
33
  ITALIAN = "Italiano",
31
34
  HUNGARIAN = "Magyar",
32
35
  FLOMAN = "Nederlands",
@@ -9,13 +9,16 @@ var UserPreferences;
9
9
  })(UserPreferences = exports.UserPreferences || (exports.UserPreferences = {}));
10
10
  var Languages;
11
11
  (function (Languages) {
12
- Languages["BENGAL"] = "Bengali";
13
12
  Languages["DANISH"] = "Dansk";
14
13
  Languages["GERMAN"] = "Deutsch";
15
14
  Languages["ENGLISH"] = "English";
16
15
  Languages["SPANISH"] = "Espa\u00F1ol";
17
16
  Languages["FRENCH"] = "Fran\u00E7ais";
18
17
  Languages["HINDI"] = "Hindi";
18
+ Languages["LITHUANIAN"] = "Lietuvi\u0173";
19
+ Languages["ESTONIAN"] = "Eesti";
20
+ Languages["CZECH"] = "\u010Ce\u0161tina";
21
+ Languages["LATVIAN"] = "Latvie\u0161u";
19
22
  Languages["ITALIAN"] = "Italiano";
20
23
  Languages["HUNGARIAN"] = "Magyar";
21
24
  Languages["FLOMAN"] = "Nederlands";
@@ -1,4 +1,4 @@
1
- import { EventTypes, TaxBehaviour } from '@jealous-robot-dev/drophr-common';
1
+ import { EventTypes, PaymentRegion, TaxBehaviour } from '@jealous-robot-dev/drophr-common';
2
2
  export declare enum BookingResultResponse {
3
3
  REDIRECT_TO_GUESTROOM = "REDIRECT_TO_GUESTROOM",
4
4
  NOT_FOUND = "NOT_FOUND",
@@ -41,6 +41,7 @@ export interface CheckoutDetails {
41
41
  currency: string;
42
42
  public_key: string;
43
43
  service_fee: number;
44
+ region: PaymentRegion;
44
45
  tax?: SalesTaxDetails;
45
46
  };
46
47
  };
@@ -19,9 +19,9 @@ export interface UserInEvent {
19
19
  }
20
20
  export interface EventReview {
21
21
  rid: string;
22
- author: UserInEvent;
23
22
  raiting: number;
24
23
  comment: string;
24
+ author: UserInEvent;
25
25
  event: {
26
26
  type: EventTypes;
27
27
  name: string;
@@ -34,10 +34,10 @@ export interface HEDraft {
34
34
  export interface HEShortcut {
35
35
  id: string;
36
36
  name: string;
37
- fee: number;
38
37
  pic: string;
39
38
  langs: string[];
40
- type: EventTypes;
41
39
  duration: number;
40
+ type: EventTypes;
41
+ fee: HostEventFee;
42
42
  }
43
43
  export declare type DraftUpdatableValue = HostEventFee | EventTypes | HostEventTime | HostEventPics[] | string | string[] | number | ServiceAudience;
@@ -1,4 +1,4 @@
1
- import { UITHEME, TextDirection, DropHRUserAgents, AuthenticationProviders, Currency, Locale, ENV, CampaignTools } from '@jealous-robot-dev/drophr-common';
1
+ import { UITHEME, TextDirection, DropHRUserAgents, AuthenticationProviders, Currency, Locale, ENV, CampaignTools, PaymentRegion, TaxBehaviour } from '@jealous-robot-dev/drophr-common';
2
2
  import { MainPhrases } from '@jealous-robot-dev/shared-phrases';
3
3
  import { QueryResponse } from './common';
4
4
  import { UrgentEvent } from '..';
@@ -16,6 +16,7 @@ export interface MainUserData {
16
16
  urgent_event?: UrgentEvent;
17
17
  potential_creator?: boolean;
18
18
  can_become_creator?: boolean;
19
+ payment_region: PaymentRegion;
19
20
  unread_messages_count: number;
20
21
  new_notifications_count: number;
21
22
  creator_applicaton_approved: boolean;
@@ -48,9 +49,14 @@ export interface CommonData {
48
49
  direction: TextDirection;
49
50
  API: API;
50
51
  preferences: {
52
+ theme: UITHEME;
51
53
  locale: Locale;
54
+ isAMPM: boolean;
52
55
  currency: Currency;
53
- theme: UITHEME;
56
+ momentLocale: string;
57
+ currencyLocale: string;
58
+ taxBehaviour: TaxBehaviour;
59
+ paymentRegion: PaymentRegion;
54
60
  };
55
61
  }
56
62
  export interface MainDataResponse extends QueryResponse<CommonData, MainPhrases> {
@@ -14,16 +14,6 @@ export interface GuestBookingCancellationData {
14
14
  pic: string;
15
15
  sid: string;
16
16
  }
17
- export interface MailBookingCancellationData {
18
- firstname: string;
19
- lastname: string;
20
- time: number;
21
- to_refund: {
22
- currency: string;
23
- amount: number;
24
- fee: number;
25
- };
26
- }
27
17
  export interface HostBookingCancellationData {
28
18
  event: {
29
19
  sid: string;
@@ -31,6 +21,7 @@ export interface HostBookingCancellationData {
31
21
  ends_at: number;
32
22
  starts_at: number;
33
23
  };
24
+ currency: string;
34
25
  income_loss: number;
35
26
  has_gold_badge: boolean;
36
27
  will_lose_gold_badge: boolean;
@@ -46,8 +37,3 @@ export interface HostCancellationListedSeances {
46
37
  starts_at: number;
47
38
  }[];
48
39
  }
49
- export interface PersonalRefundOfferData {
50
- active_till: number;
51
- currency: string;
52
- amount: number;
53
- }
@@ -28,6 +28,7 @@ export interface HostPayoutsMonth {
28
28
  services: HostPayoutsEvt[];
29
29
  }
30
30
  export interface InitialHostPayoutsData {
31
+ currency: string;
31
32
  total_income: number;
32
33
  payouts_received: number;
33
34
  available_months: number[];
@@ -1,8 +1,9 @@
1
1
  import { UserPaymentSettingsPhrases } from '@jealous-robot-dev/shared-phrases';
2
- import { CAVStatus } from '@jealous-robot-dev/drophr-common';
2
+ import { CAVStatus, PaymentRegion } from '@jealous-robot-dev/drophr-common';
3
3
  import { QueryResponse } from '../common';
4
4
  export interface UserPaymentSettingsData {
5
- connected_account?: string;
5
+ payments_region: PaymentRegion;
6
+ is_setup_payouts?: boolean;
6
7
  connect_status?: CAVStatus;
7
8
  is_eligible?: boolean;
8
9
  last_update: number;
@@ -1,5 +1,5 @@
1
- import { UserPersonalInfoPhrases } from '@jealous-robot-dev/shared-phrases';
2
1
  import { PhoneNumber, UserAddress } from '@jealous-robot-dev/drophr-common';
2
+ import { UserPersonalInfoPhrases } from '@jealous-robot-dev/shared-phrases';
3
3
  import { QueryResponse } from '../common';
4
4
  export interface PersonalInfoBirthday {
5
5
  year: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.57.4",
3
+ "version": "1.57.6",
4
4
  "description": "Meetle common types of API responses",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",