webitel-sdk 0.1.96 → 0.1.99
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/bundles/index.esm.js +214 -20
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +248 -20
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/api/call-service-api.js +92 -0
- package/esm2015/api/call-service-api.js.map +1 -1
- package/esm2015/api/region-service-api.js +20 -20
- package/esm2015/api/routing-chat-plan-service-api.js +88 -0
- package/esm2015/api/routing-chat-plan-service-api.js.map +1 -1
- package/esm2015/enums/messenger-type.enum.js +1 -1
- package/esm2015/enums/messenger-type.enum.js.map +1 -1
- package/esm2015/socket/conversation.js +14 -0
- package/esm2015/socket/conversation.js.map +1 -1
- package/esm5/api/call-service-api.js +105 -0
- package/esm5/api/call-service-api.js.map +1 -1
- package/esm5/api/region-service-api.js +20 -20
- package/esm5/api/routing-chat-plan-service-api.js +101 -0
- package/esm5/api/routing-chat-plan-service-api.js.map +1 -1
- package/esm5/enums/messenger-type.enum.js +1 -1
- package/esm5/enums/messenger-type.enum.js.map +1 -1
- package/esm5/socket/conversation.js +22 -0
- package/esm5/socket/conversation.js.map +1 -1
- package/package.json +3 -3
- package/types/api/call-service-api.d.ts +33 -0
- package/types/api/call-service-api.d.ts.map +1 -1
- package/types/api/engine-agent-call-statistics.d.ts +12 -0
- package/types/api/engine-agent-call-statistics.d.ts.map +1 -1
- package/types/api/engine-patch-region-request.d.ts +2 -2
- package/types/api/engine-region.d.ts +2 -2
- package/types/api/engine-update-region-request.d.ts +2 -2
- package/types/api/region-service-api.d.ts +40 -40
- package/types/api/routing-chat-plan-service-api.d.ts +29 -0
- package/types/api/routing-chat-plan-service-api.d.ts.map +1 -1
- package/types/enums/messenger-type.enum.d.ts +1 -1
- package/types/enums/messenger-type.enum.d.ts.map +1 -1
- package/types/socket/conversation.d.ts +2 -0
- package/types/socket/conversation.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -6321,6 +6321,56 @@ const CallServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6321
6321
|
options: localVarRequestOptions,
|
|
6322
6322
|
};
|
|
6323
6323
|
},
|
|
6324
|
+
/**
|
|
6325
|
+
*
|
|
6326
|
+
* @summary Call item
|
|
6327
|
+
* @param {string} id
|
|
6328
|
+
* @param {*} [options] Override http request option.
|
|
6329
|
+
* @throws {RequiredError}
|
|
6330
|
+
*/
|
|
6331
|
+
confirmPush: async (id, options = {}) => {
|
|
6332
|
+
// verify required parameter 'id' is not null or undefined
|
|
6333
|
+
if (id === null || id === undefined) {
|
|
6334
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling confirmPush.');
|
|
6335
|
+
}
|
|
6336
|
+
const localVarPath = `/calls/active/{id}/confirm_push`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6337
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
6338
|
+
let baseOptions;
|
|
6339
|
+
if (configuration) {
|
|
6340
|
+
baseOptions = configuration.baseOptions;
|
|
6341
|
+
}
|
|
6342
|
+
const localVarRequestOptions = {
|
|
6343
|
+
method: 'PATCH',
|
|
6344
|
+
...baseOptions,
|
|
6345
|
+
...options,
|
|
6346
|
+
};
|
|
6347
|
+
const localVarHeaderParameter = {};
|
|
6348
|
+
const localVarQueryParameter = {};
|
|
6349
|
+
// authentication AccessToken required
|
|
6350
|
+
if (configuration && configuration.apiKey) {
|
|
6351
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
6352
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
6353
|
+
: await configuration.apiKey;
|
|
6354
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
6355
|
+
}
|
|
6356
|
+
localVarUrlObj.query = {
|
|
6357
|
+
...localVarUrlObj.query,
|
|
6358
|
+
...localVarQueryParameter,
|
|
6359
|
+
...options.query,
|
|
6360
|
+
};
|
|
6361
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
6362
|
+
delete localVarUrlObj.search;
|
|
6363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6364
|
+
localVarRequestOptions.headers = {
|
|
6365
|
+
...localVarHeaderParameter,
|
|
6366
|
+
...headersFromBaseOptions,
|
|
6367
|
+
...options.headers,
|
|
6368
|
+
};
|
|
6369
|
+
return {
|
|
6370
|
+
url: format(localVarUrlObj),
|
|
6371
|
+
options: localVarRequestOptions,
|
|
6372
|
+
};
|
|
6373
|
+
},
|
|
6324
6374
|
/**
|
|
6325
6375
|
*
|
|
6326
6376
|
* @summary Create e call
|
|
@@ -7292,6 +7342,23 @@ const CallServiceApiFp = function (configuration) {
|
|
|
7292
7342
|
return axios.request(axiosRequestArgs);
|
|
7293
7343
|
};
|
|
7294
7344
|
},
|
|
7345
|
+
/**
|
|
7346
|
+
*
|
|
7347
|
+
* @summary Call item
|
|
7348
|
+
* @param {string} id
|
|
7349
|
+
* @param {*} [options] Override http request option.
|
|
7350
|
+
* @throws {RequiredError}
|
|
7351
|
+
*/
|
|
7352
|
+
async confirmPush(id, options) {
|
|
7353
|
+
const localVarAxiosArgs = await CallServiceApiAxiosParamCreator(configuration).confirmPush(id, options);
|
|
7354
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
7355
|
+
const axiosRequestArgs = {
|
|
7356
|
+
...localVarAxiosArgs.options,
|
|
7357
|
+
url: basePath + localVarAxiosArgs.url,
|
|
7358
|
+
};
|
|
7359
|
+
return axios.request(axiosRequestArgs);
|
|
7360
|
+
};
|
|
7361
|
+
},
|
|
7295
7362
|
/**
|
|
7296
7363
|
*
|
|
7297
7364
|
* @summary Create e call
|
|
@@ -7588,6 +7655,18 @@ const CallServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
7588
7655
|
.blindTransferCall(id, body, options)
|
|
7589
7656
|
.then((request) => request(axios, basePath));
|
|
7590
7657
|
},
|
|
7658
|
+
/**
|
|
7659
|
+
*
|
|
7660
|
+
* @summary Call item
|
|
7661
|
+
* @param {string} id
|
|
7662
|
+
* @param {*} [options] Override http request option.
|
|
7663
|
+
* @throws {RequiredError}
|
|
7664
|
+
*/
|
|
7665
|
+
confirmPush(id, options) {
|
|
7666
|
+
return CallServiceApiFp(configuration)
|
|
7667
|
+
.confirmPush(id, options)
|
|
7668
|
+
.then((request) => request(axios, basePath));
|
|
7669
|
+
},
|
|
7591
7670
|
/**
|
|
7592
7671
|
*
|
|
7593
7672
|
* @summary Create e call
|
|
@@ -7827,6 +7906,19 @@ class CallServiceApi extends BaseAPI {
|
|
|
7827
7906
|
.blindTransferCall(id, body, options)
|
|
7828
7907
|
.then((request) => request(this.axios, this.basePath));
|
|
7829
7908
|
}
|
|
7909
|
+
/**
|
|
7910
|
+
*
|
|
7911
|
+
* @summary Call item
|
|
7912
|
+
* @param {string} id
|
|
7913
|
+
* @param {*} [options] Override http request option.
|
|
7914
|
+
* @throws {RequiredError}
|
|
7915
|
+
* @memberof CallServiceApi
|
|
7916
|
+
*/
|
|
7917
|
+
confirmPush(id, options) {
|
|
7918
|
+
return CallServiceApiFp(this.configuration)
|
|
7919
|
+
.confirmPush(id, options)
|
|
7920
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7921
|
+
}
|
|
7830
7922
|
/**
|
|
7831
7923
|
*
|
|
7832
7924
|
* @summary Create e call
|
|
@@ -18734,7 +18826,7 @@ const RegionServiceApiAxiosParamCreator = function (configuration) {
|
|
|
18734
18826
|
},
|
|
18735
18827
|
/**
|
|
18736
18828
|
*
|
|
18737
|
-
* @param {
|
|
18829
|
+
* @param {string} id
|
|
18738
18830
|
* @param {*} [options] Override http request option.
|
|
18739
18831
|
* @throws {RequiredError}
|
|
18740
18832
|
*/
|
|
@@ -18783,7 +18875,7 @@ const RegionServiceApiAxiosParamCreator = function (configuration) {
|
|
|
18783
18875
|
},
|
|
18784
18876
|
/**
|
|
18785
18877
|
*
|
|
18786
|
-
* @param {
|
|
18878
|
+
* @param {string} id
|
|
18787
18879
|
* @param {EnginePatchRegionRequest} body
|
|
18788
18880
|
* @param {*} [options] Override http request option.
|
|
18789
18881
|
* @throws {RequiredError}
|
|
@@ -18843,7 +18935,7 @@ const RegionServiceApiAxiosParamCreator = function (configuration) {
|
|
|
18843
18935
|
},
|
|
18844
18936
|
/**
|
|
18845
18937
|
*
|
|
18846
|
-
* @param {
|
|
18938
|
+
* @param {string} id
|
|
18847
18939
|
* @param {*} [options] Override http request option.
|
|
18848
18940
|
* @throws {RequiredError}
|
|
18849
18941
|
*/
|
|
@@ -18897,7 +18989,7 @@ const RegionServiceApiAxiosParamCreator = function (configuration) {
|
|
|
18897
18989
|
* @param {string} [q]
|
|
18898
18990
|
* @param {string} [sort]
|
|
18899
18991
|
* @param {Array<string>} [fields]
|
|
18900
|
-
* @param {Array<
|
|
18992
|
+
* @param {Array<string>} [id]
|
|
18901
18993
|
* @param {string} [name]
|
|
18902
18994
|
* @param {string} [description]
|
|
18903
18995
|
* @param {Array<number>} [timezoneId]
|
|
@@ -18972,7 +19064,7 @@ const RegionServiceApiAxiosParamCreator = function (configuration) {
|
|
|
18972
19064
|
},
|
|
18973
19065
|
/**
|
|
18974
19066
|
*
|
|
18975
|
-
* @param {
|
|
19067
|
+
* @param {string} id
|
|
18976
19068
|
* @param {EngineUpdateRegionRequest} body
|
|
18977
19069
|
* @param {*} [options] Override http request option.
|
|
18978
19070
|
* @throws {RequiredError}
|
|
@@ -19056,7 +19148,7 @@ const RegionServiceApiFp = function (configuration) {
|
|
|
19056
19148
|
},
|
|
19057
19149
|
/**
|
|
19058
19150
|
*
|
|
19059
|
-
* @param {
|
|
19151
|
+
* @param {string} id
|
|
19060
19152
|
* @param {*} [options] Override http request option.
|
|
19061
19153
|
* @throws {RequiredError}
|
|
19062
19154
|
*/
|
|
@@ -19072,7 +19164,7 @@ const RegionServiceApiFp = function (configuration) {
|
|
|
19072
19164
|
},
|
|
19073
19165
|
/**
|
|
19074
19166
|
*
|
|
19075
|
-
* @param {
|
|
19167
|
+
* @param {string} id
|
|
19076
19168
|
* @param {EnginePatchRegionRequest} body
|
|
19077
19169
|
* @param {*} [options] Override http request option.
|
|
19078
19170
|
* @throws {RequiredError}
|
|
@@ -19089,7 +19181,7 @@ const RegionServiceApiFp = function (configuration) {
|
|
|
19089
19181
|
},
|
|
19090
19182
|
/**
|
|
19091
19183
|
*
|
|
19092
|
-
* @param {
|
|
19184
|
+
* @param {string} id
|
|
19093
19185
|
* @param {*} [options] Override http request option.
|
|
19094
19186
|
* @throws {RequiredError}
|
|
19095
19187
|
*/
|
|
@@ -19110,7 +19202,7 @@ const RegionServiceApiFp = function (configuration) {
|
|
|
19110
19202
|
* @param {string} [q]
|
|
19111
19203
|
* @param {string} [sort]
|
|
19112
19204
|
* @param {Array<string>} [fields]
|
|
19113
|
-
* @param {Array<
|
|
19205
|
+
* @param {Array<string>} [id]
|
|
19114
19206
|
* @param {string} [name]
|
|
19115
19207
|
* @param {string} [description]
|
|
19116
19208
|
* @param {Array<number>} [timezoneId]
|
|
@@ -19129,7 +19221,7 @@ const RegionServiceApiFp = function (configuration) {
|
|
|
19129
19221
|
},
|
|
19130
19222
|
/**
|
|
19131
19223
|
*
|
|
19132
|
-
* @param {
|
|
19224
|
+
* @param {string} id
|
|
19133
19225
|
* @param {EngineUpdateRegionRequest} body
|
|
19134
19226
|
* @param {*} [options] Override http request option.
|
|
19135
19227
|
* @throws {RequiredError}
|
|
@@ -19165,7 +19257,7 @@ const RegionServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
19165
19257
|
},
|
|
19166
19258
|
/**
|
|
19167
19259
|
*
|
|
19168
|
-
* @param {
|
|
19260
|
+
* @param {string} id
|
|
19169
19261
|
* @param {*} [options] Override http request option.
|
|
19170
19262
|
* @throws {RequiredError}
|
|
19171
19263
|
*/
|
|
@@ -19176,7 +19268,7 @@ const RegionServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
19176
19268
|
},
|
|
19177
19269
|
/**
|
|
19178
19270
|
*
|
|
19179
|
-
* @param {
|
|
19271
|
+
* @param {string} id
|
|
19180
19272
|
* @param {EnginePatchRegionRequest} body
|
|
19181
19273
|
* @param {*} [options] Override http request option.
|
|
19182
19274
|
* @throws {RequiredError}
|
|
@@ -19188,7 +19280,7 @@ const RegionServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
19188
19280
|
},
|
|
19189
19281
|
/**
|
|
19190
19282
|
*
|
|
19191
|
-
* @param {
|
|
19283
|
+
* @param {string} id
|
|
19192
19284
|
* @param {*} [options] Override http request option.
|
|
19193
19285
|
* @throws {RequiredError}
|
|
19194
19286
|
*/
|
|
@@ -19204,7 +19296,7 @@ const RegionServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
19204
19296
|
* @param {string} [q]
|
|
19205
19297
|
* @param {string} [sort]
|
|
19206
19298
|
* @param {Array<string>} [fields]
|
|
19207
|
-
* @param {Array<
|
|
19299
|
+
* @param {Array<string>} [id]
|
|
19208
19300
|
* @param {string} [name]
|
|
19209
19301
|
* @param {string} [description]
|
|
19210
19302
|
* @param {Array<number>} [timezoneId]
|
|
@@ -19218,7 +19310,7 @@ const RegionServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
19218
19310
|
},
|
|
19219
19311
|
/**
|
|
19220
19312
|
*
|
|
19221
|
-
* @param {
|
|
19313
|
+
* @param {string} id
|
|
19222
19314
|
* @param {EngineUpdateRegionRequest} body
|
|
19223
19315
|
* @param {*} [options] Override http request option.
|
|
19224
19316
|
* @throws {RequiredError}
|
|
@@ -19251,7 +19343,7 @@ class RegionServiceApi extends BaseAPI {
|
|
|
19251
19343
|
}
|
|
19252
19344
|
/**
|
|
19253
19345
|
*
|
|
19254
|
-
* @param {
|
|
19346
|
+
* @param {string} id
|
|
19255
19347
|
* @param {*} [options] Override http request option.
|
|
19256
19348
|
* @throws {RequiredError}
|
|
19257
19349
|
* @memberof RegionServiceApi
|
|
@@ -19263,7 +19355,7 @@ class RegionServiceApi extends BaseAPI {
|
|
|
19263
19355
|
}
|
|
19264
19356
|
/**
|
|
19265
19357
|
*
|
|
19266
|
-
* @param {
|
|
19358
|
+
* @param {string} id
|
|
19267
19359
|
* @param {EnginePatchRegionRequest} body
|
|
19268
19360
|
* @param {*} [options] Override http request option.
|
|
19269
19361
|
* @throws {RequiredError}
|
|
@@ -19276,7 +19368,7 @@ class RegionServiceApi extends BaseAPI {
|
|
|
19276
19368
|
}
|
|
19277
19369
|
/**
|
|
19278
19370
|
*
|
|
19279
|
-
* @param {
|
|
19371
|
+
* @param {string} id
|
|
19280
19372
|
* @param {*} [options] Override http request option.
|
|
19281
19373
|
* @throws {RequiredError}
|
|
19282
19374
|
* @memberof RegionServiceApi
|
|
@@ -19293,7 +19385,7 @@ class RegionServiceApi extends BaseAPI {
|
|
|
19293
19385
|
* @param {string} [q]
|
|
19294
19386
|
* @param {string} [sort]
|
|
19295
19387
|
* @param {Array<string>} [fields]
|
|
19296
|
-
* @param {Array<
|
|
19388
|
+
* @param {Array<string>} [id]
|
|
19297
19389
|
* @param {string} [name]
|
|
19298
19390
|
* @param {string} [description]
|
|
19299
19391
|
* @param {Array<number>} [timezoneId]
|
|
@@ -19308,7 +19400,7 @@ class RegionServiceApi extends BaseAPI {
|
|
|
19308
19400
|
}
|
|
19309
19401
|
/**
|
|
19310
19402
|
*
|
|
19311
|
-
* @param {
|
|
19403
|
+
* @param {string} id
|
|
19312
19404
|
* @param {EngineUpdateRegionRequest} body
|
|
19313
19405
|
* @param {*} [options] Override http request option.
|
|
19314
19406
|
* @throws {RequiredError}
|
|
@@ -19383,6 +19475,55 @@ const RoutingChatPlanServiceApiAxiosParamCreator = function (configuration) {
|
|
|
19383
19475
|
options: localVarRequestOptions,
|
|
19384
19476
|
};
|
|
19385
19477
|
},
|
|
19478
|
+
/**
|
|
19479
|
+
*
|
|
19480
|
+
* @param {number} id
|
|
19481
|
+
* @param {*} [options] Override http request option.
|
|
19482
|
+
* @throws {RequiredError}
|
|
19483
|
+
*/
|
|
19484
|
+
deleteChatPlan: async (id, options = {}) => {
|
|
19485
|
+
// verify required parameter 'id' is not null or undefined
|
|
19486
|
+
if (id === null || id === undefined) {
|
|
19487
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteChatPlan.');
|
|
19488
|
+
}
|
|
19489
|
+
const localVarPath = `/routing/outbound/chat/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
19490
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
19491
|
+
let baseOptions;
|
|
19492
|
+
if (configuration) {
|
|
19493
|
+
baseOptions = configuration.baseOptions;
|
|
19494
|
+
}
|
|
19495
|
+
const localVarRequestOptions = {
|
|
19496
|
+
method: 'DELETE',
|
|
19497
|
+
...baseOptions,
|
|
19498
|
+
...options,
|
|
19499
|
+
};
|
|
19500
|
+
const localVarHeaderParameter = {};
|
|
19501
|
+
const localVarQueryParameter = {};
|
|
19502
|
+
// authentication AccessToken required
|
|
19503
|
+
if (configuration && configuration.apiKey) {
|
|
19504
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
19505
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
19506
|
+
: await configuration.apiKey;
|
|
19507
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
19508
|
+
}
|
|
19509
|
+
localVarUrlObj.query = {
|
|
19510
|
+
...localVarUrlObj.query,
|
|
19511
|
+
...localVarQueryParameter,
|
|
19512
|
+
...options.query,
|
|
19513
|
+
};
|
|
19514
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
19515
|
+
delete localVarUrlObj.search;
|
|
19516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19517
|
+
localVarRequestOptions.headers = {
|
|
19518
|
+
...localVarHeaderParameter,
|
|
19519
|
+
...headersFromBaseOptions,
|
|
19520
|
+
...options.headers,
|
|
19521
|
+
};
|
|
19522
|
+
return {
|
|
19523
|
+
url: format(localVarUrlObj),
|
|
19524
|
+
options: localVarRequestOptions,
|
|
19525
|
+
};
|
|
19526
|
+
},
|
|
19386
19527
|
/**
|
|
19387
19528
|
*
|
|
19388
19529
|
* @param {number} id
|
|
@@ -19652,6 +19793,22 @@ const RoutingChatPlanServiceApiFp = function (configuration) {
|
|
|
19652
19793
|
return axios.request(axiosRequestArgs);
|
|
19653
19794
|
};
|
|
19654
19795
|
},
|
|
19796
|
+
/**
|
|
19797
|
+
*
|
|
19798
|
+
* @param {number} id
|
|
19799
|
+
* @param {*} [options] Override http request option.
|
|
19800
|
+
* @throws {RequiredError}
|
|
19801
|
+
*/
|
|
19802
|
+
async deleteChatPlan(id, options) {
|
|
19803
|
+
const localVarAxiosArgs = await RoutingChatPlanServiceApiAxiosParamCreator(configuration).deleteChatPlan(id, options);
|
|
19804
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
19805
|
+
const axiosRequestArgs = {
|
|
19806
|
+
...localVarAxiosArgs.options,
|
|
19807
|
+
url: basePath + localVarAxiosArgs.url,
|
|
19808
|
+
};
|
|
19809
|
+
return axios.request(axiosRequestArgs);
|
|
19810
|
+
};
|
|
19811
|
+
},
|
|
19655
19812
|
/**
|
|
19656
19813
|
*
|
|
19657
19814
|
* @param {number} id
|
|
@@ -19744,6 +19901,17 @@ const RoutingChatPlanServiceApiFactory = function (configuration, basePath, axio
|
|
|
19744
19901
|
.createChatPlan(body, options)
|
|
19745
19902
|
.then((request) => request(axios, basePath));
|
|
19746
19903
|
},
|
|
19904
|
+
/**
|
|
19905
|
+
*
|
|
19906
|
+
* @param {number} id
|
|
19907
|
+
* @param {*} [options] Override http request option.
|
|
19908
|
+
* @throws {RequiredError}
|
|
19909
|
+
*/
|
|
19910
|
+
deleteChatPlan(id, options) {
|
|
19911
|
+
return RoutingChatPlanServiceApiFp(configuration)
|
|
19912
|
+
.deleteChatPlan(id, options)
|
|
19913
|
+
.then((request) => request(axios, basePath));
|
|
19914
|
+
},
|
|
19747
19915
|
/**
|
|
19748
19916
|
*
|
|
19749
19917
|
* @param {number} id
|
|
@@ -19818,6 +19986,18 @@ class RoutingChatPlanServiceApi extends BaseAPI {
|
|
|
19818
19986
|
.createChatPlan(body, options)
|
|
19819
19987
|
.then((request) => request(this.axios, this.basePath));
|
|
19820
19988
|
}
|
|
19989
|
+
/**
|
|
19990
|
+
*
|
|
19991
|
+
* @param {number} id
|
|
19992
|
+
* @param {*} [options] Override http request option.
|
|
19993
|
+
* @throws {RequiredError}
|
|
19994
|
+
* @memberof RoutingChatPlanServiceApi
|
|
19995
|
+
*/
|
|
19996
|
+
deleteChatPlan(id, options) {
|
|
19997
|
+
return RoutingChatPlanServiceApiFp(this.configuration)
|
|
19998
|
+
.deleteChatPlan(id, options)
|
|
19999
|
+
.then((request) => request(this.axios, this.basePath));
|
|
20000
|
+
}
|
|
19821
20001
|
/**
|
|
19822
20002
|
*
|
|
19823
20003
|
* @param {number} id
|
|
@@ -24001,6 +24181,20 @@ class Conversation {
|
|
|
24001
24181
|
}
|
|
24002
24182
|
return this.task.renew(sec);
|
|
24003
24183
|
}
|
|
24184
|
+
async transferToPlan(planId) {
|
|
24185
|
+
return this.client.request(`blind_transfer_chat`, {
|
|
24186
|
+
conversation_id: this.conversationId,
|
|
24187
|
+
channel_id: this.channelId,
|
|
24188
|
+
plan_id: planId,
|
|
24189
|
+
});
|
|
24190
|
+
}
|
|
24191
|
+
async transferToUser(userId) {
|
|
24192
|
+
return this.client.request(`transfer_user_chat`, {
|
|
24193
|
+
conversation_id: this.conversationId,
|
|
24194
|
+
channel_id: this.channelId,
|
|
24195
|
+
user_id: userId,
|
|
24196
|
+
});
|
|
24197
|
+
}
|
|
24004
24198
|
sendMessageTextChunk(text) {
|
|
24005
24199
|
return this.client.request(`send_text_chat`, {
|
|
24006
24200
|
channel_id: this.channelId,
|