ch-admin-api-client-typescript 5.88.27 → 5.88.31
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/badge-categories-api.d.ts +384 -0
- package/lib/api/badge-categories-api.d.ts.map +1 -0
- package/lib/api/badge-categories-api.js +718 -0
- package/lib/api/badges-api.d.ts +557 -0
- package/lib/api/badges-api.d.ts.map +1 -0
- package/lib/api/badges-api.js +950 -0
- package/lib/api/platform-interpretation-languages-api.d.ts +375 -0
- package/lib/api/platform-interpretation-languages-api.d.ts.map +1 -0
- package/lib/api/platform-interpretation-languages-api.js +712 -0
- package/lib/api.d.ts +3 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +3 -0
- package/lib/models/badge-categories-model.d.ts +33 -0
- package/lib/models/badge-categories-model.d.ts.map +1 -0
- package/lib/models/badge-categories-model.js +15 -0
- package/lib/models/badge-category-item-model.d.ts +44 -0
- package/lib/models/badge-category-item-model.d.ts.map +1 -0
- package/lib/models/badge-category-item-model.js +15 -0
- package/lib/models/badge-category-model.d.ts +44 -0
- package/lib/models/badge-category-model.d.ts.map +1 -0
- package/lib/models/badge-category-model.js +15 -0
- package/lib/models/badge-item-model.d.ts +110 -0
- package/lib/models/badge-item-model.d.ts.map +1 -0
- package/lib/models/badge-item-model.js +15 -0
- package/lib/models/badge-model.d.ts +123 -0
- package/lib/models/badge-model.d.ts.map +1 -0
- package/lib/models/badge-model.js +15 -0
- package/lib/models/badges-model.d.ts +33 -0
- package/lib/models/badges-model.d.ts.map +1 -0
- package/lib/models/badges-model.js +15 -0
- package/lib/models/country-simple-item-model.d.ts +6 -0
- package/lib/models/country-simple-item-model.d.ts.map +1 -1
- package/lib/models/create-badge-category-command.d.ts +31 -0
- package/lib/models/create-badge-category-command.d.ts.map +1 -0
- package/lib/models/create-badge-category-command.js +15 -0
- package/lib/models/create-badge-command.d.ts +115 -0
- package/lib/models/create-badge-command.d.ts.map +1 -0
- package/lib/models/create-badge-command.js +15 -0
- package/lib/models/create-platform-interpretation-language-command.d.ts +37 -0
- package/lib/models/create-platform-interpretation-language-command.d.ts.map +1 -0
- package/lib/models/create-platform-interpretation-language-command.js +15 -0
- package/lib/models/index.d.ts +15 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +15 -0
- package/lib/models/platform-interpretation-language-item-model.d.ts +56 -0
- package/lib/models/platform-interpretation-language-item-model.d.ts.map +1 -0
- package/lib/models/platform-interpretation-language-item-model.js +15 -0
- package/lib/models/platform-interpretation-language-model.d.ts +56 -0
- package/lib/models/platform-interpretation-language-model.d.ts.map +1 -0
- package/lib/models/platform-interpretation-language-model.js +15 -0
- package/lib/models/platform-interpretation-languages-model.d.ts +33 -0
- package/lib/models/platform-interpretation-languages-model.d.ts.map +1 -0
- package/lib/models/platform-interpretation-languages-model.js +15 -0
- package/lib/models/update-badge-category-command.d.ts +31 -0
- package/lib/models/update-badge-category-command.d.ts.map +1 -0
- package/lib/models/update-badge-category-command.js +15 -0
- package/lib/models/update-badge-command.d.ts +121 -0
- package/lib/models/update-badge-command.d.ts.map +1 -0
- package/lib/models/update-badge-command.js +15 -0
- package/lib/models/update-platform-interpretation-language-command.d.ts +31 -0
- package/lib/models/update-platform-interpretation-language-command.d.ts.map +1 -0
- package/lib/models/update-platform-interpretation-language-command.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,950 @@
|
|
|
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.BadgesApi = exports.BadgesApiFactory = exports.BadgesApiFp = exports.BadgesApiAxiosParamCreator = 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
|
+
* BadgesApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var BadgesApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Delete badge (Auth policies: RequireContentManagerRole)
|
|
107
|
+
* @param {string} badgeId
|
|
108
|
+
* @param {boolean} [isPermanent]
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
apiV1BadgesBadgeIdDelete: function (badgeId_1, isPermanent_1) {
|
|
113
|
+
var args_1 = [];
|
|
114
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
115
|
+
args_1[_i - 2] = arguments[_i];
|
|
116
|
+
}
|
|
117
|
+
return __awaiter(_this, __spreadArray([badgeId_1, isPermanent_1], args_1, true), void 0, function (badgeId, isPermanent, options) {
|
|
118
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
+
if (options === void 0) { options = {}; }
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0:
|
|
123
|
+
// verify required parameter 'badgeId' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('apiV1BadgesBadgeIdDelete', 'badgeId', badgeId);
|
|
125
|
+
localVarPath = "/api/v1/badges/{badgeId}"
|
|
126
|
+
.replace("{".concat("badgeId", "}"), encodeURIComponent(String(badgeId)));
|
|
127
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
132
|
+
localVarHeaderParameter = {};
|
|
133
|
+
localVarQueryParameter = {};
|
|
134
|
+
// authentication oauth2 required
|
|
135
|
+
// oauth required
|
|
136
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
137
|
+
case 1:
|
|
138
|
+
// authentication oauth2 required
|
|
139
|
+
// oauth required
|
|
140
|
+
_a.sent();
|
|
141
|
+
if (isPermanent !== undefined) {
|
|
142
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
143
|
+
}
|
|
144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary Remove excluded country from badge (Auth policies: RequireContentManagerRole)
|
|
158
|
+
* @param {string} badgeId
|
|
159
|
+
* @param {string} countryId
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete: function (badgeId_1, countryId_1) {
|
|
164
|
+
var args_1 = [];
|
|
165
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
166
|
+
args_1[_i - 2] = arguments[_i];
|
|
167
|
+
}
|
|
168
|
+
return __awaiter(_this, __spreadArray([badgeId_1, countryId_1], args_1, true), void 0, function (badgeId, countryId, options) {
|
|
169
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
170
|
+
if (options === void 0) { options = {}; }
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0:
|
|
174
|
+
// verify required parameter 'badgeId' is not null or undefined
|
|
175
|
+
(0, common_1.assertParamExists)('apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete', 'badgeId', badgeId);
|
|
176
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
177
|
+
(0, common_1.assertParamExists)('apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete', 'countryId', countryId);
|
|
178
|
+
localVarPath = "/api/v1/badges/{badgeId}/excludedcountries/{countryId}"
|
|
179
|
+
.replace("{".concat("badgeId", "}"), encodeURIComponent(String(badgeId)))
|
|
180
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)));
|
|
181
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
182
|
+
if (configuration) {
|
|
183
|
+
baseOptions = configuration.baseOptions;
|
|
184
|
+
}
|
|
185
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
186
|
+
localVarHeaderParameter = {};
|
|
187
|
+
localVarQueryParameter = {};
|
|
188
|
+
// authentication oauth2 required
|
|
189
|
+
// oauth required
|
|
190
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
191
|
+
case 1:
|
|
192
|
+
// authentication oauth2 required
|
|
193
|
+
// oauth required
|
|
194
|
+
_a.sent();
|
|
195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
197
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
198
|
+
return [2 /*return*/, {
|
|
199
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
}];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary Add excluded country to badge (Auth policies: RequireContentManagerRole)
|
|
209
|
+
* @param {string} badgeId
|
|
210
|
+
* @param {string} countryId
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
apiV1BadgesBadgeIdExcludedcountriesCountryIdPost: function (badgeId_1, countryId_1) {
|
|
215
|
+
var args_1 = [];
|
|
216
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
217
|
+
args_1[_i - 2] = arguments[_i];
|
|
218
|
+
}
|
|
219
|
+
return __awaiter(_this, __spreadArray([badgeId_1, countryId_1], args_1, true), void 0, function (badgeId, countryId, options) {
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
221
|
+
if (options === void 0) { options = {}; }
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
|
+
case 0:
|
|
225
|
+
// verify required parameter 'badgeId' is not null or undefined
|
|
226
|
+
(0, common_1.assertParamExists)('apiV1BadgesBadgeIdExcludedcountriesCountryIdPost', 'badgeId', badgeId);
|
|
227
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
228
|
+
(0, common_1.assertParamExists)('apiV1BadgesBadgeIdExcludedcountriesCountryIdPost', 'countryId', countryId);
|
|
229
|
+
localVarPath = "/api/v1/badges/{badgeId}/excludedcountries/{countryId}"
|
|
230
|
+
.replace("{".concat("badgeId", "}"), encodeURIComponent(String(badgeId)))
|
|
231
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)));
|
|
232
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
233
|
+
if (configuration) {
|
|
234
|
+
baseOptions = configuration.baseOptions;
|
|
235
|
+
}
|
|
236
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
237
|
+
localVarHeaderParameter = {};
|
|
238
|
+
localVarQueryParameter = {};
|
|
239
|
+
// authentication oauth2 required
|
|
240
|
+
// oauth required
|
|
241
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
242
|
+
case 1:
|
|
243
|
+
// authentication oauth2 required
|
|
244
|
+
// oauth required
|
|
245
|
+
_a.sent();
|
|
246
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
247
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
249
|
+
return [2 /*return*/, {
|
|
250
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
}];
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @summary Get badge (Auth policies: RequireContentManagerRole)
|
|
260
|
+
* @param {string} badgeId
|
|
261
|
+
* @param {string} [languageCode]
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
apiV1BadgesBadgeIdGet: function (badgeId_1, languageCode_1) {
|
|
266
|
+
var args_1 = [];
|
|
267
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
268
|
+
args_1[_i - 2] = arguments[_i];
|
|
269
|
+
}
|
|
270
|
+
return __awaiter(_this, __spreadArray([badgeId_1, languageCode_1], args_1, true), void 0, function (badgeId, languageCode, options) {
|
|
271
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
272
|
+
if (options === void 0) { options = {}; }
|
|
273
|
+
return __generator(this, function (_a) {
|
|
274
|
+
switch (_a.label) {
|
|
275
|
+
case 0:
|
|
276
|
+
// verify required parameter 'badgeId' is not null or undefined
|
|
277
|
+
(0, common_1.assertParamExists)('apiV1BadgesBadgeIdGet', 'badgeId', badgeId);
|
|
278
|
+
localVarPath = "/api/v1/badges/{badgeId}"
|
|
279
|
+
.replace("{".concat("badgeId", "}"), encodeURIComponent(String(badgeId)));
|
|
280
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
281
|
+
if (configuration) {
|
|
282
|
+
baseOptions = configuration.baseOptions;
|
|
283
|
+
}
|
|
284
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
285
|
+
localVarHeaderParameter = {};
|
|
286
|
+
localVarQueryParameter = {};
|
|
287
|
+
// authentication oauth2 required
|
|
288
|
+
// oauth required
|
|
289
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
290
|
+
case 1:
|
|
291
|
+
// authentication oauth2 required
|
|
292
|
+
// oauth required
|
|
293
|
+
_a.sent();
|
|
294
|
+
if (languageCode !== undefined) {
|
|
295
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
296
|
+
}
|
|
297
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
298
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
300
|
+
return [2 /*return*/, {
|
|
301
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
302
|
+
options: localVarRequestOptions,
|
|
303
|
+
}];
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @summary Update badge (Auth policies: RequireContentManagerRole)
|
|
311
|
+
* @param {string} badgeId
|
|
312
|
+
* @param {UpdateBadgeCommand} [updateBadgeCommand]
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
apiV1BadgesBadgeIdPut: function (badgeId_1, updateBadgeCommand_1) {
|
|
317
|
+
var args_1 = [];
|
|
318
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
319
|
+
args_1[_i - 2] = arguments[_i];
|
|
320
|
+
}
|
|
321
|
+
return __awaiter(_this, __spreadArray([badgeId_1, updateBadgeCommand_1], args_1, true), void 0, function (badgeId, updateBadgeCommand, options) {
|
|
322
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
323
|
+
if (options === void 0) { options = {}; }
|
|
324
|
+
return __generator(this, function (_a) {
|
|
325
|
+
switch (_a.label) {
|
|
326
|
+
case 0:
|
|
327
|
+
// verify required parameter 'badgeId' is not null or undefined
|
|
328
|
+
(0, common_1.assertParamExists)('apiV1BadgesBadgeIdPut', 'badgeId', badgeId);
|
|
329
|
+
localVarPath = "/api/v1/badges/{badgeId}"
|
|
330
|
+
.replace("{".concat("badgeId", "}"), encodeURIComponent(String(badgeId)));
|
|
331
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
332
|
+
if (configuration) {
|
|
333
|
+
baseOptions = configuration.baseOptions;
|
|
334
|
+
}
|
|
335
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
336
|
+
localVarHeaderParameter = {};
|
|
337
|
+
localVarQueryParameter = {};
|
|
338
|
+
// authentication oauth2 required
|
|
339
|
+
// oauth required
|
|
340
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
341
|
+
case 1:
|
|
342
|
+
// authentication oauth2 required
|
|
343
|
+
// oauth required
|
|
344
|
+
_a.sent();
|
|
345
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
346
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
347
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
349
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBadgeCommand, localVarRequestOptions, configuration);
|
|
350
|
+
return [2 /*return*/, {
|
|
351
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
352
|
+
options: localVarRequestOptions,
|
|
353
|
+
}];
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
},
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @summary Reactivate badge (Auth policies: RequireContentManagerRole)
|
|
361
|
+
* @param {string} badgeId
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
apiV1BadgesBadgeIdReactivatePut: function (badgeId_1) {
|
|
366
|
+
var args_1 = [];
|
|
367
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
368
|
+
args_1[_i - 1] = arguments[_i];
|
|
369
|
+
}
|
|
370
|
+
return __awaiter(_this, __spreadArray([badgeId_1], args_1, true), void 0, function (badgeId, options) {
|
|
371
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
372
|
+
if (options === void 0) { options = {}; }
|
|
373
|
+
return __generator(this, function (_a) {
|
|
374
|
+
switch (_a.label) {
|
|
375
|
+
case 0:
|
|
376
|
+
// verify required parameter 'badgeId' is not null or undefined
|
|
377
|
+
(0, common_1.assertParamExists)('apiV1BadgesBadgeIdReactivatePut', 'badgeId', badgeId);
|
|
378
|
+
localVarPath = "/api/v1/badges/{badgeId}/reactivate"
|
|
379
|
+
.replace("{".concat("badgeId", "}"), encodeURIComponent(String(badgeId)));
|
|
380
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
381
|
+
if (configuration) {
|
|
382
|
+
baseOptions = configuration.baseOptions;
|
|
383
|
+
}
|
|
384
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
385
|
+
localVarHeaderParameter = {};
|
|
386
|
+
localVarQueryParameter = {};
|
|
387
|
+
// authentication oauth2 required
|
|
388
|
+
// oauth required
|
|
389
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
390
|
+
case 1:
|
|
391
|
+
// authentication oauth2 required
|
|
392
|
+
// oauth required
|
|
393
|
+
_a.sent();
|
|
394
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
395
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
396
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
397
|
+
return [2 /*return*/, {
|
|
398
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
399
|
+
options: localVarRequestOptions,
|
|
400
|
+
}];
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
* @summary Get badges (Auth policies: RequireContentManagerRole)
|
|
408
|
+
* @param {string} [languageCode]
|
|
409
|
+
* @param {boolean} [showHidden]
|
|
410
|
+
* @param {string} [id]
|
|
411
|
+
* @param {string} [badgeCategoryId]
|
|
412
|
+
* @param {string} [name]
|
|
413
|
+
* @param {boolean} [displayAreaHospital]
|
|
414
|
+
* @param {boolean} [displayAreaDoctor]
|
|
415
|
+
* @param {boolean} [displayAreaDeal]
|
|
416
|
+
* @param {boolean} [published]
|
|
417
|
+
* @param {number} [page]
|
|
418
|
+
* @param {number} [limit]
|
|
419
|
+
* @param {Date} [lastRetrieved]
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
apiV1BadgesGet: function (languageCode_1, showHidden_1, id_1, badgeCategoryId_1, name_1, displayAreaHospital_1, displayAreaDoctor_1, displayAreaDeal_1, published_1, page_1, limit_1, lastRetrieved_1) {
|
|
424
|
+
var args_1 = [];
|
|
425
|
+
for (var _i = 12; _i < arguments.length; _i++) {
|
|
426
|
+
args_1[_i - 12] = arguments[_i];
|
|
427
|
+
}
|
|
428
|
+
return __awaiter(_this, __spreadArray([languageCode_1, showHidden_1, id_1, badgeCategoryId_1, name_1, displayAreaHospital_1, displayAreaDoctor_1, displayAreaDeal_1, published_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, showHidden, id, badgeCategoryId, name, displayAreaHospital, displayAreaDoctor, displayAreaDeal, published, page, limit, lastRetrieved, options) {
|
|
429
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
430
|
+
if (options === void 0) { options = {}; }
|
|
431
|
+
return __generator(this, function (_a) {
|
|
432
|
+
switch (_a.label) {
|
|
433
|
+
case 0:
|
|
434
|
+
localVarPath = "/api/v1/badges";
|
|
435
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
436
|
+
if (configuration) {
|
|
437
|
+
baseOptions = configuration.baseOptions;
|
|
438
|
+
}
|
|
439
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
440
|
+
localVarHeaderParameter = {};
|
|
441
|
+
localVarQueryParameter = {};
|
|
442
|
+
// authentication oauth2 required
|
|
443
|
+
// oauth required
|
|
444
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
445
|
+
case 1:
|
|
446
|
+
// authentication oauth2 required
|
|
447
|
+
// oauth required
|
|
448
|
+
_a.sent();
|
|
449
|
+
if (languageCode !== undefined) {
|
|
450
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
451
|
+
}
|
|
452
|
+
if (showHidden !== undefined) {
|
|
453
|
+
localVarQueryParameter['showHidden'] = showHidden;
|
|
454
|
+
}
|
|
455
|
+
if (id !== undefined) {
|
|
456
|
+
localVarQueryParameter['id'] = id;
|
|
457
|
+
}
|
|
458
|
+
if (badgeCategoryId !== undefined) {
|
|
459
|
+
localVarQueryParameter['badgeCategoryId'] = badgeCategoryId;
|
|
460
|
+
}
|
|
461
|
+
if (name !== undefined) {
|
|
462
|
+
localVarQueryParameter['name'] = name;
|
|
463
|
+
}
|
|
464
|
+
if (displayAreaHospital !== undefined) {
|
|
465
|
+
localVarQueryParameter['displayAreaHospital'] = displayAreaHospital;
|
|
466
|
+
}
|
|
467
|
+
if (displayAreaDoctor !== undefined) {
|
|
468
|
+
localVarQueryParameter['displayAreaDoctor'] = displayAreaDoctor;
|
|
469
|
+
}
|
|
470
|
+
if (displayAreaDeal !== undefined) {
|
|
471
|
+
localVarQueryParameter['displayAreaDeal'] = displayAreaDeal;
|
|
472
|
+
}
|
|
473
|
+
if (published !== undefined) {
|
|
474
|
+
localVarQueryParameter['published'] = published;
|
|
475
|
+
}
|
|
476
|
+
if (page !== undefined) {
|
|
477
|
+
localVarQueryParameter['page'] = page;
|
|
478
|
+
}
|
|
479
|
+
if (limit !== undefined) {
|
|
480
|
+
localVarQueryParameter['limit'] = limit;
|
|
481
|
+
}
|
|
482
|
+
if (lastRetrieved !== undefined) {
|
|
483
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
484
|
+
lastRetrieved.toISOString() :
|
|
485
|
+
lastRetrieved;
|
|
486
|
+
}
|
|
487
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
488
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
489
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
490
|
+
return [2 /*return*/, {
|
|
491
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
492
|
+
options: localVarRequestOptions,
|
|
493
|
+
}];
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
});
|
|
497
|
+
},
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @summary Create badge (Auth policies: RequireContentManagerRole)
|
|
501
|
+
* @param {CreateBadgeCommand} [createBadgeCommand]
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
apiV1BadgesPost: function (createBadgeCommand_1) {
|
|
506
|
+
var args_1 = [];
|
|
507
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
508
|
+
args_1[_i - 1] = arguments[_i];
|
|
509
|
+
}
|
|
510
|
+
return __awaiter(_this, __spreadArray([createBadgeCommand_1], args_1, true), void 0, function (createBadgeCommand, options) {
|
|
511
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
512
|
+
if (options === void 0) { options = {}; }
|
|
513
|
+
return __generator(this, function (_a) {
|
|
514
|
+
switch (_a.label) {
|
|
515
|
+
case 0:
|
|
516
|
+
localVarPath = "/api/v1/badges";
|
|
517
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
518
|
+
if (configuration) {
|
|
519
|
+
baseOptions = configuration.baseOptions;
|
|
520
|
+
}
|
|
521
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
522
|
+
localVarHeaderParameter = {};
|
|
523
|
+
localVarQueryParameter = {};
|
|
524
|
+
// authentication oauth2 required
|
|
525
|
+
// oauth required
|
|
526
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
527
|
+
case 1:
|
|
528
|
+
// authentication oauth2 required
|
|
529
|
+
// oauth required
|
|
530
|
+
_a.sent();
|
|
531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
532
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
533
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
534
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
535
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBadgeCommand, localVarRequestOptions, configuration);
|
|
536
|
+
return [2 /*return*/, {
|
|
537
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
538
|
+
options: localVarRequestOptions,
|
|
539
|
+
}];
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
},
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
exports.BadgesApiAxiosParamCreator = BadgesApiAxiosParamCreator;
|
|
547
|
+
/**
|
|
548
|
+
* BadgesApi - functional programming interface
|
|
549
|
+
* @export
|
|
550
|
+
*/
|
|
551
|
+
var BadgesApiFp = function (configuration) {
|
|
552
|
+
var localVarAxiosParamCreator = (0, exports.BadgesApiAxiosParamCreator)(configuration);
|
|
553
|
+
return {
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @summary Delete badge (Auth policies: RequireContentManagerRole)
|
|
557
|
+
* @param {string} badgeId
|
|
558
|
+
* @param {boolean} [isPermanent]
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
apiV1BadgesBadgeIdDelete: function (badgeId, isPermanent, options) {
|
|
563
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
564
|
+
var localVarAxiosArgs;
|
|
565
|
+
return __generator(this, function (_a) {
|
|
566
|
+
switch (_a.label) {
|
|
567
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgesBadgeIdDelete(badgeId, isPermanent, options)];
|
|
568
|
+
case 1:
|
|
569
|
+
localVarAxiosArgs = _a.sent();
|
|
570
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
},
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @summary Remove excluded country from badge (Auth policies: RequireContentManagerRole)
|
|
578
|
+
* @param {string} badgeId
|
|
579
|
+
* @param {string} countryId
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
*/
|
|
583
|
+
apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete: function (badgeId, countryId, options) {
|
|
584
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
585
|
+
var localVarAxiosArgs;
|
|
586
|
+
return __generator(this, function (_a) {
|
|
587
|
+
switch (_a.label) {
|
|
588
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete(badgeId, countryId, options)];
|
|
589
|
+
case 1:
|
|
590
|
+
localVarAxiosArgs = _a.sent();
|
|
591
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
},
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @summary Add excluded country to badge (Auth policies: RequireContentManagerRole)
|
|
599
|
+
* @param {string} badgeId
|
|
600
|
+
* @param {string} countryId
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
*/
|
|
604
|
+
apiV1BadgesBadgeIdExcludedcountriesCountryIdPost: function (badgeId, countryId, options) {
|
|
605
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
606
|
+
var localVarAxiosArgs;
|
|
607
|
+
return __generator(this, function (_a) {
|
|
608
|
+
switch (_a.label) {
|
|
609
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgesBadgeIdExcludedcountriesCountryIdPost(badgeId, countryId, options)];
|
|
610
|
+
case 1:
|
|
611
|
+
localVarAxiosArgs = _a.sent();
|
|
612
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
});
|
|
616
|
+
},
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @summary Get badge (Auth policies: RequireContentManagerRole)
|
|
620
|
+
* @param {string} badgeId
|
|
621
|
+
* @param {string} [languageCode]
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
apiV1BadgesBadgeIdGet: function (badgeId, languageCode, options) {
|
|
626
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
627
|
+
var localVarAxiosArgs;
|
|
628
|
+
return __generator(this, function (_a) {
|
|
629
|
+
switch (_a.label) {
|
|
630
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgesBadgeIdGet(badgeId, languageCode, options)];
|
|
631
|
+
case 1:
|
|
632
|
+
localVarAxiosArgs = _a.sent();
|
|
633
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
});
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* @summary Update badge (Auth policies: RequireContentManagerRole)
|
|
641
|
+
* @param {string} badgeId
|
|
642
|
+
* @param {UpdateBadgeCommand} [updateBadgeCommand]
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
apiV1BadgesBadgeIdPut: function (badgeId, updateBadgeCommand, options) {
|
|
647
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
648
|
+
var localVarAxiosArgs;
|
|
649
|
+
return __generator(this, function (_a) {
|
|
650
|
+
switch (_a.label) {
|
|
651
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgesBadgeIdPut(badgeId, updateBadgeCommand, options)];
|
|
652
|
+
case 1:
|
|
653
|
+
localVarAxiosArgs = _a.sent();
|
|
654
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
});
|
|
658
|
+
},
|
|
659
|
+
/**
|
|
660
|
+
*
|
|
661
|
+
* @summary Reactivate badge (Auth policies: RequireContentManagerRole)
|
|
662
|
+
* @param {string} badgeId
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
*/
|
|
666
|
+
apiV1BadgesBadgeIdReactivatePut: function (badgeId, options) {
|
|
667
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
668
|
+
var localVarAxiosArgs;
|
|
669
|
+
return __generator(this, function (_a) {
|
|
670
|
+
switch (_a.label) {
|
|
671
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgesBadgeIdReactivatePut(badgeId, options)];
|
|
672
|
+
case 1:
|
|
673
|
+
localVarAxiosArgs = _a.sent();
|
|
674
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
});
|
|
678
|
+
},
|
|
679
|
+
/**
|
|
680
|
+
*
|
|
681
|
+
* @summary Get badges (Auth policies: RequireContentManagerRole)
|
|
682
|
+
* @param {string} [languageCode]
|
|
683
|
+
* @param {boolean} [showHidden]
|
|
684
|
+
* @param {string} [id]
|
|
685
|
+
* @param {string} [badgeCategoryId]
|
|
686
|
+
* @param {string} [name]
|
|
687
|
+
* @param {boolean} [displayAreaHospital]
|
|
688
|
+
* @param {boolean} [displayAreaDoctor]
|
|
689
|
+
* @param {boolean} [displayAreaDeal]
|
|
690
|
+
* @param {boolean} [published]
|
|
691
|
+
* @param {number} [page]
|
|
692
|
+
* @param {number} [limit]
|
|
693
|
+
* @param {Date} [lastRetrieved]
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
apiV1BadgesGet: function (languageCode, showHidden, id, badgeCategoryId, name, displayAreaHospital, displayAreaDoctor, displayAreaDeal, published, page, limit, lastRetrieved, options) {
|
|
698
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
699
|
+
var localVarAxiosArgs;
|
|
700
|
+
return __generator(this, function (_a) {
|
|
701
|
+
switch (_a.label) {
|
|
702
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgesGet(languageCode, showHidden, id, badgeCategoryId, name, displayAreaHospital, displayAreaDoctor, displayAreaDeal, published, page, limit, lastRetrieved, options)];
|
|
703
|
+
case 1:
|
|
704
|
+
localVarAxiosArgs = _a.sent();
|
|
705
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
});
|
|
709
|
+
},
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @summary Create badge (Auth policies: RequireContentManagerRole)
|
|
713
|
+
* @param {CreateBadgeCommand} [createBadgeCommand]
|
|
714
|
+
* @param {*} [options] Override http request option.
|
|
715
|
+
* @throws {RequiredError}
|
|
716
|
+
*/
|
|
717
|
+
apiV1BadgesPost: function (createBadgeCommand, options) {
|
|
718
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
719
|
+
var localVarAxiosArgs;
|
|
720
|
+
return __generator(this, function (_a) {
|
|
721
|
+
switch (_a.label) {
|
|
722
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgesPost(createBadgeCommand, options)];
|
|
723
|
+
case 1:
|
|
724
|
+
localVarAxiosArgs = _a.sent();
|
|
725
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
});
|
|
729
|
+
},
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
exports.BadgesApiFp = BadgesApiFp;
|
|
733
|
+
/**
|
|
734
|
+
* BadgesApi - factory interface
|
|
735
|
+
* @export
|
|
736
|
+
*/
|
|
737
|
+
var BadgesApiFactory = function (configuration, basePath, axios) {
|
|
738
|
+
var localVarFp = (0, exports.BadgesApiFp)(configuration);
|
|
739
|
+
return {
|
|
740
|
+
/**
|
|
741
|
+
*
|
|
742
|
+
* @summary Delete badge (Auth policies: RequireContentManagerRole)
|
|
743
|
+
* @param {string} badgeId
|
|
744
|
+
* @param {boolean} [isPermanent]
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
*/
|
|
748
|
+
apiV1BadgesBadgeIdDelete: function (badgeId, isPermanent, options) {
|
|
749
|
+
return localVarFp.apiV1BadgesBadgeIdDelete(badgeId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
750
|
+
},
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @summary Remove excluded country from badge (Auth policies: RequireContentManagerRole)
|
|
754
|
+
* @param {string} badgeId
|
|
755
|
+
* @param {string} countryId
|
|
756
|
+
* @param {*} [options] Override http request option.
|
|
757
|
+
* @throws {RequiredError}
|
|
758
|
+
*/
|
|
759
|
+
apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete: function (badgeId, countryId, options) {
|
|
760
|
+
return localVarFp.apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete(badgeId, countryId, options).then(function (request) { return request(axios, basePath); });
|
|
761
|
+
},
|
|
762
|
+
/**
|
|
763
|
+
*
|
|
764
|
+
* @summary Add excluded country to badge (Auth policies: RequireContentManagerRole)
|
|
765
|
+
* @param {string} badgeId
|
|
766
|
+
* @param {string} countryId
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
*/
|
|
770
|
+
apiV1BadgesBadgeIdExcludedcountriesCountryIdPost: function (badgeId, countryId, options) {
|
|
771
|
+
return localVarFp.apiV1BadgesBadgeIdExcludedcountriesCountryIdPost(badgeId, countryId, options).then(function (request) { return request(axios, basePath); });
|
|
772
|
+
},
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @summary Get badge (Auth policies: RequireContentManagerRole)
|
|
776
|
+
* @param {string} badgeId
|
|
777
|
+
* @param {string} [languageCode]
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
apiV1BadgesBadgeIdGet: function (badgeId, languageCode, options) {
|
|
782
|
+
return localVarFp.apiV1BadgesBadgeIdGet(badgeId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
783
|
+
},
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @summary Update badge (Auth policies: RequireContentManagerRole)
|
|
787
|
+
* @param {string} badgeId
|
|
788
|
+
* @param {UpdateBadgeCommand} [updateBadgeCommand]
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
apiV1BadgesBadgeIdPut: function (badgeId, updateBadgeCommand, options) {
|
|
793
|
+
return localVarFp.apiV1BadgesBadgeIdPut(badgeId, updateBadgeCommand, options).then(function (request) { return request(axios, basePath); });
|
|
794
|
+
},
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @summary Reactivate badge (Auth policies: RequireContentManagerRole)
|
|
798
|
+
* @param {string} badgeId
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
apiV1BadgesBadgeIdReactivatePut: function (badgeId, options) {
|
|
803
|
+
return localVarFp.apiV1BadgesBadgeIdReactivatePut(badgeId, options).then(function (request) { return request(axios, basePath); });
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @summary Get badges (Auth policies: RequireContentManagerRole)
|
|
808
|
+
* @param {string} [languageCode]
|
|
809
|
+
* @param {boolean} [showHidden]
|
|
810
|
+
* @param {string} [id]
|
|
811
|
+
* @param {string} [badgeCategoryId]
|
|
812
|
+
* @param {string} [name]
|
|
813
|
+
* @param {boolean} [displayAreaHospital]
|
|
814
|
+
* @param {boolean} [displayAreaDoctor]
|
|
815
|
+
* @param {boolean} [displayAreaDeal]
|
|
816
|
+
* @param {boolean} [published]
|
|
817
|
+
* @param {number} [page]
|
|
818
|
+
* @param {number} [limit]
|
|
819
|
+
* @param {Date} [lastRetrieved]
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @throws {RequiredError}
|
|
822
|
+
*/
|
|
823
|
+
apiV1BadgesGet: function (languageCode, showHidden, id, badgeCategoryId, name, displayAreaHospital, displayAreaDoctor, displayAreaDeal, published, page, limit, lastRetrieved, options) {
|
|
824
|
+
return localVarFp.apiV1BadgesGet(languageCode, showHidden, id, badgeCategoryId, name, displayAreaHospital, displayAreaDoctor, displayAreaDeal, published, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
825
|
+
},
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @summary Create badge (Auth policies: RequireContentManagerRole)
|
|
829
|
+
* @param {CreateBadgeCommand} [createBadgeCommand]
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
apiV1BadgesPost: function (createBadgeCommand, options) {
|
|
834
|
+
return localVarFp.apiV1BadgesPost(createBadgeCommand, options).then(function (request) { return request(axios, basePath); });
|
|
835
|
+
},
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
exports.BadgesApiFactory = BadgesApiFactory;
|
|
839
|
+
/**
|
|
840
|
+
* BadgesApi - object-oriented interface
|
|
841
|
+
* @export
|
|
842
|
+
* @class BadgesApi
|
|
843
|
+
* @extends {BaseAPI}
|
|
844
|
+
*/
|
|
845
|
+
var BadgesApi = /** @class */ (function (_super) {
|
|
846
|
+
__extends(BadgesApi, _super);
|
|
847
|
+
function BadgesApi() {
|
|
848
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @summary Delete badge (Auth policies: RequireContentManagerRole)
|
|
853
|
+
* @param {BadgesApiApiV1BadgesBadgeIdDeleteRequest} requestParameters Request parameters.
|
|
854
|
+
* @param {*} [options] Override http request option.
|
|
855
|
+
* @throws {RequiredError}
|
|
856
|
+
* @memberof BadgesApi
|
|
857
|
+
*/
|
|
858
|
+
BadgesApi.prototype.apiV1BadgesBadgeIdDelete = function (requestParameters, options) {
|
|
859
|
+
var _this = this;
|
|
860
|
+
return (0, exports.BadgesApiFp)(this.configuration).apiV1BadgesBadgeIdDelete(requestParameters.badgeId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
861
|
+
};
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @summary Remove excluded country from badge (Auth policies: RequireContentManagerRole)
|
|
865
|
+
* @param {BadgesApiApiV1BadgesBadgeIdExcludedcountriesCountryIdDeleteRequest} requestParameters Request parameters.
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
* @memberof BadgesApi
|
|
869
|
+
*/
|
|
870
|
+
BadgesApi.prototype.apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete = function (requestParameters, options) {
|
|
871
|
+
var _this = this;
|
|
872
|
+
return (0, exports.BadgesApiFp)(this.configuration).apiV1BadgesBadgeIdExcludedcountriesCountryIdDelete(requestParameters.badgeId, requestParameters.countryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
873
|
+
};
|
|
874
|
+
/**
|
|
875
|
+
*
|
|
876
|
+
* @summary Add excluded country to badge (Auth policies: RequireContentManagerRole)
|
|
877
|
+
* @param {BadgesApiApiV1BadgesBadgeIdExcludedcountriesCountryIdPostRequest} requestParameters Request parameters.
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
* @memberof BadgesApi
|
|
881
|
+
*/
|
|
882
|
+
BadgesApi.prototype.apiV1BadgesBadgeIdExcludedcountriesCountryIdPost = function (requestParameters, options) {
|
|
883
|
+
var _this = this;
|
|
884
|
+
return (0, exports.BadgesApiFp)(this.configuration).apiV1BadgesBadgeIdExcludedcountriesCountryIdPost(requestParameters.badgeId, requestParameters.countryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
885
|
+
};
|
|
886
|
+
/**
|
|
887
|
+
*
|
|
888
|
+
* @summary Get badge (Auth policies: RequireContentManagerRole)
|
|
889
|
+
* @param {BadgesApiApiV1BadgesBadgeIdGetRequest} requestParameters Request parameters.
|
|
890
|
+
* @param {*} [options] Override http request option.
|
|
891
|
+
* @throws {RequiredError}
|
|
892
|
+
* @memberof BadgesApi
|
|
893
|
+
*/
|
|
894
|
+
BadgesApi.prototype.apiV1BadgesBadgeIdGet = function (requestParameters, options) {
|
|
895
|
+
var _this = this;
|
|
896
|
+
return (0, exports.BadgesApiFp)(this.configuration).apiV1BadgesBadgeIdGet(requestParameters.badgeId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
*
|
|
900
|
+
* @summary Update badge (Auth policies: RequireContentManagerRole)
|
|
901
|
+
* @param {BadgesApiApiV1BadgesBadgeIdPutRequest} requestParameters Request parameters.
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
* @memberof BadgesApi
|
|
905
|
+
*/
|
|
906
|
+
BadgesApi.prototype.apiV1BadgesBadgeIdPut = function (requestParameters, options) {
|
|
907
|
+
var _this = this;
|
|
908
|
+
return (0, exports.BadgesApiFp)(this.configuration).apiV1BadgesBadgeIdPut(requestParameters.badgeId, requestParameters.updateBadgeCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
909
|
+
};
|
|
910
|
+
/**
|
|
911
|
+
*
|
|
912
|
+
* @summary Reactivate badge (Auth policies: RequireContentManagerRole)
|
|
913
|
+
* @param {BadgesApiApiV1BadgesBadgeIdReactivatePutRequest} requestParameters Request parameters.
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
* @memberof BadgesApi
|
|
917
|
+
*/
|
|
918
|
+
BadgesApi.prototype.apiV1BadgesBadgeIdReactivatePut = function (requestParameters, options) {
|
|
919
|
+
var _this = this;
|
|
920
|
+
return (0, exports.BadgesApiFp)(this.configuration).apiV1BadgesBadgeIdReactivatePut(requestParameters.badgeId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
*
|
|
924
|
+
* @summary Get badges (Auth policies: RequireContentManagerRole)
|
|
925
|
+
* @param {BadgesApiApiV1BadgesGetRequest} requestParameters Request parameters.
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
* @memberof BadgesApi
|
|
929
|
+
*/
|
|
930
|
+
BadgesApi.prototype.apiV1BadgesGet = function (requestParameters, options) {
|
|
931
|
+
var _this = this;
|
|
932
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
933
|
+
return (0, exports.BadgesApiFp)(this.configuration).apiV1BadgesGet(requestParameters.languageCode, requestParameters.showHidden, requestParameters.id, requestParameters.badgeCategoryId, requestParameters.name, requestParameters.displayAreaHospital, requestParameters.displayAreaDoctor, requestParameters.displayAreaDeal, requestParameters.published, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
934
|
+
};
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @summary Create badge (Auth policies: RequireContentManagerRole)
|
|
938
|
+
* @param {BadgesApiApiV1BadgesPostRequest} requestParameters Request parameters.
|
|
939
|
+
* @param {*} [options] Override http request option.
|
|
940
|
+
* @throws {RequiredError}
|
|
941
|
+
* @memberof BadgesApi
|
|
942
|
+
*/
|
|
943
|
+
BadgesApi.prototype.apiV1BadgesPost = function (requestParameters, options) {
|
|
944
|
+
var _this = this;
|
|
945
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
946
|
+
return (0, exports.BadgesApiFp)(this.configuration).apiV1BadgesPost(requestParameters.createBadgeCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
947
|
+
};
|
|
948
|
+
return BadgesApi;
|
|
949
|
+
}(base_1.BaseAPI));
|
|
950
|
+
exports.BadgesApi = BadgesApi;
|