ch-admin-api-client-typescript 2.1.8 → 2.2.6

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.js CHANGED
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
76
76
  return (mod && mod.__esModule) ? mod : { "default": mod };
77
77
  };
78
78
  Object.defineProperty(exports, "__esModule", { value: true });
79
- exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
79
+ exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
80
80
  var axios_1 = __importDefault(require("axios"));
81
81
  // Some imports not used depending on template conditions
82
82
  // @ts-ignore
@@ -4139,6 +4139,505 @@ var BookingsApi = /** @class */ (function (_super) {
4139
4139
  return BookingsApi;
4140
4140
  }(base_1.BaseAPI));
4141
4141
  exports.BookingsApi = BookingsApi;
4142
+ /**
4143
+ * ChatUsersApi - axios parameter creator
4144
+ * @export
4145
+ */
4146
+ exports.ChatUsersApiAxiosParamCreator = function (configuration) {
4147
+ var _this = this;
4148
+ return {
4149
+ /**
4150
+ *
4151
+ * @summary Get all chatUsers.
4152
+ * @param {number} [limit]
4153
+ * @param {string} [token]
4154
+ * @param {string} [userIds]
4155
+ * @param {string} [nickname]
4156
+ * @param {string} [nicknameStartswith]
4157
+ * @param {*} [options] Override http request option.
4158
+ * @throws {RequiredError}
4159
+ */
4160
+ apiV1ChatusersGet: function (limit, token, userIds, nickname, nicknameStartswith, options) {
4161
+ if (options === void 0) { options = {}; }
4162
+ return __awaiter(_this, void 0, void 0, function () {
4163
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4164
+ return __generator(this, function (_a) {
4165
+ switch (_a.label) {
4166
+ case 0:
4167
+ localVarPath = "/api/v1/chatusers";
4168
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4169
+ if (configuration) {
4170
+ baseOptions = configuration.baseOptions;
4171
+ }
4172
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4173
+ localVarHeaderParameter = {};
4174
+ localVarQueryParameter = {};
4175
+ // authentication oauth2 required
4176
+ // oauth required
4177
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4178
+ case 1:
4179
+ // authentication oauth2 required
4180
+ // oauth required
4181
+ _a.sent();
4182
+ if (limit !== undefined) {
4183
+ localVarQueryParameter['Limit'] = limit;
4184
+ }
4185
+ if (token !== undefined) {
4186
+ localVarQueryParameter['Token'] = token;
4187
+ }
4188
+ if (userIds !== undefined) {
4189
+ localVarQueryParameter['UserIds'] = userIds;
4190
+ }
4191
+ if (nickname !== undefined) {
4192
+ localVarQueryParameter['Nickname'] = nickname;
4193
+ }
4194
+ if (nicknameStartswith !== undefined) {
4195
+ localVarQueryParameter['NicknameStartswith'] = nicknameStartswith;
4196
+ }
4197
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4198
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4199
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4200
+ return [2 /*return*/, {
4201
+ url: common_1.toPathString(localVarUrlObj),
4202
+ options: localVarRequestOptions,
4203
+ }];
4204
+ }
4205
+ });
4206
+ });
4207
+ },
4208
+ /**
4209
+ *
4210
+ * @summary Create a chatUser.
4211
+ * @param {CreateChatUserCommand} [createChatUserCommand]
4212
+ * @param {*} [options] Override http request option.
4213
+ * @throws {RequiredError}
4214
+ */
4215
+ apiV1ChatusersPost: function (createChatUserCommand, options) {
4216
+ if (options === void 0) { options = {}; }
4217
+ return __awaiter(_this, void 0, void 0, function () {
4218
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4219
+ return __generator(this, function (_a) {
4220
+ switch (_a.label) {
4221
+ case 0:
4222
+ localVarPath = "/api/v1/chatusers";
4223
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4224
+ if (configuration) {
4225
+ baseOptions = configuration.baseOptions;
4226
+ }
4227
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
4228
+ localVarHeaderParameter = {};
4229
+ localVarQueryParameter = {};
4230
+ // authentication oauth2 required
4231
+ // oauth required
4232
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4233
+ case 1:
4234
+ // authentication oauth2 required
4235
+ // oauth required
4236
+ _a.sent();
4237
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4238
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4239
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4240
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4241
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createChatUserCommand, localVarRequestOptions, configuration);
4242
+ return [2 /*return*/, {
4243
+ url: common_1.toPathString(localVarUrlObj),
4244
+ options: localVarRequestOptions,
4245
+ }];
4246
+ }
4247
+ });
4248
+ });
4249
+ },
4250
+ /**
4251
+ *
4252
+ * @summary Delete chatUser.
4253
+ * @param {string} userId
4254
+ * @param {*} [options] Override http request option.
4255
+ * @throws {RequiredError}
4256
+ */
4257
+ apiV1ChatusersUserIdDelete: function (userId, options) {
4258
+ if (options === void 0) { options = {}; }
4259
+ return __awaiter(_this, void 0, void 0, function () {
4260
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4261
+ return __generator(this, function (_a) {
4262
+ switch (_a.label) {
4263
+ case 0:
4264
+ // verify required parameter 'userId' is not null or undefined
4265
+ common_1.assertParamExists('apiV1ChatusersUserIdDelete', 'userId', userId);
4266
+ localVarPath = "/api/v1/chatusers/{userId}"
4267
+ .replace("{" + "userId" + "}", encodeURIComponent(String(userId)));
4268
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4269
+ if (configuration) {
4270
+ baseOptions = configuration.baseOptions;
4271
+ }
4272
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
4273
+ localVarHeaderParameter = {};
4274
+ localVarQueryParameter = {};
4275
+ // authentication oauth2 required
4276
+ // oauth required
4277
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4278
+ case 1:
4279
+ // authentication oauth2 required
4280
+ // oauth required
4281
+ _a.sent();
4282
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4283
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4284
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4285
+ return [2 /*return*/, {
4286
+ url: common_1.toPathString(localVarUrlObj),
4287
+ options: localVarRequestOptions,
4288
+ }];
4289
+ }
4290
+ });
4291
+ });
4292
+ },
4293
+ /**
4294
+ *
4295
+ * @summary Get chatUser.
4296
+ * @param {string} userId
4297
+ * @param {*} [options] Override http request option.
4298
+ * @throws {RequiredError}
4299
+ */
4300
+ apiV1ChatusersUserIdGet: function (userId, options) {
4301
+ if (options === void 0) { options = {}; }
4302
+ return __awaiter(_this, void 0, void 0, function () {
4303
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4304
+ return __generator(this, function (_a) {
4305
+ switch (_a.label) {
4306
+ case 0:
4307
+ // verify required parameter 'userId' is not null or undefined
4308
+ common_1.assertParamExists('apiV1ChatusersUserIdGet', 'userId', userId);
4309
+ localVarPath = "/api/v1/chatusers/{userId}"
4310
+ .replace("{" + "userId" + "}", encodeURIComponent(String(userId)));
4311
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4312
+ if (configuration) {
4313
+ baseOptions = configuration.baseOptions;
4314
+ }
4315
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4316
+ localVarHeaderParameter = {};
4317
+ localVarQueryParameter = {};
4318
+ // authentication oauth2 required
4319
+ // oauth required
4320
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4321
+ case 1:
4322
+ // authentication oauth2 required
4323
+ // oauth required
4324
+ _a.sent();
4325
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4326
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4327
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4328
+ return [2 /*return*/, {
4329
+ url: common_1.toPathString(localVarUrlObj),
4330
+ options: localVarRequestOptions,
4331
+ }];
4332
+ }
4333
+ });
4334
+ });
4335
+ },
4336
+ /**
4337
+ *
4338
+ * @summary Update chatUser.
4339
+ * @param {string} userId
4340
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
4341
+ * @param {*} [options] Override http request option.
4342
+ * @throws {RequiredError}
4343
+ */
4344
+ apiV1ChatusersUserIdPut: function (userId, updateChatUserCommand, options) {
4345
+ if (options === void 0) { options = {}; }
4346
+ return __awaiter(_this, void 0, void 0, function () {
4347
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4348
+ return __generator(this, function (_a) {
4349
+ switch (_a.label) {
4350
+ case 0:
4351
+ // verify required parameter 'userId' is not null or undefined
4352
+ common_1.assertParamExists('apiV1ChatusersUserIdPut', 'userId', userId);
4353
+ localVarPath = "/api/v1/chatusers/{userId}"
4354
+ .replace("{" + "userId" + "}", encodeURIComponent(String(userId)));
4355
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4356
+ if (configuration) {
4357
+ baseOptions = configuration.baseOptions;
4358
+ }
4359
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
4360
+ localVarHeaderParameter = {};
4361
+ localVarQueryParameter = {};
4362
+ // authentication oauth2 required
4363
+ // oauth required
4364
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4365
+ case 1:
4366
+ // authentication oauth2 required
4367
+ // oauth required
4368
+ _a.sent();
4369
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4370
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4371
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4372
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4373
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateChatUserCommand, localVarRequestOptions, configuration);
4374
+ return [2 /*return*/, {
4375
+ url: common_1.toPathString(localVarUrlObj),
4376
+ options: localVarRequestOptions,
4377
+ }];
4378
+ }
4379
+ });
4380
+ });
4381
+ },
4382
+ };
4383
+ };
4384
+ /**
4385
+ * ChatUsersApi - functional programming interface
4386
+ * @export
4387
+ */
4388
+ exports.ChatUsersApiFp = function (configuration) {
4389
+ var localVarAxiosParamCreator = exports.ChatUsersApiAxiosParamCreator(configuration);
4390
+ return {
4391
+ /**
4392
+ *
4393
+ * @summary Get all chatUsers.
4394
+ * @param {number} [limit]
4395
+ * @param {string} [token]
4396
+ * @param {string} [userIds]
4397
+ * @param {string} [nickname]
4398
+ * @param {string} [nicknameStartswith]
4399
+ * @param {*} [options] Override http request option.
4400
+ * @throws {RequiredError}
4401
+ */
4402
+ apiV1ChatusersGet: function (limit, token, userIds, nickname, nicknameStartswith, options) {
4403
+ return __awaiter(this, void 0, void 0, function () {
4404
+ var localVarAxiosArgs;
4405
+ return __generator(this, function (_a) {
4406
+ switch (_a.label) {
4407
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options)];
4408
+ case 1:
4409
+ localVarAxiosArgs = _a.sent();
4410
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4411
+ }
4412
+ });
4413
+ });
4414
+ },
4415
+ /**
4416
+ *
4417
+ * @summary Create a chatUser.
4418
+ * @param {CreateChatUserCommand} [createChatUserCommand]
4419
+ * @param {*} [options] Override http request option.
4420
+ * @throws {RequiredError}
4421
+ */
4422
+ apiV1ChatusersPost: function (createChatUserCommand, options) {
4423
+ return __awaiter(this, void 0, void 0, function () {
4424
+ var localVarAxiosArgs;
4425
+ return __generator(this, function (_a) {
4426
+ switch (_a.label) {
4427
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersPost(createChatUserCommand, options)];
4428
+ case 1:
4429
+ localVarAxiosArgs = _a.sent();
4430
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4431
+ }
4432
+ });
4433
+ });
4434
+ },
4435
+ /**
4436
+ *
4437
+ * @summary Delete chatUser.
4438
+ * @param {string} userId
4439
+ * @param {*} [options] Override http request option.
4440
+ * @throws {RequiredError}
4441
+ */
4442
+ apiV1ChatusersUserIdDelete: function (userId, options) {
4443
+ return __awaiter(this, void 0, void 0, function () {
4444
+ var localVarAxiosArgs;
4445
+ return __generator(this, function (_a) {
4446
+ switch (_a.label) {
4447
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersUserIdDelete(userId, options)];
4448
+ case 1:
4449
+ localVarAxiosArgs = _a.sent();
4450
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4451
+ }
4452
+ });
4453
+ });
4454
+ },
4455
+ /**
4456
+ *
4457
+ * @summary Get chatUser.
4458
+ * @param {string} userId
4459
+ * @param {*} [options] Override http request option.
4460
+ * @throws {RequiredError}
4461
+ */
4462
+ apiV1ChatusersUserIdGet: function (userId, options) {
4463
+ return __awaiter(this, void 0, void 0, function () {
4464
+ var localVarAxiosArgs;
4465
+ return __generator(this, function (_a) {
4466
+ switch (_a.label) {
4467
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersUserIdGet(userId, options)];
4468
+ case 1:
4469
+ localVarAxiosArgs = _a.sent();
4470
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4471
+ }
4472
+ });
4473
+ });
4474
+ },
4475
+ /**
4476
+ *
4477
+ * @summary Update chatUser.
4478
+ * @param {string} userId
4479
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
4480
+ * @param {*} [options] Override http request option.
4481
+ * @throws {RequiredError}
4482
+ */
4483
+ apiV1ChatusersUserIdPut: function (userId, updateChatUserCommand, options) {
4484
+ return __awaiter(this, void 0, void 0, function () {
4485
+ var localVarAxiosArgs;
4486
+ return __generator(this, function (_a) {
4487
+ switch (_a.label) {
4488
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersUserIdPut(userId, updateChatUserCommand, options)];
4489
+ case 1:
4490
+ localVarAxiosArgs = _a.sent();
4491
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4492
+ }
4493
+ });
4494
+ });
4495
+ },
4496
+ };
4497
+ };
4498
+ /**
4499
+ * ChatUsersApi - factory interface
4500
+ * @export
4501
+ */
4502
+ exports.ChatUsersApiFactory = function (configuration, basePath, axios) {
4503
+ var localVarFp = exports.ChatUsersApiFp(configuration);
4504
+ return {
4505
+ /**
4506
+ *
4507
+ * @summary Get all chatUsers.
4508
+ * @param {number} [limit]
4509
+ * @param {string} [token]
4510
+ * @param {string} [userIds]
4511
+ * @param {string} [nickname]
4512
+ * @param {string} [nicknameStartswith]
4513
+ * @param {*} [options] Override http request option.
4514
+ * @throws {RequiredError}
4515
+ */
4516
+ apiV1ChatusersGet: function (limit, token, userIds, nickname, nicknameStartswith, options) {
4517
+ return localVarFp.apiV1ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options).then(function (request) { return request(axios, basePath); });
4518
+ },
4519
+ /**
4520
+ *
4521
+ * @summary Create a chatUser.
4522
+ * @param {CreateChatUserCommand} [createChatUserCommand]
4523
+ * @param {*} [options] Override http request option.
4524
+ * @throws {RequiredError}
4525
+ */
4526
+ apiV1ChatusersPost: function (createChatUserCommand, options) {
4527
+ return localVarFp.apiV1ChatusersPost(createChatUserCommand, options).then(function (request) { return request(axios, basePath); });
4528
+ },
4529
+ /**
4530
+ *
4531
+ * @summary Delete chatUser.
4532
+ * @param {string} userId
4533
+ * @param {*} [options] Override http request option.
4534
+ * @throws {RequiredError}
4535
+ */
4536
+ apiV1ChatusersUserIdDelete: function (userId, options) {
4537
+ return localVarFp.apiV1ChatusersUserIdDelete(userId, options).then(function (request) { return request(axios, basePath); });
4538
+ },
4539
+ /**
4540
+ *
4541
+ * @summary Get chatUser.
4542
+ * @param {string} userId
4543
+ * @param {*} [options] Override http request option.
4544
+ * @throws {RequiredError}
4545
+ */
4546
+ apiV1ChatusersUserIdGet: function (userId, options) {
4547
+ return localVarFp.apiV1ChatusersUserIdGet(userId, options).then(function (request) { return request(axios, basePath); });
4548
+ },
4549
+ /**
4550
+ *
4551
+ * @summary Update chatUser.
4552
+ * @param {string} userId
4553
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
4554
+ * @param {*} [options] Override http request option.
4555
+ * @throws {RequiredError}
4556
+ */
4557
+ apiV1ChatusersUserIdPut: function (userId, updateChatUserCommand, options) {
4558
+ return localVarFp.apiV1ChatusersUserIdPut(userId, updateChatUserCommand, options).then(function (request) { return request(axios, basePath); });
4559
+ },
4560
+ };
4561
+ };
4562
+ /**
4563
+ * ChatUsersApi - object-oriented interface
4564
+ * @export
4565
+ * @class ChatUsersApi
4566
+ * @extends {BaseAPI}
4567
+ */
4568
+ var ChatUsersApi = /** @class */ (function (_super) {
4569
+ __extends(ChatUsersApi, _super);
4570
+ function ChatUsersApi() {
4571
+ return _super !== null && _super.apply(this, arguments) || this;
4572
+ }
4573
+ /**
4574
+ *
4575
+ * @summary Get all chatUsers.
4576
+ * @param {number} [limit]
4577
+ * @param {string} [token]
4578
+ * @param {string} [userIds]
4579
+ * @param {string} [nickname]
4580
+ * @param {string} [nicknameStartswith]
4581
+ * @param {*} [options] Override http request option.
4582
+ * @throws {RequiredError}
4583
+ * @memberof ChatUsersApi
4584
+ */
4585
+ ChatUsersApi.prototype.apiV1ChatusersGet = function (limit, token, userIds, nickname, nicknameStartswith, options) {
4586
+ var _this = this;
4587
+ return exports.ChatUsersApiFp(this.configuration).apiV1ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options).then(function (request) { return request(_this.axios, _this.basePath); });
4588
+ };
4589
+ /**
4590
+ *
4591
+ * @summary Create a chatUser.
4592
+ * @param {CreateChatUserCommand} [createChatUserCommand]
4593
+ * @param {*} [options] Override http request option.
4594
+ * @throws {RequiredError}
4595
+ * @memberof ChatUsersApi
4596
+ */
4597
+ ChatUsersApi.prototype.apiV1ChatusersPost = function (createChatUserCommand, options) {
4598
+ var _this = this;
4599
+ return exports.ChatUsersApiFp(this.configuration).apiV1ChatusersPost(createChatUserCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
4600
+ };
4601
+ /**
4602
+ *
4603
+ * @summary Delete chatUser.
4604
+ * @param {string} userId
4605
+ * @param {*} [options] Override http request option.
4606
+ * @throws {RequiredError}
4607
+ * @memberof ChatUsersApi
4608
+ */
4609
+ ChatUsersApi.prototype.apiV1ChatusersUserIdDelete = function (userId, options) {
4610
+ var _this = this;
4611
+ return exports.ChatUsersApiFp(this.configuration).apiV1ChatusersUserIdDelete(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4612
+ };
4613
+ /**
4614
+ *
4615
+ * @summary Get chatUser.
4616
+ * @param {string} userId
4617
+ * @param {*} [options] Override http request option.
4618
+ * @throws {RequiredError}
4619
+ * @memberof ChatUsersApi
4620
+ */
4621
+ ChatUsersApi.prototype.apiV1ChatusersUserIdGet = function (userId, options) {
4622
+ var _this = this;
4623
+ return exports.ChatUsersApiFp(this.configuration).apiV1ChatusersUserIdGet(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4624
+ };
4625
+ /**
4626
+ *
4627
+ * @summary Update chatUser.
4628
+ * @param {string} userId
4629
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
4630
+ * @param {*} [options] Override http request option.
4631
+ * @throws {RequiredError}
4632
+ * @memberof ChatUsersApi
4633
+ */
4634
+ ChatUsersApi.prototype.apiV1ChatusersUserIdPut = function (userId, updateChatUserCommand, options) {
4635
+ var _this = this;
4636
+ return exports.ChatUsersApiFp(this.configuration).apiV1ChatusersUserIdPut(userId, updateChatUserCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
4637
+ };
4638
+ return ChatUsersApi;
4639
+ }(base_1.BaseAPI));
4640
+ exports.ChatUsersApi = ChatUsersApi;
4142
4641
  /**
4143
4642
  * CommunicationsApi - axios parameter creator
4144
4643
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "2.1.8",
3
+ "version": "2.2.6",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {