ch-admin-api-client-typescript 5.79.11 → 5.79.15
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/frequently-asked-questions-api.d.ts +524 -0
- package/lib/api/frequently-asked-questions-api.d.ts.map +1 -0
- package/lib/api/frequently-asked-questions-api.js +866 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/article-type.d.ts +1 -0
- package/lib/models/article-type.d.ts.map +1 -1
- package/lib/models/article-type.js +2 -1
- package/lib/models/create-frequently-asked-question-command.d.ts +112 -0
- package/lib/models/create-frequently-asked-question-command.d.ts.map +1 -0
- package/lib/models/create-frequently-asked-question-command.js +15 -0
- package/lib/models/frequently-asked-question-categories.d.ts +22 -0
- package/lib/models/frequently-asked-question-categories.d.ts.map +1 -0
- package/lib/models/frequently-asked-question-categories.js +25 -0
- package/lib/models/frequently-asked-question-item-model.d.ts +125 -0
- package/lib/models/frequently-asked-question-item-model.d.ts.map +1 -0
- package/lib/models/frequently-asked-question-item-model.js +15 -0
- package/lib/models/frequently-asked-question-model.d.ts +137 -0
- package/lib/models/frequently-asked-question-model.d.ts.map +1 -0
- package/lib/models/frequently-asked-question-model.js +15 -0
- package/lib/models/frequently-asked-question-status.d.ts +23 -0
- package/lib/models/frequently-asked-question-status.d.ts.map +1 -0
- package/lib/models/frequently-asked-question-status.js +26 -0
- package/lib/models/frequently-asked-question-subcategories.d.ts +24 -0
- package/lib/models/frequently-asked-question-subcategories.d.ts.map +1 -0
- package/lib/models/frequently-asked-question-subcategories.js +27 -0
- package/lib/models/frequently-asked-questions-model.d.ts +33 -0
- package/lib/models/frequently-asked-questions-model.d.ts.map +1 -0
- package/lib/models/frequently-asked-questions-model.js +15 -0
- package/lib/models/index.d.ts +9 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +9 -0
- package/lib/models/translate-frequently-asked-question-command.d.ts +43 -0
- package/lib/models/translate-frequently-asked-question-command.d.ts.map +1 -0
- package/lib/models/translate-frequently-asked-question-command.js +15 -0
- package/lib/models/update-frequently-asked-question-command.d.ts +74 -0
- package/lib/models/update-frequently-asked-question-command.d.ts.map +1 -0
- package/lib/models/update-frequently-asked-question-command.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,866 @@
|
|
|
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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
+
return g.next = verb(0), g["throw"] = verb(1), g["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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
};
|
|
86
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
|
+
};
|
|
89
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
+
exports.FrequentlyAskedQuestionsApi = exports.FrequentlyAskedQuestionsApiFactory = exports.FrequentlyAskedQuestionsApiFp = exports.FrequentlyAskedQuestionsApiAxiosParamCreator = void 0;
|
|
91
|
+
var axios_1 = __importDefault(require("axios"));
|
|
92
|
+
// Some imports not used depending on template conditions
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
var common_1 = require("../common");
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
var base_1 = require("../base");
|
|
97
|
+
/**
|
|
98
|
+
* FrequentlyAskedQuestionsApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var FrequentlyAskedQuestionsApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Delete FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
107
|
+
* @param {string} frequentlyAskedQuestionId
|
|
108
|
+
* @param {boolean} [isPermanent]
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDelete: function (frequentlyAskedQuestionId_1, isPermanent_1) {
|
|
113
|
+
var args_1 = [];
|
|
114
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
115
|
+
args_1[_i - 2] = arguments[_i];
|
|
116
|
+
}
|
|
117
|
+
return __awaiter(_this, __spreadArray([frequentlyAskedQuestionId_1, isPermanent_1], args_1, true), void 0, function (frequentlyAskedQuestionId, isPermanent, options) {
|
|
118
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
+
if (options === void 0) { options = {}; }
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0:
|
|
123
|
+
// verify required parameter 'frequentlyAskedQuestionId' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDelete', 'frequentlyAskedQuestionId', frequentlyAskedQuestionId);
|
|
125
|
+
localVarPath = "/api/v1/frequentlyaskedquestions/{frequentlyAskedQuestionId}"
|
|
126
|
+
.replace("{".concat("frequentlyAskedQuestionId", "}"), encodeURIComponent(String(frequentlyAskedQuestionId)));
|
|
127
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
132
|
+
localVarHeaderParameter = {};
|
|
133
|
+
localVarQueryParameter = {};
|
|
134
|
+
// authentication oauth2 required
|
|
135
|
+
// oauth required
|
|
136
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
137
|
+
case 1:
|
|
138
|
+
// authentication oauth2 required
|
|
139
|
+
// oauth required
|
|
140
|
+
_a.sent();
|
|
141
|
+
if (isPermanent !== undefined) {
|
|
142
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
143
|
+
}
|
|
144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary Get FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
158
|
+
* @param {string} frequentlyAskedQuestionId
|
|
159
|
+
* @param {string} [languageCode]
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGet: function (frequentlyAskedQuestionId_1, languageCode_1) {
|
|
164
|
+
var args_1 = [];
|
|
165
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
166
|
+
args_1[_i - 2] = arguments[_i];
|
|
167
|
+
}
|
|
168
|
+
return __awaiter(_this, __spreadArray([frequentlyAskedQuestionId_1, languageCode_1], args_1, true), void 0, function (frequentlyAskedQuestionId, languageCode, options) {
|
|
169
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
170
|
+
if (options === void 0) { options = {}; }
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0:
|
|
174
|
+
// verify required parameter 'frequentlyAskedQuestionId' is not null or undefined
|
|
175
|
+
(0, common_1.assertParamExists)('apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGet', 'frequentlyAskedQuestionId', frequentlyAskedQuestionId);
|
|
176
|
+
localVarPath = "/api/v1/frequentlyaskedquestions/{frequentlyAskedQuestionId}"
|
|
177
|
+
.replace("{".concat("frequentlyAskedQuestionId", "}"), encodeURIComponent(String(frequentlyAskedQuestionId)));
|
|
178
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
179
|
+
if (configuration) {
|
|
180
|
+
baseOptions = configuration.baseOptions;
|
|
181
|
+
}
|
|
182
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
183
|
+
localVarHeaderParameter = {};
|
|
184
|
+
localVarQueryParameter = {};
|
|
185
|
+
// authentication oauth2 required
|
|
186
|
+
// oauth required
|
|
187
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
188
|
+
case 1:
|
|
189
|
+
// authentication oauth2 required
|
|
190
|
+
// oauth required
|
|
191
|
+
_a.sent();
|
|
192
|
+
if (languageCode !== undefined) {
|
|
193
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
194
|
+
}
|
|
195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
197
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
198
|
+
return [2 /*return*/, {
|
|
199
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
}];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary Update FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
209
|
+
* @param {string} frequentlyAskedQuestionId
|
|
210
|
+
* @param {UpdateFrequentlyAskedQuestionCommand} [updateFrequentlyAskedQuestionCommand]
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPut: function (frequentlyAskedQuestionId_1, updateFrequentlyAskedQuestionCommand_1) {
|
|
215
|
+
var args_1 = [];
|
|
216
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
217
|
+
args_1[_i - 2] = arguments[_i];
|
|
218
|
+
}
|
|
219
|
+
return __awaiter(_this, __spreadArray([frequentlyAskedQuestionId_1, updateFrequentlyAskedQuestionCommand_1], args_1, true), void 0, function (frequentlyAskedQuestionId, updateFrequentlyAskedQuestionCommand, options) {
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
221
|
+
if (options === void 0) { options = {}; }
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
|
+
case 0:
|
|
225
|
+
// verify required parameter 'frequentlyAskedQuestionId' is not null or undefined
|
|
226
|
+
(0, common_1.assertParamExists)('apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPut', 'frequentlyAskedQuestionId', frequentlyAskedQuestionId);
|
|
227
|
+
localVarPath = "/api/v1/frequentlyaskedquestions/{frequentlyAskedQuestionId}"
|
|
228
|
+
.replace("{".concat("frequentlyAskedQuestionId", "}"), encodeURIComponent(String(frequentlyAskedQuestionId)));
|
|
229
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
230
|
+
if (configuration) {
|
|
231
|
+
baseOptions = configuration.baseOptions;
|
|
232
|
+
}
|
|
233
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
234
|
+
localVarHeaderParameter = {};
|
|
235
|
+
localVarQueryParameter = {};
|
|
236
|
+
// authentication oauth2 required
|
|
237
|
+
// oauth required
|
|
238
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
239
|
+
case 1:
|
|
240
|
+
// authentication oauth2 required
|
|
241
|
+
// oauth required
|
|
242
|
+
_a.sent();
|
|
243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
244
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
245
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
246
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
247
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFrequentlyAskedQuestionCommand, localVarRequestOptions, configuration);
|
|
248
|
+
return [2 /*return*/, {
|
|
249
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
250
|
+
options: localVarRequestOptions,
|
|
251
|
+
}];
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @summary Reactivate FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
259
|
+
* @param {string} frequentlyAskedQuestionId
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePut: function (frequentlyAskedQuestionId_1) {
|
|
264
|
+
var args_1 = [];
|
|
265
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
266
|
+
args_1[_i - 1] = arguments[_i];
|
|
267
|
+
}
|
|
268
|
+
return __awaiter(_this, __spreadArray([frequentlyAskedQuestionId_1], args_1, true), void 0, function (frequentlyAskedQuestionId, options) {
|
|
269
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
270
|
+
if (options === void 0) { options = {}; }
|
|
271
|
+
return __generator(this, function (_a) {
|
|
272
|
+
switch (_a.label) {
|
|
273
|
+
case 0:
|
|
274
|
+
// verify required parameter 'frequentlyAskedQuestionId' is not null or undefined
|
|
275
|
+
(0, common_1.assertParamExists)('apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePut', 'frequentlyAskedQuestionId', frequentlyAskedQuestionId);
|
|
276
|
+
localVarPath = "/api/v1/frequentlyaskedquestions/{frequentlyAskedQuestionId}/reactivate"
|
|
277
|
+
.replace("{".concat("frequentlyAskedQuestionId", "}"), encodeURIComponent(String(frequentlyAskedQuestionId)));
|
|
278
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
279
|
+
if (configuration) {
|
|
280
|
+
baseOptions = configuration.baseOptions;
|
|
281
|
+
}
|
|
282
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
283
|
+
localVarHeaderParameter = {};
|
|
284
|
+
localVarQueryParameter = {};
|
|
285
|
+
// authentication oauth2 required
|
|
286
|
+
// oauth required
|
|
287
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
288
|
+
case 1:
|
|
289
|
+
// authentication oauth2 required
|
|
290
|
+
// oauth required
|
|
291
|
+
_a.sent();
|
|
292
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
293
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
+
return [2 /*return*/, {
|
|
296
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
}];
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @summary Translate FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
306
|
+
* @param {string} frequentlyAskedQuestionId
|
|
307
|
+
* @param {TranslateFrequentlyAskedQuestionCommand} [translateFrequentlyAskedQuestionCommand]
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePost: function (frequentlyAskedQuestionId_1, translateFrequentlyAskedQuestionCommand_1) {
|
|
312
|
+
var args_1 = [];
|
|
313
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
314
|
+
args_1[_i - 2] = arguments[_i];
|
|
315
|
+
}
|
|
316
|
+
return __awaiter(_this, __spreadArray([frequentlyAskedQuestionId_1, translateFrequentlyAskedQuestionCommand_1], args_1, true), void 0, function (frequentlyAskedQuestionId, translateFrequentlyAskedQuestionCommand, options) {
|
|
317
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
318
|
+
if (options === void 0) { options = {}; }
|
|
319
|
+
return __generator(this, function (_a) {
|
|
320
|
+
switch (_a.label) {
|
|
321
|
+
case 0:
|
|
322
|
+
// verify required parameter 'frequentlyAskedQuestionId' is not null or undefined
|
|
323
|
+
(0, common_1.assertParamExists)('apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePost', 'frequentlyAskedQuestionId', frequentlyAskedQuestionId);
|
|
324
|
+
localVarPath = "/api/v1/frequentlyaskedquestions/{frequentlyAskedQuestionId}/translate"
|
|
325
|
+
.replace("{".concat("frequentlyAskedQuestionId", "}"), encodeURIComponent(String(frequentlyAskedQuestionId)));
|
|
326
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
327
|
+
if (configuration) {
|
|
328
|
+
baseOptions = configuration.baseOptions;
|
|
329
|
+
}
|
|
330
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
331
|
+
localVarHeaderParameter = {};
|
|
332
|
+
localVarQueryParameter = {};
|
|
333
|
+
// authentication oauth2 required
|
|
334
|
+
// oauth required
|
|
335
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
336
|
+
case 1:
|
|
337
|
+
// authentication oauth2 required
|
|
338
|
+
// oauth required
|
|
339
|
+
_a.sent();
|
|
340
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
341
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
342
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
344
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(translateFrequentlyAskedQuestionCommand, localVarRequestOptions, configuration);
|
|
345
|
+
return [2 /*return*/, {
|
|
346
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
347
|
+
options: localVarRequestOptions,
|
|
348
|
+
}];
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
},
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @summary Get FrequentlyAskedQuestions (Auth policies: RequireContentManagerRole)
|
|
356
|
+
* @param {string} [languageCode]
|
|
357
|
+
* @param {string} [name]
|
|
358
|
+
* @param {FrequentlyAskedQuestionCategories} [category]
|
|
359
|
+
* @param {FrequentlyAskedQuestionSubcategories} [subcategory]
|
|
360
|
+
* @param {string} [id]
|
|
361
|
+
* @param {string} [hospitalId]
|
|
362
|
+
* @param {string} [doctorAffiliationId]
|
|
363
|
+
* @param {string} [dealId]
|
|
364
|
+
* @param {string} [articleId]
|
|
365
|
+
* @param {FrequentlyAskedQuestionStatus} [status]
|
|
366
|
+
* @param {boolean} [showHidden]
|
|
367
|
+
* @param {number} [page]
|
|
368
|
+
* @param {number} [limit]
|
|
369
|
+
* @param {Date} [lastRetrieved]
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
apiV1FrequentlyaskedquestionsGet: function (languageCode_1, name_1, category_1, subcategory_1, id_1, hospitalId_1, doctorAffiliationId_1, dealId_1, articleId_1, status_1, showHidden_1, page_1, limit_1, lastRetrieved_1) {
|
|
374
|
+
var args_1 = [];
|
|
375
|
+
for (var _i = 14; _i < arguments.length; _i++) {
|
|
376
|
+
args_1[_i - 14] = arguments[_i];
|
|
377
|
+
}
|
|
378
|
+
return __awaiter(_this, __spreadArray([languageCode_1, name_1, category_1, subcategory_1, id_1, hospitalId_1, doctorAffiliationId_1, dealId_1, articleId_1, status_1, showHidden_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, name, category, subcategory, id, hospitalId, doctorAffiliationId, dealId, articleId, status, showHidden, page, limit, lastRetrieved, options) {
|
|
379
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
380
|
+
if (options === void 0) { options = {}; }
|
|
381
|
+
return __generator(this, function (_a) {
|
|
382
|
+
switch (_a.label) {
|
|
383
|
+
case 0:
|
|
384
|
+
localVarPath = "/api/v1/frequentlyaskedquestions";
|
|
385
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions;
|
|
388
|
+
}
|
|
389
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
390
|
+
localVarHeaderParameter = {};
|
|
391
|
+
localVarQueryParameter = {};
|
|
392
|
+
// authentication oauth2 required
|
|
393
|
+
// oauth required
|
|
394
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
395
|
+
case 1:
|
|
396
|
+
// authentication oauth2 required
|
|
397
|
+
// oauth required
|
|
398
|
+
_a.sent();
|
|
399
|
+
if (languageCode !== undefined) {
|
|
400
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
401
|
+
}
|
|
402
|
+
if (name !== undefined) {
|
|
403
|
+
localVarQueryParameter['Name'] = name;
|
|
404
|
+
}
|
|
405
|
+
if (category !== undefined) {
|
|
406
|
+
localVarQueryParameter['Category'] = category;
|
|
407
|
+
}
|
|
408
|
+
if (subcategory !== undefined) {
|
|
409
|
+
localVarQueryParameter['Subcategory'] = subcategory;
|
|
410
|
+
}
|
|
411
|
+
if (id !== undefined) {
|
|
412
|
+
localVarQueryParameter['Id'] = id;
|
|
413
|
+
}
|
|
414
|
+
if (hospitalId !== undefined) {
|
|
415
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
416
|
+
}
|
|
417
|
+
if (doctorAffiliationId !== undefined) {
|
|
418
|
+
localVarQueryParameter['DoctorAffiliationId'] = doctorAffiliationId;
|
|
419
|
+
}
|
|
420
|
+
if (dealId !== undefined) {
|
|
421
|
+
localVarQueryParameter['DealId'] = dealId;
|
|
422
|
+
}
|
|
423
|
+
if (articleId !== undefined) {
|
|
424
|
+
localVarQueryParameter['ArticleId'] = articleId;
|
|
425
|
+
}
|
|
426
|
+
if (status !== undefined) {
|
|
427
|
+
localVarQueryParameter['Status'] = status;
|
|
428
|
+
}
|
|
429
|
+
if (showHidden !== undefined) {
|
|
430
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
431
|
+
}
|
|
432
|
+
if (page !== undefined) {
|
|
433
|
+
localVarQueryParameter['page'] = page;
|
|
434
|
+
}
|
|
435
|
+
if (limit !== undefined) {
|
|
436
|
+
localVarQueryParameter['limit'] = limit;
|
|
437
|
+
}
|
|
438
|
+
if (lastRetrieved !== undefined) {
|
|
439
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
440
|
+
lastRetrieved.toISOString() :
|
|
441
|
+
lastRetrieved;
|
|
442
|
+
}
|
|
443
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
444
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
445
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
446
|
+
return [2 /*return*/, {
|
|
447
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
448
|
+
options: localVarRequestOptions,
|
|
449
|
+
}];
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
});
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @summary Create FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
457
|
+
* @param {CreateFrequentlyAskedQuestionCommand} [createFrequentlyAskedQuestionCommand]
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
apiV1FrequentlyaskedquestionsPost: function (createFrequentlyAskedQuestionCommand_1) {
|
|
462
|
+
var args_1 = [];
|
|
463
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
464
|
+
args_1[_i - 1] = arguments[_i];
|
|
465
|
+
}
|
|
466
|
+
return __awaiter(_this, __spreadArray([createFrequentlyAskedQuestionCommand_1], args_1, true), void 0, function (createFrequentlyAskedQuestionCommand, options) {
|
|
467
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
468
|
+
if (options === void 0) { options = {}; }
|
|
469
|
+
return __generator(this, function (_a) {
|
|
470
|
+
switch (_a.label) {
|
|
471
|
+
case 0:
|
|
472
|
+
localVarPath = "/api/v1/frequentlyaskedquestions";
|
|
473
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
474
|
+
if (configuration) {
|
|
475
|
+
baseOptions = configuration.baseOptions;
|
|
476
|
+
}
|
|
477
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
478
|
+
localVarHeaderParameter = {};
|
|
479
|
+
localVarQueryParameter = {};
|
|
480
|
+
// authentication oauth2 required
|
|
481
|
+
// oauth required
|
|
482
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
483
|
+
case 1:
|
|
484
|
+
// authentication oauth2 required
|
|
485
|
+
// oauth required
|
|
486
|
+
_a.sent();
|
|
487
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
488
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
489
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
490
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
491
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFrequentlyAskedQuestionCommand, localVarRequestOptions, configuration);
|
|
492
|
+
return [2 /*return*/, {
|
|
493
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
494
|
+
options: localVarRequestOptions,
|
|
495
|
+
}];
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
},
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
exports.FrequentlyAskedQuestionsApiAxiosParamCreator = FrequentlyAskedQuestionsApiAxiosParamCreator;
|
|
503
|
+
/**
|
|
504
|
+
* FrequentlyAskedQuestionsApi - functional programming interface
|
|
505
|
+
* @export
|
|
506
|
+
*/
|
|
507
|
+
var FrequentlyAskedQuestionsApiFp = function (configuration) {
|
|
508
|
+
var localVarAxiosParamCreator = (0, exports.FrequentlyAskedQuestionsApiAxiosParamCreator)(configuration);
|
|
509
|
+
return {
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @summary Delete FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
513
|
+
* @param {string} frequentlyAskedQuestionId
|
|
514
|
+
* @param {boolean} [isPermanent]
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDelete: function (frequentlyAskedQuestionId, isPermanent, options) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
520
|
+
var localVarAxiosArgs;
|
|
521
|
+
return __generator(this, function (_a) {
|
|
522
|
+
switch (_a.label) {
|
|
523
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDelete(frequentlyAskedQuestionId, isPermanent, options)];
|
|
524
|
+
case 1:
|
|
525
|
+
localVarAxiosArgs = _a.sent();
|
|
526
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @summary Get FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
534
|
+
* @param {string} frequentlyAskedQuestionId
|
|
535
|
+
* @param {string} [languageCode]
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGet: function (frequentlyAskedQuestionId, languageCode, options) {
|
|
540
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
541
|
+
var localVarAxiosArgs;
|
|
542
|
+
return __generator(this, function (_a) {
|
|
543
|
+
switch (_a.label) {
|
|
544
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGet(frequentlyAskedQuestionId, languageCode, options)];
|
|
545
|
+
case 1:
|
|
546
|
+
localVarAxiosArgs = _a.sent();
|
|
547
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
});
|
|
551
|
+
},
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* @summary Update FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
555
|
+
* @param {string} frequentlyAskedQuestionId
|
|
556
|
+
* @param {UpdateFrequentlyAskedQuestionCommand} [updateFrequentlyAskedQuestionCommand]
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPut: function (frequentlyAskedQuestionId, updateFrequentlyAskedQuestionCommand, options) {
|
|
561
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
562
|
+
var localVarAxiosArgs;
|
|
563
|
+
return __generator(this, function (_a) {
|
|
564
|
+
switch (_a.label) {
|
|
565
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPut(frequentlyAskedQuestionId, updateFrequentlyAskedQuestionCommand, options)];
|
|
566
|
+
case 1:
|
|
567
|
+
localVarAxiosArgs = _a.sent();
|
|
568
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
});
|
|
572
|
+
},
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @summary Reactivate FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
576
|
+
* @param {string} frequentlyAskedQuestionId
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePut: function (frequentlyAskedQuestionId, options) {
|
|
581
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
582
|
+
var localVarAxiosArgs;
|
|
583
|
+
return __generator(this, function (_a) {
|
|
584
|
+
switch (_a.label) {
|
|
585
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePut(frequentlyAskedQuestionId, options)];
|
|
586
|
+
case 1:
|
|
587
|
+
localVarAxiosArgs = _a.sent();
|
|
588
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
},
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @summary Translate FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
596
|
+
* @param {string} frequentlyAskedQuestionId
|
|
597
|
+
* @param {TranslateFrequentlyAskedQuestionCommand} [translateFrequentlyAskedQuestionCommand]
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
*/
|
|
601
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePost: function (frequentlyAskedQuestionId, translateFrequentlyAskedQuestionCommand, options) {
|
|
602
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
603
|
+
var localVarAxiosArgs;
|
|
604
|
+
return __generator(this, function (_a) {
|
|
605
|
+
switch (_a.label) {
|
|
606
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePost(frequentlyAskedQuestionId, translateFrequentlyAskedQuestionCommand, options)];
|
|
607
|
+
case 1:
|
|
608
|
+
localVarAxiosArgs = _a.sent();
|
|
609
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
});
|
|
613
|
+
},
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @summary Get FrequentlyAskedQuestions (Auth policies: RequireContentManagerRole)
|
|
617
|
+
* @param {string} [languageCode]
|
|
618
|
+
* @param {string} [name]
|
|
619
|
+
* @param {FrequentlyAskedQuestionCategories} [category]
|
|
620
|
+
* @param {FrequentlyAskedQuestionSubcategories} [subcategory]
|
|
621
|
+
* @param {string} [id]
|
|
622
|
+
* @param {string} [hospitalId]
|
|
623
|
+
* @param {string} [doctorAffiliationId]
|
|
624
|
+
* @param {string} [dealId]
|
|
625
|
+
* @param {string} [articleId]
|
|
626
|
+
* @param {FrequentlyAskedQuestionStatus} [status]
|
|
627
|
+
* @param {boolean} [showHidden]
|
|
628
|
+
* @param {number} [page]
|
|
629
|
+
* @param {number} [limit]
|
|
630
|
+
* @param {Date} [lastRetrieved]
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
apiV1FrequentlyaskedquestionsGet: function (languageCode, name, category, subcategory, id, hospitalId, doctorAffiliationId, dealId, articleId, status, showHidden, page, limit, lastRetrieved, options) {
|
|
635
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
636
|
+
var localVarAxiosArgs;
|
|
637
|
+
return __generator(this, function (_a) {
|
|
638
|
+
switch (_a.label) {
|
|
639
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FrequentlyaskedquestionsGet(languageCode, name, category, subcategory, id, hospitalId, doctorAffiliationId, dealId, articleId, status, showHidden, page, limit, lastRetrieved, options)];
|
|
640
|
+
case 1:
|
|
641
|
+
localVarAxiosArgs = _a.sent();
|
|
642
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
},
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @summary Create FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
650
|
+
* @param {CreateFrequentlyAskedQuestionCommand} [createFrequentlyAskedQuestionCommand]
|
|
651
|
+
* @param {*} [options] Override http request option.
|
|
652
|
+
* @throws {RequiredError}
|
|
653
|
+
*/
|
|
654
|
+
apiV1FrequentlyaskedquestionsPost: function (createFrequentlyAskedQuestionCommand, options) {
|
|
655
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
656
|
+
var localVarAxiosArgs;
|
|
657
|
+
return __generator(this, function (_a) {
|
|
658
|
+
switch (_a.label) {
|
|
659
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FrequentlyaskedquestionsPost(createFrequentlyAskedQuestionCommand, options)];
|
|
660
|
+
case 1:
|
|
661
|
+
localVarAxiosArgs = _a.sent();
|
|
662
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
},
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
exports.FrequentlyAskedQuestionsApiFp = FrequentlyAskedQuestionsApiFp;
|
|
670
|
+
/**
|
|
671
|
+
* FrequentlyAskedQuestionsApi - factory interface
|
|
672
|
+
* @export
|
|
673
|
+
*/
|
|
674
|
+
var FrequentlyAskedQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
675
|
+
var localVarFp = (0, exports.FrequentlyAskedQuestionsApiFp)(configuration);
|
|
676
|
+
return {
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
* @summary Delete FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
680
|
+
* @param {string} frequentlyAskedQuestionId
|
|
681
|
+
* @param {boolean} [isPermanent]
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDelete: function (frequentlyAskedQuestionId, isPermanent, options) {
|
|
686
|
+
return localVarFp.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDelete(frequentlyAskedQuestionId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
687
|
+
},
|
|
688
|
+
/**
|
|
689
|
+
*
|
|
690
|
+
* @summary Get FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
691
|
+
* @param {string} frequentlyAskedQuestionId
|
|
692
|
+
* @param {string} [languageCode]
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
*/
|
|
696
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGet: function (frequentlyAskedQuestionId, languageCode, options) {
|
|
697
|
+
return localVarFp.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGet(frequentlyAskedQuestionId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
698
|
+
},
|
|
699
|
+
/**
|
|
700
|
+
*
|
|
701
|
+
* @summary Update FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
702
|
+
* @param {string} frequentlyAskedQuestionId
|
|
703
|
+
* @param {UpdateFrequentlyAskedQuestionCommand} [updateFrequentlyAskedQuestionCommand]
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
*/
|
|
707
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPut: function (frequentlyAskedQuestionId, updateFrequentlyAskedQuestionCommand, options) {
|
|
708
|
+
return localVarFp.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPut(frequentlyAskedQuestionId, updateFrequentlyAskedQuestionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
709
|
+
},
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @summary Reactivate FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
713
|
+
* @param {string} frequentlyAskedQuestionId
|
|
714
|
+
* @param {*} [options] Override http request option.
|
|
715
|
+
* @throws {RequiredError}
|
|
716
|
+
*/
|
|
717
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePut: function (frequentlyAskedQuestionId, options) {
|
|
718
|
+
return localVarFp.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePut(frequentlyAskedQuestionId, options).then(function (request) { return request(axios, basePath); });
|
|
719
|
+
},
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @summary Translate FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
723
|
+
* @param {string} frequentlyAskedQuestionId
|
|
724
|
+
* @param {TranslateFrequentlyAskedQuestionCommand} [translateFrequentlyAskedQuestionCommand]
|
|
725
|
+
* @param {*} [options] Override http request option.
|
|
726
|
+
* @throws {RequiredError}
|
|
727
|
+
*/
|
|
728
|
+
apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePost: function (frequentlyAskedQuestionId, translateFrequentlyAskedQuestionCommand, options) {
|
|
729
|
+
return localVarFp.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePost(frequentlyAskedQuestionId, translateFrequentlyAskedQuestionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
730
|
+
},
|
|
731
|
+
/**
|
|
732
|
+
*
|
|
733
|
+
* @summary Get FrequentlyAskedQuestions (Auth policies: RequireContentManagerRole)
|
|
734
|
+
* @param {string} [languageCode]
|
|
735
|
+
* @param {string} [name]
|
|
736
|
+
* @param {FrequentlyAskedQuestionCategories} [category]
|
|
737
|
+
* @param {FrequentlyAskedQuestionSubcategories} [subcategory]
|
|
738
|
+
* @param {string} [id]
|
|
739
|
+
* @param {string} [hospitalId]
|
|
740
|
+
* @param {string} [doctorAffiliationId]
|
|
741
|
+
* @param {string} [dealId]
|
|
742
|
+
* @param {string} [articleId]
|
|
743
|
+
* @param {FrequentlyAskedQuestionStatus} [status]
|
|
744
|
+
* @param {boolean} [showHidden]
|
|
745
|
+
* @param {number} [page]
|
|
746
|
+
* @param {number} [limit]
|
|
747
|
+
* @param {Date} [lastRetrieved]
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @throws {RequiredError}
|
|
750
|
+
*/
|
|
751
|
+
apiV1FrequentlyaskedquestionsGet: function (languageCode, name, category, subcategory, id, hospitalId, doctorAffiliationId, dealId, articleId, status, showHidden, page, limit, lastRetrieved, options) {
|
|
752
|
+
return localVarFp.apiV1FrequentlyaskedquestionsGet(languageCode, name, category, subcategory, id, hospitalId, doctorAffiliationId, dealId, articleId, status, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
753
|
+
},
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @summary Create FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
757
|
+
* @param {CreateFrequentlyAskedQuestionCommand} [createFrequentlyAskedQuestionCommand]
|
|
758
|
+
* @param {*} [options] Override http request option.
|
|
759
|
+
* @throws {RequiredError}
|
|
760
|
+
*/
|
|
761
|
+
apiV1FrequentlyaskedquestionsPost: function (createFrequentlyAskedQuestionCommand, options) {
|
|
762
|
+
return localVarFp.apiV1FrequentlyaskedquestionsPost(createFrequentlyAskedQuestionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
763
|
+
},
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
exports.FrequentlyAskedQuestionsApiFactory = FrequentlyAskedQuestionsApiFactory;
|
|
767
|
+
/**
|
|
768
|
+
* FrequentlyAskedQuestionsApi - object-oriented interface
|
|
769
|
+
* @export
|
|
770
|
+
* @class FrequentlyAskedQuestionsApi
|
|
771
|
+
* @extends {BaseAPI}
|
|
772
|
+
*/
|
|
773
|
+
var FrequentlyAskedQuestionsApi = /** @class */ (function (_super) {
|
|
774
|
+
__extends(FrequentlyAskedQuestionsApi, _super);
|
|
775
|
+
function FrequentlyAskedQuestionsApi() {
|
|
776
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
*
|
|
780
|
+
* @summary Delete FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
781
|
+
* @param {FrequentlyAskedQuestionsApiApiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDeleteRequest} requestParameters Request parameters.
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
* @memberof FrequentlyAskedQuestionsApi
|
|
785
|
+
*/
|
|
786
|
+
FrequentlyAskedQuestionsApi.prototype.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDelete = function (requestParameters, options) {
|
|
787
|
+
var _this = this;
|
|
788
|
+
return (0, exports.FrequentlyAskedQuestionsApiFp)(this.configuration).apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdDelete(requestParameters.frequentlyAskedQuestionId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
789
|
+
};
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @summary Get FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
793
|
+
* @param {FrequentlyAskedQuestionsApiApiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGetRequest} requestParameters Request parameters.
|
|
794
|
+
* @param {*} [options] Override http request option.
|
|
795
|
+
* @throws {RequiredError}
|
|
796
|
+
* @memberof FrequentlyAskedQuestionsApi
|
|
797
|
+
*/
|
|
798
|
+
FrequentlyAskedQuestionsApi.prototype.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGet = function (requestParameters, options) {
|
|
799
|
+
var _this = this;
|
|
800
|
+
return (0, exports.FrequentlyAskedQuestionsApiFp)(this.configuration).apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdGet(requestParameters.frequentlyAskedQuestionId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
801
|
+
};
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @summary Update FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
805
|
+
* @param {FrequentlyAskedQuestionsApiApiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPutRequest} requestParameters Request parameters.
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
* @memberof FrequentlyAskedQuestionsApi
|
|
809
|
+
*/
|
|
810
|
+
FrequentlyAskedQuestionsApi.prototype.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPut = function (requestParameters, options) {
|
|
811
|
+
var _this = this;
|
|
812
|
+
return (0, exports.FrequentlyAskedQuestionsApiFp)(this.configuration).apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdPut(requestParameters.frequentlyAskedQuestionId, requestParameters.updateFrequentlyAskedQuestionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
* @summary Reactivate FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
817
|
+
* @param {FrequentlyAskedQuestionsApiApiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePutRequest} requestParameters Request parameters.
|
|
818
|
+
* @param {*} [options] Override http request option.
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
* @memberof FrequentlyAskedQuestionsApi
|
|
821
|
+
*/
|
|
822
|
+
FrequentlyAskedQuestionsApi.prototype.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePut = function (requestParameters, options) {
|
|
823
|
+
var _this = this;
|
|
824
|
+
return (0, exports.FrequentlyAskedQuestionsApiFp)(this.configuration).apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdReactivatePut(requestParameters.frequentlyAskedQuestionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
825
|
+
};
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @summary Translate FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
829
|
+
* @param {FrequentlyAskedQuestionsApiApiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePostRequest} requestParameters Request parameters.
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
* @memberof FrequentlyAskedQuestionsApi
|
|
833
|
+
*/
|
|
834
|
+
FrequentlyAskedQuestionsApi.prototype.apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePost = function (requestParameters, options) {
|
|
835
|
+
var _this = this;
|
|
836
|
+
return (0, exports.FrequentlyAskedQuestionsApiFp)(this.configuration).apiV1FrequentlyaskedquestionsFrequentlyAskedQuestionIdTranslatePost(requestParameters.frequentlyAskedQuestionId, requestParameters.translateFrequentlyAskedQuestionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
837
|
+
};
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @summary Get FrequentlyAskedQuestions (Auth policies: RequireContentManagerRole)
|
|
841
|
+
* @param {FrequentlyAskedQuestionsApiApiV1FrequentlyaskedquestionsGetRequest} requestParameters Request parameters.
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
* @memberof FrequentlyAskedQuestionsApi
|
|
845
|
+
*/
|
|
846
|
+
FrequentlyAskedQuestionsApi.prototype.apiV1FrequentlyaskedquestionsGet = function (requestParameters, options) {
|
|
847
|
+
var _this = this;
|
|
848
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
849
|
+
return (0, exports.FrequentlyAskedQuestionsApiFp)(this.configuration).apiV1FrequentlyaskedquestionsGet(requestParameters.languageCode, requestParameters.name, requestParameters.category, requestParameters.subcategory, requestParameters.id, requestParameters.hospitalId, requestParameters.doctorAffiliationId, requestParameters.dealId, requestParameters.articleId, requestParameters.status, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @summary Create FrequentlyAskedQuestion (Auth policies: RequireContentManagerRole)
|
|
854
|
+
* @param {FrequentlyAskedQuestionsApiApiV1FrequentlyaskedquestionsPostRequest} requestParameters Request parameters.
|
|
855
|
+
* @param {*} [options] Override http request option.
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
* @memberof FrequentlyAskedQuestionsApi
|
|
858
|
+
*/
|
|
859
|
+
FrequentlyAskedQuestionsApi.prototype.apiV1FrequentlyaskedquestionsPost = function (requestParameters, options) {
|
|
860
|
+
var _this = this;
|
|
861
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
862
|
+
return (0, exports.FrequentlyAskedQuestionsApiFp)(this.configuration).apiV1FrequentlyaskedquestionsPost(requestParameters.createFrequentlyAskedQuestionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
863
|
+
};
|
|
864
|
+
return FrequentlyAskedQuestionsApi;
|
|
865
|
+
}(base_1.BaseAPI));
|
|
866
|
+
exports.FrequentlyAskedQuestionsApi = FrequentlyAskedQuestionsApi;
|