ch-api-client-typescript2 4.7.9 → 4.8.2

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
@@ -78,10 +78,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- 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.AppVersionApi = exports.AppVersionApiFactory = exports.AppVersionApiFp = exports.AppVersionApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.SortingOrder = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.Platform = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.DayOfWeek = exports.ContributionType = exports.ConsultationType = exports.ConsultationTimetableStatus = exports.ConsultationStatus = exports.BookingStatus = void 0;
82
- exports.HospitalsConsultationTimetablesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.HeaderNavigationsApi = exports.HeaderNavigationsApiFactory = exports.HeaderNavigationsApiFp = exports.HeaderNavigationsApiAxiosParamCreator = exports.GroupChannelsApi = exports.GroupChannelsApiFactory = exports.GroupChannelsApiFp = exports.GroupChannelsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.ExternalApi = exports.ExternalApiFactory = exports.ExternalApiFp = exports.ExternalApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DoctorAffiliationsApi = exports.DoctorAffiliationsApiFactory = exports.DoctorAffiliationsApiFp = exports.DoctorAffiliationsApiAxiosParamCreator = exports.DevicesApi = exports.DevicesApiFactory = exports.DevicesApiFp = exports.DevicesApiAxiosParamCreator = 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 = void 0;
83
- 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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsConsultationTimetablesApi = exports.HospitalsConsultationTimetablesApiFactory = exports.HospitalsConsultationTimetablesApiFp = void 0;
84
- exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = void 0;
81
+ 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.AppVersionApi = exports.AppVersionApiFactory = exports.AppVersionApiFp = exports.AppVersionApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.SurveyFormStatus = exports.SurveyFormElementTypes = exports.SortingOrder = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.Platform = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.DayOfWeek = exports.ContributionType = exports.ConsultationType = exports.ConsultationTimetableStatus = exports.ConsultationStatus = exports.BookingStatus = void 0;
82
+ exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.HeaderNavigationsApi = exports.HeaderNavigationsApiFactory = exports.HeaderNavigationsApiFp = exports.HeaderNavigationsApiAxiosParamCreator = exports.GroupChannelsApi = exports.GroupChannelsApiFactory = exports.GroupChannelsApiFp = exports.GroupChannelsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.ExternalApi = exports.ExternalApiFactory = exports.ExternalApiFp = exports.ExternalApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DoctorAffiliationsApi = exports.DoctorAffiliationsApiFactory = exports.DoctorAffiliationsApiFp = exports.DoctorAffiliationsApiAxiosParamCreator = exports.DevicesApi = exports.DevicesApiFactory = exports.DevicesApiFp = exports.DevicesApiAxiosParamCreator = 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 = void 0;
83
+ 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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsConsultationTimetablesApi = exports.HospitalsConsultationTimetablesApiFactory = exports.HospitalsConsultationTimetablesApiFp = exports.HospitalsConsultationTimetablesApiAxiosParamCreator = exports.HospitalsApi = void 0;
84
+ exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SurveyResultsApi = exports.SurveyResultsApiFactory = exports.SurveyResultsApiFp = exports.SurveyResultsApiAxiosParamCreator = exports.SurveyFormsApi = exports.SurveyFormsApiFactory = exports.SurveyFormsApiFp = exports.SurveyFormsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = void 0;
85
85
  var axios_1 = __importDefault(require("axios"));
86
86
  // Some imports not used depending on template conditions
87
87
  // @ts-ignore
@@ -304,6 +304,34 @@ exports.SortingOrder = {
304
304
  Ascending: 'Ascending',
305
305
  Descending: 'Descending'
306
306
  };
307
+ /**
308
+ *
309
+ * @export
310
+ * @enum {string}
311
+ */
312
+ exports.SurveyFormElementTypes = {
313
+ SingleLineText: 'SingleLineText',
314
+ MultiLineText: 'MultiLineText',
315
+ Email: 'Email',
316
+ DateTime: 'DateTime',
317
+ Date: 'Date',
318
+ Time: 'Time',
319
+ NumberInteger: 'NumberInteger',
320
+ NumberFloat: 'NumberFloat',
321
+ Select: 'Select',
322
+ Checkbox: 'Checkbox',
323
+ Radio: 'Radio',
324
+ File: 'File'
325
+ };
326
+ /**
327
+ *
328
+ * @export
329
+ * @enum {string}
330
+ */
331
+ exports.SurveyFormStatus = {
332
+ Draft: 'Draft',
333
+ Active: 'Active'
334
+ };
307
335
  /**
308
336
  *
309
337
  * @export
@@ -17173,31 +17201,24 @@ var ProfilesApiAxiosParamCreator = function (configuration) {
17173
17201
  },
17174
17202
  /**
17175
17203
  *
17176
- * @summary Delete Profile.
17177
- * @param {string} profileId
17178
- * @param {string} patientId
17204
+ * @summary Create a Profile.
17205
+ * @param {CreateProfileCommand} [createProfileCommand]
17179
17206
  * @param {*} [options] Override http request option.
17180
17207
  * @throws {RequiredError}
17181
17208
  */
