ch-api-client-typescript2 2.9.6 → 2.9.9

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
@@ -305,6 +305,8 @@ var SnsType;
305
305
  SnsType["Twitter"] = "Twitter";
306
306
  SnsType["Facebook"] = "Facebook";
307
307
  SnsType["Instagram"] = "Instagram";
308
+ SnsType["LinkedIn"] = "LinkedIn";
309
+ SnsType["Youtube"] = "Youtube";
308
310
  })(SnsType = exports.SnsType || (exports.SnsType = {}));
309
311
  /**
310
312
  *
@@ -323,47 +325,6 @@ var UserLocationType;
323
325
  var AboutUsApiAxiosParamCreator = function (configuration) {
324
326
  var _this = this;
325
327
  return {
326
- /**
327
- *
328
- * @summary Get AboutUs.
329
- * @param {string} aboutUsId
330
- * @param {string} [languageCode]
331
- * @param {boolean} [returnDefaultValue]
332
- * @param {*} [options] Override http request option.
333
- * @throws {RequiredError}
334
- */
335
- apiV2AboutusAboutUsIdGet: function (aboutUsId, languageCode, returnDefaultValue, options) {
336
- if (options === void 0) { options = {}; }
337
- return __awaiter(_this, void 0, void 0, function () {
338
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
339
- return __generator(this, function (_a) {
340
- // verify required parameter 'aboutUsId' is not null or undefined
341
- (0, common_1.assertParamExists)('apiV2AboutusAboutUsIdGet', 'aboutUsId', aboutUsId);
342
- localVarPath = "/api/v2/aboutus/{aboutUsId}"
343
- .replace("{".concat("aboutUsId", "}"), encodeURIComponent(String(aboutUsId)));
344
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
345
- if (configuration) {
346
- baseOptions = configuration.baseOptions;
347
- }
348
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
349
- localVarHeaderParameter = {};
350
- localVarQueryParameter = {};
351
- if (languageCode !== undefined) {
352
- localVarQueryParameter['languageCode'] = languageCode;
353
- }
354
- if (returnDefaultValue !== undefined) {
355
- localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
356
- }
357
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
358
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
- return [2 /*return*/, {
361
- url: (0, common_1.toPathString)(localVarUrlObj),
362
- options: localVarRequestOptions,
363
- }];
364
- });
365
- });
366
- },
367
328
  /**
368
329
  *
369
330
  * @summary Get all AboutUsList.
@@ -459,6 +420,47 @@ var AboutUsApiAxiosParamCreator = function (configuration) {
459
420
  });
460
421
  });
461
422
  },
423
+ /**
424
+ *
425
+ * @summary Get AboutUs.
426
+ * @param {string} hospitalId
427
+ * @param {string} [languageCode]
428
+ * @param {boolean} [returnDefaultValue]
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ apiV2AboutusHospitalIdGet: function (hospitalId, languageCode, returnDefaultValue, options) {
433
+ if (options === void 0) { options = {}; }
434
+ return __awaiter(_this, void 0, void 0, function () {
435
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
436
+ return __generator(this, function (_a) {
437
+ // verify required parameter 'hospitalId' is not null or undefined
438
+ (0, common_1.assertParamExists)('apiV2AboutusHospitalIdGet', 'hospitalId', hospitalId);
439
+ localVarPath = "/api/v2/aboutus/{hospitalId}"
440
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
441
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
442
+ if (configuration) {
443
+ baseOptions = configuration.baseOptions;
444
+ }
445
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
446
+ localVarHeaderParameter = {};
447
+ localVarQueryParameter = {};
448
+ if (languageCode !== undefined) {
449
+ localVarQueryParameter['languageCode'] = languageCode;
450
+ }
451
+ if (returnDefaultValue !== undefined) {
452
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
453
+ }
454
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
455
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
456
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
457
+ return [2 /*return*/, {
458
+ url: (0, common_1.toPathString)(localVarUrlObj),
459
+ options: localVarRequestOptions,
460
+ }];
461
+ });
462
+ });
463
+ },
462
464
  /**
463
465
  *
464
466
  * @param {string} slug
@@ -511,19 +513,32 @@ var AboutUsApiFp = function (configuration) {
511
513
  return {
512
514
  /**
513
515
  *
514
- * @summary Get AboutUs.
515
- * @param {string} aboutUsId
516
+ * @summary Get all AboutUsList.
517
+ * @param {string} [hospitalId]
518
+ * @param {string} [hospitalName]
519
+ * @param {string} [hospitalSlug]
520
+ * @param {string} [overviewTitle]
521
+ * @param {string} [normalizedOverviewTitle]
522
+ * @param {string} [overview]
523
+ * @param {string} [content]
524
+ * @param {string} [customStyle]
525
+ * @param {string} [background]
526
+ * @param {string} [backgroundThumbnail]
516
527
  * @param {string} [languageCode]
517
528
  * @param {boolean} [returnDefaultValue]
529
+ * @param {boolean} [confirmed]
530
+ * @param {number} [page]
531
+ * @param {number} [limit]
532
+ * @param {Date} [lastRetrieved]
518
533
  * @param {*} [options] Override http request option.
519
534
  * @throws {RequiredError}
520
535
  */
