@webitel/api-services 26.8.49 → 26.8.51

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/api-services",
3
- "version": "26.8.49",
3
+ "version": "26.8.51",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,4 +1,7 @@
1
- import { getRoutingOutboundCallService } from '../../../gen-wire';
1
+ import {
2
+ getRoutingOutboundCallService,
3
+ type SearchRoutingOutboundCallParams,
4
+ } from '../../../gen-wire';
2
5
  import { getDefaultGetListResponse, getDefaultGetParams } from '../../defaults';
3
6
  import {
4
7
  applyTransform,
@@ -26,6 +29,7 @@ const fieldsToSend = [
26
29
  'pattern',
27
30
  'description',
28
31
  'disabled',
32
+ 'allowTransfer',
29
33
  ];
30
34
 
31
35
  const getDialplansList = async (params: ApiParams) => {
@@ -33,10 +37,11 @@ const getDialplansList = async (params: ApiParams) => {
33
37
  disabled: false,
34
38
  };
35
39
 
36
- const { page, size, search, sort, fields, id } = applyTransform(params, [
37
- merge(getDefaultGetParams()),
38
- starToSearch('search'),
39
- ]);
40
+ const { page, size, search, sort, fields, id, allowTransfer } =
41
+ applyTransform(params, [
42
+ merge(getDefaultGetParams()),
43
+ starToSearch('search'),
44
+ ]);
40
45
 
41
46
  try {
42
47
  const response =
@@ -48,7 +53,8 @@ const getDialplansList = async (params: ApiParams) => {
48
53
  sort,
49
54
  fields,
50
55
  id,
51
- });
56
+ allow_transfer: allowTransfer,
57
+ } as SearchRoutingOutboundCallParams);
52
58
  const { items, next } = applyTransform(response.data, [
53
59
  snakeToCamel(),
54
60
  merge(getDefaultGetListResponse()),
@@ -128,7 +128,7 @@ const getInfo = async ({
128
128
  id: ApiId;
129
129
  }) => {
130
130
  try {
131
- const response = await getTimeline().getTimelineItemInfo(
131
+ const response = await getTimeline().getTimelineItemInfoTimeline(
132
132
  String(parentId),
133
133
  type,
134
134
  String(id),