@jealous-robot-dev/shared-types-responses 1.30.16 → 1.30.19
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.
@@ -20,6 +20,7 @@ export declare enum NotificationTypes {
|
|
20
20
|
SUCCESSFULL_BOOKING = "SUCCESSFULL_BOOKING",
|
21
21
|
UPDATES_FROM_HOST = "UPDATES_FROM_HOST",
|
22
22
|
CANCELLED_BY_HOST = "CANCELLED_BY_HOST",
|
23
|
+
WELCOME_MEMBER = "WELCOME_MEMBER",
|
23
24
|
CUSTOMER_SEANCE_REMINDER = "PRESCHEDULED_CUSTOMER_SEANCE_REMINDER",
|
24
25
|
HOST_SEANCE_REMINDER = "PRESCHEDULED_HOST_SEANCE_REMINDER",
|
25
26
|
WELCOME_TO_COMMUNITY = "WELCOME_TO_COMMUNITY",
|
@@ -38,12 +39,15 @@ export declare enum NotificationTypes {
|
|
38
39
|
STRIPE_CONNECTION_SUCCESS = "STRIPE_CONNECTION_SUCCESS",
|
39
40
|
STRIPE_CONNECTION_FAILURE = "STRIPE_CONNECTION_FAILURE"
|
40
41
|
}
|
42
|
+
export declare const CUSTOMER_NOTIFS: NotificationTypes[];
|
43
|
+
export declare const HOST_NOTIFS: NotificationTypes[];
|
41
44
|
export declare enum NotificationIcons {
|
42
45
|
CANCELLATION = "CANCELLATION",
|
43
46
|
MINUS_USER = "MINUS_USER",
|
44
47
|
CALENDAR = "CALENDAR",
|
45
48
|
CONGRATS = "CONGRATS",
|
46
49
|
SECURITY = "SECURITY",
|
50
|
+
MAGICIAN = "MAGICIAN",
|
47
51
|
NEW_USER = "NEW_USER",
|
48
52
|
PADLOCK = "PADLOCK",
|
49
53
|
PAYMENT = "PAYMENT",
|
@@ -57,10 +61,9 @@ export interface WebNotification {
|
|
57
61
|
unseen: boolean;
|
58
62
|
time: string;
|
59
63
|
url?: string;
|
60
|
-
metadata:
|
64
|
+
metadata: any;
|
61
65
|
}
|
62
66
|
export interface Notifications {
|
63
|
-
page: number;
|
64
67
|
has_more: boolean;
|
65
68
|
entries: WebNotification[];
|
66
69
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NotificationIcons = exports.NotificationTypes = exports.NotificationCategory = void 0;
|
3
|
+
exports.NotificationIcons = exports.HOST_NOTIFS = exports.CUSTOMER_NOTIFS = exports.NotificationTypes = exports.NotificationCategory = void 0;
|
4
4
|
var NotificationCategory;
|
5
5
|
(function (NotificationCategory) {
|
6
6
|
NotificationCategory["CUSTOMER"] = "CUSTOMER";
|
@@ -27,6 +27,7 @@ var NotificationTypes;
|
|
27
27
|
NotificationTypes["SUCCESSFULL_BOOKING"] = "SUCCESSFULL_BOOKING";
|
28
28
|
NotificationTypes["UPDATES_FROM_HOST"] = "UPDATES_FROM_HOST";
|
29
29
|
NotificationTypes["CANCELLED_BY_HOST"] = "CANCELLED_BY_HOST";
|
30
|
+
NotificationTypes["WELCOME_MEMBER"] = "WELCOME_MEMBER";
|
30
31
|
//reminders
|
31
32
|
NotificationTypes["CUSTOMER_SEANCE_REMINDER"] = "PRESCHEDULED_CUSTOMER_SEANCE_REMINDER";
|
32
33
|
NotificationTypes["HOST_SEANCE_REMINDER"] = "PRESCHEDULED_HOST_SEANCE_REMINDER";
|
@@ -50,6 +51,43 @@ var NotificationTypes;
|
|
50
51
|
NotificationTypes["STRIPE_CONNECTION_SUCCESS"] = "STRIPE_CONNECTION_SUCCESS";
|
51
52
|
NotificationTypes["STRIPE_CONNECTION_FAILURE"] = "STRIPE_CONNECTION_FAILURE";
|
52
53
|
})(NotificationTypes = exports.NotificationTypes || (exports.NotificationTypes = {}));
|
54
|
+
exports.CUSTOMER_NOTIFS = [
|
55
|
+
NotificationTypes.CUSTOMER_SEANCE_REMINDER,
|
56
|
+
NotificationTypes.PERSONAL_REFUND_OFFERED,
|
57
|
+
NotificationTypes.COMPLETE_BOOKING_NOTIF,
|
58
|
+
NotificationTypes.OFFER_PERSONAL_REFUND,
|
59
|
+
NotificationTypes.CANCELLED_BY_CUSTOMER,
|
60
|
+
NotificationTypes.SUCCESSFULL_BOOKING,
|
61
|
+
NotificationTypes.UPDATES_FROM_HOST,
|
62
|
+
NotificationTypes.CANCELLED_BY_HOST,
|
63
|
+
NotificationTypes.WELCOME_MEMBER,
|
64
|
+
NotificationTypes.REFUND_FAILED,
|
65
|
+
NotificationTypes.NEW_DEVICE
|
66
|
+
];
|
67
|
+
exports.HOST_NOTIFS = [
|
68
|
+
NotificationTypes.PAYOUT_SENT,
|
69
|
+
NotificationTypes.NEW_CUSTOMER,
|
70
|
+
NotificationTypes.PAYOUT_FAILED,
|
71
|
+
NotificationTypes.ENABLE_PAYOUTS,
|
72
|
+
NotificationTypes.MISSED_HOSTING,
|
73
|
+
NotificationTypes.PAYOUT_SUCCEED,
|
74
|
+
NotificationTypes.REVIEW_RECEIVED,
|
75
|
+
NotificationTypes.GOLD_BADGE_LOST,
|
76
|
+
NotificationTypes.SERVICE_DELETION,
|
77
|
+
NotificationTypes.REMOVED_CUSTOMER,
|
78
|
+
NotificationTypes.TAKEN_TIME_CHOSEN,
|
79
|
+
NotificationTypes.GOLD_BADGE_EARNED,
|
80
|
+
NotificationTypes.TRANSFERS_INACTIVE,
|
81
|
+
NotificationTypes.CUSTOMER_HESISTANCY,
|
82
|
+
NotificationTypes.BOOKING_CANCELLATION,
|
83
|
+
NotificationTypes.WELCOME_TO_COMMUNITY,
|
84
|
+
NotificationTypes.HOST_SEANCE_REMINDER,
|
85
|
+
NotificationTypes.REFUNDED_CANCELLATION,
|
86
|
+
NotificationTypes.SUCCESSFULL_RESCHEDULING,
|
87
|
+
NotificationTypes.SEANCE_CANCELLED_BY_HOST,
|
88
|
+
NotificationTypes.STRIPE_CONNECTION_SUCCESS,
|
89
|
+
NotificationTypes.STRIPE_CONNECTION_FAILURE
|
90
|
+
];
|
53
91
|
var NotificationIcons;
|
54
92
|
(function (NotificationIcons) {
|
55
93
|
NotificationIcons["CANCELLATION"] = "CANCELLATION";
|
@@ -57,6 +95,7 @@ var NotificationIcons;
|
|
57
95
|
NotificationIcons["CALENDAR"] = "CALENDAR";
|
58
96
|
NotificationIcons["CONGRATS"] = "CONGRATS";
|
59
97
|
NotificationIcons["SECURITY"] = "SECURITY";
|
98
|
+
NotificationIcons["MAGICIAN"] = "MAGICIAN";
|
60
99
|
NotificationIcons["NEW_USER"] = "NEW_USER";
|
61
100
|
NotificationIcons["PADLOCK"] = "PADLOCK";
|
62
101
|
NotificationIcons["PAYMENT"] = "PAYMENT";
|