ch-admin-api-client-typescript 5.30.28 → 5.30.43

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.
@@ -1,579 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * CloudHospital Admin Api
6
- * CloudHospital application with Swagger, Swashbuckle, and API versioning.
7
- *
8
- * The version of the OpenAPI document: 1
9
- * Contact: developer@icloudhospital.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
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.HeaderNavigationsApi = exports.HeaderNavigationsApiFactory = exports.HeaderNavigationsApiFp = exports.HeaderNavigationsApiAxiosParamCreator = 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
- * HeaderNavigationsApi - axios parameter creator
90
- * @export
91
- */
92
- var HeaderNavigationsApiAxiosParamCreator = function (configuration) {
93
- var _this = this;
94
- return {
95
- /**
96
- *
97
- * @summary Get all HeaderNavigationItems
98
- * @param {string} languageCode
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- apiV1HeadernavigationsLanguageCodeGet: function (languageCode, options) {
103
- if (options === void 0) { options = {}; }
104
- return __awaiter(_this, void 0, void 0, function () {
105
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
- return __generator(this, function (_a) {
107
- switch (_a.label) {
108
- case 0:
109
- // verify required parameter 'languageCode' is not null or undefined
110
- (0, common_1.assertParamExists)('apiV1HeadernavigationsLanguageCodeGet', 'languageCode', languageCode);
111
- localVarPath = "/api/v1/headernavigations/{languageCode}"
112
- .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
113
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
- if (configuration) {
115
- baseOptions = configuration.baseOptions;
116
- }
117
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
118
- localVarHeaderParameter = {};
119
- localVarQueryParameter = {};
120
- // authentication oauth2 required
121
- // oauth required
122
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
123
- case 1:
124
- // authentication oauth2 required
125
- // oauth required
126
- _a.sent();
127
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
- return [2 /*return*/, {
131
- url: (0, common_1.toPathString)(localVarUrlObj),
132
- options: localVarRequestOptions,
133
- }];
134
- }
135
- });
136
- });
137
- },
138
- /**
139
- *
140
- * @summary Delete HeaderNavigationItem
141
- * @param {string} languageCode
142
- * @param {string} id
143
- * @param {*} [options] Override http request option.
144
- * @throws {RequiredError}
145
- */
146
- apiV1HeadernavigationsLanguageCodeIdDelete: function (languageCode, id, options) {
147
- if (options === void 0) { options = {}; }
148
- return __awaiter(_this, void 0, void 0, function () {
149
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
150
- return __generator(this, function (_a) {
151
- switch (_a.label) {
152
- case 0:
153
- // verify required parameter 'languageCode' is not null or undefined
154
- (0, common_1.assertParamExists)('apiV1HeadernavigationsLanguageCodeIdDelete', 'languageCode', languageCode);
155
- // verify required parameter 'id' is not null or undefined
156
- (0, common_1.assertParamExists)('apiV1HeadernavigationsLanguageCodeIdDelete', 'id', id);
157
- localVarPath = "/api/v1/headernavigations/{languageCode}/{id}"
158
- .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
159
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
160
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
161
- if (configuration) {
162
- baseOptions = configuration.baseOptions;
163
- }
164
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
165
- localVarHeaderParameter = {};
166
- localVarQueryParameter = {};
167
- // authentication oauth2 required
168
- // oauth required
169
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
170
- case 1:
171
- // authentication oauth2 required
172
- // oauth required
173
- _a.sent();
174
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
175
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
177
- return [2 /*return*/, {
178
- url: (0, common_1.toPathString)(localVarUrlObj),
179
- options: localVarRequestOptions,
180
- }];
181
- }
182
- });
183
- });
184
- },
185
- /**
186
- *
187
- * @summary Get HeaderNavigationItem by id
188
- * @param {string} languageCode
189
- * @param {string} id
190
- * @param {*} [options] Override http request option.
191
- * @throws {RequiredError}
192
- */
193
- apiV1HeadernavigationsLanguageCodeIdGet: function (languageCode, id, options) {
194
- if (options === void 0) { options = {}; }
195
- return __awaiter(_this, void 0, void 0, function () {
196
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
197
- return __generator(this, function (_a) {
198
- switch (_a.label) {
199
- case 0:
200
- // verify required parameter 'languageCode' is not null or undefined
201
- (0, common_1.assertParamExists)('apiV1HeadernavigationsLanguageCodeIdGet', 'languageCode', languageCode);
202
- // verify required parameter 'id' is not null or undefined
203
- (0, common_1.assertParamExists)('apiV1HeadernavigationsLanguageCodeIdGet', 'id', id);
204
- localVarPath = "/api/v1/headernavigations/{languageCode}/{id}"
205
- .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
206
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
207
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
208
- if (configuration) {
209
- baseOptions = configuration.baseOptions;
210
- }
211
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
212
- localVarHeaderParameter = {};
213
- localVarQueryParameter = {};
214
- // authentication oauth2 required
215
- // oauth required
216
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
217
- case 1:
218
- // authentication oauth2 required
219
- // oauth required
220
- _a.sent();
221
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
222
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
223
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
224
- return [2 /*return*/, {
225
- url: (0, common_1.toPathString)(localVarUrlObj),
226
- options: localVarRequestOptions,
227
- }];
228
- }
229
- });
230
- });
231
- },
232
- /**
233
- *
234
- * @summary Get HeaderNavigationItems by parent id
235
- * @param {string} languageCode
236
- * @param {string} parentId
237
- * @param {*} [options] Override http request option.
238
- * @throws {RequiredError}
239
- */
240
- apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet: function (languageCode, parentId, options) {
241
- if (options === void 0) { options = {}; }
242
- return __awaiter(_this, void 0, void 0, function () {
243
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
244
- return __generator(this, function (_a) {
245
- switch (_a.label) {
246
- case 0:
247
- // verify required parameter 'languageCode' is not null or undefined
248
- (0, common_1.assertParamExists)('apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet', 'languageCode', languageCode);
249
- // verify required parameter 'parentId' is not null or undefined
250
- (0, common_1.assertParamExists)('apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet', 'parentId', parentId);
251
- localVarPath = "/api/v1/headernavigations/{languageCode}/{parentId}/subitems"
252
- .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
253
- .replace("{".concat("parentId", "}"), encodeURIComponent(String(parentId)));
254
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
255
- if (configuration) {
256
- baseOptions = configuration.baseOptions;
257
- }
258
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
259
- localVarHeaderParameter = {};
260
- localVarQueryParameter = {};
261
- // authentication oauth2 required
262
- // oauth required
263
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
264
- case 1:
265
- // authentication oauth2 required
266
- // oauth required
267
- _a.sent();
268
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
269
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
271
- return [2 /*return*/, {
272
- url: (0, common_1.toPathString)(localVarUrlObj),
273
- options: localVarRequestOptions,
274
- }];
275
- }
276
- });
277
- });
278
- },
279
- /**
280
- *
281
- * @summary Save HeaderNavigationItem
282
- * @param {string} languageCode
283
- * @param {SaveHeaderNavigationsCommand} [saveHeaderNavigationsCommand]
284
- * @param {*} [options] Override http request option.
285
- * @throws {RequiredError}
286
- */
287
- apiV1HeadernavigationsLanguageCodePost: function (languageCode, saveHeaderNavigationsCommand, options) {
288
- if (options === void 0) { options = {}; }
289
- return __awaiter(_this, void 0, void 0, function () {
290
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
291
- return __generator(this, function (_a) {
292
- switch (_a.label) {
293
- case 0:
294
- // verify required parameter 'languageCode' is not null or undefined
295
- (0, common_1.assertParamExists)('apiV1HeadernavigationsLanguageCodePost', 'languageCode', languageCode);
296
- localVarPath = "/api/v1/headernavigations/{languageCode}"
297
- .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
298
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
299
- if (configuration) {
300
- baseOptions = configuration.baseOptions;
301
- }
302
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
303
- localVarHeaderParameter = {};
304
- localVarQueryParameter = {};
305
- // authentication oauth2 required
306
- // oauth required
307
- return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
308
- case 1:
309
- // authentication oauth2 required
310
- // oauth required
311
- _a.sent();
312
- localVarHeaderParameter['Content-Type'] = 'application/json';
313
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
314
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
316
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveHeaderNavigationsCommand, localVarRequestOptions, configuration);
317
- return [2 /*return*/, {
318
- url: (0, common_1.toPathString)(localVarUrlObj),
319
- options: localVarRequestOptions,
320
- }];
321
- }
322
- });
323
- });
324
- },
325
- };
326
- };
327
- exports.HeaderNavigationsApiAxiosParamCreator = HeaderNavigationsApiAxiosParamCreator;
328
- /**
329
- * HeaderNavigationsApi - functional programming interface
330
- * @export
331
- */
332
- var HeaderNavigationsApiFp = function (configuration) {
333
- var localVarAxiosParamCreator = (0, exports.HeaderNavigationsApiAxiosParamCreator)(configuration);
334
- return {
335
- /**
336
- *
337
- * @summary Get all HeaderNavigationItems
338
- * @param {string} languageCode
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- apiV1HeadernavigationsLanguageCodeGet: function (languageCode, options) {
343
- return __awaiter(this, void 0, void 0, function () {
344
- var localVarAxiosArgs;
345
- return __generator(this, function (_a) {
346
- switch (_a.label) {
347
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodeGet(languageCode, options)];
348
- case 1:
349
- localVarAxiosArgs = _a.sent();
350
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
351
- }
352
- });
353
- });
354
- },
355
- /**
356
- *
357
- * @summary Delete HeaderNavigationItem
358
- * @param {string} languageCode
359
- * @param {string} id
360
- * @param {*} [options] Override http request option.
361
- * @throws {RequiredError}
362
- */
363
- apiV1HeadernavigationsLanguageCodeIdDelete: function (languageCode, id, options) {
364
- return __awaiter(this, void 0, void 0, function () {
365
- var localVarAxiosArgs;
366
- return __generator(this, function (_a) {
367
- switch (_a.label) {
368
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodeIdDelete(languageCode, id, options)];
369
- case 1:
370
- localVarAxiosArgs = _a.sent();
371
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
372
- }
373
- });
374
- });
375
- },
376
- /**
377
- *
378
- * @summary Get HeaderNavigationItem by id
379
- * @param {string} languageCode
380
- * @param {string} id
381
- * @param {*} [options] Override http request option.
382
- * @throws {RequiredError}
383
- */
384
- apiV1HeadernavigationsLanguageCodeIdGet: function (languageCode, id, options) {
385
- return __awaiter(this, void 0, void 0, function () {
386
- var localVarAxiosArgs;
387
- return __generator(this, function (_a) {
388
- switch (_a.label) {
389
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodeIdGet(languageCode, id, options)];
390
- case 1:
391
- localVarAxiosArgs = _a.sent();
392
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
393
- }
394
- });
395
- });
396
- },
397
- /**
398
- *
399
- * @summary Get HeaderNavigationItems by parent id
400
- * @param {string} languageCode
401
- * @param {string} parentId
402
- * @param {*} [options] Override http request option.
403
- * @throws {RequiredError}
404
- */
405
- apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet: function (languageCode, parentId, options) {
406
- return __awaiter(this, void 0, void 0, function () {
407
- var localVarAxiosArgs;
408
- return __generator(this, function (_a) {
409
- switch (_a.label) {
410
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet(languageCode, parentId, options)];
411
- case 1:
412
- localVarAxiosArgs = _a.sent();
413
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
414
- }
415
- });
416
- });
417
- },
418
- /**
419
- *
420
- * @summary Save HeaderNavigationItem
421
- * @param {string} languageCode
422
- * @param {SaveHeaderNavigationsCommand} [saveHeaderNavigationsCommand]
423
- * @param {*} [options] Override http request option.
424
- * @throws {RequiredError}
425
- */
426
- apiV1HeadernavigationsLanguageCodePost: function (languageCode, saveHeaderNavigationsCommand, options) {
427
- return __awaiter(this, void 0, void 0, function () {
428
- var localVarAxiosArgs;
429
- return __generator(this, function (_a) {
430
- switch (_a.label) {
431
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodePost(languageCode, saveHeaderNavigationsCommand, options)];
432
- case 1:
433
- localVarAxiosArgs = _a.sent();
434
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
435
- }
436
- });
437
- });
438
- },
439
- };
440
- };
441
- exports.HeaderNavigationsApiFp = HeaderNavigationsApiFp;
442
- /**
443
- * HeaderNavigationsApi - factory interface
444
- * @export
445
- */
446
- var HeaderNavigationsApiFactory = function (configuration, basePath, axios) {
447
- var localVarFp = (0, exports.HeaderNavigationsApiFp)(configuration);
448
- return {
449
- /**
450
- *
451
- * @summary Get all HeaderNavigationItems
452
- * @param {string} languageCode
453
- * @param {*} [options] Override http request option.
454
- * @throws {RequiredError}
455
- */
456
- apiV1HeadernavigationsLanguageCodeGet: function (languageCode, options) {
457
- return localVarFp.apiV1HeadernavigationsLanguageCodeGet(languageCode, options).then(function (request) { return request(axios, basePath); });
458
- },
459
- /**
460
- *
461
- * @summary Delete HeaderNavigationItem
462
- * @param {string} languageCode
463
- * @param {string} id
464
- * @param {*} [options] Override http request option.
465
- * @throws {RequiredError}
466
- */
467
- apiV1HeadernavigationsLanguageCodeIdDelete: function (languageCode, id, options) {
468
- return localVarFp.apiV1HeadernavigationsLanguageCodeIdDelete(languageCode, id, options).then(function (request) { return request(axios, basePath); });
469
- },
470
- /**
471
- *
472
- * @summary Get HeaderNavigationItem by id
473
- * @param {string} languageCode
474
- * @param {string} id
475
- * @param {*} [options] Override http request option.
476
- * @throws {RequiredError}
477
- */
478
- apiV1HeadernavigationsLanguageCodeIdGet: function (languageCode, id, options) {
479
- return localVarFp.apiV1HeadernavigationsLanguageCodeIdGet(languageCode, id, options).then(function (request) { return request(axios, basePath); });
480
- },
481
- /**
482
- *
483
- * @summary Get HeaderNavigationItems by parent id
484
- * @param {string} languageCode
485
- * @param {string} parentId
486
- * @param {*} [options] Override http request option.
487
- * @throws {RequiredError}
488
- */
489
- apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet: function (languageCode, parentId, options) {
490
- return localVarFp.apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet(languageCode, parentId, options).then(function (request) { return request(axios, basePath); });
491
- },
492
- /**
493
- *
494
- * @summary Save HeaderNavigationItem
495
- * @param {string} languageCode
496
- * @param {SaveHeaderNavigationsCommand} [saveHeaderNavigationsCommand]
497
- * @param {*} [options] Override http request option.
498
- * @throws {RequiredError}
499
- */
500
- apiV1HeadernavigationsLanguageCodePost: function (languageCode, saveHeaderNavigationsCommand, options) {
501
- return localVarFp.apiV1HeadernavigationsLanguageCodePost(languageCode, saveHeaderNavigationsCommand, options).then(function (request) { return request(axios, basePath); });
502
- },
503
- };
504
- };
505
- exports.HeaderNavigationsApiFactory = HeaderNavigationsApiFactory;
506
- /**
507
- * HeaderNavigationsApi - object-oriented interface
508
- * @export
509
- * @class HeaderNavigationsApi
510
- * @extends {BaseAPI}
511
- */
512
- var HeaderNavigationsApi = /** @class */ (function (_super) {
513
- __extends(HeaderNavigationsApi, _super);
514
- function HeaderNavigationsApi() {
515
- return _super !== null && _super.apply(this, arguments) || this;
516
- }
517
- /**
518
- *
519
- * @summary Get all HeaderNavigationItems
520
- * @param {HeaderNavigationsApiApiV1HeadernavigationsLanguageCodeGetRequest} requestParameters Request parameters.
521
- * @param {*} [options] Override http request option.
522
- * @throws {RequiredError}
523
- * @memberof HeaderNavigationsApi
524
- */
525
- HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodeGet = function (requestParameters, options) {
526
- var _this = this;
527
- return (0, exports.HeaderNavigationsApiFp)(this.configuration).apiV1HeadernavigationsLanguageCodeGet(requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
528
- };
529
- /**
530
- *
531
- * @summary Delete HeaderNavigationItem
532
- * @param {HeaderNavigationsApiApiV1HeadernavigationsLanguageCodeIdDeleteRequest} requestParameters Request parameters.
533
- * @param {*} [options] Override http request option.
534
- * @throws {RequiredError}
535
- * @memberof HeaderNavigationsApi
536
- */
537
- HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodeIdDelete = function (requestParameters, options) {
538
- var _this = this;
539
- return (0, exports.HeaderNavigationsApiFp)(this.configuration).apiV1HeadernavigationsLanguageCodeIdDelete(requestParameters.languageCode, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
540
- };
541
- /**
542
- *
543
- * @summary Get HeaderNavigationItem by id
544
- * @param {HeaderNavigationsApiApiV1HeadernavigationsLanguageCodeIdGetRequest} requestParameters Request parameters.
545
- * @param {*} [options] Override http request option.
546
- * @throws {RequiredError}
547
- * @memberof HeaderNavigationsApi
548
- */
549
- HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodeIdGet = function (requestParameters, options) {
550
- var _this = this;
551
- return (0, exports.HeaderNavigationsApiFp)(this.configuration).apiV1HeadernavigationsLanguageCodeIdGet(requestParameters.languageCode, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
552
- };
553
- /**
554
- *
555
- * @summary Get HeaderNavigationItems by parent id
556
- * @param {HeaderNavigationsApiApiV1HeadernavigationsLanguageCodeParentIdSubitemsGetRequest} requestParameters Request parameters.
557
- * @param {*} [options] Override http request option.
558
- * @throws {RequiredError}
559
- * @memberof HeaderNavigationsApi
560
- */
561
- HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet = function (requestParameters, options) {
562
- var _this = this;
563
- return (0, exports.HeaderNavigationsApiFp)(this.configuration).apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet(requestParameters.languageCode, requestParameters.parentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
564
- };
565
- /**
566
- *
567
- * @summary Save HeaderNavigationItem
568
- * @param {HeaderNavigationsApiApiV1HeadernavigationsLanguageCodePostRequest} requestParameters Request parameters.
569
- * @param {*} [options] Override http request option.
570
- * @throws {RequiredError}
571
- * @memberof HeaderNavigationsApi
572
- */
573
- HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodePost = function (requestParameters, options) {
574
- var _this = this;
575
- return (0, exports.HeaderNavigationsApiFp)(this.configuration).apiV1HeadernavigationsLanguageCodePost(requestParameters.languageCode, requestParameters.saveHeaderNavigationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
576
- };
577
- return HeaderNavigationsApi;
578
- }(base_1.BaseAPI));
579
- exports.HeaderNavigationsApi = HeaderNavigationsApi;