webitel-sdk 23.7.17 → 23.9.2

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.
@@ -8556,10 +8556,11 @@ const CallServiceApiAxiosParamCreator = function (configuration) {
8556
8556
  * @param {string} [scoreOptionalFrom]
8557
8557
  * @param {string} [scoreOptionalTo]
8558
8558
  * @param {Array<string>} [ratedUser]
8559
+ * @param {Array<string>} [contactId]
8559
8560
  * @param {*} [options] Override http request option.
8560
8561
  * @throws {RequiredError}
8561
8562
  */
8562
- searchHistoryCall: async (page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, options = {}) => {
8563
+ searchHistoryCall: async (page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, contactId, options = {}) => {
8563
8564
  const localVarPath = `/calls/history`;
8564
8565
  const localVarUrlObj = parse(localVarPath, true);
8565
8566
  let baseOptions;
@@ -8727,6 +8728,9 @@ const CallServiceApiAxiosParamCreator = function (configuration) {
8727
8728
  if (ratedUser) {
8728
8729
  localVarQueryParameter['rated_user'] = ratedUser;
8729
8730
  }
8731
+ if (contactId) {
8732
+ localVarQueryParameter['contact_id'] = contactId;
8733
+ }
8730
8734
  localVarUrlObj.query = {
8731
8735
  ...localVarUrlObj.query,
8732
8736
  ...localVarQueryParameter,
@@ -9295,11 +9299,12 @@ const CallServiceApiFp = function (configuration) {
9295
9299
  * @param {string} [scoreOptionalFrom]
9296
9300
  * @param {string} [scoreOptionalTo]
9297
9301
  * @param {Array<string>} [ratedUser]
9302
+ * @param {Array<string>} [contactId]
9298
9303
  * @param {*} [options] Override http request option.
9299
9304
  * @throws {RequiredError}
9300
9305
  */
9301
- async searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, options) {
9302
- const localVarAxiosArgs = await CallServiceApiAxiosParamCreator(configuration).searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, options);
9306
+ async searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, contactId, options) {
9307
+ const localVarAxiosArgs = await CallServiceApiAxiosParamCreator(configuration).searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, contactId, options);
9303
9308
  return (axios = globalAxios, basePath = BASE_PATH) => {
9304
9309
  const axiosRequestArgs = {
9305
9310
  ...localVarAxiosArgs.options,
@@ -9619,12 +9624,13 @@ const CallServiceApiFactory = function (configuration, basePath, axios) {
9619
9624
  * @param {string} [scoreOptionalFrom]
9620
9625
  * @param {string} [scoreOptionalTo]
9621
9626
  * @param {Array<string>} [ratedUser]
9627
+ * @param {Array<string>} [contactId]
9622
9628
  * @param {*} [options] Override http request option.
9623
9629
  * @throws {RequiredError}
9624
9630
  */
9625
- searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, options) {
9631
+ searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, contactId, options) {
9626
9632
  return CallServiceApiFp(configuration)
9627
- .searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, options)
9633
+ .searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, contactId, options)
9628
9634
  .then((request) => request(axios, basePath));
9629
9635
  },
9630
9636
  /**
@@ -9932,13 +9938,14 @@ class CallServiceApi extends BaseAPI {
9932
9938
  * @param {string} [scoreOptionalFrom]
9933
9939
  * @param {string} [scoreOptionalTo]
9934
9940
  * @param {Array<string>} [ratedUser]
9941
+ * @param {Array<string>} [contactId]
9935
9942
  * @param {*} [options] Override http request option.
9936
9943
  * @throws {RequiredError}
9937
9944
  * @memberof CallServiceApi
9938
9945
  */
9939
- searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, options) {
9946
+ searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, contactId, options) {
9940
9947
  return CallServiceApiFp(this.configuration)
9941
- .searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, options)
9948
+ .searchHistoryCall(page, size, q, sort, fields, createdAtFrom, createdAtTo, userId, agentId, queueId, teamId, memberId, gatewayId, durationFrom, durationTo, skipParent, parentId, cause, hasFile, domainId, number, direction, answeredAtFrom, answeredAtTo, missed, storedAtFrom, storedAtTo, id, transferFrom, transferTo, dependencyId, tags, amdResult, fts, directions, hasTranscript, agentDescription, ownerId, granteeId, amdAiResult, talkFrom, talkTo, rated, ratedBy, scoreRequiredFrom, scoreRequiredTo, scoreOptionalFrom, scoreOptionalTo, ratedUser, contactId, options)
9942
9949
  .then((request) => request(this.axios, this.basePath));
9943
9950
  }
9944
9951
  /**
@@ -43789,6 +43796,7 @@ class Call {
43789
43796
  if (this.autoAnswered) {
43790
43797
  return;
43791
43798
  }
43799
+ this.autoAnswered = true;
43792
43800
  this._autoAnswerTimerId = setTimeout(async () => {
43793
43801
  if (this.autoAnswered) {
43794
43802
  return;