ch-admin-api-client-typescript 5.13.5 → 5.14.0

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