ch-chat-api-typescript-axios 1.0.3
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/README.md +25 -0
- package/dist/api/chat-api.d.ts +654 -0
- package/dist/api/chat-api.js +835 -0
- package/dist/api/chat-api.js.map +1 -0
- package/dist/api.d.ts +12 -0
- package/dist/api.js +31 -0
- package/dist/api.js.map +1 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +69 -0
- package/dist/base.js.map +1 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +162 -0
- package/dist/common.js.map +1 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/configuration.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/models/auth-roles.d.ts +21 -0
- package/dist/models/auth-roles.js +26 -0
- package/dist/models/auth-roles.js.map +1 -0
- package/dist/models/chat-message-model.d.ts +74 -0
- package/dist/models/chat-message-model.js +16 -0
- package/dist/models/chat-message-model.js.map +1 -0
- package/dist/models/chat-messages-model.d.ts +32 -0
- package/dist/models/chat-messages-model.js +16 -0
- package/dist/models/chat-messages-model.js.map +1 -0
- package/dist/models/chat-participant-model.d.ts +74 -0
- package/dist/models/chat-participant-model.js +16 -0
- package/dist/models/chat-participant-model.js.map +1 -0
- package/dist/models/chat-send-message-command.d.ts +31 -0
- package/dist/models/chat-send-message-command.js +16 -0
- package/dist/models/chat-send-message-command.js.map +1 -0
- package/dist/models/chat-session-model.d.ts +90 -0
- package/dist/models/chat-session-model.js +16 -0
- package/dist/models/chat-session-model.js.map +1 -0
- package/dist/models/chat-sessions-model.d.ts +32 -0
- package/dist/models/chat-sessions-model.js +16 -0
- package/dist/models/chat-sessions-model.js.map +1 -0
- package/dist/models/create-chat-session-command.d.ts +37 -0
- package/dist/models/create-chat-session-command.js +16 -0
- package/dist/models/create-chat-session-command.js.map +1 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +32 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/join-chat-session-command.d.ts +31 -0
- package/dist/models/join-chat-session-command.js +16 -0
- package/dist/models/join-chat-session-command.js.map +1 -0
- package/dist/models/message-types.d.ts +20 -0
- package/dist/models/message-types.js +25 -0
- package/dist/models/message-types.js.map +1 -0
- package/dist/models/paged-list-meta-data.d.ts +78 -0
- package/dist/models/paged-list-meta-data.js +16 -0
- package/dist/models/paged-list-meta-data.js.map +1 -0
- package/dist/models/platform-types.d.ts +22 -0
- package/dist/models/platform-types.js +27 -0
- package/dist/models/platform-types.js.map +1 -0
- package/dist/models/problem-details.d.ts +49 -0
- package/dist/models/problem-details.js +16 -0
- package/dist/models/problem-details.js.map +1 -0
- package/dist/models/put-chat-session-command.d.ts +30 -0
- package/dist/models/put-chat-session-command.js +16 -0
- package/dist/models/put-chat-session-command.js.map +1 -0
- package/dist/models/transfer-manager-command.d.ts +36 -0
- package/dist/models/transfer-manager-command.js +16 -0
- package/dist/models/transfer-manager-command.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,835 @@
|
|
|
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.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = 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
|
+
* ChatApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const ChatApiAxiosParamCreator = function (configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {string} tenantId
|
|
44
|
+
* @param {string} [id]
|
|
45
|
+
* @param {string} [assigneeId]
|
|
46
|
+
* @param {string} [title]
|
|
47
|
+
* @param {string} [userName]
|
|
48
|
+
* @param {string} [userEmail]
|
|
49
|
+
* @param {number} [page]
|
|
50
|
+
* @param {number} [limit]
|
|
51
|
+
* @param {Date} [lastRetrieved]
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
apiV1ChatTenantIdSessionsGet: (tenantId_1, id_1, assigneeId_1, title_1, userName_1, userEmail_1, page_1, limit_1, lastRetrieved_1, ...args_1) => __awaiter(this, [tenantId_1, id_1, assigneeId_1, title_1, userName_1, userEmail_1, page_1, limit_1, lastRetrieved_1, ...args_1], void 0, function* (tenantId, id, assigneeId, title, userName, userEmail, page, limit, lastRetrieved, options = {}) {
|
|
56
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
57
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsGet', 'tenantId', tenantId);
|
|
58
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions`
|
|
59
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
|
|
60
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
62
|
+
let baseOptions;
|
|
63
|
+
if (configuration) {
|
|
64
|
+
baseOptions = configuration.baseOptions;
|
|
65
|
+
}
|
|
66
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
67
|
+
const localVarHeaderParameter = {};
|
|
68
|
+
const localVarQueryParameter = {};
|
|
69
|
+
// authentication oauth2 required
|
|
70
|
+
// oauth required
|
|
71
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
72
|
+
if (id !== undefined) {
|
|
73
|
+
localVarQueryParameter['Id'] = id;
|
|
74
|
+
}
|
|
75
|
+
if (assigneeId !== undefined) {
|
|
76
|
+
localVarQueryParameter['AssigneeId'] = assigneeId;
|
|
77
|
+
}
|
|
78
|
+
if (title !== undefined) {
|
|
79
|
+
localVarQueryParameter['Title'] = title;
|
|
80
|
+
}
|
|
81
|
+
if (userName !== undefined) {
|
|
82
|
+
localVarQueryParameter['UserName'] = userName;
|
|
83
|
+
}
|
|
84
|
+
if (userEmail !== undefined) {
|
|
85
|
+
localVarQueryParameter['UserEmail'] = userEmail;
|
|
86
|
+
}
|
|
87
|
+
if (page !== undefined) {
|
|
88
|
+
localVarQueryParameter['page'] = page;
|
|
89
|
+
}
|
|
90
|
+
if (limit !== undefined) {
|
|
91
|
+
localVarQueryParameter['limit'] = limit;
|
|
92
|
+
}
|
|
93
|
+
if (lastRetrieved !== undefined) {
|
|
94
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
95
|
+
lastRetrieved.toISOString() :
|
|
96
|
+
lastRetrieved;
|
|
97
|
+
}
|
|
98
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
99
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
100
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
101
|
+
return {
|
|
102
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
103
|
+
options: localVarRequestOptions,
|
|
104
|
+
};
|
|
105
|
+
}),
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @param {string} tenantId
|
|
109
|
+
* @param {CreateChatSessionCommand} [createChatSessionCommand]
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
apiV1ChatTenantIdSessionsPost: (tenantId_1, createChatSessionCommand_1, ...args_1) => __awaiter(this, [tenantId_1, createChatSessionCommand_1, ...args_1], void 0, function* (tenantId, createChatSessionCommand, options = {}) {
|
|
114
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsPost', 'tenantId', tenantId);
|
|
116
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions`
|
|
117
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
|
|
118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
119
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
|
+
let baseOptions;
|
|
121
|
+
if (configuration) {
|
|
122
|
+
baseOptions = configuration.baseOptions;
|
|
123
|
+
}
|
|
124
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
125
|
+
const localVarHeaderParameter = {};
|
|
126
|
+
const localVarQueryParameter = {};
|
|
127
|
+
// authentication oauth2 required
|
|
128
|
+
// oauth required
|
|
129
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
130
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createChatSessionCommand, localVarRequestOptions, configuration);
|
|
135
|
+
return {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
};
|
|
139
|
+
}),
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @param {string} tenantId
|
|
143
|
+
* @param {string} sessionId
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
apiV1ChatTenantIdSessionsSessionIdDelete: (tenantId_1, sessionId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, ...args_1], void 0, function* (tenantId, sessionId, options = {}) {
|
|
148
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
149
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdDelete', 'tenantId', tenantId);
|
|
150
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
151
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdDelete', 'sessionId', sessionId);
|
|
152
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`
|
|
153
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
154
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
157
|
+
let baseOptions;
|
|
158
|
+
if (configuration) {
|
|
159
|
+
baseOptions = configuration.baseOptions;
|
|
160
|
+
}
|
|
161
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
162
|
+
const localVarHeaderParameter = {};
|
|
163
|
+
const localVarQueryParameter = {};
|
|
164
|
+
// authentication oauth2 required
|
|
165
|
+
// oauth required
|
|
166
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
167
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
170
|
+
return {
|
|
171
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
172
|
+
options: localVarRequestOptions,
|
|
173
|
+
};
|
|
174
|
+
}),
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @param {string} tenantId
|
|
178
|
+
* @param {string} sessionId
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
apiV1ChatTenantIdSessionsSessionIdGet: (tenantId_1, sessionId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, ...args_1], void 0, function* (tenantId, sessionId, options = {}) {
|
|
183
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
184
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdGet', 'tenantId', tenantId);
|
|
185
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
186
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdGet', 'sessionId', sessionId);
|
|
187
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`
|
|
188
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
189
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
192
|
+
let baseOptions;
|
|
193
|
+
if (configuration) {
|
|
194
|
+
baseOptions = configuration.baseOptions;
|
|
195
|
+
}
|
|
196
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
197
|
+
const localVarHeaderParameter = {};
|
|
198
|
+
const localVarQueryParameter = {};
|
|
199
|
+
// authentication oauth2 required
|
|
200
|
+
// oauth required
|
|
201
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
202
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
203
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
204
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
205
|
+
return {
|
|
206
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
207
|
+
options: localVarRequestOptions,
|
|
208
|
+
};
|
|
209
|
+
}),
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @param {string} tenantId
|
|
213
|
+
* @param {string} sessionId
|
|
214
|
+
* @param {JoinChatSessionCommand} [joinChatSessionCommand]
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
*/
|
|
218
|
+
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 = {}) {
|
|
219
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
220
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdJoinPost', 'tenantId', tenantId);
|
|
221
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
222
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdJoinPost', 'sessionId', sessionId);
|
|
223
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/join`
|
|
224
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
225
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
226
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
227
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
228
|
+
let baseOptions;
|
|
229
|
+
if (configuration) {
|
|
230
|
+
baseOptions = configuration.baseOptions;
|
|
231
|
+
}
|
|
232
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
233
|
+
const localVarHeaderParameter = {};
|
|
234
|
+
const localVarQueryParameter = {};
|
|
235
|
+
// authentication oauth2 required
|
|
236
|
+
// oauth required
|
|
237
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
238
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
239
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
242
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinChatSessionCommand, localVarRequestOptions, configuration);
|
|
243
|
+
return {
|
|
244
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
245
|
+
options: localVarRequestOptions,
|
|
246
|
+
};
|
|
247
|
+
}),
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @param {string} tenantId
|
|
251
|
+
* @param {string} sessionId
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
apiV1ChatTenantIdSessionsSessionIdLeaveDelete: (tenantId_1, sessionId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, ...args_1], void 0, function* (tenantId, sessionId, options = {}) {
|
|
256
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
257
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdLeaveDelete', 'tenantId', tenantId);
|
|
258
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
259
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdLeaveDelete', 'sessionId', sessionId);
|
|
260
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/leave`
|
|
261
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
262
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
263
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
264
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
265
|
+
let baseOptions;
|
|
266
|
+
if (configuration) {
|
|
267
|
+
baseOptions = configuration.baseOptions;
|
|
268
|
+
}
|
|
269
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
270
|
+
const localVarHeaderParameter = {};
|
|
271
|
+
const localVarQueryParameter = {};
|
|
272
|
+
// authentication oauth2 required
|
|
273
|
+
// oauth required
|
|
274
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
275
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
276
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
277
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
278
|
+
return {
|
|
279
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
280
|
+
options: localVarRequestOptions,
|
|
281
|
+
};
|
|
282
|
+
}),
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @param {string} tenantId
|
|
286
|
+
* @param {string} sessionId
|
|
287
|
+
* @param {number} [skip]
|
|
288
|
+
* @param {number} [take]
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesGet: (tenantId_1, sessionId_1, skip_1, take_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, skip_1, take_1, ...args_1], void 0, function* (tenantId, sessionId, skip, take, options = {}) {
|
|
293
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
294
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesGet', 'tenantId', tenantId);
|
|
295
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
296
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesGet', 'sessionId', sessionId);
|
|
297
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/messages`
|
|
298
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
299
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
301
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
302
|
+
let baseOptions;
|
|
303
|
+
if (configuration) {
|
|
304
|
+
baseOptions = configuration.baseOptions;
|
|
305
|
+
}
|
|
306
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
307
|
+
const localVarHeaderParameter = {};
|
|
308
|
+
const localVarQueryParameter = {};
|
|
309
|
+
// authentication oauth2 required
|
|
310
|
+
// oauth required
|
|
311
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
312
|
+
if (skip !== undefined) {
|
|
313
|
+
localVarQueryParameter['skip'] = skip;
|
|
314
|
+
}
|
|
315
|
+
if (take !== undefined) {
|
|
316
|
+
localVarQueryParameter['take'] = take;
|
|
317
|
+
}
|
|
318
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
321
|
+
return {
|
|
322
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
323
|
+
options: localVarRequestOptions,
|
|
324
|
+
};
|
|
325
|
+
}),
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @param {string} tenantId
|
|
329
|
+
* @param {string} sessionId
|
|
330
|
+
* @param {ChatSendMessageCommand} [chatSendMessageCommand]
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesPost: (tenantId_1, sessionId_1, chatSendMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, chatSendMessageCommand_1, ...args_1], void 0, function* (tenantId, sessionId, chatSendMessageCommand, options = {}) {
|
|
335
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
336
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesPost', 'tenantId', tenantId);
|
|
337
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
338
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesPost', 'sessionId', sessionId);
|
|
339
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/messages`
|
|
340
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
341
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
342
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
343
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
344
|
+
let baseOptions;
|
|
345
|
+
if (configuration) {
|
|
346
|
+
baseOptions = configuration.baseOptions;
|
|
347
|
+
}
|
|
348
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
349
|
+
const localVarHeaderParameter = {};
|
|
350
|
+
const localVarQueryParameter = {};
|
|
351
|
+
// authentication oauth2 required
|
|
352
|
+
// oauth required
|
|
353
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
354
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
355
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
358
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(chatSendMessageCommand, localVarRequestOptions, configuration);
|
|
359
|
+
return {
|
|
360
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
361
|
+
options: localVarRequestOptions,
|
|
362
|
+
};
|
|
363
|
+
}),
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @param {string} tenantId
|
|
367
|
+
* @param {string} sessionId
|
|
368
|
+
* @param {PutChatSessionCommand} [putChatSessionCommand]
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
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 = {}) {
|
|
373
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
374
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdPatch', 'tenantId', tenantId);
|
|
375
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
376
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdPatch', 'sessionId', sessionId);
|
|
377
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`
|
|
378
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
379
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
381
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
382
|
+
let baseOptions;
|
|
383
|
+
if (configuration) {
|
|
384
|
+
baseOptions = configuration.baseOptions;
|
|
385
|
+
}
|
|
386
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
387
|
+
const localVarHeaderParameter = {};
|
|
388
|
+
const localVarQueryParameter = {};
|
|
389
|
+
// authentication oauth2 required
|
|
390
|
+
// oauth required
|
|
391
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
392
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
393
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
395
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
396
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putChatSessionCommand, localVarRequestOptions, configuration);
|
|
397
|
+
return {
|
|
398
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
399
|
+
options: localVarRequestOptions,
|
|
400
|
+
};
|
|
401
|
+
}),
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @param {string} tenantId
|
|
405
|
+
* @param {string} sessionId
|
|
406
|
+
* @param {TransferManagerCommand} [transferManagerCommand]
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
*/
|
|
410
|
+
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 = {}) {
|
|
411
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
412
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdTransferPut', 'tenantId', tenantId);
|
|
413
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
414
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdTransferPut', 'sessionId', sessionId);
|
|
415
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/transfer`
|
|
416
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
417
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
419
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
420
|
+
let baseOptions;
|
|
421
|
+
if (configuration) {
|
|
422
|
+
baseOptions = configuration.baseOptions;
|
|
423
|
+
}
|
|
424
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
425
|
+
const localVarHeaderParameter = {};
|
|
426
|
+
const localVarQueryParameter = {};
|
|
427
|
+
// authentication oauth2 required
|
|
428
|
+
// oauth required
|
|
429
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
430
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
431
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
432
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
433
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
434
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transferManagerCommand, localVarRequestOptions, configuration);
|
|
435
|
+
return {
|
|
436
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
437
|
+
options: localVarRequestOptions,
|
|
438
|
+
};
|
|
439
|
+
}),
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
exports.ChatApiAxiosParamCreator = ChatApiAxiosParamCreator;
|
|
443
|
+
/**
|
|
444
|
+
* ChatApi - functional programming interface
|
|
445
|
+
* @export
|
|
446
|
+
*/
|
|
447
|
+
const ChatApiFp = function (configuration) {
|
|
448
|
+
const localVarAxiosParamCreator = (0, exports.ChatApiAxiosParamCreator)(configuration);
|
|
449
|
+
return {
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @param {string} tenantId
|
|
453
|
+
* @param {string} [id]
|
|
454
|
+
* @param {string} [assigneeId]
|
|
455
|
+
* @param {string} [title]
|
|
456
|
+
* @param {string} [userName]
|
|
457
|
+
* @param {string} [userEmail]
|
|
458
|
+
* @param {number} [page]
|
|
459
|
+
* @param {number} [limit]
|
|
460
|
+
* @param {Date} [lastRetrieved]
|
|
461
|
+
* @param {*} [options] Override http request option.
|
|
462
|
+
* @throws {RequiredError}
|
|
463
|
+
*/
|
|
464
|
+
apiV1ChatTenantIdSessionsGet(tenantId, id, assigneeId, title, userName, userEmail, page, limit, lastRetrieved, options) {
|
|
465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
466
|
+
var _a, _b, _c;
|
|
467
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsGet(tenantId, id, assigneeId, title, userName, userEmail, page, limit, lastRetrieved, options);
|
|
468
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
469
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
470
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
471
|
+
});
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @param {string} tenantId
|
|
476
|
+
* @param {CreateChatSessionCommand} [createChatSessionCommand]
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
apiV1ChatTenantIdSessionsPost(tenantId, createChatSessionCommand, options) {
|
|
481
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
482
|
+
var _a, _b, _c;
|
|
483
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsPost(tenantId, createChatSessionCommand, options);
|
|
484
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
485
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
486
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
487
|
+
});
|
|
488
|
+
},
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @param {string} tenantId
|
|
492
|
+
* @param {string} sessionId
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
apiV1ChatTenantIdSessionsSessionIdDelete(tenantId, sessionId, options) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
498
|
+
var _a, _b, _c;
|
|
499
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdDelete(tenantId, sessionId, options);
|
|
500
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
501
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
502
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
503
|
+
});
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @param {string} tenantId
|
|
508
|
+
* @param {string} sessionId
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
apiV1ChatTenantIdSessionsSessionIdGet(tenantId, sessionId, options) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
var _a, _b, _c;
|
|
515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdGet(tenantId, sessionId, options);
|
|
516
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
517
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
518
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
519
|
+
});
|
|
520
|
+
},
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @param {string} tenantId
|
|
524
|
+
* @param {string} sessionId
|
|
525
|
+
* @param {JoinChatSessionCommand} [joinChatSessionCommand]
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
apiV1ChatTenantIdSessionsSessionIdJoinPost(tenantId, sessionId, joinChatSessionCommand, options) {
|
|
530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
531
|
+
var _a, _b, _c;
|
|
532
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdJoinPost(tenantId, sessionId, joinChatSessionCommand, options);
|
|
533
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
534
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdJoinPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
535
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
536
|
+
});
|
|
537
|
+
},
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @param {string} tenantId
|
|
541
|
+
* @param {string} sessionId
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId, sessionId, options) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
547
|
+
var _a, _b, _c;
|
|
548
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId, sessionId, options);
|
|
549
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
550
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdLeaveDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
551
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
552
|
+
});
|
|
553
|
+
},
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @param {string} tenantId
|
|
557
|
+
* @param {string} sessionId
|
|
558
|
+
* @param {number} [skip]
|
|
559
|
+
* @param {number} [take]
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
*/
|
|
563
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, skip, take, options) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
var _a, _b, _c;
|
|
566
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, skip, take, options);
|
|
567
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
568
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdMessagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
569
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
570
|
+
});
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @param {string} tenantId
|
|
575
|
+
* @param {string} sessionId
|
|
576
|
+
* @param {ChatSendMessageCommand} [chatSendMessageCommand]
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesPost(tenantId, sessionId, chatSendMessageCommand, options) {
|
|
581
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
582
|
+
var _a, _b, _c;
|
|
583
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesPost(tenantId, sessionId, chatSendMessageCommand, options);
|
|
584
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
585
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdMessagesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
586
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
587
|
+
});
|
|
588
|
+
},
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @param {string} tenantId
|
|
592
|
+
* @param {string} sessionId
|
|
593
|
+
* @param {PutChatSessionCommand} [putChatSessionCommand]
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
*/
|
|
597
|
+
apiV1ChatTenantIdSessionsSessionIdPatch(tenantId, sessionId, putChatSessionCommand, options) {
|
|
598
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
599
|
+
var _a, _b, _c;
|
|
600
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdPatch(tenantId, sessionId, putChatSessionCommand, options);
|
|
601
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
602
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
603
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
604
|
+
});
|
|
605
|
+
},
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @param {string} tenantId
|
|
609
|
+
* @param {string} sessionId
|
|
610
|
+
* @param {TransferManagerCommand} [transferManagerCommand]
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
*/
|
|
614
|
+
apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId, sessionId, transferManagerCommand, options) {
|
|
615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
616
|
+
var _a, _b, _c;
|
|
617
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId, sessionId, transferManagerCommand, options);
|
|
618
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
619
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdTransferPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
620
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
621
|
+
});
|
|
622
|
+
},
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
exports.ChatApiFp = ChatApiFp;
|
|
626
|
+
/**
|
|
627
|
+
* ChatApi - factory interface
|
|
628
|
+
* @export
|
|
629
|
+
*/
|
|
630
|
+
const ChatApiFactory = function (configuration, basePath, axios) {
|
|
631
|
+
const localVarFp = (0, exports.ChatApiFp)(configuration);
|
|
632
|
+
return {
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
*/
|
|
639
|
+
apiV1ChatTenantIdSessionsGet(requestParameters, options) {
|
|
640
|
+
return localVarFp.apiV1ChatTenantIdSessionsGet(requestParameters.tenantId, requestParameters.id, requestParameters.assigneeId, requestParameters.title, requestParameters.userName, requestParameters.userEmail, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
641
|
+
},
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
645
|
+
* @param {*} [options] Override http request option.
|
|
646
|
+
* @throws {RequiredError}
|
|
647
|
+
*/
|
|
648
|
+
apiV1ChatTenantIdSessionsPost(requestParameters, options) {
|
|
649
|
+
return localVarFp.apiV1ChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.createChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
650
|
+
},
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
*/
|
|
657
|
+
apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters, options) {
|
|
658
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
659
|
+
},
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
*/
|
|
666
|
+
apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
|
|
667
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
668
|
+
},
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
*/
|
|
675
|
+
apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters, options) {
|
|
676
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.joinChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
677
|
+
},
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters, options) {
|
|
685
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
686
|
+
},
|
|
687
|
+
/**
|
|
688
|
+
*
|
|
689
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
|
|
690
|
+
* @param {*} [options] Override http request option.
|
|
691
|
+
* @throws {RequiredError}
|
|
692
|
+
*/
|
|
693
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
|
|
694
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.skip, requestParameters.take, options).then((request) => request(axios, basePath));
|
|
695
|
+
},
|
|
696
|
+
/**
|
|
697
|
+
*
|
|
698
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
*/
|
|
702
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters, options) {
|
|
703
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendMessageCommand, options).then((request) => request(axios, basePath));
|
|
704
|
+
},
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters, options) {
|
|
712
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.putChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
713
|
+
},
|
|
714
|
+
/**
|
|
715
|
+
*
|
|
716
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
|
|
717
|
+
* @param {*} [options] Override http request option.
|
|
718
|
+
* @throws {RequiredError}
|
|
719
|
+
*/
|
|
720
|
+
apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
|
|
721
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(axios, basePath));
|
|
722
|
+
},
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
exports.ChatApiFactory = ChatApiFactory;
|
|
726
|
+
/**
|
|
727
|
+
* ChatApi - object-oriented interface
|
|
728
|
+
* @export
|
|
729
|
+
* @class ChatApi
|
|
730
|
+
* @extends {BaseAPI}
|
|
731
|
+
*/
|
|
732
|
+
class ChatApi extends base_1.BaseAPI {
|
|
733
|
+
/**
|
|
734
|
+
*
|
|
735
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
|
|
736
|
+
* @param {*} [options] Override http request option.
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
* @memberof ChatApi
|
|
739
|
+
*/
|
|
740
|
+
apiV1ChatTenantIdSessionsGet(requestParameters, options) {
|
|
741
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsGet(requestParameters.tenantId, requestParameters.id, requestParameters.assigneeId, requestParameters.title, requestParameters.userName, requestParameters.userEmail, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
* @memberof ChatApi
|
|
749
|
+
*/
|
|
750
|
+
apiV1ChatTenantIdSessionsPost(requestParameters, options) {
|
|
751
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.createChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
|
|
756
|
+
* @param {*} [options] Override http request option.
|
|
757
|
+
* @throws {RequiredError}
|
|
758
|
+
* @memberof ChatApi
|
|
759
|
+
*/
|
|
760
|
+
apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters, options) {
|
|
761
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
* @memberof ChatApi
|
|
769
|
+
*/
|
|
770
|
+
apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
|
|
771
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
* @memberof ChatApi
|
|
779
|
+
*/
|
|
780
|
+
apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters, options) {
|
|
781
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.joinChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
* @memberof ChatApi
|
|
789
|
+
*/
|
|
790
|
+
apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters, options) {
|
|
791
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
*
|
|
795
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
* @memberof ChatApi
|
|
799
|
+
*/
|
|
800
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
|
|
801
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.skip, requestParameters.take, options).then((request) => request(this.axios, this.basePath));
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
* @memberof ChatApi
|
|
809
|
+
*/
|
|
810
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters, options) {
|
|
811
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendMessageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
*
|
|
815
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
* @memberof ChatApi
|
|
819
|
+
*/
|
|
820
|
+
apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters, options) {
|
|
821
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.putChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
*
|
|
825
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
|
|
826
|
+
* @param {*} [options] Override http request option.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
* @memberof ChatApi
|
|
829
|
+
*/
|
|
830
|
+
apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
|
|
831
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(this.axios, this.basePath));
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
exports.ChatApi = ChatApi;
|
|
835
|
+
//# sourceMappingURL=chat-api.js.map
|