@webitel/ui-sdk 24.12.99 → 24.12.101

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.12.99",
3
+ "version": "24.12.101",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -46,7 +46,7 @@ export const WtObject = {
46
46
  RecordFile: 'recordFile',
47
47
  ContactGroup: 'contactGroup',
48
48
  ChatBot: 'chatBot',
49
- Cases: 'cases',
49
+ Case: 'case',
50
50
  CaseComment: 'caseComment',
51
51
  Slas: 'slas',
52
52
  ServiceCatalog: 'serviceCatalog',
@@ -1,16 +1,16 @@
1
- import AbstractUserStatus from './AbstractUserStatus/AbstractUserStatus.enum.js';
2
- import AgentStatus from './AgentStatus/AgentStatus.enum.js';
3
- import ChatGatewayProvider from './ChatGatewayProvider/ChatGatewayProvider.enum.js';
1
+ import AbstractUserStatus from './AbstractUserStatus/AbstractUserStatus.enum';
2
+ import AgentStatus from './AgentStatus/AgentStatus.enum';
3
+ import ChatGatewayProvider from './ChatGatewayProvider/ChatGatewayProvider.enum';
4
4
  import { ComponentSize } from './ComponentSize/ComponentSize';
5
5
  import { CrudAction } from './CrudAction/CrudAction';
6
- import IconAction from './IconAction/IconAction.enum.js';
7
- import QueueType from './QueueType/QueueType.enum.js';
8
- import TypesExportedSettings from './TypesExportedSettings/TypesExportedSettings.enum.js';
6
+ import IconAction from './IconAction/IconAction.enum';
7
+ import QueueType from './QueueType/QueueType.enum';
8
+ import TypesExportedSettings from './TypesExportedSettings/TypesExportedSettings.enum';
9
9
  import { AdminSections } from './WebitelApplications/AdminSections';
10
10
  import { AuditorSections } from './WebitelApplications/AuditorSections';
11
11
  import { CrmSections } from './WebitelApplications/CrmSections';
12
12
  import { SupervisorSections } from './WebitelApplications/SupervisorSections';
13
- import WebitelApplications from './WebitelApplications/WebitelApplications.enum.js';
13
+ import WebitelApplications from './WebitelApplications/WebitelApplications.enum';
14
14
  import { WtApplication } from './WebitelApplications/WtApplication';
15
15
  import { WtObject } from './WtObject/WtObject';
16
16
  export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, ChatGatewayProvider, ComponentSize, CrmSections, CrudAction, IconAction, QueueType, SupervisorSections, TypesExportedSettings, WebitelApplications, WtApplication, WtObject, };
