webitel-sdk 0.1.169 → 0.1.171

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.
@@ -25737,10 +25737,13 @@ const TriggerServiceApiAxiosParamCreator = function (configuration) {
25737
25737
  * @param {string} [createdAtTo]
25738
25738
  * @param {string} [startedAtFrom]
25739
25739
  * @param {string} [startedAtTo]
25740
+ * @param {string} [durationFrom]
25741
+ * @param {string} [durationTo]
25742
+ * @param {Array<'idle' | 'active' | 'done' | 'error'>} [state]
25740
25743
  * @param {*} [options] Override http request option.
25741
25744
  * @throws {RequiredError}
25742
25745
  */
25743
- searchTriggerJob: async (triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, options = {}) => {
25746
+ searchTriggerJob: async (triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, durationFrom, durationTo, state, options = {}) => {
25744
25747
  // verify required parameter 'triggerId' is not null or undefined
25745
25748
  if (triggerId === null || triggerId === undefined) {
25746
25749
  throw new RequiredError('triggerId', 'Required parameter triggerId was null or undefined when calling searchTriggerJob.');
@@ -25792,6 +25795,15 @@ const TriggerServiceApiAxiosParamCreator = function (configuration) {
25792
25795
  if (startedAtTo !== undefined) {
25793
25796
  localVarQueryParameter['started_at.to'] = startedAtTo;
25794
25797
  }
25798
+ if (durationFrom !== undefined) {
25799
+ localVarQueryParameter['duration.from'] = durationFrom;
25800
+ }
25801
+ if (durationTo !== undefined) {
25802
+ localVarQueryParameter['duration.to'] = durationTo;
25803
+ }
25804
+ if (state) {
25805
+ localVarQueryParameter['state'] = state;
25806
+ }
25795
25807
  localVarUrlObj.query = {
25796
25808
  ...localVarUrlObj.query,
25797
25809
  ...localVarQueryParameter,
@@ -25999,11 +26011,14 @@ const TriggerServiceApiFp = function (configuration) {
25999
26011
  * @param {string} [createdAtTo]
26000
26012
  * @param {string} [startedAtFrom]
26001
26013
  * @param {string} [startedAtTo]
26014
+ * @param {string} [durationFrom]
26015
+ * @param {string} [durationTo]
26016
+ * @param {Array<'idle' | 'active' | 'done' | 'error'>} [state]
26002
26017
  * @param {*} [options] Override http request option.
26003
26018
  * @throws {RequiredError}
26004
26019
  */
26005
- async searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, options) {
26006
- const localVarAxiosArgs = await TriggerServiceApiAxiosParamCreator(configuration).searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, options);
26020
+ async searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, durationFrom, durationTo, state, options) {
26021
+ const localVarAxiosArgs = await TriggerServiceApiAxiosParamCreator(configuration).searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, durationFrom, durationTo, state, options);
26007
26022
  return (axios = globalAxios, basePath = BASE_PATH) => {
26008
26023
  const axiosRequestArgs = {
26009
26024
  ...localVarAxiosArgs.options,
@@ -26128,12 +26143,15 @@ const TriggerServiceApiFactory = function (configuration, basePath, axios) {
26128
26143
  * @param {string} [createdAtTo]
26129
26144
  * @param {string} [startedAtFrom]
26130
26145
  * @param {string} [startedAtTo]
26146
+ * @param {string} [durationFrom]
26147
+ * @param {string} [durationTo]
26148
+ * @param {Array<'idle' | 'active' | 'done' | 'error'>} [state]
26131
26149
  * @param {*} [options] Override http request option.
26132
26150
  * @throws {RequiredError}
26133
26151
  */
26134
- searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, options) {
26152
+ searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, durationFrom, durationTo, state, options) {
26135
26153
  return TriggerServiceApiFp(configuration)
26136
- .searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, options)
26154
+ .searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, durationFrom, durationTo, state, options)
26137
26155
  .then((request) => request(axios, basePath));
26138
26156
  },
26139
26157
  /**
@@ -26254,13 +26272,16 @@ class TriggerServiceApi extends BaseAPI {
26254
26272
  * @param {string} [createdAtTo]
26255
26273
  * @param {string} [startedAtFrom]
26256
26274
  * @param {string} [startedAtTo]
26275
+ * @param {string} [durationFrom]
26276
+ * @param {string} [durationTo]
26277
+ * @param {Array<'idle' | 'active' | 'done' | 'error'>} [state]
26257
26278
  * @param {*} [options] Override http request option.
26258
26279
  * @throws {RequiredError}
26259
26280
  * @memberof TriggerServiceApi
26260
26281
  */
26261
- searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, options) {
26282
+ searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, durationFrom, durationTo, state, options) {
26262
26283
  return TriggerServiceApiFp(this.configuration)
26263
- .searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, options)
26284
+ .searchTriggerJob(triggerId, page, size, q, sort, fields, createdAtFrom, createdAtTo, startedAtFrom, startedAtTo, durationFrom, durationTo, state, options)
26264
26285
  .then((request) => request(this.axios, this.basePath));
26265
26286
  }
26266
26287
  /**
@@ -27031,7 +27052,7 @@ async function getMediaStream(constraints) {
27031
27052
 
27032
27053
  const getVersion = () => {
27033
27054
  // @ts-ignore
27034
- return '"0.1.169"';
27055
+ return '"0.1.171"';
27035
27056
  };
27036
27057
  var version = getVersion();
27037
27058
 
@@ -28064,8 +28085,10 @@ class Conversation {
28064
28085
  contact: null,
28065
28086
  };
28066
28087
  if (i.hasOwnProperty('file')) {
28067
- i.file.url = this.client.fileUrlDownload(i.file.id);
28068
- i.file.streamUrl = this.client.fileUrlStream(i.file.id);
28088
+ if (i.file.id > 0) {
28089
+ i.file.url = this.client.fileUrlDownload(i.file.id);
28090
+ i.file.streamUrl = this.client.fileUrlStream(i.file.id);
28091
+ }
28069
28092
  msg.file = i.file;
28070
28093
  }
28071
28094
  if (i.hasOwnProperty('text')) {