webitel-sdk 0.1.186 → 0.1.188

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.
Files changed (109) hide show
  1. package/bundles/index.esm.js +859 -75
  2. package/bundles/index.esm.js.map +1 -1
  3. package/bundles/index.esm.min.js +1 -1
  4. package/bundles/index.esm.min.js.map +1 -1
  5. package/bundles/index.umd.js +886 -21
  6. package/bundles/index.umd.js.map +1 -1
  7. package/bundles/index.umd.min.js +1 -1
  8. package/bundles/index.umd.min.js.map +1 -1
  9. package/esm2015/api/agent-skill-service-api.js +16 -16
  10. package/esm2015/api/engine-create-outbound-resource-display-bulk-request.js +13 -0
  11. package/esm2015/api/engine-create-outbound-resource-display-bulk-request.js.map +1 -0
  12. package/esm2015/api/engine-create-skill-agent-request.js +13 -0
  13. package/esm2015/api/engine-create-skill-agent-request.js.map +1 -0
  14. package/esm2015/api/engine-create-skill-agent-response.js +13 -0
  15. package/esm2015/api/engine-create-skill-agent-response.js.map +1 -0
  16. package/esm2015/api/engine-delete-skill-agent-request.js +13 -0
  17. package/esm2015/api/engine-delete-skill-agent-request.js.map +1 -0
  18. package/esm2015/api/engine-delete-skill-agent-response.js +13 -0
  19. package/esm2015/api/engine-delete-skill-agent-response.js.map +1 -0
  20. package/esm2015/api/engine-list-resource-display.js +13 -0
  21. package/esm2015/api/engine-list-resource-display.js.map +1 -0
  22. package/esm2015/api/engine-list-skill-agent.js +13 -0
  23. package/esm2015/api/engine-list-skill-agent.js.map +1 -0
  24. package/esm2015/api/engine-patch-skill-agent-request.js +13 -0
  25. package/esm2015/api/engine-patch-skill-agent-request.js.map +1 -0
  26. package/esm2015/api/engine-patch-skill-agent-response.js +13 -0
  27. package/esm2015/api/engine-patch-skill-agent-response.js.map +1 -0
  28. package/esm2015/api/engine-skill-agent-item.js +13 -0
  29. package/esm2015/api/engine-skill-agent-item.js.map +1 -0
  30. package/esm2015/api/index.js +10 -0
  31. package/esm2015/api/index.js.map +1 -1
  32. package/esm2015/api/outbound-resource-service-api.js +205 -0
  33. package/esm2015/api/outbound-resource-service-api.js.map +1 -1
  34. package/esm2015/api/skill-service-api.js +447 -0
  35. package/esm2015/api/skill-service-api.js.map +1 -1
  36. package/esm2015/socket/call.js +4 -2
  37. package/esm2015/socket/call.js.map +1 -1
  38. package/esm2015/socket/client.js.map +1 -1
  39. package/esm5/api/agent-skill-service-api.js +16 -16
  40. package/esm5/api/engine-create-outbound-resource-display-bulk-request.js +13 -0
  41. package/esm5/api/engine-create-outbound-resource-display-bulk-request.js.map +1 -0
  42. package/esm5/api/engine-create-skill-agent-request.js +13 -0
  43. package/esm5/api/engine-create-skill-agent-request.js.map +1 -0
  44. package/esm5/api/engine-create-skill-agent-response.js +13 -0
  45. package/esm5/api/engine-create-skill-agent-response.js.map +1 -0
  46. package/esm5/api/engine-delete-skill-agent-request.js +13 -0
  47. package/esm5/api/engine-delete-skill-agent-request.js.map +1 -0
  48. package/esm5/api/engine-delete-skill-agent-response.js +13 -0
  49. package/esm5/api/engine-delete-skill-agent-response.js.map +1 -0
  50. package/esm5/api/engine-list-resource-display.js +13 -0
  51. package/esm5/api/engine-list-resource-display.js.map +1 -0
  52. package/esm5/api/engine-list-skill-agent.js +13 -0
  53. package/esm5/api/engine-list-skill-agent.js.map +1 -0
  54. package/esm5/api/engine-patch-skill-agent-request.js +13 -0
  55. package/esm5/api/engine-patch-skill-agent-request.js.map +1 -0
  56. package/esm5/api/engine-patch-skill-agent-response.js +13 -0
  57. package/esm5/api/engine-patch-skill-agent-response.js.map +1 -0
  58. package/esm5/api/engine-skill-agent-item.js +13 -0
  59. package/esm5/api/engine-skill-agent-item.js.map +1 -0
  60. package/esm5/api/index.js +10 -0
  61. package/esm5/api/index.js.map +1 -1
  62. package/esm5/api/outbound-resource-service-api.js +231 -0
  63. package/esm5/api/outbound-resource-service-api.js.map +1 -1
  64. package/esm5/api/skill-service-api.js +499 -0
  65. package/esm5/api/skill-service-api.js.map +1 -1
  66. package/esm5/socket/call.js +10 -5
  67. package/esm5/socket/call.js.map +1 -1
  68. package/esm5/socket/client.js.map +1 -1
  69. package/package.json +1 -1
  70. package/types/api/agent-skill-service-api.d.ts +24 -24
  71. package/types/api/engine-attempt-history.d.ts +6 -0
  72. package/types/api/engine-attempt-history.d.ts.map +1 -1
  73. package/types/api/engine-attempt.d.ts +6 -0
  74. package/types/api/engine-attempt.d.ts.map +1 -1
  75. package/types/api/engine-create-outbound-resource-display-bulk-request.d.ts +32 -0
  76. package/types/api/engine-create-outbound-resource-display-bulk-request.d.ts.map +1 -0
  77. package/types/api/engine-create-skill-agent-request.d.ts +44 -0
  78. package/types/api/engine-create-skill-agent-request.d.ts.map +1 -0
  79. package/types/api/engine-create-skill-agent-response.d.ts +26 -0
  80. package/types/api/engine-create-skill-agent-response.d.ts.map +1 -0
  81. package/types/api/engine-delete-skill-agent-request.d.ts +37 -0
  82. package/types/api/engine-delete-skill-agent-request.d.ts.map +1 -0
  83. package/types/api/engine-delete-skill-agent-response.d.ts +26 -0
  84. package/types/api/engine-delete-skill-agent-response.d.ts.map +1 -0
  85. package/types/api/engine-history-call.d.ts +6 -0
  86. package/types/api/engine-history-call.d.ts.map +1 -1
  87. package/types/api/engine-list-resource-display.d.ts +25 -0
  88. package/types/api/engine-list-resource-display.d.ts.map +1 -0
  89. package/types/api/engine-list-skill-agent.d.ts +32 -0
  90. package/types/api/engine-list-skill-agent.d.ts.map +1 -0
  91. package/types/api/engine-member-attempt.d.ts +6 -0
  92. package/types/api/engine-member-attempt.d.ts.map +1 -1
  93. package/types/api/engine-patch-agent-skills-request.d.ts +4 -4
  94. package/types/api/engine-patch-skill-agent-request.d.ts +62 -0
  95. package/types/api/engine-patch-skill-agent-request.d.ts.map +1 -0
  96. package/types/api/engine-patch-skill-agent-response.d.ts +26 -0
  97. package/types/api/engine-patch-skill-agent-response.d.ts.map +1 -0
  98. package/types/api/engine-skill-agent-item.d.ts +56 -0
  99. package/types/api/engine-skill-agent-item.d.ts.map +1 -0
  100. package/types/api/engine-skill.d.ts +6 -0
  101. package/types/api/engine-skill.d.ts.map +1 -1
  102. package/types/api/index.d.ts +10 -0
  103. package/types/api/index.d.ts.map +1 -1
  104. package/types/api/outbound-resource-service-api.d.ts +76 -0
  105. package/types/api/outbound-resource-service-api.d.ts.map +1 -1
  106. package/types/api/skill-service-api.d.ts +167 -0
  107. package/types/api/skill-service-api.d.ts.map +1 -1
  108. package/types/socket/call.d.ts.map +1 -1
  109. package/types/socket/client.d.ts.map +1 -1
