@jealous-robot-dev/shared-types-responses 1.31.3 → 1.31.6
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/stats/payment-history.d.ts +9 -8
- package/build/services/stats/user-notifications.d.ts +7 -3
- package/build/services/stats/user-notifications.js +9 -4
- package/build/services/user-settings/deactivate-account.d.ts +16 -0
- package/build/services/user-settings/deactivate-account.js +6 -0
- package/package.json +1 -1
@@ -20,7 +20,9 @@ export interface SendPDFForm {
|
|
20
20
|
success: LND;
|
21
21
|
email_me: string;
|
22
22
|
}
|
23
|
-
export interface
|
23
|
+
export interface PaymentHistoryPhrases {
|
24
|
+
title: string;
|
25
|
+
no_transactions: LND;
|
24
26
|
common: {
|
25
27
|
load_more: string;
|
26
28
|
send_pdf: string;
|
@@ -29,17 +31,16 @@ export interface PaymentHistoryTransactionsPhrases {
|
|
29
31
|
you: string;
|
30
32
|
};
|
31
33
|
fields: {
|
32
|
-
|
33
|
-
|
34
|
-
|
34
|
+
transactions: {
|
35
|
+
label: string;
|
36
|
+
id: PaymentType;
|
37
|
+
description: string;
|
38
|
+
}[];
|
39
|
+
currency: string;
|
35
40
|
made_at: string;
|
36
41
|
amount: string;
|
37
42
|
};
|
38
43
|
}
|
39
|
-
export interface PaymentHistoryPhrases {
|
40
|
-
title: string;
|
41
|
-
total_transactions: string;
|
42
|
-
}
|
43
44
|
export interface PaymentHistoryTransaction {
|
44
45
|
id: string;
|
45
46
|
amount: number;
|
@@ -9,7 +9,9 @@ export declare enum NotificationTypes {
|
|
9
9
|
NEW_SERVICE_REGISTRED = "NEW_SERVICE_REGISTRED",
|
10
10
|
SERVICE_DELETION = "SERVICE_DELETION",
|
11
11
|
NEW_CUSTOMER = "NEW_CUSTOMER",
|
12
|
+
NO_CUSTOMERS = "NO_CUSTOMERS",
|
12
13
|
MISSED_HOSTING = "MISSED_HOSTING",
|
14
|
+
SEANCE_UTILIZED = "SEANCE_UTILIZED",
|
13
15
|
REVIEW_RECEIVED = "REVIEW_RECEIVED",
|
14
16
|
GOLD_BADGE_LOST = "GOLD_BADGE_LOST",
|
15
17
|
REMOVED_CUSTOMER = "REMOVED_CUSTOMER",
|
@@ -29,7 +31,6 @@ export declare enum NotificationTypes {
|
|
29
31
|
CUSTOMER_HESISTANCY = "CUSTOMER_HESISTANCY",
|
30
32
|
TAKEN_TIME_CHOSEN = "TAKEN_TIME_CHOSEN",
|
31
33
|
COMPLETE_BOOKING_NOTIF = "COMPLETE_BOOKING_NOTIF",
|
32
|
-
OFFER_PERSONAL_REFUND = "OFFER_PERSONAL_REFUND",
|
33
34
|
NEW_DEVICE = "NEW_DEVICE",
|
34
35
|
PAYOUT_SENT = "PAYOUT_SENT",
|
35
36
|
PAYOUT_MADE = "PAYOUT_MADE",
|
@@ -50,14 +51,17 @@ export declare const HOST_NOTIFS: NotificationTypes[];
|
|
50
51
|
export declare enum NotificationIcons {
|
51
52
|
DISCONNECTION = "DISCONNECTION",
|
52
53
|
CANCELLATION = "CANCELLATION",
|
54
|
+
NO_CUSTOMERS = "NO_CUSTOMERS",
|
53
55
|
MINUS_USER = "MINUS_USER",
|
54
56
|
CONNECTION = "CONNECTION",
|
57
|
+
GOLD_BADGE = "GOLD_BADGE",
|
55
58
|
CALENDAR = "CALENDAR",
|
56
59
|
CONGRATS = "CONGRATS",
|
57
60
|
SECURITY = "SECURITY",
|
58
61
|
MAGICIAN = "MAGICIAN",
|
59
62
|
NEW_USER = "NEW_USER",
|
60
63
|
PADLOCK = "PADLOCK",
|
64
|
+
BOOKING = "BOOKING",
|
61
65
|
PAYMENT = "PAYMENT",
|
62
66
|
REVIEW = "REVIEW",
|
63
67
|
POLICY = "POLICY"
|
@@ -90,8 +94,8 @@ export interface NotificationTemplate {
|
|
90
94
|
export interface UserNotificationsPhrases {
|
91
95
|
title: string;
|
92
96
|
categories: {
|
93
|
-
|
94
|
-
|
97
|
+
customer: string;
|
98
|
+
host: string;
|
95
99
|
};
|
96
100
|
load_more: string;
|
97
101
|
no_notifications: LND;
|
@@ -15,7 +15,9 @@ var NotificationTypes;
|
|
15
15
|
NotificationTypes["SERVICE_DELETION"] = "SERVICE_DELETION";
|
16
16
|
//hosting
|
17
17
|
NotificationTypes["NEW_CUSTOMER"] = "NEW_CUSTOMER";
|
18
|
+
NotificationTypes["NO_CUSTOMERS"] = "NO_CUSTOMERS";
|
18
19
|
NotificationTypes["MISSED_HOSTING"] = "MISSED_HOSTING";
|
20
|
+
NotificationTypes["SEANCE_UTILIZED"] = "SEANCE_UTILIZED";
|
19
21
|
NotificationTypes["REVIEW_RECEIVED"] = "REVIEW_RECEIVED";
|
20
22
|
NotificationTypes["GOLD_BADGE_LOST"] = "GOLD_BADGE_LOST";
|
21
23
|
NotificationTypes["REMOVED_CUSTOMER"] = "REMOVED_CUSTOMER";
|
@@ -39,7 +41,6 @@ var NotificationTypes;
|
|
39
41
|
NotificationTypes["TAKEN_TIME_CHOSEN"] = "TAKEN_TIME_CHOSEN";
|
40
42
|
//for customers
|
41
43
|
NotificationTypes["COMPLETE_BOOKING_NOTIF"] = "COMPLETE_BOOKING_NOTIF";
|
42
|
-
NotificationTypes["OFFER_PERSONAL_REFUND"] = "OFFER_PERSONAL_REFUND";
|
43
44
|
//security
|
44
45
|
NotificationTypes["NEW_DEVICE"] = "NEW_DEVICE";
|
45
46
|
//payments
|
@@ -58,14 +59,13 @@ var NotificationTypes;
|
|
58
59
|
NotificationTypes["STRIPE_CONNECTION_FAILURE"] = "STRIPE_CONNECTION_FAILURE";
|
59
60
|
})(NotificationTypes = exports.NotificationTypes || (exports.NotificationTypes = {}));
|
60
61
|
exports.CUSTOMER_NOTIFS = [
|
62
|
+
NotificationTypes.BOOKING_CANCELLED_BY_CUSTOMER,
|
63
|
+
NotificationTypes.BOOKING_CANCELLED_BY_HOST,
|
61
64
|
NotificationTypes.CUSTOMER_SEANCE_REMINDER,
|
62
65
|
NotificationTypes.PERSONAL_REFUND_OFFERED,
|
63
66
|
NotificationTypes.COMPLETE_BOOKING_NOTIF,
|
64
|
-
NotificationTypes.OFFER_PERSONAL_REFUND,
|
65
|
-
NotificationTypes.BOOKING_CANCELLED_BY_CUSTOMER,
|
66
67
|
NotificationTypes.SUCCESSFULL_BOOKING,
|
67
68
|
NotificationTypes.UPDATES_FROM_HOST,
|
68
|
-
NotificationTypes.BOOKING_CANCELLED_BY_HOST,
|
69
69
|
NotificationTypes.WELCOME_MEMBER,
|
70
70
|
NotificationTypes.REFUND_FAILED,
|
71
71
|
NotificationTypes.NEW_DEVICE
|
@@ -75,6 +75,7 @@ exports.HOST_NOTIFS = [
|
|
75
75
|
NotificationTypes.PAYOFF_SENT,
|
76
76
|
NotificationTypes.PAYOUT_MADE,
|
77
77
|
NotificationTypes.PAYOFF_MADE,
|
78
|
+
NotificationTypes.NO_CUSTOMERS,
|
78
79
|
NotificationTypes.PAYOUT_LATER,
|
79
80
|
NotificationTypes.NEW_CUSTOMER,
|
80
81
|
NotificationTypes.PAYOUT_FAILED,
|
@@ -83,6 +84,7 @@ exports.HOST_NOTIFS = [
|
|
83
84
|
NotificationTypes.MISSED_HOSTING,
|
84
85
|
NotificationTypes.REVIEW_RECEIVED,
|
85
86
|
NotificationTypes.GOLD_BADGE_LOST,
|
87
|
+
NotificationTypes.SEANCE_UTILIZED,
|
86
88
|
NotificationTypes.SERVICE_DELETION,
|
87
89
|
NotificationTypes.REMOVED_CUSTOMER,
|
88
90
|
NotificationTypes.TAKEN_TIME_CHOSEN,
|
@@ -104,14 +106,17 @@ var NotificationIcons;
|
|
104
106
|
(function (NotificationIcons) {
|
105
107
|
NotificationIcons["DISCONNECTION"] = "DISCONNECTION";
|
106
108
|
NotificationIcons["CANCELLATION"] = "CANCELLATION";
|
109
|
+
NotificationIcons["NO_CUSTOMERS"] = "NO_CUSTOMERS";
|
107
110
|
NotificationIcons["MINUS_USER"] = "MINUS_USER";
|
108
111
|
NotificationIcons["CONNECTION"] = "CONNECTION";
|
112
|
+
NotificationIcons["GOLD_BADGE"] = "GOLD_BADGE";
|
109
113
|
NotificationIcons["CALENDAR"] = "CALENDAR";
|
110
114
|
NotificationIcons["CONGRATS"] = "CONGRATS";
|
111
115
|
NotificationIcons["SECURITY"] = "SECURITY";
|
112
116
|
NotificationIcons["MAGICIAN"] = "MAGICIAN";
|
113
117
|
NotificationIcons["NEW_USER"] = "NEW_USER";
|
114
118
|
NotificationIcons["PADLOCK"] = "PADLOCK";
|
119
|
+
NotificationIcons["BOOKING"] = "BOOKING";
|
115
120
|
NotificationIcons["PAYMENT"] = "PAYMENT";
|
116
121
|
NotificationIcons["REVIEW"] = "REVIEW";
|
117
122
|
NotificationIcons["POLICY"] = "POLICY";
|
@@ -15,3 +15,19 @@ export interface DeactivateAccountPhrases {
|
|
15
15
|
delete: string;
|
16
16
|
};
|
17
17
|
}
|
18
|
+
export declare enum DeactivationBlockReason {
|
19
|
+
HOSTING = "HOSTING",
|
20
|
+
BOOKING = "BOOKING"
|
21
|
+
}
|
22
|
+
export interface DeactivationRequestResponse {
|
23
|
+
can_deactivate: boolean;
|
24
|
+
hosting?: {
|
25
|
+
cancellable: number;
|
26
|
+
non_cancellable: number;
|
27
|
+
};
|
28
|
+
booking?: {
|
29
|
+
cancellable: number;
|
30
|
+
non_cancellable: number;
|
31
|
+
};
|
32
|
+
reason?: DeactivationBlockReason;
|
33
|
+
}
|
@@ -1,2 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeactivationBlockReason = void 0;
|
4
|
+
var DeactivationBlockReason;
|
5
|
+
(function (DeactivationBlockReason) {
|
6
|
+
DeactivationBlockReason["HOSTING"] = "HOSTING";
|
7
|
+
DeactivationBlockReason["BOOKING"] = "BOOKING";
|
8
|
+
})(DeactivationBlockReason = exports.DeactivationBlockReason || (exports.DeactivationBlockReason = {}));
|