521
- apiV2AboutusAboutUsIdGet: function (aboutUsId, languageCode, returnDefaultValue, options) {
536
+ apiV2AboutusGet: function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
522
537
  return __awaiter(this, void 0, void 0, function () {
523
538
  var localVarAxiosArgs;
524
539
  return __generator(this, function (_a) {
525
540
  switch (_a.label) {
526
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options)];
541
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options)];
527
542
  case 1:
528
543
  localVarAxiosArgs = _a.sent();
529
544
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -533,32 +548,19 @@ var AboutUsApiFp = function (configuration) {
533
548
  },
534
549
  /**
535
550
  *
536
- * @summary Get all AboutUsList.
537
- * @param {string} [hospitalId]
538
- * @param {string} [hospitalName]
539
- * @param {string} [hospitalSlug]
540
- * @param {string} [overviewTitle]
541
- * @param {string} [normalizedOverviewTitle]
542
- * @param {string} [overview]
543
- * @param {string} [content]
544
- * @param {string} [customStyle]
545
- * @param {string} [background]
546
- * @param {string} [backgroundThumbnail]
551
+ * @summary Get AboutUs.
552
+ * @param {string} hospitalId
547
553
  * @param {string} [languageCode]
548
554
  * @param {boolean} [returnDefaultValue]
549
- * @param {boolean} [confirmed]
550
- * @param {number} [page]
551
- * @param {number} [limit]
552
- * @param {Date} [lastRetrieved]
553
555
  * @param {*} [options] Override http request option.
554
556
  * @throws {RequiredError}
555
557
  */
556
- apiV2AboutusGet: function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
558
+ apiV2AboutusHospitalIdGet: function (hospitalId, languageCode, returnDefaultValue, options) {
557
559
  return __awaiter(this, void 0, void 0, function () {
558
560
  var localVarAxiosArgs;
559
561
  return __generator(this, function (_a) {
560
562
  switch (_a.label) {
561
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options)];
563
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options)];
562
564
  case 1:
563
565
  localVarAxiosArgs = _a.sent();
564
566
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -597,18 +599,6 @@ exports.AboutUsApiFp = AboutUsApiFp;
597
599
  var AboutUsApiFactory = function (configuration, basePath, axios) {
598
600
  var localVarFp = (0, exports.AboutUsApiFp)(configuration);
599
601
  return {
600
- /**
601
- *
602
- * @summary Get AboutUs.
603
- * @param {string} aboutUsId
604
- * @param {string} [languageCode]
605
- * @param {boolean} [returnDefaultValue]
606
- * @param {*} [options] Override http request option.
607
- * @throws {RequiredError}
608
- */
609
- apiV2AboutusAboutUsIdGet: function (aboutUsId, languageCode, returnDefaultValue, options) {
610
- return localVarFp.apiV2AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
611
- },
612
602
  /**
613
603
  *
614
604
  * @summary Get all AboutUsList.
@@ -634,6 +624,18 @@ var AboutUsApiFactory = function (configuration, basePath, axios) {
634
624
  apiV2AboutusGet: function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
635
625
  return localVarFp.apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
636
626
  },
627
+ /**
628
+ *
629
+ * @summary Get AboutUs.
630
+ * @param {string} hospitalId
631
+ * @param {string} [languageCode]
632
+ * @param {boolean} [returnDefaultValue]
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ apiV2AboutusHospitalIdGet: function (hospitalId, languageCode, returnDefaultValue, options) {
637
+ return localVarFp.apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
638
+ },
637
639
  /**
638
640
  *
639
641
  * @param {string} slug
@@ -659,20 +661,6 @@ var AboutUsApi = /** @class */ (function (_super) {
659
661
  function AboutUsApi() {
660
662
  return _super !== null && _super.apply(this, arguments) || this;
661
663
  }
662
- /**
663
- *
664
- * @summary Get AboutUs.
665
- * @param {string} aboutUsId
666
- * @param {string} [languageCode]
667
- * @param {boolean} [returnDefaultValue]
668
- * @param {*} [options] Override http request option.
669
- * @throws {RequiredError}
670
- * @memberof AboutUsApi
671
- */
672
- AboutUsApi.prototype.apiV2AboutusAboutUsIdGet = function (aboutUsId, languageCode, returnDefaultValue, options) {
673
- var _this = this;
674
- return (0, exports.AboutUsApiFp)(this.configuration).apiV2AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
675
- };
676
664
  /**
677
665
  *
678
666
  * @summary Get all AboutUsList.
@@ -700,6 +688,20 @@ var AboutUsApi = /** @class */ (function (_super) {
700
688
  var _this = this;
701
689
  return (0, exports.AboutUsApiFp)(this.configuration).apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
702
690
  };
691
+ /**
692
+ *
693
+ * @summary Get AboutUs.
694
+ * @param {string} hospitalId
695
+ * @param {string} [languageCode]
696
+ * @param {boolean} [returnDefaultValue]
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ * @memberof AboutUsApi
700
+ */
701
+ AboutUsApi.prototype.apiV2AboutusHospitalIdGet = function (hospitalId, languageCode, returnDefaultValue, options) {
702
+ var _this = this;
703
+ return (0, exports.AboutUsApiFp)(this.configuration).apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
704
+ };
703
705
  /**
704
706
  *
705
707
  * @param {string} slug
@@ -2174,13 +2176,12 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2174
2176
  return {
2175
2177
  /**
2176
2178
  *
2177
- * @summary Approve booking.
2179
+ * @summary Get booking.
2178
2180
  * @param {string} bookingId
2179
- * @param {ApproveBookingCommand} [approveBookingCommand]
2180
2181
  * @param {*} [options] Override http request option.
2181
2182
  * @throws {RequiredError}
2182
2183
  */
2183
- apiV2BookingsBookingIdApprovePut: function (bookingId, approveBookingCommand, options) {
2184
+ apiV2BookingsBookingIdGet: function (bookingId, options) {
2184
2185
  if (options === void 0) { options = {}; }
2185
2186
  return __awaiter(_this, void 0, void 0, function () {
2186
2187
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2188,14 +2189,14 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2188
2189
  switch (_a.label) {
2189
2190
  case 0:
2190
2191
  // verify required parameter 'bookingId' is not null or undefined
2191
- (0, common_1.assertParamExists)('apiV2BookingsBookingIdApprovePut', 'bookingId', bookingId);
2192
- localVarPath = "/api/v2/bookings/{bookingId}/approve"
2192
+ (0, common_1.assertParamExists)('apiV2BookingsBookingIdGet', 'bookingId', bookingId);
2193
+ localVarPath = "/api/v2/bookings/{bookingId}"
2193
2194
  .replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
2194
2195
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2195
2196
  if (configuration) {
2196
2197
  baseOptions = configuration.baseOptions;
2197
2198
  }
2198
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2199
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2199
2200
  localVarHeaderParameter = {};
2200
2201
  localVarQueryParameter = {};
2201
2202
  // authentication oauth2 required
@@ -2205,11 +2206,9 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2205
2206
  // authentication oauth2 required
2206
2207
  // oauth required
2207
2208
  _a.sent();
2208
- localVarHeaderParameter['Content-Type'] = 'application/json';
2209
2209
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2210
2210
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2211
2211
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2212
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(approveBookingCommand, localVarRequestOptions, configuration);
2213
2212
  return [2 /*return*/, {
2214
2213
  url: (0, common_1.toPathString)(localVarUrlObj),
2215
2214
  options: localVarRequestOptions,
@@ -2220,12 +2219,12 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2220
2219
  },
2221
2220
  /**
2222
2221
  *
2223
- * @summary Cancel booking.
2222
+ * @summary Pay booking.
2224
2223
  * @param {string} bookingId
2225
2224
  * @param {*} [options] Override http request option.
2226
2225
  * @throws {RequiredError}
2227
2226
  */
2228
- apiV2BookingsBookingIdCancelPut: function (bookingId, options) {
2227
+ apiV2BookingsBookingIdPayPost: function (bookingId, options) {
2229
2228
  if (options === void 0) { options = {}; }
2230
2229
  return __awaiter(_this, void 0, void 0, function () {
2231
2230
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2233,14 +2232,14 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2233
2232
  switch (_a.label) {
2234
2233
  case 0:
2235
2234
  // verify required parameter 'bookingId' is not null or undefined
2236
- (0, common_1.assertParamExists)('apiV2BookingsBookingIdCancelPut', 'bookingId', bookingId);
2237
- localVarPath = "/api/v2/bookings/{bookingId}/cancel"
2235
+ (0, common_1.assertParamExists)('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId);
2236
+ localVarPath = "/api/v2/bookings/{bookingId}/pay"
2238
2237
  .replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
2239
2238
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2240
2239
  if (configuration) {
2241
2240
  baseOptions = configuration.baseOptions;
2242
2241
  }
2243
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2242
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2244
2243
  localVarHeaderParameter = {};
2245
2244
  localVarQueryParameter = {};
2246
2245
  // authentication oauth2 required
@@ -2263,12 +2262,13 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2263
2262
  },
2264
2263
  /**
2265
2264
  *
2266
- * @summary Delete booking.
2265
+ * @summary Update booking.
2267
2266
  * @param {string} bookingId
2267
+ * @param {UpdateBookingCommand} [updateBookingCommand]
2268
2268
  * @param {*} [options] Override http request option.
2269
2269
  * @throws {RequiredError}
2270
2270
  */
2271
- apiV2BookingsBookingIdDelete: function (bookingId, options) {
2271
+ apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
2272
2272
  if (options === void 0) { options = {}; }
2273
2273
  return __awaiter(_this, void 0, void 0, function () {
2274
2274
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2276,14 +2276,14 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2276
2276
  switch (_a.label) {
2277
2277
  case 0:
2278
2278
  // verify required parameter 'bookingId' is not null or undefined
2279
- (0, common_1.assertParamExists)('apiV2BookingsBookingIdDelete', 'bookingId', bookingId);
2279
+ (0, common_1.assertParamExists)('apiV2BookingsBookingIdPut', 'bookingId', bookingId);
2280
2280
  localVarPath = "/api/v2/bookings/{bookingId}"
2281
2281
  .replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
2282
2282
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2283
2283
  if (configuration) {
2284
2284
  baseOptions = configuration.baseOptions;
2285
2285
  }
2286
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
2286
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2287
2287
  localVarHeaderParameter = {};
2288
2288
  localVarQueryParameter = {};
2289
2289
  // authentication oauth2 required
@@ -2293,9 +2293,11 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2293
2293
  // authentication oauth2 required
2294
2294
  // oauth required
2295
2295
  _a.sent();
2296
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2296
2297
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2297
2298
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2298
2299
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2300
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBookingCommand, localVarRequestOptions, configuration);
2299
2301
  return [2 /*return*/, {
2300
2302
  url: (0, common_1.toPathString)(localVarUrlObj),
2301
2303
  options: localVarRequestOptions,
@@ -2306,22 +2308,27 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2306
2308
  },
2307
2309
  /**
2308
2310
  *
2309
- * @summary Get booking.
2310
- * @param {string} bookingId
2311
+ * @summary Get all bookings.
2312
+ * @param {string} [searchString]
2313
+ * @param {boolean} [isOpen]
2314
+ * @param {boolean} [isCompleted]
2315
+ * @param {BookingStatus} [status]
2316
+ * @param {string} [dealPackageId]
2317
+ * @param {string} [hospitalId]
2318
+ * @param {number} [page]
2319
+ * @param {number} [limit]
2320
+ * @param {Date} [lastRetrieved]
2311
2321
  * @param {*} [options] Override http request option.
2312
2322
  * @throws {RequiredError}
2313
2323
  */
2314
- apiV2BookingsBookingIdGet: function (bookingId, options) {
2324
+ apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options) {
2315
2325
  if (options === void 0) { options = {}; }
2316
2326
  return __awaiter(_this, void 0, void 0, function () {
2317
2327
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2318
2328
  return __generator(this, function (_a) {
2319
2329
  switch (_a.label) {
2320
2330
  case 0:
2321
- // verify required parameter 'bookingId' is not null or undefined
2322
- (0, common_1.assertParamExists)('apiV2BookingsBookingIdGet', 'bookingId', bookingId);
2323
- localVarPath = "/api/v2/bookings/{bookingId}"
2324
- .replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
2331
+ localVarPath = "/api/v2/bookings";
2325
2332
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2326
2333
  if (configuration) {
2327
2334
  baseOptions = configuration.baseOptions;
@@ -2336,6 +2343,35 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2336
2343
  // authentication oauth2 required
2337
2344
  // oauth required
2338
2345
  _a.sent();
2346
+ if (searchString !== undefined) {
2347
+ localVarQueryParameter['SearchString'] = searchString;
2348
+ }
2349
+ if (isOpen !== undefined) {
2350
+ localVarQueryParameter['IsOpen'] = isOpen;
2351
+ }
2352
+ if (isCompleted !== undefined) {
2353
+ localVarQueryParameter['IsCompleted'] = isCompleted;
2354
+ }
2355
+ if (status !== undefined) {
2356
+ localVarQueryParameter['Status'] = status;
2357
+ }
2358
+ if (dealPackageId !== undefined) {
2359
+ localVarQueryParameter['DealPackageId'] = dealPackageId;
2360
+ }
2361
+ if (hospitalId !== undefined) {
2362
+ localVarQueryParameter['HospitalId'] = hospitalId;
2363
+ }
2364
+ if (page !== undefined) {
2365
+ localVarQueryParameter['page'] = page;
2366
+ }
2367
+ if (limit !== undefined) {
2368
+ localVarQueryParameter['limit'] = limit;
2369
+ }
2370
+ if (lastRetrieved !== undefined) {
2371
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
2372
+ lastRetrieved.toISOString() :
2373
+ lastRetrieved;
2374
+ }
2339
2375
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2340
2376
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2341
2377
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2349,22 +2385,23 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2349
2385
  },
2350
2386
  /**
2351
2387
  *
2352
- * @summary Mark as Paid booking.
2353
- * @param {string} bookingId
2388
+ * @summary Create booking.
2389
+ * @param {string} requestId
2390
+ * @param {CreateBookingCommand} [createBookingCommand]
2354
2391
  * @param {*} [options] Override http request option.
2355
2392
  * @throws {RequiredError}
2356
2393
  */
2357
- apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
2394
+ apiV2BookingsRequestIdPost: function (requestId, createBookingCommand, options) {
2358
2395
  if (options === void 0) { options = {}; }
2359
2396
  return __awaiter(_this, void 0, void 0, function () {
2360
2397
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2361
2398
  return __generator(this, function (_a) {
2362
2399
  switch (_a.label) {
2363
2400
  case 0:
2364
- // verify required parameter 'bookingId' is not null or undefined
2365
- (0, common_1.assertParamExists)('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId);
2366
- localVarPath = "/api/v2/bookings/{bookingId}/paid"
2367
- .replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
2401
+ // verify required parameter 'requestId' is not null or undefined
2402
+ (0, common_1.assertParamExists)('apiV2BookingsRequestIdPost', 'requestId', requestId);
2403
+ localVarPath = "/api/v2/bookings/{requestId}"
2404
+ .replace("{".concat("requestId", "}"), encodeURIComponent(String(requestId)));
2368
2405
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2369
2406
  if (configuration) {
2370
2407
  baseOptions = configuration.baseOptions;
@@ -2379,9 +2416,11 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2379
2416
  // authentication oauth2 required
2380
2417
  // oauth required
2381
2418
  _a.sent();
2419
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2382
2420
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2383
2421
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2384
2422
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2423
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingCommand, localVarRequestOptions, configuration);
2385
2424
  return [2 /*return*/, {
2386
2425
  url: (0, common_1.toPathString)(localVarUrlObj),
2387
2426
  options: localVarRequestOptions,
@@ -2390,345 +2429,26 @@ var BookingsApiAxiosParamCreator = function (configuration) {
2390
2429
  });
2391
2430
  });
2392
2431
  },
2432
+ };
2433
+ };
2434
+ exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
2435
+ /**
2436
+ * BookingsApi - functional programming interface
2437
+ * @export
2438
+ */
2439
+ var BookingsApiFp = function (configuration) {
2440
+ var localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
2441
+ return {
2393
2442
  /**
2394
2443
  *
2395
- * @summary Pay booking.
2444
+ * @summary Get booking.
2396
2445
  * @param {string} bookingId
2397
2446
  * @param {*} [options] Override http request option.
2398
2447
  * @throws {RequiredError}
2399
2448
  */
2400
- apiV2BookingsBookingIdPayPost: function (bookingId, options) {
2401
- if (options === void 0) { options = {}; }
2402
- return __awaiter(_this, void 0, void 0, function () {
2403
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2404
- return __generator(this, function (_a) {
2405
- switch (_a.label) {
2406
- case 0:
2407
- // verify required parameter 'bookingId' is not null or undefined
2408
- (0, common_1.assertParamExists)('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId);
2409
- localVarPath = "/api/v2/bookings/{bookingId}/pay"
2410
- .replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
2411
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2412
- if (configuration) {
2413
- baseOptions = configuration.baseOptions;
2414
- }
2415
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2416
- localVarHeaderParameter = {};
2417
- localVarQueryParameter = {};
2418
- // authentication oauth2 required
2419
- // oauth required
2420
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
2421
- case 1:
2422
- // authentication oauth2 required
2423
- // oauth required
2424
- _a.sent();
2425
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2426
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2427
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2428
- return [2 /*return*/, {
2429
- url: (0, common_1.toPathString)(localVarUrlObj),
2430
- options: localVarRequestOptions,
2431
- }];
2432
- }
2433
- });
2434
- });
2435
- },
2436
- /**
2437
- *
2438
- * @summary Update booking.
2439
- * @param {string} bookingId
2440
- * @param {UpdateBookingCommand} [updateBookingCommand]
2441
- * @param {*} [options] Override http request option.
2442
- * @throws {RequiredError}
2443
- */
2444
- apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
2445
- if (options === void 0) { options = {}; }
2446
- return __awaiter(_this, void 0, void 0, function () {
2447
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2448
- return __generator(this, function (_a) {
2449
- switch (_a.label) {
2450
- case 0:
2451
- // verify required parameter 'bookingId' is not null or undefined
2452
- (0, common_1.assertParamExists)('apiV2BookingsBookingIdPut', 'bookingId', bookingId);
2453
- localVarPath = "/api/v2/bookings/{bookingId}"
2454
- .replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
2455
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2456
- if (configuration) {
2457
- baseOptions = configuration.baseOptions;
2458
- }
2459
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2460
- localVarHeaderParameter = {};
2461
- localVarQueryParameter = {};
2462
- // authentication oauth2 required
2463
- // oauth required
2464
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
2465
- case 1:
2466
- // authentication oauth2 required
2467
- // oauth required
2468
- _a.sent();
2469
- localVarHeaderParameter['Content-Type'] = 'application/json';
2470
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2471
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2472
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2473
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBookingCommand, localVarRequestOptions, configuration);
2474
- return [2 /*return*/, {
2475
- url: (0, common_1.toPathString)(localVarUrlObj),
2476
- options: localVarRequestOptions,
2477
- }];
2478
- }
2479
- });
2480
- });
2481
- },
2482
- /**
2483
- *
2484
- * @summary Reject booking.
2485
- * @param {string} bookingId
2486
- * @param {RejectBookingCommand} [rejectBookingCommand]
2487
- * @param {*} [options] Override http request option.
2488
- * @throws {RequiredError}
2489
- */
2490
- apiV2BookingsBookingIdRejectPut: function (bookingId, rejectBookingCommand, options) {
2491
- if (options === void 0) { options = {}; }
2492
- return __awaiter(_this, void 0, void 0, function () {
2493
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2494
- return __generator(this, function (_a) {
2495
- switch (_a.label) {
2496
- case 0:
2497
- // verify required parameter 'bookingId' is not null or undefined
2498
- (0, common_1.assertParamExists)('apiV2BookingsBookingIdRejectPut', 'bookingId', bookingId);
2499
- localVarPath = "/api/v2/bookings/{bookingId}/reject"
2500
- .replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
2501
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2502
- if (configuration) {
2503
- baseOptions = configuration.baseOptions;
2504
- }
2505
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2506
- localVarHeaderParameter = {};
2507
- localVarQueryParameter = {};
2508
- // authentication oauth2 required
2509
- // oauth required
2510
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
2511
- case 1:
2512
- // authentication oauth2 required
2513
- // oauth required
2514
- _a.sent();
2515
- localVarHeaderParameter['Content-Type'] = 'application/json';
2516
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2517
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2518
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2519
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rejectBookingCommand, localVarRequestOptions, configuration);
2520
- return [2 /*return*/, {
2521
- url: (0, common_1.toPathString)(localVarUrlObj),
2522
- options: localVarRequestOptions,
2523
- }];
2524
- }
2525
- });
2526
- });
2527
- },
2528
- /**
2529
- *
2530
- * @summary Get all bookings.
2531
- * @param {string} [searchString]
2532
- * @param {boolean} [isOpen]
2533
- * @param {boolean} [isCompleted]
2534
- * @param {BookingStatus} [status]
2535
- * @param {string} [dealPackageId]
2536
- * @param {string} [hospitalId]
2537
- * @param {number} [page]
2538
- * @param {number} [limit]
2539
- * @param {Date} [lastRetrieved]
2540
- * @param {*} [options] Override http request option.
2541
- * @throws {RequiredError}
2542
- */
2543
- apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options) {
2544
- if (options === void 0) { options = {}; }
2545
- return __awaiter(_this, void 0, void 0, function () {
2546
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2547
- return __generator(this, function (_a) {
2548
- switch (_a.label) {
2549
- case 0:
2550
- localVarPath = "/api/v2/bookings";
2551
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2552
- if (configuration) {
2553
- baseOptions = configuration.baseOptions;
2554
- }
2555
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2556
- localVarHeaderParameter = {};
2557
- localVarQueryParameter = {};
2558
- // authentication oauth2 required
2559
- // oauth required
2560
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
2561
- case 1:
2562
- // authentication oauth2 required
2563
- // oauth required
2564
- _a.sent();
2565
- if (searchString !== undefined) {
2566
- localVarQueryParameter['SearchString'] = searchString;
2567
- }
2568
- if (isOpen !== undefined) {
2569
- localVarQueryParameter['IsOpen'] = isOpen;
2570
- }
2571
- if (isCompleted !== undefined) {
2572
- localVarQueryParameter['IsCompleted'] = isCompleted;
2573
- }
2574
- if (status !== undefined) {
2575
- localVarQueryParameter['Status'] = status;
2576
- }
2577
- if (dealPackageId !== undefined) {
2578
- localVarQueryParameter['DealPackageId'] = dealPackageId;
2579
- }
2580
- if (hospitalId !== undefined) {
2581
- localVarQueryParameter['HospitalId'] = hospitalId;
2582
- }
2583
- if (page !== undefined) {
2584
- localVarQueryParameter['page'] = page;
2585
- }
2586
- if (limit !== undefined) {
2587
- localVarQueryParameter['limit'] = limit;
2588
- }
2589
- if (lastRetrieved !== undefined) {
2590
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
2591
- lastRetrieved.toISOString() :
2592
- lastRetrieved;
2593
- }
2594
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2595
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2596
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2597
- return [2 /*return*/, {
2598
- url: (0, common_1.toPathString)(localVarUrlObj),
2599
- options: localVarRequestOptions,
2600
- }];
2601
- }
2602
- });
2603
- });
2604
- },
2605
- /**
2606
- *
2607
- * @summary Create booking.
2608
- * @param {string} requestId
2609
- * @param {CreateBookingCommand} [createBookingCommand]
2610
- * @param {*} [options] Override http request option.
2611
- * @throws {RequiredError}
2612
- */
2613
- apiV2BookingsRequestIdPost: function (requestId, createBookingCommand, options) {
2614
- if (options === void 0) { options = {}; }
2615
- return __awaiter(_this, void 0, void 0, function () {
2616
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2617
- return __generator(this, function (_a) {
2618
- switch (_a.label) {
2619
- case 0:
2620
- // verify required parameter 'requestId' is not null or undefined
2621
- (0, common_1.assertParamExists)('apiV2BookingsRequestIdPost', 'requestId', requestId);
2622
- localVarPath = "/api/v2/bookings/{requestId}"
2623
- .replace("{".concat("requestId", "}"), encodeURIComponent(String(requestId)));
2624
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2625
- if (configuration) {
2626
- baseOptions = configuration.baseOptions;
2627
- }
2628
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2629
- localVarHeaderParameter = {};
2630
- localVarQueryParameter = {};
2631
- // authentication oauth2 required
2632
- // oauth required
2633
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
2634
- case 1:
2635
- // authentication oauth2 required
2636
- // oauth required
2637
- _a.sent();
2638
- localVarHeaderParameter['Content-Type'] = 'application/json';
2639
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2640
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2641
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2642
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingCommand, localVarRequestOptions, configuration);
2643
- return [2 /*return*/, {
2644
- url: (0, common_1.toPathString)(localVarUrlObj),
2645
- options: localVarRequestOptions,
2646
- }];
2647
- }
2648
- });
2649
- });
2650
- },
2651
- };
2652
- };
2653
- exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
2654
- /**
2655
- * BookingsApi - functional programming interface
2656
- * @export
2657
- */
2658
- var BookingsApiFp = function (configuration) {
2659
- var localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
2660
- return {
2661
- /**
2662
- *
2663
- * @summary Approve booking.
2664
- * @param {string} bookingId
2665
- * @param {ApproveBookingCommand} [approveBookingCommand]
2666
- * @param {*} [options] Override http request option.
2667
- * @throws {RequiredError}
2668
- */
2669
- apiV2BookingsBookingIdApprovePut: function (bookingId, approveBookingCommand, options) {
2670
- return __awaiter(this, void 0, void 0, function () {
2671
- var localVarAxiosArgs;
2672
- return __generator(this, function (_a) {
2673
- switch (_a.label) {
2674
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options)];
2675
- case 1:
2676
- localVarAxiosArgs = _a.sent();
2677
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2678
- }
2679
- });
2680
- });
2681
- },
2682
- /**
2683
- *
2684
- * @summary Cancel booking.
2685
- * @param {string} bookingId
2686
- * @param {*} [options] Override http request option.
2687
- * @throws {RequiredError}
2688
- */
2689
- apiV2BookingsBookingIdCancelPut: function (bookingId, options) {
2690
- return __awaiter(this, void 0, void 0, function () {
2691
- var localVarAxiosArgs;
2692
- return __generator(this, function (_a) {
2693
- switch (_a.label) {
2694
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdCancelPut(bookingId, options)];
2695
- case 1:
2696
- localVarAxiosArgs = _a.sent();
2697
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2698
- }
2699
- });
2700
- });
2701
- },
2702
- /**
2703
- *
2704
- * @summary Delete booking.
2705
- * @param {string} bookingId
2706
- * @param {*} [options] Override http request option.
2707
- * @throws {RequiredError}
2708
- */
2709
- apiV2BookingsBookingIdDelete: function (bookingId, options) {
2710
- return __awaiter(this, void 0, void 0, function () {
2711
- var localVarAxiosArgs;
2712
- return __generator(this, function (_a) {
2713
- switch (_a.label) {
2714
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdDelete(bookingId, options)];
2715
- case 1:
2716
- localVarAxiosArgs = _a.sent();
2717
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2718
- }
2719
- });
2720
- });
2721
- },
2722
- /**
2723
- *
2724
- * @summary Get booking.
2725
- * @param {string} bookingId
2726
- * @param {*} [options] Override http request option.
2727
- * @throws {RequiredError}
2728
- */
2729
- apiV2BookingsBookingIdGet: function (bookingId, options) {
2730
- return __awaiter(this, void 0, void 0, function () {
2731
- var localVarAxiosArgs;
2449
+ apiV2BookingsBookingIdGet: function (bookingId, options) {
2450
+ return __awaiter(this, void 0, void 0, function () {
2451
+ var localVarAxiosArgs;
2732
2452
  return __generator(this, function (_a) {
2733
2453
  switch (_a.label) {
2734
2454
  case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options)];
@@ -2739,26 +2459,6 @@ var BookingsApiFp = function (configuration) {
2739
2459
  });
2740
2460
  });
2741
2461
  },
2742
- /**
2743
- *
2744
- * @summary Mark as Paid booking.
2745
- * @param {string} bookingId
2746
- * @param {*} [options] Override http request option.
2747
- * @throws {RequiredError}
2748
- */
2749
- apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
2750
- return __awaiter(this, void 0, void 0, function () {
2751
- var localVarAxiosArgs;
2752
- return __generator(this, function (_a) {
2753
- switch (_a.label) {
2754
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options)];
2755
- case 1:
2756
- localVarAxiosArgs = _a.sent();
2757
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2758
- }
2759
- });
2760
- });
2761
- },
2762
2462
  /**
2763
2463
  *
2764
2464
  * @summary Pay booking.
@@ -2766,33 +2466,12 @@ var BookingsApiFp = function (configuration) {
2766
2466
  * @param {*} [options] Override http request option.
2767
2467
  * @throws {RequiredError}
2768
2468
  */
2769
- apiV2BookingsBookingIdPayPost: function (bookingId, options) {
2770
- return __awaiter(this, void 0, void 0, function () {
2771
- var localVarAxiosArgs;
2772
- return __generator(this, function (_a) {
2773
- switch (_a.label) {
2774
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options)];
2775
- case 1:
2776
- localVarAxiosArgs = _a.sent();
2777
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2778
- }
2779
- });
2780
- });
2781
- },
2782
- /**
2783
- *
2784
- * @summary Update booking.
2785
- * @param {string} bookingId
2786
- * @param {UpdateBookingCommand} [updateBookingCommand]
2787
- * @param {*} [options] Override http request option.
2788
- * @throws {RequiredError}
2789
- */
2790
- apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
2469
+ apiV2BookingsBookingIdPayPost: function (bookingId, options) {
2791
2470
  return __awaiter(this, void 0, void 0, function () {
2792
2471
  var localVarAxiosArgs;
2793
2472
  return __generator(this, function (_a) {
2794
2473
  switch (_a.label) {
2795
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options)];
2474
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options)];
2796
2475
  case 1:
2797
2476
  localVarAxiosArgs = _a.sent();
2798
2477
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2802,18 +2481,18 @@ var BookingsApiFp = function (configuration) {
2802
2481
  },
2803
2482
  /**
2804
2483
  *
2805
- * @summary Reject booking.
2484
+ * @summary Update booking.
2806
2485
  * @param {string} bookingId
2807
- * @param {RejectBookingCommand} [rejectBookingCommand]
2486
+ * @param {UpdateBookingCommand} [updateBookingCommand]
2808
2487
  * @param {*} [options] Override http request option.
2809
2488
  * @throws {RequiredError}
2810
2489
  */
2811
- apiV2BookingsBookingIdRejectPut: function (bookingId, rejectBookingCommand, options) {
2490
+ apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
2812
2491
  return __awaiter(this, void 0, void 0, function () {
2813
2492
  var localVarAxiosArgs;
2814
2493
  return __generator(this, function (_a) {
2815
2494
  switch (_a.label) {
2816
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options)];
2495
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options)];
2817
2496
  case 1:
2818
2497
  localVarAxiosArgs = _a.sent();
2819
2498
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2880,37 +2559,6 @@ exports.BookingsApiFp = BookingsApiFp;
2880
2559
  var BookingsApiFactory = function (configuration, basePath, axios) {
2881
2560
  var localVarFp = (0, exports.BookingsApiFp)(configuration);
2882
2561
  return {
2883
- /**
2884
- *
2885
- * @summary Approve booking.
2886
- * @param {string} bookingId
2887
- * @param {ApproveBookingCommand} [approveBookingCommand]
2888
- * @param {*} [options] Override http request option.
2889
- * @throws {RequiredError}
2890
- */
2891
- apiV2BookingsBookingIdApprovePut: function (bookingId, approveBookingCommand, options) {
2892
- return localVarFp.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then(function (request) { return request(axios, basePath); });
2893
- },
2894
- /**
2895
- *
2896
- * @summary Cancel booking.
2897
- * @param {string} bookingId
2898
- * @param {*} [options] Override http request option.
2899
- * @throws {RequiredError}
2900
- */
2901
- apiV2BookingsBookingIdCancelPut: function (bookingId, options) {
2902
- return localVarFp.apiV2BookingsBookingIdCancelPut(bookingId, options).then(function (request) { return request(axios, basePath); });
2903
- },
2904
- /**
2905
- *
2906
- * @summary Delete booking.
2907
- * @param {string} bookingId
2908
- * @param {*} [options] Override http request option.
2909
- * @throws {RequiredError}
2910
- */
2911
- apiV2BookingsBookingIdDelete: function (bookingId, options) {
2912
- return localVarFp.apiV2BookingsBookingIdDelete(bookingId, options).then(function (request) { return request(axios, basePath); });
2913
- },
2914
2562
  /**
2915
2563
  *
2916
2564
  * @summary Get booking.
@@ -2921,16 +2569,6 @@ var BookingsApiFactory = function (configuration, basePath, axios) {
2921
2569
  apiV2BookingsBookingIdGet: function (bookingId, options) {
2922
2570
  return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(axios, basePath); });
2923
2571
  },
2924
- /**
2925
- *
2926
- * @summary Mark as Paid booking.
2927
- * @param {string} bookingId
2928
- * @param {*} [options] Override http request option.
2929
- * @throws {RequiredError}
2930
- */
2931
- apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
2932
- return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(axios, basePath); });
2933
- },
2934
2572
  /**
2935
2573
  *
2936
2574
  * @summary Pay booking.
@@ -2952,17 +2590,6 @@ var BookingsApiFactory = function (configuration, basePath, axios) {
2952
2590
  apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
2953
2591
  return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then(function (request) { return request(axios, basePath); });
2954
2592
  },
2955
- /**
2956
- *
2957
- * @summary Reject booking.
2958
- * @param {string} bookingId
2959
- * @param {RejectBookingCommand} [rejectBookingCommand]
2960
- * @param {*} [options] Override http request option.
2961
- * @throws {RequiredError}
2962
- */
2963
- apiV2BookingsBookingIdRejectPut: function (bookingId, rejectBookingCommand, options) {
2964
- return localVarFp.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then(function (request) { return request(axios, basePath); });
2965
- },
2966
2593
  /**
2967
2594
  *
2968
2595
  * @summary Get all bookings.
@@ -3006,43 +2633,6 @@ var BookingsApi = /** @class */ (function (_super) {
3006
2633
  function BookingsApi() {
3007
2634
  return _super !== null && _super.apply(this, arguments) || this;
3008
2635
  }
3009
- /**
3010
- *
3011
- * @summary Approve booking.
3012
- * @param {string} bookingId
3013
- * @param {ApproveBookingCommand} [approveBookingCommand]
3014
- * @param {*} [options] Override http request option.
3015
- * @throws {RequiredError}
3016
- * @memberof BookingsApi
3017
- */
3018
- BookingsApi.prototype.apiV2BookingsBookingIdApprovePut = function (bookingId, approveBookingCommand, options) {
3019
- var _this = this;
3020
- return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
3021
- };
3022
- /**
3023
- *
3024
- * @summary Cancel booking.
3025
- * @param {string} bookingId
3026
- * @param {*} [options] Override http request option.
3027
- * @throws {RequiredError}
3028
- * @memberof BookingsApi
3029
- */
3030
- BookingsApi.prototype.apiV2BookingsBookingIdCancelPut = function (bookingId, options) {
3031
- var _this = this;
3032
- return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdCancelPut(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3033
- };
3034
- /**
3035
- *
3036
- * @summary Delete booking.
3037
- * @param {string} bookingId
3038
- * @param {*} [options] Override http request option.
3039
- * @throws {RequiredError}
3040
- * @memberof BookingsApi
3041
- */
3042
- BookingsApi.prototype.apiV2BookingsBookingIdDelete = function (bookingId, options) {
3043
- var _this = this;
3044
- return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdDelete(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3045
- };
3046
2636
  /**
3047
2637
  *
3048
2638
  * @summary Get booking.
@@ -3055,18 +2645,6 @@ var BookingsApi = /** @class */ (function (_super) {
3055
2645
  var _this = this;
3056
2646
  return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3057
2647
  };
3058
- /**
3059
- *
3060
- * @summary Mark as Paid booking.
3061
- * @param {string} bookingId
3062
- * @param {*} [options] Override http request option.
3063
- * @throws {RequiredError}
3064
- * @memberof BookingsApi
3065
- */
3066
- BookingsApi.prototype.apiV2BookingsBookingIdPaidPost = function (bookingId, options) {
3067
- var _this = this;
3068
- return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3069
- };
3070
2648
  /**
3071
2649
  *
3072
2650
  * @summary Pay booking.
@@ -3092,19 +2670,6 @@ var BookingsApi = /** @class */ (function (_super) {
3092
2670
  var _this = this;
3093
2671
  return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
3094
2672
  };
3095
- /**
3096
- *
3097
- * @summary Reject booking.
3098
- * @param {string} bookingId
3099
- * @param {RejectBookingCommand} [rejectBookingCommand]
3100
- * @param {*} [options] Override http request option.
3101
- * @throws {RequiredError}
3102
- * @memberof BookingsApi
3103
- */
3104
- BookingsApi.prototype.apiV2BookingsBookingIdRejectPut = function (bookingId, rejectBookingCommand, options) {
3105
- var _this = this;
3106
- return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
3107
- };
3108
2673
  /**
3109
2674
  *
3110
2675
  * @summary Get all bookings.
@@ -3997,194 +3562,19 @@ var CommunicationsApi = /** @class */ (function (_super) {
3997
3562
  exports.CommunicationsApi = CommunicationsApi;
3998
3563
  /**
3999
3564
  * ConsultationsApi - axios parameter creator
4000
- * @export
4001
- */
4002
- var ConsultationsApiAxiosParamCreator = function (configuration) {
4003
- var _this = this;
4004
- return {
4005
- /**
4006
- *
4007
- * @summary Approve consultation.
4008
- * @param {string} consultationId
4009
- * @param {ApproveConsultationCommand} [approveConsultationCommand]
4010
- * @param {*} [options] Override http request option.
4011
- * @throws {RequiredError}
4012
- */
4013
- apiV2ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
4014
- if (options === void 0) { options = {}; }
4015
- return __awaiter(_this, void 0, void 0, function () {
4016
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4017
- return __generator(this, function (_a) {
4018
- switch (_a.label) {
4019
- case 0:
4020
- // verify required parameter 'consultationId' is not null or undefined
4021
- (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdApprovePut', 'consultationId', consultationId);
4022
- localVarPath = "/api/v2/consultations/{consultationId}/approve"
4023
- .replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
4024
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4025
- if (configuration) {
4026
- baseOptions = configuration.baseOptions;
4027
- }
4028
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
4029
- localVarHeaderParameter = {};
4030
- localVarQueryParameter = {};
4031
- // authentication oauth2 required
4032
- // oauth required
4033
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
4034
- case 1:
4035
- // authentication oauth2 required
4036
- // oauth required
4037
- _a.sent();
4038
- localVarHeaderParameter['Content-Type'] = 'application/json';
4039
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4040
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4041
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4042
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(approveConsultationCommand, localVarRequestOptions, configuration);
4043
- return [2 /*return*/, {
4044
- url: (0, common_1.toPathString)(localVarUrlObj),
4045
- options: localVarRequestOptions,
4046
- }];
4047
- }
4048
- });
4049
- });
4050
- },
4051
- /**
4052
- *
4053
- * @summary Cancel consultation.
4054
- * @param {string} consultationId
4055
- * @param {*} [options] Override http request option.
4056
- * @throws {RequiredError}
4057
- */
4058
- apiV2ConsultationsConsultationIdCancelPut: function (consultationId, options) {
4059
- if (options === void 0) { options = {}; }
4060
- return __awaiter(_this, void 0, void 0, function () {
4061
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4062
- return __generator(this, function (_a) {
4063
- switch (_a.label) {
4064
- case 0:
4065
- // verify required parameter 'consultationId' is not null or undefined
4066
- (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdCancelPut', 'consultationId', consultationId);
4067
- localVarPath = "/api/v2/consultations/{consultationId}/cancel"
4068
- .replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
4069
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4070
- if (configuration) {
4071
- baseOptions = configuration.baseOptions;
4072
- }
4073
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
4074
- localVarHeaderParameter = {};
4075
- localVarQueryParameter = {};
4076
- // authentication oauth2 required
4077
- // oauth required
4078
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
4079
- case 1:
4080
- // authentication oauth2 required
4081
- // oauth required
4082
- _a.sent();
4083
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4084
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4085
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4086
- return [2 /*return*/, {
4087
- url: (0, common_1.toPathString)(localVarUrlObj),
4088
- options: localVarRequestOptions,
4089
- }];
4090
- }
4091
- });
4092
- });
4093
- },
4094
- /**
4095
- *
4096
- * @summary Delete consultation.
4097
- * @param {string} consultationId
4098
- * @param {*} [options] Override http request option.
4099
- * @throws {RequiredError}
4100
- */
4101
- apiV2ConsultationsConsultationIdDelete: function (consultationId, options) {
4102
- if (options === void 0) { options = {}; }
4103
- return __awaiter(_this, void 0, void 0, function () {
4104
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4105
- return __generator(this, function (_a) {
4106
- switch (_a.label) {
4107
- case 0:
4108
- // verify required parameter 'consultationId' is not null or undefined
4109
- (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdDelete', 'consultationId', consultationId);
4110
- localVarPath = "/api/v2/consultations/{consultationId}"
4111
- .replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
4112
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4113
- if (configuration) {
4114
- baseOptions = configuration.baseOptions;
4115
- }
4116
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
4117
- localVarHeaderParameter = {};
4118
- localVarQueryParameter = {};
4119
- // authentication oauth2 required
4120
- // oauth required
4121
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
4122
- case 1:
4123
- // authentication oauth2 required
4124
- // oauth required
4125
- _a.sent();
4126
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4127
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4128
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4129
- return [2 /*return*/, {
4130
- url: (0, common_1.toPathString)(localVarUrlObj),
4131
- options: localVarRequestOptions,
4132
- }];
4133
- }
4134
- });
4135
- });
4136
- },
4137
- /**
4138
- *
4139
- * @summary Get consultation.
4140
- * @param {string} consultationId
4141
- * @param {*} [options] Override http request option.
4142
- * @throws {RequiredError}
4143
- */
4144
- apiV2ConsultationsConsultationIdGet: function (consultationId, options) {
4145
- if (options === void 0) { options = {}; }
4146
- return __awaiter(_this, void 0, void 0, function () {
4147
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4148
- return __generator(this, function (_a) {
4149
- switch (_a.label) {
4150
- case 0:
4151
- // verify required parameter 'consultationId' is not null or undefined
4152
- (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdGet', 'consultationId', consultationId);
4153
- localVarPath = "/api/v2/consultations/{consultationId}"
4154
- .replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
4155
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4156
- if (configuration) {
4157
- baseOptions = configuration.baseOptions;
4158
- }
4159
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4160
- localVarHeaderParameter = {};
4161
- localVarQueryParameter = {};
4162
- // authentication oauth2 required
4163
- // oauth required
4164
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
4165
- case 1:
4166
- // authentication oauth2 required
4167
- // oauth required
4168
- _a.sent();
4169
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4170
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4171
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4172
- return [2 /*return*/, {
4173
- url: (0, common_1.toPathString)(localVarUrlObj),
4174
- options: localVarRequestOptions,
4175
- }];
4176
- }
4177
- });
4178
- });
4179
- },
3565
+ * @export
3566
+ */
3567
+ var ConsultationsApiAxiosParamCreator = function (configuration) {
3568
+ var _this = this;
3569
+ return {
4180
3570
  /**
4181
3571
  *
4182
- * @summary Pay consultation.
3572
+ * @summary Get consultation.
4183
3573
  * @param {string} consultationId
4184
3574
  * @param {*} [options] Override http request option.
4185
3575
  * @throws {RequiredError}
4186
3576
  */
4187
- apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
3577
+ apiV2ConsultationsConsultationIdGet: function (consultationId, options) {
4188
3578
  if (options === void 0) { options = {}; }
4189
3579
  return __awaiter(_this, void 0, void 0, function () {
4190
3580
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -4192,14 +3582,14 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
4192
3582
  switch (_a.label) {
4193
3583
  case 0:
4194
3584
  // verify required parameter 'consultationId' is not null or undefined
4195
- (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPayPost', 'consultationId', consultationId);
4196
- localVarPath = "/api/v2/consultations/{consultationId}/pay"
3585
+ (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdGet', 'consultationId', consultationId);
3586
+ localVarPath = "/api/v2/consultations/{consultationId}"
4197
3587
  .replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
4198
3588
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4199
3589
  if (configuration) {
4200
3590
  baseOptions = configuration.baseOptions;
4201
3591
  }
4202
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3592
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4203
3593
  localVarHeaderParameter = {};
4204
3594
  localVarQueryParameter = {};
4205
3595
  // authentication oauth2 required
@@ -4222,13 +3612,12 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
4222
3612
  },
4223
3613
  /**
4224
3614
  *
4225
- * @summary Update consultation.
3615
+ * @summary Pay consultation.
4226
3616
  * @param {string} consultationId
4227
- * @param {UpdateConsultationCommand} [updateConsultationCommand]
4228
3617
  * @param {*} [options] Override http request option.
4229
3618
  * @throws {RequiredError}
4230
3619
  */
4231
- apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
3620
+ apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
4232
3621
  if (options === void 0) { options = {}; }
4233
3622
  return __awaiter(_this, void 0, void 0, function () {
4234
3623
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -4236,14 +3625,14 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
4236
3625
  switch (_a.label) {
4237
3626
  case 0:
4238
3627
  // verify required parameter 'consultationId' is not null or undefined
4239
- (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPut', 'consultationId', consultationId);
4240
- localVarPath = "/api/v2/consultations/{consultationId}"
3628
+ (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPayPost', 'consultationId', consultationId);
3629
+ localVarPath = "/api/v2/consultations/{consultationId}/pay"
4241
3630
  .replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
4242
3631
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4243
3632
  if (configuration) {
4244
3633
  baseOptions = configuration.baseOptions;
4245
3634
  }
4246
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
3635
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
4247
3636
  localVarHeaderParameter = {};
4248
3637
  localVarQueryParameter = {};
4249
3638
  // authentication oauth2 required
@@ -4253,11 +3642,9 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
4253
3642
  // authentication oauth2 required
4254
3643
  // oauth required
4255
3644
  _a.sent();
4256
- localVarHeaderParameter['Content-Type'] = 'application/json';
4257
3645
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4258
3646
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4259
3647
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4260
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConsultationCommand, localVarRequestOptions, configuration);
4261
3648
  return [2 /*return*/, {
4262
3649
  url: (0, common_1.toPathString)(localVarUrlObj),
4263
3650
  options: localVarRequestOptions,
@@ -4268,13 +3655,13 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
4268
3655
  },
4269
3656
  /**
4270
3657
  *
4271
- * @summary Reject consultation.
3658
+ * @summary Update consultation.
4272
3659
  * @param {string} consultationId
4273
- * @param {RejectConsultationCommand} [rejectConsultationCommand]
3660
+ * @param {UpdateConsultationCommand} [updateConsultationCommand]
4274
3661
  * @param {*} [options] Override http request option.
4275
3662
  * @throws {RequiredError}
4276
3663
  */
4277
- apiV2ConsultationsConsultationIdRejectPut: function (consultationId, rejectConsultationCommand, options) {
3664
+ apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
4278
3665
  if (options === void 0) { options = {}; }
4279
3666
  return __awaiter(_this, void 0, void 0, function () {
4280
3667
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -4282,8 +3669,8 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
4282
3669
  switch (_a.label) {
4283
3670
  case 0:
4284
3671
  // verify required parameter 'consultationId' is not null or undefined
4285
- (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdRejectPut', 'consultationId', consultationId);
4286
- localVarPath = "/api/v2/consultations/{consultationId}/reject"
3672
+ (0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPut', 'consultationId', consultationId);
3673
+ localVarPath = "/api/v2/consultations/{consultationId}"
4287
3674
  .replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
4288
3675
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4289
3676
  if (configuration) {
@@ -4303,7 +3690,7 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
4303
3690
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4304
3691
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4305
3692
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4306
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rejectConsultationCommand, localVarRequestOptions, configuration);
3693
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConsultationCommand, localVarRequestOptions, configuration);
4307
3694
  return [2 /*return*/, {
4308
3695
  url: (0, common_1.toPathString)(localVarUrlObj),
4309
3696
  options: localVarRequestOptions,
@@ -4445,67 +3832,6 @@ exports.ConsultationsApiAxiosParamCreator = ConsultationsApiAxiosParamCreator;
4445
3832
  var ConsultationsApiFp = function (configuration) {
4446
3833
  var localVarAxiosParamCreator = (0, exports.ConsultationsApiAxiosParamCreator)(configuration);
4447
3834
  return {
4448
- /**
4449
- *
4450
- * @summary Approve consultation.
4451
- * @param {string} consultationId
4452
- * @param {ApproveConsultationCommand} [approveConsultationCommand]
4453
- * @param {*} [options] Override http request option.
4454
- * @throws {RequiredError}
4455
- */
4456
- apiV2ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
4457
- return __awaiter(this, void 0, void 0, function () {
4458
- var localVarAxiosArgs;
4459
- return __generator(this, function (_a) {
4460
- switch (_a.label) {
4461
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options)];
4462
- case 1:
4463
- localVarAxiosArgs = _a.sent();
4464
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4465
- }
4466
- });
4467
- });
4468
- },
4469
- /**
4470
- *
4471
- * @summary Cancel consultation.
4472
- * @param {string} consultationId
4473
- * @param {*} [options] Override http request option.
4474
- * @throws {RequiredError}
4475
- */
4476
- apiV2ConsultationsConsultationIdCancelPut: function (consultationId, options) {
4477
- return __awaiter(this, void 0, void 0, function () {
4478
- var localVarAxiosArgs;
4479
- return __generator(this, function (_a) {
4480
- switch (_a.label) {
4481
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdCancelPut(consultationId, options)];
4482
- case 1:
4483
- localVarAxiosArgs = _a.sent();
4484
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4485
- }
4486
- });
4487
- });
4488
- },
4489
- /**
4490
- *
4491
- * @summary Delete consultation.
4492
- * @param {string} consultationId
4493
- * @param {*} [options] Override http request option.
4494
- * @throws {RequiredError}
4495
- */
4496
- apiV2ConsultationsConsultationIdDelete: function (consultationId, options) {
4497
- return __awaiter(this, void 0, void 0, function () {
4498
- var localVarAxiosArgs;
4499
- return __generator(this, function (_a) {
4500
- switch (_a.label) {
4501
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdDelete(consultationId, options)];
4502
- case 1:
4503
- localVarAxiosArgs = _a.sent();
4504
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4505
- }
4506
- });
4507
- });
4508
- },
4509
3835
  /**
4510
3836
  *
4511
3837
  * @summary Get consultation.
@@ -4567,27 +3893,6 @@ var ConsultationsApiFp = function (configuration) {
4567
3893
  });
4568
3894
  });
4569
3895
  },
4570
- /**
4571
- *
4572
- * @summary Reject consultation.
4573
- * @param {string} consultationId
4574
- * @param {RejectConsultationCommand} [rejectConsultationCommand]
4575
- * @param {*} [options] Override http request option.
4576
- * @throws {RequiredError}
4577
- */
4578
- apiV2ConsultationsConsultationIdRejectPut: function (consultationId, rejectConsultationCommand, options) {
4579
- return __awaiter(this, void 0, void 0, function () {
4580
- var localVarAxiosArgs;
4581
- return __generator(this, function (_a) {
4582
- switch (_a.label) {
4583
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options)];
4584
- case 1:
4585
- localVarAxiosArgs = _a.sent();
4586
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4587
- }
4588
- });
4589
- });
4590
- },
4591
3896
  /**
4592
3897
  *
4593
3898
  * @summary Get all consultations.
@@ -4647,37 +3952,6 @@ exports.ConsultationsApiFp = ConsultationsApiFp;
4647
3952
  var ConsultationsApiFactory = function (configuration, basePath, axios) {
4648
3953
  var localVarFp = (0, exports.ConsultationsApiFp)(configuration);
4649
3954
  return {
4650
- /**
4651
- *
4652
- * @summary Approve consultation.
4653
- * @param {string} consultationId
4654
- * @param {ApproveConsultationCommand} [approveConsultationCommand]
4655
- * @param {*} [options] Override http request option.
4656
- * @throws {RequiredError}
4657
- */
4658
- apiV2ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
4659
- return localVarFp.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then(function (request) { return request(axios, basePath); });
4660
- },
4661
- /**
4662
- *
4663
- * @summary Cancel consultation.
4664
- * @param {string} consultationId
4665
- * @param {*} [options] Override http request option.
4666
- * @throws {RequiredError}
4667
- */
4668
- apiV2ConsultationsConsultationIdCancelPut: function (consultationId, options) {
4669
- return localVarFp.apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then(function (request) { return request(axios, basePath); });
4670
- },
4671
- /**
4672
- *
4673
- * @summary Delete consultation.
4674
- * @param {string} consultationId
4675
- * @param {*} [options] Override http request option.
4676
- * @throws {RequiredError}
4677
- */
4678
- apiV2ConsultationsConsultationIdDelete: function (consultationId, options) {
4679
- return localVarFp.apiV2ConsultationsConsultationIdDelete(consultationId, options).then(function (request) { return request(axios, basePath); });
4680
- },
4681
3955
  /**
4682
3956
  *
4683
3957
  * @summary Get consultation.
@@ -4709,17 +3983,6 @@ var ConsultationsApiFactory = function (configuration, basePath, axios) {
4709
3983
  apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
4710
3984
  return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then(function (request) { return request(axios, basePath); });
4711
3985
  },
4712
- /**
4713
- *
4714
- * @summary Reject consultation.
4715
- * @param {string} consultationId
4716
- * @param {RejectConsultationCommand} [rejectConsultationCommand]
4717
- * @param {*} [options] Override http request option.
4718
- * @throws {RequiredError}
4719
- */
4720
- apiV2ConsultationsConsultationIdRejectPut: function (consultationId, rejectConsultationCommand, options) {
4721
- return localVarFp.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then(function (request) { return request(axios, basePath); });
4722
- },
4723
3986
  /**
4724
3987
  *
4725
3988
  * @summary Get all consultations.
@@ -4763,43 +4026,6 @@ var ConsultationsApi = /** @class */ (function (_super) {
4763
4026
  function ConsultationsApi() {
4764
4027
  return _super !== null && _super.apply(this, arguments) || this;
4765
4028
  }
4766
- /**
4767
- *
4768
- * @summary Approve consultation.
4769
- * @param {string} consultationId
4770
- * @param {ApproveConsultationCommand} [approveConsultationCommand]
4771
- * @param {*} [options] Override http request option.
4772
- * @throws {RequiredError}
4773
- * @memberof ConsultationsApi
4774
- */
4775
- ConsultationsApi.prototype.apiV2ConsultationsConsultationIdApprovePut = function (consultationId, approveConsultationCommand, options) {
4776
- var _this = this;
4777
- return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
4778
- };
4779
- /**
4780
- *
4781
- * @summary Cancel consultation.
4782
- * @param {string} consultationId
4783
- * @param {*} [options] Override http request option.
4784
- * @throws {RequiredError}
4785
- * @memberof ConsultationsApi
4786
- */
4787
- ConsultationsApi.prototype.apiV2ConsultationsConsultationIdCancelPut = function (consultationId, options) {
4788
- var _this = this;
4789
- return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4790
- };
4791
- /**
4792
- *
4793
- * @summary Delete consultation.
4794
- * @param {string} consultationId
4795
- * @param {*} [options] Override http request option.
4796
- * @throws {RequiredError}
4797
- * @memberof ConsultationsApi
4798
- */
4799
- ConsultationsApi.prototype.apiV2ConsultationsConsultationIdDelete = function (consultationId, options) {
4800
- var _this = this;
4801
- return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdDelete(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4802
- };
4803
4029
  /**
4804
4030
  *
4805
4031
  * @summary Get consultation.
@@ -4837,19 +4063,6 @@ var ConsultationsApi = /** @class */ (function (_super) {
4837
4063
  var _this = this;
4838
4064
  return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
4839
4065
  };
4840
- /**
4841
- *
4842
- * @summary Reject consultation.
4843
- * @param {string} consultationId
4844
- * @param {RejectConsultationCommand} [rejectConsultationCommand]
4845
- * @param {*} [options] Override http request option.
4846
- * @throws {RequiredError}
4847
- * @memberof ConsultationsApi
4848
- */
4849
- ConsultationsApi.prototype.apiV2ConsultationsConsultationIdRejectPut = function (consultationId, rejectConsultationCommand, options) {
4850
- var _this = this;
4851
- return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
4852
- };
4853
4066
  /**
4854
4067
  *
4855
4068
  * @summary Get all consultations.
@@ -10747,6 +9960,106 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
10747
9960
  });
10748
9961
  });
10749
9962
  },
9963
+ /**
9964
+ *
9965
+ * @summary Get all HospitalHandles.
9966
+ * @param {string} hospitalId
9967
+ * @param {string} [hospitalId2]
9968
+ * @param {string} [id]
9969
+ * @param {SnsType} [snsType]
9970
+ * @param {string} [handle]
9971
+ * @param {number} [page]
9972
+ * @param {number} [limit]
9973
+ * @param {Date} [lastRetrieved]
9974
+ * @param {*} [options] Override http request option.
9975
+ * @throws {RequiredError}
9976
+ */
9977
+ apiV2HospitalsHospitalIdHandlesGet: function (hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options) {
9978
+ if (options === void 0) { options = {}; }
9979
+ return __awaiter(_this, void 0, void 0, function () {
9980
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9981
+ return __generator(this, function (_a) {
9982
+ // verify required parameter 'hospitalId' is not null or undefined
9983
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdHandlesGet', 'hospitalId', hospitalId);
9984
+ localVarPath = "/api/v2/hospitals/{hospitalId}/handles"
9985
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
9986
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9987
+ if (configuration) {
9988
+ baseOptions = configuration.baseOptions;
9989
+ }
9990
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9991
+ localVarHeaderParameter = {};
9992
+ localVarQueryParameter = {};
9993
+ if (hospitalId2 !== undefined) {
9994
+ localVarQueryParameter['HospitalId'] = hospitalId2;
9995
+ }
9996
+ if (id !== undefined) {
9997
+ localVarQueryParameter['Id'] = id;
9998
+ }
9999
+ if (snsType !== undefined) {
10000
+ localVarQueryParameter['SnsType'] = snsType;
10001
+ }
10002
+ if (handle !== undefined) {
10003
+ localVarQueryParameter['Handle'] = handle;
10004
+ }
10005
+ if (page !== undefined) {
10006
+ localVarQueryParameter['page'] = page;
10007
+ }
10008
+ if (limit !== undefined) {
10009
+ localVarQueryParameter['limit'] = limit;
10010
+ }
10011
+ if (lastRetrieved !== undefined) {
10012
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
10013
+ lastRetrieved.toISOString() :
10014
+ lastRetrieved;
10015
+ }
10016
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10017
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10018
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10019
+ return [2 /*return*/, {
10020
+ url: (0, common_1.toPathString)(localVarUrlObj),
10021
+ options: localVarRequestOptions,
10022
+ }];
10023
+ });
10024
+ });
10025
+ },
10026
+ /**
10027
+ *
10028
+ * @summary Get HospitalHandle.
10029
+ * @param {string} hospitalId
10030
+ * @param {string} handleId
10031
+ * @param {*} [options] Override http request option.
10032
+ * @throws {RequiredError}
10033
+ */
10034
+ apiV2HospitalsHospitalIdHandlesHandleIdGet: function (hospitalId, handleId, options) {
10035
+ if (options === void 0) { options = {}; }
10036
+ return __awaiter(_this, void 0, void 0, function () {
10037
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10038
+ return __generator(this, function (_a) {
10039
+ // verify required parameter 'hospitalId' is not null or undefined
10040
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdHandlesHandleIdGet', 'hospitalId', hospitalId);
10041
+ // verify required parameter 'handleId' is not null or undefined
10042
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdHandlesHandleIdGet', 'handleId', handleId);
10043
+ localVarPath = "/api/v2/hospitals/{hospitalId}/handles/{handleId}"
10044
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
10045
+ .replace("{".concat("handleId", "}"), encodeURIComponent(String(handleId)));
10046
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10047
+ if (configuration) {
10048
+ baseOptions = configuration.baseOptions;
10049
+ }
10050
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10051
+ localVarHeaderParameter = {};
10052
+ localVarQueryParameter = {};
10053
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10054
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10055
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10056
+ return [2 /*return*/, {
10057
+ url: (0, common_1.toPathString)(localVarUrlObj),
10058
+ options: localVarRequestOptions,
10059
+ }];
10060
+ });
10061
+ });
10062
+ },
10750
10063
  /**
10751
10064
  *
10752
10065
  * @summary Get all HospitalMedias.
@@ -11344,6 +10657,118 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
11344
10657
  });
11345
10658
  });
11346
10659
  },
10660
+ /**
10661
+ *
10662
+ * @summary Get all HospitalWorkingDays.
10663
+ * @param {string} hospitalId
10664
+ * @param {string} [hospitalId2]
10665
+ * @param {string} [id]
10666
+ * @param {string} [dayOfWeek]
10667
+ * @param {Date} [timeFrom]
10668
+ * @param {Date} [timeTo]
10669
+ * @param {boolean} [checkHoliday]
10670
+ * @param {number} [page]
10671
+ * @param {number} [limit]
10672
+ * @param {Date} [lastRetrieved]
10673
+ * @param {*} [options] Override http request option.
10674
+ * @throws {RequiredError}
10675
+ */
10676
+ apiV2HospitalsHospitalIdWorkingdaysGet: function (hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options) {
10677
+ if (options === void 0) { options = {}; }
10678
+ return __awaiter(_this, void 0, void 0, function () {
10679
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10680
+ return __generator(this, function (_a) {
10681
+ // verify required parameter 'hospitalId' is not null or undefined
10682
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdWorkingdaysGet', 'hospitalId', hospitalId);
10683
+ localVarPath = "/api/v2/hospitals/{hospitalId}/workingdays"
10684
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
10685
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10686
+ if (configuration) {
10687
+ baseOptions = configuration.baseOptions;
10688
+ }
10689
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10690
+ localVarHeaderParameter = {};
10691
+ localVarQueryParameter = {};
10692
+ if (hospitalId2 !== undefined) {
10693
+ localVarQueryParameter['HospitalId'] = hospitalId2;
10694
+ }
10695
+ if (id !== undefined) {
10696
+ localVarQueryParameter['Id'] = id;
10697
+ }
10698
+ if (dayOfWeek !== undefined) {
10699
+ localVarQueryParameter['DayOfWeek'] = dayOfWeek;
10700
+ }
10701
+ if (timeFrom !== undefined) {
10702
+ localVarQueryParameter['TimeFrom'] = (timeFrom instanceof Date) ?
10703
+ timeFrom.toISOString() :
10704
+ timeFrom;
10705
+ }
10706
+ if (timeTo !== undefined) {
10707
+ localVarQueryParameter['TimeTo'] = (timeTo instanceof Date) ?
10708
+ timeTo.toISOString() :
10709
+ timeTo;
10710
+ }
10711
+ if (checkHoliday !== undefined) {
10712
+ localVarQueryParameter['CheckHoliday'] = checkHoliday;
10713
+ }
10714
+ if (page !== undefined) {
10715
+ localVarQueryParameter['page'] = page;
10716
+ }
10717
+ if (limit !== undefined) {
10718
+ localVarQueryParameter['limit'] = limit;
10719
+ }
10720
+ if (lastRetrieved !== undefined) {
10721
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
10722
+ lastRetrieved.toISOString() :
10723
+ lastRetrieved;
10724
+ }
10725
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10726
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10727
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10728
+ return [2 /*return*/, {
10729
+ url: (0, common_1.toPathString)(localVarUrlObj),
10730
+ options: localVarRequestOptions,
10731
+ }];
10732
+ });
10733
+ });
10734
+ },
10735
+ /**
10736
+ *
10737
+ * @summary Get HospitalWorkingDay.
10738
+ * @param {string} hospitalId
10739
+ * @param {string} workingDayId
10740
+ * @param {*} [options] Override http request option.
10741
+ * @throws {RequiredError}
10742
+ */
10743
+ apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet: function (hospitalId, workingDayId, options) {
10744
+ if (options === void 0) { options = {}; }
10745
+ return __awaiter(_this, void 0, void 0, function () {
10746
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10747
+ return __generator(this, function (_a) {
10748
+ // verify required parameter 'hospitalId' is not null or undefined
10749
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet', 'hospitalId', hospitalId);
10750
+ // verify required parameter 'workingDayId' is not null or undefined
10751
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet', 'workingDayId', workingDayId);
10752
+ localVarPath = "/api/v2/hospitals/{hospitalId}/workingdays/{workingDayId}"
10753
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
10754
+ .replace("{".concat("workingDayId", "}"), encodeURIComponent(String(workingDayId)));
10755
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10756
+ if (configuration) {
10757
+ baseOptions = configuration.baseOptions;
10758
+ }
10759
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10760
+ localVarHeaderParameter = {};
10761
+ localVarQueryParameter = {};
10762
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10763
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10764
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10765
+ return [2 /*return*/, {
10766
+ url: (0, common_1.toPathString)(localVarUrlObj),
10767
+ options: localVarRequestOptions,
10768
+ }];
10769
+ });
10770
+ });
10771
+ },
11347
10772
  /**
11348
10773
  *
11349
10774
  * @summary Get all Hospitals.
@@ -11739,6 +11164,54 @@ var HospitalsApiFp = function (configuration) {
11739
11164
  });
11740
11165
  });
11741
11166
  },
11167
+ /**
11168
+ *
11169
+ * @summary Get all HospitalHandles.
11170
+ * @param {string} hospitalId
11171
+ * @param {string} [hospitalId2]
11172
+ * @param {string} [id]
11173
+ * @param {SnsType} [snsType]
11174
+ * @param {string} [handle]
11175
+ * @param {number} [page]
11176
+ * @param {number} [limit]
11177
+ * @param {Date} [lastRetrieved]
11178
+ * @param {*} [options] Override http request option.
11179
+ * @throws {RequiredError}
11180
+ */
11181
+ apiV2HospitalsHospitalIdHandlesGet: function (hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options) {
11182
+ return __awaiter(this, void 0, void 0, function () {
11183
+ var localVarAxiosArgs;
11184
+ return __generator(this, function (_a) {
11185
+ switch (_a.label) {
11186
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options)];
11187
+ case 1:
11188
+ localVarAxiosArgs = _a.sent();
11189
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11190
+ }
11191
+ });
11192
+ });
11193
+ },
11194
+ /**
11195
+ *
11196
+ * @summary Get HospitalHandle.
11197
+ * @param {string} hospitalId
11198
+ * @param {string} handleId
11199
+ * @param {*} [options] Override http request option.
11200
+ * @throws {RequiredError}
11201
+ */
11202
+ apiV2HospitalsHospitalIdHandlesHandleIdGet: function (hospitalId, handleId, options) {
11203
+ return __awaiter(this, void 0, void 0, function () {
11204
+ var localVarAxiosArgs;
11205
+ return __generator(this, function (_a) {
11206
+ switch (_a.label) {
11207
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options)];
11208
+ case 1:
11209
+ localVarAxiosArgs = _a.sent();
11210
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11211
+ }
11212
+ });
11213
+ });
11214
+ },
11742
11215
  /**
11743
11216
  *
11744
11217
  * @summary Get all HospitalMedias.
@@ -11991,6 +11464,56 @@ var HospitalsApiFp = function (configuration) {
11991
11464
  });
11992
11465
  });
11993
11466
  },
11467
+ /**
11468
+ *
11469
+ * @summary Get all HospitalWorkingDays.
11470
+ * @param {string} hospitalId
11471
+ * @param {string} [hospitalId2]
11472
+ * @param {string} [id]
11473
+ * @param {string} [dayOfWeek]
11474
+ * @param {Date} [timeFrom]
11475
+ * @param {Date} [timeTo]
11476
+ * @param {boolean} [checkHoliday]
11477
+ * @param {number} [page]
11478
+ * @param {number} [limit]
11479
+ * @param {Date} [lastRetrieved]
11480
+ * @param {*} [options] Override http request option.
11481
+ * @throws {RequiredError}
11482
+ */
11483
+ apiV2HospitalsHospitalIdWorkingdaysGet: function (hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options) {
11484
+ return __awaiter(this, void 0, void 0, function () {
11485
+ var localVarAxiosArgs;
11486
+ return __generator(this, function (_a) {
11487
+ switch (_a.label) {
11488
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options)];
11489
+ case 1:
11490
+ localVarAxiosArgs = _a.sent();
11491
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11492
+ }
11493
+ });
11494
+ });
11495
+ },
11496
+ /**
11497
+ *
11498
+ * @summary Get HospitalWorkingDay.
11499
+ * @param {string} hospitalId
11500
+ * @param {string} workingDayId
11501
+ * @param {*} [options] Override http request option.
11502
+ * @throws {RequiredError}
11503
+ */
11504
+ apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet: function (hospitalId, workingDayId, options) {
11505
+ return __awaiter(this, void 0, void 0, function () {
11506
+ var localVarAxiosArgs;
11507
+ return __generator(this, function (_a) {
11508
+ switch (_a.label) {
11509
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options)];
11510
+ case 1:
11511
+ localVarAxiosArgs = _a.sent();
11512
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11513
+ }
11514
+ });
11515
+ });
11516
+ },
11994
11517
  /**
11995
11518
  *
11996
11519
  * @summary Get all Hospitals.
@@ -12205,6 +11728,34 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
12205
11728
  apiV2HospitalsHospitalIdGet: function (hospitalId, languageCode, returnDefaultValue, options) {
12206
11729
  return localVarFp.apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
12207
11730
  },
11731
+ /**
11732
+ *
11733
+ * @summary Get all HospitalHandles.
11734
+ * @param {string} hospitalId
11735
+ * @param {string} [hospitalId2]
11736
+ * @param {string} [id]
11737
+ * @param {SnsType} [snsType]
11738
+ * @param {string} [handle]
11739
+ * @param {number} [page]
11740
+ * @param {number} [limit]
11741
+ * @param {Date} [lastRetrieved]
11742
+ * @param {*} [options] Override http request option.
11743
+ * @throws {RequiredError}
11744
+ */
11745
+ apiV2HospitalsHospitalIdHandlesGet: function (hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options) {
11746
+ return localVarFp.apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11747
+ },
11748
+ /**
11749
+ *
11750
+ * @summary Get HospitalHandle.
11751
+ * @param {string} hospitalId
11752
+ * @param {string} handleId
11753
+ * @param {*} [options] Override http request option.
11754
+ * @throws {RequiredError}
11755
+ */
11756
+ apiV2HospitalsHospitalIdHandlesHandleIdGet: function (hospitalId, handleId, options) {
11757
+ return localVarFp.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then(function (request) { return request(axios, basePath); });
11758
+ },
12208
11759
  /**
12209
11760
  *
12210
11761
  * @summary Get all HospitalMedias.
@@ -12367,6 +11918,36 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
12367
11918
  apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
12368
11919
  return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(axios, basePath); });
12369
11920
  },
11921
+ /**
11922
+ *
11923
+ * @summary Get all HospitalWorkingDays.
11924
+ * @param {string} hospitalId
11925
+ * @param {string} [hospitalId2]
11926
+ * @param {string} [id]
11927
+ * @param {string} [dayOfWeek]
11928
+ * @param {Date} [timeFrom]
11929
+ * @param {Date} [timeTo]
11930
+ * @param {boolean} [checkHoliday]
11931
+ * @param {number} [page]
11932
+ * @param {number} [limit]
11933
+ * @param {Date} [lastRetrieved]
11934
+ * @param {*} [options] Override http request option.
11935
+ * @throws {RequiredError}
11936
+ */
11937
+ apiV2HospitalsHospitalIdWorkingdaysGet: function (hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options) {
11938
+ return localVarFp.apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11939
+ },
11940
+ /**
11941
+ *
11942
+ * @summary Get HospitalWorkingDay.
11943
+ * @param {string} hospitalId
11944
+ * @param {string} workingDayId
11945
+ * @param {*} [options] Override http request option.
11946
+ * @throws {RequiredError}
11947
+ */
11948
+ apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet: function (hospitalId, workingDayId, options) {
11949
+ return localVarFp.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then(function (request) { return request(axios, basePath); });
11950
+ },
12370
11951
  /**
12371
11952
  *
12372
11953
  * @summary Get all Hospitals.
@@ -12585,6 +12166,38 @@ var HospitalsApi = /** @class */ (function (_super) {
12585
12166
  var _this = this;
12586
12167
  return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
12587
12168
  };
12169
+ /**
12170
+ *
12171
+ * @summary Get all HospitalHandles.
12172
+ * @param {string} hospitalId
12173
+ * @param {string} [hospitalId2]
12174
+ * @param {string} [id]
12175
+ * @param {SnsType} [snsType]
12176
+ * @param {string} [handle]
12177
+ * @param {number} [page]
12178
+ * @param {number} [limit]
12179
+ * @param {Date} [lastRetrieved]
12180
+ * @param {*} [options] Override http request option.
12181
+ * @throws {RequiredError}
12182
+ * @memberof HospitalsApi
12183
+ */
12184
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdHandlesGet = function (hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options) {
12185
+ var _this = this;
12186
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12187
+ };
12188
+ /**
12189
+ *
12190
+ * @summary Get HospitalHandle.
12191
+ * @param {string} hospitalId
12192
+ * @param {string} handleId
12193
+ * @param {*} [options] Override http request option.
12194
+ * @throws {RequiredError}
12195
+ * @memberof HospitalsApi
12196
+ */
12197
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdHandlesHandleIdGet = function (hospitalId, handleId, options) {
12198
+ var _this = this;
12199
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12200
+ };
12588
12201
  /**
12589
12202
  *
12590
12203
  * @summary Get all HospitalMedias.
@@ -12765,6 +12378,40 @@ var HospitalsApi = /** @class */ (function (_super) {
12765
12378
  var _this = this;
12766
12379
  return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12767
12380
  };
12381
+ /**
12382
+ *
12383
+ * @summary Get all HospitalWorkingDays.
12384
+ * @param {string} hospitalId
12385
+ * @param {string} [hospitalId2]
12386
+ * @param {string} [id]
12387
+ * @param {string} [dayOfWeek]
12388
+ * @param {Date} [timeFrom]
12389
+ * @param {Date} [timeTo]
12390
+ * @param {boolean} [checkHoliday]
12391
+ * @param {number} [page]
12392
+ * @param {number} [limit]
12393
+ * @param {Date} [lastRetrieved]
12394
+ * @param {*} [options] Override http request option.
12395
+ * @throws {RequiredError}
12396
+ * @memberof HospitalsApi
12397
+ */
12398
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdWorkingdaysGet = function (hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options) {
12399
+ var _this = this;
12400
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12401
+ };
12402
+ /**
12403
+ *
12404
+ * @summary Get HospitalWorkingDay.
12405
+ * @param {string} hospitalId
12406
+ * @param {string} workingDayId
12407
+ * @param {*} [options] Override http request option.
12408
+ * @throws {RequiredError}
12409
+ * @memberof HospitalsApi
12410
+ */
12411
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet = function (hospitalId, workingDayId, options) {
12412
+ var _this = this;
12413
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12414
+ };
12768
12415
  /**
12769
12416
  *
12770
12417
  * @summary Get all Hospitals.