@@ -3173,8 +3173,8 @@ const AgentSkillServiceApiAxiosParamCreator = function (configuration) {
3173
3173
  /**
3174
3174
  *
3175
3175
  * @param {string} agentId
3176
- * @param {Array<number>} [id]
3177
- * @param {Array<number>} [skillId]
3176
+ * @param {Array<string>} [id]
3177
+ * @param {Array<string>} [skillId]
3178
3178
  * @param {*} [options] Override http request option.
3179
3179
  * @throws {RequiredError}
3180
3180
  */
@@ -3424,8 +3424,8 @@ const AgentSkillServiceApiAxiosParamCreator = function (configuration) {
3424
3424
  * @param {string} [q]
3425
3425
  * @param {string} [sort]
3426
3426
  * @param {Array<string>} [fields]
3427
- * @param {Array<number>} [id]
3428
- * @param {Array<number>} [skillId]
3427
+ * @param {Array<string>} [id]
3428
+ * @param {Array<string>} [skillId]
3429
3429
  * @param {*} [options] Override http request option.
3430
3430
  * @throws {RequiredError}
3431
3431
  */
@@ -3692,8 +3692,8 @@ const AgentSkillServiceApiFp = function (configuration) {
3692
3692
  /**
3693
3693
  *
3694
3694
  * @param {string} agentId
3695
- * @param {Array<number>} [id]
3696
- * @param {Array<number>} [skillId]
3695
+ * @param {Array<string>} [id]
3696
+ * @param {Array<string>} [skillId]
3697
3697
  * @param {*} [options] Override http request option.
3698
3698
  * @throws {RequiredError}
3699
3699
  */
@@ -3770,8 +3770,8 @@ const AgentSkillServiceApiFp = function (configuration) {
3770
3770
  * @param {string} [q]
3771
3771
  * @param {string} [sort]
3772
3772
  * @param {Array<string>} [fields]
3773
- * @param {Array<number>} [id]
3774
- * @param {Array<number>} [skillId]
3773
+ * @param {Array<string>} [id]
3774
+ * @param {Array<string>} [skillId]
3775
3775
  * @param {*} [options] Override http request option.
3776
3776
  * @throws {RequiredError}
3777
3777
  */
@@ -3875,8 +3875,8 @@ const AgentSkillServiceApiFactory = function (configuration, basePath, axios) {
3875
3875
  /**
3876
3876
  *
3877
3877
  * @param {string} agentId
3878
- * @param {Array<number>} [id]
3879
- * @param {Array<number>} [skillId]
3878
+ * @param {Array<string>} [id]
3879
+ * @param {Array<string>} [skillId]
3880
3880
  * @param {*} [options] Override http request option.
3881
3881
  * @throws {RequiredError}
3882
3882
  */
@@ -3933,8 +3933,8 @@ const AgentSkillServiceApiFactory = function (configuration, basePath, axios) {
3933
3933
  * @param {string} [q]
3934
3934
  * @param {string} [sort]
3935
3935
  * @param {Array<string>} [fields]
3936
- * @param {Array<number>} [id]
3937
- * @param {Array<number>} [skillId]
3936
+ * @param {Array<string>} [id]
3937
+ * @param {Array<string>} [skillId]
3938
3938
  * @param {*} [options] Override http request option.
3939
3939
  * @throws {RequiredError}
3940
3940
  */
@@ -4027,8 +4027,8 @@ class AgentSkillServiceApi extends BaseAPI {
4027
4027
  /**
4028
4028
  *
4029
4029
  * @param {string} agentId
4030
- * @param {Array<number>} [id]
4031
- * @param {Array<number>} [skillId]
4030
+ * @param {Array<string>} [id]
4031
+ * @param {Array<string>} [skillId]
4032
4032
  * @param {*} [options] Override http request option.
4033
4033
  * @throws {RequiredError}
4034
4034
  * @memberof AgentSkillServiceApi
@@ -4089,8 +4089,8 @@ class AgentSkillServiceApi extends BaseAPI {
4089
4089
  * @param {string} [q]
4090
4090
  * @param {string} [sort]
4091
4091
  * @param {Array<string>} [fields]
4092
- * @param {Array<number>} [id]
4093
- * @param {Array<number>} [skillId]
4092
+ * @param {Array<string>} [id]
4093
+ * @param {Array<string>} [skillId]
4094
4094
  * @param {*} [options] Override http request option.
4095
4095
  * @throws {RequiredError}
4096
4096
  * @memberof AgentSkillServiceApi
@@ -18128,6 +18128,67 @@ const OutboundResourceServiceApiAxiosParamCreator = function (configuration) {
18128
18128
  options: localVarRequestOptions,
18129
18129
  };
18130
18130
  },
18131
+ /**
18132
+ *
18133
+ * @summary Create CreateOutboundResourceDisplay
18134
+ * @param {string} resourceId
18135
+ * @param {EngineCreateOutboundResourceDisplayBulkRequest} body
18136
+ * @param {*} [options] Override http request option.
18137
+ * @throws {RequiredError}
18138
+ */
18139
+ createOutboundResourceDisplayBulk: async (resourceId, body, options = {}) => {
18140
+ // verify required parameter 'resourceId' is not null or undefined
18141
+ if (resourceId === null || resourceId === undefined) {
18142
+ throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling createOutboundResourceDisplayBulk.');
18143
+ }
18144
+ // verify required parameter 'body' is not null or undefined
18145
+ if (body === null || body === undefined) {
18146
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createOutboundResourceDisplayBulk.');
18147
+ }
18148
+ const localVarPath = `/call_center/resources/{resource_id}/display/bulk`.replace(`{${'resource_id'}}`, encodeURIComponent(String(resourceId)));
18149
+ const localVarUrlObj = parse(localVarPath, true);
18150
+ let baseOptions;
18151
+ if (configuration) {
18152
+ baseOptions = configuration.baseOptions;
18153
+ }
18154
+ const localVarRequestOptions = {
18155
+ method: 'POST',
18156
+ ...baseOptions,
18157
+ ...options,
18158
+ };
18159
+ const localVarHeaderParameter = {};
18160
+ const localVarQueryParameter = {};
18161
+ // authentication AccessToken required
18162
+ if (configuration && configuration.apiKey) {
18163
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18164
+ ? await configuration.apiKey('X-Webitel-Access')
18165
+ : await configuration.apiKey;
18166
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
18167
+ }
18168
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18169
+ localVarUrlObj.query = {
18170
+ ...localVarUrlObj.query,
18171
+ ...localVarQueryParameter,
18172
+ ...options.query,
18173
+ };
18174
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18175
+ delete localVarUrlObj.search;
18176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18177
+ localVarRequestOptions.headers = {
18178
+ ...localVarHeaderParameter,
18179
+ ...headersFromBaseOptions,
18180
+ ...options.headers,
18181
+ };
18182
+ const needsSerialization = typeof body !== 'string' ||
18183
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
18184
+ localVarRequestOptions.data = needsSerialization
18185
+ ? JSON.stringify(body !== undefined ? body : {})
18186
+ : body || '';
18187
+ return {
18188
+ url: format(localVarUrlObj),
18189
+ options: localVarRequestOptions,
18190
+ };
18191
+ },
18131
18192
  /**
18132
18193
  *
18133
18194
  * @summary Remove OutboundResource
@@ -18243,6 +18304,60 @@ const OutboundResourceServiceApiAxiosParamCreator = function (configuration) {
18243
18304
  options: localVarRequestOptions,
18244
18305
  };
18245
18306
  },
18307
+ /**
18308
+ *
18309
+ * @summary Remove ResourceDisplays
18310
+ * @param {string} resourceId
18311
+ * @param {Array<string>} [items]
18312
+ * @param {*} [options] Override http request option.
18313
+ * @throws {RequiredError}
18314
+ */
18315
+ deleteOutboundResourceDisplays: async (resourceId, items, options = {}) => {
18316
+ // verify required parameter 'resourceId' is not null or undefined
18317
+ if (resourceId === null || resourceId === undefined) {
18318
+ throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling deleteOutboundResourceDisplays.');
18319
+ }
18320
+ const localVarPath = `/call_center/resources/{resource_id}/display`.replace(`{${'resource_id'}}`, encodeURIComponent(String(resourceId)));
18321
+ const localVarUrlObj = parse(localVarPath, true);
18322
+ let baseOptions;
18323
+ if (configuration) {
18324
+ baseOptions = configuration.baseOptions;
18325
+ }
18326
+ const localVarRequestOptions = {
18327
+ method: 'DELETE',
18328
+ ...baseOptions,
18329
+ ...options,
18330
+ };
18331
+ const localVarHeaderParameter = {};
18332
+ const localVarQueryParameter = {};
18333
+ // authentication AccessToken required
18334
+ if (configuration && configuration.apiKey) {
18335
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18336
+ ? await configuration.apiKey('X-Webitel-Access')
18337
+ : await configuration.apiKey;
18338
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
18339
+ }
18340
+ if (items) {
18341
+ localVarQueryParameter['items'] = items;
18342
+ }
18343
+ localVarUrlObj.query = {
18344
+ ...localVarUrlObj.query,
18345
+ ...localVarQueryParameter,
18346
+ ...options.query,
18347
+ };
18348
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18349
+ delete localVarUrlObj.search;
18350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18351
+ localVarRequestOptions.headers = {
18352
+ ...localVarHeaderParameter,
18353
+ ...headersFromBaseOptions,
18354
+ ...options.headers,
18355
+ };
18356
+ return {
18357
+ url: format(localVarUrlObj),
18358
+ options: localVarRequestOptions,
18359
+ };
18360
+ },
18246
18361
  /**
18247
18362
  *
18248
18363
  * @summary Patch OutboundResource
@@ -18734,6 +18849,24 @@ const OutboundResourceServiceApiFp = function (configuration) {
18734
18849
  return axios.request(axiosRequestArgs);
18735
18850
  };
18736
18851
  },
18852
+ /**
18853
+ *
18854
+ * @summary Create CreateOutboundResourceDisplay
18855
+ * @param {string} resourceId
18856
+ * @param {EngineCreateOutboundResourceDisplayBulkRequest} body
18857
+ * @param {*} [options] Override http request option.
18858
+ * @throws {RequiredError}
18859
+ */
18860
+ async createOutboundResourceDisplayBulk(resourceId, body, options) {
18861
+ const localVarAxiosArgs = await OutboundResourceServiceApiAxiosParamCreator(configuration).createOutboundResourceDisplayBulk(resourceId, body, options);
18862
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18863
+ const axiosRequestArgs = {
18864
+ ...localVarAxiosArgs.options,
18865
+ url: basePath + localVarAxiosArgs.url,
18866
+ };
18867
+ return axios.request(axiosRequestArgs);
18868
+ };
18869
+ },
18737
18870
  /**
18738
18871
  *
18739
18872
  * @summary Remove OutboundResource
@@ -18771,6 +18904,24 @@ const OutboundResourceServiceApiFp = function (configuration) {
18771
18904
  return axios.request(axiosRequestArgs);
18772
18905
  };
18773
18906
  },
18907
+ /**
18908
+ *
18909
+ * @summary Remove ResourceDisplays
18910
+ * @param {string} resourceId
18911
+ * @param {Array<string>} [items]
18912
+ * @param {*} [options] Override http request option.
18913
+ * @throws {RequiredError}
18914
+ */
18915
+ async deleteOutboundResourceDisplays(resourceId, items, options) {
18916
+ const localVarAxiosArgs = await OutboundResourceServiceApiAxiosParamCreator(configuration).deleteOutboundResourceDisplays(resourceId, items, options);
18917
+ return (axios = globalAxios, basePath = BASE_PATH) => {
18918
+ const axiosRequestArgs = {
18919
+ ...localVarAxiosArgs.options,
18920
+ url: basePath + localVarAxiosArgs.url,
18921
+ };
18922
+ return axios.request(axiosRequestArgs);
18923
+ };
18924
+ },
18774
18925
  /**
18775
18926
  *
18776
18927
  * @summary Patch OutboundResource
@@ -18941,6 +19092,19 @@ const OutboundResourceServiceApiFactory = function (configuration, basePath, axi
18941
19092
  .createOutboundResourceDisplay(resourceId, body, options)
18942
19093
  .then((request) => request(axios, basePath));
18943
19094
  },
19095
+ /**
19096
+ *
19097
+ * @summary Create CreateOutboundResourceDisplay
19098
+ * @param {string} resourceId
19099
+ * @param {EngineCreateOutboundResourceDisplayBulkRequest} body
19100
+ * @param {*} [options] Override http request option.
19101
+ * @throws {RequiredError}
19102
+ */
19103
+ createOutboundResourceDisplayBulk(resourceId, body, options) {
19104
+ return OutboundResourceServiceApiFp(configuration)
19105
+ .createOutboundResourceDisplayBulk(resourceId, body, options)
19106
+ .then((request) => request(axios, basePath));
19107
+ },
18944
19108
  /**
18945
19109
  *
18946
19110
  * @summary Remove OutboundResource
@@ -18968,6 +19132,19 @@ const OutboundResourceServiceApiFactory = function (configuration, basePath, axi
18968
19132
  .deleteOutboundResourceDisplay(resourceId, id, domainId, options)
18969
19133
  .then((request) => request(axios, basePath));
18970
19134
  },
19135
+ /**
19136
+ *
19137
+ * @summary Remove ResourceDisplays
19138
+ * @param {string} resourceId
19139
+ * @param {Array<string>} [items]
19140
+ * @param {*} [options] Override http request option.
19141
+ * @throws {RequiredError}
19142
+ */
19143
+ deleteOutboundResourceDisplays(resourceId, items, options) {
19144
+ return OutboundResourceServiceApiFp(configuration)
19145
+ .deleteOutboundResourceDisplays(resourceId, items, options)
19146
+ .then((request) => request(axios, basePath));
19147
+ },
18971
19148
  /**
18972
19149
  *
18973
19150
  * @summary Patch OutboundResource
@@ -19106,6 +19283,20 @@ class OutboundResourceServiceApi extends BaseAPI {
19106
19283
  .createOutboundResourceDisplay(resourceId, body, options)
19107
19284
  .then((request) => request(this.axios, this.basePath));
19108
19285
  }
19286
+ /**
19287
+ *
19288
+ * @summary Create CreateOutboundResourceDisplay
19289
+ * @param {string} resourceId
19290
+ * @param {EngineCreateOutboundResourceDisplayBulkRequest} body
19291
+ * @param {*} [options] Override http request option.
19292
+ * @throws {RequiredError}
19293
+ * @memberof OutboundResourceServiceApi
19294
+ */
19295
+ createOutboundResourceDisplayBulk(resourceId, body, options) {
19296
+ return OutboundResourceServiceApiFp(this.configuration)
19297
+ .createOutboundResourceDisplayBulk(resourceId, body, options)
19298
+ .then((request) => request(this.axios, this.basePath));
19299
+ }
19109
19300
  /**
19110
19301
  *
19111
19302
  * @summary Remove OutboundResource
@@ -19135,6 +19326,20 @@ class OutboundResourceServiceApi extends BaseAPI {
19135
19326
  .deleteOutboundResourceDisplay(resourceId, id, domainId, options)
19136
19327
  .then((request) => request(this.axios, this.basePath));
19137
19328
  }
19329
+ /**
19330
+ *
19331
+ * @summary Remove ResourceDisplays
19332
+ * @param {string} resourceId
19333
+ * @param {Array<string>} [items]
19334
+ * @param {*} [options] Override http request option.
19335
+ * @throws {RequiredError}
19336
+ * @memberof OutboundResourceServiceApi
19337
+ */
19338
+ deleteOutboundResourceDisplays(resourceId, items, options) {
19339
+ return OutboundResourceServiceApiFp(this.configuration)
19340
+ .deleteOutboundResourceDisplays(resourceId, items, options)
19341
+ .then((request) => request(this.axios, this.basePath));
19342
+ }
19138
19343
  /**
19139
19344
  *
19140
19345
  * @summary Patch OutboundResource
@@ -26992,25 +27197,28 @@ const SkillServiceApiAxiosParamCreator = function (configuration) {
26992
27197
  },
26993
27198
  /**
26994
27199
  *
26995
- * @summary Remove Skill
26996
- * @param {string} id
26997
- * @param {string} [domainId]
27200
+ * @param {string} skillId
27201
+ * @param {EngineCreateSkillAgentRequest} body
26998
27202
  * @param {*} [options] Override http request option.
26999
27203
  * @throws {RequiredError}
27000
27204
  */
27001
- deleteSkill: async (id, domainId, options = {}) => {
27002
- // verify required parameter 'id' is not null or undefined
27003
- if (id === null || id === undefined) {
27004
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteSkill.');
27205
+ createSkillAgent: async (skillId, body, options = {}) => {
27206
+ // verify required parameter 'skillId' is not null or undefined
27207
+ if (skillId === null || skillId === undefined) {
27208
+ throw new RequiredError('skillId', 'Required parameter skillId was null or undefined when calling createSkillAgent.');
27005
27209
  }
27006
- const localVarPath = `/call_center/skills/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
27210
+ // verify required parameter 'body' is not null or undefined
27211
+ if (body === null || body === undefined) {
27212
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createSkillAgent.');
27213
+ }
27214
+ const localVarPath = `/call_center/skills/{skill_id}/agents`.replace(`{${'skill_id'}}`, encodeURIComponent(String(skillId)));
27007
27215
  const localVarUrlObj = parse(localVarPath, true);
27008
27216
  let baseOptions;
27009
27217
  if (configuration) {
27010
27218
  baseOptions = configuration.baseOptions;
27011
27219
  }
27012
27220
  const localVarRequestOptions = {
27013
- method: 'DELETE',
27221
+ method: 'POST',
27014
27222
  ...baseOptions,
27015
27223
  ...options,
27016
27224
  };
@@ -27023,9 +27231,7 @@ const SkillServiceApiAxiosParamCreator = function (configuration) {
27023
27231
  : await configuration.apiKey;
27024
27232
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
27025
27233
  }
27026
- if (domainId !== undefined) {
27027
- localVarQueryParameter['domain_id'] = domainId;
27028
- }
27234
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27029
27235
  localVarUrlObj.query = {
27030
27236
  ...localVarUrlObj.query,
27031
27237
  ...localVarQueryParameter,
@@ -27039,6 +27245,11 @@ const SkillServiceApiAxiosParamCreator = function (configuration) {
27039
27245
  ...headersFromBaseOptions,
27040
27246
  ...options.headers,
27041
27247
  };
27248
+ const needsSerialization = typeof body !== 'string' ||
27249
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
27250
+ localVarRequestOptions.data = needsSerialization
27251
+ ? JSON.stringify(body !== undefined ? body : {})
27252
+ : body || '';
27042
27253
  return {
27043
27254
  url: format(localVarUrlObj),
27044
27255
  options: localVarRequestOptions,
@@ -27046,16 +27257,16 @@ const SkillServiceApiAxiosParamCreator = function (configuration) {
27046
27257
  },
27047
27258
  /**
27048
27259
  *
27049
- * @summary Skill item
27260
+ * @summary Remove Skill
27050
27261
  * @param {string} id
27051
27262
  * @param {string} [domainId]
27052
27263
  * @param {*} [options] Override http request option.
27053
27264
  * @throws {RequiredError}
27054
27265
  */
27055
- readSkill: async (id, domainId, options = {}) => {
27266
+ deleteSkill: async (id, domainId, options = {}) => {
27056
27267
  // verify required parameter 'id' is not null or undefined
27057
27268
  if (id === null || id === undefined) {
27058
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling readSkill.');
27269
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteSkill.');
27059
27270
  }
27060
27271
  const localVarPath = `/call_center/skills/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
27061
27272
  const localVarUrlObj = parse(localVarPath, true);
@@ -27064,7 +27275,7 @@ const SkillServiceApiAxiosParamCreator = function (configuration) {
27064
27275
  baseOptions = configuration.baseOptions;
27065
27276
  }
27066
27277
  const localVarRequestOptions = {
27067
- method: 'GET',
27278
+ method: 'DELETE',
27068
27279
  ...baseOptions,
27069
27280
  ...options,
27070
27281
  };
@@ -27100,25 +27311,28 @@ const SkillServiceApiAxiosParamCreator = function (configuration) {
27100
27311
  },
27101
27312
  /**
27102
27313
  *
27103
- * @summary List of Skill
27104
- * @param {number} [page]
27105
- * @param {number} [size]
27106
- * @param {string} [q]
27107
- * @param {string} [sort]
27108
- * @param {Array<string>} [fields]
27109
- * @param {Array<number>} [id]
27314
+ * @param {string} skillId
27315
+ * @param {EngineDeleteSkillAgentRequest} body
27110
27316
  * @param {*} [options] Override http request option.
27111
27317
  * @throws {RequiredError}
27112
27318
  */
27113
- searchSkill: async (page, size, q, sort, fields, id, options = {}) => {
27114
- const localVarPath = `/call_center/skills`;
27319
+ deleteSkillAgent: async (skillId, body, options = {}) => {
27320
+ // verify required parameter 'skillId' is not null or undefined
27321
+ if (skillId === null || skillId === undefined) {
27322
+ throw new RequiredError('skillId', 'Required parameter skillId was null or undefined when calling deleteSkillAgent.');
27323
+ }
27324
+ // verify required parameter 'body' is not null or undefined
27325
+ if (body === null || body === undefined) {
27326
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteSkillAgent.');
27327
+ }
27328
+ const localVarPath = `/call_center/skills/{skill_id}/agents`.replace(`{${'skill_id'}}`, encodeURIComponent(String(skillId)));
27115
27329
  const localVarUrlObj = parse(localVarPath, true);
27116
27330
  let baseOptions;
27117
27331
  if (configuration) {
27118
27332
  baseOptions = configuration.baseOptions;
27119
27333
  }
27120
27334
  const localVarRequestOptions = {
27121
- method: 'GET',
27335
+ method: 'DELETE',
27122
27336
  ...baseOptions,
27123
27337
  ...options,
27124
27338
  };
@@ -27131,24 +27345,273 @@ const SkillServiceApiAxiosParamCreator = function (configuration) {
27131
27345
  : await configuration.apiKey;
27132
27346
  localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
27133
27347
  }
27134
- if (page !== undefined) {
27135
- localVarQueryParameter['page'] = page;
27136
- }
27137
- if (size !== undefined) {
27138
- localVarQueryParameter['size'] = size;
27139
- }
27140
- if (q !== undefined) {
27141
- localVarQueryParameter['q'] = q;
27142
- }
27143
- if (sort !== undefined) {
27144
- localVarQueryParameter['sort'] = sort;
27145
- }
27146
- if (fields) {
27147
- localVarQueryParameter['fields'] = fields;
27348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27349
+ localVarUrlObj.query = {
27350
+ ...localVarUrlObj.query,
27351
+ ...localVarQueryParameter,
27352
+ ...options.query,
27353
+ };
27354
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
27355
+ delete localVarUrlObj.search;
27356
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27357
+ localVarRequestOptions.headers = {
27358
+ ...localVarHeaderParameter,
27359
+ ...headersFromBaseOptions,
27360
+ ...options.headers,
27361
+ };
27362
+ const needsSerialization = typeof body !== 'string' ||
27363
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
27364
+ localVarRequestOptions.data = needsSerialization
27365
+ ? JSON.stringify(body !== undefined ? body : {})
27366
+ : body || '';
27367
+ return {
27368
+ url: format(localVarUrlObj),
27369
+ options: localVarRequestOptions,
27370
+ };
27371
+ },
27372
+ /**
27373
+ *
27374
+ * @param {string} skillId
27375
+ * @param {EnginePatchSkillAgentRequest} body
27376
+ * @param {*} [options] Override http request option.
27377
+ * @throws {RequiredError}
27378
+ */
27379
+ patchSkillAgent: async (skillId, body, options = {}) => {
27380
+ // verify required parameter 'skillId' is not null or undefined
27381
+ if (skillId === null || skillId === undefined) {
27382
+ throw new RequiredError('skillId', 'Required parameter skillId was null or undefined when calling patchSkillAgent.');
27383
+ }
27384
+ // verify required parameter 'body' is not null or undefined
27385
+ if (body === null || body === undefined) {
27386
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchSkillAgent.');
27387
+ }
27388
+ const localVarPath = `/call_center/skills/{skill_id}/agents`.replace(`{${'skill_id'}}`, encodeURIComponent(String(skillId)));
27389
+ const localVarUrlObj = parse(localVarPath, true);
27390
+ let baseOptions;
27391
+ if (configuration) {
27392
+ baseOptions = configuration.baseOptions;
27393
+ }
27394
+ const localVarRequestOptions = {
27395
+ method: 'PATCH',
27396
+ ...baseOptions,
27397
+ ...options,
27398
+ };
27399
+ const localVarHeaderParameter = {};
27400
+ const localVarQueryParameter = {};
27401
+ // authentication AccessToken required
27402
+ if (configuration && configuration.apiKey) {
27403
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
27404
+ ? await configuration.apiKey('X-Webitel-Access')
27405
+ : await configuration.apiKey;
27406
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
27407
+ }
27408
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27409
+ localVarUrlObj.query = {
27410
+ ...localVarUrlObj.query,
27411
+ ...localVarQueryParameter,
27412
+ ...options.query,
27413
+ };
27414
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
27415
+ delete localVarUrlObj.search;
27416
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27417
+ localVarRequestOptions.headers = {
27418
+ ...localVarHeaderParameter,
27419
+ ...headersFromBaseOptions,
27420
+ ...options.headers,
27421
+ };
27422
+ const needsSerialization = typeof body !== 'string' ||
27423
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
27424
+ localVarRequestOptions.data = needsSerialization
27425
+ ? JSON.stringify(body !== undefined ? body : {})
27426
+ : body || '';
27427
+ return {
27428
+ url: format(localVarUrlObj),
27429
+ options: localVarRequestOptions,
27430
+ };
27431
+ },
27432
+ /**
27433
+ *
27434
+ * @summary Skill item
27435
+ * @param {string} id
27436
+ * @param {string} [domainId]
27437
+ * @param {*} [options] Override http request option.
27438
+ * @throws {RequiredError}
27439
+ */
27440
+ readSkill: async (id, domainId, options = {}) => {
27441
+ // verify required parameter 'id' is not null or undefined
27442
+ if (id === null || id === undefined) {
27443
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling readSkill.');
27444
+ }
27445
+ const localVarPath = `/call_center/skills/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
27446
+ const localVarUrlObj = parse(localVarPath, true);
27447
+ let baseOptions;
27448
+ if (configuration) {
27449
+ baseOptions = configuration.baseOptions;
27450
+ }
27451
+ const localVarRequestOptions = {
27452
+ method: 'GET',
27453
+ ...baseOptions,
27454
+ ...options,
27455
+ };
27456
+ const localVarHeaderParameter = {};
27457
+ const localVarQueryParameter = {};
27458
+ // authentication AccessToken required
27459
+ if (configuration && configuration.apiKey) {
27460
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
27461
+ ? await configuration.apiKey('X-Webitel-Access')
27462
+ : await configuration.apiKey;
27463
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
27464
+ }
27465
+ if (domainId !== undefined) {
27466
+ localVarQueryParameter['domain_id'] = domainId;
27467
+ }
27468
+ localVarUrlObj.query = {
27469
+ ...localVarUrlObj.query,
27470
+ ...localVarQueryParameter,
27471
+ ...options.query,
27472
+ };
27473
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
27474
+ delete localVarUrlObj.search;
27475
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27476
+ localVarRequestOptions.headers = {
27477
+ ...localVarHeaderParameter,
27478
+ ...headersFromBaseOptions,
27479
+ ...options.headers,
27480
+ };
27481
+ return {
27482
+ url: format(localVarUrlObj),
27483
+ options: localVarRequestOptions,
27484
+ };
27485
+ },
27486
+ /**
27487
+ *
27488
+ * @summary List of Skill
27489
+ * @param {number} [page]
27490
+ * @param {number} [size]
27491
+ * @param {string} [q]
27492
+ * @param {string} [sort]
27493
+ * @param {Array<string>} [fields]
27494
+ * @param {Array<number>} [id]
27495
+ * @param {*} [options] Override http request option.
27496
+ * @throws {RequiredError}
27497
+ */
27498
+ searchSkill: async (page, size, q, sort, fields, id, options = {}) => {
27499
+ const localVarPath = `/call_center/skills`;
27500
+ const localVarUrlObj = parse(localVarPath, true);
27501
+ let baseOptions;
27502
+ if (configuration) {
27503
+ baseOptions = configuration.baseOptions;
27504
+ }
27505
+ const localVarRequestOptions = {
27506
+ method: 'GET',
27507
+ ...baseOptions,
27508
+ ...options,
27509
+ };
27510
+ const localVarHeaderParameter = {};
27511
+ const localVarQueryParameter = {};
27512
+ // authentication AccessToken required
27513
+ if (configuration && configuration.apiKey) {
27514
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
27515
+ ? await configuration.apiKey('X-Webitel-Access')
27516
+ : await configuration.apiKey;
27517
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
27518
+ }
27519
+ if (page !== undefined) {
27520
+ localVarQueryParameter['page'] = page;
27521
+ }
27522
+ if (size !== undefined) {
27523
+ localVarQueryParameter['size'] = size;
27524
+ }
27525
+ if (q !== undefined) {
27526
+ localVarQueryParameter['q'] = q;
27527
+ }
27528
+ if (sort !== undefined) {
27529
+ localVarQueryParameter['sort'] = sort;
27530
+ }
27531
+ if (fields) {
27532
+ localVarQueryParameter['fields'] = fields;
27533
+ }
27534
+ if (id) {
27535
+ localVarQueryParameter['id'] = id;
27536
+ }
27537
+ localVarUrlObj.query = {
27538
+ ...localVarUrlObj.query,
27539
+ ...localVarQueryParameter,
27540
+ ...options.query,
27541
+ };
27542
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
27543
+ delete localVarUrlObj.search;
27544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27545
+ localVarRequestOptions.headers = {
27546
+ ...localVarHeaderParameter,
27547
+ ...headersFromBaseOptions,
27548
+ ...options.headers,
27549
+ };
27550
+ return {
27551
+ url: format(localVarUrlObj),
27552
+ options: localVarRequestOptions,
27553
+ };
27554
+ },
27555
+ /**
27556
+ *
27557
+ * @summary For agents SearchSkillAgent
27558
+ * @param {string} skillId
27559
+ * @param {number} [page]
27560
+ * @param {number} [size]
27561
+ * @param {string} [q]
27562
+ * @param {string} [sort]
27563
+ * @param {Array<string>} [fields]
27564
+ * @param {Array<string>} [id]
27565
+ * @param {Array<string>} [agentId]
27566
+ * @param {*} [options] Override http request option.
27567
+ * @throws {RequiredError}
27568
+ */
27569
+ searchSkillAgent: async (skillId, page, size, q, sort, fields, id, agentId, options = {}) => {
27570
+ // verify required parameter 'skillId' is not null or undefined
27571
+ if (skillId === null || skillId === undefined) {
27572
+ throw new RequiredError('skillId', 'Required parameter skillId was null or undefined when calling searchSkillAgent.');
27573
+ }
27574
+ const localVarPath = `/call_center/skills/{skill_id}/agents`.replace(`{${'skill_id'}}`, encodeURIComponent(String(skillId)));
27575
+ const localVarUrlObj = parse(localVarPath, true);
27576
+ let baseOptions;
27577
+ if (configuration) {
27578
+ baseOptions = configuration.baseOptions;
27579
+ }
27580
+ const localVarRequestOptions = {
27581
+ method: 'GET',
27582
+ ...baseOptions,
27583
+ ...options,
27584
+ };
27585
+ const localVarHeaderParameter = {};
27586
+ const localVarQueryParameter = {};
27587
+ // authentication AccessToken required
27588
+ if (configuration && configuration.apiKey) {
27589
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
27590
+ ? await configuration.apiKey('X-Webitel-Access')
27591
+ : await configuration.apiKey;
27592
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
27593
+ }
27594
+ if (page !== undefined) {
27595
+ localVarQueryParameter['page'] = page;
27596
+ }
27597
+ if (size !== undefined) {
27598
+ localVarQueryParameter['size'] = size;
27599
+ }
27600
+ if (q !== undefined) {
27601
+ localVarQueryParameter['q'] = q;
27602
+ }
27603
+ if (sort !== undefined) {
27604
+ localVarQueryParameter['sort'] = sort;
27605
+ }
27606
+ if (fields) {
27607
+ localVarQueryParameter['fields'] = fields;
27148
27608
  }
27149
27609
  if (id) {
27150
27610
  localVarQueryParameter['id'] = id;
27151
27611
  }
27612
+ if (agentId) {
27613
+ localVarQueryParameter['agent_id'] = agentId;
27614
+ }
27152
27615
  localVarUrlObj.query = {
27153
27616
  ...localVarUrlObj.query,
27154
27617
  ...localVarQueryParameter,
@@ -27228,23 +27691,75 @@ const SkillServiceApiAxiosParamCreator = function (configuration) {
27228
27691
  options: localVarRequestOptions,
27229
27692
  };
27230
27693
  },
27231
- };
27232
- };
27233
- /**
27234
- * SkillServiceApi - functional programming interface
27235
- * @export
27236
- */
27237
- const SkillServiceApiFp = function (configuration) {
27238
- return {
27694
+ };
27695
+ };
27696
+ /**
27697
+ * SkillServiceApi - functional programming interface
27698
+ * @export
27699
+ */
27700
+ const SkillServiceApiFp = function (configuration) {
27701
+ return {
27702
+ /**
27703
+ *
27704
+ * @summary Create Skill
27705
+ * @param {EngineCreateSkillRequest} body
27706
+ * @param {*} [options] Override http request option.
27707
+ * @throws {RequiredError}
27708
+ */
27709
+ async createSkill(body, options) {
27710
+ const localVarAxiosArgs = await SkillServiceApiAxiosParamCreator(configuration).createSkill(body, options);
27711
+ return (axios = globalAxios, basePath = BASE_PATH) => {
27712
+ const axiosRequestArgs = {
27713
+ ...localVarAxiosArgs.options,
27714
+ url: basePath + localVarAxiosArgs.url,
27715
+ };
27716
+ return axios.request(axiosRequestArgs);
27717
+ };
27718
+ },
27719
+ /**
27720
+ *
27721
+ * @param {string} skillId
27722
+ * @param {EngineCreateSkillAgentRequest} body
27723
+ * @param {*} [options] Override http request option.
27724
+ * @throws {RequiredError}
27725
+ */
27726
+ async createSkillAgent(skillId, body, options) {
27727
+ const localVarAxiosArgs = await SkillServiceApiAxiosParamCreator(configuration).createSkillAgent(skillId, body, options);
27728
+ return (axios = globalAxios, basePath = BASE_PATH) => {
27729
+ const axiosRequestArgs = {
27730
+ ...localVarAxiosArgs.options,
27731
+ url: basePath + localVarAxiosArgs.url,
27732
+ };
27733
+ return axios.request(axiosRequestArgs);
27734
+ };
27735
+ },
27736
+ /**
27737
+ *
27738
+ * @summary Remove Skill
27739
+ * @param {string} id
27740
+ * @param {string} [domainId]
27741
+ * @param {*} [options] Override http request option.
27742
+ * @throws {RequiredError}
27743
+ */
27744
+ async deleteSkill(id, domainId, options) {
27745
+ const localVarAxiosArgs = await SkillServiceApiAxiosParamCreator(configuration).deleteSkill(id, domainId, options);
27746
+ return (axios = globalAxios, basePath = BASE_PATH) => {
27747
+ const axiosRequestArgs = {
27748
+ ...localVarAxiosArgs.options,
27749
+ url: basePath + localVarAxiosArgs.url,
27750
+ };
27751
+ return axios.request(axiosRequestArgs);
27752
+ };
27753
+ },
27239
27754
  /**
27240
27755
  *
27241
- * @summary Create Skill
27242
- * @param {EngineCreateSkillRequest} body
27756
+ * @param {string} skillId
27757
+ * @param {EngineDeleteSkillAgentRequest} body
27243
27758
  * @param {*} [options] Override http request option.
27244
27759
  * @throws {RequiredError}
27245
27760
  */
27246
- async createSkill(body, options) {
27247
- const localVarAxiosArgs = await SkillServiceApiAxiosParamCreator(configuration).createSkill(body, options);
27761
+ async deleteSkillAgent(skillId, body, options) {
27762
+ const localVarAxiosArgs = await SkillServiceApiAxiosParamCreator(configuration).deleteSkillAgent(skillId, body, options);
27248
27763
  return (axios = globalAxios, basePath = BASE_PATH) => {
27249
27764
  const axiosRequestArgs = {
27250
27765
  ...localVarAxiosArgs.options,
@@ -27255,14 +27770,13 @@ const SkillServiceApiFp = function (configuration) {
27255
27770
  },
27256
27771
  /**
27257
27772
  *
27258
- * @summary Remove Skill
27259
- * @param {string} id
27260
- * @param {string} [domainId]
27773
+ * @param {string} skillId
27774
+ * @param {EnginePatchSkillAgentRequest} body
27261
27775
  * @param {*} [options] Override http request option.
27262
27776
  * @throws {RequiredError}
27263
27777
  */
27264
- async deleteSkill(id, domainId, options) {
27265
- const localVarAxiosArgs = await SkillServiceApiAxiosParamCreator(configuration).deleteSkill(id, domainId, options);
27778
+ async patchSkillAgent(skillId, body, options) {
27779
+ const localVarAxiosArgs = await SkillServiceApiAxiosParamCreator(configuration).patchSkillAgent(skillId, body, options);
27266
27780
  return (axios = globalAxios, basePath = BASE_PATH) => {
27267
27781
  const axiosRequestArgs = {
27268
27782
  ...localVarAxiosArgs.options,
@@ -27311,6 +27825,30 @@ const SkillServiceApiFp = function (configuration) {
27311
27825
  return axios.request(axiosRequestArgs);
27312
27826
  };
27313
27827
  },
27828
+ /**
27829
+ *
27830
+ * @summary For agents SearchSkillAgent
27831
+ * @param {string} skillId
27832
+ * @param {number} [page]
27833
+ * @param {number} [size]
27834
+ * @param {string} [q]
27835
+ * @param {string} [sort]
27836
+ * @param {Array<string>} [fields]
27837
+ * @param {Array<string>} [id]
27838
+ * @param {Array<string>} [agentId]
27839
+ * @param {*} [options] Override http request option.
27840
+ * @throws {RequiredError}
27841
+ */
27842
+ async searchSkillAgent(skillId, page, size, q, sort, fields, id, agentId, options) {
27843
+ const localVarAxiosArgs = await SkillServiceApiAxiosParamCreator(configuration).searchSkillAgent(skillId, page, size, q, sort, fields, id, agentId, options);
27844
+ return (axios = globalAxios, basePath = BASE_PATH) => {
27845
+ const axiosRequestArgs = {
27846
+ ...localVarAxiosArgs.options,
27847
+ url: basePath + localVarAxiosArgs.url,
27848
+ };
27849
+ return axios.request(axiosRequestArgs);
27850
+ };
27851
+ },
27314
27852
  /**
27315
27853
  *
27316
27854
  * @summary Update Skill
@@ -27349,6 +27887,18 @@ const SkillServiceApiFactory = function (configuration, basePath, axios) {
27349
27887
  .createSkill(body, options)
27350
27888
  .then((request) => request(axios, basePath));
27351
27889
  },
27890
+ /**
27891
+ *
27892
+ * @param {string} skillId
27893
+ * @param {EngineCreateSkillAgentRequest} body
27894
+ * @param {*} [options] Override http request option.
27895
+ * @throws {RequiredError}
27896
+ */
27897
+ createSkillAgent(skillId, body, options) {
27898
+ return SkillServiceApiFp(configuration)
27899
+ .createSkillAgent(skillId, body, options)
27900
+ .then((request) => request(axios, basePath));
27901
+ },
27352
27902
  /**
27353
27903
  *
27354
27904
  * @summary Remove Skill
@@ -27362,6 +27912,30 @@ const SkillServiceApiFactory = function (configuration, basePath, axios) {
27362
27912
  .deleteSkill(id, domainId, options)
27363
27913
  .then((request) => request(axios, basePath));
27364
27914
  },
27915
+ /**
27916
+ *
27917
+ * @param {string} skillId
27918
+ * @param {EngineDeleteSkillAgentRequest} body
27919
+ * @param {*} [options] Override http request option.
27920
+ * @throws {RequiredError}
27921
+ */
27922
+ deleteSkillAgent(skillId, body, options) {
27923
+ return SkillServiceApiFp(configuration)
27924
+ .deleteSkillAgent(skillId, body, options)
27925
+ .then((request) => request(axios, basePath));
27926
+ },
27927
+ /**
27928
+ *
27929
+ * @param {string} skillId
27930
+ * @param {EnginePatchSkillAgentRequest} body
27931
+ * @param {*} [options] Override http request option.
27932
+ * @throws {RequiredError}
27933
+ */
27934
+ patchSkillAgent(skillId, body, options) {
27935
+ return SkillServiceApiFp(configuration)
27936
+ .patchSkillAgent(skillId, body, options)
27937
+ .then((request) => request(axios, basePath));
27938
+ },
27365
27939
  /**
27366
27940
  *
27367
27941
  * @summary Skill item
@@ -27392,6 +27966,25 @@ const SkillServiceApiFactory = function (configuration, basePath, axios) {
27392
27966
  .searchSkill(page, size, q, sort, fields, id, options)
27393
27967
  .then((request) => request(axios, basePath));
27394
27968
  },
27969
+ /**
27970
+ *
27971
+ * @summary For agents SearchSkillAgent
27972
+ * @param {string} skillId
27973
+ * @param {number} [page]
27974
+ * @param {number} [size]
27975
+ * @param {string} [q]
27976
+ * @param {string} [sort]
27977
+ * @param {Array<string>} [fields]
27978
+ * @param {Array<string>} [id]
27979
+ * @param {Array<string>} [agentId]
27980
+ * @param {*} [options] Override http request option.
27981
+ * @throws {RequiredError}
27982
+ */
27983
+ searchSkillAgent(skillId, page, size, q, sort, fields, id, agentId, options) {
27984
+ return SkillServiceApiFp(configuration)
27985
+ .searchSkillAgent(skillId, page, size, q, sort, fields, id, agentId, options)
27986
+ .then((request) => request(axios, basePath));
27987
+ },
27395
27988
  /**
27396
27989
  *
27397
27990
  * @summary Update Skill
@@ -27427,6 +28020,19 @@ class SkillServiceApi extends BaseAPI {
27427
28020
  .createSkill(body, options)
27428
28021
  .then((request) => request(this.axios, this.basePath));
27429
28022
  }
28023
+ /**
28024
+ *
28025
+ * @param {string} skillId
28026
+ * @param {EngineCreateSkillAgentRequest} body
28027
+ * @param {*} [options] Override http request option.
28028
+ * @throws {RequiredError}
28029
+ * @memberof SkillServiceApi
28030
+ */
28031
+ createSkillAgent(skillId, body, options) {
28032
+ return SkillServiceApiFp(this.configuration)
28033
+ .createSkillAgent(skillId, body, options)
28034
+ .then((request) => request(this.axios, this.basePath));
28035
+ }
27430
28036
  /**
27431
28037
  *
27432
28038
  * @summary Remove Skill
@@ -27441,6 +28047,32 @@ class SkillServiceApi extends BaseAPI {
27441
28047
  .deleteSkill(id, domainId, options)
27442
28048
  .then((request) => request(this.axios, this.basePath));
27443
28049
  }
28050
+ /**
28051
+ *
28052
+ * @param {string} skillId
28053
+ * @param {EngineDeleteSkillAgentRequest} body
28054
+ * @param {*} [options] Override http request option.
28055
+ * @throws {RequiredError}
28056
+ * @memberof SkillServiceApi
28057
+ */
28058
+ deleteSkillAgent(skillId, body, options) {
28059
+ return SkillServiceApiFp(this.configuration)
28060
+ .deleteSkillAgent(skillId, body, options)
28061
+ .then((request) => request(this.axios, this.basePath));
28062
+ }
28063
+ /**
28064
+ *
28065
+ * @param {string} skillId
28066
+ * @param {EnginePatchSkillAgentRequest} body
28067
+ * @param {*} [options] Override http request option.
28068
+ * @throws {RequiredError}
28069
+ * @memberof SkillServiceApi
28070
+ */
28071
+ patchSkillAgent(skillId, body, options) {
28072
+ return SkillServiceApiFp(this.configuration)
28073
+ .patchSkillAgent(skillId, body, options)
28074
+ .then((request) => request(this.axios, this.basePath));
28075
+ }
27444
28076
  /**
27445
28077
  *
27446
28078
  * @summary Skill item
@@ -27473,6 +28105,26 @@ class SkillServiceApi extends BaseAPI {
27473
28105
  .searchSkill(page, size, q, sort, fields, id, options)
27474
28106
  .then((request) => request(this.axios, this.basePath));
27475
28107
  }
28108
+ /**
28109
+ *
28110
+ * @summary For agents SearchSkillAgent
28111
+ * @param {string} skillId
28112
+ * @param {number} [page]
28113
+ * @param {number} [size]
28114
+ * @param {string} [q]
28115
+ * @param {string} [sort]
28116
+ * @param {Array<string>} [fields]
28117
+ * @param {Array<string>} [id]
28118
+ * @param {Array<string>} [agentId]
28119
+ * @param {*} [options] Override http request option.
28120
+ * @throws {RequiredError}
28121
+ * @memberof SkillServiceApi
28122
+ */
28123
+ searchSkillAgent(skillId, page, size, q, sort, fields, id, agentId, options) {
28124
+ return SkillServiceApiFp(this.configuration)
28125
+ .searchSkillAgent(skillId, page, size, q, sort, fields, id, agentId, options)
28126
+ .then((request) => request(this.axios, this.basePath));
28127
+ }
27476
28128
  /**
27477
28129
  *
27478
28130
  * @summary Update Skill
@@ -31020,6 +31672,123 @@ var EngineBoolFilter;
31020
31672
  * Do not edit the class manually.
31021
31673
  */
31022
31674
 
31675
+ // tslint:disable
31676
+ /**
31677
+ * Webitel engine API
31678
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31679
+ *
31680
+ * The version of the OpenAPI document: 23.02.0
31681
+ * Contact: support@webitel.com
31682
+ *
31683
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31684
+ * https://openapi-generator.tech
31685
+ * Do not edit the class manually.
31686
+ */
31687
+
31688
+ // tslint:disable
31689
+ /**
31690
+ * Webitel engine API
31691
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31692
+ *
31693
+ * The version of the OpenAPI document: 23.02.0
31694
+ * Contact: support@webitel.com
31695
+ *
31696
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31697
+ * https://openapi-generator.tech
31698
+ * Do not edit the class manually.
31699
+ */
31700
+
31701
+ // tslint:disable
31702
+ /**
31703
+ * Webitel engine API
31704
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31705
+ *
31706
+ * The version of the OpenAPI document: 23.02.0
31707
+ * Contact: support@webitel.com
31708
+ *
31709
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31710
+ * https://openapi-generator.tech
31711
+ * Do not edit the class manually.
31712
+ */
31713
+
31714
+ // tslint:disable
31715
+ /**
31716
+ * Webitel engine API
31717
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31718
+ *
31719
+ * The version of the OpenAPI document: 23.02.0
31720
+ * Contact: support@webitel.com
31721
+ *
31722
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31723
+ * https://openapi-generator.tech
31724
+ * Do not edit the class manually.
31725
+ */
31726
+
31727
+ // tslint:disable
31728
+ /**
31729
+ * Webitel engine API
31730
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31731
+ *
31732
+ * The version of the OpenAPI document: 23.02.0
31733
+ * Contact: support@webitel.com
31734
+ *
31735
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31736
+ * https://openapi-generator.tech
31737
+ * Do not edit the class manually.
31738
+ */
31739
+
31740
+ // tslint:disable
31741
+ /**
31742
+ * Webitel engine API
31743
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31744
+ *
31745
+ * The version of the OpenAPI document: 23.02.0
31746
+ * Contact: support@webitel.com
31747
+ *
31748
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31749
+ * https://openapi-generator.tech
31750
+ * Do not edit the class manually.
31751
+ */
31752
+
31753
+ // tslint:disable
31754
+ /**
31755
+ * Webitel engine API
31756
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31757
+ *
31758
+ * The version of the OpenAPI document: 23.02.0
31759
+ * Contact: support@webitel.com
31760
+ *
31761
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31762
+ * https://openapi-generator.tech
31763
+ * Do not edit the class manually.
31764
+ */
31765
+
31766
+ // tslint:disable
31767
+ /**
31768
+ * Webitel engine API
31769
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31770
+ *
31771
+ * The version of the OpenAPI document: 23.02.0
31772
+ * Contact: support@webitel.com
31773
+ *
31774
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31775
+ * https://openapi-generator.tech
31776
+ * Do not edit the class manually.
31777
+ */
31778
+
31779
+ // tslint:disable
31780
+ /**
31781
+ * Webitel engine API
31782
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31783
+ *
31784
+ * The version of the OpenAPI document: 23.02.0
31785
+ * Contact: support@webitel.com
31786
+ *
31787
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31788
+ * https://openapi-generator.tech
31789
+ * Do not edit the class manually.
31790
+ */
31791
+
31023
31792
  // tslint:disable
31024
31793
  /**
31025
31794
  * Webitel engine API
@@ -31433,6 +32202,19 @@ var EngineRoutingSchemaType;
31433
32202
  * Do not edit the class manually.
31434
32203
  */
31435
32204
 
32205
+ // tslint:disable
32206
+ /**
32207
+ * Webitel engine API
32208
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
32209
+ *
32210
+ * The version of the OpenAPI document: 23.02.0
32211
+ * Contact: support@webitel.com
32212
+ *
32213
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
32214
+ * https://openapi-generator.tech
32215
+ * Do not edit the class manually.
32216
+ */
32217
+
31436
32218
  // tslint:disable
31437
32219
  /**
31438
32220
  * Webitel engine API
@@ -33734,9 +34516,11 @@ class Call {
33734
34516
  if (this.autoAnswered) {
33735
34517
  return;
33736
34518
  }
33737
- this.autoAnswered = true;
33738
34519
  this._autoAnswerTimerId = setTimeout(async () => {
33739
- await this.answer(req);
34520
+ if (this.autoAnswered) {
34521
+ return;
34522
+ }
34523
+ this.autoAnswered = await this.answer(req);
33740
34524
  }, this.autoAnswerDelay);
33741
34525
  }
33742
34526
  async hangup(cause) {