@webitel/ui-sdk 25.4.78 → 25.4.79

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,10 @@
1
+ ## [v25.4.79] - 2025-04-28
2
+ ### :bug: Bug Fixes
3
+ - [`5b7789b`](https://github.com/webitel/webitel-ui-sdk/commit/5b7789b013b27cd8912e9259cd785f5b42c8416f) - set fixes for contacts get list API method [WTEL-6807](https://webitel.atlassian.net/browse/WTEL-6807) *(commit by [@plnnsimon](https://github.com/plnnsimon))*
4
+ - [`6f7541a`](https://github.com/webitel/webitel-ui-sdk/commit/6f7541a18f9828b7f43788fa09c7eec62b8133a7) - contact group filter[WTEL-6819](https://webitel.atlassian.net/browse/WTEL-6819) *(commit by [@Lera24](https://github.com/Lera24))*
5
+ - [`d174bbb`](https://github.com/webitel/webitel-ui-sdk/commit/d174bbbeed93b3e9b3e33141fd72cb9803afc431) - update template structure in table-filters-panel and correct value assignment in the-history-filters [WTEL-6758](https://webitel.atlassian.net/browse/WTEL-6758) *(commit by [@dlohvinov](https://github.com/dlohvinov))*
6
+
7
+
1
8
  ## [v25.4.78] - 2025-04-28
2
9
  ### :bug: Bug Fixes
3
10
  - [`f8af07e`](https://github.com/webitel/webitel-ui-sdk/commit/f8af07e48a987090ddc0f33a1c6ca68540456a42) - made wt-chip clickable when select is disabled [WTEL-6814](https://webitel.atlassian.net/browse/WTEL-6814) *(commit by [@plnnsimon](https://github.com/plnnsimon))*
@@ -2035,3 +2042,4 @@
2035
2042
  [v25.4.76]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.75...v25.4.76
2036
2043
  [v25.4.77]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.76...v25.4.77
2037
2044
  [v25.4.78]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.77...v25.4.78
2045
+ [v25.4.79]: https://github.com/webitel/webitel-ui-sdk/compare/v25.4.78...v25.4.79
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.4.78",
3
+ "version": "25.4.79",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -112,33 +112,47 @@ const getList = async (params) => {
112
112
  qin: searchKey || '',
113
113
  };
114
114
 
115
- if (params.parentId) {
116
- changedParams.groupId = [params.parentId];
117
- }
118
-
119
- if(params.hasUser != null) {
115
+ if (params.hasUser != null) {
120
116
  changedParams.user = params.hasUser;
121
117
  }
122
118
 
123
- if(params.contactGroup) {
119
+ if (params.contactGroup) {
124
120
  changedParams.group = [...params.contactGroup.list];
125
121
  }
126
- if(params.contactLabel) {
127
- changedParams.label = params.contactLabel.map(item => item.label);
122
+ if (params.contactLabel) {
123
+ changedParams.label = params.contactLabel.map((item) => item.label);
128
124
  }
129
- if(params.contactOwner) {
125
+ if (params.contactOwner) {
130
126
  changedParams.owner = params.contactOwner;
131
127
  }
132
128
  }
133
129
 
130
+ if (params.parentId) {
131
+ changedParams.group = [params.parentId];
132
+ }
133
+
134
134
  const transformations = [
135
135
  sanitize(fieldsToSend),
136
136
  merge(getDefaultGetParams()),
137
137
  camelToSnake(),
138
138
  ];
139
139
 
140
- const { page, size, q, sort, fields, id, qin, mode, group_id, group, not_id_group, owner, label, user } =
141
- applyTransform(changedParams, transformations);
140
+ const {
141
+ page,
142
+ size,
143
+ q,
144
+ sort,
145
+ fields,
146
+ id,
147
+ qin,
148
+ mode,
149
+ group_id,
150
+ group,
151
+ not_id_group,
152
+ owner,
153
+ label,
154
+ user,
155
+ } = applyTransform(changedParams, transformations);
142
156
 
143
157
  try {
144
158
  const response = await contactService.searchContacts(