ins-queue-actions 1.1.84 → 1.1.86
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.
- package/notificationTemplates.js +57 -0
- package/package.json +1 -1
package/notificationTemplates.js
CHANGED
|
@@ -98,6 +98,22 @@ module.exports = {
|
|
|
98
98
|
"serviceName",
|
|
99
99
|
],
|
|
100
100
|
},
|
|
101
|
+
OTP_FOR_SERVICE_START: {
|
|
102
|
+
templateName: "OTP_FOR_SERVICE_START",
|
|
103
|
+
requiredParams: [
|
|
104
|
+
"bookingId",
|
|
105
|
+
"displayedBookingId",
|
|
106
|
+
"otpCode",
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
SP_REMINDER_TO_START_SERVICE: {
|
|
110
|
+
templateName: "SP_REMINDER_TO_START_SERVICE",
|
|
111
|
+
requiredParams: [
|
|
112
|
+
"bookingId",
|
|
113
|
+
"displayedBookingId",
|
|
114
|
+
"scheduledStartTime"
|
|
115
|
+
],
|
|
116
|
+
},
|
|
101
117
|
SCHEDULED_BOOKING_CONFIRMED: {
|
|
102
118
|
templateName: "SCHEDULED_BOOKING_CONFIRMED",
|
|
103
119
|
requiredParams: ["bookingId", "displayedBookingId", "serviceName"],
|
|
@@ -106,6 +122,10 @@ module.exports = {
|
|
|
106
122
|
templateName: "SCHEDULED_BOOKING_PLACED",
|
|
107
123
|
requiredParams: ["bookingId", "displayedBookingId"],
|
|
108
124
|
},
|
|
125
|
+
ONDEMAND_BOOKING_PLACED: {
|
|
126
|
+
templateName: "ONDEMAND_BOOKING_PLACED",
|
|
127
|
+
requiredParams: ["bookingId", "displayedBookingId"],
|
|
128
|
+
},
|
|
109
129
|
ADMIN_CANCELLED_BOOKING_CUSTOMER: {
|
|
110
130
|
templateName: "ADMIN_CANCELLED_BOOKING_CUSTOMER",
|
|
111
131
|
requiredParams: ["bookingId", "displayedBookingId"],
|
|
@@ -191,6 +211,22 @@ module.exports = {
|
|
|
191
211
|
"serviceName",
|
|
192
212
|
],
|
|
193
213
|
},
|
|
214
|
+
OTP_FOR_SERVICE_START: {
|
|
215
|
+
templateName: "OTP_FOR_SERVICE_START",
|
|
216
|
+
requiredParams: [
|
|
217
|
+
"bookingId",
|
|
218
|
+
"displayedBookingId",
|
|
219
|
+
"otpCode",
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
SP_REMINDER_TO_START_SERVICE: {
|
|
223
|
+
templateName: "SP_REMINDER_TO_START_SERVICE",
|
|
224
|
+
requiredParams: [
|
|
225
|
+
"bookingId",
|
|
226
|
+
"displayedBookingId",
|
|
227
|
+
"scheduledStartTime"
|
|
228
|
+
],
|
|
229
|
+
},
|
|
194
230
|
CUSTOMER_SCHEDULED_BOOKING_SUCCESSFUL: {
|
|
195
231
|
templateName: "CUSTOMER_SCHEDULED_BOOKING_SUCCESSFUL",
|
|
196
232
|
requiredParams: [
|
|
@@ -276,6 +312,10 @@ module.exports = {
|
|
|
276
312
|
templateName: "SCHEDULED_BOOKING_PLACED",
|
|
277
313
|
requiredParams: ["bookingId", "displayedBookingId"],
|
|
278
314
|
},
|
|
315
|
+
ONDEMAND_BOOKING_PLACED: {
|
|
316
|
+
templateName: "ONDEMAND_BOOKING_PLACED",
|
|
317
|
+
requiredParams: ["bookingId", "displayedBookingId"],
|
|
318
|
+
},
|
|
279
319
|
ADMIN_CANCELLED_BOOKING: {
|
|
280
320
|
templateName: "ADMIN_CANCELLED_BOOKING",
|
|
281
321
|
requiredParams: ["bookingId", "displayedBookingId"],
|
|
@@ -323,6 +363,7 @@ module.exports = {
|
|
|
323
363
|
},
|
|
324
364
|
SEND_PUSH_NOTIFICATION: {
|
|
325
365
|
ACTION_NAME: "SEND_PUSH_NOTIFICATION",
|
|
366
|
+
|
|
326
367
|
NEW_ONDEMAND_REQUEST: {
|
|
327
368
|
templateName: "NEW_ONDEMAND_REQUEST",
|
|
328
369
|
requiredParams: ["service", "price", "zipCode", "tip"],
|
|
@@ -367,6 +408,22 @@ module.exports = {
|
|
|
367
408
|
templateName: "CUSTOMER_ORDER_PLACED",
|
|
368
409
|
requiredParams: ["bookingId", "displayedBookingId", "serviceName"],
|
|
369
410
|
},
|
|
411
|
+
OTP_FOR_SERVICE_START: {
|
|
412
|
+
templateName: "OTP_FOR_SERVICE_START",
|
|
413
|
+
requiredParams: [
|
|
414
|
+
"bookingId",
|
|
415
|
+
"displayedBookingId",
|
|
416
|
+
"otpCode",
|
|
417
|
+
],
|
|
418
|
+
},
|
|
419
|
+
SP_REMINDER_TO_START_SERVICE: {
|
|
420
|
+
templateName: "SP_REMINDER_TO_START_SERVICE",
|
|
421
|
+
requiredParams: [
|
|
422
|
+
"bookingId",
|
|
423
|
+
"displayedBookingId",
|
|
424
|
+
"scheduledStartTime"
|
|
425
|
+
],
|
|
426
|
+
},
|
|
370
427
|
SERVICE_PROVIDER_ORDER_PLACED: {
|
|
371
428
|
templateName: "SERVICE_PROVIDER_ORDER_PLACED",
|
|
372
429
|
requiredParams: ["bookingId", "displayedBookingId"],
|