@webitel/api-services 26.8.48 → 26.8.50

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.48",
3
+ "version": "26.8.50",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,6 +26,7 @@ const fieldsToSend = [
26
26
  'pattern',
27
27
  'description',
28
28
  'disabled',
29
+ 'allowTransfer',
29
30
  ];
30
31
 
31
32
  const getDialplansList = async (params: ApiParams) => {
@@ -122,6 +122,11 @@ export const getCallMediaUrl = (
122
122
  return `${baseUrl}/storage/recordings/${id}/${download ? 'download' : 'stream'}?access_token=${accessToken}`;
123
123
  };
124
124
 
125
+ export const getMediaStreamUrl = (id: ApiId) => {
126
+ const accessToken = localStorage.getItem('access-token');
127
+ return `${baseUrl}/storage/media/${id}/stream?access_token=${accessToken}`;
128
+ };
129
+
125
130
  export const getMediaUrl = (id: ApiId, isThumb: boolean = false) => {
126
131
  const accessToken = localStorage.getItem('access-token'); // after auth token variable is null
127
132
  const url = `${baseUrl}/storage/file/${id}/stream?access_token=${accessToken}&fetch_thumbnail=${isThumb}`;
@@ -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),