ch-admin-api-client-typescript 5.73.4 → 5.73.15
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/lib/api/hospitals-api.d.ts +4 -4
- package/lib/api/hospitals-api.js +4 -4
- package/lib/api.d.ts +0 -2
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +0 -2
- package/lib/models/index.d.ts +0 -19
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +0 -19
- package/package.json +1 -1
- package/lib/api/chat-users-api.d.ts +0 -423
- package/lib/api/chat-users-api.d.ts.map +0 -1
- package/lib/api/chat-users-api.js +0 -804
- package/lib/api/group-channels-api.d.ts +0 -172
- package/lib/api/group-channels-api.d.ts.map +0 -1
- package/lib/api/group-channels-api.js +0 -342
- package/lib/models/admin-message-model.d.ts +0 -79
- package/lib/models/admin-message-model.d.ts.map +0 -1
- package/lib/models/admin-message-model.js +0 -15
- package/lib/models/chat-user-model.d.ts +0 -73
- package/lib/models/chat-user-model.d.ts.map +0 -1
- package/lib/models/chat-user-model.js +0 -15
- package/lib/models/chat-users-model.d.ts +0 -32
- package/lib/models/chat-users-model.d.ts.map +0 -1
- package/lib/models/chat-users-model.js +0 -15
- package/lib/models/create-chat-user-command.d.ts +0 -55
- package/lib/models/create-chat-user-command.d.ts.map +0 -1
- package/lib/models/create-chat-user-command.js +0 -15
- package/lib/models/group-channel-list.d.ts +0 -38
- package/lib/models/group-channel-list.d.ts.map +0 -1
- package/lib/models/group-channel-list.js +0 -15
- package/lib/models/group-channel.d.ts +0 -149
- package/lib/models/group-channel.d.ts.map +0 -1
- package/lib/models/group-channel.js +0 -15
- package/lib/models/invite-send-bird-group-channel-command.d.ts +0 -25
- package/lib/models/invite-send-bird-group-channel-command.d.ts.map +0 -1
- package/lib/models/invite-send-bird-group-channel-command.js +0 -15
- package/lib/models/leaved-group-channels-model.d.ts +0 -37
- package/lib/models/leaved-group-channels-model.d.ts.map +0 -1
- package/lib/models/leaved-group-channels-model.js +0 -15
- package/lib/models/mention-type.d.ts +0 -22
- package/lib/models/mention-type.d.ts.map +0 -1
- package/lib/models/mention-type.js +0 -25
- package/lib/models/message-type.d.ts +0 -23
- package/lib/models/message-type.d.ts.map +0 -1
- package/lib/models/message-type.js +0 -26
- package/lib/models/metadata.d.ts +0 -37
- package/lib/models/metadata.d.ts.map +0 -1
- package/lib/models/metadata.js +0 -15
- package/lib/models/model-file.d.ts +0 -49
- package/lib/models/model-file.d.ts.map +0 -1
- package/lib/models/model-file.js +0 -15
- package/lib/models/send-bird-group-channel-member.d.ts +0 -80
- package/lib/models/send-bird-group-channel-member.d.ts.map +0 -1
- package/lib/models/send-bird-group-channel-member.js +0 -15
- package/lib/models/send-bird-group-channel-model.d.ts +0 -142
- package/lib/models/send-bird-group-channel-model.d.ts.map +0 -1
- package/lib/models/send-bird-group-channel-model.js +0 -15
- package/lib/models/send-bird-group-channelr-operator.d.ts +0 -37
- package/lib/models/send-bird-group-channelr-operator.d.ts.map +0 -1
- package/lib/models/send-bird-group-channelr-operator.js +0 -15
- package/lib/models/session-token.d.ts +0 -31
- package/lib/models/session-token.d.ts.map +0 -1
- package/lib/models/session-token.js +0 -15
- package/lib/models/text-message.d.ts +0 -114
- package/lib/models/text-message.d.ts.map +0 -1
- package/lib/models/text-message.js +0 -15
- package/lib/models/update-chat-user-command.d.ts +0 -43
- package/lib/models/update-chat-user-command.d.ts.map +0 -1
- package/lib/models/update-chat-user-command.js +0 -15
- package/lib/models/user.d.ts +0 -100
- package/lib/models/user.d.ts.map +0 -1
- package/lib/models/user.js +0 -15
|
@@ -1,804 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* CloudHospital Admin Api
|
|
6
|
-
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1
|
|
9
|
-
* Contact: developer@icloudhospital.com
|
|
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 __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
|
-
};
|
|
89
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
-
exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = void 0;
|
|
91
|
-
var axios_1 = __importDefault(require("axios"));
|
|
92
|
-
// Some imports not used depending on template conditions
|
|
93
|
-
// @ts-ignore
|
|
94
|
-
var common_1 = require("../common");
|
|
95
|
-
// @ts-ignore
|
|
96
|
-
var base_1 = require("../base");
|
|
97
|
-
/**
|
|
98
|
-
* ChatUsersApi - axios parameter creator
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
102
|
-
var _this = this;
|
|
103
|
-
return {
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @summary (Auth policies: RequireDefaultAdminAppRole)
|
|
107
|
-
* @param {*} [options] Override http request option.
|
|
108
|
-
* @throws {RequiredError}
|
|
109
|
-
*/
|
|
110
|
-
apiV1ChatusersCurrentGet: function () {
|
|
111
|
-
var args_1 = [];
|
|
112
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
113
|
-
args_1[_i] = arguments[_i];
|
|
114
|
-
}
|
|
115
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
116
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
-
if (options === void 0) { options = {}; }
|
|
118
|
-
return __generator(this, function (_a) {
|
|
119
|
-
switch (_a.label) {
|
|
120
|
-
case 0:
|
|
121
|
-
localVarPath = "/api/v1/chatusers/current";
|
|
122
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
|
-
if (configuration) {
|
|
124
|
-
baseOptions = configuration.baseOptions;
|
|
125
|
-
}
|
|
126
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
127
|
-
localVarHeaderParameter = {};
|
|
128
|
-
localVarQueryParameter = {};
|
|
129
|
-
// authentication oauth2 required
|
|
130
|
-
// oauth required
|
|
131
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
132
|
-
case 1:
|
|
133
|
-
// authentication oauth2 required
|
|
134
|
-
// oauth required
|
|
135
|
-
_a.sent();
|
|
136
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
return [2 /*return*/, {
|
|
140
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
-
options: localVarRequestOptions,
|
|
142
|
-
}];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @summary Get all chatUsers. (Auth policies: RequireDefaultAdminAppRole)
|
|
150
|
-
* @param {number} [limit]
|
|
151
|
-
* @param {string} [token]
|
|
152
|
-
* @param {string} [userIds]
|
|
153
|
-
* @param {string} [nickname]
|
|
154
|
-
* @param {string} [nicknameStartswith]
|
|
155
|
-
* @param {*} [options] Override http request option.
|
|
156
|
-
* @throws {RequiredError}
|
|
157
|
-
*/
|
|
158
|
-
apiV1ChatusersGet: function (limit_1, token_1, userIds_1, nickname_1, nicknameStartswith_1) {
|
|
159
|
-
var args_1 = [];
|
|
160
|
-
for (var _i = 5; _i < arguments.length; _i++) {
|
|
161
|
-
args_1[_i - 5] = arguments[_i];
|
|
162
|
-
}
|
|
163
|
-
return __awaiter(_this, __spreadArray([limit_1, token_1, userIds_1, nickname_1, nicknameStartswith_1], args_1, true), void 0, function (limit, token, userIds, nickname, nicknameStartswith, options) {
|
|
164
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
|
-
if (options === void 0) { options = {}; }
|
|
166
|
-
return __generator(this, function (_a) {
|
|
167
|
-
switch (_a.label) {
|
|
168
|
-
case 0:
|
|
169
|
-
localVarPath = "/api/v1/chatusers";
|
|
170
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
|
-
if (configuration) {
|
|
172
|
-
baseOptions = configuration.baseOptions;
|
|
173
|
-
}
|
|
174
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
175
|
-
localVarHeaderParameter = {};
|
|
176
|
-
localVarQueryParameter = {};
|
|
177
|
-
// authentication oauth2 required
|
|
178
|
-
// oauth required
|
|
179
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
180
|
-
case 1:
|
|
181
|
-
// authentication oauth2 required
|
|
182
|
-
// oauth required
|
|
183
|
-
_a.sent();
|
|
184
|
-
if (limit !== undefined) {
|
|
185
|
-
localVarQueryParameter['Limit'] = limit;
|
|
186
|
-
}
|
|
187
|
-
if (token !== undefined) {
|
|
188
|
-
localVarQueryParameter['Token'] = token;
|
|
189
|
-
}
|
|
190
|
-
if (userIds !== undefined) {
|
|
191
|
-
localVarQueryParameter['UserIds'] = userIds;
|
|
192
|
-
}
|
|
193
|
-
if (nickname !== undefined) {
|
|
194
|
-
localVarQueryParameter['Nickname'] = nickname;
|
|
195
|
-
}
|
|
196
|
-
if (nicknameStartswith !== undefined) {
|
|
197
|
-
localVarQueryParameter['NicknameStartswith'] = nicknameStartswith;
|
|
198
|
-
}
|
|
199
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
-
return [2 /*return*/, {
|
|
203
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
204
|
-
options: localVarRequestOptions,
|
|
205
|
-
}];
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
});
|
|
209
|
-
},
|
|
210
|
-
/**
|
|
211
|
-
*
|
|
212
|
-
* @summary Create a chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
213
|
-
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
214
|
-
* @param {*} [options] Override http request option.
|
|
215
|
-
* @throws {RequiredError}
|
|
216
|
-
*/
|
|
217
|
-
apiV1ChatusersPost: function (createChatUserCommand_1) {
|
|
218
|
-
var args_1 = [];
|
|
219
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
220
|
-
args_1[_i - 1] = arguments[_i];
|
|
221
|
-
}
|
|
222
|
-
return __awaiter(_this, __spreadArray([createChatUserCommand_1], args_1, true), void 0, function (createChatUserCommand, options) {
|
|
223
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
224
|
-
if (options === void 0) { options = {}; }
|
|
225
|
-
return __generator(this, function (_a) {
|
|
226
|
-
switch (_a.label) {
|
|
227
|
-
case 0:
|
|
228
|
-
localVarPath = "/api/v1/chatusers";
|
|
229
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
230
|
-
if (configuration) {
|
|
231
|
-
baseOptions = configuration.baseOptions;
|
|
232
|
-
}
|
|
233
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
234
|
-
localVarHeaderParameter = {};
|
|
235
|
-
localVarQueryParameter = {};
|
|
236
|
-
// authentication oauth2 required
|
|
237
|
-
// oauth required
|
|
238
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
239
|
-
case 1:
|
|
240
|
-
// authentication oauth2 required
|
|
241
|
-
// oauth required
|
|
242
|
-
_a.sent();
|
|
243
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
244
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
245
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
246
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
247
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createChatUserCommand, localVarRequestOptions, configuration);
|
|
248
|
-
return [2 /*return*/, {
|
|
249
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
250
|
-
options: localVarRequestOptions,
|
|
251
|
-
}];
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
},
|
|
256
|
-
/**
|
|
257
|
-
*
|
|
258
|
-
* @summary Delete chatUser. (Auth policies: RequireManagerRole)
|
|
259
|
-
* @param {string} userId
|
|
260
|
-
* @param {*} [options] Override http request option.
|
|
261
|
-
* @throws {RequiredError}
|
|
262
|
-
*/
|
|
263
|
-
apiV1ChatusersUserIdDelete: function (userId_1) {
|
|
264
|
-
var args_1 = [];
|
|
265
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
266
|
-
args_1[_i - 1] = arguments[_i];
|
|
267
|
-
}
|
|
268
|
-
return __awaiter(_this, __spreadArray([userId_1], args_1, true), void 0, function (userId, options) {
|
|
269
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
270
|
-
if (options === void 0) { options = {}; }
|
|
271
|
-
return __generator(this, function (_a) {
|
|
272
|
-
switch (_a.label) {
|
|
273
|
-
case 0:
|
|
274
|
-
// verify required parameter 'userId' is not null or undefined
|
|
275
|
-
(0, common_1.assertParamExists)('apiV1ChatusersUserIdDelete', 'userId', userId);
|
|
276
|
-
localVarPath = "/api/v1/chatusers/{userId}"
|
|
277
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
278
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
279
|
-
if (configuration) {
|
|
280
|
-
baseOptions = configuration.baseOptions;
|
|
281
|
-
}
|
|
282
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
283
|
-
localVarHeaderParameter = {};
|
|
284
|
-
localVarQueryParameter = {};
|
|
285
|
-
// authentication oauth2 required
|
|
286
|
-
// oauth required
|
|
287
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
288
|
-
case 1:
|
|
289
|
-
// authentication oauth2 required
|
|
290
|
-
// oauth required
|
|
291
|
-
_a.sent();
|
|
292
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
293
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
-
return [2 /*return*/, {
|
|
296
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
-
options: localVarRequestOptions,
|
|
298
|
-
}];
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
},
|
|
303
|
-
/**
|
|
304
|
-
*
|
|
305
|
-
* @summary Get chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
306
|
-
* @param {string} userId
|
|
307
|
-
* @param {*} [options] Override http request option.
|
|
308
|
-
* @throws {RequiredError}
|
|
309
|
-
*/
|
|
310
|
-
apiV1ChatusersUserIdGet: function (userId_1) {
|
|
311
|
-
var args_1 = [];
|
|
312
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
313
|
-
args_1[_i - 1] = arguments[_i];
|
|
314
|
-
}
|
|
315
|
-
return __awaiter(_this, __spreadArray([userId_1], args_1, true), void 0, function (userId, options) {
|
|
316
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
317
|
-
if (options === void 0) { options = {}; }
|
|
318
|
-
return __generator(this, function (_a) {
|
|
319
|
-
switch (_a.label) {
|
|
320
|
-
case 0:
|
|
321
|
-
// verify required parameter 'userId' is not null or undefined
|
|
322
|
-
(0, common_1.assertParamExists)('apiV1ChatusersUserIdGet', 'userId', userId);
|
|
323
|
-
localVarPath = "/api/v1/chatusers/{userId}"
|
|
324
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
325
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
326
|
-
if (configuration) {
|
|
327
|
-
baseOptions = configuration.baseOptions;
|
|
328
|
-
}
|
|
329
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
330
|
-
localVarHeaderParameter = {};
|
|
331
|
-
localVarQueryParameter = {};
|
|
332
|
-
// authentication oauth2 required
|
|
333
|
-
// oauth required
|
|
334
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
335
|
-
case 1:
|
|
336
|
-
// authentication oauth2 required
|
|
337
|
-
// oauth required
|
|
338
|
-
_a.sent();
|
|
339
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
340
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
341
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
342
|
-
return [2 /*return*/, {
|
|
343
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
344
|
-
options: localVarRequestOptions,
|
|
345
|
-
}];
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
});
|
|
349
|
-
},
|
|
350
|
-
/**
|
|
351
|
-
*
|
|
352
|
-
* @summary Leave from group channel (Auth policies: RequireManagerRole)
|
|
353
|
-
* @param {string} userId
|
|
354
|
-
* @param {string} [groupChannelUrl]
|
|
355
|
-
* @param {number} [count]
|
|
356
|
-
* @param {boolean} [dryRun]
|
|
357
|
-
* @param {*} [options] Override http request option.
|
|
358
|
-
* @throws {RequiredError}
|
|
359
|
-
*/
|
|
360
|
-
apiV1ChatusersUserIdLeavePut: function (userId_1, groupChannelUrl_1, count_1, dryRun_1) {
|
|
361
|
-
var args_1 = [];
|
|
362
|
-
for (var _i = 4; _i < arguments.length; _i++) {
|
|
363
|
-
args_1[_i - 4] = arguments[_i];
|
|
364
|
-
}
|
|
365
|
-
return __awaiter(_this, __spreadArray([userId_1, groupChannelUrl_1, count_1, dryRun_1], args_1, true), void 0, function (userId, groupChannelUrl, count, dryRun, options) {
|
|
366
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
367
|
-
if (options === void 0) { options = {}; }
|
|
368
|
-
return __generator(this, function (_a) {
|
|
369
|
-
switch (_a.label) {
|
|
370
|
-
case 0:
|
|
371
|
-
// verify required parameter 'userId' is not null or undefined
|
|
372
|
-
(0, common_1.assertParamExists)('apiV1ChatusersUserIdLeavePut', 'userId', userId);
|
|
373
|
-
localVarPath = "/api/v1/chatusers/{userId}/leave"
|
|
374
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
375
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
376
|
-
if (configuration) {
|
|
377
|
-
baseOptions = configuration.baseOptions;
|
|
378
|
-
}
|
|
379
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
380
|
-
localVarHeaderParameter = {};
|
|
381
|
-
localVarQueryParameter = {};
|
|
382
|
-
// authentication oauth2 required
|
|
383
|
-
// oauth required
|
|
384
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
385
|
-
case 1:
|
|
386
|
-
// authentication oauth2 required
|
|
387
|
-
// oauth required
|
|
388
|
-
_a.sent();
|
|
389
|
-
if (groupChannelUrl !== undefined) {
|
|
390
|
-
localVarQueryParameter['groupChannelUrl'] = groupChannelUrl;
|
|
391
|
-
}
|
|
392
|
-
if (count !== undefined) {
|
|
393
|
-
localVarQueryParameter['count'] = count;
|
|
394
|
-
}
|
|
395
|
-
if (dryRun !== undefined) {
|
|
396
|
-
localVarQueryParameter['dryRun'] = dryRun;
|
|
397
|
-
}
|
|
398
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
399
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
400
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
401
|
-
return [2 /*return*/, {
|
|
402
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
403
|
-
options: localVarRequestOptions,
|
|
404
|
-
}];
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
});
|
|
408
|
-
},
|
|
409
|
-
/**
|
|
410
|
-
*
|
|
411
|
-
* @summary Update chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
412
|
-
* @param {string} userId
|
|
413
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
414
|
-
* @param {*} [options] Override http request option.
|
|
415
|
-
* @throws {RequiredError}
|
|
416
|
-
*/
|
|
417
|
-
apiV1ChatusersUserIdPut: function (userId_1, updateChatUserCommand_1) {
|
|
418
|
-
var args_1 = [];
|
|
419
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
420
|
-
args_1[_i - 2] = arguments[_i];
|
|
421
|
-
}
|
|
422
|
-
return __awaiter(_this, __spreadArray([userId_1, updateChatUserCommand_1], args_1, true), void 0, function (userId, updateChatUserCommand, options) {
|
|
423
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
424
|
-
if (options === void 0) { options = {}; }
|
|
425
|
-
return __generator(this, function (_a) {
|
|
426
|
-
switch (_a.label) {
|
|
427
|
-
case 0:
|
|
428
|
-
// verify required parameter 'userId' is not null or undefined
|
|
429
|
-
(0, common_1.assertParamExists)('apiV1ChatusersUserIdPut', 'userId', userId);
|
|
430
|
-
localVarPath = "/api/v1/chatusers/{userId}"
|
|
431
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
432
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
433
|
-
if (configuration) {
|
|
434
|
-
baseOptions = configuration.baseOptions;
|
|
435
|
-
}
|
|
436
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
437
|
-
localVarHeaderParameter = {};
|
|
438
|
-
localVarQueryParameter = {};
|
|
439
|
-
// authentication oauth2 required
|
|
440
|
-
// oauth required
|
|
441
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
442
|
-
case 1:
|
|
443
|
-
// authentication oauth2 required
|
|
444
|
-
// oauth required
|
|
445
|
-
_a.sent();
|
|
446
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
447
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
448
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
449
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
450
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateChatUserCommand, localVarRequestOptions, configuration);
|
|
451
|
-
return [2 /*return*/, {
|
|
452
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
453
|
-
options: localVarRequestOptions,
|
|
454
|
-
}];
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
},
|
|
459
|
-
};
|
|
460
|
-
};
|
|
461
|
-
exports.ChatUsersApiAxiosParamCreator = ChatUsersApiAxiosParamCreator;
|
|
462
|
-
/**
|
|
463
|
-
* ChatUsersApi - functional programming interface
|
|
464
|
-
* @export
|
|
465
|
-
*/
|
|
466
|
-
var ChatUsersApiFp = function (configuration) {
|
|
467
|
-
var localVarAxiosParamCreator = (0, exports.ChatUsersApiAxiosParamCreator)(configuration);
|
|
468
|
-
return {
|
|
469
|
-
/**
|
|
470
|
-
*
|
|
471
|
-
* @summary (Auth policies: RequireDefaultAdminAppRole)
|
|
472
|
-
* @param {*} [options] Override http request option.
|
|
473
|
-
* @throws {RequiredError}
|
|
474
|
-
*/
|
|
475
|
-
apiV1ChatusersCurrentGet: function (options) {
|
|
476
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
477
|
-
var localVarAxiosArgs;
|
|
478
|
-
return __generator(this, function (_a) {
|
|
479
|
-
switch (_a.label) {
|
|
480
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersCurrentGet(options)];
|
|
481
|
-
case 1:
|
|
482
|
-
localVarAxiosArgs = _a.sent();
|
|
483
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
});
|
|
487
|
-
},
|
|
488
|
-
/**
|
|
489
|
-
*
|
|
490
|
-
* @summary Get all chatUsers. (Auth policies: RequireDefaultAdminAppRole)
|
|
491
|
-
* @param {number} [limit]
|
|
492
|
-
* @param {string} [token]
|
|
493
|
-
* @param {string} [userIds]
|
|
494
|
-
* @param {string} [nickname]
|
|
495
|
-
* @param {string} [nicknameStartswith]
|
|
496
|
-
* @param {*} [options] Override http request option.
|
|
497
|
-
* @throws {RequiredError}
|
|
498
|
-
*/
|
|
499
|
-
apiV1ChatusersGet: function (limit, token, userIds, nickname, nicknameStartswith, options) {
|
|
500
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
501
|
-
var localVarAxiosArgs;
|
|
502
|
-
return __generator(this, function (_a) {
|
|
503
|
-
switch (_a.label) {
|
|
504
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options)];
|
|
505
|
-
case 1:
|
|
506
|
-
localVarAxiosArgs = _a.sent();
|
|
507
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
});
|
|
511
|
-
},
|
|
512
|
-
/**
|
|
513
|
-
*
|
|
514
|
-
* @summary Create a chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
515
|
-
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
516
|
-
* @param {*} [options] Override http request option.
|
|
517
|
-
* @throws {RequiredError}
|
|
518
|
-
*/
|
|
519
|
-
apiV1ChatusersPost: function (createChatUserCommand, options) {
|
|
520
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
521
|
-
var localVarAxiosArgs;
|
|
522
|
-
return __generator(this, function (_a) {
|
|
523
|
-
switch (_a.label) {
|
|
524
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersPost(createChatUserCommand, options)];
|
|
525
|
-
case 1:
|
|
526
|
-
localVarAxiosArgs = _a.sent();
|
|
527
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
528
|
-
}
|
|
529
|
-
});
|
|
530
|
-
});
|
|
531
|
-
},
|
|
532
|
-
/**
|
|
533
|
-
*
|
|
534
|
-
* @summary Delete chatUser. (Auth policies: RequireManagerRole)
|
|
535
|
-
* @param {string} userId
|
|
536
|
-
* @param {*} [options] Override http request option.
|
|
537
|
-
* @throws {RequiredError}
|
|
538
|
-
*/
|
|
539
|
-
apiV1ChatusersUserIdDelete: function (userId, options) {
|
|
540
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
541
|
-
var localVarAxiosArgs;
|
|
542
|
-
return __generator(this, function (_a) {
|
|
543
|
-
switch (_a.label) {
|
|
544
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersUserIdDelete(userId, options)];
|
|
545
|
-
case 1:
|
|
546
|
-
localVarAxiosArgs = _a.sent();
|
|
547
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
548
|
-
}
|
|
549
|
-
});
|
|
550
|
-
});
|
|
551
|
-
},
|
|
552
|
-
/**
|
|
553
|
-
*
|
|
554
|
-
* @summary Get chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
555
|
-
* @param {string} userId
|
|
556
|
-
* @param {*} [options] Override http request option.
|
|
557
|
-
* @throws {RequiredError}
|
|
558
|
-
*/
|
|
559
|
-
apiV1ChatusersUserIdGet: function (userId, options) {
|
|
560
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
561
|
-
var localVarAxiosArgs;
|
|
562
|
-
return __generator(this, function (_a) {
|
|
563
|
-
switch (_a.label) {
|
|
564
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersUserIdGet(userId, options)];
|
|
565
|
-
case 1:
|
|
566
|
-
localVarAxiosArgs = _a.sent();
|
|
567
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
});
|
|
571
|
-
},
|
|
572
|
-
/**
|
|
573
|
-
*
|
|
574
|
-
* @summary Leave from group channel (Auth policies: RequireManagerRole)
|
|
575
|
-
* @param {string} userId
|
|
576
|
-
* @param {string} [groupChannelUrl]
|
|
577
|
-
* @param {number} [count]
|
|
578
|
-
* @param {boolean} [dryRun]
|
|
579
|
-
* @param {*} [options] Override http request option.
|
|
580
|
-
* @throws {RequiredError}
|
|
581
|
-
*/
|
|
582
|
-
apiV1ChatusersUserIdLeavePut: function (userId, groupChannelUrl, count, dryRun, options) {
|
|
583
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
584
|
-
var localVarAxiosArgs;
|
|
585
|
-
return __generator(this, function (_a) {
|
|
586
|
-
switch (_a.label) {
|
|
587
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersUserIdLeavePut(userId, groupChannelUrl, count, dryRun, options)];
|
|
588
|
-
case 1:
|
|
589
|
-
localVarAxiosArgs = _a.sent();
|
|
590
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
});
|
|
594
|
-
},
|
|
595
|
-
/**
|
|
596
|
-
*
|
|
597
|
-
* @summary Update chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
598
|
-
* @param {string} userId
|
|
599
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
600
|
-
* @param {*} [options] Override http request option.
|
|
601
|
-
* @throws {RequiredError}
|
|
602
|
-
*/
|
|
603
|
-
apiV1ChatusersUserIdPut: function (userId, updateChatUserCommand, options) {
|
|
604
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
605
|
-
var localVarAxiosArgs;
|
|
606
|
-
return __generator(this, function (_a) {
|
|
607
|
-
switch (_a.label) {
|
|
608
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersUserIdPut(userId, updateChatUserCommand, options)];
|
|
609
|
-
case 1:
|
|
610
|
-
localVarAxiosArgs = _a.sent();
|
|
611
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
612
|
-
}
|
|
613
|
-
});
|
|
614
|
-
});
|
|
615
|
-
},
|
|
616
|
-
};
|
|
617
|
-
};
|
|
618
|
-
exports.ChatUsersApiFp = ChatUsersApiFp;
|
|
619
|
-
/**
|
|
620
|
-
* ChatUsersApi - factory interface
|
|
621
|
-
* @export
|
|
622
|
-
*/
|
|
623
|
-
var ChatUsersApiFactory = function (configuration, basePath, axios) {
|
|
624
|
-
var localVarFp = (0, exports.ChatUsersApiFp)(configuration);
|
|
625
|
-
return {
|
|
626
|
-
/**
|
|
627
|
-
*
|
|
628
|
-
* @summary (Auth policies: RequireDefaultAdminAppRole)
|
|
629
|
-
* @param {*} [options] Override http request option.
|
|
630
|
-
* @throws {RequiredError}
|
|
631
|
-
*/
|
|
632
|
-
apiV1ChatusersCurrentGet: function (options) {
|
|
633
|
-
return localVarFp.apiV1ChatusersCurrentGet(options).then(function (request) { return request(axios, basePath); });
|
|
634
|
-
},
|
|
635
|
-
/**
|
|
636
|
-
*
|
|
637
|
-
* @summary Get all chatUsers. (Auth policies: RequireDefaultAdminAppRole)
|
|
638
|
-
* @param {number} [limit]
|
|
639
|
-
* @param {string} [token]
|
|
640
|
-
* @param {string} [userIds]
|
|
641
|
-
* @param {string} [nickname]
|
|
642
|
-
* @param {string} [nicknameStartswith]
|
|
643
|
-
* @param {*} [options] Override http request option.
|
|
644
|
-
* @throws {RequiredError}
|
|
645
|
-
*/
|
|
646
|
-
apiV1ChatusersGet: function (limit, token, userIds, nickname, nicknameStartswith, options) {
|
|
647
|
-
return localVarFp.apiV1ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options).then(function (request) { return request(axios, basePath); });
|
|
648
|
-
},
|
|
649
|
-
/**
|
|
650
|
-
*
|
|
651
|
-
* @summary Create a chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
652
|
-
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
653
|
-
* @param {*} [options] Override http request option.
|
|
654
|
-
* @throws {RequiredError}
|
|
655
|
-
*/
|
|
656
|
-
apiV1ChatusersPost: function (createChatUserCommand, options) {
|
|
657
|
-
return localVarFp.apiV1ChatusersPost(createChatUserCommand, options).then(function (request) { return request(axios, basePath); });
|
|
658
|
-
},
|
|
659
|
-
/**
|
|
660
|
-
*
|
|
661
|
-
* @summary Delete chatUser. (Auth policies: RequireManagerRole)
|
|
662
|
-
* @param {string} userId
|
|
663
|
-
* @param {*} [options] Override http request option.
|
|
664
|
-
* @throws {RequiredError}
|
|
665
|
-
*/
|
|
666
|
-
apiV1ChatusersUserIdDelete: function (userId, options) {
|
|
667
|
-
return localVarFp.apiV1ChatusersUserIdDelete(userId, options).then(function (request) { return request(axios, basePath); });
|
|
668
|
-
},
|
|
669
|
-
/**
|
|
670
|
-
*
|
|
671
|
-
* @summary Get chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
672
|
-
* @param {string} userId
|
|
673
|
-
* @param {*} [options] Override http request option.
|
|
674
|
-
* @throws {RequiredError}
|
|
675
|
-
*/
|
|
676
|
-
apiV1ChatusersUserIdGet: function (userId, options) {
|
|
677
|
-
return localVarFp.apiV1ChatusersUserIdGet(userId, options).then(function (request) { return request(axios, basePath); });
|
|
678
|
-
},
|
|
679
|
-
/**
|
|
680
|
-
*
|
|
681
|
-
* @summary Leave from group channel (Auth policies: RequireManagerRole)
|
|
682
|
-
* @param {string} userId
|
|
683
|
-
* @param {string} [groupChannelUrl]
|
|
684
|
-
* @param {number} [count]
|
|
685
|
-
* @param {boolean} [dryRun]
|
|
686
|
-
* @param {*} [options] Override http request option.
|
|
687
|
-
* @throws {RequiredError}
|
|
688
|
-
*/
|
|
689
|
-
apiV1ChatusersUserIdLeavePut: function (userId, groupChannelUrl, count, dryRun, options) {
|
|
690
|
-
return localVarFp.apiV1ChatusersUserIdLeavePut(userId, groupChannelUrl, count, dryRun, options).then(function (request) { return request(axios, basePath); });
|
|
691
|
-
},
|
|
692
|
-
/**
|
|
693
|
-
*
|
|
694
|
-
* @summary Update chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
695
|
-
* @param {string} userId
|
|
696
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
697
|
-
* @param {*} [options] Override http request option.
|
|
698
|
-
* @throws {RequiredError}
|
|
699
|
-
*/
|
|
700
|
-
apiV1ChatusersUserIdPut: function (userId, updateChatUserCommand, options) {
|
|
701
|
-
return localVarFp.apiV1ChatusersUserIdPut(userId, updateChatUserCommand, options).then(function (request) { return request(axios, basePath); });
|
|
702
|
-
},
|
|
703
|
-
};
|
|
704
|
-
};
|
|
705
|
-
exports.ChatUsersApiFactory = ChatUsersApiFactory;
|
|
706
|
-
/**
|
|
707
|
-
* ChatUsersApi - object-oriented interface
|
|
708
|
-
* @export
|
|
709
|
-
* @class ChatUsersApi
|
|
710
|
-
* @extends {BaseAPI}
|
|
711
|
-
*/
|
|
712
|
-
var ChatUsersApi = /** @class */ (function (_super) {
|
|
713
|
-
__extends(ChatUsersApi, _super);
|
|
714
|
-
function ChatUsersApi() {
|
|
715
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
716
|
-
}
|
|
717
|
-
/**
|
|
718
|
-
*
|
|
719
|
-
* @summary (Auth policies: RequireDefaultAdminAppRole)
|
|
720
|
-
* @param {*} [options] Override http request option.
|
|
721
|
-
* @throws {RequiredError}
|
|
722
|
-
* @memberof ChatUsersApi
|
|
723
|
-
*/
|
|
724
|
-
ChatUsersApi.prototype.apiV1ChatusersCurrentGet = function (options) {
|
|
725
|
-
var _this = this;
|
|
726
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).apiV1ChatusersCurrentGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
727
|
-
};
|
|
728
|
-
/**
|
|
729
|
-
*
|
|
730
|
-
* @summary Get all chatUsers. (Auth policies: RequireDefaultAdminAppRole)
|
|
731
|
-
* @param {ChatUsersApiApiV1ChatusersGetRequest} requestParameters Request parameters.
|
|
732
|
-
* @param {*} [options] Override http request option.
|
|
733
|
-
* @throws {RequiredError}
|
|
734
|
-
* @memberof ChatUsersApi
|
|
735
|
-
*/
|
|
736
|
-
ChatUsersApi.prototype.apiV1ChatusersGet = function (requestParameters, options) {
|
|
737
|
-
var _this = this;
|
|
738
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
739
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).apiV1ChatusersGet(requestParameters.limit, requestParameters.token, requestParameters.userIds, requestParameters.nickname, requestParameters.nicknameStartswith, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
740
|
-
};
|
|
741
|
-
/**
|
|
742
|
-
*
|
|
743
|
-
* @summary Create a chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
744
|
-
* @param {ChatUsersApiApiV1ChatusersPostRequest} requestParameters Request parameters.
|
|
745
|
-
* @param {*} [options] Override http request option.
|
|
746
|
-
* @throws {RequiredError}
|
|
747
|
-
* @memberof ChatUsersApi
|
|
748
|
-
*/
|
|
749
|
-
ChatUsersApi.prototype.apiV1ChatusersPost = function (requestParameters, options) {
|
|
750
|
-
var _this = this;
|
|
751
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
752
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).apiV1ChatusersPost(requestParameters.createChatUserCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
753
|
-
};
|
|
754
|
-
/**
|
|
755
|
-
*
|
|
756
|
-
* @summary Delete chatUser. (Auth policies: RequireManagerRole)
|
|
757
|
-
* @param {ChatUsersApiApiV1ChatusersUserIdDeleteRequest} requestParameters Request parameters.
|
|
758
|
-
* @param {*} [options] Override http request option.
|
|
759
|
-
* @throws {RequiredError}
|
|
760
|
-
* @memberof ChatUsersApi
|
|
761
|
-
*/
|
|
762
|
-
ChatUsersApi.prototype.apiV1ChatusersUserIdDelete = function (requestParameters, options) {
|
|
763
|
-
var _this = this;
|
|
764
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).apiV1ChatusersUserIdDelete(requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
765
|
-
};
|
|
766
|
-
/**
|
|
767
|
-
*
|
|
768
|
-
* @summary Get chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
769
|
-
* @param {ChatUsersApiApiV1ChatusersUserIdGetRequest} requestParameters Request parameters.
|
|
770
|
-
* @param {*} [options] Override http request option.
|
|
771
|
-
* @throws {RequiredError}
|
|
772
|
-
* @memberof ChatUsersApi
|
|
773
|
-
*/
|
|
774
|
-
ChatUsersApi.prototype.apiV1ChatusersUserIdGet = function (requestParameters, options) {
|
|
775
|
-
var _this = this;
|
|
776
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).apiV1ChatusersUserIdGet(requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
777
|
-
};
|
|
778
|
-
/**
|
|
779
|
-
*
|
|
780
|
-
* @summary Leave from group channel (Auth policies: RequireManagerRole)
|
|
781
|
-
* @param {ChatUsersApiApiV1ChatusersUserIdLeavePutRequest} requestParameters Request parameters.
|
|
782
|
-
* @param {*} [options] Override http request option.
|
|
783
|
-
* @throws {RequiredError}
|
|
784
|
-
* @memberof ChatUsersApi
|
|
785
|
-
*/
|
|
786
|
-
ChatUsersApi.prototype.apiV1ChatusersUserIdLeavePut = function (requestParameters, options) {
|
|
787
|
-
var _this = this;
|
|
788
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).apiV1ChatusersUserIdLeavePut(requestParameters.userId, requestParameters.groupChannelUrl, requestParameters.count, requestParameters.dryRun, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
789
|
-
};
|
|
790
|
-
/**
|
|
791
|
-
*
|
|
792
|
-
* @summary Update chatUser. (Auth policies: RequireDefaultAdminAppRole)
|
|
793
|
-
* @param {ChatUsersApiApiV1ChatusersUserIdPutRequest} requestParameters Request parameters.
|
|
794
|
-
* @param {*} [options] Override http request option.
|
|
795
|
-
* @throws {RequiredError}
|
|
796
|
-
* @memberof ChatUsersApi
|
|
797
|
-
*/
|
|
798
|
-
ChatUsersApi.prototype.apiV1ChatusersUserIdPut = function (requestParameters, options) {
|
|
799
|
-
var _this = this;
|
|
800
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).apiV1ChatusersUserIdPut(requestParameters.userId, requestParameters.updateChatUserCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
801
|
-
};
|
|
802
|
-
return ChatUsersApi;
|
|
803
|
-
}(base_1.BaseAPI));
|
|
804
|
-
exports.ChatUsersApi = ChatUsersApi;
|