17182
- apiV2ProfilesPatientIdDelete: function (profileId, patientId, options) {
17209
+ apiV2ProfilesPost: function (createProfileCommand, options) {
17183
17210
  if (options === void 0) { options = {}; }
17184
17211
  return __awaiter(_this, void 0, void 0, function () {
17185
17212
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17186
17213
  return __generator(this, function (_a) {
17187
17214
  switch (_a.label) {
17188
17215
  case 0:
17189
- // verify required parameter 'profileId' is not null or undefined
17190
- (0, common_1.assertParamExists)('apiV2ProfilesPatientIdDelete', 'profileId', profileId);
17191
- // verify required parameter 'patientId' is not null or undefined
17192
- (0, common_1.assertParamExists)('apiV2ProfilesPatientIdDelete', 'patientId', patientId);
17193
- localVarPath = "/api/v2/profiles/{patientId}"
17194
- .replace("{".concat("profileId", "}"), encodeURIComponent(String(profileId)))
17195
- .replace("{".concat("patientId", "}"), encodeURIComponent(String(patientId)));
17216
+ localVarPath = "/api/v2/profiles";
17196
17217
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17197
17218
  if (configuration) {
17198
17219
  baseOptions = configuration.baseOptions;
17199
17220
  }
17200
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
17221
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
17201
17222
  localVarHeaderParameter = {};
17202
17223
  localVarQueryParameter = {};
17203
17224
  // authentication oauth2 required
@@ -17207,9 +17228,11 @@ var ProfilesApiAxiosParamCreator = function (configuration) {
17207
17228
  // authentication oauth2 required
17208
17229
  // oauth required
17209
17230
  _a.sent();
17231
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17210
17232
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17211
17233
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17212
17234
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17235
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProfileCommand, localVarRequestOptions, configuration);
17213
17236
  return [2 /*return*/, {
17214
17237
  url: (0, common_1.toPathString)(localVarUrlObj),
17215
17238
  options: localVarRequestOptions,
@@ -17220,24 +17243,27 @@ var ProfilesApiAxiosParamCreator = function (configuration) {
17220
17243
  },
17221
17244
  /**
17222
17245
  *
17223
- * @summary Create a Profile.
17224
- * @param {CreateProfileCommand} [createProfileCommand]
17246
+ * @summary Delete Profile.
17247
+ * @param {string} profileId
17225
17248
  * @param {*} [options] Override http request option.
17226
17249
  * @throws {RequiredError}
17227
17250
  */
17228
- apiV2ProfilesPost: function (createProfileCommand, options) {
17251
+ apiV2ProfilesProfileIdDelete: function (profileId, options) {
17229
17252
  if (options === void 0) { options = {}; }
17230
17253
  return __awaiter(_this, void 0, void 0, function () {
17231
17254
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17232
17255
  return __generator(this, function (_a) {
17233
17256
  switch (_a.label) {
17234
17257
  case 0:
17235
- localVarPath = "/api/v2/profiles";
17258
+ // verify required parameter 'profileId' is not null or undefined
17259
+ (0, common_1.assertParamExists)('apiV2ProfilesProfileIdDelete', 'profileId', profileId);
17260
+ localVarPath = "/api/v2/profiles/{profileId}"
17261
+ .replace("{".concat("profileId", "}"), encodeURIComponent(String(profileId)));
17236
17262
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17237
17263
  if (configuration) {
17238
17264
  baseOptions = configuration.baseOptions;
17239
17265
  }
17240
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
17266
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
17241
17267
  localVarHeaderParameter = {};
17242
17268
  localVarQueryParameter = {};
17243
17269
  // authentication oauth2 required
@@ -17247,11 +17273,9 @@ var ProfilesApiAxiosParamCreator = function (configuration) {
17247
17273
  // authentication oauth2 required
17248
17274
  // oauth required
17249
17275
  _a.sent();
17250
- localVarHeaderParameter['Content-Type'] = 'application/json';
17251
17276
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17252
17277
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17253
17278
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17254
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProfileCommand, localVarRequestOptions, configuration);
17255
17279
  return [2 /*return*/, {
17256
17280
  url: (0, common_1.toPathString)(localVarUrlObj),
17257
17281
  options: localVarRequestOptions,
@@ -17373,18 +17397,17 @@ var ProfilesApiFp = function (configuration) {
17373
17397
  },
17374
17398
  /**
17375
17399
  *
17376
- * @summary Delete Profile.
17377
- * @param {string} profileId
17378
- * @param {string} patientId
17400
+ * @summary Create a Profile.
17401
+ * @param {CreateProfileCommand} [createProfileCommand]
17379
17402
  * @param {*} [options] Override http request option.
17380
17403
  * @throws {RequiredError}
17381
17404
  */
17382
- apiV2ProfilesPatientIdDelete: function (profileId, patientId, options) {
17405
+ apiV2ProfilesPost: function (createProfileCommand, options) {
17383
17406
  return __awaiter(this, void 0, void 0, function () {
17384
17407
  var localVarAxiosArgs;
17385
17408
  return __generator(this, function (_a) {
17386
17409
  switch (_a.label) {
17387
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ProfilesPatientIdDelete(profileId, patientId, options)];
17410
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ProfilesPost(createProfileCommand, options)];
17388
17411
  case 1:
17389
17412
  localVarAxiosArgs = _a.sent();
17390
17413
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -17394,17 +17417,17 @@ var ProfilesApiFp = function (configuration) {
17394
17417
  },
17395
17418
  /**
17396
17419
  *
17397
- * @summary Create a Profile.
17398
- * @param {CreateProfileCommand} [createProfileCommand]
17420
+ * @summary Delete Profile.
17421
+ * @param {string} profileId
17399
17422
  * @param {*} [options] Override http request option.
17400
17423
  * @throws {RequiredError}
17401
17424
  */
17402
- apiV2ProfilesPost: function (createProfileCommand, options) {
17425
+ apiV2ProfilesProfileIdDelete: function (profileId, options) {
17403
17426
  return __awaiter(this, void 0, void 0, function () {
17404
17427
  var localVarAxiosArgs;
17405
17428
  return __generator(this, function (_a) {
17406
17429
  switch (_a.label) {
17407
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ProfilesPost(createProfileCommand, options)];
17430
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ProfilesProfileIdDelete(profileId, options)];
17408
17431
  case 1:
17409
17432
  localVarAxiosArgs = _a.sent();
17410
17433
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -17473,24 +17496,23 @@ var ProfilesApiFactory = function (configuration, basePath, axios) {
17473
17496
  },
17474
17497
  /**
17475
17498
  *
17476
- * @summary Delete Profile.
17477
- * @param {string} profileId
17478
- * @param {string} patientId
17499
+ * @summary Create a Profile.
17500
+ * @param {CreateProfileCommand} [createProfileCommand]
17479
17501
  * @param {*} [options] Override http request option.
17480
17502
  * @throws {RequiredError}
17481
17503
  */
17482
- apiV2ProfilesPatientIdDelete: function (profileId, patientId, options) {
17483
- return localVarFp.apiV2ProfilesPatientIdDelete(profileId, patientId, options).then(function (request) { return request(axios, basePath); });
17504
+ apiV2ProfilesPost: function (createProfileCommand, options) {
17505
+ return localVarFp.apiV2ProfilesPost(createProfileCommand, options).then(function (request) { return request(axios, basePath); });
17484
17506
  },
17485
17507
  /**
17486
17508
  *
17487
- * @summary Create a Profile.
17488
- * @param {CreateProfileCommand} [createProfileCommand]
17509
+ * @summary Delete Profile.
17510
+ * @param {string} profileId
17489
17511
  * @param {*} [options] Override http request option.
17490
17512
  * @throws {RequiredError}
17491
17513
  */
17492
- apiV2ProfilesPost: function (createProfileCommand, options) {
17493
- return localVarFp.apiV2ProfilesPost(createProfileCommand, options).then(function (request) { return request(axios, basePath); });
17514
+ apiV2ProfilesProfileIdDelete: function (profileId, options) {
17515
+ return localVarFp.apiV2ProfilesProfileIdDelete(profileId, options).then(function (request) { return request(axios, basePath); });
17494
17516
  },
17495
17517
  /**
17496
17518
  *
@@ -17553,28 +17575,27 @@ var ProfilesApi = /** @class */ (function (_super) {
17553
17575
  };
17554
17576
  /**
17555
17577
  *
17556
- * @summary Delete Profile.
17557
- * @param {string} profileId
17558
- * @param {string} patientId
17578
+ * @summary Create a Profile.
17579
+ * @param {CreateProfileCommand} [createProfileCommand]
17559
17580
  * @param {*} [options] Override http request option.
17560
17581
  * @throws {RequiredError}
17561
17582
  * @memberof ProfilesApi
17562
17583
  */
17563
- ProfilesApi.prototype.apiV2ProfilesPatientIdDelete = function (profileId, patientId, options) {
17584
+ ProfilesApi.prototype.apiV2ProfilesPost = function (createProfileCommand, options) {
17564
17585
  var _this = this;
17565
- return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesPatientIdDelete(profileId, patientId, options).then(function (request) { return request(_this.axios, _this.basePath); });
17586
+ return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesPost(createProfileCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
17566
17587
  };
17567
17588
  /**
17568
17589
  *
17569
- * @summary Create a Profile.
17570
- * @param {CreateProfileCommand} [createProfileCommand]
17590
+ * @summary Delete Profile.
17591
+ * @param {string} profileId
17571
17592
  * @param {*} [options] Override http request option.
17572
17593
  * @throws {RequiredError}
17573
17594
  * @memberof ProfilesApi
17574
17595
  */
17575
- ProfilesApi.prototype.apiV2ProfilesPost = function (createProfileCommand, options) {
17596
+ ProfilesApi.prototype.apiV2ProfilesProfileIdDelete = function (profileId, options) {
17576
17597
  var _this = this;
17577
- return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesPost(createProfileCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
17598
+ return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesProfileIdDelete(profileId, options).then(function (request) { return request(_this.axios, _this.basePath); });
17578
17599
  };
17579
17600
  /**
17580
17601
  *
@@ -20783,6 +20804,260 @@ var SpecialtyTypesApi = /** @class */ (function (_super) {
20783
20804
  return SpecialtyTypesApi;
20784
20805
  }(base_1.BaseAPI));
20785
20806
  exports.SpecialtyTypesApi = SpecialtyTypesApi;
20807
+ /**
20808
+ * SurveyFormsApi - axios parameter creator
20809
+ * @export
20810
+ */
20811
+ var SurveyFormsApiAxiosParamCreator = function (configuration) {
20812
+ var _this = this;
20813
+ return {
20814
+ /**
20815
+ *
20816
+ * @summary Get survey form by id
20817
+ * @param {string} surveyFormId
20818
+ * @param {string} [languageCode]
20819
+ * @param {*} [options] Override http request option.
20820
+ * @throws {RequiredError}
20821
+ */
20822
+ apiV2SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
20823
+ if (options === void 0) { options = {}; }
20824
+ return __awaiter(_this, void 0, void 0, function () {
20825
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20826
+ return __generator(this, function (_a) {
20827
+ // verify required parameter 'surveyFormId' is not null or undefined
20828
+ (0, common_1.assertParamExists)('apiV2SurveyformsSurveyFormIdGet', 'surveyFormId', surveyFormId);
20829
+ localVarPath = "/api/v2/surveyforms/{surveyFormId}"
20830
+ .replace("{".concat("surveyFormId", "}"), encodeURIComponent(String(surveyFormId)));
20831
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20832
+ if (configuration) {
20833
+ baseOptions = configuration.baseOptions;
20834
+ }
20835
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
20836
+ localVarHeaderParameter = {};
20837
+ localVarQueryParameter = {};
20838
+ if (languageCode !== undefined) {
20839
+ localVarQueryParameter['languageCode'] = languageCode;
20840
+ }
20841
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20842
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20843
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20844
+ return [2 /*return*/, {
20845
+ url: (0, common_1.toPathString)(localVarUrlObj),
20846
+ options: localVarRequestOptions,
20847
+ }];
20848
+ });
20849
+ });
20850
+ },
20851
+ };
20852
+ };
20853
+ exports.SurveyFormsApiAxiosParamCreator = SurveyFormsApiAxiosParamCreator;
20854
+ /**
20855
+ * SurveyFormsApi - functional programming interface
20856
+ * @export
20857
+ */
20858
+ var SurveyFormsApiFp = function (configuration) {
20859
+ var localVarAxiosParamCreator = (0, exports.SurveyFormsApiAxiosParamCreator)(configuration);
20860
+ return {
20861
+ /**
20862
+ *
20863
+ * @summary Get survey form by id
20864
+ * @param {string} surveyFormId
20865
+ * @param {string} [languageCode]
20866
+ * @param {*} [options] Override http request option.
20867
+ * @throws {RequiredError}
20868
+ */
20869
+ apiV2SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
20870
+ return __awaiter(this, void 0, void 0, function () {
20871
+ var localVarAxiosArgs;
20872
+ return __generator(this, function (_a) {
20873
+ switch (_a.label) {
20874
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options)];
20875
+ case 1:
20876
+ localVarAxiosArgs = _a.sent();
20877
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
20878
+ }
20879
+ });
20880
+ });
20881
+ },
20882
+ };
20883
+ };
20884
+ exports.SurveyFormsApiFp = SurveyFormsApiFp;
20885
+ /**
20886
+ * SurveyFormsApi - factory interface
20887
+ * @export
20888
+ */
20889
+ var SurveyFormsApiFactory = function (configuration, basePath, axios) {
20890
+ var localVarFp = (0, exports.SurveyFormsApiFp)(configuration);
20891
+ return {
20892
+ /**
20893
+ *
20894
+ * @summary Get survey form by id
20895
+ * @param {string} surveyFormId
20896
+ * @param {string} [languageCode]
20897
+ * @param {*} [options] Override http request option.
20898
+ * @throws {RequiredError}
20899
+ */
20900
+ apiV2SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
20901
+ return localVarFp.apiV2SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then(function (request) { return request(axios, basePath); });
20902
+ },
20903
+ };
20904
+ };
20905
+ exports.SurveyFormsApiFactory = SurveyFormsApiFactory;
20906
+ /**
20907
+ * SurveyFormsApi - object-oriented interface
20908
+ * @export
20909
+ * @class SurveyFormsApi
20910
+ * @extends {BaseAPI}
20911
+ */
20912
+ var SurveyFormsApi = /** @class */ (function (_super) {
20913
+ __extends(SurveyFormsApi, _super);
20914
+ function SurveyFormsApi() {
20915
+ return _super !== null && _super.apply(this, arguments) || this;
20916
+ }
20917
+ /**
20918
+ *
20919
+ * @summary Get survey form by id
20920
+ * @param {string} surveyFormId
20921
+ * @param {string} [languageCode]
20922
+ * @param {*} [options] Override http request option.
20923
+ * @throws {RequiredError}
20924
+ * @memberof SurveyFormsApi
20925
+ */
20926
+ SurveyFormsApi.prototype.apiV2SurveyformsSurveyFormIdGet = function (surveyFormId, languageCode, options) {
20927
+ var _this = this;
20928
+ return (0, exports.SurveyFormsApiFp)(this.configuration).apiV2SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
20929
+ };
20930
+ return SurveyFormsApi;
20931
+ }(base_1.BaseAPI));
20932
+ exports.SurveyFormsApi = SurveyFormsApi;
20933
+ /**
20934
+ * SurveyResultsApi - axios parameter creator
20935
+ * @export
20936
+ */
20937
+ var SurveyResultsApiAxiosParamCreator = function (configuration) {
20938
+ var _this = this;
20939
+ return {
20940
+ /**
20941
+ *
20942
+ * @summary Create survey result
20943
+ * @param {CreateSurveyResultCommand} [createSurveyResultCommand]
20944
+ * @param {*} [options] Override http request option.
20945
+ * @throws {RequiredError}
20946
+ */
20947
+ apiV2SurveyresultsPost: function (createSurveyResultCommand, options) {
20948
+ if (options === void 0) { options = {}; }
20949
+ return __awaiter(_this, void 0, void 0, function () {
20950
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20951
+ return __generator(this, function (_a) {
20952
+ switch (_a.label) {
20953
+ case 0:
20954
+ localVarPath = "/api/v2/surveyresults";
20955
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20956
+ if (configuration) {
20957
+ baseOptions = configuration.baseOptions;
20958
+ }
20959
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
20960
+ localVarHeaderParameter = {};
20961
+ localVarQueryParameter = {};
20962
+ // authentication oauth2 required
20963
+ // oauth required
20964
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
20965
+ case 1:
20966
+ // authentication oauth2 required
20967
+ // oauth required
20968
+ _a.sent();
20969
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20970
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20971
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20972
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20973
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSurveyResultCommand, localVarRequestOptions, configuration);
20974
+ return [2 /*return*/, {
20975
+ url: (0, common_1.toPathString)(localVarUrlObj),
20976
+ options: localVarRequestOptions,
20977
+ }];
20978
+ }
20979
+ });
20980
+ });
20981
+ },
20982
+ };
20983
+ };
20984
+ exports.SurveyResultsApiAxiosParamCreator = SurveyResultsApiAxiosParamCreator;
20985
+ /**
20986
+ * SurveyResultsApi - functional programming interface
20987
+ * @export
20988
+ */
20989
+ var SurveyResultsApiFp = function (configuration) {
20990
+ var localVarAxiosParamCreator = (0, exports.SurveyResultsApiAxiosParamCreator)(configuration);
20991
+ return {
20992
+ /**
20993
+ *
20994
+ * @summary Create survey result
20995
+ * @param {CreateSurveyResultCommand} [createSurveyResultCommand]
20996
+ * @param {*} [options] Override http request option.
20997
+ * @throws {RequiredError}
20998
+ */
20999
+ apiV2SurveyresultsPost: function (createSurveyResultCommand, options) {
21000
+ return __awaiter(this, void 0, void 0, function () {
21001
+ var localVarAxiosArgs;
21002
+ return __generator(this, function (_a) {
21003
+ switch (_a.label) {
21004
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SurveyresultsPost(createSurveyResultCommand, options)];
21005
+ case 1:
21006
+ localVarAxiosArgs = _a.sent();
21007
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
21008
+ }
21009
+ });
21010
+ });
21011
+ },
21012
+ };
21013
+ };
21014
+ exports.SurveyResultsApiFp = SurveyResultsApiFp;
21015
+ /**
21016
+ * SurveyResultsApi - factory interface
21017
+ * @export
21018
+ */
21019
+ var SurveyResultsApiFactory = function (configuration, basePath, axios) {
21020
+ var localVarFp = (0, exports.SurveyResultsApiFp)(configuration);
21021
+ return {
21022
+ /**
21023
+ *
21024
+ * @summary Create survey result
21025
+ * @param {CreateSurveyResultCommand} [createSurveyResultCommand]
21026
+ * @param {*} [options] Override http request option.
21027
+ * @throws {RequiredError}
21028
+ */
21029
+ apiV2SurveyresultsPost: function (createSurveyResultCommand, options) {
21030
+ return localVarFp.apiV2SurveyresultsPost(createSurveyResultCommand, options).then(function (request) { return request(axios, basePath); });
21031
+ },
21032
+ };
21033
+ };
21034
+ exports.SurveyResultsApiFactory = SurveyResultsApiFactory;
21035
+ /**
21036
+ * SurveyResultsApi - object-oriented interface
21037
+ * @export
21038
+ * @class SurveyResultsApi
21039
+ * @extends {BaseAPI}
21040
+ */
21041
+ var SurveyResultsApi = /** @class */ (function (_super) {
21042
+ __extends(SurveyResultsApi, _super);
21043
+ function SurveyResultsApi() {
21044
+ return _super !== null && _super.apply(this, arguments) || this;
21045
+ }
21046
+ /**
21047
+ *
21048
+ * @summary Create survey result
21049
+ * @param {CreateSurveyResultCommand} [createSurveyResultCommand]
21050
+ * @param {*} [options] Override http request option.
21051
+ * @throws {RequiredError}
21052
+ * @memberof SurveyResultsApi
21053
+ */
21054
+ SurveyResultsApi.prototype.apiV2SurveyresultsPost = function (createSurveyResultCommand, options) {
21055
+ var _this = this;
21056
+ return (0, exports.SurveyResultsApiFp)(this.configuration).apiV2SurveyresultsPost(createSurveyResultCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
21057
+ };
21058
+ return SurveyResultsApi;
21059
+ }(base_1.BaseAPI));
21060
+ exports.SurveyResultsApi = SurveyResultsApi;
20786
21061
  /**
20787
21062
  * TagsApi - axios parameter creator
20788
21063
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "4.7.9",
3
+ "version": "4.8.2",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {