playov2-js-utilities 0.3.16 → 0.3.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.
@@ -34,6 +34,7 @@ if (!PROJECT || !LOCATION) {
34
34
  * }
35
35
  * @param {String} taskId -used as de-duplication key
36
36
  * @param {String} requestId
37
+ * @returns {}
37
38
  */
38
39
  async function createHttpTask(queueId, payload, messageProcessingProperties, taskId, requestId) {
39
40
 
@@ -69,9 +70,10 @@ async function createHttpTask(queueId, payload, messageProcessingProperties, tas
69
70
  const request = { parent: parent, task: task };
70
71
  const [response] = await client.createTask(request);
71
72
 
72
- LOGGER.info(requestId, { name: response.name, response }, `Added task to queue ${queueId}}`)
73
+ LOGGER.info(requestId, { name: response.name, response }, `Added task to queue ${queueId}}`);
74
+ return response;
73
75
  } catch (err) {
74
- LOGGER.error(requestId, err, err.message)
76
+ throw err;
75
77
  }
76
78
  };
77
79
 
@@ -52,6 +52,7 @@ const notificationIds = {
52
52
  ACTIVITY_REQUEST: 'activity-request',
53
53
  ACTIVITY_REQUEST_RESPONSE: 'activity-request-response',
54
54
  HOST_RETIRED: 'host-retired',
55
+ JOINEE_RETIRED: 'joinee-retired',
55
56
  EDIT_ACTIVITY: 'edit-activity',
56
57
  ACTIVITY_FULL: 'activity-full',
57
58
  VENUE_TAGGED: 'venue-tagged',
@@ -61,7 +62,6 @@ const notificationIds = {
61
62
  COHOST_DELETED: 'cohost-deleted',
62
63
  ACTIVITY_QUERY: 'activity-query',
63
64
  ACTIVITY_CANCEL: 'activity-cancel',
64
- ACTIVITY_REMINDER: 'activity-reminder',
65
65
  ACTIVITY_HOSTED: 'activity-hosted',
66
66
  ACTIVITY_REQUEST_MANAGE: 'activity-request-manage',
67
67
  ACTIVITY_JOINED: 'activity-joined',
@@ -201,6 +201,15 @@ const config = {
201
201
  android_channel_id: notificationChannels.activity_player_in_out
202
202
  },
203
203
  [notificationIds.HOST_RETIRED]: {
204
+ category: notificationCategories.ACTIVITY,
205
+ target: "match",
206
+ path: "manage",
207
+ title: "Activity Update",
208
+ type: ["push", "drawer"],
209
+ buttons: [],
210
+ android_channel_id: notificationChannels.activity_player_in_out
211
+ },
212
+ [notificationIds.JOINEE_RETIRED]: {
204
213
  category: notificationCategories.ACTIVITY,
205
214
  target: "match",
206
215
  title: "Activity Update",
@@ -281,14 +290,6 @@ const config = {
281
290
  buttons: [],
282
291
  android_channel_id: notificationChannels.activity_updates
283
292
  },
284
- [notificationIds.ACTIVITY_REMINDER]: {
285
- category: notificationCategories.ACTIVITY,
286
- target: "match",
287
- title: "Activity Reminder",
288
- type: ["push"],
289
- buttons: [],
290
- android_channel_id: notificationChannels.activity_player_in_out
291
- },
292
293
  [notificationIds.ACTIVITY_HOSTED]: {
293
294
  category: "playpal-activity",
294
295
  target: "match",
@@ -413,7 +414,7 @@ const config = {
413
414
  },
414
415
  [notificationIds.HOST_ACTIVITY_PAYOUT]: {
415
416
  category: notificationCategories.ACTIVITY,
416
- target: "playocredits",
417
+ target: "passbook/0",
417
418
  title: "Activity Update",
418
419
  type: ["push", "drawer"],
419
420
  buttons: [],
@@ -421,7 +422,7 @@ const config = {
421
422
  },
422
423
  [notificationIds.KARMA_CASHBACK]: {
423
424
  category: notificationCategories.ACTIVITY,
424
- target: "passbook",
425
+ target: "passbook/1",
425
426
  title: "Karma Update",
426
427
  type: ["push", "drawer"],
427
428
  android_channel_id: notificationChannels.karma,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playov2-js-utilities",
3
- "version": "0.3.16",
3
+ "version": "0.3.19",
4
4
  "description": "Private package for JS utility functions",
5
5
  "main": "index.js",
6
6
  "scripts": {