ch-api-client-typescript2 5.76.1 → 5.76.10
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/general-articles-api.d.ts +993 -0
- package/lib/api/general-articles-api.d.ts.map +1 -0
- package/lib/api/general-articles-api.js +1308 -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-category-document-model.d.ts +308 -0
- package/lib/models/article-category-document-model.d.ts.map +1 -0
- package/lib/models/article-category-document-model.js +15 -0
- package/lib/models/article-document-model.d.ts +19 -0
- package/lib/models/article-document-model.d.ts.map +1 -1
- package/lib/models/general-article-contributor-item-model.d.ts +92 -0
- package/lib/models/general-article-contributor-item-model.d.ts.map +1 -0
- package/lib/models/general-article-contributor-item-model.js +15 -0
- package/lib/models/general-article-contributor-model.d.ts +117 -0
- package/lib/models/general-article-contributor-model.d.ts.map +1 -0
- package/lib/models/general-article-contributor-model.js +15 -0
- package/lib/models/general-article-contributors-model.d.ts +33 -0
- package/lib/models/general-article-contributors-model.d.ts.map +1 -0
- package/lib/models/general-article-contributors-model.js +15 -0
- package/lib/models/general-article-item-model.d.ts +156 -0
- package/lib/models/general-article-item-model.d.ts.map +1 -0
- package/lib/models/general-article-item-model.js +15 -0
- package/lib/models/general-article-model.d.ts +180 -0
- package/lib/models/general-article-model.d.ts.map +1 -0
- package/lib/models/general-article-model.js +15 -0
- package/lib/models/general-article-sources-model.d.ts +33 -0
- package/lib/models/general-article-sources-model.d.ts.map +1 -0
- package/lib/models/general-article-sources-model.js +15 -0
- package/lib/models/general-article-tag-item-model.d.ts +31 -0
- package/lib/models/general-article-tag-item-model.d.ts.map +1 -0
- package/lib/models/general-article-tag-item-model.js +15 -0
- package/lib/models/general-article-tags-model.d.ts +33 -0
- package/lib/models/general-article-tags-model.d.ts.map +1 -0
- package/lib/models/general-article-tags-model.js +15 -0
- package/lib/models/general-articles-model.d.ts +33 -0
- package/lib/models/general-articles-model.d.ts.map +1 -0
- package/lib/models/general-articles-model.js +15 -0
- package/lib/models/index.d.ts +10 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1308 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CloudHospital Api
|
|
6
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2
|
|
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.GeneralArticlesApi = exports.GeneralArticlesApiFactory = exports.GeneralArticlesApiFp = exports.GeneralArticlesApiAxiosParamCreator = 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
|
+
* GeneralArticlesApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var GeneralArticlesApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Get GeneralArticleContributor.
|
|
107
|
+
* @param {string} generalArticleId
|
|
108
|
+
* @param {string} contributorId
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet: function (generalArticleId_1, contributorId_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([generalArticleId_1, contributorId_1], args_1, true), void 0, function (generalArticleId, contributorId, options) {
|
|
118
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
+
if (options === void 0) { options = {}; }
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
122
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet', 'generalArticleId', generalArticleId);
|
|
123
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet', 'contributorId', contributorId);
|
|
125
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}/contributors/{contributorId}"
|
|
126
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
127
|
+
.replace("{".concat("contributorId", "}"), encodeURIComponent(String(contributorId)));
|
|
128
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
129
|
+
if (configuration) {
|
|
130
|
+
baseOptions = configuration.baseOptions;
|
|
131
|
+
}
|
|
132
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
133
|
+
localVarHeaderParameter = {};
|
|
134
|
+
localVarQueryParameter = {};
|
|
135
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
+
return [2 /*return*/, {
|
|
139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
}];
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @summary GetAll GeneralArticleContributors.
|
|
148
|
+
* @param {string} generalArticleId
|
|
149
|
+
* @param {string} [languageCode]
|
|
150
|
+
* @param {string} [contributorId]
|
|
151
|
+
* @param {string} [contributorName]
|
|
152
|
+
* @param {string} [email]
|
|
153
|
+
* @param {string} [website]
|
|
154
|
+
* @param {ContributionType} [contributionType]
|
|
155
|
+
* @param {number} [page]
|
|
156
|
+
* @param {number} [limit]
|
|
157
|
+
* @param {Date} [lastRetrieved]
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
apiV2GeneralarticlesGeneralArticleIdContributorsGet: function (generalArticleId_1, languageCode_1, contributorId_1, contributorName_1, email_1, website_1, contributionType_1, page_1, limit_1, lastRetrieved_1) {
|
|
162
|
+
var args_1 = [];
|
|
163
|
+
for (var _i = 10; _i < arguments.length; _i++) {
|
|
164
|
+
args_1[_i - 10] = arguments[_i];
|
|
165
|
+
}
|
|
166
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, languageCode_1, contributorId_1, contributorName_1, email_1, website_1, contributionType_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, page, limit, lastRetrieved, options) {
|
|
167
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
168
|
+
if (options === void 0) { options = {}; }
|
|
169
|
+
return __generator(this, function (_a) {
|
|
170
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
171
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdContributorsGet', 'generalArticleId', generalArticleId);
|
|
172
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}/contributors"
|
|
173
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
174
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
175
|
+
if (configuration) {
|
|
176
|
+
baseOptions = configuration.baseOptions;
|
|
177
|
+
}
|
|
178
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
179
|
+
localVarHeaderParameter = {};
|
|
180
|
+
localVarQueryParameter = {};
|
|
181
|
+
if (languageCode !== undefined) {
|
|
182
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
183
|
+
}
|
|
184
|
+
if (contributorId !== undefined) {
|
|
185
|
+
localVarQueryParameter['ContributorId'] = contributorId;
|
|
186
|
+
}
|
|
187
|
+
if (contributorName !== undefined) {
|
|
188
|
+
localVarQueryParameter['ContributorName'] = contributorName;
|
|
189
|
+
}
|
|
190
|
+
if (email !== undefined) {
|
|
191
|
+
localVarQueryParameter['Email'] = email;
|
|
192
|
+
}
|
|
193
|
+
if (website !== undefined) {
|
|
194
|
+
localVarQueryParameter['Website'] = website;
|
|
195
|
+
}
|
|
196
|
+
if (contributionType !== undefined) {
|
|
197
|
+
localVarQueryParameter['ContributionType'] = contributionType;
|
|
198
|
+
}
|
|
199
|
+
if (page !== undefined) {
|
|
200
|
+
localVarQueryParameter['page'] = page;
|
|
201
|
+
}
|
|
202
|
+
if (limit !== undefined) {
|
|
203
|
+
localVarQueryParameter['limit'] = limit;
|
|
204
|
+
}
|
|
205
|
+
if (lastRetrieved !== undefined) {
|
|
206
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
207
|
+
lastRetrieved.toISOString() :
|
|
208
|
+
lastRetrieved;
|
|
209
|
+
}
|
|
210
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
211
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
213
|
+
return [2 /*return*/, {
|
|
214
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
215
|
+
options: localVarRequestOptions,
|
|
216
|
+
}];
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @summary Get GeneralArticle by id.
|
|
223
|
+
* @param {string} generalArticleId
|
|
224
|
+
* @param {string} [languageCode]
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @throws {RequiredError}
|
|
227
|
+
*/
|
|
228
|
+
apiV2GeneralarticlesGeneralArticleIdGet: function (generalArticleId_1, languageCode_1) {
|
|
229
|
+
var args_1 = [];
|
|
230
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
231
|
+
args_1[_i - 2] = arguments[_i];
|
|
232
|
+
}
|
|
233
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, languageCode_1], args_1, true), void 0, function (generalArticleId, languageCode, options) {
|
|
234
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
235
|
+
if (options === void 0) { options = {}; }
|
|
236
|
+
return __generator(this, function (_a) {
|
|
237
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
238
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdGet', 'generalArticleId', generalArticleId);
|
|
239
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}"
|
|
240
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
241
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
242
|
+
if (configuration) {
|
|
243
|
+
baseOptions = configuration.baseOptions;
|
|
244
|
+
}
|
|
245
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
246
|
+
localVarHeaderParameter = {};
|
|
247
|
+
localVarQueryParameter = {};
|
|
248
|
+
if (languageCode !== undefined) {
|
|
249
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
250
|
+
}
|
|
251
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
252
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
253
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
254
|
+
return [2 /*return*/, {
|
|
255
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
256
|
+
options: localVarRequestOptions,
|
|
257
|
+
}];
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @summary Get all GeneralArticleMedias.
|
|
264
|
+
* @param {string} generalArticleId
|
|
265
|
+
* @param {string} [id]
|
|
266
|
+
* @param {MediaType} [mediaType]
|
|
267
|
+
* @param {number} [page]
|
|
268
|
+
* @param {number} [limit]
|
|
269
|
+
* @param {Date} [lastRetrieved]
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
apiV2GeneralarticlesGeneralArticleIdMediasGet: function (generalArticleId_1, id_1, mediaType_1, page_1, limit_1, lastRetrieved_1) {
|
|
274
|
+
var args_1 = [];
|
|
275
|
+
for (var _i = 6; _i < arguments.length; _i++) {
|
|
276
|
+
args_1[_i - 6] = arguments[_i];
|
|
277
|
+
}
|
|
278
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, id_1, mediaType_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (generalArticleId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
279
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
280
|
+
if (options === void 0) { options = {}; }
|
|
281
|
+
return __generator(this, function (_a) {
|
|
282
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
283
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdMediasGet', 'generalArticleId', generalArticleId);
|
|
284
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}/medias"
|
|
285
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
286
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
287
|
+
if (configuration) {
|
|
288
|
+
baseOptions = configuration.baseOptions;
|
|
289
|
+
}
|
|
290
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
291
|
+
localVarHeaderParameter = {};
|
|
292
|
+
localVarQueryParameter = {};
|
|
293
|
+
if (id !== undefined) {
|
|
294
|
+
localVarQueryParameter['Id'] = id;
|
|
295
|
+
}
|
|
296
|
+
if (mediaType !== undefined) {
|
|
297
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
298
|
+
}
|
|
299
|
+
if (page !== undefined) {
|
|
300
|
+
localVarQueryParameter['page'] = page;
|
|
301
|
+
}
|
|
302
|
+
if (limit !== undefined) {
|
|
303
|
+
localVarQueryParameter['limit'] = limit;
|
|
304
|
+
}
|
|
305
|
+
if (lastRetrieved !== undefined) {
|
|
306
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
307
|
+
lastRetrieved.toISOString() :
|
|
308
|
+
lastRetrieved;
|
|
309
|
+
}
|
|
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
|
+
* @summary Get GeneralArticleMedia.
|
|
323
|
+
* @param {string} generalArticleId
|
|
324
|
+
* @param {string} mediaId
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet: function (generalArticleId_1, mediaId_1) {
|
|
329
|
+
var args_1 = [];
|
|
330
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
331
|
+
args_1[_i - 2] = arguments[_i];
|
|
332
|
+
}
|
|
333
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, mediaId_1], args_1, true), void 0, function (generalArticleId, mediaId, options) {
|
|
334
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
335
|
+
if (options === void 0) { options = {}; }
|
|
336
|
+
return __generator(this, function (_a) {
|
|
337
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
338
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet', 'generalArticleId', generalArticleId);
|
|
339
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
340
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
341
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}/medias/{mediaId}"
|
|
342
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
343
|
+
.replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
|
|
344
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
|
+
if (configuration) {
|
|
346
|
+
baseOptions = configuration.baseOptions;
|
|
347
|
+
}
|
|
348
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
349
|
+
localVarHeaderParameter = {};
|
|
350
|
+
localVarQueryParameter = {};
|
|
351
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
352
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
353
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
354
|
+
return [2 /*return*/, {
|
|
355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions,
|
|
357
|
+
}];
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @summary Get all GeneralArticleSource.
|
|
364
|
+
* @param {string} generalArticleId
|
|
365
|
+
* @param {number} [page]
|
|
366
|
+
* @param {number} [limit]
|
|
367
|
+
* @param {Date} [lastRetrieved]
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
*/
|
|
371
|
+
apiV2GeneralarticlesGeneralArticleIdSourcesGet: function (generalArticleId_1, page_1, limit_1, lastRetrieved_1) {
|
|
372
|
+
var args_1 = [];
|
|
373
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
374
|
+
args_1[_i - 4] = arguments[_i];
|
|
375
|
+
}
|
|
376
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (generalArticleId, page, limit, lastRetrieved, options) {
|
|
377
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
378
|
+
if (options === void 0) { options = {}; }
|
|
379
|
+
return __generator(this, function (_a) {
|
|
380
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
381
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdSourcesGet', 'generalArticleId', generalArticleId);
|
|
382
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}/sources"
|
|
383
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
384
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
385
|
+
if (configuration) {
|
|
386
|
+
baseOptions = configuration.baseOptions;
|
|
387
|
+
}
|
|
388
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
389
|
+
localVarHeaderParameter = {};
|
|
390
|
+
localVarQueryParameter = {};
|
|
391
|
+
if (page !== undefined) {
|
|
392
|
+
localVarQueryParameter['page'] = page;
|
|
393
|
+
}
|
|
394
|
+
if (limit !== undefined) {
|
|
395
|
+
localVarQueryParameter['limit'] = limit;
|
|
396
|
+
}
|
|
397
|
+
if (lastRetrieved !== undefined) {
|
|
398
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
399
|
+
lastRetrieved.toISOString() :
|
|
400
|
+
lastRetrieved;
|
|
401
|
+
}
|
|
402
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
403
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
404
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
405
|
+
return [2 /*return*/, {
|
|
406
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
407
|
+
options: localVarRequestOptions,
|
|
408
|
+
}];
|
|
409
|
+
});
|
|
410
|
+
});
|
|
411
|
+
},
|
|
412
|
+
/**
|
|
413
|
+
*
|
|
414
|
+
* @summary Get GeneralArticleSource.
|
|
415
|
+
* @param {string} generalArticleId
|
|
416
|
+
* @param {string} sourceId
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet: function (generalArticleId_1, sourceId_1) {
|
|
421
|
+
var args_1 = [];
|
|
422
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
423
|
+
args_1[_i - 2] = arguments[_i];
|
|
424
|
+
}
|
|
425
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, sourceId_1], args_1, true), void 0, function (generalArticleId, sourceId, options) {
|
|
426
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
427
|
+
if (options === void 0) { options = {}; }
|
|
428
|
+
return __generator(this, function (_a) {
|
|
429
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
430
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet', 'generalArticleId', generalArticleId);
|
|
431
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
432
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet', 'sourceId', sourceId);
|
|
433
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}/sources/{sourceId}"
|
|
434
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
435
|
+
.replace("{".concat("sourceId", "}"), encodeURIComponent(String(sourceId)));
|
|
436
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
437
|
+
if (configuration) {
|
|
438
|
+
baseOptions = configuration.baseOptions;
|
|
439
|
+
}
|
|
440
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
441
|
+
localVarHeaderParameter = {};
|
|
442
|
+
localVarQueryParameter = {};
|
|
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
|
+
* @summary GetAll GeneralArticleTags.
|
|
456
|
+
* @param {string} generalArticleId
|
|
457
|
+
* @param {string} [tagId]
|
|
458
|
+
* @param {number} [page]
|
|
459
|
+
* @param {number} [limit]
|
|
460
|
+
* @param {Date} [lastRetrieved]
|
|
461
|
+
* @param {*} [options] Override http request option.
|
|
462
|
+
* @throws {RequiredError}
|
|
463
|
+
*/
|
|
464
|
+
apiV2GeneralarticlesGeneralArticleIdTagsGet: function (generalArticleId_1, tagId_1, page_1, limit_1, lastRetrieved_1) {
|
|
465
|
+
var args_1 = [];
|
|
466
|
+
for (var _i = 5; _i < arguments.length; _i++) {
|
|
467
|
+
args_1[_i - 5] = arguments[_i];
|
|
468
|
+
}
|
|
469
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, tagId_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (generalArticleId, tagId, page, limit, lastRetrieved, options) {
|
|
470
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
471
|
+
if (options === void 0) { options = {}; }
|
|
472
|
+
return __generator(this, function (_a) {
|
|
473
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
474
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdTagsGet', 'generalArticleId', generalArticleId);
|
|
475
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}/tags"
|
|
476
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
477
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
478
|
+
if (configuration) {
|
|
479
|
+
baseOptions = configuration.baseOptions;
|
|
480
|
+
}
|
|
481
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
482
|
+
localVarHeaderParameter = {};
|
|
483
|
+
localVarQueryParameter = {};
|
|
484
|
+
if (tagId !== undefined) {
|
|
485
|
+
localVarQueryParameter['TagId'] = tagId;
|
|
486
|
+
}
|
|
487
|
+
if (page !== undefined) {
|
|
488
|
+
localVarQueryParameter['page'] = page;
|
|
489
|
+
}
|
|
490
|
+
if (limit !== undefined) {
|
|
491
|
+
localVarQueryParameter['limit'] = limit;
|
|
492
|
+
}
|
|
493
|
+
if (lastRetrieved !== undefined) {
|
|
494
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
495
|
+
lastRetrieved.toISOString() :
|
|
496
|
+
lastRetrieved;
|
|
497
|
+
}
|
|
498
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
499
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
500
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
501
|
+
return [2 /*return*/, {
|
|
502
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
503
|
+
options: localVarRequestOptions,
|
|
504
|
+
}];
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @summary Get GeneralArticleTag.
|
|
511
|
+
* @param {string} generalArticleId
|
|
512
|
+
* @param {string} tagId
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
*/
|
|
516
|
+
apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet: function (generalArticleId_1, tagId_1) {
|
|
517
|
+
var args_1 = [];
|
|
518
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
519
|
+
args_1[_i - 2] = arguments[_i];
|
|
520
|
+
}
|
|
521
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, tagId_1], args_1, true), void 0, function (generalArticleId, tagId, options) {
|
|
522
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
523
|
+
if (options === void 0) { options = {}; }
|
|
524
|
+
return __generator(this, function (_a) {
|
|
525
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
526
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet', 'generalArticleId', generalArticleId);
|
|
527
|
+
// verify required parameter 'tagId' is not null or undefined
|
|
528
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet', 'tagId', tagId);
|
|
529
|
+
localVarPath = "/api/v2/generalarticles/{generalArticleId}/tags/{tagId}"
|
|
530
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
531
|
+
.replace("{".concat("tagId", "}"), encodeURIComponent(String(tagId)));
|
|
532
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
533
|
+
if (configuration) {
|
|
534
|
+
baseOptions = configuration.baseOptions;
|
|
535
|
+
}
|
|
536
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
537
|
+
localVarHeaderParameter = {};
|
|
538
|
+
localVarQueryParameter = {};
|
|
539
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
540
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
541
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
542
|
+
return [2 /*return*/, {
|
|
543
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
544
|
+
options: localVarRequestOptions,
|
|
545
|
+
}];
|
|
546
|
+
});
|
|
547
|
+
});
|
|
548
|
+
},
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @summary Get all GeneralArticles.
|
|
552
|
+
* @param {string} [id]
|
|
553
|
+
* @param {string} [name]
|
|
554
|
+
* @param {string} [description]
|
|
555
|
+
* @param {ArticleType} [articleType]
|
|
556
|
+
* @param {ArticleStatus} [status]
|
|
557
|
+
* @param {string} [userId]
|
|
558
|
+
* @param {string} [userName]
|
|
559
|
+
* @param {string} [hospitalId]
|
|
560
|
+
* @param {string} [hospitalName]
|
|
561
|
+
* @param {string} [countryId]
|
|
562
|
+
* @param {string} [tag]
|
|
563
|
+
* @param {string} [exceptArticleId]
|
|
564
|
+
* @param {string} [exceptHospitalId]
|
|
565
|
+
* @param {string} [contributorId]
|
|
566
|
+
* @param {string} [articleCategoryId]
|
|
567
|
+
* @param {string} [languageCode]
|
|
568
|
+
* @param {number} [page]
|
|
569
|
+
* @param {number} [limit]
|
|
570
|
+
* @param {Date} [lastRetrieved]
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
apiV2GeneralarticlesGet: function (id_1, name_1, description_1, articleType_1, status_1, userId_1, userName_1, hospitalId_1, hospitalName_1, countryId_1, tag_1, exceptArticleId_1, exceptHospitalId_1, contributorId_1, articleCategoryId_1, languageCode_1, page_1, limit_1, lastRetrieved_1) {
|
|
575
|
+
var args_1 = [];
|
|
576
|
+
for (var _i = 19; _i < arguments.length; _i++) {
|
|
577
|
+
args_1[_i - 19] = arguments[_i];
|
|
578
|
+
}
|
|
579
|
+
return __awaiter(_this, __spreadArray([id_1, name_1, description_1, articleType_1, status_1, userId_1, userName_1, hospitalId_1, hospitalName_1, countryId_1, tag_1, exceptArticleId_1, exceptHospitalId_1, contributorId_1, articleCategoryId_1, languageCode_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
580
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
581
|
+
if (options === void 0) { options = {}; }
|
|
582
|
+
return __generator(this, function (_a) {
|
|
583
|
+
localVarPath = "/api/v2/generalarticles";
|
|
584
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
585
|
+
if (configuration) {
|
|
586
|
+
baseOptions = configuration.baseOptions;
|
|
587
|
+
}
|
|
588
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
589
|
+
localVarHeaderParameter = {};
|
|
590
|
+
localVarQueryParameter = {};
|
|
591
|
+
if (id !== undefined) {
|
|
592
|
+
localVarQueryParameter['Id'] = id;
|
|
593
|
+
}
|
|
594
|
+
if (name !== undefined) {
|
|
595
|
+
localVarQueryParameter['Name'] = name;
|
|
596
|
+
}
|
|
597
|
+
if (description !== undefined) {
|
|
598
|
+
localVarQueryParameter['Description'] = description;
|
|
599
|
+
}
|
|
600
|
+
if (articleType !== undefined) {
|
|
601
|
+
localVarQueryParameter['ArticleType'] = articleType;
|
|
602
|
+
}
|
|
603
|
+
if (status !== undefined) {
|
|
604
|
+
localVarQueryParameter['Status'] = status;
|
|
605
|
+
}
|
|
606
|
+
if (userId !== undefined) {
|
|
607
|
+
localVarQueryParameter['UserId'] = userId;
|
|
608
|
+
}
|
|
609
|
+
if (userName !== undefined) {
|
|
610
|
+
localVarQueryParameter['UserName'] = userName;
|
|
611
|
+
}
|
|
612
|
+
if (hospitalId !== undefined) {
|
|
613
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
614
|
+
}
|
|
615
|
+
if (hospitalName !== undefined) {
|
|
616
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
617
|
+
}
|
|
618
|
+
if (countryId !== undefined) {
|
|
619
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
620
|
+
}
|
|
621
|
+
if (tag !== undefined) {
|
|
622
|
+
localVarQueryParameter['Tag'] = tag;
|
|
623
|
+
}
|
|
624
|
+
if (exceptArticleId !== undefined) {
|
|
625
|
+
localVarQueryParameter['ExceptArticleId'] = exceptArticleId;
|
|
626
|
+
}
|
|
627
|
+
if (exceptHospitalId !== undefined) {
|
|
628
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
629
|
+
}
|
|
630
|
+
if (contributorId !== undefined) {
|
|
631
|
+
localVarQueryParameter['ContributorId'] = contributorId;
|
|
632
|
+
}
|
|
633
|
+
if (articleCategoryId !== undefined) {
|
|
634
|
+
localVarQueryParameter['ArticleCategoryId'] = articleCategoryId;
|
|
635
|
+
}
|
|
636
|
+
if (languageCode !== undefined) {
|
|
637
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
638
|
+
}
|
|
639
|
+
if (page !== undefined) {
|
|
640
|
+
localVarQueryParameter['page'] = page;
|
|
641
|
+
}
|
|
642
|
+
if (limit !== undefined) {
|
|
643
|
+
localVarQueryParameter['limit'] = limit;
|
|
644
|
+
}
|
|
645
|
+
if (lastRetrieved !== undefined) {
|
|
646
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
647
|
+
lastRetrieved.toISOString() :
|
|
648
|
+
lastRetrieved;
|
|
649
|
+
}
|
|
650
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
651
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
652
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
653
|
+
return [2 /*return*/, {
|
|
654
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
655
|
+
options: localVarRequestOptions,
|
|
656
|
+
}];
|
|
657
|
+
});
|
|
658
|
+
});
|
|
659
|
+
},
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @summary Get GeneralArticle by slug
|
|
663
|
+
* @param {string} slug
|
|
664
|
+
* @param {string} [languageCode]
|
|
665
|
+
* @param {boolean} [returnDefaultValue]
|
|
666
|
+
* @param {string} [previewSecret]
|
|
667
|
+
* @param {string} [hospitalId]
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
apiV2GeneralarticlesSlugGet: function (slug_1, languageCode_1, returnDefaultValue_1, previewSecret_1, hospitalId_1) {
|
|
672
|
+
var args_1 = [];
|
|
673
|
+
for (var _i = 5; _i < arguments.length; _i++) {
|
|
674
|
+
args_1[_i - 5] = arguments[_i];
|
|
675
|
+
}
|
|
676
|
+
return __awaiter(_this, __spreadArray([slug_1, languageCode_1, returnDefaultValue_1, previewSecret_1, hospitalId_1], args_1, true), void 0, function (slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options) {
|
|
677
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
678
|
+
if (options === void 0) { options = {}; }
|
|
679
|
+
return __generator(this, function (_a) {
|
|
680
|
+
// verify required parameter 'slug' is not null or undefined
|
|
681
|
+
(0, common_1.assertParamExists)('apiV2GeneralarticlesSlugGet', 'slug', slug);
|
|
682
|
+
localVarPath = "/api/v2/generalarticles/{slug}"
|
|
683
|
+
.replace("{".concat("slug", "}"), encodeURIComponent(String(slug)));
|
|
684
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
685
|
+
if (configuration) {
|
|
686
|
+
baseOptions = configuration.baseOptions;
|
|
687
|
+
}
|
|
688
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
689
|
+
localVarHeaderParameter = {};
|
|
690
|
+
localVarQueryParameter = {};
|
|
691
|
+
if (languageCode !== undefined) {
|
|
692
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
693
|
+
}
|
|
694
|
+
if (returnDefaultValue !== undefined) {
|
|
695
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
696
|
+
}
|
|
697
|
+
if (previewSecret !== undefined) {
|
|
698
|
+
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
699
|
+
}
|
|
700
|
+
if (hospitalId !== undefined) {
|
|
701
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
702
|
+
}
|
|
703
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
704
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
705
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
706
|
+
return [2 /*return*/, {
|
|
707
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
708
|
+
options: localVarRequestOptions,
|
|
709
|
+
}];
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
},
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
exports.GeneralArticlesApiAxiosParamCreator = GeneralArticlesApiAxiosParamCreator;
|
|
716
|
+
/**
|
|
717
|
+
* GeneralArticlesApi - functional programming interface
|
|
718
|
+
* @export
|
|
719
|
+
*/
|
|
720
|
+
var GeneralArticlesApiFp = function (configuration) {
|
|
721
|
+
var localVarAxiosParamCreator = (0, exports.GeneralArticlesApiAxiosParamCreator)(configuration);
|
|
722
|
+
return {
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @summary Get GeneralArticleContributor.
|
|
726
|
+
* @param {string} generalArticleId
|
|
727
|
+
* @param {string} contributorId
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
*/
|
|
731
|
+
apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet: function (generalArticleId, contributorId, options) {
|
|
732
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
733
|
+
var localVarAxiosArgs;
|
|
734
|
+
return __generator(this, function (_a) {
|
|
735
|
+
switch (_a.label) {
|
|
736
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet(generalArticleId, contributorId, options)];
|
|
737
|
+
case 1:
|
|
738
|
+
localVarAxiosArgs = _a.sent();
|
|
739
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
});
|
|
743
|
+
},
|
|
744
|
+
/**
|
|
745
|
+
*
|
|
746
|
+
* @summary GetAll GeneralArticleContributors.
|
|
747
|
+
* @param {string} generalArticleId
|
|
748
|
+
* @param {string} [languageCode]
|
|
749
|
+
* @param {string} [contributorId]
|
|
750
|
+
* @param {string} [contributorName]
|
|
751
|
+
* @param {string} [email]
|
|
752
|
+
* @param {string} [website]
|
|
753
|
+
* @param {ContributionType} [contributionType]
|
|
754
|
+
* @param {number} [page]
|
|
755
|
+
* @param {number} [limit]
|
|
756
|
+
* @param {Date} [lastRetrieved]
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
*/
|
|
760
|
+
apiV2GeneralarticlesGeneralArticleIdContributorsGet: function (generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, page, limit, lastRetrieved, options) {
|
|
761
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
762
|
+
var localVarAxiosArgs;
|
|
763
|
+
return __generator(this, function (_a) {
|
|
764
|
+
switch (_a.label) {
|
|
765
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdContributorsGet(generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, page, limit, lastRetrieved, options)];
|
|
766
|
+
case 1:
|
|
767
|
+
localVarAxiosArgs = _a.sent();
|
|
768
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
});
|
|
772
|
+
},
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @summary Get GeneralArticle by id.
|
|
776
|
+
* @param {string} generalArticleId
|
|
777
|
+
* @param {string} [languageCode]
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
apiV2GeneralarticlesGeneralArticleIdGet: function (generalArticleId, languageCode, options) {
|
|
782
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
783
|
+
var localVarAxiosArgs;
|
|
784
|
+
return __generator(this, function (_a) {
|
|
785
|
+
switch (_a.label) {
|
|
786
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdGet(generalArticleId, languageCode, options)];
|
|
787
|
+
case 1:
|
|
788
|
+
localVarAxiosArgs = _a.sent();
|
|
789
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
});
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* @summary Get all GeneralArticleMedias.
|
|
797
|
+
* @param {string} generalArticleId
|
|
798
|
+
* @param {string} [id]
|
|
799
|
+
* @param {MediaType} [mediaType]
|
|
800
|
+
* @param {number} [page]
|
|
801
|
+
* @param {number} [limit]
|
|
802
|
+
* @param {Date} [lastRetrieved]
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
apiV2GeneralarticlesGeneralArticleIdMediasGet: function (generalArticleId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
807
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
808
|
+
var localVarAxiosArgs;
|
|
809
|
+
return __generator(this, function (_a) {
|
|
810
|
+
switch (_a.label) {
|
|
811
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdMediasGet(generalArticleId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
812
|
+
case 1:
|
|
813
|
+
localVarAxiosArgs = _a.sent();
|
|
814
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
});
|
|
818
|
+
},
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @summary Get GeneralArticleMedia.
|
|
822
|
+
* @param {string} generalArticleId
|
|
823
|
+
* @param {string} mediaId
|
|
824
|
+
* @param {*} [options] Override http request option.
|
|
825
|
+
* @throws {RequiredError}
|
|
826
|
+
*/
|
|
827
|
+
apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet: function (generalArticleId, mediaId, options) {
|
|
828
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
829
|
+
var localVarAxiosArgs;
|
|
830
|
+
return __generator(this, function (_a) {
|
|
831
|
+
switch (_a.label) {
|
|
832
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet(generalArticleId, mediaId, options)];
|
|
833
|
+
case 1:
|
|
834
|
+
localVarAxiosArgs = _a.sent();
|
|
835
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
});
|
|
839
|
+
},
|
|
840
|
+
/**
|
|
841
|
+
*
|
|
842
|
+
* @summary Get all GeneralArticleSource.
|
|
843
|
+
* @param {string} generalArticleId
|
|
844
|
+
* @param {number} [page]
|
|
845
|
+
* @param {number} [limit]
|
|
846
|
+
* @param {Date} [lastRetrieved]
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
*/
|
|
850
|
+
apiV2GeneralarticlesGeneralArticleIdSourcesGet: function (generalArticleId, page, limit, lastRetrieved, options) {
|
|
851
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
852
|
+
var localVarAxiosArgs;
|
|
853
|
+
return __generator(this, function (_a) {
|
|
854
|
+
switch (_a.label) {
|
|
855
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdSourcesGet(generalArticleId, page, limit, lastRetrieved, options)];
|
|
856
|
+
case 1:
|
|
857
|
+
localVarAxiosArgs = _a.sent();
|
|
858
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
859
|
+
}
|
|
860
|
+
});
|
|
861
|
+
});
|
|
862
|
+
},
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @summary Get GeneralArticleSource.
|
|
866
|
+
* @param {string} generalArticleId
|
|
867
|
+
* @param {string} sourceId
|
|
868
|
+
* @param {*} [options] Override http request option.
|
|
869
|
+
* @throws {RequiredError}
|
|
870
|
+
*/
|
|
871
|
+
apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet: function (generalArticleId, sourceId, options) {
|
|
872
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
873
|
+
var localVarAxiosArgs;
|
|
874
|
+
return __generator(this, function (_a) {
|
|
875
|
+
switch (_a.label) {
|
|
876
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet(generalArticleId, sourceId, options)];
|
|
877
|
+
case 1:
|
|
878
|
+
localVarAxiosArgs = _a.sent();
|
|
879
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
});
|
|
883
|
+
},
|
|
884
|
+
/**
|
|
885
|
+
*
|
|
886
|
+
* @summary GetAll GeneralArticleTags.
|
|
887
|
+
* @param {string} generalArticleId
|
|
888
|
+
* @param {string} [tagId]
|
|
889
|
+
* @param {number} [page]
|
|
890
|
+
* @param {number} [limit]
|
|
891
|
+
* @param {Date} [lastRetrieved]
|
|
892
|
+
* @param {*} [options] Override http request option.
|
|
893
|
+
* @throws {RequiredError}
|
|
894
|
+
*/
|
|
895
|
+
apiV2GeneralarticlesGeneralArticleIdTagsGet: function (generalArticleId, tagId, page, limit, lastRetrieved, options) {
|
|
896
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
897
|
+
var localVarAxiosArgs;
|
|
898
|
+
return __generator(this, function (_a) {
|
|
899
|
+
switch (_a.label) {
|
|
900
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdTagsGet(generalArticleId, tagId, page, limit, lastRetrieved, options)];
|
|
901
|
+
case 1:
|
|
902
|
+
localVarAxiosArgs = _a.sent();
|
|
903
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
});
|
|
907
|
+
},
|
|
908
|
+
/**
|
|
909
|
+
*
|
|
910
|
+
* @summary Get GeneralArticleTag.
|
|
911
|
+
* @param {string} generalArticleId
|
|
912
|
+
* @param {string} tagId
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet: function (generalArticleId, tagId, options) {
|
|
917
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
918
|
+
var localVarAxiosArgs;
|
|
919
|
+
return __generator(this, function (_a) {
|
|
920
|
+
switch (_a.label) {
|
|
921
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet(generalArticleId, tagId, options)];
|
|
922
|
+
case 1:
|
|
923
|
+
localVarAxiosArgs = _a.sent();
|
|
924
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
});
|
|
928
|
+
},
|
|
929
|
+
/**
|
|
930
|
+
*
|
|
931
|
+
* @summary Get all GeneralArticles.
|
|
932
|
+
* @param {string} [id]
|
|
933
|
+
* @param {string} [name]
|
|
934
|
+
* @param {string} [description]
|
|
935
|
+
* @param {ArticleType} [articleType]
|
|
936
|
+
* @param {ArticleStatus} [status]
|
|
937
|
+
* @param {string} [userId]
|
|
938
|
+
* @param {string} [userName]
|
|
939
|
+
* @param {string} [hospitalId]
|
|
940
|
+
* @param {string} [hospitalName]
|
|
941
|
+
* @param {string} [countryId]
|
|
942
|
+
* @param {string} [tag]
|
|
943
|
+
* @param {string} [exceptArticleId]
|
|
944
|
+
* @param {string} [exceptHospitalId]
|
|
945
|
+
* @param {string} [contributorId]
|
|
946
|
+
* @param {string} [articleCategoryId]
|
|
947
|
+
* @param {string} [languageCode]
|
|
948
|
+
* @param {number} [page]
|
|
949
|
+
* @param {number} [limit]
|
|
950
|
+
* @param {Date} [lastRetrieved]
|
|
951
|
+
* @param {*} [options] Override http request option.
|
|
952
|
+
* @throws {RequiredError}
|
|
953
|
+
*/
|
|
954
|
+
apiV2GeneralarticlesGet: function (id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
955
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
956
|
+
var localVarAxiosArgs;
|
|
957
|
+
return __generator(this, function (_a) {
|
|
958
|
+
switch (_a.label) {
|
|
959
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesGet(id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, page, limit, lastRetrieved, options)];
|
|
960
|
+
case 1:
|
|
961
|
+
localVarAxiosArgs = _a.sent();
|
|
962
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
});
|
|
966
|
+
},
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @summary Get GeneralArticle by slug
|
|
970
|
+
* @param {string} slug
|
|
971
|
+
* @param {string} [languageCode]
|
|
972
|
+
* @param {boolean} [returnDefaultValue]
|
|
973
|
+
* @param {string} [previewSecret]
|
|
974
|
+
* @param {string} [hospitalId]
|
|
975
|
+
* @param {*} [options] Override http request option.
|
|
976
|
+
* @throws {RequiredError}
|
|
977
|
+
*/
|
|
978
|
+
apiV2GeneralarticlesSlugGet: function (slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options) {
|
|
979
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
980
|
+
var localVarAxiosArgs;
|
|
981
|
+
return __generator(this, function (_a) {
|
|
982
|
+
switch (_a.label) {
|
|
983
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GeneralarticlesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options)];
|
|
984
|
+
case 1:
|
|
985
|
+
localVarAxiosArgs = _a.sent();
|
|
986
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
987
|
+
}
|
|
988
|
+
});
|
|
989
|
+
});
|
|
990
|
+
},
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
exports.GeneralArticlesApiFp = GeneralArticlesApiFp;
|
|
994
|
+
/**
|
|
995
|
+
* GeneralArticlesApi - factory interface
|
|
996
|
+
* @export
|
|
997
|
+
*/
|
|
998
|
+
var GeneralArticlesApiFactory = function (configuration, basePath, axios) {
|
|
999
|
+
var localVarFp = (0, exports.GeneralArticlesApiFp)(configuration);
|
|
1000
|
+
return {
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
* @summary Get GeneralArticleContributor.
|
|
1004
|
+
* @param {string} generalArticleId
|
|
1005
|
+
* @param {string} contributorId
|
|
1006
|
+
* @param {*} [options] Override http request option.
|
|
1007
|
+
* @throws {RequiredError}
|
|
1008
|
+
*/
|
|
1009
|
+
apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet: function (generalArticleId, contributorId, options) {
|
|
1010
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet(generalArticleId, contributorId, options).then(function (request) { return request(axios, basePath); });
|
|
1011
|
+
},
|
|
1012
|
+
/**
|
|
1013
|
+
*
|
|
1014
|
+
* @summary GetAll GeneralArticleContributors.
|
|
1015
|
+
* @param {string} generalArticleId
|
|
1016
|
+
* @param {string} [languageCode]
|
|
1017
|
+
* @param {string} [contributorId]
|
|
1018
|
+
* @param {string} [contributorName]
|
|
1019
|
+
* @param {string} [email]
|
|
1020
|
+
* @param {string} [website]
|
|
1021
|
+
* @param {ContributionType} [contributionType]
|
|
1022
|
+
* @param {number} [page]
|
|
1023
|
+
* @param {number} [limit]
|
|
1024
|
+
* @param {Date} [lastRetrieved]
|
|
1025
|
+
* @param {*} [options] Override http request option.
|
|
1026
|
+
* @throws {RequiredError}
|
|
1027
|
+
*/
|
|
1028
|
+
apiV2GeneralarticlesGeneralArticleIdContributorsGet: function (generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, page, limit, lastRetrieved, options) {
|
|
1029
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdContributorsGet(generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1030
|
+
},
|
|
1031
|
+
/**
|
|
1032
|
+
*
|
|
1033
|
+
* @summary Get GeneralArticle by id.
|
|
1034
|
+
* @param {string} generalArticleId
|
|
1035
|
+
* @param {string} [languageCode]
|
|
1036
|
+
* @param {*} [options] Override http request option.
|
|
1037
|
+
* @throws {RequiredError}
|
|
1038
|
+
*/
|
|
1039
|
+
apiV2GeneralarticlesGeneralArticleIdGet: function (generalArticleId, languageCode, options) {
|
|
1040
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdGet(generalArticleId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
1041
|
+
},
|
|
1042
|
+
/**
|
|
1043
|
+
*
|
|
1044
|
+
* @summary Get all GeneralArticleMedias.
|
|
1045
|
+
* @param {string} generalArticleId
|
|
1046
|
+
* @param {string} [id]
|
|
1047
|
+
* @param {MediaType} [mediaType]
|
|
1048
|
+
* @param {number} [page]
|
|
1049
|
+
* @param {number} [limit]
|
|
1050
|
+
* @param {Date} [lastRetrieved]
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
*/
|
|
1054
|
+
apiV2GeneralarticlesGeneralArticleIdMediasGet: function (generalArticleId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
1055
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdMediasGet(generalArticleId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1056
|
+
},
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @summary Get GeneralArticleMedia.
|
|
1060
|
+
* @param {string} generalArticleId
|
|
1061
|
+
* @param {string} mediaId
|
|
1062
|
+
* @param {*} [options] Override http request option.
|
|
1063
|
+
* @throws {RequiredError}
|
|
1064
|
+
*/
|
|
1065
|
+
apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet: function (generalArticleId, mediaId, options) {
|
|
1066
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet(generalArticleId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
1067
|
+
},
|
|
1068
|
+
/**
|
|
1069
|
+
*
|
|
1070
|
+
* @summary Get all GeneralArticleSource.
|
|
1071
|
+
* @param {string} generalArticleId
|
|
1072
|
+
* @param {number} [page]
|
|
1073
|
+
* @param {number} [limit]
|
|
1074
|
+
* @param {Date} [lastRetrieved]
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
apiV2GeneralarticlesGeneralArticleIdSourcesGet: function (generalArticleId, page, limit, lastRetrieved, options) {
|
|
1079
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdSourcesGet(generalArticleId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1080
|
+
},
|
|
1081
|
+
/**
|
|
1082
|
+
*
|
|
1083
|
+
* @summary Get GeneralArticleSource.
|
|
1084
|
+
* @param {string} generalArticleId
|
|
1085
|
+
* @param {string} sourceId
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
*/
|
|
1089
|
+
apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet: function (generalArticleId, sourceId, options) {
|
|
1090
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet(generalArticleId, sourceId, options).then(function (request) { return request(axios, basePath); });
|
|
1091
|
+
},
|
|
1092
|
+
/**
|
|
1093
|
+
*
|
|
1094
|
+
* @summary GetAll GeneralArticleTags.
|
|
1095
|
+
* @param {string} generalArticleId
|
|
1096
|
+
* @param {string} [tagId]
|
|
1097
|
+
* @param {number} [page]
|
|
1098
|
+
* @param {number} [limit]
|
|
1099
|
+
* @param {Date} [lastRetrieved]
|
|
1100
|
+
* @param {*} [options] Override http request option.
|
|
1101
|
+
* @throws {RequiredError}
|
|
1102
|
+
*/
|
|
1103
|
+
apiV2GeneralarticlesGeneralArticleIdTagsGet: function (generalArticleId, tagId, page, limit, lastRetrieved, options) {
|
|
1104
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdTagsGet(generalArticleId, tagId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1105
|
+
},
|
|
1106
|
+
/**
|
|
1107
|
+
*
|
|
1108
|
+
* @summary Get GeneralArticleTag.
|
|
1109
|
+
* @param {string} generalArticleId
|
|
1110
|
+
* @param {string} tagId
|
|
1111
|
+
* @param {*} [options] Override http request option.
|
|
1112
|
+
* @throws {RequiredError}
|
|
1113
|
+
*/
|
|
1114
|
+
apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet: function (generalArticleId, tagId, options) {
|
|
1115
|
+
return localVarFp.apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet(generalArticleId, tagId, options).then(function (request) { return request(axios, basePath); });
|
|
1116
|
+
},
|
|
1117
|
+
/**
|
|
1118
|
+
*
|
|
1119
|
+
* @summary Get all GeneralArticles.
|
|
1120
|
+
* @param {string} [id]
|
|
1121
|
+
* @param {string} [name]
|
|
1122
|
+
* @param {string} [description]
|
|
1123
|
+
* @param {ArticleType} [articleType]
|
|
1124
|
+
* @param {ArticleStatus} [status]
|
|
1125
|
+
* @param {string} [userId]
|
|
1126
|
+
* @param {string} [userName]
|
|
1127
|
+
* @param {string} [hospitalId]
|
|
1128
|
+
* @param {string} [hospitalName]
|
|
1129
|
+
* @param {string} [countryId]
|
|
1130
|
+
* @param {string} [tag]
|
|
1131
|
+
* @param {string} [exceptArticleId]
|
|
1132
|
+
* @param {string} [exceptHospitalId]
|
|
1133
|
+
* @param {string} [contributorId]
|
|
1134
|
+
* @param {string} [articleCategoryId]
|
|
1135
|
+
* @param {string} [languageCode]
|
|
1136
|
+
* @param {number} [page]
|
|
1137
|
+
* @param {number} [limit]
|
|
1138
|
+
* @param {Date} [lastRetrieved]
|
|
1139
|
+
* @param {*} [options] Override http request option.
|
|
1140
|
+
* @throws {RequiredError}
|
|
1141
|
+
*/
|
|
1142
|
+
apiV2GeneralarticlesGet: function (id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
1143
|
+
return localVarFp.apiV2GeneralarticlesGet(id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1144
|
+
},
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* @summary Get GeneralArticle by slug
|
|
1148
|
+
* @param {string} slug
|
|
1149
|
+
* @param {string} [languageCode]
|
|
1150
|
+
* @param {boolean} [returnDefaultValue]
|
|
1151
|
+
* @param {string} [previewSecret]
|
|
1152
|
+
* @param {string} [hospitalId]
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
*/
|
|
1156
|
+
apiV2GeneralarticlesSlugGet: function (slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options) {
|
|
1157
|
+
return localVarFp.apiV2GeneralarticlesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
1158
|
+
},
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
exports.GeneralArticlesApiFactory = GeneralArticlesApiFactory;
|
|
1162
|
+
/**
|
|
1163
|
+
* GeneralArticlesApi - object-oriented interface
|
|
1164
|
+
* @export
|
|
1165
|
+
* @class GeneralArticlesApi
|
|
1166
|
+
* @extends {BaseAPI}
|
|
1167
|
+
*/
|
|
1168
|
+
var GeneralArticlesApi = /** @class */ (function (_super) {
|
|
1169
|
+
__extends(GeneralArticlesApi, _super);
|
|
1170
|
+
function GeneralArticlesApi() {
|
|
1171
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
*
|
|
1175
|
+
* @summary Get GeneralArticleContributor.
|
|
1176
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGetRequest} requestParameters Request parameters.
|
|
1177
|
+
* @param {*} [options] Override http request option.
|
|
1178
|
+
* @throws {RequiredError}
|
|
1179
|
+
* @memberof GeneralArticlesApi
|
|
1180
|
+
*/
|
|
1181
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet = function (requestParameters, options) {
|
|
1182
|
+
var _this = this;
|
|
1183
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdContributorsContributorIdGet(requestParameters.generalArticleId, requestParameters.contributorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1184
|
+
};
|
|
1185
|
+
/**
|
|
1186
|
+
*
|
|
1187
|
+
* @summary GetAll GeneralArticleContributors.
|
|
1188
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdContributorsGetRequest} requestParameters Request parameters.
|
|
1189
|
+
* @param {*} [options] Override http request option.
|
|
1190
|
+
* @throws {RequiredError}
|
|
1191
|
+
* @memberof GeneralArticlesApi
|
|
1192
|
+
*/
|
|
1193
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdContributorsGet = function (requestParameters, options) {
|
|
1194
|
+
var _this = this;
|
|
1195
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdContributorsGet(requestParameters.generalArticleId, requestParameters.languageCode, requestParameters.contributorId, requestParameters.contributorName, requestParameters.email, requestParameters.website, requestParameters.contributionType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1196
|
+
};
|
|
1197
|
+
/**
|
|
1198
|
+
*
|
|
1199
|
+
* @summary Get GeneralArticle by id.
|
|
1200
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdGetRequest} requestParameters Request parameters.
|
|
1201
|
+
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @throws {RequiredError}
|
|
1203
|
+
* @memberof GeneralArticlesApi
|
|
1204
|
+
*/
|
|
1205
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdGet = function (requestParameters, options) {
|
|
1206
|
+
var _this = this;
|
|
1207
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdGet(requestParameters.generalArticleId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1208
|
+
};
|
|
1209
|
+
/**
|
|
1210
|
+
*
|
|
1211
|
+
* @summary Get all GeneralArticleMedias.
|
|
1212
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdMediasGetRequest} requestParameters Request parameters.
|
|
1213
|
+
* @param {*} [options] Override http request option.
|
|
1214
|
+
* @throws {RequiredError}
|
|
1215
|
+
* @memberof GeneralArticlesApi
|
|
1216
|
+
*/
|
|
1217
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdMediasGet = function (requestParameters, options) {
|
|
1218
|
+
var _this = this;
|
|
1219
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdMediasGet(requestParameters.generalArticleId, requestParameters.id, requestParameters.mediaType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
*
|
|
1223
|
+
* @summary Get GeneralArticleMedia.
|
|
1224
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdMediasMediaIdGetRequest} requestParameters Request parameters.
|
|
1225
|
+
* @param {*} [options] Override http request option.
|
|
1226
|
+
* @throws {RequiredError}
|
|
1227
|
+
* @memberof GeneralArticlesApi
|
|
1228
|
+
*/
|
|
1229
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet = function (requestParameters, options) {
|
|
1230
|
+
var _this = this;
|
|
1231
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdMediasMediaIdGet(requestParameters.generalArticleId, requestParameters.mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1232
|
+
};
|
|
1233
|
+
/**
|
|
1234
|
+
*
|
|
1235
|
+
* @summary Get all GeneralArticleSource.
|
|
1236
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdSourcesGetRequest} requestParameters Request parameters.
|
|
1237
|
+
* @param {*} [options] Override http request option.
|
|
1238
|
+
* @throws {RequiredError}
|
|
1239
|
+
* @memberof GeneralArticlesApi
|
|
1240
|
+
*/
|
|
1241
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdSourcesGet = function (requestParameters, options) {
|
|
1242
|
+
var _this = this;
|
|
1243
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdSourcesGet(requestParameters.generalArticleId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1244
|
+
};
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @summary Get GeneralArticleSource.
|
|
1248
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGetRequest} requestParameters Request parameters.
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
* @memberof GeneralArticlesApi
|
|
1252
|
+
*/
|
|
1253
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet = function (requestParameters, options) {
|
|
1254
|
+
var _this = this;
|
|
1255
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdSourcesSourceIdGet(requestParameters.generalArticleId, requestParameters.sourceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1256
|
+
};
|
|
1257
|
+
/**
|
|
1258
|
+
*
|
|
1259
|
+
* @summary GetAll GeneralArticleTags.
|
|
1260
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdTagsGetRequest} requestParameters Request parameters.
|
|
1261
|
+
* @param {*} [options] Override http request option.
|
|
1262
|
+
* @throws {RequiredError}
|
|
1263
|
+
* @memberof GeneralArticlesApi
|
|
1264
|
+
*/
|
|
1265
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdTagsGet = function (requestParameters, options) {
|
|
1266
|
+
var _this = this;
|
|
1267
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdTagsGet(requestParameters.generalArticleId, requestParameters.tagId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
*
|
|
1271
|
+
* @summary Get GeneralArticleTag.
|
|
1272
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGeneralArticleIdTagsTagIdGetRequest} requestParameters Request parameters.
|
|
1273
|
+
* @param {*} [options] Override http request option.
|
|
1274
|
+
* @throws {RequiredError}
|
|
1275
|
+
* @memberof GeneralArticlesApi
|
|
1276
|
+
*/
|
|
1277
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet = function (requestParameters, options) {
|
|
1278
|
+
var _this = this;
|
|
1279
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGeneralArticleIdTagsTagIdGet(requestParameters.generalArticleId, requestParameters.tagId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1280
|
+
};
|
|
1281
|
+
/**
|
|
1282
|
+
*
|
|
1283
|
+
* @summary Get all GeneralArticles.
|
|
1284
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesGetRequest} requestParameters Request parameters.
|
|
1285
|
+
* @param {*} [options] Override http request option.
|
|
1286
|
+
* @throws {RequiredError}
|
|
1287
|
+
* @memberof GeneralArticlesApi
|
|
1288
|
+
*/
|
|
1289
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesGet = function (requestParameters, options) {
|
|
1290
|
+
var _this = this;
|
|
1291
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1292
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesGet(requestParameters.id, requestParameters.name, requestParameters.description, requestParameters.articleType, requestParameters.status, requestParameters.userId, requestParameters.userName, requestParameters.hospitalId, requestParameters.hospitalName, requestParameters.countryId, requestParameters.tag, requestParameters.exceptArticleId, requestParameters.exceptHospitalId, requestParameters.contributorId, requestParameters.articleCategoryId, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1293
|
+
};
|
|
1294
|
+
/**
|
|
1295
|
+
*
|
|
1296
|
+
* @summary Get GeneralArticle by slug
|
|
1297
|
+
* @param {GeneralArticlesApiApiV2GeneralarticlesSlugGetRequest} requestParameters Request parameters.
|
|
1298
|
+
* @param {*} [options] Override http request option.
|
|
1299
|
+
* @throws {RequiredError}
|
|
1300
|
+
* @memberof GeneralArticlesApi
|
|
1301
|
+
*/
|
|
1302
|
+
GeneralArticlesApi.prototype.apiV2GeneralarticlesSlugGet = function (requestParameters, options) {
|
|
1303
|
+
var _this = this;
|
|
1304
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV2GeneralarticlesSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, requestParameters.hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1305
|
+
};
|
|
1306
|
+
return GeneralArticlesApi;
|
|
1307
|
+
}(base_1.BaseAPI));
|
|
1308
|
+
exports.GeneralArticlesApi = GeneralArticlesApi;
|