feat(channels): add Shangwutong connector

This commit is contained in:
2026-08-03 10:13:40 +08:00
parent 96f5c796a6
commit 897b4e018f
126 changed files with 20207 additions and 272 deletions
@@ -35,6 +35,11 @@ describe('#Inbox Helpers', () => {
it('should return correct class for Api', () => {
expect(getInboxClassByType('Channel::Api')).toEqual('cloud');
});
it('should return correct class for Shangwutong', () => {
expect(getInboxClassByType(INBOX_TYPES.SHANGWUTONG)).toEqual(
'customer-service-2'
);
});
it('should return correct class for Email', () => {
expect(getInboxClassByType('Channel::Email')).toEqual('mail');
});
@@ -69,6 +74,12 @@ describe('#Inbox Helpers', () => {
expect(getInboxIconByType(INBOX_TYPES.API)).toBe('i-ri-cloudy-fill');
});
it('returns correct icon for Shangwutong', () => {
expect(getInboxIconByType(INBOX_TYPES.SHANGWUTONG)).toBe(
'i-ri-customer-service-2-fill'
);
});
it('returns correct icon for Email', () => {
expect(getInboxIconByType(INBOX_TYPES.EMAIL)).toBe('i-ri-mail-fill');
});