@jealous-robot-dev/shared-types-responses 1.57.4 → 1.57.5
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/build/services/common.d.ts +4 -1
- package/build/services/common.js +4 -1
- package/build/services/events/events.d.ts +1 -1
- package/build/services/events/host-an-event.d.ts +2 -2
- package/build/services/main-data.d.ts +8 -2
- package/build/services/payments/cancellation.d.ts +1 -15
- package/build/services/stats/creator-payouts.d.ts +1 -0
- package/build/services/user-settings/payments.d.ts +3 -2
- package/build/services/user-settings/personal-info.d.ts +1 -1
- package/package.json +1 -1
@@ -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",
|
package/build/services/common.js
CHANGED
@@ -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";
|
@@ -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
|
-
|
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
|
-
}
|
@@ -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
|
-
|
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;
|