ch-admin-api-client-typescript 5.90.19 → 5.90.35
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/cors-allowed-origins-api.d.ts +416 -0
- package/lib/api/cors-allowed-origins-api.d.ts.map +1 -0
- package/lib/api/cors-allowed-origins-api.js +794 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/article-model.d.ts +7 -0
- package/lib/models/article-model.d.ts.map +1 -1
- package/lib/models/cors-allowed-origin-model.d.ts +99 -0
- package/lib/models/cors-allowed-origin-model.d.ts.map +1 -0
- package/lib/models/cors-allowed-origin-model.js +15 -0
- package/lib/models/cors-allowed-origins-model.d.ts +26 -0
- package/lib/models/cors-allowed-origins-model.d.ts.map +1 -0
- package/lib/models/cors-allowed-origins-model.js +15 -0
- package/lib/models/cors-allowed-origins-sync-model.d.ts +38 -0
- package/lib/models/cors-allowed-origins-sync-model.d.ts.map +1 -0
- package/lib/models/cors-allowed-origins-sync-model.js +15 -0
- package/lib/models/cors-allowed-origins-sync-target-model.d.ts +104 -0
- package/lib/models/cors-allowed-origins-sync-target-model.d.ts.map +1 -0
- package/lib/models/cors-allowed-origins-sync-target-model.js +15 -0
- package/lib/models/cors-origin-source-type.d.ts +22 -0
- package/lib/models/cors-origin-source-type.d.ts.map +1 -0
- package/lib/models/cors-origin-source-type.js +25 -0
- package/lib/models/cors-target-type.d.ts +22 -0
- package/lib/models/cors-target-type.d.ts.map +1 -0
- package/lib/models/cors-target-type.js +25 -0
- package/lib/models/create-cors-allowed-origin-command.d.ts +50 -0
- package/lib/models/create-cors-allowed-origin-command.d.ts.map +1 -0
- package/lib/models/create-cors-allowed-origin-command.js +15 -0
- package/lib/models/general-article-model.d.ts +7 -0
- package/lib/models/general-article-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +11 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +11 -0
- package/lib/models/rebuild-cors-allowed-origins-command.d.ts +25 -0
- package/lib/models/rebuild-cors-allowed-origins-command.d.ts.map +1 -0
- package/lib/models/rebuild-cors-allowed-origins-command.js +15 -0
- package/lib/models/sync-cors-allowed-origins-command.d.ts +25 -0
- package/lib/models/sync-cors-allowed-origins-command.d.ts.map +1 -0
- package/lib/models/sync-cors-allowed-origins-command.js +15 -0
- package/lib/models/translate-command.d.ts +2 -2
- package/lib/models/translate-command.d.ts.map +1 -1
- package/lib/models/translated-language-model.d.ts +31 -0
- package/lib/models/translated-language-model.d.ts.map +1 -0
- package/lib/models/translated-language-model.js +15 -0
- package/lib/models/update-cors-allowed-origin-command.d.ts +56 -0
- package/lib/models/update-cors-allowed-origin-command.d.ts.map +1 -0
- package/lib/models/update-cors-allowed-origin-command.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,794 @@
|
|
|
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.CorsAllowedOriginsApi = exports.CorsAllowedOriginsApiFactory = exports.CorsAllowedOriginsApiFp = exports.CorsAllowedOriginsApiAxiosParamCreator = 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
|
+
* CorsAllowedOriginsApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var CorsAllowedOriginsApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Clears Azure App Service CORS settings for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
107
|
+
* @param {boolean} [dryRun] Whether to calculate the clear result without applying changes to Azure App Service.
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
apiV1CorsallowedoriginsClearDelete: function (dryRun_1) {
|
|
112
|
+
var args_1 = [];
|
|
113
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
114
|
+
args_1[_i - 1] = arguments[_i];
|
|
115
|
+
}
|
|
116
|
+
return __awaiter(_this, __spreadArray([dryRun_1], args_1, true), void 0, function (dryRun, options) {
|
|
117
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
118
|
+
if (options === void 0) { options = {}; }
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0:
|
|
122
|
+
localVarPath = "/api/v1/corsallowedorigins/clear";
|
|
123
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
124
|
+
if (configuration) {
|
|
125
|
+
baseOptions = configuration.baseOptions;
|
|
126
|
+
}
|
|
127
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
128
|
+
localVarHeaderParameter = {};
|
|
129
|
+
localVarQueryParameter = {};
|
|
130
|
+
// authentication oauth2 required
|
|
131
|
+
// oauth required
|
|
132
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
133
|
+
case 1:
|
|
134
|
+
// authentication oauth2 required
|
|
135
|
+
// oauth required
|
|
136
|
+
_a.sent();
|
|
137
|
+
if (dryRun !== undefined) {
|
|
138
|
+
localVarQueryParameter['dryRun'] = dryRun;
|
|
139
|
+
}
|
|
140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
143
|
+
return [2 /*return*/, {
|
|
144
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
145
|
+
options: localVarRequestOptions,
|
|
146
|
+
}];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @summary Gets CORS allowed origins for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
154
|
+
* @param {string} [origin]
|
|
155
|
+
* @param {string} [hospitalId]
|
|
156
|
+
* @param {CorsOriginSourceType} [originSourceType]
|
|
157
|
+
* @param {boolean} [showHidden]
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
apiV1CorsallowedoriginsGet: function (origin_1, hospitalId_1, originSourceType_1, showHidden_1) {
|
|
162
|
+
var args_1 = [];
|
|
163
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
164
|
+
args_1[_i - 4] = arguments[_i];
|
|
165
|
+
}
|
|
166
|
+
return __awaiter(_this, __spreadArray([origin_1, hospitalId_1, originSourceType_1, showHidden_1], args_1, true), void 0, function (origin, hospitalId, originSourceType, showHidden, options) {
|
|
167
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
168
|
+
if (options === void 0) { options = {}; }
|
|
169
|
+
return __generator(this, function (_a) {
|
|
170
|
+
switch (_a.label) {
|
|
171
|
+
case 0:
|
|
172
|
+
localVarPath = "/api/v1/corsallowedorigins";
|
|
173
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
174
|
+
if (configuration) {
|
|
175
|
+
baseOptions = configuration.baseOptions;
|
|
176
|
+
}
|
|
177
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
178
|
+
localVarHeaderParameter = {};
|
|
179
|
+
localVarQueryParameter = {};
|
|
180
|
+
// authentication oauth2 required
|
|
181
|
+
// oauth required
|
|
182
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
183
|
+
case 1:
|
|
184
|
+
// authentication oauth2 required
|
|
185
|
+
// oauth required
|
|
186
|
+
_a.sent();
|
|
187
|
+
if (origin !== undefined) {
|
|
188
|
+
localVarQueryParameter['origin'] = origin;
|
|
189
|
+
}
|
|
190
|
+
if (hospitalId !== undefined) {
|
|
191
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
192
|
+
}
|
|
193
|
+
if (originSourceType !== undefined) {
|
|
194
|
+
localVarQueryParameter['originSourceType'] = originSourceType;
|
|
195
|
+
}
|
|
196
|
+
if (showHidden !== undefined) {
|
|
197
|
+
localVarQueryParameter['showHidden'] = showHidden;
|
|
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 Deletes a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
213
|
+
* @param {string} id The CORS allowed origin identifier.
|
|
214
|
+
* @param {boolean} [isPermanent] Whether to permanently delete the record instead of applying a soft delete.
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
*/
|
|
218
|
+
apiV1CorsallowedoriginsIdDelete: function (id_1, isPermanent_1) {
|
|
219
|
+
var args_1 = [];
|
|
220
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
221
|
+
args_1[_i - 2] = arguments[_i];
|
|
222
|
+
}
|
|
223
|
+
return __awaiter(_this, __spreadArray([id_1, isPermanent_1], args_1, true), void 0, function (id, isPermanent, options) {
|
|
224
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
225
|
+
if (options === void 0) { options = {}; }
|
|
226
|
+
return __generator(this, function (_a) {
|
|
227
|
+
switch (_a.label) {
|
|
228
|
+
case 0:
|
|
229
|
+
// verify required parameter 'id' is not null or undefined
|
|
230
|
+
(0, common_1.assertParamExists)('apiV1CorsallowedoriginsIdDelete', 'id', id);
|
|
231
|
+
localVarPath = "/api/v1/corsallowedorigins/{id}"
|
|
232
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
233
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
234
|
+
if (configuration) {
|
|
235
|
+
baseOptions = configuration.baseOptions;
|
|
236
|
+
}
|
|
237
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
238
|
+
localVarHeaderParameter = {};
|
|
239
|
+
localVarQueryParameter = {};
|
|
240
|
+
// authentication oauth2 required
|
|
241
|
+
// oauth required
|
|
242
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
243
|
+
case 1:
|
|
244
|
+
// authentication oauth2 required
|
|
245
|
+
// oauth required
|
|
246
|
+
_a.sent();
|
|
247
|
+
if (isPermanent !== undefined) {
|
|
248
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
249
|
+
}
|
|
250
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
251
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
252
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
253
|
+
return [2 /*return*/, {
|
|
254
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
}];
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @summary Updates a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
264
|
+
* @param {string} id The CORS allowed origin identifier.
|
|
265
|
+
* @param {UpdateCorsAllowedOriginCommand} [updateCorsAllowedOriginCommand] The CORS allowed origin update request.
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
apiV1CorsallowedoriginsIdPut: function (id_1, updateCorsAllowedOriginCommand_1) {
|
|
270
|
+
var args_1 = [];
|
|
271
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
272
|
+
args_1[_i - 2] = arguments[_i];
|
|
273
|
+
}
|
|
274
|
+
return __awaiter(_this, __spreadArray([id_1, updateCorsAllowedOriginCommand_1], args_1, true), void 0, function (id, updateCorsAllowedOriginCommand, options) {
|
|
275
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
276
|
+
if (options === void 0) { options = {}; }
|
|
277
|
+
return __generator(this, function (_a) {
|
|
278
|
+
switch (_a.label) {
|
|
279
|
+
case 0:
|
|
280
|
+
// verify required parameter 'id' is not null or undefined
|
|
281
|
+
(0, common_1.assertParamExists)('apiV1CorsallowedoriginsIdPut', 'id', id);
|
|
282
|
+
localVarPath = "/api/v1/corsallowedorigins/{id}"
|
|
283
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
284
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
285
|
+
if (configuration) {
|
|
286
|
+
baseOptions = configuration.baseOptions;
|
|
287
|
+
}
|
|
288
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
289
|
+
localVarHeaderParameter = {};
|
|
290
|
+
localVarQueryParameter = {};
|
|
291
|
+
// authentication oauth2 required
|
|
292
|
+
// oauth required
|
|
293
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
294
|
+
case 1:
|
|
295
|
+
// authentication oauth2 required
|
|
296
|
+
// oauth required
|
|
297
|
+
_a.sent();
|
|
298
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
299
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
300
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
302
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCorsAllowedOriginCommand, localVarRequestOptions, configuration);
|
|
303
|
+
return [2 /*return*/, {
|
|
304
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
305
|
+
options: localVarRequestOptions,
|
|
306
|
+
}];
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @summary Creates a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
314
|
+
* @param {CreateCorsAllowedOriginCommand} [createCorsAllowedOriginCommand] The CORS allowed origin creation request.
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
apiV1CorsallowedoriginsPost: function (createCorsAllowedOriginCommand_1) {
|
|
319
|
+
var args_1 = [];
|
|
320
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
321
|
+
args_1[_i - 1] = arguments[_i];
|
|
322
|
+
}
|
|
323
|
+
return __awaiter(_this, __spreadArray([createCorsAllowedOriginCommand_1], args_1, true), void 0, function (createCorsAllowedOriginCommand, options) {
|
|
324
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
325
|
+
if (options === void 0) { options = {}; }
|
|
326
|
+
return __generator(this, function (_a) {
|
|
327
|
+
switch (_a.label) {
|
|
328
|
+
case 0:
|
|
329
|
+
localVarPath = "/api/v1/corsallowedorigins";
|
|
330
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
331
|
+
if (configuration) {
|
|
332
|
+
baseOptions = configuration.baseOptions;
|
|
333
|
+
}
|
|
334
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
335
|
+
localVarHeaderParameter = {};
|
|
336
|
+
localVarQueryParameter = {};
|
|
337
|
+
// authentication oauth2 required
|
|
338
|
+
// oauth required
|
|
339
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
340
|
+
case 1:
|
|
341
|
+
// authentication oauth2 required
|
|
342
|
+
// oauth required
|
|
343
|
+
_a.sent();
|
|
344
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
345
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
346
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
347
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
348
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCorsAllowedOriginCommand, localVarRequestOptions, configuration);
|
|
349
|
+
return [2 /*return*/, {
|
|
350
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
351
|
+
options: localVarRequestOptions,
|
|
352
|
+
}];
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
},
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @summary Rebuilds `HospitalWebsite`-sourced CORS allowed origin records in the database by reconciling them with the current active hospital website URLs. No Azure App Service synchronization is performed. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
360
|
+
* @param {RebuildCorsAllowedOriginsCommand} [rebuildCorsAllowedOriginsCommand] The rebuild request. Only `dryRun` is accepted; target type is fixed server-side.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
apiV1CorsallowedoriginsRebuildPost: function (rebuildCorsAllowedOriginsCommand_1) {
|
|
365
|
+
var args_1 = [];
|
|
366
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
367
|
+
args_1[_i - 1] = arguments[_i];
|
|
368
|
+
}
|
|
369
|
+
return __awaiter(_this, __spreadArray([rebuildCorsAllowedOriginsCommand_1], args_1, true), void 0, function (rebuildCorsAllowedOriginsCommand, options) {
|
|
370
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
371
|
+
if (options === void 0) { options = {}; }
|
|
372
|
+
return __generator(this, function (_a) {
|
|
373
|
+
switch (_a.label) {
|
|
374
|
+
case 0:
|
|
375
|
+
localVarPath = "/api/v1/corsallowedorigins/rebuild";
|
|
376
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
377
|
+
if (configuration) {
|
|
378
|
+
baseOptions = configuration.baseOptions;
|
|
379
|
+
}
|
|
380
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
381
|
+
localVarHeaderParameter = {};
|
|
382
|
+
localVarQueryParameter = {};
|
|
383
|
+
// authentication oauth2 required
|
|
384
|
+
// oauth required
|
|
385
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
386
|
+
case 1:
|
|
387
|
+
// authentication oauth2 required
|
|
388
|
+
// oauth required
|
|
389
|
+
_a.sent();
|
|
390
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
392
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
393
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
394
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rebuildCorsAllowedOriginsCommand, localVarRequestOptions, configuration);
|
|
395
|
+
return [2 /*return*/, {
|
|
396
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
397
|
+
options: localVarRequestOptions,
|
|
398
|
+
}];
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
},
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @summary Synchronizes source-of-truth CORS allowed origins to Azure App Service CORS settings for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
406
|
+
* @param {SyncCorsAllowedOriginsCommand} [syncCorsAllowedOriginsCommand] Optional synchronization request body.
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
*/
|
|
410
|
+
apiV1CorsallowedoriginsSyncPost: function (syncCorsAllowedOriginsCommand_1) {
|
|
411
|
+
var args_1 = [];
|
|
412
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
413
|
+
args_1[_i - 1] = arguments[_i];
|
|
414
|
+
}
|
|
415
|
+
return __awaiter(_this, __spreadArray([syncCorsAllowedOriginsCommand_1], args_1, true), void 0, function (syncCorsAllowedOriginsCommand, options) {
|
|
416
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
417
|
+
if (options === void 0) { options = {}; }
|
|
418
|
+
return __generator(this, function (_a) {
|
|
419
|
+
switch (_a.label) {
|
|
420
|
+
case 0:
|
|
421
|
+
localVarPath = "/api/v1/corsallowedorigins/sync";
|
|
422
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
423
|
+
if (configuration) {
|
|
424
|
+
baseOptions = configuration.baseOptions;
|
|
425
|
+
}
|
|
426
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
427
|
+
localVarHeaderParameter = {};
|
|
428
|
+
localVarQueryParameter = {};
|
|
429
|
+
// authentication oauth2 required
|
|
430
|
+
// oauth required
|
|
431
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
432
|
+
case 1:
|
|
433
|
+
// authentication oauth2 required
|
|
434
|
+
// oauth required
|
|
435
|
+
_a.sent();
|
|
436
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
437
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
438
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
440
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(syncCorsAllowedOriginsCommand, localVarRequestOptions, configuration);
|
|
441
|
+
return [2 /*return*/, {
|
|
442
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
443
|
+
options: localVarRequestOptions,
|
|
444
|
+
}];
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
});
|
|
448
|
+
},
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
exports.CorsAllowedOriginsApiAxiosParamCreator = CorsAllowedOriginsApiAxiosParamCreator;
|
|
452
|
+
/**
|
|
453
|
+
* CorsAllowedOriginsApi - functional programming interface
|
|
454
|
+
* @export
|
|
455
|
+
*/
|
|
456
|
+
var CorsAllowedOriginsApiFp = function (configuration) {
|
|
457
|
+
var localVarAxiosParamCreator = (0, exports.CorsAllowedOriginsApiAxiosParamCreator)(configuration);
|
|
458
|
+
return {
|
|
459
|
+
/**
|
|
460
|
+
*
|
|
461
|
+
* @summary Clears Azure App Service CORS settings for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
462
|
+
* @param {boolean} [dryRun] Whether to calculate the clear result without applying changes to Azure App Service.
|
|
463
|
+
* @param {*} [options] Override http request option.
|
|
464
|
+
* @throws {RequiredError}
|
|
465
|
+
*/
|
|
466
|
+
apiV1CorsallowedoriginsClearDelete: function (dryRun, options) {
|
|
467
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
468
|
+
var localVarAxiosArgs;
|
|
469
|
+
return __generator(this, function (_a) {
|
|
470
|
+
switch (_a.label) {
|
|
471
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CorsallowedoriginsClearDelete(dryRun, options)];
|
|
472
|
+
case 1:
|
|
473
|
+
localVarAxiosArgs = _a.sent();
|
|
474
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
});
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @summary Gets CORS allowed origins for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
482
|
+
* @param {string} [origin]
|
|
483
|
+
* @param {string} [hospitalId]
|
|
484
|
+
* @param {CorsOriginSourceType} [originSourceType]
|
|
485
|
+
* @param {boolean} [showHidden]
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
apiV1CorsallowedoriginsGet: function (origin, hospitalId, originSourceType, showHidden, options) {
|
|
490
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
491
|
+
var localVarAxiosArgs;
|
|
492
|
+
return __generator(this, function (_a) {
|
|
493
|
+
switch (_a.label) {
|
|
494
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CorsallowedoriginsGet(origin, hospitalId, originSourceType, showHidden, options)];
|
|
495
|
+
case 1:
|
|
496
|
+
localVarAxiosArgs = _a.sent();
|
|
497
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
},
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @summary Deletes a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
505
|
+
* @param {string} id The CORS allowed origin identifier.
|
|
506
|
+
* @param {boolean} [isPermanent] Whether to permanently delete the record instead of applying a soft delete.
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
apiV1CorsallowedoriginsIdDelete: function (id, isPermanent, options) {
|
|
511
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
512
|
+
var localVarAxiosArgs;
|
|
513
|
+
return __generator(this, function (_a) {
|
|
514
|
+
switch (_a.label) {
|
|
515
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CorsallowedoriginsIdDelete(id, isPermanent, options)];
|
|
516
|
+
case 1:
|
|
517
|
+
localVarAxiosArgs = _a.sent();
|
|
518
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
});
|
|
522
|
+
},
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @summary Updates a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
526
|
+
* @param {string} id The CORS allowed origin identifier.
|
|
527
|
+
* @param {UpdateCorsAllowedOriginCommand} [updateCorsAllowedOriginCommand] The CORS allowed origin update request.
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
apiV1CorsallowedoriginsIdPut: function (id, updateCorsAllowedOriginCommand, options) {
|
|
532
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
533
|
+
var localVarAxiosArgs;
|
|
534
|
+
return __generator(this, function (_a) {
|
|
535
|
+
switch (_a.label) {
|
|
536
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CorsallowedoriginsIdPut(id, updateCorsAllowedOriginCommand, options)];
|
|
537
|
+
case 1:
|
|
538
|
+
localVarAxiosArgs = _a.sent();
|
|
539
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
},
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @summary Creates a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
547
|
+
* @param {CreateCorsAllowedOriginCommand} [createCorsAllowedOriginCommand] The CORS allowed origin creation request.
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
*/
|
|
551
|
+
apiV1CorsallowedoriginsPost: function (createCorsAllowedOriginCommand, options) {
|
|
552
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
553
|
+
var localVarAxiosArgs;
|
|
554
|
+
return __generator(this, function (_a) {
|
|
555
|
+
switch (_a.label) {
|
|
556
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CorsallowedoriginsPost(createCorsAllowedOriginCommand, options)];
|
|
557
|
+
case 1:
|
|
558
|
+
localVarAxiosArgs = _a.sent();
|
|
559
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
});
|
|
563
|
+
},
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @summary Rebuilds `HospitalWebsite`-sourced CORS allowed origin records in the database by reconciling them with the current active hospital website URLs. No Azure App Service synchronization is performed. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
567
|
+
* @param {RebuildCorsAllowedOriginsCommand} [rebuildCorsAllowedOriginsCommand] The rebuild request. Only `dryRun` is accepted; target type is fixed server-side.
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
apiV1CorsallowedoriginsRebuildPost: function (rebuildCorsAllowedOriginsCommand, options) {
|
|
572
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
573
|
+
var localVarAxiosArgs;
|
|
574
|
+
return __generator(this, function (_a) {
|
|
575
|
+
switch (_a.label) {
|
|
576
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CorsallowedoriginsRebuildPost(rebuildCorsAllowedOriginsCommand, options)];
|
|
577
|
+
case 1:
|
|
578
|
+
localVarAxiosArgs = _a.sent();
|
|
579
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @summary Synchronizes source-of-truth CORS allowed origins to Azure App Service CORS settings for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
587
|
+
* @param {SyncCorsAllowedOriginsCommand} [syncCorsAllowedOriginsCommand] Optional synchronization request body.
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
apiV1CorsallowedoriginsSyncPost: function (syncCorsAllowedOriginsCommand, options) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
593
|
+
var localVarAxiosArgs;
|
|
594
|
+
return __generator(this, function (_a) {
|
|
595
|
+
switch (_a.label) {
|
|
596
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CorsallowedoriginsSyncPost(syncCorsAllowedOriginsCommand, options)];
|
|
597
|
+
case 1:
|
|
598
|
+
localVarAxiosArgs = _a.sent();
|
|
599
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
},
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
exports.CorsAllowedOriginsApiFp = CorsAllowedOriginsApiFp;
|
|
607
|
+
/**
|
|
608
|
+
* CorsAllowedOriginsApi - factory interface
|
|
609
|
+
* @export
|
|
610
|
+
*/
|
|
611
|
+
var CorsAllowedOriginsApiFactory = function (configuration, basePath, axios) {
|
|
612
|
+
var localVarFp = (0, exports.CorsAllowedOriginsApiFp)(configuration);
|
|
613
|
+
return {
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @summary Clears Azure App Service CORS settings for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
617
|
+
* @param {boolean} [dryRun] Whether to calculate the clear result without applying changes to Azure App Service.
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
*/
|
|
621
|
+
apiV1CorsallowedoriginsClearDelete: function (dryRun, options) {
|
|
622
|
+
return localVarFp.apiV1CorsallowedoriginsClearDelete(dryRun, options).then(function (request) { return request(axios, basePath); });
|
|
623
|
+
},
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @summary Gets CORS allowed origins for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
627
|
+
* @param {string} [origin]
|
|
628
|
+
* @param {string} [hospitalId]
|
|
629
|
+
* @param {CorsOriginSourceType} [originSourceType]
|
|
630
|
+
* @param {boolean} [showHidden]
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
apiV1CorsallowedoriginsGet: function (origin, hospitalId, originSourceType, showHidden, options) {
|
|
635
|
+
return localVarFp.apiV1CorsallowedoriginsGet(origin, hospitalId, originSourceType, showHidden, options).then(function (request) { return request(axios, basePath); });
|
|
636
|
+
},
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @summary Deletes a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
640
|
+
* @param {string} id The CORS allowed origin identifier.
|
|
641
|
+
* @param {boolean} [isPermanent] Whether to permanently delete the record instead of applying a soft delete.
|
|
642
|
+
* @param {*} [options] Override http request option.
|
|
643
|
+
* @throws {RequiredError}
|
|
644
|
+
*/
|
|
645
|
+
apiV1CorsallowedoriginsIdDelete: function (id, isPermanent, options) {
|
|
646
|
+
return localVarFp.apiV1CorsallowedoriginsIdDelete(id, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
647
|
+
},
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @summary Updates a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
651
|
+
* @param {string} id The CORS allowed origin identifier.
|
|
652
|
+
* @param {UpdateCorsAllowedOriginCommand} [updateCorsAllowedOriginCommand] The CORS allowed origin update request.
|
|
653
|
+
* @param {*} [options] Override http request option.
|
|
654
|
+
* @throws {RequiredError}
|
|
655
|
+
*/
|
|
656
|
+
apiV1CorsallowedoriginsIdPut: function (id, updateCorsAllowedOriginCommand, options) {
|
|
657
|
+
return localVarFp.apiV1CorsallowedoriginsIdPut(id, updateCorsAllowedOriginCommand, options).then(function (request) { return request(axios, basePath); });
|
|
658
|
+
},
|
|
659
|
+
/**
|
|
660
|
+
*
|
|
661
|
+
* @summary Creates a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
662
|
+
* @param {CreateCorsAllowedOriginCommand} [createCorsAllowedOriginCommand] The CORS allowed origin creation request.
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
*/
|
|
666
|
+
apiV1CorsallowedoriginsPost: function (createCorsAllowedOriginCommand, options) {
|
|
667
|
+
return localVarFp.apiV1CorsallowedoriginsPost(createCorsAllowedOriginCommand, options).then(function (request) { return request(axios, basePath); });
|
|
668
|
+
},
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @summary Rebuilds `HospitalWebsite`-sourced CORS allowed origin records in the database by reconciling them with the current active hospital website URLs. No Azure App Service synchronization is performed. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
672
|
+
* @param {RebuildCorsAllowedOriginsCommand} [rebuildCorsAllowedOriginsCommand] The rebuild request. Only `dryRun` is accepted; target type is fixed server-side.
|
|
673
|
+
* @param {*} [options] Override http request option.
|
|
674
|
+
* @throws {RequiredError}
|
|
675
|
+
*/
|
|
676
|
+
apiV1CorsallowedoriginsRebuildPost: function (rebuildCorsAllowedOriginsCommand, options) {
|
|
677
|
+
return localVarFp.apiV1CorsallowedoriginsRebuildPost(rebuildCorsAllowedOriginsCommand, options).then(function (request) { return request(axios, basePath); });
|
|
678
|
+
},
|
|
679
|
+
/**
|
|
680
|
+
*
|
|
681
|
+
* @summary Synchronizes source-of-truth CORS allowed origins to Azure App Service CORS settings for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
682
|
+
* @param {SyncCorsAllowedOriginsCommand} [syncCorsAllowedOriginsCommand] Optional synchronization request body.
|
|
683
|
+
* @param {*} [options] Override http request option.
|
|
684
|
+
* @throws {RequiredError}
|
|
685
|
+
*/
|
|
686
|
+
apiV1CorsallowedoriginsSyncPost: function (syncCorsAllowedOriginsCommand, options) {
|
|
687
|
+
return localVarFp.apiV1CorsallowedoriginsSyncPost(syncCorsAllowedOriginsCommand, options).then(function (request) { return request(axios, basePath); });
|
|
688
|
+
},
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
exports.CorsAllowedOriginsApiFactory = CorsAllowedOriginsApiFactory;
|
|
692
|
+
/**
|
|
693
|
+
* CorsAllowedOriginsApi - object-oriented interface
|
|
694
|
+
* @export
|
|
695
|
+
* @class CorsAllowedOriginsApi
|
|
696
|
+
* @extends {BaseAPI}
|
|
697
|
+
*/
|
|
698
|
+
var CorsAllowedOriginsApi = /** @class */ (function (_super) {
|
|
699
|
+
__extends(CorsAllowedOriginsApi, _super);
|
|
700
|
+
function CorsAllowedOriginsApi() {
|
|
701
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @summary Clears Azure App Service CORS settings for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
706
|
+
* @param {CorsAllowedOriginsApiApiV1CorsallowedoriginsClearDeleteRequest} requestParameters Request parameters.
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
* @memberof CorsAllowedOriginsApi
|
|
710
|
+
*/
|
|
711
|
+
CorsAllowedOriginsApi.prototype.apiV1CorsallowedoriginsClearDelete = function (requestParameters, options) {
|
|
712
|
+
var _this = this;
|
|
713
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
714
|
+
return (0, exports.CorsAllowedOriginsApiFp)(this.configuration).apiV1CorsallowedoriginsClearDelete(requestParameters.dryRun, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @summary Gets CORS allowed origins for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
719
|
+
* @param {CorsAllowedOriginsApiApiV1CorsallowedoriginsGetRequest} requestParameters Request parameters.
|
|
720
|
+
* @param {*} [options] Override http request option.
|
|
721
|
+
* @throws {RequiredError}
|
|
722
|
+
* @memberof CorsAllowedOriginsApi
|
|
723
|
+
*/
|
|
724
|
+
CorsAllowedOriginsApi.prototype.apiV1CorsallowedoriginsGet = function (requestParameters, options) {
|
|
725
|
+
var _this = this;
|
|
726
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
727
|
+
return (0, exports.CorsAllowedOriginsApiFp)(this.configuration).apiV1CorsallowedoriginsGet(requestParameters.origin, requestParameters.hospitalId, requestParameters.originSourceType, requestParameters.showHidden, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
728
|
+
};
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @summary Deletes a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
732
|
+
* @param {CorsAllowedOriginsApiApiV1CorsallowedoriginsIdDeleteRequest} requestParameters Request parameters.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
* @memberof CorsAllowedOriginsApi
|
|
736
|
+
*/
|
|
737
|
+
CorsAllowedOriginsApi.prototype.apiV1CorsallowedoriginsIdDelete = function (requestParameters, options) {
|
|
738
|
+
var _this = this;
|
|
739
|
+
return (0, exports.CorsAllowedOriginsApiFp)(this.configuration).apiV1CorsallowedoriginsIdDelete(requestParameters.id, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
740
|
+
};
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @summary Updates a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
744
|
+
* @param {CorsAllowedOriginsApiApiV1CorsallowedoriginsIdPutRequest} requestParameters Request parameters.
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
* @memberof CorsAllowedOriginsApi
|
|
748
|
+
*/
|
|
749
|
+
CorsAllowedOriginsApi.prototype.apiV1CorsallowedoriginsIdPut = function (requestParameters, options) {
|
|
750
|
+
var _this = this;
|
|
751
|
+
return (0, exports.CorsAllowedOriginsApiFp)(this.configuration).apiV1CorsallowedoriginsIdPut(requestParameters.id, requestParameters.updateCorsAllowedOriginCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @summary Creates a CORS allowed origin record. (Auth policies: RequireManagerRole)
|
|
756
|
+
* @param {CorsAllowedOriginsApiApiV1CorsallowedoriginsPostRequest} requestParameters Request parameters.
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
* @memberof CorsAllowedOriginsApi
|
|
760
|
+
*/
|
|
761
|
+
CorsAllowedOriginsApi.prototype.apiV1CorsallowedoriginsPost = function (requestParameters, options) {
|
|
762
|
+
var _this = this;
|
|
763
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
764
|
+
return (0, exports.CorsAllowedOriginsApiFp)(this.configuration).apiV1CorsallowedoriginsPost(requestParameters.createCorsAllowedOriginCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
*
|
|
768
|
+
* @summary Rebuilds `HospitalWebsite`-sourced CORS allowed origin records in the database by reconciling them with the current active hospital website URLs. No Azure App Service synchronization is performed. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
769
|
+
* @param {CorsAllowedOriginsApiApiV1CorsallowedoriginsRebuildPostRequest} requestParameters Request parameters.
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
* @memberof CorsAllowedOriginsApi
|
|
773
|
+
*/
|
|
774
|
+
CorsAllowedOriginsApi.prototype.apiV1CorsallowedoriginsRebuildPost = function (requestParameters, options) {
|
|
775
|
+
var _this = this;
|
|
776
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
777
|
+
return (0, exports.CorsAllowedOriginsApiFp)(this.configuration).apiV1CorsallowedoriginsRebuildPost(requestParameters.rebuildCorsAllowedOriginsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
778
|
+
};
|
|
779
|
+
/**
|
|
780
|
+
*
|
|
781
|
+
* @summary Synchronizes source-of-truth CORS allowed origins to Azure App Service CORS settings for the ClientApi target. Target type is fixed to ClientApi and cannot be chosen by the caller. (Auth policies: RequireManagerRole)
|
|
782
|
+
* @param {CorsAllowedOriginsApiApiV1CorsallowedoriginsSyncPostRequest} requestParameters Request parameters.
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
* @memberof CorsAllowedOriginsApi
|
|
786
|
+
*/
|
|
787
|
+
CorsAllowedOriginsApi.prototype.apiV1CorsallowedoriginsSyncPost = function (requestParameters, options) {
|
|
788
|
+
var _this = this;
|
|
789
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
790
|
+
return (0, exports.CorsAllowedOriginsApiFp)(this.configuration).apiV1CorsallowedoriginsSyncPost(requestParameters.syncCorsAllowedOriginsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
791
|
+
};
|
|
792
|
+
return CorsAllowedOriginsApi;
|
|
793
|
+
}(base_1.BaseAPI));
|
|
794
|
+
exports.CorsAllowedOriginsApi = CorsAllowedOriginsApi;
|