@zohoim/client-sdk 1.0.0-poc93 → 1.0.0-poc95
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/es/domain/entities/Actor/Actor.js +1 -1
- package/es/domain/entities/Message/Message.js +4 -3
- package/es/domain/entities/Session/Session.js +1 -1
- package/es/domain/enum/message/MessageMeta.js +4 -0
- package/es/domain/enum/message/index.js +2 -1
- package/es/infrastructure/api/registry/channels/channelAgentAPIRegistry.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { validateSchema } from '../../../core/utils';
|
|
2
|
-
import { MessageDirection, MessageStatus, MessageTypes } from '../../enum';
|
|
2
|
+
import { MessageDirection, MessageStatus, MessageTypes, MessageMeta } from '../../enum';
|
|
3
3
|
import { MessageSchema } from '../../schema';
|
|
4
4
|
import { Actor } from '../Actor';
|
|
5
5
|
import { Attachment } from '../Attachment';
|
|
@@ -75,8 +75,9 @@ export default class Message {
|
|
|
75
75
|
return type === MessageTypes.ACTION;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
static isSystemMessage(
|
|
79
|
-
|
|
78
|
+
static isSystemMessage(meta) {
|
|
79
|
+
const systemMessageType = Message.getMetaValue(meta, MessageMeta.SYSTEM_MESSAGE_TYPE);
|
|
80
|
+
return !!systemMessageType;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
static isHapinessRating(systemMessageType) {
|
|
@@ -2,10 +2,11 @@ import MessageTypes from './MessageType';
|
|
|
2
2
|
import MessageStatus from './MessageStatus';
|
|
3
3
|
import MessageDirection from './MessageDirection';
|
|
4
4
|
import MessageContentType from './MessageContentType';
|
|
5
|
+
import MessageMeta from './MessageMeta';
|
|
5
6
|
import ActionType from './ActionType';
|
|
6
7
|
import ExternalInfoAction from './ExternalInfoAction';
|
|
7
8
|
import InfoSessionStatus from './InfoSessionStatus';
|
|
8
9
|
import InfoAction from './InfoAction';
|
|
9
10
|
import ActionSubType from './ActionSubType';
|
|
10
11
|
import InfoTargetType from './InfoTargetType';
|
|
11
|
-
export { MessageTypes, MessageStatus, MessageDirection, MessageContentType, ActionType, ActionSubType, ExternalInfoAction, InfoSessionStatus, InfoAction, InfoTargetType };
|
|
12
|
+
export { MessageTypes, MessageStatus, MessageDirection, MessageContentType, MessageMeta, ActionType, ActionSubType, ExternalInfoAction, InfoSessionStatus, InfoAction, InfoTargetType };
|
|
@@ -4,7 +4,7 @@ import createAPIRegistry from '../createAPIRegistry';
|
|
|
4
4
|
import constructChannelEndPoint from './constructChannelEndPoint';
|
|
5
5
|
|
|
6
6
|
function getAgents() {
|
|
7
|
-
return createAPIRegistry(constructChannelEndPoint('/:channelId/
|
|
7
|
+
return createAPIRegistry(constructChannelEndPoint('/:channelId/agents'), HTTP_METHODS.GET, getChannelAgentsRequest());
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export default {
|