@webitel/ui-sdk 24.10.21 → 24.10.23

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.10.21",
3
+ "version": "24.10.23",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -19,6 +19,7 @@ const AdminSections = Object.freeze({
19
19
  PAUSE_CAUSE: 'pause-cause', // scope: lookups
20
20
  MEDIA: 'media', // scope: media_file
21
21
  SHIFT_TEMPLATES: 'shift-templates', // scope: shift_templates
22
+ PAUSE_TEMPLATES: 'pause-templates', //scope: pause_templates
22
23
 
23
24
  // CONTACT CENTER
24
25
  SKILLS: 'skills', // scope: lookups
@@ -224,6 +224,7 @@ export default {
224
224
  [AdminSections.BUCKETS]: 'Buckets',
225
225
  [AdminSections.MEDIA]: 'Media files',
226
226
  [AdminSections.SHIFT_TEMPLATES]: 'Shift templates',
227
+ [AdminSections.PAUSE_TEMPLATES]: 'Pause templates',
227
228
  [AdminSections.BLACKLIST]: 'Lists',
228
229
  [AdminSections.CALENDARS]: 'Calendars',
229
230
  [AdminSections.REGIONS]: 'Locations',
@@ -223,6 +223,7 @@ export default {
223
223
  [AdminSections.BUCKETS]: 'Корзины',
224
224
  [AdminSections.MEDIA]: 'Медиафайлы',
225
225
  [AdminSections.SHIFT_TEMPLATES]: 'Шаблон смен',
226
+ [AdminSections.PAUSE_TEMPLATES]: 'Шаблон пауз',
226
227
  [AdminSections.BLACKLIST]: 'Cписки',
227
228
  [AdminSections.CALENDARS]: 'Календари',
228
229
  [AdminSections.COMMUNICATIONS]: 'Типы связи',
@@ -223,6 +223,7 @@ export default {
223
223
  [AdminSections.BUCKETS]: 'Кошики',
224
224
  [AdminSections.MEDIA]: 'Медіафайли',
225
225
  [AdminSections.SHIFT_TEMPLATES]: 'Шаблон змін',
226
+ [AdminSections.PAUSE_TEMPLATES]: 'Шаблон пауз',
226
227
  [AdminSections.BLACKLIST]: 'Cписки',
227
228
  [AdminSections.CALENDARS]: 'Календарі',
228
229
  [AdminSections.REGIONS]: 'Розташування',
@@ -106,6 +106,10 @@ const applicationsAccess = (value = true) => ({
106
106
  _enabled: value,
107
107
  _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.SHIFT_TEMPLATES}`,
108
108
  },
109
+ [AdminSections.PAUSE_TEMPLATES]: {
110
+ _enabled: value,
111
+ _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.PAUSE_TEMPLATES}`,
112
+ },
109
113
  [AdminSections.AGENTS]: {
110
114
  _enabled: value,
111
115
  _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.AGENTS}`,
@@ -4,6 +4,7 @@ import set from 'lodash/set.js';
4
4
  const state = () => ({
5
5
  itemId: 0,
6
6
  itemInstance: {},
7
+ _resettable: {},
7
8
  });
8
9
 
9
10
  const actions = {
@@ -62,7 +63,7 @@ const mutations = {
62
63
  state.itemInstance = item;
63
64
  },
64
65
  RESET_ITEM_STATE: (state) => {
65
- Object.assign(state, deepCopy(this.state));
66
+ Object.assign(state, deepCopy(state._resettable));
66
67
  },
67
68
  };
68
69