ch-chat-api-typescript-axios 5.87.12 → 5.88.0

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.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);
@@ -247,32 +279,39 @@ const DashboardApiAxiosParamCreator = function(configuration) {
247
279
  const DashboardApiFp = function(configuration) {
248
280
  const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
249
281
  return {
250
- async apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options) {
282
+ async apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(tenantId, assigneeId, startDate, endDate, page, limit, lastRetrieved, options) {
251
283
  var _configuration$server, _operationServerMap$D;
252
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options);
284
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(tenantId, assigneeId, startDate, endDate, page, limit, lastRetrieved, options);
253
285
  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.apiV1ChatDashboardSessionsCountriesGet"]) === null || _operationServerMap$D === void 0 || (_operationServerMap$D = _operationServerMap$D[localVarOperationServerIndex]) === null || _operationServerMap$D === void 0 ? void 0 : _operationServerMap$D.url;
286
+ 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
287
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
256
288
  },
257
- async apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options) {
289
+ async apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options) {
258
290
  var _configuration$server2, _operationServerMap$D2;
259
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options);
291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options);
260
292
  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.apiV1ChatDashboardSessionsCountsGet"]) === null || _operationServerMap$D2 === void 0 || (_operationServerMap$D2 = _operationServerMap$D2[localVarOperationServerIndex]) === null || _operationServerMap$D2 === void 0 ? void 0 : _operationServerMap$D2.url;
293
+ 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
294
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
263
295
  },
264
- async apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options) {
296
+ async apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options) {
265
297
  var _configuration$server3, _operationServerMap$D3;
266
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options);
298
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options);
267
299
  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.apiV1ChatDashboardSessionsHospitalsAggregateGet"]) === null || _operationServerMap$D3 === void 0 || (_operationServerMap$D3 = _operationServerMap$D3[localVarOperationServerIndex]) === null || _operationServerMap$D3 === void 0 ? void 0 : _operationServerMap$D3.url;
300
+ 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
301
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
270
302
  },
271
- async apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options) {
303
+ async apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options) {
272
304
  var _configuration$server4, _operationServerMap$D4;
273
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options);
305
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options);
274
306
  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.apiV1ChatDashboardSessionsRecentGet"]) === null || _operationServerMap$D4 === void 0 || (_operationServerMap$D4 = _operationServerMap$D4[localVarOperationServerIndex]) === null || _operationServerMap$D4 === void 0 ? void 0 : _operationServerMap$D4.url;
307
+ 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;
308
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
309
+ },
310
+ async apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options) {
311
+ var _configuration$server5, _operationServerMap$D5;
312
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options);
313
+ const localVarOperationServerIndex = (_configuration$server5 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server5 !== void 0 ? _configuration$server5 : 0;
314
+ 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
315
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
277
316
  }
278
317
  };
@@ -284,6 +323,9 @@ const DashboardApiFp = function(configuration) {
284
323
  const DashboardApiFactory = function(configuration, basePath, axios) {
285
324
  const localVarFp = DashboardApiFp(configuration);
286
325
  return {
326
+ apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters = {}, options) {
327
+ return localVarFp.apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.startDate, requestParameters.endDate, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
328
+ },
287
329
  apiV1ChatDashboardSessionsCountriesGet(requestParameters = {}, options) {
288
330
  return localVarFp.apiV1ChatDashboardSessionsCountriesGet(requestParameters.tenantId, requestParameters.sortBy, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
289
331
  },
@@ -305,6 +347,17 @@ const DashboardApiFactory = function(configuration, basePath, axios) {
305
347
  * @extends {BaseAPI}
306
348
  */
307
349
  var DashboardApi = class extends BaseAPI {
350
+ /**
351
+ *
352
+ * @summary Get recent chat session data from the past 48 hours.
353
+ * @param {DashboardApiApiV1ChatDashboardAgentsUnrespondedAlertsSummaryGetRequest} requestParameters Request parameters.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ * @memberof DashboardApi
357
+ */
358
+ apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters = {}, options) {
359
+ 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));
360
+ }
308
361
  /**
309
362
  *
310
363
  * @summary Shows the count of created chat sessions aggregated by the country code of the phone number.
@@ -1892,7 +1945,7 @@ const ChatSessionStatus = {
1892
1945
  */
1893
1946
  const ConsultStatus = {
1894
1947
  Working: "working",
1895
- Resovled: "resovled"
1948
+ Resolved: "resolved"
1896
1949
  };
1897
1950
 
1898
1951
  //#endregion