playov2-js-utilities 0.3.14 → 0.3.17

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.
@@ -25,6 +25,7 @@ if (!PROJECT || !LOCATION) {
25
25
  * url: String,
26
26
  * headers: Object,
27
27
  * body: Object, // not needed if GET request
28
+ * ttl: Optional, date in utc format, consumer will check if the ttl has been exceeded or not and then will respond accordingly
28
29
  * ...
29
30
  *
30
31
  * }
@@ -32,10 +33,10 @@ if (!PROJECT || !LOCATION) {
32
33
  * delay
33
34
  * }
34
35
  * @param {String} taskId -used as de-duplication key
35
- * @param {Date} ttl - utc date format
36
36
  * @param {String} requestId
37
+ * @returns {}
37
38
  */
38
- async function createHttpTask(queueId, payload, messageProcessingProperties, taskId, ttl, requestId) {
39
+ async function createHttpTask(queueId, payload, messageProcessingProperties, taskId, requestId) {
39
40
 
40
41
  try {
41
42
  const project = PROJECT;
@@ -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
 
@@ -163,7 +163,7 @@ const config = {
163
163
  target: "group",
164
164
  path: "board",
165
165
  title: "Group Update",
166
- type: ["drawer","push"],
166
+ type: ["drawer", "push"],
167
167
  buttons: [],
168
168
  android_channel_id: notificationChannels.group_updates
169
169
  },
@@ -435,11 +435,11 @@ const config = {
435
435
  buttons: [],
436
436
  android_channel_id: notificationChannels.activity_query
437
437
  },
438
- [notificationIds.ACTIVITY_REMINDER] : {
438
+ [notificationIds.ACTIVITY_REMINDER]: {
439
439
  category: notificationCategories.ACTIVITY,
440
440
  target: "match",
441
441
  title: "Activity Reminder",
442
- type: ["push", "drawer"],
442
+ type: ["push"],
443
443
  buttons: [],
444
444
  android_channel_id: notificationChannels.activity_reminders
445
445
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playov2-js-utilities",
3
- "version": "0.3.14",
3
+ "version": "0.3.17",
4
4
  "description": "Private package for JS utility functions",
5
5
  "main": "index.js",
6
6
  "scripts": {