@webitel/api-services 0.0.88 → 0.0.90

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": "0.0.88",
3
+ "version": "0.0.90",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm run gen:api && npm version patch && (npm run build:types || true) && (npm run format:all || true) && npm run publish-lib",
@@ -34,7 +34,7 @@ const getFilesList = async (params: SearchFilesByCallParams) => {
34
34
  uploaded_at_to: uploadedAtTo,
35
35
  uploadedBy,
36
36
  referenceId,
37
- channel,
37
+ type,
38
38
  retentionUntilFrom,
39
39
  retentionUntilTo,
40
40
  } = applyTransform(params, [
@@ -55,7 +55,7 @@ const getFilesList = async (params: SearchFilesByCallParams) => {
55
55
  'uploaded_at.to': uploadedAtTo,
56
56
  uploadedBy,
57
57
  referenceId,
58
- channel,
58
+ type,
59
59
  retentionUntilFrom,
60
60
  retentionUntilTo,
61
61
  });
@@ -97,7 +97,7 @@ const getScreenRecordingsByUser = async (params: any) => {
97
97
  referenceId,
98
98
  retentionUntilFrom,
99
99
  retentionUntilTo,
100
- channel,
100
+ type,
101
101
  } = applyTransform(params, [
102
102
  merge(getDefaultGetParams()),
103
103
  sanitize(fieldsToSend),
@@ -119,7 +119,7 @@ const getScreenRecordingsByUser = async (params: any) => {
119
119
  referenceId,
120
120
  retentionUntilFrom,
121
121
  retentionUntilTo,
122
- channel,
122
+ type,
123
123
  },
124
124
  );
125
125
  const { items, next } = applyTransform(response.data, [
@@ -164,7 +164,7 @@ const getScreenRecordingsByAgent = async (params: any) => {
164
164
  referenceId,
165
165
  retentionUntilFrom,
166
166
  retentionUntilTo,
167
- channel,
167
+ type,
168
168
  } = applyTransform(params, [
169
169
  merge(getDefaultGetParams()),
170
170
  sanitize(fieldsToSend),
@@ -186,7 +186,7 @@ const getScreenRecordingsByAgent = async (params: any) => {
186
186
  referenceId,
187
187
  retentionUntilFrom,
188
188
  retentionUntilTo,
189
- channel,
189
+ type,
190
190
  },
191
191
  );
192
192
  const { items, next } = applyTransform(response.data, [
@@ -79,7 +79,7 @@ export const downloadFile = (id) => {
79
79
  document.body.removeChild(link);
80
80
  };
81
81
 
82
- export const getCallMediaUrl = (id, { download = false }) => {
82
+ export const getCallMediaUrl = (id, { download = false } = {}) => {
83
83
  const accessToken = localStorage.getItem('access-token');
84
84
  return `${baseUrl}/storage/recordings/${id}/${download ? 'download' : 'stream'}?access_token=${accessToken}`;
85
85
  }
@@ -1,6 +1,6 @@
1
1
  export declare const downloadMedia: (id: any) => Promise<import("axios").AxiosResponse<any, any, {}>>;
2
2
  export declare const downloadFile: (id: any) => void;
3
- export declare const getCallMediaUrl: (id: any, { download }: {
3
+ export declare const getCallMediaUrl: (id: any, { download }?: {
4
4
  download?: boolean;
5
5
  }) => string;
6
6
  export declare const getMediaUrl: (id: any, isThumb?: boolean) => string;