@webitel/ui-sdk 2.0.19 → 2.0.20

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": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -34,7 +34,7 @@ export default {
34
34
  ...exportParams || routeQuery,
35
35
  size: 5000,
36
36
  };
37
- if (this.isAnySelected) params.ids = this.selectedIds;
37
+ if (this.isAnySelected) params.id = this.selectedIds;
38
38
 
39
39
  try {
40
40
  await this.CSVExport.export(params);
@@ -26,7 +26,7 @@ export default class ApiFilterSchema extends BaseFilterSchema {
26
26
  }
27
27
 
28
28
  fetchSelected(idsList) {
29
- const params = { size: idsList.length, ids: idsList };
29
+ const params = { size: idsList.length, id: idsList };
30
30
  return this.API(params);
31
31
  }
32
32
  }
@@ -17,7 +17,7 @@ describe('Api Filter Schema', () => {
17
17
  });
18
18
  it('calls API getList() method at fetchSelected()', () => {
19
19
  const idsList = [1];
20
- const expectedParams = { size: 1, ids: [1] };
20
+ const expectedParams = { size: 1, id: [1] };
21
21
  const filter = new ApiFilterSchema({ API: APIMock });
22
22
  filter.fetchSelected(idsList);
23
23
  expect(APIMock).toHaveBeenCalledWith(expectedParams);