@webitel/ui-sdk 25.4.66 → 25.4.68
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.4.
|
|
3
|
+
"version": "25.4.68",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npm run docs:dev",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"vue-multiselect": "^3.1.0",
|
|
109
109
|
"vue-observe-visibility": "^2.0.0-alpha.1",
|
|
110
110
|
"vue-router": "^4.5.0",
|
|
111
|
-
"webitel-sdk": "^25.2.
|
|
111
|
+
"webitel-sdk": "^25.2.19",
|
|
112
112
|
"xlsx": "0.18.5",
|
|
113
113
|
"zod": "^3.24.2"
|
|
114
114
|
},
|
|
@@ -104,6 +104,30 @@ const addStaticContactGroup = async ({ itemInstance }) => {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
+
const addContactsToGroup = async ({ contactIds, id }) => {
|
|
108
|
+
try {
|
|
109
|
+
const response = await contactGroupsService.addContactsToGroup(
|
|
110
|
+
id,
|
|
111
|
+
contactIds,
|
|
112
|
+
);
|
|
113
|
+
return applyTransform(response.data, [snakeToCamel()]);
|
|
114
|
+
} catch (err) {
|
|
115
|
+
throw applyTransform(err, [notify]);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const removeContactsFromGroup = async ({ id, contactIds }) => {
|
|
120
|
+
try {
|
|
121
|
+
const response = await contactGroupsService.removeContactsFromGroup(
|
|
122
|
+
id,
|
|
123
|
+
contactIds,
|
|
124
|
+
);
|
|
125
|
+
return applyTransform(response.data, []);
|
|
126
|
+
} catch (err) {
|
|
127
|
+
throw applyTransform(err, [notify]);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
107
131
|
const updateStaticContactGroup = async ({ itemInstance, itemId: id }) => {
|
|
108
132
|
const item = applyTransform(itemInstance, [
|
|
109
133
|
camelToSnake(),
|
|
@@ -155,6 +179,8 @@ const ContactGroupsAPI = {
|
|
|
155
179
|
patch: patchStaticContactGroup,
|
|
156
180
|
delete: deleteStaticContactGroup,
|
|
157
181
|
getLookup,
|
|
182
|
+
addContactsToGroup,
|
|
183
|
+
removeContactsFromGroup,
|
|
158
184
|
|
|
159
185
|
...generatePermissionsApi(baseUrl),
|
|
160
186
|
};
|
|
@@ -108,6 +108,10 @@ const getList = async (params) => {
|
|
|
108
108
|
q: searchValue || '',
|
|
109
109
|
qin: searchKey || '',
|
|
110
110
|
};
|
|
111
|
+
|
|
112
|
+
if (params.parentId) {
|
|
113
|
+
changedParams.groupId = [params.parentId];
|
|
114
|
+
}
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
const transformations = [
|
|
@@ -129,8 +133,8 @@ const getList = async (params) => {
|
|
|
129
133
|
id,
|
|
130
134
|
qin,
|
|
131
135
|
mode,
|
|
132
|
-
group_id,
|
|
133
136
|
not_id_group,
|
|
137
|
+
group_id,
|
|
134
138
|
);
|
|
135
139
|
|
|
136
140
|
const { items, next } = applyTransform(
|