ch-chat-api-typescript-axios 5.87.11 → 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 +2315 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5237 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +2262 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +16 -4
- package/dist/api/dashboard-api.d.ts +0 -351
- package/dist/api/dashboard-api.js +0 -432
- package/dist/api/dashboard-api.js.map +0 -1
- package/dist/api/migrations-api.d.ts +0 -65
- package/dist/api/migrations-api.js +0 -131
- package/dist/api/migrations-api.js.map +0 -1
- package/dist/api/notifications-api.d.ts +0 -204
- package/dist/api/notifications-api.js +0 -296
- package/dist/api/notifications-api.js.map +0 -1
- package/dist/api/sessions-api.d.ts +0 -1523
- package/dist/api/sessions-api.js +0 -1832
- package/dist/api/sessions-api.js.map +0 -1
- package/dist/api/whats-apps-api.d.ts +0 -87
- package/dist/api/whats-apps-api.js +0 -141
- package/dist/api/whats-apps-api.js.map +0 -1
- package/dist/api.d.ts +0 -16
- package/dist/api.js +0 -35
- package/dist/api.js.map +0 -1
- package/dist/base.d.ts +0 -66
- package/dist/base.js +0 -69
- package/dist/base.js.map +0 -1
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -162
- package/dist/common.js.map +0 -1
- package/dist/configuration.d.ts +0 -91
- package/dist/configuration.js +0 -44
- package/dist/configuration.js.map +0 -1
- package/dist/index.js +0 -33
- package/dist/index.js.map +0 -1
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response-errors.d.ts +0 -24
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response-errors.js +0 -16
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response-errors.js.map +0 -1
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response.d.ts +0 -49
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response.js +0 -16
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response.js.map +0 -1
- package/dist/models/assignee-model.d.ts +0 -30
- package/dist/models/assignee-model.js +0 -16
- package/dist/models/assignee-model.js.map +0 -1
- package/dist/models/author-roles.d.ts +0 -23
- package/dist/models/author-roles.js +0 -28
- package/dist/models/author-roles.js.map +0 -1
- package/dist/models/chat-consult-status-result-model.d.ts +0 -30
- package/dist/models/chat-consult-status-result-model.js +0 -16
- package/dist/models/chat-consult-status-result-model.js.map +0 -1
- package/dist/models/chat-message.d.ts +0 -107
- package/dist/models/chat-message.js +0 -16
- package/dist/models/chat-message.js.map +0 -1
- package/dist/models/chat-messages-model.d.ts +0 -32
- package/dist/models/chat-messages-model.js +0 -16
- package/dist/models/chat-messages-model.js.map +0 -1
- package/dist/models/chat-notification.d.ts +0 -99
- package/dist/models/chat-notification.js +0 -16
- package/dist/models/chat-notification.js.map +0 -1
- package/dist/models/chat-notifications.d.ts +0 -38
- package/dist/models/chat-notifications.js +0 -16
- package/dist/models/chat-notifications.js.map +0 -1
- package/dist/models/chat-participant.d.ts +0 -74
- package/dist/models/chat-participant.js +0 -16
- package/dist/models/chat-participant.js.map +0 -1
- package/dist/models/chat-send-flow-message-command.d.ts +0 -77
- package/dist/models/chat-send-flow-message-command.js +0 -16
- package/dist/models/chat-send-flow-message-command.js.map +0 -1
- package/dist/models/chat-send-marketing-template-message-command.d.ts +0 -67
- package/dist/models/chat-send-marketing-template-message-command.js +0 -16
- package/dist/models/chat-send-marketing-template-message-command.js.map +0 -1
- package/dist/models/chat-send-template-message-command.d.ts +0 -44
- package/dist/models/chat-send-template-message-command.js +0 -16
- package/dist/models/chat-send-template-message-command.js.map +0 -1
- package/dist/models/chat-session-consult-status-command.d.ts +0 -25
- package/dist/models/chat-session-consult-status-command.js +0 -16
- package/dist/models/chat-session-consult-status-command.js.map +0 -1
- package/dist/models/chat-session-model.d.ts +0 -186
- package/dist/models/chat-session-model.js +0 -16
- package/dist/models/chat-session-model.js.map +0 -1
- package/dist/models/chat-session-status.d.ts +0 -23
- package/dist/models/chat-session-status.js +0 -28
- package/dist/models/chat-session-status.js.map +0 -1
- package/dist/models/chat-sessions-model.d.ts +0 -32
- package/dist/models/chat-sessions-model.js +0 -16
- package/dist/models/chat-sessions-model.js.map +0 -1
- package/dist/models/check-chat-notifications-command.d.ts +0 -30
- package/dist/models/check-chat-notifications-command.js +0 -16
- package/dist/models/check-chat-notifications-command.js.map +0 -1
- package/dist/models/consult-status.d.ts +0 -21
- package/dist/models/consult-status.js +0 -26
- package/dist/models/consult-status.js.map +0 -1
- package/dist/models/create-chat-session-command.d.ts +0 -63
- package/dist/models/create-chat-session-command.js +0 -16
- package/dist/models/create-chat-session-command.js.map +0 -1
- package/dist/models/create-intake-form-command.d.ts +0 -25
- package/dist/models/create-intake-form-command.js +0 -16
- package/dist/models/create-intake-form-command.js.map +0 -1
- package/dist/models/dashboard-recent-sessions-model.d.ts +0 -32
- package/dist/models/dashboard-recent-sessions-model.js +0 -16
- package/dist/models/dashboard-recent-sessions-model.js.map +0 -1
- package/dist/models/dashboard-session-countries-detail-statistics-model.d.ts +0 -42
- package/dist/models/dashboard-session-countries-detail-statistics-model.js +0 -16
- package/dist/models/dashboard-session-countries-detail-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-countries-statistics-model.d.ts +0 -44
- package/dist/models/dashboard-session-countries-statistics-model.js +0 -16
- package/dist/models/dashboard-session-countries-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-hospitals-detail-statistics-model.d.ts +0 -36
- package/dist/models/dashboard-session-hospitals-detail-statistics-model.js +0 -16
- package/dist/models/dashboard-session-hospitals-detail-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-hospitals-statistics-model.d.ts +0 -32
- package/dist/models/dashboard-session-hospitals-statistics-model.js +0 -16
- package/dist/models/dashboard-session-hospitals-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-trends-duration-statistics-model.d.ts +0 -30
- package/dist/models/dashboard-session-trends-duration-statistics-model.js +0 -16
- package/dist/models/dashboard-session-trends-duration-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-trends-statistics-model.d.ts +0 -49
- package/dist/models/dashboard-session-trends-statistics-model.js +0 -16
- package/dist/models/dashboard-session-trends-statistics-model.js.map +0 -1
- package/dist/models/dynamic-template-message.d.ts +0 -31
- package/dist/models/dynamic-template-message.js +0 -16
- package/dist/models/dynamic-template-message.js.map +0 -1
- package/dist/models/index.d.ts +0 -65
- package/dist/models/index.js +0 -82
- package/dist/models/index.js.map +0 -1
- package/dist/models/intake-form-item.d.ts +0 -42
- package/dist/models/intake-form-item.js +0 -16
- package/dist/models/intake-form-item.js.map +0 -1
- package/dist/models/intake-form.d.ts +0 -79
- package/dist/models/intake-form.js +0 -16
- package/dist/models/intake-form.js.map +0 -1
- package/dist/models/intake-forms-model.d.ts +0 -32
- package/dist/models/intake-forms-model.js +0 -16
- package/dist/models/intake-forms-model.js.map +0 -1
- package/dist/models/interactive-body.d.ts +0 -24
- package/dist/models/interactive-body.js +0 -16
- package/dist/models/interactive-body.js.map +0 -1
- package/dist/models/interactive-footer.d.ts +0 -24
- package/dist/models/interactive-footer.js +0 -16
- package/dist/models/interactive-footer.js.map +0 -1
- package/dist/models/interactive-header.d.ts +0 -30
- package/dist/models/interactive-header.js +0 -16
- package/dist/models/interactive-header.js.map +0 -1
- package/dist/models/interactive-list-message-request.d.ts +0 -70
- package/dist/models/interactive-list-message-request.js +0 -16
- package/dist/models/interactive-list-message-request.js.map +0 -1
- package/dist/models/interactive-list-row.d.ts +0 -36
- package/dist/models/interactive-list-row.js +0 -16
- package/dist/models/interactive-list-row.js.map +0 -1
- package/dist/models/interactive-list-section.d.ts +0 -31
- package/dist/models/interactive-list-section.js +0 -16
- package/dist/models/interactive-list-section.js.map +0 -1
- package/dist/models/join-chat-session-command.d.ts +0 -31
- package/dist/models/join-chat-session-command.js +0 -16
- package/dist/models/join-chat-session-command.js.map +0 -1
- package/dist/models/media-model.d.ts +0 -60
- package/dist/models/media-model.js +0 -16
- package/dist/models/media-model.js.map +0 -1
- package/dist/models/message-template-button.d.ts +0 -54
- package/dist/models/message-template-button.js +0 -16
- package/dist/models/message-template-button.js.map +0 -1
- package/dist/models/message-type.d.ts +0 -30
- package/dist/models/message-type.js +0 -35
- package/dist/models/message-type.js.map +0 -1
- package/dist/models/notification-code.d.ts +0 -70
- package/dist/models/notification-code.js +0 -75
- package/dist/models/notification-code.js.map +0 -1
- package/dist/models/paged-list-meta-data.d.ts +0 -78
- package/dist/models/paged-list-meta-data.js +0 -16
- package/dist/models/paged-list-meta-data.js.map +0 -1
- package/dist/models/patch-intake-form-command.d.ts +0 -25
- package/dist/models/patch-intake-form-command.js +0 -16
- package/dist/models/patch-intake-form-command.js.map +0 -1
- package/dist/models/platform-metadata.d.ts +0 -25
- package/dist/models/platform-metadata.js +0 -16
- package/dist/models/platform-metadata.js.map +0 -1
- package/dist/models/platform-types.d.ts +0 -21
- package/dist/models/platform-types.js +0 -26
- package/dist/models/platform-types.js.map +0 -1
- package/dist/models/put-chat-session-command.d.ts +0 -30
- package/dist/models/put-chat-session-command.js +0 -16
- package/dist/models/put-chat-session-command.js.map +0 -1
- package/dist/models/recent-session-detail-model.d.ts +0 -80
- package/dist/models/recent-session-detail-model.js +0 -16
- package/dist/models/recent-session-detail-model.js.map +0 -1
- package/dist/models/request-create-intake-form-item-model.d.ts +0 -30
- package/dist/models/request-create-intake-form-item-model.js +0 -16
- package/dist/models/request-create-intake-form-item-model.js.map +0 -1
- package/dist/models/request-patch-inake-form-item-model.d.ts +0 -36
- package/dist/models/request-patch-inake-form-item-model.js +0 -16
- package/dist/models/request-patch-inake-form-item-model.js.map +0 -1
- package/dist/models/sort-by.d.ts +0 -21
- package/dist/models/sort-by.js +0 -26
- package/dist/models/sort-by.js.map +0 -1
- package/dist/models/template-action-parameter.d.ts +0 -24
- package/dist/models/template-action-parameter.js +0 -16
- package/dist/models/template-action-parameter.js.map +0 -1
- package/dist/models/template-component-parameter.d.ts +0 -76
- package/dist/models/template-component-parameter.js +0 -16
- package/dist/models/template-component-parameter.js.map +0 -1
- package/dist/models/template-component.d.ts +0 -43
- package/dist/models/template-component.js +0 -16
- package/dist/models/template-component.js.map +0 -1
- package/dist/models/template-currency-parameter.d.ts +0 -36
- package/dist/models/template-currency-parameter.js +0 -16
- package/dist/models/template-currency-parameter.js.map +0 -1
- package/dist/models/template-date-time-parameter.d.ts +0 -66
- package/dist/models/template-date-time-parameter.js +0 -16
- package/dist/models/template-date-time-parameter.js.map +0 -1
- package/dist/models/template-media-parameter.d.ts +0 -30
- package/dist/models/template-media-parameter.js +0 -16
- package/dist/models/template-media-parameter.js.map +0 -1
- package/dist/models/template-message-model.d.ts +0 -44
- package/dist/models/template-message-model.js +0 -16
- package/dist/models/template-message-model.js.map +0 -1
- package/dist/models/template-message-request.d.ts +0 -55
- package/dist/models/template-message-request.js +0 -16
- package/dist/models/template-message-request.js.map +0 -1
- package/dist/models/timeframe-duration.d.ts +0 -25
- package/dist/models/timeframe-duration.js +0 -30
- package/dist/models/timeframe-duration.js.map +0 -1
- package/dist/models/transfer-manager-command.d.ts +0 -36
- package/dist/models/transfer-manager-command.js +0 -16
- package/dist/models/transfer-manager-command.js.map +0 -1
- package/dist/models/whats-app-component.d.ts +0 -50
- package/dist/models/whats-app-component.js +0 -16
- package/dist/models/whats-app-component.js.map +0 -1
- package/dist/models/whats-app-language-code.d.ts +0 -130
- package/dist/models/whats-app-language-code.js +0 -135
- package/dist/models/whats-app-language-code.js.map +0 -1
- package/dist/models/whats-app-metadata.d.ts +0 -42
- package/dist/models/whats-app-metadata.js +0 -16
- package/dist/models/whats-app-metadata.js.map +0 -1
package/dist/api/sessions-api.js
DELETED
|
@@ -1,1832 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* CloudHospital.ChatApi
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.SessionsApi = exports.SessionsApiFactory = exports.SessionsApiFp = exports.SessionsApiAxiosParamCreator = void 0;
|
|
29
|
-
const axios_1 = __importDefault(require("axios"));
|
|
30
|
-
// Some imports not used depending on template conditions
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
const common_1 = require("../common");
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
const base_1 = require("../base");
|
|
35
|
-
/**
|
|
36
|
-
* SessionsApi - axios parameter creator
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
|
-
const SessionsApiAxiosParamCreator = function (configuration) {
|
|
40
|
-
return {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @summary Get all chat sessions.
|
|
44
|
-
* @param {string} tenantId The tenant identifier.
|
|
45
|
-
* @param {string} [id]
|
|
46
|
-
* @param {string} [targetHospitalId]
|
|
47
|
-
* @param {string} [targetHospitalName]
|
|
48
|
-
* @param {Array<string>} [assigneeIds]
|
|
49
|
-
* @param {Array<ChatSessionStatus>} [chatSessionStatus]
|
|
50
|
-
* @param {string} [title]
|
|
51
|
-
* @param {string} [userName]
|
|
52
|
-
* @param {SortBy} [sortBy]
|
|
53
|
-
* @param {boolean} [isRead]
|
|
54
|
-
* @param {PlatformTypes} [platformType]
|
|
55
|
-
* @param {number} [page]
|
|
56
|
-
* @param {number} [limit]
|
|
57
|
-
* @param {Date} [lastRetrieved]
|
|
58
|
-
* @param {*} [options] Override http request option.
|
|
59
|
-
* @throws {RequiredError}
|
|
60
|
-
*/
|
|
61
|
-
apiV1ChatTenantIdSessionsGet: (tenantId_1, id_1, targetHospitalId_1, targetHospitalName_1, assigneeIds_1, chatSessionStatus_1, title_1, userName_1, sortBy_1, isRead_1, platformType_1, page_1, limit_1, lastRetrieved_1, ...args_1) => __awaiter(this, [tenantId_1, id_1, targetHospitalId_1, targetHospitalName_1, assigneeIds_1, chatSessionStatus_1, title_1, userName_1, sortBy_1, isRead_1, platformType_1, page_1, limit_1, lastRetrieved_1, ...args_1], void 0, function* (tenantId, id, targetHospitalId, targetHospitalName, assigneeIds, chatSessionStatus, title, userName, sortBy, isRead, platformType, page, limit, lastRetrieved, options = {}) {
|
|
62
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
63
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsGet', 'tenantId', tenantId);
|
|
64
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions`
|
|
65
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
|
|
66
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
67
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
68
|
-
let baseOptions;
|
|
69
|
-
if (configuration) {
|
|
70
|
-
baseOptions = configuration.baseOptions;
|
|
71
|
-
}
|
|
72
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
73
|
-
const localVarHeaderParameter = {};
|
|
74
|
-
const localVarQueryParameter = {};
|
|
75
|
-
// authentication oauth2 required
|
|
76
|
-
// oauth required
|
|
77
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
78
|
-
if (id !== undefined) {
|
|
79
|
-
localVarQueryParameter['Id'] = id;
|
|
80
|
-
}
|
|
81
|
-
if (targetHospitalId !== undefined) {
|
|
82
|
-
localVarQueryParameter['TargetHospitalId'] = targetHospitalId;
|
|
83
|
-
}
|
|
84
|
-
if (targetHospitalName !== undefined) {
|
|
85
|
-
localVarQueryParameter['TargetHospitalName'] = targetHospitalName;
|
|
86
|
-
}
|
|
87
|
-
if (assigneeIds) {
|
|
88
|
-
localVarQueryParameter['AssigneeIds'] = assigneeIds;
|
|
89
|
-
}
|
|
90
|
-
if (chatSessionStatus) {
|
|
91
|
-
localVarQueryParameter['ChatSessionStatus'] = chatSessionStatus;
|
|
92
|
-
}
|
|
93
|
-
if (title !== undefined) {
|
|
94
|
-
localVarQueryParameter['Title'] = title;
|
|
95
|
-
}
|
|
96
|
-
if (userName !== undefined) {
|
|
97
|
-
localVarQueryParameter['UserName'] = userName;
|
|
98
|
-
}
|
|
99
|
-
if (sortBy !== undefined) {
|
|
100
|
-
localVarQueryParameter['SortBy'] = sortBy;
|
|
101
|
-
}
|
|
102
|
-
if (isRead !== undefined) {
|
|
103
|
-
localVarQueryParameter['IsRead'] = isRead;
|
|
104
|
-
}
|
|
105
|
-
if (platformType !== undefined) {
|
|
106
|
-
localVarQueryParameter['PlatformType'] = platformType;
|
|
107
|
-
}
|
|
108
|
-
if (page !== undefined) {
|
|
109
|
-
localVarQueryParameter['page'] = page;
|
|
110
|
-
}
|
|
111
|
-
if (limit !== undefined) {
|
|
112
|
-
localVarQueryParameter['limit'] = limit;
|
|
113
|
-
}
|
|
114
|
-
if (lastRetrieved !== undefined) {
|
|
115
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
116
|
-
lastRetrieved.toISOString() :
|
|
117
|
-
lastRetrieved;
|
|
118
|
-
}
|
|
119
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
120
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
122
|
-
return {
|
|
123
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
124
|
-
options: localVarRequestOptions,
|
|
125
|
-
};
|
|
126
|
-
}),
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @summary Create a chat session.
|
|
130
|
-
* @param {string} tenantId The tenant identifier.
|
|
131
|
-
* @param {CreateChatSessionCommand} [createChatSessionCommand] The command to create a chat session.
|
|
132
|
-
* @param {*} [options] Override http request option.
|
|
133
|
-
* @throws {RequiredError}
|
|
134
|
-
*/
|
|
135
|
-
apiV1ChatTenantIdSessionsPost: (tenantId_1, createChatSessionCommand_1, ...args_1) => __awaiter(this, [tenantId_1, createChatSessionCommand_1, ...args_1], void 0, function* (tenantId, createChatSessionCommand, options = {}) {
|
|
136
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
137
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsPost', 'tenantId', tenantId);
|
|
138
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions`
|
|
139
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
|
|
140
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
142
|
-
let baseOptions;
|
|
143
|
-
if (configuration) {
|
|
144
|
-
baseOptions = configuration.baseOptions;
|
|
145
|
-
}
|
|
146
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
147
|
-
const localVarHeaderParameter = {};
|
|
148
|
-
const localVarQueryParameter = {};
|
|
149
|
-
// authentication oauth2 required
|
|
150
|
-
// oauth required
|
|
151
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
152
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
154
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
156
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createChatSessionCommand, localVarRequestOptions, configuration);
|
|
157
|
-
return {
|
|
158
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
159
|
-
options: localVarRequestOptions,
|
|
160
|
-
};
|
|
161
|
-
}),
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @summary Check if a chat session read message
|
|
165
|
-
* @param {string} tenantId
|
|
166
|
-
* @param {string} sessionId
|
|
167
|
-
* @param {*} [options] Override http request option.
|
|
168
|
-
* @throws {RequiredError}
|
|
169
|
-
*/
|
|
170
|
-
apiV1ChatTenantIdSessionsSessionIdCheckPost: (tenantId_1, sessionId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, ...args_1], void 0, function* (tenantId, sessionId, options = {}) {
|
|
171
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
172
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdCheckPost', 'tenantId', tenantId);
|
|
173
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
174
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdCheckPost', 'sessionId', sessionId);
|
|
175
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/check`
|
|
176
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
177
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
178
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
179
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
180
|
-
let baseOptions;
|
|
181
|
-
if (configuration) {
|
|
182
|
-
baseOptions = configuration.baseOptions;
|
|
183
|
-
}
|
|
184
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
185
|
-
const localVarHeaderParameter = {};
|
|
186
|
-
const localVarQueryParameter = {};
|
|
187
|
-
// authentication oauth2 required
|
|
188
|
-
// oauth required
|
|
189
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
190
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
191
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
193
|
-
return {
|
|
194
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
|
-
options: localVarRequestOptions,
|
|
196
|
-
};
|
|
197
|
-
}),
|
|
198
|
-
/**
|
|
199
|
-
*
|
|
200
|
-
* @summary Check if a chat session read message
|
|
201
|
-
* @param {string} tenantId
|
|
202
|
-
* @param {string} sessionId
|
|
203
|
-
* @param {ChatSessionConsultStatusCommand} [chatSessionConsultStatusCommand]
|
|
204
|
-
* @param {*} [options] Override http request option.
|
|
205
|
-
* @throws {RequiredError}
|
|
206
|
-
*/
|
|
207
|
-
apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch: (tenantId_1, sessionId_1, chatSessionConsultStatusCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, chatSessionConsultStatusCommand_1, ...args_1], void 0, function* (tenantId, sessionId, chatSessionConsultStatusCommand, options = {}) {
|
|
208
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
209
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch', 'tenantId', tenantId);
|
|
210
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
211
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch', 'sessionId', sessionId);
|
|
212
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/consult/status`
|
|
213
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
214
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
215
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
-
let baseOptions;
|
|
218
|
-
if (configuration) {
|
|
219
|
-
baseOptions = configuration.baseOptions;
|
|
220
|
-
}
|
|
221
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
222
|
-
const localVarHeaderParameter = {};
|
|
223
|
-
const localVarQueryParameter = {};
|
|
224
|
-
// authentication oauth2 required
|
|
225
|
-
// oauth required
|
|
226
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
227
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
228
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
229
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
230
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
231
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(chatSessionConsultStatusCommand, localVarRequestOptions, configuration);
|
|
232
|
-
return {
|
|
233
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
234
|
-
options: localVarRequestOptions,
|
|
235
|
-
};
|
|
236
|
-
}),
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
239
|
-
* @summary Convert a guest to a signed-in user.
|
|
240
|
-
* @param {string} tenantId The tenant identifier.
|
|
241
|
-
* @param {string} sessionId The session identifier.
|
|
242
|
-
* @param {*} [options] Override http request option.
|
|
243
|
-
* @throws {RequiredError}
|
|
244
|
-
*/
|
|
245
|
-
apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost: (tenantId_1, sessionId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, ...args_1], void 0, function* (tenantId, sessionId, options = {}) {
|
|
246
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
247
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost', 'tenantId', tenantId);
|
|
248
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
249
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost', 'sessionId', sessionId);
|
|
250
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/convertsigninuser`
|
|
251
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
252
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
253
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
255
|
-
let baseOptions;
|
|
256
|
-
if (configuration) {
|
|
257
|
-
baseOptions = configuration.baseOptions;
|
|
258
|
-
}
|
|
259
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
260
|
-
const localVarHeaderParameter = {};
|
|
261
|
-
const localVarQueryParameter = {};
|
|
262
|
-
// authentication oauth2 required
|
|
263
|
-
// oauth required
|
|
264
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
265
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
266
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
267
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
268
|
-
return {
|
|
269
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
270
|
-
options: localVarRequestOptions,
|
|
271
|
-
};
|
|
272
|
-
}),
|
|
273
|
-
/**
|
|
274
|
-
*
|
|
275
|
-
* @summary Delete a chat session.
|
|
276
|
-
* @param {string} tenantId The tenant identifier.
|
|
277
|
-
* @param {string} sessionId The session identifier.
|
|
278
|
-
* @param {*} [options] Override http request option.
|
|
279
|
-
* @throws {RequiredError}
|
|
280
|
-
*/
|
|
281
|
-
apiV1ChatTenantIdSessionsSessionIdDelete: (tenantId_1, sessionId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, ...args_1], void 0, function* (tenantId, sessionId, options = {}) {
|
|
282
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
283
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdDelete', 'tenantId', tenantId);
|
|
284
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
285
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdDelete', 'sessionId', sessionId);
|
|
286
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`
|
|
287
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
288
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
289
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
290
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
291
|
-
let baseOptions;
|
|
292
|
-
if (configuration) {
|
|
293
|
-
baseOptions = configuration.baseOptions;
|
|
294
|
-
}
|
|
295
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
296
|
-
const localVarHeaderParameter = {};
|
|
297
|
-
const localVarQueryParameter = {};
|
|
298
|
-
// authentication oauth2 required
|
|
299
|
-
// oauth required
|
|
300
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
301
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
302
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
304
|
-
return {
|
|
305
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
306
|
-
options: localVarRequestOptions,
|
|
307
|
-
};
|
|
308
|
-
}),
|
|
309
|
-
/**
|
|
310
|
-
*
|
|
311
|
-
* @summary Get chat session by session Id.
|
|
312
|
-
* @param {string} tenantId The tenant identifier.
|
|
313
|
-
* @param {string} sessionId The session identifier.
|
|
314
|
-
* @param {*} [options] Override http request option.
|
|
315
|
-
* @throws {RequiredError}
|
|
316
|
-
*/
|
|
317
|
-
apiV1ChatTenantIdSessionsSessionIdGet: (tenantId_1, sessionId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, ...args_1], void 0, function* (tenantId, sessionId, options = {}) {
|
|
318
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
319
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdGet', 'tenantId', tenantId);
|
|
320
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
321
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdGet', 'sessionId', sessionId);
|
|
322
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`
|
|
323
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
324
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
325
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
326
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
327
|
-
let baseOptions;
|
|
328
|
-
if (configuration) {
|
|
329
|
-
baseOptions = configuration.baseOptions;
|
|
330
|
-
}
|
|
331
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
332
|
-
const localVarHeaderParameter = {};
|
|
333
|
-
const localVarQueryParameter = {};
|
|
334
|
-
// authentication oauth2 required
|
|
335
|
-
// oauth required
|
|
336
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
337
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
338
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
340
|
-
return {
|
|
341
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
342
|
-
options: localVarRequestOptions,
|
|
343
|
-
};
|
|
344
|
-
}),
|
|
345
|
-
/**
|
|
346
|
-
*
|
|
347
|
-
* @summary Get intake forms by session id.
|
|
348
|
-
* @param {string} tenantId
|
|
349
|
-
* @param {string} sessionId
|
|
350
|
-
* @param {string} [id]
|
|
351
|
-
* @param {string} [userId]
|
|
352
|
-
* @param {string} [phoneNumber]
|
|
353
|
-
* @param {number} [page]
|
|
354
|
-
* @param {number} [limit]
|
|
355
|
-
* @param {Date} [lastRetrieved]
|
|
356
|
-
* @param {*} [options] Override http request option.
|
|
357
|
-
* @throws {RequiredError}
|
|
358
|
-
*/
|
|
359
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet: (tenantId_1, sessionId_1, id_1, userId_1, phoneNumber_1, page_1, limit_1, lastRetrieved_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, id_1, userId_1, phoneNumber_1, page_1, limit_1, lastRetrieved_1, ...args_1], void 0, function* (tenantId, sessionId, id, userId, phoneNumber, page, limit, lastRetrieved, options = {}) {
|
|
360
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
361
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsGet', 'tenantId', tenantId);
|
|
362
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
363
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsGet', 'sessionId', sessionId);
|
|
364
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms`
|
|
365
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
366
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
367
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
368
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
369
|
-
let baseOptions;
|
|
370
|
-
if (configuration) {
|
|
371
|
-
baseOptions = configuration.baseOptions;
|
|
372
|
-
}
|
|
373
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
374
|
-
const localVarHeaderParameter = {};
|
|
375
|
-
const localVarQueryParameter = {};
|
|
376
|
-
// authentication oauth2 required
|
|
377
|
-
// oauth required
|
|
378
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
379
|
-
if (id !== undefined) {
|
|
380
|
-
localVarQueryParameter['Id'] = id;
|
|
381
|
-
}
|
|
382
|
-
if (userId !== undefined) {
|
|
383
|
-
localVarQueryParameter['UserId'] = userId;
|
|
384
|
-
}
|
|
385
|
-
if (phoneNumber !== undefined) {
|
|
386
|
-
localVarQueryParameter['PhoneNumber'] = phoneNumber;
|
|
387
|
-
}
|
|
388
|
-
if (page !== undefined) {
|
|
389
|
-
localVarQueryParameter['page'] = page;
|
|
390
|
-
}
|
|
391
|
-
if (limit !== undefined) {
|
|
392
|
-
localVarQueryParameter['limit'] = limit;
|
|
393
|
-
}
|
|
394
|
-
if (lastRetrieved !== undefined) {
|
|
395
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
396
|
-
lastRetrieved.toISOString() :
|
|
397
|
-
lastRetrieved;
|
|
398
|
-
}
|
|
399
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
400
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
401
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
402
|
-
return {
|
|
403
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
404
|
-
options: localVarRequestOptions,
|
|
405
|
-
};
|
|
406
|
-
}),
|
|
407
|
-
/**
|
|
408
|
-
*
|
|
409
|
-
* @summary Delete intake form by id.
|
|
410
|
-
* @param {string} tenantId
|
|
411
|
-
* @param {string} sessionId
|
|
412
|
-
* @param {string} intakeFormId
|
|
413
|
-
* @param {*} [options] Override http request option.
|
|
414
|
-
* @throws {RequiredError}
|
|
415
|
-
*/
|
|
416
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete: (tenantId_1, sessionId_1, intakeFormId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, intakeFormId_1, ...args_1], void 0, function* (tenantId, sessionId, intakeFormId, options = {}) {
|
|
417
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
418
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete', 'tenantId', tenantId);
|
|
419
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
420
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete', 'sessionId', sessionId);
|
|
421
|
-
// verify required parameter 'intakeFormId' is not null or undefined
|
|
422
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete', 'intakeFormId', intakeFormId);
|
|
423
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}`
|
|
424
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
425
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
426
|
-
.replace(`{${"intakeFormId"}}`, encodeURIComponent(String(intakeFormId)));
|
|
427
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
428
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
429
|
-
let baseOptions;
|
|
430
|
-
if (configuration) {
|
|
431
|
-
baseOptions = configuration.baseOptions;
|
|
432
|
-
}
|
|
433
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
434
|
-
const localVarHeaderParameter = {};
|
|
435
|
-
const localVarQueryParameter = {};
|
|
436
|
-
// authentication oauth2 required
|
|
437
|
-
// oauth required
|
|
438
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
439
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
440
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
441
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
442
|
-
return {
|
|
443
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
444
|
-
options: localVarRequestOptions,
|
|
445
|
-
};
|
|
446
|
-
}),
|
|
447
|
-
/**
|
|
448
|
-
*
|
|
449
|
-
* @summary Get intake form by id.
|
|
450
|
-
* @param {string} tenantId
|
|
451
|
-
* @param {string} sessionId
|
|
452
|
-
* @param {string} intakeFormId
|
|
453
|
-
* @param {*} [options] Override http request option.
|
|
454
|
-
* @throws {RequiredError}
|
|
455
|
-
*/
|
|
456
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet: (tenantId_1, sessionId_1, intakeFormId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, intakeFormId_1, ...args_1], void 0, function* (tenantId, sessionId, intakeFormId, options = {}) {
|
|
457
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
458
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet', 'tenantId', tenantId);
|
|
459
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
460
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet', 'sessionId', sessionId);
|
|
461
|
-
// verify required parameter 'intakeFormId' is not null or undefined
|
|
462
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet', 'intakeFormId', intakeFormId);
|
|
463
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}`
|
|
464
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
465
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
466
|
-
.replace(`{${"intakeFormId"}}`, encodeURIComponent(String(intakeFormId)));
|
|
467
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
468
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
469
|
-
let baseOptions;
|
|
470
|
-
if (configuration) {
|
|
471
|
-
baseOptions = configuration.baseOptions;
|
|
472
|
-
}
|
|
473
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
474
|
-
const localVarHeaderParameter = {};
|
|
475
|
-
const localVarQueryParameter = {};
|
|
476
|
-
// authentication oauth2 required
|
|
477
|
-
// oauth required
|
|
478
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
479
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
480
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
481
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
482
|
-
return {
|
|
483
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
484
|
-
options: localVarRequestOptions,
|
|
485
|
-
};
|
|
486
|
-
}),
|
|
487
|
-
/**
|
|
488
|
-
*
|
|
489
|
-
* @summary Update intake form by id.
|
|
490
|
-
* @param {string} tenantId
|
|
491
|
-
* @param {string} sessionId
|
|
492
|
-
* @param {string} intakeFormId
|
|
493
|
-
* @param {PatchIntakeFormCommand} [patchIntakeFormCommand]
|
|
494
|
-
* @param {*} [options] Override http request option.
|
|
495
|
-
* @throws {RequiredError}
|
|
496
|
-
*/
|
|
497
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch: (tenantId_1, sessionId_1, intakeFormId_1, patchIntakeFormCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, intakeFormId_1, patchIntakeFormCommand_1, ...args_1], void 0, function* (tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options = {}) {
|
|
498
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
499
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch', 'tenantId', tenantId);
|
|
500
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
501
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch', 'sessionId', sessionId);
|
|
502
|
-
// verify required parameter 'intakeFormId' is not null or undefined
|
|
503
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch', 'intakeFormId', intakeFormId);
|
|
504
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}/items`
|
|
505
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
506
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
507
|
-
.replace(`{${"intakeFormId"}}`, encodeURIComponent(String(intakeFormId)));
|
|
508
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
509
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
510
|
-
let baseOptions;
|
|
511
|
-
if (configuration) {
|
|
512
|
-
baseOptions = configuration.baseOptions;
|
|
513
|
-
}
|
|
514
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
515
|
-
const localVarHeaderParameter = {};
|
|
516
|
-
const localVarQueryParameter = {};
|
|
517
|
-
// authentication oauth2 required
|
|
518
|
-
// oauth required
|
|
519
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
520
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
521
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
522
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
523
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
524
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchIntakeFormCommand, localVarRequestOptions, configuration);
|
|
525
|
-
return {
|
|
526
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
527
|
-
options: localVarRequestOptions,
|
|
528
|
-
};
|
|
529
|
-
}),
|
|
530
|
-
/**
|
|
531
|
-
*
|
|
532
|
-
* @summary Create a new intake form.
|
|
533
|
-
* @param {string} tenantId
|
|
534
|
-
* @param {string} sessionId
|
|
535
|
-
* @param {CreateIntakeFormCommand} [createIntakeFormCommand]
|
|
536
|
-
* @param {*} [options] Override http request option.
|
|
537
|
-
* @throws {RequiredError}
|
|
538
|
-
*/
|
|
539
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsPost: (tenantId_1, sessionId_1, createIntakeFormCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, createIntakeFormCommand_1, ...args_1], void 0, function* (tenantId, sessionId, createIntakeFormCommand, options = {}) {
|
|
540
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
541
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsPost', 'tenantId', tenantId);
|
|
542
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
543
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsPost', 'sessionId', sessionId);
|
|
544
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms`
|
|
545
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
546
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
547
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
548
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
549
|
-
let baseOptions;
|
|
550
|
-
if (configuration) {
|
|
551
|
-
baseOptions = configuration.baseOptions;
|
|
552
|
-
}
|
|
553
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
554
|
-
const localVarHeaderParameter = {};
|
|
555
|
-
const localVarQueryParameter = {};
|
|
556
|
-
// authentication oauth2 required
|
|
557
|
-
// oauth required
|
|
558
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
559
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
560
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
561
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
562
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
563
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createIntakeFormCommand, localVarRequestOptions, configuration);
|
|
564
|
-
return {
|
|
565
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
566
|
-
options: localVarRequestOptions,
|
|
567
|
-
};
|
|
568
|
-
}),
|
|
569
|
-
/**
|
|
570
|
-
*
|
|
571
|
-
* @summary Join a chat session.
|
|
572
|
-
* @param {string} tenantId The tenant identifier.
|
|
573
|
-
* @param {string} sessionId The session identifier.
|
|
574
|
-
* @param {JoinChatSessionCommand} [joinChatSessionCommand] The command to join a chat session.
|
|
575
|
-
* @param {*} [options] Override http request option.
|
|
576
|
-
* @throws {RequiredError}
|
|
577
|
-
*/
|
|
578
|
-
apiV1ChatTenantIdSessionsSessionIdJoinPost: (tenantId_1, sessionId_1, joinChatSessionCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, joinChatSessionCommand_1, ...args_1], void 0, function* (tenantId, sessionId, joinChatSessionCommand, options = {}) {
|
|
579
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
580
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdJoinPost', 'tenantId', tenantId);
|
|
581
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
582
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdJoinPost', 'sessionId', sessionId);
|
|
583
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/join`
|
|
584
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
585
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
586
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
587
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
588
|
-
let baseOptions;
|
|
589
|
-
if (configuration) {
|
|
590
|
-
baseOptions = configuration.baseOptions;
|
|
591
|
-
}
|
|
592
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
593
|
-
const localVarHeaderParameter = {};
|
|
594
|
-
const localVarQueryParameter = {};
|
|
595
|
-
// authentication oauth2 required
|
|
596
|
-
// oauth required
|
|
597
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
598
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
599
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
600
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
601
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
602
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinChatSessionCommand, localVarRequestOptions, configuration);
|
|
603
|
-
return {
|
|
604
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
605
|
-
options: localVarRequestOptions,
|
|
606
|
-
};
|
|
607
|
-
}),
|
|
608
|
-
/**
|
|
609
|
-
*
|
|
610
|
-
* @summary Leave a chat session.
|
|
611
|
-
* @param {string} tenantId The tenant identifier.
|
|
612
|
-
* @param {string} sessionId The session identifier.
|
|
613
|
-
* @param {*} [options] Override http request option.
|
|
614
|
-
* @throws {RequiredError}
|
|
615
|
-
*/
|
|
616
|
-
apiV1ChatTenantIdSessionsSessionIdLeaveDelete: (tenantId_1, sessionId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, ...args_1], void 0, function* (tenantId, sessionId, options = {}) {
|
|
617
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
618
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdLeaveDelete', 'tenantId', tenantId);
|
|
619
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
620
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdLeaveDelete', 'sessionId', sessionId);
|
|
621
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/leave`
|
|
622
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
623
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
624
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
625
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
626
|
-
let baseOptions;
|
|
627
|
-
if (configuration) {
|
|
628
|
-
baseOptions = configuration.baseOptions;
|
|
629
|
-
}
|
|
630
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
631
|
-
const localVarHeaderParameter = {};
|
|
632
|
-
const localVarQueryParameter = {};
|
|
633
|
-
// authentication oauth2 required
|
|
634
|
-
// oauth required
|
|
635
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
636
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
637
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
638
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
639
|
-
return {
|
|
640
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
641
|
-
options: localVarRequestOptions,
|
|
642
|
-
};
|
|
643
|
-
}),
|
|
644
|
-
/**
|
|
645
|
-
*
|
|
646
|
-
* @summary Send a message in a chat session.
|
|
647
|
-
* @param {string} tenantId The tenant identifier.
|
|
648
|
-
* @param {string} sessionId The session identifier.
|
|
649
|
-
* @param {File} [file]
|
|
650
|
-
* @param {string} [text]
|
|
651
|
-
* @param {string} [mediaId]
|
|
652
|
-
* @param {string} [platformMessageId]
|
|
653
|
-
* @param {string} [caption]
|
|
654
|
-
* @param {string} [link]
|
|
655
|
-
* @param {MessageType} [messageType]
|
|
656
|
-
* @param {string} [phoneNumber]
|
|
657
|
-
* @param {*} [options] Override http request option.
|
|
658
|
-
* @throws {RequiredError}
|
|
659
|
-
*/
|
|
660
|
-
apiV1ChatTenantIdSessionsSessionIdMessageSendPost: (tenantId_1, sessionId_1, file_1, text_1, mediaId_1, platformMessageId_1, caption_1, link_1, messageType_1, phoneNumber_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, file_1, text_1, mediaId_1, platformMessageId_1, caption_1, link_1, messageType_1, phoneNumber_1, ...args_1], void 0, function* (tenantId, sessionId, file, text, mediaId, platformMessageId, caption, link, messageType, phoneNumber, options = {}) {
|
|
661
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
662
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessageSendPost', 'tenantId', tenantId);
|
|
663
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
664
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessageSendPost', 'sessionId', sessionId);
|
|
665
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/message/send`
|
|
666
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
667
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
668
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
669
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
670
|
-
let baseOptions;
|
|
671
|
-
if (configuration) {
|
|
672
|
-
baseOptions = configuration.baseOptions;
|
|
673
|
-
}
|
|
674
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
675
|
-
const localVarHeaderParameter = {};
|
|
676
|
-
const localVarQueryParameter = {};
|
|
677
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
678
|
-
// authentication oauth2 required
|
|
679
|
-
// oauth required
|
|
680
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
681
|
-
if (file !== undefined) {
|
|
682
|
-
localVarFormParams.append('File', file);
|
|
683
|
-
}
|
|
684
|
-
if (text !== undefined) {
|
|
685
|
-
localVarFormParams.append('Text', text);
|
|
686
|
-
}
|
|
687
|
-
if (mediaId !== undefined) {
|
|
688
|
-
localVarFormParams.append('MediaId', mediaId);
|
|
689
|
-
}
|
|
690
|
-
if (platformMessageId !== undefined) {
|
|
691
|
-
localVarFormParams.append('PlatformMessageId', platformMessageId);
|
|
692
|
-
}
|
|
693
|
-
if (caption !== undefined) {
|
|
694
|
-
localVarFormParams.append('Caption', caption);
|
|
695
|
-
}
|
|
696
|
-
if (link !== undefined) {
|
|
697
|
-
localVarFormParams.append('Link', link);
|
|
698
|
-
}
|
|
699
|
-
if (messageType !== undefined) {
|
|
700
|
-
localVarFormParams.append('MessageType', messageType);
|
|
701
|
-
}
|
|
702
|
-
if (phoneNumber !== undefined) {
|
|
703
|
-
localVarFormParams.append('PhoneNumber', phoneNumber);
|
|
704
|
-
}
|
|
705
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
706
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
707
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
708
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
709
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
710
|
-
return {
|
|
711
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
712
|
-
options: localVarRequestOptions,
|
|
713
|
-
};
|
|
714
|
-
}),
|
|
715
|
-
/**
|
|
716
|
-
*
|
|
717
|
-
* @summary Get messages from a chat session.
|
|
718
|
-
* @param {string} tenantId The tenant identifier.
|
|
719
|
-
* @param {string} sessionId The session identifier.
|
|
720
|
-
* @param {number} [page]
|
|
721
|
-
* @param {number} [limit]
|
|
722
|
-
* @param {Date} [lastRetrieved]
|
|
723
|
-
* @param {*} [options] Override http request option.
|
|
724
|
-
* @throws {RequiredError}
|
|
725
|
-
*/
|
|
726
|
-
apiV1ChatTenantIdSessionsSessionIdMessagesGet: (tenantId_1, sessionId_1, page_1, limit_1, lastRetrieved_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, page_1, limit_1, lastRetrieved_1, ...args_1], void 0, function* (tenantId, sessionId, page, limit, lastRetrieved, options = {}) {
|
|
727
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
728
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesGet', 'tenantId', tenantId);
|
|
729
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
730
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesGet', 'sessionId', sessionId);
|
|
731
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/messages`
|
|
732
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
733
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
734
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
735
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
736
|
-
let baseOptions;
|
|
737
|
-
if (configuration) {
|
|
738
|
-
baseOptions = configuration.baseOptions;
|
|
739
|
-
}
|
|
740
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
741
|
-
const localVarHeaderParameter = {};
|
|
742
|
-
const localVarQueryParameter = {};
|
|
743
|
-
// authentication oauth2 required
|
|
744
|
-
// oauth required
|
|
745
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
746
|
-
if (page !== undefined) {
|
|
747
|
-
localVarQueryParameter['page'] = page;
|
|
748
|
-
}
|
|
749
|
-
if (limit !== undefined) {
|
|
750
|
-
localVarQueryParameter['limit'] = limit;
|
|
751
|
-
}
|
|
752
|
-
if (lastRetrieved !== undefined) {
|
|
753
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
754
|
-
lastRetrieved.toISOString() :
|
|
755
|
-
lastRetrieved;
|
|
756
|
-
}
|
|
757
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
758
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
759
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
760
|
-
return {
|
|
761
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
762
|
-
options: localVarRequestOptions,
|
|
763
|
-
};
|
|
764
|
-
}),
|
|
765
|
-
/**
|
|
766
|
-
*
|
|
767
|
-
* @summary Reactivate expired media in a chat message.
|
|
768
|
-
* @param {string} tenantId The tenant identifier.
|
|
769
|
-
* @param {string} sessionId The session identifier.
|
|
770
|
-
* @param {string} messageId
|
|
771
|
-
* @param {*} [options] Override http request option.
|
|
772
|
-
* @throws {RequiredError}
|
|
773
|
-
*/
|
|
774
|
-
apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut: (tenantId_1, sessionId_1, messageId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, messageId_1, ...args_1], void 0, function* (tenantId, sessionId, messageId, options = {}) {
|
|
775
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
776
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut', 'tenantId', tenantId);
|
|
777
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
778
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut', 'sessionId', sessionId);
|
|
779
|
-
// verify required parameter 'messageId' is not null or undefined
|
|
780
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut', 'messageId', messageId);
|
|
781
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/messages/{messageId}/media/reactivate`
|
|
782
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
783
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
784
|
-
.replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
|
|
785
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
786
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
787
|
-
let baseOptions;
|
|
788
|
-
if (configuration) {
|
|
789
|
-
baseOptions = configuration.baseOptions;
|
|
790
|
-
}
|
|
791
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
792
|
-
const localVarHeaderParameter = {};
|
|
793
|
-
const localVarQueryParameter = {};
|
|
794
|
-
// authentication oauth2 required
|
|
795
|
-
// oauth required
|
|
796
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
797
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
798
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
799
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
800
|
-
return {
|
|
801
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
802
|
-
options: localVarRequestOptions,
|
|
803
|
-
};
|
|
804
|
-
}),
|
|
805
|
-
/**
|
|
806
|
-
*
|
|
807
|
-
* @summary Update a chat session.
|
|
808
|
-
* @param {string} tenantId The tenant identifier.
|
|
809
|
-
* @param {string} sessionId The session identifier.
|
|
810
|
-
* @param {PutChatSessionCommand} [putChatSessionCommand] The command to update a chat session.
|
|
811
|
-
* @param {*} [options] Override http request option.
|
|
812
|
-
* @throws {RequiredError}
|
|
813
|
-
*/
|
|
814
|
-
apiV1ChatTenantIdSessionsSessionIdPatch: (tenantId_1, sessionId_1, putChatSessionCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, putChatSessionCommand_1, ...args_1], void 0, function* (tenantId, sessionId, putChatSessionCommand, options = {}) {
|
|
815
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
816
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdPatch', 'tenantId', tenantId);
|
|
817
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
818
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdPatch', 'sessionId', sessionId);
|
|
819
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`
|
|
820
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
821
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
822
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
823
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
824
|
-
let baseOptions;
|
|
825
|
-
if (configuration) {
|
|
826
|
-
baseOptions = configuration.baseOptions;
|
|
827
|
-
}
|
|
828
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
829
|
-
const localVarHeaderParameter = {};
|
|
830
|
-
const localVarQueryParameter = {};
|
|
831
|
-
// authentication oauth2 required
|
|
832
|
-
// oauth required
|
|
833
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
834
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
835
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
836
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
837
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
838
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putChatSessionCommand, localVarRequestOptions, configuration);
|
|
839
|
-
return {
|
|
840
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
841
|
-
options: localVarRequestOptions,
|
|
842
|
-
};
|
|
843
|
-
}),
|
|
844
|
-
/**
|
|
845
|
-
*
|
|
846
|
-
* @summary Transfer a chat session agent.
|
|
847
|
-
* @param {string} tenantId The tenant identifier.
|
|
848
|
-
* @param {string} sessionId The session identifier.
|
|
849
|
-
* @param {TransferManagerCommand} [transferManagerCommand] The command to transfer a chat session.
|
|
850
|
-
* @param {*} [options] Override http request option.
|
|
851
|
-
* @throws {RequiredError}
|
|
852
|
-
*/
|
|
853
|
-
apiV1ChatTenantIdSessionsSessionIdTransferPut: (tenantId_1, sessionId_1, transferManagerCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, transferManagerCommand_1, ...args_1], void 0, function* (tenantId, sessionId, transferManagerCommand, options = {}) {
|
|
854
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
855
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdTransferPut', 'tenantId', tenantId);
|
|
856
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
857
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdTransferPut', 'sessionId', sessionId);
|
|
858
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/transfer`
|
|
859
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
860
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
861
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
862
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
863
|
-
let baseOptions;
|
|
864
|
-
if (configuration) {
|
|
865
|
-
baseOptions = configuration.baseOptions;
|
|
866
|
-
}
|
|
867
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
868
|
-
const localVarHeaderParameter = {};
|
|
869
|
-
const localVarQueryParameter = {};
|
|
870
|
-
// authentication oauth2 required
|
|
871
|
-
// oauth required
|
|
872
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
873
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
874
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
875
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
876
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
877
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transferManagerCommand, localVarRequestOptions, configuration);
|
|
878
|
-
return {
|
|
879
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
880
|
-
options: localVarRequestOptions,
|
|
881
|
-
};
|
|
882
|
-
}),
|
|
883
|
-
/**
|
|
884
|
-
*
|
|
885
|
-
* @summary Send whatsapp flow message
|
|
886
|
-
* @param {string} tenantId
|
|
887
|
-
* @param {string} sessionId
|
|
888
|
-
* @param {ChatSendFlowMessageCommand} [chatSendFlowMessageCommand]
|
|
889
|
-
* @param {*} [options] Override http request option.
|
|
890
|
-
* @throws {RequiredError}
|
|
891
|
-
*/
|
|
892
|
-
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost: (tenantId_1, sessionId_1, chatSendFlowMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, chatSendFlowMessageCommand_1, ...args_1], void 0, function* (tenantId, sessionId, chatSendFlowMessageCommand, options = {}) {
|
|
893
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
894
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost', 'tenantId', tenantId);
|
|
895
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
896
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost', 'sessionId', sessionId);
|
|
897
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/whatsapp/flow/message/send`
|
|
898
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
899
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
900
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
901
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
902
|
-
let baseOptions;
|
|
903
|
-
if (configuration) {
|
|
904
|
-
baseOptions = configuration.baseOptions;
|
|
905
|
-
}
|
|
906
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
907
|
-
const localVarHeaderParameter = {};
|
|
908
|
-
const localVarQueryParameter = {};
|
|
909
|
-
// authentication oauth2 required
|
|
910
|
-
// oauth required
|
|
911
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
912
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
913
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
914
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
915
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
916
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(chatSendFlowMessageCommand, localVarRequestOptions, configuration);
|
|
917
|
-
return {
|
|
918
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
919
|
-
options: localVarRequestOptions,
|
|
920
|
-
};
|
|
921
|
-
}),
|
|
922
|
-
/**
|
|
923
|
-
*
|
|
924
|
-
* @summary Send whatsapp template message
|
|
925
|
-
* @param {string} tenantId
|
|
926
|
-
* @param {string} sessionId
|
|
927
|
-
* @param {ChatSendTemplateMessageCommand} [chatSendTemplateMessageCommand]
|
|
928
|
-
* @param {*} [options] Override http request option.
|
|
929
|
-
* @throws {RequiredError}
|
|
930
|
-
*/
|
|
931
|
-
apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost: (tenantId_1, sessionId_1, chatSendTemplateMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, chatSendTemplateMessageCommand_1, ...args_1], void 0, function* (tenantId, sessionId, chatSendTemplateMessageCommand, options = {}) {
|
|
932
|
-
// verify required parameter 'tenantId' is not null or undefined
|
|
933
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost', 'tenantId', tenantId);
|
|
934
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
935
|
-
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost', 'sessionId', sessionId);
|
|
936
|
-
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/whatsapp/template/message/send`
|
|
937
|
-
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
938
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
939
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
940
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
941
|
-
let baseOptions;
|
|
942
|
-
if (configuration) {
|
|
943
|
-
baseOptions = configuration.baseOptions;
|
|
944
|
-
}
|
|
945
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
946
|
-
const localVarHeaderParameter = {};
|
|
947
|
-
const localVarQueryParameter = {};
|
|
948
|
-
// authentication oauth2 required
|
|
949
|
-
// oauth required
|
|
950
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
951
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
952
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
953
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
954
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
955
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(chatSendTemplateMessageCommand, localVarRequestOptions, configuration);
|
|
956
|
-
return {
|
|
957
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
958
|
-
options: localVarRequestOptions,
|
|
959
|
-
};
|
|
960
|
-
}),
|
|
961
|
-
};
|
|
962
|
-
};
|
|
963
|
-
exports.SessionsApiAxiosParamCreator = SessionsApiAxiosParamCreator;
|
|
964
|
-
/**
|
|
965
|
-
* SessionsApi - functional programming interface
|
|
966
|
-
* @export
|
|
967
|
-
*/
|
|
968
|
-
const SessionsApiFp = function (configuration) {
|
|
969
|
-
const localVarAxiosParamCreator = (0, exports.SessionsApiAxiosParamCreator)(configuration);
|
|
970
|
-
return {
|
|
971
|
-
/**
|
|
972
|
-
*
|
|
973
|
-
* @summary Get all chat sessions.
|
|
974
|
-
* @param {string} tenantId The tenant identifier.
|
|
975
|
-
* @param {string} [id]
|
|
976
|
-
* @param {string} [targetHospitalId]
|
|
977
|
-
* @param {string} [targetHospitalName]
|
|
978
|
-
* @param {Array<string>} [assigneeIds]
|
|
979
|
-
* @param {Array<ChatSessionStatus>} [chatSessionStatus]
|
|
980
|
-
* @param {string} [title]
|
|
981
|
-
* @param {string} [userName]
|
|
982
|
-
* @param {SortBy} [sortBy]
|
|
983
|
-
* @param {boolean} [isRead]
|
|
984
|
-
* @param {PlatformTypes} [platformType]
|
|
985
|
-
* @param {number} [page]
|
|
986
|
-
* @param {number} [limit]
|
|
987
|
-
* @param {Date} [lastRetrieved]
|
|
988
|
-
* @param {*} [options] Override http request option.
|
|
989
|
-
* @throws {RequiredError}
|
|
990
|
-
*/
|
|
991
|
-
apiV1ChatTenantIdSessionsGet(tenantId, id, targetHospitalId, targetHospitalName, assigneeIds, chatSessionStatus, title, userName, sortBy, isRead, platformType, page, limit, lastRetrieved, options) {
|
|
992
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
993
|
-
var _a, _b, _c;
|
|
994
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsGet(tenantId, id, targetHospitalId, targetHospitalName, assigneeIds, chatSessionStatus, title, userName, sortBy, isRead, platformType, page, limit, lastRetrieved, options);
|
|
995
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
996
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
997
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
998
|
-
});
|
|
999
|
-
},
|
|
1000
|
-
/**
|
|
1001
|
-
*
|
|
1002
|
-
* @summary Create a chat session.
|
|
1003
|
-
* @param {string} tenantId The tenant identifier.
|
|
1004
|
-
* @param {CreateChatSessionCommand} [createChatSessionCommand] The command to create a chat session.
|
|
1005
|
-
* @param {*} [options] Override http request option.
|
|
1006
|
-
* @throws {RequiredError}
|
|
1007
|
-
*/
|
|
1008
|
-
apiV1ChatTenantIdSessionsPost(tenantId, createChatSessionCommand, options) {
|
|
1009
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1010
|
-
var _a, _b, _c;
|
|
1011
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsPost(tenantId, createChatSessionCommand, options);
|
|
1012
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1013
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1014
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1015
|
-
});
|
|
1016
|
-
},
|
|
1017
|
-
/**
|
|
1018
|
-
*
|
|
1019
|
-
* @summary Check if a chat session read message
|
|
1020
|
-
* @param {string} tenantId
|
|
1021
|
-
* @param {string} sessionId
|
|
1022
|
-
* @param {*} [options] Override http request option.
|
|
1023
|
-
* @throws {RequiredError}
|
|
1024
|
-
*/
|
|
1025
|
-
apiV1ChatTenantIdSessionsSessionIdCheckPost(tenantId, sessionId, options) {
|
|
1026
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1027
|
-
var _a, _b, _c;
|
|
1028
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdCheckPost(tenantId, sessionId, options);
|
|
1029
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1030
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdCheckPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1031
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1032
|
-
});
|
|
1033
|
-
},
|
|
1034
|
-
/**
|
|
1035
|
-
*
|
|
1036
|
-
* @summary Check if a chat session read message
|
|
1037
|
-
* @param {string} tenantId
|
|
1038
|
-
* @param {string} sessionId
|
|
1039
|
-
* @param {ChatSessionConsultStatusCommand} [chatSessionConsultStatusCommand]
|
|
1040
|
-
* @param {*} [options] Override http request option.
|
|
1041
|
-
* @throws {RequiredError}
|
|
1042
|
-
*/
|
|
1043
|
-
apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(tenantId, sessionId, chatSessionConsultStatusCommand, options) {
|
|
1044
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1045
|
-
var _a, _b, _c;
|
|
1046
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(tenantId, sessionId, chatSessionConsultStatusCommand, options);
|
|
1047
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1048
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1049
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1050
|
-
});
|
|
1051
|
-
},
|
|
1052
|
-
/**
|
|
1053
|
-
*
|
|
1054
|
-
* @summary Convert a guest to a signed-in user.
|
|
1055
|
-
* @param {string} tenantId The tenant identifier.
|
|
1056
|
-
* @param {string} sessionId The session identifier.
|
|
1057
|
-
* @param {*} [options] Override http request option.
|
|
1058
|
-
* @throws {RequiredError}
|
|
1059
|
-
*/
|
|
1060
|
-
apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(tenantId, sessionId, options) {
|
|
1061
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1062
|
-
var _a, _b, _c;
|
|
1063
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(tenantId, sessionId, options);
|
|
1064
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1065
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1066
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1067
|
-
});
|
|
1068
|
-
},
|
|
1069
|
-
/**
|
|
1070
|
-
*
|
|
1071
|
-
* @summary Delete a chat session.
|
|
1072
|
-
* @param {string} tenantId The tenant identifier.
|
|
1073
|
-
* @param {string} sessionId The session identifier.
|
|
1074
|
-
* @param {*} [options] Override http request option.
|
|
1075
|
-
* @throws {RequiredError}
|
|
1076
|
-
*/
|
|
1077
|
-
apiV1ChatTenantIdSessionsSessionIdDelete(tenantId, sessionId, options) {
|
|
1078
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1079
|
-
var _a, _b, _c;
|
|
1080
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdDelete(tenantId, sessionId, options);
|
|
1081
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1082
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1083
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1084
|
-
});
|
|
1085
|
-
},
|
|
1086
|
-
/**
|
|
1087
|
-
*
|
|
1088
|
-
* @summary Get chat session by session Id.
|
|
1089
|
-
* @param {string} tenantId The tenant identifier.
|
|
1090
|
-
* @param {string} sessionId The session identifier.
|
|
1091
|
-
* @param {*} [options] Override http request option.
|
|
1092
|
-
* @throws {RequiredError}
|
|
1093
|
-
*/
|
|
1094
|
-
apiV1ChatTenantIdSessionsSessionIdGet(tenantId, sessionId, options) {
|
|
1095
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1096
|
-
var _a, _b, _c;
|
|
1097
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdGet(tenantId, sessionId, options);
|
|
1098
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1099
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1100
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1101
|
-
});
|
|
1102
|
-
},
|
|
1103
|
-
/**
|
|
1104
|
-
*
|
|
1105
|
-
* @summary Get intake forms by session id.
|
|
1106
|
-
* @param {string} tenantId
|
|
1107
|
-
* @param {string} sessionId
|
|
1108
|
-
* @param {string} [id]
|
|
1109
|
-
* @param {string} [userId]
|
|
1110
|
-
* @param {string} [phoneNumber]
|
|
1111
|
-
* @param {number} [page]
|
|
1112
|
-
* @param {number} [limit]
|
|
1113
|
-
* @param {Date} [lastRetrieved]
|
|
1114
|
-
* @param {*} [options] Override http request option.
|
|
1115
|
-
* @throws {RequiredError}
|
|
1116
|
-
*/
|
|
1117
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(tenantId, sessionId, id, userId, phoneNumber, page, limit, lastRetrieved, options) {
|
|
1118
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1119
|
-
var _a, _b, _c;
|
|
1120
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(tenantId, sessionId, id, userId, phoneNumber, page, limit, lastRetrieved, options);
|
|
1121
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1122
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1123
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1124
|
-
});
|
|
1125
|
-
},
|
|
1126
|
-
/**
|
|
1127
|
-
*
|
|
1128
|
-
* @summary Delete intake form by id.
|
|
1129
|
-
* @param {string} tenantId
|
|
1130
|
-
* @param {string} sessionId
|
|
1131
|
-
* @param {string} intakeFormId
|
|
1132
|
-
* @param {*} [options] Override http request option.
|
|
1133
|
-
* @throws {RequiredError}
|
|
1134
|
-
*/
|
|
1135
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(tenantId, sessionId, intakeFormId, options) {
|
|
1136
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1137
|
-
var _a, _b, _c;
|
|
1138
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(tenantId, sessionId, intakeFormId, options);
|
|
1139
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1140
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1141
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1142
|
-
});
|
|
1143
|
-
},
|
|
1144
|
-
/**
|
|
1145
|
-
*
|
|
1146
|
-
* @summary Get intake form by id.
|
|
1147
|
-
* @param {string} tenantId
|
|
1148
|
-
* @param {string} sessionId
|
|
1149
|
-
* @param {string} intakeFormId
|
|
1150
|
-
* @param {*} [options] Override http request option.
|
|
1151
|
-
* @throws {RequiredError}
|
|
1152
|
-
*/
|
|
1153
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(tenantId, sessionId, intakeFormId, options) {
|
|
1154
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1155
|
-
var _a, _b, _c;
|
|
1156
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(tenantId, sessionId, intakeFormId, options);
|
|
1157
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1158
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1159
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1160
|
-
});
|
|
1161
|
-
},
|
|
1162
|
-
/**
|
|
1163
|
-
*
|
|
1164
|
-
* @summary Update intake form by id.
|
|
1165
|
-
* @param {string} tenantId
|
|
1166
|
-
* @param {string} sessionId
|
|
1167
|
-
* @param {string} intakeFormId
|
|
1168
|
-
* @param {PatchIntakeFormCommand} [patchIntakeFormCommand]
|
|
1169
|
-
* @param {*} [options] Override http request option.
|
|
1170
|
-
* @throws {RequiredError}
|
|
1171
|
-
*/
|
|
1172
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options) {
|
|
1173
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1174
|
-
var _a, _b, _c;
|
|
1175
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options);
|
|
1176
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1177
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1178
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1179
|
-
});
|
|
1180
|
-
},
|
|
1181
|
-
/**
|
|
1182
|
-
*
|
|
1183
|
-
* @summary Create a new intake form.
|
|
1184
|
-
* @param {string} tenantId
|
|
1185
|
-
* @param {string} sessionId
|
|
1186
|
-
* @param {CreateIntakeFormCommand} [createIntakeFormCommand]
|
|
1187
|
-
* @param {*} [options] Override http request option.
|
|
1188
|
-
* @throws {RequiredError}
|
|
1189
|
-
*/
|
|
1190
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(tenantId, sessionId, createIntakeFormCommand, options) {
|
|
1191
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1192
|
-
var _a, _b, _c;
|
|
1193
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(tenantId, sessionId, createIntakeFormCommand, options);
|
|
1194
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1195
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1196
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1197
|
-
});
|
|
1198
|
-
},
|
|
1199
|
-
/**
|
|
1200
|
-
*
|
|
1201
|
-
* @summary Join a chat session.
|
|
1202
|
-
* @param {string} tenantId The tenant identifier.
|
|
1203
|
-
* @param {string} sessionId The session identifier.
|
|
1204
|
-
* @param {JoinChatSessionCommand} [joinChatSessionCommand] The command to join a chat session.
|
|
1205
|
-
* @param {*} [options] Override http request option.
|
|
1206
|
-
* @throws {RequiredError}
|
|
1207
|
-
*/
|
|
1208
|
-
apiV1ChatTenantIdSessionsSessionIdJoinPost(tenantId, sessionId, joinChatSessionCommand, options) {
|
|
1209
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1210
|
-
var _a, _b, _c;
|
|
1211
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdJoinPost(tenantId, sessionId, joinChatSessionCommand, options);
|
|
1212
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1213
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdJoinPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1214
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1215
|
-
});
|
|
1216
|
-
},
|
|
1217
|
-
/**
|
|
1218
|
-
*
|
|
1219
|
-
* @summary Leave a chat session.
|
|
1220
|
-
* @param {string} tenantId The tenant identifier.
|
|
1221
|
-
* @param {string} sessionId The session identifier.
|
|
1222
|
-
* @param {*} [options] Override http request option.
|
|
1223
|
-
* @throws {RequiredError}
|
|
1224
|
-
*/
|
|
1225
|
-
apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId, sessionId, options) {
|
|
1226
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1227
|
-
var _a, _b, _c;
|
|
1228
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId, sessionId, options);
|
|
1229
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1230
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdLeaveDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1231
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1232
|
-
});
|
|
1233
|
-
},
|
|
1234
|
-
/**
|
|
1235
|
-
*
|
|
1236
|
-
* @summary Send a message in a chat session.
|
|
1237
|
-
* @param {string} tenantId The tenant identifier.
|
|
1238
|
-
* @param {string} sessionId The session identifier.
|
|
1239
|
-
* @param {File} [file]
|
|
1240
|
-
* @param {string} [text]
|
|
1241
|
-
* @param {string} [mediaId]
|
|
1242
|
-
* @param {string} [platformMessageId]
|
|
1243
|
-
* @param {string} [caption]
|
|
1244
|
-
* @param {string} [link]
|
|
1245
|
-
* @param {MessageType} [messageType]
|
|
1246
|
-
* @param {string} [phoneNumber]
|
|
1247
|
-
* @param {*} [options] Override http request option.
|
|
1248
|
-
* @throws {RequiredError}
|
|
1249
|
-
*/
|
|
1250
|
-
apiV1ChatTenantIdSessionsSessionIdMessageSendPost(tenantId, sessionId, file, text, mediaId, platformMessageId, caption, link, messageType, phoneNumber, options) {
|
|
1251
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1252
|
-
var _a, _b, _c;
|
|
1253
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessageSendPost(tenantId, sessionId, file, text, mediaId, platformMessageId, caption, link, messageType, phoneNumber, options);
|
|
1254
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1255
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessageSendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1256
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1257
|
-
});
|
|
1258
|
-
},
|
|
1259
|
-
/**
|
|
1260
|
-
*
|
|
1261
|
-
* @summary Get messages from a chat session.
|
|
1262
|
-
* @param {string} tenantId The tenant identifier.
|
|
1263
|
-
* @param {string} sessionId The session identifier.
|
|
1264
|
-
* @param {number} [page]
|
|
1265
|
-
* @param {number} [limit]
|
|
1266
|
-
* @param {Date} [lastRetrieved]
|
|
1267
|
-
* @param {*} [options] Override http request option.
|
|
1268
|
-
* @throws {RequiredError}
|
|
1269
|
-
*/
|
|
1270
|
-
apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, page, limit, lastRetrieved, options) {
|
|
1271
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1272
|
-
var _a, _b, _c;
|
|
1273
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, page, limit, lastRetrieved, options);
|
|
1274
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1275
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1276
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1277
|
-
});
|
|
1278
|
-
},
|
|
1279
|
-
/**
|
|
1280
|
-
*
|
|
1281
|
-
* @summary Reactivate expired media in a chat message.
|
|
1282
|
-
* @param {string} tenantId The tenant identifier.
|
|
1283
|
-
* @param {string} sessionId The session identifier.
|
|
1284
|
-
* @param {string} messageId
|
|
1285
|
-
* @param {*} [options] Override http request option.
|
|
1286
|
-
* @throws {RequiredError}
|
|
1287
|
-
*/
|
|
1288
|
-
apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(tenantId, sessionId, messageId, options) {
|
|
1289
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1290
|
-
var _a, _b, _c;
|
|
1291
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(tenantId, sessionId, messageId, options);
|
|
1292
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1293
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1294
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1295
|
-
});
|
|
1296
|
-
},
|
|
1297
|
-
/**
|
|
1298
|
-
*
|
|
1299
|
-
* @summary Update a chat session.
|
|
1300
|
-
* @param {string} tenantId The tenant identifier.
|
|
1301
|
-
* @param {string} sessionId The session identifier.
|
|
1302
|
-
* @param {PutChatSessionCommand} [putChatSessionCommand] The command to update a chat session.
|
|
1303
|
-
* @param {*} [options] Override http request option.
|
|
1304
|
-
* @throws {RequiredError}
|
|
1305
|
-
*/
|
|
1306
|
-
apiV1ChatTenantIdSessionsSessionIdPatch(tenantId, sessionId, putChatSessionCommand, options) {
|
|
1307
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1308
|
-
var _a, _b, _c;
|
|
1309
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdPatch(tenantId, sessionId, putChatSessionCommand, options);
|
|
1310
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1311
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1312
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1313
|
-
});
|
|
1314
|
-
},
|
|
1315
|
-
/**
|
|
1316
|
-
*
|
|
1317
|
-
* @summary Transfer a chat session agent.
|
|
1318
|
-
* @param {string} tenantId The tenant identifier.
|
|
1319
|
-
* @param {string} sessionId The session identifier.
|
|
1320
|
-
* @param {TransferManagerCommand} [transferManagerCommand] The command to transfer a chat session.
|
|
1321
|
-
* @param {*} [options] Override http request option.
|
|
1322
|
-
* @throws {RequiredError}
|
|
1323
|
-
*/
|
|
1324
|
-
apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId, sessionId, transferManagerCommand, options) {
|
|
1325
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1326
|
-
var _a, _b, _c;
|
|
1327
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId, sessionId, transferManagerCommand, options);
|
|
1328
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1329
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdTransferPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1330
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1331
|
-
});
|
|
1332
|
-
},
|
|
1333
|
-
/**
|
|
1334
|
-
*
|
|
1335
|
-
* @summary Send whatsapp flow message
|
|
1336
|
-
* @param {string} tenantId
|
|
1337
|
-
* @param {string} sessionId
|
|
1338
|
-
* @param {ChatSendFlowMessageCommand} [chatSendFlowMessageCommand]
|
|
1339
|
-
* @param {*} [options] Override http request option.
|
|
1340
|
-
* @throws {RequiredError}
|
|
1341
|
-
*/
|
|
1342
|
-
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(tenantId, sessionId, chatSendFlowMessageCommand, options) {
|
|
1343
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1344
|
-
var _a, _b, _c;
|
|
1345
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(tenantId, sessionId, chatSendFlowMessageCommand, options);
|
|
1346
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1347
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1348
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1349
|
-
});
|
|
1350
|
-
},
|
|
1351
|
-
/**
|
|
1352
|
-
*
|
|
1353
|
-
* @summary Send whatsapp template message
|
|
1354
|
-
* @param {string} tenantId
|
|
1355
|
-
* @param {string} sessionId
|
|
1356
|
-
* @param {ChatSendTemplateMessageCommand} [chatSendTemplateMessageCommand]
|
|
1357
|
-
* @param {*} [options] Override http request option.
|
|
1358
|
-
* @throws {RequiredError}
|
|
1359
|
-
*/
|
|
1360
|
-
apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(tenantId, sessionId, chatSendTemplateMessageCommand, options) {
|
|
1361
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1362
|
-
var _a, _b, _c;
|
|
1363
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(tenantId, sessionId, chatSendTemplateMessageCommand, options);
|
|
1364
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1365
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1366
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1367
|
-
});
|
|
1368
|
-
},
|
|
1369
|
-
};
|
|
1370
|
-
};
|
|
1371
|
-
exports.SessionsApiFp = SessionsApiFp;
|
|
1372
|
-
/**
|
|
1373
|
-
* SessionsApi - factory interface
|
|
1374
|
-
* @export
|
|
1375
|
-
*/
|
|
1376
|
-
const SessionsApiFactory = function (configuration, basePath, axios) {
|
|
1377
|
-
const localVarFp = (0, exports.SessionsApiFp)(configuration);
|
|
1378
|
-
return {
|
|
1379
|
-
/**
|
|
1380
|
-
*
|
|
1381
|
-
* @summary Get all chat sessions.
|
|
1382
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
|
|
1383
|
-
* @param {*} [options] Override http request option.
|
|
1384
|
-
* @throws {RequiredError}
|
|
1385
|
-
*/
|
|
1386
|
-
apiV1ChatTenantIdSessionsGet(requestParameters, options) {
|
|
1387
|
-
return localVarFp.apiV1ChatTenantIdSessionsGet(requestParameters.tenantId, requestParameters.id, requestParameters.targetHospitalId, requestParameters.targetHospitalName, requestParameters.assigneeIds, requestParameters.chatSessionStatus, requestParameters.title, requestParameters.userName, requestParameters.sortBy, requestParameters.isRead, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1388
|
-
},
|
|
1389
|
-
/**
|
|
1390
|
-
*
|
|
1391
|
-
* @summary Create a chat session.
|
|
1392
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
1393
|
-
* @param {*} [options] Override http request option.
|
|
1394
|
-
* @throws {RequiredError}
|
|
1395
|
-
*/
|
|
1396
|
-
apiV1ChatTenantIdSessionsPost(requestParameters, options) {
|
|
1397
|
-
return localVarFp.apiV1ChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.createChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
1398
|
-
},
|
|
1399
|
-
/**
|
|
1400
|
-
*
|
|
1401
|
-
* @summary Check if a chat session read message
|
|
1402
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdCheckPostRequest} requestParameters Request parameters.
|
|
1403
|
-
* @param {*} [options] Override http request option.
|
|
1404
|
-
* @throws {RequiredError}
|
|
1405
|
-
*/
|
|
1406
|
-
apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters, options) {
|
|
1407
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1408
|
-
},
|
|
1409
|
-
/**
|
|
1410
|
-
*
|
|
1411
|
-
* @summary Check if a chat session read message
|
|
1412
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdConsultStatusPatchRequest} requestParameters Request parameters.
|
|
1413
|
-
* @param {*} [options] Override http request option.
|
|
1414
|
-
* @throws {RequiredError}
|
|
1415
|
-
*/
|
|
1416
|
-
apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(requestParameters, options) {
|
|
1417
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSessionConsultStatusCommand, options).then((request) => request(axios, basePath));
|
|
1418
|
-
},
|
|
1419
|
-
/**
|
|
1420
|
-
*
|
|
1421
|
-
* @summary Convert a guest to a signed-in user.
|
|
1422
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest} requestParameters Request parameters.
|
|
1423
|
-
* @param {*} [options] Override http request option.
|
|
1424
|
-
* @throws {RequiredError}
|
|
1425
|
-
*/
|
|
1426
|
-
apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters, options) {
|
|
1427
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1428
|
-
},
|
|
1429
|
-
/**
|
|
1430
|
-
*
|
|
1431
|
-
* @summary Delete a chat session.
|
|
1432
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
|
|
1433
|
-
* @param {*} [options] Override http request option.
|
|
1434
|
-
* @throws {RequiredError}
|
|
1435
|
-
*/
|
|
1436
|
-
apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters, options) {
|
|
1437
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1438
|
-
},
|
|
1439
|
-
/**
|
|
1440
|
-
*
|
|
1441
|
-
* @summary Get chat session by session Id.
|
|
1442
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
|
|
1443
|
-
* @param {*} [options] Override http request option.
|
|
1444
|
-
* @throws {RequiredError}
|
|
1445
|
-
*/
|
|
1446
|
-
apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
|
|
1447
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1448
|
-
},
|
|
1449
|
-
/**
|
|
1450
|
-
*
|
|
1451
|
-
* @summary Get intake forms by session id.
|
|
1452
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
|
|
1453
|
-
* @param {*} [options] Override http request option.
|
|
1454
|
-
* @throws {RequiredError}
|
|
1455
|
-
*/
|
|
1456
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters, options) {
|
|
1457
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.id, requestParameters.userId, requestParameters.phoneNumber, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1458
|
-
},
|
|
1459
|
-
/**
|
|
1460
|
-
*
|
|
1461
|
-
* @summary Delete intake form by id.
|
|
1462
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
|
|
1463
|
-
* @param {*} [options] Override http request option.
|
|
1464
|
-
* @throws {RequiredError}
|
|
1465
|
-
*/
|
|
1466
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters, options) {
|
|
1467
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(axios, basePath));
|
|
1468
|
-
},
|
|
1469
|
-
/**
|
|
1470
|
-
*
|
|
1471
|
-
* @summary Get intake form by id.
|
|
1472
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
|
|
1473
|
-
* @param {*} [options] Override http request option.
|
|
1474
|
-
* @throws {RequiredError}
|
|
1475
|
-
*/
|
|
1476
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters, options) {
|
|
1477
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(axios, basePath));
|
|
1478
|
-
},
|
|
1479
|
-
/**
|
|
1480
|
-
*
|
|
1481
|
-
* @summary Update intake form by id.
|
|
1482
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
|
|
1483
|
-
* @param {*} [options] Override http request option.
|
|
1484
|
-
* @throws {RequiredError}
|
|
1485
|
-
*/
|
|
1486
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters, options) {
|
|
1487
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, requestParameters.patchIntakeFormCommand, options).then((request) => request(axios, basePath));
|
|
1488
|
-
},
|
|
1489
|
-
/**
|
|
1490
|
-
*
|
|
1491
|
-
* @summary Create a new intake form.
|
|
1492
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsPostRequest} requestParameters Request parameters.
|
|
1493
|
-
* @param {*} [options] Override http request option.
|
|
1494
|
-
* @throws {RequiredError}
|
|
1495
|
-
*/
|
|
1496
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters, options) {
|
|
1497
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.createIntakeFormCommand, options).then((request) => request(axios, basePath));
|
|
1498
|
-
},
|
|
1499
|
-
/**
|
|
1500
|
-
*
|
|
1501
|
-
* @summary Join a chat session.
|
|
1502
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
|
|
1503
|
-
* @param {*} [options] Override http request option.
|
|
1504
|
-
* @throws {RequiredError}
|
|
1505
|
-
*/
|
|
1506
|
-
apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters, options) {
|
|
1507
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.joinChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
1508
|
-
},
|
|
1509
|
-
/**
|
|
1510
|
-
*
|
|
1511
|
-
* @summary Leave a chat session.
|
|
1512
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
|
|
1513
|
-
* @param {*} [options] Override http request option.
|
|
1514
|
-
* @throws {RequiredError}
|
|
1515
|
-
*/
|
|
1516
|
-
apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters, options) {
|
|
1517
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1518
|
-
},
|
|
1519
|
-
/**
|
|
1520
|
-
*
|
|
1521
|
-
* @summary Send a message in a chat session.
|
|
1522
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessageSendPostRequest} requestParameters Request parameters.
|
|
1523
|
-
* @param {*} [options] Override http request option.
|
|
1524
|
-
* @throws {RequiredError}
|
|
1525
|
-
*/
|
|
1526
|
-
apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters, options) {
|
|
1527
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.file, requestParameters.text, requestParameters.mediaId, requestParameters.platformMessageId, requestParameters.caption, requestParameters.link, requestParameters.messageType, requestParameters.phoneNumber, options).then((request) => request(axios, basePath));
|
|
1528
|
-
},
|
|
1529
|
-
/**
|
|
1530
|
-
*
|
|
1531
|
-
* @summary Get messages from a chat session.
|
|
1532
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
|
|
1533
|
-
* @param {*} [options] Override http request option.
|
|
1534
|
-
* @throws {RequiredError}
|
|
1535
|
-
*/
|
|
1536
|
-
apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
|
|
1537
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1538
|
-
},
|
|
1539
|
-
/**
|
|
1540
|
-
*
|
|
1541
|
-
* @summary Reactivate expired media in a chat message.
|
|
1542
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePutRequest} requestParameters Request parameters.
|
|
1543
|
-
* @param {*} [options] Override http request option.
|
|
1544
|
-
* @throws {RequiredError}
|
|
1545
|
-
*/
|
|
1546
|
-
apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters, options) {
|
|
1547
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.messageId, options).then((request) => request(axios, basePath));
|
|
1548
|
-
},
|
|
1549
|
-
/**
|
|
1550
|
-
*
|
|
1551
|
-
* @summary Update a chat session.
|
|
1552
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
|
|
1553
|
-
* @param {*} [options] Override http request option.
|
|
1554
|
-
* @throws {RequiredError}
|
|
1555
|
-
*/
|
|
1556
|
-
apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters, options) {
|
|
1557
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.putChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
1558
|
-
},
|
|
1559
|
-
/**
|
|
1560
|
-
*
|
|
1561
|
-
* @summary Transfer a chat session agent.
|
|
1562
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
|
|
1563
|
-
* @param {*} [options] Override http request option.
|
|
1564
|
-
* @throws {RequiredError}
|
|
1565
|
-
*/
|
|
1566
|
-
apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
|
|
1567
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(axios, basePath));
|
|
1568
|
-
},
|
|
1569
|
-
/**
|
|
1570
|
-
*
|
|
1571
|
-
* @summary Send whatsapp flow message
|
|
1572
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPostRequest} requestParameters Request parameters.
|
|
1573
|
-
* @param {*} [options] Override http request option.
|
|
1574
|
-
* @throws {RequiredError}
|
|
1575
|
-
*/
|
|
1576
|
-
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters, options) {
|
|
1577
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(axios, basePath));
|
|
1578
|
-
},
|
|
1579
|
-
/**
|
|
1580
|
-
*
|
|
1581
|
-
* @summary Send whatsapp template message
|
|
1582
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPostRequest} requestParameters Request parameters.
|
|
1583
|
-
* @param {*} [options] Override http request option.
|
|
1584
|
-
* @throws {RequiredError}
|
|
1585
|
-
*/
|
|
1586
|
-
apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters, options) {
|
|
1587
|
-
return localVarFp.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendTemplateMessageCommand, options).then((request) => request(axios, basePath));
|
|
1588
|
-
},
|
|
1589
|
-
};
|
|
1590
|
-
};
|
|
1591
|
-
exports.SessionsApiFactory = SessionsApiFactory;
|
|
1592
|
-
/**
|
|
1593
|
-
* SessionsApi - object-oriented interface
|
|
1594
|
-
* @export
|
|
1595
|
-
* @class SessionsApi
|
|
1596
|
-
* @extends {BaseAPI}
|
|
1597
|
-
*/
|
|
1598
|
-
class SessionsApi extends base_1.BaseAPI {
|
|
1599
|
-
/**
|
|
1600
|
-
*
|
|
1601
|
-
* @summary Get all chat sessions.
|
|
1602
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
|
|
1603
|
-
* @param {*} [options] Override http request option.
|
|
1604
|
-
* @throws {RequiredError}
|
|
1605
|
-
* @memberof SessionsApi
|
|
1606
|
-
*/
|
|
1607
|
-
apiV1ChatTenantIdSessionsGet(requestParameters, options) {
|
|
1608
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsGet(requestParameters.tenantId, requestParameters.id, requestParameters.targetHospitalId, requestParameters.targetHospitalName, requestParameters.assigneeIds, requestParameters.chatSessionStatus, requestParameters.title, requestParameters.userName, requestParameters.sortBy, requestParameters.isRead, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1609
|
-
}
|
|
1610
|
-
/**
|
|
1611
|
-
*
|
|
1612
|
-
* @summary Create a chat session.
|
|
1613
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
1614
|
-
* @param {*} [options] Override http request option.
|
|
1615
|
-
* @throws {RequiredError}
|
|
1616
|
-
* @memberof SessionsApi
|
|
1617
|
-
*/
|
|
1618
|
-
apiV1ChatTenantIdSessionsPost(requestParameters, options) {
|
|
1619
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.createChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1620
|
-
}
|
|
1621
|
-
/**
|
|
1622
|
-
*
|
|
1623
|
-
* @summary Check if a chat session read message
|
|
1624
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdCheckPostRequest} requestParameters Request parameters.
|
|
1625
|
-
* @param {*} [options] Override http request option.
|
|
1626
|
-
* @throws {RequiredError}
|
|
1627
|
-
* @memberof SessionsApi
|
|
1628
|
-
*/
|
|
1629
|
-
apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters, options) {
|
|
1630
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1631
|
-
}
|
|
1632
|
-
/**
|
|
1633
|
-
*
|
|
1634
|
-
* @summary Check if a chat session read message
|
|
1635
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdConsultStatusPatchRequest} requestParameters Request parameters.
|
|
1636
|
-
* @param {*} [options] Override http request option.
|
|
1637
|
-
* @throws {RequiredError}
|
|
1638
|
-
* @memberof SessionsApi
|
|
1639
|
-
*/
|
|
1640
|
-
apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(requestParameters, options) {
|
|
1641
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSessionConsultStatusCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1642
|
-
}
|
|
1643
|
-
/**
|
|
1644
|
-
*
|
|
1645
|
-
* @summary Convert a guest to a signed-in user.
|
|
1646
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest} requestParameters Request parameters.
|
|
1647
|
-
* @param {*} [options] Override http request option.
|
|
1648
|
-
* @throws {RequiredError}
|
|
1649
|
-
* @memberof SessionsApi
|
|
1650
|
-
*/
|
|
1651
|
-
apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters, options) {
|
|
1652
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1653
|
-
}
|
|
1654
|
-
/**
|
|
1655
|
-
*
|
|
1656
|
-
* @summary Delete a chat session.
|
|
1657
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
|
|
1658
|
-
* @param {*} [options] Override http request option.
|
|
1659
|
-
* @throws {RequiredError}
|
|
1660
|
-
* @memberof SessionsApi
|
|
1661
|
-
*/
|
|
1662
|
-
apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters, options) {
|
|
1663
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1664
|
-
}
|
|
1665
|
-
/**
|
|
1666
|
-
*
|
|
1667
|
-
* @summary Get chat session by session Id.
|
|
1668
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
|
|
1669
|
-
* @param {*} [options] Override http request option.
|
|
1670
|
-
* @throws {RequiredError}
|
|
1671
|
-
* @memberof SessionsApi
|
|
1672
|
-
*/
|
|
1673
|
-
apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
|
|
1674
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1675
|
-
}
|
|
1676
|
-
/**
|
|
1677
|
-
*
|
|
1678
|
-
* @summary Get intake forms by session id.
|
|
1679
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
|
|
1680
|
-
* @param {*} [options] Override http request option.
|
|
1681
|
-
* @throws {RequiredError}
|
|
1682
|
-
* @memberof SessionsApi
|
|
1683
|
-
*/
|
|
1684
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters, options) {
|
|
1685
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.id, requestParameters.userId, requestParameters.phoneNumber, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1686
|
-
}
|
|
1687
|
-
/**
|
|
1688
|
-
*
|
|
1689
|
-
* @summary Delete intake form by id.
|
|
1690
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
|
|
1691
|
-
* @param {*} [options] Override http request option.
|
|
1692
|
-
* @throws {RequiredError}
|
|
1693
|
-
* @memberof SessionsApi
|
|
1694
|
-
*/
|
|
1695
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters, options) {
|
|
1696
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
|
|
1697
|
-
}
|
|
1698
|
-
/**
|
|
1699
|
-
*
|
|
1700
|
-
* @summary Get intake form by id.
|
|
1701
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
|
|
1702
|
-
* @param {*} [options] Override http request option.
|
|
1703
|
-
* @throws {RequiredError}
|
|
1704
|
-
* @memberof SessionsApi
|
|
1705
|
-
*/
|
|
1706
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters, options) {
|
|
1707
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
|
|
1708
|
-
}
|
|
1709
|
-
/**
|
|
1710
|
-
*
|
|
1711
|
-
* @summary Update intake form by id.
|
|
1712
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
|
|
1713
|
-
* @param {*} [options] Override http request option.
|
|
1714
|
-
* @throws {RequiredError}
|
|
1715
|
-
* @memberof SessionsApi
|
|
1716
|
-
*/
|
|
1717
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters, options) {
|
|
1718
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, requestParameters.patchIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1719
|
-
}
|
|
1720
|
-
/**
|
|
1721
|
-
*
|
|
1722
|
-
* @summary Create a new intake form.
|
|
1723
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsPostRequest} requestParameters Request parameters.
|
|
1724
|
-
* @param {*} [options] Override http request option.
|
|
1725
|
-
* @throws {RequiredError}
|
|
1726
|
-
* @memberof SessionsApi
|
|
1727
|
-
*/
|
|
1728
|
-
apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters, options) {
|
|
1729
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.createIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1730
|
-
}
|
|
1731
|
-
/**
|
|
1732
|
-
*
|
|
1733
|
-
* @summary Join a chat session.
|
|
1734
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
|
|
1735
|
-
* @param {*} [options] Override http request option.
|
|
1736
|
-
* @throws {RequiredError}
|
|
1737
|
-
* @memberof SessionsApi
|
|
1738
|
-
*/
|
|
1739
|
-
apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters, options) {
|
|
1740
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.joinChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1741
|
-
}
|
|
1742
|
-
/**
|
|
1743
|
-
*
|
|
1744
|
-
* @summary Leave a chat session.
|
|
1745
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
|
|
1746
|
-
* @param {*} [options] Override http request option.
|
|
1747
|
-
* @throws {RequiredError}
|
|
1748
|
-
* @memberof SessionsApi
|
|
1749
|
-
*/
|
|
1750
|
-
apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters, options) {
|
|
1751
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1752
|
-
}
|
|
1753
|
-
/**
|
|
1754
|
-
*
|
|
1755
|
-
* @summary Send a message in a chat session.
|
|
1756
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessageSendPostRequest} requestParameters Request parameters.
|
|
1757
|
-
* @param {*} [options] Override http request option.
|
|
1758
|
-
* @throws {RequiredError}
|
|
1759
|
-
* @memberof SessionsApi
|
|
1760
|
-
*/
|
|
1761
|
-
apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters, options) {
|
|
1762
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.file, requestParameters.text, requestParameters.mediaId, requestParameters.platformMessageId, requestParameters.caption, requestParameters.link, requestParameters.messageType, requestParameters.phoneNumber, options).then((request) => request(this.axios, this.basePath));
|
|
1763
|
-
}
|
|
1764
|
-
/**
|
|
1765
|
-
*
|
|
1766
|
-
* @summary Get messages from a chat session.
|
|
1767
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
|
|
1768
|
-
* @param {*} [options] Override http request option.
|
|
1769
|
-
* @throws {RequiredError}
|
|
1770
|
-
* @memberof SessionsApi
|
|
1771
|
-
*/
|
|
1772
|
-
apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
|
|
1773
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1774
|
-
}
|
|
1775
|
-
/**
|
|
1776
|
-
*
|
|
1777
|
-
* @summary Reactivate expired media in a chat message.
|
|
1778
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePutRequest} requestParameters Request parameters.
|
|
1779
|
-
* @param {*} [options] Override http request option.
|
|
1780
|
-
* @throws {RequiredError}
|
|
1781
|
-
* @memberof SessionsApi
|
|
1782
|
-
*/
|
|
1783
|
-
apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters, options) {
|
|
1784
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.messageId, options).then((request) => request(this.axios, this.basePath));
|
|
1785
|
-
}
|
|
1786
|
-
/**
|
|
1787
|
-
*
|
|
1788
|
-
* @summary Update a chat session.
|
|
1789
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
|
|
1790
|
-
* @param {*} [options] Override http request option.
|
|
1791
|
-
* @throws {RequiredError}
|
|
1792
|
-
* @memberof SessionsApi
|
|
1793
|
-
*/
|
|
1794
|
-
apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters, options) {
|
|
1795
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.putChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1796
|
-
}
|
|
1797
|
-
/**
|
|
1798
|
-
*
|
|
1799
|
-
* @summary Transfer a chat session agent.
|
|
1800
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
|
|
1801
|
-
* @param {*} [options] Override http request option.
|
|
1802
|
-
* @throws {RequiredError}
|
|
1803
|
-
* @memberof SessionsApi
|
|
1804
|
-
*/
|
|
1805
|
-
apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
|
|
1806
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1807
|
-
}
|
|
1808
|
-
/**
|
|
1809
|
-
*
|
|
1810
|
-
* @summary Send whatsapp flow message
|
|
1811
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPostRequest} requestParameters Request parameters.
|
|
1812
|
-
* @param {*} [options] Override http request option.
|
|
1813
|
-
* @throws {RequiredError}
|
|
1814
|
-
* @memberof SessionsApi
|
|
1815
|
-
*/
|
|
1816
|
-
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters, options) {
|
|
1817
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1818
|
-
}
|
|
1819
|
-
/**
|
|
1820
|
-
*
|
|
1821
|
-
* @summary Send whatsapp template message
|
|
1822
|
-
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPostRequest} requestParameters Request parameters.
|
|
1823
|
-
* @param {*} [options] Override http request option.
|
|
1824
|
-
* @throws {RequiredError}
|
|
1825
|
-
* @memberof SessionsApi
|
|
1826
|
-
*/
|
|
1827
|
-
apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters, options) {
|
|
1828
|
-
return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendTemplateMessageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
|
-
exports.SessionsApi = SessionsApi;
|
|
1832
|
-
//# sourceMappingURL=sessions-api.js.map
|