ch-admin-api-client-typescript 5.42.5 → 5.43.12
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/content-managers-api.d.ts +421 -0
- package/lib/api/content-managers-api.d.ts.map +1 -0
- package/lib/api/content-managers-api.js +713 -0
- package/lib/api/patient-managers-api.d.ts +421 -0
- package/lib/api/patient-managers-api.d.ts.map +1 -0
- package/lib/api/patient-managers-api.js +713 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -0
- package/lib/models/content-manager-item-model.d.ts +105 -0
- package/lib/models/content-manager-item-model.d.ts.map +1 -0
- package/lib/models/content-manager-item-model.js +15 -0
- package/lib/models/content-manager-model.d.ts +119 -0
- package/lib/models/content-manager-model.d.ts.map +1 -0
- package/lib/models/content-manager-model.js +15 -0
- package/lib/models/content-managers-model.d.ts +33 -0
- package/lib/models/content-managers-model.d.ts.map +1 -0
- package/lib/models/content-managers-model.js +15 -0
- package/lib/models/create-content-manager-command.d.ts +80 -0
- package/lib/models/create-content-manager-command.d.ts.map +1 -0
- package/lib/models/create-content-manager-command.js +15 -0
- package/lib/models/create-patient-manager-command.d.ts +80 -0
- package/lib/models/create-patient-manager-command.d.ts.map +1 -0
- package/lib/models/create-patient-manager-command.js +15 -0
- package/lib/models/create-service-review-command.d.ts +6 -0
- package/lib/models/create-service-review-command.d.ts.map +1 -1
- package/lib/models/index.d.ts +10 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +10 -0
- package/lib/models/patient-manager-item-model.d.ts +105 -0
- package/lib/models/patient-manager-item-model.d.ts.map +1 -0
- package/lib/models/patient-manager-item-model.js +15 -0
- package/lib/models/patient-manager-model.d.ts +119 -0
- package/lib/models/patient-manager-model.d.ts.map +1 -0
- package/lib/models/patient-manager-model.js +15 -0
- package/lib/models/patient-managers-model.d.ts +33 -0
- package/lib/models/patient-managers-model.d.ts.map +1 -0
- package/lib/models/patient-managers-model.js +15 -0
- package/lib/models/service-review-item-model.d.ts +6 -0
- package/lib/models/service-review-item-model.d.ts.map +1 -1
- package/lib/models/service-review-model.d.ts +6 -0
- package/lib/models/service-review-model.d.ts.map +1 -1
- package/lib/models/translate-command.d.ts +4 -4
- package/lib/models/translate-command.d.ts.map +1 -1
- package/lib/models/update-content-manager-command.d.ts +80 -0
- package/lib/models/update-content-manager-command.d.ts.map +1 -0
- package/lib/models/update-content-manager-command.js +15 -0
- package/lib/models/update-patient-manager-command.d.ts +80 -0
- package/lib/models/update-patient-manager-command.d.ts.map +1 -0
- package/lib/models/update-patient-manager-command.js +15 -0
- package/lib/models/update-service-review-command.d.ts +6 -0
- package/lib/models/update-service-review-command.d.ts.map +1 -1
- package/lib/models/user-type.d.ts +2 -0
- package/lib/models/user-type.d.ts.map +1 -1
- package/lib/models/user-type.js +3 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +12 -0
- package/src/api/content-managers-api.ts +740 -0
- package/src/api/patient-managers-api.ts +740 -0
- package/src/api.ts +2 -0
- package/src/models/content-manager-item-model.ts +114 -0
- package/src/models/content-manager-model.ts +132 -0
- package/src/models/content-managers-model.ts +42 -0
- package/src/models/create-content-manager-command.ts +87 -0
- package/src/models/create-patient-manager-command.ts +87 -0
- package/src/models/create-service-review-command.ts +6 -0
- package/src/models/index.ts +10 -0
- package/src/models/patient-manager-item-model.ts +114 -0
- package/src/models/patient-manager-model.ts +132 -0
- package/src/models/patient-managers-model.ts +42 -0
- package/src/models/service-review-item-model.ts +6 -0
- package/src/models/service-review-model.ts +6 -0
- package/src/models/translate-command.ts +4 -4
- package/src/models/update-content-manager-command.ts +87 -0
- package/src/models/update-patient-manager-command.ts +87 -0
- package/src/models/update-service-review-command.ts +6 -0
- package/src/models/user-type.ts +3 -1
|
@@ -0,0 +1,713 @@
|
|
|
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;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.ContentManagersApi = exports.ContentManagersApiFactory = exports.ContentManagersApiFp = exports.ContentManagersApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* ContentManagersApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var ContentManagersApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Delete ContentManager.
|
|
98
|
+
* @param {string} contentManagerId
|
|
99
|
+
* @param {boolean} [isPermanent]
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
apiV1ContentmanagersContentManagerIdDelete: function (contentManagerId, isPermanent, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'contentManagerId' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('apiV1ContentmanagersContentManagerIdDelete', 'contentManagerId', contentManagerId);
|
|
112
|
+
localVarPath = "/api/v1/contentmanagers/{contentManagerId}"
|
|
113
|
+
.replace("{".concat("contentManagerId", "}"), encodeURIComponent(String(contentManagerId)));
|
|
114
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication oauth2 required
|
|
122
|
+
// oauth required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication oauth2 required
|
|
126
|
+
// oauth required
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (isPermanent !== undefined) {
|
|
129
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
130
|
+
}
|
|
131
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
+
return [2 /*return*/, {
|
|
135
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
}];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Get ContentManager.
|
|
145
|
+
* @param {string} contentManagerId
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
apiV1ContentmanagersContentManagerIdGet: function (contentManagerId, options) {
|
|
150
|
+
if (options === void 0) { options = {}; }
|
|
151
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
152
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
153
|
+
return __generator(this, function (_a) {
|
|
154
|
+
switch (_a.label) {
|
|
155
|
+
case 0:
|
|
156
|
+
// verify required parameter 'contentManagerId' is not null or undefined
|
|
157
|
+
(0, common_1.assertParamExists)('apiV1ContentmanagersContentManagerIdGet', 'contentManagerId', contentManagerId);
|
|
158
|
+
localVarPath = "/api/v1/contentmanagers/{contentManagerId}"
|
|
159
|
+
.replace("{".concat("contentManagerId", "}"), encodeURIComponent(String(contentManagerId)));
|
|
160
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
161
|
+
if (configuration) {
|
|
162
|
+
baseOptions = configuration.baseOptions;
|
|
163
|
+
}
|
|
164
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
165
|
+
localVarHeaderParameter = {};
|
|
166
|
+
localVarQueryParameter = {};
|
|
167
|
+
// authentication oauth2 required
|
|
168
|
+
// oauth required
|
|
169
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
170
|
+
case 1:
|
|
171
|
+
// authentication oauth2 required
|
|
172
|
+
// oauth required
|
|
173
|
+
_a.sent();
|
|
174
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
175
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
177
|
+
return [2 /*return*/, {
|
|
178
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
}];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
},
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @summary Update ContentManager.
|
|
188
|
+
* @param {string} contentManagerId
|
|
189
|
+
* @param {UpdateContentManagerCommand} [updateContentManagerCommand]
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
*/
|
|
193
|
+
apiV1ContentmanagersContentManagerIdPut: function (contentManagerId, updateContentManagerCommand, options) {
|
|
194
|
+
if (options === void 0) { options = {}; }
|
|
195
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
196
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
197
|
+
return __generator(this, function (_a) {
|
|
198
|
+
switch (_a.label) {
|
|
199
|
+
case 0:
|
|
200
|
+
// verify required parameter 'contentManagerId' is not null or undefined
|
|
201
|
+
(0, common_1.assertParamExists)('apiV1ContentmanagersContentManagerIdPut', 'contentManagerId', contentManagerId);
|
|
202
|
+
localVarPath = "/api/v1/contentmanagers/{contentManagerId}"
|
|
203
|
+
.replace("{".concat("contentManagerId", "}"), encodeURIComponent(String(contentManagerId)));
|
|
204
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
205
|
+
if (configuration) {
|
|
206
|
+
baseOptions = configuration.baseOptions;
|
|
207
|
+
}
|
|
208
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
209
|
+
localVarHeaderParameter = {};
|
|
210
|
+
localVarQueryParameter = {};
|
|
211
|
+
// authentication oauth2 required
|
|
212
|
+
// oauth required
|
|
213
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
214
|
+
case 1:
|
|
215
|
+
// authentication oauth2 required
|
|
216
|
+
// oauth required
|
|
217
|
+
_a.sent();
|
|
218
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
219
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
220
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
221
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
222
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateContentManagerCommand, localVarRequestOptions, configuration);
|
|
223
|
+
return [2 /*return*/, {
|
|
224
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
225
|
+
options: localVarRequestOptions,
|
|
226
|
+
}];
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
},
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @summary Reactivate ContentManager.
|
|
234
|
+
* @param {string} contentManagerId
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
apiV1ContentmanagersContentManagerIdReactivatePut: function (contentManagerId, options) {
|
|
239
|
+
if (options === void 0) { options = {}; }
|
|
240
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
241
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
242
|
+
return __generator(this, function (_a) {
|
|
243
|
+
switch (_a.label) {
|
|
244
|
+
case 0:
|
|
245
|
+
// verify required parameter 'contentManagerId' is not null or undefined
|
|
246
|
+
(0, common_1.assertParamExists)('apiV1ContentmanagersContentManagerIdReactivatePut', 'contentManagerId', contentManagerId);
|
|
247
|
+
localVarPath = "/api/v1/contentmanagers/{contentManagerId}/reactivate"
|
|
248
|
+
.replace("{".concat("contentManagerId", "}"), encodeURIComponent(String(contentManagerId)));
|
|
249
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
250
|
+
if (configuration) {
|
|
251
|
+
baseOptions = configuration.baseOptions;
|
|
252
|
+
}
|
|
253
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
254
|
+
localVarHeaderParameter = {};
|
|
255
|
+
localVarQueryParameter = {};
|
|
256
|
+
// authentication oauth2 required
|
|
257
|
+
// oauth required
|
|
258
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
259
|
+
case 1:
|
|
260
|
+
// authentication oauth2 required
|
|
261
|
+
// oauth required
|
|
262
|
+
_a.sent();
|
|
263
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
264
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
265
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
266
|
+
return [2 /*return*/, {
|
|
267
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
268
|
+
options: localVarRequestOptions,
|
|
269
|
+
}];
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* @summary Get all ContentManagers.
|
|
277
|
+
* @param {string} [id]
|
|
278
|
+
* @param {string} [fullname]
|
|
279
|
+
* @param {string} [email]
|
|
280
|
+
* @param {Gender} [gender]
|
|
281
|
+
* @param {Date} [dateOfBirth]
|
|
282
|
+
* @param {Date} [created]
|
|
283
|
+
* @param {boolean} [showHidden]
|
|
284
|
+
* @param {number} [page]
|
|
285
|
+
* @param {number} [limit]
|
|
286
|
+
* @param {Date} [lastRetrieved]
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
apiV1ContentmanagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
291
|
+
if (options === void 0) { options = {}; }
|
|
292
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
293
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
294
|
+
return __generator(this, function (_a) {
|
|
295
|
+
switch (_a.label) {
|
|
296
|
+
case 0:
|
|
297
|
+
localVarPath = "/api/v1/contentmanagers";
|
|
298
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
299
|
+
if (configuration) {
|
|
300
|
+
baseOptions = configuration.baseOptions;
|
|
301
|
+
}
|
|
302
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
303
|
+
localVarHeaderParameter = {};
|
|
304
|
+
localVarQueryParameter = {};
|
|
305
|
+
// authentication oauth2 required
|
|
306
|
+
// oauth required
|
|
307
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
308
|
+
case 1:
|
|
309
|
+
// authentication oauth2 required
|
|
310
|
+
// oauth required
|
|
311
|
+
_a.sent();
|
|
312
|
+
if (id !== undefined) {
|
|
313
|
+
localVarQueryParameter['Id'] = id;
|
|
314
|
+
}
|
|
315
|
+
if (fullname !== undefined) {
|
|
316
|
+
localVarQueryParameter['Fullname'] = fullname;
|
|
317
|
+
}
|
|
318
|
+
if (email !== undefined) {
|
|
319
|
+
localVarQueryParameter['Email'] = email;
|
|
320
|
+
}
|
|
321
|
+
if (gender !== undefined) {
|
|
322
|
+
localVarQueryParameter['Gender'] = gender;
|
|
323
|
+
}
|
|
324
|
+
if (dateOfBirth !== undefined) {
|
|
325
|
+
localVarQueryParameter['DateOfBirth'] = (dateOfBirth instanceof Date) ?
|
|
326
|
+
dateOfBirth.toISOString() :
|
|
327
|
+
dateOfBirth;
|
|
328
|
+
}
|
|
329
|
+
if (created !== undefined) {
|
|
330
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
331
|
+
created.toISOString() :
|
|
332
|
+
created;
|
|
333
|
+
}
|
|
334
|
+
if (showHidden !== undefined) {
|
|
335
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
336
|
+
}
|
|
337
|
+
if (page !== undefined) {
|
|
338
|
+
localVarQueryParameter['page'] = page;
|
|
339
|
+
}
|
|
340
|
+
if (limit !== undefined) {
|
|
341
|
+
localVarQueryParameter['limit'] = limit;
|
|
342
|
+
}
|
|
343
|
+
if (lastRetrieved !== undefined) {
|
|
344
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
345
|
+
lastRetrieved.toISOString() :
|
|
346
|
+
lastRetrieved;
|
|
347
|
+
}
|
|
348
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
349
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
351
|
+
return [2 /*return*/, {
|
|
352
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
353
|
+
options: localVarRequestOptions,
|
|
354
|
+
}];
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary Create a ContentManager.
|
|
362
|
+
* @param {CreateContentManagerCommand} [createContentManagerCommand]
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
apiV1ContentmanagersPost: function (createContentManagerCommand, options) {
|
|
367
|
+
if (options === void 0) { options = {}; }
|
|
368
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
369
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
370
|
+
return __generator(this, function (_a) {
|
|
371
|
+
switch (_a.label) {
|
|
372
|
+
case 0:
|
|
373
|
+
localVarPath = "/api/v1/contentmanagers";
|
|
374
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
|
+
if (configuration) {
|
|
376
|
+
baseOptions = configuration.baseOptions;
|
|
377
|
+
}
|
|
378
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
379
|
+
localVarHeaderParameter = {};
|
|
380
|
+
localVarQueryParameter = {};
|
|
381
|
+
// authentication oauth2 required
|
|
382
|
+
// oauth required
|
|
383
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
384
|
+
case 1:
|
|
385
|
+
// authentication oauth2 required
|
|
386
|
+
// oauth required
|
|
387
|
+
_a.sent();
|
|
388
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
389
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
390
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
391
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
392
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContentManagerCommand, localVarRequestOptions, configuration);
|
|
393
|
+
return [2 /*return*/, {
|
|
394
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
395
|
+
options: localVarRequestOptions,
|
|
396
|
+
}];
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
},
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
exports.ContentManagersApiAxiosParamCreator = ContentManagersApiAxiosParamCreator;
|
|
404
|
+
/**
|
|
405
|
+
* ContentManagersApi - functional programming interface
|
|
406
|
+
* @export
|
|
407
|
+
*/
|
|
408
|
+
var ContentManagersApiFp = function (configuration) {
|
|
409
|
+
var localVarAxiosParamCreator = (0, exports.ContentManagersApiAxiosParamCreator)(configuration);
|
|
410
|
+
return {
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @summary Delete ContentManager.
|
|
414
|
+
* @param {string} contentManagerId
|
|
415
|
+
* @param {boolean} [isPermanent]
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
apiV1ContentmanagersContentManagerIdDelete: function (contentManagerId, isPermanent, options) {
|
|
420
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
421
|
+
var localVarAxiosArgs;
|
|
422
|
+
return __generator(this, function (_a) {
|
|
423
|
+
switch (_a.label) {
|
|
424
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContentmanagersContentManagerIdDelete(contentManagerId, isPermanent, options)];
|
|
425
|
+
case 1:
|
|
426
|
+
localVarAxiosArgs = _a.sent();
|
|
427
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
});
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @summary Get ContentManager.
|
|
435
|
+
* @param {string} contentManagerId
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
*/
|
|
439
|
+
apiV1ContentmanagersContentManagerIdGet: function (contentManagerId, options) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
441
|
+
var localVarAxiosArgs;
|
|
442
|
+
return __generator(this, function (_a) {
|
|
443
|
+
switch (_a.label) {
|
|
444
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContentmanagersContentManagerIdGet(contentManagerId, options)];
|
|
445
|
+
case 1:
|
|
446
|
+
localVarAxiosArgs = _a.sent();
|
|
447
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
});
|
|
451
|
+
},
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @summary Update ContentManager.
|
|
455
|
+
* @param {string} contentManagerId
|
|
456
|
+
* @param {UpdateContentManagerCommand} [updateContentManagerCommand]
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
apiV1ContentmanagersContentManagerIdPut: function (contentManagerId, updateContentManagerCommand, options) {
|
|
461
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
462
|
+
var localVarAxiosArgs;
|
|
463
|
+
return __generator(this, function (_a) {
|
|
464
|
+
switch (_a.label) {
|
|
465
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContentmanagersContentManagerIdPut(contentManagerId, updateContentManagerCommand, options)];
|
|
466
|
+
case 1:
|
|
467
|
+
localVarAxiosArgs = _a.sent();
|
|
468
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
});
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @summary Reactivate ContentManager.
|
|
476
|
+
* @param {string} contentManagerId
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
apiV1ContentmanagersContentManagerIdReactivatePut: function (contentManagerId, options) {
|
|
481
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
482
|
+
var localVarAxiosArgs;
|
|
483
|
+
return __generator(this, function (_a) {
|
|
484
|
+
switch (_a.label) {
|
|
485
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContentmanagersContentManagerIdReactivatePut(contentManagerId, options)];
|
|
486
|
+
case 1:
|
|
487
|
+
localVarAxiosArgs = _a.sent();
|
|
488
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
});
|
|
492
|
+
},
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary Get all ContentManagers.
|
|
496
|
+
* @param {string} [id]
|
|
497
|
+
* @param {string} [fullname]
|
|
498
|
+
* @param {string} [email]
|
|
499
|
+
* @param {Gender} [gender]
|
|
500
|
+
* @param {Date} [dateOfBirth]
|
|
501
|
+
* @param {Date} [created]
|
|
502
|
+
* @param {boolean} [showHidden]
|
|
503
|
+
* @param {number} [page]
|
|
504
|
+
* @param {number} [limit]
|
|
505
|
+
* @param {Date} [lastRetrieved]
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
*/
|
|
509
|
+
apiV1ContentmanagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
510
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
511
|
+
var localVarAxiosArgs;
|
|
512
|
+
return __generator(this, function (_a) {
|
|
513
|
+
switch (_a.label) {
|
|
514
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContentmanagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
515
|
+
case 1:
|
|
516
|
+
localVarAxiosArgs = _a.sent();
|
|
517
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
});
|
|
521
|
+
},
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @summary Create a ContentManager.
|
|
525
|
+
* @param {CreateContentManagerCommand} [createContentManagerCommand]
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
apiV1ContentmanagersPost: function (createContentManagerCommand, options) {
|
|
530
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
531
|
+
var localVarAxiosArgs;
|
|
532
|
+
return __generator(this, function (_a) {
|
|
533
|
+
switch (_a.label) {
|
|
534
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContentmanagersPost(createContentManagerCommand, options)];
|
|
535
|
+
case 1:
|
|
536
|
+
localVarAxiosArgs = _a.sent();
|
|
537
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
});
|
|
541
|
+
},
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
exports.ContentManagersApiFp = ContentManagersApiFp;
|
|
545
|
+
/**
|
|
546
|
+
* ContentManagersApi - factory interface
|
|
547
|
+
* @export
|
|
548
|
+
*/
|
|
549
|
+
var ContentManagersApiFactory = function (configuration, basePath, axios) {
|
|
550
|
+
var localVarFp = (0, exports.ContentManagersApiFp)(configuration);
|
|
551
|
+
return {
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* @summary Delete ContentManager.
|
|
555
|
+
* @param {string} contentManagerId
|
|
556
|
+
* @param {boolean} [isPermanent]
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
apiV1ContentmanagersContentManagerIdDelete: function (contentManagerId, isPermanent, options) {
|
|
561
|
+
return localVarFp.apiV1ContentmanagersContentManagerIdDelete(contentManagerId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @summary Get ContentManager.
|
|
566
|
+
* @param {string} contentManagerId
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
apiV1ContentmanagersContentManagerIdGet: function (contentManagerId, options) {
|
|
571
|
+
return localVarFp.apiV1ContentmanagersContentManagerIdGet(contentManagerId, options).then(function (request) { return request(axios, basePath); });
|
|
572
|
+
},
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @summary Update ContentManager.
|
|
576
|
+
* @param {string} contentManagerId
|
|
577
|
+
* @param {UpdateContentManagerCommand} [updateContentManagerCommand]
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
apiV1ContentmanagersContentManagerIdPut: function (contentManagerId, updateContentManagerCommand, options) {
|
|
582
|
+
return localVarFp.apiV1ContentmanagersContentManagerIdPut(contentManagerId, updateContentManagerCommand, options).then(function (request) { return request(axios, basePath); });
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @summary Reactivate ContentManager.
|
|
587
|
+
* @param {string} contentManagerId
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
apiV1ContentmanagersContentManagerIdReactivatePut: function (contentManagerId, options) {
|
|
592
|
+
return localVarFp.apiV1ContentmanagersContentManagerIdReactivatePut(contentManagerId, options).then(function (request) { return request(axios, basePath); });
|
|
593
|
+
},
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @summary Get all ContentManagers.
|
|
597
|
+
* @param {string} [id]
|
|
598
|
+
* @param {string} [fullname]
|
|
599
|
+
* @param {string} [email]
|
|
600
|
+
* @param {Gender} [gender]
|
|
601
|
+
* @param {Date} [dateOfBirth]
|
|
602
|
+
* @param {Date} [created]
|
|
603
|
+
* @param {boolean} [showHidden]
|
|
604
|
+
* @param {number} [page]
|
|
605
|
+
* @param {number} [limit]
|
|
606
|
+
* @param {Date} [lastRetrieved]
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
*/
|
|
610
|
+
apiV1ContentmanagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
611
|
+
return localVarFp.apiV1ContentmanagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
612
|
+
},
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @summary Create a ContentManager.
|
|
616
|
+
* @param {CreateContentManagerCommand} [createContentManagerCommand]
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
apiV1ContentmanagersPost: function (createContentManagerCommand, options) {
|
|
621
|
+
return localVarFp.apiV1ContentmanagersPost(createContentManagerCommand, options).then(function (request) { return request(axios, basePath); });
|
|
622
|
+
},
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
exports.ContentManagersApiFactory = ContentManagersApiFactory;
|
|
626
|
+
/**
|
|
627
|
+
* ContentManagersApi - object-oriented interface
|
|
628
|
+
* @export
|
|
629
|
+
* @class ContentManagersApi
|
|
630
|
+
* @extends {BaseAPI}
|
|
631
|
+
*/
|
|
632
|
+
var ContentManagersApi = /** @class */ (function (_super) {
|
|
633
|
+
__extends(ContentManagersApi, _super);
|
|
634
|
+
function ContentManagersApi() {
|
|
635
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @summary Delete ContentManager.
|
|
640
|
+
* @param {ContentManagersApiApiV1ContentmanagersContentManagerIdDeleteRequest} requestParameters Request parameters.
|
|
641
|
+
* @param {*} [options] Override http request option.
|
|
642
|
+
* @throws {RequiredError}
|
|
643
|
+
* @memberof ContentManagersApi
|
|
644
|
+
*/
|
|
645
|
+
ContentManagersApi.prototype.apiV1ContentmanagersContentManagerIdDelete = function (requestParameters, options) {
|
|
646
|
+
var _this = this;
|
|
647
|
+
return (0, exports.ContentManagersApiFp)(this.configuration).apiV1ContentmanagersContentManagerIdDelete(requestParameters.contentManagerId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
* @summary Get ContentManager.
|
|
652
|
+
* @param {ContentManagersApiApiV1ContentmanagersContentManagerIdGetRequest} requestParameters Request parameters.
|
|
653
|
+
* @param {*} [options] Override http request option.
|
|
654
|
+
* @throws {RequiredError}
|
|
655
|
+
* @memberof ContentManagersApi
|
|
656
|
+
*/
|
|
657
|
+
ContentManagersApi.prototype.apiV1ContentmanagersContentManagerIdGet = function (requestParameters, options) {
|
|
658
|
+
var _this = this;
|
|
659
|
+
return (0, exports.ContentManagersApiFp)(this.configuration).apiV1ContentmanagersContentManagerIdGet(requestParameters.contentManagerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @summary Update ContentManager.
|
|
664
|
+
* @param {ContentManagersApiApiV1ContentmanagersContentManagerIdPutRequest} requestParameters Request parameters.
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
* @memberof ContentManagersApi
|
|
668
|
+
*/
|
|
669
|
+
ContentManagersApi.prototype.apiV1ContentmanagersContentManagerIdPut = function (requestParameters, options) {
|
|
670
|
+
var _this = this;
|
|
671
|
+
return (0, exports.ContentManagersApiFp)(this.configuration).apiV1ContentmanagersContentManagerIdPut(requestParameters.contentManagerId, requestParameters.updateContentManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
672
|
+
};
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
* @summary Reactivate ContentManager.
|
|
676
|
+
* @param {ContentManagersApiApiV1ContentmanagersContentManagerIdReactivatePutRequest} requestParameters Request parameters.
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
* @memberof ContentManagersApi
|
|
680
|
+
*/
|
|
681
|
+
ContentManagersApi.prototype.apiV1ContentmanagersContentManagerIdReactivatePut = function (requestParameters, options) {
|
|
682
|
+
var _this = this;
|
|
683
|
+
return (0, exports.ContentManagersApiFp)(this.configuration).apiV1ContentmanagersContentManagerIdReactivatePut(requestParameters.contentManagerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
684
|
+
};
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @summary Get all ContentManagers.
|
|
688
|
+
* @param {ContentManagersApiApiV1ContentmanagersGetRequest} requestParameters Request parameters.
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
* @memberof ContentManagersApi
|
|
692
|
+
*/
|
|
693
|
+
ContentManagersApi.prototype.apiV1ContentmanagersGet = function (requestParameters, options) {
|
|
694
|
+
var _this = this;
|
|
695
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
696
|
+
return (0, exports.ContentManagersApiFp)(this.configuration).apiV1ContentmanagersGet(requestParameters.id, requestParameters.fullname, requestParameters.email, requestParameters.gender, requestParameters.dateOfBirth, requestParameters.created, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @summary Create a ContentManager.
|
|
701
|
+
* @param {ContentManagersApiApiV1ContentmanagersPostRequest} requestParameters Request parameters.
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
* @memberof ContentManagersApi
|
|
705
|
+
*/
|
|
706
|
+
ContentManagersApi.prototype.apiV1ContentmanagersPost = function (requestParameters, options) {
|
|
707
|
+
var _this = this;
|
|
708
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
709
|
+
return (0, exports.ContentManagersApiFp)(this.configuration).apiV1ContentmanagersPost(requestParameters.createContentManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
710
|
+
};
|
|
711
|
+
return ContentManagersApi;
|
|
712
|
+
}(base_1.BaseAPI));
|
|
713
|
+
exports.ContentManagersApi = ContentManagersApi;
|