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.cjs CHANGED
@@ -142,6 +142,38 @@ const createRequestFunction = function(axiosArgs, globalAxios$6, BASE_PATH$1, co
142
142
  */
143
143
  const DashboardApiAxiosParamCreator = function(configuration) {
144
144
  return {
145
+ apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet: async (tenantId, assigneeId, startDate, endDate, page, limit, lastRetrieved, options = {}) => {
146
+ const localVarPath = `/api/v1/chat/dashboard/agents/unresponded-alerts/summary`;
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ if (configuration) baseOptions = configuration.baseOptions;
150
+ const localVarRequestOptions = {
151
+ method: "GET",
152
+ ...baseOptions,
153
+ ...options
154
+ };
155
+ const localVarHeaderParameter = {};
156
+ const localVarQueryParameter = {};
157
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
158
+ if (tenantId !== void 0) localVarQueryParameter["TenantId"] = tenantId;
159
+ if (assigneeId !== void 0) localVarQueryParameter["AssigneeId"] = assigneeId;
160
+ if (startDate !== void 0) localVarQueryParameter["StartDate"] = startDate instanceof Date ? startDate.toISOString() : startDate;
161
+ if (endDate !== void 0) localVarQueryParameter["EndDate"] = endDate instanceof Date ? endDate.toISOString() : endDate;
162
+ if (page !== void 0) localVarQueryParameter["page"] = page;
163
+ if (limit !== void 0) localVarQueryParameter["limit"] = limit;
164
+ if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
165
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
167
+ localVarRequestOptions.headers = {
168
+ ...localVarHeaderParameter,
169
+ ...headersFromBaseOptions,
170
+ ...options.headers
171
+ };
172
+ return {
173
+ url: toPathString(localVarUrlObj),
174
+ options: localVarRequestOptions
175
+ };
176
+ },
145
177
  apiV1ChatDashboardSessionsCountriesGet: async (tenantId, sortBy, page, limit, lastRetrieved, options = {}) => {
146
178
  const localVarPath = `/api/v1/chat/dashboard/sessions/countries`;
147
179
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -271,32 +303,39 @@ const DashboardApiAxiosParamCreator = function(configuration) {
271
303
  const DashboardApiFp = function(configuration) {
272
304
  const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
273
305
  return {
274
- async apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options) {
306
+ async apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(tenantId, assigneeId, startDate, endDate, page, limit, lastRetrieved, options) {
275
307
  var _configuration$server, _operationServerMap$D;
276
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options);
308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(tenantId, assigneeId, startDate, endDate, page, limit, lastRetrieved, options);
277
309
  const localVarOperationServerIndex = (_configuration$server = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server !== void 0 ? _configuration$server : 0;
278
- 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;
310
+ 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;
279
311
  return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
280
312
  },
281
- async apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options) {
313
+ async apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options) {
282
314
  var _configuration$server2, _operationServerMap$D2;
283
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options);
315
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options);
284
316
  const localVarOperationServerIndex = (_configuration$server2 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server2 !== void 0 ? _configuration$server2 : 0;
285
- 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;
317
+ 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;
286
318
  return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
287
319
  },
288
- async apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options) {
320
+ async apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options) {
289
321
  var _configuration$server3, _operationServerMap$D3;
290
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options);
322
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options);
291
323
  const localVarOperationServerIndex = (_configuration$server3 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server3 !== void 0 ? _configuration$server3 : 0;
292
- 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;
324
+ 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;
293
325
  return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
294
326
  },
295
- async apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options) {
327
+ async apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options) {
296
328
  var _configuration$server4, _operationServerMap$D4;
297
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options);
329
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options);
298
330
  const localVarOperationServerIndex = (_configuration$server4 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server4 !== void 0 ? _configuration$server4 : 0;
299
- 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;
331
+ 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;
332
+ return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
333
+ },
334
+ async apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options) {
335
+ var _configuration$server5, _operationServerMap$D5;
336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options);
337
+ const localVarOperationServerIndex = (_configuration$server5 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server5 !== void 0 ? _configuration$server5 : 0;
338
+ 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;
300
339
  return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
301
340
  }
302
341
  };
@@ -308,6 +347,9 @@ const DashboardApiFp = function(configuration) {
308
347
  const DashboardApiFactory = function(configuration, basePath, axios$1) {
309
348
  const localVarFp = DashboardApiFp(configuration);
310
349
  return {
350
+ apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters = {}, options) {
351
+ return localVarFp.apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.startDate, requestParameters.endDate, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios$1, basePath));
352
+ },
311
353
  apiV1ChatDashboardSessionsCountriesGet(requestParameters = {}, options) {
312
354
  return localVarFp.apiV1ChatDashboardSessionsCountriesGet(requestParameters.tenantId, requestParameters.sortBy, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios$1, basePath));
313
355
  },
@@ -329,6 +371,17 @@ const DashboardApiFactory = function(configuration, basePath, axios$1) {
329
371
  * @extends {BaseAPI}
330
372
  */
331
373
  var DashboardApi = class extends BaseAPI {
374
+ /**
375
+ *
376
+ * @summary Get recent chat session data from the past 48 hours.
377
+ * @param {DashboardApiApiV1ChatDashboardAgentsUnrespondedAlertsSummaryGetRequest} requestParameters Request parameters.
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ * @memberof DashboardApi
381
+ */
382
+ apiV1ChatDashboardAgentsUnrespondedAlertsSummaryGet(requestParameters = {}, options) {
383
+ 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));
384
+ }
332
385
  /**
333
386
  *
334
387
  * @summary Shows the count of created chat sessions aggregated by the country code of the phone number.
@@ -1916,7 +1969,7 @@ const ChatSessionStatus = {
1916
1969
  */
1917
1970
  const ConsultStatus = {
1918
1971
  Working: "working",
1919
- Resovled: "resovled"
1972
+ Resolved: "resolved"
1920
1973
  };
1921
1974
 
1922
1975
  //#endregion