playov2-js-utilities 0.3.26 → 0.3.27
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.
|
@@ -230,6 +230,13 @@ const host_booked_venue = {
|
|
|
230
230
|
// ??
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
+
const dm_request = {
|
|
234
|
+
heading: 'Message request',
|
|
235
|
+
text: 'You have a new message request from ${{user_name}}. Tap to reply',
|
|
236
|
+
buttons: [],
|
|
237
|
+
notificationId: ''
|
|
238
|
+
}
|
|
239
|
+
|
|
233
240
|
module.exports = {
|
|
234
241
|
query_from_joinee,
|
|
235
242
|
host_response_to_query,
|
|
@@ -243,5 +250,6 @@ module.exports = {
|
|
|
243
250
|
host_retired_user,
|
|
244
251
|
user_left_game,
|
|
245
252
|
host_cancelled_activity,
|
|
246
|
-
activity_reminder
|
|
253
|
+
activity_reminder,
|
|
254
|
+
dm_request
|
|
247
255
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
//\-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- Private -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-\//
|
|
3
|
-
|
|
3
|
+
// These categories correspond to notification preferences of the user
|
|
4
4
|
const notificationCategories = {
|
|
5
5
|
GROUP: 'group', // group updates
|
|
6
6
|
ACTIVITY: 'activity', // activity updates
|
|
7
7
|
KARMA: 'karma',
|
|
8
8
|
SPLIT_PAYMENTS: 'split_payments',
|
|
9
9
|
OFFERS: 'offers',
|
|
10
|
-
PLAYPAL_ACTIVITY: 'playpal-activity' // activity_suggestion_from_playpals
|
|
10
|
+
PLAYPAL_ACTIVITY: 'playpal-activity', // activity_suggestion_from_playpals
|
|
11
|
+
MESSAGE: 'message'
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
// Android notification channels will be bound to categories
|
|
@@ -83,7 +84,8 @@ const notificationIds = {
|
|
|
83
84
|
HOST_ACTIVITY_PAYOUT: 'host-activity-payout',
|
|
84
85
|
KARMA_CASHBACK: 'karma-cashback',
|
|
85
86
|
ACTIVITY_QUERY_ANSWERED: 'activity-query-answered',
|
|
86
|
-
ACTIVITY_REMINDER: 'activity-reminder'
|
|
87
|
+
ACTIVITY_REMINDER: 'activity-reminder',
|
|
88
|
+
MESSAGE_REQUEST: 'message-request'
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
// TODO - Check targets against current value
|
|
@@ -446,9 +448,19 @@ const config = {
|
|
|
446
448
|
type: ["push"],
|
|
447
449
|
buttons: [],
|
|
448
450
|
android_channel_id: notificationChannels.activity_reminders
|
|
451
|
+
},
|
|
452
|
+
[notificationIds.MESSAGE_REQUEST]: {
|
|
453
|
+
category: notificationCategories.MESSAGE,
|
|
454
|
+
target: "message",
|
|
455
|
+
title: "Message request",
|
|
456
|
+
type: ["push", "drawer"],
|
|
457
|
+
buttons: [],
|
|
458
|
+
android_channel_id: ''
|
|
449
459
|
}
|
|
450
460
|
};
|
|
451
461
|
|
|
462
|
+
// https://playo.co/${target}/${contentId}${queryUrl} //-> contentId - unique identifier id
|
|
463
|
+
|
|
452
464
|
const notificationButtons = {
|
|
453
465
|
[notificationIds.ACTIVITY_NOTIFY_PUSH]: []
|
|
454
466
|
};
|