@peacom/model 2.0.148 → 2.0.149
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/package.json
CHANGED
|
@@ -20,7 +20,32 @@ export declare enum MessageEvent {
|
|
|
20
20
|
BULK_DONE = "bulk.done",
|
|
21
21
|
BULK_FINISHED = "bulk.finished",
|
|
22
22
|
WEBHOOK = "webhook",
|
|
23
|
-
VNA_SUMMARY_CHECK_IN_REPORT = "VNA_SUMMARY_CHECK_IN_REPORT"
|
|
23
|
+
VNA_SUMMARY_CHECK_IN_REPORT = "VNA_SUMMARY_CHECK_IN_REPORT",
|
|
24
|
+
CONVERSATION_MESSAGE = "conversation.message",
|
|
25
|
+
CONVERSATION_LIVE_AGENT = "conversation.live_agent",
|
|
26
|
+
TICKET_ASSIGN = "ticket.assign"
|
|
27
|
+
}
|
|
28
|
+
export declare enum NotificationType {
|
|
29
|
+
CHANNEL_OA_STATUS = 1,
|
|
30
|
+
CHANNEL_REQUEST = 2,
|
|
31
|
+
TEMPLATE_REQUEST = 3,
|
|
32
|
+
TEMPLATE_APPROVE = 4,
|
|
33
|
+
TEMPLATE_REJECT = 5,
|
|
34
|
+
TEMPLATE_DELETE = 6,
|
|
35
|
+
COMPANY_KYC_REQUEST = 7,
|
|
36
|
+
COMPANY_KYC_REJECT = 8,
|
|
37
|
+
COMPANY_KYC_APPROVE = 9,
|
|
38
|
+
COMPANY_SUSPEND = 10,
|
|
39
|
+
COMPANY_SUSPEND_BO_SA = 11,
|
|
40
|
+
BACKGROUND_TASK = 12,
|
|
41
|
+
BALANCE_ALERT = 13,
|
|
42
|
+
BULK_DONE = 14,
|
|
43
|
+
BULK_FINISHED = 15,
|
|
44
|
+
WEBHOOK = 16,
|
|
45
|
+
VNA_SUMMARY_CHECK_IN_REPORT = 17,
|
|
46
|
+
CONVERSATION_MESSAGE = 18,
|
|
47
|
+
CONVERSATION_LIVE_AGENT = 19,
|
|
48
|
+
TICKET_ASSIGN = 20
|
|
24
49
|
}
|
|
25
50
|
export interface ReceiverPermission {
|
|
26
51
|
permission: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationChannel = exports.MessageEvent = exports.NotificationPriority = void 0;
|
|
3
|
+
exports.NotificationChannel = exports.NotificationType = exports.MessageEvent = exports.NotificationPriority = void 0;
|
|
4
4
|
var NotificationPriority;
|
|
5
5
|
(function (NotificationPriority) {
|
|
6
6
|
NotificationPriority[NotificationPriority["HIGH"] = 1] = "HIGH";
|
|
@@ -25,7 +25,34 @@ var MessageEvent;
|
|
|
25
25
|
MessageEvent["BULK_FINISHED"] = "bulk.finished";
|
|
26
26
|
MessageEvent["WEBHOOK"] = "webhook";
|
|
27
27
|
MessageEvent["VNA_SUMMARY_CHECK_IN_REPORT"] = "VNA_SUMMARY_CHECK_IN_REPORT";
|
|
28
|
+
MessageEvent["CONVERSATION_MESSAGE"] = "conversation.message";
|
|
29
|
+
MessageEvent["CONVERSATION_LIVE_AGENT"] = "conversation.live_agent";
|
|
30
|
+
MessageEvent["TICKET_ASSIGN"] = "ticket.assign";
|
|
28
31
|
})(MessageEvent = exports.MessageEvent || (exports.MessageEvent = {}));
|
|
32
|
+
// We're migrating using MessageEvent to NotificationType (number) for faster index
|
|
33
|
+
var NotificationType;
|
|
34
|
+
(function (NotificationType) {
|
|
35
|
+
NotificationType[NotificationType["CHANNEL_OA_STATUS"] = 1] = "CHANNEL_OA_STATUS";
|
|
36
|
+
NotificationType[NotificationType["CHANNEL_REQUEST"] = 2] = "CHANNEL_REQUEST";
|
|
37
|
+
NotificationType[NotificationType["TEMPLATE_REQUEST"] = 3] = "TEMPLATE_REQUEST";
|
|
38
|
+
NotificationType[NotificationType["TEMPLATE_APPROVE"] = 4] = "TEMPLATE_APPROVE";
|
|
39
|
+
NotificationType[NotificationType["TEMPLATE_REJECT"] = 5] = "TEMPLATE_REJECT";
|
|
40
|
+
NotificationType[NotificationType["TEMPLATE_DELETE"] = 6] = "TEMPLATE_DELETE";
|
|
41
|
+
NotificationType[NotificationType["COMPANY_KYC_REQUEST"] = 7] = "COMPANY_KYC_REQUEST";
|
|
42
|
+
NotificationType[NotificationType["COMPANY_KYC_REJECT"] = 8] = "COMPANY_KYC_REJECT";
|
|
43
|
+
NotificationType[NotificationType["COMPANY_KYC_APPROVE"] = 9] = "COMPANY_KYC_APPROVE";
|
|
44
|
+
NotificationType[NotificationType["COMPANY_SUSPEND"] = 10] = "COMPANY_SUSPEND";
|
|
45
|
+
NotificationType[NotificationType["COMPANY_SUSPEND_BO_SA"] = 11] = "COMPANY_SUSPEND_BO_SA";
|
|
46
|
+
NotificationType[NotificationType["BACKGROUND_TASK"] = 12] = "BACKGROUND_TASK";
|
|
47
|
+
NotificationType[NotificationType["BALANCE_ALERT"] = 13] = "BALANCE_ALERT";
|
|
48
|
+
NotificationType[NotificationType["BULK_DONE"] = 14] = "BULK_DONE";
|
|
49
|
+
NotificationType[NotificationType["BULK_FINISHED"] = 15] = "BULK_FINISHED";
|
|
50
|
+
NotificationType[NotificationType["WEBHOOK"] = 16] = "WEBHOOK";
|
|
51
|
+
NotificationType[NotificationType["VNA_SUMMARY_CHECK_IN_REPORT"] = 17] = "VNA_SUMMARY_CHECK_IN_REPORT";
|
|
52
|
+
NotificationType[NotificationType["CONVERSATION_MESSAGE"] = 18] = "CONVERSATION_MESSAGE";
|
|
53
|
+
NotificationType[NotificationType["CONVERSATION_LIVE_AGENT"] = 19] = "CONVERSATION_LIVE_AGENT";
|
|
54
|
+
NotificationType[NotificationType["TICKET_ASSIGN"] = 20] = "TICKET_ASSIGN";
|
|
55
|
+
})(NotificationType = exports.NotificationType || (exports.NotificationType = {}));
|
|
29
56
|
var NotificationChannel;
|
|
30
57
|
(function (NotificationChannel) {
|
|
31
58
|
NotificationChannel["WEB"] = "WEB";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../../../../packages/model/src/lib/model/Notification.ts"],"names":[],"mappings":";;;AAEA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,+DAAQ,CAAA;IACR,mEAAU,CAAA;AACZ,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../../../../packages/model/src/lib/model/Notification.ts"],"names":[],"mappings":";;;AAEA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,+DAAQ,CAAA;IACR,mEAAU,CAAA;AACZ,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAED,IAAY,YAqBX;AArBD,WAAY,YAAY;IACtB,uDAAuC,CAAA;IACvC,mDAAmC,CAAA;IACnC,qDAAqC,CAAA;IACrC,qDAAqC,CAAA;IACrC,mDAAmC,CAAA;IACnC,mDAAmC,CAAA;IACnC,2DAA2C,CAAA;IAC3C,yDAAyC,CAAA;IACzC,2DAA2C,CAAA;IAC3C,mDAAmC,CAAA;IACnC,+DAA+C,CAAA;IAC/C,mDAAmC,CAAA;IACnC,+CAA+B,CAAA;IAC/B,uCAAuB,CAAA;IACvB,+CAA+B,CAAA;IAC/B,mCAAmB,CAAA;IACnB,2EAA2D,CAAA;IAC3D,6DAA6C,CAAA;IAC7C,mEAAmD,CAAA;IACnD,+CAA+B,CAAA;AACjC,CAAC,EArBW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAqBvB;AAED,mFAAmF;AACnF,IAAY,gBAqBX;AArBD,WAAY,gBAAgB;IAC1B,iFAAqB,CAAA;IACrB,6EAAe,CAAA;IACf,+EAAgB,CAAA;IAChB,+EAAgB,CAAA;IAChB,6EAAe,CAAA;IACf,6EAAe,CAAA;IACf,qFAAmB,CAAA;IACnB,mFAAkB,CAAA;IAClB,qFAAmB,CAAA;IACnB,8EAAe,CAAA;IACf,0FAAqB,CAAA;IACrB,8EAAe,CAAA;IACf,0EAAa,CAAA;IACb,kEAAS,CAAA;IACT,0EAAa,CAAA;IACb,8DAAO,CAAA;IACP,sGAA2B,CAAA;IAC3B,wFAAoB,CAAA;IACpB,8FAAuB,CAAA;IACvB,0EAAa,CAAA;AACf,CAAC,EArBW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAqB3B;AASD,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,kCAAW,CAAA;IACX,sCAAe,CAAA;IACf,kCAAW,CAAA;AACb,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B"}
|