ch-chat-api-typescript-axios 5.87.12 → 5.88.1
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/dist/index.cjs +70 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +197 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +70 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -118,6 +118,38 @@ const createRequestFunction = function(axiosArgs, globalAxios$1, BASE_PATH$1, co
|
|
|
118
118
|
*/
|
|
119
119
|
const DashboardApiAxiosParamCreator = function(configuration) {
|
|
120
120
|
return {
|
|
121
|
+
apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet: async (tenantId, assigneeId, startDate, endDate, page, limit, lastRetrieved, options = {}) => {
|
|
122
|
+
const localVarPath = `/api/v1/chat/dashboard/agents/unresponded-alerts/summary`;
|
|
123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
124
|
+
let baseOptions;
|
|
125
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
126
|
+
const localVarRequestOptions = {
|
|
127
|
+
method: "GET",
|
|
128
|
+
...baseOptions,
|
|
129
|
+
...options
|
|
130
|
+
};
|
|
131
|
+
const localVarHeaderParameter = {};
|
|
132
|
+
const localVarQueryParameter = {};
|
|
133
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
134
|
+
if (tenantId !== void 0) localVarQueryParameter["TenantId"] = tenantId;
|
|
135
|
+
if (assigneeId !== void 0) localVarQueryParameter["AssigneeId"] = assigneeId;
|
|
136
|
+
if (startDate !== void 0) localVarQueryParameter["StartDate"] = startDate instanceof Date ? startDate.toISOString() : startDate;
|
|
137
|
+
if (endDate !== void 0) localVarQueryParameter["EndDate"] = endDate instanceof Date ? endDate.toISOString() : endDate;
|
|
138
|
+
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
139
|
+
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
140
|
+
if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
|
|
141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
|
+
localVarRequestOptions.headers = {
|
|
144
|
+
...localVarHeaderParameter,
|
|
145
|
+
...headersFromBaseOptions,
|
|
146
|
+
...options.headers
|
|
147
|
+
};
|
|
148
|
+
return {
|
|
149
|
+
url: toPathString(localVarUrlObj),
|
|
150
|
+
options: localVarRequestOptions
|
|
151
|
+
};
|
|
152
|
+
},
|
|
121
153
|
apiV1ChatDashboardSessionsCountriesGet: async (tenantId, sortBy, page, limit, lastRetrieved, options = {}) => {
|
|
122
154
|
const localVarPath = `/api/v1/chat/dashboard/sessions/countries`;
|
|
123
155
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -207,7 +239,7 @@ const DashboardApiAxiosParamCreator = function(configuration) {
|
|
|
207
239
|
options: localVarRequestOptions
|
|
208
240
|
};
|
|
209
241
|
},
|
|
210
|
-
apiV1ChatDashboardSessionsRecentGet: async (tenantId, assigneeId, platformType, page, limit, lastRetrieved, options = {}) => {
|
|
242
|
+
apiV1ChatDashboardSessionsRecentGet: async (tenantId, assigneeId, status, platformType, page, limit, lastRetrieved, options = {}) => {
|
|
211
243
|
const localVarPath = `/api/v1/chat/dashboard/sessions/recent`;
|
|
212
244
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
245
|
let baseOptions;
|
|
@@ -222,6 +254,7 @@ const DashboardApiAxiosParamCreator = function(configuration) {
|
|
|
222
254
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
223
255
|
if (tenantId !== void 0) localVarQueryParameter["TenantId"] = tenantId;
|
|
224
256
|
if (assigneeId !== void 0) localVarQueryParameter["AssigneeId"] = assigneeId;
|
|
257
|
+
if (status !== void 0) localVarQueryParameter["Status"] = status;
|
|
225
258
|
if (platformType !== void 0) localVarQueryParameter["PlatformType"] = platformType;
|
|
226
259
|
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
227
260
|
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
@@ -247,32 +280,39 @@ const DashboardApiAxiosParamCreator = function(configuration) {
|
|
|
247
280
|
const DashboardApiFp = function(configuration) {
|
|
248
281
|
const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
|
|
249
282
|
return {
|
|
250
|
-
async
|
|
283
|
+
async apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(tenantId, assigneeId, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
251
284
|
var _configuration$server, _operationServerMap$D;
|
|
252
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(tenantId, assigneeId, startDate, endDate, page, limit, lastRetrieved, options);
|
|
253
286
|
const localVarOperationServerIndex = (_configuration$server = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server !== void 0 ? _configuration$server : 0;
|
|
254
|
-
const localVarOperationServerBasePath = (_operationServerMap$D = operationServerMap["DashboardApi.
|
|
287
|
+
const localVarOperationServerBasePath = (_operationServerMap$D = operationServerMap["DashboardApi.apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet"]) === null || _operationServerMap$D === void 0 || (_operationServerMap$D = _operationServerMap$D[localVarOperationServerIndex]) === null || _operationServerMap$D === void 0 ? void 0 : _operationServerMap$D.url;
|
|
255
288
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
256
289
|
},
|
|
257
|
-
async
|
|
290
|
+
async apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options) {
|
|
258
291
|
var _configuration$server2, _operationServerMap$D2;
|
|
259
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options);
|
|
260
293
|
const localVarOperationServerIndex = (_configuration$server2 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server2 !== void 0 ? _configuration$server2 : 0;
|
|
261
|
-
const localVarOperationServerBasePath = (_operationServerMap$D2 = operationServerMap["DashboardApi.
|
|
294
|
+
const localVarOperationServerBasePath = (_operationServerMap$D2 = operationServerMap["DashboardApi.apiV1ChatDashboardSessionsCountriesGet"]) === null || _operationServerMap$D2 === void 0 || (_operationServerMap$D2 = _operationServerMap$D2[localVarOperationServerIndex]) === null || _operationServerMap$D2 === void 0 ? void 0 : _operationServerMap$D2.url;
|
|
262
295
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
263
296
|
},
|
|
264
|
-
async
|
|
297
|
+
async apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options) {
|
|
265
298
|
var _configuration$server3, _operationServerMap$D3;
|
|
266
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options);
|
|
267
300
|
const localVarOperationServerIndex = (_configuration$server3 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server3 !== void 0 ? _configuration$server3 : 0;
|
|
268
|
-
const localVarOperationServerBasePath = (_operationServerMap$D3 = operationServerMap["DashboardApi.
|
|
301
|
+
const localVarOperationServerBasePath = (_operationServerMap$D3 = operationServerMap["DashboardApi.apiV1ChatDashboardSessionsCountsGet"]) === null || _operationServerMap$D3 === void 0 || (_operationServerMap$D3 = _operationServerMap$D3[localVarOperationServerIndex]) === null || _operationServerMap$D3 === void 0 ? void 0 : _operationServerMap$D3.url;
|
|
269
302
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
270
303
|
},
|
|
271
|
-
async
|
|
304
|
+
async apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options) {
|
|
272
305
|
var _configuration$server4, _operationServerMap$D4;
|
|
273
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options);
|
|
274
307
|
const localVarOperationServerIndex = (_configuration$server4 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server4 !== void 0 ? _configuration$server4 : 0;
|
|
275
|
-
const localVarOperationServerBasePath = (_operationServerMap$D4 = operationServerMap["DashboardApi.
|
|
308
|
+
const localVarOperationServerBasePath = (_operationServerMap$D4 = operationServerMap["DashboardApi.apiV1ChatDashboardSessionsHospitalsAggregateGet"]) === null || _operationServerMap$D4 === void 0 || (_operationServerMap$D4 = _operationServerMap$D4[localVarOperationServerIndex]) === null || _operationServerMap$D4 === void 0 ? void 0 : _operationServerMap$D4.url;
|
|
309
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
310
|
+
},
|
|
311
|
+
async apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, status, platformType, page, limit, lastRetrieved, options) {
|
|
312
|
+
var _configuration$server5, _operationServerMap$D5;
|
|
313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, status, platformType, page, limit, lastRetrieved, options);
|
|
314
|
+
const localVarOperationServerIndex = (_configuration$server5 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server5 !== void 0 ? _configuration$server5 : 0;
|
|
315
|
+
const localVarOperationServerBasePath = (_operationServerMap$D5 = operationServerMap["DashboardApi.apiV1ChatDashboardSessionsRecentGet"]) === null || _operationServerMap$D5 === void 0 || (_operationServerMap$D5 = _operationServerMap$D5[localVarOperationServerIndex]) === null || _operationServerMap$D5 === void 0 ? void 0 : _operationServerMap$D5.url;
|
|
276
316
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
277
317
|
}
|
|
278
318
|
};
|
|
@@ -284,6 +324,9 @@ const DashboardApiFp = function(configuration) {
|
|
|
284
324
|
const DashboardApiFactory = function(configuration, basePath, axios) {
|
|
285
325
|
const localVarFp = DashboardApiFp(configuration);
|
|
286
326
|
return {
|
|
327
|
+
apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters = {}, options) {
|
|
328
|
+
return localVarFp.apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.startDate, requestParameters.endDate, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
329
|
+
},
|
|
287
330
|
apiV1ChatDashboardSessionsCountriesGet(requestParameters = {}, options) {
|
|
288
331
|
return localVarFp.apiV1ChatDashboardSessionsCountriesGet(requestParameters.tenantId, requestParameters.sortBy, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
289
332
|
},
|
|
@@ -294,7 +337,7 @@ const DashboardApiFactory = function(configuration, basePath, axios) {
|
|
|
294
337
|
return localVarFp.apiV1ChatDashboardSessionsHospitalsAggregateGet(requestParameters.tenantId, requestParameters.hospitalName, requestParameters.sortBy, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
295
338
|
},
|
|
296
339
|
apiV1ChatDashboardSessionsRecentGet(requestParameters = {}, options) {
|
|
297
|
-
return localVarFp.apiV1ChatDashboardSessionsRecentGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
340
|
+
return localVarFp.apiV1ChatDashboardSessionsRecentGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.status, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
298
341
|
}
|
|
299
342
|
};
|
|
300
343
|
};
|
|
@@ -305,6 +348,17 @@ const DashboardApiFactory = function(configuration, basePath, axios) {
|
|
|
305
348
|
* @extends {BaseAPI}
|
|
306
349
|
*/
|
|
307
350
|
var DashboardApi = class extends BaseAPI {
|
|
351
|
+
/**
|
|
352
|
+
*
|
|
353
|
+
* @summary Get recent chat session data from the past 48 hours.
|
|
354
|
+
* @param {DashboardApiApiV1ChatDashboardAgentsUnrespondedAlertsSummaryGetRequest} requestParameters Request parameters.
|
|
355
|
+
* @param {*} [options] Override http request option.
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
* @memberof DashboardApi
|
|
358
|
+
*/
|
|
359
|
+
apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters = {}, options) {
|
|
360
|
+
return DashboardApiFp(this.configuration).apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.startDate, requestParameters.endDate, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
361
|
+
}
|
|
308
362
|
/**
|
|
309
363
|
*
|
|
310
364
|
* @summary Shows the count of created chat sessions aggregated by the country code of the phone number.
|
|
@@ -347,7 +401,7 @@ var DashboardApi = class extends BaseAPI {
|
|
|
347
401
|
* @memberof DashboardApi
|
|
348
402
|
*/
|
|
349
403
|
apiV1ChatDashboardSessionsRecentGet(requestParameters = {}, options) {
|
|
350
|
-
return DashboardApiFp(this.configuration).apiV1ChatDashboardSessionsRecentGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
404
|
+
return DashboardApiFp(this.configuration).apiV1ChatDashboardSessionsRecentGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.status, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
351
405
|
}
|
|
352
406
|
};
|
|
353
407
|
|
|
@@ -1892,7 +1946,7 @@ const ChatSessionStatus = {
|
|
|
1892
1946
|
*/
|
|
1893
1947
|
const ConsultStatus = {
|
|
1894
1948
|
Working: "working",
|
|
1895
|
-
|
|
1949
|
+
Resolved: "resolved"
|
|
1896
1950
|
};
|
|
1897
1951
|
|
|
1898
1952
|
//#endregion
|