@@ -227,7 +227,11 @@ export default {
227
227
  name: 'CRM',
228
228
  sections: {
229
229
  [CrmSections.CONTACTS]: 'Contacts',
230
- [CrmSections.SLAS]: 'SLAS',
230
+ [CrmSections.CASES]: 'Cases',
231
+ [CrmSections.PRIORITIES]: 'Priorities',
232
+ [CrmSections.CLOSE_REASON_GROUPS]: 'Closure reasons',
233
+ [CrmSections.STATUSES]: 'Statuses',
234
+ [CrmSections.SLAS]: 'SLA',
231
235
  [CrmSections.SERVICE_CATALOGS]: 'Service catalogs',
232
236
  [CrmSections.SOURCES]: 'Case sources',
233
237
  [CrmSections.CONTACT_GROUPS]: 'Contact groups',
@@ -225,7 +225,11 @@ export default {
225
225
  name: 'CRM',
226
226
  sections: {
227
227
  [CrmSections.CONTACTS]: 'Контакты',
228
- [CrmSections.SLAS]: 'SLAS',
228
+ [CrmSections.CASES]: 'Обращения',
229
+ [CrmSections.PRIORITIES]: 'Приоритеты',
230
+ [CrmSections.CLOSE_REASON_GROUPS]: 'Причины закрытия',
231
+ [CrmSections.STATUSES]: 'Статусы',
232
+ [CrmSections.SLAS]: 'SLA',
229
233
  [CrmSections.SERVICE_CATALOGS]: 'Каталоги сервисов',
230
234
  [CrmSections.SOURCES]: 'Источники обращений',
231
235
  [CrmSections.CONTACT_GROUPS]: 'Группы контактов',
@@ -225,7 +225,11 @@ export default {
225
225
  name: 'CRM',
226
226
  sections: {
227
227
  [CrmSections.CONTACTS]: 'Контакти',
228
- [CrmSections.SLAS]: 'SLAS',
228
+ [CrmSections.CASES]: 'Звернення',
229
+ [CrmSections.PRIORITIES]: 'Пріоритети',
230
+ [CrmSections.CLOSE_REASON_GROUPS]: 'Причини закриття',
231
+ [CrmSections.STATUSES]: 'Статуси',
232
+ [CrmSections.SLAS]: 'SLA',
229
233
  [CrmSections.SERVICE_CATALOGS]: 'Каталоги сервісів',
230
234
  [CrmSections.SOURCES]: 'Джерела звернень',
231
235
  [CrmSections.CONTACT_GROUPS]: 'Групи контактів',
@@ -199,6 +199,10 @@ const applicationsAccess = (value = true) => ({
199
199
  _enabled: value,
200
200
  _locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.CONTACTS}`,
201
201
  },
202
+ [CrmSections.CASES]: {
203
+ _enabled: value,
204
+ _locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.CASES}`,
205
+ },
202
206
  [CrmSections.SLAS]: {
203
207
  _enabled: value,
204
208
  _locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.SLAS}`,
@@ -223,6 +227,10 @@ const applicationsAccess = (value = true) => ({
223
227
  _enabled: value,
224
228
  _locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.PRIORITIES}`,
225
229
  },
230
+ [CrmSections.STATUSES]: {
231
+ _enabled: value,
232
+ _locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.STATUSES}`,
233
+ },
226
234
  },
227
235
  });
228
236
 
@@ -63,7 +63,7 @@ export const mapScopeClassToWtObjects: Record<ScopeClass, WtObject[]> = {
63
63
  [ScopeClass.RecordFile]: [WtObject.RecordFile], // Call history
64
64
  [ScopeClass.ContactGroups]: [WtObject.ContactGroup], //CRM
65
65
  [ScopeClass.ChatBots]: [WtObject.ChatBot], // routing cht_gateway
66
- [ScopeClass.Cases]: [WtObject.Cases], // CRM
66
+ [ScopeClass.Cases]: [WtObject.Case], // CRM
67
67
  [ScopeClass.CaseComments]: [WtObject.CaseComment],
68
68
  };
69
69
 
@@ -139,7 +139,7 @@ export const mapWtObjectToUiSection: Record<
139
139
  // Crm sections
140
140
  [WtApplication.Crm]: {
141
141
  [WtObject.Contact]: CrmSections.Contacts,
142
- [WtObject.Cases]: CrmSections.Cases,
142
+ [WtObject.Case]: CrmSections.Cases,
143
143
  [WtObject.Slas]: CrmSections.Slas,
144
144
  [WtObject.ServiceCatalog]: CrmSections.ServiceCatalogs,
145
145
  [WtObject.CaseSource]: CrmSections.CaseSources,
@@ -1,59 +0,0 @@
1
- /**
2
- * Represents existing Webitel entities
3
- */
4
- export const WtObject = {
5
- Agent: 'agent',
6
- Queue: 'queue',
7
- Contact: 'contact',
8
- Region: 'region',
9
- User: 'user',
10
- Resource: 'resource',
11
- Device: 'device',
12
- License: 'license',
13
- Flow: 'flow',
14
- Dialplan: 'dialplan',
15
- Gateway: 'gateway',
16
- Chatplan: 'chatplan',
17
- ChatGateway: 'chatGateway',
18
- Blacklist: 'blacklist',
19
- Calendar: 'calendar',
20
- Communication: 'communication',
21
- PauseCause: 'pauseCause',
22
- Media: 'media',
23
- ShiftTemplate: 'shiftTemplate',
24
- PauseTemplate: 'pauseTemplate',
25
- WorkingCondition: 'workingCondition',
26
- Skill: 'skill',
27
- Bucket: 'bucket',
28
- Member: 'member',
29
- ResourceGroup: 'resourceGroup',
30
- Team: 'team',
31
- Storage: 'storage',
32
- CognitiveProfile: 'cognitiveProfile',
33
- EmailProfile: 'emailProfile',
34
- SingleSignOn: 'singleSignOn',
35
- ImportCsv: 'importCsv',
36
- Trigger: 'trigger',
37
- Role: 'role',
38
- Object: 'object',
39
- ChangeLog: 'changelog',
40
- Configuration: 'configuration',
41
- GlobalVariable: 'globalVariable',
42
- ActiveCall: 'activeCall',
43
- Scorecard: 'scorecard',
44
- Logger: 'logger',
45
- Call: 'call',
46
- RecordFile: 'recordFile',
47
- ContactGroup: 'contactGroup',
48
- ChatBot: 'chatBot',
49
- Cases: 'cases',
50
- CaseComment: 'caseComment',
51
- Slas: 'slas',
52
- ServiceCatalog: 'serviceCatalog',
53
- CaseSource: 'caseSource',
54
- CloseReasonGroup: 'closeReasonGroup',
55
- Priorities: 'priorities',
56
- Status: 'status',
57
- Source: 'source',
58
- CustomLookup: 'customLookup',
59
- };