ch-admin-api-client-typescript 5.87.2 → 5.87.10
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/deal-global-settings-api.d.ts +645 -0
- package/lib/api/deal-global-settings-api.d.ts.map +1 -0
- package/lib/api/deal-global-settings-api.js +1189 -0
- package/lib/api/deals-api.d.ts +24 -6
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +30 -18
- package/lib/api/hospitals-api.d.ts +3 -3
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/chadmin-item-model.d.ts +8 -8
- package/lib/models/chadmin-item-model.d.ts.map +1 -1
- package/lib/models/chadmin-model.d.ts +8 -8
- package/lib/models/chadmin-model.d.ts.map +1 -1
- package/lib/models/chmanager-item-model.d.ts +8 -8
- package/lib/models/chmanager-item-model.d.ts.map +1 -1
- package/lib/models/chmanager-model.d.ts +8 -8
- package/lib/models/chmanager-model.d.ts.map +1 -1
- package/lib/models/content-manager-item-model.d.ts +8 -8
- package/lib/models/content-manager-item-model.d.ts.map +1 -1
- package/lib/models/content-manager-model.d.ts +8 -8
- package/lib/models/content-manager-model.d.ts.map +1 -1
- package/lib/models/create-deal-command.d.ts +49 -0
- package/lib/models/create-deal-command.d.ts.map +1 -1
- package/lib/models/create-deal-global-setting-included-in-price-command.d.ts +80 -0
- package/lib/models/create-deal-global-setting-included-in-price-command.d.ts.map +1 -0
- package/lib/models/create-deal-global-setting-included-in-price-command.js +15 -0
- package/lib/models/deal-global-setting-excluded-countries-model.d.ts +33 -0
- package/lib/models/deal-global-setting-excluded-countries-model.d.ts.map +1 -0
- package/lib/models/deal-global-setting-excluded-countries-model.js +15 -0
- package/lib/models/deal-global-setting-excluded-country-item-model.d.ts +43 -0
- package/lib/models/deal-global-setting-excluded-country-item-model.d.ts.map +1 -0
- package/lib/models/deal-global-setting-excluded-country-item-model.js +15 -0
- package/lib/models/deal-global-setting-included-in-price-feature-type.d.ts +21 -0
- package/lib/models/deal-global-setting-included-in-price-feature-type.d.ts.map +1 -0
- package/lib/models/deal-global-setting-included-in-price-feature-type.js +24 -0
- package/lib/models/deal-global-setting-included-in-price-item-model.d.ts +86 -0
- package/lib/models/deal-global-setting-included-in-price-item-model.d.ts.map +1 -0
- package/lib/models/deal-global-setting-included-in-price-item-model.js +15 -0
- package/lib/models/deal-global-setting-included-in-price-model.d.ts +110 -0
- package/lib/models/deal-global-setting-included-in-price-model.d.ts.map +1 -0
- package/lib/models/deal-global-setting-included-in-price-model.js +15 -0
- package/lib/models/deal-global-setting-included-in-prices-model.d.ts +33 -0
- package/lib/models/deal-global-setting-included-in-prices-model.d.ts.map +1 -0
- package/lib/models/deal-global-setting-included-in-prices-model.js +15 -0
- package/lib/models/deal-global-setting-model.d.ts +38 -0
- package/lib/models/deal-global-setting-model.d.ts.map +1 -0
- package/lib/models/deal-global-setting-model.js +15 -0
- package/lib/models/deal-item-model.d.ts +68 -0
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +80 -0
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/deal-review-status.d.ts +24 -0
- package/lib/models/deal-review-status.d.ts.map +1 -0
- package/lib/models/deal-review-status.js +27 -0
- package/lib/models/deal-target-gender.d.ts +23 -0
- package/lib/models/deal-target-gender.d.ts.map +1 -0
- package/lib/models/deal-target-gender.js +26 -0
- package/lib/models/doctor-item-model.d.ts +8 -8
- package/lib/models/doctor-item-model.d.ts.map +1 -1
- package/lib/models/doctor-model.d.ts +8 -8
- package/lib/models/doctor-model.d.ts.map +1 -1
- package/lib/models/general-user-item-model.d.ts +8 -8
- package/lib/models/general-user-item-model.d.ts.map +1 -1
- package/lib/models/general-user-model.d.ts +8 -8
- package/lib/models/general-user-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +12 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +12 -0
- package/lib/models/manager-item-model.d.ts +8 -8
- package/lib/models/manager-item-model.d.ts.map +1 -1
- package/lib/models/manager-model.d.ts +8 -8
- package/lib/models/manager-model.d.ts.map +1 -1
- package/lib/models/notification-code.d.ts +1 -0
- package/lib/models/notification-code.d.ts.map +1 -1
- package/lib/models/notification-code.js +1 -0
- package/lib/models/patch-deal-command.d.ts +55 -0
- package/lib/models/patch-deal-command.d.ts.map +1 -1
- package/lib/models/patch-deal-global-setting-command.d.ts +25 -0
- package/lib/models/patch-deal-global-setting-command.d.ts.map +1 -0
- package/lib/models/patch-deal-global-setting-command.js +15 -0
- package/lib/models/patient-item-model.d.ts +8 -8
- package/lib/models/patient-item-model.d.ts.map +1 -1
- package/lib/models/patient-manager-item-model.d.ts +8 -8
- package/lib/models/patient-manager-item-model.d.ts.map +1 -1
- package/lib/models/patient-manager-model.d.ts +8 -8
- package/lib/models/patient-manager-model.d.ts.map +1 -1
- package/lib/models/patient-model.d.ts +8 -8
- package/lib/models/patient-model.d.ts.map +1 -1
- package/lib/models/update-deal-command.d.ts +55 -0
- package/lib/models/update-deal-command.d.ts.map +1 -1
- package/lib/models/update-deal-global-setting-included-in-price-command.d.ts +86 -0
- package/lib/models/update-deal-global-setting-included-in-price-command.d.ts.map +1 -0
- package/lib/models/update-deal-global-setting-included-in-price-command.js +15 -0
- package/lib/models/user-model.d.ts +8 -8
- package/lib/models/user-model.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1189 @@
|
|
|
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.DealGlobalSettingsApi = exports.DealGlobalSettingsApiFactory = exports.DealGlobalSettingsApiFp = exports.DealGlobalSettingsApiAxiosParamCreator = 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
|
+
* DealGlobalSettingsApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var DealGlobalSettingsApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Removes countries excluded from discount display. (Auth policies: RequireContentManagerRole)
|
|
107
|
+
* @param {string} countryId
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDelete: function (countryId_1) {
|
|
112
|
+
var args_1 = [];
|
|
113
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
114
|
+
args_1[_i - 1] = arguments[_i];
|
|
115
|
+
}
|
|
116
|
+
return __awaiter(_this, __spreadArray([countryId_1], args_1, true), void 0, function (countryId, options) {
|
|
117
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
118
|
+
if (options === void 0) { options = {}; }
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0:
|
|
122
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
123
|
+
(0, common_1.assertParamExists)('apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDelete', 'countryId', countryId);
|
|
124
|
+
localVarPath = "/api/v1/dealglobalsettings/discountdisplayexcludedcountries/{countryId}"
|
|
125
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)));
|
|
126
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
127
|
+
if (configuration) {
|
|
128
|
+
baseOptions = configuration.baseOptions;
|
|
129
|
+
}
|
|
130
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
131
|
+
localVarHeaderParameter = {};
|
|
132
|
+
localVarQueryParameter = {};
|
|
133
|
+
// authentication oauth2 required
|
|
134
|
+
// oauth required
|
|
135
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
136
|
+
case 1:
|
|
137
|
+
// authentication oauth2 required
|
|
138
|
+
// oauth required
|
|
139
|
+
_a.sent();
|
|
140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
143
|
+
return [2 /*return*/, {
|
|
144
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
145
|
+
options: localVarRequestOptions,
|
|
146
|
+
}];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @summary Adds countries excluded from discount display. (Auth policies: RequireContentManagerRole)
|
|
154
|
+
* @param {string} countryId
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPost: function (countryId_1) {
|
|
159
|
+
var args_1 = [];
|
|
160
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
161
|
+
args_1[_i - 1] = arguments[_i];
|
|
162
|
+
}
|
|
163
|
+
return __awaiter(_this, __spreadArray([countryId_1], args_1, true), void 0, function (countryId, options) {
|
|
164
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
|
+
if (options === void 0) { options = {}; }
|
|
166
|
+
return __generator(this, function (_a) {
|
|
167
|
+
switch (_a.label) {
|
|
168
|
+
case 0:
|
|
169
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPost', 'countryId', countryId);
|
|
171
|
+
localVarPath = "/api/v1/dealglobalsettings/discountdisplayexcludedcountries/{countryId}"
|
|
172
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)));
|
|
173
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
174
|
+
if (configuration) {
|
|
175
|
+
baseOptions = configuration.baseOptions;
|
|
176
|
+
}
|
|
177
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
178
|
+
localVarHeaderParameter = {};
|
|
179
|
+
localVarQueryParameter = {};
|
|
180
|
+
// authentication oauth2 required
|
|
181
|
+
// oauth required
|
|
182
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
183
|
+
case 1:
|
|
184
|
+
// authentication oauth2 required
|
|
185
|
+
// oauth required
|
|
186
|
+
_a.sent();
|
|
187
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
188
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
190
|
+
return [2 /*return*/, {
|
|
191
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
}];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @summary Get countries excluded from discount display (Auth policies: RequireContentManagerRole)
|
|
201
|
+
* @param {string} [languageCode]
|
|
202
|
+
* @param {number} [page]
|
|
203
|
+
* @param {number} [limit]
|
|
204
|
+
* @param {Date} [lastRetrieved]
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesGet: function (languageCode_1, page_1, limit_1, lastRetrieved_1) {
|
|
209
|
+
var args_1 = [];
|
|
210
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
211
|
+
args_1[_i - 4] = arguments[_i];
|
|
212
|
+
}
|
|
213
|
+
return __awaiter(_this, __spreadArray([languageCode_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, page, limit, lastRetrieved, options) {
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
215
|
+
if (options === void 0) { options = {}; }
|
|
216
|
+
return __generator(this, function (_a) {
|
|
217
|
+
switch (_a.label) {
|
|
218
|
+
case 0:
|
|
219
|
+
localVarPath = "/api/v1/dealglobalsettings/discountdisplayexcludedcountries";
|
|
220
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
}
|
|
224
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
225
|
+
localVarHeaderParameter = {};
|
|
226
|
+
localVarQueryParameter = {};
|
|
227
|
+
// authentication oauth2 required
|
|
228
|
+
// oauth required
|
|
229
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
230
|
+
case 1:
|
|
231
|
+
// authentication oauth2 required
|
|
232
|
+
// oauth required
|
|
233
|
+
_a.sent();
|
|
234
|
+
if (languageCode !== undefined) {
|
|
235
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
236
|
+
}
|
|
237
|
+
if (page !== undefined) {
|
|
238
|
+
localVarQueryParameter['page'] = page;
|
|
239
|
+
}
|
|
240
|
+
if (limit !== undefined) {
|
|
241
|
+
localVarQueryParameter['limit'] = limit;
|
|
242
|
+
}
|
|
243
|
+
if (lastRetrieved !== undefined) {
|
|
244
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
245
|
+
lastRetrieved.toISOString() :
|
|
246
|
+
lastRetrieved;
|
|
247
|
+
}
|
|
248
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
249
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
251
|
+
return [2 /*return*/, {
|
|
252
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
253
|
+
options: localVarRequestOptions,
|
|
254
|
+
}];
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
},
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @summary Get deal global setting (Auth policies: RequireContentManagerRole)
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
apiV1DealglobalsettingsGet: function () {
|
|
266
|
+
var args_1 = [];
|
|
267
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
268
|
+
args_1[_i] = arguments[_i];
|
|
269
|
+
}
|
|
270
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
271
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
272
|
+
if (options === void 0) { options = {}; }
|
|
273
|
+
return __generator(this, function (_a) {
|
|
274
|
+
switch (_a.label) {
|
|
275
|
+
case 0:
|
|
276
|
+
localVarPath = "/api/v1/dealglobalsettings";
|
|
277
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
278
|
+
if (configuration) {
|
|
279
|
+
baseOptions = configuration.baseOptions;
|
|
280
|
+
}
|
|
281
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
282
|
+
localVarHeaderParameter = {};
|
|
283
|
+
localVarQueryParameter = {};
|
|
284
|
+
// authentication oauth2 required
|
|
285
|
+
// oauth required
|
|
286
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
287
|
+
case 1:
|
|
288
|
+
// authentication oauth2 required
|
|
289
|
+
// oauth required
|
|
290
|
+
_a.sent();
|
|
291
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
294
|
+
return [2 /*return*/, {
|
|
295
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
296
|
+
options: localVarRequestOptions,
|
|
297
|
+
}];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
},
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @summary Get IncludedInPrice items of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
305
|
+
* @param {string} [languageCode]
|
|
306
|
+
* @param {string} [name]
|
|
307
|
+
* @param {boolean} [requireInclusivePricing]
|
|
308
|
+
* @param {boolean} [showHidden]
|
|
309
|
+
* @param {number} [page]
|
|
310
|
+
* @param {number} [limit]
|
|
311
|
+
* @param {Date} [lastRetrieved]
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
apiV1DealglobalsettingsIncludedinpricesGet: function (languageCode_1, name_1, requireInclusivePricing_1, showHidden_1, page_1, limit_1, lastRetrieved_1) {
|
|
316
|
+
var args_1 = [];
|
|
317
|
+
for (var _i = 7; _i < arguments.length; _i++) {
|
|
318
|
+
args_1[_i - 7] = arguments[_i];
|
|
319
|
+
}
|
|
320
|
+
return __awaiter(_this, __spreadArray([languageCode_1, name_1, requireInclusivePricing_1, showHidden_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, name, requireInclusivePricing, showHidden, page, limit, lastRetrieved, options) {
|
|
321
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
322
|
+
if (options === void 0) { options = {}; }
|
|
323
|
+
return __generator(this, function (_a) {
|
|
324
|
+
switch (_a.label) {
|
|
325
|
+
case 0:
|
|
326
|
+
localVarPath = "/api/v1/dealglobalsettings/includedinprices";
|
|
327
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
328
|
+
if (configuration) {
|
|
329
|
+
baseOptions = configuration.baseOptions;
|
|
330
|
+
}
|
|
331
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
332
|
+
localVarHeaderParameter = {};
|
|
333
|
+
localVarQueryParameter = {};
|
|
334
|
+
// authentication oauth2 required
|
|
335
|
+
// oauth required
|
|
336
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
337
|
+
case 1:
|
|
338
|
+
// authentication oauth2 required
|
|
339
|
+
// oauth required
|
|
340
|
+
_a.sent();
|
|
341
|
+
if (languageCode !== undefined) {
|
|
342
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
343
|
+
}
|
|
344
|
+
if (name !== undefined) {
|
|
345
|
+
localVarQueryParameter['name'] = name;
|
|
346
|
+
}
|
|
347
|
+
if (requireInclusivePricing !== undefined) {
|
|
348
|
+
localVarQueryParameter['requireInclusivePricing'] = requireInclusivePricing;
|
|
349
|
+
}
|
|
350
|
+
if (showHidden !== undefined) {
|
|
351
|
+
localVarQueryParameter['showHidden'] = showHidden;
|
|
352
|
+
}
|
|
353
|
+
if (page !== undefined) {
|
|
354
|
+
localVarQueryParameter['page'] = page;
|
|
355
|
+
}
|
|
356
|
+
if (limit !== undefined) {
|
|
357
|
+
localVarQueryParameter['limit'] = limit;
|
|
358
|
+
}
|
|
359
|
+
if (lastRetrieved !== undefined) {
|
|
360
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
361
|
+
lastRetrieved.toISOString() :
|
|
362
|
+
lastRetrieved;
|
|
363
|
+
}
|
|
364
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
365
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
366
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
367
|
+
return [2 /*return*/, {
|
|
368
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
369
|
+
options: localVarRequestOptions,
|
|
370
|
+
}];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
},
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @summary Delete IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
378
|
+
* @param {string} id
|
|
379
|
+
* @param {boolean} [isPermanent]
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
apiV1DealglobalsettingsIncludedinpricesIdDelete: function (id_1, isPermanent_1) {
|
|
384
|
+
var args_1 = [];
|
|
385
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
386
|
+
args_1[_i - 2] = arguments[_i];
|
|
387
|
+
}
|
|
388
|
+
return __awaiter(_this, __spreadArray([id_1, isPermanent_1], args_1, true), void 0, function (id, isPermanent, options) {
|
|
389
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
390
|
+
if (options === void 0) { options = {}; }
|
|
391
|
+
return __generator(this, function (_a) {
|
|
392
|
+
switch (_a.label) {
|
|
393
|
+
case 0:
|
|
394
|
+
// verify required parameter 'id' is not null or undefined
|
|
395
|
+
(0, common_1.assertParamExists)('apiV1DealglobalsettingsIncludedinpricesIdDelete', 'id', id);
|
|
396
|
+
localVarPath = "/api/v1/dealglobalsettings/includedinprices/{id}"
|
|
397
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
398
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
399
|
+
if (configuration) {
|
|
400
|
+
baseOptions = configuration.baseOptions;
|
|
401
|
+
}
|
|
402
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
403
|
+
localVarHeaderParameter = {};
|
|
404
|
+
localVarQueryParameter = {};
|
|
405
|
+
// authentication oauth2 required
|
|
406
|
+
// oauth required
|
|
407
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
408
|
+
case 1:
|
|
409
|
+
// authentication oauth2 required
|
|
410
|
+
// oauth required
|
|
411
|
+
_a.sent();
|
|
412
|
+
if (isPermanent !== undefined) {
|
|
413
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
414
|
+
}
|
|
415
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
416
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
417
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
418
|
+
return [2 /*return*/, {
|
|
419
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
420
|
+
options: localVarRequestOptions,
|
|
421
|
+
}];
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @summary Get IncludedInPrice item of DealGlobalSetting by id (Auth policies: RequireContentManagerRole)
|
|
429
|
+
* @param {string} id
|
|
430
|
+
* @param {string} [languageCode]
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
apiV1DealglobalsettingsIncludedinpricesIdGet: function (id_1, languageCode_1) {
|
|
435
|
+
var args_1 = [];
|
|
436
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
437
|
+
args_1[_i - 2] = arguments[_i];
|
|
438
|
+
}
|
|
439
|
+
return __awaiter(_this, __spreadArray([id_1, languageCode_1], args_1, true), void 0, function (id, languageCode, options) {
|
|
440
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
441
|
+
if (options === void 0) { options = {}; }
|
|
442
|
+
return __generator(this, function (_a) {
|
|
443
|
+
switch (_a.label) {
|
|
444
|
+
case 0:
|
|
445
|
+
// verify required parameter 'id' is not null or undefined
|
|
446
|
+
(0, common_1.assertParamExists)('apiV1DealglobalsettingsIncludedinpricesIdGet', 'id', id);
|
|
447
|
+
localVarPath = "/api/v1/dealglobalsettings/includedinprices/{id}"
|
|
448
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
449
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
450
|
+
if (configuration) {
|
|
451
|
+
baseOptions = configuration.baseOptions;
|
|
452
|
+
}
|
|
453
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
454
|
+
localVarHeaderParameter = {};
|
|
455
|
+
localVarQueryParameter = {};
|
|
456
|
+
// authentication oauth2 required
|
|
457
|
+
// oauth required
|
|
458
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
459
|
+
case 1:
|
|
460
|
+
// authentication oauth2 required
|
|
461
|
+
// oauth required
|
|
462
|
+
_a.sent();
|
|
463
|
+
if (languageCode !== undefined) {
|
|
464
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
465
|
+
}
|
|
466
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
467
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
468
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
469
|
+
return [2 /*return*/, {
|
|
470
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
471
|
+
options: localVarRequestOptions,
|
|
472
|
+
}];
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @summary Update IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
480
|
+
* @param {string} id
|
|
481
|
+
* @param {UpdateDealGlobalSettingIncludedInPriceCommand} [updateDealGlobalSettingIncludedInPriceCommand]
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
*/
|
|
485
|
+
apiV1DealglobalsettingsIncludedinpricesIdPut: function (id_1, updateDealGlobalSettingIncludedInPriceCommand_1) {
|
|
486
|
+
var args_1 = [];
|
|
487
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
488
|
+
args_1[_i - 2] = arguments[_i];
|
|
489
|
+
}
|
|
490
|
+
return __awaiter(_this, __spreadArray([id_1, updateDealGlobalSettingIncludedInPriceCommand_1], args_1, true), void 0, function (id, updateDealGlobalSettingIncludedInPriceCommand, options) {
|
|
491
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
492
|
+
if (options === void 0) { options = {}; }
|
|
493
|
+
return __generator(this, function (_a) {
|
|
494
|
+
switch (_a.label) {
|
|
495
|
+
case 0:
|
|
496
|
+
// verify required parameter 'id' is not null or undefined
|
|
497
|
+
(0, common_1.assertParamExists)('apiV1DealglobalsettingsIncludedinpricesIdPut', 'id', id);
|
|
498
|
+
localVarPath = "/api/v1/dealglobalsettings/includedinprices/{id}"
|
|
499
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
500
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
501
|
+
if (configuration) {
|
|
502
|
+
baseOptions = configuration.baseOptions;
|
|
503
|
+
}
|
|
504
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
505
|
+
localVarHeaderParameter = {};
|
|
506
|
+
localVarQueryParameter = {};
|
|
507
|
+
// authentication oauth2 required
|
|
508
|
+
// oauth required
|
|
509
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
510
|
+
case 1:
|
|
511
|
+
// authentication oauth2 required
|
|
512
|
+
// oauth required
|
|
513
|
+
_a.sent();
|
|
514
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
515
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
516
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
517
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
518
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDealGlobalSettingIncludedInPriceCommand, localVarRequestOptions, configuration);
|
|
519
|
+
return [2 /*return*/, {
|
|
520
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
521
|
+
options: localVarRequestOptions,
|
|
522
|
+
}];
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
},
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @summary Reactivate IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
530
|
+
* @param {string} id
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
apiV1DealglobalsettingsIncludedinpricesIdReactivatePut: function (id_1) {
|
|
535
|
+
var args_1 = [];
|
|
536
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
537
|
+
args_1[_i - 1] = arguments[_i];
|
|
538
|
+
}
|
|
539
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
540
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
541
|
+
if (options === void 0) { options = {}; }
|
|
542
|
+
return __generator(this, function (_a) {
|
|
543
|
+
switch (_a.label) {
|
|
544
|
+
case 0:
|
|
545
|
+
// verify required parameter 'id' is not null or undefined
|
|
546
|
+
(0, common_1.assertParamExists)('apiV1DealglobalsettingsIncludedinpricesIdReactivatePut', 'id', id);
|
|
547
|
+
localVarPath = "/api/v1/dealglobalsettings/includedinprices/{id}/reactivate"
|
|
548
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
549
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
550
|
+
if (configuration) {
|
|
551
|
+
baseOptions = configuration.baseOptions;
|
|
552
|
+
}
|
|
553
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
554
|
+
localVarHeaderParameter = {};
|
|
555
|
+
localVarQueryParameter = {};
|
|
556
|
+
// authentication oauth2 required
|
|
557
|
+
// oauth required
|
|
558
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
559
|
+
case 1:
|
|
560
|
+
// authentication oauth2 required
|
|
561
|
+
// oauth required
|
|
562
|
+
_a.sent();
|
|
563
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
564
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
565
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
566
|
+
return [2 /*return*/, {
|
|
567
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
568
|
+
options: localVarRequestOptions,
|
|
569
|
+
}];
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
},
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @summary Create IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
577
|
+
* @param {CreateDealGlobalSettingIncludedInPriceCommand} [createDealGlobalSettingIncludedInPriceCommand]
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
apiV1DealglobalsettingsIncludedinpricesPost: function (createDealGlobalSettingIncludedInPriceCommand_1) {
|
|
582
|
+
var args_1 = [];
|
|
583
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
584
|
+
args_1[_i - 1] = arguments[_i];
|
|
585
|
+
}
|
|
586
|
+
return __awaiter(_this, __spreadArray([createDealGlobalSettingIncludedInPriceCommand_1], args_1, true), void 0, function (createDealGlobalSettingIncludedInPriceCommand, options) {
|
|
587
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
588
|
+
if (options === void 0) { options = {}; }
|
|
589
|
+
return __generator(this, function (_a) {
|
|
590
|
+
switch (_a.label) {
|
|
591
|
+
case 0:
|
|
592
|
+
localVarPath = "/api/v1/dealglobalsettings/includedinprices";
|
|
593
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
594
|
+
if (configuration) {
|
|
595
|
+
baseOptions = configuration.baseOptions;
|
|
596
|
+
}
|
|
597
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
598
|
+
localVarHeaderParameter = {};
|
|
599
|
+
localVarQueryParameter = {};
|
|
600
|
+
// authentication oauth2 required
|
|
601
|
+
// oauth required
|
|
602
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
603
|
+
case 1:
|
|
604
|
+
// authentication oauth2 required
|
|
605
|
+
// oauth required
|
|
606
|
+
_a.sent();
|
|
607
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
608
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
609
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
610
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
611
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDealGlobalSettingIncludedInPriceCommand, localVarRequestOptions, configuration);
|
|
612
|
+
return [2 /*return*/, {
|
|
613
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
614
|
+
options: localVarRequestOptions,
|
|
615
|
+
}];
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
});
|
|
619
|
+
},
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @summary Save deal global setting (Auth policies: RequireContentManagerRole)
|
|
623
|
+
* @param {PatchDealGlobalSettingCommand} [patchDealGlobalSettingCommand]
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
apiV1DealglobalsettingsPatch: function (patchDealGlobalSettingCommand_1) {
|
|
628
|
+
var args_1 = [];
|
|
629
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
630
|
+
args_1[_i - 1] = arguments[_i];
|
|
631
|
+
}
|
|
632
|
+
return __awaiter(_this, __spreadArray([patchDealGlobalSettingCommand_1], args_1, true), void 0, function (patchDealGlobalSettingCommand, options) {
|
|
633
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
634
|
+
if (options === void 0) { options = {}; }
|
|
635
|
+
return __generator(this, function (_a) {
|
|
636
|
+
switch (_a.label) {
|
|
637
|
+
case 0:
|
|
638
|
+
localVarPath = "/api/v1/dealglobalsettings";
|
|
639
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
640
|
+
if (configuration) {
|
|
641
|
+
baseOptions = configuration.baseOptions;
|
|
642
|
+
}
|
|
643
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
644
|
+
localVarHeaderParameter = {};
|
|
645
|
+
localVarQueryParameter = {};
|
|
646
|
+
// authentication oauth2 required
|
|
647
|
+
// oauth required
|
|
648
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
649
|
+
case 1:
|
|
650
|
+
// authentication oauth2 required
|
|
651
|
+
// oauth required
|
|
652
|
+
_a.sent();
|
|
653
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
654
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
655
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
656
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
657
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchDealGlobalSettingCommand, localVarRequestOptions, configuration);
|
|
658
|
+
return [2 /*return*/, {
|
|
659
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
660
|
+
options: localVarRequestOptions,
|
|
661
|
+
}];
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
});
|
|
665
|
+
},
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
exports.DealGlobalSettingsApiAxiosParamCreator = DealGlobalSettingsApiAxiosParamCreator;
|
|
669
|
+
/**
|
|
670
|
+
* DealGlobalSettingsApi - functional programming interface
|
|
671
|
+
* @export
|
|
672
|
+
*/
|
|
673
|
+
var DealGlobalSettingsApiFp = function (configuration) {
|
|
674
|
+
var localVarAxiosParamCreator = (0, exports.DealGlobalSettingsApiAxiosParamCreator)(configuration);
|
|
675
|
+
return {
|
|
676
|
+
/**
|
|
677
|
+
*
|
|
678
|
+
* @summary Removes countries excluded from discount display. (Auth policies: RequireContentManagerRole)
|
|
679
|
+
* @param {string} countryId
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDelete: function (countryId, options) {
|
|
684
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
685
|
+
var localVarAxiosArgs;
|
|
686
|
+
return __generator(this, function (_a) {
|
|
687
|
+
switch (_a.label) {
|
|
688
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDelete(countryId, options)];
|
|
689
|
+
case 1:
|
|
690
|
+
localVarAxiosArgs = _a.sent();
|
|
691
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
});
|
|
695
|
+
},
|
|
696
|
+
/**
|
|
697
|
+
*
|
|
698
|
+
* @summary Adds countries excluded from discount display. (Auth policies: RequireContentManagerRole)
|
|
699
|
+
* @param {string} countryId
|
|
700
|
+
* @param {*} [options] Override http request option.
|
|
701
|
+
* @throws {RequiredError}
|
|
702
|
+
*/
|
|
703
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPost: function (countryId, options) {
|
|
704
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
705
|
+
var localVarAxiosArgs;
|
|
706
|
+
return __generator(this, function (_a) {
|
|
707
|
+
switch (_a.label) {
|
|
708
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPost(countryId, options)];
|
|
709
|
+
case 1:
|
|
710
|
+
localVarAxiosArgs = _a.sent();
|
|
711
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
});
|
|
715
|
+
},
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @summary Get countries excluded from discount display (Auth policies: RequireContentManagerRole)
|
|
719
|
+
* @param {string} [languageCode]
|
|
720
|
+
* @param {number} [page]
|
|
721
|
+
* @param {number} [limit]
|
|
722
|
+
* @param {Date} [lastRetrieved]
|
|
723
|
+
* @param {*} [options] Override http request option.
|
|
724
|
+
* @throws {RequiredError}
|
|
725
|
+
*/
|
|
726
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesGet: function (languageCode, page, limit, lastRetrieved, options) {
|
|
727
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
728
|
+
var localVarAxiosArgs;
|
|
729
|
+
return __generator(this, function (_a) {
|
|
730
|
+
switch (_a.label) {
|
|
731
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesGet(languageCode, page, limit, lastRetrieved, options)];
|
|
732
|
+
case 1:
|
|
733
|
+
localVarAxiosArgs = _a.sent();
|
|
734
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
});
|
|
738
|
+
},
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @summary Get deal global setting (Auth policies: RequireContentManagerRole)
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
apiV1DealglobalsettingsGet: function (options) {
|
|
746
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
747
|
+
var localVarAxiosArgs;
|
|
748
|
+
return __generator(this, function (_a) {
|
|
749
|
+
switch (_a.label) {
|
|
750
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsGet(options)];
|
|
751
|
+
case 1:
|
|
752
|
+
localVarAxiosArgs = _a.sent();
|
|
753
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
});
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
*
|
|
760
|
+
* @summary Get IncludedInPrice items of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
761
|
+
* @param {string} [languageCode]
|
|
762
|
+
* @param {string} [name]
|
|
763
|
+
* @param {boolean} [requireInclusivePricing]
|
|
764
|
+
* @param {boolean} [showHidden]
|
|
765
|
+
* @param {number} [page]
|
|
766
|
+
* @param {number} [limit]
|
|
767
|
+
* @param {Date} [lastRetrieved]
|
|
768
|
+
* @param {*} [options] Override http request option.
|
|
769
|
+
* @throws {RequiredError}
|
|
770
|
+
*/
|
|
771
|
+
apiV1DealglobalsettingsIncludedinpricesGet: function (languageCode, name, requireInclusivePricing, showHidden, page, limit, lastRetrieved, options) {
|
|
772
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
773
|
+
var localVarAxiosArgs;
|
|
774
|
+
return __generator(this, function (_a) {
|
|
775
|
+
switch (_a.label) {
|
|
776
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsIncludedinpricesGet(languageCode, name, requireInclusivePricing, showHidden, page, limit, lastRetrieved, options)];
|
|
777
|
+
case 1:
|
|
778
|
+
localVarAxiosArgs = _a.sent();
|
|
779
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
});
|
|
783
|
+
},
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @summary Delete IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
787
|
+
* @param {string} id
|
|
788
|
+
* @param {boolean} [isPermanent]
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
apiV1DealglobalsettingsIncludedinpricesIdDelete: function (id, isPermanent, options) {
|
|
793
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
794
|
+
var localVarAxiosArgs;
|
|
795
|
+
return __generator(this, function (_a) {
|
|
796
|
+
switch (_a.label) {
|
|
797
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsIncludedinpricesIdDelete(id, isPermanent, options)];
|
|
798
|
+
case 1:
|
|
799
|
+
localVarAxiosArgs = _a.sent();
|
|
800
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
});
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @summary Get IncludedInPrice item of DealGlobalSetting by id (Auth policies: RequireContentManagerRole)
|
|
808
|
+
* @param {string} id
|
|
809
|
+
* @param {string} [languageCode]
|
|
810
|
+
* @param {*} [options] Override http request option.
|
|
811
|
+
* @throws {RequiredError}
|
|
812
|
+
*/
|
|
813
|
+
apiV1DealglobalsettingsIncludedinpricesIdGet: function (id, languageCode, options) {
|
|
814
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
815
|
+
var localVarAxiosArgs;
|
|
816
|
+
return __generator(this, function (_a) {
|
|
817
|
+
switch (_a.label) {
|
|
818
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsIncludedinpricesIdGet(id, languageCode, options)];
|
|
819
|
+
case 1:
|
|
820
|
+
localVarAxiosArgs = _a.sent();
|
|
821
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
});
|
|
825
|
+
},
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @summary Update IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
829
|
+
* @param {string} id
|
|
830
|
+
* @param {UpdateDealGlobalSettingIncludedInPriceCommand} [updateDealGlobalSettingIncludedInPriceCommand]
|
|
831
|
+
* @param {*} [options] Override http request option.
|
|
832
|
+
* @throws {RequiredError}
|
|
833
|
+
*/
|
|
834
|
+
apiV1DealglobalsettingsIncludedinpricesIdPut: function (id, updateDealGlobalSettingIncludedInPriceCommand, options) {
|
|
835
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
836
|
+
var localVarAxiosArgs;
|
|
837
|
+
return __generator(this, function (_a) {
|
|
838
|
+
switch (_a.label) {
|
|
839
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsIncludedinpricesIdPut(id, updateDealGlobalSettingIncludedInPriceCommand, options)];
|
|
840
|
+
case 1:
|
|
841
|
+
localVarAxiosArgs = _a.sent();
|
|
842
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
});
|
|
846
|
+
},
|
|
847
|
+
/**
|
|
848
|
+
*
|
|
849
|
+
* @summary Reactivate IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
850
|
+
* @param {string} id
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
*/
|
|
854
|
+
apiV1DealglobalsettingsIncludedinpricesIdReactivatePut: function (id, options) {
|
|
855
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
856
|
+
var localVarAxiosArgs;
|
|
857
|
+
return __generator(this, function (_a) {
|
|
858
|
+
switch (_a.label) {
|
|
859
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsIncludedinpricesIdReactivatePut(id, options)];
|
|
860
|
+
case 1:
|
|
861
|
+
localVarAxiosArgs = _a.sent();
|
|
862
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
});
|
|
866
|
+
},
|
|
867
|
+
/**
|
|
868
|
+
*
|
|
869
|
+
* @summary Create IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
870
|
+
* @param {CreateDealGlobalSettingIncludedInPriceCommand} [createDealGlobalSettingIncludedInPriceCommand]
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
apiV1DealglobalsettingsIncludedinpricesPost: function (createDealGlobalSettingIncludedInPriceCommand, options) {
|
|
875
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
876
|
+
var localVarAxiosArgs;
|
|
877
|
+
return __generator(this, function (_a) {
|
|
878
|
+
switch (_a.label) {
|
|
879
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsIncludedinpricesPost(createDealGlobalSettingIncludedInPriceCommand, options)];
|
|
880
|
+
case 1:
|
|
881
|
+
localVarAxiosArgs = _a.sent();
|
|
882
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
});
|
|
886
|
+
},
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* @summary Save deal global setting (Auth policies: RequireContentManagerRole)
|
|
890
|
+
* @param {PatchDealGlobalSettingCommand} [patchDealGlobalSettingCommand]
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
*/
|
|
894
|
+
apiV1DealglobalsettingsPatch: function (patchDealGlobalSettingCommand, options) {
|
|
895
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
896
|
+
var localVarAxiosArgs;
|
|
897
|
+
return __generator(this, function (_a) {
|
|
898
|
+
switch (_a.label) {
|
|
899
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealglobalsettingsPatch(patchDealGlobalSettingCommand, options)];
|
|
900
|
+
case 1:
|
|
901
|
+
localVarAxiosArgs = _a.sent();
|
|
902
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
});
|
|
906
|
+
},
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
exports.DealGlobalSettingsApiFp = DealGlobalSettingsApiFp;
|
|
910
|
+
/**
|
|
911
|
+
* DealGlobalSettingsApi - factory interface
|
|
912
|
+
* @export
|
|
913
|
+
*/
|
|
914
|
+
var DealGlobalSettingsApiFactory = function (configuration, basePath, axios) {
|
|
915
|
+
var localVarFp = (0, exports.DealGlobalSettingsApiFp)(configuration);
|
|
916
|
+
return {
|
|
917
|
+
/**
|
|
918
|
+
*
|
|
919
|
+
* @summary Removes countries excluded from discount display. (Auth policies: RequireContentManagerRole)
|
|
920
|
+
* @param {string} countryId
|
|
921
|
+
* @param {*} [options] Override http request option.
|
|
922
|
+
* @throws {RequiredError}
|
|
923
|
+
*/
|
|
924
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDelete: function (countryId, options) {
|
|
925
|
+
return localVarFp.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDelete(countryId, options).then(function (request) { return request(axios, basePath); });
|
|
926
|
+
},
|
|
927
|
+
/**
|
|
928
|
+
*
|
|
929
|
+
* @summary Adds countries excluded from discount display. (Auth policies: RequireContentManagerRole)
|
|
930
|
+
* @param {string} countryId
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPost: function (countryId, options) {
|
|
935
|
+
return localVarFp.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPost(countryId, options).then(function (request) { return request(axios, basePath); });
|
|
936
|
+
},
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @summary Get countries excluded from discount display (Auth policies: RequireContentManagerRole)
|
|
940
|
+
* @param {string} [languageCode]
|
|
941
|
+
* @param {number} [page]
|
|
942
|
+
* @param {number} [limit]
|
|
943
|
+
* @param {Date} [lastRetrieved]
|
|
944
|
+
* @param {*} [options] Override http request option.
|
|
945
|
+
* @throws {RequiredError}
|
|
946
|
+
*/
|
|
947
|
+
apiV1DealglobalsettingsDiscountdisplayexcludedcountriesGet: function (languageCode, page, limit, lastRetrieved, options) {
|
|
948
|
+
return localVarFp.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesGet(languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
949
|
+
},
|
|
950
|
+
/**
|
|
951
|
+
*
|
|
952
|
+
* @summary Get deal global setting (Auth policies: RequireContentManagerRole)
|
|
953
|
+
* @param {*} [options] Override http request option.
|
|
954
|
+
* @throws {RequiredError}
|
|
955
|
+
*/
|
|
956
|
+
apiV1DealglobalsettingsGet: function (options) {
|
|
957
|
+
return localVarFp.apiV1DealglobalsettingsGet(options).then(function (request) { return request(axios, basePath); });
|
|
958
|
+
},
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @summary Get IncludedInPrice items of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
962
|
+
* @param {string} [languageCode]
|
|
963
|
+
* @param {string} [name]
|
|
964
|
+
* @param {boolean} [requireInclusivePricing]
|
|
965
|
+
* @param {boolean} [showHidden]
|
|
966
|
+
* @param {number} [page]
|
|
967
|
+
* @param {number} [limit]
|
|
968
|
+
* @param {Date} [lastRetrieved]
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
*/
|
|
972
|
+
apiV1DealglobalsettingsIncludedinpricesGet: function (languageCode, name, requireInclusivePricing, showHidden, page, limit, lastRetrieved, options) {
|
|
973
|
+
return localVarFp.apiV1DealglobalsettingsIncludedinpricesGet(languageCode, name, requireInclusivePricing, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
974
|
+
},
|
|
975
|
+
/**
|
|
976
|
+
*
|
|
977
|
+
* @summary Delete IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
978
|
+
* @param {string} id
|
|
979
|
+
* @param {boolean} [isPermanent]
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
*/
|
|
983
|
+
apiV1DealglobalsettingsIncludedinpricesIdDelete: function (id, isPermanent, options) {
|
|
984
|
+
return localVarFp.apiV1DealglobalsettingsIncludedinpricesIdDelete(id, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
985
|
+
},
|
|
986
|
+
/**
|
|
987
|
+
*
|
|
988
|
+
* @summary Get IncludedInPrice item of DealGlobalSetting by id (Auth policies: RequireContentManagerRole)
|
|
989
|
+
* @param {string} id
|
|
990
|
+
* @param {string} [languageCode]
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
apiV1DealglobalsettingsIncludedinpricesIdGet: function (id, languageCode, options) {
|
|
995
|
+
return localVarFp.apiV1DealglobalsettingsIncludedinpricesIdGet(id, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
996
|
+
},
|
|
997
|
+
/**
|
|
998
|
+
*
|
|
999
|
+
* @summary Update IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
1000
|
+
* @param {string} id
|
|
1001
|
+
* @param {UpdateDealGlobalSettingIncludedInPriceCommand} [updateDealGlobalSettingIncludedInPriceCommand]
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
*/
|
|
1005
|
+
apiV1DealglobalsettingsIncludedinpricesIdPut: function (id, updateDealGlobalSettingIncludedInPriceCommand, options) {
|
|
1006
|
+
return localVarFp.apiV1DealglobalsettingsIncludedinpricesIdPut(id, updateDealGlobalSettingIncludedInPriceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
1007
|
+
},
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* @summary Reactivate IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
1011
|
+
* @param {string} id
|
|
1012
|
+
* @param {*} [options] Override http request option.
|
|
1013
|
+
* @throws {RequiredError}
|
|
1014
|
+
*/
|
|
1015
|
+
apiV1DealglobalsettingsIncludedinpricesIdReactivatePut: function (id, options) {
|
|
1016
|
+
return localVarFp.apiV1DealglobalsettingsIncludedinpricesIdReactivatePut(id, options).then(function (request) { return request(axios, basePath); });
|
|
1017
|
+
},
|
|
1018
|
+
/**
|
|
1019
|
+
*
|
|
1020
|
+
* @summary Create IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
1021
|
+
* @param {CreateDealGlobalSettingIncludedInPriceCommand} [createDealGlobalSettingIncludedInPriceCommand]
|
|
1022
|
+
* @param {*} [options] Override http request option.
|
|
1023
|
+
* @throws {RequiredError}
|
|
1024
|
+
*/
|
|
1025
|
+
apiV1DealglobalsettingsIncludedinpricesPost: function (createDealGlobalSettingIncludedInPriceCommand, options) {
|
|
1026
|
+
return localVarFp.apiV1DealglobalsettingsIncludedinpricesPost(createDealGlobalSettingIncludedInPriceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
1027
|
+
},
|
|
1028
|
+
/**
|
|
1029
|
+
*
|
|
1030
|
+
* @summary Save deal global setting (Auth policies: RequireContentManagerRole)
|
|
1031
|
+
* @param {PatchDealGlobalSettingCommand} [patchDealGlobalSettingCommand]
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
*/
|
|
1035
|
+
apiV1DealglobalsettingsPatch: function (patchDealGlobalSettingCommand, options) {
|
|
1036
|
+
return localVarFp.apiV1DealglobalsettingsPatch(patchDealGlobalSettingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
1037
|
+
},
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
exports.DealGlobalSettingsApiFactory = DealGlobalSettingsApiFactory;
|
|
1041
|
+
/**
|
|
1042
|
+
* DealGlobalSettingsApi - object-oriented interface
|
|
1043
|
+
* @export
|
|
1044
|
+
* @class DealGlobalSettingsApi
|
|
1045
|
+
* @extends {BaseAPI}
|
|
1046
|
+
*/
|
|
1047
|
+
var DealGlobalSettingsApi = /** @class */ (function (_super) {
|
|
1048
|
+
__extends(DealGlobalSettingsApi, _super);
|
|
1049
|
+
function DealGlobalSettingsApi() {
|
|
1050
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
*
|
|
1054
|
+
* @summary Removes countries excluded from discount display. (Auth policies: RequireContentManagerRole)
|
|
1055
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDeleteRequest} requestParameters Request parameters.
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
* @memberof DealGlobalSettingsApi
|
|
1059
|
+
*/
|
|
1060
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDelete = function (requestParameters, options) {
|
|
1061
|
+
var _this = this;
|
|
1062
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdDelete(requestParameters.countryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1063
|
+
};
|
|
1064
|
+
/**
|
|
1065
|
+
*
|
|
1066
|
+
* @summary Adds countries excluded from discount display. (Auth policies: RequireContentManagerRole)
|
|
1067
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPostRequest} requestParameters Request parameters.
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
* @memberof DealGlobalSettingsApi
|
|
1071
|
+
*/
|
|
1072
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPost = function (requestParameters, options) {
|
|
1073
|
+
var _this = this;
|
|
1074
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsDiscountdisplayexcludedcountriesCountryIdPost(requestParameters.countryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1075
|
+
};
|
|
1076
|
+
/**
|
|
1077
|
+
*
|
|
1078
|
+
* @summary Get countries excluded from discount display (Auth policies: RequireContentManagerRole)
|
|
1079
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsDiscountdisplayexcludedcountriesGetRequest} requestParameters Request parameters.
|
|
1080
|
+
* @param {*} [options] Override http request option.
|
|
1081
|
+
* @throws {RequiredError}
|
|
1082
|
+
* @memberof DealGlobalSettingsApi
|
|
1083
|
+
*/
|
|
1084
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsDiscountdisplayexcludedcountriesGet = function (requestParameters, options) {
|
|
1085
|
+
var _this = this;
|
|
1086
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1087
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsDiscountdisplayexcludedcountriesGet(requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1088
|
+
};
|
|
1089
|
+
/**
|
|
1090
|
+
*
|
|
1091
|
+
* @summary Get deal global setting (Auth policies: RequireContentManagerRole)
|
|
1092
|
+
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @throws {RequiredError}
|
|
1094
|
+
* @memberof DealGlobalSettingsApi
|
|
1095
|
+
*/
|
|
1096
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsGet = function (options) {
|
|
1097
|
+
var _this = this;
|
|
1098
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1099
|
+
};
|
|
1100
|
+
/**
|
|
1101
|
+
*
|
|
1102
|
+
* @summary Get IncludedInPrice items of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
1103
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsIncludedinpricesGetRequest} requestParameters Request parameters.
|
|
1104
|
+
* @param {*} [options] Override http request option.
|
|
1105
|
+
* @throws {RequiredError}
|
|
1106
|
+
* @memberof DealGlobalSettingsApi
|
|
1107
|
+
*/
|
|
1108
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsIncludedinpricesGet = function (requestParameters, options) {
|
|
1109
|
+
var _this = this;
|
|
1110
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1111
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsIncludedinpricesGet(requestParameters.languageCode, requestParameters.name, requestParameters.requireInclusivePricing, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1112
|
+
};
|
|
1113
|
+
/**
|
|
1114
|
+
*
|
|
1115
|
+
* @summary Delete IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
1116
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsIncludedinpricesIdDeleteRequest} requestParameters Request parameters.
|
|
1117
|
+
* @param {*} [options] Override http request option.
|
|
1118
|
+
* @throws {RequiredError}
|
|
1119
|
+
* @memberof DealGlobalSettingsApi
|
|
1120
|
+
*/
|
|
1121
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsIncludedinpricesIdDelete = function (requestParameters, options) {
|
|
1122
|
+
var _this = this;
|
|
1123
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsIncludedinpricesIdDelete(requestParameters.id, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1124
|
+
};
|
|
1125
|
+
/**
|
|
1126
|
+
*
|
|
1127
|
+
* @summary Get IncludedInPrice item of DealGlobalSetting by id (Auth policies: RequireContentManagerRole)
|
|
1128
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsIncludedinpricesIdGetRequest} requestParameters Request parameters.
|
|
1129
|
+
* @param {*} [options] Override http request option.
|
|
1130
|
+
* @throws {RequiredError}
|
|
1131
|
+
* @memberof DealGlobalSettingsApi
|
|
1132
|
+
*/
|
|
1133
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsIncludedinpricesIdGet = function (requestParameters, options) {
|
|
1134
|
+
var _this = this;
|
|
1135
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsIncludedinpricesIdGet(requestParameters.id, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1136
|
+
};
|
|
1137
|
+
/**
|
|
1138
|
+
*
|
|
1139
|
+
* @summary Update IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
1140
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsIncludedinpricesIdPutRequest} requestParameters Request parameters.
|
|
1141
|
+
* @param {*} [options] Override http request option.
|
|
1142
|
+
* @throws {RequiredError}
|
|
1143
|
+
* @memberof DealGlobalSettingsApi
|
|
1144
|
+
*/
|
|
1145
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsIncludedinpricesIdPut = function (requestParameters, options) {
|
|
1146
|
+
var _this = this;
|
|
1147
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsIncludedinpricesIdPut(requestParameters.id, requestParameters.updateDealGlobalSettingIncludedInPriceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1148
|
+
};
|
|
1149
|
+
/**
|
|
1150
|
+
*
|
|
1151
|
+
* @summary Reactivate IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
1152
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsIncludedinpricesIdReactivatePutRequest} requestParameters Request parameters.
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
* @memberof DealGlobalSettingsApi
|
|
1156
|
+
*/
|
|
1157
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsIncludedinpricesIdReactivatePut = function (requestParameters, options) {
|
|
1158
|
+
var _this = this;
|
|
1159
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsIncludedinpricesIdReactivatePut(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
*
|
|
1163
|
+
* @summary Create IncludedInPrice item of DealGlobalSetting (Auth policies: RequireContentManagerRole)
|
|
1164
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsIncludedinpricesPostRequest} requestParameters Request parameters.
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
* @memberof DealGlobalSettingsApi
|
|
1168
|
+
*/
|
|
1169
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsIncludedinpricesPost = function (requestParameters, options) {
|
|
1170
|
+
var _this = this;
|
|
1171
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1172
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsIncludedinpricesPost(requestParameters.createDealGlobalSettingIncludedInPriceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
*
|
|
1176
|
+
* @summary Save deal global setting (Auth policies: RequireContentManagerRole)
|
|
1177
|
+
* @param {DealGlobalSettingsApiApiV1DealglobalsettingsPatchRequest} requestParameters Request parameters.
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
* @memberof DealGlobalSettingsApi
|
|
1181
|
+
*/
|
|
1182
|
+
DealGlobalSettingsApi.prototype.apiV1DealglobalsettingsPatch = function (requestParameters, options) {
|
|
1183
|
+
var _this = this;
|
|
1184
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1185
|
+
return (0, exports.DealGlobalSettingsApiFp)(this.configuration).apiV1DealglobalsettingsPatch(requestParameters.patchDealGlobalSettingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1186
|
+
};
|
|
1187
|
+
return DealGlobalSettingsApi;
|
|
1188
|
+
}(base_1.BaseAPI));
|
|
1189
|
+
exports.DealGlobalSettingsApi = DealGlobalSettingsApi;
|