@webitel/ui-sdk 25.10.92 → 25.10.94
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": "25.10.
|
|
3
|
+
"version": "25.10.94",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -103,7 +103,8 @@ const addRole = async ({ itemInstance }) => {
|
|
|
103
103
|
const item = applyTransform(itemInstance, [
|
|
104
104
|
preRequestHandler,
|
|
105
105
|
sanitize(fieldsToSend),
|
|
106
|
-
|
|
106
|
+
// NOTE: prevent conversion of "access" custom lookups
|
|
107
|
+
// camelToSnake(), https://webitel.atlassian.net/browse/WTEL-7599
|
|
107
108
|
]);
|
|
108
109
|
try {
|
|
109
110
|
const response = await rolesApiFactory.createRole(item);
|
|
@@ -119,7 +120,8 @@ const updateRole = async ({ itemInstance, itemId: id }) => {
|
|
|
119
120
|
const item = applyTransform(itemInstance, [
|
|
120
121
|
preRequestHandler,
|
|
121
122
|
sanitize(fieldsToSend),
|
|
122
|
-
|
|
123
|
+
// NOTE: prevent conversion of "access" custom lookups
|
|
124
|
+
// camelToSnake(), https://webitel.atlassian.net/browse/WTEL-7599
|
|
123
125
|
]);
|
|
124
126
|
|
|
125
127
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed } from 'vue';
|
|
1
|
+
import { computed, toRef } from 'vue';
|
|
2
2
|
|
|
3
3
|
import convertDuration from '../../scripts/convertDuration.js';
|
|
4
4
|
|
|
@@ -13,9 +13,7 @@ const isDurationOverflow = ({ durationMin, limitMin }) => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const duration = ({ durationMin, limitMin }) => {
|
|
16
|
-
return
|
|
17
|
-
? `-${prettifyPauseCauseDuration(durationMin - limitMin)}`
|
|
18
|
-
: prettifyPauseCauseDuration(durationMin);
|
|
16
|
+
return prettifyPauseCauseDuration(durationMin);
|
|
19
17
|
};
|
|
20
18
|
|
|
21
19
|
const pauseCauseProgressColor = ({ durationMin, limitMin }) => {
|
|
@@ -26,8 +24,9 @@ const pauseCauseProgressColor = ({ durationMin, limitMin }) => {
|
|
|
26
24
|
|
|
27
25
|
// eslint-disable-next-line import/prefer-default-export
|
|
28
26
|
export const useRepresentableAgentPauseCause = (pauseCauses) => {
|
|
27
|
+
const pauseCausesRef = toRef(pauseCauses);
|
|
29
28
|
const representablePauseCause = computed(() =>
|
|
30
|
-
|
|
29
|
+
pauseCausesRef.value.map((pauseCause) => ({
|
|
31
30
|
...pauseCause,
|
|
32
31
|
duration: duration(pauseCause),
|
|
33
32
|
progressColor: pauseCauseProgressColor(pauseCause),
|