@jealous-robot-dev/shared-types-responses 1.30.10 → 1.30.13
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.
@@ -15,6 +15,8 @@ export declare enum Cookies {
|
|
15
15
|
export declare const ListedCookes: Cookies[];
|
16
16
|
export declare enum PermissionCookies {
|
17
17
|
PW_RESET_VERIFICATION = "pwrv",
|
18
|
+
PAYMENTS_DISCONNECT = "_pdc",
|
19
|
+
PAYMENTS_CONNECT = "_pc",
|
18
20
|
DELETE_ACCOUNT = "_da",
|
19
21
|
CANCEL_BOOKING = "_cb",
|
20
22
|
CANCEL_SEANCE = "_cs",
|
@@ -25,6 +25,8 @@ exports.ListedCookes = [
|
|
25
25
|
var PermissionCookies;
|
26
26
|
(function (PermissionCookies) {
|
27
27
|
PermissionCookies["PW_RESET_VERIFICATION"] = "pwrv";
|
28
|
+
PermissionCookies["PAYMENTS_DISCONNECT"] = "_pdc";
|
29
|
+
PermissionCookies["PAYMENTS_CONNECT"] = "_pc";
|
28
30
|
PermissionCookies["DELETE_ACCOUNT"] = "_da";
|
29
31
|
PermissionCookies["CANCEL_BOOKING"] = "_cb";
|
30
32
|
PermissionCookies["CANCEL_SEANCE"] = "_cs";
|
@@ -40,6 +42,8 @@ var CookieAges;
|
|
40
42
|
})(CookieAges = exports.CookieAges || (exports.CookieAges = {}));
|
41
43
|
exports.PWRequiringPermissionsList = [
|
42
44
|
PermissionCookies.PW_RESET_VERIFICATION,
|
45
|
+
PermissionCookies.PAYMENTS_DISCONNECT,
|
46
|
+
PermissionCookies.PAYMENTS_CONNECT,
|
43
47
|
PermissionCookies.CANCEL_BOOKING,
|
44
48
|
PermissionCookies.DELETE_ACCOUNT,
|
45
49
|
PermissionCookies.SUSPEND_EVENT,
|
@@ -1,39 +1,75 @@
|
|
1
1
|
import { QueryResponse, LND } from '../common';
|
2
2
|
export declare enum NotificationCategory {
|
3
|
-
|
4
|
-
|
3
|
+
CUSTOMER = "CUSTOMER",
|
4
|
+
HOST = "HOST"
|
5
5
|
}
|
6
6
|
export declare enum NotificationTypes {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
REVIEW_RECEIVED = "
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
SUCCESSFULL_RESCHEDULING = "SUCCESSFULL_RESCHEDULING",
|
8
|
+
SEANCE_CANCELLED_BY_HOST = "SEANCE_CANCELLED_BY_HOST",
|
9
|
+
NEW_SERVICE_REGISTRED = "NEW_SERVICE_REGISTRED",
|
10
|
+
SERVICE_DELETION = "SERVICE_DELETION",
|
11
|
+
ENABLE_PAYOUTS = "ENABLE_PAYOUTS",
|
12
|
+
NEW_CUSTOMER = "NEW_CUSTOMER",
|
13
|
+
MISSED_HOSTING = "MISSED_HOSTING",
|
14
|
+
REVIEW_RECEIVED = "REVIEW_RECEIVED",
|
15
|
+
BOOKING_CANCELLATION = "BOOKING_CANCELLATION",
|
16
|
+
REFUNDED_CANCELLATION = "REFUNDED_CANCELLATION",
|
17
|
+
PERSONAL_REFUND_OFFERED = "PERSONAL_REFUND_OFFERED",
|
18
|
+
CANCELLED_BY_CUSTOMER = "CANCELLED_BY_CUSTOMER",
|
19
|
+
SUCCESSFULL_BOOKING = "SUCCESSFULL_BOOKING",
|
20
|
+
UPDATES_FROM_HOST = "UPDATES_FROM_HOST",
|
21
|
+
CANCELLED_BY_HOST = "CANCELLED_BY_HOST",
|
22
|
+
REFUND_FAILED = "REFUND_FAILED",
|
23
|
+
CUSTOMER_SEANCE_REMINDER = "PRESCHEDULED_CUSTOMER_SEANCE_REMINDER",
|
24
|
+
HOST_SEANCE_REMINDER = "PRESCHEDULED_HOST_SEANCE_REMINDER",
|
25
|
+
WELCOME_TO_COMMUNITY = "WELCOME_TO_COMMUNITY",
|
26
|
+
CUSTOMER_HESISTANCY = "CUSTOMER_HESISTANCY",
|
27
|
+
TAKEN_TIME_CHOSEN = "TAKEN_TIME_CHOSEN",
|
28
|
+
COMPLETE_BOOKING_NOTIF = "COMPLETE_BOOKING_NOTIF",
|
29
|
+
OFFER_PERSONAL_REFUND = "OFFER_PERSONAL_REFUND",
|
30
|
+
NEW_DEVICE = "NEW_DEVICE",
|
31
|
+
MAIL_CANCELLATION_OFFER = "MAIL_CANCELLATION_OFFER",
|
32
|
+
PAYOUT_SENT = "PAYOUT_SENT",
|
33
|
+
PAYOUT_FAILED = "PAYOUT_FAILED",
|
34
|
+
PAYOUT_SUCCEED = "PAYOUT_SUCCEED",
|
35
|
+
GOLD_BADGE_LOST = "GOLD_BADGE_LOST",
|
36
|
+
GOLD_BADGE_EARNED = "GOLD_BADGE_EARNED"
|
37
|
+
}
|
38
|
+
export declare enum NotificationIcons {
|
39
|
+
CANCELLATION = "CANCELLATION",
|
40
|
+
MINUS_USER = "MINUS_USER",
|
41
|
+
CALENDAR = "CALENDAR",
|
42
|
+
CONGRATS = "CONGRATS",
|
43
|
+
SECURITY = "SECURITY",
|
44
|
+
NEW_USER = "NEW_USER",
|
45
|
+
PADLOCK = "PADLOCK",
|
46
|
+
PAYMENT = "PAYMENT",
|
47
|
+
REVIEW = "REVIEW",
|
48
|
+
POLICY = "POLICY"
|
18
49
|
}
|
19
50
|
export interface WebNotification {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
51
|
+
id: string;
|
52
|
+
type: NotificationTypes;
|
53
|
+
category: NotificationCategory;
|
54
|
+
time: string;
|
55
|
+
url?: string;
|
56
|
+
metadata: object;
|
57
|
+
}
|
58
|
+
export interface Notifications {
|
59
|
+
page: number;
|
60
|
+
has_more: boolean;
|
61
|
+
entries: WebNotification[];
|
30
62
|
}
|
31
63
|
export interface UserNotificationsData {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
64
|
+
topics: {
|
65
|
+
host: Notifications[];
|
66
|
+
customer: Notifications[];
|
67
|
+
};
|
68
|
+
}
|
69
|
+
export interface NotificationTemplate {
|
70
|
+
sentence: string;
|
71
|
+
id: NotificationTypes;
|
72
|
+
icon: NotificationIcons;
|
37
73
|
}
|
38
74
|
export interface UserNotificationsPhrases {
|
39
75
|
title: string;
|
@@ -43,6 +79,7 @@ export interface UserNotificationsPhrases {
|
|
43
79
|
};
|
44
80
|
load_more: string;
|
45
81
|
no_notifications: LND;
|
82
|
+
templates: NotificationTemplate[];
|
46
83
|
}
|
47
84
|
export interface UserNotificationsResponse extends QueryResponse<UserNotificationsData, UserNotificationsPhrases> {
|
48
85
|
}
|
@@ -1,22 +1,62 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NotificationTypes = exports.NotificationCategory = void 0;
|
3
|
+
exports.NotificationIcons = exports.NotificationTypes = exports.NotificationCategory = void 0;
|
4
4
|
var NotificationCategory;
|
5
5
|
(function (NotificationCategory) {
|
6
|
-
NotificationCategory["
|
7
|
-
NotificationCategory["
|
6
|
+
NotificationCategory["CUSTOMER"] = "CUSTOMER";
|
7
|
+
NotificationCategory["HOST"] = "HOST";
|
8
8
|
})(NotificationCategory = exports.NotificationCategory || (exports.NotificationCategory = {}));
|
9
9
|
var NotificationTypes;
|
10
10
|
(function (NotificationTypes) {
|
11
|
-
|
12
|
-
NotificationTypes["
|
13
|
-
NotificationTypes["
|
14
|
-
NotificationTypes["
|
15
|
-
NotificationTypes["
|
16
|
-
NotificationTypes["
|
17
|
-
|
18
|
-
NotificationTypes["
|
19
|
-
NotificationTypes["
|
20
|
-
NotificationTypes["
|
21
|
-
NotificationTypes["
|
11
|
+
//host management
|
12
|
+
NotificationTypes["SUCCESSFULL_RESCHEDULING"] = "SUCCESSFULL_RESCHEDULING";
|
13
|
+
NotificationTypes["SEANCE_CANCELLED_BY_HOST"] = "SEANCE_CANCELLED_BY_HOST";
|
14
|
+
NotificationTypes["NEW_SERVICE_REGISTRED"] = "NEW_SERVICE_REGISTRED";
|
15
|
+
NotificationTypes["SERVICE_DELETION"] = "SERVICE_DELETION";
|
16
|
+
NotificationTypes["ENABLE_PAYOUTS"] = "ENABLE_PAYOUTS";
|
17
|
+
//hosting
|
18
|
+
NotificationTypes["NEW_CUSTOMER"] = "NEW_CUSTOMER";
|
19
|
+
NotificationTypes["MISSED_HOSTING"] = "MISSED_HOSTING";
|
20
|
+
NotificationTypes["REVIEW_RECEIVED"] = "REVIEW_RECEIVED";
|
21
|
+
NotificationTypes["BOOKING_CANCELLATION"] = "BOOKING_CANCELLATION";
|
22
|
+
NotificationTypes["REFUNDED_CANCELLATION"] = "REFUNDED_CANCELLATION";
|
23
|
+
//customer
|
24
|
+
NotificationTypes["PERSONAL_REFUND_OFFERED"] = "PERSONAL_REFUND_OFFERED";
|
25
|
+
NotificationTypes["CANCELLED_BY_CUSTOMER"] = "CANCELLED_BY_CUSTOMER";
|
26
|
+
NotificationTypes["SUCCESSFULL_BOOKING"] = "SUCCESSFULL_BOOKING";
|
27
|
+
NotificationTypes["UPDATES_FROM_HOST"] = "UPDATES_FROM_HOST";
|
28
|
+
NotificationTypes["CANCELLED_BY_HOST"] = "CANCELLED_BY_HOST";
|
29
|
+
NotificationTypes["REFUND_FAILED"] = "REFUND_FAILED";
|
30
|
+
//reminders
|
31
|
+
NotificationTypes["CUSTOMER_SEANCE_REMINDER"] = "PRESCHEDULED_CUSTOMER_SEANCE_REMINDER";
|
32
|
+
NotificationTypes["HOST_SEANCE_REMINDER"] = "PRESCHEDULED_HOST_SEANCE_REMINDER";
|
33
|
+
//tips for hosts
|
34
|
+
NotificationTypes["WELCOME_TO_COMMUNITY"] = "WELCOME_TO_COMMUNITY";
|
35
|
+
NotificationTypes["CUSTOMER_HESISTANCY"] = "CUSTOMER_HESISTANCY";
|
36
|
+
NotificationTypes["TAKEN_TIME_CHOSEN"] = "TAKEN_TIME_CHOSEN";
|
37
|
+
//for customers
|
38
|
+
NotificationTypes["COMPLETE_BOOKING_NOTIF"] = "COMPLETE_BOOKING_NOTIF";
|
39
|
+
NotificationTypes["OFFER_PERSONAL_REFUND"] = "OFFER_PERSONAL_REFUND";
|
40
|
+
//security
|
41
|
+
NotificationTypes["NEW_DEVICE"] = "NEW_DEVICE";
|
42
|
+
NotificationTypes["MAIL_CANCELLATION_OFFER"] = "MAIL_CANCELLATION_OFFER";
|
43
|
+
//payments
|
44
|
+
NotificationTypes["PAYOUT_SENT"] = "PAYOUT_SENT";
|
45
|
+
NotificationTypes["PAYOUT_FAILED"] = "PAYOUT_FAILED";
|
46
|
+
NotificationTypes["PAYOUT_SUCCEED"] = "PAYOUT_SUCCEED";
|
47
|
+
NotificationTypes["GOLD_BADGE_LOST"] = "GOLD_BADGE_LOST";
|
48
|
+
NotificationTypes["GOLD_BADGE_EARNED"] = "GOLD_BADGE_EARNED";
|
22
49
|
})(NotificationTypes = exports.NotificationTypes || (exports.NotificationTypes = {}));
|
50
|
+
var NotificationIcons;
|
51
|
+
(function (NotificationIcons) {
|
52
|
+
NotificationIcons["CANCELLATION"] = "CANCELLATION";
|
53
|
+
NotificationIcons["MINUS_USER"] = "MINUS_USER";
|
54
|
+
NotificationIcons["CALENDAR"] = "CALENDAR";
|
55
|
+
NotificationIcons["CONGRATS"] = "CONGRATS";
|
56
|
+
NotificationIcons["SECURITY"] = "SECURITY";
|
57
|
+
NotificationIcons["NEW_USER"] = "NEW_USER";
|
58
|
+
NotificationIcons["PADLOCK"] = "PADLOCK";
|
59
|
+
NotificationIcons["PAYMENT"] = "PAYMENT";
|
60
|
+
NotificationIcons["REVIEW"] = "REVIEW";
|
61
|
+
NotificationIcons["POLICY"] = "POLICY";
|
62
|
+
})(NotificationIcons = exports.NotificationIcons || (exports.NotificationIcons = {}));
|
@@ -30,9 +30,14 @@ export interface UserPaymentSettingsPhrases {
|
|
30
30
|
};
|
31
31
|
title: string;
|
32
32
|
on_payouts: string;
|
33
|
-
payout_solutions:
|
33
|
+
payout_solutions: {
|
34
|
+
label: string;
|
35
|
+
learn_more: string;
|
36
|
+
description: string;
|
37
|
+
};
|
34
38
|
last_update: string;
|
35
39
|
connected_account: {
|
40
|
+
title: string;
|
36
41
|
create: string;
|
37
42
|
disconnect: string;
|
38
43
|
description: string;
|
@@ -44,6 +49,7 @@ export interface UserPaymentSettingsPhrases {
|
|
44
49
|
session_expired: LND;
|
45
50
|
preferred_currency: {
|
46
51
|
label: string;
|
52
|
+
learn_more: string;
|
47
53
|
description: string;
|
48
54
|
currencies: Currency[];
|
49
55
|
};
|