ch-admin-api-client-typescript 5.75.3 → 5.76.19
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/ai-prompts-api.d.ts +441 -0
- package/lib/api/ai-prompts-api.d.ts.map +1 -0
- package/lib/api/ai-prompts-api.js +812 -0
- package/lib/api/general-articles-api.d.ts +1910 -0
- package/lib/api/general-articles-api.d.ts.map +1 -0
- package/lib/api/general-articles-api.js +2946 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -0
- package/lib/models/ai-chat-model.d.ts +4 -2
- package/lib/models/ai-chat-model.d.ts.map +1 -1
- package/lib/models/ai-chat-model.js +4 -2
- package/lib/models/ai-prompt-argument-input-model.d.ts +31 -0
- package/lib/models/ai-prompt-argument-input-model.d.ts.map +1 -0
- package/lib/models/ai-prompt-argument-input-model.js +15 -0
- package/lib/models/ai-prompt-argument-model.d.ts +63 -0
- package/lib/models/ai-prompt-argument-model.d.ts.map +1 -0
- package/lib/models/ai-prompt-argument-model.js +15 -0
- package/lib/models/ai-prompt-argument-option-model.d.ts +31 -0
- package/lib/models/ai-prompt-argument-option-model.d.ts.map +1 -0
- package/lib/models/ai-prompt-argument-option-model.js +15 -0
- package/lib/models/ai-prompt-argument-type.d.ts +25 -0
- package/lib/models/ai-prompt-argument-type.d.ts.map +1 -0
- package/lib/models/ai-prompt-argument-type.js +28 -0
- package/lib/models/ai-prompt-execution-result-model.d.ts +38 -0
- package/lib/models/ai-prompt-execution-result-model.d.ts.map +1 -0
- package/lib/models/ai-prompt-execution-result-model.js +15 -0
- package/lib/models/ai-prompt-model.d.ts +50 -0
- package/lib/models/ai-prompt-model.d.ts.map +1 -0
- package/lib/models/ai-prompt-model.js +15 -0
- package/lib/models/ai-prompt-with-content-model.d.ts +56 -0
- package/lib/models/ai-prompt-with-content-model.d.ts.map +1 -0
- package/lib/models/ai-prompt-with-content-model.js +15 -0
- package/lib/models/ai-prompts-model.d.ts +33 -0
- package/lib/models/ai-prompts-model.d.ts.map +1 -0
- package/lib/models/ai-prompts-model.js +15 -0
- package/lib/models/article-contributor-item-model.d.ts +3 -3
- package/lib/models/article-contributor-item-model.d.ts.map +1 -1
- package/lib/models/article-contributor-model.d.ts +3 -3
- package/lib/models/article-contributor-model.d.ts.map +1 -1
- package/lib/models/create-ai-prompt-command.d.ts +50 -0
- package/lib/models/create-ai-prompt-command.d.ts.map +1 -0
- package/lib/models/create-ai-prompt-command.js +15 -0
- package/lib/models/create-general-article-command.d.ts +125 -0
- package/lib/models/create-general-article-command.d.ts.map +1 -0
- package/lib/models/create-general-article-command.js +15 -0
- package/lib/models/create-general-article-contributor-command.d.ts +44 -0
- package/lib/models/create-general-article-contributor-command.d.ts.map +1 -0
- package/lib/models/create-general-article-contributor-command.js +15 -0
- package/lib/models/create-general-article-media-command.d.ts +50 -0
- package/lib/models/create-general-article-media-command.d.ts.map +1 -0
- package/lib/models/create-general-article-media-command.js +15 -0
- package/lib/models/create-general-article-source-command.d.ts +37 -0
- package/lib/models/create-general-article-source-command.d.ts.map +1 -0
- package/lib/models/create-general-article-source-command.js +15 -0
- package/lib/models/create-general-article-tag-command.d.ts +31 -0
- package/lib/models/create-general-article-tag-command.d.ts.map +1 -0
- package/lib/models/create-general-article-tag-command.js +15 -0
- package/lib/models/execute-ai-prompt-command.d.ts +33 -0
- package/lib/models/execute-ai-prompt-command.d.ts.map +1 -0
- package/lib/models/execute-ai-prompt-command.js +15 -0
- package/lib/models/general-article-contributor-item-model.d.ts +99 -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 +124 -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 +186 -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 +31 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +31 -0
- package/lib/models/notification-model.d.ts +6 -0
- package/lib/models/notification-model.d.ts.map +1 -1
- package/lib/models/translate-general-article-command.d.ts +43 -0
- package/lib/models/translate-general-article-command.d.ts.map +1 -0
- package/lib/models/translate-general-article-command.js +15 -0
- package/lib/models/update-ai-prompt-command.d.ts +56 -0
- package/lib/models/update-ai-prompt-command.d.ts.map +1 -0
- package/lib/models/update-ai-prompt-command.js +15 -0
- package/lib/models/update-general-article-command.d.ts +137 -0
- package/lib/models/update-general-article-command.d.ts.map +1 -0
- package/lib/models/update-general-article-command.js +15 -0
- package/lib/models/update-general-article-contributor-command.d.ts +44 -0
- package/lib/models/update-general-article-contributor-command.d.ts.map +1 -0
- package/lib/models/update-general-article-contributor-command.js +15 -0
- package/lib/models/update-general-article-media-command.d.ts +50 -0
- package/lib/models/update-general-article-media-command.d.ts.map +1 -0
- package/lib/models/update-general-article-media-command.js +15 -0
- package/lib/models/update-general-article-source-command.d.ts +37 -0
- package/lib/models/update-general-article-source-command.d.ts.map +1 -0
- package/lib/models/update-general-article-source-command.js +15 -0
- package/lib/models/update-general-article-tag-command.d.ts +25 -0
- package/lib/models/update-general-article-tag-command.d.ts.map +1 -0
- package/lib/models/update-general-article-tag-command.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2946 @@
|
|
|
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.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 Delete GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
107
|
+
* @param {string} generalArticleId
|
|
108
|
+
* @param {string} contributorId
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete: 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
|
+
switch (_a.label) {
|
|
122
|
+
case 0:
|
|
123
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete', 'generalArticleId', generalArticleId);
|
|
125
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
126
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete', 'contributorId', contributorId);
|
|
127
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/contributors/{contributorId}"
|
|
128
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
129
|
+
.replace("{".concat("contributorId", "}"), encodeURIComponent(String(contributorId)));
|
|
130
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
131
|
+
if (configuration) {
|
|
132
|
+
baseOptions = configuration.baseOptions;
|
|
133
|
+
}
|
|
134
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
135
|
+
localVarHeaderParameter = {};
|
|
136
|
+
localVarQueryParameter = {};
|
|
137
|
+
// authentication oauth2 required
|
|
138
|
+
// oauth required
|
|
139
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
140
|
+
case 1:
|
|
141
|
+
// authentication oauth2 required
|
|
142
|
+
// oauth required
|
|
143
|
+
_a.sent();
|
|
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 GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
158
|
+
* @param {string} generalArticleId
|
|
159
|
+
* @param {string} contributorId
|
|
160
|
+
* @param {string} [languageCode]
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet: function (generalArticleId_1, contributorId_1, languageCode_1) {
|
|
165
|
+
var args_1 = [];
|
|
166
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
167
|
+
args_1[_i - 3] = arguments[_i];
|
|
168
|
+
}
|
|
169
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, contributorId_1, languageCode_1], args_1, true), void 0, function (generalArticleId, contributorId, languageCode, options) {
|
|
170
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
171
|
+
if (options === void 0) { options = {}; }
|
|
172
|
+
return __generator(this, function (_a) {
|
|
173
|
+
switch (_a.label) {
|
|
174
|
+
case 0:
|
|
175
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
176
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet', 'generalArticleId', generalArticleId);
|
|
177
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
178
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet', 'contributorId', contributorId);
|
|
179
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/contributors/{contributorId}"
|
|
180
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
181
|
+
.replace("{".concat("contributorId", "}"), encodeURIComponent(String(contributorId)));
|
|
182
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
183
|
+
if (configuration) {
|
|
184
|
+
baseOptions = configuration.baseOptions;
|
|
185
|
+
}
|
|
186
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
187
|
+
localVarHeaderParameter = {};
|
|
188
|
+
localVarQueryParameter = {};
|
|
189
|
+
// authentication oauth2 required
|
|
190
|
+
// oauth required
|
|
191
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
192
|
+
case 1:
|
|
193
|
+
// authentication oauth2 required
|
|
194
|
+
// oauth required
|
|
195
|
+
_a.sent();
|
|
196
|
+
if (languageCode !== undefined) {
|
|
197
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
198
|
+
}
|
|
199
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
+
return [2 /*return*/, {
|
|
203
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
204
|
+
options: localVarRequestOptions,
|
|
205
|
+
}];
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @summary Create GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
213
|
+
* @param {string} generalArticleId
|
|
214
|
+
* @param {string} contributorId
|
|
215
|
+
* @param {CreateGeneralArticleContributorCommand} [createGeneralArticleContributorCommand]
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost: function (generalArticleId_1, contributorId_1, createGeneralArticleContributorCommand_1) {
|
|
220
|
+
var args_1 = [];
|
|
221
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
222
|
+
args_1[_i - 3] = arguments[_i];
|
|
223
|
+
}
|
|
224
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, contributorId_1, createGeneralArticleContributorCommand_1], args_1, true), void 0, function (generalArticleId, contributorId, createGeneralArticleContributorCommand, options) {
|
|
225
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
226
|
+
if (options === void 0) { options = {}; }
|
|
227
|
+
return __generator(this, function (_a) {
|
|
228
|
+
switch (_a.label) {
|
|
229
|
+
case 0:
|
|
230
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
231
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost', 'generalArticleId', generalArticleId);
|
|
232
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
233
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost', 'contributorId', contributorId);
|
|
234
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/contributors/{contributorId}"
|
|
235
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
236
|
+
.replace("{".concat("contributorId", "}"), encodeURIComponent(String(contributorId)));
|
|
237
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
238
|
+
if (configuration) {
|
|
239
|
+
baseOptions = configuration.baseOptions;
|
|
240
|
+
}
|
|
241
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
242
|
+
localVarHeaderParameter = {};
|
|
243
|
+
localVarQueryParameter = {};
|
|
244
|
+
// authentication oauth2 required
|
|
245
|
+
// oauth required
|
|
246
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
247
|
+
case 1:
|
|
248
|
+
// authentication oauth2 required
|
|
249
|
+
// oauth required
|
|
250
|
+
_a.sent();
|
|
251
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
252
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
255
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGeneralArticleContributorCommand, localVarRequestOptions, configuration);
|
|
256
|
+
return [2 /*return*/, {
|
|
257
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
258
|
+
options: localVarRequestOptions,
|
|
259
|
+
}];
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Update GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
267
|
+
* @param {string} generalArticleId
|
|
268
|
+
* @param {string} contributorId
|
|
269
|
+
* @param {UpdateGeneralArticleContributorCommand} [updateGeneralArticleContributorCommand]
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut: function (generalArticleId_1, contributorId_1, updateGeneralArticleContributorCommand_1) {
|
|
274
|
+
var args_1 = [];
|
|
275
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
276
|
+
args_1[_i - 3] = arguments[_i];
|
|
277
|
+
}
|
|
278
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, contributorId_1, updateGeneralArticleContributorCommand_1], args_1, true), void 0, function (generalArticleId, contributorId, updateGeneralArticleContributorCommand, options) {
|
|
279
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
280
|
+
if (options === void 0) { options = {}; }
|
|
281
|
+
return __generator(this, function (_a) {
|
|
282
|
+
switch (_a.label) {
|
|
283
|
+
case 0:
|
|
284
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
285
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut', 'generalArticleId', generalArticleId);
|
|
286
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
287
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut', 'contributorId', contributorId);
|
|
288
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/contributors/{contributorId}"
|
|
289
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
290
|
+
.replace("{".concat("contributorId", "}"), encodeURIComponent(String(contributorId)));
|
|
291
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
292
|
+
if (configuration) {
|
|
293
|
+
baseOptions = configuration.baseOptions;
|
|
294
|
+
}
|
|
295
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
296
|
+
localVarHeaderParameter = {};
|
|
297
|
+
localVarQueryParameter = {};
|
|
298
|
+
// authentication oauth2 required
|
|
299
|
+
// oauth required
|
|
300
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
301
|
+
case 1:
|
|
302
|
+
// authentication oauth2 required
|
|
303
|
+
// oauth required
|
|
304
|
+
_a.sent();
|
|
305
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
306
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
308
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
309
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateGeneralArticleContributorCommand, localVarRequestOptions, configuration);
|
|
310
|
+
return [2 /*return*/, {
|
|
311
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
312
|
+
options: localVarRequestOptions,
|
|
313
|
+
}];
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @summary Get GeneralArticleContributors (Auth policies: RequireContentManagerRole)
|
|
321
|
+
* @param {string} generalArticleId
|
|
322
|
+
* @param {string} [languageCode]
|
|
323
|
+
* @param {string} [contributorId]
|
|
324
|
+
* @param {string} [contributorName]
|
|
325
|
+
* @param {string} [email]
|
|
326
|
+
* @param {string} [website]
|
|
327
|
+
* @param {ContributionType} [contributionType]
|
|
328
|
+
* @param {boolean} [showHidden]
|
|
329
|
+
* @param {number} [page]
|
|
330
|
+
* @param {number} [limit]
|
|
331
|
+
* @param {Date} [lastRetrieved]
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @throws {RequiredError}
|
|
334
|
+
*/
|
|
335
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsGet: function (generalArticleId_1, languageCode_1, contributorId_1, contributorName_1, email_1, website_1, contributionType_1, showHidden_1, page_1, limit_1, lastRetrieved_1) {
|
|
336
|
+
var args_1 = [];
|
|
337
|
+
for (var _i = 11; _i < arguments.length; _i++) {
|
|
338
|
+
args_1[_i - 11] = arguments[_i];
|
|
339
|
+
}
|
|
340
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, languageCode_1, contributorId_1, contributorName_1, email_1, website_1, contributionType_1, showHidden_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, showHidden, page, limit, lastRetrieved, options) {
|
|
341
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
342
|
+
if (options === void 0) { options = {}; }
|
|
343
|
+
return __generator(this, function (_a) {
|
|
344
|
+
switch (_a.label) {
|
|
345
|
+
case 0:
|
|
346
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
347
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdContributorsGet', 'generalArticleId', generalArticleId);
|
|
348
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/contributors"
|
|
349
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
350
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
351
|
+
if (configuration) {
|
|
352
|
+
baseOptions = configuration.baseOptions;
|
|
353
|
+
}
|
|
354
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
355
|
+
localVarHeaderParameter = {};
|
|
356
|
+
localVarQueryParameter = {};
|
|
357
|
+
// authentication oauth2 required
|
|
358
|
+
// oauth required
|
|
359
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
360
|
+
case 1:
|
|
361
|
+
// authentication oauth2 required
|
|
362
|
+
// oauth required
|
|
363
|
+
_a.sent();
|
|
364
|
+
if (languageCode !== undefined) {
|
|
365
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
366
|
+
}
|
|
367
|
+
if (contributorId !== undefined) {
|
|
368
|
+
localVarQueryParameter['ContributorId'] = contributorId;
|
|
369
|
+
}
|
|
370
|
+
if (contributorName !== undefined) {
|
|
371
|
+
localVarQueryParameter['ContributorName'] = contributorName;
|
|
372
|
+
}
|
|
373
|
+
if (email !== undefined) {
|
|
374
|
+
localVarQueryParameter['Email'] = email;
|
|
375
|
+
}
|
|
376
|
+
if (website !== undefined) {
|
|
377
|
+
localVarQueryParameter['Website'] = website;
|
|
378
|
+
}
|
|
379
|
+
if (contributionType !== undefined) {
|
|
380
|
+
localVarQueryParameter['ContributionType'] = contributionType;
|
|
381
|
+
}
|
|
382
|
+
if (showHidden !== undefined) {
|
|
383
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
384
|
+
}
|
|
385
|
+
if (page !== undefined) {
|
|
386
|
+
localVarQueryParameter['page'] = page;
|
|
387
|
+
}
|
|
388
|
+
if (limit !== undefined) {
|
|
389
|
+
localVarQueryParameter['limit'] = limit;
|
|
390
|
+
}
|
|
391
|
+
if (lastRetrieved !== undefined) {
|
|
392
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
393
|
+
lastRetrieved.toISOString() :
|
|
394
|
+
lastRetrieved;
|
|
395
|
+
}
|
|
396
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
397
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
399
|
+
return [2 /*return*/, {
|
|
400
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
401
|
+
options: localVarRequestOptions,
|
|
402
|
+
}];
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
},
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
* @summary Delete generalArticle (Auth policies: RequireContentManagerRole)
|
|
410
|
+
* @param {string} generalArticleId
|
|
411
|
+
* @param {boolean} [isPermanent]
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
apiV1GeneralarticlesGeneralArticleIdDelete: function (generalArticleId_1, isPermanent_1) {
|
|
416
|
+
var args_1 = [];
|
|
417
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
418
|
+
args_1[_i - 2] = arguments[_i];
|
|
419
|
+
}
|
|
420
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, isPermanent_1], args_1, true), void 0, function (generalArticleId, isPermanent, options) {
|
|
421
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
422
|
+
if (options === void 0) { options = {}; }
|
|
423
|
+
return __generator(this, function (_a) {
|
|
424
|
+
switch (_a.label) {
|
|
425
|
+
case 0:
|
|
426
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
427
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdDelete', 'generalArticleId', generalArticleId);
|
|
428
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}"
|
|
429
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
430
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
431
|
+
if (configuration) {
|
|
432
|
+
baseOptions = configuration.baseOptions;
|
|
433
|
+
}
|
|
434
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
435
|
+
localVarHeaderParameter = {};
|
|
436
|
+
localVarQueryParameter = {};
|
|
437
|
+
// authentication oauth2 required
|
|
438
|
+
// oauth required
|
|
439
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
440
|
+
case 1:
|
|
441
|
+
// authentication oauth2 required
|
|
442
|
+
// oauth required
|
|
443
|
+
_a.sent();
|
|
444
|
+
if (isPermanent !== undefined) {
|
|
445
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
446
|
+
}
|
|
447
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
448
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
449
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
450
|
+
return [2 /*return*/, {
|
|
451
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
452
|
+
options: localVarRequestOptions,
|
|
453
|
+
}];
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
});
|
|
457
|
+
},
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @summary Get generalArticle by id (Auth policies: RequireContentManagerRole)
|
|
461
|
+
* @param {string} generalArticleId
|
|
462
|
+
* @param {string} [languageCode]
|
|
463
|
+
* @param {*} [options] Override http request option.
|
|
464
|
+
* @throws {RequiredError}
|
|
465
|
+
*/
|
|
466
|
+
apiV1GeneralarticlesGeneralArticleIdGet: function (generalArticleId_1, languageCode_1) {
|
|
467
|
+
var args_1 = [];
|
|
468
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
469
|
+
args_1[_i - 2] = arguments[_i];
|
|
470
|
+
}
|
|
471
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, languageCode_1], args_1, true), void 0, function (generalArticleId, languageCode, options) {
|
|
472
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
473
|
+
if (options === void 0) { options = {}; }
|
|
474
|
+
return __generator(this, function (_a) {
|
|
475
|
+
switch (_a.label) {
|
|
476
|
+
case 0:
|
|
477
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
478
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdGet', 'generalArticleId', generalArticleId);
|
|
479
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}"
|
|
480
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
481
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
482
|
+
if (configuration) {
|
|
483
|
+
baseOptions = configuration.baseOptions;
|
|
484
|
+
}
|
|
485
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
486
|
+
localVarHeaderParameter = {};
|
|
487
|
+
localVarQueryParameter = {};
|
|
488
|
+
// authentication oauth2 required
|
|
489
|
+
// oauth required
|
|
490
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
491
|
+
case 1:
|
|
492
|
+
// authentication oauth2 required
|
|
493
|
+
// oauth required
|
|
494
|
+
_a.sent();
|
|
495
|
+
if (languageCode !== undefined) {
|
|
496
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
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
|
+
*
|
|
511
|
+
* @summary Get generalArticleMedias (Auth policies: RequireContentManagerRole)
|
|
512
|
+
* @param {string} generalArticleId
|
|
513
|
+
* @param {string} [id]
|
|
514
|
+
* @param {MediaType} [mediaType]
|
|
515
|
+
* @param {number} [page]
|
|
516
|
+
* @param {number} [limit]
|
|
517
|
+
* @param {Date} [lastRetrieved]
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
apiV1GeneralarticlesGeneralArticleIdMediasGet: function (generalArticleId_1, id_1, mediaType_1, page_1, limit_1, lastRetrieved_1) {
|
|
522
|
+
var args_1 = [];
|
|
523
|
+
for (var _i = 6; _i < arguments.length; _i++) {
|
|
524
|
+
args_1[_i - 6] = arguments[_i];
|
|
525
|
+
}
|
|
526
|
+
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) {
|
|
527
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
528
|
+
if (options === void 0) { options = {}; }
|
|
529
|
+
return __generator(this, function (_a) {
|
|
530
|
+
switch (_a.label) {
|
|
531
|
+
case 0:
|
|
532
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
533
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdMediasGet', 'generalArticleId', generalArticleId);
|
|
534
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/medias"
|
|
535
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
536
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
537
|
+
if (configuration) {
|
|
538
|
+
baseOptions = configuration.baseOptions;
|
|
539
|
+
}
|
|
540
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
541
|
+
localVarHeaderParameter = {};
|
|
542
|
+
localVarQueryParameter = {};
|
|
543
|
+
// authentication oauth2 required
|
|
544
|
+
// oauth required
|
|
545
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
546
|
+
case 1:
|
|
547
|
+
// authentication oauth2 required
|
|
548
|
+
// oauth required
|
|
549
|
+
_a.sent();
|
|
550
|
+
if (id !== undefined) {
|
|
551
|
+
localVarQueryParameter['Id'] = id;
|
|
552
|
+
}
|
|
553
|
+
if (mediaType !== undefined) {
|
|
554
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
555
|
+
}
|
|
556
|
+
if (page !== undefined) {
|
|
557
|
+
localVarQueryParameter['page'] = page;
|
|
558
|
+
}
|
|
559
|
+
if (limit !== undefined) {
|
|
560
|
+
localVarQueryParameter['limit'] = limit;
|
|
561
|
+
}
|
|
562
|
+
if (lastRetrieved !== undefined) {
|
|
563
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
564
|
+
lastRetrieved.toISOString() :
|
|
565
|
+
lastRetrieved;
|
|
566
|
+
}
|
|
567
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
568
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
569
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
570
|
+
return [2 /*return*/, {
|
|
571
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
572
|
+
options: localVarRequestOptions,
|
|
573
|
+
}];
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @summary Delete generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
581
|
+
* @param {string} generalArticleId
|
|
582
|
+
* @param {string} mediaId
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
*/
|
|
586
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete: function (generalArticleId_1, mediaId_1) {
|
|
587
|
+
var args_1 = [];
|
|
588
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
589
|
+
args_1[_i - 2] = arguments[_i];
|
|
590
|
+
}
|
|
591
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, mediaId_1], args_1, true), void 0, function (generalArticleId, mediaId, options) {
|
|
592
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
593
|
+
if (options === void 0) { options = {}; }
|
|
594
|
+
return __generator(this, function (_a) {
|
|
595
|
+
switch (_a.label) {
|
|
596
|
+
case 0:
|
|
597
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
598
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete', 'generalArticleId', generalArticleId);
|
|
599
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
600
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
601
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/medias/{mediaId}"
|
|
602
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
603
|
+
.replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
|
|
604
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
605
|
+
if (configuration) {
|
|
606
|
+
baseOptions = configuration.baseOptions;
|
|
607
|
+
}
|
|
608
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
609
|
+
localVarHeaderParameter = {};
|
|
610
|
+
localVarQueryParameter = {};
|
|
611
|
+
// authentication oauth2 required
|
|
612
|
+
// oauth required
|
|
613
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
614
|
+
case 1:
|
|
615
|
+
// authentication oauth2 required
|
|
616
|
+
// oauth required
|
|
617
|
+
_a.sent();
|
|
618
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
619
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
620
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
621
|
+
return [2 /*return*/, {
|
|
622
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
623
|
+
options: localVarRequestOptions,
|
|
624
|
+
}];
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
});
|
|
628
|
+
},
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @summary Get generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
632
|
+
* @param {string} generalArticleId
|
|
633
|
+
* @param {string} mediaId
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
*/
|
|
637
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet: function (generalArticleId_1, mediaId_1) {
|
|
638
|
+
var args_1 = [];
|
|
639
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
640
|
+
args_1[_i - 2] = arguments[_i];
|
|
641
|
+
}
|
|
642
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, mediaId_1], args_1, true), void 0, function (generalArticleId, mediaId, options) {
|
|
643
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
644
|
+
if (options === void 0) { options = {}; }
|
|
645
|
+
return __generator(this, function (_a) {
|
|
646
|
+
switch (_a.label) {
|
|
647
|
+
case 0:
|
|
648
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
649
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet', 'generalArticleId', generalArticleId);
|
|
650
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
651
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
652
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/medias/{mediaId}"
|
|
653
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
654
|
+
.replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
|
|
655
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
656
|
+
if (configuration) {
|
|
657
|
+
baseOptions = configuration.baseOptions;
|
|
658
|
+
}
|
|
659
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
660
|
+
localVarHeaderParameter = {};
|
|
661
|
+
localVarQueryParameter = {};
|
|
662
|
+
// authentication oauth2 required
|
|
663
|
+
// oauth required
|
|
664
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
665
|
+
case 1:
|
|
666
|
+
// authentication oauth2 required
|
|
667
|
+
// oauth required
|
|
668
|
+
_a.sent();
|
|
669
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
670
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
671
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
672
|
+
return [2 /*return*/, {
|
|
673
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
674
|
+
options: localVarRequestOptions,
|
|
675
|
+
}];
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
});
|
|
679
|
+
},
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
* @summary Update generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
683
|
+
* @param {string} generalArticleId
|
|
684
|
+
* @param {string} mediaId
|
|
685
|
+
* @param {UpdateGeneralArticleMediaCommand} [updateGeneralArticleMediaCommand]
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut: function (generalArticleId_1, mediaId_1, updateGeneralArticleMediaCommand_1) {
|
|
690
|
+
var args_1 = [];
|
|
691
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
692
|
+
args_1[_i - 3] = arguments[_i];
|
|
693
|
+
}
|
|
694
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, mediaId_1, updateGeneralArticleMediaCommand_1], args_1, true), void 0, function (generalArticleId, mediaId, updateGeneralArticleMediaCommand, options) {
|
|
695
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
696
|
+
if (options === void 0) { options = {}; }
|
|
697
|
+
return __generator(this, function (_a) {
|
|
698
|
+
switch (_a.label) {
|
|
699
|
+
case 0:
|
|
700
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
701
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut', 'generalArticleId', generalArticleId);
|
|
702
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
703
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
704
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/medias/{mediaId}"
|
|
705
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
706
|
+
.replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
|
|
707
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
708
|
+
if (configuration) {
|
|
709
|
+
baseOptions = configuration.baseOptions;
|
|
710
|
+
}
|
|
711
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
712
|
+
localVarHeaderParameter = {};
|
|
713
|
+
localVarQueryParameter = {};
|
|
714
|
+
// authentication oauth2 required
|
|
715
|
+
// oauth required
|
|
716
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
717
|
+
case 1:
|
|
718
|
+
// authentication oauth2 required
|
|
719
|
+
// oauth required
|
|
720
|
+
_a.sent();
|
|
721
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
723
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
724
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
725
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateGeneralArticleMediaCommand, localVarRequestOptions, configuration);
|
|
726
|
+
return [2 /*return*/, {
|
|
727
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
728
|
+
options: localVarRequestOptions,
|
|
729
|
+
}];
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
});
|
|
733
|
+
},
|
|
734
|
+
/**
|
|
735
|
+
*
|
|
736
|
+
* @summary Create generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
737
|
+
* @param {string} generalArticleId
|
|
738
|
+
* @param {CreateGeneralArticleMediaCommand} [createGeneralArticleMediaCommand]
|
|
739
|
+
* @param {*} [options] Override http request option.
|
|
740
|
+
* @throws {RequiredError}
|
|
741
|
+
*/
|
|
742
|
+
apiV1GeneralarticlesGeneralArticleIdMediasPost: function (generalArticleId_1, createGeneralArticleMediaCommand_1) {
|
|
743
|
+
var args_1 = [];
|
|
744
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
745
|
+
args_1[_i - 2] = arguments[_i];
|
|
746
|
+
}
|
|
747
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, createGeneralArticleMediaCommand_1], args_1, true), void 0, function (generalArticleId, createGeneralArticleMediaCommand, options) {
|
|
748
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
749
|
+
if (options === void 0) { options = {}; }
|
|
750
|
+
return __generator(this, function (_a) {
|
|
751
|
+
switch (_a.label) {
|
|
752
|
+
case 0:
|
|
753
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
754
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdMediasPost', 'generalArticleId', generalArticleId);
|
|
755
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/medias"
|
|
756
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
757
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
758
|
+
if (configuration) {
|
|
759
|
+
baseOptions = configuration.baseOptions;
|
|
760
|
+
}
|
|
761
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
762
|
+
localVarHeaderParameter = {};
|
|
763
|
+
localVarQueryParameter = {};
|
|
764
|
+
// authentication oauth2 required
|
|
765
|
+
// oauth required
|
|
766
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
767
|
+
case 1:
|
|
768
|
+
// authentication oauth2 required
|
|
769
|
+
// oauth required
|
|
770
|
+
_a.sent();
|
|
771
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
772
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
773
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
774
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
775
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGeneralArticleMediaCommand, localVarRequestOptions, configuration);
|
|
776
|
+
return [2 /*return*/, {
|
|
777
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
778
|
+
options: localVarRequestOptions,
|
|
779
|
+
}];
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
});
|
|
783
|
+
},
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @summary Update generalArticle (Auth policies: RequireContentManagerRole)
|
|
787
|
+
* @param {string} generalArticleId
|
|
788
|
+
* @param {UpdateGeneralArticleCommand} [updateGeneralArticleCommand]
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
apiV1GeneralarticlesGeneralArticleIdPut: function (generalArticleId_1, updateGeneralArticleCommand_1) {
|
|
793
|
+
var args_1 = [];
|
|
794
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
795
|
+
args_1[_i - 2] = arguments[_i];
|
|
796
|
+
}
|
|
797
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, updateGeneralArticleCommand_1], args_1, true), void 0, function (generalArticleId, updateGeneralArticleCommand, options) {
|
|
798
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
799
|
+
if (options === void 0) { options = {}; }
|
|
800
|
+
return __generator(this, function (_a) {
|
|
801
|
+
switch (_a.label) {
|
|
802
|
+
case 0:
|
|
803
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
804
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdPut', 'generalArticleId', generalArticleId);
|
|
805
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}"
|
|
806
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
807
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
808
|
+
if (configuration) {
|
|
809
|
+
baseOptions = configuration.baseOptions;
|
|
810
|
+
}
|
|
811
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
812
|
+
localVarHeaderParameter = {};
|
|
813
|
+
localVarQueryParameter = {};
|
|
814
|
+
// authentication oauth2 required
|
|
815
|
+
// oauth required
|
|
816
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
817
|
+
case 1:
|
|
818
|
+
// authentication oauth2 required
|
|
819
|
+
// oauth required
|
|
820
|
+
_a.sent();
|
|
821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
822
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
823
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
824
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
825
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateGeneralArticleCommand, localVarRequestOptions, configuration);
|
|
826
|
+
return [2 /*return*/, {
|
|
827
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
828
|
+
options: localVarRequestOptions,
|
|
829
|
+
}];
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
});
|
|
833
|
+
},
|
|
834
|
+
/**
|
|
835
|
+
*
|
|
836
|
+
* @summary Reactivate generalArticle (Auth policies: RequireContentManagerRole)
|
|
837
|
+
* @param {string} generalArticleId
|
|
838
|
+
* @param {*} [options] Override http request option.
|
|
839
|
+
* @throws {RequiredError}
|
|
840
|
+
*/
|
|
841
|
+
apiV1GeneralarticlesGeneralArticleIdReactivatePut: function (generalArticleId_1) {
|
|
842
|
+
var args_1 = [];
|
|
843
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
844
|
+
args_1[_i - 1] = arguments[_i];
|
|
845
|
+
}
|
|
846
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1], args_1, true), void 0, function (generalArticleId, options) {
|
|
847
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
848
|
+
if (options === void 0) { options = {}; }
|
|
849
|
+
return __generator(this, function (_a) {
|
|
850
|
+
switch (_a.label) {
|
|
851
|
+
case 0:
|
|
852
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
853
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdReactivatePut', 'generalArticleId', generalArticleId);
|
|
854
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/reactivate"
|
|
855
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
856
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
857
|
+
if (configuration) {
|
|
858
|
+
baseOptions = configuration.baseOptions;
|
|
859
|
+
}
|
|
860
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
861
|
+
localVarHeaderParameter = {};
|
|
862
|
+
localVarQueryParameter = {};
|
|
863
|
+
// authentication oauth2 required
|
|
864
|
+
// oauth required
|
|
865
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
866
|
+
case 1:
|
|
867
|
+
// authentication oauth2 required
|
|
868
|
+
// oauth required
|
|
869
|
+
_a.sent();
|
|
870
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
871
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
872
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
873
|
+
return [2 /*return*/, {
|
|
874
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
875
|
+
options: localVarRequestOptions,
|
|
876
|
+
}];
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
});
|
|
880
|
+
},
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @summary Get generalArticleSources (Auth policies: RequireContentManagerRole)
|
|
884
|
+
* @param {string} generalArticleId
|
|
885
|
+
* @param {number} [page]
|
|
886
|
+
* @param {number} [limit]
|
|
887
|
+
* @param {Date} [lastRetrieved]
|
|
888
|
+
* @param {*} [options] Override http request option.
|
|
889
|
+
* @throws {RequiredError}
|
|
890
|
+
*/
|
|
891
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesGet: function (generalArticleId_1, page_1, limit_1, lastRetrieved_1) {
|
|
892
|
+
var args_1 = [];
|
|
893
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
894
|
+
args_1[_i - 4] = arguments[_i];
|
|
895
|
+
}
|
|
896
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (generalArticleId, page, limit, lastRetrieved, options) {
|
|
897
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
898
|
+
if (options === void 0) { options = {}; }
|
|
899
|
+
return __generator(this, function (_a) {
|
|
900
|
+
switch (_a.label) {
|
|
901
|
+
case 0:
|
|
902
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
903
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdSourcesGet', 'generalArticleId', generalArticleId);
|
|
904
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/sources"
|
|
905
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
906
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
907
|
+
if (configuration) {
|
|
908
|
+
baseOptions = configuration.baseOptions;
|
|
909
|
+
}
|
|
910
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
911
|
+
localVarHeaderParameter = {};
|
|
912
|
+
localVarQueryParameter = {};
|
|
913
|
+
// authentication oauth2 required
|
|
914
|
+
// oauth required
|
|
915
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
916
|
+
case 1:
|
|
917
|
+
// authentication oauth2 required
|
|
918
|
+
// oauth required
|
|
919
|
+
_a.sent();
|
|
920
|
+
if (page !== undefined) {
|
|
921
|
+
localVarQueryParameter['page'] = page;
|
|
922
|
+
}
|
|
923
|
+
if (limit !== undefined) {
|
|
924
|
+
localVarQueryParameter['limit'] = limit;
|
|
925
|
+
}
|
|
926
|
+
if (lastRetrieved !== undefined) {
|
|
927
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
928
|
+
lastRetrieved.toISOString() :
|
|
929
|
+
lastRetrieved;
|
|
930
|
+
}
|
|
931
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
932
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
933
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
934
|
+
return [2 /*return*/, {
|
|
935
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
936
|
+
options: localVarRequestOptions,
|
|
937
|
+
}];
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
});
|
|
941
|
+
},
|
|
942
|
+
/**
|
|
943
|
+
*
|
|
944
|
+
* @summary Create generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
945
|
+
* @param {string} generalArticleId
|
|
946
|
+
* @param {CreateGeneralArticleSourceCommand} [createGeneralArticleSourceCommand]
|
|
947
|
+
* @param {*} [options] Override http request option.
|
|
948
|
+
* @throws {RequiredError}
|
|
949
|
+
*/
|
|
950
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesPost: function (generalArticleId_1, createGeneralArticleSourceCommand_1) {
|
|
951
|
+
var args_1 = [];
|
|
952
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
953
|
+
args_1[_i - 2] = arguments[_i];
|
|
954
|
+
}
|
|
955
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, createGeneralArticleSourceCommand_1], args_1, true), void 0, function (generalArticleId, createGeneralArticleSourceCommand, options) {
|
|
956
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
957
|
+
if (options === void 0) { options = {}; }
|
|
958
|
+
return __generator(this, function (_a) {
|
|
959
|
+
switch (_a.label) {
|
|
960
|
+
case 0:
|
|
961
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
962
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdSourcesPost', 'generalArticleId', generalArticleId);
|
|
963
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/sources"
|
|
964
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
965
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
966
|
+
if (configuration) {
|
|
967
|
+
baseOptions = configuration.baseOptions;
|
|
968
|
+
}
|
|
969
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
970
|
+
localVarHeaderParameter = {};
|
|
971
|
+
localVarQueryParameter = {};
|
|
972
|
+
// authentication oauth2 required
|
|
973
|
+
// oauth required
|
|
974
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
975
|
+
case 1:
|
|
976
|
+
// authentication oauth2 required
|
|
977
|
+
// oauth required
|
|
978
|
+
_a.sent();
|
|
979
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
980
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
981
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
982
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
983
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGeneralArticleSourceCommand, localVarRequestOptions, configuration);
|
|
984
|
+
return [2 /*return*/, {
|
|
985
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
986
|
+
options: localVarRequestOptions,
|
|
987
|
+
}];
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
});
|
|
991
|
+
},
|
|
992
|
+
/**
|
|
993
|
+
*
|
|
994
|
+
* @summary Delete generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
995
|
+
* @param {string} generalArticleId
|
|
996
|
+
* @param {string} sourceId
|
|
997
|
+
* @param {*} [options] Override http request option.
|
|
998
|
+
* @throws {RequiredError}
|
|
999
|
+
*/
|
|
1000
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete: function (generalArticleId_1, sourceId_1) {
|
|
1001
|
+
var args_1 = [];
|
|
1002
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1003
|
+
args_1[_i - 2] = arguments[_i];
|
|
1004
|
+
}
|
|
1005
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, sourceId_1], args_1, true), void 0, function (generalArticleId, sourceId, options) {
|
|
1006
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1007
|
+
if (options === void 0) { options = {}; }
|
|
1008
|
+
return __generator(this, function (_a) {
|
|
1009
|
+
switch (_a.label) {
|
|
1010
|
+
case 0:
|
|
1011
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1012
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete', 'generalArticleId', generalArticleId);
|
|
1013
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
1014
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete', 'sourceId', sourceId);
|
|
1015
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/sources/{sourceId}"
|
|
1016
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
1017
|
+
.replace("{".concat("sourceId", "}"), encodeURIComponent(String(sourceId)));
|
|
1018
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1019
|
+
if (configuration) {
|
|
1020
|
+
baseOptions = configuration.baseOptions;
|
|
1021
|
+
}
|
|
1022
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
1023
|
+
localVarHeaderParameter = {};
|
|
1024
|
+
localVarQueryParameter = {};
|
|
1025
|
+
// authentication oauth2 required
|
|
1026
|
+
// oauth required
|
|
1027
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1028
|
+
case 1:
|
|
1029
|
+
// authentication oauth2 required
|
|
1030
|
+
// oauth required
|
|
1031
|
+
_a.sent();
|
|
1032
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1033
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1034
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1035
|
+
return [2 /*return*/, {
|
|
1036
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1037
|
+
options: localVarRequestOptions,
|
|
1038
|
+
}];
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
});
|
|
1042
|
+
},
|
|
1043
|
+
/**
|
|
1044
|
+
*
|
|
1045
|
+
* @summary Get GeneralArticleSource (Auth policies: RequireContentManagerRole)
|
|
1046
|
+
* @param {string} generalArticleId
|
|
1047
|
+
* @param {string} sourceId
|
|
1048
|
+
* @param {*} [options] Override http request option.
|
|
1049
|
+
* @throws {RequiredError}
|
|
1050
|
+
*/
|
|
1051
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet: function (generalArticleId_1, sourceId_1) {
|
|
1052
|
+
var args_1 = [];
|
|
1053
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1054
|
+
args_1[_i - 2] = arguments[_i];
|
|
1055
|
+
}
|
|
1056
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, sourceId_1], args_1, true), void 0, function (generalArticleId, sourceId, options) {
|
|
1057
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1058
|
+
if (options === void 0) { options = {}; }
|
|
1059
|
+
return __generator(this, function (_a) {
|
|
1060
|
+
switch (_a.label) {
|
|
1061
|
+
case 0:
|
|
1062
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1063
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet', 'generalArticleId', generalArticleId);
|
|
1064
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
1065
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet', 'sourceId', sourceId);
|
|
1066
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/sources/{sourceId}"
|
|
1067
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
1068
|
+
.replace("{".concat("sourceId", "}"), encodeURIComponent(String(sourceId)));
|
|
1069
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1070
|
+
if (configuration) {
|
|
1071
|
+
baseOptions = configuration.baseOptions;
|
|
1072
|
+
}
|
|
1073
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1074
|
+
localVarHeaderParameter = {};
|
|
1075
|
+
localVarQueryParameter = {};
|
|
1076
|
+
// authentication oauth2 required
|
|
1077
|
+
// oauth required
|
|
1078
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1079
|
+
case 1:
|
|
1080
|
+
// authentication oauth2 required
|
|
1081
|
+
// oauth required
|
|
1082
|
+
_a.sent();
|
|
1083
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1084
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1085
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1086
|
+
return [2 /*return*/, {
|
|
1087
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1088
|
+
options: localVarRequestOptions,
|
|
1089
|
+
}];
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
});
|
|
1093
|
+
},
|
|
1094
|
+
/**
|
|
1095
|
+
*
|
|
1096
|
+
* @summary Update generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
1097
|
+
* @param {string} generalArticleId
|
|
1098
|
+
* @param {string} sourceId
|
|
1099
|
+
* @param {UpdateGeneralArticleSourceCommand} [updateGeneralArticleSourceCommand]
|
|
1100
|
+
* @param {*} [options] Override http request option.
|
|
1101
|
+
* @throws {RequiredError}
|
|
1102
|
+
*/
|
|
1103
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut: function (generalArticleId_1, sourceId_1, updateGeneralArticleSourceCommand_1) {
|
|
1104
|
+
var args_1 = [];
|
|
1105
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
1106
|
+
args_1[_i - 3] = arguments[_i];
|
|
1107
|
+
}
|
|
1108
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, sourceId_1, updateGeneralArticleSourceCommand_1], args_1, true), void 0, function (generalArticleId, sourceId, updateGeneralArticleSourceCommand, options) {
|
|
1109
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1110
|
+
if (options === void 0) { options = {}; }
|
|
1111
|
+
return __generator(this, function (_a) {
|
|
1112
|
+
switch (_a.label) {
|
|
1113
|
+
case 0:
|
|
1114
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1115
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut', 'generalArticleId', generalArticleId);
|
|
1116
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
1117
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut', 'sourceId', sourceId);
|
|
1118
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/sources/{sourceId}"
|
|
1119
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
1120
|
+
.replace("{".concat("sourceId", "}"), encodeURIComponent(String(sourceId)));
|
|
1121
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1122
|
+
if (configuration) {
|
|
1123
|
+
baseOptions = configuration.baseOptions;
|
|
1124
|
+
}
|
|
1125
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1126
|
+
localVarHeaderParameter = {};
|
|
1127
|
+
localVarQueryParameter = {};
|
|
1128
|
+
// authentication oauth2 required
|
|
1129
|
+
// oauth required
|
|
1130
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1131
|
+
case 1:
|
|
1132
|
+
// authentication oauth2 required
|
|
1133
|
+
// oauth required
|
|
1134
|
+
_a.sent();
|
|
1135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateGeneralArticleSourceCommand, localVarRequestOptions, configuration);
|
|
1140
|
+
return [2 /*return*/, {
|
|
1141
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1142
|
+
options: localVarRequestOptions,
|
|
1143
|
+
}];
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
});
|
|
1147
|
+
},
|
|
1148
|
+
/**
|
|
1149
|
+
*
|
|
1150
|
+
* @summary Get generalArticleTags (Auth policies: RequireContentManagerRole)
|
|
1151
|
+
* @param {string} generalArticleId
|
|
1152
|
+
* @param {string} [tagId]
|
|
1153
|
+
* @param {number} [page]
|
|
1154
|
+
* @param {number} [limit]
|
|
1155
|
+
* @param {Date} [lastRetrieved]
|
|
1156
|
+
* @param {*} [options] Override http request option.
|
|
1157
|
+
* @throws {RequiredError}
|
|
1158
|
+
*/
|
|
1159
|
+
apiV1GeneralarticlesGeneralArticleIdTagsGet: function (generalArticleId_1, tagId_1, page_1, limit_1, lastRetrieved_1) {
|
|
1160
|
+
var args_1 = [];
|
|
1161
|
+
for (var _i = 5; _i < arguments.length; _i++) {
|
|
1162
|
+
args_1[_i - 5] = arguments[_i];
|
|
1163
|
+
}
|
|
1164
|
+
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) {
|
|
1165
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1166
|
+
if (options === void 0) { options = {}; }
|
|
1167
|
+
return __generator(this, function (_a) {
|
|
1168
|
+
switch (_a.label) {
|
|
1169
|
+
case 0:
|
|
1170
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1171
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTagsGet', 'generalArticleId', generalArticleId);
|
|
1172
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/tags"
|
|
1173
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
1174
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1175
|
+
if (configuration) {
|
|
1176
|
+
baseOptions = configuration.baseOptions;
|
|
1177
|
+
}
|
|
1178
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1179
|
+
localVarHeaderParameter = {};
|
|
1180
|
+
localVarQueryParameter = {};
|
|
1181
|
+
// authentication oauth2 required
|
|
1182
|
+
// oauth required
|
|
1183
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1184
|
+
case 1:
|
|
1185
|
+
// authentication oauth2 required
|
|
1186
|
+
// oauth required
|
|
1187
|
+
_a.sent();
|
|
1188
|
+
if (tagId !== undefined) {
|
|
1189
|
+
localVarQueryParameter['TagId'] = tagId;
|
|
1190
|
+
}
|
|
1191
|
+
if (page !== undefined) {
|
|
1192
|
+
localVarQueryParameter['page'] = page;
|
|
1193
|
+
}
|
|
1194
|
+
if (limit !== undefined) {
|
|
1195
|
+
localVarQueryParameter['limit'] = limit;
|
|
1196
|
+
}
|
|
1197
|
+
if (lastRetrieved !== undefined) {
|
|
1198
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
1199
|
+
lastRetrieved.toISOString() :
|
|
1200
|
+
lastRetrieved;
|
|
1201
|
+
}
|
|
1202
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1203
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1204
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1205
|
+
return [2 /*return*/, {
|
|
1206
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1207
|
+
options: localVarRequestOptions,
|
|
1208
|
+
}];
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
});
|
|
1212
|
+
},
|
|
1213
|
+
/**
|
|
1214
|
+
*
|
|
1215
|
+
* @summary Create generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
1216
|
+
* @param {string} generalArticleId
|
|
1217
|
+
* @param {CreateGeneralArticleTagCommand} [createGeneralArticleTagCommand]
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
*/
|
|
1221
|
+
apiV1GeneralarticlesGeneralArticleIdTagsPost: function (generalArticleId_1, createGeneralArticleTagCommand_1) {
|
|
1222
|
+
var args_1 = [];
|
|
1223
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1224
|
+
args_1[_i - 2] = arguments[_i];
|
|
1225
|
+
}
|
|
1226
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, createGeneralArticleTagCommand_1], args_1, true), void 0, function (generalArticleId, createGeneralArticleTagCommand, options) {
|
|
1227
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1228
|
+
if (options === void 0) { options = {}; }
|
|
1229
|
+
return __generator(this, function (_a) {
|
|
1230
|
+
switch (_a.label) {
|
|
1231
|
+
case 0:
|
|
1232
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1233
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTagsPost', 'generalArticleId', generalArticleId);
|
|
1234
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/tags"
|
|
1235
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
1236
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1237
|
+
if (configuration) {
|
|
1238
|
+
baseOptions = configuration.baseOptions;
|
|
1239
|
+
}
|
|
1240
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1241
|
+
localVarHeaderParameter = {};
|
|
1242
|
+
localVarQueryParameter = {};
|
|
1243
|
+
// authentication oauth2 required
|
|
1244
|
+
// oauth required
|
|
1245
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1246
|
+
case 1:
|
|
1247
|
+
// authentication oauth2 required
|
|
1248
|
+
// oauth required
|
|
1249
|
+
_a.sent();
|
|
1250
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1251
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1252
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1253
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1254
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGeneralArticleTagCommand, localVarRequestOptions, configuration);
|
|
1255
|
+
return [2 /*return*/, {
|
|
1256
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1257
|
+
options: localVarRequestOptions,
|
|
1258
|
+
}];
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
});
|
|
1262
|
+
},
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* @summary Delete generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
1266
|
+
* @param {string} generalArticleId
|
|
1267
|
+
* @param {string} tagId
|
|
1268
|
+
* @param {*} [options] Override http request option.
|
|
1269
|
+
* @throws {RequiredError}
|
|
1270
|
+
*/
|
|
1271
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete: function (generalArticleId_1, tagId_1) {
|
|
1272
|
+
var args_1 = [];
|
|
1273
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1274
|
+
args_1[_i - 2] = arguments[_i];
|
|
1275
|
+
}
|
|
1276
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, tagId_1], args_1, true), void 0, function (generalArticleId, tagId, options) {
|
|
1277
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1278
|
+
if (options === void 0) { options = {}; }
|
|
1279
|
+
return __generator(this, function (_a) {
|
|
1280
|
+
switch (_a.label) {
|
|
1281
|
+
case 0:
|
|
1282
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1283
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete', 'generalArticleId', generalArticleId);
|
|
1284
|
+
// verify required parameter 'tagId' is not null or undefined
|
|
1285
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete', 'tagId', tagId);
|
|
1286
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/tags/{tagId}"
|
|
1287
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
1288
|
+
.replace("{".concat("tagId", "}"), encodeURIComponent(String(tagId)));
|
|
1289
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1290
|
+
if (configuration) {
|
|
1291
|
+
baseOptions = configuration.baseOptions;
|
|
1292
|
+
}
|
|
1293
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
1294
|
+
localVarHeaderParameter = {};
|
|
1295
|
+
localVarQueryParameter = {};
|
|
1296
|
+
// authentication oauth2 required
|
|
1297
|
+
// oauth required
|
|
1298
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1299
|
+
case 1:
|
|
1300
|
+
// authentication oauth2 required
|
|
1301
|
+
// oauth required
|
|
1302
|
+
_a.sent();
|
|
1303
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1304
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1305
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1306
|
+
return [2 /*return*/, {
|
|
1307
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1308
|
+
options: localVarRequestOptions,
|
|
1309
|
+
}];
|
|
1310
|
+
}
|
|
1311
|
+
});
|
|
1312
|
+
});
|
|
1313
|
+
},
|
|
1314
|
+
/**
|
|
1315
|
+
*
|
|
1316
|
+
* @summary Get generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
1317
|
+
* @param {string} generalArticleId
|
|
1318
|
+
* @param {string} tagId
|
|
1319
|
+
* @param {*} [options] Override http request option.
|
|
1320
|
+
* @throws {RequiredError}
|
|
1321
|
+
*/
|
|
1322
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet: function (generalArticleId_1, tagId_1) {
|
|
1323
|
+
var args_1 = [];
|
|
1324
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1325
|
+
args_1[_i - 2] = arguments[_i];
|
|
1326
|
+
}
|
|
1327
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, tagId_1], args_1, true), void 0, function (generalArticleId, tagId, options) {
|
|
1328
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1329
|
+
if (options === void 0) { options = {}; }
|
|
1330
|
+
return __generator(this, function (_a) {
|
|
1331
|
+
switch (_a.label) {
|
|
1332
|
+
case 0:
|
|
1333
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1334
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet', 'generalArticleId', generalArticleId);
|
|
1335
|
+
// verify required parameter 'tagId' is not null or undefined
|
|
1336
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet', 'tagId', tagId);
|
|
1337
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/tags/{tagId}"
|
|
1338
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
1339
|
+
.replace("{".concat("tagId", "}"), encodeURIComponent(String(tagId)));
|
|
1340
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1341
|
+
if (configuration) {
|
|
1342
|
+
baseOptions = configuration.baseOptions;
|
|
1343
|
+
}
|
|
1344
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1345
|
+
localVarHeaderParameter = {};
|
|
1346
|
+
localVarQueryParameter = {};
|
|
1347
|
+
// authentication oauth2 required
|
|
1348
|
+
// oauth required
|
|
1349
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1350
|
+
case 1:
|
|
1351
|
+
// authentication oauth2 required
|
|
1352
|
+
// oauth required
|
|
1353
|
+
_a.sent();
|
|
1354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1355
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1356
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1357
|
+
return [2 /*return*/, {
|
|
1358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1359
|
+
options: localVarRequestOptions,
|
|
1360
|
+
}];
|
|
1361
|
+
}
|
|
1362
|
+
});
|
|
1363
|
+
});
|
|
1364
|
+
},
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @summary Update generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
1368
|
+
* @param {string} generalArticleId
|
|
1369
|
+
* @param {string} tagId
|
|
1370
|
+
* @param {UpdateGeneralArticleTagCommand} [updateGeneralArticleTagCommand]
|
|
1371
|
+
* @param {*} [options] Override http request option.
|
|
1372
|
+
* @throws {RequiredError}
|
|
1373
|
+
*/
|
|
1374
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut: function (generalArticleId_1, tagId_1, updateGeneralArticleTagCommand_1) {
|
|
1375
|
+
var args_1 = [];
|
|
1376
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
1377
|
+
args_1[_i - 3] = arguments[_i];
|
|
1378
|
+
}
|
|
1379
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, tagId_1, updateGeneralArticleTagCommand_1], args_1, true), void 0, function (generalArticleId, tagId, updateGeneralArticleTagCommand, options) {
|
|
1380
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1381
|
+
if (options === void 0) { options = {}; }
|
|
1382
|
+
return __generator(this, function (_a) {
|
|
1383
|
+
switch (_a.label) {
|
|
1384
|
+
case 0:
|
|
1385
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1386
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut', 'generalArticleId', generalArticleId);
|
|
1387
|
+
// verify required parameter 'tagId' is not null or undefined
|
|
1388
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut', 'tagId', tagId);
|
|
1389
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/tags/{tagId}"
|
|
1390
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)))
|
|
1391
|
+
.replace("{".concat("tagId", "}"), encodeURIComponent(String(tagId)));
|
|
1392
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1393
|
+
if (configuration) {
|
|
1394
|
+
baseOptions = configuration.baseOptions;
|
|
1395
|
+
}
|
|
1396
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1397
|
+
localVarHeaderParameter = {};
|
|
1398
|
+
localVarQueryParameter = {};
|
|
1399
|
+
// authentication oauth2 required
|
|
1400
|
+
// oauth required
|
|
1401
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1402
|
+
case 1:
|
|
1403
|
+
// authentication oauth2 required
|
|
1404
|
+
// oauth required
|
|
1405
|
+
_a.sent();
|
|
1406
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1407
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1408
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1409
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1410
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateGeneralArticleTagCommand, localVarRequestOptions, configuration);
|
|
1411
|
+
return [2 /*return*/, {
|
|
1412
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1413
|
+
options: localVarRequestOptions,
|
|
1414
|
+
}];
|
|
1415
|
+
}
|
|
1416
|
+
});
|
|
1417
|
+
});
|
|
1418
|
+
},
|
|
1419
|
+
/**
|
|
1420
|
+
*
|
|
1421
|
+
* @summary Translate generalArticle (Auth policies: RequireContentManagerRole)
|
|
1422
|
+
* @param {string} generalArticleId
|
|
1423
|
+
* @param {TranslateGeneralArticleCommand} [translateGeneralArticleCommand]
|
|
1424
|
+
* @param {*} [options] Override http request option.
|
|
1425
|
+
* @throws {RequiredError}
|
|
1426
|
+
*/
|
|
1427
|
+
apiV1GeneralarticlesGeneralArticleIdTranslatePost: function (generalArticleId_1, translateGeneralArticleCommand_1) {
|
|
1428
|
+
var args_1 = [];
|
|
1429
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1430
|
+
args_1[_i - 2] = arguments[_i];
|
|
1431
|
+
}
|
|
1432
|
+
return __awaiter(_this, __spreadArray([generalArticleId_1, translateGeneralArticleCommand_1], args_1, true), void 0, function (generalArticleId, translateGeneralArticleCommand, options) {
|
|
1433
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1434
|
+
if (options === void 0) { options = {}; }
|
|
1435
|
+
return __generator(this, function (_a) {
|
|
1436
|
+
switch (_a.label) {
|
|
1437
|
+
case 0:
|
|
1438
|
+
// verify required parameter 'generalArticleId' is not null or undefined
|
|
1439
|
+
(0, common_1.assertParamExists)('apiV1GeneralarticlesGeneralArticleIdTranslatePost', 'generalArticleId', generalArticleId);
|
|
1440
|
+
localVarPath = "/api/v1/generalarticles/{generalArticleId}/translate"
|
|
1441
|
+
.replace("{".concat("generalArticleId", "}"), encodeURIComponent(String(generalArticleId)));
|
|
1442
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1443
|
+
if (configuration) {
|
|
1444
|
+
baseOptions = configuration.baseOptions;
|
|
1445
|
+
}
|
|
1446
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1447
|
+
localVarHeaderParameter = {};
|
|
1448
|
+
localVarQueryParameter = {};
|
|
1449
|
+
// authentication oauth2 required
|
|
1450
|
+
// oauth required
|
|
1451
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1452
|
+
case 1:
|
|
1453
|
+
// authentication oauth2 required
|
|
1454
|
+
// oauth required
|
|
1455
|
+
_a.sent();
|
|
1456
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1457
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1458
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1459
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1460
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(translateGeneralArticleCommand, localVarRequestOptions, configuration);
|
|
1461
|
+
return [2 /*return*/, {
|
|
1462
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1463
|
+
options: localVarRequestOptions,
|
|
1464
|
+
}];
|
|
1465
|
+
}
|
|
1466
|
+
});
|
|
1467
|
+
});
|
|
1468
|
+
},
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @summary Get all generalArticles (Auth policies: RequireContentManagerRole)
|
|
1472
|
+
* @param {string} [id]
|
|
1473
|
+
* @param {string} [name]
|
|
1474
|
+
* @param {string} [description]
|
|
1475
|
+
* @param {ArticleType} [articleType]
|
|
1476
|
+
* @param {ArticleStatus} [status]
|
|
1477
|
+
* @param {string} [userId]
|
|
1478
|
+
* @param {string} [userName]
|
|
1479
|
+
* @param {string} [hospitalId]
|
|
1480
|
+
* @param {string} [hospitalName]
|
|
1481
|
+
* @param {string} [countryId]
|
|
1482
|
+
* @param {string} [tag]
|
|
1483
|
+
* @param {string} [exceptArticleId]
|
|
1484
|
+
* @param {string} [exceptHospitalId]
|
|
1485
|
+
* @param {string} [contributorId]
|
|
1486
|
+
* @param {string} [articleCategoryId]
|
|
1487
|
+
* @param {string} [languageCode]
|
|
1488
|
+
* @param {boolean} [showHidden]
|
|
1489
|
+
* @param {number} [page]
|
|
1490
|
+
* @param {number} [limit]
|
|
1491
|
+
* @param {Date} [lastRetrieved]
|
|
1492
|
+
* @param {*} [options] Override http request option.
|
|
1493
|
+
* @throws {RequiredError}
|
|
1494
|
+
*/
|
|
1495
|
+
apiV1GeneralarticlesGet: 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, showHidden_1, page_1, limit_1, lastRetrieved_1) {
|
|
1496
|
+
var args_1 = [];
|
|
1497
|
+
for (var _i = 20; _i < arguments.length; _i++) {
|
|
1498
|
+
args_1[_i - 20] = arguments[_i];
|
|
1499
|
+
}
|
|
1500
|
+
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, showHidden_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, showHidden, page, limit, lastRetrieved, options) {
|
|
1501
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1502
|
+
if (options === void 0) { options = {}; }
|
|
1503
|
+
return __generator(this, function (_a) {
|
|
1504
|
+
switch (_a.label) {
|
|
1505
|
+
case 0:
|
|
1506
|
+
localVarPath = "/api/v1/generalarticles";
|
|
1507
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1508
|
+
if (configuration) {
|
|
1509
|
+
baseOptions = configuration.baseOptions;
|
|
1510
|
+
}
|
|
1511
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1512
|
+
localVarHeaderParameter = {};
|
|
1513
|
+
localVarQueryParameter = {};
|
|
1514
|
+
// authentication oauth2 required
|
|
1515
|
+
// oauth required
|
|
1516
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1517
|
+
case 1:
|
|
1518
|
+
// authentication oauth2 required
|
|
1519
|
+
// oauth required
|
|
1520
|
+
_a.sent();
|
|
1521
|
+
if (id !== undefined) {
|
|
1522
|
+
localVarQueryParameter['Id'] = id;
|
|
1523
|
+
}
|
|
1524
|
+
if (name !== undefined) {
|
|
1525
|
+
localVarQueryParameter['Name'] = name;
|
|
1526
|
+
}
|
|
1527
|
+
if (description !== undefined) {
|
|
1528
|
+
localVarQueryParameter['Description'] = description;
|
|
1529
|
+
}
|
|
1530
|
+
if (articleType !== undefined) {
|
|
1531
|
+
localVarQueryParameter['ArticleType'] = articleType;
|
|
1532
|
+
}
|
|
1533
|
+
if (status !== undefined) {
|
|
1534
|
+
localVarQueryParameter['Status'] = status;
|
|
1535
|
+
}
|
|
1536
|
+
if (userId !== undefined) {
|
|
1537
|
+
localVarQueryParameter['UserId'] = userId;
|
|
1538
|
+
}
|
|
1539
|
+
if (userName !== undefined) {
|
|
1540
|
+
localVarQueryParameter['UserName'] = userName;
|
|
1541
|
+
}
|
|
1542
|
+
if (hospitalId !== undefined) {
|
|
1543
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
1544
|
+
}
|
|
1545
|
+
if (hospitalName !== undefined) {
|
|
1546
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
1547
|
+
}
|
|
1548
|
+
if (countryId !== undefined) {
|
|
1549
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
1550
|
+
}
|
|
1551
|
+
if (tag !== undefined) {
|
|
1552
|
+
localVarQueryParameter['Tag'] = tag;
|
|
1553
|
+
}
|
|
1554
|
+
if (exceptArticleId !== undefined) {
|
|
1555
|
+
localVarQueryParameter['ExceptArticleId'] = exceptArticleId;
|
|
1556
|
+
}
|
|
1557
|
+
if (exceptHospitalId !== undefined) {
|
|
1558
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
1559
|
+
}
|
|
1560
|
+
if (contributorId !== undefined) {
|
|
1561
|
+
localVarQueryParameter['ContributorId'] = contributorId;
|
|
1562
|
+
}
|
|
1563
|
+
if (articleCategoryId !== undefined) {
|
|
1564
|
+
localVarQueryParameter['ArticleCategoryId'] = articleCategoryId;
|
|
1565
|
+
}
|
|
1566
|
+
if (languageCode !== undefined) {
|
|
1567
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
1568
|
+
}
|
|
1569
|
+
if (showHidden !== undefined) {
|
|
1570
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
1571
|
+
}
|
|
1572
|
+
if (page !== undefined) {
|
|
1573
|
+
localVarQueryParameter['page'] = page;
|
|
1574
|
+
}
|
|
1575
|
+
if (limit !== undefined) {
|
|
1576
|
+
localVarQueryParameter['limit'] = limit;
|
|
1577
|
+
}
|
|
1578
|
+
if (lastRetrieved !== undefined) {
|
|
1579
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
1580
|
+
lastRetrieved.toISOString() :
|
|
1581
|
+
lastRetrieved;
|
|
1582
|
+
}
|
|
1583
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1584
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1585
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1586
|
+
return [2 /*return*/, {
|
|
1587
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1588
|
+
options: localVarRequestOptions,
|
|
1589
|
+
}];
|
|
1590
|
+
}
|
|
1591
|
+
});
|
|
1592
|
+
});
|
|
1593
|
+
},
|
|
1594
|
+
/**
|
|
1595
|
+
*
|
|
1596
|
+
* @summary Create generalArticle (Auth policies: RequireContentManagerRole)
|
|
1597
|
+
* @param {CreateGeneralArticleCommand} [createGeneralArticleCommand]
|
|
1598
|
+
* @param {*} [options] Override http request option.
|
|
1599
|
+
* @throws {RequiredError}
|
|
1600
|
+
*/
|
|
1601
|
+
apiV1GeneralarticlesPost: function (createGeneralArticleCommand_1) {
|
|
1602
|
+
var args_1 = [];
|
|
1603
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1604
|
+
args_1[_i - 1] = arguments[_i];
|
|
1605
|
+
}
|
|
1606
|
+
return __awaiter(_this, __spreadArray([createGeneralArticleCommand_1], args_1, true), void 0, function (createGeneralArticleCommand, options) {
|
|
1607
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1608
|
+
if (options === void 0) { options = {}; }
|
|
1609
|
+
return __generator(this, function (_a) {
|
|
1610
|
+
switch (_a.label) {
|
|
1611
|
+
case 0:
|
|
1612
|
+
localVarPath = "/api/v1/generalarticles";
|
|
1613
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1614
|
+
if (configuration) {
|
|
1615
|
+
baseOptions = configuration.baseOptions;
|
|
1616
|
+
}
|
|
1617
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1618
|
+
localVarHeaderParameter = {};
|
|
1619
|
+
localVarQueryParameter = {};
|
|
1620
|
+
// authentication oauth2 required
|
|
1621
|
+
// oauth required
|
|
1622
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
1623
|
+
case 1:
|
|
1624
|
+
// authentication oauth2 required
|
|
1625
|
+
// oauth required
|
|
1626
|
+
_a.sent();
|
|
1627
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1628
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1629
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1630
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1631
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGeneralArticleCommand, localVarRequestOptions, configuration);
|
|
1632
|
+
return [2 /*return*/, {
|
|
1633
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1634
|
+
options: localVarRequestOptions,
|
|
1635
|
+
}];
|
|
1636
|
+
}
|
|
1637
|
+
});
|
|
1638
|
+
});
|
|
1639
|
+
},
|
|
1640
|
+
};
|
|
1641
|
+
};
|
|
1642
|
+
exports.GeneralArticlesApiAxiosParamCreator = GeneralArticlesApiAxiosParamCreator;
|
|
1643
|
+
/**
|
|
1644
|
+
* GeneralArticlesApi - functional programming interface
|
|
1645
|
+
* @export
|
|
1646
|
+
*/
|
|
1647
|
+
var GeneralArticlesApiFp = function (configuration) {
|
|
1648
|
+
var localVarAxiosParamCreator = (0, exports.GeneralArticlesApiAxiosParamCreator)(configuration);
|
|
1649
|
+
return {
|
|
1650
|
+
/**
|
|
1651
|
+
*
|
|
1652
|
+
* @summary Delete GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
1653
|
+
* @param {string} generalArticleId
|
|
1654
|
+
* @param {string} contributorId
|
|
1655
|
+
* @param {*} [options] Override http request option.
|
|
1656
|
+
* @throws {RequiredError}
|
|
1657
|
+
*/
|
|
1658
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete: function (generalArticleId, contributorId, options) {
|
|
1659
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1660
|
+
var localVarAxiosArgs;
|
|
1661
|
+
return __generator(this, function (_a) {
|
|
1662
|
+
switch (_a.label) {
|
|
1663
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete(generalArticleId, contributorId, options)];
|
|
1664
|
+
case 1:
|
|
1665
|
+
localVarAxiosArgs = _a.sent();
|
|
1666
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1667
|
+
}
|
|
1668
|
+
});
|
|
1669
|
+
});
|
|
1670
|
+
},
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @summary Get GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
1674
|
+
* @param {string} generalArticleId
|
|
1675
|
+
* @param {string} contributorId
|
|
1676
|
+
* @param {string} [languageCode]
|
|
1677
|
+
* @param {*} [options] Override http request option.
|
|
1678
|
+
* @throws {RequiredError}
|
|
1679
|
+
*/
|
|
1680
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet: function (generalArticleId, contributorId, languageCode, options) {
|
|
1681
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1682
|
+
var localVarAxiosArgs;
|
|
1683
|
+
return __generator(this, function (_a) {
|
|
1684
|
+
switch (_a.label) {
|
|
1685
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet(generalArticleId, contributorId, languageCode, options)];
|
|
1686
|
+
case 1:
|
|
1687
|
+
localVarAxiosArgs = _a.sent();
|
|
1688
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
});
|
|
1692
|
+
},
|
|
1693
|
+
/**
|
|
1694
|
+
*
|
|
1695
|
+
* @summary Create GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
1696
|
+
* @param {string} generalArticleId
|
|
1697
|
+
* @param {string} contributorId
|
|
1698
|
+
* @param {CreateGeneralArticleContributorCommand} [createGeneralArticleContributorCommand]
|
|
1699
|
+
* @param {*} [options] Override http request option.
|
|
1700
|
+
* @throws {RequiredError}
|
|
1701
|
+
*/
|
|
1702
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost: function (generalArticleId, contributorId, createGeneralArticleContributorCommand, options) {
|
|
1703
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1704
|
+
var localVarAxiosArgs;
|
|
1705
|
+
return __generator(this, function (_a) {
|
|
1706
|
+
switch (_a.label) {
|
|
1707
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost(generalArticleId, contributorId, createGeneralArticleContributorCommand, options)];
|
|
1708
|
+
case 1:
|
|
1709
|
+
localVarAxiosArgs = _a.sent();
|
|
1710
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
});
|
|
1714
|
+
},
|
|
1715
|
+
/**
|
|
1716
|
+
*
|
|
1717
|
+
* @summary Update GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
1718
|
+
* @param {string} generalArticleId
|
|
1719
|
+
* @param {string} contributorId
|
|
1720
|
+
* @param {UpdateGeneralArticleContributorCommand} [updateGeneralArticleContributorCommand]
|
|
1721
|
+
* @param {*} [options] Override http request option.
|
|
1722
|
+
* @throws {RequiredError}
|
|
1723
|
+
*/
|
|
1724
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut: function (generalArticleId, contributorId, updateGeneralArticleContributorCommand, options) {
|
|
1725
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1726
|
+
var localVarAxiosArgs;
|
|
1727
|
+
return __generator(this, function (_a) {
|
|
1728
|
+
switch (_a.label) {
|
|
1729
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut(generalArticleId, contributorId, updateGeneralArticleContributorCommand, options)];
|
|
1730
|
+
case 1:
|
|
1731
|
+
localVarAxiosArgs = _a.sent();
|
|
1732
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
});
|
|
1736
|
+
},
|
|
1737
|
+
/**
|
|
1738
|
+
*
|
|
1739
|
+
* @summary Get GeneralArticleContributors (Auth policies: RequireContentManagerRole)
|
|
1740
|
+
* @param {string} generalArticleId
|
|
1741
|
+
* @param {string} [languageCode]
|
|
1742
|
+
* @param {string} [contributorId]
|
|
1743
|
+
* @param {string} [contributorName]
|
|
1744
|
+
* @param {string} [email]
|
|
1745
|
+
* @param {string} [website]
|
|
1746
|
+
* @param {ContributionType} [contributionType]
|
|
1747
|
+
* @param {boolean} [showHidden]
|
|
1748
|
+
* @param {number} [page]
|
|
1749
|
+
* @param {number} [limit]
|
|
1750
|
+
* @param {Date} [lastRetrieved]
|
|
1751
|
+
* @param {*} [options] Override http request option.
|
|
1752
|
+
* @throws {RequiredError}
|
|
1753
|
+
*/
|
|
1754
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsGet: function (generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, showHidden, page, limit, lastRetrieved, options) {
|
|
1755
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1756
|
+
var localVarAxiosArgs;
|
|
1757
|
+
return __generator(this, function (_a) {
|
|
1758
|
+
switch (_a.label) {
|
|
1759
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdContributorsGet(generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, showHidden, page, limit, lastRetrieved, options)];
|
|
1760
|
+
case 1:
|
|
1761
|
+
localVarAxiosArgs = _a.sent();
|
|
1762
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1763
|
+
}
|
|
1764
|
+
});
|
|
1765
|
+
});
|
|
1766
|
+
},
|
|
1767
|
+
/**
|
|
1768
|
+
*
|
|
1769
|
+
* @summary Delete generalArticle (Auth policies: RequireContentManagerRole)
|
|
1770
|
+
* @param {string} generalArticleId
|
|
1771
|
+
* @param {boolean} [isPermanent]
|
|
1772
|
+
* @param {*} [options] Override http request option.
|
|
1773
|
+
* @throws {RequiredError}
|
|
1774
|
+
*/
|
|
1775
|
+
apiV1GeneralarticlesGeneralArticleIdDelete: function (generalArticleId, isPermanent, options) {
|
|
1776
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1777
|
+
var localVarAxiosArgs;
|
|
1778
|
+
return __generator(this, function (_a) {
|
|
1779
|
+
switch (_a.label) {
|
|
1780
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdDelete(generalArticleId, isPermanent, options)];
|
|
1781
|
+
case 1:
|
|
1782
|
+
localVarAxiosArgs = _a.sent();
|
|
1783
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1784
|
+
}
|
|
1785
|
+
});
|
|
1786
|
+
});
|
|
1787
|
+
},
|
|
1788
|
+
/**
|
|
1789
|
+
*
|
|
1790
|
+
* @summary Get generalArticle by id (Auth policies: RequireContentManagerRole)
|
|
1791
|
+
* @param {string} generalArticleId
|
|
1792
|
+
* @param {string} [languageCode]
|
|
1793
|
+
* @param {*} [options] Override http request option.
|
|
1794
|
+
* @throws {RequiredError}
|
|
1795
|
+
*/
|
|
1796
|
+
apiV1GeneralarticlesGeneralArticleIdGet: function (generalArticleId, languageCode, options) {
|
|
1797
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1798
|
+
var localVarAxiosArgs;
|
|
1799
|
+
return __generator(this, function (_a) {
|
|
1800
|
+
switch (_a.label) {
|
|
1801
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdGet(generalArticleId, languageCode, options)];
|
|
1802
|
+
case 1:
|
|
1803
|
+
localVarAxiosArgs = _a.sent();
|
|
1804
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1805
|
+
}
|
|
1806
|
+
});
|
|
1807
|
+
});
|
|
1808
|
+
},
|
|
1809
|
+
/**
|
|
1810
|
+
*
|
|
1811
|
+
* @summary Get generalArticleMedias (Auth policies: RequireContentManagerRole)
|
|
1812
|
+
* @param {string} generalArticleId
|
|
1813
|
+
* @param {string} [id]
|
|
1814
|
+
* @param {MediaType} [mediaType]
|
|
1815
|
+
* @param {number} [page]
|
|
1816
|
+
* @param {number} [limit]
|
|
1817
|
+
* @param {Date} [lastRetrieved]
|
|
1818
|
+
* @param {*} [options] Override http request option.
|
|
1819
|
+
* @throws {RequiredError}
|
|
1820
|
+
*/
|
|
1821
|
+
apiV1GeneralarticlesGeneralArticleIdMediasGet: function (generalArticleId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
1822
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1823
|
+
var localVarAxiosArgs;
|
|
1824
|
+
return __generator(this, function (_a) {
|
|
1825
|
+
switch (_a.label) {
|
|
1826
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdMediasGet(generalArticleId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
1827
|
+
case 1:
|
|
1828
|
+
localVarAxiosArgs = _a.sent();
|
|
1829
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1830
|
+
}
|
|
1831
|
+
});
|
|
1832
|
+
});
|
|
1833
|
+
},
|
|
1834
|
+
/**
|
|
1835
|
+
*
|
|
1836
|
+
* @summary Delete generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
1837
|
+
* @param {string} generalArticleId
|
|
1838
|
+
* @param {string} mediaId
|
|
1839
|
+
* @param {*} [options] Override http request option.
|
|
1840
|
+
* @throws {RequiredError}
|
|
1841
|
+
*/
|
|
1842
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete: function (generalArticleId, mediaId, options) {
|
|
1843
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1844
|
+
var localVarAxiosArgs;
|
|
1845
|
+
return __generator(this, function (_a) {
|
|
1846
|
+
switch (_a.label) {
|
|
1847
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete(generalArticleId, mediaId, options)];
|
|
1848
|
+
case 1:
|
|
1849
|
+
localVarAxiosArgs = _a.sent();
|
|
1850
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1851
|
+
}
|
|
1852
|
+
});
|
|
1853
|
+
});
|
|
1854
|
+
},
|
|
1855
|
+
/**
|
|
1856
|
+
*
|
|
1857
|
+
* @summary Get generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
1858
|
+
* @param {string} generalArticleId
|
|
1859
|
+
* @param {string} mediaId
|
|
1860
|
+
* @param {*} [options] Override http request option.
|
|
1861
|
+
* @throws {RequiredError}
|
|
1862
|
+
*/
|
|
1863
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet: function (generalArticleId, mediaId, options) {
|
|
1864
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1865
|
+
var localVarAxiosArgs;
|
|
1866
|
+
return __generator(this, function (_a) {
|
|
1867
|
+
switch (_a.label) {
|
|
1868
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet(generalArticleId, mediaId, options)];
|
|
1869
|
+
case 1:
|
|
1870
|
+
localVarAxiosArgs = _a.sent();
|
|
1871
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1872
|
+
}
|
|
1873
|
+
});
|
|
1874
|
+
});
|
|
1875
|
+
},
|
|
1876
|
+
/**
|
|
1877
|
+
*
|
|
1878
|
+
* @summary Update generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
1879
|
+
* @param {string} generalArticleId
|
|
1880
|
+
* @param {string} mediaId
|
|
1881
|
+
* @param {UpdateGeneralArticleMediaCommand} [updateGeneralArticleMediaCommand]
|
|
1882
|
+
* @param {*} [options] Override http request option.
|
|
1883
|
+
* @throws {RequiredError}
|
|
1884
|
+
*/
|
|
1885
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut: function (generalArticleId, mediaId, updateGeneralArticleMediaCommand, options) {
|
|
1886
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1887
|
+
var localVarAxiosArgs;
|
|
1888
|
+
return __generator(this, function (_a) {
|
|
1889
|
+
switch (_a.label) {
|
|
1890
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut(generalArticleId, mediaId, updateGeneralArticleMediaCommand, options)];
|
|
1891
|
+
case 1:
|
|
1892
|
+
localVarAxiosArgs = _a.sent();
|
|
1893
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
});
|
|
1897
|
+
},
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @summary Create generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
1901
|
+
* @param {string} generalArticleId
|
|
1902
|
+
* @param {CreateGeneralArticleMediaCommand} [createGeneralArticleMediaCommand]
|
|
1903
|
+
* @param {*} [options] Override http request option.
|
|
1904
|
+
* @throws {RequiredError}
|
|
1905
|
+
*/
|
|
1906
|
+
apiV1GeneralarticlesGeneralArticleIdMediasPost: function (generalArticleId, createGeneralArticleMediaCommand, options) {
|
|
1907
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1908
|
+
var localVarAxiosArgs;
|
|
1909
|
+
return __generator(this, function (_a) {
|
|
1910
|
+
switch (_a.label) {
|
|
1911
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdMediasPost(generalArticleId, createGeneralArticleMediaCommand, options)];
|
|
1912
|
+
case 1:
|
|
1913
|
+
localVarAxiosArgs = _a.sent();
|
|
1914
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1915
|
+
}
|
|
1916
|
+
});
|
|
1917
|
+
});
|
|
1918
|
+
},
|
|
1919
|
+
/**
|
|
1920
|
+
*
|
|
1921
|
+
* @summary Update generalArticle (Auth policies: RequireContentManagerRole)
|
|
1922
|
+
* @param {string} generalArticleId
|
|
1923
|
+
* @param {UpdateGeneralArticleCommand} [updateGeneralArticleCommand]
|
|
1924
|
+
* @param {*} [options] Override http request option.
|
|
1925
|
+
* @throws {RequiredError}
|
|
1926
|
+
*/
|
|
1927
|
+
apiV1GeneralarticlesGeneralArticleIdPut: function (generalArticleId, updateGeneralArticleCommand, options) {
|
|
1928
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1929
|
+
var localVarAxiosArgs;
|
|
1930
|
+
return __generator(this, function (_a) {
|
|
1931
|
+
switch (_a.label) {
|
|
1932
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdPut(generalArticleId, updateGeneralArticleCommand, options)];
|
|
1933
|
+
case 1:
|
|
1934
|
+
localVarAxiosArgs = _a.sent();
|
|
1935
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
});
|
|
1939
|
+
},
|
|
1940
|
+
/**
|
|
1941
|
+
*
|
|
1942
|
+
* @summary Reactivate generalArticle (Auth policies: RequireContentManagerRole)
|
|
1943
|
+
* @param {string} generalArticleId
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
*/
|
|
1947
|
+
apiV1GeneralarticlesGeneralArticleIdReactivatePut: function (generalArticleId, options) {
|
|
1948
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1949
|
+
var localVarAxiosArgs;
|
|
1950
|
+
return __generator(this, function (_a) {
|
|
1951
|
+
switch (_a.label) {
|
|
1952
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdReactivatePut(generalArticleId, options)];
|
|
1953
|
+
case 1:
|
|
1954
|
+
localVarAxiosArgs = _a.sent();
|
|
1955
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1956
|
+
}
|
|
1957
|
+
});
|
|
1958
|
+
});
|
|
1959
|
+
},
|
|
1960
|
+
/**
|
|
1961
|
+
*
|
|
1962
|
+
* @summary Get generalArticleSources (Auth policies: RequireContentManagerRole)
|
|
1963
|
+
* @param {string} generalArticleId
|
|
1964
|
+
* @param {number} [page]
|
|
1965
|
+
* @param {number} [limit]
|
|
1966
|
+
* @param {Date} [lastRetrieved]
|
|
1967
|
+
* @param {*} [options] Override http request option.
|
|
1968
|
+
* @throws {RequiredError}
|
|
1969
|
+
*/
|
|
1970
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesGet: function (generalArticleId, page, limit, lastRetrieved, options) {
|
|
1971
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1972
|
+
var localVarAxiosArgs;
|
|
1973
|
+
return __generator(this, function (_a) {
|
|
1974
|
+
switch (_a.label) {
|
|
1975
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdSourcesGet(generalArticleId, page, limit, lastRetrieved, options)];
|
|
1976
|
+
case 1:
|
|
1977
|
+
localVarAxiosArgs = _a.sent();
|
|
1978
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1979
|
+
}
|
|
1980
|
+
});
|
|
1981
|
+
});
|
|
1982
|
+
},
|
|
1983
|
+
/**
|
|
1984
|
+
*
|
|
1985
|
+
* @summary Create generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
1986
|
+
* @param {string} generalArticleId
|
|
1987
|
+
* @param {CreateGeneralArticleSourceCommand} [createGeneralArticleSourceCommand]
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
*/
|
|
1991
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesPost: function (generalArticleId, createGeneralArticleSourceCommand, options) {
|
|
1992
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1993
|
+
var localVarAxiosArgs;
|
|
1994
|
+
return __generator(this, function (_a) {
|
|
1995
|
+
switch (_a.label) {
|
|
1996
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdSourcesPost(generalArticleId, createGeneralArticleSourceCommand, options)];
|
|
1997
|
+
case 1:
|
|
1998
|
+
localVarAxiosArgs = _a.sent();
|
|
1999
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2000
|
+
}
|
|
2001
|
+
});
|
|
2002
|
+
});
|
|
2003
|
+
},
|
|
2004
|
+
/**
|
|
2005
|
+
*
|
|
2006
|
+
* @summary Delete generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
2007
|
+
* @param {string} generalArticleId
|
|
2008
|
+
* @param {string} sourceId
|
|
2009
|
+
* @param {*} [options] Override http request option.
|
|
2010
|
+
* @throws {RequiredError}
|
|
2011
|
+
*/
|
|
2012
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete: function (generalArticleId, sourceId, options) {
|
|
2013
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2014
|
+
var localVarAxiosArgs;
|
|
2015
|
+
return __generator(this, function (_a) {
|
|
2016
|
+
switch (_a.label) {
|
|
2017
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete(generalArticleId, sourceId, options)];
|
|
2018
|
+
case 1:
|
|
2019
|
+
localVarAxiosArgs = _a.sent();
|
|
2020
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2021
|
+
}
|
|
2022
|
+
});
|
|
2023
|
+
});
|
|
2024
|
+
},
|
|
2025
|
+
/**
|
|
2026
|
+
*
|
|
2027
|
+
* @summary Get GeneralArticleSource (Auth policies: RequireContentManagerRole)
|
|
2028
|
+
* @param {string} generalArticleId
|
|
2029
|
+
* @param {string} sourceId
|
|
2030
|
+
* @param {*} [options] Override http request option.
|
|
2031
|
+
* @throws {RequiredError}
|
|
2032
|
+
*/
|
|
2033
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet: function (generalArticleId, sourceId, options) {
|
|
2034
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2035
|
+
var localVarAxiosArgs;
|
|
2036
|
+
return __generator(this, function (_a) {
|
|
2037
|
+
switch (_a.label) {
|
|
2038
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet(generalArticleId, sourceId, options)];
|
|
2039
|
+
case 1:
|
|
2040
|
+
localVarAxiosArgs = _a.sent();
|
|
2041
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2042
|
+
}
|
|
2043
|
+
});
|
|
2044
|
+
});
|
|
2045
|
+
},
|
|
2046
|
+
/**
|
|
2047
|
+
*
|
|
2048
|
+
* @summary Update generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
2049
|
+
* @param {string} generalArticleId
|
|
2050
|
+
* @param {string} sourceId
|
|
2051
|
+
* @param {UpdateGeneralArticleSourceCommand} [updateGeneralArticleSourceCommand]
|
|
2052
|
+
* @param {*} [options] Override http request option.
|
|
2053
|
+
* @throws {RequiredError}
|
|
2054
|
+
*/
|
|
2055
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut: function (generalArticleId, sourceId, updateGeneralArticleSourceCommand, options) {
|
|
2056
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2057
|
+
var localVarAxiosArgs;
|
|
2058
|
+
return __generator(this, function (_a) {
|
|
2059
|
+
switch (_a.label) {
|
|
2060
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut(generalArticleId, sourceId, updateGeneralArticleSourceCommand, options)];
|
|
2061
|
+
case 1:
|
|
2062
|
+
localVarAxiosArgs = _a.sent();
|
|
2063
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2064
|
+
}
|
|
2065
|
+
});
|
|
2066
|
+
});
|
|
2067
|
+
},
|
|
2068
|
+
/**
|
|
2069
|
+
*
|
|
2070
|
+
* @summary Get generalArticleTags (Auth policies: RequireContentManagerRole)
|
|
2071
|
+
* @param {string} generalArticleId
|
|
2072
|
+
* @param {string} [tagId]
|
|
2073
|
+
* @param {number} [page]
|
|
2074
|
+
* @param {number} [limit]
|
|
2075
|
+
* @param {Date} [lastRetrieved]
|
|
2076
|
+
* @param {*} [options] Override http request option.
|
|
2077
|
+
* @throws {RequiredError}
|
|
2078
|
+
*/
|
|
2079
|
+
apiV1GeneralarticlesGeneralArticleIdTagsGet: function (generalArticleId, tagId, page, limit, lastRetrieved, options) {
|
|
2080
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2081
|
+
var localVarAxiosArgs;
|
|
2082
|
+
return __generator(this, function (_a) {
|
|
2083
|
+
switch (_a.label) {
|
|
2084
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdTagsGet(generalArticleId, tagId, page, limit, lastRetrieved, options)];
|
|
2085
|
+
case 1:
|
|
2086
|
+
localVarAxiosArgs = _a.sent();
|
|
2087
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
});
|
|
2091
|
+
},
|
|
2092
|
+
/**
|
|
2093
|
+
*
|
|
2094
|
+
* @summary Create generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2095
|
+
* @param {string} generalArticleId
|
|
2096
|
+
* @param {CreateGeneralArticleTagCommand} [createGeneralArticleTagCommand]
|
|
2097
|
+
* @param {*} [options] Override http request option.
|
|
2098
|
+
* @throws {RequiredError}
|
|
2099
|
+
*/
|
|
2100
|
+
apiV1GeneralarticlesGeneralArticleIdTagsPost: function (generalArticleId, createGeneralArticleTagCommand, options) {
|
|
2101
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2102
|
+
var localVarAxiosArgs;
|
|
2103
|
+
return __generator(this, function (_a) {
|
|
2104
|
+
switch (_a.label) {
|
|
2105
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdTagsPost(generalArticleId, createGeneralArticleTagCommand, options)];
|
|
2106
|
+
case 1:
|
|
2107
|
+
localVarAxiosArgs = _a.sent();
|
|
2108
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
});
|
|
2112
|
+
},
|
|
2113
|
+
/**
|
|
2114
|
+
*
|
|
2115
|
+
* @summary Delete generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2116
|
+
* @param {string} generalArticleId
|
|
2117
|
+
* @param {string} tagId
|
|
2118
|
+
* @param {*} [options] Override http request option.
|
|
2119
|
+
* @throws {RequiredError}
|
|
2120
|
+
*/
|
|
2121
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete: function (generalArticleId, tagId, options) {
|
|
2122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2123
|
+
var localVarAxiosArgs;
|
|
2124
|
+
return __generator(this, function (_a) {
|
|
2125
|
+
switch (_a.label) {
|
|
2126
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete(generalArticleId, tagId, options)];
|
|
2127
|
+
case 1:
|
|
2128
|
+
localVarAxiosArgs = _a.sent();
|
|
2129
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2130
|
+
}
|
|
2131
|
+
});
|
|
2132
|
+
});
|
|
2133
|
+
},
|
|
2134
|
+
/**
|
|
2135
|
+
*
|
|
2136
|
+
* @summary Get generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2137
|
+
* @param {string} generalArticleId
|
|
2138
|
+
* @param {string} tagId
|
|
2139
|
+
* @param {*} [options] Override http request option.
|
|
2140
|
+
* @throws {RequiredError}
|
|
2141
|
+
*/
|
|
2142
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet: function (generalArticleId, tagId, options) {
|
|
2143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2144
|
+
var localVarAxiosArgs;
|
|
2145
|
+
return __generator(this, function (_a) {
|
|
2146
|
+
switch (_a.label) {
|
|
2147
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet(generalArticleId, tagId, options)];
|
|
2148
|
+
case 1:
|
|
2149
|
+
localVarAxiosArgs = _a.sent();
|
|
2150
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2151
|
+
}
|
|
2152
|
+
});
|
|
2153
|
+
});
|
|
2154
|
+
},
|
|
2155
|
+
/**
|
|
2156
|
+
*
|
|
2157
|
+
* @summary Update generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2158
|
+
* @param {string} generalArticleId
|
|
2159
|
+
* @param {string} tagId
|
|
2160
|
+
* @param {UpdateGeneralArticleTagCommand} [updateGeneralArticleTagCommand]
|
|
2161
|
+
* @param {*} [options] Override http request option.
|
|
2162
|
+
* @throws {RequiredError}
|
|
2163
|
+
*/
|
|
2164
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut: function (generalArticleId, tagId, updateGeneralArticleTagCommand, options) {
|
|
2165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2166
|
+
var localVarAxiosArgs;
|
|
2167
|
+
return __generator(this, function (_a) {
|
|
2168
|
+
switch (_a.label) {
|
|
2169
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut(generalArticleId, tagId, updateGeneralArticleTagCommand, options)];
|
|
2170
|
+
case 1:
|
|
2171
|
+
localVarAxiosArgs = _a.sent();
|
|
2172
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2173
|
+
}
|
|
2174
|
+
});
|
|
2175
|
+
});
|
|
2176
|
+
},
|
|
2177
|
+
/**
|
|
2178
|
+
*
|
|
2179
|
+
* @summary Translate generalArticle (Auth policies: RequireContentManagerRole)
|
|
2180
|
+
* @param {string} generalArticleId
|
|
2181
|
+
* @param {TranslateGeneralArticleCommand} [translateGeneralArticleCommand]
|
|
2182
|
+
* @param {*} [options] Override http request option.
|
|
2183
|
+
* @throws {RequiredError}
|
|
2184
|
+
*/
|
|
2185
|
+
apiV1GeneralarticlesGeneralArticleIdTranslatePost: function (generalArticleId, translateGeneralArticleCommand, options) {
|
|
2186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2187
|
+
var localVarAxiosArgs;
|
|
2188
|
+
return __generator(this, function (_a) {
|
|
2189
|
+
switch (_a.label) {
|
|
2190
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGeneralArticleIdTranslatePost(generalArticleId, translateGeneralArticleCommand, options)];
|
|
2191
|
+
case 1:
|
|
2192
|
+
localVarAxiosArgs = _a.sent();
|
|
2193
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2194
|
+
}
|
|
2195
|
+
});
|
|
2196
|
+
});
|
|
2197
|
+
},
|
|
2198
|
+
/**
|
|
2199
|
+
*
|
|
2200
|
+
* @summary Get all generalArticles (Auth policies: RequireContentManagerRole)
|
|
2201
|
+
* @param {string} [id]
|
|
2202
|
+
* @param {string} [name]
|
|
2203
|
+
* @param {string} [description]
|
|
2204
|
+
* @param {ArticleType} [articleType]
|
|
2205
|
+
* @param {ArticleStatus} [status]
|
|
2206
|
+
* @param {string} [userId]
|
|
2207
|
+
* @param {string} [userName]
|
|
2208
|
+
* @param {string} [hospitalId]
|
|
2209
|
+
* @param {string} [hospitalName]
|
|
2210
|
+
* @param {string} [countryId]
|
|
2211
|
+
* @param {string} [tag]
|
|
2212
|
+
* @param {string} [exceptArticleId]
|
|
2213
|
+
* @param {string} [exceptHospitalId]
|
|
2214
|
+
* @param {string} [contributorId]
|
|
2215
|
+
* @param {string} [articleCategoryId]
|
|
2216
|
+
* @param {string} [languageCode]
|
|
2217
|
+
* @param {boolean} [showHidden]
|
|
2218
|
+
* @param {number} [page]
|
|
2219
|
+
* @param {number} [limit]
|
|
2220
|
+
* @param {Date} [lastRetrieved]
|
|
2221
|
+
* @param {*} [options] Override http request option.
|
|
2222
|
+
* @throws {RequiredError}
|
|
2223
|
+
*/
|
|
2224
|
+
apiV1GeneralarticlesGet: function (id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
2225
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2226
|
+
var localVarAxiosArgs;
|
|
2227
|
+
return __generator(this, function (_a) {
|
|
2228
|
+
switch (_a.label) {
|
|
2229
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesGet(id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
2230
|
+
case 1:
|
|
2231
|
+
localVarAxiosArgs = _a.sent();
|
|
2232
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2233
|
+
}
|
|
2234
|
+
});
|
|
2235
|
+
});
|
|
2236
|
+
},
|
|
2237
|
+
/**
|
|
2238
|
+
*
|
|
2239
|
+
* @summary Create generalArticle (Auth policies: RequireContentManagerRole)
|
|
2240
|
+
* @param {CreateGeneralArticleCommand} [createGeneralArticleCommand]
|
|
2241
|
+
* @param {*} [options] Override http request option.
|
|
2242
|
+
* @throws {RequiredError}
|
|
2243
|
+
*/
|
|
2244
|
+
apiV1GeneralarticlesPost: function (createGeneralArticleCommand, options) {
|
|
2245
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2246
|
+
var localVarAxiosArgs;
|
|
2247
|
+
return __generator(this, function (_a) {
|
|
2248
|
+
switch (_a.label) {
|
|
2249
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GeneralarticlesPost(createGeneralArticleCommand, options)];
|
|
2250
|
+
case 1:
|
|
2251
|
+
localVarAxiosArgs = _a.sent();
|
|
2252
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2253
|
+
}
|
|
2254
|
+
});
|
|
2255
|
+
});
|
|
2256
|
+
},
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
exports.GeneralArticlesApiFp = GeneralArticlesApiFp;
|
|
2260
|
+
/**
|
|
2261
|
+
* GeneralArticlesApi - factory interface
|
|
2262
|
+
* @export
|
|
2263
|
+
*/
|
|
2264
|
+
var GeneralArticlesApiFactory = function (configuration, basePath, axios) {
|
|
2265
|
+
var localVarFp = (0, exports.GeneralArticlesApiFp)(configuration);
|
|
2266
|
+
return {
|
|
2267
|
+
/**
|
|
2268
|
+
*
|
|
2269
|
+
* @summary Delete GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
2270
|
+
* @param {string} generalArticleId
|
|
2271
|
+
* @param {string} contributorId
|
|
2272
|
+
* @param {*} [options] Override http request option.
|
|
2273
|
+
* @throws {RequiredError}
|
|
2274
|
+
*/
|
|
2275
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete: function (generalArticleId, contributorId, options) {
|
|
2276
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete(generalArticleId, contributorId, options).then(function (request) { return request(axios, basePath); });
|
|
2277
|
+
},
|
|
2278
|
+
/**
|
|
2279
|
+
*
|
|
2280
|
+
* @summary Get GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
2281
|
+
* @param {string} generalArticleId
|
|
2282
|
+
* @param {string} contributorId
|
|
2283
|
+
* @param {string} [languageCode]
|
|
2284
|
+
* @param {*} [options] Override http request option.
|
|
2285
|
+
* @throws {RequiredError}
|
|
2286
|
+
*/
|
|
2287
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet: function (generalArticleId, contributorId, languageCode, options) {
|
|
2288
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet(generalArticleId, contributorId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
2289
|
+
},
|
|
2290
|
+
/**
|
|
2291
|
+
*
|
|
2292
|
+
* @summary Create GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
2293
|
+
* @param {string} generalArticleId
|
|
2294
|
+
* @param {string} contributorId
|
|
2295
|
+
* @param {CreateGeneralArticleContributorCommand} [createGeneralArticleContributorCommand]
|
|
2296
|
+
* @param {*} [options] Override http request option.
|
|
2297
|
+
* @throws {RequiredError}
|
|
2298
|
+
*/
|
|
2299
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost: function (generalArticleId, contributorId, createGeneralArticleContributorCommand, options) {
|
|
2300
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost(generalArticleId, contributorId, createGeneralArticleContributorCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2301
|
+
},
|
|
2302
|
+
/**
|
|
2303
|
+
*
|
|
2304
|
+
* @summary Update GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
2305
|
+
* @param {string} generalArticleId
|
|
2306
|
+
* @param {string} contributorId
|
|
2307
|
+
* @param {UpdateGeneralArticleContributorCommand} [updateGeneralArticleContributorCommand]
|
|
2308
|
+
* @param {*} [options] Override http request option.
|
|
2309
|
+
* @throws {RequiredError}
|
|
2310
|
+
*/
|
|
2311
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut: function (generalArticleId, contributorId, updateGeneralArticleContributorCommand, options) {
|
|
2312
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut(generalArticleId, contributorId, updateGeneralArticleContributorCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2313
|
+
},
|
|
2314
|
+
/**
|
|
2315
|
+
*
|
|
2316
|
+
* @summary Get GeneralArticleContributors (Auth policies: RequireContentManagerRole)
|
|
2317
|
+
* @param {string} generalArticleId
|
|
2318
|
+
* @param {string} [languageCode]
|
|
2319
|
+
* @param {string} [contributorId]
|
|
2320
|
+
* @param {string} [contributorName]
|
|
2321
|
+
* @param {string} [email]
|
|
2322
|
+
* @param {string} [website]
|
|
2323
|
+
* @param {ContributionType} [contributionType]
|
|
2324
|
+
* @param {boolean} [showHidden]
|
|
2325
|
+
* @param {number} [page]
|
|
2326
|
+
* @param {number} [limit]
|
|
2327
|
+
* @param {Date} [lastRetrieved]
|
|
2328
|
+
* @param {*} [options] Override http request option.
|
|
2329
|
+
* @throws {RequiredError}
|
|
2330
|
+
*/
|
|
2331
|
+
apiV1GeneralarticlesGeneralArticleIdContributorsGet: function (generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, showHidden, page, limit, lastRetrieved, options) {
|
|
2332
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdContributorsGet(generalArticleId, languageCode, contributorId, contributorName, email, website, contributionType, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2333
|
+
},
|
|
2334
|
+
/**
|
|
2335
|
+
*
|
|
2336
|
+
* @summary Delete generalArticle (Auth policies: RequireContentManagerRole)
|
|
2337
|
+
* @param {string} generalArticleId
|
|
2338
|
+
* @param {boolean} [isPermanent]
|
|
2339
|
+
* @param {*} [options] Override http request option.
|
|
2340
|
+
* @throws {RequiredError}
|
|
2341
|
+
*/
|
|
2342
|
+
apiV1GeneralarticlesGeneralArticleIdDelete: function (generalArticleId, isPermanent, options) {
|
|
2343
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdDelete(generalArticleId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
2344
|
+
},
|
|
2345
|
+
/**
|
|
2346
|
+
*
|
|
2347
|
+
* @summary Get generalArticle by id (Auth policies: RequireContentManagerRole)
|
|
2348
|
+
* @param {string} generalArticleId
|
|
2349
|
+
* @param {string} [languageCode]
|
|
2350
|
+
* @param {*} [options] Override http request option.
|
|
2351
|
+
* @throws {RequiredError}
|
|
2352
|
+
*/
|
|
2353
|
+
apiV1GeneralarticlesGeneralArticleIdGet: function (generalArticleId, languageCode, options) {
|
|
2354
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdGet(generalArticleId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
2355
|
+
},
|
|
2356
|
+
/**
|
|
2357
|
+
*
|
|
2358
|
+
* @summary Get generalArticleMedias (Auth policies: RequireContentManagerRole)
|
|
2359
|
+
* @param {string} generalArticleId
|
|
2360
|
+
* @param {string} [id]
|
|
2361
|
+
* @param {MediaType} [mediaType]
|
|
2362
|
+
* @param {number} [page]
|
|
2363
|
+
* @param {number} [limit]
|
|
2364
|
+
* @param {Date} [lastRetrieved]
|
|
2365
|
+
* @param {*} [options] Override http request option.
|
|
2366
|
+
* @throws {RequiredError}
|
|
2367
|
+
*/
|
|
2368
|
+
apiV1GeneralarticlesGeneralArticleIdMediasGet: function (generalArticleId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
2369
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdMediasGet(generalArticleId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2370
|
+
},
|
|
2371
|
+
/**
|
|
2372
|
+
*
|
|
2373
|
+
* @summary Delete generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
2374
|
+
* @param {string} generalArticleId
|
|
2375
|
+
* @param {string} mediaId
|
|
2376
|
+
* @param {*} [options] Override http request option.
|
|
2377
|
+
* @throws {RequiredError}
|
|
2378
|
+
*/
|
|
2379
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete: function (generalArticleId, mediaId, options) {
|
|
2380
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete(generalArticleId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
2381
|
+
},
|
|
2382
|
+
/**
|
|
2383
|
+
*
|
|
2384
|
+
* @summary Get generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
2385
|
+
* @param {string} generalArticleId
|
|
2386
|
+
* @param {string} mediaId
|
|
2387
|
+
* @param {*} [options] Override http request option.
|
|
2388
|
+
* @throws {RequiredError}
|
|
2389
|
+
*/
|
|
2390
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet: function (generalArticleId, mediaId, options) {
|
|
2391
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet(generalArticleId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
2392
|
+
},
|
|
2393
|
+
/**
|
|
2394
|
+
*
|
|
2395
|
+
* @summary Update generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
2396
|
+
* @param {string} generalArticleId
|
|
2397
|
+
* @param {string} mediaId
|
|
2398
|
+
* @param {UpdateGeneralArticleMediaCommand} [updateGeneralArticleMediaCommand]
|
|
2399
|
+
* @param {*} [options] Override http request option.
|
|
2400
|
+
* @throws {RequiredError}
|
|
2401
|
+
*/
|
|
2402
|
+
apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut: function (generalArticleId, mediaId, updateGeneralArticleMediaCommand, options) {
|
|
2403
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut(generalArticleId, mediaId, updateGeneralArticleMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2404
|
+
},
|
|
2405
|
+
/**
|
|
2406
|
+
*
|
|
2407
|
+
* @summary Create generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
2408
|
+
* @param {string} generalArticleId
|
|
2409
|
+
* @param {CreateGeneralArticleMediaCommand} [createGeneralArticleMediaCommand]
|
|
2410
|
+
* @param {*} [options] Override http request option.
|
|
2411
|
+
* @throws {RequiredError}
|
|
2412
|
+
*/
|
|
2413
|
+
apiV1GeneralarticlesGeneralArticleIdMediasPost: function (generalArticleId, createGeneralArticleMediaCommand, options) {
|
|
2414
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdMediasPost(generalArticleId, createGeneralArticleMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2415
|
+
},
|
|
2416
|
+
/**
|
|
2417
|
+
*
|
|
2418
|
+
* @summary Update generalArticle (Auth policies: RequireContentManagerRole)
|
|
2419
|
+
* @param {string} generalArticleId
|
|
2420
|
+
* @param {UpdateGeneralArticleCommand} [updateGeneralArticleCommand]
|
|
2421
|
+
* @param {*} [options] Override http request option.
|
|
2422
|
+
* @throws {RequiredError}
|
|
2423
|
+
*/
|
|
2424
|
+
apiV1GeneralarticlesGeneralArticleIdPut: function (generalArticleId, updateGeneralArticleCommand, options) {
|
|
2425
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdPut(generalArticleId, updateGeneralArticleCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2426
|
+
},
|
|
2427
|
+
/**
|
|
2428
|
+
*
|
|
2429
|
+
* @summary Reactivate generalArticle (Auth policies: RequireContentManagerRole)
|
|
2430
|
+
* @param {string} generalArticleId
|
|
2431
|
+
* @param {*} [options] Override http request option.
|
|
2432
|
+
* @throws {RequiredError}
|
|
2433
|
+
*/
|
|
2434
|
+
apiV1GeneralarticlesGeneralArticleIdReactivatePut: function (generalArticleId, options) {
|
|
2435
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdReactivatePut(generalArticleId, options).then(function (request) { return request(axios, basePath); });
|
|
2436
|
+
},
|
|
2437
|
+
/**
|
|
2438
|
+
*
|
|
2439
|
+
* @summary Get generalArticleSources (Auth policies: RequireContentManagerRole)
|
|
2440
|
+
* @param {string} generalArticleId
|
|
2441
|
+
* @param {number} [page]
|
|
2442
|
+
* @param {number} [limit]
|
|
2443
|
+
* @param {Date} [lastRetrieved]
|
|
2444
|
+
* @param {*} [options] Override http request option.
|
|
2445
|
+
* @throws {RequiredError}
|
|
2446
|
+
*/
|
|
2447
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesGet: function (generalArticleId, page, limit, lastRetrieved, options) {
|
|
2448
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdSourcesGet(generalArticleId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2449
|
+
},
|
|
2450
|
+
/**
|
|
2451
|
+
*
|
|
2452
|
+
* @summary Create generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
2453
|
+
* @param {string} generalArticleId
|
|
2454
|
+
* @param {CreateGeneralArticleSourceCommand} [createGeneralArticleSourceCommand]
|
|
2455
|
+
* @param {*} [options] Override http request option.
|
|
2456
|
+
* @throws {RequiredError}
|
|
2457
|
+
*/
|
|
2458
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesPost: function (generalArticleId, createGeneralArticleSourceCommand, options) {
|
|
2459
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdSourcesPost(generalArticleId, createGeneralArticleSourceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2460
|
+
},
|
|
2461
|
+
/**
|
|
2462
|
+
*
|
|
2463
|
+
* @summary Delete generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
2464
|
+
* @param {string} generalArticleId
|
|
2465
|
+
* @param {string} sourceId
|
|
2466
|
+
* @param {*} [options] Override http request option.
|
|
2467
|
+
* @throws {RequiredError}
|
|
2468
|
+
*/
|
|
2469
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete: function (generalArticleId, sourceId, options) {
|
|
2470
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete(generalArticleId, sourceId, options).then(function (request) { return request(axios, basePath); });
|
|
2471
|
+
},
|
|
2472
|
+
/**
|
|
2473
|
+
*
|
|
2474
|
+
* @summary Get GeneralArticleSource (Auth policies: RequireContentManagerRole)
|
|
2475
|
+
* @param {string} generalArticleId
|
|
2476
|
+
* @param {string} sourceId
|
|
2477
|
+
* @param {*} [options] Override http request option.
|
|
2478
|
+
* @throws {RequiredError}
|
|
2479
|
+
*/
|
|
2480
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet: function (generalArticleId, sourceId, options) {
|
|
2481
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet(generalArticleId, sourceId, options).then(function (request) { return request(axios, basePath); });
|
|
2482
|
+
},
|
|
2483
|
+
/**
|
|
2484
|
+
*
|
|
2485
|
+
* @summary Update generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
2486
|
+
* @param {string} generalArticleId
|
|
2487
|
+
* @param {string} sourceId
|
|
2488
|
+
* @param {UpdateGeneralArticleSourceCommand} [updateGeneralArticleSourceCommand]
|
|
2489
|
+
* @param {*} [options] Override http request option.
|
|
2490
|
+
* @throws {RequiredError}
|
|
2491
|
+
*/
|
|
2492
|
+
apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut: function (generalArticleId, sourceId, updateGeneralArticleSourceCommand, options) {
|
|
2493
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut(generalArticleId, sourceId, updateGeneralArticleSourceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2494
|
+
},
|
|
2495
|
+
/**
|
|
2496
|
+
*
|
|
2497
|
+
* @summary Get generalArticleTags (Auth policies: RequireContentManagerRole)
|
|
2498
|
+
* @param {string} generalArticleId
|
|
2499
|
+
* @param {string} [tagId]
|
|
2500
|
+
* @param {number} [page]
|
|
2501
|
+
* @param {number} [limit]
|
|
2502
|
+
* @param {Date} [lastRetrieved]
|
|
2503
|
+
* @param {*} [options] Override http request option.
|
|
2504
|
+
* @throws {RequiredError}
|
|
2505
|
+
*/
|
|
2506
|
+
apiV1GeneralarticlesGeneralArticleIdTagsGet: function (generalArticleId, tagId, page, limit, lastRetrieved, options) {
|
|
2507
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdTagsGet(generalArticleId, tagId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2508
|
+
},
|
|
2509
|
+
/**
|
|
2510
|
+
*
|
|
2511
|
+
* @summary Create generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2512
|
+
* @param {string} generalArticleId
|
|
2513
|
+
* @param {CreateGeneralArticleTagCommand} [createGeneralArticleTagCommand]
|
|
2514
|
+
* @param {*} [options] Override http request option.
|
|
2515
|
+
* @throws {RequiredError}
|
|
2516
|
+
*/
|
|
2517
|
+
apiV1GeneralarticlesGeneralArticleIdTagsPost: function (generalArticleId, createGeneralArticleTagCommand, options) {
|
|
2518
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdTagsPost(generalArticleId, createGeneralArticleTagCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2519
|
+
},
|
|
2520
|
+
/**
|
|
2521
|
+
*
|
|
2522
|
+
* @summary Delete generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2523
|
+
* @param {string} generalArticleId
|
|
2524
|
+
* @param {string} tagId
|
|
2525
|
+
* @param {*} [options] Override http request option.
|
|
2526
|
+
* @throws {RequiredError}
|
|
2527
|
+
*/
|
|
2528
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete: function (generalArticleId, tagId, options) {
|
|
2529
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete(generalArticleId, tagId, options).then(function (request) { return request(axios, basePath); });
|
|
2530
|
+
},
|
|
2531
|
+
/**
|
|
2532
|
+
*
|
|
2533
|
+
* @summary Get generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2534
|
+
* @param {string} generalArticleId
|
|
2535
|
+
* @param {string} tagId
|
|
2536
|
+
* @param {*} [options] Override http request option.
|
|
2537
|
+
* @throws {RequiredError}
|
|
2538
|
+
*/
|
|
2539
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet: function (generalArticleId, tagId, options) {
|
|
2540
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet(generalArticleId, tagId, options).then(function (request) { return request(axios, basePath); });
|
|
2541
|
+
},
|
|
2542
|
+
/**
|
|
2543
|
+
*
|
|
2544
|
+
* @summary Update generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2545
|
+
* @param {string} generalArticleId
|
|
2546
|
+
* @param {string} tagId
|
|
2547
|
+
* @param {UpdateGeneralArticleTagCommand} [updateGeneralArticleTagCommand]
|
|
2548
|
+
* @param {*} [options] Override http request option.
|
|
2549
|
+
* @throws {RequiredError}
|
|
2550
|
+
*/
|
|
2551
|
+
apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut: function (generalArticleId, tagId, updateGeneralArticleTagCommand, options) {
|
|
2552
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut(generalArticleId, tagId, updateGeneralArticleTagCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2553
|
+
},
|
|
2554
|
+
/**
|
|
2555
|
+
*
|
|
2556
|
+
* @summary Translate generalArticle (Auth policies: RequireContentManagerRole)
|
|
2557
|
+
* @param {string} generalArticleId
|
|
2558
|
+
* @param {TranslateGeneralArticleCommand} [translateGeneralArticleCommand]
|
|
2559
|
+
* @param {*} [options] Override http request option.
|
|
2560
|
+
* @throws {RequiredError}
|
|
2561
|
+
*/
|
|
2562
|
+
apiV1GeneralarticlesGeneralArticleIdTranslatePost: function (generalArticleId, translateGeneralArticleCommand, options) {
|
|
2563
|
+
return localVarFp.apiV1GeneralarticlesGeneralArticleIdTranslatePost(generalArticleId, translateGeneralArticleCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2564
|
+
},
|
|
2565
|
+
/**
|
|
2566
|
+
*
|
|
2567
|
+
* @summary Get all generalArticles (Auth policies: RequireContentManagerRole)
|
|
2568
|
+
* @param {string} [id]
|
|
2569
|
+
* @param {string} [name]
|
|
2570
|
+
* @param {string} [description]
|
|
2571
|
+
* @param {ArticleType} [articleType]
|
|
2572
|
+
* @param {ArticleStatus} [status]
|
|
2573
|
+
* @param {string} [userId]
|
|
2574
|
+
* @param {string} [userName]
|
|
2575
|
+
* @param {string} [hospitalId]
|
|
2576
|
+
* @param {string} [hospitalName]
|
|
2577
|
+
* @param {string} [countryId]
|
|
2578
|
+
* @param {string} [tag]
|
|
2579
|
+
* @param {string} [exceptArticleId]
|
|
2580
|
+
* @param {string} [exceptHospitalId]
|
|
2581
|
+
* @param {string} [contributorId]
|
|
2582
|
+
* @param {string} [articleCategoryId]
|
|
2583
|
+
* @param {string} [languageCode]
|
|
2584
|
+
* @param {boolean} [showHidden]
|
|
2585
|
+
* @param {number} [page]
|
|
2586
|
+
* @param {number} [limit]
|
|
2587
|
+
* @param {Date} [lastRetrieved]
|
|
2588
|
+
* @param {*} [options] Override http request option.
|
|
2589
|
+
* @throws {RequiredError}
|
|
2590
|
+
*/
|
|
2591
|
+
apiV1GeneralarticlesGet: function (id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
2592
|
+
return localVarFp.apiV1GeneralarticlesGet(id, name, description, articleType, status, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, articleCategoryId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2593
|
+
},
|
|
2594
|
+
/**
|
|
2595
|
+
*
|
|
2596
|
+
* @summary Create generalArticle (Auth policies: RequireContentManagerRole)
|
|
2597
|
+
* @param {CreateGeneralArticleCommand} [createGeneralArticleCommand]
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
apiV1GeneralarticlesPost: function (createGeneralArticleCommand, options) {
|
|
2602
|
+
return localVarFp.apiV1GeneralarticlesPost(createGeneralArticleCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2603
|
+
},
|
|
2604
|
+
};
|
|
2605
|
+
};
|
|
2606
|
+
exports.GeneralArticlesApiFactory = GeneralArticlesApiFactory;
|
|
2607
|
+
/**
|
|
2608
|
+
* GeneralArticlesApi - object-oriented interface
|
|
2609
|
+
* @export
|
|
2610
|
+
* @class GeneralArticlesApi
|
|
2611
|
+
* @extends {BaseAPI}
|
|
2612
|
+
*/
|
|
2613
|
+
var GeneralArticlesApi = /** @class */ (function (_super) {
|
|
2614
|
+
__extends(GeneralArticlesApi, _super);
|
|
2615
|
+
function GeneralArticlesApi() {
|
|
2616
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2617
|
+
}
|
|
2618
|
+
/**
|
|
2619
|
+
*
|
|
2620
|
+
* @summary Delete GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
2621
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDeleteRequest} requestParameters Request parameters.
|
|
2622
|
+
* @param {*} [options] Override http request option.
|
|
2623
|
+
* @throws {RequiredError}
|
|
2624
|
+
* @memberof GeneralArticlesApi
|
|
2625
|
+
*/
|
|
2626
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete = function (requestParameters, options) {
|
|
2627
|
+
var _this = this;
|
|
2628
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdDelete(requestParameters.generalArticleId, requestParameters.contributorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2629
|
+
};
|
|
2630
|
+
/**
|
|
2631
|
+
*
|
|
2632
|
+
* @summary Get GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
2633
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGetRequest} requestParameters Request parameters.
|
|
2634
|
+
* @param {*} [options] Override http request option.
|
|
2635
|
+
* @throws {RequiredError}
|
|
2636
|
+
* @memberof GeneralArticlesApi
|
|
2637
|
+
*/
|
|
2638
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet = function (requestParameters, options) {
|
|
2639
|
+
var _this = this;
|
|
2640
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdGet(requestParameters.generalArticleId, requestParameters.contributorId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2641
|
+
};
|
|
2642
|
+
/**
|
|
2643
|
+
*
|
|
2644
|
+
* @summary Create GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
2645
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPostRequest} requestParameters Request parameters.
|
|
2646
|
+
* @param {*} [options] Override http request option.
|
|
2647
|
+
* @throws {RequiredError}
|
|
2648
|
+
* @memberof GeneralArticlesApi
|
|
2649
|
+
*/
|
|
2650
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost = function (requestParameters, options) {
|
|
2651
|
+
var _this = this;
|
|
2652
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPost(requestParameters.generalArticleId, requestParameters.contributorId, requestParameters.createGeneralArticleContributorCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2653
|
+
};
|
|
2654
|
+
/**
|
|
2655
|
+
*
|
|
2656
|
+
* @summary Update GeneralArticleContributor (Auth policies: RequireContentManagerRole)
|
|
2657
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPutRequest} requestParameters Request parameters.
|
|
2658
|
+
* @param {*} [options] Override http request option.
|
|
2659
|
+
* @throws {RequiredError}
|
|
2660
|
+
* @memberof GeneralArticlesApi
|
|
2661
|
+
*/
|
|
2662
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut = function (requestParameters, options) {
|
|
2663
|
+
var _this = this;
|
|
2664
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdContributorsContributorIdPut(requestParameters.generalArticleId, requestParameters.contributorId, requestParameters.updateGeneralArticleContributorCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2665
|
+
};
|
|
2666
|
+
/**
|
|
2667
|
+
*
|
|
2668
|
+
* @summary Get GeneralArticleContributors (Auth policies: RequireContentManagerRole)
|
|
2669
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdContributorsGetRequest} requestParameters Request parameters.
|
|
2670
|
+
* @param {*} [options] Override http request option.
|
|
2671
|
+
* @throws {RequiredError}
|
|
2672
|
+
* @memberof GeneralArticlesApi
|
|
2673
|
+
*/
|
|
2674
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdContributorsGet = function (requestParameters, options) {
|
|
2675
|
+
var _this = this;
|
|
2676
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdContributorsGet(requestParameters.generalArticleId, requestParameters.languageCode, requestParameters.contributorId, requestParameters.contributorName, requestParameters.email, requestParameters.website, requestParameters.contributionType, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2677
|
+
};
|
|
2678
|
+
/**
|
|
2679
|
+
*
|
|
2680
|
+
* @summary Delete generalArticle (Auth policies: RequireContentManagerRole)
|
|
2681
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdDeleteRequest} requestParameters Request parameters.
|
|
2682
|
+
* @param {*} [options] Override http request option.
|
|
2683
|
+
* @throws {RequiredError}
|
|
2684
|
+
* @memberof GeneralArticlesApi
|
|
2685
|
+
*/
|
|
2686
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdDelete = function (requestParameters, options) {
|
|
2687
|
+
var _this = this;
|
|
2688
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdDelete(requestParameters.generalArticleId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2689
|
+
};
|
|
2690
|
+
/**
|
|
2691
|
+
*
|
|
2692
|
+
* @summary Get generalArticle by id (Auth policies: RequireContentManagerRole)
|
|
2693
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdGetRequest} requestParameters Request parameters.
|
|
2694
|
+
* @param {*} [options] Override http request option.
|
|
2695
|
+
* @throws {RequiredError}
|
|
2696
|
+
* @memberof GeneralArticlesApi
|
|
2697
|
+
*/
|
|
2698
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdGet = function (requestParameters, options) {
|
|
2699
|
+
var _this = this;
|
|
2700
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdGet(requestParameters.generalArticleId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2701
|
+
};
|
|
2702
|
+
/**
|
|
2703
|
+
*
|
|
2704
|
+
* @summary Get generalArticleMedias (Auth policies: RequireContentManagerRole)
|
|
2705
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdMediasGetRequest} requestParameters Request parameters.
|
|
2706
|
+
* @param {*} [options] Override http request option.
|
|
2707
|
+
* @throws {RequiredError}
|
|
2708
|
+
* @memberof GeneralArticlesApi
|
|
2709
|
+
*/
|
|
2710
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdMediasGet = function (requestParameters, options) {
|
|
2711
|
+
var _this = this;
|
|
2712
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdMediasGet(requestParameters.generalArticleId, requestParameters.id, requestParameters.mediaType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2713
|
+
};
|
|
2714
|
+
/**
|
|
2715
|
+
*
|
|
2716
|
+
* @summary Delete generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
2717
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdMediasMediaIdDeleteRequest} requestParameters Request parameters.
|
|
2718
|
+
* @param {*} [options] Override http request option.
|
|
2719
|
+
* @throws {RequiredError}
|
|
2720
|
+
* @memberof GeneralArticlesApi
|
|
2721
|
+
*/
|
|
2722
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete = function (requestParameters, options) {
|
|
2723
|
+
var _this = this;
|
|
2724
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdMediasMediaIdDelete(requestParameters.generalArticleId, requestParameters.mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2725
|
+
};
|
|
2726
|
+
/**
|
|
2727
|
+
*
|
|
2728
|
+
* @summary Get generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
2729
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdMediasMediaIdGetRequest} requestParameters Request parameters.
|
|
2730
|
+
* @param {*} [options] Override http request option.
|
|
2731
|
+
* @throws {RequiredError}
|
|
2732
|
+
* @memberof GeneralArticlesApi
|
|
2733
|
+
*/
|
|
2734
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet = function (requestParameters, options) {
|
|
2735
|
+
var _this = this;
|
|
2736
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdMediasMediaIdGet(requestParameters.generalArticleId, requestParameters.mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2737
|
+
};
|
|
2738
|
+
/**
|
|
2739
|
+
*
|
|
2740
|
+
* @summary Update generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
2741
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdMediasMediaIdPutRequest} requestParameters Request parameters.
|
|
2742
|
+
* @param {*} [options] Override http request option.
|
|
2743
|
+
* @throws {RequiredError}
|
|
2744
|
+
* @memberof GeneralArticlesApi
|
|
2745
|
+
*/
|
|
2746
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut = function (requestParameters, options) {
|
|
2747
|
+
var _this = this;
|
|
2748
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdMediasMediaIdPut(requestParameters.generalArticleId, requestParameters.mediaId, requestParameters.updateGeneralArticleMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2749
|
+
};
|
|
2750
|
+
/**
|
|
2751
|
+
*
|
|
2752
|
+
* @summary Create generalArticleMedia (Auth policies: RequireContentManagerRole)
|
|
2753
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdMediasPostRequest} requestParameters Request parameters.
|
|
2754
|
+
* @param {*} [options] Override http request option.
|
|
2755
|
+
* @throws {RequiredError}
|
|
2756
|
+
* @memberof GeneralArticlesApi
|
|
2757
|
+
*/
|
|
2758
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdMediasPost = function (requestParameters, options) {
|
|
2759
|
+
var _this = this;
|
|
2760
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdMediasPost(requestParameters.generalArticleId, requestParameters.createGeneralArticleMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2761
|
+
};
|
|
2762
|
+
/**
|
|
2763
|
+
*
|
|
2764
|
+
* @summary Update generalArticle (Auth policies: RequireContentManagerRole)
|
|
2765
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdPutRequest} requestParameters Request parameters.
|
|
2766
|
+
* @param {*} [options] Override http request option.
|
|
2767
|
+
* @throws {RequiredError}
|
|
2768
|
+
* @memberof GeneralArticlesApi
|
|
2769
|
+
*/
|
|
2770
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdPut = function (requestParameters, options) {
|
|
2771
|
+
var _this = this;
|
|
2772
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdPut(requestParameters.generalArticleId, requestParameters.updateGeneralArticleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2773
|
+
};
|
|
2774
|
+
/**
|
|
2775
|
+
*
|
|
2776
|
+
* @summary Reactivate generalArticle (Auth policies: RequireContentManagerRole)
|
|
2777
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdReactivatePutRequest} requestParameters Request parameters.
|
|
2778
|
+
* @param {*} [options] Override http request option.
|
|
2779
|
+
* @throws {RequiredError}
|
|
2780
|
+
* @memberof GeneralArticlesApi
|
|
2781
|
+
*/
|
|
2782
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdReactivatePut = function (requestParameters, options) {
|
|
2783
|
+
var _this = this;
|
|
2784
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdReactivatePut(requestParameters.generalArticleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2785
|
+
};
|
|
2786
|
+
/**
|
|
2787
|
+
*
|
|
2788
|
+
* @summary Get generalArticleSources (Auth policies: RequireContentManagerRole)
|
|
2789
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdSourcesGetRequest} requestParameters Request parameters.
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
* @memberof GeneralArticlesApi
|
|
2793
|
+
*/
|
|
2794
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdSourcesGet = function (requestParameters, options) {
|
|
2795
|
+
var _this = this;
|
|
2796
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdSourcesGet(requestParameters.generalArticleId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2797
|
+
};
|
|
2798
|
+
/**
|
|
2799
|
+
*
|
|
2800
|
+
* @summary Create generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
2801
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdSourcesPostRequest} requestParameters Request parameters.
|
|
2802
|
+
* @param {*} [options] Override http request option.
|
|
2803
|
+
* @throws {RequiredError}
|
|
2804
|
+
* @memberof GeneralArticlesApi
|
|
2805
|
+
*/
|
|
2806
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdSourcesPost = function (requestParameters, options) {
|
|
2807
|
+
var _this = this;
|
|
2808
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdSourcesPost(requestParameters.generalArticleId, requestParameters.createGeneralArticleSourceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2809
|
+
};
|
|
2810
|
+
/**
|
|
2811
|
+
*
|
|
2812
|
+
* @summary Delete generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
2813
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDeleteRequest} requestParameters Request parameters.
|
|
2814
|
+
* @param {*} [options] Override http request option.
|
|
2815
|
+
* @throws {RequiredError}
|
|
2816
|
+
* @memberof GeneralArticlesApi
|
|
2817
|
+
*/
|
|
2818
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete = function (requestParameters, options) {
|
|
2819
|
+
var _this = this;
|
|
2820
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdDelete(requestParameters.generalArticleId, requestParameters.sourceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2821
|
+
};
|
|
2822
|
+
/**
|
|
2823
|
+
*
|
|
2824
|
+
* @summary Get GeneralArticleSource (Auth policies: RequireContentManagerRole)
|
|
2825
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGetRequest} requestParameters Request parameters.
|
|
2826
|
+
* @param {*} [options] Override http request option.
|
|
2827
|
+
* @throws {RequiredError}
|
|
2828
|
+
* @memberof GeneralArticlesApi
|
|
2829
|
+
*/
|
|
2830
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet = function (requestParameters, options) {
|
|
2831
|
+
var _this = this;
|
|
2832
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdGet(requestParameters.generalArticleId, requestParameters.sourceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2833
|
+
};
|
|
2834
|
+
/**
|
|
2835
|
+
*
|
|
2836
|
+
* @summary Update generalArticleSource (Auth policies: RequireContentManagerRole)
|
|
2837
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPutRequest} requestParameters Request parameters.
|
|
2838
|
+
* @param {*} [options] Override http request option.
|
|
2839
|
+
* @throws {RequiredError}
|
|
2840
|
+
* @memberof GeneralArticlesApi
|
|
2841
|
+
*/
|
|
2842
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut = function (requestParameters, options) {
|
|
2843
|
+
var _this = this;
|
|
2844
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdSourcesSourceIdPut(requestParameters.generalArticleId, requestParameters.sourceId, requestParameters.updateGeneralArticleSourceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2845
|
+
};
|
|
2846
|
+
/**
|
|
2847
|
+
*
|
|
2848
|
+
* @summary Get generalArticleTags (Auth policies: RequireContentManagerRole)
|
|
2849
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdTagsGetRequest} requestParameters Request parameters.
|
|
2850
|
+
* @param {*} [options] Override http request option.
|
|
2851
|
+
* @throws {RequiredError}
|
|
2852
|
+
* @memberof GeneralArticlesApi
|
|
2853
|
+
*/
|
|
2854
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdTagsGet = function (requestParameters, options) {
|
|
2855
|
+
var _this = this;
|
|
2856
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdTagsGet(requestParameters.generalArticleId, requestParameters.tagId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2857
|
+
};
|
|
2858
|
+
/**
|
|
2859
|
+
*
|
|
2860
|
+
* @summary Create generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2861
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdTagsPostRequest} requestParameters Request parameters.
|
|
2862
|
+
* @param {*} [options] Override http request option.
|
|
2863
|
+
* @throws {RequiredError}
|
|
2864
|
+
* @memberof GeneralArticlesApi
|
|
2865
|
+
*/
|
|
2866
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdTagsPost = function (requestParameters, options) {
|
|
2867
|
+
var _this = this;
|
|
2868
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdTagsPost(requestParameters.generalArticleId, requestParameters.createGeneralArticleTagCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2869
|
+
};
|
|
2870
|
+
/**
|
|
2871
|
+
*
|
|
2872
|
+
* @summary Delete generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2873
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdTagsTagIdDeleteRequest} requestParameters Request parameters.
|
|
2874
|
+
* @param {*} [options] Override http request option.
|
|
2875
|
+
* @throws {RequiredError}
|
|
2876
|
+
* @memberof GeneralArticlesApi
|
|
2877
|
+
*/
|
|
2878
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete = function (requestParameters, options) {
|
|
2879
|
+
var _this = this;
|
|
2880
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdTagsTagIdDelete(requestParameters.generalArticleId, requestParameters.tagId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2881
|
+
};
|
|
2882
|
+
/**
|
|
2883
|
+
*
|
|
2884
|
+
* @summary Get generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2885
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdTagsTagIdGetRequest} requestParameters Request parameters.
|
|
2886
|
+
* @param {*} [options] Override http request option.
|
|
2887
|
+
* @throws {RequiredError}
|
|
2888
|
+
* @memberof GeneralArticlesApi
|
|
2889
|
+
*/
|
|
2890
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet = function (requestParameters, options) {
|
|
2891
|
+
var _this = this;
|
|
2892
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdTagsTagIdGet(requestParameters.generalArticleId, requestParameters.tagId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2893
|
+
};
|
|
2894
|
+
/**
|
|
2895
|
+
*
|
|
2896
|
+
* @summary Update generalArticleTag (Auth policies: RequireContentManagerRole)
|
|
2897
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdTagsTagIdPutRequest} requestParameters Request parameters.
|
|
2898
|
+
* @param {*} [options] Override http request option.
|
|
2899
|
+
* @throws {RequiredError}
|
|
2900
|
+
* @memberof GeneralArticlesApi
|
|
2901
|
+
*/
|
|
2902
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut = function (requestParameters, options) {
|
|
2903
|
+
var _this = this;
|
|
2904
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdTagsTagIdPut(requestParameters.generalArticleId, requestParameters.tagId, requestParameters.updateGeneralArticleTagCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2905
|
+
};
|
|
2906
|
+
/**
|
|
2907
|
+
*
|
|
2908
|
+
* @summary Translate generalArticle (Auth policies: RequireContentManagerRole)
|
|
2909
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGeneralArticleIdTranslatePostRequest} requestParameters Request parameters.
|
|
2910
|
+
* @param {*} [options] Override http request option.
|
|
2911
|
+
* @throws {RequiredError}
|
|
2912
|
+
* @memberof GeneralArticlesApi
|
|
2913
|
+
*/
|
|
2914
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGeneralArticleIdTranslatePost = function (requestParameters, options) {
|
|
2915
|
+
var _this = this;
|
|
2916
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGeneralArticleIdTranslatePost(requestParameters.generalArticleId, requestParameters.translateGeneralArticleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2917
|
+
};
|
|
2918
|
+
/**
|
|
2919
|
+
*
|
|
2920
|
+
* @summary Get all generalArticles (Auth policies: RequireContentManagerRole)
|
|
2921
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesGetRequest} requestParameters Request parameters.
|
|
2922
|
+
* @param {*} [options] Override http request option.
|
|
2923
|
+
* @throws {RequiredError}
|
|
2924
|
+
* @memberof GeneralArticlesApi
|
|
2925
|
+
*/
|
|
2926
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesGet = function (requestParameters, options) {
|
|
2927
|
+
var _this = this;
|
|
2928
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2929
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesGet(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.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2930
|
+
};
|
|
2931
|
+
/**
|
|
2932
|
+
*
|
|
2933
|
+
* @summary Create generalArticle (Auth policies: RequireContentManagerRole)
|
|
2934
|
+
* @param {GeneralArticlesApiApiV1GeneralarticlesPostRequest} requestParameters Request parameters.
|
|
2935
|
+
* @param {*} [options] Override http request option.
|
|
2936
|
+
* @throws {RequiredError}
|
|
2937
|
+
* @memberof GeneralArticlesApi
|
|
2938
|
+
*/
|
|
2939
|
+
GeneralArticlesApi.prototype.apiV1GeneralarticlesPost = function (requestParameters, options) {
|
|
2940
|
+
var _this = this;
|
|
2941
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2942
|
+
return (0, exports.GeneralArticlesApiFp)(this.configuration).apiV1GeneralarticlesPost(requestParameters.createGeneralArticleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2943
|
+
};
|
|
2944
|
+
return GeneralArticlesApi;
|
|
2945
|
+
}(base_1.BaseAPI));
|
|
2946
|
+
exports.GeneralArticlesApi = GeneralArticlesApi;
|