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