@webitel/ui-sdk 25.4.42 → 25.4.44
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [v25.4.43] - 2025-03-25
|
|
2
|
+
### :sparkles: New Features
|
|
3
|
+
- [`62a4c55`](https://github.com/webitel/webitel-ui-sdk/commit/62a4c55c84919d03fd44240cd7bc3014724d4c72) - update contacts api *(commit by [@stanislav-kozak](https://github.com/stanislav-kozak))*
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## [v25.4.42] - 2025-03-24
|
|
7
|
+
### :bug: Bug Fixes
|
|
8
|
+
- [`632db57`](https://github.com/webitel/webitel-ui-sdk/commit/632db5753cc2cda932a6599a3a081b32e698db50) - tag filter preview locales [WTEL-6569](https://webitel.atlassian.net/browse/WTEL-6569) *(commit by [@dlohvinov](https://github.com/dlohvinov))*
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## [v25.4.41] - 2025-03-24
|
|
2
12
|
### :sparkles: New Features
|
|
3
13
|
- [`ef5b450`](https://github.com/webitel/webitel-ui-sdk/commit/ef5b450be4452e61e3b68cf95bde258081bcee58) - remove extension on imports [WTEL-6221](https://webitel.atlassian.net/browse/WTEL-6221) *(commit by [@stanislav-kozak](https://github.com/stanislav-kozak))*
|
|
@@ -1719,3 +1729,5 @@
|
|
|
1719
1729
|
[v25.4.39]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.38...v25.4.39
|
|
1720
1730
|
[v25.4.40]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.174...v25.4.40
|
|
1721
1731
|
[v25.4.41]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.40...v25.4.41
|
|
1732
|
+
[v25.4.42]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.41...v25.4.42
|
|
1733
|
+
[v25.4.43]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.175...v25.4.43
|
package/package.json
CHANGED
|
@@ -165,6 +165,7 @@ const get = async ({ itemId: id }) => {
|
|
|
165
165
|
'emails',
|
|
166
166
|
'imclients',
|
|
167
167
|
'user',
|
|
168
|
+
'custom',
|
|
168
169
|
];
|
|
169
170
|
|
|
170
171
|
const defaultObject = {};
|
|
@@ -201,6 +202,7 @@ const fieldsToSend = [
|
|
|
201
202
|
'managers',
|
|
202
203
|
'timezones',
|
|
203
204
|
'groups',
|
|
205
|
+
'custom',
|
|
204
206
|
];
|
|
205
207
|
|
|
206
208
|
const sanitizeManagers = (itemInstance) => {
|
|
@@ -244,11 +246,11 @@ const add = async ({ itemInstance }) => {
|
|
|
244
246
|
sanitizeTimezones,
|
|
245
247
|
sanitizeGroups,
|
|
246
248
|
sanitize(fieldsToSend),
|
|
247
|
-
camelToSnake(),
|
|
249
|
+
camelToSnake(['custom']),
|
|
248
250
|
]);
|
|
249
251
|
try {
|
|
250
252
|
const response = await contactService.createContact(item);
|
|
251
|
-
return applyTransform(response.data, [snakeToCamel()]);
|
|
253
|
+
return applyTransform(response.data, [snakeToCamel(['custom'])]);
|
|
252
254
|
} catch (err) {
|
|
253
255
|
throw applyTransform(err, [notify]);
|
|
254
256
|
}
|
|
@@ -262,11 +264,11 @@ const update = async ({ itemInstance }) => {
|
|
|
262
264
|
sanitizeTimezones,
|
|
263
265
|
sanitizeGroups,
|
|
264
266
|
sanitize(fieldsToSend),
|
|
265
|
-
camelToSnake(),
|
|
267
|
+
camelToSnake(['custom']),
|
|
266
268
|
]);
|
|
267
269
|
try {
|
|
268
270
|
const response = await contactService.updateContact(etag, item);
|
|
269
|
-
return applyTransform(response.data, [snakeToCamel()]);
|
|
271
|
+
return applyTransform(response.data, [snakeToCamel(['custom'])]);
|
|
270
272
|
} catch (err) {
|
|
271
273
|
throw applyTransform(err, [notify]);
|
|
272
274
|
}
|