@jealous-robot-dev/shared-types-responses 1.30.12 → 1.30.15
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.
@@ -1,39 +1,79 @@
|
|
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
|
+
TRANSFERS_IN_ACTIVE = "TRANSFERS_IN_ACTIVE",
|
38
|
+
STRIPE_CONNECTION_SUCCESS = "STRIPE_CONNECTION_SUCCESS",
|
39
|
+
STRIPE_CONNECTION_FAILURE = "STRIPE_CONNECTION_FAILURE"
|
40
|
+
}
|
41
|
+
export declare enum NotificationIcons {
|
42
|
+
CANCELLATION = "CANCELLATION",
|
43
|
+
MINUS_USER = "MINUS_USER",
|
44
|
+
CALENDAR = "CALENDAR",
|
45
|
+
CONGRATS = "CONGRATS",
|
46
|
+
SECURITY = "SECURITY",
|
47
|
+
NEW_USER = "NEW_USER",
|
48
|
+
PADLOCK = "PADLOCK",
|
49
|
+
PAYMENT = "PAYMENT",
|
50
|
+
REVIEW = "REVIEW",
|
51
|
+
POLICY = "POLICY"
|
18
52
|
}
|
19
53
|
export interface WebNotification {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
54
|
+
id: string;
|
55
|
+
type: NotificationTypes;
|
56
|
+
category: NotificationCategory;
|
57
|
+
unseen: boolean;
|
58
|
+
time: string;
|
59
|
+
url?: string;
|
60
|
+
metadata: object;
|
61
|
+
}
|
62
|
+
export interface Notifications {
|
63
|
+
page: number;
|
64
|
+
has_more: boolean;
|
65
|
+
entries: WebNotification[];
|
30
66
|
}
|
31
67
|
export interface UserNotificationsData {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
68
|
+
notifs: {
|
69
|
+
host: Notifications[];
|
70
|
+
customer: Notifications[];
|
71
|
+
};
|
72
|
+
}
|
73
|
+
export interface NotificationTemplate {
|
74
|
+
sentence: string;
|
75
|
+
id: NotificationTypes;
|
76
|
+
icon: NotificationIcons;
|
37
77
|
}
|
38
78
|
export interface UserNotificationsPhrases {
|
39
79
|
title: string;
|
@@ -43,6 +83,7 @@ export interface UserNotificationsPhrases {
|
|
43
83
|
};
|
44
84
|
load_more: string;
|
45
85
|
no_notifications: LND;
|
86
|
+
templates: NotificationTemplate[];
|
46
87
|
}
|
47
88
|
export interface UserNotificationsResponse extends QueryResponse<UserNotificationsData, UserNotificationsPhrases> {
|
48
89
|
}
|
@@ -1,22 +1,65 @@
|
|
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";
|
49
|
+
NotificationTypes["TRANSFERS_IN_ACTIVE"] = "TRANSFERS_IN_ACTIVE";
|
50
|
+
NotificationTypes["STRIPE_CONNECTION_SUCCESS"] = "STRIPE_CONNECTION_SUCCESS";
|
51
|
+
NotificationTypes["STRIPE_CONNECTION_FAILURE"] = "STRIPE_CONNECTION_FAILURE";
|
22
52
|
})(NotificationTypes = exports.NotificationTypes || (exports.NotificationTypes = {}));
|
53
|
+
var NotificationIcons;
|
54
|
+
(function (NotificationIcons) {
|
55
|
+
NotificationIcons["CANCELLATION"] = "CANCELLATION";
|
56
|
+
NotificationIcons["MINUS_USER"] = "MINUS_USER";
|
57
|
+
NotificationIcons["CALENDAR"] = "CALENDAR";
|
58
|
+
NotificationIcons["CONGRATS"] = "CONGRATS";
|
59
|
+
NotificationIcons["SECURITY"] = "SECURITY";
|
60
|
+
NotificationIcons["NEW_USER"] = "NEW_USER";
|
61
|
+
NotificationIcons["PADLOCK"] = "PADLOCK";
|
62
|
+
NotificationIcons["PAYMENT"] = "PAYMENT";
|
63
|
+
NotificationIcons["REVIEW"] = "REVIEW";
|
64
|
+
NotificationIcons["POLICY"] = "POLICY";
|
65
|
+
})(NotificationIcons = exports.NotificationIcons || (exports.NotificationIcons = {}));
|